/* ==========================================================================
   이어봄 평생교육원 — 2026 웹 시스템
   색·활자·컴포넌트는 00-디자인보드.png 를 정본으로 삼는다.
   ========================================================================== */

:root {
  /* 컬러 시스템 — 디자인보드 정본 */
  --cobalt: #0d47a1;
  --cobalt-700: #0a3a85;
  --cobalt-800: #072e6b;
  --cobalt-300: #6ea8ff;
  --cobalt-100: #d6e4fb;
  --cobalt-50: #eaf1fc;
  --orange: #ff6a00;
  --orange-600: #e05c00;
  --orange-300: #ffb380;
  --orange-50: #fff2e8;
  --ivory: #faf9f6;
  --ivory-100: #f3f2ee;
  --surface: #ffffff;
  --ink: #121212;
  --ink-600: #525252;
  --ink-400: #74716c;
  --line: #e3e1da;
  --line-soft: #eeece6;

  /* 의미색 — 색만으로 상태를 전하지 않는다(글자·아이콘 병기) */
  --ok: #0f7b4f;
  --ok-bg: #e9f5ef;
  --info: #0d47a1;
  --info-bg: #eaf1fc;
  --warn: #b45309;
  --warn-bg: #fff2e8;
  --err: #c62828;
  --err-bg: #fdecec;

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

  --wrap: 1240px;
  --gutter: 40px;
  --section: 104px;
  --r: 12px;
  --r-sm: 8px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(18, 18, 18, 0.04), 0 10px 30px rgba(13, 71, 161, 0.06);
  --shadow-sm: 0 1px 2px rgba(18, 18, 18, 0.05), 0 4px 14px rgba(13, 71, 161, 0.05);
  --ease: cubic-bezier(0.22, 0.7, 0.28, 1);
}

/* --------------------------------------------------------------- 기본 */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;          /* 나이대가 넓다 — 본문을 작게 쓰지 않는다 */
  line-height: 1.75;
  letter-spacing: -0.008em;
  word-break: keep-all;     /* 한국어는 어절 단위로 끊는다 */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.34; letter-spacing: -0.028em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--cobalt-300);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--cobalt); color: #fff; padding: 14px 22px; font-size: 16px;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 940px; }

.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;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.frame { display: block; overflow: hidden; background: var(--ivory-100); }

.ico {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico-sm { width: 17px; height: 17px; stroke-width: 1.6; }
.ico-lg { width: 30px; height: 30px; stroke-width: 1.2; }

/* ------------------------------------------------------------- 활자 계층 */
.display {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.24;
  letter-spacing: -0.038em;
  font-weight: 800;
}
.display .hl-blue { color: var(--cobalt); }
.display .hl-orange { color: var(--orange); }

.section-title {
  font-size: clamp(25px, 2.6vw, 34px);
  line-height: 1.36;
  letter-spacing: -0.034em;
  font-weight: 700;
}
.h3 { font-size: 21px; line-height: 1.42; font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.01em; color: var(--cobalt);
}
.eyebrow .num {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 22px; padding: 0 7px;
  background: var(--cobalt); color: #fff; border-radius: 4px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
}
.lead { color: var(--ink-600); font-size: 18px; line-height: 1.8; }
.muted { color: var(--ink-400); }
.meta { font-size: 15px; color: var(--ink-600); }
.small { font-size: 15px; }

.section { padding-block: calc(var(--section) / 2); }
.section-first { padding-top: 64px; }
.section-last { padding-bottom: var(--section); }
.section-tint { background: var(--ivory-100); }
.section-white { background: var(--surface); }

.section-head { margin-bottom: 40px; }
.section-head .section-title { margin-top: 12px; }
.section-head p { margin-top: 14px; color: var(--ink-600); max-width: 62ch; }
.head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}

/* 밑줄 규칙 — 학술 편집물의 얇은 선 */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule-strong { height: 2px; background: var(--cobalt); border: 0; margin: 0; width: 46px; }

