/*
 * Armada design system — ported from the concept in
 * /Users/ag/Sites/armada/_design/verified-security (src/styles.css + DESIGN_SYSTEM.md).
 *
 * The concept is Tailwind v4 (@theme / @utility); this theme ships Tailwind v3 and
 * these pages are rendered by WordPress, so the system is written as plain CSS with
 * no build step. Token names and values are copied verbatim from the concept so the
 * two stay comparable.
 *
 * Register: field operations / dispatch records. Deep navy, one amber signal,
 * square corners, flat blocks separated by 1px rules. No gradients, no glass,
 * no shadowed cards — see DESIGN_SYSTEM.md §1.
 *
 * Rules this file is held to (DESIGN_SYSTEM_EVOLUTION.md):
 *   - no color literal outside :root
 *   - no spacing value off the 0.25rem grid (§2.3)
 *   - no font size off the §2.2 steps
 *   - no !important to beat one of our own selectors
 *   - no two classes carrying identical declarations under different names
 */

:root {
    --radius: 0.125rem;

    /* Deep navy base, harbour at night */
    --paper: #0e2233;
    --ink: #f4efe8;
    --background: #0e2233;
    --foreground: #f4efe8;

    /* Raised operational surface */
    --surface: #123a5c;
    --surface-foreground: #f4efe8;

    /* Deepest navy — footer and recessed bands only */
    --hull: #0a1a29;

    /* Warm field-paper chapter, used only where the visitor changes task.
       The three chapter-scoped colors live here, not inside .chapter-light:
       a scoped chapter is still a token block, and a hex written inside a
       component is a hardcoded value with a variable's name. */
    --canvas: #f2eee6;
    --canvas-foreground: #10283a;
    --canvas-muted: #4d6270;
    --canvas-rule: #c8c1b6;
    --canvas-surface: #e5ded3;
    --canvas-accent: #ddd5c9;
    --canvas-accent-ink: #8a4b00;

    /* Primary action = signal amber. Stamped, not decorative. */
    --signal: #f5a623;
    --signal-foreground: #0e2233;
    --primary: #f5a623;
    --primary-foreground: #0e2233;

    --secondary: #164065;
    --secondary-foreground: #f4efe8;
    --muted: #12293d;
    --muted-foreground: #9fb4c7;

    /* Small-type amber. On dark chapters it is the signal itself. */
    --accent-ink: #f5a623;
    --verified: #4cb891;
    --flag: #3a2c0d;
    --flag-foreground: #f0c268;
    --destructive: #e05d4d;

    --border: #1e3a52;
    --rule: #1e3a52;
    --input: #2e4e6b;
    --ring: #f5a623;

    /* The two sanctioned tints (§2.1). Exactly one step each. A percentage
       written at the point of use is a color literal by another name. */
    --signal-wash: color-mix(in oklab, var(--signal) 20%, transparent);
    --surface-wash: color-mix(in oklab, var(--surface) 40%, transparent);

    /* The wall of the 404 photograph (average of its top edge, 2026-10-19): the color the picture dissolves into. */
    --photo-wall: #0b1325;

    /* A white text field on a photograph or a dark ground (the 404 search, owner 2026-10-19). Its text and placeholder use the
       canvas ink and muted colors, which are AA on white. */
    --field: #ffffff;

    --font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Containers — DESIGN_SYSTEM.md §3.1 */
    --w-narrow: 48rem;
    /* Matches .ds-header-inner and the footer, both of which are 80rem. At 72rem
       the page content sat 64px inside the logo and the phone button on a 1920
       screen -- the eye reads that as a page indented from its own chrome.
       Long prose that needs a shorter measure takes .container.narrow. */
    --w-default: 80rem;
    --w-wide: 80rem;

    /* §3.2 — the register margin. The left column that carries section
       indexes and labels on large screens. */
    --w-register: 7rem;
}

/* ── Base ──────────────────────────────────────────────────────────────── */

/* The design system dequeues every legacy stylesheet, which also removed the
   browser-reset and WordPress's own .screen-reader-text rules. Two visible
   consequences, both fixed here: an 8px body margin, and core's #wp-skip-link
   rendering as a live blue link above the logo. */
.armada-ds {
    margin: 0;
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    /* Body copy has one line height. Without it, an unclassed paragraph fell back
       to the browser's ~1.2 while every classed step (lead 1.6, small 1.5, table
       1.6, kv dd 1.6) set its own, so plain prose read tighter than everything
       around it. Concept: `leading-relaxed` on body paragraphs. */
    line-height: 1.6;
    font-synthesis-weight: none;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

.armada-ds *,
.armada-ds *::before,
.armada-ds *::after {
    box-sizing: border-box;
    border-color: var(--border);
}

.armada-ds h1,
.armada-ds h2,
.armada-ds h3,
.armada-ds h4 {
    font-family: var(--font-display);
    letter-spacing: 0;
    text-wrap: balance;
    margin: 0;
}

.armada-ds p {
    text-wrap: pretty;
    max-width: 70ch;   /* §2.2: line length capped near 70 characters */
}

.armada-ds ::selection {
    background-color: var(--signal);
    color: var(--signal-foreground);
}

.armada-ds :focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

/* Times, counts, checkpoint data */
.armada-ds .tabular,
.armada-ds table td,
.armada-ds table th {
    font-variant-numeric: tabular-nums;
}

/* ── Type scale — §2.2 ─────────────────────────────────────────────────── */
/*
 * Six steps, and every heading on the site is one of them. Eight page-role
 * heading classes (ds-out-title, ds-res-title, ds-factor-name, ds-model-name,
 * ds-path-title, ds-panel-title, ds-h3, ds-foot-group-title) were eight names
 * for the two steps that were missing: display-3 and display-4.
 */

.armada-ds :is(.display-1, .kv--figure dt) {
    font-size: 1.875rem;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.armada-ds .display-2 {
    font-size: 1.75rem;
    line-height: 1.15;
    font-weight: 700;
    font-family: var(--font-display);
}

/* Block headings inside a section. */
.armada-ds .display-3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 600;
}

/* Icon before a block heading (armada/grid `icon` slot): the glyph sits level with the
   first line, takes the accent-ink role, and is decoration only. */
.armada-ds .display-3:has(> .ds-icon) { display: flex; align-items: center; gap: 0.75rem; }
.armada-ds .ds-icon { flex: 0 0 auto; width: 2rem; height: 2rem; fill: currentColor; color: var(--accent-ink); }

/* The smallest heading step: a term heading its own value, a navigable row
   label, a group heading inside a footer column. */
.armada-ds .display-4,
/* not .kv--figure: a published figure takes the Display 1 step, set above.
   `.kv--data dt` (below) overrides this; it is written as `.kv.kv--data dt` so its
   specificity matches this `:not()` selector and the later rule wins (2026-10-19). */
.armada-ds .kv:not(.kv--figure) dt {
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--foreground);
}

/* Lead and Definition share the §2.2 Lead step; they differ in weight, color
   and the signal rule, not in size (concept: `text-lg sm:text-xl` for both). */
.armada-ds :is(.lead, .definition) {
    font-size: 1.125rem;
    line-height: 1.6;
}
.armada-ds .lead { color: var(--muted-foreground); }

/* One Small step. Captions, meta, helper text, the second line of a menu
   entry — every one of them, at one size. */
.armada-ds .small {
    font-size: 0.875rem;
    line-height: 1.5;
}

@media (min-width: 640px) {
    .armada-ds :is(.display-1, .kv--figure dt) { font-size: 2.25rem; }
    .armada-ds .display-2 { font-size: 1.875rem; }
    .armada-ds :is(.lead, .definition) { font-size: 1.25rem; }
}

@media (min-width: 1024px) {
    .armada-ds :is(.display-1, .kv--figure dt) { font-size: 2.8rem; }
    .armada-ds .display-2 { font-size: 2.15rem; }
}

/* ── Utilities ─────────────────────────────────────────────────────────── */

.armada-ds .label-meta {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

/* The two color-role utilities. Everything else takes its color from the
   component it sits in. */
.armada-ds :is(.muted, .ds-row--muted .ds-row-label) { color: var(--muted-foreground); }
.armada-ds .accent { color: var(--accent-ink); }
/* A section's eyebrow (label-meta) sits 12px above the heading it introduces; it was flush against it (owner 2026-10-14). */
.armada-ds section .label-meta + :is(h1, h2, h3) { margin-block-start: 0.75rem; }
/* An eyebrow is a label, not prose: the 70ch cap meant for paragraphs (11px type = 462px) broke it into two lines. One line from 768px;
   on a phone it may still wrap because the longest eyebrow is wider than the screen (owner 2026-10-14). */
.armada-ds p.label-meta { max-width: none; }
@media (min-width: 768px) { .armada-ds p.label-meta { white-space: nowrap; } }
/* The caption of a stacked table is a sentence, not an eyebrow: it wraps. (Held on one line it was 724px in a 638px frame at 768px and the page scrolled sideways.) */
.armada-ds .table-stack > p.label-meta { white-space: normal; }

/* The 1px rule, stated twice in the whole file. One opens a block; one closes
   each of its rows. Every component that needs one joins a selector list here
   rather than restating the declaration. */
.armada-ds :is(.rule-top, .kv, .ds-rows, .next-steps, .ds-faq, .table-stack > div) {
    border-top: 1px solid var(--rule);
}
.armada-ds :is(.kv > div, .ds-row, .next-step, .ds-faq-item, .ds-hero) {
    border-bottom: 1px solid var(--rule);
}

.armada-ds .container {
    width: 100%;
    max-width: var(--w-default);
    margin-inline: auto;
    padding-inline: 1.25rem;
}
.armada-ds .container.narrow { max-width: var(--w-narrow); }
.armada-ds .container.wide   { max-width: var(--w-wide); }

@media (min-width: 640px) {
    .armada-ds .container { padding-inline: 2rem; }
}

/* Light chapter: token swap, not a separate stylesheet — §3.3 */
.armada-ds .chapter-light {
    /* --background is the page ground, and rule-cell paints it (4.6) so the 1px
       gap between cells reads as a rule. A light chapter that does not swap it
       gives every rule-cell a navy slab under canvas-navy text — the same class
       of bug as the unswapped --input border, and invisible until a whole page
       sits on the chapter rather than one band. */
    --background: var(--canvas);
    --foreground: var(--canvas-foreground);
    --muted-foreground: var(--canvas-muted);
    --rule: var(--canvas-rule);
    --border: var(--canvas-rule);
    --surface: var(--canvas-surface);
    --surface-foreground: var(--canvas-foreground);
    --accent: var(--canvas-accent);
    --accent-foreground: var(--canvas-foreground);
    --accent-ink: var(--canvas-accent-ink);
    --input: var(--canvas-rule);
    --ring: var(--canvas-foreground);
    /* The two washes have to be redeclared, not inherited. A custom property
       that contains var() is resolved where it is DECLARED, so the :root
       definitions resolved against the dark --surface and --signal and then
       inherited into the chapter as a finished color: every comparison cell in
       a light-chapter table was painted navy-at-40% over cream. Measured on the
       live coverage table, not deduced.
       The steps differ from the dark ones because a wash is defined by how far
       it moves from its own ground: 20% amber is a large move on navy and a
       barely visible one on cream. */
    --surface-wash: var(--canvas-surface);
    --signal-wash: color-mix(in oklab, var(--signal) 45%, transparent);
    background-color: var(--canvas);
    color: var(--canvas-foreground);
}

/* ── Section — §3.2, §3.3, §4.5 ────────────────────────────────────────── */

/* WordPress core injects `margin-block: 24px 0` on every flow child, which
   adds 24px to every section gap and detaches `rule-top` from the boundary
   it marks. Section rhythm is owned here (DESIGN_SYSTEM 2.3, 3.3). */
.armada-ds .ds-main > .section,
.armada-ds .section {
    margin-block: 0;
    padding-block: 4rem;
}

@media (min-width: 640px) { .armada-ds .section { padding-block: 5rem; } }
@media (min-width: 1024px) { .armada-ds .section { padding-block: 6rem; } }

/*
 * One vertical rhythm for section content. Blocks in a section are spaced by
 * the scale, not by a margin-only class per element: ds-problem-title,
 * ds-problem-answer, ds-problem-cta, ds-problem-related, ds-res-all,
 * ds-rec-caption, ds-foot-h2-gap and ds-hero-title were seven such classes.
 */
.armada-ds :is(.section, .ds-hero, .ds-header, .ds-footer) :is(p, h1, h2, h3, h4, ul, ol, dl, figure, table, blockquote) { margin: 0; }
.armada-ds .section > .container:not(.split) > * + * { margin-block-start: 1.5rem; }
/* A section head may sit in the wide column of a `split`, with the frame it
   is illustrated by in the narrow one. It is still the section head, so the
   wrapper joins the selector rather than the rhythm being restated. */
.armada-ds .section > .container > :is(.section-head, .split:has(> .section-head)):not(:last-child) { margin-block-end: 2.5rem; }
.armada-ds .section > .container > :is(.section-head, .split:has(> .section-head)) + * { margin-block-start: 0; }
.armada-ds .section > .container > .section-index + * { margin-block-start: 0.5rem; }

.armada-ds .section-head > * + * { margin-block-start: 0.75rem; }
.armada-ds .section-head > .lead { margin-block-start: 1rem; }

/* Blocks that hold a stack of prose all use the same rhythm. */
/*
 * `.split > *` rather than `.split > div`: the FAQ aside is an <aside>, and a
 * rule about "a block that holds a stack of prose" should not turn on the tag
 * name. Written as div it silently skipped that column and the form's first
 * label sat against the paragraph above it.
 */
.armada-ds :is(.answer, .rule-cell, .ds-faq-answer, .ds-hero-inner, .prose, .split > *:not(.actions)) > * + * {
    margin-block-start: 1rem;
}
/*
 * `prose` is the body of a long article: stored paragraphs, headings and lists, no blocks.
 * It flows at the same 1rem as every other stack of prose, and a heading opens a new passage,
 * so it takes 2.5rem above (the section-head's closing space, 3.3) and sits close to what it
 * introduces. The classes on those headings and lists come from the_content (inc/ds-article.php),
 * never from the stored text.
 */
.armada-ds .prose > :is(h2, h3, h4) { margin-block-start: 2.5rem; }
.armada-ds .prose > :is(h2, h3, h4) + * { margin-block-start: 0.75rem; }
.armada-ds .prose > :first-child { margin-block-start: 0; }
/* An ordered list in an article keeps its numbers (they are the point of it) and takes the checklist's item spacing. */
.armada-ds .prose > ol { padding-inline-start: 1.5rem; }
.armada-ds .prose > ol > li + li { margin-block-start: 0.5rem; }
.armada-ds .kv dd > * + * { margin-block-start: 0.5rem; }

/*
 * §3.2 — the seven-rem register. A section that is given an index becomes a
 * two-column grid at `lg`: the register margin carries the index, and the
 * content column stays aligned to the same offset below the heading block.
 * Numbering a section implies a sequence, so a section without an index is
 * plain full width and gets no register.
 */
.armada-ds .section-index {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent-ink);
}

@media (min-width: 1024px) {
    .armada-ds .section--indexed > .container {
        display: grid;
        grid-template-columns: var(--w-register) 1fr;
        column-gap: 2rem;
    }
    .armada-ds .section--indexed > .container > * { grid-column: 2; }
    .armada-ds .section--indexed > .container > .section-index {
        grid-column: 1;
        grid-row: 1;
        padding-top: 0.25rem;
    }
    .armada-ds .section--indexed > .container > .section-head {
        grid-row: 1;
        margin-block-start: 0;
    }
}

