/* =========================================================
   미중 정상회담 결과 종합 보고서 — style.css
   디지털 모더니즘 + 신문지의 무게감
   ========================================================= */

/* ---------- Theme tokens ---------- */
:root[data-theme="light"] {
  --bg: #FAFAF9;
  --bg-elevated: #FFFFFF;
  --surface: #F5F5F4;
  --border: #E7E5E4;
  --text-primary: #1C1917;
  --text-secondary: #44403C;
  --text-muted: #78716C;
  --accent: #A4161A;
  --accent-soft: #FBE9E9;
  --success: #15803D;
  --warning: #B45309;
  --info: #1D4ED8;

  --us-tone: #1F3A5F;
  --cn-tone: #8E1C1F;

  --phase-past: #A8A29E;
  --phase-present: #A4161A;
  --phase-future: #78716C;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.04);
  --shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.06), 0 2px 4px -2px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 12px 32px -8px rgb(0 0 0 / 0.10), 0 4px 12px -4px rgb(0 0 0 / 0.06);
  --shadow-glow: 0 0 0 1px rgb(0 0 0 / 0.04), 0 8px 28px -10px rgb(0 0 0 / 0.12);

  --asym-tint: rgba(164, 22, 26, 0.025);
  --hl-bg: rgba(164, 22, 26, 0.14);
  --editor-note-bg: rgba(164, 22, 26, 0.045);
}

:root[data-theme="dark"] {
  --bg: #0B0B0C;
  --bg-elevated: #141416;
  --surface: #1C1C1F;
  --border: #2A2A2E;
  --text-primary: #F5F5F4;
  --text-secondary: #D6D3D1;
  --text-muted: #A8A29E;
  --accent: #E5484D;
  --accent-soft: #3B0F12;
  --success: #4ADE80;
  --warning: #F59E0B;
  --info: #60A5FA;

  --us-tone: #7CA8D6;
  --cn-tone: #E07A7D;

  --phase-past: #57534E;
  --phase-present: #E5484D;
  --phase-future: #44403C;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 12px 32px -8px rgb(0 0 0 / 0.6);
  --shadow-glow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 8px 28px -10px rgb(0 0 0 / 0.6);

  --asym-tint: rgba(229, 72, 77, 0.06);
  --hl-bg: rgba(229, 72, 77, 0.22);
  --editor-note-bg: rgba(229, 72, 77, 0.08);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  transition: background-color 320ms cubic-bezier(0.2, 0, 0, 1), color 320ms cubic-bezier(0.2, 0, 0, 1);
}

body[data-nav-open] { overflow: hidden; }

a { color: var(--text-primary); text-decoration: none; transition: color 200ms cubic-bezier(0.2, 0, 0, 1); }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

strong { font-weight: 600; }
em { font-style: italic; color: var(--text-secondary); }

::selection { background: var(--accent-soft); color: var(--text-primary); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
*:focus:not(:focus-visible) { outline: none; }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--bg-elevated);
  color: var(--accent);
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  font-weight: 600;
  transition: top 200ms cubic-bezier(0.2, 0, 0, 1);
}
.skip-link:focus { top: 0.75rem; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) {
  .container { padding: 0 1.75rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250, 250, 249, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
:root[data-theme="dark"] .site-header {
  background: rgba(11, 11, 12, 0.82);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 60px;
}
@media (min-width: 1024px) {
  .header-inner { height: 68px; }
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text-primary);
  font-weight: 600;
}
.site-brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}
.brand-text {
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
}
@media (min-width: 768px) {
  .brand-text { font-size: 1rem; }
}

