/*!
 * Radoslav.online Design System
 * ============================================================================
 *
 * CANONICAL SOURCE. Platform owns this file (Architecture R1 section 18:
 * DESIGN_SYSTEM_OWNER = PLATFORM_SHELL_CANONICAL_SOURCE).
 *
 *   design-system-version: see assets/design-system/VERSION
 *   source-repo:           Digital-Union-Company/Radoslav.online-Platform
 *   source-path:           assets/design-system/radoslav-design-system.css
 *
 * ----------------------------------------------------------------------------
 * WHAT THIS FILE IS
 * ----------------------------------------------------------------------------
 *
 * One flattened, hand-authored, self-contained stylesheet. No build step, no
 * preprocessor, no package manager, no @import, no webfont, no remote request
 * of any kind. What you read here is exactly what is served.
 *
 * It is deployed through the Platform's release-scoped asset namespace at
 * `/platform-assets/r-<release-sha40>/design-system/radoslav-design-system.css`,
 * so every release serves its own immutable copy and no cache-busting
 * query string is needed.
 *
 * ----------------------------------------------------------------------------
 * HOW OTHER PROJECTS ADOPT IT  (the pinned-copy contract)
 * ----------------------------------------------------------------------------
 *
 * A project does NOT link to this file across origins. It copies these exact
 * bytes into its own repository, serves them from its own origin, and records
 * the provenance in a PINNED.json beside the copy. A Platform deploy therefore
 * cannot restyle or break an adopter, and an adopter can revert on its own.
 *
 *   RUNTIME_FETCH_FROM_PLATFORM       = NO
 *   CSS_LINK_TO_PLATFORM_ORIGIN       = NO
 *   CROSS_PROJECT_THEME_SYNC_REQUIRED = NO
 *
 * Every class is prefixed `rds-` and every custom property `--rds-` so a copy
 * can be dropped into an application that already owns `.card`, `.shell` or
 * `--bg` without colliding with it.
 *
 * ----------------------------------------------------------------------------
 * SCOPE
 * ----------------------------------------------------------------------------
 *
 * Eleven primitive families. The first seven are the original set:
 *
 *   1. COLOUR TOKENS   2. TYPOGRAPHY   3. SPACING   4. PAGE SHELL
 *   5. CARD            6. BUTTON       7. FORM FIELD
 *
 * Revision 1.1.0 adds three, each because a Platform surface had composed the
 * same shape by hand and the shape is now shared by more than one of them:
 *
 *   8. BRAND LOCKUP    9. AUTH SURFACE   10. PROJECT LAUNCHER
 *
 * Revision 1.8.0 adds the eleventh, on the same bar and after the longest wait
 * of any family here — it was named as deferred from Slice 10 onward:
 *
 *   11. EMPTY STATE
 *
 * Eight branches across three surfaces were each composing a zero state by
 * hand, in three structurally different shapes, and one of the three states
 * they express — a read that FAILED, as opposed to a collection that is empty —
 * must not be mistakable for either of the others. The family is documented at
 * its own rules near the end of this file.
 *
 * The per-revision notes below stop at 1.5.0 and are kept as the historical
 * record of what each revision claimed at the time; 1.6.0, 1.7.0 and 1.8.0
 * document themselves beside the rules they add. In particular the 1.5.0 note
 * that status feedback and an empty state were "STILL not in this revision" was
 * true of 1.5.0 and is not true now: status feedback arrived in 1.6.0 and the
 * empty state in 1.8.0. Toggle, badge, modal, helper text, a settings section
 * and a reorderable list or grid all remain deferred.
 *
 * Revision 1.2.0 adds NO family and NO class. It adds one rule inside family
 * 10 — `.rds-launch .rds-button-row` — because the launcher gained a second
 * per-tile control and the stretched-anchor overlay made that control
 * unclickable. The row reuses family 6's existing `.rds-button-row`, so an
 * adopter gains a repair rather than a component.
 *
 * Revision 1.3.0 adds NO family. It adds two classes, each inside a family
 * that already exists, and each because a Platform surface could not be made
 * usable on a phone by composing what was already here:
 *
 *   `.rds-table-scroll`  family 2 — bounds a wide table's overflow inside
 *                        itself instead of letting it widen the document
 *   `.rds-button-icon`   family 6 — a `.rds-button` variant sized for a
 *                        fingertip when its label is a single glyph
 *
 * Both are deliberately small and generic, and neither is a reorder
 * component: the reorderable-list primitive named in the deferred list below
 * stays deferred — deliberately not spelled here, because this file's own
 * contract test scans these bytes for that name and prose about an absence
 * would read as the absence having ended. The Gateway Editor's reorder
 * controls are each just a family 6 `.rds-button` carrying the icon variant
 * above, grouped by an unclassed element so the group can be hidden until
 * script wires it up.
 *
 * Revision 1.4.0 adds NO family. It adds one class, inside family 9, and one
 * `@keyframes` that only that class uses:
 *
 *   `.rds-auth-wait`     family 9 — a quiet pending line for an auth surface
 *                        that is a TRANSITION rather than a form
 *
 * It exists because the handoff interstitial is exactly that surface and had
 * nothing in these families to say it with: every other auth page asks for
 * something, and this one only waits. The motion opt-out for it is in the
 * single `prefers-reduced-motion` block at the end of this file rather than
 * beside the rule, for the reason stated there.
 *
 * It is deliberately NOT the deferred feedback primitive. It reports no
 * percentage, no outcome and no error, it cannot be driven, and nothing sets
 * it — a pending ornament beside a fixed sentence is strictly less than a
 * state component, and naming it one here would claim a primitive this
 * revision has not designed.
 *
 * Revision 1.5.0 adds NO family. It adds four classes, each inside a family
 * that already exists, and each because an S13 surface could not be built out
 * of what was already here:
 *
 *   `.rds-launch-actions`  family 10 — the block at the foot of a launch tile
 *                          holding its ONE primary action and, below that, the
 *                          row of secondary ones
 *   `.rds-launch-primary`  family 10 — the primary action of a launch tile,
 *                          stretched over the whole tile so the card is still
 *                          a single click target
 *   `.rds-field-code`      family 7 — a field whose value is read character by
 *                          character, so it is set in the monospace token
 *   `.rds-table-cards`     family 2 — a wide table that becomes one card per
 *                          row below a narrow breakpoint, instead of
 *                          compressing its columns until labels break
 *                          mid-word
 *
 * `.rds-launch-primary` SUPERSEDES the 1.2.0 arrangement in which the project
 * name was the stretched anchor and the only visible controls on a tile were
 * its secondary ones. The overlay technique is unchanged and `.rds-launch-link`
 * is retained for adopters still composing a tile that way; what changed is
 * which element carries it, so that the control a pointer reaches for is the
 * same control a screen reader announces and there is exactly one of it.
 *
 * `.rds-table-cards` is NOT the deferred reorderable list/grid primitive and
 * not a responsive-table component: it is a handful of display rules inside
 * one `max-width` query, applied to the element-level table styling of family
 * 2, and it keeps the table's own ARIA semantics because the markup declares
 * them explicitly rather than relying on the default display mapping.
 *
 * Toggle, badge, modal, helper text, settings section, empty state,
 * reorderable list/grid and status feedback are STILL not in this revision.
 * Where a surface needs such an affordance today it composes one from the
 * families above rather than inventing a primitive here early.
 *
 * ----------------------------------------------------------------------------
 * THEME
 * ----------------------------------------------------------------------------
 *
 * System, Light or Dark, exactly as Architecture R1 section 18 and the Slice 8
 * Central Admin implementation established:
 *
 *   :root                                   light palette (the declared default)
 *   :root[data-theme="light"]               light, forced
 *   @media (prefers-color-scheme: dark)
 *     :root:not([data-theme])                dark, chosen by the OS
 *   :root[data-theme="dark"]                dark, forced
 *
 * Under System the `data-theme` attribute is ABSENT, which is what the
 * OS-driven branch keys on. There is no third `data-theme="system"` state.
 *
 * An application that never sets `data-theme` gets correct System behaviour
 * from this file alone, with no database, session or settings dependency. That
 * is what lets an adopter use this stylesheet without reaching into Platform.
 *
 * Every colour literal is declared exactly ONCE, in the palette block below.
 * The light/dark branches only re-point semantic tokens at palette entries, so
 * a colour can never drift between the forced and OS-driven paths.
 */

/* ===========================================================================
 * 1. COLOUR TOKENS
 * ======================================================================== */

