:root {
    --club-blue: #0A4D68; --club-teal: #088395; --club-coral: #FF6B6B; --club-coral-hover: #FF4A4A;
    --ink: #1E293B; --muted: #64748B; --line: #E2EDF1; --page: #F4F9FA;
}
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body.theme { font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: #334155; background: var(--page); -webkit-font-smoothing: antialiased; }
.theme h1, .theme h2 { font-family: Fraunces, Georgia, serif; letter-spacing: -0.01em; }
.theme h3, .theme h4 { letter-spacing: -0.005em; }
[x-cloak], .hidden-important { display: none !important; }

/* ---- Theme layer: upgrades existing markup site-wide ---- */
.theme main .bg-white.border { border-color: var(--line); }
.theme main .bg-white.rounded-lg, .theme main .bg-white.rounded-xl { border-radius: 1.1rem; }

.theme main input[type=text], .theme main input[type=email], .theme main input[type=tel],
.theme main input[type=password], .theme main input[type=number], .theme main input[type=date],
.theme main input[type=search], .theme main input:not([type]), .theme main input[type=time], .theme main input[type=url], .theme main select, .theme main textarea {
    width: 100%; border: 1.5px solid #D5E3E8; border-radius: .7rem; background: #fff;
    padding: .7rem .9rem; font-size: 1rem; color: var(--ink); line-height: 1.4;
    transition: border-color .15s, box-shadow .15s; box-shadow: none; min-height: 2.9rem;
}
.theme main input[type=number] { width: auto; }
.theme main input:focus, .theme main select:focus, .theme main textarea:focus {
    outline: none; border-color: var(--club-teal); box-shadow: 0 0 0 4px rgba(8,131,149,.15);
}
.theme main input[disabled], .theme main input[readonly] { background: #F1F5F7; color: var(--muted); }
.theme main label.block { font-weight: 600; color: #334155; margin-bottom: .15rem; }
.theme main input[type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: var(--club-teal); }

.theme main button, .theme main a[class*="bg-club-"], .theme main a[class*="bg-green-"],
.theme main a[class*="bg-red-"], .theme main a[class*="bg-blue-"], .theme main a[class*="bg-yellow-"] {
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.theme main button[class*="bg-"]:hover, .theme main a[class*="bg-"]:hover { transform: translateY(-1px); }
.theme main button[class*="bg-"]:active, .theme main a[class*="bg-"]:active { transform: translateY(0); }
.theme main [class*="bg-club-accent"][class*="rounded-lg"] { border-radius: 999px; }
.theme main [class*="bg-club-blue"][class*="rounded-lg"]:not(div):not(section) { border-radius: 999px; }

.theme main table thead { background: var(--club-blue-50, #EEF7F9); }
.theme main [role=alert] { border-radius: .9rem; }

/* Header */
.site-header { background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(10,77,104,.08); }
.nav-pill { position: relative; padding: .5rem .8rem; border-radius: 999px; font-weight: 600; font-size: .925rem; color: #475569; transition: color .15s, background .15s; white-space: nowrap; }
.nav-pill:hover { color: var(--club-blue); background: #EEF7F9; }
.nav-pill.is-active { color: var(--club-blue); background: #E3F1F4; }
.tool-bar { background: linear-gradient(90deg, #0A4D68, #088395); }
.tool-pill { padding: .45rem .9rem; border-radius: 999px; font-weight: 600; font-size: .875rem; color: rgba(255,255,255,.85); white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; }
.tool-pill:hover { color: #fff; background: rgba(255,255,255,.12); }
.tool-pill.is-active { color: var(--club-blue); background: #fff; }
.scroll-x { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroll-x::-webkit-scrollbar { display: none; }
.badge-dot { min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem; border-radius: 999px; background: var(--club-coral); color: #fff; font-size: .7rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

/* Mobile drawer */
#mobile-menu { transition: visibility .25s; }
#mobile-menu .drawer-panel { transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
#mobile-menu.open .drawer-panel { transform: translateX(0); }
#mobile-menu .drawer-backdrop { opacity: 0; transition: opacity .25s; }
#mobile-menu.open .drawer-backdrop { opacity: 1; }
.drawer-link { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; border-radius: .9rem; font-weight: 600; font-size: 1.05rem; color: #1E293B; }
.drawer-link:hover, .drawer-link.is-active { background: #EEF7F9; color: var(--club-blue); }

/* Waves + misc */
.wave-divider { display: block; width: 100%; height: auto; }
#map { height: 280px; background: #EEF7F9; }
.leaflet-container { font-family: inherit; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Modal helper (used by announcements) */
.modal-shell { display: none; }
.modal-shell.is-open { display: flex; }

/* Staging banner, dropdowns, print */
.staging-bar { background: repeating-linear-gradient(45deg,#FDE68A,#FDE68A 12px,#FCD34D 12px,#FCD34D 24px); color:#78350F; }
details.nav-more > summary { list-style: none; cursor: pointer; }
details.nav-more > summary::-webkit-details-marker { display: none; }
details.nav-more[open] > summary { color: var(--club-blue); background: #E3F1F4; }
.qr-box svg { width: 100%; height: auto; display: block; }
@media print {
  .site-header, footer, .no-print, #mobile-menu { display: none !important; }
  body.theme { background: #fff; }
  main { padding: 0 !important; }
}
