/* =========================================================================
   STRATA — Design System
   Custom CSS layered on top of Tailwind.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&family=Inter:ital,wght@0,300..800;1,300..800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* --- Ink (primary neutral) --- */
  --ink-950: #07090F;
  --ink-900: #0E1118;
  --ink-800: #161A24;
  --ink-700: #232836;
  --ink-600: #353B4C;
  --ink-500: #545A6E;
  --ink-400: #7C8294;
  --ink-300: #A9AEBC;
  --ink-200: #D2D5DE;
  --ink-100: #E7E9EF;
  --ink-50:  #F4F5F8;
  --ink-25:  #FAFAFC;

  /* --- Surface --- */
  --canvas:  #F6F5F1;     /* warm paper */
  --paper:   #FFFEFB;     /* raised */
  --vellum:  #EFEDE6;     /* sunken */

  /* --- Accents --- */
  --lime-500: #CCFF00;    /* signature electric lime */
  --lime-400: #DAFF4D;
  --lime-300: #E8FF85;
  --lime-100: #F4FFC2;

  --cobalt-500: #2E4BFF;
  --cobalt-400: #5A72FF;
  --cobalt-100: #DBE1FF;

  --coral-500: #FF6B4A;
  --coral-400: #FF8E74;
  --coral-100: #FFE0D6;

  --plum-500: #6B3FA0;
  --plum-100: #E5D8F2;

  /* --- Signal --- */
  --success-500: #1B9E5A;
  --success-100: #C9EED9;
  --warning-500: #D97706;
  --warning-100: #FBE7C4;
  --danger-500:  #DC2626;
  --danger-100:  #F8D1D1;
  --info-500:    #2E4BFF;
  --info-100:    #DBE1FF;

  /* --- Radii --- */
  --r-0:   0px;
  --r-1:   2px;
  --r-2:   4px;
  --r-3:   6px;
  --r-4:   8px;
  --r-5:  12px;
  --r-6:  16px;
  --r-7:  24px;
  --r-full: 9999px;

  /* --- Elevation --- */
  --elev-0: none;
  --elev-1: 0 1px 0 rgba(7,9,15,.04), 0 0 0 1px rgba(7,9,15,.06);
  --elev-2: 0 1px 2px rgba(7,9,15,.06), 0 2px 8px rgba(7,9,15,.04), 0 0 0 1px rgba(7,9,15,.05);
  --elev-3: 0 4px 12px rgba(7,9,15,.08), 0 12px 32px rgba(7,9,15,.06), 0 0 0 1px rgba(7,9,15,.05);
  --elev-4: 0 12px 32px rgba(7,9,15,.12), 0 32px 64px rgba(7,9,15,.10), 0 0 0 1px rgba(7,9,15,.06);

  /* --- Motion --- */
  --d-fast:    120ms;
  --d-std:     200ms;
  --d-slow:    320ms;
  --d-deliberate: 520ms;
  --ease-standard:  cubic-bezier(.2, .8, .2, 1);
  --ease-enter:     cubic-bezier(.0, .0, .2, 1);
  --ease-exit:      cubic-bezier(.4, .0, 1, 1);
  --ease-emphatic:  cubic-bezier(.86, 0, .07, 1);

  /* --- Type --- */
  --font-display: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --font-ui:      'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* =========================================================================
   BASE
   ========================================================================= */

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html, body {
  font-family: var(--font-ui);
  background: var(--canvas);
  color: var(--ink-900);
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: clip;
}

/* Long words in display headings (Geist at large sizes) shouldn't punch through the viewport */
.font-display {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(7,9,15,.045) 1px, transparent 0);
  background-size: 28px 28px;
}

.font-display {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  font-weight: 500;
  font-feature-settings: 'ss01', 'ss02', 'cv11';
}
.font-mono { font-family: var(--font-mono); }

/* Editorial "voice" accent — italic, slightly lighter, with a subtle lime underline.
   Use on a span inside a display heading to mark a moment of emphasis. */
.italic-accent {
  font-family: 'Inter', var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  position: relative;
  padding-right: 0.04em;
}
.italic-accent::after {
  content: '';
  position: absolute;
  left: 0.04em; right: 0.18em; bottom: 0.06em;
  height: 0.06em;
  background: var(--lime-500);
  z-index: -1;
  opacity: .9;
}

