/* ============================================================
   DisLoPik — blog article styles
   Palette and surfaces carried over from index.css
   ============================================================ */

* {
  box-sizing: border-box;
}

:root {
  --bg-shift-x: 0%;
  --bg-shift-y: 10%;

  --bg: #09070d;
  --panel: rgba(18, 14, 30, 0.88);
  --panel-soft: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #f7f5ff;
  --muted: rgba(247, 245, 255, 0.72);
  --dim: rgba(247, 245, 255, 0.48);

  --violet: #7851ff;
  --violet-soft: rgba(120, 81, 255, 0.18);
  --violet-line: rgba(120, 81, 255, 0.35);
  --lilac: #b9a6ff;

  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(
      circle at calc(50% + var(--bg-shift-x)) calc(var(--bg-shift-y)),
      var(--violet-soft),
      transparent 32%
    ),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--lilac);
  text-decoration-color: var(--violet-line);
  text-underline-offset: 3px;
}

a:hover {
  color: #d6cbff;
}

:focus-visible {
  outline: 2px solid rgba(120, 81, 255, 0.85);
  outline-offset: 3px;
  border-radius: 6px;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.12em 0.42em;
  border-radius: 6px;
  background: rgba(120, 81, 255, 0.14);
  border: 1px solid rgba(120, 81, 255, 0.22);
  color: #ddd3ff;
  word-break: break-word;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- reading progress ---------- */

.read-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  background: transparent;
}

.read-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--violet), #c4b5fd);
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(9, 7, 13, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.crumb {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--dim);
  letter-spacing: 0.02em;
}

.device-badge {
  margin-left: auto;
  display: inline-flex;
  gap: 0.4rem;
}

.badge-item {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: #d7d6ff;
}

.os-windows { color: #3b82f6; }
.os-linux   { color: #9ca3af; }
.os-android { color: #22c55e; }
.os-ios     { color: #e5e7eb; }
.os-unknown { color: #d7d6ff; }

/* ---------- hero ---------- */

main {
  width: min(94vw, 1180px);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) 0 4rem;
}

.hero {
  padding: clamp(1.75rem, 5vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero.visible {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lilac);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5.4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 18ch;
}

.subtitle {
  margin: 1.25rem 0 0;
  max-width: 58ch;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--muted);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 0;
}

.hero-stats > div {
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
}

.hero-stats dt {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero-stats dd {
  margin: 0.15rem 0 0;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--text);
}

/* ---------- layout ---------- */

.layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.toc-wrap {
  position: sticky;
  top: 5rem;
}

.toc {
  padding: 1.15rem 1.15rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.toc-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.toc > ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: block;
  padding: 0.34rem 0 0.34rem 1.9rem;
  position: relative;
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0.6rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--dim);
}

.toc a:hover,
.toc a.active {
  color: var(--text);
  border-left-color: var(--violet);
}

.toc a.active::before {
  color: var(--lilac);
}

/* ---------- panels ---------- */

.content {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  min-width: 0;
}

.panel {
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.accent-panel {
  border-color: var(--violet-line);
  background: linear-gradient(rgba(120, 81, 255, 0.08), rgba(120, 81, 255, 0.02)), var(--panel);
}

.panel h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.panel h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.panel h3.sub {
  margin: 2rem 0 0.85rem;
  font-size: 1.05rem;
  color: var(--lilac);
}

.panel p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 74ch;
}

.panel p:last-child {
  margin-bottom: 0;
}

.note {
  padding: 0.85rem 1.05rem;
  border-left: 2px solid var(--violet);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(120, 81, 255, 0.07);
  font-size: 0.92rem;
}

/* ---------- lists ---------- */

.check {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.check li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
}

.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--violet);
  transform: rotate(45deg);
}

.check strong,
.panel strong {
  color: var(--text);
  font-weight: 600;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.4rem;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3.1rem;
}

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--violet-line);
  background: rgba(120, 81, 255, 0.12);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--lilac);
}

.steps > li::after {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 2.5rem;
  bottom: -1rem;
  width: 1px;
  background: linear-gradient(var(--line-strong), transparent);
}

.steps > li:last-child::after {
  display: none;
}

/* ---------- paths ---------- */

.paths {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.path-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
}

.path-label {
  min-width: 6.5rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.copyable {
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.copyable::after {
  content: "copy";
  margin-left: 0.6em;
  font-size: 0.72em;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.copyable:hover {
  background: rgba(120, 81, 255, 0.24);
  border-color: var(--violet-line);
}

.copyable:hover::after {
  color: var(--lilac);
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.card {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: var(--violet-line);
  transform: translateY(-2px);
}

.card h3 {
  color: var(--lilac);
}

.card p {
  margin: 0;
  font-size: 0.92rem;
}

/* ---------- tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin: 0 0 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}

thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: rgba(120, 81, 255, 0.1);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--lilac);
  font-weight: 600;
  white-space: nowrap;
}

tbody td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}

tbody td:first-child {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.filter {
  display: block;
  margin: 0 0 0.9rem;
}

.filter input {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.filter input::placeholder {
  color: var(--dim);
}

.empty-msg {
  font-size: 0.9rem;
  color: var(--dim);
}

/* ---------- prompt syntax ---------- */

.syntax {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
}

.syntax-row {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.syntax-row:hover {
  border-color: var(--line);
}

.syntax-row p {
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- settings list ---------- */

.settings {
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.setting {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-soft);
}

.setting dt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.tag {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--violet-line);
  background: rgba(120, 81, 255, 0.12);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--lilac);
  text-transform: lowercase;
}

.setting dd {
  margin: 0;
  color: var(--muted);
  max-width: 74ch;
}

.setting dd ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
}

.setting dd li {
  margin-bottom: 0.35rem;
}

/* ---------- presets ---------- */

.preset-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.preset-tabs button {
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.22s ease;
}

.preset-tabs button:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.preset-tabs button[aria-selected="true"] {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
  box-shadow: 0 10px 26px rgba(120, 81, 255, 0.32);
}

.preset-card {
  padding: 1.2rem 1.3rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(9, 7, 13, 0.55);
}

.preset-grid {
  margin: 0 0 1.1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.preset-grid > div {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.preset-grid dt {
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dim);
}

.preset-grid dd {
  margin: 0.2rem 0 0;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text);
}

.copy-preset {
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--violet-line);
  background: rgba(120, 81, 255, 0.14);
  color: var(--lilac);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.22s ease;
}

.copy-preset:hover {
  background: rgba(120, 81, 255, 0.26);
  color: #fff;
}

/* ---------- denoise scale ---------- */

.scale {
  margin: 0 0 1.25rem;
}

.scale-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(120, 81, 255, 0.2), var(--violet));
  margin-bottom: 1rem;
}

