/* Channel home, redesign direction A phase 2 (2026-09-24).
   Homepage latest band and topic tiles, the Start and Topic pages, and the
   "videos behind this tool" block on the tool pages. Tokens come from site.css;
   bump ?v= on every page that links this file when it changes. */

/* ---------- Latest video, directly under the hero ---------- */
.vp-home .latest-section { padding-top: 40px; }
.vp-home .latest-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: repeat(3, auto); gap: 18px 28px; align-items: start; }
.vp-home .latest-grid > .video-card:first-child { grid-row: 1 / span 3; }
.vp-home .latest-grid > .video-card:first-child .video-thumb { border-color: var(--border-hover); box-shadow: 0 24px 60px #0006; }
.vp-home .latest-grid > .video-card:first-child .video-thumb::after { content: 'Latest video'; position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 5px; background: var(--gold); color: var(--bg-deep); font: 600 13px var(--font-body); }
.vp-home .latest-grid > .video-card:first-child .video-title { font: 600 clamp(20px, 2.1vw, 27px)/1.3 var(--font-display); letter-spacing: -.025em; margin-top: 18px; }
.vp-home .latest-grid > .video-card:not(:first-child) { display: grid; grid-template-columns: 172px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border-subtle); }
.vp-home .latest-grid > .video-card:last-child { border-bottom: 0; padding-bottom: 0; }
.vp-home .latest-grid > .video-card:not(:first-child) .video-thumb { grid-row: 1 / span 2; }
.vp-home .latest-grid > .video-card:not(:first-child) .video-title { margin-top: 0; font-size: 16px; line-height: 1.45; }
.vp-home .latest-grid > .video-card:not(:first-child) .video-date { margin-top: 6px; }
.vp-home .latest-grid .video-card:hover .video-title { color: var(--gold-light); }

/* ---------- Topic tiles (homepage, Start, Topics, topic pages) ---------- */
.hub-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hub-topics.hub-topics-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hub-topic { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 24px 24px 0; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-primary); color: var(--white); text-decoration: none; overflow: hidden; transition: border-color 200ms, transform 200ms var(--ease-out); }
.hub-topic:hover { border-color: var(--gold-dim); transform: translateY(-3px); }
.hub-index { font: 600 13px var(--font-body); color: var(--gold-light); letter-spacing: .06em; }
.hub-topic-name { font: 600 22px/1.25 var(--font-display); letter-spacing: -.03em; margin-top: 14px; }
.hub-topic-line { color: var(--white-dim); font-size: 15px; line-height: 1.55; margin-top: 10px; }
.hub-topic-meta { color: var(--gold-light); font-size: 14px; margin-top: 16px; }
.hub-topic-thumbs { display: flex; margin: auto -6px -8px 0; padding-top: 26px; }
.hub-topic-thumbs img { flex: 0 0 52%; width: 52%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-card); border-radius: 6px 6px 0 0; border: 1px solid var(--border-hover); border-bottom: 0; margin-right: -28%; box-shadow: -10px 0 22px #06060e; transition: transform 240ms var(--ease-out); }
.hub-topic-thumbs img:nth-child(2) { transform: translateY(8px); }
.hub-topic-thumbs img:nth-child(3) { transform: translateY(16px); }
.hub-topic:hover .hub-topic-thumbs img { transform: translateY(0); }

