:root {
  color-scheme: dark;
  --night: #101619;
  --sheet: #182225;
  --dark: #0d1416;
  --line: #354246;
  --ink: #e2e8e4;
  --muted: #abb9b8;
  --red: #db7974;
  --signal: #eeaaa0;
  --sans: 'Avenir Next', 'Segoe UI', Arial, sans-serif;
  --serif: 'Iowan Old Style', Baskerville, 'Times New Roman', serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --gutter: clamp(18px, 5.2vw, 85px);
}
*,
*:after,
*:before {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 17px;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  overflow-wrap: break-word;
}
h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  color: inherit;
  font: inherit;
}
button,
summary,
input[type='checkbox'] {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
:focus-visible {
  outline: 2px solid #ffaca3;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}
.skip:focus {
  position: absolute;
  z-index: 9;
  padding: 8px;
  background: var(--sheet);
}
.frame {
  max-width: 1580px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.mast {
  background: #0d1315;
  border-bottom: 1px solid #38464a;
}
.mast-inner,
.dossier-head,
.sources-head,
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.mast-inner {
  min-height: 60px;
}
.identity {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  font: 600 23px/1 var(--serif);
  letter-spacing: -0.035em;
}
.archive-symbol {
  display: block;
  position: relative;
  width: 23px;
  height: 24px;
  border: 1px solid #ce8079;
  box-shadow: inset -3px 3px #0d1315;
}
.archive-symbol:before {
  content: '';
  position: absolute;
  width: 8px;
  height: 10px;
  left: 4px;
  top: 4px;
  background: #d5877e;
}
.archive-symbol:after {
  content: '';
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 13px;
  border-top: 1px solid #c5a396;
}
nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: clamp(12px, 2.3vw, 38px);
  font-size: 12px;
  font-weight: 600;
}
nav a {
  align-items: center;
  display: flex;
  gap: 8px;
  min-height: 44px;
}
nav a:hover,
.subtle:hover,
.sources-head a:hover,
.foot a:hover {
  color: var(--signal);
}
nav .download {
  align-self: center;
  padding: 4px 12px;
  border: 1px solid #495658;
}
.cover {
  isolation: isolate;
  position: relative;
  background: #1d2426 url('hero.webp') 68% 50% / cover no-repeat;
  color: #eef0e7;
  border-bottom: 1px solid var(--line);
}
.cover:before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #0b1318e8, #10161799 35%, #11171b10 67%),
    linear-gradient(0deg, #10151854, transparent 45%);
}
.cover-inner {
  padding-top: clamp(38px, 4.6vw, 73px);
  padding-bottom: clamp(32px, 4vw, 65px);
}
h1 {
  font: 500 clamp(76px, 9.5vw, 155px) / 0.83 var(--serif);
  letter-spacing: -0.075em;
}
h1 span {
  display: flex;
  align-items: center;
  gap: 13px;
  font: 650 clamp(11px, 1vw, 16px) / 1.3 var(--mono);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #f0c8bd;
  margin-bottom: 15px;
}
h1 span:before {
  content: '';
  display: block;
  height: 1px;
  width: 29px;
  background: #df9d92;
}
.subtitle {
  font-size: clamp(15px, 1.2vw, 21px);
  color: #d5dbd5;
  margin-top: 15px;
}
.cover-actions {
  display: flex;
  align-items: center;
  gap: 21px;
  margin-top: 23px;
}
.primary,
.subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 18px;
  border: 0;
  font-size: 13px;
  font-weight: 650;
}
.primary {
  padding: 8px 15px;
  background: #dc938b;
  color: #1e1819;
}
.primary:hover {
  background: #edaaa0;
}
.primary:disabled,
.subtle:disabled {
  opacity: 0.54;
}
.primary span {
  font-size: 18px;
  line-height: 1;
}
.subtle {
  padding: 4px 0;
  background: none;
  color: #e5e8df;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: #9ca8a1;
}
.totals {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  border-block: 1px solid var(--line);
  margin-top: 26px;
  background: #141d20;
}
.metric {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 16px clamp(12px, 2vw, 34px);
  border: 0;
  background: none;
  text-align: left;
}
.metric + .metric {
  border-left: 1px solid var(--line);
}
.metric:hover {
  background: #1b2628;
}
.metric-tag,
.caption,
.group-head,
.stage-number,
.stage-counter,
.category-tag,
.mode-info {
  font-family: var(--mono);
}
.metric-tag,
.caption {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.metric-num {
  font: 450 clamp(27px, 2.8vw, 45px) / 1.2 var(--serif);
  letter-spacing: -0.045em;
}
.metric-num small {
  font: 400 12px var(--mono);
  color: #a9b8b5;
  letter-spacing: -0.035em;
  margin-left: 5px;
}
.meter {
  width: 100%;
  height: 2px;
  background: #364448;
  display: block;
  margin-top: 5px;
}
.meter i {
  display: block;
  height: 100%;
  background: var(--red);
}
#dossier {
  margin-top: clamp(28px, 3vw, 46px);
}
h2 {
  font: 500 clamp(34px, 3.5vw, 58px) / 1.05 var(--serif);
  letter-spacing: -0.055em;
}
.search {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  background: #141c1f;
  width: min(300px, 45%);
  min-height: 42px;
}
.search:focus-within {
  border-color: var(--signal);
}
.search i {
  display: block;
  width: 13px;
  height: 13px;
  border: 1.5px solid #afbfba;
  border-radius: 100%;
  position: relative;
  flex-shrink: 0;
}
.search i:after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -4px;
  height: 1.5px;
  width: 5px;
  background: #afbfba;
  transform: rotate(45deg);
}
.search input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  font-size: 13px;
}
.search input::placeholder {
  color: #a8b7b3;
}
.layout {
  display: grid;
  grid-template-columns: minmax(185px, 23%) minmax(0, 1fr);
  gap: clamp(18px, 2.7vw, 46px);
  align-items: start;
  margin-top: 19px;
}
#area-index {
  border-top: 1px solid #586260;
}
#area-index h3 {
  margin: 16px 11px 10px;
}
#area-links {
  display: grid;
  gap: 3px;
}
.area-button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 43px;
  padding: 9px 10px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 13px;
  line-height: 1.3;
  color: #c1cbc7;
}
.area-button:hover {
  background: #1b2427;
}
.area-button[aria-current='step'] {
  background: #302529;
  color: #f4e1d9;
  box-shadow: inset 2px 0 var(--red);
}
.stage-number,
.stage-counter {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: #a7b4af;
}
.area-button[aria-current='step'] .stage-number {
  color: var(--red);
}
.mobile-area {
  display: none;
}
.sheet {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 2px solid #918d7b;
  background: var(--sheet);
}
.sheet-head {
  padding: 19px clamp(14px, 2vw, 30px) 14px;
}
.sheet-head .caption {
  color: #cda69c;
  font-size: 9px;
}
.sheet-head h3 {
  font: 500 clamp(25px, 2.3vw, 39px) / 1.15 var(--serif);
  letter-spacing: -0.045em;
  margin-top: 4px;
}
.sheet-meta,
.mode-info {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 clamp(14px, 2vw, 30px) 14px;
}
select {
  border: 1px solid #53605e;
  background: #1a2527;
  padding: 7px;
  min-height: 35px;
  font-size: 12px;
  max-width: 100%;
  color: #e1e7df;
}
.hide-control {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
input[type='checkbox'] {
  accent-color: #d7857c;
}
.text-button,
.row-link,
.source-link,
.return-link {
  background: none;
  border: 0;
  padding: 5px 0;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #f0b1a5;
}
.group-head {
  padding: 10px clamp(14px, 2vw, 30px);
  background: #202c2e;
  color: #d4dcd3;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  font-size: 10px;
  line-height: 1.45;
  font-weight: 650;
  border-block: 1px solid #354245;
}
.row {
  padding: 12px clamp(14px, 2vw, 30px);
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: baseline;
  border-bottom: 1px solid #334043;
  scroll-margin-block: 20px;
}
.row input {
  width: 16px;
  height: 16px;
  margin: 0;
  align-self: start;
  margin-top: 4px;
}
.row details > summary,
.note-box summary,
.spoiler summary {
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none;
}
.row details > summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-weight: 640;
  font-size: 14px;
  line-height: 1.45;
}
.row details > summary:after {
  content: '+';
  font: 15px var(--mono);
  color: #b1c0b8;
}
.row details[open] > summary:after {
  content: '−';
}
.row.done details > summary {
  color: #a7b5ac;
  text-decoration: line-through;
}
.category-tag {
  display: inline-block;
  color: #d0c6a9;
  border: 1px solid #4c5146;
  padding: 2px 6px;
  font-size: 10px;
  line-height: 1.45;
  max-width: 180px;
}
.detail,
.note-text {
  color: #c1cec7;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
  margin-top: 7px;
}
.detail a,
.note-text a,
.sources a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #f0b4a8;
}
.note-text strong {
  color: #e0e7dd;
}
.row-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.note-box,
.spoiler,
.caution {
  margin: 12px clamp(14px, 2vw, 30px);
}
.note-box summary,
.spoiler summary {
  color: #ddd5bc;
  font-size: 12px;
}
.note-box summary:before,
.spoiler summary:before {
  content: '+';
  padding-right: 7px;
  color: var(--red);
}
.note-box[open] summary:before,
.spoiler[open] summary:before {
  content: '−';
}
.caution {
  border-left: 2px solid var(--red);
  padding: 8px 11px;
  background: #302629;
  color: #f1cbc0;
  font-size: 13px;
  line-height: 1.6;
}
.empty {
  padding: 20px clamp(14px, 2vw, 30px);
  color: var(--muted);
}
.turns {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 10px clamp(14px, 2vw, 30px);
  border-top: 1px solid var(--line);
}
.turns a {
  font-size: 12px;
  color: #dfbeb2;
  padding-block: 4px;
}
.turns a:hover {
  text-decoration: underline;
}
.sources {
  border-top: 1px solid var(--line);
  margin: 42px 0 30px;
  padding-top: 22px;
}
.sources-head a {
  font-size: 12px;
  color: #e0c1b4;
}
#source-intro {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}
#source-list {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(245px, 100%), 1fr));
  gap: 0 18px;
}
#source-list li {
  font-size: 13px;
  border-top: 1px solid var(--line);
  color: #bdcac5;
  padding: 9px 0;
}
#source-list a:after {
  content: ' ↗';
  color: var(--signal);
}
footer {
  border-top: 1px solid var(--line);
  background: var(--dark);
  color: var(--muted);
}
.foot {
  min-height: 58px;
  font-size: 12px;
  justify-content: flex-start;
}
.foot a {
  margin-left: auto;
}
.footer-brand {
  font: 500 20px var(--serif);
  color: #d9e3db;
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 17px;
  }
  .metric {
    padding-inline: 12px;
  }
  .area-button {
    padding-inline: 7px;
    gap: 5px;
    grid-template-columns: 19px minmax(0, 1fr) auto;
  }
}
@media (max-width: 650px) {
  .mast-inner {
    min-height: 51px;
    gap: 9px;
  }
  .identity {
    font-size: 19px;
    gap: 6px;
  }
  .archive-symbol {
    width: 19px;
    height: 21px;
  }
  nav {
    gap: 11px;
    font-size: 11px;
  }
  nav .download {
    padding-inline: 7px;
  }
  nav .download span {
    display: none;
  }
  .cover-inner {
    padding-block: 33px;
  }
  .cover {
    background-position: 72% center;
  }
  h1 {
    font-size: clamp(64px, 17vw, 91px);
  }
  h1 span {
    font-size: 10px;
    margin-bottom: 11px;
  }
  .subtitle {
    font-size: 14px;
    margin-top: 12px;
  }
  .cover-actions {
    margin-top: 16px;
    gap: 14px;
  }
  .primary,
  .subtle {
    font-size: 12px;
    min-height: 39px;
  }
  .totals {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    margin-top: 15px;
  }
  .metric {
    padding: 9px 6px;
  }
  .metric-tag {
    font-size: 8px;
    letter-spacing: 0.02em;
  }
  .metric-num {
    font-size: 23px;
  }
  .metric-num small {
    font-size: 10px;
    margin-left: 2px;
  }
  #dossier {
    margin-top: 23px;
  }
  .dossier-head {
    display: block;
  }
  .search {
    width: 100%;
    margin-top: 10px;
  }
  .layout {
    display: block;
    margin-top: 12px;
  }
  #area-index {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    margin-bottom: 10px;
  }
  #area-index h3 {
    margin: 0;
    white-space: nowrap;
    font-size: 9px;
  }
  #area-links {
    display: none;
  }
  .mobile-area {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .mobile-area select {
    width: 100%;
  }
  .sheet-head {
    padding: 13px 13px 9px;
  }
  .controls {
    padding: 0 13px 10px;
    gap: 8px;
  }
  .row {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 2px 6px;
    padding: 10px 12px;
  }
  .category-tag {
    grid-column: 2;
    border: 0;
    padding: 0;
    max-width: 100%;
    font-size: 10px;
  }
  .sheet-head h3 {
    font-size: 25px;
  }
  .sources {
    margin-top: 28px;
  }
  .sources-head {
    align-items: end;
  }
  .sources-head h2 {
    font-size: 29px;
  }
  .sources-head a {
    font-size: 11px;
  }
  .foot {
    flex-wrap: wrap;
    gap: 8px 13px;
    padding-block: 10px;
  }
  .footer-brand {
    font-size: 17px;
  }
  #save-status {
    font-size: 10px;
  }
}
@media (max-width: 370px) {
  nav {
    gap: 8px;
  }
  nav a:nth-child(2) {
    display: none;
  }
  .metric-tag {
    font-size: 7px;
  }
  .metric-num small {
    font-size: 9px;
  }
}
.row > .caution,
.row > .spoiler,
.row > .note-box {
  grid-column: 1/-1;
  width: 100%;
  margin: 0 0 5px;
}
.more {
  margin: 12px clamp(14px, 2vw, 30px);
  min-height: 37px;
  background: #233034;
  color: #e0e8df;
  border: 1px solid #50615e;
  font-size: 12px;
  padding: 6px 11px;
}
.archive-intro {
  border-top: 1px solid var(--line);
  padding-top: 7px;
  margin-top: 11px;
}
.archive-intro summary {
  display: inline-block;
  cursor: pointer;
  font-size: 12px;
  color: #decabb;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.archive-intro .detail {
  max-width: 92ch;
}

