:root {
    color-scheme: dark;
    --bg: #07090c;
    --bg-2: #0b0f14;
    --surface: #10151c;
    --surface-elevated: #161c24;
    --surface-hover: #1c2430;
    --border: #202732;
    --border-subtle: #171d26;
    --border-gold: rgba(240, 138, 36, 0.35);

    --text: #f3f5f8;
    --text-secondary: #c2cbd6;
    --text-muted: #8895a7;
    --text-dim: #5c6878;

    --brand-orange: #f08a24;
    --brand-gold: #c9a227;
    --brand-primary: #f08a24;
    --brand-glow: rgba(240, 138, 36, 0.16);

    --interaction-blue: #3b82f6;
    --interaction-blue-hover: #60a5fa;
    --interaction-blue-glow: rgba(59, 130, 246, 0.2);

    --positive: #10b981;
    --positive-bg: rgba(16, 185, 129, 0.12);
    --negative: #ef4444;
    --negative-bg: rgba(239, 68, 68, 0.12);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 18px;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.55);

    /* Compatibility aliases while component names migrate to semantic tokens. */
    --panel: var(--surface);
    --panel-2: var(--surface);
    --panel-3: var(--surface-elevated);
    --muted: var(--text-muted);
    --line: var(--border);
    --line-soft: var(--border-subtle);
    --gold: var(--brand-gold);
    --emerald: var(--positive);
    --emerald-dim: #087b5b;
    --danger: var(--negative);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font: 15px/1.58 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 2%, rgba(9, 73, 48, .42) 0, transparent 35rem),
        radial-gradient(circle at 88% 5%, rgba(22, 49, 103, .48) 0, transparent 42rem),
        var(--bg);
}
a { color: var(--interaction-blue-hover); text-decoration: none; }
a:hover { text-decoration: underline; }
p, li { color: var(--muted); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--text); }
.wrap { width: min(1880px, 96vw); margin: 0 auto; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(5, 10, 17, .94);
    backdrop-filter: blur(12px);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; padding: .58rem 0; min-height: 64px;
}
.brand {
    display: inline-flex; align-items: center; gap: .55rem;
    color: var(--text); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark { border-radius: 7px; flex: none; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.1rem; font-weight: 850; letter-spacing: .07em; color: var(--brand-orange); }
.brand-text em { font-style: normal; font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-secondary); }
.primary-nav { display: flex; align-items: center; gap: .25rem; }
.header-tagline { margin-right: auto; padding-left: 1.4rem; border-left: 1px solid var(--border); color: var(--text-secondary); font-size: .73rem; letter-spacing: .05em; text-transform: uppercase; }
.primary-nav a {
    padding: .45rem .7rem; border-radius: 10px;
    color: var(--muted); font-size: .93rem; font-weight: 550; text-decoration: none;
}
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--brand-orange); background: var(--surface-hover); }
.primary-nav a.active { color: var(--brand-orange); background: var(--surface); box-shadow: inset 0 -2px 0 var(--brand-orange); }
.primary-nav a.cta-community {
    margin-left: .4rem; padding: .5rem 1rem; border-radius: 999px;
    background: var(--brand-orange); color: #170b02; font-weight: 800;
}
.primary-nav a.cta-community:hover, .primary-nav a.cta-community:focus-visible { background: var(--brand-gold); color: #170b02; }
.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle .bar { height: 2px; width: 100%; background: var(--text); border-radius: 2px; }

main { padding: .8rem 0 3.5rem; }

/* ============================================================
   TYPOGRAPHY / SECTIONS
   ============================================================ */
.eyebrow { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin: 0 0 .9rem; }
h1 { max-width: 860px; margin: 0 0 1rem; font-size: clamp(1.9rem, 5vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; }
.lead { max-width: 720px; font-size: 1.1rem; }
.lead2 { font-size: 1.05rem; }
.muted { color: var(--muted); }
.section { margin-top: 3rem; }
.section-title {
    display: flex; align-items: center; gap: .9rem;
    font-size: 1.12rem; letter-spacing: .01em; margin-bottom: 1.1rem;
}
.section-title::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.section-title .all-link { color: var(--interaction-blue-hover); font-size: .85rem; font-weight: 600; }
.page-head { padding: .5rem 0 1.25rem; }
.card {
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel-3), var(--panel-2));
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.card h3 { margin: 0 0 .45rem; font-size: 1.05rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero { margin-top: .25rem; }
.hero-card {
    display: grid; grid-template-columns: 1.35fr 1fr; gap: 2rem;
    padding: 2rem; border-color: var(--line);
    background:
        radial-gradient(circle at 100% 0%, rgba(47, 209, 139, .10), transparent 50%),
        linear-gradient(180deg, var(--panel-3), var(--panel-2));
}
.hero-copy h1 { font-size: clamp(1.7rem, 4.5vw, 2.7rem); margin-bottom: .8rem; }
.hero-copy .lead { font-size: 1.05rem; }
.story-link { color: var(--text); font-weight: 650; line-height: 1.38; }
.hero-media { display: flex; align-items: center; justify-content: center; }
.hero-media .card-img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }

.secondary-stories {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: .9rem; margin-top: 1rem;
}

/* ============================================================
   W2.5 NEWSROOM HOMEPAGE
   ============================================================ */
.market-strip, .breaking-strip {
    display: flex; align-items: stretch; gap: 0; min-height: 48px;
    border: 1px solid #243a4e; border-radius: 10px;
    background: rgba(7, 16, 24, .9); overflow: hidden;
}
.market-strip > strong, .breaking-strip > strong { display: inline-flex; align-items: center; padding: 0 1rem; color: var(--brand-orange); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; white-space: nowrap; }
.market-strip .market-item { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-width: 145px; padding: 0 1rem; border-left: 1px solid var(--border); color: var(--text-secondary); white-space: nowrap; font-size: .84rem; }
.market-strip i { color: var(--text); font-style: normal; font-weight: 750; }
.market-strip b { color: var(--text-muted); }
.market-price { color: var(--text); font-weight: 700; }
.market-change { font-size: .76rem; }
.market-change.up { color: var(--positive); }
.market-change.down { color: var(--negative); }
.market-change.flat { color: var(--text-muted); }
.market-strip small { display: flex; align-items: center; margin-left: auto; padding: 0 1rem; color: var(--text-muted); white-space: nowrap; }
.pending-dot { width: 7px; height: 7px; margin-right: .5rem; border-radius: 50%; background: var(--text-dim); }
.pending-dot.live { background: var(--positive); box-shadow: 0 0 0 1px rgba(16, 185, 129, .35); }
.pending-dot.stale { background: var(--brand-gold); }
.intel-strip { display: flex; align-items: stretch; gap: 0; min-height: 46px; margin-top: .45rem; border: 1px solid #2a4256; border-radius: 10px; background: rgba(8, 17, 25, .92); overflow: hidden; }
.intel-strip > strong { display: inline-flex; align-items: center; padding: 0 1rem; color: var(--brand-orange); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; white-space: nowrap; }
.intel-item { display: inline-flex; align-items: center; justify-content: space-between; gap: .6rem; min-width: 130px; padding: 0 .85rem; border-left: 1px solid var(--border); color: var(--text-muted); white-space: nowrap; font-size: .78rem; }
.intel-item i { color: var(--text-secondary); font-style: normal; }
.intel-item b { color: var(--text); font-weight: 750; }
.intel-fg em { color: var(--text-muted); font-style: normal; font-size: .68rem; margin-left: .2rem; }
.intel-strip small { display: flex; align-items: center; margin-left: auto; padding: 0 1rem; color: var(--text-muted); white-space: nowrap; font-size: .7rem; }
.intel-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: .65rem; }
.intel-card h3 { margin: 0 0 .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.intel-value { font-size: 1.35rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.intel-value .intel-sub { color: var(--text-muted); font-size: .72rem; display: block; margin-top: .15rem; }
.intel-suffix { color: var(--text-muted); }
.intel-value.up { color: var(--positive); }
.intel-value.down { color: var(--negative); }
.intel-value.flat { color: var(--text-secondary); }
.intel-source, .intel-note { font-size: .78rem; color: var(--text-muted); margin-top: .6rem; }
.movers-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.movers-list li { display: grid; grid-template-columns: minmax(0, 1fr) 2rem auto; gap: .6rem; align-items: baseline; padding: .6rem .7rem; border-bottom: 1px solid var(--border); }
.mover-name { color: var(--text); font-weight: 650; }
.mover-name small { color: var(--text-muted); margin-left: .35rem; font-size: .7rem; }
.mover-rank { color: var(--text-muted); font-size: .78rem; text-align: center; }
.mover-change.up { color: var(--positive); font-weight: 700; }
.mover-change.down { color: var(--negative); font-weight: 700; }
.mover-empty { color: var(--muted); font-size: .86rem; padding: .9rem; border: 1px solid var(--border); border-radius: 10px; }
.rsi-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rsi-table th, .rsi-table td { padding: .55rem .7rem; border-bottom: 1px solid var(--border); text-align: right; }
.rsi-table th { color: var(--text-muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.rsi-table th:first-child, .rsi-table td.rsi-asset { text-align: left; }
.rsi-asset { color: var(--text); font-weight: 650; }
.rsi-cell { font-weight: 700; }
.rsi-cell small { display: block; font-size: .66rem; font-weight: 500; color: inherit; opacity: .75; }
.rsi-cell.rsi-oversold { color: var(--positive); }
.rsi-cell.rsi-overbought { color: var(--negative); }
.rsi-cell.rsi-neutral { color: var(--text); }
.rsi-cell.rsi-unavailable { color: var(--muted); font-weight: 500; }

/* Derivatives intelligence (W3.5A) */
.deriv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.2rem; }
.deriv-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.deriv-table th, .deriv-table td { padding: .55rem .7rem; border-bottom: 1px solid var(--border); text-align: right; }
.deriv-table th { color: var(--text-muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.deriv-table th:first-child, .deriv-table td.deriv-asset { text-align: left; }
.deriv-asset { color: var(--text); font-weight: 650; }
.deriv-value { font-weight: 700; }
.deriv-ts { color: var(--text-muted); font-size: .78rem; }
.deriv-state { font-size: .78rem; font-weight: 600; }
.fund-positive { color: var(--positive); }
.fund-negative { color: var(--negative); }
.fund-neutral { color: var(--text); }
.fund-unavailable { color: var(--muted); font-weight: 500; }
/* Long/Short account-ratio bar (W3.5B) */
.ls-bar { display: flex; width: 120px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--border); }
.ls-long { background: var(--positive); }
.ls-short { background: var(--negative); }
.table-wrap { overflow-x: auto; scrollbar-width: thin; }
.heat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.heat-tile { display: flex; flex-direction: column; gap: .15rem; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: 11px; background: rgba(12, 22, 31, .85); text-decoration: none; font-size: .82rem; }
.heat-tile strong { color: var(--text); font-size: .95rem; letter-spacing: .02em; }
.heat-price { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.heat-change { font-weight: 700; font-variant-numeric: tabular-nums; }
.heat-tile.heat-up { border-color: rgba(52, 211, 153, .35); }
.heat-tile.heat-up .heat-change { color: var(--positive); }
.heat-tile.heat-down { border-color: rgba(248, 113, 113, .35); }
.heat-tile.heat-down .heat-change { color: var(--negative); }
.heat-tile.heat-flat .heat-change, .heat-tile.heat-neutral .heat-change { color: var(--text-muted); }
.bubble-wrap { overflow-x: auto; scrollbar-width: thin; }
.bubble-svg { display: block; width: 100%; max-width: 1000px; min-width: 640px; height: auto; }
.bubble { fill-opacity: .28; stroke-width: 1.5; }
.bubble-up { fill: var(--positive); stroke: var(--positive); }
.bubble-down { fill: var(--negative); stroke: var(--negative); }
.bubble-flat, .bubble-neutral { fill: var(--text-muted); stroke: var(--text-muted); }
.bubble-label { fill: var(--text); font-size: 11px; font-weight: 600; }
.bubble-label.bubble-sub { fill: var(--text-muted); font-size: 10px; font-weight: 500; }
.tools-strip { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1rem; margin-top: .75rem; padding: .95rem 1.1rem; border: 1px solid #263b50; border-radius: 11px; background: linear-gradient(110deg, rgba(14, 24, 33, .96), rgba(8, 15, 23, .94)); }
.tools-strip-heading { display: flex; flex-direction: column; justify-content: center; gap: .1rem; padding: 0 .35rem; }
.tools-strip-heading .eyebrow { margin: 0; color: var(--text); font-size: 1rem; letter-spacing: 0; text-transform: none; font-weight: 800; }
.tools-strip-heading p { margin: .25rem 0 .5rem; font-size: .78rem; }
.tools-explore { color: var(--brand-orange); font-size: .82rem; font-weight: 700; }
.tools-strip-items { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: .7rem; overflow-x: auto; scrollbar-width: thin; }
.tool-quick { min-width: 160px; padding: .85rem .9rem; border: 1px solid #263b50; border-radius: 10px; background: rgba(12, 22, 31, .8); color: var(--text); text-decoration: none; }
.tool-quick strong { display: block; margin-top: .5rem; font-size: .88rem; line-height: 1.25; }
.tool-quick p { margin: .3rem 0 .55rem; font-size: .76rem; line-height: 1.4; }
.tool-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--border-gold); border-radius: 8px; background: rgba(240, 138, 36, .1); color: var(--brand-orange); font-size: .95rem; }
.tool-state { margin-top: auto; align-self: flex-start; padding: .18rem .6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text-muted); font-size: .68rem; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; }
a.tool-quick:hover, a.tool-quick:focus-visible { background: var(--interaction-blue-glow); color: var(--interaction-blue-hover); text-decoration: none; }
.tool-quick.is-live { border-color: var(--brand-orange); box-shadow: 0 0 18px var(--brand-glow); }
.tool-quick.is-live .tool-state { color: var(--positive); }
.tool-quick.explore span { color: var(--interaction-blue-hover); }
.lead-newsroom { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(230px, .82fr) minmax(260px, 1fr); gap: .75rem; margin-top: .75rem; align-items: stretch; }
.lead-newsroom .hero-card { position: relative; display: flex; min-height: 405px; margin: 0; padding: 1.45rem; overflow: hidden; align-items: flex-end; }
.lead-newsroom .hero-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(4, 9, 13, .98) 0%, rgba(4, 9, 13, .9) 47%, rgba(4, 9, 13, .2) 100%), linear-gradient(0deg, rgba(4, 9, 13, .9), transparent 45%); pointer-events: none; }
.hero-card.is-imageless { background: linear-gradient(145deg, var(--surface-elevated), #10100e); }
.hero-copy { position: relative; z-index: 2; max-width: 72%; }
.hero-copy h1 { font-size: clamp(2rem, 3.2vw, 3.15rem); }
.hero-copy .lead { color: var(--text-secondary); }
.hero-media, .editorial-fallback { position: absolute; inset: 0; z-index: 0; min-height: 0; }
.hero-media .card-img { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; object-fit: cover; }
.editorial-fallback { display: grid; place-content: end; padding: 0 1.8rem 2rem 0; border: 0; background: radial-gradient(circle at 80% 42%, var(--brand-glow), transparent 32%), repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.018) 22px 23px); text-align: right; }
.editorial-fallback span { color: rgba(201, 162, 39, .34); font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 900; letter-spacing: -.04em; }
.editorial-fallback b { color: rgba(194, 203, 214, .42); font-size: .68rem; letter-spacing: .28em; }
.newsroom-side { display: contents; }
.newsroom-side .secondary-stories { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; border: 1px solid var(--border); background: var(--surface); }
.story-brief { display: grid; align-content: center; min-height: 0; padding: .85rem .9rem; border-bottom: 1px solid var(--border); }
.story-brief:last-child { border-bottom: 0; }
.story-brief .eyebrow, .story-row .eyebrow { margin: 0 0 .3rem; font-size: .64rem; }
.story-brief .story-link { display: block; font-size: .98rem; }
.story-brief.is-imageless { border-left: 2px solid var(--border-gold); }
.pulse-panel { display: flex; flex-direction: column; box-shadow: none; border-color: #284158; background: rgba(7, 16, 24, .9); }
.pulse-panel h2 { margin: 0 0 .55rem; font-size: 1.25rem; line-height: 1.25; }
.pulse-panel .data-pending { margin-top: auto; }
.pulse-tabs { display: flex; gap: .35rem; margin: .4rem 0 .6rem; }
.pulse-tab { padding: .28rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.pulse-tab:hover, .pulse-tab:focus-visible { border-color: var(--interaction-blue); color: var(--interaction-blue-hover); }
.pulse-tab.is-active { background: var(--surface); border-color: var(--border-gold); color: var(--text); }
.pulse-groups .pulse-group { display: none; }
.pulse-groups .pulse-group.is-active { display: block; }
.pulse-group-note { margin: 0 0 .35rem; color: var(--text-muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; }
.pulse-list { list-style: none; margin: 0; padding: 0; }
.pulse-list div { display: grid; grid-template-columns: 1fr auto auto; gap: .5rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.pulse-list dt { color: var(--text); font-size: .86rem; font-weight: 700; }
.pulse-list dd { margin: 0; }
.pulse-list div:last-child { border-bottom: 0; }
.data-pending { display: inline-flex; padding: .25rem .55rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: .72rem; }
.breaking-strip { margin-top: .75rem; min-height: 44px; border-color: #334255; }
.breaking-strip > strong { background: linear-gradient(90deg, rgba(240, 138, 36, .24), rgba(240, 138, 36, .05)); }
.breaking-strip > strong span { margin-right: .55rem; color: var(--brand-orange); }
.breaking-strip div { display: flex; align-items: center; gap: .8rem; min-width: 0; padding: 0 1rem; overflow-x: auto; white-space: nowrap; }
.breaking-strip a { color: var(--text-secondary); font-size: .82rem; }
.breaking-strip a:hover, .breaking-strip a:focus-visible { color: var(--interaction-blue-hover); }
.breaking-strip span { color: var(--brand-gold); }
.latest-community { display: grid; grid-template-columns: minmax(0, 3fr) minmax(285px, 1fr); gap: .9rem; margin-top: 1rem; align-items: start; }
.latest-community .section-title { margin: 0 0 .65rem; font-size: 1.25rem; }
.latest-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; list-style: none; margin: 0; padding: 0; }
.story-row { display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: rgba(11, 19, 27, .86); }
.story-row-media { display: grid; place-items: center; height: 118px; overflow: hidden; border-bottom: 1px solid var(--border); background: #101820; }
.story-row-media img { width: 100%; height: 100%; object-fit: cover; }
.mini-fallback { background: radial-gradient(circle at 50% 50%, var(--brand-glow), transparent 55%), repeating-linear-gradient(135deg, #111820 0 18px, #131b24 18px 19px); }
.mini-fallback span { color: rgba(201, 162, 39, .72); font-size: 1.25rem; font-weight: 850; letter-spacing: .06em; }
.story-row-copy { padding: .8rem .85rem 0; }
.story-row .story-link { display: -webkit-box; overflow: hidden; font-size: .95rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.story-row .story-summary { display: -webkit-box; overflow: hidden; margin: .35rem 0 0; font-size: .78rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.story-row.is-imageless { padding-left: 0; border-left: 1px solid var(--border); }
.story-row > .story-meta { justify-content: flex-start; min-height: 51px; max-width: none; margin-top: auto; padding: .65rem .85rem .75rem; }
.story-row > .story-meta .badge { display: none; }
.story-row > .story-meta time { font-size: .72rem; }
.community-panel { position: sticky; top: 76px; min-height: 350px; padding: 1.4rem; overflow: hidden; border-color: #29445c; background: radial-gradient(circle at 85% 15%, rgba(59, 130, 246, .2), transparent 36%), linear-gradient(145deg, #132333, #0b1219 70%); }
.community-panel::after { content: ""; position: absolute; right: -70px; bottom: -85px; width: 230px; height: 230px; border: 1px solid var(--border-gold); border-radius: 50%; opacity: .35; }
.community-panel h2 { max-width: 260px; margin: .2rem 0 .6rem; font-size: 1.55rem; line-height: 1.15; }
.community-panel p { max-width: 280px; }
.community-panel .button { position: relative; z-index: 1; width: 100%; text-align: center; }
.community-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; margin-top: 1.4rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.community-links a { color: var(--text-secondary); font-size: .75rem; text-align: center; }
.community-panel small { display: block; margin-top: .8rem; color: var(--text-muted); }
.empty-hero { margin-top: 1rem; min-height: 360px; display: grid; align-content: center; }
.thumb { display: block; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); margin-bottom: .7rem; }
.thumb img { width: 100%; height: 150px; object-fit: cover; transition: transform .3s ease; }
.story-card:hover .thumb img { transform: scale(1.03); }

/* ============================================================
   STORY LISTS / GRIDS
   ============================================================ */
.story-grid, .story-list {
    list-style: none; margin: 1rem 0 0; padding: 0;
    display: grid; gap: .95rem;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
@media (max-width: 720px) {
    .story-grid { grid-template-columns: 1fr; }
}
.story-card { display: flex; flex-direction: column; }
.story-summary { margin: .55rem 0 0; font-size: .94rem; }
.story-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; font-size: .82rem; color: var(--muted); }
.story-meta time { color: var(--muted); }
.story-meta .muted { font-size: .82rem; }

.chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .2rem .6rem; border: 1px solid var(--line); border-radius: 999px;
    color: var(--muted); font-size: .78rem; line-height: 1.4;
}
.chip em { font-style: normal; color: var(--text); }
.chip.tier-critical { border-color: var(--brand-orange); color: var(--brand-orange); }
.chip.tier-high { border-color: var(--border-gold); color: var(--brand-gold); }
.chip.tier-standard { border-color: var(--line); color: var(--text); }
.chip.tier-low { border-color: var(--line); color: var(--muted); }

.badge {
    display: inline-flex; padding: .2rem .65rem; border-radius: 999px;
    font-size: .78rem; font-weight: 600; border: 1px solid var(--line);
}
.badge.official { color: var(--brand-gold); border-color: var(--border-gold); background: var(--brand-glow); }
.badge.trusted { color: var(--text-secondary); border-color: var(--border); }
.badge.social { color: var(--muted); border-color: var(--line); }
.badge.neutral { color: var(--muted); border-color: var(--line); }

.intel-list { display: grid; gap: .9rem; }
.spotlight { border-left: 3px solid var(--brand-orange); }
.empty-state { text-align: center; color: var(--muted); }
.empty-state p { margin: .25rem 0; }

/* ============================================================
   MARKET PULSE / PANELS
   ============================================================ */
.pulse-grid, .product-grid, .tool-grid, .learn-grid {
    display: grid; gap: .95rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.pulse-panel h3 { font-size: 1rem; }
.pulse-note { margin: .3rem 0 0; font-size: .9rem; }
.tool-card .state-pill { margin-top: .8rem; }
.tools-more { margin-top: 1.1rem; }
.arrow-link { font-weight: 650; }

/* ============================================================
   PRODUCT PAGES
   ============================================================ */
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.feature-card.is-live, .tool-card.is-live { border-color: var(--emerald-dim); }
.state-pill {
    display: inline-flex; align-self: flex-start; flex: none;
    padding: .18rem .6rem; border-radius: 999px;
    border: 1px solid var(--line); color: var(--muted);
    font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em;
}
.state-pill.live { color: var(--emerald); border-color: var(--emerald-dim); background: #0c241b; }
.eco-card, .risk-note { border-color: var(--border-gold); }

.cta { margin-top: 3rem; border: 1px solid var(--border-gold); text-align: left; }
.cta h2 { margin-top: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.button {
    display: inline-block; margin-top: .85rem; padding: .6rem 1.25rem;
    border-radius: 10px; background: var(--brand-orange); color: #170b02; font-weight: 750;
    text-decoration: none; letter-spacing: .02em; border: 1px solid transparent;
}
.button:hover, .button:focus-visible { background: var(--brand-gold); color: #170b02; text-decoration: none; }
.button.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.button.ghost:hover, .button.ghost:focus-visible { border-color: var(--interaction-blue); color: var(--interaction-blue-hover); background: var(--interaction-blue-glow); }
.button.disabled { opacity: .4; pointer-events: none; }

/* ============================================================
   NEWS PAGE: FILTERS + PAGINATION
   ============================================================ */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 0; }
.filter-chip { text-decoration: none; }
a.filter-chip:hover, a.filter-chip:focus-visible { border-color: var(--interaction-blue); color: var(--interaction-blue-hover); }
.filter-chip.active { border-color: var(--interaction-blue); color: var(--interaction-blue-hover); background: var(--interaction-blue-glow); }
.pagination {
    display: flex; align-items: center; justify-content: center; gap: 1.1rem;
    margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.page-count { color: var(--muted); font-size: .9rem; }

/* ============================================================
   STORY PAGE
   ============================================================ */
.story { max-width: 860px; }
.story h1 { margin-bottom: 1.1rem; }
.hero-figure { margin: 1.4rem 0 0; }
.hero-figure img { width: 100%; max-height: 440px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.facts {
    display: grid; gap: .4rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 1.4rem 0 0; padding: 1rem 1.2rem;
    border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2);
}
.facts div { display: flex; flex-direction: column; }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 0; font-size: .95rem; }
.prose { margin-top: 1.6rem; max-width: 720px; }
.prose h2 { font-size: 1.05rem; }
.snapshot { list-style: none; padding: 0; }
.snapshot li.up { color: var(--emerald); }
.snapshot li.down { color: var(--danger); }
.backlink { margin-top: 2.25rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .92rem; }
.related-grid { margin-top: 0; }

/* ============================================================
   CALCULATOR
   ============================================================ */
.calc-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.1rem; align-items: start; }
.calc-layout .card { margin-top: 0; }
.calc-form { display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field span { font-size: .82rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.field input, .field select {
    padding: .65rem .8rem; border-radius: 10px; color: var(--text);
    background: var(--bg-2); border: 1px solid var(--line); font: inherit;
}
.field input:focus, .field select:focus { outline: 2px solid var(--interaction-blue-glow); border-color: var(--interaction-blue); }
.calc-submit { margin-top: .25rem; }
.calc-results h2 { margin-top: 0; font-size: 1.05rem; }
.results-grid { display: grid; gap: .4rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.results-grid div { display: flex; flex-direction: column; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.results-grid dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.results-grid dd { margin: .2rem 0 0; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.results-grid dd.up { color: var(--emerald); }
.results-grid dd.down { color: var(--danger); }
.calc-note { margin-top: .9rem; font-size: .82rem; }

/* ============================================================
   FOOTER
   ============================================================ */
/* Shared global footer: Row 1 = brand | centered nav | social + motto, divider, Row 2 = disclaimer | copyright */
.site-footer { margin-top: 3rem; padding: 26px 0 22px; border-top: 1px solid rgba(38, 70, 96, .55); background: linear-gradient(180deg, #06111a, #03080d 72%); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 220px; background:
    radial-gradient(ellipse at 16% 0%, rgba(240, 138, 36, .06), transparent 58%),
    radial-gradient(ellipse at 86% 0%, rgba(0, 174, 239, .05), transparent 55%);
    pointer-events: none; }
.footer-modern .wrap { position: relative; }
.footer-main, .footer-row1 { display: grid; grid-template-columns: minmax(0, 34fr) minmax(0, 36fr) minmax(0, 30fr); gap: 2rem; align-items: center; padding-bottom: 16px; }
.footer-brand .brand { display: inline-flex; }
.footer-desc { margin: .45rem 0 0; color: #8ba0b4; font-size: .8rem; max-width: 300px; }
.footer-nav { display: flex; flex-direction: column; gap: .45rem; text-align: center; }
.footer-nav a { color: #9fb2c4; font-size: .84rem; font-weight: 550; padding: .15rem .1rem; }
.footer-nav a:hover { color: var(--text); }
.footer-nav a.active { color: var(--brand-orange); font-weight: 750; }
.footer-nav .fsep { display: inline-block; margin: 0 .7rem; color: #33506a; font-size: .8rem; font-weight: 400; user-select: none; }
.footer-nav-legal a { font-size: .8rem; }
.footer-side { display: flex; align-items: center; justify-content: flex-end; gap: 1.1rem; }
.footer-social-row { display: flex; gap: .55rem; }
.soc { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.soc svg { width: 22px; height: 22px; display: block; }
a.soc:hover, a.soc:focus-visible { filter: brightness(1.12); text-decoration: none; }
.soc-tg { background: #229ed9; }
.soc-x { background: #0d0f12; border: 1px solid #2a3a4a; }
.soc-yt { background: #f61c0d; }
.soc-tt { background: #0d0f12; border: 1px solid #2a3a4a; }
.soc-fb { background: #1877f2; }
.soc.is-static { cursor: default; opacity: .85; }
.footer-motto { display: flex; flex-direction: column; gap: .1rem; margin: 0; padding-left: 1.1rem; border-left: 2px solid rgba(240, 138, 36, .75); font-size: .68rem; font-weight: 800; letter-spacing: .16em; line-height: 1.6; color: #e7edf3; text-align: left; }
.footer-motto .m-gold { color: var(--brand-orange); }
.footer-divider { height: 1px; margin: 2px 0 14px; border: 0; background: linear-gradient(90deg, rgba(48, 110, 140, .04), rgba(48, 110, 140, .38), rgba(48, 110, 140, .04)); }
.footer-row2 { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.disclaimer { margin: 0; color: #7d92a6; font-size: .76rem; max-width: 900px; line-height: 1.5; }
.copyright { margin: 0; color: #9fb2c4; font-size: .76rem; flex: none; white-space: nowrap; }
@media (max-width: 1180px) {
    .footer-main, .footer-row1 { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.1rem; }
    .footer-desc { max-width: 420px; }
    .footer-side { flex-direction: column; gap: .7rem; }
    .footer-motto { border-left: 0; padding-left: 0; align-items: center; text-align: center; }
}
@media (max-width: 720px) {
    .footer-nav { flex-wrap: wrap; }
    .footer-nav-main, .footer-nav-legal { flex-wrap: wrap; justify-content: center; row-gap: .2rem; }
    .footer-row2 { flex-direction: column; gap: .55rem; }
    .copyright { white-space: normal; }
}
.legal-page { max-width: 820px; padding: 1rem 0; }
.legal-page h2 { margin-top: 2rem; font-size: 1.12rem; }
.legal-meta { padding-bottom: 1rem; border-bottom: 1px solid var(--border); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
    .header-tagline { display: none; }
    .lead-newsroom { grid-template-columns: minmax(0, 1.9fr) minmax(220px, .8fr) minmax(240px, .95fr); }
}
@media (max-width: 940px) {
    main { padding-top: 2rem; }
    .nav-toggle { display: flex; }
    .primary-nav {
        display: none; flex-direction: column; align-items: stretch; gap: .15rem;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg); border-bottom: 1px solid var(--line);
        padding: .8rem 1rem 1rem;
    }
    .primary-nav.open { display: flex; }
    .primary-nav a { padding: .7rem .8rem; font-size: 1rem; }
    .primary-nav a.cta-community { margin: .4rem 0 0; text-align: center; }
    .tools-strip { grid-template-columns: 1fr; }
    .tools-strip-heading { padding: 0; }
    .tools-strip-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lead-newsroom, .latest-community { grid-template-columns: 1fr; }
    .lead-newsroom .hero-card { min-height: 420px; }
    .hero-copy { max-width: 76%; }
    .newsroom-side .secondary-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .story-brief:nth-child(odd) { border-right: 1px solid var(--border); }
    .community-panel { position: static; }
    .latest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .copyright { margin-top: .75rem; }
    .hero-card { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.4rem; }
    .story-grid { grid-template-columns: 1fr; }
    .calc-layout { grid-template-columns: 1fr; }
    .card { padding: 1.05rem 1.1rem; }
    .section-title { flex-wrap: wrap; }
}
@media (max-width: 420px) {
    .wrap { width: calc(100% - 1.25rem); }
    .hero-card .button { width: 100%; text-align: center; }
}
@media (max-width: 600px) {
    .brand-text em { display: none; }
    .market-strip { gap: .7rem; }
    .market-strip small { display: none; }
    .market-strip { overflow-x: auto; scrollbar-width: none; }
    .intel-strip { overflow-x: auto; }
    .intel-strip small { display: none; }
    .intel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .movers-list li { grid-template-columns: minmax(0, 1fr) auto; }
    .mover-rank { display: none; }
    .tools-strip { display: block; padding: .7rem 0 0; }
    .tools-strip-heading { padding: 0 .75rem .6rem; }
    .tools-strip-items { grid-template-columns: 1fr; gap: .55rem; padding: 0 .75rem .75rem; }
    .tool-quick { min-width: 0; }
    .tool-quick.is-live { order: -1; }
    .lead-newsroom { margin-top: .75rem; }
    .lead-newsroom .hero-card { min-height: 445px; }
    .hero-copy { max-width: 100%; }
    .lead-newsroom .hero-card::after { background: linear-gradient(0deg, rgba(4, 9, 13, .97), rgba(4, 9, 13, .55)); }
    .editorial-fallback { place-content: start end; padding: 1.25rem; }
    .editorial-fallback span { color: rgba(201, 162, 39, .16); font-size: 3.2rem; }
    .editorial-fallback b { display: none; }
    .newsroom-side .secondary-stories { grid-template-columns: 1fr; }
    .story-brief { grid-template-columns: 84px minmax(0, 1fr); gap: .6rem; }
    .story-brief-media { width: 84px; height: 56px; }
    .story-brief:nth-child(odd) { border-right: 0; }
    .latest-list { grid-template-columns: 1fr; }
    .story-row > .story-meta { justify-content: flex-start; max-width: none; }
    .hero-card { padding: 1.15rem; }
    .hero-media .card-img { height: 100%; }
    .footer-side { align-items: flex-start; }

    .footer-motto { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .thumb img { transition: none; }
}

/* ============================================================
   HOMEPAGE PREMIUM POLISH (visual reference alignment)
   ============================================================ */
body {
    background:
        radial-gradient(circle at 12% 0%, rgba(240, 138, 36, .07) 0, transparent 34rem),
        radial-gradient(circle at 88% 4%, rgba(24, 42, 66, .5) 0, transparent 42rem),
        var(--bg);
}

/* Stronger header */
.site-header { background: rgba(4, 8, 13, .96); border-bottom: 1px solid rgba(240, 138, 36, .18); }
.brand-text strong { letter-spacing: .1em; text-shadow: 0 0 18px rgba(240, 138, 36, .35); }
.header-tagline { color: var(--text-muted); }

/* Dense ticker strips */
.market-strip, .intel-strip { background: linear-gradient(180deg, rgba(13, 20, 28, .96), rgba(7, 12, 18, .96)); border-color: #1e2b3a; }
.market-strip > strong, .intel-strip > strong { border-right: 1px solid var(--border); }
.market-strip .market-item { gap: .55rem; min-width: 0; justify-content: flex-start; font-size: .82rem; }
.market-strip b { font-variant-numeric: tabular-nums; }
.market-change { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Tools strip: card-like, orange live accent */
.tools-strip { border-color: #1e2b3a; background: linear-gradient(110deg, rgba(15, 22, 31, .98), rgba(8, 13, 20, .96)); }
.tool-quick { border-color: #223144; background: linear-gradient(180deg, rgba(17, 25, 35, .9), rgba(11, 17, 25, .9)); transition: border-color .15s ease, transform .15s ease; }
a.tool-quick:hover, a.tool-quick:focus-visible { border-color: var(--border-gold); color: var(--text); background: var(--brand-glow); text-decoration: none; transform: translateY(-1px); }
.tool-quick.is-live { border-color: var(--brand-orange); background: linear-gradient(180deg, rgba(240, 138, 36, .12), rgba(17, 25, 35, .9)); }
.tool-quick.is-live:hover, .tool-quick.is-live:focus-visible { border-color: var(--brand-orange); color: var(--text); background: rgba(240, 138, 36, .2); }
.tool-quick.explore { border-style: dashed; }

/* Hero: TOP STORY eyebrow + meta row */
.lead-newsroom .hero-card .eyebrow { margin-bottom: .5rem; color: #ff9d3f; font-size: .74rem; letter-spacing: .18em; }
.lead-newsroom .hero-card::after { background: linear-gradient(90deg, rgba(4, 8, 12, .97) 0%, rgba(4, 8, 12, .92) 40%, rgba(4, 8, 12, .18) 100%), linear-gradient(0deg, rgba(4, 8, 12, .92), transparent 55%); }
.lead-newsroom .hero-card { min-height: 430px; border-radius: var(--radius-lg); border-color: #243244; }
.hero-copy .story-meta { margin-top: .9rem; }
.lead-newsroom .hero-card .button { padding: .65rem 1.4rem; border-radius: 999px; font-weight: 800; }

/* Secondary stacked story cards with thumbnails */
.newsroom-side .secondary-stories { border-radius: var(--radius); overflow: hidden; border-color: #1e2b3a; }
.story-brief { grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-items: center; padding: .8rem .9rem; transition: background .15s ease; }
.story-brief:hover { background: var(--surface-hover); }
.story-brief-media { display: block; width: 108px; height: 68px; overflow: hidden; border-radius: 8px; border: 1px solid var(--border); }
.story-brief-media img { width: 100%; height: 100%; object-fit: cover; }
.story-brief.is-imageless { grid-template-columns: minmax(0, 1fr); border-left: 2px solid var(--border-gold); }
.story-brief .story-link { font-size: .92rem; line-height: 1.32; }
.story-brief .story-meta { margin-top: .3rem; font-size: .74rem; }
.story-brief .eyebrow { font-size: .6rem; margin-bottom: .2rem; }

/* Market Pulse panel */
.pulse-panel { border-radius: var(--radius-lg); border-color: #243244; background: linear-gradient(180deg, rgba(13, 21, 30, .96), rgba(7, 12, 18, .96)); padding: 1.1rem 1.15rem; }
.pulse-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .55rem; }
.pulse-head .eyebrow { margin: 0; color: var(--text); font-size: 1.02rem; letter-spacing: 0; text-transform: none; font-weight: 750; }
.pulse-view-link { color: var(--brand-orange); font-size: .78rem; font-weight: 650; }
.pulse-tab { border-radius: 8px; }
.pulse-tab.is-active { background: rgba(240, 138, 36, .14); border-color: var(--brand-orange); color: var(--brand-orange); }
.pulse-list div { padding: .5rem 0; }
.pulse-overview { display: block; margin-top: .8rem; padding: .6rem .8rem; border: 1px solid var(--border-gold); border-radius: 9px; background: rgba(240, 138, 36, .08); color: var(--brand-orange); font-weight: 700; font-size: .84rem; text-align: center; }
.pulse-overview:hover, .pulse-overview:focus-visible { background: rgba(240, 138, 36, .16); text-decoration: none; }

/* Breaking strip */
.breaking-strip { border-color: rgba(240, 138, 36, .3); background: linear-gradient(90deg, rgba(30, 20, 8, .9), rgba(7, 12, 18, .95) 55%); border-radius: 9px; }
.breaking-strip > strong { color: #ffb15e; }

/* Latest News image cards */
.latest-community .section-title { font-size: 1.32rem; }
.latest-list { gap: .8rem; }
.story-row { border-radius: var(--radius); border-color: #1e2b3a; background: linear-gradient(180deg, rgba(14, 21, 30, .94), rgba(8, 13, 20, .94)); transition: border-color .15s ease, transform .15s ease; }
.story-row:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.story-row-media { position: relative; height: 132px; }
.story-row-media img { transition: transform .3s ease; }
.story-row:hover .story-row-media img { transform: scale(1.04); }
.story-row-chip { position: absolute; left: .55rem; bottom: .55rem; padding: .14rem .55rem; border-radius: 999px; background: rgba(4, 8, 12, .82); border: 1px solid var(--border-gold); color: var(--brand-gold); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }

/* Community CTA: warm brand treatment */
.community-panel { border-radius: var(--radius-lg); border-color: rgba(240, 138, 36, .3); background: radial-gradient(circle at 85% 10%, rgba(240, 138, 36, .16), transparent 40%), linear-gradient(160deg, #131c26, #0a1017 70%); }
.community-panel h2 { font-size: 1.6rem; }
.community-links a:hover { color: var(--brand-orange); }

/* Dense footer */
.site-footer { border-top-color: rgba(240, 138, 36, .18); }

/* ============================================================
   EMPTY-STATE DASHBOARD (zero newsroom stories)
   ============================================================ */
.newsroom-side .secondary-stories { grid-auto-rows: 1fr; }
.hero-copy-empty h1 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.hero-copy-empty .lead { max-width: 540px; }
.story-link.is-empty { color: var(--text-muted); font-weight: 600; }
.story-brief.is-placeholder .mini-fallback span { font-size: .85rem; color: rgba(201, 162, 39, .5); }
.story-row.is-placeholder .story-row-media { border-bottom: 1px solid var(--border); }
.story-row.is-placeholder > .story-meta .badge { display: inline-flex; }
.breaking-empty { color: var(--text-muted); font-size: .82rem; }

/* Ticker grouping: coin badges + tighter cells */
.market-strip .market-item { border-left: 1px solid var(--border); padding: 0 .95rem; }
.market-strip i::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: .45rem; border-radius: 50%; background: linear-gradient(135deg, var(--brand-orange), var(--brand-gold)); vertical-align: 1px; }
.market-strip .market-item:first-of-type { border-left: 0; }
.market-strip small { border-left: 1px solid var(--border); }

/* Community panel: stronger treatment */
.community-panel { min-height: 420px; padding: 1.6rem; border-width: 1px; box-shadow: var(--shadow-lg); }
.community-panel .button { padding: .75rem 1.25rem; font-size: .98rem; border-radius: 999px; }

/* ============================================================
   VISUAL ALIGNMENT PASS — premium density & scale
   ============================================================ */

/* 1. Page frame (canonical shared shell defined at .wrap above) */
main { padding-top: 1rem; }

/* 2. Header presence */
.header-inner { min-height: 72px; gap: 2rem; }
.brand-mark { width: 46px; height: 46px; }
.brand-text strong { font-size: 1.24rem; }
.brand-text em { font-size: .62rem; }
.primary-nav { gap: .4rem; }
.primary-nav a { padding: .55rem .85rem; font-size: 1rem; font-weight: 600; }
.primary-nav a.active {
    color: #ffb15e;
    background: linear-gradient(180deg, rgba(240, 138, 36, .12), transparent);
    box-shadow: inset 0 -3px 0 var(--brand-orange);
    text-shadow: 0 0 14px rgba(240, 138, 36, .35);
}
.primary-nav a.cta-community { padding: .6rem 1.2rem; font-size: .95rem; }

/* 3. Market ticker: distinct cells, stronger readability */
.market-strip { min-height: 60px; border-radius: 12px; }
.market-strip > strong { font-size: .78rem; padding: 0 1.2rem; }
.market-strip .market-item { gap: .7rem; min-width: 0; padding: 0 1.35rem; font-size: .95rem; border-left: 1px solid rgba(255, 255, 255, .07); }
.market-strip i { font-size: 1rem; }
.market-strip i::before { width: 20px; height: 20px; margin-right: .55rem; border-radius: 6px; vertical-align: -4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.market-price { font-size: 1.02rem; letter-spacing: .01em; }
.market-change { font-size: .84rem; padding: .12rem .5rem; border-radius: 999px; }
.market-change.up { background: var(--positive-bg); }
.market-change.down { background: var(--negative-bg); }
.market-strip small { padding: 0 1.2rem; font-size: .76rem; }
.intel-strip { min-height: 52px; }
.intel-item { font-size: .84rem; padding: 0 1.1rem; }
.intel-item b { font-size: .92rem; }

/* 4. Tools & Calculators: premium horizontal module */
.tools-strip { grid-template-columns: 240px minmax(0, 1fr); gap: 1.4rem; padding: 1.3rem 1.5rem; margin-top: .9rem; border-radius: 14px; border-color: #223144; }
.tools-strip-heading .eyebrow { font-size: 1.18rem; }
.tools-strip-heading p { font-size: .86rem; margin-bottom: .7rem; }
.tools-explore { font-size: .88rem; margin-top: auto; }
.tools-strip-items { grid-template-columns: repeat(4, minmax(200px, 1fr)); gap: .9rem; }
.tool-quick { min-width: 0; min-height: 168px; padding: 1rem 1.05rem .95rem; border-radius: 12px; display: flex; flex-direction: column; }
.tool-icon { width: 40px; height: 40px; border-radius: 10px; font-size: 1.25rem; }
.tool-quick strong { margin-top: .75rem; font-size: 1.02rem; line-height: 1.3; }
.tool-quick p { margin: .35rem 0 .6rem; font-size: .82rem; }
.tool-state { margin-top: auto; width: 100%; text-align: center; padding: .5rem .6rem; border-radius: 9px; background: rgba(255, 255, 255, .03); color: var(--text-dim); font-size: .74rem; letter-spacing: .1em; }
.tool-cta { margin-top: auto; width: 100%; text-align: center; padding: .5rem .6rem; border-radius: 9px; background: var(--brand-orange); color: #170b02; font-size: .84rem; font-weight: 800; }
.tool-cta-link { background: transparent; border: 1px solid var(--border-gold); color: var(--brand-orange); font-weight: 700; }
a.tool-quick:hover .tool-cta-link { border-color: var(--brand-orange); background: rgba(240, 138, 36, .12); }
.tool-quick.is-live { border-width: 1.5px; box-shadow: 0 0 26px rgba(240, 138, 36, .18); }
a.tool-quick.is-live:hover, a.tool-quick.is-live:focus-visible { box-shadow: 0 0 34px rgba(240, 138, 36, .3); }

/* 5. Newsroom hero / secondary / pulse */
.lead-newsroom { gap: .9rem; }
.lead-newsroom .hero-card { min-height: 500px; border-radius: 16px; }
.hero-copy { max-width: 78%; }
.hero-copy h1 { font-size: clamp(2.2rem, 3.4vw, 3.4rem); }
.lead-newsroom .hero-card .eyebrow { font-size: .82rem; letter-spacing: .22em; padding: .18rem 0; text-shadow: 0 0 16px rgba(240, 138, 36, .5); }
.editorial-fallback span { font-size: clamp(3.4rem, 8vw, 7.5rem); text-shadow: 0 0 60px rgba(201, 162, 39, .25); }
.editorial-fallback { background:
    radial-gradient(circle at 78% 40%, rgba(240, 138, 36, .14), transparent 38%),
    radial-gradient(circle at 20% 90%, rgba(24, 42, 66, .5), transparent 45%),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(255, 255, 255, .02) 22px 23px); }
.story-brief { padding: 1rem 1.05rem; gap: .85rem; }
.story-brief-media { width: 128px; height: 80px; border-radius: 9px; }
.story-brief .story-link { font-size: 1rem; line-height: 1.35; }
.story-brief .eyebrow { font-size: .66rem; }
.pulse-panel { padding: 1.3rem 1.3rem; border-width: 1.5px; border-color: #2b3d52; }
.pulse-head .eyebrow { font-size: 1.15rem; }
.pulse-view-link { font-size: .86rem; }
.pulse-tab { padding: .38rem .8rem; font-size: .78rem; }
.pulse-list dt { font-size: .95rem; }
.pulse-list dd { font-size: .92rem; }
.pulse-list div { padding: .62rem 0; }
.pulse-overview { padding: .72rem .9rem; font-size: .9rem; }

/* 6. Breaking strip prominence */
.breaking-strip { min-height: 54px; margin-top: .9rem; border-radius: 11px; }
.breaking-strip > strong { position: relative; padding: 0 1.3rem 0 2.6rem; font-size: .8rem; letter-spacing: .14em; background: linear-gradient(90deg, rgba(240, 138, 36, .32), rgba(240, 138, 36, .06)); }
.breaking-strip > strong::before { content: "\25C6"; position: absolute; left: 1.05rem; color: var(--brand-orange); font-size: .9rem; text-shadow: 0 0 14px rgba(240, 138, 36, .7); }
.breaking-strip > strong span { display: none; }
.breaking-strip a, .breaking-empty { font-size: .9rem; }
.breaking-empty { color: var(--text-secondary); }

/* 7. Latest News: larger cards, 4-col wide desktop */
.latest-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.story-row { border-radius: 13px; }
.story-row-media { height: 168px; }
.story-row-copy { padding: 1rem 1rem 0; }
.story-row .eyebrow { font-size: .7rem; color: var(--brand-gold); letter-spacing: .12em; }
.story-row .story-link { font-size: 1.04rem; line-height: 1.35; }
.story-row .story-summary { font-size: .84rem; }
.story-row > .story-meta { min-height: 0; padding: .7rem 1rem .9rem; }
.story-row-chip { font-size: .72rem; }

/* 8. Community panel: dominant, balances Latest grid */
.latest-community { grid-template-columns: minmax(0, 3fr) minmax(340px, 1fr); gap: 1.1rem; }
.community-panel { min-height: 480px; padding: 2rem 1.8rem; border-radius: 16px; border-width: 1.5px;
    background:
        radial-gradient(circle at 85% 8%, rgba(240, 138, 36, .18), transparent 42%),
        radial-gradient(circle at 15% 95%, rgba(24, 42, 66, .55), transparent 50%),
        linear-gradient(165deg, #14233a, #0a1017 72%); }
.community-panel .eyebrow { font-size: .84rem; }
.community-panel h2 { max-width: 300px; font-size: 1.85rem; line-height: 1.18; }
.community-panel p { max-width: 300px; font-size: .98rem; line-height: 1.55; }
.community-panel .button { padding: .9rem 1.4rem; font-size: 1.05rem; box-shadow: 0 8px 26px rgba(240, 138, 36, .28); }
.community-links { margin-top: 1.8rem; }
.community-links a { padding: .35rem 0; font-size: .82rem; }

/* 9. Footer presence (compact global footer defined at the shared block) */

/* 10. Responsive guards */
@media (max-width: 1180px) {
    .tools-strip-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .latest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lead-newsroom { grid-template-columns: minmax(0, 1.9fr) minmax(220px, .8fr) minmax(240px, .95fr); }
}
@media (max-width: 940px) {
    .tools-strip-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .latest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .community-panel { min-height: 0; }
    .latest-community { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .tools-strip-items { grid-template-columns: 1fr; }
    .latest-list { grid-template-columns: 1fr; }
    .story-row-media { height: 140px; }
    .market-strip .market-item { padding: 0 .9rem; font-size: .88rem; }
    .market-price { font-size: .95rem; }
}

/* ============================================================
   W3.6A ECONOMIC CALENDAR
   ============================================================ */
.calendar-filters { display: flex; flex-direction: column; gap: .1rem; margin: 1rem 0 .2rem; }
.calendar-filters .filter-bar { margin: 0; }
.cal-tz { color: var(--text-muted); font-size: .72rem; font-weight: 600; letter-spacing: .08em; }
.cal-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cal-table th, .cal-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); text-align: left; }
.cal-table th { color: var(--text-muted); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.cal-time { color: var(--text-secondary); font-weight: 700; white-space: nowrap; }
.cal-currency { color: var(--text); font-weight: 750; white-space: nowrap; }
.cal-event { color: var(--text); min-width: 220px; }
.cal-value { color: var(--text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cal-row.impact-high { background: rgba(239, 68, 68, .04); }
.cal-impact { display: inline-flex; align-items: center; padding: .12rem .55rem; border: 1px solid var(--line); border-radius: 999px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cal-impact.impact-high { border-color: rgba(239, 68, 68, .45); color: var(--negative); background: var(--negative-bg); }
.cal-impact.impact-medium { border-color: var(--border-gold); color: var(--brand-gold); background: var(--brand-glow); }
.cal-impact.impact-low { border-color: var(--line); color: var(--text-muted); }
.cal-impact.impact-unknown { border-style: dashed; color: var(--text-dim); }
.cal-stale { color: var(--brand-gold); }
.calendar-unavailable h2 { font-size: 1.2rem; margin: 0 0 .4rem; }
@media (max-width: 720px) {
    .cal-table th, .cal-table td { padding: .5rem .5rem; }
    .cal-event { min-width: 140px; }
}

/* ============================================================
   W3.6B VOLATILITY SCANNER
   ============================================================ */
.scan-table .scan-asset { white-space: nowrap; }
.scan-asset strong { color: var(--text); font-weight: 750; }
.scan-asset small { color: var(--text-muted); margin-left: .3rem; }
.scan-vol { color: var(--brand-orange); font-weight: 750; font-variant-numeric: tabular-nums; }
.scanner-unavailable h2 { font-size: 1.2rem; margin: 0 0 .4rem; }

/* ============================================================
   W3.7 TRADING CALCULATORS
   ============================================================ */
.calc-error { margin: .4rem 0 0; padding: .55rem .8rem; border: 1px solid rgba(239, 68, 68, .45); border-radius: 9px; background: var(--negative-bg); color: var(--negative); font-size: .86rem; }
.calc-form .button.ghost { margin-left: .4rem; }
@media (max-width: 720px) {
    .calc-form .button.ghost { margin-left: 0; }
}


/* ============================================================
   W4 REFERENCE-ALIGNED PREMIUM FRONTEND
   ============================================================ */
.terminal-ribbon{background:#060a0f;border-bottom:1px solid #172331;color:#8fa1b4;font-size:.69rem;letter-spacing:.08em;text-transform:uppercase}.terminal-ribbon .wrap{height:30px;display:flex;align-items:center;gap:1.5rem}.terminal-ribbon span:first-child{color:#d8e1eb;font-weight:800}.terminal-ribbon i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#21c78a;box-shadow:0 0 10px #21c78a;margin-right:.4rem}.terminal-ribbon a{margin-left:auto;color:#f5a342}.site-header{position:sticky;top:0;z-index:50;background:rgba(7,12,18,.96);backdrop-filter:blur(18px);border-bottom:1px solid #213043}.header-inner{min-height:68px}.primary-nav a{font-size:.87rem;padding:.55rem .68rem}.primary-nav a.active{box-shadow:inset 0 -2px 0 #f49a32;background:rgba(244,154,50,.06)}
.product-hero,.page-hero{position:relative;overflow:hidden;margin:1.2rem 0 1rem;padding:clamp(2rem,5vw,4.8rem);min-height:390px;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr);align-items:center;border:1px solid #24354a;border-radius:14px;background:radial-gradient(circle at 82% 30%,rgba(0,174,239,.13),transparent 27%),radial-gradient(circle at 72% 80%,rgba(244,154,50,.12),transparent 32%),linear-gradient(135deg,#111d2b,#080d14 70%)}.product-hero:before,.page-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(69,119,153,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(69,119,153,.05) 1px,transparent 1px);background-size:32px 32px;mask-image:linear-gradient(90deg,transparent,#000)}.product-hero>*,.page-hero>*{position:relative}.product-hero h1,.page-hero h1{margin:.35rem 0 .85rem;font-size:clamp(2.7rem,5vw,5.2rem);line-height:.95;letter-spacing:-.045em}.product-hero h1 span,.page-hero h1 span{color:#f5a342}.product-hero .lead,.page-hero .lead{max-width:700px;font-size:1.05rem}.hero-actions{display:flex;gap:.65rem;margin-top:1.4rem}.hero-orbit{justify-self:center;position:relative;width:250px;height:250px;border:1px solid rgba(50,176,220,.25);border-radius:50%;display:grid;place-items:center;box-shadow:0 0 70px rgba(0,174,239,.12)}.hero-orbit:before,.hero-orbit:after{content:"";position:absolute;border:1px solid rgba(244,154,50,.18);border-radius:50%;inset:25px}.hero-orbit:after{inset:55px}.hero-orbit img{width:130px;height:130px;object-fit:contain;filter:drop-shadow(0 0 30px rgba(244,154,50,.25))}.page-hero.compact{min-height:300px}.hero-stat{justify-self:end;border-left:1px solid #2b4057;padding:1.5rem 2.5rem}.hero-stat strong{display:block;font-size:3.5rem;color:#f5a342}.hero-stat span{color:#91a3b5;text-transform:uppercase;font-size:.72rem;letter-spacing:.1em}
.section-jump{display:flex;gap:.4rem;padding:.55rem;border:1px solid #202e3e;background:#0a1018;border-radius:10px}.section-jump a{padding:.55rem .9rem;color:#9cb0c4;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em}.section-jump a:hover{color:#f5a342}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:2rem;margin-bottom:1rem;border-bottom:1px solid #223246;padding-bottom:.8rem}.section-heading h2{margin:.2rem 0 0}.section-heading>p,.section-heading>span{max-width:480px;color:#8094a8;font-size:.85rem}.premium-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.feature-card{position:relative;min-height:230px;padding:1.25rem;overflow:hidden}.feature-index{display:block;color:#31475e;font-weight:900;font-size:2.2rem;line-height:1}.feature-card h3{font-size:1.15rem}.feature-card .arrow-link{position:absolute;bottom:1.1rem;left:1.25rem}.split-panel{margin:1.5rem 0;display:grid;grid-template-columns:1.2fr .8fr;gap:2rem;padding:2rem;border:1px solid #26384c;border-radius:12px;background:linear-gradient(135deg,#101923,#090e14)}.split-panel h2{font-size:clamp(1.7rem,3vw,2.8rem);max-width:650px}.principle-list{display:grid;gap:.55rem}.principle-list div{display:flex;align-items:center;gap:1rem;padding:1rem;border-bottom:1px solid #223246}.principle-list b{color:#f5a342}.cta-premium{display:flex;justify-content:space-between;align-items:center;padding:1.6rem 2rem;border-color:rgba(244,154,50,.35)}.integrity-note{display:flex;gap:1rem;align-items:center;margin:1rem 0;padding:1rem 1.2rem;border-left:3px solid #f5a342;background:#0d151f;color:#8fa2b5}.integrity-note strong{color:#fff;white-space:nowrap}
.tool-display{justify-self:end;padding:1.6rem;width:min(360px,100%);border:1px solid #2b4054;background:rgba(4,8,12,.6)}.tool-display span{color:#34b9d7;font-size:.7rem;letter-spacing:.2em}.tool-display strong{display:block;font-size:1.5rem;margin:.7rem 0}.tool-display small{color:#8192a3}.tool-hub-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.8rem}.tool-hub-card{position:relative;min-height:235px;padding:1.15rem;display:flex;flex-direction:column}.tool-hub-card:hover{border-color:#f49a32;transform:translateY(-3px)}.tool-number{color:#33485d;font-size:2rem;font-weight:900}.tool-hub-card .state-pill{position:absolute;right:1rem;top:1rem}.tool-hub-card h3{margin:1rem 0 .5rem}.tool-hub-card p{font-size:.82rem;color:#8fa1b4}.tool-hub-card b{margin-top:auto;color:#f5a342;font-size:.8rem}.compact-link-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem}.compact-link-grid a{display:flex;justify-content:space-between;padding:1rem;border:1px solid #25364a;background:#0b121b;color:#d9e2eb}
.sticky-filters{position:sticky;top:70px;z-index:20;background:rgba(8,13,20,.96);padding:.75rem;border:1px solid #223246;border-radius:10px}.news-lead-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,.8fr);gap:.9rem;margin-top:1rem}.lead-story{display:grid;grid-template-columns:1.2fr 1fr;min-height:370px;overflow:hidden}.lead-story .thumb{height:100%;min-height:350px}.lead-story .thumb img{width:100%;height:100%;object-fit:cover}.lead-story>div{padding:1.6rem}.lead-story h2{font-size:clamp(1.5rem,2.4vw,2.5rem);line-height:1.08}.news-rail{padding:1.2rem;border:1px solid #24354a;background:#0b121a;border-radius:12px}.news-rail>a{display:block;padding:1rem 0;border-bottom:1px solid #253548}.news-rail>a span{display:block;color:#f5a342;font-size:.66rem;text-transform:uppercase;letter-spacing:.1em}.news-rail>a b{display:block;margin-top:.35rem;color:#e7edf3;font-size:.9rem}.editorial-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.story-card-body{padding:1rem}.story-card-body time{display:block;margin-top:.7rem;color:#71869a;font-size:.72rem}
.calendar-shell{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:1rem}.calendar-rail{align-self:start;position:sticky;top:150px;padding:1.3rem;border:1px solid #25374b;background:#0b121a;border-radius:12px}.calendar-rail>div{position:relative;padding:.8rem 0 .8rem 1.2rem;border-bottom:1px solid #213145}.calendar-rail p{color:#8598aa;font-size:.8rem}.impact-dot{position:absolute;left:0;top:1rem;width:7px;height:7px;border-radius:50%}.impact-dot.high{background:#ef5350}.impact-dot.medium{background:#f5a342}.impact-dot.low{background:#31c999}.calendar-day{margin-top:.8rem}.calendar-day .section-title small{color:#788da0;font-size:.65rem}.cal-table{background:#0a1119;border:1px solid #223246}.cal-table tbody tr:hover{background:rgba(50,176,220,.04)}
.community-grid{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:.8rem}.community-channel{min-height:280px;padding:1.35rem}.community-channel.primary{border-color:rgba(244,154,50,.4);background:radial-gradient(circle at 80% 20%,rgba(244,154,50,.15),transparent 35%),#0d151f}.channel-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid #334b63;border-radius:50%;color:#f5a342;font-size:1.2rem}.community-channel h3{font-size:1.35rem}.community-channel li{margin:.5rem 0;color:#9bafc1}
@media(max-width:1180px){.tool-hub-grid{grid-template-columns:repeat(3,1fr)}.premium-grid{grid-template-columns:repeat(2,1fr)}.primary-nav a{padding:.5rem .45rem;font-size:.8rem}}
@media(max-width:940px){.terminal-ribbon span:nth-child(2){display:none}.product-hero,.page-hero{grid-template-columns:1fr;min-height:auto}.hero-orbit,.tool-display,.hero-stat{display:none}.news-lead-grid,.calendar-shell,.split-panel{grid-template-columns:1fr}.calendar-rail{position:static}.lead-story{grid-template-columns:1fr}.lead-story .thumb{min-height:260px}.editorial-grid{grid-template-columns:repeat(2,1fr)}.community-grid{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.product-hero,.page-hero{padding:2rem 1.2rem}.product-hero h1,.page-hero h1{font-size:2.7rem}.premium-grid,.tool-hub-grid,.editorial-grid,.community-grid,.compact-link-grid{grid-template-columns:1fr}.lead-story{display:block}.section-heading,.cta-premium,.integrity-note{align-items:flex-start;flex-direction:column}.sticky-filters{top:64px;overflow-x:auto;flex-wrap:nowrap}.terminal-ribbon a{margin-left:auto}.hero-actions{flex-wrap:wrap}}
@media(max-width:420px){.terminal-ribbon span:first-child{font-size:.58rem}.terminal-ribbon a{font-size:.58rem}.product-hero h1,.page-hero h1{font-size:2.25rem}.hero-actions .button{width:100%;text-align:center}.section-jump{overflow-x:auto}.section-jump a{white-space:nowrap}}

/* ============================================================
   W3.8 REFERENCE LAYOUT CORRECTION PASS
   ============================================================ */
.shell-ticker { margin-top: .6rem; }
.hero-chip-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.hero-chip-row .filter-chip { border: 1px solid var(--border); border-radius: 999px; padding: .4rem .95rem; color: var(--text-secondary); font-size: .8rem; }
.hero-chip-row .filter-chip.active { background: var(--brand-orange); border-color: var(--brand-orange); color: #170b02; font-weight: 750; }
.filter-chip.tab-disabled, .tab-disabled { opacity: .55; border-style: dashed; }
.filter-chip small { display: block; font-size: .58rem; text-transform: uppercase; letter-spacing: .08em; }
.market-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.market-tabs a, .market-tabs span { display: inline-flex; align-items: center; gap: .3rem; padding: .45rem .9rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text-secondary); font-size: .8rem; font-weight: 600; text-decoration: none; }
.market-tabs a:hover, .market-tabs a:focus-visible { border-color: var(--brand-orange); color: var(--brand-orange); text-decoration: none; }
.market-tabs span.tab-disabled small { color: var(--text-dim); margin-left: .3rem; font-size: .58rem; }
.hero-feature-row { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.2rem; }
.hero-feature-row span { color: var(--text-secondary); font-size: .8rem; }
.hero-feature-row span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .45rem; border-radius: 50%; background: var(--brand-orange); vertical-align: 1px; }
.hero-actions-col { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; text-align: right; }
.hero-actions-col small { color: var(--text-muted); max-width: 240px; }
.hero-tagline { color: var(--brand-orange); font-weight: 900; letter-spacing: .16em; font-size: .8rem; line-height: 1.9; text-align: right; }

.kpi-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .7rem; margin: 1.1rem 0 .4rem; }
.kpi-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi-row-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi-card { padding: .85rem 1rem; }
.kpi-card h3 { margin: 0 0 .3rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.kpi-value { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-value em { font-style: normal; font-size: .72rem; color: var(--brand-gold); margin-left: .2rem; }
.kpi-fg { color: var(--text); }
.kpi-sub { margin: .25rem 0 0; font-size: .7rem; color: var(--text-muted); }
.kpi-card.is-muted { opacity: .75; border-style: dashed; }

.panel { padding: 1.15rem 1.2rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.panel-head h2 { margin: 0; font-size: 1.08rem; }
.panel-note { margin: 0 0 .6rem; font-size: .78rem; }
.panel-big-value { margin: .4rem 0 .2rem; font-size: 2rem; font-weight: 850; color: var(--text); }
.panel-big-value small { font-size: 1rem; color: var(--text-muted); margin-left: .15rem; }

.mk-primary-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); gap: .9rem; margin-top: 1rem; align-items: start; }
.mk-side-col { display: grid; gap: .9rem; }
.mk-secondary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin-top: 1rem; align-items: stretch; }
.mk-lower-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: 1rem; align-items: start; }
.scan-mini td { padding: .45rem .6rem; }

.news-dash-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(240px, .85fr) minmax(260px, .95fr); gap: .9rem; margin-top: 1rem; align-items: stretch; }
.secondary-stack { display: grid; gap: .7rem; align-content: start; }
.rail-stack { display: grid; gap: .8rem; align-content: start; }
.rail-panel { padding: 1rem 1.1rem; }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; }
.rail-head .eyebrow { margin: 0; }
.rail-big-value { margin: .2rem 0 .1rem; font-size: 2.4rem; font-weight: 900; color: var(--text); line-height: 1; }
.rail-big-value.up { color: var(--positive); }
.rail-big-value.down { color: var(--negative); }
.rail-sub { margin: .2rem 0 .6rem; font-size: .82rem; }
.rail-ranked { list-style: none; margin: 0; padding: 0; }
.rail-ranked li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.rail-ranked li:last-child { border-bottom: 0; }
.rail-ranked b, .rail-ranked a { color: var(--text); font-size: .84rem; font-weight: 600; line-height: 1.3; }
.rail-ranked small { color: var(--text-muted); font-size: .7rem; text-align: right; }
.rail-rank { color: var(--brand-orange); font-weight: 850; font-size: .85rem; }
.rail-empty { color: var(--text-muted); font-size: .84rem; margin: .4rem 0; }
.rail-note { display: block; margin-top: .5rem; color: var(--text-dim); font-size: .68rem; }
.rail-cta .button { width: 100%; text-align: center; }
.rail-cta small { display: block; margin-top: .55rem; color: var(--text-muted); }
.snapshot-list .market-change { margin-left: .35rem; }

.news-bottom-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr); gap: .9rem; margin-top: 1.2rem; align-items: start; }
.news-bottom-grid .latest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.category-tile-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .7rem; }
.category-tile { display: flex; flex-direction: column; gap: .3rem; padding: 1rem; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.category-tile b { color: var(--text); font-size: .98rem; }
.category-tile span { color: var(--text-muted); font-size: .78rem; }
.category-tile i { margin-top: auto; color: var(--brand-orange); font-size: .78rem; font-style: normal; font-weight: 700; }
a.category-tile:hover, a.category-tile:focus-visible { border-color: var(--border-gold); text-decoration: none; transform: translateY(-2px); }
.category-tile.is-placeholder { opacity: .6; border-style: dashed; }

.signals-main-grid { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(280px, 1fr); gap: .9rem; margin-top: 1rem; align-items: start; }
.signals-table th, .signals-table td { font-size: .8rem; padding: .5rem .6rem; }
.signals-empty { text-align: center; color: var(--text-muted); padding: 2.2rem 1rem !important; }
.filter-bar.panel-filters { margin: .2rem 0 .7rem; }
.vip-points { display: grid; gap: .3rem; margin-top: .8rem; }
.vip-points span { color: var(--text-secondary); font-size: .8rem; }
.vip-points span::before { content: "\2713"; color: var(--positive); margin-right: .45rem; }
.chart-shell { min-height: 180px; display: grid; place-items: center; border: 1px dashed var(--border); border-radius: 10px; background: rgba(8, 13, 20, .6); color: var(--text-muted); font-size: .84rem; padding: 1rem; text-align: center; }

.learn-main-grid { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(280px, 1fr); gap: .9rem; margin-top: 1rem; align-items: start; }
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.course-card { display: flex; flex-direction: column; gap: .45rem; }
.course-card h3 { margin: .2rem 0 0; font-size: 1.05rem; }
.course-card p { margin: 0; font-size: .82rem; }
.course-cta { margin-top: auto; color: var(--brand-orange); font-weight: 700; font-size: .84rem; }
.course-cta small { display: block; color: var(--text-dim); font-weight: 500; }
.course-card.is-placeholder { opacity: .65; border-style: dashed; }
.path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.path-card p { font-size: .82rem; }
.blockquote, .rail-panel blockquote { margin: .3rem 0; color: var(--text); font-size: 1.02rem; line-height: 1.45; }

.partner-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.partner-tile p { font-size: .8rem; }
.mini-button { display: inline-block; margin-top: .5rem; padding: .35rem .8rem; border: 1px solid var(--border-gold); border-radius: 999px; color: var(--brand-orange); font-size: .74rem; font-weight: 700; text-decoration: none; }
a.mini-button:hover, a.mini-button:focus-visible { background: var(--brand-glow); text-decoration: none; }
.partners-mid-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr) minmax(240px, 1fr); gap: .9rem; align-items: start; }
.benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem .9rem; }
.benefit-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.benefit-grid div { padding: .7rem 0; border-bottom: 1px solid var(--border); }
.benefit-grid b { display: block; color: var(--text); font-size: .88rem; }
.benefit-grid span { color: var(--text-muted); font-size: .76rem; }
.source-badge-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.source-badge-row span { padding: .55rem 1.1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-secondary); font-size: .82rem; font-weight: 700; letter-spacing: .03em; }

.community-channel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.community-live { border-color: var(--border-gold); }
.community-mid-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr) minmax(240px, 1fr); gap: .9rem; margin-top: 1rem; align-items: start; }

.tools-feature-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr) minmax(240px, .75fr); gap: .9rem; margin-top: 1rem; align-items: start; }
.tools-cards-col { display: grid; gap: .7rem; align-content: start; }
.tool-hub-card { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.05rem; text-decoration: none; }
.tool-hub-card h3 { margin: .15rem 0 0; font-size: .98rem; }
.tool-hub-card p { margin: 0; font-size: .78rem; }
.tool-hub-card b { margin-top: .35rem; color: var(--brand-orange); font-size: .78rem; }
a.tool-hub-card:hover, a.tool-hub-card:focus-visible { border-color: var(--border-gold); text-decoration: none; transform: translateY(-2px); }
.tool-hub-card.is-coming { opacity: .75; border-style: dashed; }
.analysis-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.calc-inline-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.rail-snapshot .rail-ranked li { grid-template-columns: 3.2rem minmax(0, 1fr) auto; }

@media (max-width: 1180px) {
    .kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .news-dash-grid { grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); }
    .news-dash-grid .rail-stack { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mk-primary-grid, .signals-main-grid, .learn-main-grid, .news-bottom-grid { grid-template-columns: 1fr; }
    .partner-category-grid, .category-tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tools-feature-grid { grid-template-columns: 1fr; }
    .rail-snapshot { display: none; }
    .partners-mid-grid, .community-mid-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .kpi-row, .kpi-row-3, .kpi-row-4, .kpi-row-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-tile-grid, .partner-category-grid, .course-grid, .path-grid { grid-template-columns: 1fr; }
    .analysis-tools-grid { grid-template-columns: 1fr; }
    .news-bottom-grid .latest-list { grid-template-columns: 1fr; }
    .hero-actions-col { justify-self: start; align-items: flex-start; text-align: left; }
    .hero-tagline { text-align: left; }
    .news-dash-grid { grid-template-columns: 1fr; }
    .news-bottom-grid .latest-list { grid-template-columns: 1fr; }
    .signals-main-grid, .learn-main-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   W3.8B NEWS PAGE — REFERENCE FIDELITY (02-news.png)
   Reference: 1023px-wide capture of a 1440px viewport (x1.408 scale)
   ============================================================ */
.pg-news {
    --news-hero-height: 260px;
    --news-grid-gap: 17px;
    --news-card-radius: 12px;
    --news-sidebar-width: 22.5%;
}
.pg-news .site-header { border-bottom: 1px solid rgba(240, 138, 36, .14); }

/* --- Hero: shallow cinematic banner --- */
.pg-news .news-hero {
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center; min-height: var(--news-hero-height);
    padding: 2.2rem 2.6rem; margin-top: .9rem;
}
.pg-news .news-hero .news-hero-copy { position: relative; z-index: 2; max-width: 620px; }
.pg-news .news-hero .eyebrow { margin-bottom: .45rem; font-size: .78rem; letter-spacing: .22em; color: #ff9d3f; }
.pg-news .news-hero h1 { margin: 0 0 .5rem; font-size: clamp(2rem, 3.1vw, 2.85rem); line-height: 1.04; letter-spacing: -.03em; }
.pg-news .news-hero h1 span { color: #f5a342; }
.pg-news .news-hero .lead { max-width: 560px; margin: 0 0 .9rem; font-size: .95rem; }
.pg-news .hero-chip-row { margin-top: 0; }
.pg-news .hero-chip-row .filter-chip { padding: .3rem .85rem; font-size: .74rem; background: rgba(8, 13, 20, .55); }
.pg-news .hero-chip-row .filter-chip.active { background: var(--brand-orange); }
.news-hero-art { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; background:
    radial-gradient(circle at 78% 42%, rgba(240, 138, 36, .22), transparent 40%),
    radial-gradient(circle at 92% 10%, rgba(24, 42, 66, .65), transparent 45%),
    radial-gradient(circle at 55% 100%, rgba(10, 80, 120, .25), transparent 50%),
    linear-gradient(120deg, #0a0f16 30%, #0d1622 62%, #101d2e 100%); }
.news-hero-art .art-globe { position: absolute; right: -70px; top: 50%; width: 340px; height: 340px; transform: translateY(-50%); border-radius: 50%;
    background:
        radial-gradient(circle at 38% 32%, rgba(240, 138, 36, .5), transparent 30%),
        radial-gradient(circle at 62% 60%, rgba(240, 138, 36, .32), transparent 34%),
        radial-gradient(circle at 50% 50%, rgba(18, 32, 50, .9), rgba(8, 13, 20, .95) 78%);
    box-shadow: inset -28px -20px 70px rgba(240, 138, 36, .18), inset 18px 16px 50px rgba(24, 42, 66, .8), 0 0 90px rgba(240, 138, 36, .1); }
.news-hero-art .art-grid { position: absolute; inset: 0; background:
    linear-gradient(rgba(69, 119, 153, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 119, 153, .07) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, transparent 25%, #000 70%); }

/* --- Featured news area: 50.5% / 24% / 22.5% with 17px gaps --- */
.pg-news .news-dash-grid {
    grid-template-columns: minmax(0, 2.24fr) minmax(230px, 1.06fr) minmax(275px, 1fr);
    gap: var(--news-grid-gap); margin-top: 1.15rem;
}
.pg-news .lead-story { grid-template-rows: 324px 1fr; border-radius: var(--news-card-radius); overflow: hidden; min-height: 640px; }
.pg-news .lead-story .thumb { height: 324px; min-height: 324px; }
.pg-news .lead-story > div { padding: 1.5rem 1.6rem 1.4rem; display: flex; flex-direction: column; }
.pg-news .lead-story h2 { font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.16; margin: .35rem 0 .6rem; }
.pg-news .lead-story p { font-size: .9rem; line-height: 1.55; }
.pg-news .lead-story .story-meta { margin-top: .7rem; }
.pg-news .lead-story .button { margin-top: auto; align-self: flex-end; padding: .6rem 1.3rem; font-size: .88rem; }
.pg-news .lead-story.is-placeholder { display: grid; grid-template-rows: 324px 1fr; }
.pg-news .lead-story.is-placeholder .thumb { height: 324px; }
.pg-news .lead-story.is-placeholder > div { display: flex; flex-direction: column; }
.pg-news .lead-story.is-placeholder .button { display: none; }

.pg-news .secondary-stack { gap: var(--news-grid-gap); }
.pg-news .story-brief { grid-template-columns: 128px minmax(0, 1fr); gap: .8rem; align-items: center; padding: .9rem .95rem; border-radius: var(--news-card-radius); min-height: 202px; }
.pg-news .story-brief-media { width: 128px; height: 100px; border-radius: 9px; }
.pg-news .story-brief .eyebrow { margin-bottom: .3rem; }
.pg-news .story-brief .story-link { font-size: .92rem; line-height: 1.34; }
.pg-news .story-brief .story-meta { margin-top: .45rem; font-size: .72rem; }
.pg-news .story-brief.is-placeholder { min-height: 202px; }

/* --- Sidebar --- */
.pg-news .rail-stack { gap: var(--news-grid-gap); }
.pg-news .rail-panel { border-radius: var(--news-card-radius); padding: 1.05rem 1.1rem; }
.pg-news .rail-sentiment { min-height: 320px; }
.pg-news .rail-panel:nth-child(2) { min-height: 232px; }
.pg-news .rail-cta { min-height: 218px; }
.sentiment-gauge { position: relative; display: grid; place-items: center; margin: .4rem auto .6rem; width: 168px; height: 110px; }
.sentiment-gauge .gauge-arc { position: absolute; inset: 0; border-radius: 168px 168px 12px 12px; overflow: hidden; mask-image: radial-gradient(circle at 50% 100%, transparent 62px, #000 63px); -webkit-mask-image: radial-gradient(circle at 50% 100%, transparent 62px, #000 63px); }
.sentiment-gauge .gauge-arc.gauge-none { background: conic-gradient(from -90deg at 50% 100%, var(--border) 0deg, var(--border) 90deg, transparent 90deg); }
.sentiment-gauge .gauge-score { position: relative; z-index: 1; margin-top: 1.9rem; font-size: 2.6rem; font-weight: 900; color: var(--text); line-height: 1; }
.sentiment-gauge .gauge-label { position: relative; z-index: 1; color: var(--brand-gold); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.rail-sub-center { text-align: center; font-size: .74rem; color: var(--text-muted); margin-top: .2rem; }
.pg-news .trending-list li { grid-template-columns: 1.6rem minmax(0, 1fr) 2.2rem; padding: .62rem 0; }
.topic-count { display: inline-block; min-width: 2rem; padding: .1rem .45rem; border: 1px solid var(--border-gold); border-radius: 999px; background: rgba(240, 138, 36, .08); color: var(--brand-gold); font-size: .72rem; font-weight: 700; text-align: center; }
.pg-news .rail-cta .button { padding: .62rem 1rem; font-size: .84rem; }

/* --- Breaking strip: thin, 50px --- */
.pg-news .breaking-strip { margin-top: 1.15rem; min-height: 50px; }

/* --- Latest News + Most Read --- */
.pg-news .news-bottom-grid { grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); gap: var(--news-grid-gap); margin-top: 1.15rem; }
.pg-news .news-bottom-grid .latest-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pg-news .story-row-media { height: 118px; }
.pg-news .story-row { border-radius: 10px; }
.pg-news .story-row-copy { padding: .8rem .8rem 0; }
.pg-news .story-row .story-link { font-size: .86rem; line-height: 1.32; -webkit-line-clamp: 3; }
.pg-news .story-row > .story-meta { padding: .5rem .8rem .7rem; min-height: 0; }
.pg-news .story-row > .story-meta time { font-size: .68rem; }
.pg-news .section-heading { margin-bottom: .8rem; }

/* --- News by Category: 6 compact tiles --- */
.pg-news .category-tile-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: .4rem; }
.pg-news .category-tile { min-height: 158px; padding: .85rem .9rem; gap: .2rem; }
.pg-news .tile-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: .3rem; border: 1px solid var(--border-gold); border-radius: 8px; background: rgba(240, 138, 36, .1); color: var(--brand-orange); font-size: .9rem; }
.pg-news .category-tile b { font-size: .92rem; }
.pg-news .category-tile span { font-size: .72rem; line-height: 1.4; }
.pg-news .category-tile i { font-size: .74rem; margin-top: .35rem; }

/* --- Footer: reference composition (authoritative rules live in the shared footer block at the top) --- */

@media (max-width: 1180px) {
    .pg-news .news-dash-grid { grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); }
    .pg-news .news-dash-grid .rail-stack { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pg-news .lead-story { min-height: 0; }
    .pg-news .news-bottom-grid .latest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-news .category-tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .pg-news .news-hero { padding: 1.6rem 1.2rem; min-height: 0; }
    .pg-news .news-dash-grid { grid-template-columns: 1fr; }
    .pg-news .news-dash-grid .rail-stack { grid-template-columns: 1fr; }
    .pg-news .story-brief { min-height: 0; }
    .pg-news .news-bottom-grid .latest-list { grid-template-columns: 1fr; }
    .pg-news .category-tile-grid { grid-template-columns: 1fr; }
}
/* --- second-pass corrections (news) --- */
.pg-news .lead-story { grid-template-columns: minmax(0, 1fr); grid-template-rows: 324px 1fr; }
.pg-news .lead-story .thumb { display: block; height: 324px; min-height: 324px; }
.pg-news .lead-story .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pg-news .lead-story > div { padding: 1.5rem 1.6rem 1.4rem; display: flex; flex-direction: column; }
.sentiment-gauge .gauge-arc {
    background: conic-gradient(from -90deg at 50% 100%,
        var(--negative) 0deg, #eab308 45deg, var(--positive) 90deg, transparent 90deg);
}

/* ============================================================
   W3.8B PASS 2 — NEWS DESKTOP SCALE CORRECTION (02-news.png)
   Root cause fix: .wrap cap (1360/1560px) made the page occupy
   only ~55-60% of wide viewports. News now spans ~96vw.
   ============================================================ */
/* (pg-news desktop .wrap override removed — shared canonical shell) */

/* --- header scale (news-scoped) --- */
.pg-news .site-header .header-inner { min-height: 78px; gap: 2.2rem; }
.pg-news .brand-mark { width: 52px; height: 52px; }
.pg-news .brand-text strong { font-size: 1.38rem; }
.pg-news .brand-text em { font-size: .66rem; }
.pg-news .primary-nav a { padding: .6rem 1rem; font-size: 1.02rem; font-weight: 600; }
.pg-news .primary-nav a.active { color: #ffb15e; background: linear-gradient(180deg, rgba(240, 138, 36, .14), transparent); box-shadow: inset 0 -3px 0 var(--brand-orange); }
.pg-news .primary-nav a.cta-community { padding: .68rem 1.4rem; font-size: .98rem; }
.pg-news .nav-toggle { width: 48px; height: 48px; }

/* --- ticker scale: superseded by the shared canonical shell-ticker block --- */

/* --- hero: wide cinematic banner --- */
.pg-news .news-hero {
    grid-template-columns: minmax(0, 1.7fr) auto;
    min-height: clamp(250px, 20vw, 320px);
    padding: 2.6rem 3rem; margin-top: .9rem;
}
.pg-news .news-hero .news-hero-copy { max-width: 760px; }
.pg-news .news-hero .eyebrow { margin-bottom: .55rem; font-size: .84rem; letter-spacing: .24em; color: #ff9d3f; }
.pg-news .news-hero h1 { margin: 0 0 .6rem; font-size: clamp(2.5rem, 4vw, 3.9rem); line-height: 1.02; letter-spacing: -.035em; }
.pg-news .news-hero h1 span { color: #f5a342; }
.pg-news .news-hero .lead { max-width: 620px; margin: 0 0 1.1rem; font-size: 1.02rem; }
.pg-news .hero-chip-row { gap: .5rem; }
.pg-news .hero-chip-row .filter-chip { padding: .42rem 1.05rem; font-size: .8rem; background: rgba(8, 13, 20, .62); border-color: rgba(255, 255, 255, .16); color: var(--text-secondary); }
.news-hero-side { position: relative; z-index: 2; justify-self: end; align-self: center; text-align: right; display: grid; gap: 1.1rem; }
.hero-side-words { margin: 0; color: var(--brand-orange); font-weight: 900; font-size: 1rem; letter-spacing: .2em; line-height: 1.85; }
.hero-side-tag { margin: 0; color: var(--text-secondary); font-weight: 750; font-size: .84rem; letter-spacing: .16em; line-height: 1.8; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: .9rem; }

/* --- artwork: layered globe / grid / city lights --- */
.news-hero-art { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; background:
    radial-gradient(circle at 74% 45%, rgba(240, 138, 36, .2), transparent 42%),
    radial-gradient(circle at 90% 8%, rgba(24, 42, 66, .6), transparent 48%),
    radial-gradient(circle at 45% 110%, rgba(10, 80, 120, .28), transparent 52%),
    linear-gradient(115deg, #0a0f16 26%, #0d1622 58%, #112032 100%); }
.news-hero-art .art-globe { position: absolute; right: 6%; top: 50%; width: min(30vw, 430px); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%;
    background:
        radial-gradient(circle at 34% 30%, rgba(255, 176, 84, .55), transparent 26%),
        radial-gradient(circle at 58% 62%, rgba(240, 138, 36, .4), transparent 30%),
        radial-gradient(circle at 46% 78%, rgba(255, 154, 60, .3), transparent 26%),
        radial-gradient(circle at 72% 38%, rgba(240, 138, 36, .28), transparent 24%),
        radial-gradient(circle at 50% 50%, rgba(16, 30, 48, .92), rgba(7, 12, 19, .97) 82%);
    box-shadow:
        inset -30px -22px 80px rgba(240, 138, 36, .2),
        inset 22px 18px 60px rgba(24, 42, 66, .85),
        0 0 110px rgba(240, 138, 36, .12); }
.news-hero-art .art-globe::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background:
        repeating-linear-gradient(0deg, transparent 0 26px, rgba(240, 138, 36, .12) 26px 27px),
        repeating-linear-gradient(90deg, transparent 0 26px, rgba(90, 140, 190, .12) 26px 27px);
    mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 72%);
}
.news-hero-art .art-globe::after {
    content: ""; position: absolute; inset: -2px; border-radius: 50%;
    border: 1px solid rgba(240, 138, 36, .28);
    box-shadow: 0 0 40px rgba(240, 138, 36, .18);
}
.news-hero-art .art-grid { position: absolute; inset: 0; background:
    linear-gradient(rgba(69, 119, 153, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 119, 153, .08) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(90deg, transparent 20%, #000 72%); }
.news-hero-art .art-lights { position: absolute; inset: 0; background-image:
    radial-gradient(circle 2px at 68% 30%, rgba(255, 190, 110, .9), transparent 60%),
    radial-gradient(circle 2px at 78% 52%, rgba(255, 190, 110, .8), transparent 60%),
    radial-gradient(circle 1.5px at 62% 66%, rgba(255, 190, 110, .7), transparent 60%),
    radial-gradient(circle 2px at 86% 38%, rgba(255, 190, 110, .75), transparent 60%),
    radial-gradient(circle 1.5px at 74% 74%, rgba(255, 190, 110, .6), transparent 60%),
    radial-gradient(circle 1.5px at 58% 38%, rgba(255, 190, 110, .65), transparent 60%),
    radial-gradient(circle 2px at 90% 66%, rgba(255, 190, 110, .7), transparent 60%); }

/* --- featured grid: 47% / 27% / 24% (reference) --- */
.pg-news .news-dash-grid {
    grid-template-columns: minmax(0, 1.96fr) minmax(280px, 1.13fr) minmax(320px, 1fr);
    gap: var(--news-grid-gap); margin-top: 1.15rem;
}

/* --- top story: reference height without huge empty walls --- */
.pg-news .lead-story { grid-template-rows: 340px 1fr; min-height: 0; }
.pg-news .lead-story .thumb { height: 340px; min-height: 340px; }
.pg-news .lead-story h2 { font-size: clamp(1.6rem, 2.2vw, 2.15rem); line-height: 1.14; }
.pg-news .lead-story p { font-size: .95rem; line-height: 1.58; }
.pg-news .lead-story.is-placeholder { grid-template-rows: 340px auto; }
.pg-news .lead-story.is-placeholder .thumb {
    height: 340px; min-height: 340px; position: relative; overflow: hidden; display: block;
    background: radial-gradient(circle at 74% 45%, rgba(240, 138, 36, .16), transparent 42%),
        radial-gradient(circle at 90% 8%, rgba(24, 42, 66, .55), transparent 48%),
        linear-gradient(115deg, #0a0f16 30%, #0e1725 70%);
    border-radius: 0; border: 0; }
.pg-news .lead-story.is-placeholder .thumb .art-globe { width: 260px; height: 260px; right: 8%; }
.pg-news .lead-story.is-placeholder .thumb .art-grid { position: absolute; inset: 0; }
.pg-news .placeholder-tag { position: absolute; left: 1.4rem; bottom: 1.1rem; color: rgba(201, 162, 39, .5); font-size: .72rem; font-weight: 800; letter-spacing: .22em; }

/* --- secondary cards: larger thumbs, readable scale --- */
.pg-news .story-brief { grid-template-columns: 148px minmax(0, 1fr); gap: .9rem; padding: 1rem 1.05rem; min-height: 208px; }
.pg-news .story-brief-media { width: 148px; height: 116px; border-radius: 9px; }
.pg-news .story-brief-media.mini-fallback { height: 116px; }
.pg-news .story-brief .story-link { font-size: 1rem; line-height: 1.36; }
.pg-news .story-brief .eyebrow { font-size: .66rem; }
.pg-news .story-brief .story-meta { font-size: .74rem; }

/* --- right rail: wide enough, reference-scale --- */
.pg-news .rail-sentiment { min-height: 336px; }
.pg-news .rail-panel { padding: 1.15rem 1.2rem; }
.pg-news .rail-panel .rail-head .eyebrow { font-size: .82rem; letter-spacing: .1em; color: var(--text); text-transform: none; font-weight: 750; }
.pg-news .rail-head .pulse-view-link { font-size: .8rem; }
.sentiment-gauge { width: 190px; height: 122px; margin-top: .6rem; }
.sentiment-gauge .gauge-score { font-size: 2.9rem; margin-top: 2.1rem; }
.sentiment-gauge .gauge-label { font-size: .82rem; }
.pg-news .trending-list li { grid-template-columns: 1.7rem minmax(0, 1fr) auto; padding: .68rem 0; }
.pg-news .trending-list b { font-size: .92rem; }
.pg-news .trending-list .rail-empty { white-space: normal; font-size: .88rem; line-height: 1.5; }
.pg-news .rail-cta { min-height: 200px; }
.pg-news .rail-cta .eyebrow { color: #ff9d3f; font-size: .8rem; }
.pg-news .rail-cta .rail-sub { font-size: .86rem; line-height: 1.5; }

/* --- vertical rhythm / density --- */
.pg-news .section { margin-top: 1.5rem; }
.pg-news .section-heading h2 { font-size: 1.32rem; }
.pg-news .breaking-strip { min-height: 52px; margin-top: 1.2rem; }
.pg-news .news-bottom-grid { margin-top: 1.2rem; }
.pg-news .news-bottom-grid .latest-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.pg-news .story-row-media { height: 128px; }
.pg-news .story-row .story-link { font-size: .9rem; }
.pg-news .category-tile-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 15px; }
.pg-news .category-tile { min-height: 168px; }
.pg-news .category-tile b { font-size: .98rem; }
.pg-news .category-tile span { font-size: .76rem; }
.pg-news .site-footer .footer-nav a { font-size: .95rem; }

@media (max-width: 1400px) {
    .pg-news .news-hero-side { display: none; }
}
@media (max-width: 1180px) {
    .pg-news .news-dash-grid { grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); }
    .pg-news .news-dash-grid .rail-stack { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pg-news .news-bottom-grid .latest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-news .category-tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .pg-news .wrap { width: calc(100% - 1.25rem); }
    .pg-news .news-hero { padding: 1.6rem 1.2rem; min-height: 0; grid-template-columns: 1fr; }
    .pg-news .news-hero h1 { font-size: 2.1rem; }
    .pg-news .news-dash-grid { grid-template-columns: 1fr; }
    .pg-news .news-dash-grid .rail-stack { grid-template-columns: 1fr; }
    .pg-news .lead-story.is-placeholder .thumb { height: 240px; }
    .pg-news .story-brief { min-height: 0; }
    .pg-news .news-bottom-grid .latest-list { grid-template-columns: 1fr; }
    .pg-news .category-tile-grid { grid-template-columns: 1fr; }
}

/* gauge ring thickness for the larger 190px gauge */
.sentiment-gauge .gauge-arc {
    mask-image: radial-gradient(circle at 50% 100%, transparent 76px, #000 77px);
    -webkit-mask-image: radial-gradient(circle at 50% 100%, transparent 76px, #000 77px);
}

/* ============================================================
   W3.8B PASS 3 — VERTICAL GEOMETRY + DENSITY (02-news.png)
   ============================================================ */

/* News-only: remove the extra top intelligence strip (reference has none) */
.pg-news .terminal-ribbon { display: none; }

/* 1. Featured row: no uncontrolled stretching; columns end on a shared baseline */
.pg-news .news-dash-grid { align-items: start; }
.pg-news .lead-story { min-height: 0; max-height: 690px; grid-template-rows: 320px minmax(0, 1fr); }
.pg-news .lead-story.is-placeholder { grid-template-rows: 320px auto; min-height: 0; }
.pg-news .lead-story .thumb { height: 320px; min-height: 320px; }
.pg-news .lead-story > div { padding: 1.3rem 1.5rem 1.2rem; }
.pg-news .lead-story h2 { font-size: clamp(1.45rem, 1.9vw, 1.9rem); margin: .3rem 0 .5rem; }
.pg-news .lead-story p { font-size: .92rem; line-height: 1.5; }
.pg-news .lead-story .button { margin-top: 1rem; }

/* 2. Center column: 4 compact stories */
.pg-news .story-brief { min-height: 0; padding: .8rem .9rem; grid-template-columns: 136px minmax(0, 1fr); gap: .85rem; }
.pg-news .story-brief-media { width: 136px; height: 102px; }
.pg-news .story-brief-media.mini-fallback { height: 102px; }
.pg-news .secondary-stack { gap: 14px; }

/* 3. Right rail: three cards fit the featured block height */
.pg-news .rail-sentiment { min-height: 0; padding: 1rem 1.1rem; }
.sentiment-gauge { width: 172px; height: 110px; margin: .4rem auto .4rem; }
.sentiment-gauge .gauge-score { font-size: 2.5rem; margin-top: 1.9rem; }
.pg-news .rail-panel { padding: 1rem 1.1rem; }
.pg-news .rail-panel .rail-ranked li { padding: .55rem 0; }
.pg-news .rail-cta { min-height: 0; padding: 1rem 1.1rem; }
.pg-news .rail-cta .rail-sub { font-size: .8rem; margin-bottom: .7rem; }

/* 5. Trending empty sentence: root cause was grid placement in a
      1.7rem-wide first column — span the full row instead. */
.pg-news .rail-ranked li.rail-empty,
.rail-ranked li.rail-empty { grid-column: 1 / -1; display: block; white-space: normal; overflow-wrap: normal; word-break: normal; line-height: 1.5; }

/* 6. Sharper hero artwork: crisp rim, dense meridians, stronger glow */
.pg-news .news-hero-art .art-globe {
    right: 8%;
    width: min(26vw, 380px);
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 190, 110, .75), transparent 18%),
        radial-gradient(circle at 60% 58%, rgba(240, 138, 36, .55), transparent 22%),
        radial-gradient(circle at 46% 80%, rgba(255, 160, 70, .45), transparent 20%),
        radial-gradient(circle at 74% 34%, rgba(240, 138, 36, .4), transparent 18%),
        radial-gradient(circle at 26% 58%, rgba(255, 176, 84, .38), transparent 16%),
        radial-gradient(circle at 50% 50%, rgba(17, 32, 52, .94), rgba(7, 12, 19, .98) 84%);
    box-shadow:
        inset -26px -18px 60px rgba(240, 138, 36, .28),
        inset 18px 14px 46px rgba(24, 42, 66, .9),
        0 0 90px rgba(240, 138, 36, .22),
        0 0 26px rgba(240, 138, 36, .25);
}
.pg-news .news-hero-art .art-globe::before {
    background:
        repeating-linear-gradient(0deg, transparent 0 18px, rgba(240, 138, 36, .16) 18px 19px),
        repeating-linear-gradient(90deg, transparent 0 18px, rgba(110, 160, 210, .16) 18px 19px),
        radial-gradient(circle at 50% 50%, transparent 52%, rgba(240, 138, 36, .12) 66%, transparent 78%);
    mask-image: radial-gradient(circle at 50% 50%, #000 34%, transparent 74%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 34%, transparent 74%);
}
.pg-news .news-hero-art .art-globe::after {
    border: 1.5px solid rgba(240, 138, 36, .4);
    box-shadow: 0 0 34px rgba(240, 138, 36, .3), inset 0 0 30px rgba(240, 138, 36, .14);
}

/* 8. Latest placeholder cards: art treatment + controlled height */
.pg-news .story-row.is-placeholder .story-row-media {
    background:
        radial-gradient(circle at 76% 40%, rgba(240, 138, 36, .2), transparent 55%),
        repeating-linear-gradient(135deg, #0d141d 0 16px, #0f1722 16px 17px);
    border-bottom: 1px solid var(--border);
}
.pg-news .story-row.is-placeholder .story-row-media::after {
    content: "BULL-EYE"; color: rgba(201, 162, 39, .45); font-size: .8rem; font-weight: 850; letter-spacing: .12em;
}
.pg-news .story-row.is-placeholder .story-row-media span { display: none; }
.pg-news .story-row.is-placeholder { min-height: 0; }
.pg-news .story-row.is-placeholder .story-meta { min-height: 0; padding-bottom: .8rem; }

/* 9. Most Read compact */
.pg-news .news-bottom-grid .rail-panel { padding: 1rem 1.1rem; }
.pg-news .news-bottom-grid .rail-note { margin-top: .4rem; }

/* Category tiles: named navigation tiles compact */
.pg-news .category-tile { min-height: 150px; }
.pg-news .category-tile.is-coming { opacity: .8; }
.pg-news .tile-soon { color: var(--text-dim); font-weight: 600; }

/* ============================================================
   W3.8B PASS 4 — FINAL POLISH (02-news.png)
   ============================================================ */

/* 3+5. Rich branded placeholder artwork (Top Story image region) */
.pg-news .lead-story.is-placeholder .thumb.placeholder-art { background:
    radial-gradient(circle at 74% 40%, rgba(240, 138, 36, .26), transparent 44%),
    radial-gradient(circle at 88% 10%, rgba(24, 42, 66, .6), transparent 46%),
    linear-gradient(115deg, #0a0f16 30%, #0e1725 68%);
}
.pg-news .lead-story.is-placeholder .thumb.placeholder-art .art-globe { width: 300px; height: 300px; right: 7%; opacity: .95; }
.pg-news .placeholder-chart, .pg-news .story-row.is-placeholder .story-row-media::after { display: none; }
.placeholder-chart { position: absolute; inset: auto 0 0 0; height: 55%; background:
    linear-gradient(0deg, rgba(240, 138, 36, .08), transparent 60%); }
.placeholder-chart::before { content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0 42px, rgba(240, 138, 36, .16) 42px 46px, transparent 46px 78px, rgba(110, 160, 210, .14) 78px 82px);
    mask-image: linear-gradient(0deg, #000 30%, transparent 95%);
    -webkit-mask-image: linear-gradient(0deg, #000 30%, transparent 95%); }
.placeholder-chart::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 18%; height: 3px;
    background: linear-gradient(90deg, transparent, rgba(240, 138, 36, .65) 30%, rgba(240, 138, 36, .8) 70%, transparent);
    clip-path: polygon(0 78%, 12% 62%, 24% 70%, 38% 44%, 52% 54%, 66% 26%, 80% 38%, 100% 10%, 100% 100%, 0 100%); }
.pg-news .lead-story.is-placeholder .thumb .placeholder-chart { display: block; }
.pg-news .lead-story.is-placeholder .thumb .placeholder-tag { position: absolute; left: 1.4rem; top: 1.2rem; bottom: auto; color: rgba(255, 170, 80, .85); font-size: .74rem; font-weight: 850; letter-spacing: .24em; padding: .3rem .7rem; border: 1px solid rgba(240, 138, 36, .35); border-radius: 999px; background: rgba(8, 13, 20, .6); }

/* 4. Top Story text area density */
.pg-news .lead-story > div { padding: 1.15rem 1.5rem 1.1rem; }
.pg-news .lead-story h2 { line-height: 1.12; }
.pg-news .lead-story.is-placeholder > div { padding: 1.15rem 1.5rem 1.15rem; }
.pg-news .lead-story.is-placeholder h2 { margin-bottom: .4rem; }
.pg-news .lead-story.is-placeholder p { margin: 0; max-width: 560px; }

/* 5. Secondary placeholder thumbnails: premium branded artwork */
.pg-news .story-brief-media.mini-fallback {
    background:
        radial-gradient(circle at 76% 34%, rgba(240, 138, 36, .28), transparent 58%),
        radial-gradient(circle at 20% 85%, rgba(24, 42, 66, .5), transparent 55%),
        repeating-linear-gradient(135deg, #0d141d 0 14px, #0f1722 14px 15px);
    position: relative;
}
.pg-news .story-brief-media.mini-fallback::after {
    content: ""; position: absolute; left: 10%; right: 10%; bottom: 16%; height: 2.5px;
    background: linear-gradient(90deg, transparent, rgba(240, 138, 36, .7) 45%, transparent);
    clip-path: polygon(0 80%, 20% 55%, 42% 66%, 62% 30%, 82% 44%, 100% 12%, 100% 100%, 0 100%);
}
.pg-news .story-brief-media.mini-fallback span {
    display: inline-block; padding: .12rem .5rem; border: 1px solid rgba(240, 138, 36, .35); border-radius: 999px;
    background: rgba(8, 13, 20, .6); color: rgba(255, 170, 80, .8); font-size: .52rem; letter-spacing: .16em;
}

/* 6. Right rail polish */
.pg-news .rail-sentiment .rail-sub-center { margin-top: .1rem; font-size: .72rem; }
.sentiment-gauge { margin-bottom: .3rem; }
.pg-news .rail-cta { border-left: 3px solid var(--brand-orange); background: linear-gradient(160deg, rgba(240, 138, 36, .1), rgba(10, 15, 22, .9) 55%); }

/* 7. Hero artwork: real production wallpaper (news-hero) replaces CSS globe art.
      The art layers (globe/grid/lights) are disabled in favor of the image. */
.pg-news .news-hero-art { background:
    linear-gradient(90deg, rgba(7, 11, 17, .82) 0%, rgba(7, 11, 17, .45) 42%, rgba(7, 11, 17, .12) 70%, rgba(7, 11, 17, .28) 100%),
    url("/static/images/hero-wallpapers/news-hero.webp.png") center 42% / cover no-repeat; }
.pg-news .news-hero-art .art-globe,
.pg-news .news-hero-art .art-grid,
.pg-news .news-hero-art .art-lights { display: none; }

/* 10. Ticker: Fear & Greed value emphasis */
/* (old pg-news shell-ticker em/badge overrides removed — shared canonical ticker) */

/* 11. Latest placeholders: chart motif */
.pg-news .story-row.is-placeholder .story-row-media::before {
    content: ""; position: absolute; left: 8%; right: 8%; bottom: 18%; height: 2.5px;
    background: linear-gradient(90deg, transparent, rgba(240, 138, 36, .65) 40%, transparent);
    clip-path: polygon(0 75%, 18% 55%, 38% 65%, 58% 30%, 78% 42%, 100% 14%, 100% 100%, 0 100%);
}

/* 14. News page: keep shared footer compact */

/* Markets page reference fidelity — scoped to /markets only. */
.pg-markets { max-width: 1180px; margin-inline: auto; }
.pg-markets .page-hero-markets { position: relative; isolation: isolate; overflow: hidden; min-height: 286px; margin-top: .25rem; padding: 2rem 2.2rem; grid-template-columns: minmax(0,1.55fr) minmax(220px,.65fr); border: 1px solid #29394a; border-radius: 12px; background: url("/static/images/hero-wallpapers/markets-hero.webp.png") 58% center / cover no-repeat; }
.pg-markets .page-hero-markets::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(90deg,rgba(5,9,14,.96) 0%,rgba(5,9,14,.82) 43%,rgba(5,9,14,.25) 73%,rgba(5,9,14,.5) 100%),linear-gradient(0deg,rgba(5,9,14,.64),transparent 55%); }
.pg-markets .page-hero-markets .eyebrow { margin-bottom:.55rem; color:#ff9d3f; letter-spacing:.22em; }
.pg-markets .page-hero-markets h1 { margin-bottom:.55rem; font-size:clamp(2.45rem,4.3vw,3.65rem); line-height:1.01; }
.pg-markets .page-hero-markets h1 span { color:var(--brand-orange); }
.pg-markets .page-hero-markets .lead { max-width:590px; margin:0; font-size:.96rem; }
.pg-markets .hero-stat { align-self:center; padding:1rem 0 1rem 1.6rem; border-left-color:rgba(255,255,255,.2); }
.pg-markets .hero-stat strong { font-size:clamp(2.25rem,3.4vw,3.2rem); }
.pg-markets .market-tabs { gap:.42rem; margin-top:1rem; }
.pg-markets .market-tabs a,.pg-markets .market-tabs span { padding:.34rem .78rem; background:rgba(5,9,14,.62); font-size:.72rem; }
.pg-markets .kpi-row { gap:.55rem; margin-top:.8rem; }
.pg-markets .kpi-card { min-height:82px; padding:.72rem .82rem; border-radius:9px; box-shadow:none; }
.pg-markets .kpi-card h3 { font-size:.65rem; }
.pg-markets .kpi-value { font-size:1.18rem; }
.pg-markets .intel-source { margin:.35rem 0 .7rem; text-align:right; font-size:.68rem; }
.pg-markets .card { border-color:#263647; border-radius:10px; box-shadow:0 7px 20px rgba(0,0,0,.2); }
.pg-markets .panel { padding:.9rem 1rem; }
.pg-markets .panel-head { margin-bottom:.42rem; padding-bottom:.48rem; border-bottom:1px solid var(--border); }
.pg-markets .panel-head h2 { font-size:1rem; }
.pg-markets .panel-note { font-size:.7rem; line-height:1.45; }
.pg-markets .mk-primary-grid { grid-template-columns:minmax(0,2.35fr) minmax(260px,.85fr); gap:.65rem; margin-top:.65rem; }
.pg-markets .mk-side-col { gap:.65rem; }
.pg-markets .heat-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:.38rem; }
.pg-markets .heat-tile { min-height:70px; padding:.58rem .65rem; border-radius:7px; font-size:.72rem; }
.pg-markets .heat-tile strong { font-size:.84rem; }
.pg-markets .movers-list li { gap:.4rem; padding:.42rem .35rem; font-size:.76rem; }
.pg-markets .mover-name small { font-size:.61rem; }
.pg-markets > .intel-note { margin:.45rem 0 .7rem; font-size:.67rem; }
.pg-markets .mk-secondary-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; margin-top:.65rem; }
.pg-markets .mk-secondary-grid > :last-child { grid-column:1/-1; }
.pg-markets .bubble-wrap { max-height:250px; }
.pg-markets .bubble-svg { max-width:820px; margin-inline:auto; }
.pg-markets .mk-lower-grid { gap:.65rem; margin-top:.65rem; }
.pg-markets .mk-lower-grid > #derivatives { grid-column:1/-1; }
.pg-markets .section { margin-top:1.5rem; }
.pg-markets .breaking-strip { margin-top:1rem; }
.pg-markets .deriv-table th,.pg-markets .deriv-table td,.pg-markets .rsi-table th,.pg-markets .rsi-table td { padding:.42rem .5rem; font-size:.72rem; }
@media(max-width:1180px){.pg-markets{max-width:none}.pg-markets .mk-primary-grid{grid-template-columns:minmax(0,2fr) minmax(235px,.8fr)}.pg-markets .heat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:860px){.pg-markets .page-hero-markets{min-height:250px;grid-template-columns:1fr;background-position:68% center}.pg-markets .hero-stat{display:none}.pg-markets .mk-primary-grid,.pg-markets .mk-lower-grid{grid-template-columns:1fr}.pg-markets .mk-lower-grid>#derivatives{grid-column:auto}.pg-markets .mk-secondary-grid{grid-template-columns:1fr}.pg-markets .heat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.pg-markets .page-hero-markets{min-height:0;padding:1.45rem 1.1rem;background-position:72% center}.pg-markets .page-hero-markets h1{font-size:2.25rem}.pg-markets .heat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ============================================================
   MARKETS PASS 2 — LOWER DASHBOARD DENSITY (03-markets.png)
   ============================================================ */

/* Secondary row: compact 4-column composition (bubbles is a normal cell) */
.pg-markets .mk-secondary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-markets .mk-secondary-grid > :last-child { grid-column: auto; }
.pg-markets .mk-secondary-grid .panel-big-value { font-size: 1.6rem; }
.pg-markets .bubble-wrap { max-height: 190px; }
.pg-markets .bubble-svg { max-width: 100%; min-width: 0; }

/* Lower row: RSI | Derivatives | right rail (scanner + listings + liquidations) */
.pg-markets .mk-lower-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.35fr) minmax(300px, 1fr); align-items: start; }
.pg-markets .mk-lower-grid > #derivatives { grid-column: auto; }
.pg-markets .mk-lower-grid .panel-note { font-size: .62rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .35rem; }   /* methodology kept (truthful sourcing), compacted to two lines */
.pg-markets .mk-lower-grid .panel .intel-source { font-size: .64rem; margin: .3rem 0 0; }
.pg-markets .mk-lower-grid .pulse-note { font-size: .66rem; margin: .25rem 0 0; }
.pg-markets .mk-right-rail { display: grid; gap: .65rem; align-content: start; min-width: 0; }
.pg-markets .mk-right-rail .empty-state { padding: .6rem .7rem; font-size: .7rem; }

/* Derivatives overview: compact tables, one grid */
.pg-markets .deriv-grid { grid-template-columns: 1fr; gap: .5rem; }
.pg-markets .mk-lower-grid .deriv-table th, .pg-markets .mk-lower-grid .deriv-table td { padding: .34rem .45rem; font-size: .68rem; }
.pg-markets .ls-bar { width: 80px; height: 6px; }

/* Liquidations compact mini-panel */
.pg-markets .panel-liquidations .liq-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; margin-bottom: .5rem; }
.pg-markets .panel-liquidations .liq-mini-grid div { padding: .45rem .55rem; border: 1px solid var(--border); border-radius: 8px; background: rgba(12, 22, 31, .8); }
.pg-markets .panel-liquidations .liq-mini-grid small { display: block; color: var(--text-muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; }
.pg-markets .panel-liquidations .liq-mini-grid b { font-size: .88rem; font-variant-numeric: tabular-nums; }
.pg-markets .panel-liquidations .liq-table th, .pg-markets .panel-liquidations .liq-table td { padding: .3rem .45rem; font-size: .66rem; }
.pg-markets .panel-note-tight { font-size: .62rem !important; line-height: 1.4; margin-top: .4rem; }

/* Vertical rhythm: Breaking follows the dashboard closely; no Explore block */
.pg-markets .section { margin-top: 1rem; }
.pg-markets .breaking-strip { margin-top: .9rem; }
@media (max-width: 1180px) {
    .pg-markets .mk-secondary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-markets .mk-lower-grid { grid-template-columns: 1fr 1fr; }
    .pg-markets .mk-right-rail { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .pg-markets .mk-lower-grid { grid-template-columns: 1fr; }
    .pg-markets .mk-right-rail { grid-template-columns: 1fr; }
}

/* ============================================================
   MARKETS PASS 3 — EXACT REFERENCE GEOMETRY (03-markets.png)
   ============================================================ */

/* 1. Width: full wide dashboard like the reference */
.pg-markets { max-width: none; }
/* (pg-markets desktop .wrap override removed — shared canonical shell) */

/* 3. Main row: heatmap left, 2x2 right grid; equal total height */
.pg-markets .mk-primary-grid {
    grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
    gap: .65rem; align-items: stretch;
}
.pg-markets .mk-primary-grid > #spot-heatmap { display: flex; flex-direction: column; overflow: hidden; }
.pg-markets .mk-primary-grid .heat-grid { flex: 1; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(52px, 1fr); }
.pg-markets .heat-tile { min-height: 52px; padding: .4rem .5rem; }
.pg-markets .heat-tile strong { font-size: .74rem; }
.pg-markets .heat-tile .heat-price { font-size: .62rem; }
.pg-markets .heat-tile .heat-change { font-size: .6rem; }
.pg-markets .mk-side-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .65rem; min-width: 0;
}
.pg-markets .mk-side-grid .panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.pg-markets .mk-side-grid .panel-head { margin-bottom: .3rem; }
.pg-markets .mk-side-grid .movers-list li { padding: .3rem .3rem; font-size: .7rem; }
.pg-markets .mk-side-grid .rail-empty { font-size: .72rem; line-height: 1.45; }
.pg-markets .mk-promo { color: var(--text); text-decoration: none; background:
    radial-gradient(circle at 85% 15%, rgba(240, 138, 36, .18), transparent 45%),
    linear-gradient(150deg, #101c2b, #0a0f16 75%); }
.pg-markets .mk-promo h2 { margin: 0 0 .3rem; font-size: .98rem; }
.pg-markets .mk-promo p { margin: 0 0 .6rem; font-size: .72rem; color: var(--text-muted); }
.pg-markets .mk-promo .button { display: inline-block; margin-top: auto; padding: .4rem .85rem; font-size: .74rem; align-self: flex-start; }

/* 4. Secondary row: four equal-height cards */
.pg-markets .mk-secondary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.pg-markets .mk-secondary-grid > :last-child { grid-column: auto; }
.pg-markets .mk-secondary-grid .panel { display: flex; flex-direction: column; }
.pg-markets .mk-secondary-grid .panel-big-value { font-size: 1.45rem; }
.pg-markets .mk-secondary-grid .panel-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .64rem; }
.pg-markets .mk-secondary-grid .bubble-wrap { max-height: 120px; flex: 1; }
.pg-markets .mk-secondary-grid .bubble-svg { width: 100%; max-width: none; min-width: 0; }

/* 5-7. Third row: RSI 35% | Derivatives Overview 31% | right rail 34%
   One shared desktop lower-row height; all three columns same total height */
.pg-markets .mk-lower-grid {
    grid-template-columns: minmax(0, 35fr) minmax(0, 31fr) minmax(0, 34fr);
    align-items: stretch;
    height: 400px;
}
.pg-markets .mk-lower-grid .panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.pg-markets .mk-lower-grid .panel-head { flex: none; margin-bottom: .3rem; }
.pg-markets .mk-lower-grid .rsi-table th, .pg-markets .mk-lower-grid .rsi-table td { padding: .28rem .4rem; font-size: .66rem; }
.pg-markets .mk-lower-grid .rsi-cell small { display: none; }
.pg-markets .mk-lower-grid #rsi .table-wrap { flex: 1; min-height: 0; overflow: auto; }
.pg-markets .mk-lower-grid #rsi .panel-note { flex: none; margin-top: auto; margin-bottom: 0; }
.pg-markets .mk-lower-grid .rsi-view-link { flex: none; margin: .3rem 0 .25rem; }
.pg-markets .rsi-period { font-size: .62em; color: var(--text-muted); font-weight: 600; }
.pg-markets .rsi-tf-controls { display: inline-flex; gap: .25rem; }
.pg-markets .rsi-tf { padding: .14rem .5rem; font-size: .62rem; font-weight: 700; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); letter-spacing: .03em; }
.pg-markets .rsi-tf.is-active { background: rgba(240, 138, 36, .16); border-color: #f08a24; color: #f08a24; }
.pg-markets .rsi-signal { font-weight: 700; font-size: .62rem; }
.pg-markets .sig-oversold { color: #37d67a; }
.pg-markets .sig-overbought { color: #ff5c5c; }
.pg-markets .sig-neutral { color: var(--text-muted); }

/* Right rail: Volatility + gap + New Listings == shared row height, ~50/50 */
.pg-markets .mk-right-rail { display: grid; gap: .65rem; align-content: stretch; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); min-width: 0; }
.pg-markets .mk-right-rail .panel { min-height: 0; overflow: hidden; }
.pg-markets .mk-right-rail #volatility .table-wrap { flex: 1; min-height: 0; overflow: auto; }

/* 6. Derivatives Overview: 2x2 equal cards fill the whole panel body */
.pg-markets .deriv-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .55rem; flex: 1; min-height: 0; }
.pg-markets .deriv-cell { display: flex; flex-direction: column; justify-content: center; gap: .18rem; padding: .5rem .65rem; border: 1px solid var(--border); border-radius: 9px; background: rgba(12, 22, 31, .8); min-height: 0; overflow: hidden; }
.pg-markets .deriv-cell small { color: var(--text-muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; }
.pg-markets .deriv-cell b { font-size: 1.08rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.15; }
.pg-markets .deriv-cell em { font-style: normal; color: var(--text-dim); font-size: .62rem; }
.pg-markets .deriv-cell .ls-bar { width: 100%; max-width: 130px; margin-top: .2rem; }
.pg-markets .deriv-cell .fund-negative, .pg-markets .deriv-cell .fund-positive { font-style: normal; }

@media (max-width: 1180px) {
    body.pg-markets main.wrap { width: calc(100% - 2rem); }
    .pg-markets .mk-side-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
    .pg-markets .mk-secondary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-markets .mk-lower-grid { grid-template-columns: 1fr 1fr; height: auto; }
    .pg-markets .mk-right-rail { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-markets .mk-lower-grid .panel { overflow: visible; min-height: auto; }
}
@media (max-width: 860px) {
    .pg-markets .mk-primary-grid { grid-template-columns: 1fr; }
    .pg-markets .mk-primary-grid > #spot-heatmap { max-height: 460px; }
    .pg-markets .mk-side-grid, .pg-markets .mk-secondary-grid, .pg-markets .mk-lower-grid, .pg-markets .mk-right-rail { grid-template-columns: 1fr; }
    .pg-markets .mk-lower-grid { height: auto; }
    .pg-markets .mk-lower-grid .panel { overflow: visible; min-height: auto; }
    .pg-markets .mk-right-rail { grid-template-rows: none; }
}

/* Breaking strip acts as separator between secondary row and lower intelligence row */
.pg-markets .breaking-strip { margin: 11px 0; min-height: 44px; }

/* ============================================================
   MARKETS PASS 4 � MICRO-DETAIL / CONTROL FIDELITY (03-markets.png)
   ============================================================ */

/* Segmented header controls (presentational unless data exists) */
.pg-markets .seg-controls { display: inline-flex; gap: .28rem; flex: none; }
.pg-markets .seg { padding: .17rem .55rem; font-size: .62rem; font-weight: 700; letter-spacing: .05em; border-radius: 6px; border: 1px solid #334255; background: rgba(10, 16, 24, .6); color: var(--text-muted); white-space: nowrap; line-height: 1.2; }
.pg-markets .seg.is-active { background: rgba(240, 138, 36, .16); border-color: #f08a24; color: #f08a24; }
.pg-markets .seg[aria-disabled="true"] { opacity: .55; cursor: default; }
.pg-markets .heat-head h2 { margin-right: auto; }
.pg-markets .head-tools { display: inline-flex; align-items: center; gap: .6rem; flex: none; }

/* Top ticker detail: status dot (coin icons handled in the Pass-6 block) */
.market-strip .status-item .pending-dot.live { box-shadow: 0 0 8px rgba(55, 214, 122, .8); }

/* RSI header controls: slightly larger, cyan borders, orange active, centered */
.pg-markets #rsi .rsi-tf-controls { gap: .32rem; }
.pg-markets #rsi .rsi-tf { padding: .2rem .62rem; font-size: .68rem; border-radius: 6px; border-color: #334255; background: rgba(10, 16, 24, .6); }
.pg-markets #rsi .rsi-tf.is-active { background: rgba(240, 138, 36, .2); border-color: #f08a24; color: #f08a24; }

/* RSI table: reference-style heat treatment (existing values/thresholds only) */
.pg-markets #rsi .rsi-cell { border-radius: 6px; }
.pg-markets #rsi .rsi-cell.rsi-overbought { background: rgba(255, 92, 92, .13); }
.pg-markets #rsi .rsi-cell.rsi-oversold { background: rgba(55, 214, 122, .13); }
.pg-markets #rsi .rsi-cell.rsi-neutral { background: rgba(255, 255, 255, .03); }
.pg-markets #rsi .rsi-table th { color: #8fa6bd; }

/* Volatility scanner table detail (no size change) */
.pg-markets #volatility .deriv-table th { font-size: .6rem; letter-spacing: .08em; color: #8fa6bd; }
.pg-markets #volatility .scan-mini td.mover-rank { width: 1.5rem; }
.pg-markets #volatility .scan-mini .scan-vol { text-align: right; }

@media (max-width: 1180px) {
    .pg-markets .heat-head { flex-wrap: wrap; }
}

/* ============================================================
   MARKETS PASS 5 � TOP MARKET TICKER (Markets-only override)
   ============================================================ */

/* Same centered content width as the Markets dashboard/hero */
.market-strip.shell-ticker {
    width: min(1880px, 96vw);
    margin: 10px auto 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, .95fr)) minmax(205px, 1.35fr) minmax(230px, 1.45fr);
    align-items: center;
    min-height: 64px;
    padding: .35rem .4rem;
    border: 1px solid rgba(88, 148, 186, .5);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(13, 22, 32, .97), rgba(7, 12, 18, .97));
    box-shadow: inset 0 0 26px rgba(46, 100, 140, .09);
    overflow: visible;
}

/* Coin blocks: icon + symbol, stacked price / change — one compact group */
.market-strip .market-item {
    border-left: 0;
    min-width: 0;
    justify-content: flex-start;
    gap: .68rem;
    padding: .25rem 1.05rem;
    position: relative;
    height: 100%;
}
.market-strip .market-item + .market-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: rgba(85, 145, 180, .45);
}
.market-strip .ticker-symbol::before,
.market-strip .ticker-logo-fallback::before { content: none; }

/* ============================================================
   MARKETS PASS 6 — COIN ITEM STRUCTURE (one icon, symbol over quote)
   ============================================================ */

/* Icon slot: real CoinGecko image, fallback badge ONLY on failure */
.market-strip .ticker-coin-logo { display: none; }
.market-strip .ticker-logo-fallback { display: none; }
.market-strip .ticker-icon {
    position: relative;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.market-strip .ticker-icon .ticker-coin-logo {
    display: block;
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(240, 138, 36, .18));
}
.market-strip .ticker-icon:not(.has-logo) .ticker-logo-fallback,
.market-strip .ticker-icon.img-failed .ticker-logo-fallback {
    display: inline-block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.market-strip .ticker-icon.img-failed .ticker-coin-logo { display: none; }
.market-strip .market-item[data-sym="BTC"] .ticker-logo-fallback { background: #f7931a; }
.market-strip .market-item[data-sym="ETH"] .ticker-logo-fallback { background: #627eea; }
.market-strip .market-item[data-sym="BNB"] .ticker-logo-fallback { background: #f3ba2f; }
.market-strip .market-item[data-sym="SOL"] .ticker-logo-fallback { background: linear-gradient(135deg, #9945ff, #14f195); }

/* Text block: symbol first line, price + change share the second line */
.market-strip .ticker-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 0;
    gap: .02rem;
}
.market-strip .ticker-symbol {
    font-style: normal;
    font-size: .9rem;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
}
.market-strip .ticker-quote {
    display: flex;
    align-items: center;
    gap: .55rem;
    white-space: nowrap;
}
.market-strip .ticker-quote .market-price { font-size: .85rem; font-weight: 700; }
.market-strip .ticker-quote .market-change {
    font-size: .76rem;
    font-weight: 700;
    background: none;
    border: 0;
    padding: 0;
    border-radius: 0;
}

/* Fear & Greed: true 180-degree SVG semicircle gauge (Markets only) */
.market-strip .fg-gauge { display: none; }
.market-strip .fg-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .1rem .4rem;
    text-align: left;
    position: relative;
}
.market-strip .fg-gauge {
    display: block;
    width: 112px;
    height: 60px;
    flex: 0 0 112px;
    overflow: visible;
}
.market-strip .fg-gauge .fg-gauge-value {
    font-size: 20px;
    font-weight: 800;
    fill: var(--text);
    font-variant-numeric: tabular-nums;
}
.market-strip .fg-caption {
    display: flex;
    flex-direction: column;
    gap: .12rem;
    line-height: 1.2;
}
.market-strip .fg-caption i {
    order: 0;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--text);
    text-transform: none;
    white-space: nowrap;
}
.market-strip .fg-class {
    font-style: normal;
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.market-strip .fg-fear { color: #ff5c5c; }
.market-strip .fg-mid { color: #f5d33c; }
.market-strip .fg-greed { color: #37d67a; }

/* Market Status: far-right two-line block */
.market-strip .status-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .22rem;
    margin-left: 0;
    padding: .25rem 1.05rem;
    font-size: .82rem;
    height: 100%;
}
.market-strip .status-item .status-line { display: inline-flex; align-items: center; gap: .45rem; }
.market-strip .status-item .status-line:first-child { font-weight: 650; color: var(--text); }
.market-strip .status-item time { color: var(--text-secondary); font-size: .72rem; }
.market-strip .status-item .pending-dot { width: 8px; height: 8px; }
.market-strip .status-item .pending-dot.live { box-shadow: 0 0 9px rgba(55, 214, 122, .85); }

/* Responsive: tablet/mobile reverts to the shared wrapping/scrolling strip */
@media (max-width: 1180px) {
    .market-strip.shell-ticker {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
        min-height: 54px;
    }
    .market-strip .market-item { flex: none; height: auto; }
    .market-strip .market-item + .market-item { border-left: 1px solid var(--border); }
    .market-strip .market-item + .market-item::before { content: none; }
    .market-strip .fg-item { flex: none; }
    .market-strip .status-item { flex: none; }
}

/* Shared ticker: visually hidden label (Home keeps its "Market Pulse" anchor) */
.ticker-sr-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   TOOLS PASS 1 — REFERENCE-FIDELITY DASHBOARD (scoped .pg-tools)
   ============================================================ */

/* (pg-tools desktop .wrap override removed — shared canonical shell) */

/* Hero: existing production Tools wallpaper, bull kept right-of-center */
.pg-tools .page-hero-tools {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 205px; margin-top: .25rem; padding: 1.9rem 2.2rem;
    grid-template-columns: minmax(0, 1.6fr) minmax(230px, .8fr);
    border: 1px solid #29394a; border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(5, 9, 14, .95) 0%, rgba(5, 9, 14, .84) 38%, rgba(5, 9, 14, .28) 66%, rgba(5, 9, 14, .46) 100%),
        linear-gradient(0deg, rgba(5, 9, 14, .55), transparent 55%),
        url("/static/images/hero-wallpapers/tools-hero.webp.png") 72% center / cover no-repeat;
}
.pg-tools .page-hero-tools h1 { margin-bottom: .5rem; font-size: clamp(2.2rem, 3.6vw, 3.1rem); line-height: 1.03; }
.pg-tools .page-hero-tools h1 span { color: var(--brand-orange); }
.pg-tools .page-hero-tools .lead { max-width: 560px; margin: 0; font-size: .94rem; }
.pg-tools .page-hero-tools .hero-feature-row { gap: 1.1rem; margin-top: .85rem; }
.pg-tools .page-hero-tools .hero-feature-row span { font-size: .76rem; }
.pg-tools .hero-actions-col { align-self: center; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; text-align: right; }
.pg-tools .hero-tagline-sub { margin: 0; max-width: 250px; color: var(--text-secondary); font-size: .76rem; }

/* Calculator dashboard: Profit/ROI left, six supporting calculators 3x2 right */
.pg-tools .calc-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
    gap: .6rem;
    margin-top: .8rem;
    align-items: stretch;
    height: 440px;
}
.pg-tools .tools-featured {
    display: flex; flex-direction: column; min-height: 0; overflow: hidden;
    border-color: rgba(240, 138, 36, .45);
    box-shadow: inset 0 0 0 1px rgba(240, 138, 36, .12), 0 0 24px rgba(240, 138, 36, .08);
}
.pg-tools .tools-featured .calc-form { flex: 1; min-height: 0; gap: .7rem; }
.pg-tools .tools-featured .calc-inline-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.pg-tools .tools-featured .field input, .pg-tools .tools-featured .field select { padding: .45rem .55rem; font-size: .84rem; }
.pg-tools .tools-featured .calc-submit { margin-top: 0; padding: .5rem .9rem; font-size: .82rem; }
.pg-tools .tools-featured .calc-results { flex: none; }
.pg-tools .tools-featured .calc-results h3 { margin: 0 0 .4rem; font-size: .95rem; }
.pg-tools .tools-featured .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.pg-tools .tools-featured .results-grid div { padding: .5rem .6rem; }
.pg-tools .tools-featured .results-grid dd { font-size: .98rem; }
.pg-tools .tools-featured .calc-note { margin-top: .45rem; font-size: .72rem; }
.pg-tools .tools-featured .panel-note { margin-bottom: .5rem; font-size: .72rem; }
.pg-tools .support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: .6rem;
    min-height: 0;
}
.pg-tools .support-grid .tool-hub-card { min-height: 0; padding: .85rem .9rem; }
.pg-tools .support-grid .tool-hub-card h3 { margin: .5rem 0 .3rem; font-size: .95rem; }
.pg-tools .support-grid .tool-hub-card p { font-size: .74rem; }

/* Market Analysis + Live Snapshot: one shared-height row */
.pg-tools .analysis-row {
    display: grid;
    grid-template-columns: minmax(0, 84fr) minmax(200px, 16fr);
    gap: .6rem;
    margin-top: .8rem;
    align-items: stretch;
}
.pg-tools .analysis-panel { display: flex; flex-direction: column; min-height: 0; }
.pg-tools .analysis-panel .section-heading { margin-bottom: .6rem; padding-bottom: .5rem; }
.pg-tools .analysis-row .analysis-tools-grid {
    flex: 1;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .55rem;
    height: 265px;
}
.pg-tools .analysis-row .tool-hub-card { min-height: 0; padding: .8rem .75rem; }
.pg-tools .analysis-row .tool-hub-card h3 { margin: .35rem 0 .25rem; font-size: .85rem; }
.pg-tools .analysis-row .tool-hub-card p { font-size: .68rem; }
.pg-tools .analysis-row .rail-snapshot { display: flex; flex-direction: column; align-self: stretch; min-height: 0; }
.pg-tools .analysis-row .snapshot-list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; overflow: hidden; }

/* Educational Tools + Better Tools CTA: 50/50 shared-height row */
.pg-tools .edu-cta-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
    margin-top: .8rem;
    align-items: stretch;
    height: 290px;
}
.pg-tools .edu-panel, .pg-tools .cta-panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; margin: 0; }
.pg-tools .edu-panel .section-heading { margin-bottom: .55rem; padding-bottom: .45rem; }
.pg-tools .edu-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
    min-height: 0;
}
.pg-tools .edu-grid .tool-hub-card { min-height: 0; padding: .8rem .8rem; }
.pg-tools .edu-grid .tool-hub-card h3 { margin: .35rem 0 .25rem; font-size: .86rem; }
.pg-tools .edu-grid .tool-hub-card p { font-size: .7rem; }
.pg-tools .cta-panel {
    justify-content: center; gap: .55rem; padding: 1.4rem 1.6rem;
    border-color: #29394a; border-radius: 10px;
    background:
        linear-gradient(100deg, rgba(5, 9, 14, .96) 0%, rgba(5, 9, 14, .88) 40%, rgba(5, 9, 14, .55) 78%, rgba(5, 9, 14, .4) 100%),
        url("/static/images/hero-wallpapers/tools-hero.webp.png") 18% center / cover no-repeat;
}
.pg-tools .cta-panel .eyebrow { color: #ff9d3f; letter-spacing: .16em; }
.pg-tools .cta-panel h2 { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1.12; }
.pg-tools .cta-panel h2 span { color: var(--brand-orange); }
.pg-tools .cta-panel .cta-copy { margin: 0; max-width: 420px; color: var(--text-secondary); font-size: .8rem; }
.pg-tools .cta-panel .button { align-self: flex-start; margin-top: auto; padding: .5rem 1rem; font-size: .8rem; }

/* Compact disclaimer, normal footer follow-through */
.pg-tools .integrity-note { margin: .9rem 0 1.4rem; }

/* Responsive */
@media (max-width: 1180px) {
    .pg-tools .calc-dashboard { height: auto; }
    .pg-tools .tools-featured { min-height: 0; }
    .pg-tools .support-grid { grid-template-rows: none; }
    .pg-tools .analysis-row { grid-template-columns: 1fr; }
    .pg-tools .analysis-row .analysis-tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; }
    .pg-tools .analysis-row .rail-snapshot { min-height: 0; }
    .pg-tools .edu-cta-row { grid-template-columns: 1fr; height: auto; }
    .pg-tools .edu-grid { grid-template-rows: none; }
}
@media (max-width: 720px) {
    .pg-tools .page-hero-tools { grid-template-columns: 1fr; }
    .pg-tools .hero-actions-col { justify-self: start; align-items: flex-start; text-align: left; }
    .pg-tools .calc-dashboard, .pg-tools .support-grid, .pg-tools .analysis-row .analysis-tools-grid, .pg-tools .edu-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TOOLS PASS 2 — VISUAL FIDELITY / PROPORTIONS (scoped .pg-tools)
   ============================================================ */

/* Rhythm: ticker -> hero -> sections */
.pg-tools .page-hero-tools { min-height: 200px; margin-top: 1.1rem; padding: 1.8rem 2.2rem; }
.pg-tools .calc-dashboard, .pg-tools .analysis-row, .pg-tools .edu-cta-row { margin-top: .85rem; gap: .625rem; }
.pg-tools .integrity-note { margin: 1rem 0 1.5rem; }

/* Hero: slightly stronger bull/chart contrast, text stays readable */
.pg-tools .page-hero-tools {
    background:
        linear-gradient(90deg, rgba(5, 9, 14, .96) 0%, rgba(5, 9, 14, .86) 34%, rgba(5, 9, 14, .22) 64%, rgba(5, 9, 14, .4) 100%),
        linear-gradient(0deg, rgba(5, 9, 14, .5), transparent 52%),
        url("/static/images/hero-wallpapers/tools-hero.webp.png") 74% center / cover no-repeat;
}

/* Calculator dashboard: exact 440px shared row */
.pg-tools .calc-dashboard { height: 440px; min-height: 440px; max-height: 440px; }

/* Profit/ROI: two internal columns — inputs left, results right, no overlap */
.pg-tools .profit-grid {
    display: grid;
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    gap: .7rem;
    flex: 1;
    min-height: 0;
}
.pg-tools .tools-featured .calc-form { display: flex; flex-direction: column; gap: .7rem; min-height: 0; }
.pg-tools .tools-featured .calc-form .calc-inline-fields { flex: 1; }
.pg-tools .tools-featured .calc-form .calc-submit { margin-top: auto; align-self: stretch; padding: .6rem .9rem; font-weight: 800; }
.pg-tools .tools-featured .calc-results {
    display: flex; flex-direction: column;
    padding: .8rem .9rem;
    border: 1px solid #2b4054; border-radius: 9px;
    background: rgba(8, 14, 21, .65);
    min-height: 0; overflow: hidden;
}
.pg-tools .tools-featured .calc-results h3 { margin: 0 0 .55rem; font-size: .98rem; }
.pg-tools .tools-featured .calc-results .results-grid { flex: 1; grid-template-columns: 1fr; gap: .5rem; align-content: space-between; }
.pg-tools .tools-featured .results-grid div { padding: .55rem .7rem; }
.pg-tools .tools-featured .results-grid dd { font-size: 1.02rem; }
.pg-tools .tools-featured .panel-note { margin-bottom: .6rem; font-size: .74rem; }
.pg-tools .tools-featured .calc-note { margin-top: .5rem; font-size: .72rem; }

/* Supporting calculator cards: badge on its own line, action low, comfortable padding */
.pg-tools .tool-hub-card .state-pill {
    position: static;
    order: -1;
    align-self: flex-start;
    margin-bottom: .1rem;
}
.pg-tools .support-grid { gap: .625rem; }
.pg-tools .support-grid .tool-hub-card { padding: 1rem 1.05rem; }
.pg-tools .support-grid .tool-hub-card h3 { margin: .55rem 0 .35rem; font-size: .98rem; }
.pg-tools .support-grid .tool-hub-card p { font-size: .76rem; flex: 1; }
.pg-tools .support-grid .tool-hub-card b { margin-top: auto; }

/* Market Analysis + Snapshot: taller shared row, badge spacing */
.pg-tools .analysis-row { grid-template-columns: minmax(0, 82fr) minmax(220px, 18fr); }
.pg-tools .analysis-row .analysis-tools-grid { height: 255px; }
.pg-tools .analysis-row .tool-hub-card { padding: .95rem .85rem; }
.pg-tools .analysis-row .tool-hub-card h3 { margin: .5rem 0 .3rem; font-size: .88rem; }
.pg-tools .analysis-row .tool-hub-card p { font-size: .7rem; flex: 1; }
.pg-tools .analysis-row .tool-hub-card b, .pg-tools .analysis-row .tool-hub-card .state-pill:last-child { margin-top: auto; }
.pg-tools .analysis-row .rail-snapshot .rail-ranked li {
    grid-template-columns: 26px minmax(0, 1fr) auto auto;
    gap: .45rem;
}
.pg-tools .snapshot-coin-logo { width: 22px; height: 22px; object-fit: contain; display: block; }
.pg-tools .snapshot-sym { color: var(--text); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.pg-tools .snapshot-list .market-change { background: none; padding: 0; border-radius: 0; font-size: .7rem; font-weight: 700; }

/* Education + CTA: true 50/50, 280px shared height */
.pg-tools .edu-cta-row { grid-template-columns: repeat(2, minmax(0, 1fr)); height: 280px; }
.pg-tools .edu-grid .tool-hub-card { padding: 1rem .95rem; }
.pg-tools .edu-grid .tool-hub-card h3 { margin: .5rem 0 .3rem; font-size: .9rem; }
.pg-tools .edu-grid .tool-hub-card p { font-size: .72rem; flex: 1; }

/* CTA: dark left, wallpaper visible right, larger headline, button low-left */
.pg-tools .cta-panel {
    background:
        linear-gradient(95deg, rgba(5, 9, 14, .97) 0%, rgba(5, 9, 14, .92) 34%, rgba(5, 9, 14, .5) 62%, rgba(5, 9, 14, .18) 100%),
        url("/static/images/hero-wallpapers/tools-hero.webp.png") 80% center / cover no-repeat;
}
.pg-tools .cta-panel h2 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.pg-tools .cta-panel .cta-copy { font-size: .84rem; max-width: 380px; }

/* Responsive */
@media (max-width: 1180px) {
    .pg-tools .calc-dashboard { height: auto; min-height: 0; max-height: none; }
    .pg-tools .profit-grid { grid-template-columns: 1fr; }
    .pg-tools .analysis-row .analysis-tools-grid { height: auto; }
}

/* ============================================================
   TOOLS PASS 3 — ICONS, OUTLINED ACTIONS, SPACING DETAILS
   ============================================================ */

/* Ticker -> hero: only the ticker's own 12px bottom margin remains */
.pg-tools .page-hero-tools { margin-top: 0; }

/* Inline SVG line icons */
.pg-tools .tool-ico {
    width: 42px; height: 42px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    color: #7fd7ef;
    filter: drop-shadow(0 0 7px rgba(96, 190, 235, .28));
}
.pg-tools .tool-ico svg { width: 40px; height: 40px; }
.pg-tools .tools-featured .tool-ico { color: #f0a13a; filter: drop-shadow(0 0 8px rgba(240, 138, 36, .35)); }
.pg-tools .tools-featured .panel-head { gap: .55rem; }
.pg-tools .tools-featured .panel-head h2 { margin-right: auto; }

/* Card head: icon + title on one line */
.pg-tools .tool-head { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.pg-tools .tool-head h3 { margin: 0; font-size: 1rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.pg-tools .analysis-row .tool-head h3, .pg-tools .edu-grid .tool-head h3 { font-size: .9rem; }
.pg-tools .tool-hub-card p { margin-top: .45rem; }

/* Card finish: navy fill + cyan outline + subtle inner highlight */
.pg-tools .tool-hub-card {
    border-color: #2c4157;
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(13, 22, 32, .92), rgba(7, 12, 18, .92));
    box-shadow: inset 0 1px 0 rgba(120, 180, 220, .06);
}

/* Outlined action buttons */
.pg-tools .btn-outline {
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    margin-top: auto; align-self: center;
    width: 80%; height: 40px;
    border: 1px solid rgba(240, 138, 36, .75); border-radius: 6px;
    background: rgba(240, 138, 36, .05);
    color: var(--brand-orange);
    font-size: .86rem; font-weight: 800; letter-spacing: .02em;
    text-decoration: none; white-space: nowrap;
    transition: background .15s ease, border-color .15s ease;
}
.pg-tools a.tool-hub-card:hover .btn-outline, .pg-tools .btn-outline:hover {
    background: rgba(240, 138, 36, .14); border-color: #f08a24;
    box-shadow: 0 0 10px rgba(240, 138, 36, .18);
}
.pg-tools .btn-outline.btn-sm { width: 90%; height: 36px; font-size: .8rem; }
.pg-tools .btn-outline.is-disabled {
    border-color: #3a4c60; color: var(--text-muted);
    background: transparent; box-shadow: none; cursor: default;
}
a.tool-hub-card:hover { transform: none; }

/* Profit / ROI: strong filled Calculate button */
.pg-tools .tools-featured .calc-submit {
    height: 40px; font-weight: 800; letter-spacing: .02em;
}

/* Snapshot: slightly larger real coin logos, no pills (already), tighter rows */
.pg-tools .analysis-row .snapshot-coin-logo { width: 26px; height: 26px; object-fit: contain; }
.pg-tools .analysis-row .rail-ranked li { padding: .45rem 0; }

/* Education: prominent orange Read Guide */
.pg-tools .edu-grid .edu-link {
    margin-top: auto;
    color: var(--brand-orange); font-size: .84rem; font-weight: 800;
}

/* CTA: filled button ~160px wide */
.pg-tools .cta-panel .button { width: 165px; justify-content: center; text-align: center; }

@media (max-width: 1180px) {
    .pg-tools .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .pg-tools .support-grid { grid-template-columns: 1fr; }
    .pg-tools .btn-outline, .pg-tools .btn-outline.btn-sm { width: 100%; }
}

/* ============================================================
   TOOLS PASS 4 — FINAL DENSITY / PROPORTION POLISH
   ============================================================ */

/* Section gaps: 10-12px between dashboard rows */
.pg-tools .calc-dashboard, .pg-tools .analysis-row, .pg-tools .edu-cta-row { margin-top: .7rem; }
.pg-tools .integrity-note { margin: .85rem 0 1.1rem; }

/* Supporting calculator cards: balanced internal density */
.pg-tools .support-grid .tool-hub-card { padding: 1.05rem 1.05rem 1rem; }
.pg-tools .support-grid .tool-hub-card p { margin-top: .6rem; font-size: .78rem; line-height: 1.45; }
.pg-tools .support-grid .btn-outline { width: 81%; height: 39px; }
.pg-tools .tool-hub-card { border-color: #31506b; }

/* Profit/ROI: even vertical distribution + stronger result panel */
.pg-tools .tools-featured .calc-results { border-color: #33506a; background: rgba(8, 14, 21, .78); }
.pg-tools .tools-featured .calc-results .results-grid { align-content: space-evenly; }
.pg-tools .tools-featured .results-grid dt { color: var(--text-muted); font-size: .7rem; }
.pg-tools .tools-featured .results-grid dd { color: var(--text); font-size: 1.05rem; font-weight: 750; }

/* Market Analysis / Snapshot: 80/20, slightly taller shared row */
.pg-tools .analysis-row { grid-template-columns: minmax(0, 80fr) minmax(230px, 20fr); }
.pg-tools .analysis-row .analysis-tools-grid { height: 285px; }
.pg-tools .analysis-row .tool-ico svg { width: 40px; height: 40px; }
.pg-tools .analysis-row .tool-hub-card { padding: 1rem .9rem; }
.pg-tools .analysis-row .tool-hub-card h3 { font-size: .9rem; }
.pg-tools .analysis-row .tool-hub-card p { font-size: .72rem; line-height: 1.45; }
.pg-tools .analysis-row .btn-outline.btn-sm { width: 90%; height: 37px; }

/* Snapshot rows: more substantial */
.pg-tools .analysis-row .rail-ranked li {
    grid-template-columns: 28px minmax(0, 1fr) auto auto;
    padding: .6rem 0;
}
.pg-tools .analysis-row .snapshot-coin-logo { width: 28px; height: 28px; }
.pg-tools .snapshot-sym { font-size: .8rem; }
.pg-tools .snapshot-list .market-price { font-size: .8rem; font-weight: 700; }
.pg-tools .snapshot-list .market-change { font-size: .72rem; font-weight: 700; }

/* Education/CTA: 300px shared height, more substantial cards */
.pg-tools .edu-cta-row { height: 300px; }
.pg-tools .edu-grid .tool-hub-card { padding: 1.1rem 1rem 1rem; }
.pg-tools .edu-grid .tool-head h3 { font-size: .95rem; }
.pg-tools .edu-grid .tool-hub-card p { font-size: .74rem; line-height: 1.5; margin-top: .6rem; }
.pg-tools .edu-grid .btn-outline.btn-sm { height: 36px; }

@media (max-width: 1180px) {
    .pg-tools .analysis-row .analysis-tools-grid { height: auto; }
    .pg-tools .edu-cta-row { height: auto; }
}

/* ============================================================
   NEWS PASS 5 — REFERENCE GEOMETRY (top story / rail / latest)
   ============================================================ */

/* Hero -> dashboard connection */
.pg-news .news-dash-grid {
    grid-template-columns: minmax(0, 45fr) minmax(0, 27fr) minmax(250px, 28fr);
    gap: 11px;
    margin-top: .75rem;
    align-items: stretch;
    height: 620px;
}

/* Top Story: full column height; image ~60% / content ~40% */
.pg-news .lead-story,
.pg-news .lead-story.is-placeholder {
    height: 100%;
    min-height: 0;
    max-height: none;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1.5fr) minmax(0, 1fr);
}
.pg-news .lead-story .thumb,
.pg-news .lead-story.is-placeholder .thumb {
    height: 100%;
    min-height: 0;
    display: block;
}
.pg-news .lead-story .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pg-news .lead-story > div { min-height: 0; overflow: hidden; }
.pg-news .lead-story h2 { font-size: clamp(1.35rem, 1.7vw, 1.7rem); }
.pg-news .lead-story .button { margin-top: auto; align-self: flex-end; height: 44px; display: inline-flex; align-items: center; }

/* Four supporting stories: equal quarters of the same 620px column */
.pg-news .secondary-stack {
    height: 100%;
    min-height: 0;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 11px;
}
.pg-news .story-brief,
.pg-news .story-brief.is-placeholder {
    height: 100%;
    min-height: 0;
    align-items: center;
    overflow: hidden;
}
.pg-news .story-brief-media,
.pg-news .story-brief-media.mini-fallback { height: 100%; max-height: 118px; }

/* Right rail: three panels fill the same 620px */
.pg-news .rail-stack {
    height: 100%;
    min-height: 0;
    grid-template-rows: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, .75fr);
    gap: 11px;
}
.pg-news .rail-stack .rail-panel { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.pg-news .rail-sentiment .sentiment-gauge { width: 150px; height: 96px; margin: .25rem auto .3rem; }
.pg-news .rail-sentiment .gauge-score { font-size: 2.2rem; margin-top: 1.6rem; }
.pg-news .rail-sentiment .gauge-label { font-size: .74rem; }
.pg-news .rail-sentiment .rail-sub-center { margin: 0; font-size: .68rem; }

/* Sentiment history: truthful Now row + unavailable past rows */
.fg-history { margin: .45rem 0 0; display: grid; gap: .2rem; }
.fg-history div {
    display: grid; grid-template-columns: 1fr auto; align-items: center;
    padding: .28rem .1rem; border-bottom: 1px solid var(--border);
}
.fg-history div:last-child { border-bottom: 0; }
.fg-history dt { color: var(--text-muted); font-size: .72rem; }
.fg-history dd { margin: 0; color: var(--text); font-size: .74rem; font-weight: 750; text-align: right; }
.fg-history dd em { font-style: normal; font-size: .66rem; color: var(--text-muted); margin-left: .25rem; }
.fg-history .fg-past { color: var(--text-dim); font-weight: 500; }
.fg-history .fg-good { color: var(--positive); }
.fg-history .fg-mid { color: #eab308; }
.fg-history .fg-bad { color: var(--negative); }

/* Breaking: full-width 46px strip right after the dashboard */
.pg-news .breaking-strip { margin-top: .8rem; min-height: 46px; }

/* Latest News 80% / Most Read 20%, shared edges */
.pg-news .news-bottom-grid {
    grid-template-columns: minmax(0, 80fr) minmax(230px, 20fr);
    gap: 11px;
    margin-top: .8rem;
    align-items: stretch;
}
.pg-news .news-bottom-grid > div { display: flex; flex-direction: column; min-width: 0; }
.pg-news .news-bottom-grid .latest-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    flex: 1;
    grid-auto-rows: 1fr;
}
/* Vertical article cards: image ~55%, content below, 280px */
.pg-news .story-row {
    display: flex; flex-direction: column;
    height: 280px;
    min-height: 0; overflow: hidden;
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--panel-2, #0b121a);
}
.pg-news .story-row-media,
.pg-news .story-row.is-placeholder .story-row-media {
    display: block; width: 100%; height: 55%; min-height: 0; flex: 0 0 55%;
    overflow: hidden; border: 0; border-bottom: 1px solid var(--border); border-radius: 0;
    position: relative;
}
.pg-news .story-row-media img { width: 100%; height: 100%; object-fit: cover; }
.pg-news .story-row-media::after { top: auto; }
.pg-news .story-row-copy { padding: .6rem .7rem 0; }
.pg-news .story-row-copy .eyebrow { margin-bottom: .25rem; }
.pg-news .story-row .story-link { font-size: .84rem; line-height: 1.32; }
.pg-news .story-row > .story-meta { padding: .4rem .7rem .6rem; margin-top: auto; }

/* Most Read fills the same height */
.pg-news .news-bottom-grid .rail-panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.pg-news .news-bottom-grid .rail-ranked { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.pg-news .news-bottom-grid .rail-ranked li { padding: .45rem 0; }
.pg-news .news-bottom-grid .rail-ranked a { font-size: .78rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Categories: 6 equal 205px tiles right after the bottom row */
.pg-news .section { margin-top: 1rem; }
.pg-news .section-heading { margin-bottom: .6rem; }
.pg-news .category-tile-grid { margin-top: 0; gap: 11px; }
.pg-news .category-tile { min-height: 205px; padding: .95rem .9rem; }

/* Most Read row capacity: up to six real rows */
.pg-news .news-bottom-grid .rail-note { margin-top: .35rem; }

/* Responsive */
@media (max-width: 1180px) {
    .pg-news .news-dash-grid { height: auto; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); }
    .pg-news .lead-story, .pg-news .lead-story.is-placeholder { height: auto; }
    .pg-news .lead-story .thumb, .pg-news .lead-story.is-placeholder .thumb { height: 300px; min-height: 300px; }
    .pg-news .secondary-stack { height: auto; grid-template-rows: none; }
    .pg-news .rail-stack { height: auto; grid-template-rows: none; }
    .pg-news .news-bottom-grid { grid-template-columns: 1fr; }
    .pg-news .story-row { height: auto; }
    .pg-news .story-row-media, .pg-news .story-row.is-placeholder .story-row-media { height: 140px; flex: none; }
}
@media (max-width: 720px) {
    .pg-news .news-dash-grid { grid-template-columns: 1fr; }
    .pg-news .lead-story .thumb, .pg-news .lead-story.is-placeholder .thumb { height: 220px; min-height: 220px; }
    .pg-news .news-bottom-grid .latest-list { grid-template-columns: 1fr; }
    .pg-news .category-tile-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   NEWS PASS 6 — RIGHT-RAIL / TYPOGRAPHY / ICON FIDELITY
   ============================================================ */

/* Typography: stronger News-scoped hierarchy */
.pg-news .section-heading .eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: #ff9d3f; }
.pg-news .section-heading h2 { font-size: 1.28rem; font-weight: 850; letter-spacing: -.01em; }
.pg-news .rail-head .eyebrow { color: var(--text); font-weight: 800; letter-spacing: .1em; }
.pg-news .rail-head .pulse-view-link { font-weight: 750; }

/* Market Sentiment: larger complete semicircle, tighter proportions */
.pg-news .rail-sentiment .sentiment-gauge { width: 168px; height: 98px; margin: .3rem auto .25rem; }
.pg-news .rail-sentiment .sentiment-gauge .gauge-score { font-size: 2.5rem; margin-top: 1.85rem; }
.pg-news .rail-sentiment .sentiment-gauge .gauge-label { font-size: .78rem; }
.pg-news .rail-sentiment .sentiment-gauge .gauge-arc {
    mask-image: radial-gradient(circle at 50% 100%, transparent 66px, #000 67px);
    -webkit-mask-image: radial-gradient(circle at 50% 100%, transparent 66px, #000 67px);
}
.pg-news .fg-history div { padding: .32rem .1rem; }
.pg-news .fg-history dt { font-size: .74rem; }
.pg-news .fg-history dd { font-size: .78rem; }

/* Trending Topics: flame icon + structured 5-row geometry (populated or empty) */
.pg-news .trend-flame { display: inline-flex; margin-right: .4rem; color: var(--brand-orange); }
.pg-news .trend-flame svg { width: 15px; height: 15px; }
.pg-news .trending-list li { padding: .5rem 0; border-bottom: 1px solid var(--border); }
.pg-news .trending-list li:last-child { border-bottom: 0; }
.pg-news .trending-list b { font-size: .88rem; font-weight: 750; }
.pg-news .trending-list .trend-name { color: var(--text-muted); font-size: .82rem; }
.pg-news .trending-list .topic-count { background: none; border: 0; padding: 0; color: var(--text-dim); font-size: .68rem; font-weight: 600; }

/* Never Miss: icon + two-line title + filled near-full-width CTA */
.pg-news .rail-cta { justify-content: flex-start; gap: .3rem; }
.pg-news .cta-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; flex: none;
    border: 1px solid rgba(240, 138, 36, .45); border-radius: 9px;
    background: rgba(240, 138, 36, .12); color: var(--brand-orange);
}
.pg-news .cta-ico svg { width: 20px; height: 20px; }
.pg-news .rail-cta-title {
    margin: 0; color: var(--text); font-weight: 850; font-size: .92rem;
    line-height: 1.25; text-transform: uppercase; letter-spacing: .08em;
}
.pg-news .rail-cta-title span { display: block; color: #ff9d3f; }
.pg-news .rail-cta .rail-sub { font-size: .76rem; line-height: 1.45; }
.pg-news .rail-cta .button {
    width: 100%; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .84rem; margin-top: auto;
}
.pg-news .rail-cta small { margin-top: .3rem; font-size: .64rem; }

/* Supporting story cards: denser reference styling */
.pg-news .story-brief { border-radius: 9px; border-color: #29394a; }
.pg-news .story-brief .story-link { font-weight: 750; line-height: 1.3; }
.pg-news .story-brief .eyebrow {
    display: inline-block; padding: .1rem .5rem; border-radius: 999px;
    background: rgba(24, 42, 66, .8); border: 1px solid rgba(110, 160, 210, .3);
    color: #bcd2e4; font-size: .6rem; letter-spacing: .1em;
}
.pg-news .story-brief .story-meta { color: var(--text-muted); display: flex; align-items: center; gap: .4rem; }

/* Top Story: overlay label on image + stronger hierarchy */
.pg-news .lead-story .thumb { position: relative; }
.pg-news .lead-story .thumb::after {
    content: "TOP STORY"; position: absolute; left: 1.1rem; top: 1rem; z-index: 1;
    padding: .28rem .75rem; border-radius: 999px;
    background: rgba(8, 13, 20, .7); border: 1px solid rgba(240, 138, 36, .4);
    color: #ffb15e; font-size: .66rem; font-weight: 850; letter-spacing: .2em;
}
.pg-news .lead-story .eyebrow { color: #ff9d3f; font-weight: 800; letter-spacing: .14em; font-size: .7rem; }
.pg-news .lead-story .button {
    border: 1px solid rgba(240, 138, 36, .75); background: rgba(240, 138, 36, .06);
    color: var(--brand-orange); font-weight: 800;
}
.pg-news .lead-story .button:hover { background: rgba(240, 138, 36, .16); }

/* Breaking: lightning accent on News only (Markets keeps its approved diamond) */
.pg-news .breaking-strip > strong::before { content: "\26A1"; font-size: 1rem; text-shadow: 0 0 12px rgba(240, 138, 36, .8); }
.pg-news .breaking-strip { min-height: 45px; }

/* Latest cards: 290px, image 54% */
.pg-news .story-row { height: 290px; border-color: #29394a; border-radius: 9px; }
.pg-news .story-row-media, .pg-news .story-row.is-placeholder .story-row-media { flex: 0 0 54%; height: 54%; }
.pg-news .story-row-copy .eyebrow {
    display: inline-block; padding: .08rem .45rem; border-radius: 999px;
    background: rgba(24, 42, 66, .8); border: 1px solid rgba(110, 160, 210, .3);
    color: #bcd2e4; font-size: .58rem; letter-spacing: .1em;
}
.pg-news .story-row .story-link { font-weight: 750; }

/* Most Read: circular ranks, consistent six-row geometry */
.pg-news .news-bottom-grid .rail-rank {
    display: inline-grid; place-items: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(24, 42, 66, .85); border: 1px solid rgba(240, 138, 36, .4);
    color: #ffb15e; font-size: .68rem; font-weight: 800;
}
.pg-news .mostread-empty .skeleton-line {
    display: block; height: 10px; border-radius: 999px; margin: 0 .2rem;
    background: linear-gradient(90deg, rgba(70, 100, 130, .35), rgba(70, 100, 130, .12));
}
.pg-news .mostread-empty li { padding: .62rem 0; border-bottom: 1px solid var(--border); }
.pg-news .mostread-empty li:last-child { border-bottom: 0; }

/* Category tiles: SVG icons in bordered glow containers */
.pg-news .tile-icon {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px; margin-bottom: .4rem;
    border: 1px solid rgba(110, 160, 210, .35); border-radius: 9px;
    background: rgba(24, 42, 66, .55); color: #7fd7ef;
    box-shadow: inset 0 0 10px rgba(96, 190, 235, .08);
}
.pg-news .tile-icon svg { width: 24px; height: 24px; }
.pg-news .category-tile b { font-size: .95rem; font-weight: 800; }
.pg-news .category-tile span { font-size: .72rem; line-height: 1.45; }
.pg-news .category-tile { min-height: 200px; border-radius: 9px; border-color: #29394a; }

@media (max-width: 1180px) {
    .pg-news .story-row { height: auto; }
    .pg-news .story-row-media, .pg-news .story-row.is-placeholder .story-row-media { height: 150px; flex: none; }
}

/* Never Miss: guarantee full CTA visibility inside the 0.75fr slot */
.pg-news .rail-cta { gap: .2rem; padding: .85rem .95rem; }
.pg-news .rail-cta .cta-ico { width: 32px; height: 32px; }
.pg-news .rail-cta .cta-ico svg { width: 18px; height: 18px; }
.pg-news .rail-cta .rail-sub {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: .72rem; margin: 0 0 .3rem;
}
.pg-news .rail-cta small { font-size: .6rem; margin-top: .25rem; }

/* ============================================================
   NEWS PASS 8 - RIGHT-RAIL CLIPPING FIX (sentiment fits fully)
   ============================================================ */

/* Same 620px rail (620 - 2x11px gaps = 598px shared):
   Sentiment ~305px / Trending ~190px / Never Miss ~103px */
.pg-news .rail-stack { grid-template-rows: minmax(0, 1.62fr) minmax(0, 1fr) minmax(0, .55fr); }

/* Market Sentiment: compact internals, nothing clipped */
.pg-news .rail-sentiment { padding: .75rem .95rem; }
.pg-news .rail-sentiment .rail-head { margin-bottom: .25rem; }
.pg-news .fg-gauge-lg { margin: 0 0 .15rem; }
.pg-news .fg-gauge-lg svg { width: 190px; height: 100px; }
.pg-news .fg-gauge-lg .fg-gauge-score { font-size: 14.5px; }
.pg-news .fg-gauge-class { margin-top: -.15rem; font-size: .68rem; }
.pg-news .rail-sentiment .rail-sub-center { margin: 0 0 .1rem; font-size: .58rem; }
.pg-news .fg-history div { padding: .3rem .05rem; }
.pg-news .fg-history dt { font-size: .66rem; }
.pg-news .fg-history dd { font-size: .7rem; }
.pg-news .fg-history dd em { font-size: .6rem; letter-spacing: .04em; }

/* Trending: compact 25px rows */
.pg-news .rail-stack > :nth-child(2) { padding: .75rem .95rem; }
.pg-news .rail-stack > :nth-child(2) .rail-head { margin-bottom: .1rem; }
.pg-news .trending-list li { padding: .32rem 0; }
.pg-news .trending-list b { font-size: .82rem; }
.pg-news .trending-list .trend-name { font-size: .76rem; }
.pg-news .trending-list .topic-count { font-size: .62rem; }

/* Never Miss: flex column, CTA bottom-locked via margin-top:auto - nothing clips */
.pg-news .rail-cta { padding: .7rem .95rem; gap: .3rem; }
.pg-news .rail-cta .cta-ico { width: 28px; height: 28px; }
.pg-news .rail-cta .cta-ico svg { width: 16px; height: 16px; }
.pg-news .rail-cta .rail-sub {
    -webkit-line-clamp: 2;
    font-size: .7rem; margin: 0 0 .25rem;
}
.pg-news .rail-cta .button { height: 40px; font-size: .82rem; margin-top: auto; flex: none; }
.pg-news .rail-cta small { display: block; font-size: .6rem; margin-top: .3rem; }

@media (max-width: 1180px) {
    .pg-news .rail-stack { grid-template-rows: none; }
    .pg-news .rail-cta small { display: block; }
}

/* ============================================================
   TICKER V2 - NINE INSTRUMENTS, SAME OUTER WIDTH (shared)
   ============================================================ */
.market-strip.shell-ticker {
    grid-template-columns:
        repeat(4, minmax(0, 1fr))
        repeat(3, minmax(0, 1.02fr))
        minmax(150px, 1.15fr)
        minmax(180px, 1.3fr);
    min-height: 72px;
    padding: .3rem .35rem;
}
.market-strip .market-item { padding: .2rem .9rem; gap: .55rem; }
.market-strip .market-item + .market-item::before { height: 42px; }

/* Sparkline: truthful polyline, colored by real period direction */
.market-strip .ticker-spark { display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; }
.market-strip .ticker-spark svg { width: 44px; height: 15px; }
.market-strip .spark-line { fill: none; stroke-width: 1.4; }
.market-strip .spark-up { stroke: var(--positive); }
.market-strip .spark-down { stroke: var(--negative); }
.market-strip .ticker-spark small { color: var(--text-dim); font-size: .56rem; letter-spacing: .06em; }

/* Traditional instruments: gold/index icons in compact round tiles */
.market-strip .market-item.traditional .ticker-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid rgba(110, 160, 210, .35);
    background: rgba(24, 42, 66, .55); color: #c9a54a;
}
.market-strip .market-item.traditional[data-inst="^GSPC"] .ticker-icon,
.market-strip .market-item.traditional[data-inst="^IXIC"] .ticker-icon { color: #7fd7ef; }
.market-strip .market-item.traditional .ticker-icon svg { width: 22px; height: 22px; }
.market-strip .market-item.traditional .ticker-symbol { font-size: .8rem; }
.market-strip .market-item.traditional .quote-nums .market-price { font-size: .78rem; }
.market-strip .market-item.traditional .quote-nums .market-change { font-size: .7rem; }

/* F&G + Status columns unchanged in structure; slightly denser gauge */
.market-strip .fg-gauge { width: 84px; height: 46px; flex: 0 0 84px; }
.market-strip .fg-gauge .fg-gauge-score { font-size: 15px; }

@media (max-width: 1180px) {
    .market-strip.shell-ticker { display: flex; overflow-x: auto; scrollbar-width: none; }
    .market-strip .market-item { flex: none; }
}

.market-strip .fg-gauge .fg-gauge-value { font-size: 15px; }
.market-strip .fg-caption i { font-size: .78rem; }
.market-strip .fg-class { font-size: .68rem; }

/* ============================================================
   TICKER PASS 9 - TRADITIONAL ICONS + NEWS 49/28/23
   ============================================================ */

/* Traditional icons: polished vector marks, no square box wrapper */
.market-strip .market-item.traditional .ticker-icon {
    width: 30px; height: 30px; border: 0; background: transparent;
    box-shadow: none; border-radius: 0;
}
.market-strip .market-item.traditional .ticker-icon svg { width: 29px; height: 29px; }
.market-strip .inst-spx, .market-strip .inst-ndaq { filter: drop-shadow(0 0 6px rgba(160, 200, 240, .25)); }
.market-strip .inst-gold { filter: drop-shadow(0 0 6px rgba(240, 180, 41, .35)); }

/* Weighted columns after sparkline removal */
.market-strip.shell-ticker {
    grid-template-columns:
        repeat(4, minmax(0, 1fr))
        repeat(3, minmax(0, 1.08fr))
        minmax(150px, 1.12fr)
        minmax(180px, 1.25fr);
}
.market-strip .market-item { align-items: center; }

/* NEWS: 49 / 28 / 23, one shared 620px dashboard */
.pg-news .news-dash-grid {
    grid-template-columns: minmax(0, 49fr) minmax(280px, 28fr) minmax(255px, 23fr);
}
.pg-news .rail-stack { grid-template-rows: minmax(0, 1.04fr) minmax(0, .96fr) minmax(0, .5fr); }

/* Sentiment: bright value, centered classification, complete fit */
.pg-news .fg-gauge-lg svg { width: 182px; height: 96px; }
.pg-news .fg-gauge-lg .fg-gauge-score { font-size: 16px; font-weight: 900; fill: #ffffff; }
.pg-news .fg-gauge-class { font-size: .66rem; }
.pg-news .rail-sentiment { padding: .65rem .9rem; }
.pg-news .fg-history div { padding: .26rem .05rem; }

/* Trending: five complete rows */
.pg-news .trending-list li { padding: .3rem 0; }

@media (max-width: 1180px) {
    .pg-news .rail-stack { grid-template-rows: none; }
}

/* ============================================================
   CALENDAR PASS 1 - REFERENCE-FIDELITY DESKTOP REBUILD (.pg-calendar)
   ============================================================ */

/* (pg-calendar desktop .wrap override removed — shared canonical shell) */

/* Hero: existing production wallpaper, full content width */
.pg-calendar .page-hero-calendar {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 270px; margin-top: 1rem; padding: 2rem 2.4rem;
    grid-template-columns: minmax(0, 1fr) minmax(240px, .62fr);
    border: 1px solid #29394a; border-radius: 13px;
    background:
        linear-gradient(90deg, rgba(5, 9, 14, .95) 0%, rgba(5, 9, 14, .86) 36%, rgba(5, 9, 14, .3) 68%, rgba(5, 9, 14, .42) 100%),
        url("/static/images/hero-wallpapers/calendar-hero.webp.png") center / cover no-repeat;
}
.pg-calendar .page-hero-calendar h1 { margin: .3rem 0 .5rem; font-size: clamp(2.7rem, 4vw, 3.9rem); font-weight: 900; line-height: 1.02; letter-spacing: -.03em; }
.pg-calendar .page-hero-calendar h1 span { color: #f5a342; }
.pg-calendar .page-hero-calendar .lead { max-width: 560px; margin: 0 0 .9rem; font-size: .98rem; }
.pg-calendar .hero-actions-col { align-self: center; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; text-align: right; }
.pg-calendar .hero-tagline { color: #f5a342; font-weight: 900; letter-spacing: .16em; font-size: .95rem; line-height: 1.8; }
.pg-calendar .cal-hero-benefits { justify-content: flex-end; gap: .9rem; }
.pg-calendar .cal-hero-benefits span { font-size: .72rem; }

/* Five summary cards: equal 112px row */
.pg-calendar .cal-summary {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px; margin-top: 12px;
    height: 112px;
}
.pg-calendar .cal-stat { display: flex; align-items: center; padding: .8rem 1rem; margin: 0; min-height: 0; overflow: hidden; }
.pg-calendar .cal-stat-top { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.pg-calendar .cal-ico {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid rgba(110, 160, 210, .35); background: rgba(24, 42, 66, .55);
    color: #7fd7ef; box-shadow: inset 0 0 10px rgba(96, 190, 235, .08);
}
.pg-calendar .cal-ico svg { width: 24px; height: 24px; }
.pg-calendar .cal-stat h3 { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .02em; color: var(--text); }
.pg-calendar .cal-stat-value { margin: .1rem 0 0; font-size: 1.55rem; font-weight: 850; color: #f5a342; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pg-calendar .cal-stat small { display: block; margin-top: .1rem; color: var(--text-muted); font-size: .66rem; }

/* Main dashboard: 70/30, height sized to right rail (Focus + Week + Telegram + gaps) */
.pg-calendar .cal-dash {
    display: grid; grid-template-columns: minmax(0, 70fr) minmax(300px, 30fr);
    gap: 12px; margin-top: 12px; align-items: stretch;
    height: 558px;
}
.pg-calendar .cal-upcoming { display: flex; flex-direction: column; min-height: 0; overflow: hidden; margin: 0; }
.pg-calendar .cal-upcoming .panel-head { flex: none; margin-bottom: .35rem; }
.pg-calendar .cal-table-zone { flex: 1; min-height: 0; overflow: auto; }
.pg-calendar .cal-table-zone .section { margin: .2rem 0 .7rem; }
.pg-calendar .cal-empty { margin: 0; }
.pg-calendar .cal-empty-rows {
    flex: 1; min-height: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: .35rem; padding: 1rem;
}
.pg-calendar .cal-empty-rows h2 { margin: 0; font-size: 1.05rem; color: var(--text); }
.pg-calendar .cal-empty-rows p { margin: 0; color: var(--text-muted); font-size: .82rem; max-width: 460px; }
.pg-calendar .cal-skeleton-rows { display: grid; gap: .45rem; width: min(520px, 80%); margin-top: .7rem; }
.pg-calendar .cal-skeleton-line {
    display: block; height: 10px; border-radius: 999px;
    background: linear-gradient(90deg, rgba(70, 100, 130, .3), rgba(70, 100, 130, .1));
}
.pg-calendar .cal-source { margin: .4rem 0 0; flex: none; }

/* Right rail: Focus takes leftover, lower rail is content-sized (Week 230px / Telegram 105px) */
.pg-calendar .cal-rail { display: grid; grid-template-rows: minmax(150px, 1fr) auto; gap: 10px; min-width: 0; min-height: 0; }
.pg-calendar .cal-rail-lower { display: grid; grid-template-rows: 230px 105px; gap: 10px; min-width: 0; min-height: 0; }
.pg-calendar .cal-rail .rail-panel { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.pg-calendar .cal-focus { padding: .75rem 1rem; }
.pg-calendar .cal-focus-event { display: flex; flex-direction: column; gap: .3rem; min-height: 0; }
.pg-calendar .cal-focus-when { color: var(--text-muted); font-size: .7rem; }
.pg-calendar .cal-focus-name { color: var(--text); font-size: .98rem; font-weight: 800; line-height: 1.3; }
.pg-calendar .cal-focus-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin: .45rem 0 0; }
.pg-calendar .cal-focus-nums div { padding: .4rem .5rem; border: 1px solid #2b4054; border-radius: 8px; background: rgba(10, 16, 24, .7); }
.pg-calendar .cal-focus-nums dt { color: var(--text-muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; }
.pg-calendar .cal-focus-nums dd { margin: .1rem 0 0; color: var(--text); font-size: .82rem; font-weight: 750; }
.pg-calendar .cal-focus-empty { display: flex; flex-direction: column; gap: .2rem; justify-content: flex-start; flex: 1; min-height: 0; }
.pg-calendar .cal-glance { padding: .7rem 1rem; }
.pg-calendar .cal-glance .rail-ranked { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; min-height: 0; overflow: hidden; }
.pg-calendar .cal-glance .rail-ranked li { flex: none; height: 34px; min-height: 0; display: flex; align-items: center; gap: .6rem; padding: 0; border-bottom: 1px solid var(--border); }
.pg-calendar .cal-glance .rail-ranked li:last-child { border-bottom: 0; }
.pg-calendar .cal-glance .rail-ranked .rail-rank { color: #7fd7ef; width: 2.6rem; flex: none; }
.pg-calendar .cal-glance .rail-ranked small { font-size: .64rem; margin-left: auto; text-align: right; }

/* Lower row: 40 / 33 / 27, equal 200px */
.pg-calendar .cal-lower {
    display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 33fr) minmax(280px, 27fr);
    gap: 12px; margin-top: 12px;
    height: 200px;
}
.pg-calendar .cal-lower .panel { margin: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.pg-calendar .cal-guide-grid {
    flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px; min-height: 0;
}
.pg-calendar .cal-guide-card {
    display: flex; flex-direction: column; gap: .2rem;
    padding: .7rem .7rem; border: 1px solid #2b4054; border-radius: 9px;
    background: rgba(10, 16, 24, .7); min-height: 0; overflow: hidden;
}
.pg-calendar .cal-guide-card .cal-ico { width: 30px; height: 30px; border-radius: 8px; }
.pg-calendar .cal-guide-card .cal-ico svg { width: 18px; height: 18px; }
.pg-calendar .cal-guide-card b { color: var(--text); font-size: .78rem; }
.pg-calendar .cal-guide-card p { margin: 0; color: var(--text-muted); font-size: .64rem; line-height: 1.35; }
.pg-calendar .impact-high .cal-ico { color: #ff5c5c; border-color: rgba(255, 92, 92, .4); }
.pg-calendar .impact-medium .cal-ico { color: #f0a13a; border-color: rgba(240, 161, 58, .4); }
.pg-calendar .impact-low .cal-ico { color: #f5d33c; border-color: rgba(245, 211, 60, .35); }

.pg-calendar .cal-cat-grid { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-height: 0; }
.pg-calendar .cal-cat {
    display: flex; align-items: center; gap: .5rem;
    padding: .45rem .6rem; border: 1px solid #2b4054; border-radius: 9px;
    background: rgba(10, 16, 24, .7); min-height: 0; overflow: hidden;
}
.pg-calendar .cal-cat .cal-ico { width: 28px; height: 28px; border-radius: 7px; }
.pg-calendar .cal-cat .cal-ico svg { width: 17px; height: 17px; }
.pg-calendar .cal-cat b { color: var(--text); font-size: .74rem; }

.pg-calendar .cal-cta {
    justify-content: center; gap: .4rem; padding: 1rem 1.2rem;
    border-color: rgba(240, 138, 36, .4); border-radius: 11px;
    background: radial-gradient(circle at 88% 12%, rgba(240, 138, 36, .16), transparent 45%),
        linear-gradient(150deg, #101c2b, #0a0f16 78%);
}
.pg-calendar .cal-cta .eyebrow { color: #ff9d3f; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.35; }
.pg-calendar .cal-cta-copy { margin: 0; color: var(--text-secondary); font-size: .74rem; line-height: 1.4; }
.pg-calendar .cal-cta .button { align-self: flex-start; margin-top: auto; padding: .5rem .95rem; font-size: .8rem; }

@media (max-width: 1180px) {
    .pg-calendar .cal-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; }
    .pg-calendar .cal-stat { min-height: 100px; }
    .pg-calendar .cal-dash { grid-template-columns: 1fr; height: auto; }
    .pg-calendar .cal-upcoming { min-height: 380px; }
    .pg-calendar .cal-rail { grid-template-rows: none; }
    .pg-calendar .cal-rail-lower { grid-template-rows: none; }
    .pg-calendar .cal-lower { grid-template-columns: 1fr 1fr; height: auto; }
}
@media (max-width: 720px) {
    .pg-calendar .page-hero-calendar { grid-template-columns: 1fr; }
    .pg-calendar .hero-actions-col { justify-self: start; align-items: flex-start; text-align: left; }
    .pg-calendar .cal-summary, .pg-calendar .cal-lower { grid-template-columns: 1fr; }
    .pg-calendar .cal-cat-grid { grid-template-columns: 1fr; }
    .pg-calendar .cal-guide-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   NEWS PASS 9 - SENTIMENT HORIZONTAL LAYOUT + RAIL REBALANCE
   ============================================================ */

/* Rail: Sentiment ~197 / Trending ~233 / Never Miss ~168 (620 total, 2x11 gaps) */
.pg-news .rail-stack { grid-template-rows: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, .85fr); }

/* Sentiment: horizontal gauge | history */
.pg-news .fg-split {
    flex: 1; min-height: 0;
    display: grid;
    grid-template-columns: minmax(125px, 43fr) minmax(0, 57fr);
    gap: 12px;
    align-items: center;
}
.pg-news .fg-gauge-col { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.pg-news .fg-gauge-lg { margin: 0; }
.pg-news .fg-gauge-lg svg { width: 150px; height: 82px; }
.pg-news .fg-gauge-lg .fg-gauge-score { font-size: 12px; font-weight: 900; fill: #ffffff; }
.pg-news .fg-gauge-class { font-size: .62rem; margin-top: -.1rem; }
.pg-news .fg-attribution { margin: .15rem 0 0; font-size: .54rem; white-space: nowrap; text-align: center; }

/* History: 4 comfortable rows, aligned score/classification columns */
.pg-news .fg-history { margin: 0; }
.pg-news .fg-history div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(36px, auto);
    column-gap: 6px;
    align-items: center;
    padding: .5rem .05rem;
    border-bottom: 1px solid var(--border);
}
.pg-news .fg-history div:last-child { border-bottom: 0; }
.pg-news .fg-history dt { font-size: .66rem; font-weight: 600; }
.pg-news .fg-history dd { font-size: .68rem; font-weight: 850; }
.pg-news .fg-history dd em { font-size: .62rem; font-weight: 750; }

/* Trending: use the saved height, five full ~41px rows */
.pg-news .trending-list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; }
.pg-news .trending-list li { padding: .62rem 0; border-bottom: 1px solid var(--border); }
.pg-news .trending-list li:last-child { border-bottom: 0; }

/* Top Story: single image badge - remove the NEWSROOM placeholder pill */
.pg-news .lead-story.is-placeholder .thumb .placeholder-tag { display: none; }

@media (max-width: 720px) {
    .pg-news .fg-split { grid-template-columns: 1fr; }
}

/* ============================================================
   CALENDAR PASS 2 - DENSITY / TYPOGRAPHY / EMPTY-STATE FIDELITY
   ============================================================ */

/* Hero: intentional vertical centering, slight height refinement */
.pg-calendar .page-hero-calendar { min-height: 278px; align-items: center; }
.pg-calendar .page-hero-calendar > div:first-child { display: flex; flex-direction: column; justify-content: center; }
.pg-calendar .page-hero-calendar { grid-template-columns: minmax(0, 1fr) minmax(230px, .6fr); padding: 1.8rem 2.4rem; }
.pg-calendar .page-hero-calendar .eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: #ff9d3f; }
.pg-calendar .page-hero-calendar h1 { font-size: clamp(2.6rem, 3.4vw, 3.4rem); margin: .25rem 0 .45rem; }
.pg-calendar .page-hero-calendar .lead { font-size: .95rem; }
.pg-calendar .hero-chip-row .filter-chip { padding: .5rem 1rem; font-size: .74rem; }
.pg-calendar .hero-actions-col { gap: .8rem; padding-right: .6rem; }

/* Summary cards: 122px, larger icons, real statistic position */
.pg-calendar .cal-summary { height: 122px; margin-top: 12px; }
.pg-calendar .cal-stat { padding: .9rem 1.05rem; }
.pg-calendar .cal-stat .cal-ico { width: 44px; height: 44px; border-radius: 11px; }
.pg-calendar .cal-stat .cal-ico svg { width: 25px; height: 25px; }
.pg-calendar .cal-stat h3 { font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.pg-calendar .cal-stat-value { font-size: 1.7rem; font-weight: 900; color: var(--text); }
.pg-calendar .cal-stat-value:empty { display: none; }
.pg-calendar .cal-stat small { font-size: .68rem; }

/* Upcoming header controls: segmented compact filters */
.pg-calendar .cal-upcoming .panel-filters { gap: 7px; }
.pg-calendar .cal-upcoming .panel-filters .filter-chip {
    padding: .44rem .85rem; min-height: 33px;
    border-radius: 7px; border: 1px solid rgba(110, 160, 210, .3);
    background: rgba(10, 16, 24, .7); color: var(--text-secondary); font-size: .72rem;
}
.pg-calendar .cal-upcoming .panel-filters .filter-chip.active {
    background: rgba(240, 138, 36, .16); border-color: #f08a24; color: #f08a24;
}
.pg-calendar .cal-filter-tag .cal-ico { width: 30px; height: 30px; border-radius: 7px; }
.pg-calendar .cal-filter-tag .cal-ico svg { width: 18px; height: 18px; }

/* Table density */
.pg-calendar .cal-table th { padding: .6rem .7rem; font-size: .72rem; }
.pg-calendar .cal-table td { padding: .55rem .7rem; font-size: .8rem; }

/* Empty state: calendar-outline icon + wide table-like skeleton */
.pg-calendar .cal-empty-rows .cal-ico { width: 52px; height: 52px; border-radius: 13px; margin-bottom: .4rem; }
.pg-calendar .cal-empty-rows .cal-ico svg { width: 30px; height: 30px; }
.pg-calendar .cal-skel-table { display: grid; gap: 7px; width: 92%; margin-top: .8rem; }
.pg-calendar .cal-skel-row {
    display: flex; gap: 8px; align-items: center;
    height: 33px; padding: 0 .6rem;
    border: 1px solid rgba(70, 100, 130, .18); border-radius: 8px;
    background: rgba(10, 16, 24, .55);
}
.pg-calendar .cal-skel-row span {
    display: block; height: 9px; border-radius: 999px;
    background: linear-gradient(90deg, rgba(70, 100, 130, .32), rgba(70, 100, 130, .12));
}
.pg-calendar .cal-focus-ico { width: 34px; height: 34px; border-radius: 9px; margin-bottom: .15rem; }
.pg-calendar .cal-focus-ico svg { width: 20px; height: 20px; }
.pg-calendar .cal-skel-table .cal-skel-row { height: 22px; padding: 0 .5rem; }
.pg-calendar .cal-focus-empty .cal-skel-table { margin-top: .35rem; gap: 6px; }

/* Glance: compact 34px weekday rows + one bottom note */
.pg-calendar .cal-glance-empty li { padding: 0; }
.pg-calendar .cal-glance-note { margin-top: auto; padding-top: .3rem; color: var(--text-dim); font-size: .64rem; }

/* Lower row: 230px, guide/cats split */
.pg-calendar .cal-lower {
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    height: 230px; margin-top: 12px; margin-bottom: 0;
}
.pg-calendar .cal-lower .rail-head .eyebrow,
.pg-calendar .rail-head .eyebrow { color: #ff9d3f; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .7rem; }
.pg-calendar .cal-guide-grid { gap: 9px; }
.pg-calendar .cal-guide-card { padding: .8rem .8rem; gap: .3rem; }
.pg-calendar .cal-guide-card .cal-ico { width: 34px; height: 34px; }
.pg-calendar .cal-guide-card .cal-ico svg { width: 20px; height: 20px; }
.pg-calendar .cal-guide-card b { font-size: .8rem; font-weight: 800; }
.pg-calendar .cal-guide-card p { font-size: .68rem; line-height: 1.45; }
.pg-calendar .cal-cat-grid { gap: 9px; }
.pg-calendar .cal-cat { padding: .55rem .7rem; border-radius: 10px; }
.pg-calendar .cal-cat .cal-ico { width: 30px; height: 30px; border-radius: 8px; }
.pg-calendar .cal-cat .cal-ico svg { width: 18px; height: 18px; }
.pg-calendar .cal-cat b { font-size: .78rem; font-weight: 750; }

/* Never Miss: compact CTA panel in the right rail (20% of lower rail) with wallpaper crop + strong button */
.pg-calendar .cal-cta {
    display: flex; flex-direction: column; min-height: 0; overflow: hidden;
    margin: 0;
    padding: .75rem 1.1rem;
    border-color: rgba(240, 138, 36, .45);
    background:
        linear-gradient(100deg, rgba(5, 9, 14, .97) 0%, rgba(5, 9, 14, .92) 36%, rgba(5, 9, 14, .55) 66%, rgba(5, 9, 14, .28) 100%),
        url("/static/images/hero-wallpapers/calendar-hero.webp.png") 78% center / cover no-repeat;
}
.pg-calendar .cal-cta .eyebrow { font-size: .8rem; margin: 0; }
.pg-calendar .cal-cta-copy { margin: .25rem 0 .4rem; color: var(--text-secondary); font-size: .68rem; line-height: 1.35; }
.pg-calendar .cal-cta .button {
    height: 36px; margin-top: auto; align-self: flex-start; padding: 0 .9rem; display: inline-flex; align-items: center;
    font-weight: 800; font-size: .76rem;
    background: var(--brand-orange); color: #141414; border-color: var(--brand-orange);
}

/* Compact footer breathing room */
.pg-calendar .cal-lower { margin-bottom: .2rem; }

@media (max-width: 1180px) {
    .pg-calendar .cal-summary { height: auto; }
    .pg-calendar .cal-lower { height: auto; }
}

/* ============================================================
   SIGNALS PASS 1 - REFERENCE-FIDELITY DASHBOARD (.pg-signals)
   ============================================================ */

/* (pg-signals desktop .wrap override removed — shared canonical shell) */

/* Hero */
.pg-signals .page-hero-signals {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 270px; margin-top: 1rem; padding: 1.9rem 2.4rem;
    grid-template-columns: minmax(0, 1fr) minmax(250px, .6fr);
    align-items: center;
    border: 1px solid #29394a; border-radius: 13px;
    background:
        linear-gradient(90deg, rgba(5, 9, 14, .95) 0%, rgba(5, 9, 14, .86) 36%, rgba(5, 9, 14, .3) 68%, rgba(5, 9, 14, .42) 100%),
        url("/static/images/hero-wallpapers/signals-hero.webp.png") center / cover no-repeat;
}
.pg-signals .page-hero-signals h1 { margin: .25rem 0 .45rem; font-size: clamp(2.6rem, 3.4vw, 3.4rem); font-weight: 900; line-height: 1.02; letter-spacing: -.03em; }
.pg-signals .page-hero-signals h1 span { color: #f5a342; }
.pg-signals .hero-actions-col { align-self: center; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; text-align: right; padding-right: .5rem; }
.pg-signals .hero-actions-col small { color: var(--text-muted); font-size: .66rem; }

/* Nav + display-only filters: one control band */
.pg-signals .sig-controls {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 12px; padding: .55rem .75rem;
    border: 1px solid #2b4054; border-radius: 11px;
    background: linear-gradient(180deg, rgba(13, 22, 32, .95), rgba(7, 12, 18, .95));
    min-height: 50px; flex-wrap: wrap;
}
.pg-signals .sig-nav, .pg-signals .sig-filters { display: flex; gap: 7px; flex-wrap: wrap; }
.pg-signals .sig-nav .filter-chip, .pg-signals .sig-filters .filter-chip {
    padding: .44rem .85rem; min-height: 33px; border-radius: 7px; font-size: .72rem;
    border: 1px solid rgba(110, 160, 210, .3); background: rgba(10, 16, 24, .7);
}
.pg-signals .sig-nav .filter-chip.active { background: rgba(240, 138, 36, .16); border-color: #f08a24; color: #f08a24; }
.pg-signals .sig-nav .filter-chip:hover { color: var(--text); text-decoration: none; }

/* Compact integrity line */
.pg-signals .sig-integrity { margin: 10px 0 0; padding: .55rem .9rem; }

/* Six stats: 100px row */
.pg-signals .sig-stats {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px; margin-top: 10px; height: 100px;
}
.pg-signals .sig-stat { display: flex; align-items: center; padding: .7rem .85rem; margin: 0; min-height: 0; overflow: hidden; }
.pg-signals .sig-stat .cal-ico { width: 36px; height: 36px; border-radius: 9px; }
.pg-signals .sig-stat .cal-ico svg { width: 21px; height: 21px; }
.pg-signals .sig-stat h3 { margin: 0; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.pg-signals .sig-value { margin: .05rem 0 0; font-size: 1.35rem; font-weight: 850; color: var(--text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pg-signals .sig-stat small { display: block; color: var(--text-dim); font-size: .6rem; }

/* Main dashboard: 80/20, 410px shared height */
.pg-signals .signals-main-grid {
    display: grid; grid-template-columns: minmax(0, 80fr) minmax(270px, 20fr);
    gap: 10px; margin-top: 10px; align-items: stretch;
    height: 410px;
}
.pg-signals .sig-live { display: flex; flex-direction: column; min-height: 0; overflow: hidden; margin: 0; }
.pg-signals .sig-live .panel-head { flex: none; gap: .5rem; }
.pg-signals .sig-live .panel-head h2 { display: inline-flex; align-items: center; gap: .5rem; margin-right: auto; }
.pg-signals .sig-live .panel-head .sig-ico svg { width: 18px; height: 18px; color: #f0a13a; }
.pg-signals .sig-live .table-wrap { flex: 1; min-height: 0; overflow: auto; }
.pg-signals .signals-table th { padding: .55rem .6rem; font-size: .68rem; position: sticky; top: 0; background: #0d1520; z-index: 1; }
.pg-signals .signals-table td { padding: .4rem .6rem; font-size: .76rem; }
.pg-signals .sig-skel-row td { padding: .5rem .6rem; }
.pg-signals .sig-skel {
    display: block; height: 9px; border-radius: 999px;
    background: linear-gradient(90deg, rgba(70, 100, 130, .32), rgba(70, 100, 130, .12));
}

/* Right rail: two equal halves of 410px */
.pg-signals .sig-rail { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; min-width: 0; }
.pg-signals .sig-rail .rail-panel { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.pg-signals .sig-vip { padding: .85rem .95rem; gap: .35rem;
    background: radial-gradient(circle at 88% 10%, rgba(240, 138, 36, .14), transparent 45%),
        linear-gradient(150deg, #101c2b, #0a0f16 78%);
    border-color: rgba(240, 138, 36, .35);
}
.pg-signals .sig-vip .eyebrow { display: inline-flex; align-items: center; gap: .4rem; color: #ff9d3f; }
.pg-signals .sig-vip .sig-ico svg { width: 16px; height: 16px; color: #f0a13a; }
.pg-signals .sig-vip h3 { margin: 0; font-size: .95rem; font-weight: 800; color: var(--text); line-height: 1.3; }
.pg-signals .vip-points { margin: auto 0 0; display: grid; gap: .2rem; }
.pg-signals .vip-points span { color: var(--text-secondary); font-size: .7rem; }
.pg-signals .sig-updates { padding: .85rem .95rem; }
.pg-signals .sig-updates-list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; }
.pg-signals .sig-updates-list li { padding: .3rem 0; border-bottom: 1px solid var(--border); grid-template-columns: 1.4rem minmax(0, 1fr) auto; }
.pg-signals .sig-updates-list li:last-child { border-bottom: 0; }

/* Analytics row: four equal ~230px cards */
.pg-signals .sig-analytics {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px; margin-top: 10px;
    height: 230px;
}
.pg-signals .sig-card { margin: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.pg-signals .sig-card .panel-head { flex: none; margin-bottom: .3rem; }
.pg-signals .sig-card .panel-head h2 { display: inline-flex; align-items: center; gap: .45rem; font-size: 1.02rem; }
.pg-signals .sig-card .panel-head .sig-ico svg { width: 17px; height: 17px; color: #7fd7ef; }
.pg-signals .chart-shell { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; text-align: center; }
.pg-signals .chart-shell .sig-ico svg { width: 30px; height: 30px; color: #7fd7ef; opacity: .8; }
.pg-signals .chart-shell p { margin: 0; color: var(--text-muted); font-size: .78rem; max-width: 220px; }
.pg-signals .sig-period-pills { display: flex; gap: 6px; margin-bottom: .45rem; }
.pg-signals .sig-period-pills .filter-chip { padding: .3rem .7rem; min-height: 28px; font-size: .66rem; border-radius: 999px; border: 1px solid rgba(110, 160, 210, .3); background: rgba(10, 16, 24, .7); }
.pg-signals .sig-period-pills .filter-chip.active { background: rgba(240, 138, 36, .16); border-color: #f08a24; color: #f08a24; }
.pg-signals .sig-donut-shell { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; }
.pg-signals .sig-donut {
    display: inline-grid; place-items: center;
    width: 92px; height: 92px; border-radius: 50%;
    border: 14px solid rgba(70, 100, 130, .3);
}
.pg-signals .sig-donut-hole { width: 8px; height: 8px; border-radius: 50%; }
.pg-signals .sig-donut-legend { display: flex; gap: .8rem; }
.pg-signals .legend-long { color: var(--positive); font-size: .68rem; font-weight: 750; }
.pg-signals .legend-short { color: var(--negative); font-size: .68rem; font-weight: 750; }
.pg-signals .sig-tf-shell { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .3rem; min-height: 0; padding: 0 .6rem; }
.pg-signals .sig-tf-bars { display: flex; align-items: flex-end; justify-content: space-around; height: 74px; border-bottom: 1px solid var(--border); }
.pg-signals .sig-tf { display: flex; flex-direction: column; align-items: center; gap: .2rem; height: 100%; justify-content: flex-end; }
.pg-signals .sig-tf-bar { width: 26px; height: 26%; border-radius: 5px 5px 0 0; background: rgba(110, 160, 210, .25); }
.pg-signals .sig-tf small { color: var(--text-muted); font-size: .62rem; }
.pg-signals .sig-tf-shell .rail-note { text-align: center; }
.pg-signals .sig-community { justify-content: flex-start;
    background: radial-gradient(circle at 88% 8%, rgba(240, 138, 36, .16), transparent 45%),
        linear-gradient(150deg, #101c2b, #0a0f16 78%);
    border-color: rgba(240, 138, 36, .35);
}
.pg-signals .sig-community .panel-head h2 { color: var(--text); }
.pg-signals .sig-community .panel-head .sig-ico svg { color: #f0a13a; }
.pg-signals .sig-community-copy { margin: 0; color: var(--text-secondary); font-size: .74rem; line-height: 1.45; }
.pg-signals .sig-community .button { margin-top: auto; align-self: flex-start; height: 44px; display: inline-flex; align-items: center; padding: 0 1rem; font-weight: 800; }

@media (max-width: 1180px) {
    .pg-signals .sig-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; }
    .pg-signals .sig-stat { min-height: 88px; }
    .pg-signals .signals-main-grid { grid-template-columns: 1fr; height: auto; }
    .pg-signals .sig-live { min-height: 340px; }
    .pg-signals .sig-rail { grid-template-rows: none; }
    .pg-signals .sig-rail .rail-panel { min-height: 170px; }
    .pg-signals .sig-analytics { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; }
    .pg-signals .sig-card { min-height: 200px; }
}
@media (max-width: 720px) {
    .pg-signals .sig-stats, .pg-signals .sig-analytics { grid-template-columns: 1fr; }
    .pg-signals .page-hero-signals { grid-template-columns: 1fr; }
    .pg-signals .hero-actions-col { justify-self: start; align-items: flex-start; text-align: left; }
}

/* ============================================================
   LEARN PASS 1 - REFERENCE-FIDELITY REBUILD (.pg-learn)
   ============================================================ */

/* (pg-learn desktop .wrap override removed — shared canonical shell) */

/* Hero */
.pg-learn .page-hero-learn {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 262px; margin-top: 1rem; padding: 1.9rem 2.4rem;
    grid-template-columns: minmax(0, 1fr) minmax(250px, .58fr);
    align-items: center;
    border: 1px solid #29394a; border-radius: 13px;
    background:
        linear-gradient(90deg, rgba(5, 9, 14, .95) 0%, rgba(5, 9, 14, .86) 36%, rgba(5, 9, 14, .3) 68%, rgba(5, 9, 14, .42) 100%),
        url("/static/images/hero-wallpapers/learn-hero.webp.png") center / cover no-repeat;
}
.pg-learn .page-hero-learn h1 { margin: .25rem 0 .45rem; font-size: clamp(2.6rem, 3.4vw, 3.4rem); font-weight: 900; line-height: 1.02; letter-spacing: -.03em; }
.pg-learn .page-hero-learn h1 span { color: #f5a342; }
.pg-learn .hero-actions-col { align-self: center; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; text-align: right; padding-right: .5rem; }
.pg-learn .hero-actions-col .hero-tagline-sub { margin: 0; max-width: 240px; color: var(--text-secondary); font-size: .72rem; }

/* Six category cards */
.pg-learn .learn-cats {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px; margin-top: 12px; height: 92px;
}
.pg-learn .learn-cat { display: flex; align-items: center; padding: .7rem .8rem; margin: 0; min-height: 0; overflow: hidden; text-decoration: none; }
.pg-learn .l-cat-head { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.pg-learn .learn-cat b { display: block; color: var(--text); font-size: .76rem; font-weight: 800; line-height: 1.2; }
.pg-learn .learn-cat small { display: block; color: var(--text-muted); font-size: .6rem; margin-top: .1rem; }
.pg-learn .learn-cat .cal-ico { width: 36px; height: 36px; border-radius: 9px; }
.pg-learn .learn-cat .cal-ico svg { width: 21px; height: 21px; }
.pg-learn .learn-cat:hover { border-color: rgba(240, 138, 36, .5); text-decoration: none; }
.pg-learn .learn-cat.is-active { border-color: rgba(240, 138, 36, .55); box-shadow: 0 0 18px rgba(240, 138, 36, .1); }
.pg-learn .learn-cat.is-active .cal-ico { color: #f0a13a; border-color: rgba(240, 138, 36, .4); background: rgba(240, 138, 36, .1); }

/* Featured: 70/30, ~340px shared height */
.pg-learn .learn-featured-grid {
    display: grid; grid-template-columns: minmax(0, 70fr) minmax(280px, 30fr);
    gap: 12px; margin-top: 16px; align-items: stretch;
    height: 340px;
}
.pg-learn .learn-featured-main { display: flex; flex-direction: column; min-width: 0; }
.pg-learn .learn-featured-main .section-heading { margin-bottom: .5rem; }
.pg-learn .course-grid { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-height: 0; }
.pg-learn .course-card { display: flex; flex-direction: column; min-height: 0; overflow: hidden; margin: 0; padding: 0; }
.pg-learn .course-art {
    flex: 0 0 47%; min-height: 0; position: relative;
    display: flex; align-items: flex-start; justify-content: flex-end;
    padding: .5rem .6rem; border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 74% 30%, rgba(240, 138, 36, .2), transparent 50%),
        radial-gradient(circle at 20% 85%, rgba(24, 42, 66, .6), transparent 55%),
        repeating-linear-gradient(135deg, #0d141d 0 14px, #0f1722 14px 15px);
}
.pg-learn .course-art.art-2 { background:
    radial-gradient(circle at 30% 26%, rgba(110, 160, 210, .2), transparent 52%),
    radial-gradient(circle at 80% 80%, rgba(240, 138, 36, .14), transparent 48%),
    repeating-linear-gradient(45deg, #0d141d 0 14px, #0f1722 14px 15px); }
.pg-learn .course-art.art-3 { background:
    radial-gradient(circle at 66% 40%, rgba(90, 200, 160, .14), transparent 50%),
    radial-gradient(circle at 18% 22%, rgba(24, 42, 66, .6), transparent 55%),
    repeating-linear-gradient(115deg, #0d141d 0 14px, #0f1722 14px 15px); }
.pg-learn .course-art.art-4 { background:
    radial-gradient(circle at 50% 30%, rgba(200, 120, 220, .14), transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(24, 42, 66, .6), transparent 55%),
    repeating-linear-gradient(160deg, #0d141d 0 14px, #0f1722 14px 15px); }
.pg-learn .course-body { flex: 1; display: flex; flex-direction: column; padding: .65rem .75rem .7rem; min-height: 0; }
.pg-learn .course-body h3 { margin: 0 0 .25rem; font-size: .88rem; font-weight: 800; color: var(--text); line-height: 1.25; }
.pg-learn .course-body p { margin: 0; font-size: .7rem; color: var(--text-muted); line-height: 1.4; flex: 1; }
.pg-learn .course-cta { color: var(--text-muted); font-size: .68rem; font-weight: 700; }
.pg-learn .course-cta small { color: var(--text-dim); font-weight: 500; }

/* Rail: progress 70% / motto 30% */
.pg-learn .learn-rail { display: grid; grid-template-rows: minmax(0, 7fr) minmax(0, 3fr); gap: 10px; min-width: 0; }
.pg-learn .learn-rail .rail-panel { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.pg-learn .learn-progress { padding: .8rem .95rem; }
.pg-learn .lp-ring-wrap { position: relative; display: grid; place-items: center; width: 74px; height: 74px; margin: .2rem auto .3rem; }
.pg-learn .lp-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 9px solid rgba(70, 100, 130, .28);
}
.pg-learn .lp-ring-value { position: relative; color: var(--text); font-size: 1.15rem; font-weight: 850; }
.pg-learn .lp-rows { list-style: none; margin: .1rem 0 0; padding: 0; }
.pg-learn .lp-rows li {
    display: grid; grid-template-columns: 1fr auto; align-items: center;
    padding: .26rem 0; border-bottom: 1px solid var(--border); font-size: .66rem;
}
.pg-learn .lp-rows li:last-child { border-bottom: 0; }
.pg-learn .lp-rows span { color: var(--text-muted); }
.pg-learn .lp-rows b { color: var(--text); font-weight: 800; }
.pg-learn .lp-continue { margin-top: auto; align-self: flex-start; font-size: .68rem; font-weight: 700; color: var(--text-muted); }
.pg-learn .lp-continue.is-soon { border: 1px dashed var(--border); border-radius: 7px; padding: .3rem .6rem; }
.pg-learn .learn-motto { padding: .8rem .95rem; justify-content: center; gap: .2rem;
    background: radial-gradient(circle at 85% 15%, rgba(240, 138, 36, .14), transparent 45%),
        linear-gradient(150deg, #101c2b, #0a0f16 78%);
    border-color: rgba(240, 138, 36, .35);
}
.pg-learn .learn-motto blockquote { margin: 0; color: var(--text); font-size: .88rem; line-height: 1.4; }
.pg-learn .learn-motto small { color: var(--text-muted); }

/* Paths: 70/30, ~220px shared height */
.pg-learn .learn-paths-grid {
    display: grid; grid-template-columns: minmax(0, 70fr) minmax(280px, 30fr);
    gap: 12px; margin-top: 18px; align-items: stretch;
    height: 220px;
}
.pg-learn .learn-paths-main { display: flex; flex-direction: column; min-width: 0; }
.pg-learn .learn-paths-main .section-heading { margin-bottom: .5rem; }
.pg-learn .path-grid { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-height: 0; }
.pg-learn .path-card { display: flex; flex-direction: column; gap: .3rem; min-height: 0; overflow: hidden; padding: .8rem .9rem; }
.pg-learn .l-path-head { display: flex; align-items: center; gap: .55rem; }
.pg-learn .l-path-head .cal-ico { width: 34px; height: 34px; border-radius: 9px; }
.pg-learn .l-path-head .cal-ico svg { width: 19px; height: 19px; }
.pg-learn .l-path-head p.eyebrow { margin: 0; font-size: .6rem; color: var(--text-muted); }
.pg-learn .l-path-head h3 { margin: 0; font-size: .9rem; font-weight: 800; }
.pg-learn .path-card > p { margin: 0; font-size: .7rem; color: var(--text-muted); line-height: 1.4; }
.pg-learn .l-path-bar { height: 7px; border-radius: 999px; background: rgba(70, 100, 130, .25); overflow: hidden; }
.pg-learn .l-path-bar span { display: block; width: 0%; height: 100%; }
.pg-learn .path-beginner .cal-ico { color: #7fd7ef; }
.pg-learn .path-inter .cal-ico { color: #8fb7e8; }
.pg-learn .path-advanced .cal-ico { color: #f0a13a; }
.pg-learn .l-path-meta { color: var(--text-dim); font-size: .6rem; }
.pg-learn .path-card .state-pill { align-self: flex-start; margin-top: auto; }

/* Quick resources rail */
.pg-learn .learn-resources { padding: .85rem .95rem; }
.pg-learn .l-res-list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; }
.pg-learn .l-res-row {
    display: flex; align-items: center; gap: .55rem;
    padding: .5rem .55rem; border: 1px solid #2b4054; border-radius: 9px;
    background: rgba(10, 16, 24, .65); text-decoration: none;
    min-height: 0;
}
.pg-learn .l-res-row .cal-ico { width: 30px; height: 30px; border-radius: 8px; }
.pg-learn .l-res-row .cal-ico svg { width: 17px; height: 17px; }
.pg-learn .l-res-row b { display: block; color: var(--text); font-size: .74rem; font-weight: 750; line-height: 1.2; }
.pg-learn .l-res-row small { display: block; color: var(--text-dim); font-size: .58rem; }
.pg-learn .l-res-row > span { margin-left: auto; color: var(--brand-orange); font-weight: 800; }
a.l-res-row:hover { border-color: rgba(240, 138, 36, .5); text-decoration: none; }
.pg-learn .l-res-row.is-soon { opacity: .75; border-style: dashed; }
.pg-learn .l-res-row.is-soon > span { color: var(--text-dim); }

/* Compact footer flow */
.pg-learn .learn-paths-grid { margin-bottom: .2rem; }

@media (max-width: 1180px) {
    .pg-learn .learn-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; }
    .pg-learn .learn-cat { min-height: 74px; }
    .pg-learn .learn-featured-grid, .pg-learn .learn-paths-grid { grid-template-columns: 1fr; height: auto; }
    .pg-learn .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-learn .course-card { min-height: 240px; }
    .pg-learn .learn-rail, .pg-learn .learn-rail .rail-panel { min-height: 0; }
    .pg-learn .learn-rail { grid-template-rows: none; }
    .pg-learn .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .pg-learn .learn-cats, .pg-learn .course-grid, .pg-learn .path-grid { grid-template-columns: 1fr; }
    .pg-learn .page-hero-learn { grid-template-columns: 1fr; }
    .pg-learn .hero-actions-col { justify-self: start; align-items: flex-start; text-align: left; }
}

/* ============================================================
   SIGNALS PASS 2 - DENSITY / CHART GEOMETRY / SPACING POLISH
   ============================================================ */

/* Live table: ~10 reserved rows at ~27px; truthful status line at bottom */
.pg-signals .sig-skel-row td { padding: .38rem .6rem; }
.pg-signals .sig-skel { height: 8px; }
.pg-signals .sig-status-line {
    flex: none; margin: 0; padding: .45rem .8rem;
    color: var(--text-muted); font-size: .68rem;
    border-top: 1px solid var(--border);
    background: rgba(10, 16, 24, .5);
}

/* VIP: denser layout, gold glow on the right */
.pg-signals .sig-vip {
    background: radial-gradient(circle at 94% 20%, rgba(240, 138, 36, .18), transparent 42%),
        linear-gradient(150deg, #101c2b, #0a0f16 78%);
    gap: .3rem;
}
.pg-signals .sig-vip h3 { font-size: .92rem; }
.pg-signals .vip-points { gap: .18rem; }
.pg-signals .vip-points span { font-size: .68rem; }

/* Clear dashboard -> analytics gap */
.pg-signals .sig-analytics { margin-top: 12px; }

/* Performance: bigger chart shell with subtle grid */
.pg-signals .sig-period-pills { position: absolute; right: .8rem; top: .55rem; }
.pg-signals .sig-card { position: relative; }
.pg-signals .sig-card .panel-head { padding-right: 150px; }
.pg-signals .chart-shell {
    background:
        linear-gradient(rgba(69, 119, 153, .06) 1px, transparent 1px) 0 0 / 100% 22px,
        linear-gradient(90deg, rgba(69, 119, 153, .06) 1px, transparent 1px) 0 0 / 34px 100%;
    border: 1px solid rgba(70, 100, 130, .2); border-radius: 9px;
    min-height: 158px;
}

/* Distribution: bigger donut */
.pg-signals .sig-donut { width: 108px; height: 108px; border-width: 15px; }

/* Timeframe: stronger bar geometry */
.pg-signals .sig-tf-shell { padding: 0 .7rem; }
.pg-signals .sig-tf-bars { height: 88px; }
.pg-signals .sig-tf-bar { width: 34px; height: 30%; border-radius: 6px 6px 0 0; }
.pg-signals .sig-tf small { font-size: .66rem; }

/* Community: stronger premium treatment */
.pg-signals .sig-community {
    background:
        linear-gradient(115deg, rgba(5, 9, 14, .96) 0%, rgba(5, 9, 14, .9) 42%, rgba(5, 9, 14, .6) 100%),
        repeating-linear-gradient(60deg, transparent 0 26px, rgba(110, 160, 210, .07) 26px 27px),
        radial-gradient(circle at 92% 12%, rgba(240, 138, 36, .2), transparent 46%),
        linear-gradient(150deg, #101c2b, #0a0f16 78%);
}

/* Compact breathing room before the shared footer */
.pg-signals .sig-analytics { margin-bottom: 0; }

@media (max-width: 1180px) {
    .pg-signals .sig-card .panel-head { padding-right: 0; }
    .pg-signals .sig-period-pills { position: static; }
}

/* ============================================================
   LEARN PASS 2 - HEIGHT REPAIR (root cause: unsized inline SVGs)
   Inline SVGs without explicit width/height default to 300x150px.
   .cal-ico sizing existed only under .pg-calendar, so Learn page
   icons (crown/user/book) rendered giant and stretched the rail,
   paths and resources cards. Base sizing + hard caps below.
   ============================================================ */

/* Base icon sizing for ALL Learn icon wrappers */
.pg-learn .cal-ico {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid rgba(110, 160, 210, .35); background: rgba(24, 42, 66, .55);
    color: #7fd7ef;
}
.pg-learn .cal-ico svg { width: 24px; height: 24px; display: block; }
.pg-learn .l-ico { display: inline-flex; }

/* Rail-head icons (Progress / Motto / Resources): compact 30px */
.pg-learn .rail-head .cal-ico { width: 30px; height: 30px; border-radius: 8px; }
.pg-learn .rail-head .cal-ico svg { width: 18px; height: 18px; }

/* Hard caps: Featured 340 / Paths 220, cards cannot inflate them */
.pg-learn .learn-featured-grid { height: 340px; max-height: 340px; }
.pg-learn .learn-featured-main, .pg-learn .learn-rail { min-height: 0; min-width: 0; }
.pg-learn .course-card { min-height: 0; overflow: hidden; }
.pg-learn .course-grid { min-height: 0; }

/* Course artwork: finite controlled height, absolutely-positioned layers only */
.pg-learn .course-art { flex: 0 0 138px; height: 138px; min-height: 138px; max-height: 142px; overflow: hidden; position: relative; }
.pg-learn .course-body { min-height: 0; overflow: hidden; }

/* Learning Progress: compact ~231px, ring left + rows right */
.pg-learn .learn-progress {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    column-gap: .9rem; align-items: center;
}
.pg-learn .learn-progress .rail-head { grid-column: 1 / -1; grid-row: 1; margin-bottom: .2rem; }
.pg-learn .lp-ring-wrap { grid-column: 1; grid-row: 2; width: 84px; height: 84px; margin: 0; align-self: center; }
.pg-learn .lp-ring { border-width: 10px; }
.pg-learn .lp-ring-value { font-size: 1.05rem; }
.pg-learn .lp-rows { grid-column: 2; grid-row: 2; align-self: center; margin: 0; }
.pg-learn .lp-continue { grid-column: 1 / -1; grid-row: 3; margin-top: .15rem; }
.pg-learn .learn-progress .rail-note { grid-column: 1 / -1; grid-row: 4; margin-top: .1rem; }

/* Motto: compact ~99px, small icon */
.pg-learn .learn-motto { gap: .15rem; }
.pg-learn .learn-motto .eyebrow { display: inline-flex; align-items: center; gap: .4rem; }
.pg-learn .learn-motto .eyebrow .cal-ico { width: 30px; height: 30px; border-radius: 8px; }
.pg-learn .learn-motto .eyebrow .cal-ico svg { width: 18px; height: 18px; color: #f0a13a; }
.pg-learn .learn-motto blockquote { font-size: .84rem; }

/* Paths + Resources: hard cap 220px, compact icons */
.pg-learn .learn-paths-grid { height: 220px; max-height: 220px; }
.pg-learn .learn-paths-main, .pg-learn .learn-resources { min-height: 0; min-width: 0; }
.pg-learn .path-card { min-height: 0; overflow: hidden; }
.pg-learn .l-res-list { overflow: hidden; }
.pg-learn .l-res-row { min-height: 0; }

@media (max-width: 1180px) {
    .pg-learn .learn-featured-grid, .pg-learn .learn-paths-grid { height: auto; max-height: none; }
    .pg-learn .learn-progress { display: flex; flex-direction: column; align-items: stretch; }
}

/* ============================================================
   PARTNERS PASS 1 - REFERENCE-FIDELITY REBUILD (.pg-partners)
   ============================================================ */

/* (pg-partners desktop .wrap override removed — shared canonical shell) */

/* Base icon sizing (Partners-scoped; inline SVGs default 300x150 without it) */
.pg-partners .cal-ico {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 46px; height: 46px; border-radius: 12px;
    border: 1px solid rgba(110, 160, 210, .35); background: rgba(24, 42, 66, .55);
    color: #7fd7ef;
}
.pg-partners .cal-ico svg { width: 27px; height: 27px; display: block; }
.pg-partners .p-exchange { color: #f0a13a; border-color: rgba(240, 138, 36, .4); background: rgba(240, 138, 36, .1); }
.pg-partners .p-growth { color: #f0a13a; border-color: rgba(240, 138, 36, .4); background: rgba(240, 138, 36, .1); }

/* Hero */
.pg-partners .page-hero-partners {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 270px; margin-top: 12px; padding: 2rem 2.4rem;
    grid-template-columns: minmax(0, 1fr) minmax(240px, .58fr);
    align-items: center;
    border: 1px solid #29394a; border-radius: 13px;
    background:
        linear-gradient(90deg, rgba(5, 9, 14, .95) 0%, rgba(5, 9, 14, .86) 36%, rgba(5, 9, 14, .3) 68%, rgba(5, 9, 14, .42) 100%),
        url("/static/images/hero-wallpapers/partners-hero.webp.png") center / cover no-repeat;
}
.pg-partners .page-hero-partners h1 { margin: .25rem 0 .45rem; font-size: clamp(2.6rem, 3.4vw, 3.4rem); font-weight: 900; line-height: 1.02; letter-spacing: -.03em; }
.pg-partners .page-hero-partners h1 span { color: #f5a342; }
.pg-partners .page-hero-partners .lead b { color: var(--text); }
.pg-partners .hero-actions-col { align-self: center; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; text-align: right; padding-right: .5rem; }
.pg-partners .hero-actions-col .hero-tagline-sub { margin: 0; max-width: 230px; color: var(--text-secondary); font-size: .7rem; }

/* Category heading + six cards */
.pg-partners .p-cats-head { margin-top: 14px; }
.pg-partners .p-cats-head .section-heading { margin-bottom: 8px; }
.pg-partners .p-head-note { display: flex; align-items: center; gap: .9rem; }
.pg-partners .p-head-note span { color: var(--text-muted); font-size: .74rem; }
.pg-partners .p-cats {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px; height: 208px;
}
.pg-partners .p-cat { display: flex; flex-direction: column; gap: .3rem; padding: .8rem .8rem .7rem; margin: 0; min-height: 0; overflow: hidden; }
.pg-partners .p-cat b { color: var(--text); font-size: .8rem; font-weight: 800; line-height: 1.2; }
.pg-partners .p-cat p { margin: 0; color: var(--text-muted); font-size: .64rem; line-height: 1.4; flex: 1; }
.pg-partners .p-cat-btn {
    display: flex; align-items: center; justify-content: center;
    height: 38px; width: 92%; align-self: center; margin-top: auto;
    border: 1px solid rgba(240, 138, 36, .7); border-radius: 7px;
    background: rgba(240, 138, 36, .05); color: var(--brand-orange);
    font-size: .74rem; font-weight: 800; text-decoration: none; white-space: nowrap;
}
a.p-cat-btn:hover, .pg-partners .p-cat-btn:hover { background: rgba(240, 138, 36, .14); text-decoration: none; }
.pg-partners .p-cat.is-active { border-color: rgba(240, 138, 36, .55); box-shadow: 0 0 20px rgba(240, 138, 36, .1); }

/* Second row: 50/30/20, equal 252px */
.pg-partners .p-mid {
    display: grid; grid-template-columns: minmax(0, 50fr) minmax(280px, 30fr) minmax(230px, 20fr);
    gap: 10px; margin-top: 10px; align-items: stretch;
    height: 252px;
}
.pg-partners .p-mid .panel { margin: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.pg-partners .p-benefit-grid {
    flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 0;
}
.pg-partners .p-benefit-grid > div {
    display: flex; align-items: center; gap: .55rem;
    padding: .4rem .55rem; border: 1px solid #2b4054; border-radius: 9px;
    background: rgba(10, 16, 24, .65); min-height: 0; overflow: hidden;
}
.pg-partners .p-benefit-grid .cal-ico { width: 32px; height: 32px; border-radius: 8px; }
.pg-partners .p-benefit-grid .cal-ico svg { width: 18px; height: 18px; }
.pg-partners .p-benefit-grid b { display: block; color: var(--text); font-size: .74rem; font-weight: 800; line-height: 1.2; }
.pg-partners .p-benefit-grid span { display: block; color: var(--text-muted); font-size: .62rem; line-height: 1.35; }

/* Featured Partner placeholder */
.pg-partners .p-featured-body {
    flex: 1; min-height: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center; gap: .4rem;
    padding: .8rem 1rem;
    border: 1px solid rgba(70, 100, 130, .25); border-radius: 10px;
    background:
        radial-gradient(circle at 74% 28%, rgba(240, 138, 36, .16), transparent 48%),
        repeating-linear-gradient(135deg, #0d141d 0 14px, #0f1722 14px 15px);
}
.pg-partners .p-featured-logo-slot .cal-ico { width: 52px; height: 52px; color: #f0a13a; border-color: rgba(240, 138, 36, .4); }
.pg-partners .p-featured-title { color: var(--text); font-size: .92rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.pg-partners .p-featured-body p { margin: 0; color: var(--text-muted); font-size: .68rem; line-height: 1.45; max-width: 260px; }

/* Testimonials placeholder */
.pg-partners .p-testi-body { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; padding: .8rem .9rem; }
.pg-partners .p-testi-quote .cal-ico { width: 44px; height: 44px; color: #f0a13a; border-color: rgba(240, 138, 36, .4); }
.pg-partners .p-testi-body > p { margin: 0; color: var(--text-secondary); font-size: .72rem; line-height: 1.45; text-align: center; }
.pg-partners .p-testi-meta { display: flex; align-items: center; gap: .5rem; }
.pg-partners .p-testi-avatar { display: block; width: 30px; height: 30px; border-radius: 50%; background: rgba(70, 100, 130, .3); }
.pg-partners .p-testi-lines { display: block; width: 92px; height: 8px; border-radius: 999px; background: rgba(70, 100, 130, .25); }
.pg-partners .p-testi-nav { display: flex; align-items: center; gap: .6rem; }
.pg-partners .p-nav-arrow .cal-ico { width: 26px; height: 26px; border-radius: 7px; }
.pg-partners .p-nav-arrow .cal-ico svg { width: 14px; height: 14px; }
.pg-partners .p-nav-arrow.is-disabled { opacity: .45; }
.pg-partners .p-soon-pill { padding: .14rem .6rem; border: 1px solid var(--border-gold); border-radius: 999px; color: var(--brand-gold); font-size: .6rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

/* Platforms & Data Sources: premium tile rail */
.pg-partners .p-sources { margin-top: 16px; }
.pg-partners .p-sources .section-heading { margin-bottom: 8px; }
.pg-partners .p-source-rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.pg-partners .p-source-tile {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    height: 74px; border: 1px solid #2b4054; border-radius: 10px;
    background: linear-gradient(180deg, rgba(13, 22, 32, .92), rgba(7, 12, 18, .92));
    color: var(--text); font-size: .8rem; font-weight: 750; text-align: center;
    transition: border-color .15s ease;
}
.pg-partners .p-source-tile:hover { border-color: rgba(240, 138, 36, .45); }
.pg-partners .p-source-tile .cal-ico { width: 30px; height: 30px; border-radius: 8px; }
.pg-partners .p-source-tile .cal-ico svg { width: 17px; height: 17px; }
.pg-partners .p-source-note { display: block; margin-top: .4rem; color: var(--text-dim); font-size: .62rem; }

@media (max-width: 1180px) {
    .pg-partners .p-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; }
    .pg-partners .p-cat { min-height: 170px; }
    .pg-partners .p-mid { grid-template-columns: 1fr; height: auto; }
    .pg-partners .p-mid .panel { min-height: 220px; }
    .pg-partners .p-source-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .pg-partners .p-cats, .pg-partners .p-source-rail { grid-template-columns: 1fr; }
    .pg-partners .page-hero-partners { grid-template-columns: 1fr; }
    .pg-partners .hero-actions-col { justify-self: start; align-items: flex-start; text-align: left; }
}

/* ============================================================
   LEARN PASS 3 - PIXEL FIDELITY (reference artwork / icons / spacing)
   ============================================================ */

/* Hero: benefit icons, 262px lock */
.pg-learn .page-hero-learn { height: 262px; min-height: 262px; max-height: 262px; }
.pg-learn .hero-feature-row { gap: 1rem; margin-top: .8rem; }
.pg-learn .hf-ico { display: inline-flex; align-items: center; gap: .4rem; color: var(--text-secondary); font-size: .74rem; }
.pg-learn .hf-ico svg { width: 16px; height: 16px; color: #f0a13a; flex: none; display: block; }

/* Slightly stronger cyan card borders like the reference */
.pg-learn .course-card, .pg-learn .path-card, .pg-learn .learn-cat, .pg-learn .learn-resources,
.pg-learn .learn-progress, .pg-learn .learn-motto { border-color: rgba(110, 160, 210, .4); }

/* Featured: 355px lock; artwork with real SVG motifs */
.pg-learn .learn-featured-grid { height: 355px; max-height: 355px; }
.pg-learn .course-art { flex: 0 0 150px; height: 150px; max-height: 150px; align-items: flex-start; justify-content: flex-start; }
.pg-learn .art-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pg-learn .course-body h3 { font-size: .9rem; }
.pg-learn .course-body p { font-size: .7rem; line-height: 1.45; }

/* Heading right notes */
.pg-learn .l-soon-note { color: var(--text-dim); font-size: .7rem; }
.pg-learn .l-soon-pill { padding: .16rem .6rem; border: 1px solid var(--border-gold); border-radius: 999px; color: var(--brand-gold); font-size: .58rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

/* Progress: larger ring, iconed metric rows, presentational full-width CTA */
.pg-learn .lp-ring-wrap { width: 94px; height: 94px; }
.pg-learn .lp-ring { border-width: 11px; }
.pg-learn .lp-ring-label { grid-column: 1 / -1; margin-top: .1rem; color: var(--text-dim); font-size: .58rem; text-transform: uppercase; letter-spacing: .1em; }
.pg-learn .lp-rows li { grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem; padding: .32rem 0; }
.pg-learn .lp-metric-ico { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid rgba(110, 160, 210, .35); background: rgba(24, 42, 66, .55); color: #7fd7ef; }
.pg-learn .lp-metric-ico svg { width: 20px; height: 20px; display: block; }
.pg-learn .lp-continue {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 42px; border-radius: 8px;
    background: rgba(240, 138, 36, .12); border: 1px solid rgba(240, 138, 36, .55);
    color: var(--brand-orange); font-weight: 800; font-size: .78rem; text-align: center;
}
.pg-learn .learn-progress .rail-note { font-size: .62rem; }

/* Motto */
.pg-learn .learn-motto blockquote { font-size: .86rem; font-weight: 650; }
.pg-learn .learn-motto small { font-size: .64rem; }

/* Paths: tighter, prominent icons */
.pg-learn .l-path-head .cal-ico { width: 42px; height: 42px; }
.pg-learn .l-path-head .cal-ico svg { width: 24px; height: 24px; }
.pg-learn .path-card .state-pill { margin-top: .2rem; }

/* Quick resources: prominent colored icon tiles */
.pg-learn .l-res-row { padding: .55rem .6rem; gap: .65rem; }
.pg-learn .l-res-row .cal-ico { width: 38px; height: 38px; border-radius: 10px; }
.pg-learn .l-res-row .cal-ico svg { width: 21px; height: 21px; }
.pg-learn .l-res-row:nth-child(1) .cal-ico { color: #7fd7ef; }
.pg-learn .l-res-row:nth-child(2) .cal-ico { color: #37d67a; }
.pg-learn .l-res-row:nth-child(3) .cal-ico { color: #f0a13a; }
.pg-learn .l-res-row:nth-child(4) .cal-ico { color: #c48ef2; }
.pg-learn .l-res-row b { font-size: .76rem; }
.pg-learn .l-res-row small { font-size: .6rem; }

/* Category icon accents per reference */
.pg-learn .learn-cat:nth-child(1) .cal-ico { color: #f0a13a; border-color: rgba(240, 138, 36, .4); background: rgba(240, 138, 36, .1); }
.pg-learn .learn-cat:nth-child(2) .cal-ico { color: #7fd7ef; }
.pg-learn .learn-cat:nth-child(3) .cal-ico { color: #37d67a; border-color: rgba(55, 214, 122, .35); }
.pg-learn .learn-cat:nth-child(4) .cal-ico { color: #7fd7ef; }
.pg-learn .learn-cat:nth-child(5) .cal-ico { color: #c48ef2; border-color: rgba(196, 142, 242, .35); }
.pg-learn .learn-cat:nth-child(6) .cal-ico { color: #ff7d6b; border-color: rgba(255, 125, 107, .35); }
.pg-learn .learn-cats { height: 92px; margin-top: 12px; }
.pg-learn .learn-featured-grid { margin-top: 14px; }
.pg-learn .learn-paths-grid { margin-top: 16px; margin-bottom: 0; }

/* Clock icon exists in lico? 'clock' not defined in lico macro - fallback circle.
   Add a scoped fix: reuse 'candles-mini' style sizing only. */
@media (max-width: 1180px) {
    .pg-learn .page-hero-learn { height: auto; max-height: none; }
    .pg-learn .course-art { flex-basis: 130px; height: 130px; }
}

/* ============================================================
   PARTNERS PASS 2 - DENSITY / ICON PROMINENCE / SOURCE BRAND TILES
   ============================================================ */

/* Hero: keep 265-270, compact */
.pg-partners .page-hero-partners { min-height: 266px; }

/* Categories: 228px equal cards, prominent 52px icon tiles */
.pg-partners .p-cats { height: 228px; gap: 11px; margin-top: 14px; }
.pg-partners .p-cats .cal-ico { width: 52px; height: 52px; border-radius: 13px; flex: 0 0 52px; }
.pg-partners .p-cats .cal-ico svg { width: 30px; height: 30px; display: block; }
.pg-partners .p-cat { padding: .9rem .85rem .8rem; gap: .35rem; }
.pg-partners .p-cat b { font-size: .84rem; font-weight: 900; line-height: 1.25; }
.pg-partners .p-cat p { font-size: .66rem; line-height: 1.45; }
.pg-partners .p-cat-btn { height: 40px; font-size: .76rem; }
.pg-partners .p-database { color: #7fd7ef; }
.pg-partners .p-gear { color: #c48ef2; border-color: rgba(196, 142, 242, .35); }
.pg-partners .p-people { color: #ff7d6b; border-color: rgba(255, 125, 107, .35); }
.pg-partners .p-megaphone { color: #8fb7e8; }

/* Second row: 260px equal height, roomier benefit cells */
.pg-partners .p-mid { height: 260px; gap: 11px; }
.pg-partners .p-benefit-grid { gap: 9px; }
.pg-partners .p-benefit-grid .cal-ico { width: 36px; height: 36px; flex: 0 0 36px; }
.pg-partners .p-benefit-grid .cal-ico svg { width: 21px; height: 21px; }
.pg-partners .p-benefit-grid b { font-size: .76rem; }
.pg-partners .p-benefit-grid span { font-size: .64rem; line-height: 1.4; }

/* Featured/testimonial polish: candle-grid motif + glow lower-right */
.pg-partners .p-featured-body {
    background:
        linear-gradient(0deg, rgba(5, 9, 14, .2), transparent 55%),
        repeating-linear-gradient(90deg, transparent 0 22px, rgba(110, 160, 210, .08) 22px 23px),
        repeating-linear-gradient(0deg, transparent 0 18px, rgba(110, 160, 210, .06) 18px 19px),
        radial-gradient(circle at 78% 78%, rgba(240, 138, 36, .22), transparent 46%),
        linear-gradient(135deg, #0d141d 0%, #0f1722 70%);
}

/* Platforms & Data Sources: 84px premium branded-color service tiles */
.pg-partners .p-source-rail { gap: 10px; margin-top: 8px; }
.pg-partners .p-source-tile {
    height: 84px; gap: .6rem; padding: 0 .8rem;
    justify-content: flex-start; font-size: .78rem; font-weight: 800;
    border-color: rgba(110, 160, 210, .4);
    box-shadow: inset 0 1px 0 rgba(120, 180, 220, .06);
}
.pg-partners .src-brand {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px;
    width: 40px; height: 40px; border-radius: 10px;
}
.pg-partners .src-brand svg { width: 24px; height: 24px; display: block; }
.pg-partners .src-coingecko .src-brand { background: rgba(53, 200, 143, .16); border: 1px solid rgba(53, 200, 143, .4); color: #35c88f; }
.pg-partners .src-altme .src-brand { background: rgba(240, 138, 36, .14); border: 1px solid rgba(240, 138, 36, .4); color: #f0a13a; }
.pg-partners .src-bybit .src-brand { background: rgba(247, 197, 65, .14); border: 1px solid rgba(247, 197, 65, .4); color: #f7c541; }
.pg-partners .src-bnfut .src-brand { background: rgba(240, 161, 58, .12); border: 1px solid rgba(240, 161, 58, .35); color: #f0a13a; }
.pg-partners .src-te .src-brand { background: rgba(110, 160, 210, .14); border: 1px solid rgba(110, 160, 210, .4); color: #8fb7e8; }
.pg-partners .src-tg .src-brand { background: rgba(41, 171, 226, .14); border: 1px solid rgba(41, 171, 226, .4); color: #29abe2; }
.pg-partners .p-source-tile:hover { transform: translateY(-2px); border-color: rgba(240, 138, 36, .45); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }

/* Rhythm */
.pg-partners .p-sources { margin-top: 16px; margin-bottom: 0; }
.pg-partners .p-source-note { margin: .45rem 0 0; }

@media (max-width: 1180px) {
    .pg-partners .p-cats { height: auto; }
    .pg-partners .p-cat { min-height: 196px; }
    .pg-partners .p-mid { height: auto; }
    .pg-partners .p-source-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============================================================
   LEARN PASS 4 - FINAL FIDELITY POLISH (badges / icons / density)
   ============================================================ */

/* Course level badges: taxonomy labels, semantic colors, top-left of artwork */
.pg-learn .course-level {
    position: absolute; left: 10px; top: 10px; z-index: 2;
    padding: .22rem .6rem; border-radius: 999px;
    font-size: .62rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase;
    color: #fff;
}
.pg-learn .lvl-beginner { background: rgba(55, 214, 122, .28); border: 1px solid rgba(55, 214, 122, .65); box-shadow: 0 0 12px rgba(55, 214, 122, .25); }
.pg-learn .lvl-inter { background: rgba(110, 170, 235, .28); border: 1px solid rgba(110, 170, 235, .65); box-shadow: 0 0 12px rgba(110, 170, 235, .25); }
.pg-learn .lvl-advanced { background: rgba(240, 138, 36, .26); border: 1px solid rgba(240, 138, 36, .65); box-shadow: 0 0 12px rgba(240, 138, 36, .25); }

/* Coming Soon pill stays, tucked top-right */
.pg-learn .course-art .state-pill { position: absolute; right: 10px; top: 10px; z-index: 2; }

/* Bottom action row: Start Course presentational + publishing soon */
.pg-learn .course-actions {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    margin-top: auto; padding-top: .4rem; border-top: 1px solid rgba(110, 160, 210, .18);
}
.pg-learn .course-start {
    padding: .28rem .7rem; border-radius: 7px;
    background: rgba(240, 138, 36, .12); border: 1px solid rgba(240, 138, 36, .45);
    color: var(--brand-orange); font-size: .68rem; font-weight: 800;
}
.pg-learn .course-soon { display: inline-flex; align-items: center; gap: .3rem; color: var(--text-dim); font-size: .62rem; }
.pg-learn .course-soon svg { width: 13px; height: 13px; display: block; }
.pg-learn .course-body .course-cta { display: none; }

/* Hero CTA: stronger filled treatment */
.pg-learn .hero-actions-col .button { height: 44px; display: inline-flex; align-items: center; padding: 0 1.2rem; font-weight: 800; border-radius: 8px; }

/* Categories: bigger icon tiles */
.pg-learn .learn-cat .cal-ico { width: 46px; height: 46px; border-radius: 11px; }
.pg-learn .learn-cat .cal-ico svg { width: 26px; height: 26px; }

/* Progress: larger ring + roomier tiles, nothing clipped */
.pg-learn .learn-progress { padding: .9rem 1rem; gap: .1rem; }
.pg-learn .lp-ring-wrap { width: 108px; height: 108px; }
.pg-learn .lp-ring { border-width: 12px; border-color: rgba(70, 100, 130, .3); border-top-color: rgba(55, 214, 122, .4); }
.pg-learn .lp-ring-value { font-size: 1.2rem; }
.pg-learn .lp-metric-ico { width: 36px; height: 36px; border-radius: 10px; color: #7fd7ef; }
.pg-learn .lp-metric-ico svg { width: 21px; height: 21px; }

/* Paths: prominent 50px icon tiles */
.pg-learn .l-path-head .cal-ico { width: 50px; height: 50px; border-radius: 12px; }
.pg-learn .l-path-head .cal-ico svg { width: 28px; height: 28px; }

/* Quick resources: solid borders, 50px rows, prominent tiles, no dashed artifacts */
.pg-learn .l-res-row { min-height: 50px; padding: .45rem .6rem; gap: .6rem; border: 1px solid rgba(110, 160, 210, .32); border-radius: 10px; }
.pg-learn .l-res-row .cal-ico { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 9px; }
.pg-learn .l-res-row .cal-ico svg { width: 24px; height: 24px; }
.pg-learn .l-res-row:nth-child(1) .cal-ico { color: #7fd7ef; }
.pg-learn .l-res-row:nth-child(2) .cal-ico { color: #37d67a; border-color: rgba(55, 214, 122, .4); background: rgba(55, 214, 122, .08); }
.pg-learn .l-res-row:nth-child(3) .cal-ico { color: #f0a13a; border-color: rgba(240, 138, 36, .4); background: rgba(240, 138, 36, .08); }
.pg-learn .l-res-row:nth-child(4) .cal-ico { color: #c48ef2; border-color: rgba(196, 142, 242, .4); background: rgba(196, 142, 242, .08); }
.pg-learn .l-res-row:nth-child(1) .cal-ico { border-color: rgba(110, 160, 210, .4); background: rgba(110, 160, 210, .1); }
.pg-learn .l-res-row.is-soon { border-style: solid; opacity: .85; }
.pg-learn .l-res-row small { font-size: .6rem; }
.pg-learn .l-res-row b { font-size: .76rem; }

/* Card surfaces: dark navy gradient + inner highlight */
.pg-learn .course-card, .pg-learn .path-card, .pg-learn .learn-cat,
.pg-learn .learn-progress, .pg-learn .learn-motto, .pg-learn .learn-resources {
    background: linear-gradient(180deg, rgba(13, 22, 32, .92), rgba(7, 12, 18, .92));
    box-shadow: inset 0 1px 0 rgba(120, 180, 220, .06);
}

/* ============================================================
   PARTNERS PASS 3 - FINAL POLISH (reference fidelity / density)
   ============================================================ */

/* Hero: stronger cyan border, text contrast */
.pg-partners .page-hero-partners { border-color: rgba(88, 158, 205, .5); }
.pg-partners .page-hero-partners .lead b { font-weight: 850; }
.pg-partners .hero-actions-col .button { height: 44px; display: inline-flex; align-items: center; padding: 0 1.2rem; font-weight: 800; border-radius: 8px; }

/* Surfaces: navy gradient + inner highlight across Partners cards */
.pg-partners .p-cat, .pg-partners .p-mid .panel, .pg-partners .p-source-tile {
    background: linear-gradient(145deg, rgba(15, 26, 40, .98), rgba(8, 16, 27, .98));
    box-shadow: inset 0 1px 0 rgba(120, 180, 220, .07);
}
.pg-partners .p-mid .panel { border-color: rgba(35, 160, 220, .34); }

/* Categories: 229px, larger 54px icon tiles, stronger hierarchy */
.pg-partners .p-cats { height: 229px; }
.pg-partners .p-cats .cal-ico { width: 54px; height: 54px; border-radius: 13px; }
.pg-partners .p-cats .cal-ico svg { width: 30px; height: 30px; }
.pg-partners .p-cat { padding: 1rem .9rem .85rem; gap: .4rem; }
.pg-partners .p-cat b { font-size: .88rem; font-weight: 900; }
.pg-partners .p-cat p { font-size: .68rem; line-height: 1.48; color: var(--text-muted); }
.pg-partners .p-cat-btn { height: 40px; width: 100%; font-size: .78rem; border-color: rgba(240, 138, 36, .75); }
.pg-partners .p-cat-btn:hover { background: rgba(240, 138, 36, .16); border-color: #f08a24; }
.pg-partners .p-cat.is-active { border-color: rgba(240, 138, 36, .6); box-shadow: 0 0 22px rgba(240, 138, 36, .12); }

/* Why Partner: bigger colored benefit tiles (green/blue/cyan/purple/orange/gold) */
.pg-partners .p-benefit-grid .cal-ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; }
.pg-partners .p-benefit-grid .cal-ico svg { width: 22px; height: 22px; }
.pg-partners .p-benefit-grid > div { padding: .5rem .6rem; border-radius: 10px; }
.pg-partners .p-benefit-grid > div:nth-child(1) .cal-ico { color: #37d67a; border-color: rgba(55, 214, 122, .4); background: rgba(55, 214, 122, .08); }
.pg-partners .p-benefit-grid > div:nth-child(2) .cal-ico { color: #8fb7e8; border-color: rgba(110, 160, 210, .4); }
.pg-partners .p-benefit-grid > div:nth-child(3) .cal-ico { color: #7fd7ef; }
.pg-partners .p-benefit-grid > div:nth-child(4) .cal-ico { color: #c48ef2; border-color: rgba(196, 142, 242, .4); background: rgba(196, 142, 242, .08); }
.pg-partners .p-benefit-grid > div:nth-child(5) .cal-ico { color: #f0a13a; border-color: rgba(240, 138, 36, .4); background: rgba(240, 138, 36, .08); }
.pg-partners .p-benefit-grid > div:nth-child(6) .cal-ico { color: #f5c94b; border-color: rgba(245, 201, 75, .4); background: rgba(245, 201, 75, .08); }
.pg-partners .p-benefit-grid b { font-size: .76rem; }
.pg-partners .p-benefit-grid span { font-size: .63rem; }

/* Featured: 50px handshake emblem, stronger motif */
.pg-partners .p-featured-logo-slot .cal-ico { width: 52px; height: 52px; border-radius: 13px; }
.pg-partners .p-featured-logo-slot .cal-ico svg { width: 30px; height: 30px; color: #f0a13a; border-color: rgba(240, 138, 36, .45); }
.pg-partners .p-featured-title { font-size: .98rem; letter-spacing: .08em; line-height: 1.3; }

/* Testimonials: larger quote tile + aligned nav */
.pg-partners .p-testi-quote .cal-ico { width: 48px; height: 48px; border-radius: 12px; }
.pg-partners .p-testi-quote .cal-ico svg { width: 27px; height: 27px; }
.pg-partners .p-testi-nav .p-nav-arrow .cal-ico { width: 28px; height: 28px; }
.pg-partners .p-testi-nav .p-nav-arrow .cal-ico svg { width: 15px; height: 15px; }
.pg-partners .p-testi-nav { justify-content: center; }

/* Platforms & Data Sources: 86px tiles + service-type sublines */
.pg-partners .p-source-tile { height: 86px; gap: .65rem; padding: 0 1rem; font-size: .8rem; font-weight: 800; border-color: rgba(35, 160, 220, .4); border-radius: 9px; }
.pg-partners .src-brand { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px; }
.pg-partners .src-brand svg { width: 25px; height: 25px; }
.pg-partners .p-source-type { display: block; color: var(--text-dim); font-size: .6rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pg-partners .p-sources { margin-bottom: 0; }
.pg-partners .p-source-note { margin: .45rem 0 .1rem; }

/* Section titles slightly stronger */
.pg-partners .section-heading h2 { font-size: 1.3rem; font-weight: 850; }
.pg-partners .panel-head h2 { font-size: 1.02rem; }

@media (max-width: 1180px) {
    .pg-partners .p-cats { height: auto; }
    .pg-partners .p-mid { height: auto; }
}

/* PARTNERS PASS 4 - official brand marks in source tiles */
.pg-partners .src-brand img { display: block; width: 26px; height: 26px; object-fit: contain; }
.pg-partners .src-coingecko .src-brand img { width: 28px; }

/* PARTNERS PASS 4B - official logo-dominant rail */
.pg-partners .p-source-tile { height: 78px; padding: 10px 14px; justify-content: center; border-color: rgba(25, 150, 210, .35); border-radius: 8px; }
.pg-partners .src-brand { width: auto; height: auto; border: 0; background: transparent; flex: 0 0 auto; border-radius: 0; }
.pg-partners .src-brand img { width: auto; height: auto; max-width: 120px; max-height: 40px; object-fit: contain; }
.pg-partners .p-source-name { display: flex; flex-direction: column; line-height: 1.15; }
.pg-partners .p-source-type { margin-top: .15rem; }

/* PARTNERS PASS 5 - Exchanges & Trading Platforms rail + spacing */
.pg-partners .p-exchanges { margin-top: 15px; }
.pg-partners .p-exchanges .section-heading { margin-bottom: 8px; }
.pg-partners .p-ex-rail { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; }
.pg-partners .p-ex-tile {
    display: flex; align-items: center; justify-content: center;
    height: 72px; padding: 10px 12px;
    border: 1px solid rgba(25, 150, 210, .35); border-radius: 8px;
    background: linear-gradient(145deg, rgba(7, 18, 29, .98), rgba(5, 13, 22, .98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
    transition: border-color .15s ease, transform .15s ease;
}
.pg-partners .p-ex-tile:hover { border-color: rgba(25, 150, 210, .6); transform: translateY(-1px); }
.pg-partners .p-ex-tile img { display: block; width: auto; height: auto; max-width: 110px; max-height: 34px; object-fit: contain; }
.pg-partners .p-ex-tile.is-text {
    color: var(--text); font-size: .92rem; font-weight: 900; letter-spacing: .06em;
    font-variant: small-caps;
}
.pg-partners .p-ex-tile.is-text:nth-child(3) { color: #7fd7ef; }
.pg-partners .p-ex-tile.is-text:nth-child(4) { color: #8fb7e8; }
.pg-partners .p-ex-tile.is-text:nth-child(5) { color: #37d67a; }
.pg-partner .p-ex-pending { display: none; }
.pg-partners .p-ex-pending {
    display: flex; align-items: center; gap: .6rem;
    margin-top: 8px; padding: .55rem .9rem;
    border: 1px solid rgba(240, 138, 36, .35); border-radius: 9px;
    background: rgba(240, 138, 36, .06);
}
.pg-partners .p-ex-pending .cal-ico { width: 26px; height: 26px; border-radius: 7px; color: #f0a13a; }
.pg-partners .p-ex-pending .cal-ico svg { width: 15px; height: 15px; }
.pg-partners .p-ex-pending b { color: var(--text); font-size: .76rem; }
.pg-partners .p-ex-note { margin-left: auto; color: var(--text-muted); font-size: .68rem; }

@media (max-width: 1180px) {
    .pg-partners .p-ex-rail { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .pg-partners .p-ex-note { margin-left: 0; }
}
@media (max-width: 720px) {
    .pg-partners .p-ex-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-partners .p-ex-pending { flex-wrap: wrap; }
}

/* ============================================================
   LEARN PASS 5 - LOWER-SECTION FIDELITY (taller cards / metadata / CTA)
   ============================================================ */

/* Featured: 380px section -> ~340px course cards */
.pg-learn .learn-featured-grid { height: 380px; max-height: 380px; margin-top: 14px; }
.pg-learn .course-art { flex: 0 0 172px; height: 172px; min-height: 172px; max-height: 172px; }
.pg-learn .course-body { padding: .85rem .9rem .85rem; }
.pg-learn .course-body h3 { font-size: .98rem; font-weight: 900; line-height: 1.2; }
.pg-learn .course-body p { font-size: .76rem; line-height: 1.5; margin-bottom: .4rem; }
.pg-learn .course-meta {
    display: flex; align-items: center; justify-content: space-between; gap: .4rem;
    margin-bottom: .55rem; color: var(--text-muted); font-size: .64rem;
}
.pg-learn .course-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.pg-learn .course-meta svg { width: 14px; height: 14px; display: block; }
.pg-learn .course-btn {
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    height: 40px; width: 100%; border-radius: 8px;
    background: var(--brand-orange); border: 1px solid var(--brand-orange);
    color: #141414; font-size: .78rem; font-weight: 900;
}
.pg-learn .course-actions { display: none; }

/* Progress panel: ring 110px left, metrics right */
.pg-learn .learn-featured-grid .learn-rail { grid-template-rows: minmax(0, 2.5fr) minmax(0, 1fr); }
.pg-learn .learn-progress { padding: .85rem 1rem; align-content: space-between; }
.pg-learn .lp-ring-wrap { width: 112px; height: 112px; }
.pg-learn .lp-ring { border-width: 13px; }
.pg-learn .lp-ring-value { font-size: 1.3rem; }
.pg-learn .lp-rows li { padding: .42rem 0; }
.pg-learn .lp-metric-ico { width: 36px; height: 36px; }
.pg-learn .lp-metric-ico:nth-of-type(1), .pg-learn .lp-rows li:nth-child(1) .lp-metric-ico { color: #f5c94b; border-color: rgba(245, 201, 75, .4); background: rgba(245, 201, 75, .08); }
.pg-learn .lp-rows li:nth-child(2) .lp-metric-ico { color: #7fd7ef; }
.pg-learn .lp-rows li span:not(.lp-metric-ico) { font-size: .72rem; }
.pg-learn .lp-rows { margin-bottom: .35rem; }

/* Motto: 115px, quote icon left */
.pg-learn .learn-motto { padding: .9rem 1.05rem; }
.pg-learn .l-quote-ico { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; flex: none; border-radius: 9px; border: 1px solid rgba(240, 138, 36, .4); background: rgba(240, 138, 36, .1); color: #f0a13a; }
.pg-learn .l-quote-ico svg { width: 20px; height: 20px; display: block; }
.pg-learn .l-quote-copy { min-width: 0; }
.pg-learn .learn-motto { flex-direction: row; align-items: center; gap: .8rem; height: 118px; }

/* Paths: 285px section -> ~250px cards */
.pg-learn .learn-paths-grid { height: 285px; max-height: 285px; margin-top: 16px; }
.pg-learn .path-card { padding: .9rem 1rem .85rem; gap: .35rem; }
.pg-learn .l-path-head .cal-ico { width: 52px; height: 52px; border-radius: 13px; }
.pg-learn .l-path-head .cal-ico svg { width: 29px; height: 29px; }
.pg-learn .l-path-head p.eyebrow { font-size: .62rem; letter-spacing: .1em; color: #ff9d3f; text-transform: uppercase; font-weight: 800; }
.pg-learn .l-path-head h3 { font-size: 1.02rem; font-weight: 900; }
.pg-learn .path-card > p { font-size: .74rem; line-height: 1.45; }
.pg-learn .l-path-meta { display: flex; gap: .8rem; color: var(--text-muted); font-size: .66rem; margin: .1rem 0 .15rem; }
.pg-learn .l-path-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.pg-learn .l-path-meta svg { width: 14px; height: 14px; display: block; }
.pg-learn .l-path-progress { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .55rem; margin: .1rem 0 .2rem; }
.pg-learn .l-path-progress small { color: var(--text-muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; }
.pg-learn .l-path-progress b { color: var(--text); font-size: .76rem; font-weight: 850; }
.pg-learn .l-path-btn {
    display: flex; align-items: center; justify-content: center; gap: .35rem;
    height: 40px; width: 100%; border-radius: 8px; margin-top: auto;
    background: rgba(240, 138, 36, .12); border: 1px solid rgba(240, 138, 36, .55);
    color: var(--brand-orange); font-size: .74rem; font-weight: 850;
}
.pg-learn .path-card .state-pill { display: none; }

/* Quick Resources: 44px tiles, 50px rows */
.pg-learn .learn-resources { padding: .9rem 1rem; }
.pg-learn .learn-resources .rail-head .cal-ico { width: 32px; height: 32px; border-radius: 9px; }
.pg-learn .l-res-row { min-height: 52px; padding: .5rem .65rem; }
.pg-learn .l-res-row .cal-ico { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; }
.pg-learn .l-res-row .cal-ico svg { width: 24px; height: 24px; }
.pg-learn .l-res-row b { font-size: .78rem; }
.pg-learn .l-res-row small { font-size: .62rem; }

@media (max-width: 1180px) {
    .pg-learn .learn-featured-grid, .pg-learn .learn-paths-grid { height: auto; max-height: none; }
    .pg-learn .course-art { flex-basis: 150px; height: 150px; }
    .pg-learn .learn-motto { flex-direction: row; height: auto; }
}
@media (max-width: 720px) {
    .pg-learn .learn-motto { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   LEARN PASS 5B - RIGHT RAIL + TELEGRAM CTA REFERENCE FIDELITY
   ============================================================ */

/* ---- Rail split: Progress flexible / Motto fixed 110px ---- */
.pg-learn .learn-featured-grid .learn-rail { grid-template-rows: minmax(0, 1fr) 110px; gap: 11px; }
.pg-learn .learn-rail .rail-panel { box-sizing: border-box; min-width: 0; }

/* ---- Panel headers: gold, left aligned, icon tile + pill centered ---- */
.pg-learn .rail-head { display: flex; align-items: center; gap: .55rem; }
.pg-learn .rail-head .eyebrow { margin: 0; color: var(--brand-gold); font-size: .8rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.pg-learn .rail-head .l-soon-pill { margin-left: auto; }
.pg-learn .learn-progress .rail-head .cal-ico { width: 34px; height: 34px; border-radius: 9px; color: #f5c94b; border-color: rgba(245, 201, 75, .4); background: rgba(245, 201, 75, .08); }
.pg-learn .learn-progress .rail-head .cal-ico svg { width: 20px; height: 20px; }
.pg-learn .learn-resources .rail-head .cal-ico { width: 32px; height: 32px; border-radius: 9px; color: #7fd7ef; }
.pg-learn .learn-resources .rail-head .cal-ico svg { width: 19px; height: 19px; }

/* ---- Learning Progress: two-column body, large ring left, metrics right ---- */
.pg-learn .learn-progress { padding: .85rem 1rem; }
.pg-learn .lp-ring-wrap { width: 122px; height: 122px; }
.pg-learn .lp-ring {
    border-width: 13px;
    border-color: rgba(70, 100, 130, .3);
    border-top-color: rgba(127, 215, 239, .5);
    box-shadow: 0 0 18px rgba(127, 215, 239, .08), inset 0 0 14px rgba(10, 18, 28, .6);
}
.pg-learn .lp-ring-value { font-size: 1.35rem; font-weight: 900; letter-spacing: .02em; }
.pg-learn .lp-ring-label { font-size: .6rem; }
.pg-learn .lp-rows li {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .6rem; align-items: center; padding: .44rem 0;
}
.pg-learn .lp-rows li:nth-child(1) .lp-metric-ico { color: #f5c94b; border-color: rgba(245, 201, 75, .4); background: rgba(245, 201, 75, .08); }
.pg-learn .lp-rows li:nth-child(2) .lp-metric-ico { color: #7fd7ef; }
.pg-learn .lp-rows li:nth-child(3) .lp-metric-ico { color: #37d67a; border-color: rgba(55, 214, 122, .4); background: rgba(55, 214, 122, .08); }
.pg-learn .lp-rows span:not(.lp-metric-ico) { font-size: .73rem; color: var(--text-muted); }
.pg-learn .lp-rows b { font-size: .98rem; font-weight: 800; color: var(--text); }

/* Progress CTA: strong full-width orange, presentational only */
.pg-learn .lp-continue.is-soon {
    height: 43px; border: 0; border-radius: 8px; padding: 0 .8rem;
    background: linear-gradient(180deg, #f5a845, #e88a1c);
    color: #141414; font-size: .8rem; font-weight: 900; letter-spacing: .01em;
    box-shadow: 0 4px 14px rgba(240, 138, 36, .25);
    cursor: default;
}

/* ---- Bull-Eye Motto: cinematic wallpaper background, left-aligned ---- */
.pg-learn .learn-motto {
    height: 110px; padding: .8rem 1rem; overflow: hidden;
    flex-direction: row; align-items: center; gap: .8rem;
    border-color: rgba(110, 160, 210, .45);
    background:
        linear-gradient(90deg, rgba(5, 9, 14, .94) 0%, rgba(5, 9, 14, .72) 55%, rgba(5, 9, 14, .38) 100%),
        radial-gradient(circle at 88% 20%, rgba(240, 138, 36, .16), transparent 46%),
        url("/static/images/hero-wallpapers/learn-hero.webp.png") center / cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(110, 160, 210, .08), 0 0 22px rgba(240, 138, 36, .06);
}
.pg-learn .l-quote-ico { width: 38px; height: 38px; border-radius: 10px; }
.pg-learn .l-quote-ico svg { width: 22px; height: 22px; }
.pg-learn .learn-motto .eyebrow { margin: 0 0 .1rem; font-size: .58rem; color: var(--text-dim); }
.pg-learn .learn-motto blockquote { font-size: 1.02rem; font-weight: 750; line-height: 1.25; text-align: left; }
.pg-learn .learn-motto small { font-size: .68rem; }

/* ---- Quick Resources: strict icon | text | arrow grid ---- */
.pg-learn .learn-resources { padding: .9rem 1rem; overflow: hidden; box-sizing: border-box; min-width: 0; }
.pg-learn .learn-resources .rail-head { margin-bottom: .55rem; }
.pg-learn .l-res-list { gap: 7px; }
.pg-learn .l-res-row {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px;
    align-items: center; gap: .7rem; text-align: left;
    min-height: 53px; padding: .5rem .65rem;
    border: 1px solid rgba(110, 160, 210, .32); border-radius: 10px;
    background: rgba(10, 16, 24, .6);
}
.pg-learn .l-res-row .cal-ico { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; box-sizing: border-box; }
.pg-learn .l-res-row .cal-ico svg { width: 25px; height: 25px; }
.pg-learn .l-res-row b { font-size: .8rem; font-weight: 850; line-height: 1.15; text-align: left; }
.pg-learn .l-res-row small { font-size: .65rem; line-height: 1.25; margin-top: 2px; text-align: left; }
.pg-learn .l-res-row > span { justify-self: end; font-size: .95rem; line-height: 1; }

/* ---- Join Bull-Eye on Telegram: premium CTA ---- */
.pg-learn .learn-tg-cta {
    position: relative; display: grid;
    grid-template-columns: minmax(0, .28fr) minmax(0, 1.15fr) minmax(0, .75fr);
    align-items: center; gap: 1.2rem;
    height: 192px; margin-top: 16px; padding: 1.1rem 1.4rem;
    overflow: hidden; border-radius: 12px;
    border: 1px solid rgba(110, 160, 210, .45);
    background:
        linear-gradient(90deg, rgba(5, 9, 14, .55) 0%, rgba(5, 9, 14, .8) 45%, rgba(5, 9, 14, .93) 100%),
        radial-gradient(circle at 12% 30%, rgba(240, 138, 36, .2), transparent 46%),
        radial-gradient(circle at 92% 85%, rgba(240, 138, 36, .12), transparent 42%),
        url("/static/images/hero-wallpapers/learn-hero.webp.png") center 38% / cover no-repeat;
    box-shadow: inset 0 1px 0 rgba(120, 180, 220, .07), 0 0 26px rgba(240, 138, 36, .05);
}
.pg-learn .tg-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; min-width: 0; }
.pg-learn .tg-plane {
    display: inline-flex; align-items: center; justify-content: center;
    width: 74px; height: 74px; border-radius: 18px;
    border: 1px solid rgba(240, 138, 36, .5); background: rgba(240, 138, 36, .1);
    color: #f0a13a; box-shadow: 0 0 26px rgba(240, 138, 36, .18);
}
.pg-learn .tg-plane svg { width: 38px; height: 38px; }
.pg-learn .tg-spark { width: 130px; height: auto; }
.pg-learn .tg-copy { min-width: 0; }
.pg-learn .tg-copy .eyebrow { margin: 0; color: #f5c94b; font-size: .62rem; letter-spacing: .12em; font-weight: 850; text-transform: uppercase; }
.pg-learn .tg-copy h2 { margin: .2rem 0 .3rem; font-size: 1.28rem; font-weight: 900; color: var(--text); letter-spacing: -.01em; }
.pg-learn .tg-desc { margin: 0 0 .6rem; color: var(--text-muted); font-size: .72rem; line-height: 1.45; max-width: 46ch; }
.pg-learn .tg-btn {
    display: inline-flex; align-items: center; gap: .45rem;
    height: 44px; padding: 0 1.3rem; border-radius: 8px;
    background: linear-gradient(180deg, #f5a845, #e88a1c);
    color: #141414; font-size: .8rem; font-weight: 900; text-decoration: none;
    box-shadow: 0 4px 16px rgba(240, 138, 36, .28); white-space: nowrap;
}
.pg-learn .tg-btn:hover { filter: brightness(1.06); text-decoration: none; }
.pg-learn .tg-btn .cal-ico { width: 18px; height: 18px; border: 0; background: transparent; border-radius: 0; color: #141414; }
.pg-learn .tg-btn .cal-ico svg { width: 17px; height: 17px; }
.pg-learn .tg-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; min-width: 0; }
.pg-learn .tg-benefits li { display: flex; align-items: center; gap: .5rem; color: var(--text); font-size: .74rem; font-weight: 700; text-align: left; }
.pg-learn .tg-benefits .cal-ico { width: 22px; height: 22px; border: 0; background: transparent; border-radius: 0; color: #37d67a; }
.pg-learn .tg-benefits .cal-ico svg { width: 16px; height: 16px; }

/* ---- Responsive ---- */
@media (max-width: 1180px) {
    .pg-learn .learn-tg-cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: auto; row-gap: .8rem; padding: 1rem 1.1rem; }
    .pg-learn .tg-visual { grid-row: 1 / 3; }
    .pg-learn .tg-copy h2 { font-size: 1.12rem; }
}
@media (max-width: 720px) {
    .pg-learn .learn-tg-cta { grid-template-columns: 1fr; }
    .pg-learn .learn-motto { height: auto; min-height: 110px; }
    .pg-learn .tg-visual { grid-row: auto; flex-direction: row; justify-content: flex-start; }
    .pg-learn .tg-plane { width: 56px; height: 56px; border-radius: 14px; }
    .pg-learn .tg-plane svg { width: 28px; height: 28px; }
    .pg-learn .tg-spark { display: none; }
    .pg-learn .tg-benefits { grid-template-columns: 1fr 1fr; }
    .pg-learn .lp-ring-wrap { width: 104px; height: 104px; }
}

/* ============================================================
   COMMUNITY PASS - FULL REFERENCE FIDELITY
   ============================================================ */

/* (pg-community desktop .wrap override removed — shared canonical shell) */

/* ---- Shared card polish ---- */
.pg-community .card, .pg-community .panel {
    border-color: rgba(110, 160, 210, .4);
    background: linear-gradient(145deg, rgba(15, 26, 40, .96), rgba(8, 16, 27, .96));
    box-shadow: inset 0 1px 0 rgba(120, 180, 220, .06);
    border-radius: 11px;
}
.pg-community .section-heading h2 { font-size: 1.32rem; font-weight: 850; margin: .1rem 0 0; }
.pg-community .section-heading > span { color: var(--text-muted); font-size: .74rem; }
.pg-community .section-heading { margin-bottom: 10px; }
.pg-community .section-heading > div > span { color: var(--text-muted); font-size: .74rem; }
.pg-community .c-follow-everywhere { color: var(--text-dim); font-size: .74rem; font-weight: 700; opacity: .7; }

/* ---- Icon wrapper base: explicit sizing (kills 300x150 SVG bug) ---- */
.pg-community .c-ico {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid rgba(110, 160, 210, .35); background: rgba(24, 42, 66, .55);
    color: #7fd7ef; box-sizing: border-box;
}
.pg-community .c-ico svg { display: block; width: 24px; height: 24px; }

/* ---- Hero: 265px, community wallpaper, 74/26 ---- */
.pg-community .page-hero-community {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 265px; max-height: 265px; height: 265px;
    margin-top: 11px; padding: 1.6rem 2.2rem;
    grid-template-columns: minmax(0, 2.6fr) minmax(250px, 1fr);
    align-items: center;
    border: 1px solid #29394a; border-radius: 13px;
    background:
        linear-gradient(90deg, rgba(5, 9, 14, .95) 0%, rgba(5, 9, 14, .84) 38%, rgba(5, 9, 14, .3) 70%, rgba(5, 9, 14, .44) 100%),
        radial-gradient(circle at 74% 34%, rgba(240, 138, 36, .16), transparent 42%),
        url("/static/images/hero-wallpapers/community-hero.webp.png") center / cover no-repeat;
}
.pg-community .page-hero-community h1 { margin: .25rem 0 .5rem; font-size: clamp(2.5rem, 3.1vw, 3.1rem); font-weight: 900; line-height: 1.02; letter-spacing: -.03em; }
.pg-community .page-hero-community h1 span { color: #f5a342; }
.pg-community .page-hero-community .eyebrow { margin-bottom: .35rem; font-size: .74rem; letter-spacing: .2em; color: #ff9d3f; }
.pg-community .page-hero-community .lead { max-width: 620px; font-size: .96rem; line-height: 1.45; }
.pg-community .page-hero-community > * { position: relative; z-index: 1; }

/* Hero benefits: 34px icon tiles + two-line copy */
.pg-community .c-hero-benefits { gap: 1.3rem; margin-top: .9rem; flex-wrap: nowrap; }
.pg-community .c-hero-benefits .hf-ico { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; }
.pg-community .c-hero-benefits .hf-ico::before { content: none; }
.pg-community .c-hero-benefits .c-ico { width: 34px; height: 34px; border-radius: 9px; color: #f0a13a; border-color: rgba(240, 138, 36, .4); background: rgba(240, 138, 36, .09); }
.pg-community .c-hero-benefits .c-ico svg { width: 19px; height: 19px; }
.pg-community .c-hero-benefits .hf-copy { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.pg-community .c-hero-benefits .hf-copy b { color: var(--text); font-weight: 800; font-size: .78rem; }
.pg-community .c-hero-benefits .hf-copy small { color: var(--text-muted); font-size: .66rem; }
.pg-community .c-hero-benefits .hf-ico:nth-child(2) .c-ico { color: #7fd7ef; border-color: rgba(110, 160, 210, .4); background: rgba(110, 160, 210, .1); }
.pg-community .c-hero-benefits .hf-ico:nth-child(3) .c-ico { color: #37d67a; border-color: rgba(55, 214, 122, .4); background: rgba(55, 214, 122, .08); }
.pg-community .c-hero-benefits .hf-ico:nth-child(4) .c-ico { color: #8fb7e8; }

.pg-community .hero-actions-col { align-self: center; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; text-align: right; padding-right: .5rem; }
.pg-community .hero-tagline { color: #f5a342; font-weight: 900; letter-spacing: .18em; font-size: .92rem; line-height: 1.85; }
.pg-community .hero-tagline-sub { margin: 0; max-width: 260px; color: var(--text-secondary); font-size: .74rem; }
.pg-community .hero-actions-col .button { height: 42px; display: inline-flex; align-items: center; padding: 0 1.15rem; font-weight: 800; border-radius: 8px; }

/* ---- Channels: heading row + 8 cards in one row ---- */
.pg-community .c-channels-head { margin-top: 13px; }
.pg-community .c-channels {
    display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 9px; height: 150px; max-height: 150px;
}
.pg-community .c-channel {
    display: flex; flex-direction: column; align-items: flex-start;
    padding: .7rem .7rem .65rem; min-width: 0; min-height: 0; overflow: hidden;
    box-sizing: border-box; text-decoration: none;
}
.pg-community .c-social { width: 46px; height: 46px; border-radius: 11px; margin-bottom: .45rem; }
.pg-community .c-social svg { width: 27px; height: 27px; }
.pg-community .c-channel b { color: var(--text); font-size: .8rem; font-weight: 800; line-height: 1.2; }
.pg-community .c-channel small { color: var(--text-muted); font-size: .64rem; margin-top: .1rem; }
.pg-community .c-channel-btn {
    margin-top: auto; display: flex; align-items: center; justify-content: center;
    width: 100%; height: 38px; border-radius: 8px;
    border: 1px solid rgba(240, 138, 36, .55); background: rgba(240, 138, 36, .08);
    color: #f0a13a; font-size: .7rem; font-weight: 800; white-space: nowrap;
}
.pg-community .c-channel.is-live { border-color: rgba(240, 138, 36, .5); }
.pg-community .c-channel.is-live .c-social { color: #29abe2; border-color: rgba(41, 171, 226, .45); background: rgba(41, 171, 226, .1); }
.pg-community a.c-channel:hover { border-color: rgba(240, 138, 36, .65); text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.pg-community .c-channel.is-soon { opacity: .82; }
.pg-community .c-channel.is-soon .c-channel-btn { border-style: dashed; border-color: rgba(110, 160, 210, .35); background: transparent; color: var(--text-dim); font-weight: 700; }
.pg-community .c-channel.is-soon .c-social { color: #8fb7e8; }
.pg-community .c-channel.is-soon:nth-child(3) .c-social, .pg-community .c-channel.is-soon:nth-child(5) .c-social { color: #c48ef2; }
.pg-community .c-channel.is-soon:nth-child(4) .c-social { color: #ff5c5c; }
.pg-community .c-channel.is-soon:nth-child(6) .c-social { color: #7fd7ef; }
.pg-community .c-channel.is-soon:nth-child(7) .c-social { color: #37d67a; }
.pg-community .c-channel.is-soon:nth-child(8) .c-social { color: #37d67a; }

/* ---- Main dashboard: 37 / 35 / 28, ~310px ---- */
.pg-community .c-dash {
    display: grid;
    grid-template-columns: minmax(0, 37fr) minmax(360px, 35fr) minmax(290px, 28fr);
    gap: 11px; margin-top: 13px; align-items: stretch;
    height: 310px; max-height: 310px;
}
.pg-community .c-dash .panel, .pg-community .c-dash .rail-panel {
    display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden;
    padding: .85rem 1rem;
}

/* Left: Why Join — 6 cards 3x2 */
.pg-community .c-why .panel-head { flex: none; margin-bottom: .5rem; }
.pg-community .c-why .panel-head h2 { font-size: 1.05rem; font-weight: 850; }
.pg-community .c-why-grid {
    flex: 1; display: grid; min-height: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.pg-community .c-why-grid > div {
    display: flex; flex-direction: column; align-items: flex-start; gap: .35rem;
    padding: .65rem .7rem; min-height: 0; overflow: hidden;
    border: 1px solid rgba(110, 160, 210, .32); border-radius: 10px;
    background: linear-gradient(160deg, rgba(13, 22, 32, .9), rgba(8, 14, 22, .9));
    box-shadow: inset 0 1px 0 rgba(120, 180, 220, .05);
}
.pg-community .c-why-grid .c-ico { width: 48px; height: 48px; border-radius: 12px; }
.pg-community .c-why-grid .c-ico svg { width: 28px; height: 28px; }
.pg-community .c-why-grid b { color: var(--text); font-size: .84rem; font-weight: 800; line-height: 1.2; }
.pg-community .c-why-grid span { color: var(--text-muted); font-size: .68rem; line-height: 1.4; }
.pg-community .c-why-grid > div:nth-child(1) .c-ico { color: #f5c94b; border-color: rgba(245, 201, 75, .4); background: rgba(245, 201, 75, .08); }
.pg-community .c-why-grid > div:nth-child(2) .c-ico { color: #7fd7ef; }
.pg-community .c-why-grid > div:nth-child(3) .c-ico { color: #37d67a; border-color: rgba(55, 214, 122, .4); background: rgba(55, 214, 122, .08); }
.pg-community .c-why-grid > div:nth-child(4) .c-ico { color: #8fb7e8; }
.pg-community .c-why-grid > div:nth-child(5) .c-ico { color: #ff5c5c; border-color: rgba(255, 92, 92, .4); background: rgba(255, 92, 92, .08); }
.pg-community .c-why-grid > div:nth-child(6) .c-ico { color: #c48ef2; border-color: rgba(196, 142, 242, .4); background: rgba(196, 142, 242, .08); }

/* Center: Live Community Feed */
.pg-community .c-feed .panel-head { flex: none; margin-bottom: .45rem; }
.pg-community .c-feed .panel-head h2 { font-size: 1.05rem; font-weight: 850; }
.pg-community .c-feed-chips { display: flex; gap: 6px; }
.pg-community .c-feed-chips .filter-chip { padding: .28rem .7rem; min-height: 28px; font-size: .64rem; border-radius: 999px; border: 1px solid rgba(110, 160, 210, .3); background: rgba(10, 16, 24, .7); }
.pg-community .c-feed-chips .filter-chip.active { background: rgba(240, 138, 36, .16); border-color: #f08a24; color: #f08a24; }
.pg-community .c-feed-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pg-community .c-feed-empty {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .3rem; text-align: center; padding: .5rem 1rem;
}
.pg-community .c-feed-empty .c-ico { width: 52px; height: 52px; border-radius: 13px; color: #f0a13a; border-color: rgba(240, 138, 36, .4); background: rgba(240, 138, 36, .08); }
.pg-community .c-feed-empty .c-ico svg { width: 30px; height: 30px; }
.pg-community .c-feed-empty b { color: var(--text); font-size: .86rem; font-weight: 850; margin-top: .2rem; }
.pg-community .c-feed-empty p { margin: 0; color: var(--text-muted); font-size: .68rem; line-height: 1.45; max-width: 40ch; }
.pg-community .c-feed-skeleton { flex: none; display: grid; gap: 7px; padding: .2rem 0 .5rem; }
.pg-community .c-feed-skel { display: flex; align-items: center; gap: .6rem; padding: .3rem .5rem; border: 1px dashed rgba(110, 160, 210, .22); border-radius: 9px; }
.pg-community .c-skel-avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; background: rgba(70, 100, 130, .22); box-shadow: inset 0 0 0 1px rgba(110, 160, 210, .18); }
.pg-community .c-skel-line { height: 9px; border-radius: 999px; background: rgba(70, 100, 130, .22); }
.pg-community .c-composer {
    flex: none; display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    padding: .45rem .6rem; border: 1px solid rgba(110, 160, 210, .3); border-radius: 9px;
    background: rgba(10, 16, 24, .65);
}
.pg-community .c-composer-input { color: var(--text-dim); font-size: .72rem; opacity: .8; }
.pg-community .c-composer-send { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(240, 138, 36, .45); background: rgba(240, 138, 36, .1); color: #f0a13a; opacity: .75; }
.pg-community .c-composer-send .c-ico, .pg-community .c-composer-send svg { width: 18px; height: 18px; border: 0; background: transparent; border-radius: 0; }

/* Right: Contributors + CTA */
.pg-community .c-rail { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 9px; min-height: 0; min-width: 0; }
.pg-community .c-rail .rail-panel { min-height: 0; min-width: 0; overflow: hidden; }
.pg-community .c-contrib .rail-head .eyebrow { margin: 0; color: var(--brand-gold); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.pg-community .c-contrib .chip { flex: none; padding: .16rem .6rem; border-radius: 999px; font-size: .58rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-gold); border-color: var(--border-gold); white-space: nowrap; }
.pg-community .c-contrib-list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; }
.pg-community .c-contrib-list li { grid-template-columns: 1.7rem 34px minmax(0, 1fr) auto; padding: .42rem 0; }
.pg-community .c-contrib-list .rail-rank { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(240, 138, 36, .4); background: rgba(240, 138, 36, .08); color: #f0a13a; font-size: .74rem; font-weight: 850; }
.pg-community .c-contrib-score { color: var(--text); font-size: .9rem; font-weight: 800; }
.pg-community .c-contrib .rail-note { font-size: .6rem; margin-top: .35rem; }
.pg-community .c-contrib-cta { gap: .2rem; padding: .7rem .95rem; border-color: rgba(240, 138, 36, .4);
    background: radial-gradient(circle at 88% 18%, rgba(240, 138, 36, .16), transparent 46%),
        linear-gradient(150deg, #101c2b, #0a0f16 78%);
}
.pg-community .c-cta-head { display: flex; align-items: center; gap: .5rem; }
.pg-community .c-cta-head .c-ico { width: 34px; height: 34px; border-radius: 9px; color: #f5c94b; border-color: rgba(245, 201, 75, .4); background: rgba(245, 201, 75, .08); }
.pg-community .c-cta-head .c-ico svg { width: 20px; height: 20px; }
.pg-community .c-cta-head .eyebrow { margin: 0; color: #f5c94b; font-size: .78rem; font-weight: 850; letter-spacing: .06em; }
.pg-community .c-contrib-cta .rail-sub { margin: 0; font-size: .66rem; line-height: 1.4; color: var(--text-muted); }
.pg-community .c-soon-btn {
    display: flex; align-items: center; justify-content: center;
    height: 34px; border-radius: 8px; margin-top: auto;
    border: 1px dashed rgba(240, 138, 36, .45); background: rgba(240, 138, 36, .06);
    color: #f0a13a; font-size: .7rem; font-weight: 800; white-space: nowrap;
}

/* ---- Bottom promo row: 50/50, ~150px ---- */
.pg-community .c-promo {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px; margin-top: 13px; margin-bottom: .4rem;
    height: 150px; max-height: 150px;
}
.pg-community .c-promo .panel { display: flex; align-items: center; gap: 1.1rem; min-width: 0; min-height: 0; overflow: hidden; padding: .9rem 1.2rem; }

/* Left: Telegram promo */
.pg-community .c-promo-tg {
    border-color: rgba(110, 160, 210, .45);
    background:
        linear-gradient(90deg, rgba(5, 9, 14, .5) 0%, rgba(5, 9, 14, .85) 40%, rgba(5, 9, 14, .95) 100%),
        radial-gradient(circle at 10% 40%, rgba(240, 138, 36, .16), transparent 42%),
        url("/static/images/hero-wallpapers/community-hero.webp.png") center / cover no-repeat;
    box-shadow: 0 0 24px rgba(240, 138, 36, .05);
}
.pg-community .c-tg-left { flex: none; display: flex; align-items: center; justify-content: center; }
.pg-community .c-phone {
    display: inline-flex; align-items: center; justify-content: center;
    width: 92px; height: 116px; border-radius: 14px 14px 0 0;
    border: 1px solid rgba(110, 160, 210, .45); border-bottom: 0;
    background: linear-gradient(180deg, rgba(13, 22, 32, .95), rgba(8, 14, 22, .95));
    box-shadow: 0 0 22px rgba(240, 138, 36, .08); overflow: hidden;
}
.pg-community .c-phone img { display: block; width: 58px; height: 58px; object-fit: contain; }
.pg-community .c-tg-copy { min-width: 0; }
.pg-community .c-tg-copy .eyebrow { margin: 0; color: #f5c94b; font-size: .6rem; letter-spacing: .12em; }
.pg-community .c-tg-copy h2 { margin: .15rem 0 .25rem; font-size: 1.06rem; font-weight: 900; color: var(--text); }
.pg-community .c-tg-desc { margin: 0 0 .5rem; color: var(--text-muted); font-size: .68rem; line-height: 1.4; max-width: 42ch; }
.pg-community .c-tg-copy .button { height: 38px; display: inline-flex; align-items: center; padding: 0 1rem; font-weight: 850; font-size: .76rem; border-radius: 8px; }
.pg-community .c-tg-perks { list-style: none; margin: 0 0 0 auto; padding: 0; display: grid; gap: .4rem; min-width: 0; }
.pg-community .c-tg-perks li { display: flex; align-items: center; gap: .5rem; color: var(--text); font-size: .72rem; font-weight: 700; text-align: left; white-space: nowrap; }
.pg-community .c-tg-perks .c-ico { width: 22px; height: 22px; border: 0; background: transparent; border-radius: 0; color: #37d67a; }
.pg-community .c-tg-perks .c-ico svg { width: 16px; height: 16px; }

/* Right: Stay Connected Everywhere */
.pg-community .c-promo-social { flex-direction: column; align-items: stretch; justify-content: center; gap: .45rem; }
.pg-community .c-promo-social .rail-head { margin-bottom: 0; }
.pg-community .c-promo-social .rail-head .eyebrow { margin: 0; color: var(--brand-gold); font-size: .8rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.pg-community .c-social-sub { margin: 0; color: var(--text-muted); font-size: .68rem; }
.pg-community .c-social-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: .3rem; }
.pg-community .c-social-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 11px;
    border: 1px solid rgba(110, 160, 210, .4); background: rgba(24, 42, 66, .6);
    color: #8fb7e8; box-sizing: border-box;
}
.pg-community .c-social-btn .c-ico, .pg-community .c-social-btn svg { width: 24px; height: 24px; border: 0; background: transparent; border-radius: 0; }
.pg-community .c-social-btn.is-live { color: #29abe2; border-color: rgba(41, 171, 226, .5); background: rgba(41, 171, 226, .1); box-shadow: 0 0 14px rgba(41, 171, 226, .15); }
.pg-community .c-social-btn.is-soon { opacity: .45; border-style: dashed; }

/* Footer proximity */
.pg-community .c-promo { margin-bottom: 0; }

/* ---- Responsive ---- */
@media (max-width: 1180px) {
    .pg-community .page-hero-community { height: auto; min-height: 0; max-height: none; }
    .pg-community .c-channels { grid-template-columns: repeat(4, minmax(0, 1fr)); height: auto; }
    .pg-community .c-channel { min-height: 146px; }
    .pg-community .c-dash { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: auto; }
    .pg-community .c-why { grid-row: 1 / 3; }
    .pg-community .c-rail { grid-row: 1; grid-column: 2; }
    .pg-community .c-feed { grid-column: 2; min-height: 300px; }
    .pg-community .c-why-grid { grid-template-rows: auto; }
    .pg-community .c-why-grid > div { min-height: 118px; }
    .pg-community .c-promo { height: auto; max-height: none; }
    .pg-community .c-promo .panel { min-height: 150px; }
    .pg-community .c-tg-perks { margin-left: .5rem; }
}
@media (max-width: 820px) {
    .pg-community .c-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-community .c-dash { grid-template-columns: 1fr; }
    .pg-community .c-why, .pg-community .c-feed, .pg-community .c-rail { grid-row: auto; grid-column: auto; }
    .pg-community .c-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-community .c-hero-benefits { flex-wrap: wrap; gap: .8rem; }
    .pg-community .c-promo { grid-template-columns: 1fr; }
    .pg-community .c-tg-perks { margin-left: 0; }
    .pg-community .c-promo-tg { flex-wrap: wrap; }
}
@media (max-width: 560px) {
    .pg-community .c-why-grid { grid-template-columns: 1fr; }
    .pg-community .c-channels { grid-template-columns: 1fr; }
    .pg-community .c-channel { min-height: 132px; }
    .pg-community .page-hero-community { grid-template-columns: 1fr; }
    .pg-community .hero-actions-col { justify-self: start; align-items: flex-start; text-align: left; }
    .pg-community .hero-tagline { text-align: left; }
    .pg-community .c-promo .panel { flex-wrap: wrap; }
    .pg-community .c-phone { display: none; }
}

/* ============================================================
   PARTNERS PASS 6 - BRAND RAIL POLISH (exchanges + data sources)
   ============================================================ */

/* Exchange tiles: 74px, logo-dominant lockups */
.pg-partners .p-ex-rail { gap: 10px; }
.pg-partners .p-ex-tile {
    height: 74px; padding: 6px 8px; border-radius: 9px;
    border-color: rgba(110, 160, 210, .38);
    background: linear-gradient(145deg, rgba(10, 23, 37, .98), rgba(5, 14, 25, .98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.pg-partners .p-ex-tile:hover {
    transform: translateY(-2px); border-color: rgba(25, 150, 210, .55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 14px rgba(25, 150, 210, .12);
}
.pg-partners .p-ex-tile:first-child:hover { border-color: rgba(240, 180, 41, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 14px rgba(240, 180, 41, .1); }
.pg-partners .p-ex-lockup { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-width: 0; max-width: 100%; }
.pg-partners .p-ex-lockup img { width: 34px; height: 34px; object-fit: contain; display: block; flex: none; }
.pg-partners .p-ex-lockup b { color: var(--text); font-size: .98rem; font-weight: 900; letter-spacing: .05em; white-space: nowrap; }

/* Typographic wordmarks for unsourced exchanges */
.pg-partners .p-wordmark { font-size: 1.18rem; font-weight: 900; letter-spacing: .05em; }
.pg-partners .wm-okx { color: #f2f6fa; font-weight: 900; letter-spacing: .12em; }
.pg-partners .wm-mexc { color: #8fd0f5; }
.pg-partners .wm-kucoin { color: #37d67a; letter-spacing: .02em; }
.pg-partners .wm-gate { color: #f2f6fa; }
.pg-partners .wm-htx { color: #a8dcf5; letter-spacing: .14em; }

/* Heading action: truthful muted pill (no fake link) */
.pg-partners .p-exchanges .l-soon-note {
    display: inline-block; padding: .3rem .75rem; border-radius: 999px;
    border: 1px solid rgba(70, 100, 130, .35); background: rgba(10, 16, 24, .6);
    color: var(--text-dim); font-size: .68rem; font-weight: 700;
}

/* Slim coming-soon strip */
.pg-partners .p-ex-pending { margin-top: 6px; padding: .3rem .8rem; min-height: 36px; border-radius: 8px; }
.pg-partners .p-ex-pending .cal-ico { width: 22px; height: 22px; border-radius: 50%; }
.pg-partners .p-ex-pending .cal-ico svg { width: 13px; height: 13px; }
.pg-partners .p-ex-pending b { font-size: .72rem; }
.pg-partners .p-ex-pending .p-ex-note { font-size: .64rem; }
.pg-partners .p-exchanges .p-source-note { margin: 5px 0 0; font-size: .64rem; }

/* Tighten spacing between the two ecosystem rails */
.pg-partners .p-sources { margin-top: 13px; }
.pg-partners .p-sources .section-heading { margin-bottom: 6px; }

/* Data sources: 86px, bigger brand marks, no duplication */
.pg-partners .p-source-tile { height: 86px; padding: 0 .9rem; }
.pg-partners .src-brand { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 11px; }
.pg-partners .src-brand img { width: 32px; height: 32px; object-fit: contain; }
.pg-partners .src-te-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: rgba(110, 160, 210, .15); border: 1px solid rgba(110, 160, 210, .4); color: #8fb7e8; font-size: .82rem; font-weight: 900; letter-spacing: .04em; }
.pg-partners .p-source-name { font-size: .86rem; font-weight: 900; }
.pg-partners .p-source-type { font-size: .58rem; margin-top: .14rem; }

/* ============================================================
   GLOBAL TICKER - FINAL HEIGHT POLISH (shared, all pages)
   Desktop only; <=1180px keeps the shared scroll-strip behavior.
   Taller 96px terminal rail: content keeps its normal size and
   sits vertically centered with ~20px breathing space inside
   the bordered container.
   ============================================================ */
@media (min-width: 1181px) {
    .market-strip.shell-ticker {
        box-sizing: border-box;
        height: 96px;
        min-height: 96px;
        padding: .4rem .4rem;
        margin: 10px auto 14px;
        align-items: center;
    }
    .market-strip .market-item { align-items: center; padding: .3rem 1.05rem; }
    .market-strip .market-item + .market-item::before { height: 40px; }
    .market-strip .ticker-icon,
    .market-strip .ticker-icon .ticker-coin-logo,
    .market-strip .ticker-icon:not(.has-logo) .ticker-logo-fallback,
    .market-strip .ticker-icon.img-failed .ticker-logo-fallback { width: 34px; height: 34px; }
    .market-strip .ticker-icon { flex: 0 0 34px; }
    .market-strip .market-item.traditional .ticker-icon { width: 32px; height: 32px; }
    .market-strip .market-item.traditional .ticker-icon svg { width: 30px; height: 30px; }
    .market-strip .fg-item { align-items: center; padding: .15rem .4rem; }
    .market-strip .fg-gauge { width: 92px; height: 50px; flex: 0 0 92px; }
    .market-strip .fg-gauge .fg-gauge-value,
    .market-strip .fg-gauge .fg-gauge-score { font-size: 16px; }
    .market-strip .status-item { justify-content: center; gap: .3rem; padding: .35rem 1.05rem; }
}

/* ============================================================
   HOME - BITCOIN HALVING COUNTDOWN
   ============================================================ */
.pg-home .halving-panel {
    display: grid;
    grid-template-columns: minmax(0, 30fr) minmax(0, 46fr) minmax(0, 24fr);
    gap: 1.4rem; align-items: center;
    margin-top: 14px; padding: 1.4rem 1.6rem; min-height: 0;
    position: relative; overflow: hidden;
}
.pg-home .halving-panel::before {
    content: ""; position: absolute; inset: 0 55% 0 0;
    background: radial-gradient(ellipse at 12% 50%, rgba(247, 147, 26, .08), transparent 62%);
    pointer-events: none;
}
.pg-home .halving-info { position: relative; min-width: 0; }
.pg-home .halving-info .eyebrow { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .3rem; color: #f5a342; }
.pg-home .halving-btc { width: 17px; height: 17px; flex: none; }
.pg-home .halving-info h2 { margin: 0 0 .3rem; font-size: 1.18rem; font-weight: 850; letter-spacing: -.01em; }
.pg-home .halving-sub { margin: 0 0 .55rem; color: var(--text-muted); font-size: .8rem; line-height: 1.45; max-width: 340px; }
.pg-home .halving-status {
    display: inline-flex; align-items: center; padding: .2rem .6rem;
    border: 1px solid rgba(240, 138, 36, .4); border-radius: 999px;
    color: var(--brand-orange); font-size: .62rem; font-weight: 750;
    text-transform: uppercase; letter-spacing: .1em;
}
.pg-home .halving-clock {
    position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem;
}
.pg-home .halving-unit {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
    padding: 1rem .4rem; min-height: 0;
    border: 1px solid #2b4054; border-radius: 11px;
    background: linear-gradient(180deg, rgba(13, 22, 32, .95), rgba(8, 13, 20, .95));
    box-shadow: inset 0 1px 0 rgba(90, 140, 180, .12);
}
.pg-home .halving-unit::after {
    content: ""; width: 18px; height: 2px; border-radius: 999px;
    background: linear-gradient(90deg, #f0a13a, rgba(240, 161, 58, .15));
}
.pg-home .halving-unit b {
    font-size: 2.2rem; font-weight: 900; line-height: 1; color: var(--text);
    font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.pg-home .halving-unit span {
    color: var(--text-muted); font-size: .64rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em;
}
.pg-home .halving-meta { position: relative; min-width: 0; display: flex; flex-direction: column; gap: .55rem; }
.pg-home .halving-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .7rem; margin: 0; }
.pg-home .halving-facts dt { color: var(--text-muted); font-size: .6rem; text-transform: uppercase; letter-spacing: .07em; }
.pg-home .halving-facts dd { margin: 0; color: var(--text); font-size: .8rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.pg-home .halving-progress-label { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin-bottom: .3rem; }
.pg-home .halving-progress-label span { color: var(--text-muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }
.pg-home .halving-progress-label b { color: var(--brand-orange); font-size: .72rem; font-variant-numeric: tabular-nums; }
.pg-home .halving-track {
    height: 8px; border-radius: 999px; overflow: hidden;
    background: rgba(10, 16, 24, .85); border: 1px solid #24384c;
}
.pg-home .halving-fill {
    display: block; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, #f08a24, #f5a342);
}
.pg-home .halving-note { color: var(--text-dim); font-size: .64rem; line-height: 1.45; }
@media (max-width: 1180px) {
    .pg-home .halving-panel { grid-template-columns: 1fr; gap: 1.1rem; }
    .pg-home .halving-clock { max-width: 560px; }
    .pg-home .halving-info h2 br { display: none; }
}
@media (max-width: 720px) {
    .pg-home .halving-panel { padding: 1.1rem 1rem; }
    .pg-home .halving-clock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-home .halving-unit b { font-size: 1.7rem; }
    .pg-home .halving-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* HOME - shared canonical shell (no page override needed) */
