/* FlawlessFormat guides (/guides/ and /guides/<slug>/). Loaded after ff.css and built only from its tokens:
   the same canvas, dashed guides, Geist, the layered blue button, document pages in var(--doc).
   Every class here starts with gd- (ff.css already uses g- for the guarantee section and .guides for the dashed frame).
   The class reference and the page skeleton are in the guides TEMPLATE-NOTES. */

/* ---------- header: the home nav, with Guides marked as the current page ---------- */
.gd-nav { border-bottom-color: var(--line); background: rgba(250, 250, 250, .86); }
.nav-links a[aria-current] { color: var(--ink); background: rgba(0, 0, 0, .04); }
.gd-nav .logo { flex: none; }

/* ---------- page frame: one reading column, figures may run wider ---------- */
.gd {
  --gd-main: 680px;                       /* about 68 characters of 17px Geist */
  --gd-wide: 920px;
  position: relative; z-index: 1;
  padding: 56px 0 104px;
}
@media (min-width: 900px) { .gd { padding-top: 72px; } }
.gd-col {
  /* the reading column takes the space first; the wide tracks only grow once it is full */
  --gd-mainw: min(var(--gd-main), 100% - var(--gutter) * 2);
  --gd-side: clamp(0px, (100% - var(--gutter) * 2 - var(--gd-main)) / 2, (var(--gd-wide) - var(--gd-main)) / 2);
  display: grid;
  grid-template-columns:
    [full-start] minmax(0, 1fr)
    [wide-start] var(--gd-side)
    [main-start] var(--gd-mainw)
    [main-end] var(--gd-side)
    [wide-end] minmax(0, 1fr) [full-end];
}
.gd-col > * { grid-column: main; min-width: 0; }
.gd-col > .gd-wide { grid-column: wide; }
.gd-article > section { grid-column: full; display: grid; grid-template-columns: subgrid; }   /* children of a section sit on the same grid */
.gd-article > section > * { grid-column: main; min-width: 0; }
.gd-article > section > .gd-wide { grid-column: wide; }

/* ---------- breadcrumb ---------- */
.gd-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font: 500 12.5px/1.5 var(--mono); color: var(--ink-3); letter-spacing: 0; }
.gd-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.gd-crumbs li + li::before { content: "/"; margin: 0 9px; color: #c4c4c4; }
.gd-crumbs a { padding-block: 4px; transition: color 150ms ease; }
.gd-crumbs [aria-current] { color: var(--ink-2); overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .gd-crumbs a:hover { color: var(--ink); } }

/* ---------- article head ---------- */
.gd-head { padding-bottom: 8px; }
.gd-head .label { margin-top: 28px; }
.gd-h1 { margin: 16px 0 0; font-size: clamp(34px, 5.2vw, 52px); line-height: 1.04; font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
.gd-lead { margin-top: 20px; font-size: clamp(17px, 1.7vw, 19px); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.gd-lead strong { color: var(--ink); font-weight: 600; }
.gd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 26px; font-size: 14px; color: var(--ink-3); }
.gd-meta img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.gd-meta a { color: var(--ink); font-weight: 500; }
.gd-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: #c4c4c4; }
/* phones: the article byline (photo, author, date, read time) on two fixed lines so no separator dot is left at the
   start or end of a wrapped line. Line 1 "By André Antão · N min read", line 2 the date. */
@media (max-width: 520px) {
  .gd-meta:has(> img):has(> .sep) { display: grid; grid-template-columns: 28px auto 3px 1fr; column-gap: 10px; row-gap: 2px; justify-items: start; }
  .gd-meta:has(> img):has(> .sep) > img { grid-area: 1 / 1 / 3 / 2; }
  .gd-meta:has(> img):has(> .sep) > span:nth-of-type(1) { grid-area: 1 / 2; }
  .gd-meta:has(> img):has(> .sep) > span:nth-of-type(2) { grid-area: 1 / 3; }
  .gd-meta:has(> img):has(> .sep) > span:nth-of-type(3) { grid-area: 2 / 2 / 3 / -1; }
  .gd-meta:has(> img):has(> .sep) > span:nth-of-type(4) { display: none; }
  .gd-meta:has(> img):has(> .sep) > span:nth-of-type(5) { grid-area: 1 / 4; }
}

/* ---------- body text ---------- */
.gd-article { font-size: 17px; line-height: 1.7; }
.gd-article p, .gd-article li { color: var(--ink-2); text-wrap: pretty; }
.gd-article p + p { margin-top: 14px; }
.gd-article strong { color: var(--ink); font-weight: 600; }
.gd-article em { font-style: italic; }
.gd-article p a:not(.btn), .gd-article li a:not(.btn), .gd-article dd a, .gd-article td a {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1px;
  transition: text-decoration-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .gd-article p a:not(.btn):hover, .gd-article li a:not(.btn):hover { text-decoration-color: var(--ink); } }
/* links that carry their own look: breadcrumb, contents, one-line call to action, card titles */
.gd-article .gd-crumbs a:not(.btn), .gd-article .gd-aside a:not(.btn), .gd-article .gd-card a:not(.btn) { text-decoration: none; }
.gd-article .gd-toc a:not(.btn) { text-decoration-color: transparent; }
@media (hover: hover) and (pointer: fine) { .gd-article .gd-toc a:not(.btn):hover { text-decoration-color: var(--line-2); } }
/* field codes and literal text typed in Word */
.gd-article code { padding: 1px 6px; border-radius: 5px; font: 500 .84em/1.5 var(--mono); letter-spacing: 0; color: var(--ink); background: #f0f0f0; overflow-wrap: anywhere; }
.gd-article h3 code { font-size: .8em; }

/* section headings: a dashed rule and a mono number, as on the Terms page */
.gd-article > section:not(.gd-sources) > h2 {
  display: flex; gap: 14px; align-items: baseline;
  margin-top: 64px; padding-top: 40px; border-top: 1px dashed var(--line-2);
  font-size: clamp(25px, 3vw, 30px); line-height: 1.18; font-weight: 600; letter-spacing: -.032em; color: var(--ink); text-wrap: balance;
}
.gd-article > section:not(.gd-sources) > h2 > .n { flex: none; position: relative; top: -.2em; font: 500 12px/1 var(--mono); letter-spacing: 0; color: var(--blue-ink); }
.gd-article > section:not(.gd-sources) > h2 + * { margin-top: 18px; }
.gd-article h3 { margin-top: 36px; font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.gd-article h3 + * { margin-top: 10px; }
.gd-article > section > p, .gd-article > section > ul, .gd-article > section > ol { margin-top: 14px; }
.gd-article > section > h2 + p { margin-top: 18px; }
section[id], .gd-article [id] { scroll-margin-top: 88px; }
@media (max-width: 899px) { section[id], .gd-article [id] { scroll-margin-top: 128px; } }

/* plain bullet list */
.gd-list { display: grid; gap: 8px; }
.gd-list li { position: relative; padding-left: 20px; }
.gd-list li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: #bdbdbd; }

/* ---------- quick answer ---------- */
.gd-answer {
  margin-top: 36px; padding: 24px 26px 26px; border-radius: var(--radius);
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-card);
}
.gd-answer .label { margin-bottom: 12px; }
.gd-answer p { font-size: 16px; }
.gd-answer .gd-steps { margin-top: 14px; }
@media (max-width: 520px) { .gd-answer { padding: 20px 18px 22px; } }

/* ---------- numbered steps: number in a soft blue circle, a dashed thread down to the next ---------- */
.gd-steps { display: grid; gap: 0; counter-reset: gd-step; }
.gd-steps > li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; padding-bottom: 16px; counter-increment: gd-step; color: var(--ink-2); }
.gd-steps > li:last-child { padding-bottom: 0; }
.gd-steps > li::before {
  content: counter(gd-step); position: relative; z-index: 1; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%;
  display: grid; place-items: center; font: 600 12px/1 var(--mono); letter-spacing: 0;
  background: var(--blue-soft); color: var(--blue-ink); box-shadow: inset 0 0 0 1px rgba(41, 111, 240, .14);
}
.gd-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 12.5px; top: 32px; bottom: 4px; border-left: 1px dashed var(--line-2); }
.gd-steps > li > div > * + * { margin-top: 8px; }
.gd-answer .gd-steps > li { font-size: 16px; padding-bottom: 10px; }
.gd-answer .gd-steps > li:last-child { padding-bottom: 0; }

/* ---------- inline UI: menu paths, keys, platform tags ---------- */
/* a menu path: <strong class="gd-path">References › Table of Contents</strong> */
.gd-path {
  padding: 1px 7px; border-radius: 6px; font-weight: 600; font-size: .94em; color: var(--ink); white-space: normal;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), 0 1px 0 rgba(0, 0, 0, .03);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.gd-article kbd, .gd-kbd {
  display: inline-block; min-width: 1.7em; padding: 0 6px; border-radius: 5px; text-align: center;
  font: 500 .8em/1.65 var(--mono); letter-spacing: 0; color: var(--ink); white-space: nowrap;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), inset 0 -1.5px 0 var(--line-2);
}
/* a key combination that must not break across lines: <span class="gd-keys"><kbd>Ctrl</kbd>+<kbd>A</kbd></span> */
.gd-keys { white-space: nowrap; }
/* <span class="gd-os">Windows</span> before a platform-specific sentence */
.gd-os {
  display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 999px; vertical-align: .12em;
  font: 500 10.5px/1.75 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-2); background: var(--bg);
}

