/* Help pages (app/public/help/): styled like the home page (2026-11-25). Loaded after pages.css and
   after each page's own <style>, so these rules win. A help page's video is a poster that opens the
   shared player in site/videos.js (an <a class="vid" data-overview …>). */
main { padding-top: 3rem; }
h1 { font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
h1 span { color: var(--primary); }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.22rem); color: var(--ink-muted); }
.crumb, main > p:first-child { margin: 0 0 .8rem; font-weight: 700; color: var(--primary); font-size: .95rem; }
.crumb a, main > p:first-child a { color: var(--primary); text-decoration: none; }
.crumb a:hover, main > p:first-child a:hover { text-decoration: underline; }

h2 { color: var(--ink); font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; margin: 3rem 0 .6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.15rem; font-weight: 800; margin: 1.8rem 0 .3rem; }
li { margin: .45rem 0; }
ul { padding-left: 1.25rem; }
ul li::marker { color: var(--primary); }

/* Numbered steps: the number in a circle, as on the home page. */
main ol { list-style: none; padding-left: 0; counter-reset: step; }
main ol > li { counter-increment: step; position: relative; padding-left: 2.3rem; margin: .8rem 0; }
main ol > li::before { content: counter(step); position: absolute; left: 0; top: .1em; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: .85rem; font-weight: 700; }

.note { border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.5rem 0; background: var(--surface); }

table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
th { text-align: left; font-size: .9rem; color: var(--ink-muted); padding: 0 1rem .5rem 0; border: 0; }
td { border: 0; border-top: 1px solid var(--line); padding: .8rem 1rem .8rem 0; vertical-align: top; text-align: left; }

/* The help index: topics as a ruled list. */
ul.topics { list-style: none; padding: 0; display: grid; column-gap: 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
ul.topics li { border-top: 1px solid var(--line); margin: 0; padding: .9rem 0; color: var(--ink-muted); }
ul.topics li { position: relative; }
ul.topics li a { display: block; color: var(--primary); text-decoration: none; margin-bottom: .1rem; }
ul.topics li a strong::after { content: " →"; display: inline-block; transition: transform .15s; }
/* The whole row opens the topic. */
ul.topics li a::before { content: ""; position: absolute; inset: 0; }
ul.topics li:hover a strong { text-decoration: underline; text-underline-offset: 3px; }
ul.topics li:hover a strong::after { transform: translateX(3px); }
ul.topics li a:focus-visible { outline: none; }
ul.topics li:has(a:focus-visible) { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 4px; }
ul.topics li.soon { color: var(--ink-muted); font-style: italic; }
@media (max-width: 640px) { ul.topics { grid-template-columns: minmax(0, 1fr); } }
main.index { max-width: 68rem; }
main.index > .lead { max-width: 44rem; }

/* A video: its poster with a play label; opens the player over the page. */
.vid { position: relative; display: block; margin: 1.8rem 0 .5rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 20px 50px rgba(20, 25, 23, .14); }
.vid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.vid:hover img { transform: scale(1.02); }
.vid .tagged { position: absolute; left: 1rem; top: 1rem; display: inline-flex; align-items: center; gap: .7rem; padding: .45rem 1.1rem .45rem .45rem; border-radius: 999px; background: #fff; color: #141917; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.vid .tagged small { font-weight: 500; color: #505c59; font-size: .9em; }
.vid .big-play { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; background: #0b6e62; color: #fff; font-size: 1rem; }
.vid:hover .big-play { background: #08584e; }
.vid-note { color: var(--ink-muted); font-size: 1rem; margin: 0 0 1.8rem; }
@media (max-width: 520px) {
  .vid .tagged { left: .6rem; top: .6rem; gap: .5rem; padding: .3rem .8rem .3rem .3rem; font-size: .9rem; }
  .vid .big-play { width: 2rem; height: 2rem; font-size: .8rem; }
  .vid .tagged small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vid img { transition: none; } }
main.index .vid, main.index .vid-note { max-width: 44rem; }