.site-nav { display: none; }
@media (min-width: 1024px) {
  .site-nav { display: block; flex: 1; }
}
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.nav-list a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.375rem 0;
  position: relative;
}
.nav-list a:hover { color: var(--accent); text-decoration: none; }
.nav-list a.is-current,
.nav-list a[aria-current="true"] {
  color: var(--accent);
}
.nav-list a.is-current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle, .nav-toggle {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  transition: border-color 200ms, color 200ms, background-color 200ms;
}
.theme-toggle:hover, .nav-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 200ms cubic-bezier(0.2, 0, 0, 1), transform 200ms cubic-bezier(0.2, 0, 0, 1);
}
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: inline-flex; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: inline-flex; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: inline-grid; }
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}
.hamburger {
  position: relative;
  width: 18px; height: 14px;
  display: inline-block;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 240ms cubic-bezier(0.2, 0, 0, 1), top 240ms cubic-bezier(0.2, 0, 0, 1), opacity 200ms;
}
.hamburger::before { top: 2px; }
.hamburger::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 6px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 6px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 60px;
  left: 0; right: 0;
  bottom: 0;
  z-index: 190;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  overflow-y: auto;
  padding: 1.5rem 1.25rem 2rem;
  animation: menuSlide 280ms cubic-bezier(0.2, 0, 0, 1);
}
.mobile-menu[hidden] { display: none; }
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}
@keyframes menuSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-menu nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-menu nav a {
  display: block;
  padding: 0.875rem 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.mobile-menu nav a:hover {
  background: var(--surface);
  color: var(--accent);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 4.5rem 0 3.5rem;
}
@media (min-width: 768px) {
  .hero { padding: 6rem 0 4.5rem; }
}
@media (min-width: 1024px) {
  .hero { padding: 8rem 0 6rem; }
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  max-width: 22ch;
}
.accent-word {
  color: var(--accent);
  background-image: linear-gradient(transparent 78%, rgba(164, 22, 26, 0.22) 78%);
  background-repeat: no-repeat;
  padding: 0 0.05em;
}
:root[data-theme="dark"] .accent-word {
  background-image: linear-gradient(transparent 78%, rgba(229, 72, 77, 0.30) 78%);
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 60ch;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .hero-sub { font-size: 1.25rem; }
}

.hero-stats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
  }
}
.hero-stat {
  border-left: 2px solid var(--accent);
  padding-left: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.hero-stat .stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-stat .stat-value {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-wrap: wrap;
}
@media (min-width: 640px) {
  .cta-row { flex-direction: row; }
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.875rem 1.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition: background-color 200ms cubic-bezier(0.2, 0, 0, 1),
              color 200ms cubic-bezier(0.2, 0, 0, 1),
              border-color 200ms cubic-bezier(0.2, 0, 0, 1),
              transform 200ms cubic-bezier(0.2, 0, 0, 1);
}
.cta:hover { text-decoration: none; }
.cta-primary {
  background: var(--accent);
  color: #FFFFFF;
}
.cta-primary:hover {
  background: #8B1216;
  color: #FFFFFF;
  transform: translateY(-1px);
}
:root[data-theme="dark"] .cta-primary:hover { background: #C53A3E; }
.cta-secondary {
  border-color: var(--border);
  color: var(--text-primary);
  background: transparent;
}
.cta-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ---------- Section base ---------- */
.section {
  padding: 4rem 0;
}
@media (min-width: 768px) {
  .section { padding: 5rem 0; }
}
@media (min-width: 1024px) {
  .section { padding: 6rem 0; }
}
.section-alt {
  background: var(--surface);
}

.section-head {
  max-width: 720px;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .section-head { margin-bottom: 3rem; }
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---------- Callouts ---------- */
.callout-section {
  padding: 2.5rem 0;
}
@media (min-width: 768px) {
  .callout-section { padding: 3.5rem 0; }
}

.callout {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 0.75rem 0.75rem 0;
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) {
  .callout { padding: 2rem; }
}
.callout-primary {
  border-left-color: var(--accent);
  background: linear-gradient(90deg, var(--accent-soft) 0%, var(--bg-elevated) 18%);
}
.callout-muted {
  border-left-color: var(--border);
  background: var(--surface);
}
.callout-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.625rem;
}
.callout-eyebrow-muted { color: var(--text-muted); }
.callout-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-primary);
}
@media (min-width: 768px) {
  .callout-text { font-size: 1.125rem; }
}

