/* wPONS — Rarible DESIGN.md + rarible.com/all layout, light inversion of the surface stack.
   Dark -> light mapping (surfaces/foreground only, lime untouched):
   onyx-black #0a0a0a (canvas+cards)  -> #fafafa
   carbon #18181b (interactive)       -> #f0f0ef
   zinc-hairline #27272a              -> #e4e4e7
   smoke #3b3b3b (heavier borders)    -> #d4d4d8
   pure-white #ffffff (foreground)    -> #0a0a0a
   steel-gray #9d9d9d (secondary)     -> #71717a
   ash-gray #6c6c6c (tertiary)        -> #a1a1aa */
:root {
  /* Colors */
  --color-highlighter-lime: #faff00;
  --surface-page-canvas: #fafafa;
  --surface-card-table-surface: #fafafa;
  --surface-interactive-surface: #f0f0ef;
  --color-zinc-hairline: #e4e4e7;
  --color-smoke: #d4d4d8;
  --color-fg: #0a0a0a;
  --color-steel-gray: #71717a;
  --color-ash-gray: #a1a1aa;
  --negative-pink: #be123c;
  --negative-pink-bg: #ffe4e6;

  /* Typography — Font Families */
  --font-geist-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-tomorrow: 'Tomorrow', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Typography — Scale */
  --text-caption: 10px;
  --leading-caption: 1;
  --text-body: 14px;
  --leading-body: 1.43;
  --text-subheading: 18px;
  --leading-subheading: 1.4;
  --text-heading: 24px;
  --leading-heading: 1.29;
  --text-heading-lg: 28px;
  --leading-heading-lg: 1.17;
  --font-weight-regular: 400;
  --font-weight-medium: 500;

  /* Spacing */
  --spacing-8: 8px;
  --spacing-16: 16px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-40: 40px;
  --spacing-48: 48px;

  /* Layout */
  --page-max-width: 1440px;
  --section-gap: 32px;
  --card-padding: 16px;
  --element-gap: 8px;

  /* Border Radius */
  --radius-cards: 12px;
  --radius-pills: 9999px;
  --radius-images: 6px;
  --radius-inputs: 6px;
  --radius-buttons: 6px;

  /* Shadows */
  --shadow-subtle: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
  --shadow-subtle-2: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--surface-page-canvas); color: var(--color-fg);
  font-family: var(--font-geist-mono);
  font-size: var(--text-body); line-height: var(--leading-body); font-weight: var(--font-weight-regular);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
.mono, code { font-family: var(--font-geist-mono); }
::selection { background: var(--color-highlighter-lime); color: var(--color-fg); }

/* the single highlighter mark */
.hl { background: var(--color-highlighter-lime); color: var(--color-fg); padding: 0 .12em; }

/* notice bar — dark strip, lime link (as the reference) */
.notice {
  background: #0a0a0a; color: #ffffff;
  font-size: 12px; text-align: center;
  padding: 6px 40px; position: relative;
}
.notice a { color: var(--color-highlighter-lime); text-decoration: none; }
.notice a:hover { text-decoration: underline; }
.notice .nclose {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; color: #9d9d9d; font-size: 13px; padding: 2px 6px; cursor: pointer; box-shadow: none; border-radius: 0;
}
.notice .nclose:hover { color: #fff; filter: none; }

.wrap { max-width: var(--page-max-width); margin: 0 auto; padding: 0 var(--spacing-24) var(--spacing-24); min-height: 100vh; display: flex; flex-direction: column; }
.wrap > footer { margin-top: auto; padding-top: var(--spacing-8); }

/* header — full-width bar, ~56px, hairline bottom, central search */
header {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  height: 56px; border-bottom: 1px solid var(--color-zinc-hairline);
  position: sticky; top: 0; background: rgba(250, 250, 250, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-fg); }
.brand img { width: 30px; height: 30px; border: 1px solid var(--color-zinc-hairline); border-radius: var(--radius-images); display: block; }
.logo { font-family: var(--font-tomorrow); font-weight: var(--font-weight-medium); font-size: 17px; }
.logo b { font-weight: var(--font-weight-medium); background: var(--color-highlighter-lime); padding: 0 2px; }
nav.menu { display: flex; gap: var(--element-gap); }
nav.menu a {
  color: var(--color-steel-gray); text-decoration: none; font-size: var(--text-body);
  padding: 6px 10px; border-radius: var(--radius-buttons);
  transition: color .15s, background .15s;
}
nav.menu a:hover { color: var(--color-fg); }
nav.menu a.active { color: var(--color-fg); background: var(--color-highlighter-lime); }

/* search input — canvas bg, hairline, 6px */
.search { flex: 1; max-width: 420px; margin: 0 auto; position: relative; }
.search .sico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--color-steel-gray); font-size: 15px; pointer-events: none; }
.search input {
  width: 100%; background: var(--surface-page-canvas); border: 1px solid var(--color-zinc-hairline); border-radius: var(--radius-inputs);
  font-family: var(--font-geist-mono); font-size: var(--text-body); color: var(--color-fg);
  padding: 8px 12px 8px 32px; outline: none; box-shadow: var(--shadow-subtle);
}
.search input::placeholder { color: var(--color-ash-gray); }
.search input:focus { border-color: var(--color-smoke); }

