/* Grey Divide — site styles */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ink: #070b0f;
  --panel: #0c1218;
  --raised: #111921;
  --line-soft: #141c24;
  --line: #1f2a35;
  --line-strong: #2a3743;
  --text-hi: #f2f4f6;
  --text: #e8ebee;
  --text-2: #a3acb5;
  --text-3: #7f8a95;
  --pewter: #8e98a2;
  --dawn: #e2c9a0;
  --dawn-ink: #0a0e12;
  --tick-empty: #16202a;
  --tick-border: #26333f;
  --radius: 14px;
  --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--dawn); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--text-hi); margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--dawn); color: var(--dawn-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* Header */
.site-header { border-bottom: 1px solid var(--line-soft); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-height: 44px; }
.brand img { width: 40px; height: 40px; }
.wordmark { font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: .22em; color: var(--text-hi); white-space: nowrap; }
.wordmark span { color: var(--pewter); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: 15px; padding: 11px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text-hi); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--dawn); }
.header-cta { display: flex; align-items: center; gap: 8px 20px; }
.account-link { color: var(--text-2); text-decoration: none; font-size: 15px; padding: 11px 0; }
.account-link:hover, .account-link[aria-current="page"] { color: var(--text-hi); }
@media (max-width: 760px) {
  .site-header .wrap { padding-top: 10px; padding-bottom: 6px; }
  .header-cta .btn { display: none; }
  .site-nav { order: 3; width: 100%; gap: 0 20px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; background: none; }
.btn-primary { background: var(--dawn); color: var(--dawn-ink); }
.btn-primary:hover { background: #ecd7b3; color: var(--dawn-ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: #3a4a59; color: #fff; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 8px; }
.btn svg { flex: 0 0 auto; }
.btn[aria-pressed="true"] { border-color: var(--dawn); color: var(--dawn); }
.link-arrow { color: var(--dawn); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.link-arrow:hover { color: #f0dcba; text-decoration: underline; text-underline-offset: 3px; }

/* Type helpers */
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--text-3); text-transform: uppercase; }
.lead { font-size: 19px; color: var(--text-2); max-width: 36em; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--line-soft); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 46em; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 2.2vw + 18px, 40px); line-height: 1.15; }
.section-head p { font-size: 17px; color: var(--text-2); }
.section-head.row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; max-width: none; gap: 20px 40px; }
.section-head.row > div { display: flex; flex-direction: column; gap: 12px; max-width: 46em; flex: 1 1 480px; }
@media (max-width: 640px) { .section { padding: 64px 0; } }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 3.4vw, 4.25rem); line-height: 1.06; letter-spacing: -.01em; }
.hero h1 span { color: var(--pewter); }
.hero-art { flex: 0 1 440px; min-width: 0; position: relative; display: flex; justify-content: center; }
.hero-art::before { content: ""; position: absolute; inset: -14%; background: radial-gradient(closest-side, rgba(226, 201, 160, .2), rgba(226, 201, 160, .06) 58%, rgba(226, 201, 160, 0) 80%); }
.hero-art img { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.facts b { color: var(--text); font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) { .hero { padding: 36px 0 64px; } .hero .wrap { gap: 28px; } .hero-art { order: -1; flex: 0 0 auto; justify-content: flex-start; } .hero-art::before { inset: -20%; } .hero-art img { width: 150px; max-width: 150px; } }

/* Cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 22px; line-height: 1.25; }
.card p { font-size: 15px; color: var(--text-2); }
.card .link-arrow { margin-top: auto; }
.grid { display: flex; flex-wrap: wrap; gap: 20px; }
.grid > * { flex: 1 1 260px; min-width: 0; }
.grid.wide > * { flex-basis: 320px; }
.icon { color: #c7cdd3; }

/* Shelf */
.shelf { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 640px) { .shelf { padding: 22px 18px; } }
.shelf-resume { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.shelf-resume .what { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.shelf-resume .title { font-family: var(--display); font-size: 20px; font-weight: 500; line-height: 1.35; color: var(--text-hi); }
.shelf-divider { height: 1px; background: #1a242e; }
.shelf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.shelf-row .name { flex: 0 0 220px; display: flex; flex-direction: column; gap: 2px; }
.shelf-row .name a { font-weight: 500; text-decoration: none; }
.shelf-row .name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.shelf-row .meta { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.ticks { flex: 1 1 400px; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tick { display: block; width: 18px; height: 40px; border-radius: 3px; background: var(--tick-empty); border: 1px solid var(--tick-border); text-decoration: none; }
.tick:hover { border-color: var(--text-3); }
.tick.watched { background: var(--dawn); border-color: var(--dawn); }
.tick.next { background: transparent; border: 1.5px solid var(--dawn); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--text-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend .tick { width: 12px; height: 24px; }
@media (max-width: 640px) { .shelf-row .name { flex-basis: 100%; } .tick { width: 14px; height: 32px; } }

/* Episode cards */
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; list-style: none; }
.ep-card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: 100%; }
.ep-card:hover { border-color: var(--line-strong); }
.ep-card .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--raised); }
.ep-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-card .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(7, 11, 15, .86); color: var(--text); font-family: var(--mono); font-size: 12px; padding: 2px 7px; border-radius: 5px; }
.ep-card .status { position: absolute; left: 8px; top: 8px; background: var(--dawn); color: var(--dawn-ink); font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 5px; display: none; }
.ep-card.is-watched .status { display: inline-block; }
.ep-card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.ep-card .code { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--text-3); }
.ep-card h3 { font-family: var(--body); font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--text); }
.ep-card a.cover { position: absolute; inset: 0; z-index: 1; }
.ep-card a.cover:focus-visible { outline-offset: -3px; border-radius: 12px; }

