/* build 2026-11-20b */
/* SEQ Kayakers. Palette comes from the water: ink = deep channel, teal = tidal flats,
   shallow tints = sandbank shallows, signal yellow = PFD. Grade badges run from
   shallow (canoe, grade 1) to deep (grade 4). */
:root {
  --ink: #0b2540;
  --ink-soft: #4a6076;
  --tide: #003868;
  --tide-dark: #00294d;
  --paper: #f5f8fb;
  --white: #ffffff;
  --shallow: #dce9f5;
  --line: #cbd9e6;
  --signal: #f06810;
  --signal-ink: #5a2300;
  --danger: #a3341f;
  --ok-bg: #dff0e6;
  --info-bg: #e3eef6;
  --err-bg: #f8e1dc;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}
:root { --col: min(92%, 90rem); }   /* page column: 92% of the window, never wider than 90rem (1440px) */
.wrap { width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 1rem; }
@media (max-width: 48rem) { :root { --col: 100%; } }
main.wrap { padding-top: 1.25rem; padding-bottom: 3rem; min-height: 60vh; }
a { color: var(--tide-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 0.5rem; font-weight: 700; }
h1 { font-size: 1.9rem; margin-top: 0.5rem; }
h2 { font-size: 1.3rem; margin-top: 1.75rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 40rem; }
.hint { color: var(--ink-soft); font-size: 0.9rem; font-weight: 400; display: block; }
.meta { color: var(--ink-soft); margin-bottom: 0.4rem; }
.empty { padding: 1.5rem 0; color: var(--ink-soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { background: var(--tide); color: var(--white); border-bottom: 4px solid var(--signal); }
.top-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; padding-top: 0.2rem; padding-bottom: 0.2rem; }
.brand { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--tide); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.25rem; }
.nav a, .linklike {
  color: var(--white); text-decoration: none; padding: 0.6rem 0.8rem; border-radius: 0.3rem;
  background: none; border: 0; font: inherit; cursor: pointer;
}
.nav a:hover, .linklike:hover { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--signal); }
.nav-drop { position: relative; }
.nav-drop summary { list-style: none; color: var(--white); padding: 0.6rem 0.8rem; border-radius: 0.3rem; cursor: pointer; user-select: none; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: ""; display: inline-block; margin-left: 0.45rem; border: 0.3em solid transparent; border-top-color: currentColor; border-bottom-width: 0; vertical-align: 0.15em; }
.nav-drop summary:hover, .nav-drop[open] summary { background: rgba(255, 255, 255, 0.16); }
.nav-drop[data-active] summary { box-shadow: inset 0 -3px 0 var(--signal); }
.nav-menu { position: absolute; z-index: 20; top: 100%; left: 0; min-width: 12rem; display: flex; flex-direction: column; padding: 0.3rem; background: var(--tide); border: 1px solid rgba(255, 255, 255, 0.25); border-top: 0; border-radius: 0 0 0.4rem 0.4rem; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); }
.nav-menu a { white-space: nowrap; }
@media (max-width: 40rem) { .nav-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 0.8rem; } }
.inline { display: inline; margin: 0; }
.count { display: inline-block; min-width: 1.4em; padding: 0 0.35em; border-radius: 1em; background: var(--signal); color: var(--ink); font-size: 0.8rem; font-weight: 700; text-align: center; }
.foot { padding-top: 1rem; padding-bottom: 2rem; color: var(--ink-soft); font-size: 0.9rem; border-top: 1px solid var(--line); }

