/* Gold Pulse — one stylesheet in the "Swarna" pearl look (light only): ivory background,
   champagne and gold accents. Fonts are stored with the site; no outside requests.
   Layout: left quick-links column · main content · right column kept for one ad. */

@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/cinzel-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/cinzel-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/jakarta-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/jakarta-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* metal: bright gold for chips/buttons (dark text on top), deep gold for large text on ivory */
  --gold-400: #fed053;
  --gold-500: #e5b842;
  --gold-600: #c59828;
  --gold-gradient: linear-gradient(135deg, #fff3b0 0%, #fed053 30%, #d4af37 70%, #8c6615 100%);
  --gold-text-gradient: linear-gradient(135deg, #a57812 0%, #8c6615 45%, #5e440b 100%);
  --silver-gradient: linear-gradient(135deg, #ffffff 0%, #e3e6ea 30%, #a9afb7 70%, #6b7079 100%);
  --font-heading: "Cinzel", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1600px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* pearl ivory and champagne gold */
  --bg-darkest: #f5f1e9;
  --bg-primary: #faf7f2;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --text-main: #181a1f;
  --text-dim: #4b5565;
  --text-muted: #636b78;
  --text-gold: #855f0f;
  --link: #855f0f;
  --border-subtle: rgba(160, 120, 30, .18);
  --border-gold: rgba(202, 158, 48, .42);
  --border-gold-bright: rgba(184, 134, 11, .75);
  --shadow-card: 0 14px 34px -8px rgba(130, 95, 25, .14);
  --radial-glow: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(229, 184, 66, .24), transparent);
  --input-bg: #ffffff;
  --tag-bg: rgba(202, 158, 48, .1);
  --up: #047857;
  --up-bg: rgba(16, 185, 129, .12);
  --down: #be123c;
  --down-bg: rgba(244, 63, 94, .1);
  --grid-line: rgba(0, 0, 0, .08);
  --receipt-bg: linear-gradient(150deg, #ffffff 0%, #f8f4ec 100%);
  --receipt-total-bg: #f4eedf;
  --on-gold: #2b1f04;
  --focus: #1f5fd1;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0;
  background-color: var(--bg-darkest);
  background-image: var(--radial-glow), radial-gradient(circle 600px at 100% 40%, rgba(229, 184, 66, .06), transparent);
  background-repeat: no-repeat;
  color: var(--text-main);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-muted); font-weight: 400; }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.gold-text { background: var(--gold-text-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--text-gold); }
@media (forced-colors: active) { .gold-text { -webkit-text-fill-color: CanvasText; background: none; } }
[hidden] { display: none !important; }
.skip { position: absolute; left: 16px; top: -60px; background: #fff; color: var(--text-main); padding: 8px 12px; border-radius: 8px; z-index: 200; }
.skip:focus { top: 8px; }

/* ---------- market bar (price strip) ---------- */
.market-bar { position: sticky; top: 0; z-index: 100; background: var(--bg-primary); border-bottom: 1px solid var(--border-subtle); }
.market-in { display: flex; align-items: center; gap: 14px; height: 44px; }
.ticker { flex: 1; min-width: 0; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent); }
.ticker-track { display: flex; width: max-content; }
.ticker ul { list-style: none; margin: 0; padding: 0; display: flex; position: relative; }
.ticker li { flex: none; }
.ticker a { display: inline-flex; align-items: baseline; gap: 7px; padding: 0 18px; color: var(--text-main); text-decoration: none; font-size: .78rem; white-space: nowrap; line-height: 44px; }
.ticker a:hover .tk-name { color: var(--text-main); text-decoration: underline; }
.tk-name { color: var(--text-dim); }
.tk-val { font-weight: 800; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  html.js .ticker-track { animation: ticker-slide 48s linear infinite; }
  html.js .ticker:hover .ticker-track, html.js .ticker:focus-within .ticker-track { animation-play-state: paused; }
}
@keyframes ticker-slide { to { transform: translateX(-50%); } }
html:not(.js) .ticker { overflow-x: auto; }
html:not(.js) .ticker ul[aria-hidden] { display: none; }

/* ---------- header ---------- */
.top { background: var(--bg-card); border-bottom: 1px solid var(--border-subtle); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; letter-spacing: .12em; line-height: 1; text-transform: uppercase; }
.brand-sub { font-size: .6rem; font-weight: 700; letter-spacing: .22em; color: var(--text-dim); margin-top: 4px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px 24px; flex-wrap: wrap; }
.nav a { position: relative; color: var(--text-dim); text-decoration: none; font-size: .9rem; font-weight: 600; padding: 8px 0; }
.nav a:hover, .nav a[aria-current] { color: var(--text-main); }
.nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 999px; background: var(--gold-gradient); }
.menu-btn { display: none; width: 48px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--border-subtle); background: var(--tag-bg); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text-main); }

