/* כמה שווה — warm paper, white cards, graphite ink, brass for gold.
   Contrast (WCAG): ink ≥15:1, ink-2 ≥7.4:1, brass/up/down ≥5.4:1 on bg, surface and tints, both themes. */
:root {
  --bg: #F3F1EC;
  --surface: #FFFFFF;
  --surface-2: #F7F5F0;
  --raised: #FFFFFF;
  --ink: #1A1C1B;
  --ink-2: #4A4F4C;
  --rule: #E2DED4;
  --rule-2: #8E8778;       /* control borders, ≥3:1 */
  --brass: #7A5A12;        /* text-safe brass */
  --brass-fill: #C9A23F;   /* marks, fills */
  --logo-gold: #B8892B;
  --up: #16693F;
  --down: #B42318;
  --focus: #7A5A12;
  --header-bg: rgb(243 241 236 / .84);
  --shadow: 0 1px 2px rgb(60 45 10 / .05), 0 4px 14px rgb(60 45 10 / .06);
  --shadow-lg: 0 2px 4px rgb(60 45 10 / .06), 0 14px 32px rgb(60 45 10 / .1);
  --display: 'Frank Ruhl Libre', 'Times New Roman', serif;
  --text: 'IBM Plex Sans Hebrew', system-ui, sans-serif;
  --wide: 74rem;
  --measure: 70ch;
  --r: 14px;
  --r-lg: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171512; --surface: #211E1A; --surface-2: #2A2620; --raised: #36302A;
    --ink: #F3EFE7; --ink-2: #BEB6A9; --rule: #38332B; --rule-2: #7A7265;
    --brass: #E8C46B; --brass-fill: #D4AF4A; --logo-gold: #D4A64A; --up: #63CF92; --down: #FF9182; --focus: #E8C46B;
    --header-bg: rgb(23 21 18 / .82);
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 4px 14px rgb(0 0 0 / .22);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 14px 32px rgb(0 0 0 / .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171512; --surface: #211E1A; --surface-2: #2A2620; --raised: #36302A;
  --ink: #F3EFE7; --ink-2: #BEB6A9; --rule: #38332B; --rule-2: #7A7265;
  --brass: #E8C46B; --brass-fill: #D4AF4A; --logo-gold: #D4A64A; --up: #63CF92; --down: #FF9182; --focus: #E8C46B;
  --header-bg: rgb(23 21 18 / .82);
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 4px 14px rgb(0 0 0 / .22);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 14px 32px rgb(0 0 0 / .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 7rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  font-variant-numeric: tabular-nums lining-nums;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 20; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
bdi { unicode-bidi: isolate; direction: ltr; }
svg { overflow: hidden; }

/* ---------- frame ---------- */
.top-in, main, .foot-in { max-width: var(--wide); margin-inline: auto; padding-inline: 16px; }
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg); border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .top { background: var(--bg); } }
.top-in { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .75rem; padding-block: .3rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-inline-end: auto; color: var(--ink); text-decoration: none; }
.logo { display: block; block-size: 32px; inline-size: auto; aspect-ratio: 681 / 140; }
.logo-coin { fill: var(--logo-gold); }
.top nav { display: flex; gap: .25rem; }
.top nav a {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding-inline: .85rem; border-radius: 10px;
  font: 500 1rem/1.2 var(--text); color: var(--ink-2); text-decoration: none;
}
.top nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.top nav a[aria-current] { color: var(--ink); font-weight: 600; background: color-mix(in srgb, var(--brass-fill) 16%, transparent); }
.top nav a[aria-current]::after { content: ''; position: absolute; inset-inline: .85rem; bottom: 5px; height: 2px; border-radius: 2px; background: var(--brass-fill); }
.theme-btn {
  display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; padding: 0; cursor: pointer;
  color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
}
.theme-btn:hover { border-color: var(--brass-fill); }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}
:root:not([data-js]) .theme-btn { display: none; }
@media (max-width: 39.99rem) {
  .top nav { order: 3; flex: 1 0 100%; justify-content: space-between; }
  .top nav a { flex: 1; padding-inline: .5rem; }
  .theme-btn { order: 2; }
}
@media (min-width: 40rem) { .logo { block-size: 38px; } }

