@font-face {
  font-family: Pretendard;
  src: url("PretendardVariable.woff2") format("woff2");
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --blue: #003b83;
  --red: #e60012;
  --ink: #171c24;
  --text: #46505d;
  --line: #dfe5ec;
  --soft: #f5f7fa;
  --width: 1420px;
  --gutter: clamp(24px, 4vw, 64px);
  --title: 34px/48px Pretendard, "Noto Sans KR", system-ui, sans-serif;
  --body: 18px/28px Pretendard, "Noto Sans KR", system-ui, sans-serif;
  --reading: 17px/28px Pretendard, "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
  background: white;
  font: var(--body);
  letter-spacing: -.002em;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
main { min-height: 42vh; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #236dcc; outline-offset: 4px; }
.shell { width: min(calc(100% - var(--gutter) * 2), var(--width)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 12px; padding: 10px 14px; z-index: 20; background: white; color: var(--blue); }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: white; }
.site-header.scrolled { box-shadow: 0 5px 16px rgb(17 32 53 / .07); }
.header-inner { position: relative; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; width: fit-content; flex-shrink: 0; }
.brand img { width: 49px; height: 39px; object-fit: contain; }
.brand strong { color: #231815; font-size: 23px; font-weight: 760; letter-spacing: -.042em; line-height: 1.18; white-space: nowrap; }
#main-nav { display: flex; align-self: stretch; align-items: stretch; gap: clamp(20px, 3.4vw, 52px); }
#main-nav > a { display: grid; place-items: center; position: relative; font-size: 18px; font-weight: 600; white-space: nowrap; }
#main-nav > a:hover, #main-nav > a[aria-current] { color: var(--blue); }
#main-nav > a[aria-current]::after { content: ""; height: 2px; background: var(--blue); position: absolute; inset: auto 0 0; }
.family, .textlink { display: inline-flex; gap: 8px; align-items: baseline; min-height: 34px; color: var(--blue); font-size: 16px; line-height: 24px; letter-spacing: .0057em; font-weight: 600; }
.family { align-items: center; font-size: 15px; line-height: 22px; white-space: nowrap; }
.family:hover, .textlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.mobile-family, .menu-toggle { display: none; }

.hero-shell { padding-top: 20px; }
.hero { height: 540px; position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; background: #15283d; color: white; }
.hero-image { position: absolute; top: 0; right: 0; width: 83%; height: 100%; object-fit: cover; object-position: 57% 43%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#15283d 0%,#15283d 17%,rgb(21 40 61 / .92) 27%,rgb(21 40 61 / .45) 52%,rgb(21 40 61 / .04) 88%); }
.hero-content { width: calc(100% - 96px); margin-inline: auto; padding-top: 86px; }
.hero h1 { font-size: clamp(42px, 4vw, 58px); line-height: 1.22; letter-spacing: -.048em; font-weight: 600; }
.hero p { font-size: 18px; line-height: 28px; letter-spacing: -.002em; margin-top: 22px; }

.shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; margin-top: 24px; }
.shortcuts a { display: grid; gap: 4px; align-content: center; position: relative; min-height: 98px; padding: 16px 42px 16px 22px; transition: background-color .18s; }
.shortcuts a:first-child { border-radius: 11px 0 0 11px; }
.shortcuts a:last-child { border-radius: 0 11px 11px 0; }
.shortcuts a + a { border-left: 1px solid var(--line); }
.shortcuts a:hover { background: var(--soft); }
.shortcuts strong { font-size: 19px; line-height: 30px; letter-spacing: -.007em; font-weight: 600; }
.shortcuts span { font-size: 15px; line-height: 22px; letter-spacing: .0096em; color: var(--text); }
.shortcuts b { position: absolute; right: 18px; top: calc(50% - 13px); color: var(--blue); font-weight: 500; }

.section { padding-block: clamp(56px, 6vw, 92px); }
.soft { background: var(--soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.section-head h2 { font: var(--title); font-weight: 700; letter-spacing: -.02615em; }
.section-head p, .page-intro p { color: var(--text); margin-top: 8px; }
.section-head > a { flex-shrink: 0; }

.race-grid, .info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.info-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.race-card, .panel, .address-panel { background: white; border: 1px solid var(--line); border-radius: 12px; }
.race-card { overflow: hidden; transition: border-color .18s; }
.race-card:hover, .race-card:focus-within { border-color: #93aac8; }
.race-info, .panel, .address-panel { padding: clamp(20px, 2.5vw, 34px); }
.race-meta { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.race-meta time { color: var(--blue); font-size: 30px; line-height: 42px; font-weight: 700; letter-spacing: -.02445em; font-variant-numeric: tabular-nums; }
.race-meta small { font-size: 16px; letter-spacing: .0057em; }
.race-meta > span, .category { display: inline-block; color: var(--blue); background: #edf3fb; border-radius: 4px; padding: 2px 8px; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .0145em; white-space: nowrap; }
h3 { font-size: 24px; line-height: 34px; letter-spacing: -.023em; font-weight: 600; }
.race-info > p, .panel > p, .feature p, .address-panel p { margin-top: 10px; color: var(--text); font: var(--reading); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
.panel > a, .feature > div > a, .table-wrap + a { margin-top: 16px; }
.section-photo { width: 100%; max-width: 100%; aspect-ratio: 2.45; object-fit: cover; object-position: 50% 44%; background: var(--soft); }
.feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 72px); align-items: center; }
.feature .section-photo { aspect-ratio: 1.62; object-position: 50% 60%; border-radius: 12px; }
.facts { margin-top: 16px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(76px, 16%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font: var(--reading); }
.facts dt { font-weight: 600; }
.facts dd { color: var(--text); }

.page-intro { padding: 30px 0 58px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-intro h1 { font-size: 42px; line-height: 56px; letter-spacing: -.02866em; font-weight: 700; margin-top: 24px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: 14px; line-height: 20px; letter-spacing: .0145em; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { font-weight: 600; color: var(--blue); }

.news-list { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.news-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; min-height: 64px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.news-list a:hover, .accordion summary:hover { color: var(--blue); background: #edf3fb; }
.news-list strong { font-weight: 600; }
.news-list a > span:last-child { color: var(--blue); }

.table-wrap { overflow-x: auto; background: white; border-top: 2px solid var(--ink); }
table { width: 100%; border-collapse: collapse; text-align: left; font: var(--reading); }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
thead { background: #edf3fb; }
th { font-weight: 600; }
tbody th { white-space: nowrap; }

.accordion { border-top: 2px solid var(--ink); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; gap: 12px; min-height: 64px; position: relative; cursor: pointer; padding: 16px 46px 16px 16px; font-size: 18px; line-height: 28px; font-weight: 600; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary > span:last-child { position: absolute; top: calc(50% - 1px); right: 18px; width: 14px; height: 2px; background: var(--blue); }
.accordion details:not([open]) summary > span:last-child::after { content: ""; position: absolute; inset: 0; background: inherit; transform: rotate(90deg); }
.detail-body { color: var(--text); font: var(--reading); padding: 0 16px 20px; }
.detail-body .textlink { margin-top: 10px; }
.policy-body { border-top: 2px solid var(--ink); }
.policy-body section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.policy-body p { color: var(--text); font: var(--reading); margin-top: 9px; }
.policy-body p a, .facts a, .panel p a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.checks { padding-left: 20px; margin-top: 10px; color: var(--text); font: var(--reading); }
.checks li + li { margin-top: 6px; }

.site-footer { border-top: 1px solid var(--line); background: white; }
.footer-inner { padding-block: 40px; }
.footer-policy { display: flex; flex-wrap: wrap; column-gap: 26px; margin: 11px 0 13px; }
.footer-policy a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-size: 16px; line-height: 24px; letter-spacing: .0057em; font-weight: 600; }
.footer-policy a:hover, .footer-policy a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.footer-details { color: var(--text); font-size: 15px; line-height: 22px; letter-spacing: .0096em; }
.footer-details strong { color: var(--ink); font-size: 16px; font-weight: 600; }
.footer-details address { display: block; font-style: normal; margin: 5px 0 13px; }
.footer-details a:hover { text-decoration: underline; }

.reveal-in { animation: arrive .43s ease-out both; }
@keyframes arrive {
  from { opacity: .72; translate: 0 10px; }
  to { opacity: 1; translate: none; }
}

@media (max-width: 1100px) {
  .hero { height: 500px; }
  .hero-content { padding-top: 72px; }
}

@media (max-width: 800px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 89px; }
  .header-inner { min-height: 76px; flex-wrap: wrap; gap: 0; }
  .brand img { width: 42px; height: 34px; }
  .brand strong { font-size: 20px; }
  .header-inner > .family { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; border: 0; background: white; color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; }
  #main-nav { width: 100%; display: grid; gap: 0; }
  #main-nav > a { justify-items: start; padding: 10px 6px; border-top: 1px solid var(--line); }
  #main-nav > a[aria-current]::after { display: none; }
  .menu-toggle:not([hidden]) + #main-nav { position: absolute; top: 100%; left: calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); padding: 4px var(--gutter) 14px; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 12px 18px rgb(17 32 53 / .08); max-height: calc(100dvh - 76px); overflow-y: auto; }
  .menu-toggle[aria-expanded="false"]:not([hidden]) + #main-nav { display: none; }
  .mobile-family { display: block; padding: 10px 6px 0; }
  .hero-shell { padding-top: 12px; }
  .hero { height: 490px; border-radius: 12px; }
  .hero-image { width: 100%; object-position: 55% 38%; }
  .hero::before { background: linear-gradient(180deg,rgb(12 24 39 / .10) 18%,rgb(12 24 39 / .40) 44%,rgb(12 24 39 / .95) 91%); }
  .hero-content { position: absolute; width: calc(100% - 44px); padding: 0; left: 22px; bottom: 38px; }
  .hero h1 { font-size: 42px; line-height: 56px; letter-spacing: -.02866em; }
  .hero p { font-size: 16px; line-height: 24px; letter-spacing: .0057em; margin-top: 12px; }
  .shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
  .shortcuts a { min-height: 81px; padding: 10px 28px 10px 13px; }
  .shortcuts a:nth-child(odd) { border-left: 0; }
  .shortcuts a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .shortcuts b { right: 10px; }
  .section-head h2 { font-size: 30px; line-height: 42px; letter-spacing: -.02445em; }
  .page-intro { padding-bottom: 43px; }
  .page-intro h1 { font-size: 38px; line-height: 52px; letter-spacing: -.0276em; }
}

@media (max-width: 570px) {
  .race-grid, .feature { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; gap: 6px; }
  .shortcuts span { font-size: 14px; line-height: 20px; letter-spacing: .0145em; }
  .shortcuts strong { font-size: 17px; line-height: 26px; }
  .news-list a { padding-inline: 8px; gap: 8px; }
  th, td { padding: 9px 7px; }
  .table-wrap table { font-size: 15px; line-height: 22px; }
  .footer-policy { column-gap: 17px; }
  .footer-details address a { display: block; margin-top: 3px; }
  .footer-separator { display: none; }
}
@media (max-width: 355px) {
  .hero h1 { font-size: 38px; line-height: 52px; }
  .brand strong { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media (min-width: 801px) and (max-width: 1000px) {
  .header-inner { gap: 18px; }
  #main-nav { gap: 18px; }
  .brand strong { font-size: 21px; }
}
