/* BOAREVER
   Ink blue, warm ivory, aged gold. Bright gold is reserved for the numbers
   that matter (the boar count, the current level) and for active states.
   The gold studs come from the four studs on the logo's ring. */

:root {
  --ink: #121f2a;
  --ink-raised: #172735;
  --ink-deep: #0b151d;
  --ivory: #ede3cc;
  --ivory-soft: #cbc3ad;
  --gold: #b8924a;
  --gold-dim: #5f4d2c;
  --gold-bright: #f2c75c;
  --gold-text: #d4ad66;
  --paper: #e9dcbc;
  --paper-ink: #2b2620;
  --paper-soft: #574a35;
  --paper-gold: #7a5a1c;
  --ember: #d0644a;
  --moss: #8fbf86;
  --marker: #1a2d3d;

  --serif: "IM Fell English", "Lora", Georgia, serif;
  --sans: "Alegreya Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --grain-light: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.93 0 0 0 0 0.89 0 0 0 0 0.8 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.33 0 0 0 0 0.25 0 0 0 0 0.14 0 0 0 0.22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html { background: var(--ink); }

body {
  margin: 0 auto;
  max-width: 1180px;
  padding: 2rem 1.5rem 2.5rem;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-variant-numeric: lining-nums tabular-nums;
}

h1, h2, h3, p, ol, ul, dl { margin: 0; }
a { color: var(--gold-bright); text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Type roles ------------------------------------------------------------- */

.major { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; color: var(--ivory); }
.minor { font-family: var(--serif); font-weight: 400; font-size: 1.375rem; line-height: 1.2; color: var(--ivory); margin-bottom: 0.6rem; }
.section-note { color: var(--ivory-soft); font-size: 1rem; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.25rem;
  margin-bottom: 0.9rem;
}

/* Studs: pyramid-faceted diamonds, lit from the top left like the logo's. */

.stud, .masthead::before, .masthead::after, .divider span, .corner, .note::before, .marker-stud {
  display: block;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: conic-gradient(from -45deg, #e0b65e 0 25%, #7d5a1f 0 50%, #a8802f 0 75%, #f6d98a 0);
  box-shadow: 0 0 0 1px #2c1f0b, 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Dividers: a gold rule with a stud at its center. */

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 2.5rem 0 1.5rem;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; }
.divider::before { background: linear-gradient(90deg, transparent, var(--gold) 40%); }
.divider::after { background: linear-gradient(270deg, transparent, var(--gold) 40%); }
.divider span { width: 10px; height: 10px; }

/* Masthead -------------------------------------------------------------------- */

.masthead {
  position: relative;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 300px;
  gap: 1.75rem 2.25rem;
  align-items: center;
  padding: 1.9rem 2.1rem 1.9rem 1.75rem;
  background-color: var(--ink-raised);
  background-image:
    var(--grain-light),
    radial-gradient(ellipse 340px 260px at 120px 50%, rgba(56, 104, 128, 0.35), transparent 70%);
  border: 1px solid var(--gold);
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 5px var(--ink-raised),
    inset 0 0 0 6px var(--gold-dim),
    0 14px 34px rgba(0, 0, 0, 0.4);
}

.masthead::before, .masthead::after {
  content: "";
  position: absolute;
  top: 50%;
  margin-top: -7px;
}
.masthead::before { left: -8px; }
.masthead::after { right: -8px; }
.stud-top { position: absolute; top: -8px; left: 50%; margin-left: -7px; }

.logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
}

.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ivory-soft);
  font-size: 0.975rem;
}

.status-dot {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold-dim);
}

.status.is-live { color: var(--ivory); }
.status.is-live .status-dot { background: var(--moss); animation: pulse 2.6s ease-out infinite; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(143, 191, 134, 0.6); }
  70% { box-shadow: 0 0 0 0.55rem rgba(143, 191, 134, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 191, 134, 0); }
}

.premise {
  margin-top: 0.55rem;
  max-width: 34rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--ivory);
}

.count {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.7rem;
  margin-top: 0.85rem;
}

