/* A second drawing of the same order. No minimap, so the mast uses the full width. */
body.schematic-page .mast,
body.schematic-page .top {
  padding-right: 18px;
}
body.schematic-page { padding-bottom: 64px; }
.schematic-mast .legend { max-width: 72rem; }

.schematic-top { flex-wrap: wrap; gap: 10px 16px; }
.schematic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

main.schematic {
  padding: 14px 18px 48px;
  max-width: 1180px;
}

.page-note {
  margin: 0;
  max-width: 78ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.on-page {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0 6px;
}
.on-page a { font-size: 13px; letter-spacing: 0.04em; text-decoration: none; }

.key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 12px 0 4px;
  padding: 0;
}
.key li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.swatch {
  width: 11px;
  height: 11px;
  border: 1px solid var(--line);
  background: var(--sheet);
}
.swatch.open { background: var(--open); border-color: var(--open); }
.swatch.ahead { background: var(--clay); border-color: var(--clay); }
.swatch.both { background: var(--gold); border-color: var(--gold); }

.plate {
  margin: 22px 0;
  border: 1px solid var(--line);
  background: var(--sheet);
}
.plate > header,
.band header {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--line);
}
.plate h2,
.band h2 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
}
.plate .kicker,
.band .kicker {
  margin: 0;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plate .lead,
.band .lead {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  max-width: 78ch;
}

.hinge, .pair, .counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hinge article, .pair article, .counts article {
  padding: 12px;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.hinge article + article,
.pair article + article,
.counts article + article { border-left: 1px solid var(--line); }
.hinge h3, .pair h3, .counts h3, .cell strong, .ahead-grid strong {
  display: block;
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
}
.ref {
  display: block;
  margin-bottom: 3px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.hinge p, .pair p, .counts p, .cell p, .band p, .sources p {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.45;
}
blockquote {
  margin: 8px 0 0;
  padding-left: 10px;
  border-left: 2px solid var(--gold-dim);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.4;
}

.tag {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 1px 6px;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag.open { color: var(--open); border-color: var(--open); }
.tag.ahead { color: var(--clay); border-color: var(--clay); }

.more {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.seals, .wars {
  display: grid;
}
.seals { grid-template-columns: 112px 1fr 1.15fr 1fr; }
.wars { grid-template-columns: 108px 0.95fr 1.15fr 0.72fr 1.15fr 1fr; }

.head, .when, .cell {
  min-width: 0;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.head {
  border-top: 0;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
}
.when {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.35;
}
.when[data-state="open"] { box-shadow: inset 3px 0 0 var(--open); }
.when[data-state="ahead"] { box-shadow: inset 3px 0 0 var(--clay); }
.when small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.g-y { grid-column: 1; }
.g-ch { grid-column: 2; }
.g-hd { grid-column: 3; }
.g-dr { grid-column: 4; }
.r1 { grid-row: 1; }
.r2 { grid-row: 2; }
.r3 { grid-row: 3; }
.r4 { grid-row: 4; }
.r5 { grid-row: 5; }
.r6 { grid-row: 6; }
.r7 { grid-row: 7; }
.r8 { grid-row: 8; }
.r9 { grid-row: 9; }
.eph { grid-column: 2; grid-row: 2 / span 4; }
.light { grid-column: 4; grid-row: 2 / span 4; }

.cell summary { cursor: pointer; list-style: none; }
.cell summary::-webkit-details-marker { display: none; }
.cell summary::after {
  content: "+";
  float: right;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
}
.cell[open] summary::after { content: "–"; }
.cell[open] { background: #1c1814; }
.cell summary:focus-visible,
.more:focus-visible,
.on-page a:focus-visible,
.text-btn:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}
.cell.sealed { color: var(--dim); }
.cell.sealed strong { color: var(--muted); font-style: italic; }

.band {
  margin: 0;
  padding: 0 0 12px;
  border-top: 1px solid var(--line);
}
.band header { border-bottom: 0; }
.band[data-state="open"] { box-shadow: inset 3px 0 0 var(--open); }
.band[data-state="ahead"] { box-shadow: inset 3px 0 0 var(--clay); }
.band .body, .ahead-grid { padding: 0 12px 4px; }

.ahead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ahead-grid article {
  padding: 10px;
  border: 1px solid var(--line);
  min-width: 0;
}

.lengths {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.lengths th, .lengths td {
  padding: 7px 10px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.lengths th {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lengths td:first-child {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.count-body { padding: 4px 12px 14px; }
.count-body h3 {
  margin: 8px 0 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
}
.eight p, .range-note, .seat p { color: var(--muted); font-size: 14px; line-height: 1.45; }
.eight ol, .sat { list-style: none; margin: 8px 0 0; padding: 0; }
.eight ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.eight li, .sat li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 6px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.sat li { grid-template-columns: 28px 1fr; }
.eight li span, .seat .n, .sat .n {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
}
.ranges { margin-top: 14px; }
.scale, .lane {
  display: grid;
  grid-template-columns: minmax(0, 1260fr) minmax(52px, 30fr) minmax(52px, 45fr);
}
.scale {
  margin: 0 0 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.scale span:nth-child(2),
.scale span:nth-child(3) { padding-left: 6px; border-left: 1px solid var(--line); }
.lane { margin: 5px 0; }
.lane .fill {
  margin: 0;
  padding: 7px 8px;
  border: 1px solid var(--gold-dim);
  font-size: 13px;
}
.y1260 .fill {
  grid-column: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #2a2318;
}
.y1290 .fill { grid-column: 1 / 3; background: #1e2a28; border-color: #3d5c58; }
.y1335 .fill { grid-column: 1 / 4; background: #2a221c; border-color: var(--clay); }
.pin {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.seat {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 8px 2px;
  box-shadow: inset 3px 0 0 var(--gold);
}
.seat strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
}
.seat p { margin: 4px 0 0; }

.sources { padding: 4px 12px 14px; }
.sources ul { margin: 8px 0 0; padding-left: 18px; }
.sources li { margin: 4px 0; font-size: 14px; }

@media (max-width: 980px) {
  .hinge, .pair, .counts, .ahead-grid, .seals, .wars { display: block; }
  .hinge article + article,
  .pair article + article,
  .counts article + article { border-left: 0; }
  .seals > *, .wars > * {
    grid-column: auto;
    grid-row: auto;
  }
  .when { margin-top: 16px; background: #1a1612; }
  .lengths { display: block; overflow-x: auto; }
  .eight ol { grid-template-columns: 1fr; }
  .pin { white-space: normal; }
}
