/* UI Kit — Website styles. Layered on top of colors_and_type.css */
@import url('../../colors_and_type.css');

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--canvas-white);
  color: var(--fg-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
}

/* ============ WCAG 3.0 / ACCESSIBILITY ============ */
/* Skip-to-content link */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--midnight-purple); color: #fff;
  padding: 12px 20px; border-radius: 0 0 12px 12px;
  font-weight: 600; font-size: 14px;
  z-index: 9999; transition: top 180ms var(--ease-standard);
}
.skip-link:focus { top: 0; color: #fff; }

/* Strong focus indicators — WCAG 3.0 visible focus */
:focus-visible {
  outline: 3px solid var(--scouting-purple);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible, .cta-banner :focus-visible, .pd-header :focus-visible, .footer :focus-visible {
  outline-color: #FFE600;
  outline-offset: 3px;
}

/* Screen-reader-only text */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .prog:hover, .btn-primary:hover { transform: none !important; }
}

/* Page frame */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.section { padding: 96px 32px; }
.section-tight { padding: 64px 32px; }
.container { max-width: 1200px; margin: 0 auto; }
.container-narrow { max-width: 960px; margin: 0 auto; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg, rgba(255,255,255,0.82));
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border-hair);
  transition: background var(--duration-normal) var(--ease-standard);
}
[data-theme="dark"] .nav { --nav-bg: rgba(15, 14, 20, 0.82); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 72px; display: flex; align-items: center; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.nav-logo img { width: 32px; height: 32px; }
.nav-logo .wm { font-family: var(--font-en); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.nav-logo .wm .pt { color: var(--scouting-purple); }
.nav-links { flex: 1; display: flex; gap: 28px; justify-content: center; font-size: 14px; font-weight: 500; color: var(--fg-secondary); }
.nav-links .nlink {
  cursor: pointer; transition: color var(--duration-fast) var(--ease-standard);
  background: none; border: none; font: inherit; color: inherit;
  padding: 8px 4px; display: inline-flex; align-items: center;
  font-size: 15px; font-weight: 500;
}
.nav-links .nlink:hover { color: var(--brand-text); }
.nav-links .nlink.active { color: var(--brand-text); font-weight: 700; }
.nav-links .nlink.open { color: var(--brand-text); }

/* ============ NAV DROPDOWN ============ */
.nav-group { position: relative; }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 8px; min-width: 220px;
  background: var(--bg-elevated); border: 1px solid var(--border-subtle);
  border-radius: 14px; box-shadow: var(--shadow-md);
  padding: 6px; z-index: var(--z-dropdown);
  animation: dp-dropdown-in 160ms var(--ease-out);
}
@keyframes dp-dropdown-in {
  from { opacity: 0; transform: translate(-50%, -4px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
/* Invisible bridge between trigger and panel so cursor can travel without
   hover gap closing the dropdown. */
.nav-dropdown::before {
  content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px;
}
.nav-dropdown-item {
  display: block; width: 100%; text-align: left;
  padding: 10px 14px; border-radius: 8px;
  background: transparent; border: none; cursor: pointer; font: inherit;
  font-size: 14px; color: var(--fg-primary);
  transition: background var(--duration-fast), color var(--duration-fast);
}
.nav-dropdown-item:hover {
  background: rgba(98, 37, 153, 0.12); color: var(--brand-text);
}
.nav-dropdown-item.active { color: var(--brand-text); font-weight: 700; }
.nav-dropdown-sep {
  height: 1px; background: var(--border-hair); margin: 6px 4px;
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--fg-muted); user-select: none; }
.lang-toggle button { background: none; border: none; font: inherit; color: inherit; cursor: pointer; padding: 4px 6px; border-radius: 4px; }
.lang-toggle button.on { color: var(--fg-primary); font-weight: 700; }
/* Theme toggle (sun / system / moon). Three-state segmented control. */
.theme-toggle {
  display: inline-flex; align-items: center;
  background: var(--bg-muted); border: 1px solid var(--border-default);
  border-radius: 999px; padding: 2px;
  color: var(--fg-muted);
}
.theme-toggle button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 26px; padding: 0;
  background: none; border: none; cursor: pointer; color: inherit;
  border-radius: 999px; transition: color var(--duration-fast), background var(--duration-fast);
}
.theme-toggle button:hover { color: var(--fg-primary); }
.theme-toggle button.on {
  background: var(--canvas-white); color: var(--scouting-purple);
  box-shadow: var(--shadow-xs);
}
[data-theme="dark"] .theme-toggle button.on { color: var(--sunshine-yellow); }
.nav-logo { background: none; border: none; font: inherit; color: inherit; cursor: pointer; padding: 0; }

/* ============ BUTTONS ============
   Single base + 4 variants + 3 sizes. No variant overrides padding;
   sizing comes only from .btn-sm / .btn-md (default) / .btn-lg.
*/
.btn {
  /* layout */
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  /* sizing — default = md */
  padding: 12px 22px; font-size: 15px; line-height: 1;
  /* shape & type */
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font-family: var(--font-en); font-weight: 600; text-decoration: none;
  /* interaction */
  cursor: pointer; user-select: none; white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-standard),
              color       var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              transform   var(--duration-fast) var(--ease-standard),
              box-shadow  var(--duration-fast) var(--ease-standard);
  /* reset native button defaults */
  appearance: none; -webkit-appearance: none;
}
.btn:focus-visible { outline: 3px solid var(--scouting-purple); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.45; cursor: not-allowed; pointer-events: none; box-shadow: none; transform: none;
}

/* ── Sizes ───────────────────────────────────────────────────────────── */
.btn-sm  { padding: 8px 16px;  font-size: 13px; gap: 6px; }
.btn-lg  { padding: 16px 28px; font-size: 17px; gap: 10px; }

/* ── Variants ────────────────────────────────────────────────────────── */
/* primary — solid purple, the only filled brand button */
.btn-primary {
  background: var(--scouting-purple); color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover  { background: var(--midnight-purple); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }

/* secondary — outlined neutral button on light backgrounds */
.btn-secondary {
  background: var(--bg-elevated); color: var(--fg-primary);
  border-color: var(--border-default);
}
.btn-secondary:hover  { border-color: var(--fg-primary); background: var(--bg-muted); }
.btn-secondary:active { transform: scale(0.98); }

/* ghost — flat text-link button (no fill, no border) */
.btn-ghost {
  background: transparent; color: var(--scouting-purple);
}
.btn-ghost:hover { background: rgba(98,37,153,0.12); color: var(--brand-text); }

/* white — solid white on dark backgrounds (e.g. hero) */
.btn-white {
  background: #fff; color: var(--midnight-purple);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.btn-white:hover  { background: #FFE600; color: var(--midnight-purple); transform: translateY(-1px); }
.btn-white:active { transform: scale(0.98); }

/* outline — transparent w/ light border, paired with btn-white on dark hero */
.btn-outline {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.45);
}
.btn-outline:hover  { background: rgba(255,255,255,0.10); border-color: #fff; }
.btn-outline:active { transform: scale(0.98); }

/* ── Misc ───────────────────────────────────────────────────────────── */
.btn-block { width: 100%; }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--midnight-purple) 0%, var(--scouting-purple) 100%);
  color: #fff; overflow: hidden;
  padding: 140px 32px 120px;
}
/* Dark mode: --scouting-purple is lightened to lavender (#B695E8) for text
   readability, but using it as a gradient terminus makes the hero look like
   it fades into white. Re-aim the bottom of the gradient at the canvas
   color so the hero blends into the page background instead. */
