/*
 * JEWZZ REVIEW - SHARED DESIGN FOUNDATION
 * Mobile-first, fixed light theme with navy, cream, coral, gold and woven rainbow accents.
 */

:root {
    color-scheme: light;

    --navy-950: #07182b;
    --navy-900: #0b2038;
    --navy-800: #102a46;
    --navy-700: #173b60;
    --navy-600: #28547d;

    --cream-50: #fffaf2;
    --cream-100: #fff4e5;
    --cream-200: #f7e8d5;
    --cream-300: #ead5bd;

    --coral-700: #a94331;
    --coral-600: #bd523d;
    --coral-500: #d46d54;
    --coral-400: #e58b70;

    --gold-700: #925522;
    --gold-600: #b66f2f;
    --gold-500: #df9c4b;
    --gold-400: #efb868;
    --gold-300: #f7d495;

    --rainbow-red: #d95761;
    --rainbow-orange: #ec974b;
    --rainbow-yellow: #edc763;
    --rainbow-green: #59a978;
    --rainbow-blue: #4f83c2;
    --rainbow-violet: #8b61a8;

    --ink: var(--navy-900);
    --ink-soft: #354c62;
    --paper: var(--cream-50);
    --surface: #ffffff;
    --border: #d7c4ad;

    --font-display: "DM Sans", "Avenir Next", Avenir, system-ui, sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

    --text-xs: 0.875rem;
    --text-sm: 0.9375rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: clamp(1.2rem, 1.1rem + 0.45vw, 1.5rem);
    --text-2xl: clamp(1.55rem, 1.3rem + 1.2vw, 2.25rem);
    --text-3xl: clamp(2rem, 1.55rem + 2.25vw, 3.5rem);
    --text-hero: clamp(2.35rem, 1.8rem + 3vw, 4.75rem);

    --space-1: 0.375rem;
    --space-2: 0.625rem;
    --space-3: 0.875rem;
    --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;

    --radius-sm: 0.5rem;
    --radius-md: 0.875rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --radius-pill: 999px;

    --shadow-sm: 0 5px 18px rgba(7, 24, 43, 0.08);
    --shadow-md: 0 16px 40px rgba(7, 24, 43, 0.13);
    --shadow-lg: 0 28px 70px rgba(7, 24, 43, 0.2);
    --focus-ring: 0 0 0 4px rgba(239, 184, 104, 0.46);

    --container: 76rem;
    --reading-width: 48rem;
    --header-bottom: 0px;
    --mobile-action-height: 5.5rem;
}

/* ============================================
   RESET AND OVERFLOW PREVENTION
   ============================================ */

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

html {
    min-width: 20rem;
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
    background: var(--paper);
}

body {
    min-width: 20rem;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(239, 184, 104, 0.09), transparent 25rem),
        var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

body.has-mobile-action {
    padding-bottom: calc(var(--mobile-action-height) + env(safe-area-inset-bottom));
}

img,
video,
iframe,
embed,
object,
svg {
    max-width: 100%;
    height: auto;
}

img {
    display: block;
}

svg {
    display: block;
}

[class*="grid"] > *,
[class*="flex"] > * {
    min-width: 0;
}

pre,
code,
.code-block,
[class*="code"] {
    max-width: 100%;
    overflow-x: auto;
}

pre code,
.code-block code {
    display: block;
    min-width: 0;
}

.table-wrapper,
.table-scroll,
[class*="table-"] {
    max-width: 100%;
    overflow-x: auto;
}

p,
li,
td,
th,
dd {
    overflow-wrap: break-word;
}

details {
    height: fit-content;
}

input,
textarea,
select {
    max-width: 100%;
    font: inherit;
}

section {
    position: relative;
    overflow: clip;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

a {
    color: inherit;
}

:where(p, li, blockquote, figcaption, dd, .prose, .seo-text, article)
a:not([class]) {
    color: var(--navy-700);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--coral-500);
    text-decoration-thickness: 0.11em;
    text-underline-offset: 0.18em;
}

:where(p, li, blockquote, figcaption, dd, .prose, .seo-text, article)
a:not([class]):hover {
    color: var(--coral-700);
}

::selection {
    background: var(--gold-300);
    color: var(--navy-950);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
p,
ul,
ol,
blockquote,
figure {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--navy-900);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    text-wrap: balance;
}

