/* GoldPriceToday.info — plain, civic-style design (USWDS-inspired tokens) */
:root {
  --ink: #1b1b1b;
  --ink-2: #454545;
  --muted: #5d6166;
  --line: #dfe1e2;
  --bg: #ffffff;
  --bg-2: #f0f0f0;
  --navy: #162e51;
  --blue: #005ea2;
  --blue-d: #1a4480;
  --blue-l: #e7f2f8;
  --gold: #c2850c;
  --gold-l: #faf3d1;
  --up: #00701a;
  --down: #b50909;
  --focus: #2491ff;
  --r: 4px;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--bg); }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-d); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.6rem; font-weight: 700; }
.h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }
.mt { margin-top: 2rem; }
.skip { position: absolute; top: -80px; inset-inline-start: 12px; background: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { top: 12px; }

/* Trust strip and header */
.trustbar { background: var(--bg-2); font-size: 13px; color: var(--ink-2); }
.trustbar .wrap { padding-top: 6px; padding-bottom: 6px; }
.trustbar svg { width: 12px; height: 12px; vertical-align: -1px; color: var(--blue); margin-right: 4px; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e3b341; color: #162e51; font-weight: 800; font-size: 15px; letter-spacing: .5px; box-shadow: inset 0 0 0 3px #c2850c; }
.brand-text { font-weight: 800; font-size: 1.2rem; letter-spacing: -.2px; }
.brand-text span { font-weight: 400; color: var(--muted); }
.menu-btn { display: none; background: var(--blue); color: #fff; border: 0; border-radius: var(--r); padding: 8px 14px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }

/* Hero quote */
.hero { background: linear-gradient(180deg, var(--blue-l), #fff 85%); border-bottom: 1px solid var(--line); padding: 28px 0 32px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: var(--blue-d); margin-bottom: 4px; }
h1 { font-size: 2.4rem; font-weight: 800; color: var(--navy); }
.quote-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.quote-price .big { font-size: 3.4rem; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.05; }
.quote-price .unit { color: var(--ink-2); font-weight: 600; }
.quote-change { font-size: 1.15rem; font-weight: 700; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.quote-change .arrow { font-size: .8em; }
.quote-change .muted { font-weight: 400; }
.asof { font-size: 15px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(0,136,23,.15); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 16px 0 0; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.stats div { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.stats div:nth-child(odd) { border-right: 1px solid var(--line); }
.stats div:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.stats dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Chart */
.chart-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chart-head .h3 { margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--blue); border-radius: var(--r); overflow: hidden; }
.seg button { background: #fff; color: var(--blue); border: 0; border-left: 1px solid var(--blue); padding: 6px 10px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; min-width: 40px; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.chart-wrap { position: relative; aspect-ratio: 600 / 260; }
.chart-wrap.loading { opacity: .5; }
.chart { width: 100%; height: 100%; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .line { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.chart.up .line { stroke: var(--blue); }
.chart.down .line { stroke: var(--down); }
.chart .area { fill: var(--blue-l); opacity: .7; }
.chart.down .area { fill: #fbe5e5; }
.chart .ylab { font-size: 14px; fill: var(--muted); text-anchor: end; dominant-baseline: middle; }
.chart .xlab { font-size: 14px; fill: var(--muted); }
.chart-meta { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; }
.chart-empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* Content blocks */
.alert { border-left: 8px solid var(--blue); background: var(--blue-l); padding: 14px 18px; margin: 28px 0 8px; border-radius: 0 var(--r) var(--r) 0; font-size: 16px; }
.block { padding: 28px 0 8px; }
.lead-sm { color: var(--ink-2); margin-top: -4px; }
.cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; background: #fff; }
.tbl th, .tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl thead th { border-bottom: 2px solid var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.tbl tbody th { font-weight: 600; }
.tbl tbody tr:nth-child(even) { background: #f9f9f9; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td.num { font-weight: 700; }
.tbl .sub { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.stamp { display: inline-block; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--bg-2); border-radius: 2px; padding: 0 5px; margin-left: 4px; vertical-align: 1px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 32px 14px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 10px; font-size: 22px; color: var(--blue); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-2); max-width: 760px; }

.btn { display: inline-block; background: var(--blue); color: #fff; padding: 10px 18px; border-radius: var(--r); text-decoration: none; font-weight: 700; }
.btn:hover { background: var(--blue-d); color: #fff; }
.notfound { padding: 64px 20px; }

/* Footer */
.site-footer { margin-top: 48px; background: var(--navy); color: #dfe1e2; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 32px; padding-bottom: 16px; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer-h { color: #fff; font-weight: 700; margin-bottom: .4em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 14px; padding-bottom: 20px; font-size: 14px; color: #a9aeb1; }
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .cols { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-btn { display: inline-block; }
  .site-header { position: relative; }
  h1 { font-size: 1.9rem; }
  .quote-price .big { font-size: 2.7rem; }
  .seg button { padding: 6px 7px; min-width: 0; font-size: 13px; }
  .tbl th, .tbl td { padding: 9px 10px; }
  .tbl { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .flash { animation: none; } }

/* Breadcrumbs, links, gold & silver cards */
.crumbs a { color: var(--blue); }
.more { margin: 12px 0 0; font-weight: 600; }
.duo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.duo-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--r); padding: 16px 18px; }
.duo-card:nth-child(2) { border-top-color: #8a9ba8; }
.duo-card.ratio { border-top-color: var(--blue); }
.duo-name { font-weight: 700; margin-bottom: 4px; }
.duo-name a { color: var(--navy); }
.duo-price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; margin: 0 0 4px; line-height: 1.1; }
.duo-sub { font-size: 15px; color: var(--ink-2); margin: 6px 0 0; }
/* stats grid: works for any number of items */
.stats div, .stats div:nth-child(odd), .stats div:last-child { grid-column: auto; border-right: 0; border-bottom: 1px solid var(--line); }
.stats div:nth-child(odd) { border-right: 1px solid var(--line); }
.stats div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.stats div:last-child, .stats div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
@media (max-width: 900px) { .duo { grid-template-columns: minmax(0, 1fr); } }

/* Calculator, karat key facts, prose pages, footer links */
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 760px; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin: 18px 0 14px; align-items: start; }
.calc-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-form .btn { grid-column: 1 / -1; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.field input, .field select { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #565c65; border-radius: 0; background: #fff; min-height: 44px; }
.calc-out { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--r); padding: 18px; }
.calc-label { font-weight: 700; color: var(--ink-2); margin: 0; }
.calc-big { font-size: 2.6rem; font-weight: 800; margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.keyfacts p:last-child { margin-bottom: 0; }
.tbl tr.current { background: var(--gold-l) !important; }
.list { padding-left: 1.2em; max-width: 780px; }
.list li { margin-bottom: .5em; }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 8px; padding-bottom: 20px; border-top: 1px solid rgba(255,255,255,.15); }
.footer-links a { display: block; color: #dfe1e2; text-decoration: none; padding: 3px 0; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-links .footer-h { margin-top: 16px; }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .footer-links { grid-template-columns: minmax(0, 1fr); gap: 0; } .calc-form { grid-template-columns: 1fr; } }

/* History, tax table */
.sub-dd { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.tally { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.tally-item { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.tally-n { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.tally-l { font-size: 14px; color: var(--ink-2); }
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.st-exempt { border-top-color: var(--up); } .pill.st-exempt { background: #e3f5e1; color: #19561c; }
.st-none { border-top-color: #00bde3; } .pill.st-none { background: #e7f6f8; color: #07485a; }
.st-threshold { border-top-color: #ffbe2e; } .pill.st-threshold { background: #faf3d1; color: #6b4e00; }
.st-partial { border-top-color: #e66f0e; } .pill.st-partial { background: #fef0e4; color: #7a3a00; }
.st-taxed { border-top-color: var(--down); } .pill.st-taxed { background: #f4e3e3; color: #8b0a03; }
.tax-tbl td:last-child { min-width: 260px; font-size: 15px; color: var(--ink-2); }
.contact-mail { font-size: 1.3rem; font-weight: 700; }
@media (max-width: 760px) { .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 761px) and (max-width: 1000px) { .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .footer-links { grid-template-columns: minmax(0, 1fr); } }

/* ===== Navigation: section menu with dropdowns (all links in HTML) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site-header { position: relative; z-index: 20; }
.header-row { gap: 18px; }
.nav { border-top: 1px solid var(--line); background: #fff; }
.nav-list { list-style: none; display: flex; gap: 2px; padding-top: 0; padding-bottom: 0; margin: 0 auto; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-top { display: block; padding: 12px 10px 11px; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 3px solid transparent; }
.nav-item.is-active .nav-top, .nav-top:hover { color: var(--blue); border-bottom-color: var(--blue); }
.nav-toggle { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px 6px 8px 0; font: inherit; min-width: 28px; min-height: 28px; }
.nav-drop { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); box-shadow: 0 8px 24px rgba(0,0,0,.12); display: none; z-index: 30; }
.nav-drop a { display: block; padding: 8px 16px; color: var(--ink); text-decoration: none; font-size: 15px; }
.nav-drop a:hover, .nav-drop a[aria-current] { background: var(--blue-l); color: var(--blue-d); }
.nav-drop .nav-all a { font-weight: 700; color: var(--blue); border-top: 1px solid var(--line); margin-top: 4px; }
@media (min-width: 901px) {
  .nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop, .nav-item.open .nav-drop { display: block; }
}

/* ===== Search ===== */
.search { position: relative; flex: 1; max-width: 420px; display: flex; }
.search input { width: 100%; font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid #565c65; border-right: 0; border-radius: var(--r) 0 0 var(--r); min-height: 42px; }
.search button { background: var(--blue); color: #fff; border: 0; border-radius: 0 var(--r) var(--r) 0; width: 46px; cursor: pointer; display: grid; place-items: center; }
.search button svg { width: 18px; height: 18px; }
.search-results { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(0,0,0,.15); max-height: 70vh; overflow-y: auto; z-index: 40; border-radius: var(--r); }
.search-results a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.search-results a:hover, .search-results a.is-sel { background: var(--blue-l); }
.search-results .r-t { display: block; font-weight: 700; font-size: 15px; }
.search-results .r-s { display: inline-block; font-size: 12px; font-weight: 700; color: var(--blue-d); text-transform: uppercase; letter-spacing: .04em; margin-right: 6px; }
.search-results .r-d { font-size: 13px; color: var(--ink-2); }
.search-results mark { background: var(--gold-l); color: inherit; padding: 0; }
.search-results .r-empty { padding: 12px 14px; color: var(--muted); font-size: 15px; }
.search-results .r-all { font-weight: 700; color: var(--blue); }
.search-page { max-width: 640px; margin: 12px 0 16px; }
.search-page .btn { border-radius: 0 var(--r) var(--r) 0; border: 0; font: inherit; font-weight: 700; }
.search-page input[type=search] { min-width: 0; flex: 1 1 auto; width: auto; }
.search-page .btn { flex: 0 0 auto; white-space: nowrap; width: auto; padding: 0 16px; }

/* ===== Breadcrumbs, related links, card lists ===== */
.crumbbar { background: var(--blue-l); border-bottom: 1px solid #d9e8f6; }
.crumbs { font-size: 14px; color: var(--ink-2); padding-top: 8px; padding-bottom: 8px; }
.crumbs .sep { color: var(--muted); margin: 0 4px; }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }
.related { margin: 40px 0 0; padding: 20px 22px; background: #f7f9fb; border: 1px solid var(--line); border-radius: var(--r); }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.related-list a { font-weight: 700; }
.related-list span { display: block; font-size: 14px; color: var(--ink-2); }
.card-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card-list a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--r); text-decoration: none; background: #fff; }
.card-list a:hover { background: var(--blue-l); }
.card-list strong { display: block; color: var(--navy); font-size: 1.05rem; }
.card-list span { color: var(--ink-2); font-size: 15px; }
.sitemap-list li { margin-bottom: .35em; }

/* ===== FAQ: always open ===== */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { padding: 16px 0; border-bottom: 1px solid var(--line); max-width: 820px; }
.faq-item h3 { font-size: 1.05rem; margin: 0 0 6px; color: var(--navy); }
.faq-item p { margin: 0; color: var(--ink-2); }

/* ===== Footer by section ===== */
.footer-sections { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; padding-top: 32px; padding-bottom: 20px; }
.footer-sections a { display: block; color: #dfe1e2; text-decoration: none; padding: 3px 0; font-size: 14px; }
.footer-sections a:hover { color: #fff; text-decoration: underline; }
.footer-sections .footer-h a { color: #fff; font-weight: 700; font-size: 15px; }
.footer-note { border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; padding-bottom: 20px; font-size: 14px; color: #bcc1c4; }
.footer-note a { color: #fff; }

/* ===== Live tick: green up / red down on real price changes ===== */
.tick-up, .tick-down { border-radius: 3px; transition: background-color .2s; }
.tick-up { animation: tickUp 1.6s ease-out; }
.tick-down { animation: tickDown 1.6s ease-out; }
@keyframes tickUp { 0% { background: #b9ecc0; color: #0b5e17; } 100% { background: transparent; } }
@keyframes tickDown { 0% { background: #f8c9c9; color: #8b0a03; } 100% { background: transparent; } }
.tick-up::after, .tick-down::after { font-size: .7em; margin-left: 3px; animation: tickArrow 1.6s ease-out forwards; }
.tick-up::after { content: '▲'; color: var(--up); }
.tick-down::after { content: '▼'; color: var(--down); }
@keyframes tickArrow { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.live-status { font-size: 13px; color: var(--muted); margin-left: 6px; }
@media (prefers-reduced-motion: reduce) { .tick-up, .tick-down, .tick-up::after, .tick-down::after { animation: none; } }

/* ===== Responsive ===== */
@media (max-width: 1100px) { .footer-sections { grid-template-columns: repeat(3, minmax(0, 1fr)); } .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .header-row { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .menu-btn { display: inline-block; }
  .nav { display: none; }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; padding: 6px 20px 14px; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-top { flex: 1; border-bottom: 0; padding: 12px 0; }
  .nav-toggle { padding: 10px 12px; font-size: 18px; }
  .nav-drop { position: static; display: none; box-shadow: none; border: 0; border-left: 3px solid var(--blue); min-width: 0; width: 100%; padding: 0 0 8px; margin-left: 4px; }
  .nav-item.open .nav-drop { display: block; }
  .card-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) { .footer-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); } .related-list { grid-template-columns: minmax(0, 1fr); } }

/* Deep links from search (#state-texas, #coin-dimes): highlight the target row */
tr[id] { scroll-margin-top: 90px; }
tr:target > * { background: var(--gold-l) !important; }
tr:target > th { box-shadow: inset 4px 0 0 var(--gold); }

/* Archive */
.year-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.year-grid a { display: block; text-align: center; padding: 8px 0; border: 1px solid var(--line); border-radius: var(--r); font-weight: 700; text-decoration: none; }
.year-grid a:hover { background: var(--blue-l); }
.stats-wide { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 980px; }
.stats-wide div, .stats-wide div:nth-child(odd), .stats-wide div:last-child { border-right: 1px solid var(--line); border-bottom: 0; grid-column: auto; }
.stats-wide div:last-child { border-right: 0; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-weight: 700; }
@media (max-width: 760px) { .stats-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats-wide div { border-bottom: 1px solid var(--line) !important; } .stats-wide div:nth-child(even) { border-right: 0; } }

/* Language bar and localized pages */
.trustbar-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.langs { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; min-width: 0; }
.langs > * { white-space: nowrap; }
.langs a { color: var(--blue-d); text-decoration: none; }
.langs a:hover { text-decoration: underline; }
.langs span[aria-current] { font-weight: 700; color: var(--ink); }
.nav-flat { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 4px; margin: 0 auto; }
.nav-flat a { display: block; padding: 11px 10px; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 3px solid transparent; }
.nav-flat a:hover, .nav-flat a[aria-current] { color: var(--blue); border-bottom-color: var(--blue); }
@media (max-width: 900px) { .nav-i18n { display: block; } .nav-flat { padding: 4px 20px; overflow-x: auto; flex-wrap: nowrap; } .nav-flat a { white-space: nowrap; } }
.answer { margin-top: 14px; font-size: 1.05rem; }
.lang-zh body, .lang-zh { font-family: 'Public Sans', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif; }
.lang-ar { font-family: 'Segoe UI', Tahoma, 'Noto Naskh Arabic', 'Geeza Pro', system-ui, sans-serif; }
/* Right-to-left: keep numbers and prices left-to-right inside Arabic text */
[dir="rtl"] .num, [dir="rtl"] [data-metal], [dir="rtl"] .chg-text, [dir="rtl"] .brand-text { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .tbl th, [dir="rtl"] .tbl td { text-align: right; }
[dir="rtl"] .tbl .num { text-align: left; }
[dir="rtl"] .alert { border-left: 0; border-right: 8px solid var(--blue); border-radius: var(--r) 0 0 var(--r); }
[dir="rtl"] tr:target > th { box-shadow: inset -4px 0 0 var(--gold); }
[dir="rtl"] .chart { direction: ltr; }

/* Two equal columns (chart page) */
.cols-even { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 800px) { .cols-even { grid-template-columns: minmax(0, 1fr); } }
/* Market open/closed status */
.status-pill { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill.is-open { background: #e3f5e1; color: #1a6b1a; }
.status-pill.is-closed { background: #f8e1e1; color: #a31f1f; }

/* Search results page form: never wider than its column (the mobile header rule removes max-width from .search) */
form.search.search-page { max-width: min(640px, 100%); flex: none; }

/* Editorial content sections */
.article p, .article li { max-width: 760px; color: var(--ink-2); }
.article h3 { font-size: 18px; margin: 20px 0 6px; }
.article ul, .article ol { padding-inline-start: 22px; }
.article li { margin: 4px 0; }
.article table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 15px; }
.article caption { text-align: start; font-weight: 700; padding: 0 0 6px; color: var(--ink); }
.article th, .article td { border-bottom: 1px solid var(--line); padding: 8px 12px; text-align: start; vertical-align: top; }
.article thead th { background: var(--bg-2); color: var(--ink); }
.article h4 { font-size: 16px; margin: 16px 0 4px; }
.byline { margin: 8px 0 24px; padding: 12px 16px; border-inline-start: 3px solid var(--line); background: var(--bg-2); font-size: 14px; color: var(--ink-2); max-width: 820px; }
.byline p { margin: 4px 0; }
.datanote { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-inline-start: 4px solid var(--blue); border-radius: var(--r); font-size: 14px; color: var(--ink-2); max-width: 980px; }
.datanote p { margin: 4px 0; }
.datanote .status-pill { margin: 0 6px 0 0; font-size: 13px; padding: 2px 10px; }

.asof-extra { color: var(--muted); font-size: 0.92em; }
.glossary-az { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.glossary-az a { display: inline-block; min-width: 32px; text-align: center; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-weight: 700; }
.glossary dt { font-weight: 700; margin-top: 16px; color: var(--ink); scroll-margin-top: 80px; }
.glossary dd { margin: 4px 0 0; color: var(--ink-2); max-width: 820px; }

/* Live price board landing */
.board-preview { position: relative; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; margin: 16px 0 8px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #0b1a30; }
.board-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.board-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-ghost { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.board-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; align-items: end; max-width: 960px; }
.board-form .b-karats { display: flex; flex-wrap: wrap; gap: 6px 14px; border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; margin: 0; }
.board-form .b-karats legend { font-weight: 700; padding: 0 4px; }
.board-link code { word-break: break-all; background: var(--bg-2); padding: 2px 6px; border-radius: 3px; }
