:root {
    --brand-primary: #0d6847;
    --brand-secondary: #071a2b;
    --brand-accent: #c7f36b;
    --brand-primary-hover: color-mix(in srgb, var(--brand-primary), black 18%);
    --brand-primary-soft: color-mix(in srgb, var(--brand-primary), white 90%);
    --canvas: #f4f7f5;
    --surface: #ffffff;
    --surface-muted: #edf3f0;
    --surface-warm: #fbfaf5;
    --text: #15231d;
    --text-muted: #52635b;
    --border: #cfd9d4;
    --border-strong: #aebdb5;
    --focus: #2563eb;
    --success: #146c43;
    --warning: #8a4b08;
    --danger: #b42318;
    --info: #075985;
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --radius-sm: .4rem;
    --radius-md: .75rem;
    --radius-lg: 1.15rem;
    --radius-xl: 1.75rem;
    --shadow-card: 0 1px 2px rgb(7 26 43 / 8%), 0 10px 30px rgb(7 26 43 / 4%);
    --shadow-overlay: 0 18px 50px rgb(7 26 43 / 20%);
    --content-max: 75rem;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    min-width: 20rem;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 20rem;
    overflow-x: clip;
    color: var(--text);
    background: var(--canvas);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
    font: inherit;
}

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

a {
    color: var(--brand-primary);
    text-underline-offset: .18em;
}

