/*
  Material 3 기반 (m3.material.io, Apache-2.0)
  색: material-color-utilities로 시드 #0f7b6c에서 만든 Tonal Spot 라이트 스킴
  간격: 4dp 그리드 / 화면 여백 16dp(compact) / 컴포넌트 규격은 M3 스펙 값
*/
:root {
  /* color roles */
  --primary: #016b5d;
  --on-primary: #ffffff;
  --primary-container: #9ff2e0;
  --on-primary-container: #005046;
  --secondary: #4a635d;
  --secondary-container: #cde8e1;
  --on-secondary-container: #334b46;
  --tertiary-container: #cae6ff;
  --on-tertiary-container: #2c4a60;
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error-container: #93000a;
  --warn-container: #ffdea0;      /* 휴업용 커스텀 색(앰버 톤 90/30) */
  --on-warn-container: #5c4300;
  --surface: #f5fbf8;
  --on-surface: #171d1b;
  --on-surface-variant: #3f4946;
  --surface-lowest: #ffffff;
  --surface-low: #eff5f2;
  --surface-container: #e9efec;
  --surface-high: #e3eae6;
  --surface-highest: #dee4e1;
  --outline: #6f7976;
  --outline-variant: #bec9c5;
  --inverse-surface: #2b3230;
  --inverse-on-surface: #ecf2ef;

  /* shape */
  --shape-xs: 4px; --shape-s: 8px; --shape-m: 12px; --shape-l: 16px; --shape-xl: 28px; --shape-full: 9999px;

  /* spacing (4dp grid) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;
  --margin: 16px;

  /* motion */
  --ease-emph: cubic-bezier(.2, 0, 0, 1);
  --ease-std: cubic-bezier(.2, 0, 0, 1);

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 16px; line-height: 24px; letter-spacing: .01em;   /* body-large */
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Material Symbols */
.ms {
  font-family: 'Material Symbols Rounded';
  font-weight: normal; font-style: normal;
  font-size: 24px; line-height: 1; letter-spacing: normal;
  display: inline-block; white-space: nowrap; direction: ltr;
  -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none; flex: none;
}
.ms.fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

.app { min-height: 100vh; background: var(--surface); }
.wrap {
  max-width: 600px; margin: 0 auto;
  padding-left: max(var(--margin), env(safe-area-inset-left));
  padding-right: max(var(--margin), env(safe-area-inset-right));
}

/* ── Top app bar (small, 64dp) ── */
.top-bar {
  position: sticky; top: 0; z-index: 10;
  background: var(--surface);
  padding-top: env(safe-area-inset-top);
  transition: background-color .2s var(--ease-std);
}
.top-bar.scrolled { background: var(--surface-container); }
.top-bar .wrap { display: flex; align-items: center; gap: var(--s1); height: 64px; padding-left: max(4px, env(safe-area-inset-left)); padding-right: max(4px, env(safe-area-inset-right)); }
.icon-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  color: var(--on-surface-variant); background: none; border: 0; border-radius: var(--shape-full);
  text-decoration: none; cursor: pointer; position: relative;
}
.icon-btn:hover { background: color-mix(in srgb, var(--on-surface-variant) 8%, transparent); }
.icon-btn:active { background: color-mix(in srgb, var(--on-surface-variant) 12%, transparent); }
.bar-title {
  margin: 0; font-size: 22px; line-height: 28px; font-weight: 500;   /* title-large */
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s var(--ease-emph);
}
.top-bar.scrolled .bar-title { opacity: 1; transform: none; }
.brand { display: flex; align-items: center; gap: var(--s3); padding-left: var(--s3); color: var(--on-surface); text-decoration: none; font-size: 22px; line-height: 28px; font-weight: 600; }
.brand-mark { width: 32px; height: 32px; border-radius: var(--shape-s); background: var(--primary); color: var(--on-primary); display: grid; place-items: center; }
.brand-mark .ms { font-size: 20px; }

/* ── Headline 영역 ── */
.hero { padding: var(--s2) 0 var(--s6); }
h1 { margin: 0; font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -.01em; }  /* headline-large */
.lede { margin: var(--s2) 0 0; color: var(--on-surface-variant); font-size: 16px; line-height: 24px; }

