/* GoldRateMap — hand-written, no framework.
   Core Web Vitals are a ranking input and the competitor loads several hundred
   kilobytes of JS to show one number, so everything here is one small stylesheet
   with system fonts: no web-font round trip, no layout shift, no render block. */

:root {
  --bg: #0e0e0c;
  --bg-2: #151512;
  --surface: #1b1b17;
  --surface-2: #232320;
  --line: #2e2e28;
  --line-soft: #26261f;

  --text: #ece8df;
  --text-2: #a8a294;
  --text-3: #736e62;

  --gold: #e3b448;
  --gold-2: #f6d98a;
  --gold-3: #a97c1e;
  --gold-grad: linear-gradient(135deg, #f6d98a 0%, #e3b448 45%, #b8871f 100%);

  --up: #4ac26b;
  --down: #f2614f;

  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.28);
  --max: 1180px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #faf8f4;
    --bg-2: #f2eee6;
    --surface: #ffffff;
    --surface-2: #f6f2ea;
    --line: #e2dcd0;
    --line-soft: #ece7dd;
    --text: #1c1a15;
    --text-2: #5f594d;
    --text-3: #8b8477;
    --gold: #a97c1e;
    --gold-2: #c9992f;
    --shadow: 0 1px 2px rgba(60,50,20,.06), 0 8px 24px rgba(60,50,20,.07);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-2); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.stack > * + * { margin-top: 14px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.head-in { display: flex; align-items: center; gap: 22px; height: 62px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; font-size: 17px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--gold-grad);
  display: grid; place-items: center; color: #2a1f05; font-weight: 800; font-size: 13px;
  box-shadow: 0 2px 10px rgba(227,180,72,.28);
}
.brand em { font-style: normal; color: var(--gold); }

.nav { display: flex; gap: 20px; margin-left: auto; font-size: 14.5px; color: var(--text-2); font-weight: 500; }
.nav a:hover { color: var(--gold-2); }

/* ---------- live ticker ---------- */
.ticker {
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
  overflow-x: auto; scrollbar-width: none;
}
.ticker::-webkit-scrollbar { display: none; }
.ticker-in { display: flex; gap: 30px; padding: 9px 20px; max-width: var(--max); margin: 0 auto; white-space: nowrap; font-size: 13px; }
.tick { display: flex; align-items: baseline; gap: 7px; }
.tick b { font-weight: 600; color: var(--text-2); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.tick span { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding: 46px 0 30px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -160px 0 auto 50%;
  width: 720px; height: 460px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(227,180,72,.13), transparent 68%);
  pointer-events: none;
}
.hero-in { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); background: color-mix(in srgb, var(--gold) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 26%, transparent);
  padding: 5px 12px; border-radius: 100px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(74,194,107,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(74,194,107,0); } 100% { box-shadow: 0 0 0 0 rgba(74,194,107,0); } }

h1 { font-size: clamp(28px, 4.4vw, 45px); line-height: 1.12; letter-spacing: -.03em; margin: 16px 0 10px; font-weight: 750; }
h2 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.02em; margin: 40px 0 14px; font-weight: 700; }
h3 { font-size: 17px; letter-spacing: -.01em; margin: 26px 0 10px; font-weight: 650; }
.lede { color: var(--text-2); font-size: 17px; max-width: 68ch; margin: 0; }
.lede strong { color: var(--text); font-weight: 650; }

