/* ============================================================
   Gold Rate Updater — style.css
   No font-family, no font-size on body/headings/paragraphs.
   Inherits everything from the theme.
   Only colours, layout, borders, spacing.
   ============================================================ */

/* ── Wrap ─────────────────────────────────────────────────── */
.gru-wrap {
    max-width: 860px;
    margin: 0 auto 2.5rem;
}

/* ── Hero ─────────────────────────────────────────────────── */
.gru-hero {
    background: linear-gradient(135deg, #1a1200, #3d2c00 55%, #1a1200);
    border-radius: 16px;
    padding: 2.25rem 2rem 1.75rem;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}
.gru-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 65% 40%, rgba(212,175,55,.13), transparent 65%);
    pointer-events: none;
}
.gru-hero h2 {
    color: #fff;
    margin-bottom: .35rem;
}
.gru-hero h2 span {
    color: #D4AF37;
}

.gru-hero-sub {
    color: rgba(255,255,255,.45);
    margin: 0;
}

/* ── Section ──────────────────────────────────────────────── */
.gru-section {
    margin-bottom: 1.25rem;
}
.gru-section-label {
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #B8860B;
    font-weight: 600;
    margin-bottom: .7rem;
}

/* ── Rate Cards ───────────────────────────────────────────── */
.gru-rate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.gru-rate-card {
    background: #fff;
    border: 0.5px solid rgba(184,134,11,.25);
    border-radius: 14px;
    padding: 1.25rem 1.2rem 1.1rem;
    position: relative;
    overflow: hidden;
}
.gru-rate-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #B8860B);
}
.gru-karat {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #B8860B;
    text-transform: uppercase;
    margin-bottom: .3rem;
}
.gru-price {
    color: #1a1200;
    line-height: 1;
}
.gru-price sup {
    color: #B8860B;
    vertical-align: super;
    margin-right: 2px;
}
.gru-unit {
    color: #999;
    margin-top: .2rem;
}
.gru-pct-badge {
    display: inline-block;
    color: #7C5A00;
    background: rgba(184,134,11,.1);
    padding: 2px 9px;
    border-radius: 20px;
    margin-top: .4rem;
    margin-right: 4px;
}
.gru-trend-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: .35rem;
}
.gru-rise { background: #eaf7f0; color: #1a7a4a; }
.gru-fall { background: #fff0f0; color: #c0392b; }
.gru-wm {
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: .05;
    color: #B8860B;
    pointer-events: none;
    font-size: 3.8rem;
}

/* ── Monthly Cards ────────────────────────────────────────── */
.gru-monthly-grid {
    display: grid;
    gap: 11px;
}
.gru-month-card {
    background: #fff;
    border: 0.5px solid rgba(184,134,11,.18);
    border-radius: 13px;
    padding: 1rem 1.1rem;
}
.gru-month-name {
    color: #888;
    margin-bottom: .4rem;
}
.gru-month-pct {
    color: #1a7a4a;
}
.gru-month-pct.gru-big  { color: #B8860B; }
.gru-month-pct.gru-neg  { color: #c0392b; }
.gru-month-perf         { margin-top: .1rem; background: none; padding: 0; }
.gru-month-perf.gru-rise { color: #1a7a4a; }
.gru-month-perf.gru-fall { color: #c0392b; }
.gru-month-hl {
    margin-top: .6rem;
    border-top: 0.5px solid #e8e0cc;
    padding-top: .5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gru-hl-row {
    display: flex;
    justify-content: space-between;
}
.gru-hl-l { color: #bbb; }
.gru-hl-v { color: #1a1200; font-weight: 500; }

/* ── Price Details Table ──────────────────────────────────── */
.gru-detail-box {
    background: #fff;
    border: 0.5px solid rgba(184,134,11,.18);
    border-radius: 14px;
    overflow: hidden;
}
.gru-detail-title {
    padding: .9rem 1.25rem;
    border-bottom: 0.5px solid rgba(184,134,11,.18);
    color: #1a1200;
}
.gru-detail-table {
    width: 100%;
    border-collapse: collapse;
}
.gru-detail-table thead tr {
    background: rgba(184,134,11,.06);
}
.gru-detail-table th {
    text-align: right;
    padding: .65rem 1.25rem;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #B8860B;
    border: none;
}
.gru-detail-table th:first-child {
    text-align: left;
    width: 38%;
}
.gru-detail-table tbody tr {
    border-top: 0.5px solid #f0e8d4;
}
.gru-detail-table td {
    padding: .75rem 1.25rem;
    text-align: right;
    color: #1a1200;
    border: none;
}
.gru-detail-table td:first-child {
    text-align: left;
}
.gru-tr-alt {
    background: rgba(184,134,11,.025);
}
.gru-td-bold {
    font-weight: 600;
}
.gru-karat-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    margin-right: 5px;
}
.gru-karat-24 { color: #B8860B; background: rgba(184,134,11,.1); }
.gru-karat-22 { color: #7C5A00; background: rgba(124,90,0,.1); }
.gru-detail-table tfoot tr {
    border-top: 0.5px solid rgba(184,134,11,.25);
    background: rgba(184,134,11,.04);
}
.gru-tf-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #888;
}
.gru-tf-val {
    font-weight: 600;
    text-align: right;
}
.gru-green { color: #1a7a4a; }
.gru-red   { color: #c0392b; }

/* ── SEO Content ──────────────────────────────────────────── */
.gru-seo {
    background: #fff;
    border: 0.5px solid rgba(184,134,11,.12);
    border-radius: 14px;
    padding: 1.5rem;
}
.gru-seo h2 {
    color: #1a1200;
    margin-bottom: .75rem;
    border-bottom: 1.5px solid rgba(212,175,55,.2);
    padding-bottom: .5rem;
}
.gru-seo h3 {
    color: #B8860B;
    margin: 1.2rem 0 .45rem;
}
.gru-seo p {
    color: #444;
    margin-bottom: .9rem;
}

/* ── Stamp ────────────────────────────────────────────────── */
.gru-stamp {
    text-align: center;
    color: #bbb;
    letter-spacing: .5px;
    padding: .5rem;
}
.gru-stamp strong {
    color: #B8860B;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 580px) {
    .gru-rate-grid      { grid-template-columns: 1fr; }
    .gru-monthly-grid   { grid-template-columns: 1fr 1fr !important; }
    .gru-detail-table th,
    .gru-detail-table td { padding: .6rem .75rem; }
}