/* =========================================================================
   Waves of Courage
   Visual language follows business-card Concept 3 - "Make Waves: Bold &
   Community Focused": navy dominant, energetic aqua wave sweeps, gold
   hairline-and-heart dividers, two-tone navy/teal display type.
   ========================================================================= */

:root {
    /* Brand palette - sampled from the supplied logo artwork */
    --navy-950: #071730;
    --navy-900: #0B2141;
    --navy-800: #123055;
    --navy: #16305C;
    --teal-700: #1F6B87;
    --teal: #2A7E9B;
    --aqua: #3FB6DE;
    --aqua-300: #8FD9EE;
    --aqua-100: #DCF1F9;
    --gold: #C9A44C;
    --gold-300: #E3C88A;

    --paper: #FBFCFD;
    --surface: #FFFFFF;
    --ink: #12283F;
    --muted: #5C7188;
    --line: #E2E9EF;

    --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --radius: 14px;
    --shadow: 0 1px 2px rgba(7, 23, 48, .06), 0 8px 24px rgba(7, 23, 48, .06);
    --shadow-lg: 0 2px 4px rgba(7, 23, 48, .08), 0 18px 48px rgba(7, 23, 48, .12);
    --gutter: 20px;
    --measure: 1160px;

    /* Contextual text colors. Redefined wholesale by the dark-panel rule
       below, so components never need a per-context override of their own. */
    --text: var(--ink);
    --text-muted: var(--muted);
    --display-ink: var(--navy);
    --display-accent: var(--teal);
    --eyebrow-ink: var(--teal-700);
    --pillar-ink: var(--teal-700);
    --gold-line: var(--gold);   /* hairlines, purely decorative */
    --gold-mark: #8C6A22;       /* gold that has to be *read*: icons, slogan */
}

/* Every dark ground in the site. Anything sitting on one reads its colors
   from here - miss a panel off this list and its type goes navy-on-navy. */
.section-navy,
.hero,
.page-head,
.feature-panel {
    --text: #fff;
    --text-muted: rgba(255, 255, 255, .84);
    --display-ink: #fff;
    --display-accent: var(--aqua-300);
    --eyebrow-ink: var(--aqua-300);
    --pillar-ink: var(--aqua-300);
    --gold-line: var(--gold-300);
    --gold-mark: var(--gold-300);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-700); }
a:hover { color: var(--navy); }

:focus-visible {
    outline: 3px solid var(--aqua);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: #fff;
    color: var(--navy);
    padding: 12px 18px;
    font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --- Layout primitives -------------------------------------------------- */

.wrap {
    width: 100%;
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.wrap-narrow { max-width: 820px; }

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

.section-navy {
    background: var(--navy-900);
    color: #fff;
    position: relative;
    overflow: hidden;
}
/* Links on any dark ground, not just .section-navy - the contact panel's
   mailto: sits inside .feature-panel. Buttons opt out via their own colors. */
.section-navy a:not(.btn),
.hero a:not(.btn),
.page-head a:not(.btn),
.feature-panel a:not(.btn) { color: var(--aqua-300); }
.section-navy a:not(.btn):hover,
.hero a:not(.btn):hover,
.page-head a:not(.btn):hover,
.feature-panel a:not(.btn):hover { color: #fff; }

.section-aqua { background: var(--aqua-100); }

/* --- Type --------------------------------------------------------------- */

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 .5em;
    letter-spacing: .005em;
}

.eyebrow {
    font-family: var(--body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--eyebrow-ink);
    margin: 0 0 14px;
}

/* The Concept 3 headline device: navy line, then a teal line. */
.display {
    font-family: var(--display);
    font-size: clamp(2.1rem, 5.4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--display-ink);
    margin: 0;
}
.display .accent { color: var(--display-accent); display: block; }

.lede {
    font-size: 1.16rem;
    color: var(--text-muted);
    max-width: 62ch;
}

.prose p { max-width: 68ch; }
.prose h3 {
    font-size: 1.5rem;
    margin-top: 1.8em;
    color: var(--navy);
}

/* The founders' slogan, set two-tone the way the card does it. */
.slogan {
    font-family: var(--display);
    font-style: italic;
    font-size: clamp(1.5rem, 3.6vw, 2.35rem);
    line-height: 1.28;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    text-wrap: balance;
}
.slogan .second { color: var(--gold-mark); display: block; }

.tagline {
    font-family: var(--body);
    font-size: clamp(.78rem, 1.7vw, .95rem);
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--aqua-300);
    margin: 0;
}

/* --- Gold hairline + heart divider -------------------------------------- */

.gold-rule {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--gold-line);
    margin: 26px 0;
}
.gold-rule-line {
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: .55;
}
.gold-rule-heart { width: 18px; height: 18px; flex: none; }
.gold-rule-center { max-width: 340px; margin-inline: auto; }