:root {
    color-scheme: light dark;

    /* Raw palette. Each literal appears exactly once in this file. */
    --rds-palette-white: #ffffff;
    --rds-palette-grey-50: #f7f7f8;
    --rds-palette-grey-100: #eeeff1;
    --rds-palette-grey-200: #e3e4e8;
    --rds-palette-grey-400: #9a9ea6;
    --rds-palette-grey-500: #5f6368;
    --rds-palette-grey-700: #32343a;
    --rds-palette-grey-800: #232428;
    --rds-palette-grey-900: #1b1c1f;
    --rds-palette-ink: #17181b;
    --rds-palette-scrim: rgb(0 0 0 / 0.4);

    --rds-palette-accent: #2f6fdd;
    --rds-palette-accent-strong: #2459bb;
    --rds-palette-accent-light: #6b9ef5;

    --rds-palette-danger: #b3362c;
    --rds-palette-danger-light: #f0a39b;
    --rds-palette-danger-surface: #fdf1ef;
    --rds-palette-danger-surface-dark: #2f1d1a;

    /* 1.6.0. The first POSITIVE colour this system has needed: until now
       nothing reported success, only failure (danger) and caution (notice).
       Two literals, because a green that reads on white is too dark to read on
       the grey-900 page and the light one is too pale to read on white — the
       same two-literal shape danger and the accent already use. */
    --rds-palette-positive: #1a6f45;
    --rds-palette-positive-light: #74c69d;

    --rds-palette-notice-surface: #fdf6e8;
    --rds-palette-notice-border: #e9d9b4;
    --rds-palette-notice-ink: #7a5a17;
    --rds-palette-notice-surface-dark: #2e2718;
    --rds-palette-notice-border-dark: #55492a;
    --rds-palette-notice-ink-dark: #e2c88e;

    /* Elevation and wash, added in 1.1.0. These are deliberately ALPHA values
       rather than new opaque greys: a shadow has to darken whichever surface it
       falls on, and a wash has to tint one, so neither can be expressed as a
       fixed colour without being wrong on the other theme. They still live in
       the palette like every other literal, so a shadow cannot be invented
       inline by a component. */
    --rds-palette-shadow-ambient: rgb(23 24 27 / 0.06);
    --rds-palette-shadow-key: rgb(23 24 27 / 0.09);
    --rds-palette-shadow-ambient-dark: rgb(0 0 0 / 0.32);
    --rds-palette-shadow-key-dark: rgb(0 0 0 / 0.45);
    --rds-palette-accent-wash: rgb(47 111 221 / 0.09);
    --rds-palette-accent-wash-dark: rgb(107 158 245 / 0.13);

    /* Semantic tokens. These are what components may use. */
    --rds-bg: var(--rds-palette-grey-50);
    --rds-panel: var(--rds-palette-white);
    --rds-panel-raised: var(--rds-palette-grey-100);
    --rds-fg: var(--rds-palette-ink);
    --rds-fg-muted: var(--rds-palette-grey-500);
    --rds-fg-faint: var(--rds-palette-grey-400);
    --rds-border: var(--rds-palette-grey-200);
    --rds-border-strong: var(--rds-palette-grey-400);

    --rds-accent: var(--rds-palette-accent);
    --rds-accent-hover: var(--rds-palette-accent-strong);
    --rds-on-accent: var(--rds-palette-white);

    /* LINK TEXT IS NOT A FILL, and 1.8.1 stops asking one token to be both.
     *
     * `--rds-accent` is a SURFACE colour here: it is what a primary button is
     * painted with, and its partner `--rds-on-accent` is measured against it.
     * Used as TEXT it has to clear 4.5:1 against whatever is behind it instead,
     * and in this theme it does not quite: `accent` on the page background
     * (`grey-50`) measures about 4.42:1. On a white panel it reaches 4.73:1, so
     * the defect only shows where a link sits on the page rather than in a
     * card — which is exactly where Central Admin puts its section jump list.
     *
     * (Literals are named here rather than written out: this file declares each
     * colour literal exactly once, in the palette, and the contract test that
     * enforces that reads the comments too.)
     *
     * The palette already held the answer. `accent-strong` is the same hue one
     * step down, already present as the light theme's hover, and it measures
     * about 6.09:1 on the page background and 6.52:1 on a panel. So this is a
     * re-pointing, not a new colour: no literal is added, moved or changed,
     * and the accent's own identity — and therefore every button pair the
     * contract test pins — is untouched.
     *
     * Both dark branches point it at the same light blue their accent already
     * uses, so dark link text is byte-for-byte what it was. */
    --rds-link: var(--rds-palette-accent-strong);

    --rds-danger: var(--rds-palette-danger);
    --rds-danger-surface: var(--rds-palette-danger-surface);

    --rds-positive: var(--rds-palette-positive);

    --rds-notice-surface: var(--rds-palette-notice-surface);
    --rds-notice-border: var(--rds-palette-notice-border);
    --rds-notice-fg: var(--rds-palette-notice-ink);

    --rds-focus-ring: var(--rds-palette-accent);

    --rds-shadow-ambient: var(--rds-palette-shadow-ambient);
    --rds-shadow-key: var(--rds-palette-shadow-key);
    --rds-accent-wash: var(--rds-palette-accent-wash);

    --rds-radius: 0.5rem;
    --rds-radius-sm: 0.3rem;
    --rds-radius-lg: 0.85rem;

    /* Elevation composes the two shadow tokens above rather than naming a
       colour, so re-pointing those in a dark branch moves every elevation with
       them. Custom properties substitute at use time, which is what makes one
       declaration here correct in all three theme states. */
    --rds-elevation-1: 0 1px 2px var(--rds-shadow-ambient);
    --rds-elevation-2:
        0 1px 2px var(--rds-shadow-ambient),
        0 10px 28px -12px var(--rds-shadow-key);
    --rds-elevation-3:
        0 2px 4px var(--rds-shadow-ambient),
        0 24px 56px -20px var(--rds-shadow-key);

    /* One duration for every hover and focus transition in this file. Short
       enough to feel immediate; the reduced-motion branches below opt out of
       the transform entirely rather than merely shortening it. */
    --rds-transition: 140ms ease;
}

:root[data-theme="light"] {
    color-scheme: light;
}

/* Only when nothing is forced does the operating system decide. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --rds-bg: var(--rds-palette-grey-900);
        --rds-panel: var(--rds-palette-grey-800);
        --rds-panel-raised: var(--rds-palette-grey-700);
        --rds-fg: var(--rds-palette-grey-100);
        --rds-fg-muted: var(--rds-palette-grey-400);
        --rds-fg-faint: var(--rds-palette-grey-500);
        --rds-border: var(--rds-palette-grey-700);
        --rds-border-strong: var(--rds-palette-grey-500);

        --rds-accent: var(--rds-palette-accent-light);
        --rds-accent-hover: var(--rds-palette-accent);
        /* Dark re-points the accent at a LIGHT blue, which is what makes link
           text readable on a dark page. A light fill cannot also carry white
           text, so the accent FOREGROUND flips to ink here. The accent token
           itself is deliberately not darkened: that would fix the button by
           spoiling the link colour this branch exists to provide. */
        --rds-on-accent: var(--rds-palette-ink);

        /* Dark never had the light theme's problem — the light blue measures
           about 6.36:1 on the page and 5.78:1 on a panel — so link text here
           keeps exactly the colour it already had. The token exists in this
           branch so the two dark paths stay identical token for token. */
        --rds-link: var(--rds-palette-accent-light);

        --rds-danger: var(--rds-palette-danger-light);
        --rds-danger-surface: var(--rds-palette-danger-surface-dark);

        --rds-positive: var(--rds-palette-positive-light);

        --rds-notice-surface: var(--rds-palette-notice-surface-dark);
        --rds-notice-border: var(--rds-palette-notice-border-dark);
        --rds-notice-fg: var(--rds-palette-notice-ink-dark);

        --rds-focus-ring: var(--rds-palette-accent-light);

        /* A dark page needs a deeper shadow to read as elevation at all, and a
           wash built on the light accent rather than the dark one. */
        --rds-shadow-ambient: var(--rds-palette-shadow-ambient-dark);
        --rds-shadow-key: var(--rds-palette-shadow-key-dark);
        --rds-accent-wash: var(--rds-palette-accent-wash-dark);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --rds-bg: var(--rds-palette-grey-900);
    --rds-panel: var(--rds-palette-grey-800);
    --rds-panel-raised: var(--rds-palette-grey-700);
    --rds-fg: var(--rds-palette-grey-100);
    --rds-fg-muted: var(--rds-palette-grey-400);
    --rds-fg-faint: var(--rds-palette-grey-500);
    --rds-border: var(--rds-palette-grey-700);
    --rds-border-strong: var(--rds-palette-grey-500);

    --rds-accent: var(--rds-palette-accent-light);
    --rds-accent-hover: var(--rds-palette-accent);
    /* Same flip as the OS-driven branch above, for the same reason. The two
       dark paths must agree token for token or a forced theme and an OS theme
       would disagree about the same button. */
    --rds-on-accent: var(--rds-palette-ink);

    /* Same value as the OS-driven branch, for the same reason. */
    --rds-link: var(--rds-palette-accent-light);

    --rds-danger: var(--rds-palette-danger-light);
    --rds-danger-surface: var(--rds-palette-danger-surface-dark);

    /* Same flip as the OS-driven branch, and for the same reason the others
       are repeated: the two dark paths must agree token for token. */
    --rds-positive: var(--rds-palette-positive-light);

    --rds-notice-surface: var(--rds-palette-notice-surface-dark);
    --rds-notice-border: var(--rds-palette-notice-border-dark);
    --rds-notice-fg: var(--rds-palette-notice-ink-dark);

    --rds-focus-ring: var(--rds-palette-accent-light);

    /* Same three as the OS-driven branch above, for the same reason the colour
       tokens are repeated: the two dark paths must agree token for token. */
    --rds-shadow-ambient: var(--rds-palette-shadow-ambient-dark);
    --rds-shadow-key: var(--rds-palette-shadow-key-dark);
    --rds-accent-wash: var(--rds-palette-accent-wash-dark);
}