/* ── 입력 카드 (filled card) ── */
.input-card { background: var(--surface-low); border-radius: var(--shape-xl); padding: var(--s6) var(--s4) var(--s4); }
.tf { position: relative; }
.tf input {
  width: 100%; height: 56px;
  padding: 0 var(--s12) 0 var(--s4);
  font-family: var(--font); font-size: 22px; font-weight: 600; letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  color: var(--on-surface); background: var(--surface-lowest);
  border: 1px solid var(--outline); border-radius: var(--shape-xs);
  transition: border-color .15s;
}
.tf input::placeholder { color: transparent; }
.tf label {
  position: absolute; left: 12px; top: 16px; padding: 0 4px;
  font-size: 16px; line-height: 24px; color: var(--on-surface-variant);
  background: var(--surface-lowest); pointer-events: none;
  transform-origin: left top; transition: transform .15s var(--ease-std), color .15s;
}
.tf input:focus { outline: none; border: 2px solid var(--primary); padding-left: 15px; }
.tf input:focus + label,
.tf input:not(:placeholder-shown) + label { transform: translateY(-24px) scale(.75); }
.tf input:focus + label { color: var(--primary); }
.tf input[aria-invalid="true"] { border: 2px solid var(--error); padding-left: 15px; }
.tf input[aria-invalid="true"] + label { color: var(--error); }
.tf .clear { position: absolute; right: 4px; top: 4px; }
.tf input:placeholder-shown ~ .clear { display: none; }
.supporting { margin: var(--s1) var(--s4) 0; font-size: 12px; line-height: 16px; color: var(--on-surface-variant); letter-spacing: .03em; }  /* body-small */
.supporting.error { color: var(--error); }

.btn-filled {
  display: flex; align-items: center; justify-content: center; gap: var(--s2);
  width: 100%; height: 56px; margin-top: var(--s4); padding: 0 var(--s6);
  font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: .01em;
  color: var(--on-primary); background: var(--primary);
  border: 0; border-radius: var(--shape-full);
  cursor: pointer; touch-action: manipulation;
  transition: box-shadow .2s, background-color .2s;
}
.btn-filled:hover { box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 1px 3px 1px rgba(0,0,0,.15); }
.btn-filled:active { background: color-mix(in srgb, var(--on-primary) 10%, var(--primary)); }
.btn-filled[disabled] { color: color-mix(in srgb, var(--on-surface) 38%, transparent); background: color-mix(in srgb, var(--on-surface) 12%, transparent); box-shadow: none; cursor: progress; }
.btn-filled .ms { font-size: 20px; }

/* assist chips (32dp) */
.recent { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.recent[hidden] { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: var(--s2);
  height: 32px; padding: 0 var(--s4) 0 var(--s2);
  font-size: 14px; line-height: 20px; font-weight: 500; font-variant-numeric: tabular-nums;
  color: var(--on-surface); background: var(--surface-lowest);
  border: 1px solid var(--outline-variant); border-radius: var(--shape-s); cursor: pointer;
}
.chip .ms { font-size: 18px; color: var(--primary); }
.chip:active { background: var(--surface-high); }

/* ── 결과 ── */
.result { margin-top: var(--s6); scroll-margin-top: calc(72px + env(safe-area-inset-top)); }
.result:empty { margin: 0; }
.result-card { background: var(--surface-lowest); border-radius: var(--shape-xl); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 1px 3px 1px rgba(0,0,0,.04); }
@media (prefers-reduced-motion: no-preference) {
  .result-card.enter { animation: enter .4s var(--ease-emph) both; }
}
@keyframes enter { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.verdict { padding: var(--s6); background: var(--vc); color: var(--on-vc); }
.verdict.is-active { --vc: var(--primary-container); --on-vc: var(--on-primary-container); }
.verdict.is-paused { --vc: var(--warn-container); --on-vc: var(--on-warn-container); }
.verdict.is-closed { --vc: var(--error-container); --on-vc: var(--on-error-container); }
.verdict.is-unknown { --vc: var(--surface-highest); --on-vc: var(--on-surface-variant); }
.verdict-top { display: flex; align-items: center; gap: var(--s2); }
.verdict-top .ms { font-size: 24px; }
.verdict .label { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .01em; }   /* label-large */
.verdict .num { margin-left: auto; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; opacity: .8; }
.verdict h2 { margin: var(--s4) 0 var(--s1); font-size: 24px; line-height: 32px; font-weight: 700; outline: none; }  /* headline-small */
.verdict .sub { margin: 0; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; opacity: .9; }  /* body-medium */
.nowrap { white-space: nowrap; }

/* 안내: 3-line list item 스타일 */
.notes { list-style: none; margin: 0; padding: var(--s2) 0; border-bottom: 1px solid var(--surface-high); }
.notes li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s4); padding: var(--s3) var(--s6) var(--s3) var(--s4); font-size: 14px; line-height: 20px; color: var(--on-surface-variant); }
.notes li .ms { font-size: 20px; margin-top: 0; color: var(--outline); justify-self: center; }
.notes li.warn .ms { color: var(--error); }
.notes li.good .ms { color: var(--primary); }

