:root {
    color-scheme: light;
    --color-primary: #0b1f33;
    --color-primary-strong: #081827;
    --color-deep-blue: #123b5d;
    --color-water: #1687c9;
    --color-water-text: #126fa6;
    --color-water-action: #126fa6;
    --color-water-bright: #1fa4e8;
    --color-water-light: #eaf6fc;
    --color-water-pale: #f3f9fc;
    --color-background: #f7fafc;
    --color-surface: #ffffff;
    --color-text: #17212b;
    --color-muted: #667085;
    --color-subtle: #8994a2;
    --color-border: #d9e2ea;
    --color-border-strong: #c3d0dc;
    --color-success: #16a34a;
    --color-success-strong: #137a34;
    --color-success-bg: #eaf7ef;
    --color-warning: #f59e0b;
    --color-warning-strong: #8d4f04;
    --color-warning-bg: #fff5e6;
    --color-danger: #dc2626;
    --color-danger-strong: #b91c1c;
    --color-danger-bg: #fff0f0;
    --color-info: #126fa6;
    --color-info-bg: #eaf6fc;

    --font-sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-display: var(--font-sans);
    --text-display: clamp(2.75rem, 5.2vw, 4.65rem);
    --text-h1: clamp(2.35rem, 4vw, 3.75rem);
    --text-h2: clamp(1.9rem, 3vw, 2.75rem);
    --text-h3: clamp(1.3rem, 2vw, 1.65rem);
    --text-h4: 1.125rem;
    --text-body-lg: 1.125rem;
    --text-body: 1rem;
    --text-small: 0.875rem;
    --text-caption: 0.75rem;
    --text-nav: 0.9rem;
    --text-button: 0.9rem;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;
    --leading-tight: 1.12;
    --leading-heading: 1.2;
    --leading-body: 1.65;
    --tracking-tight: -0.035em;
    --tracking-wide: 0.08em;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-30: 7.5rem;
    --container-width: 80rem;
    --container-gutter: clamp(1.125rem, 4.2vw, 3rem);
    --section-space: clamp(2.75rem, 5vw, 4rem);
    --section-space-compact: clamp(2rem, 3.5vw, 3rem);

    --radius-xs: 0.25rem;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgb(11 31 51 / 5%);
    --shadow-sm: 0 5px 18px rgb(11 31 51 / 6%);
    --shadow-md: 0 14px 34px rgb(11 31 51 / 9%);
    --shadow-focus: 0 0 0 3px rgb(18 111 166 / 28%);
    --border-default: 1px solid var(--color-border);
    --transition-fast: 160ms ease;
    --transition-base: 220ms ease;

    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: var(--weight-regular);
    line-height: var(--leading-body);
    color: var(--color-text);
    background: var(--color-background);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--color-surface);
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

.responsive-image {
    display: block;
    width: 100%;
    height: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--color-water-text);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--color-deep-blue);
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--color-primary);
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    line-height: var(--leading-heading);
    letter-spacing: var(--tracking-tight);
}

h1 {
    margin-bottom: var(--space-6);
    font-size: var(--text-h1);
}

h2 {
    margin-bottom: var(--space-4);
    font-size: var(--text-h2);
}

h3 {
    margin-bottom: var(--space-3);
    font-size: var(--text-h3);
}

h4 {
    margin-bottom: var(--space-3);
    font-size: var(--text-h4);
}

p {
    margin-bottom: var(--space-4);
}

::selection {
    color: var(--color-surface);
    background: var(--color-deep-blue);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --color-primary: #e7f0f7;
    --color-primary-strong: #f4f8fb;
    --color-deep-blue: #8dcff2;
    --color-water: #63bce9;
    --color-water-text: #79c8f0;
    --color-water-action: #1679ae;
    --color-water-bright: #70c7f4;
    --color-water-light: #18374a;
    --color-water-pale: #132733;
    --color-background: #0d1720;
    --color-surface: #14232e;
    --color-text: #e4edf3;
    --color-muted: #b1c0cb;
    --color-subtle: #91a3b0;
    --color-border: #314552;
    --color-border-strong: #486171;
    --color-success: #4ade80;
    --color-success-strong: #86efac;
    --color-success-bg: #143526;
    --color-warning: #fbbf24;
    --color-warning-strong: #fcd34d;
    --color-warning-bg: #3a2b12;
    --color-danger: #f87171;
    --color-danger-strong: #fca5a5;
    --color-danger-bg: #3d2024;
    --color-info: #7dd3fc;
    --color-info-bg: #163044;
    --shadow-xs: 0 1px 2px rgb(0 0 0 / 22%);
    --shadow-sm: 0 5px 18px rgb(0 0 0 / 24%);
    --shadow-md: 0 14px 34px rgb(0 0 0 / 32%);
    --shadow-focus: 0 0 0 3px rgb(112 199 244 / 38%);
}

