/* ── Variables ── */
:root {
    --bg:          #070b14;
    --bg-card:     #0e1420;
    --bg-panel:    #111827;
    --border:      #1e2a3a;
    --border-soft: #162030;
    --amber:       #f59e0b;
    --amber-dim:   #b45309;
    --green:       #10b981;
    --green-dim:   #065f46;
    --red:         #ef4444;
    --red-dim:     #7f1d1d;
    --blue:        #3b82f6;
    --blue-dim:    #1e3a5f;
    --text:        #f1f5f9;
    --text-mid:    #94a3b8;
    --text-dim:    #475569;
    --wti:         #f59e0b;
    --brent:       #38bdf8;
    --natgas:      #34d399;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}
.mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }
button { cursor: pointer; font-family: inherit; }

/* ── Header ── */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 58px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 16px;
}
.header-left { flex: 1; }
.header-center { display: flex; align-items: center; gap: 12px; }
.header-right { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 30px; height: 30px; flex-shrink: 0; }
.logo-title { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--amber); }
.logo-sub   { display: block; font-size: 10px; color: var(--text-dim); letter-spacing: .05em; margin-top: 1px; }

.live-badge {
    display: flex; align-items: center; gap: 6px;
    font-size: 10px; font-weight: 700; letter-spacing: .1em;
    color: var(--green); border: 1px solid var(--green);
    padding: 3px 8px; border-radius: 3px;
}
.live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green);
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; }
    50%      { opacity: .3; }
}

.market-status {
    font-size: 11px; color: var(--text-mid);
    border: 1px solid var(--border); padding: 3px 8px; border-radius: 3px;
}

.update-block { text-align: right; min-width: 220px; }
.update-row { display: flex; align-items: center; gap: 8px; justify-content: flex-end; white-space: nowrap; }
.update-label { font-size: 10px; color: var(--text-dim); white-space: nowrap; }
.update-time, .countdown { font-size: 11px; color: var(--text-mid); white-space: nowrap; }

.refresh-btn {
    display: flex; align-items: center; gap: 6px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-mid);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    transition: all .15s;
}
.refresh-btn:hover { border-color: var(--amber); color: var(--amber); }
.refresh-btn.spinning svg { animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Price Bar ── */
.price-bar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid var(--border);
}
@media (max-width: 1300px) { .price-bar { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .price-bar { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .price-bar { grid-template-columns: repeat(2, 1fr); } }
.crack-card::before { background: #a78bfa; }

.price-card {
    padding: 14px 18px;
    border-right: 1px solid var(--border);
    background: var(--bg-card);
    transition: background .2s;
    position: relative;
    overflow: hidden;
}
.price-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--amber);
    opacity: 0;
    transition: opacity .3s;
}
.price-card:hover::before { opacity: 1; }
.price-card:last-child { border-right: none; }
.spread-card::before { background: var(--blue); }

#card-wti::before  { background: var(--wti); }
#card-brent::before { background: var(--brent); }
#card-natgas::before { background: var(--natgas); }

.pc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pc-name { font-size: 10px; font-weight: 600; letter-spacing: .07em; color: var(--text-mid); }
.pc-exch { font-size: 9px; color: var(--text-dim); }
.pc-price { font-size: 22px; font-weight: 500; color: var(--text); line-height: 1; margin-bottom: 2px; }
.pc-unit  { font-size: 9px; color: var(--text-dim); margin-bottom: 6px; }

.pc-change { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.pc-change.up   .chg-amt { color: var(--green); }
.pc-change.down .chg-amt { color: var(--red); }
.pc-change.up   .chg-pct { color: var(--green); opacity: .7; }
.pc-change.down .chg-pct { color: var(--red); opacity: .7; }
.chg-amt, .chg-pct { transition: color .3s; }

.spread-label { font-size: 10px; color: var(--blue); margin-top: 4px; }

/* price flash animation */
@keyframes flashGreen { 0%,100% { background: transparent; } 30% { background: rgba(16,185,129,.15); } }
@keyframes flashRed   { 0%,100% { background: transparent; } 30% { background: rgba(239,68,68,.15); } }
.price-card.flash-up   { animation: flashGreen .8s ease; }
.price-card.flash-down { animation: flashRed   .8s ease; }

/* ── Layout ── */
.main-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 0;
    border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) { .main-content { grid-template-columns: 1fr; } }

.section-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.section-header h2 {
    font-size: 13px; font-weight: 600;
    letter-spacing: .06em; color: var(--amber);
    text-transform: uppercase;
    margin-right: auto;
}

/* ── Chart ── */
.chart-section {
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
}
.chart-wrap {
    flex: 1; position: relative;
    padding: 16px 20px 20px;
    min-height: 320px;
}
#priceChart { width: 100% !important; }

.chart-controls { display: flex; gap: 4px; }
.range-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 4px 10px; border-radius: 3px;
    font-size: 11px; font-weight: 500;
    transition: all .15s;
}
.range-btn:hover  { border-color: var(--amber); color: var(--amber); }
.range-btn.active { background: var(--amber); border-color: var(--amber); color: #000; }

.chart-legend { display: flex; gap: 14px; margin-left: auto; }
.leg { font-size: 11px; font-weight: 500; }
.leg.wti    { color: var(--wti); }
.leg.brent  { color: var(--brent); }
.leg.natgas { color: var(--natgas); }

.chart-freshness {
    width: 100%;
    margin-top: 4px;
    text-align: right;
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: .02em;
}

/* Header "Data refreshed" turns amber once the OLDEST snapshot is > 3 h old. */
.update-time.stale { color: var(--amber); }

.chart-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 12px; background: rgba(7,11,20,.8);
    font-size: 13px; color: var(--text-mid);
    transition: opacity .3s;
}
.chart-overlay.hidden { opacity: 0; pointer-events: none; }

