/* ==========================================================================
   Richscripts 2026 skin
   Layered on top of Bootstrap 5 / theme.min.css. Everything here is scoped to
   rs-* classes or deliberate element overrides, so legacy pages that have not
   been converted yet still render with the original template.

   Design language mirrors the richscripts-static build:
     - slate neutral ramp, single blue accent
     - Space Grotesk display / Manrope text
     - hairline borders, low-radius cards, no heavy shadows
     - uppercase tracked eyebrow labels
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
    --rs-font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --rs-font-display: "Space Grotesk", "Manrope", ui-sans-serif, system-ui, sans-serif;
    --rs-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    /* slate ramp */
    --rs-slate-50: #f8fafc;
    --rs-slate-100: #f1f5f9;
    --rs-slate-200: #e2e8f0;
    --rs-slate-300: #cbd5e1;
    --rs-slate-400: #94a3b8;
    --rs-slate-500: #64748b;
    --rs-slate-600: #475569;
    --rs-slate-700: #334155;
    --rs-slate-800: #1e293b;
    --rs-slate-900: #0f172a;
    --rs-slate-950: #020617;

    --rs-accent: #2563eb;
    --rs-accent-strong: #1d4ed8;
    --rs-accent-soft: rgba(59, 130, 246, .12);
    --rs-positive: #047857;
    --rs-positive-soft: #d1fae5;

    /* semantic — light theme */
    --rs-bg: #ffffff;
    --rs-bg-subtle: var(--rs-slate-50);
    --rs-bg-inset: var(--rs-slate-100);
    --rs-surface: #ffffff;
    --rs-surface-raised: #ffffff;
    --rs-border: var(--rs-slate-200);
    --rs-border-strong: var(--rs-slate-300);
    --rs-text: var(--rs-slate-900);
    --rs-text-muted: var(--rs-slate-600);
    --rs-text-subtle: var(--rs-slate-500);
    --rs-link: var(--rs-accent);
    --rs-link-hover: var(--rs-accent-strong);

    /* inverted band (hero, footer, CTA) — same in both themes */
    --rs-inverse-bg: var(--rs-slate-950);
    --rs-inverse-text: var(--rs-slate-100);
    --rs-inverse-muted: var(--rs-slate-400);
    --rs-inverse-border: var(--rs-slate-800);

    --rs-radius: .75rem;
    --rs-radius-sm: .5rem;
    --rs-radius-lg: 1.25rem;
    --rs-ring: 0 0 0 3px rgba(37, 99, 235, .28);

    --rs-grid-line: rgba(15, 23, 42, .04);
    --rs-glow: rgba(59, 130, 246, .16);
}

[data-theme="dark"] {
    --rs-bg: var(--rs-slate-950);
    --rs-bg-subtle: #060c1c;
    --rs-bg-inset: var(--rs-slate-900);
    --rs-surface: #0b1327;
    --rs-surface-raised: var(--rs-slate-900);
    --rs-border: var(--rs-slate-800);
    --rs-border-strong: var(--rs-slate-700);
    --rs-text: var(--rs-slate-100);
    --rs-text-muted: var(--rs-slate-300);
    --rs-text-subtle: var(--rs-slate-400);
    --rs-link: #60a5fa;
    --rs-link-hover: #93c5fd;

    --rs-accent: #3b82f6;
    --rs-accent-strong: #60a5fa;
    --rs-accent-soft: rgba(59, 130, 246, .18);
    --rs-positive: #6ee7b7;
    --rs-positive-soft: rgba(6, 78, 59, .55);

    --rs-inverse-bg: #030a1a;
    --rs-grid-line: rgba(148, 163, 184, .06);
    --rs-glow: rgba(59, 130, 246, .22);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

/* Skip link: visually hidden until focused, so keyboard users can jump past
   the header and nav instead of tabbing through them on every page. */
.rs-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: .7rem 1.15rem;
    border-radius: 0 0 var(--rs-radius-sm, .5rem) 0;
    background: var(--rs-slate-900);
    color: #fff;
    font-family: var(--rs-font-display);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}

.rs-skip:focus {
    left: 0;
    color: #fff;
}

/* A visible focus ring on every interactive element. Uses :focus-visible so it
   appears for keyboard users without ringing on mouse clicks. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--rs-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* On the dark inverse bands the accent blue is too dim to read as a ring.
   The hero is not one of these — it sits on the page background. */
.rs-section--inverse a:focus-visible,
.rs-footer a:focus-visible,
.rs-section--inverse button:focus-visible {
    outline-color: #fff;
}

body {
    font-family: var(--rs-font-sans);
    background-color: var(--rs-bg);
    color: var(--rs-text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.rs-display {
    font-family: var(--rs-font-display);
    color: var(--rs-text);
    letter-spacing: -.02em;
    line-height: 1.15;
    font-weight: 700;
}

p {
    color: var(--rs-text-muted);
}

a {
    color: var(--rs-link);
    text-decoration: none;
}

a:hover {
    color: var(--rs-link-hover);
}

hr {
    border-color: var(--rs-border);
    opacity: 1;
}

::selection {
    background: var(--rs-accent);
    color: #fff;
}

:focus-visible {
    outline: none;
    box-shadow: var(--rs-ring);
    border-radius: var(--rs-radius-sm);
}

/* Bootstrap surfaces that leak the old white/dark palette */
main#content {
    background-color: var(--rs-bg);
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */

.rs-container {
    width: 100%;
    max-width: 1536px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2.5rem);
}

/* The live Richscripts header spans the viewport as a floating shell, while
   page content remains on the narrower 1180px reading grid. */
.rs-header > .rs-container {
    max-width: 1536px;
    padding-inline: .8rem;
}

.rs-header__inner {
    width: 100%;
}

.rs-section {
    padding-block: clamp(3.5rem, 7vw, 6rem);
}

.rs-section--tight {
    padding-block: clamp(2.5rem, 5vw, 4rem);
}

.rs-section--subtle {
    background-color: var(--rs-bg-subtle);
    border-block: 1px solid var(--rs-border);
}

.rs-section--inverse {
    background-color: var(--rs-inverse-bg);
    color: var(--rs-inverse-text);
}

.rs-section--inverse h1,
.rs-section--inverse h2,
.rs-section--inverse h3,
.rs-section--inverse h4 {
    color: var(--rs-inverse-text);
}

.rs-section--inverse p {
    color: var(--rs-inverse-muted);
}

.rs-stack > * + * {
    margin-top: 1rem;
}

.rs-measure {
    max-width: 62ch;
}

/* Inline code, replacing a hard-coded style="color:#224488" that sank to
   2.2:1 on the dark ground. */
.rs-code {
    font-family: var(--rs-font-mono);
    font-size: .92em;
    padding: .12em .4em;
    border-radius: var(--rs-radius-sm);
    background-color: var(--rs-bg-inset);
    color: var(--rs-text);
    word-break: break-word;
}

/* Call-out note, replacing an inline background-color:#ebebeb that stayed
   light in dark mode while the text went light — 1.25:1, unreadable. */
.rs-note {
    background-color: var(--rs-bg-subtle);
    border-left: 3px solid var(--rs-accent);
    border-radius: var(--rs-radius-sm);
    padding: .9rem 1.1rem;
    margin-block: 1rem;
}

.rs-center {
    text-align: center;
}

.rs-center .rs-measure {
    margin-inline: auto;
}

/* responsive auto grid — replaces ad-hoc bootstrap column soup */
.rs-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.rs-grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.rs-grid--wide {
    gap: 2rem;
}

/* --------------------------------------------------------------------------
   4. Type components
   -------------------------------------------------------------------------- */

/* A plain tracked label. The live site reserves the pill-badge treatment for the
   hero alone — applying it to every section turns a dozen loud blue chips into
   visual noise, so the badge is a hero-only variant further down. */
.rs-eyebrow {
    display: inline-block;
    font-family: var(--rs-font-display);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--rs-accent-strong);
    margin-bottom: .875rem;
}

