:root {
    color-scheme: light dark;
    --bg: #f4f4f5;
    --surface: #ffffff;
    --surface-muted: #e4e4e7;
    --header: #000000;
    --header-soft: #18181b;
    --text: #0a0a0a;
    --muted: #52525b;
    --border: #a1a1aa;
    --accent: #facc15;
    --accent-strong: #ca8a04;
    --gold-text-gradient: linear-gradient(180deg, #fff8b8 0%, #f5c21b 42%, #d17000 100%);
    --metal-button-gradient: linear-gradient(45deg, #B67B03 0%, #DAAF08 45%, #FEE9A0 70%, #DAAF08 85%, #B67B03 90% 100%);
    --focus: #0b63ce;
    --shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #09090b;
        --surface: #18181b;
        --surface-muted: #27272a;
        --header: #000000;
        --header-soft: #18181b;
        --text: #fafafa;
        --muted: #d4d4d8;
        --border: #3f3f46;
        --accent: #facc15;
        --accent-strong: #fde047;
        --gold-text-gradient: linear-gradient(180deg, #fff8b8 0%, #f5c21b 42%, #d17000 100%);
        --metal-button-gradient: linear-gradient(45deg, #B67B03 0%, #DAAF08 45%, #FEE9A0 70%, #DAAF08 85%, #B67B03 90% 100%);
        --focus: #74a7ff;
        --shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
    }
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f4f5;
    --surface: #ffffff;
    --surface-muted: #e4e4e7;
    --header: #000000;
    --header-soft: #18181b;
    --text: #0a0a0a;
    --muted: #52525b;
    --border: #a1a1aa;
    --accent: #facc15;
    --accent-strong: #ca8a04;
    --gold-text-gradient: linear-gradient(180deg, #fff8b8 0%, #f5c21b 42%, #d17000 100%);
    --metal-button-gradient: linear-gradient(45deg, #B67B03 0%, #DAAF08 45%, #FEE9A0 70%, #DAAF08 85%, #B67B03 90% 100%);
    --focus: #0b63ce;
    --shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #09090b;
    --surface: #18181b;
    --surface-muted: #27272a;
    --header: #000000;
    --header-soft: #18181b;
    --text: #fafafa;
    --muted: #d4d4d8;
    --border: #3f3f46;
    --accent: #facc15;
    --accent-strong: #fde047;
    --gold-text-gradient: linear-gradient(180deg, #fff8b8 0%, #f5c21b 42%, #d17000 100%);
    --metal-button-gradient: linear-gradient(45deg, #B67B03 0%, #DAAF08 45%, #FEE9A0 70%, #DAAF08 85%, #B67B03 90% 100%);
    --focus: #74a7ff;
    --shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
}

@keyframes gold-bling {
    0%,
    78%,
    100% {
        filter: brightness(1) saturate(1);
        box-shadow: 0 0 0 rgba(250, 204, 21, 0);
    }

    82% {
        filter: brightness(1.28) saturate(1.22);
        box-shadow: 0 0 18px rgba(250, 204, 21, 0.36);
    }

    86% {
        filter: brightness(0.96) saturate(1);
        box-shadow: 0 0 5px rgba(250, 204, 21, 0.18);
    }

    91% {
        filter: brightness(1.18) saturate(1.16);
        box-shadow: 0 0 14px rgba(250, 204, 21, 0.3);
    }
}

@keyframes gold-text-bling {
    0%,
    80%,
    100% {
        text-shadow: 0 0 0 rgba(250, 204, 21, 0);
    }

    85% {
        text-shadow: 0 0 10px rgba(250, 204, 21, 0.54), 0 0 2px rgba(255, 255, 255, 0.72);
    }

    92% {
        text-shadow: 0 0 6px rgba(250, 204, 21, 0.34);
    }
}

@keyframes gold-text-flare {
    0%,
    18% {
        background-position: -180% 0;
    }

    42% {
        background-position: 180% 0;
    }

    100% {
        background-position: 180% 0;
    }
}

@keyframes metal-button-shine {
    0%,
    100% {
        filter: brightness(1);
    }

    48% {
        filter: brightness(1.12);
    }
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
    font-family: Montserrat, "Source Sans 3", "Source Sans Pro", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, transparent 0 47%, rgba(250, 204, 21, 0.05) 48%, transparent 49% 100%),
        linear-gradient(60deg, transparent 0 53%, rgba(255, 255, 255, 0.035) 54%, transparent 55% 100%);
    background-size: 220px 220px, 280px 280px;
    opacity: 0.42;
    z-index: -1;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-inline: clamp(16px, 2.2vw, 44px);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    z-index: 20;
}

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

.site-header {
    background: var(--header);
    border-bottom: 1px solid rgba(250, 204, 21, 0.55);
    color: #fff;
}

.site-footer {
    position: relative;
    background: var(--header);
    border-top: 1px solid var(--border);
    color: #ded8c8;
    flex-shrink: 0;
    overflow: hidden;
}

.header-inner {
    min-height: 144px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img {
    display: block;
    width: 56px;
    height: auto;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.site-nav a {
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--accent);
}

.theme-toggle {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    box-shadow: none;
}

.theme-toggle-track {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 999px;
    background: #d9dde4;
    transition: background 0.25s ease, box-shadow 0.25s ease;
    box-shadow: inset 0 1px 4px rgba(17, 24, 39, 0.18);
}

.theme-toggle-knob {
    position: absolute;
    left: 4px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.24);
    transform: translateX(26px);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.25s ease, box-shadow 0.25s ease;
    z-index: 2;
}

.theme-toggle-symbol {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    translate: 0 -50%;
    opacity: 0.78;
    pointer-events: none;
    z-index: 1;
}

.theme-toggle-moon {
    left: 10px;
    border-radius: 50%;
    background: transparent;
    box-shadow: inset -4px 0 0 #667085;
}

.theme-toggle-sun {
    right: 9px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 -7px 0 -5px #ffffff,
        0 7px 0 -5px #ffffff,
        7px 0 0 -5px #ffffff,
        -7px 0 0 -5px #ffffff,
        5px 5px 0 -5px #ffffff,
        -5px 5px 0 -5px #ffffff,
        5px -5px 0 -5px #ffffff,
        -5px -5px 0 -5px #ffffff;
}

.theme-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root[data-theme="dark"] .theme-toggle-track {
    background: #202124;
    box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.72);
}

:root[data-theme="dark"] .theme-toggle-knob {
    transform: translateX(0);
    background: #111317;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.62), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.theme-toggle:hover .theme-toggle-track {
    box-shadow: inset 0 1px 5px rgba(15, 23, 42, 0.26), 0 0 0 3px rgba(250, 204, 21, 0.16);
}

.nav-cta {
    min-height: 40px;
    padding: 9px 22px;
    border-radius: 999px;
    border: 2px solid var(--accent);
    background: var(--metal-button-gradient);
    color: #050507 !important;
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.18), 0 0 18px rgba(250, 204, 21, 0.22);
    animation: gold-bling 4.8s ease-in-out infinite;
}

.main-content {
    flex: 1 0 auto;
    padding: clamp(24px, 3vw, 48px) clamp(16px, 2.2vw, 44px) 72px;
}

.hero,
.page-heading,
.panel,
.card,
.event-card,
.empty-state,
.notice,
.health-list {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.hero,
.page-heading,
.panel,
.empty-state,
.notice {
    width: 100%;
    padding: clamp(28px, 4vw, 72px);
}

.hero {
    position: relative;
    min-height: clamp(420px, 42vw, 660px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18)),
        linear-gradient(135deg, #52525b 0%, #858585 48%, #d4d4d8 100%);
    color: #fff;
    box-shadow: var(--shadow);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 8% 10% auto;
    width: min(36vw, 360px);
    aspect-ratio: 3 / 1;
    border-bottom: 3px solid rgba(17, 19, 23, 0.86);
    transform: skewX(-18deg);
    opacity: 0.55;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1,
.page-heading h1 {
    width: min(100%, 1240px);
    margin: 0;
    font-family: "Source Sans 3", "Source Sans Pro", Montserrat, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(2.1rem, 5vw, 4.75rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-transform: uppercase;
}

.hero p,
.page-heading p {
    width: min(100%, 1120px);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.eyebrow {
    position: relative;
    display: inline-block;
    margin: 0 0 12px;
    color: var(--accent);
    background:
        linear-gradient(65deg, transparent 0 34%, rgba(255, 255, 255, 0.18) 39%, rgba(255, 255, 255, 0.42) 44%, transparent 50% 100%),
        var(--gold-text-gradient);
    background-size: 220% 100%, 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: "Source Sans 3", "Source Sans Pro", Montserrat, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 #6e4414, 0 0 14px rgba(250, 204, 21, 0.22);
    animation: gold-text-bling 5.6s ease-in-out infinite, gold-text-flare 6.4s linear infinite;
}

.outline-word {
    position: absolute;
    right: clamp(18px, 5vw, 56px);
    top: 36px;
    margin: 0;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.46);
    font-size: clamp(3rem, 10vw, 8.5rem);
    font-weight: 800;
    line-height: 1;
    opacity: 0.75;
    text-transform: uppercase;
}

.actions,
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.actions {
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    border: 2px solid var(--accent);
    border-radius: 10px;
    background: var(--metal-button-gradient);
    color: #050507;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.16), 0 10px 22px rgba(0, 0, 0, 0.18);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    animation: metal-button-shine 4.8s ease-in-out infinite;
}

.button-secondary {
    animation: none;
    background: transparent;
    color: var(--text);
}

.button-disabled,
.button:disabled,
.button.is-busy,
button:disabled {
    animation: none;
    border-color: var(--border);
    background: var(--surface-muted);
    color: var(--muted);
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
    transform: none !important;
}

.hero .button-secondary {
    border-color: rgba(255, 255, 255, 0.72);
    color: #fff;
}

.hero .button,
.nav-cta {
    border-radius: 999px;
}

.nav-admin-cta {
    min-height: 40px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--text) !important;
    font-weight: 700;
}

.nav-admin-cta:hover {
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    border-color: var(--accent-strong);
    transform: translateY(-1px);
}

.button:hover {
    animation: none;
    background: var(--metal-button-gradient);
    border-color: var(--accent-strong);
    color: #050507;
    transform: translateY(-1px);
}

.button-secondary:hover {
    animation: none;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border-color: var(--accent-strong);
    color: var(--text);
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .nav-cta,
    .eyebrow,
    .button {
        animation: none;
    }
}

.panel,
.grid,
.event-list,
.detail-grid,
.health-list {
    margin-top: 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    padding: 24px;
}

.feature-band {
    background: var(--surface-muted);
    border-left: 8px solid var(--accent);
}

.feature-band h2 {
    width: min(100%, 1120px);
    margin-bottom: 24px;
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-transform: uppercase;
}

.service-tile {
    min-height: 220px;
    background: #a1a1aa;
    border-color: #a1a1aa;
    color: #000;
}

.service-tile h3 {
    margin: 14px 0 8px;
    text-transform: uppercase;
}

.tile-icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #111317;
    font-weight: 900;
}

.card h2,
.panel h2 {
    margin-top: 0;
}

.notice {
    margin-top: 24px;
    border-color: var(--accent);
    border-width: 2px;
}

.notice-error {
    border-color: #b42318;
}

.notice p {
    margin: 0;
}

.notice p + p {
    margin-top: 10px;
}

.error-reference {
    color: var(--muted);
    font-size: 0.95rem;
}

.error-reference strong {
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

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

.empty-state h2 {
    margin-top: 0;
    color: var(--text);
}

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

.event-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-left: 8px solid var(--accent);
}

.event-card h2 {
    margin: 0 0 16px;
}

.event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.event-detail-heading .meta-grid {
    margin-top: 24px;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 0;
}

.meta-grid div {
    min-width: 0;
}

.meta-grid dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meta-grid dd {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
    gap: 24px;
    align-items: start;
}

.address-block {
    display: grid;
    gap: 4px;
    font-style: normal;
}

.service-list {
    display: grid;
    gap: 18px;
}

.service-item {
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.service-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.service-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: start;
}

.service-heading h3 {
    margin: 0;
}

.price-stack {
    display: grid;
    justify-items: end;
    gap: 2px;
    white-space: nowrap;
}

.price-stack span {
    font-weight: 800;
}

.price-stack small,
.requirements-summary {
    color: var(--muted);
}

.health-list {
    padding: 0;
}

.health-list div {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.health-list div:first-child {
    border-top: 0;
}

.health-list dt {
    color: var(--muted);
    font-weight: 700;
}

.health-list dd {
    margin: 0;
}

.site-footer {
    min-height: 96px;
    padding: 24px 0;
    color: #e4e4e7;
}

.site-footer .container {
    position: relative;
    z-index: 1;
    padding-right: clamp(112px, 13vw, 184px);
}

.footer-heli-icon {
    position: absolute;
    right: clamp(14px, 2.6vw, 40px);
    bottom: 10px;
    width: clamp(76px, 9vw, 132px);
    height: auto;
    opacity: 0.86;
    pointer-events: none;
    transform: rotate(-4deg);
}

.form-panel {
    display: grid;
    gap: 20px;
    margin-top: 24px;
    padding: clamp(18px, 3vw, 32px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.admin-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 12px;
}

.admin-filter-tabs .button {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 0.95rem;
}

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

.admin-registration-card {
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 12px;
}

.admin-registration-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.admin-registration-summary h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.admin-registration-summary p {
    margin: 2px 0;
}

.admin-registration-note {
    padding: 8px 12px;
    background: var(--surface-muted);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    font-size: 0.95rem;
}

.admin-registration-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
}

.admin-registration-actions form {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-end;
}

.admin-registration-actions .button {
    min-height: 38px;
    padding: 6px 16px;
}

.admin-registration-reject input[name="reason"] {
    min-width: 220px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-muted);
    color: var(--text);
}

.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;
}

.panel > .form-panel {
    margin-top: 16px;
    padding: 0;
    border: 0;
    background: transparent;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    display: grid;
    gap: 7px;
}

.checkbox-field {
    display: inline-flex;
    width: fit-content;
    min-width: 0;
    min-height: 32px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    align-self: end;
    padding: 0;
}

.checkbox-field > span {
    order: 2;
    line-height: 1.2;
    white-space: nowrap;
}

.field label {
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.field input[type="checkbox"] {
    order: 1;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    min-height: 22px;
    padding: 0;
    accent-color: var(--accent);
}

.field textarea {
    resize: vertical;
}

.custom-control {
    position: relative;
    width: 100%;
}

.custom-control > .is-enhanced-control {
    display: none;
}

.custom-trigger {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 44px 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--surface) 94%, var(--accent) 6%), var(--surface)),
        var(--surface);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.custom-trigger:hover {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.custom-trigger:active {
    transform: translateY(1px);
}

.custom-control.is-open .custom-trigger {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.custom-control.is-invalid .custom-trigger {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.16);
}

.custom-trigger-value {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-trigger-icon,
.custom-calendar-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    translate: 0 -50%;
    color: var(--accent-strong);
    pointer-events: none;
}

.custom-trigger-icon::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    rotate: 45deg;
    transition: rotate 160ms ease, top 160ms ease;
}

.custom-control.is-open .custom-trigger-icon::before {
    top: 7px;
    rotate: 225deg;
}

.custom-calendar-icon::before {
    content: "";
    position: absolute;
    inset: 3px 2px 1px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.custom-calendar-icon::after {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    top: 8px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -4px 0 currentColor;
}

.custom-menu,
.custom-calendar {
    position: absolute;
    z-index: 60;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--accent) 70%, var(--border));
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.custom-control.is-open .custom-menu,
.custom-control.is-open .custom-calendar {
    display: block;
}

.custom-menu {
    max-height: min(320px, 50vh);
    overflow: auto;
}

.custom-option {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    padding: 9px 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.custom-option:hover,
.custom-option:focus-visible,
.custom-option[aria-selected="true"] {
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: var(--text);
}

.custom-option[aria-selected="true"] {
    font-weight: 800;
}

.custom-option:disabled {
    color: var(--muted);
    cursor: not-allowed;
    opacity: 0.72;
}

.custom-calendar {
    width: min(100%, 340px);
    min-width: min(318px, 92vw);
    padding: 0;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--accent) 36%, var(--border));
    border-radius: 14px;
    background: var(--surface);
}

.custom-calendar-header {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 10px;
    align-items: center;
    padding: 28px 28px 22px;
    border-top: 7px solid var(--accent);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 74%, transparent);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 42%),
        var(--surface);
}