/* ===========================================================================
 * 2. TYPOGRAPHY
 * ======================================================================== */

:root {
    --rds-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --rds-font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

    --rds-text-sm: 0.85rem;
    --rds-text-base: 1rem;
    --rds-text-lg: 1.25rem;
    --rds-text-xl: 1.6rem;
    --rds-text-2xl: 2rem;

    --rds-leading: 1.5;
}

.rds-root {
    font-family: var(--rds-font-sans);
    font-size: var(--rds-text-base);
    line-height: var(--rds-leading);
    color: var(--rds-fg);
    background: var(--rds-bg);
    -webkit-text-size-adjust: 100%;
}

.rds-root *,
.rds-root *::before,
.rds-root *::after {
    box-sizing: border-box;
}

.rds-root h1,
.rds-root h2,
.rds-root h3 {
    margin: 0 0 var(--rds-space-3);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.rds-root h1 { font-size: var(--rds-text-xl); }
.rds-root h2 { font-size: var(--rds-text-lg); }
.rds-root h3 { font-size: var(--rds-text-base); }

.rds-root p { margin: 0 0 var(--rds-space-3); }

.rds-root a {
    color: var(--rds-link);
    text-decoration: none;
}

.rds-root a:hover { text-decoration: underline; }

/* A LINK INSIDE A SENTENCE IS UNDERLINED, PERMANENTLY. 1.8.1.
 *
 * WCAG 1.4.1 is about information conveyed by colour alone, and a blue run of
 * words inside a grey paragraph is precisely that: remove the hue — a
 * monochrome display, a colour-vision deficiency, a printout — and nothing
 * distinguishes the link from the prose around it. The rule above gave links
 * an underline on HOVER only, which is no help to a reader who cannot see the
 * colour and no help at all on a touchscreen, where there is no hover.
 *
 * SCOPED TO PROSE, because the rest of the system's links are already
 * distinguishable without colour and underlining them would be wrong:
 *
 *   - `a.rds-button` and its variants are bordered or filled boxes;
 *   - the shell's and Central Admin's navigation strips are lists of links in
 *     their own landmark, where every item is a link and none is prose;
 *   - `.rds-launch-link` covers a whole tile and declares `text-decoration:
 *     none` deliberately, because the tile is the affordance;
 *   - `.rds-card-title` is a heading-weight line at the top of a card.
 *
 * `:not([class])` is what separates the two sets, and it is a description
 * rather than a trick: in this system a presentational anchor always carries
 * the class that makes it one, and a link written into a sentence never does.
 * The container list is the four elements that actually hold prose here.
 *
 * Hover keeps its rule above. For these links it now changes nothing, which is
 * the point — the distinction no longer waits for a pointer. */
.rds-root p a:not([class]),
.rds-root li a:not([class]),
.rds-root dd a:not([class]),
.rds-root td a:not([class]) {
    text-decoration: underline;
}

/* `overflow-wrap: anywhere`, for exactly the reason 1.6.0 added it to the
 * launcher's two text classes. What goes in these elements is a path, an
 * identifier or a filename — text with no spaces and therefore no word boundary
 * to wrap at — so on a narrow viewport one of them drags the whole document
 * sideways. Measured at 73px past a 360px viewport from a single 36-character
 * document name inside `<code>`.
 *
 * `anywhere` rather than `break-word`: both break a long word, but `break-word`
 * does not let the unbreakable run reduce the element's intrinsic minimum width,
 * so a flex or grid track sized from its content still lays out as though the
 * word were one piece and the overflow returns. */
.rds-root code,
.rds-root kbd,
.rds-root samp {
    font-family: var(--rds-font-mono);
    font-size: var(--rds-text-sm);
    overflow-wrap: anywhere;
}

/* Secondary text. The one typographic modifier the seven families need. */
.rds-muted { color: var(--rds-fg-muted); }
.rds-small { font-size: var(--rds-text-sm); }

.rds-title {
    font-size: var(--rds-text-2xl);
    margin: 0 0 var(--rds-space-2);
}

/* Definition lists carry Platform's diagnostics and facts tables. Element-level
   because they are structure, not a component. */
.rds-root dl { margin: 0; }
.rds-root dt { font-weight: 600; }
.rds-root dd { margin: 0 0 var(--rds-space-3); color: var(--rds-fg-muted); }

.rds-root table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--rds-text-sm);
}

.rds-root th,
.rds-root td {
    text-align: left;
    padding: var(--rds-space-2) var(--rds-space-3);
    border-bottom: 1px solid var(--rds-border);
    vertical-align: middle;
}

.rds-root th { font-weight: 600; color: var(--rds-fg-muted); }

/* A TABLE THAT SCROLLS INSIDE ITSELF INSTEAD OF WIDENING THE PAGE.
 *
 * `table` above is `width: 100%`, which sets the *preferred* width and not a
 * maximum: a cell holding an unbreakable string — a destination URL, say —
 * pushes the table past its container, and because nothing between it and
 * `<body>` establishes a scroll container the whole document grows a
 * horizontal scrollbar. On a phone that drags the header, the heading and
 * every form sideways to read one column of one table.
 *
 * Two rules, because they fix two different halves of it. The container bounds
 * the overflow so it can never reach the page, and the wrap lets long values
 * break so there is usually no overflow left to scroll. The container alone
 * would leave a narrow screen permanently scrolled away from the Actions
 * column; the wrap alone cannot help a table whose columns genuinely do not
 * fit.
 *
 * Not a new family and not a component: it is the element-level table styling
 * above, given the containing block it always needed. */
.rds-table-scroll {
    overflow-x: auto;
    /* Room for a focus ring on a control at the very edge of the strip, which
       `overflow` would otherwise clip. */
    padding-bottom: var(--rds-space-1);
}

.rds-table-scroll td { overflow-wrap: anywhere; }

/* A WIDE TABLE THAT BECOMES ONE CARD PER ROW ON A NARROW VIEWPORT. 1.5.0.
 *
 * The container above bounds the overflow, which stopped a wide table dragging
 * the document sideways. It did not make the table readable: `width: 100%` is
 * still a preferred width, so the columns compress until a cell holding a
 * control breaks its label one character per line and a single row grows
 * taller than the screen. Scrolling a strip that narrow is not a usable
 * answer either.
 *
 * Below the breakpoint each row becomes a card. The header row is removed
 * from view but NOT from the accessibility tree, so a screen reader still
 * hears the column names; `display` changes strip a table's implicit ARIA
 * roles in most engines, so markup using this class declares `role="table"`,
 * `role="row"`, `role="columnheader"` and `role="cell"` explicitly and the
 * semantics survive the layout change.
 *
 * Cell ORDER inside the card is the markup's business, not this file's. This
 * block changes the boxes and nothing else, so a caller picks a column order
 * that reads correctly as a row AND as a stacked card rather than asking this
 * file to re-sort cells it knows nothing about.
 *
 * Opt-in: it is a second class beside `.rds-table-scroll`, so every existing
 * adopter of that container is untouched until it asks for this one. */
@media (max-width: 48rem) {
    .rds-table-cards {
        overflow-x: visible;
        padding-bottom: 0;
    }

    /* Out of sight, still in the accessibility tree. Not `display: none`,
       which would take the column names with it. */
    .rds-table-cards thead {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    .rds-table-cards tr {
        display: flex;
        flex-direction: column;
        gap: var(--rds-space-2);
        margin-bottom: var(--rds-space-3);
        padding: var(--rds-space-4);
        background: var(--rds-panel);
        border: 1px solid var(--rds-border);
        border-radius: var(--rds-radius);
    }

    .rds-table-cards td {
        display: block;
        padding: 0;
        border-bottom: 0;
    }

    /* An empty cell would otherwise contribute a gap of its own. */
    .rds-table-cards td:empty { display: none; }
}

/* ===========================================================================
 * 3. SPACING
 * ======================================================================== */

:root {
    --rds-space-1: 0.25rem;
    --rds-space-2: 0.5rem;
    --rds-space-3: 0.75rem;
    --rds-space-4: 1rem;
    --rds-space-5: 1.5rem;
    --rds-space-6: 2rem;
    --rds-space-7: 3rem;

    --rds-measure: 60rem;
    --rds-measure-narrow: 28rem;

    /* A card grid wants more room than a column of prose. Added in 1.1.0 for
       the project launcher, which looks starved at the 60rem prose measure. */
    --rds-measure-wide: 74rem;
    --rds-measure-prose: 44rem;
}

.rds-stack > * + * { margin-top: var(--rds-space-4); }
.rds-stack-tight > * + * { margin-top: var(--rds-space-2); }

/* ===========================================================================
 * 4. PAGE SHELL
 * ======================================================================== */

/* The page background is declared on BOTH the root and the body, deliberately.
   The root paints the canvas, which is what makes over-scroll and short pages
   look right. The body declaration is the page-shell contract proper: it is
   what `getComputedStyle(document.body).backgroundColor` reports, and it is
   what Slice 8 established before the design system existed. Setting it only on
   the root leaves body transparent, which looks identical and reads as a
   missing background to anything that inspects the document. */
.rds-root body,
body.rds-root {
    margin: 0;
    min-height: 100vh;
    background: var(--rds-bg);
}

.rds-shell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--rds-space-4);
    padding: var(--rds-space-3) var(--rds-space-5);
    background: var(--rds-panel);
    border-bottom: 1px solid var(--rds-border);
    box-shadow: var(--rds-elevation-1);
}

