/* ============================================================
   Pricify v4 — "Graphite Terminal"
   Editorial market interface: ivory display serif × Inter Tight ×
   one electric-cyan accent on graphite. Hairlines, not shadows.
   Loaded AFTER style.css — overrides tokens and components.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  --v4-ink:        #07080A;
  --v4-surface:    #0B0D11;
  --v4-surface-2:  #101318;
  --v4-card:       #12161C;
  --v4-card-hi:    #171C23;
  --v4-line:       rgba(255,255,255,.075);
  --v4-line-2:     rgba(255,255,255,.14);
  --v4-text:       #EEF0F3;
  --v4-muted:      #98A2B3;
  --v4-dim:        #808CA0;
  --v4-accent:     #3DD6F5;
  --v4-accent-soft:rgba(61,214,245,.12);
  --v4-ivory:      #F0EBE0;
  --v4-up:         #21D07A;
  --v4-down:       #FF5C6C;

  --t-display: clamp(2.5rem, 6.2vw, 5rem);
  --t-h1:      clamp(1.95rem, 3.4vw, 2.85rem);
  --t-h2:      clamp(1.4rem, 2.1vw, 1.9rem);
  --t-h3:      1.1rem;
  --t-label:   .7rem;

  --r-xs: 4px;  --r-sm: 8px;  --r-md: 12px;  --r-lg: 18px;

  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --v4-ease: cubic-bezier(.16,1,.3,1);

  /* map legacy tokens onto the new system */
  --bg-deep:        var(--v4-ink);
  --bg-primary:     var(--v4-surface);
  --bg-secondary:   var(--v4-surface-2);
  --bg-card:        var(--v4-card);
  --bg-card-hover:  var(--v4-card-hi);
  --bg-elevated:    var(--v4-card-hi);
  --border:         var(--v4-line);
  --border-light:   var(--v4-line-2);
  --text-primary:   var(--v4-text);
  --text-secondary: var(--v4-muted);
  --text-muted:     var(--v4-dim);
  --accent-gold:       var(--v4-accent);
  --accent-gold-light: #8DEAFB;
  --accent-green:   var(--v4-up);
  --accent-red:     var(--v4-down);
  --accent-blue:    #5B8CFF;
  --accent-purple:  #B08CFF;
  --accent-orange:  #FFB020;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 18px 60px rgba(0,0,0,.55);
  --shadow-xl: 0 30px 90px rgba(0,0,0,.6);
  --radius-sm: var(--r-xs);
  --radius-md: var(--r-sm);
  --radius-lg: var(--r-md);
  --radius-xl: var(--r-lg);
  --radius-full: 999px;
  --header-h: 66px;
  --ticker-h: 38px;
  --max-width: 1320px;
  --transition: .22s var(--v4-ease);
  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- 2. BASE ---------- */
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--v4-ink);
  color: var(--v4-text);
  font-family: var(--font-sans);
  font-feature-settings: 'ss01' 1;
  line-height: 1.65;
  letter-spacing: -.005em;
}
::selection { background: var(--v4-accent); color: #07080A; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  letter-spacing: -.028em;
  line-height: 1.12;
  font-weight: 600;
  color: var(--v4-text);
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
p { color: var(--v4-muted); }
a { color: inherit; transition: color .18s var(--v4-ease); }
a:hover { color: var(--v4-accent); }

/* mono eyebrow label used on every section */
.v4-label {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans); font-size: var(--t-label); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--v4-dim);
}
.v4-label::before {
  content: ''; width: 16px; height: 1px; background: var(--v4-accent); flex: none;
}
.v4-label--num::before { display: none; }
.v4-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  letter-spacing: -.01em;
}

/* hairline section rule */
.v4-rule { height: 1px; background: var(--v4-line); border: 0; margin: 0; }

.container { max-width: var(--max-width); padding-left: 28px; padding-right: 28px; }

/* ---------- 3. HEADER ---------- */
.header {
  height: var(--header-h);
  background: rgba(7,8,10,.72);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--v4-ease), border-color .3s var(--v4-ease);
}
.header.is-scrolled {
  background: rgba(7,8,10,.92);
  border-bottom-color: var(--v4-line);
}
.header__inner { max-width: var(--max-width); padding: 0 28px; gap: 12px; }

.header__logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.62rem;
  letter-spacing: -.02em;
  color: var(--v4-ivory);
  background: none;
  -webkit-text-fill-color: currentColor;
  display: inline-flex; align-items: baseline; gap: 7px;
}
.header__logo::after {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--v4-accent);
  box-shadow: 0 0 0 3px var(--v4-accent-soft);
  align-self: center;
  margin-bottom: 8px;
}
.header__logo:hover { filter: none; opacity: .85; }