.custom-calendar-header strong {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 900;
    text-align: center;
}

.calendar-nav,
.calendar-day {
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.calendar-nav {
    display: inline-grid;
    place-items: center;
    min-height: 40px;
    color: var(--muted);
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
}

.calendar-nav:hover,
.calendar-day:hover,
.calendar-day:focus-visible {
    border-color: transparent;
    background: color-mix(in srgb, var(--accent) 13%, transparent);
    box-shadow: none;
}

.custom-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
    padding: 22px 28px 28px;
}

.calendar-weekday {
    padding: 3px 0 14px;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
    opacity: 0.9;
}

.calendar-day {
    aspect-ratio: 1;
    min-height: 38px;
    padding: 0;
    color: var(--text);
    font-weight: 700;
}

.calendar-day.is-muted {
    color: color-mix(in srgb, var(--muted) 58%, transparent);
    font-weight: 500;
}

.calendar-day.is-today:not(.is-selected)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    translate: -50% 0;
}

.calendar-day {
    position: relative;
}

.calendar-day.is-selected {
    border-color: transparent;
    background: var(--metal-button-gradient);
    color: #050507;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 26%, transparent);
}

.field-error {
    margin: 0;
    color: #b42318;
    font-weight: 700;
}

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

.checklist {
    display: grid;
    gap: 16px;
    padding: 0;
    list-style: none;
}

