:root {
  --navy: #14306e;
  --blue: #1f4fb5;
  --blue-soft: #e8eefb;
  --amber: #f5a623;
  --amber-dark: #c27a00;
  --ink: #1b2233;
  --muted: #4a5468;
  --line: #dde3ee;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --yes: #1d7a46;
  --no: #8a93a6;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(20, 48, 110, 0.10);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { font-size: 112.5%; } /* 18px base, larger for readability */
@media (min-width: 900px) { html { font-size: 118.75%; } } /* 19px */

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Nunito", system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 1.6em 0 0.5em;
}
h1 { font-size: 2.1rem; margin-top: 1.2em; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.3rem; margin: 0; }
h4 { font-size: 1.05rem; margin: 1.2em 0 0.3em; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.small { font-size: 0.9rem; color: var(--muted); }
.big { font-size: 1.3rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .8rem; color: var(--amber-dark); margin: 0; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand img { display: block; height: 64px; width: auto; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--navy); font-weight: 700;
}
nav a:hover { background: var(--blue-soft); }
nav a[aria-current="page"] { background: var(--navy); color: #fff; }
@media (max-width: 720px) {
  .site-header { position: static; }
  .header-inner { justify-content: center; }
  .brand img { height: 46px; }
  nav ul { justify-content: center; }
  nav a { padding: 8px 12px; }
}

/* Buttons */
.button {
  display: inline-block; background: var(--amber); color: #1b1300;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 14px rgba(245, 166, 35, .35);
}
.button:hover { background: #ffb93f; color: #1b1300; }
.button.ghost { background: transparent; color: #fff; border: 2px solid #fff; box-shadow: none; }
.button.ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.button.secondary { background: var(--blue-soft); color: var(--navy); box-shadow: none; }

/* Hero */
.hero { position: relative; min-height: 520px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,48,110,.15) 0%, rgba(20,48,110,.55) 45%, rgba(12,28,66,.9) 100%);
}
.hero-text { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 48px; width: 100%; }
.hero h1 { color: #fff; font-size: 2.5rem; max-width: 17em; margin: 0 0 .4em; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero p { font-size: 1.2rem; max-width: 34em; margin: 0 0 1em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
@media (max-width: 720px) {
  .hero { min-height: 480px; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 1.05rem; }
}

/* Cards & sections */
.card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 28px 20px; margin: 28px 0; }
.card h2 { margin-top: .8em; }
.notice { background: #fff8ea; border-color: #f5dba6; }

.next {
  display: flex; gap: 22px; align-items: center;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 26px; margin: -56px 0 24px; position: relative; z-index: 2; border: 1px solid var(--line);
}
.next h2 { margin: 0 0 .2em; font-size: 1.35rem; }
.next p { margin: 0; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; margin: 32px 0; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 12px; } }

.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.photo.wide { aspect-ratio: 16 / 9; margin: 8px 0 20px; }

.steps { padding-left: 1.3em; }
.steps li { margin: .6em 0; }

/* Date badge */
.badge {
  flex: none; width: 76px; height: 82px; border-radius: 14px; overflow: hidden;
  background: #fff; border: 2px solid var(--navy); text-align: center; line-height: 1;
  display: flex; flex-direction: column;
}
.badge .m { background: var(--navy); color: #fff; font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; padding: 7px 0; }
.badge .d { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.9rem; color: var(--navy); flex: 1; display: flex; align-items: center; justify-content: center; }

/* Rally table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); margin: 24px 0; }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
caption { text-align: left; font-family: "Poppins", sans-serif; font-weight: 700; color: var(--navy); font-size: 1.2rem; padding: 16px 18px 6px; }
th, td { text-align: left; padding: 10px 18px; border-top: 1px solid var(--line); }
thead th { background: var(--bg-soft); color: var(--navy); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:nth-child(even) { background: #fbfcfe; }
@media (max-width: 600px) {
  table { min-width: 0; font-size: .95rem; }
  th, td { padding: 9px 10px; }
  th:nth-child(4), td:nth-child(4) { display: none; } /* nights: shown on each rally card */
}

/* Rally cards */
.rally {
  display: flex; gap: 22px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 26px; margin: 22px 0; scroll-margin-top: 110px;
}
.rally-body { flex: 1; min-width: 0; }
.rally .town { margin: 0; color: var(--muted); font-weight: 700; }
.rally .when { margin: .4em 0 0; font-weight: 700; }
.rally .tbc { margin: .3em 0 0; color: var(--amber-dark); font-weight: 700; }
.rally .soon { background: var(--blue-soft); border-radius: 10px; padding: 10px 14px; display: inline-block; margin: 1em 0 0; }
.rally .address { color: var(--muted); }
@media (max-width: 600px) {
  .rally { flex-direction: column; gap: 12px; padding: 20px; }
  .badge { width: 66px; height: 72px; }
}

.chips { list-style: none; padding: 0; margin: 14px 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px; font-size: .9rem; font-weight: 700; }
.chips .yes { background: #e5f4ec; color: var(--yes); }
.chips .no { background: #eef0f4; color: #5b6477; }
.chips .no .icon { opacity: .55; }
.icon { width: 18px; height: 18px; fill: currentColor; flex: none; }

dl.facts, dl.bank { margin: 12px 0; display: grid; gap: 6px; }
dl.facts div, dl.bank div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; }
dt { font-weight: 700; color: var(--navy); }
dd { margin: 0; }
@media (max-width: 520px) { dl.facts div, dl.bank div { grid-template-columns: 1fr; gap: 0; } }

details { margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; background: var(--bg-soft); }
summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: 8px 0; }

/* Committee */
.committee { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.committee li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.committee .role { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--amber-dark); font-weight: 700; }
.committee a { word-break: break-word; }

/* Downloads */
.downloads { padding-left: 1.2em; }
.downloads li { margin: .4em 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin: 24px 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); display: block; transition: transform .2s; }
.gallery a:hover img { transform: translateY(-3px); }
.gallery figcaption { margin-top: 8px; font-weight: 600; color: var(--muted); }

.lightbox { border: none; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(10, 20, 45, .88); }
.lightbox img { max-width: 94vw; max-height: 82vh; display: block; border-radius: 10px; margin: 0 auto; }
.lightbox .cap { color: #fff; text-align: center; font-size: 1.1rem; }
.lightbox .close { position: fixed; top: 14px; right: 18px; font-size: 2.4rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }

/* Footer */
.site-footer { background: var(--navy); color: #dfe6f7; margin-top: 64px; padding: 28px 0 36px; }
.site-footer a { color: #fff; }
.site-footer .small { color: #b9c5e3; }

/* Mobile menu (only collapses when JavaScript is on) */
.menu-toggle {
  display: none; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
  border: 2px solid var(--navy); border-radius: 999px; background: #fff; color: var(--navy);
  font: 700 1rem "Nunito", sans-serif; cursor: pointer;
}
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }
nav a { min-height: 44px; display: flex; align-items: center; }
@media (max-width: 1100px) {
  .collapsible .header-inner { justify-content: space-between; }
  .collapsible .menu-toggle:not([hidden]) { display: inline-flex; }
  .collapsible nav { display: none; width: 100%; }
  .collapsible.open nav { display: block; }
  .collapsible nav ul { flex-direction: column; gap: 2px; padding: 6px 0 10px; }
  .collapsible nav a { border-radius: 12px; padding: 10px 14px; font-size: 1.1rem; }
}
.button { min-height: 48px; }

/* Next rally countdown */
.next { flex-wrap: wrap; }
.next-body { flex: 1; min-width: 220px; }
.countdown { margin: 0; text-align: center; font-weight: 700; color: var(--navy); background: #fff4dc; border-radius: 14px; padding: 10px 18px; }
.countdown .num { display: block; font-family: "Poppins", sans-serif; font-size: 2rem; color: var(--amber-dark); line-height: 1.1; }
@media (max-width: 600px) { .next { margin-top: -40px; padding: 18px; } .countdown { width: 100%; } }

/* Tip teaser */
.tip-teaser { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; border-radius: var(--radius); padding: 8px 28px 24px; margin: 36px 0; box-shadow: var(--shadow); }
.tip-teaser h2 { color: #fff; margin-top: .3em; }
.tip-teaser .eyebrow { color: #ffd27a; margin-top: 1.2em; }

/* News */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.news-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px 16px; box-shadow: var(--shadow); }
.news-item.pinned { background: #fff8ea; border-color: #f5dba6; }
.news-item h3 { font-size: 1.15rem; margin: .2em 0 .4em; }
.news-item .eyebrow { margin-top: 1em; }
.news-item .photo { margin-top: 14px; }
.news-body p { white-space: pre-line; }
.news-link { margin: 14px 0 4px; }
.news-link .button { min-height: 44px; }
.news-item .photo + .news-link { margin-top: 16px; }
.read-more {
  border: 0; background: none; padding: 6px 0; min-height: 44px; font: inherit; font-weight: 700;
  color: var(--blue); text-decoration: underline; cursor: pointer;
}
.read-more:hover { color: var(--navy); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* "Read more" news dialog */
.news-modal {
  width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  padding: 8px 24px 24px; border: 0; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.35);
  color: var(--ink); background: #fff;
}
.news-modal::backdrop { background: rgba(12, 28, 66, .6); }
.news-modal h2 { margin: .2em 0 .5em; }
.news-modal .eyebrow { margin-top: 12px; }
.news-modal-photo img { width: 100%; height: auto; border-radius: 12px; display: block; margin: 4px 0 8px; }
.news-modal-link .news-link { margin: 18px 0 0; }
@media (max-width: 600px) { .news-modal-link .button { display: flex; justify-content: center; width: 100%; } }
.news-modal-body p { white-space: pre-line; }
.news-modal-close {
  position: sticky; top: 0; float: right; margin: 0 -12px 0 8px; width: 44px; height: 44px; border: 0;
  border-radius: 50%; background: var(--bg-soft); color: var(--navy); font-size: 1.2rem; cursor: pointer; z-index: 1;
}
.news-modal-close:focus-visible, .read-more:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
@media (max-width: 400px) { .news-modal { padding: 6px 16px 18px; } }

/* Map */
.map { display: none; height: 460px; border-radius: var(--radius); box-shadow: var(--shadow); margin: 24px 0; border: 1px solid var(--line); z-index: 0; }
.map.ready { display: block; }
@media (max-width: 600px) { .map { height: 380px; } }
.pin span { display: block; width: 28px; height: 28px; background: var(--amber); border: 3px solid var(--navy); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.leaflet-popup-content { font: 1rem/1.5 "Nunito", sans-serif; }
.leaflet-touch .leaflet-bar a, .leaflet-bar a { width: 44px !important; height: 44px !important; line-height: 44px !important; font-size: 22px !important; }
.rally-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* What to expect */
.expect { margin: 32px 0; }
.expect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.expect-grid > div { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; }
.expect-grid h3 { font-size: 1.1rem; margin: .3em 0; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 20px 0 20px 8px; border-left: 3px solid var(--blue-soft); }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before { content: ""; position: absolute; left: -10px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--amber); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--amber); }
.timeline .year { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--navy); }
.timeline p { margin: .1em 0 0; }

/* Tips page */
.tips-hero { background: linear-gradient(135deg, #eef3fd, #fff6e3); border-radius: var(--radius); padding: 10px 30px 24px; margin-top: 28px; }
.tips-hero h1 { margin-top: .3em; }
.tips-hero .eyebrow { margin-top: 1.4em; }
.checklist-app { margin: 28px 0; }
.cl-toolbar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cl-tabs, .cl-modes { display: flex; flex-wrap: wrap; gap: 6px; background: var(--bg-soft); padding: 6px; border-radius: 999px; border: 1px solid var(--line); }
.cl-tabs button, .cl-modes button {
  min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent;
  font: 700 1rem "Nunito", sans-serif; color: var(--navy); cursor: pointer;
}
.cl-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.cl-modes button[aria-pressed="true"] { background: var(--amber); color: #1b1300; }
.cl-progress { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.bar { height: 14px; background: var(--blue-soft); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--amber)); border-radius: 999px; transition: width .45s ease; }
.progress-text { margin: 8px 0 10px; font-weight: 700; color: var(--navy); }
.complete .progress-text { color: var(--yes); }
.cl-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cl-buttons .button { border: 0; cursor: pointer; font: 700 1rem "Nunito", sans-serif; padding: 0 20px; }
.cl-panel { margin-bottom: 18px; }
.checklist-app.js .cl-kind { display: none; }
.cl-title { font-size: 1.25rem; margin: 18px 0 10px; }
.cl-panel fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 10px; margin: 0 0 14px; background: #fff; min-width: 0; }
.cl-panel legend { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--navy); padding: 0 8px; }
.cl-panel ul { list-style: none; padding: 0; margin: 0; }
.cl-panel label { display: flex; gap: 14px; align-items: flex-start; padding: 10px 4px; cursor: pointer; border-radius: 10px; }
.cl-panel label:hover { background: var(--bg-soft); }
.cl-panel input[type=checkbox] { flex: none; width: 26px; height: 26px; margin: 2px 0 0; accent-color: var(--yes); cursor: pointer; }
.cl-panel input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(29,122,70,.6); }
.mini-card { background: #fff8ea; border: 1px solid #f5dba6; border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.source { margin-top: 10px; }
.sorn { background: #fff; box-shadow: var(--shadow); border-left: 6px solid var(--amber); }
.ticks { padding-left: 0; list-style: none; }
.ticks li { padding-left: 32px; position: relative; margin: .55em 0; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; top: 0; color: var(--yes); font-weight: 700; }
.faq { background: #fff; }
.faq summary { font-size: 1.08rem; color: var(--navy); min-height: 44px; display: flex; align-items: center; }
.acceo { background: linear-gradient(135deg, #eef3fd, #fff); }
@media (max-width: 600px) {
  .cl-tabs, .cl-modes { width: 100%; border-radius: 18px; }
  .cl-tabs button, .cl-modes button { flex: 1; padding: 0 10px; }
  .tips-hero { padding: 6px 18px 18px; }
}

/* Bigger text option */
html.big-text { font-size: 131.25%; }
@media (min-width: 900px) { html.big-text { font-size: 137.5%; } }
.text-size {
  min-height: 44px; padding: 0 14px; border: 2px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--navy); font: 700 .95rem "Nunito", sans-serif; cursor: pointer;
}
.text-size[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.text-size span { position: absolute; left: -9999px; } /* label for screen readers; the button shows "A+" */
.header-inner { flex-wrap: nowrap; }
.header-inner nav { margin-left: auto; }
@media (min-width: 1101px) {
  .brand img { height: 54px; }
  nav ul { flex-wrap: nowrap; gap: 2px; }
  nav a { padding: 8px 11px; font-size: .95rem; white-space: nowrap; }
}
@media (max-width: 1100px) {
  .header-inner { flex-wrap: wrap; }
  .brand { order: 0; }
  .text-size { order: 1; margin-left: auto; }
  .menu-toggle { order: 2; }
  .header-inner nav { order: 3; margin-left: 0; }
}
button.button { border: 0; cursor: pointer; font: 700 1rem "Nunito", sans-serif; }
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .header-inner { gap: 8px 10px; }
  .menu-toggle { padding: 0 14px; }
  .text-size { padding: 0 10px; }
}

/* Hero video */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* Montage */
.montage video { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: #000; display: block; }

.montage-wrap { position: relative; }
.sound-toggle {
  position: absolute; top: 12px; right: 12px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  background: rgba(12, 28, 66, .85); color: #fff; font: 700 .95rem "Nunito", sans-serif; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.sound-toggle[aria-pressed="true"] { background: var(--amber); color: #1b1300; }

/* Calendar buttons */
.cal-box p:first-child { display: flex; flex-wrap: wrap; gap: 10px; }
code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: .85em; word-break: break-all; }

/* News and reports */
.reports { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.report-card { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px 6px; }
.report-card h3 { font-size: 1.15rem; margin: .2em 0; }
.report-card .eyebrow { margin-top: 12px; }
.report-card:hover h3 { text-decoration: underline; }

/* Packing list */
.packing .cl-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.linkish { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; font: inherit; cursor: pointer; }

/* Printable calendar */
.print-sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.print-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.print-head h1 { margin: 0; }
.print-head p { margin: .2em 0 0; color: var(--muted); }
.print-table { min-width: 0; margin: 16px 0; }
.print-table td, .print-table th { padding: 7px 10px; }
.print-foot { display: flex; gap: 16px; align-items: center; }
.print-foot p { margin: 0; min-width: 0; overflow-wrap: anywhere; }
/* Narrow phones: the calendar fits the screen (it prints on A4 as before). */
@media screen and (max-width: 480px) {
  .print-sheet { padding: 12px; }
  .print-table { font-size: .9rem; }
  .print-table td, .print-table th { padding: 6px 5px; overflow-wrap: anywhere; }
  .print-foot { flex-wrap: wrap; }
}
/* Long email addresses and links wrap instead of pushing the page sideways. */
main a, main p, main li { overflow-wrap: anywhere; }
@media print {
  .no-print, .text-size, .menu-toggle { display: none !important; }
  .print-sheet { border: 0; padding: 0; margin: 0; }
  .print-table { font-size: 10.5pt; }
  .print-head img { height: 60px; width: auto; }
  @page { size: A4; margin: 12mm; }
}

.rally-filter { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; margin: 12px 0 20px; position: sticky; top: 90px; z-index: 3; box-shadow: var(--shadow); }
@media (max-width: 1100px) { .rally-filter { position: static; } }
.filter-title { margin: 0 0 6px; font-weight: 700; color: var(--navy); }
.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-options label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: #fff; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 700; color: var(--navy); }
.filter-options label:has(input:checked) { border-color: var(--yes); background: #e5f4ec; color: var(--yes); }
.filter-options input { width: 20px; height: 20px; accent-color: var(--yes); }
.filter-quick { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 12px 0 0; }
.filter-result { margin: 8px 0 0; font-weight: 700; color: var(--muted); }
.filter-result:empty { display: none; }
tr.dim td { opacity: .35; }
.no-match { font-weight: 700; color: var(--amber-dark); }
.theme-badge { display: inline-block; margin: .5em 0 0; background: #fff4dc; color: var(--amber-dark); font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.needed { columns: 2 260px; }
p.card { padding: 16px 24px; }

/* Rallies list (compact rows) */
.lead.short { margin-bottom: 8px; }
.rally-list { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; gap: 10px; }
.rally-row {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: 0 2px 10px rgba(20,48,110,.06);
}
.rally-row:hover { border-color: var(--blue); }
.badge.sm { width: 54px; height: 58px; border-radius: 10px; }
.badge.sm .m { font-size: .7rem; padding: 4px 0; }
.badge.sm .d { font-size: 1.4rem; }
.rr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rr-main strong { color: var(--navy); font-family: "Poppins", sans-serif; font-size: 1.05rem; line-height: 1.25; }
.rr-sub { color: var(--muted); font-size: .9rem; }
.rr-icons { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 110px; }
.mi { width: 28px; height: 28px; border-radius: 50%; background: #e5f4ec; color: var(--yes); display: inline-flex; align-items: center; justify-content: center; }
.mi .icon { width: 16px; height: 16px; }
.mini-soon, .mini-basic { font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.rr-go { font-size: 1.6rem; color: var(--blue); line-height: 1; }
.sr { position: absolute; left: -9999px; }
@media (max-width: 430px) {
  .rally-row { gap: 10px; padding: 9px 10px; }
  .rr-icons { max-width: 64px; }
  .mi { width: 26px; height: 26px; }
  .rr-go { display: none; }
}

/* Filter bar: compact chips, sticky on phones */
.rally-filter { position: sticky; top: 0; z-index: 4; padding: 10px 12px; margin: 8px 0 12px; }
@media (min-width: 1101px) { .rally-filter { top: 78px; } }
.filter-options { gap: 6px; }
.filter-options label, .chip-tent { min-height: 40px; padding: 0 12px; font-size: .92rem; }
.chip-tent {
  display: inline-flex; align-items: center; border: 2px solid var(--amber); background: #fff8ea; color: #6b4300;
  border-radius: 999px; font: 700 .92rem "Nunito", sans-serif; cursor: pointer;
}
.chip-tent[aria-pressed="true"] { background: var(--amber); color: #1b1300; }
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.filter-bar .filter-result { margin: 0; font-size: .9rem; }
.view-switch { margin-left: auto; display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.view-switch button { border: 0; background: none; border-radius: 999px; padding: 0 14px; min-height: 36px; font: 700 .9rem "Nunito", sans-serif; color: var(--navy); cursor: pointer; }
.view-switch button[aria-selected="true"] { background: var(--navy); color: #fff; }
body:not(.views-on) .view[data-view="map"] { display: none; } /* no JS: no empty map box */
.view .map { display: block; }
.rally-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 28px; }
.rally-extras .card { margin: 0; }
.rally-extras h2 { font-size: 1.2rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) {
  .lead.short { font-size: 1rem; }
  .rally-filter { padding: 8px 10px; border-radius: 14px; }
  /* one swipeable row of chips keeps the sticky bar short */
  .filter-options { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -10px; padding: 0 10px 2px; }
  .filter-options::-webkit-scrollbar { display: none; }
  .filter-options label, .chip-tent { flex: none; min-height: 38px; padding: 0 10px; font-size: .85rem; white-space: nowrap; }
  .filter-options label .icon { display: none; }
  .filter-bar { gap: 8px; margin-top: 6px; }
  .filter-bar .filter-result { font-size: .8rem; }
  .view-switch button { padding: 0 10px; min-height: 34px; font-size: .85rem; }
}

/* Single rally page */
.crumbs { margin: 20px 0 0; }
.rally-title { font-size: 1.8rem; margin: 0; }
.prev-next { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 20px; font-weight: 700; }

/* About page mosaic and numbers */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; margin: 20px 0; }
.mosaic figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 0; }
.mosaic .m-big { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
.mosaic .m-big img { aspect-ratio: auto; min-height: 100%; }
.mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px;
  background: linear-gradient(transparent, rgba(12, 28, 66, .8)); color: #fff; font-weight: 700; font-size: .85rem;
}
@media (max-width: 700px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .mosaic .m-big { grid-column: span 2; grid-row: auto; }
  .mosaic .m-big img { aspect-ratio: 16 / 10; }
  .mosaic figcaption { font-size: .75rem; padding: 14px 8px 6px; }
}
.stats { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stats li { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #dfe6f7; border-radius: var(--radius); padding: 14px 16px; text-align: center; font-weight: 700; box-shadow: var(--shadow); }
.stats .n { display: block; font-family: "Poppins", sans-serif; font-size: 2rem; color: #ffd27a; line-height: 1.1; }

@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stats li { padding: 10px 6px; font-size: .8rem; }
  .stats .n { font-size: 1.5rem; }
  .stats li:nth-child(n+4) { grid-column: span 1; }
}

/* Narrow phones (e.g. Galaxy Fold cover screen, small iPhones) */
@media (max-width: 430px) {
  .hero { min-height: 0; }
  .hero-text { padding-top: 56px; padding-bottom: 76px; }
  .hero h1 { font-size: 1.55rem; line-height: 1.2; }
  .hero p { font-size: 1rem; line-height: 1.5; }
  .hero .actions { gap: 10px; margin-top: 1em; }
  .hero .button { padding: 12px 20px; }
  .cta-long { display: none; }
  .next { gap: 12px 14px; padding: 14px 16px; margin-top: -48px; align-items: flex-start; }
  .next .badge { width: 56px; height: 62px; }
  .next .badge .d { font-size: 1.5rem; }
  .next .badge .m { font-size: .7rem; padding: 5px 0; }
  .next-body { min-width: 0; flex: 1 1 160px; }
  .next h2 { font-size: 1.1rem; }
  .next p { font-size: .95rem; }
  .countdown { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 8px 12px; }
  .countdown .num { display: inline; font-size: 1.5rem; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  .card, .tip-teaser { padding-left: 18px; padding-right: 18px; }
  .rally { padding: 18px 16px; }
  .chips li { font-size: .85rem; padding: 4px 10px 4px 8px; }
  .brand img { height: 40px; }
}

/* Branding on printouts (screen: hidden) */
.print-brand-top, .print-brand-bottom { display: none; }
@media print {
  .print-brand-top {
    display: flex; align-items: center; gap: 14px; padding: 0 0 8px; margin-bottom: 10px;
    border-bottom: 3px solid #14306e;
  }
  .print-brand-top img { height: 48px; width: auto; }
  .print-brand-top p { margin: 0; font-size: 10pt; color: #14306e; font-weight: 700; }
  body:has(.print-sheet) .print-brand-top { display: none; } /* the calendar has its own heading */
  .print-brand-bottom {
    display: block; margin-top: 14px; padding-top: 8px; border-top: 3px solid #f5a623;
    font-size: 9pt; color: #333; break-inside: avoid;
  }
  .print-brand-bottom p { margin: 2px 0; }
  .print-brand-bottom .jaunty { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 11pt; color: #14306e; }
  .print-foot { display: none; } /* replaced by the brand footer… */
  body:has(.print-sheet) .print-foot { display: flex; } /* …except the calendar keeps its QR code */
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Printing the checklist */
@media print {
  .site-header, .site-footer, .tips-hero, .cl-toolbar, .cl-buttons, .sorn, #faq, .acceo, .source, .mini-card { display: none !important; }
  .cl-progress { box-shadow: none; border: 0; padding: 0; }
  .bar { display: none; }
  body { font-size: 12pt; }
  .cl-panel fieldset { break-inside: avoid; }
}

/* 35th anniversary line (home hero and About page) */
.anniversary-wrap { margin: 0 0 .5em; }
.anniversary {
  display: inline-block; margin: 0; text-decoration: none; line-height: 1.3; padding: 10px 16px; border-radius: 999px;
  background: var(--amber); color: #1b1300; font-weight: 800; letter-spacing: .02em; font-size: .95rem;
}
.hero-text .anniversary { box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.anniversary .nowrap { white-space: nowrap; }
@media (max-width: 400px) { .anniversary { font-size: .85rem; padding: 10px 13px; } }
.rr-theme { display: block; color: var(--amber-dark); font-weight: 800; font-size: .9rem; }
a.anniversary { transition: transform .15s ease, box-shadow .15s ease; }
a.anniversary:hover, a.anniversary:focus-visible { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.35); color: #1b1300; }
a.anniversary:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
#rally-theme { scroll-margin-top: 110px; }

/* 404 page: lost camper */
.lost { display: grid; gap: 28px; align-items: center; padding: 12px 0 32px; }
@media (min-width: 900px) { .lost { grid-template-columns: 1.1fr 1fr; } }
.lost-figure { margin: 0; }
.lost-art { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: var(--shadow); background: #e8eefb; }
.lost-text h1 { margin-top: .2em; }
.lost-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lost-actions .button { margin: 0; }
.lost-next {
  display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 12px 16px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.lost-next p { margin: 0; }
.lost-sign { transform-box: fill-box; transform-origin: 50% 100%; animation: lost-wobble 3.2s ease-in-out infinite; }
.lost-map { transform-box: fill-box; transform-origin: 0% 50%; animation: lost-flutter 1.6s ease-in-out infinite; }
.lost-scratch { transform-box: fill-box; transform-origin: 100% 100%; animation: lost-scratch .9s ease-in-out infinite alternate; }
.lost-q { animation: lost-bob 2s ease-in-out infinite; }
@keyframes lost-wobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes lost-flutter { 0%, 100% { transform: skewY(0) rotate(0); } 50% { transform: skewY(-6deg) rotate(-4deg); } }
@keyframes lost-scratch { from { transform: rotate(0); } to { transform: rotate(-12deg); } }
@keyframes lost-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .lost-sign, .lost-map, .lost-scratch, .lost-q { animation: none; } }
@media print { .lost-actions, .lost-next { display: none; } }

/* 404 cartoon (Steve's illustration) with gentle animated extras */
.lost-stage { position: relative; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 1600 / 995; background: #5aa7e8; }
.lost-photo { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 62% 45%; animation: lost-kenburns 24s ease-in-out infinite alternate; }
.lost-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lost-cloud { fill: #fff; opacity: .85; animation: lost-drift linear infinite; }
.lost-cloud.c1 { animation-duration: 70s; animation-delay: -10s; }
.lost-cloud.c2 { animation-duration: 95s; animation-delay: -55s; opacity: .7; }
.lost-cloud.c3 { animation-duration: 55s; animation-delay: -30s; opacity: .75; }
.lost-bird { animation: lost-fly 22s linear infinite; animation-delay: -4s; }
.lost-wobble { opacity: 0; animation: lost-wobbly 2.6s ease-in-out infinite; }
.lost-qs text { opacity: 0; animation: lost-pop 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.lost-qs .q2 { animation-delay: 1.5s; }
.lost-qs .q3 { animation-delay: 3s; }
@keyframes lost-kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.04) translate(-1%, -0.5%); } }
@keyframes lost-drift { from { transform: translateX(-250px); } to { transform: translateX(2250px); } }
@keyframes lost-fly { 0% { transform: translate(2100px, 330px) scale(.9); } 50% { transform: translate(1000px, 200px) scale(1); } 100% { transform: translate(-150px, 290px) scale(.9); } }
@keyframes lost-wobbly { 0%, 100% { opacity: 0; } 30%, 60% { opacity: .75; } }
@keyframes lost-pop { 0% { opacity: 0; transform: translateY(20px) scale(.6); } 15% { opacity: 1; transform: translateY(0) scale(1); }
  45% { opacity: 1; transform: translateY(-10px) scale(1); } 60%, 100% { opacity: 0; transform: translateY(-24px) scale(.9); } }
@media (prefers-reduced-motion: reduce) {
  .lost-photo, .lost-cloud, .lost-bird, .lost-wobble, .lost-qs text { animation: none; }
  .lost-cloud, .lost-bird, .lost-wobble, .lost-qs .q2, .lost-qs .q3 { display: none; }
  .lost-qs .q1 { opacity: 1; }
}

.report-picker label { display: block; font-weight: 700; margin-bottom: 6px; }
.report-picker select { width: 100%; max-width: 420px; min-height: 48px; font: inherit; padding: 8px 12px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }

/* Mersea: tides and the Strood causeway */
.tide-box { margin: 18px 0; padding: 14px 18px; border-radius: var(--radius); background: #e8f3fb; border: 1px solid #b9d9ef; }
.tide-box h2 { font-size: 1.15rem; margin: .2em 0 .4em; }
.tide-box p { margin: .5em 0; }
.tide-box .button { margin: 4px 8px 4px 0; }
.print-only { display: none; }
@media print { .print-only { display: block; } .tide-box { border: 1px solid #999; background: none; } }