[data-theme="dark"] .rs-eyebrow {
    color: #93c5fd;
}

/* Labels *inside* cards and panels, as opposed to section headers. The live
   site keeps these muted and reserves the accent colour for section-level
   eyebrows — otherwise every card sprouts a competing blue label. */
.rs-eyebrow--muted,
[data-theme="dark"] .rs-eyebrow--muted {
    color: var(--rs-text-subtle);
    font-size: .72rem;
    letter-spacing: .16em;
}

/* Hero only: the pill badge. */
.rs-hero .rs-eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: .7rem;
    letter-spacing: .24em;
    background-color: var(--rs-accent-soft);
    border: 1px solid color-mix(in srgb, var(--rs-accent) 35%, transparent);
    border-radius: 999px;
    padding: .5rem 1rem;
    margin-bottom: 1.25rem;
}

@supports not (border-color: color-mix(in srgb, red 50%, transparent)) {
    .rs-hero .rs-eyebrow {
        border-color: var(--rs-border-strong);
    }
}

/* On dark inverse bands the accent needs to lift off the ground. */
.rs-section--inverse .rs-eyebrow {
    color: #93c5fd;
    background-color: rgba(59, 130, 246, .14);
    border-color: rgba(147, 197, 253, .4);
}

.rs-title {
    font-size: clamp(1.85rem, 3.4vw, 2.75rem);
    margin-bottom: .75rem;
}

.rs-title--hero {
    font-size: clamp(2.25rem, 5.2vw, 3.75rem);
}

.rs-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--rs-text-muted);
    margin-bottom: 0;
}

.rs-section--inverse .rs-subtitle {
    color: var(--rs-inverse-muted);
}

.rs-lead {
    font-size: 1.1rem;
    color: var(--rs-text-muted);
}

.rs-section-head {
    margin-bottom: 2.5rem;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.rs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--rs-font-display);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
    padding: .8rem 1.5rem;
    /* Fully rounded, matching the live site's button system. */
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
    white-space: nowrap;
}

.rs-btn:active {
    transform: translateY(1px);
}

.rs-btn--primary {
    background-color: var(--rs-slate-900);
    border-color: var(--rs-slate-900);
    color: #fff;
}

.rs-btn--primary:hover {
    background-color: var(--rs-accent);
    border-color: var(--rs-accent);
    color: #fff;
}

/* Dark mode lightens --rs-accent to #3b82f6, where white text falls to 3.7:1.
   Use the dark ink instead, matching how the primary button inverts. */
[data-theme="dark"] .rs-btn--accent {
    color: var(--rs-slate-950);
}

[data-theme="dark"] .rs-btn--accent:hover {
    color: var(--rs-slate-950);
}

[data-theme="dark"] .rs-btn--primary {
    background-color: var(--rs-slate-100);
    border-color: var(--rs-slate-100);
    color: var(--rs-slate-950);
}

[data-theme="dark"] .rs-btn--primary:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--rs-slate-950);
}

.rs-btn--secondary {
    background-color: transparent;
    border-color: var(--rs-border-strong);
    color: var(--rs-text);
}

.rs-btn--secondary:hover {
    border-color: var(--rs-text);
    color: var(--rs-text);
    background-color: var(--rs-bg-inset);
}

.rs-btn--accent {
    background-color: var(--rs-accent);
    border-color: var(--rs-accent);
    color: #fff;
}

.rs-btn--accent:hover {
    background-color: var(--rs-accent-strong);
    border-color: var(--rs-accent-strong);
    color: #fff;
}

/* on inverse bands — the hero is no longer one of these, so it is not listed */
.rs-section--inverse .rs-btn--primary {
    background-color: #fff;
    border-color: #fff;
    color: var(--rs-slate-950);
}

.rs-section--inverse .rs-btn--primary:hover {
    background-color: var(--rs-slate-200);
    border-color: var(--rs-slate-200);
    color: var(--rs-slate-950);
}

.rs-section--inverse .rs-btn--secondary {
    border-color: rgba(148, 163, 184, .45);
    color: var(--rs-slate-100);
}

.rs-section--inverse .rs-btn--secondary:hover {
    border-color: var(--rs-slate-100);
    background-color: rgba(148, 163, 184, .12);
    color: #fff;
}

/* The hero's primary CTA is the accent fill, as on the live site. */
.rs-hero .rs-btn--primary {
    background-color: var(--rs-accent);
    border-color: var(--rs-accent);
    color: #fff;
}

.rs-hero .rs-btn--primary:hover {
    background-color: var(--rs-accent-strong);
    border-color: var(--rs-accent-strong);
}

[data-theme="dark"] .rs-hero .rs-btn--primary {
    color: var(--rs-slate-950);
}

.rs-btn--sm {
    padding: .55rem 1rem;
    font-size: .85rem;
}

.rs-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

/* text link with arrow */
.rs-link-arrow {
    font-family: var(--rs-font-display);
    font-weight: 600;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.rs-link-arrow::after {
    content: "\2192";
    transition: transform .15s ease;
}

.rs-link-arrow:hover::after {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */

.rs-card {
    display: flex;
    flex-direction: column;
    background-color: var(--rs-surface);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    padding: 1.75rem;
    height: 100%;
    transition: border-color .15s ease, transform .15s ease;
}

.rs-card--link:hover {
    border-color: var(--rs-border-strong);
    transform: translateY(-2px);
}

.rs-card__title {
    font-size: 1.2rem;
    margin-bottom: .5rem;
}

.rs-card__text {
    color: var(--rs-text-muted);
    font-size: .95rem;
    margin-bottom: 0;
}

.rs-card__foot {
    margin-top: auto;
    padding-top: 1.25rem;
}

.rs-section--inverse .rs-card {
    background-color: rgba(148, 163, 184, .05);
    border-color: var(--rs-inverse-border);
}

.rs-section--inverse .rs-card__title {
    color: var(--rs-inverse-text);
}

.rs-section--inverse .rs-card__text {
    color: var(--rs-inverse-muted);
}

/* article cards in featured articles section */
.rs-article-card {
    display: flex;
    flex-direction: column;
    background-color: var(--rs-surface);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    padding: 1.75rem;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, transform .15s ease;
}

.rs-article-card:hover {
    border-color: var(--rs-border-strong);
    transform: translateY(-2px);
}

.rs-article-card__title {
    font-size: 1.15rem;
    font-family: var(--rs-font-display);
    font-weight: 600;
    line-height: 1.4;
    margin: .75rem 0 .5rem;
}

.rs-article-card__excerpt {
    color: var(--rs-text-muted);
    font-size: .95rem;
    margin-bottom: 1rem;
    flex: 1;
}

.rs-section--inverse .rs-article-card {
    background-color: rgba(148, 163, 184, .05);
    border-color: var(--rs-inverse-border);
}

.rs-section--inverse .rs-article-card__title {
    color: var(--rs-inverse-text);
}

.rs-section--inverse .rs-article-card__excerpt {
    color: var(--rs-inverse-muted);
}

/* square monogram used on category cards */
.rs-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--rs-radius-sm);
    border: 1px solid var(--rs-border);
    background-color: var(--rs-bg-inset);
    font-family: var(--rs-font-display);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--rs-text);
    margin-bottom: 1.25rem;
}

.rs-section--inverse .rs-monogram {
    border-color: var(--rs-inverse-border);
    background-color: rgba(148, 163, 184, .08);
    color: var(--rs-inverse-text);
}

/* badge */
.rs-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--rs-font-display);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .25rem .55rem;
    border-radius: 999px;
    background-color: var(--rs-positive-soft);
    color: var(--rs-positive);
}