h1 {
    margin-bottom: var(--space-6);
    font-size: var(--text-hero);
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: var(--space-5);
    font-size: var(--text-3xl);
    letter-spacing: -0.035em;
}

h3 {
    margin-bottom: var(--space-3);
    font-size: var(--text-xl);
    letter-spacing: -0.02em;
}

p {
    margin-bottom: var(--space-5);
}

ul,
ol {
    padding-left: 1.35rem;
}

li + li {
    margin-top: var(--space-2);
}

strong {
    font-weight: 700;
}

.lede {
    color: var(--ink-soft);
    font-size: var(--text-lg);
    line-height: 1.68;
}

.eyebrow {
    margin-bottom: var(--space-3);
    color: var(--coral-700);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.11em;
    line-height: 1.2;
    text-transform: uppercase;
}

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

/* ============================================
   SHARED LAYOUT
   ============================================ */

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.reading-width {
    width: min(100%, var(--reading-width));
    margin-inline: auto;
}

.section {
    padding-block: var(--space-16);
}

.section--compact {
    padding-block: var(--space-12);
}

.section--roomy {
    padding-block: var(--space-20);
}

.surface-cream {
    background: var(--cream-50);
    color: var(--ink);
}

.surface-paper {
    background: var(--cream-100);
    color: var(--ink);
}

.surface-navy {
    background:
        radial-gradient(circle at 15% 20%, rgba(239, 184, 104, 0.12), transparent 24rem),
        linear-gradient(135deg, var(--navy-900), var(--navy-800));
    color: var(--cream-50);
}

.no-account-panel a {
    color: var(--gold-300);
}

.surface-coral {
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 244, 229, 0.14), transparent 26rem),
        linear-gradient(135deg, var(--coral-600), var(--coral-500));
    color: var(--cream-50);
}

.surface-navy h1,
.surface-navy h2,
.surface-navy h3,
.surface-coral h1,
.surface-coral h2,
.surface-coral h3 {
    color: var(--cream-50);
}

.two-column,
.three-column,
.four-column,
.card-grid {
    display: grid;
    gap: var(--space-6);
    align-items: start;
}

.card {
    padding: var(--space-6);
    border: 1px solid rgba(146, 85, 34, 0.2);
    border-radius: var(--radius-lg);
    background: var(--cream-50);
    box-shadow: var(--shadow-sm);
}

.section-heading {
    width: min(100%, 48rem);
    margin-bottom: var(--space-10);
}

.section-heading--center {
    margin-inline: auto;
    text-align: center;
}

.section-heading--left {
    margin-right: auto;
    text-align: left;
}

.section-heading__intro {
    margin: 0;
    color: var(--ink-soft);
    font-size: var(--text-lg);
}

.surface-navy .section-heading__intro,
.surface-coral .section-heading__intro {
    color: var(--cream-200);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.skip-link {
    position: fixed;
    z-index: 2000;
    top: var(--space-3);
    left: var(--space-3);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--cream-50);
    color: var(--navy-950);
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--gold-400);
    outline-offset: 3px;
}

.btn:focus-visible,
.menu-toggle:focus-visible,
.nav-link:focus-visible,
.faq-item summary:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* ============================================
   HEADER AND NAVIGATION
   ============================================ */

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    width: 100%;
    isolation: isolate;
    color: var(--cream-50);
}

.site-header::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-bottom: 1px solid rgba(247, 212, 149, 0.16);
    background:
        radial-gradient(circle at 14% 50%, rgba(239, 184, 104, 0.16), transparent 15rem),
        linear-gradient(90deg, var(--navy-900), var(--navy-950));
    box-shadow: 0 7px 24px rgba(7, 24, 43, 0.18);
    content: "";
}

