/* 두피노트 공개 화면. 공통 색과 글꼴은 아래 변수에서 관리합니다. */

:root {
  --bg: #faf8f3;
  --surface: #fff;
  --ink: #171717;
  --muted: #595456;
  --line: #e3dfda;
  --accent: #58486e;
  --emphasis: #624868;
  --emphasis-end: #824f66;
  --accent-ink: #574367;
  --accent-deep: #493653;
  --surface-soft: #f5f3f0;
  --hero-bg: #f1eeea;
  --product-photo-top: #eee;
  --ad-bg: #fff2db;
  --ad-line: #f0d9af;
  --ad-ink: #62370d;
  --ad-badge: #90420d;
  --footer-bg: #f0eeeb;
  --shadow: 0 12px 32px rgb(32 26 34 / 0.12);
  --radius: 14px;
  --radius-large: 23px;
  --reading-width: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "맑은 고딕", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 22px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.72;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:where(a, button, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap, .wrap-narrow { width: 100%; margin: 0 auto; padding-inline: 16px; }
.wrap { max-width: 1192px; }
.wrap-narrow { max-width: calc(var(--reading-width) + 32px); }

.skip-link { position: absolute; left: 8px; top: -70px; padding: 9px 14px; background: var(--accent-deep); color: var(--surface); z-index: 50; border-radius: 8px; }
.skip-link:focus { top: 8px; color: var(--surface); }

/* 광고 고지와 주요 메뉴 */

.ad-bar { background: var(--ad-bg); color: var(--ad-ink); border-bottom: 1px solid var(--ad-line); font-size: 14px; line-height: 1.45; }
.ad-link { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding-block: 5px; color: inherit; text-decoration: none; }
.ad-link:hover { color: var(--ad-ink); }
.ad-badge, .cta-badge { display: inline-flex; flex: 0 0 auto; width: max-content; align-items: center; padding: 2px 8px; border-radius: 5px; background: var(--ad-badge); color: var(--surface); font-size: 15px; font-weight: 800; }
.ad-detail { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; font-weight: 700; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand-mark { flex: 0 0 auto; width: 38px; height: 38px; }
.brand-words { display: grid; line-height: 1.2; }
.brand-words strong { color: var(--accent-deep); font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }
.brand-words small { margin-top: 2px; color: var(--ink); font-size: 12px; }

.site-nav { position: relative; }
.nav-list, .nav-drop-list { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: 2px 5px; }
.nav-link { display: flex; align-items: center; justify-content: center; min-height: 44px; padding-inline: 12px; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; line-height: 1.3; cursor: pointer; }
.nav-link:hover, .nav-link[aria-current="page"], .nav-link[data-current], .nav-drop[open] > summary { background: var(--surface-soft); color: var(--accent-deep); }
.nav-more { position: relative; }
.nav-drop > summary, .guide-toc > summary, .faq-item > summary { list-style: none; }
.nav-drop > summary::-webkit-details-marker, .guide-toc > summary::-webkit-details-marker, .faq-item > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after, .guide-toc > summary::after {
  content: '';
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin: -3px 0 0 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.nav-drop[open] > summary::after, .guide-toc[open] > summary::after { margin-top: 4px; transform: rotate(225deg); }
.nav-drop-list { position: absolute; z-index: 30; right: 0; top: calc(100% + 7px); width: 355px; max-height: 58vh; overflow: auto; padding: 7px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.nav-drop-list a { display: flex; align-items: center; min-height: 44px; padding: 8px 9px; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: 14.5px; line-height: 1.45; }
.nav-drop-list a:hover, .nav-drop-list a[aria-current="page"] { background: var(--surface-soft); color: var(--accent-deep); }

/* 공통 타이포그래피 */

main { padding-bottom: 64px; }
h1, h2, h3 { line-height: 1.34; letter-spacing: -0.04em; }
h1 { margin: 0 0 14px; font-size: clamp(30px, 4.4vw, 46px); }
h2 { margin: 0 0 15px; font-size: clamp(23px, 3.2vw, 29px); }
h3 { margin: 22px 0 8px; font-size: 19px; }

.article p { margin: 0 0 15px; }
.lead { max-width: 43em; font-size: 18px; line-height: 1.67; }
.article :where(.lead, .block) strong, .home-copy h1 strong { color: var(--emphasis); }
.article .meta { margin: 0; color: var(--muted); font-size: 13.5px; }
.article .block { margin-top: 44px; }
.block > :last-child, .sub > :last-child { margin-bottom: 0; }
.article :where(ul, ol) { margin: 0 0 16px; padding-left: 23px; }
.article li { margin-block: 6px; }
.article li::marker { color: var(--accent); }
.article [id]:target { scroll-margin-top: 8px; }

/* 홈 첫 화면과 주제 카드 */

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.84fr);
  grid-template-areas: 'copy visual' 'pricing visual';
  align-items: center;
  gap: 12px 30px;
  margin-top: 24px;
  padding: clamp(18px, 3.2vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--hero-bg);
}
.home-copy { grid-area: copy; min-width: 0; align-self: end; }
.home-copy h1 { max-width: 15em; font-size: clamp(30px, 4.25vw, 54px); line-height: 1.18; letter-spacing: -0.055em; text-wrap: balance; }
@supports (background-clip: text) {
  @media screen and (forced-colors: none) {
    .home-copy h1 strong {
      background-image: linear-gradient(105deg, var(--emphasis), var(--emphasis-end));
      background-clip: text;
      color: transparent;
    }
  }
}
.home-copy .lead { max-width: 29em; }
.home-hero .guide-media { grid-area: visual; align-self: center; }
.home-pricing { grid-area: pricing; min-width: 0; align-self: start; }
.home-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 6px; }
.home-prices div { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.home-prices dt { font-size: 14px; font-weight: 700; line-height: 1.4; }
.home-prices dd { margin: 2px 0 0; color: var(--accent-deep); font-size: clamp(20px, 3.2vw, 30px); font-weight: 800; line-height: 1.18; font-variant-numeric: tabular-nums; }
.home-pricing .meta { font-size: 12px; }

.topic-grid, .overview-grid {
  display: grid;
  list-style: none;
  padding: 0;
  gap: 9px;
}
.article :where(.topic-grid, .overview-grid) { margin: 0; }
.article :where(.topic-grid, .overview-grid) > li { margin: 0; }
.topic-card, .overview-grid li {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 13px 42px 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.topic-card:hover, .overview-grid li:hover { border-color: var(--accent); }
.topic-title, .overview-grid a { color: var(--accent-deep); font-weight: 750; line-height: 1.45; text-decoration: none; }
.topic-title:hover, .overview-grid a:hover { text-decoration: underline; }
.topic-title::after, .overview-grid a::after { content: ''; position: absolute; inset: 0; border-radius: 10px; }
.topic-title:focus-visible, .overview-grid a:focus-visible { outline: none; }
.topic-title:focus-visible::after, .overview-grid a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.topic-text, .overview-grid li > span:not(.card-arrow) { color: var(--ink); font-size: 14px; line-height: 1.5; }
.card-arrow { position: absolute; inset-inline-end: 13px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 20px; line-height: 1; pointer-events: none; }
.topic-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.topic-group { min-width: 0; padding: 16px 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.topic-group h3 { margin: 0 0 8px; color: var(--accent-deep); font-size: 17px; }
.topic-group .topic-grid { gap: 0; }
.topic-group .topic-card { padding: 12px 30px 12px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.topic-group .card-arrow { inset-inline-end: 3px; }
.home > .block, .home-end { margin-top: clamp(35px, 5vw, 68px); }
.home-end { border-top: 1px solid var(--line); padding-top: 28px; }
.home-end > .block:first-child { margin-top: 0; }

/* 샴푸 용기, 검사 항목, 고민별 안내, 제품 구성 */

.home-reasons, .home-possibilities, .home-buying, .home-product { min-width: 0; }
.home :where(.home-reasons, .home-possibilities, .home-buying, .home-product) > h2 { margin-bottom: 12px; }
.guide-media {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.guide-media-frame { position: relative; flex: 1 1 auto; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-soft); }
.guide-media-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.guide-media figcaption { padding: 6px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.product-media .guide-media-frame { background: linear-gradient(var(--product-photo-top), var(--surface)); }
.product-media img {
  inset: 0 auto auto 50%;
  height: 100%;
  width: auto;
  max-width: none;
  aspect-ratio: 1;
  object-fit: contain;
  transform: translateX(-50%);
  clip-path: inset(0 21% 0 0);
}
.article .information-cards, .article .buying-checklist, .article .card-terms { margin: 0; padding: 0; list-style: none; }
.information-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.information-cards > li {
  min-width: 0;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.information-cards > li:first-child { grid-column: 1 / -1; }
.information-cards h3 { margin: 0 0 6px; color: var(--accent-deep); font-size: 18px; }
.information-cards p { margin: 0 0 9px; font-size: 15.5px; line-height: 1.55; }
.card-terms { display: flex; flex-wrap: wrap; gap: 4px; }
.card-terms li { margin: 0; padding: 2px 7px; border-radius: 4px; background: var(--surface-soft); color: var(--accent-ink); font-size: 13px; }

.home-buying, .home-product {
  padding: clamp(17px, 3.1vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface-soft);
}
.buying-checklist { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.buying-checklist li { margin: 0; }
.buying-checklist li + li { border-top: 1px solid var(--line); }
.buying-checklist label { display: grid; grid-template-columns: 21px minmax(0, 1fr); align-items: start; gap: 11px; min-height: 48px; padding: 11px 14px; cursor: pointer; }
.buying-checklist label:hover, .buying-checklist label:has(input:checked) { background: var(--surface-soft); }
.buying-checklist label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.buying-checklist input { width: 19px; height: 19px; margin: 4px 0 0; accent-color: var(--accent); cursor: pointer; }
.buying-checklist strong { display: block; font-size: 16px; line-height: 1.4; }
.check-description { display: block; margin-top: 3px; color: var(--ink); font-size: 14px; line-height: 1.5; }
.article .section-guide { margin: 5px 0 0; }
.section-guide a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  max-width: 100%;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
}
.section-guide a::after {
  content: '';
  flex: 0 0 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.section-guide a:hover { border-color: var(--accent); text-decoration: underline; }

.home-reasons .information-cards { grid-template-columns: minmax(0, 1fr); }
.home-reasons .information-cards > li:first-child { grid-column: auto; }
.home-reasons .information-cards p, .home-possibilities .information-cards p { margin-bottom: 0; }
.home-topics, .home-sources, .home-possibilities .faq > details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.home-topics-body { padding-block: 7px 11px; }
.home-topics-body .topic-groups { margin-top: 10px; }
.home .home-possibilities > .faq { margin-top: 0; }
.home-sources { margin-top: 12px; }
.home-performance { min-width: 0; }
.performance-effect { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.performance-effect span, .performance-effect strong { display: block; }
.performance-effect span { font-size: 13px; font-weight: 700; }
.performance-effect strong { margin-top: 3px; font-size: clamp(18px, 2.4vw, 24px); }

.review-examples { padding: clamp(17px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--surface-soft); }
.review-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.review-heading h2 { margin: 0; }
.review-controls:not([hidden]) { display: flex; flex-wrap: wrap; gap: 5px; }
.review-controls button { min-width: 42px; min-height: 42px; padding-inline: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--accent-deep); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.review-controls button:hover { border-color: var(--accent); }
.article .review-grid { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 400px); gap: 10px; margin: 0; padding: 0 0 8px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; }
.article .review-grid.is-looping { scroll-snap-type: none; scrollbar-width: none; }
.review-grid:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.review-grid > li { scroll-snap-align: start; }
.review-grid > li { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; }
.review-label { padding: 2px 7px; border-radius: 4px; background: var(--surface-soft); color: var(--accent-deep); font-size: 13px; font-weight: 750; }
.review-stars { color: var(--ad-ink); font-size: 17px; letter-spacing: 0.08em; line-height: 1; white-space: nowrap; }
.review-grid h3 { margin: 10px 0 6px; color: var(--accent-deep); font-size: 17px; }
.review-grid p { margin: 0 0 10px; color: var(--ink); font-size: 15.5px; line-height: 1.6; }
.review-grid time { color: var(--muted); font-size: 13px; }
.review-sources { display: flex; flex-wrap: wrap; gap: 8px; }

@media (min-width: 720px) {
  .home-possibilities, .home-buying, .home-product {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    column-gap: clamp(18px, 3.2vw, 38px);
  }
  .home-possibilities { grid-template-areas: 'title title' 'photo cards' 'photo guide' 'faq faq'; grid-template-rows: auto auto 1fr auto; row-gap: 8px; }
  .home-product { grid-template-areas: 'title title' 'photo cards' 'photo guide'; grid-template-rows: auto auto 1fr; row-gap: 8px; }
  :is(.home-possibilities, .home-product) > .guide-media { grid-area: photo; align-self: stretch; }
  :is(.home-possibilities, .home-product) > :is(.information-cards, .home-performance) { grid-area: cards; }
  :is(.home-possibilities, .home-product, .home-buying) > h2 { grid-area: title; }
  :is(.home-possibilities, .home-product, .home-buying) > .section-guide { grid-area: guide; }
  .home-possibilities > .faq { grid-area: faq; }

  .home-buying { grid-template-areas: 'title details' 'intro details' 'guide details' '. details' 'topics topics'; grid-template-rows: auto auto auto 1fr auto; }
  .home-buying > p:not(.section-guide) { grid-area: intro; }
  .home-buying > .buying-checklist { grid-area: details; }
  .home-buying > .home-topics { grid-area: topics; }
  :is(.home-end, .guide-end) .cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'badge button' 'title button' 'text button'; align-items: center; column-gap: 20px; }
  :is(.home-end, .guide-end) .cta-badge { grid-area: badge; }
  :is(.home-end, .guide-end) .cta-title { grid-area: title; }
  :is(.home-end, .guide-end) .cta-text { grid-area: text; margin-bottom: 0; }
  :is(.home-end, .guide-end) .cta-button { grid-area: button; }
  .home-reasons .information-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article .review-grid { grid-auto-columns: calc((100% - 24px) / 2.65); }
}

/* 안내 페이지 첫 화면, 핵심 카드와 본문 */

.guide-hero {
  display: grid;
  align-items: center;
  gap: clamp(12px, 3.2vw, 36px);
  margin-top: 22px;
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--hero-bg);
}
.guide-hero-copy { min-width: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--muted); font-size: 13.5px; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 40px; color: inherit; }
.article-head h1 { font-size: clamp(28px, 4.05vw, 47px); text-wrap: balance; }
.article-head .lead { max-width: 38em; margin-bottom: 10px; }
.guide-hero .guide-media { align-self: center; width: 100%; }
.guide-key-points .information-cards { grid-template-columns: minmax(0, 1fr); }
.guide-key-points .information-cards > li:first-child { grid-column: auto; }
.guide-key-points .information-cards > li { padding: clamp(13px, 2vw, 21px); }
.guide-key-points .information-cards p { margin-bottom: 0; }
.guide-comparison { padding: clamp(14px, 2.3vw, 26px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.guide-comparison .comparison-table { margin-bottom: 0; }
.guide-sections { display: grid; gap: 14px; margin-top: clamp(24px, 4vw, 44px); }
.article .guide-sections > .block { min-width: 0; margin-top: 0; padding: clamp(14px, 2.4vw, 25px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.guide-sections > .guide-wide { grid-column: 1 / -1; }
.guide-sections h2 { font-size: clamp(21px, 2.5vw, 26px); }
.guide .article-intro { max-width: var(--reading-width); }
.guide-end { margin-top: clamp(29px, 4vw, 50px); padding-top: 20px; border-top: 1px solid var(--line); }
.article .guide-end > .block:first-child { margin-top: 0; }
.guide-toc { margin-top: 12px; padding: 0 12px; }
.guide-toc > summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding-inline: 6px; color: var(--accent-deep); font-weight: 750; font-size: 15px; cursor: pointer; }
.guide-toc[open] > summary { border-bottom: 1px solid var(--line); }
.guide-toc[open] > nav { padding-block: 5px; }

@media (min-width: 720px) {
  .guide-hero { grid-template-columns: minmax(0, 1.17fr) minmax(0, 0.83fr); }
  .guide-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-key-points .information-cards, .guide-end .related .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-sections > .checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .guide-sections > .checklist > h2 { grid-column: 1 / -1; }
  .guide-sections > .checklist > .sub { margin-top: 0; }
  .guide-toc .toc-list { display: flex; flex-wrap: wrap; column-gap: 7px; }
  .guide-end .faq { display: grid; grid-template-columns: minmax(190px, 0.63fr) minmax(0, 1.37fr); gap: 22px; }
}

.overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article .overview-grid { margin-top: 18px; }
.overview-grid li { background: var(--surface-soft); }
.overview-grid a { font-size: 16px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 41px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.quick-links a:hover { border-color: var(--accent); background: var(--surface-soft); text-decoration: underline; }
.label-example { margin-top: 18px; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.label-example p { margin-bottom: 5px; color: var(--accent-deep); font-size: 14px; font-weight: 800; }
.label-example ul { display: flex; flex-wrap: wrap; gap: 5px 17px; margin: 0; padding: 0; list-style: none; }
.label-example li { margin: 0; font-size: 15px; }
.label-example li + li { padding-left: 11px; border-left: 2px solid var(--line); }

.toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.article .toc-list { padding: 0; margin: 0; list-style: none; }
.toc-list li { margin: 0; }
.toc-list a { display: flex; align-items: center; min-height: 40px; padding: 7px 8px; border-radius: 6px; color: var(--accent-ink); font-size: 14px; line-height: 1.4; text-decoration: none; }
.toc-list a:hover { background: var(--surface-soft); text-decoration: underline; }
.article .article-intro { margin-top: 22px; }

/* 본문 블록, 비교표, 정리 목록 */

.sub { padding: 10px 0; }
.sub h3:first-child { margin-top: 0; }
.sub:target, .tip:target { background: var(--surface-soft); outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.checklist .sub { margin-top: 10px; padding: 14px 16px; border: 1px solid var(--line); border-inline-start: 4px solid var(--accent); border-radius: 9px; background: var(--surface); }
ol.steps { list-style: none; padding-left: 0; counter-reset: step; }
ol.steps li { position: relative; min-height: 34px; padding: 4px 0 4px 43px; counter-increment: step; }
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 3px;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 800;
}
.tip { padding: 13px 16px; border-inline-start: 4px solid var(--accent); border-radius: 0 8px 8px 0; background: var(--surface-soft); }

.comparison-table { width: 100%; margin-bottom: 16px; border: 1px solid var(--line); border-spacing: 0; border-radius: var(--radius); background: var(--surface); font-size: 15.5px; line-height: 1.55; }
.comparison-table caption { padding: 0 2px 7px; color: var(--muted); text-align: left; font-size: 14px; font-weight: 750; }
.comparison-table th, .comparison-table td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table thead th { background: var(--surface-soft); color: var(--accent-deep); }
.comparison-table thead th:first-child { border-start-start-radius: calc(var(--radius) - 1px); }
.comparison-table thead th:last-child { border-start-end-radius: calc(var(--radius) - 1px); }
.comparison-table tbody tr:last-child > * { border-bottom: 0; }
.comparison-table tbody tr:target { background: var(--surface-soft); outline: 2px solid var(--accent); outline-offset: -2px; }
.mobile-cell-label { display: none; }

ol.timeline { padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; gap: 2px; margin: 0; padding: 3px 0 16px 22px; border-inline-start: 2px solid var(--line); margin-inline-start: 6px; }
.timeline li:last-child { padding-bottom: 3px; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: -7px; top: 10px; width: 12px; height: 12px; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.timeline strong { color: var(--accent-deep); }

.product-box { padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.product-box > :last-child { margin-bottom: 0; }
.facts { display: grid; gap: 8px; margin: 0 0 14px; }
.facts div { display: grid; grid-template-columns: minmax(75px, 95px) 1fr; gap: 10px; }
.facts dt { color: var(--muted); font-size: 15px; font-weight: 750; }
.facts dd { margin: 0; }
.price-note { font-size: 14px; }
.ingredient-grid { display: grid; gap: 10px; }
.ingredient-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.ingredient-card h3 { margin: 0 0 8px; }
.ingredient-details summary { display: list-item; min-height: 42px; padding-block: 8px; color: var(--accent-deep); font-weight: 750; cursor: pointer; }
.ingredient-details p { margin-bottom: 0; font-size: 14px; }
.ingredient-grid + .price-note { margin: 12px 0 0; }
@media (min-width: 720px) { .ingredient-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 9px 2px; cursor: pointer; }
.faq-item summary::after { content: '+'; flex: 0 0 20px; color: var(--accent); font-size: 21px; line-height: 1; text-align: center; }
.faq-item[open] summary::after { content: '−'; }
.faq-item h3 { margin: 0; font-size: 17px; letter-spacing: -0.02em; }
.faq-item p { margin: 0 0 13px; padding-inline-end: 24px; }

.sources { font-size: 15px; }
.sources h2, .related h2 { font-size: 20px; }
.related :where(.topic-grid) { gap: 7px; }
.related .topic-card { padding-block: 9px; }
.related .topic-title { font-size: 15px; }
.article .medical-note {
  margin: 27px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 15px;
}

.cta { margin-top: 12px; padding: 19px 22px; border: 1px solid var(--ad-line); border-radius: var(--radius); background: var(--ad-bg); }
.cta .cta-badge { margin-bottom: 8px; }
.cta .cta-title { margin-bottom: 5px; font-size: 22px; font-weight: 800; letter-spacing: -0.035em; }
.cta .cta-text { margin-bottom: 13px; font-size: 15px; }
.cta-button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 6px 14px; border-radius: 8px; background: var(--accent); color: var(--surface); font-size: 16px; font-weight: 800; text-decoration: none; }
.cta-button:hover { background: var(--accent-deep); color: var(--surface); }

.message { padding-top: 48px; }
.text-link { font-weight: 750; }

/* 꼬리말 */

.site-footer { padding: 24px 0 28px; border-top: 1px solid var(--line); background: var(--footer-bg); color: var(--muted); font-size: 14px; }
.footer-nav { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 16px; }
.footer-group p { margin: 0; color: var(--ink); font-weight: 750; }
.footer-group ul { display: flex; flex-wrap: wrap; gap: 0 12px; list-style: none; margin: 0; padding: 0; }
.footer-group a { display: flex; align-items: center; min-height: 40px; color: var(--accent-ink); text-decoration: none; }
.footer-group a:hover { text-decoration: underline; }
.footer-meta { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }

@media (max-width: 719px) {
  body { font-size: 16px; }
  main { padding-bottom: 46px; }
  .header-inner { flex-wrap: wrap; gap: 0; min-height: 0; padding-block: 5px 6px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-words strong { font-size: 19px; }
  .site-nav { width: 100%; }
  .nav-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4px; }
  .nav-link { min-height: 40px; padding: 4px; font-size: 14px; }
  .nav-more { position: static; }
  .nav-drop-list { inset-inline: 0; width: 100%; }

  .home-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'copy copy' 'pricing visual'; gap: 10px; margin-top: 15px; }
  .home-copy h1 { font-size: clamp(27px, 7.3vw, 39px); }
  .home-copy .lead { margin-bottom: 0; }
  .home-prices { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .home-prices div { padding: 6px 8px; }
  .home-prices dt { font-size: 13px; }
  .home-hero .guide-media-frame { aspect-ratio: 1; }
  .home-hero .guide-media figcaption { padding: 4px 6px; text-align: center; line-height: 1.3; }
  .topic-groups { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .topic-card { padding-block: 9px; font-size: 15px; }
  .article .block { margin-top: 34px; }
  :is(.home-possibilities, .home-product) .guide-media { margin-bottom: 10px; }
  :is(.home-buying, .home-product) > .section-guide { margin-top: 10px; }
  .lead { font-size: 17px; }
  .article-head h1 { font-size: clamp(28px, 7.35vw, 39px); }
  .overview-grid { gap: 6px; }
  .overview-grid li { padding: 9px 12px; }
  .overview-grid .card-arrow { display: none; }
  .overview-grid a { font-size: 15px; }
  .overview-grid li > span:not(.card-arrow) { font-size: 13.5px; }
  .label-example ul { display: grid; gap: 1px; }
  .label-example li + li { padding: 0; border: 0; }

  .comparison-table, .comparison-table caption, .comparison-table tbody, .comparison-table tbody th, .comparison-table tbody td { display: block; }
  .comparison-table { border: 0; border-radius: 0; background: transparent; }
  .comparison-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .comparison-table tbody { display: grid; gap: 8px; }
  .comparison-table tbody tr { display: block; overflow: hidden; padding-bottom: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
  .comparison-table tbody th { border: 0; background: var(--surface-soft); color: var(--accent-deep); }
  .comparison-table tbody td { padding: 5px 13px; border: 0; }
  .comparison-table tbody td a { display: flex; align-items: center; min-height: 40px; }
  .mobile-cell-label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 13px; font-weight: 750; }

  .cta { padding: 15px; }
  .cta-button { width: 100%; }
  .footer-nav { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

@media (min-width: 480px) and (max-width: 719px) {
  .nav-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* 2026-11-28 SEO·광고 표시 보강: 메인 가격 위 '광고' 표시, 구매평 안내의 '광고' 표시, 접힌 FAQ 제목(h2)을 요약줄 크기로 */
.pricing-ad { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 700; color: var(--ink); }
.review-examples p > .ad-badge { margin-right: 8px; vertical-align: 1px; }
.faq .guide-toc > summary h2 { display: inline; margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