/* ---------- price display ---------- */
.price-hero {
  display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 26px;
  align-items: stretch; margin-top: 26px;
}
@media (max-width: 860px) { .price-hero { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px; box-shadow: var(--shadow);
}
.card-lg { padding: 26px 26px 22px; }

.price-main { display: flex; flex-direction: column; justify-content: center; }
.price-label { font-size: 13px; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.price-big {
  font-size: clamp(38px, 6.4vw, 62px); font-weight: 760; letter-spacing: -.035em; line-height: 1.02;
  margin: 8px 0 4px; font-variant-numeric: tabular-nums;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-unit { color: var(--text-2); font-size: 15px; }
.price-sub { color: var(--text-3); font-size: 13.5px; margin-top: 12px; }

.delta { display: inline-flex; align-items: center; gap: 6px; font-weight: 640; font-size: 15px; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.delta.flat { color: var(--text-3); }
.delta-pill { padding: 3px 9px; border-radius: 7px; font-size: 13px; }
.delta.up .delta-pill { background: color-mix(in srgb, var(--up) 14%, transparent); }
.delta.down .delta-pill { background: color-mix(in srgb, var(--down) 14%, transparent); }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
thead th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-3); font-weight: 650; padding: 13px 16px; background: var(--surface-2);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; }
td.key { font-weight: 620; white-space: nowrap; }
.gold-cell { color: var(--gold-2); font-weight: 650; }

/* ---------- chart ---------- */
.chart-card { padding: 20px 20px 12px; }
.chart { width: 100%; height: 210px; display: block; }
.chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-3); margin-top: 8px; flex-wrap: wrap; }
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }

/* ---------- grids / chips ---------- */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }

.chip {
  display: inline-block; padding: 7px 13px; border-radius: 100px; font-size: 13.5px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  transition: border-color .15s, color .15s;
}
.chip:hover { border-color: var(--gold-3); color: var(--gold-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 15px 16px; }
.stat b { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); font-weight: 640; }
.stat span { display: block; font-size: 20px; font-weight: 680; letter-spacing: -.02em; margin-top: 5px; font-variant-numeric: tabular-nums; }

/* ---------- notes / prose ---------- */
.note {
  border-left: 3px solid var(--gold-3); background: var(--surface);
  padding: 13px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text-2); font-size: 14.5px;
}
.prose { color: var(--text-2); max-width: 74ch; }
.prose p { margin: 0 0 14px; }
.prose strong { color: var(--text); font-weight: 650; }

details.faq { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); margin-bottom: 9px; }
details.faq summary { padding: 14px 17px; cursor: pointer; font-weight: 620; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--gold); font-weight: 400; font-size: 19px; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: 0; padding: 0 17px 15px; color: var(--text-2); font-size: 14.5px; }

/* ---------- forms ---------- */
label.field { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 640; margin-bottom: 6px; }
input[type="number"], input[type="text"], select {
  width: 100%; padding: 11px 13px; font-size: 15px; font-family: inherit;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-sm); outline: none;
}
input:focus, select:focus { border-color: var(--gold-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 15%, transparent); }

.result {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; margin-top: 18px;
}
.result-big { font-size: clamp(26px, 4vw, 36px); font-weight: 740; letter-spacing: -.03em; color: var(--gold-2); font-variant-numeric: tabular-nums; }

/* ---------- breadcrumb / footer ---------- */
.crumbs { font-size: 13px; color: var(--text-3); padding: 18px 0 0; display: flex; gap: 7px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs span { color: var(--line); }

.site-foot { border-top: 1px solid var(--line-soft); margin-top: 64px; padding: 34px 0 44px; color: var(--text-3); font-size: 13.5px; background: var(--bg-2); }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 26px; margin-bottom: 26px; }
.foot-cols b { display: block; color: var(--text); font-size: 13px; margin-bottom: 9px; text-transform: uppercase; letter-spacing: .06em; }
.foot-cols a { display: block; padding: 3px 0; color: var(--text-3); }
.foot-cols a:hover { color: var(--gold-2); }

.muted { color: var(--text-3); font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
section { scroll-margin-top: 80px; }

/* ============================================================ additions == */

/* ---------- header actions ---------- */
.head-actions { display: flex; gap: 8px; margin-left: 14px; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  padding: 7px 12px; border-radius: 100px; font: inherit; font-size: 13px; font-weight: 560;
  transition: border-color .15s, color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--gold-3); color: var(--gold-2); }
.icon-btn.gold { border-color: color-mix(in srgb, var(--gold) 40%, transparent); color: var(--gold-2); }
.icon-btn.gold:hover { background: color-mix(in srgb, var(--gold) 12%, transparent); }


.brand { gap: 9px; }
.brand svg.brand-mark { flex: none; }