:root[data-theme="dark"] body {
    background: var(--color-background);
}

:root[data-theme="dark"] main {
    color: var(--color-text);
    background-color: var(--color-background);
}

:root[data-theme="dark"] main [class*="card"],
:root[data-theme="dark"] main [class*="panel"],
:root[data-theme="dark"] main [class*="summary"],
:root[data-theme="dark"] main [class*="sidebar"],
:root[data-theme="dark"] main [class*="filter"],
:root[data-theme="dark"] main [class*="form"],
:root[data-theme="dark"] main [class*="field"],
:root[data-theme="dark"] main [class*="empty"],
:root[data-theme="dark"] main [class*="pagination"],
:root[data-theme="dark"] main [class*="category-pill"],
:root[data-theme="dark"] main [class*="trust"],
:root[data-theme="dark"] main [class*="approach"],
:root[data-theme="dark"] main [class*="stat"] {
    color: var(--color-text);
    border-color: var(--color-border);
    background-color: var(--color-surface);
}

:root[data-theme="dark"] main input:not([type="checkbox"]):not([type="radio"]),
:root[data-theme="dark"] main select,
:root[data-theme="dark"] main textarea {
    border-color: var(--color-border-strong);
    color: var(--color-text);
    background-color: var(--color-surface);
}

:root[data-theme="dark"] main input::placeholder,
:root[data-theme="dark"] main textarea::placeholder {
    color: var(--color-subtle);
}

:root[data-theme="dark"] .theme-toggle {
    color: var(--color-primary);
    border-color: var(--color-border);
}

:root[data-theme="dark"] .theme-toggle:hover {
    background: var(--color-water-light);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

:focus-visible {
    outline: 3px solid var(--color-water-text);
    outline-offset: 3px;
}

.container {
    width: min(100% - (var(--container-gutter) * 2), var(--container-width));
    margin-inline: auto;
}

.section {
    padding-block: var(--section-space);
}

.section--compact {
    padding-block: var(--section-space-compact);
}

.section--tint {
    background: var(--color-water-pale);
}

.section--navy {
    color: rgb(255 255 255 / 78%);
    background: var(--color-primary);
}

.section--navy h2,
.section--navy h3 {
    color: var(--color-surface);
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.section-header__copy {
    max-width: 43rem;
}

.section-header__copy > :last-child {
    margin-bottom: 0;
}

.section-header__description {
    max-width: 39rem;
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: var(--text-body-lg);
}

.home-section-editorial {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.25rem;
}

.home-section-editorial__image {
    display: block;
    width: min(100%, 11rem);
    max-height: 8rem;
    flex: 0 0 auto;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.home-section-editorial__description {
    max-width: 42rem;
    margin: 0;
    color: var(--color-muted);
}

.trust-indicators__header {
    display: flex;
    flex: 0 0 100%;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    margin-bottom: .35rem;
}

.trust-indicators__header h2,
.trust-indicators__header p {
    margin: 0;
}

.trust-indicators__header h2 {
    color: var(--color-deep-blue);
    font-size: var(--text-h4);
}

.trust-indicators__header > .home-section-editorial {
    flex-basis: 100%;
    margin-bottom: 0;
}

.section--navy .section-header__description {
    color: rgb(255 255 255 / 72%);
}

.section-eyebrow,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    color: var(--color-water);
    font-size: var(--text-small);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wide);
    line-height: 1.35;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: var(--space-4);
}

.grid {
    display: grid;
    gap: var(--space-6);
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flex {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.text-muted {
    color: var(--color-muted);
}

.text-small {
    font-size: var(--text-small);
}

.text-center {
    text-align: center;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    fill: none;
}

.icon--sm {
    width: 1rem;
    height: 1rem;
}

.icon--lg {
    width: 1.5rem;
    height: 1.5rem;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: var(--space-3);
    left: var(--space-3);
    padding: var(--space-3) var(--space-4);
    transform: translateY(-160%);
    border-radius: var(--radius-sm);
    color: var(--color-surface);
    background: var(--color-primary);
}

.skip-link:focus {
    transform: translateY(0);
    color: var(--color-surface);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

@media (max-width: 48rem) {
    .section-header {
        align-items: start;
        flex-direction: column;
        gap: var(--space-5);
        margin-bottom: var(--space-6);
    }
}
