/* ==========================================================
   벧엘수학 공개 웹앱 — 독립 스타일 (라이트 / 크림)
   (BethelCM / 벧엘 체크 CSS와 공유하지 않음)
   ========================================================== */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --bg: #f6f3ec;
  --bg-2: #efebe3;
  --surface: #fffcf7;
  --surface-2: #f3efe7;
  --line: rgba(40, 48, 40, 0.08);
  --line-strong: rgba(40, 48, 40, 0.14);
  --text: #1e2420;
  --text-dim: #5a635c;
  --text-mute: #8a928b;
  --accent: #3f9a5a;
  --accent-soft: #e5f3e9;
  --gold: #9a7a3a;
  --gold-soft: #f3ead6;
  --ink-deep: #163528;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --pad: 18px;
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --shadow-soft: 0 10px 28px -16px rgba(40, 48, 40, 0.28);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { background: #e8e4db; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

.icon {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* ---------- 앱 프레임 ---------- */
.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  background:
    radial-gradient(120% 55% at 100% 0%, rgba(63, 154, 90, 0.08), transparent 55%),
    radial-gradient(90% 50% at 0% 100%, rgba(154, 122, 58, 0.07), transparent 55%),
    linear-gradient(180deg, #faf7f1 0%, var(--bg) 40%, #f1ede4 100%);
  animation: page-in 0.5s var(--ease) both;
}

.app.is-leaving { animation: page-out 0.18s ease-in both; }

@media (min-width: 520px) {
  body { padding: 24px 0; background: #e8e4db; }
  .app {
    min-height: calc(100dvh - 48px);
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px -24px rgba(40, 48, 40, 0.35);
  }
}

/* ---------- 상단 바 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 var(--pad);
  background: linear-gradient(to bottom, rgba(250, 247, 241, 0.94), rgba(250, 247, 241, 0.72));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-deep);
}

.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  flex: none;
  overflow: hidden;
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

.topbar-actions { display: flex; gap: 6px; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 19px;
  color: var(--text-dim);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.icon-btn:hover { background: rgba(40, 48, 40, 0.06); color: var(--text); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn.is-kakao {
  color: #3c1e1e;
  background: #fee500;
}
.icon-btn.is-kakao:hover {
  color: #3c1e1e;
  background: #f5d800;
}

/* ---------- 홈: 히어로 ---------- */
.hero {
  position: relative;
  margin: 2px var(--pad) 0;
  height: clamp(150px, 29dvh, 250px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  animation: rise 0.7s var(--ease) 0.05s both;
}

.hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: hero-zoom 14s ease-out both;
}

.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(246, 243, 236, 0.35) 0%, transparent 45%),
    linear-gradient(135deg, rgba(63, 154, 90, 0.06), transparent 40%);
  pointer-events: none;
}

/* ---------- 홈: 소개 문구 ---------- */
.intro {
  padding: 16px var(--pad) 14px;
  text-align: center;
  animation: rise 0.7s var(--ease) 0.15s both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 14px; height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.headline {
  margin: 0;
  font-size: clamp(22px, 6.4vw, 27px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--ink-deep);
}
.headline em {
  font-style: normal;
  background: linear-gradient(100deg, #2f8a4c, #8a6a2e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* ---------- 홈: 메뉴 카드 ---------- */
.menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 var(--pad);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 98px;
  padding: 14px 14px 13px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px -14px rgba(40, 48, 40, 0.35);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
  animation: rise 0.6s var(--ease) both;
}
.card:nth-child(1) { animation-delay: 0.22s; }
.card:nth-child(2) { animation-delay: 0.28s; }
.card:nth-child(3) { animation-delay: 0.34s; }
.card:nth-child(4) { animation-delay: 0.40s; }

.card::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 154, 90, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 10px 24px -14px rgba(40, 48, 40, 0.4);
}
.card:hover::before { opacity: 1; }
.card:active { transform: scale(0.97); }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  font-size: 18px;
  color: var(--accent);
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid rgba(63, 154, 90, 0.14);
}

.card-arrow {
  font-size: 16px;
  color: var(--text-mute);
  transition: transform 0.25s var(--ease), color 0.25s;
}
.card:hover .card-arrow { transform: translateX(3px); color: var(--accent); }

.card-title {
  margin: 0;
  word-break: keep-all;
  text-wrap: balance;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--ink-deep);
}
.card-desc {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- 홈: 전화 ---------- */
.call-row {
  display: flex;
  justify-content: center;
  padding: 14px var(--pad) 8px;
  animation: rise 0.6s var(--ease) 0.48s both;
}

.call-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.call-pill .icon { color: var(--accent); font-size: 15px; }
.call-pill:hover { background: var(--surface-2); border-color: var(--line-strong); }
.call-pill:active { transform: scale(0.97); }

.foot {
  margin-top: auto;
  padding: 18px var(--pad) 22px;
  text-align: center;
}

.consult-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.consult .icon {
  font-size: 17px;
  color: var(--accent);
}
.consult-label { display: none; }
.consult:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--line-strong);
}
.consult:active { transform: scale(0.97); }
.consult.is-kakao {
  color: #3c1e1e;
  background: #fee500;
  border-color: rgba(60, 30, 30, 0.12);
}
.consult.is-kakao .icon { color: #3c1e1e; }
.consult.is-kakao:hover {
  color: #3c1e1e;
  background: #f5d800;
  border-color: rgba(60, 30, 30, 0.18);
}

/* PC: 하단 상담 — 문구·전화번호 노출 */
@media (min-width: 1024px) {
  .consult {
    width: auto;
    height: auto;
    min-height: 46px;
    padding: 0 18px;
  }
  .consult .icon { font-size: 15px; }
  .consult-label { display: inline; }
}

/* ---------- 서브메뉴 화면 ---------- */
.page-head {
  padding: 14px var(--pad) 6px;
  animation: rise 0.55s var(--ease) both;
}
.page-head .eyebrow { margin-bottom: 8px; }

.page-title {
  margin: 0;
  font-size: clamp(22px, 6vw, 26px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  word-break: keep-all;
  color: var(--ink-deep);
}

.page-keyline {
  margin: 14px 0 0;
  font-size: clamp(17px, 4.6vw, 19px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.025em;
  word-break: keep-all;
  color: var(--ink-deep);
}

.page-lead {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-dim);
}

.sub-menu {
  display: grid;
  gap: 10px;
  padding: 18px var(--pad) 24px;
}

.sub-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 16px 16px 16px 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px -14px rgba(40, 48, 40, 0.3);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
  animation: rise 0.55s var(--ease) both;
}
.sub-item:nth-child(1) { animation-delay: 0.12s; }
.sub-item:nth-child(2) { animation-delay: 0.18s; }
.sub-item:nth-child(3) { animation-delay: 0.24s; }
.sub-item:nth-child(4) { animation-delay: 0.30s; }

.sub-item:not(.is-placeholder):hover {
  border-color: var(--line-strong);
  box-shadow: 0 10px 24px -14px rgba(40, 48, 40, 0.38);
}
.sub-item:not(.is-placeholder):active { transform: scale(0.98); }

.sub-item.is-placeholder {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  opacity: 0.78;
  cursor: default;
  pointer-events: none;
}

.sub-num {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  flex: none;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, #3f9a5a, #8a6a2e);
}
.sub-item.is-placeholder .sub-num {
  color: var(--text-mute);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.sub-body { flex: 1; min-width: 0; }
.sub-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: keep-all;
  color: var(--ink-deep);
}
.sub-desc {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--text-mute);
}