/* --- Buttons ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold { background: var(--gold); color: var(--navy-950); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-300); border-color: var(--gold-300); color: var(--navy-950); }

.btn-aqua { background: var(--aqua); color: var(--navy-950); border-color: var(--aqua); }
.btn-aqua:hover { background: var(--aqua-300); border-color: var(--aqua-300); color: var(--navy-950); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

/* --- Header ------------------------------------------------------------- */
/* The supplied lockup has an opaque white background, so the header is light
   and the logo appears exactly as drawn. The navy weight of Concept 3 is
   carried by the hero immediately below it. */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 104px;
    position: relative;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--navy);
}
.brand-link .logo { height: 88px; width: auto; }

.brand-words { display: none; }

/* Used where an opaque lockup has to appear on a dark panel. */
.logo-plate {
    background: #fff;
    padding: 10px 14px;
    border-radius: 12px;
}

/* Type-set stand-in, used only if the artwork is ever missing. */
.logo-placeholder {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.05;
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--navy);
}
.logo-placeholder-line1 { font-size: 1.3rem; font-weight: 700; }
.logo-placeholder-line1 em {
    font-style: italic;
    text-transform: lowercase;
    letter-spacing: 0;
    color: var(--teal);
}
.logo-placeholder-line2 { font-size: 1.3rem; font-weight: 700; color: var(--teal); }
.section-navy .logo-placeholder,
.site-footer .logo-placeholder { color: #fff; }
.section-navy .logo-placeholder-line2,
.site-footer .logo-placeholder-line2 { color: var(--aqua-300); }

.nav-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--navy);
    padding: 11px 15px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}

.site-nav { display: flex; align-items: center; gap: 2px; }

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 13px;
    border-radius: 8px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .03em;
    text-decoration: none;
    white-space: nowrap;
}
.nav-link:hover { background: var(--aqua-100); color: var(--navy); }
.nav-link.active { box-shadow: inset 0 -3px 0 var(--gold); }
.nav-cta { margin-left: 12px; min-height: 46px; padding: 0 22px; font-size: 12px; }

@media (max-width: 980px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        left: calc(var(--gutter) * -1);
        right: calc(var(--gutter) * -1);
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px var(--gutter) 20px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }
    .site-nav.open { display: flex; }
    .nav-link { padding: 15px 13px; }
    .nav-cta { margin: 12px 0 0; }
    .brand-link .logo { height: 66px; }
}

/* --- Hero --------------------------------------------------------------- */

.hero {
    position: relative;
    background: radial-gradient(125% 135% at 12% 0%, var(--navy-800) 0%, var(--navy-900) 48%, var(--navy-950) 100%);
    color: #fff;
    overflow: hidden;
    padding: clamp(72px, 10vw, 116px) 0 clamp(150px, 20vw, 230px);
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; }

.hero .display { margin-bottom: 4px; }
.hero .gold-rule { max-width: 420px; }
.hero .lede { margin-top: 20px; }
.hero .tagline { margin-top: 30px; }

.wave-sweep {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: clamp(190px, 27vw, 320px);
    z-index: 1;
    pointer-events: none;
}

