/* The public website: dexterai.dev, its short hosts and events.dexterai.dev.
   Served as-is by dashboard/routes/site.js and routes/events.js (CSP:
   style-src 'self', no inline styles, no scripts on most pages, fonts
   self-hosted).

   The tokens, type scale, fonts, top bar, footer and buttons are in
   base.css, which every public page loads first; this file holds the
   website's own content: the home page, the legal pages, the event pages,
   the notices and the page heads that careers, appeals and verification
   share.

   How the pages are built: inner pages open each section on a rule
   (.sec-head) with its heading and one line under it, content on
   hairlines; the home page is a product page of cards and feature rows
   (the "home" block at the end). Every number is tabular. The blue accent
   marks the primary action, the current page, links and first place. No
   purple or dark-blue gradients. */

code { font-family: var(--mono); font-size: 0.84em; background: var(--s2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.lede { font-size: var(--fs-md); line-height: 1.55; color: var(--text-2); max-width: 36em; margin: 0 0 32px; }

/* ---- section heads: a 2px ink rule opens every section ------------------ */
.sec-head { border-top: 2px solid var(--ink); padding-top: 16px; margin: 0 0 32px; }
.sec-head h2 { font-size: var(--fs-xl); line-height: 1.1; margin: 0 0 10px; }
.sec-head p, .sec-head .sub { color: var(--text-2); margin: 0 0 12px; max-width: 46ch; }
.sec-head > :last-child { margin-bottom: 0; }
@media (min-width: 900px) {
    .sec-head-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: baseline; margin-bottom: 40px; }
    .sec-head-row h2 { margin: 0; max-width: 18ch; }
    .sec-head-row p { margin: 0; max-width: 52ch; }
}

/* ---- page head: careers, appeals, events and other single-purpose pages - */
.page-head { padding: 56px 0 36px; }
.crumbs ~ main .page-head { padding-top: 22px; }
.page-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 38px; margin: 0 0 12px; }
@media (max-width: 640px) { .page-head-row { margin-bottom: 22px; } }
.page-head .kicker, .kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--text-3); font-size: var(--fs-sm); font-weight: 600; }
.page-head .kicker img { width: 22px; height: 22px; border-radius: 50%; display: block; }
.kicker-dot { display: none; }
.page-head h1 { font-size: var(--fs-2xl); line-height: 1.02; margin: 0 0 16px; }
.page-head .lede { margin: 0; max-width: 38em; }
@media (max-width: 640px) { .page-head { padding-top: 36px; padding-bottom: 28px; } }