[data-theme="dark"] .hero {
  background: linear-gradient(180deg, var(--midnight-purple) 0%, var(--canvas-white) 100%);
}
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.hero-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.72); margin-bottom: 28px; }
.hero-title { font-family: var(--font-kr); font-size: clamp(40px, 6vw, 80px); font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 28px; }
.hero-title.en { font-family: var(--font-en); letter-spacing: -0.03em; }
.hero-sub { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,0.85); max-width: 620px; margin: 0 0 40px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-dots { position: absolute; right: 5%; top: 15%; display: flex; flex-direction: column; gap: 24px; z-index: 1; }
.hero-dots .d { width: 14px; height: 14px; border-radius: 50%; }
.hero-dots .d1 { background: var(--blossom-pink); transform: translateX(60px); }
.hero-dots .d2 { background: var(--river-blue); transform: translateX(-20px); }
.hero-dots .d3 { background: var(--leaf-green); transform: translateX(80px); }
.hero-dots .d4 { background: var(--ember-orange); }

/* ============ PARTNER STRIP (home) ============ */
/* Quiet trust band — partner logos / names in grayscale, color on hover.
   Sits between "How it works" and "Programs". Reuses container width. */
.partner-strip { padding: 56px 32px; background: var(--bg-elevated); border-top: 1px solid var(--border-hair); border-bottom: 1px solid var(--border-hair); }
.partner-strip-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted); text-align: center; margin: 0 0 24px; }
.partner-strip-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 32px 48px; }
.partner-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 120px; height: 56px; padding: 8px 16px;
  background: transparent; border: none; cursor: pointer;
  filter: grayscale(1); opacity: 0.55;
  transition: filter var(--duration-fast) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.partner-chip:hover, .partner-chip:focus-visible { filter: grayscale(0); opacity: 1; transform: translateY(-1px); }
.partner-chip img { max-width: 100%; max-height: 48px; object-fit: contain; }
.partner-chip-text {
  font-family: var(--font-en); font-size: 22px; font-weight: 800;
  letter-spacing: -0.01em; color: var(--c, var(--scouting-purple));
  background: linear-gradient(135deg, var(--c, var(--scouting-purple)) 0%, color-mix(in srgb, var(--c, var(--scouting-purple)) 70%, #000) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ============ STATS ============ */
.stats {
  background: var(--canvas-white);
  padding: 64px 32px;
  border-bottom: 1px solid var(--border-hair);
}
.stats-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { }
.stat-n { font-family: var(--font-en); font-size: 56px; font-weight: 700; letter-spacing: -0.03em; color: var(--brand-text); line-height: 1; }
.stat-l { font-size: 14px; color: var(--fg-secondary); margin-top: 10px; line-height: 1.5; }

/* ============ GENERIC SECTION ============ */
.sec-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--scouting-purple); margin-bottom: 16px; }
.sec-title { font-family: var(--font-kr); font-size: clamp(32px, 4vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--fg-primary); margin: 0 0 16px; max-width: 820px; }
.sec-title.en { font-family: var(--font-en); }
.sec-sub { font-size: 18px; color: var(--fg-secondary); line-height: 1.55; max-width: 680px; margin: 0 0 56px; }

/* ============ HOW IT WORKS ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--bg-muted); border-radius: var(--radius-xl); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.step-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; color: var(--scouting-purple); margin-bottom: 4px; }
.step-n { font-family: var(--font-en); font-size: 12px; font-weight: 700; color: var(--scouting-purple); letter-spacing: 0.12em; }
.step-t { font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--fg-primary); margin: 0; }
.step-d { font-size: 15px; color: var(--fg-secondary); line-height: 1.6; margin: 0; }

/* ============ PROGRAM CARDS ============ */
.prog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.prog {
  background: var(--bg-elevated); border-radius: var(--radius-xl); border: 1px solid var(--border-hair);
  padding: 32px; display: flex; flex-direction: column; gap: 14px;
  cursor: pointer; transition: all var(--duration-normal) var(--ease-standard);
  position: relative; overflow: hidden;
}
.prog:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.prog-media { height: 160px; border-radius: var(--radius-lg); margin: -8px -8px 8px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 20px; }
.prog-media::before { content:''; position:absolute; inset:0; background: linear-gradient(160deg, var(--c1) 0%, var(--c2) 100%); }
.prog-media::after { content:''; position:absolute; top:20px; right:20px; width:56px; height:56px; border-radius:50%; background: var(--accent); opacity:0.85; }
.prog-icon { position: absolute; top: 28px; left: 28px; color: #fff; z-index: 2; opacity: 0.95; }
.prog-chips { display: flex; gap: 6px; flex-wrap: wrap; position: relative; z-index: 2; }
/* Chips sit on a coloured card hero with an opaque-white pill bg, so text
   stays fixed dark in BOTH themes — fg-primary would flip near-white and
   vanish on the white pill in dark mode. */
.prog-chips .pc { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--gray-900); font-size: 11px; font-weight: 600; letter-spacing: 0.03em; }
.prog-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--scouting-purple); }
.prog-title { font-family: var(--font-kr); font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--fg-primary); }
.prog-title.en { font-family: var(--font-en); }
.prog-sub { font-size: 15px; color: var(--fg-secondary); line-height: 1.55; }
.prog-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--fg-muted); margin-top: 6px; }
.prog-meta span + span::before { content: '·'; margin-right: 14px; color: var(--gray-300); }
.prog-arrow { position: absolute; bottom: 28px; right: 28px; color: var(--scouting-purple); }