.hright { display: flex; align-items: center; gap: var(--element-gap); }
.ico { width: 18px; height: 18px; display: block; }
.ico-x { filter: brightness(0); width: 14px; height: 14px; }
footer .socials img.ico-x { width: 10px; height: 10px; }
a.icolink { opacity: .7; transition: opacity .15s; }
a.icolink:hover { opacity: 1; }

/* ghost button (secondary): transparent, hairline, 6px */
a.osbtn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--color-fg); border: 1px solid var(--color-zinc-hairline); border-radius: var(--radius-buttons);
  font-family: var(--font-geist-mono); font-weight: var(--font-weight-medium); font-size: var(--text-body);
  padding: 8px 16px; text-decoration: none;
  transition: background .15s, border-color .15s;
}
a.osbtn img { width: 16px; height: 16px; display: block; }
a.osbtn:hover { background: var(--surface-interactive-surface); }

/* primary CTA: #faff00 fill, black text, pill, compact — the only colored button */
button {
  background: var(--color-highlighter-lime); color: #000000; border: none; border-radius: var(--radius-pills);
  font-family: var(--font-geist-mono); font-weight: var(--font-weight-medium); font-size: var(--text-body);
  padding: 8px 16px; cursor: pointer;
  transition: filter .15s, background .15s;
  box-shadow: var(--shadow-subtle);
}
button:hover { filter: brightness(.95); }
button:disabled { background: var(--surface-interactive-surface); color: var(--color-ash-gray); cursor: not-allowed; filter: none; box-shadow: none; }
button.ghost { background: transparent; color: var(--color-fg); border: 1px solid var(--color-zinc-hairline); border-radius: var(--radius-buttons); box-shadow: var(--shadow-subtle); }
button.ghost:hover { background: var(--surface-interactive-surface); filter: none; }

