:root {
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #124a7c;
    --brand-2: #58c7c5;
    --brand-dark: #082f49;
    --accent: #58c7c5;
    --soft: #f8fafc;
    --good: #16a34a;
    --bad: #dc2626;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: #f1f5f9;
}
a { text-decoration: none; }
.site-header, .navbar { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 30px rgba(15,23,42,.04); }
.brand-lockup { display: flex; align-items: center; gap: .75rem; padding-block: .25rem; }
.brand-logo { height: 58px; width: auto; max-width: min(330px, 68vw); object-fit: contain; display: block; }
.navbar .nav-link { color: var(--brand-dark); font-weight: 650; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--brand-2); }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: #0e3d66; --bs-btn-hover-border-color: #0e3d66; }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); }
.brand-mark {
    width: 42px; height: 42px; border-radius: 14px;
    display: grid; place-items: center;
    background: rgba(255,255,255,.16); color: #fff; font-size: 1.8rem; font-weight: 800;
}
.hero-section {
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(88,199,197,.44), transparent 36%),
        linear-gradient(135deg, var(--brand-dark), var(--brand) 52%, #0f172a);
    min-height: 560px;
    display: flex;
    align-items: center;
}
.hero-section h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .98; font-weight: 850; letter-spacing: -0.055em; }
.hero-section .lead { color: rgba(255,255,255,.82); max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-weight: 800; color: var(--accent); font-size: .78rem; margin-bottom: .75rem; }
.eyebrow.dark { color: var(--brand); }
.hero-card, .feature-card, .content-card, .soft-panel, .auth-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(15,23,42,.08);
}
.hero-card { padding: 2rem; color: var(--ink); }
.hero-card h2, .content-card h2, .feature-card h3 { font-weight: 800; letter-spacing: -.02em; }
.clean-list, .check-list { padding-left: 0; list-style: none; }
.clean-list li, .check-list li { padding: .65rem 0 .65rem 2rem; position: relative; border-bottom: 1px solid rgba(226,232,240,.8); }
.clean-list li::before, .check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 900; }
.feature-card { padding: 1.5rem; height: 100%; }
.feature-icon { font-size: 2rem; display: inline-block; margin-bottom: .75rem; }
.feature-card p, .soft-panel p { color: var(--muted); margin-bottom: 0; }
.page-hero { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.page-hero.compact { padding: 4.5rem 0; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 850; letter-spacing: -.045em; }
.page-hero p { color: rgba(255,255,255,.86); max-width: 760px; font-size: 1.15rem; }
.content-card { padding: 1.5rem; }
.soft-panel { padding: 1.25rem; background: #f8fafc; box-shadow: none; }
.site-footer { padding: 1.5rem 0; background: #0f172a; color: #cbd5e1; }
.auth-wrap { min-height: 72vh; display: grid; place-items: center; padding: 3rem 1rem; }
.auth-card { padding: 2rem; width: min(100%, 620px); margin-inline: auto; }
.auth-card.narrow { width: min(100%, 520px); }
.demo-box { border: 1px dashed var(--line); background: #f8fafc; border-radius: 16px; padding: 1rem; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: #dcfce7; color: #166534; display: grid; place-items: center; font-size: 2.4rem; font-weight: 900; margin: 0 auto 1rem; }
.registration-form { display: grid; gap: 1.2rem; }
.form-section { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start; }
.section-number { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 1.4rem; font-weight: 900; position: sticky; top: 1rem; }
.section-body { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 1.5rem; box-shadow: 0 18px 55px rgba(15,23,42,.06); }
.section-body h2 { font-weight: 850; letter-spacing: -.025em; margin-bottom: 1.25rem; }
.portal-body { background: #eef2f7; }
.portal-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.portal-sidebar { background: #0f172a; color: #fff; padding: 1.25rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.portal-brand { color: #fff; display: flex; align-items: center; gap: .65rem; font-weight: 850; font-size: 1.15rem; margin-bottom: 1.5rem; }
.portal-logo { width: 100%; max-width: 220px; height: auto; border-radius: 18px; background: #fff; padding: .55rem; display: block; box-shadow: 0 12px 36px rgba(0,0,0,.18); }
.portal-brand span { width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); font-size: 1.5rem; }
.portal-user { border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 1rem; margin-bottom: 1rem; }
.portal-user small { display: block; color: #94a3b8; }
.portal-nav { display: grid; gap: .35rem; padding-bottom: 1rem; }
.portal-nav a, .portal-nav span { color: #cbd5e1; padding: .78rem .9rem; border-radius: 14px; display: block; }
.portal-nav a.active { background: rgba(88,199,197,.18); color: #fff; font-weight: 800; box-shadow: inset 3px 0 0 var(--brand-2); }
.portal-nav .nav-logout { margin-top: .75rem; color: #fff; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.portal-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.portal-nav .disabled { opacity: .42; border: 1px dashed rgba(255,255,255,.15); cursor: not-allowed; }
.portal-main { padding: 2rem; min-width: 0; max-width: 100%; overflow-x: hidden; }
.portal-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1.25rem; }
.portal-heading h1 { font-weight: 850; letter-spacing: -.04em; margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.25rem; box-shadow: 0 18px 55px rgba(15,23,42,.06); }
.stat-card span { color: var(--muted); font-size: .9rem; }
.stat-card strong { display: block; font-size: 2.2rem; line-height: 1; margin-top: .6rem; }
.portal-table small { color: var(--muted); }
.status-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: .35rem .65rem; font-size: .78rem; font-weight: 800; text-transform: capitalize; }
.status-submitted, .status-under_review { background: #dbeafe; color: #1e40af; }
.status-awaiting_payment, .status-awaiting_documents { background: #fef3c7; color: #92400e; }
.status-approved, .status-active { background: #dcfce7; color: #166534; }
.status-invited, .status-draft { background: #e0f2fe; color: #075985; }
.status-inactive, .status-archived { background: #e5e7eb; color: #374151; }
.status-rejected, .status-cancelled { background: #fee2e2; color: #991b1b; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.detail-grid.single { grid-template-columns: 1fr; }
.detail-grid div { background: #f8fafc; border: 1px solid var(--line); border-radius: 16px; padding: .85rem; }
.detail-grid span { display: block; font-size: .78rem; color: var(--muted); }
.detail-grid strong { display: block; margin-top: .25rem; }
.timeline { border-left: 3px solid var(--line); padding-left: 1rem; }
.timeline-item { margin-bottom: 1rem; position: relative; }
.timeline-item::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-2); position: absolute; left: -1.45rem; top: .35rem; }
.timeline-item small { display: block; color: var(--muted); }
.roadmap-list { display: grid; gap: .75rem; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px) { .brand-logo { height: 48px; max-width: 240px; } }
@media (max-width: 768px) {
    .hero-section { min-height: auto; }
    .form-section { grid-template-columns: 1fr; }
    .section-number { position: static; }
    .portal-shell { grid-template-columns: 1fr; }
    .portal-sidebar { position: static; height: auto; max-height: none; }
    .portal-main { padding: 1rem; }
    .portal-heading { flex-direction: column; align-items: stretch; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } }

.hero-card-logo {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
    margin: 0 auto 1.25rem;
    border-radius: 18px;
}


.section-heading h2 {
    color: var(--brand-dark);
    font-weight: 800;
}
.section-heading p {
    color: var(--muted);
    max-width: 780px;
    margin: .5rem auto 0;
}
.cta-strip {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    padding: 2.5rem 0;
}
.cta-strip h2 {
    font-weight: 800;
    margin-bottom: .35rem;
}
.footer-link {
    color: #dff7ff;
    text-decoration: none;
}
.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}
.privacy-content h2,
.privacy-content h3 {
    color: var(--brand-dark);
    font-weight: 800;
}
.privacy-content h3 {
    margin-top: 1.6rem;
    font-size: 1.2rem;
}

.info-list { display: grid; grid-template-columns: 140px 1fr; gap: .55rem .85rem; margin-bottom: 0; }
.info-list dt { color: var(--muted); font-size: .82rem; font-weight: 800; }
.info-list dd { margin: 0; }
.mini-card { background: #f8fafc; border: 1px solid var(--line); border-radius: 16px; padding: .85rem; }
.portal-nav a { text-decoration: none; }
.form-control-sm, .form-select-sm { border-radius: 10px; }
@media (max-width: 576px) { .info-list { grid-template-columns: 1fr; } }
.status-suspended { background: #fee2e2; color: #7f1d1d; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-open, .status-available, .status-approved, .status-attended, .status-submitted { background: #dcfce7; color: #166534; }
.status-closed, .status-completed, .status-final_submitted, .status-assigned { background: #dbeafe; color: #1e40af; }
.status-maybe, .status-requested, .status-coach_reviewed, .status-late, .status-replacement_fee_applied { background: #fef3c7; color: #92400e; }
.status-unavailable, .status-absent, .status-penalty_applied, .status-withdrawn, .status-scratched { background: #fee2e2; color: #991b1b; }
.status-excused, .status-replaced { background: #f3e8ff; color: #6b21a8; }

/* Phase 8 reporting/admin control helpers */
.report-table-wrap {
    max-height: 62vh;
    overflow: auto;
}
.report-table-wrap table {
    min-width: 900px;
}
.portal-nav a.nav-logout {
    opacity: 1;
    color: #fff;
}
.portal-sidebar {
    overflow-y: auto;
}

/* Phase 9 public CMS and branding polish */
.cms-body {
    font-size: 1.02rem;
    line-height: 1.75;
}
.cms-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #f8fafc;
}
.cms-hero-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid var(--line);
}
.gallery-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(15,23,42,.08);
}
.gallery-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}
.gallery-card h3 {
    font-weight: 800;
    letter-spacing: -.02em;
    font-size: 1.2rem;
}
.gallery-card p {
    color: var(--muted);
    margin-bottom: 0;
}
.sponsor-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}
.sponsor-logo-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    min-height: 112px;
    display: grid;
    place-items: center;
    padding: 1rem;
    box-shadow: 0 12px 35px rgba(15,23,42,.06);
    text-align: center;
}
.sponsor-logo-box img,
.sponsor-public-logo,
.sponsor-admin-logo {
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
}
.sponsor-public-logo {
    margin-bottom: 1rem;
}
.sponsor-admin-logo {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: .75rem;
}
.portal-nav a[href*="/admin/cms"],
.portal-nav a[href*="/admin/settings/branding"],
.portal-nav a[href*="/admin/enquiries"] {
    opacity: 1;
}
.status-reviewed { background: #dbeafe; color: #1e40af; }
.status-invited { background: #dcfce7; color: #166534; }
.status-closed { background: #e5e7eb; color: #374151; }

/* Phase 11 production controls */
.portal-version {
    margin-top: 1rem;
    padding: .75rem .9rem;
    border-radius: 14px;
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,.10);
    font-size: .78rem;
}
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.page-heading h1 { font-weight: 850; letter-spacing: -.04em; margin: 0; }
.page-heading p { color: var(--muted); margin: .25rem 0 0; }
@media (max-width: 768px) { .page-heading { flex-direction: column; align-items: stretch; } }
/* Global polish pass: calmer type scale, tighter spacing, smoother motion. */
:root {
    --font-sans: "Segoe UI", "Inter", "Roboto", "Helvetica Neue", Arial, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 8px 24px rgba(15,23,42,.05);
    --shadow-md: 0 14px 38px rgba(15,23,42,.07);
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: .95rem;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: pageFadeIn .28s ease-out both;
}

a,
.btn,
.form-control,
.form-select,
.content-card,
.feature-card,
.soft-panel,
.stat-card,
.auth-card,
.section-body,
.hero-card {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .2s ease, transform .18s ease;
}

.site-header,
.navbar {
    box-shadow: var(--shadow-sm);
}

.brand-logo {
    height: 50px;
    max-width: min(300px, 68vw);
}

.navbar .nav-link {
    font-size: .94rem;
    font-weight: 600;
}

.btn,
.form-control,
.form-select {
    border-radius: 10px;
}

.btn {
    font-weight: 650;
}

.btn:hover {
    transform: translateY(-1px);
}

.form-control,
.form-select {
    font-size: .94rem;
}

.form-label {
    color: #334155;
    font-size: .9rem;
    font-weight: 650;
}

.hero-section {
    min-height: 500px;
}

.hero-section h1 {
    font-size: clamp(2rem, 4.2vw, 3.85rem);
    line-height: 1.05;
    font-weight: 780;
    letter-spacing: 0;
}

.hero-section .lead {
    max-width: 720px;
    font-size: 1.05rem;
}

.eyebrow {
    letter-spacing: .12em;
    font-size: .72rem;
    font-weight: 750;
    margin-bottom: .6rem;
}

.hero-card,
.feature-card,
.content-card,
.soft-panel,
.auth-card,
.section-body,
.stat-card {
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}

.hero-card,
.auth-card {
    padding: 1.5rem;
}

.content-card,
.feature-card {
    padding: 1.2rem;
}

.soft-panel {
    padding: 1rem;
    box-shadow: none;
}

.hero-card h2,
.content-card h2,
.feature-card h3,
.section-body h2,
.section-heading h2,
.cta-strip h2,
.privacy-content h2,
.privacy-content h3 {
    font-weight: 740;
    letter-spacing: 0;
}

.content-card h2,
.section-body h2 {
    font-size: 1.28rem;
}

.feature-card h3 {
    font-size: 1.12rem;
}

.feature-icon {
    font-size: 1.65rem;
    margin-bottom: .6rem;
}

.clean-list li,
.check-list li {
    padding: .55rem 0 .55rem 1.7rem;
}

.page-hero.compact {
    padding: 3.2rem 0;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 3.4vw, 3.05rem);
    font-weight: 760;
    letter-spacing: 0;
}

.page-hero p {
    max-width: 720px;
    font-size: 1.02rem;
}

.demo-box,
.detail-grid div,
.mini-card,
.hero-card-logo,
.portal-user,
.portal-nav a,
.portal-nav span {
    border-radius: 12px;
}

.section-number {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 800;
}

.portal-shell {
    grid-template-columns: 252px 1fr;
}

.portal-sidebar {
    padding: 1rem;
    scroll-behavior: smooth;
}

.portal-brand {
    font-size: 1rem;
    font-weight: 760;
    margin-bottom: 1.15rem;
}

.portal-logo {
    max-width: 190px;
    border-radius: 12px;
    padding: .45rem;
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
}

.portal-user {
    padding: .85rem;
    margin-bottom: .85rem;
    font-size: .92rem;
}

.portal-nav {
    gap: .25rem;
}

.portal-nav a,
.portal-nav span {
    padding: .62rem .75rem;
    font-size: .9rem;
}

.portal-nav a.active {
    font-weight: 720;
}

.portal-main {
    padding: 1.35rem;
}

.portal-heading h1 {
    font-size: clamp(1.45rem, 2.2vw, 2.05rem);
    font-weight: 760;
    letter-spacing: 0;
}

.stat-card {
    padding: 1rem;
}

.stat-card span {
    font-size: .82rem;
}

.stat-card strong {
    font-size: 1.55rem;
    line-height: 1.1;
    margin-top: .45rem;
}

.table {
    font-size: .91rem;
}

.table > :not(caption) > * > * {
    padding: .65rem .7rem;
}

.status-badge {
    padding: .28rem .55rem;
    font-size: .72rem;
    font-weight: 750;
}

.cta-strip {
    padding: 2rem 0;
}

.content-card:hover,
.feature-card:hover,
.stat-card:hover,
.auth-card:hover,
.section-body:hover,
.hero-card:hover {
    box-shadow: 0 16px 42px rgba(15,23,42,.09);
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .portal-main {
        padding: .9rem;
    }
}

@media (max-width: 576px) {
    .brand-logo {
        height: 44px;
        max-width: 230px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body { animation: none; }
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Mobile portal drawer menu. */
.portal-menu-toggle,
.portal-menu-backdrop {
    display: none;
}

.portal-menu-toggle {
    position: fixed;
    top: .85rem;
    left: .85rem;
    z-index: 1060;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15,23,42,.14);
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
}

.portal-menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-dark);
    transition: transform .2s ease, opacity .2s ease;
}

.portal-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(15,23,42,.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

@media (max-width: 768px) {
    .portal-menu-toggle {
        display: inline-flex;
    }

    .portal-shell {
        display: block;
        min-height: 100vh;
    }

    .portal-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1050;
        width: min(82vw, 292px);
        max-width: 292px;
        height: 100vh;
        padding-top: 4.25rem;
        transform: translateX(-105%);
        transition: transform .24s ease;
        box-shadow: 18px 0 38px rgba(15,23,42,.2);
    }

    .portal-main {
        padding-top: 4.2rem;
    }

    body.portal-menu-open {
        overflow: hidden;
    }

    body.portal-menu-open .portal-sidebar {
        transform: translateX(0);
    }

    body.portal-menu-open .portal-menu-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    body.portal-menu-open .portal-menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    body.portal-menu-open .portal-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.portal-menu-open .portal-menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}








.anniversary-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
    gap: 1.4rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 16px 42px rgba(15,23,42,.08);
}

.anniversary-panel h2 {
    color: var(--brand-dark);
    font-size: clamp(1.65rem, 2.4vw, 2.4rem);
    font-weight: 780;
    letter-spacing: 0;
    margin-bottom: .65rem;
}

.anniversary-panel p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0;
}

.anniversary-panel picture,
.anniversary-panel img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    max-height: 340px;
    object-fit: cover;
    border-radius: 14px;
}

@media (max-width: 768px) {
    .anniversary-panel {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .anniversary-panel picture,
    .anniversary-panel img {
        min-height: 210px;
    }
}

/* Familiar Galas admin flow, matching the legacy live-site muscle memory. */
.legacy-gala-heading {
    align-items: end;
}

.legacy-gala-heading h1,
.legacy-gala-create h2,
.legacy-gala-list h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0;
}

.legacy-link {
    color: #176a83;
    font-weight: 700;
    text-decoration: none;
}

.legacy-link:hover {
    text-decoration: underline;
}

.legacy-gala-create,
.legacy-gala-list {
    background: #d8fbff;
    border-radius: 4px;
}

.legacy-form-grid,
.legacy-advanced-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
}

.legacy-form-grid label,
.legacy-advanced-fields label {
    color: #173948;
    font-style: italic;
    font-weight: 700;
}

.legacy-form-grid .form-control,
.legacy-advanced-fields .form-control,
.legacy-advanced-fields .form-select,
.legacy-search-form .form-control {
    margin-top: .35rem;
    border-color: #a9d6e4;
    border-radius: 4px;
    background: #d7efff;
}

.legacy-advanced-fields {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: .85rem;
}

.legacy-check {
    display: flex;
    gap: .45rem;
    align-items: center;
    padding-top: 1.85rem;
}

.legacy-event-picker {
    margin-top: 1.5rem;
}

.legacy-event-title {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: .7rem;
}

.legacy-event-title h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.legacy-event-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1rem;
    padding: .45rem 0;
    border-bottom: 1px solid rgba(47, 157, 180, .25);
}

.legacy-distance-check {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin: 0 .85rem .35rem 0;
    white-space: nowrap;
}

.legacy-form-actions {
    display: flex;
    gap: .75rem;
    margin-top: 1.2rem;
}

.legacy-list-top {
    display: grid;
    grid-template-columns: minmax(120px, 240px) minmax(280px, 1fr);
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

.legacy-search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
}

.legacy-gala-table {
    min-width: 1120px;
}

.legacy-gala-table thead th {
    background: #2fa8ed;
    color: #fff;
    border-color: rgba(255,255,255,.4);
    font-style: italic;
    vertical-align: middle;
}

.legacy-gala-table tbody td {
    background: rgba(255,255,255,.78);
    border-color: #d5dbe0;
    vertical-align: top;
}

.legacy-action-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .45rem;
    min-width: 128px;
}

.legacy-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 28px;
    padding: .22rem .55rem;
    border: 1px solid #16707a;
    border-radius: 4px;
    background: #bdfcff;
    color: #16515d;
    font-size: .9rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
}

.legacy-action-btn:hover {
    background: #a9f1f4;
    color: #0e3e47;
}

.legacy-save-btn {
    cursor: pointer;
}

.legacy-muted-label {
    color: #6b7280;
    font-size: .85rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .legacy-list-top,
    .legacy-search-form,
    .legacy-event-row {
        grid-template-columns: 1fr;
    }

    .legacy-check {
        padding-top: 0;
    }
}

/* Step-based gala flow and parent shop polish. */
.home-photo-hero {
    position: relative;
    min-height: min(72vh, 680px);
    display: grid;
    align-items: end;
    overflow: hidden;
    color: #fff;
    background: #0f2437;
}

.home-photo-hero picture,
.home-photo-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 22, 34, .86), rgba(9, 22, 34, .54) 48%, rgba(9, 22, 34, .22));
}

.home-photo-content {
    position: relative;
    z-index: 1;
    padding-top: clamp(5rem, 10vh, 7rem);
    padding-bottom: clamp(3.5rem, 10vh, 6rem);
    max-width: 1120px;
}

.home-photo-content h1 {
    max-width: 780px;
    font-size: clamp(2.3rem, 5vw, 5.1rem);
    line-height: 1.02;
    font-weight: 850;
    letter-spacing: 0;
    margin: .6rem 0 1rem;
}

.home-photo-content p {
    max-width: 620px;
    color: rgba(255,255,255,.9);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.65;
    margin: 0;
}

.gala-workflow-heading {
    align-items: center;
}

.mobile-action-row {
    display: flex;
    gap: .6rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.workflow-section {
    margin-bottom: 1.4rem;
}

.workflow-step-title {
    display: flex;
    gap: .8rem;
    align-items: center;
    margin: 0 0 .8rem;
}

.workflow-step-title > span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    flex: 0 0 auto;
}

.workflow-step-title h2,
.shop-heading h1,
.shop-cart h2,
.shop-card h2 {
    letter-spacing: 0;
}

.workflow-step-title h2 {
    margin: 0;
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    color: var(--brand-dark);
}

.swimmer-entry-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.swimmer-entry-top h3,
.content-card h3 {
    font-size: 1.12rem;
    margin: 0 0 .25rem;
    color: var(--brand-dark);
}

.swimmer-entry-top p {
    color: var(--muted);
    margin: 0;
}

.availability-box {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .75rem;
}

.session-chip-list {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
}

.session-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .35rem .75rem;
    background: #fff;
}

.shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.2rem;
    align-items: start;
}