/* ---- primary nav ---- */
.header__nav { gap: 2px; }
.header__nav > a,
.header__nav .nav-item > button {
  padding: 9px 13px;
  font-size: .845rem;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--v4-muted);
  border-radius: var(--r-xs);
  background: none; border: 0; cursor: pointer;
  font-family: inherit;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color .18s var(--v4-ease), background .18s var(--v4-ease);
}
.header__nav > a:hover,
.header__nav .nav-item > button:hover { color: var(--v4-text); background: rgba(255,255,255,.04); }
.header__nav > a.active,
.header__nav .nav-item.is-active > button { color: var(--v4-text); }
.header__nav > a.active::after,
.header__nav .nav-item.is-active > button::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 1px; background: var(--v4-accent);
}
.header__nav > a, .header__nav .nav-item { position: relative; }

.nav-item { display: inline-flex; }
.nav-item__caret {
  width: 9px; height: 9px; opacity: .5;
  transition: transform .2s var(--v4-ease);
}
.nav-item:hover .nav-item__caret, .nav-item.is-open .nav-item__caret { transform: rotate(180deg); }

.nav-panel {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 460px; padding: 14px;
  background: rgba(14,17,22,.97);
  border: 1px solid var(--v4-line-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--v4-ease), transform .2s var(--v4-ease), visibility .2s;
  z-index: 120;
}
.nav-item:hover .nav-panel,
.nav-item:focus-within .nav-panel,
.nav-item.is-open .nav-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-panel a {
  padding: 10px 12px; border-radius: var(--r-xs);
  font-size: .845rem; color: var(--v4-muted);
  display: flex; flex-direction: column; gap: 2px;
}
.nav-panel a b { color: var(--v4-text); font-weight: 500; font-size: .875rem; }
.nav-panel a span { font-size: .74rem; color: var(--v4-dim); }
.nav-panel a:hover { background: rgba(255,255,255,.045); }
.nav-panel a:hover b { color: var(--v4-accent); }

/* ---- header search ---- */
.header__search input {
  background: rgba(255,255,255,.035);
  border: 1px solid var(--v4-line);
  border-radius: var(--r-xs);
  padding: 8px 12px 8px 32px;
  font-size: .82rem;
  color: var(--v4-text);
  width: 190px;
  font-family: inherit;
  transition: width .3s var(--v4-ease), border-color .2s, background .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7687' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 11px center;
}
.header__search input::placeholder { color: var(--v4-dim); }
.header__search input:focus {
  outline: none; width: 240px;
  border-color: var(--v4-accent);
  background-color: rgba(61,214,245,.05);
}

.header__watchlist-btn {
  background: none; border: 1px solid var(--v4-line);
  border-radius: var(--r-xs); color: var(--v4-muted);
  padding: 7px 11px; font-size: .8rem; font-family: inherit;
  cursor: pointer; transition: var(--transition);
}
.header__watchlist-btn:hover { color: var(--v4-accent); border-color: var(--v4-accent); }

.hamburger span { background: var(--v4-text); }

/* ---------- 4. TICKER ---------- */
.ticker-bar {
  background: var(--v4-surface);
  border-bottom: 1px solid var(--v4-line);
  height: var(--ticker-h);
  overflow: hidden;
}
.ticker-bar__inner { gap: 0; animation: v4-tape 46s linear infinite; }
.ticker-bar:hover .ticker-bar__inner { animation-play-state: paused; }
@keyframes v4-tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 22px; border-right: 1px solid var(--v4-line);
  font-size: .76rem; white-space: nowrap;
}
.ticker-item__label {
  color: var(--v4-dim); text-transform: uppercase;
  letter-spacing: .1em; font-size: .64rem; font-weight: 600;
}
.ticker-item__value {
  color: var(--v4-text); font-variant-numeric: tabular-nums; font-weight: 500;
}

/* ---------- 5. HERO ---------- */
.hero, .hero-v4 {
  position: relative;
  overflow: hidden;
  background: var(--v4-ink);
  border-bottom: 1px solid var(--v4-line);
}
.hero-v4 {
  padding: clamp(56px, 8vw, 108px) 0 clamp(44px, 6vw, 76px);
}
.hero-v4__bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(720px 340px at 12% 8%, rgba(61,214,245,.10), transparent 62%),
    radial-gradient(620px 420px at 88% 0%, rgba(240,235,224,.055), transparent 60%),
    radial-gradient(900px 500px at 50% 120%, rgba(91,140,255,.07), transparent 65%);
}
.hero-v4__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 78%);
}
.hero-v4__noise {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}
.hero-v4__inner { position: relative; z-index: 2; }

