/* ============================================================
   gabl — 전국 공영도매시장 경락가 조회
   디자인 시스템 v5
   팔레트: 에메랄드 그린(시장/신선) + 앰버 골드(낙찰가) + 크림 그린 배경
   폰트: Pretendard → Nanum Gothic → system-ui
   radius: 8px 통일 (기존 0 → 부드럽게)
============================================================ */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable.css');

:root {
  /* 그린 팔레트 (자연·신선·신뢰) */
  --g900: #052e16;
  --g800: #14532d;
  --g700: #166534;
  --g600: #16803c;  /* 메인 액센트 */
  --g500: #22c55e;
  --g400: #4ade80;
  --g100: #dcfce7;
  --g050: #f0fdf4;

  /* 앰버 팔레트 (낙찰가·강조) */
  --a800: #92400e;
  --a600: #d97706;  /* 가격 강조 */
  --a200: #fde68a;
  --a050: #fffbeb;

  /* 중성 (슬레이트) */
  --n900: #0f172a;
  --n800: #1e293b;
  --n600: #475569;
  --n400: #94a3b8;
  --n200: #e2e8f0;
  --n100: #f1f5f9;
  --n050: #f8fafc;

  /* 시맨틱 */
  --bg:          #f2f5f0;   /* 크림 그린 배경 */
  --panel:       #ffffff;
  --panel-2:     #f6f9f4;   /* 홀짝 행 배경 */
  --border:      #d1e4cb;   /* 그린 계열 경계선 */
  --ink:         var(--n900);
  --muted:       var(--n600);

  --accent:      var(--g600);
  --accent-soft: var(--g050);
  --accent-hover:#15803d;

  --price:       var(--a600);   /* 낙찰가·가격 */
  --price-soft:  var(--a050);
  --price-deep:  var(--a800);

  --up:   #ef4444;   /* 전일 대비 상승 */
  --down: #3b82f6;   /* 전일 대비 하락 */

  /* 시장 배지 */
  --seoul:    var(--g600);
  --seoul-bg: var(--g050);

  /* 기타 */
  --eomgung:    #0f766e;
  --eomgung-bg: #f0fdfa;
  --banyeo:     #b45309;
  --banyeo-bg:  var(--a050);

  --body: 'Pretendard Variable', 'Nanum Gothic', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 8px;
  --radius-sm: 4px;
  --radius-pill: 999px;
}

html { font-size: 16px; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  padding: 20px 16px 40px;
  -webkit-user-select: none; user-select: none;
  letter-spacing: -0.01em;
}
.price-table, input, select, textarea {
  -webkit-user-select: text; user-select: text;
}
.board { max-width: 1180px; margin: 0 auto; }

/* ---------- 트리맵 ---------- */
.treemap-wrap {
  background: var(--panel); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 12px; margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(5,46,22,0.06);
}
.treemap-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.treemap-title { font-size: 0.9rem; font-weight: 800; color: var(--g700); }
.treemap-sub { font-size: 0.74rem; color: var(--muted); }
.treemap-box {
  position: relative; width: 100%; height: 220px;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--panel-2);
}
.treemap-tile {
  position: absolute; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-align: center; line-height: 1.15;
  border: 1.5px solid rgba(255,255,255,0.25); border-radius: 5px;
  padding: 2px; box-sizing: border-box;
  font-family: var(--body); cursor: pointer;
  transition: filter 0.12s, transform 0.12s;
}
.treemap-tile:hover { filter: brightness(1.12); transform: scale(1.025); z-index: 2; }
.treemap-tile-name { font-weight: 800; word-break: keep-all; }
.treemap-tile-pct { font-family: var(--mono); opacity: 0.85; margin-top: 2px; }
.tile-lg .treemap-tile-name { font-size: 1.05rem; }
.tile-lg .treemap-tile-pct { font-size: 0.82rem; }
.tile-md .treemap-tile-name { font-size: 0.86rem; }
.tile-md .treemap-tile-pct { font-size: 0.7rem; }
.tile-sm .treemap-tile-name { font-size: 0.7rem; }
.tile-sm .treemap-tile-pct { font-size: 0.62rem; }
.treemap-tile:nth-child(n+8) { color: var(--g900); }

