/* Stray Dog — site styles. Layout after the reference site; palette and type from the channel art. */
:root {
  /* Stray Dog: ink, parchment and a Cherry Coke red, sampled from the channel art */
  --brand: #8f3a2c;
  --brand-600: #7c3125;
  --brand-700: #66291f;
  --brand-50: #f7ebe3;
  --brand-100: #ecd6c9;
  --ink: #1d1d1d;
  --ink-2: #262421;
  --cream: #f4e2c0;
  --cream-2: #e9dcc0;
  --text: #2b2723;
  --muted: #6e655a;
  --faint: #a3998b;
  --line: #e3d8c5;
  --line-2: #ece3d3;
  --bg: #f3ede1;
  --card: #fffcf6;
  --up: #2f7a4b;
  --down: #a8382c;
  --gold: #a9800f;
  --orange: #c4661c;
  --blue: #4372ac;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(40, 28, 14, .05), 0 1px 3px rgba(40, 28, 14, .07);
  --shadow-lg: 0 12px 30px -14px rgba(40, 28, 14, .28), 0 2px 6px rgba(40, 28, 14, .07);
  --side: 252px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Noto Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --display: "Noto Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 16px; height: 16px; }
.ic.xs { width: 13px; height: 13px; stroke-width: 2; }
.ic.lg { width: 26px; height: 26px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--card); border-right: 1px solid var(--line); padding: 18px 14px 20px; display: flex; flex-direction: column; gap: 6px; z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 16px; }
.brand-mark { display: inline-grid; place-items: center; height: 34px; padding: 0 9px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: -.02em; box-shadow: 0 2px 8px -2px rgba(5, 145, 116, .5); }
.brand-name { font-weight: 750; font-size: 18px; color: var(--ink); letter-spacing: -.02em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--text); font-weight: 550; font-size: 14.5px; transition: background .15s, color .15s; }
.nav-item .ic { color: var(--muted); }
.nav-item:hover { background: #f2f4f6; }
.nav-item.active { background: var(--brand-50); color: var(--brand-700); }
.nav-item.active .ic { color: var(--brand); }
.nav-group { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 1px; }
.nav-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; padding: 0 12px 6px; }
.nav-stock { display: flex; align-items: center; gap: 9px; padding: 7px 12px; border-radius: 9px; font-size: 13.5px; }
.nav-stock:hover { background: #f2f4f6; }
.nav-stock b { font-weight: 700; color: var(--ink); width: 40px; }
.nav-stock small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tc, var(--brand)); flex: none; }
.sidebar-foot { margin-top: auto; padding: 16px 12px 0; font-size: 12px; color: var(--faint); line-height: 1.5; }

.scrim { position: fixed; inset: 0; background: rgba(15, 20, 26, .36); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 35; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 28px; background: rgba(245, 246, 248, .86); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.icon-btn { display: none; border: 1px solid var(--line); background: var(--card); border-radius: 10px; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--ink); }
.search { position: relative; flex: 1; max-width: 560px; }
.search input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); padding: 0 14px 0 40px; font: inherit; font-size: 14px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(5, 145, 116, .12); }
.search-ic { position: absolute; left: 13px; top: 10px; color: var(--muted); }
.search-results { position: absolute; top: 46px; left: 0; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; display: none; max-height: 70vh; overflow-y: auto; }
.search-results.show { display: block; }
.sr-item { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line-2); }
.sr-item:first-child { border-top: 0; }
.sr-item:hover, .sr-item.sel { background: var(--brand-50); }
.sr-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-700); padding-top: 2px; }
.sr-title { font-weight: 600; color: var(--ink); font-size: 14px; line-height: 1.35; }
.sr-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sr-empty { padding: 16px; color: var(--muted); font-size: 14px; }
.topbar-cta { margin-left: auto; }

.content { width: 100%; max-width: 1320px; margin: 0 auto; padding: 28px 32px 56px; flex: 1; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; font-weight: 650; font-size: 14px; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-lg { height: 46px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 10px -3px rgba(5, 145, 116, .6); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--faint); }

