:root {
    --navy: #082d4f;
    --navy-2: #0b3f6e;
    --ice: #eaf6fb;
    --snow: #f7fbfd;
    --orange: #ff5b2d;
    --cyan: #5ec6e8;
    --ink: #102334;
    --muted: #5b6b78;
    --white: #fff;
    --line: rgba(8, 45, 79, .14);
    --radius: 1.15rem;
    --shadow: 0 1.5rem 4rem rgba(6, 35, 60, .16);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--snow);
    font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 20rem; background: var(--snow); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(74rem, calc(100% - 2.5rem)); margin-inline: auto; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; inset: .75rem auto auto .75rem; z-index: 100; padding: .75rem 1rem; background: white; color: var(--navy); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.site-header { position: fixed; z-index: 20; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 5rem; padding: .75rem max(1.25rem, calc((100vw - 74rem) / 2)); color: white; background: linear-gradient(180deg, rgba(4, 24, 42, .92), rgba(4, 24, 42, .08)); transition: background .25s, box-shadow .25s; }
.site-header.is-scrolled { background: rgba(7, 38, 65, .97); box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.12); }
.brand { display: inline-flex; align-items: center; gap: .75rem; min-width: max-content; }
.brand img { inline-size: 3.35rem; block-size: 3.35rem; object-fit: contain; }
.brand span { display: grid; line-height: 1; }
.brand strong { font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase; }
.brand small { margin-top: .3rem; font-size: .82rem; letter-spacing: .13em; text-transform: uppercase; color: #bfeeff; }
.main-nav { display: flex; align-items: center; gap: 1.7rem; font-size: .92rem; font-weight: 650; }
.main-nav a { padding-block: .55rem; }
.main-nav a:not(.nav-cta):hover { color: #bfeeff; }
.nav-cta { padding: .8rem 1.15rem !important; border-radius: 999px; background: var(--orange); box-shadow: 0 .55rem 1.4rem rgba(255, 91, 45, .28); }
.menu-button { display: none; border: 0; background: transparent; color: white; padding: .5rem; }
.menu-button > span:not(.sr-only) { display: block; width: 1.55rem; height: 2px; margin: 5px; background: currentColor; }

.hero { position: relative; min-height: 47rem; display: grid; align-items: center; overflow: hidden; color: white; background: var(--navy) var(--hero-image) center 42% / cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 25, 44, .92) 0%, rgba(3, 25, 44, .66) 42%, rgba(3, 25, 44, .08) 74%), linear-gradient(0deg, rgba(3, 25, 44, .4), transparent 45%); }
.hero-content { position: relative; z-index: 1; padding-block: 9rem 8rem; }
.eyebrow { margin: 0 0 1rem; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #bdeeff; }
.eyebrow-dark { color: var(--navy-2); }
.hero h1 { max-width: 13ch; margin: 0; font-size: clamp(3.6rem, 8vw, 7.5rem); line-height: .86; letter-spacing: -.065em; text-transform: uppercase; }
.hero h1 em { color: #9be5fb; font-style: normal; }
.hero-copy { max-width: 38rem; margin: 2rem 0 0; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 3.15rem; padding: .8rem 1.2rem; border: 1px solid transparent; border-radius: 999px; font-weight: 750; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--orange); box-shadow: 0 .75rem 2rem rgba(255, 91, 45, .3); }
.button-ghost { color: white; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.button-light { color: var(--navy); background: white; }
.snowline { position: absolute; inset: auto -5% -3.2rem; height: 7.5rem; border-radius: 50% 50% 0 0 / 70% 70% 0 0; background: var(--snow); transform: rotate(-1deg); }

.booking-strip { position: relative; z-index: 2; margin-top: -1.25rem; }
.booking-strip-inner { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: center; gap: 2.5rem; padding: 1.7rem 2rem; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.booking-strip h2 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.75rem); letter-spacing: -.025em; }
.booking-strip p { margin: 0; line-height: 1.6; color: var(--muted); }
.text-link { min-width: max-content; font-weight: 800; color: var(--navy-2); }

.section { padding-block: 7rem; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 3rem; margin-bottom: 2.5rem; }
.section-heading h2, .story-copy h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -.055em; }
.section-heading > p { max-width: 34rem; margin: 0 0 .25rem; font-size: 1.08rem; line-height: 1.65; color: var(--muted); }
.programme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.programme-card { position: relative; min-height: 25rem; display: flex; flex-direction: column; align-items: flex-start; padding: 2rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.programme-card-featured { color: white; border-color: transparent; background: var(--navy); }
.programme-card .number { position: absolute; inset: 1.2rem 1.4rem auto auto; font-size: 3.4rem; font-weight: 900; letter-spacing: -.08em; color: rgba(8,45,79,.1); }
.programme-card-featured .number { color: rgba(255,255,255,.14); }
.programme-card .kicker { margin: 0 0 auto; color: var(--orange); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.programme-card h3 { margin: 5rem 0 .8rem; max-width: 12ch; font-size: 1.85rem; line-height: 1.08; letter-spacing: -.035em; }
.programme-card p:not(.kicker) { margin: 0; line-height: 1.65; color: var(--muted); }
.programme-card-featured p:not(.kicker) { color: rgba(255,255,255,.73); }
.programme-card a { margin-top: 1.7rem; font-weight: 800; color: var(--navy-2); }
.programme-card-featured a { color: #9be5fb; }

.club-story { padding-block: 6.5rem; color: white; background: var(--navy); }
.story-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch; gap: clamp(2rem, 6vw, 6rem); }
.story-grid figure { min-height: 31rem; margin: 0; border-radius: var(--radius); overflow: hidden; transform: rotate(-1.5deg); box-shadow: 1.2rem 1.2rem 0 rgba(94, 198, 232, .2); }
.story-grid figure img { width: 100%; height: 100%; object-fit: cover; }
.story-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.story-copy p:not(.eyebrow) { margin: 1.6rem 0 2rem; font-size: 1.08rem; line-height: 1.75; color: rgba(255,255,255,.76); }

.site-footer { padding-block: 3.5rem; color: white; background: #041c31; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr .7fr; gap: 3rem; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.footer-grid span, .footer-grid a { color: rgba(255,255,255,.66); }
.footer-grid a:hover { color: white; }
.footer-brand { flex-direction: row !important; align-items: center !important; gap: .9rem !important; }
.footer-brand img { object-fit: contain; }
.not-found { min-height: 75vh; padding-block: 11rem 6rem; }
.not-found h1 { margin: 0; font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -.06em; }
.not-found p:not(.eyebrow) { margin-bottom: 2rem; font-size: 1.1rem; color: var(--muted); }

@media (max-width: 58rem) {
    .menu-button { display: block; }
    .main-nav { position: absolute; inset: 100% 1rem auto; display: none; flex-direction: column; align-items: stretch; gap: .25rem; padding: 1rem; color: white; background: rgba(7, 38, 65, .99); border-radius: 1rem; box-shadow: var(--shadow); }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: .85rem 1rem; }
    .booking-strip-inner, .section-heading, .story-grid { grid-template-columns: 1fr; }
    .booking-strip-inner { gap: 1rem; }
    .programme-grid { grid-template-columns: 1fr; }
    .programme-card { min-height: 20rem; }
    .story-grid figure { min-height: 24rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 38rem) {
    .wrap { width: min(100% - 1.5rem, 74rem); }
    .site-header { padding-inline: .75rem; }
    .brand strong { font-size: 1rem; }
    .hero { min-height: 44rem; background-position: 58% center; }
    .hero-shade { background: linear-gradient(90deg, rgba(3,25,44,.93), rgba(3,25,44,.56)), linear-gradient(0deg, rgba(3,25,44,.5), transparent 45%); }
    .hero-content { padding-top: 8rem; }
    .hero h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .booking-strip { margin-top: -.5rem; }
    .booking-strip-inner { padding: 1.35rem; }
    .section { padding-block: 5rem; }
    .section-heading { gap: 1rem; }
    .programme-card { padding: 1.5rem; }
    .club-story { padding-block: 4.5rem; }
    .story-grid figure { min-height: 19rem; box-shadow: .6rem .6rem 0 rgba(94,198,232,.2); }
    .footer-grid { grid-template-columns: 1fr; }
}

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

/* Inner pages and booking */
.site-header-solid { background: rgba(7, 38, 65, .98); }
.page-hero { position: relative; min-height: 25rem; display: grid; align-items: end; padding: 9.5rem 0 4.5rem; overflow: hidden; color: white; background: var(--navy); }
.page-hero::before { content: ""; position: absolute; width: 40rem; height: 40rem; inset: -22rem -10rem auto auto; border: 1px solid rgba(155,229,251,.22); border-radius: 50%; box-shadow: 0 0 0 5rem rgba(155,229,251,.035), 0 0 0 10rem rgba(155,229,251,.025); }
.page-hero-image { background: linear-gradient(90deg, rgba(4,29,51,.94), rgba(4,29,51,.62)), var(--detail-image) center 38% / cover; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1, .detail-hero h1 { max-width: 15ch; margin: 0; font-size: clamp(3rem, 7vw, 6rem); line-height: .94; letter-spacing: -.06em; }
.page-hero .wrap > p:last-child, .detail-hero-content > p:last-child { max-width: 45rem; margin: 1.25rem 0 0; font-size: 1.15rem; line-height: 1.65; color: rgba(255,255,255,.78); }
.compact { align-items: center; margin-bottom: 2rem; }
.compact h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
.section-tinted { background: var(--ice); }
.narrow { max-width: 52rem; }
.empty-state { padding: 2rem; border: 1px dashed rgba(8,45,79,.28); border-radius: var(--radius); background: white; text-align: center; }
.empty-state strong { font-size: 1.2rem; }
.empty-state p { color: var(--muted); }
.event-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.15rem; }
.event-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 .6rem 2rem rgba(6,35,60,.06); }
.event-card-image { position: relative; display: block; height: 14rem; background: #bfd7e5; }
.event-card-image img { width: 100%; height: 100%; object-fit: cover; }
.event-card-body { display: flex; flex-direction: column; align-items: flex-start; padding: 1.4rem; }
.event-card-body .kicker, .team-card .kicker { margin: 0 0 .55rem; color: var(--orange); font-size: .75rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.event-card h3 { margin: 0; font-size: 1.45rem; line-height: 1.15; }
.event-card-body > p:not(.kicker) { margin: .55rem 0 1rem; color: var(--muted); }
.event-card-body .text-link { margin-top: 1.25rem; }
.status-badge { display: inline-flex; width: max-content; align-items: center; padding: .42rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); background: #d9eaf1; }
.event-card-image .status-badge { position: absolute; inset: 1rem auto auto 1rem; color: white; background: rgba(8,45,79,.9); backdrop-filter: blur(8px); }
.status-open, .status-confirmed { color: #0d5b3e; background: #d8f5e8; }
.status-waitlist, .status-waitlisted, .status-offered { color: #865500; background: #fff0bd; }
.status-cancelled, .status-expired { color: #8c2d24; background: #ffe0dc; }
.status-archived, .status-draft, .status-closed, .status-full { color: #4e5e69; background: #e5ebef; }
.detail-hero { position: relative; min-height: 35rem; display: grid; align-items: end; padding: 9rem 0 4rem; overflow: hidden; color: white; background: var(--navy) var(--detail-image) center / cover; }
.detail-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,26,45,.94), rgba(4,26,45,.42)), linear-gradient(0deg, rgba(4,26,45,.75), transparent 55%); }
.detail-hero-content { position: relative; z-index: 1; }
.detail-hero .status-badge { margin: 1.2rem 0; }
.back-link { display: block; width: max-content; margin-bottom: 1.2rem; color: rgba(255,255,255,.78); font-weight: 750; }
.back-link.dark { color: var(--navy); }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 23rem; gap: clamp(2rem,6vw,5rem); align-items: start; }
.prose { font-size: 1.05rem; line-height: 1.75; }
.prose h2 { margin: 2.5rem 0 1rem; font-size: clamp(1.8rem,3vw,2.6rem); line-height: 1.1; letter-spacing: -.035em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2rem 0 .75rem; }
.prose a, .legacy-copy a { color: var(--navy-2); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: .2em; }
.notice { margin: 1.5rem 0; padding: 1rem 1.2rem; border-left: .3rem solid var(--orange); background: #fff2ed; }
.price-table { margin-top: 1rem; overflow: hidden; border: 1px solid var(--line); border-radius: .9rem; }
.price-row { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(2,minmax(6rem,.6fr)); gap: 1rem; padding: .9rem 1rem; border-top: 1px solid var(--line); }
.price-row:first-child { border: 0; }
.price-head { color: white; background: var(--navy); font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.booking-card, .booking-summary { position: sticky; top: 6.5rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.booking-card h2, .booking-summary h2 { margin: 0; font-size: 1.7rem; }
.booking-card dl { margin: 1.5rem 0; }
.booking-card dl div, .confirmation-card dl div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding-block: .7rem; border-bottom: 1px solid var(--line); }
.booking-card dt, .confirmation-card dt { color: var(--muted); }
.booking-card dd, .confirmation-card dd { margin: 0; font-weight: 700; }
.availability { display: flex; align-items: baseline; gap: .6rem; margin: 1rem 0; padding: 1rem; border-radius: .8rem; color: #0d5b3e; background: #d8f5e8; }
.availability strong { font-size: 2.2rem; }
.availability-wait { color: #865500; background: #fff0bd; }
.availability-closed { color: var(--muted); background: #e5ebef; }
.button-block { width: 100%; }
.button-small { min-height: 2.5rem; padding: .55rem .85rem; font-size: .86rem; color: var(--navy); background: var(--ice); }
.button-danger { color: white; background: #a83e34; }
.team-heading { margin-top: 5rem; }
.team-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; }
.team-card { display: grid; grid-template-columns: 10rem 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.team-card img { width: 100%; height: 100%; min-height: 15rem; object-fit: cover; object-position: top; }
.team-card > div { padding: 1.4rem; }
.team-card h3 { margin: 0 0 .5rem; font-size: 1.5rem; }
.team-card p:not(.kicker) { color: var(--muted); line-height: 1.55; }
.team-card a { color: var(--navy-2); font-weight: 750; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.2rem; }
.gallery-card figure { position: relative; height: 18rem; margin: 0; overflow: hidden; border-radius: var(--radius); background: #d8e7ef; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-card:hover img { transform: scale(1.035); }
.gallery-card figure span { position: absolute; inset: auto .8rem .8rem auto; padding: .35rem .65rem; border-radius: 999px; color: white; background: rgba(4,28,49,.85); font-size: .8rem; }
.gallery-card h2 { margin: .8rem .2rem 0; font-size: 1.25rem; }
.masonry { columns: 3 18rem; column-gap: .85rem; }
.gallery-image, .masonry > img { width: 100%; margin: 0 0 .85rem; padding: 0; overflow: hidden; border: 0; border-radius: .7rem; background: #dfeaf0; break-inside: avoid; cursor: zoom-in; }
.gallery-image img, .masonry > img { width: 100%; }
.lightbox { width: min(92vw,80rem); max-height: 92vh; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(1,14,25,.9); }
.lightbox img { max-width: 100%; max-height: 88vh; margin: auto; border-radius: .5rem; }
.lightbox button { position: fixed; inset: 1rem 1rem auto auto; width: 3rem; height: 3rem; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.15); font-size: 2rem; }
.download-list { display: grid; gap: .7rem; }
.download-item { display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .9rem; background: white; }
.download-item small { display: block; margin-top: .2rem; color: var(--muted); }
.download-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; color: white; background: var(--navy); font-size: 1.4rem; }
.contact-grid, .booking-form-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem,7vw,6rem); align-items: start; }
.form-card, .confirmation-card { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
label { display: grid; gap: .45rem; margin-bottom: 1rem; font-size: .9rem; font-weight: 750; }
input, select, textarea { width: 100%; min-height: 2.9rem; padding: .7rem .8rem; border: 1px solid #bdcbd4; border-radius: .55rem; color: var(--ink); background: white; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, .rich-editor:focus { outline: .18rem solid rgba(94,198,232,.34); border-color: var(--navy-2); }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.field-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.check { grid-template-columns: auto 1fr; align-items: start; font-weight: 500; line-height: 1.5; }
.check input { width: 1.1rem; min-height: 1.1rem; margin-top: .2rem; }
.check a { color: var(--navy-2); text-decoration: underline; }
.participant-heading, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.participant-row { position: relative; margin: 1rem 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--snow); }
.remove-person { border: 0; color: #92362e; background: transparent; text-decoration: underline; cursor: pointer; }
.summary-price { display: grid; gap: .3rem; margin: 1.5rem 0; padding: 1rem 0; border-block: 1px solid var(--line); }
.summary-price strong { font-size: 2rem; color: var(--navy); }
.confirmation-card { text-align: center; }
.confirmation-mark { display: grid; place-items: center; width: 4rem; height: 4rem; margin: 0 auto 1rem; border-radius: 50%; color: white; background: #169764; font-size: 2rem; }
.confirmation-card dl, .confirmation-card ul { max-width: 28rem; margin: 1.5rem auto; text-align: left; }
.archive-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.archive-list a { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; background: white; font-weight: 700; }
.source-note { margin-top: 2rem; color: var(--muted); font-size: .85rem; }
.flash-stack { position: fixed; z-index: 60; inset: 6rem 1rem auto auto; display: grid; gap: .5rem; width: min(28rem,calc(100% - 2rem)); }
.flash { padding: .9rem 1rem; border-radius: .7rem; box-shadow: var(--shadow); background: white; }
.flash-success { border-left: .3rem solid #169764; }
.flash-error { border-left: .3rem solid #b9473e; }

/* Administration */
.admin-shell { min-height: 100vh; background: #edf3f6; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 16.5rem; display: flex; flex-direction: column; padding: 1.2rem; color: white; background: #061f35; overflow-y: auto; }
.admin-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.2rem; }
.admin-brand span { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: .7rem; color: var(--navy); background: #9be5fb; font-weight: 950; }
.admin-brand.dark { color: var(--navy); }
.admin-sidebar nav { display: grid; gap: .15rem; }
.admin-sidebar nav a { padding: .65rem .8rem; border-radius: .55rem; color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 650; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { color: white; background: rgba(255,255,255,.1); }
.admin-sidebar-footer { display: grid; gap: .7rem; margin-top: auto; padding-top: 1.5rem; }
.admin-sidebar-footer a, .admin-sidebar-footer button { border: 0; color: rgba(255,255,255,.68); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.admin-main { min-height: 100vh; margin-left: 16.5rem; }
.admin-topbar { min-height: 4.2rem; display: flex; justify-content: flex-end; align-items: center; padding: .7rem 2rem; border-bottom: 1px solid var(--line); background: white; }
.admin-topbar button { display: none; }
.admin-topbar > div { display: grid; text-align: right; }
.admin-topbar span { color: var(--muted); font-size: .78rem; }
.admin-page { width: min(82rem,calc(100% - 3rem)); margin: 0 auto; padding-block: 2.5rem 5rem; }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.6rem; }
.admin-heading h1 { margin: 0; font-size: clamp(2rem,4vw,3.5rem); letter-spacing: -.05em; }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.stat-grid a { display: grid; gap: .8rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: .9rem; background: white; }
.stat-grid span { color: var(--muted); }
.stat-grid strong { font-size: 2.5rem; color: var(--navy); }
.admin-panel { margin-bottom: 1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: .9rem; background: white; }
.admin-panel > h2:first-child { margin-top: 0; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: .9rem; background: white; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.admin-table small { display: block; margin-top: .25rem; max-width: 34rem; color: var(--muted); }
.admin-table a { color: var(--navy-2); font-weight: 750; }
.table-actions { display: flex; gap: .8rem; white-space: nowrap; }
.admin-form { display: grid; gap: 1rem; }
.admin-form .admin-panel { margin: 0; }
.form-actions { position: sticky; z-index: 10; bottom: 1rem; display: flex; gap: .7rem; width: max-content; padding: .6rem; border-radius: 999px; background: white; box-shadow: var(--shadow); }
.price-editor { display: grid; gap: .5rem; }
.price-edit-row { display: grid; grid-template-columns: 1.5fr .7fr .7fr auto; gap: .6rem; }
.price-edit-row button { width: 2.9rem; border: 0; border-radius: .55rem; color: #92362e; background: #ffe5e1; }
.filter-bar { display: flex; align-items: end; gap: .7rem; margin-bottom: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: white; }
.filter-bar label { min-width: 14rem; margin: 0; }
.card-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.admin-content-card { display: flex; align-items: center; gap: 1rem; padding: .8rem; border: 1px solid var(--line); border-radius: .8rem; background: white; }
.admin-content-card img { width: 5rem; height: 4rem; object-fit: cover; border-radius: .45rem; }
.admin-content-card.person img { border-radius: 50%; object-position: top; }
.admin-content-card span { display: grid; gap: .25rem; }
.admin-content-card small { color: var(--muted); }
.admin-image-grid, .media-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }
.admin-image-grid figure, .media-grid article { margin: 0; padding: .6rem; border: 1px solid var(--line); border-radius: .7rem; background: white; }
.admin-image-grid img, .media-grid img { width: 100%; height: 10rem; object-fit: cover; border-radius: .45rem; }
.admin-image-grid button, .media-grid button { margin-top: .5rem; border: 0; color: var(--navy-2); background: transparent; cursor: pointer; }
.file-tile { display: grid; place-items: center; height: 10rem; color: white; border-radius: .45rem; background: var(--navy); font-size: 2rem; font-weight: 900; }
.media-upload { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; }
.media-upload label { margin: 0; }
.message-list .handled { opacity: .65; }
.rich-editor { min-height: 18rem; padding: 1rem; border: 1px solid #bdcbd4; border-radius: .55rem; background: white; font-weight: 400; }
.editor-toolbar { display: flex; gap: .35rem; margin-bottom: .35rem; }
.editor-toolbar button { padding: .4rem .65rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--ice); }
.admin-auth { display: grid; place-items: center; min-height: 100vh; margin: 0; padding: 1rem; background: linear-gradient(135deg,#eaf6fb,#f7fbfd 55%,#ffdace); }
.auth-card { width: min(30rem,100%); padding: 2rem; border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.auth-card h1 { margin: 0 0 1.5rem; font-size: 2.5rem; letter-spacing: -.05em; }
.auth-card .admin-brand { margin-bottom: 2.5rem; }
.admin-flashes { top: 1rem; }

@media (max-width: 70rem) {
    .event-grid, .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .card-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .admin-image-grid, .media-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 58rem) {
    .detail-layout, .contact-grid, .booking-form-layout { grid-template-columns: 1fr; }
    .booking-card, .booking-summary { position: static; }
    .team-grid { grid-template-columns: 1fr; }
    .admin-sidebar { transform: translateX(-105%); transition: transform .2s; }
    .admin-sidebar.is-open { transform: none; }
    .admin-main { margin-left: 0; }
    .admin-topbar { justify-content: space-between; }
    .admin-topbar button { display: block; border: 0; background: transparent; font-size: 1.5rem; }
    .media-upload { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 38rem) {
    .page-hero { min-height: 22rem; padding: 8rem 0 3rem; }
    .event-grid, .gallery-grid, .team-grid, .archive-list, .field-grid, .field-grid.three, .stat-grid, .card-list, .admin-image-grid, .media-grid, .media-upload { grid-template-columns: 1fr; }
    .team-card { grid-template-columns: 7rem 1fr; }
    .price-row { grid-template-columns: 1fr 5.5rem 6.5rem; gap: .5rem; padding-inline: .7rem; font-size: .86rem; }
    .price-edit-row { grid-template-columns: 1fr 1fr; }
    .price-edit-row input:first-child { grid-column: 1 / -1; }
    .download-item { grid-template-columns: 2.5rem 1fr; }
    .download-item > span:last-child { display: none; }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .filter-bar label { min-width: 0; }
    .admin-page { width: min(100% - 1.2rem,82rem); padding-top: 1.2rem; }
    .admin-heading { align-items: flex-start; flex-direction: column; }
    .table-actions { flex-direction: column; }
    .form-actions { width: calc(100% - 1rem); }
    .form-actions .button { flex: 1; }
}