.rs-badge--neutral {
    background-color: var(--rs-bg-inset);
    color: var(--rs-text-subtle);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

/* The hero sits on the page background and holds its content in rounded cards,
   matching the live site, rather than being a full-bleed dark band. */
.rs-hero {
    position: relative;
    background-color: transparent;
    color: var(--rs-text);
    padding-block: 2rem clamp(2rem, 4vw, 3.5rem);
    overflow: hidden;
}

.rs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 78% 16%, var(--rs-accent-soft), transparent 28%),
        linear-gradient(to right, var(--rs-grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--rs-grid-line) 1px, transparent 1px);
    background-size: auto, 72px 72px, 72px 72px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
}

.rs-hero > * {
    position: relative;
    z-index: 1;
}

.rs-hero h1,
.rs-hero h2 {
    color: var(--rs-text);
}

.rs-hero p {
    color: var(--rs-text-muted);
}

/* Each hero column is its own panel. */
.rs-hero__layout > div {
    border: 1px solid var(--rs-border);
    border-radius: 2.5rem;
    background-color: var(--rs-surface);
    padding: clamp(1.75rem, 4vw, 3rem);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 40px -24px rgba(15, 23, 42, .18);
}

[data-theme="dark"] .rs-hero__layout > div {
    box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -24px rgba(0, 0, 0, .7);
}

/* The media panel is filled by its image, so it carries no inner padding. */
.rs-hero__media {
    padding: 0 !important;
    overflow: hidden;
}

.rs-hero__showcase {
    padding: clamp(1.25rem, 2.5vw, 1.75rem) !important;
    background-color: var(--rs-surface);
}

.rs-showcase-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--rs-border);
    border-radius: 1.25rem;
    background: var(--rs-surface);
}

.rs-showcase-head .rs-eyebrow,
.rs-showcase-meta .rs-eyebrow {
    display: block;
    margin-bottom: .35rem;
    font-size: .68rem;
}

.rs-showcase-head strong,
.rs-showcase-meta strong {
    display: block;
    color: var(--rs-text);
    font-family: var(--rs-font-display);
    font-size: 1rem;
    line-height: 1.35;
}

.rs-showcase-head .rs-badge {
    flex-shrink: 0;
}

.rs-showcase-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    margin-top: 1.25rem;
}

.rs-showcase-meta > div {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--rs-border);
    border-radius: 1.25rem;
    background: var(--rs-bg-subtle);
}

.rs-hero__copy .rs-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    margin-top: 2.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.rs-hero__copy .rs-stat {
    padding: 1.25rem;
    border: 1px solid var(--rs-border);
    border-radius: 1.25rem;
    background: var(--rs-bg-subtle);
}

.rs-hero__layout {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .rs-hero__layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    }
}

.rs-hero__media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--rs-radius-lg);
    border: 1px solid var(--rs-inverse-border);
    aspect-ratio: 2 / 1;
    object-fit: cover;
    transition: transform .45s ease, filter .45s ease;
}

.rs-hero__media a {
    display: block;
    overflow: hidden;
    border-radius: var(--rs-radius-lg);
}

.rs-hero__media a:hover img {
    transform: scale(1.025);
    filter: saturate(1.08) contrast(1.03);
}

/* compact hero for interior pages */
.rs-page-header {
    position: relative;
    overflow: hidden;
    background-color: var(--rs-bg-subtle);
    border-bottom: 1px solid var(--rs-border);
    padding-block: clamp(3rem, 6vw, 4.5rem);
}

.rs-page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--rs-grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--rs-grid-line) 1px, transparent 1px);
    background-size: 72px 72px;
    pointer-events: none;
}

.rs-page-header > * {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   8. Stats
   -------------------------------------------------------------------------- */

/* The stats row now sits on the page background, not the old dark band. */
.rs-stats {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    margin-top: 2rem;
}

/* The surface-card treatment belongs to the hero, where the stats sit on the
   page background. Applied globally it put a WHITE card inside the dark
   inverse band on clients.aspx, dropping the labels to 2.6:1. */
.rs-hero .rs-stats {
    padding: 2rem clamp(1.75rem, 4vw, 3rem);
    border: 1px solid var(--rs-border);
    border-radius: 2.5rem;
    background-color: var(--rs-surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 40px -28px rgba(15, 23, 42, .22);
}

/* On an inverse band the stats stay transparent with a hairline divider. */
.rs-section--inverse .rs-stats {
    padding-top: 2.5rem;
    border-top: 1px solid var(--rs-inverse-border);
}

.rs-section--inverse .rs-stat__value {
    color: var(--rs-inverse-text);
}

.rs-section--inverse .rs-stat__label {
    color: var(--rs-inverse-muted);
}

.rs-stat__value {
    font-family: var(--rs-font-display);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    line-height: 1;
    color: var(--rs-text);
}

.rs-stat__label {
    font-size: .9rem;
    color: var(--rs-text-muted);
    margin: .5rem 0 0;
}

/* --------------------------------------------------------------------------
   9. Logo wall
   -------------------------------------------------------------------------- */

.rs-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 5vw, 3.5rem);
}

.rs-logos img {
    height: 1.9rem;
    width: auto;
    max-width: 8.5rem;
    object-fit: contain;
    opacity: .55;
    filter: grayscale(1);
    transition: opacity .15s ease;
}

.rs-logos img:hover {
    opacity: .9;
}

[data-theme="dark"] .rs-logos img {
    filter: grayscale(1) invert(1) brightness(1.6);
    opacity: .5;
}

/* --------------------------------------------------------------------------
   10. Feature list (checkmark rows)
   -------------------------------------------------------------------------- */

.rs-checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.rs-checklist li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: .85rem;
    color: var(--rs-text-muted);
}

.rs-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: .5rem;
    height: .5rem;
    border-radius: 2px;
    background-color: var(--rs-accent);
}

.rs-section--inverse .rs-checklist li {
    color: var(--rs-inverse-muted);
}

/* split feature panel */
.rs-split {
    display: grid;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .rs-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rs-split--reverse > :first-child {
        order: 2;
    }

    /* content + narrow sidebar */
    .rs-split--aside {
        grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
        align-items: start;
    }
}

/* grid children default to min-width:auto, which lets wide tables and long
   strings push the whole track past the viewport — pin them to zero. */
.rs-split > *,
.rs-grid > *,
.rs-hero__layout > * {
    min-width: 0;
}

.rs-panel {
    background-color: var(--rs-bg-subtle);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-lg);
    padding: clamp(1.75rem, 4vw, 2.75rem);
}

/* --------------------------------------------------------------------------
   10b. Comparison rows (why-richscripts "the difference" band)
   -------------------------------------------------------------------------- */

.rs-compare {
    display: grid;
    gap: 1rem;
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    overflow: hidden;
    background-color: var(--rs-surface);
    gap: 0;
}

.rs-compare__row {
    display: grid;
    grid-template-columns: 1fr;
    border-bottom: 1px solid var(--rs-border);
}

.rs-compare__row:last-child {
    border-bottom: 0;
}

@media (min-width: 768px) {
    .rs-compare__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.rs-compare__cell {
    padding: 1.1rem 1.35rem;
    font-size: .95rem;
    display: flex;
    align-items: flex-start;
    gap: .65rem;
}

.rs-compare__cell--bad {
    color: var(--rs-text-subtle);
    background-color: var(--rs-bg-subtle);
    text-decoration-color: var(--rs-border-strong);
}

.rs-compare__cell--good {
    color: var(--rs-text);
    font-weight: 600;
    border-top: 1px solid var(--rs-border);
}

@media (min-width: 768px) {
    .rs-compare__cell--good {
        border-top: 0;
        border-left: 1px solid var(--rs-border);
    }
}

.rs-compare__cell::before {
    font-family: var(--rs-font-display);
    line-height: 1.5;
    flex: none;
}

.rs-compare__cell--bad::before {
    content: "\00d7";
    color: var(--rs-slate-400);
}

.rs-compare__cell--good::before {
    content: "\2713";
    color: var(--rs-accent);
}

/* --------------------------------------------------------------------------
   10c. FAQ list
   -------------------------------------------------------------------------- */

.rs-faq {
    border-top: 1px solid var(--rs-border);
}

.rs-faq details {
    border-bottom: 1px solid var(--rs-border);
}

.rs-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
    padding: 1.15rem 0;
    font-family: var(--rs-font-display);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--rs-text);
}