/* the live numbers, as a scoreboard under the hero */
.scoreboard { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.scoreboard li { padding: 16px 16px 24px 0; color: var(--text-3); font-size: var(--fs-sm); }
.scoreboard li:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--rule); }
.scoreboard li:nth-child(n+3) { border-top: 1px solid var(--rule); }
.scoreboard b { display: block; margin-bottom: 6px; font: 600 clamp(30px, 3.4vw, 42px)/1 var(--display); font-stretch: 90%; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.scoreboard a { color: var(--text-3); }
.scoreboard a:hover { color: var(--accent-text); }
@media (min-width: 760px) {
    .scoreboard { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 88px; }
    .scoreboard li { padding-left: 20px; border-left: 1px solid var(--rule); }
    .scoreboard li:first-child { padding-left: 0; border-left: 0; }
    .scoreboard li:nth-child(n+3) { border-top: 0; }
}

.log { display: grid; gap: 36px; }
.log-meta { margin: 0 0 10px; display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 14px; }
.ver { display: inline-flex; align-items: center; font: 700 13px/1 var(--font); color: var(--on-accent); background: var(--accent); padding: 5px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.log-latest h3 { font-size: var(--fs-xl); line-height: 1.12; margin: 0 0 14px; }
.log-latest h3 a { color: var(--text); text-decoration: none; }
.log-latest h3 a:hover { color: var(--accent-text); }
.log-latest ul { margin: 0 0 18px; padding-left: 20px; color: var(--text-2); }
.log-latest li { margin: 8px 0; }
.log-latest li::marker { color: var(--text-3); }
.log-older { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.log-older li { border-bottom: 1px solid var(--rule); }
.log-older a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 14px 0; color: var(--text); text-decoration: none; }
.log-older a:hover b { color: var(--accent-text); }
.ver-plain { color: var(--accent-text); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.log-older b { font-weight: 500; }
.log-older time { color: var(--text-3); font-size: 13.5px; white-space: nowrap; }


.rows { list-style: none; margin: 0; padding: 0; }
.rows li { padding: 18px 0; border-top: 1px solid var(--rule); }
.rows li:first-child { border-top: 0; padding-top: 0; }
.rows h3 { margin: 0 0 6px; font-size: 20px; }
.rows h3 a { color: var(--text); text-decoration: none; }
.rows h3 a:hover { color: var(--accent-text); text-decoration: underline; }
.rows p { margin: 0; color: var(--text-2); }

.note { margin-top: 20px; padding: 14px 16px; border-radius: var(--radius); background: var(--s1); border: 1px solid var(--rule); color: var(--text-2); font-size: var(--fs-sm); display: flex; gap: 12px; align-items: flex-start; }
.note svg { width: 20px; height: 20px; flex: none; color: var(--forest); margin-top: 2px; }

/* generic blocks */
.section { padding: 56px 0; }
.section h2 { font-size: var(--fs-xl); line-height: 1.1; margin: 0 0 12px; }
.section .sub, .sub { color: var(--text-2); max-width: 62ch; margin: 0 0 28px; }
.sec-head .sub { margin-bottom: 0; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; display: block; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--s1); border: 1px solid var(--rule); color: inherit; text-decoration: none; transition: border-color .15s; }
a.card:hover { border-color: var(--accent-border); }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.card .more { margin-top: 14px; }

/* ---- legal pages: a reading column with its contents in a rail --------- */
.doc-page { padding-top: 48px; padding-bottom: 96px; }
.crumbs ~ main .doc-page { padding-top: 24px; }
.doc-head { max-width: 760px; margin: 0 0 44px; }
.doc-head h1, .doc h1 { font-size: var(--fs-2xl); line-height: 1.02; margin: 0 0 14px; }
.doc-head .meta, .doc .meta { color: var(--text-3); font-size: 14px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.doc .meta { margin-bottom: 24px; }
.doc-lede { font-size: var(--fs-md); line-height: 1.55; color: var(--text-2); margin: 22px 0 0; }
.doc .doc-lede { margin: 0 0 8px; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 1080px) {
    .doc-layout { grid-template-columns: minmax(0, 720px) minmax(0, 260px); gap: 88px; }
    .doc-layout > .doc { grid-column: 1; grid-row: 1; }
    .doc-layout > .doc-rail { grid-column: 2; grid-row: 1; }
    /* The whole rail sticks (contents, and the find box nav.js adds above them). */
    .doc-rail { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; overscroll-behavior: contain; }
}
/* a policy page on its own (careers policies, a not-found page) */
.wrap > .doc { padding: 48px 0 88px; }
.crumbs ~ main .wrap > .doc, .ev-head + .wrap > .doc { padding-top: 32px; }
@media (max-width: 640px) { .doc-page, .wrap > .doc { padding-top: 32px; } }
.doc { max-width: 720px; }
.doc h2 { font-size: var(--fs-lg); line-height: 1.2; margin: 56px 0 12px; padding-top: 18px; border-top: 1px solid var(--rule); }
.doc-layout .doc > section:first-child > h2:first-child, .doc-layout .doc > .meta + .doc-lede + section > h2:first-child { margin-top: 0; }
.doc-layout .doc > section:first-child > h2:first-child { border-top: 2px solid var(--ink); padding-top: 14px; }
.doc h3 { font-size: var(--fs-md); margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.toc { margin: 0; padding: 14px 0 0; border-top: 2px solid var(--ink); }
.toc p { margin: 0 0 10px; font-weight: 600; color: var(--text-2); font-size: var(--fs-xs); letter-spacing: .02em; }
.toc ol, .toc ul { margin: 0; padding-left: 22px; }
.toc li { margin: 7px 0; font-size: 14.5px; line-height: 1.4; color: var(--text-3); break-inside: avoid; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--accent-text); text-decoration: underline; }
.toc-plain ul { list-style: none; padding: 0; }
@media (max-width: 1079px) { .doc-rail .toc ol, .doc-rail .toc ul { columns: 2 220px; column-gap: 32px; } }
.table-wrap { overflow-x: auto; margin: 14px 0 20px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
th, td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--rule); }
th { color: var(--text-3); font-weight: 600; font-size: var(--fs-xs); border-bottom-color: var(--border-strong); }
td { color: var(--text-2); }
tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 0; }

.doc-index { max-width: 860px; }
.legal-index { margin: 0 0 8px; border-top: 2px solid var(--ink); }
.legal-row { display: grid; gap: 4px 32px; padding: 20px 0; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
@media (min-width: 720px) { .legal-row { grid-template-columns: 260px minmax(0, 1fr); align-items: baseline; } }
.legal-row h3 { margin: 0; font-size: var(--fs-lg); color: var(--text); }
.legal-row p { margin: 0; color: var(--text-2); }
.legal-row:hover h3 { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---- community guidelines --------------------------------------------- */
.doc .enforced {
    margin: 12px 0 0; padding: 11px 14px; border-radius: var(--radius); font-size: 14.5px;
    background: color-mix(in srgb, var(--forest) 8%, transparent); border: 1px solid color-mix(in srgb, var(--forest) 26%, transparent);
}
.doc .enforced strong { color: color-mix(in srgb, var(--forest) 82%, var(--text)); font-weight: 600; }

/* ---- events (events.dexterai.dev) --------------------------------------
   The event gets a wordmark (a gold edition stamp beside the name), a
   countdown, a podium and the standings as a ruled table. */
.ev-mark { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 .26em; }
.ev-word { color: var(--text); }
.ev-num {
    align-self: center; font-size: .4em; line-height: 1; letter-spacing: 0; padding: .3em .48em .26em; border-radius: .4em;
    color: var(--on-accent); background: var(--accent); font-family: var(--font); font-weight: 800; font-variant-numeric: tabular-nums; transform: rotate(-4deg);
}

/* the event's state, as a line of text */
.ev-status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.ev-status-live { color: var(--forest); }
.ev-status-live .dot { animation: live 2.4s ease-in-out infinite; }
.ev-status-soon { color: var(--accent-text); }
.ev-status-ended { color: var(--text-3); }
.ev-cancelled { margin-top: 18px; }
.ev-cancelled p { margin: 0 0 8px; }
.ev-cancelled p:last-child { margin-bottom: 0; }
.ev-cancel-stats { margin-top: 24px; }
.ev-cancel-report > * { max-width: 820px; }
.ev-cancel-report ul { padding-left: 1.2em; display: grid; gap: 8px; }
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.ev-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 22px; font-size: 14px; color: var(--text-3); }
.ev-crumbs a { color: var(--text-3); text-decoration: none; }
.ev-crumbs a:hover { color: var(--accent-text); text-decoration: underline; }

/* event header: name and actions, the clock beside them, the facts below */
.ev-head { position: relative; padding: 28px 0 0; border-bottom: 1px solid var(--rule); }
.ev-head-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .ev-head-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } .ev-head { padding-top: 36px; } }
.ev-head h1 { font-size: var(--fs-3xl); line-height: .96; margin: 16px 0 18px; }
.ev-head .lede { margin-bottom: 28px; }
.ev-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 48px 0 0; border-top: 2px solid var(--ink); }
.ev-facts div { padding: 14px 16px 16px 0; }
.ev-facts div:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--rule); }
.ev-facts div:nth-child(n+3) { border-top: 1px solid var(--rule); }
@media (min-width: 720px) {
    .ev-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ev-facts div { padding-left: 20px; border-left: 1px solid var(--rule); }
    .ev-facts div:first-child { padding-left: 0; border-left: 0; }
    .ev-facts div:nth-child(n+3) { border-top: 0; }
}
.ev-facts dt { font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; }
.ev-facts dd { margin: 4px 0 0; font-size: var(--fs-base); font-weight: 600; font-variant-numeric: tabular-nums; }

