/* ==========================================================================
   Expectant — 임신·출산 정보 가이드
   Design System : Soft Pastel
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand — dusty rose */
  --rose-50:  #FFF6F6;
  --rose-100: #FDEBEC;
  --rose-200: #F9D6D9;
  --rose-300: #F2B9BF;
  --rose-400: #E59AA3;
  --rose-500: #D4808B;
  --rose-600: #B96874;
  --rose-700: #96525D;

  /* Secondary — sage */
  --sage-50:  #F4F8F5;
  --sage-100: #E6F0E9;
  --sage-200: #CDE0D3;
  --sage-300: #A9C8B4;
  --sage-400: #85AF95;
  --sage-600: #4F7A61;

  /* Tertiary — soft lavender / powder blue */
  --lav-100: #EFEBF7;
  --lav-300: #C6BBE3;
  --lav-600: #6E5E9B;
  --sky-100: #E7F1F8;
  --sky-300: #A9CCE3;
  --sky-600: #3F7095;

  /* Warm neutrals */
  --cream-50: #FFFCFA;
  --cream-100: #FDF6F1;
  --cream-200: #F7ECE5;
  --sand-300: #EADFD7;

  --ink-900: #33272A;
  --ink-700: #4E4045;
  --ink-500: #7A6A70;
  --ink-400: #9A8B90;
  --ink-300: #C4B7BB;

  --white: #FFFFFF;

  /* Semantic */
  --bg:            var(--cream-50);
  --bg-alt:        var(--cream-100);
  --surface:       var(--white);
  --border:        #F0E4DF;
  --border-strong: #E4D3CC;
  --text:          var(--ink-900);
  --text-muted:    var(--ink-500);
  --brand:         var(--rose-500);
  --brand-deep:    var(--rose-700);

  /* Type */
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
               'Apple SD Gothic Neo', system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Gowun Batang', 'Nanum Myeongjo', Georgia, serif;

  /* Space & shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  --shadow-xs: 0 1px 2px rgba(105, 74, 80, .05);
  --shadow-sm: 0 2px 8px rgba(105, 74, 80, .06);
  --shadow-md: 0 8px 24px rgba(105, 74, 80, .08);
  --shadow-lg: 0 18px 48px rgba(105, 74, 80, .11);

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --header-h: 68px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: -.011em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--rose-200); color: var(--brand-deep); }

:focus-visible {
  outline: 2.5px solid var(--rose-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--alt { background: var(--bg-alt); }
.stack > * + * { margin-top: 1em; }

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4 { line-height: 1.32; letter-spacing: -.026em; font-weight: 700; }
.serif { font-family: var(--font-serif); font-weight: 700; letter-spacing: -.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .775rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--rose-600);
  padding: 6px 14px; border-radius: var(--r-full);
  background: var(--rose-100);
  white-space: nowrap;
}
.eyebrow svg { width: 14px; height: 14px; flex-shrink: 0; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-top: 16px; }
.section-head p { margin-top: 14px; color: var(--text-muted); font-size: 1.02rem; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--r-full);
  font-weight: 600; font-size: .95rem; letter-spacing: -.01em;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .18s;
  will-change: transform;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--rose-500), var(--rose-400));
  color: var(--white);
  box-shadow: 0 6px 18px rgba(212, 128, 139, .32);
}
.btn--primary:hover { box-shadow: 0 12px 28px rgba(212, 128, 139, .4); }

.btn--ghost {
  background: var(--white); color: var(--ink-700);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn--ghost:hover { border-color: var(--rose-300); color: var(--rose-600); }

.btn--sm { padding: 9px 18px; font-size: .875rem; }

/* ---------- 6. Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 252, 250, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.is-stuck { border-bottom-color: var(--border); background: rgba(255, 252, 250, .94); }

.header__inner {
  height: 100%; display: flex; align-items: center; gap: 18px;
}

.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.16rem; letter-spacing: -.03em; flex-shrink: 0; }
.logo__mark {
  width: 32px; height: 32px; border-radius: 11px;
  background: linear-gradient(140deg, var(--rose-300), var(--rose-500) 60%, var(--lav-300));
  display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(212, 128, 139, .3);
}
.logo__mark svg { width: 17px; height: 17px; }
.logo__text { color: var(--ink-900); }
.logo__text em { font-style: normal; color: var(--rose-500); }

/* Nav */
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 14px; border-radius: var(--r-full);
  font-size: .925rem; font-weight: 600; color: var(--ink-700);
  transition: background .18s, color .18s;
}
.nav__link:hover, .nav__item:hover > .nav__link,
.nav__item:focus-within > .nav__link { background: var(--rose-100); color: var(--rose-600); }
.nav__link[aria-current="page"] { color: var(--rose-600); }
.nav__chev { width: 12px; height: 12px; transition: transform .2s; opacity: .55; }
.nav__item:hover .nav__chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 8px);
  min-width: 264px; padding: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s var(--ease), transform .24s var(--ease), visibility .2s;
}
.nav__item:hover > .dropdown,
.nav__item:focus-within > .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.dropdown::before {
  content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
/* 마지막 메뉴는 오른쪽 정렬 — 좁은 데스크톱에서 화면 밖으로 나가지 않도록 */
.nav__item:last-child .dropdown {
  left: auto; right: 0; transform: translate(0, 8px);
}
.nav__item:last-child:hover > .dropdown,
.nav__item:last-child:focus-within > .dropdown { transform: translate(0, 0); }
.dropdown a {
  display: block; padding: 9px 13px; border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 500; color: var(--ink-700);
  transition: background .15s, color .15s, padding-left .18s;
}
.dropdown a:hover { background: var(--rose-50); color: var(--rose-600); padding-left: 18px; }
.dropdown__label {
  padding: 8px 13px 5px; font-size: .715rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-400);
}
.dropdown__sep { height: 1px; background: var(--border); margin: 7px 6px; }

