/* The method guides (inc/guide.php, every page whose data carries a guide): what the renderer adds to the article's
   rules in lines.css (.gd-*). The contents beside the article never taller than the screen, scrolling on their own, the
   part in view marked (aria-current, assets/js/pages/guide.js); the page's chapters over their parts; the same contents
   closed under "In this guide (N)" above the first part where the sticky column has no room; and a call inside the run,
   one line and the field on the line's wash (the critics, 2026-11-30). Loaded after lines.css, before the page's own. */

/* ---------- the contents beside the article ---------- */
.gd-toc { max-height: calc(100vh - 120px); margin-right: -8px; padding-right: 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--cd) 28%, transparent) transparent; }
.gd-toc.is-more { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 44px), transparent); }
.gd-toc a, .gd-tocm a { transition: background .2s ease, box-shadow .2s ease; }
.gd-toc a[aria-current="true"], .gd-tocm a[aria-current="true"] { background: var(--ct); box-shadow: inset 2px 0 0 var(--c); font-weight: 600; }
.gd-toc a:focus-visible, .gd-tocm a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* the chapters: a name over its parts, a little air between them */
.gd-toc .gd-toc-chs, .gd-tocm .gd-toc-chs { gap: 14px; }
.gd-toc-k { display: block; margin: 0 0 4px 8px; font: 600 9.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cd); }

/* ---------- the contents where the column has no room: closed above the first part, a card like a question's ---------- */
.gd-tocm { display: none; }
@media (max-width: 1100px) {
  .gd-tocm { display: block; position: relative; isolation: isolate; margin: 0 0 44px; border-radius: 18px; background-color: var(--card); background-image: var(--paper-tex); box-shadow: var(--sh-1); }
  .gd-tocm::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 1.3px var(--card-edge); filter: url(#p-ink); pointer-events: none; }
  .gd-tocm > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 0 20px; cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; letter-spacing: -.01em; color: var(--ink); }
  .gd-tocm > summary::-webkit-details-marker { display: none; }
  .gd-tocm > summary b { font-weight: 500; color: var(--mute); }
  .gd-tocm > summary svg.i { flex: none; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--ct); color: var(--cd); stroke-width: 2.2; transition: transform .2s ease; }
  .gd-tocm[open] > summary svg.i { transform: rotate(180deg); }
  .gd-tocm > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 18px; }
  .gd-tocm nav { padding: 6px 10px 12px; border-top: 1px solid var(--line-2); }
  .gd-tocm ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
  .gd-tocm .gd-toc-chs { padding-top: 6px; }
  .gd-tocm a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 9px 10px; border-radius: 10px; font-size: 15px; line-height: 1.35; color: var(--ink); text-decoration: none; }
  .gd-tocm a span { font: 600 11px/1.75 var(--mono); color: var(--cd); }
}

/* ---------- a call inside the run: Creator's mark, one line with a short sentence under it, and the field, on the
   line's wash a shade deeper than a tip's ---------- */
.gd-call { --wash: color-mix(in srgb, var(--c) 13%, #fff); display: flex; align-items: center; gap: 14px 18px; margin: 64px 0 0; padding: 20px 20px 20px 22px; border-radius: 24px; }
.gd-call .fp-mark { align-self: flex-start; margin-top: 2px; }
.gd-call .fp-mark svg.i { width: 55%; height: 55%; color: #fff; }
.gd-call p { flex: 1 1 220px; min-width: 0; margin: 0; font-size: 14.5px; line-height: 1.45; color: #4A4953; text-wrap: pretty; }
.gd-call p b { display: block; margin-bottom: 3px; font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.gd-call form.field { flex: 0 1 360px; width: auto; min-width: 0; height: 56px; margin: 0; padding-left: 18px; box-shadow: var(--sh-2); }
.gd-call .field input { font-size: 15.5px; }
.gd-call .field .btn { height: 44px; padding: 0 20px; font-size: 15px; }
.gd-call .field .fb-more { display: none; }
@media (max-width: 760px) {
  .gd-call { flex-wrap: wrap; margin-top: 52px; padding: 18px 16px 16px; }
  .gd-call p { flex: 1 1 0; }
  .gd-call form.field { flex: 1 1 100%; }
}
