/* Vantage Point hub pages, rebuild 2026-11-07 (content-b).
   Start here, Topics, the four topic pages, the tools hub, Privacy (all generated by
   scripts/build_hubs.py) and the /videos/ library. Tokens and the shared components
   (nav, crumbs, footer, cards, buttons, chips, marks, facade, slot) come from
   /assets/site.css; this file holds only what the hubs need. Paper only: no dark
   ground anywhere. Mobile first at 375 px. */

/* ---------- Page header: crumbs, kicker, h1, lede, counts ---------- */
.hub-head { padding: var(--space-1) 0 var(--space-3); }
.hub-head + .vp-section, .hub-head + .vp-slot { padding-top: var(--space-3); }
@media (min-width: 1024px) { .hub-head + .vp-section { padding-top: var(--space-4); } }
.hub-head h1 { max-width: 20ch; margin-bottom: var(--space-2); }
.hub-head .vp-lede { margin-bottom: var(--space-2); }
.hub-head .vp-actions { margin-top: var(--space-3); }
.hub-counts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.hub-head-grid { display: grid; gap: var(--space-4); align-items: center; }
.hub-head-copy { min-width: 0; }
@media (min-width: 1024px) {
    .hub-head-grid.has-scene { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-5); }
}
.hub-aside-line { margin: 0; max-width: 34ch; color: var(--white-dim); font-size: var(--text-sm); }

/* ---------- The library scene in a topic header (brief 9(g)) ---------- */
.vp-scene { margin: 0; min-width: 0; }
.vp-scene-stage { position: relative; overflow: hidden; height: 300px; background: var(--bg-card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hard); }
@media (min-width: 600px) { .vp-scene-stage { height: auto; aspect-ratio: 16 / 9; } }
.vp-scene figcaption { margin-top: .85rem; font-size: var(--text-sm); line-height: 1.5; color: var(--white-dim); max-width: 60ch; }
.vp-scene.is-failed .vp-scene-stage { display: none; }
/* f09 draws SVG at run time, which the adapter's colour map does not reach, so the paper
   palette is applied here (CSS outranks SVG presentation attributes). Since the 11-07 fix round no part of
   it is rust (the accent is for links and actions): gears and funnel are a yellow fill, the pipe warm ink. Its ink title strip
   repeats the figcaption and is hidden; fonts become the site's. */