.site-header__inner {
    display: flex;
    width: min(100% - 1.25rem, var(--container));
    min-height: 4.25rem;
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.site-brand {
    display: inline-flex;
    min-width: 0;
    align-items: baseline;
    gap: var(--space-2);
    color: var(--gold-400);
    text-decoration: none;
}

.site-brand__text {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
}

.site-brand__descriptor {
    display: none;
    color: var(--cream-200);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.menu-toggle {
    display: inline-grid;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.65rem;
    border: 1px solid rgba(247, 212, 149, 0.34);
    border-radius: 50%;
    background: var(--navy-800);
    color: var(--cream-50);
    cursor: pointer;
    place-content: center;
    gap: 0.25rem;
}

.menu-toggle__line {
    display: block;
    width: 1.25rem;
    height: 2px;
    border-radius: var(--radius-pill);
    background: currentColor;
    transform-origin: center;
    transition: transform 180ms ease, visibility 180ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
    visibility: hidden;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.primary-nav {
    position: fixed;
    z-index: 950;
    top: var(--header-bottom);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    height: auto;
    padding: var(--space-6) max(1rem, calc((100vw - var(--container)) / 2));
    overflow-y: auto;
    align-items: stretch;
    flex-direction: column;
    gap: var(--space-5);
    background: var(--navy-950);
    visibility: hidden;
    pointer-events: none;
}

.primary-nav.is-open {
    visibility: visible;
    pointer-events: auto;
}

.primary-nav__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.nav-link {
    position: relative;
    display: flex;
    min-height: 3rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    align-items: center;
    color: var(--cream-100);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
}

.nav-link:hover {
    background: var(--navy-800);
    color: var(--gold-300);
}

.nav-link.is-active {
    color: var(--gold-300);
}

.nav-link.is-active::after {
    position: absolute;
    right: 0.85rem;
    bottom: 0.25rem;
    left: 0.85rem;
    height: 3px;
    border-radius: var(--radius-pill);
    background: repeating-linear-gradient(
        135deg,
        var(--gold-400) 0 6px,
        var(--gold-700) 6px 9px,
        var(--gold-300) 9px 14px
    );
    content: "";
}

.header-cta {
    width: 100%;
    margin-top: auto;
}

.header-profile-mark {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    color: var(--cream-200);
}

.header-profile-mark circle:first-child {
    fill: var(--cream-200);
    stroke: var(--gold-500);
    stroke-width: 1.5;
}

.header-profile-mark circle:nth-child(2),
.header-profile-mark path {
    fill: var(--coral-700);
    stroke: none;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    position: relative;
    display: inline-flex;
    min-height: 3rem;
    padding: 0.75rem 1.2rem;
    border: 2px solid var(--gold-400);
    border-radius: var(--radius-pill);
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.btn::before {
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(255, 244, 229, 0.45);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--coral-500), var(--coral-700));
    color: #ffffff;
    box-shadow:
        0 8px 24px rgba(169, 67, 49, 0.3),
        0 0 0 3px rgba(182, 111, 47, 0.25);
}

.btn--primary:hover {
    border-color: var(--gold-300);
    background: linear-gradient(135deg, var(--coral-400), var(--coral-600));
    box-shadow:
        0 12px 30px rgba(169, 67, 49, 0.36),
        0 0 0 4px rgba(239, 184, 104, 0.24);
    transform: translateY(-2px);
}

.btn--secondary {
    border-color: var(--navy-700);
    background: var(--cream-50);
    color: var(--navy-900);
}

.btn--secondary:hover {
    background: var(--cream-200);
    transform: translateY(-2px);
}

.btn--compact {
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    font-size: var(--text-sm);
}

.btn__arrow {
    width: 1.1rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

/* ============================================
   BRAIDED DESIGN PRIMITIVES
   ============================================ */

.braided-divider {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 1.875rem;
    color: var(--gold-500);
}

.braided-divider svg {
    width: 100%;
    height: 100%;
}

.braided-divider__shadow,
.braided-divider__base,
.braided-divider__strand,
.braided-divider__highlight {
    fill: none;
    stroke-linecap: round;
}

.braided-divider__shadow {
    stroke: rgba(7, 24, 43, 0.34);
    stroke-width: 28;
}

.braided-divider__base {
    stroke: var(--gold-700);
    stroke-width: 24;
}

.braided-divider__strand {
    stroke: var(--gold-400);
    stroke-width: 10;
    stroke-dasharray: 20 10;
}

.braided-divider__strand--one {
    stroke-dashoffset: 0;
}

.braided-divider__strand--two {
    stroke: var(--gold-500);
    stroke-dashoffset: 15;
}

.braided-divider__highlight {
    stroke: var(--gold-300);
    stroke-width: 2;
    stroke-dasharray: 18 12;
}

.braided-frame {
    padding: 5px;
    border: 1px solid rgba(146, 85, 34, 0.28);
    border-radius: calc(var(--radius-lg) + 5px);
    background:
        repeating-linear-gradient(
            135deg,
            var(--gold-700) 0 5px,
            var(--gold-400) 5px 12px,
            var(--gold-300) 12px 16px,
            var(--gold-600) 16px 22px
        );
    box-shadow: var(--shadow-md);
}

.braided-frame__inner {
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--cream-50);
}

/* ============================================
   ICONS, LABELS AND NOTICES
   ============================================ */

.line-icon {
    width: 2.5rem;
    height: 2.5rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.icon-badge {
    display: inline-grid;
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid var(--gold-400);
    border-radius: 50%;
    background: var(--cream-100);
    color: var(--navy-800);
    place-items: center;
}

.notice-label {
    display: inline-flex;
    min-height: 2.25rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    align-items: center;
    gap: var(--space-2);
    background: var(--cream-50);
    color: var(--navy-900);
    font-size: var(--text-sm);
    font-weight: 700;
}

.notice-label--claim {
    border-color: var(--gold-600);
    background: #fff0d6;
}

.notice-label--report {
    border-color: var(--coral-600);
    background: #ffebe5;
}

.notice-label--guidance {
    border-color: var(--navy-600);
    background: #e7f0f7;
}

.notice-label__icon {
    width: 1.2rem;
    height: 1.2rem;
}

.answer-first,
.notice-box {
    padding: var(--space-5);
    border-left: 5px solid var(--coral-500);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: var(--cream-100);
}

.answer-first > :last-child,
.notice-box > :last-child {
    margin-bottom: 0;
}

/* ============================================
   TABLES
   ============================================ */

.table-scroll {
    border: 1px solid var(--gold-600);
    border-radius: var(--radius-lg);
    background: var(--cream-50);
    box-shadow: var(--shadow-sm);
    scrollbar-color: var(--gold-500) var(--cream-200);
}

table {
    width: 100%;
    min-width: 48rem;
    border-collapse: collapse;
    background: var(--cream-50);
    color: var(--ink);
    font-size: var(--text-sm);
}

caption {
    padding: var(--space-4);
    color: var(--ink-soft);
    font-weight: 600;
    text-align: left;
}

th,
td {
    padding: 1rem;
    border-right: 1px solid var(--cream-300);
    border-bottom: 1px solid var(--cream-300);
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--cream-200);
    color: var(--navy-900);
    font-family: var(--font-display);
    font-weight: 700;
}

tbody tr:nth-child(even) td {
    background: #fff8ee;
}

th:first-child,
td:first-child {
    position: sticky;
    z-index: 1;
    left: 0;
    background: var(--cream-100);
    box-shadow: 5px 0 10px rgba(7, 24, 43, 0.05);
}

thead th:first-child {
    z-index: 2;
    background: var(--cream-200);
}

/* ============================================
   NATIVE FAQ AND LEGAL DISCLOSURES
   ============================================ */

.faq-list,
.legal-accordion {
    display: grid;
    gap: var(--space-3);
    align-items: start;
}

.faq-item {
    align-self: start;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--cream-50);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    display: flex;
    min-height: 3.5rem;
    padding: 1rem;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    color: var(--navy-900);
    font-family: var(--font-display);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

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

.faq-item summary:hover {
    background: var(--cream-100);
}

.faq-item[open] summary {
    background: var(--navy-800);
    color: var(--cream-50);
}

.faq-item__chevron {
    width: 1.25rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    transition: transform 180ms ease;
}

.faq-item[open] .faq-item__chevron {
    transform: rotate(180deg);
}

.faq-item__answer {
    padding: var(--space-5);
    border-top: 1px solid var(--cream-300);
    color: var(--ink-soft);
}

.faq-item__answer > :last-child {
    margin-bottom: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    position: relative;
    background: var(--cream-100);
    color: var(--navy-900);
}

.site-footer__braid {
    height: 0.75rem;
    background:
        linear-gradient(to bottom, rgba(7, 24, 43, 0.2), transparent 3px),
        repeating-linear-gradient(
            135deg,
            var(--gold-700) 0 6px,
            var(--gold-400) 6px 13px,
            var(--gold-300) 13px 17px,
            var(--gold-600) 17px 24px
        );
}

.footer-grid {
    display: grid;
    padding-block: var(--space-10);
    gap: var(--space-8);
}

.site-brand--footer {
    color: var(--navy-800);
}

.footer-rainbow-dots {
    display: flex;
    margin-top: var(--space-3);
    gap: 0.35rem;
}

.footer-rainbow-dots span {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
}

.footer-rainbow-dots span:nth-child(1) {
    background: var(--rainbow-red);
}

.footer-rainbow-dots span:nth-child(2) {
    background: var(--rainbow-orange);
}

.footer-rainbow-dots span:nth-child(3) {
    background: var(--rainbow-yellow);
}

.footer-rainbow-dots span:nth-child(4) {
    background: var(--rainbow-green);
}

.footer-rainbow-dots span:nth-child(5) {
    background: var(--rainbow-blue);
}

.footer-disclosure {
    max-width: 36rem;
    margin: 0;
    color: var(--ink-soft);
}

.footer-nav {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-nav a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    color: var(--navy-800);
    font-weight: 700;
    text-decoration-color: var(--coral-500);
    text-underline-offset: 0.2em;
}

.footer-nav a:hover {
    color: var(--coral-700);
}

.footer-meta {
    padding-block: var(--space-4);
    border-top: 1px solid var(--cream-300);
    background: var(--cream-200);
}

.footer-meta p {
    margin: 0;
    color: var(--ink-soft);
    font-size: var(--text-sm);
}

/* ============================================
   MOBILE ACTION BAR
   ============================================ */

.mobile-action-bar {
    position: fixed;
    z-index: 850;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: var(--mobile-action-height);
    padding: 0.7rem 0.75rem calc(0.7rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--gold-500);
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-3);
    background: var(--navy-950);
    box-shadow: 0 -10px 30px rgba(7, 24, 43, 0.24);
}

.mobile-action-bar__copy {
    color: var(--cream-100);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
}

/* ============================================
   REVEAL MOTION
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    html.reveal-enabled [data-reveal] {
        opacity: 0;
        transform: translateY(1.25rem);
        transition: opacity 520ms ease, transform 520ms ease;
    }

    html.reveal-enabled [data-reveal].is-revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   TABLET
   ============================================ */

@media (min-width: 48rem) {
    body.has-mobile-action {
        padding-bottom: 0;
    }

    .container {
        width: min(100% - 3rem, var(--container));
    }

    .section {
        padding-block: var(--space-20);
    }

    .section--compact {
        padding-block: var(--space-16);
    }

    .section--roomy {
        padding-block: var(--space-24);
    }

    .site-header__inner {
        width: min(100% - 2rem, var(--container));
        min-height: 5rem;
    }

    .site-brand__descriptor {
        display: inline;
    }

    .menu-toggle {
        display: none;
    }

    .primary-nav,
    .primary-nav.is-open {
        position: static;
        display: flex;
        width: auto;
        height: auto;
        padding: 0;
        overflow: visible;
        visibility: visible;
        pointer-events: auto;
        align-items: center;
        flex-direction: row;
        gap: var(--space-4);
        background: transparent;
    }

    .primary-nav__links {
        align-items: center;
        flex-direction: row;
        gap: var(--space-1);
    }

    .nav-link {
        min-height: 2.75rem;
        padding: 0.6rem 0.7rem;
        font-size: var(--text-sm);
    }

    .nav-link.is-active::after {
        right: 0.7rem;
        bottom: 0.15rem;
        left: 0.7rem;
    }

    .header-cta {
        width: auto;
        margin-top: 0;
        white-space: nowrap;
    }

    .header-profile-mark {
        display: block;
    }

    .two-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .three-column {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .four-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 0.7fr 1.6fr 0.8fr;
        align-items: start;
    }

    .footer-nav {
        align-items: flex-end;
        text-align: right;
    }

    .mobile-action-bar {
        display: none;
    }
}

/* ============================================
   DESKTOP
   ============================================ */

@media (min-width: 64rem) {
    .site-header__inner {
        min-height: 5.75rem;
    }

    .site-brand__text {
        font-size: 2rem;
    }

    .primary-nav {
        gap: var(--space-5);
    }

    .primary-nav__links {
        gap: var(--space-3);
    }

    .nav-link {
        padding-inline: 0.9rem;
        font-size: var(--text-base);
    }

    .four-column {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .card {
        padding: var(--space-8);
    }

    .section-heading {
        margin-bottom: var(--space-12);
    }
}

@media (min-width: 80rem) {
    .site-header__inner {
        width: min(100% - 4rem, var(--container));
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    html.reveal-enabled [data-reveal],
    html.reveal-enabled [data-reveal].is-revealed {
        opacity: 1;
        transform: none;
    }
}