/* ---------- live price flashes ---------- */
@keyframes flash-up   { 0% { background: color-mix(in srgb, var(--up) 30%, transparent); } 100% { background: transparent; } }
@keyframes flash-down { 0% { background: color-mix(in srgb, var(--down) 30%, transparent); } 100% { background: transparent; } }
.flash-up { animation: flash-up 1.1s ease-out; border-radius: 5px; }
.flash-down { animation: flash-down 1.1s ease-out; border-radius: 5px; }

/* ---------- charts ---------- */
.chart-grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-wrap { position: relative; }
.chart-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.spark { height: 42px; width: 110px; display: block; }

/* ---------- flags ---------- */
.flag { margin-right: 7px; font-size: 15px; line-height: 1; }
td .flag, th .flag { margin-right: 8px; }
/* In headings the flag should scale with the type, not sit at 15px. */
h1 .flag, h2 .flag { font-size: .78em; margin-right: .3em; vertical-align: baseline; }

/* ---------- footer decks ---------- */
.site-foot { padding: 0 0 40px; }
.foot-deck { border-top: 1px solid var(--line-soft); padding: 26px 0; }
.foot-deck:first-child { border-top: 0; padding-top: 34px; }
.foot-deck-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.foot-deck-head h3 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .07em; color: var(--text); }
.foot-more { font-size: 13px; color: var(--gold); white-space: nowrap; }
.foot-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 18px;
}
.foot-grid a { display: flex; align-items: center; padding: 5px 0; color: var(--text-2); font-size: 13.5px; }
.foot-grid a:hover { color: var(--gold-2); }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 26px; }
.foot-legal { border-top: 1px solid var(--line-soft); padding-top: 22px; color: var(--text-3); font-size: 12.5px; }
.foot-legal p { margin: 0 0 16px; max-width: 90ch; line-height: 1.65; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-bottom a { color: var(--gold-3); }
.foot-bottom a:hover { color: var(--gold-2); }

/* ---------- sheet / modal ---------- */
.sheet { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
/* A `display` rule beats the hidden attribute, so it has to be restored
   explicitly — otherwise the panel is open on every page load. */
.sheet[hidden] { display: none; }
[hidden] { display: none !important; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(3px); }
.sheet-body {
  position: relative; width: min(620px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px; box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
.sheet-close {
  position: absolute; top: 14px; right: 16px; background: none; border: 0; cursor: pointer;
  color: var(--text-3); font-size: 26px; line-height: 1; padding: 0;
}
.sheet-close:hover { color: var(--text); }

.toggle-row { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 100px; padding: 8px 14px;
  font-size: 13.5px; color: var(--text-2); background: var(--bg-2);
}
.toggle:has(input:checked) { border-color: var(--gold-3); color: var(--gold-2); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.toggle input { accent-color: var(--gold); margin: 0; }

.btn-gold {
  display: inline-block; cursor: pointer; border: 0; font: inherit; font-weight: 640; font-size: 14.5px;
  background: var(--gold-grad); color: #2a1f05; padding: 12px 22px; border-radius: 10px;
}
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost {
  display: inline-block; cursor: pointer; font: inherit; font-size: 13.5px;
  background: none; border: 1px solid var(--line); color: var(--text-3); padding: 9px 16px; border-radius: 9px;
}
.btn-ghost:hover { border-color: var(--down); color: var(--down); }

.alert-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; color: var(--text-2);
}
.alert-row em { color: var(--text-3); font-style: normal; }
.alert-row button { background: none; border: 0; color: var(--text-3); font-size: 20px; cursor: pointer; line-height: 1; }
.alert-row button:hover { color: var(--down); }
.push-status { margin: 12px 0 0; color: var(--gold-2); font-size: 13px; min-height: 1em; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 14px);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  padding: 12px 20px; border-radius: 100px; font-size: 14px; z-index: 300;
  box-shadow: var(--shadow); opacity: 0; transition: opacity .25s, transform .25s;
}
.toast.in { opacity: 1; transform: translate(-50%, 0); }

/* ---------- technical analysis ---------- */
.bias { display: inline-flex; align-items: center; gap: 6px; font-weight: 620; font-size: 13px; }
.bias-dot { width: 8px; height: 8px; border-radius: 50%; }
.bias.bullish { color: var(--up); } .bias.bullish .bias-dot { background: var(--up); }
.bias.bearish { color: var(--down); } .bias.bearish .bias-dot { background: var(--down); }
.bias.neutral { color: var(--text-3); } .bias.neutral .bias-dot { background: var(--text-3); }

.gauge { display: flex; height: 10px; border-radius: 100px; overflow: hidden; background: var(--surface-2); margin: 12px 0 6px; }
.gauge span { display: block; height: 100%; }
.gauge .g-up { background: var(--up); }
.gauge .g-flat { background: var(--line); }
.gauge .g-down { background: var(--down); }

.summary-card { text-align: center; padding: 26px; }
.summary-label { font-size: clamp(24px, 3.4vw, 34px); font-weight: 740; letter-spacing: -.03em; }
.summary-label.up { color: var(--up); } .summary-label.down { color: var(--down); } .summary-label.flat { color: var(--text-2); }

/* ---------- answers ---------- */
.verdict {
  display: inline-block; margin: 4px 0 14px; padding: 10px 20px; border-radius: 12px;
  font-size: clamp(19px, 2.6vw, 25px); font-weight: 700; letter-spacing: -.02em;
  border: 1px solid var(--line); background: var(--surface);
}
.verdict.up { color: var(--up); border-color: color-mix(in srgb, var(--up) 34%, transparent); background: color-mix(in srgb, var(--up) 9%, transparent); }
.verdict.down { color: var(--down); border-color: color-mix(in srgb, var(--down) 34%, transparent); background: color-mix(in srgb, var(--down) 9%, transparent); }
.verdict.flat { color: var(--gold-2); border-color: color-mix(in srgb, var(--gold) 34%, transparent); background: color-mix(in srgb, var(--gold) 9%, transparent); }

.q-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.q-item {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px 17px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); font-size: 14.5px; color: var(--text-2);
  transition: border-color .15s, color .15s;
}
.q-item:hover { border-color: var(--gold-3); color: var(--gold-2); }
.q-item small { color: var(--text-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }

/* ---------- ad slots ---------- */
.ad-slot { margin: 28px 0; text-align: center; }
.ad-label {
  display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-3); margin-bottom: 6px;
}
.ad-footer { margin: 34px 0 0; }

/* ---------- article body ---------- */
.article-body { max-width: 74ch; color: var(--text-2); font-size: 16.5px; line-height: 1.75; }
.article-body p { margin: 0 0 18px; }
.article-body h2 { margin: 38px 0 12px; }
.article-body h3 { margin: 26px 0 8px; }
.article-body ul { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text); font-weight: 650; }
.article-body a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; }
.article-body .table-scroll { margin: 0 0 20px; }
.article-body .note { margin: 0 0 20px; }