/* Selection */
::selection { background: var(--lime-500); color: var(--ink-950); }

/* =========================================================================
   LAYOUT
   ========================================================================= */

.container-strata { max-width: 1240px; margin-inline: auto; padding-inline: 32px; }
@media (max-width: 720px) { .container-strata { padding-inline: 20px; } }

.gridline {
  background-image:
    linear-gradient(to right, rgba(7,9,15,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(7,9,15,.06) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hairline { border: 1px solid rgba(7,9,15,.10); }
.hairline-strong { border: 1px solid rgba(7,9,15,.18); }
.hairline-b { border-bottom: 1px solid rgba(7,9,15,.10); }
.hairline-t { border-top: 1px solid rgba(7,9,15,.10); }

/* =========================================================================
   NAV
   ========================================================================= */

.strata-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,245,241,.78);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(7,9,15,.08);
}

.brand-mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  letter-spacing: 0.02em; color: var(--ink-950);
  text-transform: uppercase;
}
.brand-glyph {
  width: 22px; height: 22px; position: relative; display: inline-block;
}
.brand-glyph::before, .brand-glyph::after {
  content: ''; position: absolute; left: 0; right: 0; height: 4px;
  background: var(--ink-950); border-radius: 1px;
}
.brand-glyph::before { top: 3px; }
.brand-glyph::after  { bottom: 3px; background: var(--lime-500); height: 4px; box-shadow: 0 -7px 0 var(--ink-950); }

/* On dark surfaces — keep the lime accent, lighten the dark stripes */
.brand-glyph.on-dark::before { background: var(--ink-100); }
.brand-glyph.on-dark::after  { box-shadow: 0 -7px 0 var(--ink-100); }

.nav-link {
  font-size: 14px; font-weight: 500; color: var(--ink-700);
  padding: 8px 12px; border-radius: var(--r-3);
  transition: color var(--d-fast) var(--ease-standard), background var(--d-fast) var(--ease-standard);
}
.nav-link:hover { color: var(--ink-950); background: rgba(7,9,15,.04); }
.nav-link.active { color: var(--ink-950); background: rgba(7,9,15,.06); }

/* =========================================================================
   ATOMS — Buttons
   ========================================================================= */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-ui); font-weight: 500; font-size: 14px; line-height: 1;
  padding: 10px 16px; border-radius: var(--r-3); border: 1px solid transparent;
  transition: transform var(--d-fast) var(--ease-standard),
              background var(--d-fast) var(--ease-standard),
              box-shadow var(--d-fast) var(--ease-standard),
              color var(--d-fast) var(--ease-standard);
  cursor: pointer; white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--lime-500); outline-offset: 2px; }
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--ink-950); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 0 rgba(7,9,15,.10);
}
.btn-primary:hover { background: var(--ink-800); }

.btn-accent {
  background: var(--lime-500); color: var(--ink-950);
  box-shadow: inset 0 -2px 0 rgba(7,9,15,.12);
  font-weight: 600;
}
.btn-accent:hover { background: var(--lime-400); }

.btn-secondary {
  background: var(--paper); color: var(--ink-900);
  border-color: rgba(7,9,15,.14);
  box-shadow: 0 1px 0 rgba(7,9,15,.04);
}
.btn-secondary:hover { background: var(--ink-25); border-color: rgba(7,9,15,.22); }

.btn-ghost { background: transparent; color: var(--ink-800); }
.btn-ghost:hover { background: rgba(7,9,15,.06); }