/*
 * The one two-column split in the system. Five names — ds-paths, ds-verify,
 * ds-outcomes, ds-coverage-foot, ds-next — were five slightly different
 * fraction pairs for the same thing: a section that reads as two columns on a
 * wide screen and one on a narrow one.
 */
.armada-ds .split { display: grid; gap: 2rem; }
/* A grid item's automatic minimum size is its content's, so a column holding a
   table refuses to be narrower than that table and pushes the whole document
   sideways instead. Measured at 375px on the Financial District page: the
   column came out 431px wide inside a 335px container and gave the page a 76px
   horizontal scroll. The column may shrink; the table scrolls inside its own
   `.table-wrap`, which is what that wrapper is for. */
.armada-ds .split > * { min-width: 0; }
/* `split--figure-left` puts its photograph first in the markup because that is
   where it is read on a wide screen. Stacked on a phone the same order puts the
   picture above the heading it belongs to -- measured at 375px, three sections
   out of three on the Financial District page opened on a photograph with no
   context. The heading goes first while the columns are stacked; the desktop
   rule below restores the reading order it was written in. */
.armada-ds :is(.split--figure-left, .split--left) > .ds-figure { order: 1; }
@media (min-width: 1024px) {
    .armada-ds .split { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
}

/*
 * The 50/50 split with the photograph on the left. `split--figure-left` is the
 * 70/30 pair; a short section (the rule in RULES 1.4 gives 50/50 to short ones)
 * had no way to face the other way, so a page that alternated its sides had to
 * break the alternation at every 50/50 section. No columns here: the base
 * `.split` already is 1fr 1fr. This only restores the reading order the markup
 * is written in (photograph first), and the stacked order above puts the heading
 * before it on a phone.
 */
/*
 * An icon that leads a line of text, outside any heading: the pin before "We
 * serve", on 18 pages. `.ds-icon` is sized for a heading (2rem); inside a line of
 * body copy it is the height of the text. The text goes in one child so that the
 * flex row has two items, not one per word and link.
 */
.armada-ds .ds-line { display: flex; align-items: flex-start; gap: 0.5rem; }
.armada-ds .ds-line > .ds-icon { width: 1.25rem; height: 1.5rem; margin-block-start: 0.25rem; }

/*
 * §4.4 — an asymmetric split. The FAQ section on production is not two equal
 * columns: measured at 1440px it is 775px of questions beside a 517px column
 * holding the ask-us form, roughly 60/40. Equal columns give four short fields
 * half the page. One modifier, not a second grid.
 */
@media (min-width: 1024px) {
    .armada-ds .split--aside { grid-template-columns: 1.5fr 1fr; }
}

/*
 * §4.4 — a third to the frame. `split--aside` is 60/40, which is right for a
 * form beside a list of questions but too wide for a documentary frame beside
 * a table: the picture starts competing with the content it illustrates. One
 * more fraction pair, stated here rather than invented per page.
 */
@media (min-width: 1024px) {
    .armada-ds .split--third { grid-template-columns: 2fr 1fr; }
}

/*
 * A note under a table is read against the table's columns, not against the
 * container. It keeps the base 1fr 1fr pair the table uses and repeats the
 * 1.25rem the cells inset their text by, so the description and the source
 * start where the cells above them start. Measured at 1440px the `split--third`
 * pair put the source at x=939 against a column divider at x=720, and the
 * description at the table's outer edge rather than at its first cell's text.
 */
.armada-ds .split--table-foot { column-gap: 0; }
.armada-ds .split--table-foot > * { padding-inline: 1.25rem; }
@media (max-width: 639px) {
    .armada-ds .split--table-foot > * { padding-inline: 0.875rem; }
}

/*
 * §4.4 — the narrowest of the fraction pairs, 70/30, for the opening of a page:
 * the title, the standfirst and the figures the page is about on the left, and
 * a photograph holding the right edge. Narrower than `split--third` because
 * here the picture is not illustrating a passage, it is the page's own portrait
 * and has nothing to say; at 2fr/1fr it pulled the eye off the numbers.
 *
 * Its columns stretch rather than starting together, and the photograph takes
 * the height its neighbour ends up with instead of stating a ratio -- a ratio
 * stated here would leave either a gap under the picture or a picture running
 * past the text, depending on how long the standfirst ran on that page.
 */
@media (min-width: 1024px) {
    .armada-ds .split--figure { grid-template-columns: 7fr 3fr; align-items: stretch; }
    /* The same pair with the photograph on the left, so a long page alternates
       instead of running one ragged edge down the whole right side. The figure
       is first in the markup, which is also the order it should be read in. */
    .armada-ds .split--figure-left { grid-template-columns: 3fr 7fr; align-items: stretch; }
    .armada-ds :is(.split--figure-left, .split--left) > .ds-figure { order: 0; }
    /* A split that holds a photograph stretches it, whichever fraction pair it
       is: 70/30 when the section carries a table or a long argument, 50/50 when
       it carries a short one. Keyed on the figure being there rather than on a
       modifier, so choosing the pair is the only decision a section makes. */
    .armada-ds .split:has(> .ds-figure--hero) { align-items: stretch; }
    .armada-ds .split > .ds-figure--hero {
        margin-block-start: 0;
        height: 100%;
        /* Two rows, not a stack: the photograph takes what is left after the
           caption has had its line, so the caption sits inside the column
           rather than hanging below its bottom edge. */
        display: grid;
        grid-template-rows: 1fr auto;
        container-type: inline-size;
    }
    /* The photograph may be stretched by the row; it may not CREATE the row.
       `aspect-ratio: auto` let a portrait source do exactly that: measured on
       /industrial-security/manufacturing-plants/, a 900x1200 photograph in a
       350px column stood 467px tall beside 223px of text and left 281px of
       empty page under the paragraph. The ratio here is a ceiling, not a shape:
       when the text is taller the image still fills the row (`height: 100%`),
       and when it is shorter the image stops at a band instead of a tower.
       The ceiling widens with the column because 3:2 at 584px is 389px tall,
       which is a void of its own. */
    .armada-ds .split > .ds-figure--hero > img { aspect-ratio: 3 / 2; height: 100%; min-height: 0; }
    @container (min-width: 26rem) {
        .armada-ds .split > .ds-figure--hero > img { aspect-ratio: 16 / 9; }
    }
}


/*
 * §4.3 — Form. Implemented at last; the system documented Input / Label / Button
 * and shipped none, which is why every migrated page with a form became a link.
 *
 * The markup is WPForms' (see armada_ds_form_shortcode). It already emits what
 * §4.3 asks for: a persistent `<label>` per field, `required`, real input types,
 * and an error that names the field. Rebuilding that would be a second
 * implementation of a working thing, and the plugin owns submission and spam.
 *
 * The skin is written as the plugin's OWN custom properties, not as competing
 * selectors. Its stylesheet loads after the theme's and paints the button from
 * `#wpforms-<id>`, so selector rules lose on load order and specificity both --
 * measured: the submit button stayed rgb(6, 106, 171) through two attempts at
 * outranking it. Setting its variables is the supported mechanism and it wins
 * because the variables are read where the plugin applies them.
 *
 * Every value below is a design-system token. Nothing here invents a color.
 */
.armada-ds .ds-form {
    --wpforms-field-border-color: var(--input);
    --wpforms-field-background-color: transparent;
    --wpforms-field-text-color: var(--foreground);
    --wpforms-field-border-radius: var(--radius);
    --wpforms-field-border-size: 1px;

    --wpforms-label-color: var(--muted-foreground);
    --wpforms-label-sublabel-color: var(--muted-foreground);
    --wpforms-label-error-color: var(--flag-foreground);

    --wpforms-button-background-color: var(--signal);
    --wpforms-button-text-color: var(--signal-foreground);
    --wpforms-button-background-color-alt: var(--accent-ink);
    --wpforms-button-text-color-alt: var(--background);
    --wpforms-button-border-radius: var(--radius);
    --wpforms-button-border-size: 0;

    --wpforms-container-padding: 0;
    --wpforms-container-border-width: 0;
}

.armada-ds .ds-form .wpforms-container { margin: 0; }
/* Dialog forms (quote, site visit, event, fire watch, vacant, patrol) ran long with the label above every field. From 520px each field is
   one row of two columns: the label on the left, the input on the right (owner 2026-10-15). A check box without a label (the Terms line)
   takes the whole row. */
@media (min-width: 520px) {
    /* One size for every dialog, whatever the form: it no longer stretches to its content (owner 2026-10-15). Taller than the longest form
       (patrol, 695px); on a short screen the card scrolls inside itself. */
    .armada-ds .av-card, .armada-ds .aq-card { width: 680px; max-width: 100%; height: 720px; max-height: calc(100vh - 3rem); overflow-y: auto; }
    .armada-ds :is(.av-card, .aq-card) .wpforms-field-container { display: grid; row-gap: 0.75rem; }
    .armada-ds :is(.av-card, .aq-card) .wpforms-field-container > .wpforms-field {
        display: grid;
        grid-template-columns: 12.5rem 1fr;
        column-gap: 1rem;
        align-items: start;
        margin: 0;
        padding: 0;
    }
    .armada-ds :is(.av-card, .aq-card) .wpforms-field > .wpforms-field-label { grid-column: 1; grid-row: 1; margin: 0; padding-top: 0.6rem; }
    .armada-ds :is(.av-card, .aq-card) .wpforms-field > :not(.wpforms-field-label) { grid-column: 2; }
    .armada-ds :is(.av-card, .aq-card) .wpforms-field-checkbox:not(:has(> .wpforms-field-label:not(.wpforms-label-hide))) > ul { grid-column: 1 / -1; }
    .armada-ds :is(.av-card, .aq-card) textarea { min-height: 5rem; }
    /* Radio and check box groups are fieldsets: the legend is the label on the left, the options sit on the right. */
    .armada-ds :is(.av-card, .aq-card) .wpforms-field > fieldset { grid-column: 1 / -1 !important; display: flow-root; margin: 0; padding: 0; border: 0; min-width: 0; }
    .armada-ds :is(.av-card, .aq-card) .wpforms-field > fieldset > legend { float: left; width: 12.5rem; margin: 0; padding: 0.6rem 0 0; }
    .armada-ds :is(.av-card, .aq-card) .wpforms-field > fieldset > ul { margin: 0 0 0 13.5rem; }
    .armada-ds :is(.av-card, .aq-card) .wpforms-field > fieldset:not(:has(> legend:not(.wpforms-label-hide))) > ul { margin-left: 0; }
    .armada-ds :is(.av-card, .aq-card) .wpforms-field-label, .armada-ds :is(.av-card, .aq-card) legend { hyphens: manual; overflow-wrap: normal; }
}
/* Inputs fill the column they are given (the plugin sizes them to its own 60% / 25% widths). */
.armada-ds :is(.av-card, .aq-card) .wpforms-field :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea) { width: 100%; max-width: 100%; }
/* The plugin's button variables, as the FAQ form has them: amber with navy text, switched off until the form is complete. */
.armada-ds :is(.av-card, .aq-card) {
    --wpforms-button-background-color: var(--signal);
    --wpforms-button-text-color: var(--signal-foreground);
    --wpforms-button-border-radius: var(--radius);
    --wpforms-button-border-size: 0;
}

/* A form that is not complete yet: the submit button is switched off and reads as such (owner 2026-10-15). Tokens only. */
.armada-ds form.wpforms-form .wpforms-submit:disabled,
.armada-ds form.wpforms-form .wpforms-submit[aria-disabled="true"] {
    background: var(--surface) !important;
    color: var(--muted-foreground) !important;
    border: 1px solid var(--rule) !important;
    cursor: not-allowed;
    opacity: 1 !important;
}
/* The dialog card carries .chapter-light, so the disabled button takes the same tokens as every other form (no literal colors; owner 2026-10-16). */
/* A link inside a form ("I accept the Terms") keeps the text color of its ground, it was black on the navy FAQ (owner 2026-10-14). */
.armada-ds .ds-form .wpforms-container .wpforms-form .wpforms-field a,
.armada-ds .ds-form a { color: inherit; text-decoration: underline; }
.armada-ds .ds-form .wpforms-field { padding: 0; }
/* One field to the next takes the §2.3 step, like any other stacked block. */
.armada-ds .ds-form .wpforms-field + .wpforms-field,
.armada-ds .ds-form .wpforms-submit-container { margin-block-start: 1.25rem; }
/* A full-width field that follows a two-column row carries the plugin's .wpforms-first (clear: both). Clearing swallows a margin, so the
   step to that field is padding (measured on the Career form: 0px between the Phone/Email row and Home Address, 20px everywhere else). */
.armada-ds .ds-form .wpforms-field + .wpforms-field.wpforms-first:not(:is([class*="wpforms-one-"], [class*="wpforms-two-"], [class*="wpforms-three-"], [class*="wpforms-four-"], [class*="wpforms-five-"])) { margin-block-start: 0; padding-block-start: 1.25rem; }
/* Under 520px two columns would be 156px wide and cut the hints (measured at 375: the email and ZIP hints); every field takes its own row. */
@media (max-width: 519px) {
    .armada-ds .ds-form .wpforms-container .wpforms-field:is([class*="wpforms-one-"], [class*="wpforms-two-"], [class*="wpforms-three-"], [class*="wpforms-four-"], [class*="wpforms-five-"]) { float: none; width: 100%; margin-inline-start: 0; }
}
.armada-ds .ds-form .wpforms-field-label { margin-block-end: 0.5rem; }

/* The label is the system's label-meta, so it reads as one with every other. */
.armada-ds .ds-form .wpforms-field-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.armada-ds .ds-form .wpforms-required-label { color: var(--accent-ink); }

/*
 * The plugin sizes inputs to its own "medium" -- 280px -- which is a decision
 * about its own layouts, not ours. A field fills the column it is given.
 * (Its two honeypot fields need no rule: they already sit in 1px containers,
 * one of them positioned out of flow, and take no space in the column.)
 */
.armada-ds .ds-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea, select) {
    width: 100%;
    max-width: 100%;
}
.armada-ds .ds-form textarea { min-height: 7rem; resize: vertical; }

.armada-ds .ds-form :is(input, textarea, select):focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 2px;
}

/* A row of actions. One rule for the hero pair and the page-foot pair. */
.armada-ds .actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
/* The note under the buttons takes the whole row under them (owner 2026-10-13: it was cut to 16rem and
   wrapped to two lines for no reason). */
.armada-ds .actions > .small { flex: 1 0 100%; max-width: none; }
/* Hero: the free / no-obligation note stands to the RIGHT of the main button on the same row (owner 2026-10-20, all heroes).
   12rem is the narrowest it may get; when the column has less room beside the button it drops under it, as before. */
.armada-ds .ds-hero .actions > .small { flex: 1 1 12rem; }
/* The hero call line ("Call (415) 647-8500") is a caption under the button, not a third button (owner 2026-10-14; markup moved to .ds-hero-urgent 2026-10-19). */
.armada-ds .actions > .ds-hero-urgent { flex: 1 0 100%; }

/* ── Action — §4.1. Three variants, no more. ───────────────────────────── */

.armada-ds .action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;             /* §8: interactive targets at least 44px */
    padding: 0.75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 140ms, color 140ms, border-color 140ms;
}

