/* ===========================================================
   찍먹써먹 — Apple 스타일 스킨 (구조 무수정 / CSS 전용)
   대상 클래스: 테마 jjikmeok 0.2.9 의 실제 마크업
   (.site-header .brand .main-nav .header-action .hero .eyebrow
    .hero-copy .search-box .trust-list .guide-section .section-heading
    .guide-rail .content-card .content-card-media .featured .decision-card
    .site-footer .footer-nav .disclosure + 본문 .entry-content)
   =========================================================== */

:root {
  /* 색 — 테마의 기존 토큰을 그대로 계승 */
  --jm-canvas: #f3f4f6;   /* 지면 */
  --jm-card: #ffffff;     /* 카드 면 */
  --jm-ink: #16181c;      /* 본문 */
  --jm-ink-2: #3c4048;    /* 부제 */
  --jm-muted: #686d76;    /* 보조 */
  --jm-accent: #1769e0;   /* 링크·CTA */
  --jm-accent-dark: #1256b8;
  --jm-accent-tint: #eef4fd;
  --jm-line: #e3e5ea;
  --jm-dark: #0f1115;     /* 반전 섹션 */

  /* 타이포 */
  --jm-font: -apple-system, BlinkMacSystemFont, "Pretendard Variable", Pretendard,
             "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;

  /* 형태 */
  --jm-r-sm: 12px;
  --jm-r-md: 18px;
  --jm-r-lg: 28px;
  --jm-pill: 980px;
  --jm-shadow: 0 1px 2px rgba(15, 17, 21, .04), 0 8px 24px rgba(15, 17, 21, .06);
  --jm-shadow-hover: 0 2px 6px rgba(15, 17, 21, .06), 0 18px 40px rgba(15, 17, 21, .12);

  --jm-max: 1080px;
  --jm-ease: cubic-bezier(.28, .11, .32, 1);
}

html { scroll-behavior: smooth; }

/* 크기 계산은 테두리 기준으로 — min-height 48px 히트타깃이 패딩만큼 커지지 않도록 */
.site-header, .site-header *,
main, main *,
.site-footer, .site-footer *,
.entry-content, .entry-content *,
.search-box, .search-box *,
.content-card, .content-card *,
.decision-card, .decision-card * { box-sizing: border-box; }

body {
  margin: 0;
  background: linear-gradient(180deg, #f7f8fa 0%, #f3f4f6 42%, #eceef2 100%);
  background-attachment: fixed;
  color: var(--jm-ink);
  font-family: var(--jm-font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  text-wrap: pretty;
}

/* ---------- 헤더 : 얇고, 반투명하게 떠 있고, 흐려진다 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 44px;
  padding: 0 20px;
  background: rgba(243, 244, 246, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(22, 24, 28, .08);
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--jm-ink);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--jm-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.main-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.main-nav a {
  padding: 5px 11px;
  border-radius: var(--jm-pill);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--jm-ink-2);
  text-decoration: none;
  transition: color .2s var(--jm-ease), background .2s var(--jm-ease);
}
.main-nav a:hover { color: var(--jm-ink); background: rgba(22, 24, 28, .06); }
.header-action {
  padding: 6px 15px;
  border-radius: var(--jm-pill);
  background: var(--jm-accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s var(--jm-ease), transform .2s var(--jm-ease);
}
.header-action:hover { background: var(--jm-accent-dark); }
.header-action:active { transform: scale(.97); }

/* ---------- 히어로 : 큰 글자, 좁은 폭, 가운데 ---------- */
main { display: block; }
.hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 22px 48px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--jm-accent);
}
.eyebrow.light { color: #7fb0ff; }
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5.2vw, 54px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.hero-copy {
  max-width: 32em;
  margin: 0 auto 26px;
  font-size: clamp(16.5px, 1.8vw, 19px);
  line-height: 1.5;
  color: var(--jm-ink-2);
  letter-spacing: -0.015em;
}

/* 검색 : 알약 하나로 합친다 */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto;
  padding: 6px 6px 6px 20px;
  background: var(--jm-card);
  border: 1px solid var(--jm-line);
  border-radius: var(--jm-pill);
  box-shadow: var(--jm-shadow);
  transition: box-shadow .25s var(--jm-ease), border-color .25s var(--jm-ease);
}
.search-box:focus-within { border-color: #b9d1f7; box-shadow: 0 0 0 4px rgba(23, 105, 224, .16); }
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--jm-ink);
}
.search-box input::placeholder { color: #9aa0a8; }
.search-box button {
  flex: none;
  border: 0;
  padding: 11px 22px;
  border-radius: var(--jm-pill);
  background: var(--jm-accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s var(--jm-ease), transform .15s var(--jm-ease);
}
.search-box button:hover { background: var(--jm-accent-dark); }
.search-box button:active { transform: scale(.97); }

/* 주제 탐색 : 실제 WordPress 카테고리 링크만 노출 */
.topic-nav { width: 100%; margin: 18px auto 0; }
.topic-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topic-chip {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid var(--jm-line);
  border-radius: var(--jm-pill);
  background: rgba(255, 255, 255, .75);
  color: var(--jm-ink-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s var(--jm-ease), background .2s var(--jm-ease), border-color .2s var(--jm-ease);
}
.topic-chip:hover { border-color: #b9d1f7; color: var(--jm-accent); background: #fff; }
.topic-chip[aria-current="page"] { border-color: var(--jm-accent); background: var(--jm-accent); color: #fff; }

/* 신뢰 배지 : 점으로 구분된 한 줄 */
.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--jm-muted);
}
.trust-list li { position: relative; }
.trust-list li + li::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #c4c8cf;
}

/* ---------- 섹션 ---------- */
.guide-section { max-width: var(--jm-max); margin: 0 auto; padding: 40px 22px 24px; }
/* 섹션 머리 : 왼쪽 정렬 + 얇은 구분선 */
.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(22, 24, 28, .1);
  text-align: left;
}
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading h2,
.featured h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
}
.featured h2 { text-align: center; }
/* 선택: 섹션 머리 오른쪽 '전체 보기' 링크를 넣을 경우 */
.section-more {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--jm-accent);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .3s var(--jm-ease);
  display: inline-block;
}
.section-more:hover { transform: translateX(3px); }