/* --------------------------------------------------------------- 버튼 */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--r-sm);
  font-size: 16px; font-weight: 700; letter-spacing: -0.02em;
  cursor: pointer; text-align: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary { --btn-bg: var(--cobalt); --btn-fg: #fff; --btn-bd: var(--cobalt); }
.btn-primary:hover { --btn-bg: var(--cobalt-700); --btn-bd: var(--cobalt-700); }
.btn-primary:active { --btn-bg: var(--cobalt-800); --btn-bd: var(--cobalt-800); }
.btn-accent { --btn-bg: var(--orange); --btn-fg: #fff; --btn-bd: var(--orange); }
.btn-accent:hover { --btn-bg: var(--orange-600); --btn-bd: var(--orange-600); }
.btn-outline { --btn-bg: var(--surface); --btn-fg: var(--cobalt); --btn-bd: var(--cobalt-100); }
.btn-outline:hover { --btn-bd: var(--cobalt); --btn-bg: var(--cobalt-50); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn-ghost:hover { --btn-bg: var(--surface); --btn-bd: var(--ink-400); }
.btn-sm { min-height: 40px; padding: 0 15px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

.btn-text {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--cobalt); font-weight: 700; font-size: 16px;
  border-bottom: 1px solid transparent; min-height: 32px;
}
.btn-text:hover { border-bottom-color: var(--cobalt); }

/* --------------------------------------------------------------- 배지 */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; letter-spacing: -0.01em;
  background: var(--ivory-100); color: var(--ink-600); white-space: nowrap;
}
.badge-degree { background: var(--cobalt); color: #fff; }
.badge-license { background: #3730a3; color: #fff; }
.badge-job { background: var(--orange); color: #fff; }
.badge-culture { background: var(--ok); color: #fff; }
.badge-line { background: var(--surface); border: 1px solid var(--line); color: var(--ink-600); }

/* 상태 — 색과 함께 글자·아이콘을 반드시 병기한다 */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; padding: 3px 10px 3px 8px;
  border-radius: var(--r-pill); border: 1px solid transparent;
}
.status .ico { width: 15px; height: 15px; }
.status-open { background: var(--ok-bg); color: var(--ok); border-color: #c6e5d6; }
.status-soon { background: var(--info-bg); color: var(--info); border-color: var(--cobalt-100); }
.status-hurry { background: var(--warn-bg); color: var(--warn); border-color: #ffd6b3; }
.status-closed { background: var(--err-bg); color: var(--err); border-color: #f4cfcf; }

/* --------------------------------------------------------------- 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(13, 71, 161, 0.05); }
.nav { display: flex; align-items: center; gap: 22px; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 30px; height: 30px; flex: none; color: var(--cobalt); }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }
.brand-name small {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--ink-400); margin-top: -2px;
}

.nav-search {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px; min-width: 178px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink-400); font-size: 15px;
}
.nav-search:hover { border-color: var(--cobalt-300); color: var(--cobalt); }

.navlinks { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.navlinks a {
  font-size: 16px; font-weight: 600; color: var(--ink-600);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.navlinks a:hover { color: var(--ink); }
.navlinks a[aria-current] { color: var(--cobalt); border-bottom-color: var(--cobalt); font-weight: 700; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; background: none;
  border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer;
}

/* 모바일 서랍 */
.scrim {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(18, 18, 18, 0.42);
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 96;
  width: min(340px, 88vw); height: 100dvh;
  background: var(--surface); border-left: 1px solid var(--line);
  transform: translateX(102%); transition: transform 0.34s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
  padding: 20px 22px 32px;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-close {
  width: 46px; height: 46px; display: inline-grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer;
}
.drawer nav { display: flex; flex-direction: column; margin-top: 22px; }
.drawer nav a {
  padding: 15px 4px; font-size: 17px; font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
}
.drawer nav a[aria-current] { color: var(--cobalt); font-weight: 800; }
.drawer-actions { margin-top: 22px; display: grid; gap: 10px; }
.drawer-note { margin-top: 18px; font-size: 14px; color: var(--ink-400); }

/* --------------------------------------------------------------- 히어로 */
.hero { padding: 62px 0 54px; border-bottom: 1px solid var(--line-soft); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 396px;
  gap: 56px; align-items: center;
}
.hero-copy .display { margin: 16px 0 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--r); width: 100%; height: auto; }
.hero-figure figcaption {
  margin-top: 10px; font-size: 14px; color: var(--ink-400);
  display: flex; align-items: center; gap: 6px;
}
.hero-stat {
  position: absolute; right: -14px; top: -22px;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--cobalt-100);
  box-shadow: var(--shadow); display: grid; place-content: center; text-align: center;
  padding: 6px;
}
.hero-stat b { display: block; font-size: 24px; color: var(--cobalt); letter-spacing: -0.04em; }
.hero-stat span { display: block; font-size: 12.5px; color: var(--ink-400); line-height: 1.5; }

.figures { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 30px; }
.figures li { border-left: 2px solid var(--cobalt-100); padding-left: 14px; }
.figures b { display: block; font-size: 19px; letter-spacing: -0.03em; }
.figures span { font-size: 14px; color: var(--ink-400); }

/* 내부 페이지 머리 */
.page-head { padding: 46px 0 34px; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-400); }
.crumb a:hover { color: var(--cobalt); }
.page-head h1 { font-size: clamp(28px, 3.4vw, 42px); margin: 12px 0 12px; letter-spacing: -0.036em; }
.page-head .lead { max-width: 68ch; }

.head-banner { position: relative; border-radius: var(--r); overflow: hidden; margin-top: 24px; }
.head-banner img { width: 100%; height: auto; }

/* --------------------------------------------------------- 빠른 안내 줄 */
.quickbar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm); margin-top: -30px; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden;
}
.quickbar a {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 10px; font-size: 15px; font-weight: 600; color: var(--ink-600);
  border-left: 1px solid var(--line-soft);
}
.quickbar a:first-child { border-left: 0; }
.quickbar a:hover { background: var(--cobalt-50); color: var(--cobalt); }
.quickbar .ico { color: var(--cobalt); }

/* ------------------------------------------------------------ 일정 카드 */
.fit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fit-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 12px;
}
.fit-card h3 { font-size: 20px; }
.fit-when {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--cobalt);
  background: var(--cobalt-50); border-radius: var(--r-sm); padding: 7px 12px; align-self: flex-start;
}
.fit-card p { font-size: 16px; color: var(--ink-600); }
.fit-card .btn-text { margin-top: auto; align-self: flex-start; }

/* --------------------------------------------------------- 추천 과정 카드 */
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.course-card {
  display: grid; grid-template-columns: 101px minmax(0, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.course-card:hover { border-color: var(--cobalt-300); transform: translateY(-2px); }
.course-card .plate { background: var(--ivory-100); }
.course-card .plate img { width: 101px; height: 100%; object-fit: cover; }
.course-card .body { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.course-card h3 { font-size: 18px; letter-spacing: -0.035em; }
.course-card h3 a::after { content: ""; position: absolute; inset: 0; }
.course-card .body { position: relative; }
.course-card .card-meta { font-size: 14.5px; color: var(--ink-600); line-height: 1.6; }
.course-card .card-price { font-size: 16px; font-weight: 800; letter-spacing: -0.03em; margin-top: auto; }
.course-card .card-price small { font-size: 13px; font-weight: 600; color: var(--ink-400); }

/* --------------------------------------------------------- 비용·지원 3열 */
.cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px;
}
.panel > h3 { font-size: 20px; margin-bottom: 6px; }
.panel .panel-sub { font-size: 15px; color: var(--ink-400); margin-bottom: 16px; }
.panel-tint { background: var(--cobalt-50); border-color: var(--cobalt-100); }
.panel-warn { background: var(--orange-50); border-color: #ffd9bd; }

.deflist { border-top: 1px solid var(--line); }
.deflist > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px;
}
.deflist dt { color: var(--ink-600); }
.deflist dd { margin: 0; font-weight: 700; text-align: right; letter-spacing: -0.02em; }

.notelist { display: grid; gap: 10px; }
.notelist li { display: flex; gap: 9px; font-size: 16px; color: var(--ink-600); line-height: 1.62; }
.notelist .ico { color: var(--cobalt); margin-top: 4px; }
.notelist.warn .ico { color: var(--orange); }

/* ------------------------------------------------------------- 수료 단계 */
.journey { background: var(--cobalt); color: #fff; border-radius: var(--r); padding: 40px 40px 34px; }
.journey h2 { font-size: clamp(22px, 2.3vw, 30px); }
.journey p.j-sub { color: #cfe0f7; margin-top: 10px; font-size: 17px; }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.step { position: relative; padding-top: 26px; }
.step::before {
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px;
  background: rgba(255, 255, 255, 0.28);
}
.step.done::before { background: #fff; }
.step .dot {
  position: absolute; left: 0; top: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}
.step.done .dot { background: #fff; }
.step b { display: block; font-size: 17px; margin-bottom: 4px; }
.step span { display: block; font-size: 15px; color: #cfe0f7; line-height: 1.6; }
.journey-foot {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: flex; gap: 22px; flex-wrap: wrap; align-items: center; justify-content: space-between;
}
.journey-foot p { font-size: 15.5px; color: #cfe0f7; max-width: 62ch; }
.journey .btn-outline { --btn-bg: #fff; --btn-fg: var(--cobalt); --btn-bd: #fff; }

/* --------------------------------------------------------------- 공지 탭 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab {
  background: none; border: 0; cursor: pointer;
  padding: 12px 18px; min-height: 48px;
  font-size: 16px; font-weight: 700; color: var(--ink-400);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--cobalt); border-bottom-color: var(--cobalt); }
.tab:hover { color: var(--ink); }
.tabpanel { padding-top: 8px; }
.tabpanel[hidden] { display: none; }
.notice-list li {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px; align-items: center;
  padding: 15px 4px; border-bottom: 1px solid var(--line-soft); font-size: 16.5px;
}
.notice-list .n { color: var(--ink-400); font-size: 15px; }
.notice-list .d { color: var(--ink-400); font-size: 15px; white-space: nowrap; }
.notice-list a { font-weight: 600; }
.notice-list a:hover { color: var(--cobalt); }
.tag-new {
  display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 4px;
  background: var(--cobalt-50); color: var(--cobalt); font-size: 12px; font-weight: 800;
  letter-spacing: 0.04em; vertical-align: 2px;
}

/* ======================================================= 과정 탐색 (2면) */
.explore { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: 36px; align-items: start; }
.filters { position: sticky; top: 96px; }
.filter-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.filter-head h2 { font-size: 19px; }
.fgroup {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; margin-bottom: 12px;
}
.fgroup > summary {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 16.5px; font-weight: 700; list-style: none; min-height: 32px;
}
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary .stepno {
  display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none;
  border-radius: 50%; background: var(--cobalt); color: #fff; font-size: 13px; font-weight: 800;
}
.fgroup > summary .chev { margin-left: auto; transition: transform 0.2s var(--ease); color: var(--ink-400); }
.fgroup[open] > summary .chev { transform: rotate(180deg); }
.fgroup .fbody { padding-top: 14px; }
.fhint { font-size: 14px; color: var(--ink-400); margin-top: 10px; }

.opt { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 16px; cursor: pointer; min-height: 40px; }
.opt input { width: 20px; height: 20px; flex: none; accent-color: var(--cobalt); cursor: pointer; }
.opt .cnt { margin-left: auto; font-size: 14px; color: var(--ink-400); }

.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 15px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 15.5px; font-weight: 600; cursor: pointer; user-select: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.chip:hover { border-color: var(--cobalt-300); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip:has(input:checked) { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.chip:has(input:focus-visible) { outline: 3px solid var(--cobalt-300); outline-offset: 2px; }
.chip-day { min-width: 52px; padding: 0 12px; }

.sortset { display: flex; gap: 8px; flex-wrap: wrap; }
.sortbtn {
  min-height: 44px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  font-size: 15.5px; font-weight: 600;
}
.sortbtn[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }

.searchbox { display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 18px; height: 54px; }
.searchbox input { border: 0; background: none; outline: none; font: inherit; font-size: 16.5px; width: 100%; }
.searchbox .ico { color: var(--ink-400); }

.result-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin: 22px 0 16px;
}
.result-count { font-size: 16.5px; }
.result-count b { color: var(--cobalt); font-size: 19px; letter-spacing: -0.03em; }

.rows { display: grid; gap: 12px; }
.row-card {
  position: relative;
  display: grid; grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px;
}
.row-card:hover { border-color: var(--cobalt-300); }
.row-card .thumb { border-radius: var(--r-sm); overflow: hidden; background: var(--ivory-100); }
.row-card .thumb img { width: 116px; height: 81px; object-fit: cover; }
.row-card .thumb.noimg { display: grid; place-items: center; width: 116px; height: 81px; color: var(--cobalt-300); }
.row-main { min-width: 0; }
.row-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.row-card h3 { font-size: 20px; margin-bottom: 6px; }
.row-card h3 a::after { content: ""; position: absolute; inset: 0; }
.row-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15.5px; color: var(--ink-600); }
.row-facts span { display: inline-flex; align-items: center; gap: 6px; }
.row-facts .ico { color: var(--cobalt-300); }
.row-side { text-align: right; display: grid; gap: 8px; justify-items: end; position: relative; z-index: 1; }
.row-price { font-size: 19px; font-weight: 800; letter-spacing: -0.035em; white-space: nowrap; }
.row-price small { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-400); }
.fav {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer;
  color: var(--ink-400);
}
.fav[aria-pressed="true"], .fav-wide[aria-pressed="true"] { color: var(--orange); border-color: var(--orange-300); background: var(--orange-50); }
.fav[aria-pressed="true"] .ico, .fav-wide[aria-pressed="true"] .ico { fill: var(--orange); }

.empty {
  border: 1px dashed var(--line); border-radius: var(--r); background: var(--surface);
  padding: 52px 28px; text-align: center;
}
.empty .ico-lg { color: var(--cobalt-300); margin: 0 auto 14px; }
.empty h3 { font-size: 21px; margin-bottom: 10px; }
.empty p { color: var(--ink-600); max-width: 46ch; margin: 0 auto 20px; }
.empty[hidden] { display: none; }

.mobile-jump { display: none; }

/* ======================================================= 과정 상세 (3면) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 40px; align-items: start; }
.detail-block { margin-bottom: 44px; }
.detail-block > h2 { font-size: 24px; margin-bottom: 6px; }
.detail-block > .block-sub { color: var(--ink-400); font-size: 15.5px; margin-bottom: 18px; }

.spec-table th, .spec-table td { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); font-size: 16.5px; text-align: left; vertical-align: top; }
.spec-table th { width: 168px; color: var(--ink-600); font-weight: 600; background: var(--ivory-100); }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 1px solid var(--line); }
.spec-table td b { letter-spacing: -0.02em; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fitbox { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 18px; background: var(--surface); }
.fitbox h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.fitbox.yes h3 { color: var(--ok); }
.fitbox.no h3 { color: var(--err); }
.fitbox li { display: flex; gap: 9px; font-size: 16px; color: var(--ink-600); padding: 5px 0; }
.fitbox .ico-sm { margin-top: 5px; flex: none; }
.fitbox.yes .ico-sm { color: var(--ok); }
.fitbox.no .ico-sm { color: var(--err); }

.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line-soft); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  background: none; border: 0; cursor: pointer; padding: 18px 4px; min-height: 60px;
  font-size: 17.5px; font-weight: 700; letter-spacing: -0.028em;
}
.acc-trigger .wk {
  flex: none; display: inline-grid; place-items: center; min-width: 58px; height: 28px;
  border-radius: var(--r-pill); background: var(--cobalt-50); color: var(--cobalt);
  font-size: 13.5px; font-weight: 800;
}
.acc-trigger .chev { margin-left: auto; color: var(--ink-400); transition: transform 0.25s var(--ease); }
.acc-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acc-panel { display: none; padding: 0 4px 22px 76px; }
.acc-item.open .acc-panel { display: block; }
.acc-panel p { color: var(--ink-600); font-size: 16.5px; }
.acc-panel ul { margin-top: 10px; display: grid; gap: 6px; }
.acc-panel li { display: flex; gap: 9px; font-size: 16px; color: var(--ink-600); }
.acc-panel li .ico-sm { color: var(--cobalt-300); margin-top: 5px; flex: none; }

/* Subgrid 비교표 — 미지원 브라우저는 고정 높이 없이도 읽힌다 */
.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.compare-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 18px; display: grid; gap: 10px; align-content: start;
}
.compare-card.self { border-color: var(--cobalt); box-shadow: 0 0 0 1px var(--cobalt) inset; }
.compare-card h3 { font-size: 17.5px; }
.compare-card .c-row { font-size: 16px; color: var(--ink); }
.compare-card .c-row b { display: block; font-size: 14px; font-weight: 700; color: var(--ink-400); letter-spacing: 0.02em; margin-bottom: 2px; }
@supports (grid-template-rows: subgrid) {
  .compare { grid-template-rows: auto repeat(5, auto); }
  .compare-card { grid-row: span 6; grid-template-rows: subgrid; gap: 10px; }
}

.stickybuy { position: sticky; top: 96px; }
.buy-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 24px 22px;
}
.buy-price { font-size: 30px; font-weight: 800; letter-spacing: -0.045em; margin: 8px 0 2px; }
.buy-price small { font-size: 15px; font-weight: 600; color: var(--ink-400); letter-spacing: -0.01em; }
.buy-note { font-size: 14.5px; color: var(--ink-400); }
.buy-list { margin: 18px 0; border-top: 1px solid var(--line-soft); }
.buy-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 15.5px; }
.buy-list dt { color: var(--ink-600); }
.buy-list dd { margin: 0; font-weight: 700; }
.buy-actions { display: grid; gap: 9px; }
.seat-bar { height: 8px; border-radius: 99px; background: var(--ivory-100); overflow: hidden; margin: 6px 0 8px; }
.seat-bar i { display: block; height: 100%; background: var(--cobalt); border-radius: 99px; }

/* ================================================ 학습경로·시간표 (4면) */
.path-wrap {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 26px 22px;
}
.path-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14.5px; color: var(--ink-600); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { display: inline-block; width: 26px; height: 0; border-top: 3px solid var(--cobalt); border-radius: 2px; }
.legend i.dash { border-top: 3px dashed var(--cobalt-300); }
.legend i.dot { width: 11px; height: 11px; border: 0; border-radius: 50%; background: var(--ok); }

.pathlist { display: grid; gap: 22px; counter-reset: node; }
/* 노드 사이를 잇는 선 — 실선은 권장 경로, 점선은 선택 경로 */
.node::before {
  content: ""; position: absolute; left: 39px; top: -23px; width: 0; height: 23px;
  border-left: 3px solid var(--cobalt-300);
}
.node:first-child::before { display: none; }
.node.is-option::before { border-left-style: dashed; }
.node.is-done::before { border-left-color: var(--ok); }
.node {
  position: relative;
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  border: 1px solid var(--line); border-left: 4px solid var(--cobalt-300);
  border-radius: var(--r); background: var(--surface); padding: 16px 18px;
  touch-action: none;
}
.node.is-done { border-left-color: var(--ok); }
.node.is-option { border-left-style: dashed; }
.node.dragging { opacity: 0.85; box-shadow: var(--shadow); border-color: var(--cobalt); z-index: 3; }
.node .mark {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cobalt-50); color: var(--cobalt);
}
.node.is-done .mark { background: var(--ok-bg); color: var(--ok); }
.node .kind { font-size: 13.5px; font-weight: 800; color: var(--cobalt); letter-spacing: 0.02em; }
.node.is-done .kind { color: var(--ok); }
.node h3 { font-size: 18.5px; margin: 2px 0 3px; }
.node .npath { font-size: 15px; color: var(--ink-600); }
.node .nctl { display: flex; gap: 6px; }
.node .nctl button {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer;
  color: var(--ink-600);
}
.node .nctl button:hover { border-color: var(--cobalt); color: var(--cobalt); }
.node .grip { cursor: grab; color: var(--ink-400); }
.node img, .node svg { -webkit-user-drag: none; user-select: none; }
.path-total {
  margin-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  align-items: center; border-top: 1px solid var(--line); padding-top: 16px;
}
.path-total b { font-size: 18px; letter-spacing: -0.03em; }

/* 주간 시간표 */
.tt-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tt-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.tt-range { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.tt-nav { display: flex; align-items: center; gap: 8px; }
.tt-nav button, .tt-view button {
  min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--line);
  background: var(--surface); border-radius: var(--r-sm); cursor: pointer; font-size: 15px; font-weight: 600;
}
.tt-view { display: flex; gap: 6px; }
.tt-view button[aria-pressed="true"] { background: var(--cobalt-50); border-color: var(--cobalt); color: var(--cobalt); }

/* 함정 9 — 가로 스크롤 상자는 position:relative 여야 문서 폭을 밀지 않는다 */
.tt-scroll { overflow-x: auto; position: relative; }
.tt-grid { min-width: 760px; }
.tt-headwrap { position: sticky; top: 0; z-index: 2; }
.tt-head, .tt-row { display: grid; grid-template-columns: 74px repeat(6, minmax(0, 1fr)); }
.tt-head { background: var(--ivory-100); border-bottom: 1px solid var(--line); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.tt-head div { padding: 12px 8px; font-size: 15px; font-weight: 700; text-align: center; }
.tt-head div + div { border-left: 1px solid var(--line-soft); }
.tt-row { border-bottom: 1px solid var(--line-soft); min-height: 58px; }
.tt-row > div { border-left: 1px solid var(--line-soft); padding: 4px; }
.tt-row > .tt-time { border-left: 0; font-size: 14px; color: var(--ink-400); text-align: right; padding: 6px 10px 0 4px; }
.tt-slot { position: relative; }
.tt-class {
  position: absolute; left: 4px; right: 4px; top: 4px; z-index: 1;
  min-height: calc(100% - 8px); border-radius: var(--r-sm);
  padding: 8px 10px; font-size: 14px; line-height: 1.5;
  background: var(--cobalt-50); border: 1px solid var(--cobalt-100); color: var(--cobalt-800);
}
.tt-class.sp2 { height: calc(200% - 8px); }
.tt-class.sp25 { height: calc(250% - 8px); }
.tt-class.sp3 { height: calc(300% - 8px); }
.tt-class.stack { padding: 7px 9px; line-height: 1.42; }
.tt-class.stack .flag { margin: 0 0 5px; }
.tt-class.stack b { font-size: 13.5px; }
.tt-class.stack .when { margin-bottom: 5px; font-size: 12.5px; }
.tt-class.stack .when:last-child { margin-bottom: 0; }
.tt-class b { display: block; font-size: 14.5px; letter-spacing: -0.02em; }
.tt-class .when { display: block; color: var(--ink-600); font-size: 13.5px; }
.tt-class.conflict { background: var(--orange-50); border-color: #ffcfa8; }
.tt-class .flag { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--warn); font-weight: 800; font-size: 12.5px; }
.tt-class.online { background: var(--ok-bg); border-color: #c6e5d6; color: #0b5a3a; }

.is-stuck-head .tt-head { background: var(--cobalt); color: #fff; }
.is-stuck-head .tt-head div + div { border-left-color: rgba(255, 255, 255, 0.24); }
@supports (container-type: scroll-state) {
  .tt-headwrap { container-type: scroll-state; }
  @container scroll-state(stuck: top) {
    .tt-head { background: var(--cobalt); color: #fff; }
    .tt-head div + div { border-left-color: rgba(255, 255, 255, 0.24); }
  }
}

.tt-list { display: none; }
.tt-day { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 12px; overflow: hidden; }
.tt-day > h3 { font-size: 16.5px; padding: 12px 16px; background: var(--ivory-100); border-bottom: 1px solid var(--line-soft); }
.tt-day li { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
.tt-day li:last-child { border-bottom: 0; }
.tt-day .t { font-weight: 800; color: var(--cobalt); font-size: 15px; }
.tt-day .warnline { display: inline-flex; align-items: center; gap: 5px; color: var(--warn); font-weight: 700; font-size: 14.5px; }

.callout {
  display: flex; gap: 14px; align-items: flex-start;
  border-radius: var(--r); padding: 20px 22px; font-size: 16.5px; line-height: 1.72;
}
.callout .ico { flex: none; margin-top: 4px; }
.callout-info { background: var(--info-bg); color: #0b3a86; border: 1px solid var(--cobalt-100); }
.callout-warn { background: var(--warn-bg); color: #8a4405; border: 1px solid #ffd6b3; }
.callout-ok { background: var(--ok-bg); color: #0b5a3a; border: 1px solid #c6e5d6; }
.callout b { display: block; margin-bottom: 2px; }

/* ====================================================== 수강신청 (5면) */
.enroll-grid { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 40px; align-items: start; }
.estep { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 34px; }
.estep li { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 15.5px; }
.estep li b { display: block; font-size: 13px; color: var(--ink-400); letter-spacing: 0.06em; margin-bottom: 2px; }
.estep li.now { border-color: var(--cobalt); background: var(--cobalt-50); }
.estep li.now b { color: var(--cobalt); }
.estep li.done { border-color: #c6e5d6; background: var(--ok-bg); }
.estep li.done b { color: var(--ok); }

.pick { display: grid; gap: 10px; }
.pick-item {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 16px 18px;
  cursor: pointer;
}
.pick-item:has(input:checked) { border-color: var(--cobalt); background: var(--cobalt-50); }
.pick-item input { width: 22px; height: 22px; accent-color: var(--cobalt); cursor: pointer; }
.pick-item .pname { font-size: 17px; font-weight: 700; }
.pick-item .pmeta { font-size: 15px; color: var(--ink-600); }
.pick-item .pprice { font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.pick-item.soldout { opacity: 0.62; }

.field { margin-bottom: 18px; }
.field > label, .flabel { display: block; font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.req { color: var(--orange); margin-left: 3px; }
.control {
  width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 16.5px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
}
.control:focus { outline: 3px solid var(--cobalt-300); outline-offset: 1px; border-color: var(--cobalt); }
textarea.control { min-height: 118px; resize: vertical; line-height: 1.7; }
select.control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23525252' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field .hint { font-size: 14.5px; color: var(--ink-400); margin-top: 6px; }
.field.invalid .control { border-color: var(--err); background: var(--err-bg); }
.field .errmsg { display: none; align-items: center; gap: 6px; color: var(--err); font-size: 14.5px; font-weight: 700; margin-top: 6px; }
.field.invalid .errmsg { display: flex; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.agree-row { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 18px; }
.agree-row input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--cobalt); flex: none; }
.agree-row label { font-size: 16px; line-height: 1.6; }
.form-note { font-size: 15px; color: var(--ink-400); margin-top: 12px; }

.sum-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px 22px; }
.sum-card h2 { font-size: 19px; margin-bottom: 14px; }
.sum-list { border-top: 1px solid var(--line-soft); }
.sum-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
.sum-list dt { color: var(--ink-600); }
.sum-list dd { margin: 0; font-weight: 700; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0 4px; }
.sum-total b { font-size: 26px; letter-spacing: -0.045em; color: var(--cobalt); }

.refund-table th, .refund-table td { border: 1px solid var(--line-soft); padding: 13px 14px; font-size: 16px; text-align: left; }
.refund-table thead th { background: var(--ivory-100); font-weight: 700; }
.refund-table td b { color: var(--cobalt); }

/* --------------------------------------------------------------- 푸터 */
.site-footer { background: #0b2d63; color: #dfe8f6; padding: 56px 0 30px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h2 { font-size: 17px; color: #fff; margin-bottom: 14px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links li { padding: 5px 0; font-size: 15.5px; }
.f-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #fff; }
.f-brand .brand-mark { color: #8fb6f0; }
.f-info { font-size: 15.5px; line-height: 1.8; }
.f-info b { color: #fff; font-weight: 700; }
.footer-legal {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 14.5px; color: #a9bfe0;
}
.footer-legal .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* --------------------------------------------------------------- 토스트 */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 130;
  transform: translate(-50%, 18px);
  min-width: 280px; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 11px;
  padding: 15px 22px; background: var(--ink); color: #fff;
  border-radius: var(--r-sm); font-size: 16px; box-shadow: 0 14px 36px rgba(18, 18, 18, 0.26);
  opacity: 0; visibility: hidden;
  pointer-events: none;   /* 폭 전체 제출 버튼을 덮어 클릭을 삼키지 않는다 */
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .ico { color: var(--cobalt-300); flex: none; }

.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; place-items: center; cursor: pointer; color: var(--cobalt);
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.to-top.show { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------- 등장 */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* View Transition — 요소 범위로만 건다 */
.tabpanels { view-transition-name: notice-panels; }

/* =============================================================== 반응형 */
@media (max-width: 1180px) {
  :root { --wrap: 1040px; --section: 92px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; }
  .hero-figure img { width: 330px; }
  .navlinks { gap: 18px; }
  .navlinks a { font-size: 15.5px; }
  .nav-search { display: none; }
  .explore { grid-template-columns: 264px minmax(0, 1fr); gap: 26px; }
  .split, .enroll-grid { grid-template-columns: minmax(0, 1fr) 306px; gap: 30px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 28px; --section: 80px; }
  .navlinks { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-actions .btn-lg { min-height: 46px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-figure { max-width: 420px; }
  .hero-figure img { width: 100%; }
  .hero-stat { right: 8px; top: -18px; width: 116px; height: 116px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .cost-grid, .fit-grid { grid-template-columns: 1fr; }
  .explore { grid-template-columns: 1fr; }
  .filters { position: static; }
  .split, .enroll-grid { grid-template-columns: 1fr; }
  .stickybuy { position: static; }
  .compare { grid-template-columns: 1fr; }
  @supports (grid-template-rows: subgrid) {
    .compare { grid-template-rows: none; }
    .compare-card { grid-row: auto; grid-template-rows: none; }
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stepper { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .estep { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --gutter: 18px; --section: 62px; }
  .nav { height: 66px; gap: 12px; }
  .hero { padding: 36px 0 34px; }
  .quickbar { grid-template-columns: repeat(2, 1fr); margin-top: -18px; }
  .quickbar a { border-left: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); min-height: 92px; justify-content: center; }
  .quickbar a:nth-child(odd) { border-left: 0; }
  .quickbar a:nth-child(-n + 2) { border-top: 0; }
  .quickbar a:last-child { grid-column: 1 / -1; }
  .course-grid { grid-template-columns: 1fr; }
  .two-col, .grid2 { grid-template-columns: 1fr; }
  .journey { padding: 28px 22px 24px; }
  .stepper { grid-template-columns: 1fr; row-gap: 22px; }

  /* 모바일은 축소판이 아니다 — 사진은 원래 크기로 두고 값·관심을 아래 줄로 내린다
     (사진을 폭에 맞춰 늘리면 시안 해상도 한계 때문에 뭉개진다) */
  .row-card { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; padding: 16px; align-items: start; }
  .row-card .thumb { grid-row: 1; }
  .row-main { grid-column: 2; }
  .row-side {
    grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center;
    text-align: left; border-top: 1px solid var(--line-soft); padding-top: 12px;
  }
  .row-price { text-align: left; }

  .acc-panel { padding-left: 4px; }
  .acc-trigger { font-size: 16.5px; gap: 10px; }

  /* 시간표는 리스트로 대체한다 */
  .tt-scroll { display: none; }
  .tt-list { display: block; padding: 14px; }
  .tt-bar { padding: 14px; }

  .node { grid-template-columns: 40px minmax(0, 1fr); row-gap: 10px; }
  .node .nctl { grid-column: 1 / -1; justify-content: flex-end; }

  .estep { grid-template-columns: 1fr; gap: 8px; }
  .estep li { display: flex; align-items: baseline; gap: 10px; }
  .estep li b { margin-bottom: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .spec-table th { width: 118px; font-size: 15px; }
  .spec-table th, .spec-table td { padding: 11px 10px; font-size: 16px; }
  .refund-table th, .refund-table td { padding: 11px 10px; font-size: 15.5px; }

  /* 필터 다음은 결과 — 목표→필터→결과 단계 분리 */
  .mobile-jump { display: block; margin-top: 16px; }
  .mobile-jump a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 0 22px;
    border-radius: var(--r-pill); background: var(--cobalt); color: #fff; font-weight: 700;
    box-shadow: 0 8px 22px rgba(13, 71, 161, 0.22); font-size: 16.5px;
  }
  .to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 400px) {
  .brand-name { font-size: 17px; }
  .brand-name small { font-size: 10px; letter-spacing: 0.08em; }
  .nav-actions { gap: 7px; }
  .nav-actions .btn { padding: 0 13px; font-size: 15px; }
  .hero-stat { position: static; width: auto; height: auto; border-radius: var(--r); margin-bottom: 14px; padding: 12px 16px; display: flex; align-items: baseline; gap: 8px; }
  .hero-stat b { font-size: 20px; }
  .figures { gap: 14px; }
  .chip-day { min-width: 46px; padding: 0 8px; }
}

/* 터치 영역 44px 이상 — 작은 버튼이 남지 않게 마지막에 못 박는다 */
@media (max-width: 760px) {
  button, .btn, a[role="button"] { min-height: 44px; }
  .btn-sm { min-height: 44px; }
  .btn-text { min-height: 44px; }
  .tab { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .drawer, .scrim, .to-top, .toast, .mobile-jump { display: none !important; }
  body { background: #fff; font-size: 12pt; }
}
