:root {
  color-scheme: light;
  --page: #f4f5f7;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #5e6879;
  --line: #dfe3e9;
  --navy: #17243b;
  --navy-soft: #24334d;
  --coral: #e6533f;
  --fact: #175f49;
  --fact-bg: #eaf4f0;
  --read: #9b521f;
  --read-bg: #fff1e6;
  --unknown: #6b5a89;
  --unknown-bg: #f1edf7;
  --radius: 14px;
  --radius-large: 18px;
  --shell: 1080px;
  --font: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button,
summary {
  font: inherit;
}

.shell {
  width: min(100% - 32px, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 750;
}

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

.masthead {
  background: var(--navy);
  color: #ffffff;
}

.masthead__inner {
  padding-block: max(48px, env(safe-area-inset-top)) 44px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #b9c5d8;
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(2.15rem, 9.6vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.masthead__meta {
  max-width: 650px;
  margin-bottom: 0;
  color: #c9d2df;
  font-size: 0.98rem;
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(23, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.96);
}

.section-nav__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 54px;
  padding-top: env(safe-area-inset-top);
}

.section-nav a {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 54px;
  place-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
  text-decoration: none;
}

.section-nav a::after {
  position: absolute;
  right: 22%;
  bottom: 0;
  left: 22%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  content: "";
}

.section-nav a[aria-current="location"] {
  color: var(--navy);
}

.section-nav a[aria-current="location"]::after {
  background: var(--coral);
}

.legend {
  display: grid;
  gap: 8px;
  margin-block: 20px 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 0.82rem;
}

.legend span {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.legend__mark {
  min-width: 36px;
  color: var(--ink);
}

.legend__mark--fact { color: var(--fact); }
.legend__mark--read { color: var(--read); }
.legend__mark--unknown { color: var(--unknown); }

.report-section,
.sources {
  padding-block: 58px 8px;
  scroll-margin-top: 54px;
}

.section-heading {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin-bottom: 22px;
}

.section-number {
  margin: 5px 0 0;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.section-heading p:not(.section-number) {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-heading--small h2 {
  font-size: 1.65rem;
}

.card-grid,
.score-grid,
.dont-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.card,
.dont-card {
  min-width: 0;
  margin-bottom: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card-grid > .card,
.score-grid > .card,
.dont-grid > .dont-card {
  margin-bottom: 0;
}

.card--verdict {
  padding: 26px 22px;
  border-color: var(--navy);
  border-radius: var(--radius-large);
  background: var(--navy);
  color: #ffffff;
}

.card__label {
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.01em;
}

.card__label--fact { color: var(--fact); }
.card__label--read { color: var(--read); }
.card__label--unknown { color: var(--unknown); }
.card--verdict .card__label--read { color: #ffb79f; }

.card h3,
.dont-card h3 {
  margin-bottom: 12px;
  font-size: 1.26rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.card p:last-child,
.dont-card p:last-child {
  margin-bottom: 0;
}

.verdict {
  max-width: 860px;
  margin-bottom: 16px;
  font-size: clamp(1.35rem, 5.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.038em;
}

.verdict__next {
  max-width: 800px;
  margin-bottom: 22px;
  color: #cbd5e3;
  font-size: 0.95rem;
}

.verdict__next strong {
  color: #ffffff;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.copy-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #ffffff;
  border-radius: 9px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 780;
  cursor: pointer;
}

.copy-button[disabled] {
  cursor: default;
  opacity: 0.78;
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 730;
}

.text-link--on-dark {
  color: #ffffff;
}

.purpose-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 24px;
}

.purpose-list li::marker {
  color: var(--coral);
  font-weight: 820;
}

.stat-list {
  margin: 20px 0 0;
}

.stat-list div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}

.stat-list dt {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.stat-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.source-ref {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.source-ref a {
  display: inline-grid;
  min-width: 30px;
  min-height: 30px;
  place-items: center;
}

.card--correction,
.card--boundary {
  border-color: #ead8ca;
  background: #fffaf6;
}

.card--accent-fact { border-left: 4px solid var(--fact); }
.card--accent-read { border-left: 4px solid var(--read); }
.card--accent-unknown { border-left: 4px solid var(--unknown); }

.plain-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.plain-list--compact {
  gap: 7px;
  font-size: 0.92rem;
}

.plain-list li::marker {
  color: var(--coral);
}

.callout-line {
  margin: 18px -2px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--read);
  background: var(--read-bg);
  color: #6d3c1c;
  font-size: 0.9rem;
}

.strike-copy {
  color: #8a3d37;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.score-card__headline {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
}

.score-card__headline h3 {
  margin-bottom: 6px;
}

.score-card__headline strong {
  color: var(--coral);
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.score-bar {
  height: 8px;
  margin: 10px 0 20px;
  border-radius: 999px;
  background: #e8ebef;
  overflow: hidden;
}

.score-bar span {
  display: block;
  width: 60%;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
}

.score-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.score-list li {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-block: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.score-list b {
  color: var(--ink);
}

.card--flow {
  background: #eef1f5;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  counter-reset: flow;
  list-style: none;
}

.flow-list li {
  min-width: 0;
  counter-increment: flow;
}

.flow-list span {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #d5dae2;
  border-radius: 10px;
  background: #ffffff;
  font-size: 0.87rem;
  font-weight: 720;
}

.flow-list span::before {
  color: var(--coral);
  content: counter(flow, decimal-leading-zero);
  font-size: 0.7rem;
  font-weight: 850;
}

details {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 760;
  cursor: pointer;
  list-style: none;
}

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

summary::after {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  content: "";
}

details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.details-body {
  padding: 8px 0 4px;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}

.timeline time {
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 850;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.dont-card {
  position: relative;
  padding-top: 24px;
  border-top: 4px solid var(--coral);
}

.dont-card__number {
  margin-bottom: 18px;
  color: #a8afba;
  font-size: 0.78rem;
  font-weight: 850;
}

.dont-card > p:not(.dont-card__number) {
  color: var(--muted);
}

.card--official-exclusion {
  border-color: #ebcac4;
  background: #fff7f5;
}

.sources {
  padding-bottom: 68px;
}

.sources > details {
  margin-top: 10px;
  padding-inline: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.source-list {
  margin: 0;
  padding-left: 24px;
}

.source-list li {
  padding: 12px 0 12px 4px;
  border-top: 1px solid var(--line);
}

.source-list a {
  display: block;
  color: var(--navy);
  font-weight: 710;
}

.source-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.page-footer {
  padding-block: 28px calc(28px + env(safe-area-inset-bottom));
  background: var(--navy);
  color: #aeb9c9;
  font-size: 0.78rem;
}

.page-footer p {
  margin: 0;
}

.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;
}

:focus-visible {
  outline: 3px solid #1b76d1;
  outline-offset: 3px;
}

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

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

  .dont-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .shell {
    width: min(100% - 64px, var(--shell));
  }

  .masthead__inner {
    padding-block: 76px 70px;
  }

  .legend {
    margin-block: 30px 0;
  }

  .report-section {
    padding-block: 88px 8px;
  }

  .section-heading {
    grid-template-columns: 52px minmax(0, 1fr);
    margin-bottom: 30px;
  }

  .card,
  .dont-card {
    padding: 28px;
  }

  .card--verdict {
    padding: 38px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