.header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-full);
  display: grid; place-items: center; color: var(--ink-700);
  transition: background .18s, color .18s;
}
.icon-btn:hover { background: var(--rose-100); color: var(--rose-600); }
.icon-btn svg { width: 19px; height: 19px; }

.burger { display: none; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 200;
  visibility: hidden; pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__scrim {
  position: absolute; inset: 0; background: rgba(51, 39, 42, .38);
  opacity: 0; transition: opacity .3s var(--ease);
  backdrop-filter: blur(2px);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(88vw, 360px); background: var(--bg);
  padding: 20px 20px 44px; overflow-y: auto;
  transform: translateX(100%); transition: transform .34s var(--ease);
  box-shadow: -12px 0 40px rgba(105, 74, 80, .16);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.drawer__group { border-bottom: 1px solid var(--border); padding-block: 6px; }
.drawer__group:last-of-type { border-bottom: 0; }
.drawer__toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 6px; font-weight: 700; font-size: 1rem; text-align: left;
}
.drawer__toggle svg { width: 15px; height: 15px; opacity: .5; transition: transform .25s var(--ease); }
.drawer__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.drawer__panel-list {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.drawer__toggle[aria-expanded="true"] + .drawer__panel-list { grid-template-rows: 1fr; }
.drawer__panel-list > div { overflow: hidden; }
.drawer__panel-list a {
  display: block; padding: 10px 6px 10px 18px; font-size: .93rem;
  color: var(--text-muted); border-left: 2px solid var(--border);
}
.drawer__panel-list a:hover { color: var(--rose-600); border-left-color: var(--rose-400); }

/* ---------- 7. Search overlay ---------- */
.search {
  position: fixed; inset: 0; z-index: 300;
  visibility: hidden; pointer-events: none;
}
.search.is-open { visibility: visible; pointer-events: auto; }
.search__scrim {
  position: absolute; inset: 0; background: rgba(51, 39, 42, .4);
  backdrop-filter: blur(4px); opacity: 0; transition: opacity .26s;
}
.search.is-open .search__scrim { opacity: 1; }
.search__box {
  position: relative; width: min(94vw, 620px); margin: 12vh auto 0;
  background: var(--white); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateY(-14px) scale(.98); opacity: 0;
  transition: transform .3s var(--ease), opacity .26s;
}
.search.is-open .search__box { transform: none; opacity: 1; }
.search__field { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.search__field svg { width: 20px; height: 20px; color: var(--ink-400); flex-shrink: 0; }
.search__field input { flex: 1; border: 0; outline: 0; font-size: 1.05rem; background: none; }
.search__field input::placeholder { color: var(--ink-300); }
.search__kbd {
  font-size: .7rem; font-weight: 700; color: var(--ink-400);
  border: 1px solid var(--border-strong); border-radius: 6px; padding: 3px 7px;
}
.search__results { max-height: 52vh; overflow-y: auto; padding: 10px; }
.search__results a {
  display: block; padding: 11px 14px; border-radius: var(--r-sm);
  transition: background .15s;
}
.search__results a:hover, .search__results a.is-active { background: var(--rose-50); }
.search__results strong { display: block; font-size: .95rem; font-weight: 600; }
.search__results span { font-size: .8rem; color: var(--text-muted); }
.search__results mark { background: var(--rose-200); color: var(--brand-deep); border-radius: 3px; padding: 0 2px; }
.search__empty { padding: 30px; text-align: center; color: var(--text-muted); font-size: .92rem; }

/* ---------- 8. Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 104px) clamp(48px, 7vw, 84px); }
.hero__bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 48%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 48%, transparent 96%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .55; }
.blob--1 { width: 460px; height: 460px; background: var(--rose-200); top: -180px; right: -110px; }
.blob--2 { width: 380px; height: 380px; background: var(--sage-200); bottom: -190px; left: -130px; opacity: .45; }
.blob--3 { width: 300px; height: 300px; background: var(--lav-100); top: 34%; left: 42%; opacity: .7; }

.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 {
  font-size: clamp(2.05rem, 5.2vw, 3.5rem);
  margin-top: 20px; letter-spacing: -.035em;
}
.hero h1 em { font-style: normal; color: var(--rose-500); }
.hero__lead { margin-top: 20px; font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--text-muted); max-width: 44ch; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { margin-top: 40px; display: flex; gap: 30px; flex-wrap: wrap; }
.hero__stat b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--rose-600); letter-spacing: -.03em; }
.hero__stat span { font-size: .83rem; color: var(--text-muted); }

/* Hero card — quick calculator */
.hero__card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.hero__card h3 { font-size: 1.08rem; display: flex; align-items: center; gap: 9px; }
.hero__card h3 svg { width: 19px; height: 19px; color: var(--rose-500); }
.hero__card p.hint { font-size: .84rem; color: var(--text-muted); margin-top: 6px; }

/* ---------- 9. Forms ---------- */
.field { margin-top: 18px; }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-700); margin-bottom: 7px; }
.field input[type="date"], .field input[type="number"], .field select {
  width: 100%; padding: 12px 14px;
  background: var(--cream-50);
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  font-size: .95rem; transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input:focus, .field select:focus {
  outline: 0; border-color: var(--rose-400); background: var(--white);
  box-shadow: 0 0 0 3.5px var(--rose-100);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.result {
  margin-top: 22px; padding: 20px;
  background: linear-gradient(140deg, var(--rose-50), var(--cream-100));
  border: 1px solid var(--rose-200); border-radius: var(--r-md);
}
.result[hidden] { display: none; }
.result__big { font-size: 1.55rem; font-weight: 800; color: var(--rose-600); letter-spacing: -.03em; }
.result__label { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.result__meta { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.result__meta div { background: rgba(255,255,255,.72); border-radius: var(--r-sm); padding: 11px 13px; }
.result__meta b { display: block; font-size: 1.02rem; color: var(--ink-900); font-weight: 700; }
.result__meta span { font-size: .74rem; color: var(--text-muted); }

/* ---------- 10. Category cards ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }

.card {
  position: relative; display: block;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px 24px 24px;
  box-shadow: var(--shadow-xs);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .22s;
  overflow: hidden;
}
.card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(242,185,191,.16), transparent 62%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--rose-200); }
.card:hover::after { opacity: 1; }

.card__icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.i-rose { background: var(--rose-100); color: var(--rose-600); }
.i-sage { background: var(--sage-100); color: var(--sage-600); }
.i-lav  { background: var(--lav-100);  color: var(--lav-600); }
.i-sky  { background: var(--sky-100);  color: var(--sky-600); }
.i-cream{ background: var(--cream-200);color: #A9743F; }

.card h3 { font-size: 1.12rem; letter-spacing: -.028em; }
.card p { margin-top: 9px; font-size: .895rem; color: var(--text-muted); line-height: 1.65; }
.card__links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: .77rem; font-weight: 600; padding: 5px 11px;
  border-radius: var(--r-full); background: var(--cream-100);
  color: var(--ink-700); border: 1px solid var(--border);
  transition: background .16s, color .16s, border-color .16s;
}
a.chip:hover { background: var(--rose-100); color: var(--rose-600); border-color: var(--rose-200); }
.card__more {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; font-weight: 700; color: var(--rose-600);
}
.card__more svg { width: 14px; height: 14px; transition: transform .22s var(--ease); }
.card:hover .card__more svg { transform: translateX(4px); }

.card--wide { grid-column: span 2; }
@media (max-width: 720px) { .card--wide { grid-column: span 1; } }

/* ---------- 11. Week timeline ---------- */
.timeline { margin-top: 8px; }
.timeline__track {
  position: relative; display: flex; gap: 4px;
  padding: 6px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-full);
  overflow-x: auto; scrollbar-width: none;
}
.timeline__track::-webkit-scrollbar { display: none; }
.timeline__tab {
  flex: 1; min-width: 92px; padding: 11px 14px;
  border-radius: var(--r-full); font-size: .875rem; font-weight: 600;
  color: var(--text-muted); white-space: nowrap; text-align: center;
  transition: background .22s, color .22s;
}
.timeline__tab:hover { color: var(--rose-600); }
.timeline__tab.is-active { background: linear-gradient(135deg, var(--rose-500), var(--rose-400)); color: var(--white); box-shadow: 0 4px 12px rgba(212,128,139,.28); }

.timeline__panels { margin-top: 24px; }
.timeline__panel { display: none; animation: fadeUp .42s var(--ease); }
.timeline__panel.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.tl-card {
  display: grid; grid-template-columns: 236px 1fr; gap: 32px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 30px; box-shadow: var(--shadow-sm);
}
.tl-card__aside { border-right: 1px solid var(--border); padding-right: 28px; }
.tl-card__week { font-size: 2.1rem; font-weight: 800; color: var(--rose-500); letter-spacing: -.04em; line-height: 1.1; }
.tl-card__sub { font-size: .84rem; color: var(--text-muted); margin-top: 4px; }
.tl-card__size {
  margin-top: 20px; padding: 14px; border-radius: var(--r-md);
  background: var(--cream-100); border: 1px solid var(--border);
}
.tl-card__size b { display: block; font-size: .95rem; }
.tl-card__size span { font-size: .77rem; color: var(--text-muted); }
.tl-card h4 { font-size: 1.14rem; }
.tl-list { margin-top: 14px; display: grid; gap: 10px; }
.tl-list li { position: relative; padding-left: 26px; font-size: .93rem; color: var(--ink-700); }
.tl-list li::before {
  content: ''; position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rose-300); box-shadow: 0 0 0 3px var(--rose-100);
}
@media (max-width: 800px) {
  .tl-card { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .tl-card__aside { border-right: 0; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 20px; }
}

/* ---------- 12. Article ---------- */
.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 250px;
  gap: 56px; align-items: start;
  padding-block: 44px 88px;
}
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; gap: 0; } }
/* 그리드 항목이 넓은 표에 밀려 화면 밖으로 나가는 것 방지 */
.article-layout > * { min-width: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: .82rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--rose-600); }
.breadcrumb svg { width: 11px; height: 11px; opacity: .5; }