.btn-danger { background: var(--danger-500); color: #fff; }
.btn-danger:hover { background: #B61E1E; }

.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: var(--r-2); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: var(--r-4); }
.btn-icon { padding: 9px; }
.btn-icon.btn-sm { padding: 7px; }

/* =========================================================================
   ATOMS — Inputs
   ========================================================================= */

.field {
  display: block; width: 100%; font-family: var(--font-ui);
  font-size: 14px; color: var(--ink-900);
  background: var(--paper);
  border: 1px solid rgba(7,9,15,.16);
  border-radius: var(--r-3); padding: 10px 12px;
  transition: border-color var(--d-fast) var(--ease-standard), box-shadow var(--d-fast) var(--ease-standard);
}
.field::placeholder { color: var(--ink-400); }
.field:hover { border-color: rgba(7,9,15,.28); }
.field:focus {
  outline: none;
  border-color: var(--ink-900);
  box-shadow: 0 0 0 3px rgba(7,9,15,.10);
}
.field-error {
  border-color: var(--danger-500);
  box-shadow: 0 0 0 3px rgba(220,38,38,.14);
}

.field-affix {
  display: flex; align-items: center;
  background: var(--paper);
  border: 1px solid rgba(7,9,15,.16);
  border-radius: var(--r-3);
  transition: border-color var(--d-fast) var(--ease-standard), box-shadow var(--d-fast) var(--ease-standard);
}
.field-affix:focus-within {
  border-color: var(--ink-900);
  box-shadow: 0 0 0 3px rgba(7,9,15,.10);
}
.field-affix .field { border: none; background: transparent; box-shadow: none; padding-left: 8px; }
.field-affix .field:focus { box-shadow: none; }
.field-affix .affix {
  padding: 0 12px; color: var(--ink-400); font-size: 14px;
  display: flex; align-items: center;
}
.field-affix .affix svg { width: 16px; height: 16px; }

.label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--ink-800); margin-bottom: 6px;
}
.help { font-size: 12px; color: var(--ink-500); margin-top: 6px; }
.help-error { color: var(--danger-500); }

/* Checkbox / Radio */
.check {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--ink-400);
  border-radius: var(--r-2);
  background: var(--paper);
  cursor: pointer; position: relative;
  transition: all var(--d-fast) var(--ease-standard);
  flex-shrink: 0;
}
.check:hover { border-color: var(--ink-700); }
.check:checked {
  background: var(--ink-950); border-color: var(--ink-950);
}
.check:checked::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='none' stroke='%23CCFF00' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3 3 7-7'/></svg>");
  background-size: contain; background-repeat: no-repeat;
}
.check.radio { border-radius: var(--r-full); }
.check.radio:checked { background: var(--paper); }
.check.radio:checked::after {
  content: '';
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-950);
  background-image: none;
  transform: translate(-50%, -50%);
}

/* Switch */
.switch {
  appearance: none; -webkit-appearance: none;
  width: 36px; height: 20px;
  background: var(--ink-200);
  border-radius: var(--r-full);
  position: relative; cursor: pointer;
  transition: background var(--d-std) var(--ease-standard);
}
.switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(7,9,15,.18);
  transition: transform var(--d-std) var(--ease-standard);
}
.switch:checked { background: var(--ink-950); }
.switch:checked::after { transform: translateX(16px); }

/* =========================================================================
   ATOMS — Badges, Chips
   ========================================================================= */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; font-family: var(--font-mono);
  padding: 3px 8px; border-radius: var(--r-2);
  background: var(--ink-100); color: var(--ink-800);
  letter-spacing: 0.02em;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-100); color: #0E6A3A; }