.vp-scene[data-scene="f09-growth-machine"] svg text { font-family: var(--font-body); }
.vp-scene[data-scene="f09-growth-machine"] path[d^="M0 "] { display: none; }
.vp-scene[data-scene="f09-growth-machine"] text[font-size="64"] { display: none; }
.vp-scene[data-scene="f09-growth-machine"] rect[fill="#F4EFE4"] { fill: #fffdf7; }
.vp-scene[data-scene="f09-growth-machine"] [fill="#E8E0CF"], .vp-scene[data-scene="f09-growth-machine"] [fill="#E9E2D2"] { fill: #efe6d2; }
.vp-scene[data-scene="f09-growth-machine"] [fill="#1D2030"], .vp-scene[data-scene="f09-growth-machine"] [fill="#1D2030"] { fill: #1c1a16; }
.vp-scene[data-scene="f09-growth-machine"] [stroke="#1D2030"] { stroke: #1c1a16; }
.vp-scene[data-scene="f09-growth-machine"] [fill="#3A78D4"] { fill: #f7f1e3; }
.vp-scene[data-scene="f09-growth-machine"] [fill="#DDEBF7"], .vp-scene[data-scene="f09-growth-machine"] [fill="#E3F2F8"] { fill: #fffdf7; }
.vp-scene[data-scene="f09-growth-machine"] [fill="#F08A3C"] { fill: #ffd23f; }
.vp-scene[data-scene="f09-growth-machine"] [fill="#7A5BA6"] { fill: #463f33; }
.vp-scene[data-scene="f09-growth-machine"] [fill="#3E9E68"] { fill: #ffd23f; }
.vp-scene[data-scene="f09-growth-machine"] [stroke="#8FD0A2"] { stroke: #1c1a16; }
.vp-scene[data-scene="f09-growth-machine"] [stroke="#9FB9E6"] { stroke: #463f33; }
.vp-scene[data-scene="f09-growth-machine"] [stroke="#CFC8BA"] { stroke: #b9ab8f; }
.vp-scene[data-scene="f09-growth-machine"] [stroke="#C9A84C"] { stroke: #1c1a16; }

/* ---------- Thumbnails and the play badge ---------- */
.hub-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-card); border: var(--line); border-radius: var(--radius); }
.hub-thumb picture, .hub-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hub-play { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 40px; height: 28px; border-radius: 6px; background: var(--bg-card); border: 2px solid var(--ink); }
.hub-play svg { width: 20px; height: 20px; fill: var(--gold); }

/* ---------- Topic videos: one large, then the list ---------- */
.hub-video { display: grid; grid-template-columns: minmax(118px, 42%) minmax(0, 1fr); column-gap: .9rem; align-items: start; color: var(--ink); text-decoration: none; padding-top: var(--space-2); border-top: 1.5px dashed var(--border-hover); }
.hub-video .hub-play { display: none; }
.hub-video:hover { color: var(--ink); }
.hub-video-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.vp-page .hub-video-title { font: 600 1.0625rem/1.28 var(--font-display); margin: 0; text-wrap: pretty; }
.hub-video-meta { font-size: var(--text-sm); color: var(--white-faint); }
.hub-video:hover .hub-video-title { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.hub-videos { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.hub-video-big { display: grid; grid-template-columns: 1fr; gap: .75rem; padding: 0; border: 0; margin-bottom: var(--space-2); }
.hub-video-big .hub-thumb { box-shadow: var(--shadow-hard); }
.hub-video-big .hub-play { display: grid; }
.vp-page .hub-video-big .hub-video-title { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); line-height: 1.2; }
@media (min-width: 700px) {
    .hub-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-3); row-gap: var(--space-3); }
    .hub-video { grid-template-columns: 1fr; row-gap: .6rem; padding-top: 0; border-top: 0; }
    .hub-video .hub-play { display: grid; }
    .hub-video-big { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; column-gap: var(--space-4); }
}
@media (min-width: 1024px) { .hub-videos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Tool cards and the "also" cards ---------- */
.hub-tools { margin-top: var(--space-1); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.hub-also { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
@media (min-width: 800px) { .hub-also { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hub-games-card { max-width: 44rem; }

/* ---------- Explainer prose ---------- */
.hub-explain-layout { display: grid; gap: var(--space-2) var(--space-5); }
@media (min-width: 900px) { .hub-explain-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; } }
.hub-prose p { font-size: var(--text-base); line-height: 1.65; color: var(--white-dim); }
.hub-prose h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); margin-top: var(--space-4); }
.hub-prose h2:first-child { margin-top: 0; }

/* ---------- Topic rows (the same markup as the homepage's TOPIC-TILES) ---------- */
.hub-topics { display: grid; gap: 0; border-top: var(--line); }
.hub-topic { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: .85rem; row-gap: .1rem; align-items: baseline; align-content: start; padding: 1rem .35rem; border-bottom: 1.5px dashed var(--border-hover); color: var(--ink); text-decoration: none; transition: background-color var(--dur-fast) var(--ease-out); }
.hub-topic:hover { background: var(--bg-card-hover); color: var(--ink); }
.hub-topic:hover .hub-topic-name { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.hub-index { grid-row: 1 / span 3; font: 700 1.75rem/1 var(--font-hand); color: var(--gold); }
.hub-topic-name { font: 600 1.375rem/1.2 var(--font-display); }
.hub-topic-line { color: var(--white-dim); font-size: 1rem; line-height: 1.45; }
.hub-topic-meta { font: 700 var(--text-sm)/1.4 var(--font-body); color: var(--white-faint); }
.hub-topic-thumbs { display: none; }
@media (min-width: 800px) {
    .hub-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4); }
    .hub-topics-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hub-topic { grid-template-columns: 2.75rem minmax(0, 1fr) 176px; padding: 1.2rem .5rem; }
    .hub-topics-three .hub-topic { grid-template-columns: 2.5rem minmax(0, 1fr); }
    .hub-topic-thumbs { display: block; position: relative; grid-column: 3; grid-row: 1 / span 3; align-self: center; height: 92px; }
    .hub-topics-three .hub-topic-thumbs { display: none; }
    .hub-topic-thumbs .thumb { position: absolute; top: 6px; width: 120px; aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; background: var(--bg-card); box-shadow: 2px 2px 0 var(--ink); transition: transform var(--dur) var(--ease-out); }
    .hub-topic-thumbs .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .hub-topic-thumbs .thumb:nth-child(1) { left: 0; transform: rotate(-5deg); z-index: 1; }
    .hub-topic-thumbs .thumb:nth-child(2) { left: 28px; top: 14px; transform: rotate(2deg); z-index: 2; }
    .hub-topic-thumbs .thumb:nth-child(3) { left: 54px; top: 2px; transform: rotate(6deg); z-index: 3; }
    .hub-topic:hover .thumb:nth-child(1) { transform: rotate(-8deg) translate(-6px, -2px); }
    .hub-topic:hover .thumb:nth-child(3) { transform: rotate(9deg) translate(6px, -2px); }
}
/* /topics/: each topic as a taller row with room for the thumbnails */
@media (min-width: 800px) {
    .hub-topics-index .hub-topic { padding-block: 1.6rem; }
    .vp-page .hub-topics-index .hub-topic-name { font-size: 1.6rem; }
}

/* ---------- Start here: the numbered steps ---------- */
.hub-start-layout { display: grid; gap: var(--space-4); }
@media (min-width: 1024px) { .hub-start-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.hub-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); counter-reset: none; }
.hub-step { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: .75rem; align-items: start; }
.hub-step-num { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: var(--line); border-radius: 50%; background: var(--highlight); font: 600 1.25rem/1 var(--font-display); color: var(--ink); }
.hub-step-card { display: grid; gap: .75rem; padding: var(--space-2); background: var(--bg-card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hard); color: var(--ink); text-decoration: none; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.hub-step-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-hover); color: var(--ink); }
@media (min-width: 700px) { .hub-step-video { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: center; gap: var(--space-3); padding: var(--space-3); } .hub-step-tool { padding: var(--space-3); } }
.hub-step-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.hub-step-kind { font: 700 var(--text-sm)/1.3 var(--font-body); color: var(--gold); }
.hub-step-title { font: 600 1.25rem/1.25 var(--font-display); text-wrap: pretty; }
.hub-step-line { color: var(--white-dim); }
.hub-step-go { font-weight: 700; color: var(--gold); margin-top: .2rem; }
.hub-step-card:hover .hub-step-go { text-decoration: underline; text-underline-offset: .2em; }
.hub-start-aside { padding: var(--space-3); background: var(--bg-primary); border: 1.5px dashed var(--border-hover); border-radius: var(--radius); }
.hub-start-aside ul { margin: 0 0 var(--space-2); padding-left: 1.2rem; }
.hub-start-aside li { margin-bottom: .5rem; color: var(--white-dim); }
.hub-start-aside p { margin: 0; color: var(--white-dim); }
@media (min-width: 1024px) { .hub-start-aside { position: sticky; top: 88px; } }

/* ---------- /videos/: the library ---------- */
.vid-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.vp-page .vid-jump a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1rem; background: var(--bg-card); border: var(--line); border-radius: 999px; font-weight: 700; color: var(--ink); text-decoration: none; box-shadow: 2px 2px 0 var(--ink); }
.vp-page .vid-jump a:hover { background: var(--bg-card-hover); color: var(--ink); }
.vid-jump .vp-num { color: var(--gold); }
.vid-newest { display: grid; gap: var(--space-3); align-items: center; }
@media (min-width: 900px) { .vid-newest { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-5); } }
.vid-newest h2 { margin-bottom: .5rem; }
.vid-newest p { color: var(--white-dim); margin: 0; max-width: 46ch; }
.vid-questions { display: grid; gap: var(--space-3); }
@media (min-width: 900px) { .vid-questions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vid-q { display: flex; flex-direction: column; gap: .5rem; padding: var(--space-3); background: var(--bg-card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hard); }
.vid-q h3 { margin: 0; }
.vid-q p { margin: 0; color: var(--white-dim); }
.vid-q ul { list-style: none; margin: auto 0 0; padding: .5rem 0 0; border-top: 1.5px dashed var(--border-hover); display: grid; gap: .1rem; }
.vid-q li a { display: inline-block; padding: .55rem 0; font-weight: 700; color: var(--gold); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.vid-q li a:hover { color: var(--gold-light); }
.vid-more-line { margin: var(--space-3) 0 0; color: var(--white-dim); }
/* the generated cards keep their legacy class names (build_videos_band.py) */
.vid-grid { display: grid; gap: var(--space-2); }
.vid-grid .video-card { display: grid; grid-template-columns: minmax(118px, 42%) minmax(0, 1fr); column-gap: .9rem; align-items: start; padding-top: var(--space-2); border-top: 1.5px dashed var(--border-hover); color: var(--ink); text-decoration: none; }
.vid-grid .video-card:first-child { border-top: 0; padding-top: 0; }
.vid-grid .video-thumb { position: relative; grid-row: 1 / span 2; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-card); border: var(--line); border-radius: var(--radius); }
.vid-grid .video-thumb picture, .vid-grid .video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vid-grid .video-play { display: none; position: absolute; right: 8px; bottom: 8px; place-items: center; width: 40px; height: 28px; border-radius: 6px; background: var(--bg-card); border: 2px solid var(--ink); }
.vid-grid .video-play svg { width: 20px; height: 20px; fill: var(--gold); }
.vp-page .vid-grid .video-title { font: 600 1.0625rem/1.28 var(--font-display); margin: 0 0 .2rem; color: var(--ink); text-wrap: pretty; }
.vp-page .vid-grid .video-date { font-size: var(--text-sm); color: var(--white-faint); margin: 0; }
.vid-grid .video-card:hover .video-title { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .18em; }
@media (min-width: 700px) {
    .vid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-3); row-gap: var(--space-4); }
    .vid-grid .video-card, .vid-grid .video-card:first-child { grid-template-columns: 1fr; row-gap: .6rem; padding-top: 0; border-top: 0; }
    .vid-grid .video-thumb { grid-row: auto; }
    .vid-grid .video-play { display: grid; }
}
@media (min-width: 1024px) { .vid-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .vid-grid-long { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Shorts: vertical cards, three across on a phone */
.vid-shorts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2) .75rem; }
@media (min-width: 700px) { .vid-shorts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); } }
@media (min-width: 1024px) { .vid-shorts { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.vid-shorts .video-card { display: flex; flex-direction: column; gap: .4rem; color: var(--ink); text-decoration: none; min-width: 0; }
.vid-shorts .video-thumb { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--bg-card); border: var(--line); border-radius: var(--radius); }
.vid-shorts .video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vid-shorts .video-play { display: none; }
.vp-page .vid-shorts .video-title { font: 700 var(--text-sm)/1.3 var(--font-body); margin: 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vp-page .vid-shorts .video-date { font-size: var(--text-xs); color: var(--white-faint); margin: 0; }
.vid-shorts .video-card:hover .video-title { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .15em; }
.vid-shorts-more { margin-top: var(--space-3); }
.vid-shorts-more > summary { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 1.25rem; background: var(--bg-card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hard); font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.vid-shorts-more > summary::-webkit-details-marker { display: none; }
.vid-shorts-more > summary::after { content: ""; width: .55rem; height: .55rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-fast) var(--ease-out); }
.vid-shorts-more[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.vid-shorts-more > summary:hover { background: var(--bg-card-hover); }
.vid-shorts-more[open] > summary { margin-bottom: var(--space-3); }
.vid-shorts-more .vid-less { display: none; }
.vid-shorts-more[open] .vid-less { display: inline; }
.vid-shorts-more[open] .vid-open { display: none; }

@media (prefers-reduced-motion: reduce) {
    .hub-step-card, .hub-topic, .hub-topics .thumb, .vid-shorts-more > summary::after { transition: none; }
    .hub-step-card:hover { transform: none; }
}

/* pass 1: a header with a scene gives the h1 a little less room */
@media (min-width: 1024px) { .vp-page .has-scene h1 { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.6rem); } }
/* pass 1: no doubled gap when the subscribe band follows a section on the same ground */
.vp-section:not(.vp-section-alt) + .vp-slot { padding-top: 0; }
/* pass 1: cards in an equal-height row keep their date under the title */
.vid-grid .video-card, .hub-video { align-content: start; }
/* pass 2: no one-word widow under a heading (critic check 4) */
.hub-head .vp-lede, .vp-scene figcaption, .vid-newest p { text-wrap: balance; }

/* ---------- Fix round 2026-11-07 (critic content-b) ---------- */
/* Check 3, one accent: rust only on things you can click. Kickers are ink (Caveat stays the voice),
   and the current breadcrumb gets the yellow highlighter, the fill the open menu uses for "you are here". */
.vp-hubpage .vp-kicker { color: var(--white-dim); }

/* the separator slash sits inside the current li: it keeps the plain ground, so only the word is highlighted */

/* Check 4, widows: short text balances its lines, so no line ends on one word at 390 or 1440;
   longer prose uses pretty. The arrow on a meta line stays with its words. */
.vp-hubpage :is(h1, h2, h3, .hub-video-title, .video-title, .vp-card-title, .vp-card-line, .hub-step-title, .hub-step-line,
    .hub-topic-name, .hub-topic-line, .vid-q p, .vp-slot-line, .hub-aside-line, .vid-more-line, .hub-start-aside li, .hub-start-aside p) { text-wrap: balance; }
.vp-hubpage :is(.hub-prose p, .vp-prose p, .vp-note) { text-wrap: pretty; }
.hub-nowrap { white-space: nowrap; }
/* Check 6, motion: the scene shows its landed frame (no scene easing runs); the stage itself enters once,
   expo-out, when 40% of it is in view. Without motion (or JS) it is simply there. */
html.vp-motion .vp-scene.is-waiting .vp-scene-stage { opacity: 0; transform: translateY(14px); }
html.vp-motion .vp-scene.is-entering .vp-scene-stage { transition: opacity var(--dur-slow, 600ms) var(--ease-out), transform var(--dur-slow, 600ms) var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .vp-scene .vp-scene-stage { opacity: 1 !important; transform: none !important; transition: none !important; } }
/* Tool cards: at most three across, so a tool name fits its card on one or two balanced lines
   (four across left 204px for 22px titles at 1440). A lone last card in a row of three runs the full row. */
@media (min-width: 1024px) {
    .hub-tools { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    .hub-tools > .vp-card:nth-child(3n+1):last-child:not(:first-child) { grid-column: 1 / -1; }
}
/* /videos/: the generated long-video titles balance too (this selector outranks the card rule above), the
   question links keep their arrow with the last word, and Short captions show whole, balanced, instead of
   a three-line clamp (a clamp cannot balance). */
.vp-page .vid-grid .video-title, .vp-page .vid-shorts .video-title { text-wrap: balance; }
.vp-page .vid-shorts .video-title { display: block; -webkit-line-clamp: none; overflow: visible; }
.vid-q li a { text-wrap: balance; }
/* Shorts on a phone: two columns, not three. At three, a caption column is about 110px and a long word
   ("compounding", "disappear?") sits alone on its last line whatever the wrap; at two it is about 170px and
   balance keeps two words on every last line. The cover is cropped square to keep the page short. */
@media (max-width: 699px) {
    .vid-shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) .75rem; }
    .vid-shorts .video-thumb { aspect-ratio: 1 / 1; }
    .vid-shorts .video-thumb img { object-position: 50% 35%; }
}
