/* ─────────────────────────────────────────────
   댕댕운동장 매거진 — 아티클 공용 스타일
   ───────────────────────────────────────────── */
:root {
  --bg: #fffdf8;
  --surface: #ffffff;
  --ink: #1f2a24;
  --ink-soft: #55645b;
  --ink-mute: #8b968d;
  --line: #efe8dc;
  --line-soft: #f6f1e7;
  --mint: #2fa36b;
  --mint-deep: #1c7a4e;
  --mint-tint: #e8f8ef;
  --sun: #f2b52e;
  --sun-deep: #8d6200;
  --sun-tint: #fff5d8;
  --sky: #3f9dd0;
  --sky-deep: #2a6f97;
  --sky-tint: #e9f6fd;
  --coral: #f4795b;
  --coral-deep: #c14f33;
  --coral-tint: #ffece6;
  --shadow-s: 0 1px 2px rgba(60, 72, 60, .05), 0 6px 14px -8px rgba(60, 72, 60, .16);
  --shadow-m: 0 2px 6px rgba(60, 72, 60, .05), 0 22px 44px -26px rgba(60, 72, 60, .34);
  --maxw: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  font-size: 16.5px; line-height: 1.78; letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mint-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.032em; margin: 0; }
p { margin: 0; }

.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255, 253, 248, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.topbar-in { max-width: var(--maxw); margin: 0 auto; height: 62px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(140deg, var(--mint-tint), var(--sun-tint)); display: grid; place-items: center; }
.brand-mark svg { width: 21px; height: 21px; fill: var(--mint-deep); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; font-weight: 800; letter-spacing: -0.04em; white-space: nowrap; }
.brand-text small { font-size: 11px; color: var(--ink-mute); font-weight: 600; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { font-size: 13.5px; font-weight: 800; color: var(--ink-soft); text-decoration: none; padding: 8px 13px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--mint-tint); color: var(--mint-deep); }
.nav a.is-active { background: var(--mint); color: #fff; }

.wrap { max-width: 780px; margin: 0 auto; padding: 26px 20px 10px; }
.wrap--wide { max-width: var(--maxw); }

.crumbs { font-size: 13px; color: var(--ink-mute); margin-bottom: 18px; }
.crumbs a { color: var(--ink-mute); text-decoration: none; }
.crumbs a:hover { color: var(--mint-deep); }
.crumbs span { margin: 0 7px; opacity: .6; }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 900; color: var(--mint-deep); background: var(--mint-tint); padding: 6px 13px; border-radius: 999px; }
h1.title { font-size: clamp(27px, 4vw, 38px); font-weight: 900; margin: 16px 0 12px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--ink-mute); font-weight: 600; }
.meta b { color: var(--mint-deep); font-weight: 900; }

.hero-img { margin: 22px 0 8px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-m); border: 6px solid #fff; }
.hero-img img { width: 100%; }
figcaption { font-size: 12.5px; color: var(--ink-mute); margin-top: 8px; text-align: center; }

