/* VLPremier Pro · feature guide pages (guide.html, guide-screenshots.html). DESIGN PROTOTYPE ONLY.
   Markup is generated by _tools/md-to-proto.mjs (the CMS publisher's future output): .g-head, .g-layout,
   .g-side/.g-toc (desktop sticky TOC), .g-otp (mobile "On this page"), .g-body > .md-sec / .md-sub / .md-label /
   .md-fine / .md-contents / .md-faq / .fig-pair. Shared parts (crumbs, fig, lightbox, callout, qa, tbl) are components. */

/* ---------- page head ---------- */
.g-head { padding-top: calc(var(--nav-h) + 48px); }
.g-head h1 { margin-top: 24px; max-width: 20ch; font-size: clamp(36px, 4.6vw, 64px); }
.g-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.g-meta span { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-ctl); font: 400 var(--fs-meta)/1.4 var(--font-mono); color: var(--muted); }
.g-meta b { font-weight: 500; color: var(--text); }
.g-intro { margin-top: 32px; }
.g-intro > * + * { margin-top: 16px; }
.g-intro > p { max-width: 64ch; color: var(--muted); }
.g-intro > .md-label:first-child { max-width: 46ch; padding: 0; font: 400 clamp(19px, 1.6vw, 22px)/1.45 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--text); }
.g-intro > .md-label:first-child strong { font-weight: 600; color: var(--text); }
.g-intro .fig.cover { margin-top: 48px; }
.g-intro .fig.cover figcaption { max-width: 80ch; }

/* ---------- two-column layout: sticky TOC | article ---------- */
.g-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; padding-top: 72px; padding-bottom: clamp(64px, 8vw, 104px); }
.g-otp { display: none; }
.g-side { position: sticky; top: calc(var(--nav-h) + 32px); max-height: calc(100dvh - var(--nav-h) - 56px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.g-toc > p { margin-bottom: 12px; font: 600 14px/1.3 var(--font-display); color: var(--muted); }   /* 2026-10-29: sentence case, no mono capitals */
:is(.g-toc, .g-otp) ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
:is(.g-toc, .g-otp) a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.35; transition: color var(--t-tap), border-color var(--t-tap); }
:is(.g-toc, .g-otp) .l3 a { padding: 4px 0 4px 28px; font-size: 13px; }
:is(.g-toc, .g-otp) a:hover { color: var(--text); }
:is(.g-toc, .g-otp) a[aria-current] { color: var(--text); border-left-color: var(--accent); }
.g-side-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font: 400 var(--fs-meta)/2 var(--font-mono); color: var(--muted); }

/* ---------- article: text at a readable measure, figures wider ---------- */
.g-body { min-width: 0; max-width: 960px; }
.g-body :is(p, ul, ol, blockquote, .callout) { max-width: 68ch; }
.md-sec > * + *, .md-sub > * + * { margin-top: 16px; }
.md-sec + .md-sec { margin-top: clamp(56px, 7vw, 88px); }
.md-label + :is(ul, ol) { margin-top: 12px; }
.md-sec h2 { font-size: clamp(28px, 2.8vw, 40px); }
.md-sec h3 { font-size: clamp(20px, 1.8vw, 24px); }
.md-sec > h2 + * { margin-top: 24px; }
.md-sec > h2 + p:not(:has(br)) { margin-top: 20px; font-size: var(--fs-lede); line-height: 1.55; color: var(--text); }
.g-body p { color: var(--muted); }
.g-body strong { color: var(--text); font-weight: 600; }
.g-body a:not([class]):not([data-lightbox]) { color: var(--accent-bright); text-underline-offset: 3px; }
.g-body code { padding: 1px 6px; border-radius: 4px; background: var(--surface-2); font: 500 .86em/1.4 var(--font-mono); color: var(--text); overflow-wrap: anywhere; }
.g-body hr { margin: clamp(56px, 7vw, 88px) 0; border: 0; border-top: 1px solid var(--line); }
.md-label { padding-top: 20px; font: 600 14px/1.3 var(--font-display); }   /* 2026-10-29: sentence case, no mono capitals */
.md-label strong { font-weight: 500; color: var(--muted); }
.md-fine { font-size: 14px; line-height: 1.55; }
.g-body > .md-fine:last-child { font-size: 13px; }