.article__head { padding-bottom: 30px; border-bottom: 1px solid var(--border); margin-bottom: 34px; }
.article__head h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); margin-top: 16px; letter-spacing: -.035em; }
.article__desc { margin-top: 16px; font-size: 1.06rem; color: var(--text-muted); }
.article__meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 16px; font-size: .8rem; color: var(--ink-400); }
.article__meta span { display: inline-flex; align-items: center; gap: 5px; }
.article__meta svg { width: 13px; height: 13px; }

.prose { font-size: 1.02rem; line-height: 1.85; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: 1.52rem; margin-top: 2.4em; padding-top: .2em;
  letter-spacing: -.03em; scroll-margin-top: calc(var(--header-h) + 24px);
  display: flex; align-items: baseline; gap: 11px;
}
.prose h2::before {
  content: ''; width: 5px; height: 20px; border-radius: 3px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--rose-400), var(--rose-200));
  transform: translateY(1px);
}
.prose h3 { font-size: 1.16rem; margin-top: 1.9em; color: var(--ink-900); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h4 { font-size: 1.02rem; margin-top: 1.5em; color: var(--rose-700); }
.prose p { color: var(--ink-700); }
.prose strong { font-weight: 700; color: var(--ink-900); }
.prose a:not(.btn):not(.chip) {
  color: var(--rose-600); font-weight: 600;
  border-bottom: 1.5px solid var(--rose-200);
  transition: border-color .18s, background .18s;
}
.prose a:not(.btn):not(.chip):hover { border-color: var(--rose-500); background: var(--rose-50); }

.prose ul, .prose ol { padding-left: 2px; display: grid; gap: .55em; }
.prose ul li { position: relative; padding-left: 24px; color: var(--ink-700); }
.prose ul li::before {
  content: ''; position: absolute; left: 5px; top: .68em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--rose-300);
}
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 34px; color: var(--ink-700); counter-increment: n; }
.prose ol li::before {
  content: counter(n); position: absolute; left: 0; top: .18em;
  width: 23px; height: 23px; border-radius: 50%;
  background: var(--rose-100); color: var(--rose-600);
  font-size: .76rem; font-weight: 800;
  display: grid; place-items: center;
}
.prose li > ul, .prose li > ol { margin-top: .5em; }