.count-number {
  font-weight: 800;
  font-size: clamp(3.4rem, 7.5vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--gold-bright);
  text-shadow: 0 1px 0 #8a6420, 0 6px 20px rgba(0, 0, 0, 0.45);
}

.count-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.75rem;
  color: var(--ivory);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.facts div {
  padding: 0 1.25rem;
  border-left: 1px solid var(--gold-dim);
}
.facts div:first-child { padding-left: 0; border-left: 0; }
.facts dt { font-size: 0.9rem; color: var(--gold-text); }
.facts dd { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--ivory); }
.facts #level { color: var(--gold-bright); }

/* Paper: the field journal's material */

.paper {
  color: var(--paper-ink);
  background-color: var(--paper);
  background-image:
    var(--grain-dark),
    radial-gradient(ellipse at 50% 40%, rgba(255, 250, 232, 0.55), rgba(176, 144, 92, 0.28) 85%);
  border: 1px solid #c4ae82;
}
.paper a { color: var(--paper-ink); }

.note {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.25rem 1rem;
  border-radius: 2px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.note::before { content: ""; position: absolute; top: -6px; left: 50%; margin-left: -5px; width: 10px; height: 10px; }
.note-label { font-size: 0.9rem; color: var(--paper-soft); }
.note-date { font-family: var(--serif); font-style: italic; color: var(--paper-soft); font-size: 0.95rem; margin-top: 0.15rem; }
.note-title { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.2; margin-top: 0.35rem; }
.note-title a { text-decoration: none; }
.note-title a:hover { text-decoration: underline; }
.note-excerpt { margin-top: 0.45rem; font-size: 0.98rem; line-height: 1.45; }
.note-more { margin-top: auto; padding-top: 0.6rem; font-size: 0.95rem; }
.note-more a { color: var(--paper-gold); font-weight: 700; }

/* The road to 60 --------------------------------------------------------------------- */

.track-wrap { position: relative; padding-top: 2.3rem; }

.track {
  display: grid;
  grid-template-columns: repeat(60, minmax(0, 1fr));
  gap: 3px;
  list-style: none;
  padding: 4px;
  background: var(--ink-deep);
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
}

.track li {
  height: 18px;
  border-radius: 1px;
  background: transparent;
  box-shadow: inset 0 0 0 1px #2b3a46;
}
.track li.is-done { background: linear-gradient(180deg, #cfa95c, var(--gold) 60%, #8f6e33); box-shadow: none; }
.track li.is-current { background: var(--gold-bright); box-shadow: 0 0 10px rgba(242, 199, 92, 0.75); }
.track li:nth-child(10n) { margin-right: 3px; }

.track-marker {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: none;
  transition: left 0.6s ease;
}
.marker-label { font-weight: 800; font-size: 0.95rem; color: var(--gold-bright); white-space: nowrap; line-height: 1.2; }
.marker-stud { width: 10px; height: 10px; margin-top: 3px; }

.track-scale { position: relative; height: 1.5rem; margin-top: 0.3rem; font-size: 0.9rem; color: var(--ivory-soft); }
.track-scale span { position: absolute; transform: translateX(-50%); }

.timeline { margin-top: 1.4rem; }
.timeline-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; }
.timeline-head .minor { margin-bottom: 0.5rem; font-size: 1.2rem; }

.time-strip {
  display: flex;
  height: 14px;
  background: var(--ink-deep);
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  overflow: hidden;
}
.time-seg { min-width: 2px; height: 100%; background: #8f7038; cursor: pointer; }
.time-seg:nth-child(even) { background: #b08d4f; }
.time-seg.is-current { background: var(--gold-bright); }
.time-seg:hover, .time-seg.is-picked { background: var(--ivory); }
.time-detail { min-height: 1.5em; margin-top: 0.45rem; color: var(--ivory-soft); font-size: 1rem; }

/* The band: atlas beside the stream and ledger --------------------------------------- */

.band {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.25rem;
  align-items: start;
  margin-top: 2.5rem;
}

.zone-picker { color: var(--ivory-soft); font-size: 1rem; }

select, .button, .map-controls button {
  font: inherit;
  color: var(--ivory);
  background: var(--ink-deep);
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
}
select { margin-left: 0.4rem; padding: 0.25rem 0.5rem; font-size: 0.9375rem; }
select:hover, .button:hover, .map-controls button:hover { border-color: var(--gold); }

/* Atlas */

.atlas-frame {
  position: relative;
  padding: 7px;
  background: var(--ink-deep);
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 4px var(--ink-deep), inset 0 0 0 5px var(--gold-dim);
}
.corner { position: absolute; width: 11px; height: 11px; z-index: 2; }
.corner.tl { top: -6px; left: -6px; }
.corner.tr { top: -6px; right: -6px; }
.corner.bl { bottom: -6px; left: -6px; }
.corner.br { bottom: -6px; right: -6px; }

.map {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.map.is-dragging { cursor: grabbing; }
.map .grid line { stroke: #bba67a; stroke-width: 1; vector-effect: non-scaling-stroke; }
.map .watermark { font-family: var(--serif); fill: #a99368; text-anchor: middle; }
.map .kill { fill: var(--marker); fill-opacity: 0.88; stroke: #f3e8cf; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.map .kill.is-live { fill: #f6eddb; fill-opacity: 1; stroke: var(--marker); stroke-width: 1.75; }
.map .latest-dot { fill: var(--gold-bright); stroke: var(--marker); stroke-width: 2; vector-effect: non-scaling-stroke; }
.map .latest-ring { fill: none; stroke: var(--marker); stroke-width: 2; vector-effect: non-scaling-stroke; }
.map .death-halo { fill: none; stroke: #f6eddb; stroke-width: 5.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map .death { fill: none; stroke: #b3402b; stroke-width: 2.75; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* The detail panel for a selected marker */

.map-detail {
  position: absolute;
  z-index: 3;
  width: 252px;
  padding: 0.8rem 1rem 0.85rem;
  color: var(--ivory);
  background-color: rgba(11, 21, 29, 0.95);
  background-image: var(--grain-light);
  border: 1px solid var(--gold-bright);
  border-radius: 3px;
  box-shadow: 0 0 0 3px rgba(11, 21, 29, 0.92), 0 0 0 4px var(--gold-dim), 0 12px 28px rgba(0, 0, 0, 0.55);
}
.map-detail::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  margin-left: -5px;
  display: block;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: conic-gradient(from -45deg, #e0b65e 0 25%, #7d5a1f 0 50%, #a8802f 0 75%, #f6d98a 0);
  box-shadow: 0 0 0 1px #2c1f0b;
}
.map-detail.is-left { left: 16px; }
.map-detail.is-right { right: 16px; }
.map-detail.is-top { top: 16px; }
.map-detail.is-bottom { bottom: 16px; }
.map-detail.is-left.is-top { top: 122px; }   /* clear of the zoom buttons */

.detail-close {
  position: absolute;
  top: 0.4rem;
  right: 0.45rem;
  width: 26px;
  height: 26px;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1;
  color: var(--ivory-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
}
.detail-close:hover { color: var(--ivory); border-color: var(--gold-dim); }

.detail-kicker { padding-right: 1.6rem; font-weight: 700; font-size: 0.9rem; color: var(--gold-bright); }
.detail-title { margin-top: 0.1rem; padding-right: 1.4rem; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.15; }
.map-detail.is-death .detail-title { color: #e98a70; }

.detail-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.3rem 0.85rem;
  margin-top: 0.65rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--gold-dim);
}
.detail-facts dt { font-size: 0.875rem; color: var(--gold-text); }
.detail-facts dd { margin: 0; font-size: 0.975rem; font-weight: 500; }
.detail-facts .is-confirmed { color: var(--gold-bright); font-weight: 700; }
.detail-facts .is-waiting { color: var(--ivory-soft); font-style: italic; }

/* The selected marker */
.map .selection { fill: none; stroke: var(--gold-bright); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.map .selection-pulse {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  animation: select-pulse 1.8s ease-out infinite;
}
@keyframes select-pulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}
.map .kill.is-picked { fill: var(--marker); fill-opacity: 1; stroke: var(--gold-bright); stroke-width: 2.5; }

.map-controls {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.map-controls button {
  width: 30px;
  height: 28px;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(11, 21, 29, 0.86);
  cursor: pointer;
}
.map-controls #zoom-reset { font-size: 0.75rem; font-weight: 500; }

.atlas-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  margin-top: 0.7rem;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  list-style: none;
  padding: 0.3rem 0.75rem;
  font-size: 0.95rem;
  color: var(--paper-ink);
  background: #d3c29a;
  border: 1px solid var(--gold);
  border-radius: 2px;
}
.legend li { display: flex; align-items: center; gap: 0.4rem; }
.key { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.key-confirmed { background: var(--marker); box-shadow: 0 0 0 1.25px #f3e8cf; }
.key-pending { background: #f6eddb; box-shadow: 0 0 0 1.75px var(--marker); }
.key-latest { background: var(--gold-bright); box-shadow: 0 0 0 2px var(--marker), 0 0 0 4px var(--gold-bright); }
.map-caption { color: var(--ivory-soft); font-size: 0.975rem; }
.key-death { width: 12px; height: 12px; overflow: visible; }
.key-death path { fill: none; stroke: #b3402b; stroke-width: 2.4; stroke-linecap: round; }

/* Stream */

.side { display: grid; gap: 1.75rem; }

.stream-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--ink-deep);
  background-image: var(--grain-light);
  border: 1px solid var(--gold-dim);
  overflow: hidden;
}
.stream-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.stream-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem;
  text-align: center;
}
.poster-crest { width: 34%; max-width: 150px; height: auto; opacity: 0.9; filter: saturate(0.8) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.poster-text { max-width: 22rem; font-family: var(--serif); font-size: 1.1rem; line-height: 1.3; color: var(--ivory); }
.poster-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem 1rem; }
.button { padding: 0.35rem 0.9rem; font-size: 0.9375rem; font-weight: 700; border-color: var(--gold); cursor: pointer; }
.button:hover { color: var(--ink); background: var(--gold-bright); }
.poster-link { font-size: 0.9375rem; }

/* Kill ledger: ruled like an account book */

.kill-ledger { width: 100%; border-collapse: collapse; font-size: 0.9375rem; border-top: 3px double var(--gold-dim); }
.kill-ledger th { padding: 0.3rem 0.4rem; text-align: left; font-weight: 500; font-size: 0.9rem; color: var(--gold-text); border-bottom: 1px solid var(--gold-dim); }
.kill-ledger td { padding: 0.32rem 0.4rem; border-bottom: 1px dotted var(--gold-dim); white-space: nowrap; }
.kill-ledger td:first-child { color: var(--ivory-soft); width: 1%; }
.kill-ledger td:nth-child(2) { white-space: normal; }
.kill-ledger th:nth-child(3), .kill-ledger td:nth-child(3) { text-align: right; width: 1%; }
.kill-ledger th:last-child, .kill-ledger td:last-child { width: 1%; text-align: center; }
.xp-ok { color: var(--gold); font-weight: 700; }
.kill-ledger .died td:nth-child(2) { color: var(--ember); font-style: italic; }
.xp-wait { color: var(--ivory-soft); font-style: italic; font-size: 0.9rem; }
.kill-ledger .empty td { white-space: normal; color: var(--ivory-soft); }

/* Supporting: levels and bestiary ----------------------------------------------------- */

.supporting {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.25rem;
  align-items: start;
}

.chart { display: block; width: 100%; height: 190px; }
.chart .bar { fill: var(--gold); cursor: pointer; }
.chart .bar:hover, .chart .bar.is-picked { fill: var(--ivory); }
.chart .bar.is-current { fill: var(--gold-bright); }
.chart .axis { fill: var(--ivory-soft); font-size: 13.5px; font-family: var(--sans); }
.chart .rule { stroke: var(--gold-dim); stroke-width: 1; }

.table-toggle { margin-top: 0.6rem; }
.table-toggle summary { cursor: pointer; color: var(--gold-text); font-size: 1rem; }
.table-wrap { overflow-x: auto; margin-top: 0.6rem; }
.level-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.level-table th, .level-table td { padding: 0.35rem 0.55rem; text-align: right; white-space: nowrap; border-bottom: 1px dotted var(--gold-dim); }
.level-table th { font-weight: 500; font-size: 0.9rem; color: var(--gold-text); border-bottom: 1px solid var(--gold-dim); }
.level-table th:first-child, .level-table td:first-child { text-align: left; }
.level-table tbody tr:first-child td { color: var(--gold-bright); font-weight: 700; }
.level-table .is-zero { color: #4b5a64; }
.level-table .deaths-some { color: var(--ember); font-weight: 700; }

.kinds { list-style: none; padding: 0; }
.kinds li { padding: 0.3rem 0; }
.kind-row { display: flex; justify-content: space-between; gap: 1rem; }
.kind-row span:last-child { font-weight: 700; }
.kinds .bar { height: 3px; margin-top: 0.25rem; background: var(--gold); }
.vow { margin-top: 0.9rem; padding-top: 0.6rem; border-top: 1px dashed var(--gold-dim); color: var(--ivory-soft); font-size: 1rem; }
.vow.is-broken { color: var(--ember); }

/* Field journal ------------------------------------------------------------------------- */

.journal {
  margin-top: 2.75rem;
  padding: 1.75rem 2rem 1.5rem;
  border-radius: 2px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.journal .major { color: var(--paper-ink); margin-bottom: 1rem; }
.entries { list-style: none; padding: 0; }
.entries li {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 0.2rem 1.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(43, 38, 32, 0.22);
}
.entries li:first-child { border-top: 0; padding-top: 0; }
.entry-date { font-family: var(--serif); font-style: italic; color: var(--paper-soft); }
.entry-title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.entry-title a { text-decoration: none; }
.entry-title a:hover { text-decoration: underline; }
.entry-excerpt { margin-top: 0.3rem; max-width: 44rem; }
.journal .empty { color: var(--paper-soft); grid-column: 1 / -1; }
.journal-more { margin-top: 1rem; }
.journal-more a { color: var(--paper-gold); font-weight: 700; }

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

.footer { margin-top: 2.5rem; color: var(--ivory-soft); font-size: 0.975rem; max-width: 48rem; }
.footer p + p { margin-top: 0.35rem; }
.updated { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold-text); }

/* Medium screens: the journal note drops below the count --------------------------------- */

@media (max-width: 1060px) {
  .masthead { grid-template-columns: 200px minmax(0, 1fr); }
  .note { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .band, .supporting { grid-template-columns: minmax(0, 1fr); }
}

/* Phones ------------------------------------------------------------------------------- */

@media (max-width: 640px) {
  body { padding: 1.25rem 1rem 2rem; }
  .masthead { grid-template-columns: minmax(0, 1fr); padding: 1.5rem 1.15rem 1.25rem; gap: 1.25rem; }
  .logo { max-width: 220px; margin: 0 auto; }
  .premise { font-size: 1.15rem; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; }
  .facts div, .facts div:first-child { padding: 0; border: 0; }
  .major { font-size: 1.65rem; }
  .track { gap: 1px; padding: 3px; }
  .track li { height: 14px; }
  .track li:nth-child(10n) { margin-right: 1px; }
  .map-controls { top: 12px; left: 12px; }
  .map-detail, .map-detail.is-left.is-top { position: relative; inset: auto; width: auto; margin-top: 0.75rem; }
  .journal { padding: 1.35rem 1.15rem 1.1rem; }
  .entries li { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .map .selection-pulse { animation: none; opacity: 0; }
  .status.is-live .status-dot { animation: none; }
  .track-marker { transition: none; }
}
