/* 차별금지법 디자인 가이드 v1.3 · 공통 토큰과 컴포넌트 */
@font-face {
  font-family: "Hahmlet";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/hahmlet.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans KR";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/noto-sans-kr.woff2") format("woff2");
}
:root {
  --color-brand: #F375B5;
  --color-brand-hover: #F69BC9;
  --color-purple: #7056BE;
  --color-on-purple: #FFFFFF;
  --color-purple-hover: #5D449F;
  --color-yellow: #FCD783;
  --color-yellow-hover: #F4C56E;
  --color-on-yellow: #171519;
  --color-on-brand: #171519;
  --color-ink: #171519;
  --color-muted: #5C5D66;
  --color-warm-gray: #F7F7F5;
  --color-canvas: var(--color-warm-gray);
  --color-base: #FFFFFF;
  --color-pink-soft: #FDECF4;
  --color-purple-soft: #F0ECFA;
  --color-yellow-soft: #FFF4D9;
  --color-line: #D9DBE3;
  --color-focus: var(--color-purple);
  --color-hero: #000000;
  --diagram-stroke: 2px;
  --diagram-connector: 1.5px;
  --diagram-radius: 0;
  --diagram-label-radius: 0;
  --diagram-text: 18px;
  --font-title: "Hahmlet", "Batang", serif;
  --font-body: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  --font-weight-display: 700;
  --font-weight-heading: 600;
  --line-height-heading: 1.4;
  --font-size-body: 18px;
  --line-height-body: 1.75;
  --content-max: 1200px;
  --reading-max: 720px;
  --radius-sm: 0;
  --radius-lg: 0;
  --radius-label: 0;
  --radius-pill: 0;
  --border-component: 2px solid var(--color-ink);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --gutter: 48px;
  --section-gap: var(--space-9);
  color-scheme: light;
}

/* 기본 문서와 읽기 영역 */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; background: var(--color-base); color: var(--color-ink); font: 400 var(--font-size-body)/var(--line-height-body) var(--font-body); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-title); font-weight: var(--font-weight-heading); line-height: var(--line-height-heading); letter-spacing: -.025em; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, input, summary { touch-action: manipulation; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 5px; }
::selection { background: var(--color-yellow); color: var(--color-ink); }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.reading { max-width: var(--reading-max); }
.reading-highlight { --underline-color: var(--color-brand); position: relative; display: inline-block; max-width: 100%; }
.reading-highlight > svg { position: absolute; left: 0; bottom: -.1em; width: 100%; height: .22em; overflow: visible; pointer-events: none; }
.reading-highlight path { fill: none; stroke: var(--underline-color); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.reading-highlight--straight { display: inline; background-image: linear-gradient(var(--underline-color), var(--underline-color)); background-repeat: no-repeat; background-position: left 94%; background-size: 100% .24em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.reading-highlight--yellow { --underline-color: var(--color-yellow); }
.reading-highlight--purple { --underline-color: var(--color-purple); }
.reading-highlight--pink-soft { --underline-color: var(--color-pink-soft); }
.reading-highlight--purple-soft { --underline-color: var(--color-purple-soft); }
.reading-highlight--yellow-soft { --underline-color: var(--color-yellow-soft); }
.pen-circle { position: relative; display: inline-block; white-space: nowrap; }
.pen-circle svg { position: absolute; inset: -.12em -.18em; width: calc(100% + .36em); height: calc(100% + .24em); overflow: visible; pointer-events: none; }
.pen-circle path { fill: none; stroke: var(--color-brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
  .reading-highlight--straight.underline-ready { background-size: 0% .24em; transition: background-size 600ms cubic-bezier(.22, .61, .36, 1) 120ms; }
  .reading-highlight--straight.underline-visible { background-size: 100% .24em; }
  .pen-circle.circle-ready path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 700ms ease-out; }
  .pen-circle.circle-visible path { stroke-dashoffset: 0; }
}
@media print { .pen-circle path { stroke-dashoffset: 0 !important; } }
@media (prefers-reduced-motion: no-preference) {
  .reading-highlight.underline-ready > svg { clip-path: inset(-50% 100% -50% 0); transition: clip-path 900ms linear 120ms; }
  .reading-highlight.underline-visible > svg { clip-path: inset(-50% -1% -50% 0); }
  .hero mark.underline-ready > svg { transition-delay: 700ms; }
}
@media print { .reading-highlight > svg { clip-path: none !important; } }
.reading > p + p, .block-body > p + p, .timeline-card > p + p, .callout > p + p, .block-body > .callout + p { margin-top: var(--space-5); }
.muted, .caption { color: var(--color-muted); }
.manuscript-paragraph { white-space: pre-line; }
.body-soft-break { display: block; height: .35em; line-height: 0; white-space: pre; }
.caption { font-size: 14px; line-height: 1.6; margin-top: var(--space-5); }
.skip { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 18px; border-radius: var(--radius-sm); background: var(--color-ink); color: var(--color-base); }
.skip:focus { top: 16px; }

/* 공통 탐색 */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-base); border-bottom: 1px solid var(--color-line); }
.site-header .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 90px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-family: var(--font-title); font-size: 22px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.site-logo { display: block; width: 48px; height: auto; flex: none; }
@media (max-width: 767px) { .wordmark { gap: 8px; } .site-logo { width: 34px; } }
.gnb ul { display: flex; gap: 12px; list-style: none; padding: 0; margin: 0; }
.gnb a { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 500; text-decoration: none; }
.gnb a:hover, .gnb a[aria-current="page"] { background: var(--color-purple-soft); color: var(--color-purple); }
.menu-toggle { display: none; align-items: center; justify-content: center; align-self: center; flex-shrink: 0; min-height: 44px; padding: 8px 12px; background: var(--color-base); border: var(--border-component); border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; line-height: 1.4; white-space: nowrap; }

/* 메인 페이지 섹션 바로가기 */
.section-jump { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin: 24px var(--gutter); }
.js .section-jump { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 40; margin: 0; }
.section-jump ol { width: 184px; max-height: calc(100dvh - 180px); overflow-y: auto; overscroll-behavior: contain; list-style: none; margin: 0; padding: 8px; background: var(--color-base); border: var(--border-component); border-radius: var(--radius-lg); }
.section-jump a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; text-decoration: none; }
.section-jump a > span:first-child { font-size: 11px; font-variant-numeric: tabular-nums; }
@media (max-width: 1439px) { .section-jump { display: none; } }
.section-jump a:hover { background: var(--color-canvas); }
.section-jump a[aria-current="location"] { background: var(--color-purple-soft); color: var(--color-purple); font-weight: 600; }

