/* 레이아웃 콘셉트: 정보 밀도 높은 한국형 가이드. 좌측 정렬 헤드라인, 목차+본문 2단,
   제품 컷은 연한 플레이트 위에. 포인트 컬러는 와인 하나만 쓴다. */
:root {
  --bg: #ffffff;
  --ink: #17151a;
  --sub: #5d5861;
  --faint: #8a848e;
  --line: #e8e4e7;
  --line-strong: #d3cdd1;
  --mist: #f6f4f5;
  --plate: #f3f0f1;          /* 흰 배경 제품 컷용. 다크 테마에서도 밝게 유지 */
  --wine: #7d1d3f;
  --wine-ink: #ffffff;
  --wine-soft: #f8ecf1;
  --band: #201b23;
  --band-ink: #f3eef1;
  --band-sub: #b9b0bc;
  --radius: 6px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
          "Malgun Gothic", "맑은 고딕", sans-serif;
  --header-h: 60px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131115; --ink: #eeeaf0; --sub: #aea7b1; --faint: #857e89;
    --line: #2b272e; --line-strong: #3d3841; --mist: #1a171d;
    --wine: #e58aa9; --wine-ink: #1b0d13; --wine-soft: #2a1920;
    --band: #241f28; --band-ink: #f3eef1; --band-sub: #b9b0bc;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131115; --ink: #eeeaf0; --sub: #aea7b1; --faint: #857e89;
  --line: #2b272e; --line-strong: #3d3841; --mist: #1a171d;
  --wine: #e58aa9; --wine-ink: #1b0d13; --wine-soft: #2a1920;
  --band: #241f28; --band-ink: #f3eef1; --band-sub: #b9b0bc;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.7; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; }

.wrap {
  width: 100%; max-width: 1160px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 800px; }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.gnb {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.gnb-in { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.logo { display: flex; align-items: baseline; gap: 10px; flex-shrink: 0; }
.logo-mark { font-weight: 800; font-size: 21px; letter-spacing: -0.05em; }
.logo-sub { font-size: 12px; color: var(--faint); font-weight: 500; }
.gnb-nav { display: flex; align-items: center; gap: 26px; flex: 1; font-size: 15px; font-weight: 600; }
.gnb-nav a { color: var(--sub); }
.gnb-nav a:hover, .gnb-nav a[aria-current="page"] { color: var(--ink); }
.gnb-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); padding-block: 18px; }
.gnb-shop {
  margin-left: auto; font-size: 14px; font-weight: 700; padding: 8px 16px; border: 1px solid var(--wine);
  border-radius: var(--radius); background: var(--wine); color: var(--wine-ink) !important;
}
.gnb-shop:hover { filter: brightness(1.08); }
.gnb-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: currentColor; margin-inline: auto; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.gnb-toggle[aria-expanded="true"] .bars { background: transparent; }
.gnb-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.gnb-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .logo-sub { display: none; }
  .gnb-toggle { display: block; }
  .gnb-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
  }
  .gnb-nav.open { display: flex; }
  .gnb-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
  .gnb-nav a[aria-current="page"] { box-shadow: none; padding-block: 14px; color: var(--wine); }
  .gnb-shop { margin: 16px 0 0; text-align: center; padding: 13px !important; border-bottom: 1px solid var(--wine) !important; }
}

