/* 편의점도감 — 시안(C안)을 옮긴 스타일. 모바일 우선, 960px 이상에서 PC 배치. */
:root {
  --bg: #F5F6F4; --surface: #FFFFFF; --ink: #16181A; --ink-2: #3F454B; --muted: #5B6168; --faint: #8D949B;
  --line: #E3E5E2; --line-2: #D5D8D3; --fill: #E8EAE6;
  --accent: #0E7C73; --accent-ink: #0A5C55; --tint: #EAF4F2; --tint-line: #C9DFDA; --tint-ink: #4A5A57; --tint-bar: #B9D8D2;
  --red: #B42318; --amber: #8A5A00; --amber-dot: #B98A2E; --amber-bg: #FBF0D9;
  --r-sm: 10px; --r: 12px; --r-lg: 16px; --r-xl: 20px;
  --font: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --display: "Black Han Sans", "IBM Plex Sans KR", sans-serif;
  --gutter: 20px; --max: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.3; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grow { flex: 1; min-height: 12px; }
@media (max-width: 959.98px) { .only-pc { display: none !important; } }
@media (min-width: 960px) { .only-m { display: none !important; } }
.body-text { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.65; }
.note { margin: 10px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.note a, .body-text a { font-weight: 600; text-decoration: none; }
.more { font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.h3 { font-size: 18px; font-weight: 700; }

/* 헤더 */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.header-row { display: flex; align-items: center; gap: 12px 32px; min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; flex-direction: column; gap: 4px; text-decoration: none; margin-right: auto; }
.logo { font-family: var(--display); font-size: 26px; line-height: 1; color: var(--ink); letter-spacing: 0; }
.logo-accent { color: var(--accent); }
.tagline { font-size: 12.5px; color: var(--muted); }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: var(--r); color: var(--ink); cursor: pointer; flex: 0 0 auto; }
.icon-btn:hover { background: var(--bg); }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 50px; width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 16px 40px -20px rgba(22,24,26,.4); padding: 8px; display: flex; flex-direction: column; }
.menu-panel a { padding: 12px 14px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 600; }
.menu-panel a:hover, .menu-panel a[aria-current] { background: var(--tint); color: var(--accent-ink); }
.nav { display: flex; gap: 4px 24px; flex-wrap: wrap; }
.nav a { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav a.quiet { color: var(--muted); font-weight: 400; }
.nav a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }

/* 검색 */
.search { margin: 0; }
.search-label { display: block; font-size: 14px; font-weight: 600; color: #2E3A38; margin-bottom: 8px; }
.search-box { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; }
.search-box:focus-within { box-shadow: 0 0 0 3px var(--tint); }
.search-big .search-box, .search-box.search-big { height: 56px; }

/* 칩·버튼 */
.chips-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 12px 0 2px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.chips-row .muted { font-size: 14px; flex: 0 0 auto; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); text-decoration: none; color: var(--ink); font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { border: 1.5px solid var(--ink); font-weight: 700; }
.chip-group { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: var(--r); font-size: 16px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2A2D30; }
.btn-outline { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); width: 100%; height: 48px; font-size: 15px; margin-top: 12px; }
.btn-outline svg { color: var(--ink); }
.btn-block { width: 100%; margin-top: 14px; }
.btn-small { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-size: 14px; cursor: pointer; }
.btn-small svg { color: var(--accent); }
.seg { display: flex; gap: 2px; padding: 3px; background: var(--fill); border-radius: var(--r); }
.seg button { flex: 1; height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(22,24,26,.12); }

/* 구하기 난이도 · 배지 */
.meter { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.meter-cells { display: inline-flex; gap: 2px; }
.meter-cells span { width: 7px; height: 7px; border-radius: 2px; background: var(--line-2); }
.meter-1 { color: var(--ink-2); } .meter-1 .on { background: var(--ink-2); }
.meter-2 { color: var(--amber); } .meter-2 .on { background: var(--amber-dot); }
.meter-3 { color: var(--red); } .meter-3 .on { background: var(--red); }
.meter-big { font-size: 15px; } .meter-big .meter-cells { gap: 3px; } .meter-big .meter-cells span { width: 9px; height: 9px; }
.meter-none { color: var(--muted); }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.b-re { background: var(--tint); color: var(--accent-ink); }
.b-end { background: var(--fill); color: var(--ink-2); }
.b-soon { background: var(--amber-bg); color: var(--amber); }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--tint); color: var(--accent-ink); font-size: 12px; font-weight: 700; white-space: nowrap; margin-left: 8px; vertical-align: middle; }
.status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.status .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-live { background: var(--tint); color: var(--accent-ink); }
.st-soon { background: var(--amber-bg); color: var(--amber); }
.st-end { background: var(--fill); color: var(--ink-2); }

