/* 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 Uplink (rising light, pixel meter, Uplink window, contents rail) ── */
.nav-meter { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 3px; margin: 0; color: var(--ink); opacity: 0.9; pointer-events: none; }
.g-hero { min-height: min(96svh, 1000px); display: flex; align-items: center; padding: calc(var(--nav-h) + clamp(40px, 7vh, 88px)) 0 clamp(56px, 8vh, 96px); }
.g-hero .hero-field { height: 100%; }
.g-veil { height: 100%; background:
    linear-gradient(to bottom, rgb(var(--bg-rgb) / 0.75), transparent 160px),
    radial-gradient(60% 50% at 50% 34%, rgb(var(--bg-rgb) / 0.92) 0%, rgb(var(--bg-rgb) / 0.62) 55%, transparent 84%),
    linear-gradient(to bottom, transparent 66%, var(--bg)); }
.g-hero-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(36px, 6vh, 64px); }
.g-hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.g-hero .display { font-size: clamp(44px, 6.4vw, 96px); line-height: 0.92; letter-spacing: -0.04em; max-width: 13em; margin-bottom: 24px; }
.g-hero .lead { max-width: 33em; text-wrap: pretty; }
.g-hero .cta-row { display: flex; justify-content: center; margin: 32px 0 16px; }
.g-hero .meta { justify-content: center; flex-wrap: wrap; text-align: center; }
.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(--ink); }
.g-hero-vis { width: min(100%, 640px); }

/* The picture: a small Uplink window as live HTML. */
.g-win { position: relative; text-align: left; border-radius: var(--r-2xl, 18px); background: rgb(var(--sheet-rgb) / 0.78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px -40px rgb(0 0 0 / 0.7); 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: 12px; display: grid; gap: 4px; }
.g-file { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; padding: 6px 12px; border-radius: var(--r-lg, 12px); font-size: 15px; color: var(--text); transition: background-color var(--d-2, 200ms); }
.g-file:hover { background: var(--fill-1); }
.g-file.dim { color: var(--text-3); }
.g-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-size { font: 500 12.5px var(--mono); color: var(--text-3); }
.g-k { display: inline-flex; align-items: center; gap: 7px; font: 500 11.5px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.g-k::before { content: ''; width: 6px; height: 6px; background: currentColor; }
.g-k.changed { color: var(--ink); }
.g-k.new { color: #6fe0b4; }
.g-bar { height: 6px; margin: 10px 12px 4px; background: var(--fill-3); overflow: hidden; border-radius: 1px;
  background-image: linear-gradient(90deg, var(--ink) 0, var(--ink) calc(var(--p) * 100%), transparent calc(var(--p) * 100%)); }
.g-bar span { display: none; }
.g-ask { padding: 8px 12px 10px; font-size: 15px; color: var(--text-2); }
.g-ask b { font-weight: 500; color: var(--text); }
.g-ask i { font-style: normal; font-family: var(--mono); font-size: 13.5px; color: var(--ink); }
.g-actions { display: flex; gap: 8px; padding: 10px 12px 4px; }
.g-chk { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 46px; padding: 6px 12px; border-radius: var(--r-lg, 12px); font-size: 15px; color: var(--text); }
.g-chk small { font: 500 12.5px var(--mono); color: var(--text-3); }
.g-chk .ic { width: 16px; height: 16px; }
.g-chk.ok .ic { color: #6fe0b4; }
.g-chk.warn { background: rgb(224 166 74 / 0.1); }
.g-chk.warn .ic { color: #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-ok { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.g-ok .ic { width: 14px; height: 14px; color: #6fe0b4; }
.g-pill { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text); background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.g-pill.solid { background: var(--text); color: var(--text-inverse); box-shadow: none; }

/* 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(--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(--ink); margin-bottom: 14px; }
.prose ul li::marker { color: var(--ink); }
.prose .steps li::before { background: rgb(var(--sheet-rgb) / 0.9); box-shadow: inset 0 0 0 1px var(--line-3); color: var(--ink); }
.prose .faq-list { display: grid; gap: 8px; }
.prose .faq-list details { border: 0; border-radius: var(--r-xl, 14px); 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 rising-light band. */
.g-close { min-height: min(86svh, 860px); }
.g-close .close-inner { gap: 22px; }
.g-close .display { font-size: clamp(48px, 7.4vw, 112px); line-height: 0.9; letter-spacing: -0.045em; }
.g-close .guide-more { text-align: center; }

@media (max-width: 1000px) { .g-body-grid { grid-template-columns: 1fr; } .g-toc { display: none; } .g-hero { min-height: 0; } }
@media (max-width: 600px) {
  .g-hero .cta-row .dl { width: 100%; justify-content: center; }
  .g-file { grid-template-columns: 62px minmax(0, 1fr); }
  .g-file .g-size { display: none; }
}