.sub-arrow {
  font-size: 16px;
  color: var(--text-mute);
  flex: none;
}
.sub-item.is-placeholder .sub-arrow { opacity: 0.35; }

.draft-note {
  margin: 0 var(--pad) 20px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-mute);
  background: rgba(255, 252, 247, 0.7);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  animation: rise 0.55s var(--ease) 0.35s both;
}

/* ---------- 소단원 상세 ---------- */
.article {
  padding: 14px var(--pad) 36px;
  animation: rise 0.55s var(--ease) both;
}

.article .eyebrow {
  margin-bottom: 14px;
}

.article-heading {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: keep-all;
  color: var(--text-dim);
}

.article-title {
  margin: 0;
  font-size: clamp(24px, 6.8vw, 30px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
  word-break: keep-all;
  color: var(--ink-deep);
}

.article-title .hl {
  color: var(--accent);
}

.article-figure {
  margin: 20px 0 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 24px -16px rgba(40, 48, 40, 0.3);
  animation: rise 0.55s var(--ease) 0.12s both;
}

.article-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* 원장 프로필 — 정사각 축소 후 원형으로 흰 모서리 클리핑 */
.article-portrait {
  margin: 22px auto 0;
  width: min(52vw, 220px);
  max-width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  animation: rise 0.55s var(--ease) 0.12s both;
}

.article-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.article-body {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.article-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dim);
  word-break: keep-all;
}

