/* Layout concept: rink-board signage. Ice-white sheets, navy boards, a red centre
   line and blue lines used as the only ornament. Condensed arena type for display. */
:root {
  --ice: #f3f7fa;
  --ice-2: #e3edf3;
  --board: #ffffff;
  --ink: #12263a;
  --ink-soft: #4a5d70;
  --line: #cfdbe4;
  --red: #c7352c;
  --blue: #1f5fa8;
  --tent: #d9a21b;
  --on-dark: #f3f7fa;
  --night: #0f2233;
  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ice: #0d1b28; --ice-2: #142838; --board: #112333; --ink: #e8f0f6; --ink-soft: #a3b6c6;
    --line: #24394c; --red: #e2574d; --blue: #5b97dc; --tent: #e8b84a; --night: #081420;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ice: #0d1b28; --ice-2: #142838; --board: #112333; --ink: #e8f0f6; --ink-soft: #a3b6c6;
  --line: #24394c; --red: #e2574d; --blue: #5b97dc; --tent: #e8b84a; --night: #081420;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--ice); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1; letter-spacing: .01em; text-wrap: balance; margin: 0; text-transform: uppercase; }
h1 { font-size: clamp(3rem, 9vw, 6.5rem); font-weight: 800; }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h3 { font-size: 1.6rem; font-weight: 700; }
p { margin: 0; max-width: 65ch; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.eyebrow { font: 700 .8rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.stack { display: grid; gap: 18px; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--night); color: var(--on-dark); border-bottom: 4px solid var(--red); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { height: 44px; width: auto; background: #fff; border-radius: 6px; padding: 3px 6px; }
.brand span { font: 800 1.5rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 6px; }
.nav a:hover { background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav a.cta { background: var(--red); color: #fff; border-radius: 6px; box-shadow: none; }
.menu-btn { display: none; background: none; border: 2px solid rgba(255,255,255,.4); color: var(--on-dark); font: 700 .9rem var(--f-body); padding: 8px 12px; border-radius: 6px; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--night); flex-direction: column; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); border-bottom: 4px solid var(--red); }
  .nav.open { display: flex; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--red); }
}

/* Rink-line motif */
.lines { position: relative; }
.lines::before, .lines::after { content: ""; position: absolute; left: 0; right: 0; height: 6px; }
.lines::before { top: 0; background: var(--blue); }
.lines::after { bottom: 0; background: var(--blue); }

/* Hero */
.hero { position: relative; background: var(--night); color: var(--on-dark); overflow: hidden; }
.hero .photo { position: absolute; inset: 0; }
.hero .photo img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero .wrap { position: relative; padding-block: clamp(72px, 12vw, 150px); display: grid; gap: 22px; }
.hero h1 span { color: var(--red); }
.hero .sub { font-size: 1.2rem; color: #cfdde8; }
.marquee { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font: 800 clamp(1.3rem, 3vw, 2rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.marquee i { width: 30px; height: 4px; background: var(--red); display: inline-block; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 1rem var(--f-body); text-decoration: none; padding: 13px 22px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.btn.red { background: var(--red); color: #fff; }
.btn.ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn.blue { background: var(--blue); color: #fff; }
.btn:hover { filter: brightness(1.08); }

.page-hero { background: var(--night); color: var(--on-dark); position: relative; overflow: hidden; }
.page-hero .photo { position: absolute; inset: 0; }
.page-hero .photo img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero .wrap { position: relative; padding-block: clamp(48px, 8vw, 96px); display: grid; gap: 12px; }

/* Image fallback when assets aren't downloaded yet */
.img-slot { background: linear-gradient(135deg, var(--ice-2), var(--line)); }
.img-slot.missing img { visibility: hidden; }

/* Info strip */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; background: var(--board); border: 1px solid var(--line); border-radius: var(--radius); }
.facts > div { padding: 22px 24px; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
.facts .k { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.facts .v { font: 800 1.6rem/1.1 var(--f-display); text-transform: uppercase; }
@media (max-width: 560px) { .facts > div { border-left: 0; border-top: 1px solid var(--line); } .facts > div:first-child { border-top: 0; } }

/* Spaces grid */
.spaces { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.space { background: var(--board); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.space .img-slot { aspect-ratio: 4/3; }
.space .img-slot img { width: 100%; height: 100%; object-fit: cover; }
.space .body { padding: 22px; display: grid; gap: 12px; align-content: start; }
.cap { font: 700 .85rem var(--f-body); color: var(--blue); letter-spacing: .06em; text-transform: uppercase; }
.space ul, .amen ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.framed { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.framed img { width: 100%; height: 100%; object-fit: cover; }

/* Amenities detail */
.amen { display: grid; gap: 0; border-top: 1px solid var(--line); }
.amen article { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding-block: 34px; border-bottom: 1px solid var(--line); }
.amen article > * { min-width: 0; }
.amen .tag { display: grid; gap: 8px; align-content: start; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; background: var(--ice-2); padding: 16px 18px; border-radius: 8px; font-variant-numeric: tabular-nums; max-width: 520px; }
.hours dt { font-weight: 700; } .hours dd { margin: 0; }
.note { font-size: .92rem; color: var(--ink-soft); }
.badge { display: inline-block; font: 700 .75rem var(--f-body); letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; background: var(--red); color: #fff; width: fit-content; }
@media (max-width: 720px) { .amen article { grid-template-columns: 1fr; gap: 14px; } }

/* Calendar */
.cal-shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .cal-shell { grid-template-columns: 1fr; } }
.cal { background: var(--board); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 3px solid var(--red); flex-wrap: wrap; }
.cal-top h3 { font-size: 2rem; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button { font: 700 .95rem var(--f-body); background: var(--ice-2); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; cursor: pointer; }
.cal-nav button:hover { border-color: var(--blue); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chip-btn { font: 600 .85rem var(--f-body); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--ice); border-color: var(--ink); }
.dow, .grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dow div { padding: 8px 10px; font: 700 .75rem var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.grid button { min-height: 92px; border: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; padding: 8px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; font: inherit; min-width: 0; }
.grid button:nth-child(7n+1) { border-left: 0; }
.grid button.out { color: var(--ink-soft); opacity: .45; }
.grid button.past { opacity: .5; }
.grid button.today .num { background: var(--red); color: #fff; border-radius: 999px; padding: 0 7px; }
.grid button.sel { outline: 3px solid var(--blue); outline-offset: -3px; }
.grid button:hover { background: var(--ice); }
.num { font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; width: fit-content; }
.pill { font: 700 .7rem/1.2 var(--f-body); padding: 3px 6px; border-radius: 4px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pill.hall { background: var(--red); }
.pill.meeting { background: var(--blue); }
.pill.tentative { background: transparent; color: var(--ink); border: 2px dashed var(--tent); }
.free { font-size: .7rem; color: var(--ink-soft); }
@media (max-width: 620px) {
  .grid button { min-height: 58px; padding: 5px; }
  .pill { font-size: 0; padding: 0; height: 7px; border-radius: 4px; }
  .pill.tentative { border-width: 2px; height: 7px; }
  .free { display: none; }
}
#booking-calendar .pill { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.4; height: auto; font-size: .65rem; overflow-wrap: anywhere; padding: 3px 6px; }
@media (max-width: 600px) {
  #booking-calendar .grid button { min-height: 88px; }
  #booking-calendar .pill { font-size: 9px; padding: 3px 2px; line-height: 1.35; height: auto; }
}
.legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.side { display: grid; gap: 18px; }
.panel { background: var(--board); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
.panel h3 { font-size: 1.5rem; }
.day-row { display: grid; gap: 2px; padding: 10px 12px; border-radius: 6px; background: var(--ice); border-left: 5px solid var(--line); }
.day-row.hall { border-left-color: var(--red); }
.day-row.meeting { border-left-color: var(--blue); }
.day-row.tentative { border-left-style: dashed; border-left-color: var(--tent); }
.day-row b { font-size: .95rem; } .day-row small { color: var(--ink-soft); }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.contact-line .k { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; display: block; }
.contact-line .v { font-weight: 700; word-break: break-word; }
.copy { font: 600 .8rem var(--f-body); background: var(--ice-2); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; cursor: pointer; }

/* Events */
.events { display: grid; gap: 18px; }
.event { display: grid; grid-template-columns: 110px 220px 1fr; gap: 22px; align-items: center; background: var(--board); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.event > * { min-width: 0; }
.event .date { text-align: center; font-family: var(--f-display); text-transform: uppercase; border-right: 3px solid var(--red); padding-right: 14px; }
.event .date b { display: block; font-size: 3rem; line-height: .9; }
.event .date span { font-size: 1.1rem; font-weight: 700; color: var(--ink-soft); }
.event .img-slot { aspect-ratio: 3/2; border-radius: 8px; overflow: hidden; }
.event .img-slot img { width: 100%; height: 100%; object-fit: cover; }
.event ul { list-style: none; padding: 0; margin: 6px 0 0; color: var(--ink-soft); font-size: .95rem; }
.event.past { opacity: .78; }
@media (max-width: 760px) { .event { grid-template-columns: 90px 1fr; } .event .img-slot { grid-column: 1 / -1; grid-row: 1; } }
.empty { padding: 28px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); }

/* Gallery */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; border-radius: 8px; overflow: hidden; background: var(--ice-2); min-height: 160px; }
.gallery img { width: 100%; height: auto; cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 14, 22, .92); display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
.lightbox img { max-height: 86vh; border-radius: 6px; }
.lightbox button { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); font: 700 1rem var(--f-body); background: #fff; color: #111; border: 0; border-radius: 6px; padding: 10px 14px; cursor: pointer; }

/* Agreement */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.doc { background: var(--board); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; text-decoration: none; color: var(--ink); }
.doc:hover { border-color: var(--blue); }
.doc .ext { font: 800 2.4rem/1 var(--f-display); color: var(--red); }
.steps { display: grid; gap: 14px; counter-reset: s; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); font: 800 1.6rem/44px var(--f-display); text-align: center; background: var(--ink); color: var(--ice); border-radius: 50%; width: 44px; height: 44px; }

/* CTA band + footer */
.band { background: var(--red); color: #fff; }
.band .wrap { padding-block: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.band h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.band .btn.ghost { color: #fff; }
.site-footer { background: var(--night); color: #b9c9d6; font-size: .95rem; }
.site-footer .wrap { padding-block: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.site-footer h3 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.site-footer a { color: #fff; }
.site-footer .credit { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: .85rem; }

/* Fallbacks: keep heroes dark and hide a missing logo */
[hidden] { display: none !important; }
.hero .photo.img-slot, .page-hero .photo.img-slot { background: radial-gradient(120% 90% at 85% 10%, #1f3d5a 0%, var(--night) 60%); }

/* Logo and home video */
.brand img { height: 46px; width: auto; padding: 4px 8px; }
.hero .photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero .photo video + img { display: none; }
@media (prefers-reduced-motion: reduce) { .hero .photo video { display: none; } .hero .photo video + img { display: block; } }
.event .desc { display: grid; gap: 10px; }
.event .desc p { color: var(--ink); }
.event details summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.event .img-slot { background: var(--night); }
.event .img-slot img { object-fit: contain; }

[hidden]{display:none!important}#calendar-status{padding:8px 16px;font-size:.9rem;line-height:1.5}