/* ---------- common bits ---------- */
.eyebrow { font-size: 13px; font-weight: 700; color: var(--wine); letter-spacing: 0; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 600; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--sub); line-height: 1.6; }
.chip-soft { border-color: transparent; background: var(--wine-soft); color: var(--wine); }
.plate { display: block; background: var(--plate); border-radius: var(--radius); overflow: hidden; }
.plate img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--wine); color: var(--wine-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-line { border-color: var(--line-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-light { background: var(--band-ink); color: var(--band); }
.btn-ghost-light { border-color: color-mix(in srgb, var(--band-ink) 35%, transparent); color: var(--band-ink); }
.btn-ghost-light:hover { border-color: var(--band-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

.typo {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  font-size: 14px; color: var(--sub); padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line);
}
.typo strong { color: var(--ink); }
.typo-tag { font-size: 12px; font-weight: 700; color: var(--wine); }

.todo {
  border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--mist);
  padding: 16px 18px; font-size: 14px; color: var(--sub); margin-top: 12px;
}
.todo-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--wine); margin-bottom: 6px; }
.todo-note { margin-bottom: 6px; color: var(--faint); }
.todo ul { list-style: disc; padding-left: 18px; display: grid; gap: 2px; }

.tbl { overflow-x: auto; margin-top: 12px; border-top: 2px solid var(--ink); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tbl thead th { font-size: 13px; color: var(--faint); font-weight: 600; }
.tbl tbody th a, .tbl td a { color: var(--wine); font-weight: 600; }
.tbl tbody th a:hover, .tbl td a:hover { text-decoration: underline; }

/* ---------- section scaffolding ---------- */
.sec { padding-block: 72px; }
.sec-mist { background: var(--mist); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sec-head h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
.sec-lede { color: var(--sub); margin: -12px 0 28px; max-width: 60ch; }
.more { font-size: 14px; color: var(--sub); font-weight: 600; white-space: nowrap; }
.more::after { content: " ›"; }
.more:hover { color: var(--ink); }

/* ---------- home: hero ---------- */
.hero { padding-block: 56px 64px; border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.18; }
.hero-lede { margin-top: 18px; font-size: 18px; color: var(--sub); max-width: 34em; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.quick a {
  font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  background: var(--mist); color: var(--ink); border: 1px solid var(--line);
}
.quick a:hover { border-color: var(--wine); color: var(--wine); }
.hero-visual { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 12px; min-width: 0; }
.hv-0 { grid-row: 1 / 3; align-self: stretch; }
.hv-0 img { height: 100%; }

/* ---------- guide list ---------- */
.glist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 2px solid var(--ink); }
.glist li { border-bottom: 1px solid var(--line); }
.glist a { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; padding: 20px 0; }
.gl-n { grid-row: 1 / 3; font-weight: 800; font-size: 15px; color: var(--wine); font-variant-numeric: tabular-nums; padding-top: 2px; }
.gl-t { font-weight: 700; font-size: 17px; }
.gl-d { font-size: 14px; color: var(--sub); margin-top: 2px; }
.glist a:hover .gl-t { color: var(--wine); }
.glist-wide { margin-bottom: 24px; }

/* ---------- type matrix ---------- */
.tmatrix { border-top: 2px solid var(--ink); }
.tm-row { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); align-items: center; }
.tm-type strong { display: block; font-size: 17px; }
.tm-type span { font-size: 14px; color: var(--sub); }
.tm-models { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-model {
  font-size: 15px; font-weight: 600; padding: 9px 16px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line-strong);
}
.tm-model:hover { border-color: var(--wine); color: var(--wine); }

/* ---------- spotlight ---------- */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.spot h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.spot-copy > p:not(.eyebrow) { margin-top: 14px; color: var(--sub); font-size: 17px; }
.spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 28px 0; border-top: 1px solid var(--line-strong); }
.spec div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 13px; color: var(--faint); }
.spec dd { margin: 2px 0 0; font-weight: 700; }
.spec dd a { color: var(--wine); }

/* ---------- honeyme band ---------- */
.hband { background: var(--band); color: var(--band-ink); padding-block: 72px; }
.hband-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.hband .eyebrow { color: var(--band-sub); }
.hband h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.hband-head > p:not(.eyebrow) { margin-top: 14px; color: var(--band-sub); }
.hband-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hband-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: color-mix(in srgb, var(--band-ink) 14%, transparent); border-radius: var(--radius); overflow: hidden; }
.hband-facts li { background: var(--band); padding: 22px 20px; }
.hb-k { display: block; font-size: 13px; font-weight: 700; color: var(--band-sub); margin-bottom: 6px; }
.hb-v { font-size: 16px; font-weight: 600; line-height: 1.55; }

/* ---------- faq ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 28px 1fr 20px; gap: 4px;
  padding: 18px 0; font-weight: 700; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--wine); font-weight: 800; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 20px; line-height: 1.2; text-align: right; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 20px 32px; color: var(--sub); }

/* ---------- page header / breadcrumb ---------- */
.crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--faint); padding-block: 18px 0; }
.crumb a:hover { color: var(--ink); }
.crumb .sep { color: var(--line-strong); }
.phead { padding-block: 20px 40px; }
.phead h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.04em; }
.phead-lede { margin-top: 12px; color: var(--sub); font-size: 17px; max-width: 46em; }