.badge-warning { background: var(--warning-100); color: #8B4A04; }
.badge-danger  { background: var(--danger-100);  color: #8E1414; }
.badge-info    { background: var(--info-100);    color: #1B2EA8; }
.badge-accent  { background: var(--lime-100);    color: #5A6B00; }
.badge-ink     { background: var(--ink-950);     color: var(--lime-500); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  padding: 5px 10px; border-radius: var(--r-full);
  background: var(--paper); color: var(--ink-800);
  border: 1px solid rgba(7,9,15,.12);
}
.chip:hover { background: var(--ink-25); }

/* =========================================================================
   MOLECULES — Cards
   ========================================================================= */

.card {
  background: var(--paper);
  border-radius: var(--r-5);
  box-shadow: var(--elev-2);
  overflow: hidden;
}
.card-flat {
  background: var(--paper);
  border-radius: var(--r-5);
  border: 1px solid rgba(7,9,15,.08);
}
.card-ink {
  background: var(--ink-950); color: var(--ink-100);
  border-radius: var(--r-5);
  position: relative; overflow: hidden;
}
.card-ink::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
}

.kbd {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  padding: 2px 6px; min-width: 18px; justify-content: center;
  background: var(--ink-50); color: var(--ink-700);
  border: 1px solid rgba(7,9,15,.12);
  border-bottom-width: 2px;
  border-radius: var(--r-2);
}
.card-ink .kbd { background: var(--ink-800); color: var(--ink-200); border-color: var(--ink-700); }

/* =========================================================================
   MOLECULES — Tabs
   ========================================================================= */

.tabs {
  display: inline-flex; gap: 2px; padding: 4px;
  background: var(--ink-100); border-radius: var(--r-4);
}
.tab {
  padding: 7px 14px; font-size: 13px; font-weight: 500;
  color: var(--ink-600); border-radius: var(--r-3);
  cursor: pointer; transition: all var(--d-fast) var(--ease-standard);
}
.tab:hover { color: var(--ink-900); }
.tab.active { background: var(--paper); color: var(--ink-950); box-shadow: var(--elev-1); }

.tabs-underline { display: flex; gap: 24px; border-bottom: 1px solid rgba(7,9,15,.10); }
.tab-underline {
  padding: 12px 0; font-size: 14px; font-weight: 500; color: var(--ink-500);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  cursor: pointer; transition: all var(--d-fast) var(--ease-standard);
}
.tab-underline:hover { color: var(--ink-800); }
.tab-underline.active { color: var(--ink-950); border-color: var(--ink-950); }

/* =========================================================================
   MOLECULES — Alerts
   ========================================================================= */

.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-4);
  border: 1px solid;
}
.alert-icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; }
.alert-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.alert-body  { font-size: 13px; line-height: 1.55; }
.alert-info   { background: var(--info-100);    border-color: #C3CDFF; color: #1B2EA8; }
.alert-success{ background: var(--success-100); border-color: #B0E3C9; color: #0E6A3A; }
.alert-warning{ background: var(--warning-100); border-color: #F3D3A1; color: #8B4A04; }
.alert-danger { background: var(--danger-100);  border-color: #ECB7B7; color: #8E1414; }

/* =========================================================================
   AVATARS
   ========================================================================= */

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--r-full);
  background: var(--ink-950); color: var(--lime-500);
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  border: 2px solid var(--paper);
  flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg { width: 48px; height: 48px; font-size: 16px; }
.avatar-stack > .avatar + .avatar { margin-left: -10px; }

/* =========================================================================
   PROGRESS
   ========================================================================= */

.progress {
  height: 6px; background: var(--ink-100); border-radius: var(--r-full); overflow: hidden;
}
.progress-bar { height: 100%; background: var(--ink-950); border-radius: var(--r-full); transition: width var(--d-slow) var(--ease-standard); }
.progress-bar.accent { background: var(--lime-500); }

/* =========================================================================
   TABLE
   ========================================================================= */

.t-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--paper); font-size: 14px;
}
.t-table th {
  text-align: left; font-weight: 500; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-500); padding: 12px 16px;
  border-bottom: 1px solid rgba(7,9,15,.10); background: var(--ink-25);
  font-family: var(--font-mono);
}
.t-table td {
  padding: 14px 16px; border-bottom: 1px solid rgba(7,9,15,.06);
  color: var(--ink-800);
}
.t-table tr:last-child td { border-bottom: none; }
.t-table tr:hover td { background: var(--ink-25); }

/* =========================================================================
   TOKEN CARDS
   ========================================================================= */

.swatch {
  display: flex; flex-direction: column;
  border-radius: var(--r-4); overflow: hidden;
  box-shadow: var(--elev-1);
  background: var(--paper);
}
.swatch .chip-color {
  height: 88px; position: relative;
}
.swatch .chip-color::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(7,9,15,.06);
  pointer-events: none;
}
.swatch .meta {
  padding: 10px 12px; display: flex; flex-direction: column; gap: 2px;
  background: var(--paper);
}
.swatch .meta .name { font-size: 12px; font-weight: 500; color: var(--ink-900); }
.swatch .meta .value { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); }