/* Track sections */
.track { padding: 64px 0 0; }
.track-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; margin-bottom: 24px; }
.track-head > div { display: flex; flex-direction: column; gap: 8px; max-width: 46em; }
.track-head h2 { font-size: 30px; line-height: 1.2; }
.track-head p { color: var(--text-2); }
.track-tools { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; font-size: 14px; }

/* Watch page */
.crumbs { font-size: 14px; color: var(--text-3); padding: 24px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--text-3); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.watch-head { padding: 18px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.watch-head h1 { font-size: clamp(28px, 1.6vw + 20px, 40px); line-height: 1.15; max-width: 30em; }
.watch-meta { font-family: var(--mono); font-size: 13px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.watch-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-bottom: 96px; }
.watch-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.watch-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.player img { width: 100%; height: 100%; object-fit: cover; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(7, 11, 15, .25); border: 0; cursor: pointer; width: 100%; }
.player .play span { display: inline-flex; align-items: center; gap: 12px; background: var(--dawn); color: var(--dawn-ink); font-weight: 600; padding: 14px 22px; border-radius: 999px; box-shadow: 0 6px 30px rgba(0, 0, 0, .45); }
.player .play:hover span { background: #ecd7b3; }
.player-note { font-size: 13px; color: var(--text-3); margin-top: 10px; }
.watch-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.block { display: flex; flex-direction: column; gap: 14px; }
.block h2 { font-size: 22px; line-height: 1.3; }
.prose { display: flex; flex-direction: column; gap: 14px; font-size: 17px; color: var(--text); max-width: 46em; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-top: 10px; border-radius: 2px; background: var(--dawn); }
.chapters { list-style: none; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.chapters li + li { border-top: 1px solid var(--line-soft); }
.chapters button { display: flex; gap: 16px; width: 100%; text-align: left; background: var(--panel); border: 0; padding: 12px 16px; cursor: pointer; min-height: 48px; align-items: center; }
.chapters button:hover { background: var(--raised); }
.chapters time { font-family: var(--mono); font-size: 13px; color: var(--dawn); flex: 0 0 52px; }
.limits { background: var(--panel); border: 1px solid var(--line); border-left-width: 1px; border-radius: 12px; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.limits h2 { font-size: 18px; }
.limits p { color: var(--text-2); }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.side-card h2 { font-size: 17px; }
.track-list { list-style: none; display: flex; flex-direction: column; gap: 2px; counter-reset: ep; }
.track-list a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--text-2); font-size: 14px; line-height: 1.4; }
.track-list a:hover { background: var(--raised); color: var(--text); }
.track-list a[aria-current="page"] { background: var(--raised); color: var(--text-hi); }
.track-list .dot { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 4px; border-radius: 2px; background: var(--tick-empty); border: 1px solid var(--tick-border); }
.track-list .is-watched .dot { background: var(--dawn); border-color: var(--dawn); }
.track-list .code { font-family: var(--mono); font-size: 12px; color: var(--text-3); flex: 0 0 auto; margin-top: 1px; }
.kit-links { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.kit-links a { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: 14px; color: var(--text); }
.kit-links a:hover { background: var(--raised); }
.kit-links .doc { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.pager { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.pager a { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--panel); }
.pager a:hover { border-color: var(--line-strong); }
.pager a.next { text-align: right; }
.pager .dir { font-family: var(--mono); font-size: 12px; color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; }

/* Shorts */
.shorts { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.short { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.short[hidden] { display: none; }
.short h3 { font-family: var(--body); font-size: 16px; font-weight: 500; line-height: 1.4; }
.short p { font-size: 14px; color: var(--text-2); }
.short .row { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: auto; padding-top: 6px; }
.short .row a { font-size: 14px; }

/* Honest band */
.honest .wrap { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.honest .copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.honest h2 { font-size: clamp(32px, 2.4vw + 18px, 44px); line-height: 1.12; }
.honest .copy p { font-size: 17px; color: var(--text-2); max-width: 32em; }
.honest .side { flex: 1 1 380px; min-width: 0; }

/* Kit page */
.kit-tiles .card { gap: 12px; }
.note { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; color: var(--text-2); font-size: 15px; background: var(--panel); }

/* Page header for inner pages */
.page-head { padding: 64px 0 40px; display: flex; flex-direction: column; gap: 16px; max-width: 46em; }
.page-head h1 { font-size: clamp(34px, 2.4vw + 22px, 52px); line-height: 1.1; }
.page-head p { font-size: 18px; color: var(--text-2); }
.legal { max-width: 46em; padding-bottom: 96px; display: flex; flex-direction: column; gap: 28px; }
.legal h2 { font-size: 22px; }
.legal section { display: flex; flex-direction: column; gap: 10px; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Progress tools */
.progress-tools { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; color: var(--text-3); }
.progress-tools button, .progress-tools label { background: none; border: 0; padding: 10px 0; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.progress-tools button:hover, .progress-tools label:hover { color: var(--text); }
.progress-tools input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--raised); border: 1px solid var(--line-strong); color: var(--text); padding: 12px 18px; border-radius: 10px; font-size: 14px; z-index: 20; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); padding: 56px 0 40px; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.site-footer .about { flex: 1 1 320px; max-width: 26em; display: flex; flex-direction: column; gap: 14px; }
.site-footer .about .brand img { width: 32px; height: 32px; }
.site-footer .about .wordmark { font-size: 15px; }
.site-footer .tagline { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.site-footer .fine { font-size: 14px; color: var(--pewter); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.footer-nav div { display: flex; flex-direction: column; gap: 2px; }
.footer-nav .label { padding-bottom: 6px; }
.footer-nav a { color: #c7cdd3; text-decoration: none; font-size: 15px; padding: 5px 0; }
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer .bottom a { color: var(--text-3); }

/* 404 */
.notfound { padding: 96px 0; display: flex; flex-direction: column; gap: 20px; max-width: 40em; }

/* Account */
.account { padding-bottom: 96px; }
.account-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.account-grid[hidden], .account [hidden] { display: none; }
.panel { flex: 1 1 340px; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.panel-wide { flex-basis: 100%; }
.panel h2 { font-size: 22px; line-height: 1.25; }
.panel p { color: var(--text-2); }
.panel-quiet { background: transparent; }
.panel .username { font-size: clamp(26px, 1.4vw + 18px, 34px); word-break: break-word; }
.panel .checklist { color: var(--text-2); margin-top: 6px; }
.panel .checklist li::before { margin-top: 8px; }
.form { display: flex; flex-direction: column; gap: 10px; }
.form label { font-weight: 500; color: var(--text); font-size: 15px; }
.form input[type="text"] { width: 100%; max-width: 26em; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--ink); color: var(--text-hi); font: inherit; font-family: var(--mono); font-size: 16px; }
.form input[type="text"]:focus-visible { outline: 2px solid var(--dawn); outline-offset: 2px; border-color: var(--dawn); }
.form input::placeholder { color: var(--text-3); }
.form .btn { align-self: flex-start; margin-top: 6px; }
.hint, .panel .hint { font-size: 14px; color: var(--text-3); }
.form-msg { font-size: 14px; color: var(--text-2); min-height: 1.4em; }
.form-msg:empty { min-height: 0; }
.form-msg.is-error, .panel .form-msg.is-error { color: #f0a59a; }
.form-msg.is-ok, .panel .form-msg.is-ok { color: var(--dawn); }
.warn, .panel .warn { color: #f0c27a; }
.turnstile:empty { display: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-danger { border-color: #7a3a33; color: #f0a59a; font-weight: 500; }
.btn-danger:hover { border-color: #a14b42; color: #ffc2b9; }
details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(-45deg); transition: transform .15s; flex: 0 0 auto; }
details[open] > summary::before { transform: rotate(45deg); }
details > summary h2 { display: inline; }
details[open] > .form { margin-top: 12px; }
details.danger { border-top: 1px solid var(--line-soft); padding-top: 10px; margin-top: 6px; }
details.danger > summary { color: #f0a59a; }
.codes { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; counter-reset: code; }
.codes li { font-family: var(--mono); font-size: 16px; letter-spacing: .06em; color: var(--text-hi); background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--dawn); }
.passkeys { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.passkeys li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--ink); }
.passkeys li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.passkeys strong { font-weight: 500; color: var(--text); }
.passkeys .meta { font-size: 13px; color: var(--text-3); }
@media (max-width: 480px) { .panel { padding: 22px 18px; } }

/* Support */
.support-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.coin { flex: 1 1 340px; min-width: 0; align-items: flex-start; }
.coin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; width: 100%; }
.coin-head h2 { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); font-weight: 500; }
.tag { font-family: var(--mono); font-size: 12px; color: var(--dawn); border: 1px solid #4a4133; border-radius: 999px; padding: 3px 10px; }
.qr { width: 232px; height: 232px; max-width: 100%; border-radius: 10px; background: #f2f4f6; image-rendering: pixelated; }
.coin .addr { font-family: var(--mono); font-size: 15px; line-height: 1.55; color: var(--text); word-break: break-all; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
.coin .addr b { color: var(--dawn); font-weight: 500; }
.notes-band { padding: 40px 0 96px; }

/* Contact */
.contact-card { max-width: 46em; align-items: flex-start; }
.contact-card h2 { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); font-weight: 500; }
.contact-card .contact-addr { font-family: var(--mono); font-size: clamp(18px, 1.2vw + 14px, 24px); line-height: 1.4; color: var(--text-hi); word-break: break-all; }
.contact-addr a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact-addr a:hover { border-bottom-color: var(--dawn); }
.support-band .section-head { margin-bottom: 8px; }

/* Merchandise: free sticker templates */
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.sticker-art { aspect-ratio: 4 / 3; min-height: 0; padding: 18px; border-radius: 10px; background: var(--raised); }
.sticker-art img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45)); }
.sticker h2 { font-size: 22px; line-height: 1.25; }
.card .sticker-meta { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.sticker .cta-row { margin-top: auto; }
.sticker .small a { color: var(--text-2); }
.sticker .small a:hover { color: #fff; }

/* Assessments */
.quiz { padding-bottom: 40px; display: flex; flex-direction: column; gap: 24px; max-width: 52em; }
.quiz-status { font-size: 15px; }
.questions { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.question fieldset { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.question legend { float: left; width: 100%; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.question legend + * { clear: both; }
.qnum { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--text-3); text-transform: uppercase; }
.qtext { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.4; color: var(--text-hi); }
.options { display: flex; flex-direction: column; gap: 8px; }
.option { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink); cursor: pointer; color: var(--text); line-height: 1.45; min-height: 48px; }
.option:hover { border-color: var(--line-strong); }
.option input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--dawn); }
.option:has(input:checked) { border-color: var(--dawn); }
.option:has(input:focus-visible) { outline: 2px solid var(--dawn); outline-offset: 2px; }
.option:has(input:disabled) { cursor: default; }
.question.is-correct fieldset { border-color: #3d5b45; }
.question.is-wrong fieldset { border-color: #6b3a35; }
/* After marking, right and wrong outrank the gold "checked" border. */
.question .option.is-answer { border-color: #5f9a6d; background: #0f1b14; }
.question .option.is-chosen { border-color: #a14b42; background: #1d1012; }
.feedback { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line-soft); padding-top: 12px; color: var(--text-2); font-size: 15px; }
.feedback .verdict { font-weight: 600; color: var(--text); }
.is-correct .feedback .verdict { color: #8fd19e; }
.is-wrong .feedback .verdict { color: #f0a59a; }
.feedback .link-arrow { min-height: 36px; font-size: 15px; }
.quiz-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.quiz-submit[hidden], .quiz-result[hidden], .feedback[hidden] { display: none; }
.quiz-result { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--raised); padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.quiz-result h2 { font-size: 30px; }
.quiz-result.is-passed { border-color: var(--dawn); }
.quiz-result.is-passed h2 { color: var(--dawn); }
.quiz-review { padding-bottom: 96px; }
.quiz-review h2 { font-size: 22px; margin-bottom: 14px; }
.review-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 20px; }
.review-list a { display: flex; gap: 10px; padding: 8px 0; text-decoration: none; color: var(--text-2); font-size: 15px; }
.review-list a:hover { color: var(--text); }
.review-list .code { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-top: 3px; }
.side-card .link-arrow { font-size: 15px; }
@media (max-width: 480px) { .question fieldset { padding: 18px 16px; } .qtext { font-size: 17px; } }

/* Records on the account page */
.records { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.records li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--ink); }
.records li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.records strong { font-weight: 500; color: var(--text); }
.records .meta { font-size: 13px; color: var(--text-3); }
.records li.is-passed { border-color: #4a4133; }
.records li.is-passed .meta { color: var(--dawn); }
.panel .course-done { color: var(--dawn); font-weight: 500; }

/* Record of completion */
.record-shell { padding: 56px 0 96px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.record { width: 100%; max-width: 760px; border: 1px solid #4a4133; border-radius: 16px; background: linear-gradient(180deg, #0f151c, #0b1016); padding: 44px 48px; display: flex; flex-direction: column; gap: 16px; }
.record[hidden], .record-actions[hidden], .record-shell [hidden] { display: none; }
.record-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.record-brand img { width: 44px; height: 44px; }
.record h1 { font-size: clamp(30px, 2vw + 20px, 44px); line-height: 1.1; }
.record-issued { font-size: 19px; color: var(--text-2); }
.record-issued strong { color: var(--text-hi); font-weight: 600; font-family: var(--mono); }
.record-facts { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 8px 0 0; }
.record-facts div { display: flex; flex-direction: column; gap: 2px; }
.record-facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.record-facts dd { margin: 0; color: var(--text-hi); font-size: 17px; }
.record-course { color: var(--dawn); font-weight: 500; }
.record-note { font-size: 14px; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
@media (max-width: 480px) { .record { padding: 28px 20px; } }
@media print {
  @page { margin: 18mm; }
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .skip-link, .record-actions, [data-record-loading] { display: none !important; }
  .record-shell { padding: 0; }
  .record { border: 2px solid #000; background: #fff; color: #000; max-width: none; }
  .record h1, .record-issued strong, .record-facts dd, .wordmark { color: #000; }
  .record-issued, .record-facts dt, .record-note, .eyebrow, .wordmark span { color: #333; }
  .record-course { color: #000; }
  .record-brand, .record-note { border-color: #999; }
}