/* chain-filter chips row — centered under header */
.chips { display: flex; justify-content: center; gap: var(--element-gap); padding: 10px 0 2px; }
button.chip {
  background: transparent; color: var(--color-steel-gray); border: 1px solid var(--color-zinc-hairline); border-radius: var(--radius-pills);
  font-size: 13px; padding: 5px 14px; box-shadow: none;
}
button.chip:hover { color: var(--color-fg); filter: none; background: var(--surface-interactive-surface); }
button.chip.active { background: var(--color-highlighter-lime); border-color: var(--color-highlighter-lime); color: #000; }

/* featured banner — full-width image card, overlay bottom-left, glitched */
.banner {
  position: relative; margin-top: var(--spacing-16);
  border: 1px solid var(--color-zinc-hairline); border-radius: var(--radius-cards); overflow: hidden;
  aspect-ratio: 3 / 1; max-height: 460px; min-height: 300px;
}
.banner .bimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.banner img.gl { pointer-events: none; opacity: 0; }
.banner img.gl.r { filter: saturate(3) hue-rotate(-50deg); mix-blend-mode: multiply; animation: glitch-r 3.1s infinite steps(1); }
.banner img.gl.c { filter: saturate(3) hue-rotate(130deg); mix-blend-mode: multiply; animation: glitch-c 2.7s infinite steps(1); }
.banner img.base { animation: glitch-base 3.1s infinite steps(1); }
.bshade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(250,250,250,0) 34%, rgba(250,250,250,.68) 68%, rgba(250,250,250,.96) 100%); }
.bmeta { position: absolute; left: var(--spacing-24); right: var(--spacing-24); bottom: 18px; }
.bstatus { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--color-fg); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.dot { width: 8px; height: 8px; border-radius: var(--radius-pills); background: var(--color-highlighter-lime); border: 1px solid rgba(10,10,10,.25); display: inline-block; }
.bmeta h1 { font-family: var(--font-tomorrow); font-weight: var(--font-weight-medium); font-size: clamp(22px, 2.4vw, var(--text-heading-lg)); line-height: var(--leading-heading-lg); }
.bmeta h1 em { font-style: normal; }
.bby { margin-top: 6px; font-size: 13px; color: var(--color-steel-gray); }
.bby b { color: var(--color-fg); font-weight: var(--font-weight-medium); }
.bcta { display: flex; align-items: center; gap: var(--element-gap); margin-top: 14px; flex-wrap: wrap; }
.bcta button.big { padding: 10px 20px; }
.bstat { display: inline-grid; margin-left: var(--spacing-16); }
.bstat i { font-style: normal; font-size: var(--text-caption); text-transform: uppercase; letter-spacing: .08em; color: var(--color-steel-gray); }
.bstat b { font-size: var(--text-body); font-weight: var(--font-weight-medium); color: var(--color-fg); }
@keyframes glitch-base {
  0%, 100% { transform: none; filter: none; }
  8% { transform: translateX(3px) skewX(-1.2deg); }
  9.5% { transform: none; }
  34% { transform: translateX(-4px); filter: saturate(1.6) contrast(1.15); }
  35.5% { transform: none; filter: none; }
  61% { transform: translateY(2px) skewX(2deg); filter: invert(.08); }
  62.5% { transform: none; filter: none; }
  83% { transform: scaleX(1.015); }
  84% { transform: none; }
}
@keyframes glitch-r {
  0%, 100% { opacity: 0; }
  8% { opacity: .85; transform: translateX(-9px); clip-path: inset(12% 0 64% 0); }
  9.5% { opacity: 0; }
  33% { opacity: .9; transform: translateX(7px); clip-path: inset(48% 0 22% 0); }
  35.5% { opacity: 0; }
  61% { opacity: .8; transform: translateX(-12px) translateY(2px); clip-path: inset(70% 0 6% 0); }
  62.5% { opacity: 0; }
  83% { opacity: .7; transform: translateX(6px); clip-path: inset(2% 0 84% 0); }
  84.5% { opacity: 0; }
}
@keyframes glitch-c {
  0%, 100% { opacity: 0; }
  14% { opacity: .85; transform: translateX(10px); clip-path: inset(30% 0 44% 0); }
  15.5% { opacity: 0; }
  41% { opacity: .9; transform: translateX(-8px) translateY(-2px); clip-path: inset(58% 0 12% 0); }
  43% { opacity: 0; }
  68% { opacity: .8; transform: translateX(11px); clip-path: inset(6% 0 76% 0); }
  69.5% { opacity: 0; }
  90% { opacity: .75; transform: translateX(-6px); clip-path: inset(40% 0 40% 0); }
  91.5% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .banner img.gl, .banner img.base { animation: none; }
}

#balances { font-size: 12px; color: var(--color-steel-gray); }
#status { font-size: 12px; color: var(--color-steel-gray); min-height: 18px; margin-top: 8px; word-break: break-all; }
#status a { color: var(--color-fg); font-weight: var(--font-weight-medium); }

