/* Corgano Gold — app.css */
:root {
  --bg: #f5f6f8; --card: #ffffff; --card-2: #fafbfc; --text: #141b2d; --muted: #5f6b80; --faint: #8a94a6;
  --line: #e4e8ee; --line-soft: #eef1f5;
  --gold: #a87b1f; --gold-2: #d4a64a; --gold-soft: rgba(184, 138, 46, .11); --on-gold: #241a05;
  --up: #12823c; --up-bg: rgba(18, 130, 60, .09); --down: #c0262d; --down-bg: rgba(192, 38, 45, .085); --flat: #64748b;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05);
  --radius: 16px; --radius-sm: 11px;
  --chart-line: #b8861f; --chart-fill: rgba(196, 146, 40, .16); --chart-grid: #edf0f4;
}
:root[data-theme="dark"] {
  --bg: #0b1020; --card: #121a2b; --card-2: #0f1626; --text: #eef2f8; --muted: #9aa6ba; --faint: #6f7b91;
  --line: #232e45; --line-soft: #1a2337;
  --gold: #e0b55e; --gold-2: #f0cd84; --gold-soft: rgba(224, 181, 94, .13); --on-gold: #1e1503;
  --up: #3ddc84; --up-bg: rgba(61, 220, 132, .11); --down: #ff6b6b; --down-bg: rgba(255, 107, 107, .11); --flat: #94a3b8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
  --chart-line: #e7bd62; --chart-fill: rgba(231, 189, 98, .14); --chart-grid: #1c2639;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020; --card: #121a2b; --card-2: #0f1626; --text: #eef2f8; --muted: #9aa6ba; --faint: #6f7b91;
    --line: #232e45; --line-soft: #1a2337;
    --gold: #e0b55e; --gold-2: #f0cd84; --gold-soft: rgba(224, 181, 94, .13); --on-gold: #1e1503;
    --up: #3ddc84; --up-bg: rgba(61, 220, 132, .11); --down: #ff6b6b; --down-bg: rgba(255, 107, 107, .11); --flat: #94a3b8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
    --chart-line: #e7bd62; --chart-fill: rgba(231, 189, 98, .14); --chart-grid: #1c2639;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
button, input, select { font: inherit; color: inherit; }
.num, td, .tile-v, .price-hero, .ticker-value { font-variant-numeric: tabular-nums; }
.container { width: min(1320px, calc(100% - 32px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ── header ── */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 17px; flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(140deg, #f3d48a, #b8861f 60%, #8d6414); color: var(--on-gold); font-size: 14px; font-weight: 900; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.brand-sub { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: -2px; }
.main-nav { display: flex; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); flex: 1; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { padding: 7px 10px; border-radius: 9px; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); background: var(--line-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--flat); flex-shrink: 0; }
.pill.open .dot { background: var(--up); box-shadow: 0 0 0 3px var(--up-bg); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--text); border-color: var(--gold); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; } :root[data-theme="dark"] .theme-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-sun { display: block; } :root:not([data-theme="light"]) .theme-moon { display: none; } }
select.ccy { height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 0 28px 0 10px; font-size: 13px; font-weight: 700; cursor: pointer; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }

/* ── ticker ── */
.ticker-wrap { border-bottom: 1px solid var(--line); background: var(--card); position: relative; }
.ticker-wrap::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 40px; background: linear-gradient(90deg, transparent, var(--card)); pointer-events: none; }
.ticker { display: flex; gap: 6px; padding: 7px 0; overflow-x: auto; scrollbar-width: none; }
.ticker::-webkit-scrollbar { display: none; }
.ticker-item { display: inline-flex; align-items: baseline; gap: 7px; font-size: 13px; white-space: nowrap; padding: 4px 10px; border-radius: 8px; }
.ticker-item:hover { background: var(--line-soft); color: inherit; }
.ticker-label { color: var(--muted); font-weight: 700; font-size: 12px; }
.ticker-value { font-weight: 700; }
.ticker-chg { font-weight: 700; font-size: 12px; }

.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--flat); }
.chip { display: inline-block; padding: 5px 10px; border-radius: 999px; font-weight: 750; font-size: 14px; }
.chip.up { background: var(--up-bg); } .chip.down { background: var(--down-bg); } .chip.flat { background: var(--line-soft); }

