/* ADRENOCHROME — public site
   Palette taken from the key art: sodium amber, sage institutional green,
   cold slate, and near-black concrete. */

:root {
  --ink: #0a0d0e;
  --ink-2: #111618;
  --ink-3: #171d20;
  --panel: #141a1c;
  --panel-2: #1a2225;
  --line: #263033;
  --line-soft: #1e2629;

  --sage: #8ea89a;
  --sage-dim: #67806f;
  --sage-bright: #b6cdbe;
  --amber: #d9932f;
  --amber-dim: #9a6a24;
  --rust: #c2531f;
  --signal: #6fd3a5;
  --alarm: #d4483c;

  --text: #d8ded9;
  --text-dim: #97a3a0;
  --text-faint: #6c7a77;
  --text-strong: #f0f3ef;

  --font-display: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --measure: 68ch;
  --shell-max: 1240px;
  --radius: 3px;
  --radius-lg: 6px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-2: 0 8px 28px rgba(0, 0, 0, .55);
  --shadow-3: 0 20px 60px rgba(0, 0, 0, .65);

  --step: clamp(.9rem, .85rem + .2vw, 1rem);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* Player-selectable accessibility settings are applied on <html>. */
html[data-contrast="high"] {
  --text: #ffffff;
  --text-dim: #dfe6e2;
  --text-faint: #c3cec9;
  --line: #6f8080;
  --panel: #05080a;
  --panel-2: #0b1113;
  --sage: #b9d6c6;
  --amber: #ffc14d;
}

html[data-font="dyslexia"] {
  --font-body: "Atkinson Hyperlegible", "Comic Sans MS", Verdana, sans-serif;
  --font-display: "Atkinson Hyperlegible", Verdana, sans-serif;
  letter-spacing: .012em;
  word-spacing: .08em;
}

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

html {
  font-size: calc(100% * var(--font-scale, 1));
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* A faint concrete tooth over the whole page; suppressed for high contrast. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .05;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.7) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

html[data-contrast="high"] body::before,
html[data-flashing="reduced"] body::before { display: none; }

img,
picture,
video,
canvas { max-width: 100%; height: auto; display: block; }

a {
  color: var(--sage-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color .16s var(--ease);
}

a:hover { color: var(--amber); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .01em;
  color: var(--text-strong);
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.9vw, 3.7rem); letter-spacing: .015em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.15em; max-width: var(--measure); }

.lede {
  font-size: clamp(1.02rem, .98rem + .35vw, 1.22rem);
  color: var(--text-dim);
  line-height: 1.7;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--sage-dim);
  margin: 0 0 .9rem;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--amber);
  color: #0a0d0e;
  padding: .7rem 1.2rem;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - 2.4rem, var(--shell-max));
  margin-inline: auto;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

.wrap-narrow { width: min(100% - 2.4rem, 780px); margin-inline: auto; }

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; position: relative; z-index: 2; }
.section--tight { padding: clamp(2rem, 4vw, 3.25rem) 0; }
.section--edge { border-top: 1px solid var(--line-soft); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 13, 14, .88);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line-soft);
  padding-top: var(--safe-top);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 62px;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  flex: 0 0 auto;
}

.brandmark img { width: 34px; height: 34px; }

.brandmark__text { display: flex; flex-direction: column; line-height: 1; }

.brandmark__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: .19em;
  color: var(--text-strong);
  text-transform: uppercase;
}

.brandmark__sub {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .22em;
  color: var(--sage-dim);
  text-transform: uppercase;
  margin-top: .28rem;
}