.armada-ds .action--signal {
    background-color: var(--signal);
    color: var(--signal-foreground);
}
/* Both amber variants invert on hover; one rule, not one per variant. */
.armada-ds .action--signal:hover,
.armada-ds .action--phone:hover { background-color: var(--foreground); color: var(--background); }

.armada-ds .action--quiet {
    background-color: transparent;
    color: var(--foreground);
    border-color: var(--input);
}
/* One hover ground for the two elements that take one. */
.armada-ds :is(.action--quiet, .next-step):is(:hover, :focus-visible) { background-color: var(--surface); }

.armada-ds .action--phone {
    background-color: var(--signal);
    color: var(--signal-foreground);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.armada-ds .action--lg { min-height: 56px; padding: 1rem 1.5rem; font-size: 1rem; }

/* ── TextLink — §4.2 ───────────────────────────────────────────────────── */

/*
 * A link inside a checklist item, a kv value or a blockquote is body prose and
 * takes this treatment, exactly as §2.2 already says a checklist item takes the
 * body line-length cap. Scoping it to `.section p a` left links in `checklist li`
 * and in the hero painted the browser's default blue on a navy ground.
 */
/* A navigable row (.ds-row) and a next step (.next-step) are links that wear their own label, arrow and hover; they are not prose links. */
.armada-ds .textlink,
.armada-ds .section :is(p, li, dd, blockquote) a:not(.action, .ds-row, .next-step),
.armada-ds .ds-hero-inner :is(p, li) a:not(.action, .ds-hero-phone) {   /* .ds-hero-phone keeps its own color and no underline (:1716); excluded 2026-10-19 */
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--accent-ink);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
.armada-ds .textlink:hover,
.armada-ds .section :is(p, li, dd, blockquote) a:not(.action, .ds-row, .next-step):hover,
.armada-ds .ds-hero-inner :is(p, li) a:not(.action):hover {
    text-decoration-color: var(--foreground);
}

/* ── Content primitives — §4.5 ─────────────────────────────────────────── */

/*
 * Answer and Definition. The port had these the wrong way round: Answer wore
 * Definition's signal left rule on top of its own surface ground, and
 * Definition was fenced by horizontal rules it does not have. Concept:
 * primitives.tsx :119 and :127.
 */
.armada-ds .answer {
    background-color: var(--surface);
    color: var(--surface-foreground);
}
/* One block padding step, for every flat block that holds prose. */
.armada-ds :is(.answer, .rule-cell) { padding: 1.5rem; }
@media (min-width: 640px) { .armada-ds :is(.answer, .rule-cell) { padding: 2rem; } }

/* A photograph carried by the block it is evidence for (§5). An `img` dropped
   into a flat block is inline by default, so it sits on the text baseline and
   leaves a descender gap under itself; and without a width it renders at its
   intrinsic pixel size, which is a different size in every cell. Both belong to
   the block, not to a wrapper class. */
/* §5 — `ds-figure` is the same documentary frame standing BESIDE the prose it
   illustrates instead of inside a block. The migration had no such block, so
   every in-body photograph was wrapped in `.answer` and became a full-width
   band: measured on /industrial-security/energy-facilities/, a 1200x1200
   source rendered 1152x864. Only the block is new; the photograph rule below
   is the one that already existed, and this class joins it by name. */
.armada-ds :is(.answer, .rule-cell, .ds-figure) > img {
    display: block;
    width: 100%;
    /* The box is reserved before the file arrives. `height: auto` alone gives a
       lazy-loaded image zero height until it loads and then jumps the whole
       grid down by its own height -- measured on /security-guard-services/,
       three cells at 341x0 before load. One ratio, stated once: 4:3 is the
       documentary frame the material is shot in, and `cover` means a source of
       any other shape is cropped rather than allowed to set its own height. */
    aspect-ratio: 4 / 3;
    object-fit: cover;
    /* A square portrait cropped to 4:3 from its center loses a quarter of its
       height off the top and the bottom, and on a head-and-shoulders shot the
       top is the head: measured on /company/about-us/, three 1200x1200 portraits
       rendered 341x255 with the faces cut at the brow. Holding the crop above
       center keeps a face in frame and costs a landscape photograph nothing --
       its subject is not in the bottom quarter either. */
    object-position: 50% 30%;
}

/* The same frame running the full width of the hero instead of standing beside
   a column. At 4:3 a 1280px-wide figure is 960px tall -- it would push the first
   heading below the fold on its own. A hero photograph is a band, so it states
   its own ratio; 3:2 on a phone, where the same band at 21:9 is a 170px strip
   with nothing legible in it. */
.armada-ds .ds-figure--hero { margin-block-start: 2.5rem; }
.armada-ds .ds-figure--hero > img { aspect-ratio: 3 / 2; }
@media (min-width: 640px) {
    .armada-ds .ds-figure--hero > img { aspect-ratio: 21 / 9; }
}

.armada-ds .definition {
    border-left: 2px solid var(--signal);
    padding-left: 1.25rem;
    font-weight: 500;
}

/*
 * KeyValueList. The term is a heading for its value, not a data label, so it
 * carries the display face (see .display-4 above, which shares the rule).
 * The two-column split is a container query, not a media query: the same list
 * is used full width, inside a half-width column and inside the mobile table
 * stack, and it is its own width that decides, not the viewport's.
 */
.armada-ds .kv {
    display: grid;
    gap: 0;
    container-type: inline-size;
}
.armada-ds .kv > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding-block: 1.25rem;
}
.armada-ds .kv dd {
    margin: 0;
    font-size: 0.975rem;
    line-height: 1.6;
    color: var(--muted-foreground);
}

@container (min-width: 42rem) {
    .armada-ds .kv > div { grid-template-columns: minmax(11rem, 15rem) 1fr; gap: 2rem; }
}

/* A data term is a fixed narrow column, because a timestamp has one width. */
@container (min-width: 26rem) {
    .armada-ds .kv--data > div { grid-template-columns: 6.5rem 1fr; gap: 1.25rem; }
}

/*
 * `kv--data`: the one modifier. Its term is data — a time, a license number, a
 * checkpoint ID — so it takes the mono face per §2.2. This is the operational
 * record, which was seven classes of its own (ds-rec, ds-rec-row, ds-rec-time,
 * ds-rec-what, ds-rec-detail, ds-rec-gps, ds-rec-body).
 */
.armada-ds .kv.kv--data dt {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--accent-ink);
    font-variant-numeric: tabular-nums;
}

/*
 * `kv--figure`: a published headline figure. `2x`, `80%`, `24/7` are claims the
 * site makes in its own voice, not entries in an operational log, and they were
 * ported onto `kv--data` -- measured on /industrial-security/energy-facilities/,
 * `2x` rendered at 14px in the mono face, the same size as its own caption, one
 * per row.
 *
 * Second pass, 2026-09-18, on the owner's verdict on the home page: four claims
 * set at a fixed 1.75rem came out the size of a sub-heading and ran together as
 * a caption strip, with their sources stacked underneath as three gray blocks.
 * The figure now takes the Display 1 step at every breakpoint (joined to that
 * selector above, not restated), and each figure sits in its own framed cell so
 * the four are counted rather than scanned. The frame is the rule-grid
 * mechanism, joined by name, not a second copy of it. A figure's source belongs
 * inside its own cell: a source detached from its number is fine print.
 */
.armada-ds .kv--figure {
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    border-top: 0;
}
.armada-ds .kv--figure > div {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 2rem 1.5rem;
    align-content: start;
}
.armada-ds .kv--figure dt {
    color: var(--accent-ink);
    font-variant-numeric: tabular-nums;
}
.armada-ds .kv--figure dd { align-self: end; }

/*
 * Four figures in a 70% column are not a band of four -- at 851px each cell is
 * 210px and the number wraps against its own label. Two and two: the pair is
 * the widest arrangement that keeps `14,354` and `93 min` on one line each.
 */
.armada-ds .kv--pairs { grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .armada-ds .kv--pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Every list in the system drops its browser furniture the same way. */
.armada-ds :is(.checklist, .ds-menu-list, .ds-foot-list, .ds-foot-fine-links, .ds-area-list, .ds-rows, .next-steps) {
    list-style: none;
    margin: 0;
    padding: 0;
}
.armada-ds .checklist li {
    position: relative;
    padding-left: 1.75rem;
    padding-block: 0.5rem;
}
/*
 * A tick, not a dash. The ported pages carry an en dash inside the item text
 * ("No Missed Shifts - Guaranteed Coverage"), and a 1rem rule set beside it read
 * as two horizontal strokes in a row -- the marker was being mistaken for a long
 * dash in the copy. The tick is also what the source pages used, as a literal
 * glyph in the text; moving it into the marker takes it out of the copy.
 *
 * accent-ink, not signal. The two are the same amber on a dark ground, but a
 * light chapter remaps accent-ink to canvas-accent-ink and does not remap
 * signal, which paints the stamped primary action. Painted with signal this
 * marker measured 1.75:1 on the cream ground, below the 3:1 a non-text graphic
 * needs; accent-ink measures 5.9:1 in light and is unchanged at 8:1 on dark.
 */
.armada-ds .checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0.5rem;       /* aligns the glyph's baseline with the first line box */
    width: 1rem;
    line-height: 1.6;  /* body line height, so the tick sits on the text baseline */
    color: var(--accent-ink);
}
.armada-ds .checklist--warn li::before { color: var(--flag-foreground); }

/*
 * Rating -- the star row on a client quote. The source pages carry five filled
 * stars per review; they were dropped in the first migration round on the false
 * reading that no rating had been given, and are restored here.
 *
 * Size and color are NOT set here: §2.2 keeps them separate utilities, so the
 * markup composes `accent small rating`. This class carries only what neither of
 * those provides -- the tracking that stops five glyphs reading as one blob, and
 * a line height that keeps the row from adding leading inside the attribution.
 *
 * The glyphs are decorative once the row carries its own aria-label, so the
 * element must be labelled and the stars hidden from assistive technology.
 */
.armada-ds .rating {
    letter-spacing: 0.15em;
    line-height: 1;
    margin-block-start: 0.25rem;
}

/*
 * NextSteps / NextStep — §4.5, concept primitives.tsx :204-240. Contextual
 * onward navigation. Ported at last; ds-path-links and ds-problem-related
 * were a hand-rolled copy of it on eleven pages.
 */
.armada-ds .next-step {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    min-height: 44px;
    padding-block: 1rem;
    color: inherit;
    text-decoration: none;
    transition: background-color 140ms;
}
.armada-ds .next-step-body { min-width: 0; }
.armada-ds .next-step-detail { display: block; margin-top: 0.25rem; }

/*
 * Specimen notice. Two identical declaration blocks — ds-spec-note and
 * ds-illustrative — under two names. The flag tokens are reserved for material
 * that is not a client record, which is exactly what this says.
 */
.armada-ds .specimen-note {
    border-left: 3px solid var(--flag-foreground);
    background: var(--flag);
    color: var(--flag-foreground);
    padding: 1rem 1.25rem;
    max-width: 46rem;
}
.armada-ds .specimen-note > * { color: inherit; }
.armada-ds .specimen-note > * + * { margin-block-start: 0.5rem; }

/* One rule-drawn grid. The 1px gap over a rule-coloured ground is what draws
   the lines, so a short last row used to expose that ground as a solid slab --
   visible on /ds-home (5 cards, 2 columns) and /coverage (5 models, 768-1279px).
   The last cell absorbs the remainder instead, which holds for any column count. */
.armada-ds :is(.rule-grid, .kv--figure) {
    display: grid;
    gap: 1px;
    background: var(--rule);
    border-block: 1px solid var(--rule);
    /* A set of peers is sometimes genuinely ordered -- the three steps of an
       engagement, in order -- and then the grid IS the list and is written as
       an `ol`. It drops the marker and the 40px indent the browser gives one;
       the numbering stays in the blocks' own headings, where the reader reads
       it, rather than becoming a second count in the gutter. These two live
       here rather than in the shared list-furniture rule above, because that
       rule also zeroes margin and would take the section rhythm off every
       rule-grid on the site. */
    list-style: none;
    padding-inline-start: 0;
}
.armada-ds :is(.rule-cell, .kv--figure > div) { background: var(--background); }
/* One card sharing a row with a photo has no peers to frame: the grid's top and bottom rules doubled the rule of the row above
   and the section edge (owner 2026-10-14). */
.armada-ds .rule-grid:has(> .rule-cell:only-child) { border-block: 0; }
/*
 * The quiet link at the foot of a card is the card's foot, not the next line of
 * its paragraph. Written in flow it sits straight under the text, so three cards
 * of one row carrying 7, 7 and 6 lines put their links on three different lines:
 * measured on /security-guard-services/ at 1440px, button tops 1747, 1747 and
 * 1722 inside cells that were all 345px tall. The grid already makes the cells of
 * a row the same height, so the foot only has to be sent to the bottom of its own
 * cell (owner rule armada-block-elements-optional-groups-uniform: the cards of one
 * group in one section share one format).
 *
 * The 1rem the stack rhythm puts above the link is moved onto the element before
 * it, so the TALLEST card in the row -- the one with no free space left to absorb,
 * where `margin-block-start: auto` resolves to zero -- keeps the same gap as the
 * others instead of having its link touch the paragraph.
 *
 * From 768px up only: stacked on a phone each card is its own row and there is no
 * line to share.
 */
@media (min-width: 768px) {
    .armada-ds .rule-grid > .rule-cell:has(> p:last-child > .action:only-child) { display: flex; flex-direction: column; }
    .armada-ds .rule-grid > .rule-cell > p:last-child:has(> .action:only-child) { margin-block-start: auto; }
    .armada-ds .rule-grid > .rule-cell:has(> p:last-child > .action:only-child) > *:nth-last-child(2) { margin-block-end: 1rem; }
}
/*
 * A short last row would expose the rule-coloured ground as a slab instead of a
 * line, so the last cell absorbs the remainder of its row (§4.6). `auto / -1`
 * does not do that: an auto start with a definite end still spans one track, so
 * the cell lands in the LAST column and the gap opens on the left — visible on
 * /ds-home as an empty blue block beside the fifth resource card. The span has
 * to be stated, and it depends on how many cells the last row is short by, so
 * each column count resets the wider rule and states its own.
 */
