/* theconvictionbrief.com design system (v2, 2026-11-03).
   Palette, type, and surfaces follow the original Research Desk prototype: cream paper, charcoal,
   forest green, and gold; Inter at heavy weights; rounded cards with soft shadows. Self-hosted font,
   no inline styles (the CSP forbids them). */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #17211a;
  --ink-2: #26352a;
  --muted: #5f6b5a;
  --line: rgba(35, 49, 39, 0.14);
  --paper: #fffdf7;
  --paper-2: #f4efe4;
  --cream: #f8f4ea;
  --charcoal: #111b15;
  --green: #2f6b4f;
  --green-soft: #e6f2ea;
  --red: #9a3b35;
  --red-soft: #f6e6e3;
  --gold: #c89a2f;
  --gold-ink: #7d5f17;          /* gold dark enough for small text on cream (AA) */
  --gold-soft: #f6edcf;
  --blue: #335f79;
  --blue-soft: #e4eef3;
  --shadow: 0 24px 70px rgba(23, 33, 26, 0.12);
  --shadow-sm: 0 10px 26px rgba(23, 33, 26, 0.07);
  --radius: 24px;
  --radius-sm: 16px;
  --pad: clamp(18px, 4vw, 58px);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hero: radial-gradient(circle at 85% 12%, rgba(207, 159, 54, 0.34), transparent 28%),
          radial-gradient(circle at 12% 20%, rgba(67, 109, 79, 0.65), transparent 32%),
          linear-gradient(135deg, #111b15 0%, #1f3326 56%, #314832 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1ea;
    --ink-2: #d9dfd4;
    --muted: #a3ad9e;
    --line: rgba(238, 241, 234, 0.12);
    --paper: #17221b;
    --paper-2: #1d2a21;
    --cream: #0f1712;
    --charcoal: #0a100c;
    --green: #8cc7a3;
    --green-soft: rgba(140, 199, 163, 0.14);
    --red: #f0a59d;
    --red-soft: rgba(240, 165, 157, 0.14);
    --gold: #d9b25a;
    --gold-ink: #e3c27a;
    --gold-soft: rgba(217, 178, 90, 0.14);
    --blue: #9cc3da;
    --blue-soft: rgba(156, 195, 218, 0.14);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-width: 320px; background: var(--cream); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font); font-synthesis: none; text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 50; background: var(--paper); padding: 0.6rem 1rem; }
.skip:focus { left: 1rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 var(--pad); }

/* header */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: #fff; background: #111b15; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.brand-mark .icon { width: 22px; height: 22px; }
.brand strong { display: block; font-weight: 850; letter-spacing: -0.03em; line-height: 1.15; }
.brand small { display: block; color: var(--muted); font-weight: 750; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.11em; }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px; }
header.site nav a { color: var(--muted); font-weight: 750; font-size: 0.93rem; text-decoration: none; padding: 8px 12px; border-radius: 999px; }
header.site nav a:hover { color: var(--ink); background: var(--paper); }
header.site nav a[aria-current="page"] { color: var(--ink); background: var(--paper); box-shadow: var(--shadow-sm); }

/* type */
h1, h2, h3 { color: var(--ink); letter-spacing: -0.03em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.04; font-weight: 900; margin: 0 0 1rem; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.12; font-weight: 850; margin: 2.5rem 0 0.8rem; }
h3 { font-size: 1.15rem; line-height: 1.25; font-weight: 800; margin: 1.6rem 0 0.5rem; letter-spacing: -0.015em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 850 0.74rem/1.3 var(--font); letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 0.9rem; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 46rem; }
.small, .note { font-size: 0.88rem; line-height: 1.55; color: var(--muted); }

/* buttons and pills */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px;
  font-weight: 850; font-size: 0.95rem; text-decoration: none; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: #c89a2f; color: #111b15; border-color: transparent; }
