/* Plotmaniac — coming-soon materials, built to hold more than one plot. */

:root {
  --bg: #0c0b09;
  --ink: #f4efe6;
  --muted: #9b9488;
  --gold: #e8c47a;
  --line: rgba(244, 239, 230, 0.12);
  --line-strong: rgba(244, 239, 230, 0.28);
  --panel: rgba(244, 239, 230, 0.04);
  --panel-hover: rgba(244, 239, 230, 0.07);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  overflow-x: clip;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 18%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

button,
input,
select,
summary,
a {
  touch-action: manipulation;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: transparent;
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.mast,
.app,
.site-footer {
  position: relative;
  z-index: 1;
}

.mast {
  z-index: 6;
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 12px;
  text-align: center;
}

.status,
.eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.status {
  margin-bottom: 16px;
}

button.status {
  padding: 0;
}

.eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  margin-bottom: 8px;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(4rem, 14vw, 6.4rem);
  line-height: 0.88;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

h3 {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.mark {
  display: block;
  width: min(260px, 56vw);
  height: auto;
  margin: 2px auto 4px;
}

.mark path.arc {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  animation: draw 1.8s ease-out forwards;
}

.mark circle {
  fill: var(--gold);
  opacity: 0;
  animation: appear 0.4s ease-out 1.5s forwards;
}

.lede,
.web-note,
.rail-note,
.role,
.detail-names,
.site-footer,
.empty,
.loading {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.lede {
  max-width: 42ch;
  margin: 0 auto;
}

.views {
  display: inline-flex;
  gap: 8px;
  margin-top: 26px;
}

.views > button,
.back,
.event-links a,
.event-links button,
.search input {
  border: 1px solid var(--line-strong);
  min-height: 40px;
  padding: 8px 14px;
}

.views > button {
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.66rem;
}

.views > button.is-active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.views > .view-reset {
  margin-left: 10px;
  border-color: rgba(232, 196, 122, 0.45);
  color: var(--gold);
}

.plot-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plot-switch select,
.plot-switch input,
.choice-button {
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  min-height: 32px;
  padding: 4px 8px;
}

.title-filter {
  z-index: 2;
}

.title-filter.is-open {
  z-index: 9;
}

.title-filter-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.title-filter input {
  min-width: min(38vw, 200px);
  max-width: min(52vw, 280px);
  text-transform: none;
  letter-spacing: 0.02em;
}

.title-filter input::placeholder {
  color: var(--muted);
  text-transform: none;
}

.chrono-tv-switch {
  cursor: pointer;
  user-select: none;
  gap: 8px;
}

.chrono-tv-switch input[type="checkbox"] {
  appearance: none;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  padding: 0;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  background: var(--bg);
  display: grid;
  place-items: center;
}

.chrono-tv-switch input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px var(--bg);
}

.chrono-tv-switch input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.title-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 10;
  min-width: max(100%, 16rem);
  max-width: min(92vw, 26rem);
  max-height: min(50vh, 320px);
  overflow: auto;
  list-style: none;
  padding: 4px;
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow:
    0 0 0 1px rgba(232, 196, 122, 0.08),
    0 22px 40px rgba(0, 0, 0, 0.55);
  scrollbar-color: var(--line-strong) transparent;
}

.title-suggestions li {
  list-style: none;
}

.title-suggestion {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 8px 12px;
  text-align: left;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.72rem;
  line-height: 1.35;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.title-suggestion:hover,
.title-suggestion:focus-visible {
  color: var(--ink);
  background: var(--panel);
  outline: none;
}

.web-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 28ch;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  pointer-events: none;
}

.choice {
  z-index: 2;
}

.choice.is-open {
  z-index: 8;
}

.choice-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.choice-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.choice-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: min(52vw, 280px);
  padding-right: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.choice-button::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
}

.choice-button:hover {
  border-color: var(--gold);
}

.choice.is-open .choice-button {
  color: var(--ink);
  border-color: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.choice.is-open .choice-button::after {
  transform: translateY(-20%) rotate(225deg);
}

.choice-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 8;
  min-width: max(100%, 16rem);
  max-width: min(92vw, 22rem);
  max-height: min(60vh, 360px);
  overflow: auto;
  list-style: none;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 0 0 1px rgba(232, 196, 122, 0.08),
    0 22px 40px rgba(0, 0, 0, 0.55);
  scrollbar-color: var(--line-strong) transparent;
}

.choice-menu li {
  list-style: none;
}

.choice-option {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 8px 12px;
  text-align: left;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.66rem;
  line-height: 1.35;
  border: 0;
  background: transparent;
}

.choice-option:hover,
.choice-option:focus-visible {
  color: var(--ink);
  background: var(--panel);
  outline: none;
}

.choice-option[aria-selected="true"] {
  color: var(--bg);
  background: var(--gold);
}

.choice-option[aria-selected="true"]:hover,
.choice-option[aria-selected="true"]:focus-visible {
  color: var(--bg);
  background: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(12, 11, 9, 0.18);
}

body[data-view="pick"] {
  display: flex;
  flex-direction: column;
}

body[data-view="pick"] #home-link,
body:not([data-view="pick"]) #pick-eyebrow,
body:not([data-view="pick"]) .gallery-search {
  display: none;
}

body[data-view="pick"] .views {
  display: none;
}

body[data-view="pick"] .mast {
  width: min(920px, calc(100% - 40px));
  padding: 56px 0 8px;
}

body[data-view="pick"] .eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.62rem;
}

body[data-view="pick"] h1 {
  font-size: clamp(4.6rem, 16vw, 7.2rem);
  line-height: 0.88;
}

body[data-view="pick"] .mark {
  width: min(260px, 56vw);
  margin: 2px auto 4px;
}

body[data-view="pick"] .lede {
  max-width: 46ch;
  margin: 0 auto 18px;
  font-size: 0.92rem;
  line-height: 1.6;
}

body[data-view="pick"] .app {
  width: min(920px, calc(100% - 40px));
  flex: 1 1 auto;
  padding: 16px 0 12px;
}

body[data-view="pick"] .site-footer {
  width: min(920px, calc(100% - 40px));
  padding: 8px 0 12px;
  font-size: 0.62rem;
  line-height: 1.4;
}

.gallery-search {
  width: min(280px, 90%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px 6px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s ease;
}

.gallery-search:focus-within {
  border-bottom-color: var(--gold);
}

.gallery-search svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}

.gallery-search:focus-within svg {
  stroke: var(--gold);
  opacity: 1;
}

.gallery-search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  caret-color: var(--gold);
  outline: none;
  font-size: 0.78rem;
}

.gallery-search input::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.gallery-search kbd {
  flex: 0 0 auto;
  display: none;
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

@media (min-width: 769px) {
  .gallery-search kbd {
    display: inline;
  }
}

.plot-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  width: 100%;
  margin: 0 auto;
  align-items: stretch;
}

.plot-cards > li {
  display: flex;
  min-height: 0;
}

.plot-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 10px;
  row-gap: 1px;
  align-items: center;
  align-content: center;
  width: 100%;
  flex: 1 1 auto;
  min-height: 4.6rem;
  padding: 6px 12px;
  text-align: left;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.plot-card:hover,
.plot-card:focus-visible {
  background: var(--panel-hover);
  border-color: var(--gold);
  outline: none;
}

