:root {
    --blue: #2853c7;
    --blue-dark: #17378e;
    --blue-soft: #eef3ff;
    --yellow: #ffd91c;
    --ink: #17213a;
    --muted: #5f6b80;
    --white: #fff;
    --cream: #fffdf5;
    --line: #dfe5f2;
    --shadow: 0 18px 48px rgba(23, 55, 142, .13);
    --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }

fieldset { min-width: 0; }

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.skip-link {
    position: fixed;
    z-index: 100;
    left: 16px;
    top: -80px;
    padding: 10px 16px;
    background: var(--yellow);
    color: var(--ink);
    border-radius: 8px;
    font-weight: 800;
}

.skip-link:focus { top: 16px; }

.donation-banner {
    color: var(--ink);
    background: var(--yellow);
}

.donation-banner a {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 7px 20px;
    text-align: center;
    text-decoration: none;
    font-size: .9rem;
}

.donation-banner strong {
    color: var(--blue-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.donation-banner a:hover strong,
.donation-banner a:focus-visible strong { text-decoration-thickness: 2px; }

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(40, 83, 199, .1);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand img { width: 205px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    padding: 10px 12px;
    border: 0;
    text-decoration: none;
    border-radius: 999px;
    color: var(--ink);
    background: transparent;
    font-size: .94rem;
    font-weight: 750;
    line-height: inherit;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
    color: var(--blue-dark);
    background: var(--blue-soft);
}

.mobile-donate-link { display: none; }

.menu-button {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: var(--blue);
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: 590px;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background: var(--blue-dark);
}

.hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(17, 38, 100, .94) 0%, rgba(23, 55, 142, .72) 47%, rgba(23, 55, 142, .15) 78%),
        url("/images/buddy-walk-photo-1.jpg") center / cover;
}

.hero::after {
    position: absolute;
    width: 320px;
    height: 320px;
    right: -80px;
    bottom: -160px;
    content: "";
    border: 54px solid rgba(255, 217, 28, .72);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 92px 0;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero .eyebrow { color: var(--yellow); }

h1, h2, h3 {
    margin-top: 0;
    line-height: 1.08;
    letter-spacing: -.035em;
}

h1 {
    margin-bottom: 22px;
    font-size: clamp(3rem, 7vw, 5.8rem);
}

h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: 1.4rem; }

.hero-lead {
    max-width: 610px;
    margin: 0 0 32px;
    color: #f3f6ff;
    font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 2px solid var(--blue);
    border-radius: 999px;
    color: var(--white);
    background: var(--blue);
    text-decoration: none;
    font-weight: 850;
    cursor: pointer;
}

.button:hover,
.button:focus-visible {
    border-color: var(--blue-dark);
    background: var(--blue-dark);
}

.amount-fieldset {
    margin: 24px 0;
    padding: 0;
    border: 0;
}

.amount-fieldset legend,
.field > span {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
}

.amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.amount-choice { cursor: pointer; }
.amount-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.amount-choice span {
    min-height: 48px;
    display: grid;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    font-weight: 850;
}

.amount-choice input:checked + span {
    border-color: var(--blue);
    color: var(--white);
    background: var(--blue);
}

.amount-choice input:focus-visible + span {
    outline: 3px solid rgba(40, 83, 199, .25);
    outline-offset: 2px;
}

.giving-card .field { display: block; margin: 16px 0; }
.giving-card input[type="text"],
.giving-card input[type="number"],
.giving-card textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: var(--white);
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    font-weight: 700;
}

.checkbox-field input { width: 18px; height: 18px; }
.field-error { display: block; margin-top: 6px; color: #a51d2d; font-size: .9rem; }
.donation-submit { width: 100%; margin-top: 10px; }
.success-card { max-width: 760px; margin: 50px auto; text-align: center; }

.button-yellow {
    border-color: var(--yellow);
    color: var(--ink);
    background: var(--yellow);
}

.button-yellow:hover,
.button-yellow:focus-visible {
    border-color: #ffe66d;
    background: #ffe66d;
}

.button-outline {
    border-color: rgba(255, 255, 255, .7);
    color: var(--white);
    background: transparent;
}

.button-outline:hover,
.button-outline:focus-visible {
    border-color: var(--white);
    background: rgba(255, 255, 255, .12);
}

.section { padding: 92px 0; }
.section-soft { background: var(--blue-soft); }
.section-cream { background: var(--cream); }

.section-heading {
    max-width: 720px;
    margin-bottom: 44px;
}

.section-heading p,
.lead {
    color: var(--muted);
    font-size: 1.13rem;
}

.intro-grid,
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(40px, 7vw, 90px);
}

.photo-frame {
    position: relative;
}

.photo-frame::before {
    position: absolute;
    z-index: -1;
    width: 65%;
    height: 70%;
    right: -18px;
    bottom: -18px;
    content: "";
    border-radius: var(--radius);
    background: var(--yellow);
}

.photo-frame img {
    width: 100%;
    min-height: 430px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.check-list {
    display: grid;
    gap: 14px;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 34px;
}

.check-list li::before {
    position: absolute;
    left: 0;
    top: .12em;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    content: "✓";
    border-radius: 50%;
    color: var(--white);
    background: var(--blue);
    font-size: .76rem;
    font-weight: 900;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 34px rgba(23, 55, 142, .08);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body { padding: 26px; }
.card-body p { color: var(--muted); }
.card-link { color: var(--blue-dark); font-weight: 850; }

.impact-strip {
    color: var(--white);
    background: var(--blue);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.impact-item {
    padding: 44px 34px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, .22);
}

.impact-item:last-child { border: 0; }
.impact-item strong { display: block; color: var(--yellow); font-size: 2.2rem; }

.cta {
    position: relative;
    overflow: hidden;
    padding: 58px;
    border-radius: 30px;
    color: var(--white);
    background: var(--blue-dark);
}

.cta::after {
    position: absolute;
    width: 190px;
    height: 190px;
    right: -58px;
    top: -90px;
    content: "";
    border: 32px solid var(--yellow);
    border-radius: 50%;
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.cta p { color: #e6edff; font-size: 1.12rem; }

.page-hero {
    position: relative;
    min-height: 370px;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: var(--white);
    background: var(--blue-dark);
}

.page-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(18, 43, 119, .94), rgba(18, 43, 119, .46)),
        var(--page-image) center / cover;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 76px 0 64px;
}

.page-hero h1 { margin-bottom: 12px; font-size: clamp(2.8rem, 6vw, 5rem); }
.page-hero p { margin: 0; color: #eef3ff; font-size: 1.18rem; }

.event-list { display: grid; gap: 24px; }

.event-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 34px rgba(23, 55, 142, .08);
}

.event-card img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
}

.event-content { padding: 30px; }

.tag {
    display: inline-flex;
    padding: 5px 11px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.notice {
    padding: 18px 20px;
    border-left: 5px solid var(--yellow);
    border-radius: 12px;
    color: #37425a;
    background: #fff9ce;
}

.donation-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 44px;
}

.giving-card,
.form-card {
    padding: clamp(26px, 5vw, 46px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.volunteer-application-wrap { max-width: 900px; }
.volunteer-application-intro { margin-bottom: 28px; }
.volunteer-application-form h2 { margin-top: 0; }
.volunteer-status-card { text-align: center; }
.volunteer-status-card .button { margin-top: 12px; }

.amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 24px 0;
}

.amount {
    padding: 14px;
    border: 2px solid var(--line);
    border-radius: 12px;
    color: var(--blue-dark);
    background: var(--white);
    font-weight: 900;
}

.amount.featured {
    border-color: var(--yellow);
    background: #fffbe1;
}

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
}

.field label { font-weight: 800; }

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #c9d1e2;
    border-radius: 10px;
    color: var(--ink);
    background: var(--white);
}