.ev-side { background: var(--s1); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; }
.ev-cd { padding: 22px 24px 24px; }
.ev-cd .cd-title { margin: 0 0 14px; font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); }
.ev-cd .cd-title time { color: var(--text); }
.ev-cd .cd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ev-cd .cd-cell { display: flex; flex-direction: column; padding: 0 0 0 16px; border-left: 1px solid var(--rule); }
.ev-cd .cd-cell:first-child { padding-left: 0; border-left: 0; }
.ev-cd .cd-num { font: 600 clamp(32px, 4vw, 46px)/1 var(--display); font-stretch: 88%; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ev-cd .cd-label { margin-top: 6px; font-size: var(--fs-xs); color: var(--text-3); }
.ev-done { margin: 0; color: var(--text-2); }

.ev-prizes { padding: 20px 24px 22px; border-top: 1px solid var(--rule); }
.ev-prizes-title { margin: 0 0 12px; font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); }
.ev-prizes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ev-prizes li { padding-left: 16px; border-left: 1px solid var(--rule); }
.ev-prizes li:first-child { padding-left: 0; border-left: 0; }
.ev-prizes li span { display: block; font-size: var(--fs-xs); color: var(--text-3); }
.ev-prizes li b { display: block; font: 600 30px/1.1 var(--display); font-stretch: 90%; font-variant-numeric: tabular-nums; }
.ev-prizes .pz-1 b { color: var(--accent-text); }
.ev-prizes-note { margin: 14px 0 0; font-size: var(--fs-xs); color: var(--text-3); }

.ev-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 18px 0 0; }
.ev-tabs::-webkit-scrollbar { display: none; }
.ev-tabs a { flex: none; padding: 12px 12px 13px; color: var(--text-2); text-decoration: none; font-weight: 500; font-size: var(--fs-sm); border-bottom: 2px solid transparent; }
.ev-tabs a:first-child { margin-left: -12px; }
.ev-tabs a:hover { color: var(--text); }
.ev-tabs a[aria-current="page"] { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.ev-tabs a:focus-visible { outline-offset: -3px; }

.ev-head-sm { padding-top: 28px; }
.ev-head-sm h1 { font-size: var(--fs-2xl); line-height: 1.02; margin: 0; }
.ev-head-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; margin-bottom: 8px; }

.ev-section { padding: 56px 0; }
.ev-section + .ev-section { padding-top: 24px; }
.ev-two { display: grid; gap: 56px; }
@media (min-width: 900px) { .ev-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--gap) * 2); } }
.ev-empty { color: var(--text-2); padding: 16px 18px; border-radius: var(--radius); border: 1px dashed var(--border-strong); }
.ev-more { margin: 16px 0 0; }
.ev-section .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.ev-section .more svg { width: 16px; height: 16px; }