.site-nav { margin-left: auto; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: .2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  display: block;
  padding: .55rem .8rem;
  font-size: .86rem;
  letter-spacing: .04em;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link:focus-visible { color: var(--text-strong); background: var(--panel-2); }

.site-nav__link[aria-current="page"] {
  color: var(--amber);
  box-shadow: inset 0 -2px 0 var(--amber);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  width: 44px;
  height: 40px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: calc(62px + var(--safe-top)) 0 0 0;
    background: var(--ink);
    margin: 0;
    padding: 1.2rem max(1.2rem, var(--safe-left)) calc(2rem + var(--safe-bottom));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .site-nav[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .site-nav__link { padding: .95rem .9rem; font-size: 1rem; border-bottom: 1px solid var(--line-soft); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .72rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), transform .12s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--amber);
  color: #10140f;
  border-color: var(--amber);
  box-shadow: 0 0 0 0 rgba(217, 147, 47, .5);
}

.btn--primary:hover { background: #edaa45; border-color: #edaa45; color: #10140f; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn--ghost:hover { border-color: var(--sage); color: var(--sage-bright); background: rgba(142, 168, 154, .07); }

.btn--danger { background: transparent; color: var(--alarm); border-color: rgba(212, 72, 60, .5); }
.btn--danger:hover { background: rgba(212, 72, 60, .12); color: #ef6a5e; }

.btn--sm { min-height: 38px; padding: .5rem 1rem; font-size: .82rem; }
.btn--block { width: 100%; }

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(84vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Only what is needed to seat the header at the top and blend into the next
     section at the bottom. Legibility behind the copy is .hero__scrim's job, so
     this must not darken the middle of the key art as well. */
  background:
    linear-gradient(180deg,
      rgba(10,13,14,.62) 0%,
      rgba(10,13,14,0) 26%,
      rgba(10,13,14,0) 64%,
      rgba(10,13,14,.88) 95%,
      var(--ink) 100%),
    radial-gradient(120% 80% at 50% 100%, rgba(217,147,47,.10), transparent 60%);
}

.hero__inner {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.6rem, 5vw, 4rem);
}

.hero__title {
  font-size: clamp(2.6rem, 1.5rem + 5.6vw, 6.2rem);
  letter-spacing: .06em;
  margin-bottom: .1em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .8);
}

.hero__subtitle {
  font-family: var(--font-mono);
  font-size: clamp(.78rem, .7rem + .4vw, 1rem);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.5rem;
}

.hero__blurb { max-width: 52ch; font-size: clamp(1rem, .95rem + .35vw, 1.16rem); color: var(--text-dim); }

.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 2.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(142, 168, 154, .18);
  list-style: none;
  padding-left: 0;
}

.hero__fact { display: flex; flex-direction: column; gap: .2rem; }
.hero__fact b { font-family: var(--font-display); font-size: 1.5rem; color: var(--text-strong); line-height: 1; }
.hero__fact span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); }

/* ---------- Cards and grids ---------- */

.grid { display: grid; gap: 1.2rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}

.card:hover { border-color: rgba(142, 168, 154, .38); transform: translateY(-2px); box-shadow: var(--shadow-2); }

.card__media { position: relative; aspect-ratio: 16 / 9; background: var(--ink-3); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.035); }

.card__body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card__title { margin: 0; font-size: 1.12rem; }
.card__title a { color: var(--text-strong); text-decoration: none; }
.card__title a:hover { color: var(--amber); }
.card__text { margin: 0; font-size: .9rem; color: var(--text-dim); line-height: 1.6; }
.card__foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .28rem .55rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text-faint);
  background: var(--ink-2);
}

.tag--free { color: var(--signal); border-color: rgba(111, 211, 165, .35); }
.tag--locked { color: var(--amber); border-color: rgba(217, 147, 47, .35); }
.tag--soon { color: var(--text-faint); }