.prose blockquote {
  border-left: 3px solid var(--rose-300);
  background: var(--rose-50);
  padding: 16px 22px; border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink-700); font-size: .97rem;
}

.prose hr { border: 0; height: 1px; background: var(--border); margin-block: 2.6em; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.prose table { width: 100%; border-collapse: collapse; font-size: .91rem; background: var(--white); min-width: 420px; }
.prose thead th {
  background: var(--cream-100); text-align: left; font-weight: 700;
  padding: 13px 16px; color: var(--ink-900); font-size: .85rem;
  border-bottom: 1px solid var(--border-strong); white-space: nowrap;
}
.prose tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--ink-700); vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) { background: var(--cream-50); }

/* Callouts */
.callout {
  display: flex; gap: 15px; padding: 20px 22px;
  border-radius: var(--r-md); border: 1px solid;
  font-size: .95rem; line-height: 1.72;
}
.callout__icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.callout__icon svg { width: 15px; height: 15px; }
.callout b { display: block; margin-bottom: 4px; font-size: .95rem; }
.callout p { margin: 0; }
.callout > div > * + * { margin-top: .5em; }

.callout--tip   { background: var(--sage-50);  border-color: var(--sage-200); }
.callout--tip .callout__icon { background: var(--sage-200); color: var(--sage-600); }
.callout--warn  { background: #FEF7EC; border-color: #F5E2C4; }
.callout--warn .callout__icon { background: #F7E4C2; color: #A9743F; }
.callout--info  { background: var(--sky-100); border-color: #CFE3F0; }
.callout--info .callout__icon { background: #D3E6F3; color: var(--sky-600); }
.callout--alert { background: var(--rose-50); border-color: var(--rose-200); }
.callout--alert .callout__icon { background: var(--rose-200); color: var(--rose-700); }

/* Key-point box */
.keypoints {
  background: linear-gradient(150deg, var(--cream-100), var(--rose-50));
  border: 1px solid var(--rose-200); border-radius: var(--r-lg);
  padding: 24px 26px;
}
.keypoints > b {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--rose-600); margin-bottom: 14px;
}
.keypoints > b svg { width: 15px; height: 15px; }
.keypoints ul { display: grid; gap: 9px; }
.keypoints li { font-size: .95rem; }

/* FAQ accordion */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq__item:hover { border-color: var(--rose-200); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 20px; text-align: left; font-weight: 600; font-size: .98rem;
}
.faq__q svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--rose-500); transition: transform .28s var(--ease); }
.faq__q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 20px 19px; font-size: .94rem; color: var(--ink-700); margin: 0; }