/* podium: 2nd, 1st, 3rd */
.podium { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.pod {
    --medal: var(--accent); position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
    padding: 18px 10px 18px; border-radius: var(--radius-lg); background: var(--s1); border: 1px solid var(--rule); min-width: 0;
}
.pod-1 { padding-top: 30px; padding-bottom: 30px; background: color-mix(in srgb, var(--accent) 8%, var(--s1)); border-color: var(--accent-border); }
.pod-2 { --medal: #d8cfb8; }
.pod-3 { --medal: #cf8a52; }
@media (prefers-color-scheme: light) { .pod-2 { --medal: #c9bfa5; } .pod-3 { --medal: #d39360; } }
.pod-place { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #241900; background: var(--medal); }
.pod-name { font-weight: 600; font-size: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-1 .pod-name { font: 700 22px/1.2 var(--display); font-stretch: 92%; }
.pod-value { font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.pod-prize { margin-top: 6px; font: 600 18px/1.1 var(--display); font-stretch: 90%; color: var(--text); font-variant-numeric: tabular-nums; }
.pod-1 .pod-prize { color: var(--accent-text); font-size: 24px; }
.pod-1 .pod-value { color: var(--text-2); }

/* the standings: a ruled table */
.ev-table { margin-top: 0; }
.ev-table th.num, .ev-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.ev-table td.rank { width: 64px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ev-table tr.top td { color: var(--text); }
.ev-table tr.top-1 td.rank { color: var(--accent-text); }
.ev-table td:nth-child(2) { color: var(--text); font-weight: 500; }
.ev-table tbody tr:hover td { background: var(--s1); }
.ev-table td.num { color: var(--text); }
.ev-prize-tag { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 6px; color: var(--accent-text); background: var(--accent-dim); font-variant-numeric: tabular-nums; }

.ev-steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.ev-steps li { counter-increment: step; position: relative; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--rule); color: var(--text-2); }
.ev-steps li:first-child { padding-top: 0; }
.ev-steps li:first-child::before { top: -2px; }
.ev-steps li:last-child { border-bottom: 0; }
.ev-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 12px; font: 600 18px/1.2 var(--display); font-stretch: 90%; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.ev-updates { list-style: none; margin: 0 0 14px; padding: 0; }
.ev-updates li { border-bottom: 1px solid var(--rule); }
.ev-updates li:first-child a { padding-top: 0; }
.ev-updates a { display: flex; gap: 12px; align-items: center; padding: 12px 2px; color: var(--text); text-decoration: none; }
.ev-updates a:hover b { color: var(--accent-text); }
.ev-updates b { font-weight: 500; }
.ev-updates small { margin-left: auto; color: var(--text-3); white-space: nowrap; font-size: var(--fs-xs); }

/* events index */
.ev-index-hero h1 { font-size: var(--fs-2xl); }
.ev-h { font-size: var(--fs-lg); margin: 0 0 20px; padding-top: 14px; border-top: 2px solid var(--ink); }
.ev-index .ev-h + .ev-empty { margin-bottom: 40px; }
.ev-grid-big { display: grid; gap: 16px; margin-bottom: 48px; }
.ev-card {
    position: relative; display: grid; gap: 22px; padding: 28px; border-radius: var(--radius-lg); text-decoration: none; color: inherit;
    background: var(--s1); border: 1px solid var(--rule); transition: border-color .15s;
}
.ev-card:hover { border-color: var(--accent-border); }
.ev-card h2 { margin: 12px 0 8px; font-size: clamp(28px, 4vw, 40px); line-height: 1.05; }
.ev-card-big { padding: 36px; }
.ev-card-big h2 { font-size: clamp(34px, 5.4vw, 60px); }
@media (min-width: 900px) { .ev-card-big { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 44px 48px; } .ev-card-big .more { grid-column: 1 / -1; } }
.ev-tagline { margin: 0 0 8px; color: var(--text-2); font-size: var(--fs-md); max-width: 36em; }
.ev-dates { margin: 0; color: var(--text-3); font-size: 14px; }
.ev-card-prizes, .evf-prizes { display: flex; margin: 0; }
.ev-card-prizes div, .evf-prizes div { padding: 0 22px; border-left: 1px solid var(--rule); }
.ev-card-prizes div:first-child, .evf-prizes div:first-child { padding-left: 0; border-left: 0; }
.ev-card-prizes dt, .evf-prizes dt { font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; }
.ev-card-prizes dd, .evf-prizes dd { margin: 2px 0 0; font: 600 30px/1.1 var(--display); font-stretch: 90%; font-variant-numeric: tabular-nums; color: var(--text); }
.ev-card-prizes div:first-child dd, .evf-prizes div:first-child dd { color: var(--accent-text); }
.ev-card .more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 600; font-size: 15px; }
.ev-card .more svg { width: 16px; height: 16px; transition: transform .18s; }
.ev-card:hover .more svg { transform: translateX(3px); }

/* the event's updates, as a list */
.ev-rel-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); max-width: 860px; }
.ev-rel-list li { border-bottom: 1px solid var(--rule); }
.ev-rel { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 16px 0; color: var(--text); text-decoration: none; }
.ev-rel .ver { justify-self: start; }
.ev-rel-main b { display: block; font-weight: 600; }
.ev-rel-main small { display: block; margin-top: 2px; color: var(--text-3); font-size: var(--fs-xs); }
.ev-rel time { color: var(--text-3); font-size: 14px; white-space: nowrap; }
.ev-rel:hover b { color: var(--accent-text); }
.doc .ev-rel-title { margin-top: 8px; border-top: 0; padding-top: 0; font-size: var(--fs-xl); }
.ev-pager { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--rule); }

/* the live event on the home page: the event and its top five */
.ev-home-feature { padding: 64px 0 0; }
.evf { display: grid; border-radius: var(--radius-lg); background: var(--s1); border: 1px solid var(--rule); overflow: hidden; }
@media (min-width: 900px) { .evf { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.evf-main { padding: 32px 28px; }
@media (min-width: 900px) { .evf-main { padding: 44px 48px; } }
.evf h2 { margin: 14px 0 10px; font-size: clamp(36px, 5vw, 64px); line-height: 1; }
.evf h2 a { color: var(--text); text-decoration: none; }
.evf h2 a:hover .ev-word { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.evf-tag { margin: 0 0 26px; color: var(--text-2); font-size: var(--fs-md); max-width: 34em; }
.evf-prizes { margin: 0 0 30px; }
.evf-board { padding: 28px; border-top: 1px solid var(--rule); background: color-mix(in srgb, var(--canvas) 55%, var(--s1)); }
@media (min-width: 900px) { .evf-board { padding: 44px 40px; border-top: 0; border-left: 1px solid var(--rule); } }
.evf-board-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0 0 12px; font-weight: 600; font-size: var(--fs-sm); color: var(--text); }
.evf-board-title span { color: var(--text-3); font-weight: 400; font-size: var(--fs-xs); }
.mini-board { list-style: none; margin: 0 0 18px; padding: 0; border-top: 2px solid var(--ink); }
.mini-board li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.mb-rank { font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.mini-board .r1 .mb-rank { color: var(--accent-text); }
.mb-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-value { color: var(--text-2); font-variant-numeric: tabular-nums; font-size: var(--fs-sm); }

@media (max-width: 520px) {
    .ev-cd { padding: 18px; }
    .ev-cd .cd-cell { padding-left: 10px; }
    .ev-prizes { padding: 18px; }
    .podium { gap: 8px; }
    .pod { padding: 14px 6px 14px; }
    .pod-1 { padding-top: 22px; padding-bottom: 22px; }
    .pod-name { font-size: 14px; }
    .pod-1 .pod-name { font-size: 17px; }
    .ev-card-prizes div, .evf-prizes div { padding: 0 16px; }
    .ev-card-prizes dd, .evf-prizes dd { font-size: 26px; }
    .ev-card, .ev-card-big { padding: 22px; }
    .ev-rel { grid-template-columns: 52px minmax(0, 1fr); }
    .ev-rel time { grid-column: 2; }
}

/* standings with "how the board works" beside them */
.ev-board { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1040px) { .ev-board { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 72px; } .ev-board-aside { position: sticky; top: 92px; } }
.ev-board-aside { border-top: 2px solid var(--ink); padding-top: 14px; }
.ev-board-aside h3 { margin: 0 0 10px; font-size: var(--fs-base); font-family: var(--font); font-weight: 700; letter-spacing: 0; }
.ev-board-aside h3 ~ h3 { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); }
.ev-board-aside ul { margin: 0 0 16px; padding-left: 18px; }
.ev-board-aside li { margin: 8px 0; color: var(--text-2); font-size: 14.5px; }
.ev-board-aside li::marker { color: var(--text-3); }
.ev-board-aside b { color: var(--text); font-weight: 600; }
.ev-aside-prizes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ev-aside-prizes li { margin: 0; padding-left: 14px; border-left: 1px solid var(--rule); }
.ev-aside-prizes li:first-child { padding-left: 0; border-left: 0; }
.ev-aside-prizes span { display: block; font-size: var(--fs-xs); color: var(--text-3); }
.ev-aside-prizes b { display: block; font: 600 24px/1.1 var(--display); font-stretch: 90%; font-variant-numeric: tabular-nums; }
.ev-aside-prizes li:first-child b { color: var(--accent-text); }
.ev-board > div > .sub { margin-top: 0; }
.toc-plain ul { margin: 0; padding: 0; list-style: none; }
.section.ev-index { padding-top: 8px; }

/* ---- notices: sign-in errors and sign-out confirmations (routes/auth.js
   sendNotice), on every host: one card in the middle of the page ---------- */
.notice { display: grid; place-items: center; padding-top: 80px; padding-bottom: 112px; }
.notice-card { width: 100%; max-width: 540px; padding: 36px 36px 32px; border-radius: var(--radius-lg); background: var(--s1); border: 1px solid var(--rule); }
.notice-icon { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 0 20px; border-radius: 12px; background: var(--accent-dim); color: var(--accent-text); }
.notice-icon svg { width: 22px; height: 22px; }
.notice-icon.notice-warn { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.notice-icon.notice-calm { background: var(--s2); color: var(--text-2); }
.notice-card h1 { font-size: var(--fs-xl); line-height: 1.1; margin: 0 0 10px; }
.notice-text { margin: 0 0 6px; color: var(--text-2); }
.notice-text code, .notice-meta code { white-space: normal; }
.notice-meta, .notice-foot { margin: 12px 0 0; font-size: 14px; color: var(--text-3); }
.notice-foot a { color: inherit; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.notice-actions form { display: contents; }
@media (max-width: 520px) {
    .notice { padding-top: 32px; padding-bottom: 64px; }
    .notice-card { padding: 26px 22px 22px; }
    .notice-actions .btn { flex: 1 1 auto; }
}
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
/* Inline code in long-form pages wraps at its spaces: a whole command kept
   on one line (base.css code: nowrap) pushed the staff handbook 30px past a
   390px screen and widened its command tables to 850px. */
.doc code { white-space: normal; overflow-wrap: break-word; }

/* ---- changelog (/changelog, /changelog/<slug>) -------------------------------------------- */
.cl-page .doc-head { max-width: 760px; }
.cl-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; color: var(--text-3); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.cl-list { list-style: none; margin: 8px 0 72px; padding: 0; max-width: 760px; display: grid; }
.cl-item { padding: 26px 0 28px; border-top: 1px solid var(--rule); }
.cl-item:first-child { border-top: 2px solid var(--ink); }
.cl-item h2 { margin: 0 0 8px; font-size: var(--fs-lg); line-height: 1.2; text-wrap: balance; }
.cl-item h2 a { color: var(--text); text-decoration: none; }
.cl-item h2 a:hover { color: var(--accent-text); }
.cl-item > p { margin: 0 0 12px; color: var(--text-2); max-width: 62ch; }
.cl-bots { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: var(--fs-xs); color: var(--text-2); }
.cl-chip .swatch, .cl-bot h3 .swatch { width: 9px; height: 9px; border-radius: 3px; background: var(--tone); flex: none; }
.cl-entry { max-width: 760px; display: grid; gap: 28px; margin: 8px 0 40px; }
.cl-bot { border-top: 2px solid var(--tone); padding-top: 16px; }
.cl-bot h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 22px; }
.cl-group h4 { margin: 14px 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.cl-group ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); }
.cl-group li::marker { color: var(--tone); }
.cl-group code { font-size: .92em; }
.cl-pager { max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 80px; padding-top: 20px; border-top: 1px solid var(--rule); }
.cl-pager a { display: grid; gap: 4px; color: var(--text); text-decoration: none; font-weight: 600; }
.cl-pager a span { font-size: var(--fs-xs); font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.cl-pager .cl-next { text-align: right; }
.cl-pager a:hover { color: var(--accent-text); }
@media (max-width: 560px) { .cl-pager { grid-template-columns: 1fr; } .cl-pager .cl-next { text-align: left; } }

/* ---- leaderboard (dexterai.dev/leaderboard, site/leaderboard.js) --------
   The board tabs are plain links in groups (Levels, Economy, and Event while
   a competition runs); the numbers reuse the home page's scoreboard, the
   events' podium and ruled table. A level's progress is a bar whose width
   is a class (no inline styles under the CSP), in steps of 5%. */
.lb-head { padding-bottom: 8px; }
.lb-tabs { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 28px 0 0; }
.lb-tab-group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.lb-tab-label { width: 100%; margin: 0 0 4px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.lb-tabs a { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2); text-decoration: none; font-weight: 500; font-size: var(--fs-sm); }
.lb-tabs a:hover { color: var(--text); border-color: var(--accent-border); }
.lb-tabs a[aria-current="page"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); font-weight: 600; }
.lb-tab-event .lb-tab-label { color: var(--accent-text); }
.lb-section { padding-top: 32px; }
.lb-notice { margin: 0 0 28px; }
.lb-notice svg { color: var(--accent-text); }
.lb-updated { color: var(--text-3); white-space: nowrap; }
.lb-stats { margin: 0 0 40px; }
@media (min-width: 980px) { .lb-stats { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin-top: 0; } .lb-stats li:nth-child(n+3) { border-top: 0; } }
.lb-podium .pod-prize { font-size: 15px; color: var(--text-2); }
.lb-podium .pod-1 .pod-prize { color: var(--accent-text); font-size: 17px; }
.lb-table td.lb-level { white-space: nowrap; min-width: 150px; }
.lb-lv { display: inline-block; min-width: 2.2em; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.lb-bar { display: inline-block; vertical-align: middle; width: 72px; height: 6px; margin: 0 8px 0 2px; border-radius: 999px; background: var(--s3); overflow: hidden; }
.lb-fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.lb-next { font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.lb-table td.lb-share { color: var(--text-2); }
.lb-own { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--text-2); font-size: var(--fs-sm); }
.lb-board > div { min-width: 0; }
@media (max-width: 979px) { .lb-stats li:last-child:nth-child(odd) { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }
@media (max-width: 640px) {
    .lb-next, .lb-bar { display: none; }
    .lb-table td.lb-level { min-width: 0; }
    .lb-table th, .lb-table td { padding-left: 6px; padding-right: 6px; }
    .lb-table td.rank { width: 36px; }
    .lb-podium { gap: 8px; }
    .lb-podium .pod { padding-left: 6px; padding-right: 6px; }
    .lb-podium .pod-name { font-size: 14px; }
    .lb-podium .pod-1 .pod-name { font-size: 17px; }
}
.lb-p0 { width: 0%; }
.lb-p5 { width: 5%; }
.lb-p10 { width: 10%; }
.lb-p15 { width: 15%; }
.lb-p20 { width: 20%; }
.lb-p25 { width: 25%; }
.lb-p30 { width: 30%; }
.lb-p35 { width: 35%; }
.lb-p40 { width: 40%; }
.lb-p45 { width: 45%; }
.lb-p50 { width: 50%; }
.lb-p55 { width: 55%; }
.lb-p60 { width: 60%; }
.lb-p65 { width: 65%; }
.lb-p70 { width: 70%; }
.lb-p75 { width: 75%; }
.lb-p80 { width: 80%; }
.lb-p85 { width: 85%; }
.lb-p90 { width: 90%; }
.lb-p95 { width: 95%; }
.lb-p100 { width: 100%; }

/* changelog byline: the author's avatar, name (linked), date and read time */
.cl-byline { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.cl-byline p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.cl-byline .cl-meta { margin: 0; }
.cl-av { width: 28px; height: 28px; border-radius: 50%; flex: none; object-fit: cover; background: var(--s2); border: 1px solid var(--border-strong); }
.cl-av-blank { display: inline-grid; place-items: center; font: 700 13px/1 var(--display); color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.cl-author { font-weight: 700; color: var(--text); text-decoration: none; }
.cl-author:hover { color: var(--accent-text); text-decoration: underline; }
.cl-byline-big { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); gap: 14px; }
.cl-byline-big .cl-av { width: 44px; height: 44px; }
.cl-byline-big .cl-av-blank { font-size: 18px; }
.cl-byline-big p { flex-direction: column; align-items: flex-start; gap: 2px; }
.cl-role { font-size: var(--fs-xs); color: var(--text-3); }
.cl-intro { max-width: 760px; margin: 4px 0 30px; padding: 18px 20px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--accent) 6%, var(--s1)); border: 1px solid var(--accent-border); }
.cl-intro p { margin: 0; color: var(--text); font-size: var(--fs-md); line-height: 1.6; }

/* ---- home (2026-11-11) --------------------------------------------------
   A product home page in the Classic palette: an announcement pill above a
   two-column hero (headline, two buttons, the live server preview), a strip
   with the member count and the bots' faces, the get-started steps, feature
   rows that alternate the visual's side (each a drawn piece of the Discord
   UI: the ticket panel, a level-up card, the now-playing card, the Verify
   panel), the bots as a card grid on a band, the newest changelog entries,
   the FAQ, careers beside voting and one closing card. Cards are the darker surface on the page colour, buttons
   are filled, and small marks (kickers, ticks, icons) take the one blue
   accent; the bots' own colours stay on their faces and names. */
.is-home .lede { font-size: var(--fs-md); max-width: 34em; }
.hl { color: var(--accent-text); }

.h-hero { padding: 40px 0 72px; }
@media (min-width: 980px) { .h-hero { padding: 56px 0 104px; } }
.h-pill-row { display: flex; justify-content: center; margin: 0 0 48px; }
.h-pill {
    display: inline-flex; align-items: center; gap: 12px; max-width: 100%; min-height: 40px; padding: 5px 16px 5px 6px; border-radius: 999px;
    background: var(--s1); border: 1px solid var(--border-strong); color: var(--text-2); text-decoration: none; font-size: var(--fs-sm);
    transition: border-color .15s, background .15s;
}
.h-pill:hover { border-color: var(--accent-border); background: var(--s2); }
.h-pill > span:not(.h-pill-tag) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.h-pill b { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 700; white-space: nowrap; }
.h-pill b svg { width: 14px; height: 14px; }
.h-pill-tag { flex: none; padding: 5px 10px; border-radius: 999px; background: var(--accent-dim); color: var(--accent-text); font: 800 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.h-pill-tag.is-live { background: color-mix(in srgb, var(--forest) 18%, transparent); color: var(--forest); }
@media (max-width: 560px) { .h-pill b { display: none; } .h-pill-row { margin-bottom: 32px; } }

.h-hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .h-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.h-where { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; }
.h-where svg { color: var(--accent-text); width: 18px; height: 18px; }
.h-hero h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 22px; max-width: 13ch; }
.h-hero .lede { margin-bottom: 32px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 16px; }

/* the server preview: a Discord window */
.srv { margin: 0; background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; max-width: 540px; width: 100%; justify-self: end; }
.srv-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--rule); background: var(--s2); }
.srv-icon { width: 40px; height: 40px; border-radius: 12px; flex: none; object-fit: cover; }
.srv-icon-blank { display: grid; place-items: center; background: var(--accent-dim); color: var(--accent-text); }
.srv-id { display: grid; gap: 2px; min-width: 0; }
.srv-id b { font: 700 var(--fs-md)/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-id span { color: var(--text-3); font-size: var(--fs-xs); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.srv-id .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--forest); display: inline-block; }
.srv-chans { padding: 10px 10px 14px; display: grid; gap: 12px; max-height: 420px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); }
@media (max-width: 640px) { .srv-chans { max-height: 280px; } }
.srv-cat p { margin: 4px 8px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-cat ul { list-style: none; margin: 0; padding: 0; }
.srv-cat li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--text-2); font-size: var(--fs-sm); min-width: 0; }
.srv-cat li svg { color: var(--text-3); flex: none; }
.srv-cat li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-cat:first-child li:first-child { background: var(--s2); color: var(--text); }
.srv-crew { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-top: 1px solid var(--rule); background: var(--s2); }
.srv-bot { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: var(--s1); border: 1px solid color-mix(in srgb, var(--tone, var(--accent)) 35%, transparent); font-size: var(--fs-xs); font-weight: 600; color: var(--text); }
.srv-bot .roster-av { width: 22px; height: 22px; border-radius: 50%; }
.srv-bot .swatch { width: 12px; height: 12px; margin-left: 4px; border-radius: 50%; background: var(--tone, var(--accent)); }
@media (max-width: 979px) { .srv { justify-self: stretch; max-width: none; } }

/* the strip under the hero: the member count and the bots' faces */
.h-proof { background: var(--sunken); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.h-proof-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-top: 30px; padding-bottom: 30px; }
.h-proof-title { margin: 0; font: 700 clamp(22px, 2.4vw, 28px)/1.2 var(--display); letter-spacing: -0.015em; color: var(--text); }
.h-proof-title b { font-variant-numeric: tabular-nums; }
.h-proof-bots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.h-proof-bots .roster-av { width: 56px; height: 56px; border-radius: 50%; display: block; box-shadow: 0 0 0 3px var(--sunken), 0 0 0 5px color-mix(in srgb, var(--tone) 70%, transparent); }
.h-proof-bots .swatch { display: block; width: 56px; height: 56px; border-radius: 50%; background: var(--tone, var(--s2)); }
@media (max-width: 560px) { .h-proof-bots { gap: 12px; } .h-proof-bots .roster-av, .h-proof-bots .swatch { width: 44px; height: 44px; } }

/* feature rows: the visual on one side, the words on the other */
.h-row { padding: 64px 0; }
@media (min-width: 980px) { .h-row { padding: 88px 0; } }
.h-row + .h-row { padding-top: 0; }
.h-row-grid { display: grid; gap: 32px; align-items: center; }
/* phones: the words first, then the picture */
@media (max-width: 979px) { .h-row-grid .h-vis { order: 2; } }
@media (min-width: 980px) {
    .h-row-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
    .h-row-flip .h-vis { order: 2; }
}
.h-copy h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 16px; max-width: 16ch; }
.h-copy > p { margin: 0 0 22px; color: var(--text-2); max-width: 44ch; }
.h-kicker { margin: 0 0 12px; color: var(--accent-text); font: 800 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.h-points { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.h-points li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); }
.h-check { flex: none; margin-top: 4px; color: var(--accent-text); }
.h-copy .cta-row { gap: 12px; }

.h-vis {
    display: grid; gap: 16px; padding: 28px; border-radius: var(--radius-lg);
    background: var(--s1); border: 1px solid var(--border); box-shadow: var(--shadow);
}
@media (max-width: 560px) { .h-vis { padding: 20px; } }

/* a Discord message with a panel, as the support bot posts it */
.h-msg { display: flex; gap: 14px; align-items: flex-start; }
.h-msg-av .roster-av { width: 40px; height: 40px; border-radius: 50%; display: block; }
.h-msg-av .swatch { display: block; width: 40px; height: 40px; border-radius: 50%; background: var(--tone); }
.h-msg-body { flex: 1; min-width: 0; }
.h-msg-who { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; }
.h-msg-who b { color: var(--tone, var(--text)); }
.h-bot-tag { padding: 2px 5px; border-radius: 4px; background: var(--accent); color: var(--on-accent); font: 700 10.5px/1.2 var(--font); text-transform: uppercase; }
.h-embed { padding: 14px 16px 16px; border-radius: 6px; background: var(--s2); border-left: 4px solid var(--tone, var(--accent)); }
.h-embed-title { margin: 0 0 6px; font-weight: 700; color: var(--text); }
.h-embed p { color: var(--text-2); font-size: var(--fs-sm); }
.h-embed p:not(.h-embed-title) { margin: 0 0 14px; }
.h-embed-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.h-fake-btn { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 6px; background: var(--s3); color: var(--text); font-size: var(--fs-sm); font-weight: 600; }
.h-fake-btn.is-blue { background: var(--accent); color: var(--on-accent); }
.h-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.h-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--s2); color: var(--text-2); font-size: var(--fs-sm); }
.h-chips svg { width: 16px; height: 16px; color: var(--accent-text); }
.h-chips b { color: var(--text); }

