/* Manada — the marketing site's only stylesheet.
 *
 * Ported from the design package (manada-assets @ 3965eda), which styles everything with inline
 * `style=""` attributes, defines no custom properties and has no breakpoints at all. Both of those
 * are fixed here: tokens live in :root, and the layout is responsive.
 *
 * Two load-bearing constraints, both from ADR 0009:
 *   - Nothing may reference an external origin. The CSP is `default-src 'none'`, so a CDN font or a
 *     hotlinked image does not degrade — it vanishes.
 *   - Square corners. `border-radius` is 0 everywhere except the round avatar crops. The squareness
 *     is part of the identity, not an oversight.
 */

/* ---------------------------------------------------------------- type ---- */

@font-face {
  font-family: 'Cinzel';
  src: url('/assets/cinzel.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('/assets/ebgaramond.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('/assets/ebgaramond-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/manrope.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------- tokens ---- */

:root {
  /* Palette. Names are the brand kit's own. */
  --bg: #12100c;
  --ink: #1b1712;          /* card surfaces */
  --surface-alt: #171410;  /* alternating section ground */
  --raised: #2f2418;       /* highlighted cell, pull-quote */
  --code-bg: #0d0a07;      /* monospace chips */
  --parchment: #e9e2d0;
  --gilt: #c8a15a;         /* the only accent that touches UI */
  --gilt-hover: #e8dcc0;
  --hide: #9c5239;
  --field: #2f4a2c;        /* banner cloth only */
  --pole: #3a2a18;
  --hairline: rgba(200, 161, 90, 0.22);
  --card-border: rgba(200, 161, 90, 0.28);

  --text-soft: rgba(233, 226, 208, 0.78);
  --text-muted: rgba(233, 226, 208, 0.55);

  /* Vocation accents — badges and captions only. */
  --knight: #98a2b0;
  --paladin: #9d8d60;
  --druid: #8fd0e8;
  --sorcerer: #c86ad6;
  --monk: #e0c078;

  --display: 'Cinzel', Georgia, serif;
  --voice: 'EB Garamond', Georgia, serif;
  --ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;

  /* One ring for every focusable thing. It had been written out five times at three different
     offsets — five occasions rather than five affordances. */
  --focus-ring: 2px solid var(--gilt);
  /* The sticky header's height: 14px + a 48px avatar + 14px + its hairline. The dashboard's own
     sticky column has to start below it, and both should read the same number. */
  --header-h: 77px;

  /* The source hard-codes 64px side padding. This keeps it on a phone. */
  --pad: clamp(20px, 5vw, 64px);
  --section-y: clamp(48px, 7vw, 76px);
  /* Content stops growing past this, while section backgrounds still span the full width. The
   * source has no cap at all and its cards stretch indefinitely on a wide display. */
  --measure: 1320px;
  --gutter: max(var(--pad), calc((100% - var(--measure)) / 2));

  color-scheme: dark;
}

/* ---------------------------------------------------------------- base ---- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--parchment);
  font-family: var(--ui);
  /* The source drops to 10.5px in places. 12px is the floor here; see ADR 0009. */
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  /* Nothing on this page may push the viewport sideways. */
  overflow-wrap: break-word;
}

a {
  color: var(--gilt);
  text-decoration: none;
}
a:hover {
  color: var(--gilt-hover);
}

/* The source has no focus styling at all, and the page is keyboard-navigable by definition. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gilt);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  /* Every mark here is hard-edged pixel art. Smooth scaling turns the outlines to mush. */
  image-rendering: pixelated;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  /* Cinzel is never set below 17px, per the brand kit. */
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gilt);
  margin: 0 0 18px;
}

.voice {
  font-family: var(--voice);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.5;
  color: var(--text-soft);
}

.chip {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--gilt);
  background: var(--code-bg);
  padding: 9px 11px;
  margin-top: 16px;
  /* Deliberately wrapping, not `nowrap` + scroll. A grid item defaults to `min-width: auto`, so a
   * non-wrapping chip sets the column's minimum to the full command string — which pushed the whole
   * page wider than a phone viewport and clipped every heading on the right. */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.section {
  padding: var(--section-y) var(--gutter);
  border-bottom: 1px solid var(--hairline);
}
.section--alt {
  background: var(--surface-alt);
}

.section > h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: 0.06em;
}

.kicker {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 62ch;
  margin: 14px 0 34px;
}

/* -------------------------------------------------------------- header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px var(--gutter);
  background: rgba(18, 16, 12, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--parchment);
}
.brand:hover {
  color: var(--parchment);
}
.brand__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%; /* the one exception to square corners */
  display: block;
}
.brand__word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  flex-wrap: wrap;
  font-size: 14px;
}
.site-nav a {
  color: var(--text-soft);
}
.site-nav a:hover {
  color: var(--gilt);
}

/* -------------------------------------------------------------- button ---- */

.btn {
  display: inline-block;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 13px 22px;
  border: 1px solid var(--gilt);
  background: var(--gilt);
  color: var(--ink);
}
.btn:hover {
  background: var(--gilt-hover);
  border-color: var(--gilt-hover);
  color: var(--ink);
}
.btn--ghost {
  background: transparent;
  color: var(--gilt);
}
.btn--ghost:hover {
  background: transparent;
  color: var(--gilt-hover);
}

/* When there is no Discord application to link to, the CTA is text, not a dead link. */
.btn--inert {
  border-style: dashed;
  border-color: var(--card-border);
  background: transparent;
  color: var(--text-muted);
  cursor: default;
}

.cta-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 14px 0 0;
}

/* ---------------------------------------------------------------- hero ---- */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(48px, 8vw, 88px) var(--gutter);
  border-bottom: 1px solid var(--hairline);
}

/* The search hero. One column and centred, because the page now opens with a question rather than
 * a pitch, and a question wants the reader looking at one thing. */
.hero--search {
  display: block;
  text-align: center;
  padding-block: clamp(56px, 9vw, 110px);
}