/* Comparison grid */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.compare__col { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.compare__col h4 { margin: 0 0 4px; font-size: 1.04rem; color: var(--ink-900); }
.compare__badge { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: var(--r-full); display: inline-block; margin-bottom: 12px; }
.compare__col ul { display: grid; gap: 7px; margin-top: 12px; }
.compare__col li { font-size: .87rem; padding-left: 20px; }

/* Steps */
.steps { display: grid; gap: 14px; counter-reset: s; }
.step {
  display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: start;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 18px 20px;
  counter-increment: s; transition: border-color .2s, transform .2s var(--ease);
}
.step:hover { border-color: var(--rose-200); transform: translateX(3px); }
.step::before {
  content: counter(s); width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(140deg, var(--rose-400), var(--rose-500));
  color: var(--white); font-weight: 800; font-size: 1.05rem;
  display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(212,128,139,.28);
}
.step b { display: block; font-size: 1rem; margin-bottom: 3px; }
.step p { margin: 0; font-size: .9rem; color: var(--text-muted); }

/* Line-reading visual */
.lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 14px; }
.line-fig { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px; text-align: center; }
.line-fig__strip {
  height: 68px; border-radius: 9px; background: var(--cream-100);
  border: 1px solid var(--sand-300); position: relative; margin-bottom: 13px;
  display: flex; align-items: center; justify-content: center; gap: 20px;
}
.line-fig__bar { width: 5px; height: 40px; border-radius: 3px; background: var(--rose-600); }
.line-fig__bar[data-op="faint"] { opacity: .3; }
.line-fig__bar[data-op="mid"] { opacity: .58; }
.line-fig__bar[data-op="none"] { opacity: 0; }
.line-fig__bar[data-op="evap"] { background: var(--ink-300); opacity: .35; }
.line-fig__label { font-size: .5rem; position: absolute; bottom: 5px; color: var(--ink-400); letter-spacing: .04em; }
.line-fig b { font-size: .92rem; display: block; }
.line-fig span { font-size: .79rem; color: var(--text-muted); }