/* 상세: 2-line list item */
.details { margin: 0; padding: var(--s2) 0; }
.details div { padding: var(--s2) var(--s6); }
.details dt { font-size: 12px; line-height: 16px; letter-spacing: .03em; color: var(--on-surface-variant); }
.details dd { margin: 2px 0 0; font-size: 16px; line-height: 24px; font-variant-numeric: tabular-nums; }
.details dd small { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--on-surface-variant); }

.result-actions { display: flex; gap: var(--s2); padding: var(--s2) var(--s4) var(--s4); }
.btn-tonal {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 40px; padding: 0 var(--s4) 0 var(--s3);
  font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .01em;
  color: var(--on-secondary-container); background: var(--secondary-container);
  border: 0; border-radius: var(--shape-full); cursor: pointer; touch-action: manipulation;
}
.btn-tonal .ms { font-size: 18px; }
.btn-tonal:active { background: color-mix(in srgb, var(--on-secondary-container) 12%, var(--secondary-container)); }
.result-meta { margin: 0; padding: 0 var(--s6) var(--s5); font-size: 12px; line-height: 16px; color: var(--on-surface-variant); }

.state { display: flex; align-items: center; gap: var(--s3); padding: var(--s6); color: var(--on-surface-variant); font-size: 14px; }
.spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--secondary-container); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 알아두면 좋아요 (list + expand) ── */
.guide { margin-top: var(--s8); }
.section-title { margin: 0 0 var(--s2) var(--s4); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--primary); }  /* title-small */
.list-card { background: var(--surface-low); border-radius: var(--shape-xl); overflow: hidden; }
.list-card details + details { border-top: 1px solid var(--surface-high); }
.list-card summary {
  display: grid; grid-template-columns: 24px 1fr 24px; gap: var(--s4); align-items: center;
  min-height: 56px; padding: var(--s2) var(--s6) var(--s2) var(--s4);
  font-size: 16px; line-height: 24px; cursor: pointer; list-style: none;
}
.list-card summary::-webkit-details-marker { display: none; }
.list-card summary:active { background: color-mix(in srgb, var(--on-surface) 8%, transparent); }
.list-card summary .ms { color: var(--on-surface-variant); }
.list-card summary .chev { transition: transform .25s var(--ease-emph); }
.list-card details[open] .chev { transform: rotate(180deg); }
.list-card .body { padding: 0 var(--s6) var(--s5) 56px; color: var(--on-surface-variant); font-size: 14px; line-height: 22px; }
.list-card .body p { margin: 0 0 var(--s3); }
.list-card .body p:last-child { margin-bottom: 0; }
.list-card .body dl { margin: 0; }
.list-card .body dt { margin-top: var(--s3); font-weight: 600; color: var(--on-surface); }
.list-card .body dt:first-child { margin-top: 0; }
.list-card .body dd { margin: 2px 0 0; }
.list-card .body table { width: 100%; border-collapse: collapse; }
.list-card .body th, .list-card .body td { padding: var(--s2) 0; border-bottom: 1px solid var(--surface-high); text-align: left; vertical-align: top; }
.list-card .body th { font-size: 12px; font-weight: 500; }
.list-card .body td:first-child { padding-right: var(--s3); font-weight: 600; color: var(--on-surface); }
.list-card .body h3 { margin: var(--s4) 0 var(--s1); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--on-surface); }
.list-card .body h3:first-child { margin-top: 0; }

