/**
 * Homepage "What you get" section: template-parts/home-toolkit.php.
 * Follows the site theme: dark by default, light under html[data-theme="light"], each with its own real captures
 * (images come in .dk and .lt pairs; the hidden one is lazy and never loads). Scoped to .stk.
 * The theme colours and sizes every body p/li/span/div; the section resets that with :where() and sets its own.
 */

.stk {
    --stk-bg: #0a0a0a;
    --stk-text: #f5f5f2;
    --stk-text2: #c4c9d2;
    --stk-muted: #9aa1ad;
    --stk-gold: #f5c518;
    --stk-line: #232c3b;
    --stk-line2: #3d3d3d;
    --stk-tile: linear-gradient(180deg, #161e2c 0%, #111827 100%);
    --stk-tile-end: 17, 24, 39;
    --stk-inset: rgba(15, 23, 42, 0.6);
    --stk-card: #111111;
    --stk-shadow: rgba(0, 0, 0, 0.55);
    --stk-ring: rgba(148, 163, 184, 0.14);
    --stk-panel: #1d2533;
    --stk-bg2: #111827;
    --stk-track: #2e3644;
    --stk-gold2: #f5c518;
    --zc-cheap: #2dd4bf;
    --zc-exp: #f87171;
    position: relative;
    overflow: hidden;
    padding: 80px 0 88px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--stk-bg);
    color: var(--stk-text);
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
html[data-theme="light"] .stk {
    --stk-bg: #f5f5f5;
    --stk-text: #1a1a1a;
    --stk-text2: #4a4f57;
    --stk-muted: #6b7079;
    --stk-gold: #a87d08;
    --stk-line: #e2e5ea;
    --stk-line2: #d4d7dc;
    --stk-tile: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
    --stk-tile-end: 251, 251, 252;
    --stk-inset: #f6f7f9;
    --stk-card: #ffffff;
    --stk-shadow: rgba(15, 23, 42, 0.12);
    --stk-ring: rgba(15, 23, 42, 0.08);
    --stk-panel: #ffffff;
    --stk-bg2: #f6f7f9;
    --stk-track: #e5e7eb;
    --stk-gold2: #b8890a;
    --zc-cheap: #0f9488;
    --zc-exp: #dc2626;
    border-top-color: rgba(0, 0, 0, 0.06);
}
html:not([data-theme="light"]) .stk .lt, html[data-theme="light"] .stk .dk { display: none !important; }

.stk *, .stk *::before, .stk *::after { box-sizing: border-box; }
.stk :where(h2, h3, p, ul, li, blockquote) { margin: 0; padding: 0; }
.stk :where(p, li, span, div, h2, h3, blockquote) { color: inherit; font-size: inherit; }
.stk ul { list-style: none; }
.stk a { text-decoration: none; }
.stk :focus-visible { outline: 3px solid var(--stk-gold); outline-offset: 3px; border-radius: 6px; }
.stk-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 40px; }

/* Intro */
.stk-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: end; max-width: 1180px; }
.stk-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stk-gold); }
.stk .stk-h2 { margin-top: 14px; font-size: 64px; line-height: 1.02; font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; color: var(--stk-text); }
.stk .stk-h2 em { font-style: italic; color: var(--stk-gold); }
.stk-sub { font-size: 19px; color: var(--stk-text2); text-wrap: pretty; }

/* The grid: tiles sized by importance; Dan's portfolio gets the full-width closing row */
.stk-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(21, minmax(104px, auto)) auto; gap: 16px; margin-top: 52px; }
.stk .t-report { grid-column: 1 / 7; grid-row: 1 / 7; }
.stk .t-price { grid-column: 7 / 13; grid-row: 1 / 7; }
.stk .t-news { grid-column: 1 / 6; grid-row: 7 / 12; }
.stk .t-tracker { grid-column: 6 / 13; grid-row: 7 / 13; }
.stk .t-ideas { grid-column: 6 / 13; grid-row: 13 / 17; }
.stk .t-qa { grid-column: 1 / 6; grid-row: 12 / 16; }
.stk .t-bull { grid-column: 1 / 6; grid-row: 16 / 22; }
.stk .t-dcf { grid-column: 6 / 13; grid-row: 17 / 22; }
.stk .t-danpf { grid-column: 1 / 13; grid-row: 22 / 23; }

