@import url("https://fonts.googleapis.com/css2?family=Anton&family=Roboto+Condensed:wght@500;700&family=Roboto:ital,wght@0,400;0,500;0,700;1,400&display=swap");

:root {
  --primary: #fe4002;        /* orange: nav bar, panel headers */
  --accent: #ff7a45;         /* lighter orange for gradients */
  --navy: #1f2a3d;           /* dark panels */
  --navy-2: #2a3850;         /* event chips, hover */
  --footer: #1c2a33;
  --footer-2: #233641;
  --blue: #1d3a9c;           /* page background colour behind the image */
  --title: #172d7c;          /* big outlined title */
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1c2230;
  --muted: #6b7385;
  --line: #e2e5ec;
  --ok: #1f8a4c;
  --warn: #b7791f;
  --bad: #c53030;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 2px 8px rgba(16,24,40,.06);
  --head-font: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.55; background: var(--bg); }
body.site {
  /* The chosen background is remembered by the browser and applied before the page draws (see the <head> script),
     so there's no flash of an old image on refresh. First-time visitors see plain dark navy until it loads. */
  background: #1b2233 var(--site-bg, none) center top / cover fixed no-repeat;
  min-height: 100vh; display: flex; flex-direction: column;
}
@media (max-width: 900px) { body.site { background-attachment: scroll; background-size: auto 100vh; } }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: 1.4rem; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-size: .92em; }
main.wrap { padding-top: 28px; padding-bottom: 56px; flex: 1; width: 100%; }