/* 공통 블록 */
.band { background: var(--surface); border-bottom: 1px solid var(--line); padding: 20px 0 26px; }
.page-body { padding-top: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 20px; font-weight: 700; }
.page-title { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.25; }
.lead { margin: 8px 0 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 560px; }
.strong-sub { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: #2E3A38; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs svg { color: var(--faint); }
.crumbs [aria-current] { color: var(--ink); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 16px; }
.panel-tint { background: var(--tint); border-color: transparent; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.rows { list-style: none; margin: 4px 0 0; padding: 0; }
.rows li + li { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 8px; text-decoration: none; color: var(--ink); border-radius: 8px; }
.row:hover { background: #EEF0EC; }
.row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-name { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 13px; color: var(--muted); }
.trend-row .muted { display: inline-flex; align-items: center; gap: 6px; }
.rows-big .row { min-height: 72px; }
.rows-big .row-name { font-size: 17px; }

/* 첫 화면 */
.band-top { padding-top: 16px; padding-bottom: 28px; }
.home-search { padding-top: 4px; }
.band-top .section-head { margin-top: 24px; }
.h-live { display: flex; align-items: center; gap: 10px; font-size: 20px; flex-wrap: wrap; }
.h-sub { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.live { position: relative; width: 9px; height: 9px; }
.live-ring, .live-dot { position: absolute; inset: 0; border-radius: 50%; background: var(--accent); }
.live-ring { animation: ring 2.4s cubic-bezier(.22,.61,.36,1) infinite; }
.live-dot { animation: blink 2.4s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes blink { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.88); } }
@keyframes ring { 0% { transform: scale(1); opacity: .42; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes glow {
  0%,100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent), 0 14px 32px -22px color-mix(in srgb, var(--accent) 45%, transparent); }
  50% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 80%, transparent), 0 0 36px 4px color-mix(in srgb, var(--accent) 28%, transparent), 0 14px 32px -22px color-mix(in srgb, var(--accent) 45%, transparent); }
}
.hot-grid { display: flex; flex-direction: column; gap: 6px; }
.hot { display: flex; flex-direction: column; padding: 20px 20px 18px; background: var(--tint); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); animation: glow 4.8s cubic-bezier(.45,0,.55,1) infinite; }
.hot-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--tint-ink); }
.hot-meta b { margin-right: 8px; color: var(--accent); font-size: 15px; }
.hot-meta .mono { font-size: 13px; }
.hot-name { margin-top: 12px; font-size: 30px; font-weight: 700; line-height: 1.25; letter-spacing: -0.03em; }
.hot-price { margin-top: 6px; font-size: 15px; color: var(--tint-ink); }
.hot-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--tint-line); font-size: 15px; color: #2E3A38; }
.hot-btn { margin-top: 18px; width: 100%; }
.hot:hover .hot-btn { background: #2A2D30; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li + li { border-top: 1px solid var(--line); }
.rank-row { min-height: 68px; }
.rank { flex: 0 0 32px; font-size: 18px; font-weight: 700; color: var(--accent); }
.rank-row .row-main { flex: 1; }
.store-tiles { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 16px; padding: 2px var(--gutter); }
.tile { flex: 0 0 150px; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; margin: 1px; }
.tile:hover { border-color: var(--ink); }
.tile[aria-pressed="true"] { border: 2px solid var(--ink); margin: 0; }
.tile-name { font-size: 14px; font-weight: 600; }
.tile-num { font-size: 26px; font-weight: 700; line-height: 1.1; }
.tile-num small { font-size: 15px; font-weight: 600; margin-left: 2px; }
.tile-sub { font-size: 12.5px; color: var(--muted); }
.home-split { display: flex; flex-direction: column; gap: 28px; }
.home-aside { display: flex; flex-direction: column; gap: 14px; }
.ad-slot { position: relative; height: 110px; margin-top: 40px; background: #ECEEEA; border-radius: 14px; }
.ad-slot span { position: absolute; top: 8px; left: 12px; font-size: 12px; color: var(--muted); }

/* 도감 카드 */
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.card { display: flex; flex-direction: column; min-height: 132px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--ink); }
.card-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.card-name { margin-top: 8px; font-size: 17px; font-weight: 700; line-height: 1.35; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price-none { font-size: 14px; color: var(--muted); white-space: nowrap; }
.page-body > .chip-group { margin-bottom: 16px; }
.price { font-family: var(--mono); font-size: 15px; font-weight: 600; white-space: nowrap; }
.card-scroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
.card-scroll .card { flex: 0 0 230px; }
[hidden] { display: none !important; }

/* 제품 상세 */
.p-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.p-meta .mono { font-size: 13px; margin-left: auto; }
.p-name { margin-top: 12px; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.25; }
.facts { display: flex; margin: 16px 0 0; }
.facts div { display: flex; flex-direction: column; gap: 2px; padding: 0 18px; border-left: 1px solid var(--line); }
.facts div:first-child { padding-left: 0; border-left: 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-size: 15px; font-weight: 700; }
.p-grid { display: flex; flex-direction: column; gap: 32px; padding-top: 20px; }
.p-left, .p-right { display: contents; }
.p-diff { order: 1; } .p-near { order: 2; } .p-similar { order: 3; } .p-history { order: 4; }
.reasons { margin: 6px 0 0; }
.reasons div { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 0; }
.reasons div + div { border-top: 1px solid var(--tint-line); }
.reasons dt { font-size: 14px; color: var(--tint-ink); }
.reasons dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
.spark rect { fill: var(--tint-bar); } .spark rect.now { fill: var(--accent); }
.p-diff .note { color: var(--tint-ink); }
.p-buy { order: 99; position: sticky; bottom: 0; z-index: 5; margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.buy-row { display: flex; gap: 8px; }
.save-btn { width: 52px; height: 52px; border: 1px solid var(--line-2); background: var(--surface); }
.save-btn[aria-pressed="true"] { color: var(--red); border-color: var(--red); }
.save-btn[aria-pressed="true"] path { fill: currentColor; }
.buy-btn { flex: 1; height: 52px; font-size: 15px; }
.near-here { display: flex; align-items: center; gap: 6px; margin: 10px 0 2px; font-size: 14px; font-weight: 600; color: #2E3A38; }
.near-here::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.near-list { list-style: none; margin: 4px 0 0; padding: 0; }
.near-list li + li { border-top: 1px solid var(--line); }
.near-list .row { min-height: 58px; }
.near-list svg { color: var(--muted); }
.near-item { display: flex; align-items: center; gap: 8px; }
.near-item .row { flex: 1 1 auto; min-width: 0; }
.near-go { flex: 0 0 auto; text-decoration: none; color: var(--ink); }
.near-map { height: 200px; margin: 10px 0 6px; border-radius: var(--r); overflow: hidden; background: var(--fill); }
.near-place { margin-top: 12px; }
.near-place-row { display: flex; gap: 8px; margin-top: 6px; }
.near-place-row input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 16px; background: var(--surface); }
.near-place-row .btn { flex: 0 0 auto; height: 48px; padding: 0 18px; }
.history { list-style: none; margin: 10px 0 0; padding: 0; }
.history li { display: grid; grid-template-columns: 96px 14px minmax(0, 1fr); gap: 10px; padding: 8px 0; }
.h-date { font-size: 14px; color: var(--muted); }
.h-dot { margin-top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.history li.reg .h-dot { background: transparent; border: 2px solid var(--line-2); }
.history li.h-단종 .h-dot { background: var(--ink-2); }
.history li.h-단종예정 .h-dot { background: var(--amber-dot); }
.h-body { display: flex; flex-direction: column; gap: 2px; }
.h-body b { font-size: 15px; }
.h-body span { font-size: 13px; color: var(--muted); }
.link-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.ext { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; text-decoration: none; }
.quiet-link { font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }

/* 유행 비교 */
.split-head { display: flex; flex-direction: column; gap: 20px; }
.conclusion { padding: 18px 20px; }
.conclusion-text { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.6; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 12px 0 0; font-size: 14px; }
.kv dt { color: var(--tint-ink); } .kv dd { margin: 0; font-weight: 600; }
.toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.toolbar-left { display: flex; flex-direction: column; gap: 12px; }
.toolbar h2 { font-size: 19px; font-weight: 700; }
.table { display: flex; flex-direction: column; }
.t-head { display: none !important; }
.t-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "name name price" "bar bar bar" "store date diff"; gap: 8px 6px; align-items: center; padding: 14px 8px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 8px; }
.t-row:hover { background: #EEF0EC; }
.t-name { grid-area: name; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t-price { display: contents; }
.t-price .price { grid-area: price; text-align: right; }
.bar { grid-area: bar; display: block; height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 4px; background: var(--tint-bar); }
.bar span.bar-best { background: var(--accent); }
.t-store { grid-area: store; font-size: 13px; color: var(--muted); }
.t-store::after { content: " ·"; }
.t-date { grid-area: date; font-size: 13px; color: var(--muted); }
.t-diff { grid-area: diff; justify-self: end; }

/* 단종·재출시 기록 */
.archive-grid { display: flex; flex-direction: column; gap: 32px; padding-top: 24px; }
.archive-aside { display: flex; flex-direction: column; gap: 12px; }
.select select { height: 40px; padding: 0 36px 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%235B6168' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font-size: 14px; cursor: pointer; }
.month { margin-top: 24px; }
.month h2 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item { display: grid; grid-template-columns: 44px 20px minmax(0, 1fr); gap: 8px; }
.tl-date { padding-top: 14px; font-size: 14px; color: var(--muted); }
.tl-dot { position: relative; display: flex; justify-content: center; }
.tl-dot::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--line-2); }
.tl-dot::after { content: ""; position: relative; margin-top: 18px; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 3px var(--bg); background: var(--ink-2); }
.tl-dot.k-재출시::after { background: var(--accent); }
.tl-dot.k-단종예정::after { background: var(--amber-dot); }
.tl-body { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 12px 10px 14px; border-radius: 8px; }
.tl-name { font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none; }
.tl-name:hover { text-decoration: underline; }
.tl-note { font-size: 14px; color: var(--ink-2); }
.tl-src { font-size: 13px; font-weight: 400; color: var(--muted); }
.rule-list { list-style: none; margin: 6px 0 0; padding: 0; }
.rule-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.rule-list li + li { border-top: 1px solid var(--line); }

/* 소개 문서 */
.prose { padding-top: 28px; }
.wrap-narrow { max-width: calc(760px + var(--gutter) * 2); }
.prose h2[id] { scroll-margin-top: 90px; }
.prose h2 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.prose ul { padding-left: 20px; }

/* 푸터 */
.site-footer { margin-top: 64px; padding: 28px 0 36px; background: var(--surface); border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-direction: column; gap: 16px; }
.footer-main { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.footer-main p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.brand-small { text-decoration: none; } .brand-small .logo { font-size: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 14px; color: var(--muted); }
.footer-links a { color: var(--ink-2); text-decoration: none; }
body.has-buy .site-footer { padding-bottom: 110px; }

.p-buy.p-ended { order: 0; position: static; margin: 0; padding: 14px 16px; border: 0; border-radius: var(--r); background: var(--fill); }
.p-ended .body-text { margin: 0; }

/* 제보 양식 */
.report-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: 15px; font-weight: 700; padding: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: 16px; }
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--tint); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-size: 13px; font-weight: 600; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.wrap-chips { flex-wrap: wrap; margin: 4px 0 0; padding: 0; overflow: visible; }
.radio-chip { position: relative; }
.field .radio-chip input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.radio-chip span { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: 14px; cursor: pointer; }
.radio-chip input:checked + span { border: 1.5px solid var(--ink); font-weight: 700; }
.radio-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.report-submit { align-self: flex-start; min-width: 180px; }
.report-submit[disabled] { opacity: .6; cursor: progress; }
.form-msg { margin: 0; padding: 14px 16px; border-radius: var(--r); font-size: 15px; font-weight: 600; }
.form-msg.ok { background: var(--tint); color: var(--accent-ink); }
.form-msg.err { background: #FBEBEB; color: var(--red); }

/* 600px 이상: 카드 2열 */
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: 220px minmax(0, 1fr); }
}

/* 960px 이상: PC 배치 */
@media (min-width: 960px) {
  :root { --gutter: 40px; }
  .header-row { min-height: 84px; }
  .logo { font-size: 30px; }
  .tagline { font-size: 13px; }
  .brand { margin-right: 0; }
  .header-search { flex: 1 1 320px; max-width: 520px; }
  .header-search .search-box { height: 48px; }
  .nav { margin-left: auto; }
  .band { padding: 24px 0 40px; }
  .band-top { padding-top: 12px; padding-bottom: 44px; }
  .band-top .section-head { margin-top: 0; }
  .band-top .wrap { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; }
  .band-top .chips-row { grid-column: 2; grid-row: 1; margin: 0; padding: 0; overflow: visible; }
  .band-top .section-head { grid-column: 1; grid-row: 1; align-self: center; margin-bottom: 0; }
  .hot-grid { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 48px; margin-top: 20px; }
  .h-live { font-size: 26px; }
  .h-sub { font-size: 14px; }
  .hot { padding: 32px 36px; border-radius: var(--r-xl); }
  .hot-name { font-size: 48px; margin-top: 22px; line-height: 1.15; }
  .hot-price { font-size: 17px; margin-top: 10px; }
  .hot-btn { width: auto; align-self: flex-start; padding: 0 26px; }
  .rank-list { display: flex; flex-direction: column; }
  .rank-list li { flex: 1; display: flex; }
  .rank-row { flex: 1; min-height: 72px; padding: 0 10px; }
  .rank { flex-basis: 44px; font-size: 26px; color: var(--ink); }
  .rank-row .row-name { font-size: 17px; }
  .rank-row .row-sub { font-size: 14px; }
  .page-body { padding-top: 48px; }
  .section-head h2 { font-size: 26px; }
  .store-tiles { overflow: visible; margin: 0 0 24px; padding: 0; }
  .tile { flex: 1 1 0; padding: 16px 18px; }
  .tile-num { font-size: 30px; }
  .home-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card { min-height: 158px; padding: 18px; }
  .card-name { font-size: 18px; margin-top: 10px; }
  .card-scroll { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 0 0; padding: 0; overflow: visible; }
  .panel { padding: 22px 24px 18px; }
  .h3 { font-size: 19px; }
  .page-title { font-size: 52px; line-height: 1.15; letter-spacing: -0.035em; }
  .lead { font-size: 17px; line-height: 1.7; margin-top: 14px; }
  .split-head { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 24px 64px; }
  .split-head > * { flex: 1 1 460px; min-width: 0; }
  .conclusion-text { font-size: 17px; }
  /* 상세 */
  .p-name { font-size: 52px; margin-top: 14px; line-height: 1.15; }
  .p-meta { font-size: 15px; }
  .p-meta .mono { margin-left: 0; font-size: 14px; }
  .facts { margin-top: 24px; }
  .facts div { padding: 0 28px; }
  .facts dt { font-size: 14px; } .facts dd { font-size: 18px; }
  .p-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px 56px; align-items: start; padding-top: 32px; }
  .p-left { display: flex; flex-direction: column; gap: 48px; }
  .p-right { display: flex; flex-direction: column; gap: 0; position: sticky; top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px 20px; box-shadow: 0 20px 40px -28px rgba(22,24,26,.35); }
  .p-right .panel { border: 0; border-radius: 0; padding: 18px 0 0; margin-top: 18px; border-top: 1px solid var(--line); background: none; }
  .p-buy { order: 0; position: static; margin: 0; padding: 0; border: 0; background: none; }
  .p-buy .muted { margin: 0 0 6px; }
  body.has-buy .site-footer { padding-bottom: 36px; }
  .reasons div { grid-template-columns: 104px minmax(0, 1fr) auto; }
  /* 유행 비교 */
  .toolbar { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  .toolbar-left { flex-direction: row; align-items: center; gap: 24px; flex-wrap: wrap; }
  .toolbar h2 { font-size: 22px; }
  .chip-group { margin: 0; padding: 0; overflow: visible; flex-wrap: wrap; }
  .toolbar .seg { width: 420px; }
  .table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 0; }
  .t-head { display: grid !important; height: 44px; font-size: 13px; color: var(--muted); }
  .t-head:hover { background: none; }
  .t-row { grid-template-columns: minmax(0, 2.2fr) 120px minmax(0, 2fr) 140px 110px; grid-template-areas: none; gap: 20px; min-height: 68px; padding: 0 20px; border-radius: 0; }
  .t-row:last-child { border-bottom: 0; }
  .t-name, .t-store, .t-date, .t-diff { grid-area: auto; }
  .t-price { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; align-items: center; }
  .t-price .price { grid-area: auto; }
  .bar { grid-area: auto; height: 10px; }
  .t-store { font-size: 15px; color: var(--ink); } .t-store::after { content: none; }
  .t-date { font-size: 14px; color: var(--ink-2); }
  .t-diff { justify-self: start; }
  .t-price-h { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; }
  .t-price-h > span:first-child { text-align: right; }
  .t-scale { display: flex; justify-content: space-between; }
  .t-row .row-name { font-size: 16px; }
  /* 기록 */
  .archive-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-top: 32px; align-items: start; }
  .archive-aside { position: sticky; top: 24px; }
  .archive-main .toolbar .seg { width: 460px; }
  .month h2 { font-size: 20px; }
  .tl-item { grid-template-columns: 72px 20px minmax(0, 1fr); }
  .tl-date { padding-top: 16px; }
  .tl-dot::after { margin-top: 20px; }
  .tl-body { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "badge name src" "badge note src"; column-gap: 16px; row-gap: 3px; align-items: center; }
  .tl-body .badge { grid-area: badge; }
  .tl-name { grid-area: name; }
  .tl-note { grid-area: note; }
  .tl-src { grid-area: src; }
  .footer-row { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hot, .live-ring, .live-dot { animation: none; }
  .hot { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); }
}

