:root {
  --navy: #0a1b3a; --deep: #08142b; --blue: #1b4ca3; --cyan: #aecbff;
  --gold: #f1ce84; --amber: #8b5f18; --ink: #152440; --muted: #52627c;
  --line: #dce4ef; --tint: #f2f5fa; --white: #fff;
  --sans: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-family: var(--sans); color: var(--ink); background: var(--white);
  font-size: 100%; font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body, button { font: 1rem/1.65 var(--sans); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
button:not(:disabled) { cursor: pointer; }
:focus-visible { outline: 3px solid #2e70d8; outline-offset: 4px; }
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3, ul, ol { margin: 0; }
h1, h2, h3 { line-height: 1.23; letter-spacing: -.045em; word-break: keep-all; }
p { word-break: keep-all; overflow-wrap: anywhere; }
section[id] { scroll-margin-top: 82px; }
.shell { width: min(100% - 100px, 1232px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 30; background: #fff; color: var(--navy); padding: 10px 16px; }
.header { position: sticky; inset: 0 0 auto; z-index: 10; background: var(--deep); color: white; border-bottom: 1px solid #ffffff24; }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; gap: 11px; font-size: 1.28rem; font-weight: 850; line-height: 1.08; letter-spacing: -.035em; }
.brand small { display: block; margin-top: 5px; font-weight: 550; font-size: .82rem; color: #c1cce0; letter-spacing: -.01em; }
.ballot-mini { display: grid; place-items: center; background: var(--gold); color: var(--deep); width: 39px; height: 42px; border-radius: 7px; font-size: 1.65rem; }
.header nav { display: flex; gap: clamp(14px,2.6vw,35px); align-items: center; }
.header nav a { text-decoration: none; color: #e0e9f8; font-size: 1rem; white-space: nowrap; padding-block: 10px; }
.header nav a:hover, .header nav a[aria-current] { color: var(--gold); }
.menu-button { display: none; }
.hero { color: #fff; background: radial-gradient(ellipse at 80% 21%, #24549d 0%, #183973 28%, transparent 68%), linear-gradient(122deg, #0c1d39 8%, #122a57 100%); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, transparent 30%, #88baff15 47%, transparent 69%), radial-gradient(ellipse at 13% 100%, #02091680, transparent 56%); }
.hero-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(30px,5.5vw,88px); padding-block: clamp(44px,4.35vw,65px) clamp(43px,4.3vw,61px); }
.election-name { color: #d8e5ff; font-weight: 650; margin-bottom: 1.2rem; font-size: clamp(.95rem,1.35vw,1.12rem); }
.hero-number { display: inline-flex; align-items: baseline; gap: .18em; padding: .19em .66em; border: 1px solid #f1ce8480; color: var(--gold); border-radius: 5px; font-size: clamp(1rem,2.2vw,1.4rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.2; }
.hero-number b { font-size: 1.35em; }
.hero h1 { font-weight: 900; font-size: clamp(4.5rem,9.8vw,8.75rem); line-height: .98; letter-spacing: -.09em; margin: .21em 0 .22em -.035em; }
.hero-message { color: #f2f6fc; font-size: clamp(1.22rem,2.7vw,2.16rem); font-weight: 720; line-height: 1.46; letter-spacing: -.055em; }
.hero-message strong { color: var(--gold); }
.hero-actions { margin-top: 1.88rem; display: flex; flex-wrap: wrap; gap: .62rem; }
.button { border: 1px solid transparent; border-radius: 7px; min-height: 49px; display: inline-grid; place-items: center; text-decoration: none; font-weight: 780; font-size: .98rem; padding: .58rem 1.18rem; }
.primary { background: var(--gold); color: var(--deep); }
.primary:hover { background: #ffe0a2; }
.secondary { border-color: #c6d8f99e; color: #fff; background: #0b1f486c; }
.secondary:hover { background: #2a559b; }
.hero-photo { justify-self: end; width: min(100%, 452px); overflow: hidden; border-radius: 12px; position: relative; border: 1px solid #dde6ff90; background: #eeeff3; box-shadow: 0 30px 78px #03122f68; }
.hero-photo img { width: 100%; aspect-ratio: 1/.99; object-fit: cover; object-position: center 6%; }
.hero-photo figcaption { position: absolute; inset: auto 0 0; background: linear-gradient(transparent,#081b39ee); padding: 2.6rem 1.4rem .95rem; color: #fff; font-size: clamp(1.15rem,2vw,1.65rem); font-weight: 800; }
.hero-photo figcaption span { color: var(--gold); font-size: 1rem; margin-right: .3rem; }
.election-strip { position: relative; border-top: 1px solid #ffffff31; background: #07172dbb; }
.strip-inner, .strip-inner > div, .strip-count { display: flex; align-items: center; }
.strip-inner { min-height: 76px; justify-content: space-between; gap: 12px; padding-block: 10px; }
.strip-inner > div { gap: clamp(.65rem,2.4vw,1.6rem); }
.strip-label { color: var(--gold); font-weight: 750; }
.strip-inner time { font-size: clamp(1.12rem,2vw,1.55rem); font-weight: 800; }
.strip-inner time small, .strip-count small { font-size: .9rem; font-weight: 600; color: #c9d6eb; margin-left: .32rem; }
.strip-count { text-decoration: none; gap: .52rem; }
.strip-count span { padding: .25em .68em; background: #ffffff18; color: var(--gold); border: 1px solid #ffffff38; border-radius: 6px; font-weight: 800; font-variant-numeric: tabular-nums; }
.strip-count:hover small { color: white; text-decoration: underline; }
.section { padding-block: clamp(62px, 8vw, 112px); }
.section-tint { background: var(--tint); }
.eyebrow { font-weight: 800; color: var(--blue); margin-bottom: .65rem; font-size: .98rem; }
.section h2 { font-size: clamp(2rem, 4.4vw, 3.45rem); }
.section-lead { margin-bottom: 1.85rem; }
.subcopy { color: var(--muted); font-size: 1.05rem; margin-top: .95rem; }
.intro-layout, .profile-layout, .footsteps { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: clamp(25px,7.5vw,115px); }
.intro-layout .section-lead { padding-top: .3rem; }
.letter { border-left: 1px solid var(--line); padding-left: clamp(23px,4vw,63px); }
.letter p + p { margin-top: 1.1rem; }
.letter p { font-size: clamp(1.04rem,1.62vw,1.18rem); color: #293b58; line-height: 1.85; }
.letter .signature { margin-top: 1.8rem; text-align: right; }
.letter strong { color: var(--navy); font-size: 1.25em; }
.résumé { border-top: 2px solid var(--navy); }
.résumé details { border-bottom: 1px solid #ccd8e8; }
.résumé summary { list-style: none; cursor: pointer; position: relative; padding: .9rem 2.2rem .9rem .15rem; font-weight: 790; font-size: 1.075rem; }
.résumé summary::-webkit-details-marker { display: none; }
.résumé summary::after { content: "+"; position: absolute; right: .45rem; top: .61rem; font-size: 1.4rem; color: var(--blue); }
.résumé details[open] summary::after { content: "−"; }
.résumé ul { padding: 0 .3rem 1.16rem 1.35rem; line-height: 1.8; color: #324461; }
.résumé li + li { margin-top: .19rem; }
.pledges { background: var(--navy); color: white; }
.pledges .eyebrow { color: var(--gold); }
.pledges .subcopy { color: #c8d7f1; }
.pledge-deadlines { display: grid; grid-template-columns: repeat(3,1fr); margin: 1.6rem 0 2rem; border-block: 1px solid #ffffff2b; }
.pledge-deadlines div { padding: .52rem 1.2rem .73rem; }
.pledge-deadlines div + div { border-left: 1px solid #ffffff2b; }
.pledge-deadlines span { color: var(--gold); font-weight: 750; }
.pledge-deadlines b { font-size: clamp(1.65rem,3.4vw,2.6rem); letter-spacing: -.06em; margin-right: .13em; font-variant-numeric: tabular-nums; }
.pledge-deadlines p { color: #e1eaf9; font-size: .97rem; }
.pledge-browser { display: grid; grid-template-columns: minmax(225px, .63fr) minmax(0,1.37fr); gap: 18px; }
.pledge-list { display: grid; align-content: start; gap: 3px; }
.pledge-select { background: transparent; border: 1px solid transparent; border-bottom-color: #f0f4fb28; border-radius: 4px; color: #d9e4f8; text-align: left; font-weight: 650; min-height: 42px; padding: .44rem .7rem; display: flex; align-items: baseline; gap: .64rem; line-height: 1.35; word-break: keep-all; }
.pledge-select:hover { background: #ffffff14; }
.pledge-select[aria-pressed="true"] { color: #fff; border-color: #afceff59; background: #173568; }
.pledge-select span { color: var(--gold); font-weight: 800; min-width: 2.1ch; font-variant-numeric: tabular-nums; }
.pledge-card { border-radius: 9px; background: white; color: var(--ink); min-width: 0; overflow: hidden; }
.pledge-card-copy { padding: clamp(13px,2vw,25px); }
.pledge-card h3 { font-size: clamp(1.22rem,2.2vw,1.68rem); }
.pledge-image-button, .photo-button, .campaign-photo { display: block; border: 0; padding: 0; background: #e9eef6; border-radius: 0; overflow: hidden; width: 100%; }
.pledge-image-button img { width: 100%; aspect-ratio: 3/2; object-fit: contain; }
.pledge-stage { padding: .6rem clamp(13px,2vw,25px); border-top: 1px solid var(--line); background: #f5f7fb; display: flex; align-items: center; gap: .55rem; }
.pledge-stage button { background: white; border: 1px solid #c5d0e1; color: var(--navy); border-radius: 6px; font-size: .92rem; padding: .28rem .65rem; }
.pledge-stage button:disabled { opacity: .45; }
.pledge-stage button:not(:disabled):hover { background: #e7effd; }
.pledge-stage strong { font-size: .9rem; color: var(--muted); margin-right: auto; font-variant-numeric: tabular-nums; }
.milestones { display: grid; grid-template-columns: repeat(3,1fr); list-style: none; padding: .7rem 0 0; gap: .55rem; }
.milestones li { border-top: 1px solid var(--line); padding-top: .45rem; font-size: .92rem; color: var(--muted); line-height: 1.5; word-break: keep-all; }
.milestones strong { display: block; color: var(--blue); font-weight: 860; margin-bottom: .22rem; }
.timeline { list-style: none; padding: 0; border-top: 2px solid var(--navy); }
.timeline li { display: grid; grid-template-columns: minmax(70px,100px) minmax(0,1fr); gap: .82rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.timeline .year { color: var(--blue); font-weight: 820; font-size: 1.33rem; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.18rem; }
.timeline p { color: var(--muted); margin-top: .45rem; }
.campaign { background: var(--tint); }
.campaign-lead { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.d-day-label { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; color: var(--navy); font-weight: 780; }
.d-day-label span { background: var(--navy); color: var(--gold); padding: .2rem .55rem; border-radius: 4px; }
.days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 7px; }
.day { min-height: 76px; padding: .4rem .15rem; background: #fff; color: var(--navy); font-size: .94rem; font-weight: 770; border: 1px solid #cdd9ea; border-radius: 7px; line-height: 1.35; }
.day time { color: var(--muted); display: block; margin-top: .2rem; font-size: .9rem; font-weight: 540; }
.day:hover { border-color: var(--blue); }
.day[aria-pressed="true"] { background: #153674; color: white; border-color: #153674; }
.day[aria-pressed="true"] time { color: #d7e4ff; }
.day.has-entry::after { content: ""; display: inline-block; width: .42rem; height: .42rem; border-radius: 50%; background: #548326; margin-top: .22rem; }
.day.has-entry[aria-pressed="true"]::after { background: var(--gold); }
.campaign-entry { margin-top: 1rem; min-height: 166px; background: white; border: 1px solid var(--line); border-radius: 8px; padding: clamp(1rem,3.2vw,2rem); }
.campaign-entry h3 { font-size: clamp(1.23rem,2vw,1.55rem); }
.campaign-entry time { display: block; margin: .25rem 0 .73rem; color: var(--muted); }
.campaign-entry p { white-space: pre-wrap; }
.campaign-entry .entry-empty { color: var(--muted); }
.campaign-photos, .photo-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.campaign-photos { margin-top: 1rem; }
.photo-button, .campaign-photo { border-radius: 7px; }
.photo-button img, .campaign-photo img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .25s ease; }
.photo-button:hover img, .campaign-photo:hover img { transform: scale(1.045); }
.photo-grid figure:first-child { grid-column: span 2; grid-row: span 2; }
.photo-grid figure:first-child img { aspect-ratio: 1.65; }
.photo-grid figcaption { display: block; padding: .42rem 0 .19rem; font-size: .93rem; color: var(--muted); line-height: 1.42; word-break: keep-all; }
.footer { background: var(--deep); color: #edf3fe; padding-block: 2rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer strong { font-size: 1.2rem; }
.footer p { margin-top: .17rem; color: #c5d2e8; font-size: .92rem; }
.footer a { color: var(--gold); flex-shrink: 0; text-underline-offset: .25em; }
dialog { width: min(calc(100vw - 20px), 1180px); max-width: 100vw; max-height: calc(100dvh - 18px); border: 1px solid #7596ce; padding: 0; background: #091832; color: white; border-radius: 10px; overflow: hidden; }
dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
dialog::backdrop { background: #040c1ae8; }
body:has(dialog[open]) { overflow: hidden; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .7rem; }
.viewer-bar p { font-weight: 740; }
.viewer-bar button { padding: .3rem .72rem; border-radius: 5px; background: #183769; border: 1px solid #657fac; color: white; min-height: 42px; }
.viewer-bar button:hover { background: #235097; }
.viewer-bar button:disabled { opacity: .4; }
#viewer-close { font-size: 1.42rem; font-weight: 800; line-height: 1; }
.viewer-scroll { overflow: auto; background: #09152a; overscroll-behavior: contain; }
.viewer-scroll img { margin-inline: auto; width: auto; max-width: 100%; max-height: calc(100dvh - 137px); object-fit: contain; }
.viewer-scroll.zoomed img { width: min(260vw, 2220px); max-width: none; max-height: none; }
.viewer-controls { justify-content: center; }
#viewer-counter { font-variant-numeric: tabular-nums; color: #d7e5ff; }
@media (max-width: 1080px) { .shell { width: min(100% - 64px,1232px); } }
@media (max-width: 820px) {
  .shell { width: calc(100% - 42px); }
  .header-inner { min-height: 65px; }
  section[id] { scroll-margin-top: 70px; }
  .header nav { gap: 13px; }
  .header nav a { font-size: .88rem; }
  .intro-layout, .profile-layout, .footsteps { gap: 24px; }
}
@media (max-width: 650px) {
  .header-inner { min-height: 60px; }
  section[id] { scroll-margin-top: 64px; }
  .brand { font-size: 1.15rem; }
  .brand small { font-size: .78rem; }
  .ballot-mini { width: 33px; height: 36px; font-size: 1.45rem; }
  .menu-button { display: grid; gap: 5px; padding: 10px; background: none; border: 1px solid #ffffff55; border-radius: 6px; }
  .menu-button span:not(.sr-only) { width: 19px; height: 2px; background: #fff; }
  .header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: .55rem 21px .85rem; background: var(--deep); border-bottom: 1px solid #ffffff40; grid-template-columns: repeat(2,1fr); column-gap: 14px; row-gap: 3px; }
  .header nav.is-open { display: grid; }
  .header nav a { font-size: .98rem; }
  .hero { display: flex; flex-direction: column; }
  .election-strip { order: -1; border-top: 0; border-bottom: 1px solid #ffffff31; }
  .hero-layout { grid-template-columns: 1fr; gap: 1.4rem; padding-block: 1.9rem 1.6rem; }
  .election-name { margin-bottom: .7rem; }
  .hero h1 { margin-top: .13em; margin-bottom: .17em; font-size: clamp(4rem,17vw,6.1rem); }
  .hero-message { font-size: clamp(1.18rem,5vw,1.58rem); }
  .hero-actions { margin-top: 1.05rem; }
  .button { min-height: 43px; padding-inline: .76rem; font-size: .94rem; }
  .hero-photo { justify-self: start; width: 100%; }
  .hero-photo img { aspect-ratio: 1.38; object-position: center 5%; }
  .hero-photo figcaption { padding: 1.7rem .8rem .54rem; }
  .strip-inner { min-height: 50px; padding-block: 6px; }
  .strip-inner time small { font-size: .81rem; }
  .strip-count small { display: none; }
  .intro-layout, .profile-layout, .footsteps { grid-template-columns: 1fr; gap: 0; }
  .intro-layout br, .footsteps .section-lead br { display: none; }
  .letter { padding-left: .95rem; }
  .section-lead { margin-bottom: 1.25rem; }
  .section h2 { font-size: clamp(1.87rem,8vw,2.55rem); }
  .subcopy { font-size: .98rem; margin-top: .58rem; }
  .pledge-deadlines div { padding: .44rem .34rem .65rem; }
  .pledge-deadlines p { font-size: .88rem; line-height: 1.36; }
  .pledge-browser { grid-template-columns: 1fr; gap: 9px; }
  .pledge-list { display: flex; overflow-x: auto; max-width: 100%; gap: 6px; padding: 5px 0 10px; scrollbar-color: #7b9acb #12294e; }
  .pledge-select { flex: 0 0 auto; white-space: nowrap; border: 1px solid #f0f4fb40; padding-inline: .5rem; font-size: .88rem; }
  .pledge-stage { gap: .36rem; }
  .pledge-stage button { padding-inline: .42rem; font-size: .87rem; }
  .milestones { grid-template-columns: 1fr; gap: .4rem; }
  .milestones li { display: grid; grid-template-columns: 64px 1fr; gap: 4px; }
  .milestones strong { margin-bottom: 0; }
  .timeline li { grid-template-columns: minmax(44px, 58px) minmax(0,1fr); gap: .52rem; }
  .timeline .year { font-size: 1.12rem; }
  .timeline h3 { font-size: 1.05rem; }
  .campaign-lead { display: block; }
  .d-day-label { margin-top: .6rem; }
  .days { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
  .day { min-height: 62px; font-size: .86rem; }
  .day time { font-size: .81rem; }
  .photo-grid, .campaign-photos { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .photo-grid figure:first-child { grid-row: auto; }
}
@media (max-width: 345px) { .shell { width: calc(100% - 30px); } .days { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