/* ---------- Exec summary grid ---------- */
.exec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .exec-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
.exec-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms cubic-bezier(0.2, 0, 0, 1),
              transform 200ms cubic-bezier(0.2, 0, 0, 1),
              border-color 200ms cubic-bezier(0.2, 0, 0, 1);
}
@media (min-width: 768px) {
  .exec-block { padding: 1.75rem; }
}
.exec-block:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.exec-block-wide {
  grid-column: 1 / -1;
}
.exec-block h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.exec-block p { color: var(--text-secondary); margin-bottom: 0.75rem; line-height: 1.7; }
.exec-block p:last-child { margin-bottom: 0; }
.block-count {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
}

.bullets {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bullets li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.65;
}
.bullets li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}
.bullets-check li::before { content: "\2713"; color: var(--success); }
.bullets-diamond li::before { content: "\25C6"; color: var(--warning); }
.bullets-arrow li::before { content: "\2192"; color: var(--accent); }

.hl {
  background-image: linear-gradient(transparent 60%, var(--hl-bg) 60%);
  background-repeat: no-repeat;
  padding: 0 0.06em;
  font-weight: 600;
  color: var(--text-primary);
}

/* ---------- Comparison Matrix ---------- */
.matrix { display: grid; gap: 0; }
.matrix-head {
  display: none;
  grid-template-columns: 180px 1fr 1fr;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 2px solid var(--text-primary);
  font-weight: 600;
}
@media (min-width: 1024px) {
  .matrix-head { display: grid; }
}
.matrix-label-head {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.matrix-col-head {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.matrix-col-us { color: var(--us-tone); }
.matrix-col-cn { color: var(--cn-tone); }

.matrix-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 1024px) {
  .matrix-row {
    grid-template-columns: 180px 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
  }
}
.matrix-row:last-child { border-bottom: none; }

.matrix-row[data-asymmetric="true"] {
  background: var(--asym-tint);
  border-radius: 0.25rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.matrix-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (min-width: 1024px) {
  .matrix-label {
    font-size: 0.9375rem;
    text-transform: none;
    letter-spacing: 0;
    padding-right: 1rem;
    color: var(--text-primary);
  }
}
.matrix-cell {
  position: relative;
  padding-left: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.matrix-cell-left::before,
.matrix-cell-right::before {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.matrix-cell-left::before { content: "美 / Beijing"; color: var(--us-tone); }
.matrix-cell-right::before { content: "中 / Busan"; color: var(--cn-tone); }
@media (min-width: 1024px) {
  .matrix-cell-left::before,
  .matrix-cell-right::before { display: none; }
}
.bar-us, .bar-cn {
  position: absolute;
  left: 0;
  top: 1.4em;
  width: 3px;
  height: calc(100% - 1.4em);
  border-radius: 1px;
}
.bar-us { background: var(--us-tone); }
.bar-cn { background: var(--cn-tone); }
@media (min-width: 1024px) {
  .bar-us, .bar-cn {
    top: 0.3em;
    height: calc(100% - 0.6em);
  }
}

.matrix-note {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
  border-top: 1px dashed var(--border);
}
@media (min-width: 1024px) {
  .matrix-note {
    grid-column: 2 / -1;
  }
}

/* ---------- Agenda grid ---------- */
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.agenda-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 200ms cubic-bezier(0.2, 0, 0, 1),
              border-color 200ms cubic-bezier(0.2, 0, 0, 1);
}
.agenda-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.agenda-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0.75rem 0 0.5rem;
  color: var(--text-primary);
}
.card-summary {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9375rem;
}
.card-details {
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px dashed var(--border);
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.card-details p { margin-bottom: 0.75rem; }
.card-details p:last-child { margin-bottom: 0; }
.card-details ul, .card-details ol {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}
.card-details li { margin-bottom: 0.375rem; }
.card-details blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0.875rem;
  margin: 0.875rem 0;
  background: var(--accent-soft);
  border-radius: 0 0.375rem 0.375rem 0;
  font-size: 0.875rem;
}
:root[data-theme="dark"] .card-details blockquote {
  background: var(--editor-note-bg);
}
.card-details blockquote p { margin-bottom: 0.5rem; }
.card-details blockquote p:last-child { margin-bottom: 0; }

/* ---------- Tags ---------- */
.tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.tag-economy    { background: rgba(15, 118, 110, 0.12);  color: #0F766E; }
.tag-tech       { background: rgba(29, 78, 216, 0.12);   color: #1D4ED8; }
.tag-security   { background: rgba(159, 18, 57, 0.12);   color: #9F1239; }
.tag-geopolitics{ background: rgba(180, 83, 9, 0.10);    color: #92400E; }
.tag-law        { background: rgba(109, 40, 217, 0.14);  color: #6D28D9; }
.tag-etc        { background: rgba(82, 82, 82, 0.14);    color: #525252; }

:root[data-theme="dark"] .tag-economy    { background: rgba(15, 118, 110, 0.22);  color: #5EEAD4; }
:root[data-theme="dark"] .tag-tech       { background: rgba(29, 78, 216, 0.24);   color: #93C5FD; }
:root[data-theme="dark"] .tag-security   { background: rgba(159, 18, 57, 0.24);   color: #FDA4AF; }
:root[data-theme="dark"] .tag-geopolitics{ background: rgba(180, 83, 9, 0.24);    color: #FCD34D; }
:root[data-theme="dark"] .tag-law        { background: rgba(109, 40, 217, 0.24);  color: #C4B5FD; }
:root[data-theme="dark"] .tag-etc        { background: rgba(120, 113, 108, 0.24); color: #D6D3D1; }

/* ---------- details / summary ---------- */
details summary {
  cursor: pointer;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
.agenda-card details summary {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  display: inline-block;
}
.agenda-card details[open] summary { text-decoration: none; }

/* ---------- Accordion ---------- */
.accordion {
  border-top: 1px solid var(--border);
}
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  transition: color 200ms;
}
@media (min-width: 768px) {
  .accordion-item > summary { font-size: 1.0625rem; }
}
.accordion-item > summary:hover { color: var(--accent); }
.accordion-title { flex: 1; }
.accordion-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-muted);
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform 320ms cubic-bezier(0.2, 0, 0, 1);
}
.accordion-icon::before {
  left: 0; right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
}
.accordion-icon::after {
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
}
.accordion-item[open] > summary .accordion-icon::after {
  transform: translateX(-50%) scaleY(0);
}
.accordion-item[open] > summary { color: var(--accent); }
.accordion-body {
  padding: 0.25rem 0 1.75rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}
.accordion-body p { margin-bottom: 0.875rem; }
.accordion-body p:last-child { margin-bottom: 0; }
.accordion-body ul, .accordion-body ol {
  padding-left: 1.25rem;
  margin-bottom: 0.875rem;
}
.accordion-body li { margin-bottom: 0.375rem; }
.accordion-body blockquote.editor-note {
  border-left: 3px solid var(--accent);
  padding: 0.875rem 1.125rem;
  margin: 1.25rem 0 0;
  background: var(--editor-note-bg);
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg-elevated);
}
table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.875rem;
}
th, td {
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  color: var(--text-secondary);
}
th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface); }
:root[data-theme="dark"] tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* ---------- Stat grid ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.875rem;
}
.stat-cell {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 200ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 200ms cubic-bezier(0.2, 0, 0, 1);
}
.stat-cell:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-head .stat-label {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: 0 0 0 3px rgba(120, 113, 108, 0.1);
}
[data-tone="positive"] .stat-dot { background: var(--success); box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.18); }
[data-tone="warning"] .stat-dot { background: var(--warning); box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.18); }
[data-tone="danger"] .stat-dot { background: #B91C1C; box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.20); }
[data-tone="critical"] .stat-dot { background: #7F1D1D; box-shadow: 0 0 0 3px rgba(127, 29, 29, 0.25); }

.stat-cell .stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 0.375rem;
  color: var(--text-primary);
}
[data-tone="critical"] .stat-value { color: var(--accent); }
.stat-note {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------- Quote carousel ---------- */
.carousel {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.carousel-track {
  position: relative;
  display: flex;
  overflow: hidden;
  transition: transform 320ms cubic-bezier(0.2, 0, 0, 1);
}
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 2.5rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 1rem;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}
@media (min-width: 640px) {
  .carousel-slide { padding: 2.5rem 2rem; }
}
.quote-mark {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.10;
  font-family: 'Noto Serif KR', 'Source Serif Pro', Georgia, serif;
  user-select: none;
  pointer-events: none;
}
:root[data-theme="dark"] .quote-mark { opacity: 0.14; }

.quote-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
  padding-top: 2.25rem;
}
.speaker {
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.speaker-us      { background: rgba(31, 58, 95, 0.12);   color: var(--us-tone); }
.speaker-cn      { background: rgba(142, 28, 31, 0.12);  color: var(--cn-tone); }
.speaker-info    { background: rgba(29, 78, 216, 0.12);  color: #1D4ED8; }
.speaker-success { background: rgba(21, 128, 61, 0.10);  color: #166534; }
.speaker-muted   { background: rgba(120, 113, 108, 0.14); color: #57534E; }
:root[data-theme="dark"] .speaker-us      { background: rgba(124, 168, 214, 0.18); color: #BCD7F0; }
:root[data-theme="dark"] .speaker-cn      { background: rgba(224, 122, 125, 0.20); color: #F0B5B7; }
:root[data-theme="dark"] .speaker-info    { background: rgba(96, 165, 250, 0.20);  color: #93C5FD; }
:root[data-theme="dark"] .speaker-success { background: rgba(74, 222, 128, 0.18);  color: #86EFAC; }

.quote-context {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.quote-original {
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-primary);
}
@media (min-width: 640px) {
  .quote-original { font-size: 1.25rem; }
}
.quote-divider {
  border: 0;
  border-top: 1px dashed var(--border);
  margin: 0.25rem 0;
}
.quote-translation {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.quote-source {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.carousel-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  transition: border-color 200ms, color 200ms, background-color 200ms, transform 200ms;
}
.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.04);
}
.carousel-indicators {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: calc(100% - 112px);
}
.carousel-indicators::-webkit-scrollbar { display: none; }
.carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--border);
  transition: background-color 200ms cubic-bezier(0.2, 0, 0, 1),
              width 200ms cubic-bezier(0.2, 0, 0, 1);
  border: none;
  padding: 0;
}
.carousel-indicators button:hover { background: var(--text-muted); }
.carousel-indicators button[aria-current="true"],
.carousel-indicators button.is-active {
  background: var(--accent);
  width: 24px;
}
.carousel-count {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  padding: 0;
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--phase-past) 0%,
    var(--phase-past) 35%,
    var(--accent) 50%,
    var(--phase-future) 65%,
    var(--phase-future) 100%
  );
  border-radius: 1px;
}
.timeline-item {
  position: relative;
  padding: 0.25rem 0 1.5rem 1.25rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-muted);
  box-shadow: 0 0 0 4px var(--bg);
  z-index: 1;
}
.section-alt .timeline-marker { box-shadow: 0 0 0 4px var(--surface); }
[data-phase="past"] .timeline-marker { border-color: var(--phase-past); }
[data-phase="present"] .timeline-marker {
  border-color: var(--accent);
  background: var(--accent);
}
[data-phase="future"] .timeline-marker { border-color: var(--phase-future); }

.timeline-marker-pulse::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: timelinePulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes timelinePulse {
  0%   { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.timeline-date {
  display: block;
  font-family: 'JetBrains Mono', 'D2Coding', 'SF Mono', ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
  font-variant-numeric: tabular-nums;
}
.timeline-heading {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}
.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- Prose ---------- */
.prose {
  max-width: 68ch;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.prose:last-child { margin-bottom: 0; }
.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.005em;
}
.prose h3:first-child { margin-top: 0; }
.prose h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem;
}
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}
.prose li { margin-bottom: 0.5rem; }
.prose blockquote.editor-note {
  border-left: 3px solid var(--accent);
  padding: 0.875rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--editor-note-bg);
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}
.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}
.footer-tags {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.footer-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.footer-stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  margin-top: 0.25rem;
}
.footer-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  grid-column: 1 / -1;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transition: transform 200ms cubic-bezier(0.2, 0, 0, 1),
              border-color 200ms, color 200ms, opacity 200ms;
  opacity: 1;
}
.back-to-top[hidden] {
  display: none;
}
.back-to-top:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 560ms cubic-bezier(0.2, 0, 0, 1),
              transform 560ms cubic-bezier(0.2, 0, 0, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .timeline-marker-pulse::after { animation: none !important; }
}