.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero .voice {
  max-width: 34ch;
}

.hero--search .voice {
  max-width: 62ch;
  margin-inline: auto;
}

.hero__search {
  margin: clamp(30px, 4vw, 44px) auto 0;
  max-width: 640px;
}
.hero__search-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__search-row {
  display: flex;
  gap: 10px;
}
.hero__search-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 15px 18px;
  border: 1px solid var(--gilt);
  border-radius: 0;
  background: var(--code-bg);
  color: var(--parchment);
  font-family: var(--ui);
  /* 16px minimum, or iOS zooms the whole page the moment this is focused. */
  font-size: 17px;
}
.hero__search-input::placeholder {
  color: var(--text-muted);
}
.hero__search-input:focus-visible {
  outline: 2px solid var(--gilt);
  outline-offset: 2px;
}
.hero__search .btn {
  flex: 0 0 auto;
  padding-inline: clamp(20px, 4vw, 34px);
}
.hero__note {
  margin: 14px auto 0;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* The band below it, where the Discord bot is introduced. Same two-column shape the hero used to
 * have — the pitch did not change, only its place in the reading order. */
.band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.band h2 {
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.12;
  margin-bottom: 18px;
}
.band .voice {
  max-width: 46ch;
}

@media (max-width: 860px) {
  .band {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .hero__search-row {
    flex-wrap: wrap;
  }
  .hero__search .btn {
    width: 100%;
  }
}

.hero__cta {
  margin-top: 34px;
}

.stats {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}
.stats__n {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  color: var(--gilt);
  display: block;
}
.stats__l {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 22ch;
  display: block;
  margin-top: 4px;
}

/* The pennant: pole bar, clipped cloth, avatar centred on it. */
.pennant {
  justify-self: center;
  text-align: center;
}
.pennant__pole {
  width: 230px;
  max-width: 100%;
  height: 13px;
  background: var(--pole);
  margin: 0 auto;
}
.pennant__cloth {
  width: 200px;
  max-width: 100%;
  height: 236px;
  margin: 0 auto;
  background: var(--field);
  box-shadow: inset 0 0 0 4px var(--gilt);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 75% 82%, 75% 100%, 50% 82%, 25% 100%, 25% 82%, 0 82%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.pennant__cloth img {
  width: 150px;
  margin-top: 18px;
}
.pennant__caption {
  font-family: var(--voice);
  font-style: italic;
  font-size: 18px;
  color: var(--text-muted);
  margin-top: 22px;
}

/* ------------------------------------------------------------ features ---- */

/* Three columns exactly, not `auto-fit`. The design is a deliberate 3x2 with the pull-quote closing
 * the second row; `auto-fit` gives four columns on a wide display and orphans it. */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Grid and flex children default to `min-width: auto`, meaning "never shrink below my content".
 * One long unbreakable string then widens the whole page. Opt every one of them out. */
.grid-3 > *,
.grid-2 > *,
.steps > *,
.hero > *,
.faq > * {
  min-width: 0;
}

.card {
  border: 1px solid var(--card-border);
  background: var(--ink);
  padding: 30px 28px;
}
.card h3 {
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--gilt);
  margin-bottom: 12px;
}
.card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
}

.card--quote {
  background: var(--raised);
  border-color: var(--card-border);
  display: flex;
  align-items: center;
}
.card--quote p {
  font-family: var(--voice);
  font-style: italic;
  font-size: 21px;
  color: var(--parchment);
}

/* ----------------------------------------------------------- vocations ---- */

.vocations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.vocation {
  text-align: center;
}
.vocation img {
  /* 560 -> 140 is exactly 1/4 of the export, i.e. still a whole-number multiple of the grid. */
  width: 140px;
  max-width: 100%;
}
.vocation span {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.08em;
  margin-top: 8px;
}
.vocation--knight span { color: var(--knight); }
.vocation--paladin span { color: var(--paladin); }
.vocation--druid span { color: var(--druid); }
.vocation--sorcerer span { color: var(--sorcerer); }
.vocation--monk span { color: var(--monk); }

/* --------------------------------------------------------------- steps ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.step {
  border-left: 3px solid var(--gilt);
  background: var(--ink);
  padding: 26px 24px;
}
.step h3 {
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--gilt);
  margin-bottom: 10px;
}
.step p {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
}

/* --------------------------------------------------------------- pairs ---- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}

/* ----------------------------------------------------------------- faq ---- */

.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
}
.faq__list dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--parchment);
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
}
.faq__list dd {
  margin: 8px 0 22px;
  font-size: 15px;
  color: var(--text-soft);
}

/* --------------------------------------------------------------- close ---- */

.closing {
  text-align: center;
}
.closing img {
  /* 1960 -> 490 is exactly 1/4 of the export. */
  width: 490px;
  max-width: 100%;
  margin-bottom: 24px;
}
.closing h2 {
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: 0.04em;
}
.closing .voice {
  margin: 18px auto 30px;
  max-width: 46ch;
}

/* -------------------------------------------------------------- footer ---- */

.site-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 30px var(--gutter) 44px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.site-footer .brand__avatar {
  width: 34px;
  height: 34px;
}
.site-footer .brand__word {
  font-size: 17px;
}
/* **Spread, not bunched.** The three parts sit at the two ends of the measure: the mark and the
   contract link on the left, the legal line pushed to the right edge and given room to sit on one
   line rather than wrapping into a centred block. */
.site-footer__legal {
  margin-left: auto;
  text-align: right;
  max-width: 72ch;
}
@media (max-width: 720px) {
  .site-footer__legal {
    margin-left: 0;
    text-align: left;
  }
}
.site-footer p {
  margin: 0;
}

/* --------------------------------------------------------- breakpoints ---- */

@media (max-width: 1100px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero,
  .faq,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .pennant {
    order: -1;
  }
}