@media (min-width: 768px) {
    .armada-ds .rule-grid { grid-template-columns: repeat(2, 1fr); }
    .armada-ds .rule-grid > .rule-cell:last-child:nth-child(2n + 1) { grid-column: 1 / -1; }

    .armada-ds .rule-grid--3 { grid-template-columns: repeat(3, 1fr); }
    /* `:nth-child(n)` only matches the wider rule's specificity, so this reset
       actually lands before the count-specific spans below. */
    .armada-ds .rule-grid--3 > .rule-cell:last-child:nth-child(n) { grid-column: auto; }
    .armada-ds .rule-grid--3 > .rule-cell:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
    .armada-ds .rule-grid--3 > .rule-cell:last-child:nth-child(3n + 2) { grid-column: span 2; }

    .armada-ds .rule-grid--4 { grid-template-columns: repeat(4, 1fr); }
    /* `:nth-child(n)` only matches the wider rule's specificity, so this reset
       actually lands before the count-specific spans below. */
    .armada-ds .rule-grid--4 > .rule-cell:last-child:nth-child(n) { grid-column: auto; }
    .armada-ds .rule-grid--4 > .rule-cell:last-child:nth-child(4n + 1) { grid-column: 1 / -1; }
    .armada-ds .rule-grid--4 > .rule-cell:last-child:nth-child(4n + 2) { grid-column: span 3; }
    .armada-ds .rule-grid--4 > .rule-cell:last-child:nth-child(4n + 3) { grid-column: span 2; }

    /*
     * The column count follows the count of things, not the other way round.
     * Four peers in three columns put the fourth alone across the whole page --
     * measured on 17 pages, and it reads as a mistake because it is one. Four
     * is two rows of two; eight is two rows of four; nine stays three. The
     * stretch rules above then only ever handle a count that genuinely does not
     * divide (5, 7), which is a content question, not a layout one.
     *
     * Each of these has to undo the stretch as well: at four cells the last
     * child is still `3n + 1` and would go full width inside the new two-column
     * grid. The reset is written long enough to outweigh the rule it undoes.
     */
    .armada-ds .rule-grid--3:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
    .armada-ds .rule-grid--3:has(> :nth-child(4):last-child) > .rule-cell:last-child:nth-child(n) { grid-column: auto; }

    /*
     * Five and seven do not divide, so the row is built out of a finer track
     * grid instead: twelve tracks, five cells as 2+2+2 over 3+3, seven as
     * 3+3+3+3 over 4+4+4. Both rows then run the full width with cells of one
     * size in each -- which is what a short last row should look like, rather
     * than one cell stretched across the page where three stood.
     */
    .armada-ds .rule-grid--3:has(> :nth-child(5):last-child),
    .armada-ds .rule-grid--3:has(> :nth-child(7):last-child) { grid-template-columns: repeat(12, 1fr); }
    .armada-ds .rule-grid--3:has(> :nth-child(5):last-child) > :nth-child(n) { grid-column: span 4; }
    .armada-ds .rule-grid--3:has(> :nth-child(5):last-child) > :nth-child(n + 4) { grid-column: span 6; }
    .armada-ds .rule-grid--3:has(> :nth-child(7):last-child) > :nth-child(n) { grid-column: span 3; }
    .armada-ds .rule-grid--3:has(> :nth-child(7):last-child) > :nth-child(n + 5) { grid-column: span 4; }
}
/* Eight cells are two rows of four, but only from 1024px: at 768-1023px four columns are 192px wide, the
   cells cannot shrink that far and the page scrolled sideways (measured 2026-10-14: 149px at 768, 17px at 900).
   Below 1024px the general three-column rule above applies (3 + 3 + 2). */
@media (min-width: 1024px) {
    .armada-ds .rule-grid--3:has(> :nth-child(8):last-child) { grid-template-columns: repeat(4, 1fr); }
    .armada-ds .rule-grid--3:has(> :nth-child(8):last-child) > .rule-cell:last-child:nth-child(n) { grid-column: auto; }
}
/* The same limit for a grid that asks for four columns (`cols: 4`): at 768-1023px a cell is 160-240px wide, the text
   inside 100-175px, and a quiet link wraps to three lines (measured 2026-10-19 on the services cards of
   /mobile-security-patrol-services/; 14 more pages use four columns: Home, /company/, the 11 city pages and
   /patrol-report-specimen/). Below 1024px it is two columns, as the
   general rule above has it; four columns from 1024px. */
@media (min-width: 768px) and (max-width: 1023px) {
    .armada-ds .rule-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .armada-ds .rule-grid--4 > .rule-cell:last-child:nth-child(n) { grid-column: auto; }
    .armada-ds .rule-grid--4 > .rule-cell:last-child:nth-child(2n + 1) { grid-column: 1 / -1; }
}
/* Six cells at 768-1023px: three columns leave a cell 178px wide and the text in it 110px (a heading with an icon beside
   it broke into five lines, measured 2026-10-20 on /mobile-security-patrol-services/; six more pages have such a grid).
   Three rows of two there; two rows of three from 1024px. */
@media (min-width: 768px) and (max-width: 1023px) {
    .armada-ds .rule-grid--3:has(> :nth-child(6):last-child) { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
    .armada-ds .rule-grid--5 { grid-template-columns: repeat(5, 1fr); }
    /* `:nth-child(n)` only matches the wider rule's specificity, so this reset
       actually lands before the count-specific spans below. */
    .armada-ds .rule-grid--5 > .rule-cell:last-child:nth-child(n) { grid-column: auto; }
    .armada-ds .rule-grid--5 > .rule-cell:last-child:nth-child(5n + 1) { grid-column: 1 / -1; }
    .armada-ds .rule-grid--5 > .rule-cell:last-child:nth-child(5n + 2) { grid-column: span 4; }
    .armada-ds .rule-grid--5 > .rule-cell:last-child:nth-child(5n + 3) { grid-column: span 3; }
    .armada-ds .rule-grid--5 > .rule-cell:last-child:nth-child(5n + 4) { grid-column: span 2; }
}
.armada-ds .rule-grid--flow { grid-auto-rows: min-content; }

/* ── Attribution — §5 ─────────────────────────────────────────────────── */

/*
 * A quoted person's photograph beside the credit line that names them. The
 * photograph is the evidence §5 asks for: it sits with the quote it backs,
 * not in a strip of faces detached from the words. Fixed size because these
 * are portraits at one scale, not documentary frames -- stretching a 120px
 * portrait to the cell width is what the `rule-cell > img` rule above is for,
 * and it is the wrong treatment for a face.
 *
 * The credit text keeps `small muted`; size and color are separate utilities
 * (§2.2) and this block sets neither.
 */
.armada-ds .attribution { display: flex; align-items: center; gap: 1rem; }
.armada-ds .attribution > img {
    display: block;
    flex: none;
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
}
/* The credit is the person's name and, under it, what they do -- two elements,
   as the source material has them, not one string joined by a punctuation mark
   somebody chose. The name takes Display 4 (a term heading its own value, §2.2)
   and the role line `small muted`; this rule supplies only the gap between them,
   at the grid unit. */
.armada-ds .attribution figcaption > * + * { margin-block-start: 0.25rem; }

/* ── Tables — §4.4 ─────────────────────────────────────────────────────── */

.armada-ds .table-wrap { overflow-x: auto; container-type: inline-size; }

/*
 * §36 of audits/RECURRING-DEFECTS.md: the caption was cut off at 375.
 *
 * `<caption>` is a child of the table, so its line box is as wide as the TABLE (480px at 375,
 * because of the `min-width: 30rem` floor below), not as wide as the part of the table the reader
 * can see (335px inside `.table-wrap`). Measured 2026-11-13 on 9590 and 9589 and again
 * 2026-11-14 before this rule: wrap clientWidth 335, scrollWidth 480, caption width 480, its
 * right edge at x=500 -- the last ~165px of the sentence sat off-screen until the reader
 * scrolled the table sideways, and no gate saw it because `body.scrollWidth` stayed at 375.
 *
 * The caption is not moved out of the table: it stays the table's own caption for a screen
 * reader. It is given the width of the SCROLL CONTAINER instead of the width of the table
 * (`100cqi` against the `.table-wrap` container above) and pinned to its left edge, so the
 * sentence wraps inside the visible area and stays put while the table scrolls under it.
 * Measured after: caption width 335, right edge 355, wrapping inside the visible area.
 */
.armada-ds .table-wrap > table > caption {
    position: sticky;
    left: 0;
    width: 100cqi;
    box-sizing: border-box;
}

/*
 * Columns being compared are the same width as each other. Left on `auto` the
 * browser sizes each column by its own longest string, so on the Financial
 * District page `Still open, no arrest` came out 327px beside a `Reported` of
 * 192px -- two columns of the same kind, two different widths, for no reason a
 * reader can see. `fixed` also stops a late row widening a column the eye has
 * already learned.
 *
 * The label column takes a third only where there is more than one column
 * beside it; a two-column table splits evenly, which is right for a list of
 * intersections against a count.
 */
.armada-ds table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 1.0625rem;
    line-height: 1.6;
}
.armada-ds table:has(thead th:nth-child(3)) :is(th, td):first-child { width: 36%; }
/* On a phone a fixed layout obeys the 100% and squeezes instead of overflowing:
   measured at 375px, a four-column table came out 115 + 68 + 68 + 68, and
   `56% 10pm-6am` has no chance in 68px. A floor turns that back into a scroll
   inside `.table-wrap`, which is the wrapper's whole job, and the page itself
   still does not move sideways. */
@media (max-width: 639px) {
    .armada-ds .table-wrap table { min-width: 30rem; }
}
.armada-ds table caption {
    caption-side: top;
    text-align: left;
    /* The caption lines up with the first column's text, not with the table's
       outer edge, so it reads as part of the table rather than beside it. */
    padding: 0 1.25rem 0.75rem;
}
/*
 * 1.75rem of vertical padding gave an 85px row to hold one short line, and a
 * five-row table then ran taller than the argument it was evidence for. A table
 * is a dense object by nature: the reader is comparing values down a column,
 * and distance between them is what makes that hard. On a phone the same
 * padding plus 17px type left `56% 10pm-6am` no room at all.
 */
.armada-ds table th,
.armada-ds table td {
    text-align: left;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--rule);
    vertical-align: top;
}
@media (max-width: 639px) {
    .armada-ds table { font-size: 0.875rem; }      /* the §2.2 Small step */
    .armada-ds table th,
    .armada-ds table td { padding: 0.75rem 0.875rem; }
}
/* Only the first heading is a label. The rest are the things being compared,
   so they carry the display face at reading size (concept: coverage-preview.tsx
   :85-92). Setting every thead cell in 11px mono gray made three real options
   look like a column caption, which is what made the table read as a dump. */
.armada-ds table thead th {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
    border-top: 0;
    border-bottom: 2px solid var(--foreground);
}
.armada-ds table thead th:first-child {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}
/* A row header that is itself data — a time, a checkpoint ID — takes the mono
   face, keyed on the `tabular` utility the markup already carries. */
.armada-ds table th[scope="row"].tabular {
    font-family: var(--font-mono);
    font-weight: 400;
    color: var(--accent-ink);
    white-space: nowrap;
}
/*
 * Vertical rules and a faint ground are what turn rows into columns. The ground
 * belongs to the whole table, not to the compared columns alone: keyed on
 * `nth-child(n + 2)` it left the label column transparent, so a table read as a
 * block that began in its own middle, with the 2px head rule running on across
 * a header cell that had no ground under it. Measured on the Financial District
 * page before the change -- label column 299px with no ground beside a 519px
 * block that had one.
 *
 * The rules still start at the second column, because the first boundary a
 * reader needs is between the label and the first thing compared, and a rule
 * down the outer edge of a table is a border, not a column separator.
 */
.armada-ds table :is(th, td) { background-color: var(--surface-wash); }
.armada-ds table :is(th, td):nth-child(n + 2) { border-left: 1px solid var(--rule); }
/* A fixed first column stops the compared columns coming out ragged. */
.armada-ds .table-crosshair { table-layout: fixed; }
.armada-ds .table-crosshair thead th:first-child { width: 12rem; }

/* The dimension column carries a second line explaining what the row measures.
   It sits inside a display-face th, so it resets the face as well as the size. */
.armada-ds .ds-dim-why {
    display: block;
    margin-top: 0.25rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--muted-foreground);
}

/*
 * Crosshair hover: a row wash tracks the row, the same wash tracks the column,
 * and the exact cell goes solid amber. The first column is a row label, not a
 * comparison value, so it only gets a marker.
 */
.armada-ds .table-crosshair :is(thead, tbody) :is(th, td) {
    position: relative;
    transition: background-color 140ms, color 140ms, box-shadow 140ms;
}

/* Ported verbatim from the concept (src/styles.css table-crosshair). The
   !important markers are load-bearing: the column selectors carry a :has()
   argument, so they outrank the exact-cell rule on specificity alone and
   would otherwise swallow it. Dropping them in the first port is what left
   the hovered cell washed instead of solid, at 1.45:1 against its own text. */
@media (hover: hover) {
    .armada-ds .table-crosshair:has(tbody :is(th, td):hover) tbody tr:hover > :is(th, td):nth-child(n + 2) {
        background-color: var(--signal-wash) !important;
        color: var(--foreground);
    }
    /* The row label washes with its own row. It used to get only a marker, on
       the reasoning that a label is not a comparison value -- but the column
       headers wash with their columns, and a table where one axis lights up and
       the other does not reads as a bug rather than as a distinction. */
    .armada-ds .table-crosshair:has(tbody :is(th, td):hover) tbody tr:hover > :is(th, td):first-child {
        background-color: var(--signal-wash) !important;
        box-shadow: inset 3px 0 0 var(--signal);
        color: var(--foreground);
    }
    /* The column trigger accepts a hover in thead OR tbody. Scoping this :has()
       to tbody alone is what left every column header inert: pointing at the
       header is the most natural way to ask "what is in this column?", and the
       answer was nothing. */
    .armada-ds .table-crosshair:has(:is(thead, tbody) :is(th, td):nth-child(2):hover) :is(thead, tbody) :is(th, td):nth-child(2),
    .armada-ds .table-crosshair:has(:is(thead, tbody) :is(th, td):nth-child(3):hover) :is(thead, tbody) :is(th, td):nth-child(3),
    .armada-ds .table-crosshair:has(:is(thead, tbody) :is(th, td):nth-child(4):hover) :is(thead, tbody) :is(th, td):nth-child(4),
    .armada-ds .table-crosshair:has(:is(thead, tbody) :is(th, td):nth-child(5):hover) :is(thead, tbody) :is(th, td):nth-child(5),
    .armada-ds .table-crosshair:has(:is(thead, tbody) :is(th, td):nth-child(6):hover) :is(thead, tbody) :is(th, td):nth-child(6) {
        background-color: var(--signal-wash) !important;
        color: var(--foreground);
    }
    .armada-ds .table-crosshair:has(:is(thead, tbody) :is(th, td):nth-child(2):hover) thead :is(th, td):nth-child(2),
    .armada-ds .table-crosshair:has(:is(thead, tbody) :is(th, td):nth-child(3):hover) thead :is(th, td):nth-child(3),
    .armada-ds .table-crosshair:has(:is(thead, tbody) :is(th, td):nth-child(4):hover) thead :is(th, td):nth-child(4),
    .armada-ds .table-crosshair:has(:is(thead, tbody) :is(th, td):nth-child(5):hover) thead :is(th, td):nth-child(5),
    .armada-ds .table-crosshair:has(:is(thead, tbody) :is(th, td):nth-child(6):hover) thead :is(th, td):nth-child(6) {
        box-shadow: inset 0 3px 0 var(--signal);
    }
    .armada-ds .table-crosshair:has(tbody :is(th, td):hover) tbody tr:hover > :is(th, td):nth-child(n + 2):hover {
        background-color: var(--signal) !important;
        box-shadow: inset 0 0 0 2px var(--signal);
        color: var(--signal-foreground);
    }
    /* The header under the cursor reads as the one being pointed at — same
       treatment the exact cell gets in the body. !important for the same reason
       as above: the column rule carries a :has() and would otherwise win. */
    .armada-ds .table-crosshair thead :is(th, td):nth-child(n + 2):hover {
        background-color: var(--signal) !important;
        box-shadow: inset 0 3px 0 var(--signal);
        color: var(--signal-foreground);
    }
    /* A row label under the cursor does the same job for its row: the row
       already washes, but the label itself had no state of its own. */
    /* Under the cursor it goes solid, exactly as a column header does. Same
       !important, same reason: the row rule above carries a :has(). */
    .armada-ds .table-crosshair tbody tr > :is(th, td):first-child:hover {
        background-color: var(--signal) !important;
        box-shadow: inset 3px 0 0 var(--signal);
        color: var(--signal-foreground);
    }
    /* The corner cell ("Dimension") has no hover state: it neither lights itself nor the label
       column (owner 2026-10-20). The row labels and the compared columns keep theirs. */
}