.site-foot { padding: var(--s8) var(--s4) calc(var(--s10) + env(safe-area-inset-bottom)); font-size: 12px; line-height: 16px; color: var(--on-surface-variant); }
.site-foot p { margin: 0; }

/* ── 홈 ── */
.banner {
  position: relative; overflow: hidden;
  margin-top: var(--s2); padding: var(--s6) var(--s6) var(--s8);
  border-radius: var(--shape-xl);
  background: var(--primary-container); color: var(--on-primary-container);
}
.banner h1 { position: relative; font-size: 28px; line-height: 36px; }   /* headline-medium */
.banner p { position: relative; margin: var(--s2) 0 0; font-size: 14px; line-height: 20px; max-width: 15.5em; }
.banner .deco { position: absolute; right: -14px; top: -14px; font-size: 120px; opacity: .14; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48; }

.tools-title { margin: var(--s8) 0 var(--s2) var(--s4); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--primary); }
.tools { list-style: none; margin: 0; padding: 0; background: var(--surface-low); border-radius: var(--shape-xl); overflow: hidden; }
.tools li + li { border-top: 1px solid var(--surface-high); }
.tools a {
  display: grid; grid-template-columns: 40px 1fr 24px; gap: 0 var(--s4); align-items: center;
  min-height: 88px; padding: var(--s3) var(--s6) var(--s3) var(--s4);
  color: var(--on-surface); text-decoration: none; touch-action: manipulation;
}
.tools a:active { background: color-mix(in srgb, var(--on-surface) 8%, transparent); }
@media (hover: hover) { .tools a:hover { background: color-mix(in srgb, var(--on-surface) 6%, transparent); } }
.tool-icon { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: var(--shape-m); background: var(--secondary-container); color: var(--on-secondary-container); display: grid; place-items: center; }
.tool-name { font-size: 16px; line-height: 24px; font-weight: 600; }
.tool-desc { grid-column: 2; font-size: 14px; line-height: 20px; color: var(--on-surface-variant); }
.tool-go { grid-row: 1 / span 2; grid-column: 3; color: var(--on-surface-variant); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* 데스크톱/태블릿: 앱 폭 가운데, 바깥은 한 단계 짙은 서피스 */
@media (min-width: 680px) {
  body { background: var(--surface-container); }
  .app { max-width: 600px; margin: 0 auto; }
}

/* ── 동네 상권 분석 · 지원사업 공통 ── */
.select-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.sel { position: relative; }
.sel select {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 56px; padding: 0 40px 0 var(--s4);
  font-family: var(--font); font-size: 16px; line-height: 24px; color: var(--on-surface);
  background: var(--surface-lowest); border: 1px solid var(--outline); border-radius: var(--shape-xs);
}
.sel select:focus { outline: none; border: 2px solid var(--primary); padding-left: 15px; }
.sel select:disabled { color: color-mix(in srgb, var(--on-surface) 38%, transparent); border-color: color-mix(in srgb, var(--on-surface) 12%, transparent); }
.sel label { position: absolute; left: 12px; top: -8px; padding: 0 4px; font-size: 12px; line-height: 16px; color: var(--on-surface-variant); background: var(--surface-lowest); pointer-events: none; }
.sel select:focus + label { color: var(--primary); }
.sel .ms { position: absolute; right: 12px; top: 16px; color: var(--on-surface-variant); pointer-events: none; }

.chips-field { border: 0; margin: var(--s5) 0 0; padding: 0; min-width: 0; }
.chips-field legend { padding: 0; margin-bottom: var(--s2); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--on-surface-variant); }
.chips-field + .chips-field { margin-top: var(--s4); }
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.fchip {
  display: inline-flex; align-items: center; gap: var(--s2);
  height: 32px; padding: 0 var(--s4);
  font-size: 14px; line-height: 20px; font-weight: 500;
  color: var(--on-surface-variant); background: var(--surface-lowest);
  border: 1px solid var(--outline-variant); border-radius: var(--shape-s);
  cursor: pointer; touch-action: manipulation;
}
.fchip .ms { display: none; font-size: 18px; }
.fchip[aria-checked="true"] { padding-left: var(--s2); color: var(--on-secondary-container); background: var(--secondary-container); border-color: transparent; }
.fchip[aria-checked="true"] .ms { display: inline-block; }
.input-card .supporting { margin-top: var(--s4); }