/* Tiles share the platform's own background, so the real components sit in them seamlessly */
.stk-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 28px 28px 0; border-radius: 22px; border: 1px solid var(--stk-line); background: var(--stk-tile); }
.stk .t-news, .stk .t-qa, .stk .t-bull { padding-bottom: 26px; }
/* "whole" tiles show one complete component, never cut: it flows at full tile width */
.stk-tile.whole { padding-bottom: 28px; }
.stk .stk-stage.flow { flex: none; container-type: normal; }
.stk .stk-stage.flow .stk-ly { position: relative; width: 100%; }
.stk-tile.fade::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; pointer-events: none; background: linear-gradient(180deg, rgba(var(--stk-tile-end), 0), rgb(var(--stk-tile-end)) 92%); }
.stk-tk { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c, var(--stk-gold)); }
.stk-tk::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--stk-gold)); }
.stk .stk-tile h3 { margin-top: 10px; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--stk-text); }
.stk-tl { margin-top: 6px !important; font-size: 15px; line-height: 1.5; color: var(--stk-text2); max-width: 40em; }
.stk .xl h3 { font-size: 30px; letter-spacing: -0.015em; }
.stk .xl .stk-tl { font-size: 16px; }
.stk-disc { margin-top: 6px !important; font-size: 12px; font-weight: 600; color: var(--stk-muted); }
.stk .research { --c: #f5c518; } .stk .price { --c: #2dd4bf; } .stk .pf { --c: #60a5fa; } .stk .dan { --c: #fb923c; } .stk .ideas { --c: #a78bfa; }
html[data-theme="light"] .stk .research { --c: #a87d08; } html[data-theme="light"] .stk .price { --c: #0f9488; } html[data-theme="light"] .stk .pf { --c: #2563eb; }
html[data-theme="light"] .stk .dan { --c: #ea580c; } html[data-theme="light"] .stk .ideas { --c: #7c3aed; }

/* Stage: whole platform components layered like a product shot */
.stk-stage { position: relative; flex: 1; min-height: 0; margin-top: 20px; container-type: inline-size; }
.stk .stk-ly { position: absolute; display: block; height: auto; max-width: none; border-radius: 12px; box-shadow: 0 24px 60px var(--stk-shadow), 0 0 0 1px var(--stk-ring); }
.stk .stk-ly.top { z-index: 2; box-shadow: 0 30px 80px var(--stk-shadow), 0 0 0 1px var(--stk-ring); }
.stk .stk-mo { display: none; border-radius: 12px; box-shadow: 0 0 0 1px var(--stk-ring); }

/* Dan's reasoning and Ask Dan: his own words, verbatim */
.stk-quote { margin-top: 20px !important; padding-left: 18px; border-left: 3px solid var(--c); }
.stk .stk-quote p { font-family: 'Instrument Serif', Georgia, serif; font-size: 24px; line-height: 1.22; color: var(--stk-text); text-wrap: pretty; }
.stk-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.stk-points > div { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--stk-line); background: var(--stk-inset); }
.stk .stk-points p:not(.stk-pt-l) { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--stk-text); }
.stk .stk-pt-l { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c); }
.stk .stk-attr { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--stk-muted); }
.stk-qa { margin-top: 16px; display: grid; gap: 6px; }
.stk .stk-q { font-size: 14px; line-height: 1.45; color: var(--stk-text2); margin-bottom: 10px !important; }
.stk .stk-a { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--stk-line); background: var(--stk-inset); font-size: 15px; line-height: 1.5; color: var(--stk-text); }

/* Newsletter: the yearly count and recent issue titles */
.stk-big { display: flex; align-items: baseline; gap: 14px; margin: 22px 0 18px; }
.stk .stk-big-n { font-size: 96px; line-height: 0.9; color: var(--c); }
.stk .stk-big-l { font-size: 20px; font-weight: 600; color: var(--stk-text); }
.stk-list { margin-top: 10px !important; display: grid; gap: 8px; }
.stk .stk-list li, .stk .stk-qs li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--stk-line); background: var(--stk-inset); font-size: 15px; line-height: 1.35; color: var(--stk-text); }
.stk-list .grow, .stk-qs .grow { flex: 1; }
.stk .stk-date { flex: 0 0 auto; min-width: 52px; font-size: 13px; font-weight: 700; color: var(--c); }