/* ---------- doc (toc + body) ---------- */
.doc { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 64px; padding-bottom: 72px; align-items: start; }
.doc-single { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px)); font-size: 14px; }
.toc summary { font-weight: 700; font-size: 13px; color: var(--faint); cursor: default; list-style: none; margin-bottom: 8px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { counter-reset: t; border-left: 1px solid var(--line); }
.toc li { counter-increment: t; }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--sub); margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); font-weight: 700; border-left-color: var(--wine); }
.doc-body { max-width: 720px; display: grid; gap: 56px; }
.doc-sec h2 { font-size: 24px; font-weight: 800; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.doc-sec > p { margin-top: 16px; }
.linklist { margin-top: 12px; display: grid; }
.linklist a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.linklist a::after { content: " ›"; color: var(--faint); }
.linklist a:hover { color: var(--wine); }
.inline-link { margin-top: 12px; font-size: 15px; }
.inline-link a { color: var(--wine); font-weight: 700; }
.inline-link a::after { content: " ›"; }
.prose p { margin-bottom: 16px; }

/* ---------- models ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 32px; scrollbar-width: none; }
.tab {
  flex-shrink: 0; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--sub); cursor: pointer;
}
.tab[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.mgroup { padding-bottom: 56px; }
.mgroup-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 2px solid var(--ink); }
.mgroup-head h2 { font-size: 22px; font-weight: 800; }
.mgroup-head p { color: var(--sub); font-size: 15px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 20px; }
.mgrid-sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 16px; margin-top: 16px; }
.mcard { display: flex; flex-direction: column; gap: 6px; }
.mcard .plate { margin-bottom: 8px; }
.mcard .plate img { transition: transform .3s ease; }
.mcard:hover .plate img { transform: scale(1.04); }
.mcard-name { font-weight: 700; font-size: 17px; display: flex; align-items: baseline; gap: 8px; }
.mcard-sm .mcard-name { font-size: 15px; }
.mcard-en { font-size: 12px; font-weight: 500; color: var(--faint); }
.mcard-lede { font-size: 14px; color: var(--sub); line-height: 1.6; }
.mcard:hover .mcard-name { color: var(--wine); }

/* ---------- product detail ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-block: 24px 72px; align-items: start; }
.pdp-info { display: grid; gap: 0; }
.pdp-info h1 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.04em; margin-top: 14px; }
.byline { display: flex; gap: 6px; font-size: 13px; color: var(--faint); margin-top: 14px; }
.byline span:first-child { color: var(--sub); font-weight: 600; }
.pdp-lede { margin-top: 12px; color: var(--sub); font-size: 17px; }
.pdp .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pdp-note { font-size: 13px; color: var(--faint); margin: 14px 0 0; }
.pdp .typo { margin-top: 20px; }

/* ---------- cta ---------- */
.cta-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--wine-soft); border-radius: var(--radius); padding: 28px;
}
.cta-box > div { flex: 1 1 320px; min-width: 0; }
.cta-eyebrow { font-size: 12px; font-weight: 700; color: var(--wine); }
.cta-title { font-size: 20px; font-weight: 800; margin-top: 4px; letter-spacing: -0.03em; }
.cta-text { font-size: 15px; color: var(--sub); margin-top: 4px; }

