:root {
    --bg: #07090d;
    --bg2: #0c1017;
    --panel: #101620;
    --panel2: #141c28;
    --panel3: #0d131c;
    --text: #eef2f7;
    --muted: #9ca8b8;
    --line: rgba(255, 255, 255, .09);
    --gold: #f5c451;
    --gold2: #d79718;
    --gold3: #7b4d00;
    --cyan: #62d7ff;
    --green: #58d68d;
    --red: #ff7d7d;
    --shadow: 0 22px 70px rgba(0, 0, 0, .36);
    --radius: 24px;
    --max: 1180px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 87% 6%, rgba(245, 196, 81, .12), transparent 28rem),
        radial-gradient(circle at 7% 30%, rgba(98, 215, 255, .07), transparent 26rem),
        linear-gradient(180deg, #07090d 0%, #0a0e14 45%, #07090d 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", Tahoma, sans-serif;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent 75%);
    content: "";
}

a {
    color: #ffd978;
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

a:hover {
    color: #fff1b7
}

button,
input,
select {
    font: inherit
}

.container {
    width: min(calc(100% - 32px), var(--max));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -90px;
    z-index: 999;
    padding: 10px 14px;
    color: #000;
    background: #fff;
    border-radius: 10px;
    font-weight: 800;
}

.skip-link:focus {
    top: 16px
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 9, 13, .8);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: .01em;
}

/* Performance: desktop navigation collapse is bundled to avoid a blocking request. */
.site-header .desktop-menu-toggle {
    display: none;
}

@media screen and (min-width: 961px) {
    .site-header .top-nav,
    .site-header .main-nav,
    .site-header .primary-nav {
        min-width: 0;
        flex: 1 1 auto;
    }

    .site-header .main-nav,
    .site-header .primary-nav {
        width: auto;
    }

    .site-header .top-nav.menu-collapse-enabled,
    .site-header .main-nav.menu-collapse-enabled,
    .site-header .primary-nav.menu-collapse-enabled {
        overflow: hidden;
        max-height: var(--menu-collapsed-height);
        transition: max-height .24s ease;
    }

    .site-header .top-nav.menu-collapse-enabled.menu-expanded,
    .site-header .main-nav.menu-collapse-enabled.menu-expanded,
    .site-header .primary-nav.menu-collapse-enabled.menu-expanded {
        max-height: none !important;
        overflow: visible !important;
    }

    .site-header .desktop-menu-toggle:not([hidden]) {
        display: inline-grid;
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        margin-left: 8px;
        padding: 0;
        place-items: center;
        color: var(--accent, var(--mint, var(--gold, #fff)));
        background: rgba(255, 255, 255, .04);
        border: 1px solid currentColor;
        border-radius: 8px;
        font: inherit;
        font-size: 18px;
        font-weight: 650;
        line-height: 1;
        cursor: pointer;
    }

    .site-header .desktop-menu-toggle:hover {
        color: #fff;
        background: rgba(255, 255, 255, .1);
    }

    .site-header .desktop-menu-toggle:focus-visible {
        outline: 3px solid currentColor;
        outline-offset: 3px;
    }
}

@media screen and (max-width: 960px) {
    .site-header .desktop-menu-toggle {
        display: none !important;
    }
}

/* Lightweight native SVG chart; replaces the initial CanvasJS dependency. */
.gold-long-term-chart-svg {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
    overflow: visible;
    touch-action: pan-y;
}

.gold-long-term-chart-gridline {
    stroke: rgba(255, 255, 255, .1);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.gold-long-term-chart-axis-label {
    fill: #aeb9c8;
    font-size: 12px;
}

.gold-long-term-chart-area {
    fill: rgba(245, 196, 81, .12);
}

.gold-long-term-chart-line {
    fill: none;
    stroke: #f5c451;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.gold-long-term-chart-guide-line {
    stroke: rgba(245, 196, 81, .65);
    stroke-width: 1;
    stroke-dasharray: 4 4;
    vector-effect: non-scaling-stroke;
}

.gold-long-term-chart-marker {
    fill: #f5c451;
    stroke: #111923;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.gold-long-term-chart-svg [hidden] {
    display: none;
}

.gold-long-term-chart-tooltip {
    min-height: 1.5em;
    margin: 8px 0 0;
    color: #eef2f7;
    font-size: .88rem;
    text-align: center;
}

.site-header .brand small {
    display: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #211400;
    background: linear-gradient(145deg, #fff0a6, #f4bd39 55%, #a66600);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(245, 196, 81, .23), inset 0 1px 0 rgba(255, 255, 255, .75);
    font-weight: 950;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: .92rem;
}

.top-nav a {
    color: #cfd7e3;
    text-decoration: none;
}

.top-nav a:hover {
    color: #fff
}

.top-nav a[aria-current="page"] {
    color: var(--gold);
}

.breadcrumb {
    padding: 18px 0 6px;
    color: var(--muted);
    font-size: .9rem;
}

.mobile-menu-toggle {
    display: none;
}

/* จัดเมนูหลักบนเดสก์ท็อปให้ใช้พื้นที่แนวนอนได้เต็มที่และไม่ตัดคำ */
@media (min-width: 961px) {
    .site-header .header-inner {
        width: min(calc(100% - 48px), 1760px);
        min-height: 76px;
        gap: 28px;
        padding-block: 10px;
    }

    .site-header .brand {
        flex: 0 0 auto;
        gap: 10px;
        font-weight: 800;
        line-height: 1.25;
        letter-spacing: -.02em;
        white-space: nowrap;
    }

    .site-header .brand small {
        display: block;
        margin-top: 1px;
        color: var(--muted);
        font-size: .67rem;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: .08em;
    }

    .site-header .brand span:last-child {
        line-height: 1.25;
        white-space: nowrap;
    }

    .site-header .top-nav {
        min-width: 0;
        flex: 1 1 auto;
        flex-wrap: wrap;
        justify-content: flex-end;
        column-gap: clamp(12px, 1.15vw, 22px);
        row-gap: 6px;
        line-height: 1.35;
    }

    .site-header .top-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb li:not(:last-child)::after {
    margin-left: 8px;
    color: #566273;
    content: "/";
}

.hero {
    padding: 26px 0 34px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(300px, .72fr);
    gap: 26px;
    align-items: stretch;
}

.glass {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(20, 28, 40, .86), rgba(12, 17, 25, .9));
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-main {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 6vw, 68px);
    border-radius: 30px;
}

.hero-main::before {
    position: absolute;
    inset: -1px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 82% 18%, rgba(245, 196, 81, .26), transparent 24rem),
        linear-gradient(135deg, rgba(245, 196, 81, .08), transparent 45%);
    content: "";
}

.hero-main::after {
    position: absolute;
    right: -90px;
    bottom: -130px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(245, 196, 81, .18);
    border-radius: 50%;
    box-shadow:
        0 0 0 26px rgba(245, 196, 81, .035),
        0 0 0 68px rgba(245, 196, 81, .025);
    content: "";
}

.hero-content {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 15px;
    color: var(--gold);
    font-size: .88rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    content: "";
}

.gold-home-link {
    color: var(--gold);
    text-decoration-color: currentColor;
    text-decoration: none;
}

.gold-home-link:hover,
.gold-home-link:focus-visible {
    color: #ffe8a6;
}

h1,
h2,
h3 {
    line-height: 1.27;
    text-wrap: balance;
}

h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    letter-spacing: -.05em;
}

.gradient-text {
    color: transparent;
    background: linear-gradient(90deg, #fff 0%, #ffe5a1 45%, #f4bd39 100%);
    background-clip: text;
    -webkit-background-clip: text;
}

.hero-lead {
    max-width: 780px;
    margin: 21px 0 0;
    color: #c7d0dd;
    font-size: clamp(1rem, 1.75vw, 1.16rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
    transform: translateY(-2px)
}

.button-primary {
    color: #231600;
    background: linear-gradient(135deg, #ffe68e, #f2b62f 58%, #c77a00);
    box-shadow: 0 10px 30px rgba(245, 196, 81, .2);
}

.button-primary:hover {
    color: #231600
}

.button-ghost {
    color: #eaf0f8;
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .14);
}

.button-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.hero-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    border-radius: 30px;
}

.status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    padding: 7px 11px;
    color: #ffe19a;
    background: rgba(245, 196, 81, .09);
    border: 1px solid rgba(245, 196, 81, .24);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 850;
}

.status-dot {
    width: 9px;
    height: 9px;
    background: #f4bd39;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(245, 196, 81, .13), 0 0 18px rgba(245, 196, 81, .5);
}

.hero-side h2 {
    margin: 20px 0 10px;
    font-size: 1.45rem;
}

.hero-side p {
    margin: 0;
    color: var(--muted);
}

.mini-list {
    display: grid;
    gap: 11px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.mini-list li {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 10px;
    align-items: start;
    color: #d5dce6;
}

.check {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: #ffd971;
    background: rgba(245, 196, 81, .08);
    border: 1px solid rgba(245, 196, 81, .18);
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 900;
}

.section {
    padding: 42px 0;
}

@media (min-width: 641px) {
    #main-content > .container + #gold-price,
    #main-content > .container + #gold-history {
        padding-top: 8px;
    }
}

.section-heading {
    max-width: 850px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3.5vw, 2.8rem);
    letter-spacing: -.035em;
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--muted);
}

.price-shell {
    overflow: hidden;
    border-radius: var(--radius);
}

.price-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    background: linear-gradient(90deg, rgba(245, 196, 81, .12), rgba(98, 215, 255, .045));
    border-top: 1px solid var(--line);
}

.price-toolbar strong {
    color: #ffe39a
}

.price-toolbar small {
    color: var(--muted)
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.price-card {
    min-height: 186px;
    padding: 24px;
    background: rgba(14, 20, 29, .78);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.price-card:nth-child(4n) {
    border-right: 0
}

.price-card .label {
    color: var(--muted);
    font-size: .9rem;
    font-weight: 750;
}

.price-card .value {
    display: block;
    margin: 13px 0 5px;
    color: #ffe18b;
    font-size: clamp(2.35rem, 4.4vw, 3.5rem);
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: -.04em;
    text-shadow: 0 0 26px rgba(245, 196, 81, .12);
}

.price-card .unit {
    color: #7f8b9b;
    font-size: .84rem;
}

.price-change {
    display: inline-flex;
    margin-top: 12px;
    padding: 4px 9px;
    color: #ffe097;
    background: rgba(245, 196, 81, .08);
    border: 1px solid rgba(245, 196, 81, .16);
    border-radius: 999px;
    font-size: .77rem;
    font-weight: 850;
}

.price-note {
    padding: 17px 22px;
    color: #aab4c2;
    background: rgba(7, 10, 15, .72);
    border-top: 1px solid var(--line);
    font-size: .9rem;
}

.price-shell .gold-page-intro {
    display: block;
    margin: 0;
    padding: 17px 22px;
    color: #c7d0dd;
    background: rgba(7, 10, 15, .72);
    border-top: 1px solid var(--line);
    font-size: clamp(0.88rem, 1.15vw, 0.95rem);
    line-height: 1.75;
}

.price-shell .gold-page-intro a {
    color: #ffe18b;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s ease;
}

.price-shell .gold-page-intro a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.gold-price-disclosure {
    margin: 0;
    overflow: hidden;
    background: rgba(7, 10, 15, .72);
    border-top: 1px solid var(--line);
    border-radius: 0;
}

.gold-price-disclosure > summary {
    display: flex;
    min-height: 76px;
    padding: 17px 22px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #dce3ec;
    font-size: .95rem;
    line-height: 1.45;
}

.gold-price-disclosure > summary:hover,
.gold-price-disclosure > summary:focus-visible {
    color: #ffe094;
    background: rgba(245, 196, 81, .045);
}

.gold-price-disclosure > summary:focus-visible {
    outline: 2px solid rgba(245, 196, 81, .7);
    outline-offset: -3px;
}

.gold-price-disclosure > summary span {
    min-width: 0;
}

.gold-price-disclosure > summary small {
    display: block;
    margin-top: 5px;
    color: #7f8b9b;
    font-size: .76rem;
    font-weight: 600;
}

.gold-price-disclosure > summary::after {
    display: inline-flex;
    width: 34px;
    height: 34px;
    margin: 0;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    float: none;
    color: #f6c95c;
    background: rgba(245, 196, 81, .08);
    border: 1px solid rgba(245, 196, 81, .2);
    border-radius: 50%;
    font-size: 1.1rem;
}

.gold-price-disclosure[open] > summary {
    background: rgba(245, 196, 81, .035);
    border-bottom: 1px solid var(--line);
}

.gold-price-disclosure-body {
    padding: 20px 22px 22px;
    color: #aab4c2;
    font-size: .9rem;
    line-height: 1.8;
}

.gold-price-disclosure-body ul {
    margin: 0;
    padding-left: 22px;
}

.gold-price-disclosure-body li + li {
    margin-top: 7px;
}

.gold-price-disclosure-body li::marker {
    color: #f6c95c;
}

.gold-price-disclosure-note {
    display: block;
    margin-top: 18px;
    color: #7f8b9b;
    line-height: 1.7;
}

.gold-price-disclosure-body .reference-note {
    margin: 20px 0 0;
}

@media (max-width: 640px) {
    .gold-price-disclosure > summary {
        min-height: 68px;
        padding: 15px 16px;
        font-size: .88rem;
    }

    .gold-price-disclosure > summary small {
        font-size: .7rem;
    }

    .gold-price-disclosure > summary::after {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .gold-price-disclosure-body {
        padding: 17px 16px 19px;
        font-size: .84rem;
    }
}

.gold-knowledge-disclosure {
    margin: 0;
    border: 1px solid rgba(245, 196, 81, .16);
    border-radius: 16px;
    background: rgba(7, 10, 15, .72);
}

.gold-knowledge-disclosure + .gold-knowledge-disclosure {
    margin-top: 14px;
}

.gold-knowledge-disclosure[open] {
    border-color: rgba(245, 196, 81, .28);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .14);
}

.gold-knowledge-disclosure > summary {
    min-height: 78px;
}

.gold-knowledge-disclosure > summary h2,
.gold-knowledge-disclosure > summary .knowledge-question-title {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    color: inherit;
    font-size: clamp(1.02rem, 2.2vw, 1.22rem);
    font-weight: 700;
    letter-spacing: -.01em;
}

.gold-knowledge-disclosure > summary h2 small,
.gold-knowledge-disclosure > summary .knowledge-question-title small {
    font-size: .74rem;
    letter-spacing: 0;
    font-weight: 400;
    margin-top: 2px;
}

.gold-knowledge-disclosure-body {
    padding-top: 20px;
}

.gold-knowledge-disclosure-body p {
    padding: 0;
}

.gold-knowledge-disclosure-body > :first-child {
    margin-top: 0;
}

.gold-knowledge-disclosure-body > :last-child,
.gold-knowledge-disclosure-body > .reference-note:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .gold-knowledge-disclosure + .gold-knowledge-disclosure {
        margin-top: 10px;
    }

    .gold-knowledge-disclosure > summary {
        min-height: 72px;
    }

    .gold-knowledge-disclosure > summary h2,
    .gold-knowledge-disclosure > summary .knowledge-question-title {
        font-size: .98rem;
    }

    .gold-knowledge-disclosure > summary h2 small,
    .gold-knowledge-disclosure > summary .knowledge-question-title small {
        font-size: .68rem;
    }
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.article {
    padding: clamp(24px, 4vw, 45px);
    border-radius: var(--radius);
}

.article h2 {
    margin: 2.1em 0 .67em;
    font-size: clamp(1.48rem, 3vw, 2.08rem);
    letter-spacing: -.02em;
}

.article h2:first-child {
    margin-top: 0
}

.article h3 {
    margin: 1.7em 0 .55em;
    font-size: 1.22rem;
    color: #f4f7fb;
}

.article p {
    margin: .8em 0;
    color: #c5ceda
}

.article ul,
.article ol {
    padding-left: 1.35rem
}

.article li {
    color: #c5ceda
}

.article li+li {
    margin-top: .45rem
}

.highlight {
    margin: 24px 0;
    padding: 20px 22px;
    background: linear-gradient(135deg, rgba(245, 196, 81, .09), rgba(245, 196, 81, .035));
    border: 1px solid rgba(245, 196, 81, .19);
    border-left: 4px solid var(--gold);
    border-radius: 15px;
    color: #e8edf4;
}

.highlight strong {
    color: #ffe08b
}

.formula {
    overflow-x: auto;
    margin: 22px 0;
    padding: 19px 20px;
    color: #e6f4ff;
    background: #080c12;
    border: 1px solid rgba(98, 215, 255, .14);
    border-radius: 15px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .91rem;
    white-space: nowrap;
    box-shadow: inset 0 0 28px rgba(98, 215, 255, .025);
}

.table-wrap {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--line);
    border-radius: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(10, 15, 22, .6);
}

th,
td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: #ffe39a;
    background: rgba(245, 196, 81, .075);
    font-size: .91rem;
}

