/* Gold & Silver Rates — scoped styles. Self-contained, dark theme matching
   the rest of manikumarjami.com (mapc/labs palette), gold/silver accent. */

:root {
    --bg: #0d0f1a;
    --s1: #131623;
    --s2: #1a1d2e;
    --bd: #2a2f4a;
    --tx: #e2e4f0;
    --mu: #7b82a8;
    --gold: #f5b942;
    --gold2: #ffd76a;
    --silver: #c7ccd9;
    --up: #00e676;
    --down: #ef5350;
}

* { box-sizing: border-box; }

body.gr-page {
    margin: 0;
    background: var(--bg);
    color: var(--tx);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* NAV */
.gr-nav {
    background: var(--s1);
    border-bottom: 1px solid var(--bd);
    padding: 13px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.gr-nav-brand { font-size: 14px; font-weight: 800; color: var(--tx); text-decoration: none; }
.gr-nav-brand span { color: var(--gold); }
.gr-nav-back { display: inline-block; padding: 10px 0; font-size: 12px; color: var(--mu); text-decoration: none; }
.gr-nav-back:hover { color: var(--tx); }

/* MAIN WRAP */
.gr-main {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* BREADCRUMB */
.gr-breadcrumb {
    font-size: 12px;
    color: var(--mu);
    padding: 16px 0 0;
}
.gr-breadcrumb a { color: var(--mu); text-decoration: none; }
.gr-breadcrumb a:hover { color: var(--gold); }
.gr-breadcrumb span { margin: 0 4px; }

/* HERO */
.gr-hero { padding: 28px 0 8px; }
.gr-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--gold);
    background: rgba(245, 185, 66, .08);
    border: 1px solid rgba(245, 185, 66, .22);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.gr-h1 { font-size: 30px; font-weight: 900; line-height: 1.2; margin: 0 0 10px; }
.gr-sub { font-size: 14px; color: var(--mu); max-width: 640px; margin: 0 0 22px; }

/* HERO RATE CARDS */
.gr-hero-cards { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.gr-hero-card {
    flex: 1 1 220px;
    background: var(--s1);
    border: 1px solid var(--bd);
    border-radius: 12px;
    padding: 18px 20px;
}
.gr-hc-label { font-size: 12px; color: var(--mu); font-weight: 600; margin-bottom: 6px; }
.gr-hc-unit { font-weight: 400; color: var(--mu); }
.gr-hc-value { font-size: 28px; font-weight: 900; color: var(--gold2); margin-bottom: 6px; }
.gr-hc-change { font-size: 12.5px; font-weight: 700; }
.gr-hc-change.gr-up { color: var(--up); }
.gr-hc-change.gr-down { color: var(--down); }
.gr-hc-change.gr-flat { color: var(--mu); }

/* SECTIONS */
.gr-section { padding: 28px 0; border-top: 1px solid var(--bd); }
.gr-section:first-of-type { border-top: none; }
.gr-section h2 { font-size: 19px; font-weight: 800; margin: 0 0 14px; }
.gr-section h3 { font-size: 14px; font-weight: 700; color: var(--mu); margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .4px; }
.gr-section h3:first-of-type { margin-top: 0; }
.gr-section p { font-size: 14px; color: var(--tx); margin: 0 0 12px; }
.gr-section p:last-child { margin-bottom: 0; }

/* TABLES */
.gr-table-wrap { margin-bottom: 18px; }
.gr-table-wrap:last-of-type { margin-bottom: 14px; }
.gr-table { width: 100%; border-collapse: collapse; background: var(--s1); border: 1px solid var(--bd); border-radius: 8px; overflow: hidden; font-size: 14px; }
.gr-table th, .gr-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--bd); }
.gr-table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--mu); font-weight: 700; background: var(--s2); }
.gr-table tbody tr:last-child td { border-bottom: none; }
.gr-table td:first-child { font-weight: 700; }
.gr-table td:not(:first-child) { font-variant-numeric: tabular-nums; color: var(--gold2); font-weight: 600; }

/* NOTES */
.gr-note { font-size: 12.5px; color: var(--mu); }
.gr-note a { color: var(--gold); text-decoration: none; }
.gr-note a:hover { text-decoration: underline; }
.gr-disclaimer { font-size: 11.5px; color: var(--mu); }

