@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  /* Colors — 문서/디자인-참고/DESIGN-airtable.md structure, warmed into a quieter, richer editorial palette */
  --color-primary: #181d26;
  --color-primary-active: #0d1218;
  --color-ink: #1b1a17;
  --color-body: #3c382f;
  --color-muted: #6b6154;
  --color-hairline: #e6ddc9;
  --color-border-strong: #a99d84;
  --color-canvas: #fbf9f4;
  --color-surface-soft: #f4efe4;
  --color-surface-strong: #e7ded0;
  --color-surface-dark: #14161d;
  --color-coral: #7a2a16;
  --color-forest: #0d2e1e;
  --color-accent: #9c7a3f;
  --color-accent-text: #7a5c2c;
  --color-accent-soft: #d8c49f;
  --color-on-primary: #fbf9f4;
  --color-link: #1b61c9;

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Spacing */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: clamp(56px, 8vw, 96px);

  --nav-height: 64px;
  --content-max: 1160px;
  --ease-standard: cubic-bezier(0.2, 0.7, 0.3, 1);

  --font-display: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --font-body: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* 원장님 요청으로 컴퓨터의 애니메이션 효과를 꺼 둬도 사이트의 움직임은 그대로 보여 줌 */

body {
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-canvas);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

section[id], #top { scroll-margin-top: var(--nav-height); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin: 0 0 14px;
}

.rule {
  width: 32px;
  height: 2px;
  background: var(--color-accent);
  margin: 0 auto 18px;
}
.rule--on-dark { background: var(--color-accent-soft); }

.display-lg {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin: 0;
}

.display-md {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--color-ink);
  margin: 0;
}

.title-lg {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0.12px;
  color: var(--color-ink);
  margin: 0;
}

.title-sm {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-ink);
  margin: 0 0 6px;
}

.body-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-body);
  margin: 0;
}

.caption {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--color-muted);
  margin: 0;
}

/* ---------- Buttons (no pill — rounded-lg only; pill is reserved for a pricing sub-system this site doesn't have) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: background-color 0.15s var(--ease-standard), border-color 0.15s var(--ease-standard),
              opacity 0.15s var(--ease-standard), transform 0.15s var(--ease-standard), box-shadow 0.15s var(--ease-standard);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 1px 2px rgba(24, 29, 38, 0.15);
}
.btn-primary:hover { background: var(--color-primary-active); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(24, 29, 38, 0.22); }
.btn-primary:active { background: var(--color-primary-active); transform: translateY(0); box-shadow: 0 1px 2px rgba(24, 29, 38, 0.15); }

.btn-secondary {
  background: var(--color-canvas);
  color: var(--color-ink);
  border-color: var(--color-hairline);
}
.btn-secondary:hover { border-color: var(--color-border-strong); transform: translateY(-1px); }

/* solid on signature-color surfaces — the system never inverts to a translucent style */
.btn-on-dark {
  background: var(--color-canvas);
  color: var(--color-ink);
}
.btn-on-dark:hover { background: var(--color-surface-soft); transform: translateY(-1px); }

.btn-sm { padding: 10px 20px; font-size: 15px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  /* white bar so the menu reads as its own clickable strip, apart from the cream page */
  background: #ffffff;
  border-bottom: 1px solid var(--color-hairline);
  transition: box-shadow 0.2s var(--ease-standard);
}
.nav.is-scrolled { box-shadow: 0 4px 16px rgba(24, 29, 38, 0.06); }

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  height: var(--nav-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo img { height: 24px; width: auto; } /* Korean wordmark (wider and heavier than the English one) */

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  font-weight: 400;
  flex-wrap: wrap;
}
.nav-links .nav-link {
  display: inline-block;
  color: var(--color-body);
  white-space: nowrap;
  transition: color 0.2s var(--ease-standard), transform 0.2s var(--ease-standard), filter 0.2s var(--ease-standard);
}
/* hover: grows a little and glows gold (drop-shadow also works on the gradient "shine" text) */
.nav-links .nav-link:hover,
.nav-item:focus-within > .nav-link {
  color: var(--color-ink);
  transform: scale(1.08);
  filter: drop-shadow(0 0 6px rgba(201, 160, 90, 0.55));
}
.nav-links .nav-link.is-active { color: var(--color-accent-text); font-weight: 500; }

/* Dropdown sub-menu: appears under its top item on hover or keyboard focus */
.nav-item { position: relative; }
.nav-sub {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 148px;
  padding: 8px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(24, 29, 38, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -4px);
  transition: opacity 0.18s var(--ease-standard), transform 0.18s var(--ease-standard), visibility 0s linear 0.18s;
  z-index: 101;
}
/* invisible bridge so the pointer can travel from the label down into the menu */
.nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-item.has-sub:hover > .nav-sub,
.nav-item.has-sub:focus-within > .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
.nav-sub-link {
  display: block;
  padding: 9px 14px;
  font-size: 15px;
  white-space: nowrap;
  color: var(--color-body);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s var(--ease-standard), color 0.15s var(--ease-standard);
}
.nav-sub-link:hover, .nav-sub-link:focus-visible { background: var(--color-surface-soft); color: var(--color-ink); }
.nav-sub-link.is-active { color: var(--color-accent-text); font-weight: 500; }
.nav-mobile a.is-active { color: var(--color-accent-text); }

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-ink);
  transition: transform 0.2s var(--ease-standard), opacity 0.2s var(--ease-standard);
}

.nav-mobile {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: #ffffff;
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: 8px 24px 32px;
  overflow-y: auto;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile-group { border-bottom: 1px solid var(--color-hairline); padding: 6px 0; }
.nav-mobile .nav-link {
  display: block;
  padding: 12px 4px;
  font-size: 20px;
  font-weight: 400;
  color: var(--color-ink);
}
.nav-mobile-sub { display: flex; flex-wrap: wrap; gap: 2px 18px; padding: 0 4px 12px; }
.nav-mobile .nav-sub-link { padding: 6px 0; font-size: 15px; color: var(--color-muted); background: none; }
.nav-mobile .btn { margin-top: 24px; border-bottom: none; }
.nav-mobile a.btn-primary { color: var(--color-on-primary); }

/* 6 top items + Korean logo need ~800px on one line; below that use the menu button */
@media (max-width: 860px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-standard), transform 0.6s var(--ease-standard);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Section scaffolding ---------- */
section { position: relative; }

.section-head {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head .eyebrow { text-align: center; }
.section-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-muted);
}

/* ---------- Hero — pure white canvas, no gradient, no mesh ---------- */
.hero {
  padding: var(--space-section) 24px calc(var(--space-section) * 0.9);
  text-align: center;
}
.hero-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-inner .eyebrow { text-align: center; }
.hero-logo {
  height: clamp(39px, 4.7vw, 49px);
  width: auto;
  margin: 2px 0 30px;
}
.hero-sub {
  margin-top: 18px;
  max-width: 460px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.5;
  color: var(--color-body);
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- About — continues the white canvas from hero, no seam ---------- */
.about {
  padding: 0 0 var(--space-section);
}
.section-head-gloss {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--color-muted);
}
.about-copy {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about-copy .body-text { font-size: 16px; }
.about-copy-accent { color: var(--color-ink); font-weight: 500; }

.kicker {
  text-align: center;
  padding: 0 24px var(--space-xl);
}
.kicker .caption { font-size: 13px; color: var(--color-accent-text); }

/* ---------- Signature cards (N / E / O) — full-width rounded cards, not viewport-bleed ---------- */
.signature-band { padding: var(--space-xl) 0; }

.signature-card {
  max-width: var(--content-max);
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: var(--space-xxl) var(--space-xl);
  color: var(--color-on-primary);
  text-align: center;
}
.signature-card--coral { background: var(--color-coral); }
.signature-card--forest { background: var(--color-forest); }
.signature-card--dark { background: var(--color-surface-dark); }

.signature-card .eyebrow {
  color: var(--color-accent-soft);
  text-align: center;
}
.signature-card .display-md { color: var(--color-on-primary); }
.signature-card-body {
  max-width: 480px;
  margin: 14px auto 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 640px) {
  .signature-card { border-radius: 0; margin: 0 -20px; padding: var(--space-xl) var(--space-lg); }
}

/* ---------- Programs ---------- */
/* ---------- Home: 설명회 안내 (banner + session cards, between hero and 둘러보기) ---------- */
.home-briefings { padding: 0 0 8px; }
.home-briefings > .container { max-width: 948px; } /* 900px content + gutters, same width as 둘러보기 */
/* 홍보 배너: deep warm burgundy (unused elsewhere) that sits naturally with the cream page and gold accents */
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
  padding: 32px 40px;
  background: #73332a;
  border: 1px solid rgba(216, 196, 159, 0.7);
  border-radius: var(--radius-lg);
  color: #f8f0de;
}
.promo-main { min-width: 0; }
.promo-eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-accent-soft);
}
.promo-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.promo-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #e9d6c9;
  word-break: keep-all;
}
.promo-side {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}
.promo-faculty { margin: 0; font-size: 14px; color: #e9d6c9; }
.promo-tel {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f8f0de;
}
.promo-tel:hover { color: var(--color-accent-soft); }
.promo-cta {
  margin-top: 10px;
  padding: 12px 22px;
  font-size: 15px;
  background: #f8f0de;
  color: #73332a;
  font-weight: 600;
}
.promo-cta:hover { background: #ffffff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
@media (max-width: 760px) {
  .promo-banner { flex-direction: column; align-items: flex-start; gap: 20px; padding: 26px 24px; }
  .promo-side { align-items: flex-start; text-align: left; width: 100%; }
  .promo-cta { align-self: stretch; }
}
.home-briefings-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.home-briefings-title { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--color-ink); }
.home-briefings-all { font-size: 14px; color: var(--color-muted); white-space: nowrap; }
.home-briefings-all:hover { color: var(--color-accent-text); }

.home-briefing-scroller { position: relative; }
.home-briefing-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  padding: 4px 4px 14px;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) transparent;
}
.hb-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  background: #ffffff;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  transition: border-color 0.2s var(--ease-standard), box-shadow 0.2s var(--ease-standard);
}
.hb-card:hover { border-color: var(--color-accent-soft); box-shadow: 0 0 0 1px rgba(216, 196, 159, 0.6), 0 8px 22px rgba(156, 122, 63, 0.18); }
.hb-card--empty { flex-basis: 100%; }
.hb-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.hb-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.hb-tag {
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-body);
  background: var(--color-surface-soft);
  border-radius: 4px;
}
.hb-status {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent-text);
  border: 1px solid var(--color-accent-soft);
  border-radius: 4px;
}
.hb-title { margin: 4px 0 0; font-size: 17px; font-weight: 600; line-height: 1.45; word-break: keep-all; }
.hb-meta { margin: 0; font-size: 14px; color: var(--color-body); }
.hb-meta-label { display: inline-block; min-width: 36px; color: var(--color-muted); }
.hb-nav {
  position: absolute;
  top: calc(50% - 7px);
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-hairline);
  background: #ffffff;
  color: var(--color-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(24, 29, 38, 0.1);
  z-index: 1;
}
.hb-nav:hover { border-color: var(--color-accent-soft); }
.hb-prev { left: -18px; }
.hb-next { right: -18px; }
@media (max-width: 760px) {
  .hb-nav { display: none; }
}
@media (max-width: 640px) {
  .hb-card { flex-basis: 78%; }
}