/* section headings — Tomorrow, editorial voice */
h2 {
  margin: var(--section-gap) 0 12px; font-family: var(--font-tomorrow); font-size: var(--text-heading); font-weight: var(--font-weight-medium); line-height: var(--leading-heading);
  color: var(--color-fg); display: flex; align-items: center; gap: 12px;
}
h2::after { content: ''; flex: 1; height: 1px; background: var(--color-zinc-hairline); order: 1; }
h2 .h2right { order: 2; }
.limelink { background: var(--color-highlighter-lime); color: #000; text-decoration: none; font-family: var(--font-geist-mono); font-size: 12px; font-weight: var(--font-weight-medium); padding: 3px 10px; border-radius: var(--radius-buttons); }
.limelink:hover { filter: brightness(.95); }

/* collection cards row — horizontal, 6-up, scrollable */
.cardsrow { display: flex; gap: var(--element-gap); overflow-x: auto; padding: var(--element-gap) 2px var(--spacing-8); margin-top: var(--element-gap); scrollbar-width: thin; }
.cardsrow::-webkit-scrollbar { height: 8px; }
.cardsrow::-webkit-scrollbar-thumb { background: var(--color-smoke); border-radius: var(--radius-pills); }
.pcard {
  flex: 0 0 clamp(180px, calc((100% - 5 * var(--element-gap)) / 6), 232px);
  background: var(--surface-card-table-surface); border: 1px solid var(--color-zinc-hairline); border-radius: var(--radius-cards);
  padding: 12px; cursor: pointer; transition: border-color .15s;
}
.pcard:hover { border-color: var(--color-smoke); }
.pcard .nm { font-family: var(--font-tomorrow); font-weight: var(--font-weight-medium); font-size: var(--text-body); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pcard .nm .st { font-family: var(--font-geist-mono); font-size: var(--text-caption); text-transform: uppercase; letter-spacing: .06em; color: var(--color-ash-gray); }
.pcard .nm .st.on { background: var(--color-highlighter-lime); color: #000; padding: 1px 6px; border-radius: var(--radius-buttons); }
.pcard img { width: 100%; display: block; border-radius: var(--radius-images); margin: 10px 0; border: 1px solid var(--color-zinc-hairline); }
.pcard .fl { font-size: 12px; color: var(--color-steel-gray); }
.pcard .fl b { color: var(--color-fg); font-weight: var(--font-weight-medium); }
.pcard.dim { opacity: .35; }

/* steps — flat cards, 16px padding */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--element-gap); }
.step { padding: var(--card-padding); background: var(--surface-card-table-surface); border: 1px solid var(--color-zinc-hairline); border-radius: var(--radius-cards); font-size: var(--text-body); line-height: 1.55; }
.step b { display: block; margin-bottom: 6px; font-family: var(--font-tomorrow); font-weight: var(--font-weight-medium); font-size: var(--text-subheading); }
.step .n { font-family: var(--font-geist-mono); color: var(--color-ash-gray); font-size: 12px; margin-right: 10px; font-weight: var(--font-weight-medium); }
.step span { color: var(--color-steel-gray); }

/* grid pages (collection / my) */
.card {
  background: var(--surface-card-table-surface); border: 1px solid var(--color-zinc-hairline); border-radius: var(--radius-images); overflow: hidden;
  text-align: left; cursor: pointer;
  transition: border-color .15s;
}
.card:hover { border-color: var(--color-smoke); }
.card .imgbox { overflow: hidden; border-bottom: 1px solid var(--color-zinc-hairline); }
.card img { width: 100%; display: block; }
.card .id { font-size: 12px; color: var(--color-steel-gray); padding: 7px 10px; }
.card.mine .id { color: var(--color-fg); }
.card .id b { color: #000; font-weight: var(--font-weight-medium); text-transform: uppercase; font-size: var(--text-caption); letter-spacing: .06em; background: var(--color-highlighter-lime); padding: 0 3px; }
.card .id .nm { color: var(--color-ash-gray); text-transform: uppercase; font-size: var(--text-caption); letter-spacing: .06em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--element-gap); }
.empty { color: var(--color-steel-gray); font-size: 12px; padding: var(--card-padding); background: var(--surface-card-table-surface); border: 1px dashed var(--color-smoke); border-radius: var(--radius-cards); }

/* launchpad form */
.lsub { color: var(--color-steel-gray); font-size: var(--text-body); max-width: 72ch; margin: -4px 0 var(--spacing-16); }
.lgrid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--element-gap); align-items: start; }
@media (max-width: 860px) { .lgrid { grid-template-columns: 1fr; } }
.lcol { display: flex; flex-direction: column; gap: var(--element-gap); }
.lcard { background: var(--surface-card-table-surface); border: 1px solid var(--color-zinc-hairline); border-radius: var(--radius-cards); padding: var(--card-padding); }
.lhead { font-family: var(--font-tomorrow); font-weight: var(--font-weight-medium); font-size: var(--text-subheading); margin-bottom: 12px; }
.lcard label { display: block; font-size: var(--text-caption); text-transform: uppercase; letter-spacing: .08em; color: var(--color-steel-gray); margin: 10px 0 0; }
.lcard input, .lcard textarea {
  display: block; width: 100%; margin-top: 5px;
  background: var(--surface-page-canvas); border: 1px solid var(--color-zinc-hairline); border-radius: var(--radius-inputs);
  font-family: var(--font-geist-mono); font-size: var(--text-body); color: var(--color-fg);
  padding: 8px 12px; outline: none; box-shadow: var(--shadow-subtle); resize: vertical;
}
.lcard input::placeholder, .lcard textarea::placeholder { color: var(--color-ash-gray); }
.lcard input:focus, .lcard textarea:focus { border-color: var(--color-smoke); }
.lrow2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--element-gap); }
.lnote { margin-top: 12px; font-size: 12px; color: var(--color-steel-gray); line-height: 1.55; }
.lnote b { color: var(--color-fg); font-weight: var(--font-weight-medium); }
.ldoc p { font-size: 13px; color: var(--color-steel-gray); margin: 8px 0; line-height: 1.6; }
.ldoc b { color: var(--color-fg); }
.launch-logo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-images); border: 1px solid var(--color-zinc-hairline); display: block; margin: 10px 0; background: var(--surface-interactive-surface); }