/* ============ CTA BANNER ============ */
.cta-banner { background: var(--midnight-purple); color: #fff; border-radius: var(--radius-2xl); padding: 72px 56px; margin: 0 auto; max-width: 1200px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.cta-banner::after { content:''; position:absolute; right:-80px; top:-80px; width:320px; height:320px; border-radius:50%; background: var(--scouting-purple); opacity: 0.5; z-index: 0; pointer-events: none; }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { font-family: var(--font-kr); font-size: 44px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 12px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.82); font-size: 17px; margin: 0; position: relative; }
.cta-banner .btn-wrap { justify-self: end; position: relative; }

/* ============ FOOTER ============ */
.footer { background: var(--gray-900); color: rgba(255,255,255,0.78); padding: 72px 32px 32px; position: relative; overflow: hidden; }
.footer-bg { display: none; }
.footer-inner { max-width: 1200px; margin: 0 auto; position: relative; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
/* New 4-column layout (brand moved out of the top row). Equal-weight columns. */
.footer-top.footer-top-cols { grid-template-columns: repeat(4, 1fr); }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .wm { font-family: var(--font-en); font-size: 24px; font-weight: 700; color: #fff; }
.footer-brand .wm .pt { color: var(--blossom-pink); }
.footer-brand p { color: rgba(255,255,255,0.62); font-size: 14px; line-height: 1.6; max-width: 320px; margin: 0; }
.footer-col h5, .footer-col .fc-h { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.68); font-weight: 700; margin: 0 0 18px; }
.footer-col a, .footer-col button { display: block; color: rgba(255,255,255,0.85); font-size: 14px; margin-bottom: 10px; cursor: pointer; background: none; border: none; padding: 0; text-align: left; font: inherit; text-decoration: none; }
.footer-col a:hover, .footer-col button:hover { color: #fff; text-decoration: underline; }
.footer-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; font-size: 13px; color: rgba(255,255,255,0.5); gap: 16px; flex-wrap: wrap; }
/* Bottom band that now also carries the brand block (moved down from the
   top row). Brand on the left, rights + version stacked on the right. */
.footer-bot.footer-bot-with-brand { align-items: flex-start; gap: 32px; padding-top: 40px; }
.footer-bot-with-brand .footer-brand { flex: 1 1 320px; min-width: 240px; }
.footer-bot-with-brand .footer-bot-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.footer-ver { font-family: var(--font-mono, monospace); font-size: 12px; letter-spacing: 0.04em; color: rgba(255,255,255,0.45); }

/* ============ PAGE HEADERS ============ */
.phead { padding: 120px 32px 64px; background: var(--bg-muted); border-bottom: 1px solid var(--border-hair); }
.phead .inner { max-width: 1200px; margin: 0 auto; }
.phead h1 { font-family: var(--font-kr); font-size: clamp(40px,5vw,64px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 16px 0 20px; }
.phead h1.en { font-family: var(--font-en); }
.phead p { font-size: 18px; color: var(--fg-secondary); max-width: 680px; line-height: 1.55; margin: 0; }

/* ============ STORIES ============ */
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story { background: var(--bg-elevated); border-radius: var(--radius-xl); border: 1px solid var(--border-hair); padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-xs); }
.story .tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.story blockquote { font-family: var(--font-kr); font-size: 20px; line-height: 1.45; letter-spacing: -0.01em; color: var(--fg-primary); margin: 0; font-weight: 500; }
.story blockquote.en { font-family: var(--font-en); font-weight: 500; }
.story-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border-hair); }
.story-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,var(--c1),var(--c2)); }
.story-name { font-weight: 700; font-size: 14px; }
.story-prog { font-size: 12px; color: var(--fg-muted); }

/* ============ NEWS ============ */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item { display: grid; grid-template-columns: 120px 100px 1fr auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--border-hair); align-items: center; cursor: pointer; transition: background var(--duration-fast) var(--ease-standard); }
.news-item:hover { background: var(--bg-muted); padding-left: 12px; padding-right: 12px; }
.news-tag { padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; justify-self: start; }
.news-date { font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); }
.news-title { font-family: var(--font-kr); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.news-title.en { font-family: var(--font-en); }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border-hair); padding: 28px 0; cursor: pointer; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.faq-q h4 { font-family: var(--font-kr); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.faq-q h4.en { font-family: var(--font-en); }
.faq-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-muted); display: flex; align-items: center; justify-content: center; transition: all var(--duration-normal) var(--ease-standard); color: var(--scouting-purple); }
.faq-item.open .faq-icon { background: var(--scouting-purple); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--duration-slow) var(--ease-standard), padding var(--duration-slow) var(--ease-standard); font-size: 16px; color: var(--fg-secondary); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 400px; padding-top: 16px; }

