/* ============================================================
   군입대 준비물 안내 사이트 - 디자인 토큰 + 컴포넌트
   ------------------------------------------------------------
   설계 원칙 (수정 전 반드시 읽을 것)
   1. 독자는 40~60대 부모다. 대부분 스마트폰 + 네이버 검색으로 들어온다.
      → 본문 최소 17px, 터치 타깃 최소 44px, 애니메이션 최소화.
   2. 강조색(accent)은 딥 그린 하나뿐이다. 다른 색을 accent 로 쓰지 말 것.
      예외는 '반입금지' 경고색(--danger) 하나 - 이건 장식이 아니라 의미다.
   3. 라운드 규칙: 카드/섹션 14px, 버튼/입력 10px, 상태칩만 999px(pill).
   4. 페이지 테마는 하나다. 섹션별로 라이트/다크를 뒤집지 않는다.
   ============================================================ */

/* ---------- 1. 토큰 ---------- */
:root {
  /* 뉴트럴 - 쿨 그레이 계열로 통일 (웜/쿨 혼용 금지) */
  --bg:            #fbfbfa;
  --surface:       #ffffff;
  --surface-sunk:  #f2f3f2;
  --text:          #17191c;
  --text-muted:    #5a6068;
  --text-faint:    #838a90;
  --border:        #e2e5e2;
  --border-strong: #c9cec9;

  /* 강조색 - 딥 그린 (페이지 전체 단일 accent) */
  --accent:        #2e5a3d;
  --accent-hover:  #24482f;
  --accent-soft:   #e7efe9;
  --accent-line:   #b9cfc0;
  --on-accent:     #ffffff;

  /* 경고색 - '반입금지' 전용 의미색 */
  --danger:        #9d3527;
  --danger-soft:   #fbeceb;
  --danger-line:   #e8c5c0;

  /* 라운드 */
  --r-card: 14px;
  --r-ctrl: 10px;
  --r-pill: 999px;

  /* 레이아웃 */
  --page-max: 1120px;
  --read-max: 68ch;

  /* 그림자 - 배경 색조를 띤 톤 (순수 검정 금지) */
  --shadow-sm: 0 1px 2px rgba(23, 25, 28, .05);
  --shadow-md: 0 6px 24px -8px rgba(23, 25, 28, .14);

  /* z 스케일 - 임의값 남발 금지 */
  --z-nav: 40;
  --z-sheet: 60;

  color-scheme: light dark;
}

/* 다크 토큰. 선택자를 :root 가 아니라 :not([data-theme="light"]) 로 둔 이유는
   뷰어가 테마를 명시적으로 지정하는 환경(루트에 data-theme 을 찍는 호스트)에서도
   그 선택이 OS 설정을 이기게 하기 위해서다. 일반 웹에서는 항상 매칭되므로 동작이 같다. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #121413;
    --surface:       #1a1d1b;
    --surface-sunk:  #202422;
    --text:          #eceeec;
    --text-muted:    #a3aba5;
    --text-faint:    #848d87;
    --border:        #2b302d;
    --border-strong: #3d443f;

    --accent:        #82bb92;
    --accent-hover:  #9bcda8;
    --accent-soft:   #1e2c23;
    --accent-line:   #354a3c;
    --on-accent:     #102016;

    --danger:        #e2887a;
    --danger-soft:   #2b1c19;
    --danger-line:   #4a2d27;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 6px 24px -8px rgba(0, 0, 0, .6);
  }
}

/* ---------- 2. 리셋 + 타이포 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  /* 부모 세대 가독성: 기본 17px */
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  letter-spacing: -0.01em;
  word-break: keep-all;      /* 한국어 어절 단위 줄바꿈 */
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.28;
  letter-spacing: -0.028em;
  font-weight: 700;
}
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ---------- 3. 레이아웃 ---------- */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }

section { padding-block: clamp(48px, 7vw, 88px); }
.section-sunk { background: var(--surface-sunk); }