.highlight-card {
  margin-top: 28px;
  padding: 20px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(63, 154, 90, 0.18);
  box-shadow: 0 8px 24px -16px rgba(40, 48, 40, 0.35);
  background-image:
    linear-gradient(135deg, rgba(63, 154, 90, 0.08), transparent 55%),
    linear-gradient(var(--surface), var(--surface));
}

.highlight-label {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.highlight-text {
  margin: 0;
  font-size: clamp(17px, 4.6vw, 19px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.025em;
  word-break: keep-all;
  color: var(--ink-deep);
}

.choice-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  padding: 0;
}

.choice-list .sub-item:nth-child(1) { animation-delay: 0.18s; }
.choice-list .sub-item:nth-child(2) { animation-delay: 0.24s; }

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.feature-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px -14px rgba(40, 48, 40, 0.28);
  animation: rise 0.55s var(--ease) both;
}
.feature-item:nth-child(1) { animation-delay: 0.14s; }
.feature-item:nth-child(2) { animation-delay: 0.20s; }
.feature-item:nth-child(3) { animation-delay: 0.26s; }

.feature-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(63, 154, 90, 0.16);
}
.feature-icon .icon {
  font-size: 18px;
  stroke-width: 2.4;
}

.feature-title {
  margin: 2px 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: keep-all;
  color: var(--ink-deep);
}

.feature-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-dim);
  word-break: keep-all;
}

/* ---------- 빈 콘텐츠 슬롯 / 주차 틀 ---------- */
.content-slot:empty {
  min-height: 48px;
}

.week-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.week-item {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px -14px rgba(40, 48, 40, 0.28);
  animation: rise 0.55s var(--ease) both;
}
.week-item:nth-child(1) { animation-delay: 0.10s; }
.week-item:nth-child(2) { animation-delay: 0.14s; }
.week-item:nth-child(3) { animation-delay: 0.18s; }
.week-item:nth-child(4) { animation-delay: 0.22s; }
.week-item:nth-child(5) { animation-delay: 0.26s; }

.week-item.is-focus {
  border-color: rgba(63, 154, 90, 0.28);
  background-image:
    linear-gradient(135deg, rgba(63, 154, 90, 0.07), transparent 55%),
    linear-gradient(var(--surface), var(--surface));
}

.week-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.week-num {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(135deg, #3f9a5a, #8a6a2e);
  border-radius: 999px;
}

.week-theme {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-deep);
}

.week-lead {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  word-break: keep-all;
  color: var(--ink-deep);
}

.week-block {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 8px;
  align-items: start;
  margin-top: 7px;
}

.week-block-label {
  margin: 0;
  padding-top: 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: left;
  white-space: nowrap;
  color: var(--text-mute);
}

.week-block-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  word-break: keep-all;
  color: var(--ink-deep);
}

.week-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.week-chip {
  display: inline-flex;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(63, 154, 90, 0.14);
  border-radius: 999px;
}

.week-note {
  margin: 9px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  word-break: keep-all;
  color: var(--text-dim);
}

.week-footnote {
  margin: 18px 2px 0;
  font-size: 12.5px;
  line-height: 1.6;
  word-break: keep-all;
  color: var(--text-mute);
}

.topic-block {
  margin-top: 26px;
  animation: rise 0.55s var(--ease) both;
}
.topic-block:nth-of-type(1) { animation-delay: 0.12s; }
.topic-block:nth-of-type(2) { animation-delay: 0.18s; }

.topic-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
  word-break: keep-all;
  color: var(--ink-deep);
}

.topic-block .article-body {
  margin-top: 0;
}

