/* Crypto and Stocks News — bitcoin.com information architecture
   Display: Barlow Condensed (Elza stand-in). UI: Inter (Satoshi stand-in).
   Orange #ff9500, royal #4169e1, mist #f0f0f5, black #000, charcoal footer #1c1c1c. */

:root {
  --orange: #ff9500;
  --royal: #4169e1;
  --black: #000;
  --ink: #000;
  --text: #111;
  --muted: #5c5c66;
  --line: #e8e8ee;
  --mist: #f0f0f5;
  --white: #fff;
  --peach: #ffe8c2;
  --mint: #c8f5e4;
  --lilac: #d9d0f5;
  --teal: #14b8a6;
  --blue: #4f6bff;
  --ad: #f5f1ff;
  --ad-line: #d9cdfb;
  --ad-ink: #5b21b6;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 20px;
  --wrap: 1240px;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Barlow Condensed", Inter, Impact, sans-serif;
  --hdr: 72px;
}
[data-theme="dark"] {
  --ink: #fff; --text: #f2f2f2; --muted: #a8a8b3; --line: #2a2a32;
  --mist: #16161c; --white: #0c0c10; --black: #fff;
  --peach: #3a2a10; --mint: #0f2e26; --lilac: #241c3a;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
h1, h2, h3 { margin: 0 0 .35em; color: var(--ink); }
p { margin: 0 0 .85em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #000; color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--muted); line-height: 1.55; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.chg-up { color: var(--green); } .chg-down { color: var(--red); }
.dot { margin: 0 .4em; color: #c4c4cc; }
.ad-label { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ad-ink); }

/* Display type — bitcoin.com condensed uppercase */
.display { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem); line-height: .92; letter-spacing: -.02em; text-transform: uppercase; color: var(--ink); margin: 0 0 28px; }
.display-sm { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); margin-bottom: 18px; }