/* messages */
.flash { padding: 0.7rem 1rem; border-radius: 0.4rem; margin-bottom: 1rem; border-left: 5px solid var(--tide); background: var(--info-bg); }
.flash-ok { background: var(--ok-bg); border-left-color: #2f8a55; }
.flash-error { background: var(--err-bg); border-left-color: var(--danger); }
.form-error { background: var(--err-bg); border-left: 5px solid var(--danger); padding: 0.7rem 1rem; border-radius: 0.4rem; margin-bottom: 1rem; }
.form-error p { margin: 0 0 0.3rem; }
.form-error ul { margin: 0; padding-left: 1.2rem; }

/* layout bits */
.hero { padding: 1rem 0 0.5rem; }
.hero h1 { font-size: 2.2rem; max-width: 32rem; }
.split { display: grid; gap: 2rem; }
.narrow { max-width: 28rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.subnav { display: flex; gap: 1rem; margin-bottom: 1rem; }
.page-head .subnav { margin: 0; }
@media (min-width: 46rem) { .split { grid-template-columns: 1fr 1fr; } }

/* forms */
.form label { display: block; margin-bottom: 1rem; font-weight: 600; }
.form label.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.form .field { margin-bottom: 1rem; }
.form .field > label { margin-bottom: 0.1rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"],
input[type="search"], input[type="datetime-local"], select, textarea {
  display: block; width: 100%; margin-top: 0.25rem; padding: 0.6rem 0.7rem; font: inherit; color: var(--ink);
  background: var(--white); border: 1px solid #8fa8a3; border-radius: 0.35rem;
}
textarea { resize: vertical; }
input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; accent-color: var(--tide); flex: none; }
fieldset { border: 1px solid var(--line); border-radius: 0.4rem; margin: 0 0 1rem; padding: 0.6rem 1rem 0.2rem; }
legend { font-weight: 600; padding: 0 0.3rem; }
.form-note { margin-top: 0.8rem; font-size: 0.95rem; }
.row { display: grid; gap: 0 1rem; }
@media (min-width: 40rem) { .row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.5rem 0 1rem; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; max-width: 30rem; }
.inline-form label { flex: 1 1 14rem; margin: 0; }
.search { display: flex; gap: 0.5rem; align-items: center; max-width: 28rem; margin-bottom: 1.25rem; }
.search label { flex: 1; margin: 0; }
.search input { margin: 0; }

/* buttons */
.btn {
  display: inline-block; padding: 0.6rem 1.1rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  color: var(--ink); background: var(--white); border: 2px solid var(--tide); border-radius: 0.4rem;
}
.btn:hover { background: var(--shallow); color: var(--ink); }
.btn-primary { background: var(--tide); color: var(--white); }
.btn-primary:hover { background: var(--tide-dark); color: var(--white); }
.btn-quiet { border-color: var(--line); font-weight: 500; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--err-bg); color: var(--danger); }

/* the grade badges: shallow to deep */
.level, .chip, .status { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 1rem; font-size: 0.85rem; font-weight: 700; line-height: 1.5; }
.level-canoe { background: #d3e5f5; color: #00294d; }
.level-1 { background: #aacdec; color: #00294d; }
.level-2 { background: #5f9fd3; color: #031a30; }
.level-3 { background: #003868; color: #ffffff; }
.level-4 { background: #f06810; color: #1f0c00; }
.chip { background: var(--shallow); color: var(--ink); }
.chip-going { background: var(--signal); color: var(--ink); }
.chip-wait { background: var(--white); border: 2px solid var(--signal); color: var(--ink); }
.status-published { background: var(--ok-bg); color: #1d5c39; }
.status-draft, .status-pending { background: var(--info-bg); color: #1d4a6b; }
.status-cancelled, .status-rejected, .status-suspended { background: var(--err-bg); color: var(--danger); }
.status-active { background: var(--ok-bg); color: #1d5c39; }

/* event list: the date block turns signal yellow when you're going */
.events { list-style: none; margin: 0; padding: 0; }
.event-row { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.event-row:last-child { border-bottom: 1px solid var(--line); }
.datebox {
  flex: none; width: 4.2rem; padding: 0.4rem 0; text-align: center; border-radius: 0.4rem;
  background: var(--shallow); color: var(--ink); display: flex; flex-direction: column; justify-content: center; line-height: 1.1;
}
.datebox .dow, .datebox .mon { font-size: 0.8rem; font-weight: 600; }
.datebox .day { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; }
.is-going .datebox { background: var(--signal); }
.is-cancelled .event-main h2 a { text-decoration: line-through; color: var(--ink-soft); }
.is-cancelled .datebox { opacity: 0.6; }
.event-main { min-width: 0; }
.event-main h2 { font-size: 1.25rem; margin: 0 0 0.2rem; }
.event-main h2 a { text-decoration: none; }
.event-main h2 a:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; margin: 0.3rem 0 0; }
.spaces { color: var(--ink-soft); font-size: 0.95rem; }

/* event page */
.event-page { max-width: 62rem; }
.facts { display: grid; grid-template-columns: 6rem 1fr; gap: 0.35rem 1rem; margin: 1rem 0 1.5rem; }
.facts dt { font-weight: 700; color: var(--ink-soft); }
.facts dd { margin: 0; }
.prose { max-width: 40rem; }
.prose h2, .prose h3 { margin-top: 1.4rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 4px solid var(--line); color: var(--ink-soft); }
.rsvp { margin: 1.75rem 0; padding: 1.1rem 1.25rem; background: var(--white); border: 2px solid var(--tide); border-radius: 0.5rem; }
.rsvp p:last-child, .rsvp form:last-child { margin-bottom: 0; }
.rsvp-state { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.4rem; }
.names { list-style: none; margin: 0 0 0.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.names li { background: var(--shallow); padding: 0.15rem 0.7rem; border-radius: 1rem; }

/* calendar */
.cal-head h1 { margin: 0; }
.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-weekdays span { padding: 0.3rem 0.4rem; font-weight: 700; color: var(--ink-soft); font-size: 0.9rem; }
.cal-grid { border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--white); }
.cal-day { min-height: 5.5rem; padding: 0.3rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.cal-pad { background: var(--paper); }
.cal-num { display: block; font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 0.2rem; }
.cal-dow { display: none; }
.is-today .cal-num { color: var(--ink); }
.is-today { box-shadow: inset 0 3px 0 var(--tide); }
.cal-ev { display: block; margin-bottom: 0.25rem; padding: 0.15rem 0.4rem; border-radius: 0.3rem; font-size: 0.82rem; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.cal-ev.is-going { box-shadow: 0 0 0 3px var(--signal); }
.cal-ev.is-cancelled { text-decoration: line-through; opacity: 0.7; }
.cal-time { font-weight: 700; }
.cal-key { margin-top: 1rem; }
@media (max-width: 46rem) {
  /* on phones the month becomes a list of days that have something on */
  .cal-weekdays { display: none; }
  .cal-grid { display: block; border-left: 0; }
  .cal-pad, .cal-day:not(.has-events) { display: none; }
  .cal-day { min-height: 0; padding: 0.6rem 0; border-right: 0; }
  .cal-dow { display: inline; }
  .cal-num { font-size: 1rem; color: var(--ink); }
  .cal-ev { font-size: 0.95rem; padding: 0.4rem 0.6rem; }
}

/* tables and admin */
.table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.table { width: 100%; border-collapse: collapse; background: var(--white); }
.table th, .table td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 0.85rem; color: var(--ink-soft); background: var(--shallow); }
.table .actions { white-space: nowrap; }
.table .actions a { margin-right: 0.8rem; }
.table .actions form { display: inline; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 1rem; border-bottom: 2px solid var(--line); }
.tabs a { padding: 0.5rem 0.8rem; text-decoration: none; border-radius: 0.3rem 0.3rem 0 0; }
.tabs a[aria-current="page"] { background: var(--white); font-weight: 700; box-shadow: inset 0 3px 0 var(--tide); }
.request { background: var(--white); border: 1px solid var(--line); border-radius: 0.5rem; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.request h2 { margin-top: 0; }
.answers { display: grid; grid-template-columns: 8rem 1fr; gap: 0.4rem 1rem; margin: 0.5rem 0 1rem; }
.answers dt { font-weight: 700; color: var(--ink-soft); }
.answers dd { margin: 0; }
.decide { border-top: 1px solid var(--line); padding-top: 1rem; }
.danger-zone { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.danger-zone form { margin-bottom: 0.8rem; }
@media (max-width: 36rem) { .answers, .facts { grid-template-columns: 1fr; gap: 0.1rem; } .answers dd, .facts dd { margin-bottom: 0.6rem; } }

/* rich text editor (organiser event form) */
.editor { border: 1px solid #8fa8a3; border-radius: 0.35rem; background: var(--white); margin-top: 0.25rem; }
.editor-bar { display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 0.4rem; border-bottom: 1px solid var(--line); background: var(--shallow); border-radius: 0.35rem 0.35rem 0 0; }
.editor-bar button { padding: 0.3rem 0.7rem; font: inherit; font-size: 0.95rem; background: var(--white); border: 1px solid var(--line); border-radius: 0.3rem; cursor: pointer; }
.editor-bar button:hover { border-color: var(--tide); }
.editor-area { min-height: 12rem; padding: 0.7rem; }
.editor-area:focus { outline: 3px solid var(--signal); outline-offset: -3px; }
.editor-area h2 { font-size: 1.2rem; margin-top: 0.5rem; }

/* pictures */
.event-hero { display: block; width: 100%; max-width: 44rem; height: auto; max-height: 26rem; object-fit: cover; border-radius: 0.5rem; margin: 0.75rem 0 1rem; background: var(--shallow); }
.event-hero-preview { max-width: 16rem; max-height: 12rem; margin: 0.5rem 0; }
.event-main { flex: 1; }
.event-thumb-link { flex: none; align-self: center; }
.event-thumb { display: block; width: 7.5rem; height: 5.6rem; object-fit: cover; border-radius: 0.4rem; background: var(--shallow); }
@media (max-width: 34rem) { .event-thumb { width: 5rem; height: 4rem; } }
.avatar { display: inline-block; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; object-fit: cover; background: var(--shallow); vertical-align: middle; }
.avatar-sm { width: 1.7rem; height: 1.7rem; }
.avatar-lg { width: 6rem; height: 6rem; }
.avatar-none { display: inline-flex; align-items: center; justify-content: center; background: var(--tide); color: var(--white); font-weight: 700; font-size: 0.8rem; line-height: 1; }
.avatar-lg.avatar-none { font-size: 1.8rem; }
.avatar-sm.avatar-none { font-size: 0.65rem; }
.person { display: flex; align-items: center; gap: 0.5rem; }
td.person { display: table-cell; }
td.person > .avatar { margin-right: 0.5rem; }
.names li.person { display: inline-flex; padding: 0.15rem 0.8rem 0.15rem 0.2rem; }
h1.person { gap: 1rem; }
.photo-row { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; }
.photo-row > div { flex: 1 1 16rem; }
.photo-form { margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
input[type="file"] { display: block; max-width: 100%; margin: 0.4rem 0 0.8rem; font: inherit; }
.nudge { padding: 0.6rem 0.9rem; background: var(--info-bg); border-left: 5px solid var(--tide); border-radius: 0.4rem; }
.rsvp-agree { margin: 0.6rem 0 0; }

/* the standard disclaimer on every event */
.disclaimer { margin-top: 2.5rem; padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--signal); border-radius: 0.4rem; font-size: 0.95rem; color: var(--ink-soft); }
.disclaimer h2 { margin-top: 0; font-size: 1.1rem; color: var(--ink); }
.disclaimer p:last-child { margin-bottom: 0; }

/* event comments */
.comments { margin-top: 2rem; }
.comment-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.comment { display: flex; gap: 0.75rem; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.comment:last-child { border-bottom: 1px solid var(--line); }
.comment-body { min-width: 0; flex: 1; }
.comment-head { margin: 0 0 0.15rem; }
.hint-inline { color: var(--ink-soft); font-size: 0.85rem; margin-left: 0.4rem; }
.comment-text { margin: 0 0 0.3rem; overflow-wrap: anywhere; }
.comment form { margin: 0; }
.linklike-dark { background: none; border: 0; padding: 0; font: inherit; font-size: 0.85rem; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.linklike-dark:hover { color: var(--danger); }
.comment-form textarea { margin-bottom: 0.6rem; }

/* event page: details on the left, who's going on the right (stacked on phones) */
.event-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2rem; grid-template-areas: "top" "head" "body" "rsvp" "side" "disclaimer" "comments"; }
.ev-top { grid-area: top; }
.ev-head { grid-area: head; }
.ev-body { grid-area: body; }
.ev-rsvp { grid-area: rsvp; }
.ev-side { grid-area: side; }
.ev-disclaimer { grid-area: disclaimer; }
.ev-comments { grid-area: comments; }
.ev-head, .ev-body { max-width: 44rem; }
.ev-side { background: var(--white); border: 1px solid var(--line); border-radius: 0.5rem; padding: 0.9rem 1.1rem; margin: 0 0 1rem; align-self: start; }
.ev-side h2 { margin-top: 0; font-size: 1.15rem; }
.ev-side .names { flex-direction: column; flex-wrap: nowrap; gap: 0.35rem; margin-bottom: 0.4rem; }
.ev-side .names li { background: none; padding: 0; border-radius: 0; }
.ev-side .names li.person { display: flex; }
.ev-comments { max-width: 44rem; }
.ev-disclaimer .disclaimer { margin-top: 1rem; max-width: 44rem; }
@media (min-width: 58rem) {
  .event-page { grid-template-columns: minmax(0, 1fr) 17rem; grid-template-rows: auto auto auto auto auto 1fr; grid-template-areas: "top top" "head side" "body side" "rsvp side" "disclaimer side" "comments side"; }
  .ev-side { position: sticky; top: 1rem; }
}

/* map */
.map { position: relative; height: 15rem; max-width: 44rem; margin: 0.75rem 0 0.4rem; overflow: hidden; border: 1px solid #8fa8a3; border-radius: 0.5rem; background: #dfe9e6; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.map:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.map[data-map="pick"] { height: 20rem; cursor: crosshair; }
.map.is-dragging { cursor: grabbing; }
.map-tile { position: absolute; width: 256px; height: 256px; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.map-zoom { position: absolute; top: 0.5rem; right: 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.map-zoom button { width: 2.2rem; height: 2.2rem; padding: 0; font: inherit; font-size: 1.3rem; line-height: 1; font-weight: 700; color: var(--ink); background: var(--white); border: 1px solid #8fa8a3; border-radius: 0.3rem; cursor: pointer; }
.map-zoom button:hover { background: var(--shallow); }
.map-attr { position: absolute; right: 0; bottom: 0; padding: 0.1rem 0.4rem; font-size: 0.7rem; background: rgba(255, 255, 255, 0.85); color: var(--ink); }
.map-attr a { color: var(--ink); }
.map-search-row { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 44rem; }
.map-search-row input { flex: 1 1 14rem; margin: 0; }
.map-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0 0 1rem; }

.map-tiles { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }

/* calendar thumbnails */
.cal-thumb { display: block; width: 100%; height: 2.6rem; object-fit: cover; border-radius: 0.25rem; margin-bottom: 0.2rem; background: rgba(255, 255, 255, 0.4); }
@media (max-width: 46rem) { .cal-thumb { height: 6rem; } }
.ev-side .organiser-chip { margin-left: 0.4rem; padding: 0 0.5rem; font-size: 0.72rem; background: var(--signal); color: var(--ink); border-radius: 1rem; font-weight: 700; }

/* branding: logo, banner, footer links, simple pages, organiser list */
/* masthead: logo pinned to the left (in line with the page content), photo pinned to the right edge at its natural size.
   The photo fades in from white and the logo sits on white, so any gap in the middle just looks like white space. */
.masthead { background: var(--white); }
.masthead-inner { max-width: none; margin: 0; position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0 calc((100% - var(--col)) / 2 + 1rem) 0 max(0.6rem, calc((100% - var(--col)) / 2)); line-height: 0; }
.masthead-logo { flex: 0 0 auto; width: min(13rem, 24%); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.masthead-logo img { width: 100%; max-height: 9.5rem; height: auto; object-fit: contain; display: block; }
.masthead-photo { -webkit-mask-image: linear-gradient(to right, #000 92%, transparent); mask-image: linear-gradient(to right, #000 92%, transparent); order: 2; flex: 0 1 auto; width: min(846px, 78%); min-width: 0; height: auto; display: block; }   /* natural proportions; never stretched or cropped */
.logo-small { display: none !important; }
@media (max-width: 40rem) { .logo-big { display: none !important; } .logo-small { display: block !important; } .masthead-logo { width: 22%; } .masthead-inner { padding-left: 0.3rem; } }
.masthead:not(:has(.masthead-photo)) .masthead-logo { flex-basis: 12rem; width: 12rem; padding: 0.5rem 0; }
.banner-text { position: absolute; right: 1rem; bottom: 0.7rem; line-height: 1.2; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65), 0 0 2px rgba(0, 0, 0, 0.6); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-bottom: 0.5rem; }
.prose { max-width: 44rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.3rem; }
.plain-list { list-style: none; padding: 0; margin: 1rem 0; }
.plain-list li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.people { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.75rem; max-width: 44rem; }
.person { display: flex; align-items: center; gap: 0.9rem; padding: 0.75rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 0.5rem; }
.person-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.person-levels { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.narrow-form { max-width: 34rem; }
.hero::after { content: ""; display: block; clear: both; }
.hero-logo { float: right; width: 9rem; height: auto; margin: 0 0 0.5rem 1rem; }
@media (max-width: 40rem) { .hero-logo { width: 6rem; } }

/* home page: your text on the left, upcoming events table on the right */
.home-grid { display: grid; gap: 1.25rem 2rem; grid-template-areas: "intro" "events" "join"; }
.home-intro { grid-area: intro; min-width: 0; }
.home-events { grid-area: events; min-width: 0; align-self: start; padding: 1rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--signal); border-radius: 0.5rem; }
.home-events h2 { margin-top: 0; font-size: 1.15rem; }
.home-join { grid-area: join; min-width: 0; }
@media (min-width: 52rem) {
  .home-grid { grid-template-columns: minmax(0, 1fr) 20rem; grid-template-areas: "intro events" "join events"; align-items: start; }
}
.events-table { font-size: 0.95rem; }
.events-table th, .events-table td { padding: 0.45rem 0.4rem; text-align: left; vertical-align: top; }
.events-table .nowrap { white-space: nowrap; }
.events-table .is-cancelled a { text-decoration: line-through; }
.home-events-links { display: flex; gap: 1.25rem; margin: 0.75rem 0 0; }
.home-intro .prose ul { list-style: none; padding-left: 0; }
.home-intro h1 { font-size: 1.7rem; }
.events-table .level { white-space: nowrap; }
@media (max-width: 40rem) { .banner-text { display: none; } }

/* share to Facebook panel */
.share-panel { margin: 1rem 0 1.5rem; padding: 1rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--signal); border-radius: 0.5rem; max-width: 44rem; }
.share-panel h2 { margin-top: 0; font-size: 1.1rem; }
.share-preview { padding: 0.6rem 0.8rem; background: var(--paper); border: 1px dashed var(--line); border-radius: 0.4rem; }
.share-status { min-height: 1.4em; margin: 0; }
.push-panel { margin-top: 2rem; padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--signal); border-radius: 0.5rem; max-width: 44rem; }
.push-panel h2 { margin-top: 0; }
.push-panel h3 { margin: 1.25rem 0 0.35rem; font-size: 1.05rem; }
.push-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0; }
.push-help { margin: 0.75rem 0; padding: 0.6rem 0.8rem; background: var(--paper); border-radius: 0.4rem; }
.push-panel [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav .nav-alerts { background: rgba(240, 104, 16, 0.22); font-weight: 600; }
.nav .nav-alerts:hover { background: rgba(240, 104, 16, 0.4); }
.alert-list { list-style: none; padding: 0; margin: 0 0 1rem; max-width: 44rem; }
.alert-item a { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 1rem; padding: 0.7rem 0.9rem; margin-bottom: 0.4rem; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 0.4rem; text-decoration: none; color: inherit; }
.alert-item a:hover { border-color: var(--tide); background: #eef4fa; }
.alert-new a { border-left-color: var(--signal); }
.alert-title { font-weight: 700; color: var(--tide); }
.alert-new .alert-title::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.5em; border-radius: 50%; background: var(--signal); vertical-align: 0.05em; }
.alert-body { grid-column: 1 / -1; color: var(--ink-soft); font-size: 0.95rem; }
.alert-when { grid-row: 1; grid-column: 2; color: var(--ink-soft); font-size: 0.85rem; white-space: nowrap; }

/* Wait list under "Who's going" (listed in queue order) */
.waitlist-title { font-size: 1rem; margin: 1rem 0 0.4rem; }
.waitlist { counter-reset: wl; }
.waitlist li.person::before { counter-increment: wl; content: counter(wl) "."; min-width: 1.4rem; align-self: center; color: var(--muted, #555); font-size: 0.85rem; }