.rs-faq summary::-webkit-details-marker {
    display: none;
}

.rs-faq summary::after {
    content: "+";
    font-size: 1.35rem;
    line-height: 1;
    color: var(--rs-text-subtle);
    flex: none;
}

.rs-faq details[open] summary::after {
    content: "\2013";
}

.rs-faq p {
    margin: 0 0 1.25rem;
    font-size: .95rem;
    max-width: 68ch;
}

/* --------------------------------------------------------------------------
   10d. Quote cards
   -------------------------------------------------------------------------- */

.rs-quote {
    display: flex;
    flex-direction: column;
    background-color: var(--rs-surface);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    padding: 1.75rem;
    height: 100%;
}

.rs-quote blockquote {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--rs-text);
}

.rs-quote blockquote::before {
    content: "\201C";
    font-family: var(--rs-font-display);
    font-size: 2.5rem;
    line-height: 0;
    position: relative;
    top: .55rem;
    color: var(--rs-border-strong);
    margin-right: .1rem;
}

.rs-quote cite {
    margin-top: auto;
    padding-top: 1.25rem;
    font-style: normal;
    font-size: .85rem;
    color: var(--rs-text-subtle);
}

/* --------------------------------------------------------------------------
   10e. Tag pills (product chips on solutions / industries)
   -------------------------------------------------------------------------- */

.rs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.rs-tags li,
.rs-tag {
    display: inline-flex;
    font-size: .78rem;
    font-weight: 600;
    font-family: var(--rs-font-display);
    padding: .28rem .6rem;
    border-radius: 999px;
    border: 1px solid var(--rs-border);
    background-color: var(--rs-bg-subtle);
    color: var(--rs-text-muted);
}

.rs-tags a {
    color: inherit;
}

/* labelled definition block — "The problem" / "What Richscripts does" */
.rs-def {
    margin: 0 0 1.25rem;
}

.rs-def dt {
    font-family: var(--rs-font-display);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rs-text-subtle);
    margin-bottom: .35rem;
}

.rs-def dd {
    margin: 0 0 1.1rem;
    color: var(--rs-text-muted);
    font-size: .95rem;
}

.rs-def dd:last-child {
    margin-bottom: 0;
}

/* flowing multi-column list — used for the A-Z customer directory */
.rs-columns {
    columns: 3 16rem;
    column-gap: 2.5rem;
}

.rs-columns h3 {
    font-family: var(--rs-font-display);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rs-text-subtle);
    padding-bottom: .4rem;
    margin-bottom: .75rem;
    border-bottom: 1px solid var(--rs-border);
    break-after: avoid;
}

.rs-columns p {
    font-size: .92rem;
    line-height: 1.9;
    margin-bottom: 1.75rem;
}

.rs-columns a {
    color: var(--rs-text-muted);
}

.rs-columns a:hover {
    color: var(--rs-link);
}

/* in-page table of contents for long legal pages */
.rs-toc {
    position: sticky;
    top: 5.5rem;
}

.rs-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rs-toc > ul > li {
    margin-bottom: .65rem;
}

.rs-toc ul ul {
    margin: .5rem 0 0 .9rem;
}

.rs-toc a {
    font-size: .92rem;
    color: var(--rs-text-muted);
}

.rs-toc > ul > li > a {
    font-family: var(--rs-font-display);
    font-weight: 600;
    color: var(--rs-text);
}

.rs-toc a:hover {
    color: var(--rs-link);
}

/* --------------------------------------------------------------------------
   11. Tables
   -------------------------------------------------------------------------- */

.rs-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
}

.rs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    background-color: var(--rs-surface);
}

.rs-table th,
.rs-table td {
    padding: .85rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid var(--rs-border);
    color: var(--rs-text-muted);
    vertical-align: top;
}

.rs-table thead th {
    font-family: var(--rs-font-display);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rs-text-subtle);
    background-color: var(--rs-bg-subtle);
    white-space: nowrap;
}

.rs-table tbody tr:last-child td {
    border-bottom: 0;
}

.rs-table tbody tr:hover td {
    background-color: var(--rs-bg-subtle);
}

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */

.rs-field {
    margin-bottom: 1.25rem;
}

.rs-label {
    display: block;
    font-family: var(--rs-font-display);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--rs-text);
    margin-bottom: .4rem;
}

.rs-input,
.rs-select,
.rs-textarea {
    width: 100%;
    font-family: inherit;
    font-size: .95rem;
    color: var(--rs-text);
    background-color: var(--rs-surface);
    border: 1px solid var(--rs-border-strong);
    border-radius: var(--rs-radius-sm);
    padding: .7rem .9rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.rs-input:focus,
.rs-select:focus,
.rs-textarea:focus {
    outline: none;
    border-color: var(--rs-accent);
    box-shadow: var(--rs-ring);
}

.rs-textarea {
    min-height: 9rem;
    resize: vertical;
}

.rs-help {
    font-size: .85rem;
    color: var(--rs-text-subtle);
    margin-top: .35rem;
}

/* --------------------------------------------------------------------------
   13. Prose (legal / long-form pages)
   -------------------------------------------------------------------------- */

.rs-prose {
    max-width: 72ch;
}

.rs-prose h2 {
    font-size: 1.5rem;
    margin-top: 2.75rem;
    margin-bottom: .75rem;
}

.rs-prose h3 {
    font-size: 1.15rem;
    margin-top: 2rem;
    margin-bottom: .5rem;
}

.rs-prose p,
.rs-prose li {
    color: var(--rs-text-muted);
}

.rs-prose ul,
.rs-prose ol {
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
}

.rs-prose li {
    margin-bottom: .5rem;
}

.rs-prose > :first-child {
    margin-top: 0;
}

/* --------------------------------------------------------------------------
   14. Header / navigation
   -------------------------------------------------------------------------- */

/* The header is a floating rounded card rather than a full-width bar, matching
   the live site: the page scrolls underneath it through a translucent, blurred
   surface. .rs-header itself is just the sticky wrapper; the card is __inner. */
.rs-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: transparent;
    border-bottom: 0;
    padding-top: .75rem;
    padding-bottom: .25rem;
}

.rs-header__inner {
    border: 1px solid var(--rs-border);
    border-radius: 2rem;
    background-color: color-mix(in srgb, var(--rs-surface) 85%, transparent);
    backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .12);
    padding: .75rem 1.25rem;
}

[data-theme="dark"] .rs-header__inner {
    box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
}

/* Without color-mix the card would be see-through, so fall back to opaque. */
@supports not (background-color: color-mix(in srgb, red 50%, transparent)) {
    .rs-header__inner {
        background-color: var(--rs-surface);
    }
}

@media (max-width: 768px) {
    .rs-header {
        padding-top: .5rem;
    }

    .rs-header__inner {
        border-radius: 1.25rem;
        padding: .6rem .9rem;
    }

    .rs-header > .rs-container {
        padding-inline: .5rem;
    }
}

.rs-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4.25rem;
}

.rs-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--rs-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rs-text);
    letter-spacing: -.02em;
    margin-right: auto;
}

.rs-brand img {
    height: 3rem;
    width: 3rem;
    flex-shrink: 0;
}

/* Wordmark stacked over the positioning line, as on the live site. */
.rs-brand__text {
    display: block;
    line-height: 1.2;
}

.rs-brand__name {
    display: block;
    font-family: var(--rs-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--rs-text);
}

.rs-brand__tagline {
    display: block;
    font-family: var(--rs-font-sans);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--rs-text-subtle);
    white-space: nowrap;
}

