/* ── Tokens ── */
:root {
  --brand:          #1c1c1c;
  --brand-mid:      #2f2f2f;
  --accent:         #5c6e1c;
  --accent-light:   #7a9430;
  --accent-pale:    #eef2d4;
  --bg:             #f5f0e4;
  --surface:        #ffffff;
  --surface-raised: #f9f7f2;
  --text:           #1a1a1a;
  --text-secondary: #555555;
  --muted:          #888888;
  --border:         #ddd9d0;
  --head-bg:        #f2ede0;
  --up:             #2d6a1f;
  --up-bg:          #edf7ea;
  --down:           #9b1c1c;
  --down-bg:        #fdf3f3;
  --focus:          #5c6e1c;
  --star-on:        #b45309;
  --star-off:       #c8c0b0;
  --radius:         10px;
  --shadow:         0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:      0 4px 10px rgba(0,0,0,.09), 0 2px 4px rgba(0,0,0,.05);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand:          #121212;
    --brand-mid:      #1e1e1e;
    --accent:         #7a9430;
    --accent-light:   #96b040;
    --accent-pale:    #2a3010;
    --bg:             #181510;
    --surface:        #211e18;
    --surface-raised: #2a2720;
    --text:           #f0ebe3;
    --text-secondary: #b0aa9e;
    --muted:          #7a7570;
    --border:         #3a3630;
    --head-bg:        #272420;
    --up:             #74c69d;
    --up-bg:          #1b3a28;
    --down:           #fca5a5;
    --down-bg:        #450a0a;
    --star-on:        #fbbf24;
    --star-off:       #4a4030;
  }
}

:root[data-theme="dark"] {
  --brand:          #121212;
  --brand-mid:      #1e1e1e;
  --accent:         #7a9430;
  --accent-light:   #96b040;
  --accent-pale:    #2a3010;
  --bg:             #181510;
  --surface:        #211e18;
  --surface-raised: #2a2720;
  --text:           #f0ebe3;
  --text-secondary: #b0aa9e;
  --muted:          #7a7570;
  --border:         #3a3630;
  --head-bg:        #272420;
  --up:             #74c69d;
  --up-bg:          #1b3a28;
  --down:           #fca5a5;
  --down-bg:        #450a0a;
  --star-on:        #fbbf24;
  --star-off:       #4a4030;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  flex-shrink: 0;
}

.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: .1rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  padding: .4rem .75rem;
  font-size: .9rem;
  font-weight: 500;
  transition: color .15s;
  white-space: nowrap;
  position: relative;
}

.nav-link:hover { color: var(--text); }

.nav-link.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: .75rem;
  right: .75rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Search button (nav) ── */