@media (max-width: 720px) {
  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-nav {
    width: 100%;
    margin-left: 0;
    gap: 18px;
    font-size: 13px;
  }
  .site-footer__legal {
    margin-left: 0;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    backdrop-filter: none;
    background: var(--bg);
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ------------------------------------------------------ language switcher ---- */

/*
 * `<details>` rather than a script: the CSP is `default-src 'none'` and this site ships no
 * JavaScript at all, so a scripted dropdown would work in a developer's browser and be inert for
 * every real visitor. Each entry is a plain link to a page that already exists, so it also works
 * with scripting off, in a text browser, and for a crawler following `hreflang`.
 */

.lang {
  position: relative;
  font-family: var(--ui);
  font-size: 14px;
}

.lang > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-soft);
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 2px;
  /* The default disclosure triangle sits badly against a flag and cannot be styled portably. */
  list-style: none;
  user-select: none;
}
.lang > summary::-webkit-details-marker {
  display: none;
}
.lang > summary::after {
  /* Our own marker, in the gilt, rotating when open. */
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 2px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 120ms ease;
  opacity: 0.7;
}
.lang[open] > summary::after {
  transform: translateY(1px) rotate(-135deg);
}
.lang > summary:hover,
.lang[open] > summary {
  color: var(--gilt);
  border-color: var(--hairline);
}
/* Keyboard users must be able to see where they are. */
.lang > summary:focus-visible {
  outline: 1px solid var(--gilt);
  outline-offset: 2px;
}

.lang__flag {
  /* Emoji flags render at wildly different metrics across platforms; a fixed box keeps the
     summary from jumping as the language changes. */
  display: inline-block;
  width: 1.2em;
  font-size: 15px;
  line-height: 1;
  text-align: center;
}

.lang__current {
  white-space: nowrap;
}

.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 172px;
  display: flex;
  flex-direction: column;
  padding: 5px;
  background: var(--ink);
  border: 1px solid var(--card-border);
  border-radius: 3px;
  /* The one shadow on the site: this is the only element that floats above the page. */
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.lang__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 2px;
  color: var(--text-soft);
  white-space: nowrap;
}
.lang__menu a:hover {
  background: var(--raised);
  color: var(--gilt-hover);
}
/* The language you are already reading, marked rather than hidden — removing it from the list
   makes the menu change length and the reader hunt for what happened. */
.lang__menu a[aria-current="true"] {
  color: var(--gilt);
}
.lang__menu a[aria-current="true"]::after {
  content: "·";
  margin-left: auto;
  opacity: 0.8;
}

@media (max-width: 620px) {
  /* On a narrow screen the nav wraps; anchor the menu to the left edge so it cannot overflow. */
  .lang__menu {
    right: auto;
    left: 0;
  }
  .lang__current {
    display: none;
  }
}

/* ---------------------------------------------------------------- find ---- */

/* "Find your manada" — the form page and its answers.
 *
 * No JavaScript here either: the CSP serving these pages is `default-src 'none'` with no
 * `script-src`, which is precisely what makes interpolating a stranger's typed name safe. Anything
 * interactive has to be a form control the browser already knows how to work.
 */

.card--lead {
  border-color: var(--gilt);
  background: var(--raised);
}
.card--lead .btn {
  margin-top: 14px;
}

/* The language ask. Shown once — until the visitor answers it — so it sits above the heading where
 * it cannot be missed, and reads as a note rather than an error. */
.find__lang {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 26px;
  padding: 12px 16px;
  border: 1px solid var(--card-border);
  background: var(--ink);
}
.find__lang p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}
.find__lang-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-left: auto;
}
.find__lang-options a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid transparent;
}
.find__lang-options a:hover {
  border-color: var(--card-border);
  background: var(--raised);
}
.find__lang-options a[aria-current="true"] {
  border-color: var(--gilt);
}

/* **A search page, not a phone column.** This was a 900px measure centred inside a 1320px content
   box, so on a wide monitor the page read as a narrow strip with empty space on both sides of it
   and again inside. Above 1000px the ask and the answer sit side by side — the copy that explains
   the search on the left, the field itself on the right — and everything a search *produces*
   spans the full measure underneath. Below that it is one column, in the order it reads. */
.find {
  max-width: var(--measure);
  margin-inline: auto;
}
/* **An answered page is not the same page.** The hero explains what a search is; once one has run,
   that explanation stands between the reader and their answer — so the form becomes a bar across
   the top and everything under it is the result. One column, no side-by-side: there is no copy left
   to sit beside. */
.find--answered .find__form {
  margin-top: 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hairline);
}
.find--answered .find__note {
  margin-top: 12px;
  font-size: 13px;
}
.find--answered .find__results,
.find--answered .find__who { margin-top: 26px; }

@media (min-width: 1000px) {
  .find--answered .find__input { max-width: 420px; }

  .find:not(.find--answered) {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
    grid-template-areas:
      'prompt prompt'
      'intro form'
      'results results';
    align-items: start;
    column-gap: clamp(40px, 6vw, 96px);
  }
  .find__lang { grid-area: prompt; }
  .find .eyebrow,
  .find h1,
  .find .kicker { grid-column: 1; }
  .find__form,
  .find__note { grid-column: 2; }
  /* The form starts level with the heading rather than after the paragraph that introduces it. */
  .find__form { margin-top: 0; grid-row: 2; align-self: start; }
  .find__note { grid-row: 3; margin-top: 14px; }
  .find .kicker { margin-bottom: 0; }
  .find__error,
  .find__results,
  .find__who,
  .player__head,
  .player__when,
  .player__days { grid-column: 1 / -1; }
}
.find h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 10px;
}

.find__form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-top: 26px;
}
.find__label {
  flex-basis: 100%;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.find__input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--card-border);
  border-radius: 0;
  background: var(--code-bg);
  color: var(--parchment);
  font-family: var(--ui);
  font-size: 16px; /* Anything smaller and iOS zooms the page on focus. */
}
.find__input::placeholder {
  color: var(--text-muted);
}
.find__input:focus-visible {
  outline: 2px solid var(--gilt);
  outline-offset: 2px;
}
.find__form .btn {
  flex: 0 0 auto;
}