/* ── Spinner ── */
.spinner {
    width: 28px; height: 28px;
    border: 2px solid var(--border);
    border-top-color: var(--amber);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

/* ── Side Panel ── */
.side-panel {
    display: flex; flex-direction: column;
    gap: 0;
    border-top: none;
}
.panel-card {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}
.panel-title {
    font-size: 11px; font-weight: 600;
    letter-spacing: .07em; color: var(--amber);
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Indicators */
.ind-item { margin-bottom: 12px; }
.ind-item:last-child { margin-bottom: 0; }
.ind-top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.ind-label { font-size: 11px; color: var(--text-mid); }
.ind-val   { font-size: 11px; font-weight: 600; color: var(--text); }
.ind-val.red { color: var(--red); }
.ind-bar  { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.ind-fill { height: 100%; border-radius: 2px; transition: width .6s ease; }
.ind-fill.amber { background: var(--amber); }
.ind-fill.green { background: var(--green); }
.ind-fill.red   { background: var(--red); }
.ind-fill.blue  { background: var(--blue); }

/* Live indicators (EIA) */
.panel-sub { font-size: 9px; font-weight: 500; color: var(--text-dim); letter-spacing: .04em; text-transform: none; margin-left: 6px; }
.ind-loading { font-size: 11px; color: var(--text-dim); padding: 4px 0; }
.ind-val .ind-unit { font-size: 9px; font-weight: 500; color: var(--text-dim); margin-left: 2px; }
.ind-wow { font-size: 10px; font-variant-numeric: tabular-nums; }
.ind-wow.wow-up { color: var(--green); }
.ind-wow.wow-dn { color: var(--red); }

/* ── US Weekly Petroleum Status (EIA) ── */
.wps-section { border-bottom: 1px solid var(--border); }
.wps-section .section-header { padding: 16px 20px; align-items: baseline; }
.wps-asof { font-size: 10px; color: var(--text-dim); margin-left: auto; }
.wps-body { padding: 0 20px 8px; }
.wps-loading { display: flex; align-items: center; gap: 12px; padding: 30px; justify-content: center; font-size: 13px; color: var(--text-mid); }
.wps-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.wps-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
}
.wps-label { font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; min-height: 24px; }
.wps-value { font-size: 20px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.wps-value .ind-unit { font-size: 11px; font-weight: 500; color: var(--text-dim); margin-left: 3px; }
.wps-wow { margin-top: 6px; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--text-dim); }
.wps-wow.wow-up { color: var(--green); }
.wps-wow.wow-dn { color: var(--red); }
.wps-wow-tag { color: var(--text-dim); font-size: 9px; margin-left: 5px; text-transform: uppercase; letter-spacing: .04em; }
.wps-footer { padding: 4px 20px 16px; font-size: 10px; color: var(--text-dim); text-align: center; }

@media (max-width: 1100px) { .wps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .wps-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── WTI Forward Curve ── */
.curve-section { border-bottom: 1px solid var(--border); }
.curve-section .section-header { padding: 16px 20px; align-items: center; }
.curve-badge {
    margin-left: auto;
    font-size: 10px; font-weight: 700; letter-spacing: .08em;
    padding: 3px 9px; border-radius: 3px;
    border: 1px solid var(--border); color: var(--text-dim);
}
.curve-badge.backwardation { color: var(--green); background: rgba(52,211,153,.1);  border-color: rgba(52,211,153,.35); }
.curve-badge.contango      { color: var(--amber); background: rgba(245,158,11,.1);  border-color: rgba(245,158,11,.35); }
.curve-body { padding: 8px 20px 18px; }
.curve-wrap { position: relative; height: 240px; }
.curve-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; font-size: 13px; color: var(--text-mid);
    background: var(--bg);
}
.curve-overlay.hidden { display: none; }
.curve-note { margin: 10px 2px 0; font-size: 11px; color: var(--text-dim); line-height: 1.5; }

/* ── Methodology, Sources & Glossary ── */
.method-section { border-bottom: 1px solid var(--border); }
.method-section .section-header { padding: 16px 20px; }
.method-body {
    padding: 0 20px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.method-col h3 {
    font-size: 11px; font-weight: 600; letter-spacing: .07em;
    text-transform: uppercase; color: var(--amber);
    margin: 0 0 12px;
}
.method-list { margin: 0; padding-left: 18px; }
.method-list li { font-size: 12px; color: var(--text-mid); line-height: 1.6; margin-bottom: 8px; }
.method-list strong { color: var(--text); font-weight: 600; }
.method-disclaimer { margin: 14px 0 0; font-size: 10px; color: var(--text-dim); line-height: 1.5; font-style: italic; }
.method-glossary { margin: 0; }
.method-glossary dt { font-size: 12px; font-weight: 600; color: var(--text); margin-top: 12px; }
.method-glossary dt:first-child { margin-top: 0; }
.method-glossary dd { margin: 3px 0 0; font-size: 12px; color: var(--text-mid); line-height: 1.6; }
.method-glossary em { color: var(--text); font-style: italic; }

@media (max-width: 800px) { .method-body { grid-template-columns: 1fr; gap: 20px; } }

/* Drivers */
.drivers-list { display: flex; flex-direction: column; gap: 8px; }
.driver { display: flex; align-items: flex-start; gap: 10px; padding: 8px; border-radius: 4px; }
.driver.bullish { background: rgba(16,185,129,.07); border: 1px solid rgba(16,185,129,.15); }
.driver.bearish { background: rgba(239,68,68,.07);  border: 1px solid rgba(239,68,68,.15); }
.driver.neutral { background: rgba(148,163,184,.05); border: 1px solid var(--border); }
.driver-arrow { font-size: 11px; margin-top: 2px; }
.driver.bullish .driver-arrow { color: var(--green); }
.driver.bearish .driver-arrow { color: var(--red); }
.driver.neutral .driver-arrow { color: var(--text-dim); }
.driver-body { display: flex; flex-direction: column; gap: 2px; }
.driver-title  { font-size: 11px; font-weight: 600; color: var(--text); }
.driver-detail { font-size: 10px; color: var(--text-mid); }

/* Technical Levels */
.tech-levels { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.tl-item { display: flex; justify-content: space-between; align-items: center; padding: 5px 8px; border-radius: 3px; }
.tl-item.resistance { background: rgba(239,68,68,.07); }
.tl-item.support    { background: rgba(16,185,129,.07); }
.tl-item.current-lvl { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.2); }
.tl-label { font-size: 10px; color: var(--text-mid); }
.tl-price { font-size: 12px; color: var(--text); }
.tl-price.amber { color: var(--amber); }

.ma-grid { display: flex; flex-direction: column; gap: 6px; }
.ma-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; background: var(--bg); border-radius: 3px; }
.ma-label { font-size: 10px; color: var(--text-mid); flex: 1; }
.ma-val   { font-size: 11px; color: var(--text); }
.ma-signal { font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 2px; }
.ma-signal.above { background: rgba(16,185,129,.15); color: var(--green); }
.ma-signal.below { background: rgba(239,68,68,.15);  color: var(--red); }

/* ── News ── */
.news-section { padding: 0 0 24px; }
.news-section .section-header { padding: 16px 20px; }

.news-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 4px 11px; border-radius: 3px;
    font-size: 11px; font-weight: 500;
    transition: all .15s;
}
.filter-btn:hover  { border-color: var(--amber); color: var(--amber); }
.filter-btn.active { background: rgba(245,158,11,.12); border-color: var(--amber); color: var(--amber); }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1px;
    background: var(--border);
    margin: 0 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.news-loading {
    grid-column: 1 / -1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 12px; padding: 60px;
    font-size: 13px; color: var(--text-mid);
    background: var(--bg-card);
}
.news-loading.hidden { display: none; }

.news-card {
    background: var(--bg-card);
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 8px;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none;
    color: inherit;
}
.news-card:hover { background: var(--bg-panel); }

.nc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nc-source { font-size: 9px; font-weight: 700; letter-spacing: .08em; padding: 2px 6px; border-radius: 2px; }
.nc-source.eia     { background: rgba(59,130,246,.15);  color: var(--blue); }
.nc-source.reuters { background: rgba(245,158,11,.1);   color: var(--amber); }
.nc-source.oil     { background: rgba(52,211,153,.1);   color: var(--natgas); }
.nc-source.rigzone { background: rgba(148,163,184,.1);  color: var(--text-mid); }
.nc-source.cnbc    { background: rgba(239,68,68,.1);    color: var(--red); }
.nc-source.bbc     { background: rgba(255,255,255,.08); color: #f1f5f9; }
.nc-source.ft      { background: rgba(255,182,150,.12); color: #fcd5b5; }
.nc-source.hellenic{ background: rgba(56,189,248,.12);  color: var(--brent); }
.nc-source.other   { background: rgba(148,163,184,.1);  color: var(--text-mid); }

.nc-sentiment {
    font-size: 9px; font-weight: 700; letter-spacing: .05em;
    padding: 2px 6px; border-radius: 2px; margin-left: auto;
}
.nc-sentiment.bullish { background: rgba(16,185,129,.12); color: var(--green); }
.nc-sentiment.bearish { background: rgba(239,68,68,.12);  color: var(--red); }
.nc-sentiment.neutral { background: rgba(148,163,184,.08); color: var(--text-dim); }

.nc-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.nc-tag {
    font-size: 9px; color: var(--text-dim);
    border: 1px solid var(--border-soft);
    padding: 1px 5px; border-radius: 2px;
}

.nc-title {
    font-size: 13px; font-weight: 500; line-height: 1.4;
    color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.nc-excerpt {
    font-size: 11px; color: var(--text-mid); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.nc-time { font-size: 10px; color: var(--text-dim); margin-top: auto; }

.news-footer {
    text-align: center;
    margin: 12px 20px 0;
    font-size: 11px; color: var(--text-dim);
}

/* ── Footer ── */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 16px 20px;
}
.footer-inner { max-width: 900px; margin: auto; text-align: center; }
.footer-sources { font-size: 11px; color: var(--text-mid); margin-bottom: 6px; }
.footer-disclaimer { font-size: 10px; color: var(--text-dim); line-height: 1.6; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── Utility ── */
.hidden { display: none !important; }
.green  { color: var(--green); }
.red    { color: var(--red); }
.amber  { color: var(--amber); }

/* ── Global Prices ── */
.opprices-section { border-bottom: 1px solid var(--border); }
.opprices-section .section-header { padding: 16px 20px; }

.opprices-body { padding: 0 20px 20px; }

.opprices-loading {
    display: flex; align-items: center; gap: 12px;
    padding: 40px; justify-content: center;
    font-size: 13px; color: var(--text-mid);
}

/* 3-column card grid */
.op-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* individual section card */
.op-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.op-card-title {
    padding: 10px 14px;
    font-size: 10px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--amber);
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

/* table inside each card */
.op-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    flex: 1;
}

/* subsection label rows */
.op-sub-hdr td {
    padding: 4px 14px;
    font-size: 9px; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-dim);
    background: rgba(15,24,40,.6);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* data rows */
.op-row td { padding: 6px 14px; border-bottom: 1px solid rgba(30,42,58,.5); }
.op-row:hover td { background: rgba(255,255,255,.025); }
.op-row:last-child td { border-bottom: none; }

.op-row td:first-child { color: var(--text-mid); }
.op-price { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.op-chg   { text-align: right; font-variant-numeric: tabular-nums; }
.op-up    { color: var(--green); }
.op-dn    { color: var(--red); }
.op-dim   { color: var(--text-dim); }

.op-footer {
    padding: 8px 20px 16px;
    font-size: 10px; color: var(--text-dim); text-align: center;
}

@media (max-width: 1100px) { .op-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .op-grid { grid-template-columns: 1fr; } }

/* ── Strategic Petroleum Reserves ── */
.reserves-section { border-bottom: 1px solid var(--border); }
.reserves-section .section-header { padding: 16px 20px; }

.reserves-body { padding: 0 20px 20px; }

.reserves-loading {
    display: flex; align-items: center; gap: 12px;
    padding: 40px; justify-content: center;
    font-size: 13px; color: var(--text-mid);
}

.rs-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.rs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    /* Explicit inherit defends against UA-stylesheet quirks that sometimes
       set <table> to a different font from the document body. */
    font-family: inherit;
}

.rs-table thead th {
    padding: 10px 14px;
    font-size: 10px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--amber);
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.rs-table .rs-num { text-align: right; font-variant-numeric: tabular-nums; }
.rs-table .rs-rank { width: 36px; text-align: right; color: var(--text-dim); }

.rs-row td {
    padding: 8px 14px;
    border-bottom: 1px solid rgba(30,42,58,.5);
}
.rs-row:hover td { background: rgba(255,255,255,.025); }
.rs-row:last-child td { border-bottom: none; }

.rs-row .rs-country { color: var(--text); }
.rs-row .rs-type    { color: var(--text-mid); font-size: 11px; }
.rs-row .rs-dim     { color: var(--text-dim); }

/* Light dim-colored country code prefix — same font as the rest of the row,
   no chip border. Earlier draft used a monospace chip that visibly clashed
   with the Inter-based site type. */
.rs-code {
    color: var(--text-dim);
    margin-right: 6px;
    font-size: 11px;
}

.rs-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 6px;
    font-size: 9px; font-weight: 700;
    letter-spacing: .08em;
    color: var(--green);
    background: rgba(52,211,153,.1);
    border: 1px solid rgba(52,211,153,.3);
    border-radius: 3px;
    vertical-align: middle;
}

.rs-source a {
    color: var(--blue, #38bdf8);
    text-decoration: none;
}
.rs-source a:hover { text-decoration: underline; }

.rs-footer {
    padding: 8px 20px 16px;
    font-size: 10px; color: var(--text-dim); text-align: center;
}

@media (max-width: 800px) {
    .rs-table .rs-type,
    .rs-table .rs-as-of { display: none; }
}