/* Hero variant for interior pages - shorter, no wave. */
.page-head {
    background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
    color: #fff;
    padding: clamp(56px, 8vw, 88px) 0 clamp(56px, 8vw, 80px);
}
.page-head h1 {
    font-size: clamp(2rem, 5vw, 3.1rem);
    text-transform: uppercase;
    letter-spacing: .015em;
    margin: 0;
}
.page-head h1 .accent { color: var(--display-accent); display: block; }
.page-head .lede { margin-top: 18px; }

/* --- Cards / grids ------------------------------------------------------ */

.grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px 26px;
}
.card h3 {
    font-size: 1.45rem;
    color: var(--navy);
    margin-bottom: .35em;
}
.card p { margin: 0; color: var(--muted); }
.card-icon { color: var(--gold-mark); width: 40px; height: 40px; margin-bottom: 18px; }

/* GIVE / VOLUNTEER / PARTNER / MAKE AN IMPACT - the card back, as a row. */
.actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 40px;
}
.action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 26px 12px;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.action:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .18);
}
.section:not(.section-navy) .action:hover {
    background: #fff;
    border-color: var(--line);
    box-shadow: var(--shadow);
}
.action svg { width: 42px; height: 42px; color: var(--gold-mark); }
.action span {
    font-family: var(--body);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
@media (max-width: 720px) {
    .actions { grid-template-columns: repeat(2, 1fr); }
}

/* Divider between the four actions, echoing the card's vertical rule. */
.actions .action + .action { position: relative; }
.actions .action + .action::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 26%;
    bottom: 26%;
    width: 1px;
    background: currentColor;
    opacity: .18;
}
@media (max-width: 720px) {
    .actions .action + .action::before { display: none; }
}

/* --- Statement band ----------------------------------------------------- */

.statement { text-align: center; }
.statement .display { margin-bottom: 6px; }
.statement .slogan { margin-top: 10px; }
.statement .pillars {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--pillar-ink);
}

/* --- Feature (Ride the Brainwave) --------------------------------------- */

.feature {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 52px;
    align-items: center;
}
@media (max-width: 900px) {
    .feature { grid-template-columns: 1fr; gap: 32px; }
}

.feature-panel {
    background: linear-gradient(150deg, var(--navy-800), var(--navy-950));
    color: #fff;
    border-radius: 20px;
    padding: 40px 34px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.feature-panel h3 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: .3em;
}
.feature-panel .accent { color: var(--display-accent); }
.feature-panel p { color: rgba(255, 255, 255, .84); }

.stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}
.stat-row li {
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* --- Bulleted support lists --------------------------------------------- */

.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 14px;
    color: var(--text-muted);
}
.tick-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .62em;
    width: 10px;
    height: 10px;
    border: 2px solid var(--gold-line);
    border-radius: 50%;
}

/* --- Partners ----------------------------------------------------------- */

.partner-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 26px;
}
.partner {
    padding: 16px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-weight: 600;
    color: var(--navy);
    box-shadow: var(--shadow);
}

/* --- Forms -------------------------------------------------------------- */

.form-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, 1fr);
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--teal);
    outline: 3px solid rgba(63, 182, 222, .28);
    outline-offset: 0;
}

/* Honeypot - off-screen for people, present for bots. */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Turnstile draws itself in an iframe at a fixed size; this only keeps it from
   crowding the button beneath it. */
.captcha {
    min-height: 65px;
}

.notice {
    padding: 16px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-weight: 500;
}
.notice-ok { background: #E8F6EF; border: 1px solid #B7E3CE; color: #14563A; }
.notice-bad { background: #FDECEC; border: 1px solid #F6C9C9; color: #8A2222; }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, .74);
    padding: 64px 0 34px;
    font-size: 15px;
}
.site-footer h4 {
    font-family: var(--body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 16px;
}
.footer-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: 1.4fr 1fr 1fr;
}
@media (max-width: 820px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.site-footer .logo { height: 124px; width: auto; margin-bottom: 18px; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom {
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .13);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, .58);
}
.footer-tagline {
    font-size: 12px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--aqua-300);
}

