:root {
  --paper: #f3efe4;
  --ink: #1c1915;
  --muted: #6b645b;
  --rule: #d9d0c1;
  --rust: #9a3412;
  --moss: #3d5a3a;
  --oxblood: #7f1d1d;
  --gold: #8a5a12;
  --card: #faf7f1;
  --display: "Fraunces", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body {
  margin: 0;
  font-family: var(--sans);
  background:
    linear-gradient(180deg, transparent 0, transparent 72px, var(--rule) 72px, var(--rule) 73px, transparent 73px),
    var(--paper);
}
button, a { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; opacity: 0.4; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}
.wrap { max-width: 72rem; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.mast { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; border-bottom: 1px solid var(--ink); padding-bottom: 1rem; }
.kicker { margin: 0; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rust); font-size: 0.75rem; font-weight: 500; }
.brand { font-family: var(--display); font-size: 1.65rem; line-height: 1.05; margin: 0; max-width: 16rem; }
.langs { display: flex; border: 1px solid var(--ink); }
.langs button { min-height: 2.75rem; padding: 0 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.langs button.on { background: var(--ink); color: var(--paper); }
.hero { display: grid; gap: 2rem; padding: 2rem 0; }
h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
.lead { max-width: 40rem; font-size: 1.125rem; line-height: 1.5; }
.muted { color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.stats button { background: var(--card); text-align: left; padding: 0.75rem; min-height: 4.5rem; }
.stats button.on { background: var(--ink); color: var(--paper); }
.stats strong { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 500; line-height: 1; }
.stats span { display: block; margin-top: 0.3rem; font-size: 0.75rem; line-height: 1.3; }
.note { max-width: 46rem; border-left: 2px solid var(--rust); padding-left: 1rem; font-size: 0.9rem; line-height: 1.5; }
a.rust { color: var(--rust); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.filters button, .chip { min-height: 2.75rem; border: 1px solid var(--rule); background: var(--card); padding: 0 0.75rem; font-size: 0.9rem; }
.filters button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
input[type="search"] { width: 100%; min-height: 3rem; border: 1px solid var(--ink); background: var(--card); padding: 0 1rem; font: inherit; font-size: 1rem; }
.comment { margin-top: 1.2rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.comment h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 500; margin: 0; }
.comment label { display: block; margin-top: 0.8rem; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.comment input, .comment textarea { width: 100%; margin-top: 0.25rem; border: 1px solid var(--ink); background: var(--paper); padding: 0.6rem 0.75rem; font: inherit; font-size: 1rem; }
.comment textarea { min-height: 8rem; resize: vertical; }
.comment .rowbtns { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.75rem; }
.comment .rowbtns button { min-height: 2.75rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 0 0.9rem; }
.comment .rowbtns button[data-print] { background: var(--card); color: var(--ink); }
.comment .rowbtns button:disabled { opacity: 0.4; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem; margin-top: 0.4rem; }
.chips button { min-height: 2.75rem; padding: 0 0.45rem; background: none; border: 0; font-size: 0.9rem; }
.chips button.on { color: var(--rust); text-decoration: underline; }
.film { display: flex; overflow-x: auto; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin-top: 1.25rem; }
.film button { min-height: 4rem; width: 9rem; flex: 0 0 auto; text-align: left; border-right: 1px solid var(--rule); background: var(--card); padding: 0.4rem 0.7rem; }
.film button.on { background: var(--ink); color: var(--paper); }
.film small, .row small { display: block; font-size: 0.75rem; }
.layout { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.dossier, .mapbox { border: 1px solid var(--ink); background: var(--card); }
.dossier { padding: 1rem 1.1rem 1.2rem; }
.stamp { float: right; border: 2px solid currentColor; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; font-weight: 620; padding: 0.4rem 0.5rem; transform: rotate(-8deg); }
.moss { color: var(--moss); }
.ox { color: var(--oxblood); }
.gold { color: var(--gold); }
.dossier h2, .across h2, .foot h2 { font-family: var(--display); font-weight: 500; line-height: 1.15; }
.dossier h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0.6rem 0 0; clear: right; }
.meta { display: grid; gap: 0.7rem; margin-top: 1rem; font-size: 0.92rem; }
.meta dt { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.meta dd { margin: 0; }
.trail { border-left: 1px solid var(--rust); padding-left: 0.75rem; margin-top: 1rem; font-size: 0.92rem; }
.src { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: 1rem; padding: 0 1rem; background: var(--ink); color: var(--paper); text-decoration: none; }
.pager { display: flex; gap: 0.5rem; margin-top: 0.8rem; }
.pager button { min-height: 2.75rem; border: 1px solid var(--rule); padding: 0 0.8rem; }
.maphead { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--rule); padding: 0.3rem 0.7rem; }
.maphead h2 { font-family: var(--display); font-size: 1.15rem; margin: 0; font-weight: 500; }
.stage { position: relative; background: var(--rule); }
.stage .grid { display: grid; }
.stage img { display: block; width: 100%; height: auto; }
.pinbtn { position: absolute; z-index: 2; width: 2.75rem; height: 2.75rem; transform: translate(-50%, -50%); }
.dot { display: block; width: 0.75rem; height: 0.75rem; margin: auto; border-radius: 999px; border: 2px solid var(--card); box-shadow: 0 1px 2px rgba(28,25,21,.35); }
.dot.on { width: 1rem; height: 1rem; }
.dot.approved { background: var(--rust); }
.dot.rejected { background: var(--oxblood); }
.dot.waiting { background: var(--gold); }
.pinbtn .tag { position: absolute; left: 62%; top: 0.45rem; white-space: nowrap; background: var(--card); border: 1px solid var(--ink); font-size: 0.75rem; padding: 0.1rem 0.35rem; pointer-events: none; }
.pinbtn .n { position: absolute; top: 0.05rem; right: 0.05rem; min-width: 1rem; height: 1rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 0.65rem; line-height: 1rem; }
.legend { display: flex; flex-wrap: wrap; gap: 0.8rem; padding: 0.45rem 0.75rem 0; font-size: 0.75rem; color: var(--muted); }
.swatch { width: 0.6rem; height: 0.6rem; border-radius: 999px; display: inline-block; margin-right: 0.25rem; }
.fine { padding: 0.4rem 0.75rem 0.7rem; font-size: 0.75rem; line-height: 1.45; color: var(--muted); }
.register { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.row { display: block; width: 100%; text-align: left; padding: 0.75rem 0.2rem; border-bottom: 1px solid var(--rule); }
.row.on { background: var(--card); }
.row strong { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.across, .split { margin-top: 3rem; border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.across h2 { font-size: 1.8rem; margin: 0; }
.pair { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.pair h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 500; margin: 0; }
.pair p { max-width: 44rem; line-height: 1.5; }
.pair button { min-height: 2.75rem; border: 1px solid var(--rule); background: var(--card); padding: 0 0.7rem; margin: 0.2rem 0.4rem 0.2rem 0; }
.split { display: grid; gap: 1.5rem; }
.split h2 { font-family: var(--display); font-size: 1.5rem; font-weight: 500; margin: 0 0 0.4rem; }
.split p { line-height: 1.5; font-size: 0.95rem; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; margin-top: 2.5rem; border-top: 1px solid var(--rule); padding-top: 1rem; color: var(--muted); font-size: 0.9rem; }
.footer a { color: var(--ink); }
.side { order: -1; }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.4fr 0.8fr; align-items: end; }
  .layout { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
  .side { position: sticky; top: 1rem; max-height: 100vh; overflow: auto; }
  .split { grid-template-columns: 1fr 1fr; }
  .reg { order: 1; }
  .side { order: 2; }
}
@media (min-width: 700px) {
  #kicker-wide { display: block !important; }
}
