/*
  QRQuill site.css: the page CSS the kit leaves to the site (loaded last).
  1. section rhythm   2. nav: lang switch, menu card code, call button   3. hero collage
  4. the maker        5. code types   6. privacy promise   7. steps   8. FAQ
  9. contact          10. inner pages and blog
*/

/* ---------------------------------------------------------------- 1. section rhythm
   The kit sizes every section to one screen (100vh); on a 1920 or 2560 screen that leaves empty
   bands. Sections take their content height with one even rhythm; the hero keeps its screen. */
main > section.section:not(.hero),
main > section:not(.hero):not(.section),
footer.footer.closing {
  height: auto; min-height: 0;
  padding-block: clamp(3rem, 5vw, 5.5rem);
}
main > section.ground-inverse:not(.hero) { padding-block: clamp(3.75rem, 6vw, 6.75rem); }
main > section.section:first-child:not(.hero) { padding-top: calc(var(--nav) + clamp(2.5rem, 5vw, 5rem)); }

/* ---------------------------------------------------------------- 2. nav */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px;
  border: 1px solid var(--line); border-radius: 999px;
}
.lang-switch__opt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 28px; padding: 0 var(--s-2); border-radius: 999px;
  font-size: var(--t-label); font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
a.lang-switch__opt:hover { background: var(--surface); color: var(--ink); }
/* the narrowest phones: the bar call to action gives up a little padding so the menu button stays on screen */
@media (max-width: 359px) { .nav:not(.is-open) .nav__actions .btn { padding-inline: var(--s-2); } }
.lang-switch__opt.is-current { background: var(--ink); color: var(--bg); }

/* the menu card: the home page's own address as a code, on the lit panel */
.menu-card__code { display: grid; place-items: center; }
.menu-qr {
  position: relative; z-index: 1; display: block; width: 108px; height: auto; padding: 8px;
  background: #fff; color: #111; border-radius: var(--r-sm);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 12px 28px -16px rgb(0 0 0 / .45);
}

/* the optional call button (no number on this site: it never shows) */
.btn--urgence { gap: var(--s-2); background: var(--accent); color: var(--accent-ink, #fff); }

/* ---------------------------------------------------------------- 3. hero collage
   The lit ground of the art (the page's sage, one soft light, a fine grain), the maker window and
   the download note. Window parts are drawn small on purpose: a picture of the tool. */
.hero__art {
  background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
    radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--ground-bg) 80%, var(--ground-accent)), transparent 70%),
    var(--ground-bg);
}
.hero__art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .3 0 0 0 0 .3 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
.hero__proof { font-size: var(--t-small); color: var(--muted); }
.ly-piece--main .d-main { padding-right: var(--ly-cut-room); }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; } }