/* Secondary text link in the header actions (Client Center). */
.rs-header__link {
    font-family: var(--rs-font-display);
    font-size: .88rem;
    font-weight: 600;
    color: var(--rs-text-muted);
    white-space: nowrap;
}

.rs-header__link:hover {
    color: var(--rs-text);
}

/* The header row is brand + 7 nav items + actions. Measured, the tagline and
   the Client Center link only fit above these widths; below them they are the
   first things to go, so the row never overflows the container. */
@media (max-width: 1399px) {
    .rs-brand__tagline {
        display: none;
    }
}

@media (max-width: 1239px) {
    .rs-header__link {
        display: none;
    }
}

/* No dark-mode inversion: the mark is a self-contained tile (dark ground, white
   monogram, blue dot) and reads in both themes. Inverting it flips it inside out. */

.rs-nav {
    display: none;
    align-items: center;
    gap: .35rem;
}

.rs-nav a {
    font-family: var(--rs-font-display);
    font-size: .9rem;
    font-weight: 500;
    color: var(--rs-text-muted);
    padding: .5rem .7rem;
    /* Pill-shaped hover target, as on the live site. */
    border-radius: 999px;
    transition: color .2s ease, background-color .2s ease;
}

.rs-nav a:hover,
.rs-nav a[aria-current="page"] {
    color: var(--rs-text);
    background-color: var(--rs-bg-inset);
}

.rs-header__actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.rs-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: var(--rs-radius-sm);
    border: 1px solid var(--rs-border);
    background-color: transparent;
    color: var(--rs-text-muted);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

.rs-icon-btn:hover {
    color: var(--rs-text);
    border-color: var(--rs-border-strong);
    background-color: var(--rs-bg-inset);
}

/* theme toggle shows the icon for the theme you would switch *to* */
/* Icons are inline SVG rather than an icon font, so they need explicit sizing
   (the font versions inherited from font-size). */
.rs-icon-btn svg {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
}

.rs-theme-toggle .rs-theme-toggle__dark {
    display: none;
}

[data-theme="dark"] .rs-theme-toggle .rs-theme-toggle__dark {
    display: block;
}

[data-theme="dark"] .rs-theme-toggle .rs-theme-toggle__light {
    display: none;
}

.rs-nav-toggle {
    display: inline-flex;
}

.rs-header__cta {
    display: none;
}

/* the primary nav carries seven items, so it needs more room than the usual
   lg breakpoint before it can sit beside the brand and the CTA */
@media (min-width: 1120px) {
    .rs-nav {
        display: flex;
    }

    .rs-nav-toggle {
        display: none;
    }

    .rs-header__cta {
        display: inline-flex;
    }
}

/* Keep the desktop header visually identical to the compact reference panel:
   the long-form Articles link remains available in the mobile menu and its
   dedicated page, while the primary panel keeps room for the utility actions. */
@media (min-width: 1120px) {
    .rs-nav a[href="/articles.aspx"] {
        display: none;
    }

    .rs-header__inner {
        overflow: hidden;
    }
}

/* mobile drawer */
.rs-mobile-nav {
    display: none;
    border-top: 1px solid var(--rs-border);
    background-color: var(--rs-bg);
    padding: 1rem 0 1.5rem;
    box-shadow: 0 18px 30px -24px rgba(15, 23, 42, .35);
}

/* Breadcrumbs are rendered as direct list items by the shared master page. */
.rs-breadcrumb {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0;
    padding: .35rem 0 .75rem;
    list-style: none;
    color: var(--rs-text-subtle);
    font-size: .8rem;
}

.rs-breadcrumb li + li::before {
    content: "/";
    margin-right: .65rem;
    color: var(--rs-border-strong);
}

.rs-breadcrumb a {
    color: var(--rs-text-subtle);
}

.rs-breadcrumb a:hover {
    color: var(--rs-link);
}

/* Small interaction lift that makes the dense product grids easier to scan. */
.rs-card--link {
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.rs-card--link:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--rs-accent) 42%, var(--rs-border));
    box-shadow: 0 14px 30px -22px rgba(15, 23, 42, .42);
}

@media (max-width: 767px) {
    .rs-hero__layout > div {
        border-radius: 1.5rem;
        padding: 1.35rem;
    }

    .rs-stats {
        border-radius: 1.5rem;
        padding: 1.4rem;
    }

    .rs-showcase-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .rs-showcase-meta,
    .rs-hero__copy .rs-stats {
        grid-template-columns: 1fr;
    }
}

.rs-mobile-nav.is-open {
    display: block;
}

@media (min-width: 1120px) {
    .rs-mobile-nav,
    .rs-mobile-nav.is-open {
        display: none;
    }
}

.rs-mobile-nav a {
    display: block;
    font-family: var(--rs-font-display);
    font-weight: 600;
    color: var(--rs-text-muted);
    padding: .65rem .25rem;
    border-bottom: 1px solid var(--rs-border);
}

.rs-mobile-nav a:last-child {
    border-bottom: 0;
}

.rs-mobile-nav a:hover {
    color: var(--rs-text);
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.rs-footer {
    background-color: var(--rs-inverse-bg);
    color: var(--rs-inverse-muted);
    border-top: 1px solid var(--rs-inverse-border);
    padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.rs-footer__grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.rs-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--rs-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.rs-footer h5 {
    font-family: var(--rs-font-display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rs-slate-400);
    margin-bottom: 1rem;
}

.rs-footer ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.rs-footer li {
    margin-bottom: .55rem;
}

/* Links sit a step brighter than the surrounding prose so they read as links.
   slate-400 for everything made the whole footer flat (matches the live site,
   which uses slate-300 for links and reserves slate-400 for secondary text). */
.rs-footer a {
    font-size: .92rem;
    color: var(--rs-slate-300);
    transition: color .15s ease;
}

.rs-footer a:hover {
    color: #fff;
}

.rs-footer__note {
    font-size: .9rem;
    color: var(--rs-slate-400);
    margin-bottom: .5rem;
}

.rs-footer__bottom {
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--rs-inverse-border);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.rs-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rs-footer__copy {
    font-size: .85rem;
    /* slate-500 on the near-black footer only reaches ~4.2:1; slate-400 clears AA. */
    color: var(--rs-inverse-muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   16. Bootstrap bridges
   Legacy page bodies still emit Bootstrap classes. Keep them readable in both
   themes without rewriting every markup block.
   -------------------------------------------------------------------------- */

.rs-legacy .card {
    background-color: var(--rs-surface);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    box-shadow: none;
}

.rs-legacy .card-title {
    color: var(--rs-text);
}

.rs-legacy .card-text,
.rs-legacy .text-muted,
.rs-legacy .text-body {
    color: var(--rs-text-muted) !important;
}

.rs-legacy .bg-light,
.rs-legacy .bg-soft-primary {
    background-color: var(--rs-bg-subtle) !important;
}

.rs-legacy .bg-white {
    background-color: var(--rs-surface) !important;
}

.rs-legacy .btn-primary {
    background-color: var(--rs-slate-900);
    border-color: var(--rs-slate-900);
    color: #fff;
}

.rs-legacy .btn-primary:hover {
    background-color: var(--rs-accent);
    border-color: var(--rs-accent);
}

[data-theme="dark"] .rs-legacy .btn-primary {
    background-color: var(--rs-slate-100);
    border-color: var(--rs-slate-100);
    color: var(--rs-slate-950);
}

.rs-legacy .table {
    --bs-table-color: var(--rs-text-muted);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--rs-border);
}

/* article filter buttons */
.rs-filter-btn {
    padding: .65rem 1.25rem;
    border: 1px solid var(--rs-border);
    /* Pill, matching the site-wide button system. */
    border-radius: 999px;
    background-color: transparent;
    color: var(--rs-text-muted);
    font-family: var(--rs-font-sans);
    font-size: .95rem;
    font-weight: 500;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

.rs-filter-btn:hover {
    border-color: var(--rs-border-strong);
    color: var(--rs-text);
}

.rs-filter-btn--active {
    background-color: var(--rs-accent);
    border-color: var(--rs-accent);
    color: white;
}

/* Dark mode lightens --rs-accent, where white text falls to 3.7:1. Use the
   dark ink instead, consistent with .rs-btn--accent. */
[data-theme="dark"] .rs-filter-btn--active {
    color: var(--rs-slate-950);
}

.rs-filter-btn--active:hover {
    background-color: var(--rs-accent-strong);
    border-color: var(--rs-accent-strong);
}

.rs-articles-grid .rs-article-card.rs-hidden {
    display: none;
}

/* --------------------------------------------------------------------------
   18. Cross-page polish
   -------------------------------------------------------------------------- */

/* Keep native controls consistent on contact, search, licensing, and purchase
   pages that still use Bootstrap form markup. */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
.form-control,
.form-select {
    border: 1px solid var(--rs-border-strong);
    border-radius: var(--rs-radius-sm);
    background-color: var(--rs-surface);
    color: var(--rs-text);
    font-family: var(--rs-font-sans);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
.form-control,
.form-select {
    min-height: 2.75rem;
    padding: .65rem .85rem;
}

textarea {
    padding: .75rem .85rem;
}

input::placeholder,
textarea::placeholder {
    color: var(--rs-text-subtle);
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--rs-accent);
    background-color: var(--rs-surface);
    color: var(--rs-text);
    box-shadow: var(--rs-ring);
}

label,
.form-label {
    display: block;
    margin-bottom: .45rem;
    color: var(--rs-text);
    font-family: var(--rs-font-display);
    font-size: .9rem;
    font-weight: 600;
}

.rs-panel,
.rs-card,
.rs-article-card,
.rs-compare {
    box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}

.rs-page-header h1 {
    max-width: 18ch;
}

.rs-page-header .rs-subtitle {
    max-width: 62ch;
}

/* Bootstrap-based product pages inherit the same typography and spacing. */
main#content .list-group-item {
    border-color: var(--rs-border);
    border-radius: var(--rs-radius) !important;
    background-color: var(--rs-surface);
    color: var(--rs-text-muted);
    margin-bottom: .75rem;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}

main#content .list-group-item h3,
main#content .list-group-item h4 {
    color: var(--rs-text);
}

main#content .list-group-item:hover {
    border-color: var(--rs-border-strong);
}

main#content .table,
main#content table {
    color: var(--rs-text-muted);
    border-color: var(--rs-border);
}