main { padding-bottom: 3.5rem; }
main > * { margin-block: 0; }
main > :first-child { margin-top: 1.25rem; }
main > * + * { margin-top: 3rem; }
main > .crumbs + * { margin-top: .75rem; }
.crumbs { font-size: .9375rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); display: inline-block; padding-block: .35rem; }

.sec-h { display: flex; align-items: center; gap: .6rem; font: 700 1.6rem/1.25 var(--display); margin: 0 0 1.1rem; }
.sec-h::before { content: ''; flex: none; inline-size: .3rem; block-size: 1.05em; border-radius: 3px; background: linear-gradient(var(--brass-fill), color-mix(in srgb, var(--brass-fill) 45%, transparent)); }
.sec-h-sm { font: 700 1.25rem/1.3 var(--display); }
.lede { color: var(--ink-2); font-size: 1.125rem; max-width: var(--measure); margin: 0 0 1.25rem; }
.fine { color: var(--ink-2); font-size: .9375rem; max-width: var(--measure); }
.more { margin-top: 1rem; }
.more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--brass); }
.page-h h1 { font: 900 clamp(2rem, 6vw, 3rem)/1.1 var(--display); margin: .5rem 0 .75rem; }

/* cards */
.panel, .card, .offer, .chart, .scroll-x {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.card { overflow: hidden; border-radius: var(--r); }
.panel { padding: 1.25rem; }
.cols { display: grid; gap: 3rem 1.5rem; align-items: start; }
.cols > * { min-width: 0; }

/* ---------- hero ---------- */
.hero { display: grid; gap: 1rem; align-items: stretch; }
.hero > * { min-width: 0; }
.hero-main {
  position: relative;
  background-image: radial-gradient(110% 70% at 100% 0%, color-mix(in srgb, var(--brass-fill) 11%, transparent), transparent 65%);
}
.side { display: flex; flex-direction: column; gap: 1rem; }
.side-h { font: 600 1rem/1.4 var(--text); color: var(--ink-2); margin: 0; }
.side-note { margin: auto 0 0; font-size: .9375rem; color: var(--ink-2); }
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem .75rem; padding-block: .55rem; border-bottom: 1px solid var(--rule); }
.kv li:last-child { border-bottom: 0; }
.kv .k { color: var(--ink-2); }
.kv a.k { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; }
.kv a.k:hover { color: var(--brass); text-decoration: underline; }
.kv .v { display: inline-flex; align-items: center; gap: .6rem; font: 700 1.25rem/1.3 var(--display); margin-inline-start: auto; }
.facts { display: flex; gap: 1rem; align-items: center; }
.facts p { margin: 0; }

/* live indicator */
.live {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0; padding: .2rem .7rem;
  font-size: .875rem; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--rule); border-radius: 999px; white-space: nowrap;
}
.live-dot { position: relative; inline-size: .55rem; block-size: .55rem; border-radius: 50%; background: var(--rule-2); flex: none; }
:root[data-live="ok"] .live { color: var(--ink); }
:root[data-live="ok"] .live-dot { background: var(--up); }
:root[data-live="ok"] .live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--up); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(3); opacity: 0; } }