.rds-shell-brand {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.rds-shell-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rds-space-4);
}

/* THE SURFACE YOU ARE ALREADY ON. 1.5.0, and no new class.
 *
 * `aria-current="page"` is the markup that tells an assistive technology
 * which navigation item is the current one; this gives the same fact to
 * everyone else. It keys on the attribute rather than on a class so the two
 * cannot disagree — a visually marked item that forgot the attribute is not
 * expressible. */
.rds-shell-nav a[aria-current="page"] {
    color: var(--rds-fg);
    font-weight: 600;
    text-decoration: none;
}

/* Pushes everything after it to the far edge of the shell. */
.rds-shell-spacer { margin-left: auto; }

.rds-shell-meta {
    color: var(--rds-fg-muted);
    font-size: var(--rds-text-sm);
}

.rds-main {
    max-width: var(--rds-measure);
    margin: 0 auto;
    padding: var(--rds-space-6) var(--rds-space-5);
}

/* The launcher's wider measure. A modifier rather than a second shell class,
   so everything else about the main column stays one declaration. */
.rds-main-wide { max-width: var(--rds-measure-wide); }

/* A single centred column: the anonymous landing and the sign-in surface. */
.rds-centred {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: var(--rds-space-6);
}

.rds-centred-inner {
    width: 100%;
    max-width: var(--rds-measure-narrow);
    text-align: center;
}

.rds-section + .rds-section { margin-top: var(--rds-space-7); }

@media (max-width: 40rem) {
    .rds-main { padding: var(--rds-space-5) var(--rds-space-4); }
    .rds-shell { padding: var(--rds-space-3) var(--rds-space-4); }
}

/* ===========================================================================
 * 5. CARD
 * ======================================================================== */

.rds-card {
    background: var(--rds-panel);
    border: 1px solid var(--rds-border);
    border-radius: var(--rds-radius);
    padding: var(--rds-space-5);
}

.rds-card > :last-child { margin-bottom: 0; }

.rds-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: var(--rds-space-4);
    list-style: none;
    margin: 0;
    padding: 0;
}

.rds-card-title {
    display: block;
    font-weight: 600;
    font-size: var(--rds-text-base);
    margin-bottom: var(--rds-space-1);
}

.rds-card-icon {
    display: block;
    font-size: var(--rds-text-lg);
    margin-bottom: var(--rds-space-2);
}

/* A RECORD THAT IS PRESENT BUT NOT IN PLAY — a project hidden from the
 * Gateway, an account that is disabled. 1.8.1 changes how that is drawn.
 *
 * IT NO LONGER DIMS BY OPACITY, for the reason this file already records two
 * sections below and then met a second time, one scope larger. `opacity`
 * composites an entire subtree against what is behind it, so a 0.6 on the
 * CONTAINER reduced every descendant — not only the row's own secondary prose,
 * which was the intent, but the quiet buttons, the primary "Edit", the status
 * hint and the reorder arrows, which was not. Measured in the light theme on a
 * white panel: `--rds-fg-muted` text painted at about 2.51:1 against a
 * declared 6.05:1, "Edit" at about 2.71:1 against 4.73:1, the quiet controls
 * at about 2.51:1. The minimum for all of them is 4.5:1, and three of the four
 * are things a reader is meant to click. A control already carrying
 * `aria-disabled` multiplied its own 0.5 on top of that — correct for a
 * control that is genuinely inactive, and wrong for every one that is not.
 *
 * RECESS INSTEAD OF DIMMING. The distinction is now a surface and a border
 * style, neither of which touches a descendant's computed colour: the record
 * sits on `--rds-bg`, the page behind the panel, so it reads as a well rather
 * than a card, inside a dashed `--rds-border-strong` frame. Both are tokens,
 * so all three themes move with them, and the text inside is simply the colour
 * it always declared — about 5.65:1 for muted prose in light, 6.34:1 in dark.
 *
 * THE STATE WAS NEVER CARRIED BY THE DIMMING and still is not. Every adopter
 * says it in words: "Hidden from the Gateway." in Central Admin's project
 * list, "— disabled" beside an account's identity, "Hidden" and "Disabled" in
 * the Editor's state column, a sentence under the Editor's preview. The
 * opacity was reinforcement, so removing it loses no information — which is
 * what makes a presentation-only correction possible here at all.
 *
 * THE `tr` SELECTOR IS NOT REDUNDANT. Below 48rem `.rds-table-cards tr` sets
 * its own `background` and `border` to turn each row into a card, at equal
 * specificity to a bare class; repeating the class against the element name
 * matches that weight and wins on source order, so the Editor's hidden rows
 * stay recessed on a phone. A collapsed row has no border of its own to dash
 * at desktop width — the cells carry it — so the dash goes on the cell edge. */
.rds-card-muted,
tr.rds-card-muted {
    background: var(--rds-bg);
    border-style: dashed;
    border-color: var(--rds-border-strong);
}

tr.rds-card-muted > td {
    border-bottom-style: dashed;
    border-bottom-color: var(--rds-border-strong);
}

/* Card variants used for inline messages. Composing a notice from the card
   primitive is deliberate: it avoids introducing a status-feedback primitive
   before the visual contract is settled. */
.rds-card-notice {
    background: var(--rds-notice-surface);
    border-color: var(--rds-notice-border);
    color: var(--rds-notice-fg);
}

.rds-card-danger {
    background: var(--rds-danger-surface);
    border-color: var(--rds-danger);
    color: var(--rds-danger);
}

.rds-card-quiet {
    background: transparent;
    border-style: dashed;
    text-align: center;
    color: var(--rds-fg-muted);
}

/* An inline message is a card with the padding of a line of text rather than
   the padding of a panel. Added in 1.1.0 because all three notice variants
   above were being used for single sentences at panel padding. */
.rds-card-compact { padding: var(--rds-space-3) var(--rds-space-4); }

/* Opt-in elevation. Not on .rds-card itself: the editor and Central Admin are
   pages of stacked panels, and lifting every one of them off the page reads as
   noise rather than hierarchy. */
.rds-card-raised { box-shadow: var(--rds-elevation-2); }

/* A native <dialog> is a card the browser positions. Without this it keeps the
   user agent's white background, which is wrong in dark mode; this is the
   minimum needed for the card family to be coherent, and it is deliberately
   NOT a modal primitive — no backdrop choreography, no sizing system, no
   open/close behaviour. */
.rds-root dialog {
    background: var(--rds-panel);
    color: var(--rds-fg);
    border: 1px solid var(--rds-border);
    border-radius: var(--rds-radius);
    padding: var(--rds-space-5);
    max-width: var(--rds-measure-narrow);
}

.rds-root dialog::backdrop { background: var(--rds-palette-scrim); }

/* ===========================================================================
 * 6. BUTTON
 * ======================================================================== */

.rds-button {
    display: inline-block;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    padding: var(--rds-space-2) var(--rds-space-4);
    border: 1px solid var(--rds-border-strong);
    border-radius: var(--rds-radius-sm);
    background: var(--rds-panel);
    color: var(--rds-fg);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition:
        background-color var(--rds-transition),
        border-color var(--rds-transition),
        color var(--rds-transition);
}

.rds-button:hover {
    background: var(--rds-panel-raised);
    text-decoration: none;
}

.rds-button:focus-visible,
.rds-field-input:focus-visible,
.rds-root a:focus-visible {
    outline: 2px solid var(--rds-focus-ring);
    outline-offset: 2px;
}

.rds-button-primary {
    background: var(--rds-accent);
    border-color: var(--rds-accent);
    color: var(--rds-on-accent);
}

.rds-button-primary:hover {
    background: var(--rds-accent-hover);
    border-color: var(--rds-accent-hover);
}

/* An ANCHOR styled as a button. This is not a variant — it is a specificity
 * repair, and it fixes a real defect rather than a hypothetical one.
 *
 * The element rule `.rds-root a` sets link colour and scores (0,1,1). Every
 * class in this family scores (0,1,0), so for an `<a class="rds-button …">`
 * the link colour WON and the button's own colour was discarded. On the
 * primary variant that meant `--rds-accent` text on an `--rds-accent` fill:
 * a contrast ratio of 1, an invisible label. The anonymous landing page's
 * "Sign in" — the one control on the one page a visitor can always reach —
 * rendered exactly that way.
 *
 * Note that the token-level contrast rules were never violated:
 * `--rds-on-accent` and `--rds-accent` are a correct pair in all three themes.
 * The foreground simply never reached the element, which is why this is
 * repaired at the selector and is regression-tested by reading COMPUTED colour
 * in a browser rather than by comparing tokens.
 */
.rds-root a.rds-button { color: var(--rds-fg); }

.rds-root a.rds-button-primary { color: var(--rds-on-accent); }

.rds-root a.rds-button-danger { color: var(--rds-danger); }

.rds-root a.rds-button-quiet { color: var(--rds-fg-muted); }