/* trending-style data tables: borderless, rows on canvas, hairline separators */
.tablebox { max-height: 460px; overflow-y: auto; }
.tablebox::-webkit-scrollbar { width: 8px; }
.tablebox::-webkit-scrollbar-thumb { background: var(--color-smoke); border-radius: var(--radius-pills); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-body); }
th, td { text-align: left; padding: 11px var(--element-gap); border-bottom: 1px solid var(--color-zinc-hairline); }
tr:last-child td { border-bottom: none; }
th {
  font-size: 12px; font-weight: var(--font-weight-regular); text-transform: uppercase; letter-spacing: .04em;
  background: var(--surface-page-canvas); color: var(--color-steel-gray); position: sticky; top: 0; border-bottom: 1px solid var(--color-zinc-hairline);
}
td { font-size: var(--text-body); vertical-align: middle; white-space: nowrap; }
td a { color: var(--color-fg); font-weight: var(--font-weight-medium); text-decoration: none; }
td a:hover { text-decoration: underline; }
tr.me td { background: var(--surface-interactive-surface); }
.num, th.num { text-align: right; }
.pill { display: inline-block; font-size: 12px; font-weight: var(--font-weight-medium); text-transform: uppercase; letter-spacing: .04em; padding: 2px 10px; line-height: 1.6; border-radius: var(--radius-pills); }
.pill.ev-wrap, .pill.wrap { background: var(--color-highlighter-lime); color: #000; }
.pill.ev-unwrap, .pill.unwrap { background: var(--negative-pink-bg); color: var(--negative-pink); }

/* tx steps in modal */
.txsteps { padding: 8px 0 2px; }
.txstep { display: flex; gap: 12px; align-items: center; padding: 8px 0; font-size: 12px; color: var(--color-steel-gray); }
.txstep .dot { width: 12px; height: 12px; background: transparent; border: 1px solid var(--color-smoke); }
.txstep.run { color: var(--color-fg); }
.txstep.run .dot { border-color: var(--color-fg); border-top-color: transparent; animation: spin .8s linear infinite; }
.txstep.done { color: var(--color-fg); }
.txstep.done .dot { border-color: var(--color-fg); background: var(--color-highlighter-lime); }
@keyframes spin { to { transform: rotate(360deg); } }

/* contracts */
.contract { background: var(--surface-card-table-surface); border: 1px solid var(--color-zinc-hairline); border-radius: var(--radius-cards); padding: 4px var(--card-padding); font-size: 12px; }
.contract .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 0; }
.contract .row + .row { border-top: 1px solid var(--color-zinc-hairline); }
.contract .lbl { color: var(--color-steel-gray); text-transform: uppercase; font-size: var(--text-caption); letter-spacing: .08em; width: 84px; }
.contract code { background: var(--surface-interactive-surface); border: 1px solid var(--color-zinc-hairline); border-radius: 4px; padding: 3px 9px; font-size: 11.5px; word-break: break-all; }
.contract a.ext { color: var(--color-fg); text-decoration: none; font-size: var(--text-body); }
.contract a.ext:hover { background: var(--color-highlighter-lime); }

