/* User guide — extends landing tokens from landing.css */
.gx-hero { padding: calc(var(--nav-h) + 48px) 0 28px; }
.gx-hero__sub { margin-top: 12px; font-size: clamp(1.15rem, 3.6vw, 1.45rem); color: var(--ink-2); max-width: 40ch; }
.gx-hero__intro { margin-top: 18px; max-width: 62ch; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.gx-search { display: block; margin-top: 28px; max-width: 420px; }
.gx-search input { width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--mist); font: inherit; color: var(--ink); }
.gx-search input:focus { outline: 2px solid var(--accent); outline-offset: 2px; background: #fff; }
.gx-empty { margin-top: 12px; color: #b45309; font-size: 14px; }
.gx-layout { display: grid; gap: 36px; padding-bottom: 96px; align-items: start; }
.gx-toc { position: sticky; top: calc(var(--nav-h) + 12px); max-height: calc(100svh - var(--nav-h) - 24px); overflow: auto; padding: 18px; border-radius: var(--radius-md); background: var(--mist); border: 1px solid var(--line); }
.gx-toc__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.gx-toc__list, .gx-toc__list ol { list-style: none; margin: 0; padding: 0; }
.gx-toc__list > li { margin-bottom: 10px; }
.gx-toc__list > li > a { display: block; font-weight: 600; font-size: 14px; color: var(--ink); line-height: 1.35; }
.gx-toc__list ol { margin-top: 6px; padding-inline-start: 12px; border-inline-start: 2px solid var(--line); }
.gx-toc__list ol a { display: block; padding: 4px 0; font-size: 13px; color: var(--ink-2); }
.gx-toc__list a:hover, .gx-toc__list a.is-active { color: var(--accent); }
.gx-toc__list li.is-dim { opacity: .35; }
.gx-chapter { padding-top: 8px; margin-bottom: 48px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.gx-chapter__head h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.2; }
.gx-chapter__head p { margin-top: 8px; color: var(--ink-2); max-width: 54ch; }
.gx-topic { margin-top: 28px; padding: 22px 22px 20px; border-radius: var(--radius-md); border: 1px solid var(--line); background: #fff; scroll-margin-top: calc(var(--nav-h) + 16px); }
.gx-topic.is-hidden { display: none; }
.gx-topic h3 { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; line-height: 1.3; margin-bottom: 14px; }
.gx-steps { margin: 0; padding-inline-start: 1.25rem; display: grid; gap: 10px; }
.gx-steps li { color: var(--ink); line-height: 1.65; padding-inline-start: 4px; }
.gx-steps li::marker { font-weight: 700; color: var(--accent); }
.gx-tips { margin: 16px 0 0; padding: 12px 14px; list-style: none; border-radius: 12px; background: rgba(0, 113, 227, .06); border: 1px solid rgba(0, 113, 227, .15); display: grid; gap: 8px; }
.gx-tips li { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.gx-tips li::before { content: "💡 "; }
.gx-note { margin-top: 14px; font-size: 14px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 10px 12px; line-height: 1.55; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media (min-width: 960px) {
    .gx-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; }
    .gx-toc { display: block; }
}
@media (max-width: 959px) {
    .gx-toc { position: relative; top: 0; max-height: none; }
}