.topic-items {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.topic-item {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px -14px rgba(40, 48, 40, 0.28);
}

.topic-item .book-head {
  margin-bottom: 4px;
}

.topic-item .book-desc {
  margin: 0;
}

.article-body strong {
  font-weight: 700;
  color: var(--ink-deep);
}

.highlight-card .highlight-text:only-child,
.highlight-card .highlight-label + .highlight-text {
  margin: 0;
}

/* ---------- 교재 목록 (텍스트 나열, 클릭 없음) ---------- */
.book-list {
  margin-top: 26px;
}

.book-item {
  padding: 14px 0;
  animation: rise 0.55s var(--ease) both;
}
.book-item:nth-child(1) { animation-delay: 0.10s; }
.book-item:nth-child(2) { animation-delay: 0.14s; }
.book-item:nth-child(3) { animation-delay: 0.18s; }
.book-item:nth-child(4) { animation-delay: 0.22s; }
.book-item:nth-child(5) { animation-delay: 0.26s; }
.book-item:nth-child(6) { animation-delay: 0.30s; }
.book-item:nth-child(7) { animation-delay: 0.34s; }

.book-item:last-child {
  padding-bottom: 4px;
}

.book-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.book-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: keep-all;
  color: var(--ink-deep);
}

.book-purpose {
  flex: none;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  white-space: nowrap;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(63, 154, 90, 0.16);
  border-radius: 999px;
}

.book-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-dim);
  word-break: keep-all;
}

.related-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
  word-break: keep-all;
}

.related-link.is-soon {
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
  text-decoration: none;
}

