/*
 * ResponderSafety.com site styles, layered on Bootstrap 5.3.
 * Colours and type follow the 2020 Igloo theme (ig-theme-thKFgvWx8UOCp5pLSt0E1g) with contrast fixes.
 */

/* ---------- Tokens ---------- */

:root {
    --rs-blue: #0c539a;
    --rs-blue-rgb: 12, 83, 154;
    --rs-blue-dark: #07325c;
    --rs-navy: #06192c;
    --rs-navy-rgb: 6, 25, 44;
    --rs-sky: #3aa5ed;
    --rs-orange: #e56c29; /* decorative only: 3.2:1 against white */
    --rs-orange-strong: #b8501a; /* buttons and text: 5:1 against white */
    --rs-orange-stronger: #9a4215;
    --rs-surface: #f4f7fa;
    --rs-ink: #1b2733;
    --rs-muted: #5b6876;
    --rs-header-height: 84px;
    --rs-radius: .75rem;
    --rs-shadow-sm: 0 1px 2px rgba(var(--rs-navy-rgb), .06), 0 1px 3px rgba(var(--rs-navy-rgb), .08);
    --rs-shadow: 0 4px 12px rgba(var(--rs-navy-rgb), .08), 0 12px 32px rgba(var(--rs-navy-rgb), .08);

    --bs-primary: var(--rs-blue);
    --bs-primary-rgb: var(--rs-blue-rgb);
    --bs-body-font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-body-font-size: 1.0625rem;
    --bs-body-line-height: 1.65;
    --bs-body-color: var(--rs-ink);
    --bs-heading-color: var(--rs-navy);
    --bs-secondary-color: var(--rs-muted);
    --bs-link-color: var(--rs-blue);
    --bs-link-color-rgb: var(--rs-blue-rgb);
    --bs-link-hover-color: var(--rs-blue-dark);
    --bs-link-hover-color-rgb: 7, 50, 92;
    --bs-border-radius: .5rem;
    --bs-border-radius-lg: var(--rs-radius);
    --bs-focus-ring-color: rgba(var(--rs-blue-rgb), .35);
}

@media (max-width: 1199.98px) {
    :root {
        --rs-header-height: 72px;
    }
}

/* ---------- Base ---------- */

html {
    scroll-padding-top: calc(var(--rs-header-height) + 1rem);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
    text-wrap: balance;
}

h1, .h1 {
    font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
}

h2, .h2 {
    font-size: clamp(1.625rem, 1.25rem + 1.2vw, 2.25rem);
}

p {
    text-wrap: pretty;
}

a {
    text-underline-offset: .2em;
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration-thickness: 2px;
}

img {
    max-width: 100%;
    height: auto;
}

.skip-link:focus {
    position: fixed !important;
    top: .5rem;
    left: .5rem;
    z-index: 1100;
    padding: .5rem 1rem;
    background: #fff;
    border-radius: var(--bs-border-radius);
    box-shadow: var(--rs-shadow);
}

/* ---------- Buttons ---------- */

.btn {
    --bs-btn-font-weight: 500;
    --bs-btn-padding-x: 1.125rem;
    --bs-btn-padding-y: .5rem;
    --bs-btn-border-radius: .5rem;
}

.btn-lg {
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: .75rem;
    --bs-btn-font-size: 1.0625rem;
}

.btn-primary {
    --bs-btn-bg: var(--rs-blue);
    --bs-btn-border-color: var(--rs-blue);
    --bs-btn-hover-bg: var(--rs-blue-dark);
    --bs-btn-hover-border-color: var(--rs-blue-dark);
    --bs-btn-active-bg: var(--rs-blue-dark);
    --bs-btn-active-border-color: var(--rs-blue-dark);
    --bs-btn-disabled-bg: var(--rs-blue);
    --bs-btn-disabled-border-color: var(--rs-blue);
}

.btn-outline-primary {
    --bs-btn-color: var(--rs-blue);
    --bs-btn-border-color: var(--rs-blue);
    --bs-btn-hover-bg: var(--rs-blue);
    --bs-btn-hover-border-color: var(--rs-blue);
    --bs-btn-active-bg: var(--rs-blue-dark);
    --bs-btn-active-border-color: var(--rs-blue-dark);
}