.hero-v4 .hero-v4__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--v4-line-2);
  border-radius: var(--r-full);
  background: rgba(255,255,255,.03);
  font-size: .72rem; font-weight: 500; color: var(--v4-muted);
  letter-spacing: .02em;
  margin-bottom: 26px;
}
.hero-v4__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--v4-up);
  box-shadow: 0 0 0 0 rgba(33,208,122,.6);
  animation: v4-ping 2.4s var(--v4-ease) infinite;
}
@keyframes v4-ping {
  0%   { box-shadow: 0 0 0 0 rgba(33,208,122,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(33,208,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(33,208,122,0); }
}

.hero-v4 h1.hero-v4__title {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: var(--v4-ivory);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-display);
  line-height: .98;
  letter-spacing: -.022em;
  color: var(--v4-ivory);
  margin: 0 0 22px;
  max-width: 15ch;
}
.hero-v4 h1.hero-v4__title em {
  font-style: italic;
  color: var(--v4-accent);
}
.hero-v4 p.hero-v4__sub {
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--v4-muted);
  max-width: 54ch;
  margin: 0 0 30px;
}
.hero-v4 .hero-v4__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* stat strip */
.hero-v4 .hero-v4__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--v4-line);
}
.hero-v4__stat {
  padding: 20px 22px 4px 0;
  border-right: 1px solid var(--v4-line);
}
.hero-v4__stat:last-child { border-right: 0; }
.hero-v4 .hero-v4__stat-label {
  font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--v4-dim); font-weight: 600; margin-bottom: 7px;
}
.hero-v4 .hero-v4__stat-value {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 500; color: var(--v4-text);
  font-variant-numeric: tabular-nums; letter-spacing: -.03em;
  line-height: 1;
}
.hero-v4__stat-value i { color: var(--v4-accent); font-style: normal; }

/* hero artwork */
.hero-v4__art {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: min(46vw, 560px); z-index: 1; pointer-events: none; opacity: .9;
}

/* ---------- 6. BUTTONS ---------- */
.btn, .btn-gold, .v4-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px;
  border-radius: var(--r-xs);
  font-family: inherit; font-size: .875rem; font-weight: 600;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--v4-ease), background .2s, color .2s, border-color .2s;
  text-decoration: none;
  will-change: transform;
}
.v4-btn--primary, .btn-gold {
  background: var(--v4-accent); color: #04141A;
  background-image: none; box-shadow: none;
}
.v4-btn--primary:hover, .btn-gold:hover {
  background: #5FE2FA; color: #04141A; transform: translateY(-1px);
}
.v4-btn--ghost {
  background: transparent; color: var(--v4-text);
  border-color: var(--v4-line-2);
}
.v4-btn--ghost:hover { border-color: var(--v4-accent); color: var(--v4-accent); transform: translateY(-1px); }
.v4-btn svg { width: 15px; height: 15px; }

/* ---------- 7. SECTION HEADERS ---------- */
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin: 0 0 20px;
}
.section-header h2 {
  font-size: var(--t-h2); font-weight: 600; letter-spacing: -.03em;
  display: flex; align-items: baseline; gap: 14px;
}
.section-header h2::before {
  content: attr(data-num);
  font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  color: var(--v4-dim); font-variant-numeric: tabular-nums;
}
.section-header a {
  font-size: .8rem; font-weight: 500; color: var(--v4-dim);
  display: inline-flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.section-header a:hover { color: var(--v4-accent); gap: 9px; }
.v4-section { padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--v4-line); }

/* ---------- 8. CARDS ---------- */
.explore-grid { gap: 1px; background: var(--v4-line); border: 1px solid var(--v4-line); border-radius: var(--r-sm); overflow: hidden; }
.explore-card {
  background: var(--v4-surface); border: 0; border-left: 0 !important;
  border-radius: 0; padding: 18px 20px;
  transition: background .2s var(--v4-ease);
  position: relative;
}
.explore-card:hover { background: var(--v4-card-hi); transform: none; }
.explore-card__title { font-size: .92rem; font-weight: 500; color: var(--v4-text); }
.explore-card:hover .explore-card__title { color: var(--v4-accent); }
.explore-card__count {
  font-size: .72rem; color: var(--v4-dim); margin-top: 3px;
  letter-spacing: .02em;
}

.stat-card {
  background: var(--v4-surface); border: 1px solid var(--v4-line);
  border-radius: var(--r-sm); padding: 18px 20px;
  transition: border-color .2s, background .2s, transform .25s var(--v4-ease);
}
.stat-card:hover { border-color: var(--v4-line-2); background: var(--v4-card); }
.stat-card__label {
  font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--v4-dim); font-weight: 600;
}
.stat-card__value, .stat-card__value.gold, .stat-card__value.blue,
.stat-card__value.green, .stat-card__value.orange {
  font-size: clamp(1.5rem, 2.4vw, 1.95rem); font-weight: 500;
  color: var(--v4-text) !important;
  font-variant-numeric: tabular-nums; letter-spacing: -.03em; margin: 5px 0 2px;
  background: none; -webkit-text-fill-color: currentColor;
}
.stat-card__change { font-size: .74rem !important; color: var(--v4-dim) !important; }