/* ---------- the ask: a sentence that answers itself ---------- */
.ask { margin: 0; container-type: inline-size; }
.ask-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .9rem; }
.ask-title { font: 600 1.0625rem/1.4 var(--text); color: var(--ink-2); margin: 0; }
.ask-q {
  font: 500 clamp(1.45rem, 4.6vw, 2.15rem)/1.55 var(--text);
  margin: 0; max-width: 40rem; text-wrap: balance;
}
.ask-q input, .ask-q select {
  font: inherit; color: var(--ink); background: transparent; border: 0;
  border-bottom: 2px solid var(--brass); border-radius: 0; padding: 0 .1em; margin: 0 .05em;
  field-sizing: content; min-width: 1.6ch; max-width: 7ch; text-align: center;
}
.ask-q select { max-width: none; padding-inline-end: 1.1em; appearance: none; cursor: pointer;
  background: linear-gradient(45deg, transparent 50%, var(--brass) 50%) left .1em center / .35em .35em no-repeat,
              linear-gradient(-45deg, transparent 50%, var(--brass) 50%) left .45em center / .35em .35em no-repeat; }
.ask-q select option { color: var(--ink); background: var(--surface); }
.ask-q input:focus, .ask-q select:focus { outline: none; background-color: color-mix(in srgb, var(--brass-fill) 16%, transparent); }
.ask-q input:focus-visible, .ask-q select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ask-a {
  display: block; margin: .35rem 0 .25rem;
  font: 900 clamp(3.2rem, 15vw, 7rem)/1.05 var(--display);
  font-size: clamp(3.2rem, 18cqi, 7rem);
  letter-spacing: -.02em; overflow-wrap: anywhere;
}
.ask-a .ils { color: var(--brass); font-weight: 500; font-size: .55em; }
.ask-a.tick [data-out] { display: inline-block; animation: settle .45s ease-out; }
@keyframes settle { from { opacity: .35; transform: translateY(.06em); } }
.ask-note { color: var(--ink-2); font-size: .9375rem; margin: .5rem 0 0; }
.swap {
  font: inherit; font-weight: 500; color: var(--brass); background: none; border: 0; padding: .6rem 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: .2em;
}

.tabs { display: inline-flex; gap: .25rem; padding: .25rem; margin-bottom: 1.25rem; background: var(--surface-2); border: 1px solid var(--rule); border-radius: 13px; }
.tabs button {
  min-height: 44px; padding-inline: 1.15rem; border: 0; border-radius: 10px; cursor: pointer;
  font: 500 1rem var(--text); color: var(--ink-2); background: none;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; background: var(--raised); box-shadow: inset 0 -2px 0 var(--brass-fill), var(--shadow); }

/* ---------- change chip & sparkline ---------- */
.chg { display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; font: 600 .9375rem/1.2 var(--text); padding: .2em .55em; border-radius: 999px; }
.chg span[aria-hidden] { font-size: .7em; }
.chg-up { color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent); }
.chg-down { color: var(--down); background: color-mix(in srgb, var(--down) 12%, transparent); }
.chg-flat { color: var(--ink-2); background: color-mix(in srgb, var(--ink-2) 10%, transparent); }
.chg-lg { font-size: 1.0625rem; }
.rc-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0; }
.rc-val { font: 900 clamp(2.4rem, 7vw, 3.2rem)/1.05 var(--display); letter-spacing: -.01em; }
.rc-val .ils { color: var(--brass); font-weight: 500; font-size: .6em; }
.spark { margin: 0; }
.spark-box { position: relative; }
.spark svg { display: block; inline-size: 100%; block-size: 4.5rem; overflow: visible; }
.spark-line { fill: none; stroke: var(--brass); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-area { fill: color-mix(in srgb, var(--brass-fill) 16%, transparent); stroke: none; }
.spark-pt { position: absolute; inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 2px var(--surface); transform: translate(-50%, -50%); }
.spark-cap { margin: .4rem 0 0; font-size: .9375rem; color: var(--ink-2); }

/* ---------- hallmark cards ---------- */
.stamp {
  display: inline-grid; place-items: center; width: 4.1rem; height: 2.8rem; flex: none;
  border: 1.5px solid var(--brass-fill); border-radius: 50%; color: var(--brass); line-height: 1;
  background: color-mix(in srgb, var(--brass-fill) 8%, transparent);
}
.stamp b { font: 700 1.05rem var(--text); letter-spacing: .03em; margin-top: .3rem; }
.stamp i { font: 500 .66rem var(--text); font-style: normal; color: var(--ink-2); margin-top: -.35rem; }
.hallmarks { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hallmarks a {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; height: 100%;
  padding: 1rem; text-decoration: none;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.hallmarks a::before { content: ''; position: absolute; top: -1px; inset-inline: 1rem; height: 3px; border-radius: 0 0 3px 3px; background: var(--brass-fill); }
.hallmarks a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brass-fill) 60%, var(--rule)); }
.hallmarks a:hover .hm-val { color: var(--brass); }
.hallmarks li[aria-current] a { border-color: var(--brass-fill); background: color-mix(in srgb, var(--brass-fill) 9%, var(--surface)); }
.hm-body { display: grid; line-height: 1.3; }
.hm-name { font-size: .9375rem; color: var(--ink-2); font-weight: 500; }
.hm-val { font: 700 1.3rem/1.3 var(--display); }
.hm-unit { font-size: .875rem; color: var(--ink-2); }

