/* Acrobat portal. Tokens and components follow the Acrobat Site design system:
   near-black ground, neutral planes, 1px hairlines, one silver accent. No inline styles anywhere. */

@font-face { font-family: "Inter"; src: url("/portal/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/portal/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600 900; font-style: normal; font-display: swap; }

:root {
  --bg: #0a0a0a; --panel: #101010; --surface: #191919; --surface-hover: #1f1f1f; --tablist-bg: #0d0d0d;
  --border: #262626; --border-scrolled: #2c2c2c; --border-hover: #343434; --border-strong: #3a3a3a;
  --text: #ffffff; --text-2: rgba(255,255,255,.66); --text-3: rgba(255,255,255,.46);
  --head-top: #f2f2f2; --head-bottom: #9a9a9a;
  --accent: #bdbdbd; --accent-end: #737373; --on-accent: #0a0a0a;
  --btn-light: #ffffff; --btn-dark: #555555; --btn-hi: rgba(255,255,255,.55);
  --nav-glass: rgba(14,14,14,.72); --nav-glass-scrolled: rgba(12,12,12,.9);
  --ghost-fill: rgba(255,255,255,.02); --tint-top: rgba(255,255,255,.018);
  --hi-04: rgba(255,255,255,.04); --hi-05: rgba(255,255,255,.05);
  --word-top: #202020; --word-mid: #121212;
  --ok: #8fe3c1; --warn: #f5c277; --bad: #ff9a92;
  --bad-bg: rgba(255,154,146,.08); --bad-line: rgba(255,154,146,.32);
  --r-chk: 3.5px; --r-code: 5px; --r-ctl: 6px; --r-btn: 8px; --r-nav: 12px; --r-card: 16px; --r-full: 999px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Cascadia Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --grad-head: linear-gradient(180deg, var(--head-top), var(--head-bottom));
  --gut: 16px; --wrap: 1120px; --wrap-wide: 1200px;
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --gut: 24px; } }
@media (min-width: 1024px) { :root { --gut: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.main { flex: 1 0 auto; padding-top: 88px; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-family: var(--mono); font-size: .86em; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-code); padding: 1px 6px; color: var(--text); overflow-wrap: anywhere; }
[hidden] { display: none !important; }
::selection { background: rgba(189,189,189,.28); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
p { color: var(--text-2); text-wrap: pretty; }
strong, .strong { font-weight: 600; color: var(--text); }
.muted { color: var(--text-3); }
.mono { font-family: var(--mono); font-size: .92em; }
.nowrap { white-space: nowrap; }
.wrap-any { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.js-only { display: none !important; }
html.js .js-only { display: inline-flex !important; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-btn); font-weight: 600; font-size: 14px; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }

.wrap, .wrap-wide { width: 100%; margin-inline: auto; padding-inline: var(--gut); }
.wrap { max-width: calc(var(--wrap) + var(--gut) * 2); }
.wrap-wide { max-width: calc(var(--wrap-wide) + var(--gut) * 2); }
.narrow { max-width: calc(760px + var(--gut) * 2); }

.ic { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-16 { width: 16px; height: 16px; } .ic-18 { width: 18px; height: 18px; } .ic-20 { width: 20px; height: 20px; } .ic-24 { width: 24px; height: 24px; }

/* ---------- Type ---------- */
.title {
  font-weight: 600; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance;
  font-size: clamp(40px, 7vw, 76px);
  background: var(--grad-head); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; padding-bottom: .1em;
  overflow-wrap: anywhere;
}
.title-md { font-size: clamp(32px, 5vw, 44px); letter-spacing: -.025em; }
.title-sm { font-size: clamp(28px, 3.6vw, 36px); letter-spacing: -.025em; line-height: 1.1; }
.lead { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; color: var(--text-2); max-width: 62ch; text-wrap: pretty; }
.lead-sm { font-size: 15px; color: var(--text-2); }
.note { font-size: 13.5px; color: var(--text-2); }
.hint { margin-top: 6px; font-size: 13px; color: var(--text-3); }
.eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); line-height: 1;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.eyebrow-sm { font-size: 11.5px; letter-spacing: .13em; }
.eyebrow-danger { color: var(--bad); }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--accent); }
a.strong.link { font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; font: 600 15px/1 var(--font); white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--r-btn);
  transition: background-color .2s, border-color .2s, color .2s, filter .2s, transform .16s var(--ease);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-lg { height: 48px; padding: 0 26px; font-size: 15.5px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: var(--r-ctl); }
.btn-block { width: 100%; }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic-16 { transform: translateX(0); }
.btn-primary:hover .ic { transform: translateX(3px); }
.btn-primary {
  color: var(--on-accent);
  background: radial-gradient(70% 110% at 50% 30%, #fff, #a8a8a8);
  background: radial-gradient(70% 110% at 50% 30%, color-mix(in srgb, var(--accent) 10%, var(--btn-light)), color-mix(in srgb, var(--accent) 88%, var(--btn-dark)));
  box-shadow: inset 0 1px 0 var(--btn-hi), 0 10px 30px rgba(189,189,189,.1);
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { color: var(--text); background: var(--ghost-fill); border-color: var(--border); box-shadow: inset 0 1px 0 var(--hi-04); }
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--border-hover); }
.btn-danger { color: var(--bad); background: var(--bad-bg); border-color: var(--bad-line); }
.btn-danger:hover { background: rgba(255,154,146,.14); border-color: var(--bad); }
.btn.is-disabled, .btn:disabled { opacity: .4; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form { display: inline-flex; margin: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 12px; left: 12px; right: 12px;
  max-width: var(--wrap-wide); margin-inline: auto; height: 56px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  padding: 0 10px 0 16px;
  background: var(--nav-glass);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border); border-radius: var(--r-nav);
  box-shadow: inset 0 1px 0 var(--hi-05);
  transition: background-color .3s, border-color .3s;
}
.nav.is-scrolled { background: var(--nav-glass-scrolled); border-color: var(--border-scrolled); }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; min-width: 0; }
.brand-name { font-weight: 600; letter-spacing: -.02em; font-size: 17px; }
.mark { width: 30px; height: 30px; border-radius: 7px; }
.mark-sm { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 2px; min-width: 0; }
.nav-links a {
  display: block; padding: 0 14px; height: 36px; line-height: 36px; font-size: 14px;
  color: var(--text-2); border-radius: var(--r-ctl); border: 1px solid transparent; white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--surface); border-color: rgba(189,189,189,.22); line-height: 34px; box-shadow: inset 0 1px 0 var(--hi-05); }
