:root {
  --navy: #13233C; --blue: #1b4ca3; --cyan: #aecbff;
  --gold: #f1ce84; --amber: #8b5f18; --ink: #152440; --muted: #52627c;
  --line: #dce4ef; --dark-line: #ffffff30; --light-muted: #d1dbeb;
  --sans: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-family: var(--sans); color: #fff; background: var(--navy);
  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(--navy); 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(--navy); width: 39px; height: 42px; border-radius: 7px; font-size: 1.65rem; }
.header nav { display: flex; gap: clamp(12px,2.25vw,29px); 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: var(--navy); overflow: hidden; }
.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(--navy); }
.primary:hover { background: #ffe0a2; }
.secondary { border-color: #c6d8f99e; color: #fff; background: transparent; }
.secondary:hover { background: #ffffff14; }
.hero-visual { justify-self: end; width: min(100%, 452px); min-width: 0; }
.hero-photo { 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 { margin-top: 14px; padding: .68rem clamp(.75rem,2vw,1.15rem) .75rem; border: 1px solid var(--dark-line); border-radius: 10px; background: #ffffff0a; }
.election-heading, .election-date { display: flex; align-items: baseline; gap: .45rem; }
.election-heading { justify-content: space-between; padding-bottom: .48rem; border-bottom: 1px solid var(--dark-line); }
.election-date { font-weight: 750; white-space: nowrap; }
.election-date span { color: var(--light-muted); font-size: .8rem; }
.election-date time { font-size: clamp(.88rem,2.15vw,1.15rem); }
.strip-count { text-decoration: none; color: var(--gold); white-space: nowrap; font-size: clamp(1rem,2.6vw,1.38rem); font-weight: 850; font-variant-numeric: tabular-nums; }
.strip-count:hover { text-decoration: underline; text-underline-offset: .18em; }
.election-timer { display: grid; grid-template-columns: repeat(3,minmax(0,1fr) auto) minmax(0,1fr); align-items: start; gap: .15rem; padding-top: .58rem; text-align: center; }
.timer-unit { display: grid; gap: .23rem; }
.timer-unit b, .timer-separator { font-size: clamp(1.5rem,5.3vw,2.35rem); line-height: 1; font-variant-numeric: tabular-nums; }
.timer-unit b { font-weight: 850; }
.timer-unit span { color: var(--light-muted); font-size: .78rem; }
.timer-separator { color: var(--light-muted); opacity: .75; padding-inline: .1em; }
.section { padding-block: clamp(62px, 8vw, 112px); }
.section + .section, .footer { border-top: 1px solid var(--dark-line); }
.eyebrow { font-weight: 800; color: var(--gold); 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(--light-muted); font-size: 1.05rem; margin-top: .95rem; }
.intro-layout, .profile-layout, .footsteps, .cheer-layout { 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(--dark-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: var(--light-muted); line-height: 1.85; }
.letter .signature { margin-top: 1.8rem; text-align: right; }
.letter strong { color: #fff; font-size: 1.25em; }
.résumé, .timeline { border-top: 2px solid var(--dark-line); }
.résumé details { border-bottom: 1px solid var(--dark-line); }
.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(--gold); }
.résumé details[open] summary::after { content: "−"; }
.résumé ul { padding: 0 .3rem 1.16rem 1.35rem; line-height: 1.8; color: var(--light-muted); }
.résumé li + li { margin-top: .19rem; }
.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; }
.timeline li { display: grid; grid-template-columns: minmax(70px,100px) minmax(0,1fr); gap: .82rem; padding: 1.3rem 0; border-bottom: 1px solid var(--dark-line); align-items: baseline; }
.timeline .year { color: var(--gold); font-weight: 820; font-size: 1.33rem; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.18rem; }
.timeline p { color: var(--light-muted); margin-top: .45rem; }
.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: #fff; font-weight: 780; }
.d-day-label span { background: #ffffff18; 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 { color: var(--ink); 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(--light-muted); line-height: 1.42; word-break: keep-all; }
.media-group + .media-group { margin-top: 2rem; }
.media-grid { display: grid; gap: clamp(12px,2.5vw,27px); list-style: none; padding: 0; margin-top: .9rem; }
.media-shorts { grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),260px)); }
.media-wide { grid-template-columns: repeat(auto-fit,minmax(min(100%,310px),560px)); }
.media-item { min-width: 0; }
.media-player { display: block; width: 100%; aspect-ratio: 16/9; background: #080e17; border: 0; border-radius: 7px; object-fit: contain; }
.media-shorts .media-player { aspect-ratio: 9/16; }
.media-item h4 { margin: .48rem 0 0; font-size: 1rem; overflow-wrap: anywhere; }
.media-item a { color: var(--light-muted); font-size: .88rem; text-underline-offset: .2em; }
.guestbook-form { padding: clamp(1rem,3vw,1.7rem); background: #fff; color: var(--ink); border-radius: 8px; }
.guestbook-form label { display: block; font-weight: 750; margin-bottom: .32rem; }
.guestbook-form input, .guestbook-form textarea {
  width: 100%; display: block; font: inherit; color: inherit; background: #fff;
  border: 1px solid #64748b; border-radius: 5px; padding: .55rem .7rem;
}
.guestbook-form input { margin-bottom: .95rem; }
.guestbook-form textarea { resize: vertical; }
.guestbook-form-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .85rem; }
.guestbook-form-end p { font-size: .92rem; color: var(--muted); }
.guestbook-form button:disabled, .guestbook-board button:disabled { opacity: .6; }
.guestbook-board { margin-top: 1.7rem; }
.guestbook-board h3 { font-size: 1.15rem; }
.guestbook-status { margin-top: .6rem; }
.guestbook-board .guestbook-status { color: var(--light-muted); }
.guestbook-form .guestbook-status { color: var(--navy); }
.guestbook-list { list-style: none; padding: 0; margin-top: .65rem; }
.guestbook-list li { padding: .9rem 0; border-top: 1px solid var(--dark-line); min-width: 0; }
.guestbook-entry-meta { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: .18rem .8rem; overflow-wrap: anywhere; }
.guestbook-entry-meta time { color: var(--light-muted); font-size: .86rem; }
.guestbook-list li p { margin-top: .3rem; white-space: pre-wrap; }
.guestbook-board > button { margin-top: .65rem; }
.footer { background: var(--navy); 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; }
#invitation-popup {
  width: min(calc(100% - 24px), 510px);
  width: min(calc(100% - 24px), 510px, max(240px, calc((100dvh - 84px) * .8887)));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid #ffffff37;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  overscroll-behavior: contain;
}
#invitation-popup::backdrop { background: rgb(0 0 0 / 74%); }
#invitation-popup img { width: 100%; height: auto; background: #0a1220; }
.invitation-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(70px, 25%);
  position: sticky;
  bottom: 0;
  background: var(--navy);
  border-top: 1px solid #ffffff37;
}
.invitation-actions button {
  min-height: 48px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  font-size: .94rem;
  font-weight: 700;
  word-break: keep-all;
}
.invitation-actions button + button { border-left: 1px solid #ffffff37; color: var(--gold); }
.invitation-actions button:hover { background: #ffffff14; }
.invitation-actions button:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
#lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh;
  max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; overflow: hidden;
}
#lightbox[open] { display: grid; place-items: center; }
#lightbox::backdrop { background: rgb(0 0 0 / 89%); }
body:has(#lightbox[open], #invitation-popup[open]) { overflow: hidden; }
.viewer-layout { position: relative; display: flex; align-items: center; gap: 14px; outline: none; }
#viewer-image {
  width: auto; height: auto; max-width: min(calc(100vw - 132px), 1500px);
  max-height: calc(100dvh - 48px); object-fit: contain;
}
.viewer-arrow {
  flex: none; display: grid; place-items: center;
  width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  color: white; background: #353535;
}
.viewer-arrow:hover { background: #505050; }
.viewer-arrow:focus-visible { outline-color: white; }
.viewer-arrow::before {
  content: ""; width: 10px; height: 10px; border-top: 2px solid currentColor;
  border-right: 2px solid currentColor; transform: translateX(-2px) rotate(45deg);
}
#viewer-prev::before { transform: translateX(2px) rotate(-135deg); }
@media (max-width: 650px) {
  #viewer-image { max-width: calc(100vw - 24px); max-height: calc(100dvh - 52px); }
  .viewer-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; }
  #viewer-prev { left: 6px; }
  #viewer-next { right: 6px; }
}
@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, .cheer-layout { gap: 24px; }
}
@media (max-width: 900px) {
  .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(--navy); 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; }
}
@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; }
  .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-visual { justify-self: stretch; width: 100%; }
  .hero-photo img { aspect-ratio: 1.38; object-position: center 5%; }
  .hero-photo figcaption { padding: 1.7rem .8rem .54rem; }
  .intro-layout, .profile-layout, .footsteps, .cheer-layout { 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; } }