.stock-card {
  background: var(--v4-surface); border: 1px solid var(--v4-line);
  border-radius: var(--r-md); padding: 30px 32px;
}
.stock-card h3 { margin-top: 26px; color: var(--v4-text); }
.stock-section-title {
  font-size: var(--t-h2); letter-spacing: -.03em; margin-bottom: 16px;
}

/* indices tape cards */
.indices-scroller { border: 1px solid var(--v4-line); border-radius: var(--r-sm); background: var(--v4-surface); }
.indices-scroller__item { border-right: 1px solid var(--v4-line); }
.indices-scroller__name { font-size: .74rem; color: var(--v4-dim); letter-spacing: .04em; text-transform: uppercase; }
.indices-scroller__price { font-variant-numeric: tabular-nums; font-weight: 500; }
.indices-scroller__change.up { color: var(--v4-up); }
.indices-scroller__change.dn { color: var(--v4-down); }

/* ---------- 9. TABLES ---------- */
.data-table-wrapper {
  border: 1px solid var(--v4-line); border-radius: var(--r-sm);
  background: var(--v4-surface); overflow: hidden;
}
.data-table th {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--v4-dim); font-weight: 600; text-align: left;
  padding: 13px 16px; border-bottom: 1px solid var(--v4-line);
  background: var(--v4-surface-2);
}
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--v4-line); font-size: .875rem; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: rgba(255,255,255,.028); }
.data-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.up, .price-up, .positive { color: var(--v4-up) !important; }
.dn, .price-down, .negative { color: var(--v4-down) !important; }

/* ---------- 10. FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--v4-line); }
.faq-item:last-child { border-bottom: 0; }
.faq-question {
  padding: 18px 0; font-size: .975rem; font-weight: 500;
  color: var(--v4-text); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  transition: color .18s;
}
.faq-question::after {
  content: '+'; color: var(--v4-dim); font-size: 1.2rem;
  font-weight: 300; transition: transform .25s var(--v4-ease), color .2s;
}
.faq-question:hover { color: var(--v4-accent); }
.faq-question.open::after, .faq-item.open .faq-question::after { transform: rotate(45deg); color: var(--v4-accent); }
.faq-answer { padding: 0 0 20px; color: var(--v4-muted); font-size: .925rem; line-height: 1.7; max-width: 78ch; }

/* ---------- 11. FORMS ---------- */
input[type="text"], input[type="email"], input[type="number"],
input[type="search"], select, textarea {
  background: var(--v4-surface-2);
  border: 1px solid var(--v4-line);
  border-radius: var(--r-xs);
  color: var(--v4-text);
  font-family: inherit; font-size: .9rem;
  padding: 11px 14px;
  transition: border-color .18s, background .18s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--v4-accent);
  background: rgba(61,214,245,.04);
}
:focus-visible { outline: 2px solid var(--v4-accent); outline-offset: 2px; }

/* ---------- 12. FOOTER ---------- */
.footer {
  background: var(--v4-ink);
  border-top: 1px solid var(--v4-line);
  padding: 56px 0 26px;
  margin-top: 0;
}
.footer__brand {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.5rem; color: var(--v4-ivory); letter-spacing: -.02em;
}
.footer__tagline { font-size: .8rem; color: var(--v4-dim); margin-top: 4px; }
.footer__heading {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .13em;
  color: var(--v4-dim); font-weight: 600; margin-bottom: 14px;
}
.footer__links a { font-size: .855rem; color: var(--v4-muted); line-height: 2.1; }
.footer__links a:hover { color: var(--v4-accent); }
.footer__desc { font-size: .82rem; color: var(--v4-dim); line-height: 1.65; }
.footer__bar {
  border-top: 1px solid var(--v4-line);
  margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.footer__copyright, .footer__disclaimer { font-size: .76rem; color: var(--v4-dim); }

#back-to-top {
  background: var(--v4-card) !important; color: var(--v4-text) !important;
  border: 1px solid var(--v4-line-2) !important;
  border-radius: var(--r-xs) !important;
  width: 40px !important; height: 40px !important;
}
#back-to-top:hover { border-color: var(--v4-accent) !important; color: var(--v4-accent) !important; }