/* a bot's own words in a message, and @mentions / #channels as Discord pills */
.h-msg-text { margin: 0 0 10px; color: var(--text); font-size: var(--fs-sm); }
.h-mention { padding: 0 3px; border-radius: 4px; background: var(--accent-dim); color: var(--accent-text); font-weight: 600; }
.h-chan { display: inline-flex; align-items: center; gap: 3px; padding: 0 5px 0 3px; border-radius: 4px; background: var(--accent-dim); color: var(--accent-text); font-weight: 600; white-space: nowrap; }
.h-chan svg { width: 13px; height: 13px; }
.h-fake-btn.is-green { gap: 6px; background: var(--forest); color: #fff; }
.h-fake-btn.is-green .h-check { margin: 0; color: #fff; width: 15px; height: 15px; }

/* the strip's second line: who is online */
.h-proof-sub { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--text-2); font-size: var(--fs-sm); }
.h-proof-sub b { color: var(--text); font-variant-numeric: tabular-nums; }
.h-proof-sub .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--forest); display: inline-block; }

/* get started: numbered cards */
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 860px) { .h-steps { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.h-steps > li { position: relative; padding: 26px 24px 24px; border-radius: var(--radius-lg); background: var(--s1); border: 1px solid var(--border); }
.h-step-n { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 0 16px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font: 800 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.h-steps h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.2; }
.h-steps p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.h-steps p b { color: var(--text); }
.h-steps .link-arrow { margin-top: 14px; font-size: var(--fs-sm); }

/* the level-up card Spark posts, redrawn */
.h-lvl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px; border-radius: 10px; background: var(--field); border: 1px solid var(--border); }
.h-lvl-av { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--s3); color: var(--text-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone, var(--accent)) 70%, transparent); }
.h-lvl-av svg { width: 26px; height: 26px; }
.h-lvl-main { min-width: 0; }
.h-lvl-eyebrow { margin: 0; color: var(--tone, var(--accent-text)); font: 800 11.5px/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.h-lvl-name { margin: 2px 0 10px; font: 700 var(--fs-md)/1.2 var(--display); color: var(--text); }
.h-lvl-bar { display: block; height: 8px; border-radius: 999px; background: var(--s3); overflow: hidden; }
.h-lvl-bar i { display: block; width: 64%; height: 100%; border-radius: inherit; background: var(--tone, var(--accent)); }
.h-lvl-left { margin: 6px 0 0; color: var(--text-3); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.h-lvl-stat { display: grid; justify-items: end; margin: 0; }
.h-lvl-stat span { color: var(--text-3); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.h-lvl-stat b { font: 800 44px/1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .h-lvl { grid-template-columns: minmax(0, 1fr) auto; padding: 14px; } .h-lvl-av { display: none; } .h-lvl-stat b { font-size: 36px; } }

/* the economy: one tile per activity, with the item art the bot uses */
.h-acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 520px) { .h-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.h-acts li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; align-items: center; padding: 12px 14px; border-radius: var(--radius); background: var(--s2); }
.h-acts img { grid-row: span 2; width: 40px; height: 40px; justify-self: center; }
.h-acts b { color: var(--text); font-size: var(--fs-sm); line-height: 1.25; }
.h-acts code { justify-self: start; max-width: 100%; white-space: normal; font-size: 12.5px; background: var(--s1); }

/* music: the /play command as typed, and the now-playing card */
.h-slash { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: var(--radius); background: var(--field); border: 1px solid var(--border); font-size: var(--fs-sm); }
.h-slash-cmd { font-weight: 700; color: var(--text); }
.h-slash-opt { display: inline-flex; align-items: center; border-radius: 5px; background: var(--s2); overflow: hidden; color: var(--text); }
.h-slash-opt i { font-style: normal; padding: 2px 8px; background: var(--s3); color: var(--text-2); font-weight: 600; }
.h-slash-opt { padding-right: 8px; gap: 8px; }
.h-np { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; margin: 0 0 14px; }
.h-np-art { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 8px; background: color-mix(in srgb, var(--tone, var(--accent)) 22%, var(--s3)); color: var(--tone, var(--accent-text)); }
.h-np-art svg { width: 28px; height: 28px; }
.h-np-main { min-width: 0; }
.h-np .h-embed-title { margin: 0 0 2px; }
.h-embed p.h-np-by { margin: 0 0 10px; color: var(--text-2); font-size: var(--fs-xs); }
.h-np-bar { display: block; height: 6px; border-radius: 999px; background: var(--s3); overflow: hidden; }
.h-np-bar i { display: block; width: 32%; height: 100%; background: var(--tone, var(--accent)); }
.h-embed p.h-np-time { display: flex; justify-content: space-between; margin: 4px 0 0; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.h-handoff { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-radius: 999px; background: var(--s2); color: var(--text-2); font-size: var(--fs-sm); }
.h-handoff .roster-av { width: 28px; height: 28px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--tone) 70%, transparent); }
.h-handoff .swatch { width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--tone); }
.h-handoff b { color: var(--text); }