/* ---------- 헤더 ---------- */
.board-header {
  background: var(--panel); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px 24px; margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(5,46,22,0.07);
}
.site-banner-img {
  display: block; width: calc(100% + 56px); max-width: calc(100% + 56px);
  margin: -32px -28px 18px; height: auto; border-radius: var(--radius) var(--radius) 0 0;
}
.header-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.title-home-btn { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; background: transparent; border: none; padding: 0; cursor: pointer; text-align: left; }
.live-tag { display: inline-flex; align-items: center; gap: 8px; }
.dot {
  position: relative; width: 10px; height: 10px; border-radius: 50%; background: #ef4444;
}
.dot::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 50%; background: #ef4444; animation: live-ripple 1.6s infinite;
}
@keyframes live-ripple {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.8); opacity: 0; }
}
.live-label { font-weight: 800; font-size: 0.95rem; color: #ef4444; letter-spacing: 0.08em; }
.header-sub { font-size: 1.45rem; color: var(--g800); font-weight: 800; }

.global-home-btn {
  padding: 9px 16px; font-size: 0.88rem; font-weight: 700; border-radius: var(--radius);
  border: 1.5px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer;
}
.global-home-btn:hover { background: var(--accent-hover); }

.site-meta-row { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; color: var(--muted); }
.site-meta-item { white-space: nowrap; }
.site-meta-dot { opacity: 0.4; }

.board-title { font-family: var(--body); font-size: 2.6rem; font-weight: 800; color: var(--g800); letter-spacing: -0.03em; margin-bottom: 10px; line-height: 1.1; }

.maker-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.84rem; font-weight: 600; color: var(--g700);
  background: var(--g050); border: 1px solid var(--g100); border-radius: var(--radius-pill);
  padding: 5px 12px; margin-bottom: 12px;
}
.maker-tag strong { font-weight: 800; }

.header-bottom-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border);
}
.board-desc { color: var(--muted); font-size: 0.96rem; font-weight: 600; }

.font-control-row { display: flex; align-items: center; gap: 8px; }
.font-label { font-size: 0.82rem; color: var(--muted); }
.font-btn {
  width: 32px; height: 30px; font-size: 0.95rem; font-weight: 600;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--ink); cursor: pointer;
}
.font-btn:hover { background: var(--g050); border-color: var(--accent); }

/* ---------- 메인 탭 ---------- */
.main-tabs { display: flex; flex-wrap: nowrap; gap: 5px; margin-bottom: 0; }
.main-tab-btn {
  padding: 10px 6px; font-size: 0.88rem; font-weight: 700; font-family: var(--body);
  border: 1.5px solid var(--g800); background: var(--g800); color: rgba(255,255,255,0.75);
  cursor: pointer; border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none; margin-bottom: -1px; transition: background 0.15s, color 0.15s;
  text-align: center; line-height: 1.3; flex: 1 1 0; min-width: 0;
}
.main-tab-btn.active {
  color: var(--g800); background: var(--panel); border-color: var(--border);
  box-shadow: 0 -2px 8px rgba(5,46,22,0.06);
}
.main-tab-btn:hover:not(.active) { background: var(--g900); color: #fff; }
.main-tab-btn.theme-market-tab.active {
  background: var(--panel); border-color: var(--border); color: var(--g700);
}

/* ---------- 본문 패널 ---------- */
.board-main {
  background: var(--panel); border: 1.5px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 22px;
  box-shadow: 0 2px 8px rgba(5,46,22,0.06);
}
.theme-market { background: linear-gradient(160deg, var(--g050) 0%, var(--panel) 140px); }

/* ---------- 상단 날짜 행 ---------- */
.panel-top-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-top-row[hidden] { display: none; }
.item-search-group { flex: 1 1 320px; display: flex; gap: 8px; }
.item-search-input { flex: 1 1 auto; min-width: 160px; }
.panel-group { display: flex; align-items: center; gap: 8px; }
.panel-label {
  font-size: 0.74rem; font-weight: 800; color: var(--accent); background: var(--accent-soft);
  padding: 3px 10px; border-radius: var(--radius-pill); letter-spacing: 0.01em;
}
.date-input {
  font-size: 0.92rem; padding: 7px 10px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--panel); color: var(--ink);
}
.date-input:focus { outline: none; border-color: var(--accent); }
.day-of-week-label { font-size: 0.85rem; font-weight: 800; color: var(--g700); white-space: nowrap; }
.date-input:disabled { opacity: 0.5; }

.date-arrow-btn {
  width: 30px; height: 32px; font-size: 0.85rem; font-weight: 700;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--ink); cursor: pointer;
}
.date-arrow-btn:hover { background: var(--g050); border-color: var(--accent); }
.date-arrow-btn:disabled { opacity: 0.4; cursor: default; }