main#content .table th,
main#content table th {
    color: var(--rs-text);
    font-family: var(--rs-font-display);
    font-weight: 600;
}

/* Normalize older Bootstrap templates so product and download pages do not
   feel like a separate site. */
main#content > .container,
main#content > .container-fluid {
    max-width: 1180px;
    padding-inline: 1.25rem;
}

main#content .btn-primary,
main#content .btn-success,
main#content .btn-info {
    border: 1px solid var(--rs-accent);
    border-radius: 999px;
    background-color: var(--rs-accent);
    color: #fff;
    font-family: var(--rs-font-display);
    font-weight: 600;
    padding: .7rem 1.25rem;
}

main#content .btn-primary:hover,
main#content .btn-success:hover,
main#content .btn-info:hover {
    border-color: var(--rs-accent-strong);
    background-color: var(--rs-accent-strong);
    color: #fff;
}

main#content .btn-link {
    color: var(--rs-link);
    font-family: var(--rs-font-display);
    font-weight: 600;
}

main#content .display-1,
main#content .display-2,
main#content .display-3,
main#content .display-4,
main#content .display-5,
main#content .display-6,
main#content .h1,
main#content .h2,
main#content .h3,
main#content .h4,
main#content .h5,
main#content .h6 {
    color: var(--rs-text);
    font-family: var(--rs-font-display);
}

main#content .text-muted {
    color: var(--rs-text-muted) !important;
}

main#content .bg-light,
main#content .bg-white {
    background-color: var(--rs-bg-subtle) !important;
}

main#content .border,
main#content .border-top,
main#content .border-bottom {
    border-color: var(--rs-border) !important;
}

main#content img.img-fluid {
    border-radius: var(--rs-radius);
}

/* Dense example/documentation pages get readable measure and breathing room
   without changing their editor-specific controls. */
main#content pre,
main#content code {
    border-radius: var(--rs-radius-sm);
}

main#content pre {
    border: 1px solid var(--rs-border);
    background-color: var(--rs-bg-inset);
    color: var(--rs-text);
    padding: 1rem 1.15rem;
    overflow-x: auto;
}

main#content blockquote {
    margin-block: 1.5rem;
    padding: .75rem 1.25rem;
    border-left: 3px solid var(--rs-accent);
    background-color: var(--rs-bg-subtle);
    color: var(--rs-text-muted);
}

/* ASP.NET WYSIWYG Editor section ------------------------------------------------ */
.rs-legacy-page .rs-legacy-bar {
    position: sticky;
    top: 0;
    z-index: 1030;
    max-width: 1536px;
    margin: 0 auto;
    padding: .85rem .8rem;
    background: var(--rs-bg);
    border: 0;
}

.rs-legacy-page .rs-legacy-bar__inner {
    min-height: 4.25rem;
    max-width: none;
    padding: .65rem 1.25rem;
    border: 1px solid var(--rs-border);
    border-radius: 2rem;
    background-color: color-mix(in srgb, var(--rs-surface) 92%, transparent);
    box-shadow: 0 12px 32px -12px rgba(15, 23, 42, .18);
    backdrop-filter: blur(16px) saturate(180%);
}

.rs-legacy-page .rs-legacy-bar__brand {
    color: var(--rs-text) !important;
    font-family: var(--rs-font-display);
    font-size: 1.05rem;
    letter-spacing: -.02em;
}

.rs-legacy-page .rs-legacy-bar__brand:hover {
    color: var(--rs-link) !important;
}

.rs-legacy-page .rs-legacy-bar__nav {
    gap: .15rem;
    justify-content: center;
}

.rs-legacy-page .rs-legacy-bar__nav a {
    border-radius: 999px;
    color: var(--rs-text-muted);
    padding: .5rem .7rem;
    white-space: nowrap;
}

.rs-legacy-page .rs-legacy-bar__nav a:hover {
    background-color: var(--rs-bg-inset);
    color: var(--rs-text);
}

/* Chat, Messenger, and Live Support still contain nested layout tables from
   the original product templates. Normalize the outer shell without touching
   the chat widgets or editor-specific controls inside them. */
.rs-legacy-page #Common,
.rs-legacy-page #content {
    max-width: 1536px;
    padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.rs-legacy-page #Common > table,
.rs-legacy-page #content > table {
    width: 100% !important;
    max-width: 100%;
    border-spacing: 1rem;
}

.rs-legacy-page #Common > table > tbody > tr > td,
.rs-legacy-page #content > table > tbody > tr > td {
    vertical-align: top;
}

.rs-legacy-page #Common h1,
.rs-legacy-page #content h1 {
    color: var(--rs-text);
    font-family: var(--rs-font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.08;
    margin: 0 0 1rem;
}

.rs-legacy-page #Common h2,
.rs-legacy-page #content h2 {
    color: var(--rs-text);
    font-family: var(--rs-font-display);
}

.rs-legacy-page #Common p,
.rs-legacy-page #content p {
    color: var(--rs-text-muted);
}

.rs-legacy-page #Common > table > tbody > tr > td:first-child,
.rs-legacy-page #content > table > tbody > tr > td:first-child {
    min-width: 0;
}

.rs-legacy-page #CommonHeader {
    padding: 1rem 0;
}

.rs-legacy-page #CommonHeader .Title,
.rs-legacy-page #CommonHeader .Title a {
    color: var(--rs-text);
    font-family: var(--rs-font-display);
}