/* 버튼과 링크 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 11px 22px; border: var(--border-component); border-radius: var(--radius-sm); background: var(--color-base); color: var(--color-ink); font-size: 16px; font-weight: 600; line-height: 1.5; text-align: center; text-decoration: none; transition: background .18s, color .18s, border-color .18s; }
.btn:hover { background: var(--color-warm-gray); }
.btn.purple { background: var(--color-purple); border-color: var(--color-purple); color: var(--color-on-purple); }
.btn.purple:hover { background: var(--color-purple-hover); border-color: var(--color-purple-hover); }
.btn.pink { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-on-brand); }
.btn.pink:hover { background: var(--color-brand-hover); border-color: var(--color-brand-hover); }
.btn.yellow { background: var(--color-yellow); border-color: var(--color-yellow); color: var(--color-on-yellow); }
.btn.yellow:hover { background: var(--color-yellow-hover); border-color: var(--color-yellow-hover); }
.btn.on-dark { background: transparent; color: var(--color-base); border-color: var(--color-base); }
.btn.on-dark:hover { background: var(--color-base); color: var(--color-ink); }
.btn.small { min-height: 44px; padding: 9px 18px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-6); }
.arrow { flex-shrink: 0; font-size: 20px; line-height: 1; }
.text-link { display: inline-block; color: var(--color-purple); font-weight: 500; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* 첫 화면: 가이드의 검정 히어로 예시 */
.hero { display: flex; flex-direction: column; gap: 20px; background: var(--color-hero); color: var(--color-base); padding: clamp(32px, 5vw, 56px) 0 16px; }
.hero-scroll { display: grid; place-items: center; align-self: center; width: 48px; height: 48px; color: var(--color-base); }
.hero-scroll svg { width: 24px; height: 32px; fill: none; stroke: currentColor; stroke-width: 5; }
@keyframes scroll-arrow-down {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(4px); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll svg { animation: scroll-arrow-down 1800ms ease-in-out infinite; }
}
.hero h1 { font-size: clamp(40px, 4.6vw, 64px); font-weight: var(--font-weight-display); line-height: 1.35; letter-spacing: -.03em; }
.hero-title-line { display: block; }
.hero-title-line:nth-child(-n+2):not(:last-child) { display: inline-block; }
.hero-label { display: inline-block; margin-bottom: 24px; padding: 7px 16px; border: 1.5px solid currentColor; border-radius: var(--radius-pill); color: var(--color-line); font-size: 16px; font-weight: 600; line-height: 1.5; }
.hero mark { background: transparent; color: inherit; white-space: nowrap; }
.hero-lead { white-space: pre-line; max-width: 480px; margin-top: var(--space-5); color: var(--color-line); font-size: 20px; }
@media (min-width: 768px) {
  .hero > .wrap { text-align: center; }
  .hero-lead { margin-inline: auto; }
}
.hero :focus-visible { outline-color: var(--color-yellow); }
.caption-accessible { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; user-select: none; }

/* 페이지를 열 때 한 번만 재생하며 문구와 레이아웃은 그대로 유지합니다. */
@keyframes hero-reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-title-line { animation: hero-reveal 700ms cubic-bezier(.22, .61, .36, 1) both; }
  .hero-title-line:nth-child(2) { animation-delay: 140ms; }
  .hero-title-line:nth-child(3) { animation-delay: 280ms; }
  .hero-lead { animation: hero-reveal 650ms cubic-bezier(.22, .61, .36, 1) 420ms both; }
  .hero .actions { animation: hero-reveal 650ms cubic-bezier(.22, .61, .36, 1) 560ms both; }
}

/* 구역과 상세 페이지 도입 */
.section { padding-block: var(--section-gap); }
.section.soft { background: var(--color-canvas); }
.section.pink-soft { background: var(--color-pink-soft); }
.section.purple-soft { background: var(--color-purple-soft); }
.section.yellow-soft { background: var(--color-yellow-soft); }
#join { background: var(--color-warm-gray); }
.page-hero { padding: var(--space-8) 0; background: var(--color-canvas); }
.page-hero--pink { background: var(--color-pink-soft); }
.page-hero--purple { background: var(--color-purple-soft); }
.page-hero--yellow { background: var(--color-yellow-soft); }
.page-hero--bright-pink { background: var(--color-brand); color: var(--color-on-brand); }
.page-hero--bright-pink .eyebrow b { color: inherit; }
.page-hero--bright-pink :focus-visible { outline-color: var(--color-ink); }
.page-hero--bright-purple { background: var(--color-purple); color: var(--color-on-purple); }
.page-hero--bright-purple .lead { color: var(--color-on-purple); }
.page-hero--bright-purple .eyebrow b { color: inherit; }
.page-hero--bright-purple .page-toc a { color: var(--color-ink); }
.page-hero--bright-purple :focus-visible { outline-color: var(--color-yellow); }
.page-hero--bright-yellow { background: var(--color-yellow); color: var(--color-on-yellow); }
.page-hero--bright-yellow .eyebrow b { color: inherit; }
.page-hero--bright-yellow :focus-visible { outline-color: var(--color-ink); }
.eyebrow { display: block; margin-bottom: var(--space-5); font-size: 14px; font-weight: 500; }
.eyebrow { display: flex; gap: 12px; align-items: center; }
.eyebrow b { font-weight: 600; color: var(--color-purple); }
.page-hero h1 { max-width: 1000px; font-size: 64px; font-weight: 800; line-height: 1.35; text-wrap: balance; }
.page-hero h1 .reading-highlight--straight { padding-bottom: .16em; background-position: left bottom; background-size: 100% .1em; }
.page-hero h1 .reading-highlight { --underline-color: var(--color-base); }
@media (prefers-reduced-motion: no-preference) {
  .page-hero h1 .reading-highlight--straight.underline-ready { background-size: 0% .1em; }
  .page-hero h1 .reading-highlight--straight.underline-visible { background-size: 100% .1em; }
}
.page-hero .lead { max-width: var(--reading-max); margin-top: var(--space-5); white-space: pre-line; }
.page-toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: var(--space-6) 0 0; }
.page-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; background: var(--color-base); border: 1px solid var(--color-line); border-radius: var(--radius-sm); font-size: 16px; font-weight: 500; text-decoration: none; }
.page-toc a:hover { color: var(--color-purple); border-color: var(--color-purple); }
.page-hero .page-toc a { color: var(--color-ink); }
.section-title { margin-bottom: var(--space-5); font-size: 36px; white-space: pre-line; }
.section-intro { max-width: var(--reading-max); }
.section-content { margin-top: var(--space-6); }
.section-foot { margin-top: var(--space-6); }
.summary-more { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.summary-more .caption { margin-top: 0; }
.block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; padding-block: var(--space-8); border-top: 1px solid var(--color-line); }
.block:first-child { padding-top: 0; border-top: 0; }
.block:last-child { padding-bottom: 0; }
.block-head .num { display: block; margin-bottom: 16px; color: var(--color-purple); font-size: 14px; font-weight: 500; }
[data-doc-about] .block-body p .reading-highlight--straight { background-size: 100% .24em; transition: none; }
[data-doc-about] .block-body p > .reading-highlight--yellow.reading-highlight--straight,
.why-content p > .reading-highlight--yellow.reading-highlight--straight { font-weight: 700; }
.block-head h2 { font-size: 36px; text-wrap: balance; white-space: pre-line; }
.block-body { min-width: 0; max-width: var(--reading-max); }
.block-body > .visual { margin-top: var(--space-5); }
@media (min-width: 1100px) {
  .block, .editorial-columns { row-gap: 16px; }
  .block-head, .editorial-title { display: contents; }
  .block-head > .num, .block-head > .eyebrow, .editorial-title > .eyebrow { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .block-head > .eyebrow, .editorial-title > .eyebrow { margin-bottom: 8px; }
  .block-head h2 { grid-column: 1; grid-row: 2; align-self: start; }
  .block-body { grid-column: 2; grid-row: 2; align-self: start; }
  .editorial-content { grid-column: 1; grid-row: 2; align-self: start; }
  .editorial-columns > .reading { grid-column: 2; grid-row: 2; align-self: start; }
}
.callout { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--color-yellow-soft); }
.callout.purple { background: var(--color-purple-soft); }
.callout > strong + p { margin-top: 12px; }
.callout-title { font-family: var(--font-title); font-size: 26px; line-height: 1.4; font-weight: 600; white-space: pre-line; }