/* ---------- 메인 카드 그리드 : 카드 정본은 전체 구매가이드 .content-card ---------- */
.guide-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* ---------- 반전 섹션 (조사 원칙) ---------- */
.featured {
  max-width: var(--jm-max);
  margin: 56px auto;
  padding: 72px 48px;
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(23, 105, 224, .16) 0%, rgba(23, 105, 224, 0) 58%),
    linear-gradient(165deg, #23272f 0%, #14171c 46%, #0d0f13 100%);
  color: #f5f6f8;
  border-radius: var(--jm-r-lg);
  text-align: center;
}
.featured h2 { color: #fff; margin-bottom: 12px; }
.featured p { color: #a7adb6; font-size: 17px; margin: 0 auto; max-width: 40em; }
.decision-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
  text-align: left;
}
.decision-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: var(--jm-r-md);
  background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .045));
  border: 1px solid rgba(255, 255, 255, .1);
}
.decision-card span { font-size: 13px; font-weight: 600; color: #7fb0ff; letter-spacing: 0; }
.decision-card strong { font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; color: #fff; }

/* ---------- 본문 (개별 가이드 글) ---------- */
.entry-content, .article-body, .post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 22px 80px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--jm-ink);
}
.entry-title {
  max-width: 800px;
  margin: 72px auto 20px;
  padding: 0 22px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.032em;
  text-align: center;
}
.entry-meta, .post-meta {
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 0 22px;
  font-size: 14px;
  color: var(--jm-muted);
  text-align: center;
}
.entry-content > p:first-of-type { font-size: 21px; line-height: 1.6; color: var(--jm-ink-2); letter-spacing: -0.018em; }
.entry-content h2 {
  margin: 64px 0 16px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.028em;
}
.entry-content h3 {
  margin: 40px 0 12px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.022em;
}
.entry-content h4 { margin: 28px 0 8px; font-size: 15px; font-weight: 600; color: var(--jm-muted); }
.entry-content p { margin: 0 0 20px; }
.entry-content strong { font-weight: 600; }
.entry-content ul, .entry-content ol { margin: 0 0 24px; padding-left: 1.2em; }
.entry-content li { margin-bottom: 8px; }
.entry-content li::marker { color: var(--jm-muted); }
.entry-content a {
  color: var(--jm-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 105, 224, .3);
  transition: border-color .2s var(--jm-ease);
}
.entry-content a:hover { border-bottom-color: var(--jm-accent); }
:focus-visible { outline: 3px solid rgba(23, 105, 224, .45); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(23, 105, 224, .16); }