.plot-card .kicker {
  grid-column: 2;
  color: var(--gold);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.plot-card img,
.plot-card .mono {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: center;
}

.plot-card img {
  width: 40px;
  height: 28px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
}

.plot-card.is-person img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.plot-card.is-map img {
  width: 44px;
  height: 26px;
  object-fit: contain;
  background: rgba(244, 239, 230, 0.03);
}

.plot-card .mono {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.85rem;
}

.plot-card strong {
  grid-column: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plot-card p {
  grid-column: 2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.3;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  padding: 16px 0;
}

.year-bar {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin: 0 0 6px;
}

.year-readout {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.year-hint,
.year-counts {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.year-drag {
  -webkit-appearance: none;
  appearance: none;
  width: min(760px, calc(100% - 24px));
  height: 28px;
  background: transparent;
  cursor: grab;
}

.year-drag:active {
  cursor: grabbing;
}

.year-drag::-webkit-slider-runnable-track {
  height: 2px;
  background: rgba(232, 196, 122, 0.85);
}

.year-drag::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #0c0b09;
}

.year-drag::-moz-range-track {
  height: 2px;
  background: rgba(232, 196, 122, 0.85);
  border: 0;
}

.year-drag::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #0c0b09;
}

.year-marks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  width: min(760px, calc(100% - 24px));
}

.year-marks button {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.year-marks button.is-active {
  color: var(--gold);
}

.app {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 48px;
}

body[data-view="web"] {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body[data-view="web"] .mast {
  width: min(920px, calc(100% - 28px));
  padding: 12px 0 0;
}

body[data-view="web"] .status {
  margin-bottom: 2px;
  font-size: 0.62rem;
}

body[data-view="web"] h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}

body[data-view="web"] .mark,
body[data-view="web"] .lede {
  display: none;
}

body[data-view="web"] .views {
  margin-top: 8px;
}

body[data-view="web"] .views > button {
  min-height: 32px;
  padding: 4px 12px;
}

body[data-view="web"] .app {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 6px;
  display: flex;
  flex-direction: column;
}

body[data-view="web"] .web {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body[data-view="web"] .web-key {
  margin: 6px 0 4px;
}

body[data-view="web"] .web-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

body[data-view="web"] .web-scroll.is-camps,
body[data-view="web"] .web-scroll.is-topics {
  overflow: auto;
}

body[data-view="web"] .web-stage {
  width: 100%;
  height: 100%;
}

body[data-view="web"] .site-footer {
  position: absolute;
  right: 14px;
  bottom: 8px;
  width: auto;
  padding: 0;
  text-align: right;
}

body[data-view="web"] #footer-note {
  display: none;
}

.web-note,
.web-hint,
.rail-note {
  text-align: center;
  margin: 0 auto 18px;
  max-width: 52ch;
  font-size: 0.75rem;
}

.web-hint {
  display: none;
}

.web-people {
  display: none;
}

.web-scroll {
  overflow-x: auto;
  padding-bottom: 12px;
}

.web-stage {
  position: relative;
  margin: 0 auto;
}

.web-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.web-lines path {
  fill: none;
  stroke: rgba(244, 239, 230, 0.28);
  stroke-width: 1.15;
  stroke-linecap: round;
  transition: stroke 0.2s ease, stroke-width 0.2s ease, opacity 0.2s ease;
}

body[data-view="web"] .web-scroll.is-hub-field {
  position: relative;
  overflow: hidden;
  padding: 0;
  cursor: grab;
}

body[data-view="web"] .web-scroll.is-hub-field.is-panning {
  cursor: grabbing;
}

.web-tools {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.web-stage.is-hub-field {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  transform-origin: 0 0;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.web-stage.is-hub-field .web-lines {
  z-index: 1;
  pointer-events: none;
}

.web-stage.is-hub-field .web-lines path {
  opacity: 0;
}

.web-stage.is-hub-field.is-hot .web-lines path.is-lit {
  opacity: 0.9;
}

.web-lines path[data-camp="friend"] {
  stroke: rgba(125, 206, 160, 0.55);
}

.web-lines path[data-camp="enemy"] {
  stroke: rgba(224, 106, 98, 0.55);
}

.web-lines path[data-camp="orbit"] {
  stroke: rgba(232, 196, 122, 0.28);
}

.web-stage.is-hot .web-lines path {
  opacity: 0.08;
}

.web-stage.is-hot .web-lines path.is-lit {
  opacity: 1;
  stroke: #f4efe6;
  stroke-width: 2.4;
}

.web-key {
  display: flex;
  justify-content: center;
  gap: 22px;
  list-style: none;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.web-key li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.swatch.camp-friend {
  border-color: #7dcea0;
}

.swatch.camp-enemy {
  border-color: #e06a62;
}

.swatch.camp-near {
  width: 8px;
  height: 8px;
  border-color: var(--gold);
}

.swatch.camp-orbit {
  border-color: rgba(232, 196, 122, 0.45);
}

.swatch.camp-neutral {
  border-color: rgba(244, 239, 230, 0.45);
  background: transparent;
}

.swatch.camp-bloc {
  width: 16px;
  height: 2px;
  border: 0;
  border-radius: 0;
  background: rgba(232, 196, 122, 0.75);
}

body[data-board="regions"][data-view="web"] {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body[data-board="regions"][data-view="web"] .app {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  padding: 0 8px 6px;
}

body[data-board="regions"][data-view="web"] .site-footer {
  position: absolute;
  right: 14px;
  bottom: 8px;
  width: auto;
  margin: 0;
  text-align: right;
}

body[data-board="regions"][data-view="web"] #footer-note {
  display: none;
}

.relations {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.relations-hint,
.region-intro {
  text-align: center;
}

.relations-hint {
  max-width: 72ch;
  margin: 0 auto 6px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.relations-hint a,
.drawer-more {
  color: var(--gold);
}

.relations-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.relations-stage .web-lines {
  z-index: 0;
  pointer-events: none;
  animation: field-lines-in 0.35s ease both;
}

.relations-stage .web-lines path[data-camp="neutral"] {
  stroke: rgba(244, 239, 230, 0.32);
}

.relations-stage .web-lines path[data-camp="bloc"] {
  stroke: rgba(232, 196, 122, 0.42);
  stroke-width: 1;
}

.relations-stage .web-lines path[data-scope="broad"] {
  opacity: 0.32;
}

.relations-stage.is-hot .web-lines path {
  opacity: 0.05;
}

.relations-stage.is-hot .web-lines path.is-lit {
  opacity: 0.95;
}

.relations-stage.is-hot .web-lines path.is-lit[data-camp="friend"] {
  stroke: rgba(125, 206, 160, 0.95);
}

.relations-stage.is-hot .web-lines path.is-lit[data-camp="enemy"] {
  stroke: rgba(224, 106, 98, 0.95);
}

.relations-stage.is-hot .web-lines path.is-lit[data-camp="neutral"] {
  stroke: rgba(244, 239, 230, 0.8);
}

.relations-stage.is-hot .web-lines path.is-lit[data-camp="bloc"] {
  stroke: rgba(232, 196, 122, 0.95);
  stroke-width: 1.6;
}

.relations-stage.is-hot .country-chip {
  opacity: 0.28;
}

.relations-stage.is-hot .country-chip.is-lit {
  opacity: 1;
}

.region-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  padding: 4px 8px 0;
}

.region-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.region-toggle.is-open {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(244, 239, 230, 0.06);
}

.chip-list,
.region-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: var(--panel);
}

.country-chip .avatar {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
}

.country-chip .avatar img {
  padding: 0;
}

.chip-name {
  font-size: 0.72rem;
  line-height: 1.3;
  text-align: left;
}

.avatar.outline-green,
.country-chip.outline-green .avatar {
  border-color: #7dcea0;
  border-width: 2px;
}

.avatar.outline-red,
.country-chip.outline-red .avatar {
  border-color: #e06a62;
  border-width: 2px;
}

.avatar.outline-none,
.country-chip.outline-none .avatar {
  border-color: transparent;
  border-width: 2px;
}

.country-chip.is-selected {
  background: rgba(232, 196, 122, 0.14);
}

.relations-stage .country-chip {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -50%);
  flex-direction: column;
  gap: 3px;
  padding: 0;
  background: transparent;
  width: calc(var(--node, 48px) + 28px);
  animation: field-node-in 0.35s ease both;
  animation-delay: calc(var(--i, 0) * 12ms);
}

.relations-stage .country-chip .avatar {
  width: var(--node, 48px);
  height: var(--node, 48px);
  margin: 0 auto;
  border-radius: 50%;
}

.relations-stage .chip-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 0.6rem;
}

.relations-stage .is-broad .chip-name {
  opacity: 0;
}

.relations-stage.has-region .chip-name {
  opacity: 0;
}

.relations-stage.has-region .country-chip:hover .chip-name,
.relations-stage.has-region .country-chip:focus-visible .chip-name,
.relations-stage.has-region .country-chip.is-selected .chip-name,
.relations-stage .is-broad:hover .chip-name,
.relations-stage .is-broad:focus-visible .chip-name,
.relations-stage .is-broad.is-selected .chip-name {
  opacity: 1;
}

.relations-stage .is-center-chip .avatar {
  width: var(--center, 84px);
  height: var(--center, 84px);
  border-radius: 50%;
  border-color: rgba(232, 196, 122, 0.85);
}

.relation-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 4;
  width: min(420px, 100%);
  height: 100dvh;
  overflow: auto;
  padding: 22px 22px 48px;
  background: #141210;
  border-left: 1px solid var(--line-strong);
  box-shadow: -24px 0 48px rgba(0, 0, 0, 0.35);
}

.drawer-close {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.drawer-expand {
  display: block;
  width: 100%;
  margin: 10px 0 4px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(232, 196, 122, 0.08);
}

.drawer-expand:hover {
  border-color: var(--gold);
}

.drawer-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 16px 0 8px;
}

.drawer-head .avatar {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 50%;
}

.relation-drawer.outline-green .drawer-head .avatar {
  border-color: #7dcea0;
  border-width: 3px;
}

.relation-drawer.outline-red .drawer-head .avatar {
  border-color: #e06a62;
  border-width: 3px;
}

.relation-drawer.outline-none .drawer-head .avatar {
  border-color: transparent;
}

.drawer-head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.drawer-note,
.drawer-notes {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.drawer-notes {
  color: var(--ink);
}

.relation-timeline {
  list-style: none;
  margin: 18px 0 16px;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
}

.relation-timeline li {
  margin-bottom: 14px;
  border-left: 2px solid transparent;
  margin-left: -2px;
  padding-left: 12px;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.relation-timeline li.is-active {
  background: rgba(0, 0, 0, 0.04);
}

.relation-timeline li.tone-strong-warm {
  border-left-color: #3d9468;
}

.relation-timeline li.tone-warm {
  border-left-color: #7dcea0;
}

.relation-timeline li.tone-mixed {
  border-left-color: var(--gold);
}

.relation-timeline li.tone-strained {
  border-left-color: #e06a62;
}

.relation-timeline li.tone-strong-strained {
  border-left-color: #c44b44;
}

.relation-year {
  display: block;
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.relation-timeline p {
  margin-top: 3px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.drawer-more {
  font-size: 0.72rem;
}

.country-history {
  margin-top: 8px;
}

.relation-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.relation-links a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  font-size: 0.62rem;
  line-height: 1.3;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px 8px;
}

.relation-links a:hover {
  border-color: var(--gold);
}

.country-sources {
  margin-top: 4px;
}

.country-sources-label {
  margin: 0 0 6px;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
}

.country-sources .drawer-more {
  display: inline-block;
  margin-top: 10px;
}

.relation-sentiment {
  margin: 4px 0 14px;
  padding: 12px 10px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(125, 206, 160, 0.08), rgba(224, 106, 98, 0.06));
}

.relation-sentiment-title {
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
}

.relation-sentiment-hint {
  margin-top: 4px;
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--muted);
}

.relation-sentiment-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
}

.relation-sentiment-zero {
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.relation-sentiment-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.relation-sentiment-area {
  opacity: 0.85;
}

.relation-sentiment-tick {
  fill: var(--muted);
  font-size: 9px;
  text-anchor: middle;
}

.relation-sentiment-dot {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.4;
  cursor: pointer;
  transition: r 0.12s ease, stroke-width 0.12s ease;
}

.relation-sentiment-dot.is-active,
.relation-sentiment-dot:focus-visible {
  r: 6.5;
  stroke-width: 2.2;
}

.relation-sentiment-dot[data-tone="2"],
.relation-sentiment-dot[data-tone="1.5"] {
  stroke: #3d9468;
  fill: #dff5ea;
}

.relation-sentiment-dot[data-tone="-2"],
.relation-sentiment-dot[data-tone="-1.5"] {
  stroke: #c44b44;
  fill: #fdeceb;
}

.relation-sentiment-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.relation-focus.lane-page {
  width: 100%;
}

.relation-ride {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.relation-ride-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 2px 18px 6px;
}

.relation-ride-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.relation-ride-identity .avatar {
  flex: none;
  width: 56px;
  height: 56px;
}

.relation-ride-head .back {
  margin: 0;
}

.relation-ride-head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.relation-ride-readout {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px 16px;
  align-items: baseline;
  padding: 0 18px 8px;
}

.relation-ride-year {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  color: var(--gold);
}

.relation-ride-mood {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.relation-ride-mood[data-mood="tone-strong-warm"],
.relation-ride-mood[data-mood="tone-warm"] {
  color: #7dcea0;
}

.relation-ride-mood[data-mood="tone-strong-strained"],
.relation-ride-mood[data-mood="tone-strained"] {
  color: #e06a62;
}

.relation-ride-event,
.relation-ride-hint {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.relation-ride-links {
  grid-column: 1 / -1;
  min-height: 1.4rem;
}

.relation-ride-hint {
  grid-column: 1 / -1;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.relation-ride .country-sources {
  padding: 0 18px 12px;
}

.relation-ride-stage {
  position: relative;
  flex: 1;
  min-height: 420px;
}

.relation-ride-scroll {
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
}

.relation-ride-scroll:active {
  cursor: grabbing;
}

.relation-ride-track {
  position: relative;
}

.relation-ride-svg {
  display: block;
}

.relation-ride-sky {
  fill: transparent;
}

.relation-ride-zero {
  stroke: rgba(244, 239, 230, 0.28);
  stroke-dasharray: 5 7;
}

.relation-ride-path {
  fill: none;
  stroke: #f4efe6;
  stroke-width: 2.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.relation-ride-mark {
  fill: #f4efe6;
}

.relation-rider {
  position: absolute;
  left: 50%;
  z-index: 4;
  width: 128px;
  height: 78px;
  margin-left: -64px;
  margin-top: -36px;
  pointer-events: none;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35));
}

.relation-rider svg {
  position: relative;
  z-index: 1;
  display: block;
}

.rider-flag {
  position: absolute;
  top: 21px;
  z-index: 2;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border: 1.5px solid #1a1612;
  border-radius: 50%;
  background: #161410;
  color: #f4efe6;
  font-size: 0.48rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rider-flag-partner {
  left: 19px;
}

.rider-flag-center {
  left: 79px;
}

.rider-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.relation-rider[data-mood="tone-strong-warm"],
.relation-rider[data-mood="tone-warm"] {
  filter: drop-shadow(0 10px 12px rgba(61, 148, 104, 0.35));
}

.relation-rider[data-mood="tone-strong-strained"],
.relation-rider[data-mood="tone-strained"] {
  filter: drop-shadow(0 10px 12px rgba(196, 75, 68, 0.4));
}

.relation-ride-card {
  position: absolute;
  width: 220px;
  margin-left: -110px;
  padding: 8px 10px 10px;
  text-align: left;
  background: rgba(18, 16, 13, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.relation-ride-card::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: var(--stem);
  background: rgba(232, 196, 122, 0.35);
}

.relation-ride-card span {
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.relation-ride-card p {
  margin-top: 4px;
  font-size: 0.74rem;
  line-height: 1.4;
}

.relation-ride-card.is-now {
  border-color: var(--gold);
}

.relation-ride-card.tone-strong-warm,
.relation-ride-card.tone-warm {
  border-top: 2px solid #7dcea0;
}

.relation-ride-card.tone-strong-strained,
.relation-ride-card.tone-strained {
  border-top: 2px solid #e06a62;
}

@media (max-width: 700px) {
  .relation-ride-readout {
    grid-template-columns: auto 1fr;
  }

  .relation-ride-event {
    grid-column: 1 / -1;
  }

  .relation-ride-stage {
    min-height: 520px;
  }
}

.country-history.is-page {
  margin-top: 12px;
}

.country-history.is-page .relation-sentiment {
  padding: 16px 14px 14px;
}

.country-history.is-page .relation-timeline {
  margin-top: 24px;
  padding-left: 18px;
  columns: 1;
}

.country-history.is-page .relation-timeline li {
  break-inside: avoid;
  margin-bottom: 18px;
}

.country-history.is-page .relation-timeline p {
  font-size: 0.88rem;
  line-height: 1.55;
}

.country-history.is-page .relation-links a {
  font-size: 0.68rem;
}

@media (min-width: 900px) {
  .country-history.is-page .relation-timeline {
    columns: 2;
    column-gap: 28px;
  }
}

body[data-view="relation"] .views > button {
  opacity: 0.55;
}

@media (max-width: 800px) {
  .region-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .region-toggle {
    flex: none;
  }
}

.camp-label {
  position: absolute;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  pointer-events: none;
}

.node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 116px;
  animation: rise 0.7s ease both;
  animation-delay: calc(var(--i) * 35ms);
}

.web-stage.is-hub-field .node {
  z-index: 2;
}

.node-name {
  max-width: 112px;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.64rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node:hover .avatar,
.node:focus-visible .avatar,
.web-stage.is-hot .node.is-lit .avatar {
  transform: scale(1.05);
}

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 196, 122, 0.72);
  background: #161410;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.avatar-sm {
  width: 28px;
  height: 28px;
  border-width: 1px;
}

.avatar-md,
.avatar-lg {
  width: 72px;
  height: 72px;
}

.avatar-lg,
.node.is-center .avatar {
  width: 112px;
  height: 112px;
}

.web-stage .node {
  width: calc(var(--node, 72px) + 24px);
}

.web-stage .node-name {
  max-width: 100%;
  min-width: 0;
}

.web-stage.is-hub-field .node {
  width: max(calc(var(--node, 72px) + 36px), 8.5rem);
}

.web-stage.is-hub-field .node-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-width: 100%;
  max-height: 2.6em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.web-stage.is-hub-field.is-web-small .node-name {
  opacity: 0;
}

.web-stage.is-hub-field.is-web-small .node:hover .node-name,
.web-stage.is-hub-field.is-web-small .node:focus-visible .node-name {
  z-index: 4;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
  opacity: 1;
  background: var(--bg);
}

.web-stage .node:not(.is-center) .avatar {
  width: var(--node, 72px);
  height: var(--node, 72px);
}

.web-stage .node.is-center .avatar {
  width: var(--center, 104px);
  height: var(--center, 104px);
}

.web-stage .node.is-center::before {
  width: calc(var(--center, 104px) + 16px);
  height: calc(var(--center, 104px) + 16px);
  top: -8px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar.is-flag {
  border-radius: 50%;
  background: #161410;
}

.avatar.is-flag img {
  object-fit: cover;
  padding: 0;
  border-radius: 50%;
}

.web-stage .node.node-left,
.web-stage .node.node-right {
  width: var(--node, 72px);
}

.web-stage .node.node-left .node-name,
.web-stage .node.node-right .node-name {
  position: absolute;
  top: 50%;
  max-width: 160px;
  transform: translateY(-50%);
  white-space: nowrap;
}

.web-stage .node.node-right .node-name {
  left: calc(100% + 8px);
  text-align: left;
}

.web-stage .node.node-left .node-name {
  right: calc(100% + 8px);
  text-align: right;
}

.web-stage.is-quiet .node {
  animation: none;
}

.monogram {
  color: var(--gold);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.avatar-sm .monogram {
  font-size: 0.62rem;
  font-family: "IBM Plex Mono", monospace;
}

.node.camp-friend .avatar {
  border-color: #7dcea0;
  border-width: 3px;
}

.node.camp-orbit .avatar {
  border-color: rgba(232, 196, 122, 0.45);
}

.node.is-plot-hub {
  z-index: 3;
}

.node.is-plot-hub .avatar {
  box-shadow: 0 0 0 3px rgba(232, 196, 122, 0.45);
}

.node.is-bubble {
  width: var(--bubble-w, 128px);
  max-width: none;
  gap: 0;
}

.node-bubble {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1.5px solid rgba(232, 196, 122, 0.5);
  background: rgba(18, 16, 13, 0.94);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.node.camp-friend .node-bubble {
  border-color: #7dcea0;
}

.node.camp-enemy .node-bubble {
  border-color: #e06a62;
}

.node.camp-orbit .node-bubble {
  border-color: rgba(232, 196, 122, 0.38);
  color: var(--muted);
}

.node.is-topic-hub {
  width: var(--topic-w, 154px);
  z-index: 2;
}

.node.camp-topic .node-bubble.topic-hub {
  border-color: rgba(232, 196, 122, 0.72);
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  max-width: none;
}

.node.is-bubble.is-selected .node-bubble,
.node.is-center.is-selected .avatar {
  box-shadow: 0 0 0 3px rgba(232, 196, 122, 0.8);
}

.node.is-selected {
  z-index: 3;
}

.policy-drawer .ties {
  display: grid;
  gap: 8px;
}

.policy-drawer .ties li {
  max-width: none;
}

.drawer-heading {
  margin: 18px 0 8px;
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.drawer-beat {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
}

.drawer-beat time {
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drawer-beat strong {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
}

.drawer-beat .beat-tease {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.drawer-links {
  margin-top: 8px;
}

.web-lines path[data-kind="topic"] {
  stroke: rgba(232, 196, 122, 0.32);
  stroke-width: 1.25;
}

.topic-label {
  position: absolute;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0.7;
  white-space: nowrap;
}

.hub-region {
  position: absolute;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid rgba(232, 196, 122, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(232, 196, 122, 0.045), transparent 44%),
    rgba(18, 16, 12, 0.52);
  pointer-events: none;
  z-index: 0;
}

.hub-region[data-kind="shared"] {
  border-style: dashed;
  background:
    radial-gradient(circle at center, rgba(232, 196, 122, 0.07), transparent 68%),
    rgba(18, 16, 12, 0.34);
}

.hub-region.is-active {
  border-color: rgba(232, 196, 122, 0.62);
  box-shadow: inset 0 0 0 1px rgba(232, 196, 122, 0.12);
}

.hub-region h2 {
  margin: 0;
  color: var(--gold);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hub-region span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.topic-bar {
  margin: 0 0 8px;
}

.web-stage.is-hot .node {
  opacity: 0.22;
}

.web-stage.is-hot .node.is-lit {
  opacity: 1;
}

.web-stage.is-hot .node.is-lit.camp-friend .avatar,
.web-stage.is-hot .node.is-lit.camp-friend .node-bubble {
  box-shadow: 0 0 0 5px rgba(125, 206, 160, 0.35);
}

.web-stage.is-hot .node.is-lit.camp-enemy .avatar,
.web-stage.is-hot .node.is-lit.camp-enemy .node-bubble {
  box-shadow: 0 0 0 5px rgba(224, 106, 98, 0.4);
}

.web-stage.is-hot .node.is-lit.is-center .avatar {
  box-shadow: 0 0 0 5px rgba(232, 196, 122, 0.35);
}

.node.is-center::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 130px;
  height: 130px;
  border: 1px dashed rgba(232, 196, 122, 0.45);
  border-radius: 50%;
  pointer-events: none;
  animation: spin-ring 32s linear infinite;
}

.focus {
  width: min(1040px, 100%);
  margin: 8px auto 0;
}

.focus.relation-focus,
.focus.lane-page {
  width: 100%;
  max-width: none;
  margin: 0;
}

.lane-page {
  width: 100%;
  max-width: none;
  margin: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.lane-page .back,
.focus-head .back,
.relation-ride-head .back,
button.back {
  display: block;
  width: max-content;
  max-width: 100%;
  align-self: flex-start;
  margin: 0 0 6px;
  text-align: left;
}

.lane-page .focus-head,
.lane-page .timeline-head {
  width: 100%;
  margin: 0;
  padding: 8px 18px 0;
  flex: 0 0 auto;
}

.lane-page h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.lane-page .focus-head .avatar,
.lane-page .focus-head .avatar img {
  width: 64px;
  height: 64px;
}

.lane-page .role,
.lane-page .ties {
  margin-top: 6px;
}

button.back,
.drawer-close {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

button.back {
  display: block;
  width: max-content;
  margin: 0 0 6px;
  text-align: left;
}

button.back:hover,
.drawer-close:hover {
  border: 0;
  background: transparent;
  color: var(--ink);
}

.focus-head,
.timeline-head {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 22px;
  text-align: left;
}

.focus-head .back,
.timeline-head .back {
  flex: 1 0 100%;
}

.role {
  margin-top: 8px;
  font-size: 0.78rem;
  max-width: 58ch;
}

.ties {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ties li {
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.45;
  padding: 6px 8px;
}

.ties li.is-now {
  color: var(--ink);
  border-color: var(--gold);
}

.timeline-head {
  align-items: end;
  justify-content: space-between;
}

.search {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: min(280px, 100%);
}

.search span {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.search input {
  background: rgba(12, 11, 9, 0.65);
  min-width: 0;
}

.search input::placeholder {
  color: var(--muted);
}

.lane-view {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.lane-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 8px 18px 6px;
}

.lane-tools .rail-note {
  margin: 0;
  text-align: left;
  max-width: none;
  flex: 1;
}

.lane-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.lane-button,
.lane-readout {
  border: 1px solid var(--line-strong);
  min-height: 32px;
  color: var(--ink);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lane-button {
  padding: 4px 12px;
}

.lane-button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lane-readout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 8px;
  color: var(--gold);
}

.lane-zoom {
  width: min(180px, 22vw);
  accent-color: var(--gold);
  cursor: pointer;
}

.lane-scroll {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  cursor: grab;
}

.lane-scroll.is-panning {
  cursor: grabbing;
}

.lane-sizer {
  position: relative;
}

.lane {
  --lane-axis: 50%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: stretch;
  height: var(--lane-h, 640px);
  width: max-content;
  margin: 0;
  padding: 0 36px;
  list-style: none;
  overflow: hidden;
  transform-origin: 0 0;
}

.lane::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--lane-axis);
  height: 4px;
  border-radius: 4px;
  transform: translateY(-50%);
  transform-origin: left center;
  background: linear-gradient(
    to right,
    #e8c47a 0%,
    #c9a36a 32%,
    #9b9488 68%,
    #e8c47a 100%
  );
  animation: lane-grow 1.1s ease-out;
}

.lane-year {
  position: relative;
  z-index: 1;
  flex: 0 0 84px;
}

.lane-year span {
  position: absolute;
  left: 50%;
  top: calc(var(--lane-axis) - 28px);
  transform: translateX(-50%);
  background: var(--bg);
  color: var(--gold);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  line-height: 1;
  padding: 2px 8px;
  white-space: nowrap;
}

.lane-event {
  position: relative;
  flex: 0 0 280px;
  height: 100%;
}

.lane-event.is-selected {
  flex-basis: 440px;
}

.lane-event.is-selected .lane-card {
  gap: 4px;
  overflow: visible;
}

.lane-event.is-selected .lane-mark,
.lane-event.is-selected .lane-mark .avatar {
  width: 56px;
  height: 56px;
}

.lane-event.is-selected .lane-hit {
  gap: 3px;
}

.lane-event.is-selected .lane-hit strong {
  font-size: 1.05rem;
}

.lane-event.is-selected .lane-more p {
  font-size: 0.68rem;
  line-height: 1.35;
}

.lane-event.is-selected .faces {
  margin-top: 6px;
}

.lane-event.is-selected .event-links {
  margin-top: 8px;
  gap: 6px;
}

.lane-event.is-selected .event-links a,
.lane-event.is-selected .event-links button {
  min-height: 0;
  padding: 5px 8px;
}

.lane-card {
  position: absolute;
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  overflow: auto;
  text-align: center;
}

.side-above .lane-card {
  bottom: calc(100% - var(--lane-axis) + 14px);
  max-height: calc(var(--lane-axis) - 28px);
}

.side-below .lane-card {
  top: calc(var(--lane-axis) + 14px);
  max-height: calc(100% - var(--lane-axis) - 28px);
}

.lane-event::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 18px;
  background: var(--gold);
  transform: translateX(-50%);
}

.side-above.lane-event::before {
  top: calc(var(--lane-axis) - 18px);
}

.side-below.lane-event::before {
  top: var(--lane-axis);
}

.lane-mark {
  width: 76px;
  height: 76px;
  padding: 0;
  border-radius: 50%;
}

.lane-mark .avatar {
  width: 76px;
  height: 76px;
  border-width: 3px;
}

.lane-dot {
  position: absolute;
  left: 50%;
  top: var(--lane-axis);
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 5px var(--bg);
  transform: translate(-50%, -50%);
}

.lane-hit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.lane-rule {
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--gold);
}

.lane-hit time,
.lane-hit em {
  color: var(--gold);
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lane-hit strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.beat-tease {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.lane-mark:hover .avatar,
.lane-mark:focus-visible .avatar,
.lane-event.is-selected .lane-mark .avatar {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(232, 196, 122, 0.35);
}

.lane-more {
  width: 100%;
}

.lane-more p {
  color: var(--ink);
  font-size: 0.74rem;
  line-height: 1.55;
}

.lane-more .faces,
.lane-more .event-links {
  justify-content: center;
}

.faces {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
}

.face-link {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 50%;
}

.face-link:hover .avatar,
.face-link:focus-visible .avatar {
  border-color: var(--gold);
}

.face-link .avatar {
  width: 28px;
  height: 28px;
}

.detail-names {
  color: var(--muted) !important;
  font-size: 0.7rem !important;
}

.event-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.event-links a,
.event-links button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.66rem;
  text-decoration: none;
}

.event-links a:hover,
.event-links button:hover,
.back:hover,
.views > button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.link-type {
  border-left: 1px solid currentColor;
  color: var(--muted);
  padding-left: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.56rem;
}

.empty,
.loading {
  text-align: center;
  padding: 48px 16px;
}

.loading-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1s ease-in-out infinite alternate;
}

.site-footer {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 8px 0 40px;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credits {
  margin-top: 14px;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}

.credits summary {
  cursor: pointer;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.62rem;
}

.credits ul {
  list-style: none;
  margin-top: 12px;
}

.credits li {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.6;
  margin: 4px 0;
}

.credits a {
  color: var(--ink);
}

.toast {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: calc(18px + var(--safe-bottom));
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg);
  font-size: 0.72rem;
  padding: 10px 14px;
}

.spine-view {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 0 12px calc(28px + var(--safe-bottom));
}

.spine-view .rail-note {
  text-align: left;
  margin: 0 0 12px;
  max-width: none;
}

.spine {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 4px 0 12px;
}

.spine::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    to bottom,
    #e8c47a 0%,
    #c9a36a 32%,
    #9b9488 68%,
    #e8c47a 100%
  );
}

.spine-year {
  position: relative;
  z-index: 1;
  padding: 12px 0 8px 64px;
}

.spine-year span {
  color: var(--gold);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.spine-event {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  margin: 0 0 18px;
}

.spine-mark {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
}

.spine-mark .avatar {
  width: 56px;
  height: 56px;
  border-width: 3px;
}

.spine-copy {
  min-width: 0;
  padding-top: 4px;
}

.spine-hit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  padding: 4px 0;
  text-align: left;
}

.spine-hit time,
.spine-hit em {
  color: var(--gold);
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spine-hit strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.spine-more {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
}

.spine-more p {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.6;
}

.spine-event.is-selected .spine-mark .avatar {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(232, 196, 122, 0.35);
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 3;
  width: 100%;
  border: 0;
  background: rgba(12, 11, 9, 0.55);
}

.relations-lists {
  display: grid;
  gap: 18px;
}

.relations-group h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.relations.is-list .chip-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.relations.is-list .country-chip {
  width: 100%;
  max-width: none;
  min-height: 48px;
  padding: 8px 12px 8px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.relations.is-list .country-chip .avatar {
  width: 40px;
  height: 40px;
}

.relations.is-list .chip-name {
  font-size: 0.92rem;
  white-space: normal;
}

body[data-view="person"],
body[data-view="relation"],
body[data-view="timeline"] , body[data-view="chronology"] {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body[data-view="person"] .mast,
body[data-view="relation"] .mast,
body[data-view="timeline"] .mast , body[data-view="chronology"] .mast {
  width: 100%;
  padding: 10px 18px 0;
}

body[data-view="person"] .status,
body[data-view="relation"] .status,
body[data-view="timeline"] .status , body[data-view="chronology"] .status {
  margin-bottom: 2px;
  font-size: 0.62rem;
}

body[data-view="person"] h1,
body[data-view="relation"] h1,
body[data-view="timeline"] h1 , body[data-view="chronology"] h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

body[data-view="person"] .mark,
body[data-view="relation"] .mark,
body[data-view="timeline"] .mark, body[data-view="chronology"] .mark,
body[data-view="person"] .lede,
body[data-view="relation"] .lede,
body[data-view="timeline"] .lede , body[data-view="chronology"] .lede {
  display: none;
}

body[data-view="person"] .views,
body[data-view="relation"] .views,
body[data-view="timeline"] .views , body[data-view="chronology"] .views {
  margin-top: 6px;
}

body[data-view="person"] .views > button,
body[data-view="relation"] .views > button,
body[data-view="timeline"] .views > button , body[data-view="chronology"] .views > button {
  min-height: 32px;
  padding: 4px 12px;
}

body[data-view="relation"] .focus,
body[data-view="relation"] .relation-ride,
body[data-view="relation"] .relation-ride-stage,
body[data-view="relation"] .relation-ride-scroll,
body[data-view="timeline"] .lane-view, body[data-view="chronology"] .lane-view,
body[data-view="timeline"] .lane-scroll , body[data-view="chronology"] .lane-scroll {
  width: 100%;
  max-width: none;
}

body[data-view="person"] .app,
body[data-view="relation"] .app,
body[data-view="timeline"] .app , body[data-view="chronology"] .app {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body[data-view="person"] .site-footer,
body[data-view="relation"] .site-footer,
body[data-view="timeline"] .site-footer , body[data-view="chronology"] .site-footer {
  position: absolute;
  right: 14px;
  bottom: 8px;
  width: auto;
  padding: 0;
  text-align: right;
  z-index: 2;
}

body[data-view="person"] #footer-note,
body[data-view="relation"] #footer-note,
body[data-view="timeline"] #footer-note , body[data-view="chronology"] #footer-note {
  display: none;
}

body[data-view="movie-web"] {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body[data-view="movie-web"] .mast {
  width: 100%;
  padding: 10px 18px 0;
}

body[data-view="movie-web"] .status {
  margin-bottom: 2px;
  font-size: 0.62rem;
}

body[data-view="movie-web"] h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

body[data-view="movie-web"] .mark,
body[data-view="movie-web"] .lede {
  display: none;
}

body[data-view="movie-web"] .views {
  margin-top: 6px;
}

body[data-view="movie-web"] .views > button {
  min-height: 32px;
  padding: 4px 12px;
}

body[data-view="movie-web"] .app {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body[data-view="movie-web"] .site-footer {
  position: absolute;
  right: 14px;
  bottom: 8px;
  width: auto;
  padding: 0;
  text-align: right;
  z-index: 2;
}

body[data-view="movie-web"] #footer-note {
  display: none;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes appear {
  to { opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes field-node-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.75);
  }
}

@keyframes field-lines-in {
  from { opacity: 0; }
}

@keyframes spin-ring {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes lane-grow {
  from { transform: translateY(-50%) scaleX(0); }
  to { transform: translateY(-50%) scaleX(1); }
}

@keyframes pulse {
  to { opacity: 0.25; }
}

@media (max-width: 900px) {
  .web-hint {
    display: block;
  }
}

@media (min-width: 769px) and (max-height: 700px) {
  body[data-view="pick"] .mast {
    padding-top: 28px;
  }

  body[data-view="pick"] h1 {
    font-size: clamp(3.6rem, 11vw, 5.4rem);
  }

  body[data-view="pick"] .mark {
    width: min(220px, 50vw);
    margin: 2px auto 4px;
  }

  body[data-view="pick"] .plot-card {
    padding: 5px 10px;
  }

  body[data-view="pick"] .site-footer {
    display: none;
  }
}

@media (max-width: 768px) {
  .mast {
    width: min(760px, calc(100% - 24px));
    padding-top: calc(20px + var(--safe-top));
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4.4rem);
  }

  .lede {
    font-size: 0.88rem;
    max-width: 36ch;
  }

  .views {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 8px;
    margin-top: 18px;
  }

  .plot-switch {
    margin-right: 0;
  }

  .views > button,
  .plot-switch select,
  .choice-button,
  .choice-option,
  .back,
  .search input,
  .event-links a,
  .event-links button,
  .year-marks button,
  .region-toggle,
  .lane-button {
    min-height: 44px;
  }

  .views > button {
    padding: 8px 12px;
  }

  .chrono-tv-switch input[type="checkbox"] {
    min-height: 16px;
    width: 16px;
    height: 16px;
  }

  body[data-view="pick"] {
    max-height: none;
    overflow: auto;
  }

  body[data-view="pick"] h1 {
    font-size: clamp(3.4rem, 17vw, 5.4rem);
  }

  body[data-view="pick"] .mark {
    width: min(220px, 70vw);
    margin: 2px auto 4px;
  }

  body[data-view="pick"] .lede {
    font-size: 0.88rem;
    max-width: 46ch;
  }

  .gallery-search {
    min-height: 44px;
  }

  .plot-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-head,
  .timeline-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .search,
  .search input {
    width: 100%;
  }

  .lane-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .lane-controls {
    justify-content: flex-end;
  }

  .lane-zoom {
    width: 120px;
  }

  .app {
    width: min(1120px, calc(100% - 20px));
  }

  .site-footer {
    width: min(760px, calc(100% - 24px));
    padding-bottom: calc(24px + var(--safe-bottom));
  }

  body[data-view="web"] .mast,
  body[data-view="person"] .mast,
  body[data-view="timeline"] .mast , body[data-view="chronology"] .mast {
    width: 100%;
    padding: calc(8px + var(--safe-top)) 12px 8px;
  }

  body[data-view="web"] .mast {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(12, 11, 9, 0.94);
    backdrop-filter: blur(10px);
  }

  body[data-view="web"] h1,
  body[data-view="person"] h1,
  body[data-view="timeline"] h1 , body[data-view="chronology"] h1 {
    font-size: 1.45rem;
    line-height: 1.05;
  }

  body[data-view="web"] .views,
  body[data-view="person"] .views,
  body[data-view="timeline"] .views , body[data-view="chronology"] .views {
    margin-top: 8px;
  }

  body[data-view="web"] .views > button,
  body[data-view="person"] .views > button,
  body[data-view="timeline"] .views > button , body[data-view="chronology"] .views > button {
    min-height: 44px;
    padding: 8px 12px;
  }

  body[data-view="web"] .web-key {
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 4px 0;
  }

  body[data-view="web"] .web-hint {
    margin: 0 auto 8px;
    padding: 0 8px;
  }

  body[data-view="web"] .web-scroll {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
  }

  body[data-view="web"] .web-stage {
    min-width: 100%;
  }

  body[data-view="web"] .web.is-hub-field .web-scroll.is-hub-field {
    overflow: hidden;
    touch-action: manipulation;
  }

  body[data-view="web"] .web.is-hub-field .web-stage {
    min-width: 0;
  }

  body[data-view="web"] .web.is-hub-field .hub-region {
    padding: 12px 14px;
    border-radius: 18px;
  }

  body[data-view="web"] .web.is-hub-field .node-name {
    max-width: 94px;
    overflow: visible;
    font-size: 0.62rem;
    line-height: 1.2;
    text-overflow: unset;
    white-space: normal;
  }

  body[data-view="web"] .web.is-compact-map .web-scroll.is-map {
    flex: 0 0 min(46dvh, 380px);
    min-height: 220px;
    max-height: min(46dvh, 380px);
    margin: 0 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
      radial-gradient(ellipse at center, transparent 42%, rgba(12, 11, 9, 0.4) 100%);
  }

  body[data-view="web"] .web.is-compact-map .web-stage .node {
    width: var(--node, 72px);
    gap: 0;
  }

  body[data-view="web"] .web.is-compact-map .web-people {
    display: grid;
    gap: 16px;
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 12px calc(16px + var(--safe-bottom));
  }

  body[data-view="web"] .web.is-compact-map .web-people-group h3 {
    font-size: 0.92rem;
    margin-bottom: 8px;
  }

  body[data-view="web"] .web.is-compact-map .chip-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .web-person {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 8px 12px 8px 8px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel);
    text-align: left;
  }

  .web-person .avatar {
    width: 40px;
    height: 40px;
    flex: none;
  }

  .web-person.camp-friend .avatar {
    border-color: #7dcea0;
    border-width: 2px;
  }

  .web-person.camp-enemy .avatar {
    border-color: #e06a62;
    border-width: 2px;
  }

  .web-person .chip-name {
    font-size: 0.92rem;
    white-space: normal;
    line-height: 1.3;
  }

  body[data-view="web"] .web-scroll.is-camps .node-name {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: min(42vw, 148px);
    line-height: 1.25;
  }

  body[data-view="web"] .web-scroll.is-camps .node.node-left,
  body[data-view="web"] .web-scroll.is-camps .node.node-right {
    width: var(--node, 72px);
  }

  body[data-view="web"] .web-scroll.is-camps .node.node-left .node-name,
  body[data-view="web"] .web-scroll.is-camps .node.node-right .node-name {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    white-space: normal;
  }

  body[data-view="web"] .web-stage.is-bubbles .node.is-bubble {
    width: var(--bubble-w, 108px);
    max-width: none;
  }

  body[data-view="web"] .web-stage.is-bubbles .node.is-topic-hub {
    width: var(--topic-w, 108px);
  }

  body[data-view="web"] .web-stage.is-bubbles .node-bubble {
    font-size: 0.62rem;
    padding: 6px 8px;
  }

  body[data-view="web"] .topic-label {
    font-size: 0.5rem;
  }

  body[data-view="web"] .site-footer,
  body[data-board="regions"][data-view="web"] .site-footer {
    display: none;
  }

  body[data-view="person"],
  body[data-view="relation"],
  body[data-view="timeline"] , body[data-view="chronology"] {
    height: auto;
    min-height: 100dvh;
    overflow-x: clip;
    overflow-y: auto;
  }

  body[data-view="person"] .app,
  body[data-view="timeline"] .app , body[data-view="chronology"] .app {
    flex: none;
    display: block;
    width: 100%;
    padding: 0 0 8px;
  }

  body[data-view="web"] .status,
  body[data-view="person"] .status,
  body[data-view="timeline"] .status , body[data-view="chronology"] .status {
    display: none;
  }

  body[data-view="timeline"] .timeline-head, body[data-view="chronology"] .timeline-head,
  body[data-view="person"] .focus-head {
    position: sticky;
    top: var(--safe-top);
    z-index: 2;
    margin: 0;
    padding: 8px 12px 10px;
    background: rgba(12, 11, 9, 0.94);
    backdrop-filter: blur(10px);
  }

  body[data-view="person"] .back,
  body[data-view="relation"] .back,
  .drawer-close {
    position: static;
    display: block;
    width: max-content;
    margin: 0 0 4px;
    padding: 0;
    min-height: 0;
    text-align: left;
    background: transparent;
  }

  body[data-view="person"] .focus-head {
    top: calc(var(--safe-top) + 2.75rem);
  }

  body[data-view="person"] .site-footer,
  body[data-view="timeline"] .site-footer , body[data-view="chronology"] .site-footer {
    position: static;
    width: min(760px, calc(100% - 24px));
    margin: 12px auto 0;
    padding: 8px 0 calc(24px + var(--safe-bottom));
    text-align: center;
  }

  body[data-view="person"] #footer-note,
  body[data-view="timeline"] #footer-note , body[data-view="chronology"] #footer-note {
    display: block;
    margin-bottom: 8px;
  }

  .year-bar {
    padding: 0 8px;
  }

  .year-drag,
  .year-marks {
    width: 100%;
  }

  .relations-hint {
    font-size: 0.68rem;
    line-height: 1.4;
    margin-bottom: 4px;
    padding: 0 8px;
  }

  .relations.is-list .web-key {
    padding: 0 8px;
  }

  .relations.is-list .relations-lists {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 12px 12px;
  }

  .relations.is-list .region-bar {
    flex: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 12px calc(10px + var(--safe-bottom));
    border-top: 1px solid var(--line);
    background: var(--bg);
  }

  .relation-drawer {
    top: auto;
    right: 0;
    left: 0;
    width: 100%;
    height: min(78dvh, 100%);
    border-left: 0;
    border-top: 1px solid var(--line-strong);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.4);
    padding: 16px 18px calc(28px + var(--safe-bottom));
  }

  .drawer-close {
    min-height: 44px;
    min-width: 44px;
  }
}

@media (max-width: 480px) {
  body[data-view="pick"] .mast,
  body[data-view="pick"] .app,
  body[data-view="pick"] .site-footer {
    width: calc(100% - 24px);
  }

  .plot-cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .mark path.arc,
  .mark circle,
  .web-lines path,
  .node,
  .relations-stage .country-chip,
  .relations-stage .web-lines,
  .node.is-center::before,
  .lane::before,
  .spine::before,
  .loading-dot {
    animation: none;
  }

  .mark path.arc,
  .web-lines path {
    stroke-dashoffset: 0;
  }

  .web-stage.is-hub-field {
    transition: none;
  }

  .mark circle,
  .node {
    opacity: 1;
  }
}

body[data-board="wars"] .views > button {
  display: none;
}

body[data-board="wars"][data-view="web"] .wars-board {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.wars-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 8px 18px;
  padding: 0 16px 10px;
}

.wars-map-wrap {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wars-map {
  width: 100%;
  height: 100%;
  display: block;
}

.wars-map .land {
  fill: rgba(244, 239, 230, 0.045);
  stroke: rgba(244, 239, 230, 0.16);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
}

.wars-map .land.is-chosen {
  stroke: var(--gold);
  stroke-width: 1.4;
}

.wars-map .land.is-fighting {
  fill: rgba(224, 106, 98, 0.22);
  stroke: rgba(224, 106, 98, 0.7);
}

.wars-map.is-focused .land.is-fighting {
  fill: rgba(244, 239, 230, 0.04);
  stroke: rgba(244, 239, 230, 0.14);
}

.wars-map.is-focused .land.is-lit {
  fill: rgba(224, 106, 98, 0.38);
  stroke: #e06a62;
}

.war-arc {
  fill: none;
  stroke: rgba(224, 106, 98, 0.72);
  stroke-width: 1.35;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  pointer-events: stroke;
  cursor: pointer;
}

.wars-map.is-focused .war-arc {
  stroke: rgba(224, 106, 98, 0.12);
}

.wars-map.is-focused .war-arc.is-lit {
  stroke: #e06a62;
  stroke-width: 2.1;
}

.war-dot {
  fill: var(--gold);
  stroke: #0c0b09;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
}

.wars-map.is-focused .war-dot {
  opacity: 0.28;
}

.wars-map.is-focused .war-dot.is-lit {
  opacity: 1;
}

.wars-list {
  min-height: 0;
  overflow: auto;
  padding: 2px 4px 28px 14px;
  border-left: 1px solid var(--line);
}

.span-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  align-items: center;
  width: min(760px, calc(100% - 24px));
  gap: 8px;
}

.span-row span {
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.span-row .year-drag {
  width: 100%;
}

.wars-kicker,
.wars-back {
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.wars-country {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.wars-frame {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.wars-back {
  margin-top: 8px;
  padding: 0;
}

.wars-sources {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.wars-sources a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.wars-sources a:hover {
  color: var(--gold);
}

.wars-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.war-card {
  padding: 8px 8px 9px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.war-card.is-lit {
  border-color: var(--line-strong);
  background: var(--panel);
}

.war-card a {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
}

.war-card a:hover,
.war-card.is-lit a {
  color: var(--gold);
}

.war-years,
.war-parties,
.wars-empty {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.war-years {
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.war-parties {
  margin-top: 2px;
}

@media (max-width: 768px) {
  body[data-layout="compact"] .year-hint {
    display: none;
  }

  body[data-layout="compact"] .year-marks {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px 10px;
    padding: 0 4px 4px;
  }

  body[data-layout="compact"] .year-marks button {
    flex: 0 0 auto;
  }

  body[data-layout="compact"] .year-drag {
    width: calc(100% - 8px);
  }

  body[data-board="wars"][data-view="web"] .mast {
    padding-bottom: 4px;
  }

  body[data-board="wars"] .year-bar {
    padding: 0 12px 6px;
    gap: 4px;
  }

  body[data-board="wars"] .year-hint {
    display: none;
  }

  body[data-board="wars"] .year-readout {
    font-size: 1.55rem;
  }

  body[data-board="wars"] .year-marks {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px 10px;
    padding-bottom: 4px;
  }

  body[data-board="wars"] .year-marks button {
    flex: 0 0 auto;
    padding: 0 6px;
  }

  body[data-board="wars"] .span-row {
    width: 100%;
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  body[data-board="wars"] .year-drag {
    height: 28px;
  }

  .wars-stage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 34dvh) minmax(0, 1fr);
    padding: 0 12px 8px;
  }

  .wars-list {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 10px 2px calc(20px + var(--safe-bottom));
  }

  .wars-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .war-card {
    min-height: 44px;
    padding: 10px 8px 12px;
  }

  .web.is-compact-topics {
    min-height: 0;
  }

  .web.is-compact-topics .web-scroll.is-topics {
    display: none;
  }

  .web.is-compact-topics .web-key {
    display: none;
  }

  .web.is-compact-topics .year-hint {
    display: none;
  }

  .web.is-compact-topics .topic-bar,
  body[data-layout="compact"] .topic-bar {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    width: 100%;
    padding: 0 12px 8px;
  }

  .web.is-compact-topics .topic-bar .region-toggle {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .web.is-compact-topics .web-people {
    display: grid;
    gap: 18px;
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 12px calc(20px + var(--safe-bottom));
  }

  .web.is-compact-topics .chip-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .web.is-compact-topics .web-person {
    width: 100%;
  }

  .policy-drawer {
    max-height: min(86dvh, 100%);
  }

  .policy-drawer .drawer-head h2 {
    overflow-wrap: anywhere;
  }

  .regulation-checklist {
    max-height: min(86dvh, 100%);
  }
}

/* Gun regulation board — relation-ride timeline */
body[data-board="regulation"][data-view="web"] .lede {
  display: none;
}

body[data-board="regulation"][data-view="web"] .regulation-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

body[data-board="regulation"] .regulation-board.relation-ride {
  flex: 1;
  min-height: 0;
}

body[data-board="regulation"][data-view="web"] .mast {
  padding-top: 6px;
}

body[data-board="regulation"][data-view="web"] h1 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

body[data-board="regulation"][data-view="web"] .views {
  margin-top: 4px;
}

body[data-board="regulation"] .regulation-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 0 18px 2px;
  padding: 4px 10px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-board="regulation"] .regulation-back svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--gold);
}

.regulation-kind-bar {
  padding: 0 18px 4px;
}

body[data-board="regulation"] .relation-ride-readout {
  gap: 2px 12px;
  padding-bottom: 4px;
}

body[data-board="regulation"] .relation-ride-year {
  font-size: 1.35rem;
}

body[data-board="regulation"] .regulation-change {
  font-size: 0.82rem;
  line-height: 1.35;
}

body[data-board="regulation"] .relation-ride-stage {
  min-height: 0;
}

body[data-board="regulation"] .relation-ride-card {
  width: 236px;
  margin-left: -118px;
  overflow: visible;
}

body[data-board="regulation"] .relation-ride-card p {
  white-space: normal;
  overflow: visible;
}

.regulation-ride-readout {
  grid-template-columns: auto auto minmax(0, 1fr);
}

.regulation-change {
  grid-column: 1 / -1;
  margin: 0;
  max-width: 68ch;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

.regulation-change em {
  display: block;
  margin-bottom: 2px;
  color: var(--gold);
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.regulation-case-nav {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.regulation-case-step {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.regulation-case-step:disabled {
  opacity: 0.35;
}

.regulation-case-count {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.regulation-ride-tools {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.regulation-stats-grid {
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.regulation-stat-figure {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
}

.regulation-stat-figure span {
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.regulation-stat-figure em {
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.regulation-stat-figure.is-empty {
  opacity: 0.4;
}

.regulation-ride-marker {
  position: absolute;
  left: 50%;
  z-index: 4;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  background: #f4efe6;
  border: 2px solid #1a1612;
  pointer-events: none;
}

.regulation-ride-marker.tone-reg-tight,
.regulation-ride-marker.tone-reg-tight-strong {
  background: #6ea3e8;
}

.regulation-ride-marker.tone-reg-loose,
.regulation-ride-marker.tone-reg-loose-strong {
  background: #e8c47a;
}

.regulation-ride-marker.tone-reg-mixed {
  background: #a8926e;
}

.regulation-board .relation-ride-mood[data-mood="tone-reg-tight"],
.regulation-board .relation-ride-mood[data-mood="tone-reg-tight-strong"] {
  color: #6ea3e8;
}

.regulation-board .relation-ride-mood[data-mood="tone-reg-loose"],
.regulation-board .relation-ride-mood[data-mood="tone-reg-loose-strong"] {
  color: #e8c47a;
}

.regulation-board .relation-ride-mood[data-mood="tone-reg-mixed"] {
  color: #a8926e;
}

.regulation-board .relation-ride-card.tone-reg-tight,
.regulation-board .relation-ride-card.tone-reg-tight-strong {
  border-top: 2px solid #6ea3e8;
}

.regulation-board .relation-ride-card.tone-reg-loose,
.regulation-board .relation-ride-card.tone-reg-loose-strong {
  border-top: 2px solid #e8c47a;
}

.regulation-board .relation-ride-card.tone-reg-mixed {
  border-top: 2px solid #a8926e;
}

.regulation-checklist {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 5;
  width: min(420px, 100%);
  height: 100dvh;
  max-height: none;
  overflow: auto;
}

.regulation-checklist-open {
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.regulation-checklist-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.regulation-checklist-rows li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.regulation-check-status {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.regulation-banner {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(168, 146, 110, 0.45);
  background: rgba(168, 146, 110, 0.08);
}

.regulation-banner h3 {
  margin: 0 0 4px;
  font-size: 0.78rem;
}

.regulation-banner p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
}

body[data-board="scotus"][data-view="web"] .app {
  overflow: auto;
  align-items: stretch;
}

.scotus-hub {
  width: 100%;
  max-width: none;
  min-width: 0;
  align-self: stretch;
  padding: 16px clamp(20px, 3vw, 48px) 32px;
}

.scotus-hub-head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 8px;
}

.scotus-hub-lede {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
  max-width: 72ch;
  margin: 0 0 18px;
}

.scotus-topic-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.scotus-topic-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  text-align: left;
  white-space: normal;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.scotus-topic-icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.scotus-topic-tile.is-soon .scotus-topic-icon {
  color: var(--muted);
}

.scotus-topic-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.scotus-topic-tile.is-live {
  border-color: rgba(110, 163, 232, 0.55);
  cursor: pointer;
}

.scotus-topic-tile.is-live:hover,
.scotus-topic-tile.is-live:focus-visible {
  border-color: #6ea3e8;
  background: rgba(110, 163, 232, 0.08);
}

.scotus-topic-tile.is-soon {
  opacity: 0.55;
  cursor: not-allowed;
}

.scotus-topic-label {
  min-width: 0;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: break-word;
}

@media (min-width: 980px) {
  .scotus-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .scotus-topic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1680px) {
  .scotus-topic-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .scotus-topic-grid {
    grid-template-columns: 1fr;
  }
}

.scotus-topic-badge {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.scotus-topic-badge.is-live-badge {
  color: #6ea3e8;
}

/* This board is a document (map, criteria, state checklist), so the page
   scrolls. The shared web view otherwise locks the viewport and clips the
   checklist that opens under the map. */
body[data-board="gun-state-laws"][data-view="web"] {
  height: auto;
  min-height: 100dvh;
  overflow-x: clip;
  overflow-y: auto;
}

body[data-board="gun-state-laws"][data-view="web"] .app {
  flex: none;
  display: block;
  height: auto;
  overflow: visible;
}

body[data-board="gun-state-laws"][data-view="web"] .gun-state-laws {
  display: block;
  height: auto;
  min-height: 0;
  overflow: visible;
}

body[data-board="gun-state-laws"][data-view="web"] .site-footer {
  position: static;
  width: min(1280px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 8px 16px calc(28px + var(--safe-bottom));
  text-align: center;
}

body[data-board="gun-state-laws"][data-view="web"] #footer-note {
  display: block;
}

body[data-board="gun-state-laws"] .gun-state-laws {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.gun-state-laws-split {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 8px;
}

.gun-state-laws-map-column {
  min-width: 0;
}

.gun-state-laws-map {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
}

.gun-state-laws-svg {
  display: block;
  width: 100%;
  height: auto;
}

.gun-state-shape {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 0.6;
  cursor: pointer;
  outline: none;
}

.gun-state-shape.is-lit {
  fill: #e2b15a;
  stroke: #f6e2b8;
}

.gun-state-shape.is-unknown {
  fill: rgba(226, 177, 90, 0.18);
  stroke: #e2b15a;
  stroke-dasharray: 3 2;
}

.gun-state-shape.is-dim {
  fill: rgba(255, 255, 255, 0.04);
  stroke: rgba(255, 255, 255, 0.16);
}

.gun-state-shape.is-selected {
  stroke: #ffffff;
  stroke-width: 1.8;
}

.gun-state-shape:focus-visible {
  stroke: #ffffff;
  stroke-width: 2;
}

.gun-state-laws-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  color: var(--muted);
}

.gun-state-laws-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gun-state-laws-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.gun-state-laws-swatch.is-lit {
  background: #e2b15a;
}

.gun-state-laws-swatch.is-unknown {
  background: rgba(226, 177, 90, 0.25);
  border-style: dashed;
  border-color: #e2b15a;
}

.gun-state-laws-swatch.is-dim {
  background: rgba(255, 255, 255, 0.06);
}

.gun-state-laws-toggle {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0;
  font-size: 0.84rem;
  color: var(--ink);
  cursor: pointer;
}

.gun-state-laws-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.gun-state-laws-toggle-title {
  font-weight: 600;
}

.gun-state-laws-filter-hint {
  margin: 0 0 4px;
  font-size: 0.58rem;
  line-height: 1.4;
  color: var(--muted);
}

.gun-state-laws-toggle-explain {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: normal;
}

.gun-state-laws-toggle:hover .gun-state-laws-toggle-explain,
.gun-state-laws-toggle:focus-within .gun-state-laws-toggle-explain {
  position: static;
  width: auto;
  height: auto;
  margin-top: 2px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  font-size: 0.62rem;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 400;
}

.gun-state-laws-gun-type-explain {
  font-size: 0.62rem;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 400;
}

.gun-state-laws-gun-type-explain {
  flex-basis: 100%;
  margin: 0;
}

.gun-state-laws-filters {
  max-height: calc(100vh - 140px);
  overflow: auto;
}

@media (max-width: 768px) {
  .gun-state-laws-filters {
    max-height: none;
  }
}

.gun-state-laws-filter-group {
  border: none;
  margin: 14px 0 0;
  padding: 0;
}

.gun-state-laws-filter-group legend {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
}

@media (max-width: 768px) {
  .gun-state-laws-split {
    grid-template-columns: 1fr;
  }
}

.gun-state-laws-head h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.gun-state-laws-lede,
.gun-state-laws-note,
.gun-state-laws-source {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.gun-state-laws-gun-type {
  border: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.gun-state-laws-gun-type legend {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0;
}

.gun-state-laws-gun-type-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--ink);
}

.gun-state-laws-filter-group h4 {
  margin: 16px 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.gun-state-laws-filters {
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}


.gun-state-laws-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.gun-state-laws-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.gun-state-laws-filter-field select {
  font: inherit;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
}

.gun-state-laws-summary {
  font-size: 0.85rem;
  color: var(--ink);
  margin: 12px 0;
}

.gun-state-laws-map-placeholder {
  margin: 20px 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

.gun-state-laws-map-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.gun-state-laws-chip {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(110, 163, 232, 0.15);
  border: 1px solid rgba(110, 163, 232, 0.35);
}

.gun-state-laws-detail {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  scroll-margin-top: 16px;
}

.gun-state-laws-detail-list dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 10px;
}

.gun-state-laws-detail-list dd {
  margin: 4px 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Marvel watch-order focus layout (Watch Before / Selected / Watch Next) */
::view-transition-old(chrono-focus),
::view-transition-new(chrono-focus) {
  animation-duration: 0.32s;
}

.focus.marvel-chronology {
  width: 100%;
  max-width: none;
  margin: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 16px 48px;
}

.chrono-focus-host {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  /* Equal gutters on both sides so a scrollbar never pulls the poster off center. */
  scrollbar-gutter: stable both-edges;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.chrono-focus-layout {
  --chrono-rail-count: 4;
  --chrono-md-h: 144px;
  --chrono-md-w: calc(var(--chrono-md-h) * 2 / 3);
  --chrono-rail-gap: 8px;
  --chrono-hero-h: clamp(260px, 40vh, 368px);
  --chrono-reach: clamp(64px, 16vh, 140px);
  /* Rows: headers, reach above the poster, poster, the same reach below,
     then the title and cast. Rows 2–4 are fixed lengths, so the poster
     never moves and a side stack centered on rows 2–4 centers on it. */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto var(--chrono-reach) var(--chrono-hero-h) var(--chrono-reach) auto;
  column-gap: clamp(28px, 4vw, 64px);
  row-gap: 12px;
  width: 100%;
  margin-inline: 0;
  padding: 20px clamp(24px, 4vw, 72px) 40px;
}

.chrono-rail,
.chrono-center {
  display: grid;
  grid-row: 1 / -1;
  grid-template-rows: subgrid;
  min-width: 0;
}

.chrono-rail {
  justify-items: center;
}

.chrono-rail--in {
  grid-column: 1;
  justify-self: end;
}

.chrono-rail--out {
  grid-column: 3;
  justify-self: start;
}

.chrono-rail > .chrono-rail-heading {
  grid-row: 1;
  align-self: end;
  margin: 0;
}

.chrono-rail-content {
  grid-row: 2 / 5;
  /* Long stacks start at the top of the reach and continue downward
     instead of pushing up into the headers. */
  align-self: start;
  align-self: safe center;
  display: flex;
  flex-direction: column;
}

.chrono-rail-heading {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 10px;
  text-align: center;
}

.chrono-rail-body {
  display: flex;
  flex-direction: column;
  gap: var(--chrono-rail-gap);
  overflow: visible;
}

.chrono-poster-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--chrono-rail-gap);
  overflow: visible;
}

.chrono-poster-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.22s ease;
}

.chrono-poster-card--in {
  justify-content: flex-end;
}

.chrono-poster-card--out {
  justify-content: flex-start;
}

.chrono-poster-card:hover,
.chrono-poster-card:focus-visible {
  transform: translateY(-2px);
}

.chrono-poster-bundle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: none;
  min-width: 0;
}

.chrono-arrow {
  display: flex;
  align-items: center;
  flex: none;
  width: 64px;
  min-width: 56px;
  max-width: 72px;
  height: 16px;
  color: var(--ink);
}

.chrono-arrow-shaft {
  flex: 1 1 auto;
  height: 3px;
  min-width: 18px;
  background: currentColor;
  border-radius: 2px;
}

.chrono-arrow-head {
  flex: none;
  width: 14px;
  height: 16px;
  margin-left: -1px;
  overflow: visible;
}

.chrono-arrow-shape {
  fill: currentColor;
}

.chrono-poster-card:hover .chrono-arrow,
.chrono-poster-card:focus-visible .chrono-arrow {
  color: var(--gold);
}

.chrono-poster {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(40, 36, 32, 0.95), rgba(18, 16, 14, 0.98));
  border: 1.5px solid var(--ink);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.chrono-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chrono-poster--sm {
  width: 40px;
  height: 56px;
  font-size: 0.62rem;
}

.chrono-poster--md {
  width: var(--chrono-md-w, 92px);
  height: var(--chrono-md-h, 138px);
  font-size: 0.78rem;
}

.chrono-poster--lg,
.chrono-poster--xl {
  height: var(--chrono-hero-h, min(330px, 41vh));
  width: calc(var(--chrono-hero-h, min(330px, 41vh)) * 2 / 3);
  font-size: 1.15rem;
  border-width: 2px;
}

.chrono-poster-acronym {
  font-family: var(--mono, "IBM Plex Mono", monospace);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
}

.chrono-poster-caption {
  max-width: var(--chrono-md-w, 108px);
  font-size: 0.62rem;
  line-height: 1.2;
  color: var(--muted);
  text-align: center;
}

.chrono-center {
  grid-column: 2;
  justify-self: center;
  justify-items: center;
  width: min(260px, 26vw);
}

.chrono-center-heading {
  grid-row: 2;
  align-self: end;
  margin: 0;
}

.chrono-selected {
  grid-row: 3;
  display: flex;
  justify-content: center;
}

.chrono-center-support {
  grid-row: 4 / 6;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.chrono-center-copy {
  text-align: center;
}

.chrono-center-copy h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.2;
}

.chrono-center-sub,
.chrono-era {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.chrono-note {
  margin: 0;
  max-width: 36rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #d8d0c4;
  text-align: center;
}

.chrono-essential {
  margin: 0;
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232, 196, 122, 0.45);
  color: var(--gold);
}

.chrono-characters {
  width: min(240px, 100%);
  margin-top: 4px;
}

.chrono-cast-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
}

.chrono-cast-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 52px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.chrono-cast-row .avatar,
.chrono-cast-avatar .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border-width: 1.5px;
}

.chrono-cast-row .avatar img,
.chrono-cast-avatar .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.chrono-cast-name {
  font-size: 0.56rem;
  line-height: 1.2;
  color: var(--muted);
  text-align: center;
  max-width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chrono-empty {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
  text-align: center;
  max-width: 12rem;
}

.chrono-order-strip {
  flex: none;
  width: 100%;
  padding: 2px 0 8px;
  border-bottom: 1px solid var(--line);
}

.chrono-order-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.chrono-order-heading {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.chrono-order-open {
  font-size: 0.72rem;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 2px 4px;
}

.chrono-order-bar--link {
  margin: 0;
  justify-content: flex-start;
}

.marvel-chronology-lane.focus.marvel-chronology {
  padding: 0 0 36px;
  overflow: hidden;
}

.chrono-lane-hit {
  flex: none;
  width: 100%;
}

.chrono-lane-hit .chrono-poster--lane {
  /* Half the lane, less room for the title and a scrollable cast, so the
     outer edge of every card stays on screen. */
  --chrono-lane-poster-h: clamp(110px, calc(var(--lane-h, 700px) / 2 - 230px), 260px);
  height: var(--chrono-lane-poster-h);
  width: calc(var(--chrono-lane-poster-h) * 2 / 3);
  margin-bottom: 8px;
}

.chrono-lane-hit strong {
  display: -webkit-box;
  max-width: 220px;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(1rem, 1.7vh, 1.2rem);
  line-height: 1.25;
  text-shadow: 0 1px 0 var(--bg);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.marvel-chronology-lane .side-above .chrono-lane-hit,
.marvel-chronology-lane .side-above .lane-card {
  flex-direction: column-reverse;
}

.chrono-lane-event .lane-card {
  overflow: visible;
}

.chrono-lane-cast {
  max-width: 280px;
  justify-content: center;
  gap: 6px 8px;
}

.chrono-lane-event .chrono-lane-cast {
  flex: none;
  width: 100%;
  max-width: 100%;
  max-height: 92px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.chrono-lane-cast .chrono-cast-avatar {
  width: 40px;
  min-width: 0;
}

.chrono-lane-cast .chrono-cast-name {
  max-width: 40px;
}

.chrono-lane-cast .avatar,
.chrono-lane-cast .chrono-cast-avatar .avatar {
  width: 32px;
  height: 32px;
}

.chrono-lane-event {
  flex-basis: 300px;
}

.chrono-lane-event.is-selected {
  flex-basis: 360px;
}

.chrono-story-card {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  padding-left: 48px;
}

.chrono-story-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 6px;
  border-radius: 10px;
}

.chrono-story-card.is-active .chrono-story-hit {
  border: 1px solid rgba(232, 196, 122, 0.45);
  background: rgba(232, 196, 122, 0.08);
}

.chrono-story-card .chrono-poster--md {
  width: 160px;
  height: 240px;
}

.chrono-story-card .chrono-lane-cast {
  max-width: none;
  max-height: 132px;
  justify-content: flex-start;
  margin: 8px 0 0 122px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.chrono-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  max-height: 7.6rem;
  overflow: auto;
  padding-bottom: 2px;
  scrollbar-color: var(--line-strong) transparent;
}

.chrono-era-label {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 4px 0 2px;
}

.chrono-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  max-width: 16rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.66rem;
  line-height: 1.2;
}

.chrono-chip-num {
  font-family: var(--mono, "IBM Plex Mono", monospace);
  color: var(--muted);
  font-size: 0.58rem;
}

.chrono-chip-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chrono-chip.is-active {
  border-color: rgba(232, 196, 122, 0.55);
  background: rgba(232, 196, 122, 0.12);
  color: var(--gold);
}

.chrono-chip:hover,
.chrono-chip:focus-visible {
  border-color: rgba(232, 196, 122, 0.4);
}

.marvel-chronology-index {
  overflow: auto;
  padding: 8px 20px 64px;
}

.chrono-index-head {
  width: min(720px, 100%);
  margin: 0 auto 16px;
  text-align: center;
}

.chrono-index-head h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.chrono-index-lede {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.chrono-index-list {
  width: min(720px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chrono-index-group .chrono-era-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.72rem;
}

.chrono-index-ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chrono-index-button {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.chrono-index-item.is-active .chrono-index-button,
.chrono-index-button[aria-current="true"] {
  border-color: rgba(232, 196, 122, 0.45);
  background: rgba(232, 196, 122, 0.08);
}

.chrono-spine-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chrono-spine-num {
  font-family: var(--mono, "IBM Plex Mono", monospace);
  font-size: 0.68rem;
  color: var(--muted);
}

.chrono-spine-title {
  font-size: 0.88rem;
  line-height: 1.3;
}

.movie-web {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 4px 0 28px;
}

.movie-web-note {
  margin: 0 0 12px;
  padding: 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.movie-web-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
}

.movie-web-stage {
  position: relative;
}

.movie-web-edges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.movie-web-edge {
  fill: none;
  stroke: rgba(232, 196, 122, 0.78);
  stroke-width: 2;
}

.movie-web-era {
  position: absolute;
  margin: 0;
  color: var(--gold);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: visible;
}

.movie-web-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  text-align: center;
}

.movie-web-card .chrono-poster--web {
  width: 100%;
  height: var(--movie-web-poster-h, 282px);
  border-radius: 8px;
}

.movie-web-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.92rem;
  line-height: 1.2;
  max-height: 2.4em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-web-card.is-active .chrono-poster--web {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(232, 196, 122, 0.45);
}

.movie-web-card:hover .movie-web-title,
.movie-web-card:focus-visible .movie-web-title {
  color: var(--gold);
}

@media (max-width: 768px) {
  .focus.marvel-chronology {
    overflow: auto;
    padding: 8px 12px 48px;
  }

  .chrono-focus-host {
    overflow: visible;
    min-height: 0;
    flex: none;
  }

  .chrono-focus-layout {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
    gap: 20px;
    padding: 12px 0 20px;
  }

  .chrono-rail,
  .chrono-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .chrono-rail > .chrono-rail-heading,
  .chrono-center-heading {
    align-self: center;
    margin: 0 0 10px;
  }

  .chrono-rail-content {
    width: 100%;
    align-items: center;
  }

  .chrono-rail--in {
    order: 2;
  }

  .chrono-center {
    order: 1;
    gap: 8px;
  }

  .chrono-rail--out {
    order: 3;
  }

  .chrono-poster-card--in,
  .chrono-poster-card--out {
    justify-content: center;
  }

  .chrono-arrow {
    display: none;
  }

  .chrono-poster--md {
    width: 72px;
    height: 108px;
  }

  .chrono-poster-stack {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .chrono-chip-cloud {
    max-height: none;
  }

  .marvel-chronology-lane.focus.marvel-chronology {
    overflow: visible;
    padding: 8px 12px 48px;
  }

  body[data-view="movie-web"] {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  body[data-view="movie-web"] .app {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
  }

  body[data-view="movie-web"] .movie-web {
    min-height: 0;
    flex: 1;
  }

  body[data-view="movie-web"] .site-footer {
    position: static;
    width: min(760px, calc(100% - 24px));
    margin: 12px auto 0;
    padding: 8px 0 calc(24px + var(--safe-bottom));
    text-align: center;
  }

  body[data-view="movie-web"] #footer-note {
    display: block;
  }
}

/* U.S. Presidential Doctrines — one-window comparison */
body[data-board="doctrine-summary"][data-view="web"] .doctrine-compare {
  flex: 1;
  min-height: 0;
  width: min(1180px, calc(100% - 20px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 2px 0 10px;
}

.doctrine-compare-themes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 2px 8px 8px;
}

.doctrine-compare-theme {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.doctrine-compare-theme.is-active {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
}

.doctrine-compare-question {
  margin: 0 auto 10px;
  max-width: 68ch;
  text-align: center;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.4;
}

.doctrine-compare-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 12px;
  padding: 0 8px;
}

.doctrine-compare-list {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 2px;
}

.doctrine-compare-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.doctrine-compare-row.is-active {
  border-color: var(--gold);
  background: var(--panel-hover);
}

.doctrine-compare-row-media,
.doctrine-compare-detail-media {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.doctrine-compare-row-media img,
.doctrine-compare-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doctrine-compare-monogram {
  font-size: 0.72rem;
  color: var(--muted);
}

.doctrine-compare-row-copy strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.doctrine-compare-row-copy span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.doctrine-compare-detail {
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  padding: 18px 20px 22px;
}

.doctrine-compare-detail-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.doctrine-compare-detail-media {
  width: 72px;
  height: 72px;
  flex: none;
}

.doctrine-compare-kicker {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.doctrine-compare-detail h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 560;
  line-height: 1.1;
}

.doctrine-compare-doctrine {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.doctrine-compare-contrast {
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.45;
}

.doctrine-compare-summary {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.doctrine-compare-source {
  color: var(--gold);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 768px) {
  .doctrine-compare-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .doctrine-compare-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .doctrine-compare-row {
    min-width: 240px;
    align-items: start;
  }
}