.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.nav-search-btn:hover {
  background: var(--accent-pale);
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Chatbot widget ── */
.chatbot-widget {
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
}
.chatbot-bubble {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(92,110,28,.35);
  transition: transform .15s, box-shadow .15s;
  flex-shrink: 0;
}
.chatbot-bubble:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(92,110,28,.45); }
.chatbot-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: min(340px, 92vw);
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.chatbot-panel.open { display: flex; }
.chatbot-header {
  background: var(--accent);
  color: #fff;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: .9rem;
}
.chatbot-header button { background: none; border: none; color: #fff; cursor: pointer; font-size: 1.1rem; line-height: 1; opacity: .8; }
.chatbot-header button:hover { opacity: 1; }
.chatbot-messages {
  padding: .75rem;
  height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .85rem;
}
.chatbot-msg { padding: .55rem .75rem; border-radius: 10px; max-width: 85%; line-height: 1.4; }
.chatbot-msg.bot  { background: var(--surface-raised); color: var(--text); align-self: flex-start; border-bottom-left-radius: 3px; }
.chatbot-msg.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.chatbot-quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: .5rem .75rem; border-top: 1px solid var(--border); }
.chatbot-quick button {
  background: var(--accent-pale); color: var(--accent); border: 1px solid var(--accent);
  border-radius: 20px; font-size: .75rem; padding: .3rem .7rem; cursor: pointer; white-space: nowrap;
  transition: background .12s;
}
.chatbot-quick button:hover { background: var(--accent); color: #fff; }
.chatbot-input-row {
  display: flex; padding: .6rem .75rem; border-top: 1px solid var(--border); gap: .5rem;
}
.chatbot-input-row input {
  flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: .45rem .7rem;
  font-size: .85rem; background: var(--bg); color: var(--text); outline: none;
}
.chatbot-input-row input:focus { border-color: var(--accent); }
.chatbot-input-row button {
  background: var(--accent); color: #fff; border: none; border-radius: 8px;
  padding: .45rem .9rem; font-size: .85rem; cursor: pointer; font-weight: 600;
  transition: background .12s;
}
.chatbot-input-row button:hover { background: var(--accent-light); }

/* ── Theme toggle ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}

.theme-toggle:hover {
  background: var(--accent-pale);
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(20deg);
}

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  border-radius: 6px;
}

.nav-toggle:hover { background: rgba(0,0,0,.06); }

.bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 3.75rem;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: .75rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    gap: .2rem;
  }

  .nav-links.open { display: flex; }

  .nav-link {
    padding: .6rem .75rem;
    font-size: 1rem;
  }

  .nav-link.active::after { display: none; }
}

/* ═══════════════════════════════════════════
   HEADER (home page hero section)
═══════════════════════════════════════════ */
.site-header {
  background: var(--surface);
  color: var(--text);
  padding: 1.75rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
}

/* ── Brand name stack ── */
.brand-main { display: block; }

.brand-sub {
  display: block;
  font-size: .42em;
  font-weight: 500;
  opacity: .65;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-top: .2rem;
  color: var(--text-secondary);
}

/* Nav compact overrides */
.nav-brand { display: flex; flex-direction: column; }
.nav-logo .brand-sub { font-size: .58rem; letter-spacing: .06em; opacity: .6; margin-top: .08rem; color: var(--muted); }

/* Footer overrides */
.footer-brand .brand-main { display: inline; font-size: 1.15rem; }
.footer-brand .brand-sub  { display: block; font-size: .65rem; letter-spacing: .06em; opacity: .72; margin-top: .1rem; }

.meta {
  margin: .2rem 0 0;
  opacity: .7;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ── City Selector dropdown (in header) ── */
.city-selector { margin-top: 0; }

.city-select {
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  padding: .5rem 2.4rem .5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath stroke='%23555555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: .7rem;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  min-width: 240px;
  transition: border-color .15s, box-shadow .15s;
}

.city-select:hover { border-color: var(--accent); }

.city-select:focus {
  outline: 3px solid rgba(92,110,28,.2);
  outline-offset: 2px;
  border-color: var(--accent);
}

.city-select option {
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   PAGE HERO (inner pages)
═══════════════════════════════════════════ */
.page-hero {
  background: var(--surface);
  color: var(--text);
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--text);
}

.page-hero p {
  margin: .4rem 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ═══════════════════════════════════════════
   HIGHLIGHTS
═══════════════════════════════════════════ */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: .75rem;
  margin: 1.5rem 0 1rem;
}

.highlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}

.highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.highlight-card.up-card   { border-top-color: var(--up); }
.highlight-card.down-card { border-top-color: var(--down); }
.highlight-card.top-card  { border-top-color: var(--accent); }

.hl-label {
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.hl-name {
  font-size: .95rem;
  font-weight: 600;
  margin: .2rem 0 .15rem;
  color: var(--text);
}

.hl-value {
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.highlight-card.up-card   .hl-value { color: var(--up); }
.highlight-card.down-card .hl-value { color: var(--down); }
.highlight-card.top-card  .hl-value { color: var(--accent); }

/* ═══════════════════════════════════════════
   SUMMARY BAR
═══════════════════════════════════════════ */
.summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
  margin: 0 0 1rem;
  padding: .6rem .9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  font-size: .875rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow);
}

.summary-bar:empty { display: none; }

.summary-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-weight: 600;
}

.summary-pill.s-up   { color: var(--up); }
.summary-pill.s-down { color: var(--down); }
.summary-pill.s-flat { color: var(--muted); }

/* ═══════════════════════════════════════════
   TOOLBAR
═══════════════════════════════════════════ */
main { padding: .5rem 0 3rem; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: .75rem;
  align-items: center;
}

.toolbar input,
.toolbar select {
  font: inherit;
  font-size: .925rem;
  padding: .575rem .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}

.toolbar input  { flex: 1 1 220px; }
.toolbar select { min-width: 155px; }

.toolbar input:hover, .toolbar select:hover { border-color: var(--accent); }

.toolbar input:focus, .toolbar select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(92,110,28,.15);
}