.section-head { margin-bottom: clamp(24px, 3.5vw, 40px); }
.section-head h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}
.section-head p {
  margin-top: 12px;
  max-width: var(--read-max);
  color: var(--text-muted);
  font-size: 1rem;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ---------- 4. 상단 내비 (데스크톱 1줄, 높이 <= 72px) ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.nav-inner {
  height: 66px;
  display: flex; align-items: center; gap: 28px;
}
.brand {
  font-weight: 700; font-size: 1.06rem; text-decoration: none;
  letter-spacing: -0.03em; white-space: nowrap;
}
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: .95rem; font-weight: 500;
  color: var(--text-muted); white-space: nowrap;
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--text); }
@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ---------- 5. 히어로 (비대칭 스플릿) ---------- */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(40px, 6vw, 80px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(1.85rem, 4.4vw, 2.8rem);
  line-height: 1.2;
}
.hero-sub {
  margin-top: 18px;
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--text-muted);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art {
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 6. 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--r-ctrl);
  border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  white-space: nowrap;                    /* CTA 라벨 2줄 줄바꿈 금지 */
  transition: background .18s ease, border-color .18s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text-muted); }

.btn-block { width: 100%; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .92rem; }

/* ---------- 7. 상태칩 (필수 / 권장 / 불필요 / 반입금지) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: var(--r-pill);
  padding: 3px 11px;
  font-size: .78rem; font-weight: 700;
  letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent;
}
.chip-must   { background: var(--accent);      color: var(--on-accent); }
.chip-nice   { background: var(--accent-soft); color: var(--accent);      border-color: var(--accent-line); }
.chip-skip   { background: var(--surface-sunk);color: var(--text-muted);  border-color: var(--border-strong); }
.chip-banned { background: var(--danger-soft); color: var(--danger);      border-color: var(--danger-line); }

/* ---------- 8. 준비물 리스트 (이 사이트의 본체) ---------- */
.filterbar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 22px;
}
.filterbar button {
  font: inherit; font-size: .92rem; font-weight: 600;
  min-height: 44px; padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-muted);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.filterbar button:hover { color: var(--text); }
.filterbar button[aria-pressed="true"] {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
}

.items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
@media (max-width: 560px) { .items { grid-template-columns: 1fr; } }

.item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.item-top { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.item h3 { font-size: 1.06rem; font-weight: 700; }
.item-why { color: var(--text-muted); font-size: .95rem; line-height: 1.65; }
.item-note {
  font-size: .88rem; color: var(--text-faint);
  border-top: 1px solid var(--border); padding-top: 10px; margin-top: 2px;
}
.item-link { margin-top: auto; padding-top: 4px; }

.empty {
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-card);
  padding: 40px 24px; text-align: center; color: var(--text-muted);
}

/* ---------- 9. 비교 블록 (보급 vs 자비구매) ---------- */
.split2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 760px) { .split2 { grid-template-columns: 1fr; } }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 24px;
}
.panel h3 { font-size: 1.12rem; margin-bottom: 6px; }
.panel > p { color: var(--text-muted); font-size: .95rem; margin-bottom: 16px; }
.panel li {
  padding: 9px 0;
  font-size: .97rem;
  display: flex; gap: 10px; align-items: baseline;
}
.panel li + li { border-top: 1px solid var(--border); }
.panel li b { font-weight: 700; }
.mark { flex: none; width: 1.1em; color: var(--accent); font-weight: 700; }
.mark-x { color: var(--danger); }

/* ---------- 10. 타임라인 (입영 D-day 준비표) ---------- */
.timeline { display: grid; gap: 0; max-width: var(--read-max); }
.tl-row {
  display: grid; grid-template-columns: 108px 1fr; gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.tl-row:last-child { border-bottom: 1px solid var(--border); }
@media (max-width: 560px) {
  .tl-row { grid-template-columns: 1fr; gap: 6px; }
}
.tl-when { font-weight: 700; color: var(--accent); font-size: .98rem; }
.tl-what h3 { font-size: 1.04rem; margin-bottom: 5px; }
.tl-what p { color: var(--text-muted); font-size: .95rem; }

/* ---------- 11. FAQ (아코디언) ---------- */
.faq { max-width: var(--read-max); }
.faq details {
  border-top: 1px solid var(--border);
}
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 40px 20px 0;
  font-weight: 700; font-size: 1.02rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--text-muted);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p {
  padding-bottom: 22px; color: var(--text-muted); font-size: .97rem;
}