.nav-actions { display: flex; align-items: center; gap: 8px; justify-self: end; min-width: 0; }
.viewer { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 13.5px; color: var(--text-2); }
.viewer-label { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 859px) {
  .nav { display: flex; justify-content: space-between; }
  .nav-links { flex: 1; justify-content: center; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .viewer { display: none; }
}
@media (max-width: 560px) {
  .brand-name { display: none; }
  .nav { padding-left: 12px; gap: 4px; }
  .nav-links a { padding: 0 10px; }
  .btn-text { display: none; }
  .nav-actions .btn-sm { padding: 0 10px; }
  .nav-actions a.btn-sm { padding: 0 14px; }
}

/* ---------- Flash ---------- */
.flash-area { padding-top: 8px; }
.flash {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; margin-bottom: 8px;
  border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--panel); color: var(--text);
  box-shadow: inset 0 1px 0 var(--hi-04); font-size: 15px;
}
.flash .ic { margin-top: 3px; }
.flash-ok .ic { color: var(--ok); }
.flash-error { border-color: var(--bad-line); background: var(--bad-bg); }
.flash-error .ic { color: var(--bad); }
.flash-info .ic { color: var(--accent); }
.field-error { display: flex; align-items: flex-start; gap: 8px; color: var(--bad); font-size: 14px; }
.field-error .ic { margin-top: 3px; }
.field-error span { color: var(--bad); }