.btn-fav-filter {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .575rem 1rem;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.btn-fav-filter:hover { border-color: var(--star-on); color: var(--star-on); }

.btn-fav-filter[aria-pressed="true"] {
  background: #fef3c7;
  border-color: var(--star-on);
  color: var(--star-on);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-fav-filter[aria-pressed="true"] { background: #3d2e08; }
}

/* ═══════════════════════════════════════════
   STATUS
═══════════════════════════════════════════ */
.status { min-height: 1.5rem; margin: 0 0 .5rem; color: var(--muted); font-size: .875rem; }

/* ═══════════════════════════════════════════
   TABLE
═══════════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

table { width: 100%; min-width: 540px; border-collapse: collapse; }

th, td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }

tbody tr:last-child td,
tbody tr.detail-row:last-child td { border-bottom: 0; }

tbody tr.data-row { cursor: pointer; transition: background .12s; }
tbody tr.data-row:hover { background: var(--surface-raised); }
tbody tr.data-row.expanded { background: var(--accent-pale); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) tbody tr.data-row.expanded { background: var(--accent-pale); }
}

thead th { background: var(--head-bg); padding: 0; }

thead button {
  width: 100%;
  padding: .8rem 1rem;
  border: 0;
  background: none;
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  text-align: left;
  color: var(--text-secondary);
  cursor: pointer;
  letter-spacing: .01em;
  transition: color .1s;
}

thead button:hover { color: var(--accent); }

th[aria-sort="ascending"]  button::after { content: " ▲"; font-size: .65em; color: var(--accent); }
th[aria-sort="descending"] button::after { content: " ▼"; font-size: .65em; color: var(--accent); }

.num { text-align: right; font-variant-numeric: tabular-nums; }
thead .num button { text-align: right; }

/* ═══════════════════════════════════════════
   FAVOURITE COLUMN
═══════════════════════════════════════════ */
.col-fav { width: 2.5rem; }

.btn-star {
  appearance: none;
  border: none;
  background: none;
  font-size: 1.1rem;
  line-height: 1;
  padding: .15rem .2rem;
  cursor: pointer;
  color: var(--star-off);
  transition: color .15s, transform .15s;
  display: block;
}

.btn-star:hover   { color: var(--star-on); transform: scale(1.2); }
.btn-star.starred { color: var(--star-on); }

/* ═══════════════════════════════════════════
   BADGE
═══════════════════════════════════════════ */
.badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  padding: .22rem .65rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════
   CHANGE CELL
═══════════════════════════════════════════ */
.change-wrap {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-weight: 600;
}

.change-pct {
  font-size: .78rem;
  font-weight: 500;
  opacity: .75;
  margin-left: .2rem;
}

.up   { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--muted); font-weight: 400; }

/* ═══════════════════════════════════════════
   SEARCH HIGHLIGHT
═══════════════════════════════════════════ */
mark {
  background: rgba(92,110,28,.2);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* ═══════════════════════════════════════════
   DETAIL / EXPANDED ROW
═══════════════════════════════════════════ */
.detail-row td {
  padding: 0;
  border-bottom: 2px solid var(--accent-light);
  background: var(--accent-pale) !important;
}

.detail-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  animation: panel-in .2s ease both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.detail-chart {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
}

.detail-chart-label {
  font-size: .73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}

.sparkline-svg { display: block; }

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  flex: 1;
  align-items: flex-start;
}

.detail-stat { display: flex; flex-direction: column; }

.detail-stat .ds-label {
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}

.detail-stat .ds-value {
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: .1rem;
}

/* ═══════════════════════════════════════════
   ROW ENTRY ANIMATION
═══════════════════════════════════════════ */
@keyframes row-in {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

tbody tr.row-enter { animation: row-in .28s ease both; }

/* ═══════════════════════════════════════════
   SECTION HEADING (shared across pages)
═══════════════════════════════════════════ */
.section-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 .75rem;
  border-bottom: 2px solid var(--accent-pale);
  padding-bottom: .4rem;
  color: var(--text);
}

/* ═══════════════════════════════════════════
   SPICE GUIDE
═══════════════════════════════════════════ */
.sg-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.5rem 0 1rem;
}

.sg-filter-btn {
  appearance: none;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: .4rem 1rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}

.sg-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sg-filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.sg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.sg-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}

.sg-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sg-card-top {
  padding: 1.25rem 1.25rem .75rem;
  border-bottom: 1px solid var(--border);
}

