/* GamepadTools — two-column guide layout (opt-in: add class "guide-layout" to <main>).
   Loaded only on guide pages that use it. No dependencies. */

.guide-layout { --gl-header: 72px; }
.guide-layout [id] { scroll-margin-top: calc(var(--gl-header) + 20px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.gl-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 40px;
  align-items: start;
  padding-bottom: 56px;
}
.gl-main { min-width: 0; }
.gl-main .content-card { margin: 8px 0 0; padding: 44px 48px; }
.gl-main .article-content { max-width: none; }

/* ----- Article header ----- */
.gl-head .eyebrow { margin-bottom: 14px; }
.gl-head h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.08; margin: 0 0 14px; }
.gl-head .lead { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0 0 22px; }

.gl-byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 26px; font-size: 13.5px; color: var(--muted); }
.gl-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: 'Clash Display', sans-serif; font-weight: 700; font-size: 16px; background: linear-gradient(135deg, var(--brand1), var(--brand2)); flex: none; }
.gl-byline .gl-who { display: flex; flex-direction: column; line-height: 1.35; margin-right: auto; }
.gl-byline .gl-who a { color: var(--text); font-weight: 600; }
.gl-byline .gl-by { font-size: 12px; color: var(--muted); }
.guide-layout .editorial-box .eb-avatar { background: none; border-radius: 50%; }
.guide-layout .editorial-box .eb-name .gl-by { font-family: inherit; font-weight: 500; font-size: 13px; color: var(--muted); }
.gl-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.gl-meta span { display: inline-flex; align-items: center; gap: 6px; }
.gl-meta svg { width: 14px; height: 14px; }

.gl-feature { margin: 0 0 30px; }
.gl-feature figcaption, .gl-figure figcaption a { font-size: 12.5px; color: var(--muted); }
.gl-feature figcaption { margin-top: 8px; }
.gl-feature img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16px; border: 1px solid var(--border); object-fit: cover; background: var(--surface2); }

/* ----- Quick answer ----- */
.gl-answer { border: 1px solid #dcdcfb; background: linear-gradient(180deg, #f7f7ff, #fff); border-radius: 16px; padding: 22px 24px; margin: 0 0 30px; }
.gl-answer h2 { font-size: 22px !important; margin: 0 0 10px !important; }
.gl-answer p { margin: 0 0 10px; }
.gl-answer ul { margin: 6px 0 0; padding-left: 20px; }
.gl-answer li { margin: 4px 0; }

/* ----- Article typography inside the layout ----- */
.gl-main .article-content h2 { font-size: clamp(24px, 2.6vw, 31px); margin: 46px 0 14px; line-height: 1.15; }
.gl-main .article-content h3 { font-size: 19px; margin: 28px 0 8px; }
.gl-main .article-content p { margin: 0 0 14px; }
.gl-main .article-content ol, .gl-main .article-content ul { padding-left: 22px; margin: 0 0 16px; }
.gl-main .article-content li { margin: 6px 0; }
.gl-main .article-content a { color: var(--brand1); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* Figures */
.gl-figure { margin: 22px 0 26px; }
.gl-figure svg, .gl-figure img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); background: #fff; }
.gl-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* First-hand test box */
.gl-firsthand { border: 1px solid #f2d9b3; background: #fffaf2; border-radius: 16px; padding: 20px 22px; margin: 24px 0; }
.gl-firsthand .gl-fh-label { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b45309; margin-bottom: 8px; }
.gl-firsthand p:last-child { margin-bottom: 0; }

/* Fix steps */
.gl-steps { list-style: none; padding: 0 !important; margin: 18px 0 24px !important; counter-reset: glstep; }
.gl-steps > li { counter-increment: glstep; position: relative; padding: 18px 20px 16px 64px; border: 1px solid var(--border); border-radius: 14px; margin: 0 0 12px !important; background: #fff; }
.gl-steps > li::before { content: counter(glstep); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-family: 'Clash Display', sans-serif; font-weight: 700; color: var(--brand1); background: #ecebff; }
.gl-steps h3 { margin: 2px 0 6px !important; font-size: 17px !important; }
.gl-steps p { margin: 0 0 10px !important; }
.gl-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; font-size: 13.5px; line-height: 1.5; }
.gl-facts div { background: var(--surface2); border-radius: 10px; padding: 9px 11px; }
.gl-facts dt { font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.gl-facts dd { margin: 0; }

/* Platform cards */
.gl-platform { border: 1px solid var(--border); border-radius: 16px; padding: 4px 22px 14px; margin: 16px 0; }
.gl-platform h3 { display: flex; align-items: center; gap: 10px; }
.gl-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--surface2); color: var(--muted); }

/* Comparison table */
.gl-table-wrap { overflow-x: auto; margin: 18px 0 22px; -webkit-overflow-scrolling: touch; }
.gl-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.gl-table th, .gl-table td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--border); vertical-align: top; }
.gl-table th { font-family: 'Clash Display', sans-serif; font-weight: 600; background: var(--surface2); }
.gl-table td:first-child { font-weight: 600; }

/* Mobile "On this page" */
.gl-toc-mobile { display: none; border: 1px solid var(--border); border-radius: 14px; margin: 0 0 26px; background: var(--surface2); }
.gl-toc-mobile summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.gl-toc-mobile summary::-webkit-details-marker { display: none; }
.gl-toc-mobile summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); }
.gl-toc-mobile[open] summary::after { content: "\2212"; }
.gl-toc-mobile ol { margin: 0 !important; padding: 0 18px 14px 38px !important; }
.gl-toc-mobile li { margin: 7px 0 !important; }
.gl-toc-mobile a { text-decoration: none !important; color: var(--text) !important; }

/* Sources list */
.gl-sources { list-style: none; padding: 0 !important; margin: 0 0 18px !important; }
.gl-sources li { margin: 0 !important; padding: 10px 0; border-bottom: 1px solid var(--border); }
.gl-sources li:last-child { border-bottom: 0; }
.gl-sources a { font-weight: 600; }
.gl-sources span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.gl-small { font-size: 14px; color: var(--muted); }
.gl-platform > p { margin: 14px 0 4px !important; }
.gl-firsthand .gl-figure { margin: 14px 0 0; }
.gl-avatar-lg { width: 100%; height: 100%; font-size: 20px; }