/* ---------- 13. TOC sidebar ---------- */
.toc { position: sticky; top: calc(var(--header-h) + 28px); }
@media (max-width: 980px) { .toc { display: none; } }
.toc__title {
  font-size: .74rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-400); margin-bottom: 14px;
}
.toc__list { border-left: 2px solid var(--border); display: grid; }
.toc__list a {
  padding: 7px 0 7px 16px; margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: .855rem; color: var(--text-muted); line-height: 1.5;
  transition: color .18s, border-color .18s;
}
.toc__list a:hover { color: var(--rose-600); }
.toc__list a.is-active { color: var(--rose-600); font-weight: 600; border-left-color: var(--rose-500); }
.toc__list a[data-depth="3"] { padding-left: 28px; font-size: .81rem; }

.toc__cta {
  margin-top: 26px; padding: 18px; border-radius: var(--r-md);
  background: linear-gradient(150deg, var(--rose-100), var(--cream-100));
  border: 1px solid var(--rose-200);
}
.toc__cta b { display: block; font-size: .92rem; }
.toc__cta p { font-size: .8rem; color: var(--text-muted); margin: 6px 0 12px; }

/* Reading progress */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 150;
  background: linear-gradient(90deg, var(--rose-400), var(--rose-500), var(--lav-300));
  width: 0; transition: width .1s linear;
}