td {
    color: #c2ccd8
}

tr:last-child td {
    border-bottom: 0
}

.sidebar {
    position: sticky;
    top: 94px;
    display: grid;
    gap: 18px;
}

.side-card {
    padding: 22px;
    border-radius: 18px;
}

.side-card h2,
.side-card h3 {
    margin: 0 0 12px;
    font-size: 1.14rem;
}

.toc {
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc li+li {
    margin-top: 8px
}

.toc a {
    display: block;
    color: #b6c0ce;
    text-decoration: none;
}

.toc a:hover {
    color: #ffe18b
}

.fact {
    display: grid;
    gap: 3px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.fact:last-child {
    border-bottom: 0
}

.fact span {
    color: var(--muted);
    font-size: .84rem;
}

.fact strong {
    color: #f6f8fb
}

.calculator {
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

label {
    display: grid;
    gap: 7px;
    color: #dce3ec;
    font-size: .91rem;
    font-weight: 850;
}

input,
select {
    width: 100%;
    min-height: 50px;
    padding: 10px 12px;
    color: #fff;
    background: #0b1018;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 11px;
}

input:focus,
select:focus {
    outline: 3px solid rgba(245, 196, 81, .16);
    border-color: rgba(245, 196, 81, .55);
}

.calc-output {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.calc-result {
    padding: 17px;
    background: #0b1018;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.calc-result span {
    display: block;
    color: var(--muted);
    font-size: .82rem;
}

.calc-result strong {
    display: block;
    margin-top: 5px;
    color: #ffe18b;
    font-size: 1.25rem;
}

.planned-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.planned-card {
    padding: 22px;
    border-radius: 17px;
}

.tag {
    display: inline-flex;
    padding: 4px 9px;
    color: #ffe49b;
    background: rgba(245, 196, 81, .08);
    border: 1px solid rgba(245, 196, 81, .17);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 850;
}

/* Roadmap status tones: green for connected/available, red for planned work. */
.planned-card .tag.status-connected,
.planned-card .tag.status-enabled {
    color: #baf2c7;
    background: rgba(91, 207, 117, .16);
    border-color: rgba(112, 231, 137, .48);
}

.planned-card .tag.status-planned {
    color: #ffc2c2;
    background: rgba(226, 92, 92, .16);
    border-color: rgba(244, 126, 126, .48);
}

.planned-card h3 {
    margin: 12px 0 8px
}

.planned-card p {
    margin: 0;
    color: var(--muted)
}

.gold-price-summary-image {
    margin: 0 0 22px;
    max-width: 100%;
    min-width: 0;
}
.gold-price-summary-image > a {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.gold-price-summary-image img {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: auto;
    aspect-ratio: 1200 / 630;
    margin-inline: auto;
}
.gold-price-summary-image figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
#gold-price-values { scroll-margin-top: 96px; }
@media (max-width: 640px) {
    .gold-price-summary-image { margin-bottom: 16px; }
    .gold-price-summary-image > a { border-radius: 10px; }
    .gold-price-summary-image figcaption { font-size: .78rem; }
}

.faq-list {
    display: grid;
    gap: 12px;
}

details {
    border-radius: 15px;
}

summary {
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 900;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none
}

summary::after {
    float: right;
    margin-left: 18px;
    color: var(--gold);
    content: "+";
    font-size: 1.25rem;
}

details[open] summary::after {
    content: "−"
}

details p {
    margin: 0;
    padding: 0 20px 20px;
    color: #aeb9c7;
}

.source-list {
    padding: 23px;
    border-radius: 17px;
}

.source-list h2 {
    margin-top: 0
}

.pawn-rate-article-summary {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    line-height: 1.75;
}

.pawn-rate-article-summary strong {
    color: #fff4ce;
}

.pawn-rate-article-summary a {
    color: #ffe094;
    font-weight: 800;
}

.source-list li+li {
    margin-top: 7px
}

.source-list p {
    color: var(--muted)
}

.disclaimer {
    margin-top: 24px;
    padding: 18px 20px;
    color: #d4dbe4;
    background: rgba(245, 196, 81, .055);
    border: 1px solid rgba(245, 196, 81, .17);
    border-radius: 14px;
    font-size: .9rem;
}

.site-footer {
    margin-top: 38px;
    padding: 34px 0;
    color: #9ba6b6;
    background: #05070a;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
}

.site-footer h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.2rem;
}

.site-footer p {
    margin: 0
}

@media (max-width:960px) {
    .header-inner {
        position: relative;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        width: 58px;
        height: 44px;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: #251700;
        background: linear-gradient(145deg, #ffe897, #e9a616);
        border: 1px solid rgba(255, 255, 255, .5);
        border-radius: 9px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, .38);
        font: inherit;
        font-size: .9rem;
        font-weight: 900;
        cursor: pointer;
    }

    .mobile-menu-toggle:hover {
        filter: brightness(1.05);
    }

    .mobile-menu-toggle:focus-visible {
        outline: 3px solid rgba(98, 215, 255, .8);
        outline-offset: 3px;
    }

    .site-header .top-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        z-index: 10;
        display: none;
        width: min(320px, calc(100vw - 24px));
        max-height: calc(100vh - 96px);
        margin: 0;
        padding: 8px;
        overflow-y: auto;
        overscroll-behavior: contain;
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
        background: rgba(8, 11, 16, .98);
        border: 1px solid rgba(245, 196, 81, .26);
        border-radius: 13px;
        box-shadow: 0 18px 45px rgba(0, 0, 0, .5);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .site-header.is-open .top-nav {
        display: flex;
    }

    .site-header .top-nav a {
        display: flex;
        width: 100%;
        min-height: 48px;
        align-items: center;
        padding: 12px 14px;
        color: #e8edf4;
        border-radius: 9px;
        text-decoration: none;
    }

    .site-header .top-nav a:hover,
    .site-header .top-nav a:focus-visible,
    .site-header .top-nav a[aria-current="page"]:hover,
    .site-header .top-nav a[aria-current="page"]:focus-visible {
        color: #241700;
        background: linear-gradient(135deg, #ffe594, #e9a616);
        outline: none;
    }

    .site-header .top-nav a[aria-current="page"] {
        color: #ffe09a;
        background: rgba(245, 196, 81, .1);
    }

    .hero-grid,
    .content-grid {
        grid-template-columns: 1fr
    }

    .price-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .price-card:nth-child(2n) {
        border-right: 0
    }

    .sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .form-grid {
        grid-template-columns: 1fr 1fr
    }

    .calc-output {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .planned-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:640px) {
    .container {
        width: min(calc(100% - 22px), var(--max))
    }

    .hero {
        padding-top: 16px
    }

    .hero-main,
    .hero-side {
        border-radius: 21px
    }

    .price-grid,
    .sidebar,
    .form-grid,
    .calc-output,
    .planned-grid,
    .footer-grid {
        grid-template-columns: 1fr
    }

    .price-card {
        border-right: 0
    }

    .hero-actions .button {
        width: 100%
    }

    .article {
        padding: 23px 19px
    }

    th,
    td {
        padding: 11px 12px
    }
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important
    }
}


/* =========================================================
    Mobile overflow hardening
    ป้องกัน Grid/Table/ข้อความ ดันหน้าออกนอก viewport
    ========================================================= */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body,
main,
header,
footer,
section,
nav {
    min-width: 0;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 100%;
    min-width: 0;
}

.hero-grid>*,
.content-grid>*,
.price-grid>*,
.sidebar>*,
.form-grid>*,
.calc-output>*,
.planned-grid>*,
.footer-grid>* {
    min-width: 0;
}

.hero-main,
.hero-side,
.price-shell,
.article,
.sidebar,
.side-card,
.calculator,
.planned-card,
.source-list,
.faq-list,
details {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

h1,
h2,
h3,
p,
li,
td,
th,
summary,
a,
strong,
span {
    overflow-wrap: anywhere;
    word-break: normal;
}

.table-wrap,
.formula {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.table-wrap {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.table-wrap table {
    max-width: 100%;
}

@media (max-width: 640px) {
    html {
        font-size: 16px;
    }

    .site-header {
        position: fixed;
        top: max(12px, env(safe-area-inset-top));
        right: max(12px, env(safe-area-inset-right));
        left: auto;
        z-index: 70;
        display: block;
        width: auto;
        background: transparent;
        border: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .site-header .header-inner {
        display: block;
        width: auto;
        max-width: none;
        min-height: 0;
        margin: 0;
    }

    .site-header .brand {
        display: none;
    }

    .mobile-menu-toggle {
        width: 47px;
        height: 35px;
        border-radius: 8px;
        box-shadow: 0 8px 22px rgba(0, 0, 0, .34);
        font-size: .82rem;
    }

    .site-header .top-nav {
        top: calc(100% + 8px);
        padding: 6px;
        gap: 2px;
    }

    .site-header .top-nav a {
        min-height: 42px;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: .88rem;
        line-height: 1.35;
    }

    #gold-price {
        padding-top: 0;
    }

    #gold-price .section-heading {
        margin-bottom: 8px;
    }

    #gold-price .section-heading > .eyebrow {
        margin-top: 0;
    }

    #gold-price h1,
    #gold-price .gold-page-title,
    #main-content .section-heading > h1,
    #main-content .section-heading > h1 .gold-page-title {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        letter-spacing: normal !important;
    }

    #gold-price .gold-page-intro {
        display: block;
        padding: 14px 16px;
        font-size: .88rem;
        line-height: 1.65;
    }

    .breadcrumb {
        display: none;
    }

    .container {
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
    }

    .header-inner {
        min-height: 64px;
    }

    .brand {
        min-width: 0;
        font-size: .98rem;
    }

    .brand span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero-main,
    .hero-side {
        padding: 24px 18px;
    }

    h1 {
        font-size: clamp(2rem, 10.5vw, 2.85rem);
        line-height: 1.25;
        letter-spacing: -.035em;
    }

    .hero-lead {
        font-size: 1rem;
        line-height: 1.85;
    }

    .price-toolbar {
        align-items: flex-start;
        padding: 16px;
    }

    .price-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .price-card {
        min-height: 0;
        padding: 9px 8px;
    }

    .price-grid .price-card:nth-child(odd) {
        border-right: 1px solid var(--line);
    }

    .price-grid .price-card:nth-child(even) {
        border-right: 0;
    }

    .price-card .label {
        font-size: .72rem;
        line-height: 1.2;
    }

    .price-card .value {
        margin: 5px 0 2px;
        font-size: clamp(1.4rem, 7.5vw, 2.1rem);
    }

    .price-card .unit {
        font-size: .65rem;
        line-height: 1.25;
    }

    .price-card .price-change {
        margin-top: 5px;
        padding: 2px 5px;
        font-size: .62rem;
        line-height: 1.25;
    }

    .article,
    .calculator,
    .source-list {
        padding: 22px 16px;
    }

    .article h2 {
        font-size: clamp(1.45rem, 7.2vw, 1.9rem);
    }

    .article h3 {
        font-size: 1.12rem;
    }

    /* เปลี่ยนตารางเป็นการ์ดแนวตั้ง เพื่อไม่ให้ดันหน้าจอ */
    .table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .table-wrap table,
    .table-wrap tbody,
    .table-wrap tr,
    .table-wrap td {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .table-wrap thead {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    .table-wrap tr {
        margin: 0 0 14px;
        overflow: hidden;
        background: #0b1018;
        border: 1px solid var(--line);
        border-radius: 14px;
    }

    .table-wrap td {
        display: grid;
        grid-template-columns: minmax(105px, 38%) minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        padding: 12px 14px;
        border-bottom: 1px solid var(--line);
        text-align: left;
    }

    .table-wrap td:last-child {
        border-bottom: 0;
    }

    .table-wrap td::before {
        color: #ffe39a;
        font-size: .79rem;
        font-weight: 850;
        line-height: 1.5;
    }

    .table-wrap td:nth-child(1)::before {
        content: "หน่วย/ประเภท";
    }

    .table-wrap td:nth-child(2)::before {
        content: "เทียบเป็นบาททอง";
    }

    .table-wrap td:nth-child(3)::before {
        content: "น้ำหนัก";
    }

    .table-wrap td:nth-child(4)::before {
        content: "การใช้งาน";
    }

    .formula {
        padding: 16px 14px;
        font-size: .8rem;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    summary {
        padding: 16px;
    }

    details p {
        padding: 0 16px 17px;
    }
}

@media (max-width: 380px) {
    .container {
        width: calc(100% - 18px);
        max-width: calc(100% - 18px);
    }

    .hero-main,
    .hero-side,
    .article,
    .calculator,
    .source-list {
        padding-left: 14px;
        padding-right: 14px;
    }

    h1 {
        font-size: clamp(1.82rem, 10vw, 2.25rem);
    }

    .table-wrap td {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media print {

    .site-header,
    .hero-actions,
    .sidebar,
    .site-footer {
        display: none !important
    }

    body {
        background: #fff;
        color: #000
    }

    body::before {
        display: none
    }

    .glass,
    .hero-main,
    .hero-side,
    .article,
    .calculator,
    .price-shell {
        box-shadow: none;
        background: #fff;
        color: #000;
        border-color: #bbb
    }

    .article p,
    .article li,
    .source-list p,
    .planned-card p {
        color: #222
    }
}


/* แหล่งอ้างอิงที่แสดงใต้เนื้อหาแต่ละส่วน */
.reference-note {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 18px 0 24px;
    padding: 14px 16px;
    color: #b8c3d1;
    background: linear-gradient(135deg, rgba(98, 215, 255, .06), rgba(245, 196, 81, .045));
    border: 1px solid rgba(98, 215, 255, .16);
    border-left: 4px solid rgba(98, 215, 255, .72);
    border-radius: 13px;
    font-size: .84rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.reference-note .reference-label {
    color: #8de3ff;
    font-weight: 900;
}

.reference-note a {
    color: #ffe094;
    font-weight: 750;
}

.reference-note .reference-url {
    color: #8f9cad;
    font-size: .78rem;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.reference-note .reference-item {
    display: block;
    margin-top: 5px;
}

.reference-note .reference-item:first-of-type {
    margin-top: 8px;
}

.warning-center {
    padding-top: 44px;
    padding-bottom: 44px;
}

.warning-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.warning-card {
    min-width: 0;
    padding: 21px;
    background: linear-gradient(145deg, rgba(35, 26, 12, .88), rgba(13, 18, 26, .94));
    border: 1px solid rgba(245, 196, 81, .18);
    border-radius: 17px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .18);
}

.warning-card h3 {
    margin: 0 0 9px;
    color: #ffe19a;
    font-size: 1.07rem;
}

.warning-card p {
    margin: 0;
    color: #b7c1ce;
}

.warning-icon {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    color: #211400;
    background: linear-gradient(145deg, #ffe897, #e9a616);
    border-radius: 50%;
    font-weight: 950;
}

.critical-warning {
    margin-top: 18px;
    padding: 20px;
    color: #e0e5ec;
    background: rgba(255, 125, 125, .055);
    border: 1px solid rgba(255, 125, 125, .22);
    border-left: 4px solid #ff8e8e;
    border-radius: 15px;
}

.critical-warning strong {
    color: #ffb2b2;
}

@media (max-width: 700px) {
    .warning-grid {
        grid-template-columns: 1fr;
    }

    .reference-note {
        padding: 13px 14px;
        font-size: .82rem;
    }

    .warning-card {
        padding: 18px 16px;
    }
}


/* =========================================================
    Complete policy footer
    ========================================================= */
.site-footer {
    margin-top: 44px;
    padding: 0;
    color: #aeb8c6;
    background:
        radial-gradient(circle at 86% 4%, rgba(245, 196, 81, .09), transparent 24rem),
        linear-gradient(180deg, #080b10 0%, #05070a 100%);
    border-top: 1px solid rgba(245, 196, 81, .16);
}

.footer-disclosure {
    padding: 28px 0;
    background: rgba(245, 196, 81, .045);
    border-bottom: 1px solid var(--line);
}

.footer-disclosure-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.footer-notice {
    min-width: 0;
    padding: 18px;
    color: #bdc7d4;
    background: rgba(8, 12, 18, .72);
    border: 1px solid var(--line);
    border-radius: 15px;
}

.footer-notice h2,
.footer-notice h3 {
    margin: 0 0 8px;
    color: #ffe29a;
    font-size: 1rem;
}

.footer-notice p {
    margin: 0;
    font-size: .85rem;
    line-height: 1.72;
}

.footer-main {
    padding: 42px 0 30px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

.footer-brand,
.footer-column {
    min-width: 0;
}

.footer-brand-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    color: #fff;
    text-decoration: none;
    font-size: 1.18rem;
    font-weight: 950;
}

.footer-brand p {
    margin: 0 0 14px;
    color: #9eabb9;
    font-size: .9rem;
}

.footer-column h2 {
    margin: 0 0 13px;
    color: #f6f8fb;
    font-size: .98rem;
}

.footer-links {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    display: inline-block;
    color: #abb6c4;
    text-decoration: none;
    font-size: .88rem;
    line-height: 1.55;
}

.footer-links a:hover {
    color: #ffe098;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.footer-trust {
    display: grid;
    gap: 9px;
    margin-top: 17px;
    padding: 14px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid var(--line);
    border-radius: 13px;
    font-size: .8rem;
}

.footer-trust strong {
    color: #e7ecf3;
}

.footer-affiliate {
    margin-top: 30px;
    padding: 21px;
    background: linear-gradient(135deg, rgba(245, 196, 81, .07), rgba(98, 215, 255, .025));
    border: 1px solid rgba(245, 196, 81, .16);
    border-radius: 17px;
}

.footer-affiliate h2 {
    margin: 0 0 9px;
    color: #ffe19a;
    font-size: 1.02rem;
}

.footer-affiliate p {
    margin: 0;
    color: #b5c0cd;
    font-size: .86rem;
}

.footer-affiliate p+p {
    margin-top: 9px;
}

.footer-affiliate a {
    color: #ffe09a;
}

.footer-legal-bar {
    padding: 20px 0 26px;
    border-top: 1px solid var(--line);
}

.footer-legal-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 28px;
}

.footer-copyright {
    max-width: 720px;
    margin: 0;
    color: #8793a2;
    font-size: .78rem;
    line-height: 1.65;
}

.footer-platform-note {
    max-width: 440px;
    margin: 0;
    color: #778393;
    font-size: .74rem;
    line-height: 1.65;
}

.footer-platform-note a {
    color: #aab5c2;
}

.footer-policy-update {
    margin-top: 8px;
    color: #6f7b89;
    font-size: .74rem;
}

@media (max-width: 980px) {
    .footer-disclosure-grid {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .footer-disclosure {
        padding: 20px 0;
    }

    .footer-main {
        padding: 32px 0 24px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-notice,
    .footer-affiliate {
        padding: 16px;
    }

    .footer-legal-inner {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* ส่วนแสดงข้อมูลราคาทองจากฐานข้อมูล เพิ่มเติมจากภาพสมาคมค้าทองคำ */
.gold-data-section {
    position: relative
}

.gold-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: clamp(18px, 3vw, 28px);
    border-radius: var(--radius);
    overflow: hidden
}

.gold-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 16px
}

.gold-panel-head h3 {
    margin: 0;
    color: #f8f9fb;
    font-size: clamp(1.15rem, 2.4vw, 1.55rem)
}

.gold-panel-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: .88rem
}

.gold-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px
}

.gold-primary-summary-grid {
    margin: 0;
    padding: 0;
    gap: 0;
    background: rgba(7, 10, 15, .42);
    border-top: 1px solid var(--line);
}

.gold-primary-summary-grid .gold-summary-card {
    min-height: 186px;
    padding: 24px;
    background: rgba(14, 20, 29, .72);
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.gold-primary-summary-grid .gold-summary-card:last-child {
    border-right: 0;
}

.gold-summary-card {
    min-width: 0;
    padding: 18px;
    border-radius: 16px
}

.gold-summary-card span,
.gold-summary-card small {
    display: block;
    color: var(--muted)
}

.gold-summary-card span {
    font-size: .82rem
}

.gold-summary-card strong {
    display: block;
    margin: 5px 0;
    color: #ffe18b;
    font-size: clamp(1.95rem, 3.6vw, 2.75rem);
    line-height: 1.15
}

.gold-summary-card small {
    font-size: .76rem
}

.gold-table-scroller {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(7, 11, 17, .58)
}

.gold-table-scroller:focus {
    outline: 2px solid rgba(245, 196, 81, .45);
    outline-offset: 2px
}

.gold-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    font-variant-numeric: tabular-nums
}

.gold-data-table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap
}

.gold-data-table th,
.gold-data-table td {
    padding: 13px 14px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
    white-space: nowrap
}

.gold-data-table thead th {
    color: #261900;
    background: linear-gradient(180deg, #ffd96f, #e9a512);
    font-weight: 900
}

.gold-data-table tbody th {
    color: #f2f5f9;
    background: rgba(255, 255, 255, .025);
    text-align: left
}

.gold-data-table tbody td {
    color: #c6d0dc
}

.gold-data-table tr:last-child th,
.gold-data-table tr:last-child td {
    border-bottom: 0
}

.gold-data-table th:last-child,
.gold-data-table td:last-child {
    border-right: 0
}

.gold-purity-table {
    min-width: 760px
}

.gold-weight-table {
    min-width: 680px
}

.gold-history-table {
    min-width: 1320px
}

.gold-history-table thead tr:first-child th {
    border-bottom: 1px solid rgba(41, 27, 0, .24)
}

.gold-history-table tbody tr:hover td,
.gold-history-table tbody tr:hover th {
    background: rgba(245, 196, 81, .045)
}

.gold-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin-bottom: 18px
}

.gold-filter-form label {
    min-width: 150px;
    flex: 1 1 180px
}

.gold-filter-form input {
    margin-top: 6px
}

.gold-submit-button,
.gold-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 18px;
    border-radius: 11px;
    font-weight: 900;
    text-decoration: none
}

.gold-submit-button {
    border: 0;
    color: #251700;
    background: linear-gradient(135deg, #ffe58d, #e9a414);
    cursor: pointer
}

.gold-secondary-button {
    color: #e9eef5;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--line)
}

.gold-result-count {
    align-self: center;
    color: var(--muted);
    font-size: .86rem
}

.gold-table-note {
    margin: 15px 0 0;
    color: #aab5c3;
    font-size: .88rem
}

.gold-scroll-hint {
    display: none;
    margin: 0 0 9px;
    color: #91a0b1;
    font-size: .78rem
}

.history-change {
    display: inline-flex;
    min-width: 76px;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 850
}

.history-change.is-positive,
.change-positive {
    color: #8ff0b4 !important;
    background: rgba(88, 214, 141, .09) !important;
    border-color: rgba(88, 214, 141, .25) !important
}

.history-change.is-negative,
.change-negative {
    color: #ffaaaa !important;
    background: rgba(255, 125, 125, .09) !important;
    border-color: rgba(255, 125, 125, .25) !important
}

.history-change.is-neutral,
.change-neutral {
    color: #d1d8e2 !important;
    background: rgba(255, 255, 255, .05) !important;
    border-color: var(--line) !important
}

.gold-empty-cell {
    padding: 28px !important;
    color: var(--muted) !important;
    text-align: center !important
}

@media(max-width:960px) {
    .gold-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .gold-primary-summary-grid .gold-summary-card:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .gold-primary-summary-grid .gold-summary-card:nth-child(2n) {
        border-right: 0;
    }
}

@media(max-width:640px) {
    .gold-panel {
        padding: 16px 12px
    }

    .gold-summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px
    }

    .gold-primary-summary-grid {
        gap: 0;
    }

    .gold-primary-summary-grid .gold-summary-card {
        min-height: 0;
        padding: 9px 8px;
    }

    .gold-primary-summary-grid .gold-summary-card span {
        font-size: .72rem;
        line-height: 1.2;
    }

    .gold-primary-summary-grid .gold-summary-card strong {
        margin: 2px 0;
        font-size: clamp(1.35rem, 6.8vw, 1.85rem);
    }

    .gold-primary-summary-grid .gold-summary-card small {
        font-size: .65rem;
        line-height: 1.25;
    }

    .gold-summary-card {
        padding: 14px 12px
    }

    .gold-filter-form {
        display: grid;
        grid-template-columns: 1fr
    }

    .gold-filter-form label {
        min-width: 0
    }

    .gold-submit-button,
    .gold-secondary-button {
        width: 100%
    }

    .gold-scroll-hint {
        display: block
    }

    .gold-data-table th,
    .gold-data-table td {
        padding: 11px 12px;
        font-size: .84rem
    }

    .gold-history-scroller {
        border-radius: 11px
    }
}

@media(max-width:390px) {
    .gold-summary-grid {
        grid-template-columns: 1fr
    }

    .gold-primary-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gold-primary-summary-grid .gold-summary-card {
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .gold-primary-summary-grid .gold-summary-card:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .gold-primary-summary-grid .gold-summary-card:nth-child(2n) {
        border-right: 0;
    }
}

/*** ล่าสุด ***/
.price-analysis-quote {
    margin: 0;
    padding: 18px 22px;
    color: #dce4ef;
    background: linear-gradient(135deg, rgba(245, 196, 81, .09), rgba(98, 215, 255, .035));
    border-top: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.price-analysis-quote p {
    margin: 0;
}

.price-analysis-quote p::before,
.price-analysis-quote p::after {
    color: #ffda76;
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 0;
}

.price-analysis-quote p::before {
    margin-right: 6px;
    content: "“";
    vertical-align: -.18em;
}

.price-analysis-quote p::after {
    margin-left: 5px;
    content: "”";
    vertical-align: -.35em;
}
.price-analysis-quote footer {
    margin-top: 8px;
    color: var(--muted);
    font-size: .78rem;
    font-style: normal;
}

@media (max-width: 640px) {
    .price-analysis-quote p::before,
    .price-analysis-quote p::after {
        font-size: 23px;
    }
}

@media (min-width: 641px) {
    #gold-price .price-card {
        min-height: 168px;
        padding: 16px 24px 18px;
    }
    #gold-price .price-card .label,
    #gold-price .price-card .unit {
        display: block;
        line-height: 1.4;
    }
    #gold-price .price-card .value {
        margin: 8px 0 2px;
    }
    #gold-price .price-card .price-change {
        margin-top: 8px;
        line-height: 1.35;
    }
}
@media (min-width: 961px) {
    #gold-price .gold-primary-summary-grid .gold-summary-card {
        min-height: 0;
        padding: 16px 24px 18px;
    }
    #gold-price .gold-primary-summary-grid .gold-summary-card span,
    #gold-price .gold-primary-summary-grid .gold-summary-card small {
        line-height: 1.4;
    }
    #gold-price .gold-primary-summary-grid .gold-summary-card strong {
        margin: 4px 0 2px;
    }
}
@media (max-width: 640px) {
    #gold-price .price-card {
        padding: 5px 8px 7px;
    }
    #gold-price .price-card .label,
    #gold-price .price-card .unit {
        display: block;
    }
    #gold-price .price-card .label {
        line-height: 1.2;
    }
    #gold-price .price-card .value {
        margin: 3px 0 1px;
    }
    #gold-price .price-card .unit {
        line-height: 1.2;
    }
    #gold-price .price-card .price-change {
        margin-top: 3px;
        line-height: 1.2;
    }
}