.toc { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: 16px 18px; margin-bottom: 26px; }
.toc b { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 8px; }
.toc a { display: block; padding: 4px 0; font-size: 14px; color: var(--text-2); }
.toc a:hover { color: var(--gold-2); }

.post-card { display: block; padding: 20px; }
.post-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--text); }
.post-card p { margin: 0; color: var(--text-2); font-size: 14px; }
.post-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-3); margin-top: 12px; }

/* ---------- chart price scale ---------- */
.chart-plot { display: flex; align-items: stretch; gap: 10px; }
.chart-plot .chart { flex: 1; min-width: 0; }
.chart-scale {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px 0 20px; font-size: 11px; color: var(--text-3);
  font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap;
  order: 2;                                   /* scale on the right of the plot */
}

/* ---------- install steps (iOS) ---------- */
.steps { margin: 16px 0 0; padding-left: 20px; color: var(--text-2); font-size: 14.5px; }
.steps li { margin-bottom: 10px; line-height: 1.6; }
.steps strong { color: var(--text); font-weight: 640; }
.ios-glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 6px;
  color: var(--gold-2); vertical-align: -6px; margin-left: 4px;
}


/* ==================================================== mobile ============= */
/*
 * Audited at 375px on a real device profile, element by element.
 *
 * The header was the worst offender: brand + nav + two action buttons could
 * not fit, so the Save and Alerts buttons sat 96px off-screen and the page
 * scrolled sideways on every route. The fix wraps the nav onto its own
 * horizontally-scrollable row rather than hiding links — a hamburger would
 * cost a tap and a script, and hidden nav links are worth less to a crawler.
 */