.find__note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.find__error {
  margin-top: 20px;
  padding: 12px 14px;
  border-left: 3px solid var(--hide);
  background: var(--ink);
  color: var(--parchment);
}

.find__results {
  margin-top: 38px;
  border-top: 1px solid var(--hairline);
  padding-top: 26px;
}
.find__who h2 {
  font-size: clamp(20px, 2.6vw, 28px);
}

.find__matches {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.find__matches li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 14px 16px;
  border: 1px solid var(--card-border);
  background: var(--ink);
}
.find__name {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.02em;
}
.find__meta {
  color: var(--text-soft);
  font-size: 14px;
}
/* Pushed to the end of the row on a wide screen, and simply the next line on a phone. */
.find__overlap {
  margin-left: auto;
  color: var(--gilt);
  font-size: 14px;
}
/* Experience a day, next to the hours. Deliberately quieter than the overlap figure: hours
 * together are why somebody is a match, and this only tells a hunter from a chatter. */
.find__exp {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.find__more {
  margin: 18px 0 0;
  text-align: center;
}
.find__more a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid var(--card-border);
  color: var(--gilt);
  text-decoration: none;
  display: inline-block;
}
.find__more a:hover,
.find__more a:focus-visible {
  border-color: var(--gilt);
}
.find__badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid var(--gilt);
  color: var(--gilt);
}

.find__empty {
  margin-top: 22px;
  color: var(--text-soft);
}

/* The page says what it measured and what it cannot know. Quiet, but never absent — see
 * `server/src/find.rs`, where a test requires it in every language. */
.find__basis {
  margin-top: 30px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 620px) {
  .find__overlap,
  .find__exp {
    margin-left: 0;
    flex-basis: 100%;
  }
}

/* --------------------------------------------------------- find filters ---- */

/* Narrowing the results. No JavaScript anywhere on this page — the CSP has no `script-src` — so
 * these are plain form controls whose state lives in the URL. A filtered search is a link. */
.find__filters {
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid var(--card-border);
  background: var(--ink);
  display: grid;
  gap: 14px;
}
.find__filters-title {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gilt);
}
.find__filters fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.find__filters legend {
  float: left;
  width: 100%;
  margin-bottom: 6px;
  padding: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.find__vocations label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-soft);
  cursor: pointer;
}
.find__vocations input[type='checkbox'] {
  accent-color: var(--gilt);
  width: 15px;
  height: 15px;
}
.find__hour,
.find__tz {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--text-soft);
}
.find__filters select {
  padding: 7px 9px;
  border: 1px solid var(--card-border);
  border-radius: 0;
  background: var(--code-bg);
  color: var(--parchment);
  font-family: var(--ui);
  font-size: 15px;
}
.find__filters select:focus-visible {
  outline: 2px solid var(--gilt);
  outline-offset: 2px;
}
.find__filters .btn {
  justify-self: start;
}
.find__filters-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 620px) {
  .find__hour,
  .find__tz {
    width: 100%;
    justify-content: space-between;
  }
}

/* --- The player detail page ------------------------------------------------------------------
   Every size and shade here is a *class*, never an inline `style` attribute. The CSP is
   `style-src 'self'` with no `'unsafe-inline'`, so `style="width:70%"` on a generated bar is
   silently dropped by the browser and the chart renders flat with no error anywhere. Bucketed
   classes are the only way to vary a dimension per element on this site. */

.player__shares { color: var(--text-soft); }
.player__shares strong { color: var(--gilt); font-family: var(--mono); }
.player__when, .player__days { margin-top: var(--section-y); }
.player__when h3, .player__days h3 { font-family: var(--display); margin-bottom: .4rem; }

/* A week as 7 rows of 24 hours. The label column is fixed; the hours share what is left, so the
   grid stays inside its card on a phone without a horizontal scroll. */
.heat {
  display: grid;
  grid-template-columns: 2.6rem repeat(24, 1fr);
  gap: 2px;
  align-items: center;
}
.heat__day {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.heat__cell {
  aspect-ratio: 1;
  min-height: 10px;
  background: var(--raised);
  border-radius: 0;
}
/* Six steps, scaled against the player's own busiest hour rather than an absolute — somebody who
   plays two hours a week still wants to see *when*. `heat-0` is "never seen", and it is
   deliberately the bare surface colour so an empty week reads as empty rather than as dark. */
.heat-0 { background: var(--raised); }
.heat-1 { background: color-mix(in srgb, var(--gilt) 18%, var(--raised)); }
.heat-2 { background: color-mix(in srgb, var(--gilt) 34%, var(--raised)); }
.heat-3 { background: color-mix(in srgb, var(--gilt) 52%, var(--raised)); }
.heat-4 { background: color-mix(in srgb, var(--gilt) 72%, var(--raised)); }
.heat-5 { background: var(--gilt); }

.days { width: 100%; border-collapse: collapse; font-size: 14px; }
.days th {
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: .3rem .5rem .3rem 0;
  border-bottom: 1px solid var(--hairline);
}
.days td { padding: .3rem .5rem .3rem 0; border-bottom: 1px solid var(--hairline); }
.days td:first-child { font-family: var(--mono); color: var(--text-soft); white-space: nowrap; }
/* A day the mirror did not observe. Muted and italic so it reads as "no data", never as a zero —
   "not seen" and "played and gained nothing" are different facts and the page must not conflate
   them. */
.days__gap { color: var(--text-muted); font-style: italic; }
.days__n { font-family: var(--mono); color: var(--gilt); margin-left: .4rem; font-size: 12px; }

/* Ten fixed widths. See the note at the top of this block: a computed width cannot be inlined. */
.bar { display: inline-block; height: 8px; background: var(--gilt); vertical-align: middle; }
.bar-1  { width: 10%; } .bar-2  { width: 20%; } .bar-3 { width: 30%; } .bar-4 { width: 40%; }
.bar-5  { width: 50%; } .bar-6  { width: 60%; } .bar-7 { width: 70%; } .bar-8 { width: 80%; }
.bar-9  { width: 90%; } .bar-10 { width: 100%; }

/* The match name is a link now. **Underlined only on hover**: a permanent rule under every name in
   a list of ten reads as clutter and makes the list look like a page of footnotes. Keyboard focus
   still gets the underline, because a keyboard user has no hover to reveal it with. */
a.find__name { color: inherit; text-decoration: none; }
a.find__name:hover,
a.find__name:focus-visible {
  color: var(--gilt);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The heading row of the "when they play" block: title on the left, timezone picker on the right. */
.player__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gutter);
  flex-wrap: wrap;
}
.player__tz { display: flex; align-items: center; gap: .4rem; }
.player__tz select {
  background: var(--raised);
  color: var(--text-soft);
  border: 1px solid var(--hairline);
  border-radius: 0;
  font-family: var(--ui);
  font-size: 12px;
  padding: .2rem .3rem;
}
.player__tz .btn { font-size: 12px; padding: .2rem .6rem; }