.rs-legacy-page #CommonHeader .TitleDescription,
.rs-legacy-page #CommonHeader .TitleDescription a {
    color: var(--rs-text-muted);
}

.rs-legacy-page #CommonHeader .nav {
    margin-top: 1rem;
}

.rs-legacy-page #CommonHeader .nav a {
    border-radius: 999px;
    padding: .45rem .75rem;
}

.rs-legacy-page #content img {
    max-width: 100%;
    height: auto;
}

.rs-legacy-page #content .button,
.rs-legacy-page #Common .button {
    border-radius: 999px;
    font-family: var(--rs-font-display);
}

/* The chat and messenger root pages use the unified Richscripts panel as their
   only masthead, so the duplicate link list is hidden.

   NOT hidden: "#Common > table:first-of-type". On both sections that first
   direct-child table is the page body -- it contains the <h1> and every
   paragraph -- so hiding it rendered /ASP.NET+Chat/ and /web-messenger/
   completely blank. The old banner chrome lives inside #CommonHeader, which is
   hidden separately. */
.rs-legacy-page #Common > ul {
    display: none;
}

/* Web Messenger and ASP.NET Chat place their old product banner/navigation
   inside registered controls rather than directly under #Common. */
.rs-legacy-page:has(#CommonHeader) #CommonHeader,
.rs-legacy-page:has(#CommonHeader) #CommonTabBar {
    display: none !important;
}

.rs-legacy-page #CommonHeader,
.rs-legacy-page #CommonTabBar {
    display: none !important;
}

/* Web Messenger / ASP.NET Chat product-page rebuild. The original pages are
   table-driven, so the presentation is rebuilt through the outer table shell
   while preserving the existing server-side content and links. */
.rs-legacy-page #Common {
    padding-block: 2rem 5rem;
}

.rs-legacy-page #Common > table:nth-of-type(2) {
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    border: 1px solid var(--rs-border);
    border-radius: 2rem;
    background:
        radial-gradient(circle at 88% 8%, var(--rs-accent-soft), transparent 26%),
        var(--rs-surface);
    box-shadow: 0 24px 60px -38px rgba(15, 23, 42, .38);
}

.rs-legacy-page #Common > table:nth-of-type(2) > tbody > tr > td {
    padding: 0;
}

.rs-legacy-page #Common > table:nth-of-type(2) > tbody > tr > td > div {
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.rs-legacy-page #Common > table:nth-of-type(2) h1 {
    max-width: 14ch;
    margin-bottom: 1.25rem;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.rs-legacy-page #Common > table:nth-of-type(2) h1 + table {
    display: block;
    width: 100% !important;
    margin-top: 1.5rem;
    border: 0;
}

.rs-legacy-page #Common > table:nth-of-type(2) h1 + table > tbody,
.rs-legacy-page #Common > table:nth-of-type(2) h1 + table > tbody > tr,
.rs-legacy-page #Common > table:nth-of-type(2) h1 + table > tbody > tr > td {
    display: block;
    width: 100% !important;
}

.rs-legacy-page #Common > table:nth-of-type(2) h1 + table a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    margin: .35rem .5rem .35rem 0;
    padding: .7rem 1.15rem;
    border: 1px solid var(--rs-border-strong);
    border-radius: 999px;
    background: var(--rs-surface);
    color: var(--rs-link);
    font-family: var(--rs-font-display);
    font-weight: 600;
    text-decoration: none;
}

.rs-legacy-page #Common > table:nth-of-type(2) h1 + table a:hover {
    border-color: var(--rs-accent);
    background: var(--rs-accent);
    color: #fff;
}

@media (min-width: 900px) {
    .rs-legacy-page #Common > table:nth-of-type(2) h1 + table > tbody > tr > td {
        max-width: 66ch;
    }
}

@media (max-width: 768px) {
    .rs-legacy-page #Common,
    .rs-legacy-page #content {
        padding-inline: 1rem;
    }

    .rs-legacy-page #Common > table,
    .rs-legacy-page #content > table {
        display: block;
        border-spacing: 0;
    }

    .rs-legacy-page #Common > table > tbody,
    .rs-legacy-page #Common > table > tbody > tr,
    .rs-legacy-page #Common > table > tbody > tr > td,
    .rs-legacy-page #content > table > tbody,
    .rs-legacy-page #content > table > tbody > tr,
    .rs-legacy-page #content > table > tbody > tr > td {
        display: block;
        width: 100% !important;
        max-width: 100%;
    }
}

.rs-product-section .rs-legacy-bar {
    position: sticky;
    top: 0;
    z-index: 1030;
    max-width: 1536px;
    margin: 0 auto;
    padding: .85rem .8rem;
    background: var(--rs-bg);
    border: 0;
}

.rs-product-section .rs-legacy-bar__inner {
    min-height: 4.25rem;
    max-width: none;
    padding: .65rem 1.25rem;
    border: 1px solid var(--rs-border);
    border-radius: 2rem;
    background-color: color-mix(in srgb, var(--rs-surface) 92%, transparent);
    box-shadow: 0 12px 32px -12px rgba(15, 23, 42, .18);
    backdrop-filter: blur(16px) saturate(180%);
}

.rs-product-section .rs-legacy-bar__brand {
    color: var(--rs-text) !important;
    font-family: var(--rs-font-display);
    font-size: 1.05rem;
    letter-spacing: -.02em;
}

.rs-product-section .rs-legacy-bar__nav {
    gap: .15rem;
    justify-content: center;
}

.rs-product-section .rs-legacy-bar__nav a {
    border-radius: 999px;
    color: var(--rs-text-muted);
    padding: .5rem .7rem;
    white-space: nowrap;
}

.rs-product-section .rs-legacy-bar__nav a:hover {
    background-color: var(--rs-bg-inset);
    color: var(--rs-text);
}

.rs-product-section #header,
.rs-product-section #navigation {
    display: none !important;
}

.rs-editor-section {
    background-color: var(--rs-bg);
}

/* Keep the editor section on the same single-panel navigation pattern as the
   main Richscripts header. Its older second masthead is hidden after its links
   are promoted into the unified top panel above. */
.rs-editor-section .rs-legacy-bar {
    position: sticky;
    top: 0;
    z-index: 1030;
    max-width: 1536px;
    margin: 0 auto;
    padding: .85rem .8rem;
    background: var(--rs-bg);
    border: 0;
}

.rs-editor-section .rs-legacy-bar__inner {
    min-height: 4.25rem;
    max-width: none;
    padding: .65rem 1.25rem;
    border: 1px solid var(--rs-border);
    border-radius: 2rem;
    background-color: color-mix(in srgb, var(--rs-surface) 92%, transparent);
    box-shadow: 0 12px 32px -12px rgba(15, 23, 42, .18);
    backdrop-filter: blur(16px) saturate(180%);
}

.rs-editor-section .rs-legacy-bar__nav {
    gap: .15rem;
    justify-content: center;
}

.rs-editor-section .rs-legacy-bar__nav a {
    border-radius: 999px;
    color: var(--rs-text-muted);
    padding: .5rem .7rem;
    white-space: nowrap;
}

.rs-editor-section .rs-legacy-bar__nav a:hover {
    background-color: var(--rs-bg-inset);
    color: var(--rs-text);
}

.rs-editor-section .rs-legacy-bar__brand {
    color: var(--rs-text) !important;
    font-family: var(--rs-font-display);
    font-size: 1.05rem;
    letter-spacing: -.02em;
}

.rs-editor-section #header {
    display: none !important;
}

.rs-editor-section #header {
    position: sticky;
    top: 0;
    z-index: 1020;
    margin: .75rem auto 0;
    max-width: 1180px;
    border: 1px solid var(--rs-border) !important;
    border-radius: 1.5rem;
    background-color: color-mix(in srgb, var(--rs-surface) 92%, transparent) !important;
    box-shadow: 0 12px 32px -18px rgba(15, 23, 42, .28) !important;
    backdrop-filter: blur(16px) saturate(160%);
}