main { padding: 22px 0 60px; }
.section { margin-top: 22px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 34px 0 14px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; line-height: 1.2; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.section-head .more { font-size: 13.5px; font-weight: 700; color: var(--gold); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-title { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.card-title-lg { margin: 0; font-size: 17px; font-weight: 750; letter-spacing: -.015em; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 750; background: var(--line-soft); color: var(--muted); white-space: nowrap; }
.badge.live { background: var(--up-bg); color: var(--up); }
.badge.warn { background: var(--gold-soft); color: var(--gold); }
.empty { padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); font-size: 14px; text-align: center; }
.note { margin-top: 14px; padding: 11px 13px; border-radius: var(--radius-sm); background: var(--gold-soft); font-size: 13px; line-height: 1.55; }

/* ── hero ── */
.hero { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.hero h1 { margin: 0; font-size: 14px; font-weight: 750; color: var(--muted); letter-spacing: .02em; }
.price-hero { font-size: clamp(44px, 5.4vw, 64px); line-height: 1.02; font-weight: 850; letter-spacing: -.045em; margin: 10px 0 10px; transition: color .6s; }
.price-hero.flash-up, .flash-up { animation: flashUp 1.2s; } .price-hero.flash-down, .flash-down { animation: flashDown 1.2s; }
@keyframes flashUp { 0% { color: var(--up); } } @keyframes flashDown { 0% { color: var(--down); } }
.hero-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.asof { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.quote-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 18px 0 14px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); overflow: hidden; }
.quote-strip > div { background: var(--card-2); padding: 10px 12px; }
.qs-l { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.qs-v { font-weight: 750; font-size: 15px; }
.range { margin: 4px 0 16px; }
.range-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.range-top b { color: var(--text); font-weight: 700; }
.range-track { position: relative; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--down-bg), var(--line-soft), var(--up-bg)); }
.range-dot { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--card); transform: translate(-50%, -50%); box-shadow: 0 0 0 1px var(--gold); transition: left .6s; }
.units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.unit { padding: 10px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-align: center; }
.unit .l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 800; }
.unit .v { font-weight: 750; font-size: 14px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── chart ── */
.chart-card { display: flex; flex-direction: column; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--line-soft); border-radius: 10px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.chart-summary { display: flex; align-items: baseline; gap: 10px; min-height: 24px; font-size: 14px; }
.chart-box { position: relative; flex: 1; min-height: 340px; margin-top: 8px; }
.chart-box svg { display: block; width: 100%; height: 100%; position: absolute; inset: 0; overflow: visible; touch-action: pan-y; }
.chart-box .c-line { fill: none; stroke: var(--chart-line); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-box .c-area { fill: url(#gpFill); }
.chart-box .c-grid { stroke: var(--chart-grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart-box .c-tick { fill: var(--faint); font-size: 11px; font-weight: 600; }
.chart-box .c-cross { stroke: var(--muted); stroke-dasharray: 3 3; stroke-width: 1; }
.chart-box .c-dot { fill: var(--chart-line); stroke: var(--card); stroke-width: 2; }
.chart-box .c-wm { fill: var(--text); opacity: .07; font-weight: 800; letter-spacing: .01em; pointer-events: none; user-select: none; -webkit-user-select: none; }
.chart-box .c-base { stroke: var(--faint); stroke-dasharray: 2 4; stroke-width: 1; opacity: .7; }
.chart-tip { position: absolute; pointer-events: none; background: var(--text); color: var(--card); padding: 6px 9px; border-radius: 8px; font-size: 12px; font-weight: 650; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .12s; z-index: 2; }
.chart-tip span { opacity: .7; font-weight: 500; margin-left: 6px; }
.chart-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; text-align: center; padding: 20px; }
.chart-foot { margin-top: 10px; font-size: 11.5px; color: var(--faint); }
#tv-box { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; }

/* ── tiles / metals ── */
.tiles { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.tile-l { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.tile-v { font-size: 17px; font-weight: 800; margin-top: 4px; letter-spacing: -.01em; }
.tile-s { font-size: 12px; font-weight: 600; margin-top: 1px; }
.metal { display: flex; flex-direction: column; gap: 4px; }
.metal-top { display: flex; justify-content: space-between; align-items: baseline; }
.metal-name { font-weight: 750; font-size: 15px; }
.metal-sym { font-size: 11.5px; color: var(--faint); font-weight: 700; }
.metal-price { font-size: 26px; font-weight: 820; letter-spacing: -.03em; }
.metal-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.karats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.karat { padding: 12px 8px; border-radius: var(--radius-sm); text-align: center; background: var(--card-2); border: 1px solid var(--line-soft); }
.karat-k { font-weight: 850; font-size: 15px; color: var(--gold); }
.karat-f { font-size: 11px; color: var(--faint); font-weight: 600; }
.karat-v { font-weight: 750; font-size: 15px; margin-top: 6px; }

/* ── tables ── */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); text-align: right; white-space: nowrap; font-size: 14px; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--card-2); }
td .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 500; white-space: normal; }
td.sym { font-weight: 800; }
.stale-mark { color: var(--faint); font-size: 11px; margin-left: 4px; }

/* ── drivers / ratios / correlations ── */
.kv { display: grid; grid-template-columns: 1fr auto; gap: 9px 16px; align-items: center; font-size: 14px; }
.kv .k { color: var(--muted); } .kv .v { font-weight: 750; text-align: right; }
.dbar { margin: 14px 0; }
.dbar-top { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 650; margin-bottom: 6px; }
.dbar-track { position: relative; height: 8px; background: var(--line-soft); border-radius: 8px; }
.dbar-track::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line); }
.dbar-fill { position: absolute; top: 0; bottom: 0; border-radius: 8px; }
.dbar-fill.up { background: var(--up); } .dbar-fill.down { background: var(--down); }
.ratio-row { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.ratio-row:last-child { border-bottom: 0; }
.ratio-main { display: flex; justify-content: space-between; font-size: 14px; }
.ratio-main b { font-weight: 800; }
.mini-range { position: relative; height: 4px; border-radius: 4px; background: var(--line-soft); margin: 8px 0 4px; }
.mini-range i { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); transform: translate(-50%, -50%); }
.mini-range s { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--faint); text-decoration: none; }
.corr-row { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.corr-row:last-child { border-bottom: 0; }
.corr-bar { grid-column: 1 / -1; position: relative; height: 5px; border-radius: 5px; background: var(--line-soft); }
.corr-bar::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line); }
.corr-bar i { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.state { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--line-soft); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.state.flipped { background: var(--down-bg); color: var(--down); } .state.shifting { background: var(--gold-soft); color: var(--gold); }

/* ── seasonality ── */
.season-svg { width: 100%; height: auto; display: block; }
.season-svg .axis { stroke: var(--line); } .season-svg .grid { stroke: var(--line-soft); stroke-dasharray: 3 4; }
.season-svg .tick { fill: var(--faint); font-size: 10px; } .season-svg .lbl { fill: var(--muted); font-size: 12px; font-weight: 650; } .season-svg .lbl.now { fill: var(--gold); font-weight: 850; }
.season-svg .val { fill: var(--muted); font-size: 10.5px; font-weight: 700; }
.season-svg .bar-up { fill: var(--up); opacity: .78; } .season-svg .bar-down { fill: var(--down); opacity: .78; }
.season-svg .bar-now { opacity: 1; stroke: var(--gold); stroke-width: 2; }
.season-svg g:hover rect { opacity: 1; }

/* ── calculator ── */
.calc { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
label { display: block; font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
input[type=number], input[type=search], select.field { width: 100%; height: 44px; border: 1px solid var(--line); background: var(--card-2); border-radius: var(--radius-sm); padding: 0 12px; font-size: 15px; }
input:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--gold) 40%, transparent); border-color: var(--gold); }
.result { margin-top: 16px; padding: 18px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--gold-soft), transparent); border: 1px solid var(--line); }
.result-main { font-size: 36px; font-weight: 850; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.result-grid div { font-size: 12px; color: var(--muted); } .result-grid b { display: block; color: var(--text); font-size: 15px; }

/* ── news ── */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filter { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.filter:hover { color: var(--text); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--card); border-color: var(--text); }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 12px 4px; border-bottom: 1px solid var(--line-soft); }
.news-item:last-child { border-bottom: 0; }
.news-item[hidden] { display: none; }
.news-title { font-size: 15px; font-weight: 650; line-height: 1.4; }
.news-meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.news-time { font-size: 12px; color: var(--faint); white-space: nowrap; grid-row: 1; grid-column: 2; }
.tag { padding: 2px 7px; border-radius: 6px; background: var(--gold-soft); color: var(--gold); font-size: 10.5px; font-weight: 850; letter-spacing: .04em; }
.more-btn { margin-top: 10px; width: 100%; height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card-2); font-weight: 700; cursor: pointer; color: var(--muted); }
.more-btn:hover { color: var(--text); border-color: var(--gold); }
.article { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.article:last-child { border-bottom: 0; }
.article img, .article .ph { width: 76px; height: 60px; border-radius: 9px; object-fit: cover; background: var(--gold-soft); }
.article h3 { margin: 0 0 4px; font-size: 14.5px; line-height: 1.35; }
.article p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ── FAQ ── */
.faq details { border-bottom: 1px solid var(--line-soft); padding: 4px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 800; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 80ch; }

/* ── footer ── */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 13.5px; background: var(--card); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 26px; }
.footer h3 { margin: 0 0 10px; font-size: 13px; color: var(--text); letter-spacing: .02em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 7px 0; }
.footer p { margin: 0 0 10px; line-height: 1.6; }
.disclaimer { border-top: 1px solid var(--line-soft); padding-top: 18px; line-height: 1.7; font-size: 12.5px; }

/* ── responsive ── */
@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .karats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .hero, .calc, .news-layout, .g3 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { width: calc(100% - 24px); }
  .card { padding: 16px; }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile { padding: 10px; } .tile-v { font-size: 15px; }
  .karats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .karat { padding: 10px 4px; } .karat-v { font-size: 13.5px; }
  .units { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 6px 9px; flex-shrink: 0; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .chart-box { min-height: 260px; }
  .header-inner { gap: 10px; }
  .pill.status .txt { display: none; }
  .pill.status { padding: 0 10px; }
  .brand-sub { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .news-time { grid-row: auto; grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ── performance page ── */
.perf-table td.heat { font-weight: 700; color: var(--text); border-left: 1px solid var(--card); }
.perf-table td.heat.up, .perf-table td.heat.down { color: var(--text); }
.perf-table .ytd-row td { border-bottom: 2px solid var(--line); }
.perf-table tfoot td { font-weight: 750; border-top: 2px solid var(--line); border-bottom: 0; font-size: 13px; }
.perf-table tfoot tr td:first-child { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: .07em; }
.perf-table th:first-child, .perf-table td:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; }