/* แสดงภาพประกาศราคาจำนำทองเกือบเต็มการ์ดตามสัดส่วนจริงเฉพาะบนมือถือ */
@media (max-width: 760px) {
    .pawn-rate-section .pawn-rate-card {
        overflow: hidden;
    }

    .pawn-rate-section .pawn-rate-figure-mobile-natural > a {
        display: block;
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        margin: 8px auto 0;
        aspect-ratio: auto;
    }

    .pawn-rate-section .pawn-rate-figure-mobile-natural img {
        width: 100%;
        height: auto;
        object-fit: initial;
    }
}


/***** ล่าสุด *****/
  .pawn-rate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
  }

  .pawn-rate-card {
    min-width: 0;
    height: 100%;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .pawn-rate-card-header {
    padding: 24px 24px 18px;
  }

  .pawn-rate-card-header h3 {
    margin: 5px 0 0;
    color: #fff4ce;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.35;
  }

  .pawn-rate-branch {
    margin: 0;
    color: #8de3ff;
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .02em;
  }

  .pawn-rate-figure {
    margin: 0;
    border-block: 1px solid var(--line);
    background: #080b11;
  }

  .pawn-rate-figure > a {
    display: flex;
    width: 100%;
    aspect-ratio: 4 / 3;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #090d14, #111925);
  }

  .pawn-rate-figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .pawn-rate-figure figcaption {
    min-height: 48px;
    padding: 11px 18px;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.55;
  }

  .pawn-rate-empty-state {
    min-height: 250px;
    padding: 34px 28px;
    border-block: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
      radial-gradient(circle at 50% 25%, rgba(141, 227, 255, .11), transparent 46%),
      linear-gradient(145deg, #090d14, #111925);
  }

  .pawn-rate-empty-state strong {
    color: #e8edf4;
    font-size: 1.05rem;
  }

  .pawn-rate-empty-state p {
    max-width: 36ch;
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.6;
  }

  .pawn-rate-empty-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 15px;
    border: 1px solid rgba(141, 227, 255, .36);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #8de3ff;
    font-size: 1.45rem;
  }

  .pawn-rate-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 24px 24px;
  }

  .pawn-rate-value-label {
    margin: 0;
    color: #cbd4df;
    font-size: .9rem;
    font-weight: 700;
  }

  .pawn-rate-value {
    display: flex;
    gap: 9px;
    align-items: baseline;
    margin: 4px 0 17px;
    color: #ffe08b;
  }

  .pawn-rate-value strong {
    font-size: clamp(2.15rem, 5vw, 3.35rem);
    line-height: 1;
    letter-spacing: -.045em;
  }

  .pawn-rate-value span {
    color: #d8dee8;
    font-weight: 800;
  }

  .pawn-rate-unavailable {
    margin: 7px 0 18px;
    color: #ffe08b;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-weight: 850;
    line-height: 1.25;
  }

  .pawn-rate-details {
    margin: 0 0 17px;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
  }

  .pawn-rate-details li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: #c5ceda;
    line-height: 1.55;
  }

  .pawn-rate-details strong {
    color: #f5f7fa;
  }

  .pawn-rate-source {
    margin: auto 0 0;
    padding-top: 5px;
    color: #aab5c4;
    font-size: .84rem;
    line-height: 1.65;
  }

  .pawn-rate-source a {
    color: #ffe094;
    font-weight: 800;
  }

  .pawn-rate-note {
    margin: 13px 0 0;
    padding: 13px 15px;
    border-left: 3px solid #f5c451;
    background: rgba(245, 196, 81, .07);
    color: #c8d0db;
    font-size: .82rem;
    line-height: 1.65;
  }

  .pawn-rate-section .reference-note {
    margin-top: 22px;
  }

  @media (max-width: 760px) {
    .pawn-rate-grid {
      grid-template-columns: 1fr;
    }

    .pawn-rate-card-header {
      padding: 20px 18px 15px;
    }

    .pawn-rate-body {
      padding: 19px 18px 21px;
    }

    .pawn-rate-figure figcaption {
      min-height: 0;
    }
  }

