/* animall — open-web-platform.com
   craftspace `spaces/main/main.css` 의 토큰·타이포·컴포넌트 규칙을 이식하고 주제 톤만 동물로 바꿨다(PRD §5).
   - 구조/간격/타이포 스케일/컴포넌트 이름은 craftspace 와 동일하게 유지한다(이식 비용·학습 비용 0).
   - 바뀐 것: 강조색(코발트 → 세이지그린), 업종 색 8종, 종이색을 반 톤 따뜻하게.
   제목 Wanted Sans · 본문 IBM Plex Sans KR · 숫자/축 IBM Plex Mono.
   시그니처: 수치 아래 눈금자(.ruler) — 진료비의 "전국 대비 위치" 가 이 사이트의 킬러 표현이다. */
:root {
  --paper: #f3f5f3;
  --surface: #ffffff;
  --ink: #0f1f1a;
  --ink-2: #2d3f38;
  --muted: #5e6d66;
  --line: #dde4e0;
  --line-2: #c2cdc7;
  --brand: #0e7c5a;
  --brand-soft: #e4f3ec;
  --marker: #ffe066;
  --c: var(--brand);

  /* 업종 색 — 클래스 `.cat-<slug>` 가 Fixtures::CATS 키와 1:1 */
  --cat-hospital: #0e7c5a;
  --cat-pharmacy: #2146d0;
  --cat-grooming: #d6336c;
  --cat-boarding: #e8590c;
  --cat-funeral: #5f3dc4;
  --cat-sales: #c2255c;
  --cat-transport: #0c8599;
  /* 2차 4업종(tier 2) — 사업자용이라 채도를 한 단계 낮춰 1차 8종과 구분한다 */
  --cat-breeding: #6741d9;
  --cat-equipment: #495057;
  --cat-drugwholesale: #5f3dc4;
  --cat-import: #087f5b;
  --cat-exhibition: #2f9e44;

  /* 계열색 — 그래프 */
  --s0: #0e7c5a;
  --s1: #f08c00;
  --s2: #0c8599;

  --warn: #c92a2a;

  --display: "Wanted Sans Variable", "Wanted Sans", "IBM Plex Sans KR", -apple-system, sans-serif;
  --body: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16.5px; line-height: 1.8; letter-spacing: -0.005em;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }
.mono { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: .8rem; letter-spacing: .01em; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cat-hospital { --c: var(--cat-hospital); }
.cat-pharmacy { --c: var(--cat-pharmacy); }
.cat-grooming { --c: var(--cat-grooming); }
.cat-boarding { --c: var(--cat-boarding); }
.cat-funeral { --c: var(--cat-funeral); }
.cat-sales { --c: var(--cat-sales); }
.cat-transport { --c: var(--cat-transport); }
.cat-breeding { --c: var(--cat-breeding); }
.cat-equipment { --c: var(--cat-equipment); }
.cat-drugwholesale { --c: var(--cat-drugwholesale); }
.cat-import { --c: var(--cat-import); }
.cat-exhibition { --c: var(--cat-exhibition); }

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

/* 영업상태 — 폐업도 지우지 않고 남긴다(PRD §2.5) */
.state { display: inline-block; font-size: .74rem; font-weight: 600; padding: 1px 8px; border-radius: 3px; white-space: nowrap; }
.state.on { color: #0b5e45; background: var(--brand-soft); }
.state.off { color: #7b2b2b; background: #f6e5e5; }

/* ── header ───────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.3) blur(10px); -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; }
.brand-name small { display: block; font-family: var(--mono); font-size: .58rem; font-weight: 400; color: var(--muted); letter-spacing: .04em; line-height: 1; margin-top: 2px; }
.nav { display: flex; gap: 22px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; font-size: .92rem; color: var(--muted); text-decoration: none; padding: 18px 0 16px;
  border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); font-weight: 600; border-bottom-color: var(--brand); }

/* 모바일 헤더 — 템플릿이 갈라져도 토큰은 하나다 */
.site-header.m .header-inner { flex-wrap: wrap; gap: 0; padding-top: 10px; min-height: 52px; }
.site-header.m .nav { width: 100%; margin: 2px -16px 0; padding: 0 16px; gap: 16px; }
.site-header.m .nav a { padding: 8px 0 10px; font-size: .88rem; }

/* ── ruler (시그니처) ───────────────────────── */
.figure { font-family: var(--body); }
.figure-value { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.figure-label { margin-top: 10px; font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
.figure-note { margin-top: 10px; font-size: .75rem; color: var(--muted); }
.figure-lg .figure-value { font-size: clamp(3rem, 8vw, 4.8rem); }
.ruler { position: relative; height: 40px; margin-top: 18px; }
.ruler::before {
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 12px;
  background:
    linear-gradient(90deg, var(--ink) 1px, transparent 1px) 0 0 / 10% 100% repeat-x,
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px) 0 6px / 2% 6px repeat-x;
  border-right: 1px solid var(--ink);
}
.ruler::after { content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 1px; background: var(--ink); }
.ruler-fill { position: absolute; left: 0; top: 17px; height: 4px; width: var(--p); background: var(--c);
  transform-origin: left; animation: fill .9s cubic-bezier(.2,.7,.2,1) both .15s; }
.ruler-mark { position: absolute; left: var(--p); top: -3px; width: 0; height: 0; transform: translateX(-6px);
  border: 6px solid transparent; border-top: 9px solid var(--c); border-bottom: 0; animation: pop .4s ease both 1s; }
.ruler-tick { position: absolute; top: 24px; font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.ruler-tick.t0 { left: 0; } .ruler-tick.t50 { left: 50%; transform: translateX(-50%); } .ruler-tick.t100 { right: 0; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { opacity: 0; transform: translate(-6px, -6px); } to { opacity: 1; transform: translate(-6px, 0); } }
@media (prefers-reduced-motion: reduce) { .ruler-fill, .ruler-mark { animation: none; } }

.mini-ruler { position: relative; display: block; height: 10px; margin-top: 10px;
  background: linear-gradient(90deg, var(--line-2) 1px, transparent 1px) 0 0 / 10% 6px repeat-x; }
.mini-ruler::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line-2); }
.mini-ruler i { position: absolute; left: 0; top: 5px; height: 3px; width: var(--p); background: var(--c); border-radius: 2px; }

/* ── hero ───────────────────────── */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; gap: 36px; padding-top: 44px; padding-bottom: 44px; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; padding-top: 76px; padding-bottom: 76px; } }
.eyebrow { color: var(--brand); font-weight: 600; margin-bottom: 18px; }
.hero-title { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.045em;
  font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.08; }
.hero-lead { margin-top: 22px; max-width: 34rem; color: var(--ink-2); font-size: 1.04rem; }
.hero-plate { display: block; text-decoration: none; background: var(--paper); border: 1px solid var(--line);
  border-top: 4px solid var(--c); border-radius: 4px 4px 14px 14px; padding: 24px 24px 22px; transition: border-color .2s; }
@media (min-width: 760px) { .hero-plate { padding: 32px 36px 28px; } }
.hero-plate:hover { border-color: var(--line-2); border-top-color: var(--c); }
.plate-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; color: var(--muted); }
.plate-title { display: block; margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--line-2);
  font-family: var(--display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.03em; line-height: 1.4; }
.plate-go { display: inline-block; margin-top: 12px; font-size: .88rem; font-weight: 600; color: var(--brand); }
.plate-go::after { content: " →"; }
.hero-plate:hover .plate-go { text-decoration: underline; text-underline-offset: 4px; }

/* ── sections / cards ───────────────────────── */
.section { margin: 56px auto; }
.section.tight { margin: 32px auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.035em; }
.section-more { font-size: .88rem; font-weight: 600; color: var(--brand); text-decoration: none; white-space: nowrap; }
.section-more::after { content: " →"; }
.card-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card-grid.c4 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .card-grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .card-grid.c4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: var(--line-2); box-shadow: 0 10px 30px -18px rgba(15,31,26,.35); }
.card-link { display: flex; flex-direction: column; height: 100%; padding: 22px 22px 20px; text-decoration: none; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); }
.card-figure { display: block; margin: 22px 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.card-value { display: block; font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 2.4rem; letter-spacing: -0.05em; line-height: 1; }
.card-flabel { display: block; margin-top: 8px; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.card-title { font-family: var(--display); font-weight: 700; font-size: 1.14rem; line-height: 1.42; letter-spacing: -0.03em; }
.card:hover .card-title { color: var(--brand); }
.card-summary { margin-top: 8px; font-size: .9rem; color: var(--muted); line-height: 1.65; flex: 1; }
.card-src { margin-top: 16px; color: var(--muted); }

/* ── 업소 목록 (지역×업종 — 프로그래매틱 핵심 화면) ───────────────────────── */
.place-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.place-list > li { border-bottom: 1px solid var(--line); background: var(--surface); }
.place-link { display: grid; gap: 4px 14px; padding: 18px 18px; text-decoration: none;
  grid-template-columns: 1fr auto; align-items: baseline; }
.place-link:hover { background: var(--brand-soft); }
.place-name { font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.025em; }
.place-link:hover .place-name { color: var(--brand); }
.place-addr { grid-column: 1; color: var(--ink-2); font-size: .92rem; }
.place-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; color: var(--muted); }
.place-right { grid-column: 2; grid-row: 1 / span 2; text-align: right; }

/* ── 표 ───────────────────────── */
.table-wrap { overflow-x: auto; margin: 1.6em 0; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.5; background: var(--surface); }
table.data th, table.data td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.data thead th { border-bottom: 2px solid var(--ink); font-weight: 600; font-size: .82rem; color: var(--ink-2); }
table.data td:not(:first-child), table.data thead th:not(:first-child) { text-align: right; font-family: var(--mono); font-size: .86rem; }
table.data tbody tr:hover { background: var(--paper); }
table.data tr.is-hl { background: var(--brand-soft); }
table.data tr.is-hl td { font-weight: 600; }
table.data caption { caption-side: bottom; margin-top: 10px; font-size: .78rem; color: var(--muted); text-align: left; }

/* 정의형 표 — 업소 상세 */
.kv { margin: 0; border-top: 2px solid var(--ink); }
.kv > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 14px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: .88rem; }
.kv dd { margin: 0; color: var(--ink); }
@media (max-width: 759px) { .kv > div { grid-template-columns: 5.6rem 1fr; gap: 10px; } }