/* ---- 편의점 색 · 필터 막대 · 도감 카드 (B안) ---- */
:root { --c-cu: #7A3E9D; --c-gs: #1C7ED6; --c-se: #EE6A1F; --c-em: #D9A100; }
[data-store="CU"] { --sc: var(--c-cu); } [data-store="GS25"] { --sc: var(--c-gs); }
[data-store="세븐일레븐"] { --sc: var(--c-se); } [data-store="이마트24"] { --sc: var(--c-em); }

/* 편의점 필터: 흰 상자 → 회색 막대 안의 탭 */
.store-tiles { display: inline-flex; gap: 4px; padding: 4px; background: var(--fill); border-radius: 14px; margin: 0 0 20px; max-width: 100%; overflow-x: auto; }
.tile { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 8px; height: 44px; padding: 0 16px; background: transparent; border: 0; border-radius: 10px; margin: 0; color: var(--ink-2); }
.tile:hover { background: rgba(255,255,255,.6); border: 0; }
.tile[aria-pressed="true"] { background: var(--ink); color: #fff; border: 0; margin: 0; }
.tile-name { font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tile:not([data-store=""]) .tile-name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sc); }
.tile-num { font-size: 14px; font-weight: 600; line-height: 1; color: var(--muted); white-space: nowrap; }
.tile-num small { font-size: 14px; margin: 0; }
.tile[aria-pressed="true"] .tile-num { color: rgba(255,255,255,.72); }
.tile-sub { display: none; }

/* 도감 카드: 위쪽 띠에 편의점 색, 모바일 2열 */
.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { min-height: 0; padding: 0; overflow: hidden; box-shadow: 0 1px 2px rgba(22,24,26,.04); }
.card-top { padding: 9px 12px; gap: 6px; font-size: 12px; background: color-mix(in srgb, var(--sc, var(--fill)) 9%, #fff); border-bottom: 1px solid color-mix(in srgb, var(--sc, var(--line)) 18%, #fff); }
.card-top span { white-space: nowrap; }
.card-top span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 700; color: color-mix(in srgb, var(--sc, var(--ink)) 75%, #000); }
.card-top .mono { color: color-mix(in srgb, var(--sc, var(--muted)) 55%, #555); }
.card-name { margin: 0 0 14px; padding: 10px 12px 0; font-size: 16px; }
.card > span:nth-child(3):not(.grow) { padding: 0 12px; }
.card-bottom { flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 12px 12px; }
.card .price-none { color: var(--faint); }

/* 옆 안내 칸: 상자 대신 굵은 선 */
.home-aside .panel { background: transparent; border: 0; border-top: 2px solid var(--ink); border-radius: 0; padding: 16px 4px 8px; }

@media (min-width: 960px) {
  .store-tiles { margin-bottom: 24px; }
  .tile { flex: 0 0 auto; padding: 0 18px; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card { min-height: 0; padding: 0; }
  .card-top { padding: 11px 18px; font-size: 13px; }
  .card-name { padding: 14px 18px 0; font-size: 18px; margin-top: 0; }
  .card > span:nth-child(3):not(.grow) { padding: 0 18px; }
  .card-bottom { flex-direction: row; align-items: center; justify-content: space-between; padding: 0 18px 16px; }
}

.price-ask { margin-left: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.price-src { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.price-src a { color: var(--muted); }
.past-head { margin-top: 32px; }

/* 제품 사진 */
.card-img { display: block; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.p-photo { margin: 12px 0 0; }
.p-photo img { display: block; width: 100%; max-height: 360px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.p-photo figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); text-align: right; }
@media (min-width: 960px) {
  .p-top.has-photo { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 40px; align-items: start; }
  .p-top.has-photo .p-photo { margin: 0; order: 0; }
}