.notice {
  display: flex; gap: var(--s3); align-items: flex-start;
  margin-bottom: var(--s3); padding: var(--s3) var(--s4);
  border-radius: var(--shape-l); background: var(--tertiary-container); color: var(--on-tertiary-container);
  font-size: 14px; line-height: 20px;
}
.notice .ms { font-size: 20px; }

.r-card { background: var(--surface-lowest); border-radius: var(--shape-xl); padding: var(--s6); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 1px 3px 1px rgba(0,0,0,.04); }
.r-card + .r-card { margin-top: var(--s3); }
@media (prefers-reduced-motion: no-preference) { .r-card.enter { animation: enter .4s var(--ease-emph) both; } .r-card.enter:nth-child(3) { animation-delay: .04s; } .r-card.enter:nth-child(4) { animation-delay: .08s; } }
.r-where { display: flex; align-items: center; gap: var(--s1); margin: 0; font-size: 14px; line-height: 20px; color: var(--on-surface-variant); }
.r-where .ms { font-size: 18px; color: var(--primary); }
.r-headline { margin: var(--s2) 0 0; font-size: 24px; line-height: 32px; font-weight: 700; }
.r-headline em { font-style: normal; color: var(--primary); }
.r-title { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s4); font-size: 16px; line-height: 24px; font-weight: 600; }
.r-title .ms { font-size: 20px; color: var(--primary); }
.r-text { margin: 0; font-size: 16px; line-height: 24px; }
.r-text b { font-weight: 700; }
.r-sub { margin: var(--s1) 0 0; font-size: 14px; line-height: 20px; color: var(--on-surface-variant); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-top: var(--s5); }
.stat { padding: var(--s3) var(--s3) var(--s4); border-radius: var(--shape-l); background: var(--surface-low); }
.stat dt { font-size: 12px; line-height: 16px; color: var(--on-surface-variant); }
.stat dd { margin: var(--s1) 0 0; font-size: 22px; line-height: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat dd small { font-size: 13px; font-weight: 500; margin-left: 1px; }
.stat.up dd { color: var(--primary); }
.stat.down dd { color: var(--error); }

.legend { display: flex; gap: var(--s4); margin: 0 0 var(--s3); font-size: 12px; line-height: 16px; color: var(--on-surface-variant); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart svg { display: block; width: 100%; height: auto; }

.meter { height: 8px; margin: var(--s3) 0 var(--s2); border-radius: var(--shape-full); background: var(--secondary-container); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: var(--shape-full); background: var(--primary); }
.kv { display: grid; gap: var(--s4); }
.kv > div + div { padding-top: var(--s4); border-top: 1px solid var(--surface-high); }

.hbars { display: grid; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.hbars li { display: grid; grid-template-columns: 5.5em 1fr 3em; gap: var(--s3); align-items: center; font-size: 14px; line-height: 20px; }
.hbars .bar { height: 12px; border-radius: var(--shape-full); background: var(--surface-high); overflow: hidden; }
.hbars .bar i { display: block; height: 100%; border-radius: var(--shape-full); background: var(--primary); opacity: .85; }
.hbars li:first-child .bar i { opacity: 1; }
.hbars .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--on-surface-variant); }

.r-meta { margin: var(--s4) var(--s4) 0; font-size: 12px; line-height: 16px; color: var(--on-surface-variant); }

/* 지원사업 목록 */
.count-line { margin: 0 0 var(--s3) var(--s4); font-size: 14px; line-height: 20px; color: var(--on-surface-variant); }
.count-line b { color: var(--on-surface); }
.program { display: block; padding: var(--s5) var(--s5) var(--s4); border-radius: var(--shape-xl); background: var(--surface-lowest); color: var(--on-surface); text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 1px 3px 1px rgba(0,0,0,.04); }
.program + .program { margin-top: var(--s3); }
.program:active { background: var(--surface-low); }
.program-top { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.dday { height: 24px; padding: 0 var(--s2); border-radius: var(--shape-s); display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; color: var(--on-primary-container); background: var(--primary-container); font-variant-numeric: tabular-nums; }
.dday.soon { color: var(--on-error-container); background: var(--error-container); }
.dday.none { color: var(--on-surface-variant); background: var(--surface-high); }
.tag { height: 24px; padding: 0 var(--s2); border-radius: var(--shape-s); display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; color: var(--on-surface-variant); border: 1px solid var(--outline-variant); }
.program h3 { margin: var(--s3) 0 var(--s1); font-size: 16px; line-height: 24px; font-weight: 600; }
.program .org { margin: 0; font-size: 14px; line-height: 20px; color: var(--on-surface-variant); }
.program-foot { display: flex; align-items: center; justify-content: space-between; margin-top: var(--s3); font-size: 12px; line-height: 16px; color: var(--on-surface-variant); font-variant-numeric: tabular-nums; }
.program-foot .go { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--primary); }
.program-foot .go .ms { font-size: 18px; }
.empty { padding: var(--s8) var(--s6); text-align: center; border-radius: var(--shape-xl); background: var(--surface-low); color: var(--on-surface-variant); font-size: 14px; line-height: 20px; }
.sel-dong { margin-top: var(--s4); }
.sel select option:disabled { color: var(--outline); }
.r-headline:focus, .r-headline:focus-visible { outline: none; }
.foot-links { display: flex; gap: var(--s2); margin-bottom: var(--s2) !important; }
.foot-links a { color: var(--on-surface-variant); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
/* 정적 안내 페이지(소개·개인정보처리방침) */
.doc { padding-bottom: var(--s8); }
.doc h2 { margin: var(--s8) 0 var(--s2); font-size: 18px; line-height: 26px; font-weight: 700; }
.doc p, .doc li { font-size: 15px; line-height: 24px; color: var(--on-surface-variant); }
.doc ul { padding-left: 20px; }
/* 광고 자리: 광고를 켜기 전까지는 숨김. 켜면 자리를 미리 잡아 화면 밀림(CLS)을 막는다 */
.ad-slot { display: none; }
html.ads-on .ad-slot { display: block; min-height: 120px; margin: var(--s3) 0; border-radius: var(--shape-l); overflow: hidden; }
html.ads-on .ad-slot::before { content: '광고'; display: block; font-size: 11px; color: var(--outline); margin: 0 0 4px var(--s1); }
html.ads-on .result:empty + .ad-after-result { display: none; }
.program + .ad-slot + .program { margin-top: var(--s3); }

/* ── 지역별 상권 정적 페이지 ── */
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s1); margin: var(--s2) 0 0; font-size: 12px; line-height: 16px; color: var(--on-surface-variant); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.facts { margin: var(--s3) 0 0; padding-left: 1.2em; font-size: 16px; line-height: 26px; }
.facts li + li { margin-top: var(--s2); }
.facts b { color: var(--primary); }
.table-scroll { overflow-x: auto; margin: 0 calc(var(--s2) * -1); }
.area-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.area-table th, .area-table td { padding: var(--s3) var(--s1); border-bottom: 1px solid var(--surface-high); text-align: right; white-space: nowrap; }
.area-table thead th { font-size: 12px; font-weight: 500; color: var(--on-surface-variant); }
.area-table th[scope="row"], .area-table thead th:first-child { text-align: left; }
.area-table th[scope="row"] a { color: var(--primary); font-weight: 600; text-decoration: none; }
.area-table tbody tr:last-child > * { border-bottom: 0; }
.hbars-wide li { grid-template-columns: minmax(5.5em, max-content) 1fr 5.5em; }
.hbars-wide .n { white-space: nowrap; }
.area-cta { margin: var(--s6) 0 0; text-decoration: none; }
.area-links { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.area-links a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s4); border: 1px solid var(--outline-variant); border-radius: var(--shape-s); color: var(--on-surface); font-size: 14px; text-decoration: none; }
.area-links a:hover { background: var(--surface-low); }
.area-links small { color: var(--on-surface-variant); font-size: 12px; }
.section-title a { color: inherit; text-decoration: none; }
.area-entry { margin-top: var(--s4); }