.rds-root a.rds-button-quiet:hover { color: var(--rds-fg); }

.rds-button-danger {
    color: var(--rds-danger);
    border-color: var(--rds-danger);
}

.rds-button-quiet {
    background: transparent;
    border-color: transparent;
    font-weight: 400;
    color: var(--rds-fg-muted);
    padding-left: var(--rds-space-2);
    padding-right: var(--rds-space-2);
}

.rds-button-quiet:hover {
    background: var(--rds-panel-raised);
    color: var(--rds-fg);
}

.rds-button[disabled],
.rds-button[aria-disabled="true"] {
    opacity: 0.5;
    cursor: default;
}

/* A SQUARE BUTTON WHOSE LABEL IS A GLYPH, sized for a fingertip.
 *
 * `.rds-button`'s padding is tuned for a word. Give it a single character and
 * the result is roughly 2rem square — fine for a mouse, under the ~2.75rem a
 * touch target wants, and the Gateway Editor's reorder arrows are precisely
 * the controls a phone has to hit. The minimums are floors rather than fixed
 * sizes, so the button still grows with the user's font size.
 *
 * `inline-flex` replaces family 6's `inline-block` only here, because a
 * min-height box has to centre its glyph vertically and `inline-block` cannot.
 *
 * The accessible name of such a button lives in `aria-label`: the glyph is
 * decoration and is marked `aria-hidden`, so without that label the control
 * would announce as nothing at all. */
.rds-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: var(--rds-space-2);
    line-height: 1;
}

.rds-button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--rds-space-2);
}

/* A full-width call to action. The sign-in button is the one control on its
   page, and a 7rem button floating in a 28rem card reads as an afterthought.
   Taller too: this is the primary target on a phone. */
.rds-button-block {
    display: block;
    width: 100%;
    padding-top: var(--rds-space-3);
    padding-bottom: var(--rds-space-3);
}

/* ===========================================================================
 * 7. FORM FIELD
 * ======================================================================== */

.rds-form { margin: 0; }

.rds-field {
    display: block;
    margin-bottom: var(--rds-space-4);
}

.rds-field-label {
    display: block;
    font-weight: 600;
    font-size: var(--rds-text-sm);
    margin-bottom: var(--rds-space-1);
}

.rds-field-input {
    display: block;
    width: 100%;
    font: inherit;
    color: var(--rds-fg);
    background: var(--rds-panel);
    border: 1px solid var(--rds-border-strong);
    border-radius: var(--rds-radius-sm);
    padding: var(--rds-space-2) var(--rds-space-3);
    transition: border-color var(--rds-transition);
}

.rds-field-input::placeholder { color: var(--rds-fg-faint); }

/* The border tracks focus as well as the ring, so the active field is obvious
   even where a platform draws a faint outline. */
.rds-field-input:focus { border-color: var(--rds-accent); }

/* Password-manager autofill, kept WORKING and kept readable.
 *
 * This does not suppress or interfere with autofill — the field fills exactly
 * as it would without these rules. It only repaints what Chromium paints over
 * the field once it has: the user-agent autofill background is an opaque light
 * colour, which on a dark panel leaves dark text on it unreadable. Repainting
 * with the panel token keeps the filled field identical to an unfilled one in
 * both themes.
 *
 * AUTOFILL_SUPPRESSED = NO. The `inset` box-shadow is the only way to override
 * that background; `background` itself is ignored for this pseudo-class.
 */
.rds-field-input:-webkit-autofill,
.rds-field-input:-webkit-autofill:hover,
.rds-field-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--rds-fg);
    -webkit-box-shadow: 0 0 0 100px var(--rds-panel) inset;
    box-shadow: 0 0 0 100px var(--rds-panel) inset;
    caret-color: var(--rds-fg);
}

/* Checkboxes and radios are intrinsically sized; the full-width rule above is
   for text-like controls only. */
.rds-field-choice {
    display: flex;
    align-items: center;
    gap: var(--rds-space-2);
    margin-bottom: var(--rds-space-2);
    font-size: var(--rds-text-base);
}

.rds-field-choice input {
    width: auto;
    margin: 0;
    accent-color: var(--rds-accent);
}

.rds-field-hint {
    display: block;
    margin-top: var(--rds-space-1);
    font-size: var(--rds-text-sm);
    color: var(--rds-fg-muted);
}

.rds-field-error {
    display: block;
    margin-top: var(--rds-space-1);
    font-size: var(--rds-text-sm);
    color: var(--rds-danger);
}

.rds-field-input[aria-invalid="true"] { border-color: var(--rds-danger); }

/* A FIELD WHOSE VALUE IS READ CHARACTER BY CHARACTER. 1.5.0.
 *
 * An identifier that is checked against a value on another screen — a UUID,
 * a hash, a key — is misread in a proportional face, where `0`/`O` and
 * `1`/`l` are not reliably distinguishable. A modifier rather than a new
 * field type, so it composes with `.rds-field-input` and inherits its border,
 * focus ring and autofill repaint unchanged.
 *
 * `overflow-wrap: anywhere` is the half that makes the value READABLE rather
 * than merely monospaced. Such an identifier is one unbreakable token, and a
 * 36-character one does not fit a phone-width card however the row around it
 * is arranged — a field beside a control, a field with the control below it,
 * a smaller size: all of them still clip it. Wrapping is the only arrangement
 * that shows the whole value at every width without pushing the page sideways.
 *
 * It does nothing on an `<input>`, which cannot wrap. Compose this class onto a
 * block element — a `<code>`, say — where the whole value must always be
 * visible, and onto an input where a scrollable field is the right affordance.
 * Both get the same frame and the same face. */
.rds-field-code {
    font-family: var(--rds-font-mono);
    font-size: var(--rds-text-sm);
    overflow-wrap: anywhere;
}

/* NO `.rds-field-grow` CLASS, AND THE REASON IS WORTH KEEPING.
 *
 * S13 item 2 needed a 36-character identifier to be readable, and the obvious
 * move was a field that takes the free space beside its control inside a
 * `.rds-field-row`. It does not work: `flex-shrink` prefers to SHRINK an item
 * rather than wrap it, so a generous basis still leaves the field squeezed
 * beside the control on a narrow row, and the min-width floor that would force
 * the wrap is the same floor that pushes the row past a 320px screen.
 *
 * The surface that needed it stacks its field above its control instead, which
 * needs no class at all: a `.rds-field` is already full width, so it is already
 * as wide as the card. A primitive added here would have been a worse answer
 * than the markup, and this file is not the place to keep one that is. */

.rds-fieldset {
    border: 0;
    margin: 0 0 var(--rds-space-4);
    padding: 0;
    min-width: 0;
}

/* A fieldset that is ALSO a card keeps the card's frame.
 *
 * `.rds-fieldset` strips the user-agent border and padding, which is right for
 * a bare grouping. But both of its rules score (0,1,0) and so does `.rds-card`,
 * and this family is declared later in the file — so for
 * `<fieldset class="rds-card rds-fieldset">` the stripping WON and the card lost
 * the padding and border it had just asked for. The Gateway Editor's add/edit
 * form and its capability panel are both that combination: their labels sat on
 * the card's top edge and their inputs ran flush to its sides.
 *
 * Restored at (0,2,0) rather than by reordering the two families, because the
 * order is not the bug — either order breaks one of the two cases, and an
 * explicit rule for the combination says which one is intended.
 *
 * This is a long-standing defect, not a 1.1.0 regression: the two families have
 * been in this order since the stylesheet was written.
 */
.rds-card.rds-fieldset {
    padding: var(--rds-space-5);
    border: 1px solid var(--rds-border);
}

.rds-fieldset > legend {
    padding: 0;
    font-weight: 600;
    font-size: var(--rds-text-sm);
    margin-bottom: var(--rds-space-2);
}

.rds-field-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--rds-space-3);
}

.rds-field-row .rds-field { margin-bottom: 0; }

/* DISCLOSURE — a group of fields the owner can fold away.
 *
 * ELEMENT SELECTORS, scoped under `.rds-root`, and no new class at all. That is
 * deliberate rather than lazy: `<details>` already carries the open/closed
 * state, the keyboard behaviour and the accessible expanded/collapsed
 * announcement, in every engine, with no script. A class would have added a
 * name to remember and would still have had to style these same two elements.
 *
 * Only the user-agent's rough edges are addressed — the summary's default
 * cursor, its missing focus affordance and its lack of spacing. The
 * open/closed mechanics are left entirely to the browser, so a fold cannot
 * disagree with what assistive technology is told.
 *
 * **THE NATIVE MARKER IS KEPT.** An earlier revision of this block suppressed
 * it with `list-style: none` and a `::-webkit-details-marker` rule, and drew a
 * replacement from markup the summary had to carry. That took the disclosure
 * triangle away from EVERY `<details>` under `.rds-root` while giving it back
 * only to the one markup that opted in — so any ordinary disclosure written
 * later would have silently lost its only visual indicator. Styling the
 * surroundings and leaving the marker alone costs nothing and cannot regress
 * a surface this file has never seen.
 *
 * NOT A SETTINGS GROUPING PRIMITIVE and not an accordion: there is no
 * single-open-at-a-time behaviour, no animation and no chrome. Two sibling
 * disclosures are two independent folds.
 */