/* กราฟราคาขายออกทองคำแท่ง 96.5% จากประกาศครั้งสุดท้ายรายวัน */
.gold-long-term-chart-section {
    position: relative;
    scroll-margin-top: 88px;
}

.gold-long-term-chart-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: clamp(18px, 3vw, 30px);
    border-radius: var(--radius);
    overflow: hidden;
}

.gold-chart-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.gold-chart-stat-card {
    min-width: 0;
    padding: 16px;
    background: linear-gradient(145deg, rgba(20, 28, 40, .94), rgba(10, 15, 23, .94));
    border: 1px solid var(--line);
    border-radius: 15px;
}

.gold-chart-stat-card span,
.gold-chart-stat-card small {
    display: block;
    color: var(--muted);
    line-height: 1.45;
}

.gold-chart-stat-card span {
    font-size: .82rem;
    font-weight: 750;
}

.gold-chart-stat-card strong {
    display: block;
    margin: 5px 0 2px;
    color: #ffe18b;
    font-size: clamp(1.18rem, 2.5vw, 1.65rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.gold-chart-stat-card small {
    font-size: .75rem;
}

.gold-chart-stat-card.is-positive strong {
    color: #8ff0b4;
}

.gold-chart-stat-card.is-negative strong {
    color: #ffaaaa;
}

.gold-chart-stat-card.is-neutral strong {
    color: #dbe3ed;
}

.gold-long-term-chart-figure {
    margin: 0;
}

.gold-long-term-chart-canvas {
    width: 100%;
    height: 520px;
    min-width: 0;
    background: linear-gradient(180deg, rgba(8, 13, 20, .97), rgba(12, 18, 27, .97));
    border: 1px solid rgba(245, 196, 81, .18);
    border-radius: 17px;
    overflow: hidden;
}

.gold-long-term-chart-loading,
.gold-long-term-chart-fallback {
    display: grid;
    min-height: 100%;
    margin: 0;
    padding: 24px;
    place-items: center;
    color: var(--muted);
    text-align: center;
}

.gold-long-term-chart-figure figcaption {
    margin-top: 11px;
    color: #aeb9c8;
    font-size: .82rem;
    line-height: 1.7;
}

.gold-long-term-chart-guide {
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(7, 10, 15, .72);
}

.gold-long-term-chart-guide > summary {
    color: #f7f9fb;
    font-size: clamp(1rem, 2.2vw, 1.18rem);
}

.gold-long-term-chart-guide > summary small {
    font-size: .76rem;
}

.gold-long-term-chart-guide .gold-price-disclosure-body {
    padding-top: 20px;
}

.gold-long-term-chart-guide ol {
    margin: 0;
    padding-left: 1.35rem;
    color: #c1cad6;
}

.gold-long-term-chart-guide li + li {
    margin-top: 8px;
}

.gold-chart-definition,
.gold-chart-caution {
    margin: 16px 0 0;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: .86rem;
    line-height: 1.7;
}

.gold-chart-definition {
    color: #c7d2df;
    background: rgba(98, 215, 255, .055);
    border-left: 3px solid rgba(98, 215, 255, .75);
}

.gold-chart-caution {
    color: #d5cba9;
    background: rgba(245, 196, 81, .06);
    border-left: 3px solid var(--gold);
}

.gold-chart-definition code {
    padding: .08em .36em;
    color: #ffe39a;
    background: rgba(0, 0, 0, .28);
    border-radius: 5px;
    font-size: .9em;
    overflow-wrap: anywhere;
}

@media (max-width: 960px) {
    .gold-chart-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gold-long-term-chart-panel {
        padding: 14px 10px;
    }

    .gold-chart-stat-grid {
        gap: 8px;
        margin-bottom: 14px;
    }

    .gold-chart-stat-card {
        padding: 12px 10px;
    }

    .gold-chart-stat-card span {
        font-size: .72rem;
    }

    .gold-chart-stat-card strong {
        font-size: clamp(1.05rem, 5.2vw, 1.35rem);
    }

    .gold-chart-stat-card small {
        font-size: .68rem;
    }

    .gold-long-term-chart-canvas {
        height: 390px;
        border-radius: 13px;
    }

    .gold-long-term-chart-guide {
        margin-top: 18px;
        padding-inline: 3px;
    }

    .gold-long-term-chart-guide ol {
        padding-left: 1.18rem;
    }

    .gold-chart-definition,
    .gold-chart-caution {
        padding: 12px;
    }
}

/* กราฟราคาทองคำตลาดโลก XAU/USD จาก TradingView */
.tradingview-gold-section {
    position: relative;
    scroll-margin-top: 88px;
}

.tradingview-gold-panel {
    width: 100%;
    min-width: 0;
    padding: 22px;
    overflow: hidden;
}

.tradingview-facade {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(16, 22, 34, 0.95), rgba(9, 13, 20, 0.98));
    border: 1px solid rgba(244, 198, 84, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    margin-bottom: 1rem;
}

.tradingview-facade-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #f4c654;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.tradingview-facade-badge .facade-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.tradingview-facade-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.facade-metric-item {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.facade-metric-label {
    font-size: 0.85rem;
    color: #94a3b8;
}

.facade-metric-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.tradingview-facade-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    padding-top: 0.5rem;
}

.tradingview-load-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
}

.tradingview-gold-chart-frame {
    width: 100%;
    height: clamp(520px, 62vw, 720px);
    min-width: 0;
    overflow: hidden;
    background: #0f0f0f;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.tradingview-gold-chart-frame .tradingview-widget-container {
    max-width: 100%;
}

.tradingview-gold-chart-frame .tradingview-widget-copyright {
    min-height: 32px;
    padding: 6px 10px;
    color: #9aa7b8;
    background: #0f0f0f;
    font-size: .75rem;
    line-height: 20px;
    text-align: right;
}

.tradingview-gold-chart-frame .tradingview-widget-copyright a {
    color: #8bbcff;
    text-decoration: none;
}

.tradingview-gold-chart-frame .tradingview-widget-copyright a:hover,
.tradingview-gold-chart-frame .tradingview-widget-copyright a:focus-visible {
    color: #c5dcff;
    text-decoration: underline;
}

.tradingview-gold-guide {
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(7, 10, 15, .72);
}

.tradingview-gold-guide > summary {
    color: #f7f9fb;
    font-size: clamp(1rem, 2.2vw, 1.18rem);
}

.tradingview-gold-guide > summary small {
    font-size: .76rem;
}

.tradingview-gold-guide .gold-price-disclosure-body {
    padding-top: 20px;
}

.tradingview-gold-guide ol {
    margin: 0;
    padding-left: 1.35rem;
    color: #c1cad6;
}

.tradingview-gold-guide li {
    line-height: 1.75;
}

.tradingview-gold-guide li + li {
    margin-top: 8px;
}

.tradingview-gold-reference {
    margin-top: 16px;
}

@media (max-width: 640px) {
    .tradingview-gold-panel {
        padding: 14px 10px;
    }

    .tradingview-gold-chart-frame {
        height: 500px;
        border-radius: 13px;
    }

    .tradingview-gold-guide {
        margin-top: 18px;
    }

    .tradingview-gold-guide ol {
        padding-left: 1.18rem;
    }
}

@media (max-width: 420px) {
    .tradingview-gold-chart-frame {
        height: 460px;
    }
}

/* หน้าราคาจำนำทอง */
.pawn-page-hero {
    padding-bottom: 24px;
}

.pawn-page-hero .section-heading {
    max-width: 930px;
    margin-bottom: 0;
}

.pawn-page-hero .gold-page-intro {
    max-width: 880px;
    margin-top: 18px;
    color: #c7d0dd;
    font-size: clamp(1rem, 1.55vw, 1.12rem);
    line-height: 1.8;
}

.pawn-page-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
}

.pawn-page-quick-nav a {
    display: inline-flex;
    min-height: 42px;
    padding: 9px 16px;
    align-items: center;
    justify-content: center;
    color: #e8d6a1;
    background: rgba(245, 196, 81, .055);
    border: 1px solid rgba(245, 196, 81, .17);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.pawn-page-quick-nav a:hover,
.pawn-page-quick-nav a:focus-visible {
    color: #11151d;
    background: var(--gold);
    border-color: var(--gold);
}

#main-content .section.pawn-page-rate-section {
    padding-top: 0;
}

.pawn-page-rate-section .pawn-rate-grid {
    align-items: stretch;
}

.pawn-page-rate-section .pawn-rate-card {
    align-self: stretch;
}

.pawn-rate-comparison-summary {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

.social-share-bar.pawn-overview-share-row,
.social-share-bar.pawn-detail-share-row {
    width: 100%;
    padding: clamp(14px, 2vw, 18px) clamp(14px, 2.4vw, 22px);
    align-items: center;
    justify-content: flex-start;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(12, 18, 27, .72);
}

.social-share-bar.pawn-overview-share-row {
    margin: clamp(26px, 3.5vw, 38px) 0 clamp(24px, 3vw, 34px);
}

.pawn-quick-nav + .social-share-bar.pawn-detail-share-row {
    margin: clamp(22px, 3vw, 30px) 0 clamp(8px, 1.5vw, 16px);
}

@media (max-width: 640px) {
    .social-share-bar.pawn-overview-share-row,
    .social-share-bar.pawn-detail-share-row,
    .social-share-bar.pawn-overview-share-row .share-buttons-group,
    .social-share-bar.pawn-detail-share-row .share-buttons-group {
        justify-content: center;
    }
}

.pawn-latest-overview {
    position: relative;
    left: 50%;
    width: calc(100vw - 32px);
    box-sizing: border-box;
    transform: translateX(-50%);
    margin-top: clamp(22px, 3vw, 34px);
    padding: clamp(20px, 3.4vw, 34px);
    border: 1px solid rgba(245, 196, 81, .2);
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 8%, rgba(245, 196, 81, .12), transparent 32%),
        linear-gradient(145deg, rgba(18, 26, 38, .94), rgba(10, 15, 23, .96));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
}

.pawn-latest-overview-heading {
    max-width: 900px;
}

.pawn-latest-overview-eyebrow {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.pawn-latest-overview h2 {
    margin: 0;
    color: #f6f8fb;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.28;
}

.pawn-latest-overview-heading > p:last-child {
    margin: 12px 0 0;
    color: #b8c3d1;
    font-size: .98rem;
    line-height: 1.75;
}

.pawn-latest-overview-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 0;
}

.pawn-latest-overview-stats > div {
    padding: 15px 17px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 15px;
    background: rgba(5, 10, 17, .48);
}

.pawn-latest-overview-stats dt {
    margin-bottom: 5px;
    color: #8f9daf;
    font-size: .78rem;
    font-weight: 800;
}

.pawn-latest-overview-stats dd {
    margin: 0;
    color: #f5c451;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 900;
}

.pawn-latest-overview-stats dd small {
    color: #c8d0dc;
    font-size: .72em;
}

.pawn-latest-overview-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.pawn-latest-overview-item a {
    display: flex;
    min-height: 122px;
    padding: 15px;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(9, 15, 24, .7);
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.pawn-latest-overview-item a:hover,
.pawn-latest-overview-item a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(245, 196, 81, .42);
    background: rgba(245, 196, 81, .075);
}

.pawn-latest-overview-index {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 196, 81, .3);
    border-radius: 9px;
    color: #f5c451;
    background: rgba(245, 196, 81, .08);
    font-size: .72rem;
    font-weight: 900;
}

.pawn-latest-overview-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.pawn-latest-overview-name {
    min-height: 2.75em;
    color: #dbe3ed;
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.38;
}

.pawn-latest-overview-rate {
    margin-top: 7px;
    color: #f5c451;
    font-size: 1.22rem;
    line-height: 1.2;
}

.pawn-latest-overview-rate small {
    color: #aab6c5;
    font-size: .65em;
}

.pawn-latest-overview time {
    margin-top: 6px;
    color: #8492a5;
    font-size: .72rem;
    line-height: 1.4;
}

.pawn-latest-overview-note {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    color: #8f9daf;
    font-size: .82rem;
    line-height: 1.65;
}

.pawn-overview-share {
    margin: clamp(26px, 4vw, 42px) 0;
    padding: clamp(17px, 2.5vw, 24px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(18, 25, 36, .84), rgba(9, 14, 22, .76));
    text-align: center;
}

.pawn-overview-share-heading {
    margin: 0 0 12px;
    color: #d7dee8;
    font-size: .92rem;
    font-weight: 800;
}

.pawn-overview-share .social-share-bar {
    justify-content: center;
    margin: 0;
}

@media (max-width: 980px) {
    .pawn-latest-overview-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    #main-content .pawn-page-hero > .container > .section-heading.pawn-overview-heading {
        padding-right: 0;
    }

    .pawn-overview-heading > .eyebrow,
    .pawn-overview-heading > h1 {
        padding-right: 64px;
    }
}

@media (max-width: 640px) {

    .pawn-latest-overview {
        border-radius: 19px;
    }

    .pawn-latest-overview-stats,
    .pawn-latest-overview-list {
        grid-template-columns: 1fr;
    }

    .pawn-latest-overview-item a {
        min-height: auto;
    }

    .pawn-latest-overview-name {
        min-height: 0;
    }

    .pawn-overview-share {
        margin-top: 28px;
        margin-bottom: 28px;
    }

    .pawn-overview-share .social-share-bar,
    .pawn-overview-share .share-buttons-group {
        justify-content: center;
    }
}

.pawn-rate-hero-intro {
    margin: 16px 0 0;
    color: #c7d0dd;
    font-size: clamp(1rem, 1.55vw, 1.12rem);
    line-height: 1.8;
}

.pawn-rate-hero-intro a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: rgba(245, 196, 81, .5);
}

.pawn-rate-hero-intro a:hover {
    color: #ffe68e;
}

.pawn-rate-section-nav {
    margin-top: 24px;
}

.pawn-page-rate-section,
.pawn-page-content,
.pawn-faq-section {
    scroll-margin-top: 88px;
}

.pawn-gold-context {
    display: grid;
    grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr);
    gap: 22px 28px;
    margin: 24px 0 0;
    padding: clamp(20px, 3vw, 28px);
    align-items: center;
    border-radius: 20px;
}

.pawn-gold-context .eyebrow {
    margin-bottom: 8px;
}