/* ---------- Panels, notices, tables ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 2.4vw, 1.9rem);
}

.panel--inset { background: var(--ink-2); }

.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--sage-dim);
  background: var(--ink-2);
  border-radius: var(--radius);
  padding: .95rem 1.1rem;
  font-size: .88rem;
  color: var(--text-dim);
}

.notice p:last-child { margin-bottom: 0; }
.notice--fiction { border-left-color: var(--amber); }
.notice--warning { border-left-color: var(--rust); }
.notice--error { border-left-color: var(--alarm); color: #efb6b0; }
.notice--success { border-left-color: var(--signal); }

.notice__title {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 .4rem;
  display: block;
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

table.data th,
table.data td { padding: .7rem .85rem; text-align: left; border-bottom: 1px solid var(--line-soft); }

table.data th {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

table.data tbody tr:hover { background: var(--ink-2); }

/* ---------- Forms ---------- */

.field { margin-bottom: 1.1rem; }

.field > label,
.field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .45rem;
}

.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: .65rem .85rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}

textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.input:focus,
input:focus,
select:focus,
textarea:focus { border-color: var(--sage); background: var(--ink-3); outline: none; }

.input[aria-invalid="true"],
input[aria-invalid="true"],
textarea[aria-invalid="true"] { border-color: var(--alarm); }