/* small tiles: safety, one line each */
.h-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.h-tiles li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--s2); }
.h-tile-icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--accent-dim); color: var(--accent-text); }
.h-tile-icon svg { width: 20px; height: 20px; }
.h-tiles b { color: var(--text); }
.h-tiles li > span:not(.h-tile-icon) { color: var(--text-2); font-size: var(--fs-sm); }

/* the live top of the leaderboard */
.eco-board { border-radius: var(--radius); background: var(--s2); padding: 16px 16px 6px; }
.eco-board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 8px; }
.eco-board-head b { font: 700 var(--fs-md)/1.2 var(--display); }
.eco-board-head span { color: var(--text-3); font-size: var(--fs-xs); }
.eco-board ol { list-style: none; margin: 0; padding: 0; }
.eco-board li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule); }
.eco-board .eb-rank { font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.eco-board .first .eb-rank { color: var(--accent-text); }
.eco-board .eb-name { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eco-board .eb-lv { font-size: var(--fs-xs); color: var(--text-2); font-variant-numeric: tabular-nums; }

/* the app: hold to talk */
.h-app { display: grid; justify-items: center; gap: 14px; padding: 12px 0 4px; text-align: center; }
.h-mic { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 16%, transparent), 0 0 0 22px color-mix(in srgb, var(--accent) 7%, transparent); margin: 18px 0 8px; }
.h-app-hint { margin: 0; color: var(--text-3); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.h-says { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.h-says li { padding: 9px 14px; border-radius: 999px; background: var(--s2); color: var(--text); font-size: var(--fs-sm); }

/* sections with a centred head (steps, the crew, what's new, the FAQ) */
.h-sec { padding: 64px 0; }
.h-sec-tight { padding: 0 0 48px; }
@media (min-width: 980px) { .h-sec { padding: 88px 0; } .h-sec-tight { padding: 0 0 64px; } }
/* the steps run straight into the first feature row */
.h-sec + .h-row { padding-top: 0; }
.h-sec-band { background: var(--sunken); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.h-sec-band .h-crew > li { background: var(--canvas); }
.h-sec-head { text-align: center; margin: 0 auto 44px; max-width: 640px; }
.h-sec-head h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 12px; }
.h-sec-head p { margin: 0; color: var(--text-2); }
.h-sec-head > :last-child { margin-bottom: 0; }
.h-more { margin: 24px 0 0; text-align: center; }

.h-crew { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .h-crew { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .h-crew { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.h-crew > li { padding: 24px; border-radius: var(--radius-lg); background: var(--s1); border: 1px solid var(--border); transition: border-color .15s, transform .15s; }
.h-crew > li:hover { border-color: color-mix(in srgb, var(--tone) 50%, transparent); transform: translateY(-2px); }
.h-crew-top { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.h-crew-top .roster-av { width: 48px; height: 48px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--tone) 70%, transparent); }
.h-crew-top .swatch { width: 48px; height: 48px; border-radius: 50%; flex: none; background: var(--tone); }
.h-crew h3 { margin: 0; font-size: 22px; line-height: 1.2; }
.h-crew-role { display: inline-block; margin: 4px 0 0; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--tone) 14%, transparent); color: color-mix(in srgb, var(--tone) 80%, var(--text)); font-size: var(--fs-xs); font-weight: 700; }
.h-crew > li > p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }

/* what's new: the newest changelog entries as cards */
.h-news { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .h-news { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.h-news > li { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius-lg); background: var(--s1); border: 1px solid var(--border); transition: border-color .15s; }
.h-news > li:hover { border-color: var(--accent-border); }
.h-news-date { margin: 0; color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
.h-news h3 { margin: 0; font-size: 20px; line-height: 1.25; text-wrap: balance; }
.h-news h3 a { color: var(--text); text-decoration: none; }
/* the whole card is the link */
.h-news h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.h-news h3 a:hover { color: var(--accent-text); }
.h-news h3 a:focus-visible { outline: none; }
.h-news > li:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.h-news > li > p:not(.h-news-date):not(.cl-bots) { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.h-news .cl-bots { margin-top: auto; padding-top: 4px; }
/* "Website" and "Every bot" (site/changelog.js BOT) have no bot colour of their own */
.tone-gold { --tone: var(--text-3); }

/* the FAQ: details and summary, no script */
.h-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.h-faq details { border-radius: var(--radius-lg); background: var(--s1); border: 1px solid var(--border); }
.h-faq details[open] { border-color: var(--border-strong); }
.h-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 700; color: var(--text); }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--s2); color: var(--accent-text); font: 700 18px/1 var(--font); }
.h-faq details[open] summary::after { content: '−'; }
.h-faq summary:hover { color: var(--accent-text); }
.h-faq details p { margin: 0; padding: 0 22px 20px; color: var(--text-2); max-width: 68ch; }
.h-faq details p b { color: var(--text); }
@media (max-width: 560px) { .h-faq summary { padding: 16px 18px; } .h-faq details p { padding: 0 18px 18px; } }

/* careers and voting: two cards side by side, or one across */
.h-duo { display: grid; gap: 16px; }
@media (min-width: 900px) { .h-duo.is-two { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.h-card { padding: 28px; border-radius: var(--radius-lg); background: var(--s1); border: 1px solid var(--border); }
.h-card h2 { font-size: var(--fs-xl); line-height: 1.15; margin: 0 0 6px; }
.h-card-sub { margin: 0 0 22px; color: var(--text-2); }
.h-card .link-arrow { margin-top: 18px; }
.h-vote { display: flex; flex-direction: column; align-items: flex-start; border-color: var(--accent-border); }
.h-vote .btn { margin-top: auto; }


/* the closing card */
.h-final { padding: 16px 0 72px; }
@media (min-width: 980px) { .h-final { padding: 24px 0 104px; } }
.h-final-card { display: grid; justify-items: center; gap: 14px; padding: 56px 28px; border-radius: 16px; background: var(--s1); border: 1px solid var(--border); text-align: center; }
.h-final-card h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.025em; max-width: 18ch; }
.h-final-card p { margin: 0 0 10px; color: var(--text-2); max-width: 46ch; }
.h-final-card .cta-row { justify-content: center; }
.h-invite { color: var(--text-2); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.h-invite:hover { color: var(--accent-text); text-decoration: underline; }