.sticky-cta { display: none; }
@media (max-width: 768px) {
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    background: var(--bg); border-top: 1px solid var(--line);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }
  .sticky-cta a {
    position: relative; display: flex; align-items: center; justify-content: center; min-height: 50px;
    padding: 0 16px; text-align: center;
    background: var(--wine); color: var(--wine-ink); border-radius: var(--radius); font-weight: 700;
  }
  body.has-sticky { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- footer ---------- */
.foot { background: var(--mist); border-top: 1px solid var(--line); padding-block: 48px; font-size: 14px; color: var(--sub); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.foot-h { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.foot-cols li { padding: 3px 0; }
.foot-cols a:hover { color: var(--ink); }
.foot-info { padding-top: 24px; display: grid; gap: 6px; font-size: 13px; }
.foot-info a { text-decoration: underline; }
.foot-copy { color: var(--faint); margin-top: 8px; }

.nf { padding-block: 96px; display: grid; gap: 16px; }
.nf h1 { font-size: 32px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-in, .spot, .hband-in, .pdp { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero { padding-block: 32px 48px; }
  .hero-visual { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; }
  .hv-0 { grid-row: auto; }
  .pdp-img img { aspect-ratio: 4 / 3; }
  .glist { grid-template-columns: minmax(0, 1fr); }
  .tm-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
  .toc summary { cursor: pointer; margin: 0; color: var(--ink); }
  .toc details[open] summary { margin-bottom: 8px; }
  .sec, .hband { padding-block: 56px; }
}
@media (max-width: 560px) {
  .hero-lede { font-size: 16px; }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hband-facts { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .mcard-lede { display: none; }
  .cta-box { padding: 22px; }
  .cta-box .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 체크리스트 (중고 구매 가이드 등) */
.checklist { margin-top: 16px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checklist li { display: grid; grid-template-columns: 28px minmax(0, 1fr); padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ""; width: 18px; height: 18px; margin-top: 4px; background: var(--wine);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 원고 요소 */
.note { margin-top: 12px; font-size: 14px; color: var(--sub); }
.steps { margin-top: 16px; padding-left: 0; counter-reset: st; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: st; display: grid; grid-template-columns: 32px minmax(0, 1fr); padding: 12px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(st); font-weight: 800; color: var(--wine); font-variant-numeric: tabular-nums; }
.deflist { margin-top: 16px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.deflist dt { font-weight: 700; padding-top: 14px; }
.deflist dd { margin: 4px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--sub); }
.spec-inline { margin: 16px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spec-inline dd { font-weight: 600; }
.checklist.plain li { grid-template-columns: minmax(0, 1fr); }
.checklist.plain li::before { display: none; }
.checklist.plain strong { margin-right: 8px; }
.tbl table.center td { text-align: center; }
.doc-sec p + p { margin-top: 12px; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 40px 0 12px; }
.tbl thead th { white-space: nowrap; }

/* 섹션 제목 밑줄과 바로 아래 블록의 윗줄이 겹치지 않게 한 줄만 남긴다 */
.doc-sec > h2 + .checklist,
.doc-sec > h2 + .steps,
.doc-sec > h2 + .deflist,
.doc-sec > h2 + .spec,
.doc-sec > h2 + .linklist { border-top: 0; margin-top: 0; }
.doc-sec > h2:has(+ .tbl),
.doc-sec > h2:has(+ .faq) { border-bottom: 0; padding-bottom: 0; }
.doc-sec > h2 + .tbl,
.doc-sec > h2 + .faq { margin-top: 16px; }

/* 본문 그리드가 표의 최소 폭(480px)에 끌려 넓어지지 않도록: 표는 .tbl 안에서만 가로 스크롤 */
.doc-body { grid-template-columns: minmax(0, 1fr); }
.doc-sec, .doc-body > * { min-width: 0; }

/* ---------- 본문 삽화 ---------- */
.fig { margin: 20px 0 24px; }
.fig-media { border-radius: var(--radius); overflow: hidden; }
.fig img { display: block; width: 100%; height: auto; }
.fig-wide .fig-media { aspect-ratio: 774 / 460; background: var(--mist); }
.fig-wide img { height: 100%; object-fit: cover; }
/* 흰 배경 일러스트·부품 컷: 다크 테마에서도 흰 판 위에 둔다 */
.fig-line .fig-media, .fig-row .fig-media { background: #fff; border: 1px solid var(--line); }
.fig-line img { max-height: 300px; object-fit: contain; }
.fig-row .fig-media { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.fig-row img { aspect-ratio: 1; object-fit: contain; padding: 8px; }
.fig figcaption { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--faint); }
@media (max-width: 560px) {
  .fig-row .fig-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig-line img { max-height: 220px; }
}

/* ---------- 홈: 표기 안내 ---------- */
.typo-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.typo-home h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
.typo-home > div > p:not(.inline-link) { margin-top: 14px; color: var(--sub); }
.typo-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.typo-links a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.typo-links span { color: var(--sub); font-size: 14px; }
.typo-links a:hover strong { color: var(--wine); }
@media (max-width: 900px) { .typo-home { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- 정품 구매처 버튼 ---------- */
.shop-cta { margin-block: 24px; }
.phead .shop-cta { margin-bottom: 0; }
.btn-shop { min-height: 54px; padding: 0 26px; font-size: 17px; font-weight: 700; gap: 10px; }
@media (max-width: 768px) {
  .shop-cta .btn-shop, .pdp .btn-row .btn { width: 100%; }
  .phead:has(.shop-cta) { padding-bottom: 24px; }
  .sticky-cta { transition: transform .2s ease; }
  /* 상단 버튼이 화면에 보이는 동안에는 하단 버튼을 숨긴다 */
  body.shop-visible .sticky-cta { transform: translateY(110%); visibility: hidden; }
}

/* 좁은 화면에서 모델명이 글자 중간에 끊기지 않게 */
.tbl tbody th { white-space: nowrap; }