/* --- Utilities ---------------------------------------------------------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 18px; }
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --- Events calendar ---------------------------------------------------- */

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

.event {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 22px;
}
@media (max-width: 680px) {
    .event { grid-template-columns: auto 1fr; }
    .event-cta { grid-column: 1 / -1; justify-self: start; }
}

/* The date block reads as a torn-off calendar page. */
.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 66px;
    padding: 10px 0;
    border-radius: 12px;
    background: var(--navy-900);
    color: #fff;
    line-height: 1;
}
.event-month {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--aqua-300);
    margin-bottom: 5px;
}
.event-day { font-size: 25px; font-weight: 700; font-variant-numeric: tabular-nums; }

.event-body h3 { font-size: 1.3rem; color: var(--navy); margin: 0 0 4px; }
.event-when {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--teal-700);
    margin: 0;
}
.event-where { color: var(--muted); margin: 4px 0 0; font-size: 15px; }
.event-summary { color: var(--muted); margin: 8px 0 0; max-width: 60ch; }
.event-cta { min-height: 44px; padding: 0 20px; font-size: 12px; }

.event-list.past .event { opacity: .72; box-shadow: none; }
.event-list.past .event-date { background: var(--muted); }
.event-list.past .event-month { color: rgba(255, 255, 255, .85); }

/* --- Admin -------------------------------------------------------------- */

.scroll-x { overflow-x: auto; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    min-width: 620px;
}
.admin-table th, .admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.admin-table thead th {
    background: var(--aqua-100);
    font-size: 11.5px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--teal-700);
    font-weight: 700;
    white-space: nowrap;
}
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tr.is-past { color: var(--muted); }

.tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--navy-950);
    vertical-align: middle;
}
.tag-quiet { background: var(--line); color: var(--muted); }

.row-actions { display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.row-actions form { display: inline; }

.link-btn {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--teal-700);
    text-decoration: underline;
    cursor: pointer;
}
.link-btn:hover { color: var(--navy); }
.link-danger { color: #A33; }
.link-danger:hover { color: #7A2222; }

.checkbox-row label {
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    margin: 0;
}
.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    flex: none;
    accent-color: var(--teal);
}

/* --- Gallery ------------------------------------------------------------ */

.album-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    margin-top: 30px;
}

.album {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.album:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.album-cover {
    aspect-ratio: 4 / 3;
    background: var(--aqua-100);
    overflow: hidden;
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; }

.album-meta { padding: 18px 20px 20px; }
.album-meta h3 { font-size: 1.25rem; color: var(--navy); margin: 0 0 4px; }
.album-count { color: var(--muted); margin: 6px 0 0; font-size: 14px; }

/* Masonry-ish: portrait shots take two rows so the grid stays tight without
   measuring anything in JavaScript. */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-auto-rows: 190px;
    gap: 14px;
    margin-top: 30px;
}
.photo {
    margin: 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--aqua-100);
}
.photo.is-portrait { grid-row: span 2; }
.photo a { display: block; width: 100%; height: 100%; }
.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.photo:hover img { transform: scale(1.04); }

.photo figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 14px 10px;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(to top, rgba(7, 23, 48, .78), transparent);
    pointer-events: none;
}

@media (max-width: 560px) {
    .photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
}

/* --- Admin photo management --------------------------------------------- */

.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 18px;
}
.admin-photo {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.admin-photo.is-cover { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.admin-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.admin-photo-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    font-size: 13px;
}
.admin-photo-actions form { display: inline; }

.field input[type="file"] {
    padding: 12px;
    background: var(--aqua-100);
    border-style: dashed;
    cursor: pointer;
}

/* An album for an event that has not happened yet. */
.tag-upcoming {
    background: var(--aqua-100);
    color: var(--teal-700);
    border: 1px solid var(--aqua-300);
    vertical-align: middle;
    position: relative;
    top: -2px;
}