.checklist li {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.badge {
    display: inline-flex;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
}

.document-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.upload-form,
.document-list,
.admin-document-list,
.admin-document-actions,
.reject-form,
.status-form {
    display: grid;
    gap: 10px;
}

.upload-form input,
.reject-form input,
.status-form input,
.status-form select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
}

.document-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.document-list li,
.admin-document-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.status-pill {
    justify-self: start;
    padding: 2px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    font-weight: 700;
}

.link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--accent-strong);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.admin-document-card h3 {
    margin: 0;
}

.admin-document-card p {
    margin: 4px 0;
}

.compact-list {
    margin-top: 0;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    align-items: end;
}

.admin-form-grid .checkbox-field {
    margin-top: 0;
}

.admin-create-form .actions {
    margin-top: 4px;
}

.admin-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.admin-nav-grid .button {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center;
}

.diagnostic-log-list {
    display: grid;
    gap: 14px;
}

.diagnostic-log-entry {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface-muted) 35%, transparent);
}

.diagnostic-log-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.diagnostic-log-heading strong {
    color: var(--accent-strong);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.diagnostic-log-heading span {
    color: var(--muted);
    font-size: 0.9rem;
}

.diagnostic-log-entry p {
    margin: 0;
    font-weight: 800;
}

.diagnostic-log-entry pre {
    max-height: 320px;
    margin: 0;
    overflow: auto;
    padding: 12px;
    border-radius: 8px;
    background: var(--header);
    color: #f4f4f5;
    font-size: 0.82rem;
    white-space: pre-wrap;
}

.admin-record-list {
    display: grid;
    gap: 16px;
}

.admin-record-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.admin-event-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.admin-record-card h3 {
    margin: 0 0 6px;
}

.admin-record-card p {
    margin: 3px 0;
}

.form-actions {
    display: flex;
    align-items: end;
}

.js-enabled form[data-autosave="true"] button[type="submit"] {
    display: none;
}

.autosave-status {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    min-height: 28px;
    margin-top: 4px;
    padding: 4px 10px;
    border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: normal;
}

.autosave-status[data-state="saving"] {
    color: var(--accent-strong);
}

.autosave-status[data-state="saved"] {
    color: #15803d;
}

.autosave-status[data-state="error"] {
    border-color: #b42318;
    background: rgba(180, 35, 24, 0.12);
    color: #fca5a5;
}

:root[data-theme="light"] .autosave-status[data-state="error"] {
    color: #b42318;
}

.admin-record-summary {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-record-summary strong {
    overflow: hidden;
    color: var(--text);
    font-size: 1.05rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-record-summary span {
    color: var(--muted);
    font-size: 0.88rem;
}

.admin-edit-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.admin-modal-open {
    overflow: hidden;
}

.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: clamp(14px, 3vw, 32px);
    background: rgba(0, 0, 0, 0.68);
    opacity: 0;
    transition: opacity 160ms ease;
}

.admin-modal-backdrop.is-open {
    opacity: 1;
}

.admin-modal-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 80vw;
    height: 80vh;
    max-width: 1480px;
    border: 1px solid color-mix(in srgb, var(--accent) 46%, var(--border));
    border-radius: 14px;
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
    overflow: hidden;
}

.admin-modal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
    background: var(--header);
    color: #fff;
}