/* lists: unordered = accent tick (ruler motif), ordered = numbered steps */
.g-body ul, .g-body ol { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.g-body li + li { margin-top: 10px; }
.g-body ul > li { position: relative; padding-left: 24px; }
.g-body ul > li::before { content: ""; position: absolute; left: 0; top: .8em; width: 12px; height: 1px; background: var(--accent); }
.g-body ol { counter-reset: step; }
.g-body ol > li { position: relative; padding-left: 44px; min-height: 28px; counter-increment: step; }
.g-body ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); font: 500 var(--fs-meta)/1 var(--font-mono); color: var(--text); }
.g-body ol > li + li { margin-top: 14px; }

/* in-article Contents: a compact index, scroll-spy aware */
.md-contents { margin-top: 20px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
.md-contents ul { max-width: none; columns: 3 200px; column-gap: 32px; }
.g-body .md-contents li { padding: 0; margin: 0; break-inside: avoid; }
.g-body .md-contents li::before { display: none; }
.g-body .md-contents a:not([class]) { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: var(--fs-sm); transition: color var(--t-tap); }
.g-body .md-contents a:not([class]):hover { color: var(--text); }

/* figures */
.g-body .fig { margin-top: 32px; margin-bottom: 8px; }
.g-body .fig + .fig { margin-top: 40px; }
.g-body .fig.is-tall > a { width: min(100%, 420px); }
.g-body .fig.is-tall img, .fig-pair .fig.is-tall img { width: 100%; }
.fig-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: clamp(12px, 3vw, 32px); margin-top: 32px; }
.g-body .fig-pair .fig { margin: 0; }
.fig-pair .fig.is-tall > a { width: 100%; }
.g-body .callout { margin-block: 24px; }

/* FAQ: native accordion, one open at a time */
.md-faq { max-width: 72ch; margin-top: 24px; }
.g-body .md-faq .ans p { max-width: 64ch; }
.md-faq .qa summary { font-size: 18px; }

/* ---------- screenshots & ad copy page: screenshot cards in a two-column grid ---------- */
.is-shots .md-sec:has(> .md-sub) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; align-items: start; }
.is-shots .md-sec:has(> .md-sub) > :not(.md-sub) { grid-column: 1 / -1; margin-top: 0; }
.is-shots .md-sec > .md-sub { margin-top: 0; }
.is-shots .md-sub:has(.is-tall) { grid-row: span 2; }
.is-shots .md-sub h3 { font-size: 19px; }
.is-shots .md-sub .fig { margin-top: 14px; }
.is-shots .md-sub ul > li { padding-left: 0; font-size: var(--fs-sm); }
.is-shots .md-sub ul > li::before { display: none; }
.is-shots .md-sub li > strong:first-child { display: block; margin-bottom: 2px; font: 500 var(--fs-meta)/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.is-shots .g-body .tbl-wrap { margin-top: 20px; }

/* ---------- tablet / phone: TOC becomes an "On this page" disclosure at the top ---------- */
@media (max-width: 1023px) {
  .g-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; }
  .g-side { display: none; }
  .g-otp { display: block; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
  .g-otp summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; cursor: pointer; font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
  .g-otp summary::-webkit-details-marker { display: none; }
  .g-otp summary::after { content: "+"; font: 400 22px/1 var(--font-mono); color: var(--accent-bright); transition: transform var(--t-fast) var(--ease); }
  .g-otp[open] summary::after { transform: rotate(45deg); }
  .g-otp nav { max-height: 60dvh; overflow-y: auto; padding: 4px 18px 16px; border-top: 1px solid var(--line); }
  .g-otp ol { margin-top: 12px; }
  .g-otp a { padding-block: 10px; font-size: 15px; }
  .g-otp .l3 a { padding-block: 8px; font-size: 14px; }
  /* the disclosure carries the same links as the in-article Contents list, so that list shows on desktop only */
  .md-sec[data-sec="contents"], .md-sec[data-sec="contents"] + hr { display: none; }
}
@media (max-width: 767px) {
  .g-head { padding-top: calc(var(--nav-h) + 32px); }
  .g-intro .fig.cover { margin-top: 32px; }
  .is-shots .md-sec:has(> .md-sub) { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .is-shots .md-sub:has(.is-tall) { grid-row: auto; }
  .md-contents { padding: 12px 18px; }
  .g-body .md-contents a { padding: 9px 0; }
}
.g-body hr:has(+ .md-fine:last-child) { margin-block: 64px 24px; }