.btn-accent {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--rs-orange-strong);
    --bs-btn-border-color: var(--rs-orange-strong);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--rs-orange-stronger);
    --bs-btn-hover-border-color: var(--rs-orange-stronger);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--rs-orange-stronger);
    --bs-btn-active-border-color: var(--rs-orange-stronger);
    --bs-btn-focus-shadow-rgb: 184, 80, 26;
}

.btn-on-dark {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255, 255, 255, .6);
    --bs-btn-hover-color: var(--rs-navy);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #fff;
    --bs-btn-active-color: var(--rs-navy);
    --bs-btn-active-bg: #fff;
    --bs-btn-active-border-color: #fff;
}

.link-arrow {
    font-weight: 500;
    text-decoration: none;
}

.link-arrow::after {
    content: "\F138"; /* bi-arrow-right */
    font-family: "bootstrap-icons";
    display: inline-block;
    margin-left: .375em;
    font-size: .9em;
    vertical-align: -.1em;
    transition: transform .15s ease;
}

.link-arrow:hover::after {
    transform: translateX(3px);
}

/* ---------- Utility bar ---------- */

.utility-bar {
    background: var(--rs-navy);
    color: rgba(255, 255, 255, .85);
    font-size: .875rem;
}

.utility-bar a {
    color: inherit;
    text-decoration: none;
}

.utility-bar a:hover,
.utility-bar a:focus-visible {
    color: #fff;
}

.utility-bar .social-link {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
}

/* ---------- Header ---------- */

.site-header {
    background: #fff;
    border-bottom: 1px solid rgba(var(--rs-navy-rgb), .08);
    transition: box-shadow .2s ease;
}

.site-header.is-scrolled {
    box-shadow: var(--rs-shadow-sm);
}

.site-header .navbar {
    --bs-navbar-padding-y: 0;
    min-height: var(--rs-header-height);
}

.site-logo img {
    display: block;
    height: calc(var(--rs-header-height) - 24px);
    width: auto;
}

.site-header .nav-link {
    --bs-nav-link-color: var(--rs-navy);
    --bs-nav-link-hover-color: var(--rs-blue);
    font-weight: 500;
    font-size: .9375rem;
    white-space: nowrap;
}

.site-header .dropdown-toggle::after {
    content: "\F282"; /* bi-chevron-down */
    font-family: "bootstrap-icons";
    border: 0;
    vertical-align: -.125em;
    font-size: .75em;
    margin-left: .35em;
    transition: transform .15s ease;
}

.site-header .dropdown-toggle.show::after {
    transform: rotate(180deg);
}

.nav-badge {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: .15em;
    background: var(--rs-orange-strong);
}

.btn-icon {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 50%;
    color: var(--rs-navy);
    font-size: 1.125rem;
}

.btn-icon:hover {
    background: var(--rs-surface);
}

@media (min-width: 1200px) {
    .site-header .navbar-nav {
        gap: .25rem;
    }

    .site-header .nav-link {
        position: relative;
        padding: calc((var(--rs-header-height) - 1.5rem) / 2) .625rem;
    }

    /* Underline the open or current item */
    .site-header .nav-link::before {
        content: "";
        position: absolute;
        left: .625rem;
        right: .625rem;
        bottom: 0;
        height: 3px;
        border-radius: 3px 3px 0 0;
        background: var(--rs-blue);
        transform: scaleX(0);
        transition: transform .15s ease;
    }

    .site-header .nav-link.show::before,
    .site-header .nav-link:hover::before,
    .site-header .nav-link[aria-current]::before {
        transform: scaleX(1);
    }

    /* Mega menu spans the header and sits flush under it */
    .site-header .mega {
        position: static;
    }

    .mega-menu {
        --bs-dropdown-border-width: 0;
        --bs-dropdown-border-radius: 0;
        --bs-dropdown-padding-y: 0;
        left: 0;
        right: 0;
        margin-top: 0 !important;
        box-shadow: var(--rs-shadow);
        max-height: calc(100vh - var(--rs-header-height) - 2rem);
        overflow-y: auto;
    }
}