/* ---------- Layout ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); position: relative; }
.section-tint { background: linear-gradient(180deg, var(--tint-top), rgba(255,255,255,0) 45%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hero { position: relative; padding: clamp(48px, 9vw, 104px) 0 clamp(64px, 9vw, 112px); overflow: hidden; }
.hero-glow { position: absolute; left: 50%; top: 40%; width: min(1000px, 140%); aspect-ratio: 1.6; translate: -50% -50%; background: radial-gradient(closest-side, rgba(189,189,189,.12), rgba(189,189,189,.035) 55%, transparent); pointer-events: none; }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.hero-copy .title { max-width: 14ch; }
.hero-lead { max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.badge { display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--panel); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(189,189,189,.7); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.facts li { padding: 8px 32px 8px 0; display: flex; flex-direction: column; gap: 12px; }
.facts li + li { padding-left: 32px; border-left: 1px solid var(--border); }
.fact-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--surface); color: var(--text-2); }
.fact-title { font-size: 20px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; color: var(--text); }
@media (max-width: 859px) {
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 24px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--border); }
}

.auth { padding: clamp(24px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.auth .wrap { max-width: calc(480px + var(--gut) * 2); }
.card-auth { padding: clamp(22px, 4vw, 34px); gap: 22px; }
.auth-head { display: flex; flex-direction: column; gap: 14px; }
.auth-head .title { padding-bottom: .12em; }
.aside { text-align: center; font-size: 14px; }
.message { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding-top: 16px; }
.message-cta { margin-top: 8px; }
.or { display: flex; align-items: center; gap: 14px; color: var(--text-3); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.turnstile { min-height: 65px; }

.page { padding: clamp(16px, 4vw, 40px) 0 clamp(56px, 8vw, 96px); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(24px, 4vw, 40px); }
.page-head > div:first-child { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 18px; min-width: 0;
  padding: 22px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: inset 0 1px 0 var(--hi-04);
}
.card-danger { border-color: var(--bad-line); }
.card-accent { border-color: rgba(189,189,189,.3); box-shadow: inset 0 1px 0 var(--hi-05), 0 0 60px rgba(189,189,189,.06); }
.card-flush { padding-inline: 0; padding-bottom: 0; overflow: hidden; }
.card-flush > .eyebrow { margin-inline: 22px; }
.card-flush > .empty, .card-flush > .note { margin-inline: 22px; margin-bottom: 22px; }
.card-flush .table-wrap { border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; }
.card-body { padding: 22px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 18px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--border); font-size: 14px; }
.grid-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.grid-cards > .card-wide { grid-column: 1 / -1; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 859px) { .grid-cards, .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.empty { color: var(--text-2); font-size: 15px; padding: 4px 0; }

/* ---------- Lists / rows ---------- */
.rows { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 0; border-top: 1px solid var(--border); }
.row:first-child { border-top: 0; padding-top: 4px; }
.row-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 260px; }
.row-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.row-title .ic { color: var(--text-2); }
.row-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 14px; color: var(--text-2); min-width: 0; }
.row-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dot { color: var(--text-3); }
.clip { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key-hint { letter-spacing: .04em; }
.signout-all { align-self: flex-start; }
@media (max-width: 480px) { .row-actions { align-items: flex-start; } }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--border); font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); white-space: nowrap; }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.chip-ok { color: var(--ok); border-color: rgba(143,227,193,.28); } .chip-ok .chip-dot { background: var(--ok); }
.chip-warn { color: var(--warn); border-color: rgba(245,194,119,.3); } .chip-warn .chip-dot { background: var(--warn); }
.chip-bad { color: var(--bad); border-color: var(--bad-line); } .chip-bad .chip-dot { background: var(--bad); }
.chip-accent { color: var(--text); border-color: rgba(189,189,189,.35); } .chip-accent .chip-dot { background: var(--accent); box-shadow: 0 0 8px rgba(189,189,189,.6); }
.chip-link { transition: background-color .2s; }
.chip-link:hover { background: var(--surface-hover); }