h2.sec { font-size: 23px; font-weight: 900; margin: 42px 0 14px; padding-left: 14px; border-left: 5px solid var(--mint); }
h3.sub { font-size: 17.5px; font-weight: 800; margin: 26px 0 8px; color: var(--mint-deep); }
.body p { margin: 0 0 14px; color: #2c3a32; }
.body ul, .body ol { margin: 0 0 16px; padding-left: 20px; }
.body li { margin-bottom: 8px; }
.body strong { font-weight: 800; }
.body em { font-style: normal; background: linear-gradient(transparent 62%, #ffe9ad 62%); padding: 0 1px; }

.callout { border-radius: 18px; padding: 18px 20px; margin: 22px 0; font-size: 15px; }
.callout p:last-child { margin-bottom: 0; }
.callout--sun { background: var(--sun-tint); border: 1px solid #f7e2ab; }
.callout--mint { background: var(--mint-tint); border: 1px solid #cdebdb; }
.callout--coral { background: var(--coral-tint); border: 1px solid #ffd8cc; }
.callout strong { color: var(--ink); }

table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 14.5px; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-s); }
caption { text-align: left; font-size: 12.5px; color: var(--ink-mute); padding-bottom: 6px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
th { background: var(--mint-tint); color: var(--mint-deep); font-weight: 900; font-size: 13.5px; }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-weight: 900; color: var(--mint-deep); white-space: nowrap; }

.checklist { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 9px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.checklist li::before { content: "✓"; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; background: var(--mint-tint); color: var(--mint-deep); font-weight: 900; font-size: 13px; display: grid; place-items: center; margin-top: 3px; }
.checklist b { font-weight: 800; }

.links-grid { display: grid; gap: 12px; margin: 18px 0 8px; }
.links-grid a { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; font-weight: 800; text-decoration: none; color: var(--ink); font-size: 15px; }
.links-grid a span { color: var(--mint); font-weight: 900; }
.links-grid a:hover { border-color: var(--mint); background: #fbfffc; }

.cta { margin: 40px 0 20px; background: linear-gradient(135deg, #1c7a4e, #2fa36b 55%, #4bb37f); color: #fff; border-radius: 26px; padding: 26px 24px; box-shadow: var(--shadow-m); }
.cta h2 { font-size: 22px; font-weight: 900; color: #fff; }
.cta p { color: #d9f3e3; font-size: 14.5px; margin: 8px 0 16px; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--mint-deep); font-weight: 900; padding: 13px 22px; border-radius: 999px; text-decoration: none; font-size: 15px; }
.cta-btn:hover { filter: brightness(.97); }

.video-frame { max-width: 330px; margin: 20px auto 6px; border-radius: 26px; overflow: hidden; border: 8px solid #1f2a24; box-shadow: var(--shadow-m); background: #000; }
.video-frame video { width: 100%; height: auto; }

.cards4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 8px; }
.cards4 figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-s); }
.cards4 img { width: 100%; height: auto; }
.cards4 figcaption { margin: 0; padding: 9px 12px; font-size: 12.5px; text-align: left; }

.disclaimer { font-size: 13px; color: var(--ink-mute); border-top: 1px dashed var(--line); margin-top: 26px; padding-top: 14px; }
.footer { margin-top: 44px; background: #fbf8f1; border-top: 1px solid var(--line); }
.footer-in { max-width: var(--maxw); margin: 0 auto; padding: 26px 20px 40px; display: grid; gap: 8px; font-size: 13px; color: var(--ink-mute); }
.footer-strong { font-size: 13.5px; font-weight: 900; color: var(--mint-deep); }

/* 허브(매거진 목록) */
.hub-hero { background: radial-gradient(120% 130% at 10% 0%, #eefaf2 0%, rgba(255,255,255,0) 55%), radial-gradient(110% 120% at 100% 10%, #fff6dd 0%, rgba(255,255,255,0) 60%), var(--surface); border: 1px solid var(--line-soft); border-radius: 30px; padding: 30px 28px; box-shadow: var(--shadow-m); }
.hub-hero h1 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 900; margin: 12px 0 10px; }
.hub-hero p { color: var(--ink-soft); font-size: 15.5px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 40px 0 14px; }
.section-head h2 { font-size: 22px; font-weight: 900; }
.section-head p { font-size: 13.5px; color: var(--ink-mute); }
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.article-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-s); transition: transform .16s, box-shadow .16s; }
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.article-card img { width: 100%; height: 176px; object-fit: cover; }
.article-body { padding: 16px 18px 20px; }
.article-body .tagline { font-size: 11.5px; font-weight: 900; color: var(--sky-deep); background: var(--sky-tint); padding: 4px 9px; border-radius: 7px; }
.article-body h3 { font-size: 17px; font-weight: 800; margin: 10px 0 6px; }
.article-body p { font-size: 13.5px; color: var(--ink-soft); }

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 20px 16px 8px; }
  .cards4 { grid-template-columns: 1fr; }
  .nav a { padding: 7px 10px; font-size: 12.5px; }
  .brand-text small { display: none; }
  table { font-size: 13.5px; }
  th, td { padding: 9px 10px; }
}

/* 2026-11-26 — 주 메뉴 이름표가 「댕댕이 동반 시설」로 길어져 430px 이하에서
   헤더가 화면을 넘던 문제(320px에서 78px) 해결: 브랜드 글자는 접고 마크만 남깁니다.
   링크 이름은 .brand의 aria-label로 남깁니다. */
@media (max-width: 429px) {
  .brand-text { display: none; }
  .nav { gap: 4px; }
  .nav a { padding: 7px 9px; font-size: 12.5px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   2026-11-27 · 사이트 공통 디자인 규격에 맞춘 헤더·메뉴
   · 폰(≤429px): 1행 브랜드 / 2행 메뉴 알약 2칸 — 본사이트 헤더와 같은 결
   · 메뉴 알약: 높이 36px · 글자 13px/900 · 활성은 잔디 그린
   ═══════════════════════════════════════════════════════════════════════ */
.nav a {
  min-height: 36px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 900;
  letter-spacing: -.02em; border: 1px solid transparent;
}
.nav a:not(.is-active) { border-color: var(--line); }
@media (max-width: 429px) {
  .topbar-in {
    flex-wrap: wrap; height: auto; align-items: center;
    padding: 9px 12px 10px; gap: 7px 8px;
  }
  .brand-text { display: flex; }
  .brand-text strong { font-size: 16px; font-weight: 900; letter-spacing: -.045em; }
  .brand-text small { display: none; }
  .nav { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .nav a { min-height: 38px; font-size: 13px; }
}

/* ── 🌙 다크 모드 — 본사이트와 같은 밤 산책 잔디 톤 ── */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #101b14;
    --surface: #16241c;
    --ink: #eaf3e6;
    --ink-soft: #b5c7b7;
    --ink-mute: #8ba394;
    --line: #2b3f33;
    --line-soft: #233429;
    --mint: #2e9463;
    --mint-deep: #86e0ac;
    --mint-tint: rgba(60, 178, 116, .20);
    --sun: #eeb02a;
    --sun-deep: #f5d089;
    --sun-tint: rgba(238, 176, 42, .16);
    --sky: #4aa6d8;
    --sky-deep: #9bd6f2;
    --sky-tint: rgba(74, 166, 216, .18);
    --coral: #ef7f60;
    --coral-deep: #ffab92;
    --coral-tint: rgba(239, 127, 96, .18);
    --shadow-s: 0 1px 2px rgba(0, 0, 0, .45), 0 6px 14px -8px rgba(0, 0, 0, .6);
    --shadow-m: 0 2px 6px rgba(0, 0, 0, .45), 0 22px 44px -26px rgba(0, 0, 0, .8);
  }
  .topbar { background: rgba(16, 27, 20, .97); }
  .nav a.is-active { background: #86e6ad; color: #082015; }
  .nav a:not(.is-active) { border-color: var(--line); color: #cfe0d4; }
  .nav a:not(.is-active):hover { background: rgba(60, 178, 116, .18); color: var(--mint-deep); }
  .hub-hero {
    background:
      radial-gradient(120% 130% at 10% 0%, rgba(64, 176, 112, .20) 0%, rgba(22, 36, 28, 0) 55%),
      radial-gradient(110% 120% at 100% 10%, rgba(238, 176, 42, .12) 0%, rgba(22, 36, 28, 0) 60%),
      var(--surface);
    border-color: var(--line);
  }
  .hero-img { border-color: #1d3025; }
  .body p { color: #d7e4d9; }
  .body em { background: linear-gradient(transparent 62%, rgba(246, 184, 31, .38) 62%); }
  .callout { border-color: var(--line); }
  .callout--sun { border-color: #6a5723; }
  .callout--mint { border-color: #2f5a41; }
  .callout--coral { border-color: #5c3a30; }
  .cards4 figure, .article-card { background: var(--surface); border-color: var(--line); }
  .links-grid a { background: var(--surface); border-color: var(--line); }
  .links-grid a:hover { background: rgba(60, 178, 116, .14); }
  .footer { background: #0d1712; border-top-color: var(--line); }
  .footer-strong { color: var(--ink); }
  .video-frame { border-color: #16241c; }
}

/* ── 2026-11-28 · 매거진 첫 화면 간결 정리 (기존 글·카드뉴스·숏폼 목록 삭제) ── */
.mslots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 18px 0 4px; }
.mslot {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 18px; box-shadow: var(--shadow-s);
}
.mslot-k { display: block; font-size: 12.5px; font-weight: 900; color: var(--mint-deep); margin-bottom: 4px; }
.mslot p { margin: 0; font-size: 14.5px; line-height: 1.65; letter-spacing: -.015em; word-break: keep-all; color: var(--ink-soft); }
@media (max-width: 520px) {
  .mslots { grid-template-columns: 1fr; }
  .mslot { padding: 14px 15px; }
  .mslot p { font-size: 14px; }
}
@media (prefers-color-scheme: dark) {
  .mslot { background: var(--surface); border-color: var(--line); }
  .mslot p { color: var(--ink-soft); }
}

/* 한글 단어 중간에서 줄이 끊기지 않게 (간결 화면 기준) */
.hub-hero p, .hub-hero h1, .mslot p, .disclaimer { word-break: keep-all; }

/* 2026-12-01 — 이번 호 한 줄(첫 화면은 담백하게, 목록·숫자 없이) */
.issue { display: grid; gap: 4px; margin: 20px 0 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: inherit; box-shadow: var(--shadow-s); }
.issue:hover { border-color: var(--mint); background: #fbfffc; }
.issue-k { font-size: 12px; font-weight: 900; color: var(--mint-deep); letter-spacing: -0.01em; }
.issue-t { font-size: 16.5px; font-weight: 800; line-height: 1.45; word-break: keep-all; }
.issue-s { font-size: 13.5px; color: var(--ink-soft); word-break: keep-all; }