/* ---------- three-column layout ---------- */
.layout { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
main { min-width: 0; padding: 18px 0 56px; container-type: inline-size; container-name: main; }
.side-left, .side-right { position: sticky; top: 44px; padding: 18px 0; max-height: calc(100vh - 44px); overflow-y: auto; scrollbar-width: thin; }
.side-right { overflow: visible; }

/* left: quick links */
.side-box { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: 12px; margin-bottom: 12px; }
.side-title { font-family: var(--font-sans); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-gold); margin: 0 0 8px 4px; }
.side-today dl { margin: 0; display: grid; gap: 7px; padding: 0 4px; }
.side-today dl div { display: grid; gap: 1px; font-size: .82rem; }
.side-today dt { color: var(--text-dim); font-size: .74rem; }
.side-today dd { margin: 0; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.side-more { display: inline-block; margin: 10px 4px 0; font-size: .8rem; font-weight: 700; text-decoration: none; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.side-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--text-main); text-decoration: none; font-size: .85rem; line-height: 1.35; }
.side-list a:hover { background: var(--tag-bg); }
.side-list a[aria-current] { background: rgba(229, 184, 66, .16); color: var(--text-gold); font-weight: 700; }
.side-val { flex: none; font-variant-numeric: tabular-nums; color: var(--text-dim); font-size: .78rem; }
.side-extra { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border-subtle); }

/* right: ad space. Fixed size, so an ad loading here never moves the content. */
.ad-slot { width: 300px; min-height: 620px; }
.ad-label { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.ad-holder { width: 300px; height: 600px; display: grid; place-items: center; text-align: center; border: 1px dashed var(--border-gold); border-radius: var(--r-md); color: var(--text-muted); font-size: .8rem; line-height: 1.5;
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(229, 184, 66, .05) 12px 24px); }

/* ---------- page heads ---------- */
.sample-note { background: rgba(229, 184, 66, .12); color: var(--text-gold); border: 1px dashed var(--border-gold-bright); border-radius: var(--r-md); padding: 8px 14px; margin-bottom: 14px; font-size: .86rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--text-muted); margin-bottom: 8px; }
.crumbs a { color: var(--text-dim); }
.page-head { margin-bottom: 22px; }
.page-head .meta, .top-head .meta { margin-top: 6px; color: var(--text-dim); font-size: .92rem; }
.eyebrow, .section-tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-gold); margin-bottom: 6px; }
.lede { margin-top: 10px; color: var(--text-dim); max-width: 70ch; font-size: 1.02rem; }

/* compact top: title on the left, weight chips on the right, price cards straight below */
.top-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.top-head .units { margin-top: 0; }
.ref-note { margin-top: 12px; font-size: .84rem; color: var(--text-muted); }
.ref-note a { font-weight: 700; text-decoration: none; margin-left: 4px; }
.unit-note { margin: -6px 0 12px; font-size: .82rem; color: var(--text-muted); }
.unit-note span { font-weight: 700; color: var(--text-dim); }

/* weight chips */
.units { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-top: 14px; }
.units-label { font-size: .74rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; background: var(--bg-card); padding: 4px; border-radius: 999px; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-card); }
.chips button { border: 0; background: transparent; cursor: pointer; padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--text-dim); min-height: 38px; }
.chips button:hover { color: var(--text-main); background: rgba(229, 184, 66, .1); }
.chips button[aria-pressed="true"] { background: var(--gold-gradient); color: var(--on-gold); }
html:not(.js) .units { display: none; }