/* 도형: 같은 역할에는 같은 모양과 크기 */
.grounds { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: var(--space-6) 0 0; }
.reading .grounds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grounds + p { margin-top: var(--space-5); }
.ground { --ground-fill: var(--color-pink-soft); position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; justify-self: center; align-self: start; width: 100%; max-width: 140px; min-width: 0; aspect-ratio: 1; padding: 12px; font-size: 16px; font-weight: 700; line-height: 1.4; text-align: center; }
.ground > span { min-width: 0; }
.ground-label--gender { white-space: nowrap; }
.ground.ground--medium { font-size: 14px; }
.ground.ground--long { padding: 8px; font-size: 12px; line-height: 1.45; }
.ground::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ground-fill); border-radius: 0; }
.ground--circle::before { border-radius: 50%; }
.ground.ground--triangle { padding: 50% 8% 8%; font-size: 13px; line-height: 1.25; }
.ground--triangle > span { max-width: 68%; }
.ground--triangle::before { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.ground--pink { --ground-fill: var(--color-brand); }
.ground--purple { --ground-fill: var(--color-purple); color: var(--color-on-purple); }
.ground--yellow { --ground-fill: var(--color-yellow); }
.ground--pink-soft { --ground-fill: var(--color-pink-soft); }
.ground--purple-soft { --ground-fill: var(--color-purple-soft); }
.ground--yellow-soft { --ground-fill: var(--color-yellow-soft); }
@media (prefers-reduced-motion: no-preference) {
  .ground.ground-ready { opacity: 0; transform: translateY(8px) scale(.92); transition: opacity 300ms ease-out var(--ground-delay, 0ms), transform 360ms ease-out var(--ground-delay, 0ms); }
  .ground.ground-visible { opacity: 1; transform: none; }
}
@media print { .ground.ground-ready { opacity: 1; transform: none; } }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: var(--space-6); }
.pillar { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px; border-radius: var(--radius-lg); background: var(--color-canvas); }
.role { display: grid; place-items: center; width: 68px; height: 68px; flex-shrink: 0; border-radius: 50%; background: var(--color-brand); font-weight: 600; }
.pillar:nth-child(2) .role { background: var(--color-purple); color: var(--color-on-purple); border-radius: var(--radius-lg); }
.pillar:nth-child(3) .role { position: relative; isolation: isolate; padding-top: 14px; background: transparent; border-radius: 0; }
.pillar:nth-child(3) .role::before { content: ""; position: absolute; z-index: -1; top: -4px; left: -8px; width: 84px; height: 76px; background: var(--color-yellow); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pillar h3 { font-size: 26px; text-wrap: balance; white-space: pre-line; }
.area-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.area-list li { display: flex; flex-direction: column; border: var(--border-component); border-radius: var(--radius-lg); }
.area-list li:not(:has(> a)), .area-list li > a { padding: var(--space-5); }
.area-list li > a { display: flex; flex: 1; flex-direction: column; text-decoration: none; }
.area-list li > a:hover b, .area-list li > a:focus-visible b { text-decoration: underline; text-underline-offset: .15em; }
.area-list b { display: block; margin-bottom: 8px; font-family: var(--font-title); font-size: 24px; font-weight: 600; line-height: 1.4; }
.area-list span { display: block; }
.area-list .area-description { margin-bottom: 16px; }
.area-list .tag { margin-top: auto; }
.area-list li:nth-child(1) .tag { background: var(--color-brand); color: var(--color-on-brand); }
.area-list li:nth-child(2) .tag { background: var(--color-purple); color: var(--color-on-purple); }
.area-list li:nth-child(3) .tag { background: var(--color-yellow); color: var(--color-on-yellow); }
.area-list li:nth-child(4) .tag { background: var(--color-ink); color: var(--color-base); }
.area-list + .manuscript-paragraph { margin-top: var(--space-5); }
.tag { display: inline-block; margin-top: 12px; padding: 4px 12px; background: var(--color-yellow-soft); border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; }

/* 일상 카드와 사례 */
.home-scenes { background: color-mix(in srgb, var(--color-purple-soft) 55%, var(--color-base)); }
.scene-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: var(--space-6); }
.scene-card { display: flex; flex-direction: column; padding: 26px; min-height: 238px; border: var(--border-component); border-radius: var(--radius-lg); background: var(--color-pink-soft); text-decoration: none; transition: transform .18s; }
.scene-card[href$="#school"] { background: var(--color-purple-soft); }
.scene-card:nth-child(3) { background: var(--color-yellow-soft); }
.scene-card:nth-child(4) { background: var(--color-canvas); }
.scene-card:hover { transform: translateY(-3px); }
.scene-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.scene-index { font-size: 12px; letter-spacing: .04em; }
.scene-glyph { font-family: var(--font-title); font-size: 32px; line-height: 1; }
.scene-card h3 { margin-bottom: 12px; font-size: 26px; }
.scene-card.scene-card--illustrated { padding: 0; min-height: 0; overflow: hidden; }
.scene-card--illustrated .scene-top { margin-bottom: 0; padding: 20px 24px 0; }
.scene-card--illustrated h3 { margin: 12px 24px 16px; }
.scene-card-illustration { display: block; width: 100%; height: auto; margin-top: auto; object-fit: contain; }
.scene-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; color: var(--color-purple); font-size: 16px; font-weight: 500; }
.scene-selector { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-6); }
.scene-selector button { flex-shrink: 0; min-height: 48px; padding: 10px 18px; border: 1px solid var(--color-ink); border-radius: var(--radius-sm); background: var(--color-base); color: var(--color-ink); font-size: 16px; font-weight: 500; }
.scene-selector button { --scene-hover-background: var(--color-pink-soft); }
.scene-selector button[aria-controls="school"] { --scene-hover-background: var(--color-purple-soft); }
.scene-selector button[aria-controls="service"] { --scene-hover-background: var(--color-yellow-soft); }
.scene-selector button[aria-controls="public"] { --scene-hover-background: var(--color-warm-gray); }
.scene-selector button:hover { background: var(--scene-hover-background); color: var(--color-ink); }
.scene-selector button[aria-selected="true"] { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-on-brand); }
.scene-selector button[aria-controls="school"][aria-selected="true"] { background: var(--color-purple); border-color: var(--color-base); color: var(--color-on-purple); }
.scene-selector button[aria-controls="service"][aria-selected="true"] { background: var(--color-yellow); border-color: var(--color-yellow); color: var(--color-on-yellow); }
.scene-selector button[aria-controls="public"][aria-selected="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-base); }
.scene-panel { scroll-margin-top: 180px; }
.scene-panel:focus { outline: none; }
.scene-panel + .scene-panel { margin-top: 48px; }
.js .scene-panel { margin-top: 0; }
.section[aria-labelledby="comparison-title"] { padding-block-start: clamp(32px, 5vw, 56px); }
.comparison-title { white-space: normal; }
.scene-area-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 24px; }
.scene-area-overview { display: grid; align-items: start; gap: 24px; }
.scene-area-illustration { display: block; width: 100%; height: auto; }
.scene-area-title { font-size: 26px; margin: 0; }
.scene-area-heading > .scene-area-band { display: flex; align-items: baseline; gap: 16px; width: fit-content; max-width: 100%; margin: 0; transform: translateY(4px); }
.scene-area-band > span:first-child { flex-shrink: 0; font-weight: 600; }
.scene-area-scope { min-width: 0; color: inherit; font-weight: 400; }
#work .scene-area-scope { white-space: normal; word-break: keep-all; overflow-wrap: normal; }
@media (min-width: 900px) {
  .scene-area-overview:has(> .scene-area-illustration) { grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); column-gap: 28px; }
}
#work .scene-area-band { background: var(--color-brand); color: var(--color-on-brand); }
#school .scene-area-band { background: var(--color-purple); color: var(--color-on-purple); }
#service .scene-area-band { background: var(--color-yellow); color: var(--color-on-yellow); }
#public .scene-area-band { background: var(--color-ink); color: var(--color-base); }
#school .scene-area-title .reading-highlight { --underline-color: var(--color-purple); }
#service .scene-area-title .reading-highlight { --underline-color: var(--color-yellow); }
#public .scene-area-title .reading-highlight { --underline-color: var(--color-ink); }
.scene-comparison { padding: 32px; border: var(--border-component); border-radius: var(--radius-lg); background: var(--color-base); }
.scene-comparison + .scene-comparison { margin-top: 24px; }
.scene-case-title { margin: 0; font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; line-height: 1.5; text-wrap: pretty; }
.scene-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.scene-cards > .scene-comparison { min-width: 0; margin: 0; padding: 0; }
.scene-cards .scene-case-toggle, .scene-cards > article > .scene-case-title { display: flex; align-items: center; min-height: 100%; }
.scene-cards .scene-case-title { font-size: clamp(18px, 1.7vw, 22px); word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .scene-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
.scene-comparison > .scene-case-title, .scene-case-toggle { padding: 24px; background: var(--color-base); transition: background-color .18s ease; }
.scene-case-toggle { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; cursor: pointer; list-style: none; }
.scene-case-toggle::-webkit-details-marker { display: none; }
.scene-case-toggle .scene-case-title { flex: 1; min-width: 0; }
.scene-case-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; color: var(--color-ink); font-size: 28px; line-height: 1; }
.scene-case-icon::before { content: '+'; }
.scene-case-disclosure[open] .scene-case-icon::before { content: '−'; }
.scene-comparison > .scene-case-title:hover, .scene-case-toggle:hover, .scene-case-toggle:focus-visible { background: var(--scene-open-background, var(--color-pink-soft)); }
.scene-comparison > .scene-case-copy { margin-top: 0; padding: 28px 24px; max-width: none; border-top: 1px solid var(--color-line); }
.scene-case-copy > p, .scene-case-copy > ul, .scene-case-copy > ol { max-width: var(--reading-max); }
.scene-case-copy a {
  color: color-mix(in srgb, var(--color-ink) 80%, white);
  font-size: .9em;
  text-decoration: none;
}
.scene-case-copy a::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-inline-end: .4em;
  vertical-align: -.15em;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' d='M10 8l3-3a4.2 4.2 0 0 1 6 6l-3 3M14 16l-3 3a4.2 4.2 0 0 1-6-6l3-3m1 5 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.scene-case-copy a:is(:hover, :focus-visible) {
  color: var(--scene-link-hover, var(--color-ink));
}
.scene-case-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: 32px; padding: 28px 24px; border-top: 1px solid var(--color-line); }
.scene-case-body > .scene-case-copy { min-width: 0; margin: 0; }
.scene-case-illustration { display: block; width: auto; height: auto; max-width: 100%; max-height: 420px; place-self: center; }
.scene-case-avatar, .scene-comparison > .scene-case-illustration {
  width: clamp(44px, 6vw, 68px);
  height: clamp(44px, 6vw, 68px);
  flex: none;
  padding: 5px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: var(--color-base);
  object-fit: contain;
}
.scene-cards > article:has(> .scene-case-illustration) { display: flex; align-items: center; gap: 16px; padding: 24px; }
.scene-cards > article:has(> .scene-case-illustration) > .scene-case-title { min-height: 0; padding: 0; }
.scene-comparison > .scene-case-illustration { order: -1; }
.scene-cards > .scene-case-disclosure[open] { order: -1; grid-column: 1 / -1; scroll-margin-top: 180px; }
.scene-panel { --scene-open-background: var(--color-pink-soft); }
.scene-panel#work { --scene-link-hover: var(--color-brand); }
.scene-panel#school { --scene-open-background: var(--color-purple-soft); --scene-link-hover: var(--color-purple); }
.scene-panel#service { --scene-open-background: var(--color-yellow-soft); --scene-link-hover: var(--color-yellow); }
.scene-panel#public { --scene-open-background: var(--color-warm-gray); }
.scene-cards > .scene-case-disclosure[open] > .scene-case-toggle { min-height: 76px; background: var(--scene-open-background); }
@media (max-width: 767px) {
  .scene-comparison > .scene-case-title, .scene-case-toggle { padding: 20px; }
  .scene-case-toggle:has(> .scene-case-avatar), .scene-cards > article:has(> .scene-case-illustration) { gap: 12px; padding: 16px; }
  .scene-comparison > .scene-case-copy { padding: 24px 20px; }
  .scene-case-body { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 20px; }
  .scene-case-body > .scene-case-illustration {
    grid-row: 1;
    width: min(100%, 264px);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
  }
}
.comparison-grid { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.comparison-box { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 24px; border-radius: var(--radius-lg); background: var(--color-canvas); }
.comparison-box.after { background: var(--color-pink-soft); }
.comparison-box p { font-family: var(--font-title); font-size: 26px; font-weight: 600; line-height: 1.5; white-space: pre-line; text-wrap: balance; }
.comparison-arrow { align-self: center; text-align: center; font-size: 28px; }
@keyframes comparison-after-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .comparison-ready .comparison-box.after { opacity: 0; }
  .comparison-visible .comparison-box.after { animation: comparison-after-reveal 600ms cubic-bezier(.22, .61, .36, 1) 220ms both; }
}

