/* 애드 첫걸음 — 모바일 우선 레이아웃 */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #efede6;
  --ink: #1b2130;
  --ink-2: #3d4556;
  --muted: #687082;
  --line: #e2dfd5;
  --brand: #2448d8;
  --brand-ink: #ffffff;
  --brand-soft: #e8edfd;
  --accent: #e39a2d;
  --accent-soft: #fdf2e0;
  --ok: #1d7f55;
  --ok-soft: #e2f3ea;
  --bad: #c13f2c;
  --bad-soft: #fbe8e4;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(20 24 40 / 6%), 0 4px 16px rgb(20 24 40 / 6%);
  --wrap: 760px;
  --wrap-wide: 1040px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151c;
    --surface: #1a1e27;
    --surface-2: #232834;
    --ink: #eceef3;
    --ink-2: #c6cad4;
    --muted: #949bab;
    --line: #2d3340;
    --brand: #7d97ff;
    --brand-ink: #0e1222;
    --brand-soft: #232c4a;
    --accent: #f0b459;
    --accent-soft: #3a2f1c;
    --ok: #5fcf98;
    --ok-soft: #173327;
    --bad: #ff8a78;
    --bad-soft: #3d1f1b;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%);
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1, h2, h3 { line-height: 1.35; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.1rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 0.8em; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[tabindex='-1']:focus { outline: none; }

.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;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 20;
  background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* 헤더·푸터 */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--wrap-wide); margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }
.logo__mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand); color: var(--brand-ink); font-size: 0.8rem; font-weight: 900;
}
.site-header nav { display: flex; gap: 2px; }
.site-header nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem;
  padding: 6px 10px; border-radius: 8px;
}
.site-header nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-header nav a[aria-current='page'] { color: var(--brand); background: var(--brand-soft); }

.main { max-width: var(--wrap-wide); margin: 0 auto; padding: 20px 16px 48px; min-height: 70vh; }
.main:focus { outline: none; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.site-footer__inner { max-width: var(--wrap-wide); margin: 0 auto; padding: 24px 16px 40px; }
.site-footer p { margin-bottom: 0.5em; }
.site-footer__brand { margin-top: 1em; font-weight: 600; }

.linklike {
  background: none; border: 0; padding: 0; font: inherit; color: var(--brand);
  text-decoration: underline; cursor: pointer;
}

.loading { padding: 64px 0; text-align: center; color: var(--muted); }

/* 공통 요소 */
.page { max-width: var(--wrap); margin: 0 auto; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; margin-bottom: 0.4em; }
.lead, .section__lead { color: var(--ink-2); font-size: 1.02rem; }
.muted { color: var(--muted); }
.back {
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 16px;
  color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 600;
}
.back:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 10px 20px; border-radius: 12px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.08s, background 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--brand) 88%, black); }
.btn--primary:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; transform: none; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--muted); }

.chip {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); font-size: 0.78rem; font-weight: 700; white-space: nowrap;
}
.chip--brand, .chip--choice { background: var(--brand-soft); color: var(--brand); }
.chip--ok { background: var(--ok-soft); color: var(--ok); }
.chip--warn, .chip--calc { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.chip--muted { background: var(--surface-2); color: var(--muted); }
.chip--ox { background: var(--ok-soft); color: var(--ok); }
.chip--scenario { background: var(--bad-soft); color: var(--bad); }
.chip--level1, .chip--level2, .chip--level3 { background: transparent; border: 1px solid var(--line); color: var(--muted); }

.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress__fill { height: 100%; background: var(--brand); border-radius: inherit; transition: width 0.3s; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 0.5em; }
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 0.1em;
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-size: 0.75rem; font-weight: 900;
}

.callout { border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; }
.callout p:last-child { margin-bottom: 0; }
.callout__label { font-size: 0.8rem; font-weight: 800; margin-bottom: 0.3em; }
.callout--key { background: var(--brand-soft); }
.callout--key .callout__label { color: var(--brand); }
.callout--example { background: var(--surface); border: 1px solid var(--line); }
.callout--example .callout__label { color: var(--ok); }
.callout--warn { background: var(--accent-soft); }
.callout--warn .callout__label { color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }

.empty { text-align: center; padding: 48px 8px; display: grid; justify-items: center; gap: 8px; }
.empty .chip { margin-bottom: 8px; }
.empty p { max-width: 460px; color: var(--ink-2); }

/* 홈 */
.hero { padding: 28px 0 36px; max-width: 720px; }
.hero h1 { font-size: clamp(1.8rem, 1.3rem + 2.6vw, 2.8rem); margin-bottom: 0.45em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__lead { color: var(--ink-2); font-size: 1.06rem; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.section { padding: 28px 0; border-top: 1px solid var(--line); }
.section--soft { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; margin-top: 12px; }

.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.flow__step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.flow__step h3 { margin: 8px 0 4px; }
.flow__step p { margin: 0; color: var(--ink-2); font-size: 0.93rem; }
.flow__num {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 0.85rem;
}

.modules { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.module-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.module-tile.is-locked { box-shadow: none; background: transparent; border-style: dashed; padding: 18px; color: var(--muted); }
.module-tile__link { display: block; padding: 18px; color: inherit; text-decoration: none; border-radius: inherit; height: 100%; }
.module-tile__link:hover { background: color-mix(in srgb, var(--brand-soft) 40%, transparent); }
.module-tile__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.module-tile__num { font-size: 0.82rem; font-weight: 800; color: var(--brand); }
.is-locked .module-tile__num { color: var(--muted); }
.module-tile h3 { font-size: 1.2rem; margin-bottom: 2px; }
.module-tile__topic { color: var(--ink-2); margin-bottom: 6px; }
.is-locked .module-tile__topic { color: var(--muted); }
.module-tile__keywords { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.module-tile__progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--muted); }

/* 모듈 */
.module__header { margin-bottom: 20px; }
.module__intro { color: var(--ink-2); font-size: 1.02rem; }
.module__stats { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 0.88rem; }
.goals { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 6px; margin-bottom: 20px; }
.goals h2 { font-size: 1rem; }
.module__progress { margin-bottom: 28px; }
.module__progress-row { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.module__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.card-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.card-row {
  display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start;
  padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: inherit; text-decoration: none;
}
.card-row:hover { border-color: var(--brand); }
.card-row__num {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-2); font-weight: 800; font-size: 0.85rem;
}
.card-row.is-read .card-row__num { background: var(--ok-soft); color: var(--ok); }
.card-row__body { display: grid; gap: 2px; }
.card-row__body span { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

.quiz-cta { background: var(--brand-soft); border-radius: var(--radius); padding: 20px; }
.quiz-cta p { color: var(--ink-2); }

/* 개념 카드 */
.card-page__top { display: grid; gap: 4px; margin-bottom: 20px; }
.card-page__top .back { margin-bottom: 8px; }
.concept { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow); }
.concept__eyebrow { display: flex; justify-content: space-between; gap: 8px; font-size: 0.85rem; font-weight: 700; color: var(--brand); }
.concept__asof { color: var(--muted); font-weight: 500; }
.concept__body { margin: 20px 0; font-size: 1.04rem; }
.concept__body p { margin-bottom: 1em; }
.concept__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.concept__tags a { text-decoration: none; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.pager__link {
  display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem;
}
.pager__link small { color: var(--muted); font-weight: 600; }
.pager__link:hover { border-color: var(--brand); }
.pager__link--next { text-align: right; }
.pager__link--quiz { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.pager__link--quiz small { color: inherit; opacity: 0.8; }

/* 퀴즈 */
.quiz__top { margin-bottom: 20px; }
.quiz__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.quiz__exit { color: var(--muted); }
.quiz__count { font-size: 0.9rem; color: var(--muted); margin: 4px 0 6px; }
.quiz__count strong { font-size: 1.3rem; color: var(--ink); }

.question__chips { display: flex; gap: 6px; margin-bottom: 10px; }
.question__text { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.4rem); font-weight: 700; margin-bottom: 0.6em; }
.question__hint { color: var(--muted); font-size: 0.9rem; }

.choices { display: grid; gap: 10px; margin: 16px 0; }
.choices--ox { grid-template-columns: 1fr 1fr; }
.choice {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px;
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; text-align: left; cursor: pointer; transition: border-color 0.12s, background 0.12s;
}
.choice:hover:not(:disabled) { border-color: var(--brand); }
.choice:disabled { cursor: default; }
.choice__mark { color: var(--muted); font-size: 1.1rem; }
.choice__text { flex: 1; }
.choice__tag { font-size: 0.75rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; }
.choices--ox .choice { justify-content: center; flex-direction: column; gap: 4px; min-height: 104px; font-size: 2.2rem; font-weight: 800; }
.choices--ox .choice__text { flex: none; }
.choice.is-selected { border-color: var(--brand); background: var(--brand-soft); }
.choice.is-selected .choice__mark { color: var(--brand); }
.choice.is-correct { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.choice.is-correct .choice__mark { color: var(--ok); }
.choice.is-wrong { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.choice.is-wrong .choice__mark { color: var(--bad); }
.choice.is-dim { opacity: 0.55; }

.feedback { border-radius: var(--radius); padding: 16px; margin-top: 4px; animation: rise 0.2s ease-out; }
.feedback--ok { background: var(--ok-soft); }
.feedback--bad { background: var(--bad-soft); }
.feedback__title { font-weight: 800; font-size: 1.05rem; }
.feedback--ok .feedback__title { color: var(--ok); }
.feedback--bad .feedback__title { color: var(--bad); }
.feedback__label { font-size: 0.8rem; font-weight: 800; color: var(--muted); margin-bottom: 0.2em; }
.feedback p:last-child { margin-bottom: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }

.quiz__actions {
  position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}
.quiz__actions .btn { width: 100%; }
.quiz__keys { display: none; margin: 8px 0 0; text-align: center; color: var(--muted); font-size: 0.8rem; }
@media (hover: hover) and (pointer: fine) { .quiz__keys { display: block; } }

.feedback--skip { background: var(--surface-2); }
.feedback--skip .feedback__title { color: var(--ink-2); }
.feedback__answer { font-size: 1.02rem; }
.feedback__answer span { display: block; font-size: 0.8rem; font-weight: 800; color: var(--muted); }
.feedback__answer strong { white-space: pre-line; }

.quiz__actions .quiz__skip { display: block; margin: 10px auto 0; color: var(--muted); font-size: 0.9rem; }

/* 숫자 직접 입력 */
.number-answer { margin: 16px 0; }
.number-answer__field {
  display: flex; align-items: center; gap: 8px; padding: 0 16px; min-height: 64px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
}
.number-answer__field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.number-answer__input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 1.6rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums;
}
.number-answer__input:focus { outline: none; }
.number-answer__input[aria-invalid] { color: var(--bad); }
.number-answer__unit { font-size: 1.2rem; font-weight: 700; color: var(--muted); }
.number-answer__error { min-height: 1.4em; margin: 6px 2px 0; color: var(--bad); font-size: 0.88rem; }
.number-answer.is-correct .number-answer__field { border-color: var(--ok); background: var(--ok-soft); }
.number-answer.is-correct .number-answer__input { color: var(--ok); }
.number-answer.is-wrong .number-answer__field { border-color: var(--bad); background: var(--bad-soft); }
.number-answer.is-wrong .number-answer__input { color: var(--bad); }
.number-answer.is-dim .number-answer__field { opacity: 0.6; }

/* 짝맞추기 */
.match { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; counter-reset: match; }
.match__row {
  display: grid; gap: 8px; padding: 12px 14px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
}
.match__left { font-weight: 700; }
.match__left::before { counter-increment: match; content: counter(match) '. '; color: var(--muted); }
.match__select {
  width: 100%; min-height: 48px; padding: 8px 12px; font: inherit;
  background: var(--bg); color: var(--ink); border: 1.5px solid var(--line); border-radius: 8px;
}
.match__select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.match__row.is-correct { border-color: var(--ok); background: var(--ok-soft); }
.match__row.is-correct .match__select { color: var(--ok); font-weight: 700; }
.match__row.is-wrong { border-color: var(--bad); background: var(--bad-soft); }
.match__row.is-wrong .match__select { color: var(--bad); }
.match__row.is-dim { opacity: 0.7; }
.match__key { margin: 0; color: var(--ok); font-weight: 700; font-size: 0.92rem; }
@media (min-width: 560px) {
  .match__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; }
  .match__key { grid-column: 2; }
}

/* 결과 */
.result { text-align: center; }
.result__score { display: grid; justify-items: center; gap: 12px; margin: 16px 0; }
.result__text { color: var(--ink-2); max-width: 440px; }
.result__skipped { display: block; margin-top: 4px; font-size: 0.92rem; }
.result__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 28px; }

.ring {
  --size: 148px;
  width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--brand) calc(var(--pct) * 1%), var(--surface-2) 0);
}
.ring__inner {
  width: calc(var(--size) - 22px); height: calc(var(--size) - 22px); border-radius: 50%;
  background: var(--bg); display: grid; place-content: center; text-align: center; padding: 8px;
}
.ring__inner strong { font-size: 2.2rem; line-height: 1.1; }
.ring__inner small { font-size: 0.9rem; margin-left: 2px; }
.ring__inner span { font-size: 0.72rem; color: var(--muted); line-height: 1.3; }