/* ---------- sections ---------- */
.block { margin-top: 44px; }
.block > h2, .block-head { margin-bottom: 16px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.block-head h2 { margin: 0; }
.more { font-weight: 700; text-decoration: none; font-size: .92rem; }
.intro .lede { margin-top: 10px; }

/* ---------- rate cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  container-type: inline-size;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--shadow-card);
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3.5px; background: var(--gold-gradient); opacity: .45; }
.card-k24 { border-color: var(--border-gold); box-shadow: 0 16px 40px -10px rgba(229, 184, 66, .3); }
.card-k24::before, .card-k22::before { opacity: 1; }
.card-k22 { border-color: rgba(202, 158, 48, .55); }
.card-silver::before { background: var(--silver-gradient); opacity: 1; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.card-title { font-family: var(--font-heading); font-size: 1.12rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; white-space: nowrap; }
.card-purity { display: block; font-family: var(--font-sans); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-gold); margin-top: 3px; }
.card-silver .card-purity { color: var(--text-dim); }
.star { white-space: nowrap; font-family: var(--font-sans); font-size: .6rem; font-weight: 800; letter-spacing: .06em; background: rgba(229, 184, 66, .18); color: var(--text-gold); padding: 2px 7px; border-radius: var(--r-sm); border: 1px solid var(--border-gold); }
.tag { flex: none; font-size: .66rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--tag-bg); color: var(--text-dim); border: 1px solid var(--border-subtle); white-space: nowrap; }
.tag-bis { color: var(--up); border-color: rgba(16, 185, 129, .35); }
.card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.card-price .amt { font-size: clamp(1.45rem, 13cqi, 2.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; }
.card-price .amt::first-letter { color: var(--text-gold); }
.card-price .per { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.card-chg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border-subtle); }
.vs { color: var(--text-muted); font-size: .74rem; }
.card-stats { display: grid; gap: 7px; margin: 0 0 16px; flex: 1; align-content: start; }
.card-stats div { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; }
.card-stats dt { color: var(--text-dim); flex: none; }
.card-stats dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.card-stats dd.hl { color: var(--text-gold); }
.card-btn { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--tag-bg); border: 1px solid var(--border-subtle); color: var(--text-gold); font-size: .82rem; font-weight: 700; text-decoration: none; transition: background-color .2s, border-color .2s; }
.card-btn:hover { background: rgba(229, 184, 66, .2); border-color: var(--border-gold); }
/* narrow cards (4 in a row): stack the small rows instead of squeezing them */
@container (max-width: 250px) {
  .card-top { flex-direction: column; }
  .card-stats div { flex-direction: column; gap: 0; }
  .card-stats dd { text-align: left; }
  .vs { display: none; }
}

/* change badges */
.chg { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; border-radius: var(--r-sm); }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.chg.same { color: var(--text-muted); font-weight: 600; }
.chg [aria-hidden] { font-size: .72em; }
.chg-big { padding: 3px 9px; font-size: .78rem; }
.chg-big.up { background: var(--up-bg); }
.chg-big.down { background: var(--down-bg); }
.chg-big.same { background: var(--tag-bg); }

/* side note (gold on silver pages and the other way round) */
.side-note { margin-top: 16px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-left: 3px solid var(--gold-500); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; color: var(--text-dim); font-size: .92rem; }
.side-note strong { color: var(--text-main); }
.side-note a { font-weight: 700; margin-left: auto; text-decoration: none; }

/* ---------- tables ---------- */
.table-scroll { position: relative; overflow-x: auto; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.rates { width: 100%; border-collapse: collapse; min-width: 480px; }
.rates th, .rates td { padding: 12px 18px; text-align: right; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.rates th:first-child { text-align: left; }
.rates thead th { background: var(--tag-bg); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); font-weight: 800; }
.rates tbody tr:last-child > * { border-bottom: 0; }
.rates tbody tr:hover { background: rgba(229, 184, 66, .06); }
.rates tbody th { font-weight: 700; }
.rates td .num { display: block; }
.rates td .chg { margin-top: 3px; }
.rates th small { display: block; font-weight: 500; color: var(--text-muted); font-size: .78rem; }

/* ---------- trend chart ---------- */
.trend { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-card); }
.toggles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-bottom: 16px; }
.seg { display: inline-flex; background: var(--bg-primary); border: 1px solid var(--border-subtle); border-radius: var(--r-sm); padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--text-dim); padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: .82rem; font-weight: 600; min-height: 38px; }
.seg button:hover { color: var(--text-main); }
.seg button[aria-pressed="true"] { background: var(--gold-gradient); color: var(--on-gold); font-weight: 800; }
html:not(.js) .toggles { display: none; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.stats div { background: var(--bg-primary); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: 10px 14px; }
.stats dt { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.stats dd { margin: 2px 0 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.stats small { display: block; font-weight: 500; color: var(--text-muted); font-size: .76rem; }
.chart { display: block; width: 100%; height: auto; }
.chart .grid { stroke: var(--grid-line); stroke-width: 1; }
.chart .ylab, .chart .xlab { fill: var(--text-muted); font-size: 12px; font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
.chart .ylab { text-anchor: end; }
.chart .line { fill: none; stroke: var(--gold-600); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.chart .stop-a { stop-color: var(--gold-500); stop-opacity: .32; }
.chart .stop-b { stop-color: var(--gold-500); stop-opacity: 0; }
.chart .pt { fill: #fff; stroke: var(--gold-600); stroke-width: 2; }
.chart .dot { fill: var(--gold-600); stroke: #fff; stroke-width: 2; }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: var(--gold-500); fill-opacity: .35; }

/* ---------- calculator (form + receipt) ---------- */
.calc { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
.calc-left { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-card); display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field-label { font-size: .8rem; font-weight: 800; letter-spacing: .02em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.pills legend { padding: 0; margin-bottom: 8px; font-size: .8rem; font-weight: 800; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pills span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: var(--r-sm); background: var(--bg-primary); border: 1px solid var(--border-subtle); font-size: .82rem; font-weight: 700; color: var(--text-dim); cursor: pointer; }
.pills label:hover span { border-color: var(--border-gold); color: var(--text-main); }
.pills input:checked + span { background: var(--gold-gradient); color: var(--on-gold); border-color: transparent; }
.pills input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool label { display: grid; gap: 8px; font-size: .8rem; font-weight: 800; }
.calc input[type=number], .calc select, .tool input[type=number], .tool select, .search input {
  width: 100%; min-height: 44px; background: var(--input-bg); border: 1px solid var(--border-subtle); border-radius: var(--r-sm);
  padding: 10px 14px; color: var(--text-main); font-weight: 700;
}
.calc input[type=number]:focus, .calc select:focus, .tool input:focus, .tool select:focus, .search input:focus { border-color: var(--gold-600); outline: none; box-shadow: 0 0 0 3px rgba(229, 184, 66, .25); }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; }
.slider-val { font-weight: 800; color: var(--text-gold); font-variant-numeric: tabular-nums; }
.calc input[type=range] { width: 100%; accent-color: var(--gold-600); height: 32px; }
.hint { font-size: .74rem; color: var(--text-muted); }
.check { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold-600); }
.receipt { position: relative; overflow: hidden; background: var(--receipt-bg); border: 1px solid var(--border-gold); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-card); }
.receipt::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gold-gradient); }
.receipt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--border-gold); }
.receipt-brand { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.receipt-badge { font-size: .72rem; font-weight: 700; background: rgba(229, 184, 66, .15); color: var(--text-gold); border: 1px solid var(--border-gold); padding: 3px 10px; border-radius: 999px; }
.receipt dl { margin: 0; display: grid; gap: 10px; }
.receipt dl div { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; }
.receipt dt { color: var(--text-dim); }
.receipt dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.receipt .total { margin-top: 8px; background: var(--receipt-total-bg); border: 1px solid var(--border-gold); border-radius: var(--r-md); padding: 14px 16px; align-items: center; }
.receipt .total dt { color: var(--text-main); font-weight: 800; }
.receipt .total dd { font-size: 1.4rem; font-weight: 800; color: var(--text-gold); }
.btn-gold { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 16px; min-height: 48px; border-radius: var(--r-sm); border: 1px solid transparent; background: var(--gold-gradient); color: var(--on-gold); font-weight: 800; font-size: .9rem; cursor: pointer; box-shadow: 0 6px 18px -6px rgba(197, 152, 40, .55); }
.btn-gold:hover { filter: brightness(1.04); }
html:not(.js) .btn-gold { display: none; }
.receipt .hint { margin-top: 12px; }

/* tools: plain output grids */
.out-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.out-grid div { background: var(--bg-primary); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: 12px 14px; }
.out-grid dt { font-size: .74rem; color: var(--text-muted); font-weight: 700; }
.out-grid dd { margin: 3px 0 0; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.out-grid .total { background: rgba(229, 184, 66, .12); border-color: var(--border-gold); }
.out-grid .total dd { color: var(--text-gold); }
.tool { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-card); display: grid; gap: 18px; }

/* ---------- hallmark insight cards ---------- */
.insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.insight { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 10px; }
.insight-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(229, 184, 66, .14); border: 1px solid var(--border-gold); color: var(--text-gold); font-weight: 800; font-family: var(--font-heading); }
.insight h3 { font-family: var(--font-heading); font-size: 1.05rem; }
.insight p, .insight li { color: var(--text-dim); font-size: .9rem; }
.insight ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.insight a { margin-top: auto; font-weight: 700; text-decoration: none; font-size: .88rem; }

/* ---------- city cards ---------- */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.city { display: grid; gap: 4px; text-decoration: none; color: var(--text-main); background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: 14px 16px; transition: border-color .2s, transform .28s var(--ease); }
.city:hover { border-color: var(--border-gold-bright); }
.city-name { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; }
.city-market { font-size: .74rem; color: var(--text-muted); }
.city-rows { display: grid; gap: 4px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border-subtle); font-size: .84rem; }
.city-rows div { display: grid; grid-template-columns: 1fr auto 4.6em; gap: 8px; align-items: baseline; white-space: nowrap; }
.city-rows div > span:first-child { color: var(--text-dim); }
.city-rows strong { font-variant-numeric: tabular-nums; text-align: right; }
.city-rows .chg { justify-self: end; }
.search input { width: min(280px, 100%); font-weight: 500; }

/* ---------- guides ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.guide-card { display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--text-main); background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 18px; transition: border-color .2s, transform .28s var(--ease); }
.guide-card:hover { border-color: var(--border-gold-bright); }
.guide-topic { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--text-gold); }
.guide-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.guide-desc { color: var(--text-dim); font-size: .88rem; }
/* lift only on things you can click, and only where a mouse can hover */
@media (hover: hover) {
  .city:hover, .guide-card:hover { transform: translateY(-3px); }
}

/* ---------- faq ---------- */
.faq { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-md); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 700; list-style-position: inside; }
.faq summary::marker { color: var(--gold-600); }
.faq[open] { border-color: var(--border-gold); }
.faq > div { padding: 0 18px 16px; color: var(--text-dim); }