.rds-root details { margin: 0 0 var(--rds-space-3); }

.rds-root details > summary {
    cursor: pointer;
    font-weight: 600;
    font-size: var(--rds-text-sm);
    padding: var(--rds-space-2) 0;
}

/* The focus ring is the same one every other control uses. A summary is
 * focusable by default, and the user agent's outline is the one thing here that
 * would have looked foreign beside the rest of this file. */
.rds-root details > summary:focus-visible {
    outline: 2px solid var(--rds-focus-ring);
    outline-offset: 2px;
    border-radius: var(--rds-radius-sm);
}

/* An open fold reads as containing its fields rather than merely preceding
 * them.
 *
 * PADDING ON THE FOLD, NOT A MARGIN ON ITS CHILDREN. The obvious spelling —
 * `details[open] > :not(summary) { margin-left: … }` — overflows: a margin sits
 * OUTSIDE the box, and these children are form fields at `width: 100%`, so each
 * one ended up wider than the space available to it. Padding on the fold is
 * inside `box-sizing: border-box`, so it narrows the content box and a
 * full-width child still fits. Measured on a 360px viewport, which is where the
 * difference between the two is visible at all. */
.rds-root details[open] {
    padding-left: var(--rds-space-3);
    border-left: 2px solid var(--rds-border);
}

/* ===========================================================================
 * 8. BRAND LOCKUP
 *
 * Added in 1.1.0. Three surfaces — sign-in, the anonymous landing and the
 * Gateway shell — all need to say "Radoslav.online Platform" with the same
 * weight and the same mark, and before this they each spelled it differently.
 *
 * The mark is a typographic monogram, not an image: `url()` is forbidden in
 * this file, and a letter in a tinted tile needs no asset, no second request
 * and no alt text.
 * ======================================================================== */

.rds-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--rds-space-3);
    color: var(--rds-fg);
    text-decoration: none;
}

.rds-brand:hover { text-decoration: none; }

.rds-brand-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--rds-radius-sm);
    background: var(--rds-accent);
    color: var(--rds-on-accent);
    font-weight: 700;
    line-height: 1;
}

.rds-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.rds-brand-name {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.rds-brand-sub {
    font-size: var(--rds-text-sm);
    color: var(--rds-fg-muted);
}

/* The larger lockup, for a page whose only subject is the brand. */
.rds-brand-lg { gap: var(--rds-space-4); }

.rds-brand-lg .rds-brand-mark {
    width: 3rem;
    height: 3rem;
    border-radius: var(--rds-radius);
    font-size: var(--rds-text-lg);
}

.rds-brand-lg .rds-brand-name { font-size: var(--rds-text-lg); }

/* ===========================================================================
 * 9. AUTH SURFACE
 *
 * Added in 1.1.0. The full-height, single-card layout shared by sign-in and the
 * anonymous landing. It supersedes `.rds-centred` for those two pages, which is
 * kept because it is a general primitive and an adopter may be using it.
 *
 * The backdrop is a gradient over the page token, not an image, and it is built
 * from `--rds-accent-wash` so it re-points with the theme like everything else.
 * ======================================================================== */

.rds-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /* Preferred where supported: on a phone `100vh` is the pre-scroll viewport,
       which leaves the card visually low. Declared second so a browser that
       does not know the unit keeps the line above. */
    min-height: 100dvh;
    padding: var(--rds-space-6) var(--rds-space-4);
    background-image: radial-gradient(
        48rem 32rem at 50% -8%,
        var(--rds-accent-wash),
        transparent 72%
    );
    background-repeat: no-repeat;
}

.rds-auth-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--rds-space-5);
    width: 100%;
    max-width: var(--rds-measure-narrow);
}

.rds-auth-brand { align-self: center; }

.rds-auth-card {
    padding: var(--rds-space-6);
    border-radius: var(--rds-radius-lg);
    box-shadow: var(--rds-elevation-2);
}

.rds-auth-head { margin-bottom: var(--rds-space-5); }

.rds-auth-head > :last-child { margin-bottom: 0; }

.rds-auth-head h1 { margin-bottom: var(--rds-space-1); }

.rds-auth-foot {
    margin: 0;
    text-align: center;
}

/* A quiet "this is happening, wait" line, for an auth surface that is a
 * TRANSITION rather than a form.
 *
 * Added in 1.4.0 for the handoff interstitial, which is the one Platform page
 * whose whole purpose is to leave again immediately: it has nothing to fill in
 * and nothing to decide, so a form's vocabulary says the wrong thing and an
 * empty card says nothing at all.
 *
 * THE MEANING IS IN THE TEXT, NEVER IN THE MOTION. The ring is drawn by
 * `::before` with empty generated content, so it is decorative, carries no
 * accessible name and adds no element to the accessibility tree; what a screen
 * reader announces is the sentence beside it. That ordering is deliberate: the
 * reduced-motion branch at the end of this file stops the ring turning, and a
 * page whose only progress signal was the spin would then say nothing — so the
 * sentence has to be load-bearing and the ring has to be the ornament.
 *
 * NOT A PROGRESS BAR AND NOT A STATE COMPONENT. It reports no percentage, no
 * outcome and no error; it cannot be driven, and nothing sets it. The deferred
 * feedback primitive in the list at the top of this file stays deferred.
 *
 *   ACCESSIBLE_NAME_FROM_THE_ORNAMENT = NO
 *   MEANING_SURVIVES_REDUCED_MOTION   = YES
 *   DRIVEN_BY_SCRIPT                  = NO
 */
.rds-auth-wait {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--rds-space-3);
    margin: 0 0 var(--rds-space-5);
    color: var(--rds-fg-muted);
    font-size: var(--rds-text-sm);
}

.rds-auth-wait::before {
    content: "";
    flex: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--rds-border-strong);
    border-top-color: var(--rds-accent);
    border-radius: 50%;
    animation: rds-auth-wait-spin 900ms linear infinite;
}

@keyframes rds-auth-wait-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 30rem) {
    .rds-auth { padding: var(--rds-space-5) var(--rds-space-3); }
    .rds-auth-card { padding: var(--rds-space-5); }
}

/* ===========================================================================
 * 10. PROJECT LAUNCHER
 *
 * Added in 1.1.0. The Gateway is a launcher, and `.rds-card-grid` — a generic
 * grid of panels — was never that. A launcher tile differs in three ways that
 * matter: the whole tile navigates, the icon is a treatment rather than a
 * character, and a tile that cannot be navigated has to say so visibly.
 *
 * ## The whole tile navigates
 *
 * The anchor covers the tile with an absolutely positioned `::after` overlay.
 * That is deliberate, and the alternative was worse: wrapping the description
 * inside the anchor would fold it into the link's accessible name, so a screen
 * reader would announce the entire paragraph as the link text. With the overlay
 * the accessible name is exactly the project name, the description stays
 * ordinary prose, and every pixel of the tile is still the same click target.
 *
 * The focus ring is drawn on that overlay rather than the anchor, so keyboard
 * focus outlines the whole tile and not the few characters of the name.
 *
 *   FULL_TILE_CLICK_TARGET      = YES
 *   DESCRIPTION_IN_LINK_NAME    = NO
 *   FOCUS_RING_MATCHES_TARGET   = YES
 * ======================================================================== */

.rds-page-head { margin-bottom: var(--rds-space-6); }

.rds-page-head > :last-child { margin-bottom: 0; }

/* The one-line introduction under a page title. Slightly larger than body text
   and held to a prose measure so it does not run the full grid width. */
.rds-lede {
    font-size: var(--rds-text-lg);
    max-width: var(--rds-measure-prose);
}

.rds-launch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: var(--rds-space-4);
    list-style: none;
    margin: 0;
    padding: 0;
}

.rds-launch {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--rds-space-5);
    background: var(--rds-panel);
    border: 1px solid var(--rds-border);
    border-radius: var(--rds-radius-lg);
    box-shadow: var(--rds-elevation-1);
    transition:
        border-color var(--rds-transition),
        box-shadow var(--rds-transition),
        transform var(--rds-transition);
}

/* Hover is declared on the tile, not the anchor: the overlay means a pointer
   anywhere over the tile is already over the link, and a parent cannot be
   styled from its child. */
.rds-launch:hover {
    border-color: var(--rds-border-strong);
    box-shadow: var(--rds-elevation-2);
    transform: translateY(-2px);
}

.rds-launch-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: var(--rds-space-4);
    border: 1px solid var(--rds-border);
    border-radius: var(--rds-radius);
    background: var(--rds-accent-wash);
    font-size: var(--rds-text-xl);
    line-height: 1;
}

.rds-launch-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.rds-launch-link:hover { text-decoration: none; }

.rds-launch-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--rds-radius-lg);
}

/* The anchor's own ring is replaced, not removed: the overlay below carries a
   ring of the same weight around the whole tile. */
.rds-launch-link:focus-visible { outline: none; }

.rds-launch-link:focus-visible::after {
    outline: 2px solid var(--rds-focus-ring);
    outline-offset: 3px;
}

