/* Guide pages: long-form pages that answer one search. Uses each site's own tokens. */
.guide-head { padding: calc(var(--nav-h, 72px) + clamp(48px, 9vw, 110px)) 0 clamp(28px, 4vw, 48px); }
.guide-tag { font: 500 12px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 22px; }
.guide-tag a { color: inherit; }
.guide-tag a:hover { color: var(--text); }
.guide-head .display { max-width: 15em; margin-bottom: 26px; }
.guide-head .lead { max-width: 38em; }
.guide-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.guide-cta .note { font-size: 14.5px; color: var(--text-3); }
.guide-body { padding: 0 0 clamp(56px, 8vw, 110px); }
.guide-body .prose { max-width: 44rem; }
.prose section { padding-top: clamp(36px, 5vw, 60px); }
.prose h2 { font-weight: 500; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.028em; text-wrap: balance; margin-bottom: 16px; }
.prose p { font-size: 17.5px; line-height: 1.62; color: var(--text-2); margin-bottom: 14px; }
.prose p strong, .prose li strong { font-weight: 500; color: var(--text); }
.prose ul, .prose ol { list-style: disc; margin: 0 0 14px; padding-left: 1.2em; color: var(--text-2); font-size: 17.5px; line-height: 1.62; }
.prose li { margin-bottom: 6px; }
.prose a:not(.btn) { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; transition: text-decoration-color var(--d-2, 200ms); }
.prose a:not(.btn):hover { text-decoration-color: currentColor; }
.prose code { font: 15px var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--fill-2); color: var(--text); }
.prose ol.steps { counter-reset: s; list-style: none; padding: 0; }
.prose .steps li { counter-increment: s; position: relative; padding-left: 2.4em; margin-bottom: 12px; }
.prose .steps li::before { content: counter(s); position: absolute; left: 0; top: 0.1em; width: 1.6em; height: 1.6em; display: grid; place-items: center; border-radius: 50%; font: 500 13px/1 var(--mono); background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.prose .faq-list details { border-bottom: 1px solid var(--line-2); }
.prose .faq-list summary { cursor: pointer; list-style: none; padding: 18px 0; font-size: 18px; font-weight: 500; color: var(--text); display: flex; justify-content: space-between; gap: 20px; }
.prose .faq-list summary::-webkit-details-marker { display: none; }
.prose .faq-list summary::after { content: '+'; color: var(--text-3); font-weight: 400; transition: rotate var(--d-3, 240ms); }
.prose .faq-list details[open] summary::after { rotate: 45deg; }
.prose .faq-list details p { padding: 0 2em 14px 0; margin: 0; }
.guide-end { border-top: 1px solid var(--line); padding: clamp(44px, 6vw, 80px) 0; }
.guide-end .h2 { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 14px; }
.guide-end p { color: var(--text-2); font-size: 17.5px; max-width: 34em; }
.guide-more { margin-top: 26px; font-size: 16px; color: var(--text-3); }
.guide-more a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; }

.prose .vs { overflow-x: auto; margin: 8px 0 18px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; color: var(--text-2); }
.prose thead th { font-weight: 500; color: var(--text); }
.prose tbody th { font-weight: 500; color: var(--text); }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }
.prose .src { font-size: 14px; color: var(--text-3); }

/* ── v4: guides dressed as Lantern (dither hero, app window, contents rail, close band) ── */
.g-hero { min-height: min(92svh, 980px); display: flex; align-items: center; padding: calc(var(--nav-h) + 48px) 0 72px; }
.g-hero .hero-field, .g-hero .hero-veil { height: 100%; }
.g-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.g-hero .display { font-size: clamp(44px, 5.6vw, 84px); max-width: 11em; margin-bottom: 24px; }
.g-hero .lead { max-width: 30em; }
.g-hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 18px; }
.g-crumb { display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 26px; }
.g-crumb a { color: var(--text-2); transition: color var(--d-2, 200ms); }
.g-crumb a:hover { color: var(--text); }
.g-crumb i { width: 4px; height: 4px; background: var(--tech-ink); }