.d-win {
  background: #fff; color: #16181a; border-radius: 12px; overflow: hidden; font: 400 14px/1.4 var(--font-text); text-align: left;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 24px 60px -28px rgb(0 0 0 / .45);
}
.d-win__bar {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px;
  border-bottom: 1px solid rgb(0 0 0 / .07); font-size: 13px; color: #5d6268;
}
.d-win__dots { display: flex; gap: 6px; }
.d-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dcdfe2; }
.d-win__body { display: grid; grid-template-columns: 160px 1fr; min-height: 420px; }
.d-side {
  padding: 14px 10px; border-right: 1px solid rgb(0 0 0 / .07);
  display: grid; align-content: start; gap: 2px; font-size: 13px; color: #4d5257;
}
.d-side > span { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 7px; }
.d-side > span.is-on { background: rgb(0 0 0 / .05); color: #16181a; font-weight: 500; }
.d-side > span i { width: 14px; height: 14px; border-radius: 4px; background: currentColor; opacity: .3; flex: none; }
.d-side > span.is-on i { background: var(--p-accent); opacity: 1; }
.d-side .d-side__label { font-size: 13px; color: #8a8f94; height: 26px; margin-top: 0; }
.d-main { padding: 16px 18px; display: grid; align-content: start; gap: 14px; min-width: 0; }
.d-main__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.d-main__head h4 { font: 600 16px/1.2 var(--font-text); letter-spacing: -0.01em; margin: 0; color: inherit; }
.d-btn {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  background: var(--p-accent); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap;
}
.d-chip {
  justify-self: end; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px;
  font-size: 13px; font-weight: 500; background: #e7f4ec; color: #17673f; white-space: nowrap;
}
.d-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.d-card {
  background: #fff; color: #16181a; border-radius: 12px; padding: 14px 16px; font: 400 14px/1.4 var(--font-text); text-align: left;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 18px 44px -20px rgb(0 0 0 / .45);
}
.d-card h5 { margin: 0 0 4px; font: 600 14px/1.3 var(--font-text); }
.d-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d-note__line {
  display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #3d4247;
  border-top: 1px solid rgb(0 0 0 / .06);
}
.d-note__line:first-of-type { border-top: 0; }
.d-note__line i {
  width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: #e7f4ec; color: #17673f; font-style: normal; font-size: 13px; font-weight: 700;
}
.d-note__line b { font-weight: 500; color: #16181a; }

/* the maker as the window shows it: the fields on the left, the code on the right */
.d-maker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 44%); gap: 16px; align-items: start; }
.d-fields { display: grid; gap: 10px; min-width: 0; }
.d-field { display: grid; gap: 4px; min-width: 0; }
.d-field small { font-size: 13px; color: #7b8086; }
.d-field span {
  display: flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 8px;
  border: 1px solid rgb(0 0 0 / .12); background: #fff; font-size: 13px; color: #16181a;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.d-code { padding: 10px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); }
.d-qr { display: block; width: 100%; height: auto; }
@media (max-width: 639px) {
  .d-win__body { grid-template-columns: 1fr; }
  .d-side { display: none; }
}

/* ---------------------------------------------------------------- 4. the maker
   One app frame, three panes: the code types (a rail), the fields, the code and its downloads.
   It is the real tool, so its words keep the page's sizes (16px inputs: no zoom on a phone). */
.maker__head { margin-bottom: var(--head-gap); }
.maker__lead { font-size: var(--t-lead); line-height: 1.5; }
.maker__app.ui {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  background: var(--u-bg); color: var(--u-ink); font: 400 var(--t-body)/1.45 var(--font-text);
  border: 1px solid var(--u-border); border-radius: var(--r-lg); box-shadow: var(--u-shadow);
  overflow: clip;
}
.maker__app > .app__pane { position: relative; min-width: 0; padding: var(--s-6); }
.maker__app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.maker__rail { background: var(--u-fill); padding-inline: var(--s-4); }
.maker__label {
  margin: 0 0 var(--s-4); padding: 0;
  font: 500 var(--t-label)/1.3 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--u-muted);
}
.maker__rail > .maker__label { padding-inline: var(--s-3); }

.maker__tabs { display: grid; gap: 2px; }
.maker__tab {
  position: relative; display: grid; gap: 2px; width: 100%; padding: var(--s-3); border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--u-ink); text-align: left; cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.maker__tab:hover { background: var(--u-fill-2); }
.maker__tab[aria-selected="true"] { background: var(--u-bg); box-shadow: 0 0 0 1px var(--u-line-2), 0 1px 2px rgb(0 0 0 / .06); }
.maker__tab[aria-selected="true"]::before {
  content: ""; position: absolute; left: 0; top: var(--s-3); bottom: var(--s-3); width: 3px; border-radius: 0 3px 3px 0;
  background: var(--p-accent);
}
.maker__tab:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.maker__tab-name { font-size: var(--t-body); font-weight: 500; line-height: 1.3; }
.maker__tab-line { font-size: var(--t-label); line-height: 1.35; color: var(--u-muted); }

.maker__form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.maker__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.maker__fields > .field--full { grid-column: 1 / -1; }
.maker__form .field { color: var(--u-ink); }
.maker__form .field :is(input, select, textarea) {
  font-size: 16px; background: var(--u-bg); color: var(--u-ink); border-color: var(--u-line-2);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.maker__form .field :is(input, select, textarea):hover { border-color: color-mix(in oklab, var(--u-ink) 32%, transparent); }
.maker__form .field :is(input, select, textarea):focus-visible {
  outline: none; border-color: var(--p-accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--p-accent) 22%, transparent);
}
.maker__form .field ::placeholder { color: color-mix(in oklab, var(--u-muted) 85%, var(--u-bg)); }
.maker__check { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-small); cursor: pointer; }
.maker__check input { width: 20px; height: 20px; margin: 0; accent-color: var(--p-accent); flex: none; }
.maker__form .maker__style { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--u-line); }
.maker__colour input[type="color"] { padding: 4px; cursor: pointer; }
.maker__colour input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.maker__colour input[type="color"]::-webkit-color-swatch { border: 0; border-radius: calc(var(--r-sm) - 4px); }
.maker__colour input[type="color"]::-moz-color-swatch { border: 0; border-radius: calc(var(--r-sm) - 4px); }
.maker__range label { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.maker__range output { font: 400 var(--t-small)/1 var(--font-mono); color: var(--u-muted); font-variant-numeric: tabular-nums; }
.maker__form .maker__range input[type="range"] { height: 44px; padding: 0; border: 0; background: none; box-shadow: none; accent-color: var(--p-accent); cursor: pointer; }

.maker__out { display: grid; align-content: start; gap: var(--s-4); }
.maker__out > .maker__label { margin-bottom: 0; }
.maker__code {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: var(--s-5);
  border-radius: var(--r-md); background: var(--u-fill); box-shadow: inset 0 0 0 1px var(--u-line);
}
.maker__svg { display: block; width: 100%; max-width: 320px; height: auto; border-radius: 4px; transition: opacity var(--dur) var(--ease); }
.maker__code:is([data-state="empty"], [data-state="error"]) > .maker__svg { opacity: .1; }
.maker__empty {
  position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: var(--s-6);
  text-align: center; font-size: var(--t-small); color: var(--u-muted);
}
.maker__code:not([data-state="empty"]) > .maker__empty { display: none; }
.maker__msg { margin: 0; font-size: var(--t-small); color: color-mix(in oklab, #b25e00 80%, var(--u-ink)); }
.maker__msg:empty { display: none; }
.maker__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.maker__actions .btn { width: 100%; padding-inline: var(--s-3); }
.maker__actions .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.maker__tip { margin: 0; }

/* a tablet: the types wrap across the top as chips (all in view, no hidden scroller), the fields and the code side by side */
@media (max-width: 1023px) {
  .maker__app.ui { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .maker__app > .maker__rail { grid-column: 1 / -1; padding: var(--s-4) 0 var(--s-3); border-bottom: 1px solid var(--u-line); }
  .maker__app > .maker__form { border-left: 0; }
  .maker__rail > .maker__label { padding-inline: var(--s-5); margin-bottom: var(--s-3); }
  .maker__tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: 2px var(--s-5) var(--s-2); }
  .maker__tab {
    flex: none; width: auto; min-height: 44px; display: inline-flex; align-items: center;
    padding: 0 var(--s-4); border-radius: 999px; box-shadow: 0 0 0 1px var(--u-line-2);
  }
  .maker__tab[aria-selected="true"] { background: var(--u-ink); color: var(--u-bg); box-shadow: none; }
  .maker__tab[aria-selected="true"]::before { display: none; }
  .maker__tab-line { display: none; }
  .maker__tab-name { font-size: var(--t-small); white-space: nowrap; }
  .maker__app > .app__pane:not(.maker__rail) { padding: var(--s-5); }
}
/* a phone: one column, the code under the fields */
@media (max-width: 639px) {
  .maker__app.ui { grid-template-columns: minmax(0, 1fr); border-radius: var(--r-md); }
  .maker__app > .maker__out { border-left: 0; border-top: 1px solid var(--u-line); }
  .maker__app > .app__pane:not(.maker__rail) { padding: var(--s-5) var(--s-4); }
  .maker__rail > .maker__label { padding-inline: var(--s-4); }
  .maker__tabs { padding-inline: var(--s-4); }
  .maker__fields { grid-template-columns: minmax(0, 1fr); }
  .maker__fields > .maker__colour { grid-column: auto; }
  .maker__code { padding: var(--s-4); }
}

/* ---------------------------------------------------------------- 5. code types
   Seven cards, each with a real code a phone can scan; the whole card opens the maker on its type. */
.types__head { margin-bottom: var(--head-gap); }
.types__head p { font-size: var(--t-lead); line-height: 1.5; }
.type-card { position: relative; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.type-card:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 var(--c-hi, transparent), 0 14px 32px -20px rgb(0 0 0 / .35); }
.type-card__code {
  width: 104px; margin-bottom: var(--s-5); padding: 8px; border-radius: var(--r-sm);
  background: #fff; box-shadow: 0 0 0 1px var(--line);
}
.type-card--lead .type-card__code { width: 128px; }
.type-card__svg { display: block; width: 100%; height: auto; }
.type-card > p { flex: 1 0 auto; }
.type-card__go { margin-top: var(--s-4); }
.type-card__go::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
/* transparent, not none: forced-colours mode still draws it; the card carries the visible ring */
.type-card__go:focus-visible { outline: 2px solid transparent; }
.type-card:has(.type-card__go:focus-visible) { outline: 2px solid var(--p-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .type-card:hover { transform: none; } }
@media (min-width: 640px) and (max-width: 1023px) {
  main .grid.types__grid > .card.type-card { grid-column: auto / span 6; }
  main .grid.types__grid > .card.type-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* a phone: the code beside the words, so seven cards stay short */
@media (max-width: 639px) {
  .type-card { display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: var(--s-4); align-items: start; }
  .type-card__code, .type-card--lead .type-card__code { grid-row: 1 / span 3; width: 80px; margin: 0; padding: 6px; }
  .type-card > :not(.type-card__code) { grid-column: 2; }
  .type-card > p { margin-top: var(--s-1); }
  .type-card__go { margin-top: var(--s-3); }
}

/* ---------------------------------------------------------------- 6. privacy promise (inverse ground) */
.promise__grid { align-items: start; }
.promise .section-head { margin-bottom: 0; }
.promise .section-head p { color: var(--muted); }
.promise__rows { display: grid; }
.promise__row { display: grid; gap: var(--s-1); padding-block: var(--s-5); border-top: 1px solid var(--line); }
.promise__row:last-of-type { border-bottom: 1px solid var(--line); }
.promise__row b { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.promise__row span { color: var(--muted); max-width: 56ch; }
.promise__rows > .link { margin-top: var(--s-6); justify-self: start; }
@media (max-width: 1023px) { .promise__rows { margin-top: var(--s-6); } }

/* ---------------------------------------------------------------- 7. steps */
.steps .step-num { margin-bottom: var(--s-4); }
.step-panel { display: grid; place-items: center; padding: var(--s-5); }
.step-panel > .d-card { position: relative; z-index: 1; width: min(100%, 300px); }
.step-types { display: flex; flex-wrap: wrap; gap: 6px; }
.step-chip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px;
  border: 1px solid rgb(0 0 0 / .1); font-size: 13px; color: #3d4247; background: #fff;
}
.step-chip.is-on { background: #16181a; border-color: #16181a; color: #fff; }
.step-fields { display: grid; gap: 10px; }
.step-fields h5 { margin: 0; }
.step-fields__note { font-size: 13px; color: #17673f; }
.step-files { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.step-files__code { padding: 6px; border-radius: 8px; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); }
.step-qr { display: block; width: 100%; height: auto; }
.step-files__list { min-width: 0; }

/* ---------------------------------------------------------------- 8. FAQ */
.faq-sec__grid { align-items: start; }
@media (min-width: 1024px) {
  .faq-sec__head { position: sticky; top: calc(var(--nav) + var(--s-6)); margin-bottom: 0; }
}
.faq-sec__head .link { justify-self: start; }
.faq-sec__photo { margin: var(--s-6) 0 0; }

/* ---------------------------------------------------------------- 9. contact
   ContactSection.astro: the intro on the left five columns, the form card on the right six. The
   form is .cm-form, not the kit's .form (system.js would send it a second time), so it takes the
   kit form's grid here; its fields are the kit's .field. */
.contact__lead { margin: var(--s-5) 0 0; max-width: 46ch; color: var(--muted); font-size: var(--t-lead); }
.contact__rows { margin-top: var(--s-7); }
.contact__rows p { margin: 0; color: var(--muted); }
.contact__mail { margin: var(--s-6) 0 0; }
.contact__mail a { color: var(--accent); text-underline-offset: 3px; }
.contact__card { gap: var(--s-5); align-self: start; }
.contact__card > h2 { margin: 0; }
.cm-form {
  --error: color-mix(in oklab, #d92d20 72%, var(--ink));
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4);
}
.cm-form > :is(.field--full, .btn-row, p, .cf-turnstile, noscript) { grid-column: 1 / -1; }
.cm-form .btn-row { margin: 0; }
.cm-form[hidden], .cm-status[hidden] { display: none; }
.cm-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cm-status {
  margin: 0; padding: var(--s-4) var(--s-5); border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.cm-status[data-kind="error"] {
  border-color: color-mix(in oklab, #d92d20 45%, var(--line));
  background: color-mix(in oklab, #d92d20 7%, var(--bg));
}
.cm-status[data-kind="success"] {
  border-color: color-mix(in oklab, #17673f 40%, var(--line));
  background: color-mix(in oklab, #17673f 7%, var(--bg));
}
.cm-status + .btn { justify-self: start; }
.cm-note { display: grid; gap: var(--s-3); }
.cm-note p { margin: 0; }
.cm-note a { color: var(--accent); }
@media (max-width: 1023px) { .contact__card { margin-top: var(--s-7); } }
@media (max-width: 639px) { .cm-form { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- 10. inner pages and blog
   Every inner page runs on the same 12 columns as the home page:
   - the head row: the h1 across eight columns, the lead beside it on the last four, both on the
     h1's last line; a section head row is h2 five, lead six;
   - the prose rows: each block's h2 on the left five columns, its text on the right six, a
     hairline over every row;
   - one even gap between sections: two flat sections in a row share one padding. */
main:not(:has(> .hero)) > section.section:not([class*="ground-"]) + section.section:not([class*="ground-"]) { padding-top: 0; }
.head-row { align-items: end; }
.head-row > :is(h1, h2) { margin: 0; text-wrap: balance; }
.head-row__aside { display: flex; flex-direction: column; gap: var(--s-6); }
.head-row__aside > p { margin: 0; }
.head-row__aside > .btn-row { margin: 0; }
.head-row--section { margin-bottom: var(--head-gap); }
@media (min-width: 1024px) {
  .head-row > .head-row__aside { grid-column: 9 / span 4; padding-bottom: .35em; }
  .head-row--section > .head-row__aside { grid-column: 7 / span 6; padding-bottom: 0; }
}
@media (max-width: 1023px) { .head-row { row-gap: var(--s-5); } .head-row > :is(h1, h2) { max-width: 22ch; } }
.page-figure { margin: 0; }

.prose__block { padding-top: var(--s-6); border-top: 1px solid var(--line); align-items: start; }
.prose__block + .prose__block { margin-top: var(--s-8); }
.prose__block h2 { margin: 0; text-wrap: balance; }
.prose__body p { margin: 0 0 var(--s-4); max-width: 66ch; }
.prose__body p:last-child { margin-bottom: 0; }
.prose__body ul:not([class]) { margin: 0 0 var(--s-4); padding-left: 1.2em; max-width: 66ch; }
.prose__body ul:not([class]) li + li { margin-top: var(--s-2); }
.prose__body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .prose__block > .prose__body { grid-column: 7 / span 6; }
  .prose__block h2 { position: sticky; top: calc(var(--nav) + var(--s-6)); }
}
@media (max-width: 1023px) {
  .prose__block { row-gap: var(--s-4); }
  .prose__block + .prose__block { margin-top: var(--s-7); }
}

.site-map { margin-top: var(--s-8); }
.site-map__col h2 { margin: 0 0 var(--s-4); }
.site-map__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.site-map__col a { color: var(--ink); text-decoration: none; }
.site-map__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) { .site-map__col + .site-map__col { margin-top: var(--s-6); } }

.crumbs ol { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--line-strong); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); }
.prose__body .checks { list-style: none; margin: var(--s-5) 0 0; padding: 0; }
.post__figure { margin: var(--s-9) 0; }

/* the FAQ: its heading on the left five columns, held while the questions scroll on the right six */
.faq-row { align-items: start; }
.faq-row > .section-head { margin: 0; }
.faq-row > .section-head h2 { margin: 0; }
@media (min-width: 1024px) {
  .faq-row > .faq { grid-column: 7 / span 6; }
  .faq-row > .section-head { position: sticky; top: calc(var(--nav) + var(--s-6)); }
}
@media (max-width: 1023px) { .faq-row > .section-head { margin-bottom: var(--head-gap); } }
.table-wrap { margin-top: var(--s-5); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.data-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.data-table caption { text-align: left; color: var(--muted); padding-bottom: var(--s-3); }
.data-table :is(th, td) { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--line); }
.data-table thead th { color: var(--muted); font-weight: 500; border-bottom-color: var(--line-strong); }
.data-table tbody th { font-weight: 500; }

/* the article: H3 subsections sit inside their H2's right-hand column, the contents list takes
   the intro row's left five columns */
.post__meta { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.post__meta > span + span::before { content: "/"; margin-right: var(--s-2); color: var(--line-strong); }
.post-article .prose__body a, .post-article ~ #faq .faq a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-article .prose__body a:hover, .post-article ~ #faq .faq a:hover { text-decoration-thickness: 2px; }
.post__h3 { margin: var(--s-7) 0 var(--s-3); font: 500 var(--t-lead)/1.35 var(--font-text); letter-spacing: -0.01em; text-wrap: balance; }
.prose__body > .post__h3:first-child { margin-top: 0; }
.prose__body :is(.checks, .table-wrap) + p { margin-top: var(--s-5); }
.prose__body p + .table-wrap, .prose__body .checks + .table-wrap { margin-top: var(--s-5); }
.post__toc > p { margin: 0 0 var(--s-3); }
.post__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); counter-reset: toc; }
.post__toc li { counter-increment: toc; display: grid; grid-template-columns: 2.4em 1fr; align-items: baseline; }
.post__toc li::before { content: counter(toc, decimal-leading-zero); color: var(--muted); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.post__toc a { color: var(--ink); text-decoration: none; }
.post__toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post__label { margin: 0 0 var(--head-gap); }
.post-article .prose__block { scroll-margin-top: calc(var(--nav) + var(--s-6)); }
.blog-grid { margin-top: var(--s-2); }