/*
 * §4.4 mobile. Below lg the crosshair table is replaced by the same data as a
 * stack: one block per row, the dimension as a heading, its "why" beneath, and
 * the compared columns as a KeyValueList. Ported from the concept
 * (coverage.index.tsx :76 `hidden lg:block`, :108-126 the stack), where the
 * small-screen view is a different structure rather than a scrolled table.
 *
 * What it replaces: `table-layout: fixed` with a 12rem label column left the
 * four compared columns about 36px each at 375px, drawn over one another and
 * unreadable, with `overflow-x: auto` the only affordance and no visible edge.
 *
 * The markup is generated from the table by armada_ds_table_stack() in
 * inc/ds-blocks.php, so the two views cannot drift apart.
 */
.armada-ds .table-wrap:has(+ .table-stack) { display: none; }

/* One column that cannot grow past the container: the implicit auto track took the min-content of the widest row
   (724px inside a 638px frame at 768px) and the page scrolled sideways by 21px on /patrol-report-specimen/. */
.armada-ds .table-stack { display: grid; grid-template-columns: minmax(0, 1fr); }
.armada-ds .table-stack > div { padding-block: 1.5rem; }
/* The table's caption comes across as the stack's first child, so it carries the
   space the <caption> got from the table it was lifted out of. */
.armada-ds .table-stack > p { margin-block: 1.5rem 0.75rem; }
.armada-ds .table-stack > div > * + * { margin-block-start: 0.75rem; }

/*
 * The note is an instruction for the crosshair. The crosshair exists only where
 * the table is shown and the pointer can hover, so on touch the sentence told
 * the reader to do something the device cannot do.
 */
.armada-ds .ds-table-note { display: none; }

@media (min-width: 1024px) {
    .armada-ds .table-wrap:has(+ .table-stack) { display: block; }
    .armada-ds .table-stack { display: none; }
}
@media (min-width: 1024px) and (hover: hover) {
    .armada-ds .ds-table-note { display: block; }
}

/* ── Motion — §8 ───────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .armada-ds *,
    .armada-ds *::before,
    .armada-ds *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── Logo ──────────────────────────────────────────────────────────────── */
.armada-ds .ds-fill-signal     { fill: var(--signal); }
.armada-ds .ds-stroke-signal   { stroke: var(--signal); }
.armada-ds .ds-fill-foreground { fill: var(--foreground); }
.armada-ds .armada-logo        { height: 2.5rem; width: auto; flex-shrink: 0; display: block; }

/* WordPress core emits its own skip link; keep it reachable, keep it invisible. */
.armada-ds .screen-reader-text,
.armada-ds .skip-link.screen-reader-text,
.armada-ds .ds-skip {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.armada-ds .screen-reader-text:focus,
.armada-ds .skip-link.screen-reader-text:focus,
.armada-ds .ds-skip:focus {
    position: fixed;
    top: 0.75rem;
    left: 1rem;
    z-index: 100;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.5rem 0.75rem;
    overflow: visible;
    clip: auto;
    clip-path: none;
    background: var(--signal);
    color: var(--signal-foreground);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

/* ── Header — §4.7, concept src/components/site/header.tsx ─────────────── */

.armada-ds .ds-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--rule);
    background-color: var(--hull);
}

.armada-ds .ds-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 4.5rem;
}

.armada-ds .ds-logo-link { display: flex; align-items: center; flex-shrink: 0; color: var(--foreground); }

.armada-ds .ds-nav { display: none; align-items: center; }
@media (min-width: 1024px) { .armada-ds .ds-nav { display: flex; } }

.armada-ds .ds-nav-item { position: relative; }

.armada-ds .ds-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding-inline: 0.75rem;
    background: none;
    border: 0;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 140ms;
}
.armada-ds .ds-trigger:hover,
.armada-ds .ds-trigger[aria-expanded="true"] { color: var(--foreground); }

.armada-ds .ds-caret {
    width: 0.5rem; height: 0.5rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.armada-ds .ds-nav-sep { width: 1px; height: 1rem; background: var(--rule); }

.armada-ds .ds-panel {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 42rem;
    padding: 1.25rem;
    border: 1px solid var(--rule);
    background: var(--hull);
}
.armada-ds .ds-panel--one { grid-template-columns: 1fr; width: 24rem; }
.armada-ds .ds-panel[hidden] { display: none; }
.armada-ds .ds-panel .ds-menu-col + .ds-menu-col { border-left: 1px solid var(--rule); padding-left: 1.5rem; }
.armada-ds .ds-panel .ds-menu-col:first-child { padding-right: 1.5rem; }

.armada-ds .ds-menu-col > .label-meta { margin-bottom: 0.75rem; }
/* The hover ground needs room around the words it covers. At `padding: 0.5rem 0`
   it ended exactly where the text ended, left and right, so the highlight read
   as a box drawn tight to the letters instead of a row the pointer is on. The
   row keeps its left edge on the column's text by pulling the same amount back
   out as margin, so nothing in the panel moves; only the ground grows. */
.armada-ds .ds-menu-link {
    display: block;
    padding: 0.5rem 0.75rem;
    margin-inline: -0.75rem;
    min-height: 44px;
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: background-color 140ms;
}
.armada-ds .ds-menu-link > * { display: block; max-width: 26rem; }
.armada-ds .ds-menu-link:hover,
.armada-ds .ds-menu-link:focus-visible { background: var(--surface); }
.armada-ds .ds-menu-link:hover .display-4 { color: var(--signal); }

.armada-ds .ds-header-actions { display: flex; align-items: center; gap: 0.75rem; }
/* The header's Get Free Quote shows at every width, mobile included (owner 2026-10-14). */
.armada-ds .ds-header-actions .action--signal { display: inline-flex; white-space: nowrap; }
/* On a phone the label must stay on one line beside the logo and the burger. */
@media (max-width: 639px) {
    .armada-ds .ds-header-actions { gap: 0.5rem; }
    .armada-ds .ds-header-actions .action--signal { padding-inline: 0.75rem; }
    .armada-ds .ds-header-inner { gap: 0.75rem; }
}

.armada-ds .ds-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    width: 44px; height: 44px;
    padding-inline: 0.75rem;
    background: none;
    border: 1px solid var(--rule);
    cursor: pointer;
}
.armada-ds .ds-burger span { display: block; height: 1.5px; background: var(--foreground); }
@media (min-width: 1024px) { .armada-ds .ds-burger { display: none; } }

.armada-ds .ds-mobile-call {
    display: flex;
    width: 100%;
    margin-bottom: 1.5rem;
}
/* From 640px the header shows Get Free Quote and the number lives in the footer and under the hero button,
   so the drawer carries neither action (owner 2026-10-14). Below 640px the drawer holds both. */
@media (min-width: 640px) { .armada-ds .ds-mobile-call { display: none; } }
/* Below 640px the header already carries Get Free Quote, so the drawer keeps only the call. */
.armada-ds .ds-mobile-call .action--signal { display: none; }
.armada-ds .ds-mobile {
    border-top: 1px solid var(--rule);
    background: var(--hull);
    padding-block: 1.5rem;
    max-height: calc(100dvh - var(--ds-header-h));
    overflow-y: auto;
}
.armada-ds .ds-mobile[hidden] { display: none; }
.armada-ds .ds-mobile .ds-menu-col + .ds-menu-col { margin-top: 1.5rem; }

/* ── Footer — §4.7, concept src/components/site/footer.tsx ─────────────── */

.armada-ds .ds-footer {
    background: var(--hull);
    border-top: 1px solid var(--rule);
    padding-block: 3.5rem 2rem;
}

.armada-ds .ds-foot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}
@media (min-width: 640px) { .armada-ds .ds-foot-grid { grid-template-columns: 1fr 1fr; } }
/* Four columns (§4.7). The property-type column holds four groups, so it is
   the wide one — two units of a four-unit row, not a fifth unit bolted on,
   which is what pushed the Company column onto a second row. */
@media (min-width: 1024px) { .armada-ds .ds-foot-grid { grid-template-columns: 1fr 2fr 1fr 1fr; gap: 2rem; } }

.armada-ds .ds-foot-col > * + * { margin-top: 1rem; }
.armada-ds .ds-foot-col > * + h2 { margin-top: 2rem; }
.armada-ds .ds-foot-list li + li { margin-top: 0.5rem; }
/*
 * The footer carries the whole index, so ordinary links are muted and the one
 * amber element in a column is the closing index link. Setting sixty links at
 * full foreground and hovering them to amber made every one of them compete
 * with the step up (concept: footer.tsx :39).
 */
.armada-ds .ds-foot-list a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.4;
    transition: color 140ms;
}
.armada-ds .ds-foot-list a:hover {
    color: var(--foreground);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* §4.7: the index link is the one amber element in a column, and the rule is
   what says "go to the full list" rather than "one more sibling". */
.armada-ds .ds-foot-index {
    display: block;
    margin-top: 1.25rem;
    border-top: 1px solid var(--rule);
    padding-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--signal);
    text-decoration: none;
}
/* One underline-on-hover, for every label that gains one. */
.armada-ds .ds-foot-index:hover,
.armada-ds .ds-row:hover .ds-row-label,
.armada-ds .next-step:hover .next-step-label { text-decoration: underline; text-underline-offset: 4px; }

.armada-ds .ds-foot-nap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-block: 2rem;
}
.armada-ds .ds-foot-nap > div > * + * { margin-top: 0.5rem; }
/* The license number links to the state's own record of it. It sits in muted
   fine print, so it keeps that color and is told apart by the underline alone. */
/* Links in the address block are underlined prose links; the buttons (`.action`) keep their own color and no underline.
   Before 2026-10-14 this rule also reached `Get Free Quote` and turned its navy text cream on the amber ground. */
.armada-ds .ds-foot-nap a:not(.action) { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; white-space: nowrap; }
.armada-ds .ds-foot-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.armada-ds .ds-foot-contact > .small { flex: 1 0 100%; }
/* The two footer buttons share one line box: the quiet one inherited an 8px top margin and sat 4px lower (owner 2026-10-15). */
.armada-ds .ds-foot-contact > :is(.action, .ds-search-toggle) { margin: 0; }
.armada-ds .ds-foot-nap a:not(.action):hover { color: var(--foreground); }
@media (min-width: 768px) {
    .armada-ds .ds-foot-nap { grid-template-columns: 1fr auto; align-items: start; }
    .armada-ds .ds-foot-contact { text-align: right; justify-content: flex-end; }
}

.armada-ds .ds-foot-fine {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
}
.armada-ds .ds-foot-fine-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.armada-ds .ds-foot-fine-links a { color: inherit; text-decoration: none; }
.armada-ds .ds-foot-fine-links a:hover { color: var(--foreground); }

/* Footer groups — the footer carries the whole index, so columns nest. */
.armada-ds .ds-foot-group > * + * { margin-top: 0.75rem; }
.armada-ds .ds-foot-col--wide > .ds-foot-group { break-inside: avoid; }
@media (min-width: 768px) {
    .armada-ds .ds-foot-col--wide { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; align-content: start; }
    .armada-ds .ds-foot-col--wide > * { margin-top: 0; }
    .armada-ds .ds-foot-col--wide > h2 { grid-column: 1 / -1; }
}

/* ── Hero — §4.7 ───────────────────────────────────────────────────────── */

/*
 * WordPress gives every direct child of a flow container a 24px block gap, so a
 * strip of page background sits between the header, the main column and the
 * footer. It was invisible while every design-system page was navy on navy; the
 * first page to sit on the canvas chapter showed it as a navy band above and
 * below the page. The system's chrome meets its content on a 1px rule, never on
 * a gap, so the gap is zeroed here rather than recoloured.
 *
 * The same gap reappears INSIDE a page the moment the page carries more than
 * one chapter: measured on /security-guard-services/, each of the three
 * `chapter-light` blocks opened 24px below the dark section above it, which
 * draws a navy band across the top of every canvas chapter. `.section` was
 * already zeroed for this reason; the hero and the chapter are the other two
 * blocks a page puts at that level, so they are zeroed here with the chrome.
 */
.armada-ds :is(.ds-header, .ds-main, .ds-footer, .ds-hero, .chapter-light) { margin-block: 0; }

.armada-ds .ds-main { display: block; }

.armada-ds .ds-hero { display: flex; flex-direction: column; }
/* Stacked on a phone the photograph opens the hero, above the headline. It sits
   after the text in the markup because on a wide screen it is the right half, and
   the stack used to keep that order: a screen of menu, then a wall of text and a
   button, then a picture nobody had asked for yet. The rule that stands over a
   headline for ordinary sections (heading before its photograph) is about a photo
   that illustrates a passage; the hero photograph is the page's portrait. */
.armada-ds .ds-hero-figure { order: -1; }
@media (min-width: 1024px) {
    .armada-ds .ds-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
    .armada-ds .ds-hero-figure { order: 0; }
    /*
     * A hero with no figure is one column, not a half-width column beside an
     * empty slab. Derived from content rather than from a modifier class, so a
     * page that gains or loses its hero image needs no markup change.
     */
    .armada-ds .ds-hero:not(:has(.ds-hero-figure)) { grid-template-columns: 1fr; }
    /* A hero without a photograph still starts on the page's left gutter. It
       used to center its 36rem measure in the full width, which on a 1920 screen
       put the headline 425px from the left against a logo at 105px and left an
       empty field on both sides -- the owner's rule is that text is not set in
       the middle of an empty page. Same derivation as the split hero, against
       the full width rather than half of it. */
    .armada-ds .ds-hero:not(:has(.ds-hero-figure)) .ds-hero-text {
        justify-content: flex-start;
        padding-inline: 2rem;
        padding-inline-start: max(2rem, calc((100% - var(--w-default)) / 2 + 2rem));
    }
}

.armada-ds .ds-hero-text {
    display: flex;
    /* Text always starts on the page's left gutter (owner 2026-10-13). It used to be centred
       below 1024px, which set a 36rem column in the middle of a 768px page with a field on
       both sides; RULES.md 1.4 forbids text centred in an empty page. */
    justify-content: flex-start;
    padding: 2.5rem 1.25rem;
}
@media (min-width: 640px) { .armada-ds .ds-hero-text { padding: 3.5rem 2rem; } }
/*
 * The split hero's text starts on the page's own left gutter, not on a gutter
 * of its own. Measured on the home page at 1920: the headline began 24px to the
 * LEFT of the logo above it, because the text sat flush against the seam with
 * the photograph and its own width decided where it began -- so the same page
 * had two different left edges depending on how long the headline was.
 *
 * The column is exactly half the body, so `100%` here IS half the body width,
 * and the gutter can be derived without `vw` (which counts the scrollbar and
 * would land 8px off the containers). Below 80rem the expression falls through
 * to the 2rem the containers use, continuously: at exactly 80rem both are 2rem.
 */
@media (min-width: 1024px) {
    .armada-ds .ds-hero-text {
        justify-content: flex-start;
        padding: 6rem 2rem;
        padding-inline-start: max(2rem, calc(100% - var(--w-default) / 2 + 2rem));
    }
}

.armada-ds .ds-hero-inner { width: 100%; max-width: 36rem; }

.armada-ds .ds-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--rule);
}
.armada-ds .ds-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--signal); }