/* ---------- 14. Related / prev-next ---------- */
.related { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }
.related h3 { font-size: 1.15rem; margin-bottom: 20px; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.related__item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 17px 19px;
  transition: transform .22s var(--ease), border-color .2s, box-shadow .22s;
}
.related__item:hover { transform: translateY(-3px); border-color: var(--rose-200); box-shadow: var(--shadow-sm); }
.related__item b { display: block; font-size: .95rem; }
.related__item span { font-size: .81rem; color: var(--text-muted); }

.pager { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .pager { grid-template-columns: 1fr; } }
.pager a {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 16px 20px; transition: border-color .2s, box-shadow .2s;
}
.pager a:hover { border-color: var(--rose-300); box-shadow: var(--shadow-sm); }
.pager span { font-size: .74rem; color: var(--ink-400); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pager b { display: block; margin-top: 4px; font-size: .96rem; }
.pager .next { text-align: right; }

/* ---------- 15. Hub page ---------- */
.hub-hero { padding-block: clamp(44px, 6vw, 72px) 0; position: relative; overflow: hidden; }
.hub-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin-top: 18px; }
.hub-hero p { margin-top: 16px; font-size: 1.05rem; color: var(--text-muted); max-width: 60ch; }

.list-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.list-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px;
  transition: transform .26s var(--ease), box-shadow .26s, border-color .22s;
}
.list-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--rose-200); }
.list-item__no {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px;
  background: var(--rose-100); color: var(--rose-600);
  font-weight: 800; font-size: .85rem; display: grid; place-items: center;
}
.list-item b { font-size: 1.02rem; display: block; }
.list-item p { margin-top: 6px; font-size: .875rem; color: var(--text-muted); line-height: 1.62; }

/* ---------- 16. Tools ---------- */
.tool-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 30px; box-shadow: var(--shadow-sm);
}
.tool-card h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.tool-card h3 svg { width: 20px; height: 20px; color: var(--rose-500); }
.tool-card > p { margin-top: 8px; font-size: .89rem; color: var(--text-muted); }
.tool-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.bar {
  height: 9px; border-radius: var(--r-full); background: var(--cream-200);
  overflow: hidden; margin-top: 8px;
}
.bar span {
  display: block; height: 100%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--rose-300), var(--rose-500));
  transition: width .7s var(--ease);
}

/* ---------- 16b. 본문 추천 상품 (쿠팡 파트너스) ---------- */
.reco {
  display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: center;
  margin-top: 44px; padding: 22px;
  background: linear-gradient(150deg, var(--cream-100), var(--rose-50));
  border: 1px solid var(--rose-200); border-radius: var(--r-lg);
}
.reco__frame {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 6px; display: grid; place-items: center;
}
.reco__frame iframe { border-radius: 8px; display: block; }
.reco__label {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--rose-600);
  background: var(--rose-100); padding: 4px 11px; border-radius: var(--r-full);
}
.reco__body b { display: block; margin-top: 11px; font-size: 1.06rem; letter-spacing: -.025em; }
.reco__body > p { margin-top: 6px; font-size: .9rem; color: var(--text-muted); }
.reco__body .btn { margin-top: 14px; }
.reco__disc { margin-top: 12px; font-size: .72rem; line-height: 1.5; color: var(--ink-400); }
@media (max-width: 560px) {
  .reco { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
  .reco__body b { margin-top: 0; }
}

/* ---------- 17. Disclaimer ---------- */
.disclaimer {
  margin-top: 48px; padding: 20px 22px;
  background: var(--cream-100); border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  font-size: .845rem; color: var(--text-muted); line-height: 1.7;
}
.disclaimer b { color: var(--ink-700); }

/* ---------- 18. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), var(--cream-100) 45%, var(--sage-100));
  border-radius: var(--r-xl); padding: clamp(36px, 5vw, 56px);
  text-align: center; border: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-band p { margin-top: 12px; color: var(--text-muted); max-width: 52ch; margin-inline: auto; }
.cta-band .btn { margin-top: 26px; }

/* ---------- 18b. Ads (Kakao AdFit) ---------- */
/* 상단 배너 — 화면 폭에 따라 PC(728x90) / 모바일(320x100) 전환.
   광고가 늦게 로드돼도 본문이 밀리지 않도록 높이를 미리 확보 (CLS 방지) */
.ad--top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 8px 6px;
  min-height: 272px;   /* 모바일 300x250 자리 선점 */
}
.ad--top .kakao_ad_area { margin-inline: auto; }
.ad__pc, .ad__mo { display: none; justify-content: center; width: 100%; }
.ad__mo { display: flex; }