/* CITY GRID */
.gr-city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.gr-city-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--s1);
    border: 1px solid var(--bd);
    border-radius: 8px;
    padding: 12px 14px;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.gr-city-card:hover { border-color: var(--gold); background: rgba(245, 185, 66, .05); }
.gr-city-name { font-size: 13.5px; font-weight: 700; color: var(--tx); }
.gr-city-state { font-size: 11.5px; color: var(--mu); }

/* SUBSCRIBE */
.gr-subscribe { border-top: 1px solid var(--bd); }
.gr-sub-card {
    background: linear-gradient(135deg, rgba(245, 185, 66, .08), rgba(0, 188, 212, .05));
    border: 1px solid var(--bd);
    border-radius: 12px;
    padding: 24px;
}
.gr-sub-card h2 { margin-bottom: 6px; }
.gr-sub-card > p { font-size: 13px; color: var(--mu); margin-bottom: 16px; }
.gr-sub-row { display: flex; gap: 8px; flex-wrap: wrap; }
.gr-sub-input {
    flex: 1 1 220px;
    background: var(--s2);
    border: 1px solid var(--bd);
    border-radius: 7px;
    padding: 11px 13px;
    color: var(--tx);
    font-size: 13px;
    outline: none;
}
.gr-sub-input:focus { border-color: var(--gold); }
.gr-sub-input::placeholder { color: var(--mu); }
.gr-sub-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: #1a1208;
    font-weight: 800;
    font-size: 13px;
    padding: 15px 22px;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.gr-sub-btn:disabled { opacity: .5; cursor: not-allowed; }
.gr-sub-note { font-size: 11px; color: var(--mu); margin-top: 8px; margin-bottom: 0 !important; }
.gr-sub-err { display: none; font-size: 12px; color: var(--down); margin-top: 8px; }
.gr-sub-ok { display: none; font-size: 13px; color: var(--up); margin-top: 12px; padding: 12px 14px; background: rgba(0, 230, 118, .08); border: 1px solid rgba(0, 230, 118, .22); border-radius: 8px; }

/* FAQ */
.gr-faq-item { border-bottom: 1px solid var(--bd); }
.gr-faq-item:last-child { border-bottom: none; }
.gr-faq-item summary { padding: 14px 0; font-size: 14px; font-weight: 700; cursor: pointer; }
.gr-faq-item summary::marker { color: var(--gold); }
.gr-faq-item p { margin: 0 0 14px; font-size: 13px; color: var(--mu); }

/* METHODOLOGY */
.gr-methodology p { font-size: 13px; color: var(--mu); }
.gr-methodology strong { color: var(--tx); }

/* AD SLOTS — empty placeholders, ready for AdSense */
.ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    border: 1px dashed var(--bd);
    border-radius: 8px;
    color: var(--mu);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.ad-slot::before { content: "Advertisement"; opacity: .35; }
.ad-slot--leaderboard { min-height: 90px; }
.ad-slot--in-content { min-height: 250px; }
.ad-slot--sidebar { min-height: 600px; }

/* ERROR */
.gr-error { padding: 60px 0; text-align: center; }
.gr-error h1 { font-size: 22px; margin-bottom: 10px; }
.gr-error p { color: var(--mu); margin-bottom: 18px; }
.gr-btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: #1a1208;
    font-weight: 800;
    font-size: 13px;
    padding: 11px 22px;
    border-radius: 7px;
    text-decoration: none;
}

/* FOOTER */
.gr-footer {
    border-top: 1px solid var(--bd);
    padding: 18px 24px;
    text-align: center;
    font-size: 11px;
    color: var(--mu);
}
.gr-footer a { color: var(--mu); text-decoration: none; }
.gr-footer a:hover { color: var(--gold); }

@media (max-width: 600px) {
    .gr-h1 { font-size: 24px; }
    .gr-hero-cards { flex-direction: column; }
    .gr-sub-row { flex-direction: column; }
    .gr-sub-input { flex: 1 1 auto; width: 100%; }
    .gr-sub-btn { width: 100%; }
}