.admin-modal-title {
    min-width: 0;
    overflow: hidden;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-modal-close {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(250, 204, 21, 0.48);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.admin-modal-close:hover {
    background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.admin-modal-body {
    min-width: 0;
    overflow: auto;
    padding: clamp(18px, 3vw, 36px);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 6%, transparent), transparent 34rem),
        var(--bg);
}

.admin-modal-body .page-heading,
.admin-modal-body .panel,
.admin-modal-body .notice {
    max-width: none;
}

.admin-doc-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    min-height: 60vh;
}

.admin-doc-viewer-image {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    background: var(--surface-muted);
}

.admin-doc-viewer-frame {
    width: 100%;
    height: 80vh;
    border: 0;
    border-radius: 6px;
    background: #fff;
}

.admin-doc-viewer-fallback {
    color: var(--muted);
    margin: 0;
}

.admin-modal-body .page-heading:first-child {
    margin-top: 0;
}

.admin-modal-form-shell {
    display: grid;
    gap: 22px;
    max-width: 1120px;
    margin: 0 auto;
}

.admin-modal-form-shell .admin-form-grid,
.admin-modal-body .admin-form-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 20px 22px;
    align-items: start;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid color-mix(in srgb, var(--border) 78%, var(--accent));
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface) 96%, var(--accent) 4%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