.armada-ds .ds-hero-urgent { padding-top: 1rem; font-size: 1.0625rem; color: var(--muted-foreground); }
.armada-ds .ds-hero-phone {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-left: 0.25rem;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    color: var(--accent-ink);
    text-decoration: none;
}
.armada-ds .ds-hero-phone:hover { color: var(--foreground); }

.armada-ds .ds-hero-figure {
    position: relative;
    margin: 0;
    /* flex so the photograph stretches to the figure's minimum height; with
       `height: 100%` against a height that is only a minimum, the image stayed at
       its own aspect and left a dark band under it */
    display: flex;
    min-height: 16rem;
    border-bottom: 1px solid var(--rule);
}
.armada-ds .ds-hero-figure img { display: block; width: 100%; height: auto; object-fit: cover; }
@media (min-width: 640px) { .armada-ds .ds-hero-figure { min-height: 24rem; } }
@media (min-width: 1024px) { .armada-ds .ds-hero-figure { border-bottom: 0; border-left: 1px solid var(--rule); min-height: 100%; } }

/* ── Navigable rows — §4.6 ─────────────────────────────────────────────── */
/*
 * A list where every row is a link. One class, not two: ds-prob-row was a copy
 * of ds-row that had quietly lost the hover underline, so visually identical
 * rows on / and /situations behaved differently.
 */

.armada-ds .ds-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.5rem;
    padding: 1rem 0.75rem;
    color: var(--foreground);
    font-size: 1.0625rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 140ms, color 140ms;
}
@media (min-width: 640px) { .armada-ds .ds-row { min-height: 4rem; padding-inline: 1rem; font-size: 1.125rem; } }
.armada-ds .ds-row:hover { background: var(--signal-wash); }
/* The onward arrow, wherever a row carries one. */
.armada-ds :is(.ds-row-arrow, .next-step-arrow) { font-family: var(--font-mono); color: var(--accent-ink); flex: 0 0 auto; }

/*
 * ds-row--detail — the same row carrying more than a label: a heading, one
 * sentence of what the destination says, and one right-hand fact that differs
 * between rows. Concept: problems.index.tsx:47-63, a two-column grid at `sm`
 * with the stated fact right-aligned.
 *
 * A modifier and not a second row class: the list, the rules, the hover ground
 * and the label underline are the same contract as .ds-row, and only the
 * internal layout changes. Any "pick the one that describes you" index whose
 * rows differ by a stated property can use it — the situations index does,
 * the services and coverage-model indexes are the same shape.
 *
 * The 11px label row this replaced ended at x=514 of a 1440px viewport and put
 * its arrow at x=1234, so 720px of every row carried nothing.
 */
.armada-ds .ds-row--detail {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.75rem;
    padding-block: 1.5rem;
    /* The row's own label step is for a one-line label; this row holds a block
       of prose, so it reads at the body step and the heading carries its own. */
    font-size: 1rem;
    font-weight: 400;
}
.armada-ds .ds-row--detail > div > * + * { margin-block-start: 0.5rem; }
/* The label of the right-hand column is an eyebrow (p.label-meta), and the owner's gap rule for an eyebrow
   is 12px (owner fact armada-section-signal-large, 2026-10-14; enforced by tools/check-section-rules.mjs:44).
   This row used 0.25rem = 4px on the theory that a label sits closer to its value than two blocks do, which
   put /situations/fire-system-offline/ 6 ERRORs below the rule at three widths -- the only page on the site
   that fills metaLabel/metaText. 0.75rem keeps the column tighter than the left one (0.5rem there is between
   a heading and prose) while meeting the stated 12px. */
.armada-ds .ds-row--detail > div + div > * + * { margin-block-start: 0.75rem; }
@media (min-width: 640px) {
    .armada-ds .ds-row--detail { grid-template-columns: 1fr 13rem; gap: 2rem; }
    .armada-ds .ds-row--detail > div + div { text-align: right; }
}

/* ── Page blocks ───────────────────────────────────────────────────────── */
/*
 * What is left below is page-local by construction and named as such in
 * /Users/ag/Sites/armada/_design/NEW-PRIMITIVES-ROUND2.md: an accordion used on
 * two routes, a multi-column index of place links, and the specimen report
 * frame. Nothing here restyles a primitive from outside.
 */

.armada-ds .ds-faq-item summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 44px;
    padding: 1.25rem 0;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    list-style: none;
}
.armada-ds .ds-faq-item summary::-webkit-details-marker { display: none; }
.armada-ds .ds-faq-item summary::after {
    content: "";
    flex: 0 0 auto;
    margin-top: 0.5rem;
    width: 0.5rem; height: 0.5rem;
    border-right: 2px solid var(--accent-ink);
    border-bottom: 2px solid var(--accent-ink);
    transform: rotate(45deg);
    transition: transform 140ms;
}
.armada-ds .ds-faq-item[open] summary::after { transform: rotate(-135deg); }
.armada-ds .ds-faq-answer { padding-bottom: 1.25rem; }

/* A compact index of place links. */
.armada-ds .ds-area-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; }
@media (min-width: 640px) { .armada-ds .ds-area-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .armada-ds .ds-area-list { grid-template-columns: repeat(4, 1fr); } }

/* The specimen report is shown as a document, so it keeps a frame. */
.armada-ds .ds-report { border: 1px solid var(--rule); }
.armada-ds .ds-report > .rule-grid { border-block-start: 0; }
/* Inside the frame the stacked view has to sit on the same gutter as the header
   band's cells, or the record reads as if it had slipped out of the document. */
.armada-ds .ds-report > .table-wrap { padding-block-start: 1.5rem; }
.armada-ds .ds-report > .table-stack { padding-inline: 1.5rem; }
@media (min-width: 640px) { .armada-ds .ds-report > .table-stack { padding-inline: 2rem; } }

/* ── Coverage map — §4.7 ───────────────────────────────────────────────── */
/*
 * Coverage map. Armada tokens only; no color literal lives here, so the map
 * follows a theme change instead of being repainted.
 *
 * Two columns, not an overlay. The reading first sat on the map itself and then
 * in its top-left corner; both fail the same way, because the map is tall and a
 * reader pointing at a southern district has scrolled the reading off screen.
 * It is the system's `split`, so the map takes half the width and about half
 * the height it had.
 */
.armada-ds .armada-map {
    display: grid;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .armada-ds .armada-map { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
}
/* The text column follows the pointer down a long page. */
@media (min-width: 1024px) {
    .armada-ds .armada-map-aside { position: sticky; top: 2rem; }
}
.armada-ds .armada-map-main { min-width: 0; }

.armada-ds .armada-map-frame {
    position: relative;
    background-color: var(--background);
    border: 1px solid var(--rule);
}
.armada-ds .armada-map-frame svg { width: 100%; height: auto; display: block; }

/* Outside the city limits: opaque ground, so water and the neighbouring
   counties read as absent rather than as a darker district. */
.armada-ds .armada-map .amb-mask { fill: var(--background); pointer-events: none; }
.armada-ds .armada-map .amb-ctx  { fill: none; stroke: var(--rule); stroke-width: 1.3; }

/* A district at rest. The seam is the GROUND color, not the rule color:
   `--rule` and `--surface` sit a few points apart in lightness, so 35 districts
   drawn with a rule edge read as one blue mass -- seen on the first render. */
.armada-ds .armada-map .amb-d {
    fill: var(--surface);
    stroke: var(--background);
    stroke-width: 2;
    transition: fill 0.15s ease, stroke 0.15s ease;
    cursor: pointer;
}
/* Hover and keyboard focus are one state. Solid amber per 2.1: amber is a fill.
   A translucent tint was tried and is wrong here -- it composites against the
   navy ground, so the district being pointed at came out DARKER than its
   neighbours. */
.armada-ds .armada-map .zone:is(:hover, :focus-visible) .amb-d {
    fill: var(--signal);
    stroke: var(--signal);
    stroke-width: 2.5;
}
.armada-ds .armada-map .zone:focus { outline: none; }
/* A district whose page is not published yet is drawn, reads out its figure and
   is not a link. Nothing to click, so nothing offers a click. */
.armada-ds .armada-map .zone:not([href]) .amb-d { cursor: default; }

/* The district labels. A label is wider than its own district more often than
   not -- FINANCIAL DISTRICT overhangs three neighbours -- so revealing one on
   hover put type over shapes it does not name. The panel carries the name. They
   stay in the markup for touch, which has no hover. */
.armada-ds .armada-map .amb-t { display: none; }

/* ── The reading ──────────────────────────────────────────────────────── */

.armada-ds .armada-map-readout { margin: 2rem 0 0; }

/* The qualifier sits ABOVE the name, not on its line, and carries the sample
   size with it: "measured" is the word that separates this from a competitor's
   unsourced percentage, and it costs one line to say. Fixed height, because the
   map sits under this block. */
.armada-ds .armada-map-eyebrow {
    display: flex;
    align-items: flex-end;
    min-height: 1.5rem;
    margin-block-end: 0.375rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--muted-foreground);
}
/* Every slot in this block has a FIXED height. The map sits under it, and a
   district with no published figure -- Presidio -- rendered a shorter block,
   which moved the whole map the moment the pointer touched it. Nothing here may
   change size with its content. */
.armada-ds .armada-map-readout dt {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    font-family: var(--font-display);
    font-size: 1.875rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--foreground);
    padding-left: 1.25rem;
    border-left: 2px solid var(--signal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.armada-ds .armada-map-readout[data-open="false"] dt { color: var(--muted-foreground); }

/*
 * Two figures, two GROUNDS, side by side directly above the map. They were both
 * amber on one navy and read as a single figure; and they sat in a column
 * beside the map, which put them out of the eye's path to it.
 *
 * Each cell is ONE line. The qualifiers that were under them -- that the police
 * figure is a median for a low-priority call, that Armada's window is 15 to 30
 * minutes -- are stated once in the method note below and nowhere else.
 */
/* `compare-pair` is the same two grounds outside the map -- the district pages
   set the police median against ours in prose, and the pair belongs to the
   comparison, not to the map that shipped it first. Joined by name here rather
   than restated, which is also why the cell class below keeps its map name.
   It stays one column: in the aside it stands in, two columns are 233px each
   and `Armada 3x faster` does not fit one nowrap line. */
.armada-ds :is(.armada-map-readout dd, .compare-pair) {
    display: grid;
    gap: 1px;
    margin: 1.5rem 0 0;
}
@media (min-width: 640px) {
    .armada-ds .armada-map-readout dd { grid-template-columns: 1fr 1fr; }
}
.armada-ds .armada-map-cell {
    display: flex;
    align-items: center;
    /* The figure reads left, the mark that owns it sits against the right edge
       of the same row. A cell with no mark is unaffected: `space-between` on a
       single child leaves it where it was. */
    justify-content: space-between;
    gap: 1rem;
    min-height: 5rem;
    padding: 1rem 1.25rem;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 600;
    white-space: nowrap;
}
/*
 * RESERVED, nothing uses it yet — 2026-09-21. The owner wants each side of the
 * comparison to carry its own mark against the right edge: the department's on
 * the police figure, ours on ours. Ours exists (`parts/_ds-logo.svg`); the
 * department's is in no media library and on no disk here, and putting an
 * agency's insignia beside our own in a commercial block is a question for the
 * owner, not a detail to settle in CSS. Held until he answers, then filled in
 * every block of this kind at once rather than page by page.
 *
 * To use it: put the figure in its own `<span>` and add, as the cell's second
 * child,
 *   <svg class="armada-map-cell__mark" viewBox="…" fill="currentColor"
 *        role="img" aria-label="…">…</svg>
 * Verified rendering on 2026-09-21 with the Armada chevron: 26x28, sitting on
 * the cell's own 20px right padding, fill resolving to the cell's text color
 * on the amber ground.
 *
 * The mark takes the cell's own text color through `currentColor`, so one
 * piece of markup works on the navy ground and on the amber one without a
 * second copy of it in a different color. Height is tied to the cap height of
 * the figure beside it rather than stated in pixels.
 */
.armada-ds .armada-map-cell__mark {
    flex: none;
    height: 1.75rem;
    width: auto;
}
.armada-ds .armada-map-cell--wait    { background-color: var(--surface); color: var(--surface-foreground); }
.armada-ds .armada-map-cell--armada  { background-color: var(--signal);  color: var(--signal-foreground); }
/* The no-figure state occupies the same two columns at the same height, so the
   map below it does not move. */
.armada-ds .armada-map-cell--empty {
    grid-column: 1 / -1;
    background-color: var(--surface);
    color: var(--muted-foreground);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 400;
    white-space: normal;
}

/* The instruction sits directly above the map, where the action is. */
.armada-ds .armada-map-hint {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--muted-foreground);
}
.armada-ds .armada-map-foot {
    margin: 2rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--muted-foreground);
}

/* The multiple, on the district itself, so the answer is where the reader is
   already looking. Navy on amber would vanish into the amber district, so the
   badge inverts. */
.armada-ds .armada-map-badge {
    position: absolute;
    z-index: 2;
    padding: 0.375rem 0.625rem;
    background-color: var(--background);
    border: 1px solid var(--signal);
    white-space: nowrap;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease;
}
.armada-ds .armada-map-badge[data-open="true"] { opacity: 1; }
.armada-ds .armada-map-badge-name {
    display: block;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--foreground);
}
.armada-ds .armada-map-badge-fig {
    display: block;
    margin-block-start: 0.125rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.2;
    color: var(--accent-ink);
}

/* A touch device has no hover, so every district shows its own label. */
@media (hover: none) {
    .armada-ds .armada-map .amb-t {
        display: block;
        opacity: 1;
        fill: var(--foreground);
        stroke: var(--background);
        font-size: 22px;
    }
}

/* ---- Neighborhood Atlas ------------------------------------------------
   The embed is a full-bleed working surface rather than an illustration, so
   it gets the page's full width and a border to separate it from the page
   rather than a card's padding. */