/* ---------- Header ---------- */
.site-header { background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 70px; max-width: none; padding: 0 30px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; flex: 0 0 auto; }
.brand-logo { height: 46px; width: auto; }
.brand-mark { font-size: 1.8rem; }
.brand-name { font-family: var(--head-font); text-transform: uppercase; font-size: 1.1rem; }
.brand-logo + .brand-name { display: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-family: var(--head-font); font-weight: 700; text-transform: uppercase; font-size: 1.12rem; letter-spacing: .01em; }
.nav a:hover, .nav a.active { background: rgba(0,0,0,.12); }
.header-right { display: flex; align-items: center; gap: 12px; border-left: 1px solid rgba(255,255,255,.45); padding-left: 14px; }
.login-btn { background: #fff; color: #1c2230; text-decoration: none; font-family: var(--head-font); font-weight: 700; text-transform: uppercase; padding: 8px 20px; border-radius: 8px; font-size: 1.05rem; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.7rem; cursor: pointer; margin-left: auto; }
@media (max-width: 980px) {
  .header-inner { padding: 0 16px; gap: 12px; }
  .nav-toggle { display: block; }
  .header-right { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 70px; background: var(--primary); flex-direction: column; padding: 8px 16px 16px; box-shadow: 0 8px 16px rgba(0,0,0,.2); }
  .nav.open { display: flex; }
  .nav .mobile-only { display: block; }
}
.nav .mobile-only { display: none; }

/* ---------- Big outlined title ---------- */
.page-title { text-align: center; padding: 64px 16px 44px; }
.page-title h1, .title-text {
  font-family: Anton, Impact, "Haettenschweiler", "Arial Black", "Arial Narrow Bold", sans-serif; font-weight: 400;
  font-size: clamp(2.2rem, 6.4vw, 5.4rem); letter-spacing: .01em; line-height: 1.02;
  text-transform: uppercase; color: var(--title);
  -webkit-text-stroke: 2px #fff; paint-order: stroke fill;
  text-shadow: 0 3px 0 #0b1a52, 0 6px 14px rgba(0,0,0,.45);
  margin: 0;
}
.page-title img.title-img { margin: 0 auto; max-height: 120px; width: auto; }
.page-title .sub { color: #fff; font-family: var(--head-font); text-transform: uppercase; font-size: 1.15rem; margin-top: 10px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }

/* Inner pages: title in white on the background */
main.wrap > h1, .on-bg { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.45); font-family: var(--head-font); text-transform: uppercase; }
main.wrap > p > a, main.wrap > p.muted, .on-bg a { color: #fff; }
main.wrap > p.muted { color: rgba(255,255,255,.85); }

/* ---------- Home layout ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 30px; align-items: start; max-width: 1240px; margin: 0 auto; padding: 0 16px 60px; }
.home-col { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
@media (max-width: 1000px) { .home-grid { grid-template-columns: 1fr; } }

.panel { background: var(--navy); border-radius: 10px; color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.25); overflow: hidden; }
.panel-head { background: linear-gradient(90deg, var(--primary), var(--accent)); padding: 16px 40px; }
.panel-head h2 { margin: 0; font-family: var(--head-font); font-weight: 700; text-transform: uppercase; font-size: 1.85rem; color: #fff; letter-spacing: .01em; }
.panel-body { padding: 26px 16px 30px; }
.panel-body.pad { padding: 30px 40px 36px; }
.panel-body a { color: #fff; font-weight: 700; }
.panel-body p { margin: 0 0 .9em; }
.panel-foot { border-top: 1px solid rgba(255,255,255,.12); margin: 0 20px; padding: 16px 0 20px; text-align: center; }
.panel-foot a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid #fff; padding-bottom: 2px; }
.whitecard { background: #fff; color: #000; margin: 30px 40px; padding: 20px 24px; font-size: 1.02rem; border-radius: 2px; }
.whitecard a { color: #1155cc; font-weight: inherit; }
@media (max-width: 700px) { .whitecard { margin: 16px; } .panel-head { padding: 14px 20px; } .panel-body.pad { padding: 22px 20px 26px; } }
.rich p:empty::before { content: "\00a0"; }
.rich ul, .rich ol { padding-left: 1.4em; }
.video-wrap { padding: 40px; }
.video-wrap video, .video-wrap iframe { width: 100%; aspect-ratio: 16/9; border: 0; background: #000; display: block; }
@media (max-width: 700px) { .video-wrap { padding: 16px; } }

/* Upcoming events widget */
.ev-item { padding: 6px 20px 16px; }
.ev-item h3 { font-family: var(--head-font); font-size: 1.35rem; margin: 0 0 8px; }
.ev-item h3 a { color: #fff; text-decoration: none; }
.ev-chip { display: inline-block; background: var(--navy-2); color: #d5dbe6; font-size: .86rem; padding: 4px 8px; border-radius: 4px; }
.ev-item.cancelled h3 { text-decoration: line-through; opacity: .7; }

/* Photo albums widget */
.album-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 0 4px; }
.album-tile { background: #36445c; border-radius: 6px; overflow: hidden; color: #fff; text-decoration: none; display: block; }
.album-tile .cover { position: relative; aspect-ratio: 1; background: #2a3850 center/cover no-repeat; }
.album-tile .count { position: absolute; left: 20px; bottom: 12px; background: rgba(40,40,40,.7); padding: 2px 10px; border-radius: 4px; font-weight: 700; font-size: .9rem; }
.album-tile .name { padding: 12px 20px 16px; font-weight: 700; font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--primary); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; font-family: inherit; }
.btn:hover { filter: brightness(.95); }
.btn.secondary { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn.small { padding: 6px 12px; font-size: .88rem; }
.btn.danger { background: var(--bad); }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Cards (inner pages) ---------- */
.section { margin: 40px 0; }
.section > h2 { color: #fff; font-family: var(--head-font); text-transform: uppercase; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; border-radius: var(--radius) var(--radius) 0 0; background: #dde2ea; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-body { padding: 16px 18px 18px; }
.card a.stretch { text-decoration: none; color: inherit; display: block; }
.empty { padding: 28px; text-align: center; color: var(--muted); background: var(--card); border-radius: var(--radius); border: 1px dashed var(--line); }
.panel .empty { background: transparent; color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.2); }
.prose { max-width: 820px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #eef1f6; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; }
.badge.accent { background: var(--primary); color: #fff; }
.badge.bad { background: #fde8e8; color: var(--bad); }
.badge.ok { background: #e3f5ea; color: var(--ok); }
.badge.warn { background: #fdf3e1; color: var(--warn); }

/* ---------- Schedule ---------- */
.event { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.datebox { flex: 0 0 62px; text-align: center; background: var(--primary); color: #fff; border-radius: 8px; padding: 6px 0; }
.datebox .m { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.datebox .d { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.event h3 { font-size: 1.08rem; margin: 0 0 2px; }
.event.cancelled h3 { text-decoration: line-through; color: var(--muted); }
.month-label { margin: 26px 0 4px; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.month-label:first-child { margin-top: 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { border: 0; background: rgba(255,255,255,.9); padding: 7px 16px; border-radius: 99px; cursor: pointer; font-size: .92rem; font-weight: 600; font-family: inherit; }
.tabs button.active { background: var(--primary); color: #fff; }

/* ---------- Photos ---------- */
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.photo-grid button { padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 8px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; z-index: 100; flex-direction: column; padding: 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 100%; object-fit: contain; }
.lightbox .cap { color: #fff; margin-top: 10px; text-align: center; }
.lightbox .lb-btn { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; font-size: 1.6rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; }
.lb-next { right: 16px; top: 50%; }

/* ---------- Sponsors ---------- */
.sponsor-tier { margin-bottom: 32px; }
.sponsor-tier > h2 { color: #fff; font-family: var(--head-font); text-transform: uppercase; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.sponsor-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.sponsor { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; text-decoration: none; color: inherit; min-height: 160px; }
.sponsor img { max-height: 90px; object-fit: contain; }

/* Sponsor band (bottom of every page) */
.sponsor-band { background: var(--navy); padding: 34px 0 30px; color: #fff; }
.sponsor-band h2 { text-align: center; font-family: var(--head-font); text-transform: uppercase; font-size: 1.85rem; margin: 0 0 24px; }
.sponsor-band h2 a { color: #fff; text-decoration: none; border-bottom: 3px solid #fff; padding-bottom: 4px; }
.band-track-wrap { position: relative; }
.band-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 0 44px 6px; scrollbar-width: none; }
.band-track::-webkit-scrollbar { display: none; }
.band-item { flex: 0 0 auto; width: 260px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 14px; text-decoration: none; color: #fff; text-align: center; }
.band-logo { width: 100px; height: 100px; border-radius: 6px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.band-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.band-logo.text { background: #222b38; color: #fff; font-family: var(--head-font); font-weight: 700; text-transform: uppercase; font-size: 1.05rem; line-height: 1.15; padding: 8px; }
.band-name { font-family: var(--head-font); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.band-arrow { position: absolute; top: 34px; width: 36px; height: 36px; border: 0; background: transparent; color: #fff; font-size: 1.8rem; cursor: pointer; z-index: 2; }
.band-arrow.prev { left: 4px; } .band-arrow.next { right: 4px; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
input, select, textarea { width: 100%; font: inherit; padding: 9px 11px; border: 1px solid #cfd4de; border-radius: 7px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 14px; }
.field-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.check input { width: auto; }
.price { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.notice { padding: 12px 16px; border-radius: 8px; background: #eef4ff; border: 1px solid #c9dafd; margin-bottom: 16px; color: var(--text); }
.notice.bad { background: #fde8e8; border-color: #f5c2c2; }
.notice.ok { background: #e3f5ea; border-color: #b9e3c8; }
.notice.warn { background: #fdf3e1; border-color: #f1d9a8; }

/* ---------- Footer ---------- */
.site-footer { color: rgba(255,255,255,.85); font-size: .92rem; margin-top: auto; }
.footer-main { background: var(--footer); padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; max-width: none; padding: 0 30px; }
.footer-left { display: flex; align-items: center; gap: 40px; }
.footer-left img { height: 48px; width: auto; }
.footer-icons { display: flex; gap: 16px; }
.footer-icons a { color: #fff; display: inline-flex; }
.footer-icons svg { width: 20px; height: 20px; fill: currentColor; }
.footer-email { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.footer-email svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer-links { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { background: var(--footer-2); padding: 18px 0; color: rgba(255,255,255,.55); font-size: .85rem; }
.footer-bottom .footer-inner { justify-content: space-between; }
.footer-bottom .copy { text-transform: uppercase; letter-spacing: .03em; }
@media (max-width: 700px) { .footer-inner { padding: 0 16px; } .footer-left { gap: 20px; } }

/* ---------- Formatted text inside dark panels (registration info, etc.) ---------- */
.panel-body.rich { font-size: 1.02rem; line-height: 1.65; color: #e6ebf3; }
.panel-body.rich > :first-child { margin-top: 0; }
.panel-body.rich > :last-child { margin-bottom: 0; }
.panel-body.rich p { margin: 0 0 1em; }
.panel-body.rich strong { color: #fff; }
.panel-body.rich a { color: #fff; text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.panel-body.rich a:hover { color: var(--accent); }
.panel-body.rich h2, .panel-body.rich h3 {
  font-family: var(--head-font); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: #fff;
  font-size: 1.4rem; margin: 34px 0 14px; padding: 0 0 8px; border-bottom: 2px solid rgba(255,255,255,.12); position: relative;
}
.panel-body.rich h2::after, .panel-body.rich h3::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--primary); }
.panel-body.rich h4 { font-family: var(--head-font); text-transform: uppercase; color: #fff; font-size: 1.1rem; margin: 22px 0 8px; }
.panel-body.rich blockquote {
  margin: 0 0 22px; padding: 16px 20px; border-radius: 8px; color: #fff;
  background: linear-gradient(90deg, rgba(254,64,2,.28), rgba(255,122,69,.12)); border-left: 5px solid var(--primary);
}
.panel-body.rich blockquote p:last-child { margin-bottom: 0; }
.panel-body.rich ol { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.2em; }
.panel-body.rich ol > li { counter-increment: step; position: relative; padding: 2px 0 0 46px; margin: 0 0 14px; min-height: 32px; }
.panel-body.rich ol > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff; font-family: var(--head-font); font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.panel-body.rich ul { padding-left: 0; margin: 0 0 1.2em; list-style: none; }
.panel-body.rich ul > li { position: relative; padding-left: 22px; margin: 0 0 12px; }
.panel-body.rich ul > li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 2px; background: var(--primary); transform: rotate(45deg); }
.rich kbd {
  font-family: ui-monospace, Consolas, "Courier New", monospace; font-weight: 700; font-size: .95em; letter-spacing: .04em;
  background: #fff; color: #172d7c; padding: 2px 9px; border-radius: 5px; border-bottom: 3px solid var(--primary); white-space: nowrap;
}
.whitecard kbd { background: #eef2fb; }
.panel-body.rich hr { border: 0; border-top: 1px solid rgba(255,255,255,.15); margin: 24px 0; }
/* Sidebar text blocks (Officers, Documents) keep their tighter look */
.home-col#col-side .panel-body.rich { font-size: 1rem; line-height: 1.5; }
.home-col#col-side .panel-body.rich p { margin: 0 0 .85em; }
html { scroll-behavior: smooth; }
section.panel[id] { scroll-margin-top: 90px; }

/* ---------- Banner (home page title area) ---------- */
.page-title .bn-inner { --bn-text: #172d7c; --bn-outline: #ffffff; }
.page-title h1.bn-outlined, .page-title h1.bn-solid {
  font-family: Anton, Impact, "Haettenschweiler", "Arial Black", "Arial Narrow Bold", sans-serif; font-weight: 400;
  letter-spacing: .01em; line-height: 1.02; text-transform: uppercase; margin: 0;
}
.page-title h1.bn-outlined { color: var(--bn-text); -webkit-text-stroke: 2px var(--bn-outline); paint-order: stroke fill; text-shadow: 0 3px 0 rgba(0,0,0,.35), 0 6px 14px rgba(0,0,0,.45); }
.page-title h1.bn-solid { color: var(--bn-text); -webkit-text-stroke: 0; text-shadow: 0 2px 0 rgba(0,0,0,.25), 0 6px 18px rgba(0,0,0,.5); }
.bn-large h1 { font-size: clamp(2.2rem, 6.4vw, 5.4rem); }
.bn-medium h1 { font-size: clamp(1.9rem, 4.8vw, 4rem); }
.bn-small h1 { font-size: clamp(1.6rem, 3.4vw, 2.8rem); }
.page-title:has(.bn-small) { padding: 40px 16px 30px; }
.page-title:has(.bn-medium) { padding: 52px 16px 38px; }
.bn-large .title-img { max-height: 160px; }
.bn-medium .title-img { max-height: 120px; }
.bn-small .title-img { max-height: 80px; }
.bn-btn-row { margin-top: 20px; }
.bn-btn { font-family: var(--head-font); text-transform: uppercase; font-size: 1.15rem; padding: 12px 28px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.page-title[hidden] + .home-grid { padding-top: 34px; }

/* ---------- Announcement strip (every page) ---------- */
.site-alert { font-weight: 600; font-size: .98rem; text-align: center; padding: 10px 0; }
.site-alert a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.alert-orange { background: #ffe1d3; color: #7a2300; }
.alert-blue { background: #dbe7ff; color: #102a6b; }
.alert-green { background: #d9f4e2; color: #12502a; }
.alert-red { background: #c62828; color: #fff; }
.alert-yellow { background: #ffe680; color: #4a3b00; }

/* ---------- Menu dropdowns ---------- */
.nav-dd { position: relative; }
.nav-dd-btn { background: none; border: 0; color: #fff; padding: 8px 12px; border-radius: 6px; font-family: var(--head-font); font-weight: 700; text-transform: uppercase; font-size: 1.12rem; letter-spacing: .01em; cursor: pointer; }
.nav-dd-btn:hover, .nav-dd-btn.active, .nav-dd.open .nav-dd-btn { background: rgba(0,0,0,.12); }
.nav-dd-btn span { font-size: .8em; }
.nav-dd-menu { display: none; position: absolute; left: 0; top: calc(100% + 6px); min-width: 240px; background: var(--navy); border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.35); padding: 6px; z-index: 30; }
.nav-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-dd:hover .nav-dd-menu, .nav-dd.open .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { display: block; }
.nav .nav-dd-menu a { display: block; font-size: 1rem; padding: 9px 12px; border-radius: 6px; }
.nav .nav-dd-menu a:hover, .nav .nav-dd-menu a.active { background: rgba(255,255,255,.1); }
@media (max-width: 980px) {
  .nav-dd-btn { width: 100%; text-align: left; }
  .nav-dd-menu { display: block; position: static; box-shadow: none; background: rgba(0,0,0,.12); margin: 2px 0 6px 12px; min-width: 0; }
}

/* ---------- Custom pages ---------- */
.page-wrap { max-width: 980px; }
.panel-h1 { margin: 0; font-family: var(--head-font); font-weight: 700; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: #fff; letter-spacing: .01em; }

/* Registration form extras */
.total-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; padding: 12px 0; margin: 4px 0 12px; border-top: 1px solid var(--line); font-size: .95rem; }
.total-row:empty { display: none; }
.total-row strong { font-size: 1.15rem; color: var(--navy); }
.total-row .hint { flex-basis: 100%; }
.hint { color: var(--muted); font-size: .82rem; margin-top: 3px; }
.money-in { display: flex; align-items: center; gap: 6px; max-width: 180px; }
.money-in span { font-weight: 700; color: var(--muted); }

/* Program details beside the registration form sit on the dark background */
.store-info { color: #e6ebf3; }
.store-info h1 { color: #fff; font-family: var(--head-font); text-transform: uppercase; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.store-info .price { color: #fff; font-size: 1.5rem; }
.store-info .muted { color: rgba(255,255,255,.8); }
.store-info .muted strong { color: #fff; }
.store-info .prose a { color: #fff; text-decoration-color: var(--primary); }
.store-info .badge { background: var(--primary); color: #fff; }
main.wrap > p > a { color: #fff; }

/* ---------- Waiver signing on the registration form ---------- */
.waiver { border-top: 1px solid var(--line, #e3e7ee); margin-top: 18px; padding-top: 16px; }
.waiver h3 { margin: 0 0 10px; }
.waiver-text { max-height: 280px; overflow-y: auto; border: 1px solid #d5dae3; border-radius: 8px; padding: 12px 14px; background: #f8f9fb; font-size: .92rem; line-height: 1.5; margin-bottom: 12px; }
.waiver-text > :first-child { margin-top: 0; }
.waiver-text > :last-child { margin-bottom: 0; }
.waiver-agree { margin: 4px 0 14px; align-items: flex-start; }
.waiver-agree input { margin-top: 4px; }
.sig { border: 1px solid #e3e7ee; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.sig-head { margin-bottom: 8px; }
.sig .field { margin-bottom: 10px; }
.sig-box { position: relative; border: 2px dashed #b8c0ce; border-radius: 8px; background: #fff; }
.sig.signed .sig-box { border-style: solid; border-color: #6b7a99; }
.sig-box canvas { display: block; width: 100%; height: auto; aspect-ratio: 600 / 170; touch-action: none; cursor: crosshair; }
.sig-ph { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: #9aa3b2; pointer-events: none; font-size: .9rem; }
.sig.signed .sig-ph { display: none; }
.sig-box::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 26%; border-bottom: 1px solid #c9cfda; pointer-events: none; }
.sig-clear { position: absolute; right: 6px; top: 6px; font: inherit; font-size: .8rem; background: #eef1f6; border: 0; border-radius: 6px; padding: 3px 9px; cursor: pointer; color: #333; }
.wdoc + .wdoc { margin-top: 22px; padding-top: 18px; border-top: 1px dashed #d5dae3; }
.wdoc h3 { margin: 0 0 10px; }
.waiver-text blockquote { margin: 0 0 12px; padding: 10px 14px; border-left: 4px solid var(--primary); background: #fff3ee; border-radius: 6px; }
.waiver-text blockquote p { margin: 0; }
.waiver-text a { color: #c2410c; font-weight: 600; text-decoration: underline; }