/* Ask Dan: three member questions, each answered */
.stk-qs { margin-top: 18px !important; display: grid; gap: 10px; }
.stk .stk-qs li { padding: 14px 16px; font-size: 16px; font-weight: 500; }
.stk .stk-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(16, 185, 129, 0.15); color: #34d399; font-size: 12px; font-weight: 700; }
html[data-theme="light"] .stk .stk-pill { background: rgba(22, 163, 74, 0.1); color: #15803d; }
.stk .stk-pill::before { content: ""; width: 4px; height: 7px; margin-top: -2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Curated lists: the platform's list badges, one per list */
.stk-lists { margin-top: 18px !important; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }
.stk .stk-lists li { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 16px 12px; border-radius: 14px; border: 1px solid var(--stk-line); background: var(--stk-panel); }
.stk .stk-lists-i { font-size: 30px; line-height: 1.1; }
.stk .stk-lists strong { font-size: 16px; font-weight: 700; line-height: 1.25; color: var(--stk-text); }
.stk .stk-lists small { font-size: 12.5px; line-height: 1.4; color: var(--stk-text2); }

/* DCF: the calculator card, redrawn from the platform with its real numbers */
.stk-dcf { margin-top: 20px; padding: 22px 24px; border-radius: 14px; border: 1px solid var(--stk-line); background: var(--stk-panel); box-shadow: 0 24px 60px var(--stk-shadow); }
.stk .stk-dcf-lead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; color: var(--stk-text2); }
.stk .stk-dcf-lead b { font-size: 34px; line-height: 1.1; font-weight: 700; color: var(--stk-gold2); letter-spacing: -0.01em; }
.stk .stk-dcf-sub { margin-top: 4px !important; font-size: 13px; color: var(--stk-muted); }
.stk .stk-dcf-h { margin: 18px 0 10px !important; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stk-muted); }
.stk-dcf-row { display: grid; grid-template-columns: 200px 1fr 54px; align-items: center; gap: 14px; margin-top: 10px; }
.stk .stk-dcf-row span { font-size: 13px; line-height: 1.3; color: var(--stk-text); }
.stk-dcf-row i { position: relative; display: block; height: 9px; border-radius: 99px; background: var(--stk-track); overflow: hidden; }
.stk-dcf-row em { position: absolute; inset: 0 auto 0 0; border-radius: 99px; }
.stk-dcf-row em.y { background: var(--stk-gold2); } .stk-dcf-row em.b { background: #3b82f6; } .stk-dcf-row em.g { background: #64748b; }
.stk .stk-dcf-row b { text-align: right; font-size: 13px; font-weight: 700; color: var(--stk-text); }
/* The inputs, stated as text: a preview, not a control */
.stk .stk-dcf-in { display: block; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--stk-line); font-size: 13px; line-height: 1.5; color: var(--stk-muted); }
.stk .stk-dcf-in b { font-weight: 700; color: var(--stk-text); }
/* The panel fills the tile; the preview line sits on its bottom edge */
.stk .t-dcf .stk-dcf { flex: 1; display: flex; flex-direction: column; }
.stk .t-dcf .stk-dcf-in { margin-top: auto; }
.stk .t-dcf .stk-dcf-row:last-of-type { margin-bottom: 20px; }

