/* Shared visual rhythm. Loaded last so legacy page layouts retain their structure. */
:root {
  --ui-body: Inter, "Noto Sans KR", sans-serif;
  --ui-display: Oswald, "Noto Sans KR", sans-serif;
  --ui-radius: 12px;
  --ui-shadow: 0 4px 20px rgba(0, 0, 0, .035);
}
body { font-family: var(--ui-body); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
[lang="ko"] { word-break: keep-all; line-break: strict; }
p[lang="ko"], .ko-block p, body.ko p { line-height: 1.8; }
/* Prevent bilingual content flashing before deferred language scripts run. */
html[lang="en"] body.dark-hero-page [data-lang="ko"],
html[lang="ko"] body.dark-hero-page [data-lang="en"] { display: none; }
:focus-visible { outline: 3px solid #a78210; outline-offset: 4px; }
.btn, .jf-btn {
  min-height: 46px; border-radius: 7px;
  font-family: var(--ui-body); font-size: 14px; font-weight: 650;
  letter-spacing: .01em; text-transform: none;
}
.topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid #d4af37;
  background: #d4af37;
  color: #111;
  font-family: var(--ui-body);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .005em;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.topbar-cta:hover {
  border-color: #e2c25c;
  border-bottom-color: #e2c25c;
  background: #e2c25c;
  color: #111;
  transform: translateY(-1px);
}
.topbar-social { margin-left: 8px; }
.track-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(145deg, #1c1c1c, #0d0d0d);
  border: 1px solid rgba(212, 175, 55, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 14px -6px rgba(13, 13, 13, .45);
  color: #d4af37;
}
.track-icon svg { width: 32px; height: 32px; }
.nowrap { white-space: nowrap; }
.track-icon-blue { color: #d4af37; }
.tag-support { background: #202020; color: #fff; }
.btn-outline-blue { border-color: #343434; color: #222; }
.btn-outline-blue:hover { background: #222; color: #fff; }
.page-hero-dark { min-height: 280px; padding: 48px 24px; }
.page-hero-dark .page-hero-inner { max-width: 1080px; }
.page-hero-dark h1 {
  font-family: var(--ui-display); font-size: 46px; line-height: 1.15;
  font-weight: 600; letter-spacing: .005em; margin: 12px 0 18px;
}
.page-hero-sub, .programs-hero-copy, .about-hero-intro {
  font-size: 17px; line-height: 1.65; max-width: 64ch;
}
.home .hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.14; letter-spacing: -.025em; }
.program-heading h2, .programs-chooser h2, .programs-approach h2,
.programs-coaching h2, .programs-final h2, .team-next h2,
.about-page .about-section-heading h2 {
  font-family: var(--ui-body); font-size: clamp(26px, 3vw, 32px);
  line-height: 1.25; letter-spacing: -.025em; font-weight: 650;
}
.info-card { border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); }
.info-card::before { display: none; }
.info-card h2 {
  font-family: var(--ui-body); font-size: 22px; line-height: 1.3;
  letter-spacing: -.02em; text-transform: none;
}
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="date"], .field select, .field textarea {
  font-family: var(--ui-body); font-size: 16px; min-height: 48px; border-radius: 7px;
}
.about-page .about-toc {
  display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 22px;
  padding-bottom: 5px; scrollbar-width: thin;
}
.about-page .about-toc a {
  flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 0; border: 0; border-bottom: 2px solid transparent;
  border-radius: 0; background: transparent; font-size: 13px;
  letter-spacing: 0; text-transform: none; color: #4d4b45;
}
.about-page .about-toc a:hover, .about-page .about-toc a:focus-visible {
  background: transparent; border-color: #a78210; color: #111;
}
.about-page #who-we-are { padding-top: 28px; }
/* Policy pages use the public site's editorial scale, not an oversized document cover. */
body.dark-hero-page > .hero { min-height: 280px; padding: 0; text-align: left; }
body.dark-hero-page > .hero .hero-inner {
  width: min(1080px, calc(100% - 48px)); grid-template-columns: minmax(0, 1fr) 120px;
  gap: 32px; padding-block: 64px 40px;
}
body.dark-hero-page > .hero h1 {
  font: 600 46px/1.15 var(--ui-display); letter-spacing: .005em; margin: 12px 0 18px;
}
body.dark-hero-page > .hero .hero-sub { font-size: 17px; line-height: 1.65; max-width: 64ch; }
body.dark-hero-page > .hero .hero-copy { text-align: left; }
body.dark-hero-page > .hero .hero-crest { width: 120px; max-height: 160px; object-fit: contain; }
body.dark-hero-page .intro h2 { font-size: 32px; line-height: 1.25; }
body.dark-hero-page .card, body.dark-hero-page .sec {
  border-radius: var(--ui-radius); box-shadow: var(--ui-shadow);
}
body.dark-hero-page .card h2, body.dark-hero-page .sec h2 {
  font-family: var(--ui-body); font-size: 25px; line-height: 1.3; letter-spacing: -.02em;
}
body.dark-hero-page .card-icon { width: 52px; height: 52px; border-radius: 10px; }
body.dark-hero-page .lang { box-shadow: none; }
body.dark-hero-page .lang button { min-height: 40px; }
.jf-hero-body { text-align: left; max-width: 62ch; line-height: 1.8; margin-inline: auto; }
.jf-h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.3; }
.jf-choice-card h3, .jf-org-card h3, .jf-info-panel h3, .jf-status-card h3,
.jf-summary-heading h2 { font-family: var(--ui-body); font-size: 20px; line-height: 1.4; text-transform: none; }
.jf-choice-card, .jf-org-card, .jf-info-panel, .jf-summary-card,
.jf-form-card { border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); }
.jf-choice-card-highlight { background: #fbf8ed; }
@media (max-width: 640px) {
  .jf-header-inner { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .jf-header-actions { flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
  .jf-lang-btn { min-height: 44px; }
  .jf-btn-header { min-width: 166px; padding-inline: 10px; font-size: 13px; }
  .page-hero-dark { padding: 34px 20px; min-height: 220px; }
  .page-hero-dark h1 { font-size: 32px; line-height: 1.2; }
  .page-hero-sub, .programs-hero-copy, .about-hero-intro { font-size: 16px; }
  .home .hero h1 { font-size: 38px; }
  .about-page .about-toc-wrap { padding-top: 10px; }
  .about-page #who-we-are { padding-top: 22px; }
  body.dark-hero-page > .hero .hero-inner {
    width: calc(100% - 40px); grid-template-columns: minmax(0, 1fr);
    padding-block: 74px 32px; gap: 0;
  }
  body.dark-hero-page > .hero h1 { font-size: 32px; line-height: 1.2; }
  body.dark-hero-page > .hero .hero-crest { display: none; }
  body.dark-hero-page .intro h2 { font-size: 28px; }
  body.dark-hero-page .card h2, body.dark-hero-page .sec h2 { font-size: 23px; }
  .jf-hero-h1 { font-size: 36px; line-height: 1.25; }
  .jf-hero-body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