.programs { padding: var(--space-section) 0; }
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.program-card {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  padding: 38px 26px 30px;
  color: var(--color-ink);
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--program-accent, var(--color-accent));
}
.program-card--math { --program-accent: #8a4a2f; }
.program-card--korean { --program-accent: #3d5c48; }
.program-card--english { --program-accent: var(--color-accent-text); }
.program-card .caption {
  color: var(--program-accent, var(--color-accent));
  margin-bottom: 4px;
}
.program-card .title-sm { margin-bottom: 12px; }
.program-card .body-text { color: var(--color-body); font-size: 15px; }

@media (max-width: 760px) {
  .program-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact { padding: var(--space-section) 0; }
.home-contact { padding: 0 0 var(--space-section); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 8px;
}
.contact-item .title-sm { font-weight: 400; font-family: var(--font-display); font-size: 17px; }
.contact-item .title-sm { line-height: 1.6; word-break: keep-all; }
.contact-tel { color: inherit; text-decoration: none; }
.contact-tel:hover { color: var(--color-accent-text); text-decoration: underline; text-underline-offset: 3px; }
/* Static map (OSM tiles, warm-tinted) — the whole map opens the Naver place page */
.contact-mapbox {
  position: relative;
  display: block;
  max-width: 900px;
  margin: 0 auto 40px;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-soft);
  transition: border-color 0.2s var(--ease-standard), box-shadow 0.2s var(--ease-standard);
}
.contact-mapbox:hover { border-color: var(--color-accent-soft); box-shadow: 0 10px 28px rgba(156, 122, 63, 0.2); }
.contact-mapbox img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; }
/* marker: label above a teardrop pin whose tip sits exactly on the map centre */
.map-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, -100%);
}
.map-pin {
  display: block;
  width: 24px;
  height: 34px;
  margin-bottom: -1px; /* path tip sits at the bottom edge of the box */
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.28));
}
.map-pin-label {
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: #73332a;
  background: #ffffff;
  border: 1px solid rgba(115, 51, 42, 0.25);
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.map-cta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: #08843f;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(8, 132, 63, 0.3);
}
.contact-mapbox:hover .map-cta { background: #06703a; }
.map-credit {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-size: 10px;
  color: rgba(60, 56, 47, 0.7);
}
@media (max-width: 640px) {
  .contact-mapbox img { aspect-ratio: 4 / 3; }
  .map-cta { right: 10px; bottom: 10px; font-size: 13px; padding: 8px 12px; }
}
/* Naver-green, deepened a little so white text stays readable and it sits calmly on the cream page */
.btn-naver {
  background: #08843f;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(8, 132, 63, 0.2);
}
.btn-naver:hover { background: #06703a; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(8, 132, 63, 0.25); }

.nowrap { white-space: nowrap; }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Closing CTA band (cta-band-light) ---------- */
.cta-section { padding: 0 0 var(--space-section); }
.cta-band-light {
  max-width: var(--content-max);
  margin: 0 auto;
  background: var(--color-surface-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-xxl) var(--space-xl);
  text-align: center;
}
.cta-band-light .body-text { max-width: 440px; margin: 14px auto 0; }
.cta-band-light .btn { margin-top: 30px; }

@media (max-width: 640px) {
  .cta-band-light { border-radius: 0; margin: 0 -20px; padding: var(--space-xl) var(--space-lg); }
}

/* ---------- Inner-page hero (smaller banner for pages/*.html) ---------- */
.page-hero {
  padding: calc(var(--space-section) * 0.6) 24px calc(var(--space-section) * 0.5);
  text-align: center;
  background: var(--color-surface-soft);
  border-bottom: 1px solid var(--color-hairline);
}
.page-hero-inner { max-width: 640px; margin: 0 auto; }
.page-hero .eyebrow { text-align: center; }
.page-hero-sub {
  margin-top: 14px;
  font-size: 16px;
  color: var(--color-muted);
}

/* ---------- Placeholder card — reusable "content coming later" block ---------- */
.placeholder-card {
  border: 1.5px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  padding: 32px 28px;
  text-align: center;
  color: var(--color-muted);
}
.placeholder-card .title-sm { color: var(--color-ink); margin-bottom: 8px; }
.placeholder-card p { font-size: 14px; margin: 0; }

/* ---------- Subsection — one grade/subject block within a tier page ---------- */
.subsection { padding: var(--space-xxl) 0; }
.subsection + .subsection { border-top: 1px solid var(--color-hairline); }
.subsection-head { margin-bottom: 22px; }
.subsection-head .eyebrow { margin-bottom: 6px; }
.subsection-head .title-lg { margin: 0; }

.subsection--tinted { background: var(--color-surface-soft); }

/* ---------- Faculty cards — photo over name/role, scrolled sideways; 학력·경력 opens in a dialog ---------- */
.faculty-scroller { position: relative; }
.faculty-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  padding: 4px 4px 16px;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) transparent;
}
.faculty-card {
  position: relative;
  flex: 0 0 216px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 16px;
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  transition: border-color 0.2s var(--ease-standard), box-shadow 0.2s var(--ease-standard);
}
.faculty-card:hover, .faculty-card:focus-within {
  border-color: var(--color-accent-soft);
  box-shadow: 0 0 0 1px rgba(216, 196, 159, 0.6), 0 8px 22px rgba(156, 122, 63, 0.18);
}
.faculty-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft);
}
.faculty-name {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}
/* "수학 | 대표원장" — subject and role as one quiet line, no badge */
.faculty-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-muted);
}
.faculty-subject { font-weight: 600; color: var(--color-accent-text); }
.faculty-subject::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 11px;
  margin: 0 9px;
  background: var(--color-border-strong);
  vertical-align: -1px;
}
.faculty-more {
  align-self: flex-start;
  margin-top: 12px;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent-text);
  background: none;
  border: 0;
  cursor: pointer;
}
.faculty-more::after { content: " →"; }
/* the button's hit area covers the whole card, so a tap anywhere opens the profile */
.faculty-more::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius-md); }
.faculty-more:focus-visible { outline: none; }
.faculty-card:has(.faculty-more:focus-visible) { outline: 2px solid var(--color-accent-soft); outline-offset: 2px; }
.faculty-label {
  margin: 18px 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-muted);
}
.faculty-career { margin: 0; padding: 0; list-style: none; }
.faculty-career li {
  position: relative;
  padding-left: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-body);
}
.faculty-career li::before { content: "·"; position: absolute; left: 0; color: var(--color-muted); }

.scroll-nav {
  position: absolute;
  top: calc(50% - 8px);
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-hairline);
  background: #ffffff;
  color: var(--color-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(24, 29, 38, 0.1);
  z-index: 1;
}
.scroll-nav:hover { border-color: var(--color-accent-soft); }
.scroll-nav[hidden] { display: none; }
.scroll-prev { left: -18px; }
.scroll-next { right: -18px; }

.faculty-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  background: var(--color-canvas);
  color: var(--color-ink);
  box-shadow: 0 24px 60px rgba(13, 18, 24, 0.3);
}
.faculty-dialog::backdrop { background: rgba(20, 22, 29, 0.55); }
.faculty-dialog-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 28px;
}
.faculty-dialog-body .faculty-name { margin-top: 4px; font-size: 24px; }
.faculty-dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  color: var(--color-muted);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.faculty-dialog-close:hover { background: var(--color-surface-soft); color: var(--color-ink); }

@media (max-width: 760px) {
  .scroll-nav { display: none; }
}
@media (max-width: 640px) {
  .faculty-card { flex-basis: 58%; }
  .faculty-dialog-body { grid-template-columns: 1fr; gap: 4px; padding: 20px; }
  .faculty-dialog-body .faculty-photo { width: 140px; }
}

/* ---------- Category grid — home hub linking to the 8 top-level pages ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.category-card {
  display: block;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  padding: 28px 18px;
  text-align: center;
  transition: border-color 0.2s var(--ease-standard), transform 0.2s var(--ease-standard),
              box-shadow 0.2s var(--ease-standard), background-color 0.2s var(--ease-standard);
}
/* hover: grows a little and picks up a soft gold glow */
.category-card:hover {
  border-color: var(--color-accent-soft);
  transform: scale(1.03);
  box-shadow: 0 0 0 1px rgba(216, 196, 159, 0.6), 0 10px 28px rgba(156, 122, 63, 0.22);
}
.category-card .title-sm { margin: 0; }
.category-card.is-featured {
  /* a softer, slightly warm charcoal-navy instead of the button's near-black */
  background: #2c313b;
  /* thin pale-gold outline, the dark-card version of the other cards' hairline */
  border-color: rgba(216, 196, 159, 0.8);
}
.category-card.is-featured:hover { background: #252a33; border-color: var(--color-accent-soft); }
.category-card.is-featured .title-sm { color: #f8f0de; }
.category-card.is-featured .caption { color: rgba(240, 228, 203, 0.82); }
/* on the dark card the shine rests in pale gold-cream and sweeps soft gold */
.category-card.is-featured .text-shine {
  background-image: linear-gradient(105deg,
    #f8f0de 0%, #f8f0de 38%,
    var(--color-accent-soft) 45%, #e9cb8e 50%, var(--color-accent-soft) 55%,
    #f8f0de 62%, #f8f0de 100%);
}

@media (max-width: 860px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
}

/* ---------- Forms (설명회 참석 예약 · 상담 예약) ---------- */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
}
.form-field em { font-style: normal; font-weight: 400; color: var(--color-muted); }
.form-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 16px; /* 16px keeps iOS from zooming into the field */
  color: var(--color-ink);
  background: var(--color-canvas);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s var(--ease-standard), box-shadow 0.15s var(--ease-standard);
}
textarea.form-input { resize: vertical; line-height: 1.6; }
/* custom chevron so its right inset matches the text's left inset */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  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 1.5l5 5 5-5' fill='none' stroke='%231b1a17' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  cursor: pointer;
}
.form-input::placeholder { color: #8f8574; }
.form-input.is-invalid { border-color: #c0392b; }
.form-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15); }
.field-error { margin: 2px 0 0; font-size: 13px; font-weight: 400; line-height: 1.4; color: #c0392b; }
.field-error[hidden] { display: none; }
.form-input:focus {
  outline: none;
  border-color: var(--color-ink);
  box-shadow: 0 0 0 3px rgba(122, 92, 44, 0.18);
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-body);
  cursor: pointer;
}
.form-consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--color-primary); flex: none; }
.consent-toggle {
  background: none;
  border: none;
  padding: 0;
  margin-left: 4px;
  font: inherit;
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-detail {
  margin-top: -6px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft);
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-muted);
}
.consent-detail p { margin: 0; }
.form-status { min-height: 1em; margin: 0; font-size: 14px; color: var(--color-muted); }
.form-status:empty { display: none; }
.form-status.is-error { color: #a3361b; }
.booking-form .btn[type="submit"] { align-self: flex-start; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-done {
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  text-align: center;
}
.form-done:focus { outline: none; }
.form-done .title-sm { margin-bottom: 6px; }
.form-done p:last-child { font-size: 14px; color: var(--color-muted); margin: 0; }

.consult-form {
  max-width: 640px;
  padding: 28px;
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
}
.consult-intro { margin: 0; font-size: 15px; color: var(--color-body); }

/* ---------- Briefing session cards ---------- */
.briefing-list { display: flex; flex-direction: column; gap: 48px; }
.briefing-group-head { margin-bottom: 16px; }
.briefing-group-title { margin: 0 0 4px; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--color-ink); }
.briefing-group-meta { margin: 0; font-size: 14px; color: var(--color-accent-text); }
.briefing-group-list { display: flex; flex-direction: column; gap: 16px; }
.briefing-round { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--color-accent-text); }
/* indented talking points with a faint vertical rule filling the indent */
.briefing-points { position: relative; margin: 0 0 16px; padding: 2px 0 2px 16px; list-style: none; font-size: 15px; line-height: 1.75; color: var(--color-body); }
/* drawn as a pseudo-element so it can sit a touch right of the edge and stop short of the first/last line */
.briefing-points::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 7px;
  bottom: 7px;
  width: 2px;
  border-radius: 1px;
  background: var(--color-hairline);
}
.briefing-card.is-target { border-color: var(--color-accent-soft); box-shadow: 0 0 0 2px rgba(216, 196, 159, 0.5); }
.briefing-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 24px;
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
}
.briefing-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: start;
  padding: 14px 0;
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft);
  font-variant-numeric: tabular-nums;
}
.briefing-month { font-size: 13px; font-weight: 600; color: var(--color-accent-text); }
.briefing-day { font-size: 32px; font-weight: 600; line-height: 1.1; color: var(--color-ink); }
.briefing-weekday { font-size: 12px; color: var(--color-muted); }
.briefing-title { margin: 0 0 6px; font-size: 19px; font-weight: 600; color: var(--color-ink); }
.briefing-meta { margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: var(--color-muted); }
.briefing-desc { margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: var(--color-body); }
/* .booking-form sets display:flex, which would otherwise override the hidden attribute */
.booking-form[hidden], .hb-nav[hidden] { display: none; }
.briefing-form {
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--color-hairline);
}
.briefing-closed { margin: 0; font-size: 14px; font-weight: 500; color: var(--color-muted); }
.briefing-card.is-closed .briefing-day,
.briefing-card.is-closed .briefing-title { color: var(--color-muted); }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .consult-form { padding: 20px; }
  .briefing-card { display: block; padding: 18px; }
  .briefing-date {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    padding: 6px 12px;
    margin-bottom: 12px;
  }
  .briefing-day { font-size: 18px; }
  .booking-form .btn[type="submit"] { align-self: stretch; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-hairline);
  padding: var(--space-xxl) 0 var(--space-lg);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: var(--space-xl);
}
.footer-logo img { height: 18px; width: auto; }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--color-muted);
}
.footer-links a:hover { color: var(--color-ink); }
.footer-info {
  padding-bottom: var(--space-lg);
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-muted);
  word-break: keep-all;
}
.footer-info p { margin: 0; }
.footer-info a { color: inherit; }
.footer-info a:hover { color: var(--color-ink); }
.footer-bottom {
  border-top: 1px solid var(--color-hairline);
  padding-top: var(--space-lg);
  font-size: 13px;
  color: var(--color-muted);
}