/* ----- Sidebar ----- */
.gl-aside { position: sticky; top: calc(var(--gl-header) + 16px); max-height: calc(100vh - var(--gl-header) - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 8px 2px 8px 0; scrollbar-width: thin; }
.gl-box { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px 18px 14px; margin-bottom: 16px; box-shadow: var(--shadow); }
.gl-box-title { font-family: 'Clash Display', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.gl-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: gltoc; }
.gl-toc li { counter-increment: gltoc; }
.gl-toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 9px; font-size: 14px; line-height: 1.35; color: var(--text); border-left: 2px solid transparent; }
.gl-toc a::before { content: counter(gltoc, decimal-leading-zero); font-size: 11.5px; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.gl-toc a:hover { background: var(--surface2); }
.gl-toc a[aria-current="true"] { background: #f1f0ff; color: var(--brand1); font-weight: 600; border-left-color: var(--brand1); }
.gl-toc a[aria-current="true"]::before { color: var(--brand1); }
.gl-tools a { display: flex; align-items: center; gap: 11px; padding: 9px 8px; border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 600; }
.gl-tools a:hover { background: var(--surface2); }
.gl-tool-text { display: block; }
.gl-tool-text span { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.gl-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--tint-gamepad); color: var(--cat-gamepad); flex: none; }
.gl-ico svg { width: 17px; height: 17px; }
.gl-ad-slot:empty { display: none; }
.gl-ad-slot { margin-top: 16px; }

.guide-layout a:focus-visible, .guide-layout summary:focus-visible { outline: 2px solid var(--brand1); outline-offset: 2px; border-radius: 6px; }

/* ----- Responsive ----- */
@media (max-width: 1080px) {
  .gl-wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .gl-aside { position: static; max-height: none; overflow: visible; padding: 0; }
  .gl-aside .gl-toc { display: none; }
  .gl-toc-mobile { display: block; }
}
@media (max-width: 760px) {
  .gl-main .content-card { padding: 26px 20px; border-radius: 16px; }
  .gl-facts { grid-template-columns: minmax(0, 1fr); }
  .gl-steps > li { padding: 16px 16px 14px 56px; }
  .gl-steps > li::before { left: 14px; }
  .gl-byline .gl-who { margin-right: 0; flex-basis: calc(100% - 52px); }
}

/* =====================================================================
   Mouse-guide theme (opt-in: add "gl-mouse" next to "guide-layout").
   Cyan accent, monospace figures, key-number strip, pick table,
   "Try it now" prompts, signal-path chips and note-style boxes.
   ===================================================================== */
.guide-layout.gl-mouse { --gl-accent: #06b6d4; --gl-accent-ink: #0e7490; --gl-accent-tint: #e6f8fb; --gl-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; }
.gl-mouse .gl-main .article-content a { color: var(--gl-accent-ink); }
.gl-mouse .gl-toc a[aria-current="true"] { background: var(--gl-accent-tint); color: var(--gl-accent-ink); border-left-color: var(--gl-accent); }
.gl-mouse .gl-toc a[aria-current="true"]::before { color: var(--gl-accent-ink); }
.gl-mouse a:focus-visible, .gl-mouse summary:focus-visible { outline-color: var(--gl-accent-ink); }
.gl-ico.ms { background: var(--tint-mouse); color: var(--cat-mouse); }
.gl-ico.gpu { background: var(--tint-gpu); color: var(--cat-gpu); }
.gl-mono, .gl-num td.n, .gl-num th.n { font-family: var(--gl-mono, monospace); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* Key-number strip */
.gl-keynums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin: 0 0 12px; background: #fff; }
.gl-keynums div { padding: 16px 18px; border-right: 1px dashed var(--border); }
.gl-keynums div:last-child { border-right: 0; }
.gl-keynums b { display: block; font-family: var(--gl-mono, monospace); font-size: 26px; line-height: 1.1; color: var(--text); letter-spacing: -.02em; }
.gl-keynums span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.gl-keynums div:nth-child(2) b { color: var(--gl-accent-ink, #0e7490); }
.gl-formula { font-size: 13.5px; color: var(--muted); margin: 0 0 28px !important; }
.gl-formula code { font-family: var(--gl-mono, monospace); background: var(--gl-accent-tint, #e6f8fb); color: var(--gl-accent-ink, #0e7490); padding: 2px 8px; border-radius: 6px; font-size: 13px; }

/* Quick answer "pick your rate" card */
.gl-pick { border: 1px solid #bfeaf2; border-left: 4px solid var(--gl-accent, #06b6d4); background: #fbfeff; border-radius: 14px; padding: 22px 24px 18px; margin: 0 0 30px; }
.gl-pick h2 { font-size: 22px !important; margin: 0 0 10px !important; }
.gl-pick p.gl-pick-lead { font-size: 15px; color: var(--text); margin: 0 0 16px !important; }
.gl-pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.gl-pick-item { background: #fff; border: 1px solid #d6eff4; border-radius: 12px; padding: 14px 16px 12px; }
.gl-pick-item h3 { font-size: 15px !important; margin: 0 0 8px !important; line-height: 1.3; }
.gl-pick-item .pill { display: inline-block; font-family: var(--gl-mono, monospace); font-size: 14px; font-weight: 700; color: var(--gl-accent-ink, #0e7490); background: var(--gl-accent-tint, #e6f8fb); border-radius: 999px; padding: 3px 11px; margin-bottom: 8px; }
.gl-pick .gl-pick-item p { color: var(--muted); font-size: 14px !important; line-height: 1.5; }
.gl-pick p { margin: 0 !important; font-size: 14.5px; color: var(--muted); }

/* "Try it now" prompt */
.gl-try { display: flex; align-items: center; gap: 14px; border: 1px dashed #9fdbe7; background: var(--gl-accent-tint, #e6f8fb); border-radius: 12px; padding: 12px 16px; margin: 18px 0 22px; font-size: 14.5px; }
.gl-try .gl-try-tag { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--gl-accent-ink, #0e7490); border-radius: 6px; padding: 4px 8px; }
.gl-try p { margin: 0 !important; }
.gl-try a { font-weight: 600; }

/* Signal path chips */
.gl-path { list-style: none; display: flex; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 0 !important; margin: 16px 0 22px !important; }
.gl-path li { margin: 0 !important; display: flex; align-items: center; flex: 1 1 0; min-width: 0; }
.gl-path li + li::before { content: "\2192"; color: var(--gl-accent, #06b6d4); font-weight: 700; padding: 0 8px; flex: none; }
.gl-path span { display: block; flex: 1; align-self: stretch; border: 1px solid var(--border); border-top: 3px solid var(--gl-accent, #06b6d4); background: #fff; border-radius: 10px; padding: 9px 12px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.gl-path small { font-weight: 400; }
.gl-path small { display: block; font-size: 12px; color: var(--muted); }

/* Note-style box (author take / first-hand readings) */
.gl-note { position: relative; border: 1px solid #e5e7eb; background: #fff; background-image: repeating-linear-gradient(180deg, transparent 0 27px, #f1f5f9 27px 28px); border-radius: 12px; padding: 18px 22px 16px 26px; margin: 24px 0; box-shadow: 0 1px 0 #eef2f7; }
.gl-note::before { content: ""; position: absolute; left: 12px; top: 14px; bottom: 14px; width: 2px; background: #fca5a5; border-radius: 2px; }
.gl-note .gl-note-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gl-accent-ink, #0e7490); margin-bottom: 6px; }
.gl-note p { line-height: 28px; }
.gl-note p:last-child { margin-bottom: 0 !important; }
.gl-note .gl-figure { margin: 12px 0 0; }

/* Number-heavy tables */
.gl-num td.n { white-space: nowrap; }
.gl-num tr.hl td { background: #f3fcfe; }

/* Related tools below the article */
.gl-related { margin-top: 36px; }
.gl-related .section-header { text-align: left; margin-bottom: 18px; }
.gl-related .section-header h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 6px 0 0; }
.gl-related .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 760px) {
  .gl-keynums { grid-template-columns: minmax(0, 1fr); }
  .gl-keynums div { border-right: 0; border-bottom: 1px dashed var(--border); }
  .gl-keynums div:last-child { border-bottom: 0; }
  .gl-pick { padding: 18px 16px 14px; }
  .gl-pick-grid { grid-template-columns: minmax(0, 1fr); }
  .gl-try { flex-direction: column; align-items: flex-start; gap: 8px; }
  .gl-related .tools-grid { grid-template-columns: minmax(0, 1fr); }
  .gl-path { flex-direction: column; }
  .gl-path li { width: 100%; flex-direction: column; align-items: stretch; }
  .gl-path li + li::before { content: "\2193"; padding: 4px 0; text-align: center; }
}

/* =====================================================================
   DPI-guide theme (opt-in: add "gl-dpi" next to "guide-layout").
   Rose accent, numbered chapter kickers, spec tables, eDPI calculator,
   myth/fact panel, game cards, checklist, author note and
   image-preview related tools.
   ===================================================================== */
.guide-layout.gl-dpi { --gl-accent: #db2777; --gl-accent-ink: #be185d; --gl-accent-tint: #fdf2f8; --gl-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; }
.gl-dpi .gl-main .article-content a { color: var(--gl-accent-ink); }
.gl-dpi .gl-toc a[aria-current="true"] { background: var(--gl-accent-tint); color: var(--gl-accent-ink); border-left-color: var(--gl-accent); }
.gl-dpi .gl-toc a[aria-current="true"]::before { color: var(--gl-accent-ink); }
.gl-dpi a:focus-visible, .gl-dpi summary:focus-visible, .gl-dpi input:focus-visible { outline: 2px solid var(--gl-accent-ink); outline-offset: 2px; }

/* Plain-language definition line */
.gl-define { border-top: 2px solid var(--text); border-bottom: 1px solid var(--border); padding: 14px 0 12px; margin: 6px 0 22px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.gl-define dt { font-family: var(--gl-mono); font-weight: 700; font-size: 15px; color: var(--gl-accent-ink); }
.gl-define dd { margin: 0; font-size: 16px; line-height: 1.55; }
.gl-define dt:not(:first-of-type), .gl-define dt:not(:first-of-type) + dd { border-top: 1px dashed var(--border); padding-top: 12px; }

/* Spec-sheet tables */
.gl-spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.gl-spec thead th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 0 12px 10px; border-bottom: 2px solid var(--text); }
.gl-spec td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.gl-spec td:first-child { font-family: var(--gl-mono); font-weight: 700; white-space: nowrap; color: var(--text); }
.gl-spec tbody tr:nth-child(even) td { background: #fcfbfd; }
.gl-spec .gl-x { font-family: var(--gl-mono); color: var(--gl-accent-ink); font-weight: 700; }
.gl-tablenote { font-size: 13.5px; color: var(--muted); margin: -10px 0 24px !important; }

/* Equation strip */
.gl-eq { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 18px 16px; margin: 18px 0 22px; border: 1px solid #f5c2dc; background: var(--gl-accent-tint); border-radius: 14px; font-family: var(--gl-mono); font-size: 18px; font-weight: 700; color: var(--text); text-align: center; }
.gl-eq span { background: #fff; border: 1px solid #f5c2dc; border-radius: 8px; padding: 6px 12px; }
.gl-eq b { color: var(--gl-accent-ink); }

/* eDPI calculator */
.gl-calc { border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; margin: 22px 0 26px; background: #fff; box-shadow: 0 1px 0 #f1f1f6; }
.gl-calc-title { font-weight: 700; font-size: 16px; margin: 0 0 4px !important; }
.gl-calc-sub { font-size: 14px; color: var(--muted); margin: 0 0 14px !important; }
.gl-calc-row { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr); gap: 10px; align-items: end; }
.gl-calc label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.gl-calc input { width: 100%; box-sizing: border-box; font-family: var(--gl-mono); font-size: 18px; font-weight: 700; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fafafc; color: var(--text); }
.gl-calc .gl-op { font-family: var(--gl-mono); font-size: 20px; font-weight: 700; color: var(--muted); padding-bottom: 10px; }
.gl-calc output { display: block; font-family: var(--gl-mono); font-size: 18px; font-weight: 700; padding: 10px 12px; border-radius: 10px; background: var(--gl-accent-ink); color: #fff; min-height: 24px; }
.gl-calc-eq { margin: 14px 0 0 !important; font-size: 14px; color: var(--muted); }
.gl-calc-eq b { font-family: var(--gl-mono); color: var(--text); }

/* Myth / fact panel */
.gl-myth { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin: 20px 0 24px; }
.gl-myth > div { padding: 18px 20px; }
.gl-myth > div:first-child { background: #f8f8fb; border-right: 1px solid var(--border); }
.gl-myth h3 { font-size: 12px !important; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px !important; }
.gl-myth > div:first-child h3 { color: var(--muted); }
.gl-myth > div:last-child h3 { color: var(--gl-accent-ink); }
.gl-myth p { margin: 0 !important; font-size: 15.5px; }
.gl-myth > div:first-child p { color: var(--muted); text-decoration: line-through; text-decoration-color: #d4d4dc; }

/* Game cards */
.gl-games { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 18px 0 24px; }
.gl-game { border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px 14px; background: #fff; }
.gl-game h3 { font-size: 18px !important; margin: 0 0 10px !important; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.gl-game dl { margin: 0; font-size: 14.5px; line-height: 1.5; }
.gl-game dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gl-accent-ink); margin-top: 10px; }
.gl-game dt:first-child { margin-top: 0; }
.gl-game dd { margin: 2px 0 0; }
.gl-game code { font-family: var(--gl-mono); font-size: 13.5px; background: var(--gl-accent-tint); color: var(--gl-accent-ink); padding: 1px 6px; border-radius: 5px; }

/* Checklist */
.gl-check { list-style: none; padding: 0 !important; margin: 16px 0 22px !important; counter-reset: glck; border-left: 2px solid #f5c2dc; }
.gl-check > li { counter-increment: glck; position: relative; padding: 2px 0 14px 46px; margin: 0 !important; }
.gl-check > li::before { content: counter(glck); position: absolute; left: -15px; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--gl-accent); color: var(--gl-accent-ink); font-family: var(--gl-mono); font-size: 13px; font-weight: 700; }
.gl-check > li strong { display: block; margin-bottom: 2px; }

/* Settings log template */
.gl-log { width: 100%; border-collapse: collapse; font-family: var(--gl-mono); font-size: 13.5px; }
.gl-log th, .gl-log td { border: 1px dashed #d9d9e3; padding: 8px 10px; text-align: left; }
.gl-log th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #fafafc; }

/* Author note */
.gl-quote { position: relative; margin: 26px 0 !important; padding: 20px 22px 18px 64px; border-radius: 16px; background: linear-gradient(180deg, #fff, var(--gl-accent-tint)); border: 1px solid #f5c2dc; }
.gl-quote::before { content: "\201C"; position: absolute; left: 18px; top: 4px; font-family: Georgia, serif; font-size: 64px; line-height: 1; color: var(--gl-accent); }
.gl-quote p { margin: 0 0 8px !important; font-size: 16.5px; line-height: 1.6; }
.gl-quote cite { font-style: normal; font-size: 13px; font-weight: 700; color: var(--gl-accent-ink); }

/* Related tools with image previews */
.gl-ptools { margin-top: 36px; }
.gl-ptools .section-header { text-align: left; margin-bottom: 18px; }
.gl-ptools .section-header h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 6px 0 0; }
.gl-ptools-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.gl-ptool { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; color: var(--text); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.gl-ptool:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(20,20,43,.35); border-color: #f5c2dc; }
.gl-ptool:focus-visible { outline: 2px solid var(--gl-accent-ink, #be185d); outline-offset: 3px; }
.gl-ptool-img { display: block; aspect-ratio: 16 / 9; background: #f4f4f8; border-bottom: 1px solid var(--border); overflow: hidden; }
.gl-ptool-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.gl-ptool-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.gl-ptool-body h3 { font-size: 17px; margin: 0; }
.gl-ptool-body p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.gl-ptool-go { margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--gl-accent-ink, #be185d); }
@media (prefers-reduced-motion: reduce) { .gl-ptool { transition: none; } .gl-ptool:hover { transform: none; } }

@media (max-width: 760px) {
  .gl-define { grid-template-columns: minmax(0,1fr); gap: 4px; }
  .gl-calc-row { grid-template-columns: minmax(0,1fr); }
  .gl-calc .gl-op { padding: 0; text-align: center; }
  .gl-myth { grid-template-columns: minmax(0,1fr); }
  .gl-myth > div:first-child { border-right: 0; border-bottom: 1px solid var(--border); }
  .gl-games, .gl-ptools-grid { grid-template-columns: minmax(0,1fr); }
  .gl-quote { padding: 18px 16px 16px 52px; }
  .gl-quote::before { left: 12px; }
  .gl-eq { font-size: 15px; }
}
.guide-layout .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.gl-spec.gl-words td:first-child { font-family: inherit; white-space: normal; }

/* =====================================================================
   Deadzone-guide theme (opt-in: add "gl-dz" next to "guide-layout").
   Emerald accent, "In short" lines, versus cards, diagnosis rows,
   step cards, game panels and a speech-bubble author note.
   ===================================================================== */
.guide-layout.gl-dz { --gl-accent: #059669; --gl-accent-ink: #047857; --gl-accent-tint: #ecfdf5; --gl-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; }
.gl-dz .gl-main .article-content a { color: var(--gl-accent-ink); }
.gl-dz .gl-toc a[aria-current="true"] { background: var(--gl-accent-tint); color: var(--gl-accent-ink); border-left-color: var(--gl-accent); }
.gl-dz .gl-toc a[aria-current="true"]::before { color: var(--gl-accent-ink); }
.gl-dz a:focus-visible, .gl-dz summary:focus-visible { outline: 2px solid var(--gl-accent-ink); outline-offset: 2px; }

/* "In short" line under a heading */
.gl-inshort { display: flex; gap: 12px; align-items: baseline; margin: -4px 0 18px !important; padding: 0 0 14px; border-bottom: 1px dashed #b7e4d2; font-size: 16.5px; font-weight: 600; color: var(--text); line-height: 1.5; }
.gl-inshort::before { content: "In short"; flex: none; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--gl-accent-ink); border-radius: 999px; padding: 4px 10px; transform: translateY(-2px); }

/* Quick answer box */
.gl-qa { border: 1px solid #b7e4d2; background: var(--gl-accent-tint); border-radius: 16px; padding: 18px 20px; margin: 18px 0 24px; }
.gl-qa p { margin: 0 0 8px !important; font-size: 16px; }
.gl-qa p:last-child { margin: 0 !important; }
.gl-qa-label { font-size: 12px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gl-accent-ink); }

/* Versus cards */
.gl-vs { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; margin: 18px 0 24px; }
.gl-vs > div { border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; background: #fff; border-top: 4px solid var(--vs, var(--gl-accent)); }
.gl-vs h3 { font-size: 18px !important; margin: 0 0 4px !important; }
.gl-vs .gl-vs-sub { font-size: 13.5px; color: var(--muted); margin: 0 0 10px !important; }
.gl-vs ul { margin: 0 !important; padding-left: 18px !important; }
.gl-vs li { font-size: 15px; margin-bottom: 6px !important; }

/* Diagnosis rows */
.gl-diag { list-style: none; padding: 0 !important; margin: 18px 0 24px !important; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.gl-diag li { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 16px; padding: 14px 18px; margin: 0 !important; border-bottom: 1px solid var(--border); background: #fff; }
.gl-diag li:last-child { border-bottom: 0; }
.gl-diag b { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.gl-diag b::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--dot, var(--gl-accent)); flex: none; }
.gl-diag span { font-size: 15px; color: var(--text); }

/* Step cards */
.gl-stepcards { list-style: none; counter-reset: glsc; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; padding: 0 !important; margin: 18px 0 24px !important; }
.gl-stepcards li { counter-increment: glsc; position: relative; margin: 0 !important; padding: 14px 16px 14px 60px; border: 1px solid var(--border); border-radius: 14px; background: #fff; font-size: 15px; line-height: 1.5; }
.gl-stepcards li::before { content: counter(glsc); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 9px; background: var(--gl-accent-tint); color: var(--gl-accent-ink); font-family: var(--gl-mono); font-weight: 700; font-size: 15px; display: grid; place-items: center; }

/* Game panels */
.gl-gp { border: 1px solid var(--border); border-radius: 16px; margin: 16px 0 20px; overflow: hidden; background: #fff; }
.gl-gp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 14px 18px; background: #f8faf9; border-bottom: 1px solid var(--border); }
.gl-gp-head h3 { margin: 0 !important; font-size: 19px !important; }
.gl-gp-path { font-family: var(--gl-mono); font-size: 12.5px; color: var(--gl-accent-ink); background: #fff; border: 1px solid #b7e4d2; border-radius: 8px; padding: 3px 9px; }
.gl-gp dl { margin: 0; padding: 6px 18px 14px; display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 0 16px; }
.gl-gp dt { font-weight: 700; font-size: 14.5px; padding: 10px 0; border-top: 1px dashed var(--border); }
.gl-gp dd { margin: 0; font-size: 15px; padding: 10px 0; border-top: 1px dashed var(--border); line-height: 1.55; }
.gl-gp dt:first-of-type, .gl-gp dt:first-of-type + dd { border-top: 0; }
.gl-gp code { font-family: var(--gl-mono); font-size: 13.5px; background: var(--gl-accent-tint); color: var(--gl-accent-ink); padding: 1px 6px; border-radius: 5px; }

/* Speech-bubble author note */
.gl-talk { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 14px; align-items: start; margin: 24px 0 !important; }
.gl-talk .gl-avatar { width: 44px; height: 44px; font-size: 18px; }
.gl-talk-bubble { position: relative; background: #f6f7f9; border: 1px solid var(--border); border-radius: 4px 16px 16px 16px; padding: 14px 18px; }
.gl-talk-bubble p { margin: 0 0 6px !important; font-size: 16px; line-height: 1.6; }
.gl-talk-bubble cite { font-style: normal; font-size: 13px; font-weight: 700; color: var(--gl-accent-ink); }

@media (max-width: 760px) {
  .gl-vs, .gl-stepcards { grid-template-columns: minmax(0,1fr); }
  .gl-diag li { grid-template-columns: minmax(0,1fr); gap: 4px; }
  .gl-gp dl { grid-template-columns: minmax(0,1fr); }
  .gl-gp dd { border-top: 0; padding-top: 0; }
  .gl-inshort { flex-direction: column; gap: 6px; }
}

/* =====================================================================
   Calibration-guide theme (opt-in: add "gl-cal" next to "guide-layout").
   Blue accent, platform picker, how-to blocks, method badges,
   problem/fix cards and a sticky-note author tip.
   ===================================================================== */
.guide-layout.gl-cal { --gl-accent: #2563eb; --gl-accent-ink: #1d4ed8; --gl-accent-tint: #eff6ff; --gl-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; }
.gl-cal .gl-main .article-content a { color: var(--gl-accent-ink); }
.gl-cal .gl-toc a[aria-current="true"] { background: var(--gl-accent-tint); color: var(--gl-accent-ink); border-left-color: var(--gl-accent); }
.gl-cal .gl-toc a[aria-current="true"]::before { color: var(--gl-accent-ink); }
.gl-cal a:focus-visible, .gl-cal summary:focus-visible { outline: 2px solid var(--gl-accent-ink); outline-offset: 2px; }

/* Platform picker */
.gl-picker { list-style: none; padding: 0 !important; margin: 18px 0 18px !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.gl-picker li { margin: 0 !important; }
.gl-picker a { display: flex; flex-direction: column; gap: 6px; height: 100%; box-sizing: border-box; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; text-decoration: none !important; color: var(--text) !important; transition: border-color .15s ease, box-shadow .15s ease; }
.gl-picker a:hover { border-color: #93b4f5; box-shadow: 0 8px 20px -14px rgba(37,99,235,.6); }
.gl-picker b { font-size: 16px; }
.gl-picker span.gl-pick-how { font-size: 14px; color: var(--muted); line-height: 1.45; }
.gl-badge { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; }
.gl-badge.yes { background: #e7f8f1; color: #047857; }
.gl-badge.dep { background: #fff4e0; color: #b45309; }
.gl-badge.no { background: #fde8ec; color: #be123c; }

/* How-to block */
.gl-howto { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin: 18px 0 22px; background: #fff; }
.gl-howto-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 12px 18px; background: var(--gl-accent-tint); border-bottom: 1px solid #d5e3fb; }
.gl-howto-head strong { font-size: 15.5px; }
.gl-howto-head code { font-family: var(--gl-mono); font-size: 12.5px; background: #fff; color: var(--gl-accent-ink); border: 1px solid #c9dafa; border-radius: 7px; padding: 2px 8px; }
.gl-howto ol { margin: 0 !important; padding: 14px 18px 14px 44px !important; }
.gl-howto li { margin-bottom: 8px !important; font-size: 15.5px; }
.gl-howto li:last-child { margin-bottom: 0 !important; }
.gl-howto kbd { font-family: var(--gl-mono); font-size: 13px; background: #f4f5f8; border: 1px solid #d9dce4; border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }
.gl-howto-foot { padding: 12px 18px; border-top: 1px dashed var(--border); font-size: 14.5px; color: var(--muted); }
.gl-howto-foot b { color: var(--text); }

/* Problem / fix cards */
.gl-fixes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 18px 0 24px; }
.gl-fixcard { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: #fff; }
.gl-fixcard h3, .gl-fixcard h4 { font-size: 16px !important; font-weight: 700; color: var(--text); margin: 0 0 8px !important; line-height: 1.35; }
.gl-fixcard p { font-size: 14.5px !important; margin: 0 0 6px !important; line-height: 1.5; }
.gl-fixcard p:last-child { margin: 0 !important; }
.gl-fixcard .k { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.gl-fixcard .k.try { color: var(--gl-accent-ink); }

/* Sticky-note tip */
.gl-sticky { position: relative; margin: 26px 0 !important; padding: 18px 20px 16px; background: #fffbea; border: 1px solid #f3e3a6; border-radius: 4px 4px 14px 4px; box-shadow: 0 10px 18px -16px rgba(120,90,0,.6); transform: rotate(-.4deg); }
.gl-sticky::before { content: ""; position: absolute; top: -9px; left: 50%; width: 90px; height: 18px; margin-left: -45px; background: rgba(37,99,235,.18); border-radius: 3px; transform: rotate(2deg); }
.gl-sticky p { margin: 0 0 6px !important; font-size: 16px; line-height: 1.6; }
.gl-sticky cite { font-style: normal; font-size: 13px; font-weight: 700; color: #92400e; }

@media (max-width: 760px) {
  .gl-fixes { grid-template-columns: minmax(0,1fr); }
  .gl-sticky { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .gl-picker a { transition: none; } }
/* gl-cal: 15-item contents list, tighter rows so the related tools stay in view */
.gl-cal .gl-toc a { padding: 5px 10px; font-size: 13.5px; }
.gl-cal .gl-box { padding: 16px 16px 12px; }
/* gl-cal: on small phones, comparison tables become stacked cards instead of side-scrolling */
@media (max-width: 560px) {
  .gl-cal .gl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gl-cal .gl-table, .gl-cal .gl-table tbody, .gl-cal .gl-table tr, .gl-cal .gl-table td, .gl-cal .gl-table tbody th { display: block; width: auto; }
  .gl-cal .gl-table { min-width: 0; border: 0; }
  .gl-cal .gl-table tr { border: 1px solid var(--border); border-radius: 12px; margin: 0 0 10px; overflow: hidden; background: #fff; }
  .gl-cal .gl-table td, .gl-cal .gl-table tbody th { border-bottom: 1px solid var(--border); padding: 9px 12px; }
  .gl-cal .gl-table tr > :last-child { border-bottom: 0; }
  .gl-cal .gl-table td:first-child strong, .gl-cal .gl-table tbody th { color: var(--gl-accent-ink); }
  .gl-cal .gl-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .gl-cal .gl-table td[data-label]:first-child:has(strong)::before { display: none; }
  .gl-cal .gl-table td:first-child:has(strong) { background: var(--gl-accent-tint); }
}

/* ==========================================================================
   Double-click guide theme (opt-in: add "gl-ck" next to "guide-layout").
   Amber accent, a numbered "fix ladder" and risk chips.
   ========================================================================== */
.guide-layout.gl-ck { --gl-accent: #d97706; --gl-accent-ink: #b45309; --gl-accent-tint: #fff7e6; --gl-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; }
.gl-ck .gl-main .article-content a { color: var(--gl-accent-ink); }
.gl-ck .gl-toc a[aria-current="true"] { background: var(--gl-accent-tint); color: var(--gl-accent-ink); border-left-color: var(--gl-accent); }
.gl-ck .gl-toc a[aria-current="true"]::before { color: var(--gl-accent-ink); }
.gl-ck a:focus-visible, .gl-ck summary:focus-visible { outline: 2px solid var(--gl-accent-ink); outline-offset: 2px; }
.gl-ck .gl-howto-head { border-bottom-color: #f6dfb4; }
.gl-ck .gl-howto-head code { border-color: #f1d39b; }
.gl-ck .gl-sticky::before { background: rgba(217,119,6,.22); }

/* Three-step quick answer */
.gl-steps-mini { list-style: none; counter-reset: glmini; padding: 0 !important; margin: 16px 0 22px !important; display: grid; gap: 10px; }
.gl-steps-mini li { counter-increment: glmini; position: relative; margin: 0 !important; padding: 12px 16px 12px 52px; border: 1px solid var(--border); border-radius: 12px; background: #fff; font-size: 15.5px; line-height: 1.55; }
.gl-steps-mini li::before { content: counter(glmini); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--gl-accent); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.gl-steps-mini b { color: var(--text); }

/* Fix ladder: each fix is a rung on a vertical rail */
.gl-rung { position: relative; padding: 2px 0 6px 52px; margin: 0 0 8px; }
.gl-rung::before { content: ""; position: absolute; left: 17px; top: 40px; bottom: -6px; width: 2px; background: linear-gradient(var(--gl-accent) 0 0) top / 2px 100% no-repeat; opacity: .25; }
.gl-rung:last-of-type::before { display: none; }
.gl-main .article-content .gl-rung h3 { position: relative; margin: 22px 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.gl-rung-n { position: absolute; left: -52px; top: -3px; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--gl-accent); color: var(--gl-accent-ink); font-weight: 800; font-size: 16px; display: grid; place-items: center; }
.gl-chip { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; line-height: 1.3; }
.gl-chip.ok { background: #e7f8f1; color: #047857; }
.gl-chip.low { background: #fff4e0; color: #b45309; }
.gl-chip.warn { background: #eef2ff; color: #4338ca; }
.gl-chip.adv { background: #fde8ec; color: #be123c; }

@media (max-width: 560px) {
  .gl-rung { padding-left: 0; }
  .gl-rung::before { display: none; }
  .gl-rung-n { position: static; width: 30px; height: 30px; font-size: 14px; }
  /* comparison tables become stacked cards */
  .gl-ck .gl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gl-ck .gl-table, .gl-ck .gl-table tbody, .gl-ck .gl-table tr, .gl-ck .gl-table td { display: block; width: auto; }
  .gl-ck .gl-table { min-width: 0; border: 0; }
  .gl-ck .gl-table tr { border: 1px solid var(--border); border-radius: 12px; margin: 0 0 10px; overflow: hidden; background: #fff; }
  .gl-ck .gl-table td { border-bottom: 1px solid var(--border); padding: 9px 12px; }
  .gl-ck .gl-table tr > :last-child { border-bottom: 0; }
  .gl-ck .gl-table td:first-child { background: var(--gl-accent-tint); color: var(--gl-accent-ink); }
  .gl-ck .gl-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .gl-ck .gl-table td[data-label]:first-child::before { display: none; }
}

/* ==========================================================================
   Stick drift testing guide theme (opt-in: add "gl-sd" next to "guide-layout").
   Indigo accent; reuses steps, how-to and log components.
   ========================================================================== */
.guide-layout.gl-sd { --gl-accent: #4f46e5; --gl-accent-ink: #4338ca; --gl-accent-tint: #eef2ff; --gl-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; }
.gl-sd .gl-main .article-content a { color: var(--gl-accent-ink); }
.gl-sd .gl-toc a[aria-current="true"] { background: var(--gl-accent-tint); color: var(--gl-accent-ink); border-left-color: var(--gl-accent); }
.gl-sd .gl-toc a[aria-current="true"]::before { color: var(--gl-accent-ink); }
.gl-sd a:focus-visible, .gl-sd summary:focus-visible { outline: 2px solid var(--gl-accent-ink); outline-offset: 2px; }
.gl-sd .gl-toc a { padding: 5px 10px; font-size: 13.5px; }
.gl-sd .gl-box { padding: 16px 16px 12px; }
.gl-sd .gl-howto-head { border-bottom-color: #dcdcfb; }
.gl-sd .gl-howto-head code { border-color: #cfd0fa; }
.gl-sd .gl-sticky::before { background: rgba(79,70,229,.2); }
@media (max-width: 560px) {
  .gl-sd .gl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gl-sd .gl-table, .gl-sd .gl-table tbody, .gl-sd .gl-table tr, .gl-sd .gl-table td { display: block; width: auto; }
  .gl-sd .gl-table { min-width: 0; border: 0; }
  .gl-sd .gl-table tr { border: 1px solid var(--border); border-radius: 12px; margin: 0 0 10px; overflow: hidden; background: #fff; }
  .gl-sd .gl-table td { border-bottom: 1px solid var(--border); padding: 9px 12px; }
  .gl-sd .gl-table tr > :last-child { border-bottom: 0; }
  .gl-sd .gl-table td:first-child { background: var(--gl-accent-tint); color: var(--gl-accent-ink); }
  .gl-sd .gl-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .gl-sd .gl-table td[data-label]:first-child::before { display: none; }
}

/* ==========================================================================
   Drift causes explainer theme (opt-in: add "gl-why" next to "guide-layout").
   Fuchsia accent; narrow figures for small cutaway illustrations.
   ========================================================================== */
.guide-layout.gl-why { --gl-accent: #a21caf; --gl-accent-ink: #86198f; --gl-accent-tint: #fdf4ff; --gl-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; }
.gl-why .gl-main .article-content a { color: var(--gl-accent-ink); }
.gl-why .gl-toc a[aria-current="true"] { background: var(--gl-accent-tint); color: var(--gl-accent-ink); border-left-color: var(--gl-accent); }
.gl-why .gl-toc a[aria-current="true"]::before { color: var(--gl-accent-ink); }
.gl-why a:focus-visible, .gl-why summary:focus-visible { outline: 2px solid var(--gl-accent-ink); outline-offset: 2px; }
.gl-why .gl-sticky::before { background: rgba(162,28,175,.18); }
.gl-why .gl-main .article-content h3 { scroll-margin-top: 90px; }
.gl-figure.gl-fig-narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.gl-figure.gl-fig-narrow figcaption { text-align: center; }
@media (max-width: 560px) {
  .gl-why .gl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gl-why .gl-table, .gl-why .gl-table tbody, .gl-why .gl-table tr, .gl-why .gl-table td { display: block; width: auto; }
  .gl-why .gl-table { min-width: 0; border: 0; }
  .gl-why .gl-table tr { border: 1px solid var(--border); border-radius: 12px; margin: 0 0 10px; overflow: hidden; background: #fff; }
  .gl-why .gl-table td { border-bottom: 1px solid var(--border); padding: 9px 12px; }
  .gl-why .gl-table tr > :last-child { border-bottom: 0; }
  .gl-why .gl-table td:first-child { background: var(--gl-accent-tint); color: var(--gl-accent-ink); }
  .gl-why .gl-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .gl-why .gl-table td[data-label]:first-child::before { display: none; }
}

/* ==========================================================================
   Input lag guide theme (opt-in: add "gl-lag" next to "guide-layout").
   ========================================================================== */
.guide-layout.gl-lag { --gl-accent: #0f766e; --gl-accent-ink: #115e59; --gl-accent-tint: #f0fdfa; --gl-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; }
.gl-lag .gl-main .article-content a { color: var(--gl-accent-ink); }
.gl-lag .gl-toc a[aria-current="true"] { background: var(--gl-accent-tint); color: var(--gl-accent-ink); border-left-color: var(--gl-accent); }
.gl-lag .gl-toc a[aria-current="true"]::before { color: var(--gl-accent-ink); }
.gl-lag a:focus-visible, .gl-lag summary:focus-visible { outline: 2px solid var(--gl-accent-ink); outline-offset: 2px; }
.gl-lag .gl-sticky::before { background: rgba(15,118,110,.18); }
.gl-lag .gl-main .article-content h3 { scroll-margin-top: 90px; }
.gl-chain { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px 18px; margin: 20px 0 22px; counter-reset: none; }
.gl-chain-step { position: relative; border: 1px solid #b7e4dc; background: var(--gl-accent-tint, #f0fdfa); border-radius: 12px; padding: 12px 10px; text-align: center; }
.gl-chain-step b { display: block; font-size: 14.5px; color: var(--gl-accent-ink, #115e59); line-height: 1.3; }
.gl-chain-step span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 4px; }
.gl-chain-step:not(:last-child)::after { content: "\2192"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--gl-accent, #0f766e); font-weight: 700; }
.gl-chain-step:nth-child(3)::after { display: none; }
@media (max-width: 560px) {
  .gl-chain { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gl-chain-step:nth-child(3)::after { display: block; }
  .gl-chain-step:nth-child(2n)::after { display: none; }
  .gl-lag .gl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gl-lag .gl-table, .gl-lag .gl-table tbody, .gl-lag .gl-table tr, .gl-lag .gl-table td { display: block; width: auto; }
  .gl-lag .gl-table { min-width: 0; border: 0; }
  .gl-lag .gl-table tr { border: 1px solid var(--border); border-radius: 12px; margin: 0 0 10px; overflow: hidden; background: #fff; }
  .gl-lag .gl-table td { border-bottom: 1px solid var(--border); padding: 9px 12px; }
  .gl-lag .gl-table tr > :last-child { border-bottom: 0; }
  .gl-lag .gl-table td:first-child { background: var(--gl-accent-tint); color: var(--gl-accent-ink); }
  .gl-lag .gl-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .gl-lag .gl-table td[data-label]:first-child::before, .gl-lag .gl-table td[data-label=""]::before { display: none; }
}

/* ==========================================================================
   PS5-on-PC connection guide theme (opt-in: add "gl-ps5" next to "guide-layout").
   ========================================================================== */
.guide-layout.gl-ps5 { --gl-accent: #0369a1; --gl-accent-ink: #075985; --gl-accent-tint: #f0f9ff; --gl-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; }
.gl-ps5 .gl-main .article-content a { color: var(--gl-accent-ink); }
.gl-ps5 .gl-toc a[aria-current="true"] { background: var(--gl-accent-tint); color: var(--gl-accent-ink); border-left-color: var(--gl-accent); }
.gl-ps5 .gl-toc a[aria-current="true"]::before { color: var(--gl-accent-ink); }
.gl-ps5 a:focus-visible, .gl-ps5 summary:focus-visible { outline: 2px solid var(--gl-accent-ink); outline-offset: 2px; }
.gl-ps5 .gl-sticky::before { background: rgba(3,105,161,.18); }
.gl-ps5 .gl-main .article-content h3, .gl-ps5 #slots { scroll-margin-top: 90px; }
.gl-ps5 .gl-picker a { border-left: 4px solid var(--gl-accent); }
.gl-ps5 .gl-picker a:hover { border-color: #7cc3ea; border-left-color: var(--gl-accent); box-shadow: 0 8px 20px -14px rgba(3,105,161,.6); }
.gl-ps5 .gl-picker b { color: var(--gl-accent-ink); }
.gl-ps5 .gl-picker .gl-badge { margin-top: auto; }

/* ==========================================================================
   Buttons-not-working guide theme (opt-in: add "gl-btn" next to "guide-layout").
   ========================================================================== */
.guide-layout.gl-btn { --gl-accent: #c2410c; --gl-accent-ink: #9a3412; --gl-accent-tint: #fff7ed; --gl-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; }
.gl-btn .gl-main .article-content a { color: var(--gl-accent-ink); }
.gl-btn .gl-toc a[aria-current="true"] { background: var(--gl-accent-tint); color: var(--gl-accent-ink); border-left-color: var(--gl-accent); }
.gl-btn .gl-toc a[aria-current="true"]::before { color: var(--gl-accent-ink); }
.gl-btn a:focus-visible, .gl-btn summary:focus-visible { outline: 2px solid var(--gl-accent-ink); outline-offset: 2px; }
.gl-btn .gl-sticky::before { background: rgba(194,65,12,.18); }
.gl-btn .gl-main .article-content h3 { scroll-margin-top: 90px; }
.gl-btn .gl-log th[scope="row"] { white-space: nowrap; color: var(--gl-accent-ink); }
.gl-flow { display: grid; gap: 10px; margin: 18px 0 24px; }
.gl-flow-row { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.gl-flow-q { padding: 12px 16px; background: var(--gl-accent-tint, #fff7ed); color: var(--text); font-weight: 600; font-size: 15px; line-height: 1.45; border-right: 1px solid var(--border); }
.gl-flow-a { padding: 12px 16px; font-size: 15px; line-height: 1.45; color: var(--text); }
.gl-flow-a b { color: var(--gl-accent-ink, #9a3412); }
@media (max-width: 560px) {
  .gl-flow-row { grid-template-columns: 1fr; }
  .gl-flow-q { border-right: 0; border-bottom: 1px solid var(--border); }
  .gl-btn .gl-log th[scope="row"] { white-space: normal; }
}
@media (max-width: 560px) {
  .gl-ps5 .gl-table thead, .gl-btn .gl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gl-ps5 .gl-table, .gl-ps5 .gl-table tbody, .gl-ps5 .gl-table tr, .gl-ps5 .gl-table td,
  .gl-btn .gl-table, .gl-btn .gl-table tbody, .gl-btn .gl-table tr, .gl-btn .gl-table td { display: block; width: auto; }
  .gl-ps5 .gl-table, .gl-btn .gl-table { min-width: 0; border: 0; }
  .gl-ps5 .gl-table tr, .gl-btn .gl-table tr { border: 1px solid var(--border); border-radius: 12px; margin: 0 0 10px; overflow: hidden; background: #fff; }
  .gl-ps5 .gl-table td, .gl-btn .gl-table td { border-bottom: 1px solid var(--border); padding: 9px 12px; }
  .gl-ps5 .gl-table tr > :last-child, .gl-btn .gl-table tr > :last-child { border-bottom: 0; }
  .gl-ps5 .gl-table td:first-child { background: var(--gl-accent-tint); color: var(--gl-accent-ink); }
  .gl-btn .gl-table td:first-child { font-weight: 400; }
  .gl-btn .gl-table td:last-child { background: var(--gl-accent-tint); color: var(--gl-accent-ink); font-weight: 600; }
  .gl-ps5 .gl-table td[data-label]::before, .gl-btn .gl-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .gl-ps5 .gl-table td[data-label=""]::before { display: none; }
}