.sg-emoji { font-size: 2.2rem; line-height: 1; margin-bottom: .35rem; }

.sg-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.sg-nickname {
  font-size: .8rem;
  color: var(--muted);
  font-style: italic;
  margin-top: .1rem;
}

.sg-card-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
  background: var(--accent-pale);
  padding: .6rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}

.sg-card-body { padding: 1rem 1.25rem 1.25rem; }

.sg-row {
  font-size: .85rem;
  margin-bottom: .5rem;
  color: var(--text);
}

.sg-row-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: .2rem;
}

.sg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .35rem;
}

.sg-tag {
  font-size: .75rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.sg-fact {
  margin-top: .75rem;
  padding: .75rem;
  background: var(--accent-pale);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: .82rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.55;
}

.sg-status {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
  font-size: .95rem;
}

/* ═══════════════════════════════════════════
   MARKET TRENDS
═══════════════════════════════════════════ */
.mt-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .75rem;
  margin: 1.5rem 0 1.25rem;
}

.mt-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}

.ms-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .3rem;
}

.ms-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.ms-sub {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .2rem;
}

.mt-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0;
}

.mt-chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.mt-chart-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}

.mt-mover-table {
  border-collapse: collapse;
  width: 100%;
}

.mt-mover-table tbody tr:nth-child(even) {
  background: var(--surface-raised);
}

.mt-mover-table td {
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}

.mt-mover-table tbody tr:last-child td { border-bottom: 0; }

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
}

@media (max-width: 640px) {
  .ct-grid { grid-template-columns: 1fr; }
}

.ct-label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .35rem;
  color: var(--text-secondary);
}

.ct-input {
  width: 100%;
  font: inherit;
  font-size: .925rem;
  padding: .575rem .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}

.ct-input:hover { border-color: var(--accent-light); }

.ct-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(92,110,28,.15);
}

.ct-textarea {
  min-height: 120px;
  resize: vertical;
  display: block;
}

.ct-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .7rem 1.75rem;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s, transform .1s;
}

.ct-btn:hover { background: var(--accent); transform: translateY(-1px); }
.ct-btn:active { transform: translateY(0); }

.ct-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.ct-info-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.ct-info-item:last-child { margin-bottom: 0; }

.ct-info-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.4; }

.ct-info a { color: var(--accent); text-decoration: none; }
.ct-info a:hover { text-decoration: underline; }

.ct-hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem .75rem;
  font-size: .9rem;
  margin-top: .3rem;
}

/* ═══════════════════════════════════════════
   FAQ
═══════════════════════════════════════════ */
.faq { margin: 2rem 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  appearance: none;
  width: 100%;
  text-align: left;
  padding: 1rem 0;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  background: transparent;
  color: var(--text);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color .15s;
}

.faq-q::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform .2s;
}

.faq-item.open .faq-q {
  color: var(--accent);
}

.faq-item.open .faq-q::after {
  content: "−";
  color: var(--accent);
}

.faq-a {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  transition: max-height .28s ease, padding .28s ease;
}

.faq-item.open .faq-a {
  padding: 0 0 1rem;
  max-height: 300px;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: var(--brand);
  color: rgba(255,255,255,.85);
  padding: 3rem 0 0;
  margin-top: 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
}

.footer-col h3 {
  color: rgba(255,255,255,.95);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 0 0 .75rem;
}

.footer-col p,
.footer-col address {
  font-size: .875rem;
  line-height: 1.7;
  font-style: normal;
  color: rgba(255,255,255,.65);
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .4rem; }

.footer-col a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .15s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 0;
}

.social-links { display: flex; gap: .75rem; }

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
  transition: background .15s, transform .15s;
}

.social-link:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   FOOTNOTE
═══════════════════════════════════════════ */
.footnote { margin-top: 1.25rem; color: var(--muted); font-size: .82rem; }

/* ═══════════════════════════════════════════
   FOCUS / ACCESSIBILITY
═══════════════════════════════════════════ */
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--accent);
  padding: .5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ═══════════════════════════════════════════
   REFRESH BUTTON
═══════════════════════════════════════════ */
.refresh-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.1rem;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: background .15s, transform .1s, box-shadow .15s;
}
.refresh-btn:hover  { background: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.refresh-btn:active { transform: translateY(0); }
.refresh-btn:disabled { opacity: .65; cursor: default; transform: none; }
.refresh-icon { font-size: 1.1rem; line-height: 1; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