.field__hint { display: block; font-size: .8rem; color: var(--text-faint); margin-top: .4rem; }
.field__error { display: block; font-size: .82rem; color: #ef8b81; margin-top: .4rem; }

.checkline { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .85rem; }
.checkline input[type="checkbox"],
.checkline input[type="radio"] { width: 20px; height: 20px; min-height: 0; margin-top: .18rem; flex: 0 0 auto; accent-color: var(--amber); }
.checkline label { font-size: .9rem; color: var(--text-dim); line-height: 1.55; }

/* ---------- Pagination ---------- */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.pager__btn {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .7rem;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .82rem;
  cursor: pointer;
  text-decoration: none;
}

.pager__btn:hover:not([disabled]) { border-color: var(--sage); color: var(--text-strong); }
.pager__btn[aria-current="true"] { background: var(--amber); border-color: var(--amber); color: #10140f; font-weight: 700; }
.pager__btn[disabled] { opacity: .35; cursor: not-allowed; }
.pager__status { font-family: var(--font-mono); font-size: .74rem; color: var(--text-faint); margin-left: .6rem; }

/* ---------- Ads: public pages only, never over game controls ---------- */

.ad-slot {
  margin: 2rem auto;
  max-width: 970px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot:empty { display: none; }

.ad-slot__label {
  display: block;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  margin-bottom: .4rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--ink-2);
  padding: clamp(2.4rem, 5vw, 3.6rem) 0 calc(1.8rem + var(--safe-bottom));
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
  margin-bottom: 2.2rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sage-dim);
  margin-bottom: .9rem;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: var(--text-dim); text-decoration: none; font-size: .89rem; }
.footer-col a:hover { color: var(--amber); }

.footer-base {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  font-size: .8rem;
  color: var(--text-faint);
}

.footer-base p { max-width: 62ch; margin: 0; }

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.stack > * + * { margin-top: var(--stack-gap, 1rem); }
.cluster { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.text-center { text-align: center; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.mono { font-family: var(--font-mono); }
.form--inline { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin: 0 0 1rem; }
.nowrap { white-space: nowrap; }

.breadcrumbs { font-size: .78rem; color: var(--text-faint); padding: 1rem 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "/"; margin-left: .4rem; color: var(--line); }
.breadcrumbs li:last-child::after { content: none; }
.breadcrumbs a { color: var(--text-faint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--sage); }

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.7rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.15rem; }
.prose li { margin-bottom: .45rem; }
.prose blockquote {
  margin: 1.6rem 0;
  padding: .3rem 0 .3rem 1.2rem;
  border-left: 2px solid var(--sage-dim);
  color: var(--text-dim);
  font-style: italic;
}
.prose hr { border: 0; border-top: 1px solid var(--line-soft); margin: 2.4rem 0; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--ink-2); padding: .12em .38em; border-radius: 2px; }

/* In-fiction document rendering, used across lore, evidence and transcripts. */
.dossier {
  background: #16130d;
  border: 1px solid #2c2519;
  border-left: 3px solid var(--amber-dim);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  font-family: var(--font-mono);
  font-size: .86rem;
  line-height: 1.75;
  color: #cdc2a8;
  white-space: pre-wrap;
  overflow-x: auto;
}

.dossier__head {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  padding-bottom: .8rem;
  margin-bottom: .95rem;
  border-bottom: 1px dashed #3a3122;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8d7f61;
}

.redacted {
  background: #0a0d0e;
  color: transparent;
  user-select: none;
  padding: 0 .25em;
  border-radius: 1px;
}

.flash-stack { display: grid; gap: .6rem; margin: 1.2rem 0; }

@media (max-width: 640px) {
  .hero { min-height: 78vh; }
  .hero__facts { gap: 1.1rem; }
  .section { padding: 2.4rem 0; }
}

@media print {
  .site-header, .site-footer, .ad-slot, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ============================================================================
   Components used by the page templates.
   Everything above this line is the shell: type scale, header, hero, footer.
   Everything below is a named component a template asks for by class.
   ========================================================================= */

/* ---------- Measure and wrappers ---------- */

.wrap--narrow { width: min(100% - 2.4rem, 820px); margin-inline: auto; }
.wrap--form { width: min(100% - 2.4rem, 520px); margin-inline: auto; }
.measure { max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }

.note {
  font-size: .84rem;
  color: var(--text-faint);
  line-height: 1.6;
  max-width: 74ch;
}

.section--panel { background: var(--ink-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section--cta { background: linear-gradient(180deg, var(--ink) 0%, #131a1b 100%); border-top: 1px solid var(--line-soft); }
.section--error { padding: clamp(4rem, 12vw, 9rem) 0; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .68rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .1s var(--ease);
}

.button:hover { border-color: var(--sage); color: #fff; }
.button:active { transform: translateY(1px); }
.button[disabled],
.button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }

.button--primary { background: var(--amber); border-color: var(--amber); color: #10140f; font-weight: 700; }
.button--primary:hover { background: #edaa45; border-color: #edaa45; color: #10140f; }

.button--ghost { background: transparent; border-color: rgba(216, 222, 217, .35); }
.button--ghost:hover { background: rgba(142, 168, 154, .1); border-color: var(--sage); }

.button--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: .01em;
  font-family: var(--font-body);
  padding-inline: .6rem;
}
.button--quiet:hover { color: var(--text-strong); background: var(--panel-2); border-color: var(--line-soft); }

.button--danger { background: transparent; color: var(--alarm); border-color: rgba(212, 72, 60, .5); }
.button--danger:hover { background: rgba(212, 72, 60, .14); color: #ef6a5e; border-color: var(--alarm); }

.button--large { min-height: 52px; padding: .9rem 1.7rem; font-size: 1rem; }
.button--small { min-height: 38px; padding: .45rem 1rem; font-size: .78rem; }

.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; align-items: center; }
.button-row--center { justify-content: center; }

/* ---------- Hero additions ---------- */

/* Sits between the key art and the copy, never over it — hence z-index 0
   against .hero__inner's 2. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 9, 10, .9) 0%,
    rgba(6, 9, 10, .78) 34%,
    rgba(6, 9, 10, .34) 66%,
    rgba(6, 9, 10, 0) 92%
  );
  pointer-events: none;
}

.hero__inner { z-index: 2; }

/* The canopy sign is the point of the key art; keep it in frame on a short
   viewport rather than centring on the wet forecourt. */
.hero__media img { object-position: center 42%; }

/* On a phone the key art cannot be a background: cropping a 3:2 painting to a
   tall column leaves a vertical slice of dark wall and throws the building away.
   So it stops being a background and becomes a banner, with the copy stacked
   underneath on solid ink where it needs no scrim at all. */
@media (max-width: 40rem) {
  .hero {
    display: block;
    min-height: 0;
  }
  .hero__media {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 10;
  }
  .hero__media img { object-position: center 46%; }
  .hero__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    background: linear-gradient(180deg, rgba(10, 13, 14, 0), var(--ink));
  }
  .hero__scrim { display: none; }
  .hero__inner { padding-top: 1.4rem; }
}

.hero__title-main { color: var(--text-strong); }

.hero__title-main,
.hero__title-sub { display: block; }

.hero__title-main { letter-spacing: .04em; }
.hero__title-sub {
  font-size: .42em;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: .5rem;
  font-weight: 400;
}

.hero__lede { max-width: 54ch; font-size: clamp(1rem, .95rem + .35vw, 1.14rem); color: var(--text-dim); margin: 1.2rem 0 0; }
.hero__lede--tight { margin-top: .8rem; color: var(--text-faint); font-size: 1rem; }

/* ---------- Grids and cards ---------- */

.grid--split { grid-template-columns: 1fr; align-items: start; gap: clamp(1.6rem, 4vw, 3rem); }
/* The upper bound on each track matters: auto-fit collapses empty tracks, so
   without it a lane holding a single card stretches to the full page width. */
.card-grid { display: grid; gap: 1.15rem; justify-content: start; }
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 30rem)); }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 262px), 24rem)); }
.card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 216px), 20rem)); }