@media (min-width: 800px) {
  .ad--top { min-height: 112px; padding-inline: 22px; }  /* PC 728x90 */
  .ad__pc { display: flex; }
  .ad__mo { display: none; }
}

/* 우측 160x600 — 본문 바깥 여백이 확보되는 폭에서만 고정 노출 */
.ad--side {
  display: none;
  position: fixed;
  /* 본문(최대 1180px) 바깥 여백에만 자리잡도록 계산 — 넓은 화면에서도 본문 곁에 붙음 */
  top: calc(var(--header-h) + 12px);
  right: max(16px, calc((100vw - var(--wrap)) / 2 - 200px));
  z-index: 60;
  width: 160px;
}
@media (min-width: 1560px) {
  .ad--side { display: block; }
}
/* 우측 레일 안의 쿠팡 추천 상품 — 광고 바로 아래 */
.rail__coupang {
  margin-top: 10px;
  padding: 10px 8px 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: center;
  box-shadow: var(--shadow-xs);
}
.rail__label {
  display: block; line-height: 1.2;
  font-size: .66rem; font-weight: 800; letter-spacing: .1em;
  color: var(--ink-400); text-transform: uppercase; margin-bottom: 7px;
}
.rail__coupang iframe { margin-inline: auto; border-radius: 6px; }
.rail__disc {
  margin-top: 7px; font-size: .56rem; line-height: 1.4;
  color: var(--ink-300); word-break: keep-all;
}
/* 세로 공간이 부족한 화면에서는 광고만 남기고 추천 상품은 감춘다 */
@media (max-height: 1030px) {
  .rail__coupang { display: none; }
}

/* 오버레이가 열리면 광고가 위로 뜨지 않도록 */
.drawer.is-open ~ .ad--side,
.search.is-open ~ .ad--side { display: none; }

/* ---------- 19. Footer ---------- */
.footer { background: var(--cream-100); border-top: 1px solid var(--border); padding-block: 56px 32px; margin-top: 20px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__about p { margin-top: 14px; font-size: .865rem; color: var(--text-muted); max-width: 34ch; }
.footer h4 { font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 14px; }
.footer ul { display: grid; gap: 9px; }
.footer li a { font-size: .875rem; color: var(--text-muted); transition: color .16s; }
.footer li a:hover { color: var(--rose-600); }
/* 사업자 정보 */
.biz {
  margin-top: 44px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.biz h4 { margin-bottom: 14px; }
.biz__list {
  display: grid; gap: 8px 34px;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}
.biz__list > div { display: flex; gap: 10px; align-items: baseline; }
.biz dt {
  flex-shrink: 0; min-width: 84px;
  font-size: .78rem; font-weight: 700; color: var(--ink-400);
}
.biz dd { font-size: .83rem; color: var(--text-muted); }
.biz dd a { border-bottom: 1px solid transparent; transition: color .16s, border-color .16s; }
.biz dd a:hover { color: var(--rose-600); border-bottom-color: var(--rose-300); }

.footer__bottom {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .8rem; color: var(--ink-400);
}

/* ---------- 20. Utilities & reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: 14px; }
.mt-md { margin-top: 26px; }
.mt-lg { margin-top: 44px; }
.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;
}

/* ---------- 21. Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { max-width: 520px; }
}
@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .nav { display: none; }
  .burger { display: grid; }
  body { font-size: 16px; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 18px; }
  .hero__stats { gap: 20px; }
  .prose h2 { font-size: 1.32rem; }
  .tool-card, .hero__card { padding: 22px; }
}

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

@media print {
  .header, .footer, .toc, .drawer, .search, .progress, .related, .pager { display: none !important; }
  body { background: #fff; }
}