/* ---------- 13. MOTION STATES ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); }
.v4-ready [data-reveal] { transition: opacity .7s var(--v4-ease), transform .7s var(--v4-ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 14. RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .header__nav > a, .header__nav .nav-item > button { padding: 8px 9px; font-size: .8rem; }
  .header__search input { width: 150px; }
  .hero-v4__art { opacity: .45; width: 52vw; }
}
@media (max-width: 1024px) {
  .header__nav { display: none; }
  .header__search { display: none; }
  .hamburger { display: grid; }
  .hero-v4__stats { grid-template-columns: repeat(2, 1fr); }
  .hero-v4__stat { border-right: 0; border-bottom: 1px solid var(--v4-line); padding: 16px 0; }
  .hero-v4__stat:nth-child(even) { padding-left: 18px; }
  .hero-v4__art { display: none; }
  .nav-panel { display: none; }
}
@media (max-width: 640px) {
  html { font-size: 15.5px; }
  .container { padding-left: 18px; padding-right: 18px; }
  .header__inner { padding: 0 18px; }
  .hero-v4 { padding: 40px 0 32px; }
  .hero-v4__title { max-width: 100%; line-height: 1.02; }
  .hero-v4__stats { margin-top: 32px; }
  .hero-v4__actions .v4-btn { width: 100%; }
  .hero-v4__actions { flex-direction: column; align-items: stretch; }
  .explore-grid { grid-template-columns: 1fr 1fr; }
  .footer__bar { flex-direction: column; }
}

/* ---------- 15. ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal], .fade-in { opacity: 1 !important; transform: none !important; }
  .ticker-bar__inner { animation: none !important; }
  .hero-v4__dot { animation: none !important; }
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--v4-accent); color: #04141A; padding: 10px 16px;
  font-size: .85rem; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- 17. INDEX DIRECTORY ---------- */
.v4-directory {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--v4-line);
  border: 1px solid var(--v4-line); border-radius: var(--r-sm);
  overflow: hidden;
}
.v4-directory__col { background: var(--v4-surface); padding: 22px 20px 6px; }
.v4-directory__title {
  display: flex; align-items: center; gap: 10px;
  font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--v4-dim); font-weight: 600;
  padding-bottom: 12px; margin-bottom: 4px;
  border-bottom: 1px solid var(--v4-line);
}
.v4-directory__title span { color: var(--v4-accent); font-variant-numeric: tabular-nums; }
.v4-directory ul { list-style: none; margin: 0; padding: 0; }
.v4-directory li { border-bottom: 1px solid rgba(255,255,255,.035); }
.v4-directory li:last-child { border-bottom: 0; }
.v4-directory a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 10px 0; font-size: .855rem; color: var(--v4-text);
}
.v4-directory a i { font-style: normal; color: var(--v4-dim); font-size: .74rem; flex: none; }
.v4-directory a:hover { color: var(--v4-accent); }
@media (max-width: 1024px) { .v4-directory { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .v4-directory { grid-template-columns: 1fr; } }

/* ---------- 16. MOBILE DRAWER ---------- */
.hamburger { display: none; gap: 5px; background: none; border: 0; cursor: pointer; padding: 9px; }
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--v4-text); transition: transform .25s var(--v4-ease), opacity .2s; }
.hamburger.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .header__nav-mobile {
    position: fixed;
    top: calc(var(--header-h) + var(--ticker-h));
    left: 0; right: 0; bottom: 0;
    background: var(--v4-ink);
    border-top: 1px solid var(--v4-line);
    padding: 10px 22px 48px;
    display: flex; flex-direction: column;
    gap: 0;
    overflow-y: auto;
    z-index: 90;
    opacity: 0; visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .24s var(--v4-ease), transform .24s var(--v4-ease), visibility .24s;
  }
  .header__nav-mobile.is-open { opacity: 1; visibility: visible; transform: none; }
  .header__nav-mobile a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 2px;
    border-bottom: 1px solid var(--v4-line);
    font-size: 1rem; font-weight: 500; color: var(--v4-text);
  }
  .header__nav-mobile a::after {
    content: '→'; color: var(--v4-dim); font-size: .9rem;
    transition: transform .2s var(--v4-ease), color .2s;
  }
  .header__nav-mobile a:hover::after, .header__nav-mobile a.active::after { color: var(--v4-accent); transform: translateX(3px); }
  .header__nav-mobile a.active { color: var(--v4-accent); }
}
/* ---------- 18. LATE OVERRIDES (must come last: a plain rule after a
   media-query block wins regardless of the query) ---------- */
@media (max-width: 1024px) {
  .hamburger { display: grid; }
  .header__nav { display: none; }
  .header__search { display: none; }
}
@media (max-width: 640px) {
  .hero-v4 h1.hero-v4__title { font-size: clamp(2.3rem, 10.5vw, 3.1rem); }
}

/* ---------- 19. POLISH ---------- */
.header__nav > a.active,
.header__nav .nav-item.is-active > button {
  background: transparent;
  box-shadow: none;
  color: var(--v4-text);
}
.header__nav .nav-item.is-active > button { color: var(--v4-accent); }
.ticker-item { padding: 0 26px; }
.ticker-item__value { letter-spacing: -.012em; }
.hero-v4 .hero-v4__eyebrow { margin-bottom: 30px; }
.section-header h2 { gap: 16px; }
.explore-card__title { letter-spacing: -.012em; }

/* ---------- 20. HONEST DATA PRESENTATION ---------- */
/* The sector bar scaled on a +/-0.5% average, so all 15 rendered at ~50% and
   carried no information. The signed percentage already says it; drop the bar. */