@media (min-width: 900px) {
  .grid--split { grid-template-columns: 1fr 1fr; }
  .grid--reverse > *:first-child { order: 2; }
}

.card-grid .card,
.card--plain,
.card--link,
.card--play,
.card--product { padding: 1.25rem 1.3rem 1.4rem; }

.card-grid .card h3,
.card--plain h3,
.card--link h3,
.card--product h3 { margin: 0 0 .55rem; font-size: 1.08rem; color: var(--text-strong); }

.card-grid .card p,
.card--plain p,
.card--link p { margin: 0; font-size: .9rem; color: var(--text-dim); line-height: 1.62; }

.card--link { text-decoration: none; display: flex; flex-direction: column; gap: .6rem; }
.card--link:hover h3 { color: var(--amber); }

.card--plain:hover { transform: none; box-shadow: none; }
.card--product.is-owned { border-color: rgba(111, 211, 165, .4); }

/* A card that leads with artwork wants the art flush to its edges, then the
   copy set in from them. */
.card--product { padding: 0 0 1.3rem; }
.card--product > .card__media { margin-bottom: 1.1rem; border-radius: 0; }
.card--product > :not(.card__media) { margin-inline: 1.3rem; }
.card__meta { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
  color: var(--amber);
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform .18s var(--ease); }
.card--link:hover .link-arrow::after,
a.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Live statistics strip ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 1rem 1.4rem;
  padding: 1.4rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.stat { display: flex; flex-direction: column; gap: .25rem; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  line-height: 1;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.stat__label { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); }

.stat-strip__note {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.stat-strip__note::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(111, 211, 165, .55);
  animation: adr-pulse 2.4s var(--ease) infinite;
}

@keyframes adr-pulse {
  0% { box-shadow: 0 0 0 0 rgba(111, 211, 165, .5); }
  70% { box-shadow: 0 0 0 7px rgba(111, 211, 165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 211, 165, 0); }
}

/* ---------- Definition and fact lists ---------- */

.spec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: .1rem 1.4rem; margin: 1.6rem 0 0; }
.spec-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); }
.spec-list dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.spec-list dd { margin: 0; font-size: .9rem; color: var(--text-strong); text-align: right; }