/* ============ APPLY FORM ============ */
.apply-card { background: var(--bg-elevated); border: 1px solid var(--border-hair); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-sm); }
.step-indicator { display: flex; gap: 8px; margin-bottom: 32px; }
.step-indicator .dot { height: 4px; border-radius: 2px; background: var(--gray-300); flex: 1; transition: all var(--duration-normal); }
.step-indicator .dot.done { background: var(--scouting-purple); }
.step-indicator .dot.active { background: var(--scouting-purple); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; color: var(--fg-primary); }
.field input, .field select, .field textarea { font-family: var(--font-en); font-size: 15px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--border-default); background: var(--bg-elevated); color: var(--fg-primary); outline: none; width: 100%; transition: border var(--duration-fast); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--scouting-purple); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-hair); }
/* (disabled rule is now on .btn) */

/* ============ APPLY — TRACKS & PAYMENT ============ */
.apply-desc { color: var(--fg-secondary); font-size: 15px; line-height: 1.6; margin: 0 0 24px; }
.apply-sub { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-secondary); margin: 28px 0 14px; }
.track-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 4px; }
.track-card { display: block; padding: 20px; background: var(--bg-elevated); border: 2px solid var(--border-default); border-radius: 14px; cursor: pointer; transition: border-color 160ms, box-shadow 160ms; position: relative; }
.track-card input { position: absolute; opacity: 0; pointer-events: none; }
.track-card:hover { border-color: var(--fg-muted); }
.track-card.on { border-color: var(--scouting-purple); box-shadow: 0 0 0 4px rgba(98,37,153,0.14); }
.track-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.track-name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.track-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(98,37,153,0.12); color: var(--scouting-purple); }
.track-desc { font-size: 13px; color: var(--fg-secondary); line-height: 1.55; margin: 0 0 14px; }
.track-price { font-family: var(--font-en); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--fg-primary); }
.tier-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tier-chip { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--bg-elevated); border: 2px solid var(--border-default); border-radius: 10px; cursor: pointer; transition: border-color 160ms; position: relative; }
.tier-chip input { position: absolute; opacity: 0; pointer-events: none; }
.tier-chip:hover { border-color: var(--fg-muted); }
.tier-chip.on { border-color: var(--scouting-purple); background: rgba(98,37,153,0.06); }
.tier-pct { font-family: var(--font-en); font-weight: 700; font-size: 16px; color: var(--fg-primary); }
.tier-fee { font-family: var(--font-en); font-weight: 700; font-size: 14px; color: var(--scouting-purple); }
.pay-summary { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: var(--bg-muted); border-radius: 14px; margin-bottom: 16px; }
.pay-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-secondary); margin-bottom: 4px; }
.pay-amount { font-family: var(--font-en); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg-primary); }
.pay-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--forest-green); font-weight: 600; }
.pay-note { font-size: 12px; color: var(--fg-muted); margin-top: 6px; line-height: 1.5; }
.field .hint { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }

/* ============ PARTNERS ============ */
.partners-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.partner { display: flex; gap: 20px; align-items: flex-start; background: var(--bg-elevated); border: 1px solid var(--border-hair); border-radius: var(--radius-xl); padding: 28px; }
.partner-logo { width: 64px; height: 64px; border-radius: 16px; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-en); font-weight: 700; font-size: 17px; letter-spacing: 0.02em; flex-shrink: 0; }
.partner-body { display: flex; flex-direction: column; gap: 6px; }
.partner-name { font-family: var(--font-kr); font-size: 20px; font-weight: 700; }
.partner-name.en { font-family: var(--font-en); }
.partner-role { font-size: 13px; color: var(--scouting-purple); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.partner-full { font-size: 14px; color: var(--fg-secondary); line-height: 1.55; }

/* ============ ABOUT team ============ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.team-card { background: var(--bg-elevated); border: 1px solid var(--border-hair); border-radius: var(--radius-xl); padding: 28px; }
.team-role { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--scouting-purple); font-weight: 700; }
.team-name { font-family: var(--font-kr); font-size: 24px; font-weight: 700; margin-top: 6px; }
.team-desc { font-size: 14px; color: var(--fg-secondary); line-height: 1.55; margin-top: 10px; }

/* ============ FILTERS ============ */
.filters { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-chip { padding: 8px 16px; border-radius: 999px; background: var(--bg-elevated); border: 1px solid var(--border-default); font-size: 13px; font-weight: 500; color: var(--fg-primary); cursor: pointer; transition: all var(--duration-fast); }
.filter-chip:hover { border-color: var(--fg-primary); }
.filter-chip.on { background: var(--scouting-purple); color: #fff; border-color: var(--scouting-purple); }

/* ============ PROGRAM DETAIL ============ */
.pd-header { background: linear-gradient(160deg, var(--c1), var(--c2)); color: #fff; padding: 120px 32px 80px; border-radius: 0 0 40px 40px; }
.pd-header .inner { max-width: 1200px; margin: 0 auto; }
.pd-back { font-size: 13px; color: rgba(255,255,255,0.7); cursor: pointer; margin-bottom: 24px; display: inline-flex; align-items: center; gap: 6px; }
.pd-kicker { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,0.82); margin-bottom: 16px; }
.pd-title { font-family: var(--font-kr); font-size: clamp(36px, 5vw, 56px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; }
.pd-title.en { font-family: var(--font-en); }
.pd-sub { font-size: 18px; color: rgba(255,255,255,0.85); line-height: 1.55; max-width: 720px; }
.pd-meta { display: flex; gap: 10px; margin-top: 28px; }
.pd-meta .m { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.18); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.pd-body { padding: 80px 32px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; max-width: 1200px; margin: 0 auto; }
.pd-body h3 { font-family: var(--font-kr); font-size: 24px; margin: 0 0 12px; }
.pd-body h3.en { font-family: var(--font-en); }
.pd-body p { color: var(--fg-secondary); line-height: 1.7; font-size: 16px; }
.pd-side { background: var(--bg-muted); border-radius: var(--radius-xl); padding: 32px; position: sticky; top: 96px; align-self: flex-start; }
.pd-side .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-hair); font-size: 14px; }
.pd-side .row:last-child { border-bottom: none; }
.pd-side .row .k { color: var(--fg-muted); }
.pd-side .row .v { font-weight: 600; }

/* ============ ABOUT (Executive Summary) ============ */
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
.about-block { background: var(--bg-elevated); border:1px solid var(--border-subtle); border-radius:18px; padding:24px 28px; }
.about-block-title { font-family: var(--font-kr); font-size: 22px; font-weight: 700; margin: 6px 0 14px; }
.about-list { list-style:none; padding:0; margin:0; }
.about-list li {
  padding: 10px 0; border-top: 1px solid var(--border-hair);
  font-size: 15px; color: var(--fg-secondary); line-height: 1.55;
  display: flex; align-items: flex-start; gap: 8px;
}
.about-list li::before { content: '·'; color: var(--scouting-purple); font-weight: 700; font-size: 18px; line-height: 1; padding-top: 1px; }
.about-list li:first-child { border-top: none; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ============ SCHOLARSHIPS ============ */
.scholarship-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.scholarship-card {
  background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: 18px;
  padding: 24px; position: relative; overflow: hidden;
}
.scholarship-stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); }
.scholarship-card h3 { font-family: var(--font-kr); font-size: 20px; font-weight: 700; margin: 0 0 8px; padding-left: 8px; }
.scholarship-card h3.en { font-family: var(--font-en); }
.scholarship-card p { color: var(--fg-secondary); font-size: 14px; line-height: 1.6; margin: 0; padding-left: 8px; }
@media (max-width: 900px) { .scholarship-grid { grid-template-columns: 1fr; } }

/* ============ LEGAL / CONSENT ============ */
.legal-body {
  max-height: 60vh; overflow-y: auto;
  padding: 14px 18px; margin: 12px 0 4px;
  border: 1px solid var(--border-default); border-radius: 12px;
  background: var(--bg-muted);
  font-size: 13px; line-height: 1.65; color: var(--fg-secondary);
}
.legal-body h2 { font-size: 14px; font-weight: 700; margin: 14px 0 6px; color: var(--fg-primary); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 8px; }
.legal-body ul { padding-left: 18px; margin: 6px 0 8px; }
.legal-body li { margin-bottom: 4px; }
.legal-body strong { color: var(--fg-primary); }

.consent-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--bg-muted); margin-bottom: 8px;
  cursor: pointer;
}
.consent-row:hover { background: rgba(98,37,153,0.06); }
.consent-row input[type="checkbox"] { margin-top: 4px; cursor: pointer; flex-shrink: 0; }
.consent-text { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.consent-required {
  font-size: 11px; font-weight: 700;
  color: var(--state-danger); background: var(--state-danger-bg);
  padding: 2px 6px; border-radius: 4px;
}
.consent-view {
  background: none; border: none; color: var(--scouting-purple);
  cursor: pointer; font: inherit; font-size: 12px; font-weight: 600;
  text-decoration: underline; padding: 0; margin-left: auto;
}

.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: var(--z-toast);
  background: var(--bg-elevated); border: 1px solid var(--border-default);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 14px 18px; display: flex; align-items: center; gap: 14px;
  max-width: 760px; margin: 0 auto;
}
.cookie-banner-text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.cookie-banner-text strong { color: var(--fg-primary); font-weight: 700; }
.cookie-banner-text span:not(strong) { color: var(--fg-secondary); }
.cookie-banner-actions { display: flex; gap: 6px; flex-shrink: 0; }
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: flex-end; }
}

/* ============ PROGRAMS BOARD (admin) ============
   Small inline override; admin-specific table styling is here so we can
   swap layouts without touching the admin script. */
.programs-board { width: 100%; border-collapse: collapse; font-size: 14px; }
.programs-board th { text-align: left; padding: 11px 14px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); font-weight: 700; border-bottom: 1px solid var(--border-default); background: var(--bg-muted); }
.programs-board td { padding: 12px 14px; border-bottom: 1px solid var(--border-hair); vertical-align: middle; }
.programs-board tr:hover td { background: var(--bg-muted); cursor: pointer; }
.programs-board tr.sel td { background: rgba(98,37,153,0.06); }
.programs-board tr:last-child td { border-bottom: none; }
.programs-board input[type="checkbox"] { cursor: pointer; }

/* ============ TOP NOTICE BANNER ============
   Diagonal stripe pattern for "under development" / launch warnings. */