.sector-bar { display: none; }
.sector-card { padding: 16px 18px; }
.sector-card__name { font-size: .9rem; font-weight: 500; letter-spacing: -.01em; }
.sector-card__count { font-size: .72rem; color: var(--v4-dim); }
.hero-v4__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fg-gauge__labels { justify-content: space-between !important; }

/* ---------- 21. INTERIOR PAGES (stock, coin, tools, calculators) ----------
   These templates carry heavy inline styles, so overriding them requires
   !important. Scoped to the specific components, never globally. */

/* --- detail page hero --- */
.hero:not(.hero-v4) {
  background: var(--v4-ink) !important;
  border-bottom: 1px solid var(--v4-line);
  padding: clamp(26px, 3.4vw, 46px) 0 clamp(18px, 2.4vw, 30px) !important;
  position: relative;
  overflow: hidden;
}
.hero:not(.hero-v4)::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 220px at 8% 0%, rgba(61,214,245,.07), transparent 70%);
}
.hero:not(.hero-v4) .container { position: relative; z-index: 1; }

.breadcrumbs { font-size: .74rem; color: var(--v4-dim); margin-bottom: 16px; letter-spacing: .01em; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.breadcrumbs a { color: var(--v4-dim); }
.breadcrumbs a:hover { color: var(--v4-accent); }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin: 0 9px; color: rgba(255,255,255,.18); }
.breadcrumbs li[aria-current] { color: var(--v4-muted); }

.detail-header { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; }
.detail-header__info h1,
.detail-header h1 {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  font-size: clamp(1.55rem, 2.9vw, 2.3rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -.02em !important;
  color: var(--v4-ivory) !important;
  display: inline !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: var(--v4-ivory) !important;
}
.detail-header__price {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem) !important;
  font-weight: 500 !important;
  letter-spacing: -.03em !important;
  color: var(--v4-text) !important;
  font-variant-numeric: tabular-nums;
}
.badge {
  font-size: .66rem !important;
  letter-spacing: .1em !important;
  text-transform: uppercase;
  font-weight: 600 !important;
  padding: 4px 9px !important;
  border-radius: var(--r-xs) !important;
  border: 1px solid var(--v4-line-2) !important;
  background: rgba(255,255,255,.035) !important;
  color: var(--v4-muted) !important;
}
.watchlist-star { font-size: 1.15rem !important; color: var(--v4-dim) !important; }
.watchlist-star.active, .watchlist-star:hover { color: var(--v4-accent) !important; }

/* --- chart range tabs --- */
.tab-bar {
  display: inline-flex !important; gap: 2px; padding: 3px;
  border: 1px solid var(--v4-line); border-radius: var(--r-xs);
  background: var(--v4-surface-2);
}
.tab-bar .tab {
  background: none !important; border: 0 !important;
  padding: 7px 13px; border-radius: 3px;
  font-family: inherit; font-size: .78rem; font-weight: 500;
  color: var(--v4-dim); cursor: pointer;
  transition: color .18s var(--v4-ease), background .18s var(--v4-ease);
}
.tab-bar .tab:hover { color: var(--v4-text); }
.tab-bar .tab.active { background: var(--v4-card-hi) !important; color: var(--v4-accent) !important; }

/* --- long-form content inside cards --- */
.stock-card h1 {
  font-family: var(--font-display) !important; font-weight: 400 !important;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem) !important;
  line-height: 1.12 !important; letter-spacing: -.02em !important;
  color: var(--v4-ivory); margin: 0 0 16px;
}
.stock-card h2 {
  font-family: var(--font-display) !important; font-weight: 400 !important;
  font-size: clamp(1.2rem, 1.9vw, 1.6rem) !important;
  letter-spacing: -.015em !important; color: var(--v4-ivory);
  margin: 34px 0 10px;
}
.stock-card h3 { font-size: 1.02rem !important; color: var(--v4-text); margin: 24px 0 8px; }
.stock-card p { font-size: .955rem !important; line-height: 1.78 !important; color: var(--v4-muted); max-width: 80ch; }
.stock-card a { color: var(--v4-accent); }
.stock-section-title { font-family: var(--font-display) !important; font-weight: 400 !important; color: var(--v4-ivory); }

/* --- charts, related lists, sidebar --- */
.chart-container { background: var(--v4-surface) !important; border: 1px solid var(--v4-line) !important;
  border-radius: var(--r-sm) !important; padding: 16px !important; margin: 26px 0 !important; }
.chart-container canvas { max-width: 100% !important; }
/* never force height on a Chart.js canvas: it re-measures the parent and
   inflates to the intrinsic aspect ratio (1184x1533 instead of 1184x526) */
