/* =========================================================
   삼육대학교 평생교육원 2027 실용음악과정 — V3 (B+ 정제)
   정적 파일 / 빌드 없음 / 외부 요청 없음 (폰트 자체 호스팅)

   구성 원리
   - 밝은 바탕. 어두운 면은 '모집 일정·문의' 한 곳뿐.
   - 흑백 사진은 첫 화면에 한 번, 원본 해상도(1258px) 안에서 선명하게.
   - 제목 굵기 700, 본문 400, 목록·라벨 600. 한글 자간은 -0.035em까지만.
   - 포인트 색(앰버)은 주 버튼과 상태 점에만.
   - 카드 대신 선과 여백으로 구획.
   ========================================================= */

:root {
  --white: #FFFFFF;
  --mist: #F1F2F4;
  --graphite: #1B1D21;
  --ink: #1B1D21;
  --ink-soft: #50555E;        /* 흰 바탕 7.5:1, 연회색 바탕 6.7:1 */
  --rule: #D5D8DC;
  --rule-dash: #8E949E;
  --amber: #F2B33D;           /* 주 버튼·상태 점·어두운 면의 시각 표시만 */
  --on-dark: #F1F2F4;
  --on-dark-soft: #AEB3BC;    /* 그래파이트 위 8.2:1 */
  --rule-on-dark: #454A53;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;

  /* 타입 스케일: 6단 (모바일 → 데스크톱) */
  --fs-xs: 0.875rem;                                     /* 14 */
  --fs-sm: 0.9375rem;                                    /* 15 */
  --fs-base: 1.0625rem;                                  /* 17 → 18 */
  --fs-md: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);    /* 18–20 */
  --fs-lg: clamp(1.25rem, 1.12rem + 0.55vw, 1.5rem);     /* 20–24 */
  --fs-title: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);     /* 28–44 */
  --fs-hero: clamp(2.125rem, 1.25rem + 3.4vw, 4rem);     /* 34–64 */

  --gutter: 20px;
  --section-y: clamp(64px, 8vw, 112px);
  --header-h: 64px;
}
@media (min-width: 768px) { :root { --gutter: 40px; --header-h: 76px; } }
@media (min-width: 1200px) { :root { --fs-base: 1.125rem; } }