.topnotice {
  position: relative;
  padding: 9px 16px;
  text-align: center;
  font-size: 13px; font-weight: 600;
  color: var(--midnight-purple);
  letter-spacing: -0.005em;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(77, 0, 110, 0.05) 0,
      rgba(77, 0, 110, 0.05) 12px,
      rgba(255, 212, 0, 0.20) 12px,
      rgba(255, 212, 0, 0.20) 24px);
  background-color: #FFF7CC;
  border-bottom: 1px solid rgba(77, 0, 110, 0.15);
}
.topnotice.info     { color:#1D4ED8; background-color:#DBEAFE; background-image: repeating-linear-gradient(135deg, rgba(29,78,216,0.04) 0, rgba(29,78,216,0.04) 12px, rgba(29,78,216,0.12) 12px, rgba(29,78,216,0.12) 24px); }
.topnotice.warning  { color: var(--state-warning); background-color:#FEF3C7; background-image: repeating-linear-gradient(135deg, rgba(180,83,9,0.04) 0, rgba(180,83,9,0.04) 12px, rgba(180,83,9,0.18) 12px, rgba(180,83,9,0.18) 24px); }

/* ============ TEAM PAGE ============ */
.team-page-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px;
}
.team-page-card {
  background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: 18px;
  overflow: hidden; transition: border-color 120ms, box-shadow 120ms;
  display: flex; flex-direction: column;
}
.team-page-card:hover { border-color: var(--scouting-purple); box-shadow: var(--shadow-sm); }
.team-page-photo {
  aspect-ratio: 4 / 3; background-color: var(--bg-muted);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: 64px; font-weight: 800;
  color: rgba(98, 37, 153, 0.20);
}
.team-page-body { padding: 18px 20px 24px; }
.team-page-name { font-family: var(--font-en); font-size: 18px; font-weight: 700; }
.team-page-role { font-size: 13px; color: var(--scouting-purple); margin: 2px 0 10px; font-weight: 600; }
.team-page-bio  { font-size: 14px; line-height: 1.6; color: var(--fg-secondary); margin: 0; }

@media (max-width: 900px) {
  .team-page-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .team-page-grid { grid-template-columns: 1fr; }
}

/* ============ CONTACT TABS ============ */
.contact-tabs {
  display: inline-flex; padding: 4px; background: var(--bg-muted);
  border-radius: 999px; gap: 2px; margin-bottom: 28px;
}
.contact-tab {
  background: transparent; border: none; cursor: pointer;
  padding: 10px 20px; border-radius: 999px; font: inherit;
  font-size: 14px; font-weight: 600; color: var(--fg-secondary);
  transition: background var(--duration-fast), color var(--duration-fast);
}
.contact-tab:hover { color: var(--fg-primary); }
.contact-tab.active {
  background: var(--midnight-purple); color: #fff;
}

/* ============ ERROR PAGES ============
   Visual: large code on left, illustration in soft purple circle on
   right with 4 brand-color accent dots; helpful-links card below. */
.errpage { padding: 96px 32px 56px; max-width: 1200px; margin: 0 auto; }
.errpage-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
  align-items: center; min-height: 380px;
}
.errpage-text { display: flex; flex-direction: column; gap: 18px; }
.errpage-code {
  font-family: var(--font-en); font-weight: 800;
  font-size: clamp(56px, 8vw, 112px); line-height: 1;
  letter-spacing: -0.04em; color: var(--midnight-purple);
}
.errpage-title {
  font-family: var(--font-kr); font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15; letter-spacing: -0.02em; font-weight: 800;
  margin: 0; color: var(--fg-primary); white-space: pre-line;
}
.errpage-body {
  font-size: 15px; line-height: 1.65; color: var(--fg-secondary);
  margin: 0; max-width: 460px; white-space: pre-line;
}
.errpage-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.errpage-note { font-size: 13px; color: var(--fg-muted); margin: 0; }
.errpage-note a { color: var(--scouting-purple); }

.errpage-illust { position: relative; aspect-ratio: 1; width: 100%; max-width: 440px; margin: 0 auto; }
.errpage-circle {
  position: absolute; inset: 12% 12%; border-radius: 50%;
  background: rgba(98, 37, 153, 0.10);
  display: flex; align-items: center; justify-content: center;
  color: var(--midnight-purple);
}
.errpage-circle i { color: var(--midnight-purple); }

.errpage-dot { position: absolute; border-radius: 50%; }
.errpage-dot.d1 { width: 22px; height: 22px; top: 6%;  right: 18%; background: var(--blossom-pink); }
.errpage-dot.d2 { width: 18px; height: 18px; top: 28%; right: 4%;  background: #82E6DE; /* teal */ }
.errpage-dot.d3 { width: 18px; height: 18px; bottom: 12%; left: 8%; background: var(--leaf-green); }
.errpage-dot.d4 { width: 22px; height: 22px; bottom: 4%; right: 22%; background: var(--ember-orange); }

.errpage-helpful-wrap { padding: 0 32px 96px; max-width: 1200px; margin: 0 auto; }
.errpage-helpful {
  background: var(--bg-muted); border-radius: 18px;
  padding: 24px 28px;
}
.errpage-helpful-h {
  font-size: 13px; font-weight: 700; color: var(--fg-secondary);
  margin-bottom: 12px;
}
.errpage-helpful-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.errpage-helpful-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-radius: 10px;
  background: transparent; color: var(--scouting-purple);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.errpage-helpful-link:hover { background: rgba(98, 37, 153, 0.06); }
.errpage-helpful-link i { color: var(--fg-muted); }

@media (max-width: 900px) {
  .errpage { padding: 56px 24px 40px; }
  .errpage-grid { grid-template-columns: 1fr; gap: 32px; }
  .errpage-illust { max-width: 280px; }
  .errpage-helpful-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .errpage-helpful-grid { grid-template-columns: 1fr; }
}

/* ============ LINE BREAK SUPPORT ============
   Any element that renders admin-editable copy honors literal \n line
   breaks via `white-space: pre-line`. Type Enter in the admin and the
   line break shows up on the public site. */
.hero-title, .hero-sub, .hero-kicker,
.phead h1, .phead p,
.sec-title, .sec-sub, .sec-kicker,
.cta-banner h2, .cta-banner p,
.team-desc, .step-d, .step-t, .step-n,
.faq-a, .faq-q h4,
.partner-role, .partner-full,
.story blockquote, .story-prog,
.news-title,
.prog-sub, .prog-title, .prog-kicker,
.pd-sub, .pd-title, .pd-body p,
.pd-side .row .v,
.apply-desc {
  white-space: pre-line;
}

/* ============ AUTH MODAL ============ */
.auth-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: flex;
  align-items: center; justify-content: center; z-index: 9000; padding: 24px;
  backdrop-filter: blur(4px);
}
.auth-modal {
  background: var(--bg-elevated); border-radius: 20px; padding: 36px;
  max-width: 440px; width: 100%; position: relative;
  box-shadow: 0 24px 64px rgba(77,0,110,0.18);
  max-height: 90vh; overflow-y: auto;
}
.auth-modal h2 { font-family: var(--font-en); font-size: 28px; font-weight: 700; margin: 0 0 6px; color: var(--brand-text); }
.auth-sub { color: var(--fg-secondary); font-size: 14px; margin: 0 0 24px; }
.auth-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border: none; background: transparent; font-size: 24px; cursor: pointer;
  color: var(--fg-muted); border-radius: 8px;
}
.auth-close:hover { background: var(--bg-muted); color: var(--fg-primary); }
.auth-field { display: block; margin-bottom: 14px; }
.auth-field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--fg-primary); }
.auth-field input,
.auth-field textarea {
  width: 100%; padding: 11px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--border-hair); border-radius: 10px;
  background: var(--bg-elevated); transition: border-color 120ms;
}
.auth-field input:focus,
.auth-field textarea:focus { outline: none; border-color: var(--scouting-purple); }
.auth-err { color: var(--state-danger); font-size: 13px; margin: 0 0 12px; padding: 10px 12px; background: #FEF2F2; border-radius: 8px; }
.auth-switch { margin-top: 18px; text-align: center; font-size: 14px; color: var(--fg-secondary); }
.auth-switch button { background: none; border: none; color: var(--scouting-purple); font-weight: 600; cursor: pointer; padding: 0; font-size: 14px; }
.auth-switch button:hover { text-decoration: underline; }

/* ============ USER MENU IN NAV ============ */
.user-menu { position: relative; }
.user-trigger {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px;
  background: var(--bg-muted); border: 1px solid var(--border-hair);
  border-radius: 999px; cursor: pointer; font: inherit;
}
.user-trigger:hover { background: var(--bg-elevated); border-color: var(--scouting-purple); }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--midnight-purple); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; font-family: var(--font-en);
}
.user-label { font-size: 13px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px;
  background: var(--bg-elevated); border: 1px solid var(--border-hair); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.10); padding: 6px; z-index: 100;
}
.user-dropdown button {
  display: block; width: 100%; text-align: left; padding: 10px 14px;
  background: none; border: none; cursor: pointer; font: inherit; font-size: 14px;
  border-radius: 8px; color: var(--fg-primary);
}
.user-dropdown button:hover { background: var(--bg-muted); }