.inline-facts { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.inline-facts li { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; color: var(--text-faint); text-transform: uppercase; }
.inline-facts strong { color: var(--text-strong); font-family: var(--font-display); font-size: .95rem; letter-spacing: .04em; }

.checklist { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.checklist li { position: relative; padding-left: 1.6rem; font-size: .92rem; color: var(--text-dim); }
.checklist li::before { content: "▸"; position: absolute; left: 0; top: 0; color: var(--sage); }

/* ---------- Figures ---------- */

.figure { margin: 0; }
.figure img { border: 1px solid var(--line-soft); border-radius: var(--radius); }
.figure figcaption {
  margin-top: .7rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--text-faint);
}
.figure--wide { margin: 2rem 0; }

/* ---------- Notices and tags ---------- */

.notice--info { border-left-color: var(--sage); }

.tag--fiction { color: var(--amber); border-color: rgba(217, 147, 47, .38); }
.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; margin: 2rem 0 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .18rem .55rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.badge--done,
.badge--owned { color: var(--signal); border-color: rgba(111, 211, 165, .38); }

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--panel);
  margin: 1.6rem 0 0;
}

.data-table { width: 100%; border-collapse: collapse; font-size: .89rem; }
.data-table th,
.data-table td { padding: .8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.data-table thead th {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--ink-2);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(142, 168, 154, .045); }
.data-table a { color: var(--text-strong); text-decoration: none; border-bottom: 1px solid rgba(217, 147, 47, .4); }
.data-table a:hover { color: var(--amber); }

.data-table--ranks td:first-child,
.data-table--ranks th:first-child { width: 4.5rem; font-variant-numeric: tabular-nums; }

.cell-note { display: block; margin-top: .25rem; font-size: .8rem; color: var(--text-faint); line-height: 1.55; }

/* ---------- Pagination ---------- */

.pagination { margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.pagination__status { margin: 0; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--text-faint); }
.pagination__status strong { color: var(--text-strong); font-weight: 500; }
.pagination__list { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  padding: 0 .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .8rem;
  text-decoration: none;
}
.pagination__link:hover { border-color: var(--sage); color: var(--text-strong); }
.pagination__link.is-current { background: var(--amber); border-color: var(--amber); color: #10140f; font-weight: 700; }
.pagination__link.is-disabled { opacity: .35; cursor: not-allowed; }
.pagination__gap { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .3rem; color: var(--text-faint); }

/* ---------- Filters and chips ---------- */

.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 0; align-items: stretch; }
.filter-bar__field { flex: 1 1 16rem; display: flex; }
.filter-bar__field input {
  width: 100%;
  min-height: 44px;
  padding: .6rem .9rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
}
.filter-bar__field input:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }

.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .3rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.chip:hover { border-color: var(--sage); color: var(--text-strong); }
.chip.is-active { background: var(--sage-dim); border-color: var(--sage-dim); color: #0a0d0e; }

/* ---------- Article and chapter lists ---------- */

.article-list,
.chapter-list { display: grid; gap: 1.6rem; margin: 2rem 0 0; }

.article-card,
.chapter-card {
  display: grid;
  gap: 1.2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line-soft);
}

.article-card:last-child,
.chapter-card:last-child { border-bottom: 0; padding-bottom: 0; }

@media (min-width: 720px) {
  .article-card,
  .chapter-card { grid-template-columns: 20rem 1fr; align-items: start; }
}

.article-card__media,
.chapter-card__media { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); }
.article-card__media img,
.chapter-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--ease); }
.article-card__media:hover img,
.chapter-card__media:hover img { transform: scale(1.03); }

.article-card__body,
.chapter-card__body { display: flex; flex-direction: column; gap: .6rem; }

.article-card__meta,
.chapter-card__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.article-card__body h2,
.chapter-card__body h2 { margin: 0; font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
.article-card__body h2 a,
.chapter-card__body h2 a { color: var(--text-strong); text-decoration: none; border-bottom: 1px solid rgba(217, 147, 47, .35); }
.article-card__body h2 a:hover,
.chapter-card__body h2 a:hover { color: var(--amber); }

.article-card__sub,
.chapter-card__sub { margin: 0; color: var(--sage); font-size: .95rem; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Reproduced documents ---------- */

.document {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber-dim);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin: 1.8rem 0;
}

.document__label {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .8rem;
}

.document__body {
  font-family: var(--font-mono);
  font-size: .84rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  margin: 0;
  color: var(--text);
}

.meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: .1rem 1.4rem;
  margin: 1.4rem 0 0;
}
.meta-row > div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line-soft); }
.meta-row dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.meta-row dd { margin: 0; font-size: .88rem; color: var(--text-strong); text-align: right; }