/* ---------- 상태 전환 (준비 / 운영) ---------- */
html[data-mode="preparing"] .when-open,
html[data-mode="open"] .when-preparing { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
body.has-sticky-cta { padding-bottom: 84px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
strong { font-weight: 700; }
h1, h2, h3 { text-wrap: balance; }

:focus-visible { outline: 3px solid var(--graphite); outline-offset: 3px; }
.apply :focus-visible { outline-color: var(--amber); }
.apply-panel :focus-visible { outline-color: var(--graphite); }

.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 12px 16px; background: var(--graphite); color: #fff;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 12px 26px;
  border: 2px solid transparent; border-radius: 6px;
  font: inherit; font-size: var(--fs-base); font-weight: 700; line-height: 1.3;
  letter-spacing: -0.01em; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #FFC75C; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: var(--fs-sm); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; min-height: 44px; flex: 0 1 auto; min-width: 0; }
.brand img { width: 212px; height: auto; }
.site-nav { display: none; margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 14px; border-radius: 6px;
  font-size: var(--fs-sm); font-weight: 600; text-decoration: none;
}
.site-nav a:hover { background: var(--mist); }
.header-cta { margin-left: auto; flex: none; background: var(--graphite); color: #fff; }
.header-cta:hover { background: #3A3E46; }
@media (max-width: 374px) { .brand img { width: 188px; } }
@media (min-width: 768px) { .brand img { width: 260px; } }
@media (min-width: 1100px) {
  .site-nav { display: block; }
  .header-cta { margin-left: 8px; }
}

/* ---------- 01 Hero ----------
   모바일: 사진을 화면 폭 가득 얇은 띠로, 그 아래 글.
   데스크톱: 사진은 본문 폭 안(원본 해상도 이내), 흰 면이 사진의 아래쪽 왼쪽을 파고든다. */
.hero-stage { padding-top: 0; }
.hero-media { position: relative; margin-inline: calc(var(--gutter) * -1); background: #101215; }
.hero-media img {
  width: 100%; aspect-ratio: 2.1 / 1;
  object-fit: cover; object-position: 66% 46%;
}
.hero-media figcaption {
  padding: 8px var(--gutter) 0; background: var(--white);
  font-size: 0.8125rem; line-height: 1.4; color: var(--ink-soft); text-align: left;
}

.hero-copy { padding-block: 18px 40px; }
.hero-badge {
  display: inline-block; padding: 4px 11px; border-radius: 4px;
  background: var(--graphite); color: #fff;
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.01em;
}
.hero-course { display: flex; flex-direction: column; gap: 0; margin-top: 14px; }
.hero-org { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-soft); }
.hero-program { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
.hero h1 {
  margin-top: 12px;
  font-size: var(--fs-hero); font-weight: 700;
  line-height: 1.2; letter-spacing: -0.035em;
}
.hero-lead {
  max-width: 27em; margin-top: 16px;
  font-size: var(--fs-md); line-height: 1.65; color: var(--ink-soft);
}
.hero-status {
  display: flex; gap: 10px; align-items: baseline;
  margin-top: 18px; font-size: var(--fs-sm); font-weight: 600; line-height: 1.55;
}
.status-dot {
  flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber); transform: translateY(-1px);
}
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

@media (min-width: 560px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 768px) {
  .hero-media img { aspect-ratio: 2.6 / 1; }
}
@media (min-width: 1000px) {
  .hero-stage { padding-top: 28px; }
  .hero-media { margin-inline: 0; background: none; }
  .hero-media img { aspect-ratio: auto; height: clamp(340px, 46vh, 430px); }
  .hero-media figcaption {
    position: absolute; right: 0; top: 100%; padding: 8px 0 0; background: none;
  }
  .hero-copy {
    position: relative;
    width: min(70%, 860px);
    margin-top: -128px;
    padding: 36px 48px 56px 0;
    background: var(--white);
  }
  .hero-course { flex-direction: row; align-items: baseline; flex-wrap: wrap; column-gap: 12px; }
}

/* ---------- 과정 한눈에 보기 (목차 겸 이동) ---------- */
.path-list { display: grid; grid-template-columns: 1fr 1fr; }
.path-list li { border-bottom: 1px solid var(--rule); }
.path-list li:nth-child(-n+2) { border-top: 2px solid var(--ink); }
.path-list li:nth-child(odd) { border-right: 1px solid var(--rule); }
.path-list a {
  display: flex; flex-direction: column; gap: 3px;
  height: 100%; min-height: 88px; padding: 16px 12px 18px 0;
  text-decoration: none;
}
.path-list li:nth-child(even) a { padding-left: 16px; padding-right: 0; }
.path-stage { font-size: var(--fs-base); font-weight: 700; letter-spacing: -0.02em; }
.path-text { font-size: var(--fs-sm); font-weight: 400; line-height: 1.5; color: var(--ink-soft); }
.path-list a:hover .path-stage { text-decoration: underline; text-underline-offset: 5px; }
.path-list a:focus-visible { outline-offset: -3px; }

@media (min-width: 900px) {
  .path-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .path-list li { border-bottom: 1px solid var(--rule); border-right: 0 !important; border-top: 2px solid var(--ink); }
  .path-list li + li { border-left: 1px solid var(--rule); }
  .path-list a, .path-list li:nth-child(even) a { min-height: 112px; padding: 22px 24px 24px; }
  .path-list li:first-child a { padding-left: 0; }
  .path-text { font-size: var(--fs-base); }
}

/* ---------- Section commons ---------- */
.section { padding-block: var(--section-y); }
.section-title {
  font-size: var(--fs-title); font-weight: 700; line-height: 1.22; letter-spacing: -0.035em;
}
.section-lead { margin-top: 14px; max-width: 30em; font-size: var(--fs-md); line-height: 1.65; color: var(--ink-soft); }
.minor-title { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-soft); }
.fine-print { font-size: var(--fs-sm); line-height: 1.6; color: var(--ink-soft); }
.tag {
  display: inline-block; padding: 1px 10px; border-radius: 4px;
  border: 1.5px solid var(--graphite); color: var(--graphite);
  font-size: var(--fs-xs); font-weight: 700; line-height: 1.6;
}

/* ---------- 02 For whom ---------- */
.for-whom { padding-top: clamp(56px, 7vw, 96px); }
.statement {
  max-width: 22em;
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.5rem); font-weight: 600;
  line-height: 1.4; letter-spacing: -0.03em;
}
.audience { margin-top: clamp(32px, 4.5vw, 56px); border-top: 2px solid var(--ink); }
.audience li { padding: 20px 0 22px; border-bottom: 1px solid var(--rule); }
.audience h3 { font-size: var(--fs-md); font-weight: 700; letter-spacing: -0.02em; }
.audience p { margin-top: 6px; color: var(--ink-soft); }
.for-whom .fine-print { margin-top: 18px; }
@media (min-width: 680px) {
  .audience { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
@media (min-width: 1100px) {
  .audience { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; border-bottom: 1px solid var(--rule); }
  .audience li { padding: 24px 24px 28px; border-bottom: 0; }
  .audience li:first-child { padding-left: 0; }
  .audience li + li { border-left: 1px solid var(--rule); }
}

/* ---------- 03 Learn ---------- */
.learn { background: var(--mist); }
.learn-grid { display: grid; gap: 40px; }
.courses { display: grid; gap: 40px; align-content: start; }
.course-group .minor-title { margin-bottom: 10px; }

.majors { border-top: 2px solid var(--ink); }
.majors li {
  padding: 14px 0 16px; border-bottom: 1px solid var(--rule-dash);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.035em;
}
.course-list { border-top: 2px solid var(--ink); }
.course-list li {
  padding: 16px 0 17px; border-bottom: 1px solid var(--rule-dash);
  font-size: var(--fs-md); font-weight: 600; line-height: 1.45; letter-spacing: -0.01em;
}
.course-group:has(.tag) .course-list { border-top-style: dashed; border-top-width: 2px; border-top-color: var(--rule-dash); }
.course-group:has(.tag) .course-list li { color: var(--ink-soft); border-bottom-style: dashed; }
.learn .fine-print { padding-top: 4px; }

@media (min-width: 680px) {
  .majors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; border-top: 0; }
  .majors li { padding: 16px 0 20px; border-top: 2px solid var(--ink); border-bottom: 0; }
}
@media (min-width: 1024px) {
  .learn-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(48px, 7vw, 120px); align-items: start; }
  .learn-head { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- 04 Opportunities ---------- */
.opp-grid { display: grid; gap: 32px; margin-top: clamp(32px, 4vw, 52px); }
.opp { padding-top: 18px; border-top: 2px solid var(--ink); }
.opp h3 { font-size: var(--fs-lg); font-weight: 700; line-height: 1.3; letter-spacing: -0.025em; }
.opp p { margin-top: 10px; color: var(--ink-soft); }
.opportunities .caveat {
  margin-top: 36px; padding: 2px 0 2px 14px; border-left: 3px solid var(--graphite);
  font-size: var(--fs-sm); line-height: 1.6; color: var(--ink-soft); max-width: 44em;
}
@media (min-width: 900px) {
  .opp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); }
}

/* ---------- 05 Degree ---------- */
.degree { background: var(--mist); }
.degree-grid { display: grid; gap: 40px; margin-top: clamp(32px, 4vw, 52px); }
.degree-item h3 {
  margin-top: 12px;
  font-size: var(--fs-lg); font-weight: 700; line-height: 1.3; letter-spacing: -0.025em;
}
.degree-item > p:not(.tag) { margin-top: 10px; }
.degree-clarify {
  padding: 14px 16px; margin-top: 16px !important;
  background: var(--white); border-left: 4px solid var(--graphite); border-radius: 0 4px 4px 0;
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.6;
}
.note { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.6; }
.degree-item .note { padding-top: 10px; border-top: 1px solid var(--rule-dash); }
.conservatory {
  display: grid; gap: 10px;
  margin-top: 48px; padding: 22px 0 0;
  border-top: 2px solid var(--ink);
}
.conservatory h3 { font-size: var(--fs-md); font-weight: 700; }
.conservatory p:not(.tag):not(.note) { margin-top: 4px; }
.conservatory .note { margin-top: 6px; }
.conservatory .tag { justify-self: start; }
@media (min-width: 900px) {
  .degree-grid { grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 96px); }
  .conservatory { grid-template-columns: 9rem 1fr; column-gap: 24px; align-items: start; }
}

/* ---------- 06 Apply (페이지의 유일한 어두운 면) ---------- */
.apply { background: var(--graphite); color: var(--on-dark); }
.apply .section-lead { color: var(--on-dark-soft); }
.apply-grid { display: grid; gap: 40px; }

.timeline { margin-top: 28px; border-top: 1px solid var(--rule-on-dark); }
.timeline li {
  display: grid; grid-template-columns: 7.5rem 1fr; column-gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--rule-on-dark);
}
.tl-when { font-weight: 700; color: var(--amber); font-size: var(--fs-sm); line-height: 1.7; }
.tl-what { display: grid; gap: 2px; }
.tl-what strong { font-size: var(--fs-base); }
.tl-what span { font-size: var(--fs-sm); color: var(--on-dark-soft); line-height: 1.6; }
.apply-notice {
  display: inline-block; margin-top: 24px; padding: 10px 14px; border-radius: 4px;
  border: 1.5px solid var(--on-dark-soft);
  font-size: var(--fs-sm); font-weight: 700;
}