.scale-bar span {
  position: absolute;
  left: var(--pos);
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(9, 7, 13, 0.9);
}

.scale-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
}

.scale-rows > div {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.scale-rows strong {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--lilac);
}

.scale-rows p {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
}

/* ---------- faq ---------- */

.faq {
  display: grid;
  gap: 0.5rem;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  overflow: hidden;
}

summary {
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "+";
  font-family: var(--mono);
  color: var(--lilac);
  transition: transform 0.2s ease;
}

details[open] summary::before {
  content: "−";
}

details[open] summary {
  border-bottom: 1px solid var(--line);
}

details p {
  margin: 0;
  padding: 0.9rem 1.1rem 1.05rem;
  font-size: 0.93rem;
}

/* ---------- utility ---------- */

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--violet-line);
  background: rgba(18, 14, 30, 0.9);
  backdrop-filter: blur(8px);
  color: var(--lilac);
  font-size: 1.05rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 40;
}

.to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 12px);
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--violet-line);
  background: rgba(18, 14, 30, 0.95);
  color: var(--text);
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 70;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-footer {
  padding: 2rem 0 3rem;
  text-align: center;
  color: var(--dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
  width: min(94vw, 1180px);
  margin: 0 auto;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .toc-wrap {
    position: static;
  }

  .toc-toggle {
    display: flex;
  }

  .chev {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--lilac);
    border-bottom: 2px solid var(--lilac);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
  }

  .toc-toggle[aria-expanded="true"] .chev {
    transform: rotate(-135deg);
  }

  .toc > ol {
    display: none;
    margin-top: 0.9rem;
  }

  .toc.open > ol {
    display: block;
  }
}

@media (max-width: 620px) {
  .syntax-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .path-label {
    min-width: 0;
  }

  .crumb {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .hero,
  .panel {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Additions for the boot-logo article
   (command blocks, file trees, generic tabs, warnings)
   ============================================================ */

/* ---------- command blocks ---------- */

.cmd {
  position: relative;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(9, 7, 13, 0.72);
  overflow: hidden;
}

.cmd-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(120, 81, 255, 0.08);
}

.cmd-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lilac);
}

.cmd-copy {
  margin-left: auto;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cmd-copy:hover {
  color: #fff;
  border-color: var(--violet-line);
  background: rgba(120, 81, 255, 0.2);
}

.cmd pre {
  margin: 0;
  padding: 0.95rem 1rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: #ddd3ff;
  tab-size: 2;
}

.cmd pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  color: inherit;
  white-space: pre;
}

.cmd .c {
  color: rgba(247, 245, 255, 0.4);
}

/* ---------- file tree ---------- */

.tree {
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(9, 7, 13, 0.55);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--muted);
  overflow-x: auto;
  white-space: pre;
}

.tree b {
  color: var(--lilac);
  font-weight: 500;
}

.tree i {
  color: var(--dim);
  font-style: normal;
}

/* ---------- generic tabs ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.tabs button {
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.22s ease;
}

.tabs button:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.tabs button[aria-selected="true"] {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
  box-shadow: 0 10px 26px rgba(120, 81, 255, 0.32);
}

[data-tab-pane][hidden] {
  display: none;
}

/* ---------- warning callout ---------- */

.warn {
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-left-width: 2px;
  border-left-color: #fbbf24;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(251, 191, 36, 0.07);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.warn strong {
  color: #fcd34d;
}

/* ---------- inline key/value spec rows ---------- */

.spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
  margin: 0 0 1.25rem;
}

.spec > div {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.spec dt {
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dim);
}

.spec dd {
  margin: 0.2rem 0 0;
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--text);
}

/* ============================================================
   Additions for blog index / category listing pages
   ============================================================ */

/* ---------- back link ---------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--lilac);
}

/* ---------- category grid (blog index) ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

.category-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-card:focus-visible {
  border-color: var(--violet-line);
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(120, 81, 255, 0.2);
}

.category-icon {
  flex: none;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: #f4f2ff;
  border: 1px solid var(--violet-line);
  overflow: hidden;
}

.category-icon img {
  width: 68%;
  height: 68%;
  object-fit: contain;
}

.category-body h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.category-body p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.category-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--lilac);
  letter-spacing: 0.02em;
}

.category-card:hover .category-link {
  color: #fff;
}

/* ---------- post list (category pages) ---------- */

.post-list {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

.post-card {
  display: block;
  padding: 1.5rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover,
.post-card:focus-visible {
  border-color: var(--violet-line);
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(120, 81, 255, 0.2);
}

.post-eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lilac);
}

.post-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.post-card p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  max-width: 62ch;
}

.post-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--lilac);
}

.post-card:hover .post-link {
  color: #fff;
}