/* Windows | Mac side by side */
.gd-plat { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 720px) { .gd-plat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gd-plat > div { padding: 18px 20px 20px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.gd-plat .gd-os { margin-bottom: 10px; }
.gd-plat p, .gd-plat li { font-size: 15.5px; line-height: 1.6; }
.gd-plat .gd-steps > li { padding-bottom: 10px; }
.gd-plat .gd-steps > li:last-child { padding-bottom: 0; }

/* ---------- callouts (no side bars) ---------- */
.gd-note { margin-top: 24px; padding: 18px 20px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.gd-note > .t { display: block; margin-bottom: 6px; font: 500 11.5px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.gd-note p, .gd-note li { font-size: 15.5px; line-height: 1.6; }
.gd-note.tip { background: #f6f9ff; box-shadow: 0 0 0 1px rgba(41, 111, 240, .2); }
.gd-note.tip > .t { color: var(--blue-ink); }
.gd-note.warn { background: #fffafa; box-shadow: 0 0 0 1px rgba(229, 72, 77, .24); }
.gd-note.warn > .t { color: var(--red-strong); }

/* ---------- in-page contents ---------- */
.gd-toc { margin-top: 36px; }
.gd-toc ol { margin-top: 12px; columns: 2; column-gap: 32px; counter-reset: gd-toc; }
.gd-toc li { counter-increment: gd-toc; break-inside: avoid; display: grid; grid-template-columns: 30px minmax(0, 1fr); padding: 2px 0; font-size: 15px; line-height: 1.45; }
.gd-toc li::before { content: counter(gd-toc, decimal-leading-zero); padding-top: 7px; font: 500 12px/1 var(--mono); color: var(--blue-ink); }
.gd-toc a { justify-self: start; padding-block: 4px; color: var(--ink-2); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color 150ms ease, text-decoration-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .gd-toc a:hover { color: var(--ink); text-decoration-color: var(--line-2); } }
@media (max-width: 600px) { .gd-toc ol { columns: 1; } }

/* ---------- figures: a quiet stage, a caption with a mono figure number ---------- */
.gd-fig { margin-top: 32px; }
.gd-stage {
  position: relative; overflow: hidden; border-radius: 16px; padding: clamp(18px, 4vw, 40px);
  background-color: #f4f4f4;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, .07) 1px, transparent 0);
  background-size: 16px 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.gd-fig > figcaption { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--ink-3); text-wrap: pretty; max-width: var(--gd-main); }
.gd-fig > figcaption b { margin-right: 8px; font: 500 12px/1 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--blue-ink); }
@media (min-width: 960px) { .gd-wide > figcaption { margin-left: calc((var(--gd-wide) - var(--gd-main)) / 2); } }

/* small UI labels drawn on a stage */
.gd-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  font: 500 11.5px/1.3 var(--sans); letter-spacing: -.005em; color: var(--blue-ink); background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px rgba(41, 111, 240, .2);
}
.gd-tag.red { color: var(--red-strong); background: var(--red-soft); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .24); }
.gd-tag.ink { color: var(--ink-2); background: var(--surface); box-shadow: 0 0 0 1px var(--line-2); }

/* ---------- document pages drawn in HTML (uses .sheet + .pg from ff.css) ---------- */
/* <div class="sheet gd-sheet"><div class="pg gd-pg">…</div></div>: page text is sized in cqw, so it scales with the page */
.gd-sheet { width: 100%; }
.gd-pg { aspect-ratio: 210 / 250; font-size: 2.9cqw; line-height: 1.45; padding: 9cqw 9.5cqw 8cqw; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 2px 8px -2px rgba(0, 0, 0, .08), 0 18px 40px -24px rgba(0, 0, 0, .18); }
.gd-pg.short { aspect-ratio: auto; }
.gd-pg p { margin: 0 0 .7em; }
.gd-pg .gd-dh1 { font: 700 1.3em/1.25 var(--doc); margin: 0 0 .75em; }
.gd-pg .gd-dh2 { font: 700 1.06em/1.3 var(--doc); margin: 1.05em 0 .5em; }
.gd-pg .gd-dh3 { font: italic 700 1em/1.3 var(--doc); margin: 1em 0 .45em; }
.gd-pg .gd-ctr { text-align: center; }
/* contents rows: number box per level, title, dot leader ending at one point, page number right-aligned */
.gd-tc-h { font-weight: 700; font-size: 1.3em; text-align: center; margin: 0 0 1em; }
.gd-tc { display: flex; align-items: baseline; white-space: nowrap; }
.gd-tc + .gd-tc { margin-top: .12em; }
.gd-tc.gap { margin-top: .6em; }
.gd-tc.b { font-weight: 700; }
.gd-tc .no { flex: none; width: 1.6em; }
.gd-tc.l2 { padding-left: 1.6em; }
.gd-tc.l2 .no { width: 2.3em; }
.gd-tc.l3 { padding-left: 3.9em; }
.gd-tc.l3 .no { width: 2.9em; }
.gd-tc .tt { overflow: hidden; text-overflow: ellipsis; }
.gd-tc .ld {
  flex: 1 1 0; min-width: 1em; height: .3em; margin: 0 .3em 0 .4em;
  background: radial-gradient(circle at 50% 70%, #1a1a1a .05em, transparent .065em) right bottom / .5em .3em repeat-x;
}
.gd-tc .pn { flex: none; width: 1.7em; text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.gd-tc.b .pn { font-weight: 700; }
/* a highlight that links something on one page to something on another */
.gd-hl { border-radius: .2em; background: var(--blue-soft); box-shadow: 0 0 0 .18em var(--blue-soft); }
.gd-hl-red { border-radius: .2em; background: var(--red-soft); box-shadow: 0 0 0 .18em var(--red-soft); }
.gd-dim { color: #9a9a9a; }

/* ---------- mock Word UI (ribbon, menus, dialogs), drawn in Geist; never a screenshot ---------- */
.gd-win { overflow: hidden; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), var(--shadow-float); font-size: 13px; line-height: 1.4; color: var(--ink); }
.gd-win-bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #fbfbfb; }
.gd-win-bar .dots { display: flex; gap: 6px; }
.gd-win-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #dcdcdc; }
.gd-win-bar .name { font: 500 12px/1 var(--mono); color: var(--ink-3); letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-tabs { display: flex; gap: 2px; padding: 6px 10px 0; border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; }
.gd-tabs span { padding: 6px 9px 8px; color: var(--ink-3); font-size: 12.5px; }
.gd-tabs span.on { color: var(--blue-ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--blue); }
/* on narrow screens the ribbon runs off the window: fade its right edge instead of cutting it */
@media (max-width: 719px) { .gd-tabs, .gd-ribbon { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); } }
.gd-ribbon { display: flex; align-items: stretch; gap: 0; padding: 10px; overflow: hidden; background: var(--surface); }
/* phones: drop the first three inactive tabs so the active one (e.g. References) is never cut off */
@media (max-width: 520px) { .gd-tabs span:nth-child(-n+3):not(.on) { display: none; } .gd-ribbon .gd-ph-hide { display: none; } }
/* .gd-ph-hide: put it on a ribbon group the steps don't use, so the groups that matter fit on a phone */
.gd-group { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 0 12px; border-right: 1px solid var(--line); }
.gd-group:first-child { padding-left: 2px; }
.gd-group:last-child { border-right: 0; }
.gd-group .row { display: flex; gap: 6px; align-items: flex-start; }
.gd-group .gname { font-size: 11px; color: var(--ink-3); text-align: center; white-space: nowrap; }
.gd-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 6px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.gd-btn.big { flex-direction: column; gap: 4px; padding: 6px 8px; text-align: center; }
.gd-btn.on { color: var(--ink); background: var(--blue-soft); box-shadow: inset 0 0 0 1px rgba(41, 111, 240, .28); }
.gd-ico { position: relative; display: block; width: 26px; height: 26px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1.2px #8a8a8a; }
.gd-ico::before { content: ""; position: absolute; left: 6px; right: 6px; top: 7px; height: 12px; background: repeating-linear-gradient(#8a8a8a 0 1.2px, transparent 1.2px 3.6px); }
.gd-ico.sm { width: 16px; height: 16px; border-radius: 3px; }
.gd-ico.sm::before { left: 4px; right: 4px; top: 4px; height: 8px; background: repeating-linear-gradient(#8a8a8a 0 1px, transparent 1px 3px); }
.gd-stack { display: flex; flex-direction: column; gap: 2px; }
.gd-win-pad { padding: 0 10px 14px; }
.gd-stage.center { display: grid; place-items: center; }
.gd-dialog.wide { width: min(100%, 440px); }
.gd-menu .mi .gd-tag { margin-left: auto; }
.gd-menu { width: min(100%, 300px); border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px rgba(0, 0, 0, .09), var(--shadow-float); padding: 6px; font-size: 13px; }
.gd-menu .mh { padding: 6px 8px 4px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.gd-menu .mi { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; color: var(--ink-2); }
.gd-menu .mi.on { color: var(--ink); background: var(--blue-soft); box-shadow: inset 0 0 0 1px rgba(41, 111, 240, .24); }
.gd-menu .mi.off { color: #a0a0a0; }
.gd-menu .sep { height: 1px; margin: 5px 4px; background: var(--line); }
.gd-dialog { width: min(100%, 400px); border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px rgba(0, 0, 0, .09), var(--shadow-float); font-size: 13.5px; }
.gd-dialog .dt { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.gd-dialog .dt i { width: 10px; height: 10px; position: relative; }
.gd-dialog .dt i::before, .gd-dialog .dt i::after { content: ""; position: absolute; left: 50%; top: -1px; width: 1.2px; height: 12px; background: var(--ink-3); transform: rotate(45deg); }
.gd-dialog .dt i::after { transform: rotate(-45deg); }
.gd-dialog .db { padding: 16px; color: var(--ink-2); }
.gd-dialog .db p { font-size: 13.5px; line-height: 1.5; }
.gd-radio { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--ink); }
.gd-radio::before { content: ""; flex: none; width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1.2px var(--control-line); background: #fff; }
.gd-radio.on::before { box-shadow: inset 0 0 0 1.2px var(--blue), inset 0 0 0 4.5px #fff; background: var(--blue); }
.gd-dialog .df { display: flex; justify-content: flex-end; gap: 8px; padding: 0 16px 16px; }
.gd-dialog .df span { min-width: 72px; padding: 6px 14px; border-radius: 7px; text-align: center; font-size: 13px; box-shadow: 0 0 0 1px var(--line-2); color: var(--ink-2); }
.gd-dialog .df span.ok { color: #fff; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.gd-check { display: flex; align-items: center; gap: 10px; margin-top: 9px; color: var(--ink); }
.gd-check::before { content: ""; flex: none; width: 15px; height: 15px; border-radius: 4px; box-shadow: inset 0 0 0 1.2px var(--control-line); background: #fff; }
.gd-check.on::before { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.4 8.2l2.4 2.4L11.6 5.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: inset 0 0 0 1.2px var(--blue); }
.gd-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; }
.gd-field > span:first-child { color: var(--ink-2); }
.gd-select { display: inline-flex; align-items: center; gap: 10px; min-width: 96px; justify-content: space-between; padding: 4px 10px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--control-line); background: #fff; color: var(--ink); font-size: 13px; white-space: nowrap; }
.gd-select::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1.3px solid var(--ink-3); border-bottom: 1.3px solid var(--ink-3); transform: rotate(45deg); }
.gd-select.on { box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 3px rgba(41, 111, 240, .14); }

/* two things compared, side by side from 640px */
.gd-pair { display: grid; gap: 22px; }
@media (min-width: 640px) { .gd-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); } }
.gd-pair-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* ---------- illustration patterns ---------- */
/* A → B: two pages with a step between them; stacked (arrow down) below 900px (side by side under that, the page text drops below 8px) */
.gd-flow { display: grid; gap: 14px; align-items: center; justify-items: center; }
.gd-flow > .gd-sheet { max-width: 360px; }
.gd-flow-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.gd-flow-mid svg { width: 22px; height: 22px; color: var(--ink-3); transform: rotate(90deg); }
.gd-flow-mid .gd-tag { white-space: normal; text-align: center; justify-content: center; }
@media (min-width: 900px) {
  .gd-flow { grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr); gap: 18px; align-items: center; }
  .gd-flow > .gd-sheet { max-width: none; }
  .gd-flow-mid svg { transform: none; }
}
/* a heading line with its style name at the right margin */
.gd-hrow { display: flex; align-items: center; justify-content: space-between; gap: .8em; }
.gd-hrow > :first-child { min-width: 0; }
.gd-stag {
  flex: none; padding: .15em .6em; border-radius: 999px; white-space: nowrap;
  font: 500 max(9px, 2.25cqw)/1.35 var(--sans); letter-spacing: 0; font-style: normal; color: var(--blue-ink);
  background: var(--blue-soft); box-shadow: inset 0 0 0 1px rgba(41, 111, 240, .22);
}
/* a page break inside a drawn document: dashed rule with the new page number */
.gd-pbreak { position: relative; height: 0; margin: 1.5em -9.5cqw 1.4em; border-top: 1px dashed #cfcfcf; }
.gd-pbreak span {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); padding: 0 .7em; background: #fff;
  font: 500 max(9px, 2.1cqw)/1.4 var(--mono); letter-spacing: .02em; color: #8a8a8a; white-space: nowrap;
}
.gd-pnum { font: 500 max(9px, 2.1cqw)/1.4 var(--mono); letter-spacing: .02em; color: #8a8a8a; margin: 0 0 1.1em; text-align: center; }
/* lines typed by hand: full stops until the line "looked full" */
.gd-typed { white-space: nowrap; overflow: hidden; }
.gd-typed + .gd-typed { margin-top: .12em; }
.gd-typed.gap { margin-top: .6em; }
.gd-typed.b { font-weight: 700; }

/* ---------- call to action 1: compact card after the first useful section ---------- */
.gd-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 36px; padding: 20px 22px;
  border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-card);
}
.gd-cta-who { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line), 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.gd-cta-text { flex: 1 1 260px; min-width: 0; }
.gd-article .gd-cta-text p { font-size: 15.5px; line-height: 1.55; }
.gd-article .gd-cta-text .h { color: var(--ink); font-weight: 600; letter-spacing: -.015em; font-size: 16px; }
.gd-article .gd-cta-text p + p { margin-top: 2px; }
.gd-cta-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.gd-cta-link { padding-block: 6px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .gd-cta-link:hover { color: var(--ink); } }
@media (min-width: 760px) {
  .gd-cta { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 18px; }
  .gd-cta-act { flex-direction: column; align-items: center; gap: 2px; }
}
@media (max-width: 520px) {
  .gd-cta { padding: 18px; gap: 14px 14px; align-items: flex-start; }
  .gd-cta-text { flex-basis: calc(100% - 58px); }
  .gd-cta-act { width: 100%; }
  .gd-cta-act .btn { flex: 1 1 100%; }
  .gd-cta-act .gd-cta-link { margin-inline: auto; }
}

/* ---------- call to action 2: one line beside a tedious step ---------- */
.gd-aside {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 20px; padding: 11px 16px; border-radius: 12px;
  border: 1px dashed var(--line-2); font-size: 15px; line-height: 1.5;
}
.gd-article .gd-aside { color: var(--ink-2); }
.gd-aside a {
  display: inline-flex; align-items: center; gap: 6px; padding-block: 3px; font-weight: 500; color: var(--blue-ink);
}
.gd-aside a .arrow { width: 15px; height: 15px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gd-aside a:hover .arrow { transform: translateX(2px); } }

/* ---------- call to action 3: closing block before Sources ---------- */
.gd-close {
  position: relative; margin-top: 72px; padding: clamp(28px, 5vw, 44px); border-radius: 20px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-float);
}
.gd-close .label { margin-bottom: 14px; }
.gd-close-h { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; font-weight: 600; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.gd-article .gd-close-p { margin-top: 14px; font-size: 16.5px; max-width: 54ch; }
.gd-close ul { display: grid; gap: 10px; margin-top: 22px; }
.gd-close li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 15.5px; line-height: 1.55; }
.gd-close li strong { font-weight: 600; }
.gd-close .tk { width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-ink); }
.gd-close .tk svg { width: 14px; height: 14px; }
.gd-close .cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (max-width: 520px) { .gd-close .cta-row .btn { flex: 1 1 100%; } }

/* ---------- author box ---------- */
.gd-author { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding-top: 24px; border-top: 1px dashed var(--line-2); }
.gd-author img { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.gd-article .gd-author p { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
.gd-article .gd-author p b { color: var(--ink); font-weight: 600; }

/* ---------- FAQ: native details, no script ---------- */
.gd-faq { margin-top: 18px; border-top: 1px solid var(--line); }
.gd-faq details { border-bottom: 1px solid var(--line); }
.gd-faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none;
  font-weight: 500; font-size: 16.5px; line-height: 1.45; letter-spacing: -.015em; color: var(--ink);
}
.gd-faq summary::-webkit-details-marker { display: none; }
.gd-faq summary::after {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px;
  background: linear-gradient(var(--ink-3), var(--ink-3)) center / 10px 1.4px no-repeat, linear-gradient(var(--ink-3), var(--ink-3)) center / 1.4px 10px no-repeat;
  transition: transform 200ms var(--ease-out);
}
.gd-faq details[open] summary::after { transform: rotate(45deg); }
.gd-faq details > div { padding: 0 34px 18px 0; }
.gd-faq details > div p { font-size: 16px; }

/* ---------- sources ---------- */
.gd-sources { margin-top: 48px; }
.gd-sources h2 { font-size: 13px; font-weight: 500; font-family: var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.gd-sources ol { display: grid; gap: 8px; margin-top: 12px; counter-reset: gd-src; }
.gd-sources li { counter-increment: gd-src; display: grid; grid-template-columns: 24px minmax(0, 1fr); font-size: 14.5px; line-height: 1.5; }
.gd-sources li::before { content: counter(gd-src) "."; font: 500 12px/1.9 var(--mono); color: var(--ink-3); }
.gd-article .gd-sources li { color: var(--ink-3); }
.gd-sources li a { overflow-wrap: anywhere; }
.gd-sources .src { font: 500 12px/1 var(--mono); color: var(--ink-3); letter-spacing: 0; white-space: nowrap; }

/* ---------- guide cards (index and "more guides") ---------- */
.gd-cards { display: grid; gap: 14px; margin-top: 40px; counter-reset: gd-card; }
@media (min-width: 680px) { .gd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .gd-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* two columns with an odd number of cards: the last one takes the whole row instead of leaving a hole */
@media (min-width: 680px) and (max-width: 999px) { .gd-cards.three > .gd-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.gd-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 100%; padding: 22px 22px 20px;
  border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-card);
  transition: box-shadow 200ms ease, transform 200ms var(--ease-out);
}
.gd-card .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 500 12px/1.4 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.gd-card .top .no { color: var(--blue-ink); }
.gd-article .gd-card h2, .gd-article .gd-card h3 { margin: 0; }
.gd-card h2, .gd-card h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.022em; color: var(--ink); text-wrap: balance; }
.gd-article .gd-card p { margin: 0; }
.gd-card p { font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.gd-card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 500; color: var(--blue-ink); }
.gd-card .go .arrow { width: 15px; height: 15px; transition: transform 200ms var(--ease-out); }
/* the whole card is the link's hit area: <a class="stretch"> on the title */
.gd-card a.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.gd-card a.stretch:focus-visible { outline: none; }
.gd-card:has(a.stretch:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .gd-card:hover { box-shadow: 0 0 0 1px var(--line-2), 0 2px 4px rgba(0, 0, 0, .04), 0 12px 28px -12px rgba(0, 0, 0, .14); transform: translateY(-1px); }
  .gd-card:hover .go .arrow { transform: translateX(2px); }
}
.gd-related { margin-top: 56px; }
.gd-related > h2 { font-size: 13px; font-weight: 500; font-family: var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.gd-related .gd-cards { margin-top: 14px; }

/* ---------- index page (/guides/) and hub pages (/guides/<hub>/), written by tools/guides.mjs render ---------- */
/* an index page lines its title block up with the sections below (the article breakout grid would indent it) */
.gd-index > .gd-head { grid-column: wide; }
.gd-index .gd-h1 { max-width: 18ch; }
.gd-index .gd-lead { max-width: 60ch; }
.gd-index [hidden] { display: none !important; }
.gd-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gd-empty { margin-top: 40px; }
/* the filter box (shown by assets/guides.js) and the topic links */
.gd-ix-tools { display: grid; gap: 16px; margin-top: 36px; }
.gd-filter { position: relative; display: flex; align-items: center; gap: 14px; max-width: 600px; }
@media (scripting: none) { .gd-filter { display: none; } }
.gd-filter-ico { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.gd-filter-in {
  flex: 1; min-width: 0; height: 46px; padding: 0 12px 0 40px; border: 0; border-radius: 12px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(0, 0, 0, .03); font: 400 16px/1 var(--sans); letter-spacing: -.011em; color: var(--ink);
  transition: box-shadow 160ms ease; -webkit-appearance: none; appearance: none;
}
.gd-filter-in::placeholder { color: #767676; }
.gd-filter-in:focus { outline: none; box-shadow: 0 0 0 1.5px var(--blue), 0 0 0 4px rgba(41, 111, 240, .14); }
.gd-filter-n { flex: none; min-width: 68px; font: 500 12px/1 var(--mono); letter-spacing: 0; color: var(--ink-3); pointer-events: none; white-space: nowrap; }
.gd-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-topics a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: 999px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--ink-2);
  text-decoration: none; transition: box-shadow 150ms ease, color 150ms ease;
}
.gd-topics .c { font: 500 11.5px/1 var(--mono); letter-spacing: 0; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .gd-topics a:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 2px 6px -2px rgba(0, 0, 0, .08); } }
.gd-topics a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* section headings: Newest and one per hub, each hub after a dashed rule */
.gd-index > section.gd-newest, .gd-index > section.gd-hub { display: block; }
.gd-index > section.gd-newest > h2, .gd-hub-head h2 {
  margin: 0; padding: 0; border: 0; font-size: clamp(21px, 2.4vw, 24px); line-height: 1.2; font-weight: 600; letter-spacing: -.03em; color: var(--ink);
}
.gd-newest { margin-top: 52px; }
.gd-newest .gd-cards { margin-top: 18px; }
.gd-card .top .kind { color: var(--blue-ink); }
.gd-card .top time { white-space: nowrap; }
.gd-hub { margin-top: 56px; padding-top: 36px; border-top: 1px dashed var(--line-2); scroll-margin-top: 72px; }
.gd-ix-tools + .gd-hub { margin-top: 44px; }
.gd-hub-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.gd-hub-n { font: 500 12px/1 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.gd-hub-all { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 14.5px; font-weight: 500; color: var(--blue-ink); text-decoration: none; white-space: nowrap; }
.gd-hub-all .arrow { width: 15px; height: 15px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gd-hub-all:hover .arrow { transform: translateX(2px); } }
@media (max-width: 520px) { .gd-hub-all { margin-left: 0; flex-basis: 100%; } }
/* the hub guide: one card, "Start here" */
.gd-start {
  position: relative; display: grid; gap: 6px; margin-top: 18px; padding: 22px 24px 20px; border-radius: var(--radius);
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); color: inherit; text-decoration: none;
  transition: box-shadow 200ms ease, transform 200ms var(--ease-out);
}
.gd-start-tag { font: 500 12px/1.4 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--blue-ink); }
.gd-start .t { margin-top: 4px; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.gd-start .d { max-width: 64ch; font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.gd-start .go { display: inline-flex; align-items: center; gap: 6px; padding-top: 6px; font-size: 14px; font-weight: 500; color: var(--blue-ink); }
.gd-start .go .arrow { width: 15px; height: 15px; transition: transform 200ms var(--ease-out); }
.gd-start:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .gd-start:hover { box-shadow: 0 0 0 1px var(--line-2), 0 2px 4px rgba(0, 0, 0, .04), 0 12px 28px -12px rgba(0, 0, 0, .14); transform: translateY(-1px); }
  .gd-start:hover .go .arrow { transform: translateX(2px); }
}
/* every other guide: compact rows, two columns from 760px (rows of a line share one height, so the rules line up) */
.gd-rows { display: grid; margin-top: 14px; }
@media (min-width: 760px) { .gd-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
.gd-article .gd-rows > li { min-width: 0; border-top: 1px solid var(--line); color: inherit; }
.gd-article .gd-rows a:not(.btn) { position: relative; display: grid; gap: 3px; height: 100%; padding: 14px 26px 15px 0; text-decoration: none; }
.gd-rows .t { font-size: 16px; line-height: 1.4; font-weight: 500; letter-spacing: -.015em; color: var(--ink); text-wrap: pretty; transition: color 150ms ease; }
.gd-rows .d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.gd-rows a::after {
  content: ""; position: absolute; top: 18px; right: 2px; width: 15px; height: 15px; background: var(--blue-ink); opacity: 0; transform: translateX(-4px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity 150ms ease, transform 200ms var(--ease-out);
}
.gd-rows a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
@media (hover: hover) and (pointer: fine) {
  .gd-rows a:hover .t { color: var(--blue-ink); }
  .gd-rows a:hover::after { opacity: 1; transform: none; }
}
/* long hubs on /guides/: the rest of the rows stay in the page, inside <details> */
.gd-more > summary {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; min-height: 40px; padding: 0 14px; border-radius: 10px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 14.5px; font-weight: 500; color: var(--ink);
  cursor: pointer; list-style: none; transition: box-shadow 150ms ease; -webkit-user-select: none; user-select: none;
}
.gd-more > summary::-webkit-details-marker { display: none; }
.gd-more > summary::after {
  content: ""; width: 12px; height: 12px; background: var(--ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gd-more > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .gd-more > summary:hover { box-shadow: 0 0 0 1px var(--line-2), 0 2px 6px -2px rgba(0, 0, 0, .08); } }
/* open: the summary stays as "Show fewer" (chevron up), so the list can be closed again; hidden while the filter forces it open */
.gd-more > summary .c, .gd-more[open] > summary .o { display: none; }
.gd-more[open] > summary .c { display: inline; }
.gd-more[open] > summary::after { transform: rotate(180deg); }
.gd-more[open] > summary { margin-bottom: 4px; }
.gd-more.is-filtering > summary { display: none; }
.gd-more > .gd-rows { margin-top: 0; }
.gd-nomatch { margin-top: 40px; padding: 28px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; font-size: 15.5px; color: var(--ink-2); }
/* hub page: links to the other topics */
.gd-others { margin-top: 56px; padding-top: 36px; border-top: 1px dashed var(--line-2); }
.gd-others > h2 { font-size: 13px; font-weight: 500; font-family: var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.gd-others .gd-topics { margin-top: 14px; }
/* "All N … guides" under a hub guide's list, and on the author page */
.gd-related-all, .gd-about-all { margin-top: 18px; }
.gd-article .gd-related-all a, .gd-article .gd-about-all a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--blue-ink); text-decoration: none; }
.gd-related-all .arrow, .gd-about-all .arrow { width: 15px; height: 15px; }
@media (max-width: 520px) {
  .gd-hub { margin-top: 44px; padding-top: 30px; }
  .gd-start { padding: 18px 18px 16px; }
  .gd-start .t { font-size: 18.5px; }
}

/* ---------- small screens ---------- */
@media (max-width: 520px) {
  .gd { padding-top: 36px; }
  .gd-article { font-size: 16.5px; }
  .gd-article > section > h2 { margin-top: 52px; padding-top: 32px; }
  .gd-stage { border-radius: 12px; }
}

/* ---------- motion: nothing moves for reduced motion (ff.css cuts transitions to 1ms) ---------- */
@media (prefers-reduced-motion: reduce) { .gd-card:hover { transform: none; } }

/* ---------- print ---------- */
@media print {
  .gd-cta, .gd-aside, .gd-close .cta-row, .gd-related, .gd-crumbs { display: none !important; }
  .gd { padding: 0; }
  .gd-stage { background: #fff; }
  .gd-fig, .gd-note, .gd-plat > div, .gd-steps > li { break-inside: avoid; }
}

/* stacked A → B on phones: pages only as tall as their text, so no empty half-pages */
@media (max-width: 899px) { .gd-flow .gd-pg { aspect-ratio: auto; } }

/* guide: apa-headings */
/* the five levels as a real list: level label, a sample set in the document font, the rule in words */
.gd-lvls { display: grid; gap: 12px; margin-top: 24px; }
.gd-lvls > li { display: grid; gap: 10px 18px; padding: 16px 18px 18px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 640px) { .gd-lvls > li { grid-template-columns: 72px minmax(0, 1fr); } .gd-lvls .gd-lv-f { grid-column: 2; } }
.gd-lvls .gd-lv-k { font: 500 11.5px/1.9 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--blue-ink); }
.gd-lv-s { padding: 12px 16px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 2px 6px -3px rgba(0, 0, 0, .1); font: 400 16px/1.9 var(--doc); color: #111; letter-spacing: 0; }
.gd-lv-s .hd { display: block; font-weight: 700; color: #111; }
.gd-lv-s .hd.c { text-align: center; }
.gd-lv-s .it, .gd-apa .it { font-style: italic; }
.gd-lv-s .tx { display: block; text-indent: 2.2em; color: #6a6a6a; }
.gd-lv-s .tx b { font-weight: 700; color: #111; }
.gd-article .gd-lvls .gd-lv-f { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
/* an APA page drawn in HTML: left-aligned text, first-line indent, the heading level in a blue dot in the left margin */
.gd-sheet.gd-narrow { max-width: 540px; margin-inline: auto; }
.gd-pg.gd-apa { line-height: 1.85; }
.gd-pg.gd-apa p { margin: 0; text-align: left; hyphens: manual; text-indent: 2.2em; }
.gd-apa .apn { text-align: right; margin: 0 0 1em; }
.gd-apa .a1, .gd-apa .a2, .gd-apa .a3 { font-weight: 700; }
.gd-apa .a1 { text-align: center; }
.gd-apa .a3 { font-style: italic; }
.gd-apa p b { font-weight: 700; color: #111; }
.gd-apa [data-lv] { position: relative; }
.gd-apa [data-lv]::before {
  content: attr(data-lv); position: absolute; left: -6.6cqw; top: .32em; width: max(13px, 3.6cqw); height: max(13px, 3.6cqw); border-radius: 50%;
  display: grid; place-items: center; text-indent: 0; font: 600 max(8px, 2cqw)/1 var(--mono); font-style: normal; color: var(--blue-ink); background: var(--blue-soft);
}
/* Modify Style mock: Name is a text box (no arrow), toggle-button rows, Format button bottom left */
.gd-select.gd-ah-plain::after { display: none; }
.gd-ah-btns { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.gd-ah-btns .gd-btn { min-width: 28px; justify-content: center; box-shadow: inset 0 0 0 1px var(--line-2); }
.gd-ah-btns .gd-btn.on { box-shadow: inset 0 0 0 1px rgba(41, 111, 240, .4); }
.gd-ah-btns .gd-btn i, .gd-ah-btns .gd-btn u { font-style: italic; }
.gd-ah-btns .gd-btn u { font-style: normal; text-decoration: underline; }
.gd-ah-al { display: block; width: 14px; height: 11px; --l: linear-gradient(currentColor, currentColor); }
.gd-ah-al.l { background: var(--l) 0 0/14px 1.5px no-repeat, var(--l) 0 33%/9px 1.5px no-repeat, var(--l) 0 66%/14px 1.5px no-repeat, var(--l) 0 100%/9px 1.5px no-repeat; }
.gd-ah-al.c { background: var(--l) 50% 0/14px 1.5px no-repeat, var(--l) 50% 33%/8px 1.5px no-repeat, var(--l) 50% 66%/14px 1.5px no-repeat, var(--l) 50% 100%/8px 1.5px no-repeat; }
.gd-ah-al.r { background: var(--l) 100% 0/14px 1.5px no-repeat, var(--l) 100% 33%/9px 1.5px no-repeat, var(--l) 100% 66%/14px 1.5px no-repeat, var(--l) 100% 100%/9px 1.5px no-repeat; }
.gd-ah-al.j { background: var(--l) 0 0/14px 1.5px no-repeat, var(--l) 0 33%/14px 1.5px no-repeat, var(--l) 0 66%/14px 1.5px no-repeat, var(--l) 0 100%/14px 1.5px no-repeat; }
.gd-dialog .df .gd-ah-fmt { margin-right: auto; }
.gd-dialog .df .gd-ah-fmt::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 0 2px 8px; border-right: 1.3px solid var(--ink-3); border-bottom: 1.3px solid var(--ink-3); transform: rotate(45deg); }

/* guide: apa-figure-format */
/* anatomy: an APA figure on a page, each part marked with a numbered dot, and a key beside it (below on phones) */
.gd-af { display: grid; gap: 20px; align-items: center; }
@media (min-width: 760px) { .gd-af { grid-template-columns: minmax(0, 1fr) 230px; gap: 32px; } }
.gd-af > .gd-sheet { max-width: 520px; width: 100%; margin-inline: auto; }
.gd-af-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.gd-af-key li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font: 400 14px/1.5 var(--sans); color: var(--ink-2); }
.gd-af-key li b { display: block; font-weight: 600; color: var(--ink); }
.gd-af-key .k { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--mono); color: var(--blue-ink); background: var(--blue-soft); }
/* the figure inside the page (APA: number bold, title italic one line below, note left-aligned, all double-spaced) */
.gd-af-fig { position: relative; padding-right: 5cqw; }
.gd-pg .gd-af-fig p.gd-af-num { font-weight: 700; margin: 0; text-indent: 0; }
.gd-pg .gd-af-fig p.gd-af-title { font-style: italic; margin: 0 0 .9em; text-indent: 0; }
.gd-pg .gd-af-fig p.gd-af-note, .gd-af-fig .gd-af-note { margin: 1em 0 0; text-align: left; text-indent: 0; hyphens: manual; }
.gd-af-fig .gd-af-note i { font-style: italic; }
.gd-af-fig [data-k] { position: relative; }
.gd-af-fig [data-k]::after {
  content: attr(data-k); position: absolute; right: -5.4cqw; top: .25em; width: max(13px, 3.6cqw); height: max(13px, 3.6cqw); border-radius: 50%;
  display: grid; place-items: center; text-indent: 0; font: 600 max(8px, 2cqw)/1 var(--mono); font-style: normal; color: var(--blue-ink); background: var(--blue-soft);
}
.gd-af-fig .gd-chart[data-k]::after { top: 0; }
/* a bar chart drawn in HTML: sans serif labels, y axis 0-7, grouped bars; heights are inline percentages of 7 */
.gd-chart { font: 400 max(8px, 2.15cqw)/1.25 var(--sans); color: #333; letter-spacing: 0; text-indent: 0; font-style: normal; }
.gd-chart .yt-h { margin: 0 0 .7em; }
.gd-chart .ax { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .55em; }
.gd-chart .yt { position: relative; width: 1.1em; }
.gd-chart .yt span { position: absolute; right: 0; transform: translateY(50%); }
.gd-chart .plot {
  position: relative; height: 30cqw; display: flex; align-items: flex-end; justify-content: space-around; padding: 0 3%;
  border-left: 1px solid #666; border-bottom: 1px solid #666;
  background-image: linear-gradient(#e4e4e4 1px, transparent 1px); background-size: 100% calc(100% / 7);
}
.gd-chart.sm .plot { height: 21cqw; }
.gd-chart .grp { display: flex; align-items: flex-end; justify-content: center; gap: 4%; width: 26%; height: 100%; }
.gd-chart .bar { position: relative; width: 40%; background: #474747; }
.gd-chart .bar.b { background: #b3b3b3; }
.gd-chart .bar span { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); padding-bottom: .2em; white-space: nowrap; }
.gd-chart .lg { position: static; display: inline-flex; margin: 0 0 .7em; flex-wrap: wrap; gap: .25em .9em; padding: .2em .45em; background: #fff; box-shadow: 0 0 0 1px #ddd; }
.gd-chart .lg i { display: inline-block; width: .8em; height: .8em; margin-right: .35em; vertical-align: -.05em; background: #474747; }
.gd-chart .lg i.b { background: #b3b3b3; }
.gd-chart .xt { grid-column: 2; display: flex; justify-content: space-around; padding: .35em 3% 0; }
.gd-chart .xt span { width: 26%; text-align: center; }
.gd-chart .xt-h { grid-column: 2; text-align: center; padding-top: .45em; }
/* Word's default caption (before): small, italic, coloured, under the image */
.gd-pg p.gd-af-wcap, .gd-af-wcap { margin: .8em 0 0; font: italic max(8px, 2.15cqw)/1.35 var(--sans); color: #0e2841; text-indent: 0; }
/* a text box in a mock dialog (like .gd-select, without the arrow) */
.gd-input { display: block; margin-top: 6px; padding: 5px 10px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--control-line); background: #fff; color: var(--ink); font-size: 13px; }
.gd-dialog .db .gd-dsub { margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--ink-3); }

/* guide: thesis-format */
/* thesis map: mini pages grouped by part, each with the page number it shows */
.gd-tf-map { display: grid; gap: 20px; }
.gd-tf-gh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 10px; font: 500 11.5px/1.4 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.gd-tf-gh b { font-weight: 500; color: var(--ink); }
.gd-tf-gh span { text-transform: none; }
.gd-tf-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.gd-tf-pg {
  display: flex; flex-direction: column; min-width: 0; aspect-ratio: 210 / 297; padding: 12% 10% 9%; border-radius: 3px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 2px 6px -2px rgba(0, 0, 0, .1);
  font: 700 11px/1.2 var(--doc); color: #222; text-align: center; overflow-wrap: anywhere; hyphens: manual;
}
.gd-tf-pg .t { margin-bottom: 4px; }
.gd-tf-pg .ln { display: block; height: 3px; margin-top: 5px; border-radius: 2px; background: #e8e8e8; }
.gd-tf-pg .ln.s { width: 60%; }
.gd-tf-pg .f { margin-top: auto; padding-top: 4px; font: 500 10.5px/1 var(--mono); color: var(--blue-ink); }
.gd-tf-pg .f.off { color: #9a9a9a; }
.gd-tf-break { display: flex; align-items: center; gap: 10px; }
.gd-tf-break::before, .gd-tf-break::after { content: ""; flex: 1 1 16px; border-top: 1.5px dashed #bdbdbd; }
.gd-tf-break .gd-tag { white-space: normal; text-align: center; }
/* body text before/after: Word defaults vs thesis style */
.gd-pg.gd-tf-def p { font-family: var(--sans); line-height: 1.15; margin: 0 0 .8em; text-align: left; hyphens: manual; }
.gd-pg.gd-tf-apa p { line-height: 2; margin: 0; text-indent: 2.4em; text-align: left; hyphens: manual; }
.gd-pg.gd-tf-def .gd-dh2, .gd-pg.gd-tf-apa .gd-dh2 { margin-top: 0; }
/* reference list page with hanging indents */
.gd-tf-refsheet { max-width: 440px; }
.gd-pg.gd-tf-ref p { margin: 0; line-height: 2; padding-left: 2.4em; text-indent: -2.4em; text-align: left; hyphens: manual; overflow-wrap: anywhere; }
/* final checklist with empty tick boxes */
.gd-tf-checks { display: grid; gap: 12px; list-style: none; padding: 0; }
.gd-tf-checks li { position: relative; padding-left: 32px; }
.gd-tf-checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 5px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--control-line); }
/* tick boxes inside a mock ribbon keep their label on one line */
.gd-ribbon .gd-tf-nw { white-space: nowrap; }
@media (max-width: 520px) { .gd-tf-win .gd-tabs span:nth-child(-n+6):not(.on) { display: none; } }

/* guide: hanging-indent-word */
/* reference paragraphs with a real hanging indent (0.5 in on a 8.5 in page ≈ 6cqw), double-spaced, no gap between entries */
.gd-hi-sheet { max-width: 460px; }
.gd-pg .gd-hi-ref { margin: 0; padding-left: 6cqw; text-indent: -6cqw; line-height: 1.95; text-align: left; hyphens: manual; overflow-wrap: anywhere; }
.gd-pg .gd-hi-ref.gd-hi-tight { line-height: 1.6; }
.gd-pg .gd-hi-ref i { font-style: italic; }
/* the list: a grey line at the margin, a blue one at the hanging indent, a dimension label above */
.gd-hi-refs { position: relative; margin-top: 2.6em; }
.gd-hi-refs::after { content: ""; position: absolute; top: -1em; bottom: 0; left: 6cqw; border-left: 1px dashed rgba(41, 111, 240, .4); pointer-events: none; }
.gd-hi-dim { position: absolute; left: 0; top: -1.5em; width: 6cqw; height: .5em; border: solid var(--blue-ink); border-width: 0 1px; }
.gd-hi-dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--blue-ink); }
.gd-hi-dim span { position: absolute; left: 0; bottom: 100%; margin-bottom: .2em; font: 500 max(9px, 2.1cqw)/1.2 var(--mono); letter-spacing: 0; color: var(--blue-ink); white-space: nowrap; }
/* formatting marks as Word shows them with Show/Hide ¶ */
.gd-hi-mk { font-family: var(--sans); font-style: normal; color: #6f9be8; padding-left: .15em; }
.gd-hi-mk.bad { color: var(--red-strong); background: var(--red-soft); border-radius: .15em; padding: 0 .1em; }
.gd-hi-tab { display: inline-block; width: 2.4em; padding: 0; text-align: center; margin-right: .1em; }
/* group labels and the style description in a mock dialog */
.gd-dialog .db .gd-hi-grp { margin-top: 14px; padding-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-3); }
.gd-dialog .db .gd-hi-grp:first-child { margin-top: 0; }
.gd-hi-dlg .gd-tabs { padding-top: 4px; }
.gd-select.gd-hi-plain::after { display: none; }
/* spin boxes (Left, Right, By, Before, After): small up/down arrows instead of a dropdown chevron */
.gd-select.gd-hi-spin::after { width: 7px; height: 10px; margin-top: 0; border: 0; transform: none; background: var(--ink-3); clip-path: polygon(50% 0, 100% 40%, 0 40%, 0 60%, 100% 60%, 50% 100%); }
/* both sheets of Figure 5 in the same ink */
.gd-hi-pair .gd-pg, .gd-article .gd-hi-pair .gd-pg p { color: #1a1a1a; }
.gd-hi-desc { margin-top: 14px; padding: 8px 10px; border-radius: 6px; background: #f6f6f6; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.gd-dialog .df.gd-hi-df { padding-top: 0; }
.gd-dialog .df .gd-hi-fmt { margin-right: auto; }
.gd-dialog .df .gd-hi-fmt::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 0 2px 8px; border-right: 1.3px solid var(--ink-3); border-bottom: 1.3px solid var(--ink-3); transform: rotate(45deg); }
/* the Word ruler: 6 in of text width between grey margins; --in is one inch of it */
.gd-hi-rul { --m: 5%; --in: calc((100% - var(--m) * 2) / 6); padding: 12px 14px 4px; }
.gd-hi-ruler { position: relative; height: 32px; border-radius: 3px; background: linear-gradient(90deg, #e9e9e9 0 var(--m), #fff var(--m) calc(100% - var(--m)), #e9e9e9 calc(100% - var(--m))); box-shadow: inset 0 0 0 1px var(--line-2); }
.gd-hi-ruler .tk {
  position: absolute; left: var(--m); right: var(--m); top: 11px; height: 7px;
  background: linear-gradient(90deg, #a6a6a6 1px, transparent 1px) left top / calc(100% / 12) 7px repeat-x,
              linear-gradient(90deg, #c4c4c4 1px, transparent 1px) left top / calc(100% / 48) 4px repeat-x;
}
.gd-hi-ruler .no { position: absolute; top: 18px; left: calc(var(--m) + var(--in) * var(--k)); transform: translateX(-50%); font: 500 10px/1 var(--mono); color: var(--ink-3); }
.gd-hi-ruler .mk { position: absolute; width: 11px; transform: translateX(-50%); }
.gd-hi-ruler .fl { top: 0; left: var(--m); height: 8px; background: #8a8a8a; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.gd-hi-ruler .hg { bottom: 7px; left: calc(var(--m) + var(--in) * .5); height: 8px; background: var(--blue); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.gd-hi-ruler .li { bottom: 0; left: calc(var(--m) + var(--in) * .5); height: 7px; background: #8a8a8a; }
.gd-hi-keys { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 10px 0 0; }
.gd-hi-keys i { width: 9px; height: 7px; background: currentColor; }
.gd-hi-keys i.fl { clip-path: polygon(0 0, 100% 0, 50% 100%); }
.gd-hi-keys i.hg { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.gd-hi-rdoc { position: relative; padding: 16px 0 14px; font: 400 15px/1.9 var(--doc); color: #1a1a1a; }
.gd-hi-rdoc::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--m) + var(--in) * .5); border-left: 1px dashed rgba(41, 111, 240, .4); }
.gd-article .gd-hi-rdoc p { margin: 0 var(--m); padding-left: calc(var(--in) * .5); text-indent: calc(var(--in) * -.5); font-size: inherit; line-height: inherit; color: inherit; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .gd-hi-rdoc { font-size: 13.5px; }
  .gd-hi-rul { padding-inline: 10px; }
  .gd-hi-sheet .gd-pg, .gd-hi-pair .gd-pg { font-size: 3.4cqw; }   /* page text stays near 9px on phones */
}

/* guide: apa-table-format */
/* an APA table drawn as a real HTML table on a white document page (Times, sized to the page, scrolls sideways if it ever must) */
.gd-tnarrow { max-width: 520px; margin-inline: auto; }
.gd-tdoc {
  --tp: clamp(14px, 6cqw, 52px);
  position: relative; overflow-x: auto; padding: var(--tp); background: #fff; color: #111;
  font: 400 clamp(10.5px, 2.3cqw, 15.5px)/1.5 var(--doc); letter-spacing: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 2px 8px -2px rgba(0, 0, 0, .08), 0 18px 40px -24px rgba(0, 0, 0, .18);
}
.gd-tdoc.gd-mkd { padding-left: calc(var(--tp) + max(14px, 3cqw)); }
.gd-tdoc.sm { --tp: clamp(14px, 5cqw, 28px); font-size: clamp(10.5px, 3.3cqw, 13.5px); }
.gd-tdoc.sans { font-family: Arial, Helvetica, sans-serif; }
.gd-article .gd-tdoc p, .gd-tdoc th, .gd-tdoc td { margin: 0; color: #111; font-size: inherit; line-height: inherit; text-align: left; text-wrap: wrap; }
.gd-article .gd-tdoc p + p { margin-top: .3em; }
.gd-article .gd-tdoc .gd-apn, .gd-apt caption .gd-apn { display: block; font-weight: 700; margin-bottom: .55em; }
.gd-article .gd-tdoc .gd-apttl, .gd-apt caption .gd-apttl { display: block; font-style: italic; margin-bottom: .9em; }
.gd-article .gd-tdoc .gd-apx { margin-bottom: .6em; font-weight: 700; }
.gd-apt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.gd-apt caption { caption-side: top; text-align: left; }
.gd-tdoc .gd-apt th, .gd-tdoc .gd-apt td { padding: .3em .4em; font-weight: 400; text-align: center; vertical-align: bottom; white-space: nowrap; }
.gd-tdoc .gd-apt tbody th { padding-left: 0; text-align: left; white-space: normal; min-width: 6.5em; }
.gd-apt thead tr:first-child > * { border-top: 1px solid #111; }
.gd-apt thead tr:last-child > *, .gd-apt th[rowspan], .gd-apt th.span { border-bottom: 1px solid #111; }
.gd-apt tbody tr:last-child > * { border-bottom: 1px solid #111; }
.gd-apt tbody tr.last > * { border-bottom: 0; }
.gd-tdoc .gd-apt .gap { width: .7em; padding: 0; }
.gd-apt sup { font-size: .7em; line-height: 0; }
/* significance asterisks hang to the right of the value, so centred values line up on the decimal point */
.gd-tdoc .gd-apt td:has(.gd-st) { position: relative; padding-right: 1.5em; }
.gd-apt .gd-st { position: absolute; }
.gd-apt .gd-threp > * { background: var(--blue-soft); }
/* the "not APA" grid: a border round every cell, shaded labels */
.gd-tdoc .gd-apt.grid th, .gd-tdoc .gd-apt.grid td { border: 1px solid #555; }
.gd-apt.grid thead th, .gd-apt.grid tbody th { background: #e4e4e4; }
.gd-tdoc .gd-apt.grid tbody th { padding-left: .4em; min-width: 0; }
.gd-apnotes { margin-top: .7em; line-height: 1.75; }
/* numbered markers in the left margin of the page (aria-hidden; the figure caption names each part) */
.gd-mk {
  position: absolute; left: max(6px, 1.8cqw); margin-top: .15em; width: max(16px, 3.2cqw); height: max(16px, 3.2cqw); border-radius: 50%;
  display: grid; place-items: center; font: 600 max(9px, 1.8cqw)/1 var(--mono); font-style: normal; color: var(--blue-ink);
  background: var(--blue-soft); box-shadow: inset 0 0 0 1px rgba(41, 111, 240, .22);
}
/* page break inside a drawn table */
.gd-tbrk { position: relative; height: 0; margin: 1.6em calc(var(--tp) * -1) 1.4em; border-top: 1px dashed #cfcfcf; }
.gd-tbrk span { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); padding: 0 .7em; background: #fff; font: 500 max(9px, 1.9cqw)/1.4 var(--mono); color: #8a8a8a; white-space: nowrap; }
.gd-article .gd-tdoc .gd-tcont { display: flex; flex-wrap: wrap; align-items: center; gap: .3em .6em; margin-bottom: .5em; }
/* a text box in a mock dialog, and border icons for the Borders menu */
.gd-tinput { display: inline-flex; align-items: center; min-width: 150px; padding: 4px 10px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--control-line); background: #fff; color: var(--ink); font-size: 13px; white-space: nowrap; }
.gd-bico { flex: none; width: 14px; height: 14px; border: 1px dotted #b0b0b0; }
.gd-bico.b { border-bottom: 2px solid var(--ink-2); }
.gd-bico.t { border-top: 2px solid var(--ink-2); }
.gd-bico.l { border-left: 2px solid var(--ink-2); }
.gd-bico.r { border-right: 2px solid var(--ink-2); }
.gd-bico.a, .gd-bico.o { border: 2px solid var(--ink-2); }
.gd-bico.a, .gd-bico.i { background: linear-gradient(var(--ink-2), var(--ink-2)) center / 100% 1.5px no-repeat, linear-gradient(var(--ink-2), var(--ink-2)) center / 1.5px 100% no-repeat; }
@media (max-width: 520px) { .gd-stage:has(.gd-tsheet) { padding: 12px; } .gd-tdoc.gd-mkd { --tp: 10px; } .gd-tdoc .gd-apt th, .gd-tdoc .gd-apt td { padding-inline: .25em; } }

/* ---------- author page (/about/andre-antao/) ---------- */
.gd-profile-top { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.gd-profile-photo { flex: none; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.gd-head .gd-profile-top .label { margin-top: 0; }
.gd-profile-top .gd-h1 { margin-top: 10px; }
.gd-profile .gd-rows { margin-top: 20px; }
@media (max-width: 520px) { .gd-profile-top { gap: 16px; } .gd-profile-photo { width: 80px; height: 80px; } }
.gd-ix-stats { margin-top: 10px; }
.gd-ix-stats:empty { display: none; }
/* phones: "Newest" as six compact cards (tag, date, title); the lists below carry the descriptions */
@media (max-width: 679px) {
  .gd-newest .gd-card { gap: 6px; padding: 16px 18px; }
  .gd-newest .gd-card p, .gd-newest .gd-card .go { display: none; }
  .gd-newest .gd-card h3 { font-size: 17px; }
  .gd-newest .gd-cards { gap: 10px; }
}