/* ---------- 12. 제휴 고지 (공정위 표시의무) ---------- */
.disclosure {
  background: var(--surface-sunk);
  border: 1px solid var(--border);
  border-radius: var(--r-ctrl);
  padding: 14px 16px;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.disclosure strong { color: var(--text); font-weight: 700; }
.disclosure-top { margin-bottom: 24px; }

/* ---------- 13. 푸터 ---------- */
.foot {
  border-top: 1px solid var(--border);
  padding-block: 40px 56px;
  color: var(--text-muted);
  font-size: .92rem;
}
.foot-grid { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; }
.foot a { color: var(--text-muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- 14. 모션 (MOTION_INTENSITY 2 - 진입 페이드만) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: reveal .5s cubic-bezier(.16, 1, .3, 1) forwards;
  }
  @keyframes reveal { to { opacity: 1; transform: none; } }
}

/* ---------- 15. 입영 D-day 카드 (히어로 우측) ---------- */
.dday {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
  padding: 24px;
}
.dday label {
  display: block;
  font-weight: 700;
  font-size: .98rem;
  margin-bottom: 8px;
}
.dday-hint {
  font-size: .86rem;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.dday input[type="date"] {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  font: inherit;
  font-size: 1.02rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-ctrl);
}
.dday input[type="date"]:hover { border-color: var(--text-muted); }

.dday-out {
  margin-top: 18px;
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--text);
}
.dday-out strong { color: var(--accent); font-weight: 700; }
.dday-out-idle {
  font-size: .95rem;
  font-weight: 400;
  color: var(--text-muted);
}

.dday-todo {
  margin-top: 16px;
  padding: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-ctrl);
}
.dday-todo h3 { font-size: 1rem; margin-bottom: 6px; }
.dday-todo p { font-size: .93rem; color: var(--text-muted); line-height: 1.65; }

/* ---------- 16. 근거 표시 · 강조 안내 박스 ---------- */
.item-src {
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 2px;
}

/* 오해를 바로잡는 안내 박스. 페이지에 한두 개만 쓴다. */
.callout {
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-card);
  padding: 22px 24px;
}
.callout h3 { font-size: 1.12rem; margin-bottom: 8px; }
.callout p { color: var(--text-muted); font-size: .97rem; }
.callout p + p { margin-top: 10px; }
.callout strong { color: var(--text); font-weight: 700; }

/* 공식 안내와 인터넷 글이 어긋나는 지점을 나란히 보여주는 표 */
.gap-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: .97rem;
}
.gap-table th, .gap-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.gap-table th {
  font-weight: 700;
  font-size: .86rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-strong);
}
.gap-table td b { font-weight: 700; }
.gap-table .is-official { color: var(--accent); }
.gap-table-scroll { overflow-x: auto; }

/* ---------- 17. 판매 상품 카드 ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }

.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 사진 자리. 실제 사진이 들어오기 전에도 레이아웃이 흔들리지 않도록
   비율을 고정하고, 빈 칸이 아니라 '준비 중'으로 읽히게 한다. */
.product-shot {
  aspect-ratio: 4 / 3;
  background: var(--surface-sunk);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.product-shot img { width: 100%; height: 100%; object-fit: cover; }
.product-shot span {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-faint);
}

