/* SNT Jeju 공개 홈페이지 — 브랜드 토큰은 디자인 시스템 tokens.json(light)을 따릅니다. */
:root {
  --surface: #ffffff;
  --surface-alt: #f4f6f9;
  --line: #d5dbe5;
  --line-strong: #7d899e;
  --ink: #1b2433;
  --ink-muted: #5a6474;
  --navy: #002357;
  --navy-fill: #002357;
  --navy-deep: #13203a;
  --on-navy: #ffffff;
  --on-navy-muted: #c9d3e6;
  --navy-soft: #e8edf5;
  --orange: #f18e2c;
  --orange-text: #a65200;
  --orange-soft: #fdefe0;
  --orange-text-on-navy: #f5a55a;
  --on-orange: #002357;
  --focus: #002357;
  --alert: #c0362c;

  --radius-sm: 4px;
  --radius-md: 8px;
  --gutter: 20px;
  --container: 1200px;
  --font: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: var(--navy); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.on-navy a:focus-visible { outline-color: var(--orange-text-on-navy); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--navy-fill); color: var(--on-navy); }
.skip:focus { left: 8px; }

/* 자리 표시(아직 받지 않은 내용) */
.ph { color: var(--ink-muted); }

/* ── 버튼 ───────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border: 2px solid transparent; border-radius: var(--radius-sm); font-size: 16px; line-height: 24px; font-weight: 700; }
.btn-navy { background: var(--navy-fill); border-color: var(--navy-fill); color: var(--on-navy); }
.btn-navy:hover { background: #0a3272; border-color: #0a3272; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy-soft); }

/* ── 머리 ───────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .container { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { height: 46px; width: auto; } /* 가로형 최소 폭 160px */
.nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { padding: 8px 14px; background: var(--navy-fill); color: var(--on-navy); border-radius: var(--radius-sm); font-size: 14px; line-height: 20px; font-weight: 700; }
.menu-btn { width: 44px; height: 44px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.menu-btn svg { stroke: var(--navy); }
.menu-btn .i-close { display: none; }
.menu-open .menu-btn .i-open { display: none; }
.menu-open .menu-btn .i-close { display: block; }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.menu-open .mobile-nav { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 16px; }
.mobile-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; }
.mobile-nav li:last-child a { border-bottom: 0; }