.field select {
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232853c7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    box-shadow: 0 1px 2px rgba(17, 45, 98, .06);
    cursor: pointer;
}
.field select:hover { border-color: #8fa4d7; background-color: #fbfcff; }
.field select:disabled { color: var(--muted); background-color: #edf0f6; cursor: not-allowed; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(40, 83, 199, .18); border-color: var(--blue); }
.field small { color: #a32121; font-weight: 700; }
.field [aria-invalid="true"] { border-color: #b72d2d; }
.field:has(> small) > input,
.field:has(> small) > select,
.field:has(> small) > textarea,
.field:has(> small) > .currency-input input {
    border-color: #b72d2d;
    background-color: #fff7f6;
}
.field:has(> input[required], > select[required], > textarea[required]) > label::after,
.field:has(> .currency-input input[required]) > label::after,
label.field:has(input[required], select[required], textarea[required]) > span:first-child::after {
    content: " *";
    color: #b42318;
    font-weight: 950;
}
.required-fields-note {
    margin: -8px 0 22px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
}
.required-fields-note strong { color: #b42318; }
.validation-attempted .field input:invalid,
.validation-attempted .field select:invalid,
.validation-attempted .field textarea:invalid {
    border-color: #b42318;
    background-color: #fff7f6;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .1);
}
.validation-attempted .field:has(:invalid) > label { color: #8f1f17; }
.client-field-error { color: #a32121; font-size: .82rem; font-weight: 750; }
.honeypot { position: absolute; left: -9999px; }

.alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 750;
}

.alert-success { color: #175d31; background: #e3f7e9; }
.alert-error { color: #8a2525; background: #fde7e7; }

.auth-shell {
    min-height: 690px;
    display: grid;
    place-items: center;
    padding: 70px 20px;
    background: linear-gradient(145deg, var(--blue-soft), var(--cream));
}

.auth-card {
    width: min(520px, 100%);
    padding: 44px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}
.auth-create-account { width: 100%; margin: 8px 0; text-align: center; }
.password-input { position: relative; }
.password-input input { padding-right: 54px; }
.password-input button {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 7px;
    border: 0;
    border-radius: 8px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    transform: translateY(-50%);
    cursor: pointer;
}
.password-input button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-input button:hover,
.password-input button:focus-visible { background: #dce6ff; }

.auth-logo { width: 210px; margin: 0 auto 28px; }
.auth-card h1 { margin-bottom: 12px; font-size: 2.4rem; text-align: center; }
.auth-card > p { color: var(--muted); text-align: center; }

.auth-submit { width: 100%; }

.auth-links {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    text-align: center;
}

.auth-links a { color: var(--blue-dark); font-weight: 750; }
.field-help { color: var(--muted); font-size: .88rem; }

.text-button {
    width: 100%;
    margin-top: 18px;
    padding: 8px;
    border: 0;
    color: var(--blue-dark);
    background: transparent;
    text-decoration: underline;
    font-weight: 750;
    cursor: pointer;
}

.account-summary {
    display: grid;
    gap: 12px;
    margin: 26px 0;
}

.account-summary div {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--blue-soft);
}

.account-summary dt { color: var(--muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.account-summary dd { margin: 2px 0 0; font-weight: 750; overflow-wrap: anywhere; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.auth-actions form { margin: 0; }

.button-secondary {
    border-color: var(--line);
    color: var(--blue-dark);
    background: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible { color: var(--white); }

.create-fundraiser-link {
    color: var(--blue-dark) !important;
    background: var(--yellow);
}

.registration-question {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.registration-question legend { width: 100%; padding: 0 4px; font-weight: 800; }
.registration-question label { display: flex; gap: 7px; align-items: center; padding: 10px 16px; border: 1px solid var(--line); border-radius: 9px; }
.registration-question p { flex-basis: 100%; margin: 0; }

.admin-body { min-height: 100vh; background: #f4f7fc; }
.admin-subnav {
    border-bottom: 1px solid var(--line);
    background: #eef3ff;
}
.admin-subnav-inner { display: flex; gap: 26px; align-items: center; min-height: 58px; }
.admin-subnav-inner > strong { flex: 0 0 auto; color: var(--blue-dark); }
.admin-subnav nav { display: flex; gap: 5px; align-items: center; overflow-x: auto; padding: 7px 0; }
.admin-subnav nav a { flex: 0 0 auto; padding: 8px 11px; border-radius: 8px; color: var(--blue-dark); font-size: .88rem; font-weight: 800; text-decoration: none; }
.admin-subnav nav a:hover, .admin-subnav nav a:focus-visible, .admin-subnav nav a.active { color: var(--white); background: var(--blue); }
.admin-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0 80px; }
.admin-title { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.admin-title h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 28px; }
.admin-stat-grid > * { display: grid; gap: 4px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--white); text-decoration: none; }
.admin-stat-grid strong { color: var(--blue-dark); font-size: 1.7rem; }
.admin-stat-grid span { color: var(--muted); font-weight: 700; }
.admin-actions { display: flex; gap: 12px; }
.admin-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.admin-row-actions form { margin: 0; }
.admin-delete-action {
    padding: 0;
    border: 0;
    color: #a32121;
    background: transparent;
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}
.admin-delete-action:hover,
.admin-delete-action:focus-visible { color: #701616; }
.admin-delete-action:disabled { color: #9aa2b1; text-decoration: none; cursor: not-allowed; }
.admin-shirt-sizes { margin: 8px 0 24px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; }
.admin-shirt-sizes legend { padding: 0 7px; color: var(--blue-dark); font-weight: 900; }
.shirt-size-list { display: grid; gap: 10px; margin: 18px 0; }
.shirt-size-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.shirt-size-row .field { margin: 0; }
.shirt-size-remove { margin-bottom: 0; }
.admin-shirt-sizes[hidden] { display: none; }
.community-photo-admin { margin-top: 52px; padding-top: 38px; border-top: 1px solid var(--line); }
.community-upload-form { display: grid; gap: 18px; }
.community-dropzone {
    min-height: 230px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 34px;
    border: 3px dashed #9eb2e4;
    border-radius: 18px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    text-align: center;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.community-dropzone:hover,
.community-dropzone:focus-within,
.community-dropzone.dragging { border-color: var(--blue); background: #e4ebff; transform: translateY(-2px); }
.community-dropzone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.community-dropzone strong { font-size: 1.35rem; }
.community-dropzone span,
.community-dropzone small { color: var(--muted); }
.community-file-list { display: grid; gap: 5px; margin: 0; padding-left: 22px; color: var(--muted); }
.community-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.community-admin-photo {
    position: relative;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(23, 55, 142, .08);
}
.community-admin-photo.dragging { opacity: .45; outline: 3px solid var(--yellow); }
.community-admin-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.community-photo-drag-handle { padding: 4px 0 11px; color: var(--blue-dark); font-size: .82rem; font-weight: 850; cursor: grab; }
.community-cover-badge { position: absolute; top: 54px; left: 26px; padding: 5px 10px; border-radius: 999px; color: var(--ink); background: var(--yellow); font-size: .75rem; font-weight: 900; }
.community-admin-photo .field { margin-top: 15px; }
.community-admin-photo textarea { min-height: 90px; }
.community-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.community-photo-actions .button { padding: 8px 11px; font-size: .78rem; }
.community-photo-actions .card-link { border: 0; background: transparent; cursor: pointer; }
.community-save-order { margin-top: 24px; }

.community-hero,
.community-album-header { color: var(--white); background: linear-gradient(135deg, var(--blue-dark), var(--blue)); }
.community-hero h1,
.community-album-header h1 { color: var(--white); }
.community-hero .lead,
.community-album-header .lead { max-width: 780px; color: #e8edff; }
.community-album-header .back-link { color: var(--white); }
.community-album-header .share-panel { color: var(--ink); background: var(--white); }
.community-album-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.community-album-card { overflow: hidden; border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.community-album-card > a { display: block; overflow: hidden; }
.community-album-card img,
.community-album-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease; }
.community-album-card:hover img { transform: scale(1.025); }
.community-album-placeholder { display: grid; place-items: center; color: var(--muted); background: var(--blue-soft); font-weight: 800; }
.community-album-card > div { padding: 24px; }
.community-album-card h2 { margin: 5px 0 10px; font-size: 2rem; }
.community-album-card h2 a { text-decoration: none; }
.community-album-description { margin-bottom: 24px; }
.community-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.community-photo-tile { position: relative; overflow: hidden; padding: 0; border: 0; border-radius: 14px; background: var(--white); box-shadow: 0 8px 20px rgba(23, 55, 142, .12); cursor: zoom-in; }
.community-photo-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .22s ease; }
.community-photo-tile:hover img,
.community-photo-tile:focus-visible img { transform: scale(1.035); }
.community-photo-tile span { position: absolute; inset: auto 0 0; padding: 28px 14px 12px; color: var(--white); background: linear-gradient(transparent, rgba(10, 22, 58, .86)); text-align: left; font-size: .86rem; font-weight: 750; }
.community-lightbox {
    width: min(1100px, calc(100% - 30px));
    max-width: none;
    max-height: 92dvh;
    padding: 48px 60px 24px;
    border: 0;
    border-radius: 18px;
    color: var(--white);
    background: #0c1735;
}
.community-lightbox::backdrop { background: rgba(5, 12, 30, .88); backdrop-filter: blur(5px); }
.community-lightbox figure { margin: 0; }
.community-lightbox figure img { width: 100%; max-height: 74dvh; object-fit: contain; }
.community-lightbox figcaption { min-height: 1.5em; margin-top: 12px; text-align: center; }
.community-lightbox-close,
.community-lightbox-nav { position: absolute; border: 0; color: var(--white); background: rgba(255, 255, 255, .14); cursor: pointer; }
.community-lightbox-close { top: 10px; right: 12px; width: 38px; height: 38px; border-radius: 50%; font-size: 1.7rem; line-height: 1; }
.community-lightbox-nav { top: 50%; width: 44px; height: 60px; border-radius: 10px; font-size: 2.5rem; transform: translateY(-50%); }
.community-lightbox-nav.previous { left: 8px; }
.community-lightbox-nav.next { right: 8px; }
.admin-form, .admin-search, .admin-inline-form { margin-bottom: 24px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.admin-search label { display: block; margin-bottom: 8px; font-weight: 800; }
.admin-search > div { display: flex; gap: 10px; }
.admin-search input { flex: 1; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.admin-table-wrap { overflow-x: auto; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 15px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table th { color: var(--blue-dark); background: var(--blue-soft); }
.registration-management-row td { padding: 10px 15px 18px; background: #f8faff; }
.registration-management-row + tr td { border-top: 5px solid #e5ebf8; }
.registration-management { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; }
.registration-management-title { align-self: center; color: var(--blue-dark); }
.registration-management form { margin: 0; }
.registration-management button { white-space: nowrap; }
.registration-cancel-form { display: flex; flex: 1 1 390px; align-items: end; gap: 10px; }
.registration-allocation-form { display: flex; flex: 1 1 520px; align-items: end; gap: 10px; }
.registration-cancel-form label,
.registration-allocation-form label { display: grid; flex: 1 1 240px; gap: 4px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.registration-cancel-form input,
.registration-allocation-form input { width: 100%; min-width: 220px; padding: 8px 10px; border: 1px solid #bac5d9; border-radius: 7px; background: var(--white); }
.registration-cancellation-note { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.admin-inline-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.checkbox-field { margin: 14px 0; }
.admin-price-fields { margin: 24px 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; }
.admin-price-fields legend { padding: 0 8px; font-weight: 850; }
.event-registration-admin-title { margin-top: 50px; }
.currency-input { display: flex; align-items: stretch; }
.currency-input > span { display: grid; place-items: center; padding: 0 12px; border: 1px solid #cbd4e6; border-right: 0; border-radius: 10px 0 0 10px; background: var(--blue-soft); font-weight: 850; }
.field .currency-input input { border-radius: 0 10px 10px 0; }

.event-public-grid { display: grid; gap: 22px; }
.event-public-card { display: grid; grid-template-columns: 115px 1fr; gap: 28px; padding: 28px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.event-public-card h2 { margin-bottom: 10px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.event-date-block { min-height: 112px; display: grid; place-content: center; align-self: start; border-radius: 15px; color: var(--white); background: var(--blue); text-align: center; }
.event-date-block strong { color: var(--yellow); font-size: 2.7rem; line-height: 1; }
.event-date-block span { font-weight: 800; text-transform: uppercase; }
.event-meta { margin: 0 0 8px; color: var(--blue-dark); font-weight: 850; }
.event-registration-window { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 18px 0; }
.event-registration-window div { display: grid; gap: 1px; }
.event-registration-window dt { color: var(--muted); font-size: .75rem; font-weight: 850; text-transform: uppercase; }
.event-registration-window dd { margin: 0; color: var(--blue-dark); font-weight: 800; }
.event-detail-card, .registration-success-card { max-width: 900px; padding: 46px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.event-detail-card h1, .registration-success-card h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
.event-detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.event-detail-facts div { display: grid; gap: 3px; padding: 16px; border-radius: 12px; background: var(--blue-soft); }
.event-detail-facts span { color: var(--muted); font-size: .8rem; font-weight: 850; text-transform: uppercase; }
.event-description { margin: 28px 0; font-size: 1.08rem; line-height: 1.75; }
.event-registration-cta { margin: 24px 0; }
.share-panel,
.calendar-panel {
    margin: 30px 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--blue-soft);
}
.share-panel h2,
.calendar-panel h2 { margin: 3px 0 8px; font-size: clamp(1.45rem, 3vw, 2rem); }
.share-panel .eyebrow,
.calendar-panel .eyebrow { margin-bottom: 0; }
.share-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.share-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: var(--blue-dark);
    font: inherit;
    font-size: .9rem;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}
.share-button:hover,
.share-button:focus-visible { color: var(--white); filter: brightness(1.12); transform: translateY(-1px); }
.share-facebook { background: #1877f2; }
.share-x { background: #111; }
.share-email { background: #38589b; }
.share-copy { color: var(--blue-dark); background: var(--yellow); }
.share-copy:hover,
.share-copy:focus-visible { color: var(--blue-dark); }
.share-status { min-height: 1.2em; margin: 10px 0 0; color: var(--muted); font-size: .82rem; font-weight: 750; }
.calendar-panel > p { margin-bottom: 0; }
.calendar-panel .button-row { margin-top: 18px; }
.fundraiser-giving .share-panel { padding: 20px; background: var(--cream); }
.event-pricing { margin: 34px 0; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); }
.event-pricing h2 { margin-bottom: 18px; font-size: 2rem; }
.event-pricing-table-wrap { overflow-x: auto; }
.event-pricing-table { width: 100%; border-collapse: collapse; background: var(--white); }
.event-pricing-table th, .event-pricing-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; }
.event-pricing-table thead th { color: var(--white); background: var(--blue-dark); }
.event-pricing-table tbody th { color: var(--blue-dark); }
.day-of-price-fields[hidden] { display: none; }
.field-optional { color: var(--muted); font-size: .82rem; font-weight: 650; }
.event-map { margin: 34px 0; }
.event-map-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.event-map-heading h2 { margin-bottom: 7px; font-size: 2rem; }
.event-map-heading p { margin-bottom: 0; }
.event-map iframe { width: 100%; height: 420px; display: block; border: 1px solid var(--line); border-radius: 16px; }

.event-registration-wrap { max-width: 980px; }
.event-registration-form { display: grid; gap: 24px; }
.event-registration-form > fieldset, .attendee-card { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.event-registration-form legend { padding: 0 8px; color: var(--blue-dark); font-size: 1.2rem; font-weight: 900; }
.attendee-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 12px; }
.attendee-section-heading h2 { margin: 0; }
.attendee-list { display: grid; gap: 18px; }
.add-attendee-action { display: flex; justify-content: flex-start; margin-top: -6px; }
.attendee-card { margin: 0; }
.attendee-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.attendee-card-heading legend { padding: 0; font-size: 1.45rem; }
.contact-phone-field { grid-column: 1 / -1; grid-template-columns: minmax(260px, .7fr) minmax(280px, 1.3fr); align-items: end; column-gap: 20px; }
.contact-phone-field > label, .contact-phone-field > input, .contact-phone-field > small { grid-column: 1; }
.contact-attendee-warning { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; color: #b42323; font-size: .9rem; font-weight: 800; line-height: 1.45; }
.volunteer-discount-notice { display: flex; align-items: center; gap: 12px; margin: 18px 0; padding: 14px 18px; border: 1px solid #d6b521; border-radius: 12px; color: var(--blue-dark); background: #fff8d7; }
.volunteer-discount-notice strong { flex: 0 0 auto; }
.volunteer-discount-notice span { color: var(--muted); }
.setting-percent-field { max-width: 560px; }
.percent-input { width: 170px; display: grid; grid-template-columns: 1fr auto; align-items: center; overflow: hidden; border: 1px solid #aebbd5; border-radius: 10px; background: var(--white); }
.percent-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,83,199,.12); }
.percent-input input { width: 100%; border: 0; border-radius: 0; box-shadow: none !important; }
.percent-input span { padding: 0 16px; color: var(--blue-dark); font-weight: 900; }
.report-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.report-card { display: flex; align-items: flex-start; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 8px 24px rgba(18,42,89,.06); }
.report-card h2 { margin-bottom: 9px; color: var(--blue-dark); font-size: 1.35rem; }
.report-card p { flex: 1; color: var(--muted); }
.report-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.report-filters .field { min-width: 180px; flex: 1 1 190px; margin: 0; }
.report-filters .button { flex: 0 0 auto; }
.report-filters > a { padding: 12px 4px; font-weight: 800; }
.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 20px 0; }
.report-summary { display: flex; flex-wrap: wrap; gap: 12px; }
.report-summary > div { min-width: 150px; padding: 14px 17px; border-radius: 12px; color: var(--blue-dark); background: var(--blue-soft); }
.report-summary strong, .report-summary span { display: block; }
.report-summary strong { font-size: 1.35rem; }
.report-summary span { margin-top: 2px; color: var(--muted); font-size: .8rem; font-weight: 750; }
.report-downloads { display: flex; gap: 10px; flex: 0 0 auto; }
.report-table-wrap { max-height: 68vh; }
.report-table { min-width: 900px; font-size: .82rem; }
.report-table thead { position: sticky; top: 0; z-index: 1; }
.report-table td { max-width: 260px; white-space: normal; overflow-wrap: anywhere; }
.report-screen-hidden { display: none; }
.attendee-report-table-wrap { position: relative; scrollbar-gutter: stable; }
.attendee-report-table { width: max-content; min-width: 1320px; }
.attendee-report-table th,
.attendee-report-table td { min-width: 120px; max-width: none; white-space: nowrap; overflow-wrap: normal; }
.attendee-report-table th:first-child,
.attendee-report-table td:first-child { min-width: 160px; }
.attendee-report-table th:nth-child(6),
.attendee-report-table td:nth-child(6) { min-width: 190px; }
.attendee-report-table th:nth-child(7),
.attendee-report-table td:nth-child(7) { min-width: 190px; }
.attendee-report-table th:nth-child(11),
.attendee-report-table td:nth-child(11) { min-width: 170px; }
.attendee-report-table th:nth-child(12),
.attendee-report-table td:nth-child(12) { min-width: 220px; }
.attendee-report-table th:nth-child(13),
.attendee-report-table td:nth-child(13) { min-width: 150px; }
.report-generated { margin-top: 12px; color: var(--muted); font-size: .8rem; text-align: right; }
.attendee-name-row { margin-bottom: 4px; }
.attendee-option-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.event-registration-form .attendee-option-field > legend { margin-bottom: 10px; padding: 0; color: var(--ink); font-size: 1rem; font-weight: 800; }
.attendee-option-field input[type="radio"] { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; border: 0; opacity: 0; pointer-events: none; }
.registration-type-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.registration-type-option, .shirt-size-option { cursor: pointer; }
.registration-type-option > span { display: grid; gap: 2px; padding: 14px 16px; border: 2px solid #c9d4ea; border-radius: 13px; color: var(--ink); background: #fff; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease; }
.registration-type-option > span::before { content: ''; width: 17px; height: 17px; grid-row: 1 / 3; align-self: center; margin-right: 10px; border: 2px solid #8496bd; border-radius: 50%; box-shadow: inset 0 0 0 4px #fff; }
.registration-type-option > span { grid-template-columns: auto 1fr; }
.registration-type-option strong, .registration-type-option small { grid-column: 2; }
.registration-type-option small { color: var(--muted); font-size: .82rem; }
.registration-type-option input:checked + span { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(40,83,199,.1); }
.registration-type-option input:checked + span::before { border-color: var(--blue); background: var(--blue); }
.registration-type-option input:focus-visible + span, .shirt-size-option input:focus-visible + span { outline: 3px solid rgba(40,83,199,.25); outline-offset: 2px; }
.registration-type-option:hover > span, .shirt-size-option:hover > span { border-color: var(--blue); transform: translateY(-1px); }
.shirt-size-field { margin-top: 8px; }
.shirt-size-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.shirt-size-option > span { min-height: 44px; display: grid; place-items: center; padding: 8px 10px; border: 2px solid #c9d4ea; border-radius: 10px; color: var(--blue-dark); background: #fff; font-size: .86rem; font-weight: 800; text-align: center; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.shirt-size-option input:checked + span { border-color: var(--blue); color: #fff; background: var(--blue); }
.event-registration-form.validation-attempted .attendee-option-field:has(input:invalid) { padding: 10px; border: 2px solid #b72d2d; border-radius: 13px; background: #fff7f7; }
.remove-attendee { border: 0; color: #8a2525; background: transparent; font-weight: 800; cursor: pointer; }
.remove-attendee:hover, .remove-attendee:focus-visible { text-decoration: underline; }
.event-donation-fieldset .field { max-width: 330px; }
.fundraiser-contribution-fieldset .fundraiser-select-field { max-width: 100%; }
.donation-destination-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.donation-destination-options label { cursor: pointer; }
.donation-destination-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.donation-destination-options label > span { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border: 2px solid #c9d4ea; border-radius: 13px; background: var(--white); }
.donation-destination-options label > span::before { content: ''; width: 17px; height: 17px; float: left; margin: 2px 9px 0 0; border: 2px solid #8496bd; border-radius: 50%; box-shadow: inset 0 0 0 4px #fff; }
.donation-destination-options label:hover > span { border-color: var(--blue); background: #f8faff; }
.donation-destination-options input:focus-visible + span { outline: 3px solid rgba(40,83,199,.18); }
.donation-destination-options input:checked + span { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 6px 18px rgba(40,83,199,.1); }
.donation-destination-options input:checked + span::before { border-color: var(--blue); background: var(--blue); }
.donation-destination-options small { color: var(--muted); }
.donation-destination-details { margin-top: 18px; }
.fundraiser-carousel-shell { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 8px; margin-top: 18px; }
.fundraiser-carousel {
    display: flex;
    gap: 12px;
    padding: 4px 2px 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
}
.fundraiser-carousel-arrow { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #b8c6df; border-radius: 50%; color: var(--blue-dark); background: var(--white); font-size: 1.7rem; cursor: pointer; }
.fundraiser-carousel-arrow:hover,
.fundraiser-carousel-arrow:focus-visible { border-color: var(--blue); background: var(--blue-soft); }
.fundraiser-picker-card { width: 146px; flex: 0 0 146px; padding: 8px; scroll-snap-align: start; overflow: hidden; border: 2px solid #cbd7ed; border-radius: 14px; color: var(--ink); background: var(--white); text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.fundraiser-picker-card:hover,
.fundraiser-picker-card:focus-visible { border-color: var(--blue); transform: translateY(-2px); }
.fundraiser-picker-card.selected { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(40, 83, 199, .12); }
.fundraiser-picker-card img { display: block; width: 100%; height: 92px; border-radius: 9px; object-fit: cover; object-position: center 25%; }
.fundraiser-picker-card span { display: grid; gap: 2px; padding: 8px 3px 2px; }
.fundraiser-picker-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.fundraiser-picker-card small { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .72rem; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.fundraiser-selection-summary { margin: 10px 0 0; color: var(--blue-dark); font-weight: 800; }
.fundraiser-contribution-modal { width: min(620px, calc(100% - 28px)); padding: 0; overflow: hidden; border: 0; border-radius: 20px; color: var(--ink); background: var(--white); box-shadow: 0 28px 80px rgba(8, 25, 65, .35); }
.fundraiser-contribution-modal::backdrop { background: rgba(7, 20, 52, .68); backdrop-filter: blur(3px); }
.fundraiser-contribution-modal[open] { display: grid; gap: 20px; padding: 26px; }
.fundraiser-contribution-modal .field { max-width: none; margin: 0; }
.fundraiser-modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.fundraiser-modal-person { display: flex; align-items: center; gap: 16px; min-width: 0; }
.fundraiser-modal-person img { width: 82px; height: 82px; flex: 0 0 auto; border-radius: 14px; object-fit: cover; object-position: center 25%; }
.fundraiser-modal-person h2 { margin-bottom: 3px; font-size: 1.7rem; }
.fundraiser-modal-person p { margin-bottom: 0; }
.fundraiser-modal-close { width: 38px; height: 38px; flex: 0 0 auto; border: 0; border-radius: 50%; color: var(--blue-dark); background: var(--blue-soft); font-size: 1.5rem; cursor: pointer; }
.fundraiser-modal-actions { justify-content: flex-end; margin-top: 2px; }
.registration-total { justify-self: end; width: min(420px, 100%); padding: 22px; border-radius: 15px; color: var(--white); background: var(--blue-dark); }
.registration-total > div { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; }
.registration-grand-total { margin-top: 8px; padding-top: 15px !important; border-top: 1px solid rgba(255,255,255,.3); font-size: 1.35rem; }
.registration-grand-total strong { color: var(--yellow); }
.event-register-submit { justify-self: end; min-width: 280px; }
.registration-access-choice {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
    padding: 26px;
    border: 1px solid #cbd7ed;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(13, 38, 83, .07);
}
.registration-access-choice h2,
.registration-access-choice p { margin-bottom: 0; }
.registration-access-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.registration-access-actions .button { min-width: 170px; }
#guest-registration { scroll-margin-top: 130px; }

.account-page .auth-card { width: min(980px, 100%); }
.account-registrations { margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--line); }
.account-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.account-section-heading h2 { margin: 0; font-size: 2rem; }
.account-section-heading a { color: var(--blue-dark); font-weight: 800; }
.account-registration-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.account-registration-card h3 { margin: 8px 0; }
.account-registration-card p { margin: 3px 0; color: var(--muted); }
.registration-status { padding: 5px 9px; border-radius: 999px; font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.registration-status.confirmed { color: #175d31; background: #e3f7e9; }
.registration-status.pending { color: #6b4d0a; background: #fff0b4; }
.registration-status.failed { color: #8a2525; background: #fde7e7; }

.receipt-page { padding: 35px; background: #edf1f8; }
.receipt { width: min(850px, 100%); margin: 0 auto; padding: 45px; background: var(--white); box-shadow: var(--shadow); }
.receipt > img { width: 210px; margin-bottom: 30px; }
.receipt h1 { font-size: 2.7rem; }
.receipt-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 35px; }
.receipt-details { display: grid; gap: 8px; margin: 25px 0; }
.receipt-details div { display: grid; grid-template-columns: 160px 1fr; gap: 18px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.receipt-details dt { color: var(--muted); font-weight: 800; }
.receipt-details dd { margin: 0; overflow-wrap: anywhere; }
.receipt-table { width: 100%; border-collapse: collapse; }
.receipt-table th, .receipt-table td { padding: 11px; border-bottom: 1px solid var(--line); text-align: left; }
.receipt-totals { width: min(380px, 100%); margin: 28px 0 28px auto; }
.receipt-totals div { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; }
.receipt-totals div:last-child { margin-top: 7px; padding-top: 12px; border-top: 2px solid var(--ink); font-size: 1.15rem; }
.receipt-note { padding: 16px; border-radius: 10px; background: var(--cream); font-size: .9rem; }

.fundraising-hero { padding: 90px 0; color: var(--white); background: linear-gradient(120deg, rgba(18,47,126,.96), rgba(44,85,196,.82)), url('/images/buddy-walk-photo-1.jpg') center / cover; }
.fundraising-hero h1 { margin-bottom: 10px; }
.fundraising-hero > .container > p:not(.eyebrow) { max-width: 620px; font-size: 1.2rem; }
.fundraiser-hero-action { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 24px; }
.fundraiser-hero-action span { color: #f3f6ff; font-weight: 700; }
.total-raised { display: inline-grid; margin-top: 24px; padding: 18px 26px; border: 1px solid rgba(255,255,255,.35); border-radius: 14px; background: rgba(10,28,79,.55); }
.total-raised span { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.total-raised strong { color: var(--yellow); font-size: 2.7rem; }
.leaderboard-section { padding: 58px 0; background: var(--cream); }
.leaderboard { display: grid; gap: 10px; max-width: 800px; margin: 0 auto; padding: 0; list-style: none; }
.leaderboard li { display: grid; grid-template-columns: 38px 52px 1fr auto; gap: 14px; align-items: center; padding: 12px 18px; border-radius: 12px; background: var(--white); box-shadow: 0 6px 20px rgba(18,38,88,.08); }
.leaderboard img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.leaderboard a { color: var(--blue-dark); font-weight: 850; text-decoration: none; }
.leader-rank { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--blue-dark); background: var(--yellow); font-weight: 900; }
.campaign-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin: 44px 0 22px; }
.campaign-heading:first-child { margin-top: 0; }
.campaign-ended { padding: 8px 12px; border-radius: 999px; color: #6b4d0a; background: #fff0b4; font-weight: 800; white-space: nowrap; }
.fundraiser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fundraiser-card { overflow: hidden; border-radius: 15px; background: var(--white); box-shadow: var(--shadow); }
.fundraiser-card > a img { width: 100%; height: 260px; object-fit: cover; object-position: center 25%; }
.fundraiser-card-body { padding: 22px; }
.fundraiser-card h3 a { color: var(--ink); text-decoration: none; }
.progress-track { overflow: hidden; height: 12px; border-radius: 999px; background: #e2e7f2; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #5e8cff); }
.progress-track.large { height: 16px; }
.fundraiser-totals { color: var(--muted); }
.fundraiser-totals strong { color: var(--blue-dark); }
.empty-state { padding: 50px; border: 2px dashed #c7d2ec; border-radius: 16px; text-align: center; background: var(--white); }
.fundraiser-detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(340px, .6fr); gap: 54px; align-items: start; }
.fundraiser-photo { display: block; width: 100%; height: clamp(320px, 58vw, 600px); margin: 20px 0 30px; border-radius: 18px; background: var(--blue-soft); object-fit: contain; }
.back-link { color: var(--blue-dark); font-weight: 800; }
.story-copy { font-size: 1.08rem; line-height: 1.75; }
.fundraiser-giving { position: sticky; top: 110px; }
.detail-total { display: grid; margin: 18px 0 26px; }
.detail-total strong { color: var(--blue-dark); font-size: 2.3rem; }
.detail-total span { color: var(--muted); }
.campaign-ended-box { padding: 20px; border-radius: 12px; background: var(--cream); }
.message-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.message-grid blockquote { margin: 0; padding: 22px; border-radius: 14px; background: var(--white); box-shadow: 0 5px 18px rgba(20,40,90,.07); }
.message-grid cite { color: var(--blue-dark); font-style: normal; font-weight: 800; }
.fundraiser-create-wrap { max-width: 900px; }
.fundraiser-create-form { display: grid; gap: 22px; }
.fundraiser-create-form fieldset { padding: 26px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.fundraiser-create-form legend { padding: 0 8px; color: var(--blue-dark); font-size: 1.15rem; font-weight: 900; }
.fundraiser-create-form legend span { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 6px; border-radius: 50%; color: var(--blue-dark); background: var(--yellow); }
.goal-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 12px 0 20px; }
.goal-options input { position: absolute; opacity: 0; }
.goal-options span { display: block; padding: 13px 8px; border: 2px solid var(--line); border-radius: 10px; text-align: center; font-weight: 850; cursor: pointer; }
.goal-options input:checked + span { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-soft); }
.consent-check { align-items: flex-start; }
.fundraiser-publish { justify-self: start; font-size: 1.05rem; }

@media (max-width: 900px) {
    .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .fundraiser-grid, .message-grid { grid-template-columns: 1fr 1fr; }
    .fundraiser-detail { grid-template-columns: 1fr; }
    .fundraiser-giving { position: static; }
}

.site-footer {
    padding: 64px 0 28px;
    color: #e9efff;
    background: #101b3d;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr .8fr;
    gap: 60px;
}

.footer-logo { width: 220px; margin-bottom: 18px; }
.footer-heading { color: var(--white); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #d6dff6; text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 42px;
    padding: 16px 20px;
    border-radius: 12px;
    color: var(--white);
    background: #101b3d;
    font-size: .88rem;
}

.footer-credit {
    display: block;
    flex: 0 0 auto;
    padding: 5px;
    border-radius: 8px;
}

.footer-credit img { display: block; width: 150px; height: auto; }
.footer-credit:hover,
.footer-credit:focus-visible { background: rgba(255, 255, 255, .1); }

@media (max-width: 1050px) {
    .menu-button { display: grid; place-items: center; }

    .nav-links {
        position: absolute;
        top: 84px;
        left: 0;
        right: 0;
        display: none;
        padding: 18px 20px 24px;
        border-bottom: 1px solid var(--line);
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .nav-links.open { display: grid; }
    .nav-links a { width: 100%; padding: 12px 16px; text-align: left; }
    .mobile-donate-link {
        display: block;
        margin-top: 4px;
        color: var(--ink) !important;
        background: var(--yellow) !important;
        text-align: center !important;
    }

    .hero { min-height: 570px; }
    .hero::before { background: linear-gradient(90deg, rgba(17, 38, 100, .94), rgba(23, 55, 142, .58)), url("/images/buddy-walk-photo-1.jpg") 62% center / cover; }

    .intro-grid, .split, .donation-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr 1fr; }
    .impact-grid { grid-template-columns: 1fr; }
    .impact-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
    .event-card { grid-template-columns: 1fr; }
    .event-card img { height: 260px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .attendee-card-grid { grid-template-columns: 1fr; }
    .community-admin-grid,
    .community-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
    .container { width: min(100% - 28px, 1160px); }
    .brand img { width: 175px; }
    .hero-content { padding: 70px 0; }
    h1 { font-size: 3rem; }
    .section { padding: 68px 0; }
    .card-grid, .field-grid, .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 14px; }
    .photo-frame img { min-height: 330px; }
    .cta { padding: 36px 28px; }
    .amounts { grid-template-columns: 1fr 1fr; }
    .auth-card { padding: 32px 24px; }
    .admin-title, .campaign-heading { align-items: flex-start; flex-direction: column; }
    .admin-subnav-inner { display: block; padding-block: 9px; }
    .admin-subnav-inner > strong { display: block; margin-bottom: 2px; }
    .admin-stat-grid, .fundraiser-grid, .message-grid { grid-template-columns: 1fr; }
    .goal-options { grid-template-columns: 1fr 1fr; }
    .leaderboard li { grid-template-columns: 32px 44px 1fr; }
    .leaderboard li strong { grid-column: 3; }
    .donation-banner a { gap: 2px; flex-direction: column; padding-block: 6px; line-height: 1.25; }
    .fundraiser-hero-action { align-items: flex-start; flex-direction: column; }
    .event-public-card { grid-template-columns: 1fr; padding: 22px; }
    .event-date-block { width: 105px; }
    .event-detail-card, .registration-success-card { padding: 28px 22px; }
    .event-detail-facts, .event-price-grid { grid-template-columns: 1fr; }
    .event-map-heading { align-items: flex-start; flex-direction: column; }
    .event-map iframe { height: 330px; }
    .shirt-size-row { grid-template-columns: 1fr; }
    .shirt-size-remove { justify-self: start; }
    .community-album-grid,
    .community-admin-grid,
    .community-photo-grid { grid-template-columns: 1fr; }
    .community-dropzone { min-height: 200px; padding: 24px 18px; }
    .community-lightbox { padding: 52px 12px 18px; }
    .community-lightbox-nav { top: auto; bottom: 12px; }
    .community-lightbox figure { padding-bottom: 56px; }
    .attendee-section-heading, .account-section-heading, .account-registration-card { align-items: flex-start; flex-direction: column; }
    .event-registration-form > fieldset, .attendee-card { padding: 20px 16px; }
    .contact-phone-field { grid-template-columns: 1fr; }
    .contact-attendee-warning { grid-column: 1; grid-row: auto; }
    .volunteer-discount-notice { align-items: flex-start; flex-direction: column; gap: 3px; }
    .report-card-grid { grid-template-columns: 1fr; }
    .report-toolbar { align-items: stretch; flex-direction: column; }
    .report-downloads { width: 100%; }
    .report-downloads .button { flex: 1; }
    .registration-type-options { grid-template-columns: 1fr; }
    .shirt-size-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .event-register-submit { width: 100%; min-width: 0; }
    .registration-access-actions { align-items: stretch; flex-direction: column; }
    .registration-access-actions .button { width: 100%; }
    .fundraiser-carousel-shell { grid-template-columns: 1fr; }
    .fundraiser-carousel-arrow { display: none; }
    .fundraiser-picker-card { width: 132px; flex-basis: 132px; }
    .fundraiser-modal-heading,
    .fundraiser-modal-person { align-items: flex-start; }
    .fundraiser-modal-person img { width: 64px; height: 64px; }
    .fundraiser-modal-person h2 { font-size: 1.35rem; }
    .fundraiser-modal-actions { align-items: stretch; flex-direction: column-reverse; }
    .fundraiser-modal-actions .button { width: 100%; }
    .receipt-page { padding: 0; }
    .receipt { padding: 25px 18px; box-shadow: none; }
    .receipt-actions { align-items: flex-start; flex-direction: column; }
    .receipt-details div { grid-template-columns: 1fr; gap: 2px; }
    .receipt-table { font-size: .82rem; }
    .receipt-table th, .receipt-table td { padding: 7px 4px; }
}

/* Sponsors */
.sponsor-hero { padding: 92px 0; color: var(--white); background: radial-gradient(circle at 85% 20%, rgba(248,211,45,.3), transparent 30%), linear-gradient(135deg, #071a47, #173f9d); }
.sponsor-hero-inner { max-width: 820px; text-align: center; }
.sponsor-hero .eyebrow { color: var(--yellow); }
.sponsor-hero h1 { margin-bottom: 18px; }
.sponsor-hero .lead { margin: 0 auto 28px; color: rgba(255,255,255,.88); }
.sponsor-directory { background: #f6f8fd; }
.sponsor-tier-group + .sponsor-tier-group { margin-top: 70px; }
.sponsor-tier-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 25px; }
.sponsor-tier-heading h2, .sponsor-tier-heading p { margin: 0; }
.sponsor-tier-gem { width: 28px; height: 28px; flex: 0 0 auto; transform: rotate(45deg); border-radius: 5px; background: #bc7a28; box-shadow: inset 0 0 0 3px rgba(255,255,255,.45), 0 3px 10px rgba(10,28,65,.18); }
.sponsor-tier-sapphire .sponsor-tier-gem, .tier-sapphire .sponsor-tier-gem { background: linear-gradient(135deg, #68c8ff, #1052a3); }
.sponsor-tier-gold .sponsor-tier-gem, .tier-gold .sponsor-tier-gem { background: linear-gradient(135deg, #ffe67a, #d49500); }
.sponsor-tier-silver .sponsor-tier-gem, .tier-silver .sponsor-tier-gem { background: linear-gradient(135deg, #f3f5f8, #8b96a8); }
.sponsor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sponsor-card { display: grid; grid-template-columns: 180px 1fr; overflow: hidden; min-height: 230px; border: 1px solid #dbe3f3; border-radius: 22px; background: var(--white); box-shadow: 0 14px 36px rgba(12,38,87,.08); }
.sponsor-logo-wrap { display: grid; place-items: center; padding: 25px; background: #f8faff; }
.sponsor-logo-wrap img { width: 100%; max-height: 145px; object-fit: contain; }
.sponsor-card-copy { padding: 28px; }
.sponsor-card-copy h3 { margin: 0 0 10px; font-size: 1.45rem; }
.sponsor-card-copy p { margin: 0 0 18px; color: #526079; }
.sponsor-contact { display: flex; flex-wrap: wrap; gap: 9px 16px; }
.sponsor-contact a { color: var(--blue); font-weight: 700; text-decoration: none; }
.sponsor-tiers-section { scroll-margin-top: 120px; }
.sponsor-tier-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.sponsor-tier-card { display: flex; flex-direction: column; padding: 28px 24px; border: 2px solid #dbe3f3; border-radius: 22px; background: var(--white); box-shadow: 0 12px 30px rgba(13,38,83,.07); }
.sponsor-tier-card-head { padding-bottom: 20px; border-bottom: 1px solid #dbe3f3; text-align: center; }
.sponsor-tier-card-head .sponsor-tier-gem { display: block; margin: 2px auto 18px; }
.sponsor-tier-card h3 { margin: 0; font-size: 1.55rem; }
.sponsor-tier-card-head p { margin: 6px 0 0; }
.sponsor-tier-card ul { flex: 1; margin: 22px 0; padding-left: 20px; }
.sponsor-tier-card li { margin-bottom: 12px; color: #45526a; }
.sponsor-tier-card.tier-sapphire { border-color: #4ba6e8; }
.sponsor-tier-card.tier-gold { border-color: #e5b928; }
.sponsor-tier-card.tier-silver { border-color: #aeb8c8; }
.sponsor-tier-card.tier-bronze { border-color: #bd8247; }
.sponsor-tier-cta { width: 100%; text-align: center; }
.sponsor-tier-note { margin-top: 25px; color: #5d687d; font-size: .92rem; }
.hidden-gem-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; margin-top: 38px; padding: 27px 30px; overflow: hidden; border: 1px solid #b9c6df; border-radius: 22px; color: #fff; background: radial-gradient(circle at 8% 30%, rgba(104,200,255,.25), transparent 28%), linear-gradient(135deg, #0b1d48, #254c92); box-shadow: 0 15px 36px rgba(10,28,65,.16); }
.hidden-gem-card .eyebrow { margin: 0 0 3px; color: #91d8ff; }
.hidden-gem-card h3 { margin: 0 0 6px; color: #fff; font-size: 1.5rem; }
.hidden-gem-card p { margin-bottom: 0; color: rgba(255,255,255,.82); }
.hidden-gem-icon { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 18px; color: #92dcff; background: rgba(255,255,255,.1); font-size: 1.8rem; }
.hidden-gem-donation-note { display: grid; gap: 4px; margin-bottom: 22px; padding: 18px; border: 1px solid #a8c9ec; border-radius: 14px; color: #183768; background: #eef7ff; }
.hidden-gem-donation-note span { color: #4e6382; }
.sponsor-empty { max-width: 750px; margin: 0 auto; text-align: center; }
.sponsor-application-section { background: linear-gradient(180deg, #eef3ff, #fff); }
.sponsor-application-layout { max-width: 980px; }
.sponsor-application-intro { max-width: 760px; margin: 0 auto 35px; text-align: center; }
.sponsor-process { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 25px; }
.sponsor-process span { padding: 9px 15px; border-radius: 99px; background: #fff; color: #31405c; box-shadow: 0 5px 15px rgba(16,48,105,.08); }
.sponsor-process strong { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 5px; border-radius: 50%; color: #fff; background: var(--blue); }
.sponsor-application-form { padding: 38px; }
.sponsor-application-form fieldset { margin: 0 0 25px; padding: 0; border: 0; }
.sponsor-application-form legend { margin-bottom: 13px; font-weight: 800; }
.sponsor-tier-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sponsor-tier-option { cursor: pointer; }
.sponsor-tier-option input { position: absolute; opacity: 0; pointer-events: none; }
.sponsor-tier-option span { display: flex; flex-direction: column; gap: 4px; padding: 17px; border: 2px solid #d8e0ee; border-radius: 14px; background: #fff; text-align: center; transition: .15s ease; }
.sponsor-tier-option input:checked + span { border-color: var(--blue); background: #eef4ff; box-shadow: 0 0 0 3px rgba(34,87,202,.12); }
.sponsor-tier-option input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sponsor-tier-option small { color: #5d687d; }
.sponsor-logo-drop { display: grid; min-height: 150px; place-content: center; gap: 5px; padding: 25px; border: 2px dashed #9badd0; border-radius: 16px; color: #263a62; background: #f7f9fe; text-align: center; cursor: pointer; }
.sponsor-logo-drop.dragging { border-color: var(--blue); background: #eaf1ff; }
.sponsor-logo-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sponsor-logo-preview { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px; border-radius: 12px; background: #f5f7fb; }
.sponsor-logo-preview[hidden] { display: none; }
.sponsor-logo-preview img { width: 85px; height: 65px; object-fit: contain; background: #fff; }
.sponsor-checkout-button { width: 100%; margin-top: 12px; }
.checkout-assurance { margin: 15px auto 0; max-width: 680px; color: #667086; font-size: .88rem; text-align: center; }
.sponsor-success-summary { display: flex; justify-content: space-between; max-width: 450px; margin: 25px auto; padding: 18px 20px; border-radius: 14px; background: #f1f5ff; }
.admin-sponsor-name { display: flex; align-items: center; gap: 12px; }
.admin-sponsor-name img { width: 58px; height: 46px; object-fit: contain; border: 1px solid #dce3ef; border-radius: 8px; }
.admin-sponsor-name small { display: block; margin-top: 3px; color: #69748a; }
.sponsor-tier-pill { display: inline-block; padding: 5px 10px; border-radius: 99px; font-weight: 800; background: #e9edf5; }
.sponsor-tier-pill.tier-sapphire { color: #07599c; background: #d9f1ff; }
.sponsor-tier-pill.tier-gold { color: #7d5a00; background: #fff0ad; }
.sponsor-tier-pill.tier-silver { color: #4b5668; background: #e8ebef; }
.sponsor-tier-pill.tier-bronze { color: #794415; background: #f1d7ba; }
.admin-sponsor-review-logo { display: grid; min-height: 180px; place-items: center; margin-bottom: 25px; padding: 25px; border-radius: 16px; background: #f5f7fb; }
.admin-sponsor-review-logo img { max-width: 340px; max-height: 160px; object-fit: contain; }

@media (max-width: 1050px) {
    .sponsor-tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sponsor-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .sponsor-tier-picker { grid-template-columns: repeat(2, 1fr); }
    .sponsor-application-form { padding: 28px 20px; }
    .sponsor-card { grid-template-columns: 130px 1fr; }
    .hidden-gem-card { grid-template-columns: auto 1fr; }
    .hidden-gem-card .button { grid-column: 1 / -1; width: 100%; text-align: center; }
}

@media (max-width: 580px) {
    .sponsor-tier-grid, .sponsor-tier-picker { grid-template-columns: 1fr; }
    .sponsor-card { grid-template-columns: 1fr; }
    .sponsor-logo-wrap { min-height: 170px; }
    .sponsor-process { align-items: stretch; flex-direction: column; }
}

@media print {
    .receipt-page { padding: 0; background: var(--white); }
    .receipt { width: 100%; padding: 0; box-shadow: none; }
    .receipt-actions { display: none; }
}

.character-counter {
    display: block;
    margin-top: 6px;
    color: #98a2b3;
    font-size: 0.78rem;
    line-height: 1;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
