/* The Guides section (guides.html, guides/*.html).
 *
 * The approved mock's rules, in their own file rather than appended to brand.css: brand.css is design
 * output and is replaced wholesale on every design sync. Same tokens as the rest of the site; nothing new.
 *
 * Ours, not the design's. Listed in GENERATED_SITE in scripts/vendor-site.mjs, or the vendor step prunes it.
 */
/* Exact on-screen label inside a sentence: a quiet button shape, not bold. */
.ui-label{display:inline-block;font:500 .86em/1.35 var(--font-body);color:var(--ink);background:#fff;border:1px solid var(--line);border-bottom-width:2px;border-radius:var(--r-s);padding:1px 7px;margin:0 1px;overflow-wrap:anywhere}
/* Guide card: a .card that is one link. */
a.card.guide-card{display:flex;flex-direction:column;gap:12px;text-decoration:none;color:var(--ink);transition:border-color .12s ease}
a.card.guide-card:hover{border-color:var(--needle);color:var(--ink)}
.guide-card h3{font-size:20px}
.guide-card p{color:var(--ink-soft);font-size:15px;flex:1}
.guide-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
/* Numbered steps with the mono counter the site uses for figures. */
.steps{list-style:none;padding:0;margin:0;counter-reset:step;display:flex;flex-direction:column;gap:28px}
.prose ol.steps{padding-left:0}
.steps>li{counter-increment:step;position:relative;padding-left:48px}
.steps>li::before{content:counter(step);position:absolute;left:0;top:0;width:32px;height:32px;border-radius:50%;border:1px solid var(--line);background:#fff;font:500 14px/30px var(--font-mono);text-align:center;color:var(--ink)}
.steps figure{margin:14px 0 0}
.steps figcaption,.video-block figcaption{font-size:13px;color:var(--ink-soft);margin-top:8px}
.shot-btn{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in;border-radius:var(--r-m)}
.shot.shot-frame{min-height:0;padding:0;display:block;overflow:hidden}
.shot.shot-ph{aspect-ratio:16/9;min-height:0}
/* Video poster: 16:9, play button, no embed until clicked. */
.video-poster{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;width:100%;border:1px solid var(--line-dark);border-radius:var(--r-m);background:var(--ink);color:var(--paper);cursor:pointer}
.video-poster .play{width:64px;height:64px;border-radius:50%;background:var(--needle);color:oklch(0.22 0.02 58);display:flex;align-items:center;justify-content:center}
.video-poster .vlabel{position:absolute;left:16px;bottom:12px;font:500 12px/1 var(--font-mono);letter-spacing:.1em;text-transform:uppercase;color:oklch(0.80 0.012 255)}
/* Lightbox (native dialog). */
dialog.lightbox{border:0;padding:0;background:transparent;max-width:min(96vw,1600px);width:96vw;overflow:visible}
dialog.lightbox::backdrop{background:oklch(0.21 0.014 255/.82)}
dialog.lightbox img{width:100%;height:auto;max-height:84vh;object-fit:contain;background:#fff;border-radius:var(--r-m)}
dialog.lightbox p{color:var(--paper);font-size:14px;margin-top:10px}
dialog.lightbox .btn{position:absolute;top:-48px;right:0}
.toc-mobile{display:none}
.guide-foot{margin-top:44px;padding-top:18px;border-top:1px solid var(--line);font-size:13px;color:var(--ink-soft)}
@media(max-width:900px){.toc-mobile{display:block;margin:0 0 24px}.toc-mobile ol{margin:10px 0 0;padding-left:20px;font-size:15px}}
@media(max-width:620px){.steps>li{padding-left:0;padding-top:42px}}
/* A sub-heading inside Steps ("Switch backups on", "Restore a deleted product"). */
.prose h3.steps-h{font-size:18px;margin:34px 0 16px}
.prose h3.steps-h:first-child{margin-top:0}
.video-block iframe{display:block;width:100%;aspect-ratio:16/9;border:1px solid var(--line-dark);border-radius:var(--r-m);background:var(--ink)}
/* The title comes first in the DOM (it is the link's anchor text); the pills still show above it. */
.guide-card .guide-meta{order:-1}
.guide-related{margin:36px 0 0;font-size:15px;color:var(--ink-soft)}
.guide-related a{margin-left:6px}
/* Video thumbnail: YouTube's static frame behind the play button; no embed until the click. */
.video-poster{overflow:hidden}
.video-poster .video-thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.video-poster::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,oklch(0.21 0.014 255/.55),transparent 55%)}
.video-poster .play,.video-poster .vlabel{position:relative;z-index:1}
.video-poster .vlabel{position:absolute}
.video-block.video-inline{margin:28px 0;max-width:760px}
.video-block.video-inline p{margin:10px 0 0}
/* Answer-first guides: the direct answer, the Updated line, the FAQ and the install card. */
.guide-updated{margin:0 0 10px}
.prose p.answer-first{font-size:19px;line-height:1.5;margin:0 0 22px}
.faq-list h3{font-size:18px;margin:22px 0 6px}
.faq-list p{margin:0}
.guide-cta{margin:28px 0}
.guide-cta p{margin:0}
/* The changelog. */
.changelog-day{margin:0 0 36px}
.changelog-day h2{font-size:22px;margin:0 0 12px}
.changelog-day ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:10px}