.apply-panel {
  background: var(--white); color: var(--ink);
  padding: clamp(20px, 4vw, 40px); border-radius: 6px;
}
.panel-status {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-md); font-weight: 700;
}
.panel-status .status-dot { transform: none; }
.panel-preparing > p:not(.panel-status) { margin-top: 8px; line-height: 1.65; }

.contact-cards { display: grid; gap: 10px; margin-top: 20px; }
.contact-card {
  display: grid; gap: 2px; padding: 16px 18px;
  border: 2px solid var(--graphite); border-radius: 6px;
  text-decoration: none; background: #fff;
  transition: background-color .15s ease, color .15s ease;
}
.contact-card:hover { background: var(--graphite); color: #fff; }
.cc-label { font-size: var(--fs-sm); font-weight: 600; }
.cc-value { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.form-fields-preview { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
.form-fields-preview ul { margin-top: 8px; display: grid; gap: 6px; }
.form-fields-preview li { position: relative; padding-left: 16px; font-size: var(--fs-sm); line-height: 1.6; }
.form-fields-preview li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; background: var(--ink-soft); }
.panel-privacy { margin-top: 20px; font-size: var(--fs-xs); color: var(--ink-soft); line-height: 1.6; }
.panel-privacy a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

.form-slot iframe { display: block; width: 100%; min-height: 560px; border: 0; }
.form-fallback { margin-top: 14px; font-size: var(--fs-sm); color: var(--ink-soft); }
.form-fallback a { color: var(--ink); font-weight: 700; }

@media (min-width: 560px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .apply-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(48px, 6vw, 112px); align-items: start; }
}

/* ---------- 07 Footer ---------- */
.site-footer { padding-top: clamp(56px, 7vw, 96px); }
.footer-grid { display: grid; gap: 48px; }
.footer-logo { width: 220px; height: auto; }
.footer-title { margin-top: 28px; font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.02em; }
.contact-list { margin-top: 16px; display: grid; gap: 4px; }
.contact-list > div { display: grid; grid-template-columns: 4rem 1fr; gap: 8px; align-items: baseline; }
.contact-list dt { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); }
.contact-list a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--fs-md); font-weight: 700; text-underline-offset: 4px;
}
.contact-list dd { line-height: 1.6; }
.notice-list { margin-top: 12px; display: grid; gap: 12px; }
.notice-list li { position: relative; padding-left: 18px; line-height: 1.65; }
.notice-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; background: var(--graphite); }
.official-link { margin-top: 28px; padding: 18px 20px; border: 1.5px dashed var(--rule-dash); border-radius: 6px; font-size: var(--fs-sm); }
.official-link .btn { margin-top: 12px; }
.official-pending { color: var(--ink-soft); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  margin-top: 56px; padding-block: 16px 24px;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-xs); color: var(--ink-soft);
}
.footer-bottom a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; color: var(--ink); text-underline-offset: 3px;
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; column-gap: clamp(48px, 6vw, 112px); }
  .footer-logo { width: 260px; }
}

/* ---------- 하단 고정 버튼 (모바일·태블릿) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--rule);
  transition: transform .2s ease;
}
.sticky-cta.is-hidden { transform: translateY(110%); }
@media (min-width: 1100px) {
  .sticky-cta { display: none !important; }
  body.has-sticky-cta { padding-bottom: 0; }
}

/* ---------- V3.1 ---------- */
.audience-note { margin-top: 20px; max-width: 28em; padding-top: 16px; border-top: 1px solid var(--rule-dash); font-size: var(--fs-sm); line-height: 1.65; color: var(--ink-soft); }
.path { padding-bottom: 0; }
.learn { margin-top: clamp(40px, 5vw, 72px); }
.degree-head .section-lead { max-width: 34em; }