.mega-menu {
    background: var(--rs-blue);
    color: #fff;
}

.mega-menu__inner {
    columns: 4 14rem;
    column-gap: 2.5rem;
    padding-block: 2rem 2.25rem;
}

.mega-menu__group {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

/* A long list spans the whole panel and flows into its own columns */
.mega-menu__group--long {
    column-span: all;
}

.mega-menu__group--long ul {
    columns: 4 14rem;
    column-gap: 2.5rem;
}

.mega-menu__heading {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
    margin-bottom: .625rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.mega-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu li {
    break-inside: avoid;
}

.mega-menu a {
    display: block;
    padding: .3rem 0;
    color: #fff;
    text-decoration: none;
    font-size: .9375rem;
    line-height: 1.35;
}

.mega-menu a:hover,
.mega-menu a:focus-visible {
    text-decoration: underline;
}

.mega-menu .bi-box-arrow-up-right {
    font-size: .7em;
    margin-left: .3em;
    opacity: .7;
}

/* Mobile: the nav lives in an offcanvas panel */
@media (max-width: 1199.98px) {
    .site-header .offcanvas {
        --bs-offcanvas-width: min(26rem, 100vw);
    }

    .site-header .nav-link {
        width: 100%;
        font-size: 1.0625rem;
        padding: .875rem 0;
        border-bottom: 1px solid rgba(var(--rs-navy-rgb), .08);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mega-menu {
        border: 0;
        border-radius: var(--bs-border-radius);
        margin: .5rem 0 1rem;
    }

    .mega-menu__inner {
        columns: 1;
        padding: 1.25rem;
    }

    .mega-menu__group--long {
        column-span: none;
    }

    .mega-menu__group--long ul {
        columns: 1;
    }
}

/* ---------- Sections ---------- */

.section {
    padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.section--tight {
    padding-block: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.section--muted {
    background: var(--rs-surface);
}

.section--primary {
    background: var(--rs-blue);
    color: #fff;
    --bs-heading-color: #fff;
    --bs-link-color-rgb: 255, 255, 255;
    --bs-link-hover-color-rgb: 255, 255, 255;
}

.section--navy {
    background: var(--rs-navy);
    color: rgba(255, 255, 255, .85);
    --bs-heading-color: #fff;
    --bs-link-color-rgb: 255, 255, 255;
    --bs-link-hover-color-rgb: 255, 255, 255;
}

/* Text-led blocks read best at about 75 characters a line */
.container--readable {
    max-width: 52rem;
}

.layout-item + .layout-item {
    margin-top: 2rem;
}

/* Consecutive content blocks in one section */
.block-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Page header breadcrumbs */
.page-header .breadcrumb {
    --bs-breadcrumb-divider-color: var(--rs-muted);
    --bs-breadcrumb-item-active-color: var(--rs-muted);
}

.page-header .breadcrumb a {
    text-decoration: none;
}

.page-header__intro > :last-child {
    margin-bottom: 0;
}

/* Video cards: a 16:9 thumbnail with a play badge, or the badge alone on navy */
.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--rs-navy);
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: auto;
}

.video-thumb__play {
    position: absolute;
    inset: 0;
    margin: auto;
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(var(--rs-navy-rgb), .75);
    color: #fff;
    font-size: 1.75rem;
}

.chip-list--outline .chip {
    border: 1px solid rgba(var(--rs-blue-rgb), .35);
}

.download-list__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .5rem;
    background: rgba(var(--rs-blue-rgb), .08);
    color: var(--rs-blue);
    font-size: 1.35rem;
}

.rich-text > :last-child {
    margin-bottom: 0;
}

.rich-text img {
    border-radius: .5rem;
}

.section__header {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: .5rem 2rem;
    margin-bottom: 2rem;
}

.section__header > :last-child {
    margin-bottom: 0;
}

.eyebrow {
    display: block;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--rs-orange-strong);
    margin-bottom: .5rem;
}

.section--primary .eyebrow,
.cta-band .eyebrow,
.hero .eyebrow {
    color: #ffb48a;
}

/* ---------- Hero carousel ---------- */

.hero {
    position: relative;
    background: var(--rs-navy);
    color: #fff;
}

.hero .carousel-item {
    min-height: clamp(22rem, 15rem + 18vw, 32rem);
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(var(--rs-navy-rgb), .92) 0%, rgba(var(--rs-navy-rgb), .72) 45%, rgba(var(--rs-navy-rgb), .15) 100%);
}