/* The picture: a small Lantern window as live HTML. */
.g-win { position: relative; border-radius: var(--r-2xl); background: rgb(var(--sheet-rgb) / 0.74); -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -40px rgb(0 0 0 / 0.6); overflow: hidden; }
.g-win-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; color: var(--text-2); }
.g-win-bar .traffic { display: flex; gap: 7px; }
.g-win-bar .traffic i { width: 11px; height: 11px; border-radius: 50%; background: var(--fill-4); }
.g-win-bar b { font-weight: 500; color: var(--text); }
.g-win-body { padding: 10px; display: grid; gap: 4px; }
.g-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px; border-radius: var(--r-lg); font-size: 15px; color: var(--text-2); transition: background-color var(--d-2, 200ms); }
.g-row:hover { background: var(--fill-1); }
.g-row.is-on { background: var(--fill-2); color: var(--text); }
.g-row small { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.g-row .brand-ic { width: 18px; height: 18px; }
.g-row .brand-ic.mono { color: var(--text); }
.g-pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font: 500 12px/1 var(--mono); letter-spacing: 0.02em; color: var(--text-2); background: var(--fill-2); white-space: nowrap; }
.g-pill::before { content: ''; width: 6px; height: 6px; background: currentColor; }
.g-pill.work { color: var(--tech-ink); }
.g-pill.work::before { animation: g-blink 1.2s steps(2) infinite; }
.g-pill.wait { color: #e0a64a; }
.g-pill.done { color: var(--text-3); }
@keyframes g-blink { 50% { opacity: 0.2; } }
.g-meter { height: 6px; border-radius: 3px; background: var(--fill-3); overflow: hidden; margin-top: 8px; }
.g-meter span { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--tech-ink); }
.g-meter.hot span { background: #e0a64a; }
.g-win-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--text-3); }
.g-win-foot .kbd { font: 500 12px var(--mono); padding: 3px 7px; border-radius: 6px; background: var(--fill-2); color: var(--text-2); }

/* Body: contents rail beside the text. */
.g-body { position: relative; padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 120px); }
.g-body-grid { display: grid; grid-template-columns: 220px minmax(0, 44rem); gap: clamp(40px, 7vw, 120px); align-items: start; }
.g-toc { position: sticky; top: calc(var(--nav-h) + 32px); }
.g-toc p { font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.g-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; box-shadow: inset 1px 0 0 var(--line-2); }
.g-toc a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 8px 0 8px 14px; font-size: 14.5px; line-height: 1.35; color: var(--text-3); transition: color var(--d-2, 200ms), box-shadow var(--d-2, 200ms); }
.g-toc a span { font: 500 12px/1.6 var(--mono); }
.g-toc a:hover { color: var(--text); }
.g-toc a[aria-current] { color: var(--text); box-shadow: inset 2px 0 0 var(--tech-ink); }
.prose section { scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose section:first-child { padding-top: 0; }
.prose .g-num { display: block; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; color: var(--tech-ink); margin-bottom: 14px; }
.prose ul li::marker { color: var(--tech-ink); }
.prose .steps li::before { background: rgb(var(--sheet-rgb) / 0.9); box-shadow: inset 0 0 0 1px var(--line-3); color: var(--tech-ink); }
.prose .faq-list { display: grid; gap: 8px; }
.prose .faq-list details { border: 0; border-radius: var(--r-xl); background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--line-2); padding: 0 20px; transition: background-color var(--d-2, 200ms); }
.prose .faq-list details:hover, .prose .faq-list details[open] { background: var(--fill-2); }
.prose .faq-list details p { padding-bottom: 18px; }

/* Close: the home page's dither band. */
.g-close { min-height: min(86svh, 860px); }
.g-close .close-inner { gap: 22px; }
.g-close .display { font-size: clamp(44px, 6vw, 88px); }
.g-close .guide-more { text-align: center; }

@media (max-width: 1000px) {
  .g-hero-grid { grid-template-columns: 1fr; }
  .g-hero { min-height: 0; }
  .g-body-grid { grid-template-columns: 1fr; }
  .g-toc { display: none; }
}
@media (max-width: 600px) {
  .g-hero .cta-row .dl { width: 100%; justify-content: center; }
  .g-row { grid-template-columns: 18px minmax(0, 1fr); }
  .g-row .g-pill { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .g-pill.work::before { animation: none; } }
:root[data-theme='light'] .g-pill.wait { color: #9a6410; }
:root[data-theme='light'] .g-meter.hot span { background: #c98a2a; }
