:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --surface: #fffdfa;
  --surface-2: #eef4f0;
  --ink: #17252a;
  --ink-soft: #526166;
  --muted: #7c888b;
  --line: #dde4e0;
  --brand: #0e6251;
  --brand-on: #ffffff;
  --brand-soft: #dff2eb;
  --accent: #e38b32;
  --accent-soft: #fff0dc;
  --danger: #b44343;
  --focus: #2a9d8f;
  --shadow: 0 14px 38px rgba(23, 37, 42, .07);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121a1b;
    --surface: #1c2829;
    --surface-2: #203332;
    --ink: #f2f7f4;
    --ink-soft: #bed0ca;
    --muted: #8da09b;
    --line: #304342;
    --brand: #79d0b5;
    --brand-on: #102b24;
    --brand-soft: #1e4339;
    --accent: #f3b86a;
    --accent-soft: #4a351f;
    --danger: #ed8f8f;
    --focus: #79d0b5;
    --shadow: 0 16px 38px rgba(0, 0, 0, .18);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121a1b; --surface: #1c2829; --surface-2: #203332;
  --ink: #f2f7f4; --ink-soft: #bed0ca; --muted: #8da09b; --line: #304342;
  --brand: #79d0b5; --brand-soft: #1e4339; --accent: #f3b86a; --accent-soft: #4a351f;
  --brand-on: #102b24;
  --danger: #ed8f8f; --focus: #79d0b5; --shadow: 0 16px 38px rgba(0,0,0,.18);
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Malgun Gothic", "맑은 고딕", -apple-system, "Apple SD Gothic Neo", system-ui, sans-serif; font-size: 15px; line-height: 1.7; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--brand); color: var(--brand-on); font-size: 20px; font-weight: 800; }
.brand strong, .brand small { display: block; line-height: 1.2; }
.brand strong { font-size: 17px; letter-spacing: -.04em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: .02em; }
.main-nav { display: flex; gap: 20px; margin-left: auto; }
.main-nav a { color: var(--ink-soft); text-decoration: none; font-size: 13px; }
.main-nav a:hover { color: var(--brand); }
.theme-toggle { min-height: 36px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-soft); padding: 0 12px; font-size: 12px; }
.page-section { padding: 62px 0 100px; }
.home-section { padding-top: 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; align-items: end; }
.eyebrow { margin: 0 0 9px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .14em; line-height: 1.4; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; letter-spacing: -.055em; line-height: 1.25; }
h1 { font-size: clamp(25px, 4vw, 40px); }
h1 em, h2 em { color: var(--brand); font-style: normal; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
.hero-lede { max-width: 620px; margin: 20px 0 18px; color: var(--ink-soft); font-size: 16px; }
.hero-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.note-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.hero-stamp { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 22px; box-shadow: var(--shadow); }
.hero-stamp span, .hero-stamp strong { display: block; }
.stamp-label { color: var(--muted); font-size: 12px; }
.hero-stamp strong { margin: 5px 0 2px; font-size: 39px; letter-spacing: -.08em; line-height: 1; }
.hero-stamp span:last-child { color: var(--ink-soft); font-size: 13px; }
.search-panel { margin-top: 50px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 25px; box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.compact-heading { align-items: center; margin-bottom: 16px; }
.section-note, .result-count, .form-hint { color: var(--muted); font-size: 12px; }
.search-form { display: grid; grid-template-columns: 1fr auto auto; gap: 9px; }
.search-input-wrap { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 15px; color: var(--brand); font-size: 24px; line-height: 1; transform: translateY(-1px); }
.search-input-wrap input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--ink); padding: 0 14px 0 43px; }
.search-input-wrap input::placeholder { color: var(--muted); }
.button { min-height: 42px; border-radius: 10px; padding: 0 16px; border: 1px solid transparent; font-weight: 700; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.button-primary { background: var(--brand); color: var(--brand-on); }
.button-primary:hover { filter: brightness(.94); }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--brand); }
.button-quiet { border-color: transparent; background: transparent; color: var(--ink-soft); }
.button-quiet:hover, .button-secondary:hover { border-color: var(--brand); }
.form-hint { margin: 10px 0 0; }
.content-section, .detail-block, .faq-section { margin-top: 62px; }
.complex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.complex-card { position: relative; display: flex; min-height: 230px; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 21px; text-decoration: none; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.complex-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); }
.card-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.card-tag { border-radius: 999px; background: var(--brand-soft); color: var(--brand); padding: 4px 8px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.complex-card h3 { max-width: 220px; }
.card-address { margin: 10px 0 0; color: var(--ink-soft); font-size: 13px; }
.card-bottom { display: flex; align-items: end; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 15px; }
.card-meta span, .card-meta strong { display: block; }
.card-meta span { color: var(--muted); font-size: 11px; }
.card-meta strong { margin-top: 2px; font-size: 17px; font-variant-numeric: tabular-nums; }
.card-arrow { color: var(--brand); font-size: 22px; }
.card-action { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); font-size: 12px; font-weight: 800; white-space: nowrap; }
.card-action span { font-size: 19px; line-height: 1; }
.empty-state { border: 1px dashed var(--line); border-radius: 16px; padding: 40px 18px; text-align: center; }
.empty-icon { color: var(--brand); font-size: 32px; }
.empty-state p { color: var(--ink-soft); margin: 6px 0 16px; }
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 62px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.info-strip > div { display: flex; gap: 13px; background: var(--surface); padding: 20px; }
.info-number { color: var(--accent); font-size: 13px; font-weight: 800; }
.info-strip strong { font-size: 14px; }
.info-strip p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.guide-section { margin-top: 62px; }
.guide-lead { max-width: 760px; margin: -4px 0 18px; color: var(--ink-soft); font-size: 14px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.guide-card { display: flex; min-height: 248px; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 20px; }
.guide-card h3 { margin: 8px 0 9px; font-size: 17px; line-height: 1.4; }
.guide-card > p:not(.card-label) { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.guide-link { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 18px; color: var(--brand); font-size: 13px; font-weight: 800; text-decoration: none; }
.guide-link:hover { text-decoration: underline; }
.guide-link span { font-size: 17px; line-height: 1; }
.detail-guide-copy { max-width: 900px; margin: -3px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.detail-guide-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 17px 4px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; float: right; color: var(--brand); font-size: 20px; font-weight: 400; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { max-width: 720px; margin: -5px 30px 17px 4px; color: var(--ink-soft); font-size: 13px; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 30px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.footer-grid strong { font-size: 14px; }
.footer-grid span, .footer-grid p, .footer-bottom { color: var(--muted); font-size: 12px; }
.footer-grid p { margin: 5px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 25px; padding-top: 14px; border-top: 1px solid var(--line); }
.footer-bottom a { color: var(--brand); text-decoration: none; }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 13px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--brand); text-decoration: none; }
.detail-section { padding-top: 34px; }
.detail-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: 37px; }
.detail-heading h1 { font-size: clamp(26px, 4vw, 38px); }
.detail-heading h1 em { color: var(--brand); font-size: .68em; }
.address { margin: 11px 0 0; color: var(--ink-soft); font-size: 14px; }
.summary-layout { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 10px; margin-top: 32px; }
.summary-card { min-height: 132px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); padding: 18px; }
.summary-main { border-color: var(--brand); background: var(--brand-soft); }
.card-label { margin: 0 0 7px; color: var(--muted); font-size: 11px; }
.summary-main .card-label { color: var(--brand); }
.summary-value { display: block; font-size: 24px; letter-spacing: -.06em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.summary-card > span { display: block; margin-top: 7px; color: var(--ink-soft); font-size: 12px; }
.summary-main > span { color: var(--brand); }
.profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-grid div { padding: 14px 15px 14px 0; }
.profile-grid dt { color: var(--muted); font-size: 11px; }
.profile-grid dd { margin: 4px 0 0; font-weight: 700; font-size: 14px; }
.year-links { display: flex; flex-wrap: wrap; gap: 8px; }
.year-link { display: inline-flex; align-items: center; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--brand); padding: 0 15px; text-decoration: none; font-weight: 700; }
.year-link:hover, .year-link.current { border-color: var(--brand); background: var(--brand-soft); }
.trend-block { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 22px; }
.trend-chart { display: grid; grid-template-columns: repeat(auto-fit, minmax(55px, 1fr)); align-items: end; gap: 9px; min-height: 190px; border-bottom: 1px solid var(--line); padding: 12px 5px 0; }
.bar-item { display: grid; grid-template-rows: 1fr auto auto; align-items: end; min-width: 0; height: 160px; text-align: center; }
.bar-track { display: flex; height: 115px; align-items: end; justify-content: center; }
.bar { width: min(30px, 72%); min-height: 4px; border-radius: 7px 7px 0 0; background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent))); }
.bar-value { margin-top: 6px; color: var(--ink-soft); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-label { margin-top: 3px; color: var(--muted); font-size: 11px; }
.comparison-block { border-top: 3px solid var(--accent); }
.comparison-intro { max-width: 820px; margin: -2px 0 17px; color: var(--ink-soft); font-size: 13px; }
.comparison-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.comparison-card { display: flex; min-height: 230px; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 17px; }
.comparison-card.is-target { border-color: var(--brand); background: var(--brand-soft); }
.comparison-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.comparison-role { color: var(--brand); font-size: 11px; font-weight: 800; }
.comparison-arrow { color: var(--muted); font-size: 18px; }
.comparison-card h3 { margin: 19px 0 7px; font-size: 16px; line-height: 1.35; }
.comparison-area, .comparison-meta { margin: 0; color: var(--ink-soft); font-size: 12px; }
.comparison-price { display: block; margin: auto 0 4px; color: var(--brand); font-size: 23px; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.comparison-source { display: block; margin-top: 14px; color: var(--brand); font-size: 11px; line-height: 1.45; text-decoration: none; }
.comparison-source:hover, .comparison-footnote a:hover { text-decoration: underline; }
.comparison-footnote { margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.comparison-footnote a { color: var(--brand); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.data-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table th { background: var(--bg); color: var(--muted); font-size: 11px; font-weight: 700; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table td:first-child { color: var(--ink-soft); font-weight: 700; }
.data-table td strong { color: var(--brand); }
.data-table td.missing { color: var(--muted); font-weight: 400; }
.month-select-label { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.month-select-label select { min-height: 38px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); padding: 0 10px; }
.selected-month-summary { margin: -2px 0 13px; color: var(--ink-soft); font-size: 13px; }
.source-note { margin-top: 28px; border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 15px 17px; }
.terms-section { padding-top: 34px; }
.terms-heading { max-width: 820px; margin-top: 38px; }
.terms-heading h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.05em; }
.terms-heading p:not(.eyebrow) { margin: 14px 0 0; color: var(--ink-soft); }
.terms-block { max-width: 860px; margin-top: 38px; }
.terms-block h2 { margin: 0 0 12px; font-size: 20px; }
.terms-block p { margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.terms-block ul { margin: 0; padding-left: 21px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.terms-block a { color: var(--brand); }
.terms-source-list { margin-top: 6px !important; }
.terms-note { display: flex; flex-wrap: wrap; gap: 12px 22px; max-width: 860px; margin-top: 42px; border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 15px 17px; color: var(--ink-soft); font-size: 13px; }
.terms-note strong { color: var(--ink); }
.source-note strong { font-size: 13px; }
.source-note p { margin: 4px 0 0; color: var(--ink-soft); font-size: 12px; }
.year-page .summary-layout { margin-top: 27px; }

@media (max-width: 900px) {
  .summary-layout { grid-template-columns: repeat(2, 1fr); }
  .summary-main { grid-column: span 2; }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 36px, 560px); }
  .header-inner { min-height: 68px; gap: 10px; }
  .main-nav { display: none; }
  .theme-toggle { margin-left: auto; }
  .page-section { padding-top: 42px; padding-bottom: 68px; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-stamp { max-width: 210px; padding: 16px; }
  .hero-stamp strong { font-size: 28px; white-space: nowrap; }
  .search-panel { margin-top: 38px; padding: 18px; }
  .search-form { grid-template-columns: 1fr auto; }
  .search-input-wrap { grid-column: 1 / -1; }
  .button-quiet { grid-column: 2; grid-row: 2; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .compact-heading { align-items: center; flex-direction: row; }
  .info-strip { grid-template-columns: 1fr; }
  .info-strip > div { padding: 15px 17px; }
  .footer-grid { grid-template-columns: 1fr; gap: 15px; }
  .footer-bottom { align-items: start; flex-direction: column; }
  .detail-heading { align-items: start; flex-direction: column; margin-top: 28px; }
  .summary-layout { grid-template-columns: 1fr 1fr; }
  .summary-main { grid-column: span 2; }
  .summary-card { min-height: 116px; padding: 14px; }
  .summary-value { font-size: 20px; }
  .profile-grid { grid-template-columns: 1fr 1fr; }
  .profile-grid div { padding: 12px 8px 12px 0; }
  .guide-grid { grid-template-columns: 1fr; }
  .detail-guide-links { align-items: flex-start; flex-direction: column; gap: 4px; }
  .trend-block { padding: 17px 13px; }
  .comparison-grid { grid-template-columns: 1fr; }
  .comparison-card { min-height: 196px; }
  .comparison-price { font-size: 21px; }
  .trend-chart { gap: 5px; }
  .bar-value { font-size: 9px; }
  .month-select-label { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
