/* 제철장보기 v3 — 심플 모던 "이달의 장바구니 메모"
   제목 Hahmlet 700 · 본문 Pretendard · 잉크색 버튼 · 포인트 숲 초록은 숫자·선택·데이터에만 */
:root {
  --bg: #F7F6F1;
  --surface: #FFFFFF;
  --surface-2: #EFEEE7;
  --ink: #1F221E;
  --ink-2: #3E423C;
  --muted: #6B6F66;
  --line: #E2E0D7;
  --line-2: #CFCDC3;
  --accent: #2F6B4F;
  --accent-soft: #E3EDE6;
  --chart-norm: #A3A69C;
  --focus: #1F221E;
  --sheet-shadow: 0 8px 24px -12px rgba(0, 0, 0, .12);
  --top-h: 56px;
  --max: 1120px;
  --display: Hahmlet, "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111311;
    --surface: #181A17;
    --surface-2: #20221F;
    --ink: #E8E8E2;
    --ink-2: #C6C7C0;
    --muted: #90958B;
    --line: #2A2C28;
    --line-2: #3A3D37;
    --accent: #7FAF95;
    --accent-soft: #1C2721;
    --chart-norm: #62665E;
    --focus: #E8E8E2;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px; font-weight: 500; line-height: 1.55; color: var(--ink); background: var(--bg);
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
b, strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
#main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.xs { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic.lg { width: 24px; height: 24px; }

/* 선 그림 품목 아이콘: 색 일러스트 템플릿을 선으로만 */
.lic { color: var(--ink-2); flex: none; }
.lic * { fill: none !important; stroke: currentColor !important; stroke-width: 1.5px !important; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: 1 !important; }
.lic [fill="rgba(255,255,255,.45)"] { display: none; }

/* ── 상단바 ── */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: var(--max); margin: 0 auto; height: var(--top-h); display: flex; align-items: center; gap: 16px; padding: 0 16px; }
.logo { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.topnav { display: none; gap: 2px; margin-left: 8px; }
.topnav a { padding: 8px 12px; border-radius: 10px; font-weight: 500; color: var(--muted); font-size: 14px; }
.topnav a:hover { color: var(--ink); }
@media (min-width: 860px) { .topnav { display: flex; } }

/* ── 버튼·칩 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; font-size: 16px; transition: background .15s, border-color .15s; text-align: center; }
.btn.ink, .btn.primary { background: var(--ink); color: var(--bg); }
.btn.ink:hover, .btn.primary:hover { background: var(--ink-2); }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { background: var(--surface); }
.btn.ghost[aria-pressed="true"] { border-color: var(--ink); }
.btn.block { width: 100%; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: transparent; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 700; }
.textlink { color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.textlink:hover { text-decoration-color: currentColor; }

/* ── 첫 화면: 이달의 장바구니 메모 ── */
.memo { padding: 28px 0 0; }
.memo-in { display: grid; grid-template-areas: "head" "picks" "cta"; gap: 20px; }
.memo-head { grid-area: head; }
.memo-date { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.memo-month { font-family: var(--display); font-size: clamp(36px, 10vw, 88px); line-height: 1; letter-spacing: -0.04em; margin: 10px 0 10px; font-variant-numeric: tabular-nums; }
.memo-unit { margin-left: .04em; }
.memo-lead { font-size: 16px; color: var(--ink-2); }
.memo-picks { grid-area: picks; list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.pick { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.pick-open { all: unset; cursor: pointer; flex: 1; min-width: 0; display: grid; grid-template-columns: 24px 56px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 0; border-radius: 8px; }
.pick-open:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pick-no { font-size: 12px; color: var(--muted); font-weight: 500; }
.pick-art { display: grid; place-items: center; }
.pick-art .lic { width: 56px; height: 56px; color: var(--ink); }
.pick-txt { display: flex; flex-direction: column; min-width: 0; }
.pick-txt b { font-family: var(--display); font-size: 22px; letter-spacing: -0.03em; line-height: 1.25; }
.pick-txt small { font-size: 14px; color: var(--muted); line-height: 1.45; }
.pick-open:hover b { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.memo-cta { grid-area: cta; display: flex; gap: 8px; flex-wrap: wrap; }
.memo-cta .btn { flex: 1 1 150px; }
.memo-cta .btn.ink b { font-family: var(--display); font-size: 20px; line-height: 1; }
@media (min-width: 860px) {
  .memo { padding-top: 56px; }
  .memo-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "head picks" "cta picks"; column-gap: 64px; row-gap: 28px; align-items: start; }
  .memo-head { align-self: end; }
  .memo-cta { align-self: start; }
  .memo-cta .btn { flex: 0 0 auto; }
  .pick-open { grid-template-columns: 28px 72px minmax(0, 1fr); padding: 16px 0; gap: 16px; }
  .pick-art .lic { width: 72px; height: 72px; }
  .pick-txt b { font-size: 28px; }
}

/* 12개월 띠: 막대 높이 = 그 달 제철 품목 수 */
.strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin: 32px 0 0; border-top: 1px solid var(--line); }
.mo { position: relative; border: 0; background: transparent; padding: 10px 0 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); border-radius: 0; font-variant-numeric: tabular-nums; }
.mo-bar { width: 8px; height: 36px; display: flex; align-items: flex-end; }
.mo-bar i { display: block; width: 100%; background: var(--line-2); border-radius: 2px; }
.mo b { font-size: 14px; font-weight: 700; color: var(--ink-2); line-height: 1.2; }
.mo small { font-size: 11px; line-height: 1; }
.mo:hover b { color: var(--ink); }
.mo.is-now::after { content: ''; position: absolute; top: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.mo.is-now[aria-checked="true"]::after { display: none; }
.mo[aria-checked="true"] { box-shadow: inset 0 2px 0 var(--ink); }
.mo[aria-checked="true"] b { color: var(--ink); }
.mo[aria-checked="true"] small { color: var(--accent); font-weight: 700; }
.mo[aria-checked="true"] .mo-bar i { background: var(--accent); }
.mo:focus-visible { outline-offset: -2px; }
@media (min-width: 860px) { .mo-bar { width: 12px; height: 48px; } .mo b { font-size: 16px; } .mo small { font-size: 12px; } }

/* ── 섹션 ── */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.memo + .section { margin-top: 0; }
.sec-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.sec-head h2 { font-family: var(--display); font-size: 28px; letter-spacing: -0.03em; }
.sec-head p { font-size: 14px; }
.note { margin-top: 16px; }
@media (min-width: 860px) { .section { padding: 72px 0; } }

.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
@media (min-width: 720px) { .filters { flex-direction: row; align-items: center; justify-content: space-between; } }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; min-height: 44px; color: var(--muted); }
.search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; height: 42px; color: var(--ink); font-size: 16px; }
.search:focus-within { border-color: var(--ink); }
@media (min-width: 720px) { .search { width: 300px; } }

/* 카드: 줄로 나눈 편집 그리드 */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px; transition: background .15s; }
.card:hover { background: var(--surface); }
.card-open { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 4px; flex: 1; border-radius: 6px; }
.card-open:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.card-art { width: 48px; height: 48px; margin-bottom: 6px; }
.card-art .lic { width: 48px; height: 48px; }
.card h3 { font-size: 17px; font-weight: 700; }
.card .where { font-size: 12px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.card-flags { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: calc(100% - 76px); }
.flag { font-size: 12px; font-weight: 500; padding: 1px 7px; border-radius: 4px; white-space: nowrap; border: 1px solid var(--line-2); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.flag i { font-style: normal; font-weight: 500; opacity: .75; }
.flag.new { border-color: var(--ink); color: var(--ink); font-weight: 700; }
.flag.last { color: var(--muted); border-color: var(--line); }
.flag.cheap { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 700; }
.flag.dear { color: var(--muted); border-color: var(--line); }
.empty { grid-column: 1 / -1; text-align: center; padding: 32px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* 시즌 바 (데이터) */
.sbar { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; margin-top: 6px; align-items: center; height: 11px; }
.sbar i { height: 5px; border-radius: 1px; background: var(--line); }
.sbar i.on { background: var(--accent); }
.sbar i.cur { height: 11px; background: var(--ink-2); }
.sbar i.on.cur { background: var(--accent); }
.sbar-lg { height: auto; }
.sbar-lg i { height: 26px; border-radius: 4px; font-style: normal; font-size: 12px; font-weight: 500; display: grid; place-items: center; color: var(--muted); font-variant-numeric: tabular-nums; background: var(--surface-2); }
.sbar-lg i.on { background: var(--accent); color: var(--bg); font-weight: 700; }
.sbar-lg i.cur { height: 26px; box-shadow: inset 0 0 0 2px var(--ink); }
.sbar-lg i.on.cur { box-shadow: inset 0 0 0 2px var(--ink); }


/* ── 가격 ── */
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; margin-bottom: 16px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 7px; font-weight: 500; font-size: 14px; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--bg); font-weight: 700; }
#cheap-meta b.num { color: var(--accent); }
.price-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--ink); }
@media (min-width: 860px) { .price-list { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.prow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "art main right" "spark spark spark"; align-items: center; gap: 6px 12px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.prow-art { grid-area: art; width: 40px; height: 40px; display: grid; place-items: center; }
.prow-art .lic { width: 36px; height: 36px; }
.prow-main { grid-area: main; min-width: 0; }
.prow-name { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.prow-name b { font-size: 16px; }
.prow-name small { color: var(--muted); font-size: 12px; }
.prow-val { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.prow-val b { font-size: 16px; color: var(--ink); }
.prow-right { grid-area: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.prow-spark { grid-area: spark; min-width: 0; }
@media (min-width: 560px) { .prow { grid-template-columns: 40px minmax(0, 1fr) minmax(90px, 130px) auto; grid-template-areas: "art main spark right"; } }
.pct { display: inline-flex; align-items: center; gap: 3px; font-size: 14px; font-weight: 700; padding: 1px 8px; border-radius: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pct.down { background: var(--accent-soft); color: var(--accent); }
.pct.up { border: 1px solid var(--line-2); color: var(--ink-2); }
.pct.flat { border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.pct-sub { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.prow .linkish { display: inline-block; border: 0; background: none; padding: 4px 0; font-size: 12px; font-weight: 700; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.prow .linkish:hover { text-decoration-color: currentColor; }
.spark { width: 100%; height: 40px; overflow: visible; }
.spark .ln { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spark .nm { fill: none; stroke: var(--chart-norm); stroke-width: 1; stroke-dasharray: 3 3; }
.spark .dot { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin: 12px 0 0; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 18px; height: 0; border-top: 2px solid var(--accent); }
.legend i.n { border-top: 2px dashed var(--chart-norm); }
.legend i.d { width: 6px; height: 6px; border: 0; border-radius: 50%; background: var(--accent); }
.howto { margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 14px; color: var(--ink-2); }
.howto summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.howto p { margin-top: 8px; max-width: 760px; }

/* 큰 차트 */
.chart { position: relative; margin-top: 8px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .ax { font-size: 10px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .ln { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .nm { fill: none; stroke: var(--chart-norm); stroke-width: 1.25; stroke-dasharray: 4 3; }
.chart .hair { stroke: var(--ink-2); stroke-width: 1; opacity: .5; }
.chart .hdot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.tip { position: fixed; z-index: 200; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 12px; padding: 6px 9px; border-radius: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── 달력 표 ── */
.cal-scroll { position: relative; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); max-height: 70vh; overflow-y: auto; }
.cal { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 620px; font-size: 14px; }
.cal th, .cal td { padding: 0; text-align: center; border-bottom: 1px solid var(--line); }
.cal thead th { position: sticky; top: 0; background: var(--surface); z-index: 2; padding: 8px 0; font-weight: 500; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.cal thead th.cur { color: var(--accent); font-weight: 700; }
.cal th[scope="row"] { position: sticky; left: 0; background: var(--surface); z-index: 1; text-align: left; padding: 0 10px; white-space: nowrap; font-weight: 700; min-width: 104px; border-right: 1px solid var(--line); }
.cal th[scope="row"] a { all: unset; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 6px 0; }
.cal th[scope="row"] a:focus-visible { outline: 2px solid var(--focus); }
.cal td { height: 34px; }
.cal td span { display: block; height: 16px; margin: 0 1px; }
.cal td.on span { background: var(--accent); }
.cal td.on.first span { border-radius: 8px 0 0 8px; }
.cal td.on.end span { border-radius: 0 8px 8px 0; }
.cal td.on.first.end span { border-radius: 8px; }
.cal td.cur { background: var(--surface-2); }
.cal tr.grp th { background: var(--surface-2); text-align: left; padding: 6px 10px; font-size: 12px; font-weight: 500; color: var(--muted); position: sticky; left: 0; }

/* ── 남는 소식: 신문 단처럼 줄로 나눔 ── */
.news { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--ink); }
@media (min-width: 860px) { .news { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; } }
.news li { border-bottom: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 860px) { .news li { border-bottom: 0; } }
.news-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-type { font-weight: 700; color: var(--ink-2); }
.news h3 { font-family: var(--display); font-size: 22px; letter-spacing: -0.03em; }
.news p { font-size: 15px; color: var(--ink-2); }
.news-foot { margin-top: auto; padding-top: 4px; }
.news-foot a.src { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.news-more { margin-top: 20px; }


/* ── 광고(공용 .jl-ad): 버튼·링크와 150px 이상 떨어뜨림. 채워지지 않으면 공용 스크립트가 접음 ── */
#view-home .jl-ad { margin: 96px auto; }
#view-home .jl-ad--multiplex { margin-bottom: 136px; }
.item .jl-ad { margin: 100px auto; }
.item .jl-ad--multiplex { margin-bottom: 112px; }

/* ── 품목 페이지 (#/item/<id>) ── */
.item { max-width: 800px; padding-top: 20px; padding-bottom: 8px; }
.crumb { font-size: 14px; }
.crumb .textlink { font-weight: 500; color: var(--ink-2); min-height: 44px; }
.item-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: 12px 0 18px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.item-art { width: 64px; height: 64px; display: grid; place-items: center; }
.item-art .lic { width: 64px; height: 64px; color: var(--ink); }
.item-hd { min-width: 0; }
.item-title { font-family: var(--display); font-size: clamp(36px, 10vw, 64px); line-height: 1.05; letter-spacing: -0.04em; margin: 4px 0 6px; }
.item-title:focus { outline: none; }
.item-season { font-size: 14px; color: var(--ink-2); }
.item-season b { color: var(--accent); }
.share-btn { align-self: start; min-height: 44px; padding: 0 12px; font-size: 14px; gap: 6px; }
.share-btn .ic { width: 18px; height: 18px; }
@media (max-width: 479px) { .share-btn span { display: none; } .share-btn { width: 44px; padding: 0; } }
@media (min-width: 860px) { .item { padding-top: 32px; } .item-head { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 20px; } .item-art, .item-art .lic { width: 88px; height: 88px; } }
.item-sec { padding-top: 40px; }
.item-sec > h2, .item-sec .sec-head h2 { font-family: var(--display); font-size: 28px; letter-spacing: -0.03em; margin-bottom: 8px; }
.item-sec .sec-head.row { flex-direction: row; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.item-sec .sec-head.row h2 { margin: 0; }
.sec-lead { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.sub-h { font-size: 17px; margin: 28px 0 8px; }
.towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.town { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; background: var(--surface); min-width: 0; }
.town-name { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.town-name b { font-size: 16px; }
.town-name small { font-size: 12px; color: var(--muted); }
.town-links { display: flex; flex-direction: column; gap: 2px; }
.town-link { font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); padding: 3px 0; }
.town-link:hover { text-decoration-color: currentColor; color: var(--ink); }
.town-link.sig { color: var(--accent); }
.buy { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.buy li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.buy-no { font-family: var(--display); font-size: 20px; line-height: 1.3; color: var(--accent); }
.buy b { font-size: 16px; }
.buy p { font-size: 15px; color: var(--ink-2); margin-top: 2px; }
.tips { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.tips b { color: var(--ink); }
.src-line { margin-top: 10px; }
.src-line .textlink { font-weight: 500; display: inline; }
.price-box h2 { margin-bottom: 4px; }
.basis { font-size: 12px; color: var(--muted); }
.price-now { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item .grid .card { padding: 14px; }
.empty-page { padding: 72px 0 24px; display: grid; gap: 14px; justify-items: start; }

/* ── 시트(다이얼로그: 공유 카드만): 광고 없음 ── */
.sheet { border: 1px solid var(--line); padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 92vh; background: var(--bg); color: var(--ink); border-radius: 14px 14px 0 0; box-shadow: var(--sheet-shadow); }
.sheet::backdrop { background: rgba(0, 0, 0, .45); }
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 14px; } }
.sheet[open] { animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(16px); opacity: .5; } to { transform: none; opacity: 1; } }
.sheet-in { padding: 20px 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.sheet-head { display: flex; align-items: center; gap: 14px; }
.sheet-head h2 { font-family: var(--display); font-size: 28px; letter-spacing: -0.03em; }
.sheet-head .x { margin-left: auto; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; flex: none; color: var(--ink); align-self: flex-start; }
.sheet-art { width: 64px; height: 64px; display: grid; place-items: center; flex: none; }
.sheet-art .lic { width: 60px; height: 60px; color: var(--ink); }
.facts { display: grid; gap: 0; margin: 0; border-top: 2px solid var(--ink); }
.item .facts { border-top-width: 2px; }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.facts dd { margin: 0; font-size: 16px; }
.ctas { display: grid; gap: 8px; }
.ctas:empty { display: none; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; }
.cta-row:hover { border-color: var(--ink); }
.cta-row span { display: flex; flex-direction: column; min-width: 0; }
.cta-row b { font-size: 16px; }
.cta-row small { font-size: 13px; color: var(--muted); }
.cta-row .ic { color: var(--ink); }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-actions .btn.block { grid-column: 1 / -1; }
.price-box { border-top: 1px solid var(--line); padding-top: 12px; }
.price-box h3 { font-size: 16px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.price-box h3 small { font-weight: 500; color: var(--muted); font-size: 12px; }

.status { font-size: 12px; font-weight: 700; }
.status.in, .status.new { color: var(--accent); }
.empty-p { color: var(--muted); font-size: 14px; }
.share-preview { width: 100%; max-width: 320px; margin: 0 auto; aspect-ratio: 1080 / 1350; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }

/* 토스트 */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 500; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 300; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.sheet .empty { border: 0; padding: 24px 0; text-align: left; }
/* 정책 문서 */
.doc { max-width: 760px; margin: 0 auto; padding: 32px 16px 40px; }
.doc h1 { font-size: 28px; font-weight: 700; margin: 6px 0 14px; }
.doc h2 { font-size: 20px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink-2); margin-bottom: 8px; font-size: 16px; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface-2); font-weight: 700; }
.doc .eyebrow { font-size: 14px; color: var(--muted); }
.doc h1 { font-family: var(--display); }
.item .chart { max-width: 600px; }

/* 서비스 안내 글 (정적 HTML, 첫 화면 앱 아래 · .section이 위 선과 여백을 줌) */
.svc-guide { font-size: 16px; font-weight: 400; line-height: 1.75; color: var(--ink); }
.svc-guide > * { max-width: 720px; }
.svc-guide h2 { font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; margin: 0 0 8px; }
.svc-guide h3 { font-size: 16px; font-weight: 700; line-height: 1.5; margin: 32px 0 8px; }
.svc-guide p, .svc-guide ul, .svc-guide ol { margin: 0 0 12px; }
.svc-guide ul, .svc-guide ol { padding-left: 20px; }
.svc-guide li { margin: 4px 0; }
.svc-guide .lead, .svc-guide .note { color: var(--muted); }
.svc-guide .note { font-size: 14px; }
.svc-guide a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.svc-faq details { border-bottom: 1px solid var(--line); }
.svc-faq details:first-child { border-top: 1px solid var(--line); }
.svc-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 0; font-weight: 500; }
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform .15s; }
.svc-faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.svc-faq details p { margin: 0 0 16px; }