/* ---------- Media players ---------- */

.media-player {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  margin: 1.6rem 0;
}
.media-player audio { width: 100%; min-height: 44px; }
.media-player--video { padding: .6rem; }
.media-player--video video { width: 100%; background: #000; border-radius: var(--radius); }
.media-player__note {
  margin: .8rem 0 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1.65;
  color: var(--text-faint);
}

/* ---------- Surveillance clip cards ---------- */

.clip-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin: 2rem 0 0; }

.clip-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.clip-card:hover { border-color: rgba(142, 168, 154, .4); transform: translateY(-2px); }

/* A surveillance still is 4:3 and carries its own burned-in camera identity and
   timecode along the edges of the frame, so nothing may crop it. min-height
   keeps the aspect ratio authoritative even when a child would be taller. */
.clip-card__media { position: relative; aspect-ratio: 4 / 3; min-height: 0; background: #000; }
.clip-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.clip-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(0deg, #0d1112 0 2px, #060809 2px 4px);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.clip-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .45rem; }
.clip-card__body h2,
.clip-card__body h3 { margin: 0; font-size: 1rem; line-height: 1.35; color: var(--text-strong); }
.clip-card__body h2 a,
.clip-card__body h3 a { color: inherit; text-decoration: none; }
.clip-card__body h2 a:hover,
.clip-card__body h3 a:hover { color: var(--amber); }
.clip-card__code { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }

/* ---------- Achievements ---------- */

.achievement-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin: 1.8rem 0 0; }

.achievement-grid > * {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.achievement__icon { width: 56px; height: 56px; flex: 0 0 auto; border-radius: var(--radius); background: var(--ink-3); }
.achievement__placeholder {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--ink-3);
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-faint);
}
.achievement__body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.achievement__body h3 { margin: 0; font-size: 1rem; color: var(--text-strong); }
.achievement__body p { margin: 0; font-size: .86rem; color: var(--text-dim); line-height: 1.55; }
.achievement__meta { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.achievement__points { font-family: var(--font-display); color: var(--amber); font-size: .9rem; letter-spacing: .06em; }

/* ---------- Saves ---------- */

.save-list { display: grid; gap: 1rem; margin: 1.8rem 0 0; }

.save-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem 1.25rem;
}
.save-card.is-archived { opacity: .68; border-style: dashed; }
.save-card__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1rem; }
.save-card__head h3 { margin: 0; font-size: 1.05rem; color: var(--text-strong); }
.save-card__meta { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.save-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  margin: .8rem 0 0;
  font-size: .86rem;
  color: var(--text-dim);
}

/* ---------- Forms ---------- */

.form { margin: 1.8rem 0 0; }
.form--settings { max-width: 46rem; }
.form--danger { border-top: 1px solid rgba(212, 72, 60, .3); padding-top: 1.4rem; margin-top: 2.4rem; }

.fieldset {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem 1.4rem;
  margin: 0 0 1.6rem;
  background: var(--panel);
}
.fieldset > legend {
  padding: 0 .5rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
}

.checkbox { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .9rem; }
.checkbox input { width: 20px; height: 20px; margin-top: .2rem; flex: 0 0 auto; accent-color: var(--amber); }
.checkbox label,
.checkbox span { font-size: .9rem; color: var(--text-dim); line-height: 1.55; }

.field--range input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--amber); }

/* Honeypot: present for bots, never shown or focusable for people. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.link-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .5rem; }
.link-list a { color: var(--sage); font-size: .9rem; }

.signout-form { display: inline; }

/* ---------- Room list ---------- */

