/* ==========================================================================
   Shift Uniforms — a uniforms & workwear storefront (extends modern-retail).

   Ported from the Stitch "Shift Uniforms | Professional Workwear & Bulk
   Solutions" export (docs/templates/pending/stitch_73_shift_uniforms_e_commerce_portal).
   This theme INHERITS every modern-retail page + partial and ships only its own
   brand layer plus seven home partials with `sf-*` markup. This stylesheet
   therefore has two jobs:

     (a) RE-POINT the base neutral tokens (--mr-*) at the utility-grey /
         Uniform Navy / Scrub Teal palette so every inherited page (shop / PDP /
         cart / checkout / account / blog) reads on-brand, and finish the
         inherited chrome (buttons, forms, header, trust, card, footer);

     (b) style the theme's own `sf-*` sections — the split hero panel, the
         captioned promo cards, the "Ordered Every Term" keyline link, the
         three-panel bulk-programmes band, the hairline department band, the
         "Uniform Insights" journal cards and the navy "On Duty" newsletter.

   Everything is scoped under `body.sf-theme` and reads the 5 customizer tokens
   (--bs-primary, --bs-primary-rgb, --ll-accent, --ll-font-headings,
   --ll-font-body, --ll-btn-radius) with theme.json-default fallbacks, so the
   customizer + live preview keep working: change the primary colour and every
   navy surface follows.

   Palette (from the export's rendered code.html + DESIGN.md prose):
     Uniform Navy  #092145 (rendered `primary` — CTAs, announcement, footer, ink
                   structure; the theme.json primary_color). 15.97:1 on white,
                   so it is safe as TEXT and as a FILL under white.
     Navy mid      #22375c (rendered `primary-container` — the newsletter band)
     Scrub Teal    #006a60 (rendered `secondary`, the theme.json accent_color).
                   6.50:1 on white and 6.50:1 under white — the rare accent that
                   is safe as text AND as a fill, so there is no darker `-ink`
                   sibling in this theme.
     Teal fixed    #8bf2e1 (rendered `secondary-container` — glyphs and the CTA
                   on the navy panel; 12.08:1 against the navy fill)
     Utility Grey  #eff1f2 canvas · #ffffff surfaces · #e7eeff / #dee8ff tonal
     Ink           #111c2c · muted #44474e · soft #63666e · lines #d1d5db
   ========================================================================== */