/* The hour scale above the grid. Every third hour carries a label; the rest are spacers that keep
   the columns aligned with the cells below. */
.heat__hour {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  text-align: left;
  line-height: 1.4;
}
.heat__hour--tick { color: var(--text-soft); }

/* The experience floor beside each day's gain. Monospace so the digits line up down the column —
   these are the numbers a reader scans, and ragged separators make them unreadable. */
.days__exp {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Present for a screen reader, absent on screen. The timezone select has a visible control but no
   visible label — the heading beside it says what it is. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ----------------------------------------------------------- dashboard ---- */

/* The signed-in area is the one place on this site that is an *application* rather than a page:
 * sections on the left, that section's tables in the middle. Everything below is scoped to `.dash`
 * so the marketing pages are untouched.
 *
 * A grid, and one media query. Both columns are ordinary flow content, so below the breakpoint the
 * grid becomes a single column and the navigation sits above the data — which is the right order
 * on a phone, and needs no second markup path to achieve. */
.dash {
  display: grid;
  /* **At least 232px, and as much as the longest section name needs.** A fixed track plus
   * `nowrap` is a promise the layout cannot keep in every language — Spanish's "Cacerías en
   * solitario" is half again as long as "Solo hunts" — and the failure is text spilling over the
   * table beside it. `max-content` lets the column size itself to its own words. */
  grid-template-columns: minmax(232px, max-content) minmax(0, 1fr);
  gap: 0;
  align-items: start;
}
@media (max-width: 900px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
}

.dash__nav {
  position: sticky;
  /* Clears the site header, which is not sticky itself — this keeps the sections reachable while a
   * long table scrolls past. */
  /* Below the header, which *is* sticky (`.site-header`, `position: sticky`) — at `top: 0` the
     eyebrow and the first link slid under it as soon as a long table scrolled. */
  top: var(--header-h);
  /* **Not `--pad`.** That token is the marketing pages' page gutter and grows to 64px on a wide
   * screen — inside a 232px column it left about a hundred pixels for the label, so "Party hunts"
   * wrapped onto two lines with empty column on both sides of it. A sidebar's padding has nothing
   * to do with the page's gutter. */
  /* The link's own 10px is subtracted, so nav text lands on `--pad` — the same left edge as the
     brand above it. The column is `minmax(232px, max-content)` now, so a wider gutter no longer
     squeezes the labels the way it did at a fixed width. */
  padding: 28px 16px 28px calc(var(--pad) - 10px);
  border-right: 1px solid var(--hairline);
  background: var(--surface-alt);
  /* `100vh` and not `100%`: a grid item's percentage height resolves against a row that is sized by
   * this element, which makes it a no-op. */
  min-height: calc(100vh - var(--header-h));
}
@media (max-width: 900px) {
  .dash__nav {
    position: static;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    /* Stacked above the content rather than beside it, so it takes the page's own gutter and its
       items stop carrying a left indent that now aligns with nothing. */
    padding: 22px var(--pad);
  }
  .dash__nav .eyebrow,
  .dash__link { padding-left: 0; }
  /* A left tick on a horizontal list reads as a stray mark; underline the current one instead. */
  .dash__link[aria-current='page'] {
    border-left-color: transparent;
    box-shadow: inset 0 -2px 0 var(--gilt);
  }
}

.dash__nav .eyebrow { margin: 0 0 4px; padding-left: 10px; }

.dash__links {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
@media (max-width: 900px) {
  .dash__links { flex-direction: row; flex-wrap: wrap; gap: 8px; }
}

.dash__link {
  display: block;
  font-family: var(--ui);
  /* 14px, matching `.site-nav`: 15px is the body-copy step, and navigation set in body copy reads
     as prose. */
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 10px 10px;
  /* A section name is two or three words and belongs on one line: wrapped, the list stops reading
   * as a list of places and starts reading as prose. */
  white-space: nowrap;
  color: var(--text-soft);
  text-decoration: none;
  /* The marker for the current section lives on the left edge, transparent until it is needed, so
   * selecting a section never moves the text. */
  border-left: 2px solid transparent;
}
.dash__link:hover { color: var(--parchment); background: var(--ink); }
/* Driven by `aria-current`, not by a class: the state a screen reader announces and the state the
 * eye sees are then the same fact, and cannot drift apart. */
.dash__link[aria-current='page'] {
  color: var(--gilt);
  background: var(--ink);
  border-left-color: var(--gilt);
}

.dash__main { min-width: 0; }
/* A view that opens with a back link: the crumb sits tight under the heading, and the content
   follows it without a second section's worth of air. */
.dash .section--tight { padding-top: 18px; }
.dash .section--tight .dash-crumb { margin-bottom: 14px; }

/* The greeting is a header, not a section of content — it gets air above and below, and no rule
 * under it, because the first panel's own heading is the next thing. */
/* Scoped, and specific enough to win: `.dash .section` below is (0,2,0) and later, so the
   unscoped version's `padding-bottom: 0` never applied and the greeting sat in a 68px band that
   made it read as a peer section rather than the page's header. */
.dash .section--head { border-bottom: 0; padding-bottom: 0; }
/* Nothing follows the last panel, so its rule floats above nothing. */
.dash__main > .section:last-child { border-bottom: 0; }

.dash .section { padding-top: 34px; padding-bottom: 34px; }
.dash .section > h2 { font-size: clamp(20px, 2.2vw, 26px); }

/* ---- tables ---- */

/* The scroller, not the page. Ten columns of gold figures do not fit a phone, and a document whose
 * body scrolls sideways is unusable — so the overflow belongs to the table, which is the thing that
 * is actually too wide. */
/* `tabindex="0"` in the markup makes these reachable; without a focus style that reach is
   invisible. Eleven `nowrap` columns mean the last two are unreachable without a pointer. */
.dash-table__scroll:focus-visible,
.dash-raw__text:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

.dash-table__scroll {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  background: var(--ink);
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ui);
  font-size: 14px;
}
.dash-table th,
.dash-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
.dash-table thead th {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  background: var(--code-bg);
}
.dash-table tbody tr:last-child td { border-bottom: 0; }
.dash-table tbody tr:hover td { background: var(--surface-alt); }

/* Figures right-aligned and tabular, so a column of gold can be read down rather than across. This
 * is the whole reason these are tables and not the cards this page used to be. */
.dash-table__num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.dash-table__muted { color: var(--text-muted); }

/* A button that lives in a table cell: no top margin, no block layout, sized to its text. */
.dash-table .dash-action { display: inline-block; margin: 0 6px 0 0; }
.dash-table .dash-action .btn { padding: 6px 12px; font-size: 12.5px; }
.dash-table .chip { display: inline-block; margin: 0 0 0 8px; padding: 3px 7px; font-size: 11px; }
/* The one thing on this page that has to look wrong: a session whose own arithmetic disagrees. */
/* `--hide` is a border everywhere else on this site, never a glyph: at 11px on `--ink` it is about
   3.1:1, under AA. The box still reads as the alarm; the text becomes legible. Scoped, because
   `.chip` is a marketing component and this modifier is the dashboard's. */
.dash .chip--warn { color: var(--parchment); border: 1px solid var(--hide); background: transparent; }

/* ---- pasting a session ---- */

.dash-paste-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 22px;
}
.dash-paste {
  border: 1px solid var(--hairline);
  background: var(--ink);
  padding: 20px;
}
.dash-paste h3 {
  margin: 0 0 14px;
  /* Cinzel is never set below 17px (ADR 0009). */
  font-size: 17px;
  letter-spacing: 0.04em;
}
.dash-paste textarea,
.dash-paste select {
  font-family: var(--mono);
  /* The paste is many lines of fixed-width client text; wrapping it would make it unreadable while
   * somebody checks they copied the whole window. */
  white-space: pre;
  overflow: auto;
  resize: vertical;
}