/* ============ MEMBER DASHBOARD ============ */
.member-tabs { display: flex; gap: 4px; margin-bottom: 32px; border-bottom: 1px solid var(--border-hair); }
.member-tab {
  padding: 12px 20px; background: none; border: none; font: inherit;
  cursor: pointer; color: var(--fg-secondary); border-bottom: 2px solid transparent;
  font-weight: 500;
}
.member-tab.active { color: var(--brand-text); border-bottom-color: var(--brand-text); font-weight: 700; }
.member-tab:hover { color: var(--fg-primary); }
.member-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.member-card {
  padding: 32px; background: var(--bg-elevated); border: 1px solid var(--border-hair);
  border-radius: 20px; display: flex; flex-direction: column; gap: 12px;
}
.member-card h3 { font-family: var(--font-kr); font-size: 22px; font-weight: 700; margin: 0; }
.member-card p { color: var(--fg-secondary); font-size: 14px; line-height: 1.6; flex: 1; margin: 0; }
.member-card .btn { align-self: flex-start; margin-top: 8px; }

/* ============ TIPTAP RICH EDITOR ============ */
.rt-wrap { border: 1px solid var(--border-hair); border-radius: 10px; background: var(--bg-elevated); overflow: hidden; }
.rt-toolbar {
  display: flex; flex-wrap: wrap; gap: 2px; padding: 6px;
  border-bottom: 1px solid var(--border-hair); background: var(--bg-muted);
}
.rt-toolbar button {
  background: transparent; border: none; padding: 6px 8px; font-size: 13px;
  border-radius: 6px; cursor: pointer; color: var(--fg-primary);
  min-width: 30px; font-weight: 500;
}
.rt-toolbar button:hover { background: rgba(98,37,153,0.10); }
.rt-toolbar button.is-active { background: var(--midnight-purple); color: #fff; }
.rt-toolbar select { padding: 5px 8px; border: 1px solid var(--border-hair); border-radius: 6px; font-size: 12px; background: var(--bg-elevated); }
.rt-toolbar .sep { width: 1px; background: var(--border-hair); margin: 4px 4px; }
.rt-content { min-height: 160px; padding: 14px 16px; font-size: 15px; line-height: 1.6; }
.rt-content:focus, .rt-content:focus-within { outline: 2px solid var(--scouting-purple); outline-offset: -2px; }
.rt-content .ProseMirror { outline: none; min-height: 140px; }
.rt-content .ProseMirror p { margin: 0 0 10px; }
.rt-content .ProseMirror h1 { font-size: 28px; font-weight: 700; margin: 16px 0 8px; }
.rt-content .ProseMirror h2 { font-size: 22px; font-weight: 700; margin: 14px 0 8px; }
.rt-content .ProseMirror h3 { font-size: 18px; font-weight: 700; margin: 12px 0 6px; }
.rt-content .ProseMirror blockquote { border-left: 3px solid var(--scouting-purple); padding-left: 14px; color: var(--fg-secondary); margin: 12px 0; }
.rt-content .ProseMirror code { background: var(--bg-muted); padding: 2px 6px; border-radius: 4px; font-family: var(--font-mono, monospace); font-size: 13px; }
.rt-content .ProseMirror pre { background: #1F1B2E; color: #E0DDFF; padding: 14px; border-radius: 8px; overflow-x: auto; font-family: var(--font-mono, monospace); font-size: 13px; }
.rt-content .ProseMirror pre code { background: transparent; padding: 0; color: inherit; }
.rt-content .ProseMirror ul, .rt-content .ProseMirror ol { padding-left: 22px; margin: 8px 0; }
.rt-content .ProseMirror ul[data-type="taskList"] { list-style: none; padding: 0; }
.rt-content .ProseMirror ul[data-type="taskList"] li { display: flex; align-items: flex-start; gap: 8px; }
.rt-content .ProseMirror a { color: var(--scouting-purple); text-decoration: underline; }
.rt-content .ProseMirror img { max-width: 100%; border-radius: 8px; }
.rt-content .ProseMirror table { border-collapse: collapse; margin: 12px 0; width: 100%; }
.rt-content .ProseMirror table td, .rt-content .ProseMirror table th { border: 1px solid var(--border-hair); padding: 6px 10px; }
.rt-content .ProseMirror table th { background: var(--bg-muted); font-weight: 700; }
.rt-content .ProseMirror hr { border: none; border-top: 1px solid var(--border-hair); margin: 16px 0; }
.rt-content .ProseMirror mark { background: #FFF59D; padding: 0 2px; border-radius: 2px; }
.rt-count { padding: 6px 12px; font-size: 12px; color: var(--fg-muted); background: var(--bg-muted); border-top: 1px solid var(--border-hair); text-align: right; }

/* ============ RECEIPT ============ */
.receipt-page { background: #F4F4F8; min-height: 100vh; padding: 40px 20px; }
.receipt-actions { max-width: 760px; margin: 0 auto 20px; display: flex; justify-content: flex-end; gap: 12px; }
.receipt-paper {
  max-width: 760px; margin: 0 auto; background: #fff; border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); padding: 56px 64px;
  font-family: var(--font-en, system-ui), 'Pretendard', sans-serif;
  color: #222;
}
.receipt-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 32px; border-bottom: 2px solid #1E0B33; margin-bottom: 32px; }
.receipt-brand { font-family: var(--font-en); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: #1E0B33; }
.receipt-issuer { font-size: 12px; color: #666; line-height: 1.5; margin-top: 6px; }
.receipt-meta { text-align: right; }
.receipt-meta .receipt-label { font-size: 11px; letter-spacing: 0.18em; color: #666; font-weight: 700; }
.receipt-meta .receipt-id { font-family: var(--font-mono, monospace); font-size: 14px; margin-top: 4px; color: #333; }
.receipt-meta .receipt-date { font-size: 12px; color: #666; margin-top: 2px; }
.receipt-section { margin-bottom: 28px; }
.receipt-section h3 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #888; font-weight: 700; margin: 0 0 10px; }
.receipt-payer { font-size: 14px; line-height: 1.6; }
.receipt-table { width: 100%; border-collapse: collapse; }
.receipt-table th { text-align: left; font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: #888; font-weight: 700; padding: 8px 0; border-bottom: 1px solid #e0e0e0; }
.receipt-table td { padding: 14px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; vertical-align: top; }
.receipt-table tfoot td { border: none; }
.receipt-foot { margin-top: 32px; padding-top: 20px; border-top: 1px solid #eee; font-size: 12px; color: #666; line-height: 1.6; }

@media print {
  body { background: #fff; }
  .nav, .footer, .auth-overlay, .no-print, .topnotice { display: none !important; }
  .receipt-page { background: #fff; padding: 0; }
  .receipt-paper { box-shadow: none; padding: 32px; max-width: 100%; }
  /* Receipt template — print at 1:1 so the PDF matches the operator's
     uploaded background dimensions exactly. The screen-mode scale is for
     viewing in the browser only. */
  .receipt-template-stage > div { transform: none !important; }
  .receipt-template-stage > div + div { display: none !important; }   /* hide the spacer */
  @page { margin: 0; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .steps, .prog-grid, .stories-grid, .partners-grid, .team-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .cta-banner { grid-template-columns: 1fr; padding: 48px 32px; }
  .cta-banner .btn-wrap { justify-self: start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top.footer-top-cols { grid-template-columns: 1fr 1fr; }
  .footer-bot.footer-bot-with-brand { flex-direction: column; align-items: flex-start; }
  .footer-bot-with-brand .footer-bot-meta { align-items: flex-start; text-align: left; }
  .pd-body { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: auto 1fr; }
  .news-date { display: none; }
}

/* ============ MOBILE NAV (hamburger + slide-in panel) ============
   Below 900px the desktop .nav-links is hidden (rule above). The hamburger
   button appears, and tapping it overlays a panel mirroring the desktop
   menu structure. The panel is 100vw on phones, 360px max on landscape /
   wide phones so it doesn't fully hide the page underneath. */
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--fg-primary); border-radius: 8px; }
.nav-burger:hover { background: var(--bg-muted); }
@media (max-width: 900px) {
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
}

.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.42);
  animation: dp-fade-in 160ms var(--ease-out);
}
.mobile-nav-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 100vw);
  background: var(--bg-elevated); color: var(--fg-primary);
  display: flex; flex-direction: column;
  box-shadow: -16px 0 40px rgba(0,0,0,0.20);
  animation: dp-slide-in 220ms var(--ease-out);
  overflow-y: auto;
}
.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border-hair);
}
.mobile-nav-close {
  background: none; border: none; cursor: pointer; padding: 8px;
  color: var(--fg-secondary); border-radius: 8px;
}
.mobile-nav-close:hover { background: var(--bg-muted); color: var(--fg-primary); }
.mobile-nav-body { flex: 1; padding: 12px 0; }
.mobile-nav-section { padding: 14px 8px 6px 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-muted); }
.mobile-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; cursor: pointer; font: inherit;
  padding: 13px 20px; font-size: 16px; color: var(--fg-primary); text-align: left;
  border-radius: 0;
}
.mobile-nav-link:hover { background: var(--bg-muted); }
.mobile-nav-link.active { color: var(--brand-text); font-weight: 700; }
.mobile-nav-foot {
  padding: 18px 20px; border-top: 1px solid var(--border-hair);
  display: flex; flex-direction: column; gap: 10px;
}

@keyframes dp-slide-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
@keyframes dp-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