/* 표 : 카드 안에 얹고, 세로선은 없앤다 */
.entry-content figure.wp-block-table,
.entry-content .wp-block-table { margin: 0 0 32px; overflow-x: auto; }
.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--jm-card);
  border-radius: var(--jm-r-md);
  box-shadow: var(--jm-shadow);
  overflow: hidden;
  font-size: 15.5px;
  font-variant-numeric: tabular-nums;
}
.entry-content table th {
  background: #f7f8fa;
  color: var(--jm-muted);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--jm-line);
  white-space: nowrap;
}
.entry-content table td {
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--jm-line);
  vertical-align: top;
}
.entry-content table tbody tr:last-child td { border-bottom: 0; }
.entry-content table tbody tr:hover td { background: #fafbfc; }
.entry-content table td:first-child { font-weight: 600; }

/* 이미지 : 큰 라운드, 그림자 없음 */
.entry-content figure { margin: 0 0 32px; }
.entry-content img { display: block; width: 100%; height: auto; border-radius: var(--jm-r-md); }
.entry-content figcaption { margin-top: 10px; font-size: 13.5px; color: var(--jm-muted); text-align: center; }

/* 구매 버튼 / CTA */
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 32px; }
.entry-content .btn,
.entry-content .wp-element-button,
.entry-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: var(--jm-pill);
  background: var(--jm-accent);
  color: #fff !important;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background .2s var(--jm-ease), transform .15s var(--jm-ease);
}
.entry-content .btn:hover,
.entry-content .wp-block-button__link:hover { background: var(--jm-accent-dark); }
.entry-content .btn:active,
.entry-content .wp-block-button__link:active { transform: scale(.97); }
.entry-content .is-style-outline .wp-block-button__link,
.entry-content .btn-secondary {
  background: transparent;
  color: var(--jm-accent) !important;
  border: 1px solid rgba(23, 105, 224, .4);
}
.entry-content .is-style-outline .wp-block-button__link:hover,
.entry-content .btn-secondary:hover { background: var(--jm-accent-tint); }

/* 안전·주의 박스 (blockquote 재활용) */
.entry-content blockquote {
  margin: 0 0 32px;
  padding: 24px 28px;
  background: linear-gradient(160deg, #f4f8fe 0%, #e9f1fc 100%);
  border: 0;
  border-radius: var(--jm-r-md);
  color: #10315f;
  font-size: 16.5px;
  line-height: 1.65;
}
.entry-content blockquote::before {
  content: "확인하세요";
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--jm-accent);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote.jm-note {
  background: #fff;
  box-shadow: var(--jm-shadow);
  color: var(--jm-ink-2);
}
.entry-content blockquote.jm-note::before { content: "참고"; color: var(--jm-muted); }

/* 목차 (플러그인 공통) */
#toc_container, .ez-toc-container, .lwptoc {
  background: var(--jm-card) !important;
  border: 0 !important;
  border-radius: var(--jm-r-md) !important;
  box-shadow: var(--jm-shadow) !important;
  padding: 24px 28px !important;
  margin: 0 0 40px !important;
  width: 100% !important;
  font-size: 15.5px;
}
#toc_container .toc_title, .ez-toc-title, .lwptoc_title {
  margin: 0 0 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--jm-muted) !important;
  text-align: left !important;
  letter-spacing: 0 !important;
}
#toc_container ul, .ez-toc-list, .lwptoc_itemWrap { list-style: none; padding-left: 0; margin: 0; }
#toc_container ul li, .ez-toc-list li, .lwptoc_item { padding: 7px 0; border-top: 1px solid var(--jm-line); }
#toc_container ul li:first-child, .ez-toc-list li:first-child { border-top: 0; }
#toc_container a, .ez-toc-link, .lwptoc_item a {
  color: var(--jm-ink) !important;
  border-bottom: 0 !important;
  text-decoration: none !important;
}
#toc_container a:hover, .ez-toc-link:hover { color: var(--jm-accent) !important; }

/* ---------- 푸터 ---------- */
.site-footer {
  margin-top: 24px;
  padding: 48px 22px 56px;
  background: linear-gradient(180deg, #eef0f3 0%, #e7e9ed 100%);
  border-top: 1px solid var(--jm-line);
  text-align: center;
  font-size: 14px;
  color: var(--jm-muted);
}
.site-footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--jm-ink);
  margin-bottom: 10px;
}
.site-footer p { margin: 0 0 8px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 20px 0 16px; }
.footer-nav a { color: var(--jm-ink-2); font-size: 13.5px; text-decoration: none; }
.footer-nav a:hover { color: var(--jm-accent); text-decoration: underline; text-underline-offset: 3px; }
.disclosure { font-size: 13px; color: var(--jm-muted); max-width: 46em; margin: 0 auto; }