.room-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .1rem; }
.room-list li { display: flex; gap: 1rem; align-items: baseline; padding: .65rem 0; border-bottom: 1px solid var(--line-soft); }
.room-list__code { font-family: var(--font-mono); font-size: .74rem; color: var(--amber); flex: 0 0 3.5rem; }
.room-list__name { color: var(--text-strong); }

/* ---------- Search results ---------- */

.result-count { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin: 1.4rem 0 0; }
.result-list { display: grid; gap: 1.2rem; margin: 1.4rem 0 0; }

.result { padding-bottom: 1.2rem; border-bottom: 1px solid var(--line-soft); }
.result:last-child { border-bottom: 0; padding-bottom: 0; }
.result h2,
.result h3 { margin: 0 0 .35rem; font-size: 1.08rem; }
.result a { color: var(--text-strong); text-decoration: none; border-bottom: 1px solid rgba(217, 147, 47, .35); }
.result a:hover { color: var(--amber); }
.result p { margin: .35rem 0 0; font-size: .9rem; color: var(--text-dim); }
.result__meta { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); margin: 2rem 0 0; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }

.contact-form { display: grid; gap: 0; }
.contact-aside {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem 1.5rem;
}
.contact-aside h2 { margin-top: 0; font-size: 1.1rem; }

.faq-list { display: grid; gap: .8rem; margin: 1rem 0 0; }
.faq-list > details {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: .8rem 1rem;
}
.faq-list > details > summary { cursor: pointer; font-family: var(--font-display); font-size: .95rem; color: var(--text-strong); letter-spacing: .02em; }
.faq-list > details[open] > summary { color: var(--amber); margin-bottom: .6rem; }
.faq-list p { margin: 0; font-size: .88rem; color: var(--text-dim); }

/* The contact aside answers a fixed set of short questions, so they are a
   definition list rather than disclosures: nothing is worth a click to open. */
.faq-list > dt {
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--text-strong);
  letter-spacing: .02em;
}
.faq-list > dd {
  margin: .3rem 0 .9rem;
  padding-left: .85rem;
  border-left: 2px solid rgba(255, 255, 255, .1);
  font-size: .88rem;
  color: var(--text-dim);
}
.faq-list > dd:last-child { margin-bottom: 0; }

/* ---------- Store ---------- */

.price { margin: .8rem 0 0; font-family: var(--font-display); font-size: 1.4rem; color: var(--text-strong); letter-spacing: .02em; }
.price__interval { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-left: .4rem; }

/* ---------- Panels ---------- */

.panel--quiet { background: var(--ink-2); border-color: var(--line-soft); }
.panel__title { margin: 0 0 .8rem; font-size: 1.05rem; color: var(--text-strong); }

/* ---------- Spoiler disclosure ---------- */

.spoiler {
  border: 1px solid var(--line);
  border-left: 3px solid var(--rust);
  border-radius: var(--radius);
  background: var(--panel);
  padding: .9rem 1.1rem;
  margin: 1.4rem 0;
}
.spoiler > summary {
  cursor: pointer;
  font-family: var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--rust);
}
.spoiler__body { margin-top: .9rem; font-size: .92rem; color: var(--text-dim); }
.spoiler__body > *:first-child { margin-top: 0; }

/* ---------- Ad slot body ---------- */

.ad-slot__body { min-height: 0; }
.ad-slot__body:empty { display: none; }

/* ---------- Small screens ---------- */

@media (max-width: 620px) {
  .button-row { gap: .6rem; }
  .button-row > .button { flex: 1 1 12rem; }
  .spec-list dd { text-align: left; }
  .spec-list > div,
  .meta-row > div { flex-direction: column; gap: .1rem; }
  .meta-row dd { text-align: left; }
  .data-table th,
  .data-table td { padding: .7rem .75rem; }
}

@media print {
  .button, .pagination, .filter-bar, .chip-row { display: none !important; }
  .document, .card, .panel { border-color: #999; }
}