.rds-launch-name {
    display: block;
    font-weight: 600;
    font-size: var(--rds-text-lg);
    letter-spacing: -0.01em;
    color: var(--rds-fg);

    /* A project name is owner-supplied text of no guaranteed shape, and a long
       name with no spaces in it cannot wrap at a word boundary because it has
       none. Without this it overflows its card and pushes the whole page
       sideways on a phone — measured at 35px past a 360px viewport under a wide
       font stack, which is why it reproduced on a Linux CI runner and not on a
       Windows developer machine.

       `anywhere` rather than `break-word`: the two differ in exactly the case
       that matters here. Both break a long word, but `break-word` does not let
       the unbreakable run shrink the element's intrinsic minimum width, so a
       grid or flex track sized from its content is still laid out as if the
       word were one piece — and the overflow comes back. `anywhere` lets the
       minimum width collapse, which is what a card in a track needs.

       Applied to the name and the description together: the description is the
       same kind of text from the same form and has the same failure. */
    overflow-wrap: anywhere;
}

.rds-launch-text {
    margin: var(--rds-space-2) 0 0;
    font-size: var(--rds-text-sm);
    color: var(--rds-fg-muted);
    overflow-wrap: anywhere;
}

/* A tile that is not navigable — a disabled project, or one whose stored
   destination the read model refused. Dashed and flat rather than merely faded:
   `opacity` alone would dim the text below the contrast floor, and would read
   as "loading" rather than "unavailable". */
.rds-launch-inert {
    background: transparent;
    border-style: dashed;
    box-shadow: none;
}

.rds-launch-inert:hover {
    border-color: var(--rds-border);
    box-shadow: none;
    transform: none;
}

.rds-launch-inert .rds-launch-name { color: var(--rds-fg-muted); }

.rds-launch-inert .rds-launch-icon { background: transparent; }

/* "Not available to open." — the sentence under an inert tile.
 *
 * 1.8.1: `--rds-fg-muted`, not `--rds-fg-faint`. This is the THIRD time this
 * system has dimmed the one sentence that explains why something is unavailable
 * and cost it AA contrast, and the third correction of the same mistake: 1.8.0
 * removed an `opacity: 0.8` from `.rds-empty-state-detail` (3.84:1), 1.8.1
 * removed the `opacity: 0.6` from `.rds-card-muted` (2.51:1), and this is the
 * same shape a third way — a faint token instead of an opacity.
 *
 * An inert tile declares `background: transparent`, so this text sits on the
 * page: `--rds-fg-faint` is `grey-400`, which measures about 2.51:1 there
 * against the 4.5:1 minimum for normal text. `--rds-fg-muted` is the token for
 * secondary text that still has to be read — about 5.65:1 light, 6.34:1 dark —
 * and it is already what `.rds-launch-inert .rds-launch-name` beside it uses.
 *
 * The TILE is still plainly inert without the dimming, and by design rather
 * than by this token: the frame goes dashed, the shadow and the hover transform
 * are removed, the icon wash is dropped, and there is no anchor to activate.
 * The note is the part a reader needs, so it is the part that stops receding.
 *
 * `--rds-fg-faint` keeps its other uses. A placeholder and a disabled status
 * are different cases, and a general audit of that token is outside this
 * revision. */
.rds-launch-note {
    margin: var(--rds-space-3) 0 0;
    font-size: var(--rds-text-sm);
    color: var(--rds-fg-muted);
}

/* A SECOND control inside a launch tile. Added in 1.2.0, and it is a
 * specificity-free stacking repair rather than a new component: the row itself
 * is the plain `.rds-button-row` from family 6.
 *
 * `.rds-launch-link::after` stretches the project link over the entire tile, so
 * every later control sits UNDER it. Without this rule such a control is still
 * focusable and still announced, but neither clickable nor tappable — a
 * keyboard user could reach an action a pointer user could not, which is worse
 * than not offering it at all. Lifting the row out from under the overlay fixes
 * pointer, touch and hit-testing in one place; tab order needs nothing, because
 * the row follows the anchor in document order, and the focus ring needs
 * nothing, because `.rds-button:focus-visible` already applies.
 *
 * `margin-top: auto` pushes the row to the bottom of the tile's flex column, so
 * tiles whose descriptions differ in length still line their actions up. */
.rds-launch .rds-button-row {
    position: relative;
    z-index: 1;
    margin: auto 0 0;
    padding-top: var(--rds-space-4);
}

/* THE TILE'S ACTION BLOCK, AND ITS ONE PRIMARY ACTION. 1.5.0.
 *
 * ## What changed, and why it is not a restyle of 1.2.0
 *
 * Until now the stretched anchor was the project NAME, and a tile's only
 * visible controls were its secondary ones — so the action a person actually
 * came to perform was the one with no control at all, and a project with no
 * administration URL offered nothing to click. The fix is not to add a second
 * link next to the first: two anchors to one destination is a redundant focus
 * stop and a duplicate announcement, and a decorative look-alike that
 * intercepts the overlay is worse again.
 *
 * So the overlay MOVES. The primary action is a real control, it is the only
 * link to the destination, and it carries the stretch — one element, one focus
 * stop, one accessible name, and the whole tile is still the click target.
 *
 * `.rds-launch-link` is retained above, unchanged, for adopters composing a
 * tile the 1.1.0 way. The two are alternatives; a tile using both would have
 * two overlays and two links, which is the thing this revision exists to stop.
 *
 * ## The containing block is the reason for the wrapper
 *
 * `inset: 0` resolves against the nearest POSITIONED ancestor. The repair
 * above makes `.rds-launch .rds-button-row` positioned, so a primary action
 * rendered inside that row would stretch over the row rather than the tile.
 * This wrapper is deliberately unpositioned: the primary's overlay therefore
 * resolves against `.rds-launch`, and the secondary row — still positioned and
 * still at `z-index: 1` — keeps escaping it exactly as it did before.
 *
 * `margin: auto 0 0` moves to the wrapper, so the block sits at the foot of
 * the tile as one unit and tiles with different description lengths still line
 * their actions up. The row inside it no longer needs its own auto margin or
 * its own top padding, and the two declarations that would otherwise double
 * the spacing are reset here rather than weakened above — an adopter not using
 * the wrapper is unaffected. */
.rds-launch-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--rds-space-2);
    margin: auto 0 0;
    padding-top: var(--rds-space-4);
}

.rds-launch-actions .rds-button-row {
    margin: 0;
    padding-top: 0;
}

.rds-launch-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--rds-radius-lg);
}

/* The control's own ring is replaced, not removed: the overlay carries a ring
   of the same weight around the whole tile, which is the target a pointer
   gets. Identical in intent to the `.rds-launch-link` pair above. */
.rds-launch-primary:focus-visible { outline: none; }

.rds-launch-primary:focus-visible::after {
    outline: 2px solid var(--rds-focus-ring);
    outline-offset: 3px;
}

/* A REACHABILITY INDICATOR. 1.6.0.
 *
 * ## Colour is never the only signal
 *
 * Every state renders its own WORD — Reachable, Unknown, Degraded, Disabled —
 * and the dot repeats that word in colour. That ordering is deliberate: a
 * coloured dot alone would be unreadable to anyone who cannot distinguish the
 * hues, and the four states are not a severity scale where position could
 * carry the meaning instead. The colour is redundant encoding, which is the
 * only kind of colour coding that is safe to use.
 *
 * The dot is a `::before` on the label rather than an element, so no markup
 * carries a presentational span and no template can forget it.
 *
 * ## It is not a badge, and not a button
 *
 * No fill, no border, no pill. A status indicator that looked like a control
 * on a card whose whole surface is already a click target would invite a click
 * that does nothing — and this one genuinely does nothing: there is no detail
 * view to open, because the only detail is in the CLI. Quiet text with a dot
 * reads as information rather than as an affordance.
 *
 * ## It sits ABOVE the action block, inside the tile's normal flow
 *
 * `.rds-launch-actions` carries `margin-top: auto`, so it stays pinned to the
 * bottom of the tile and this line never displaces it. The status therefore
 * belongs to the tile's text, which is what it describes, and the actions stay
 * aligned across a row of tiles whose descriptions differ in length. */
.rds-launch-status {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--rds-space-1) var(--rds-space-2);
    margin: var(--rds-space-3) 0 0;
    font-size: var(--rds-text-sm);
}

.rds-status {
    display: inline-flex;
    align-items: baseline;
    gap: var(--rds-space-2);
    font-weight: 600;
    color: var(--rds-fg-muted);
}

.rds-status::before {
    content: "";
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: currentcolor;
    /* Nudged off the baseline the flex row aligns to, so the dot centres on
       the text's x-height rather than sitting on its underside. */
    transform: translateY(-0.05rem);
}

.rds-status-reachable { color: var(--rds-positive); }

.rds-status-degraded { color: var(--rds-danger); }

/* Unknown keeps the muted default above and is listed for completeness: a
   reader checking that all four states are styled should find all four. */
.rds-status-unknown { color: var(--rds-fg-muted); }

/* Fainter than Unknown, and the distinction is the point. "Unknown" is a
   question nobody has answered; "Disabled" is a decision the owner made, so it
   recedes rather than asking to be looked at. */
.rds-status-disabled { color: var(--rds-fg-faint); }

.rds-launch-status-time {
    color: var(--rds-fg-faint);
}