/* ---------- Subscribe band ---------- */
.vp-home .hub-subscribe { text-align: center; border-top: 1px solid var(--border-subtle); background: radial-gradient(ellipse at 50% 0%, #c9a84c14, transparent 60%); }
.vp-home .hub-subscribe .section-heading, .vp-home .hub-subscribe .section-body { margin-inline: auto; }
.vp-home .hub-subscribe .cta-group { justify-content: center; margin-top: 28px; }
.hub-soon { color: var(--white-faint); font-size: 14px; margin-top: 20px !important; }

/* ---------- Hub pages ---------- */
.vp-hub .hub-hero { padding: 140px 24px 56px; border-bottom: 1px solid var(--border-subtle); background: radial-gradient(ellipse at 15% 0%, #c9a84c12, transparent 55%); }
.vp-hub .hub-hero h1 { font-size: clamp(36px, 4.6vw, 58px); max-width: 820px; }
.vp-hub .hub-lead { color: var(--white-dim); font-size: 18px; line-height: 1.7; max-width: 680px; margin: 22px 0 28px; }
.vp-hub .hub-crumbs { font-size: 14px; color: var(--white-faint); margin-bottom: 18px; }
.vp-hub .hub-crumbs a { color: var(--white-dim); }
.vp-hub .hub-crumbs a:hover { color: var(--gold-light); }
.vp-hub .hub-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hub-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
.hub-videos > .hub-video:first-child { grid-column: span 2; grid-row: span 2; }
.hub-video { display: block; color: var(--white); text-decoration: none; min-width: 0; }
.hub-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 9px; border: 1px solid var(--border-subtle); background: var(--bg-card); }
.hub-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 240ms var(--ease-out); }
.hub-video:hover .hub-thumb img, .hub-step-video:hover .hub-thumb img { transform: scale(1.04); }
.hub-play { position: absolute; right: 10px; bottom: 9px; display: grid; place-items: center; padding: 5px; border-radius: 5px; background: #06060edd; }
.hub-play svg { width: 22px; height: 22px; fill: var(--white); }
.hub-video-text { display: block; }
.vp-hub .hub-video-title { font: 500 17px/1.45 var(--font-body); margin-top: 14px; }
.vp-hub .hub-videos > .hub-video:first-child .hub-video-title { font: 600 clamp(20px, 2vw, 26px)/1.3 var(--font-display); letter-spacing: -.02em; }
.hub-video:hover .hub-video-title { color: var(--gold-light); }
.hub-video-meta { display: block; font-size: 13px; color: var(--white-faint); margin-top: 8px; }

.hub-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.hub-tool { display: flex; flex-direction: column; min-height: 210px; padding: 24px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-primary); color: var(--white); text-decoration: none; transition: border-color 200ms, transform 200ms var(--ease-out); }
.hub-tool:hover { border-color: var(--gold-dim); transform: translateY(-3px); }
.hub-tool-top { display: flex; justify-content: space-between; color: var(--white-faint); font-size: 13px; }
.hub-tool-name { font: 600 20px/1.3 var(--font-display); letter-spacing: -.02em; margin-top: 18px; }
.hub-tool-line { color: var(--white-dim); font-size: 15px; line-height: 1.6; margin-top: 10px; }
.hub-tool-go { margin-top: auto; padding-top: 18px; color: var(--gold-light); font-size: 15px; }

.hub-explain { background: var(--bg-primary); border-block: 1px solid var(--border-subtle); }
.hub-explain-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; align-items: start; }
.vp-hub .hub-prose p { color: var(--white-dim); font-size: 17px; line-height: 1.75; }
.vp-hub .hub-prose p + p { margin-top: 18px; }
.vp-hub .hub-note { color: var(--white-faint) !important; font-size: 14px !important; }
.vp-hub .hub-topics-foot { margin-top: 28px; }
.vp-hub .hub-topics-foot a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 4px; }

/* Start: a numbered rail, each step linked to the next by a gold line */
.hub-start-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.hub-start-aside { position: sticky; top: 104px; padding: 26px; border: 1px solid var(--border-hover); border-radius: 12px; background: var(--bg-primary); }
.vp-hub .hub-start-aside h3 { font: 600 20px/1.35 var(--font-display); letter-spacing: -.02em; }
.hub-start-aside ul { list-style: none; margin: 18px 0; padding: 0; }
.hub-start-aside li { position: relative; padding: 10px 0 10px 26px; border-top: 1px solid var(--border-subtle); color: var(--white-dim); font-size: 15px; line-height: 1.55; }
.hub-start-aside li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--gold); }
.vp-hub .hub-start-aside p:last-child { color: var(--white-faint); font-size: 14px; }
.hub-start-aside a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 4px; }
.hub-steps { list-style: none; margin: 0; padding: 0; max-width: 900px; }
.hub-step { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; padding-bottom: 26px; }
.hub-step:not(:last-child)::before { content: ''; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: linear-gradient(var(--gold-dim), var(--border-hover)); }
.hub-step-num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold-dim); background: var(--bg-deep); color: var(--gold-light); font: 600 20px var(--font-display); }
.hub-step-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; padding: 18px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-primary); color: var(--white); text-decoration: none; transition: border-color 200ms; }
.hub-step-card.hub-step-tool { grid-template-columns: minmax(0, 1fr); border-left: 3px solid var(--gold); }
.hub-step-card:hover { border-color: var(--gold-dim); }
.hub-step-body { display: flex; flex-direction: column; min-width: 0; }
.hub-step-kind { color: var(--gold-light); font-size: 13px; letter-spacing: .04em; }
.hub-step-title { font: 600 20px/1.35 var(--font-display); letter-spacing: -.02em; margin-top: 8px; }
.hub-step-line { color: var(--white-dim); font-size: 16px; line-height: 1.6; margin-top: 8px; }
.hub-step-go { margin-top: auto; padding-top: 12px; color: var(--gold-light); font-size: 15px; }