.chart-container svg { max-width: 100%; height: auto; }
.related-coins, .sidebar-categories {
  background: var(--v4-surface) !important; border: 1px solid var(--v4-line) !important;
  border-radius: var(--r-sm) !important; padding: 18px 20px !important; margin: 24px 0 !important;
}
.related-coins h3, .sidebar-categories h3 {
  font-family: var(--font-sans) !important; font-size: .68rem !important;
  text-transform: uppercase; letter-spacing: .13em; color: var(--v4-dim) !important;
  font-weight: 600 !important; margin: 0 0 12px !important;
}
.related-coins ul { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 20px; padding: 0 !important; list-style: none; }
.related-coins li { border-bottom: 1px solid var(--v4-line); }
.related-coins a { display: block; padding: 9px 0; font-size: .84rem !important; }

/* --- tools index --- */
.tools-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 1px !important;
  background: var(--v4-line) !important;
  border: 1px solid var(--v4-line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.tools-grid > a {
  border: 0 !important; border-radius: 0 !important;
  background: var(--v4-surface) !important;
  padding: 22px 22px 20px !important;
  transition: background .2s var(--v4-ease);
}
.tools-grid > a:hover { background: var(--v4-card-hi) !important; }
.tools-grid > a > div[style*="2.5rem"] { display: none !important; }
.tools-grid > a h3 { font-size: 1rem !important; font-weight: 500 !important; letter-spacing: -.012em; color: var(--v4-text) !important; }
.tools-grid > a p { font-size: .845rem !important; color: var(--v4-muted) !important; line-height: 1.6 !important; }
.tools-grid .badge { font-size: .62rem !important; padding: 3px 8px !important; }

/* --- calculator cards --- */
.card { background: var(--v4-surface) !important; border: 1px solid var(--v4-line) !important; border-radius: var(--r-md) !important; }
.card input, .card select, .card textarea {
  background: var(--v4-surface-2) !important;
  border-color: var(--v4-line) !important;
  color: var(--v4-text) !important;
  border-radius: var(--r-xs) !important;
}
.card input:focus, .card select:focus { border-color: var(--v4-accent) !important; }
.card label { color: var(--v4-muted) !important; font-size: .8rem !important; }
.card h2 { font-family: var(--font-display) !important; font-weight: 400 !important; color: var(--v4-ivory) !important; }

/* --- tables must never create page-level overflow --- */
.data-table-wrapper { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }

/* --- responsive: interior templates --- */
@media (max-width: 900px) {
  .detail-header { flex-direction: column; align-items: flex-start; }
  .tools-grid { grid-template-columns: 1fr !important; }
  .card > div[style*="1fr 1fr"] { grid-template-columns: 1fr !important; gap: 22px !important; }
  .detail-header__price { font-size: 1.95rem !important; }
  .stock-card { padding: 22px 20px !important; }
}
@media (max-width: 640px) {
  .detail-header__info h1, .detail-header h1 { font-size: 1.4rem !important; }
  .related-coins ul { grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .hero:not(.hero-v4) { padding: 22px 0 18px !important; }
}

/* ---------- 22. INTERIOR HEROES + COIN CONTENT ----------
   Verified against the live DOM: interior pages put the h1 inside
   `.hero > .container > .hero-content`; coin pages use
   `<main class="container coin-seo-page">` with a bare h1/h2 flow. */

.hero:not(.hero-v4) h1,
.hero:not(.hero-v4) .hero-content h1,
.coin-seo-page h1 {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  font-size: clamp(1.75rem, 3.1vw, 2.75rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.022em !important;
  color: var(--v4-ivory) !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: var(--v4-ivory) !important;
  margin: 0 0 12px !important;
}
.hero:not(.hero-v4) p,
.hero:not(.hero-v4) .hero-content p {
  color: var(--v4-muted) !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
  max-width: 66ch;
}
.hero-content { display: flex; flex-direction: column; gap: 0; padding-top: 4px; }

.coin-seo-page h2 {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  font-size: clamp(1.25rem, 2vw, 1.7rem) !important;
  letter-spacing: -.015em !important;
  color: var(--v4-ivory) !important;
  margin: 34px 0 10px !important;
}
.coin-seo-page p { color: var(--v4-muted); font-size: .96rem; line-height: 1.78; max-width: 80ch; }
.coin-seo-page h1 + p { font-size: 1.02rem; color: var(--v4-text); }
.coin-seo-page > .related-coins, .coin-seo-page ul { margin-bottom: 0; }

@media (max-width: 640px) {
  .hero:not(.hero-v4) h1, .coin-seo-page h1 { font-size: 1.75rem !important; }
}

/* ---------- 23. CHART SIZING ----------
   The stock chart canvas is injected into a `.data-table-wrapper` that has no
   definite height. Chart.js sizes a responsive canvas from its parent's content
   box, so it measured its own output and inflated to 1184x1427. A definite
   parent height breaks the feedback loop; Chart.js then renders at that size. */
.data-table-wrapper:has(> canvas) {
  height: 340px !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.data-table-wrapper:has(> canvas) > canvas { margin-top: 0 !important; }
.chart-container { height: 340px; }
.chart-container canvas { max-width: 100%; }
@media (max-width: 900px) {
  .data-table-wrapper:has(> canvas) { height: 260px !important; }
  .chart-container { height: 260px; }
}

/* ---------- PAGER (listing tables) ---------- */
.v4-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 20px 2px 6px;
}
.v4-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 9px 12px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--v4-muted);
  text-decoration: none;
  border: 1px solid var(--v4-line);
  border-radius: var(--r-sm);
  background: transparent;
  transition: color .18s var(--v4-ease), border-color .18s var(--v4-ease), background .18s var(--v4-ease);
}
.v4-pager__btn:hover,
.v4-pager__btn:focus-visible {
  color: var(--v4-text);
  border-color: var(--v4-line-2);
  background: var(--v4-card);
}
.v4-pager__btn.is-current {
  color: var(--v4-ink);
  background: var(--v4-accent);
  border-color: var(--v4-accent);
  font-weight: 600;
}
.v4-pager__btn[rel="prev"],
.v4-pager__btn[rel="next"] {
  padding: 9px 14px;
  letter-spacing: .06em;
  color: var(--v4-text);
}
@media (max-width: 640px) {
  .v4-pager { gap: 5px; padding-top: 16px; }
  .v4-pager__btn { min-width: 34px; padding: 8px 10px; font-size: .74rem; }
}
/* ---------- A11Y: in-content links must not rely on colour alone ---------- */
.stock-card p a,
.stock-card li a,
.prose a:not(.btn):not(.v4-pager__btn),
.content a:not(.btn):not(.v4-pager__btn),
article p a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: var(--v4-accent-soft);
}
.stock-card p a:hover,
.prose a:hover,
.content a:hover {
  text-decoration-color: var(--v4-accent);
}

