/*
 * nexus-forms estate look (1.9.1; this file 2.4.1), loaded after the block stylesheet. The file name carries the version
 * because the Deflect edge keeps assets for years: a new look ships under a new name. 5px radius on every field, box and
 * button; 44px controls; 24px minimum targets; a 2px focus ring; logical properties only, so right-to-left pages mirror.
 *
 * 2.4.1 (R-076, contrast audit 2026-11-04): every colour is the page's own theme token, so the forms switch with the
 * page (data-theme on <html>, or the system preference where the theme says "auto") and each site shows its own accent.
 * The kit scope `.nxn` declares its own --nx-* on the form root, which hid the page's tokens: the hub (no script, no
 * data-theme) drew the kit's dark text on a light page (lede 1.48:1) and its status link took the theme's link colour
 * (orange on white, 2.94:1). Now:
 * - the page's tokens are read where the theme declares them (html, and body for a per-network accent) into --nxf-t-*,
 *   and every forms scope maps the kit's --nx-* back onto them;
 * - link text is --nx-accent-strong with an --nx-accent underline; every accent fill (primary buttons, checked boxes)
 *   carries --nx-accent-ink; canvas, ink and lines are --nx-bg-canvas, --nx-text-primary and --nx-border-hairline;
 * - control edges (inputs, selects, checkboxes, file pickers) are ink mixed half-way into the canvas: 3:1 or more in
 *   both modes, where a hairline is not (WCAG 1.4.11).
 * Where a page has no theme tokens, the fallbacks are the kit's own values (kits/tokens.json) for the mode in force:
 * dark by default (R-076), light where the page says so. They are the only literal colours in this file, each inside
 * a var() fallback, and each passes AA in its own mode (tests/phpunit/Gaps/AssetsTest.php measures them).
 */