.shop-filter-bar {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.shop-filter {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--brand-dark);
    border-radius: 999px;
    padding: .5rem .9rem;
    font-weight: 700;
}

.shop-filter.active,
.shop-filter:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1rem;
}

.shop-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(15,23,42,.07);
}

.shop-card-media {
    aspect-ratio: 4 / 3;
    background: #eef6f7;
}

.shop-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-card-body {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: .9rem;
    flex: 1;
}

.shop-card-body span {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.shop-card h2 {
    font-size: 1rem;
    margin: .1rem 0 0;
    color: var(--brand-dark);
}

.shop-card strong {
    font-size: 1.05rem;
    color: var(--brand-dark);
}

.shop-size-row {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}

.shop-size-row button {
    min-width: 38px;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-weight: 700;
}

.shop-size-row button.active,
.shop-size-row button:hover {
    border-color: var(--brand);
    background: #e8f7fb;
    color: var(--brand);
}

.shop-cart {
    position: sticky;
    top: 1rem;
}

.shop-cart-line,
.shop-cart-total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--line);
}

.shop-cart-line small {
    display: block;
    color: var(--muted);
}

.shop-cart-total {
    margin: .6rem 0 1rem;
    border-bottom: 0;
    font-size: 1.05rem;
}

@media (max-width: 900px) {
    .shop-layout,
    .swimmer-entry-top {
        grid-template-columns: 1fr;
    }

    .shop-cart {
        position: static;
    }
}