.identity,
nav a {
  white-space: nowrap;
}
.identity {
  flex-shrink: 0;
}
.compact-label {
  display: none;
}
.next-action {
  background: #171f22;
  border: 1px solid var(--line);
  border-top: 0;
  border-left: 2px solid #9f625c;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px clamp(12px, 2vw, 34px);
  min-height: 43px;
  width: 100%;
  text-align: left;
}
.next-action:hover {
  background: #1f292c;
}
.next-action .caption {
  color: #d2a69a;
  font-size: 9px;
}
.next-action strong {
  font: 500 15px/1.4 var(--serif);
  margin-right: auto;
}
.next-action > span:last-child {
  color: var(--red);
}
@media (max-width: 650px) {
  nav .download .wide-label {
    display: none;
  }
  nav .download .compact-label {
    display: inline;
  }
  .next-action {
    padding: 9px;
    gap: 10px;
  }
  .next-action .caption {
    font-size: 8px;
    max-width: 105px;
  }
  .next-action strong {
    font-size: 14px;
  }
  .metric-tag {
    font-size: 8px;
  }
}
@media (max-width: 370px) {
  nav {
    gap: 9px;
  }
  .identity {
    font-size: 17px;
  }
  .next-action .caption {
    max-width: 87px;
  }
}
@media (max-width: 650px) {
  .cover {
    background-position: 85% center;
  }
  .subtitle {
    max-width: 31ch;
  }
}