.admin-modal-form-shell .field {
    min-width: 0;
}

.admin-modal-form-shell .field > span,
.admin-modal-body .field > span {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 850;
}

.admin-modal-form-shell .field input,
.admin-modal-form-shell .field textarea,
.admin-modal-form-shell .custom-trigger {
    border-radius: 8px;
}

.admin-modal-form-shell .field textarea {
    min-height: 104px;
}

.admin-modal-form-shell .field:has(textarea) {
    align-self: stretch;
}

.admin-modal-form-shell .checkbox-field {
    min-height: 32px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    align-self: center;
    gap: 9px;
}

.admin-modal-form-shell .checkbox-field input[type="checkbox"] {
    flex: 0 0 auto;
}

.admin-modal-form-shell > form:not([data-autosave="true"]) {
    display: flex;
    justify-content: flex-start;
    padding: 0 clamp(18px, 3vw, 30px) 4px;
}

.admin-modal-form-shell > form:not([data-autosave="true"]) .button {
    min-width: 150px;
}

.admin-modal-form-shell .autosave-status {
    grid-column: 1 / -1;
    margin-top: 0;
}

.admin-modal-body .button {
    min-height: 46px;
    border-radius: 10px;
}

@media (max-width: 680px) {
    .container {
        padding-inline: 12px;
    }

    .header-inner {
        min-height: 92px;
        align-items: center;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 12px 0;
    }

    .brand {
        flex: 0 0 auto;
    }

    .brand img {
        width: 36px;
    }

    .site-nav {
        flex: 1 1 auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 6px;
        min-width: 0;
        overflow: visible;
        font-size: 0.66rem;
        line-height: 1;
        white-space: nowrap;
    }

    .site-nav a:not(.nav-cta) {
        padding: 8px 0;
    }

    .theme-toggle {
        width: 48px;
        height: 28px;
        min-height: 28px;
        flex: 0 0 48px;
    }

    .theme-toggle-track {
        padding: 0;
    }

    .theme-toggle-knob {
        left: 4px;
        top: 4px;
        width: 20px;
        height: 20px;
        transform: translateX(20px);
    }

    .theme-toggle-symbol {
        width: 11px;
        height: 11px;
    }

    :root[data-theme="dark"] .theme-toggle-knob {
        transform: translateX(0);
    }

    .nav-cta {
        margin-left: 0;
        min-height: 34px;
        padding: 8px 12px;
    }

    .main-content {
        padding-inline: 12px;
    }

    .hero {
        min-height: 360px;
        padding: 28px 24px;
    }

    .hero h1,
    .page-heading h1 {
        font-size: clamp(1.65rem, 8vw, 2.15rem);
        max-width: 20rem;
    }

    .feature-band h2 {
        font-size: clamp(1.35rem, 6vw, 1.65rem);
        max-width: 20rem;
    }

    .hero p,
    .page-heading p {
        max-width: 20rem;
    }

    .outline-word {
        right: -82px;
        top: 42px;
        opacity: 0.34;
    }

    .health-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .event-card,
    .detail-grid,
    .service-heading,
    .form-grid,
    .document-row,
    .document-list li,
    .admin-document-card,
    .admin-event-card,
    .admin-edit-card {
        grid-template-columns: 1fr;
    }

    .admin-modal-panel {
        width: 94vw;
        height: 88vh;
    }

    .admin-modal-form-shell .admin-form-grid,
    .admin-modal-body .admin-form-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .event-actions {
        justify-content: stretch;
    }

    .event-actions .button {
        width: 100%;
    }

    .price-stack {
        justify-items: start;
        white-space: normal;
    }

    .site-footer {
        min-height: 82px;
    }

    .site-footer .container {
        padding-right: 92px;
    }

    .footer-heli-icon {
        right: 10px;
        bottom: 8px;
        width: 76px;
    }
}