.near-me-go-btn {
  padding: 5px 12px; font-size: 0.82rem; font-weight: 600; border-radius: var(--radius-sm);
  border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; margin-left: 4px;
}
.near-me-go-btn:hover { background: var(--accent-hover); }

/* ---------- 지역/시장 목록 ---------- */
.region-nav, .market-list-nav { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.region-nav[hidden], .market-list-nav[hidden] { display: none; }
.region-btn {
  padding: 10px 16px; font-size: 0.88rem; font-weight: 700; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--panel); color: var(--muted);
  cursor: pointer; text-align: left; width: 100%;
}
.region-btn:hover { background: var(--g050); border-color: var(--accent); color: var(--g700); }
.region-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 6px rgba(22,128,60,0.3); }

.tab-btn {
  padding: 9px 14px; font-size: 0.85rem; font-weight: 600; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--panel); color: var(--ink); cursor: pointer;
  white-space: nowrap; text-align: left; width: 100%;
}
.tab-btn:hover { background: var(--g050); border-color: var(--accent); }
.tab-btn-active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 800; box-shadow: 0 2px 6px rgba(22,128,60,0.28); }
.tab-btn-all { border-style: dashed; }

.tab-block { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 0 0 8px; }
.tab-block-label { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.tab-row { display: flex; flex-direction: column; gap: 6px; }

/* ---------- 품목별 단계선택 ---------- */
.item-step-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.cascade-select {
  min-width: 160px; font-size: 0.92rem; padding: 7px 10px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--panel); color: var(--ink); font-family: var(--body);
}
.cascade-select:disabled { opacity: 0.5; }
.cascade-select:focus { outline: none; border-color: var(--accent); }