/* ── hbar (지역 비교) ───────────────────────── */
.hbar { display: grid; gap: 8px; }
.hbar-row { display: grid; grid-template-columns: minmax(5.5rem, 8.5rem) 1fr auto; align-items: center; gap: 12px; font-size: .86rem; }
.hbar-label { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { height: 12px; background: var(--paper); border-radius: 2px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: #9ec9b8; border-radius: 2px; }
.hbar-row.is-hl .hbar-fill { background: var(--brand); }
.hbar-row.is-hl .hbar-label, .hbar-row.is-hl .hbar-value { color: var(--ink); font-weight: 600; }
.hbar-value { min-width: 5.2rem; text-align: right; font-family: var(--mono); font-size: .82rem; }

/* ── chart ───────────────────────── */
.chart { margin: 2.2em 0; padding: 20px 18px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
@media (min-width: 760px) { .chart { padding: 24px 26px 16px; } }
.chart-title { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; margin-bottom: 14px; }
.chart-svg svg { display: block; width: 100%; height: auto; }
.chart-svg .grid { stroke: var(--line); stroke-width: 1; }
.chart-svg .base { stroke: var(--ink); stroke-width: 1; }
.chart-svg .ax { fill: var(--muted); font-size: 12px; font-family: var(--mono); }
.chart-svg .ln { fill: none; stroke: var(--s0); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .dot { fill: var(--s0); }
.chart-source { margin: 14px 0 0; font-size: .78rem; color: var(--muted); line-height: 1.6; }

/* ── page head ───────────────────────── */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 36px 0 30px; }
.page-title { display: flex; align-items: center; gap: 14px; margin: 12px 0 0;
  font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(1.75rem, 5vw, 2.8rem); line-height: 1.2; }
.page-title .cat-dot { width: 16px; height: 16px; border-radius: 4px; background: var(--c); flex: none; }
.page-lead { margin-top: 12px; max-width: 46rem; color: var(--ink-2); }
.page-lead.mono { color: var(--muted); margin-top: 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.empty { color: var(--muted); padding: 32px 0; }

/* 필터 줄 — 조작 설명은 쓰지 않는다(craftspace 규칙) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.chip { display: inline-block; padding: 5px 13px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); color: var(--ink-2); font-size: .86rem; text-decoration: none; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

.index-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .index-list { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
@media (min-width: 1040px) { .index-list.c3 { grid-template-columns: repeat(3, 1fr); column-gap: 32px; } }
.index-list a { display: flex; align-items: center; gap: 12px; padding: 15px 2px; border-bottom: 1px solid var(--line);
  text-decoration: none; font-weight: 600; }
.index-list a .mono { margin-left: auto; font-weight: 400; color: var(--muted); }
.index-list a:hover { color: var(--c); }
.cat-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pager a, .pager .cur { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px; border: 1px solid var(--line); border-radius: 3px; font-family: var(--mono); font-size: .86rem; text-decoration: none; }
.pager a { color: var(--brand); background: #fff; }
.pager a:hover { border-color: var(--brand); }
.pager .cur { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.pager .gap { color: var(--muted); padding: 0 2px; }

/* ── 출처 박스 — 모든 페이지에 출처+기준일 한 줄(PRD §2.5) ───────────────────────── */
.srcline { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: .82rem; color: var(--muted); }
.srcline b { font-weight: 600; color: var(--ink-2); }
.srcline a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.srcline a:hover { color: var(--brand); text-decoration-color: currentColor; }

.sources { margin: 2.2em 0 0; padding: 22px 22px 18px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 0 0 10px 10px; }
.sources-title { font-size: .82rem; font-weight: 600; color: var(--brand); margin: 0 0 12px; }
.sources ol { margin: 0; padding: 0; list-style: none; counter-reset: src; }
.sources li { counter-increment: src; display: grid; grid-template-columns: 1.8rem 1fr; column-gap: 4px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); font-size: .94rem; line-height: 1.55; }
.sources li::before { content: counter(src, decimal-leading-zero); font-family: var(--mono); font-size: .75rem; color: var(--muted); padding-top: 3px; }
.src-org { font-size: .8rem; color: var(--muted); }
.src-date { font-variant-numeric: tabular-nums; font-size: .76rem; color: var(--muted); }
.sources a { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.sources a:hover { color: var(--brand); }
.sources a::after { content: " ↗"; font-weight: 400; color: var(--muted); }

/* 공고 카드 */
.notice-card .card-link { padding: 20px; }
.notice-no { font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.notice-title { margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: 1.16rem; letter-spacing: -0.025em; }
.notice-rows { margin: 14px 0 0; display: grid; gap: 4px; font-size: .88rem; color: var(--ink-2); }
.notice-rows span { color: var(--muted); display: inline-block; min-width: 4.2rem; }
.notice-until { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: .82rem; color: var(--warn); font-weight: 600; }

/* 고지 — 입양 중개는 하지 않는다(PRD §8) */
.notice-box { margin: 1.8em 0; padding: 16px 20px; background: var(--brand-soft); border-left: 3px solid var(--brand); font-size: .92rem; line-height: 1.7; color: var(--ink-2); }
.notice-box.warn { background: #fdf0ef; border-left-color: var(--warn); }

/* ── footer ───────────────────────── */
.site-footer { margin-top: 80px; background: var(--ink); color: #a7b5ad; }
.footer-inner { display: grid; gap: 22px; padding-top: 40px; padding-bottom: 44px; font-size: .88rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto; column-gap: 48px; } }
.footer-name { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: #fff; margin-bottom: 8px; }
.footer-brand p:not(.footer-name) { max-width: 36rem; line-height: 1.7; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: flex-start; }
.footer-nav a { color: #dcebe4; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.copy { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: #77867e; }
.view-switch { grid-column: 1 / -1; }
.view-switch a { color: #dcebe4; font-weight: 600; }

/* ── 광고 자리 — 소유자 애드센스 계정 확정 후 코드 삽입(PRD §9-2) ───────────────────────── */
.ad { margin: 28px auto; min-height: 90px; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line-2); border-radius: 8px; color: var(--muted); font-family: var(--mono); font-size: .72rem;
  background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(0,0,0,.015) 10px 20px); }
.ad.inline { min-height: 110px; }

/* ── 디자인 가이드 전용 ───────────────────────── */
.guide-sec { margin: 52px auto; }
.guide-sec > h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 1.32rem; letter-spacing: -0.03em; }
.guide-sec > h2::before { content: attr(data-n) " "; font-family: var(--mono); font-size: .76rem; color: var(--line-2); font-weight: 400; }
.guide-note { margin: 0 0 20px; color: var(--muted); font-size: .88rem; max-width: 48rem; }
.swatches { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.sw { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sw i { display: block; height: 56px; }
.sw b { display: block; padding: 8px 10px 2px; font-family: var(--mono); font-size: .72rem; font-weight: 600; }
.sw span { display: block; padding: 0 10px 9px; font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.type-row { display: grid; gap: 4px 18px; grid-template-columns: 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .type-row { grid-template-columns: 11rem 1fr; align-items: baseline; } }
.type-row dt { font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.type-row dd { margin: 0; }
.guide-box { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.guide-grid2 { display: grid; gap: 20px; }
@media (min-width: 900px) { .guide-grid2 { grid-template-columns: 1fr 1fr; gap: 28px; } }
.rulebox { margin: 0; padding: 0; list-style: none; }
.rulebox li { padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); font-size: .92rem; position: relative; line-height: 1.65; }
.rulebox li::before { content: ""; position: absolute; left: 4px; top: 20px; width: 8px; height: 2px; background: var(--brand); }
.rulebox li.no::before { background: var(--warn); }
code.tok { font-family: var(--mono); font-size: .8em; background: var(--line); padding: 1px 6px; border-radius: 4px; }