@media (max-width: 1050px) {
  .hub-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-topics.hub-topics-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .vp-home .latest-grid { grid-template-columns: 1fr; }
  .vp-home .latest-grid > .video-card:first-child { grid-row: auto; margin-bottom: 8px; }
  .vp-hub .hub-hero { padding: 108px 20px 40px; }
  .hub-videos { grid-template-columns: 1fr 1fr; }
  .hub-videos > .hub-video:first-child { grid-column: 1 / -1; grid-row: auto; }
  .hub-topics.hub-topics-three { grid-template-columns: 1fr; }
  .hub-explain-layout { grid-template-columns: 1fr; gap: 20px; }
  .hub-step-card { grid-template-columns: 1fr; }
}
@media (max-width: 1050px) { .hub-start-layout { grid-template-columns: 1fr; } .hub-start-aside { position: static; max-width: 900px; } }
@media (max-width: 540px) {
  .vp-home .latest-grid > .video-card:not(:first-child) { grid-template-columns: 128px minmax(0, 1fr); column-gap: 12px; }
  .vp-home .latest-grid > .video-card:not(:first-child) .video-title { font-size: 15px; }
  .hub-topics { grid-template-columns: 1fr; }
  .hub-videos { grid-template-columns: 1fr; }
  .vp-hub .hub-lead { font-size: 16px; }
  .hub-step { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .hub-step-num { width: 38px; height: 38px; font-size: 16px; }
  .hub-step:not(:last-child)::before { left: 18px; top: 38px; }
  .hub-step-card { padding: 14px; gap: 14px; }
  .hub-step-title { font-size: 18px; }
  .vp-hub .cta-group .button { width: 100%; }
}

/* ---------- Tool pages: the videos behind this tool ---------- */
.hub-related { padding: 56px 24px 40px; }
.hub-related-inner { max-width: 1000px; margin: 0 auto; padding-top: 40px; border-top: 1px solid var(--border-subtle); text-align: left; }
.hub-related .hub-related-kicker { margin: 0 0 10px; color: var(--gold-light); font: 500 14px var(--font-body); letter-spacing: .035em; }
.hub-related .hub-related-heading { margin: 0 0 24px; color: var(--white); font: 600 clamp(24px, 3vw, 32px)/1.2 var(--font-display); letter-spacing: -.03em; }
.hub-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hub-rel-video { display: flex; flex-direction: column; color: var(--white); text-decoration: none; min-width: 0; }
.hub-rel-video img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-subtle); transition: border-color 200ms; }
.hub-rel-video:hover img { border-color: var(--gold-dim); }
.hub-rel-title { display: block; margin-top: 12px; font: 500 16px/1.45 var(--font-body); }
.hub-rel-video:hover .hub-rel-title { color: var(--gold-light); }
.hub-rel-meta { display: block; margin-top: 6px; color: var(--white-faint); font-size: 13px; }
.hub-related .hub-related-foot { margin: 24px 0 0; color: var(--white-dim); font-size: 15px; line-height: 1.6; }
.hub-related-foot a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 800px) { .hub-related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) {
  .hub-related { padding: 40px 20px 4px; }
  .hub-related-grid { grid-template-columns: 1fr; gap: 16px; }
  .hub-rel-video { display: grid; grid-template-columns: 128px minmax(0, 1fr); column-gap: 12px; }
  .hub-rel-video img { grid-row: 1 / span 2; }
  .hub-rel-title { margin-top: 0; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-topic, .hub-tool, .hub-thumb img, .hub-topic-thumbs img { transition: none; }
}