a:hover {
    color: var(--brand-primary-hover);
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3 {
    color: var(--text);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
}

h1 {
    font-size: clamp(2.45rem, 8vw, 5.15rem);
}

h2 {
    font-size: clamp(1.85rem, 5vw, 3.25rem);
}

h3 {
    font-size: 1.25rem;
}

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

h1:focus {
    outline: none;
}

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

.skip-link {
    position: fixed;
    top: .75rem;
    left: .75rem;
    z-index: 2000;
    padding: .7rem 1rem;
    border-radius: var(--radius-sm);
    color: white;
    background: var(--brand-secondary);
    font-weight: 800;
    transform: translateY(-180%);
    transition: transform 140ms ease;
}

.skip-link:focus {
    color: white;
    transform: translateY(0);
}

.public-shell {
    min-height: 100vh;
    background: var(--surface);
    display: flex;
    flex-direction: column;
}

.public-main {
    flex: 1;
}

.public-container {
    width: min(100% - 2rem, var(--content-max));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgb(207 217 212 / 78%);
    background: rgb(255 255 255 / 94%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.site-header-inner {
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-brand {
    min-width: 0;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
}

.site-brand:hover {
    color: var(--text);
}

.site-brand-logo {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    border-radius: .55rem;
}

.site-brand-mark {
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 auto;
    border: 2px solid var(--brand-primary);
    border-radius: .65rem;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    font-size: 1.7rem;
    display: grid;
    place-items: center;
    transform: rotate(-3deg);
}

.sport-icon {
    display: block;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    color: inherit;
    pointer-events: none;
}

.site-brand-copy {
    min-width: 0;
    display: grid;
    line-height: 1.05;
}

.site-brand-copy strong {
    max-width: 12rem;
    overflow: hidden;
    font-size: .98rem;
    font-weight: 850;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-brand-copy small {
    margin-top: .25rem;
    color: var(--text-muted);
    font-size: .67rem;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.desktop-navigation,
.site-header-actions {
    display: none;
}

.mobile-navigation {
    position: static;
}

.mobile-navigation > summary {
    min-height: 2.75rem;
    padding: .55rem .7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .85rem;
    font-weight: 800;
    list-style: none;
}

.mobile-navigation > summary::-webkit-details-marker,
.nav-popover summary::-webkit-details-marker {
    display: none;
}

.menu-icon {
    width: 1.15rem;
    display: grid;
    gap: .2rem;
}

.menu-icon span {
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.mobile-navigation-panel {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    max-height: calc(100vh - 4.5rem);
    padding: .75rem 1rem 1.2rem;
    overflow-y: auto;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-overlay);
    display: grid;
}

.mobile-navigation-panel a {
    min-height: 2.85rem;
    padding: .65rem .8rem;
    border-radius: .55rem;
    color: var(--text);
    display: flex;
    align-items: center;
    font-weight: 750;
    text-decoration: none;
}

.mobile-navigation-panel a:hover,
.mobile-navigation-panel a.active {
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
}

.mobile-navigation-label {
    padding: .9rem .8rem .3rem;
    color: var(--text-muted);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.mobile-navigation-panel .mobile-account-link {
    margin-top: .65rem;
    border: 1px solid var(--border);
    justify-content: center;
}

.public-load-line {
    position: fixed;
    top: 4.45rem;
    left: 0;
    right: 0;
    z-index: 110;
    height: 3px;
    overflow: hidden;
    background: var(--surface-muted);
}

.public-load-line::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -35%;
    width: 35%;
    background: var(--brand-accent);
    animation: loading-line 1.1s ease-in-out infinite;
}

@keyframes loading-line {
    to { left: 110%; }
}

.button {
    min-height: 2.75rem;
    padding: .7rem 1rem;
    border: 1px solid transparent;
    border-radius: .7rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

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

.button-primary {
    color: white;
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.button-primary:hover {
    color: white;
    background: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
}

.button-secondary,
.button-quiet {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border-strong);
}

.button-secondary:hover,
.button-quiet:hover {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    background: var(--brand-primary-soft);
}

.button-large {
    min-height: 3.15rem;
    padding: .85rem 1.2rem;
}

.button-block {
    width: 100%;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.eyebrow {
    margin-bottom: .75rem;
    color: var(--brand-primary);
    font-size: .73rem;
    font-weight: 900;
    letter-spacing: .16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.eyebrow-on-dark {
    color: var(--brand-accent);
}

.home-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--brand-primary), transparent 35%), transparent 31rem),
        linear-gradient(135deg, var(--brand-secondary), color-mix(in srgb, var(--brand-secondary), #153d50 30%));
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -8rem;
    bottom: -9rem;
    width: 23rem;
    height: 23rem;
    border: 1px solid rgb(255 255 255 / 9%);
    border-radius: 50%;
    box-shadow: 0 0 0 4rem rgb(255 255 255 / 2%), 0 0 0 8rem rgb(255 255 255 / 2%);
}

.hero-grid {
    position: relative;
    z-index: 1;
    min-height: min(46rem, calc(100vh - 4.5rem));
    padding-block: clamp(3.5rem, 10vw, 7.5rem);
    display: grid;
    align-items: center;
    gap: 3rem;
}

.hero-copy {
    max-width: 43rem;
}

.hero-copy h1,
.hero-copy h2,
.hero-court-card strong {
    color: white;
}

.hero-copy h1 {
    margin-bottom: 1.3rem;
    max-width: 11ch;
}

.hero-lead {
    max-width: 39rem;
    margin-bottom: 1.8rem;
    color: #dbe8e2;
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
}

.hero-copy .button-secondary {
    color: white;
    border-color: rgb(255 255 255 / 48%);
    background: transparent;
}

.hero-copy .button-secondary:hover {
    border-color: white;
    background: rgb(255 255 255 / 10%);
}

.hero-assurances {
    margin: 2rem 0 0;
    padding: 0;
    color: #dbe8e2;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1.2rem;
    font-size: .84rem;
    font-weight: 700;
    list-style: none;
}

.hero-assurances span {
    margin-right: .25rem;
    color: var(--brand-accent);
}

.hero-court-card {
    width: min(100%, 29rem);
    justify-self: center;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: var(--radius-xl);
    background: rgb(255 255 255 / 8%);
    box-shadow: 0 28px 70px rgb(0 0 0 / 22%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transform: rotate(1.5deg);
}

.court-graphic {
    position: relative;
    aspect-ratio: 1.6;
    margin: 1rem;
    overflow: hidden;
    border: 2px solid rgb(255 255 255 / 78%);
    background: var(--brand-primary);
}

.court-graphic::before,
.court-graphic::after,
.court-net,
.court-kitchen,
.court-center {
    content: "";
    position: absolute;
    background: rgb(255 255 255 / 75%);
}

.court-graphic::before {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
}

.court-net {
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-secondary);
    box-shadow: 0 1px 0 rgb(255 255 255 / 55%);
}

.court-kitchen {
    left: 0;
    right: 0;
    height: 2px;
}

.court-kitchen-left { top: 34%; }
.court-kitchen-right { bottom: 34%; }

.court-center {
    left: 50%;
    width: 2px;
    height: 34%;
}

.court-center-left { top: 0; }
.court-center-right { bottom: 0; }

.court-ball {
    position: absolute;
    top: 22%;
    right: 21%;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: var(--brand-accent);
    box-shadow: .6rem .8rem 1.5rem rgb(0 0 0 / 25%);
}

.venue-snapshot {
    padding: .25rem 1.2rem 1.35rem;
    display: grid;
    gap: 1rem;
}

.venue-snapshot > div {
    min-width: 0;
}

.venue-snapshot strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: .95rem;
}

.snapshot-label {
    margin-bottom: .2rem;
    color: #aebfb8;
    display: block;
    font-size: .65rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.public-service-note {
    margin-top: 1rem;
    padding: .8rem 1rem;
    border: 1px solid #ebc577;
    border-radius: var(--radius-md);
    color: #69400a;
    background: #fff7e7;
    font-size: .9rem;
}

.public-section {
    padding-block: clamp(3.75rem, 8vw, 7rem);
    background: var(--surface);
}

.section-tight {
    padding-top: clamp(3.5rem, 7vw, 5.5rem);
}

.section-surface {
    background: var(--surface-muted);
}

.section-heading {
    max-width: 45rem;
    margin-bottom: 2rem;
}

.section-heading h2 {
    margin-bottom: .9rem;
}

.section-heading > p:last-child,
.split-heading > p,
.two-column-copy p,
.feature-card p,
.compact-court-card p,
.court-card p,
.outline-card p,
.membership-card p {
    color: var(--text-muted);
}

.split-heading {
    max-width: none;
}

.centered-heading {
    margin-inline: auto;
    text-align: center;
}

.feature-card-grid {
    display: grid;
    gap: 1rem;
}

.feature-card {
    min-height: 19rem;
    padding: 1.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text);
    background: var(--surface-warm);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.feature-card:hover {
    color: inherit;
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}

.feature-card-green,
.feature-card-navy {
    border-color: transparent;
    color: white;
}

.feature-card-green {
    background: var(--brand-primary);
}

.feature-card-navy {
    background: var(--brand-secondary);
}

.feature-card-green h3,
.feature-card-navy h3,
.feature-card-green p,
.feature-card-navy p {
    color: white;
}

.feature-card h3 {
    margin-top: auto;
    font-size: 1.65rem;
}

.feature-card p {
    margin-bottom: 1.5rem;
}

.feature-sport-icon {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid color-mix(in srgb, currentColor, transparent 65%);
    border-radius: .8rem;
    font-size: 1.65rem;
}

.text-link {
    color: inherit;
    font-size: .9rem;
    font-weight: 850;
}

.standalone-link {
    color: var(--brand-primary);
    text-decoration: none;
}

.compact-court-grid,
.court-grid,
.card-skeleton-grid {
    display: grid;
    gap: 1rem;
}

.compact-court-card {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
}

.court-card-index {
    width: 3rem;
    height: 3rem;
    border-radius: .75rem;
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    font-weight: 900;
}

.court-card-meta {
    margin-bottom: .4rem;
    color: var(--text-muted);
    display: flex;
    gap: .4rem;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.compact-court-card h3 {
    margin-bottom: .55rem;
}

.compact-court-card p {
    margin-bottom: 0;
}

.confidence-panel {
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: var(--radius-xl);
    color: white;
    background: var(--brand-secondary);
    display: grid;
    gap: 2rem;
}

.confidence-panel h2,
.confidence-panel p {
    color: white;
}

.confidence-panel > div:first-child p:last-child {
    margin-bottom: 0;
    color: #c7d7d0;
}

.confidence-links {
    display: grid;
}

.confidence-links a {
    min-height: 3.5rem;
    padding: .8rem 0;
    border-bottom: 1px solid rgb(255 255 255 / 18%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 800;
    text-decoration: none;
}

.confidence-links a:hover {
    color: var(--brand-accent);
}

.public-page-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(4rem, 10vw, 7rem);
    background: var(--surface-warm);
}

.public-page-hero::after {
    content: "";
    position: absolute;
    right: -5rem;
    bottom: -10rem;
    width: 24rem;
    height: 24rem;
    border: 1px solid color-mix(in srgb, var(--brand-primary), transparent 80%);
    border-radius: 50%;
    box-shadow: 0 0 0 4rem color-mix(in srgb, var(--brand-primary), transparent 96%);
}

.narrow-copy {
    position: relative;
    z-index: 1;
    max-width: 52rem;
    margin-left: max(1rem, calc((100vw - var(--content-max)) / 2));
    margin-right: 1rem;
}

.narrow-copy h1 {
    max-width: 13ch;
    margin-bottom: 1.2rem;
}

.narrow-copy > p:not(.eyebrow) {
    max-width: 42rem;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
}

.court-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.court-card-photo,
.court-card-visual {
    width: 100%;
    aspect-ratio: 1.65;
}

.court-card-photo {
    object-fit: cover;
}

.court-card-visual {
    position: relative;
    overflow: hidden;
    padding: 1.3rem;
    color: white;
    background:
        linear-gradient(90deg, transparent 49.6%, rgb(255 255 255 / 58%) 49.6% 50.4%, transparent 50.4%),
        linear-gradient(0deg, transparent 49.5%, rgb(255 255 255 / 58%) 49.5% 50.5%, transparent 50.5%),
        var(--brand-primary);
    display: flex;
    align-items: flex-end;
}

.court-card-visual::before {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px solid rgb(255 255 255 / 55%);
}

.court-card-visual strong {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 1.1rem;
}

.court-card-body {
    padding: 1.25rem;
}

.court-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.court-card-heading h2 {
    margin: .25rem 0 .75rem;
    font-size: 1.55rem;
}

.surface-label {
    color: var(--text-muted);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.status-pill {
    flex: 0 0 auto;
    padding: .35rem .55rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 850;
    line-height: 1.15;
}

.status-active {
    color: #0e6240;
    border-color: #a7d9bf;
    background: #e4f5ec;
}

.status-warning {
    color: #754006;
    border-color: #ebc577;
    background: #fff2d8;
}

.status-closed {
    color: #8e251d;
    border-color: #efb2ad;
    background: #fde9e7;
}

.amenity-list {
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    list-style: none;
}

.amenity-list li {
    padding: .35rem .6rem;
    border-radius: 999px;
    color: #34463e;
    background: var(--surface-muted);
    font-size: .75rem;
    font-weight: 750;
}

.card-skeleton {
    min-height: 22rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(100deg, #edf1ef 20%, #f8faf9 42%, #edf1ef 64%);
    background-size: 220% 100%;
    animation: skeleton-shift 1.5s ease infinite;
}

@keyframes skeleton-shift {
    to { background-position-x: -220%; }
}

.public-empty-state {
    max-width: 42rem;
    margin-inline: auto;
    padding: clamp(2rem, 7vw, 4rem);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-xl);
    background: var(--surface-warm);
    text-align: center;
}

.public-empty-state h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
}

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

.empty-state-mark {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: 900;
}

.info-band,
.two-column-copy,
.rates-layout,
.policy-layout,
.faq-heading,
.contact-layout {
    display: grid;
    gap: 2rem;
}

.info-band h2,
.two-column-copy h2 {
    margin-bottom: 0;
}

.venue-facts {
    margin: 0;
    display: grid;
    gap: .75rem;
}

.venue-facts > div,
.rate-summary-card dl > div,
.contact-details > div {
    padding-block: .75rem;
    border-bottom: 1px solid var(--border);
}

.venue-facts dt,
.rate-summary-card dt,
.contact-details dt {
    margin-bottom: .2rem;
    color: var(--text-muted);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.venue-facts dd,
.rate-summary-card dd,
.contact-details dd {
    margin: 0;
    font-weight: 750;
}

.price-factor-grid {
    display: grid;
    gap: .75rem;
}

.price-factor-grid article {
    padding: 1.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.price-factor-grid article > span {
    color: var(--brand-primary);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.price-factor-grid h3 {
    margin: .65rem 0 .4rem;
}

.price-factor-grid p {
    margin: 0;
    color: var(--text-muted);
}

.rate-summary-card {
    align-self: start;
    padding: clamp(1.4rem, 5vw, 2rem);
    border-radius: var(--radius-lg);
    color: white;
    background: var(--brand-secondary);
    box-shadow: var(--shadow-card);
}

.rate-summary-card h2,
.rate-summary-card dd {
    color: white;
}

.rate-hours {
    color: #c9d7d1;
}

.rate-summary-card dl {
    margin: 1.5rem 0;
}

.rate-summary-card dl > div {
    border-color: rgb(255 255 255 / 16%);
}

.rate-summary-card dt {
    color: #9fb3aa;
}

.rate-summary-card .button-secondary {
    color: var(--brand-secondary);
    border-color: white;
}

.prose-copy p:last-child {
    margin-bottom: 0;
}

.program-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(4rem, 10vw, 7rem);
}

.program-hero::after {
    content: "";
    position: absolute;
    top: -11rem;
    right: -7rem;
    width: 25rem;
    height: 25rem;
    border: 1px solid rgb(255 255 255 / 17%);
    border-radius: 50%;
    box-shadow: 0 0 0 4rem rgb(255 255 255 / 3%);
}

.program-hero-green {
    color: white;
    background: var(--brand-primary);
}

.program-hero-navy {
    color: white;
    background: var(--brand-secondary);
}

.program-hero-lime {
    color: var(--brand-secondary);
    background: var(--brand-accent);
}

.program-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
    gap: 2.5rem;
}

.program-hero h1 {
    max-width: 12ch;
}

.program-hero-green h1,
.program-hero-navy h1 {
    color: white;
}

.program-hero-grid > div:first-child > p:last-child {
    max-width: 42rem;
    margin-bottom: 0;
    color: inherit;
    font-size: clamp(1.05rem, 2.5vw, 1.23rem);
    opacity: .82;
}

.program-stat-card {
    padding: 1.3rem;
    border: 1px solid rgb(255 255 255 / 23%);
    border-radius: var(--radius-lg);
    background: rgb(255 255 255 / 9%);
}

.program-stat-card-light {
    border-color: rgb(7 26 43 / 18%);
    background: rgb(255 255 255 / 42%);
}

.program-mark {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    color: var(--brand-secondary);
    background: var(--brand-accent);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: 900;
}

.program-stat-card-light .program-mark {
    color: white;
    background: var(--brand-secondary);
}

.program-stat-card dl {
    margin: 0;
}

.program-stat-card dl > div {
    padding: .8rem 0;
    border-bottom: 1px solid rgb(255 255 255 / 18%);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.program-stat-card-light dl > div {
    border-color: rgb(7 26 43 / 16%);
}

.program-stat-card dl > div:last-child {
    border-bottom: 0;
}

.program-stat-card dt {
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .72;
}

.program-stat-card dd {
    margin: 0;
    font-weight: 750;
    text-align: right;
}

.step-grid {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    list-style: none;
    counter-reset: none;
}

.step-grid li,
.outline-card,
.membership-card {
    padding: 1.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.step-grid li > span {
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 2rem;
    border-radius: 50%;
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 900;
}

.step-grid p,
.schedule-empty-panel p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.schedule-empty-panel {
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: var(--radius-xl);
    background: var(--surface);
    display: grid;
    align-items: center;
    gap: 1.5rem;
}

.schedule-empty-bordered {
    border: 1px dashed var(--border-strong);
    background: var(--surface-warm);
}

.schedule-empty-panel h2 {
    font-size: clamp(1.55rem, 4vw, 2.3rem);
}

.three-card-grid {
    display: grid;
    gap: 1rem;
}

.outline-card-kicker {
    color: var(--brand-primary);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.outline-card h3 {
    margin: 2rem 0 .65rem;
}

.membership-card {
    min-height: 17rem;
}

.membership-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 2.5rem;
    border-radius: .8rem;
    color: var(--brand-secondary);
    background: var(--brand-accent);
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 950;
    transform: rotate(-3deg);
}

.memberships-hero {
    background: linear-gradient(125deg, var(--surface-warm), var(--brand-primary-soft));
}

.policy-layout {
    align-items: start;
}

.policy-index {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-warm);
    display: grid;
}

.policy-index strong {
    padding: .55rem .65rem;
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.policy-index a {
    min-height: 2.7rem;
    padding: .55rem .65rem;
    border-radius: .45rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.policy-index a:hover {
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
}

.public-notice {
    margin-bottom: 2.5rem;
    padding: 1.2rem;
    border-left: 4px solid var(--brand-accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: #f5f9e9;
}

.public-notice p {
    margin: .35rem 0 0;
    color: var(--text-muted);
}

.policy-content > section {
    padding-block: 2rem;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 6rem;
}

.policy-content > section:first-of-type {
    padding-top: 0;
}

.policy-content > section:last-child {
    border-bottom: 0;
}

.policy-content h2,
.legal-copy h2 {
    font-size: clamp(1.45rem, 4vw, 2rem);
}

.policy-content p:not(.eyebrow),
.legal-copy p,
.legal-copy li {
    color: var(--text-muted);
}

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

.faq-list details {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.faq-list summary {
    min-height: 3.5rem;
    padding: .9rem 3rem .9rem 1rem;
    cursor: pointer;
    font-weight: 800;
}

.faq-list p {
    margin: 0;
    padding: 0 1rem 1rem;
    color: var(--text-muted);
}

.privacy-hero {
    color: white;
    background: var(--brand-secondary);
}

.privacy-hero h1,
.privacy-hero .eyebrow {
    color: white;
}

.privacy-hero .narrow-copy > p:not(.eyebrow) {
    color: #cbdad3;
}

.page-updated {
    margin-top: 1.5rem;
    color: #9fb3aa;
    display: block;
    font-size: .8rem;
    font-weight: 750;
}

.legal-copy {
    max-width: 48rem;
}

.legal-copy > section {
    margin-top: 2.5rem;
}

.legal-copy li + li {
    margin-top: .55rem;
}

.contact-card {
    min-width: 0;
    padding: clamp(1.4rem, 5vw, 2.4rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface-warm);
}

.contact-card h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.contact-card address,
.muted-copy {
    color: var(--text-muted);
    font-style: normal;
}

.contact-details {
    margin: 1.5rem 0;
}

.contact-card-dark {
    color: white;
    background: var(--brand-secondary);
}

.contact-card-dark h2 {
    color: white;
}

.contact-link-list {
    margin-top: 2rem;
    display: grid;
}

.contact-link-list a {
    min-width: 0;
    min-height: 4.5rem;
    padding: .8rem 0;
    border-bottom: 1px solid rgb(255 255 255 / 18%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 800;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.contact-link-list a:hover {
    color: var(--brand-accent);
}

.contact-link-list small {
    margin-bottom: .15rem;
    color: #9fb3aa;
    display: block;
    font-size: .65rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.contact-empty {
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: var(--radius-md);
}

.contact-empty p {
    margin: .4rem 0 0;
    color: #bdcec6;
}

.site-footer {
    padding-top: clamp(3rem, 7vw, 5rem);
    color: #b9cbc3;
    background: var(--brand-secondary);
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

.site-brand-footer {
    margin-bottom: 1rem;
    color: white;
}

.site-brand-footer:hover {
    color: white;
}

.site-brand-footer .site-brand-mark {
    border-color: var(--brand-accent);
    background: rgb(255 255 255 / 7%);
    color: var(--brand-accent);
}

.site-brand-footer .site-brand-copy small {
    color: #9fb3aa;
}

.footer-brand p {
    max-width: 25rem;
}

.site-footer h2 {
    margin-bottom: .8rem;
    color: white;
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.site-footer p {
    margin-bottom: .65rem;
    color: #b9cbc3;
    font-size: .88rem;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    display: grid;
    gap: .45rem;
    list-style: none;
}

.site-footer a:not(.site-brand) {
    color: #c8d8d1;
    font-size: .88rem;
    text-decoration: none;
}

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

.footer-bottom {
    margin-top: 3rem;
    padding-block: 1.2rem;
    border-top: 1px solid rgb(255 255 255 / 12%);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    color: #8fa59b;
    font-size: .75rem;
}

/* Identity pages retain Bootstrap structure while sharing the product theme. */
.account-main h1 {
    font-size: clamp(2rem, 6vw, 3rem);
}

.account-main h2 {
    font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.form-control,
.form-select {
    min-height: 2.85rem;
    border-color: var(--border-strong);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus-visible,
.btn-link:focus-visible {
    border-color: var(--focus);
    box-shadow: 0 0 0 .2rem rgb(37 99 235 / 18%);
}

.btn-primary {
    color: #fff;
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
}

.valid.modified:not([type=checkbox]) {
    outline: 2px solid var(--success);
}

.invalid {
    outline: 2px solid var(--danger);
}

.validation-message,
.text-danger {
    color: var(--danger) !important;
}

.darker-border-checkbox.form-check-input {
    border-color: #65756e;
}

.blazor-error-boundary {
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    background: var(--danger);
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

#blazor-error-ui {
    color-scheme: light only;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 1200;
    display: none;
    padding: .9rem 3rem .9rem 1rem;
    border: 1px solid #ebc577;
    border-radius: var(--radius-md);
    color: #5d3505;
    background: #fff4dd;
    box-shadow: var(--shadow-overlay);
}

#blazor-error-ui .reload {
    margin-left: .5rem;
    color: #5d3505;
    font-weight: 850;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: .4rem;
    right: .55rem;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font-size: 1.4rem;
}

@media (min-width: 40rem) {
    .public-container {
        width: min(100% - 3rem, var(--content-max));
    }

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

    .feature-card-grid,
    .compact-court-grid,
    .court-grid,
    .card-skeleton-grid,
    .price-factor-grid,
    .step-grid,
    .three-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-card:last-child,
    .step-grid li:last-child,
    .three-card-grid > :last-child {
        grid-column: 1 / -1;
    }

    .schedule-empty-panel {
        grid-template-columns: 1fr auto;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-grid > :last-child {
        grid-column: 2;
    }
}

@media (min-width: 60rem) {
    .site-header-inner {
        min-height: 5rem;
    }

    .mobile-navigation {
        display: none;
    }

    .desktop-navigation,
    .site-header-actions {
        display: flex;
        align-items: center;
    }

    .desktop-navigation {
        gap: .15rem;
    }

    .desktop-navigation > a,
    .nav-popover summary {
        min-height: 2.75rem;
        padding: .65rem .68rem;
        border-radius: .55rem;
        color: #33443d;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: .3rem;
        font-size: .82rem;
        font-weight: 780;
        list-style: none;
        text-decoration: none;
    }

    .desktop-navigation > a:hover,
    .desktop-navigation > a.active,
    .nav-popover summary:hover {
        color: var(--brand-primary);
        background: var(--brand-primary-soft);
    }

    .nav-popover {
        position: relative;
    }

    .nav-popover-panel {
        position: absolute;
        top: calc(100% + .55rem);
        left: 50%;
        width: 19rem;
        padding: .6rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--surface);
        box-shadow: var(--shadow-overlay);
        display: grid;
        transform: translateX(-50%);
    }

    .nav-popover-panel a {
        padding: .75rem;
        border-radius: .55rem;
        color: var(--text);
        display: grid;
        font-size: .88rem;
        font-weight: 800;
        text-decoration: none;
    }

    .nav-popover-panel a:hover,
    .nav-popover-panel a.active {
        color: var(--brand-primary);
        background: var(--brand-primary-soft);
    }

    .nav-popover-panel small {
        margin-top: .12rem;
        color: var(--text-muted);
        font-size: .73rem;
        font-weight: 550;
    }

    .site-header-actions {
        gap: .55rem;
    }

    .site-header-actions .button {
        min-height: 2.65rem;
        padding: .6rem .85rem;
        font-size: .8rem;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(20rem, .85fr);
        gap: 5rem;
    }

    .split-heading {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .65fr);
        align-items: end;
        gap: 3rem;
    }

    .feature-card-grid,
    .step-grid,
    .three-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .feature-card:last-child,
    .step-grid li:last-child,
    .three-card-grid > :last-child {
        grid-column: auto;
    }

    .compact-court-grid,
    .court-grid,
    .card-skeleton-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .confidence-panel {
        grid-template-columns: minmax(0, 1.1fr) minmax(22rem, .75fr);
        align-items: center;
    }

    .info-band,
    .two-column-copy {
        grid-template-columns: minmax(0, .75fr) minmax(25rem, 1fr);
        gap: 5rem;
    }

    .venue-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rates-layout {
        grid-template-columns: minmax(0, 1fr) 22rem;
        gap: 4rem;
    }

    .program-hero-grid {
        grid-template-columns: minmax(0, 1fr) 24rem;
        gap: 5rem;
    }

    .policy-layout {
        grid-template-columns: 15rem minmax(0, 1fr);
        gap: 4rem;
    }

    .policy-index {
        position: sticky;
        top: 6.5rem;
    }

    .faq-heading {
        grid-template-columns: minmax(0, .65fr) minmax(28rem, 1fr);
        gap: 5rem;
    }

    .contact-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 2.1fr 1.2fr .8fr .8fr;
    }

    .footer-grid > :last-child {
        grid-column: auto;
    }
}

@media (min-width: 72rem) {
    .desktop-navigation > a,
    .nav-popover summary {
        padding-inline: .9rem;
        font-size: .87rem;
    }

    .site-header-actions .button {
        padding-inline: 1rem;
        font-size: .84rem;
    }
}

@media (max-width: 25rem) {
    .site-brand-copy small {
        display: none;
    }

    .site-brand-copy strong {
        max-width: 9rem;
    }

    .button-row .button {
        width: 100%;
    }
}

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

@media print {
    .site-header,
    .site-footer,
    .button,
    .policy-index {
        display: none !important;
    }

    .public-section,
    .public-page-hero {
        padding-block: 1rem;
        background: white !important;
    }

    body {
        color: black;
        background: white;
    }
}

/* Staff workspace */
.staff-page-header {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.staff-page-header h1 {
    margin-bottom: .35rem;
    font-size: clamp(2rem, 5vw, 3rem);
}

.staff-page-header > div > p:last-child {
    margin-bottom: 0;
    color: var(--text-muted);
}

.staff-eyebrow {
    margin-bottom: .45rem;
    color: var(--brand-primary);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.staff-button {
    min-height: 2.7rem;
    padding: .65rem .9rem;
    border: 1px solid transparent;
    border-radius: .6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    font-size: .83rem;
    font-weight: 820;
    line-height: 1.2;
}

.staff-button:disabled {
    cursor: wait;
    opacity: .62;
}

.staff-button-primary {
    color: white;
    border-color: var(--brand-primary);
    background: var(--brand-primary);
}

.staff-button-primary:hover:not(:disabled) {
    border-color: var(--brand-primary-hover);
    background: var(--brand-primary-hover);
}

.staff-button-secondary {
    color: var(--text);
    border-color: var(--border-strong);
    background: white;
}

.staff-button-secondary:hover:not(:disabled) {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    background: var(--brand-primary-soft);
}

.staff-button-danger {
    color: white;
    border-color: #a62b22;
    background: #a62b22;
}

.staff-button-danger:hover:not(:disabled) {
    border-color: #842019;
    background: #842019;
}

.staff-button-wide {
    width: 100%;
}

.staff-loading-grid,
.calendar-loading,
.shift-loading {
    display: grid;
    gap: .8rem;
}

.staff-loading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staff-loading-grid > div,
.calendar-loading > div,
.shift-loading > div {
    border-radius: .85rem;
    background: linear-gradient(100deg, #e4ebe7 20%, #f6f8f7 43%, #e4ebe7 66%);
    background-size: 220% 100%;
    animation: skeleton-shift 1.5s ease infinite;
}

.staff-loading-grid > div {
    min-height: 9rem;
}

.calendar-loading > div:first-child,
.shift-loading > div:first-child {
    min-height: 5rem;
}

.calendar-loading > div:not(:first-child),
.shift-loading > div:not(:first-child) {
    min-height: 13rem;
}

.staff-state-card {
    min-height: 12rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: white;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
}

.staff-state-card h2 {
    margin-bottom: .35rem;
    font-size: 1.4rem;
}

.staff-state-card p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.staff-state-card .staff-button {
    grid-column: 2;
    justify-self: start;
}

.staff-state-error {
    border-color: #e8b1ad;
    background: #fffafa;
}

.staff-state-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    font-weight: 900;
}

.staff-state-error .staff-state-icon {
    color: #9f231b;
    background: #fde9e7;
}

.staff-update-line {
    margin-bottom: .75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .4rem;
    font-size: .72rem;
    font-weight: 700;
}

.staff-live-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 .2rem #dff2e8;
}

.staff-metric-grid {
    margin-bottom: 1rem;
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staff-metric-card {
    min-width: 0;
    min-height: 9rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: .85rem;
    background: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px rgb(7 26 43 / 4%);
}

.staff-metric-primary {
    border-color: transparent;
    color: white;
    background: var(--brand-primary);
}

.staff-metric-label {
    color: var(--text-muted);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.staff-metric-card strong {
    margin-block: auto .2rem;
    color: var(--text);
    font-size: clamp(1.7rem, 4vw, 2.45rem);
    font-weight: 850;
    letter-spacing: -.04em;
    line-height: 1;
}

.staff-metric-card > span:last-child {
    color: var(--text-muted);
    font-size: .73rem;
}

.staff-metric-primary .staff-metric-label,
.staff-metric-primary > span:last-child {
    color: #d5ebe1;
}

.staff-metric-primary strong {
    color: white;
}

.staff-metric-card .staff-money {
    font-size: clamp(1.4rem, 3.4vw, 2.1rem);
}

.staff-dashboard-grid,
.shift-grid {
    margin-bottom: 1rem;
    display: grid;
    gap: 1rem;
}

.staff-panel {
    min-width: 0;
    padding: clamp(1rem, 3vw, 1.4rem);
    border: 1px solid var(--border);
    border-radius: .9rem;
    background: white;
    box-shadow: 0 1px 2px rgb(7 26 43 / 4%);
}

.staff-panel-heading {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.staff-panel-heading h2,
.staff-shortcuts h2,
.shift-open-panel h2,
.shift-close-panel h2 {
    margin-bottom: 0;
    font-size: clamp(1.25rem, 3vw, 1.55rem);
}

.staff-count-badge {
    min-width: 2rem;
    min-height: 2rem;
    padding: .25rem .5rem;
    border-radius: 999px;
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
    display: grid;
    place-items: center;
    font-size: .78rem;
    font-weight: 900;
}

.attention-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.attention-list li {
    min-width: 0;
    padding-block: .8rem;
    border-bottom: 1px solid #e3e9e6;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
}

.attention-list li:last-child {
    border-bottom: 0;
}

.attention-list li > div {
    min-width: 0;
    display: grid;
}

.attention-list strong {
    font-size: .86rem;
}

.attention-list li > div span {
    color: var(--text-muted);
    font-size: .72rem;
}

.attention-list b {
    font-size: 1rem;
}

.attention-icon {
    width: 2rem;
    height: 2rem;
    border-radius: .5rem;
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 900;
}

.attention-icon-purple { color: #5b3ea6; background: #f0ebff; }
.attention-icon-amber { color: #754006; background: #fff2d8; }
.attention-icon-blue { color: #075985; background: #e0f2fe; }
.attention-icon-red { color: #9f231b; background: #fde9e7; }

.finance-summary {
    margin: 0;
}

.finance-summary > div {
    padding-block: 1rem;
    border-bottom: 1px solid #e3e9e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.finance-summary dt {
    color: var(--text-muted);
    font-size: .8rem;
    font-weight: 750;
}

.finance-summary dd {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 850;
}

.staff-context-note {
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: .75rem;
}

.staff-shortcuts {
    display: grid;
    gap: 1rem;
}

.staff-shortcut-links {
    display: grid;
    gap: .55rem;
}

.staff-shortcut-links a {
    min-height: 4rem;
    padding: .75rem 1rem;
    border: 1px solid var(--border);
    border-radius: .65rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-decoration: none;
}

.staff-shortcut-links a:hover {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    background: var(--brand-primary-soft);
}

.staff-shortcut-links a > span:first-child {
    display: grid;
}

.staff-shortcut-links small {
    color: var(--text-muted);
    font-size: .72rem;
}

/* Calendar */
.calendar-toolbar {
    margin-bottom: .75rem;
    padding: .65rem;
    border: 1px solid var(--border);
    border-radius: .75rem;
    background: white;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
}

.calendar-date-navigation {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.calendar-date-navigation button,
.calendar-date-navigation input {
    min-height: 2.6rem;
    border: 1px solid var(--border-strong);
    border-radius: .5rem;
    color: var(--text);
    background: white;
    font-size: .8rem;
    font-weight: 750;
}

.calendar-date-navigation button {
    min-width: 2.6rem;
    padding: .5rem .7rem;
}

.calendar-date-navigation input {
    max-width: 10rem;
    padding: .45rem .55rem;
}

.calendar-date-navigation .calendar-today-button {
    min-width: auto;
}

.calendar-toolbar-summary {
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    font-size: .73rem;
    font-weight: 700;
}

.calendar-view-pill {
    padding: .28rem .5rem;
    border-radius: 999px;
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
    font-weight: 850;
}

.calendar-empty-note {
    margin-bottom: .75rem;
    padding: .75rem 1rem;
    border: 1px solid #b8dac8;
    border-radius: .65rem;
    color: #0e6240;
    background: #edf8f2;
    display: flex;
    align-items: center;
    gap: .7rem;
}

.calendar-empty-note > span {
    width: 1.65rem;
    height: 1.65rem;
    flex: 0 0 auto;
    border-radius: 50%;
    color: white;
    background: #146c43;
    display: grid;
    place-items: center;
    font-size: .7rem;
    font-weight: 900;
}

.calendar-empty-note > div {
    display: grid;
}

.calendar-empty-note strong {
    font-size: .82rem;
}

.calendar-empty-note div span {
    font-size: .72rem;
}

.calendar-legend {
    margin-bottom: .75rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1rem;
    font-size: .68rem;
    font-weight: 700;
}

.calendar-legend > span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.calendar-legend i {
    width: .7rem;
    height: .7rem;
    border-radius: .2rem;
    display: inline-block;
}

.legend-confirmed { background: #198754; }
.legend-held { background: #d88718; }
.legend-active { background: #0e7490; }
.legend-complete { background: #687972; }
.legend-cancelled { background: #b42318; }

.scheduler-desktop {
    display: none;
}

.scheduler-agenda {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: .8rem;
    background: white;
}

.agenda-empty {
    margin: 0;
    padding: 2rem 1rem;
    color: var(--text-muted);
    text-align: center;
}

.agenda-list {
    margin: 0;
    padding: 0;
    display: grid;
    gap: .65rem;
    list-style: none;
}

.agenda-item {
    min-width: 0;
    padding: .8rem;
    border: 1px solid var(--border);
    border-left-width: 4px;
    border-radius: .6rem;
    background: white;
    display: grid;
    grid-template-columns: 4.7rem minmax(0, 1fr);
    gap: .65rem;
}

.agenda-item > time {
    padding-right: .6rem;
    border-right: 1px solid #e1e8e4;
    display: grid;
    align-content: start;
}

.agenda-item time strong {
    font-size: .78rem;
}

.agenda-item time span,
.agenda-item-copy > span {
    color: var(--text-muted);
    font-size: .67rem;
}

.agenda-item-copy {
    min-width: 0;
    display: grid;
}

.agenda-item-copy strong {
    overflow: hidden;
    font-size: .85rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agenda-court {
    color: var(--brand-primary) !important;
    font-weight: 850;
    text-transform: uppercase;
}

.agenda-statuses {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    color: var(--text-muted);
    font-size: .7rem;
    font-weight: 750;
}

.booking-confirmed { border-left-color: #198754 !important; }
.booking-held { border-left-color: #d88718 !important; }
.booking-active { border-left-color: #0e7490 !important; }
.booking-completed { border-left-color: #687972 !important; }
.booking-cancelled { border-left-color: #b42318 !important; }

.payment-mini-pill {
    max-width: 100%;
    padding: .2rem .4rem;
    border-radius: 999px;
    overflow: hidden;
    font-size: .6rem;
    font-weight: 850;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-paid { color: #0e6240; background: #daf1e5; }
.payment-pending { color: #5b3ea6; background: #ece5ff; }
.payment-partial { color: #754006; background: #ffebbf; }
.payment-refunded { color: #075985; background: #dceef8; }
.payment-failed { color: #9f231b; background: #fbdedb; }
.payment-unpaid { color: #485952; background: #e2e8e5; }

@media (min-width: 55rem) {
    .scheduler-agenda {
        display: none;
    }

    .scheduler-desktop {
        display: block;
    }

    .scheduler-scroll {
        max-height: calc(100vh - 15rem);
        min-height: 28rem;
        overflow: auto;
        border: 1px solid var(--border);
        border-radius: .75rem;
        background: white;
        overscroll-behavior: contain;
    }

    .scheduler-grid {
        min-width: var(--schedule-min-width);
        display: grid;
        grid-template-columns: 5rem repeat(var(--lane-count), minmax(12rem, 1fr));
    }

    .scheduler-corner,
    .scheduler-lane-header {
        position: sticky;
        top: 0;
        z-index: 5;
        min-height: 3.6rem;
        padding: .65rem .75rem;
        border-bottom: 1px solid var(--border);
        background: #f8faf9;
    }

    .scheduler-corner {
        left: 0;
        z-index: 7;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        font-size: .68rem;
        font-weight: 850;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .scheduler-lane-header {
        min-width: 0;
        border-left: 1px solid var(--border);
        display: grid;
        align-content: center;
    }

    .scheduler-lane-header strong {
        overflow: hidden;
        font-size: .82rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .scheduler-lane-header span {
        color: var(--text-muted);
        font-size: .64rem;
    }

    .scheduler-time-column,
    .scheduler-lane {
        position: relative;
        height: var(--schedule-height);
        min-height: 5rem;
    }

    .scheduler-time-column {
        position: sticky;
        left: 0;
        z-index: 3;
        border-right: 1px solid var(--border);
        background: #f8faf9;
    }

    .scheduler-time-column span {
        position: absolute;
        top: var(--time-offset);
        right: .55rem;
        color: var(--text-muted);
        font-size: .62rem;
        font-weight: 750;
        transform: translateY(-.7em);
        white-space: nowrap;
    }

    .scheduler-lane {
        min-width: 0;
        border-right: 1px solid var(--border);
        background:
            repeating-linear-gradient(to bottom, transparent 0, transparent 44px, #e7ece9 44px, #e7ece9 45px),
            linear-gradient(90deg, #fff, #fcfdfc);
    }

    .scheduler-booking {
        position: absolute;
        top: var(--booking-start);
        right: .35rem;
        left: .35rem;
        height: max(var(--booking-height), 2.7rem);
        min-height: 2.7rem;
        padding: .45rem .55rem;
        overflow: hidden;
        border: 1px solid #bdcbc4;
        border-left-width: 4px;
        border-radius: .45rem;
        background: white;
        box-shadow: 0 1px 3px rgb(7 26 43 / 10%);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.15;
    }

    .scheduler-booking.booking-confirmed { background: #eef9f3; }
    .scheduler-booking.booking-held { background: #fff8e8; }
    .scheduler-booking.booking-active { background: #ecf9fb; }
    .scheduler-booking.booking-completed { background: #f1f4f2; }
    .scheduler-booking.booking-cancelled { background: #fff1f0; }

    .scheduler-booking > strong {
        max-width: 100%;
        overflow: hidden;
        font-size: .74rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .scheduler-booking time,
    .scheduler-booking-reference,
    .scheduler-booking-status {
        max-width: 100%;
        color: #52635b;
        overflow: hidden;
        font-size: .6rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .scheduler-booking .payment-mini-pill {
        position: absolute;
        right: .35rem;
        bottom: .35rem;
    }
}

/* Cashier shift */
.staff-announcer:empty {
    display: none;
}

.staff-action-message {
    margin-bottom: .8rem;
    padding: .75rem .9rem;
    border: 1px solid;
    border-radius: .65rem;
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .8rem;
    font-weight: 700;
}

.staff-action-message > span:first-child {
    font-weight: 950;
}

.staff-action-success {
    color: #0e6240;
    border-color: #a7d9bf;
    background: #e8f7ef;
}

.staff-action-error {
    color: #8e251d;
    border-color: #efb2ad;
    background: #fff0ef;
}

.shift-open-panel {
    max-width: 58rem;
    margin-inline: auto;
    padding: clamp(1.25rem, 4vw, 2rem);
    display: grid;
    gap: 2rem;
}

.shift-form-copy p:last-child,
.shift-close-panel p {
    color: var(--text-muted);
}

.staff-form {
    min-width: 0;
}

.staff-field {
    margin-bottom: 1rem;
}

.staff-field > label {
    margin-bottom: .35rem;
    display: block;
    font-size: .78rem;
    font-weight: 800;
}

.staff-field input,
.staff-field textarea {
    width: 100%;
    min-height: 2.8rem;
    padding: .6rem .7rem;
    border: 1px solid var(--border-strong);
    border-radius: .55rem;
    color: var(--text);
    background: white;
}

.staff-field textarea {
    min-height: 5.5rem;
    resize: vertical;
}

.staff-field small {
    margin-top: .3rem;
    color: var(--text-muted);
    display: block;
    font-size: .68rem;
}

.money-field {
    position: relative;
}

.money-field > span {
    position: absolute;
    top: 50%;
    left: .75rem;
    z-index: 1;
    color: var(--text-muted);
    font-size: .8rem;
    font-weight: 800;
    transform: translateY(-50%);
}

.money-field input {
    padding-left: 2.3rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.staff-validation-summary {
    margin-bottom: 1rem;
    padding: .7rem .9rem;
    border-left: 3px solid var(--danger);
    color: #8e251d;
    background: #fff0ef;
    font-size: .76rem;
}

.staff-validation-summary:empty {
    display: none;
}

.staff-field .validation-message {
    margin-top: .3rem;
    display: block;
    font-size: .7rem;
}

.shift-status-card {
    margin-bottom: 1rem;
    padding: clamp(1.25rem, 4vw, 1.8rem);
    border-radius: 1rem;
    color: white;
    background: var(--brand-secondary);
    display: grid;
    gap: 1.25rem;
}

.shift-status-card h2 {
    margin: .75rem 0 .3rem;
    color: white;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.shift-status-card p {
    margin: 0;
    color: #afc2b9;
    font-size: .78rem;
}

.shift-open-badge {
    padding: .3rem .55rem;
    border-radius: 999px;
    color: #dff8e9;
    background: rgb(20 108 67 / 50%);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .68rem;
    font-weight: 850;
}

.shift-open-badge i {
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: #65d697;
}

.shift-expected span {
    color: #afc2b9;
    display: block;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.shift-expected strong {
    color: white;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    letter-spacing: -.035em;
}

.cash-ledger-summary {
    margin: 0;
}

.cash-ledger-summary > div {
    padding: .62rem 0;
    border-bottom: 1px solid #e3e9e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cash-ledger-summary dt {
    color: var(--text-muted);
    font-size: .76rem;
    font-weight: 700;
}

.cash-ledger-summary dd {
    margin: 0;
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.cash-ledger-summary .cash-positive dd { color: #146c43; }
.cash-ledger-summary .cash-negative dd { color: #8e4b10; }

.cash-ledger-summary .cash-total {
    margin-top: .35rem;
    padding-top: .9rem;
    border-bottom: 0;
}

.cash-ledger-summary .cash-total dt,
.cash-ledger-summary .cash-total dd {
    color: var(--text);
    font-size: .95rem;
    font-weight: 900;
}

.shift-close-panel {
    align-self: start;
}

.variance-preview {
    margin-bottom: 1rem;
    padding: .7rem .8rem;
    border-radius: .55rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: .76rem;
    font-variant-numeric: tabular-nums;
}

.variance-even { color: #2f443a; background: #edf2ef; }
.variance-over { color: #0e6240; background: #e4f5ec; }
.variance-short { color: #9f231b; background: #fde9e7; }

.staff-confirm-check {
    margin-block: 1rem;
    padding: .75rem;
    border: 1px solid var(--border);
    border-radius: .55rem;
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .75rem;
    font-weight: 700;
}

.staff-confirm-check input {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
}

.staff-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .55rem;
}

.closed-shift-summary {
    margin-bottom: 1rem;
    padding: clamp(1.25rem, 4vw, 1.8rem);
    border: 1px solid #a7d9bf;
    border-radius: 1rem;
    background: #f1fbf5;
    display: grid;
    gap: 1rem;
}

.closed-shift-mark {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    color: white;
    background: #146c43;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.closed-shift-summary h2 {
    margin-bottom: .3rem;
    font-size: 1.4rem;
}

.closed-shift-summary p {
    margin: 0;
    color: var(--text-muted);
}

.closed-shift-summary dl {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
}

.closed-shift-summary dl > div {
    min-width: 0;
    padding: .65rem;
    border-radius: .5rem;
    background: white;
}

.closed-shift-summary dt {
    color: var(--text-muted);
    font-size: .64rem;
    font-weight: 800;
    text-transform: uppercase;
}

.closed-shift-summary dd {
    margin: .15rem 0 0;
    overflow: hidden;
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
    font-weight: 850;
    text-overflow: ellipsis;
}

@media (min-width: 45rem) {
    .staff-metric-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .shift-status-card {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .shift-expected {
        text-align: right;
    }

    .closed-shift-summary {
        grid-template-columns: auto minmax(0, 1fr) minmax(20rem, .8fr);
        align-items: center;
    }
}

@media (min-width: 70rem) {
    .staff-dashboard-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(19rem, .65fr);
    }

    .staff-shortcuts {
        grid-template-columns: minmax(12rem, .5fr) minmax(0, 1fr);
        align-items: center;
    }

    .staff-shortcut-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shift-open-panel {
        grid-template-columns: minmax(0, 1fr) minmax(18rem, .8fr);
        align-items: center;
    }

    .shift-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(21rem, .7fr);
    }
}

@media (max-width: 35rem) {
    .staff-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .staff-page-header > .staff-button {
        align-self: flex-start;
    }

    .calendar-date-navigation {
        width: 100%;
    }

    .calendar-date-navigation label {
        min-width: 0;
        flex: 1;
    }

    .calendar-date-navigation input {
        width: 100%;
    }

    .calendar-toolbar-summary {
        width: 100%;
    }

    .staff-form-actions .staff-button {
        width: 100%;
    }

    .closed-shift-summary dl {
        grid-template-columns: 1fr;
    }
}

/* Financial report */
.report-filter-panel,
.report-table-panel {
    margin-bottom: 1rem;
}

.report-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: .75rem;
}

.report-filter-grid label {
    display: grid;
    gap: .35rem;
    color: var(--text-muted);
    font-size: .72rem;
    font-weight: 800;
}

.report-filter-grid input {
    min-height: 2.75rem;
    padding: .65rem .75rem;
    border: 1px solid var(--border);
    border-radius: .55rem;
    color: var(--text);
    background: white;
    font: inherit;
}

.report-filter-grid .staff-button {
    min-height: 2.75rem;
}

.report-export-actions {
    margin-top: .85rem;
    padding-top: .85rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.report-summary-grid {
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.report-summary-grid article {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: .8rem;
    background: white;
    box-shadow: var(--shadow-soft);
}

.report-summary-grid span {
    display: block;
    color: var(--text-muted);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.report-summary-grid strong {
    display: block;
    margin-top: .3rem;
    overflow: hidden;
    font-size: clamp(1rem, 4vw, 1.35rem);
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
}

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

.staff-table {
    width: 100%;
    min-width: 47rem;
    border-collapse: collapse;
    font-size: .77rem;
}

.staff-table th,
.staff-table td {
    padding: .7rem .65rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.staff-table thead th {
    color: var(--text-muted);
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.staff-table .number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.staff-table tfoot th {
    border-bottom: 0;
    font-weight: 900;
}

.settings-logo-upload {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
}

.settings-logo-upload img {
    width: 5rem;
    height: 5rem;
    border: 1px solid var(--border);
    border-radius: .75rem;
    object-fit: contain;
    background: white;
}

.settings-logo-upload > div {
    display: grid;
    justify-items: start;
    gap: .45rem;
}

.settings-logo-upload input[type="file"] {
    max-width: 100%;
    font-size: .75rem;
}

.settings-logo-upload small {
    color: var(--text-muted);
}

@media (min-width: 45rem) {
    .report-filter-grid {
        grid-template-columns: minmax(10rem, 1fr) minmax(10rem, 1fr) auto;
    }

    .report-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media print {
    .staff-sidebar,
    .staff-mobile-header,
    .report-filter-panel,
    #blazor-error-ui {
        display: none !important;
    }

    .staff-shell,
    .staff-workspace,
    .staff-main {
        display: block;
        width: 100%;
        max-width: none;
        padding: 0;
        background: white;
    }

    .report-summary-grid article,
    .report-table-panel {
        box-shadow: none;
        break-inside: avoid;
    }
}
