:root {
    --navy: #032b57;
    --navy2: #001f43;
    --blue: #0b5bc1;
    --gold: #ffb318;
    --orange: #f49a00;
    --ink: #092545;
    --soft: #eef5fb;
    --white: #fff;
    --line: #d7e1eb;
    --danger: #a62b2b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.45;
}

a {
    color: var(--blue);
}

/* Top bar */
.topbar {
    background: var(--navy2);
    color: #fff;
    padding: 0.55rem 4vw;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

/* Header and navigation */
.site-header {
    min-height: 106px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 4vw;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 12px #00000015;
}

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

.brand img {
    display: block;
    width: min(330px, 26vw);
    height: auto;
    max-height: 92px;
    object-fit: contain;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 1.05rem;
}

.site-header nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 800;
    font-size: 0.83rem;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    padding: 0.55rem 0;
}

.site-header nav a.active {
    border-color: var(--gold);
}

.site-header .nav-cta,
.btn {
    background: var(--gold) !important;
    color: var(--ink) !important;
    padding: 0.82rem 1.15rem;
    border-radius: 9px;
    display: inline-block;
    text-decoration: none;
    font-weight: 900;
    border: 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.site-header .nav-cta {
    padding: 0.9rem 1.2rem !important;
}

.btn.small {
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
}

.menu-btn {
    display: none;
    background: none;
    border: 0;
    font-size: 1.8rem;
}

/* Homepage hero */
.hero {
    min-height: 500px;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.97) 0%,
            rgba(255, 255, 255, 0.76) 34%,
            rgba(1, 25, 55, 0.08) 68%
        ),
        url('/assets/images/runway-hero-clean.jpg') center 58% / cover;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 2.8rem 6vw 4.8rem;
    overflow: hidden;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.7rem, 4.7vw, 4.9rem);
    line-height: 0.94;
    margin: 0;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.hero h1 span {
    font-size: 0.77em;
}

.hero h1 em {
    color: var(--orange);
    font-style: normal;
    font-family: "Trebuchet MS", Arial, sans-serif;
}

.hero p {
    font-size: 1.1rem;
    font-weight: 700;
    max-width: 570px;
}