@media (max-width: 900px) {
  .icon-btn span { display: none; }
  .icon-btn { padding: 9px 11px; }

  .head-in {
    flex-wrap: wrap;
    height: auto;
    padding: 11px 0 0;
    gap: 10px 14px;
  }
  .brand { font-size: 16px; }
  .head-actions { margin-left: auto; gap: 6px; }

  /* Row two: every link stays reachable, the row scrolls instead of hiding. */
  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 20px;
    font-size: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    padding-bottom: 9px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 4px 0; }
}

@media (max-width: 760px) {
  /*
   * The price is why someone opened the page, and the intro paragraph runs to
   * ten lines on a phone — which pushed the number below the fold. Flex order
   * lifts the price card above the prose without touching DOM order, so the
   * text a crawler reads first is unchanged.
   */
  .hero { padding: 20px 0 16px; }
  .hero::before { height: 300px; }
  .hero-in { display: flex; flex-direction: column; align-items: stretch; }
  .hero-in > .eyebrow { order: 1; align-self: flex-start; }
  .hero-in > h1 { order: 2; }
  .hero-in > .price-hero { order: 3; margin-top: 4px; }
  .hero-in > .lede { order: 4; margin-top: 18px; }
  .hero-in > .note { order: 5; margin-top: 16px; }
  .hero-in > .verdict { order: 3; align-self: flex-start; }

  h1 { font-size: clamp(25px, 7.4vw, 34px); margin: 12px 0 8px; }
  h2 { font-size: 20px; margin: 30px 0 12px; }
  h3 { font-size: 16px; }
  .lede { font-size: 15.5px; }

  .price-hero { gap: 14px; }
  .card { padding: 18px; }
  .card-lg { padding: 20px; }
  .price-big { font-size: clamp(34px, 11vw, 46px); }

  /* "▲Rs15,664 (3.64%)" and its caption were breaking mid-number. */
  .delta { flex-wrap: wrap; row-gap: 4px; }
  .delta-pill { white-space: nowrap; }
  .price-sub { font-size: 12.5px; line-height: 1.5; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .q-list { grid-template-columns: 1fr; }

  .sheet { padding: 0; align-items: end; }
  .sheet-body {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    padding: 22px 18px 26px;
  }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2px 14px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .foot-deck { padding: 20px 0; }
  .article-body { font-size: 16px; }
  .toast { left: 16px; right: 16px; transform: translateY(14px); }
  .toast.in { transform: translateY(0); }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .price-big { font-size: clamp(32px, 12vw, 42px); }
  .chart { height: 175px; }
  .summary-label { font-size: 26px; }
  .verdict { font-size: 19px; padding: 9px 15px; }
  .steps { padding-left: 18px; font-size: 14px; }
}

/*
 * Minimum sizes, applied at every width rather than only on phones — 11px is
 * unreadable on a dense display regardless of viewport, and a 21px link is
 * hard to hit with a thumb.
 */
@media (max-width: 900px) {
  .chart-scale, .chart-axis, .chart-legend { font-size: 12px; }
  thead th { font-size: 12px; padding: 12px 14px; }
  tbody td { padding: 13px 14px; }
  .muted, .post-meta, .foot-legal { font-size: 13px; }
  .stat b, .price-label { font-size: 12px; }
  .q-item small, .toc b, .ad-label { font-size: 12px; }

  .nav a, .crumbs a, .tick, .foot-grid a, .foot-cols a { min-height: 34px; display: inline-flex; align-items: center; }
  .foot-grid a, .foot-cols a { min-height: 36px; }
  .chip { padding: 9px 15px; }
  .ticker-in { padding: 11px 16px; }

  /* Links inside table cells were 17px tall — the cell padding made the row
     look tappable, but the link itself was not. */
  td a { display: inline-block; padding: 7px 0; }
  .brand { min-height: 40px; }
  .foot-more, .foot-bottom a { min-height: 36px; display: inline-flex; align-items: center; }
  details.faq summary { padding: 16px 17px; }
}
