:root {
  --ink: #172b42;
  --ink-soft: #526176;
  --paper: #f7f2e9;
  --paper-deep: #e9e1d3;
  --page: #ebe6dc;
  --navy: #12263d;
  --navy-soft: #1d3854;
  --teal: #2d7774;
  --coral: #e17d5f;
  --yellow: #f4c46c;
  --line: rgba(23, 43, 66, 0.16);
  --shadow: 0 16px 38px rgba(18, 38, 61, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

.wrap {
  width: min(1280px, calc(100% - 72px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 10px;
  left: 12px;
  padding: 8px 12px;
  color: var(--paper);
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  color: var(--paper);
  background: var(--navy);
}

.hero-inner {
  padding-block: 22px 32px;
}

.topbar,
.hero-candidates-heading,
.board-meta,
.candidate-heading,
.selection-tray-head,
.source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  padding-bottom: 17px;
  color: rgba(247, 242, 233, 0.72);
  border-bottom: 1px solid rgba(247, 242, 233, 0.24);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.wordmark {
  color: var(--paper);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1.24fr);
  align-items: center;
  gap: 48px;
  padding-block: 46px 38px;
}

.eyebrow,
.section-kicker,
.candidate-type,
.tray-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker {
  color: var(--teal);
}

.hero .eyebrow {
  color: var(--yellow);
}

.hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(2.7rem, 5.6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1.04;
}

.hero h1 em {
  color: var(--yellow);
  font-style: normal;
}

@media (min-width: 1100px) {
  .hero h1 {
    font-size: clamp(2.7rem, 5.1vw, 4.6rem);
  }

  .hero h1 em {
    white-space: nowrap;
  }
}

.hero-lede {
  max-width: 31rem;
  margin: 0;
  color: rgba(247, 242, 233, 0.8);
  font-size: 1.05rem;
}

.rule-note {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 10px;
  max-width: 31rem;
  margin: 28px 0 0;
  padding: 13px 16px;
  color: var(--paper);
  border: 1px solid rgba(244, 196, 108, 0.54);
  border-radius: 12px;
  background: rgba(244, 196, 108, 0.1);
}

.rule-note > span:first-child {
  grid-row: span 2;
  color: var(--yellow);
  font-size: 1.3rem;
}

.rule-note strong,
.rule-note > span:last-child {
  grid-column: 2;
}

.rule-note > span:last-child {
  color: rgba(247, 242, 233, 0.66);
  font-size: 0.82rem;
}

.selection-flow {
  max-width: 38rem;
  margin: 24px 0 0;
  padding: 13px;
  color: var(--paper);
  border: 1px solid rgba(247, 242, 233, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.selection-flow-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: inherit;
}

.selection-flow-svg rect {
  fill: rgba(247, 242, 233, 0.06);
  stroke: rgba(247, 242, 233, 0.28);
  stroke-width: 1.2;
}

.selection-flow-svg .flow-step--active rect {
  fill: rgba(225, 125, 95, 0.18);
  stroke: var(--coral);
}

.selection-flow-svg text {
  fill: var(--paper);
}

.selection-flow-svg .flow-step-label,
.selection-flow-svg .flow-step-note {
  fill: rgba(247, 242, 233, 0.66);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.selection-flow-svg .flow-step-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.selection-flow-svg .flow-counter {
  fill: var(--yellow);
  font-size: 16px;
  font-weight: 800;
}

.selection-flow-svg .flow-dots circle {
  fill: var(--teal);
}

.selection-flow-svg .flow-connector {
  fill: none;
  color: var(--yellow);
  stroke: currentColor;
  stroke-width: 2;
}

.selection-flow figcaption {
  margin-top: 8px;
  color: rgba(247, 242, 233, 0.66);
  font-size: 0.72rem;
  line-height: 1.45;
}

.hero-candidates {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(247, 242, 233, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.hero-candidates-heading {
  margin-bottom: 14px;
  color: rgba(247, 242, 233, 0.74);
  font-size: 0.78rem;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.hero-photo {
  display: block;
  min-width: 0;
  color: var(--paper);
  text-decoration: none;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 0.82;
  border: 1px solid rgba(247, 242, 233, 0.32);
  border-radius: 9px;
  object-fit: cover;
}

.hero-photo span {
  display: block;
  overflow: hidden;
  margin-top: 7px;
  color: rgba(247, 242, 233, 0.8);
  font-size: 0.7rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-candidates figcaption {
  margin-top: 15px;
  color: rgba(247, 242, 233, 0.54);
  font-size: 0.72rem;
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-nav a {
  padding: 8px 13px;
  color: rgba(247, 242, 233, 0.86);
  border: 1px solid rgba(247, 242, 233, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
}

.board-section,
.selection-panel,
.filter-section,
.share-section,
.sources-section {
  padding-block: 82px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.7fr);
  align-items: end;
  gap: 30px;
  margin-bottom: 28px;
}

.section-heading--compact {
  margin-bottom: 22px;
}

.section-heading h2,
.share-copy h2 {
  margin: 8px 0 0;
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  letter-spacing: -0.07em;
  line-height: 1.12;
  word-break: keep-all;
}

.section-description {
  max-width: 31rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.board-meta {
  margin-bottom: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.candidate-total {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
}

.swipe-cue {
  display: none;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.candidate-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.candidate-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 0 rgba(18, 38, 61, 0.04);
}

.candidate-card.is-selected {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(225, 125, 95, 0.2), var(--shadow);
}

.candidate-photo {
  position: relative;
  margin: 0;
  background: var(--navy-soft);
}

.candidate-photo img {
  width: 100%;
  aspect-ratio: 1.75;
  object-fit: cover;
}

.candidate-photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  max-width: calc(100% - 24px);
  padding: 3px 8px;
  overflow: hidden;
  color: var(--paper);
  background: rgba(18, 38, 61, 0.8);
  border-radius: 5px;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.candidate-heading {
  align-items: flex-start;
}

.candidate-type {
  color: var(--teal);
  font-size: 0.68rem;
}

.candidate-heading h3 {
  margin: 4px 0 0;
  font-size: 1.45rem;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.select-candidate,
.share-button {
  flex: 0 0 auto;
  padding: 8px 11px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 800;
}

.candidate-card.is-selected .select-candidate {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.candidate-lede {
  min-height: 3.3em;
  margin: 14px 0 17px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.candidate-facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.candidate-facts > div {
  display: grid;
  grid-template-columns: 5.3rem minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.candidate-facts dt,
.candidate-facts dd,
.comparison-row dt,
.comparison-row dd {
  margin: 0;
}

.candidate-facts dt,
.comparison-row dt {
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 800;
}

.candidate-facts dd {
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.55;
}

.candidate-source {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 10px;
  margin: auto 0 0;
  padding-top: 16px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.candidate-source > span {
  color: var(--teal);
  font-weight: 800;
}

.candidate-source a,
.source-row a {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 3px;
}

.source-domain {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 700;
}

.copy-url {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(23, 43, 66, 0.35);
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
}

.copy-url[data-copy-state="copied"] {
  color: var(--teal);
  border-color: var(--teal);
}

.selection-panel {
  padding-top: 108px;
}

.selection-stage {
  margin-bottom: 22px;
  padding: 18px;
  color: var(--paper);
  background: var(--navy);
  border-radius: var(--radius);
}

.selection-stage-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 14px;
}

.stage-kicker,
.stage-legend-title {
  margin: 0;
  color: var(--yellow);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.selection-stage-heading h3 {
  margin: 5px 0 0;
  color: var(--paper);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.stage-status {
  max-width: 19rem;
  margin: 0;
  color: rgba(247, 242, 233, 0.72);
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: right;
}

.selection-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.28fr);
  gap: 14px;
  align-items: stretch;
}

.selection-stage-host {
  position: relative;
  min-width: 0;
  min-height: 338px;
  overflow: hidden;
  background: #142b3b;
  border: 1px solid rgba(247, 242, 233, 0.18);
  border-radius: 12px;
}

#selection-stage-canvas {
  display: block;
  width: 100%;
  height: 338px;
  cursor: pointer;
  touch-action: manipulation;
}

#selection-stage-canvas:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: -3px;
}

.selection-stage-host.is-static #selection-stage-canvas {
  cursor: default;
}

#selection-stage-canvas[aria-hidden="true"] {
  display: none;
}

.selection-stage-fallback {
  min-height: 338px;
  padding: 18px;
  color: rgba(247, 242, 233, 0.82);
  background: #142b3b;
}

.selection-stage-fallback > p {
  margin: 0 0 18px;
  font-size: 0.8rem;
}

.stage-static-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.stage-static-slots span {
  padding: 10px;
  color: var(--paper);
  border: 1px dashed rgba(247, 242, 233, 0.46);
  border-radius: 9px;
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.stage-static-slots span[data-stage-static-state="selected"] {
  border-color: var(--yellow);
  background: rgba(244, 196, 108, 0.12);
}

.stage-static-tokens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage-static-tokens li {
  padding: 9px 7px;
  color: rgba(247, 242, 233, 0.8);
  border: 1px solid rgba(247, 242, 233, 0.2);
  border-radius: 8px;
  font-size: 0.7rem;
  line-height: 1.25;
  text-align: center;
}

.stage-static-tokens li.is-selected {
  color: var(--paper);
  border-color: var(--yellow);
  background: rgba(244, 196, 108, 0.12);
}

.stage-legend {
  padding: 14px;
  border: 1px solid rgba(247, 242, 233, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.stage-legend ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.stage-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 8px;
  color: rgba(247, 242, 233, 0.72);
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.72rem;
  line-height: 1.25;
}

.stage-legend li[role="button"] {
  cursor: pointer;
}

.stage-legend li[role="button"]:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.stage-legend li > span {
  flex: 0 0 auto;
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 800;
}

.stage-legend li.is-selected {
  color: var(--paper);
  border-color: var(--yellow);
  background: rgba(244, 196, 108, 0.12);
}

.stage-legend li.is-selected::after {
  margin-left: auto;
  color: var(--yellow);
  content: "선택됨";
  font-size: 0.58rem;
  font-weight: 800;
  white-space: nowrap;
}

.selection-stage-note {
  margin: 12px 0 0;
  color: rgba(247, 242, 233, 0.54);
  font-size: 0.7rem;
}

.selection-tray {
  margin-bottom: 20px;
  padding: 17px 20px;
  color: var(--paper);
  background: var(--navy);
  border-radius: var(--radius);
}

.selection-tray-head {
  align-items: baseline;
}

.selection-tray-head > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.tray-label {
  color: var(--yellow);
}

.selection-tray strong {
  font-size: 1.35rem;
  line-height: 1;
}

.tray-hint,
.selection-status {
  color: rgba(247, 242, 233, 0.68);
  font-size: 0.78rem;
}

.selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
  align-items: center;
  margin-top: 13px;
}

.empty-selection {
  margin: 0;
  color: rgba(247, 242, 233, 0.64);
  font-size: 0.82rem;
}

.selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.selected-chip > span:last-child {
  color: var(--coral);
  font-size: 1.05rem;
  line-height: 0.8;
}

.selection-status {
  min-height: 1.3em;
  margin: 12px 0 0;
}

.selected-comparison {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.comparison-empty {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.comparison-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.comparison-row {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.45);
}

.comparison-row h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.comparison-row dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.comparison-row dl > div {
  display: grid;
  grid-template-columns: 5.3rem minmax(0, 1fr);
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.comparison-row dd {
  font-size: 0.78rem;
  line-height: 1.5;
}

.filter-section {
  padding-top: 108px;
}

.mood-filter {
  padding: 20px;
  background: rgba(247, 242, 233, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mood-filter fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.mood-filter legend {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 800;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.filter-option input {
  position: absolute;
  opacity: 0;
}

.filter-option span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.filter-option input:checked + span {
  color: var(--paper);
  background: var(--teal);
  border-color: var(--teal);
}

.filter-status {
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.share-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 46px;
  padding-top: 110px;
}

.share-copy > p:last-child {
  max-width: 30rem;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.share-action {
  padding: 24px;
  background: var(--yellow);
  border-radius: var(--radius);
}

.share-message {
  margin: 0 0 19px;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.45;
}

.share-button {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.share-status {
  display: inline;
  margin: 0 0 0 10px;
  color: rgba(23, 43, 66, 0.7);
  font-size: 0.75rem;
}

.clipboard-buffer {
  position: fixed;
  top: -100px;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sources-section {
  padding-top: 86px;
  padding-bottom: 78px;
}

.sources-details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sources-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}

.sources-details summary::-webkit-details-marker {
  display: none;
}

.sources-details summary strong {
  display: block;
  margin-top: 3px;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.summary-mark {
  color: var(--teal);
  font-size: 1.5rem;
}

.sources-intro {
  margin: 0 0 15px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  padding-bottom: 19px;
}

.source-row {
  align-items: baseline;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.source-row strong {
  flex: 0 0 auto;
}

.source-row a {
  overflow: hidden;
  color: var(--teal);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.no-script-note {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px 38px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
}

footer strong {
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  a,
  button,
  .candidate-card {
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
  }

  .candidate-card:hover {
    border-color: rgba(45, 119, 116, 0.65);
    box-shadow: var(--shadow);
  }

  .hero-photo:hover img,
  .hero-nav a:hover {
    border-color: var(--yellow);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1099px) {
  .wrap {
    width: min(100% - 48px, 900px);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 38px 32px;
  }

  .hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
    align-items: end;
    gap: 20px;
  }

  .hero-copy .eyebrow,
  .hero-copy h1 {
    grid-column: 1 / -1;
  }

  .hero-copy h1 {
    margin-bottom: 0;
  }

  .hero-lede {
    align-self: end;
  }

  .rule-note {
    margin-top: 0;
  }

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

  .share-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .selection-stage-host,
  .selection-stage-fallback,
  #selection-stage-canvas {
    min-height: 300px;
    height: 300px;
  }
}

@media (max-width: 699px) {
  body {
    font-size: 15px;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .hero-inner {
    padding-block: 16px 24px;
  }

  .topbar {
    font-size: 0.68rem;
  }

  .hero-layout {
    gap: 26px;
    padding-block: 30px 24px;
  }

  .hero-copy {
    display: block;
  }

  .hero h1 {
    margin-block: 13px 17px;
    font-size: clamp(2.45rem, 13vw, 3.55rem);
  }

  .hero-lede {
    font-size: 0.9rem;
  }

  .rule-note {
    margin-top: 19px;
    padding: 11px 13px;
  }

  .rule-note > span:last-child {
    font-size: 0.75rem;
  }

  .hero-candidates {
    padding: 14px;
  }

  .hero-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
    scroll-snap-type: x proximity;
  }

  .hero-photo {
    flex: 0 0 104px;
    scroll-snap-align: start;
  }

  .hero-photo img {
    aspect-ratio: 0.8;
  }

  .hero-photo span {
    font-size: 0.67rem;
  }

  .hero-candidates figcaption {
    margin-top: 11px;
    font-size: 0.67rem;
  }

  .selection-flow {
    margin-top: 18px;
    padding: 8px;
  }

  .selection-flow figcaption {
    margin-top: 6px;
    font-size: 0.64rem;
  }

  .hero-nav {
    gap: 7px;
  }

  .hero-nav a {
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .board-section,
  .selection-panel,
  .filter-section,
  .share-section,
  .sources-section {
    padding-top: 62px;
  }

  .sources-section {
    padding-bottom: 50px;
  }

  .section-heading {
    display: block;
    margin-bottom: 20px;
  }

  .section-heading h2,
  .share-copy h2 {
    font-size: 2rem;
  }

  .section-description {
    margin-top: 13px;
    font-size: 0.82rem;
  }

  .board-meta {
    margin-bottom: 12px;
  }

  .swipe-cue {
    display: block;
  }

  .candidate-board {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 3px 2px 13px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .candidate-card {
    flex: 0 0 calc(100% - 28px);
    scroll-snap-align: start;
  }

  .candidate-body {
    padding: 17px;
  }

  .candidate-heading h3 {
    font-size: 1.3rem;
  }

  .select-candidate {
    padding: 7px 9px;
    font-size: 0.7rem;
  }

  .candidate-lede {
    min-height: auto;
    margin-block: 12px 14px;
    font-size: 0.82rem;
  }

  .candidate-facts > div,
  .comparison-row dl > div {
    grid-template-columns: 4.7rem minmax(0, 1fr);
  }

  .candidate-facts dd,
  .comparison-row dd {
    font-size: 0.75rem;
  }

  .selection-panel {
    padding-bottom: 104px;
  }

  .selection-stage {
    padding: 14px;
  }

  .selection-stage-heading {
    display: block;
  }

  .stage-status {
    max-width: none;
    margin-top: 8px;
    text-align: left;
  }

  .selection-stage-grid {
    grid-template-columns: 1fr;
  }

  .selection-stage-host,
  .selection-stage-fallback,
  #selection-stage-canvas {
    min-height: 240px;
    height: 240px;
  }

  .stage-static-tokens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-legend ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-legend li {
    font-size: 0.68rem;
  }

  .selection-tray {
    position: sticky;
    z-index: 5;
    bottom: 12px;
    margin-bottom: 17px;
    padding: 14px 15px;
    box-shadow: 0 9px 25px rgba(18, 38, 61, 0.25);
  }

  .selection-tray-head strong {
    font-size: 1.15rem;
  }

  .selected-comparison {
    padding: 17px;
  }

  .comparison-list,
  .source-list {
    grid-template-columns: 1fr;
  }

  .comparison-row {
    padding: 15px;
  }

  .mood-filter {
    padding: 15px;
  }

  .filter-option span {
    min-height: 37px;
    padding: 7px 11px;
    font-size: 0.75rem;
  }

  .share-action {
    padding: 19px;
  }

  .share-message {
    font-size: 1.05rem;
  }

  .share-status {
    display: block;
    margin: 10px 0 0;
  }

  .source-row {
    display: block;
  }

  .source-row a {
    display: block;
    margin-top: 3px;
  }

  .source-row .source-domain,
  .source-row .copy-url {
    display: block;
    margin-top: 5px;
  }

  footer {
    display: block;
    padding-bottom: 25px;
    font-size: 0.7rem;
  }

  footer span {
    display: block;
    margin-top: 7px;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 699px) {
  .hero-strip,
  .candidate-board {
    scroll-snap-type: none;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
    overflow: visible;
  }

  .hero {
    color: #000;
    background: #fff;
    border-bottom: 2px solid #000;
  }

  .hero .eyebrow,
  .hero h1 em,
  .hero-lede,
  .rule-note,
  .hero-nav,
  .swipe-cue,
  .selection-tray,
  .filter-section,
  .share-section,
  .sources-section,
  .select-candidate,
  .copy-url,
  .skip-link,
  .no-script-note {
    display: none !important;
  }

  .hero-inner,
  .board-section,
  .selection-panel {
    width: 100%;
    padding: 16px 0;
  }

  .hero-layout {
    display: block;
    padding: 16px 0;
  }

  .hero-copy h1 {
    margin: 0;
    font-size: 2rem;
  }

  .hero-candidates {
    padding: 10px 0;
    border: 0;
    background: transparent;
  }

  .hero-strip {
    grid-template-columns: repeat(7, 1fr);
  }

  .hero-photo span,
  .hero-candidates figcaption {
    color: #000;
  }

  .candidate-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .candidate-card {
    break-inside: avoid;
    box-shadow: none;
  }

  .selected-comparison {
    padding: 0;
    border: 0;
  }

  .selection-stage {
    color: #000;
    background: #fff;
    border: 1px solid #000;
  }

  .selection-stage-heading h3,
  .stage-status,
  .selection-stage-note,
  .stage-kicker,
  .stage-legend-title {
    color: #000;
  }

  .selection-stage-host,
  .selection-stage-fallback,
  .stage-legend {
    min-height: 0;
    color: #000;
    background: #fff;
    border-color: #000;
  }

  #selection-stage-canvas {
    display: none !important;
  }

  .selection-stage-fallback {
    display: block !important;
  }

  .stage-static-slots,
  .stage-static-tokens {
    color: #000;
  }

  .stage-static-slots span,
  .stage-static-tokens li,
  .stage-legend li {
    color: #000;
    border-color: #000;
  }

  .stage-legend li > span {
    color: #000;
  }

  .selection-flow {
    color: #000;
    border-color: #000;
    background: #fff;
  }

  .selection-flow-svg rect {
    fill: #fff;
    stroke: #000;
  }

  .selection-flow-svg text,
  .selection-flow-svg .flow-step-label,
  .selection-flow-svg .flow-step-note,
  .selection-flow-svg .flow-counter {
    fill: #000;
  }

  .selection-flow-svg .flow-dots circle,
  .selection-flow-svg .flow-connector {
    color: #000;
    stroke: #000;
  }

  .selection-flow-svg .flow-dots circle {
    fill: #000;
  }

  .selection-flow figcaption {
    color: #000;
  }

  .comparison-empty {
    display: none !important;
  }

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

  .comparison-row[hidden] {
    display: block !important;
  }

  footer {
    width: 100%;
  }
}