/* 빨간 "품목 찾아보기" 버튼 */
.search-btn {
  padding: 13px 22px; font-size: 1.05rem; font-weight: 800; border-radius: var(--radius);
  border: 1.5px solid #dc2626; background: #dc2626; color: #fff; cursor: pointer;
  box-shadow: 0 3px 0 #991b1b; font-family: var(--body);
}
.search-btn:disabled { opacity: 0.4; cursor: default; background: var(--muted); border-color: var(--muted); box-shadow: none; }
.search-btn:hover:not(:disabled) { background: #b91c1c; border-color: #b91c1c; }
.search-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #991b1b; }

/* ---------- 공통 상태 ---------- */
.scroll-hint { font-size: 0.78rem; color: var(--muted); margin: 4px 0 10px; }
.loading-msg, .empty-msg { color: var(--muted); font-size: 0.93rem; padding: 28px 4px; text-align: center; }
.ranking-date-label { font-size: 0.82rem; color: var(--muted); padding: 10px 4px 4px; }
.loading-box { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 16px; }
.loading-box .loading-msg { padding: 0; }
.loading-spinner {
  width: 30px; height: 30px; border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.result-meta { font-size: 0.82rem; color: var(--muted); margin: 8px 0 10px; }

.no-auction-notice {
  text-align: center; padding: 32px 16px; background: var(--panel-2);
  border: 1px solid var(--border); border-radius: var(--radius); margin: 8px 0;
}
.no-auction-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.no-auction-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.trunc-notice {
  font-size: 0.82rem; color: var(--a800); background: var(--a050); border: 1px solid var(--a200);
  border-radius: var(--radius-sm); padding: 8px 12px; margin: 8px 0;
}

/* ---------- 결과 표 ---------- */
.table-wrap { overflow: auto; max-height: 78vh; border: 1.5px solid var(--border); border-radius: var(--radius); }
.price-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.price-table thead th {
  position: sticky; top: 0; z-index: 5;
  background: var(--g800); border-bottom: 1px solid var(--g900);
  border-right: 1px solid rgba(255,255,255,0.1);
  padding: 11px 10px; text-align: left; font-weight: 700; font-size: 0.82rem;
  color: rgba(255,255,255,0.85); white-space: nowrap;
}
.price-table th:last-child { border-right: none; }
.price-table tbody tr:nth-child(even) { background: var(--panel-2); }
.price-table tbody tr:hover { background: var(--g050) !important; }
.price-table td {
  padding: 9px 10px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border);
  font-size: 0.9rem; white-space: nowrap;
}
.price-table td:last-child { border-right: none; }
.price-table td.wrap-cell {
  white-space: normal; word-break: keep-all; overflow-wrap: break-word; max-width: 150px; line-height: 1.35;
}
.price-table td.num, .price-table th.num { text-align: right; }
.price-table tbody tr:last-child td { border-bottom: none; }

/* 거래량 랭킹 표 */
.ranking-table-wrap { overflow: visible; max-height: none; }
.ranking-table { min-width: 0; width: 100%; table-layout: fixed; }
.ranking-table th, .ranking-table td { white-space: normal; word-break: keep-all; }
.ranking-table th:nth-child(1), .ranking-table td:nth-child(1) { width: 8%; }
.ranking-table th:nth-child(2), .ranking-table td:nth-child(2) { width: 24%; }
.ranking-table th:nth-child(3), .ranking-table td:nth-child(3) { width: 16%; }
.ranking-table th:nth-child(4), .ranking-table td:nth-child(4) { width: 32%; }
.ranking-table th:nth-child(5), .ranking-table td:nth-child(5) { width: 20%; }
.ranking-th-sub { display: block; font-weight: 400; font-size: 0.72em; color: rgba(255,255,255,0.5); }
.ranking-kind { font-weight: 400; color: var(--muted); font-size: 0.88em; }
.ranking-avg { font-family: var(--mono); font-weight: 800; color: var(--price); white-space: nowrap; }
.ranking-range { font-family: var(--mono); font-size: 0.78em; color: var(--muted); margin-top: 2px; white-space: nowrap; }

/* 시장 배지 */
.market-badge {
  display: inline-block; font-weight: 800; font-size: 0.84em; white-space: nowrap;
  color: var(--g700); background: var(--g050); border: 1.3px solid var(--g400);
  padding: 3px 10px; border-radius: var(--radius-pill);
}
button.market-badge-link { font-family: var(--body); cursor: pointer; }
button.market-badge-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.price-link {
  font-family: var(--body); background: transparent; border: none; padding: 2px 4px;
  cursor: pointer; border-radius: var(--radius-sm); text-decoration: underline;
  text-decoration-style: dotted; text-underline-offset: 3px;
}
.price-link:hover { background: var(--a050); }

.time-cell { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.price-main { font-family: var(--mono); font-weight: 800; color: var(--price); font-size: 1rem; }
.no-auction { font-size: 0.85rem; color: var(--n400); }

.price-table tbody tr.row-highlight {
  background: #fef9c3 !important;
  animation: rowFlash 2.4s ease-out;
}
@keyframes rowFlash {
  0%, 35% { background: #fde047; }
  100% { background: #fef9c3; }
}

/* ---------- 시장별 건수 목록 ---------- */
.region-group-title {
  font-size: 0.8rem; font-weight: 800; color: var(--g700);
  margin: 16px 0 6px; padding-bottom: 4px; border-bottom: 2px solid var(--g100);
}
.item-markets-submenu-title { margin-top: 32px; padding-top: 16px; border-top: 6px solid var(--panel-2); font-size: 0.9rem; color: var(--ink); }
.region-group-title:first-of-type { margin-top: 4px; }
.market-count-list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 4px; }
.market-count-row {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 11px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--panel); color: var(--ink); font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.market-count-row:hover { background: var(--g050); border-color: var(--accent); }
.market-count-num { color: var(--g600); font-family: var(--mono); font-weight: 800; }
.item-detail-back-btn { display: inline-block; margin-bottom: 12px; padding: 7px 13px; font-size: 0.84rem; }

/* ---------- 카테고리 목록 ---------- */
.category-list { display: flex; flex-direction: column; gap: 5px; }
.category-item-btn {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 12px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--panel); color: var(--ink); font-size: 0.92rem; font-weight: 600;
  cursor: pointer; text-align: left; font-family: var(--body);
}
.category-item-btn:hover { background: var(--g050); border-color: var(--accent); }
.category-item-all { border-style: dashed; color: var(--g700); }
.category-item-right { display: flex; align-items: center; gap: 8px; }
.category-item-count { color: var(--g600); font-family: var(--mono); font-size: 0.9em; font-weight: 800; }
.category-item-arrow { color: var(--muted); font-size: 1.1em; }
.category-item-breadcrumb { font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; }
.item-breadcrumb-text { font-size: 0.88rem; font-weight: 700; color: var(--g700); }

/* ---------- 검색 모달 ---------- */
.item-search-modal {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center;
}
.item-search-modal[hidden] { display: none; }
.item-search-modal-backdrop { position: absolute; inset: 0; background: rgba(5,46,22,0.4); }
.item-search-modal-panel {
  position: relative; width: 100%; max-width: 620px; max-height: 82vh; margin: 0 auto;
  background: var(--panel); border-radius: var(--radius) var(--radius) 0 0;
  padding: 16px 18px 20px; display: flex; flex-direction: column;
  box-shadow: 0 -8px 30px rgba(5,46,22,0.15);
}
@media (min-width: 640px) {
  .item-search-modal { align-items: center; }
  .item-search-modal-panel { border-radius: var(--radius); max-height: 80vh; box-shadow: 0 12px 40px rgba(5,46,22,0.2); }
}
.item-search-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.item-search-modal-title { font-size: 1rem; font-weight: 800; color: var(--g800); }
.item-search-modal-close { background: transparent; border: none; font-size: 1.1rem; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm); }
.item-search-modal-close:hover { color: var(--ink); background: var(--panel-2); }
.item-search-modal-inputrow { margin-bottom: 12px; }
.item-search-modal-input { width: 100%; font-size: 1rem; padding: 12px 14px; font-family: var(--body); }
.item-search-modal-body { overflow-y: auto; flex: 1 1 auto; -webkit-user-select: text; user-select: text; }
.item-search-recent-label { font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.item-search-recent-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.item-recent-chip {
  padding: 7px 13px; border-radius: var(--radius-pill); border: 1.5px solid var(--border);
  background: var(--panel-2); color: var(--ink); font-size: 0.84rem; font-weight: 600; cursor: pointer;
  font-family: var(--body);
}
.item-recent-chip:hover { background: var(--g050); border-color: var(--accent); color: var(--g700); }

/* ---------- 안내 팝업 ---------- */
.notice-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.notice-modal[hidden] { display: none; }
.notice-modal-backdrop { position: absolute; inset: 0; background: rgba(5,46,22,0.45); }
.notice-modal-panel {
  position: relative; width: 100%; max-width: 360px; text-align: center;
  background: var(--panel); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 28px 22px 22px; box-shadow: 0 18px 50px rgba(5,46,22,0.22);
}
.notice-modal-icon { font-size: 2.4rem; margin: 0 0 10px; }
.notice-modal-title { font-size: 1.05rem; font-weight: 800; color: var(--g800); margin: 0 0 8px; }
.notice-modal-desc { font-size: 0.88rem; line-height: 1.6; color: var(--muted); margin: 0 0 18px; word-break: keep-all; }
.notice-modal-btn {
  width: 100%; padding: 12px 0; font-size: 0.96rem; font-weight: 800; cursor: pointer;
  border: 1.5px solid var(--accent); background: var(--accent); color: #fff; border-radius: var(--radius);
  font-family: var(--body);
}
.notice-modal-btn:hover { background: var(--accent-hover); }

/* ---------- 기타 컴포넌트 ---------- */
table { border-spacing: 0; }
.card,.panel,.box,.section,.content-card,.table-card,.chart-card,.stat-card {
  border-radius: var(--radius);
}

/* ---------- 푸터 ---------- */
.board-footer {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
  justify-content: center; padding: 20px 16px 8px;
  font-size: 0.8rem; color: var(--muted);
}
.privacy-link { color: var(--g600); text-decoration: none; }
.privacy-link:hover { text-decoration: underline; }
.copyright { color: var(--n400); }

/* ---------- 모바일 ---------- */
@media (max-width: 720px) {
  body { padding: 10px 8px 24px; }
  .board-header { padding: 20px 16px 16px; }
  .site-banner-img { width: calc(100% + 32px); max-width: calc(100% + 32px); margin: -20px -16px 16px; }
  .board-title { font-size: 1.9rem; }
  .header-sub { font-size: 1rem; }
  .header-bottom-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .board-main { padding: 14px; }
  .main-tab-btn { font-size: 0.7rem; padding: 9px 4px; }
  .price-table { min-width: 820px; }
  .price-table th, .price-table td { padding: 7px 6px; }
  .ranking-table { min-width: 0; }
  .ranking-table th, .ranking-table td { padding: 7px 3px; font-size: 0.7rem; }
  .ranking-avg { font-size: 0.93em; }
  .ranking-range { font-size: 0.7em; }
  .ranking-kind { font-size: 0.8em; }
  .ranking-date-label { font-size: 0.76rem; }
  .treemap-box { height: 180px; }
  .tile-lg .treemap-tile-name { font-size: 0.9rem; }
  .tile-md .treemap-tile-name { font-size: 0.74rem; }
  .tile-sm .treemap-tile-name { font-size: 0.62rem; }
  .tile-sm .treemap-tile-pct { display: none; }
}
