*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:        #F5F6F8;
      --bg2:       #FFFFFF;
      --bg3:       #FFFFFF;
      --accent:    #E08700;
      --accent2:   #B96F00;
      --text:      #1C2431;
      --muted:     #5B6472;
      --green:     #189A54;
      --red:       #D64533;
      --border:    #E3E6EC;
      --font-d:    'Barlow Condensed', sans-serif;
      --font-b:    'Inter', sans-serif;
    }

    html { scroll-behavior: smooth; }
    body { background: var(--bg); color: var(--text); font-family: var(--font-b); font-size: 15px; line-height: 1.6; }
    .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

    /* ── NAV ── */
    nav {
      position: sticky; top: 0; z-index: 100;
      background: rgba(255,255,255,0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      padding: 0 2rem;
      display: flex; align-items: center; justify-content: space-between;
      height: 62px;
    }
    .nav-logo {
      font-family: var(--font-d); font-size: 1.5rem; font-weight: 800;
      color: var(--accent); letter-spacing: 0.03em; text-decoration: none;
    }
    .nav-logo span { color: var(--text); }
    .nav-links { display: flex; gap: 2rem; list-style: none; }
    .nav-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s; }
    .nav-links a:hover { color: var(--accent); }
    .nav-controls { display: flex; gap: 0.75rem; align-items: center; }
    .nav-select {
      background: var(--bg3); border: 1px solid var(--border); color: var(--text);
      padding: 0.35rem 0.75rem; border-radius: 6px; font-size: 0.82rem; cursor: pointer;
    }

    /* ── HERO ── */
    .hero {
      padding: 5rem 2rem 3rem;
      text-align: center;
      background: radial-gradient(ellipse at 50% 0%, rgba(224,135,0,0.07) 0%, transparent 65%);
    }
    .hero-eyebrow {
      font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
      color: var(--accent); font-weight: 600; margin-bottom: 1rem;
    }
    .hero h1 {
      font-family: var(--font-d); font-size: clamp(2.8rem, 7vw, 5.5rem);
      font-weight: 800; line-height: 1.0; letter-spacing: 0.01em;
      margin-bottom: 1.25rem;
    }
    .hero h1 em { color: var(--accent); font-style: normal; }
    .hero-sub {
      color: var(--muted); font-size: 1.05rem; max-width: 560px;
      margin: 0 auto 2.5rem; font-weight: 300;
    }

    /* ── STAT CARDS ── */
    .stats-bar {
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 1rem; max-width: 860px; margin: 0 auto 2rem;
    }
    .stat-card {
      background: var(--bg3); border: 1px solid var(--border);
      border-radius: 12px; padding: 1.25rem 1.5rem;
      transition: border-color 0.2s;
    }
    .stat-card:hover { border-color: rgba(224,135,0,0.45); }
    .stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.4rem; }
    .stat-value { font-family: var(--font-d); font-size: 2rem; font-weight: 700; color: var(--accent); }
    .stat-country { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }
    .stat-badge { display: inline-block; font-size: 0.7rem; padding: 0.15rem 0.5rem; border-radius: 20px; margin-left: 0.5rem; font-weight: 600; }
    .badge-green { background: rgba(24,154,84,0.12); color: #0E7A3E; }
    .badge-red   { background: rgba(214,69,51,0.12);  color: #B02E1F; }

    /* ── SEARCH BAR ── */
    .search-wrap { max-width: 420px; margin: 0 auto 1rem; position: relative; }
    .search-wrap input {
      width: 100%; background: var(--bg3); border: 1px solid var(--border);
      color: var(--text); padding: 0.75rem 1.25rem 0.75rem 3rem;
      border-radius: 50px; font-size: 0.9rem; outline: none;
      transition: border-color 0.2s;
    }
    .search-wrap input:focus { border-color: var(--accent); }
    .search-wrap::before {
      content: '🔍'; position: absolute; left: 1rem; top: 50%;
      transform: translateY(-50%); font-size: 0.85rem;
    }

    /* ── SECTION LAYOUT ── */
    .section { padding: 3.5rem 2rem; max-width: 1100px; margin: 0 auto; }
    .section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.75rem; flex-wrap: wrap; gap: 1rem; }
    .section-title { font-family: var(--font-d); font-size: 1.8rem; font-weight: 700; }
    .section-title span { color: var(--accent); }
    .section-subtitle { color: var(--muted); font-size: 0.85rem; }
    .updated-tag { font-size: 0.75rem; color: var(--muted); background: var(--bg3); padding: 0.3rem 0.75rem; border-radius: 20px; border: 1px solid var(--border); }

    /* ── FILTER CHIPS ── */
    .filter-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
    .chip {
      padding: 0.35rem 1rem; border-radius: 50px; font-size: 0.8rem; font-weight: 500;
      border: 1px solid var(--border); background: var(--bg3); color: var(--muted);
      cursor: pointer; transition: all 0.18s;
    }
    .chip:hover, .chip.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }

    /* ── PRICE TABLE ── */
    .price-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); background: var(--bg2); box-shadow: 0 1px 3px rgba(16,24,40,0.06); }
    table { width: 100%; border-collapse: collapse; }
    thead { background: #EFF1F4; }
    thead th {
      padding: 0.85rem 1rem; text-align: left; font-size: 0.72rem;
      text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
      font-weight: 600; white-space: nowrap; cursor: pointer;
    }
    thead th:hover { color: var(--accent); }
    tbody tr { border-top: 1px solid rgba(28,36,49,0.07); transition: background 0.15s; }
    tbody tr:hover { background: rgba(224,135,0,0.05); }
    tbody td { padding: 0.8rem 1rem; font-size: 0.88rem; }
    .flag { font-size: 1.2rem; margin-right: 0.5rem; }
    .country-name { font-weight: 500; color: inherit; text-decoration: none; }
    .country-name:hover { color: var(--accent); text-decoration: underline; }
    .price-main { font-family: var(--font-d); font-size: 1.15rem; font-weight: 700; color: var(--text); }
    .price-alt { font-size: 0.75rem; color: var(--muted); }
    .change { font-size: 0.82rem; font-weight: 600; }
    .change.up { color: var(--red); }
    .change.down { color: var(--green); }
    .change.flat { color: var(--muted); }
    .fuel-type-badge {
      font-size: 0.68rem; padding: 0.15rem 0.5rem; border-radius: 4px;
      background: var(--bg3); color: var(--muted); border: 1px solid var(--border);
    }
    .rank-num { color: var(--muted); font-size: 0.8rem; font-weight: 500; }
    .price-bar-bg { background: var(--bg3); border-radius: 4px; height: 4px; width: 80px; overflow: hidden; }
    .price-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--green), var(--accent), var(--red)); }

    /* ── US PRICES (EIA) ── */
    .us-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
    .us-card {
      background: var(--bg3); border: 1px solid var(--border); border-radius: 10px;
      padding: 1rem 1.25rem; transition: border-color 0.2s;
    }
    .us-card:hover { border-color: rgba(224,135,0,0.45); }
    .us-card-state { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
    .us-card-price { font-family: var(--font-d); font-size: 1.6rem; font-weight: 700; color: var(--accent); }
    .us-card-label { font-size: 0.72rem; color: var(--muted); }
    .eia-note { font-size: 0.75rem; color: var(--muted); margin-top: 0.5rem; }
    .loading-spinner { text-align: center; padding: 2rem; color: var(--muted); font-size: 0.9rem; }

    /* ── CONVERTER ── */
    .converter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
    .conv-box { background: var(--bg3); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; }
    .conv-title { font-family: var(--font-d); font-size: 1.15rem; font-weight: 700; margin-bottom: 1.25rem; }
    .conv-row { display: flex; gap: 0.75rem; margin-bottom: 1rem; align-items: center; }
    .conv-input {
      flex: 1; background: var(--bg); border: 1px solid var(--border); color: var(--text);
      padding: 0.65rem 1rem; border-radius: 8px; font-size: 1rem; outline: none;
      transition: border-color 0.2s;
    }
    .conv-input:focus { border-color: var(--accent); }
    .conv-label { color: var(--muted); font-size: 0.82rem; min-width: 50px; }
    .conv-result {
      background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
      padding: 0.65rem 1rem; font-family: var(--font-d); font-size: 1.3rem;
      font-weight: 700; color: var(--accent); min-width: 120px; text-align: right;
    }
    .conv-select {
      background: var(--bg); border: 1px solid var(--border); color: var(--text);
      padding: 0.65rem 0.75rem; border-radius: 8px; font-size: 0.88rem; cursor: pointer;
    }

    /* ── PREDICTOR ── */
    .predict-box {
      background: linear-gradient(135deg, var(--bg3) 0%, rgba(224,135,0,0.06) 100%);
      border: 1px solid var(--border); border-radius: 16px; padding: 2rem;
    }
    .predict-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
    .ai-badge {
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      color: #fff; font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.65rem;
      border-radius: 20px; letter-spacing: 0.08em; text-transform: uppercase;
    }
    .predict-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
    .predict-card {
      background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
      padding: 1.25rem;
    }
    .predict-country { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.25rem; }
    .predict-current { font-family: var(--font-d); font-size: 1.4rem; font-weight: 700; }
    .predict-arrow { font-size: 0.85rem; margin: 0.4rem 0; }
    .predict-future { font-size: 0.82rem; color: var(--muted); }
    .trend-up   { color: var(--red); }
    .trend-down { color: var(--green); }
    .trend-flat { color: var(--muted); }

    /* ── FOOTER ── */
    footer {
      background: var(--bg2); border-top: 1px solid var(--border);
      padding: 2.5rem 2rem; text-align: center;
    }
    .footer-logo { font-family: var(--font-d); font-size: 1.3rem; font-weight: 800; color: var(--accent); margin-bottom: 0.5rem; }
    .footer-tagline { color: var(--muted); font-size: 0.82rem; margin-bottom: 1.25rem; }
    .footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
    .footer-links a { color: var(--muted); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
    .footer-links a:hover { color: var(--accent); }
    .footer-contact { font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem; }
    .footer-contact a { color: var(--accent); text-decoration: none; }
    .footer-disclaimer { font-size: 0.72rem; color: var(--muted); max-width: 600px; margin: 0 auto; }
    .footer-copy { font-size: 0.75rem; color: var(--muted); margin-top: 1rem; }

    /* ── DIVIDER ── */
    .fuel-divider {
      height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
      margin: 0 2rem;
    }

    /* ── MAP ── */
    .map-section {
      max-width: 1100px; margin: 0 auto; padding: 2.5rem 2rem 1rem;
    }
    .map-section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.75rem; }
    .map-section-title { font-family: var(--font-d); font-size: 1.8rem; font-weight: 700; }
    .map-section-title span { color: var(--accent); }
    .map-hint { font-size: 0.78rem; color: var(--muted); }
    #fuelMap {
      height: 420px; border-radius: 14px;
      border: 1px solid var(--border);
      background: var(--bg2);
    }
    .leaflet-container { background: #E9EBEF !important; }
    .map-tooltip {
      background: var(--bg3) !important; border: 1px solid var(--border) !important;
      color: var(--text) !important; border-radius: 8px !important;
      font-family: var(--font-b) !important; font-size: 0.82rem !important;
      box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important; padding: 0.6rem 0.9rem !important;
    }
    .map-tooltip b { color: var(--accent); font-family: var(--font-d); font-size: 1.1rem; }
    .map-legend {
      display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem;
      font-size: 0.75rem; color: var(--muted); justify-content: center;
    }
    .legend-bar {
      width: 180px; height: 8px; border-radius: 4px;
      background: linear-gradient(90deg, #189A54, #E08700, #D64533);
    }

    /* ── MOBILE ── */
    @media (max-width: 768px) {
      .nav-links { display: none; }
      .stats-bar { grid-template-columns: 1fr; }
      .converter-grid { grid-template-columns: 1fr; }
      .predict-grid { grid-template-columns: 1fr 1fr; }
      .section { padding: 2.5rem 1rem; }
      #fuelMap { height: 280px; }
    }

/* ── merged from inline blocks ── */

/* ── merged from inline blocks ── */

.news-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
  text-decoration: none;
  color: var(--text);
}
.news-card:hover { border-color: rgba(224,135,0,0.45); }
.news-card-img {
  width: 100%; height: 160px;
  object-fit: cover;
  background: var(--bg2);
}
.news-card-img-placeholder {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, #F0F2F5, #E5E8ED);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.news-card-body { padding: 1rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.news-card-source { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.4rem; font-weight: 600; }
.news-card-title { font-size: 0.95rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.6rem; flex: 1; }
.news-card-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin-bottom: 0.75rem; }
.news-card-date { font-size: 0.72rem; color: var(--muted); }

/* ── LIGHT THEME DEPTH ── */
nav { box-shadow: 0 1px 0 rgba(16,24,40,0.04); }
.stat-card, .us-card, .conv-box, .news-card, .chip, .updated-tag, .nav-select { box-shadow: 0 1px 2px rgba(16,24,40,0.05); }
.predict-box { box-shadow: 0 1px 3px rgba(16,24,40,0.06); }

/* ── MOST SEARCHED QUICK LINKS ── */
.top-links { max-width: 860px; margin: 0 auto; text-align: center; }
.top-links-label {
  display: block; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.7rem; font-weight: 600; margin-bottom: 0.85rem;
}
.top-links-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.top-links-grid a {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  width: 74px; padding: 0.65rem 0.25rem 0.55rem;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; transition: all 0.18s;
  box-shadow: 0 1px 2px rgba(16,24,40,0.05);
}
.top-links-grid a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(16,24,40,0.10); }
.tl-flag { font-size: 1.7rem; line-height: 1; }
.tl-name { font-size: 0.72rem; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
.top-links-grid a:hover .tl-name { color: var(--accent); }

/* ── FLAG IMAGES (Windows-safe, replaces emoji flags) ── */
.flag-img { border-radius: 3px; vertical-align: -3px; box-shadow: 0 1px 2px rgba(16,24,40,0.15); }
.tl-flag img { border-radius: 4px; box-shadow: 0 1px 3px rgba(16,24,40,0.18); display: block; }
.tl-flag { display: flex; justify-content: center; }
.cp-flag img { display: inline-block; }

/* ── FOOTER LEGAL ROW ── */
.footer-legal { margin-top: 0.6rem; font-size: 0.82rem; opacity: 0.85; }


/* ── COUNTRY PAGE: REGIONAL CONTEXT ── */
.cp-context { max-width: 760px; margin: 0 auto; padding: 0 2rem 1rem; }
.cp-context h2 { font-family: var(--font-d); font-size: 1.6rem; font-weight: 700; margin-bottom: 1.4rem; color: var(--text); }
.cp-context h2 span { color: var(--accent); }
.cp-context h3 { font-family: var(--font-d); font-size: 1.2rem; font-weight: 700; margin: 2rem 0 0.9rem; color: var(--text); }
.cp-context p { color: var(--text); font-size: 0.95rem; line-height: 1.75; margin-bottom: 1.15rem; }
.cp-ctx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.85rem; margin-bottom: 1.75rem; }
.cp-ctx-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 0.95rem 1rem; text-align: center; box-shadow: 0 1px 2px rgba(16,24,40,0.05); }
.cp-ctx-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin-bottom: 0.4rem; }
.cp-ctx-value { font-family: var(--font-d); font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.cp-ctx-value small { font-size: 0.62rem; color: var(--muted); font-weight: 600; }
.cp-tank { width: 100%; border-collapse: collapse; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 1.2rem; }
.cp-tank th { background: #EFF1F4; text-align: left; padding: 0.7rem 1rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.cp-tank td { padding: 0.7rem 1rem; font-size: 0.92rem; border-top: 1px solid rgba(28,36,49,0.07); color: var(--text); }
.cp-tank td:last-child { font-family: var(--font-d); font-weight: 700; font-size: 1.05rem; }
.cp-ctx-note { font-size: 0.85rem !important; color: var(--muted) !important; }
@media (max-width: 600px) { .cp-context { padding: 0 1.25rem 1rem; } }


/* ── RANKINGS PAGES ── */
.rk-wrap { max-width: 900px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.rk-crumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.4rem; }
.rk-crumb a { color: var(--muted); text-decoration: none; }
.rk-crumb a:hover { color: var(--accent); }
.rk-wrap h1 { font-family: var(--font-d); font-size: 2.9rem; font-weight: 800; color: var(--text); line-height: 1.1; margin-bottom: 0.6rem; }
.rk-wrap h1 span { color: var(--accent); }
.rk-sub { color: var(--muted); font-size: 1.02rem; margin-bottom: 2.2rem; }
.rk-wrap h2 { font-family: var(--font-d); font-size: 1.75rem; font-weight: 700; color: var(--text); margin: 2.8rem 0 1.2rem; }
.rk-wrap h2 span { color: var(--accent); }
.rk-wrap h3 { font-family: var(--font-d); font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 0.8rem; }
.rk-lead p, .rk-box p { color: var(--text); font-size: 0.98rem; line-height: 1.78; margin-bottom: 1.15rem; }
.rk-lead a, .rk-box a, .rk-foot-note a { color: var(--accent2); }

.rk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.8rem; }
.rk-card { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 0.7rem;
  background: var(--bg2); border: 1px solid var(--border); border-left: 3px solid var(--muted);
  border-radius: 12px; padding: 0.85rem 1rem; text-decoration: none; color: var(--text);
  box-shadow: 0 1px 2px rgba(16,24,40,0.05); transition: all 0.18s; }
.rk-card:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(16,24,40,0.10); border-color: var(--accent); }
.rk-card.cheap { border-left-color: #189A54; }
.rk-card.dear  { border-left-color: #D64533; }
.rk-card-rank { font-family: var(--font-d); font-size: 1.35rem; font-weight: 800; color: #D0D5DD; min-width: 1.1rem; }
.rk-card-flag { display: flex; }
.rk-card-name { font-size: 0.93rem; font-weight: 600; }
.rk-card-price { font-family: var(--font-d); font-size: 1.2rem; font-weight: 800; color: var(--accent); white-space: nowrap; }
.rk-card-price small { font-size: 0.6rem; color: var(--muted); }

.rk-table { width: 100%; border-collapse: collapse; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(16,24,40,0.06); }
.rk-table th { background: #EFF1F4; text-align: left; padding: 0.75rem 1rem; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.rk-table td { padding: 0.72rem 1rem; font-size: 0.92rem; border-top: 1px solid rgba(28,36,49,0.07); color: var(--text); }
.rk-table tr:hover td { background: rgba(224,135,0,0.04); }
.rk-table td a { color: var(--text); text-decoration: none; font-weight: 500; }
.rk-table td a:hover { color: var(--accent); }
.rk-table .rk-price { font-family: var(--font-d); font-weight: 700; font-size: 1.02rem; color: var(--accent); }
.rk-table .rank-num { color: var(--muted); font-family: var(--font-d); font-weight: 700; }

.rk-box { background: var(--bg2); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 1.4rem 1.5rem; margin: 2.5rem 0; }
.rk-box p:last-child { margin-bottom: 0; }
.rk-cta { text-align: center; margin: 2.5rem 0 0; }
.rk-cta a { display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
  padding: 0.85rem 2rem; border-radius: 50px; text-decoration: none; font-size: 0.9rem; }
.rk-cta a:hover { background: var(--accent2); }
.rk-foot-note { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--muted); }

.rk-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.rk-hub-card { display: flex; flex-direction: column; gap: 0.35rem; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem 1.4rem;
  text-decoration: none; box-shadow: 0 1px 2px rgba(16,24,40,0.05); transition: all 0.18s; }
.rk-hub-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(16,24,40,0.10); border-color: var(--accent); }
.rk-hub-card.feature { border-left: 3px solid var(--accent); }
.rk-hub-title { font-family: var(--font-d); font-size: 1.25rem; font-weight: 700; color: var(--text); }
.rk-hub-meta { font-size: 0.82rem; color: var(--accent2); font-weight: 600; }
.rk-hub-range { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 600px) { .rk-wrap h1 { font-size: 2.1rem; } .rk-table th:nth-child(4), .rk-table td:nth-child(4) { display: none; } }


/* ── MOBILE NAV (hamburger) ── */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 38px; padding: 0 9px; margin-left: auto;
  background: none; border: 1px solid var(--border); border-radius: 9px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform 0.22s, opacity 0.22s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex !important; flex-direction: column; gap: 0;
    position: absolute; top: 62px; left: 0; right: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(16,24,40,0.10);
    padding: 0.4rem 0; max-height: calc(100vh - 62px); overflow-y: auto;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open li a {
    display: block; padding: 0.85rem 1.25rem; font-size: 0.95rem;
    border-bottom: 1px solid rgba(28,36,49,0.06);
  }
  .nav-links.open li:last-child a { border-bottom: none; }
  .nav-controls { gap: 0.4rem; }
  .nav-controls .nav-select { font-size: 0.72rem; padding: 0.3rem 0.45rem; }
}
@media (max-width: 480px) {
  .nav-controls { display: none; }
}