.pawn-gold-context h3 {
    margin: 0;
    color: #f8f9fb;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.pawn-gold-context > div:first-child > p:last-child {
    margin: 9px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.pawn-gold-context-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.pawn-gold-context-grid span {
    min-width: 0;
    padding: 14px;
    background: rgba(5, 9, 15, .62);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 13px;
}

.pawn-gold-context-grid small,
.pawn-gold-context-grid strong {
    display: block;
}

.pawn-gold-context-grid small {
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.45;
}

.pawn-gold-context-grid strong {
    margin-top: 5px;
    color: #ffe08b;
    font-size: clamp(1rem, 1.75vw, 1.28rem);
    line-height: 1.2;
    white-space: nowrap;
}

.pawn-context-note {
    grid-column: 1 / -1;
    margin: -4px 0 0;
    color: #aeb9c7;
    font-size: .82rem;
    line-height: 1.65;
}

.pawn-rate-article-summary {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 24px;
    padding: clamp(20px, 3vw, 28px);
    box-sizing: border-box;
    border-left: 4px solid var(--gold);
    border-radius: 18px;
    overflow: hidden;
}

.pawn-rate-article-summary .eyebrow {
    margin-bottom: 8px;
}

.pawn-rate-article-summary h2,
.pawn-rate-article-summary h3 {
    margin: 0 0 12px;
    font-size: clamp(1.2rem, 2.3vw, 1.65rem);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.pawn-rate-article-summary h2 a,
.pawn-rate-article-summary h3 a,
.pawn-rate-article-summary > p:last-child a {
    color: #ffe099;
}

.pawn-rate-article-summary > p:last-child {
    margin: 0;
    color: #c4ceda;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .pawn-rate-article-summary {
        padding: 18px 16px;
        border-radius: 15px;
    }
}

.pawn-guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
    gap: clamp(22px, 3vw, 32px);
    align-items: start;
}

.pawn-guide-main {
    display: grid;
    min-width: 0;
    gap: 22px;
}

.pawn-guide-sidebar {
    position: sticky;
    top: 94px;
    display: grid;
    gap: 18px;
}

.pawn-content-card {
    min-width: 0;
    padding: clamp(22px, 3.5vw, 34px);
    border-radius: 20px;
    scroll-margin-top: 92px;
}

.pawn-content-card .eyebrow {
    margin-bottom: 8px;
}

.pawn-content-card h2 {
    margin: 0 0 15px;
    color: #f6f8fb;
    font-size: clamp(1.3rem, 2.5vw, 1.78rem);
}

.pawn-content-card h3 {
    margin: 0 0 8px;
    color: #fff0c0;
    font-size: 1.05rem;
}

.pawn-content-card > p,
.pawn-factor-grid p,
.pawn-redemption-grid p {
    color: #c4ceda;
    line-height: 1.82;
}

.pawn-content-card > p {
    margin: 0;
}

.pawn-content-card > p + p {
    margin-top: 13px;
}

.pawn-factor-grid,
.pawn-redemption-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pawn-factor-grid article,
.pawn-redemption-grid article {
    padding: 18px;
    background: rgba(7, 12, 19, .58);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 15px;
}

.pawn-factor-grid strong {
    display: block;
    margin-bottom: 7px;
    color: #ffe097;
}

.pawn-factor-grid p,
.pawn-redemption-grid p {
    margin: 0;
    font-size: .91rem;
}

.pawn-comparison-table,
.pawn-interest-table {
    min-width: 680px;
}

.pawn-formula {
    margin: 18px 0 0;
    padding: 16px 18px;
    color: #eaf3fb;
    background: #080c12;
    border: 1px solid rgba(98, 215, 255, .14);
    border-radius: 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .86rem;
    line-height: 1.7;
}

.pawn-step-list {
    display: grid;
    gap: 12px;
    margin: 18px 0;
    padding-left: 1.3rem;
}

.pawn-step-list li {
    padding-left: 5px;
    color: #c4ceda;
    line-height: 1.72;
}

.pawn-step-list strong,
.pawn-step-list span {
    display: block;
}

.pawn-step-list strong {
    color: #fff0c0;
}

.pawn-checklist {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.pawn-checklist li {
    position: relative;
    padding: 13px 15px 13px 42px;
    color: #c9d2dd;
    background: rgba(7, 12, 19, .52);
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 13px;
    line-height: 1.65;
}

.pawn-checklist li::before {
    position: absolute;
    top: 13px;
    left: 15px;
    color: #80e7b1;
    content: "✓";
    font-weight: 900;
}

.pawn-faq-section .faq-list {
    max-width: 100%;
}

@media (max-width: 1080px) {
    .pawn-gold-context {
        grid-template-columns: 1fr;
    }

    .pawn-gold-context-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .pawn-guide-layout {
        grid-template-columns: 1fr;
    }

    .pawn-guide-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .pawn-page-hero {
        padding-top: 18px;
        padding-bottom: 10px;
    }

    .pawn-page-hero .section-heading {
        padding-right: 86px;
    }

    .pawn-page-hero .gold-page-intro {
        margin-top: 13px;
        font-size: .96rem;
    }

    .pawn-page-quick-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
    }

    .pawn-page-quick-nav a {
        min-height: 40px;
        padding: 8px 10px;
        font-size: .8rem;
        text-align: center;
    }

    #main-content .section.pawn-page-rate-section {
        padding-top: 8px;
    }

    .pawn-page-rate-section .pawn-rate-figure-mobile-natural > a {
        width: calc(100% - 8px);
        max-width: calc(100% - 8px);
        margin: 4px auto 0;
    }

    .pawn-page-rate-section .pawn-rate-figure-mobile-natural img {
        width: 100%;
        height: auto;
    }

    .pawn-gold-context {
        gap: 17px;
        padding: 18px;
    }

    .pawn-gold-context-grid {
        gap: 8px;
    }

    .pawn-gold-context-grid span {
        padding: 12px 10px;
    }

    .pawn-factor-grid,
    .pawn-redemption-grid,
    .pawn-guide-sidebar {
        grid-template-columns: 1fr;
    }

    .pawn-content-card {
        padding: 21px 18px;
    }
}

@media (max-width: 420px) {
    .pawn-page-hero .section-heading {
        padding-right: 76px;
    }

    .pawn-gold-context-grid {
        grid-template-columns: 1fr;
    }

    .pawn-gold-context-grid strong {
        white-space: normal;
    }
}

/* Shared compact footer layout */
.footer-legacy {
    display: none !important;
}

.footer-standard-main {
    display: grid;
    grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr);
    align-items: end;
    gap: 70px;
    padding-block: 48px;
    border-top: 1px solid var(--line);
}

.footer-standard-brand .brand {
    gap: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.footer-standard-brand .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.footer-standard-brand .brand-mark img {
    display: block;
    width: 18px;
    height: 18px;
}

.footer-standard-brand .brand-name {
    display: block;
    font-size: 1rem;
    line-height: 1.25;
}

.footer-standard-brand .brand small {
    display: block;
    margin-top: 1px;
    color: #aeb8c6;
    font-size: .67rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .08em;
}

.footer-standard-brand > p {
    max-width: 430px;
    margin: 18px 0 0;
    color: #9ca8b8;
    font-size: 11px;
    line-height: 1.7;
}

.footer-standard-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px 18px;
}

.footer-standard-links a {
    color: #dce3eb;
    font-size: 11px;
    text-decoration: none;
}

.footer-standard-links a:hover {
    color: #ffe098;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.footer-standard-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0 25px;
    color: #778496;
    border-top: 1px solid var(--line);
    font-size: 10px;
}

.footer-standard-bottom p {
    margin: 0;
    font-size: inherit;
}

@media (max-width: 960px) {
    .footer-standard-main {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-standard-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .footer-standard-bottom {
        flex-direction: column;
    }
}

/* Site-wide text link underline behavior */
a[href] {
    text-decoration: none !important;
}

a[href]:hover {
    text-decoration: underline !important;
    text-underline-offset: .18em;
}

/* LPG-style responsive top menu */
@media (min-width: 761px) {
    .site-header {
        position: sticky;
        top: 0;
        right: auto;
        left: auto;
        width: auto;
        min-height: 72px;
        background: rgba(7, 9, 13, .8);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(18px);
        pointer-events: auto;
    }

    .site-header .header-inner {
        display: flex;
        width: min(calc(100% - 48px), 1760px);
        max-width: none;
        min-height: 76px;
        margin-inline: auto;
        padding-block: 10px;
        align-items: center;
        gap: 28px;
    }

    .site-header .brand {
        display: inline-flex;
        flex: 0 0 auto;
        gap: 10px;
        font-size: 1rem;
        font-weight: 800;
        line-height: 1.25;
        letter-spacing: -.02em;
        white-space: nowrap;
    }

    .site-header .brand small {
        display: block;
        margin-top: 1px;
        color: var(--muted);
        font-size: .67rem;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: .08em;
    }

    .site-header .mobile-menu-toggle {
        display: none;
    }

    .site-header .top-nav,
    .site-header.is-open .top-nav {
        position: static;
        top: auto;
        right: auto;
        left: auto;
        display: flex;
        width: auto;
        max-height: none;
        padding: 0;
        flex: 1 1 auto;
        flex-flow: row wrap;
        align-items: center;
        justify-content: flex-end;
        column-gap: clamp(8px, 1vw, 18px);
        row-gap: 0;
        overflow: visible;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
    }

    .site-header .top-nav a {
        display: inline-flex;
        width: auto;
        min-height: 0;
        padding: 6px 0;
        flex: 0 0 auto;
        color: #cfd7e3;
        background: transparent;
        border-radius: 0;
        white-space: nowrap;
    }
}

@media (max-width: 760px) {
    .site-header {
        position: fixed;
        top: max(8px, env(safe-area-inset-top));
        right: max(14px, env(safe-area-inset-right));
        left: auto;
        z-index: 100;
        display: block;
        width: 52px;
        min-height: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
        pointer-events: none;
    }

    .site-header .header-inner {
        display: flex;
        width: 52px;
        max-width: none;
        min-height: 52px;
        margin: 0;
        padding: 0;
        align-items: center;
        gap: 0;
    }

    .site-header .brand {
        display: none;
    }

    .site-header .mobile-menu-toggle {
        position: relative;
        display: block;
        width: 52px;
        height: 52px;
        margin: 0;
        padding: 0;
        color: #fff;
        background: rgba(8, 11, 16, .92);
        border: 1px solid rgba(245, 196, 81, .34);
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .32);
        backdrop-filter: blur(16px);
        font-size: 0;
        pointer-events: auto;
    }

    .site-header .mobile-menu-toggle:focus-visible {
        outline: 3px solid rgba(255, 226, 154, .58);
        outline-offset: 3px;
    }

    .site-header .menu-lines {
        position: relative;
        display: block;
        width: 24px;
        height: 2px;
        margin: auto;
        background: currentColor;
        border-radius: 2px;
    }

    .site-header .menu-lines::before,
    .site-header .menu-lines::after {
        position: absolute;
        left: 0;
        display: block;
        width: 24px;
        height: 2px;
        content: "";
        background: currentColor;
        border-radius: 2px;
    }

    .site-header .menu-lines::before {
        top: -7px;
    }

    .site-header .menu-lines::after {
        top: 7px;
    }

    .site-header .top-nav {
        position: fixed;
        top: calc(68px + env(safe-area-inset-top));
        right: 14px;
        left: 14px;
        z-index: 101;
        display: none;
        width: auto;
        max-height: calc(100dvh - 84px - env(safe-area-inset-top));
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        overflow-y: auto;
        color: #fff;
        background: rgba(8, 11, 16, .98);
        border: 1px solid rgba(245, 196, 81, .24);
        border-radius: 14px;
        box-shadow: 0 18px 45px rgba(0, 0, 0, .48);
        pointer-events: auto;
    }

    .site-header.is-open .top-nav {
        display: flex;
    }

    .site-header .top-nav a {
        display: flex;
        width: 100%;
        min-height: 44px;
        padding: 11px 12px;
        align-items: center;
        color: #e8edf4;
        background: transparent;
        border-radius: 10px;
        font-size: .88rem;
        line-height: 1.35;
    }

    .site-header .top-nav a:hover,
    .site-header .top-nav a:focus-visible,
    .site-header .top-nav a[aria-current="page"]:hover,
    .site-header .top-nav a[aria-current="page"]:focus-visible {
        color: #241700;
        background: linear-gradient(135deg, #ffe594, #e9a616);
        outline: none;
    }

    .site-header .top-nav a[aria-current="page"] {
        color: #ffe09a;
        background: rgba(245, 196, 81, .1);
    }

    .breadcrumb {
        min-height: 56px;
        margin-bottom: 10px;
        padding-top: max(6px, env(safe-area-inset-top));
        padding-right: 64px;
    }
}

/* Align prominent page headings with the /commodities/ heading rhythm. */
@media screen {
    #main-content .section {
        padding-top: clamp(36px, 3vw, 46px);
    }

    #main-content > .container + #gold-price,
    #main-content > .container + #gold-history,
    #main-content .pawn-page-hero {
        padding-top: clamp(24px, 2.5vw, 38px);
    }

    #main-content .section-heading > .eyebrow {
        display: flex;
        width: fit-content;
        margin: 0 0 17px;
        align-items: center;
        gap: 10px;
        font-size: 11px;
        font-weight: 800;
        line-height: 1.65;
        letter-spacing: .14em;
    }

    #main-content .section-heading > .eyebrow::before {
        width: 28px;
        height: 1px;
    }

    #main-content .section-heading > h1,
    #main-content .section-heading > h2,
    #main-content .section-heading > h1 .gold-page-title {
        margin: 0;
        font-size: clamp(1.5rem, 2.5vw, 2.2rem);
        line-height: 1.13;
        letter-spacing: -.045em;
    }

    #main-content .section-heading > h1 + .gold-page-intro {
        margin-top: 26px;
    }
}

@media screen and (max-width: 760px) {
    #main-content > .container + #gold-price,
    #main-content > .container + #gold-history,
    #main-content .pawn-page-hero {
        padding-top: 0;
    }

    #main-content > .container > .breadcrumb {
        display: flex;
    }
}

/* Thai-company gold price comparison page */
.thai-company-hero {
    padding-bottom: clamp(28px, 4vw, 56px);
}

.thai-company-page-heading {
    max-width: 1080px;
}

.thai-company-summary-image {
    width: min(100%, 1200px);
    margin: clamp(18px, 3vw, 32px) auto clamp(28px, 4vw, 46px);
}

.thai-company-summary-image > a {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(245, 196, 81, .28);
    border-radius: 20px;
    background: #0e1117;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .35), 0 0 38px rgba(218, 163, 45, .08);
}

.thai-company-summary-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
}

.thai-company-summary-image figcaption {
    max-width: 1040px;
    margin: 10px auto 0;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.thai-company-summary-image figcaption strong {
    color: #f4d582;
}

.thai-company-page-heading .gold-page-intro {
    max-width: 1030px;
}

@media (max-width: 640px) {
    .thai-company-summary-image {
        margin-top: 14px;
        margin-bottom: 26px;
    }

    .thai-company-summary-image > a {
        border-radius: 11px;
    }

    .thai-company-summary-image figcaption {
        font-size: .78rem;
        line-height: 1.65;
    }
}

/* In-page quick navigation pills directly under H1 */
.thai-company-quick-nav,
.pawn-quick-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 18px;
}

.thai-company-quick-nav-label,
.pawn-quick-nav-label {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

.thai-company-quick-nav-links,
.pawn-quick-nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 8px;
}

.thai-company-quick-nav-item,
.pawn-quick-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px 5px 6px;
    color: #cbd5e1;
    background: rgba(15, 22, 33, .75);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.thai-company-quick-nav-item:hover,
.thai-company-quick-nav-item:focus-visible,
.pawn-quick-nav-item:hover,
.pawn-quick-nav-item:focus-visible {
    color: #ffffff;
    background: rgba(26, 36, 52, .95);
    border-color: rgba(245, 196, 81, .5);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.thai-company-quick-nav-item .quick-nav-badge,
.pawn-quick-nav-item .quick-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 20px;
    padding: 0 6px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, .1);
    border-radius: 999px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.thai-company-quick-nav-item.is-reference,
.pawn-quick-nav-item.is-reference {
    border-color: rgba(245, 196, 81, .32);
    background: rgba(27, 34, 46, .9);
}