/* ── 섹션 공통 ───────────────────────────── */
.section { padding: 56px 0; }
.section-alt { background: var(--surface-alt); }
.on-navy { background: var(--navy-fill); color: var(--on-navy); }
.eyebrow { display: block; font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: .08em; color: var(--orange-text); }
.on-navy .eyebrow { color: var(--orange-text-on-navy); }
.section-title { font-size: 28px; line-height: 38px; font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
.on-navy .section-title { color: var(--on-navy); }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.section-lead { font-size: 15px; line-height: 24px; color: var(--ink-muted); }

/* ── 첫 화면 ─────────────────────────────── */
.hero { padding: 40px 0 48px; }
.hero .container { display: flex; flex-direction: column; gap: 20px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.hero-kicker { font-size: 13px; line-height: 20px; font-weight: 700; letter-spacing: .02em; color: var(--orange-text); }
.hero h1 { font-size: 40px; line-height: 50px; font-weight: 900; letter-spacing: -.03em; color: var(--navy); }
.hero-lead { font-size: 16px; line-height: 26px; color: var(--ink-muted); max-width: 520px; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.btn-orange { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.btn-orange:hover { background: #f5a55a; border-color: #f5a55a; }
.leveltest-btn { align-self: stretch; }
.hero-phone { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.hero-phone a { font-weight: 700; white-space: nowrap; }
.hero-phone-note { white-space: nowrap; font-size: 14px; }

.hero-copy { order: 1; }
/* 첫 화면 그림: 제주 섬 · 학원 자리 · 토론 기록지 */
/* 휴대폰: 그림을 제목 위로, 레벨테스트 버튼은 아래 연락처 부분에만 */
.hero-art { order: 0; margin: 0 0 4px; }
.hero-apply { display: none; }
.hero-map { display: block; width: 100%; height: auto; }
.hm-tagline { font: 700 22px var(--font); letter-spacing: -.02em; fill: var(--navy); }
.hm-island { fill: #eef2f8; stroke: var(--navy); stroke-width: 1.8; }
.hm-contour { fill: none; stroke: #9fb0cc; stroke-width: 1; }
.hm-lead { stroke: var(--orange); stroke-width: 1.5; stroke-dasharray: 3 4; }
.hm-name { font: 700 14px var(--font); letter-spacing: .08em; fill: var(--navy); }
.hm-sub { font: 400 12.5px var(--font); fill: var(--ink-muted); }
.hm-coord { font: 400 12px var(--font); letter-spacing: .2em; fill: var(--line-strong); }
.hero-map .hw { font-family: "Caveat", cursive; }


/* ── 소개 ────────────────────────────────── */
.about { padding: 48px 0; }
.about .container { display: flex; flex-direction: column; gap: 28px; }
.about .section-head { margin: 0; gap: 10px; }
.pillars { display: grid; gap: 20px; }
.pillar { padding-top: 14px; border-top: 2px solid var(--orange); display: flex; flex-direction: column; gap: 6px; }
.pillar h3 { font-size: 18px; line-height: 26px; font-weight: 700; }
.pillar p { font-size: 15px; line-height: 24px; color: var(--on-navy-muted); }

/* ── 프로그램 ─────────────────────────────── */
.programs { display: grid; gap: 24px; }
.program { background: var(--surface-alt); clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.program-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.program h3 { font-size: 26px; line-height: 34px; font-weight: 900; color: var(--navy); }
.program-ko { font-size: 14px; color: var(--ink-muted); }
.program p { font-size: 15px; line-height: 24px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 22px; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--orange); clip-path: polygon(0 100%, 100% 100%, 100% 0); }
.program-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.program-target { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.schedule-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 2px solid var(--navy); border-radius: var(--radius-sm); background: transparent; color: var(--navy); font: inherit; font-size: 14px; line-height: 20px; font-weight: 700; cursor: pointer; }
.schedule-btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.schedule-btn[aria-expanded="true"] { background: var(--navy-fill); color: var(--on-navy); }
.schedule-btn[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.schedule { background: var(--surface); padding: 16px; font-size: 14px; line-height: 22px; }
/* 수업 시간: 학년별 — 학년 | 요일 · 시간(여러 줄) */
.schedule-grades { list-style: none; margin: 0; padding: 0; }
.schedule-grades li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: start; }
.schedule-grades li:first-child { padding-top: 0; }
.schedule-grades li:last-child { border-bottom: 0; padding-bottom: 0; }
.schedule-grade-name { font-weight: 700; color: var(--navy); }
.schedule-slots { display: flex; flex-direction: column; gap: 4px; }
.schedule-slot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.schedule-day { font-weight: 700; color: var(--orange-text); }
.schedule-tag { display: inline-block; padding: 1px 6px; background: var(--orange-soft); color: var(--orange-text); border-radius: var(--radius-sm); font-size: 12px; line-height: 18px; font-weight: 700; }
.schedule-note { flex-basis: 100%; font-size: 13px; color: var(--ink-muted); }
.schedule-msg { margin: 0; color: var(--ink-muted); }
.schedule-msg a { font-weight: 700; white-space: nowrap; }
.schedule-updated { margin: 12px 0 0; font-size: 12px; color: var(--ink-muted); }

/* ── 원장 소개 ───────────────────────────── */
.directors { display: grid; gap: 20px; }
.director { background: var(--surface); padding: 20px; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
.director-photo { height: 128px; background: var(--navy-soft); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ink-muted); overflow: hidden; }
.director-photo img { width: 100%; height: 100%; object-fit: cover; }
.director-body { display: flex; flex-direction: column; gap: 6px; }
.director-role { font-size: 13px; font-weight: 700; color: var(--orange-text); }
.director h3 { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--navy); }
.director-en { display: block; font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.director-bio { font-size: 13px; line-height: 20px; color: var(--ink-muted); }

/* ── 소식 ────────────────────────────────── */
.news { display: grid; gap: 20px; margin-bottom: 28px; }
.news-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; color: var(--ink); }
.news-thumb { height: 90px; background: var(--navy-soft); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ink-muted); overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { display: flex; flex-direction: column; gap: 4px; }
.news-tag { font-size: 12px; font-weight: 700; color: var(--orange-text); }
.news-title { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--navy); }
.news-item:hover .news-title { color: var(--orange-text); }
.news-date { font-size: 13px; color: var(--ink-muted); }

/* ── 연락처 ──────────────────────────────── */
.contact { padding: 48px 0; }
.contact .container { display: flex; flex-direction: column; gap: 20px; }
.contact .section-head { margin: 0; gap: 10px; }
.contact-list { margin: 0; display: grid; gap: 10px; font-size: 15px; line-height: 22px; }
.contact-list > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.contact-list dt { color: var(--on-navy-muted); }
.contact-list dd { margin: 0; }
.contact-list .tel { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--on-navy); }
.contact-list .tel:hover { color: var(--orange-text-on-navy); }
.contact-list .ph { color: var(--on-navy-muted); }
.sns { display: flex; gap: 16px; }
.sns-link { display: block; width: 48px; height: 48px; border-radius: 12px; transition: transform .15s; }
.sns-link img { width: 48px; height: 48px; }
.sns-link:hover { transform: translateY(-2px); }
.on-navy .sns-link:focus-visible { outline-color: var(--orange-text-on-navy); }
.contact-list .off { color: var(--on-navy-muted); }
.contact-list .note { display: block; margin-top: 4px; font-size: 13px; line-height: 20px; color: var(--on-navy-muted); }
.map { display: flex; flex-direction: column; gap: 12px; }
.map-view { position: relative; display: block; height: 260px; background: var(--navy-deep); clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%); overflow: hidden; }
.map-view img { width: 100%; height: 100%; object-fit: cover; }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.map-pin-label { padding: 4px 10px; background: var(--navy-fill); color: var(--on-navy); border-radius: var(--radius-sm); font-size: 13px; line-height: 18px; font-weight: 700; white-space: nowrap; }
.map-pin svg { display: block; }
.map-links { display: flex; gap: 20px; font-size: 15px; line-height: 22px; font-weight: 700; }
.map-links a { color: var(--on-navy); border-bottom: 1px solid var(--orange); padding-bottom: 2px; }
.map-links a:hover { color: var(--orange-text-on-navy); }

/* ── 꼬리 ────────────────────────────────── */
.site-footer { padding: 28px 0 36px; font-size: 12px; line-height: 18px; color: var(--ink-muted); }
.site-footer .container { display: flex; flex-direction: column; gap: 10px; }
.site-footer img { height: 46px; width: auto; align-self: flex-start; }
.footer-info { display: flex; flex-direction: column; gap: 4px; }

/* ── 태블릿 ──────────────────────────────── */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
  .directors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-item { grid-template-columns: 1fr; align-items: start; gap: 12px; }
  .news-thumb { height: auto; }
}

/* ── 데스크톱 ────────────────────────────── */
@media (min-width: 1024px) {
  :root { --gutter: 40px; }
  html { scroll-padding-top: 92px; }
  .site-header .container { height: 84px; }
  .nav { display: flex; align-items: center; gap: 36px; font-size: 16px; line-height: 24px; font-weight: 500; }
  .nav a:hover { color: var(--orange-text); }
  .nav .nav-cta { padding: 10px 20px; background: var(--navy-fill); color: var(--on-navy); border-radius: var(--radius-sm); font-weight: 700; }
  .nav .nav-cta:hover { background: #0a3272; color: var(--on-navy); }
  .header-actions, .mobile-nav, .menu-open .mobile-nav { display: none; }

  .section { padding: 104px 0; }
  .eyebrow { font-size: 14px; line-height: 20px; }
  .section-title { font-size: 40px; line-height: 52px; }
  .section-head { gap: 12px; margin-bottom: 48px; }
  .section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
  .section-head-row .section-head { margin: 0; }
  .section-lead { font-size: 16px; line-height: 26px; max-width: 460px; }

  .hero { padding: 88px 0 96px; }
  .hero .container { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 64px; align-items: center; }
  .hero-copy { gap: 28px; }
  .hero-art { order: 2; margin: 0; }
  .hero-apply { display: inline-flex; }
  .hero-kicker { font-size: 15px; line-height: 22px; letter-spacing: .04em; }
  .hero h1 { font-size: 64px; line-height: 76px; }
  .hero-lead { font-size: 18px; line-height: 30px; }
  .hero-actions { gap: 12px; }
            
  .about { padding: 88px 0; }
  .about .container { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 80px; }
  .about .section-head { gap: 16px; }
  .pillars { gap: 40px 48px; }
  .pillar { padding-top: 16px; gap: 8px; }
  .pillar h3 { font-size: 20px; line-height: 28px; }
  .pillar p { font-size: 16px; line-height: 26px; }

  .programs { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); row-gap: 0; }
  /* 카드 안 줄(제목·설명·목록·대상·시간표)을 세 카드가 함께 맞춰, 한 카드의 시간표를 열어도 다른 카드의 버튼 위치가 흔들리지 않게 */
  .program { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 20px; }
  .program-foot { margin-top: 0; }
  .schedule[hidden] { display: block; visibility: hidden; height: 0; padding: 0; overflow: hidden; }
  .program { padding: 40px 36px 16px; gap: 20px; clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%); }
  .program h3 { font-size: 32px; line-height: 40px; }
  .program-ko { font-size: 15px; }
  .program p { font-size: 16px; line-height: 26px; }

  .directors { gap: 32px; }
  .director { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 32px; }
  .director-photo { height: 240px; font-size: 14px; }
  .director-body { gap: 12px; }
  .director-role { font-size: 14px; }
  .director h3 { font-size: 26px; line-height: 34px; }
  .director-en { display: inline; margin-left: 6px; font-size: 17px; }
  .director-bio { font-size: 15px; line-height: 24px; }

  .news { gap: 24px; margin: 0; }
  .news-item { gap: 16px; }
  .news { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .news-thumb { height: auto; font-size: 14px; }
  .post-text .award-top { font-size: 22px; line-height: 32px; }
  .news-all-mini { display: none; }
  .news-all { display: block; }
  #news .section-head-row { margin-bottom: 48px; }
  .news-tag { font-size: 13px; }
  .news-title { font-size: 18px; line-height: 26px; }
  .news-date { font-size: 14px; }

  .contact { padding: 96px 0; }
  .contact .container { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 80px; align-items: stretch; }
  .contact-info { display: flex; flex-direction: column; gap: 28px; }
  .contact .section-head { gap: 16px; }
  .contact-list { gap: 14px; font-size: 16px; line-height: 24px; }
  .contact-list > div { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
  .contact-list .tel { font-size: 22px; line-height: 30px; }
  .contact-actions { padding-top: 8px; }
  .leveltest-btn { align-self: flex-start; }
  .contact-list .note { font-size: 14px; }
  .map-view { flex: 1; min-height: 420px; height: auto; clip-path: polygon(0 0, calc(100% - 64px) 0, 100% 64px, 100% 100%, 0 100%); }

  .site-footer { padding: 40px 0 48px; font-size: 13px; line-height: 20px; }
  .site-footer .container { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .site-footer .footer-main { display: flex; flex-direction: column; gap: 12px; }
}
@media (max-width: 1023px) {
  .contact-info { display: flex; flex-direction: column; gap: 20px; }
  .section-head-row .sns { display: none; }
}
@media (min-width: 1024px) {
  .news-more { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.footer-main { display: flex; flex-direction: column; gap: 10px; }
.only-desktop { display: none; }
@media (min-width: 1024px) { .only-mobile { display: none; } .only-desktop { display: block; } }

/* ── 안쪽 페이지(온라인 양식 · 개인정보처리방침) ── */
.page { padding: 40px 0 72px; }
.page-narrow { max-width: calc(720px + var(--gutter) * 2); }
.page-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; padding-left: 16px; border-left: 4px solid var(--orange); }
.page-title { font-size: 28px; line-height: 38px; font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
.page-lead { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.form-deadline[hidden] { display: none; }
.form-deadline { display: inline-flex; align-self: flex-start; padding: 4px 10px; background: var(--orange-soft); color: var(--orange-text); font-size: 14px; line-height: 20px; font-weight: 700; }
.preview-band { position: sticky; top: 64px; z-index: 40; padding: 10px var(--gutter); background: var(--orange); color: var(--on-orange); font-size: 14px; line-height: 20px; text-align: center; }
.preview-band strong { font-weight: 900; }
/* 양식 문장의 줄바꿈(
)과 "· " 목록 줄을 그대로 살림 */
.field-help, .consent-text p, .form-done p { white-space: pre-line; }
#form-intro span { display: block; }
#form-intro strong { font-weight: 700; color: var(--navy); }
#form-intro .rt-gap { height: 10px; }
#form-intro .rt-item { position: relative; padding-left: 14px; }
#form-intro .rt-item::before { content: "·"; position: absolute; left: 2px; font-weight: 700; }
#form-intro .rt-sub { padding-left: 30px; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
#form-intro .rt-sub::before { content: "–"; left: 16px; font-weight: 400; }
.title-row { display: flex; align-items: center; gap: 12px; }
.title-row .page-title { font-size: 21px; line-height: 28px; }
.title-row .form-image { flex: none; width: 112px; height: 112px; object-fit: contain; border-radius: var(--radius-md); }
.guardian-note { margin-top: 4px; padding: 12px 14px; background: var(--navy-soft); font-size: 14px; line-height: 22px; color: var(--ink); }
.guardian-note strong { color: var(--navy); font-weight: 700; }
.footer-link { color: var(--ink-muted); font-weight: 700; }
.footer-link:hover { color: var(--navy); }
.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; }
.req { color: var(--alert); font-weight: 700; }

/* 양식 */
.form-loading { color: var(--ink-muted); }
.lead-form { display: flex; flex-direction: column; gap: 28px; }
.form-legend { font-size: 13px; color: var(--ink-muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field[hidden] { display: none; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field-label { padding: 0; font-size: 15px; line-height: 22px; font-weight: 700; color: var(--navy); }
.field-help { margin-top: -4px; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.field-error { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--alert); }
.field-error:empty { display: none; }
.field-error:not(:empty)::before { content: "! "; font-weight: 700; }

.input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; line-height: 24px; }
textarea.input { min-height: 120px; resize: vertical; }
.input:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.input:disabled { background-color: var(--surface-alt); color: var(--ink-muted); cursor: not-allowed; }
.input::placeholder { color: #8a93a3; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23002357' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.select-wrap { display: flex; flex-direction: column; gap: 8px; }
.other-input { margin-top: 8px; }
.select-wrap .other-input { margin-top: 0; }
.has-error .input, .has-error .choice span { border-color: var(--alert); }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: 15px; line-height: 22px; font-weight: 500; color: var(--ink); }
.choice:hover span { border-color: var(--navy); }
.choice input:checked + span { background: var(--navy-fill); border-color: var(--navy-fill); color: var(--on-navy); font-weight: 700; }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice-check span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 2px; flex: none; }
.choice-check input:checked + span::before { border-color: var(--orange); background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='%23002357' stroke-width='2'/%3E%3C/svg%3E") center no-repeat; }
.choice-wide { width: 100%; }
.choice-wide span { width: 100%; }

/* 레벨테스트 시간: 달력 */
.field-slot .field-help { margin: 0; padding: 10px 12px; background: var(--orange-soft); color: var(--ink); font-size: 14px; line-height: 22px; }
.slot-picker { display: flex; flex-direction: column; gap: 12px; }
.cal { max-width: 440px; border: 1px solid var(--line); background: var(--surface); }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px; }
.cal-title { font-size: 17px; line-height: 24px; font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.cal-nav { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--navy); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.cal-nav:hover:not(:disabled) { background: var(--navy-soft); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 0 12px; text-align: center; }
.cal-week { padding-bottom: 6px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.cal-week .sun { color: var(--alert); }
.cal-grid { padding-bottom: 12px; }
.cal-day { position: relative; aspect-ratio: 1; max-height: 52px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: var(--radius-sm); background: transparent; font: inherit; font-size: 15px; color: #b5bcc8; }
.cal-day.empty { visibility: hidden; }
.cal-day.open { background: var(--navy-soft); color: var(--navy); font-weight: 700; cursor: pointer; }
.cal-day.open.sun { color: var(--alert); }
.cal-day.open:hover { outline: 1px solid var(--navy); }
.cal-day.selected, .cal-day.selected.sun { background: var(--navy-fill); color: var(--on-navy); }
.cal-day.today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
.cal-times { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 16px; border-top: 1px solid var(--line); }
.cal-date { font-size: 15px; line-height: 22px; font-weight: 700; color: var(--navy); }
.cal-dur { font-weight: 500; color: var(--ink-muted); }
.cal-empty { font-size: 14px; color: var(--ink-muted); }
.time-group { display: flex; align-items: center; gap: 12px; }
.time-label { flex: none; width: 30px; font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.time-list { display: flex; flex-wrap: wrap; gap: 8px; }
.time-btn { min-height: 44px; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.time-btn:hover { border-color: var(--navy); }
.time-btn.selected { background: var(--navy-fill); border-color: var(--navy-fill); color: var(--on-navy); font-weight: 700; }
.cal-none { max-width: 440px; }
.has-error .cal { border-color: var(--alert); }

.consent-text { border: 1px solid var(--line); background: var(--surface-alt); font-size: 14px; line-height: 22px; }
.consent-text summary { padding: 12px 14px; cursor: pointer; font-weight: 500; color: var(--navy); }
.consent-text p { padding: 0 14px 12px; color: var(--ink); }
.consent-text a { font-weight: 700; }
.consent-check { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 15px; font-weight: 700; cursor: pointer; }
.consent-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--navy); }

.form-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); padding-top: 24px; }
.form-submit { width: 100%; font-size: 17px; padding: 16px 28px; cursor: pointer; font-family: inherit; }
.form-submit:disabled { opacity: .6; cursor: wait; }
.form-status { font-size: 14px; color: var(--alert); font-weight: 500; }
.form-status:empty { display: none; }

.form-state { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px 24px; background: var(--surface-alt); }
.form-state h2 { font-size: 22px; line-height: 30px; font-weight: 700; color: var(--navy); }
.form-state p { font-size: 15px; line-height: 24px; }
.form-state p a { font-weight: 700; white-space: nowrap; }
.form-state .btn { margin-top: 8px; }
.form-done:focus { outline: none; }
.done-mark { width: 28px; height: 28px; background: var(--orange); clip-path: polygon(0 100%, 100% 100%, 100% 0); }

/* 긴 글(개인정보처리방침) */
.prose h2 { margin: 36px 0 12px; font-size: 18px; line-height: 26px; font-weight: 700; color: var(--navy); }
.prose p, .prose li { font-size: 15px; line-height: 26px; }
.prose p + p { margin-top: 10px; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose table { width: 100%; margin: 12px 0; border-collapse: collapse; font-size: 14px; line-height: 22px; }
.prose th { background: var(--surface-alt); color: var(--navy); font-weight: 700; text-align: left; }
.prose th, .prose td { padding: 8px 12px; border: 1px solid var(--line); vertical-align: top; }
.prose .info-list { margin: 0; display: grid; gap: 6px; font-size: 15px; line-height: 24px; }
.prose .info-list > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
.prose .info-list dt { color: var(--ink-muted); }
.prose .info-list dd { margin: 0; }

@media (min-width: 1024px) {
  .page { padding: 72px 0 104px; }
  .preview-band { top: 84px; }
  .page-title { font-size: 36px; line-height: 46px; }
  .title-row { gap: 24px; }
  .title-row .page-title { font-size: 36px; line-height: 48px; }
  .title-row .form-image { width: 160px; height: 160px; }
  .page-lead { font-size: 16px; line-height: 26px; }
  .form-submit { width: auto; align-self: flex-start; min-width: 240px; }
}
@media (max-width: 639px) {
  .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { position: absolute; left: -9999px; }
  .prose tr { border: 1px solid var(--line); margin-bottom: 8px; }
  .prose td { border: 0; border-bottom: 1px solid var(--line); }
  .prose td:last-child { border-bottom: 0; }
  .prose td:first-child { background: var(--surface-alt); color: var(--navy); font-weight: 700; }
}

/* ── 소식: 홈페이지 카드 · 목록(게시판) · 글 ── */
/* 홈 소식 카드: 안내 그림(세로 4:5)이 잘리지 않고 전체가 보이게 */
.news-thumb { height: auto; aspect-ratio: 4 / 5; background: var(--surface-alt); }
.news-thumb img { object-fit: contain; }
.news-item { grid-template-columns: 96px minmax(0, 1fr); }
.post-text .award { font-weight: 700; color: var(--navy); }
.post-text .award-top { display: inline-block; margin-bottom: 4px; font-size: 20px; line-height: 30px; font-weight: 900; color: var(--navy); }
/* 휴대폰: '소식 전체 보기'는 제목 줄 오른쪽에 작게 */
#news .section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
#news .section-head-row .section-head { margin: 0; }
.news-all-mini { flex: none; padding: 6px 12px; border: 1.5px solid var(--navy); border-radius: var(--radius-sm); font-size: 13px; line-height: 18px; font-weight: 700; color: var(--navy); }
.news-all-mini:hover { background: var(--navy-soft); }
.news-all { display: none; }
.news-all { margin: 20px 0 0; text-align: center; }
.news-all .btn { min-width: 200px; }

.board-head { display: none; }
.board-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.board-row { border-bottom: 1px solid var(--line); }
.board-row a { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "thumb main" "thumb date"; column-gap: 14px; row-gap: 2px; padding: 14px 4px; color: var(--ink); }
.board-row a:hover { background: var(--surface-alt); }
.board-num { display: none; }
.board-thumb { grid-area: thumb; width: 56px; height: 70px; background: var(--navy-soft); overflow: hidden; border-radius: var(--radius-sm); }
.board-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.board-main { grid-area: main; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.board-tag { font-size: 12px; font-weight: 700; color: var(--orange-text); }
.board-title { font-size: 15px; line-height: 22px; font-weight: 700; color: var(--navy); }
.board-row a:hover .board-title { color: var(--orange-text); }
.board-date { grid-area: date; font-size: 13px; color: var(--ink-muted); }
.board-more { margin-top: 20px; font-size: 14px; color: var(--ink-muted); }
.board-more a { font-weight: 700; }

.post-meta { font-size: 14px; color: var(--ink-muted); }
.post-body { display: flex; flex-direction: column; gap: 20px; }
.post-text p { margin: 0 0 12px; font-size: 16px; line-height: 28px; white-space: pre-line; }
.post-text p:last-child { margin-bottom: 0; }
.post-figure { margin: 0; }
.post-figure img { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.post-source { margin: 28px 0 0; font-size: 14px; }
.post-source a { font-weight: 700; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-nav-link { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--surface-alt); border-radius: var(--radius-sm); font-size: 14px; line-height: 20px; font-weight: 700; color: var(--navy); }
.post-nav-link span { font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.post-nav-link.next { text-align: right; }
.post-nav-link:hover { color: var(--orange-text); }
.post-back { margin-top: 24px; text-align: center; }

@media (min-width: 640px) {
  .board-head { display: grid; grid-template-columns: 64px 72px minmax(0, 1fr) 120px; gap: 16px; padding: 10px 4px; font-size: 13px; font-weight: 700; color: var(--ink-muted); text-align: center; }
  .board-head span:nth-child(2) { grid-column: 3; text-align: left; }
  .board-list { border-top: 0; }
  .board-head { border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line-strong); }
  .board-row a { grid-template-columns: 64px 72px minmax(0, 1fr) 120px; grid-template-areas: "num thumb main date"; align-items: center; column-gap: 16px; }
  .board-num { display: block; grid-area: num; text-align: center; font-size: 14px; color: var(--ink-muted); }
  .board-thumb { width: 72px; height: 90px; }
  .board-date { text-align: center; font-size: 14px; }
  .board-title { font-size: 16px; }
}
/* 소식 카드: 태블릿·PC 에서는 그림 위, 글 아래 / PC 에서는 아래 '소식 전체 보기' 버튼 */
@media (min-width: 640px) { .news-item { grid-template-columns: 1fr; } }
@media (min-width: 1024px) { .news-all { display: block; } .news-all-mini { display: none; } }
/* PC 에서도 '소식 전체 보기'는 제목 줄 맨 오른쪽(SNS 로고 오른쪽)에 작게 */
@media (min-width: 1024px) {
  #news .section-head-row { justify-content: flex-start; gap: 16px; }
  #news .section-head-row .section-head { margin-right: auto; }
  .news-all-mini { display: inline-block; order: 3; align-self: flex-end; margin-bottom: 8px; }
  .news-all { display: none; }
}