/* Pills */
.pill { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform .12s, filter .12s; }
.pill:hover { filter: brightness(1.06); }
.pill-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.pill-orange { background: var(--orange); color: #000; }
.pill-black { background: #000; color: #fff; }
.pill-white { background: #fff; color: #000; }
.pill-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.pill-ghost-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.pill-blue { background: var(--blue); color: #fff; }
.pill-teal { background: var(--teal); color: #000; }
.pill-violet { background: #7c3aed; color: #fff; }
.pill-navy { background: #0f172a; color: #fff; }
[data-theme="dark"] .pill-black { background: #fff; color: #000; }
[data-theme="dark"] .pill-ghost { border-color: #3a3a44; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 80; background: var(--white); }
.hdr-inner { display: flex; align-items: center; gap: 18px; height: var(--hdr); }
.hdr-logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.hdr-logo img { width: 40px; height: 40px; border-radius: 12px; }
.hdr-wordmark { display: flex; flex-direction: column; line-height: 1.02; font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.hdr-wordmark span:last-child { color: #e07f00; }
.pillnav { display: flex; align-items: center; margin: 0 auto; background: #111; border-radius: 999px; padding: 4px; height: 44px; }
[data-theme="dark"] .pillnav { background: #1a1a22; }
.pillnav-item { position: relative; z-index: 1; }
.pillnav-item.has-menu { z-index: 2; }
.pillnav-item.has-menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.pillnav-item.has-menu:hover, .pillnav-item.has-menu:focus-within { z-index: 90; }
.pillnav-link { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.pillnav-link:hover, .pillnav-link.is-active { background: rgba(255,255,255,.1); }
.pillnav-link .chev { opacity: .7; }
.pillnav-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: #fff; color: #111; border-radius: 16px; box-shadow: 0 18px 50px -18px rgba(0,0,0,.35); padding: 8px; z-index: 95; pointer-events: auto; border: 1px solid #eee; }
.pillnav-item:hover .pillnav-menu, .pillnav-item:focus-within .pillnav-menu, .pillnav-item.is-open .pillnav-menu { display: block; }
[data-theme="dark"] .pillnav-menu { background: #1a1a22; color: #f2f2f2; border-color: #333; }
[data-theme="dark"] .pillnav-menu a:hover { background: #252530; }
.pillnav-menu a { display: block; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.pillnav-menu a:hover { background: var(--mist); }
.hdr-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.icon-btn:hover { background: var(--mist); }
.icon-btn-blue { background: var(--royal); color: #fff; border-color: var(--royal); }
.ico-sun { display: none; } [data-theme="dark"] .ico-moon { display: none; } [data-theme="dark"] .ico-sun { display: block; }
.hdr-burger { display: none; }
.hdr-search[hidden], .hdr-mobile[hidden] { display: none !important; }
.hdr-search { border-top: 1px solid var(--line); background: var(--white); padding: 12px 0; }
.hdr-search .wrap { display: flex; align-items: center; gap: 10px; }
.hdr-search input { flex: 1; height: 44px; border: 0; outline: 0; font-size: 1rem; background: transparent; color: var(--text); }
.hdr-mobile { border-top: 1px solid var(--line); background: var(--white); padding: 8px 20px 20px; display: flex; flex-direction: column; }
.hdr-mobile-top { font-weight: 700; padding: 12px 0 4px; }
.hdr-mobile-sub { padding: 6px 0 6px 12px; color: var(--muted); font-size: .92rem; }

/* Coin bar */
.coinbar { border-top: 1px solid var(--line); background: var(--white); padding: 10px 0 8px; overflow: hidden; }
.coinbar-wrap { position: relative; }
.coinbar-marquee { overflow: hidden; width: 100%; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.coinbar-track { display: flex; gap: 28px; width: max-content; padding-bottom: 4px; will-change: transform; }
.coinbar-track.is-marquee { animation: coinbar-roll var(--coinbar-dur, 45s) linear infinite; }
.coinbar-marquee:hover .coinbar-track.is-marquee { animation-play-state: paused; }
@keyframes coinbar-roll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.coin { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--ink); }
.coin-name { font-weight: 600; font-size: .86rem; display: flex; flex-direction: column; line-height: 1.15; }
.coin-name small { font-weight: 500; color: var(--muted); font-size: .7rem; }
.coin-px { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .86rem; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.coin-px small { font-size: .72rem; font-weight: 600; }
.coin-px .up { color: var(--green); } .coin-px .down { color: var(--red); }
.coin-icon { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; flex: none; }
.coin-icon svg { width: 22px; height: 22px; display: block; }
.coin-icon--txt { color: #fff; font-size: 8px; font-weight: 800; letter-spacing: -.02em; }
.coinbar-by { margin: 6px 0 0; font-size: .72rem; color: var(--muted); }
.coinbar-by a { font-weight: 600; color: var(--ink); }

/* Hero ad + hero */
.hero-ad-band { padding: 12px 0 0; }
.hero-ad-band .ad-hero { margin: 0; border-radius: 14px; }
.hero-ad-band .ad-hero .ad-body { min-height: 0; max-height: 90px; padding: 6px 10px; }
.hero-ad-band .ad-hero .ad-body img { max-height: 78px; width: auto; margin: 0 auto; }
.hero-ad-band .ad-hero.ad-house .ad-house-inner { min-height: 72px; max-height: 90px; padding: 12px 16px; border-radius: 14px; }
.hero-ad-band .ad-hero .ad-label { padding: 4px 10px 0; font-size: .58rem; }
.hero-ad-band .ad-hero.ad-house .ad-house-title { font-size: 1rem; }
.hero-ad-band .ad-hero.ad-house .ad-house-kicker { font-size: .65rem; }
.hero-bc { padding: 36px 0 48px; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 32px; align-items: stretch; }
.hero-bc-main { text-align: left; display: flex; flex-direction: column; justify-content: center; min-height: 100%; }
.hero-bc-main h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.75rem, 1.5rem + 4.8vw, 5rem); line-height: .88; letter-spacing: -.025em; text-transform: uppercase; max-width: none; width: 100%; margin: 0 0 .35em; }
.hero-bc-sub { max-width: 34rem; margin: 0 0 22px; font-size: 1.08rem; color: var(--muted); line-height: 1.5; }
.hero-bc-ctas { display: flex; gap: 10px; justify-content: flex-start; flex-wrap: wrap; }
.hero-desk { background: var(--mist); border-radius: 20px; padding: 20px 18px 16px; border: 1px solid var(--line); }
.hero-desk-title { font-family: var(--display); font-weight: 800; font-size: 1.65rem; text-transform: uppercase; letter-spacing: -.02em; margin: 0; line-height: 1; }
.hero-desk-sub { margin: 6px 0 14px; font-size: .88rem; color: var(--muted); }
.hero-desk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hero-desk-item { display: flex; gap: 12px; padding: 10px 8px; border-radius: 12px; align-items: flex-start; }
.hero-desk-item:hover { background: var(--white); }
.hero-desk-thumb { flex: none; width: 72px; height: 54px; border-radius: 10px; overflow: hidden; background: var(--white); display: block; }
.hero-desk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-desk-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hero-desk-cat { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #e07f00; }
.hero-desk-h { font-weight: 700; font-size: .92rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.hero-desk-meta { font-size: .75rem; color: var(--muted); }
.hero-desk-more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: .88rem; padding-left: 8px; }
.hero-desk-empty { margin: 8px 0 0; font-size: .88rem; line-height: 1.45; padding: 0 4px; }

/* Bands */
.band { padding: 72px 0; }
.band-mist { background: var(--mist); }
.band-black { background: #000; color: #fff; }
.band-black .display, .band-black h3 { color: #fff; }
.band-royal { background: var(--royal); color: #fff; text-align: center; }
.band-royal .display { color: #fff; }
.band-royal p, .band-black p { color: rgba(255,255,255,.82); max-width: 40rem; margin-left: auto; margin-right: auto; }
.band-center { text-align: center; }
.band-tight { padding-top: 0; }
.band-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 8px; }
.band-lede { color: var(--muted); margin: -12px 0 28px; max-width: 36rem; }
.band-lede-wide { max-width: 44rem; }
.band-more { margin: 22px 0 0; font-weight: 600; }
.carousel-nav { display: flex; gap: 8px; }

/* Soft cards (Jump / More) */
.soft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.soft-card { display: flex; gap: 16px; background: var(--mist); border-radius: 22px; padding: 22px; transition: transform .15s; }
.soft-card-white { background: var(--white); }
.soft-card:hover { transform: translateY(-2px); }
.soft-card h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.35rem; letter-spacing: -.01em; margin: 0 0 4px; }
.soft-card p { margin: 0 0 10px; color: var(--muted); font-size: .92rem; }
.soft-cta { font-weight: 600; font-size: .9rem; color: var(--ink); }

/* Isometric icon tiles */
.iso { width: 56px; height: 56px; border-radius: 16px; background: var(--white); flex: none; position: relative; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.soft-card-white .iso, .do-card .iso, .help-card .iso { background: var(--mist); }
.iso::before, .iso::after { content: ""; position: absolute; inset: 16px; border-radius: 6px; background: #111; }
.iso-cube::before { transform: perspective(40px) rotateX(18deg) rotateZ(-18deg); background: linear-gradient(#5b8cff, #3b6cff); }
.iso-cube::after { inset: 22px 16px 14px 22px; background: #ffb020; transform: none; border-radius: 4px; }
.iso-chart::before { inset: 18px 16px 14px; background: linear-gradient(90deg, #c4c4cc 20%, #ff9500 20% 45%, #14b8a6 45% 70%, #4169e1 70%); transform: none; border-radius: 3px; clip-path: polygon(0 70%, 28% 45%, 52% 60%, 78% 20%, 100% 35%, 100% 100%, 0 100%); }
.iso-chart::after { display: none; }
.iso-coin::before { border-radius: 50%; background: var(--orange); }
.iso-coin::after { inset: 22px; border-radius: 50%; background: #fff; opacity: .35; }
.iso-game::before { border-radius: 10px; background: #111; transform: none; }
.iso-game::after { inset: 24px 18px; background: #fff; border-radius: 2px; }
.iso-globe::before { border-radius: 50%; background: #4169e1; }
.iso-globe::after { inset: 20px 24px; background: #fff; opacity: .4; }
.iso-star::before { clip-path: polygon(50% 8%, 61% 38%, 94% 38%, 67% 58%, 78% 90%, 50% 70%, 22% 90%, 33% 58%, 6% 38%, 39% 38%); background: var(--orange); transform: none; }
.iso-star::after { display: none; }
.iso-book::before { background: #4169e1; transform: none; border-radius: 3px; }
.iso-book::after { inset: 16px 28px 16px 16px; background: #fff; opacity: .5; }
.iso-mic::before { border-radius: 10px 10px 4px 4px; background: #111; }
.iso-help::before { border-radius: 50%; background: var(--royal); }
.iso-pin::before { border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #f59e0b; }
.iso-head::before { border-radius: 50%; background: #111; inset: 16px 16px 22px; }
.iso-head::after { inset: 30px 18px 14px; border-radius: 8px; background: #111; }
.iso-play::before { clip-path: polygon(30% 20%, 80% 50%, 30% 80%); background: #4169e1; transform: none; }

/* Stats */
.stat-pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-pill { border-radius: 22px; padding: 28px 20px; text-align: center; color: #111; }
.stat-pill strong { display: block; font-family: var(--display); font-size: 3rem; line-height: 1; font-weight: 800; }
.stat-pill span { display: block; margin-top: 6px; font-size: .9rem; }
.stat-blue { background: #4f6bff; color: #fff; }
.stat-orange { background: var(--orange); }
.stat-teal { background: #14b8a6; }
.stat-lilac { background: #c4b5fd; }

/* Learn hub (bitcoin.com-style guides) */
.learn-hub { padding: 40px 0 24px; }
.learn-crumb { margin-bottom: 18px; font-size: .88rem; color: var(--muted); }
.learn-hub-title { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 1.4rem + 3.5vw, 3.6rem); line-height: .92; text-transform: uppercase; letter-spacing: -.02em; margin: 0 0 14px; max-width: 16ch; }
.learn-hub-lede { font-size: 1.12rem; color: var(--muted); max-width: 42rem; line-height: 1.55; margin: 0 0 28px; }
.learn-card-scroll { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; margin-bottom: 8px; }
.learn-card-scroll::-webkit-scrollbar { display: none; }
.learn-card-scroll--sm { margin-top: 24px; }
.learn-card-track { display: flex; gap: 18px; width: max-content; padding: 4px 2px 12px; }
.learn-card-bc { flex: 0 0 min(280px, 82vw); scroll-snap-align: start; background: transparent; border: 0; border-radius: 0; padding: 0 4px 12px; display: flex; flex-direction: column; gap: 12px; }
.learn-card-bc--compact { flex-basis: min(260px, 78vw); }
.learn-card-art { width: 100%; aspect-ratio: 1; border-radius: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 2px; overflow: hidden; }
.learn-card-art img { width: 72%; height: 72%; object-fit: contain; }
.learn-card-h { font-family: var(--display); font-size: 1.12rem; line-height: 1.12; text-transform: uppercase; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.learn-card-h a:hover { color: var(--royal); }
.learn-card-excerpt { font-size: .94rem; color: var(--muted); line-height: 1.5; margin: 0; flex: 1; }
.learn-card-meta { font-size: .78rem; color: var(--muted); margin: 0; }
.learn-card-cta { font-weight: 700; font-size: .92rem; color: var(--royal); margin-top: 2px; }
.learn-card-cta:hover { text-decoration: underline; }
.learn-guide-hero { padding: 32px 0 8px; }
.learn-guide-hub { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); line-height: .92; text-transform: uppercase; margin: 12px 0 10px; max-width: 20ch; }
.learn-guide-hub-sub { color: var(--muted); font-size: 1.05rem; max-width: 40rem; margin: 0 0 8px; }
.learn-guide-layout { padding-bottom: 56px; }
.learn-article-layout { align-items: start; margin-top: 24px; }
.learn-article { max-width: 720px; }
.learn-article-title { font-family: var(--display); font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.2rem); line-height: 1.08; text-transform: uppercase; margin: 0 0 10px; }
.learn-article-meta { font-size: .82rem; color: var(--muted); margin: 0 0 20px; }
.learn-article-lede { font-size: 1.15rem; line-height: 1.55; margin: 0 0 18px; color: var(--text); }
.learn-article-p { font-size: 1.02rem; line-height: 1.65; color: #333; margin: 0 0 16px; }
[data-theme="dark"] .learn-article-p { color: #d4d4dc; }
.learn-keypoints { background: var(--mist); border-radius: 16px; padding: 18px 20px; margin: 24px 0; }
.learn-keypoints-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
.guide-points { margin: 0; padding-left: 1.2rem; }
.guide-points li { margin-bottom: 6px; }
.learn-disclaimer { font-size: .85rem; margin-top: 28px; }
.learn-sidebar .learn-side-card { background: var(--mist); border-radius: 18px; padding: 18px; margin-bottom: 14px; }
.learn-side-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--royal); margin: 0 0 8px; }
.learn-side-title { font-family: var(--display); font-size: 1.05rem; text-transform: uppercase; line-height: 1.2; margin: 0 0 8px; }
.learn-side-excerpt { font-size: .88rem; color: var(--muted); margin: 0 0 12px; line-height: 1.45; }
.learn-side-cta { font-weight: 700; color: var(--royal); }
.learn-side-art { width: 100%; aspect-ratio: 1; border-radius: 18px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; }
.learn-side-art img { width: 70%; height: 70%; object-fit: contain; }

/* Trending cards */
.trend-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.trend-track::-webkit-scrollbar { display: none; }
.trend-card { flex: 0 0 min(300px, 78vw); scroll-snap-align: start; background: #111; color: #fff; border-radius: 18px; overflow: hidden; }
.trend-media { display: block; aspect-ratio: 16/10; background: #1c1c1c; }
.trend-media img { width: 100%; height: 100%; object-fit: cover; }
.trend-media.tone-navy { background: linear-gradient(145deg, #0f172a, #334155); }
.trend-media.tone-orange { background: linear-gradient(145deg, #c2410c, #ff9500); }
.trend-media.tone-green { background: linear-gradient(145deg, #047857, #14b8a6); }
.trend-media.tone-slate { background: linear-gradient(145deg, #334155, #64748b); }
.trend-media.tone-violet { background: linear-gradient(145deg, #5b21b6, #a78bfa); }
.trend-media.tone-teal { background: linear-gradient(145deg, #0f766e, #2dd4bf); }
.trend-body { padding: 14px 16px 18px; }
.trend-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .82rem; margin: 0 0 6px; }
.trend-brand img { border-radius: 5px; }
.trend-meta { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #a8a8b3; margin: 0 0 8px; }
.trend-card h3 { font-size: 1.02rem; line-height: 1.3; margin: 0; color: #fff; }
.trend-card h3 a:hover { color: var(--orange); }

/* Do grid */
.do-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.do-card { background: var(--mist); border-radius: 22px; padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.do-card h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.45rem; }
.do-card p { color: var(--muted); flex: 1; margin: 0; }
.do-card .pill { align-self: stretch; height: 44px; }

/* Directory */
.dir { border-radius: 24px; overflow: hidden; }
.dir-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
.dir-tab { padding: 16px; font-weight: 700; background: var(--mist); color: var(--muted); }
.dir-tab.is-on { background: var(--peach); color: #111; }
.dir-tab:nth-child(2).is-on { background: #d6e0ff; }
.dir-tab:nth-child(3).is-on { background: var(--mint); }
.dir-panel { display: none; padding: 28px; }
.dir-panel.is-on { display: block; }
.dir-peach { background: var(--peach); } .dir-blue { background: #d6e0ff; } .dir-mint { background: var(--mint); }
.dir-panel h3 { font-size: 1.4rem; margin-bottom: 18px; }
.dir-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dir-links a { background: #fff; border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; color: #111; }
.dir-links a:hover { box-shadow: 0 8px 24px -16px #000; }
.dir-links span { color: #5c5c66; font-size: .88rem; }

/* FAQ */
.faq-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq-item summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--muted); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 16px; color: var(--muted); }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.help-card { background: #fff; color: #111; border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.help-card h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.3rem; color: #111; }
.help-card p { margin: 0; color: #5c5c66; }

/* Page chrome (inner pages) */
.page-hero { padding: 40px 0 28px; }
.page-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 1.4rem + 3vw, 3.8rem); text-transform: uppercase; letter-spacing: -.02em; line-height: .95; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 12px; display: flex; gap: 8px; }
.section-block { padding: 28px 0 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-family: var(--display); text-transform: uppercase; font-size: 1.6rem; margin: 0; }
.section-head a { font-weight: 600; color: var(--muted); }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.sidebar-rail { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 90px; }
.news-feed { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.story { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.story-media { display: block; position: relative; aspect-ratio: 16/9; background: var(--mist); }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-media-fallback { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 3rem; color: rgba(255,255,255,.75); }
.story-media:not(:has(img)) .story-media-fallback, .story-media.no-img .story-media-fallback { display: flex; }
.tone-navy { background: linear-gradient(135deg, #0f172a, #334155); }
.tone-orange { background: linear-gradient(135deg, #ff9500, #ffb75e); }
.tone-green { background: linear-gradient(135deg, #065f46, #10b981); }
.tone-slate { background: linear-gradient(135deg, #475569, #94a3b8); }
.tone-violet { background: linear-gradient(135deg, #4c1d95, #8b5cf6); }
.tone-teal { background: linear-gradient(135deg, #134e4a, #14b8a6); }
.story-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.story-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #e07f00; margin: 0; }
.story-flag { background: #111; color: #fff; padding: 2px 7px; border-radius: 4px; font-size: .62rem; }
.story-title { font-size: 1.05rem; margin: 0; line-height: 1.3; }
.story-title a:hover { color: #e07f00; }
.story-excerpt { color: var(--muted); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-meta { margin: auto 0 0; font-size: .78rem; color: var(--muted); }
.story--row { flex-direction: row; }
.story--row .story-media { flex: 0 0 220px; aspect-ratio: 4/3; }
.story--mini { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); flex-direction: row; gap: 12px; padding: 12px 0; }
.story--mini .story-media { flex: 0 0 92px; aspect-ratio: 1; border-radius: 8px; }
.story--mini .story-body { padding: 0; }
.story--lead { flex-direction: row; margin-bottom: 24px; }
.story--lead .story-media { flex: 0 0 56%; }
.story--lead .story-title { font-size: 1.6rem; }
.story-grid { display: grid; gap: 18px; }
.story-grid--4 { grid-template-columns: repeat(4, 1fr); }
.story-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rail-box { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.rail-heading { font-family: var(--display); font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.rail-quotes { list-style: none; margin: 0; padding: 0; }
.rail-quotes li a { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .88rem; font-variant-numeric: tabular-nums; }
.rail-more { display: inline-block; margin-top: 10px; font-weight: 600; }
.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.rail-list li a { font-weight: 600; display: block; }
.rail-list li span { font-size: .75rem; color: var(--muted); }
.empty-state { text-align: center; padding: 48px 20px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; color: var(--muted); }
.topic-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .84rem; font-weight: 600; }
.topic-strip { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 0; }

/* Markets */
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.market-panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.market-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.market-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.market-table td { padding: 11px 6px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.market-table .num { text-align: right; }
.market-sym { font-weight: 700; display: block; }
.market-name { font-size: .75rem; color: var(--muted); }
.desk-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.desk-note { display: flex; gap: 14px; background: var(--white); border: 1px solid var(--line); border-left-width: 4px; border-radius: 12px; padding: 14px 16px; }
.desk-note--bullish { border-left-color: var(--green); } .desk-note--bearish { border-left-color: var(--red); }
.desk-note-sym { font-family: var(--display); font-weight: 800; min-width: 44px; }
.desk-note p { margin: 0; font-size: .88rem; color: var(--muted); }
.quote-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.alt-inset { background: var(--mist); border-radius: 16px; padding: 24px; margin: 24px 0; }

/* Product */
.product-hero { padding: 56px 0 48px; }
.product-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.product-hero h1 { font-family: var(--display); font-size: clamp(2.4rem, 1.5rem + 3vw, 4rem); text-transform: uppercase; line-height: .95; }
.product-trust { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.product-trust li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.product-widget { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: 0 24px 60px -28px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 12px; max-width: 440px; margin-left: auto; width: 100%; }
.product-widget-head { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.product-widget-row { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; height: 58px; gap: 10px; }
.product-widget-row input, .product-widget-row output { flex: 1; border: 0; outline: 0; background: transparent; font-weight: 800; font-size: 1.5rem; min-width: 0; font-variant-numeric: tabular-nums; color: var(--ink); }
.product-widget-unit { font-weight: 700; color: var(--muted); background: var(--mist); border-radius: 8px; padding: 6px 10px; font-size: .85rem; }
.product-widget-swap { align-self: center; width: 34px; height: 34px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; margin: -18px 0; z-index: 1; }
.product-widget-note { margin: 0; font-size: .76rem; color: var(--muted); text-align: center; }
.product-widget-quote { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--mist); border-radius: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid--4 { grid-template-columns: repeat(4, 1fr); }
.feature-card { background: var(--mist); border-radius: 18px; padding: 22px; display: block; }
.feature-num { font-family: var(--display); font-weight: 800; color: var(--orange); font-size: .85rem; letter-spacing: .1em; display: block; margin-bottom: 10px; }
.feature-card p { margin: 0; color: var(--muted); }
.bc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-bc { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.btn-bc-primary { background: var(--orange); color: #111; }
.btn-bc-outline { background: transparent; border: 1px solid var(--line); }
.btn-bc-dark { background: #111; color: #fff; }
.btn-bc-ghost { background: transparent; }
.btn-bc-lg { height: 48px; padding: 0 22px; }
.btn-bc-block { width: 100%; }

/* Ads */
.ad { position: relative; border: 1px solid var(--ad-line); background: var(--ad); border-radius: 14px; margin: 18px 0; overflow: hidden; }
.ad .ad-label { display: block; padding: 6px 10px 0; }
.ad-body { display: flex; align-items: center; justify-content: center; padding: 10px; min-height: 90px; }
.ad-mrec .ad-body { min-height: 250px; }
.ad-hero .ad-body { min-height: 120px; }
.ad-hero.ad-house .ad-house-inner { min-height: 120px; }
.ad-body img { max-width: 100%; max-height: 120px; }
.ad-house-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 22px 18px; min-height: 90px; }
.ad-house-kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ad-ink); font-weight: 700; }
.ad-house-title { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.ad-house-cta { font-size: .82rem; color: #6d28d9; font-weight: 600; }
.spot-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.spot-mini { background: var(--white); border: 1px solid var(--ad-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.spot-mini img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.spot-mini strong { padding: 12px 14px 2px; }
.spot-mini span { padding: 0 14px 12px; font-size: .75rem; color: var(--ad-ink); }

/* Article */
.article-page { padding: 8px 0 40px; }
.article h1 { font-family: var(--display); font-size: clamp(2rem, 1.3rem + 2vw, 3rem); text-transform: uppercase; line-height: .95; }
.article-meta { color: var(--muted); font-size: .88rem; }
.article-figure { margin: 0 0 20px; border-radius: 16px; overflow: hidden; }
.article-figure img { width: 100%; max-height: 520px; object-fit: cover; }
.article-source-box { background: var(--mist); border-radius: 16px; padding: 20px 22px; margin: 20px 0; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.related { margin-top: 32px; }
.search-form { display: flex; gap: 10px; margin-bottom: 20px; max-width: 720px; }
.search-form input { flex: 1; height: 48px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; font-size: 1rem; outline: 0; background: var(--white); color: var(--text); }
.guide { max-width: 760px; }
.guide p { color: var(--muted); font-size: 1.05rem; }
.guide-points { padding-left: 1.2em; color: var(--text); }
.guide-points li { margin: 6px 0; }
.prose { max-width: 760px; }
.prose h2 { font-family: var(--display); text-transform: uppercase; margin-top: 1.4em; }
.source-list { columns: 2; }
.adv-intro { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; }
.adv-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.adv-facts li { background: var(--mist); border-radius: 14px; padding: 14px 18px; }
.adv-facts strong { font-family: var(--display); font-size: 1.6rem; display: block; }
.slot-table { width: 100%; border-collapse: collapse; background: var(--white); }
.slot-table th, .slot-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.notfound { max-width: 900px; padding: 48px 0; }

/* Footer */
.ftr { background: #1c1c1c; color: #d4d4d8; padding: 56px 0 100px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 28px; }
.ftr-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; margin-bottom: 8px; }
.ftr-logo img { border-radius: 10px; }
.ftr-tag { color: #a1a1aa; font-size: .9rem; }
.ftr-stores { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; background: #2a2a2a; color: #fff; border-radius: 12px; padding: 10px 14px; width: fit-content; }
.store-btn small { display: block; font-size: .65rem; color: #a1a1aa; }
.ftr-h { color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.ftr-col a { display: block; padding: 4px 0; font-size: .9rem; color: #d4d4d8; }
.ftr-col a:hover { color: #fff; }
.ftr-bottom { border-top: 1px solid #2a2a2a; margin-top: 36px; padding-top: 18px; font-size: .78rem; color: #a1a1aa; }
.ftr-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
.ftr-legal a { color: #e4e4e7; font-weight: 600; font-size: .82rem; }
.ftr-legal a:hover { color: #fff; }
.legal-prose h2 { font-family: var(--display); text-transform: uppercase; font-size: 1.35rem; margin-top: 1.5em; }
.ftr-disclaimer { max-width: 900px; }

/* Floating Get Bitcoin */
.float-cta { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 8px; background: var(--orange); color: #111; border-radius: 999px; font-weight: 700; box-shadow: 0 12px 32px -10px rgba(255,149,0,.7); border: 0; font: inherit; cursor: pointer; }
.float-cta-ico { width: 36px; height: 36px; border-radius: 50%; background: #111; color: var(--orange); display: grid; place-items: center; font-size: 1rem; }
.nl-modal[hidden] { display: none !important; }
.nl-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.nl-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.nl-panel { position: relative; width: min(440px, 100%); background: var(--white); color: var(--text); border-radius: 24px; padding: 28px 24px 24px; box-shadow: 0 24px 80px -20px #000; }
.nl-x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem; line-height: 1; color: var(--muted); }
.nl-lede { color: var(--muted); margin: 0 0 18px; }
.nl-form { display: flex; flex-direction: column; gap: 10px; }
.nl-field input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font-size: 1rem; background: var(--white); color: var(--text); }
.nl-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.nl-msg { min-height: 1.2em; font-size: .9rem; margin: 4px 0 0; color: var(--muted); }
.nl-msg.is-ok { color: var(--green); }
.nl-msg.is-err { color: var(--red); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.mob-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 6px; }
.mob-bar a { flex: 1; text-align: center; font-weight: 700; font-size: .85rem; padding: 10px 0; border-radius: 10px; }
.mob-bar-cta { background: var(--orange); color: #111; }

@media (max-width: 1100px) {
  .soft-grid, .do-grid, .help-grid { grid-template-columns: 1fr 1fr; }
  .stat-pills { grid-template-columns: 1fr 1fr; }
  .ftr-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .story-grid--4 { grid-template-columns: 1fr 1fr; }
  .quote-strip { grid-template-columns: repeat(4, 1fr); }
  .spot-row { grid-template-columns: 1fr 1fr; }
  .feature-grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .pillnav { display: none; }
  .hdr-burger { display: grid; }
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .hero-bc-main h1 { max-width: none; font-size: clamp(2.2rem, 1.4rem + 5vw, 3.4rem); }
  .faq-split, .layout-with-sidebar, .product-hero-inner, .market-grid, .adv-intro, .desk-notes { grid-template-columns: 1fr; }
  .product-widget { margin-left: 0; max-width: none; }
  .sidebar-rail { position: static; }
  .story--lead, .story--row { flex-direction: column; }
  .dir-links { grid-template-columns: 1fr; }
  .hdr-wordmark { display: none; }
}
@media (max-width: 600px) {
  .hero-bc { padding: 40px 0 32px; }
  .band { padding: 48px 0; }
  .soft-grid, .do-grid, .help-grid, .feature-grid, .story-grid--2, .story-grid--4 { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
  .mob-bar { display: flex; }
  .float-cta { bottom: 68px; right: 12px; }
  .coin-name { display: none; }
  .source-list { columns: 1; }
}