.armada-ds .armada-atlas-section { padding-block: 2.2rem 1.6rem; }
.armada-ds .armada-atlas-frame { border: 1px solid var(--rule, #d4ded8); border-radius: 10px;
  overflow: hidden; background: #10141c; }
.armada-ds .armada-atlas-fallback { margin-top: .75rem; }
.armada-ds .armada-atlas-actions { margin-top: 1rem; }
/* The atlas on a page of its own (shortcode bleed="1"): the frame runs edge to edge under the site header. Tokens and sizes only. */
.armada-ds .armada-atlas-section--bleed { padding-block: 0; }
.armada-ds .armada-atlas-section--bleed > .container { max-width: none; padding-inline: 0; }
.armada-ds .armada-atlas-section--bleed .armada-atlas-frame { border-width: 0; border-radius: 0; }
.armada-ds .armada-atlas-section--bleed .armada-atlas-fallback { margin: 0; padding: 0.75rem 1.5rem; }

/* ---- Atlas lede: claim on the left, the city moving on the right ---------
   The animation is the argument. A paragraph saying "we counted every report
   since 2018" is a claim; twelve frames of a year shrinking is the thing
   itself, and it reads before the sentence does. */
.armada-ds .atlas-lede { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 62rem) {
  .armada-ds .atlas-lede { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; }
}
.armada-ds .atlas-lede-text { margin-bottom: 0; }
.armada-ds .atlas-lede-figure { margin: 0; }
.armada-ds .atlas-lede-figure img { width: 100%; height: auto; display: block;
  border-radius: 10px; border: 1px solid var(--rule, #d4ded8); background: #0e121a; }
.armada-ds .atlas-lede-figure figcaption { margin-top: .6rem; }


/* ---- Atlas call to action: check one address, or roam -------------------
   One grid for both columns, not two boxes side by side: the label row and the
   button row have to be the SAME rows, or the two sides drift apart the moment
   one label wraps. */
.armada-ds .atlas-cta { display: grid; gap: .5rem 3rem; margin-top: 2rem;
  grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 52rem) {
  /* Even columns. The address side used to take 1.3fr, and with the field
     stretching to fill it the input alone ran past the middle of the section —
     which read as one control leaning into the other half rather than as two
     choices side by side. */
  .armada-ds .atlas-cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.armada-ds .atlas-cta-label { font-size: .78rem; text-transform: uppercase;
  letter-spacing: .1em; font-weight: 700; margin: 0 0 .1rem; }
.armada-ds .atlas-cta-label--quiet { color: var(--muted, #6b7a72); }
.armada-ds .atlas-cta-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: stretch; }
/* Capped rather than fluid: an address field wider than the longest address
   anyone types is just a long empty box. */
.armada-ds .atlas-cta-row input { flex: 1 1 10rem; min-width: 0; max-width: 17rem; padding: .85rem 1rem;
  border: 1px solid var(--rule, #d4ded8); border-radius: 4px; font: inherit; background: #fff; }
.armada-ds .atlas-cta-row input:focus-visible { outline: 2px solid var(--signal, #cf8a54); outline-offset: 2px; }
.armada-ds .atlas-cta-row .action { flex: none; }
.armada-ds .atlas-cta-row--browse .action { width: 100%; justify-content: center; }
.armada-ds .atlas-cta > .small { margin: .45rem 0 0; }
@media (max-width: 51.99rem) {
  /* Stacked: label, control, note for one side, then the other. */
  .armada-ds .atlas-cta { gap: 0; }
  .armada-ds .atlas-cta-label { margin-top: 1.4rem; }
  .armada-ds .atlas-cta-label:first-child { margin-top: 0; }
  .armada-ds .atlas-cta-label--quiet { order: 4; }
  .armada-ds .atlas-cta-row--browse { order: 5; }
  .armada-ds .atlas-cta > .small:last-of-type { order: 6; }
}


/* ── Search (header and footer): an icon button; the field appears when it is pressed (owner 2026-10-15) ─────────── */
.armada-ds .ds-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    color: var(--foreground);
    cursor: pointer;
}
.armada-ds .ds-search-toggle:hover,
.armada-ds .ds-search-toggle[aria-expanded="true"] { background: var(--surface); }
.armada-ds .ds-search-toggle:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
/* The bar has no room for a fourth item on a phone: there the field sits at the top of the menu drawer instead. */
.armada-ds .ds-header .ds-search-toggle { display: none; }
@media (min-width: 480px) { .armada-ds .ds-header .ds-search-toggle { display: inline-flex; } .armada-ds .ds-mobile-search { display: none; } }

.armada-ds .ds-search-panel { position: absolute; inset-inline: 0; top: 100%; background: var(--hull); border-bottom: 1px solid var(--rule); }
.armada-ds .ds-search-panel:has(.ds-search[hidden]) { display: none; }
.armada-ds .ds-search { display: block; padding: 1rem 0; }
.armada-ds .ds-search[hidden] { display: none; }
.armada-ds .ds-search-label { display: block; margin-block-end: 0.5rem; }
.armada-ds .ds-search-row { display: flex; gap: 0.75rem; align-items: stretch; }
/* The search form on the search results and 404 pages: a field, not a banner (same measure as the hero text, 36rem). */
.armada-ds .ds-search--page { max-width: 36rem; padding-inline: 0; }

/* ── 404 photograph (owner 2026-10-19) ──────────────────────────────────────
 * armada/not-found: a night dispatch room (2026-10-19, 5504x3072, 16:9). Everything that must stay in view is on its right:
 * the monitor that shows "404" (x 54-75% of the picture), the second monitor with the camera feeds (75-98%) and the Armada
 * jacket on the chair (64-88%, down to the bottom edge). The left half is a plain dark wall, which is where the text stands.
 * The text is ON the photograph on every screen, at the full width of its column, and nothing flat sits behind it (owner
 * 2026-10-19): the picture is always the background of the whole block.
 *
 * WIDE (>= 900px and the window at least 6:5): the original with a strip of real wall added on top, never cropped at the sides, so the lamp and the monitors are
 * always at the same share of the width and the text column (at most 28rem or 34vw) always ends left of the lamp. A window
 * taller than 16:9 shows more of the added wall, a window wider than 16:9 clips the top of the picture, where there is only wall. The block is never wider than 2.3:1 (min-height from the
 * width): at 3:1 the clip would cut the monitors.
 *
 * TALL (phones, portrait tablets): the portrait re-composition of the same photograph (404-dispatch-room-mobile, 3303x5844:
 * real wall from the left of the frame on top, the desk, the monitors and the jacket in the lower 40%, joined by a dissolve),
 * covering the whole block. The text may use the upper 58% of the block; the monitors start at 60% of the picture.
 * The photograph is decorative (alt=""): the headline says everything the picture does.
 */
.armada-ds .ds-photo-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--photo-wall);
    min-height: calc(100vh - var(--ds-header-h));
    min-height: calc(100svh - var(--ds-header-h));
    /* Two rows, 11 to 8: the text on the upper 58% of the block, the lower 42% (never less than 72vw) is left to the desk,
       the monitors and the jacket of the portrait picture, which start at 60% of its height. The ratio holds whether the text is
       short or long, which a bottom padding in percent of the width does not (the picture scales with the block's height). */
    display: grid;
    grid-template-rows: minmax(auto, 11fr) minmax(72vw, 8fr);
}
/* A tablet has short text for its width: the picture zone is just the picture's own height, not a share of the block (owner 2026-10-19:
   the empty wall between the text and the desk was too big). */
/* ...and it does not stretch to the height of the window either: on a tall tablet the stretch was 240-310px of empty wall between the
   text and the camera monitor (third check, 2026-10-19). The block ends where the picture ends. */
@media (min-width: 600px) { .armada-ds .ds-photo-hero { min-height: 0; grid-template-rows: auto minmax(76vw, auto); } }
/* The <picture> wrapper is a layer over the whole block, not a grid item of its own (it would take the first row and push the text
   down; `display: contents` did not help, Chrome still gave the picture inside it a cell). */
.armada-ds .ds-photo-hero > picture { position: absolute; inset: 0; display: block; }
.armada-ds .ds-photo-hero-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Bottom, and 60% across: a block taller than the portrait picture clips both sides, and at 60% the 404 monitor (22% of the
       width from the left) stays whole down to a 0.38 block (a 320px phone with long text) while the camera monitor loses its edge. */
    object-position: 60% 100%;
}
.armada-ds .ds-photo-hero-body {
    position: relative;
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
}

@media (min-width: 900px) and (min-aspect-ratio: 6/5) {
    .armada-ds .ds-photo-hero {
        display: flex;
        min-height: max(calc(100vh - var(--ds-header-h)), calc(100vw / 2.3));
        min-height: max(calc(100svh - var(--ds-header-h)), calc(100vw / 2.3));
    }
    /* The picture is the original with 1600px of real wall added on top (5504x4672): a window up to 6:5 still has photograph
       behind the text, and a wider window clips the top. It stands on the bottom edge at the full width. */
    .armada-ds .ds-photo-hero-img {
        top: auto;
        height: auto;
        aspect-ratio: 5504 / 4672;
    }
    /* The text block is centred in the part of the box above a bottom margin of 18% of the width (about a third of the box
       height at 16:9): the desk top and the lamp are lit, the wall above them is dark, and white text has to stand on the wall. */
    .armada-ds .ds-photo-hero-body {
        display: flex;
        align-items: center;
        width: 100%;
        padding-top: 4rem;
        padding-bottom: max(4rem, 18%);
    }
    .armada-ds .ds-photo-hero-text { max-width: min(28rem, 34vw); }
}

/* On the photograph the small gray caption colors fall below 4.5:1 where the lamp lights the wall; the page ink does not.
   The amber phone number measured 3.7 to 4.1:1 on the lit wall of a 21:9 screen: it takes the page ink and keeps the amber
   as its underline. A narrow column lets the field and its button wrap instead of cutting the placeholder. */
.armada-ds .ds-photo-hero-text :is(.label-meta, .lead) { color: var(--foreground); }
/* Full width of the column (owner 2026-10-19): the theme's own measures (36rem for the lead and the search field) do not apply here. */
.armada-ds .ds-photo-hero-text :is(.lead, .ds-search, .section-head > *) { max-width: none; }
.armada-ds .ds-photo-hero-text .ds-hero-phone { color: var(--foreground); text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 0.25em; }
.armada-ds .ds-photo-hero-text .ds-search-row { flex-wrap: wrap; }
.armada-ds .ds-photo-hero-text .ds-search-row input[type="search"] { flex: 1 1 13rem; }

.armada-ds .ds-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    padding: 0 0.75rem;
    background: transparent;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    color: var(--foreground);
    font: inherit;
}
.armada-ds .ds-search input[type="search"]:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
/* The 404 field is white with an amber Search button; white is also what keeps the placeholder readable wherever the desk edge falls behind it. */
.armada-ds .ds-search--field input[type="search"] { background-color: var(--field); border-color: var(--field); color: var(--canvas-foreground); }
.armada-ds .ds-search--field input[type="search"]::placeholder { color: var(--canvas-muted); opacity: 1; }
/* Footer: the icon sits in the button row; the field takes the row under it. */
.armada-ds .ds-search--foot { flex: 1 0 100%; padding: 0.5rem 0 0; text-align: left; }
.armada-ds .ds-mobile-search { margin-block-end: 1.5rem; }
.armada-ds .ds-mobile-search .ds-search { padding: 0; }
/* Phones: the footer row is full with quote and phone, so (like the drawer) the footer shows its field directly and no icon. */
@media (max-width: 479px) {
    .armada-ds .ds-search-toggle--foot { display: none; }
    .armada-ds .ds-search--foot[hidden] { display: block; }
}

/*
 * Owner 2026-10-20 (armada-picture-side-alternates): on the stacked layout a picture is never followed by a picture.
 * A row of picture-only cells (a photo strip; Construction Sites and Industrial pages) stacks into three pictures in a
 * row below 768px, where the grid has one column. The first picture stays; the others stay in the page and show again
 * from 768px. Measured by the sensor code `pic-after-pic` (check-page-render.mjs).
 */
@media (max-width: 767px) {
    .armada-ds .rule-grid:has(> .rule-cell > .ds-figure:only-child) > .rule-cell:nth-child(n + 2) { display: none; }
}

/* ── Breadcrumbs, header second row (owner 2026-10-25, option D3) ───────────
   Inside the sticky header, so it stays with the menu. Hull ground, mono-free sentence case,
   home icon, chevron separators, current page underlined in signal amber and not a link.
   Phone: only "‹ parent" (one row); the full trail returns from 768px. */
.armada-ds .ds-crumbs { border-top: 1px solid var(--rule); background-color: var(--hull); color: var(--muted-foreground); }
.armada-ds .ds-crumbs nav { min-height: 2.125rem; display: flex; align-items: center; }
.armada-ds .ds-crumbs-list { display: flex; align-items: center; flex-wrap: nowrap; min-width: 0; margin: 0; padding: 0; list-style: none; font-size: 0.8125rem; line-height: 1.2; }
.armada-ds .ds-crumbs-list li { display: flex; align-items: center; min-width: 0; }
.armada-ds .ds-crumbs-list a { display: inline-flex; align-items: center; color: inherit; text-decoration: none; padding-block: 0.5rem; }
.armada-ds .ds-crumbs-list a:hover { color: var(--foreground); text-decoration: underline; }
.armada-ds .ds-crumbs-list a:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.armada-ds .ds-crumbs-list li + li::before { content: ""; flex: none; width: 5px; height: 5px; margin: 0 0.75em 0 0.4em; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.55; }
.armada-ds .ds-crumbs-list .is-current { flex: 1 1 auto; color: var(--foreground); font-weight: 600; }
.armada-ds .ds-crumbs-list .is-current span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-bottom: 2px solid var(--signal); padding-bottom: 1px; }
/* Phone (owner 2026-10-26, option 2): the whole trail on one line that swipes sideways and opens scrolled to the
   current page; a fade on the left shows there is more. armada-ds.js sets the scroll and the .has-left class. */
@media (max-width: 767px) {
    .armada-ds .ds-crumbs-list { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
    .armada-ds .ds-crumbs-list::-webkit-scrollbar { display: none; }
    .armada-ds .ds-crumbs-list li { flex: none; white-space: nowrap; }
    .armada-ds .ds-crumbs-list .is-current { flex: none; }
    .armada-ds .ds-crumbs-list .is-current span { overflow: visible; text-overflow: clip; }
    .armada-ds .ds-crumbs-list.has-left { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px); mask-image: linear-gradient(90deg, transparent 0, #000 28px); }
}

/* Header height token: the sticky header is 4.5rem, plus the breadcrumb row (about 2.2rem) on pages that have one.
   Hero min-heights and the mobile drawer subtract it, so a hero still ends at the fold. */
.armada-ds { --ds-header-h: 4.5rem; }
.armada-ds:has(.ds-header .ds-crumbs) { --ds-header-h: 6.7rem; }

/* Breadcrumbs inside the hero (owner 2026-10-25, option B3): above the title, on the hero ground, no band of its own. */
.armada-ds .ds-crumbs--hero { order: -2; border: 0; background: none; min-height: 0; margin: 0; padding: 1rem 1.25rem 0; color: var(--muted-foreground); }
@media (min-width: 640px) { .armada-ds .ds-crumbs--hero { padding-inline: 2rem; } }
/* Beside the photograph (from 1024px) the trail floats at the top of the TEXT column, 1rem under the menu, on the same left edge as the title,
   and takes no height: the photograph stays flush against the menu. Stacked (phone, tablet) it is the first row of the hero, above the photograph. */
@media (min-width: 1024px) {
    .armada-ds .ds-hero { position: relative; }
    .armada-ds .ds-crumbs--hero { position: absolute; z-index: 2; top: 0; padding: 1rem 0 0; left: max(2rem, calc(50% - var(--w-default) / 2 + 2rem)); width: min(36rem, calc(50% - 2rem)); }
    .armada-ds .ds-hero:not(:has(.ds-hero-figure)) .ds-crumbs--hero { left: max(2rem, calc((100% - var(--w-default)) / 2 + 2rem)); }
}
.armada-ds .ds-crumbs--hero .ds-crumbs-list { flex-wrap: nowrap; }
.armada-ds .ds-hero-inner .ds-crumbs--hero li a:not(.action) { background: none; border: 0; text-decoration: none; box-shadow: none; }
.armada-ds .ds-hero-inner .ds-crumbs--hero li a:not(.action):hover { color: var(--foreground); text-decoration: underline; }

/* Band pictures stacked above the text (640 to 1023px): 16:9, not 21:9. A square or 4:3 source lost 57% of itself in a 21:9
   strip (sensor 2026-10-25: 42 rows at 768). 16:9 keeps a square at 56%. From 1024px the picture stands beside the text. */
@media (min-width: 640px) and (max-width: 1023px) {
    .armada-ds .ds-figure--hero > img { aspect-ratio: 16 / 9; }
}


/* ── Article page: text in the left column, contents in the right one (owner 2026-10-27) ──────────────
   The text starts on the line of the logo (the same .container.wide as the header); the sidebar lists the
   h2 of the post and stays in view. The quote form and the cities part sit inside the text column. */
.armada-ds .article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.armada-ds .section > .container.article-layout > * { margin-block: 0; }
.armada-ds .article-main { min-width: 0; }
.armada-ds .article-main > * + * { margin-block-start: 3rem; }
@media (min-width: 1024px) {
    .armada-ds .article-layout { grid-template-columns: minmax(0, 1fr) 18rem; gap: 4rem; }
    .armada-ds .section > .container.article-layout > .article-toc { position: sticky; top: 6.5rem; max-height: calc(100vh - 8rem); overflow-y: auto; }
}
.armada-ds .article-toc { order: -1; border-top: 1px solid var(--rule); padding-block-start: 1rem; }
@media (min-width: 1024px) { .armada-ds .article-toc { order: 0; } }
.armada-ds .article-toc summary { cursor: pointer; padding-block: 0.25rem; list-style: none; }
.armada-ds .article-toc summary::-webkit-details-marker { display: none; }
@media (min-width: 1024px) { .armada-ds .article-toc summary { pointer-events: none; cursor: default; } }
.armada-ds .article-toc ol { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.armada-ds .article-toc li + li { margin-block-start: 0.125rem; }
.armada-ds .section.article-body .article-toc li a {
    display: block;
    padding: 0.375rem 0 0.375rem 0.75rem;
    border-inline-start: 2px solid var(--rule);
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--muted-foreground);
    text-decoration: none;
    background: none;
}
.armada-ds .section.article-body .article-toc li a:is(:hover, :focus-visible, [aria-current="true"]) { color: var(--foreground); border-inline-start-color: var(--accent-ink); }
.armada-ds .section.article-body .article-toc li a:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.armada-ds .article-body :is(h2, h3)[id] { scroll-margin-block-start: 6rem; }
.armada-ds .article-mid { border: 1px solid var(--rule); background-color: var(--surface-wash); padding: 1.5rem; }
@media (min-width: 640px) { .armada-ds .article-mid { padding: 2.25rem; } }
.armada-ds .article-mid > * + * { margin-block-start: 1.25rem; }
.armada-ds .article-mid-cities { border-top: 1px solid var(--rule); padding-block-start: 1.5rem; margin-block-start: 2rem; }
.armada-ds .article-mid-cities > * + * { margin-block-start: 0.75rem; }

/* Pictures inside an article keep the shape of the photographs (16:9 sources); the 4:3 frame cut the lettering off the vehicles. */
.armada-ds .article-main .ds-figure > img { aspect-ratio: 16 / 9; object-position: 50% 35%; }

/* Sources (owner 2026-11-05). A marker is a real link to its entry, so it works without JavaScript
   and the source text stays in the document; the hover/tap bubble only shows what the entry holds. */
.armada-ds .src-ref { font-size: 0.6875rem; line-height: 1; margin-inline-start: 0.125rem; }
.armada-ds .src-ref a {
    position: relative;
    display: inline-block;
    min-width: 1rem;
    padding: 0 0.1875rem;
    border-radius: 2px;
    background-color: var(--surface-wash, var(--muted));
    color: var(--accent-ink);
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}
/* The number itself must stay a small superscript, but a 16x11 target is below the 24x24 minimum
   (WCAG 2.2 SC 2.5.8) and hard to hit on a phone. The pseudo-element widens the target without
   touching the line box, measured 2026-11-05: 16x11 -> 28x25. */
.armada-ds .src-ref a::after {
    content: "";
    position: absolute;
    inset: -0.4375rem -0.375rem;
}
.armada-ds .src-ref a:is(:hover, :focus-visible) { background-color: var(--accent); color: var(--accent-foreground); }
.armada-ds .src-ref a:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* The bubble. Dismissable (Escape, outside click), hoverable (the pointer may enter it) and
   persistent (nothing hides it on a timer) — WCAG 2.1 SC 1.4.13, which a native title= fails. */
.armada-ds .src-pop {
    position: absolute;
    z-index: 60;
    max-width: min(22rem, calc(100vw - 2rem));
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--rule);
    background-color: var(--background);
    box-shadow: 0 10px 30px rgb(0 0 0 / 0.18);
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--foreground);
}
.armada-ds .src-pop[hidden] { display: none; }
.armada-ds .src-pop a { color: var(--accent-ink); }
.armada-ds .src-pop .src-pub, .armada-ds .src-pop .src-note, .armada-ds .src-pop .src-checked { display: block; color: var(--muted-foreground); font-size: 0.8125rem; }

/* One line under a block of figures — the cheap shape, for a group of numbers from one dataset.
   A block, because the token is written inside a prose paragraph and the markup is a span. */
.armada-ds .src-line { display: block; margin-block-start: 0.75rem; }

/* The list at the end of the page: the place the source text actually lives. */
.armada-ds .ds-sources .container > * + * { margin-block-start: 0; }
.armada-ds .ds-sources ol { margin: 1rem 0 0; padding-inline-start: 1.25rem; }
.armada-ds .ds-sources li { margin-block-start: 0.625rem; font-size: 0.9375rem; line-height: 1.5; scroll-margin-block-start: 6rem; }
.armada-ds .ds-sources li:target { background-color: var(--surface-wash, var(--muted)); }
.armada-ds .ds-sources .src-pub, .armada-ds .ds-sources .src-note, .armada-ds .ds-sources .src-checked { color: var(--muted-foreground); }
.armada-ds .ds-sources .src-pub::before, .armada-ds .ds-sources .src-note::before, .armada-ds .ds-sources .src-checked::before { content: "· "; }
.armada-ds .ds-sources .src-back {
    position: relative;
    display: inline-block;
    min-width: 1.5rem;
    min-height: 1.5rem;
    margin-inline-start: 0.375rem;
    text-align: center;
    text-decoration: none;
    color: var(--muted-foreground);
}
.armada-ds .ds-sources .src-back:is(:hover, :focus-visible) { color: var(--foreground); }

/* Два вида длинного списка (владелец 2026-11-06: «блок очень большой»).
   columns — две колонки с ширины планшета; запись не разрывается между колонками.
   accordion — открыты первые пять, остальные под нативным <details>, без JavaScript. */
.armada-ds .ds-sources .src-cols { column-gap: 2.5rem; }
@media (min-width: 48rem) {
    .armada-ds .ds-sources .src-cols { columns: 2; }
    .armada-ds .ds-sources .src-cols li { break-inside: avoid; }
}
.armada-ds .ds-sources .src-more { margin-block-start: 0.875rem; }
.armada-ds .ds-sources .src-more > summary {
    display: inline-block;
    padding: 0.375rem 0;
    color: var(--accent-ink);
    font-size: 0.9375rem;
    cursor: pointer;
}
.armada-ds .ds-sources .src-more > summary:is(:hover, :focus-visible) { text-decoration: underline; }
.armada-ds .ds-sources .src-more > summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.armada-ds .ds-sources .src-more[open] > summary { margin-block-end: 0.25rem; }
.armada-ds .ds-sources .src-more > ol { margin-block-start: 0; }

/* Панель: блок источников — служебный, он не должен читаться как ещё один раздел статьи
   (владелец 2026-11-06: «можно визуально отделить от другого контента?»). */
.armada-ds .ds-sources .src-panel {
    padding: 1.5rem 1.75rem 1.75rem;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background-color: color-mix(in srgb, var(--foreground) 4%, var(--background));
}
.armada-ds .ds-sources .src-panel > h2 { font-size: 1.125rem; letter-spacing: 0.02em; text-transform: uppercase; }
.armada-ds .ds-sources .src-lede { margin-block: 0.375rem 1rem; }
.armada-ds .ds-sources li { font-size: 0.875rem; }

/* По издателям: имя издателя один раз, его документы в строку под ним. */
.armada-ds .ds-sources .src-groups { margin: 0; padding: 0; list-style: none; }
.armada-ds .ds-sources .src-groups > li { margin-block-start: 0.75rem; line-height: 1.55; }
.armada-ds .ds-sources .src-groups > li:first-child { margin-block-start: 0; }
.armada-ds .ds-sources .src-pub-head {
    display: inline-block;
    min-width: 13rem;
    padding-inline-end: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: top;
}
.armada-ds .ds-sources .src-docs { display: inline; }
/* Запись целиком — один кусок: номер и всё название переносятся вместе, внутри названия
   переноса нет (владелец 2026-11-06). Перенос возможен только между записями, по запятой.
   Ограничено шириной, на которой это физически выполнимо. Замерено 2026-11-06 на
   /security-guard-services/fire-watch-security/: запись sfist-armada при nowrap занимает 871px,
   а строка под номером документа шириной 277px (375px), 597px (768px) и 678px (1024px) —
   страница уезжала боком (scrollWidth 920>375, 932>768, 1156>1024), то есть ломалось
   appearance, ux и section-rules сразу на всех страницах с длинной записью. Поэтому цельная
   строка держится с 1280px, где она умещается (934px столбец), а ниже переносится.
   Номер остаётся при названии и без nowrap: между ними неразрывный пробел (&#160; в
   armada_src_list_grouped), а `src-n` — обычный строчный элемент, после которого браузер
   не ставит отдельной возможности переноса. Проверено замером: номер и первая строка
   названия на одной линии на 375/768/1024/1280/1440. */
.armada-ds .ds-sources .src-doc { white-space: normal; }
@media (min-width: 80rem) {
    .armada-ds .ds-sources .src-doc { white-space: nowrap; }
    /* nowrap holds the NUMBER with the whole NAME (owner 2026-11-06, comment above). It was never meant to
       hold the trailing muted parts, and applied to them it made one entry as wide as its longest note:
       measured 2026-11-07 on /security-guard-services/, the fbi-cde note ran span.src-doc from x=365 to
       x=1762 and the page scrolled sideways by 322px at 1440 (appearance, ux, section-rules and cta-layout
       all read it). The note, the period, the publisher and the check date are prose about the document,
       not its name, so they wrap; the name itself still does not. */
    .armada-ds .ds-sources .src-doc > .src-note,
    .armada-ds .ds-sources .src-doc > .src-period,
    .armada-ds .ds-sources .src-doc > .src-pub,
    .armada-ds .ds-sources .src-doc > .src-checked { white-space: normal; }
}
/* Переход по номеру из текста обязан быть виден: иначе читатель не понимает, куда попал. */
.armada-ds .ds-sources .src-doc { scroll-margin-block-start: 6rem; }
.armada-ds .ds-sources .src-doc:target,
.armada-ds .ds-sources li:target .src-doc {
    background-color: var(--accent);
    color: var(--accent-foreground);
    border-radius: 2px;
    box-shadow: 0 0 0 0.25rem var(--accent);
}
.armada-ds .ds-sources .src-ordered li { margin-block-start: 0.5rem; }
.armada-ds .ds-sources .src-ordered .src-pub { color: var(--muted-foreground); font-size: 0.75rem; }
.armada-ds .ds-sources .src-ordered .src-pub::before { content: "· "; }
/* Период самого документа — то, что подпирает цифру; служебную дату нашей проверки
   показываем один раз на блок, а не у каждой записи (владелец 2026-11-06). */
.armada-ds .ds-sources .src-period { color: var(--muted-foreground); font-size: 0.75rem; }
.armada-ds .ds-sources .src-period::before { content: "· "; }
/* Номер — обычный строчный элемент, а не inline-block: после атомарной строчной коробки
   браузер ставит возможность переноса, и неразрывный пробел её не снимает (замерено
   2026-11-06: номера 9 и 16 оставались в конце строки, название уезжало на следующую). */
.armada-ds .ds-sources .src-n {
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}
@media (min-width: 60rem) {
    .armada-ds .ds-sources .src-groups > li { display: flex; gap: 1rem; }
    .armada-ds .ds-sources .src-pub-head { flex: 0 0 13rem; min-width: 0; }
    .armada-ds .ds-sources .src-docs { flex: 1 1 auto; }
}

/* Номер-сноска у ссылки в тексте: связь абзаца с записью внизу. */
.armada-ds .src-ref-n { margin-inline-start: 0.0625rem; }
.armada-ds .src-ref-link { text-decoration: none; }
.armada-ds .src-ref-link .src-ref-n { margin-inline-start: 0; }

/* ---------------------------------------------------------------------------
 * Этап 0 ревизии 2026-11-12: подвал складывается на телефоне.
 * Замер до правки: подвал 3612px = 4.45 экрана на 375 при странице в 22.6-35
 * экранов, то есть пятая часть страницы — список из 81 ссылки. На 1440 он же
 * 1226px = 1.36 экрана и в сворачивании не нуждается.
 * Разметка приходит с атрибутом open, поэтому без JS подвал выглядит ровно
 * как сегодня; скрипт снимает open только ниже 768px.
 * ------------------------------------------------------------------------ */
.armada-ds .ds-foot-acc > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 44px;              /* цель касания, §U7 ревизии */
    cursor: pointer;
    list-style: none;
}
.armada-ds .ds-foot-acc > summary::-webkit-details-marker { display: none; }
.armada-ds .ds-foot-acc > summary > h2 { margin: 0; }
.armada-ds .ds-foot-acc > summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
/* Стрелка только там, где секция действительно складывается. */
.armada-ds .ds-foot-acc > summary::after {
    content: "";
    flex: 0 0 auto;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}
.armada-ds .ds-foot-acc[open] > summary::after { transform: rotate(-135deg); }

@media (min-width: 768px) {
    /* На десктопе это обычный заголовок колонки: ни курсора, ни стрелки, ни клика. */
    .armada-ds .ds-foot-acc > summary { cursor: default; pointer-events: none; min-height: 0; }
    .armada-ds .ds-foot-acc > summary::after { display: none; }
}

/* Подводка блока источников несла собственный потолок 46rem (736px при шрифте
 * 14px — около 86 знаков в строке). Приводим к общему правилу §2.2. */
.armada-ds .ds-sources .src-lede { max-width: 70ch; }

/* Кнопка отправки формы была 41px при норме цели касания 44px. */
.armada-ds form.wpforms-form .wpforms-submit { min-height: 44px; }

/* Разметка колонок подвала теперь лежит внутри <details>, поэтому правила
 * раскладки, написанные для прямых детей колонки, адресуем телу секции.
 * Иначе широкая колонка «By property type» теряет свои две колонки на
 * десктопе и вытягивает подвал (замер 2026-11-12: 1226px -> 1365px). */
.armada-ds .ds-foot-acc-body > * + * { margin-top: 1rem; }
.armada-ds .ds-foot-col > details + details { margin-top: 2rem; }
@media (min-width: 1024px) {
    .armada-ds .ds-foot-col--wide > .ds-foot-acc > .ds-foot-acc-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem 2rem;
        align-content: start;
    }
    .armada-ds .ds-foot-col--wide > .ds-foot-acc > .ds-foot-acc-body > * { margin-top: 0; }
}

/* Колонка больше НЕ сетка — сетку держит тело секции (правило выше). Старое
 * `.ds-foot-col--wide { display: grid; grid-template-columns: 1fr 1fr }` осталось
 * в силе и делало <details> единственным элементом ПЕРВОЙ дорожки: замер живой
 * страницы 2026-11-13 дал дорожки 186px и 230px, заголовок «By property type»
 * перестал растягиваться на обе, а «Commercial and corporate» переносилось
 * посреди слова. Отменяем его там же, где включали. */
@media (min-width: 768px) { .armada-ds .ds-foot-col--wide { display: block; } }