/* What happened to the last paste. `role="status"` in the markup, so it is announced without
 * stealing focus. */
.dash-flash {
  margin: 18px 0 0;
  padding: 12px 14px;
  /* Neutral by default: a status report is not an action, and gilt is the action colour. */
  border-left: 3px solid var(--card-border);
  background: var(--ink);
  font-size: 14px;
}
.dash-flash--ok { border-left-color: var(--gilt); }
.dash-flash--bad { border-left-color: var(--hide); }

.dash-form__wrap { max-width: 62ch; }

/* A note beside a form, not an error in front of it: pasting works without a verified character
   (migration 0023), and this only says what attaching one would add. */
.dash-paste__note {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- a row that opens in place ---- */

/* No JavaScript, and there never will be any: the CSP has no `script-src`, which is what makes an
   interpolated character name safe here. So the toggle is a real checkbox — focusable, Space
   toggles it, a screen reader announces it — hidden from sight and driving the row after it.

   `:has()` is the whole mechanism, so the *hiding* lives inside `@supports`. A browser without it
   shows every expansion open rather than hiding them behind a control it cannot honour: verbose,
   but nothing becomes unreachable. */
@supports selector(:has(*)) {
  .dash-row__detail { display: none; }
  .dash-row:has(.dash-row__toggle:checked) + .dash-row__detail { display: table-row; }

  /* A note saved from inside an expansion comes back with the row's own id as the fragment — a
     checkbox cannot survive a redirect, and `:target` can.
     **The checkbox then *inverts* a targeted row**, rather than the two states being independent.
     Before this, a row opened by a fragment could not be closed by any click in it: the label only
     toggled a checkbox nothing was reading, and the caret pointed the wrong way while the contents
     were on screen. */
  .dash-row:target + .dash-row__detail { display: table-row; }
  .dash-row:target:has(.dash-row__toggle:checked) + .dash-row__detail { display: none; }
  .dash-row:target .dash-row__caret { transform: rotate(90deg); }
  .dash-row:target:has(.dash-row__toggle:checked) .dash-row__caret { transform: none; }
}

/* Without `:has()` every expansion is shown, which is the honest fallback — but then the toggles
   control nothing, so they must not look or announce like controls. */
@supports not selector(:has(*)) {
  .dash-row__toggle,
  .dash-row__caret,
  .dash-note__toggle,
  .dash-note__text { display: none; }
}

.dash-row__when { white-space: nowrap; }
/* **Not `.visually-hidden`.** That idiom clips with `clip-path`, which drops an element out of the
   focus order in some browsers; these two must stay focusable, because they are the only way to
   open a row or a note from a keyboard. Same declarations, different reason — do not merge them. */
.dash-row__toggle,
.dash-note__toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.dash-row__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  /* **The text is not the accent; the affordance is.** A column of twenty-five gilt dates is the
     identity colour doing decoration — the find page settled this the same way, with
     `a.find__name` inheriting and gilt kept for hover. The caret carries it instead. */
  color: var(--text-soft);
}
.dash-row__label:hover { color: var(--gilt-hover); }
/* The focus ring belongs on the label, since the control itself is invisible — without this the
   row is reachable by keyboard and gives no sign of it. */
