/* ─────────────────────────────────────────────────────────────
   불독새해(송년회·신년회·설날 준비 자료실) — 모바일 우선 스타일
   브랜드 이미지(brand-src/) 색: 진홍 #8c141b · 금색 #f3c04f · 크림 #fdf6e6 · 한복 남색 #1f3170 · 솔잎 초록 #2f6b4f
   변수 이름(--blue 등)은 불독기차와 같은 체계를 유지하고 값만 새해 색으로 바꿨습니다.
   ───────────────────────────────────────────────────────────── */
:root {
  --blue: #1f3170;      /* 링크·테두리 — 한복 남색 */
  --blue-dark: #8c141b; /* 헤더·강조 블록 — 브랜드 진홍 */
  --blue-soft: #fbecc8;
  --yellow: #f3c04f;    /* 금색 */
  --yellow-dark: #dfa632;
  --red: #c22a2a;
  --red-soft: #fdecea;
  --navy: #1f3170;
  --pine: #2f6b4f;
  --cream: #fdf6e6;
  --ink: #16202b;
  --ink-2: #45535f;
  --ink-3: #5a6672;
  --line: #ecdcbc;
  --bg: #ffffff;
  --bg-2: #fbf4e4;
  --warn: #b8531a;
  --warn-bg: #fff5ec;
  --danger: #b3261e;
  --danger-bg: #fdeeec;
  --ok: #146c43;
  --ok-bg: #eef7f1;
  --radius: 10px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg-2);
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 0; }
.muted { color: var(--ink-3); font-size: .92em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ── 헤더 ───────────────────────────────────────────────── */
.site-head {
  background: linear-gradient(180deg, #a01a22 0%, var(--blue-dark) 100%); border-bottom: 3px solid var(--yellow);
  position: sticky; top: 0; z-index: 50;
}
.head-inner { display: flex; align-items: center; gap: 12px; min-height: 58px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; padding: 6px 0; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--yellow); background: var(--cream); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 19px; letter-spacing: -.02em; color: var(--yellow); }
.brand-sub { font-size: 12px; color: #fbe3b5; font-weight: 600; }
.navtoggle {
  margin-left: auto; border: 1px solid rgba(255, 255, 255, .35); background: transparent; border-radius: 8px;
  padding: 6px 12px; font-size: 17px; cursor: pointer; color: #fff;
}
.gnb-wrap { flex-basis: 100%; display: none; }
.gnb-wrap.open { display: block; }
.gnb ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.gnb a {
  display: block; padding: 7px 12px; border-radius: 999px; font-size: 14.5px;
  font-weight: 600; color: #fff; background: rgba(255, 255, 255, .1);
}
.gnb a:hover { background: var(--blue-soft); color: var(--blue-dark); text-decoration: none; }
.gnb a[aria-current] { background: var(--yellow); color: var(--blue-dark); }

@media (min-width: 900px) {
  .navtoggle { display: none; }
  .gnb-wrap { display: block; flex-basis: auto; margin-left: auto; }
  .gnb ul { margin: 0; }
}

/* ── 레이아웃 ────────────────────────────────────────────── */
.layout { display: block; padding-top: 20px; padding-bottom: 40px; }
@media (min-width: 1000px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
}

.post {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px 30px;
}
@media (min-width: 700px) { .post { padding: 32px 36px 40px; } }

/* ── 브레드크럼 ──────────────────────────────────────────── */
.crumb ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 14px; padding: 0; font-size: 13px; color: var(--ink-3);
}
.crumb li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.crumb a { color: var(--ink-3); }

/* ── 제목 ───────────────────────────────────────────────── */
h1 {
  font-size: 27px; line-height: 1.35; letter-spacing: -.02em;
  margin: 0 0 12px; font-weight: 800;
}
@media (min-width: 700px) { h1 { font-size: 33px; } }
.lede { font-size: 17px; color: var(--ink-2); margin: 0 0 12px; }
.meta-line {
  font-size: 13px; color: var(--ink-3); margin: 0 0 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px;
}
.meta-dot { color: var(--line); }

/* 바이라인 — 글쓴이(편집책임자) 표기 */
.byline { display: inline-flex; align-items: center; gap: 6px; }
.byline-label {
  font-size: 11.5px; font-weight: 700; color: var(--ink-3);
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 6px; letter-spacing: .02em;
}
.byline-name { font-weight: 700; color: var(--ink-2); }
.byline-name:hover { color: var(--blue); }
.byline-role { color: var(--ink-3); }
.byline-role::before { content: "("; }
.byline-role::after { content: ")"; }

.post-body h2, .faq h2, .related h2 {
  font-size: 22px; line-height: 1.4; margin: 40px 0 14px; padding-top: 6px;
  font-weight: 800; letter-spacing: -.02em; scroll-margin-top: 76px;
}
.post-body h2::before {
  content: ""; display: block; width: 34px; height: 3px;
  background: var(--blue); margin-bottom: 12px; border-radius: 2px;
}
.post-body h3 {
  font-size: 18.5px; margin: 28px 0 10px; font-weight: 700; scroll-margin-top: 76px;
}
.post-body p { margin: 0 0 16px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 22px; }
.post-body li { margin-bottom: 8px; }
.post-body strong { font-weight: 700; }
.post-body em { font-style: normal; background: linear-gradient(transparent 60%, #ffe9a8 60%); }
.post-body p a, .post-body li a, .post-body td a, .faq-a a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ── 목차 ───────────────────────────────────────────────── */
.toc {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin: 0 0 26px;
}
.toc-title { margin: 0 0 8px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.toc ol { margin: 0; padding-left: 20px; font-size: 15px; }
.toc li { margin-bottom: 5px; }
.toc a { color: var(--ink-2); }

/* ── 3초 요약 ────────────────────────────────────────────── */
.keyfacts {
  background: var(--blue-soft); border: 1px solid #f2dc9a; border-left: 4px solid var(--blue);
  border-radius: var(--radius); padding: 16px 18px; margin: 0 0 24px;
}
.keyfacts-title {
  margin: 0 0 8px; font-weight: 800; font-size: 13px; color: var(--blue-dark);
  letter-spacing: .02em;
}
.keyfacts ul { margin: 0; padding-left: 18px; }
.keyfacts li { margin-bottom: 6px; font-size: 15.5px; }

/* ── 표 ─────────────────────────────────────────────────── */
.table-wrap { margin: 0 0 26px; }
.table-cap { font-weight: 700; font-size: 14.5px; margin-bottom: 8px; color: var(--ink-2); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-scroll:focus-visible { outline: 2px solid var(--blue); }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 15px; background: #fff; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-2); font-weight: 700; font-size: 14px; white-space: nowrap; }
tbody th { font-weight: 600; background: #fbfcfd; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.table-note { font-size: 13.5px; color: var(--ink-3); margin: 8px 0 0; }

/* ── 콜아웃 ─────────────────────────────────────────────── */
.callout {
  border-radius: var(--radius); padding: 14px 16px; margin: 0 0 24px;
  border: 1px solid var(--line); background: var(--bg-2);
}
.callout-title { margin: 0 0 6px; font-weight: 700; font-size: 15.5px; }
.callout-body p:last-child { margin-bottom: 0; }
.callout-body { font-size: 15.5px; }
.callout-warn { background: var(--warn-bg); border-color: #f2d5bb; }
.callout-warn .callout-title { color: var(--warn); }
.callout-danger { background: var(--danger-bg); border-color: #f2c7c4; }
.callout-danger .callout-title { color: var(--danger); }
.callout-tip { background: var(--ok-bg); border-color: #c9e3d4; }
.callout-tip .callout-title { color: var(--ok); }
.callout-info { background: var(--blue-soft); border-color: #f2dc9a; }
.callout-info .callout-title { color: var(--blue-dark); }
.callout-case { background: var(--bg); border-left: 4px solid var(--blue-dark); }
.callout-case .callout-title { color: var(--blue-dark); }

/* ── 단계 ───────────────────────────────────────────────── */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 24px; }
.steps li {
  position: relative; padding: 0 0 14px 34px; margin: 0 0 14px;
  border-bottom: 1px dashed var(--line);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 2px; width: 24px; height: 24px;
  background: var(--blue); color: #fff; border-radius: 50%;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.step-t { display: block; font-weight: 700; margin-bottom: 3px; }
.step-d { display: block; color: var(--ink-2); font-size: 15.5px; }

.bigsteps { counter-reset: bs; list-style: none; padding: 0; margin: 0 0 24px; }
.bigsteps li {
  counter-increment: bs; position: relative; padding: 12px 14px 12px 46px;
  background: var(--bg-2); border-radius: var(--radius); margin-bottom: 10px;
  font-size: 15.5px;
}
.bigsteps li::before {
  content: counter(bs); position: absolute; left: 14px; top: 12px;
  width: 22px; height: 22px; background: var(--blue); color: #fff;
  border-radius: 50%; font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li {
  position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15.5px;
}
.checklist li::before {
  content: "✔"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 700;
}

/* ── CTA ───────────────────────────────────────────────── */
.cta { margin: 0 0 26px; text-align: center; }
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--yellow); color: var(--blue-dark); font-weight: 800; font-size: 16.5px;
  padding: 14px 26px; border-radius: var(--radius); width: 100%;
  box-shadow: 0 2px 8px rgba(1, 38, 76, .22);
}
.cta-btn:hover { background: var(--yellow-dark); text-decoration: none; }
.cta-ghost {
  background: #fff; color: var(--blue-dark); border: 1.5px solid var(--blue);
  box-shadow: none; font-size: 15px; padding: 11px 18px;
}
.cta-ghost:hover { background: var(--blue-soft); }
.cta-app { display: grid; gap: 10px; }
@media (min-width: 560px) { .cta-app { grid-template-columns: 1fr 1fr; } }
.cta-sub { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }
.tel { font-weight: 700; white-space: nowrap; }

/* ── 링크 박스 ───────────────────────────────────────────── */
.linkbox {
  border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: 8px; padding: 12px 14px; margin: 0 0 14px; background: #fff;
}
.linkbox a { font-weight: 700; }
.linkbox a::after { content: " →"; }
.linkbox-note { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }

/* ── 카드 ───────────────────────────────────────────────── */
.cards { display: grid; gap: 12px; margin: 0 0 26px; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; background: #fff; color: var(--ink); transition: border-color .15s;
}
.card:hover { border-color: var(--blue); text-decoration: none; }
.card-tag {
  display: inline-block; font-size: 11px; font-weight: 800; color: var(--blue-dark);
  background: var(--blue-soft); padding: 2px 8px; border-radius: 999px; margin-bottom: 8px;
}
.card-title { display: block; font-weight: 700; font-size: 16.5px; margin-bottom: 4px; }
.card-desc { display: block; font-size: 14px; color: var(--ink-3); line-height: 1.6; }

/* ── 캘린더 ─────────────────────────────────────────────── */
.calendar { display: grid; gap: 10px; margin: 0 0 26px; }
@media (min-width: 620px) { .calendar { grid-template-columns: repeat(4, 1fr); } }
.cal-day {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
  background: #fff; font-size: 14px;
}
.cal-adv { background: #fbf7ff; border-color: #e4d8f2; }
.cal-day.is-today { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.cal-date { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.2; }
.cal-dow { font-size: 12px; color: var(--ink-3); margin-left: 4px; font-weight: 600; }
.cal-kind { margin: 2px 0 6px; font-size: 12px; font-weight: 700; color: var(--blue-dark); }
.cal-label { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* ── 예매일 배지 / 카운트다운 ────────────────────────────── */
.bookbadge {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--blue); color: #fff; border-radius: var(--radius);
  padding: 12px 16px; margin: 0 0 22px; font-size: 15.5px; font-weight: 600;
}
.bookbadge-d {
  background: rgba(255, 255, 255, .2); padding: 3px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 800; white-space: nowrap;
}
.bookbadge.is-today { background: var(--danger); }
.bookbadge.is-past { background: var(--ink-3); }

.countdown {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  text-align: center; margin: 0 0 26px; background: #fff;
}
.cd-label { margin: 0 0 4px; font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.cd-value { margin: 0; font-size: 26px; font-weight: 800; color: var(--blue-dark); letter-spacing: -.02em; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq { margin-top: 40px; }
.faq-item { border-top: 1px solid var(--line); padding: 18px 0 4px; }
.faq-item h3 {
  margin: 0 0 8px; font-size: 17px; font-weight: 700; padding-left: 26px; position: relative;
}
.faq-item h3::before {
  content: "Q"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 800;
}
.faq-a { font-size: 15.5px; color: var(--ink-2); padding-left: 26px; position: relative; }
.faq-a::before {
  content: "A"; position: absolute; left: 0; top: 0; color: var(--ink-3); font-weight: 800;
}
.faq-a p { margin: 0 0 12px; }

/* ── 관련글 ─────────────────────────────────────────────── */
.related { margin-top: 40px; }
.rel-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 620px) { .rel-list { grid-template-columns: 1fr 1fr; } }
.rel-list a {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; color: var(--ink); background: #fff;
}
.rel-list a:hover { border-color: var(--blue); text-decoration: none; }
.rel-list a:has(.rel-img) { display: grid; grid-template-columns: 96px 1fr; column-gap: 12px; align-items: start; }
.rel-list picture { display: contents; } /* WebP <picture> 래퍼 — img 가 그대로 grid 항목이 되도록 */
.rel-img { grid-row: span 2; width: 96px; height: 64px; object-fit: cover; object-position: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.rel-t { display: block; font-weight: 700; font-size: 15.5px; margin-bottom: 3px; }
.rel-d { display: block; font-size: 13px; color: var(--ink-3); }

.post-foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }
.disclaimer-inline { font-size: 13px; color: var(--ink-3); margin: 0; }

/* ── 사이드바 ───────────────────────────────────────────── */
.side { margin-top: 20px; display: grid; gap: 14px; }
@media (min-width: 1000px) { .side { margin-top: 0; position: sticky; top: 78px; } }
.side-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.side-title {
  margin: 0 0 10px; font-size: 13px; font-weight: 800; color: var(--ink-3);
  letter-spacing: .03em;
}
.side-cta { background: var(--blue-soft); border-color: #f2dc9a; }
.side-note { font-size: 12px; color: var(--ink-3); margin: 8px 0 0; text-align: center; }
.side-list { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.side-list li { padding: 7px 0; border-top: 1px solid var(--line); }
.side-list li:first-child { border-top: 0; }
.today-box { font-size: 14.5px; color: var(--ink-2); }
.today-load { margin: 0; color: var(--ink-3); font-size: 13.5px; }
.today-date { font-weight: 800; color: var(--blue-dark); font-size: 16px; margin: 0 0 4px; }
.today-label { margin: 0 0 4px; }
.today-next { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }

/* ── 사이트맵 페이지 ─────────────────────────────────────── */
.sitemap-list { list-style: none; padding: 0; margin: 0 0 24px; }
.sitemap-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.sitemap-list a { font-weight: 600; }
.sitemap-desc { display: block; font-size: 13px; color: var(--ink-3); }
.topic-back { margin-top: 24px; font-size: 14.5px; }

/* ── 푸터 ───────────────────────────────────────────────── */
.site-foot {
  background: #fff; border-top: 1px solid var(--line); padding: 28px 0 40px;
  font-size: 13.5px; color: var(--ink-3);
}
.foot-nav, .foot-sub { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
.foot-nav a { color: var(--ink-2); font-weight: 600; }
.foot-sub a { color: var(--ink-3); }
.disclaimer {
  background: var(--bg-2); border-radius: var(--radius); padding: 14px 16px;
  line-height: 1.7; margin: 0 0 12px;
}
.disclaimer strong { color: var(--ink-2); }
.copy { margin: 0; font-size: 12.5px; }

/* ── 발행 정보(운영자) ───────────────────────────────────── */
.publisher {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin: 0 0 12px; background: #fff;
}
.pub-title {
  margin: 0 0 10px; font-size: 12.5px; font-weight: 800;
  color: var(--ink-2); letter-spacing: .03em;
}
.pub-list { margin: 0; display: grid; gap: 6px 24px; }
@media (min-width: 640px) { .pub-list { grid-template-columns: 1fr 1fr; } }
.pub-row { display: flex; gap: 10px; align-items: baseline; }
.pub-row dt {
  flex: 0 0 88px; font-size: 12.5px; font-weight: 700; color: var(--ink-3);
}
.pub-row dd { margin: 0; font-size: 13px; color: var(--ink-2); word-break: break-all; }
.pub-note {
  margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.65;
}

@media print {
  .site-head, .side, .cta, .site-foot, .toc { display: none; }
  .post { border: 0; padding: 0; }
}

/* ── 대표 사진(우리나라 기차·역 실사) · 홈 배너 · 푸터 로고 ───── */
.hero-photo { margin: 0 0 22px; }
.hero-photo picture { display: block; }
.hero-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); background: var(--bg-2);
}
.hero-photo figcaption { margin-top: 6px; font-size: 12px; color: var(--ink-3); text-align: right; }
.hero-photo figcaption a { color: var(--ink-3); text-decoration: underline; }
.hero-brand { margin: 0 0 22px; background: var(--cream); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.hero-brand img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.foot-brand {
  display: flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-weight: 800; font-size: 16px; color: var(--blue-dark);
}
.foot-brand img { border-radius: 50%; }

/* 홈 화면에 추가 — 푸터 버튼 + 모바일 하단 안내(닫으면 30일 숨김) */
.foot-a2hs { margin: 0 0 14px; }
.a2hs-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
  border: 0; border-radius: 999px; background: var(--yellow); color: var(--blue-dark);
  font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
}
.a2hs-btn[hidden] { display: none; }
.a2hs-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; align-items: center; gap: 10px; max-width: 480px; margin: 0 auto; padding: 10px 10px 10px 12px;
  background: var(--blue-dark); color: #fff; border-radius: 14px; box-shadow: 0 6px 24px rgba(140, 20, 27, .3);
}
.a2hs-bar img { flex: none; border-radius: 8px; }
.a2hs-bar p { flex: 1; margin: 0; font-size: 13px; line-height: 1.4; }
.a2hs-bar strong { color: var(--yellow); }
.a2hs-bar .a2hs-btn { flex: none; padding: 8px 12px; font-size: 13px; }
.a2hs-x { flex: none; width: 32px; height: 32px; border: 0; background: none; color: #fff; font-size: 20px; cursor: pointer; }
.a2hs-tip {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .45); padding: 16px;
}
.a2hs-tip > div {
  width: 100%; max-width: 420px; padding: 20px; background: #fff; color: var(--ink); border-radius: 16px;
}
.a2hs-tip h2 { margin: 0 0 10px; font-size: 17px; }
.a2hs-tip ol { margin: 0 0 14px; padding-left: 20px; font-size: 15px; line-height: 1.7; }
@media (min-width: 900px) { .a2hs-bar { display: none; } }
@media print { .a2hs-bar, .foot-a2hs { display: none; } }

/* ─────────────────────────────────────────────────────────────
   인포그래픽 figure
   ───────────────────────────────────────────────────────────── */
.figure { margin: 0 0 26px; }
.figure img {
  display: block; width: 100%; height: auto; max-width: 640px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.figure figcaption {
  margin-top: 8px; font-size: 13px; color: var(--ink-3); text-align: center;
}

/* ─────────────────────────────────────────────────────────────
   모바일 보완
   ───────────────────────────────────────────────────────────── */

/* 표: 열 수에 맞춰 최소 폭을 정해 불필요한 가로 스크롤을 없앰 */
.table-scroll { -webkit-overflow-scrolling: touch; position: relative; }
table { min-width: 0; }
.cols-3 table { min-width: 380px; }
.cols-4 table { min-width: 500px; }
.cols-5 table { min-width: 620px; }

/* 스크롤 가능한 표에 가장자리 그림자로 스크롤 여지를 알림 */
.table-scroll.is-scrollable {
  background:
    linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left / 28px 100% no-repeat,
    linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right / 28px 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, rgba(22,32,43,.14), transparent) left / 12px 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, rgba(22,32,43,.14), transparent) right / 12px 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}
.table-scroll.is-scrollable::after {
  content: "좌우로 밀어서 보기";
  position: absolute; right: 8px; bottom: 6px;
  font-size: 11px; color: var(--ink-3); background: rgba(255,255,255,.92);
  padding: 2px 8px; border-radius: 999px; pointer-events: none;
}
@media (min-width: 700px) { .table-scroll.is-scrollable::after { display: none; } }

/* 터치 타깃 최소 크기 확보 */
.gnb a { min-height: 40px; display: flex; align-items: center; }
.side-list li a { display: block; padding: 4px 0; }
.crumb a, .foot-sub a, .foot-nav a { display: inline-block; padding: 4px 0; }
.navtoggle { min-width: 44px; min-height: 40px; }

/* 아주 좁은 화면(360px 이하) 대응 */
@media (max-width: 380px) {
  body { font-size: 16px; }
  .post { padding: 18px 14px 26px; }
  h1 { font-size: 24px; }
  .post-body h2 { font-size: 20px; }
  .cd-value { font-size: 22px; }
  .cal-date { font-size: 20px; }
  .keyfacts, .callout, .toc { padding: 13px 14px; }
  .cta-btn { font-size: 15.5px; padding: 13px 18px; }
  .bookbadge { font-size: 14.5px; padding: 11px 13px; }
}

/* 긴 단어·URL이 레이아웃을 밀지 않도록 */
.post-body a, .rel-t, .card-title, .sitemap-list a { overflow-wrap: anywhere; }

/* iOS 사파리에서 sticky 헤더 위로 앵커가 가려지지 않도록 */
.faq-item h3, .figure, .table-wrap { scroll-margin-top: 76px; }

/* ═════════════════════════════════════════════════════════════
   불독새해 추가 구성요소
   ═════════════════════════════════════════════════════════════ */

/* 본문 18px 기준 보정 */
.lede { font-size: 18px; }
.post-body li { font-size: inherit; }
.cta-btn { min-height: 52px; }
.side-list li a, .rel-list a { min-height: 44px; }

/* 상단 행동 버튼 — 첫 화면 안 */
.cta-top { margin: 0 0 22px; }
.cta-multi { display: grid; gap: 10px; }
@media (min-width: 560px) { .cta-multi { grid-template-columns: 1fr 1fr; } }
.cta-multi .cta-sub { grid-column: 1 / -1; }

/* 제휴 고지 */
.disclosure {
  font-size: 13px; color: var(--ink-3); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; margin: 0 0 14px;
}

/* 대표 이미지 */
.hero-photo img { aspect-ratio: 1200 / 630; }

/* ── 복사 문구 상자 ─────────────────────────────────────── */
.copybox { margin: 0 0 26px; }
.copybox-title { font-weight: 800; font-size: 15px; color: var(--blue-dark); margin: 0 0 10px; }
.copy-list { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 10px; }
.copy-item {
  position: relative; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--yellow);
  border-radius: var(--radius); padding: 14px 16px 14px; margin: 0 !important;
}
.copy-label { margin: 0 0 6px !important; font-size: 13.5px; font-weight: 800; color: var(--red); }
.copy-text p { margin: 0 0 8px !important; font-size: 17px; line-height: 1.7; }
.copy-text p:last-child { margin-bottom: 0 !important; }
.copy-btn {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 10px;
  min-height: 44px; min-width: 88px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--blue); background: #fff; color: var(--blue-dark);
  font: inherit; font-size: 15px; font-weight: 800;
}
.copy-btn:hover { background: var(--blue-soft); }
.copy-btn.is-done { background: var(--ok); border-color: var(--ok); color: #fff; }

/* ── 다운로드 버튼 ──────────────────────────────────────── */
.dlbox {
  background: var(--cream); border: 1px solid #f2dc9a; border-radius: var(--radius);
  padding: 16px; margin: 0 0 26px;
}
.dlbox-title { margin: 0 0 10px; font-weight: 800; font-size: 15px; color: var(--blue-dark); }
.dl-list { list-style: none; margin: 0 0 16px; padding: 0 !important; display: grid; gap: 10px; }
.dl-list li { margin: 0 !important; }
.dl-grid { grid-template-columns: 1fr; }
@media (min-width: 620px) { .dl-grid { grid-template-columns: 1fr 1fr; } }
.dl-btn {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: center;
  background: #fff; border: 1.5px solid var(--blue); border-radius: var(--radius);
  padding: 12px 14px; color: var(--ink); min-height: 56px;
}
.dl-btn:hover { background: var(--blue-soft); text-decoration: none; }
.dl-fmt {
  grid-row: span 3; align-self: start; font-size: 12px; font-weight: 800; color: #fff; background: var(--blue-dark);
  border-radius: 6px; padding: 4px 8px; white-space: nowrap;
}
.dl-name { font-weight: 800; font-size: 16.5px; }
.dl-desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.dl-go { font-size: 13.5px; font-weight: 800; color: var(--red); }
.dl-guide { display: inline-block; font-size: 13.5px; margin: 6px 0 0 4px; }
.dl-note { font-size: 13px; color: var(--ink-3); margin: 0 !important; }
.dlbox .dl-list { margin-bottom: 10px; }

/* 체크리스트 제목 */
.checklist-title { font-weight: 800; font-size: 15px; margin: 0 0 8px !important; color: var(--blue-dark); }

/* ── 광고 자리(높이 미리 확보 → CLS 방지) ───────────────── */
.ad { margin: 30px 0; text-align: center; min-height: 300px; }
.ad-mid { min-height: 260px; }
.ad-end { min-height: 320px; }
.ad-label { font-size: 11px; color: var(--ink-3); margin: 0 0 4px !important; letter-spacing: .05em; }

/* ── 출처·작성자 ────────────────────────────────────────── */
.sources { margin-top: 36px; }
.sources h2 { font-size: 19px; margin: 0 0 10px; font-weight: 800; }
.sources ul { padding-left: 20px; margin: 0 0 10px; font-size: 15.5px; }
.sources li { margin-bottom: 6px; }
.sources-note { font-size: 13.5px; color: var(--ink-3); margin: 0; }
.author-box {
  margin-top: 28px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; font-size: 15px;
}
.author-name { margin: 0 0 4px; font-weight: 700; }
.author-desc { margin: 0 0 6px; color: var(--ink-2); font-size: 14.5px; }
.changelog summary { cursor: pointer; font-size: 13.5px; color: var(--ink-3); }
.changelog ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }

/* ── 홈 ─────────────────────────────────────────────────── */
.countdown-home { background: var(--blue-dark); border-color: var(--blue-dark); padding: 20px 16px; }
.countdown-home .cd-label { color: #dfe6f0; font-size: 15px; }
.countdown-home .cd-value { color: var(--yellow); font-size: 40px; }
.cd-sub { margin: 4px 0 0; font-size: 14px; color: #dfe6f0; }
.countdown-side { border: 0; padding: 0; margin: 0; background: transparent; }
.countdown-side .cd-value { font-size: 30px; color: var(--red); }
.countdown-side .cd-label { margin: 2px 0 0; }
.todo h2, .home-sec h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 34px 0 14px;
}
.home-sec h2 a { color: var(--ink); }
.todo .bigsteps a { font-weight: 800; }
.more { text-align: right; font-size: 15px; margin: 10px 0 0; font-weight: 700; }

/* ── 허브(카테고리) 목록 ────────────────────────────────── */
.hub-list { list-style: none; padding: 0 !important; margin: 0 0 26px; display: grid; gap: 10px; }
.hub-list li { margin: 0 !important; }
.hub-list a {
  display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; row-gap: 2px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--ink); background: #fff;
}
.hub-list a:hover { border-color: var(--blue); text-decoration: none; }
.hub-n {
  grid-row: span 3; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-dark); color: var(--yellow);
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.hub-t { font-weight: 800; font-size: 17px; line-height: 1.45; }
.hub-d { font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.hub-tag {
  justify-self: start; font-size: 11.5px; font-weight: 800; color: var(--red); background: var(--red-soft);
  border-radius: 999px; padding: 1px 8px; margin-top: 4px;
}
.soon-list { list-style: none; padding: 0 !important; }
.soon-list li { border-bottom: 1px dashed var(--line); padding: 8px 0; margin: 0 !important; color: var(--ink-2); font-size: 16px; }
.soon-date { display: inline-block; min-width: 92px; font-size: 13px; font-weight: 800; color: var(--blue); }
.empty { color: var(--ink-3); }

/* 새해 포인트: 헤더 아래 띠 */
.site-head { border-bottom-color: var(--yellow); box-shadow: 0 2px 0 var(--blue-dark), 0 4px 14px rgba(140, 20, 27, .18); }

@media print {
  .ad, .copy-btn, .related, .author-box .changelog { display: none; }
}
.side-cat li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-cat li a { flex: 1; }