.token-row {
  display: grid; grid-template-columns: 80px 1fr 120px; gap: 16px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid rgba(7,9,15,.06);
}
.token-row:last-child { border-bottom: none; }
.token-row .num {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-500);
  background: var(--ink-50); padding: 4px 8px; border-radius: var(--r-2); width: max-content;
}
.token-row .name { font-family: var(--font-mono); font-size: 13px; color: var(--ink-900); }
.token-row .value { font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); text-align: right; }

/* spacing block visualizer */
.space-bar { height: 12px; background: var(--lime-500); border-radius: 2px; }

/* radius visualizer */
.radius-demo {
  width: 56px; height: 56px; background: var(--ink-950);
}

/* shadow visualizer */
.shadow-demo {
  width: 100%; aspect-ratio: 1.4 / 1;
  background: var(--paper); border-radius: var(--r-4);
  display: flex; align-items: center; justify-content: center;
}

/* =========================================================================
   MISC
   ========================================================================= */

.eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-500); font-weight: 500;
}

.divider { height: 1px; background: rgba(7,9,15,.10); width: 100%; }

.dot-leader {
  flex: 1; border-bottom: 1px dotted rgba(7,9,15,.18);
  margin: 0 12px; transform: translateY(-6px);
}

.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pulse-dot { position: relative; display: inline-block; width: 8px; height: 8px; }
.pulse-dot::before, .pulse-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--success-500);
}
.pulse-dot::after {
  animation: pulse 1.6s var(--ease-standard) infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Hero glyph */
.hero-mark {
  display: block; width: 100%; aspect-ratio: 1 / 1;
  background: var(--ink-950); border-radius: var(--r-6);
  position: relative; overflow: hidden;
}
.hero-mark .stripe {
  position: absolute; left: 0; right: 0; height: 8px;
  background: var(--ink-700);
}
.hero-mark .stripe.lime { background: var(--lime-500); }
.hero-mark .label {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-400); letter-spacing: 0.08em;
}

/* footer */
.strata-footer {
  background: var(--ink-950); color: var(--ink-300);
  margin-top: 80px;
}
.strata-footer a { color: var(--ink-200); transition: color var(--d-fast) var(--ease-standard); }
.strata-footer a:hover { color: var(--lime-500); }

/* =========================================================================
   ACCESSIBILITY
   ========================================================================= */

.skip-link {
  position: absolute; top: -48px; left: 12px; z-index: 100;
  background: var(--ink-950); color: var(--lime-500);
  padding: 10px 18px; border-radius: var(--r-3);
  font-family: var(--font-mono); font-size: 13px;
  text-decoration: none;
  transition: top var(--d-std) var(--ease-standard);
}
.skip-link:focus { top: 12px; outline: 2px solid var(--lime-500); outline-offset: 2px; }

a:focus-visible {
  outline: 2px solid var(--lime-500);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   CODE BLOCKS (Getting Started)
   ========================================================================= */

.code-block {
  background: var(--ink-950);
  color: var(--ink-200);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  padding: 22px 24px;
  border-radius: var(--r-4);
  overflow-x: auto;
  position: relative;
  border: 1px solid var(--ink-800);
}
.code-block::-webkit-scrollbar { height: 6px; }
.code-block::-webkit-scrollbar-thumb { background: var(--ink-700); border-radius: 3px; }
.code-block .cb-header {
  display: flex; align-items: center; justify-content: space-between;
  margin: -22px -24px 16px; padding: 10px 16px;
  border-bottom: 1px solid var(--ink-800);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-400);
}
.code-block .cb-lang { color: var(--lime-500); font-weight: 600; }
.code-block .com { color: var(--ink-500); }
.code-block .kw  { color: var(--lime-500); }
.code-block .str { color: #FFB89F; }
.code-block .prop{ color: var(--cobalt-400); }
.code-block .num { color: #E8FF85; }
.code-block .fn  { color: #DAFF85; }
.code-block .tag { color: var(--cobalt-400); }
.code-block .attr{ color: var(--lime-300); }

.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--ink-950); color: var(--lime-500);
  border-radius: var(--r-3);
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  flex-shrink: 0;
}

/* loading fallback while Tailwind script hasn't run */
.no-tw-fallback { font-family: var(--font-ui); color: var(--ink-700); }