/* Dan's portfolio: what members get, beside his real holdings and disclosed trades */
.stk .t-danpf { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; padding: 36px; }
.stk-danpf-text { display: flex; flex-direction: column; }
.stk .t-danpf h3 { font-size: 34px; letter-spacing: -0.015em; }
.stk .t-danpf .stk-tl { font-size: 16px; }
.stk .t-danpf .stk-stage { margin-top: 0; }
.stk-ticks { margin-top: 20px !important; display: grid; gap: 12px; }
.stk .stk-ticks li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.45; color: var(--stk-text); }
.stk .stk-ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, transparent); }
.stk .stk-ticks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 5px; height: 8px; border: solid var(--c); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Also included, then the close */
.stk-also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.stk .stk-also-l { margin-right: 6px; font-size: 14px; font-weight: 600; color: var(--stk-muted); }
.stk .stk-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--stk-line2); font-size: 14px; color: var(--stk-text2); }
.stk-close { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 40px; padding: 26px 30px; border-radius: 18px; border: 1px solid var(--stk-line2); background: var(--stk-card); }
.stk .stk-close h3 { font-size: 30px; line-height: 1.15; font-weight: 400; color: var(--stk-text); }
.stk-price { margin-top: 6px !important; font-size: 15px; color: var(--stk-text2); }
.stk-nb { display: inline-block; }
/* Promotions: the regular price struck out, then the promo price and its badge (as in the pricing box) */
.stk .stk-was { color: var(--stk-muted); text-decoration: line-through; }
.stk .stk-now { font-weight: 700; color: var(--stk-text); }
.stk .stk-promo { display: inline-block; margin-left: 2px; padding: 2px 8px; border-radius: 999px; background: linear-gradient(135deg, #e53e3e, #c53030); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; vertical-align: 1px; }
.stk .stk-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stk-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.stk a.stk-btn, .stk a.stk-btn:hover { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 12px; background: #f5c518; color: #111111; font-weight: 700; font-size: 17px; white-space: nowrap; }
html[data-theme="light"] .stk a.stk-btn:not(.ghost) { background: #d4a10a; }
.stk a.stk-btn:hover { filter: brightness(1.06); }
.stk a.stk-btn.ghost, .stk a.stk-btn.ghost:hover { background: transparent; color: var(--stk-text); border: 1px solid var(--stk-line2); }
/* Sample snapshots (Aritzia's report, Top Graded) carry a note that they aren't kept up to date */
.stk .stk-snap { margin-top: 12px; font-size: 12px; line-height: 1.45; color: var(--stk-muted); }

/* Tablets: two columns; big tiles full width with their composition, smaller ones show one whole component */
@media (max-width: 1279px) {
    .stk-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: auto; gap: 12px; margin-top: 36px; }
    .stk .stk-grid .stk-tile { grid-column: auto !important; grid-row: auto !important; padding: 24px 24px 0; }
    .stk .stk-grid .t-news, .stk .stk-grid .t-qa, .stk .stk-grid .t-bull, .stk .stk-grid .whole { padding-bottom: 24px; }
    .stk .stk-grid .stk-tile.xl, .stk .stk-grid .t-danpf { grid-column: 1 / -1 !important; }
    .xl .stk-stage:not(.flow) { flex: none; height: 52vw; max-height: 560px; }
    .t-bull .stk-stage { flex: none; max-height: 320px; overflow: hidden; }
    .stk .t-bull .stk-ly { display: none; }
    .stk .t-bull .stk-ly.m { display: block; position: relative; left: 0 !important; top: 0 !important; width: 100% !important; height: auto; }
    .stk .stk-grid .t-danpf { grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px 0 0 28px; }
    .t-danpf .stk-stage { height: 46vw; max-height: 480px; }
}
/* Phones: one column; every visual tile shows one whole component at a legible size */
@media (max-width: 760px) {
    .stk { padding: 72px 0 80px; }
    .stk-wrap { padding: 0 18px; }
    .stk-head { grid-template-columns: 1fr; gap: 14px; }
    .stk .stk-h2 { font-size: 42px; }
    .stk-sub { font-size: 17px; }
    .stk .stk-grid .stk-tile { grid-column: 1 / -1 !important; padding: 22px 22px 0; }
    .stk .stk-grid .t-news, .stk .stk-grid .t-qa, .stk .stk-grid .t-bull, .stk .stk-grid .whole { padding-bottom: 22px; }
    .stk .xl h3, .stk .stk-tile h3, .stk .t-danpf h3 { font-size: 22px; }
    .stk .xl .stk-tl, .stk .t-danpf .stk-tl { font-size: 15px; }
    .stk-stage, .xl .stk-stage:not(.flow), .t-danpf .stk-stage { flex: none; height: auto; max-height: 300px; overflow: hidden; margin-top: 16px; }
    .stk .stk-ly { display: none; }
    .stk .stk-ly.m, .stk .stk-mo { display: block; position: relative; left: 0 !important; top: 0 !important; width: 100% !important; height: auto; }
    .stk .stk-quote p { font-size: 22px; }
    .stk .stk-big-n { font-size: 76px; }
    .stk-lists { grid-template-columns: 1fr 1fr; }
    .stk .stk-lists strong { font-size: 14px; }
    .stk .stk-lists small { display: none; }
    .stk-dcf { padding: 18px; }
    .stk .stk-dcf-lead b { font-size: 28px; }
    .stk-dcf-row { grid-template-columns: 1fr 48px; gap: 6px 10px; }
    .stk-dcf-row span { grid-column: 1 / -1; }
    .stk-points { grid-template-columns: 1fr; }
    .stk .stk-grid .t-danpf { display: flex; padding: 22px 22px 0; }
    .stk-danpf-text { padding-bottom: 0; }
    .stk .stk-ticks li { font-size: 15px; }
    .stk-close { padding: 22px; }
    .stk .stk-close h3 { font-size: 24px; }
    .stk-btns, .stk a.stk-btn { width: 100%; }
}

/* Valuation zones: drawn, not a screenshot (an illustration of the feature, styled like the platform) */
.stk .t-price { padding-bottom: 26px; }
.stk-zones { flex: 1; display: flex; flex-direction: column; margin-top: 20px; padding: 18px 20px 14px; border-radius: 14px; border: 1px solid var(--stk-line); background: var(--stk-panel); box-shadow: 0 24px 60px var(--stk-shadow); }
.stk .stk-zs-top { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--stk-text); }
.stk .stk-zs-badge { padding: 3px 9px; border-radius: 6px; background: color-mix(in srgb, var(--stk-gold2) 16%, transparent); color: var(--stk-gold2); font-size: 13px; font-weight: 700; }
.stk-zs-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 16px; margin-top: 14px; }
.stk .stk-zs-stats span { display: block; font-size: 12px; color: var(--stk-muted); }
.stk .stk-zs-stats b { display: block; margin-top: 2px; font-size: 22px; font-weight: 700; color: var(--stk-text); }
.stk .stk-zs-stats b.cheap { color: var(--zc-cheap); } .stk .stk-zs-stats b.exp { color: var(--zc-exp); }
.stk-zc { display: block; width: 100%; height: auto; margin-top: 8px; flex: 1; min-height: 0; }
.stk-zc .zc-exp-band { fill: color-mix(in srgb, var(--zc-exp) 9%, transparent); }
.stk-zc .zc-cheap-band { fill: color-mix(in srgb, var(--zc-cheap) 10%, transparent); }
.stk-zc .zc-grid { stroke: var(--stk-line); stroke-width: 1; }
.stk-zc .zc-ax { fill: var(--stk-muted); font: 500 11px 'DM Sans', system-ui, sans-serif; }
.stk-zc .zc-th { stroke-width: 1.5; stroke-dasharray: 6 5; }
.stk-zc .zc-th.exp { stroke: var(--zc-exp); } .stk-zc .zc-th.cheap { stroke: var(--zc-cheap); }
.stk-zc .zc-line { fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.stk-zc .zc-line.fair { stroke: var(--stk-gold2); } .stk-zc .zc-line.cheap { stroke: var(--zc-cheap); } .stk-zc .zc-line.exp { stroke: var(--zc-exp); }
.stk-zc .zc-dot { fill: var(--stk-gold2); stroke: var(--stk-panel); stroke-width: 2.5; }
.stk-zc .zc-tag rect { fill: var(--stk-panel); stroke-width: 1.5; }
.stk-zc .zc-tag text { fill: var(--stk-text); font: 700 12px 'DM Sans', system-ui, sans-serif; }
.stk-zc .zc-tag.exp rect { stroke: var(--zc-exp); } .stk-zc .zc-tag.cheap rect { stroke: var(--zc-cheap); } .stk-zc .zc-tag.last rect { stroke: var(--stk-gold2); }
.stk-zs-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 6px; font-size: 12px; color: var(--stk-text2); }
.stk-zs-key span { display: inline-flex; align-items: center; gap: 6px; }
.stk-zs-key span::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: currentColor; }
.stk .stk-zs-key .cheap { color: var(--zc-cheap); } .stk .stk-zs-key .fair { color: var(--stk-gold2); } .stk .stk-zs-key .exp { color: var(--zc-exp); }
.stk .stk-zs-key em { margin-left: auto; font-style: normal; color: var(--stk-muted); }
@media (max-width: 760px) {
    .stk-zones { padding: 14px 14px 10px; }
    .stk .stk-zs-stats b { font-size: 18px; }
    .stk .stk-zs-key em { margin-left: 0; width: 100%; }
}
.stk .t-news .stk-pt-l { margin-top: auto; padding-top: 20px; }
.stk .t-qa .stk-qs { flex: 1; align-content: space-evenly; }
.stk-zc.ph { display: none; }
.stk-zc .zc-in { font: 700 13px 'DM Sans', system-ui, sans-serif; }
.stk-zc .zc-in.exp { fill: var(--zc-exp); } .stk-zc .zc-in.cheap { fill: var(--zc-cheap); }
@media (max-width: 560px) {
    .stk-zc.dt { display: none; }
    .stk-zc.ph { display: block; }
    .stk-zc.ph .zc-ax { font-size: 12px; }
}

