/*
 * Public site styles (2026 design). Plain CSS served by AssetMapper, no build step.
 * The accent colour comes from Admin → Site Content → Global and is set on :root in
 * templates/site/base.html.twig.
 */

:root {
    --accent: #B3261E;
    --accent-tint: color-mix(in srgb, var(--accent) 11%, white);
    --accent-dark: color-mix(in srgb, var(--accent) 65%, black);
    --navy: #14254F;
    --navy-deep: #0E1B3B;
    --ink: #2C3A5C;
    --muted: #5A6480;
    --cream: #FBF7F0;
    --sand: #F4EEE2;
    --gold: #F2C46D;
    --gold-dark: #8A6316;
    --line: #E8DFCF;
    --line-soft: #EFE8DA;
    --input-border: #D9CFBC;
    --green: #1F5C3E;
    --green-tint: #E3F0E8;
    --grey-tint: #EEF0F4;
    --on-navy: #DCE2F0;
    --on-navy-muted: #A9B4D0;
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Figtree', system-ui, sans-serif;
}

/* ---------- Base ---------- */

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

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.6;
}

a { color: var(--navy); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

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

[hidden] { display: none !important; }

.serif { font-family: var(--serif); }

.eyebrow {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.label-caps {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.display {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1.02;
    font-size: clamp(44px, 6vw, 76px);
}

.section-title {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.1;
    font-size: clamp(34px, 4.5vw, 52px);
}

.muted { color: var(--muted); }

/* ---------- Buttons, pills, tags ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 30px;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sand); color: var(--navy); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 16px; }
.btn--block { width: 100%; }

.pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}
.pill--caps { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; }
.pill--open { color: var(--green); background: var(--green-tint); }
.pill--closed { color: var(--muted); background: var(--grey-tint); }
.pill--outline { color: var(--navy); background: #fff; border: 1px solid var(--line); }
.pill--sand { color: var(--navy); background: var(--sand); font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    font-size: 15px;
    background: var(--sand);
    color: var(--ink);
    padding: 6px 12px;
    border-radius: 8px;
}
.tag--need { background: var(--accent-tint); color: var(--accent-dark); }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    min-height: 44px;
    min-width: 52px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1.5px solid var(--input-border);
    background: #fff;
    color: var(--navy);
    cursor: pointer;
}
.chip[aria-pressed="true"] { font-weight: 700; border-color: var(--navy); background: var(--navy); color: #fff; }

.progress {
    height: 10px;
    border-radius: 999px;
    background: #E3D9C6;
    overflow: hidden;

    & > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
}

.input {
    font: inherit;
    font-size: 17px;
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1.5px solid var(--input-border);
    border-radius: 12px;
    background: #fff;
    color: var(--navy);
}
select.input { padding: 0 12px; }
.input:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }

/* Expandable question/answer rows (home page and FAQ) */
details.qa {
    border-bottom: 1px solid var(--line-soft);
    padding: 18px 0;

    &:last-child { border-bottom: 0; }

    & summary {
        list-style: none;
        cursor: pointer;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        font-weight: 700;
        font-size: 19px;
        color: var(--navy);
    }
    & summary::-webkit-details-marker { display: none; }
    & summary::after {
        content: "+";
        flex: 0 0 auto;
        color: var(--accent);
        font-size: 28px;
        font-weight: 400;
        line-height: 1;
        transition: transform .15s;
    }
    &[open] summary::after { transform: rotate(45deg); }
}

/* Rich text written in CKEditor */
.prose {
    & > * + * { margin-top: 0.8em; }
    & p, & ul, & ol { margin-bottom: 0; }
    & h2, & h3, & h4 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.2; margin-top: 1.4em; }
    & h2 { font-size: 30px; }
    & h3 { font-size: 24px; }
    & img { border-radius: 12px; }
    & table { border-collapse: collapse; width: 100%; }
    & td, & th { border-bottom: 1px solid var(--line-soft); padding: 8px; text-align: left; }
}

/* ---------- Header ---------- */

.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--cream);

    & .container {
        padding-top: 18px;
        padding-bottom: 18px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;

    & img { display: block; height: 84px; width: auto; }
}
@media (max-width: 640px) {
    .brand img { height: 64px; }
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 28px;

    & a { text-decoration: none; font-weight: 600; font-size: 16px; }
    & a[aria-current="page"]:not(.btn) { font-weight: 700; color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
}

/* ---------- Footers ---------- */

.site-footer {
    background: var(--navy-deep);
    color: var(--on-navy);

    & a { color: #fff; text-decoration: none; font-size: 16px; }
    & a:hover { color: var(--gold); }
}
.site-footer__main {
    padding-top: 72px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; flex: 1 1 200px; }
.site-footer__col--about { flex: 1 1 340px; max-width: 440px; gap: 14px; font-size: 16px; }
.site-footer__col .label-caps { color: var(--gold); }
.site-footer__name { font-family: var(--serif); font-weight: 700; font-size: 28px; color: #fff; }
.site-footer__bottom {
    border-top: 1px solid #24345E;
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    font-size: 14px;
    color: var(--on-navy-muted);
}
.site-footer--slim {
    color: var(--on-navy-muted);

    & .container {
        padding-top: 32px;
        padding-bottom: 32px;
        display: flex;
        flex-wrap: wrap;
        gap: 12px 32px;
        justify-content: space-between;
        font-size: 15px;
    }
    & nav { display: flex; gap: 24px; }
    & a { font-size: 15px; text-decoration: underline; }
}

/* ---------- Shared page intro ---------- */

.page-hero {
    padding-top: 80px;
    padding-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px 64px;
    align-items: flex-end;
    justify-content: space-between;
}
.page-hero__copy {
    flex: 999 1 560px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;

    & > p, & .prose { font-size: 20px; max-width: 640px; }
}
.page-hero__aside { flex: 1 1 320px; }

.section-head {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 64px;
    align-items: flex-end;
    justify-content: space-between;
}
.section-head__title { flex: 1 1 520px; display: flex; flex-direction: column; gap: 14px; }
.section-head > p { flex: 1 1 380px; max-width: 480px; }

/* ---------- Home ---------- */

.hero {
    padding-top: 88px;
    padding-bottom: 96px;
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
    align-items: center;
}
.hero__copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__eyebrows { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero__eyebrows .eyebrow + .dot { width: 6px; height: 6px; border-radius: 50%; background: #B8862B; }
.hero__eyebrows .eyebrow--muted { color: var(--muted); font-weight: 600; }
.hero__title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(48px, 7vw, 92px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--navy);

    & em { display: block; color: var(--accent); font-style: italic; }
}
.hero__intro { font-size: 21px; line-height: 1.55; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 4px; }

.glance {
    flex: 1 1 340px;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 24px 48px -28px rgba(20, 37, 79, 0.35);
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.glance__title { font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--navy); }
.glance__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;

    & + .glance__item { border-top: 1px solid var(--line-soft); padding-top: 22px; }
}
.glance__badge {
    flex: 0 0 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--sand);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 22px;
}
.glance__badge--date {
    height: 64px;
    background: var(--accent);
    color: #fff;
    flex-direction: column;
    line-height: 1;
    font-size: 22px;

    & small { font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; }
}
.glance__text { display: flex; flex-direction: column; gap: 2px; }
.glance__text strong { color: var(--navy); }
.glance__text span { font-size: 16px; color: var(--muted); }

.stats { background: var(--navy); color: #fff; }
.stats__grid {
    padding-top: 56px;
    padding-bottom: 56px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value { font-family: var(--serif); font-weight: 600; font-size: 56px; line-height: 1; }
.stat__label { font-size: 16px; color: #C9D2E8; }

.home-section { padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 48px; }
.home-section--why { padding-bottom: 96px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--min, 280px), 1fr)); gap: 24px; }

.why-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;

    & h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--navy); }
    & p { font-size: 17px; }
}
.icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-tint);
    color: var(--accent);
}
.icon-circle--navy { background: #E7ECF6; color: var(--navy); }
.icon-circle--gold { background: #F6EEDC; color: var(--gold-dark); }

.quote {
    margin-top: 24px;
    padding: 48px 24px;
    text-align: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    & blockquote {
        font-family: var(--serif);
        font-style: italic;
        font-weight: 500;
        font-size: clamp(28px, 3.6vw, 40px);
        line-height: 1.25;
        color: var(--navy);
    }
}

.how { background: var(--sand); }
.how .home-section { padding-top: 104px; padding-bottom: 104px; }
.how__head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.step {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;

    & h3 { font-size: 20px; font-weight: 700; color: var(--navy); }
    & p { font-size: 16px; }
}
.step__number { font-family: var(--serif); font-weight: 700; font-size: 40px; line-height: 1; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.actions > a:not(.btn) { font-weight: 600; font-size: 17px; }

.family-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;

    & > a { margin-top: auto; font-weight: 700; font-size: 16px; }
}
.family-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.family-card__name { font-family: var(--serif); font-weight: 700; font-size: 28px; color: var(--navy); }

.aab-wrap { padding: 0 24px 112px; }
.aab {
    max-width: 1192px;
    margin: 0 auto;
    background: var(--navy);
    color: #fff;
    border-radius: 32px;
    padding: clamp(36px, 6vw, 72px);
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: center;
    position: relative;
    overflow: hidden;

    & > svg { position: absolute; right: -60px; top: -60px; }
    & a.btn--light:hover { color: var(--navy); }
}
.aab__copy {
    flex: 999 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;

    & .eyebrow { color: var(--gold); }
    & h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; }
    & p { font-size: 19px; color: var(--on-navy); max-width: 620px; }
}
.aab__progress {
    flex: 1 1 300px;
    min-width: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    font-size: 15px;
    color: var(--on-navy);

    & .progress { height: 12px; background: rgba(255, 255, 255, 0.16); }
    & .progress > span { background: var(--gold); }
}
.aab__amount { display: flex; align-items: baseline; gap: 10px; font-size: 17px; }
.aab__amount strong { font-family: var(--serif); font-weight: 700; font-size: 52px; line-height: 1; color: #fff; }

.home-faq { background: #fff; border-top: 1px solid var(--line); }
.home-faq .container {
    padding-top: 104px;
    padding-bottom: 104px;
    display: flex;
    flex-wrap: wrap;
    gap: 48px 80px;
}
.home-faq__intro {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 14px;

    & h2 { font-size: clamp(34px, 4.5vw, 48px); }
    & .prose { font-size: 17px; }
}
.home-faq__list {
    flex: 999 1 560px;
    min-width: 0;

    & details.qa { border-bottom: 1px solid var(--line); padding: 22px 0; }
    & details.qa:last-child { border-bottom: 1px solid var(--line); }
    & .prose { margin-top: 8px; font-size: 17px; }
}

/* ---------- Families ---------- */

.count-tiles { display: flex; gap: 12px; }
.count-tile {
    flex: 1;
    padding: 18px 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    color: var(--muted);

    & strong { font-family: var(--serif); font-weight: 700; font-size: 36px; line-height: 1.1; color: var(--navy); }
    & strong.accent { color: var(--accent); }
}

.filter-bar {
    padding-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;

    & > p { font-size: 15px; font-style: italic; color: var(--muted); display: flex; gap: 8px; align-items: center; }
}

.family-list { padding-bottom: 96px; display: flex; flex-direction: column; gap: 16px; }

details.family {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    scroll-margin-top: 24px;

    & summary {
        list-style: none;
        cursor: pointer;
        padding: 24px 28px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 20px;
        min-height: 44px;
    }
    & summary::-webkit-details-marker { display: none; }
    & summary .chev { transition: transform .15s; }
    &[open] summary .chev { transform: rotate(180deg); }
}
.family__name { font-family: var(--serif); font-weight: 700; font-size: 30px; color: var(--navy); }
.family__household { font-size: 15px; color: var(--muted); }
.spacer { flex: 1; }
.family__body {
    border-top: 1px solid var(--line-soft);
    padding: 32px 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px 56px;
}
.family__story {
    flex: 999 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;

    & h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.25; color: var(--navy); }
}
.family__needs { display: flex; flex-wrap: wrap; gap: 24px; }
.family__needs > div { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; }
.family__aside {
    flex: 1 1 280px;
    min-width: 0;
    align-self: flex-start;
    background: var(--sand);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;

    & > strong { color: var(--navy); }
    & small { font-size: 14px; color: var(--muted); }
}
.family__claimed { display: flex; align-items: baseline; gap: 8px; font-size: 16px; color: var(--muted); }
.family__claimed strong { font-family: var(--serif); font-weight: 700; font-size: 40px; line-height: 1; color: var(--navy); }

.banner-wrap { padding: 0 24px 96px; }
.banner {
    max-width: 1192px;
    margin: 0 auto;
    background: var(--navy);
    color: #fff;
    border-radius: 28px;
    padding: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px 48px;
    align-items: center;
    justify-content: space-between;

    & > div { flex: 1 1 520px; display: flex; flex-direction: column; gap: 10px; }
    & h2 { font-family: var(--serif); font-weight: 600; font-size: 36px; line-height: 1.1; }
    & p { color: var(--on-navy); }
}

/* ---------- Gift list ---------- */

.tip {
    flex: 1 1 340px;
    padding: 20px 24px;
    display: flex;
    gap: 14px;
    align-items: flex-start;

    & svg { flex: 0 0 26px; margin-top: 2px; stroke: var(--accent); }
    & strong { display: block; color: var(--navy); }
    & span { font-size: 16px; color: var(--muted); }
}

.gift-layout { padding-top: 8px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.gift-sidebar { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.gift-sidebar .label-caps { color: var(--navy); letter-spacing: 0.1em; font-size: 14px; }
.gift-sidebar .chip { font-size: 15px; padding: 0 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.search-row { display: flex; gap: 8px; }
.search-row .input { min-height: 48px; font-size: 16px; }
.search-status { font-size: 15px; color: var(--muted); }
.search-status button { font: inherit; font-weight: 700; color: var(--navy); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.check {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;

    & input { width: 22px; height: 22px; accent-color: var(--accent); }
}
.remaining-tile {
    background: var(--navy);
    color: #fff;
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 15px;

    & strong { font-family: var(--serif); font-weight: 700; font-size: 40px; line-height: 1; }
    & span { color: var(--on-navy); }
}
.gift-groups { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.gift-group {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    scroll-margin-top: 24px;
}
.gift-group__head {
    padding: 20px 24px;
    background: var(--cream);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;

    & h2 { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--navy); }
    & > span { font-size: 15px; color: var(--muted); }
    & > a { font-size: 15px; font-weight: 700; }
}
.gift-group--essential .gift-group__head { background: #F6EEDC; }
.gift-row {
    padding: 16px 24px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: center;

    & .pill { flex: 0 0 auto; min-width: 84px; }
}
.gift-row__name { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; }
.gift-row__name strong { color: var(--navy); }
.gift-row__name span, .gift-row__donors { font-size: 15px; color: var(--muted); }
.gift-row__donors { flex: 0 0 auto; min-width: 130px; }
.gift-row__done { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 104px; color: var(--green); }
.gift-row--mine { background: #FFFBEF; }
.empty-state {
    background: #fff;
    border: 1px dashed var(--input-border);
    border-radius: 24px;
    padding: 48px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    color: var(--muted);

    & strong { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--navy); }
}

/* ---------- Sign-up dialog / page ---------- */

dialog.signup-dialog {
    width: calc(100% - 32px);
    max-width: 960px;
    max-height: calc(100% - 64px);
    padding: 0;
    border: 0;
    border-radius: 28px;
    background: transparent;
    overflow: auto;

    &::backdrop { background: rgba(27, 37, 71, 0.85); }
}
.signup-page { background: #1B2547; padding: 64px 16px; display: flex; justify-content: center; }
.signup {
    width: 100%;
    max-width: 960px;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
.signup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sand);
    color: var(--navy);
    cursor: pointer;
}
.signup__aside {
    flex: 1 1 320px;
    min-width: 0;
    background: var(--sand);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;

    & > .label-caps { color: var(--accent); }
}
.gift-summary {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 12px 24px -18px rgba(20, 37, 79, 0.5);

    & > strong { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.15; color: var(--navy); }
    & > span { font-size: 16px; color: var(--muted); }
    & .tags { padding-top: 8px; }
    & .prose { font-size: 15px; color: var(--muted); }
}
.checklist { display: flex; flex-direction: column; gap: 14px; }
.checklist > strong { color: var(--navy); }
.checklist__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 16px;

    & svg { flex: 0 0 20px; margin-top: 3px; stroke: var(--accent); }
}
.signup__main { flex: 999 1 420px; min-width: 0; padding: 40px 40px 36px; }
.signup__form, .signup__done { display: flex; flex-direction: column; gap: 22px; }
.signup__heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 48px;

    & h1 { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.1; color: var(--navy); }
    & p { font-size: 16px; color: var(--muted); }
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;

    & label { font-size: 15px; font-weight: 700; color: var(--navy); }
    & ul { margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--accent); font-weight: 600; }
}
.form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.form-row > .form-field { flex: 1 1 200px; }
.signup fieldset {
    margin: 0;
    padding: 18px;
    border: 1.5px solid var(--line-soft);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;

    & legend { padding: 0 6px; font-size: 15px; font-weight: 700; color: var(--navy); }
    & > p { font-size: 15px; color: var(--muted); }
}
.form-errors { margin: 0; padding: 14px 18px; list-style: none; border-radius: 12px; background: var(--accent-tint); color: var(--accent-dark); font-size: 15px; font-weight: 600; }
.signup__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line-soft);
    padding-top: 22px;

    & > a:not(.btn) { font-weight: 600; font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; }
}
.signup__footer--start { justify-content: flex-start; }
.signup__tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; }
.numbered {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 14px;

    & li { display: flex; gap: 14px; align-items: flex-start; counter-increment: step; }
    & li::before {
        content: counter(step);
        flex: 0 0 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--navy);
        color: #fff;
        font-weight: 700;
        font-size: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ---------- FAQ ---------- */

.faq-search {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 560px;
    margin-top: 8px;
    background: #fff;
    border: 1.5px solid var(--input-border);
    border-radius: 999px;
    padding: 0 20px;
    min-height: 56px;

    & input { font: inherit; font-size: 17px; border: 0; outline: none; background: transparent; flex: 1; min-height: 52px; color: var(--navy); }
    &:focus-within { outline: 3px solid var(--gold); outline-offset: 1px; }
}
.faq-layout { padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.faq-aside { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 900px) {
    .faq-aside { position: sticky; top: 24px; }
}
.faq-topics {
    display: flex;
    flex-direction: column;
    gap: 4px;

    & .label-caps { color: var(--muted); padding-bottom: 6px; }
    & a {
        text-decoration: none;
        font-weight: 600;
        font-size: 17px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        border-radius: 12px;
        border: 1px solid transparent;
    }
    & a:first-of-type, & a:hover { background: #fff; border-color: var(--line); }
    & a span { font-size: 14px; color: var(--muted); }
}
.contact-card {
    background: var(--navy);
    color: #fff;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;

    & > strong { font-family: var(--serif); font-weight: 600; font-size: 22px; }
    & > span { font-size: 15px; color: var(--on-navy); }
}
.contact {
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-height: 44px;
    justify-content: center;

    & strong { font-weight: 700; }
    & small { font-size: 14px; color: var(--on-navy-muted); }
}
a.contact:hover { color: var(--gold); }
.faq-sections { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.faq-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-margin-top: 24px;

    & h2 { font-family: var(--serif); font-weight: 600; font-size: 34px; color: var(--navy); }
    & > p { color: var(--muted); }
    & .card { padding: 0 24px; }
    & .prose { margin: 8px 0 4px; }
}

dialog.lightbox {
    padding: 0;
    border: 0;
    border-radius: 16px;
    max-width: min(1000px, calc(100% - 32px));
    background: #fff;

    &::backdrop { background: rgba(14, 27, 59, 0.85); }
    & img { display: block; }
    & form { position: absolute; top: 8px; right: 8px; }
}

/* ---------- Generic page ---------- */

.page-body { padding-bottom: 96px; }
.page-body .card { padding: clamp(24px, 4vw, 48px); }

@media (max-width: 640px) {
    .signup__main, .signup__aside { padding: 32px 22px; }
    .banner { padding: 32px; }
    details.family summary, .family__body { padding-left: 20px; padding-right: 20px; }
}