/* ---------- 모바일 ---------- */
@media (max-width: 768px) {
  .site-header { gap: 14px; padding: 0 16px; overflow-x: auto; }
  .main-nav { gap: 0; }
  .main-nav a { padding: 6px 9px; font-size: 13px; white-space: nowrap; }
  .hero { padding: 64px 18px 48px; }
  .search-box { flex-wrap: wrap; border-radius: var(--jm-r-md); padding: 12px; gap: 10px; }
  .search-box input { width: 100%; flex: 1 0 100%; padding: 4px 6px; }
  .search-box button { width: 100%; min-height: 50px; }
  .guide-section { padding: 48px 18px 8px; }
  .guide-rail { grid-template-columns: 1fr; gap: 16px; }
  .featured { margin: 40px 18px; padding: 48px 24px; border-radius: var(--jm-r-md); }
  .entry-content { font-size: 17px; }
  .entry-content > p:first-of-type { font-size: 19px; }
  .entry-content .btn,
  .entry-content .wp-block-button__link { width: 100%; min-height: 52px; }
  .entry-content table { font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, #toc_container, .ez-toc-container { display: none; }
  .entry-content a { border-bottom: 0; color: var(--jm-ink); }
  .entry-content table { box-shadow: none; border: 1px solid var(--jm-line); }
}

/* ---------- 전체 가이드 목록 : 메인 카드 언어를 그대로 확장 ---------- */
.archive-page {
  max-width: var(--jm-max);
  margin: 0 auto;
  padding: 64px 22px 80px;
}
.archive-hero { margin: 0 0 32px; }
.archive-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.archive-description { max-width: 48em; margin: 14px 0 0; color: var(--jm-muted); font-size: 16px; }
.archive-description p { margin: 0; }
.archive-hero .topic-list { justify-content: flex-start; }
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.content-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(22, 24, 28, .06);
  border-radius: var(--jm-r-lg);
  background: linear-gradient(180deg, #fff 0%, #fdfdfe 60%, #f9fafb 100%);
  box-shadow: var(--jm-shadow);
  transition: transform .35s var(--jm-ease), box-shadow .35s var(--jm-ease);
}
.content-card:hover { transform: translateY(-4px); box-shadow: var(--jm-shadow-hover); }
.content-card-media {
  display: block;
  margin: -24px -24px 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f7f8fa;
}
.content-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--jm-ease);
}
.content-card:hover .content-card-media img { transform: scale(1.04); }
.content-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 28px; }
.content-card-meta time { color: var(--jm-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.topic-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border-radius: var(--jm-pill);
  background: var(--jm-accent-tint);
  color: var(--jm-accent);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.topic-badge:hover { background: var(--jm-accent); color: #fff; }
.content-card h2,
.content-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.022em;
}
.content-card h2 a,
.content-card h3 a { color: inherit; text-decoration: none; }
.content-card-link {
  display: flex;
  min-height: 100%;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.content-card-link:focus-visible { outline-offset: -5px; }
.content-card-link > p {
  display: -webkit-box;
  min-height: 4.8em;
  margin: 0;
  overflow: hidden;
  color: var(--jm-muted);
  font-size: 15px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.content-card-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 11px 20px;
  border-radius: var(--jm-pill);
  background: var(--jm-accent-tint);
  color: var(--jm-accent);
  font-size: 15px;
  font-weight: 600;
}
.content-card:hover .content-card-action { background: var(--jm-accent); color: #fff; }
.navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 8px 12px;
  border-radius: var(--jm-pill);
  background: var(--jm-card);
  color: var(--jm-ink-2);
  box-shadow: var(--jm-shadow);
}
.nav-links .current, .nav-links a:hover { background: var(--jm-accent); color: #fff; }

/* 첨부 미리보기의 모바일 가로 넘침은 운영 요구에 맞게 제거한다. */
html, body { max-width: 100%; overflow-x: clip; }
img { max-width: 100%; }

@media (max-width: 900px) {
  .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  body, main { width: 100%; min-width: 0; }
  .site-header { width: 100%; min-width: 0; justify-content: space-between; overflow: visible; }
  .site-header .main-nav { display: flex; gap: 0; margin-left: auto; }
  .site-header .main-nav a { display: none; }
  .site-header .main-nav a:nth-child(2) { display: inline-flex; padding: 6px 8px; white-space: nowrap; }
  .site-header .header-action { display: inline-flex; padding: 6px 10px; white-space: nowrap; }
  .hero, .guide-section, .archive-page, .site-footer { width: 100%; min-width: 0; max-width: 100%; }
  .featured { width: auto; min-width: 0; max-width: none; }
  .hero-copy { max-width: 100%; word-break: normal; overflow-wrap: anywhere; }
  .search-box, .trust-list { width: 100%; max-width: 100%; }
  .topic-nav, .topic-list { max-width: 100%; }
  .topic-list { justify-content: flex-start; }
  .hero .topic-list { justify-content: center; }
  .topic-chip { white-space: normal; text-align: center; }
  .section-heading { align-items: flex-start; }
  .section-more { white-space: normal; }
  .content-grid { grid-template-columns: 1fr; }
}