.hero__content {
    position: relative;
    display: flex;
    align-items: center;
    min-height: inherit;
    padding-block: 3rem 4.5rem;
}

.hero__content > div {
    max-width: 38rem;
}

.hero h2 {
    color: #fff;
    font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
    margin-bottom: .75rem;
}

.hero p {
    font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
    color: rgba(255, 255, 255, .88);
    margin-bottom: 1.75rem;
}

.hero .carousel-indicators {
    justify-content: flex-start;
    margin: 0;
    left: 0;
    right: auto;
    bottom: 1.5rem;
    padding-left: max(calc((100vw - 1320px) / 2 + .75rem), .75rem);
    gap: .375rem;
}

.hero .carousel-indicators [data-bs-target] {
    width: 2rem;
    height: 4px;
    margin: 0;
    border: 0;
    border-radius: 2px;
    opacity: .45;
}

.hero .carousel-indicators .active {
    opacity: 1;
    background: var(--rs-orange);
}

@media (max-width: 767.98px) {
    .hero .carousel-indicators {
        display: none;
    }
}

.hero__controls {
    position: absolute;
    right: max(calc((100vw - 1320px) / 2 + .75rem), .75rem);
    bottom: 1rem;
    z-index: 2;
    display: flex;
    gap: .375rem;
}

.hero__controls button {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    background: rgba(var(--rs-navy-rgb), .4);
    color: #fff;
}

.hero__controls button:hover {
    background: rgba(var(--rs-navy-rgb), .8);
}

/* ---------- Pillars ---------- */

.pillar {
    height: 100%;
    padding: 2rem;
    border-radius: var(--rs-radius);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
}

.pillar__icon {
    display: inline-grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: .75rem;
    background: #fff;
    color: var(--rs-blue);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.pillar h3 {
    font-size: 1.375rem;
}

.pillar p {
    color: rgba(255, 255, 255, .85);
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.chip {
    display: inline-block;
    padding: .3rem .8rem;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    background: #fff;
    color: var(--rs-blue);
}

.chip:hover {
    background: var(--rs-navy);
    color: #fff;
}

/* ---------- Feed cards ---------- */

.feed-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: #fff;
    border-radius: var(--rs-radius);
    box-shadow: var(--rs-shadow-sm);
    border-top: 4px solid var(--rs-blue);
}

.feed-card--alert {
    border-top-color: var(--rs-orange);
}

.feed-card h3 {
    font-size: 1.25rem;
    margin-bottom: .375rem;
}

.feed-card > p {
    font-size: .9375rem;
    color: var(--rs-muted);
}

.feed-card ul {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    flex-grow: 1;
}

.feed-card li + li {
    border-top: 1px solid rgba(var(--rs-navy-rgb), .08);
}

.feed-card li a {
    display: block;
    padding: .75rem 0;
    color: var(--rs-ink);
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

.feed-card li a:hover {
    color: var(--rs-blue);
    text-decoration: underline;
}

.feed-card time {
    display: block;
    font-size: .8125rem;
    font-weight: 400;
    color: var(--rs-muted);
    margin-top: .125rem;
}

/* ---------- Media list (resources / training) ---------- */

.media-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .75rem;
}

.media-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .625rem;
    border-radius: var(--rs-radius);
    background: #fff;
    box-shadow: var(--rs-shadow-sm);
    transition: box-shadow .15s ease, transform .15s ease;
}