/* ---------- CLS: reserve the hero artwork box before it paints ---------- */
.hero-v4__art {
  aspect-ratio: 520 / 420;
  height: auto;
  contain: layout paint;
}

/* ---------- SELF-HOSTED FONTS (no third-party request) ---------- */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/jizHRFtNs2ka5fXjeivQ4LroWlx-6zAjgn7MsNo.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/jizHRFtNs2ka5fXjeivQ4LroWlx-6zAjjH7M.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: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/jizBRFtNs2ka5fXjeivQ4LroWlx-6zsTjmbI.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/jizBRFtNs2ka5fXjeivQ4LroWlx-6zUTjg.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: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsK8ah8QA.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsD8ah8QA.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsL8ah8QA.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsE8ah8QA.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsI8ah8QA.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsJ8ah8QA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsH8ag.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: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsK8ah8QA.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsD8ah8QA.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsL8ah8QA.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsE8ah8QA.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsI8ah8QA.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsJ8ah8QA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsH8ag.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: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsK8ah8QA.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsD8ah8QA.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsL8ah8QA.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsE8ah8QA.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsI8ah8QA.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsJ8ah8QA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/NGSwv5HMAFg6IuGlBNMjxLsH8ag.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;
}

/* --- sector peers + historical returns (stock pages) --- */
.stock-peers, .stock-returns { margin: 2.6rem 0; }
.stock-peers h2, .stock-returns h2 {
  font-family: var(--v4-display, Georgia, serif);
  font-size: 1.35rem; letter-spacing: -.01em; margin: 0 0 .35rem;
  color: var(--v4-ivory, #f2f0ea);
}
.stock-peers__note, .stock-returns__note {
  font-size: .86rem; color: var(--v4-muted, #808CA0); margin: 0 0 1rem; line-height: 1.6;
}
.stock-peers__table { overflow-x: auto; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; }
.stock-peers__table table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.stock-peers__table th {
  text-align: left; padding: .7rem .85rem; font-weight: 600; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .07em; color: var(--v4-muted, #808CA0);
  border-bottom: 1px solid rgba(255,255,255,.07); white-space: nowrap;
}
.stock-peers__table td { padding: .7rem .85rem; border-bottom: 1px solid rgba(255,255,255,.045); }
.stock-peers__table tr:last-child td { border-bottom: 0; }
.stock-peers__table tbody tr:hover { background: rgba(255,255,255,.03); }
.stock-peers__table a { color: var(--v4-ivory, #f2f0ea); text-decoration: none; }
.stock-peers__table a:hover { color: var(--v4-accent, #37e0d0); }
.stock-peers .up, .stock-returns .up { color: #35d08a; }
.stock-peers .down, .stock-returns .down { color: #ff6b6b; }
.stock-returns__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem;
}
.stock-returns__cell {
  border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: .85rem 1rem;
  display: flex; flex-direction: column; gap: .25rem;
  background: rgba(255,255,255,.015);
}
.stock-returns__cell span {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--v4-muted, #808CA0);
}
.stock-returns__cell b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .stock-returns__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stock-peers__table th:nth-child(4), .stock-peers__table td:nth-child(4) { display: none; }
}