/* modal — flat card, hairline */
.overlay { position: fixed; inset: 0; background: rgba(10, 10, 10, .35); display: none; align-items: center; justify-content: center; padding: var(--spacing-16); z-index: 10; }
.overlay.open { display: flex; }
.overlay.open .modal { animation: pop .16s ease-out; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal { background: var(--surface-page-canvas); border: 1px solid var(--color-smoke); border-radius: var(--radius-cards); max-width: 400px; width: 100%; padding: var(--card-padding); }
.modal img.art { width: 100%; display: block; border: 1px solid var(--color-zinc-hairline); border-radius: var(--radius-images); }
.modal .title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal .title b { font-family: var(--font-tomorrow); font-weight: var(--font-weight-medium); font-size: var(--text-subheading); }
.modal .kv { font-size: 11.5px; color: var(--color-steel-gray); word-break: break-all; margin-top: 10px; line-height: 1.8; }
.modal .kv a { color: var(--color-fg); }
.modal .links { display: flex; gap: var(--element-gap); margin-top: 14px; flex-wrap: wrap; }
.modal .links a {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--color-zinc-hairline); border-radius: var(--radius-buttons); color: var(--color-fg);
  background: transparent; padding: 7px 13px; font-size: 12px;
  text-decoration: none; transition: background .15s;
}
.modal .links a:hover { background: var(--surface-interactive-surface); }
.modal .links img { width: 16px; height: 16px; }
.modal .unwrapBtn { width: 100%; margin-top: 14px; }
.modal .close { background: transparent; border: none; color: var(--color-steel-gray); font-size: 15px; padding: 3px 9px; box-shadow: none; }
.modal .close:hover { color: var(--color-fg); background: var(--surface-interactive-surface); filter: none; }

/* docs */
.doc { max-width: 760px; font-size: var(--text-body); line-height: 1.7; }
.doc h1 { font-family: var(--font-tomorrow); font-weight: var(--font-weight-medium); font-size: var(--text-heading-lg); line-height: var(--leading-heading-lg); margin: 28px 0 12px; }
.doc h3 { font-family: var(--font-tomorrow); font-weight: var(--font-weight-medium); font-size: var(--text-subheading); margin: var(--spacing-32) 0 8px; }
.doc p, .doc ol, .doc ul { margin: 10px 0; color: #3f3f46; }
.doc ol, .doc ul { margin-left: 22px; }
.doc li { margin: 5px 0; }
.doc code { background: var(--surface-interactive-surface); border: 1px solid var(--color-zinc-hairline); border-radius: 4px; padding: 2px 7px; font-size: 12px; }
.doc .note { background: var(--surface-interactive-surface); border: 1px solid var(--color-zinc-hairline); border-radius: var(--radius-cards); padding: 12px var(--card-padding); font-size: 13px; margin: 14px 0; }
.doc .note b, .doc .note strong { background: var(--color-highlighter-lime); padding: 0 2px; }

/* footer bar — hairline top, 12px mono ash, ticker right */
footer { border-top: 1px solid var(--color-zinc-hairline); padding: 6px 0 0; font-size: 12px; color: var(--color-ash-gray); display: flex; align-items: center; justify-content: space-between; gap: var(--element-gap); flex-wrap: wrap; line-height: 1.3; }
footer .socials { display: flex; gap: var(--element-gap); flex-wrap: wrap; }
footer .socials a {
  display: inline-flex; align-items: center; gap: 4px; color: var(--color-ash-gray); font-size: 12px;
  text-decoration: none;
  transition: color .15s;
}
footer .socials a:hover { color: var(--color-fg); }
footer .socials img { width: 11px; height: 11px; }
footer .ticker { display: inline-flex; align-items: center; gap: 7px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) { .search { display: none; } }
@media (max-width: 640px) {
  nav.menu { display: none; }
  .banner { aspect-ratio: auto; height: 340px; }
  .bstat { margin-left: 8px; }
}