.rs-editor-section #header .container {
    max-width: none;
}

.rs-editor-section #header .navbar-brand img {
    max-height: 2.6rem;
    width: auto;
}

.rs-editor-section #header .nav-link {
    border-radius: 999px;
    color: var(--rs-text-muted) !important;
    font-family: var(--rs-font-display);
    font-weight: 500;
    padding-inline: .8rem !important;
}

.rs-editor-section #header .nav-link:hover,
.rs-editor-section #header .nav-link:focus {
    background-color: var(--rs-bg-inset);
    color: var(--rs-text) !important;
}

.rs-editor-section #content > .container {
    max-width: 1180px;
    padding-block: clamp(3rem, 6vw, 5.5rem);
}

.rs-editor-section #content > .container > .row {
    align-items: start;
}

.rs-editor-section #content h1,
.rs-editor-section #content h2,
.rs-editor-section #content h3 {
    font-family: var(--rs-font-display);
    color: var(--rs-text);
    letter-spacing: -.025em;
}

.rs-editor-section #content h3.mb-5 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    margin-bottom: 1.25rem !important;
}

.rs-editor-section #content .col-lg-9 > .row {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--rs-border);
    border-radius: 1.5rem;
    background: var(--rs-surface);
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, .32);
}

.rs-editor-section #content .col-lg-9 > .row img {
    border-radius: var(--rs-radius);
    border: 1px solid var(--rs-border);
}

.rs-editor-section #content .col-lg-3 > .d-grid {
    margin-bottom: 1rem;
}

.rs-editor-section #content .col-lg-3 .card-body {
    padding: 0;
}

.rs-editor-section #content .col-lg-3 .list-group {
    overflow: hidden;
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    box-shadow: 0 10px 24px -20px rgba(15, 23, 42, .35);
}

.rs-editor-section #content .col-lg-3 .list-group-item {
    margin: 0;
    border-width: 0 0 1px;
    border-radius: 0 !important;
    padding: .8rem 1rem;
}

.rs-editor-section #content .col-lg-3 .list-group-item:last-child {
    border-bottom: 0;
}

.rs-editor-section #content .col-lg-3 .list-group-item:hover {
    background-color: var(--rs-accent-soft);
}

.rs-editor-section #content .list-group-item > .d-flex {
    align-items: center;
    gap: 1rem;
}

.rs-editor-section #content .list-group-item img {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: contain;
    border-radius: var(--rs-radius-sm);
    background: var(--rs-bg-inset);
    padding: .35rem;
}

.rs-editor-section #content .list-group-item p {
    margin-bottom: 0;
}

.rs-editor-section #content table.datatable,
.rs-editor-section #content table.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    background: var(--rs-surface);
}

.rs-editor-section #content table.datatable th,
.rs-editor-section #content table.datatable td,
.rs-editor-section #content table.table th,
.rs-editor-section #content table.table td {
    padding: .9rem 1rem;
    border-color: var(--rs-border);
    vertical-align: top;
}

.rs-editor-section #content table.datatable th,
.rs-editor-section #content table.table th {
    background-color: var(--rs-bg-inset);
    color: var(--rs-text);
    font-family: var(--rs-font-display);
}

.rs-editor-section footer {
    border-top: 1px solid var(--rs-inverse-border);
}

.rs-editor-section #leftcol,
.rs-editor-section #rightcol {
    float: none;
    width: auto;
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: 1.25rem;
}

.rs-editor-section #leftcol {
    padding-block: 1rem 3rem;
}

.rs-editor-section #leftcol h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: 0;
}

.rs-editor-section #leftcol table.datatable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    overflow: hidden;
    background: var(--rs-surface);
}

.rs-editor-section #leftcol table.datatable th,
.rs-editor-section #leftcol table.datatable td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--rs-border);
    color: var(--rs-text-muted);
    vertical-align: top;
}

.rs-editor-section #leftcol table.datatable th {
    background: var(--rs-bg-inset);
    color: var(--rs-text);
    font-family: var(--rs-font-display);
}

.rs-editor-section #leftcol table.datatable tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 991px) {
    .rs-legacy-page .rs-legacy-bar {
        padding: .5rem;
    }

    .rs-legacy-page .rs-legacy-bar__inner {
        border-radius: 1.25rem;
        padding: .6rem .9rem;
    }

    .rs-legacy-page .rs-legacy-bar__nav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        max-width: 100%;
        scrollbar-width: none;
    }

    .rs-legacy-page .rs-legacy-bar__nav::-webkit-scrollbar {
        display: none;
    }

    .rs-product-section .rs-legacy-bar {
        padding: .5rem;
    }

    .rs-product-section .rs-legacy-bar__inner {
        border-radius: 1.25rem;
        padding: .6rem .9rem;
    }

    .rs-product-section .rs-legacy-bar__nav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        max-width: 100%;
        scrollbar-width: none;
    }

    .rs-product-section .rs-legacy-bar__nav::-webkit-scrollbar {
        display: none;
    }

    .rs-editor-section .rs-legacy-bar {
        padding: .5rem;
    }

    .rs-editor-section .rs-legacy-bar__inner {
        border-radius: 1.25rem;
        padding: .6rem .9rem;
    }

    .rs-editor-section .rs-legacy-bar__nav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        max-width: 100%;
        scrollbar-width: none;
    }

    .rs-editor-section .rs-legacy-bar__nav::-webkit-scrollbar {
        display: none;
    }

    .rs-editor-section #header {
        margin-inline: .75rem;
        border-radius: 1rem;
    }

    .rs-editor-section #content > .container {
        padding-inline: 1rem;
    }

    .rs-editor-section #leftcol,
    .rs-editor-section #rightcol {
        padding-inline: 1rem;
    }
}

/* Legacy Live Support pages: preserve their content while giving the old
   two-column layout the same responsive canvas as the newer pages. */
#leftcol,
#rightcol {
    box-sizing: border-box;
}

@media (max-width: 800px) {
    #leftcol,
    #rightcol {
        float: none !important;
        width: 100% !important;
        margin: 0 0 1.5rem !important;
    }

    .rs-container {
        padding-inline: 1rem;
    }

    .rs-page-header {
        padding-block: 2.75rem 3rem;
    }

    .rs-section {
        padding-block: 3rem;
    }

    .rs-section-head {
        margin-bottom: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rs-card--link,
    .rs-article-card,
    .rs-hero__media img,
    .rs-btn {
        transition: none;
    }
}

.rs-category-section.rs-hidden {
    display: none;
}

/* breadcrumb navigation */
.rs-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .9rem;
    color: var(--rs-text-muted);
    margin: 1rem 0;
}

.rs-breadcrumb a {
    color: var(--rs-accent);
    text-decoration: none;
    transition: color .15s ease;
}

.rs-breadcrumb a:hover {
    color: var(--rs-accent-strong);
    text-decoration: underline;
}

.rs-breadcrumb li {
    display: flex;
    align-items: center;
    list-style: none;
}

.rs-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin: 0 .35rem;
    opacity: 0.5;
}

/* --------------------------------------------------------------------------
   17. Utilities
   -------------------------------------------------------------------------- */

.rs-mt-0 { margin-top: 0 !important; }
.rs-mb-0 { margin-bottom: 0 !important; }
.rs-mb-1 { margin-bottom: .5rem !important; }
.rs-mb-2 { margin-bottom: 1rem !important; }
.rs-mb-3 { margin-bottom: 1.5rem !important; }
.rs-mb-4 { margin-bottom: 2rem !important; }
.rs-mt-3 { margin-top: 1.5rem !important; }
.rs-mt-4 { margin-top: 2rem !important; }

.rs-muted { color: var(--rs-text-subtle) !important; }
.rs-mono { font-family: var(--rs-font-mono); font-size: .9em; }
.rs-nowrap { white-space: nowrap; }

.rs-flex-between {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    justify-content: space-between;
}

.rs-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
