:root {
    color-scheme: dark;
    --bg: #070a0f;
    --bg-soft: #0b1017;
    --panel: #101722;
    --panel-2: #131c28;
    --text: #f2f5f8;
    --muted: #94a1b2;
    --muted-2: #bdc6d2;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);
    --accent: #ff9950;
    --accent-soft: rgba(255, 153, 80, .12);
    --positive: #50d890;
    --negative: #ff6d78;
    --neutral: #9da9b8;
    --max: 1380px;
    --radius: 18px;
    --shadow: 0 22px 70px rgba(0, 0, 0, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
    min-width: 320px;
    margin: 0;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 125, 55, .08), transparent 28rem),
        radial-gradient(circle at 88% 18%, rgba(61, 207, 189, .05), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
code { color: #ffd2ae; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; }

.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.section { padding: clamp(36px, 3vw, 46px) 0 clamp(76px, 8vw, 118px); }
.skip-link { position: fixed; z-index: 9999; top: 10px; left: 10px; padding: 10px 14px; border-radius: 9px; background: #fff; color: #000; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(255, 153, 80, .65); outline-offset: 3px; }

.site-header {
    position: static;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 10, 15, .88);
    backdrop-filter: blur(18px);
}

/* Keep every label and heading crisp without typographic shadow effects. */
body, body * {
    text-shadow: none !important;
}
.header-inner { position: relative; display: flex; width: min(calc(100% - 48px), var(--max)); min-height: 72px; margin-inline: auto; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; text-decoration: none; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: linear-gradient(145deg, #ff9d4e, #ff6d47); box-shadow: 0 9px 24px rgba(255,112,63,.2); }
.brand-mark img { width: 20px; height: 20px; }
.brand-name { font-size: 15px; letter-spacing: -.01em; }
.site-header .brand small { display: none; }
.primary-nav { display: flex; align-items: center; gap: clamp(15px, 2vw, 28px); font-size: .92rem; }
.primary-nav a { position: relative; color: #cfd7e3; font-size: inherit; font-weight: 400; line-height: 1.35; text-decoration: none; }
.primary-nav a::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; content: ""; background: var(--accent); transform: scaleX(0); transition: transform .2s ease; }
.primary-nav a:hover { color: #fff; }
.primary-nav a:hover::after { transform: scaleX(1); }
.menu-button { display: none; align-items: center; gap: 8px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.menu-lines { position: relative; width: 19px; height: 13px; border-block: 2px solid currentColor; }
.menu-lines::after { position: absolute; top: 4px; left: 0; width: 100%; height: 2px; content: ""; background: currentColor; }

.breadcrumbs { padding-top: 22px; }
.breadcrumbs ol { display: flex; margin: 0; padding: 0; gap: 9px; color: #d58e62; font-size: 11px; list-style: none; }
.breadcrumbs li + li::before { margin-right: 9px; content: "/"; color: rgba(255, 153, 80, .52); }
.breadcrumbs a { color: #ffb276; font-weight: 650; text-decoration: none; transition: color .2s ease; }
.breadcrumbs a:hover { color: #ffd2b1; }

.hero { position: relative; overflow: clip; padding: clamp(24px, 2.5vw, 38px) 0 clamp(14px, 1.4vw, 20px); }
.hero-glow { position: absolute; top: -25%; left: -12%; width: 58vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 136, 62, .13), transparent 66%); filter: blur(18px); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 0; }
.eyebrow, .section-kicker { display: flex; margin: 0 0 17px; align-items: center; gap: 10px; color: #ffb276; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 1px; background: var(--accent); }
.hero h1 { max-width: 900px; margin: 0; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.13; letter-spacing: -.045em; }
.hero h1 em { color: transparent; font-style: normal; background: linear-gradient(100deg, #fff0dd 3%, #ffad70 52%, #ff774d); background-clip: text; -webkit-background-clip: text; }
.hero-lead { max-width: 780px; margin: 26px 0 0; color: #bac4d1; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.8; }
.hero-actions { display: flex; margin-top: 32px; flex-wrap: wrap; gap: 11px; }
.button { display: inline-flex; min-height: 46px; padding: 0 18px; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 12px; font-size: 13px; font-weight: 750; text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: #ff9250; background: linear-gradient(135deg, #ff9f52, #ff744a); color: #15100d; }
.button-secondary { background: rgba(255,255,255,.035); }
.review-line { margin: 12px 0 0; color: #778496; font-size: 11px; }

.commodity-quick-links-bar {
    position: relative;
    display: flex;
    margin: 16px 0 22px;
    padding: 8px 12px;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--line-strong, rgba(255, 255, 255, .12));
    border-radius: 12px;
    background: rgba(13, 19, 28, .85);
    backdrop-filter: blur(10px);
}

.quick-links-header {
    display: flex;
    min-height: 28px;
    align-items: center;
    white-space: nowrap;
}

.quick-links-label {
    color: #ffb276;
    font-size: 11.5px;
    font-weight: 750;
    letter-spacing: .02em;
}

.quick-links-content {
    flex: 1;
    min-width: 0;
    max-height: 28px;
    overflow: hidden;
    transition: max-height .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.commodity-quick-links-bar.is-expanded .quick-links-content {
    max-height: 520px;
}

.quick-links-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 7px;
}

.quick-link-tag {
    display: inline-flex;
    min-height: 28px;
    padding: 0 9px;
    align-items: center;
    border: 1px solid var(--line, rgba(255, 255, 255, .09));
    border-radius: 7px;
    background: rgba(255, 255, 255, .03);
    color: #dce4ee;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.quick-link-tag:hover {
    border-color: rgba(255, 159, 82, .5);
    background: rgba(255, 159, 82, .12);
    color: #fff;
}

.quick-links-toggle-btn {
    display: inline-flex;
    width: 28px;
    height: 28px;
    min-width: 28px;
    margin-left: auto;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 159, 82, .38);
    border-radius: 7px;
    background: rgba(255, 159, 82, .08);
    color: #ffaa6e;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transition: all .2s ease;
}

.quick-links-toggle-btn:hover {
    border-color: rgba(255, 159, 82, .75);
    background: rgba(255, 159, 82, .24);
    color: #fff;
}

/* Social Share Bar */
.social-share-bar {
    display: flex;
    margin: 13px 0 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}

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

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

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

.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;
}

.commodity-directory { margin-top: clamp(18px, 2vw, 28px); scroll-margin-top: 96px; }

.market-principles { margin-top: clamp(14px, 1.4vw, 24px); border-block: 1px solid var(--line); background: rgba(12,17,24,.72); }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.principles-grid article { padding: 27px 30px; }
.principles-grid article + article { border-left: 1px solid var(--line); }
.principles-grid span { color: var(--accent); font: 800 10px/1 ui-monospace, monospace; }
.principles-grid h2 { margin: 12px 0 5px; font-size: 14px; }
.principles-grid p { margin: 0; color: #8995a5; font-size: 12px; }

.section-heading { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, .55fr); margin-bottom: 36px; align-items: end; gap: 50px; }
.section-heading h2, .guide-copy h2, .method-section h2, .faq-section h2 { margin: 0; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.13; letter-spacing: -.045em; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 13px; }
.section-heading.compact { margin-bottom: 32px; }
.data-notice { margin: 0 0 20px; padding: 12px 15px; border: 1px solid rgba(255,193,95,.25); border-radius: 12px; background: rgba(255,193,95,.06); color: #e8c887; font-size: 12px; }
.data-notice.is-error { border-color: rgba(255,109,120,.28); background: rgba(255,109,120,.07); color: #ff9da5; }

.directory-tools { display: grid; margin-bottom: 24px; grid-template-columns: minmax(230px, 340px) minmax(0, 1fr) auto; align-items: end; gap: 14px 18px; }
.search-box { display: grid; gap: 7px; color: #aab5c3; font-size: 11px; font-weight: 700; }
.search-box input { width: 100%; min-height: 43px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 11px; outline: 0; background: #0d131c; color: #fff; font-size: 13px; }
.search-box input::placeholder { color: #606d7d; }
.search-box input:focus { border-color: rgba(255,153,80,.75); box-shadow: 0 0 0 3px rgba(255,153,80,.1); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-button { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); color: #aeb9c7; cursor: pointer; font-size: 11px; font-weight: 650; }
.filter-button span { margin-left: 4px; color: #667385; font: 750 9px/1 ui-monospace, monospace; }
.filter-button:hover, .filter-button.is-active { border-color: rgba(255,153,80,.46); background: var(--accent-soft); color: #fff; }
.filter-button.is-active span { color: #ffac70; }
.result-count { margin: 0 0 10px; color: #788597; font-size: 11px; white-space: nowrap; }
.noscript-note { margin: 0 0 20px; color: #d9bb83; font-size: 12px; }

.commodity-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.directory-description { margin: 22px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(12, 18, 27, .72); color: var(--muted); font-size: 13px; line-height: 1.8; }
.directory-followup { max-width: 980px; margin: 14px 0 0; padding: 0 2px; color: #bac4d1; font-size: clamp(14px, 1.25vw, 17px); line-height: 1.8; }
.commodity-card { position: relative; display: flex; min-width: 0; min-height: 365px; padding: 17px; flex-direction: column; overflow: clip; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(155deg, rgba(19,28,40,.96), rgba(10,15,22,.99)); box-shadow: 0 16px 44px rgba(0,0,0,.16); transition: transform .2s ease, border-color .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); }
.commodity-card[hidden] { display: none; }
.card-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 10px; }
.card-index { padding-top: 3px; color: var(--card-accent); font: 800 10px/1 ui-monospace, monospace; letter-spacing: .06em; }
.card-title { min-width: 0; }
.card-category { margin: 0 0 2px; color: var(--card-accent); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.card-title h2 { margin: 0; overflow-wrap: anywhere; font-size: 20px; line-height: 1.2; letter-spacing: -.025em; }
.card-title h2 span { display: block; margin-top: 2px; color: #8e9bac; font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.card-symbol { padding: 5px 7px; border: 1px solid var(--line); border-radius: 8px; color: #8a97a7; font: 750 9px/1 ui-monospace, monospace; }

.price-block { margin-top: 18px; padding: 15px; border: 1px solid rgba(255,255,255,.075); border-radius: 13px; background: rgba(4,7,11,.38); }
.price-label { margin: 0; color: #738092; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.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; }
.price-value > span { color: var(--card-accent); font-size: 14px; }
.price-value data { overflow-wrap: anywhere; font-size: clamp(25px, 2.4vw, 34px); }
.price-unit { margin: 8px 0 0; color: #7d8999; font: 650 9px/1.3 ui-monospace, monospace; }

.change-grid { display: grid; margin: 10px 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.change-grid > div { min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); }
.change-grid dt { color: #748193; font-size: 9px; }
.change-grid dd { margin: 3px 0 0; font: 800 14px/1.3 ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.is-positive { color: var(--positive); }
.is-negative { color: var(--negative); }
.is-neutral { color: var(--neutral); }
.commodity-history-chart { margin: 12px 0 13px; padding: 11px 12px 9px; border: 1px solid rgba(255,255,255,.075); border-radius: 13px; background: rgba(4,7,11,.38); }
.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; margin-bottom: 6px; }
.commodity-history-header span:last-child { color: #6f7d8e; font: 650 9px/1.2 ui-monospace, monospace; letter-spacing: 0; text-transform: none; }

/* Commodity Card SVG Chart (matching oil main page) */
.commodity-card-plot {
    position: relative;
    width: 100%;
    height: 90px;
    background: rgba(9, 13, 22, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 4px 6px;
    margin: 4px 0 6px;
}
.commodity-card-plot svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.commodity-card-gridline {
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 1;
    stroke-dasharray: 3 3;
}
.commodity-card-point-group {
    outline: none;
    cursor: pointer;
}
.commodity-card-hitarea {
    fill: transparent;
    stroke: transparent;
    cursor: pointer;
}
.commodity-card-point {
    transition: transform 0.15s ease, r 0.15s ease;
}
.commodity-card-point-group:hover .commodity-card-point,
.commodity-card-point-group:focus .commodity-card-point,
.commodity-card-point-group.is-active .commodity-card-point {
    r: 4.8;
    filter: drop-shadow(0 0 6px currentColor);
}
.commodity-card-date-label {
    font-size: 10px;
    fill: #64748b;
    font-weight: 600;
    font-family: system-ui, sans-serif;
}
.commodity-card-tooltip {
    position: absolute;
    z-index: 20;
    transform: translate(-50%, -100%) translateY(-8px);
    padding: 5px 10px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #ffffff;
    background: #090d16;
    border: 1px solid #ff9f52;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 159, 82, 0.25);
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.commodity-card-tooltip[data-align="start"] {
    transform: translate(0, -100%) translateY(-8px);
}
.commodity-card-tooltip[data-align="end"] {
    transform: translate(-100%, -100%) translateY(-8px);
}
.commodity-card-tooltip[hidden] {
    display: none;
}
.commodity-card-chart-empty {
    display: grid;
    min-height: 88px;
    margin: 0;
    place-items: center;
    color: #7f8b9b;
    font-size: 9px;
    text-align: center;
}
.commodity-history-note { margin: 4px 0 0; color: #657285; font-size: 8px; line-height: 1.45; }
.card-knowledge { margin: 12px 0; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); }
.card-knowledge summary { display: flex; min-height: 38px; padding: 9px 11px; align-items: center; justify-content: space-between; gap: 8px; color: #aeb9c7; cursor: pointer; font-size: 10px; font-weight: 750; list-style: none; }
.card-knowledge summary::-webkit-details-marker { display: none; }
.card-knowledge summary::after { color: var(--card-accent); content: "+"; font: 800 15px/1 ui-monospace, monospace; }
.card-knowledge[open] summary { border-bottom: 1px solid var(--line); color: #fff; }
.card-knowledge[open] summary::after { content: "−"; }
.card-knowledge-body { display: grid; padding: 3px 11px 10px; gap: 0; }
.card-knowledge-body p { margin: 0; padding: 9px 0; color: #929fb0; font-size: 10px; line-height: 1.65; }
.card-knowledge-body p + p { border-top: 1px solid rgba(255,255,255,.055); }
.card-knowledge-body strong { display: block; margin-bottom: 2px; color: #d5dbe4; font-size: 9px; letter-spacing: .04em; }
.card-footer { display: grid; margin-top: auto; padding-top: 11px; grid-template-columns: 1fr auto; align-items: end; gap: 8px; border-top: 1px solid var(--line); }
.card-footer > span { color: #647183; font-size: 8px; line-height: 1.45; }
.card-footer a { color: #aeb8c6; font-size: 9px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.card-footer a:hover { color: var(--card-accent); }
.empty-state { margin: 28px 0 0; padding: 28px; border: 1px dashed var(--line-strong); border-radius: 14px; color: #8d99aa; text-align: center; }

.guide-section { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(15,22,32,.55), transparent); }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .58fr); gap: clamp(44px, 7vw, 92px); }
.guide-copy > p:not(.section-kicker), .method-grid > div > p:not(.section-kicker) { max-width: 760px; color: var(--muted-2); }
.reading-steps { margin: 34px 0 0; padding: 0; list-style: none; }
.reading-steps li { display: grid; padding: 18px 0; grid-template-columns: 44px 1fr; gap: 12px; border-top: 1px solid var(--line); }
.reading-steps li:last-child { border-bottom: 1px solid var(--line); }
.reading-steps > li > span { padding-top: 3px; color: var(--accent); font: 800 10px/1.5 ui-monospace, monospace; }
.reading-steps strong { font-size: 15px; }
.reading-steps p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.snapshot-card, .source-register { align-self: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, var(--panel-2), var(--bg-soft)); box-shadow: var(--shadow); }
.snapshot-card h3, .source-register h3 { margin: 0 0 17px; font-size: 23px; }
.snapshot-card dl { margin: 0; border-top: 1px solid var(--line); }
.snapshot-card dl > div { display: grid; padding: 10px 0; grid-template-columns: 1fr auto; gap: 15px; border-bottom: 1px solid var(--line); }
.snapshot-card dt { color: #8390a1; font-size: 11px; }
.snapshot-card dd { margin: 0; color: #e5eaf0; font: 700 11px/1.5 ui-monospace, monospace; text-align: right; }
.snapshot-card > p:last-child { margin: 16px 0 0; color: #778496; font-size: 10px; }

.category-section { border-block: 1px solid var(--line); background: #090d13; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.category-grid > * { min-height: 190px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.category-grid > a { transition: background .2s ease; }
.category-grid > a:hover { background: rgba(255,153,80,.055); }
.category-grid span { color: var(--accent); font: 750 10px/1 ui-monospace, monospace; }
.category-grid h3 { margin: 26px 0 6px; font-size: 18px; }
.category-grid p { margin: 0; color: var(--muted); font-size: 12px; }

.method-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .6fr); gap: clamp(44px, 7vw, 94px); }
.method-links { display: grid; margin-top: 28px; border-top: 1px solid var(--line); }
.method-links a { display: flex; padding: 13px 0; justify-content: space-between; border-bottom: 1px solid var(--line); color: #dae1e9; font-size: 12px; text-decoration: none; }
.method-links a:hover { color: var(--accent); }
.source-register ul { margin: 0; padding: 0; list-style: none; }
.source-register li + li { border-top: 1px solid var(--line); }
.source-register a { display: grid; padding: 14px 0; text-decoration: none; }
.source-register strong { font-size: 13px; }
.source-register span { color: var(--muted); font-size: 10px; }
.source-register a:hover strong { color: var(--accent); }
.source-register > p { margin: 15px 0 0; color: #788496; font-size: 10px; }

.faq-section { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(15,22,32,.5), transparent); }
.faq-grid { display: grid; grid-template-columns: minmax(280px, .52fr) minmax(0, 1fr); gap: clamp(44px, 7vw, 88px); }
.faq-grid > div:first-child > p:last-child { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 18px 42px 18px 0; cursor: pointer; list-style: none; font-size: 14px; font-weight: 750; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 15px; right: 1px; display: grid; width: 27px; height: 27px; content: "+"; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 42px 18px 0; color: var(--muted); font-size: 12px; }

.risk-banner { border-block: 1px solid rgba(255,153,80,.2); background: rgba(255,153,80,.055); }
.risk-banner .container { display: grid; padding-block: 22px; grid-template-columns: 130px 1fr; gap: 18px; }
.risk-banner strong { color: var(--accent); font-size: 12px; }
.risk-banner p { margin: 0; color: #a8b3c0; font-size: 11px; }

.site-footer { background: #05070a; color: #dce3eb; }
.disclosure-grid { display: grid; padding-block: 42px; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.disclosure-grid section { padding-right: 28px; }
.disclosure-grid section + section { padding-left: 28px; border-left: 1px solid var(--line); }
.disclosure-grid h2 { margin: 0 0 7px; font-size: 11px; }
.disclosure-grid p { margin: 0; color: #9ba7b6; font-size: 10px; }
.footer-main { display: grid; padding: 30px 0 48px; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); align-items: end; gap: 70px; }
.footer-brand .brand { gap: 10px; font-size: 1rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.footer-brand .brand-mark { width: 38px; height: 38px; border-radius: 50%; }
.footer-brand .brand-mark img { width: 18px; height: 18px; }
.footer-brand .brand-name { font-size: 1rem; line-height: 1.25; }
.footer-brand .brand small { display: block; margin-top: 1px; color: var(--muted-2); font-size: .67rem; font-weight: 600; line-height: 1.2; letter-spacing: .08em; }
.footer-brand > p { max-width: 430px; margin: 18px 0 0; color: #9ca8b8; font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px 18px; }
.footer-links a { color: #dfe5ec; font-size: 11px; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; padding-block: 18px 25px; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); color: #778496; font-size: 10px; }
.footer-bottom p { margin: 0; }

@media (max-width: 1180px) {
    .commodity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .directory-tools { grid-template-columns: minmax(230px, 320px) 1fr; }
    .result-count { grid-column: 1 / -1; margin: 0; }
}

@media (min-width: 961px) {
    .site-header .header-inner { min-height: 76px; padding-block: 10px; }
    .site-header .brand { gap: 10px; font-size: 1rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
    .site-header .brand-mark { width: 38px; height: 38px; border-radius: 50%; }
    .site-header .brand-mark img { width: 18px; height: 18px; }
    .site-header .brand-name { font-size: 1rem; line-height: 1.25; }
    .site-header .brand small { display: block; margin-top: 1px; color: var(--muted-2); font-size: .67rem; font-weight: 600; line-height: 1.2; letter-spacing: .08em; }
}

@media (max-width: 960px) {
    .primary-nav { position: absolute; top: calc(100% + 1px); right: -24px; left: -24px; display: none; padding: 12px 24px 20px; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); background: rgba(7,10,15,.98); }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { padding: 9px 0; font-size: .88rem; }
    .primary-nav a::after { display: none; }
    .menu-button { display: flex; }
    .hero-grid, .guide-grid, .method-grid, .faq-grid { grid-template-columns: 1fr; }
    .snapshot-card, .source-register { width: min(100%, 680px); }
    .section-heading { grid-template-columns: 1fr; gap: 15px; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-main { grid-template-columns: 1fr; gap: 34px; }
    .footer-links { justify-content: flex-start; }
}

@media (max-width: 820px) {
    .commodity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .directory-tools { grid-template-columns: 1fr; align-items: start; }
    .search-box { max-width: none; }
    .principles-grid { grid-template-columns: 1fr; }
    .principles-grid article + article { border-top: 1px solid var(--line); border-left: 0; }
    .disclosure-grid { grid-template-columns: 1fr; }
    .disclosure-grid section { padding: 0 0 20px; }
    .disclosure-grid section + section { padding: 20px 0; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 560px) {
    .container, .header-inner { width: min(calc(100% - 28px), var(--max)); }
    .header-inner { min-height: 66px; }
    .primary-nav { right: -14px; left: -14px; padding-inline: 14px; }
    .breadcrumbs { padding-top: 18px; }
    .hero { padding-top: 24px; }
    .hero h1 { font-size: 28px; }
    .hero-lead { font-size: 15px; }
    .hero-actions { display: grid; }
    .button { width: 100%; }
    .section { padding: 36px 0 72px; }
    .filter-bar { flex-wrap: nowrap; padding-bottom: 6px; overflow-x: auto; scrollbar-width: thin; }
    .filter-button { flex: 0 0 auto; }
    .commodity-grid { grid-template-columns: 1fr; gap: 11px; }
    .commodity-card { min-height: 0; padding: 16px; }
    .directory-description { margin-top: 16px; padding: 14px; font-size: 12px; }
    .price-value data { font-size: 31px; }
    .card-knowledge summary { min-height: 42px; font-size: 11px; }
    .card-knowledge-body p { font-size: 11px; }
    .category-grid { grid-template-columns: 1fr; }
    .category-grid > * { min-height: 160px; }
    .risk-banner .container { grid-template-columns: 1fr; gap: 5px; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media print {
    :root { color-scheme: light; }
    body { background: #fff; color: #111; }
    .site-header, .hero-glow, .hero-actions, .directory-tools, .category-section, .risk-banner { display: none !important; }
    .section { padding: 28px 0; }
    .commodity-grid { grid-template-columns: repeat(2, 1fr); }
    .commodity-card, .snapshot-card, .source-register { break-inside: avoid; border: 1px solid #bbb; background: #fff; box-shadow: none; }
    .card-knowledge-body p, .price-unit, .card-footer > span, p { color: #333 !important; }
    a { color: #111; }
}

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

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

.card-knowledge-body a[href] {
    color: var(--card-accent);
    font-weight: 750;
    text-decoration: none !important;
}

.card-knowledge-body a[href]:hover,
.card-knowledge-body a[href]:focus-visible {
    text-decoration: underline !important;
    text-decoration-thickness: .08em !important;
    text-underline-offset: .18em;
}

/* LPG-style responsive top menu */
@media (min-width: 761px) {
    .site-header .header-inner {
        display: flex;
        width: min(calc(100% - 48px), 1760px);
        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-mark {
        width: 38px;
        height: 38px;
        border-radius: 50%;
    }

    .site-header .brand-mark img {
        width: 18px;
        height: 18px;
    }

    .site-header .brand-name {
        font-size: 1rem;
        line-height: 1.25;
    }

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

    .site-header .primary-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;
        box-shadow: none;
    }

    .site-header .primary-nav a {
        flex: 0 0 auto;
        padding: 6px 0;
        white-space: nowrap;
    }

    .site-header .menu-button {
        display: none;
    }
}

@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;
        min-height: 52px;
        margin: 0;
        padding: 0;
        gap: 0;
    }

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

    .site-header .menu-button {
        position: relative;
        display: block;
        width: 52px;
        height: 52px;
        margin: 0;
        padding: 0;
        color: #fff;
        background: rgba(8, 11, 16, .92);
        border: 1px solid rgba(255, 153, 80, .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 .menu-button:focus-visible {
        outline: 3px solid rgba(255, 178, 118, .58);
        outline-offset: 3px;
    }

    .site-header .menu-lines {
        position: relative;
        display: block;
        width: 24px;
        height: 2px;
        margin: auto;
        background: currentColor;
        border: 0;
        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 .primary-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(255, 153, 80, .24);
        border-radius: 14px;
        box-shadow: 0 18px 45px rgba(0, 0, 0, .48);
        pointer-events: auto;
    }

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

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

    .site-header .primary-nav a::after {
        display: none;
    }

    .site-header .primary-nav a:hover,
    .site-header .primary-nav a:focus-visible {
        color: #fff;
        background: rgba(255, 153, 80, .1);
    }

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

    .hero {
        padding-top: max(12px, env(safe-area-inset-top));
    }
}

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

    #main-content .hero-copy > h1 {
        padding-right: 64px;
    }
}

/* Commodity Overview Infographic Banner */
.commodity-overview-section {
    padding: clamp(24px, 3vw, 40px) 0 clamp(10px, 1.5vw, 20px);
}
.commodity-overview-banner {
    margin: 0 auto;
    max-width: 1000px;
    text-align: center;
}
.commodity-overview-banner img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    box-shadow: 0 16px 45px rgba(0, 0, 0, .4);
    background: #0a0e14;
    transition: transform .3s ease, border-color .3s ease;
}
.commodity-overview-banner img:hover {
    border-color: rgba(255, 153, 80, .45);
    transform: translateY(-2px);
}
.commodity-overview-banner figcaption {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
}
.commodity-overview-share-wrapper {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}
.commodity-overview-share-wrapper .social-share-bar {
    margin: 0 auto;
    justify-content: center;
}