body.sf-theme {
    /* Customizer-driven brand tokens (fallbacks match theme.json defaults) */
    --sf-navy: var(--bs-primary, #092145);
    --sf-navy-rgb: var(--bs-primary-rgb, 9, 33, 69);
    --sf-teal: var(--ll-accent, #006a60);
    --sf-radius: var(--ll-btn-radius, 0.375rem);
    --sf-font-head: var(--ll-font-headings, "Poppins"), system-ui, sans-serif;
    --sf-font-body: var(--ll-font-body, "Source Sans 3"), system-ui, -apple-system, sans-serif;

    /* Literal palette (the export's own Material token set) */
    --sf-navy-mid: #22375c;
    --sf-teal-deep: #00544c;
    --sf-teal-fixed: #8bf2e1;
    --sf-canvas: #eff1f2;
    --sf-white: #ffffff;
    --sf-tonal: #e7eeff;
    --sf-tonal-2: #dee8ff;
    --sf-tonal-3: #d8e3fa;
    --sf-ink: #111c2c;
    --sf-muted: #44474e;
    --sf-soft: #63666e;
    --sf-line: #d1d5db;
    --sf-line-2: #c4c6cf;

    /* Depth — DESIGN.md prefers tonal layers + 1px keylines over shadows. */
    --sf-shadow: 0 4px 8px rgba(9, 33, 69, 0.04);
    --sf-shadow-lg: 0 10px 28px -14px rgba(9, 33, 69, 0.28);

    /* Re-point the inherited base neutrals at the utility/navy palette so every
       inherited mr-* surface (bands, borders, fills, muted text, radius) reads
       on-brand across every inherited page. */
    --mr-ink: var(--sf-ink);
    --mr-muted: var(--sf-muted);
    --mr-soft: var(--sf-soft);
    --mr-surface: var(--sf-white);
    --mr-band: var(--sf-tonal);
    --mr-band-alt: var(--sf-tonal);
    --mr-fill: var(--sf-tonal-3);
    --mr-border: var(--sf-line);
    --mr-border-strong: var(--sf-line-2);
    --mr-radius: var(--sf-radius);
    --mr-gold: var(--sf-teal);
    --mr-shadow: var(--sf-shadow);

    /* Bare prose links read navy rather than Bootstrap blue. Set the RGB token
       (NOT a bare `body.sf-theme a` rule — that out-specifies
       .mr-btn--primary's white label and blanks the hero CTA). */
    --bs-link-color-rgb: var(--sf-navy-rgb);
    --bs-link-hover-color-rgb: 0, 106, 96;

    background-color: var(--sf-canvas);
    color: var(--sf-ink);
    font-family: var(--sf-font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* ===== Typography ======================================================== */
/* DESIGN: Poppins (for the export's Plus Jakarta Sans) Semibold headlines with
   slightly tightened tracking; Source Sans 3 for everything functional. */
body.sf-theme h1, body.sf-theme h2, body.sf-theme h3,
body.sf-theme h4, body.sf-theme h5, body.sf-theme h6 {
    font-family: var(--sf-font-head);
    color: var(--sf-ink);
    font-weight: 600;
    letter-spacing: -0.01em;
}
body.sf-theme .mr-display { font-weight: 600; letter-spacing: -0.02em; color: var(--sf-navy); }
body.sf-theme .mr-headline { font-weight: 600; color: var(--sf-navy); }

/* Labels: Source Sans 3 semibold, +0.05em tracking, uppercase (DESIGN label-md).
   Scrub Teal is 5.65:1 on the utility canvas and 6.50:1 on white — it needs no
   darker sibling, unlike most accents. */
body.sf-theme .mr-eyebrow {
    font-family: var(--sf-font-body);
    color: var(--sf-teal);
    font-weight: 600;
    letter-spacing: 0.08em;
}
body.sf-theme .sf-subline { color: var(--sf-muted); font-size: 1rem; }

/* Decorative arrow on the template's "… →" links (chrome, not merchant data) */
body.sf-theme .sf-arrow::after { content: " \2192"; }

/* ===== Buttons (6px "practical" corners) ================================= */
/* DESIGN: Primary = Uniform Navy fill + white label; Ghost = 1px navy keyline
   with navy label; the Scrub Teal fill is the accent CTA. */
body.sf-theme .mr-btn {
    font-family: var(--sf-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: none;
    border-radius: var(--sf-radius);
    padding: 0.85rem 1.75rem;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}
body.sf-theme .mr-btn--hero,
body.sf-theme .sf-btn-hero { padding: 1rem 2rem; }
body.sf-theme .mr-btn--primary { background-color: var(--sf-navy); color: #fff; }
body.sf-theme .mr-btn--primary:hover { background-color: var(--sf-navy-mid); color: #fff; }
body.sf-theme .mr-btn--outline { border-color: var(--sf-navy); color: var(--sf-navy); }
body.sf-theme .mr-btn--outline:hover { background-color: var(--sf-navy); color: #fff; }
body.sf-theme .mr-btn--light { background-color: #fff; color: var(--sf-navy); }
body.sf-theme .mr-btn--light:hover { background-color: var(--sf-tonal); color: var(--sf-navy); }
body.sf-theme .mr-btn--on-dark { border-width: 1px; border-color: rgba(255, 255, 255, 0.85); color: #fff; }
body.sf-theme .mr-btn--on-dark:hover { background-color: #fff; color: var(--sf-navy); }
body.sf-theme .mr-btn--ghost { color: var(--sf-navy); }
body.sf-theme .mr-btn--ghost:hover { color: var(--sf-teal); }
/* The export's "Request Bulk Quote" secondary: navy keyline, navy label. */
body.sf-theme .sf-btn-ghost {
    background-color: transparent;
    border: 1px solid var(--sf-navy);
    color: var(--sf-navy);
}
body.sf-theme .sf-btn-ghost:hover { background-color: var(--sf-navy); color: #fff; }
body.sf-theme .mr-ulink:hover { color: var(--sf-teal); border-color: var(--sf-teal); }
body.sf-theme .mr-rail-btn:hover { background: var(--sf-navy); border-color: var(--sf-navy); color: #fff; }

/* Bootstrap's own .btn-primary (the shared PDP "Submit review" button) takes
   --bs-btn-bg from the token but keeps a white label — the navy fill carries it
   at 15.97:1. Re-assert the mr- primary label explicitly (known-defect guard). */
body.sf-theme .mr-btn.mr-btn--primary { color: #fff; }

/* ===== Forms (white field, 1px keyline, navy 2px focus) ================== */
body.sf-theme .form-control,
body.sf-theme .form-select {
    border-radius: var(--sf-radius);
    border-color: var(--sf-line-2);
    background-color: var(--sf-white);
    color: var(--sf-ink);
}
/* DESIGN "Input Fields": on focus the border shifts to Uniform Navy at 2px. */
body.sf-theme .form-control:focus,
body.sf-theme .form-select:focus {
    border-color: var(--sf-navy);
    box-shadow: 0 0 0 2px rgba(var(--sf-navy-rgb), 0.28);
}
/* Bootstrap's invalid state must survive the border-colour override above. */
body.sf-theme .form-control.is-invalid,
body.sf-theme .form-select.is-invalid,
body.sf-theme .was-validated .form-control:invalid,
body.sf-theme .was-validated .form-select:invalid { border-color: #ba1a1a; }
body.sf-theme .form-control.is-invalid:focus,
body.sf-theme .form-select.is-invalid:focus {
    border-color: #ba1a1a;
    box-shadow: 0 0 0 2px rgba(186, 26, 26, 0.25);
}
/* Never a padding shorthand on the select — it eats Bootstrap's caret gutter. */
body.sf-theme .form-select { padding-inline-end: 2.25rem; }
body.sf-theme .form-check-input:checked { background-color: var(--sf-navy); border-color: var(--sf-navy); }
body.sf-theme .form-label { color: var(--sf-ink); font-weight: 600; }

/* ===== Announcement ribbon (navy, matches the export's top bar) ========== */
body.sf-theme .mr-announce {
    background-color: var(--sf-navy);
    color: #fff;
    letter-spacing: 0.05em;
    font-weight: 600;
}
body.sf-theme .mr-announce a { color: var(--sf-teal-fixed); }

/* ===== Header ============================================================ */
body.sf-theme .mr-header { background-color: var(--sf-white); border-bottom-color: var(--sf-line-2); }
body.sf-theme .mr-logo {
    font-family: var(--sf-font-head);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--sf-navy);
}
body.sf-theme .mr-nav-link { font-weight: 400; color: var(--sf-muted); }
body.sf-theme .mr-nav-link:hover { color: var(--sf-teal); }
/* The export marks the current department with a 2px navy keyline. */
body.sf-theme .mr-nav-link.is-active {
    color: var(--sf-navy);
    font-weight: 600;
    border-bottom-color: var(--sf-navy);
}
body.sf-theme .mr-icon-btn { color: var(--sf-navy); }
body.sf-theme .mr-icon-btn:hover { color: var(--sf-teal); }
body.sf-theme .mr-search input { border-radius: var(--sf-radius); background-color: var(--sf-canvas); border-color: var(--sf-line); }
body.sf-theme .mr-search input:focus { background-color: var(--sf-white); }
/* Cart / wishlist counters: the export's teal pill with a white digit (6.5:1). */
body.sf-theme .mr-badge,
body.sf-theme .mr-badge--wish { background-color: var(--sf-teal); color: #fff; }

/* ===== sf-hero — the white split panel ================================== */
body.sf-theme .sf-hero { padding-block: clamp(28px, 4vw, 48px); }
body.sf-theme .sf-hero__panel {
    background-color: var(--sf-white);
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    overflow: hidden;
}
body.sf-theme .sf-hero__figure { height: 100%; min-height: 320px; }
body.sf-theme .sf-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}
body.sf-theme .sf-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: clamp(1.75rem, 4vw, 4rem);
}
body.sf-theme .sf-hero__eyebrow {
    font-family: var(--sf-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sf-teal);
    margin-bottom: 1rem;
}
body.sf-theme .sf-hero__title {
    font-family: var(--sf-font-head);
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--sf-navy);
    margin-bottom: 1.25rem;
}
body.sf-theme .sf-hero__lead {
    max-width: 34rem;
    color: var(--sf-muted);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}
body.sf-theme .sf-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ===== Trust strip (inherited mr-trust) ================================== */
body.sf-theme .mr-band--alt { background-color: var(--sf-tonal); }
body.sf-theme .mr-trust svg { color: var(--sf-teal); }
body.sf-theme .mr-trust strong {
    color: var(--sf-navy);
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.9rem;
    font-weight: 600;
}
body.sf-theme .mr-trust span { color: var(--sf-muted); font-size: 0.78rem; }

/* ===== sf-promo — white keyline cards, caption BELOW the photo =========== */
body.sf-theme .sf-promo__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--sf-white);
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
body.sf-theme .sf-promo__card:hover { box-shadow: var(--sf-shadow-lg); border-color: var(--sf-line-2); }
body.sf-theme .sf-promo__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    background-color: var(--sf-tonal);
}
body.sf-theme .sf-promo__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
body.sf-theme .sf-promo__card:hover .sf-promo__img { transform: scale(1.05); }
body.sf-theme .sf-promo__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--sf-tonal) 0%, var(--sf-tonal-3) 100%);
}
body.sf-theme .sf-promo__body { display: block; padding: 1.5rem; }
body.sf-theme .sf-promo__title {
    display: block;
    font-family: var(--sf-font-head);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--sf-navy);
    margin-bottom: 0.4rem;
}
body.sf-theme .sf-promo__text { display: block; color: var(--sf-muted); margin-bottom: 1rem; }
body.sf-theme .sf-promo__cta {
    display: inline-block;
    font-family: var(--sf-font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--sf-teal);
}
body.sf-theme .sf-promo__card:hover .sf-promo__cta { color: var(--sf-teal-deep); }

/* ===== Product card (inherited) — white card, 1px keyline, inset text ==== */
/* DESIGN "Cards": white surface, 1px #D1D5DB border, vertical stack of media /
   category label / name / price. The base card is borderless with flush text,
   so adding the border means the text must be inset (recurring gotcha #2). */
body.sf-theme .mr-card {
    background-color: var(--sf-white);
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
body.sf-theme .mr-card:hover { box-shadow: var(--sf-shadow-lg); border-color: var(--sf-line-2); }
body.sf-theme .mr-card__media { margin-bottom: 0; border-radius: 0; aspect-ratio: 1 / 1; background-color: var(--sf-tonal); }
body.sf-theme .mr-card__eyebrow,
body.sf-theme .mr-card__title,
body.sf-theme .mr-card__price,
body.sf-theme .mr-card [data-testid="card-rating"] { padding-inline: 1rem; }
body.sf-theme .mr-card__media + * { padding-top: 1rem; }
body.sf-theme .mr-card__eyebrow {
    color: var(--sf-teal);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
body.sf-theme .mr-card__title { font-family: var(--sf-font-body); font-weight: 600; color: var(--sf-navy); }
body.sf-theme .mr-card__title a { color: inherit; }
body.sf-theme .mr-card__title a:hover { color: var(--sf-teal); }
body.sf-theme .mr-card__price {
    padding-bottom: 1.1rem;
    font-family: var(--sf-font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--sf-navy);
}
body.sf-theme .mr-card__price del { color: var(--sf-soft); font-weight: 400; font-size: 0.85rem; }

/* SALE / demo badge — the export's teal chip with a white label (6.50:1). The
   base styles .mr-card__sale but the partial emits .mr-card__badge. */
body.sf-theme .mr-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    background-color: var(--sf-teal);
    color: #fff;
    font-family: var(--sf-font-body);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: calc(var(--sf-radius) * 0.67);
}

/* Overlay controls — restyled TOGETHER, contrast-checked in BOTH states.
   Navy on near-white ≈ 15.1:1; Scrub Teal on white ≈ 6.5:1 — both clear the
   3:1 WCAG minimum for UI components. */
body.sf-theme .mr-card__wish,
body.sf-theme .mr-card__quickview {
    color: var(--sf-navy);
    background-color: rgba(255, 255, 255, 0.92);
}
body.sf-theme .mr-card__wish:hover,
body.sf-theme .mr-card__quickview:hover {
    color: var(--sf-teal);
    background-color: #fff;
}
body.sf-theme .mr-card__wish.is-active { color: var(--sf-teal); }
/* Slide-up Add to Cart — the export's navy primary with a white label. */
body.sf-theme .mr-card__quick {
    background-color: var(--sf-navy);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.05em;
}
body.sf-theme .mr-card__quick:hover { background-color: var(--sf-teal); color: #fff; }

/* ===== sf-featured / sf-arrivals — headers and the keyline "see all" ===== */
body.sf-theme .sf-keyline-link {
    font-family: var(--sf-font-body);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--sf-navy);
    text-decoration: none;
    border-bottom: 1px solid var(--sf-navy);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
body.sf-theme .sf-keyline-link:hover { color: var(--sf-teal); border-bottom-color: var(--sf-teal); }
/* The export rules off "New Lines" from the row above it. */
body.sf-theme .sf-arrivals { border-top: 1px solid var(--sf-line-2); }

/* ===== sf-programs — the three institutional procurement panels ========== */
body.sf-theme .sf-programs { padding-block: clamp(40px, 6vw, 64px); }
body.sf-theme .sf-programs__panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    gap: 1.5rem;
    padding: clamp(1.75rem, 3.5vw, 2.5rem);
    border: 1px solid transparent;
    border-radius: var(--sf-radius);
    background-color: var(--sf-tonal);
    color: var(--sf-navy);
}
body.sf-theme .sf-programs__glyph { display: inline-flex; color: var(--sf-teal); }
body.sf-theme .sf-programs__glyph svg { width: 40px; height: 40px; }
body.sf-theme .sf-programs__title {
    font-family: var(--sf-font-head);
    font-size: 1.5rem;
    font-weight: 600;
    color: inherit;
    margin: 0;
}
body.sf-theme .sf-programs__text { margin: 0; color: var(--sf-muted); }
body.sf-theme .sf-programs__btn {
    margin-top: auto;
    display: inline-block;
    font-family: var(--sf-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--sf-radius);
    border: 1px solid var(--sf-navy);
    color: var(--sf-navy);
    background-color: transparent;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
body.sf-theme .sf-programs__btn:hover { background-color: var(--sf-navy); color: #fff; }

/* Panel 1 — Uniform Navy fill. Its CTA uses the export's own `secondary-fixed`
   mint (#8bf2e1) with a navy label: 12.08:1 both ways, where a Scrub Teal fill
   would sit at only 2.46:1 against the navy panel. */
body.sf-theme .sf-programs .col:nth-child(1) .sf-programs__panel {
    background-color: var(--sf-navy);
    color: #fff;
}
body.sf-theme .sf-programs .col:nth-child(1) .sf-programs__glyph { color: var(--sf-teal-fixed); }
body.sf-theme .sf-programs .col:nth-child(1) .sf-programs__text { color: rgba(255, 255, 255, 0.9); }
body.sf-theme .sf-programs .col:nth-child(1) .sf-programs__btn {
    background-color: var(--sf-teal-fixed);
    border-color: var(--sf-teal-fixed);
    color: var(--sf-navy);
}
body.sf-theme .sf-programs .col:nth-child(1) .sf-programs__btn:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--sf-navy);
}

/* Panel 2 — Scrub Teal fill with a navy CTA. The 1px light keyline guarantees
   the button boundary clears 3:1 against the teal surface. */
body.sf-theme .sf-programs .col:nth-child(2) .sf-programs__panel {
    background-color: var(--sf-teal);
    color: #fff;
}
body.sf-theme .sf-programs .col:nth-child(2) .sf-programs__glyph { color: #fff; }
body.sf-theme .sf-programs .col:nth-child(2) .sf-programs__text { color: rgba(255, 255, 255, 0.92); }
body.sf-theme .sf-programs .col:nth-child(2) .sf-programs__btn {
    background-color: var(--sf-navy);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}
body.sf-theme .sf-programs .col:nth-child(2) .sf-programs__btn:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--sf-navy);
}

/* Panel 3 — the tonal keyline surface (the export's `surface-container`). */
body.sf-theme .sf-programs .col:nth-child(3) .sf-programs__panel { border-color: var(--sf-line-2); }

/* ===== sf-deptband — the hairline department grid ======================== */
body.sf-theme .sf-deptband {
    background-color: var(--sf-white);
    border-top: 1px solid var(--sf-line-2);
    border-bottom: 1px solid var(--sf-line-2);
    padding-block: clamp(40px, 6vw, 64px);
}
body.sf-theme .sf-deptband__title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
body.sf-theme .sf-deptband__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background-color: var(--sf-line-2);
    border: 1px solid var(--sf-line-2);
}
body.sf-theme .sf-deptband__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: clamp(1.75rem, 4vw, 3rem) 1rem;
    background-color: var(--sf-white);
    text-decoration: none;
    transition: background-color 0.2s ease;
}
body.sf-theme .sf-deptband__tile:hover { background-color: var(--sf-tonal); }
body.sf-theme .sf-deptband__glyph { display: inline-flex; color: var(--sf-navy); }
body.sf-theme .sf-deptband__glyph svg { width: 38px; height: 38px; transition: transform 0.2s ease; }
body.sf-theme .sf-deptband__tile:hover .sf-deptband__glyph svg { transform: scale(1.1); }
body.sf-theme .sf-deptband__label {
    font-family: var(--sf-font-head);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sf-navy);
}
@media (min-width: 768px) {
    body.sf-theme .sf-deptband__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== sf-journal — "Uniform Insights" keyline article cards ============= */
body.sf-theme .sf-journal__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--sf-white);
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    overflow: hidden;
}
body.sf-theme .sf-journal__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
body.sf-theme .sf-journal__media img { width: 100%; height: 100%; object-fit: cover; }
body.sf-theme .sf-journal__body { padding: clamp(1.5rem, 3vw, 2rem); }
body.sf-theme .sf-journal__label {
    display: block;
    font-family: var(--sf-font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sf-teal);
    margin-bottom: 0.75rem;
}
body.sf-theme .sf-journal__title {
    font-family: var(--sf-font-head);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}
body.sf-theme .sf-journal__title a { color: var(--sf-navy); text-decoration: none; }
body.sf-theme .sf-journal__title a:hover { color: var(--sf-teal); }
body.sf-theme .sf-journal__excerpt { color: var(--sf-muted); margin-bottom: 1.5rem; }
body.sf-theme .sf-journal__link {
    font-family: var(--sf-font-body);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--sf-navy);
    text-decoration: none;
}
body.sf-theme .sf-journal__link:hover { color: var(--sf-teal); }
/* Inherited blog index / post pages */
body.sf-theme .mr-article__media { border-radius: var(--sf-radius); overflow: hidden; }
body.sf-theme .mr-article__title a { color: var(--sf-navy); }
body.sf-theme .mr-article__title a:hover { color: var(--sf-teal); }

/* ===== Brand wordmark strip (inherited, off in the demo) ================= */
body.sf-theme .mr-brandstrip {
    font-family: var(--sf-font-head);
    color: var(--sf-soft);
    letter-spacing: 0.12em;
}
body.sf-theme .mr-brandstrip a:hover { color: var(--sf-navy); }

/* ===== sf-cta — the navy "On Duty" newsletter band ======================= */
body.sf-theme .sf-cta {
    background-color: var(--sf-navy-mid);
    color: #fff;
    padding-block: clamp(40px, 6vw, 64px);
}
body.sf-theme .sf-cta__eyebrow {
    font-family: var(--sf-font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sf-teal-fixed);
}
body.sf-theme .sf-cta__title {
    font-family: var(--sf-font-head);
    font-size: clamp(1.75rem, 3vw, 2rem);
    font-weight: 600;
    color: #fff;
}
body.sf-theme .sf-cta__body { color: rgba(255, 255, 255, 0.85); font-size: 1.125rem; }
body.sf-theme .sf-cta__form { display: flex; flex-wrap: wrap; gap: 0; max-width: 28rem; margin-left: auto; }
body.sf-theme .sf-cta__form input {
    flex: 1 1 12rem;
    min-width: 10rem;
    background-color: #fff;
    border: 1px solid var(--sf-line-2);
    border-right: 0;
    border-radius: var(--sf-radius) 0 0 var(--sf-radius);
    color: var(--sf-ink);
    padding: 0.95rem 1.1rem;
    font-size: 1rem;
}
body.sf-theme .sf-cta__form input::placeholder { color: var(--sf-soft); }
body.sf-theme .sf-cta__form input:focus {
    outline: none;
    border-color: var(--sf-teal-fixed);
    box-shadow: 0 0 0 2px rgba(139, 242, 225, 0.4);
}
/* A white button on the navy band clears 11.87:1 against it, and its navy label
   clears 15.97:1 — the export's navy-on-navy pairing measured 1.35:1. */
body.sf-theme .sf-cta__btn {
    background-color: #fff;
    color: var(--sf-navy);
    border: 1px solid #fff;
    border-radius: 0 var(--sf-radius) var(--sf-radius) 0;
    font-family: var(--sf-font-body);
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.95rem 1.9rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
body.sf-theme .sf-cta__btn:hover { background-color: var(--sf-teal-fixed); border-color: var(--sf-teal-fixed); color: var(--sf-navy); }
body.sf-theme .sf-cta__note { color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; }

/* ===== Footer (inherited mr-footer) — deep-navy panel ==================== */
/* The base footer is a light band; the export's footer is Uniform Navy with
   light text. Recolour the surface AND every text token that rides on it, or
   the re-pointed dark --mr-muted / --mr-soft render invisible on the navy. */
body.sf-theme .mr-footer {
    background-color: var(--sf-navy);
    border-top-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
}
body.sf-theme .mr-footer h4 { color: #fff; }
body.sf-theme .mr-footer .mr-footer__brand { color: #fff; font-family: var(--sf-font-head); }
body.sf-theme .mr-footer a { color: rgba(255, 255, 255, 0.78); }
body.sf-theme .mr-footer a:hover { color: var(--sf-teal-fixed); }
body.sf-theme .mr-footer .mr-muted { color: rgba(255, 255, 255, 0.78); }
body.sf-theme .mr-footer .mr-soft { color: rgba(255, 255, 255, 0.58); }
body.sf-theme .mr-footer .mr-divider { background-color: rgba(255, 255, 255, 0.14); }
body.sf-theme .mr-footer .form-control {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}
body.sf-theme .mr-footer .form-control::placeholder { color: rgba(255, 255, 255, 0.5); }
body.sf-theme .mr-social { border-color: rgba(255, 255, 255, 0.22); color: #fff; }
body.sf-theme .mr-social:hover { background-color: var(--sf-teal-fixed); border-color: var(--sf-teal-fixed); color: var(--sf-navy); }

/* ===== PDP / cart / checkout / account finishing (inherited pages) ======= */
body.sf-theme .mr-crumbs a:hover,
body.sf-theme .mr-cart-row__title a:hover { color: var(--sf-teal); }
body.sf-theme .mr-stars { color: var(--sf-teal); }
body.sf-theme .mr-sale { background-color: var(--sf-teal); color: #fff; }
body.sf-theme .mr-tabs .nav-link.active { color: var(--sf-navy); border-bottom-color: var(--sf-teal); }
body.sf-theme .mr-filter__link:hover { color: var(--sf-navy); }
body.sf-theme .mr-page.is-active { background-color: var(--sf-navy); border-color: var(--sf-navy); color: #fff; }
body.sf-theme .mr-page:hover { border-color: var(--sf-navy); color: var(--sf-navy); }
body.sf-theme .mr-acct-link.is-active { background-color: var(--sf-navy); color: #fff; }
body.sf-theme .mr-acct-avatar { background-color: var(--sf-navy); color: #fff; }
body.sf-theme .mr-gallery__thumb.is-active { border-color: var(--sf-navy); }
body.sf-theme .mr-step.is-done .mr-step__dot,
body.sf-theme .mr-step.is-current .mr-step__dot { border-color: var(--sf-navy); }
body.sf-theme .mr-step.is-done .mr-step__dot { background-color: var(--sf-navy); color: #fff; }
/* DESIGN "Lists & Tables": zebra rows in Utility Grey for spec legibility. */
body.sf-theme .table { --bs-table-striped-bg: var(--sf-canvas); --bs-table-color: var(--sf-ink); }

/* ===== Accessibility — recolour focus outlines, never remove them ======== */
body.sf-theme a:focus-visible,
body.sf-theme button:focus-visible,
body.sf-theme input:focus-visible,
body.sf-theme select:focus-visible,
body.sf-theme textarea:focus-visible {
    outline: 2px solid var(--sf-navy);
    outline-offset: 2px;
}

/* ===== Motion preferences ================================================ */
@media (prefers-reduced-motion: reduce) {
    body.sf-theme .sf-promo__card:hover .sf-promo__img { transform: none; }
    body.sf-theme .sf-deptband__tile:hover .sf-deptband__glyph svg { transform: none; }
    body.sf-theme .mr-card,
    body.sf-theme .mr-card__media img,
    body.sf-theme .sf-promo__img,
    body.sf-theme .sf-promo__card,
    body.sf-theme .sf-deptband__tile,
    body.sf-theme .sf-deptband__glyph svg,
    body.sf-theme .mr-article__media img { transition: none; }
}

/* ===== Mobile (from the export's 4-column mobile frames) ================= */
@media (max-width: 991.98px) {
    body.sf-theme { font-size: 15.5px; }
    body.sf-theme .sf-hero { padding-block: 20px; }
    body.sf-theme .sf-hero__copy { padding: clamp(1.5rem, 6vw, 2rem); }
    body.sf-theme .sf-hero__figure,
    body.sf-theme .sf-hero__img { min-height: 260px; }
    body.sf-theme .sf-programs,
    body.sf-theme .sf-deptband,
    body.sf-theme .sf-cta { padding-block: clamp(32px, 9vw, 48px); }
    body.sf-theme .sf-cta__form { margin-left: 0; max-width: none; }
    body.sf-theme .sf-deptband__label { font-size: 1.05rem; }
    body.sf-theme .sf-deptband__glyph svg { width: 32px; height: 32px; }
}