.hero .actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.hero-cta {
    font-size: 1.25rem;
    text-align: left;
    animation: hero-cta-fly-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-cta small {
    display: block;
    text-transform: none;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

@keyframes hero-cta-fly-in {
    from {
        transform: translateX(100vw);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-art {
    position: relative;
    align-self: stretch;
    min-height: 390px;
    pointer-events: none;
}

.hero-art img {
    position: absolute;
    top: -1.3rem;
    right: -1.5vw;
    width: min(510px, 47vw);
    height: auto;
    opacity: 1;
    object-fit: contain;
    filter: drop-shadow(0 18px 16px rgba(0, 20, 45, 0.32));
    -webkit-mask-image: radial-gradient(ellipse 70% 67% at 53% 43%, #000 58%, rgba(0,0,0,.92) 68%, transparent 94%);
    mask-image: radial-gradient(ellipse 70% 67% at 53% 43%, #000 58%, rgba(0,0,0,.92) 68%, transparent 94%);
    animation: mascot-float 5.5s ease-in-out infinite;
}

@keyframes mascot-float {
    0%, 100% { transform: translateY(0) rotate(-0.4deg); }
    50% { transform: translateY(-10px) rotate(0.4deg); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-art img,
    .hero-cta { animation: none; }
}

/* Statistics */
.stats {
    margin: -48px auto 0;
    position: relative;
    z-index: 3;
    max-width: 1200px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px #0002;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.stat {
    padding: 1.05rem;
    text-align: center;
    border-right: 1px solid #ccd8e4;
}

.stat:last-child {
    border: 0;
}

.stat strong {
    display: block;
    font-size: 2rem;
    color: var(--navy);
}

.stat span {
    display: block;
    font-weight: 900;
}

.stat small {
    display: block;
}

/* Audience panels */
.audiences {
    width: 100%;
    background: var(--navy);
    color: #fff;
}

.audiences-inner {
    width: min(100%, 1720px);
    margin: 0 auto;
    padding: 2.8rem clamp(1.25rem, 4vw, 4rem);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.audience {
    min-width: 0;
    padding: 0 2rem 1.2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.28);
    text-align: left;
}

.audience:first-child {
    padding-left: 0;
}

.audience:last-child {
    padding-right: 0;
    border-right: 0;
}

.audience h2 {
    margin: 0 0 1rem;
    color: #fff;
    text-transform: uppercase;
    font-size: clamp(1.35rem, 2vw, 2rem);
}

.audience-photo-link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-decoration: none;
    outline: none;
}

.audience-photo-link img {
    display: block;
    width: 100%;
    height: 185px;
    margin: 0;
    border: 0;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: none;
    transition:
        filter 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.audience-photo-link:hover img {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.audience-photo-link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.audience p {
    min-height: 76px;
    margin: 1.35rem 0 1.4rem;
    color: #fff;
    line-height: 1.55;
}

.audience .audience-link {
    display: block;
    width: max-content;
    margin: 0 auto;
    padding: 0.48rem 1.5rem;
    border: 2px solid var(--gold);
    border-radius: 999px;
    color: #fff;
    background: transparent;
    text-decoration: none;
    font-weight: 800;
}

.audience .audience-link:hover,
.audience .audience-link:focus-visible {
    color: var(--navy);
    background: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
    .audience-photo-link img {
        transition: none;
    }

    .audience-photo-link:hover img {
        transform: none;
    }
}

@media (max-width: 1100px) {
    .audiences-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 2rem;
    }

    .audience:nth-child(2) {
        padding-right: 0;
        border-right: 0;
    }

    .audience:nth-child(3) {
        padding-left: 0;
    }
}

@media (max-width: 620px) {
    .audiences-inner {
        grid-template-columns: 1fr;
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .audience,
    .audience:first-child,
    .audience:nth-child(2),
    .audience:nth-child(3),
    .audience:last-child {
        padding: 0 0 1.8rem;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    }

    .audience:last-child {
        border-bottom: 0;
    }

    .audience-photo-link img {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .audience p {
        min-height: 0;
    }
}

/* Homepage content panels */
.home-panels {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr;
    gap: 1rem;
    padding: 1.2rem 4vw 2.5rem;
}

.home-panels article {
    background: linear-gradient(135deg, #fff, #f1f6fb);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.2rem;
    box-shadow: 0 4px 14px #0000000d;
}

.home-panels h2 {
    color: var(--blue);
    text-transform: uppercase;
    margin: 0.1rem 0 0.5rem;
}

/* Interior page hero */
.page-hero {
    padding: 3.8rem 6vw;
    background: linear-gradient(120deg, var(--navy), var(--blue));
    color: #fff;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin: 0;
}

.page-hero p {
    font-size: 1.15rem;
    max-width: 800px;
}

/* General page content */
.content {
    max-width: 1100px;
    margin: auto;
    padding: 3rem 1.2rem;
}

/* Forms */
.form {
    max-width: 760px;
    margin: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.6rem;
    box-shadow: 0 6px 20px #0001;
}

.form label {
    display: block;
    font-weight: 800;
    margin-top: 1rem;
}

.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 0.86rem;
    border: 1px solid #aebdca;
    border-radius: 8px;
    font: inherit;
}

/* One-character pledge last-initial field */
.form input.last-initial {
    width: 3.25rem;
    max-width: 3.25rem;
    text-align: center;
    text-transform: uppercase;
}

.form .check {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.form .check input {
    width: auto;
    margin-top: 0.4rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

.pledge-text {
    background: var(--soft);
    padding: 1rem;
    border-left: 5px solid var(--gold);
}

/* Flash messages */
.flash {
    padding: 1rem 6vw;
    font-weight: 800;
}

.flash.success {
    background: #dcf8e7;
}

.flash.error {
    background: #ffe0e0;
}

/* Pledge wall */
.wall-content {
    max-width: 1200px;
}

.wall-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.wall-tools form {
    display: flex;
    gap: 0.5rem;
}

.wall-tools input {
    padding: 0.72rem;
    border: 1px solid #aebdca;
    border-radius: 8px;
}

.wall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pledge-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px #0000000b;
}

.pledge-card strong {
    font-size: 1.1rem;
}

.pledge-card span {
    color: var(--blue);
    font-weight: 800;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.pagination a {
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    text-decoration: none;
}

.pagination a.current {
    background: var(--navy);
    color: #fff;
}

/* Informational cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.info-card {
    background: var(--soft);
    padding: 1.4rem;
    border-radius: 14px;
    border-top: 5px solid var(--gold);
}

.center {
    text-align: center;
    margin-top: 2rem;
}

/* Team list */
.team-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.team-list article {
    display: flex;
    gap: 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: 900;
    flex: 0 0 56px;
}

/* Admin area */
.admin-shell {
    max-width: 1400px;
    margin: auto;
    padding: 2rem 2vw;
}

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.admin-stats div {
    background: var(--navy);
    color: #fff;
    padding: 1rem;
    border-radius: 12px;
}

.admin-stats strong {
    font-size: 2rem;
    display: block;
    color: var(--gold);
}

.admin-section {
    margin-top: 2rem;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

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

th {
    background: var(--soft);
}

.actions-inline {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

button {
    padding: 0.45rem 0.65rem;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.danger {
    background: var(--danger);
    color: #fff;
}

/* Contact management */
.contact-list {
    display: grid;
    gap: 1rem;
}

.contact-list article {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
}

.contact-list header {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.contact-list time {
    margin-left: auto;
    color: #567;
}

.inline-error {
    background: #ffe0e0;
    padding: 0.7rem;
}

.login-form {
    margin-top: 2rem;
}

/* Footer */
.site-footer {
    background: var(--navy2);
    color: #fff;
    padding: 1.7rem 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-about {
    display: grid;
    gap: 0.25rem;
}

.footer-about strong {
    font-size: 1.05rem;
}

.footer-about span {
    color: #d5e0eb;
    font-size: 0.9rem;
}

.footer-song {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border: 1px solid #ffffff40;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.footer-song:hover,
.footer-song:focus-visible {
    background: #ffffff10;
    border-color: #ffffff80;
    transform: translateY(-1px);
}

.footer-song-icon {
    color: var(--gold);
    font-size: 2rem;
    line-height: 1;
}

.footer-song strong,
.footer-song small {
    display: block;
}

.footer-song small {
    margin-top: 0.15rem;
    color: #d5e0eb;
}

.copyright {
    background: #00162f;
    color: #c8d5e3;
    text-align: center;
    padding: 0.7rem;
    font-size: 0.8rem;
}

.song-page {
    display: grid;
    gap: 1.25rem;
}

.song-feature {
    text-align: center;
}

.song-feature .eyebrow {
    color: var(--gold2);
    font-weight: 900;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.song-player {
    max-width: 760px;
    margin: 1.5rem auto 0;
    padding: 1.2rem;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    text-align: left;
}

.song-player strong,
.song-player span,
.song-player small {
    display: block;
}

.song-player span {
    margin-top: 0.15rem;
    color: #49627a;
}

.song-player audio {
    width: 100%;
    margin: 1rem 0 0.55rem;
}

.song-player small {
    color: #60758a;
}

@media (max-width: 700px) {
    .site-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .footer-song {
        width: 100%;
    }
}


/* Invisible anti-bot honeypot field */
.website-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.turnstile-wrap {
    margin: 1.25rem 0;
}

.pledge-wall-table-wrap {
    margin-top: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow-x: auto;
}

.pledge-wall-table .pledge-number {
    width: 4.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.pledge-wall-table tbody tr:nth-child(even) {
    background: #f8fbfe;
}

.email-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.email-status.sent {
    background: #dcf8e7;
}

.email-status.failed {
    background: #ffe0e0;
}

.email-status.not-attempted {
    background: var(--soft);
}

.email-error-details {
    margin-top: 0.65rem;
}

.email-error-details pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #fff5f5;
    border: 1px solid #efcaca;
    padding: 0.7rem;
    border-radius: 8px;
}

/* Responsive layouts */
@media (max-width: 1100px) {
    .site-header nav {
        gap: 0.65rem;
    }

    .site-header nav a {
        font-size: 0.74rem;
    }
}

@media (max-width: 900px) {
    .site-header {
        min-height: 84px;
    }

    .menu-btn {
        display: block;
    }

    .site-header nav {
        display: none;
        position: absolute;
        top: 84px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        box-shadow: 0 10px 20px #0002;
    }

    .site-header nav.open {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 2.2rem;
    }

    .hero-art {
        display: none;
    }

    .stats,
    .audiences,
    .home-panels,
    .info-grid,
    .wall,
    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stats {
        margin: 0;
    }

    .audience:nth-child(2) {
        border-right: 0;
    }

    .brand img {
        width: min(270px, 58vw);
        max-height: 70px;
    }

    .form-grid,
    .team-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .audiences,
    .stats,
    .home-panels,
    .info-grid,
    .wall,
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .stat {
        border-right: 0;
        border-bottom: 1px solid #ccd8e4;
    }

    .hero {
        min-height: 560px;
        padding-left: 1.2rem;
        padding-right: 1.2rem;
        background-position: 58% center;
    }

    .topbar {
        font-size: 0.68rem;
    }

    .audience {
        border-right: 0;
        border-bottom: 1px solid #ffffff55;
    }

    .home-panels {
        padding-left: 1rem;
        padding-right: 1rem;
    }

.wall-tools form {
        width: 100%;
    }

    .wall-tools input {
        min-width: 0;
        flex: 1;
    }
}

/* v0.4 admin dashboard enhancements */
.admin-tools-panel {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.2rem;
}

.admin-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-note {
    margin-bottom: 0;
    color: #49627a;
    font-size: 0.9rem;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

.section-heading-row h2,
.section-heading-row p {
    margin-bottom: 0.35rem;
}

.admin-filter-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    gap: 0.8rem;
    align-items: end;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.admin-filter-form label {
    display: grid;
    gap: 0.3rem;
    font-weight: 800;
    font-size: 0.85rem;
}

.admin-filter-form input,
.admin-filter-form select {
    width: 100%;
    min-width: 0;
    padding: 0.65rem;
    border: 1px solid #aebdca;
    border-radius: 7px;
    background: #fff;
    font: inherit;
}

.filter-buttons {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    grid-column: 1 / -1;
}

.status-pill,
.email-status {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.status-approved,
.email-status.sent {
    background: #dcf8e7;
    color: #176936;
}

.status-pending,
.email-status.not-attempted {
    background: #fff0c7;
    color: #725000;
}

.status-rejected,
.email-status.failed {
    background: #ffe0e0;
    color: #8a1f1f;
}

.pledge-chart {
    height: 270px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: end;
    gap: 0.85rem;
    padding: 1.25rem 1rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(to top, var(--soft), #fff);
}

.chart-column {
    height: 100%;
    display: grid;
    grid-template-rows: 1.5rem 1fr 2.4rem;
    align-items: end;
    text-align: center;
}

.chart-value {
    font-weight: 900;
    color: var(--navy);
}

.chart-bar {
    width: min(70px, 75%);
    min-height: 4px;
    margin: 0 auto;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--gold), var(--orange));
}

.chart-label {
    padding-top: 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.email-error-details pre {
    max-height: 220px;
    overflow: auto;
    white-space: pre-wrap;
    background: #fff4f4;
    border: 1px solid #efbcbc;
    border-radius: 8px;
    padding: 0.8rem;
}

@media (max-width: 1100px) {
    .admin-filter-form {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .admin-head,
    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-filter-form {
        grid-template-columns: 1fr;
    }

    .pledge-chart {
        gap: 0.3rem;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }

    .chart-label {
        font-size: 0.65rem;
    }
}


/* v0.5 Launch Edition */
.hero {
    position: relative;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    background:
        linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.84) 32%, rgba(255,255,255,.20) 60%, rgba(3,43,87,.06) 100%),
        url('/assets/images/runway-hero-clean.jpg') center 58% / cover;
}

.hero h1 .hero-kicker {
    font-size: .72em;
}

.hero-invitation {
    margin-top: -.35rem;
    font-size: 1.2rem !important;
    color: var(--navy);
}

.hero-art {
    position: absolute;
    top: calc(1.1rem + 25px);
    right: 2vw;
    width: min(42vw, 610px);
    height: 92%;
    pointer-events: none;
    align-items: flex-start;
}

.hero-art img {
    width: 100%;
    height: auto;
    max-height: 430px;
    object-fit: contain;
    object-position: top right;
    border-radius: 0;
    mix-blend-mode: normal;
    opacity: 1;
    filter: drop-shadow(0 14px 12px rgba(0,0,0,.28));
    animation: mascot-float 5.5s ease-in-out infinite;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
}

@keyframes mascot-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-art img { animation: none; }
}

.form input.decision-height {
    width: 6.25rem;
    max-width: 6.25rem;
    text-align: center;
}

.form-help {
    margin: .35rem 0 0 1.8rem;
    color: #4b6074;
    font-size: .9rem;
}

.site-version {
    margin-left: .35rem;
    opacity: .75;
}

.admin-stats {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-right: 38vw;
        background-position: center 22%;
    }
    .hero-art {
        width: 42vw;
        right: -1vw;
    }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .hero {
        min-height: 640px;
        padding: 2.4rem 1.2rem 15rem;
        background-position: center 20%;
    }
    .hero-art {
        top: auto;
        bottom: .3rem;
        width: min(88vw, 460px);
        height: auto;
        right: -3vw;
    }
    .hero-art img { max-height: 270px; }
    .hero h1 { font-size: clamp(2.35rem, 12vw, 3.55rem); }
    .form-help { margin-left: 0; }
}

/* v0.5 final approved hero image treatment */
.hero-art img {
    -webkit-mask-image: radial-gradient(ellipse 78% 78% at 58% 46%, #000 48%, rgba(0,0,0,.92) 67%, transparent 100%);
    mask-image: radial-gradient(ellipse 78% 78% at 58% 46%, #000 48%, rgba(0,0,0,.92) 67%, transparent 100%);
}

/* Pilots page: Learn, Sign, Share accordion */
.pilots-page-hero {
    text-align: left;
}

.pilots-page-hero__inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.pilots-page-hero .eyebrow {
    margin: 0 0 .45rem;
    color: var(--orange);
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.pilots-page-hero h1 {
    margin-bottom: .55rem;
}

.pilots-journey {
    max-width: 980px;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.pilots-journey__intro {
    margin-bottom: 1.35rem;
}

.pilots-journey__intro h2 {
    margin-bottom: .35rem;
    color: var(--navy);
}

.journey-accordion {
    display: grid;
    gap: 1rem;
}

.journey-step {
    overflow: hidden;
    background: #fff;
    border: 1px solid #d8e1ea;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(3, 43, 87, .08);
}

.journey-step__heading,
.topic-item h3 {
    margin: 0;
}

.journey-step__trigger {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    width: 100%;
    padding: 1.15rem 1.25rem;
    border: 0;
    background: #fff;
    color: var(--navy);
    text-align: left;
    cursor: pointer;
}

.journey-step__trigger:hover,
.journey-step__trigger:focus-visible {
    background: #f5f8fb;
}

.journey-step__trigger[aria-expanded="true"] {
    background: var(--navy);
    color: #fff;
}

.journey-step__number {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    border-radius: 50%;
    background: var(--orange);
    color: var(--navy);
    font-size: 1.45rem;
    font-weight: 900;
}

.journey-step__label {
    display: grid;
    gap: .15rem;
}

.journey-step__title {
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.1;
}

.journey-step__summary {
    font-size: .98rem;
    font-weight: 500;
    opacity: .82;
}

.journey-step__icon,
.topic-item__icon {
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
}

.journey-step__icon::before,
.journey-step__icon::after,
.topic-item__icon::before,
.topic-item__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 2px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform .2s ease;
}

.journey-step__icon::after,
.topic-item__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

[aria-expanded="true"] > .journey-step__icon::after,
[aria-expanded="true"] > .topic-item__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.journey-step__content {
    padding: 1.35rem 1.5rem 1.6rem;
    border-top: 1px solid #d8e1ea;
}

.journey-step__lead {
    margin-top: 0;
}

.topic-accordion {
    display: grid;
    gap: .65rem;
}

.topic-item {
    overflow: hidden;
    border: 1px solid #dce4ec;
    border-radius: 10px;
    background: #fff;
}

.topic-item__trigger,
.topic-item__static {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: .95rem 1rem;
    border: 0;
    background: #f7f9fb;
    color: var(--navy);
    font: inherit;
    font-weight: 800;
    text-align: left;
}

.topic-item__trigger {
    cursor: pointer;
}

.topic-item__trigger:hover,
.topic-item__trigger:focus-visible,
.topic-item__trigger[aria-expanded="true"] {
    background: #eef3f7;
}

.topic-item__panel {
    padding: .95rem 1rem 1.05rem;
    border-top: 1px solid #dce4ec;
}

.topic-item__panel p:first-child {
    margin-top: 0;
}

.topic-item__panel p:last-child,
.topic-item__panel ul:last-child {
    margin-bottom: 0;
}

.status-badge {
    flex: 0 0 auto;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: #fff0d2;
    color: #7a4a00;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.action-panel {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
}

.action-panel h3,
.share-panel h3 {
    margin-top: 0;
    color: var(--navy);
}

.action-panel__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    flex: 0 0 auto;
}

.btn-secondary {
    background: #fff;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: #eef3f7;
}

.share-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
}

.copy-link {
    display: flex;
    gap: .65rem;
    max-width: 620px;
}

.copy-link input {
    min-width: 0;
    flex: 1 1 auto;
    padding: .8rem .9rem;
    border: 1px solid #b9c7d4;
    border-radius: 8px;
    font: inherit;
    color: var(--navy);
    background: #fff;
}

.copy-link__button {
    flex: 0 0 auto;
}

.copy-status {
    min-height: 1.35em;
    margin: .4rem 0 .7rem;
    color: #25633a;
    font-weight: 700;
}

.share-panel__qr {
    margin: 0;
    text-align: center;
}

.share-panel__qr img {
    display: block;
    width: min(240px, 45vw);
    height: auto;
    padding: .55rem;
    border: 1px solid #d8e1ea;
    border-radius: 12px;
    background: #fff;
}

.share-panel__qr figcaption {
    margin-top: .45rem;
    color: #4b6074;
    font-size: .88rem;
}

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

@media (max-width: 760px) {
    .action-panel,
    .share-panel {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
    }

    .share-panel__qr {
        justify-self: center;
    }
}

@media (max-width: 520px) {
    .pilots-journey {
        padding-top: 2rem;
    }

    .journey-step__trigger {
        grid-template-columns: auto 1fr auto;
        gap: .75rem;
        padding: 1rem;
    }

    .journey-step__number {
        width: 2.55rem;
        height: 2.55rem;
        flex-basis: 2.55rem;
        font-size: 1.2rem;
    }

    .journey-step__title {
        font-size: 1.18rem;
    }

    .journey-step__summary {
        font-size: .9rem;
    }

    .journey-step__content {
        padding: 1.1rem 1rem 1.25rem;
    }

    .copy-link {
        display: grid;
    }

    .copy-link__button,
    .action-panel__buttons .btn,
    .share-native {
        width: 100%;
        text-align: center;
    }
}

/* Pilots page rich-content additions — v0.5.3 */
.topic-item__panel h4 {
    margin: 1.35rem 0 .55rem;
    color: var(--navy, #082b57);
    font-size: 1.15rem;
}

.topic-item__panel p,
.topic-item__panel li,
.topic-item__panel dd {
    line-height: 1.7;
}

.mindset-comparison {
    display: grid;
    gap: .8rem;
    margin: 1rem 0 1.2rem;
}

.mindset-comparison > div {
    padding: 1rem 1.1rem;
    border-left: 4px solid #f5a400;
    border-radius: .5rem;
    background: #fff8e8;
}

.acronym-list {
    display: grid;
    gap: .55rem;
    margin: 1rem 0 1.25rem;
}

.acronym-list > div {
    display: grid;
    grid-template-columns: 2.4rem 1fr;
    gap: .75rem;
    align-items: start;
    padding: .75rem .9rem;
    background: #f5f8fc;
    border-radius: .55rem;
}

.acronym-list dt {
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    margin: 0;
    border-radius: 50%;
    background: #f5a400;
    color: #082b57;
    font-weight: 800;
}

.acronym-list dd {
    margin: .2rem 0 0;
}

.video-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: .8rem;
}

.video-link-grid a {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 3rem;
    padding: .8rem 1rem;
    border: 1px solid #d7e0eb;
    border-radius: .65rem;
    background: #fff;
    color: #082b57;
    font-weight: 700;
    text-decoration: none;
}

.video-link-grid a::before {
    content: "▶";
    color: #f5a400;
}

.video-link-grid a:hover,
.video-link-grid a:focus-visible {
    border-color: #f5a400;
    box-shadow: 0 0 0 3px rgba(245, 164, 0, .16);
}

.procedure-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.2rem;
}

.procedure-card {
    padding: 1rem 1.1rem;
    border: 1px solid #d7e0eb;
    border-radius: .75rem;
    background: #f8fafc;
}

.procedure-card h4 {
    margin-top: 0;
}

.procedure-card ol {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.important-note {
    padding: 1rem 1.1rem;
    border-left: 4px solid #f5a400;
    border-radius: .55rem;
    background: #fff8e8;
}

.topic-item__panel blockquote {
    margin: 1rem 0;
    padding: 1rem 1.15rem;
    border-left: 4px solid #1459a6;
    background: #f1f6fc;
    color: #16324f;
    font-style: italic;
}

@media (max-width: 720px) {
    .video-link-grid,
    .procedure-columns {
        grid-template-columns: 1fr;
    }
}

/* v0.6 certificate and pledge-update additions */
.form-help {
    margin: .45rem 0 1rem;
    color: #52677d;
    font-size: .92rem;
}
.email-status.generating {
    background: #fff3cd;
    color: #6b4e00;
}
.email-status.sent {
    background: #dcf8e7;
    color: #17663a;
}
.email-status.failed {
    background: #ffe0e0;
    color: #8b1f1f;
}
.email-status.not-attempted,
.email-status.not-requested {
    background: #eef3f7;
    color: #52677d;
}

@import url('/assets/css/certificate-verification.css');

/* Personal Go-Around Decision Height guidance and live distribution */
.pledge-page-content{display:grid;gap:1.25rem}.guidance-callout{display:grid;grid-template-columns:auto 1fr;gap:1rem;align-items:start;padding:1.35rem;border:1px solid #f0ca68;border-left:7px solid var(--gold);border-radius:14px;background:linear-gradient(135deg,#fffaf0,#fff);box-shadow:0 6px 20px #0000000d}.guidance-callout__icon{display:grid;place-items:center;width:3rem;height:3rem;border-radius:50%;background:var(--navy);color:#fff;font-size:1.35rem}.guidance-callout h2,.pledge-important h2,.pledge-chart-panel__body h2,.decision-height-insights h4{margin-top:0;color:var(--navy)}.guidance-callout p{margin:.45rem 0 .8rem}.guidance-callout__link{font-weight:900}.pledge-chart-panel{border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 5px 18px #0000000b;overflow:hidden}.pledge-chart-panel summary{display:flex;align-items:center;gap:.75rem;padding:1rem 1.2rem;color:var(--navy);font-weight:900;cursor:pointer;list-style:none}.pledge-chart-panel summary::-webkit-details-marker{display:none}.pledge-chart-panel summary::after{content:"+";margin-left:auto;font-size:1.5rem}.pledge-chart-panel[open] summary::after{content:"−"}.pledge-chart-panel__icon{color:var(--blue);font-size:1.25rem}.pledge-chart-panel__body{padding:0 1.2rem 1.25rem;border-top:1px solid var(--line)}.pledge-chart-panel__body h2{margin-top:1.1rem}.pledge-important{margin-bottom:1.25rem;padding:1.15rem 1.2rem;border-left:6px solid var(--gold);border-radius:10px;background:var(--soft)}.pledge-important p:last-child{margin-bottom:0}.decision-height-insights{scroll-margin-top:125px;margin-top:1.5rem;padding:1.35rem;border:1px solid var(--line);border-top:6px solid var(--gold);border-radius:14px;background:linear-gradient(135deg,#fff,#f5f9fd)}.decision-height-insights:focus{outline:3px solid #83b7f2;outline-offset:3px}.decision-height-insights .eyebrow{margin:0 0 .25rem;color:var(--blue);font-weight:900;letter-spacing:.06em;text-transform:uppercase}.decision-height-insights h4{font-size:clamp(1.45rem,3vw,2rem)}.decision-height-chart{margin-top:1.25rem}.decision-height-chart__rows{display:grid;gap:.75rem}.decision-height-chart__row{display:grid;grid-template-columns:82px minmax(140px,1fr) minmax(135px,auto);gap:.8rem;align-items:center}.decision-height-chart__label{color:var(--navy);font-weight:900;text-align:right;white-space:nowrap}.decision-height-chart__bar-track{height:1.35rem;overflow:hidden;border-radius:999px;background:#dfe9f3}.decision-height-chart__bar{min-width:3%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue),var(--navy))}.decision-height-chart__value{font-weight:800;white-space:nowrap}.decision-height-chart__value span{color:#526b82;font-weight:700}.decision-height-chart__total{margin:1.1rem 0 0;padding-top:.8rem;border-top:1px solid var(--line)}.decision-height-chart__empty{margin:0;padding:1rem;border-radius:9px;background:var(--soft)}.decision-height-reminder{margin:1.25rem 0 0;padding:1rem;border-left:5px solid var(--gold);background:#fffaf0}@media(max-width:700px){.guidance-callout{grid-template-columns:1fr}.guidance-callout__icon{width:2.7rem;height:2.7rem}.decision-height-chart__row{grid-template-columns:68px 1fr;gap:.55rem .7rem}.decision-height-chart__value{grid-column:2;white-space:normal;font-size:.88rem}}

/* ============================================================
   v0.7.5 — Content Manager + pledge-success spacing
   2026-08-22
   ============================================================ */

/* Pledge-success and other general action groups */
.content .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin: 1.25rem 0;
}

/* Content Management admin */
.content-admin__toplinks,
.content-admin__tabs,
.content-form-actions,
.content-admin-row__actions,
.content-supporter-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.content-admin__tabs {
    margin: 1.25rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.content-admin__tabs a {
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
}

.content-admin__tabs a.active {
    background: var(--navy);
    color: #fff;
}

.content-admin__flash {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: 9px;
    font-weight: 800;
}

.content-admin__flash--success { background: #dcf8e7; color: #176936; }
.content-admin__flash--error { background: #ffe0e0; color: #8a1f1f; }

.content-edit-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    max-width: 1000px;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--soft);
}

.content-edit-form > label {
    display: grid;
    gap: 0.35rem;
    align-content: start;
    font-weight: 800;
}

.content-edit-form input[type="text"],
.content-edit-form input[type="url"],
.content-edit-form input[type="number"],
.content-edit-form input:not([type]),
.content-edit-form textarea,
.content-supporter-search input {
    width: 100%;
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid #aebdca;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.content-edit-form textarea {
    resize: vertical;
}

.content-edit-form small {
    color: #52677d;
    font-weight: 400;
}

.content-edit-form__wide,
.content-current-image,
.content-active,
.content-form-actions {
    grid-column: 1 / -1;
}

.content-upload input[type="file"] {
    width: 100%;
    padding: 0.55rem;
    border: 1px solid #aebdca;
    border-radius: 8px;
    background: #fff;
    font: inherit;
}

.content-active {
    display: flex !important;
    grid-template-columns: none;
    gap: 0.55rem !important;
    align-items: center;
}

.content-active input {
    width: auto;
    margin: 0;
}

.content-current-image {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.content-current-image img {
    width: 110px;
    height: 110px;
    border-radius: 10px;
    object-fit: cover;
}

.content-current-image--logo img {
    width: 180px;
    height: 90px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
}

.content-admin-list {
    display: grid;
    gap: 0.75rem;
}

.content-admin-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.content-admin-row.is-inactive {
    opacity: 0.62;
    background: #f5f7f9;
}

.content-admin-thumb {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--soft);
    color: #60758a;
    font-size: 0.75rem;
    font-weight: 800;
}

.content-admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-admin-thumb--logo {
    width: 100px;
}

.content-admin-thumb--logo img {
    object-fit: contain;
    background: #fff;
}

.content-admin-row__main {
    display: grid;
    gap: 0.2rem;
}

.content-admin-row__main span {
    color: #52677d;
    font-size: 0.9rem;
}

.content-admin-row__actions form {
    margin: 0;
}

.content-supporter-search {
    margin: 1rem 0;
}

.content-supporter-search input {
    flex: 1 1 260px;
}

.content-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.25rem;
}

.content-pagination a {
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 7px;
    text-decoration: none;
}

.content-pagination a.active {
    background: var(--navy);
    color: #fff;
}

@media (max-width: 700px) {
    .content .actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .content .actions .btn {
        width: 100%;
        text-align: center;
    }

    .content-edit-form {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .content-edit-form__wide,
    .content-current-image,
    .content-active,
    .content-form-actions {
        grid-column: auto;
    }

    .content-admin-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .content-admin-row__actions {
        grid-column: 1 / -1;
    }
}


/* ============================================================
   Supporters directory — Version: 2026-08-22-Supporters-Grid-A
   Uniform logo presentation; responsive; scalable to many orgs.
   ============================================================ */

.supporters-directory {
    margin-bottom: 3rem;
}

.supporters-directory__intro {
    margin-bottom: 1.5rem;
}

.supporters-directory__intro h2 {
    margin-bottom: .4rem;
    color: var(--navy);
}

.supporter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.supporter-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(3, 43, 87, .06);
}

.supporter-card__logo-link {
    display: block;
    text-decoration: none;
    border-radius: 10px;
}

.supporter-card__logo-wrap {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 3 / 2;
    padding: 1rem;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
}

.supporter-card__logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.supporter-card__logo-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 9px;
    background: var(--soft);
    color: var(--navy);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
}

.supporter-card h3 {
    margin: .85rem .25rem .2rem;
    color: var(--navy);
    font-size: 1rem;
    line-height: 1.3;
    text-align: center;
}

.supporter-card__logo-link:not(.supporter-card__logo-link--static) {
    transition: transform .16s ease, box-shadow .16s ease;
}

.supporter-card__logo-link:not(.supporter-card__logo-link--static):hover,
.supporter-card__logo-link:not(.supporter-card__logo-link--static):focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(3, 43, 87, .13);
    outline: 3px solid rgba(255, 179, 24, .55);
    outline-offset: 2px;
}

.supporters-action-cards {
    margin-top: 2.5rem;
}

@media (max-width: 1000px) {
    .supporter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .supporter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .9rem;
    }

    .supporter-card {
        padding: .7rem;
    }

    .supporter-card__logo-wrap {
        padding: .7rem;
    }
}

@media (max-width: 420px) {
    .supporter-grid {
        grid-template-columns: 1fr;
    }

    .supporter-card__logo-wrap {
        aspect-ratio: 16 / 9;
        max-height: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .supporter-card__logo-link {
        transition: none !important;
    }

    .supporter-card__logo-link:hover,
    .supporter-card__logo-link:focus-visible {
        transform: none !important;
    }
}


/* ============================================================
   Supporter logo fit refinement
   Version: 2026-08-22-Supporters-Logo-Fit-B
   Gives logos more vertical room and guarantees the complete
   source image remains visible without cropping or stretching.
   ============================================================ */

.supporter-card {
    min-height: 310px;
}

.supporter-card__logo-wrap {
    height: 225px;
    aspect-ratio: auto;
    padding: 1.15rem;
    overflow: hidden;
}

.supporter-card__logo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center center;
}

.supporter-card h3 {
    margin-top: 1rem;
}

@media (max-width: 720px) {
    .supporter-card {
        min-height: 260px;
    }

    .supporter-card__logo-wrap {
        height: 185px;
        padding: .9rem;
    }
}

@media (max-width: 420px) {
    .supporter-card {
        min-height: 0;
    }

    .supporter-card__logo-wrap {
        height: 210px;
        max-height: none;
        aspect-ratio: auto;
    }
}


/* ============================================================
   Supporter mobile square-logo fix
   Version: 2026-08-22-Supporters-Mobile-Square-C
   On phones, give every logo a square stage so square/tall
   artwork can fit completely without being clipped.
   ============================================================ */

@media (max-width: 720px) {
    .supporter-card {
        min-height: 0;
        height: auto;
    }

    .supporter-card__logo-link,
    .supporter-card__logo-link--static {
        width: 100%;
        height: auto;
        overflow: visible;
    }

    .supporter-card__logo-wrap {
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: 1 / 1;
        padding: 1rem;
        overflow: hidden;
        box-sizing: border-box;
    }

    .supporter-card__logo {
        display: block;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain !important;
        object-position: center center !important;
    }

    .supporter-card h3 {
        margin: .85rem .35rem .35rem;
    }
}

@media (max-width: 420px) {
    .supporter-card__logo-wrap {
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: 1 / 1;
        padding: .85rem;
    }
}


/* Pledge form — Home airport ID field
   Version: 2026-08-25-Pledge-Airport-Width-B */
.form input.home-airport-id {
    width: 5.25rem;
    max-width: 5.25rem;
    text-transform: uppercase;
}


/* ============================================================
   Admin pledge editing and possible-match review
   Version: 2026-08-27-Pledge-Editing-Merge-A
   ============================================================ */

.pledge-edit-panel {
    padding: 1.25rem;
    border: 2px solid var(--blue);
    border-radius: 14px;
    background: #f7fbff;
}

.pledge-admin-edit-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.pledge-admin-edit-form label {
    display: grid;
    gap: .35rem;
    align-content: start;
    font-weight: 800;
}

.pledge-admin-edit-form input,
.pledge-admin-edit-form select {
    width: 100%;
    min-width: 0;
    padding: .7rem;
    border: 1px solid #aebdca;
    border-radius: 8px;
    background: #fff;
    font: inherit;
}

.pledge-admin-edit-form .admin-short-input {
    max-width: 5rem;
}

.pledge-admin-edit-form .admin-airport-input {
    max-width: 7rem;
    text-transform: uppercase;
}

.pledge-admin-edit-form__wide {
    grid-column: span 2;
}

.pledge-admin-edit-form .admin-check {
    display: flex;
    flex-direction: row;
    gap: .55rem;
    align-items: center;
    align-self: end;
    min-height: 2.7rem;
}

.pledge-admin-edit-form .admin-check input {
    width: auto;
}

.pledge-admin-edit-form__actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: .8rem;
}

.possible-match-flag {
    display: block;
    width: max-content;
    max-width: 210px;
    margin-top: .4rem;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: #fff0c7;
    color: #725000;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1.25;
}

.possible-match-row > td {
    padding: 0 1rem 1rem;
    background: #fffaf0;
}

.possible-match-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e5b13e;
    border-radius: 12px;
    background: #fff;
}

.possible-match-panel__heading {
    grid-column: 1 / -1;
    display: grid;
    gap: .2rem;
    color: var(--navy);
}

.possible-match-panel__heading strong {
    font-size: 1.05rem;
}

.possible-match-new,
.possible-match-old {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fbfe;
}

.possible-match-new h3,
.possible-match-old h3 {
    margin-top: 0;
    color: var(--navy);
}

.possible-match-fields {
    display: grid;
    gap: .4rem;
    margin: 0 0 1rem;
}

.possible-match-fields > div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: .6rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid #e2e8ef;
}

.possible-match-fields dt {
    font-weight: 800;
}

.possible-match-fields dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.possible-match-panel > .admin-note {
    grid-column: 1 / -1;
    margin: 0;
}

@media (max-width: 1000px) {
    .pledge-admin-edit-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .pledge-admin-edit-form,
    .possible-match-panel {
        grid-template-columns: 1fr;
    }

    .pledge-admin-edit-form__wide,
    .possible-match-panel__heading,
    .possible-match-panel > .admin-note {
        grid-column: 1;
    }

    .possible-match-fields > div {
        grid-template-columns: 1fr;
        gap: .1rem;
    }
}


/* ============================================================
   Pledge Wall instructor indicator
   Version: 2026-08-27-Pledge-Wall-Instructor-Check-C
   Restored after stylesheet merge.
   ============================================================ */

.pledge-wall-table th:last-child,
.pledge-wall-table td:last-child {
    text-align: center;
}

.instructor-check {
    display: inline-grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: #39b54a;
    color: #fff;
    border: 2px solid #39b54a;
    box-shadow: inset 0 0 0 3px #fff;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1;
    vertical-align: middle;
}


/* ============================================================
   Certificate design selection
   Version: 2026-08-27-Certificate-Choices-A
   ============================================================ */

.certificate-choice-page {
    max-width: 1250px;
}

.certificate-choice-summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
}

.certificate-choice-summary > div {
    display: grid;
    gap: .15rem;
}

.certificate-choice-summary strong {
    color: var(--navy);
    font-size: 1.05rem;
}

.certificate-choice-summary span {
    color: #52677d;
}

.certificate-design-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.certificate-design-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: .65rem;
    padding: 1rem;
    border: 2px solid var(--line);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(3, 43, 87, .07);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.certificate-design-card:hover {
    transform: translateY(-2px);
    border-color: #9bb7d5;
    box-shadow: 0 8px 24px rgba(3, 43, 87, .12);
}

.certificate-design-card:has(input:checked) {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 179, 24, .2);
}

.certificate-design-card > input {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    z-index: 2;
    accent-color: var(--gold);
}

.certificate-design-card__preview {
    display: grid;
    place-items: center;
    overflow: hidden;
    min-height: 0;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    background: #f4f7fa;
}

.certificate-design-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.certificate-design-card__title {
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 900;
}

.certificate-design-card__description {
    color: #52677d;
    line-height: 1.45;
}

.certificate-design-card__select {
    margin-top: auto;
    color: var(--blue);
    font-weight: 800;
}

.certificate-choice-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.certificate-choice-actions .secondary {
    background: #fff !important;
    border: 2px solid var(--navy);
}

.certificate-download-panel {
    margin-top: 2rem;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-top: 5px solid var(--gold);
    border-radius: 14px;
    background: #fff;
}

.certificate-download-panel h2 {
    margin-top: 0;
    color: var(--navy);
}

.certificate-download-list {
    display: grid;
    gap: .75rem;
}

.certificate-download-list article {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--soft);
}

.certificate-download-list article > div {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
}

.certificate-choice-help {
    margin-top: 1.5rem;
    color: #52677d;
    font-size: .92rem;
}

.certificate-access-form {
    max-width: 680px;
}

@media (max-width: 900px) {
    .certificate-design-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .certificate-design-grid {
        grid-template-columns: 1fr;
    }

    .certificate-design-card {
        max-width: 430px;
        width: 100%;
        margin: 0 auto;
    }

    .certificate-choice-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .certificate-choice-actions .btn {
        width: 100%;
        text-align: center;
    }

    .certificate-download-list article {
        display: grid;
    }

    .certificate-download-list article > div {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .certificate-download-list .btn {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .certificate-design-card {
        transition: none;
    }

    .certificate-design-card:hover {
        transform: none;
    }
}


/* ============================================================
   Certificate access success page
   Version: 2026-08-27-Certificate-Choices-B
   ============================================================ */

.certificate-access-success {
    max-width: 860px;
}

.certificate-access-success__card {
    margin: 0 auto;
}

.certificate-access-success__card h2 {
    margin-top: 0;
    color: var(--navy);
}

.certificate-access-success__actions {
    display: flex;
    justify-content: center;
    gap: .8rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 .75rem;
}

.certificate-access-success__retry {
    margin-top: 1.25rem;
}

@media (max-width: 620px) {
    .certificate-access-success__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .certificate-access-success__actions .btn {
        width: 100%;
        text-align: center;
    }
}


/* ============================================================
   Admin certificate design popularity
   Version: 2026-08-27-Certificate-Popularity-A
   ============================================================ */

.certificate-popularity-panel {
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.certificate-popularity-panel .section-heading-row {
    margin-bottom: 1rem;
}

.certificate-popularity-panel .section-heading-row h2 {
    margin-top: 0;
}

.certificate-popularity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.certificate-popularity-card {
    display: grid;
    gap: .7rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
}

.certificate-popularity-card__heading {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: baseline;
}

.certificate-popularity-card__heading strong {
    color: var(--navy);
}

.certificate-popularity-card__heading span {
    font-weight: 900;
    white-space: nowrap;
}

.certificate-popularity-bar {
    height: .8rem;
    overflow: hidden;
    border-radius: 999px;
    background: #dbe5ee;
}

.certificate-popularity-bar span {
    display: block;
    min-width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), var(--orange));
}

.certificate-popularity-card__meta {
    display: grid;
    gap: .2rem;
    color: #52677d;
    font-size: .88rem;
}

.certificate-popularity-total {
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .certificate-popularity-grid {
        grid-template-columns: 1fr;
    }
}