.dash-row__toggle:focus-visible + .dash-row__label { outline: var(--focus-ring); outline-offset: 3px; }

/* A triangle drawn in CSS rather than a glyph: it must point down when the row is open, and a
   character would need swapping in the markup, which is what a script would have been for. */
.dash-row__caret {
  width: 0;
  height: 0;
  border-left: 5px solid var(--gilt);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 120ms ease;
}
.dash-row:has(.dash-row__toggle:checked) .dash-row__caret { transform: rotate(90deg); }

/* The expansion sits under its row, inset and on the alternate ground so it reads as belonging to
   the row above rather than as another row. */
/* **Aligned to the label that opened it.** The row's cells are `11px 14px` and the toggle's text
   starts 27px in (14 + caret + gap), so the expansion's left edge lands under the words it belongs
   to instead of at an inset that matches nothing; the right edge matches the last cell's 14px,
   where it used to be zero and the dashed note border ran off the table. */
.dash-row__detail > td {
  padding: 0 14px 0 27px;
  background: var(--surface-alt);
  border-bottom: 2px solid var(--hairline);
  white-space: normal;
}
.dash-row__detail .section { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.dash-row__detail .section:last-child { border-bottom: 0; }
/* 17px is Cinzel's floor (ADR 0009), and the margin is what every other heading in an expansion
   already had — without it a caps heading touched the top border of the table under it. */
.dash-row__detail .section > h2 { font-size: 17px; letter-spacing: 0.06em; margin: 0 0 12px; }
/* Nested tables are the detail's own — keep them from inheriting the outer table's hover. */
.dash-row__detail .dash-table tbody tr:hover td { background: transparent; }

/* The note beside the date: one line, and the whole of it in the expansion below. */
.dash-row__note { max-width: 32ch; overflow: hidden; text-overflow: ellipsis; }

/* The original paste, folded away until somebody wants to compare a figure against the client. */
/* 0.14em like every other uppercase mono micro-label here (`.find__label`, `.find__filters
   legend`): at 11px, tighter tracking reads as a different typeface. */
.dash-raw__title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.dash-raw__text {
  margin: 14px 0 0;
  padding: 16px;
  max-height: 460px;
  overflow: auto;
  background: var(--code-bg);
  border: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-soft);
  white-space: pre;
}

/* ---- panels that fold ---- */

/* `<details>` rather than a checkbox here: a panel heading is exactly what `<summary>` is for, and
   it needs no `:has()` support to work. The heavy tables arrive closed with their size on the
   outside — twenty-five sessions, each with an expansion, is more page than anybody scrolls. */
.dash-panel__summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}
.dash-panel__summary::-webkit-details-marker { display: none; }
/* The marker is drawn rather than a glyph, so it can turn when the panel opens. */
.dash-panel__summary::before {
  content: '';
  width: 0;
  height: 0;
  /* `currentColor`, like the site's other disclosure marker: six gilt triangles down a page is the
     accent doing decoration. The heading's hover is the gilt event. */
  border-left: 6px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transition: transform 120ms ease;
}
.dash-panel[open] > .dash-panel__summary::before { transform: rotate(90deg); }
.dash-panel__summary h2 { margin: 0; }
.dash-panel__summary:hover h2 { color: var(--gilt-hover); }
.dash-panel__count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--hairline);
  padding: 1px 7px;
}
.dash-panel__body { margin-top: 18px; }

/* ---- a note you click to change ---- */

/* The note is text until somebody wants it to be a field. A box that is always open takes three
   lines of every expansion to offer an edit almost nobody is making — so the text is a label, the
   label drives a hidden checkbox, and the form appears in its place. */
/* The only child of an expansion that is not a `.section`, so it takes that block's padding and
   hairline here rather than sitting jammed against the row above with an 8px stagger against the
   heading below it. */
.dash-row__detail > td > .dash-note {
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.dash-note { position: relative; }
.dash-note__text {
  display: block;
  cursor: text;
  padding: 10px 12px;
  border: 1px dashed transparent;
  color: var(--parchment);
  white-space: pre-wrap;
}
/* Visible at rest, not only on hover: a touch device has no hover, so a stored note was
   indistinguishable from static text and the invitation to edit existed only when empty. */
.dash-note__text { border-color: var(--hairline); }
.dash-note__text:hover { border-color: var(--gilt); }
.dash-note__toggle:focus-visible + .dash-note__text { outline: var(--focus-ring); outline-offset: 3px; }
/* No note yet: an invitation, in the muted voice of a placeholder. */
.dash-note--empty .dash-note__text { color: var(--text-muted); font-style: italic; }

/* `.field` is styled per form elsewhere; the note's own copy needs the same block rhythm, or the
   textarea stays inline-level and the Save button lands wherever the line box leaves it. */
.dash-note__form .field { display: block; margin-bottom: 12px; }
.dash-note__form textarea { resize: vertical; }
/* Save and Cancel on one line: the cancel is a `<label>` for the same checkbox the note text
   drives, so a mis-click on a paragraph is one click to undo. */
.dash-note__actions { display: flex; gap: 10px; align-items: center; margin: 0; }


/* ---- a panel heading with a control beside it ---- */

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.dash-head h2 { margin: 0; }
/* A head carrying only a control: `space-between` parks a single flex child at the *start*, which
   is the one place the same button is not in every other section. */
.dash-head--bare { justify-content: flex-end; }

/* ---- an overlay opened by a link ---- */

/* `:target`, because there is no script here. A link to `#add-session` makes the overlay the
   document's target and this shows it; a link back to `#` closes it — which also means the back
   button closes it, something a scripted modal usually has to reimplement.

   Not a focus trap, and it does not claim to be one: nothing can move focus without a script, so
   the markup says `role="dialog"` and stops short of `aria-modal`. */
/* Two ways in, one appearance: a fragment when a link opened it, and a class when the server did —
   the verification flow answers a POST, which carries no fragment for `:target` to match. */
.dash-modal { display: none; }
.dash-modal:target,
.dash-modal--open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 20;
  padding: max(4vh, 24px) var(--pad);
  overflow-y: auto;
}
/* The backdrop is a link, so clicking away closes it — the behaviour people expect, with no
   listener. */