.btn.ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.22); box-shadow: none; }
.btn.dark { background: #111b15; color: #fff; border-color: transparent; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 800 0.76rem/1.4 var(--font); white-space: nowrap; letter-spacing: 0.01em; }
.pill.good { color: var(--green); background: var(--green-soft); }
.pill.hold { color: var(--gold-ink); background: var(--gold-soft); }
.pill.bad { color: var(--red); background: var(--red-soft); }
.num.up { color: var(--green); } .num.down { color: var(--red); }

/* hero */
.hero { position: relative; color: #fff; background: var(--hero); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 70%, rgba(17,27,21,0.35)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(48px, 7vw, 92px); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.4vw, 4.9rem); letter-spacing: -0.05em; line-height: 0.98; }
.hero .eyebrow { color: #e0b955; }
.hero .lede { color: rgba(255,255,255,0.82); font-size: 1.2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 1.2rem; }
.hero .chip { display: inline-flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.82); font-size: 0.86rem; }
.glass {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius);
  padding: 22px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}
.glass h2 { color: #fff; font-size: 1.1rem; margin: 0; letter-spacing: -0.01em; }
.glass .eyebrow { margin-bottom: 0.4rem; }
.snap { list-style: none; margin: 14px 0 6px; padding: 0; }
.snap li { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.92rem; }
.snap a { color: #fff; font-weight: 850; text-decoration: none; }
.snap .r { font-weight: 800; font-variant-numeric: tabular-nums; }
.snap .r.up { color: #9fe0b6; } .snap .r.down { color: #f2aaa2; }
.snap .pill { justify-self: start; background: rgba(255,255,255,0.1); color: #fff; }
.glass .small { color: rgba(255,255,255,0.65); }
.glass .more { color: #e0b955; font-weight: 800; text-decoration: none; }

/* sections and cards */
.band { padding: clamp(48px, 7vw, 88px) 0; }
.band.tint { background: var(--paper-2); }
.band-head { max-width: 44rem; margin-bottom: 1.8rem; }
.band-head h2 { margin-top: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .grid3 { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
}
a.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
.card h3 { margin: 4px 0 0; font-size: 1.3rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 800; font-size: 0.9rem; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.tile { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; }
.tile .icon { width: 22px; height: 22px; }
.tile.green { color: var(--green); background: var(--green-soft); }
.tile.blue { color: var(--blue); background: var(--blue-soft); }
.tile.gold { color: var(--gold-ink); background: var(--gold-soft); }
.tile.red { color: var(--red); background: var(--red-soft); }
.k { font: 850 0.74rem/1.3 var(--font); letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.stat { font-size: 2rem; font-weight: 900; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }

/* ledger strip */
.board { border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.board .row { display: grid; grid-template-columns: 5rem minmax(0, 1.6fr) minmax(0, 1.2fr) 6rem 6rem; gap: 12px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.board .row:first-child { border-top: 0; }
.board .row.head { font: 850 0.72rem/1.3 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
.board a.row:hover { background: var(--paper-2); }
.board .t { font-weight: 900; letter-spacing: -0.01em; }
.board .co { color: var(--muted); font-size: 0.93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .rt { min-width: 0; }
.board .rt .pill { white-space: normal; line-height: 1.3; }
.board .num { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.board .d { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.board.wide { margin: 18px 0 12px; }
.board.wide .row { grid-template-columns: 4.6rem minmax(0, 1.6fr) 6.4rem minmax(0, 1.5fr) 3.4rem 5.4rem 5.4rem 5.4rem; }
@media (max-width: 900px) {
  .board.wide .row { grid-template-columns: 4.4rem minmax(0, 1fr) 5.4rem 5.4rem; }
  .board.wide .row > :nth-child(2), .board.wide .row > :nth-child(3), .board.wide .row > :nth-child(5),
  .board.wide .row > :nth-child(7) { display: none; }
}
.stats .v small { font-size: 0.9rem; font-weight: 700; color: rgba(255,255,255,0.6); }
.stats .v .pill { font-size: 0.78rem; background: rgba(255,255,255,0.12); color: #fff; vertical-align: middle; white-space: normal; line-height: 1.3; }
.triggers { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 12px; margin: 1rem 0 1.4rem; }
.triggers > div { border-top: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--paper-2); }
.triggers dt { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.triggers dt .icon { color: var(--green); }
.banner .icon { color: var(--gold-ink); }
.entry .perf { margin-top: 0.5rem; }
@media (max-width: 640px) {
  .board .row, .board.wide .row { grid-template-columns: 3.8rem minmax(0, 1fr) 4.8rem; gap: 8px; padding: 12px 14px; }
  .board .row > *, .board.wide .row > * { display: none; }
  .board .row > .t, .board .row > .rt, .board .row > .ret { display: block; }
}

/* inner-page header band: the hero, compact */
.pagehead { position: relative; color: #fff; background: var(--hero); }
.pagehead .wrap { padding-top: clamp(28px, 4.5vw, 52px); padding-bottom: clamp(30px, 4.5vw, 52px); }
.pagehead h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -0.045em; margin: 0 0 0.6rem; max-width: 52rem; }
.pagehead .eyebrow { color: #e0b955; }
.pagehead .lede { color: rgba(255,255,255,0.8); margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.84rem; font-weight: 700; margin-bottom: 1.1rem; color: rgba(255,255,255,0.5); }
.crumbs a { color: rgba(255,255,255,0.72); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 12px; margin-top: 1.6rem; max-width: 52rem; }
.stats > div { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-sm); padding: 14px 16px; }
.stats .k { color: rgba(255,255,255,0.6); }
.stats .v { display: block; margin-top: 4px; font-size: 1.55rem; font-weight: 900; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.stats .v.up { color: #9fe0b6; } .stats .v.down { color: #f2aaa2; }
.stats .s { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* docs layout: content panel + side navigation */
.docs { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 28px; align-items: start; }
.docs .panel { max-width: none; }
.side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.side .k { margin: 0 0 8px 8px; }
.side a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 650; font-size: 0.92rem; line-height: 1.3; }
.side a .n { font-size: 0.72rem; font-weight: 850; color: var(--muted); font-variant-numeric: tabular-nums; }
.side a:hover { background: var(--paper-2); }
.side a[aria-current="page"] { background: var(--green-soft); color: var(--green); }
@media (max-width: 960px) { .docs { grid-template-columns: minmax(0, 1fr); } .side { position: static; } }
.panel.prose > :first-child { margin-top: 0; }
.panel.prose h2:first-child { margin-top: 0; }

/* inner pages */
.page { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(48px, 7vw, 88px); }
.prose, .drill, .entry { max-width: 46rem; }
.prose { overflow-wrap: anywhere; }
.prose.wide { max-width: 60rem; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); }
blockquote { margin: 1.4rem 0; padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: var(--gold-soft); color: var(--ink-2); border: 0; }
blockquote p { margin: 0.35rem 0; }
sup { line-height: 0; font-size: 0.72em; }
hr { border: 0; border-top: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.6rem; font-size: 0.92rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); }
thead th { font: 850 0.74rem/1.3 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap, .prose table { display: block; overflow-x: auto; border-radius: var(--radius-sm); }
.table-wrap table { display: table; }
.toc { padding-left: 1.25rem; }
.toc li { margin: 0 0 1rem; }
.toc li span { display: block; font-size: 0.92rem; color: var(--muted); }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 16px; }
.cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; }
.cards strong { font-weight: 850; }
.cards .meta { font: 850 0.72rem/1.3 var(--font); text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-ink); }
.cards span { font-size: 0.93rem; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 1rem; max-width: 46rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 750; font-size: 0.95rem; }
.pager .next { margin-left: auto; text-align: right; }
.banner { font-size: 0.92rem; background: var(--gold-soft); border-radius: var(--radius-sm); padding: 0.75rem 1rem; }
.tkr { color: var(--muted); font-weight: 600; }
.facts, .triggers { display: grid; gap: 0.6rem 1.5rem; margin: 1rem 0; }
.facts { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.facts div, .triggers div { border-top: 1px solid var(--line); padding-top: 0.5rem; }
dt { font: 850 0.72rem/1.4 var(--font); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
dd { margin: 0.2rem 0 0; }
.callout { background: var(--green-soft); border-radius: var(--radius-sm); padding: 0.85rem 1.1rem; font-size: 0.95rem; }
.perf { max-width: 28rem; }

/* drills */
.drill { max-width: none; }
.panel.intro { padding: 22px 24px; margin-bottom: 18px; }
.panel.intro p { margin: 0.3rem 0 0; }
.progress { height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; margin-top: 14px; }
.progress span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--green), #c89a2f); transition: width 0.3s ease; }
.progress-text { margin: 0.5rem 0 0; }
.side .meta-row { display: flex; gap: 10px; align-items: center; margin: 0; padding: 8px 10px; font-size: 0.9rem; color: var(--ink-2); }
.side a .icon, .side .meta-row .icon { color: var(--green); }
.card.club { background: var(--gold-soft); }
.card .figs { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.9rem; font-weight: 700; color: var(--ink-2); }
.card .figs .num { font-weight: 900; }
.pagehead .actions { margin: 1.4rem 0 0; }
.side a .icon { width: 1rem; height: 1rem; }
.drill-body { margin-top: 1.5rem; }
.item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 18px 20px; margin: 0 0 14px; }
.item .q { margin: 0 0 0.8rem; font-weight: 650; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices.stack { flex-direction: column; align-items: stretch; }
.choice { font-size: 0.95rem; line-height: 1.4; padding: 0.65rem 0.95rem; border: 1px solid var(--line); background: var(--cream); color: var(--ink); border-radius: 12px; cursor: pointer; text-align: left; font-weight: 600; }
.choice:hover:not(:disabled) { border-color: var(--green); }
.choice:disabled { cursor: default; }
.choice.right { border-color: var(--green); background: var(--green-soft); }
.choice.wrong { border-color: var(--red); background: var(--red-soft); }
.feedback { margin-top: 0.8rem; font-size: 0.95rem; padding: 0.75rem 0.95rem; border-radius: 12px; background: var(--paper-2); }
.feedback.right { background: var(--green-soft); }
.feedback.wrong { background: var(--red-soft); }
.feedback strong { display: block; margin-bottom: 0.2rem; }
.scen { max-width: 24rem; }
.numrow { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
input[type="number"], textarea { font-size: 1rem; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--ink); }
input[type="number"] { width: 8rem; }
textarea { width: 100%; min-height: 10rem; }
.score { font-weight: 850; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: #111b15; color: #fff; margin-top: 1rem; }
.checklist label { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.45rem 0; font-size: 0.95rem; }
.calc { border-radius: var(--radius-sm); background: var(--paper-2); padding: 1.1rem 1.2rem; margin: 1rem 0 1.5rem; font-size: 0.95rem; }
.calc .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; }
.calc label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 650; }
.calc output { display: block; margin-top: 0.9rem; font-weight: 850; font-size: 1.05rem; }
.related { margin-top: 2rem; }

/* footer */
footer.site { background: #111b15; color: rgba(255,255,255,0.72); font-size: 0.86rem; line-height: 1.6; }
footer.site .wrap { padding-top: 34px; padding-bottom: 40px; display: grid; gap: 14px; }
footer.site a { color: #e0b955; }
footer.site .brand { color: #fff; }
footer.site .brand small { color: rgba(255,255,255,0.6); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover, a.card:hover { transform: none; } }
@media print { header.site nav, .skip, a[href*="flatlogic"] { display: none !important; } .hero { color: #000; background: none; } }

/* accounts */
[hidden] { display: none !important; }
header.site nav a.acct { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
header.site nav a.acct .icon { width: 1rem; height: 1rem; }
.account .panel { margin-bottom: 18px; }
.account h2 { margin-top: 0; }
.account form { display: grid; gap: 14px; max-width: 28rem; }
.account label { display: grid; gap: 6px; font-weight: 750; font-size: 0.95rem; }
.account input[type="text"], .account input:not([type]), .account input[type="password"] {
  font-size: 1rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--ink); width: 100%; }
.account input:focus { border-color: var(--green); }
.account .hint { font-weight: 500; font-size: 0.84rem; color: var(--muted); }
.form-error { color: var(--red); font-weight: 700; margin: 0; min-height: 1.2em; }
.code { font: 800 clamp(1.1rem, 4vw, 1.6rem)/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.06em; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--gold-soft); color: var(--ink); word-break: break-all; }
.check { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px; margin: 0 0 14px; }
.btn.small { padding: 9px 14px; font-size: 0.86rem; }
.btn.small.on { background: var(--green-soft); color: var(--green); }
.btn.danger { background: var(--red); color: #fff; border-color: transparent; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.board .row.nb { grid-template-columns: minmax(0, 1fr) 4.5rem 4.5rem 4rem; }
@media (max-width: 640px) { .board .row.nb > * { display: block; } .board .row.nb { grid-template-columns: minmax(0, 1fr) 4rem 4rem 3rem; } }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 10px 0; border-top: 1px solid var(--line); }
ul.plain li:first-child { border-top: 0; }
details { border-top: 1px solid var(--line); padding: 10px 0; }
details summary { cursor: pointer; font-weight: 750; }
.note-body { white-space: pre-wrap; }
.watch-slot { padding: 6px 10px 10px; }
.watch-slot a { padding: 0; }
.save-note { font-weight: 600; color: rgba(255,255,255,0.8); }
.score a.save-note { color: #e0b955; }