/* nxf-literals:start (page fallbacks) */
:root,
body {
  --nxf-t-scheme: dark;
  --nxf-t-canvas: var(--nx-bg-canvas, #000000);
  --nxf-t-surface: var(--nx-bg-surface, #0a0a0a);
  --nxf-t-elevated: var(--nx-bg-elevated, #111111);
  --nxf-t-muted: var(--nx-bg-muted, #141414);
  --nxf-t-hover: var(--nx-bg-hover, #1a1a1a);
  --nxf-t-pressed: var(--nx-bg-pressed, #222222);
  --nxf-t-hairline: var(--nx-border-hairline, rgba(255, 255, 255, 0.1));
  --nxf-t-hairline-strong: var(--nx-border-hairline-strong, rgba(255, 255, 255, 0.2));
  --nxf-t-border-subtle: var(--nx-border-subtle, #1a1a1a);
  --nxf-t-border-default: var(--nx-border-default, #262626);
  --nxf-t-border-strong: var(--nx-border-strong, #3a3a3a);
  --nxf-t-ink: var(--nx-text-primary, #ffffff);
  --nxf-t-ink-2: var(--nx-text-secondary, #d4d4d4);
  --nxf-t-ink-muted: var(--nx-text-muted, #a3a3a3);
  --nxf-t-ink-disabled: var(--nx-text-disabled, #8c8c8c);
  --nxf-t-accent: var(--nx-accent, #8ab4f8);
  --nxf-t-accent-strong: var(--nx-accent-strong, #a8c7fa);
  --nxf-t-accent-ink: var(--nx-accent-ink, #000000);
  --nxf-t-accent-soft: var(--nx-accent-soft, rgba(138, 180, 248, 0.12));
  --nxf-t-focus: var(--nx-focus, #8ab4f8);
  --nxf-t-positive: var(--nx-positive, #81c995);
  --nxf-t-caution: var(--nx-caution, #fdd663);
  --nxf-t-critical: var(--nx-critical, #f28b82);
  --nxf-t-info: var(--nx-info, #78d9ec);
}
:root[data-theme="light"],
:root[data-theme="light"] body,
:root[data-bx-mode="light"]:not([data-theme]),
:root[data-bx-mode="light"]:not([data-theme]) body {
  --nxf-t-scheme: light;
  --nxf-t-canvas: var(--nx-bg-canvas, #ffffff);
  --nxf-t-surface: var(--nx-bg-surface, #ffffff);
  --nxf-t-elevated: var(--nx-bg-elevated, #fafafa);
  --nxf-t-muted: var(--nx-bg-muted, #f4f4f5);
  --nxf-t-hover: var(--nx-bg-hover, #ededed);
  --nxf-t-pressed: var(--nx-bg-pressed, #e0e0e0);
  --nxf-t-hairline: var(--nx-border-hairline, rgba(0, 0, 0, 0.1));
  --nxf-t-hairline-strong: var(--nx-border-hairline-strong, rgba(0, 0, 0, 0.2));
  --nxf-t-border-subtle: var(--nx-border-subtle, #e8e8e8);
  --nxf-t-border-default: var(--nx-border-default, #d4d4d4);
  --nxf-t-border-strong: var(--nx-border-strong, #a3a3a3);
  --nxf-t-ink: var(--nx-text-primary, #000000);
  --nxf-t-ink-2: var(--nx-text-secondary, #262626);
  --nxf-t-ink-muted: var(--nx-text-muted, #525252);
  --nxf-t-ink-disabled: var(--nx-text-disabled, #5e5e5e);
  --nxf-t-accent: var(--nx-accent, #1a73e8);
  --nxf-t-accent-strong: var(--nx-accent-strong, #1557b0);
  --nxf-t-accent-ink: var(--nx-accent-ink, #ffffff);
  --nxf-t-accent-soft: var(--nx-accent-soft, rgba(26, 115, 232, 0.1));
  --nxf-t-focus: var(--nx-focus, #1a73e8);
  --nxf-t-positive: var(--nx-positive, #1e7e46);
  --nxf-t-caution: var(--nx-caution, #b45309);
  --nxf-t-critical: var(--nx-critical, #c62828);
  --nxf-t-info: var(--nx-info, #0b7285);
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"],
  :root[data-theme="auto"] body,
  :root[data-nx-default="system"]:not([data-theme]),
  :root[data-nx-default="system"]:not([data-theme]) body {
    --nxf-t-scheme: light;
    --nxf-t-canvas: var(--nx-bg-canvas, #ffffff);
    --nxf-t-surface: var(--nx-bg-surface, #ffffff);
    --nxf-t-elevated: var(--nx-bg-elevated, #fafafa);
    --nxf-t-muted: var(--nx-bg-muted, #f4f4f5);
    --nxf-t-hover: var(--nx-bg-hover, #ededed);
    --nxf-t-pressed: var(--nx-bg-pressed, #e0e0e0);
    --nxf-t-hairline: var(--nx-border-hairline, rgba(0, 0, 0, 0.1));
    --nxf-t-hairline-strong: var(--nx-border-hairline-strong, rgba(0, 0, 0, 0.2));
    --nxf-t-border-subtle: var(--nx-border-subtle, #e8e8e8);
    --nxf-t-border-default: var(--nx-border-default, #d4d4d4);
    --nxf-t-border-strong: var(--nx-border-strong, #a3a3a3);
    --nxf-t-ink: var(--nx-text-primary, #000000);
    --nxf-t-ink-2: var(--nx-text-secondary, #262626);
    --nxf-t-ink-muted: var(--nx-text-muted, #525252);
    --nxf-t-ink-disabled: var(--nx-text-disabled, #5e5e5e);
    --nxf-t-accent: var(--nx-accent, #1a73e8);
    --nxf-t-accent-strong: var(--nx-accent-strong, #1557b0);
    --nxf-t-accent-ink: var(--nx-accent-ink, #ffffff);
    --nxf-t-accent-soft: var(--nx-accent-soft, rgba(26, 115, 232, 0.1));
    --nxf-t-focus: var(--nx-focus, #1a73e8);
    --nxf-t-positive: var(--nx-positive, #1e7e46);
    --nxf-t-caution: var(--nx-caution, #b45309);
    --nxf-t-critical: var(--nx-critical, #c62828);
    --nxf-t-info: var(--nx-info, #0b7285);
  }
}
/* nxf-literals:end */

/* Every forms scope takes the page's tokens (specificity above every kit mode selector, so it wins in any mode). */
:is(.nxn.nxf-root, .nxn.nxf-page, .nxn.nxf-hub, .nxn.nxf-missing, .nxn.nxf-links).nxn.nxn {
  color-scheme: var(--nxf-t-scheme);
  --nx-bg-canvas: var(--nxf-t-canvas);
  --nx-bg-surface: var(--nxf-t-surface);
  --nx-bg-elevated: var(--nxf-t-elevated);
  --nx-bg-muted: var(--nxf-t-muted);
  --nx-bg-hover: var(--nxf-t-hover);
  --nx-bg-pressed: var(--nxf-t-pressed);
  --nx-border-hairline: var(--nxf-t-hairline);
  --nx-border-hairline-strong: var(--nxf-t-hairline-strong);
  --nx-border-subtle: var(--nxf-t-border-subtle);
  --nx-border-default: var(--nxf-t-border-default);
  --nx-border-strong: var(--nxf-t-border-strong);
  --nx-text-primary: var(--nxf-t-ink);
  --nx-text-secondary: var(--nxf-t-ink-2);
  --nx-text-muted: var(--nxf-t-ink-muted);
  --nx-text-disabled: var(--nxf-t-ink-disabled);
  --nx-accent: var(--nxf-t-accent);
  --nx-accent-strong: var(--nxf-t-accent-strong);
  --nx-accent-ink: var(--nxf-t-accent-ink);
  --nx-accent-soft: var(--nxf-t-accent-soft);
  --nx-focus: var(--nxf-t-focus);
  --nx-positive: var(--nxf-t-positive);
  --nx-caution: var(--nxf-t-caution);
  --nx-critical: var(--nxf-t-critical);
  --nx-info: var(--nxf-t-info);
  --nx-accent-glow: color-mix(in srgb, var(--nxf-t-accent) 24%, transparent);
  --nx-positive-soft: color-mix(in srgb, var(--nxf-t-positive) 10%, transparent);
  --nx-caution-soft: color-mix(in srgb, var(--nxf-t-caution) 10%, transparent);
  --nx-critical-soft: color-mix(in srgb, var(--nxf-t-critical) 10%, transparent);
  --nx-info-soft: color-mix(in srgb, var(--nxf-t-info) 10%, transparent);
  /* the primary action is the site's accent, its text the accent ink */
  --nx-primary-bg: var(--nxf-t-accent);
  --nx-primary-ink: var(--nxf-t-accent-ink);
  --nx-primary-hover: var(--nxf-t-accent-strong);
  --nx-primary-active: var(--nxf-t-accent-strong);
  /* control edges: 3:1 or more on the canvas and the surface in both modes */
  --nxf-control-line: color-mix(in srgb, var(--nxf-t-ink) 50%, var(--nxf-t-canvas));
  --nx-ctl-line: var(--nxf-control-line);
  --nxf-form-accent-ink: var(--nxf-t-accent-ink);
}

/* links: accent-strong text, accent underline, in running text and lists (buttons excepted) */
:is(.nxn.nxf-root, .nxn.nxf-page, .nxn.nxf-hub, .nxn.nxf-missing, .nxn.nxf-links) a:not([class*="button"], .nf-ui-btn, .nxn-btn) {
  color: var(--nx-accent-strong);
  text-decoration-line: underline;
  text-decoration-color: var(--nx-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
:is(.nxn.nxf-root, .nxn.nxf-page, .nxn.nxf-hub, .nxn.nxf-missing, .nxn.nxf-links) a:not([class*="button"], .nf-ui-btn, .nxn-btn):hover {
  text-decoration-thickness: 2px;
}
:is(.nxn.nxf-root, .nxn.nxf-page, .nxn.nxf-hub, .nxn.nxf-missing, .nxn.nxf-links) a:focus-visible {
  outline: 2px solid var(--nx-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.nxn.nxf-root.nxf-form {
  --nxf-r: var(--nx-radius-md, 5px);
  --nxf-control: 2.75rem;
  --nxf-pad: var(--nx-space-6, 1.5rem);
  /* 2.4.0 (R-053): one reading measure for the intro, the form and what happens next (kit §: reading column 720px). */
  --nxf-measure: var(--nx-reading-measure, 45rem);
  position: relative;
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: var(--nxf-measure);
  margin-inline: auto;
  padding: var(--nxf-pad);
  border: 1px solid var(--nx-border-hairline);
  border-radius: var(--nxf-r);
  background: var(--nx-bg-surface);
  color: var(--nx-text-secondary);
  font-size: var(--nx-text-sm, 0.9375rem);
  overflow-wrap: anywhere;
}
.nxf-form .nxf-form__title {
  color: var(--nx-text-primary);
  font-size: var(--nx-text-lg, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.nxf-form .nxf-form__page,
.nxf-form .nxf-field__group,
.nxf-form .nxf-repeater__row {
  padding: 0;
  border: 0;
  border-radius: 0;
}
.nxf-form .nxf-form__page + .nxf-form__page,
.nxf-form .nxf-form__page-title {
  padding-block-start: var(--nx-space-2, 0.5rem);
}
.nxf-form .nxf-form__page-title {
  padding-inline: 0;
  inline-size: 100%;
  border-block-end: 1px solid var(--nx-border-hairline);
  padding-block-end: var(--nx-space-2, 0.5rem);
  color: var(--nx-text-primary);
  font-size: var(--nx-text-md, 1rem);
  font-weight: 600;
}
.nxf-form .nxf-field__label {
  color: var(--nx-text-primary);
}

/* fields: one height, one radius, one border, one focus */
.nxf-form .nxf-field__input,
.nxf-form .nxf-address__part,
.nxf-form input[type="file"] {
  box-sizing: border-box;
  max-inline-size: 100%;
  min-block-size: var(--nxf-control);
  padding-inline: var(--nx-space-3, 0.75rem);
  border: 1px solid var(--nxf-control-line);
  border-radius: var(--nxf-r);
  background: var(--nx-bg-canvas);
  color: var(--nx-text-primary);
  font: 400 1rem/1.4 var(--nx-font-sans);
}
.nxf-form textarea.nxf-field__input {
  min-block-size: 8rem;
  padding-block: var(--nx-space-3, 0.75rem);
  resize: vertical;
}
.nxf-form select.nxf-field__input {
  appearance: none;
  padding-inline-end: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 1.125rem center, right 0.8125rem center;
  background-size: 0.3125rem 0.3125rem, 0.3125rem 0.3125rem;
  background-repeat: no-repeat;
}
.nxf-form:dir(rtl) select.nxf-field__input {
  background-position: left 0.8125rem center, left 1.125rem center;
}
.nxf-form .nxf-field__input:hover,
.nxf-form input[type="file"]:hover {
  border-color: var(--nx-text-muted);
}
.nxf-form .nxf-field__input:focus,
.nxf-form .nxf-address__part:focus {
  outline: 2px solid var(--nx-focus);
  outline-offset: 1px;
  border-color: var(--nx-focus);
  box-shadow: none;
}
.nxf-form :focus-visible {
  outline: 2px solid var(--nx-focus);
  outline-offset: 2px;
}

/* file inputs: the picker button is a kit secondary button */
.nxf-form input[type="file"] {
  inline-size: 100%;
  padding: var(--nx-space-1, 0.25rem);
  border-style: dashed;
  cursor: pointer;
}
.nxf-form input[type="file"]::file-selector-button {
  min-block-size: calc(var(--nxf-control) - 0.625rem);
  margin-inline-end: var(--nx-space-3, 0.75rem);
  padding-inline: var(--nx-space-4, 1rem);
  border: 1px solid var(--nxf-control-line);
  border-radius: var(--nxf-r);
  background: var(--nx-bg-surface);
  color: var(--nx-text-primary);
  font: 500 0.875rem/1 var(--nx-font-sans);
  cursor: pointer;
}

/* checkboxes and radios: drawn from tokens, a 5px box, a 24px floor inside a 44px row */
.nxf-form .nxf-field__choice {
  align-items: center;
  min-block-size: var(--nxf-control);
}
.nxf-form .nxf-field__choice input[type="checkbox"],
.nxf-form .nxf-field__choice input[type="radio"],
.nxf-form input.nxf-field__check {
  appearance: none;
  display: inline-grid;
  place-content: center;
  flex: none;
  inline-size: 1.5rem;
  block-size: 1.5rem;
  margin: 0;
  border: 1.5px solid var(--nxf-control-line);
  border-radius: var(--nxf-r);
  background: var(--nx-bg-canvas);
  cursor: pointer;
}
.nxf-form .nxf-field__choice input[type="radio"] {
  border-radius: 50%;
}
.nxf-form .nxf-field__choice input[type="checkbox"]::before,
.nxf-form input.nxf-field__check::before {
  content: "";
  inline-size: 0.875rem;
  block-size: 0.875rem;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  background: var(--nx-primary-ink);
  transform: scale(0);
}
.nxf-form .nxf-field__choice input[type="radio"]::before {
  content: "";
  inline-size: 0.625rem;
  block-size: 0.625rem;
  border-radius: 50%;
  background: var(--nx-primary-ink);
  transform: scale(0);
}
.nxf-form .nxf-field__choice input:checked,
.nxf-form input.nxf-field__check:checked {
  border-color: var(--nx-primary-bg);
  background: var(--nx-primary-bg);
}
.nxf-form .nxf-field__choice input:checked::before,
.nxf-form input.nxf-field__check:checked::before {
  transform: scale(1);
}
.nxf-form .nxf-field__choice label {
  cursor: pointer;
}

/* validation: invalid shows a critical edge and the message; a fixed answer turns quiet again */
.nxf-form .nxf-field__input[aria-invalid="true"],
.nxf-form input[aria-invalid="true"] {
  border-color: var(--nx-critical);
  border-inline-start-width: 3px;
}
.nxf-form .nxf-field__error:not(:empty) {
  display: flex;
  gap: var(--nx-space-2, 0.5rem);
  align-items: baseline;
  color: var(--nx-critical);
  font-size: var(--nx-text-xs, 0.8125rem);
  font-weight: 500;
}
.nxf-form .nxf-field__error:not(:empty)::before {
  content: "!";
  display: inline-grid;
  place-content: center;
  flex: none;
  inline-size: 1rem;
  block-size: 1rem;
  border-radius: 50%;
  background: var(--nx-critical);
  color: var(--nx-bg-canvas);
  font-size: 0.6875rem;
  font-weight: 700;
}
.nxf-form [data-nxf-dirty="1"] .nxf-field__input:valid:not([aria-invalid="true"]) {
  border-color: color-mix(in srgb, var(--nx-positive) 60%, var(--nx-border-hairline-strong));
}
.nxf-form .nxf-form__summary {
  border: 1px solid var(--nx-critical);
  border-inline-start-width: 3px;
  border-radius: var(--nxf-r);
  background: var(--nx-critical-soft, transparent);
  color: var(--nx-text-primary);
}

/* buttons: kit primary and secondary, 44px, 5px */
.nxf-form .nxf-form__nav {
  gap: var(--nx-space-3, 0.75rem);
  padding-block-start: var(--nx-space-2, 0.5rem);
}
.nxf-form .nf-ui-btn,
.nxf-form .nxf-form__button {
  min-block-size: var(--nxf-control);
  padding-inline: var(--nx-space-5, 1.25rem);
  border-radius: var(--nxf-r);
  font-size: 0.9375rem;
}

/* received: the reference reads as a record */
.nxf-form .nxf-form__outcome,
.nxf-form .nxf-form__result {
  padding: var(--nx-space-4, 1rem);
  border: 1px solid var(--nx-border-hairline);
  border-inline-start: 3px solid var(--nx-positive);
  border-radius: var(--nxf-r);
  background: var(--nx-bg-elevated, var(--nx-bg-surface));
}
.nxf-form .nxf-form__outcome-ref {
  font-family: var(--nx-font-mono);
  color: var(--nx-text-primary);
}

/* a page served from a cache older than the form */
.nxf-form .nxf-form__stale {
  margin: 0;
  padding: var(--nx-space-3, 0.75rem) var(--nx-space-4, 1rem);
  border: 1px solid var(--nx-border-hairline-strong);
  border-inline-start: 3px solid var(--nx-caution);
  border-radius: var(--nxf-r);
}
.nxf-form .nxf-form__stale a {
  text-decoration-line: underline;
}

/* phones (390px): tighter card, full-width actions */
@media (max-width: 30rem) {
  .nxn.nxf-root.nxf-form {
    --nxf-pad: var(--nx-space-4, 1rem);
  }
  .nxf-form .nxf-form__nav {
    flex-direction: column-reverse;
  }
  .nxf-form .nxf-form__nav .nf-ui-btn,
  .nxf-form .nxf-form__nav .nxf-form__button {
    inline-size: 100%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .nxf-form .nxf-field__choice input::before,
  .nxf-form input.nxf-field__check::before {
    transition: transform var(--nx-motion-fast, 120ms) ease-out;
  }
}
@media (forced-colors: active) {
  .nxf-form .nxf-field__choice input:checked::before,
  .nxf-form input.nxf-field__check:checked::before {
    background: CanvasText;
  }
}
/* 2.0.0: the two-way conversation on the status page (B204): rows with a hairline, the requester's own lines marked by
   an accent rule, never a bordered box per message. */
.nxf-root.nxf-status ol.nxf-status__replies, .nxf-root.nxf-status ol.nxf-status__replies > li { list-style: none !important; margin: 0; padding-inline-start: 0; }
.nxf-root.nxf-status .nxf-status__replies-title, .nxf-root.nxf-status h3 { color: var(--nxf-form-ink, var(--nx-text-primary)) !important; font-size: 1rem; margin: 20px 0 8px; } /* the theme heading colour leaked into the dark card */
.nxf-status .nxf-status__again { margin-block-start: 20px; }
.nxf-status .nxf-status__again > summary { cursor: pointer; color: var(--nxf-form-ink, var(--nx-text-primary)); min-block-size: 44px; display: flex; align-items: center; }
.nxf-status .nxf-status__line { padding: 12px 0 12px 14px !important; border-block-end: 1px solid var(--nx-border-hairline); border-inline-start: 2px solid transparent; }
.nxf-status .nxf-status__line[data-who="you"] { border-inline-start-color: var(--nxf-form-ink, var(--nx-focus)); }
.nxf-status .nxf-status__answer { margin-block-start: 20px; padding-block-start: 16px; border-block-start: 1px solid var(--nx-border-hairline-strong); }
.nxf-status .nxf-status__answer textarea { inline-size: 100%; }

/* 2.1.0: under the send button, what happens next (reference, days to answer, privacy notice, spam protection). */
.nxf-form .nxf-form__notes {
  margin-block: var(--nx-space-3, 0.75rem) 0;
  padding-inline-start: 1.25em;
  color: var(--nx-text-secondary, var(--nx-text-primary));
  font-size: 0.875rem;
  line-height: 1.5;
}
.nxf-form .nxf-form__notes a {
  text-underline-offset: 0.15em;
}

/*
 * 2.1.2, forms routing standard: the form pages (Desk\FormPage). The breadcrumb, the lede and the facts above the form,
 * what happens next and the related routes below it, all in the same column as the form (720px), on their own surface
 * like the status page and the index (no script, AA contrast whatever the page behind). The index lists the forms in
 * groups with a line and the time to answer each. Logical properties only; 24px minimum targets; 390px wide works.
 */
.nxn.nxf-page {
  --nxf-measure: var(--nx-reading-measure, 45rem);
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: var(--nxf-measure);
  margin-inline: auto;
  margin-block: 0 var(--nx-space-5, 1.25rem);
  padding: var(--nx-space-6, 1.5rem);
  border: 1px solid var(--nx-border-hairline);
  border-radius: var(--nx-radius-md, 5px);
  background: var(--nx-bg-surface);
  color: var(--nx-text-secondary);
  font-family: var(--nx-font-sans);
  font-size: var(--nx-text-sm, 0.9375rem);
  line-height: 1.55;
}
/* links: the accent-strong rule at the top of this file (2.4.1) */
.nxn.nxf-page .nxf-page__crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-space-1, 0.25rem) var(--nx-space-2, 0.5rem);
  margin: 0 0 var(--nx-space-3, 0.75rem);
  padding: 0;
  list-style: none;
  color: var(--nx-text-muted);
  font-size: var(--nx-text-xs, 0.8125rem);
}
.nxn.nxf-page .nxf-page__crumbs li + li::before {
  content: "\203A";
  margin-inline-end: var(--nx-space-2, 0.5rem);
  color: var(--nx-text-muted);
}
.nxn.nxf-page .nxf-page__crumbs a {
  display: inline-block;
  min-block-size: 1.5rem;
}
.nxn.nxf-page .nxf-page__crumbs [aria-current="page"] {
  color: var(--nx-text-primary);
}
.nxn.nxf-page .nxf-page__lede {
  margin: 0 0 var(--nx-space-4, 1rem);
  color: var(--nx-text-primary);
  font-size: var(--nx-text-md, 1.0625rem);
}
.nxn.nxf-page .nxf-page__facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--nx-space-1, 0.25rem) var(--nx-space-4, 1rem);
  margin: 0;
}
.nxn.nxf-page .nxf-page__facts > div {
  display: contents;
}
.nxn.nxf-page .nxf-page__facts dt {
  color: var(--nx-text-muted);
}
.nxn.nxf-page .nxf-page__facts dd {
  margin: 0;
  color: var(--nx-text-primary);
}
.nxn.nxf-page .nxf-page__h2 {
  margin: 0 0 var(--nx-space-2, 0.5rem);
  color: var(--nx-text-primary);
  font-size: var(--nx-text-md, 1.0625rem);
  font-weight: 600;
}
.nxn.nxf-page .nxf-page__steps,
.nxn.nxf-page .nxf-page__related ul {
  margin: 0 0 var(--nx-space-4, 1rem);
  padding-inline-start: var(--nx-space-5, 1.25rem);
}
.nxn.nxf-page .nxf-page__related a {
  display: inline-block;
  min-block-size: 1.5rem;
  padding-block: var(--nx-space-1, 0.25rem);
}
.nxn.nxf-page .nxf-page__related p {
  margin: 0;
}
.wp-block-group.nxf-page__form {
  margin-block: 0 var(--nx-space-5, 1.25rem);
}
.nxn.nxf-root.nxf-form .nxf-form__preset {
  margin: 0 0 var(--nx-space-3, 0.75rem);
  padding: var(--nx-space-2, 0.5rem) var(--nx-space-3, 0.75rem);
  border-inline-start: 2px solid var(--nx-accent);
  color: var(--nx-text-primary);
}
.nxn.nxf-links .nxf-links__group + .nxf-links__group {
  margin-block-start: var(--nx-space-5, 1.25rem);
}
.nxn.nxf-links .nxf-links__heading {
  margin: 0 0 var(--nx-space-2, 0.5rem);
  color: var(--nx-text-primary);
  font-size: var(--nx-text-md, 1.0625rem);
  font-weight: 600;
}
.nxn.nxf-links .nxf-links__list {
  list-style: none;
  padding-inline-start: 0;
}
.nxn.nxf-links .nxf-links__item {
  display: grid;
  gap: var(--nx-space-1, 0.25rem);
  padding-block: var(--nx-space-2, 0.5rem);
  border-block-end: 1px solid var(--nx-border-hairline);
}
.nxn.nxf-links .nxf-links__lede {
  color: var(--nx-text-secondary);
}
.nxn.nxf-links .nxf-links__days {
  color: var(--nx-text-muted);
  font-size: var(--nx-text-xs, 0.8125rem);
}
/* 2.2.0: the contact hub ([nexus_contact_hub], Desk\Hub) and the 404 of a missing form page (Desk\Canonical). */
.nxn.nxf-hub .nxf-hub__lede,
.nxn.nxf-missing .nxf-missing__lede {
  margin: 0 0 var(--nx-space-4, 1rem);
  color: var(--nx-text-secondary);
}
.nxn.nxf-hub .nxf-hub__pending {
  margin: 0 0 var(--nx-space-4, 1rem);
  padding: var(--nx-space-2, 0.5rem) var(--nx-space-3, 0.75rem);
  border-inline-start: 2px solid var(--nx-accent);
  color: var(--nx-text-primary);
}
.nxn.nxf-hub .nxf-hub__routes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: var(--nx-space-3, 0.75rem);
  margin: 0;
  padding-inline-start: 0;
  list-style: none;
}
.nxn.nxf-hub .nxf-hub__route {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-2, 0.5rem);
  padding: var(--nx-space-4, 1rem);
  border: 1px solid var(--nx-border-hairline);
  border-radius: var(--nx-radius-md, 5px);
  background: var(--nx-bg-surface);
}
.nxn.nxf-hub .nxf-hub__who {
  margin: 0;
  color: var(--nx-text-muted);
  font-size: var(--nx-text-xs, 0.8125rem);
}
.nxn.nxf-hub .nxf-hub__title {
  margin: 0;
  color: var(--nx-text-primary);
  font-size: var(--nx-text-md, 1.0625rem);
  font-weight: 600;
}
.nxn.nxf-hub .nxf-hub__text {
  margin: 0;
  color: var(--nx-text-secondary);
}
.nxn.nxf-hub .nxf-hub__days,
.nxn.nxf-hub .nxf-hub__soon {
  margin: 0;
  color: var(--nx-text-muted);
  font-size: var(--nx-text-xs, 0.8125rem);
}
.nxn.nxf-hub .nxf-hub__action {
  margin: auto 0 0;
}
.nxn.nxf-hub .nxf-hub__button {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: var(--nx-space-4, 1rem);
  border: 1px solid var(--nx-primary-bg);
  border-radius: var(--nx-radius-md, 5px);
  background: var(--nx-primary-bg);
  color: var(--nx-primary-ink);
  font-weight: 600;
  text-decoration: none;
}
.nxn.nxf-hub .nxf-hub__button:hover {
  border-color: var(--nx-primary-hover);
  background: var(--nx-primary-hover);
  color: var(--nx-primary-ink);
}
.nxn.nxf-hub .nxf-hub__button:focus-visible,
.nxn.nxf-missing a:focus-visible {
  outline: 2px solid var(--nx-focus);
  outline-offset: 2px;
}
.nxn.nxf-hub .nxf-hub__note,
.nxn.nxf-hub .nxf-hub__status {
  margin: var(--nx-space-4, 1rem) 0 0;
  color: var(--nx-text-muted);
}
.nxn.nxf-missing {
  max-inline-size: var(--nx-reading-measure, 45rem);
  margin-inline: auto;
  padding: var(--nx-space-5, 1.25rem) var(--nx-space-4, 1rem);
}
.nxn.nxf-missing .nxf-missing__title {
  margin: 0 0 var(--nx-space-2, 0.5rem);
  color: var(--nx-text-primary);
}
.nxn.nxf-missing .nxf-missing__links {
  display: grid;
  gap: var(--nx-space-2, 0.5rem);
  padding-inline-start: 0;
  list-style: none;
}
.nxn.nxf-missing .nxf-missing__links a {
  display: inline-flex;
  align-items: center;
  min-block-size: 24px;
}
@media (max-width: 30rem) {
  .nxn.nxf-page {
    padding: var(--nx-space-4, 1rem);
  }
  .nxn.nxf-page .nxf-page__facts {
    gap: 0 var(--nx-space-4, 1rem);
  }
  .nxn.nxf-page .nxf-page__facts {
    grid-template-columns: 1fr;
  }
}

/*
 * 2.4.0, R-053: forms fit their pages.
 * - One column, one container: the form page's intro, the form and what happens next share one constrained column
 *   (Desk\FormPage template 3) at the reading measure, with the same edges, padding, radius and border; the hub too.
 * - Kit controls: inputs and selects share one control height and type scale whatever the theme says about them.
 * - A named stepper (every step, its name, its state), Back at the start and the primary action at the end.
 * - The privacy line above the send button; the sending spinner inside the button; the facts again with the reference.
 * - Anything hidden stays hidden even where a kit primitive sets display (the refusal banner's alert icon, a circle with
 *   a dot, showed outside the card where `.nf-ui-banner { display: flex }` won over the hidden attribute).
 */
.nxn.nxf-root [hidden],
.nxn.nxf-page [hidden],
.nxn.nxf-root.nxf-form .nf-ui-banner[hidden] {
  display: none !important;
}
.wp-block-group.nxf-page__column {
  box-sizing: border-box;
  display: grid;
  gap: var(--nx-space-4, 1rem);
  inline-size: 100%;
  max-inline-size: var(--nx-reading-measure, 45rem);
  margin-inline: auto;
}
.wp-block-group.nxf-page__column > *,
.wp-block-group.nxf-page__column > .wp-block-group.nxf-page__form > * {
  inline-size: 100%;
  max-inline-size: 100%;
  margin-block: 0;
  margin-inline: 0;
}
.wp-block-group.nxf-page__column > .wp-block-group.nxf-page__form {
  margin-block: 0;
}
.wp-block-group.nxf-page__column > p:empty {
  display: none;
}
.nxn.nxf-hub {
  max-inline-size: var(--nx-reading-measure, 45rem);
  margin-inline: auto;
  /* 2.4.1: the hub draws the page's own canvas and text, so it never shows the kit's dark text on a light page */
  background: var(--nx-bg-canvas);
  color: var(--nx-text-secondary);
}

/* controls: one height and one type scale; the label above in the label size, the help and the error in the small size */
.nxn.nxf-root.nxf-form input.nxf-field__input:not([type="file"]),
.nxn.nxf-root.nxf-form select.nxf-field__input {
  block-size: var(--nxf-control);
  min-block-size: var(--nxf-control);
  margin: 0;
  padding-block: 0;
  line-height: normal;
  font-size: var(--nx-text-md, 1rem);
}
.nxn.nxf-root.nxf-form textarea.nxf-field__input {
  margin: 0;
  font-size: var(--nx-text-md, 1rem);
}
.nxn.nxf-root.nxf-form .nxf-field__label {
  margin: 0;
  font-size: var(--nx-text-sm, 0.875rem);
  font-weight: 500;
  line-height: var(--nx-leading-tight, 1.2);
}
.nxn.nxf-root.nxf-form .nxf-field__help,
.nxn.nxf-root.nxf-form .nxf-field__error {
  margin: 0;
  font-size: var(--nx-text-xs, 0.75rem);
  line-height: var(--nx-leading-normal, 1.5);
}
.nxn.nxf-root.nxf-form .nxf-field {
  gap: var(--nx-space-2, 0.5rem);
}

/* the named stepper */
.nxf-form .nxf-form__progress--named {
  gap: var(--nx-space-3, 0.75rem);
}
.nxf-form .nxf-form__progress--named .nxf-form__step {
  color: var(--nx-text-muted);
  font-size: var(--nx-text-xs, 0.75rem);
}
.nxf-form .nxf-steps {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: var(--nx-space-2, 0.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.nxf-form .nxf-steps__item {
  display: flex;
  align-items: flex-start;
  gap: var(--nx-space-2, 0.5rem);
  min-inline-size: 0;
  padding-block-start: var(--nx-space-2, 0.5rem);
  border-block-start: 2px solid var(--nx-border-hairline-strong);
  color: var(--nx-text-muted);
  font-size: var(--nx-text-xs, 0.75rem);
  line-height: var(--nx-leading-tight, 1.2);
}
.nxf-form .nxf-steps__marker {
  display: inline-grid;
  place-content: center;
  flex: none;
  inline-size: 1.25rem;
  block-size: 1.25rem;
  border: 1px solid var(--nx-border-hairline-strong);
  border-radius: 50%;
  font-family: var(--nx-font-mono);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}
.nxf-form .nxf-steps__name {
  min-inline-size: 0;
  padding-block-start: 0.125rem;
  overflow-wrap: anywhere;
}
.nxf-form .nxf-steps__item[data-state="done"] {
  border-block-start-color: var(--nx-text-secondary);
  color: var(--nx-text-secondary);
}
.nxf-form .nxf-steps__item[data-state="done"] .nxf-steps__marker {
  border-color: var(--nx-text-secondary);
  background: var(--nx-text-secondary);
  color: var(--nx-bg-surface);
}
.nxf-form .nxf-steps__item[data-state="current"] {
  border-block-start-color: var(--nx-text-primary);
  color: var(--nx-text-primary);
  font-weight: 600;
}
.nxf-form .nxf-steps__item[data-state="current"] .nxf-steps__marker {
  border-color: var(--nx-text-primary);
  color: var(--nx-text-primary);
}

/* the privacy line, right above the send button */
.nxf-form .nxf-form__privacy {
  margin: 0;
  color: var(--nx-text-secondary);
  font-size: var(--nx-text-sm, 0.875rem);
  line-height: var(--nx-leading-normal, 1.5);
}
.nxf-form .nxf-form__privacy a {
  text-underline-offset: 0.15em;
}

/* Back at the start; Continue and Send at the end (inline-end mirrors in right-to-left pages) */
.nxn.nxf-root.nxf-form .nxf-form__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.nxf-form .nxf-form__button--back {
  margin-inline-end: auto;
}

/* sending: a spinner inside the disabled, busy button */
.nxf-form .nxf-form__button[data-nxf-submit] {
  gap: var(--nx-space-2, 0.5rem);
}
.nxf-form .nxf-form__button[aria-busy="true"],
.nxf-form .nxf-form__button:disabled {
  cursor: progress;
  opacity: 0.85;
}
.nxf-form .nxf-form__spinner {
  display: inline-block;
  flex: none;
  box-sizing: border-box;
  inline-size: 1em;
  block-size: 1em;
  border: 2px solid currentColor;
  border-block-start-color: transparent;
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .nxf-form .nxf-form__spinner {
    animation: nxf-spin 0.8s linear infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nxf-form .nxf-form__spinner {
    border-style: dotted;
    animation: none;
  }
}
@keyframes nxf-spin {
  to {
    transform: rotate(1turn);
  }
}

/* received: the reference, then who answers and the time to answer again */
.nxf-form .nxf-form__outcome-facts .nxf-page__facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--nx-space-1, 0.25rem) var(--nx-space-4, 1rem);
  margin: 0;
}
.nxf-form .nxf-form__outcome-facts .nxf-page__facts > div {
  display: contents;
}
.nxf-form .nxf-form__outcome-facts dt {
  color: var(--nx-text-muted);
}
.nxf-form .nxf-form__outcome-facts dd {
  margin: 0;
  color: var(--nx-text-primary);
}

/* the error summary: at the top, one link per field */
.nxf-form .nxf-form__summary {
  display: block;
}
.nxf-form .nxf-form__summary-list {
  margin: var(--nx-space-2, 0.5rem) 0 0;
  padding-inline-start: var(--nx-space-5, 1.25rem);
}
.nxf-form .nxf-form__summary-list a {
  display: inline-block;
  min-block-size: 1.5rem;
}

/* phones: the steps stack, every name stays readable; no horizontal scroll */
@media (max-width: 30rem) {
  .nxf-form .nxf-steps {
    grid-auto-flow: row;
    gap: var(--nx-space-1, 0.25rem);
  }
  .nxf-form .nxf-steps__item {
    align-items: center;
    padding-block: var(--nx-space-1, 0.25rem);
    padding-inline-start: var(--nx-space-2, 0.5rem);
    border-block-start: 0;
    border-inline-start: 2px solid var(--nx-border-hairline-strong);
  }
  .nxf-form .nxf-steps__item[data-state="done"] {
    border-inline-start-color: var(--nx-text-secondary);
  }
  .nxf-form .nxf-steps__item[data-state="current"] {
    border-inline-start-color: var(--nx-text-primary);
  }
  .nxf-form .nxf-steps__name {
    padding-block-start: 0;
  }
  .nxf-form .nxf-form__button--back {
    margin-inline-end: 0;
  }
  .nxf-form .nxf-form__outcome-facts .nxf-page__facts {
    grid-template-columns: 1fr;
  }
}