.dash-modal__backdrop {
  position: fixed;
  inset: 0;
  /* `--code-bg` at 72%. #080604 was a fourth black nobody chose. */
  background: rgba(13, 10, 7, 0.72);
}
.dash-modal__sheet {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 28px 30px;
  background: var(--ink);
  border: 1px solid var(--card-border);
  /* The header's shadow. This is the second element on the site that floats, and it should float
     the same way. */
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}
.dash-modal__sheet .dash-paste {
  border: 0;
  background: transparent;
  padding: 0;
}
/* Two windows side by side on a wide screen, stacked on a narrow one. */
.dash-modal__sheet .dash-paste-grid { margin-top: 0; }


/* Forms inside the dashboard wear the same clothes as the paste boxes: the verification field was
   a bare `<input>` inheriting the browser's default, which is white, rounded and from another
   design entirely. */
.dash-form .field,
.dash-paste .field { display: block; margin-bottom: 16px; }
.dash-form .field > span { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
/* **One shape for every field on this surface.** It was three near-identical blocks written on
   three occasions and already drifted: three paddings, three font sizes, and only one of them
   carrying the `appearance` reset — so both textareas were still round in Safari, which is the very
   bug that block's own comment claimed to fix.

   `:where()` holds the specificity at (0,1,0), so the per-control rules on either side still win
   without repeating any of this. */
.dash
  :where(
    input[type='text'],
    input[type='datetime-local'],
    input[type='number'],
    select,
    textarea
  ) {
  width: 100%;
  font-family: var(--ui);
  /* 16px minimum on anything focusable, or iOS zooms the page the moment it is focused — the rule
     the marketing inputs already state twice. */
  font-size: 16px;
  color: var(--parchment);
  background: var(--code-bg);
  border: 1px solid var(--hairline);
  padding: 11px 13px;
  /* Square (ADR 0009): Safari rounds inputs *and* textareas unless `appearance` says otherwise. */
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
/* A one-line answer does not need the width of a paste box — and a picker holding one name has no
   business being the widest control in a 900px sheet. */
.dash-form :where(input, select),
.dash-paste :where(input[type='text'], select) { max-width: 420px; }
/* The token, not a fourth parchment alpha: 0.35 over `--code-bg` is ~2.8:1, the only text on the
   site under 3:1. */
.dash-form input::placeholder,
.dash-paste textarea::placeholder { color: var(--text-muted); }
/* One ring, one offset, for every field on the surface. */
.dash :where(input, select, textarea):focus { outline: var(--focus-ring); outline-offset: 1px; }
/* **The new-hunt form's controls are bare `<label>`s**, not `.field` wrappers, so nothing made
   them block-level: six rows in one inline formatting context, zero space between them. Styled by
   element here rather than rewriting that form's markup. */
.dash-form label { display: block; margin-bottom: 16px; }
.dash-form label > input,
.dash-form label > select { display: block; margin-top: 6px; }

/* The Manada search: one field and one button, on a line. */
.dash-form--inline { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.dash-form--inline .field { flex: 1 1 260px; margin-bottom: 0; }

.dash-form__actions { display: flex; gap: 10px; align-items: center; margin: 18px 0 0; }


/* ---- the find page's player detail, inside a dashboard row ---- */

/* `player_html` is written for a page of its own, where `--section-y` (76px at this width) is the
   rhythm and its heading is the page's. Inside an expansion it has to answer to the row above it:
   the same content, at the scale of the thing containing it. */
.dash-row__detail .find__who h2 { font-size: 17px; letter-spacing: 0.06em; }
.dash-row__detail .find__who { padding-top: 4px; }
.dash-row__detail .player__head { gap: 16px; }
.dash-row__detail .player__when,
.dash-row__detail .player__days { margin-top: 26px; }

/* The one line about money on a product that has none: it sits with the API link rather than beside
   the legal notice, because it is an offer and that is a disclaimer. */
.site-footer__donate { color: var(--text-soft); }

/* ------------------------------------------------------------- donations ---- */

/* The page that exists because everything else says "free". It thanks first, explains second, and
   asks nowhere — so it is two cards and a closing line, not a pitch. */
.donate {
  max-width: var(--measure);
  margin-inline: auto;
}
.donate h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 10px; }
.donate .kicker { max-width: 68ch; }

.donate__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(20px, 3vw, 34px);
  margin-top: 8px;
}
.donate__grid h2 {
  font-size: 19px;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.donate__steps {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.9;
}
.donate__steps strong { color: var(--parchment); }

/* The name is the one thing on this page somebody has to copy correctly, so it is the one thing
   set like a value rather than like prose. */
.donate__recipient {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 16px;
  background: var(--code-bg);
  border: 1px solid var(--card-border);
}
.donate__recipient-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.donate__recipient-name {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--gilt);
  letter-spacing: 0.04em;
}

/* What a donation does not buy. Bordered rather than coloured: it is a promise, not a warning. */
.donate__promise {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--hairline);
  color: var(--text-muted);
  font-size: 14px;
}

.donate__closing {
  margin: clamp(28px, 4vw, 44px) 0 0;
  max-width: 62ch;
  font-size: 17px;
  color: var(--text-soft);
}

.site-footer__donate a { color: var(--text-soft); }
.site-footer__donate a:hover { color: var(--gilt-hover); }