.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 700; letter-spacing: .01em; background: #eef0f3; color: var(--text); white-space: nowrap; }
.chip.tk { --tc: var(--brand); background: color-mix(in srgb, var(--tc) 11%, white); color: color-mix(in srgb, var(--tc) 85%, black); }
a.chip.tk:hover { background: color-mix(in srgb, var(--tc) 18%, white); }
.chip.sm { height: 21px; padding: 0 7px; font-size: 11px; border-radius: 6px; }
.tag { display: inline-block; font-size: 12px; color: var(--muted); background: #f0f2f4; border-radius: 6px; padding: 2px 8px; margin: 0 6px 6px 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.fchip { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 13.5px; font-weight: 600; transition: all .15s; }
.fchip:hover { border-color: var(--faint); }
.fchip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.toolbar .filters { margin: 0 0 18px; }
.find { position: relative; display: flex; align-items: center; }
.find .ic { position: absolute; left: 11px; color: var(--muted); }
.find input { height: 34px; width: 260px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px 0 34px; font: inherit; font-size: 13.5px; background: var(--card); outline: none; }
.find input:focus { border-color: var(--brand); }

/* ---------- blocks & grids ---------- */
.block { margin-top: 44px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.block-head h2 { font-size: 21px; font-weight: 750; }
.block-desc { color: var(--muted); font-size: 14px; margin-top: 4px; max-width: 760px; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-700); font-weight: 650; font-size: 14px; white-space: nowrap; }
.more:hover { color: var(--brand); }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 20px; }
.card h3 { font-size: 16px; margin-bottom: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 36px; padding: 40px; border-radius: 20px; background: radial-gradient(1200px 400px at 0% 0%, #e3f4ee 0%, rgba(227, 244, 238, 0) 60%), linear-gradient(180deg, #ffffff, #fbfcfc); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 520px; height: 320px; background: repeating-linear-gradient(90deg, rgba(5, 145, 116, .06) 0 1px, transparent 1px 44px), repeating-linear-gradient(0deg, rgba(5, 145, 116, .06) 0 1px, transparent 1px 44px); transform: rotate(-8deg); pointer-events: none; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 12px; }
.hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.lead { font-size: 17px; color: #4b5562; margin-top: 16px; max-width: 640px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-tickers { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13.5px; font-weight: 550; }
.hero-updated { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 4px 2px; }

/* ---------- video cards ---------- */
.vcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.vcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.poster { --pc: var(--brand); position: relative; aspect-ratio: 16 / 9; overflow: hidden; color: #fff; padding: 14px 16px; display: flex; flex-direction: column; background: linear-gradient(140deg, var(--pc) 0%, color-mix(in srgb, var(--pc) 55%, #05080c) 100%); }
.poster-art { position: absolute; inset: auto 0 0 0; width: 100%; height: 70%; }
.poster-art path { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.poster-art path.b { stroke: rgba(255, 255, 255, .12); }
.poster-series { position: relative; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.poster-tk { position: relative; font-size: 30px; font-weight: 850; letter-spacing: -.03em; margin-top: 4px; }
.poster-take { position: relative; font-size: 12.5px; line-height: 1.4; opacity: .92; margin-top: auto; margin-bottom: 26px; max-width: 94%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.duration { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; background: rgba(8, 12, 16, .72); color: #fff; font-size: 11.5px; font-weight: 650; padding: 3px 8px; border-radius: 6px; }
.duration .ic { fill: currentColor; stroke: none; }
.poster-part { position: absolute; left: 10px; bottom: 10px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 11px; font-weight: 750; padding: 3px 8px; border-radius: 6px; }
.poster.has-img { background: #fff; padding: 0; border-bottom: 1px solid var(--line-2); }
.poster.has-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.vcard-body { padding: 13px 15px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vcard-body h3 { font-size: 15px; font-weight: 700; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; margin-top: auto; }
.meta span:first-child { margin-right: 4px; }

/* ---------- brief cards ---------- */
.bcard { display: flex; flex-direction: column; gap: 9px; padding: 17px 18px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.bcard:hover { border-color: var(--brand-100); box-shadow: var(--shadow-lg); }
.bcard-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.date { color: var(--muted); font-size: 12.5px; font-weight: 550; margin-left: auto; }
.bcard h3 { font-size: 15px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bcard p { color: var(--muted); font-size: 13.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.month { margin-bottom: 34px; }
.month-head { font-size: 17px; font-weight: 750; margin: 6px 0 14px; display: flex; align-items: baseline; gap: 10px; }
.month-head small { color: var(--muted); font-weight: 550; font-size: 13px; }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }
[hidden] { display: none !important; }

/* ---------- stock table ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 16px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]::after { content: "\2195"; margin-left: 6px; color: var(--faint); font-size: 11px; }
th.asc::after { content: "\2191"; color: var(--brand); }
th.desc::after { content: "\2193"; color: var(--brand); }
td { padding: 14px 16px; border-top: 1px solid var(--line-2); vertical-align: middle; }
tbody tr:first-child td { border-top: 0; }
tbody tr:hover td { background: #fbfcfc; }
.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.co { display: flex; align-items: center; gap: 12px; }
.co b { display: block; color: var(--ink); font-size: 14.5px; }
.co small { color: var(--muted); font-size: 12px; }
.co-mark { --tc: var(--brand); display: inline-grid; place-items: center; min-width: 44px; height: 40px; padding: 0 6px; border-radius: 10px; font-size: 12px; font-weight: 800; letter-spacing: .01em; color: color-mix(in srgb, var(--tc) 88%, black); background: color-mix(in srgb, var(--tc) 12%, white); border: 1px solid color-mix(in srgb, var(--tc) 20%, white); flex: none; }
.co-mark.xl { min-width: 76px; height: 68px; font-size: 18px; border-radius: 16px; }
td.latest { max-width: 420px; }
td.latest a { color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.45; }
td.latest a:hover { color: var(--brand-700); }

/* ---------- series, steps, principles ---------- */
.series { --pc: var(--brand); position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.series::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--pc); }
.series:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.series-count { font-size: 12px; font-weight: 750; color: color-mix(in srgb, var(--pc) 85%, black); text-transform: uppercase; letter-spacing: .05em; }
.series h3 { font-size: 17px; }
.series p { color: var(--muted); font-size: 13.5px; }
.series-latest { font-size: 12.5px; color: var(--text); margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 34px; right: -15px; width: 12px; height: 12px; border-top: 2px solid var(--brand-100); border-right: 2px solid var(--brand-100); transform: rotate(45deg); }
.step-num { display: inline-block; align-self: flex-start; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-50); padding: 3px 9px; border-radius: 999px; }
.step h3 { font-size: 17px; }
.step p { color: var(--muted); font-size: 13.5px; margin-bottom: 6px; }
.lesson-link { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #f7f8fa; font-weight: 600; font-size: 14px; color: var(--ink); }
.lesson-link small { color: var(--muted); font-weight: 550; }
.lesson-link:hover { background: var(--brand-50); color: var(--brand-700); }
.lesson-card { display: flex; flex-direction: column; gap: 8px; }
.lesson-card p { color: var(--muted); font-size: 14px; }
.lesson-card .small { margin-top: auto; display: inline-flex; gap: 6px; align-items: center; }

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.principle { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.principle .ic { color: var(--brand); background: var(--brand-50); padding: 8px; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 12px; }
.principle h3 { font-size: 15.5px; margin-bottom: 6px; }
.principle p { color: var(--muted); font-size: 13.5px; }

/* ---------- shorts ---------- */
.scard { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.scard-top { display: flex; align-items: center; gap: 8px; }
.scard-top .date { margin-left: 0; }
.badge-time { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.scard h3 { font-size: 15.5px; line-height: 1.4; }
.spoken { font-size: 14px; line-height: 1.65; color: #3b4450; border-left: 3px solid var(--brand-100); padding-left: 12px; }
.short-desc { font-size: 13.5px; color: var(--muted); }
.short-desc summary { cursor: pointer; color: var(--brand-700); font-weight: 650; list-style: none; }
.short-desc summary::-webkit-details-marker { display: none; }
.short-desc summary::before { content: "+ "; }
.short-desc[open] summary::before { content: "\2212 "; }
.short-desc p { margin-top: 8px; }

/* ---------- charts ---------- */
.chart-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .15s; }
.chart-card:hover { box-shadow: var(--shadow-lg); }
.chart-card img { aspect-ratio: 16 / 9; object-fit: contain; background: #fff; border-bottom: 1px solid var(--line-2); width: 100%; }
.chart-card span { padding: 12px 14px; font-weight: 650; font-size: 14px; color: var(--ink); }

/* ---------- page heads, crumbs ---------- */
.page-head { padding: 8px 0 26px; max-width: 860px; }
.page-head h1 { font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.page-head.center { margin: 60px auto; text-align: center; }
.page-head.center .lead { margin: 14px auto 24px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--brand-700); }

/* ---------- article ---------- */
.article-head { max-width: 900px; margin-bottom: 26px; }
.article-chips { display: flex; gap: 6px; margin-bottom: 14px; }
.article-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.025em; line-height: 1.18; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; color: var(--muted); font-size: 13.5px; }
.article-meta span, .article-meta a { display: inline-flex; align-items: center; gap: 6px; }
.article-meta a { color: var(--brand-700); font-weight: 600; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.article-main { min-width: 0; max-width: 780px; }
.article-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.article-poster { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 24px; box-shadow: var(--shadow); }
.article-poster .poster { aspect-ratio: 21 / 9; padding: 22px 26px; }
.article-poster .poster-tk { font-size: 40px; }
.article-poster .poster-take { font-size: 15px; max-width: 70%; -webkit-line-clamp: 3; margin-bottom: 30px; }
.article-poster .poster.has-img { aspect-ratio: 16 / 9; }
.article-poster .poster.has-img img { object-fit: contain; }
.intro p { font-size: 18px; line-height: 1.65; color: #2f3842; margin-bottom: 16px; }
.takeaway { margin: 22px 0; padding: 18px 22px; border-radius: var(--radius); background: var(--brand-50); border: 1px solid var(--brand-100); }
.takeaway span { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-700); }
.takeaway p { font-size: 17px; font-weight: 650; color: var(--ink); margin-top: 6px; line-height: 1.5; }
.inthis { margin: 22px 0; padding: 18px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.inthis h3 { font-size: 15px; margin-bottom: 8px; }
.transcript-head { font-size: 22px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.transcript-head + p { margin-top: 6px; margin-bottom: 18px; }

.prose { font-size: 16.5px; line-height: 1.75; color: #29313b; }
.prose p { margin: 0 0 16px; }
.prose h2 { font-size: 21px; margin: 34px 0 12px; font-weight: 750; }
.prose h3 { font-size: 17.5px; margin: 26px 0 10px; }
.prose h4 { font-size: 15.5px; margin: 20px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--brand-700); text-decoration: underline; text-decoration-color: var(--brand-100); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose blockquote { margin: 20px 0; padding: 14px 18px; border-left: 3px solid var(--brand); background: var(--brand-50); border-radius: 0 10px 10px 0; color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.prose code { font-size: .9em; background: #f0f2f4; padding: 1px 5px; border-radius: 5px; }
.prose pre { background: #f6f8fa; border: 1px solid var(--line); padding: 14px; border-radius: 10px; overflow-x: auto; font-size: 13.5px; }
.prose table { margin: 18px 0 22px; font-size: 14.5px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.prose th { font-size: 12px; }
.prose td { padding: 10px 14px; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 30px 0; }
.prose strong { color: var(--ink); }
figure.chart { margin: 26px 0; }
figure.chart img { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
figure.chart figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 12px; box-shadow: var(--shadow); max-height: 46vh; overflow-y: auto; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; margin-bottom: 7px; font-size: 13.5px; line-height: 1.4; }
.toc li a { display: flex; gap: 8px; color: var(--text); }
.toc li a::before { content: counter(t); color: var(--faint); font-weight: 700; font-size: 12px; min-width: 14px; padding-top: 1px; }
.toc li a:hover { color: var(--brand-700); }
.mini-list { display: flex; flex-direction: column; }
.mini-list a { padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 13.5px; line-height: 1.45; color: var(--text); }
.mini-list a:first-child { border-top: 0; padding-top: 0; }
.mini-list a:hover { color: var(--brand-700); }
.mini-list .date { display: block; margin: 0 0 2px; font-size: 12px; }
.sources { list-style: none; padding: 0; margin: 0; }
.sources li { font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line-2); word-break: break-word; line-height: 1.45; }
.sources li:first-child { border-top: 0; }
.sources a { color: var(--brand-700); }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.prevnext a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 650; color: var(--ink); font-size: 14.5px; line-height: 1.4; }
.prevnext a:hover { border-color: var(--brand-100); }
.prevnext a.next { text-align: right; }
.prevnext small { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- brief page ---------- */
.thesis { padding: 20px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); box-shadow: var(--shadow); }
.thesis span { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-700); }
.thesis p { font-size: 16.5px; line-height: 1.7; color: #29313b; margin-top: 8px; }
.pull { margin: 20px 0; padding: 14px 20px; font-size: 17px; font-weight: 650; color: var(--ink); border-left: 3px solid var(--gold); background: #fdf8ea; border-radius: 0 10px 10px 0; }
.bsec { margin-top: 26px; }
.bsec h3 { font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.bsec h3::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--faint); }
.bsec.cat h3::before { background: var(--brand); }
.bsec.risk h3::before { background: var(--down); }
.bsec > p { font-size: 15px; line-height: 1.7; margin-bottom: 10px; }
.bullets { list-style: none; padding: 0; margin: 0; }
.bullets li { position: relative; padding: 7px 0 7px 20px; font-size: 15px; line-height: 1.6; border-top: 1px solid var(--line-2); }
.bullets li:first-child { border-top: 0; }
.bullets li::before { content: ""; position: absolute; left: 3px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .7; }
.bsec.risk .bullets li::before { background: var(--down); }
.subcard { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fcfcfd; margin-bottom: 10px; }
.subcard h4 { font-size: 15px; margin-bottom: 6px; }
.kv { margin: 0; }
.kv-row { display: grid; grid-template-columns: 190px 1fr; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.kv-row:first-child { border-top: 0; }
.kv dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.kv dd { margin: 0; font-size: 14.5px; }
.kv dd p { margin-bottom: 4px; }
.kv dd .bullets li { font-size: 14px; padding: 4px 0 4px 16px; border: 0; }
.kv dd .bullets li::before { top: 12px; }
.subtopic { display: grid; grid-template-columns: 34px 1fr; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.subtopic-num { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.subtopic h2 { font-size: 19px; line-height: 1.35; }
.lead-sm { font-size: 15.5px; line-height: 1.7; margin-top: 10px; }
.sources-sec { margin-top: 30px; padding-top: 6px; }
.tags { margin-top: 22px; }
.note { margin-top: 28px; font-size: 13px; color: var(--muted); padding: 12px 14px; background: #f0f2f4; border-radius: 10px; }
.stock-mini { display: flex; gap: 12px; align-items: center; }
.stock-mini b { display: block; color: var(--ink); }
.stock-mini small { color: var(--muted); font-size: 12.5px; }

.correction { margin: 0 0 22px; padding: 18px 20px; border-radius: var(--radius); background: #fff8e8; border: 1px solid #f1dfae; border-left: 4px solid var(--gold); }
.correction-head { display: flex; align-items: center; gap: 8px; color: #7a5a06; font-size: 14.5px; margin-bottom: 6px; }
.correction > p { font-size: 14px; color: #5b4a1c; margin-bottom: 8px; }
.correction .bullets li { font-size: 14.5px; border-top-color: #f3e6c3; }
.correction .bullets li::before { background: var(--gold); }
.correction-src { margin-top: 12px; }
.correction-src > span { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #7a5a06; }
.correction-src .sources li { border-top-color: #f3e6c3; }
.latest-signal .correction { margin: 14px 0 4px; }
.chip.corr { background: #fbefd0; color: #7a5a06; }

/* ---------- stock page ---------- */
.stock-hero { --tc: var(--brand); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 30px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 9%, white), #fff 60%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stock-hero-id { display: flex; gap: 20px; align-items: flex-start; }
.stock-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: -.025em; }
.stock-hero p { color: #4b5562; margin-top: 8px; font-size: 15.5px; max-width: 620px; }
.stock-hero .eyebrow { margin-bottom: 6px; color: color-mix(in srgb, var(--tc) 85%, black); }
.stock-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stock-hero-stats .stat { padding: 14px 16px; }
.stock-hero-stats .stat b { font-size: 24px; }
.latest-signal h3 { font-size: 18px; line-height: 1.4; margin: 6px 0 10px; }
.latest-signal h3 a:hover { color: var(--brand-700); }
.latest-signal > p { color: #3b4450; font-size: 15px; line-height: 1.7; }
.latest-signal .bcard-top .date { margin-left: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.verdict { font-size: 16px; font-weight: 650; color: var(--ink); margin-bottom: 14px; }
table.moat td { font-size: 14px; vertical-align: top; }
table.moat td:first-child { white-space: nowrap; }
.grade { display: inline-block; font-size: 12px; font-weight: 750; padding: 3px 9px; border-radius: 999px; background: #eef0f3; color: var(--text); white-space: nowrap; }
.g-strong, .g-core, .g-meaningful, .g-hardest { background: #e3f4ea; color: #126b38; }
.g-mid, .g-mixed, .g-building, .g-mid-to-strong { background: #fbf1d9; color: #8a6206; }
.g-disputed { background: #fde9d7; color: #a4510a; }
.g-headwind, .g-low { background: #f9e1e1; color: #a12a2a; }
.g-signals { background: #e5eef9; color: #2f5d94; }
table.score td { white-space: nowrap; }
.dossier-link { display: flex; gap: 16px; align-items: flex-start; }
.dossier-link .ic { color: var(--brand); }
.dossier-link p { color: var(--muted); font-size: 14px; }
.timeline { padding: 6px 0; }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.tl-item:first-child { border-top: 0; }
.tl-item:hover { background: #fafbfc; }
.tl-date { color: var(--muted); font-size: 13px; font-weight: 600; padding-top: 1px; }
.tl-title { color: var(--ink); line-height: 1.45; }
.stock-card { display: flex; flex-direction: column; gap: 12px; border-top: 4px solid var(--tc); }
.stock-card-head { display: flex; gap: 12px; align-items: center; }
.stock-card-head h3 { margin: 0; }
.stock-card-head small { color: var(--muted); }
.stock-card .co-mark { --tc: inherit; }
.stock-card p { color: var(--muted); font-size: 14px; }
.stock-card-stats { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: auto; }
.stock-card-stats b { color: var(--ink); }

/* ---------- episodes ---------- */
.episodes { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.episodes li a { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line-2); }
.episodes li:first-child a { border-top: 0; }
.episodes li a:hover { background: #fafbfc; }
.ep { font-size: 12px; font-weight: 750; color: var(--brand-700); text-transform: uppercase; letter-spacing: .04em; }
.ep-title { font-weight: 650; color: var(--ink); }
.ep-date { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ---------- about ---------- */
.about { margin-top: 36px; }
.follow { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.follow .btn { justify-content: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--card); padding: 30px 32px 26px; }
.footer-top { display: flex; gap: 30px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; max-width: 1256px; margin: 0 auto; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand b { color: var(--ink); }
.footer-brand p { color: var(--muted); font-size: 13px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.footer-nav a:hover, .footer-social a:hover { color: var(--brand-700); }
.footer-social { display: flex; gap: 16px; font-size: 14px; font-weight: 600; }
.disclaimer { max-width: 1256px; margin: 22px auto 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.fine { max-width: 1256px; margin: 8px auto 0; color: var(--faint); font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .g4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
}
@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .stock-hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .scrim.show { opacity: 1; pointer-events: auto; }
  .icon-btn { display: inline-flex; }
  .topbar { padding: 0 16px; gap: 10px; }
  .content { padding: 20px 16px 44px; }
  .footer { padding: 26px 16px; }
}
@media (max-width: 640px) {
  .g3, .g4, .principles, .two-col { grid-template-columns: 1fr; }
  .topbar-cta { display: none; }
  .hero { padding: 26px 20px; border-radius: 16px; }
  .hero h1 { font-size: 32px; }
  .hero h1 br { display: none; }
  .stat b { font-size: 26px; }
  .page-head h1, .article-head h1, .stock-hero h1 { font-size: 27px; }
  .block-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .kv-row { grid-template-columns: 1fr; gap: 2px; }
  .tl-item { grid-template-columns: 1fr; gap: 2px; }
  .episodes li a { grid-template-columns: 1fr; gap: 4px; }
  .find input { width: 100%; }
  .find { width: 100%; }
  .prevnext { grid-template-columns: 1fr; }
  td, th { padding: 11px 12px; }
  .stock-hero { padding: 20px; }
  .stock-hero-id { flex-direction: column; gap: 12px; }
  .article-poster .poster { aspect-ratio: 16 / 9; }
  .article-poster .poster-take { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .sidebar, .topbar, .footer, .article-side, .filters { display: none !important; }
  .app { display: block; }
  body { background: #fff; }
}


/* =====================================================================
   Stray Dog brand layer
   ===================================================================== */
h1, h2, .block-head h2, .brand-name, .stat b, .page-head h1, .article-head h1, .stock-hero h1, .hero h1, .month-head, .series h3, .step h3 {
  font-family: var(--display); font-stretch: 75%; letter-spacing: -.005em;
}
.block-head h2 { font-size: 26px; font-weight: 800; }
.page-head h1, .article-head h1, .stock-hero h1 { font-weight: 800; font-size: 40px; line-height: 1.08; }
.prose, .intro p, .thesis p, .lead-sm, .bsec > p, .bullets li, .latest-signal > p, .takeaway p, .spoken { font-family: var(--serif); }
.prose { font-size: 17.5px; color: #2a2622; }
.prose h2, .prose h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; }
.prose h2 { font-size: 25px; }
.lead { color: #4a4238; }

/* sidebar = banner ink */
.sidebar { background: var(--ink); border-right: 0; color: var(--cream-2); }
.brand { gap: 12px; padding: 4px 8px 18px; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(244, 226, 192, .25); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { color: var(--cream); font-size: 24px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.brand-handle { color: #9e9380; font-size: 12px; font-weight: 600; margin-top: 3px; }
.nav-item { color: #d9ccb2; }
.nav-item .ic { color: #9e9380; }
.nav-item:hover { background: rgba(244, 226, 192, .07); }
.nav-item.active { background: rgba(244, 226, 192, .12); color: var(--cream); box-shadow: inset 3px 0 0 var(--brand); }
.nav-item.active .ic { color: #e08b6f; }
.nav-group { border-top-color: rgba(244, 226, 192, .1); }
.nav-label { color: #8a7f6c; }
.nav-stock:hover { background: rgba(244, 226, 192, .07); }
.nav-stock b { color: var(--cream); }
.nav-stock small { color: #9e9380; }
.nav-stock { gap: 11px; }
.nav-stock .logo { width: 24px; height: 24px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(244, 226, 192, .16); }
.nav-stock span { color: #d9ccb2; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-stock:hover span { color: var(--cream); }
.sidebar-foot { color: #8a7f6c; }
.sidebar-foot p { margin-top: 10px; }
.sidebar-foot .fine-side { font-size: 11px; color: #6f6656; }
.side-social { display: flex; gap: 8px; }
.side-link { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 9px; background: rgba(244, 226, 192, .08); color: var(--cream); font-size: 13px; font-weight: 650; }
.side-link:hover { background: rgba(244, 226, 192, .16); }
.side-link.yt .icf { color: #ff4e45; }
.side-stats { margin-top: 10px; font-size: 12.5px; color: #a89c86; }
.side-stats b { color: var(--cream); }
.icf { width: 18px; height: 18px; fill: currentColor; flex: none; }
.icf.lg { width: 30px; height: 30px; }

/* topbar on paper */
.topbar { background: rgba(243, 237, 225, .9); }
.search input { background: #fffdf8; }
.search input:focus { box-shadow: 0 0 0 4px rgba(143, 58, 44, .12); }
.topbar-cta { display: flex; gap: 8px; align-items: center; }
.x-btn { display: inline-flex; background: var(--ink); color: var(--cream); border-color: var(--ink); }
.x-btn:hover { background: #000; }

/* buttons */
.btn-primary { background: var(--brand); box-shadow: 0 2px 10px -3px rgba(143, 58, 44, .55); }
.btn-primary:hover { background: var(--brand-600); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff1d6; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #000; }
.btn-text { color: var(--cream); padding: 0 6px; }
.btn-text:hover { color: #fff; }
.btn-ghost { background: var(--card); }

/* hero = banner */
.hero { background: var(--ink); color: var(--cream); border: 0; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding: 44px 44px 36px; gap: 28px; align-items: center; }
.hero::after { display: none; }
.hero .eyebrow { color: #d9a48f; }
.hero h1 { color: var(--cream); font-size: 64px; line-height: 1.0; font-weight: 800; text-transform: none; }
.hero .lead { color: #e9dcc0; font-size: 18px; max-width: 620px; }
.hero .small-lead { font-size: 15px; color: #b9ad97; margin-top: 10px; }
.hero-actions { margin-top: 24px; }
.hero-stats { position: static; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.hero-stats .stat { background: rgba(244, 226, 192, .06); border-color: rgba(244, 226, 192, .14); box-shadow: none; padding: 14px; }
.hero-stats .stat b { color: var(--cream); font-size: 30px; }
.hero-stats .stat span { color: #b2a58e; font-size: 12.5px; }
.hero-updated { color: #9e9380; margin-top: 14px; grid-column: auto; }
.hero-art img { width: 100%; height: auto; border-radius: 12px; display: block; }

/* video cards with real thumbnails */
.poster.has-thumb { background: #000; padding: 0; }
.poster.has-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vcard .meta .views { color: var(--muted); }
.vcard .meta .views::before { content: "\00B7"; margin-right: 6px; }
.dek { font-family: var(--serif); font-style: italic; font-size: 18px; color: #5a5046; margin-top: 10px; max-width: 760px; }
.watch-yt { display: inline-flex; align-items: center; gap: 6px; color: #b3261e !important; font-weight: 700; }

/* player */
.player { margin-bottom: 26px; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; position: relative; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s; }
.yt-facade:hover img { opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 60px; display: grid; place-items: center; color: #ff0000; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .45)); }
.yt-play .icf { width: 84px; height: 84px; }
.yt-facade:hover .yt-play { color: #e00000; }
.yt-len { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }

/* shorts shelf */
.shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.shelf-item { display: flex; flex-direction: column; gap: 8px; }
.shelf-thumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.shelf-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.shelf-item:hover .shelf-thumb img { transform: scale(1.03); }
.shelf-play { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; display: grid; place-items: center; }
.shelf-play .ic { fill: currentColor; stroke: none; }
.shelf-title { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.shelf-views { font-size: 12px; color: var(--muted); }

/* short cards with their YouTube Short */
.scard-head { display: flex; gap: 12px; align-items: flex-start; }
.scard-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sthumb { position: relative; flex: none; width: 64px; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: var(--ink); }
.sthumb img { width: 100%; height: 100%; object-fit: cover; }
.sthumb span { position: absolute; inset: auto 4px 4px auto; width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; display: grid; place-items: center; }
.sthumb .ic { fill: currentColor; stroke: none; }
.watch { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: #b3261e; }
.watch small { color: var(--muted); font-weight: 600; }
.spoken { border-left-color: var(--brand-100); }

/* follow band */
.follow-band { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.follow-card { border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.follow-card.yt { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.follow-card.xc { background: var(--ink); color: var(--cream-2); }
.follow-head { display: flex; gap: 14px; align-items: center; }
.follow-head b { display: block; font-family: var(--display); font-stretch: 80%; font-size: 22px; font-weight: 800; }
.follow-card.xc .follow-head b { color: var(--cream); }
.follow-head small { color: var(--muted); font-size: 13px; }
.follow-card.xc .follow-head small { color: #a89c86; }
.follow-card.yt .follow-head .icf { color: #ff0000; }
.follow-card.xc .follow-head .icf { color: var(--cream); }
.follow-card p { font-size: 14.5px; }
.follow-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

/* about */
.about-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--ink); color: var(--cream-2); border-radius: 20px; padding: 40px; }
.about-hero h1 { color: var(--cream); font-size: 54px; font-weight: 800; line-height: 1.02; }
.about-hero .eyebrow { color: #d9a48f; }
.about-hero .lead { color: var(--cream-2); }
.about-hero p { margin-top: 12px; font-size: 15.5px; line-height: 1.65; color: #cfc2a8; }
.about-hero img { width: 100%; border-radius: 12px; }
.about-topics b, .about-cadence { color: var(--cream); }
.method-title { font-size: 30px; font-weight: 800; margin: 44px 0 4px; }

/* footer = banner ink */
.footer { background: var(--ink); border-top: 0; color: #b2a58e; }
.footer-brand img { border-radius: 50%; }
.footer-brand b { color: var(--cream); font-family: var(--display); font-stretch: 75%; font-size: 22px; text-transform: uppercase; }
.footer-brand p { color: #a89c86; max-width: 420px; }
.footer-nav a { color: #d9ccb2; }
.footer-nav a:hover, .footer-social a:hover { color: #fff; }
.foot-link { display: inline-flex; align-items: center; gap: 7px; color: var(--cream); font-weight: 650; }
.foot-link.yt .icf { color: #ff4e45; }
.disclaimer { color: #8f8472; }
.fine { color: #6f6656; }

/* palette touch-ups for the new brand */
.bsec.cat h3::before { background: var(--up); }
.bullets li::before { background: var(--brand); }
.eyebrow { color: var(--brand-700); }
.chip.tk { background: color-mix(in srgb, var(--tc) 12%, #fffaf0); }
.co-mark { background: color-mix(in srgb, var(--tc) 12%, #fffaf0); }
.takeaway { background: #f8eee4; border-color: var(--brand-100); }
.thesis { border-left-color: var(--brand); }
.correction { background: #fbf2dc; }
.stock-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 10%, #fffaf0), var(--card) 60%); }
th { background: #f8f2e6; }
tbody tr:hover td { background: #fbf6ec; }

@media (max-width: 1240px) { .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hero h1 { font-size: 54px; } }
@media (max-width: 1060px) {
  .hero, .about-hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; }
  .follow-band { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 26px 20px; }
  .hero h1, .about-hero h1 { font-size: 40px; }
  .about-hero { padding: 24px 20px; }
  .page-head h1, .article-head h1, .stock-hero h1 { font-size: 30px; }
  .topbar-cta { display: flex; }
  .topbar-cta .btn span { display: none; }
  .topbar-cta .btn { padding: 0 10px; }
}

/* =====================================================================
   Clean layer: fewer words, more picture
   ===================================================================== */
.block { margin-top: 56px; }
.block-head { margin-bottom: 18px; }
.block-desc { display: none; }
.kicker { display: block; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 4px; }
.page-head { padding-bottom: 22px; }
.page-head .lead { margin-top: 10px; }
.page-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; }
ul.plain li:first-child { border-top: 0; }
ul.plain a { color: var(--brand-700); font-weight: 600; }

/* hero: tighter */
.hero h1 { font-size: 68px; }
.hero .lead { font-size: 19px; }

/* video cards: picture first */
.vcard { border: 0; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.vcard:hover { transform: none; box-shadow: none; }
.vcard .poster { border-radius: 12px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.vcard:hover .poster { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.vcard-body { padding: 12px 2px 0; gap: 6px; }
.vcard-body h3 { font-size: 16px; line-height: 1.35; -webkit-line-clamp: 2; }
.vcard .meta { margin-top: 0; }
.duration { right: 8px; bottom: 8px; font-size: 12px; }

/* featured episode */
.feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); transition: box-shadow .2s; }
.feature:hover { box-shadow: var(--shadow-lg); }
.feature-media { position: relative; display: block; }
.feature-media .poster { border-radius: 12px; }
.feature-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #ff0000; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .45)); }
.feature-play .icf { width: 76px; height: 76px; }
.feature-text { display: flex; flex-direction: column; gap: 12px; padding: 8px 12px 8px 0; }
.feature-text h3 { font-family: var(--display); font-stretch: 78%; font-size: 34px; line-height: 1.08; font-weight: 800; }
.feature-take { font-family: var(--serif); font-size: 16.5px; line-height: 1.6; color: #4a4238; }
.feature-text .meta { color: var(--muted); font-size: 13.5px; }
.feature-text .btn { align-self: flex-start; }
.feature-text .btn .ic { fill: currentColor; stroke: none; }

/* compact mini video rows (sidebars) */
.vmini { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.vmini:first-of-type { border-top: 0; }
.vmini-thumb { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--ink); }
.vmini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vmini-text b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.35; color: var(--ink); }
.vmini-text small { color: var(--muted); font-size: 12px; }
.vmini:hover b { color: var(--brand-700); }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.side-card h3 { font-size: 15px; margin-bottom: 8px; font-family: var(--font); font-stretch: 100%; }

/* brief rows */
.blist { padding: 4px 0; }
.blist.card { padding: 4px 6px; }
.brow { display: grid; grid-template-columns: 64px auto 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border-top: 1px solid var(--line-2); border-radius: 8px; }
.blist .brow:first-child { border-top: 0; }
.brow:hover { background: #fbf6ec; }
.brow-date { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.brow-tk { display: flex; gap: 4px; }
.brow-title { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brow:hover .brow-title { color: var(--brand-700); }
.side-card .brow { grid-template-columns: 1fr; gap: 3px; padding: 8px 0; }
.side-card .brow-tk { display: none; }

/* stock tiles */
.co-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stile-co { --tc: var(--brand); display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 3px solid var(--tc); transition: box-shadow .2s, transform .2s; }
.stile-co:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.co-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.co-text b { font-size: 16px; color: var(--ink); }
.co-text small { color: var(--muted); font-size: 12.5px; }
.co-latest { margin-top: 6px; font-size: 13.5px; color: #4a4238; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
table.stocks .co small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }

/* Shorts tiles */
.shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.shelf-all { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 26px; }
.stile { display: flex; flex-direction: column; gap: 10px; }
.stile-thumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.stile-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.stile:hover .stile-thumb img { transform: scale(1.04); }
.stile-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.stile:hover .stile-play { opacity: 1; }
.stile-play .ic { fill: currentColor; stroke: none; width: 20px; height: 20px; }
.stile-text { display: flex; flex-direction: column; gap: 5px; }
.stile-text .chip { align-self: flex-start; }
.stile-text b { font-size: 13.5px; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.stile-text small { font-size: 12px; color: var(--muted); }

/* modal player for Shorts */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(10, 8, 6, .82); display: grid; place-items: center; padding: 20px; }
.modal-box { position: relative; display: grid; grid-template-columns: auto 320px; gap: 22px; align-items: start; background: var(--card); border-radius: 18px; padding: 18px; max-height: calc(100vh - 40px); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.modal-video { width: min(360px, calc((100vh - 76px) * 9 / 16)); aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #000; }
.modal-video iframe { width: 100%; height: 100%; border: 0; }
.modal-text { display: flex; flex-direction: column; gap: 10px; padding-top: 30px; overflow-y: auto; max-height: calc(100vh - 80px); }
.modal-text h3 { font-family: var(--display); font-stretch: 80%; font-size: 24px; font-weight: 800; line-height: 1.15; }
.modal-extra p { font-size: 13.5px; margin-bottom: 8px; color: #4a4238; }
.modal-close { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #efe6d5; font-size: 22px; line-height: 1; color: var(--ink); }
.modal-close:hover { background: #e4d8c2; }

/* watch page */
.watch-page .player { margin-bottom: 18px; }
.watch-head { margin-bottom: 22px; }
.watch-head h1 { font-size: 36px; font-weight: 800; line-height: 1.1; margin-top: 4px; }
.watch-head .article-chips { margin-bottom: 8px; }
.learn { margin: 20px 0; padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.learn h3 { font-size: 15px; margin-bottom: 6px; font-family: var(--font); font-stretch: 100%; }
.charts-d { margin: 26px 0; }
.charts-d h3 { font-size: 15px; margin-bottom: 12px; font-family: var(--font); font-stretch: 100%; }
.intro p { font-size: 17px; }

/* toggles */
details.transcript, details.sources-d { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
details.transcript > summary, details.sources-d > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 15px 18px; font-weight: 700; color: var(--ink); font-size: 15px; }
details.transcript > summary::-webkit-details-marker, details.sources-d > summary::-webkit-details-marker, details.more-d > summary::-webkit-details-marker { display: none; }
details.transcript > summary small { color: var(--muted); font-weight: 600; margin-left: auto; }
details.transcript > summary::after, details.sources-d > summary::after { content: "+"; margin-left: 8px; font-size: 20px; color: var(--brand); line-height: 1; }
details.sources-d > summary::after { margin-left: auto; }
details.transcript > summary small + * { margin-left: 0; }
details[open].transcript > summary::after, details[open].sources-d > summary::after { content: "\2212"; }
details.transcript .prose { padding: 4px 24px 18px; border-top: 1px solid var(--line-2); }
details.sources-d .sources, details.sources-d ul.plain, details.sources-d .modal-extra { padding: 0 18px 14px; }
details.sources-d.inline { border: 0; background: transparent; }
details.more-d > summary { cursor: pointer; list-style: none; color: var(--brand-700); font-weight: 650; font-size: 14px; padding: 8px 0 0 20px; }
.correction details.sources-d { background: transparent; border-color: #f1dfae; }

/* brief page: cleaner */
.article-head h1 { font-size: 34px; }
.article-chips .date { margin-left: 8px; }
.dek-sm { color: var(--muted); font-size: 14.5px; margin-top: 10px; max-width: 820px; line-height: 1.5; }
.thesis { margin-bottom: 8px; }
.thesis p { margin-top: 0; }
.correction { padding: 16px 18px; }
.correction .bullets li { font-size: 14px; padding: 6px 0 6px 20px; }

/* series cards with the latest episode */
.series { padding: 0; gap: 0; }
.series::before { display: none; }
.series img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-bottom: 3px solid var(--pc); }
.series-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.series h3 { font-size: 19px; }

/* about */
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.about-cols h3 { font-family: var(--font); font-stretch: 100%; font-size: 16px; margin-bottom: 8px; }
.about-hero .hero-actions { margin-top: 20px; }

/* steps: compact */
.step h3 { font-size: 20px; margin-bottom: 4px; }

@media (max-width: 1240px) { .shelf, .shelf-all { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1060px) {
  .feature { grid-template-columns: 1fr; }
  .co-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .modal-box { grid-template-columns: 1fr; max-width: 380px; padding: 12px; overflow-y: auto; }
  .modal-video { width: 100%; max-height: 62vh; }
  .modal-text { padding-top: 4px; max-height: none; }
}
@media (max-width: 640px) {
  .shelf, .shelf-all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-grid { grid-template-columns: 1fr; }
  .brow { grid-template-columns: 52px 1fr; }
  .brow-tk { display: none; }
  .brow .chip.corr { display: none; }
  .feature-text h3 { font-size: 26px; }
  .watch-head h1 { font-size: 27px; }
  .hero h1 { font-size: 44px; }
}
.thesis details.more-d > summary { padding-left: 0; margin-top: 6px; }
.thesis details.more-d p { margin-top: 8px; }

/* =====================================================================
   Home v3: hook, browse, daily, freshness, one ask
   ===================================================================== */
.home-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 40px; align-items: center; background: var(--ink); color: var(--cream-2); border-radius: 22px; padding: 44px; }
.home-hero .eyebrow { color: #d9a48f; }
.home-hero h1 { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 64px; line-height: 1.0; color: var(--cream); }
.home-hero .lead { color: #e9dcc0; font-size: 19px; margin-top: 16px; }
.home-hero .hero-actions { margin-top: 26px; }
.hh-stats { margin-top: 22px; font-size: 13px; color: #a89c86; }
.hh-episode .player { margin: 0; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); }
.hh-ep-meta { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.hh-ep-meta .kicker { color: #d9a48f; }
.hh-ep-title { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 26px; line-height: 1.15; color: var(--cream); }
.hh-ep-title:hover { color: #fff; }
.hh-ep-sub { font-size: 13.5px; color: #a89c86; }
.hh-ep-sub a { color: var(--cream-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(244, 226, 192, .35); }

/* rails: one row, scroll sideways */
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.rail-head .filters { margin: 0; }
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 10px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-shorts { grid-auto-columns: calc((100% - 5 * 16px) / 6); gap: 16px; }
.rail-btn { position: absolute; top: 34%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); display: grid; place-items: center; z-index: 2; font-size: 20px; line-height: 1; }
.rail-btn:hover { background: #fff; }
.rail-btn.prev { left: -14px; }
.rail-btn.next { right: -14px; }
.rail-btn[hidden] { display: none; }

/* closing band */
.cta-band { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--ink); border-radius: 22px; padding: 40px 44px; color: var(--cream-2); }
.cta-band h2 { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 52px; line-height: 1.02; color: var(--cream); }
.cta-band p { margin-top: 12px; font-size: 17px; color: #cfc2a8; }
.cta-band .hero-actions { margin-top: 22px; }
.cta-start { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--cream); font-weight: 650; font-size: 14.5px; }
.cta-start:hover { color: #fff; }
.cta-band img { width: 100%; max-width: 330px; justify-self: end; border-radius: 12px; }

@media (max-width: 1240px) { .rail-shorts { grid-auto-columns: calc((100% - 4 * 16px) / 5); } .home-hero h1 { font-size: 54px; } }
@media (max-width: 1060px) {
  .home-hero, .cta-band { grid-template-columns: 1fr; padding: 32px; }
  .rail { grid-auto-columns: calc((100% - 18px) / 2.2); }
  .rail-shorts { grid-auto-columns: calc((100% - 2 * 16px) / 3.3); }
  .cta-band img { justify-self: start; max-width: 320px; }
}
@media (max-width: 640px) {
  .home-hero { padding: 24px 20px; gap: 24px; }
  .home-hero h1 { font-size: 42px; }
  .cta-band { padding: 26px 20px; }
  .cta-band h2 { font-size: 38px; }
  .rail { grid-auto-columns: 78%; }
  .rail-shorts { grid-auto-columns: 44%; }
  .rail-btn { display: none; }
}

/* Home hero, blended into the page (no dark panel) */
.home-hero { background: transparent; color: var(--text); border-radius: 0; padding: 26px 0 10px; gap: 48px; }
.home-hero .eyebrow { color: var(--brand-700); }
.home-hero h1 { color: var(--ink); }
.home-hero .lead { color: #4a4238; }
.hh-stats { color: var(--muted); }
.hh-episode .player { box-shadow: 0 18px 44px -22px rgba(40, 28, 14, .55); }
.hh-ep-meta .kicker { color: var(--brand-700); }
.hh-ep-title { color: var(--ink); }
.hh-ep-title:hover { color: var(--brand-700); }
.hh-ep-sub { color: var(--muted); }
.hh-ep-sub a { color: var(--brand-700); text-decoration-color: var(--brand-100); }
@media (max-width: 1060px) { .home-hero { padding: 10px 0 0; } }
@media (max-width: 640px) { .home-hero { padding: 4px 0 0; } }

/* =====================================================================
   How we invest (framework page): pictures first, few words
   Icons: Lucide (ISC), see assets/LICENSES.txt
   ===================================================================== */
.pi { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pi.xs { width: 15px; height: 15px; stroke-width: 2.4; }
.pbadge { display: inline-grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 16px; background: var(--brand-50); color: var(--brand); }
.pbadge .pi { width: 27px; height: 27px; }
.pbadge.sm { width: 40px; height: 40px; border-radius: 12px; }
.pbadge.sm .pi { width: 21px; height: 21px; }
.pbadge.lg { width: 64px; height: 64px; border-radius: 20px; background: var(--brand-50); color: var(--brand); }
.pbadge.lg .pi { width: 31px; height: 31px; }
.pbadge.ok { background: #e3ecda; color: #4d7041; }
.pbadge.bad { background: #f4dfd8; color: var(--brand); }

.fw-hero2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 44px; align-items: center; padding-top: 10px; }
.fw-hero2 h1 { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 64px; line-height: 1; color: var(--ink); }
.fw-hero2 .lead { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: #3d362f; margin-top: 16px; }
.fw-motto { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.fw-motto li { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 700; color: var(--ink); }
.fw-visual { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 20px 14px; box-shadow: var(--shadow); }
.fw-visual figcaption { margin-top: 8px; text-align: center; font-size: 13.5px; color: var(--muted); }

.vz { display: block; width: 100%; height: auto; overflow: visible; }
.vz text { font-family: var(--font); }
.vz-ax { font-size: 13px; fill: var(--muted); }
.vz-ax.strong { font-weight: 700; fill: var(--ink); font-size: 14px; }
.vz-lab { font-size: 15px; font-weight: 700; fill: var(--ink); }
.vz .red { fill: var(--brand); }
.vz-coin { font-family: var(--display) !important; font-weight: 800; font-size: 32px; fill: var(--ink); }
.vz-coin.sm { font-size: 24px; }
.vz-coin.light { fill: var(--cream); }
.vz-grid { stroke: #ece3d3; stroke-width: 1; }
.vz-base { stroke: #d8cbb4; stroke-width: 1.5; }
.vz-line { fill: none; stroke: var(--brand); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.vz-arrow { stroke: var(--brand); stroke-width: 2.5; }
.vz-loop { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 5 6; }

.fw-section { margin-top: 76px; }
.fw-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.fw-head h2 { font-size: 32px; font-weight: 800; }
.fw-sub { margin-top: 6px; font-size: 16px; color: var(--muted); }
.fw-intro { font-size: 18px; line-height: 1.55; color: #3d362f; max-width: 560px; }
.fw-note { margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 560px; }
.fw-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--brand-700); font-weight: 650; font-size: 14px; white-space: nowrap; }
.fw-head .fw-more { margin-top: 0; }
.fw-more:hover { color: var(--brand); }
.fw-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 44px; align-items: center; }
.fw-split.rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }

.fw-traits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.fw-trait { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 14px 18px; box-shadow: var(--shadow); }
.fw-trait .pbadge { margin-bottom: 14px; }
.fw-trait h3 { font-family: var(--font); font-stretch: 100%; font-size: 15.5px; line-height: 1.25; margin-bottom: 6px; }
.fw-trait p { font-size: 13.5px; line-height: 1.45; color: var(--muted); }

.fw-stat { display: flex; align-items: center; gap: 14px; margin: 18px 0 6px; }
.fw-stat b { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 64px; line-height: 1; color: var(--brand); }
.fw-stat span { font-size: 15px; line-height: 1.35; color: var(--muted); font-weight: 600; }
.fw-why { display: grid; gap: 10px; margin-top: 16px; max-width: 520px; }
.fw-why > div { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.fw-why b { display: block; font-size: 15px; color: var(--ink); }
.fw-why small { display: block; font-size: 14px; color: var(--muted); }

.fw-quote { margin: 4px 0 22px; font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 38px; line-height: 1.1; color: var(--ink); border-left: 5px solid var(--brand); padding-left: 18px; }
.fw-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.5fr); gap: 16px; align-items: stretch; }
.fw-vs-mid { display: grid; place-items: center; color: var(--brand); }
.fw-vs-mid .ic { width: 30px; height: 30px; stroke-width: 2.2; }
.fw-panel { border-radius: 18px; padding: 20px 22px 22px; }
.fw-panel h3 { display: flex; align-items: center; gap: 8px; font-family: var(--font); font-stretch: 100%; font-size: 12.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 14px; }
.fw-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fw-panel li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; }
.fw-panel.copy { background: #ebe3d4; color: #8a7f70; }
.fw-panel.copy .pbadge { background: #ddd2bf; color: #8a7f70; }
.fw-panel.copy .t { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(143, 58, 44, .75); }
.fw-panel.keep { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--brand); box-shadow: var(--shadow); }
.fw-panel.keep h3 { color: var(--brand-700); }
.fw-panel.keep ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fw-panel.keep .pbadge { background: var(--brand-50); color: var(--brand); }

.fw-big { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 50px; line-height: 1.05; color: var(--ink); margin: 6px 0 14px; }
.fw-big em { font-style: normal; color: var(--brand); white-space: nowrap; }

.fw-waterfall { display: flex; flex-direction: column; gap: 8px; }
.fw-wf { margin-left: calc(var(--i) * 6%); width: 76%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; color: var(--ink); }
.fw-wf b { display: block; font-size: 15px; }
.fw-wf small { display: block; font-size: 13px; opacity: .8; }
.fw-wf .pbadge { background: rgba(255, 255, 255, .5); color: var(--ink); }
.fw-wf:nth-of-type(1) { background: #8f3a2c; color: #fff; }
.fw-wf:nth-of-type(2) { background: #a65a49; color: #fff; }
.fw-wf:nth-of-type(1) .pbadge, .fw-wf:nth-of-type(2) .pbadge { background: rgba(255, 255, 255, .16); color: #fff; }
.fw-wf:nth-of-type(3) { background: #c99a87; }
.fw-wf:nth-of-type(4) { background: #dcbfae; }
.fw-wf:nth-of-type(5) { background: #e9dccb; }

.fw-bhs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.fw-stage { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 24px; box-shadow: var(--shadow); }
.fw-stage + .fw-stage::before { content: ""; position: absolute; left: -20px; top: 48px; width: 12px; height: 12px; border-top: 3px solid var(--brand); border-right: 3px solid var(--brand); transform: rotate(45deg); }
.fw-stage header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.fw-stage h3 { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 34px; }
.fw-stage ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.fw-stage li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; color: #3d362f; }
.fw-stage li .pi { color: var(--brand); margin-top: 3px; }

.fw-last { align-items: stretch; margin-bottom: 24px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.fw-check { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; box-shadow: var(--shadow); }
.fw-check header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.fw-check h2 { font-size: 28px; font-weight: 800; }
.fw-check ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.fw-check li { display: flex; align-items: flex-start; gap: 11px; font-weight: 650; font-size: 15px; line-height: 1.4; color: var(--ink); }
.fw-check .box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--brand); color: #fff; margin-top: 1px; }
.fw-check .box .pi { width: 14px; height: 14px; stroke-width: 3; }
.fw-wait { background: var(--brand-50); color: var(--ink); border: 1px solid var(--brand-100); border-radius: 18px; padding: 24px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fw-wait .pbadge { background: var(--card); color: var(--brand); }
.fw-wait h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 28px; color: var(--ink); }
.fw-wait p { font-size: 15.5px; line-height: 1.55; color: #4a4238; }
.fw-wait .fw-more { color: var(--brand-700); margin-top: 4px; }

/* About: who we are */
.about2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 10px; }
.about2 h1 { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 62px; line-height: 1; color: var(--ink); }
.about2 .lead { font-family: var(--serif); font-size: 20px; line-height: 1.55; color: #3d362f; }
.about-lens { margin-top: 14px; font-size: 16px; color: var(--muted); }
.about-lens a { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-700); font-weight: 650; }
.about-stats { margin-top: 14px; font-size: 14px; color: var(--muted); font-weight: 600; }
.about2-art { margin: 0; }
.about2-art img { display: block; width: 100%; height: auto; }
.about-offer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.about-item { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.about-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(29, 29, 29, .4); }
.about-item b { display: block; font-size: 16px; }
.about-item small { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }

@media (max-width: 1280px) {
  .fw-traits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1060px) {
  .fw-hero2, .fw-split, .fw-split.rev, .fw-last, .about2 { grid-template-columns: 1fr; gap: 26px; }
  .fw-split.rev > figure { order: 2; }
  .fw-vs { grid-template-columns: 1fr; }
  .fw-vs-mid .ic { transform: rotate(90deg); }
  .fw-bhs { grid-template-columns: 1fr; gap: 24px; }
  .fw-stage + .fw-stage::before { left: 50%; top: -19px; transform: translateX(-50%) rotate(135deg); }
  .about-offer { grid-template-columns: 1fr; }
  .about2-art { max-width: 520px; }
}
@media (max-width: 640px) {
  .fw-hero2 h1, .about2 h1 { font-size: 44px; }
  .fw-hero2 .lead, .about2 .lead { font-size: 18px; }
  .fw-traits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fw-quote { font-size: 28px; }
  .fw-big { font-size: 38px; }
  .fw-stat b { font-size: 52px; }
  .fw-panel.keep ul, .fw-check ul { grid-template-columns: 1fr; }
  .fw-wf { width: auto; margin-left: calc(var(--i) * 4%); }
  .fw-section { margin-top: 56px; }
  .fw-visual { padding: 14px 10px 10px; }
  .vz-ax { font-size: 18px; }
  .vz-ax.strong, .vz-lab { font-size: 19px; }
  .vz-coin { font-size: 36px; }
  .vz-coin.sm { font-size: 26px; }
}

/* =====================================================================
   Language switch, quiet channel links, Chinese typography
   ===================================================================== */
.topbar-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topbar-links .icon-btn { display: inline-flex; }
.icon-btn.ghost { background: transparent; border-color: transparent; color: var(--muted); width: 36px; height: 36px; }
.icon-btn.ghost:hover { color: var(--ink); background: rgba(29, 29, 29, .06); }
.icon-btn.ghost[title="YouTube"]:hover { color: #e62117; }
.icon-btn.ghost .icf { width: 18px; height: 18px; }
.lang-switch { display: inline-flex; align-items: center; padding: 3px; margin-right: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 700; line-height: 1; }
.lang-switch > * { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; color: var(--muted); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch .on { background: var(--ink); color: var(--cream); }
.lang-note { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--brand-50); color: var(--brand-700); font-size: 12px; font-weight: 700; }
.hh-ep-sub .lang-note { margin-left: 8px; }
.about-find { margin-top: 18px; display: flex; align-items: center; gap: 16px; font-size: 14.5px; color: var(--muted); }
.about-find a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 650; }
.about-find a:hover { color: var(--brand); }
.about-find .icf { width: 18px; height: 18px; }
.footer-top { justify-content: flex-start; }
@media (max-width: 480px) {
  .topbar-links .icon-btn.ghost { display: none; }
  .lang-switch > * { padding: 0 9px; }
}

html[lang="zh-Hans"] {
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --serif: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --display: "Noto Serif SC", "Songti SC", "STSong", "Noto Serif", Georgia, serif;
}
html[lang="zh-Hans"] body { line-height: 1.75; }
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3 { letter-spacing: .01em; }
html[lang="zh-Hans"] .eyebrow, html[lang="zh-Hans"] .nav-label, html[lang="zh-Hans"] .kicker { letter-spacing: .08em; }
html[lang="zh-Hans"] .fw-hero2 h1, html[lang="zh-Hans"] .about2 h1 { font-size: 52px; line-height: 1.15; }
html[lang="zh-Hans"] .home-hero h1 { font-size: 46px; line-height: 1.2; }
html[lang="zh-Hans"] .fw-quote { font-size: 32px; line-height: 1.35; }
html[lang="zh-Hans"] .fw-big { font-size: 42px; line-height: 1.25; }
html[lang="zh-Hans"] .fw-stage h3 { font-size: 28px; }
html[lang="zh-Hans"] .prose, html[lang="zh-Hans"] .article-main p, html[lang="zh-Hans"] .bullets li { line-height: 1.85; }
html[lang="zh-Hans"] .vz-coin { font-family: var(--display) !important; }
@media (max-width: 640px) {
  html[lang="zh-Hans"] .fw-hero2 h1, html[lang="zh-Hans"] .about2 h1 { font-size: 38px; }
  html[lang="zh-Hans"] .home-hero h1 { font-size: 34px; }
  html[lang="zh-Hans"] .fw-quote { font-size: 24px; }
  html[lang="zh-Hans"] .fw-big { font-size: 32px; }
}

/* =====================================================================
   Interaction: reveal on scroll, reading progress, flip cards,
   compounding calculator, tickable checklist, briefs that open in place
   ===================================================================== */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.read-progress { position: fixed; left: 0; top: 0; z-index: 80; width: 100%; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* six traits: cards that flip to an example */
.fw-hint { display: inline-block; margin-left: 6px; font-size: 13px; color: var(--brand-700); font-weight: 650; }
.fw-trait.flip { perspective: 1000px; background: none; border: 0; padding: 0; box-shadow: none; cursor: pointer; font: inherit; color: inherit; text-align: center; min-height: 212px; }
.flip-in { position: relative; display: block; width: 100%; height: 100%; min-height: 212px; transition: transform .6s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d; }
@media (hover: hover) { .flip:hover .flip-in { transform: rotateY(180deg); } }
.flip:focus-visible .flip-in, .flip[aria-pressed="true"] .flip-in { transform: rotateY(180deg); }
.flip:focus-visible { outline: none; }
.flip:focus-visible .flip-face { box-shadow: 0 0 0 3px var(--brand-100); }
.flip-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flip-face .pbadge { margin-bottom: 6px; }
.flip-face.back { transform: rotateY(180deg); background: var(--brand-50); border-color: var(--brand-100); }
.fw-tt { font-size: 15.5px; font-weight: 750; line-height: 1.25; color: var(--ink); }
.fw-td { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.flip-face.back .fw-tt { color: var(--brand-700); font-size: 14px; }
.flip-face.back .fw-td { color: #3d362f; font-size: 14px; line-height: 1.5; }

/* how long does 100x take? */
.cg-calc { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.cg-calc label { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.cg-calc label b { color: var(--brand); font-size: 15px; margin-left: 4px; }
.cg-calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--brand) var(--p, 33%), var(--line) var(--p, 33%)); outline: none; cursor: pointer; }
.cg-calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 2px 6px rgba(29, 29, 29, .2); }
.cg-calc input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.cg-track { position: relative; height: 10px; border-radius: 99px; background: #efe7d8; margin: 6px 0 20px; }
.cg-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #c99a87, var(--brand)); transition: width .25s ease; }
.cg-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); opacity: .6; }
.cg-mark i { position: absolute; top: 100%; left: 0; white-space: nowrap; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); padding-top: 4px; }
.cg-out { font-size: 15px; font-weight: 650; color: var(--ink); }

/* pre-buy checklist you can tick */
.fw-check header { flex-wrap: wrap; }
.ck-count { margin-left: auto; font-size: 13.5px; font-weight: 800; color: var(--brand-700); background: var(--brand-50); padding: 5px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.fw-check.done .ck-count { background: var(--brand); color: #fff; }
.fw-check .ck { display: flex; align-items: flex-start; gap: 11px; width: 100%; padding: 4px 0; border: 0; background: none; font: inherit; font-weight: 650; font-size: 15px; line-height: 1.4; color: var(--ink); text-align: left; cursor: pointer; }
.fw-check .ck .box { background: var(--card); border: 2px solid var(--brand-100); color: transparent; transition: background .18s, border-color .18s, color .18s, transform .18s; }
.fw-check .ck:hover .box { border-color: var(--brand); }
.fw-check .ck[aria-pressed="true"] .box { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.06); }
.fw-check .ck[aria-pressed="true"] > span:last-child { color: var(--muted); }

/* small motion touches */
.vz-loop { animation: vz-dash 1.8s linear infinite; }
@keyframes vz-dash { to { stroke-dashoffset: -22; } }
.fw-wf { transition: transform .2s ease, box-shadow .2s ease; }
.fw-wf:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.fw-chips span, .fw-panel li { transition: transform .15s ease; }
.fw-panel li:hover { transform: translateX(3px); }
.about-item .pbadge, .fw-stage .pbadge { transition: transform .2s ease; }
.about-item:hover .pbadge, .fw-stage:hover .pbadge { transform: rotate(-6deg) scale(1.06); }

/* today's briefs open in place */
.blist.qv { padding: 4px 6px; }
.bq { border-top: 1px solid var(--line-2); }
.bq:first-child { border-top: 0; }
.bq summary { display: grid; grid-template-columns: 64px auto 1fr 22px; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 8px; cursor: pointer; list-style: none; }
.bq summary::-webkit-details-marker { display: none; }
.bq summary:hover { background: #fbf6ec; }
.bq summary:hover .brow-title { color: var(--brand-700); }
.bq-ic { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-50); }
.bq-ic::before, .bq-ic::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; border-radius: 2px; background: var(--brand); transition: transform .2s ease; }
.bq-ic::after { transform: rotate(90deg); }
.bq[open] .bq-ic::after { transform: rotate(0deg); }
.bq-body { padding: 2px 12px 16px 88px; animation: bq-in .25s ease; }
.bq-body p { font-size: 15px; line-height: 1.6; color: #4a4238; }
.bq-body .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--brand-700); }
@keyframes bq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .bq summary { grid-template-columns: 52px 1fr 22px; }
  .bq summary .brow-tk { display: none; }
  .bq-body { padding-left: 12px; }
  .fw-trait.flip, .flip-in { min-height: 232px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .flip-in, .cg-fill, .fw-wf, .bq-body { transition: none; animation: none; }
  .vz-loop { animation: none; }
}

/* Stock pages: one layout for every company; moat grades on one colour scale */
.grade.g-good { background: #e3f4ea; color: #126b38; }
.grade.g-mid { background: #fbf1d9; color: #8a6206; }
.grade.g-warn { background: #fde9d7; color: #a4510a; }
.grade.g-bad { background: #f9e1e1; color: #a12a2a; }
.grade.g-info { background: #e5eef9; color: #2f5d94; }
.sub-head { font-family: var(--font); font-stretch: 100%; font-size: 15px; font-weight: 750; margin: 26px 0 12px; color: var(--ink); }
.empty-note { padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px dashed var(--line); color: var(--muted); font-size: 15px; }
.card .dossier-link { margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--ink); }
.card .dossier-link:hover { border-color: var(--brand); }
.card .dossier-link .ic.lg { color: var(--brand); }
.card .dossier-link div { flex: 1; display: grid; gap: 2px; }
.card .dossier-link small { color: var(--brand-700); font-weight: 650; }