@media (max-width: 768px) {
    .home-photo-hero {
        min-height: 620px;
    }

    .home-photo-overlay {
        background: linear-gradient(0deg, rgba(9, 22, 34, .92), rgba(9, 22, 34, .42));
    }

    .mobile-action-row,
    .mobile-action-row .btn,
    .mobile-action-row .status-badge {
        width: 100%;
        justify-content: center;
    }

    .workflow-step-title {
        align-items: flex-start;
    }

    .mobile-stack-table,
    .mobile-stack-table thead,
    .mobile-stack-table tbody,
    .mobile-stack-table tr,
    .mobile-stack-table th,
    .mobile-stack-table td {
        display: block;
        width: 100%;
    }

    .mobile-stack-table thead {
        display: none;
    }

    .mobile-stack-table tr {
        border: 1px solid var(--line);
        border-radius: 8px;
        margin-bottom: .75rem;
        padding: .55rem;
        background: #fff;
    }

    .mobile-stack-table td {
        border: 0;
        padding: .35rem .25rem;
    }

    .mobile-stack-table td::before {
        content: attr(data-label);
        display: block;
        color: var(--muted);
        font-size: .75rem;
        font-weight: 800;
        text-transform: uppercase;
        margin-bottom: .1rem;
    }

    .event-note-row {
        margin-top: -.4rem;
        background: #f8fafc !important;
    }

    .event-note-row td:first-child,
    .event-note-row td::before {
        display: none;
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .portal-sidebar,
    .portal-menu-toggle,
    .portal-menu-backdrop,
    .mobile-action-row,
    .btn {
        display: none !important;
    }

    .portal-shell,
    .portal-main {
        display: block;
        padding: 0;
        margin: 0;
    }

    .content-card,
    .soft-panel {
        box-shadow: none;
        break-inside: avoid;
    }
}
/* Turquoise theme preview requested for the whole site. */
:root {
    --brand: #0aaeb8;
    --brand-2: #58c7c5;
    --brand-dark: #047481;
    --accent: #58c7c5;
    --soft: #effdfe;
    --line: #cceff1;
}

body,
.portal-body {
    background: #eefafa;
}

.site-header,
.navbar,
.content-card,
.feature-card,
.hero-card,
.auth-card,
.stat-card,
.shop-card,
.anniversary-panel {
    border-color: #cceff1;
}

.navbar .nav-link,
.section-heading h2,
.privacy-content h2,
.privacy-content h3,
.portal-heading h1,
.workflow-step-title h2,
.swimmer-entry-top h3,
.content-card h3,
.shop-card h2,
.shop-card strong,
.shop-cart-total strong {
    color: #047481;
}

.btn-primary {
    --bs-btn-bg: #0aaeb8;
    --bs-btn-border-color: #0aaeb8;
    --bs-btn-hover-bg: #047481;
    --bs-btn-hover-border-color: #047481;
    --bs-btn-active-bg: #035f68;
    --bs-btn-active-border-color: #035f68;
}

.btn-outline-primary {
    --bs-btn-color: #047481;
    --bs-btn-border-color: #0aaeb8;
    --bs-btn-hover-bg: #0aaeb8;
    --bs-btn-hover-border-color: #0aaeb8;
    --bs-btn-active-bg: #047481;
    --bs-btn-active-border-color: #047481;
}

.page-hero,
.cta-strip {
    background: linear-gradient(135deg, #047481, #0aaeb8 58%, #58c7c5);
}

.portal-sidebar {
    background: linear-gradient(180deg, #035f68, #047481 48%, #0697a4);
}

.portal-user,
.portal-nav .nav-logout,
.portal-nav .disabled {
    border-color: rgba(218, 255, 255, .28);
}

.portal-user small,
.portal-nav a,
.portal-nav span {
    color: #dffefe;
}

.portal-nav a.active {
    background: rgba(255,255,255,.22);
    color: #fff;
    box-shadow: inset 3px 0 0 #b9ffff;
}

.portal-nav a:hover,
.portal-nav .nav-logout:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
}

.detail-grid div,
.soft-panel,
.mini-card,
.availability-box,
.demo-box,
.section-body {
    background: #f7ffff;
    border-color: #cceff1;
}

.status-submitted,
.status-under_review,
.status-closed,
.status-completed,
.status-final_submitted,
.status-assigned,
.status-invited,
.status-draft {
    background: #d9fbfd;
    color: #047481;
}

.workflow-step-title > span,
.section-number,
.timeline-item::before {
    background: #0aaeb8;
}

.shop-filter.active,
.shop-filter:hover,
.shop-size-row button.active,
.shop-size-row button:hover {
    border-color: #0aaeb8;
}

.shop-filter.active,
.shop-filter:hover {
    background: #0aaeb8;
}

.shop-size-row button.active,
.shop-size-row button:hover {
    background: #e7fcfd;
    color: #047481;
}

.home-photo-overlay {
    background: linear-gradient(90deg, rgba(3, 95, 104, .88), rgba(4, 116, 129, .56) 48%, rgba(10, 174, 184, .22));
}

.site-footer {
    background: #035f68;
    color: #dffefe;
}

.legacy-gala-create,
.legacy-gala-list {
    background: #dcfbfd;
}

.legacy-gala-table thead th {
    background: #0aaeb8;
}

.legacy-action-btn {
    border-color: #047481;
    background: #c8fbff;
    color: #035f68;
}

.legacy-action-btn:hover {
    background: #aef6fb;
    color: #034b52;
}

.legacy-form-grid .form-control,
.legacy-advanced-fields .form-control,
.legacy-advanced-fields .form-select,
.legacy-search-form .form-control {
    border-color: #9de8ee;
    background: #f3ffff;
}

@media (max-width: 768px) {
    .home-photo-overlay {
        background: linear-gradient(0deg, rgba(3, 95, 104, .92), rgba(10, 174, 184, .36));
    }
}
.home-photo-hero img {
    object-position: center center;
}

@media (max-width: 768px) {
    .home-photo-hero img {
        object-position: 52% center;
    }
}
/* Configurable appearance settings */
html.theme-font-small { font-size: 87.5%; }
html.theme-font-standard { font-size: 100%; }
html.theme-font-large { font-size: 112.5%; }