/* ---------- 모션 ---------- */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes page-out { to { opacity: 0; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 아주 작은 화면 보정 */
@media (max-height: 640px) {
  .hero { height: clamp(120px, 24dvh, 190px); }
  .sub { display: none; }
  .card { min-height: 90px; }
}


/* ==========================================================
   태블릿 / PC 확장 — 모바일(~719px)은 위 스타일 그대로
   ========================================================== */
/* ---------- 태블릿 (720px~) ---------- */
@media (min-width: 720px) {
  :root { --pad: 28px; }
  body { padding: 32px 0; }
  .app {
    max-width: 760px;
    min-height: calc(100dvh - 64px);
  }

  .topbar { height: 64px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 34px; height: 34px; }

  .hero { height: 300px; }
  .sub { display: block; font-size: 16px; }
  .headline { font-size: 34px; }
  .eyebrow { font-size: 13px; }

  .menu { gap: 14px; }
  .card { min-height: 150px; padding: 20px 20px 18px; }
  .card-icon { width: 42px; height: 42px; font-size: 22px; border-radius: 13px; }
  .card-title { font-size: 17px; }
  .card-desc { font-size: 13.5px; }
  .card:hover { transform: translateY(-3px); }

  .page-head { padding-top: 22px; }
  .page-title { font-size: 32px; }
  .page-keyline { font-size: 21px; }
  .page-lead { font-size: 16px; }
  .sub-item { min-height: 84px; padding: 18px 22px 18px 18px; }
  .sub-title { font-size: 17.5px; }
  .sub-desc { font-size: 14px; }
  .sub-num { width: 40px; height: 40px; font-size: 15px; }
  .sub-item:not(.is-placeholder):hover { transform: translateY(-2px); }

  .article { padding-top: 22px; }
  .article-heading { font-size: 17px; }
  .article-title { font-size: 34px; }
  .article-body p { font-size: 17.5px; }
  .highlight-text { font-size: 22px; }
  .feature-title { font-size: 18px; }
  .feature-desc { font-size: 16px; }
  .book-name { font-size: 18px; }
  .book-desc { font-size: 16px; }
  .week-theme { font-size: 17px; }
  .week-lead { font-size: 16.5px; }
  .week-block-text { font-size: 15px; }
  .week-note { font-size: 14.5px; }
  .foot { padding: 28px var(--pad) 32px; }
  .consult-row { gap: 12px; }
}

/* ---------- PC (1024px~) ---------- */
@media (min-width: 1024px) {
  :root { --pad: 48px; }
  body { padding: 40px 0; }
  .app {
    max-width: 1160px;
    min-height: calc(100dvh - 80px);
    border-radius: 32px;
  }

  .topbar { height: 76px; }
  .brand { font-size: 22px; gap: 12px; }
  .brand-mark { width: 40px; height: 40px; }
  .icon-btn { width: 44px; height: 44px; font-size: 21px; }

  /* 홈: 좌측 이미지 + 우측 소개문, 아래 메뉴 4열 */
  .app.is-home {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
      "top   top"
      "hero  intro"
      "menu  menu"
      "foot  foot";
    column-gap: 40px;
    padding-bottom: 0;
  }
  .is-home .topbar { grid-area: top; }
  .is-home .hero {
    grid-area: hero;
    height: clamp(340px, 46dvh, 480px);
    margin: 8px 0 0 var(--pad);
    border-radius: 26px;
  }
  .is-home .intro {
    grid-area: intro;
    align-self: center;
    padding: 0 var(--pad) 0 0;
    text-align: left;
  }
  .is-home .intro .eyebrow { margin-bottom: 12px; font-size: 14px; }
  .is-home .headline { font-size: clamp(38px, 3.8vw, 50px); line-height: 1.25; }
  .is-home .sub { margin-top: 16px; font-size: 18px; }

  .is-home .menu {
    grid-area: menu;
    align-self: start;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 36px;
  }
  .is-home .card { min-height: 200px; padding: 24px 22px 22px; border-radius: 22px; }
  .is-home .card-icon { width: 48px; height: 48px; font-size: 24px; border-radius: 15px; }
  .is-home .card-arrow { font-size: 20px; }
  .is-home .card-title { font-size: 19px; line-height: 1.35; }
  .is-home .card-desc { margin-top: 6px; font-size: 14.5px; }
  .is-home .foot { grid-area: foot; padding: 36px var(--pad) 40px; }

  /* 서브 / 상세: 본문은 읽기 좋은 폭으로 가운데 정렬 */
  .page-head, .sub-menu, .article, .draft-note {
    width: 100%;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-head { padding-top: 32px; }
  .page-title { font-size: 38px; }
  .sub-menu { padding-top: 24px; padding-bottom: 40px; gap: 14px; }
  .sub-item { min-height: 92px; padding: 20px 26px 20px 22px; border-radius: 20px; }
  .sub-num { width: 44px; height: 44px; font-size: 16px; border-radius: 14px; }
  .sub-title { font-size: 19px; }
  .sub-desc { font-size: 14.5px; }

  .article { padding-top: 32px; padding-bottom: 64px; }
  .article-title { font-size: 40px; }
  .article-body { gap: 20px; margin-top: 28px; }
  .article-body p { font-size: 18px; line-height: 1.8; }
  .article-figure { margin-top: 28px; border-radius: 22px; }
  .article-portrait { width: 240px; }
  .highlight-card { padding: 28px 30px; border-radius: 22px; }
  .highlight-text { font-size: 24px; }
  .feature-list { gap: 16px; }
  .feature-item { grid-template-columns: 44px 1fr; padding: 22px; gap: 16px; }
  .feature-icon { width: 44px; height: 44px; }
  .week-item { padding: 20px 24px; }

  /* 인포그래픽 상세: 홈과 같이 왼쪽 그림 / 오른쪽 글 */
  .article.has-infographic {
    max-width: 1080px;
    display: grid;
    grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1fr);
    grid-template-areas:
      "figure copy"
      "figure body";
    column-gap: 40px;
    row-gap: 18px;
    align-items: start;
  }
  .article.has-infographic .article-copy {
    grid-area: copy;
    min-width: 0;
    padding-top: 8px;
  }
  .article.has-infographic .article-copy .eyebrow {
    justify-content: flex-start;
  }
  .article.has-infographic .article-title {
    font-size: clamp(28px, 2.8vw, 36px);
  }
  .article.has-infographic .article-body {
    grid-area: body;
    margin-top: 0;
  }
  .article.has-infographic .article-body p {
    font-size: 17px;
  }
  .article.has-infographic .article-figure {
    grid-area: figure;
    margin: 0;
    align-self: center;
  }
  .article.has-infographic .article-figure img {
    width: 100%;
    height: auto;
    max-height: min(68vh, 560px);
    object-fit: contain;
    object-position: center top;
    background: var(--surface);
  }
}

/* 태블릿: 인포그래픽이 세로로 과하게 커지지 않게 폭만 제한 */
@media (min-width: 720px) and (max-width: 1023px) {
  .article.has-infographic .article-figure {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 넓은 화면에서 낮은 창 높이여도 홈 구성 유지 */
@media (min-width: 720px) and (max-height: 640px) {
  .hero { height: 240px; }
  .card { min-height: 130px; }
}

/* 모바일: 글 → 그림 순서로 보이도록 (DOM은 글+그림) */
@media (max-width: 1023px) {
  .article.has-infographic .article-figure {
    margin-top: 20px;
  }
  .article.has-infographic .article-body {
    margin-top: 22px;
  }
}