/* ---------- long text (guides, about, legal) ---------- */
.prose { max-width: 78ch; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow-card); line-height: 1.75; }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); margin-top: 30px; }
.prose h3 { font-size: 1.05rem; margin-top: 20px; font-family: var(--font-sans); font-weight: 800; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--gold-600); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; line-height: 1.5; }
.prose th, .prose td { border: 1px solid var(--border-subtle); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose thead th { background: var(--tag-bg); }
.prose .lede { margin-top: 0; font-size: 1.06rem; }
.prose.guide { margin-top: 18px; }
section.prose { margin-top: 44px; }
.big-link { font-size: 1.2rem; font-weight: 800; }

/* ---------- footer ---------- */
.foot { margin-top: 20px; background: var(--bg-card); border-top: 1px solid var(--border-subtle); padding: 36px 0 30px; color: var(--text-dim); font-size: .88rem; }
.foot .wrap > * + * { margin-top: 14px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--border-subtle); }
.foot-cols h2 { font-size: .76rem; font-family: var(--font-sans); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--text-gold); margin-bottom: 10px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot-cols a { color: var(--text-dim); text-decoration: none; }
.foot-cols a:hover { color: var(--text-main); text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { color: var(--text-dim); }
.foot-copy { color: var(--text-muted); }

/* ---------- main column width decides card columns ---------- */
@container main (max-width: 880px) {
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { grid-template-columns: 1fr; }
  .insights { grid-template-columns: 1fr; }
}
@container main (max-width: 640px) {
  .cards, .cards-2, .cards-4 { grid-template-columns: 1fr; }
  .top-head { align-items: flex-start; }
}

/* ---------- page width decides the side columns ---------- */
@media (max-width: 1439px) {            /* laptops: keep the ad column, drop the quick-links column */
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .side-left { display: none; }
}
@media (max-width: 1099px) {            /* tablets and phones: one column */
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side-right { display: none; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  html.js .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 6px; }
  html.js .nav.open { display: flex; }
  .nav a { padding: 13px 4px; border-top: 1px solid var(--border-subtle); }
  .nav a[aria-current]::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 8px; height: 8px; transform: translateY(-50%); }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:last-child { grid-column: 1 / -1; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .side-note a { margin-left: 0; }
  .block { margin-top: 36px; }
}
@media (max-width: 520px) {
  .wrap, .layout { padding: 0 14px; }
  .row-2 { grid-template-columns: 1fr; }
  .calc-left, .receipt, .tool, .trend, .card { padding: 16px; }
  .rates { min-width: 0; font-size: .86rem; }
  .rates th, .rates td { padding: 10px 7px; }
  .rates th:first-child { padding-left: 12px; }
  .rates td:last-child, .rates th:last-child { padding-right: 12px; }
  .rates thead th { font-size: .66rem; letter-spacing: .04em; }
  .rates .chg { font-size: .72rem; }
  .chart .ylab, .chart .xlab { font-size: 19px; }
  .brand-name { font-size: 1.15rem; }
  .chips { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex: none; padding: 6px 11px; font-size: .8rem; }
  .units { width: 100%; }
  .units-label { display: none; }
}
/* phones and tablets: bigger tap targets */
@media (pointer: coarse) {
  .chips button, .seg button, .pills span { min-height: 48px; }
  .card-btn { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .market-bar, .top, .foot, .toggles, #calculator, .skip, .units, .side-left, .side-right { display: none; }
  .layout { display: block; }
  body { background: #fff; color: #000; }
}