.media-item:hover {
    box-shadow: var(--rs-shadow);
    transform: translateY(-1px);
}

.media-item img {
    flex: 0 0 auto;
    width: 6.5rem;
    aspect-ratio: 8 / 5;
    object-fit: cover;
    border-radius: .5rem;
}

.media-item a {
    color: var(--rs-navy);
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
}

.media-item a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.media-item a:focus-visible {
    outline: none;
}

.media-item:has(a:focus-visible) {
    outline: 3px solid var(--bs-focus-ring-color);
}

.media-item .meta {
    display: block;
    font-size: .8125rem;
    color: var(--rs-muted);
}

.meta__tag {
    white-space: nowrap;
    margin-left: .5rem;
}

.meta__tag .bi {
    color: var(--rs-blue);
}

/* ---------- Listing filters ---------- */

.listing-filter {
    display: grid;
    gap: 1.75rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--rs-radius);
    box-shadow: var(--rs-shadow-sm);
}

.listing-filter__group {
    min-width: 0;
}

.listing-filter__label {
    float: none;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .25rem 1rem;
    width: 100%;
    margin-bottom: .75rem;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--rs-navy);
}

.listing-filter__label output,
.listing-filter__hint {
    font-size: .9375rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.listing-filter__label output {
    color: var(--rs-blue);
    font-variant-numeric: tabular-nums;
}

.listing-filter__hint {
    color: var(--rs-muted);
    font-size: .8125rem;
}

.listing-filter__state {
    max-width: 22rem;
}

.chip.is-active {
    background: var(--rs-blue);
    border-color: var(--rs-blue);
    color: #fff;
}

/* Dual-thumb month slider over a histogram of articles per month */

.range-picker {
    --thumb: 1.25rem;
    --from: 0%;
    --to: 100%;
}

.range-picker__histogram,
.range-picker__rail,
.range-picker__axis {
    margin-inline: calc(var(--thumb) / 2);
}

.range-picker__histogram {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    height: 4rem;
    border-bottom: 1px solid rgba(var(--rs-navy-rgb), .15);
}

.range-picker__histogram span {
    flex: 1 1 0;
    min-width: 0;
    height: var(--h);
    border-radius: 1px 1px 0 0;
    background: var(--rs-blue);
    transition: background-color .15s ease;
}

.range-picker__histogram span.is-out {
    background: rgba(var(--rs-navy-rgb), .14);
}

.range-picker__slider {
    position: relative;
    height: 1.75rem;
}

.range-picker__rail {
    position: absolute;
    inset: 50% 0 auto;
    height: 4px;
    translate: 0 -50%;
    border-radius: 2px;
    background: rgba(var(--rs-navy-rgb), .12);
}

.range-picker__fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--from);
    right: calc(100% - var(--to));
    border-radius: 2px;
    background: var(--rs-blue);
}

.range-picker input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

.range-picker input[type="range"]::-webkit-slider-runnable-track {
    background: none;
}

.range-picker input[type="range"]::-moz-range-track {
    background: none;
}

.range-picker input[type="range"]::-webkit-slider-thumb {
    width: var(--thumb);
    height: var(--thumb);
    border: 3px solid var(--rs-blue);
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--rs-shadow-sm);
    cursor: grab;
    pointer-events: auto;
    -webkit-appearance: none;
}

.range-picker input[type="range"]::-moz-range-thumb {
    box-sizing: border-box;
    width: var(--thumb);
    height: var(--thumb);
    border: 3px solid var(--rs-blue);
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--rs-shadow-sm);
    cursor: grab;
    pointer-events: auto;
}

.range-picker input[type="range"]:focus-visible {
    outline: none;
}

.range-picker input[type="range"]:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px var(--bs-focus-ring-color);
}

.range-picker input[type="range"]:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 4px var(--bs-focus-ring-color);
}

.range-picker__axis {
    position: relative;
    height: 1.25rem;
    font-size: .75rem;
    color: var(--rs-muted);
    font-variant-numeric: tabular-nums;
}

.range-picker__axis span {
    position: absolute;
    left: var(--x);
    translate: -50% 0;
}