/* ---------- Forms (the app's controls) ---------- */
.stack { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.label { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.input {
  width: 100%; height: 42px; padding: 0 14px; min-width: 0;
  background: var(--surface); color: var(--text);
  border: 1px solid transparent; border-radius: var(--r-ctl);
  transition: background-color .27s, border-color .27s, box-shadow .27s;
}
.input::placeholder { color: var(--text-3); opacity: 1; }
.input:hover { background: var(--surface-hover); border-color: rgba(255,255,255,.06); }
.input:focus { outline: none; background: #1d1d1d; border-color: var(--border-hover); box-shadow: inset 0 -2px 0 var(--accent); }
.input:focus-visible { outline: none; }
.input[aria-invalid="true"] { border-color: var(--bad-line); }
.input-sm { height: 36px; width: 84px; padding: 0 10px; font-size: 14px; }
.input-mono { font-family: var(--mono); letter-spacing: .04em; }
.input-code { height: 56px; font-family: var(--mono); font-size: 26px; letter-spacing: .3em; text-align: center; text-transform: uppercase; padding: 0 14px 0 calc(14px + .3em); }
.textarea { height: auto; padding: 12px 14px; line-height: 1.5; font-size: 13px; resize: vertical; min-height: 120px; tab-size: 2; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bdbdbd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.select option { background: #141414; color: var(--text); }
input[type="search"]::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }
input[type="number"] { -moz-appearance: textfield; }

.check { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; position: relative; min-height: 28px; }
.check input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; cursor: pointer; }
.check-box { width: 18px; height: 18px; flex: none; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-chk); transition: background-color .33s, border-color .25s, transform .18s; }
.check:hover .check-box { background: var(--surface-hover); border-color: var(--border-strong); }
.check:active .check-box { transform: scale(.9); }
.check input:checked + .check-box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check-box::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: rotate(-45deg); }
.check input:focus-visible + .check-box { outline: 2px solid var(--accent); outline-offset: 3px; }
.check input:disabled + .check-box, .check input:disabled ~ span { opacity: .5; }
.input:disabled { opacity: .55; cursor: not-allowed; }

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; align-items: start; }
.form-row-btn { align-self: end; padding-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.filters .field { flex: 1 1 200px; max-width: 360px; }
.filters .btn { height: 42px; }
.inline-form-fields { gap: 6px; align-items: center; }

/* ---------- Tables ---------- */
.table-wrap { position: relative; overflow-x: auto; max-width: 100%; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--panel); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: -2px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; background: rgba(255,255,255,.015); }
.table td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: top; color: var(--text); }
.table tbody tr:first-child td { border-top: 0; }
.table tbody tr:hover td { background: rgba(255,255,255,.012); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.sub { margin-top: 2px; font-size: 12.5px; color: var(--text-2); }
.clip-cell { display: inline-block; max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.details { display: inline-block; max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); vertical-align: bottom; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.pager-page { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ---------- Definition lists ---------- */
.dl, .facts-list { display: flex; flex-direction: column; }
.dl > div, .facts-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--border); }
.dl > div:first-child, .facts-list > div:first-child { border-top: 0; }
.dl dt, .facts-list dt { color: var(--text-2); font-size: 14px; }
.dl dd, .facts-list dd { margin: 0; color: var(--text); font-size: 14px; text-align: right; min-width: 0; }
.bigcode { font-family: var(--mono); font-size: clamp(34px, 9vw, 52px); font-weight: 600; letter-spacing: .12em; text-align: center; padding: 26px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: inset 0 1px 0 var(--hi-05); color: var(--text); overflow-wrap: anywhere; }
.facts-list { padding: 0; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--border); padding-top: 40px; margin-top: 24px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.disclaimer { margin-top: 22px; font-size: 13px; color: var(--text-3); }
.footer-word {
  margin-top: clamp(28px, 5vw, 64px); text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  font-size: min(19.2vw, 240px); font-weight: 600; letter-spacing: -.05em; line-height: .8; height: .6em; overflow: hidden;
  background: linear-gradient(180deg, var(--word-top) 0%, var(--word-mid) 55%, var(--bg) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn:active, .check:active .check-box { transform: none; }
}
@media (forced-colors: active) {
  .btn, .input, .card, .chip { border-color: CanvasText; }
}