.thai-company-quick-nav-item.is-reference .quick-nav-badge,
.pawn-quick-nav-item.is-reference .quick-nav-badge {
    color: #0c121b;
    background: #f5c451;
}

.thai-company-quick-nav-item.is-reference:hover,
.pawn-quick-nav-item.is-reference:hover {
    border-color: #f5c451;
    box-shadow: 0 4px 16px rgba(245, 196, 81, .22);
}

.pawn-rate-card {
    scroll-margin-top: 96px;
}

/* Individual Pawn Rate Page Layout */
.pawn-each-featured-card {
    padding: clamp(20px, 3vw, 32px);
    border-radius: 20px;
    margin-bottom: 24px;
}

.pawn-each-card-grid {
    display: grid;
    grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.pawn-weight-rates-box {
    margin-top: 18px;
    padding: 16px;
    background: rgba(5, 9, 15, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.pawn-weight-rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.pawn-weight-pill {
    padding: 10px 12px;
    background: rgba(15, 22, 33, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pawn-weight-pill .weight-title {
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 600;
}

.pawn-weight-pill .weight-price {
    color: #ffe08b;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

@media screen and (max-width: 900px) {
    .pawn-each-card-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* 7-Day Pawn History Table */
.pawn-7day-card {
    margin-top: 24px;
    padding: clamp(18px, 2.5vw, 26px);
    border-radius: 20px;
    border: 1px solid rgba(245, 196, 81, 0.2);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.gold-7day-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.gold-7day-header h2 {
    margin: 0.25rem 0 0;
    color: #fff;
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    line-height: 1.3;
}

.gold-7day-badge {
    flex-shrink: 0;
    padding: 3px 10px;
    color: #f5c451;
    background: rgba(245, 196, 81, 0.12);
    border: 1px solid rgba(245, 196, 81, 0.3);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.gold-7day-table-wrap {
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gold-7day-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.gold-7day-table th {
    padding: 0.75rem 1rem;
    background: rgba(10, 15, 22, 0.85);
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

.gold-7day-table th:first-child,
.gold-7day-table td:first-child {
    text-align: left;
}

.gold-7day-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
    text-align: right;
    color: #e2e8f0;
}

.gold-7day-table th.is-highlight,
.gold-7day-table td.is-highlight {
    background: rgba(245, 196, 81, 0.05);
}

.gold-7day-table td.is-highlight strong {
    color: #f5c451;
    font-size: 1.05rem;
}

.gold-7day-table tr.is-latest {
    background: rgba(245, 196, 81, 0.08);
}

.gold-7day-table tr:last-child td {
    border-bottom: none;
}

.latest-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    background: #f5c451;
    color: #0c121b;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    vertical-align: middle;
}

.change-pill {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.82rem;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.change-pill.is-up {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
}

.change-pill.is-down {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
}

.change-pill.is-neutral {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
}

.gold-7day-note {
    margin: 0.8rem 0 0;
    color: #8997a8;
    font-size: 0.82rem;
    line-height: 1.55;
}

@media screen and (max-width: 640px) {
    .thai-company-quick-nav,
    .pawn-quick-nav {
        margin-top: 14px;
        gap: 8px;
    }

    .thai-company-quick-nav-label,
    .pawn-quick-nav-label {
        width: 100%;
        margin-bottom: 2px;
        font-size: 12px;
    }

    .thai-company-quick-nav-links,
    .pawn-quick-nav-links {
        gap: 6px;
    }

    .thai-company-quick-nav-item,
    .pawn-quick-nav-item {
        padding: 4px 10px 4px 5px;
        font-size: 11px;
    }

    .thai-company-quick-nav-item .quick-nav-badge,
    .pawn-quick-nav-item .quick-nav-badge {
        min-width: 22px;
        height: 18px;
        font-size: 10px;
    }
}


.thai-company-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: clamp(18px, 2.2vw, 24px);
}

@media screen and (min-width: 981px) {
    .thai-company-grid {
        margin-top: 18px;
    }
}


.thai-company-footer-intro {
    max-width: 100%;
    margin-top: clamp(24px, 3.5vw, 38px);
    padding: clamp(16px, 2.2vw, 24px) clamp(20px, 2.8vw, 30px);
    color: #c7d0dd;
    background: rgba(12, 17, 26, .65);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
    font-size: clamp(14px, 1.1vw, 15px);
    line-height: 1.85;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}


.thai-company-feature-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 12%, rgba(245, 196, 81, .09), transparent 31%),
        linear-gradient(180deg, rgba(16, 22, 31, .32), rgba(7, 9, 13, 0));
}

.thai-company-feature-heading {
    max-width: 920px;
}

.thai-company-feature-heading h2 a {
    color: inherit;
    text-decoration-color: rgba(245, 196, 81, .38);
    text-decoration-thickness: 1px;
    text-underline-offset: 7px;
}

.thai-company-feature-heading h2 a:hover,
.thai-company-feature-heading h2 a:focus-visible {
    color: #f6cf69;
    text-decoration-color: currentColor;
}

.thai-company-feature-actions {
    display: flex;
    margin-top: 22px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.thai-company-feature-actions .status {
    color: #c8d0db;
}

.thai-company-feature-actions .button {
    flex: 0 0 auto;
}

.thai-company-feature-grid {
    margin-top: 22px;
}

.thai-company-feature-grid .thai-company-card {
    height: 100%;
    background: linear-gradient(145deg, rgba(21, 28, 39, .92), rgba(10, 14, 20, .96));
    box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}

.thai-company-feature-note {
    margin-top: 18px;
    padding: 15px 18px;
    color: #aeb9c8;
    background: rgba(245, 196, 81, .055);
    border: 1px solid rgba(245, 196, 81, .15);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.7;
}

.thai-company-feature-note strong {
    color: #f2d17a;
}

.thai-company-card {
    position: relative;
    display: flex;
    min-width: 0;
    padding: clamp(18px, 2.2vw, 28px);
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    border-color: rgba(245, 196, 81, .17);
    scroll-margin-top: 96px;
}

.thai-company-card.is-reference {
    background:
        radial-gradient(circle at 88% 12%, rgba(245, 196, 81, .13), transparent 34%),
        linear-gradient(145deg, rgba(27, 33, 42, .98), rgba(11, 15, 21, .98));
    border-color: rgba(245, 196, 81, .36);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .28);
}

.thai-company-card.is-reference::before {
    height: 4px;
    opacity: 1;
}

.thai-company-card.is-reference .thai-company-index {
    min-width: 54px;
    color: #1b1306;
    background: linear-gradient(135deg, #fff0a3, #f5c451);
    letter-spacing: .06em;
}

.thai-company-card.is-reference .thai-company-card-head .eyebrow {
    color: #f5d77b;
}

.thai-company-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, #9c6b14, #f5c451, #fff0a3);
    opacity: .8;
}

.thai-company-card-head {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.thai-company-card-head > div {
    min-width: 0;
}

.thai-company-card-head .eyebrow {
    margin: 0 0 5px;
    color: #dfb544;
    font-size: 10px;
    line-height: 1.3;
}

.thai-company-card h2 {
    margin: 0;
    color: #f5f1e6;
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1.25;
    letter-spacing: -.035em;
}

.thai-company-index {
    display: inline-flex;
    min-width: 36px;
    margin-bottom: 9px;
    padding: 4px 8px;
    align-items: center;
    justify-content: center;
    color: #17110a;
    background: linear-gradient(135deg, #ffe594, #d7951e);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.thai-company-index small {
    margin-left: 2px;
    font-size: 8px;
    font-weight: 900;
    opacity: .72;
}

.source-pill {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 10px;
    align-items: center;
    gap: 6px;
    color: #f8d875;
    background: rgba(245, 196, 81, .08);
    border: 1px solid rgba(245, 196, 81, .22);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.source-pill:hover,
.source-pill:focus-visible {
    color: #1b1306;
    background: #f5c451;
}

.thai-company-main-prices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.thai-company-main-prices > div {
    min-width: 0;
    padding: 16px 14px;
    background: rgba(5, 8, 13, .54);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
}

.thai-company-main-prices span,
.thai-company-main-prices small {
    display: block;
    color: #aeb9c8;
}

.thai-company-main-prices span {
    font-size: 13px;
    font-weight: 700;
}

.thai-company-main-prices strong {
    display: block;
    margin: 8px 0 3px;
    overflow-wrap: anywhere;
    color: #f6cf69;
    font-size: clamp(25px, 3vw, 35px);
    line-height: 1;
    letter-spacing: -.055em;
}

.thai-company-main-prices small {
    font-size: 10px;
    line-height: 1.35;
}

.thai-company-change {
    display: flex;
    min-height: 32px;
    padding: 7px 10px;
    align-items: center;
    gap: 7px;
    border-radius: 9px;
    font-size: 12px;
}

.thai-company-change span {
    color: #aeb9c8;
}

.thai-company-change strong {
    font-size: 14px;
}

.thai-company-change small {
    color: #8491a1;
}

.thai-company-change.is-up {
    background: rgba(88, 214, 141, .09);
    border: 1px solid rgba(88, 214, 141, .24);
}

.thai-company-change.is-up strong {
    color: #8ff0b4;
}

.thai-company-change.is-down {
    background: rgba(255, 125, 125, .09);
    border: 1px solid rgba(255, 125, 125, .24);
}

.thai-company-change.is-down strong {
    color: #ffaaaa;
}

.thai-company-change.is-neutral {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
}

.thai-company-change.is-neutral strong {
    color: #aeb9c8;
}

.thai-company-extras {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    gap: 9px 12px;
}

.thai-company-extras > div {
    min-width: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.thai-company-extras dt {
    overflow-wrap: anywhere;
    color: #8f9dad;
    font-size: 11px;
    line-height: 1.4;
}

.thai-company-extras dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    color: #e8edf4;
    font-size: 15px;
    font-weight: 800;
}

.thai-company-extras dd small {
    color: #8f9dad;
    font-size: 10px;
    font-weight: 600;
}

.thai-company-card-foot {
    display: flex;
    padding-top: 3px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #7f8c9d;
    font-size: 11px;
}

.thai-company-card-foot .data-note {
    color: #d2ab4b;
}

.thai-company-data-note {
    margin: 18px 0 0;
    color: #f2bd69;
    font-size: 13px;
}

.thai-company-chart-guide {
    padding-top: clamp(28px, 3.5vw, 42px);
    padding-bottom: clamp(20px, 2.5vw, 32px);
    border-top: 1px solid var(--line);
}

.thai-company-guide {
    padding-top: clamp(20px, 2.5vw, 32px);
}

.thai-company-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.thai-company-guide-grid article {
    padding: 22px;
}

.thai-company-guide-grid h3 {
    margin: 0 0 12px;
    color: #f4d37d;
    font-size: 19px;
    line-height: 1.35;
}

.thai-company-guide-grid p {
    margin: 0;
    color: #b8c2cf;
    font-size: 14px;
    line-height: 1.8;
}

.thai-company-faq {
    display: grid;
    gap: 6px;
    margin-top: 18px;
}

.thai-company-faq {
    display: grid;
    gap: 12px;
}

.thai-company-faq details {
    min-height: 0;
    padding: 0;
    background: rgba(15, 21, 30, .72);
    border: 1px solid rgba(245, 196, 81, .16);
    border-radius: 14px;
    transition: border-color .2s ease, background .2s ease;
}

.thai-company-faq details[open] {
    border-color: rgba(245, 196, 81, .32);
    background: rgba(15, 21, 30, .9);
}

.thai-company-faq summary {
    min-height: 56px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: #f3d47c;
    font-size: clamp(.92rem, 1.1vw, 1.02rem);
    font-weight: 800;
    line-height: 1.4;
    transition: color .2s ease, background .2s ease;
}

.thai-company-faq summary:hover,
.thai-company-faq summary:focus-visible {
    color: #fff0b8;
    background: rgba(245, 196, 81, .04);
}

.thai-company-faq summary::after {
    margin-left: 12px;
    font-size: 1.15rem;
}

.thai-company-faq p {
    max-width: 900px;
    margin: 0;
    padding: 4px 20px 18px;
    color: #c7d0dd;
    font-size: clamp(.88rem, 1vw, .95rem);
    line-height: 1.7;
}

@media screen and (max-width: 900px) {
    .thai-company-guide-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 760px) {
    .thai-company-grid {
        grid-template-columns: 1fr;
    }

    .thai-company-feature-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .thai-company-card-head {
        flex-direction: column;
    }

    .source-pill {
        align-self: flex-start;
    }
}

@media screen and (max-width: 460px) {
    .thai-company-main-prices,
    .thai-company-extras {
        grid-template-columns: 1fr;
    }

    .thai-company-main-prices strong {
        font-size: 29px;
    }

    .thai-company-faq {
        gap: 8px;
    }

    .thai-company-faq summary {
        min-height: 50px;
        padding: 12px 14px;
        font-size: .88rem;
        line-height: 1.35;
    }

    .thai-company-faq p {
        padding: 2px 14px 14px;
        font-size: .82rem;
        line-height: 1.6;
    }
}

/* Mobile page opening: start with the section eyebrow, without breadcrumbs. */
@media screen and (max-width: 760px) {
    #main-content > .container > .breadcrumb {
        display: none;
    }

    #main-content > .container + #gold-price,
    #main-content > .container + #gold-history,
    #main-content .pawn-page-hero,
    #main-content .thai-company-hero {
        padding-top: max(12px, env(safe-area-inset-top));
    }

    #gold-price > .container > .section-heading,
    #gold-history > .container > .history-page-heading,
    .pawn-page-hero > .container > .section-heading,
    .thai-company-hero > .container > .section-heading {
        padding-right: 64px;
    }
}

/* กราฟราคาทองคำแท่ง ขายออก ย้อนหลัง 30 วัน บนการ์ด 10 บริษัท และ GTA */
.thai-company-history-chart {
    margin: 4px 0 2px;
    padding: 11px 12px 9px;
    background: rgba(5, 8, 13, .54);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
}

.thai-company-card.is-reference .thai-company-history-chart {
    background: rgba(5, 8, 13, .68);
    border-color: rgba(245, 196, 81, .16);
}

.thai-company-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #aeb9c8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.thai-company-history-header span:last-child {
    color: #8997a8;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.thai-company-history-plot {
    position: relative;
    min-height: 88px;
    margin-top: 4px;
}

.thai-company-history-plot svg {
    display: block;
    width: 100%;
    height: 88px;
    overflow: visible;
}

.thai-company-history-gridline {
    stroke: rgba(255, 255, 255, .08);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.thai-company-history-area {
    fill: #f5c451;
    opacity: .09;
}

.thai-company-history-line {
    fill: none;
    stroke: #f5c451;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    vector-effect: non-scaling-stroke;
}

.thai-company-history-hitarea {
    fill: transparent;
    stroke: transparent;
    pointer-events: all;
}

.thai-company-history-point {
    fill: #080d13;
    stroke: #f5c451;
    stroke-width: 1.7;
    pointer-events: none;
    vector-effect: non-scaling-stroke;
}

.thai-company-history-point-group:focus {
    outline: none;
}

.thai-company-history-point-group:hover .thai-company-history-point,
.thai-company-history-point-group:focus .thai-company-history-point,
.thai-company-history-point-group.is-active .thai-company-history-point {
    fill: #f5c451;
}

.thai-company-history-tooltip {
    position: absolute;
    z-index: 5;
    max-width: min(250px, calc(100% - 8px));
    padding: 7px 10px;
    border: 1px solid rgba(245, 196, 81, .3);
    border-radius: 8px;
    background: #0f151f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    transform: translate(-50%, calc(-100% - 9px));
}

.thai-company-history-tooltip[data-align="start"] {
    transform: translate(-5%, calc(-100% - 9px));
}

.thai-company-history-tooltip[data-align="end"] {
    transform: translate(-95%, calc(-100% - 9px));
}

.thai-company-history-tooltip[hidden] {
    display: none;
}

.thai-company-history-date {
    fill: #7e8c9e;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 9px;
    font-weight: 650;
}

.thai-company-history-note {
    margin: 0;
    color: #728091;
    font-size: 9px;
    line-height: 1.45;
}

.thai-company-history-empty {
    display: grid;
    min-height: 88px;
    margin: 0;
    place-items: center;
    color: #7f8b9b;
    font-size: 10px;
    text-align: center;
}

/* กราฟวงเงินรับจำนำสูงสุดต่อทองรูปพรรณหนัก 1 บาท ย้อนหลัง 30 วัน บนการ์ดราคาจำนำทอง */
.pawn-rate-card .thai-company-history-chart {
    margin: 14px 0 16px;
    padding: 14px 16px 12px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.85);
}

.pawn-rate-card .thai-company-history-chart .thai-company-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.pawn-rate-card .thai-company-history-chart .thai-company-history-header span:last-child {
    color: #8de3ff;
    font-size: 11px;
    font-weight: 700;
    background: rgba(141, 227, 255, .1);
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(141, 227, 255, .2);
    text-transform: none;
}

.pawn-rate-card .thai-company-history-chart .thai-company-history-note {
    margin-top: 6px;
    color: #8997a8;
    font-size: 10px;
}

/* ส่วนคำอธิบายและวิธีดู/ใช้งานกราฟวงเงินรับจำนำย้อนหลัง 30 วัน */
.pawn-chart-guide-section {
    margin-top: 32px;
    margin-bottom: 32px;
    padding-top: 32px;
    padding-bottom: 8px;
    border-top: 1px solid var(--line);
}

.pawn-chart-guide-section .section-heading {
    margin-bottom: 22px;
}

.pawn-chart-guide-section .section-heading h2 {
    color: #fff4ce;
    font-size: clamp(1.45rem, 2.5vw, 2.1rem);
    letter-spacing: -.03em;
}

.pawn-chart-guide-grid {
    margin-top: 20px;
}

/* Master Price Ticker Bar */
.master-price-ticker-bar {
    background: linear-gradient(90deg, rgba(16, 22, 32, .95), rgba(20, 28, 40, .95));
    border-bottom: 1px solid rgba(245, 196, 81, .2);
    padding: 8px 0;
    font-size: 0.85rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.master-price-ticker-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-start;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .04);
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .08);
}
.ticker-label {
    color: var(--muted);
    font-weight: 500;
}
.ticker-val {
    color: var(--gold);
    font-weight: 800;
}

/* Retail Oil Summary Section */
.oil-retail-summary-section {
    padding-top: 32px;
    padding-bottom: 32px;
}
.oil-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.oil-summary-card {
    padding: 20px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.oil-summary-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.oil-summary-card-head h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}
.oil-brand-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: .05em;
}
.oil-brand-badge.ptt { background: #0056b3; color: #fff; }
.oil-brand-badge.bcp { background: #1e7e34; color: #fff; }
.oil-brand-badge.shell { background: #b02a37; color: #fff; }
.oil-price-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.oil-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 10px;
    background: rgba(255, 255, 255, .03);
    border-radius: 8px;
    font-size: 0.9rem;
}
.oil-price-row strong {
    color: var(--cyan);
    font-size: 1.05rem;
}
.oil-summary-foot {
    font-size: 0.75rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 8px;
}
.oil-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

/* ==========================================================================
   Retail Fuel Provider Cards Grid & 30-Day SVG Chart
   ========================================================================== */
.provider-cards-shell {
    padding: 20px;
    background: #0b1019;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.provider-cards-shell .table-toolbar {
    margin: -20px -20px 20px -20px;
    padding: 16px 20px;
    background: #111824;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius) var(--radius) 0 0;
    color: #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.provider-cards-shell .table-toolbar strong {
    font-size: .94rem;
    color: #f8fafc;
}

.provider-cards-shell .table-toolbar span {
    color: #94a3b8;
    font-size: .8rem;
}

.provider-cards-shell .table-foot {
    margin: 20px -20px -20px -20px;
    padding: 14px 20px;
    background: #111824;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 var(--radius) var(--radius);
    color: #94a3b8;
    font-size: .78rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.provider-cards-shell .table-foot a {
    color: #38bdf8;
    text-decoration: none;
}

.provider-cards-shell .table-foot a:hover {
    text-decoration: underline;
}

.provider-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.provider-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    color: var(--white);
    background: linear-gradient(160deg, #101622 0%, #0a0f19 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.provider-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.provider-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.provider-brand-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.provider-card-logo {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.provider-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.provider-badge-ptt { background: #0066cc; color: #ffffff; }
.provider-badge-bcp { background: #16a34a; color: #ffffff; }
.provider-badge-shell { background: #dc2626; color: #ffffff; }
.provider-badge-caltex { background: #ea580c; color: #ffffff; }
.provider-badge-irpc { background: #0891b2; color: #ffffff; }
.provider-badge-pt { background: #15803d; color: #ffffff; }
.provider-badge-susco { background: #ca8a04; color: #ffffff; }
.provider-badge-pure { background: #2563eb; color: #ffffff; }
.provider-badge-sinopec-susco { background: #9333ea; color: #ffffff; }
.provider-badge-default { background: #475569; color: #ffffff; }

.provider-card-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.provider-card-body {
    flex: 1 1 auto;
}

.provider-fuel-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.provider-fuel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 11px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.provider-fuel-item:hover {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.1);
}

.fuel-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
}

.fuel-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.fuel-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #9cffee;
    font-variant-numeric: tabular-nums;
}

.fuel-unit {
    font-size: 0.76rem;
    font-weight: 500;
    color: #94a3b8;
}

.provider-card-footer {
    margin-top: 14px;
    padding-top: 10px;
}

.provider-effective-date {
    margin: 0;
    font-size: 0.78rem;
    color: #8fa0b5;
    font-weight: 500;
    line-height: 1.4;
}

.provider-chart-box {
    position: relative;
    margin: 14px 0 6px 0;
    padding: 12px 14px 10px 14px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.provider-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.provider-chart-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    padding: 3px;
    border-radius: 8px;
}

.chart-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #94a3b8;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.chart-tab-btn:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.08);
}

.chart-tab-btn.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.tab-indicator {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.tab-indicator.dot-g95 { background: #9cffee; }
.tab-indicator.dot-g91 { background: #34d399; }
.tab-indicator.dot-b7 { background: #f59e0b; }

.chart-day-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 6px;
}

.provider-chart-plot {
    position: relative;
    width: 100%;
    height: 88px;
}

.provider-chart-plot svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.provider-chart-gridline {
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 1;
    stroke-dasharray: 3 3;
}

.provider-chart-area {
    fill: url(#chart-gradient-g95);
    opacity: 0.25;
}
.provider-chart-box[data-active-fuel="GASOHOL_91"] .provider-chart-area {
    fill: url(#chart-gradient-g91);
}
.provider-chart-box[data-active-fuel="DIESEL_B7"] .provider-chart-area {
    fill: url(#chart-gradient-b7);
}

.provider-chart-line {
    fill: none;
    stroke: #9cffee;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.provider-chart-box[data-active-fuel="GASOHOL_91"] .provider-chart-line {
    stroke: #34d399;
}
.provider-chart-box[data-active-fuel="DIESEL_B7"] .provider-chart-line {
    stroke: #f59e0b;
}

.provider-chart-point-group {
    outline: none;
    cursor: pointer;
}

.provider-chart-hitarea {
    fill: transparent;
    stroke: transparent;
}

.provider-chart-point {
    fill: #9cffee;
    stroke: #0f172a;
    stroke-width: 1.5;
    transition: transform 0.15s ease, r 0.15s ease;
}
.provider-chart-box[data-active-fuel="GASOHOL_91"] .provider-chart-point {
    fill: #34d399;
}
.provider-chart-box[data-active-fuel="DIESEL_B7"] .provider-chart-point {
    fill: #f59e0b;
}

.provider-chart-point-group:hover .provider-chart-point,
.provider-chart-point-group:focus .provider-chart-point,
.provider-chart-point-group.is-active .provider-chart-point {
    r: 4.5;
    stroke-width: 2;
}

.provider-chart-date-label {
    font-size: 9px;
    fill: #64748b;
    font-weight: 500;
}

.provider-chart-tooltip {
    position: absolute;
    z-index: 10;
    transform: translate(-50%, -100%) translateY(-8px);
    padding: 5px 9px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #f8fafc;
    background: #090d16;
    border: 1px solid rgba(156, 255, 238, 0.4);
    border-radius: 7px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    pointer-events: none;
}
.provider-chart-box[data-active-fuel="GASOHOL_91"] .provider-chart-tooltip {
    border-color: rgba(52, 211, 153, 0.4);
}
.provider-chart-box[data-active-fuel="DIESEL_B7"] .provider-chart-tooltip {
    border-color: rgba(245, 158, 11, 0.4);
}
.provider-chart-tooltip[data-align="start"] { transform: translate(0, -100%) translateY(-8px); }
.provider-chart-tooltip[data-align="end"] { transform: translate(-100%, -100%) translateY(-8px); }

.provider-chart-note {
    margin: 6px 0 0 0;
    font-size: 0.73rem;
    color: #64748b;
    text-align: center;
}

.provider-chart-empty {
    margin: 0;
    padding: 30px 0;
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
}

@media (max-width: 960px) {
    .provider-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .provider-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .provider-card {
        padding: 16px;
    }

    .provider-fuel-item {
        padding: 9px 12px;
    }

    .fuel-name {
        font-size: 0.86rem;
    }

    .fuel-price {
        font-size: 1.08rem;
    }
}

/* ==========================================================================
   Featured Commodities Cards & 7-Day SVG Charts (Homepage)
   ========================================================================== */
.commodity-featured-shell {
    margin-top: 24px;
    padding: 20px;
    background: #0b1019;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.commodity-featured-shell .table-toolbar {
    margin: -20px -20px 20px -20px;
    padding: 16px 20px;
    background: #111824;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius) var(--radius) 0 0;
    color: #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.commodity-featured-shell .table-toolbar strong {
    font-size: .94rem;
    color: #f8fafc;
}

.commodity-featured-shell .table-toolbar span {
    color: #94a3b8;
    font-size: .8rem;
}

.commodity-featured-shell .table-foot {
    margin: 20px -20px -20px -20px;
    padding: 14px 20px;
    background: #111824;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 var(--radius) var(--radius);
    color: #94a3b8;
    font-size: .78rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.commodity-featured-shell .table-foot a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 700;
}

.commodity-featured-shell .table-foot a:hover {
    text-decoration: underline;
}

.commodity-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.commodity-card {
    position: relative;
    display: flex;
    min-width: 0;
    padding: 17px;
    flex-direction: column;
    overflow: clip;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: linear-gradient(155deg, rgba(19, 28, 40, .96), rgba(10, 15, 22, .99));
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.commodity-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--card-accent), transparent 72%);
}

.commodity-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, .16);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .32);
}

.commodity-card .card-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
}

.commodity-card .card-index {
    padding-top: 3px;
    color: var(--card-accent);
    font: 800 10px/1 ui-monospace, monospace;
    letter-spacing: .06em;
}

.commodity-card .card-title {
    min-width: 0;
}

.commodity-card .card-category {
    margin: 0 0 2px;
    color: var(--card-accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.commodity-card .card-title h3 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 1.15rem;
    line-height: 1.2;
    letter-spacing: -.025em;
    font-weight: 800;
    color: #f8fafc;
}

.commodity-card .card-title h3 span {
    display: block;
    margin-top: 2px;
    color: #8e9bac;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .01em;
}

.commodity-card .card-symbol {
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #8a97a7;
    font: 750 9px/1 ui-monospace, monospace;
    background: rgba(255, 255, 255, 0.03);
}

.commodity-card .price-block {
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 13px;
    background: rgba(4, 7, 11, .38);
}

.commodity-card .price-label {
    margin: 0;
    color: #738092;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.commodity-card .price-value {
    display: flex;
    margin: 4px 0 0;
    align-items: baseline;
    gap: 4px;
    color: #fff;
    font-variant-numeric: tabular-nums;
    font-weight: 820;
    line-height: 1;
    letter-spacing: -.035em;
}

.commodity-card .price-value > span {
    color: var(--card-accent);
    font-size: 14px;
}

.commodity-card .price-value data {
    overflow-wrap: anywhere;
    font-size: 1.55rem;
}

.commodity-card .price-unit {
    margin: 6px 0 0;
    color: #7d8999;
    font: 650 9px/1.3 ui-monospace, monospace;
}

.commodity-card .change-grid {
    display: grid;
    margin: 10px 0 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.commodity-card .change-grid > div {
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    background: rgba(255, 255, 255, .018);
}

.commodity-card .change-grid dt {
    color: #748193;
    font-size: 9px;
}

.commodity-card .change-grid dd {
    margin: 3px 0 0;
    font: 800 13px/1.3 ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
}

.commodity-card .is-positive { color: #50d890; }
.commodity-card .is-negative { color: #ff6d78; }
.commodity-card .is-neutral { color: #9da9b8; }

.commodity-card .commodity-history-chart {
    margin: 12px 0 10px;
    padding: 11px 12px 9px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 13px;
    background: rgba(4, 7, 11, .38);
}

.commodity-card .commodity-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #aeb9c7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.commodity-card .commodity-history-header span:last-child {
    color: #6f7d8e;
    font: 650 9px/1.2 ui-monospace, monospace;
    letter-spacing: 0;
    text-transform: none;
}

.commodity-card .commodity-history-plot {
    position: relative;
    min-height: 88px;
    margin-top: 4px;
}

.commodity-card .commodity-history-plot svg {
    display: block;
    width: 100%;
    height: 88px;
    overflow: visible;
}

.commodity-card .commodity-history-gridline {
    stroke: rgba(255, 255, 255, .09);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.commodity-card .commodity-history-area {
    fill: var(--card-accent);
    opacity: .12;
}

.commodity-card .commodity-history-line {
    fill: none;
    stroke: var(--card-accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    vector-effect: non-scaling-stroke;
}

.commodity-card .commodity-history-hitarea {
    fill: transparent;
    stroke: transparent;
    pointer-events: all;
}

.commodity-card .commodity-history-point {
    fill: #080d13;
    stroke: var(--card-accent);
    stroke-width: 1.7;
    pointer-events: none;
    vector-effect: non-scaling-stroke;
}

.commodity-card .commodity-history-point-group:focus { outline: none; }
.commodity-card .commodity-history-point-group:hover .commodity-history-point,
.commodity-card .commodity-history-point-group:focus .commodity-history-point,
.commodity-card .commodity-history-point-group.is-active .commodity-history-point {
    fill: var(--card-accent);
    r: 4.5;
}

.commodity-card .commodity-history-tooltip {
    position: absolute;
    z-index: 10;
    max-width: min(250px, calc(100% - 8px));
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 7px;
    background: #090d16;
    color: #f8fafc;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, calc(-100% - 9px));
}

.commodity-card .commodity-history-tooltip[data-align="start"] { transform: translate(-5%, calc(-100% - 9px)); }
.commodity-card .commodity-history-tooltip[data-align="end"] { transform: translate(-95%, calc(-100% - 9px)); }
.commodity-card .commodity-history-tooltip[hidden] { display: none; }
.commodity-card .commodity-history-date { fill: #667385; font: 650 8px/1 ui-monospace, monospace; }
.commodity-card .commodity-history-note { margin: 4px 0 0 0; color: #657285; font-size: 8px; line-height: 1.45; text-align: center; }
.commodity-card .commodity-history-empty { display: grid; min-height: 88px; margin: 0; place-items: center; color: #7f8b9b; font-size: 9px; text-align: center; }

.commodity-card .card-knowledge {
    margin: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    background: rgba(255, 255, 255, .018);
}

.commodity-card .card-knowledge summary {
    display: flex;
    min-height: 36px;
    padding: 8px 11px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #aeb9c7;
    cursor: pointer;
    font-size: 10px;
    font-weight: 750;
    list-style: none;
}

.commodity-card .card-knowledge summary::-webkit-details-marker { display: none; }
.commodity-card .card-knowledge summary::after {
    color: var(--card-accent);
    content: "+";
    font: 800 14px/1 ui-monospace, monospace;
}

.commodity-card .card-knowledge[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.commodity-card .card-knowledge[open] summary::after {
    content: "−";
}

.commodity-card .card-knowledge-body {
    display: grid;
    padding: 3px 11px 10px;
    gap: 0;
}

.commodity-card .card-knowledge-body p {
    margin: 0;
    padding: 7px 0;
    color: #929fb0;
    font-size: 10px;
    line-height: 1.6;
}

.commodity-card .card-knowledge-body p + p {
    border-top: 1px solid rgba(255, 255, 255, .055);
}

.commodity-card .card-knowledge-body strong {
    display: block;
    margin-bottom: 2px;
    color: #d5dbe4;
    font-size: 9px;
    letter-spacing: .04em;
}

.commodity-card .card-knowledge-body a {
    color: #38bdf8;
    text-decoration: none;
}

.commodity-card .card-knowledge-body a:hover {
    text-decoration: underline;
}

.commodity-card .card-footer {
    display: grid;
    margin-top: auto;
    padding-top: 10px;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.commodity-card .card-footer > span {
    color: #647183;
    font-size: 8px;
    line-height: 1.45;
}

.commodity-card .card-footer a {
    color: #aeb8c6;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.commodity-card .card-footer a:hover {
    color: var(--card-accent);
}

@media (max-width: 1100px) {
    .commodity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .commodity-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .commodity-card {
        padding: 14px;
    }
}

/* ==========================================================================
   Featured Gas Prices (LPG & NGV) on Homepage
   ========================================================================== */

.gas-featured-shell {
    margin-top: 24px;
}

.gas-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 20px;
    background: rgba(4, 9, 13, 0.4);
}

.gas-price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 3.2vw, 32px);
    background: radial-gradient(circle at 85% 10%, rgba(91, 225, 185, 0.08), transparent 45%),
                linear-gradient(165deg, rgba(16, 37, 44, 0.85) 0%, rgba(7, 21, 26, 0.95) 100%);
    border: 1px solid rgba(174, 222, 218, 0.16);
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gas-price-card:hover {
    transform: translateY(-2px);
    border-color: rgba(91, 225, 185, 0.35);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.gas-price-card.lpg-summary-card {
    background: radial-gradient(circle at 85% 10%, rgba(183, 222, 75, 0.08), transparent 45%),
                linear-gradient(165deg, rgba(10, 32, 28, 0.9) 0%, rgba(5, 18, 16, 0.96) 100%);
    border-color: rgba(141, 235, 220, 0.16);
}

.gas-price-card.lpg-summary-card:hover {
    border-color: rgba(183, 222, 75, 0.35);
}

.gas-card-header {
    margin-bottom: 8px;
}

.gas-card-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.gas-eyebrow-line {
    display: inline-block;
    width: 20px;
    height: 2px;
    background: #5be1b9;
    border-radius: 2px;
}

.lpg-summary-card .gas-eyebrow-line {
    background: #5be1b9;
}

.gas-eyebrow-text {
    color: #5be1b9;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gas-card-title {
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
}

.gas-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.gas-card-title a:hover {
    color: #5be1b9;
}

.lpg-summary-card .gas-card-title a:hover {
    color: #b7de4b;
}

.gas-card-subtitle {
    margin: 0;
    color: #a8cbd5;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.gas-hero-main-price {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin: 14px 0 6px;
}

.gas-price-highlight {
    color: #a3e635;
    font-size: clamp(3.2rem, 5.8vw, 5.6rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 30px rgba(163, 230, 53, 0.15);
}

.gas-price-unit {
    padding-bottom: 8px;
    color: #d7e7ea;
    font-size: 0.95rem;
    font-weight: 750;
    white-space: nowrap;
}

.gas-hero-period {
    margin: 2px 0 8px;
    color: #73d9b8;
    font-size: 0.84rem;
    font-weight: 700;
}

.gas-subprice-grid {
    margin: 16px 0 0;
    padding: 16px 0;
    border-block: 1px solid rgba(255, 255, 255, 0.09);
}

.gas-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px clamp(16px, 2.5vw, 32px);
}

.gas-grid-1x2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px clamp(16px, 2.5vw, 32px);
}

.gas-grid-1x2 > .gas-subprice-item:first-child {
    border-right: 1px solid rgba(174, 222, 218, 0.14);
    padding-right: clamp(12px, 2vw, 24px);
}

.gas-subprice-item {
    min-width: 0;
}

.gas-subprice-item dt {
    color: #e7eef2;
    font-size: 0.84rem;
    font-weight: 700;
}

.gas-subprice-item dd {
    margin: 4px 0 0;
    color: #f7fafc;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.gas-subprice-item.is-highlight dd {
    color: #a3e635;
    text-shadow: 0 0 20px rgba(163, 230, 53, 0.15);
}

.gas-subprice-item small {
    display: inline-block;
    margin-top: 2px;
    color: #91aab5;
    font-size: 0.72rem;
    font-weight: 650;
}

.gas-grid-1x2 .gas-subprice-item dd small {
    font-size: 0.76rem;
    font-weight: 700;
    color: #a9c2c0;
    margin-left: 4px;
}

.gas-card-footer {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding-top: 14px;
}

.gas-card-note {
    margin: 0 0 10px;
    color: #8fa8b2;
    font-size: 0.78rem;
    line-height: 1.65;
}

.gas-card-note strong {
    color: #eefaf8;
}

.gas-card-note a {
    color: #5be1b9;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gas-card-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 4px;
}

.gas-card-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5be1b9;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

.lpg-summary-card .gas-card-link a {
    color: #b7de4b;
}

.gas-card-link a:hover {
    transform: translateX(2px);
    text-decoration: underline;
}

@media (max-width: 860px) {
    .gas-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 14px;
    }

    .gas-grid-1x2 > .gas-subprice-item:first-child {
        border-right: none;
        padding-right: 0;
    }
}

/* ==========================================================================
   Social Share Bar Component
   ========================================================================== */

.social-share-bar {
    display: flex;
    margin: 14px 0 16px;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.share-label {
    color: #9aa8b8;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
}

.share-buttons-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
}

.share-btn {
    display: inline-flex;
    height: 30px;
    padding: 0 11px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(13, 19, 28, .75);
    color: #c9d5e3;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all .2s ease;
    user-select: none;
    -webkit-user-select: none;
    line-height: 1;
}

.share-btn svg {
    flex-shrink: 0;
    transition: transform .2s ease;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}

.share-btn:hover svg {
    transform: scale(1.08);
}

/* Facebook Button */
.share-btn-fb svg { color: #1877f2; }
.share-btn-fb:hover {
    border-color: rgba(24, 119, 242, .6);
    background: rgba(24, 119, 242, .14);
    color: #fff;
}

/* Messenger Button */
.share-btn-msg svg { color: #0084ff; }
.share-btn-msg:hover {
    border-color: rgba(0, 132, 255, .6);
    background: rgba(0, 132, 255, .14);
    color: #fff;
}

/* X (Twitter) Button */
.share-btn-x svg { color: #f0f3f6; }
.share-btn-x:hover {
    border-color: rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

/* Line Button */
.share-btn-line svg { color: #06c755; }
.share-btn-line:hover {
    border-color: rgba(6, 199, 85, .6);
    background: rgba(6, 199, 85, .14);
    color: #fff;
}

/* Copy Link Button */
.share-btn-copy svg { color: #ff9f52; }
.share-btn-copy:hover {
    border-color: rgba(255, 159, 82, .6);
    background: rgba(255, 159, 82, .14);
    color: #fff;
}
.share-btn-copy.is-copied {
    border-color: rgba(6, 199, 85, .8);
    background: rgba(6, 199, 85, .2);
    color: #38ef7d;
}
.share-btn-copy.is-copied svg {
    color: #38ef7d;
}

.price-shell .social-share-bar {
    margin: 14px 22px;
    padding: 12px 18px;
    background: rgba(14, 20, 32, 0.82);
    border: 1px solid rgba(245, 196, 81, 0.22);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

@media (max-width: 640px) {
    .price-shell .social-share-bar {
        margin: 12px 16px;
        padding: 10px 14px;
        gap: 8px 10px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .price-shell .social-share-bar .share-btn {
        height: 30px;
        padding: 0 10px;
        font-size: 12px;
        gap: 6px;
    }
    .price-shell .social-share-bar .share-label {
        font-size: 13px;
    }
}

.thai-company-page-heading .social-share-bar {
    justify-content: center;
    margin-top: 18px;
    margin-bottom: 16px;
}

.pawn-page-hero .social-share-bar {
    margin-top: 18px;
    margin-bottom: 8px;
}

@media (max-width: 640px) {
    .pawn-page-hero .social-share-bar {
        margin-top: 14px;
        margin-bottom: 6px;
    }
}

/* ==========================================================================
   Pawn Comparison Matrix Table (8 Sources Comparison)
   ========================================================================== */
.pawn-matrix-card {
    border-radius: 18px;
    padding: 18px 20px;
}

.pawn-matrix-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 10px;
}

.pawn-matrix-table {
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
    font-size: 0.92rem;
    color: #cbd5e1;
}

.pawn-matrix-table th,
.pawn-matrix-table td {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

.pawn-matrix-table th {
    padding: 12px 14px;
    background: rgba(10, 15, 22, 0.88);
    color: #f4d37d;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(245, 196, 81, 0.2);
}

.pawn-matrix-table td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.pawn-matrix-table tr.is-current {
    background: rgba(245, 196, 81, 0.08);
    font-weight: 700;
}

.pawn-matrix-table tr:last-child td {
    border-bottom: none;
}

.pawn-matrix-table .col-badge {
    width: 54px;
    text-align: center;
}

.pawn-matrix-table .col-name {
    text-align: left;
    min-width: 150px;
}

.pawn-matrix-table .col-rate {
    text-align: right;
    min-width: 130px;
    font-variant-numeric: tabular-nums;
}

.pawn-matrix-table .col-date {
    text-align: center;
    min-width: 120px;
    color: #94a3b8;
    font-size: 0.86rem;
}

.pawn-matrix-table .col-action {
    text-align: center;
    min-width: 110px;
}

.pawn-matrix-table .matrix-badge {
    display: inline-block;
    min-width: 26px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.pawn-matrix-table .matrix-current-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    background: rgba(245, 196, 81, 0.18);
    border: 1px solid rgba(245, 196, 81, 0.4);
    color: #f5c451;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    vertical-align: middle;
}

.pawn-matrix-table .matrix-rate-val {
    font-size: 1.05rem;
    font-weight: 800;
}

.pawn-matrix-table .matrix-action-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(141, 227, 255, 0.1);
    border: 1px solid rgba(141, 227, 255, 0.25);
    border-radius: 6px;
    color: #8de3ff;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pawn-matrix-table .matrix-action-link:hover {
    background: rgba(141, 227, 255, 0.2);
    border-color: rgba(141, 227, 255, 0.5);
    color: #fff;
}

@media (max-width: 640px) {
    .pawn-matrix-card {
        padding: 14px 12px;
    }
}

/* Quick Price Dashboard (Master Gateway) */
.quick-price-section {
    padding-top: 14px;
    padding-bottom: 18px;
}
.quick-price-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.quick-card {
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
    border-radius: 14px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.quick-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 183, 37, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.quick-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.quick-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.quick-badge.gold { background: rgba(245, 183, 37, 0.15); color: #f5b725; border: 1px solid rgba(245, 183, 37, 0.3); }
.quick-badge.oil { background: rgba(88, 214, 141, 0.15); color: #58d68d; border: 1px solid rgba(88, 214, 141, 0.3); }
.quick-badge.diesel { background: rgba(52, 152, 219, 0.15); color: #5dade2; border: 1px solid rgba(52, 152, 219, 0.3); }
.quick-badge.pawn { background: rgba(235, 152, 78, 0.15); color: #f39c12; border: 1px solid rgba(235, 152, 78, 0.3); }
.quick-sub {
    font-size: 0.75rem;
    color: var(--muted, #8b949e);
}
.quick-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 6px;
}
.quick-card-val {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
}
.quick-card-val .val {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.quick-card-val .unit {
    font-size: 0.8rem;
    color: var(--muted, #8b949e);
}
.quick-card-foot {
    margin-top: auto;
    font-size: 0.76rem;
    color: var(--muted, #8b949e);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.quick-card-foot .arr {
    transition: transform 0.2s ease;
}
.quick-card:hover .quick-card-foot .arr {
    transform: translateX(4px);
    color: #f5b725;
}
@media (max-width: 960px) {
    .quick-price-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
@media (max-width: 480px) {
    .quick-price-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .quick-card {
        padding: 12px 10px;
    }
    .quick-card-val .val {
        font-size: 1.25rem;
    }
    .quick-card-title {
        font-size: 0.85rem;
    }
}

/* Live 10-Company Gold Comparator Highlights */
.company-comparator-highlights {
    margin: 20px 0 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(22, 28, 40, 0.95), rgba(12, 16, 23, 0.98));
    border: 1px solid rgba(245, 196, 81, 0.35);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.comparator-highlights-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.comparator-icon {
    font-size: 1.5rem;
}
.comparator-highlights-header h3 {
    margin: 0;
    font-size: 1.18rem;
    color: #ffd978;
    font-weight: 700;
}
.comparator-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.comparator-highlight-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 14px;
    position: relative;
}
.comparator-highlight-card.is-buy {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.35);
}
.comparator-highlight-card.is-sell {
    background: rgba(245, 196, 81, 0.08);
    border: 1px solid rgba(245, 196, 81, 0.35);
}
.hl-badge {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.is-buy .hl-badge {
    background: #10b981;
    color: #062b1b;
}
.is-sell .hl-badge {
    background: #f5c451;
    color: #2b1d04;
}
.hl-name {
    font-size: 1.15rem;
    color: #fff;
    font-weight: 700;
}
.hl-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.is-buy .hl-price {
    color: #6ee7b7;
}
.is-sell .hl-price {
    color: #ffd978;
}
.hl-diff {
    font-size: 0.85rem;
    color: #9ca8b8;
}
.hl-link {
    margin-top: 6px;
    font-size: 0.82rem;
    color: #62d7ff;
    text-decoration: none;
    font-weight: 600;
}
.hl-link:hover {
    text-decoration: underline;
}

/* Card badges */
.company-best-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 8px;
    width: fit-content;
}
.company-best-badge.is-best-buy {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(52, 211, 153, 0.5);
    color: #6ee7b7;
}
.company-best-badge.is-best-sell {
    background: rgba(245, 196, 81, 0.2);
    border: 1px solid rgba(245, 196, 81, 0.5);
    color: #ffd978;
}

/* Thai Company & Gold Purity Footer Share Section (Tight & Balanced Spacing) */
.thai-company-footer-share-section,
.gp-footer-share-section {
    padding-top: 0;
    padding-bottom: 1.25rem;
    margin-top: -12px;
}

.thai-company-footer-share-section .social-share-bar,
.gp-footer-share-section .social-share-bar {
    margin: 0;
    justify-content: flex-start;
}

@media (max-width: 640px) {
    .thai-company-footer-share-section,
    .gp-footer-share-section {
        padding-top: 0;
        padding-bottom: 1rem;
        margin-top: -8px;
    }
}