/* Organization types: checkboxes drawn as toggle chips */

.toggle-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.toggle-chip {
    position: relative;
}

.toggle-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-chip label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .3125rem .875rem .3125rem .3125rem;
    border: 1px solid rgba(var(--rs-blue-rgb), .25);
    border-radius: 999px;
    background: #fff;
    color: var(--rs-navy);
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.toggle-chip label .bi {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(var(--rs-blue-rgb), .08);
    color: var(--rs-blue);
    font-size: 1rem;
    transition: inherit;
}

.toggle-chip__count {
    color: var(--rs-muted);
    font-size: .8125rem;
    font-variant-numeric: tabular-nums;
}

.toggle-chip label:hover {
    border-color: var(--rs-blue);
}

.toggle-chip input:checked + label {
    border-color: var(--rs-blue);
    background: var(--rs-blue);
    color: #fff;
}

.toggle-chip input:checked + label .bi {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.toggle-chip input:checked + label .toggle-chip__count {
    color: rgba(255, 255, 255, .85);
}

.toggle-chip input:focus-visible + label {
    outline: 3px solid var(--bs-focus-ring-color);
    outline-offset: 2px;
}

.toggle-chip input:disabled + label {
    opacity: .5;
    cursor: not-allowed;
}

/* ---------- CTA band ---------- */

.cta-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: var(--rs-navy);
    --bs-heading-color: #fff;
}

.cta-band__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .3;
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, var(--rs-navy) 0%, rgba(var(--rs-navy-rgb), .85) 50%, rgba(var(--rs-navy-rgb), .2) 100%);
}

.cta-band p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, .88);
}

/* ---------- Promo cards ---------- */

.promo-card {
    position: relative;
    height: 100%;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    border-radius: var(--rs-radius);
    background: #fff;
    box-shadow: var(--rs-shadow-sm);
}

.promo-card__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(var(--rs-blue-rgb), .1);
    color: var(--rs-blue);
    font-size: 1.5rem;
}

.promo-card h3 {
    font-size: 1.375rem;
}

/* ---------- Content cards ---------- */

.content-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--rs-radius);
    background: #fff;
    box-shadow: var(--rs-shadow-sm);
    transition: box-shadow .15s ease, transform .15s ease;
}

.content-card:hover {
    box-shadow: var(--rs-shadow);
    transform: translateY(-2px);
}

.content-card img {
    width: 100%;
    aspect-ratio: 8 / 5;
    object-fit: cover;
}

.content-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: .75rem;
    padding: 1.25rem;
}

.content-card h3 {
    font-size: 1.0625rem;
    margin: 0;
    flex-grow: 1;
}

.content-card h3 a {
    color: var(--rs-navy);
    text-decoration: none;
}

.content-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.content-card:has(a:focus-visible) {
    outline: 3px solid var(--bs-focus-ring-color);
}

.content-card h3 a:focus-visible {
    outline: none;
}

.content-card__action {
    font-size: .875rem;
    font-weight: 700;
    color: var(--rs-orange-strong);
}

.content-card__action .bi {
    margin-right: .25rem;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--rs-navy);
    color: rgba(255, 255, 255, .78);
    font-size: .9375rem;
    --bs-heading-color: #fff;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    text-decoration: underline;
}

.site-footer h2 {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 1rem;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li + li {
    margin-top: .5rem;
}

.footer-logo {
    height: 3.5rem;
    width: auto;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.partner-logos a {
    display: grid;
    place-items: center;
    height: 4.5rem;
    padding: .5rem .75rem;
    border-radius: .5rem;
    background: rgba(255, 255, 255, .06);
}

.partner-logos img {
    max-height: 3.5rem;
    width: auto;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .8125rem;
    color: rgba(255, 255, 255, .6);
}

.site-footer__bottom a {
    color: rgba(255, 255, 255, .8);
}

/* ---------- Back to top ---------- */

.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1020;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--rs-blue);
    color: #fff;
    box-shadow: var(--rs-shadow);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(.5rem);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top:hover {
    background: var(--rs-blue-dark);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