/* ---------- tables ---------- */
table { border-collapse: collapse; width: 100%; }
.board th, .board td { padding: .7rem 1.1rem; border-bottom: 1px solid var(--rule); text-align: start; font-weight: 400; }
.board tbody tr:last-child > * { border-bottom: 0; }
.board thead th { font-size: .875rem; color: var(--ink-2); font-weight: 500; background: var(--surface-2); padding-block: .6rem; }
.board td:nth-child(n+2), .board thead th:nth-child(n+2) { text-align: end; }
.board tbody tr { transition: background-color .15s ease; }
.board tbody tr:hover { background: color-mix(in srgb, var(--brass-fill) 7%, transparent); }
.board tbody a { text-decoration: none; display: inline-flex; gap: .65rem; align-items: center; min-height: 44px; font-weight: 500; }
.board tbody a:hover { text-decoration: underline; }
.board td:nth-child(2) { font: 700 1.15rem var(--display); white-space: nowrap; }
.code {
  display: inline-block; min-inline-size: 2.9rem; text-align: center; padding: .1rem .35rem;
  font: 600 .8125rem/1.4 var(--text); letter-spacing: .04em; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--rule); border-radius: 6px;
}
@media (max-width: 39.99rem) {
  .board-wrap { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
  .board { border-collapse: separate; border-spacing: 0 .55rem; margin-block: -.55rem; }
  .board thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .board tbody > tr > * { background: var(--surface); border-block: 1px solid var(--rule); padding: .45rem .7rem; }
  .board tbody tr:last-child > * { border-bottom: 1px solid var(--rule); }
  .board tbody > tr > :first-child { border-inline-start: 1px solid var(--rule); border-start-start-radius: var(--r); border-end-start-radius: var(--r); }
  .board tbody > tr > :last-child { border-inline-end: 1px solid var(--rule); border-start-end-radius: var(--r); border-end-end-radius: var(--r); }
  .board tbody tr:hover { background: none; }
  .board tbody a { flex-direction: column; align-items: flex-start; gap: .15rem; padding-block: .25rem; }
  .board td:nth-child(2) { font-size: 1.05rem; }
}
.list-t th, .list-t td { padding: .6rem 1.1rem; border-bottom: 1px solid var(--rule); font-weight: 400; text-align: start; }
.list-t tr:last-child > * { border-bottom: 0; }
.list-t tbody tr:nth-child(even) { background: var(--surface-2); }
.list-t td { text-align: end; font: 700 1.125rem var(--display); white-space: nowrap; }
.list-t th a { display: inline-flex; align-items: center; min-height: 36px; font-weight: 500; }
.scroll-x { overflow-x: auto; border-radius: var(--r); }
.grid-t { min-width: 36rem; font-size: 1rem; }
.grid-t th, .grid-t td { padding: .6rem .8rem; border-bottom: 1px solid var(--rule); text-align: end; font-weight: 400; }
.grid-t tbody tr:last-child > * { border-bottom: 0; }
.grid-t tbody tr:nth-child(even) { background: var(--surface-2); }
.grid-t th[scope="row"] { text-align: start; color: var(--ink-2); white-space: nowrap; font-weight: 500; }
.grid-t thead th { color: var(--brass); font-weight: 700; background: color-mix(in srgb, var(--brass-fill) 12%, var(--surface)); }
.grid-t td a { text-decoration: none; display: inline-block; padding-block: .2rem; }
.grid-t td a:hover { text-decoration: underline; color: var(--brass); }
.then p { max-width: var(--measure); margin: 0; }

/* ---------- chart ---------- */
.chart { margin-inline: 0; padding: 1.25rem 1.25rem .75rem; }
.chart figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; margin-bottom: .8rem; }
.chart-delta { color: var(--ink-2); font-size: .9375rem; }
.chart-box { position: relative; margin-bottom: 1.6rem; }
.chart svg { width: 100%; height: 13.75rem; display: block; overflow: visible; touch-action: pan-y; }
.chart .grid { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .tick { fill: var(--ink-2); font: 400 11px var(--text); }
.chart .line { fill: none; stroke: var(--brass); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.ytick { position: absolute; right: 0; transform: translateY(-50%); font-size: .8125rem; color: var(--ink-2); background: var(--surface); padding-inline: .2rem; }
.xtick { position: absolute; bottom: -1.5rem; transform: translateX(-10%); font-size: .8125rem; color: var(--ink-2); }
.xtick-end { transform: translateX(-90%); }
.pt { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 2px var(--surface); transform: translate(-50%, -50%); pointer-events: none; }
.pt-h { background: var(--surface); border: 2px solid var(--brass); width: 12px; height: 12px; }
.chart .hline { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.tip { position: absolute; top: 0; pointer-events: none; background: var(--raised); color: var(--ink); border: 1px solid var(--rule); border-radius: 8px; box-shadow: var(--shadow); padding: .3rem .6rem; font-size: .875rem; white-space: nowrap; transform: translateX(-50%); direction: rtl; }
.table-view { margin-top: .75rem; font-size: .9375rem; }
.table-view summary { cursor: pointer; color: var(--ink-2); min-height: 44px; display: flex; align-items: center; }
.table-view table { margin-top: .5rem; max-width: 22rem; }
.table-view td { padding: .3rem .25rem; border-bottom: 1px solid var(--rule); }
.table-view td:last-child { text-align: end; }
.table-view tbody { display: block; max-height: 18rem; overflow-y: auto; }
.table-view thead, .table-view tbody tr { display: table; width: 100%; table-layout: fixed; }
.table-view th { text-align: start; font-weight: 500; color: var(--ink-2); padding: .3rem .25rem; }
.table-view th:last-child { text-align: end; }

/* ---------- offer checker ---------- */
.offer { position: relative; padding: 1.5rem 1.25rem; overflow: hidden; }
.offer::before { content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; background: linear-gradient(90deg, var(--brass-fill), color-mix(in srgb, var(--brass-fill) 35%, transparent)); }
.offer .lede { font-size: 1.0625rem; }
.offer-form { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.offer-form label { display: grid; gap: .35rem; font-size: .9375rem; font-weight: 500; color: var(--ink-2); }
.offer-form .field { display: flex; align-items: center; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--surface-2); }
.offer-form .field:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.offer-form .field span { padding-inline: .7rem; color: var(--ink-2); }
.offer-form input, .offer-form select { font: 600 1.15rem var(--text); color: var(--ink); background: var(--surface-2); border: 0; border-radius: 10px; padding: .6rem .75rem; min-height: 48px; width: 100%; min-width: 0; }
.offer-form input::placeholder { color: var(--ink-2); opacity: .8; }
.offer-form select { border: 1px solid var(--rule-2); }
.offer-form input:focus { outline: none; }
.gauge { margin-top: 1.4rem; }
.gauge-bar { position: relative; height: .75rem; margin-bottom: 1.5rem; background: color-mix(in srgb, var(--rule-2) 30%, transparent); border-radius: 999px; }
.gauge-fill { position: absolute; inset-block: 0; inset-inline-start: 0; background: linear-gradient(90deg, var(--brass-fill), color-mix(in srgb, var(--brass-fill) 75%, var(--ink))); border-radius: 999px; transition: inline-size .35s ease; max-inline-size: 100%; }
.gauge-mark { position: absolute; inset-block: -.3rem; inset-inline-start: calc(100% / 1.2); width: 2px; background: var(--ink); }
.gauge-text { margin: .8rem 0 0; }
.gauge-lbl { position: absolute; top: 1.05rem; inset-inline-start: calc(100% / 1.2); transform: translateX(50%); font-size: .8125rem; color: var(--ink-2); white-space: nowrap; }
.gauge-text strong { font-weight: 600; }
.gauge-pct { font: 900 2.4rem/1 var(--display); color: var(--brass); display: block; margin-bottom: .25rem; }

/* ---------- misc blocks ---------- */
.steps { padding-inline-start: 1.25rem; max-width: var(--measure); margin: 0; }
.steps li { margin-bottom: .75rem; padding-inline-start: .25rem; }
.steps li::marker { font-family: var(--display); font-weight: 700; color: var(--brass); }
.steps + .side-h { margin-top: 1.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 1rem;
  text-decoration: none; font-size: 1rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; box-shadow: var(--shadow);
}
.chips a:hover { border-color: var(--brass-fill); color: var(--brass); }
.faq { max-width: var(--measure); }
.faq details { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; margin-bottom: .6rem; }
.faq details[open] { border-color: color-mix(in srgb, var(--brass-fill) 55%, var(--rule)); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; padding: .65rem 1.1rem;
  cursor: pointer; font-weight: 600; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font: 500 1.4rem/1 var(--text); color: var(--brass); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 1.1rem 1rem; color: var(--ink-2); }
.prose { max-width: var(--measure); }
.prose h2 { font: 700 1.4rem var(--display); margin: 2rem 0 .5rem; }
.formula { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: .75rem 1rem; font-size: 1rem; overflow-x: auto; text-align: left; }

.foot { border-top: 1px solid var(--rule); background: var(--surface); padding-block: 2.25rem 6rem; color: var(--ink-2); font-size: .9375rem; }
.foot p { max-width: var(--measure); }
.foot a { color: var(--ink); }

/* ---------- breakpoints ---------- */
@media (max-width: 29.99rem) {
  .stamp { width: 3.3rem; height: 2.4rem; }
  .stamp b { font-size: .9rem; }
  .hm-val { font-size: 1.2rem; }
  .ask-q input { max-width: 5.5ch; }
}
@media (min-width: 30rem) {
  .hallmarks a { flex-direction: row; align-items: center; gap: .9rem; }
}
@media (min-width: 40rem) {
  html { scroll-padding-top: 5rem; }
  .top-in { flex-wrap: nowrap; }
  .panel { padding: 1.75rem 2rem; }
  .offer { padding: 1.75rem 2rem; }
  .top-in, main, .foot-in { padding-inline: 24px; }
}
@media (min-width: 48rem) {
  .hallmarks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .hallmarks a { padding: 1.15rem 1.25rem; }
  .hm-val { font-size: 1.45rem; }
  main > * + * { margin-top: 3.75rem; }
  .foot { padding-block: 2.5rem 4.5rem; }
}
@media (min-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.5rem; }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hallmarks a:hover { transform: none; }
}
@media (forced-colors: active) {
  .stamp, .gauge-fill, .live-dot { border: 1px solid CanvasText; }
  .sec-h::before { background: CanvasText; }
}