.product-body {
  padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.product-badge {
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  padding: 3px 11px;
  font-size: .78rem; font-weight: 700;
}
.product-body h3 { font-size: 1.14rem; }
.product-why { color: var(--text-muted); font-size: .95rem; line-height: 1.65; }

.product-parts {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.product-parts li {
  display: flex; gap: 9px; align-items: baseline;
  font-size: .95rem;
  padding: 4px 0;
}

.product-buy {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.product-price {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* 판매처가 아직 없을 때. 눌리는 것처럼 보이면 안 된다. */
.btn.is-disabled {
  opacity: .55;
  cursor: default;
  pointer-events: none;
}

/* ---------- 18. 낱개 상품 (가로 행) ----------
   세트와 같은 격자를 두 번 쓰면 페이지가 단조로워진다.
   낱개는 훑어보는 목록이므로 썸네일 + 설명의 가로 행이 맞다. */
.products-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 820px) { .products-compact { grid-template-columns: 1fr; } }

.products-compact .product {
  flex-direction: row;
  align-items: stretch;
}
.products-compact .product-shot {
  aspect-ratio: auto;
  width: 116px;
  flex: none;
  border-bottom: 0;
  border-right: 1px solid var(--border);
  text-align: center;
  padding: 8px;
}
.products-compact .product-shot span { font-size: .74rem; line-height: 1.4; }
.products-compact .product-body { padding: 16px 18px; gap: 8px; }
.products-compact .product-body h3 { font-size: 1.02rem; }
.products-compact .product-why { font-size: .92rem; }
.products-compact .product-badge { font-size: .74rem; padding: 2px 9px; }

@media (max-width: 420px) {
  .products-compact .product { flex-direction: column; }
  .products-compact .product-shot {
    width: 100%; aspect-ratio: 4 / 3;
    border-right: 0; border-bottom: 1px solid var(--border);
  }
}

/* ---------- 19. 판매 근거 3열 ---------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } }
.reasons > div {
  padding: 24px 24px 24px 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 761px) {
  .reasons > div + div { padding-left: 24px; border-left: 1px solid var(--border); }
}
.reasons h3 { font-size: 1.06rem; margin-bottom: 8px; }
.reasons p { color: var(--text-muted); font-size: .95rem; }

/* ---------- 20. 임시 상품 그림 ----------
   실제 사진이 준비되기 전까지 쓰는 선화. 사진이 들어오면 .is-art 가 사라진다. */
.product-shot.is-art {
  background:
    radial-gradient(circle at 50% 45%, var(--accent-soft), transparent 72%),
    var(--surface-sunk);
  color: var(--accent);
}
.product-art {
  width: 46%;
  max-width: 128px;
  height: auto;
  opacity: .8;
}
.products-compact .product-art { width: 62%; max-width: 60px; }

/* ---------- 21. 정보 카드 안의 상품 (체크리스트 -> 구매) ----------
   '이건 필요하구나'라고 판단한 그 자리에서 바로 살 수 있게 하는 줄.
   정보를 밀어내지 않도록 카드 맨 아래에 조용히 붙인다. */
.item-product {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.item-product-art {
  flex: none;
  width: 38px; height: 38px;
  border-radius: var(--r-ctrl);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.item-product-art .product-art { width: 24px; max-width: none; opacity: 1; }
.item-product-name {
  flex: 1 1 8rem;
  min-width: 0;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.item-product-name b { color: var(--text); font-weight: 700; }

/* 상품 카드의 배지 줄 (판정 + 판매 배지) */
.product-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center;
}
.product-tags .product-badge { align-self: auto; }

/* ---------- 22. 상품 일러스트 (art.js) ----------
   17~20절의 선화용 규칙을 덮어쓴다. 이제 그림이 사진 자리를 꽉 채운다. */
.product-shot.is-art {
  background: linear-gradient(160deg, var(--surface-sunk), var(--surface));
  padding: 6px;
}
.product-art {
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: 1;
}
.products-compact .product-art { width: 100%; max-width: none; }
.item-product-art .product-art { width: 100%; height: 100%; }
.item-product-art {
  background: var(--surface-sunk);
  border-color: var(--border);
  padding: 2px;
  width: 44px; height: 44px;
}

/* ---------- 23. 실물 사진 ---------- */
/* 체크리스트 카드 안의 작은 상품 썸네일도 사진을 받는다. */
.item-product-art { overflow: hidden; padding: 0; }
.item-product-art img { width: 100%; height: 100%; object-fit: cover; }

/* 정적 목록을 저장·필터 기능으로 보강합니다. */
[hidden] { display: none !important; }
.checklist-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.checklist-actions p { margin: 0 auto 0 0; }
.item label { display: flex; align-items: start; gap: 10px; cursor: pointer; }
.item input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px; accent-color: var(--accent); }
.item.is-checked { background: var(--accent-soft); border-color: var(--accent-line); }
.item-src a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
#dday-clear { margin-top: 10px; }
@media print {
  .nav, .hero-cta, .filterbar, .checklist-actions, #dday-clear, #faq, .info-footer, .analytics-consent { display: none !important; }
  .hero, section { padding: 16px 0 !important; }
  .hero-grid { display: block; }
  .hero h1 { font-size: 28px; }
  .item[hidden] { display: block !important; }
  .item, .dday { break-inside: avoid; border: 1px solid #888; box-shadow: none; }
  .items { display: block; }
  .item { margin-bottom: 12px; }
  #sources { display: none; }
}

.info-eyebrow { color: var(--accent); }
.info-footer { color: var(--text-muted); border-color: var(--border); }
.info-footer a, .info-footer button { color: var(--text-muted); }
@media (max-width: 860px) {
  .nav-inner { flex-wrap: wrap; gap: 8px; padding-block: 12px; }
  .nav-links { display: flex; flex-wrap: wrap; margin-left: 0; gap: 8px 16px; width: 100%; }
  .nav-links a { font-size: 14px; }
}
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-sunk: #fff; --text: #111; --text-muted: #333; --text-faint: #444; --accent: #234d35; --accent-soft: #fff; --border: #888; color-scheme: light; }
}
section[id] { scroll-margin-top: 88px; }
@media (max-width: 860px) { section[id] { scroll-margin-top: 116px; } }