@media (max-width: 640px) {
  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* ---------- Home popup ---------- */
html.popup-open { overflow: hidden; }
.site-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 22, 29, 0.55);
  opacity: 0;
  transition: opacity 0.25s var(--ease-standard);
}
.site-popup.is-open { opacity: 1; }
.popup-panel {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-primary);
  box-shadow: 0 24px 60px rgba(13, 18, 24, 0.35);
  transform: translateY(12px);
  transition: transform 0.25s var(--ease-standard);
}
.site-popup.is-open .popup-panel { transform: translateY(0); }
.popup-body {
  padding: 44px 32px 36px;
  text-align: center;
  color: var(--color-on-primary);
}
.popup-eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-accent-soft);
}
.popup-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.popup-text {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(251, 249, 244, 0.78);
  word-break: keep-all;
}
.popup-cta { width: 100%; }
.popup-image-link { display: block; }
.popup-image-link img { display: block; width: 100%; height: auto; }
.popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 12px 20px;
  background: var(--color-surface-dark);
  border-top: 1px solid rgba(251, 249, 244, 0.08);
}
.popup-hide-today {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(251, 249, 244, 0.8);
  cursor: pointer;
}
.popup-hide-today input { width: 16px; height: 16px; margin: 0; accent-color: var(--color-accent); }
.popup-close {
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  color: var(--color-on-primary);
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.popup-close:hover { background: rgba(251, 249, 244, 0.08); }
.popup-close:focus-visible, .popup-hide-today input:focus-visible { outline: 2px solid var(--color-accent-soft); outline-offset: 2px; }

/* ---------- Shine text (설명회·예약) ----------
   Same dark ink as the other menu items, with a band of gold light sweeping across now and then.
   Resting colour stays ink so it never looks like the "current page" gold. */
.text-shine {
  font-weight: 500;
  background: linear-gradient(105deg,
    var(--color-ink) 0%, var(--color-ink) 38%,
    var(--color-accent) 45%, #d2ad6a 50%, var(--color-accent) 55%,
    var(--color-ink) 62%, var(--color-ink) 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shine 3.5s ease-in-out infinite;
}
@keyframes text-shine {
  0%   { background-position: 100% 0; }
  60%  { background-position: 0% 0; }
  100% { background-position: 0% 0; }
}
/* on the briefing page itself it behaves like any other current-page item */
.is-active .text-shine {
  animation: none;
  background: none;
  -webkit-text-fill-color: currentColor;
}

/* ---------- Home 둘러보기 (taste pass): 설명회·상담 as the large block, the rest as a list ---------- */
.explore2 { padding: var(--space-section) 0; }
.explore2-title {
  margin: 0 0 48px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--color-ink);
}
.explore2-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
}
.explore2-feature {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 340px;
  padding: clamp(28px, 3.4vw, 44px);
  background: #2c313b;
  border-radius: var(--radius-md);
  color: #f8f0de;
}
.explore2-feature-title { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.explore2-feature-title a { color: inherit; }
.explore2-feature .text-shine {
  background-image: linear-gradient(105deg,
    #f8f0de 0%, #f8f0de 38%,
    var(--color-accent-soft) 45%, #e9cb8e 50%, var(--color-accent-soft) 55%,
    #f8f0de 62%, #f8f0de 100%);
}
.explore2-feature-text { margin: 0; max-width: 30em; font-size: 17px; line-height: 1.65; color: #ece2cc; word-break: keep-all; }
.explore2-feature-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.explore2-btn { padding: 14px 24px; font-size: 16px; font-weight: 600; color: var(--color-ink); background: var(--color-accent-soft); border-radius: var(--radius-sm); }
.explore2-btn:hover { background: #e6d5b4; transform: translateY(-1px); }
.explore2-btn:active { transform: scale(0.98); }
.explore2-link { font-size: 16px; font-weight: 600; color: #f8f0de; }
.explore2-link:hover { color: var(--color-accent-soft); }

.explore2-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.explore2-list a {
  display: grid;
  grid-template-columns: minmax(7em, 0.9fr) minmax(0, 1.6fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 18px 16px;
  margin: 0 -16px;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  transition: background-color 0.2s var(--ease-standard);
}
.explore2-list a:hover, .explore2-list a:focus-visible { background: var(--color-surface-soft); }
.explore2-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.explore2-sub { font-size: 16px; color: var(--color-body); word-break: keep-all; }
.explore2-arrow { font-size: 18px; color: var(--color-accent-text); transition: transform 0.2s var(--ease-standard); }
.explore2-list a:hover .explore2-arrow { transform: translateX(4px); }

@media (max-width: 860px) {
  .explore2-grid { grid-template-columns: 1fr; }
  .explore2-feature { min-height: 0; }
}
@media (max-width: 520px) {
  .explore2-list a { grid-template-columns: 1fr auto; row-gap: 2px; }
  .explore2-name { grid-column: 1; }
  .explore2-sub { grid-column: 1; grid-row: 2; font-size: 15px; }
  .explore2-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* ---------- 학원소개 · 설명회 및 예약 (taste pass): a page head that leads, and bigger section heads ---------- */
.page-hero--lead {
  text-align: left;
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 0;
}
.page-hero--lead .page-hero-inner { max-width: var(--content-max); padding: 0 24px; }
.page-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-ink);
}
.page-hero--lead .page-hero-sub { margin: 16px 0 0; max-width: 36em; font-size: 18px; line-height: 1.6; color: var(--color-body); word-break: keep-all; }
.page-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.page-jump a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--color-accent-soft); border-radius: var(--radius-full); background: transparent; font-size: 15px; font-weight: 600; color: var(--color-accent-text); transition: background-color 0.2s var(--ease-standard), border-color 0.2s var(--ease-standard), color 0.2s var(--ease-standard), transform 0.15s var(--ease-standard); }
.page-jump a::after { content: '↓'; font-weight: 500; transition: transform 0.2s var(--ease-standard); }
.page-jump a:hover { background: var(--color-accent-text); border-color: var(--color-accent-text); color: #ffffff; }
.page-jump a:hover::after { transform: translateY(2px); }
.page-jump a:active { transform: scale(0.97); }
.page-jump a:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }

#greeting .title-lg, #instructors .title-lg, #center .title-lg, #contact .title-lg, #sessions .title-lg, #consult .title-lg {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
#greeting, #instructors, #contact, #sessions, #consult { padding: clamp(56px, 6vw, 88px) 0; }
#greeting .subsection-head, #instructors .subsection-head, #contact .subsection-head, #sessions .subsection-head, #consult .subsection-head { margin-bottom: 32px; }
.subsection-lead { margin: 10px 0 0; font-size: 17px; line-height: 1.6; color: var(--color-body); word-break: keep-all; }
#greeting .placeholder-card { border: 0; background: var(--color-surface-soft); text-align: left; padding: 32px; }
#greeting .placeholder-card p { font-size: 16px; }

/* 설명회: course summary on the left (sticky), sessions on the right; cards are tone fills, not outlines */
.sessions-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.sessions-aside { position: sticky; top: calc(var(--nav-height) + 24px); display: flex; flex-direction: column; gap: 6px; }
.sessions-aside:empty { display: none; }
.sessions-aside-title { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--color-muted); }
.sessions-aside-item { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 44px 14px 16px; border-radius: var(--radius-sm); background: var(--color-surface-soft); color: var(--color-ink); transition: background-color 0.2s var(--ease-standard), transform 0.15s var(--ease-standard); }
.sessions-aside-item::after { content: '↓'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 16px; font-weight: 600; color: var(--color-accent-text); transition: transform 0.2s var(--ease-standard); }
.sessions-aside-item:hover { background: var(--color-surface-strong); }
.sessions-aside-item:hover::after { transform: translateY(-50%) translateY(2px); }
.sessions-aside-item:active { transform: scale(0.98); }
.sessions-aside-item:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.sessions-aside-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.sessions-aside-name em { font-style: normal; font-size: 15px; font-weight: 500; color: var(--color-accent-text); margin-left: 4px; }
.sessions-aside-meta { font-size: 15px; color: var(--color-body); }
.sessions-aside-consult { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--color-accent-text); }
.sessions-aside-consult:hover { color: var(--color-ink); }
#sessions .briefing-group-head { scroll-margin-top: calc(var(--nav-height) + 16px); }
#sessions .briefing-group-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
#sessions .briefing-group-meta { font-size: 15px; }
#sessions .briefing-card { border: 0; background: var(--color-surface-soft); }
#sessions .briefing-card.is-target { box-shadow: 0 0 0 2px var(--color-accent-soft); }
#sessions .briefing-date { background: #ffffff; }
#sessions .briefing-title { font-size: 21px; }
#sessions .briefing-meta { font-size: 15px; color: var(--color-body); }
#sessions .briefing-points { font-size: 16px; }
#sessions .briefing-card .btn-primary { box-shadow: none; }

/* 상담 예약: how to reach us on the left, the form on the right */
.consult-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.consult-side .consult-intro { font-size: 18px; line-height: 1.65; color: var(--color-ink); word-break: keep-all; margin: 0 0 28px; }
.consult-facts { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.consult-facts dt { font-size: 15px; font-weight: 600; color: var(--color-muted); margin-bottom: 2px; }
.consult-facts dd { margin: 0; font-size: 17px; line-height: 1.6; color: var(--color-ink); word-break: keep-all; }
.consult-facts dd a { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.01em; color: var(--color-ink); }
.consult-facts dd a:hover { color: var(--color-accent-text); }
#consult .consult-form { max-width: none; border: 0; background: #ffffff; padding: clamp(24px, 3vw, 36px); }
#consult .consult-form .btn-primary { box-shadow: none; }

@media (max-width: 860px) {
  .sessions-layout, .consult-layout { grid-template-columns: 1fr; }
  .sessions-aside { position: static; }
}
/* taste pass, continued: tone steps instead of outlines and divider lines on these two pages */
#instructors .faculty-card { border-color: transparent; background: #ffffff; }
#instructors .faculty-card:hover, #instructors .faculty-card:focus-within { border-color: var(--color-accent-soft); }
#greeting + #instructors, #instructors + #contact, #sessions + #consult { border-top: 0; }
.contact-label { text-transform: none; letter-spacing: 0; font-size: 14px; }

/* ---------- Home popup: one popup per poster. Desktop: side by side. Phone: stacked, close the top to see the next ---------- */
.popup-stack { display: flex; align-items: flex-start; justify-content: center; gap: 20px; max-width: calc(100vw - 32px); }
.popup-panel--image { flex: 0 0 auto; width: auto; max-width: none; background: var(--color-surface-dark); }
.popup-panel--image .popup-image-link { display: block; }
.popup-panel--image img { display: block; height: min(76vh, 620px); width: auto; max-width: 100%; }
.popup-panel--image a.popup-image-link:hover img { opacity: 0.94; }
@media (max-width: 760px) {
  .popup-stack { display: grid; }
  .popup-panel--image { grid-area: 1 / 1; width: calc(100vw - 32px); }
  .popup-panel--image img { width: 100%; height: auto; max-height: 74vh; object-fit: contain; }
}
.popup-panel--image:focus { outline: none; }
.popup-panel--image.is-closed { visibility: hidden; pointer-events: none; }

/* 학원소개 인사말 */
.greeting-text .title-lg { margin: 0 0 28px; }
.greeting-body { max-width: 40em; display: flex; flex-direction: column; gap: 18px; }
.greeting-body p { margin: 0; font-size: 18px; line-height: 1.8; color: var(--color-ink); word-break: keep-all; }
.greeting-body strong { font-weight: 700; color: var(--color-ink); white-space: nowrap; }
.greeting-body .greeting-lead { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.65; font-weight: 500; letter-spacing: -0.01em; }
.greeting-body .greeting-close { margin-top: 8px; font-size: clamp(19px, 1.5vw, 22px); font-weight: 700; color: var(--color-accent-text); }
@media (max-width: 760px) { .greeting-body p { font-size: 16px; } }

/* 모집안내 (이룸초등·중등·고등): level switcher, then one section per class with 강좌 소개 + 시간표 */
.level-tabs { display: flex; gap: clamp(24px, 4vw, 44px); margin-bottom: 40px; box-shadow: inset 0 -3px 0 var(--color-surface-strong); }
.level-tabs a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 2px; border-bottom: 3px solid transparent; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--color-muted); transition: color 0.2s var(--ease-standard), border-color 0.2s var(--ease-standard); }
.level-tabs a:hover { color: var(--color-ink); border-bottom-color: var(--color-accent-soft); }
.level-tabs a:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.level-tabs a.is-active { color: var(--color-ink); font-weight: 700; border-bottom-color: var(--color-ink); cursor: default; }
.course-section { padding: clamp(56px, 6vw, 88px) 0; scroll-margin-top: var(--nav-height); }
.subsection + .course-section { border-top: 0; }
.course-title { margin: 0 0 32px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.03em; }
.course-note { margin-left: 8px; font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--color-accent-text); }
.course-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.course-label { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--color-muted); }
.course-pending { margin: 0; font-size: 17px; line-height: 1.7; color: var(--color-ink); word-break: keep-all; }
.course-pending-box { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(28px, 4vw, 48px); background: var(--color-surface-soft); border-radius: var(--radius-sm); }
.subsection--tinted .course-pending-box { background: #ffffff; }
.course-pending-box p { margin: 0; font-size: 17px; color: var(--color-ink); word-break: keep-all; }
.course-pending-box a { font-size: 15px; font-weight: 600; color: var(--color-accent-text); }
.course-pending-box a:hover { color: var(--color-ink); }
@media (max-width: 860px) { .course-layout { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .level-tabs { gap: 20px; } .level-tabs a { font-size: 17px; } }
.sessions-aside-meta .nowrap { white-space: nowrap; }

/* 모집안내 시간표: white cards that stand off the cream page, light header row, soft yellow for 클리닉·테스트 */
.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; }
.course-layout--stack { grid-template-columns: 1fr; gap: 36px; }
.course-layout--stack .course-intro { max-width: 46em; }
.course-lead { margin: 0 0 10px; font-size: clamp(20px, 1.8vw, 23px); font-weight: 700; letter-spacing: -0.02em; color: var(--color-ink); word-break: keep-all; }
.tt-card { margin-bottom: 20px; padding: clamp(18px, 2.4vw, 28px); background: #ffffff; border: 1px solid #e3d9c6; border-radius: var(--radius-md); }
.tt-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 16px; }
.tt-head h4 { margin: 0; padding-left: 12px; border-left: 4px solid #73332a; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--color-ink); line-height: 1.2; }
.tt-head p { margin: 0; font-size: 15px; font-weight: 500; color: var(--color-muted); }
.tt { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.tt th, .tt td { padding: 12px 6px; text-align: center; font-size: 16px; line-height: 1.35; color: var(--color-ink); border: 1px solid #eee6d8; word-break: keep-all; }
.tt thead th { background: #f4ede1; font-size: 15px; font-weight: 700; }
.tt thead th:first-child, .tt tbody th { width: 17%; }
.tt tbody th { background: #faf7f1; font-size: 15px; font-weight: 600; color: var(--color-body); }
.tt td.tt-extra { background: #fbf1d4; font-weight: 600; }
.tt tr.tt-break td { background: #faf7f1; color: var(--color-muted); font-size: 15px; padding: 8px 6px; letter-spacing: 0.4em; }
.tt tr.tt-break th { padding: 8px 6px; }
.tt-note { margin: 14px 0 0; font-size: 15px; color: var(--color-body); }
.tt-note b { font-weight: 700; color: var(--color-ink); margin-right: 6px; }
.tt-foot { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--color-muted); word-break: keep-all; }
.tt-swatch { flex: 0 0 14px; height: 14px; margin-top: 4px; border-radius: 3px; background: #fbf1d4; border: 1px solid #ecdcae; }
@media (max-width: 640px) {
  .tt th, .tt td { padding: 9px 2px; font-size: 13.5px; }
  .tt thead th, .tt tbody th { font-size: 13px; }
  .tt thead th:first-child, .tt tbody th { width: 19%; }
  .tt tr.tt-break td { letter-spacing: 0.2em; }
}
@media (max-width: 640px) { .tt-t { display: block; } }
@media (max-width: 640px) {
  .tt-card { padding: 16px 10px; }
  .tt-head { padding: 0 4px; }
  .tt th, .tt td, .tt tr.tt-break th { padding: 9px 1px; }
  .tt td { font-size: 12.5px; }
  .tt thead th:first-child, .tt tbody th { width: 17%; }
}

/* 공지사항: a list of rows (category · date, title, summary) that open a detail page */
.notice-section { padding-top: clamp(32px, 4vw, 56px); }
.notice-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.notice-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 32px; gap: 8px 28px; align-items: center; padding: 26px 28px; background: #ffffff; border: 1px solid #e3d9c6; border-radius: var(--radius-md); color: var(--color-ink); transition: border-color 0.2s var(--ease-standard), transform 0.15s var(--ease-standard); }
.notice-row:hover { border-color: var(--color-ink); }
.notice-row:active { transform: scale(0.995); }
.notice-row:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.notice-meta { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 15px; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.notice-cat { align-self: flex-start; padding: 2px 10px; border-radius: var(--radius-full); background: #f4ede1; font-size: 14px; font-weight: 700; color: #73332a; }
.notice-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.notice-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; word-break: keep-all; }
.notice-summary { font-size: 16px; line-height: 1.6; color: var(--color-body); word-break: keep-all; }
.notice-arrow { font-size: 22px; color: var(--color-accent-text); transition: transform 0.2s var(--ease-standard); }
.notice-row:hover .notice-arrow { transform: translateX(4px); }
.notice-empty, .notice-missing { padding: 32px 0; font-size: 17px; color: var(--color-body); list-style: none; }
.notice-missing a { color: var(--color-accent-text); font-weight: 600; }
.notice-article { padding: clamp(48px, 6vw, 88px) 0; }
.notice-detail { max-width: 760px; }
.notice-detail .notice-meta { flex-direction: row; align-items: center; gap: 12px; }
.notice-detail-title { margin: 16px 0 28px; font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.25; color: var(--color-ink); word-break: keep-all; }
.notice-body { display: flex; flex-direction: column; gap: 16px; }
.notice-body p { margin: 0; font-size: 18px; line-height: 1.8; color: var(--color-ink); word-break: keep-all; }
.notice-body ul { margin: 0; padding: 22px 26px 22px 46px; background: #ffffff; border: 1px solid #e3d9c6; border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 10px; }
.notice-body li { font-size: 17px; line-height: 1.65; color: var(--color-ink); word-break: keep-all; }
.notice-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.notice-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 56px; padding-top: 28px; border-top: 1px solid #e3d9c6; }
.notice-nav a { display: flex; gap: 16px; padding: 10px 0; font-size: 16px; color: var(--color-ink); word-break: keep-all; }
.notice-nav a span { flex: 0 0 56px; font-weight: 600; color: var(--color-muted); }
.notice-nav a:hover { color: var(--color-accent-text); }
.notice-nav .notice-back { align-self: flex-start; margin-top: 12px; padding: 10px 20px; border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-full); font-weight: 600; }
.notice-nav .notice-back:hover { border-color: var(--color-ink); color: var(--color-ink); }
@media (max-width: 640px) {
  .notice-row { grid-template-columns: minmax(0, 1fr) 20px; padding: 20px; }
  .notice-row .notice-meta { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; }
  .notice-title { font-size: 18px; }
  .notice-summary { font-size: 15px; }
  .notice-body p { font-size: 16px; }
  .notice-body li { font-size: 15.5px; }
}
.notice-body ul li { list-style: disc; } .notice-body ul li::marker { color: #c4a46a; }
/* 과목별 전문반: 왼쪽 소개+커리큘럼, 오른쪽 시간표를 비슷한 폭으로 */
.course-layout--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.course-label--gap { margin-top: 36px; }
.course-layout--split .course-intro .tt-card { margin-bottom: 0; }
@media (max-width: 860px) { .course-layout--split { grid-template-columns: 1fr; } }
/* 공지 본문 안의 소제목과 시간표 */
.notice-body .notice-h { margin: 20px 0 0; padding-left: 12px; border-left: 4px solid #73332a; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; color: var(--color-ink); }
.notice-body .notice-tt { margin-bottom: 0; }
.notice-body .tt-foot { margin: -4px 0 0; font-size: 14px; line-height: 1.6; color: var(--color-muted); }
@media (max-width: 640px) { .notice-body .notice-h { font-size: 19px; } }
.map-credit { padding: 1px 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.85); }

/* 공지사항 사진: a small thumbnail on each list row, and the screenshot beside the text on the detail page */
.notice-row.has-thumb { grid-template-columns: 104px 130px minmax(0, 1fr) 32px; }
.notice-thumb { width: 104px; height: 104px; object-fit: cover; border-radius: var(--radius-sm); background: var(--color-surface-soft); }
.notice-detail { max-width: 1080px; }
.notice-detail-title, .notice-nav { max-width: 760px; }
.notice-main.has-figure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(32px, 5vw, 64px); align-items: start; }
.notice-main:not(.has-figure) { max-width: 760px; }
.notice-figure { margin: 0; position: sticky; top: calc(var(--nav-height) + 24px); }
.notice-figure a { display: block; padding: 14px; background: #ffffff; border: 1px solid #e3d9c6; border-radius: var(--radius-md); transition: border-color 0.2s var(--ease-standard); }
.notice-figure a:hover { border-color: var(--color-ink); }
.notice-figure img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; border-radius: var(--radius-sm); }
.notice-figure figcaption { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--color-muted); text-align: center; }
@media (max-width: 860px) {
  .notice-main.has-figure { grid-template-columns: 1fr; }
  .notice-figure { position: static; max-width: 420px; }
}
@media (max-width: 640px) {
  .notice-row.has-thumb { grid-template-columns: 72px minmax(0, 1fr) 20px; column-gap: 16px; }
  .notice-row.has-thumb .notice-thumb { grid-row: 1 / span 2; width: 72px; height: 72px; align-self: start; }
  .notice-row.has-thumb .notice-meta { grid-column: 2 / -1; }
  .notice-row.has-thumb .notice-text { grid-column: 2; }
  .notice-row.has-thumb .notice-arrow { grid-column: 3; grid-row: 2; }
}
.popup-panel--image { border-radius: 0; }

/* 예비고1 의치서반: a second class inside the 예비고1 section */
.course-class { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid #e3d9c6; scroll-margin-top: var(--nav-height); }
.course-class-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 28px; }
.course-class-title { margin: 0; font-size: clamp(22px, 2vw, 26px); font-weight: 700; letter-spacing: -0.02em; color: var(--color-ink); }
.course-class-sub { margin: 0; font-size: 17px; font-weight: 600; color: #73332a; }
.course-points { margin: 18px 0 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.course-points li { font-size: 17px; line-height: 1.65; color: var(--color-ink); word-break: keep-all; }
.course-points li::marker { color: #c4a46a; }
.tt-card--lesson { margin-top: 20px; }
.lesson-list { margin: 0; padding: 0 0 0 24px; display: flex; flex-direction: column; gap: 8px; }
.lesson-list li { font-size: 17px; line-height: 1.6; color: var(--color-ink); word-break: keep-all; }
.lesson-list li::marker { font-weight: 700; color: #73332a; }
@media (max-width: 640px) { .course-points li, .lesson-list li { font-size: 15.5px; } }
.course-points li { list-style: disc; } .lesson-list li { list-style: decimal; }

/* 홈: 의치서반 — the words on the left, the two posters on the right, both open the notice */
.home-feature { padding: clamp(56px, 7vw, 104px) 0; }
.home-feature-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 620px); justify-content: center; gap: clamp(28px, 4vw, 56px); align-items: center; }
.home-feature-kicker { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: #73332a; }
.home-feature-title { margin: 0; font-family: var(--font-display); font-size: clamp(36px, 4vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; color: var(--color-ink); }
.home-feature-lead { margin: 20px 0 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; font-weight: 600; color: var(--color-ink); word-break: keep-all; }
.home-feature-meta { margin: 14px 0 28px; font-size: 16px; color: var(--color-body); word-break: keep-all; }
.home-feature-posters { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); }
.home-feature-posters a { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-surface-dark); transition: transform 0.25s var(--ease-standard); }
.home-feature-posters a:hover { transform: translateY(-4px); }
.home-feature-posters a:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 3px; }
.home-feature-posters img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .home-feature-grid { grid-template-columns: 1fr; } }

/* 공지 상세: several pictures in a row under the text */
.notice-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 760px; margin-top: 36px; }
.notice-gallery .notice-figure { position: static; }
@media (max-width: 560px) { .notice-gallery { grid-template-columns: 1fr; } }
.form-field.form-source-detail[hidden] { display: none; }


/* 예비고1 윈터스쿨: subject chips, period, hours, and the two timetables side by side */
.course-subjects { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.course-subjects span { padding: 4px 12px; border-radius: 999px; background: #73332a; color: #fbf3e4; font-size: 14px; font-weight: 700; }
.course-period { margin: 0; font-size: 18px; font-weight: 700; color: #73332a; }
.course-hours { margin: 22px 0 0; display: grid; gap: 10px; }
.course-hours div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 14px 18px; background: #ffffff; border: 1px solid #e3d9c6; border-radius: var(--radius-sm); }
.course-hours dt { font-size: 15px; font-weight: 700; color: #73332a; }
.course-hours dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--color-ink); word-break: keep-all; }
.tt-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tt-pair .tt-card { margin-bottom: 0; }
.tt-pair .tt { font-size: 14px; }
.tt-pair .tt th, .tt-pair .tt td { padding: 10px 3px; font-size: 14px; }
.tt-pair + .tt-foot { margin-top: 14px; }
.tt-notice { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--color-ink); word-break: keep-all; }
@media (max-width: 1000px) { .tt-pair { grid-template-columns: 1fr; } .tt-pair .tt th, .tt-pair .tt td { font-size: 15px; } }
@media (max-width: 640px) { .tt-pair .tt th, .tt-pair .tt td { padding: 9px 1px; font-size: 12.5px; } .course-hours div { grid-template-columns: 1fr; gap: 4px; } }
.tt-pair .tt-t { display: block; } .tt-pair .tt thead th:first-child, .tt-pair .tt tbody th { width: 16%; }


/* 홈 맨 위 강좌 배너: 만들어 주신 배너 이미지를 그대로 쓰고, 오른쪽 아래에 조용한 "강좌 소개" 글자 링크 */
.top-banner { padding: 44px 24px 0; background: var(--color-canvas); }
.top-banner + .hero { padding-top: 4px; }
.tb-frame { --tb-ease: cubic-bezier(0.32, 0.72, 0, 1); position: relative; max-width: 820px; margin: 0 auto 44px; }
.tb-stage { position: relative; aspect-ratio: 1024 / 254; border-radius: 14px; overflow: hidden; background: #15120e; }
.tb-slide { position: absolute; inset: 0; display: block; transform: translateX(100%); transition: transform 0.8s var(--tb-ease); }
.tb-slide.is-active { z-index: 1; }
.tb-progress { width: 36px; height: 2px; margin: 0 4px; border-radius: 2px; background: var(--color-surface-strong); overflow: hidden; }
.tb-progress span { display: block; height: 100%; background: var(--color-accent-text); transform: scaleX(0); transform-origin: left; }
.tb-slide img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.008); transition: transform 6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.tb-slide.is-active img { transform: scale(1); }
.tb-slide:focus-visible { outline: 3px solid #f2dfb8; outline-offset: -3px; border-radius: 18px; }
.tb-cta { position: absolute; z-index: 2; right: 26px; bottom: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.tb-cta::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 1px; background: currentColor; opacity: 0.7; transform: scaleX(0.35); transform-origin: left; transition: transform 0.5s var(--tb-ease), opacity 0.5s var(--tb-ease); }
.tb-cta span { transition: transform 0.5s var(--tb-ease); }
.tb-slide:hover .tb-cta::after, .tb-slide:focus-visible .tb-cta::after { transform: scaleX(1); opacity: 1; }
.tb-slide:hover .tb-cta span, .tb-slide:focus-visible .tb-cta span { transform: translateX(3px); }
.tb-controls { position: absolute; z-index: 3; right: 0; top: calc(100% + 8px); display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 999px; background: var(--color-surface-soft); }
.tb-nav { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--color-ink); font-size: 18px; line-height: 1; cursor: pointer; transition: background-color 0.4s var(--tb-ease); }
.tb-nav:hover { background: #ffffff; }
.tb-nav:focus-visible { outline: 2px solid #f2dfb8; outline-offset: 1px; }
.tb-count { margin: 0; padding: 0 4px; font-size: 13px; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.tb-count b { color: var(--color-ink); font-weight: 700; }
@media (max-width: 760px) {
  .top-banner { padding: 24px 12px 0; }
  .tb-frame { margin-bottom: 40px; }
  .tb-stage { border-radius: 12px; }
  .tb-cta { display: none; }
}

/* 이룸 명예의 전당: 과목마다 흰 시험지 한 장, 빨간 펜으로 채점 */
body.honor-page { background: #ffffff; }
.hp { --hp-red: #c8312a; --hp-ink: #1b1a17; --hp-line: #ebe5da; --hp-serif: 'Noto Serif KR', 'Batang', serif; --hp-ease: cubic-bezier(0.22, 1, 0.36, 1); background: #ffffff; }
.hp-wrap { max-width: 1000px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) 24px clamp(72px, 8vw, 112px); }
.hp-exam { margin: 0; font-size: 16px; font-weight: 700; color: var(--hp-red); }
.hp-title { margin: 14px 0 0; font-family: var(--hp-serif); font-weight: 900; font-size: clamp(52px, 8vw, 104px); line-height: 1.04; letter-spacing: -0.045em; color: var(--hp-ink); }
.hp-lead { margin: 22px 0 0; max-width: 34em; font-size: 18px; line-height: 1.65; color: var(--color-body); word-break: keep-all; }

/* 과목 탭: 시험지 위에 꽂힌 색인표 */
.hp-tabs { display: flex; gap: 10px; margin-top: clamp(40px, 5vw, 56px); }
.hp-tab { position: relative; display: inline-flex; align-items: baseline; gap: 10px; padding: 14px 26px 16px; border: 1px solid var(--hp-line); border-bottom: 0; border-radius: 12px 12px 0 0; background: #faf8f4; color: var(--color-muted); font: inherit; cursor: pointer; transition: background-color 0.3s, color 0.3s, transform 0.4s var(--hp-ease); }
.hp-tab:hover { color: var(--hp-ink); transform: translateY(-2px); }
.hp-tab.is-on { background: #ffffff; color: var(--hp-ink); box-shadow: 0 -2px 0 var(--hp-red) inset; }
.hp-tab:focus-visible { outline: 2px solid var(--hp-ink); outline-offset: 2px; }
.hp-tab-name { font-family: var(--hp-serif); font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }
.hp-tab-count { font-size: 14px; font-weight: 600; }
.hp-tab.is-on .hp-tab-count { color: var(--hp-red); }

/* 시험지 */
.hp-sheet { position: relative; padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 52px) clamp(32px, 4vw, 52px); border: 1px solid var(--hp-line); border-radius: 0 14px 14px 14px; background: #ffffff; box-shadow: 0 24px 60px -34px rgba(60, 40, 20, 0.28); animation: hp-in 0.6s var(--hp-ease); }
@keyframes hp-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hp-paper-head { width: 100%; border-collapse: collapse; margin-bottom: clamp(28px, 4vw, 44px); font-size: 15px; }
.hp-paper-head th, .hp-paper-head td { border: 1px solid #cfc6b6; padding: 10px 14px; text-align: left; }
.hp-paper-head th { width: 64px; background: #faf8f4; font-weight: 600; color: var(--color-muted); white-space: nowrap; }
.hp-paper-head td { color: var(--hp-ink); }
.hp-paper-head .hp-subject { font-family: var(--hp-serif); font-size: 20px; font-weight: 900; }

/* 최상위 */
.hp-top { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 20px 40px; padding: 8px 0 32px; border-bottom: 1px solid var(--hp-line); }
.hp-top-who { margin: 0; font-size: 15px; color: var(--color-muted); }
.hp-top-name { margin: 6px 0 0; font-family: var(--hp-serif); font-size: clamp(52px, 6vw, 76px); font-weight: 900; line-height: 1; color: var(--hp-ink); }
.hp-top-score { text-align: right; }
.hp-big { position: relative; display: inline-block; padding: 0 2px 12px; font-family: var(--hp-serif); font-size: clamp(48px, 6vw, 80px); font-weight: 900; line-height: 1.05; color: var(--hp-red); letter-spacing: -0.03em; }
.hp-top-note { margin: 8px 0 0; font-size: 14px; color: var(--color-muted); }
.hp-stamp { position: absolute; top: -6px; left: 44%; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 92px; height: 92px; border: 3px solid var(--hp-red); border-radius: 50%; color: var(--hp-red); transform: rotate(-12deg) scale(1.4); opacity: 0; transition: transform 0.5s var(--hp-ease) 0.4s, opacity 0.3s 0.4s; }
.hp-sheet.is-on .hp-stamp { opacity: 0.9; transform: rotate(-12deg) scale(1); }
.hp-stamp::before { content: ''; position: absolute; inset: 5px; border: 1px solid var(--hp-red); border-radius: 50%; }
.hp-stamp span { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; }
.hp-stamp b { font-size: 19px; font-weight: 900; letter-spacing: 0.02em; }

/* 부분 제목 */
.hp-part { margin-top: clamp(36px, 5vw, 52px); }
.hp-part-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.hp-part-head h3 { margin: 0; font-family: var(--hp-serif); font-size: clamp(22px, 2.4vw, 28px); font-weight: 900; letter-spacing: -0.02em; color: var(--hp-ink); }
.hp-part-head p { margin: 0; font-size: 14px; color: var(--color-muted); }

/* 성적 향상: 답안 줄처럼 */
.hp-up { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.hp-up li { counter-increment: q; display: grid; grid-template-columns: 34px 130px minmax(90px, 1fr) minmax(0, 1.4fr) 120px; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px dashed #ddd5c8; transition: background-color 0.3s; }
.hp-up li::before { content: counter(q) '.'; font-family: var(--hp-serif); font-weight: 900; color: #b8ad9c; }
.hp-up li:hover { background: #fdf8f5; }
.hp-who { font-size: 14px; color: var(--color-body); white-space: nowrap; }
.hp-name { font-family: var(--hp-serif); font-size: 22px; font-weight: 900; color: var(--hp-ink); white-space: nowrap; }
.hp-change { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.hp-from { color: var(--color-muted); font-size: 17px; text-decoration: line-through; text-decoration-color: rgba(200, 49, 42, 0.55); }
.hp-arrow { color: #b8ad9c; }
.hp-mark { position: relative; display: inline-block; padding: 2px 12px; font-size: 20px; font-weight: 800; color: var(--hp-ink); white-space: nowrap; }
.hp-gain { justify-self: end; font-family: var(--hp-serif); font-size: 26px; font-weight: 900; color: var(--hp-red); white-space: nowrap; letter-spacing: -0.02em; }
.hp-up-note { grid-column: 3 / -1; margin-top: -6px; font-size: 13px; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.hp-sheet-note { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: var(--color-muted); word-break: keep-all; }

/* 성적 우수: 체크 표시가 달린 두 단 목록 */
.hp-ex { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.hp-ex li { position: relative; display: grid; grid-template-columns: 30px 110px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px dashed #ddd5c8; }
.hp-ex .hp-pen--tick { position: static; width: 26px; height: 20px; }
.hp-ex .hp-name { font-size: 20px; }
.hp-ex-score { font-weight: 800; font-size: 17px; color: var(--hp-red); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 빨간 펜 */
.hp-pen { position: absolute; left: -6px; top: -8px; width: calc(100% + 12px); height: calc(100% + 16px); overflow: visible; pointer-events: none; }
.hp-pen path { fill: none; stroke: var(--hp-red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
.hp-pen--under { top: auto; bottom: -2px; left: -4px; width: calc(100% + 8px); height: 14px; }
.hp-pen--under path { stroke-width: 3.2; }
.hp-pen--under path + path { stroke-width: 2.2; transition-delay: 0.25s; }
.hp-pen--tick path { stroke-width: 3; }
.hp-pen.is-drawn path { stroke-dashoffset: 0; }

.hp-rules { margin-top: clamp(44px, 6vw, 64px); }
.hp-rules h2 { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--hp-ink); }
.hp-rules ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.hp-rules li { list-style: disc; font-size: 14px; line-height: 1.6; color: var(--color-muted); word-break: keep-all; }

@media (max-width: 820px) {
  .hp-ex { grid-template-columns: 1fr; }
  .hp-up li { grid-template-columns: 26px 1fr auto; grid-template-areas: 'n who gain' 'n name gain' 'n change change' 'n note note'; row-gap: 4px; }
  .hp-up .hp-up-note { grid-area: note; margin-top: 2px; }
  .hp-up li::before { grid-area: n; align-self: start; }
  .hp-up .hp-who { grid-area: who; } .hp-up .hp-name { grid-area: name; } .hp-up .hp-change { grid-area: change; } .hp-up .hp-gain { grid-area: gain; }
}
@media (max-width: 640px) {
  .hp-wrap { padding-left: 16px; padding-right: 16px; }
  .hp-tab { padding: 12px 18px 14px; }
  .hp-tab-name { font-size: 20px; }
  .hp-sheet { border-radius: 0 12px 12px 12px; }
  .hp-paper-head, .hp-paper-head tbody, .hp-paper-head tr { display: block; }
  .hp-paper-head th, .hp-paper-head td { display: inline-block; border: 0; padding: 4px 6px 4px 0; background: none; width: auto; }
  .hp-paper-head { padding-bottom: 12px; border-bottom: 2px solid var(--hp-ink); }
  .hp-top { grid-template-columns: 1fr; }
  .hp-top-score { text-align: left; }
  .hp-stamp { left: auto; right: 0; top: 0; width: 76px; height: 76px; }
  .hp-stamp b { font-size: 16px; }
  .hp-ex li { grid-template-columns: 26px 1fr auto; grid-template-areas: 'tick who score' 'tick name score'; row-gap: 2px; }
  .hp-ex .hp-pen--tick { grid-area: tick; } .hp-ex .hp-who { grid-area: who; } .hp-ex .hp-name { grid-area: name; } .hp-ex .hp-ex-score { grid-area: score; }
}

/* 명예의 전당 고급화: 종이 결, 이중 테두리 시험지, 알약 모양 과목 전환, 부드럽게 떠오르는 줄 */
body.honor-page::after { content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hp { --hp-soft: cubic-bezier(0.32, 0.72, 0, 1); }
.hp-head { position: relative; }
.hp-head::before { content: ''; position: absolute; z-index: -1; right: -8%; top: -40px; width: 520px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(200, 49, 42, 0.07), transparent 70%); filter: blur(10px); pointer-events: none; }

/* headline lines rise out of a mask, then the rest floats up */
.hp-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hp-line > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--hp-soft); }
.hp-line + .hp-line > span { transition-delay: 0.12s; }
.hp-ready .hp-line > span { transform: none; }
.hp-rise { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 0.9s var(--hp-soft), transform 0.9s var(--hp-soft), filter 0.9s var(--hp-soft); }
.hp-ready .hp-rise { opacity: 1; transform: none; filter: none; }
.hp-ready .hp-lead { transition-delay: 0.3s; }
.hp-ready .hp-tabs-wrap { transition-delay: 0.42s; }
.hp-ready .hp-shell { transition-delay: 0.52s; }

/* 과목 전환: 알약 안에서 흰 표시가 미끄러짐 */
.hp-tabs-wrap { margin-top: clamp(36px, 5vw, 52px); margin-bottom: 18px; }
.hp-tabs { position: relative; display: inline-flex; gap: 4px; margin: 0; padding: 5px; border-radius: 999px; background: #f4f0ea; box-shadow: inset 0 1px 2px rgba(60, 40, 20, 0.06); }
.hp-tab { position: relative; z-index: 1; padding: 12px 26px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; transform: none; transition: color 0.5s var(--hp-soft); }
.hp-tab:hover { transform: none; }
.hp-tab.is-on { background: transparent; box-shadow: none; }
.hp-tab:active .hp-tab-name { transform: scale(0.97); }
.hp-tab-name { display: inline-block; font-size: 21px; transition: transform 0.3s var(--hp-soft); }
.hp-tab-ind { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: #ffffff; box-shadow: 0 1px 1px rgba(60, 40, 20, 0.06), 0 8px 22px -10px rgba(60, 40, 20, 0.3); transition: transform 0.6s var(--hp-soft), width 0.6s var(--hp-soft); }

/* 시험지: 바깥 쟁반 + 안쪽 종이 (이중 테두리) */
.hp-shell { padding: 8px; border-radius: 30px; background: rgba(27, 26, 23, 0.025); box-shadow: inset 0 0 0 1px rgba(27, 26, 23, 0.05); }
.hp-sheet { border: 0; border-radius: 22px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(60, 40, 20, 0.05), 0 40px 80px -48px rgba(60, 40, 20, 0.35); animation: none; opacity: 0; transform: translateY(10px) scale(0.995); transition: opacity 0.7s var(--hp-soft), transform 0.7s var(--hp-soft); }
.hp-sheet.is-shown { opacity: 1; transform: none; }
.hp-paper-head { border-collapse: separate; border-spacing: 0; border: 1px solid #e2dacd; border-radius: 12px; overflow: hidden; }
.hp-paper-head th, .hp-paper-head td { border: 0; border-left: 1px solid #ece5d9; }
.hp-paper-head tr > :first-child { border-left: 0; }

/* rows float up one after another as they come into view */
.hp-top, .hp-part-head, .hp-row, .hp-paper-head { opacity: 0; transform: translateY(16px); filter: blur(4px); transition: opacity 0.8s var(--hp-soft), transform 0.8s var(--hp-soft), filter 0.8s var(--hp-soft), background-color 0.4s var(--hp-soft); }
.hp-top.is-in, .hp-part-head.is-in, .hp-row.is-in, .hp-paper-head.is-in { opacity: 1; transform: none; filter: none; }
.hp-stamp { transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s, opacity 0.3s 0.45s; }
.hp-sheet.is-on .hp-stamp { opacity: 0; }
.hp-top.is-in .hp-stamp { opacity: 0.92; transform: rotate(-12deg) scale(1); }

.hp-up li, .hp-ex li { border-bottom-color: #e7e0d4; border-radius: 10px; }
.hp-up li:hover, .hp-ex li:hover { background: #fbf7f2; }
.hp-up li.hp-row, .hp-ex li.hp-row { transition: opacity 0.8s var(--hp-soft), transform 0.8s var(--hp-soft), filter 0.8s var(--hp-soft), background-color 0.4s var(--hp-soft); }
.hp-up li .hp-name, .hp-ex li .hp-name { transition: transform 0.5s var(--hp-soft); }
.hp-up li:hover .hp-name, .hp-ex li:hover .hp-name { transform: translateX(4px); }
.hp-gain { font-variant-numeric: tabular-nums; }

.hp-rules { padding: 22px 26px; border-radius: 18px; background: #faf8f4; }
.hp-ready .hp-rules { transition-delay: 0.6s; }

/* 명예의 전당 움직임은 컴퓨터의 "애니메이션 효과" 설정과 상관없이 보여 줌 (원장님 요청) */
.hp-ex-score small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; text-align: right; color: var(--color-muted); }

/* 사이트 전체 고급화: 무게감 있는 감속 곡선, 번짐을 걷어내며 떠오르는 등장, 은은한 종이 결, 부드러운 눌림
   (원장님 요청으로 컴퓨터의 애니메이션 효과를 꺼 둬도 그대로 움직임) */
:root { --ease-soft: cubic-bezier(0.32, 0.72, 0, 1); --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1); }
body:not(.honor-page)::after { content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.028; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* 스크롤 등장: 짧게 미끄러지던 것을 번짐이 걷히며 천천히 떠오르게 */
.reveal { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft), filter 0.9s var(--ease-soft); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
/* 목록 카드는 하나씩 차례로 (main.js가 --i 순번을 붙임) */
/* translate는 transform과 따로 움직이므로, 떠오른 뒤에도 카드의 hover 들림(transform)이 그대로 작동함 */
body .rise { opacity: 0; translate: 0 20px; filter: blur(4px); transition: opacity 0.8s var(--ease-soft), translate 0.8s var(--ease-soft), filter 0.8s var(--ease-soft), transform 0.6s var(--ease-soft), border-color 0.4s var(--ease-soft), box-shadow 0.6s var(--ease-soft), background-color 0.4s var(--ease-soft); transition-delay: calc(min(var(--i, 0), 8) * 70ms), calc(min(var(--i, 0), 8) * 70ms), calc(min(var(--i, 0), 8) * 70ms), 0s, 0s, 0s, 0s; }
body .rise.is-visible { opacity: 1; translate: none; filter: none; }

/* 첫 화면 소개: 줄마다 시차를 두고 떠오름 */
.hero-inner.reveal, .page-hero-inner.reveal { opacity: 1; transform: none; filter: none; }
.hero-inner > *, .page-hero-inner > * { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft), filter 1s var(--ease-soft); }
.hero-inner.is-visible > *, .page-hero-inner.is-visible > * { opacity: 1; transform: none; filter: none; }
.hero-inner > :nth-child(2), .page-hero-inner > :nth-child(2) { transition-delay: 0.09s; }
.hero-inner > :nth-child(3), .page-hero-inner > :nth-child(3) { transition-delay: 0.18s; }
.hero-inner > :nth-child(4), .page-hero-inner > :nth-child(4) { transition-delay: 0.27s; }
.hero-inner > :nth-child(5), .page-hero-inner > :nth-child(5) { transition-delay: 0.36s; }
.hero-inner > :nth-child(n+6), .page-hero-inner > :nth-child(n+6) { transition-delay: 0.45s; }

/* 버튼: 살짝 떠오르고 누르면 눌림 */
.btn { transition: background-color 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft), color 0.4s var(--ease-soft), transform 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft); }
.btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 2px rgba(24, 29, 38, 0.12); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 30px -12px rgba(24, 29, 38, 0.45); }
.btn-secondary:hover, .btn-on-dark:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(60, 40, 20, 0.35); }
.btn:active, .btn-primary:active, .promo-cta:active, .explore2-btn:active { transform: scale(0.98); transition-duration: 0.12s; }

/* 메뉴: 스크롤하면 반투명 유리처럼, 하위 메뉴는 번짐이 걷히며 내려옴 */
.nav { transition: background-color 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft), border-color 0.5s var(--ease-soft); }
.nav.is-scrolled { background: rgba(255, 255, 255, 0.84); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: rgba(27, 26, 23, 0.06); box-shadow: 0 10px 30px -18px rgba(60, 40, 20, 0.28); }
.nav-links .nav-link { transition: color 0.4s var(--ease-soft), transform 0.5s var(--ease-soft), filter 0.5s var(--ease-soft); }
.nav-sub { border-color: rgba(27, 26, 23, 0.06); border-radius: 14px; box-shadow: 0 1px 2px rgba(60, 40, 20, 0.05), 0 24px 48px -20px rgba(60, 40, 20, 0.3); transform: translate(-50%, -8px) scale(0.98); filter: blur(4px); transform-origin: top center; transition: opacity 0.35s var(--ease-soft), transform 0.45s var(--ease-soft), filter 0.35s var(--ease-soft), visibility 0s linear 0.35s; }
.nav-item.has-sub:hover > .nav-sub, .nav-item.has-sub:focus-within > .nav-sub { transform: translate(-50%, 0) scale(1); filter: none; }
.nav-sub-link { transition: background-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft), transform 0.4s var(--ease-soft); }
.nav-sub-link:hover { transform: translateX(2px); }
/* 모바일 메뉴: 세 줄이 X로 바뀌고, 항목이 차례로 떠오름 */
.nav-toggle span { transition: transform 0.5s var(--ease-soft), opacity 0.3s var(--ease-soft); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0.3); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-mobile.is-open { animation: nav-sheet 0.45s var(--ease-soft) both; }
.nav-mobile.is-open > * { animation: nav-item 0.7s var(--ease-soft) both; }
.nav-mobile.is-open > :nth-child(2) { animation-delay: 0.05s; }
.nav-mobile.is-open > :nth-child(3) { animation-delay: 0.1s; }
.nav-mobile.is-open > :nth-child(4) { animation-delay: 0.15s; }
.nav-mobile.is-open > :nth-child(5) { animation-delay: 0.2s; }
.nav-mobile.is-open > :nth-child(6) { animation-delay: 0.25s; }
.nav-mobile.is-open > :nth-child(n+7) { animation-delay: 0.3s; }
@keyframes nav-sheet { from { opacity: 0; } to { opacity: 1; } }
@keyframes nav-item { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* 카드: 테두리만 바뀌던 것을 그림자가 넓게 퍼지며 살짝 떠오르게 */
.faculty-card, .briefing-card, .notice-row, .hb-card, .category-card { transition: border-color 0.4s var(--ease-soft), box-shadow 0.6s var(--ease-soft), transform 0.6s var(--ease-soft), background-color 0.4s var(--ease-soft); }
.faculty-card:hover, .faculty-card:focus-within { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(216, 196, 159, 0.5), 0 24px 44px -24px rgba(120, 88, 40, 0.42); }
.faculty-photo { clip-path: inset(0 round var(--radius-sm)); transition: transform 1s var(--ease-soft); }
.faculty-card:hover .faculty-photo { transform: scale(1.03); }
.briefing-card:hover { border-color: var(--color-accent-soft); box-shadow: 0 22px 44px -28px rgba(120, 88, 40, 0.4); transform: translateY(-2px); }
.briefing-date { transition: transform 0.6s var(--ease-spring); }
.briefing-card:hover .briefing-date { transform: rotate(-3deg) scale(1.04); }
.notice-row:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -28px rgba(60, 40, 20, 0.38); }
.notice-arrow, .explore2-arrow { transition: transform 0.5s var(--ease-soft); }
.hb-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(216, 196, 159, 0.55), 0 22px 40px -24px rgba(120, 88, 40, 0.4); }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(216, 196, 159, 0.55), 0 26px 46px -26px rgba(120, 88, 40, 0.45); }
.explore2-list a { transition: background-color 0.4s var(--ease-soft); }
.explore2-name { display: inline-block; transition: transform 0.5s var(--ease-soft); }
.explore2-list a:hover .explore2-name { transform: translateX(4px); }
.home-feature-posters a { transition: transform 0.7s var(--ease-soft), box-shadow 0.7s var(--ease-soft); }
.home-feature-posters a:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(24, 29, 38, 0.55); }
.home-feature-posters img { transition: transform 1.2s var(--ease-soft); }
.home-feature-posters a:hover img { transform: scale(1.03); }
.notice-figure a { transition: border-color 0.4s var(--ease-soft), box-shadow 0.6s var(--ease-soft); }
.notice-figure a:hover { box-shadow: 0 24px 46px -28px rgba(60, 40, 20, 0.4); }
.contact-mapbox { transition: border-color 0.4s var(--ease-soft), box-shadow 0.6s var(--ease-soft), transform 0.6s var(--ease-soft); }
.contact-mapbox:hover { transform: translateY(-2px); box-shadow: 0 28px 50px -30px rgba(120, 88, 40, 0.45); }
.page-jump a, .sessions-aside-item { transition: background-color 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft), color 0.4s var(--ease-soft), transform 0.5s var(--ease-soft); }
.page-jump a::after, .sessions-aside-item::after { transition: transform 0.5s var(--ease-spring); }
.page-jump a:active, .sessions-aside-item:active { transform: scale(0.98); }
.level-tabs a { transition: color 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft); }

/* 입력칸: 초점이 부드럽게 번짐 */
.form-input { transition: border-color 0.4s var(--ease-soft), box-shadow 0.5s var(--ease-soft), background-color 0.4s var(--ease-soft); }
.form-input:hover:not(:focus) { border-color: #b5a98f; }
.form-input:focus { box-shadow: 0 0 0 4px rgba(122, 92, 44, 0.12), 0 10px 24px -16px rgba(60, 40, 20, 0.3); }

/* 아래 메뉴 링크: 밑줄이 왼쪽에서 그어짐 */
.footer-links a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease-soft), color 0.4s var(--ease-soft); }
.footer-links a:hover { background-size: 100% 1px; }

/* 예비고1 새 반: 커리큘럼 표, 의치서반 특징, 평택고 신입생 전문반 */
.course-feats { margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.course-feats div { padding: 16px 18px; background: #ffffff; border: 1px solid #e3d9c6; border-radius: var(--radius-sm); }
.course-feats dt { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #73332a; }
.course-feats dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--color-ink); word-break: keep-all; }
.cur-table { width: 100%; border-collapse: collapse; }
.cur-table th, .cur-table td { padding: 14px 12px; border-top: 1px solid #eee6d8; vertical-align: top; text-align: left; font-size: 16px; line-height: 1.65; color: var(--color-ink); word-break: keep-all; }
.cur-table tr:first-child th, .cur-table tr:first-child td { border-top: 0; }
.cur-table th { width: 92px; font-weight: 700; color: #73332a; white-space: nowrap; }
.cur-table td b { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 700; color: var(--color-accent-text); }
.tt .tt-sub { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--color-muted); }
.tt .tt-sub .tt-t { white-space: nowrap; }
@media (max-width: 640px) { .tt .tt-sub { font-size: 10.5px; letter-spacing: -0.03em; } }
.tt--text td { text-align: left; padding-left: 14px; padding-right: 10px; }
.pt-block { padding-top: clamp(32px, 4vw, 44px); border-top: 1px dashed #e3d9c6; }
.pt-num { margin: 0 0 4px; font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: #c4a46a; line-height: 1; }
.pt-block-title { margin: 0 0 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: clamp(20px, 1.9vw, 24px); font-weight: 700; letter-spacing: -0.02em; color: var(--color-ink); }
.pt-block-title span { font-size: 16px; font-weight: 600; letter-spacing: 0; color: #73332a; }
.pt-text { margin: 0 0 20px; max-width: 46em; font-size: 17px; line-height: 1.75; color: var(--color-ink); word-break: keep-all; }
.pt-block > .pt-text:last-child { margin-bottom: 0; }
.pt-quote { margin: 0 0 20px; padding: 22px 24px; border-left: 4px solid #c4a46a; border-radius: var(--radius-sm); background: var(--color-primary); color: #fbf3e4; font-size: 17px; font-weight: 600; line-height: 1.6; word-break: keep-all; }
.pt-quote span { display: block; margin-top: 8px; font-size: 15px; font-weight: 500; color: #e6cf9f; }
.pt-flow { margin: 16px 0 0; font-size: 15px; font-weight: 700; line-height: 1.7; color: var(--color-accent-text); word-break: keep-all; }
.pt-flow span { margin: 0 6px; color: #c4a46a; }
.pt-more { margin: 18px 0 0; }
.pt-more a { font-size: 15px; font-weight: 600; color: var(--color-accent-text); }
.pt-more a:hover { color: var(--color-ink); }
.pt-team { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pt-team > li { display: grid; grid-template-columns: 112px 1fr; gap: 18px; padding: 16px; background: #ffffff; border: 1px solid #e3d9c6; border-radius: var(--radius-md); }
.pt-team img { width: 112px; height: 140px; object-fit: cover; border-radius: var(--radius-sm); background: var(--color-surface-soft); }
.pt-team-meta { margin: 2px 0 2px; font-size: 14px; font-weight: 700; color: #73332a; }
.pt-team-name { margin: 0 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--color-ink); }
.pt-team ul { margin: 0; padding: 0; list-style: none; }
.pt-team ul li { font-size: 14px; line-height: 1.6; color: var(--color-body); word-break: keep-all; }
@media (max-width: 860px) { .pt-team { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .course-feats { grid-template-columns: 1fr; }
  .cur-table th { width: 64px; padding-left: 4px; }
  .cur-table th, .cur-table td { font-size: 15px; }
  .tt--text td { padding-left: 6px; padding-right: 4px; }
  .pt-team > li { grid-template-columns: 88px 1fr; gap: 14px; padding: 14px; }
  .pt-team img { width: 88px; height: 110px; }
  .pt-quote { padding: 18px; font-size: 16px; }
}

/* 학원소개: 이룸 자기주도 센터 사진 */
.center-grid { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.center-grid figure { margin: 0; height: 100%; background: #ffffff; border: 1px solid #e3d9c6; border-radius: var(--radius-md); overflow: hidden; }
.center-grid img { display: block; width: 100%; aspect-ratio: 233 / 150; object-fit: cover; }
.center-grid figcaption { padding: 14px 16px 16px; }
.center-grid figcaption b { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 700; color: var(--color-ink); }
.center-grid figcaption span { display: block; font-size: 14px; line-height: 1.6; color: var(--color-body); word-break: keep-all; }
@media (max-width: 1000px) { .center-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .center-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .center-grid figcaption { padding: 10px 12px 12px; } }


/* 이룸초등 영어: 원장님이 주신 초등영어 소개 페이지를 사이트 톤(크림·먹색, 적갈색 한 가지 강조색)으로 옮김. 모든 클래스는 ee- 로 시작 */
.ee-block { margin-top: clamp(72px, 9vw, 128px); scroll-margin-top: calc(var(--nav-height) + 16px); }
.ee-head { max-width: 46em; margin-bottom: clamp(28px, 3.4vw, 44px); }
.ee-head .eyebrow, .ee-hero-text .eyebrow, .ee-journal-text .eyebrow, .ee-beyond-head .eyebrow { margin-bottom: 10px; color: #73332a; text-transform: none; letter-spacing: 0.04em; }
.ee-title { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.22; color: var(--color-ink); text-wrap: balance; }
.ee-sub { margin: 14px 0 0; font-size: 17px; line-height: 1.75; color: var(--color-body); word-break: keep-all; text-wrap: pretty; }
.ee-sub b, .ee-hero-body b { font-weight: 700; color: var(--color-ink); box-shadow: inset 0 -0.42em 0 #f1e3c4; }
.ee-foot { margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: var(--color-muted); word-break: keep-all; }

/* 소개 */
.ee-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ee-hero-title { margin: 0; font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.14; color: var(--color-ink); word-break: keep-all; }
.ee-hero-title em { font-style: normal; color: #73332a; background: linear-gradient(transparent 68%, #f1e3c4 68%, #f1e3c4 92%, transparent 92%); }
.ee-hero-lead { margin: 22px 0 0; font-size: clamp(18px, 1.6vw, 20px); font-weight: 700; letter-spacing: -0.02em; color: var(--color-ink); word-break: keep-all; }
.ee-hero-body { margin: 12px 0 0; max-width: 30em; font-size: 17px; line-height: 1.8; color: var(--color-body); word-break: keep-all; text-wrap: pretty; }
.ee-hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.ee-text-link { display: inline-flex; gap: 6px; padding: 6px 0; font-size: 16px; font-weight: 600; color: var(--color-accent-text); border-bottom: 1px solid currentColor; transition: color 0.2s var(--ease-standard); }
.ee-text-link span { transition: transform 0.25s var(--ease-standard); }
.ee-text-link:hover { color: var(--color-ink); }
.ee-text-link:hover span { transform: translateX(3px); }
.ee-hero-photo { position: relative; margin: 0; padding: 12px; background: #ffffff; border: 1px solid #e3d9c6; border-radius: 22px; box-shadow: 0 30px 60px -36px rgba(80, 52, 24, 0.45); transform: rotate(0.6deg); }
.ee-hero-photo img { width: 100%; aspect-ratio: 1230 / 450; object-fit: cover; border-radius: 14px; }
.ee-sticker { position: absolute; margin: 0; padding: 10px 14px; max-width: 13em; background: #fffdf8; border: 1px solid #e3d9c6; border-radius: 12px; box-shadow: 0 12px 24px -14px rgba(80, 52, 24, 0.5); font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--color-ink); word-break: keep-all; }
.ee-sticker b { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #73332a; }
.ee-sticker--top { top: -22px; left: -18px; transform: rotate(-5deg); }
.ee-sticker--bottom { right: -14px; bottom: -26px; transform: rotate(4deg); }

.ee-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(56px, 6vw, 80px) 0 0; padding: 0; list-style: none; border-top: 1px solid #e3d9c6; border-bottom: 1px solid #e3d9c6; }
.ee-facts li { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 22px clamp(12px, 2vw, 24px); }
.ee-facts li + li { border-left: 1px solid #ece3d2; }
.ee-facts span { grid-row: span 2; padding-top: 2px; font-family: var(--font-display); font-size: 15px; font-weight: 800; color: #c4a46a; font-variant-numeric: tabular-nums; }
.ee-facts b { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--color-ink); }
.ee-facts small { font-size: 14px; color: var(--color-muted); word-break: keep-all; }

/* 다른 이유: 두 장, 왼쪽은 문장 사슬, 오른쪽은 저널 속지 */
.ee-why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ee-why-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 32px); align-items: center; padding: clamp(24px, 3vw, 36px); background: #ffffff; border: 1px solid #e3d9c6; border-radius: 18px; transition: box-shadow 0.35s var(--ease-standard), border-color 0.35s var(--ease-standard); }
.ee-why-card:hover { border-color: #d6c7a8; box-shadow: 0 24px 44px -30px rgba(80, 52, 24, 0.45); }
.ee-why-card--paper { background: #f8f1e4; }
.ee-why-num { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: #73332a; }
.ee-why-card h4 { margin: 0 0 10px; font-size: clamp(20px, 1.8vw, 23px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.32; color: var(--color-ink); }
.ee-why-card p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--color-body); word-break: keep-all; }
.ee-chain { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 22px; }
.ee-chain li { position: relative; padding: 12px 14px; background: var(--color-canvas); border: 1px solid #ece3d2; border-radius: 10px; font-size: 16px; font-weight: 700; color: var(--color-ink); }
.ee-chain li:nth-child(2) { margin-left: 14px; }
.ee-chain li:nth-child(3) { margin-left: 28px; background: #73332a; border-color: #73332a; color: #fbf3e4; }
.ee-chain li + li::before { content: '↓'; position: absolute; top: -21px; left: 22px; font-size: 14px; color: #c4a46a; }
.ee-chain span { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #9c7a3f; }
.ee-chain li:nth-child(3) span { color: #e6cf9f; }
.ee-why-figure { position: relative; margin: 0; }
.ee-why-figure img { width: 100%; max-width: 200px; margin: 0 auto; border-radius: 8px; box-shadow: 0 18px 30px -20px rgba(80, 52, 24, 0.55); transform: rotate(-3deg); }
.ee-why-figure figcaption { position: absolute; right: -4px; bottom: 10px; padding: 6px 12px; border: 1.5px solid #73332a; border-radius: 999px; background: #fffdf8; font-size: 12px; font-weight: 800; color: #73332a; transform: rotate(-6deg); }

/* 한 주의 수업: 탭 + 예시 + 학습노트 */
.ee-week { background: #ffffff; border: 1px solid #e3d9c6; border-radius: 20px; overflow: hidden; }
.ee-week-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid #e3d9c6; }
.ee-week-tabs button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px clamp(12px, 1.6vw, 22px); border: 0; background: transparent; text-align: left; color: var(--color-ink); transition: background-color 0.3s var(--ease-standard), color 0.3s var(--ease-standard); }
.ee-week-tabs button + button { border-left: 1px solid #ece3d2; }
.ee-week-tabs button span { font-size: 12px; font-weight: 800; color: #c4a46a; font-variant-numeric: tabular-nums; }
.ee-week-tabs button b { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.ee-week-tabs button small { font-size: 13px; color: var(--color-muted); }
.ee-week-tabs button:hover { background: #faf5ec; }
.ee-week-tabs button[aria-selected="true"] { background: var(--color-primary); color: #fbf3e4; }
.ee-week-tabs button[aria-selected="true"] small { color: #d8c49f; }
.ee-week-tabs button:focus-visible { outline: 2px solid #73332a; outline-offset: -4px; }
.ee-week-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 52px); }
.ee-week-panel.is-swapping > * { animation: ee-swap 0.5s var(--ease-standard) both; }
.ee-week-panel.is-swapping > * + * { animation-delay: 0.06s; }
@keyframes ee-swap { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; filter: none; } }
.ee-week-tag { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: #73332a; }
.ee-week-text h4 { margin: 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.035em; color: var(--color-ink); word-break: keep-all; }
.ee-week-detail { margin: 10px 0 0; font-size: 16px; line-height: 1.7; color: var(--color-body); word-break: keep-all; }
.ee-week-word { margin: 24px 0 0; padding: 18px 20px; background: var(--color-canvas); border-left: 4px solid #c4a46a; border-radius: 0 10px 10px 0; }
.ee-week-word > span { font-size: 13px; font-weight: 700; color: var(--color-muted); }
.ee-week-word strong { display: block; margin: 4px 0 6px; font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; color: var(--color-ink); }
.ee-week-word strong small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--color-muted); }
.ee-week-word p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--color-body); word-break: keep-all; }
.ee-audio { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 18px; border: 1.5px solid var(--color-border-strong); border-radius: 999px; background: #ffffff; font-size: 15px; font-weight: 600; color: var(--color-ink); transition: border-color 0.2s var(--ease-standard), transform 0.15s var(--ease-standard); }
.ee-audio[hidden] { display: none; }
.ee-audio:hover { border-color: var(--color-ink); }
.ee-audio:active { transform: scale(0.98); }
.ee-audio span { font-size: 11px; color: #73332a; }
.ee-week-note { margin: 14px 0 0; font-size: 13px; color: var(--color-muted); }
.ee-note-paper { position: relative; margin: 0; padding: 26px 26px 30px; background: #fffdf6 repeating-linear-gradient(transparent 0 31px, #efe5d1 31px 32px); background-position: 0 14px; border: 1px solid #e8dcc3; border-radius: 6px 6px 6px 22px; box-shadow: 0 26px 40px -28px rgba(80, 52, 24, 0.5); transform: rotate(1.4deg); }
.ee-note-paper p { margin: 0; }
.ee-note-paper .ee-note-title { display: flex; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid #73332a; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #73332a; }
.ee-note-cap { font-size: 13px; font-weight: 700; color: #9c7a3f; }
.ee-note-paper .ee-note-sentence { margin-top: 4px; font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; color: var(--color-ink); }
.ee-note-paper .ee-note-ko { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--color-body); }
.ee-note-paper .ee-note-sum { margin-top: 20px; padding: 14px 16px; background: #f6ecd8; border-radius: 10px; font-size: 14.5px; line-height: 1.6; color: var(--color-ink); word-break: keep-all; }
.ee-note-sum b { display: block; margin-bottom: 2px; font-size: 13px; color: #73332a; }
.ee-note-mark { position: absolute; right: 18px; bottom: -14px; padding: 6px 14px; background: #73332a; border-radius: 999px; font-size: 13px; font-weight: 800; color: #fbf3e4; transform: rotate(-4deg); }
.ee-week-flow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; padding: 18px clamp(20px, 4vw, 52px); background: #faf5ec; border-top: 1px solid #ece3d2; font-size: 15px; font-weight: 700; color: var(--color-ink); }
.ee-week-flow span { color: #c4a46a; }
.ee-week-flow b { color: #73332a; }
.ee-week-flow small { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--color-muted); }

/* 교재: 한 줄에 한 영역, 이름 · 표지 · 설명 */
.ee-books { margin: 0; padding: 0; list-style: none; border-top: 1px solid #e3d9c6; }
.ee-books > li { display: grid; grid-template-columns: minmax(150px, 2fr) minmax(0, 4fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 48px); align-items: center; padding: clamp(22px, 3vw, 32px) 0; border-bottom: 1px solid #e3d9c6; }
.ee-book-name span { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1; color: #c4a46a; font-variant-numeric: tabular-nums; }
.ee-book-name h4 { margin: 8px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--color-ink); }
.ee-book-name small { display: block; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--color-muted); }
.ee-books figure { margin: 0; padding: 14px; background: #ffffff; border: 1px solid #ece3d2; border-radius: 14px; transition: transform 0.35s var(--ease-standard), box-shadow 0.35s var(--ease-standard); }
.ee-books > li:hover figure { transform: translateY(-3px); box-shadow: 0 20px 34px -26px rgba(80, 52, 24, 0.5); }
.ee-books figure img { width: 100%; max-height: 180px; object-fit: contain; border-radius: 6px; }
.ee-books .ee-book-pair { display: grid; gap: 10px; }
.ee-books .ee-book-pair img { max-height: 92px; }
.ee-books .ee-book-type { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; background: var(--color-primary); border-color: var(--color-primary); color: #fbf3e4; }
.ee-book-type span { font-size: 34px; line-height: 1; color: #e6cf9f; }
.ee-book-type b { font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.ee-book-lead { margin: 0; font-size: 14px; font-weight: 700; color: #73332a; }
.ee-book-title { margin: 4px 0 12px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--color-ink); word-break: keep-all; }
.ee-book-body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ee-book-body li { position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.6; color: var(--color-body); word-break: keep-all; }
.ee-book-body li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: #d8c49f; }

/* 로드맵: 세 단계, 점점 짙어지는 바탕 */
.ee-road { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ee-road li { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 32px); background: #ffffff; border: 1px solid #e3d9c6; border-radius: 18px; color: var(--color-ink); }
.ee-road li:nth-child(2) { background: #f6eedf; }
.ee-road li:nth-child(3) { background: var(--color-primary); border-color: var(--color-primary); color: #fbf3e4; }
.ee-road li + li::before { content: '→'; position: absolute; z-index: 1; left: -15px; top: 38px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--color-canvas); border: 1px solid #e3d9c6; font-size: 12px; color: #9c7a3f; }
.ee-road-step { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: #73332a; }
.ee-road-step b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #73332a; font-size: 14px; font-weight: 800; color: #fbf3e4; font-variant-numeric: tabular-nums; }
.ee-road h4 { margin: 0 0 10px; font-size: clamp(19px, 1.7vw, 22px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; color: inherit; }
.ee-road-what { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--color-body); word-break: keep-all; }
.ee-road-goal { margin: auto 0 0; padding-top: 18px; border-top: 1px dashed #d8c9ac; font-size: 15.5px; font-weight: 700; color: inherit; word-break: keep-all; }
.ee-road-what + .ee-road-goal { margin-top: 22px; }
.ee-road-goal span { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; color: #9c7a3f; }
.ee-road li:nth-child(3) .ee-road-step, .ee-road li:nth-child(3) .ee-road-goal span { color: #e6cf9f; }
.ee-road li:nth-child(3) .ee-road-step b { background: #c4a46a; color: var(--color-primary); }
.ee-road li:nth-child(3) .ee-road-what { color: #d9cfbf; }
.ee-road li:nth-child(3) .ee-road-goal { border-color: rgba(230, 207, 159, 0.4); }

/* Writing Journal */
.ee-journal { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.ee-journal-pics { position: relative; margin: 0; padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px) 64px; background: #f1e7d5; border-radius: 24px; display: grid; grid-template-columns: 1fr 1fr; }
.ee-journal-pics img { width: 100%; border-radius: 10px; background: #ffffff; box-shadow: 0 24px 36px -24px rgba(80, 52, 24, 0.6); transition: transform 0.5s var(--ease-standard); }
.ee-journal-cover { position: relative; z-index: 1; transform: rotate(-5deg) translateX(10px); }
.ee-journal-inside { transform: rotate(4deg) translate(-6px, 18px); }
.ee-journal-pics:hover .ee-journal-cover { transform: rotate(-7deg) translateX(0); }
.ee-journal-pics:hover .ee-journal-inside { transform: rotate(6deg) translate(4px, 14px); }
.ee-journal-pics figcaption { position: absolute; z-index: 2; left: clamp(20px, 3vw, 40px); bottom: 18px; padding: 8px 14px; border-radius: 8px; background: var(--color-primary); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: #fbf3e4; }
.ee-journal-list { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid #e3d9c6; }
.ee-journal-list li { display: grid; grid-template-columns: 44px 1fr; gap: 0 12px; padding: 16px 0; border-bottom: 1px solid #e3d9c6; font-size: 15px; line-height: 1.6; color: var(--color-body); word-break: keep-all; }
.ee-journal-list span { grid-row: span 2; font-family: var(--font-display); font-size: 20px; font-weight: 800; color: #73332a; font-variant-numeric: tabular-nums; }
.ee-journal-list b { font-size: 17px; font-weight: 700; color: var(--color-ink); }
.ee-beyond { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; margin-top: clamp(56px, 7vw, 96px); padding: clamp(28px, 4vw, 48px); background: var(--color-surface-soft); border-radius: 22px; }
.ee-beyond-head h4 { margin: 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.3; color: var(--color-ink); }
.ee-beyond-head p:last-child { margin: 12px 0 0; font-size: 16px; line-height: 1.7; color: var(--color-body); word-break: keep-all; }
.ee-beyond-head b { font-weight: 700; color: var(--color-ink); }
.ee-beyond-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.ee-beyond-list div { padding: 22px; background: #ffffff; border-radius: 14px; }
.ee-beyond-list dt { margin: 0 0 8px; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: var(--color-ink); }
.ee-beyond-list dt::before { content: ''; display: block; width: 24px; height: 3px; margin-bottom: 14px; border-radius: 2px; background: #73332a; }
.ee-beyond-list dd { margin: 0; font-size: 15px; line-height: 1.65; color: var(--color-body); word-break: keep-all; }

/* 수업 안내 · 시간표: 반마다 한 장 */
.ee-classes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.ee-class { display: flex; flex-direction: column; padding: clamp(20px, 2.4vw, 28px); background: #ffffff; border: 1px solid #e3d9c6; border-radius: var(--radius-md); }
.ee-class header { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; padding-bottom: 18px; border-bottom: 1px solid #ece3d2; }
.ee-class-badge { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 12px; background: #73332a; font-family: var(--font-display); font-size: 20px; font-weight: 800; color: #fbf3e4; }
.ee-class-badge--alt { background: var(--color-primary); }
.ee-class h4 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--color-ink); }
.ee-class header p { margin: 2px 0 0; font-size: 14.5px; font-weight: 600; color: var(--color-muted); }
.ee-slots { margin: 0; }
.ee-slots div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #ece3d2; }
.ee-slots dt { font-size: 15px; font-weight: 600; color: var(--color-body); }
.ee-slots dd { margin: 0; display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.ee-slots dd b { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--color-ink); }
.ee-slots dd span { padding: 1px 8px; border-radius: 999px; background: #f4ede1; font-size: 12.5px; font-weight: 700; color: #73332a; }
.ee-days-label { margin: 18px 0 8px; font-size: 13px; font-weight: 700; color: var(--color-muted); }
.ee-days { margin: auto 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ee-days--two { grid-template-columns: 1.4fr 1fr; }
.ee-days li { padding: 10px 8px; background: #faf5ec; border-radius: 8px; text-align: center; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--color-ink); word-break: keep-all; }
.ee-days b { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 800; color: #73332a; }
.ee-classes + .tt-foot .tt-swatch { flex-basis: 8px; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: #73332a; border-color: #73332a; }
.ee-special { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 28px; padding: clamp(24px, 3vw, 34px) clamp(24px, 3.4vw, 40px); background: var(--color-primary); border-radius: 18px; color: #fbf3e4; }
.ee-special > div { flex: 1 1 26em; }
.ee-special-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #e6cf9f; }
.ee-special h4 { margin: 0 0 8px; font-size: clamp(20px, 2vw, 24px); font-weight: 800; letter-spacing: -0.03em; }
.ee-special p:last-child { margin: 0; font-size: 15.5px; line-height: 1.7; color: #d9cfbf; word-break: keep-all; }

/* 학부모 질문: 왼쪽 제목, 오른쪽 질문 목록(펼치지 않고 바로 보임) */
.ee-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ee-head--side { position: sticky; top: calc(var(--nav-height) + 32px); margin-bottom: 0; }
.ee-faq-list { margin: 0; border-top: 1px solid #e3d9c6; }
.ee-faq-list div { padding: 24px 0; border-bottom: 1px solid #e3d9c6; }
.ee-faq-list dt { position: relative; margin: 0 0 10px; padding-left: 32px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.45; color: var(--color-ink); word-break: keep-all; }
.ee-faq-list dt::before { content: 'Q'; position: absolute; left: 0; top: 0; font-family: var(--font-display); font-weight: 800; color: #73332a; }
.ee-faq-list dd { margin: 0; padding-left: 32px; font-size: 16px; line-height: 1.75; color: var(--color-body); word-break: keep-all; }

/* 상담 */
.ee-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; margin-top: clamp(72px, 9vw, 120px); padding: clamp(32px, 5vw, 60px); background: radial-gradient(120% 140% at 100% 0%, rgba(196, 164, 106, 0.22), transparent 55%), var(--color-primary); border-radius: 24px; color: #fbf3e4; }
.ee-cta-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: #e6cf9f; }
.ee-cta-title { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.25; }
.ee-cta-sub { margin: 12px 0 0; font-size: 16px; color: #d9cfbf; word-break: keep-all; }
.ee-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.ee-cta-tel { display: flex; flex-direction: column; font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: #fbf3e4; font-variant-numeric: tabular-nums; transition: color 0.2s var(--ease-standard); }
.ee-cta-tel small { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0; color: #e6cf9f; }
.ee-cta-tel:hover { color: #e6cf9f; }
.ee-cta a:focus-visible, .ee-special a:focus-visible { outline-color: #e6cf9f; }

@media (max-width: 1000px) {
  .ee-why { grid-template-columns: 1fr; }
  .ee-classes { grid-template-columns: 1fr 1fr; }
  .ee-books > li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .ee-book-name { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; }
  .ee-book-name h4 { margin: 0; }
  .ee-book-name small { display: inline; margin-left: 6px; }
}
@media (max-width: 860px) {
  .ee-hero, .ee-journal, .ee-beyond, .ee-faq { grid-template-columns: 1fr; }
  .ee-hero-photo { margin: 12px 8px 0; }
  .ee-facts { grid-template-columns: 1fr 1fr; }
  .ee-facts li:nth-child(3) { border-left: 0; }
  .ee-facts li:nth-child(n + 3) { border-top: 1px solid #ece3d2; }
  .ee-week-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .ee-week-tabs::-webkit-scrollbar { display: none; }
  .ee-week-tabs button { flex: 0 0 auto; min-width: 132px; }
  .ee-week-panel { grid-template-columns: 1fr; }
  .ee-note-paper { max-width: 420px; }
  .ee-road { grid-template-columns: 1fr; }
  .ee-road li + li::before { content: '↓'; left: 32px; top: -15px; }
  .ee-head--side { position: static; }
  .ee-journal-pics { max-width: 520px; }
}
@media (max-width: 640px) {
  .ee-sticker { padding: 8px 11px; font-size: 12.5px; }
  .ee-sticker--top { left: -6px; top: -26px; }
  .ee-sticker--bottom { right: -6px; }
  .ee-facts li { gap: 2px 10px; padding: 18px 10px; }
  .ee-facts b { font-size: 15.5px; }
  .ee-facts small { font-size: 13px; }
  .ee-why-card { grid-template-columns: 1fr; }
  .ee-why-figure img { max-width: 170px; }
  .ee-week-flow small { width: 100%; margin-left: 0; }
  .ee-books > li { grid-template-columns: 1fr; gap: 16px; }
  .ee-books figure img { max-height: 150px; }
  .ee-books .ee-book-type { min-height: 110px; }
  .ee-classes { grid-template-columns: 1fr; }
  .ee-beyond-list { grid-template-columns: 1fr; }
  .ee-faq-list dt { padding-left: 26px; font-size: 16.5px; }
  .ee-faq-list dd { padding-left: 26px; font-size: 15px; }
  .ee-sub { font-size: 16px; }
}
#english img { height: auto; }
.ee-why-figure img { max-height: 280px; object-fit: cover; object-position: top; }
.ee-journal-pics { align-items: start; }
.ee-sticker { max-width: 16em; }
@media (max-width: 860px) { .ee-week-tabs { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); } }
.ee-week-tabs button, .ee-audio { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ee-week-panel:focus-visible { outline: 2px solid #73332a; outline-offset: -6px; }

/* 예비고1 겨울 시간표: 윈터 A·B반 나란히, 방학 중 표는 아래에 */
.tt-note--after { margin: 14px 0 0; }
.tt-card--after { margin-top: 18px; }
.tt td.tt-empty { background: #fdfbf7; }
.tt tbody th .tt-sub { font-weight: 500; }
.tt-mark { padding: 1px 6px; border-radius: 4px; background: #fbf1d4; font-weight: 600; }

/* 윈터스쿨 과목별 수업 안내 (이룸고등 #winter-subjects): 알약 탭 + 과목 패널 + 접히는 주차별 커리큘럼 */
.ws-subjects { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid #e3d9c6; scroll-margin-top: var(--nav-height); }
.ws-subjects .course-class-head { margin-bottom: 22px; }
.ws-tabs-wrap { margin-bottom: 24px; }
.ws-tabs { position: relative; display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: #f1e9db; box-shadow: inset 0 1px 2px rgba(60, 40, 20, 0.07); }
.ws-tab { position: relative; z-index: 1; min-width: 92px; padding: 11px 24px; border: 0; border-radius: 999px; background: transparent; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--color-muted); transition: color 0.45s var(--ease-soft); }
.ws-tab:hover { color: var(--color-ink); }
.ws-tab.is-on { color: #73332a; font-weight: 700; }
.ws-tab:focus-visible { outline: 2px solid #73332a; outline-offset: 2px; }
.ws-tab-ind { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: #ffffff; box-shadow: 0 1px 1px rgba(60, 40, 20, 0.06), 0 8px 22px -10px rgba(60, 40, 20, 0.32); }
.ws-tabs.is-ready .ws-tab-ind { transition: transform 0.55s var(--ease-soft), width 0.55s var(--ease-soft); }

.ws-panel { padding: clamp(22px, 3.4vw, 40px); background: #ffffff; border: 1px solid #e3d9c6; border-radius: var(--radius-md); opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--ease-soft), transform 0.6s var(--ease-soft); }
.ws-panel.is-shown { opacity: 1; transform: none; }
.ws-panel:focus-visible { outline: 2px solid #73332a; outline-offset: 3px; }
.ws-lead { max-width: 52em; padding-left: 18px; border-left: 4px solid #73332a; }
.ws-kicker { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: #a0824c; word-break: keep-all; }
.ws-title { margin: 0; font-size: clamp(20px, 2vw, 25px); font-weight: 700; line-height: 1.4; letter-spacing: -0.025em; color: var(--color-ink); word-break: keep-all; }
.ws-text { margin: 12px 0 0; font-size: 16px; line-height: 1.75; color: var(--color-body); word-break: keep-all; }
.ws-book { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 15px; font-weight: 600; color: var(--color-ink); }
.ws-book span { padding: 3px 10px; border-radius: 999px; background: #73332a; color: #fbf3e4; font-size: 13px; font-weight: 700; }

.ws-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.ws-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ws-card { padding: 20px 22px; background: #faf7f1; border: 1px solid #eee6d8; border-radius: var(--radius-sm); }
.ws-card h5 { margin: 0 0 10px; font-size: 17px; font-weight: 700; letter-spacing: -0.015em; color: #73332a; word-break: keep-all; }
.ws-card p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--color-ink); word-break: keep-all; }
.ws-card ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.ws-card li { list-style: disc; font-size: 15px; line-height: 1.6; color: var(--color-ink); word-break: keep-all; }
.ws-card li::marker { color: #c4a46a; }
.ws-card dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ws-card dt { font-size: 15px; font-weight: 700; color: var(--color-ink); word-break: keep-all; }
.ws-card dt small { font-size: 13px; font-weight: 500; color: var(--color-muted); }
.ws-card dd { margin: 2px 0 0; font-size: 15px; line-height: 1.65; color: var(--color-body); word-break: keep-all; }
.ws-card--accent { background: #fbf3e4; border-color: #ecdcae; }
.ws-card .ws-card-tag { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: #a0824c; }
.ws-card .ws-card-meta { margin: -4px 0 10px; font-size: 14px; font-weight: 600; color: var(--color-ink); }

.ws-sub-title { margin: 30px 0 10px; font-size: 17px; font-weight: 700; color: var(--color-ink); }
.ws-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #eee6d8; border-radius: var(--radius-sm); }
.ws-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ws-table th, .ws-table td { padding: 11px 12px; border-bottom: 1px solid #eee6d8; border-left: 1px solid #f3ede2; font-size: 15px; line-height: 1.55; color: var(--color-ink); text-align: center; vertical-align: middle; word-break: keep-all; }
.ws-table tr > :first-child { border-left: 0; }
.ws-table tbody tr:last-child > * { border-bottom: 0; }
.ws-table thead th { background: #73332a; color: #fbf3e4; font-size: 14px; font-weight: 700; border-left-color: rgba(251, 243, 228, 0.18); border-bottom-color: rgba(251, 243, 228, 0.18); }
.ws-table thead th.ws-th-sub { background: #a0824c; }
.ws-table tbody th { background: #faf7f1; font-weight: 700; white-space: nowrap; }
.ws-table tbody th small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--color-muted); }
.ws-table th.ws-month { background: #f4ede1; color: #73332a; }
.ws-table td.ws-wk { color: var(--color-muted); white-space: nowrap; }
.ws-table td.ws-none { color: #c9bda8; }
.ws-table td.ws-off { font-weight: 700; }
.ws-table td.ws-off small { display: block; font-size: 12px; font-weight: 500; color: var(--color-muted); }
.ws-table td.ws-strong { font-weight: 700; color: #73332a; }
.ws-table td.ws-span { background: #faf7f1; font-weight: 700; }
.ws-table td.ws-hl { background: #fbf1d4; font-weight: 700; color: #73332a; }
.ws-table tr.ws-group td { padding: 9px 14px; background: #faf7f1; text-align: left; font-size: 14px; font-weight: 700; color: var(--color-ink); }
.ws-table--ab td { text-align: left; }
.ws-table--ab td b { display: block; margin-bottom: 3px; font-weight: 700; color: #73332a; }
.ws-table--ab th:first-child { width: 120px; }
.ws-table--math { min-width: 720px; }
.ws-table--kor, .ws-table--eng { min-width: 640px; }
.ws-table--eng td:not(.ws-wk):not(.ws-span) { text-align: left; }
.ws-table--sci { min-width: 480px; }
.ws-table--sci tbody th { width: 90px; }

.ws-cur { margin-top: 24px; border-top: 1px dashed #e3d9c6; }
.ws-cur + .ws-cur { margin-top: 0; }
.ws-cur summary { display: flex; align-items: center; gap: 10px; padding: 18px 2px; list-style: none; cursor: pointer; font-size: 16px; font-weight: 700; color: #73332a; }
.ws-cur summary::-webkit-details-marker { display: none; }
.ws-cur summary::after { content: ""; width: 8px; height: 8px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 0.35s var(--ease-soft); }
.ws-cur[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.ws-cur summary:hover { color: var(--color-ink); }
.ws-cur summary:focus-visible { outline: 2px solid #73332a; outline-offset: 2px; border-radius: 4px; }
.ws-cur-body { padding-bottom: 8px; animation: ws-open 0.5s var(--ease-soft); }
@keyframes ws-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ws-note { margin: 12px 0 0; font-size: 15px; color: var(--color-ink); word-break: keep-all; }
.ws-note--muted { margin-top: 6px; font-size: 13px; color: var(--color-muted); text-align: right; }
.ws-box { margin-top: 18px; padding: 20px 22px; background: #fbf3e4; border: 1px solid #ecdcae; border-radius: var(--radius-sm); }
.ws-box h5 { margin: 0 0 12px; font-size: 17px; font-weight: 700; color: #73332a; }
.ws-box-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ws-box-label { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--color-ink); }
.ws-box ul, .ws-box ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.ws-box li { font-size: 15px; line-height: 1.6; color: var(--color-ink); word-break: keep-all; }
.ws-box ul li { list-style: disc; } .ws-box ol li { list-style: decimal; }
.ws-box li::marker { color: #a0824c; }

@media (max-width: 900px) { .ws-cards--3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .ws-tabs { display: flex; width: 100%; }
  .ws-tab { flex: 1; min-width: 0; padding: 10px 4px; font-size: 16px; }
  .ws-panel { padding: 20px 16px; }
  .ws-lead { padding-left: 14px; }
  .ws-cards, .ws-box-grid { grid-template-columns: 1fr; }
  .ws-card { padding: 18px; }
  .ws-table th, .ws-table td { padding: 9px 8px; font-size: 14px; }
  .ws-table--ab th:first-child { width: 78px; }
}
.ws-table--math, .ws-table--kor, .ws-table--eng, .ws-table--sci { table-layout: fixed; }
.ws-table .ws-c-m { width: 64px; } .ws-table .ws-c-w { width: 76px; } .ws-table .ws-c-t { width: 110px; } .ws-table .ws-c-v { width: 26%; }