/* TEXT FOR ASSISTIVE TECHNOLOGY ONLY. 1.6.0.
 *
 * Added because the status indicator needs it and there was nowhere to put it:
 * the visible label is one word, and one word cannot say that "Reachable"
 * means a network endpoint answered rather than that the application is
 * working. That sentence belongs in the accessibility tree, not on the card.
 *
 * The declarations are the standard set, and each one is load-bearing:
 * `clip-path` hides it visually, the 1px box keeps it in the layout so screen
 * readers still announce it, `white-space: nowrap` stops a 1px box from
 * wrapping the text into a tall sliver, and the negative margin removes the
 * 1px from the visible flow. `display: none` would be simpler and would also
 * remove it from the accessibility tree, which is the opposite of the point.
 *
 * `.rds-table-cards thead` (1.5.0) inlines these same declarations and is
 * deliberately NOT refactored to use this class: a pinned sibling copy of
 * 1.5.0 composes that rule as it stands, and changing what an existing class
 * requires is exactly the compatibility break the adoption contract forbids. */
.rds-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ===========================================================================
 * 11. EMPTY STATE
 * ======================================================================== */

/* THE ZERO-STATE FAMILY. 1.8.0.
 *
 * Promoted for the reason every family here is promoted: the same shape was
 * being composed by hand on more than one surface. Eight branches across the
 * Gateway, the Gateway Editor and Central Admin each said "there is nothing to
 * show" or "this could not be read", and they said it three structurally
 * different ways — a `<section>` carrying the card and quiet variants with a
 * heading, a `<p>` carrying card, quiet, compact and small with no heading, and
 * a bare `<p class="rds-muted">`. Same meaning, three frames, inconsistent
 * heading levels and two different type sizes.
 *
 * ## THREE STATES, AND THE DISTINCTION IS THE WHOLE POINT
 *
 * These are not severities and not a scale. They answer three different
 * questions, and collapsing any two of them tells the reader something untrue:
 *
 *   -none         the collection is empty, and the surface KNOWS it is empty
 *                 because it reads the collection whole. A real, current
 *                 answer about the collection itself.
 *   -hidden       nothing is visible ON THIS SURFACE. A real, current answer
 *                 about visibility — and deliberately NOT a claim that the
 *                 collection has contents. A surface that reads a filtered
 *                 projection cannot tell an empty collection from one whose
 *                 every member is filtered out, and it must not pretend
 *                 otherwise; what it can say is that the next step may be to
 *                 unhide rather than to add.
 *   -unavailable  the read failed. NOT an answer about the collection at all.
 *                 Whatever is in it is unaffected and simply cannot be seen.
 *
 * The last one is the one that matters most. A failed read rendered as an empty
 * collection invites an owner to add something they already have, or to believe
 * data is gone when it is not, and that is exactly the mistake the Gateway
 * found and corrected in its own degraded-empty branch.
 *
 * ## BORDER STYLE CARRIES THE STATE, NOT COLOUR
 *
 * Dashed for an empty collection, dotted for contents that are hidden, solid
 * plus the notice surface for a failed read. Three different border styles mean
 * the three states remain distinguishable without colour vision, and the
 * notice treatment is reserved for the only one of the three that reports a
 * problem. Colour, where it appears, is redundant encoding over a border style
 * and over wording that already differs — the same ordering family 10's
 * indicator uses.
 *
 * ## NO ICON, DELIBERATELY
 *
 * Two of these states share a calm frame and could have been separated by a
 * glyph instead. They are not, for two reasons. The wording and the border
 * already separate them, so a glyph would be decoration rather than
 * information; and the obvious candidates are characters with emoji
 * presentation on at least one major platform, which would put a colour on the
 * page that this file's palette does not declare and cannot control. A family
 * that cannot guarantee its own colours is not ready to ship one.
 *
 * ## TITLED AND COMPACT ARE THE SAME FAMILY
 *
 * A titled state is a block with a heading, body prose and an optional action.
 * A compact state is one quiet line in the flow of a section that has its own
 * heading already. Both are this family, because they say the same kind of
 * thing and should look related; what differs is how much room the surface has
 * to say it in.
 *
 * `.rds-empty-state-title` exists so that visual weight does not depend on
 * heading level. A section already owning an `<h2>` must introduce its zero
 * state with an `<h3>` to keep the document outline honest, and it should not
 * look like a smaller thing for having done so.
 *
 * ## NO MARGIN ON THE BLOCK
 *
 * Spacing comes from the element the class lands on — `.rds-root p` already
 * carries a bottom margin, and a `<section>` composes `.rds-section` when it
 * needs one. Setting a margin here would have shifted every existing call site
 * the moment it adopted the class. */
.rds-empty-state {
    border: 1px dashed var(--rds-border);
    border-radius: var(--rds-radius);
    padding: var(--rds-space-5);
    background: transparent;
    color: var(--rds-fg);
    text-align: center;
}

.rds-empty-state > :last-child { margin-bottom: 0; }

/* ONE QUIET LINE, NOT A PANEL. The same relationship `.rds-card-compact` has
   to `.rds-card`: text padding instead of panel padding. Left-aligned, because
   a single sentence centred inside a section that is itself left-aligned reads
   as a different kind of element rather than as part of the section. */
.rds-empty-state-compact {
    padding: var(--rds-space-3) var(--rds-space-4);
    font-size: var(--rds-text-sm);
    color: var(--rds-fg-muted);
    text-align: left;
}

/* THE COLLECTION IS EMPTY. Dashed: an outline around nothing, waiting to be
   filled. This is the family default and is stated explicitly anyway, so a
   reader checking that all three states are styled finds all three. */
.rds-empty-state-none { border-style: dashed; }

/* NOTHING IS VISIBLE ON THIS SURFACE. Dotted rather than dashed — a fainter,
   more interrupted outline for a list that is showing none of what it might
   hold. The difference is small on purpose: both are calm answers, and only
   the words can say which.
 *
 * It does NOT assert that the collection has contents. A surface reading a
 * filtered projection — the Gateway's visible-projects read omits a hidden
 * project entirely — cannot distinguish an empty collection from one that is
 * entirely hidden, and would need a second query to try. The Gateway
 * deliberately does not ask, and its wording is true of both cases; this
 * modifier has to be true of both cases too. */
.rds-empty-state-hidden { border-style: dotted; }

/* THE READ FAILED. Solid, and the notice surface, because this is the one
   state of the three that reports a problem rather than an answer. It must not
   be mistakable for an empty collection at a glance. */
.rds-empty-state-unavailable {
    border-style: solid;
    background: var(--rds-notice-surface);
    border-color: var(--rds-notice-border);
    color: var(--rds-notice-fg);
}

.rds-empty-state-title {
    font-size: var(--rds-text-lg);
    font-weight: 600;
    margin: 0 0 var(--rds-space-2);
}

/* THE SECOND SENTENCE. Quieter than the first, and it inherits its size so a
   surface that was already composing `.rds-small` here keeps exactly the size
   it had. */
.rds-empty-state-detail { color: var(--rds-fg-muted); }

/* Inside a failed read the detail line stays in the notice colour rather than
   dropping to the muted foreground: that foreground is correct against the
   page but reads as a different message against the notice surface, and a
   two-sentence failure should be one message rather than two.
 *
 * IT DOES NOT RECEDE BY OPACITY, and the reason is measured rather than
 * stylistic. An earlier revision of this rule carried `opacity: 0.8`, copying
 * the technique `.rds-card-muted` uses. Against the notice surface that lands
 * the LIGHT theme at roughly 3.84:1 — below the 4.5:1 minimum for normal text —
 * where full opacity gives about 5.91:1. Dark was never at risk (about 6.37:1
 * reduced, 9.08:1 full), but a rule that is only accessible in one theme is not
 * accessible.
 *
 * `.rds-card-muted` dims a whole card whose content is secondary by nature;
 * this is explanatory prose on a surface reporting a failure, which is the
 * text a reader most needs. So the distinction between the two sentences is
 * carried by size, where the surface already composes `.rds-small`, and not by
 * dimming the one that explains what happened. */
.rds-empty-state-unavailable .rds-empty-state-detail {
    color: inherit;
}

/* WHERE THE NEXT STEP GOES, when there is one. Not every zero state has an
   action: a failed read has nothing to offer but patience, and offering a
   button there would imply the owner can fix it from here. */
.rds-empty-state-actions {
    margin: var(--rds-space-4) 0 0;
}

/* Honour a reduced-motion preference by dropping the movement, not by making
   it faster. The colour and shadow changes stay: they are the affordance.
 *
 * Every motion opt-out in this file lives in THIS block, including family 9's,
 * rather than beside the rule it corrects. Two reasons: a reader auditing
 * motion has one place to look, and a second `prefers-reduced-motion` block
 * earlier in the file would become the first one a tool finds — this
 * stylesheet's own contract test captures the FIRST such block by name, so
 * splitting them would quietly re-point that assertion at the wrong rules.
 */
@media (prefers-reduced-motion: reduce) {
    .rds-launch {
        transition:
            border-color var(--rds-transition),
            box-shadow var(--rds-transition);
    }

    .rds-launch:hover { transform: none; }

    /* The ring stops turning and stays drawn. Dropping the animation rather
       than hiding the ornament keeps the line's shape identical, and the
       sentence beside it was always the thing that carried the meaning. */
    .rds-auth-wait::before { animation: none; }
}