.review-list { text-align: left; }
.review-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; }
.review-item summary { padding: 14px 16px; cursor: pointer; font-weight: 600; }
.review-item[open] summary { border-bottom: 1px solid var(--line); }
.review-item dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 12px 16px 0; margin: 0; }
.review-item dt { color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.review-item dd { margin: 0; white-space: pre-line; }
.review-item dd.is-wrong { color: var(--bad); }
.review-item dd.is-correct { color: var(--ok); font-weight: 700; }
.review-item > p { padding: 10px 16px 14px; margin: 0; color: var(--ink-2); }

/* 진단 */
.recommend { text-align: center; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.recommend .lead { max-width: 520px; margin-inline: auto; }
.module-scores { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.module-scores li { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; text-align: left; }
.module-scores .ring { --size: 72px; }
.module-scores .ring__inner { width: 58px; height: 58px; }
.module-scores .ring__inner strong { font-size: 1.1rem; }
.module-scores li > div { display: grid; }
.module-scores li span { color: var(--muted); font-size: 0.85rem; }
.diagnose .checklist { margin: 16px 0 20px; }

/* 계산 연습 · 방명록 안내 띠 */
.practice-cta, .guestbook-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--accent-soft); border-radius: var(--radius); padding: 18px 20px; margin: 8px 0 24px;
}
.practice-cta h2, .guestbook-cta h2 { font-size: 1.05rem; margin-bottom: 2px; }
.practice-cta p, .guestbook-cta p { margin: 0; color: var(--ink-2); font-size: 0.93rem; }
.formula-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 20px 0; }
.formula-sheet h2 { font-size: 1rem; }
.formula-sheet dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; }
.formula-sheet dt span { color: var(--muted); font-size: 0.82rem; }
.formula-sheet dd { margin: 0; font-variant-numeric: tabular-nums; }
.formula-sheet small { color: var(--muted); }
@media (max-width: 420px) { .formula-sheet dl { grid-template-columns: 1fr; gap: 2px; } .formula-sheet dd { margin-bottom: 8px; } }
.metric-breakdown { margin-top: 24px; }
.metric-breakdown ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.metric-breakdown li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.metric-breakdown small { flex-basis: 100%; color: var(--muted); }

/* 용어 찾기 */
.search { margin: 16px 0 12px; }
.search__input {
  width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 1.05rem;
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
}
.search__input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.search-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.search-item {
  display: grid; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: inherit; text-decoration: none;
}
.search-item:hover { border-color: var(--brand); }
.search-item__where { font-size: 0.78rem; font-weight: 700; color: var(--brand); }
.search-item span:last-child { color: var(--ink-2); font-size: 0.92rem; }
mark { background: var(--accent-soft); color: inherit; padding: 0 2px; border-radius: 3px; }
.tag-cloud { margin-top: 32px; }
.tag-cloud h2 { font-size: 1rem; }
.tag-cloud > div { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud .linklike { text-decoration: none; }

@media (min-width: 720px) {
  .main { padding-top: 32px; }
  .concept { padding: 32px 36px; }
  .hero { padding: 48px 0 56px; }
}

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