/* Report verdict: the platform's wording as real text, readable at a glance */
.stk-verdict { position: absolute; left: 0; right: 0; top: 39cqw; z-index: 2; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--stk-line); background: var(--stk-panel); box-shadow: 0 30px 80px var(--stk-shadow), 0 0 0 1px var(--stk-ring); }
.stk-verdict-n { display: grid; justify-items: center; padding-right: 18px; border-right: 1px solid var(--stk-line); }
.stk .stk-verdict-n b { font-size: 38px; line-height: 1; font-weight: 700; color: #34d399; }
html[data-theme="light"] .stk .stk-verdict-n b { color: #15803d; }
.stk .stk-verdict-n span { margin-top: 4px; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stk-muted); }
.stk .stk-verdict p { font-size: 15px; line-height: 1.45; color: var(--stk-text2); }
.stk .stk-verdict .stk-verdict-t { margin-bottom: 4px !important; font-size: 18px; font-weight: 700; color: var(--stk-text); }
@media (max-width: 760px) {
    .stk .t-report .stk-stage { max-height: none; }
    .stk-verdict { position: static; margin-top: 12px; grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; }
    .stk-verdict-n { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 10px; padding: 0; border: 0; }
    .stk .stk-verdict-t { font-size: 16px; }
}
@media (max-width: 760px) {
    .stk .stk-grid .t-report { padding-bottom: 22px; }
    .stk .t-report.fade::after { display: none; }
}

/* Tracker: income, health flags and top performers, redrawn from the platform with a sample portfolio */
.stk .t-tracker { padding-bottom: 26px; }
.stk-trk { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto 1fr; gap: 12px; margin-top: 20px; }
.stk-pn { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--stk-line); background: var(--stk-panel); box-shadow: 0 24px 60px var(--stk-shadow); }
.stk .stk-pn-t { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--stk-text); }
.stk .stk-pn-s { margin-top: 2px !important; font-size: 12.5px; line-height: 1.4; color: var(--stk-muted); }
.stk .stk-pn-f { margin-top: 8px !important; font-size: 12px; color: var(--stk-muted); }
.stk .stk-tkr { font-size: 12.5px; font-weight: 700; color: var(--stk-gold2); }
.stk-inc { grid-column: 1 / -1; }
.stk-pn-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.stk .stk-inc-tot { flex: 0 0 auto; display: flex; align-items: baseline; gap: 6px; }
.stk .stk-inc-tot b { font-size: 26px; line-height: 1; font-weight: 700; letter-spacing: -0.01em; color: var(--stk-gold2); }
.stk .stk-inc-tot span { font-size: 13px; color: var(--stk-muted); }
.stk-inc-r { display: grid; grid-template-columns: 64px 1fr 44px; align-items: center; gap: 10px; margin-top: 4px; }
.stk-inc-r .stk-tkr { text-align: right; }
.stk-inc-r i { display: block; }
.stk-inc-r em { display: block; min-width: max-content; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-style: normal; font-weight: 700; line-height: 1.35; color: #fff; }
.stk-inc-r em.c1 { background: #eab308; color: #111; } .stk-inc-r em.c2 { background: #3b82f6; } .stk-inc-r em.c3 { background: #10b981; }
.stk-inc-r em.c4 { background: #f97316; } .stk-inc-r em.c5 { background: #8b5cf6; } .stk-inc-r em.c6 { background: #64748b; }
.stk .stk-inc-r b { text-align: right; font-size: 12px; font-weight: 600; color: var(--stk-text2); }
.stk-flags ul, .stk-top ul { margin-top: 8px !important; display: grid; gap: 3px; }
.stk .stk-flags li { display: flex; align-items: center; gap: 5px; padding: 2px 4px 2px 8px; border-radius: 7px; border: 1px solid var(--stk-line); background: var(--stk-bg2); font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--stk-text); }
.stk-flags .grow { flex: 1; min-width: 0; }
.stk .stk-fl { display: inline-grid; place-items: center; min-width: 19px; height: 19px; border-radius: 5px; font-size: 11.5px; font-weight: 700; }
.stk .stk-fl.al, .stk .stk-fl-key .al::before { background: rgba(248, 113, 113, 0.18); color: #f87171; }
.stk .stk-fl.wa, .stk .stk-fl-key .wa::before { background: rgba(250, 204, 21, 0.16); color: #facc15; }
.stk .stk-fl.po, .stk .stk-fl-key .po::before { background: rgba(52, 211, 153, 0.16); color: #34d399; }
html[data-theme="light"] .stk .stk-fl.al, html[data-theme="light"] .stk .stk-fl-key .al::before { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
html[data-theme="light"] .stk .stk-fl.wa, html[data-theme="light"] .stk .stk-fl-key .wa::before { background: rgba(202, 138, 4, 0.12); color: #a16207; }
html[data-theme="light"] .stk .stk-fl.po, html[data-theme="light"] .stk .stk-fl-key .po::before { background: rgba(22, 163, 74, 0.1); color: #15803d; }
.stk .stk-fl-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px !important; font-size: 11.5px; color: var(--stk-muted); }
.stk-fl-key span { display: inline-flex; align-items: center; gap: 5px; }
.stk-fl-key span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px currentColor; }
.stk .stk-top li { display: grid; grid-template-columns: 62px 1fr 54px; align-items: center; gap: 8px; padding: 3px 0; line-height: 1.35; }
.stk-top i { display: block; height: 14px; }
.stk-top em { display: block; height: 100%; min-width: 8px; border-radius: 4px; background: #10b981; }
html[data-theme="light"] .stk-top em { background: #34b88a; }
.stk .stk-top b { text-align: right; font-size: 12.5px; font-weight: 700; color: #34d399; }
html[data-theme="light"] .stk .stk-top b { color: #15803d; }
@media (max-width: 760px) {
    .stk .stk-grid .t-tracker { padding-bottom: 22px; }
    .stk-trk { grid-template-columns: 1fr; margin-top: 16px; }
    .stk-pn { padding: 14px; }
    .stk-pn-h { flex-direction: column; gap: 8px; }
    .stk-inc-r { grid-template-columns: 58px 1fr 40px; gap: 8px; }
}



/* Top Graded: the list flows at full width (no fixed stage), so it never leaves a gap below */
.stk .t-ideas { padding-bottom: 26px; }

/* Health flags: one flag spelled out under its group */
.stk .stk-flags li.stk-fl-ex { display: block; margin: -1px 0 1px 10px; padding: 2px 0 2px 10px; border: 0; border-left: 2px solid #facc15; border-radius: 0; background: none; font-size: 12px; font-weight: 500; color: var(--stk-text2); }
html[data-theme="light"] .stk .stk-flags li.stk-fl-ex { border-left-color: #ca8a04; }

/* Dan's portfolio: holdings, his latest disclosed moves and his sector mix, in the same panel style as the tracker */
.stk-dpf { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 12px; align-content: start; }
.stk-hold ul, .stk-moves ul { margin-top: 10px !important; display: grid; gap: 6px; }
.stk .stk-hold li { display: grid; grid-template-columns: minmax(0, 1fr) 26% 42px; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--stk-text); }
.stk-hold i { display: block; height: 8px; border-radius: 99px; background: var(--stk-track); overflow: hidden; }
.stk-hold em { display: block; height: 100%; border-radius: 99px; background: var(--c); }
.stk .stk-hold b { text-align: right; font-size: 14px; font-weight: 700; color: var(--stk-text); }
.stk .stk-moves li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--stk-text); }
.stk .stk-mv-d { flex: 0 0 44px; font-size: 12px; font-weight: 700; line-height: 1.5; color: var(--stk-muted); }
.stk-moves .grow { flex: 1; min-width: 0; }
.stk .stk-moves small { display: block; font-size: 12px; font-weight: 500; color: var(--stk-muted); }
.stk .stk-mv { flex: 0 0 auto; padding: 2px 8px; border-radius: 6px; background: rgba(52, 211, 153, 0.16); color: #34d399; font-size: 11.5px; font-weight: 700; }
html[data-theme="light"] .stk .stk-mv { background: rgba(22, 163, 74, 0.1); color: #15803d; }
.stk-alloc { grid-column: 1 / -1; }
.stk-alloc-bar { display: flex; gap: 2px; height: 12px; margin-top: 10px; border-radius: 99px; overflow: hidden; }
.stk-alloc-bar em { display: block; height: 100%; }
.stk-alloc ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px !important; }
.stk .stk-alloc li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--stk-text2); }
.stk .stk-alloc li b { font-weight: 700; color: var(--stk-text); }
.stk-alloc li::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--sw); }
.stk-alloc .s1 { --sw: #eab308; } .stk-alloc .s2 { --sw: #3b82f6; } .stk-alloc .s3 { --sw: #ef4444; } .stk-alloc .s4 { --sw: #64748b; }
.stk-alloc-bar .s1 { background: #eab308; } .stk-alloc-bar .s2 { background: #3b82f6; } .stk-alloc-bar .s3 { background: #ef4444; } .stk-alloc-bar .s4 { background: #64748b; }

/* Tablets: the intro stacks, short tiles pair up (dense), and the DCF, curated lists and Dan's row get full width */
@media (max-width: 1279px) {
    .stk-head { grid-template-columns: 1fr; gap: 16px; max-width: 720px; }
    .stk .stk-h2 { font-size: 52px; }
    .stk-grid { grid-auto-flow: row dense; }
    .stk .stk-grid .t-dcf, .stk .stk-grid .t-bull, .stk .stk-grid .t-qa { grid-column: 1 / -1 !important; }
    .stk .stk-grid .t-dcf, .stk .stk-grid .t-ideas { padding-bottom: 24px; }
    .stk-lists { grid-template-columns: repeat(4, 1fr); }
    .stk .stk-grid .t-danpf { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
}
/* Phones: Dan's panels stack under a short intro; curated lists become a compact list */
@media (max-width: 760px) {
    .stk .stk-grid .t-danpf { padding: 22px; gap: 18px; }
    .stk .t-danpf .stk-ticks { display: none; }
    .stk-dpf { grid-template-columns: 1fr; }
    .stk-lists { grid-template-columns: 1fr; gap: 8px; }
    .stk .stk-lists li { flex-direction: row; justify-content: flex-start; text-align: left; gap: 12px; padding: 10px 14px; }
    .stk .stk-lists-i { font-size: 22px; }
    .stk .stk-grid .t-dcf, .stk .stk-grid .t-ideas { padding-bottom: 22px; }
}
.stk-fl-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.stk .stk-fl-h .stk-fl-key { margin-top: 0 !important; gap: 4px 10px; }

/* Phones: the tiles become a swipeable deck (native scroll-snap). assets/js/home-toolkit-*.js adds the chips, marks the
   centred tile so its neighbours shrink and dim, and sizes the deck to that tile. */
.stk-deck-nav { display: none; }
@media (max-width: 760px) {
    .stk-deck-nav:not(:empty) { position: relative; display: flex; gap: 8px; margin: 28px -18px 0; padding: 0 18px 2px; overflow-x: auto; scrollbar-width: none; }
    .stk-deck-nav::-webkit-scrollbar, .stk-grid::-webkit-scrollbar { display: none; }
    .stk .stk-chip-b { flex: 0 0 auto; white-space: nowrap; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--stk-line2); background: transparent; color: var(--stk-text2); font: 600 14px/1 'DM Sans', system-ui, sans-serif; cursor: pointer; }
    .stk .stk-chip-b[aria-current="true"] { border-color: var(--stk-text); background: var(--stk-text); color: var(--stk-bg); }
    .stk .stk-grid { position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 14px -18px 0; padding: 4px 11vw 8px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; transition: height 0.3s ease; }
    .stk .stk-grid .stk-tile { flex: 0 0 78vw; scroll-snap-align: center; scroll-snap-stop: always; transition: transform 0.3s ease, opacity 0.3s ease; }
    .stk .stk-grid.is-deck .stk-tile:not(.is-on) { transform: scale(0.92); opacity: 0.5; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
    .stk .stk-grid, .stk .stk-grid .stk-tile { transition: none; }
}

/* Report: the header capture, then the grades redrawn as HTML (every grade gets the same ten ticks), then the verdict.
   Overall runs across the top; the ten grades sit in two even rows of five. */
.stk .t-report { padding-bottom: 26px; }
.stk-grades { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin-top: 12px; border: 1px solid var(--stk-line); border-radius: 12px; overflow: hidden; background: var(--stk-line); box-shadow: 0 24px 60px var(--stk-shadow); }
.stk-gr { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 11px 13px; background: var(--stk-panel); }
.stk .stk-gr span:first-child { overflow: hidden; font-size: 9.5px; font-weight: 700; line-height: 1.2; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; color: var(--stk-muted); }
.stk .stk-gr b { font-size: 22px; line-height: 1.1; font-weight: 700; }
.stk-gr.ov { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; padding: 10px 14px; background: color-mix(in srgb, var(--stk-gold2) 7%, var(--stk-panel)); }
.stk .stk-gr.ov span:first-child { color: var(--stk-gold2); }
.stk .stk-gr.ov b { font-size: 30px; }
.stk-gr.ov .stk-gt { margin-top: 0; }
/* Fixed-size ticks, so every grade's ten look identical whatever the cell width */
.stk-gt { display: grid; grid-template-columns: repeat(10, 6px); justify-content: start; gap: 2px; margin-top: 3px; }
.stk-gt i { display: block; height: 6px; border-radius: 2px; background: var(--stk-track); }
.stk-gr.hi { --gr: #10b981; } .stk-gr.mid { --gr: #f59e0b; } .stk-gr.lo { --gr: #f87171; }
html[data-theme="light"] .stk-gr.hi { --gr: #059669; } html[data-theme="light"] .stk-gr.mid { --gr: #d97706; } html[data-theme="light"] .stk-gr.lo { --gr: #dc2626; }
.stk .stk-gr b { color: var(--gr); }
.stk-gt i.f { background: var(--gr); }
.stk .t-report .stk-verdict { position: relative; left: auto; right: auto; top: auto; display: block; margin-top: 12px; padding: 16px 20px; }
@media (max-width: 760px) {
    .stk .t-report .stk-mo { box-shadow: none; }
    .stk-grades { grid-template-columns: repeat(2, minmax(0, 1fr)); box-shadow: none; }
    .stk-gr, .stk-gr.ov { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 3px 10px; padding: 9px 10px 10px; }
    .stk .stk-gr span:first-child { grid-column: 1 / -1; }
    .stk .stk-gr b, .stk .stk-gr.ov b { font-size: 17px; }
    .stk-gt, .stk-gr.ov .stk-gt { grid-template-columns: repeat(10, 4px); margin-top: 0; }
    .stk .t-report .stk-verdict { padding: 14px 16px; }
}

/* Dan's portfolio, members only: placeholder rows blurred under a lock (the real data never reaches the page) */
.stk-locked { position: relative; }
.stk-blur { filter: blur(5px); opacity: 0.8; user-select: none; pointer-events: none; }
.stk .stk-mv.sell { background: rgba(248, 113, 113, 0.16); color: #f87171; }
html[data-theme="light"] .stk .stk-mv.sell { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.stk .stk-lock { position: absolute; left: 50%; top: 50%; z-index: 3; display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--stk-line2); background: var(--stk-panel); box-shadow: 0 16px 48px var(--stk-shadow); transform: translate(-50%, -50%); font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; color: var(--stk-text); }
.stk-lock svg { width: 17px; height: 17px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
    .stk .stk-lock { gap: 7px; padding: 9px 14px; font-size: 13px; }
    .stk-lock svg { width: 15px; height: 15px; }
}
@media (max-width: 380px) {
    .stk .stk-lock { gap: 6px; padding: 8px 12px; font-size: 12px; }
}

/* Sample label on the tracker's income chart */
.stk .stk-sample { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 5px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
/* Small phones: cards nearly full width, with a narrow glimpse of the next */
@media (max-width: 420px) {
    .stk .stk-grid { gap: 8px; padding-left: 6vw; padding-right: 6vw; }
    .stk .stk-grid .stk-tile { flex-basis: 88vw; }
    .stk .stk-grid.is-deck .stk-tile:not(.is-on) { transform: scale(0.95); }
    .stk .stk-grid .stk-tile { padding-left: 18px; padding-right: 18px; }
}
/* Phones: Dan's locked preview only needs to show what membership unlocks, so fewer placeholder rows */
@media (max-width: 760px) {
    .stk-hold li:nth-child(n+3), .stk-moves li:nth-child(n+3), .stk-alloc ul { display: none; }
    .stk-dpf .stk-pn-s { display: none; }
}
