:root {
    --ref-navy: #06172b;
    --ref-navy-dark: #041223;
    --ref-panel: #0a2744;
    --ref-gold: #dca51f;
    --ref-gold-light: #f5cc62;
    --ref-white: #ffffff;
    --ref-muted: #b8c4d1;
    --ref-border: rgba(255, 255, 255, 0.13);
    --ref-container: 1540px;
}

/* =========================================================
   GLOBAL HOMEPAGE CONTAINER
   ========================================================= */

.ref-container {
    width: calc(100% - 44px);
    max-width: var(--ref-container);
    margin-right: auto;
    margin-left: auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.ref-header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: var(--ref-navy-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ref-header__inner {
    width: calc(100% - 44px);
    max-width: var(--ref-container);
    min-height: 72px;
    margin-right: auto;
    margin-left: auto;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
}

.ref-brand {
    min-width: 0;
    height: 72px;
    display: flex;
    align-items: center;
    overflow: visible;
}

.ref-brand__logo {
    display: block;
    width: 255px;
    max-width: none;
    height: auto;
    object-fit: contain;
}

.ref-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(15px, 1.15vw, 26px);
}

.ref-nav a {
    color: #f5f7fa;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.ref-nav a:hover {
    color: var(--ref-gold-light);
}

.ref-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.ref-watchlist {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #f5f7fa;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.ref-watchlist span {
    color: var(--ref-gold);
    font-size: 19px;
    line-height: 1;
}

.ref-currency {
    display: block;
}

.ref-currency select {
    width: 70px;
    height: 36px;
    padding: 0 9px;
    color: #ffffff;
    background: #0b223b;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 5px;
    outline: none;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.ref-signup {
    min-width: 72px;
    height: 36px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111d2f;
    background: linear-gradient(180deg, #f7d36c, #d69d18);
    border: 1px solid #eac052;
    border-radius: 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

/* =========================================================
   HERO
   ========================================================= */

.ref-hero {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    min-height: 620px;
    margin: 0;
    overflow: hidden;
    color: var(--ref-white);

    background:
        linear-gradient(
            90deg,
            rgba(4, 20, 38, 0.80) 0%,
            rgba(4, 20, 38, 0.62) 28%,
            rgba(4, 20, 38, 0.38) 48%,
            rgba(4, 20, 38, 0.22) 70%,
            rgba(4, 20, 38, 0.18) 100%
        ),
        url('../images/gold-rate-b-3.jpeg') center center / cover no-repeat;
}

/*
   These decorative SVG elements must be absolutely positioned.
   Without this, the trend line becomes a full-sized page block.
*/

.ref-hero__map {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ref-hero__map svg {
    position: absolute;
    top: -52px;
    left: 4%;
    width: 92%;
    height: 570px;
    opacity: 0.43;
}

.ref-hero__trend {
    position: absolute;
    z-index: 0;
    top: 62px;
    left: 22%;
    width: 57%;
    height: 310px;
    opacity: 0.88;
    pointer-events: none;
}

.ref-hero__trend svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ref-hero__grid {
    position: relative;
    z-index: 2;
    min-height: 620px;
    padding-top: 30px;
    padding-bottom: 28px;
    display: grid;
    grid-template-columns:
        minmax(355px, 0.95fr)
        minmax(330px, 0.82fr)
        minmax(470px, 1.15fr);
    align-items: center;
    gap: 20px;
}

/* =========================================================
   HERO COPY
   ========================================================= */

.ref-hero__copy {
    position: relative;
    z-index: 4;
    align-self: center;
    padding-top: 4px;
}

.ref-hero h1 {
    max-width: 560px;
    margin: 0 0 20px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 3.65vw, 67px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.025em;
}

.ref-hero h1 span {
    display: block;
    margin-top: 4px;
    color: var(--ref-gold);
}

.ref-hero__intro {
    max-width: 470px;
    margin: 0;
    color: #d2dce8;
    font-size: 16px;
    line-height: 1.65;
}

/* =========================================================
   TRUST ITEMS
   ========================================================= */

.ref-trust-grid {
    width: 100%;
    max-width: 490px;
    margin: 28px 0 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ref-trust-grid > div {
    min-width: 0;
    min-height: 86px;
    padding: 6px 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.ref-trust-grid > div:first-child {
    padding-left: 0;
}

.ref-trust-grid > div:last-child {
    padding-right: 0;
    border-right: 0;
}

.ref-trust-icon {
    width: 27px;
    height: 27px;
    margin-bottom: 8px;
    display: block;
    color: var(--ref-gold-light);
}

.ref-trust-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ref-trust-grid strong {
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.ref-trust-grid small {
    margin-top: 4px;
    color: #9eacbc;
    font-size: 9px;
    line-height: 1.25;
    white-space: nowrap;
}

/* =========================================================
   HERO EMAIL FORM
   ========================================================= */

.ref-alert-form {
    width: 100%;
    max-width: 490px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.ref-alert-form input {
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    color: #192638;
    background: #ffffff;
    border: 0;
    border-radius: 6px 0 0 6px;
    outline: none;
    box-shadow: none;
    font-family: inherit;
    font-size: 13px;
}

.ref-alert-form input::placeholder {
    color: #8490a0;
}

.ref-alert-form button {
    height: 48px;
    padding: 0 22px;
    color: #152137;
    background: linear-gradient(180deg, #f7d36c, #d89e13);
    border: 0;
    border-radius: 0 6px 6px 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 6px 18px rgba(0, 0, 0, 0.12);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ref-alert-note {
    margin: 10px 0 0;
    color: #aab6c4;
    font-size: 10px;
    line-height: 1.4;
}

.ref-alert-note span {
    margin-right: 5px;
    color: var(--ref-gold-light);
}

/* =========================================================
   GOLD IMAGE
   ========================================================= */

.ref-gold-art {
    position: relative;
    z-index: 3;
    min-width: 0;
    height: 100%;
    align-self: end;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.ref-gold-art::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 8%;
    bottom: 2%;
    left: 8%;
    height: 70px;
    background: rgba(205, 145, 17, 0.29);
    border-radius: 50%;
    filter: blur(28px);
}

.ref-gold-art img {
    display: block;
    width: 118%;
    max-width: 590px;
    height: auto;
    margin-right: -18px;
    margin-bottom: -44px;
    object-fit: contain;
    object-position: center bottom;
}

/*
   This helps blend the current image with the dark hero.
   A genuinely transparent PNG will produce a cleaner result.
*/

.ref-gold-art img {
    mix-blend-mode: screen;
}

/* =========================================================
   LIVE PRICE CARD
   ========================================================= */

.ref-market-card {
    position: relative;
    z-index: 5;
    width: 100%;
    overflow: hidden;
    align-self: center;
    color: #ffffff;
    background:
        linear-gradient(
            180deg,
            rgba(10, 39, 68, 0.99),
            rgba(6, 27, 49, 0.99)
        );
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 13px;
    box-shadow:
        0 30px 65px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ref-market-card__head {
    min-height: 58px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--ref-border);
    text-transform: uppercase;
}

.ref-market-card__head strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.ref-market-card__head span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #53d991;
    font-size: 10px;
    font-weight: 700;
}

.ref-market-card__head span i {
    width: 6px;
    height: 6px;
    display: block;
    background: #48d486;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(72, 212, 134, 0.75);
}

.ref-market-tabs {
    padding: 13px 17px 11px;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ref-market-tabs::-webkit-scrollbar {
    display: none;
}

.ref-market-tabs a {
    min-width: 48px;
    height: 32px;
    padding: 0 11px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #dce4ed;
    background: #0a2948;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.ref-market-tabs a.is-active {
    color: #152033;
    background: linear-gradient(180deg, #f7d36c, #cf9411);
    border-color: #efc650;
}

.ref-market-labels,
.ref-market-row {
    display: grid;
    grid-template-columns:
        minmax(150px, 1fr)
        minmax(125px, auto)
        72px;
    gap: 12px;
    align-items: center;
}

.ref-market-labels {
    padding: 0 17px 8px;
    color: #93a3b5;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.ref-market-labels span:nth-child(2),
.ref-market-labels span:nth-child(3) {
    text-align: right;
}

.ref-market-row {
    min-height: 43px;
    padding: 0 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ref-market-row span {
    overflow: hidden;
    color: #f3f6fa;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ref-market-row strong {
    color: #ffffff;
    text-align: right;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.ref-market-row em {
    text-align: right;
    font-size: 10px;
    font-weight: 600;
    font-style: normal;
    line-height: 1;
    white-space: nowrap;
}

.ref-market-row .is-positive {
    color: #51d98e;
}

.ref-market-row .is-negative {
    color: #ff7777;
}

.ref-market-row .is-neutral {
    color: #aeb9c6;
}

/* =========================================================
   MINI CHART
   ========================================================= */

.ref-mini-chart {
    position: relative;
    height: 115px;
    padding: 9px 17px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 27px,
            rgba(255, 255, 255, 0.045) 28px
        );
}

.ref-mini-chart svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ref-market-card__foot {
    min-height: 44px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #8fa0b4;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 9px;
    line-height: 1.3;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media screen and (max-width: 1380px) {

    .ref-header__inner {
        grid-template-columns: 225px minmax(0, 1fr) auto;
    }

    .ref-brand__logo {
        width: 220px;
    }

    .ref-nav {
        gap: 14px;
    }

    .ref-nav a {
        font-size: 11px;
    }

    .ref-hero__grid {
        grid-template-columns:
            minmax(330px, 0.92fr)
            minmax(275px, 0.72fr)
            minmax(430px, 1.08fr);
        gap: 15px;
    }

    .ref-gold-art img {
        width: 122%;
        margin-right: -24px;
    }
}

@media screen and (max-width: 1150px) {

    .ref-header__inner {
        grid-template-columns: 220px 1fr auto;
    }

    .ref-nav a:nth-child(5),
    .ref-nav a:nth-child(6),
    .ref-watchlist {
        display: none;
    }

    .ref-hero {
        min-height: auto;
    }

    .ref-hero__grid {
        min-height: auto;
        padding-top: 46px;
        padding-bottom: 46px;
        grid-template-columns: minmax(0, 1fr) minmax(410px, 0.95fr);
        gap: 30px;
    }

    .ref-gold-art {
        position: absolute;
        right: 38%;
        bottom: 0;
        width: 310px;
        height: 360px;
        opacity: 0.42;
    }

    .ref-gold-art img {
        width: 100%;
        margin: 0;
    }

    .ref-market-card {
        grid-column: 2;
    }
}

@media screen and (max-width: 860px) {

    .ref-header__inner {
        width: 100%;
        min-height: 72px;
        padding: 0 16px;
        display: flex;
        justify-content: space-between;
    }

    .ref-brand {
        flex: 1 1 auto;
    }

    .ref-brand__logo {
        width: 205px;
    }

    .ref-nav,
    .ref-watchlist {
        display: none;
    }

    .ref-hero__map svg {
        left: -20%;
        width: 140%;
        opacity: 0.26;
    }

    .ref-hero__trend {
        top: 170px;
        left: 5%;
        width: 90%;
        opacity: 0.42;
    }

    .ref-hero__grid {
        width: calc(100% - 30px);
        padding-top: 42px;
        padding-bottom: 42px;
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .ref-hero__copy {
        max-width: 620px;
    }

    .ref-gold-art {
        display: none;
    }

    .ref-market-card {
        width: 100%;
        max-width: 620px;
        grid-column: auto;
    }
}

@media screen and (max-width: 600px) {

    .ref-header__inner {
        min-height: 66px;
        padding: 0 12px;
        gap: 8px;
    }

    .ref-brand {
        height: 66px;
    }

    .ref-brand__logo {
        width: 178px;
    }

    .ref-currency {
        display: none;
    }

    .ref-signup {
        min-width: 70px;
        height: 38px;
        padding: 0 12px;
        font-size: 11px;
    }

    .ref-hero h1 {
        font-size: clamp(43px, 12vw, 57px);
    }

    .ref-hero__intro {
        font-size: 15px;
    }

    .ref-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .ref-trust-grid > div {
        min-height: 94px;
        border-right: 1px solid rgba(255, 255, 255, 0.12);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .ref-trust-grid > div:nth-child(2n) {
        border-right: 0;
    }

    .ref-trust-grid > div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .ref-trust-grid > div:first-child {
        padding-left: 11px;
    }

    .ref-trust-grid > div:last-child {
        padding-right: 11px;
    }

    .ref-alert-form {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ref-alert-form input,
    .ref-alert-form button {
        width: 100%;
        border-radius: 6px;
    }

    .ref-market-labels,
    .ref-market-row {
        grid-template-columns: minmax(115px, 1fr) auto 60px;
        gap: 7px;
    }

    .ref-market-row {
        padding-right: 12px;
        padding-left: 12px;
    }

    .ref-market-row span {
        font-size: 10px;
    }

    .ref-market-row strong {
        font-size: 12px;
    }

    .ref-market-row em {
        font-size: 9px;
    }

    .ref-market-card__foot {
        padding-top: 9px;
        padding-bottom: 9px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
    }
}

@media screen and (max-width: 410px) {

    .ref-brand__logo {
        width: 158px;
    }

    .ref-signup {
        min-width: 62px;
        padding: 0 9px;
    }

    .ref-market-tabs {
        padding-right: 11px;
        padding-left: 11px;
    }

    .ref-market-tabs a {
        min-width: 43px;
        padding: 0 8px;
    }

    .ref-market-labels {
        display: none;
    }

    .ref-market-row {
        min-height: 50px;
        grid-template-columns: 1fr auto;
    }

    .ref-market-row em {
        grid-column: 2;
    }
}
/* =========================================================
   QUICK ANSWERS
   ========================================================= */

.quick-strip {
    position: relative;
    z-index: 10;
    background: #ffffff;
    border-top: 1px solid #e7e9ed;
    border-bottom: 1px solid #e2e5e9;
}

.quick-row {
    min-height: 66px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.quick-row__title {
    padding-right: 18px;
    color: #172131;
    border-right: 1px solid #e1e4e8;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.quick-links {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
}

.quick-link {
    min-width: 0;
    min-height: 39px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #303a48;
    background: #ffffff;
    border: 1px solid #e4e6ea;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(18, 31, 47, 0.04);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.quick-link:hover {
    color: #9c6b00;
    border-color: #dcb044;
    box-shadow: 0 5px 14px rgba(18, 31, 47, 0.08);
    transform: translateY(-1px);
}

.quick-link__icon {
    width: 19px;
    height: 19px;
    display: block;
    flex: 0 0 19px;
    color: #d5a11d;
}

.quick-link__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quick-link > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media screen and (max-width: 1150px) {

    .quick-row {
        padding-top: 12px;
        padding-bottom: 12px;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .quick-row__title {
        padding-right: 0;
        padding-bottom: 9px;
        border-right: 0;
        border-bottom: 1px solid #e1e4e8;
    }

    .quick-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 650px) {

    .quick-links {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .quick-links::-webkit-scrollbar {
        display: none;
    }

    .quick-link {
        min-width: 190px;
        flex: 0 0 auto;
        justify-content: flex-start;
    }
}
/* =========================================================
   QUICK ANSWERS — CONFLICT FIX
   Prevent global SVG and link styles from breaking this strip
   ========================================================= */

.quick-strip {
    width: 100%;
    min-height: 66px;
    background: #ffffff;
}

.quick-strip .quick-row {
    min-height: 66px;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 18px !important;
}

.quick-strip .quick-links {
    min-width: 0;
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 9px !important;
}

.quick-strip .quick-link {
    width: auto !important;
    min-width: 0 !important;
    min-height: 39px !important;
    height: 39px !important;
    margin: 0 !important;
    padding: 6px 10px !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    color: #303a48 !important;
    background: #ffffff !important;
    border: 1px solid #e4e6ea !important;
    border-radius: 6px !important;

    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

.quick-strip .quick-link__icon {
    width: 19px !important;
    min-width: 19px !important;
    max-width: 19px !important;
    height: 19px !important;
    min-height: 19px !important;
    max-height: 19px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;
    flex: 0 0 19px !important;

    color: #d5a11d !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

.quick-strip .quick-link__icon svg {
    width: 19px !important;
    min-width: 19px !important;
    max-width: 19px !important;
    height: 19px !important;
    min-height: 19px !important;
    max-height: 19px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;
    overflow: visible !important;

    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.7 !important;
}

.quick-strip .quick-link__icon svg path,
.quick-strip .quick-link__icon svg circle,
.quick-strip .quick-link__icon svg line,
.quick-strip .quick-link__icon svg polyline,
.quick-strip .quick-link__icon svg polygon {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.7 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.quick-strip .quick-link > span:last-child {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;

    display: block !important;

    overflow: hidden !important;
    color: inherit !important;
    background: transparent !important;
    border: 0 !important;

    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

@media screen and (max-width: 1150px) {
    .quick-strip .quick-row {
        padding-top: 12px;
        padding-bottom: 12px;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .quick-strip .quick-links {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media screen and (max-width: 650px) {
    .quick-strip .quick-links {
        display: flex !important;
        overflow-x: auto !important;
    }

    .quick-strip .quick-link {
        min-width: 190px !important;
        justify-content: flex-start !important;
        flex: 0 0 190px !important;
    }
}

/* =========================================================
   GOLD MARKET GAUGE
   ========================================================= */

.market-gauge-section {
    padding-top: 32px;
}

.market-gauge-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.market-gauge-heading h2 {
    margin: 7px 0 0;
    color: #15171c;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.gauge-method-link {
    flex-shrink: 0;
    padding-bottom: 2px;
    color: #7b5b08;
    border-bottom: 1px solid rgba(123, 91, 8, 0.35);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.gauge-method-link:hover {
    color: #15171c;
    border-color: #15171c;
}

.market-gauge-grid {
    display: grid;
    grid-template-columns:
        minmax(260px, 0.9fr)
        minmax(360px, 1.35fr)
        minmax(270px, 0.95fr);
    align-items: stretch;
    gap: 18px;
}

.market-gauge-grid > .panel {
    height: 100%;
}

.gauge-panel,
.gauge-factors-panel,
.gauge-summary-panel {
    position: relative;
    overflow: hidden;
    padding: 26px;
}

.gauge-panel {
    display: flex;
    flex-direction: column;
    text-align: left;
    background:
        radial-gradient(
            circle at 50% 5%,
            rgba(214, 169, 39, 0.13),
            transparent 36%
        ),
        #ffffff;
}

.gauge-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.gauge-panel-heading > div {
    min-width: 0;
}

.gauge-panel-heading-left {
    width: 100%;
    text-align: left;
}

.gauge-panel-heading-left > div {
    width: 100%;
    text-align: left;
}

.gauge-panel-heading-left .section-label,
.gauge-panel-heading-left .gauge-card-title,
.gauge-panel-heading-left .gauge-market {
    display: block;
    width: 100%;
    text-align: left;
}

.gauge-card-title,
.gauge-panel-heading h3,
.gauge-summary-panel h3 {
    margin: 6px 0 0;
    color: #15171c;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.gauge-card-title {
    margin-bottom: 7px;
}

.gauge-market {
    margin-top: 2px;
    color: #707783;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.gauge-live-status {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 7px;
    margin-top: 2px;
    color: #257247;
    font-size: 12px;
    font-weight: 700;
}

.gauge-live-status i {
    width: 7px;
    height: 7px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(37, 114, 71, 0.1);
}

.market-gauge {
    --gauge-score: 50;

    position: relative;
    width: min(260px, 100%);
    aspect-ratio: 2 / 1.15;
    margin: 20px auto 0;
    overflow: hidden;
}

.market-gauge-track {
    position: absolute;
    right: 4%;
    bottom: -83%;
    left: 4%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        conic-gradient(
            from 270deg,
            #d66155 0deg 45deg,
            #dc9b46 45deg 81deg,
            #d8bf55 81deg 108deg,
            #78a962 108deg 144deg,
            #2f8b59 144deg 180deg,
            transparent 180deg 360deg
        );
}

.market-gauge-track::after {
    content: "";
    position: absolute;
    inset: 18%;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.04);
}

.market-gauge-needle {
    position: absolute;
    z-index: 3;
    bottom: 4%;
    left: 50%;
    width: 42%;
    height: 2px;
    transform:
        rotate(
            calc(-180deg + (var(--gauge-score) * 1.8deg))
        );
    transform-origin: left center;
    transition: transform 650ms ease;
}

.market-gauge-needle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #24272e;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
}

.market-gauge-needle::before {
    content: "";
    position: absolute;
    top: -6px;
    left: -7px;
    width: 15px;
    height: 15px;
    background: #24272e;
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.market-gauge-centre {
    position: absolute;
    z-index: 4;
    bottom: 0;
    left: 50%;
    min-width: 130px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    color: #181a20;
    background: #ffffff;
    transform: translateX(-50%);
}

.market-gauge-centre strong {
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.055em;
}

.market-gauge-centre small {
    margin-left: 4px;
    color: #7c838f;
    font-size: 14px;
    font-weight: 700;
}

.gauge-scale {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 6px 20px;
    color: #8a9099;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gauge-result {
    min-height: 34px;
    padding: 7px 14px;
    display: inline-flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.gauge-result-strong,
.gauge-result-positive {
    color: #236e47;
    background: #eaf5ef;
}

.gauge-result-balanced {
    color: #775d11;
    background: #f8f1dc;
}

.gauge-result-cautious {
    color: #925a14;
    background: #fff1df;
}

.gauge-result-weak {
    color: #a04841;
    background: #fbeceb;
}

.gauge-description {
    max-width: 380px;
    margin: 15px auto 0;
    color: #626a76;
    font-size: 14px;
    line-height: 1.65;
    text-align: center;
}

.gauge-metadata {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin-top: auto;
    padding-top: 23px;
    color: #949aa4;
    font-size: 11px;
    text-align: center;
}

.gauge-panel-empty .gauge-metadata {
    margin-top: 28px;
}

.gauge-metadata span + span {
    position: relative;
}

.gauge-metadata span + span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -9px;
    width: 3px;
    height: 3px;
    background: #c3c7cd;
    border-radius: 50%;
    transform: translateY(-50%);
}

.factor-total {
    color: #8b6911;
    font-size: 18px;
    white-space: nowrap;
}

.gauge-factor-list {
    display: grid;
    gap: 19px;
}

.gauge-factor {
    padding-bottom: 17px;
    border-bottom: 1px solid #eceef1;
}

.gauge-factor:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.gauge-factor-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.gauge-factor-top > div:first-child {
    min-width: 0;
}

.gauge-factor-top strong {
    display: block;
    margin-bottom: 3px;
    color: #2b2e35;
    font-size: 13px;
}

.gauge-factor-top span {
    color: #8b919b;
    font-size: 12px;
}

.gauge-factor-result {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    text-align: right;
}

.gauge-factor-result b {
    font-size: 12px;
}

.factor-tone-positive {
    color: #27754a;
}

.factor-tone-neutral {
    color: #816920;
}

.factor-tone-negative {
    color: #ac5148;
}

.gauge-factor-bar {
    height: 5px;
    margin-top: 10px;
    overflow: hidden;
    background: #eceef1;
    border-radius: 999px;
}

.gauge-factor-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #b88811, #ddb73f);
    border-radius: inherit;
}

.gauge-note {
    margin: 22px 0 0;
    padding: 13px 15px;
    color: #787f89;
    background: #f7f8fa;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.55;
}

.gauge-summary-panel {
    display: flex;
    flex-direction: column;
}

.gauge-summary-list {
    display: grid;
    gap: 4px;
    margin-top: 18px;
}

.gauge-summary-item {
    padding: 15px 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid #eceef1;
}

.gauge-summary-item:last-child {
    border-bottom: 0;
}

.gauge-summary-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #82600a;
    background: #f7f0dc;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 800;
}

.gauge-summary-item p {
    margin: 0;
}

.gauge-summary-item strong {
    display: block;
    margin-bottom: 5px;
    color: #282b32;
    font-size: 13px;
}

.gauge-summary-item small {
    display: block;
    color: #757c87;
    font-size: 12px;
    line-height: 1.55;
}

.gauge-data-footnote {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
    color: #858b95;
    font-size: 11px;
}

.gauge-data-footnote strong {
    color: #555b65;
    text-align: right;
}

.gauge-unavailable,
.factor-empty-state {
    padding: 28px 20px;
    color: #777f8a;
    background: #fafbfc;
    border: 1px dashed #d9dde3;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.gauge-unavailable {
    margin: auto 0;
}

.gauge-unavailable strong {
    display: block;
    margin-bottom: 7px;
    color: #30343b;
    font-size: 17px;
}

.gauge-unavailable p {
    margin: 0;
}

.gauge-summary-panel > .factor-empty-state {
    margin-top: 22px;
}

@media (max-width: 1050px) {
    .market-gauge-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gauge-summary-panel {
        grid-column: 1 / -1;
    }

    .gauge-summary-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .gauge-summary-item {
        border-bottom: 0;
    }
}

@media (max-width: 760px) {
    .market-gauge-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .market-gauge-grid {
        grid-template-columns: 1fr;
    }

    .gauge-summary-panel {
        grid-column: auto;
    }

    .gauge-summary-list {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .gauge-summary-item {
        border-bottom: 1px solid #eceef1;
    }

    .gauge-panel,
    .gauge-factors-panel,
    .gauge-summary-panel {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .gauge-panel-heading,
    .gauge-factor-top {
        align-items: flex-start;
    }

    .gauge-panel-heading-left {
        flex-direction: column;
    }

    .gauge-factor-result {
        flex-shrink: 0;
    }

    .market-gauge-centre strong {
        font-size: 42px;
    }

    .gauge-metadata {
        align-items: center;
        flex-direction: column;
    }

    .gauge-metadata span + span::before {
        display: none;
    }
}

/* =========================================================
   WORDPRESS V3 - FINAL HERO INTEGRATION
   ========================================================= */

/*
 * Real photographic hero background.
 * Darker only on the left for text readability.
 * The right side remains bright so the real bullion is visible.
 */
.ref-hero {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    min-height: 620px;
    margin: 0;
    overflow: hidden;
    color: var(--ref-white);

    background:
        linear-gradient(
            90deg,
            rgba(4, 20, 38, 0.88) 0%,
            rgba(4, 20, 38, 0.70) 25%,
            rgba(4, 20, 38, 0.38) 43%,
            rgba(4, 20, 38, 0.12) 66%,
            rgba(4, 20, 38, 0.08) 100%
        ),
        url('../images/gold-rate-b-3.jpeg') center center / cover no-repeat;
}


/*
 * Remove any old overlay added during testing.
 */
.ref-hero::before {
    display: none !important;
    content: none !important;
}


/*
 * Remove the artificial gold bullion artwork.
 * The real bullion photograph now provides the visual.
 */
.ref-gold-art,
.ref-gold-art img,
.ref-gold-art::after {
    display: none !important;
}


/*
 * Remove the decorative upward price line.
 * We do not want a fake chart implying that gold is rising.
 */
.ref-hero__trend,
.ref-hero__trend svg {
    display: none !important;
}


/*
 * Remove the decorative dotted/map layer as well.
 * The photograph already contains enough financial detail.
 */
.ref-hero__map,
.ref-hero__map svg {
    display: none !important;
}


/* =========================================================
   HERO CONTAINER
   ========================================================= */

.ref-hero .ref-container {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}


/*
 * True two-column layout:
 *
 * LEFT  = headline, description, trust items, alerts
 * RIGHT = live gold price card
 *
 * There is no artificial middle column anymore.
 */
.ref-hero__grid {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: none;
    min-height: 620px;

    margin: 0 auto;
    padding-top: 34px;
    padding-bottom: 34px;

    display: grid;
    grid-template-columns:
        minmax(420px, 0.9fr)
        minmax(500px, 1fr);

    align-items: center;
    column-gap: clamp(70px, 8vw, 130px);
}


/* =========================================================
   LEFT HERO CONTENT
   ========================================================= */

.ref-hero__copy {
    position: relative;
    z-index: 3;

    grid-column: 1;
    justify-self: start;
    align-self: center;

    width: 100%;
    max-width: 560px;

    padding-top: 0;
}


.ref-hero h1 {
    max-width: 560px;
    margin: 0 0 20px;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 3.65vw, 67px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.025em;
}


.ref-hero h1 span {
    display: block;
    margin-top: 4px;
    color: var(--ref-gold);
}


.ref-hero__intro {
    max-width: 470px;
    margin: 0;

    color: #eef3f8;

    font-size: 16px;
    line-height: 1.65;

    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   TRUST ITEMS
   ========================================================= */

.ref-trust-grid {
    width: 100%;
    max-width: 490px;

    margin: 28px 0 24px;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


.ref-trust-grid > div {
    min-width: 0;
    min-height: 86px;

    padding: 6px 11px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    border-right: 1px solid rgba(255, 255, 255, 0.18);
}


.ref-trust-grid > div:first-child {
    padding-left: 0;
}


.ref-trust-grid > div:last-child {
    padding-right: 0;
    border-right: 0;
}


.ref-trust-icon {
    width: 27px;
    height: 27px;

    margin-bottom: 8px;

    display: block;

    color: var(--ref-gold-light);
}


.ref-trust-grid strong {
    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;

    white-space: nowrap;

    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}


.ref-trust-grid small {
    margin-top: 4px;

    color: #d0d9e2;

    font-size: 9px;
    line-height: 1.25;

    white-space: nowrap;

    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}


/* =========================================================
   PRICE ALERT FORM
   ========================================================= */

.ref-alert-form {
    width: 100%;
    max-width: 490px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}


.ref-alert-form input {
    min-width: 0;
    height: 48px;

    margin: 0;
    padding: 0 16px;

    color: #192638;
    background: #ffffff;

    border: 0;
    border-radius: 6px 0 0 6px;

    outline: none;
    box-shadow: none;

    font-family: inherit;
    font-size: 13px;
}


.ref-alert-form button {
    height: 48px;

    padding: 0 22px;

    color: #152137;

    background:
        linear-gradient(
            180deg,
            #f7d36c,
            #d89e13
        );

    border: 0;
    border-radius: 0 6px 6px 0;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 6px 18px rgba(0, 0, 0, 0.12);

    font-family: inherit;
    font-size: 12px;
    font-weight: 800;

    cursor: pointer;
}


.ref-alert-note {
    margin: 10px 0 0;

    color: #d2dbe4;

    font-size: 10px;
    line-height: 1.4;

    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}


/* =========================================================
   LIVE GOLD PRICE CARD
   ========================================================= */

.ref-market-card {
    position: relative;
    z-index: 5;

    grid-column: 2;
    justify-self: end;
    align-self: center;

    width: 100%;
    max-width: 540px;

    overflow: hidden;

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            rgba(10, 39, 68, 0.98),
            rgba(6, 27, 49, 0.98)
        );

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 13px;

    box-shadow:
        0 24px 55px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}


/* =========================================================
   TABLE / PRICE TEXT PROTECTION
   ========================================================= */

/*
 * Protect the live price card from aggressive rules
 * in the original WordPress theme.
 */
.ref-market-card span,
.ref-market-card strong,
.ref-market-card em,
.ref-market-card a {
    text-decoration: none;
}


.ref-market-row span {
    overflow: hidden;

    color: #f3f6fa;

    font-size: 11px;
    line-height: 1.2;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.ref-market-row strong {
    color: #ffffff;

    text-align: right;

    font-size: 14px;
    font-weight: 800;
    line-height: 1;

    white-space: nowrap;
}


.ref-market-row em {
    text-align: right;

    font-size: 10px;
    font-weight: 600;
    font-style: normal;
    line-height: 1;

    white-space: nowrap;
}


.ref-market-row .is-positive {
    color: #51d98e;
}


.ref-market-row .is-negative {
    color: #ff7777;
}


.ref-market-row .is-neutral {
    color: #aeb9c6;
}


/* =========================================================
   DESKTOP - MEDIUM
   ========================================================= */

@media screen and (max-width: 1380px) {

    .ref-hero .ref-container {
        max-width: 1240px;
        padding-left: 32px;
        padding-right: 32px;
    }

    .ref-hero__grid {
        grid-template-columns:
            minmax(360px, 0.9fr)
            minmax(450px, 1fr);

        column-gap: 50px;
    }

    .ref-market-card {
        max-width: 520px;
    }
}


/* =========================================================
   TABLET / SMALL DESKTOP
   ========================================================= */

@media screen and (max-width: 1150px) {

    .ref-hero {
        min-height: auto;

        background-position: center center;
    }

    .ref-hero__grid {
        min-height: auto;

        padding-top: 46px;
        padding-bottom: 46px;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(410px, 0.95fr);

        column-gap: 30px;
    }

    .ref-hero__copy {
        max-width: 520px;
    }

    .ref-market-card {
        grid-column: 2;
        max-width: 500px;
    }
}


/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media screen and (max-width: 860px) {

    .ref-hero {
        background:
            linear-gradient(
                90deg,
                rgba(4, 20, 38, 0.84),
                rgba(4, 20, 38, 0.58)
            ),
            url('../images/gold-rate-b-3.jpeg') center center / cover no-repeat;
    }

    .ref-hero .ref-container {
        width: 100%;

        padding-left: 20px;
        padding-right: 20px;
    }

    .ref-hero__grid {
        width: 100%;

        padding-top: 42px;
        padding-bottom: 42px;

        grid-template-columns: 1fr;

        gap: 36px;
    }

    .ref-hero__copy {
        grid-column: 1;

        width: 100%;
        max-width: 620px;

        justify-self: start;
    }

    .ref-market-card {
        grid-column: 1;

        width: 100%;
        max-width: 620px;

        justify-self: start;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 600px) {

    .ref-hero .ref-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ref-hero h1 {
        font-size: clamp(43px, 12vw, 57px);
    }

    .ref-hero__intro {
        font-size: 15px;
    }

    .ref-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        border-top: 1px solid rgba(255, 255, 255, 0.14);
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .ref-trust-grid > div {
        min-height: 94px;

        border-right: 1px solid rgba(255, 255, 255, 0.14);
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .ref-trust-grid > div:nth-child(2n) {
        border-right: 0;
    }

    .ref-trust-grid > div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .ref-alert-form {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ref-alert-form input,
    .ref-alert-form button {
        width: 100%;
        border-radius: 6px;
    }

    .ref-market-card {
        max-width: none;
    }
}

/* =========================================================
   FINAL HERO POLISH
   ========================================================= */

@media screen and (min-width: 1160px) {

    .ref-hero {
        min-height: 690px;

/* =========================================================
   FINAL HERO POLISH
   ========================================================= */

@media screen and (min-width: 1160px) 
{
    .ref-hero {
        min-height: 690px;

        background:
            linear-gradient(
                90deg,
                rgba(3, 15, 28, 0.82) 0%,
                rgba(3, 15, 28, 0.70) 24%,
                rgba(3, 15, 28, 0.48) 43%,
                rgba(3, 15, 28, 0.28) 62%,
                rgba(3, 15, 28, 0.16) 80%,
                rgba(3, 15, 28, 0.10) 100%
            ),
            url('../images/gold-rate-b-3.jpeg') center center / cover no-repeat;
}

    .ref-hero__grid {
        min-height: 690px;

        grid-template-columns:
            minmax(440px, 0.85fr)
            minmax(520px, 1fr);

        column-gap: 90px;
    }

    .ref-market-card {
        justify-self: end;
        max-width: 540px;
    }
}

    .ref-hero__grid {
        min-height: 690px;

        grid-template-columns:
            minmax(440px, 0.85fr)
            minmax(520px, 1fr);

        column-gap: 90px;
    }

    .ref-market-card {
        justify-self: end;
        max-width: 540px;
    }
    
    /* =========================================================
   LEFT-SIDE READABILITY PANEL
   ========================================================= */

@media screen and (min-width: 1160px) {

    .ref-hero__copy::before {
        content: "";
        position: absolute;
        z-index: -1;

        top: -28px;
        right: -45px;
        bottom: -24px;
        left: -34px;

        background:
            linear-gradient(
                90deg,
                rgba(3, 15, 28, 0.72) 0%,
                rgba(3, 15, 28, 0.54) 58%,
                rgba(3, 15, 28, 0.12) 100%
            );

        border-radius: 18px;

        pointer-events: none;
    }
}

/* =========================================================
   V3 - REMOVE OLD HOMEPAGE GRAPH
   ========================================================= */

/* Remove the old gold price chart and its loading elements */
#gold-price-section .gold-price-graph,
#gold-price-section .chart-container,
#gold-price-section #graphLoader {
    display: none !important;
}

/* Ensure the remaining old price content starts cleanly */
#gold-price-section {
    position: relative !important;
    z-index: 1 !important;

    margin-top: 0 !important;
    padding-top: 45px !important;

    background: #f4f6fb !important;
}

/* =========================================================
   V3 CHART - DATA TOOL PRESENTATION
   ========================================================= */

#chart .chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: stretch;
}

#chart .chart-panel,
#chart .signal-panel {
    background: #ffffff;
    border: 1px solid #e2e6eb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(20, 31, 45, 0.05);
}

#chart .chart-panel {
    padding: 24px;
}

#chart .signal-panel {
    padding: 24px;
}

#chart .panel-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 22px;
}

#chart .section-label {
    display: block;
    margin-bottom: 6px;
    color: #9a7417;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#chart h2 {
    margin: 0;
    color: #172131;
    font-size: 28px;
    line-height: 1.15;
}

#chart .chart-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#chart .chart-controls select {
    min-width: 145px;
    height: 40px;
    padding: 0 34px 0 12px;
    background: #ffffff;
    border: 1px solid #d9dee5;
    border-radius: 7px;
    color: #263241;
    font-size: 12px;
    font-weight: 600;
}

#chart .canvas-wrap {
    position: relative;
    width: 100%;
    height: 430px;
}

#chart #price-chart {
    width: 100% !important;
    height: 100% !important;
}

#chart .chart-source {
    margin: 14px 0 0;
    color: #7a8492;
    font-size: 11px;
}

#chart .signal-table {
    margin-top: 18px;
}

#chart .signal-table > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #e6e9ed;
}

#chart .signal-table > div:last-child {
    border-bottom: 0;
}

#chart .signal-table span {
    color: #6e7887;
    font-size: 12px;
}

#chart .signal-table b {
    color: #1b2736;
    font-size: 12px;
    text-align: right;
}

@media screen and (max-width: 950px) {
    #chart .chart-grid {
        grid-template-columns: 1fr;
    }

    #chart .panel-title-row {
        flex-direction: column;
    }

    #chart .canvas-wrap {
        height: 360px;
    }
}

/* =========================================================
   FINAL HERO BACKGROUND OVERRIDE
   ========================================================= */

section.ref-hero#live-prices {
    background-image:
        linear-gradient(
            90deg,
            rgba(3, 15, 28, 0.82) 0%,
            rgba(3, 15, 28, 0.68) 25%,
            rgba(3, 15, 28, 0.44) 45%,
            rgba(3, 15, 28, 0.24) 65%,
            rgba(3, 15, 28, 0.12) 82%,
            rgba(3, 15, 28, 0.08) 100%
        ),
        url('../images/gold-rate-b-3.jpeg') !important;

    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}
.news-image-featured {
    overflow: hidden;
}

.news-image-featured img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.news-card .news-image {
    width: 100%;
    height: 160px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 8px;
}

.news-card .news-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.news-card small {
    display: block;
    margin-bottom: 6px;
    color: #6b7788;
    font-size: 11px;
}

.news-card strong {
    display: -webkit-box;
    min-height: 42px;
    margin-bottom: 7px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-card > span {
    display: -webkit-box;
    overflow: hidden;
    color: #667085;
    font-size: 12px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


/* =========================================================
   NEWS CARDS — FINAL LAYOUT FIX
   Keeps all text below the image and prevents legacy overlay rules.
   ========================================================= */

#news .news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

#news .news-card {
    position: relative !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    color: inherit !important;
    text-decoration: none !important;
}

#news .news-card .news-image,
#news .news-card .news-image-featured {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 160px !important;
    min-height: 160px !important;
    max-height: 160px !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: block !important;
    border-radius: 8px !important;
}

#news .news-card .news-image img,
#news .news-card .news-image-featured img {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: none !important;
}

/* Force category, headline and excerpt back into normal document flow. */
#news .news-card small,
#news .news-card strong,
#news .news-card > span {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
    transform: none !important;
    float: none !important;
    z-index: auto !important;
    background: transparent !important;
    text-shadow: none !important;
}

#news .news-card small {
    display: block !important;
    margin: 0 0 6px !important;
    color: #6b7788 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

#news .news-card strong {
    display: -webkit-box !important;
    min-height: 40px !important;
    margin: 0 0 7px !important;
    overflow: hidden !important;
    color: #172131 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

#news .news-card > span {
    display: -webkit-box !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #667085 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
}

@media screen and (max-width: 900px) {
    #news .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #news .news-card .news-image,
    #news .news-card .news-image-featured {
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
    }
}

@media screen and (max-width: 560px) {
    #news .news-card .news-image,
    #news .news-card .news-image-featured {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }
}
/* =========================================================
   HERO PRICE COMPARISON - FINAL MOBILE FIX
   ========================================================= */

@media screen and (max-width: 600px) {

    .ref-market-labels--compare,
    .ref-market-row--compare {
        display: grid !important;
        grid-template-columns: 44% 28% 28% !important;
        gap: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .ref-market-labels--compare {
        padding: 0 12px 9px !important;
    }

    .ref-market-row--compare {
        padding: 0 12px !important;
    }

    .ref-market-labels--compare > *,
    .ref-market-row--compare > * {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .ref-market-labels--compare span:first-child,
    .ref-market-metal {
        text-align: left !important;
    }

    .ref-market-labels--compare span:nth-child(2),
    .ref-market-labels--compare span:nth-child(3),
    .ref-market-yesterday,
    .ref-market-today {
        text-align: right !important;
    }

    .ref-market-yesterday,
    .ref-market-today {
        overflow: visible !important;
        white-space: nowrap !important;
        font-size: 11px !important;
    }

    /*
     * Mobile already shows the daily move at the top of the card.
     * Remove the duplicated per-row change to keep all 3 columns readable.
     */
    .ref-market-today-change {
        display: none !important;
    }
}