/* 통계: 조사별 같은 척도, 다른 질문은 별도 구분 */
.stat-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.why-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.why-heading, .why-content { min-width: 0; }
.why-heading > .survey, .why-heading > .recommendations { margin-top: 32px; }
@media (min-width: 1100px) {
  :is(#citizens, #global) .why-layout { row-gap: 32px; }
  :is(#citizens, #global) .why-heading { display: contents; }
  :is(#citizens, #global) .why-heading > .section-title { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  :is(#citizens, #global) .why-heading > :is(.survey, .recommendations) { grid-column: 1; grid-row: 2; margin-top: 0; }
  :is(#citizens, #global) .why-content { grid-column: 2; grid-row: 2; }
  #global .why-heading > .section-title { grid-column: 1 / -1; white-space: nowrap; }
}
.why-heading > .reading { line-height: var(--line-height-body); }
.why-layout .reading > p + p, .why-closing > p + p { margin-top: var(--space-6); }
.why-content > .callout { margin-block: var(--space-6); }
.why-content > .callout > strong + p { margin-top: var(--space-5); }
.why-layout .reading .body-soft-break, .why-closing .body-soft-break { height: .65em; }
.why-photo { margin: 32px 0 0; }
.why-photo img { display: block; width: 100%; height: auto; border-radius: 0; }
.why-photo figcaption { margin-top: 12px; color: var(--color-muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.why-photo-note { display: block; margin-top: 4px; }
.why-content > .recommendations { margin: 0 0 24px; }
.why-closing { margin-top: 48px; }
.why-closing .callout-title { white-space: normal; }
.why-closing > .callout-title + p { margin-top: 24px; }
.why-closing > p:not(.callout-title) + p { margin-top: 8px; }
.why-closing .body-soft-break { height: .15em; }
@media (max-width: 1099px) { .why-layout { grid-template-columns: 1fr; gap: 32px; } }
.stats-summary { align-items: stretch; grid-template-areas: "support survey" "international survey" "policy policy"; row-gap: 32px; }
.stats-summary > .stats-support { grid-area: support; }
.stats-summary > .survey { grid-area: survey; }
.stats-summary > .recommendations { grid-area: international; margin-top: 0; }
.stats-summary > .stats-policy { grid-area: policy; margin-top: 0; }
.stats-summary > div:first-child { display: flex; flex-direction: column; }
.stats-summary > div:first-child > .caption { margin-bottom: var(--space-6); }
.stats-summary .recommendations { margin-top: auto; }
@media (max-width: 1099px) {
  .stat-hero.stats-summary { grid-template-columns: minmax(0, 1fr); grid-template-areas: "support" "survey" "policy" "international"; }
  .stats-summary > .recommendations { margin-top: 0; }
}
@media (min-width: 1100px) {
  .stats-summary > .survey { margin-top: clamp(8px, 1vw, 12.8px); }
}
.survey, .recommendations { padding: var(--space-6); border: var(--border-component); border-radius: var(--radius-lg); background: var(--color-base); }
.survey h3 { font-size: 26px; margin-bottom: var(--space-5); }
.survey-context { margin-top: 24px; padding: 24px; border-radius: var(--radius-sm); background: var(--color-canvas); }
.rate-row + .rate-row { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--color-line); }
.rate-label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; font-size: 16px; }
.rate-label strong { flex-shrink: 0; font-size: 32px; font-weight: 600; line-height: 1.2; }
.rate-track { height: 16px; overflow: hidden; border-radius: var(--radius-pill); background: var(--color-line); }
.rate-fill { width: var(--value); height: 100%; background: var(--color-purple); }
.scale { display: flex; justify-content: space-between; margin-top: 6px; color: var(--color-muted); font-size: 12px; }
.rate-source { display: block; margin-top: 12px; color: var(--color-muted); font-size: 14px; line-height: 1.6; }
.big-number { margin-bottom: 12px; font-family: var(--font-title); font-size: 80px; font-weight: 700; line-height: 1.3; }
.big-number.range { font-size: clamp(40px, 5vw, 64px); }
.big-number small { margin-left: 12px; font-family: var(--font-body); font-size: 28px; font-weight: 600; }
.recommendations { margin-top: var(--space-6); }
.recommendations h3 { font-size: 26px; margin-top: 12px; }
.recommendations .muted { margin-top: 16px; }
.dots { display: grid; grid-template-columns: repeat(7, 24px); gap: 10px; margin-block: 24px; }
.dots span { width: 24px; height: 24px; border: var(--border-component); border-radius: 50%; background: var(--color-brand); }

.home-survey .rate-source { margin: 0 0 16px; }
.stats-summary > .home-survey { display: flex; flex-direction: column; }
.home-survey .rate-row { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.survey-track { display: flex; height: 28px; background: var(--color-line); }
.survey-segment { flex: none; }
.response-0 { background: var(--color-purple); }
.response-1 { background: var(--color-yellow); }
.response-2 { background: var(--color-brand); }
.survey-legend { display: flex; flex-wrap: wrap; gap: 12px 20px; list-style: none; padding: 0; margin: 16px 0 0; font-size: 15px; }
.survey-legend li { display: flex; align-items: center; gap: 6px; }
.survey-key { width: 12px; height: 12px; flex: none; border: 1px solid currentColor; }
.policy-priority { padding: var(--space-6); border: var(--border-component); background: var(--color-yellow-soft); }
.stats-policy { margin-top: var(--space-6); }
.policy-priority .caption { margin-top: 20px; }
@media (max-width: 600px) {
  .policy-priority { padding: 22px; }
}

/* 문답: 질문과 답의 요지는 항상 노출 */
.faq-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.field { width: min(100%, 440px); }
.field label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 500; }
.field input { width: 100%; min-height: 48px; padding: 10px 16px; border: var(--border-component); border-radius: var(--radius-sm); background: var(--color-base); font-size: 18px; }
.field input::placeholder { color: var(--color-muted); }
.faq-count { margin-bottom: 16px; color: var(--color-muted); font-size: 14px; }
.qa { border-bottom: 1px solid var(--color-line); }
.qa:first-child { border-top: 1px solid var(--color-line); }
.qa summary { display: flex; align-items: flex-start; gap: 16px; padding: 28px 16px; cursor: pointer; list-style: none; }
.qa-list-simple .qa summary { align-items: center; }
.qa-list-simple .q-detail { display: flex; align-items: flex-start; gap: 16px 24px; }
.qa-list-simple .q-detail .text-link { flex-shrink: 0; }
@media (max-width: 767px) {
  .qa-list-simple .q-detail { flex-direction: column; }
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { background: var(--color-canvas); }
.qa[open] { background: var(--color-purple-soft); }
.q-number { flex-shrink: 0; padding-top: 4px; color: var(--color-purple); font-size: 14px; font-weight: 600; }
.q-copy { flex: 1; min-width: 0; }
.q-title { display: block; font-family: var(--font-title); font-size: 26px; font-weight: 600; line-height: 1.4; }
.q-preview { display: block; max-width: var(--reading-max); margin-top: 12px; font-size: 18px; line-height: 1.75; }
#faq-list .q-preview { margin-top: 16px; font-weight: 400; }
#faq-list .qa[open] .q-preview { font-weight: 600; }
#faq-list .qa[open] { background: var(--color-base); }
#faq-list .qa[open] summary { background: var(--color-pink-soft); }
#faq-list .qa summary:hover { background: var(--color-pink-soft); }
#faq-list .q-detail { padding-top: 24px; }
.q-toggle { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: var(--border-component); border-radius: var(--radius-sm); font-size: 26px; line-height: 1; }
.q-toggle::before { content: "+"; }
.qa[open] .q-toggle::before { content: "−"; }
.q-detail { padding: 20px 76px 28px 54px; }
.q-detail .detail-label { margin-bottom: 16px; color: var(--color-purple); font-size: 14px; font-weight: 500; }
.q-detail > p { max-width: var(--reading-max); }
.q-detail p + p { margin-top: 16px; }
.empty { padding: 24px; border: 1px dashed var(--color-line); border-radius: var(--radius-sm); text-align: center; }

/* 노트북부터 가로 스크롤, 휴대폰에서는 세로 연표 */
.home-timeline-stage { position: relative; width: calc(100vw - 32px); left: 50%; transform: translateX(-50%); }
.home-timeline-scroll { overflow-x: auto; overflow-y: hidden; padding: 24px; scrollbar-color: var(--color-purple) var(--color-line); scrollbar-width: thin; }
.home-timeline-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; padding-inline: 24px; margin-bottom: 12px; }
.home-timeline-tools .caption { margin: 0; }
.home-timeline-tools .btn { min-width: 44px; padding: 8px 12px; }
.home-timeline { position: relative; display: grid; grid-template-columns: repeat(var(--home-timeline-columns, 7), minmax(0, 1fr)); list-style: none; width: 100%; min-width: calc(var(--home-timeline-columns, 7) * 220px); margin: 0; padding: 0; }
.home-timeline::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: var(--diagram-connector); background: var(--color-line); }
.home-timeline-step { position: relative; min-width: 0; height: calc(var(--home-timeline-row, 250px) * 2); }
.home-timeline-step::before { content: ""; position: absolute; z-index: 1; top: calc(50% - 10px); left: calc(100% - 22px); box-sizing: border-box; width: 20px; height: 20px; background: var(--color-base); border: var(--border-component); border-radius: 50%; }
.home-timeline-step a { position: absolute; left: calc(100% - 12px); bottom: calc(50% + 36px); display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; width: calc(200% - 24px); min-height: var(--home-timeline-card-height, 0px); align-content: start; max-width: none; min-width: 0; translate: -50% 0; margin: 0; padding: 20px; border: var(--border-component); background: var(--color-base); text-decoration: none; }
.home-timeline-step:nth-child(even) a { top: calc(50% + 36px); bottom: auto; }
.home-timeline-step a::after { content: ""; position: absolute; left: calc(50% - var(--diagram-connector) / 2); bottom: -36px; height: 34px; width: var(--diagram-connector); background: var(--color-line); }
.home-timeline-step:nth-child(even) a::after { top: -36px; bottom: auto; }
.home-timeline-years { display: inline-block; padding: 6px 10px; background: var(--color-yellow-soft); color: var(--color-ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.home-timeline-step h3 { min-width: 0; margin: 0; font-size: clamp(16px, 1.2vw, 24px); white-space: normal; }
.home-timeline-step ul { grid-column: 1 / -1; min-width: 0; list-style: disc; padding: 0 0 0 1.15em; margin: 4px 0 0; }
.home-timeline-step h4 { margin: 0; font-size: 16px; font-weight: 400; line-height: 1.7; white-space: normal; text-wrap: wrap; overflow-wrap: anywhere; }
.home-timeline-step li + li { margin-top: 12px; }
.home-timeline-step:focus-within a { opacity: 1 !important; transform: none !important; }
.home-timeline-step a:hover h3 { color: var(--color-purple); }
@media (prefers-reduced-motion: no-preference) {
  .home-timeline-stage:not(.is-vertical) .home-timeline::before { transform: scaleX(0); transform-origin: left; transition: transform .7s ease; }
  .home-timeline-stage.line-visible:not(.is-vertical) .home-timeline::before { transform: scaleX(1); }
  .home-timeline-step.reveal-ready a { opacity: 0; transform: translateY(-12px); transition: opacity .35s ease, transform .45s ease; }
  .home-timeline-step.reveal-ready:nth-child(even) a { transform: translateY(12px); }
  .home-timeline-step.reveal-ready.is-visible a { opacity: 1; transform: none; }
  .home-timeline-step.reveal-ready::before { opacity: 0; transition: opacity .3s ease; }
  .home-timeline-step.reveal-ready.is-visible::before { opacity: 1; }
}
@media (max-width: 767px) {
  .home-timeline-stage { width: 100%; left: auto; transform: none; }
  .home-timeline-scroll { overflow: visible; padding: 0 0 0 12px; }
  .home-timeline { display: block; min-width: 0; }
  .home-timeline::before { top: 0; bottom: 0; left: 0; right: auto; width: var(--diagram-connector); height: auto; }
  .home-timeline-step { display: block; height: auto; padding: 0 0 28px 28px; }
  .home-timeline-step::before { left: -9px; top: 24px; }
  .home-timeline-step a, .home-timeline-step:nth-child(even) a { position: relative; left: auto; top: auto; bottom: auto; width: 100%; min-height: 0; max-width: 100%; translate: none; margin: 0; padding: 20px; gap: 12px; grid-template-columns: minmax(0, 1fr); }
  .home-timeline-years { justify-self: start; }
  .home-timeline-step a::after { display: none; }
  .home-timeline-step h3 { font-size: 20px; white-space: normal; }
  .home-timeline-step h4 { font-size: 16px; white-space: normal; text-wrap: wrap; }
}
  .home-timeline-stage.is-vertical { width: 100%; left: auto; transform: none; }
  .is-vertical .home-timeline-scroll { overflow: visible; padding: 0 0 0 12px; }
  .is-vertical .home-timeline { display: block; min-width: 0; }
  .is-vertical .home-timeline::before { top: 0; bottom: 0; left: 0; right: auto; width: var(--diagram-connector); height: auto; }
  .is-vertical .home-timeline-step { display: block; height: auto; padding: 0 0 28px 28px; }
  .is-vertical .home-timeline-step::before { left: -9px; top: 24px; }
  .is-vertical .home-timeline-step a, .is-vertical .home-timeline-step:nth-child(even) a { position: relative; left: auto; top: auto; bottom: auto; width: 100%; min-height: 0; max-width: 100%; translate: none; margin: 0; padding: 20px; gap: 12px; grid-template-columns: minmax(0, 1fr); }
  .is-vertical .home-timeline-years { justify-self: start; }
  .is-vertical .home-timeline-step a::after { display: none; }
  .is-vertical .home-timeline-step h3 { font-size: 20px; white-space: normal; }
  .is-vertical .home-timeline-step h4 { font-size: 16px; white-space: normal; text-wrap: wrap; }

@media (prefers-reduced-motion: no-preference) {
  .is-vertical .home-timeline-step.reveal-ready a,
  .is-vertical .home-timeline-step.reveal-ready:nth-child(even) a { transform: translateY(12px); }
  .is-vertical .home-timeline-step.reveal-ready.is-visible a { transform: none; }
}

.timeline-periods { --timeline-column: 200px; --timeline-gap: 48px; --timeline-inset: 12px; position: relative; }
.timeline-periods::before { content: ""; position: absolute; left: calc(var(--timeline-column) + var(--timeline-gap) + var(--timeline-inset)); top: 0; bottom: 0; width: var(--diagram-connector); background: var(--color-line); }
.period { display: grid; grid-template-columns: var(--timeline-column) minmax(0, 1fr); gap: var(--timeline-gap); }
.period + .period { margin-top: var(--space-7); }
.period-head { align-self: start; position: sticky; top: 120px; }
.period-head h2 { font-size: 26px; }
.period-number { display: block; margin-bottom: 16px; color: var(--color-purple); font-size: 14px; font-weight: 500; }
.period-head .years { display: inline-block; margin-top: 16px; padding: 5px 12px; border-radius: var(--radius-label); background: var(--color-yellow-soft); font-size: 14px; line-height: 1.6; }
.timeline { margin: 0; padding: 0 0 0 12px; list-style: none; }
.timeline-item { position: relative; padding: 0 0 24px 28px; border-left: 0; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; box-sizing: border-box; top: 30px; left: calc((var(--diagram-connector) - 20px) / 2); width: 20px; height: 20px; border: var(--border-component); border-radius: 50%; background: var(--color-base); }
.timeline-card { padding: var(--space-5); border: var(--border-component); border-radius: var(--radius-lg); background: var(--color-base); }
.timeline-color-pink { --event-color: var(--color-brand); --event-background: var(--color-pink-soft); }
.timeline-color-yellow { --event-color: var(--color-yellow); --event-background: var(--color-yellow-soft); }
.timeline-color-purple { --event-color: var(--color-purple); --event-background: var(--color-purple-soft); }
.timeline-item[class*="timeline-color-"]::before { background: var(--event-color); }
.timeline-item[class*="timeline-color-"] > .timeline-card { background: var(--event-background); }
.timeline-card a { color: var(--color-purple); text-decoration-thickness: 1px; }
.timeline-card h3 { margin-bottom: 16px; font-size: 26px; text-wrap: balance; }
.timeline-card h3 { white-space: pre-line; }
.timeline-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 20px; font-size: 14px; line-height: 1.6; }
.timeline-meta:empty { display: none; }
.timeline-date { font-weight: 600; }
.timeline-kind { padding: 5px 12px; border-radius: var(--radius-pill); background: var(--color-purple); color: var(--color-on-purple); }

/* 자료와 함께하기 */
.resource-list { display: grid; grid-template-columns: 1fr; gap: 24px; list-style: none; padding: 0; margin: var(--space-6) 0 0; }
.resource { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px; border: var(--border-component); border-radius: var(--radius-lg); }
.resource::before { content: ""; width: 40px; height: 4px; flex-shrink: 0; border-radius: var(--radius-pill); background: var(--color-brand); }
.resource:nth-child(even)::before { background: var(--color-yellow); }
.resource-content > .text-link { margin-top: auto; }
.resource h2 { font-size: 26px; text-wrap: wrap; }
.resource-title-line { display: block; }
.resource .by { color: var(--color-muted); font-size: 14px; }
.resource-content { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.resource.resource--illustrated { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); align-items: start; gap: 32px; }
.resource--illustrated::before { display: none; }
.resource-thumbnail { position: relative; display: block; width: 100%; min-width: 0; height: 320px; overflow: hidden; background: var(--color-canvas); }
.resource-thumbnail img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 767px) {
  .resource.resource--illustrated { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .resource-thumbnail { height: 280px; }
}
.info-table { width: 100%; max-width: 900px; border-collapse: collapse; }
.info-table th, .info-table td { padding: 20px 16px; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: top; }
.info-table th { width: 140px; font-weight: 500; }
.info-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.info-account { margin-bottom: 12px; }
.info-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; min-height: 44px; padding: 8px 14px; border: 1px solid var(--color-line); border-radius: var(--radius-sm); background: var(--color-base); color: var(--color-ink); font-size: 16px; font-weight: 500; line-height: 1.5; text-decoration: none; }
.info-link > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.info-link > span[aria-hidden] { flex-shrink: 0; }
.info-link:hover { background: var(--color-purple-soft); border-color: var(--color-purple); color: var(--color-purple); }
.join { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: var(--space-6); }
.join-path { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px; border: var(--border-component); border-radius: var(--radius-lg); background: var(--color-base); }
.join-path .actions { margin-top: auto; padding-top: 8px; }
.join-question { font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-brand); text-decoration-thickness: .22em; text-underline-offset: -.08em; text-decoration-skip-ink: none; }
.join-path:nth-child(2) .join-question { text-decoration-color: var(--color-purple); }
.join-path:nth-child(3) .join-question { text-decoration-color: var(--color-yellow); }
.join-path:first-child .actions { display: flex; flex-wrap: nowrap; gap: 8px; width: 100%; }
.join-path:first-child .actions .btn { white-space: nowrap; font-size: 14px; padding: 10px 8px; gap: 6px; }

/* 페이지 이동과 바닥글 */
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: 32px 64px; border-top: 1px solid var(--color-line); }
.pager a { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; min-height: 100px; padding: 20px 0; text-decoration: none; }
.pager a:hover strong { color: var(--color-purple); text-decoration: underline; text-decoration-thickness: 1px; }
.pager small { font-size: 14px; color: var(--color-muted); }
.pager strong { font-family: var(--font-title); font-size: 24px; font-weight: 600; line-height: 1.4; }
.pager .next { grid-column: 2; align-items: flex-end; text-align: right; }
.site-footer { padding: 64px 0 32px; background: var(--color-hero); color: var(--color-base); }
.site-footer :focus-visible { outline-color: var(--color-yellow); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid #777; }
.footer-name { font-family: var(--font-title); font-size: 28px; font-weight: 600; }
.footer-info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 24px; margin: 0; font-size: 14px; }
.footer-info dt { color: var(--color-yellow); font-weight: 600; }
.footer-info dd { margin: 0; }
.footer-info a { color: var(--color-base); }
.footer-info a[href^="mailto:"] { text-decoration: none; }
.footer-info a:hover { color: var(--color-yellow); }
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 100; width: max-content; max-width: calc(100% - 40px); padding: 12px 20px; border-radius: var(--radius-sm); background: var(--color-ink); color: var(--color-base); font-size: 14px; text-align: center; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .18s, transform .18s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 원문 순서와 본문 크기를 유지하며 재배열 */
@media (min-width: 768px) and (max-width: 1099px) {
  :root { --gutter: 32px; --section-gap: 80px; }
  .hero h1, .page-hero h1 { font-size: 52px; }
  .hero h1 { font-size: 40px; }
  .block, .stat-hero { grid-template-columns: 1fr; gap: 32px; }
  .join { grid-template-columns: 1fr; }
  .join-path { display: flex; }
}
@media (max-width: 1099px) {
  .grounds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-header .wrap { min-height: 76px; }
  .site-header .wrap { flex-wrap: wrap; padding-block: 12px; }
  .js .site-header .wrap { flex-wrap: nowrap; padding-block: 0; }
  .js .menu-toggle { display: inline-flex; }
  .gnb { width: 100%; }
  .js .gnb { width: auto; position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); padding: 12px; background: var(--color-base); border: var(--border-component); border-radius: var(--radius-lg); }
  .gnb ul { flex-direction: column; gap: 4px; }
  .gnb a { font-size: 18px; padding: 12px 16px; }
  .scene-selector { top: 76px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .timeline-periods { --timeline-column: 160px; --timeline-gap: 24px; }
}
@media (max-width: 767px) {
  :root { --gutter: 22px; --section-gap: 64px; }
  html { scroll-padding-top: 96px; }
  .js .section-jump { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .wordmark { font-size: 20px; }
  .hero { gap: 12px; padding: 28px 0 12px; }
  .hero h1, .page-hero h1 { font-size: 36px; }
  .page-hero h1 { line-height: 1.55; }
  .page-hero h1 .reading-highlight--straight { padding-bottom: .08em; }
  .hero h1 { font-size: clamp(24px, 7vw, 36px); white-space: nowrap; }
  .hero-title-line:nth-child(-n+2):not(:last-child) { font-size: min(6.6vw, 36px); }
  .hero-lead { font-size: 18px; }
  .hero .btn { font-size: 15px; padding-inline: 18px; }
  .page-hero { padding: 48px 0; }
  .scene-area-title { line-height: 1.6; text-wrap: balance; }
  .scene-area-title .reading-highlight { display: inline; text-decoration-line: underline; text-decoration-style: wavy; text-decoration-color: var(--underline-color); text-decoration-thickness: 2px; text-underline-offset: .18em; text-decoration-skip-ink: none; }
  .scene-area-title .reading-highlight > svg { display: none; }
  .section-title, .block-head h2 { font-size: 28px; }
  .block { grid-template-columns: 1fr; gap: 24px; padding-block: 48px; }
  .pillars, .scene-grid, .area-list, .stat-hero, .resource-list, .join { grid-template-columns: 1fr; }
  .pillar { gap: 16px; padding: 24px; }
  .pillar h3, .scene-card h3, .callout-title, .survey h3, .recommendations h3, .resource h2, .timeline-card h3, .q-title { font-size: 24px; }
  .grounds { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .ground { padding: 8px; font-size: 14px; }
  .ground.ground--medium { font-size: 13px; }
  .ground.ground--long { font-size: 11px; }
  .ground.ground--triangle { font-size: 12px; }
  .scene-card { min-height: 0; padding: 24px; }
  .scene-comparison { padding: 20px; }
  .comparison-grid { grid-template-columns: 1fr; gap: 12px; }
  .comparison-box { padding: 20px; }
  .comparison-box p { font-size: 24px; }
  .comparison-arrow { transform: rotate(90deg); }
  .scene-panel { scroll-margin-top: 164px; }
  .scene-selector { margin-inline: -4px; padding-inline: 4px; }
  .scene-selector button { font-size: 14px; }
  .survey-context { padding: 16px; }
  .stat-hero { gap: 32px; }
  .survey, .recommendations { padding: 22px; }
  .rate-label { flex-wrap: wrap; gap: 8px; }
  .rate-label strong { font-size: 30px; }
  .big-number { font-size: 64px; }
  .faq-toolbar { flex-direction: column; align-items: flex-start; }
  .field { width: 100%; }
  .qa summary { gap: 12px; padding: 24px 0; }
  .q-number { padding-top: 3px; font-size: 12px; }
  .q-toggle { width: 32px; height: 32px; font-size: 22px; }
  .q-detail { padding: 20px 16px 24px; }
  .timeline-periods { --timeline-column: 0px; --timeline-gap: 0px; --timeline-inset: 10px; }
  .period { grid-template-columns: 1fr; gap: 24px; }
  .period-head { position: static; padding-left: 32px; }
  .period-head h2 { font-size: 24px; }
  .timeline { padding-left: 10px; }
  .timeline-item { padding-left: 20px; }
  .timeline-card { padding: 20px; }
  .resource, .join-path { padding: 24px; }
  .info-table th, .info-table td { display: block; width: 100%; padding: 12px 0; }
  .info-table th { border-bottom: 0; padding-bottom: 0; }
  .pager { grid-template-columns: 1fr; gap: 16px; }
  .pager .next { grid-column: 1; }
  .footer-info { grid-template-columns: 1fr; gap: 4px; }
  .footer-info dd { margin-bottom: 16px; }
}
@media (max-width: 359px) {
  :root { --gutter: 20px; }
  .site-header .wrap { gap: 12px; }
  .wordmark { font-size: 18px; }
  .menu-toggle { font-size: 13px; padding-inline: 12px; }
  .hero .btn { padding-inline: 14px; font-size: 14px; }
  .dots { grid-template-columns: repeat(7, 20px); gap: 8px; }
  .dots span { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .reading-highlight path { transition: none !important; }
  .reading-highlight--straight { background-size: 100% .24em !important; transition: none !important; }
  .site-header, .pager, .toast, .faq-toolbar, .section-jump, .hero-scroll { display: none; }
  .hero { background: var(--color-base); color: var(--color-ink); }
  .hero-title-line, .hero-lead, .hero .actions { animation: none !important; }
  .comparison-ready .comparison-box.after { animation: none !important; opacity: 1; transform: none; }
  .hero-lead { color: var(--color-ink); }
  .wrap { max-width: none; padding-inline: 0; }
  .section, .page-hero { padding-block: 24px; }
  .period-head { position: static; padding-left: 32px; }
  .scene-card, .timeline-card, .pillar { break-inside: avoid; }
  body { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Google Docs can add case explanations without changing the comparison design. */
.comparison-grid--single { grid-template-columns: minmax(0, 1fr); }
.scene-case-copy { margin-top: 24px; }
.scene-case-copy > p + p { margin-top: 16px; }
.document-list { padding-left: 1.4em; margin-block: 16px; }
.document-list > li + li { margin-top: 8px; }
.document-list .document-list { margin-block: 8px; }
