/* Reset (a hosted page needs these; the claude.ai viewer supplied them before) */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Layout: friendly masthead with plain tabs, one readable column, park-sign headings over a clean sans body */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --chip: #e9edf6;
  --fg: #1b2335;
  --muted: #5a6478;
  --line: #dde2ea;
  --navy: #1f3c88;
  --navy-ink: #ffffff;
  --gold: #f0b429;
  --gold-ink: #231a00;
  --ok: #1d7a4b;
  --bad: #b3261e;
  --warn: #a35a00;
  --f-display: "Bitter", Georgia, "Times New Roman", serif;
  --f-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1626; --surface: #172036; --chip: #212d4a; --fg: #e8ecf5; --muted: #a0aac2; --line: #2b3858;
    --navy: #93aaf5; --navy-ink: #0f1626; --gold: #f2b632; --gold-ink: #231a00;
    --ok: #52c58a; --bad: #ff8a80; --warn: #f0a24a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1626; --surface: #172036; --chip: #212d4a; --fg: #e8ecf5; --muted: #a0aac2; --line: #2b3858;
  --navy: #93aaf5; --navy-ink: #0f1626; --gold: #f2b632; --gold-ink: #231a00;
  --ok: #52c58a; --bad: #ff8a80; --warn: #f0a24a; color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--f-body); padding-inline: 16px; padding-block: 0 56px; font-variant-numeric: tabular-nums; }
.wrap { max-width: 880px; margin-inline: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

header.mast { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); margin-inline: -16px; padding-inline: 16px; }
.mast .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 24px; padding-top: 10px; }
.brand { font: 700 24px/1.1 var(--f-display); margin: 0; padding-block: 6px; }
.brand span { color: var(--navy); }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { font: 600 16px/1 var(--f-body); background: none; color: var(--muted); border: 0; border-bottom: 3px solid transparent; padding: 12px 10px 11px; cursor: pointer; }
nav a:hover { color: var(--fg); }
nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--gold); }

main { padding-top: 32px; }
h1 { font: 700 clamp(28px, 4.6vw, 36px)/1.15 var(--f-display); margin: 0 0 8px; text-wrap: balance; }
h2 { font: 700 22px/1.2 var(--f-display); margin: 0; }
.lede { color: var(--muted); max-width: 62ch; margin: 0 0 22px; }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 8px; background: var(--surface); padding: 12px 14px; margin: 0 0 20px; font-size: 15px; }

/* controls */
.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.yearpick { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.yearpick button { background: none; color: var(--fg); border: 0; width: 42px; height: 42px; font-size: 18px; cursor: pointer; }
.yearpick button:hover { background: var(--chip); }
.yearpick output { font: 700 20px/1 var(--f-display); min-width: 72px; text-align: center; }
input, select, textarea { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-width: 0; max-width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline-offset: 0; }
.bar input[type="search"] { flex: 1 1 200px; }
button.primary { font: 600 17px/1 var(--f-body); background: var(--gold); color: var(--gold-ink); border: 0; border-radius: 8px; padding: 13px 22px; cursor: pointer; }
button.primary:hover { filter: brightness(0.96); }
button.primary:disabled { opacity: 0.55; cursor: default; }
button.ghost { font: 600 14px/1 var(--f-body); background: none; color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; }
button.ghost:hover { border-color: var(--muted); }
button.ghost.danger { color: var(--bad); }

/* year strip */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(66px, 1fr)); gap: 8px; margin-bottom: 30px; }
.strip button { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--fg); padding: 9px 4px 8px; cursor: pointer; text-align: center; }
.strip button:hover { border-color: var(--muted); }
.strip button b { display: block; font: 600 16px/1.2 var(--f-body); }
.strip button i { display: block; font: 400 13px/1.4 var(--f-body); font-style: normal; color: var(--muted); }
.strip button.has { background: var(--chip); border-color: transparent; }
.strip button.has i { color: var(--fg); font-weight: 600; }
.strip button.now { box-shadow: inset 0 -3px 0 var(--gold); }

/* agenda */
.month { margin-bottom: 30px; scroll-margin-top: 80px; }
.month > h2 { display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.month > h2 small { font: 400 15px/1 var(--f-body); color: var(--muted); }
.none { color: var(--muted); font-size: 15px; padding: 10px 0 0; margin: 0; }
.ev { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ev.past { opacity: 0.6; }
.datebox { text-align: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); align-self: start; overflow: hidden; }
.datebox .dow { display: block; font: 600 13px/1 var(--f-body); background: var(--navy); color: var(--navy-ink); padding: 5px 0 4px; }
.datebox .day { display: block; font: 700 26px/1 var(--f-display); padding: 7px 0 4px; }
.datebox .to { display: block; font: 400 12px/1.2 var(--f-body); color: var(--muted); padding-bottom: 6px; }
.ev h3 { font: 700 20px/1.25 var(--f-display); margin: 0 0 4px; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 15px; margin: 0; overflow-wrap: anywhere; }
.desc { margin: 8px 0 0; font-size: 16px; max-width: 64ch; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.tag { font: 600 12px/1 var(--f-body); border-radius: 999px; padding: 5px 10px 4px; background: var(--chip); color: var(--fg); }
.tag.tier { background: var(--gold); color: var(--gold-ink); }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; align-items: center; }

/* forms */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-bottom: 28px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); margin-bottom: 18px; }
.seg button { font: 600 16px/1 var(--f-body); background: none; color: var(--fg); border: 0; padding: 12px 20px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--navy); color: var(--navy-ink); }
form.f { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
form.f .full { grid-column: 1 / -1; }
form.f label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; min-width: 0; }
form.f label small { font-weight: 400; color: var(--muted); font-size: 14px; }
form.f input, form.f select, form.f textarea { width: 100%; font-weight: 400; font-size: 17px; }
textarea { min-height: 100px; resize: vertical; }
.status { margin: 12px 0 0; font-size: 15px; min-height: 1.4em; }
.status.ok { color: var(--ok); }
.status.err { color: var(--bad); }
.sub { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 14px 16px; margin-top: 10px; }
.sub > div { min-width: 0; flex: 1 1 240px; overflow-wrap: anywhere; }
.sub strong { font: 700 17px/1.3 var(--f-display); }

/* clubs */
.region { margin-bottom: 32px; }
.region h2 { padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.club { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.club h3 { font: 700 18px/1.3 var(--f-display); margin: 0; overflow-wrap: anywhere; }
.club .go { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 15px; }

/* hall of fame */
.class { margin-bottom: 34px; }
.class > h2 { display: flex; align-items: baseline; gap: 12px; }
.class > h2 .yr { font: 700 36px/1 var(--f-display); color: var(--navy); }
.class .cards { margin-top: 14px; }
.plaque { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px 18px; min-width: 0; box-shadow: inset 0 3px 0 var(--gold); }
.plaque h3 { font: 700 21px/1.2 var(--f-display); margin: 6px 0 4px; overflow-wrap: anywhere; }
.plaque p.desc { font-size: 15px; }
.empty { border: 1px dashed var(--muted); border-radius: 10px; padding: 24px; color: var(--muted); background: var(--surface); }
.empty strong { display: block; color: var(--fg); font: 700 19px/1.3 var(--f-display); margin-bottom: 4px; }
footer { margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* home */
.hero { padding: 8px 0 34px; margin-bottom: 30px; }
.hero h1 { font-size: clamp(34px, 7vw, 54px); line-height: 1.1; max-width: 18ch; margin-bottom: 16px; }
.hero .lede { font-size: 19px; max-width: 58ch; margin-bottom: 24px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.linkbtn { display: inline-block; font: 600 17px/1 var(--f-body); text-decoration: none; border: 1px solid var(--line); border-radius: 8px; color: var(--fg); background: var(--surface); padding: 13px 22px; }
.linkbtn:hover { border-color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 38px; }
.tile { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-decoration: none; color: var(--fg); min-width: 0; }
.tile:hover { border-color: var(--navy); }
.tile h3 { font: 700 19px/1.2 var(--f-display); margin: 0; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile span { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 15px; color: var(--navy); }
.block { margin-bottom: 38px; }
.block > h2 { padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }

@media (max-width: 560px) {
  form.f { grid-template-columns: minmax(0, 1fr); }
  .ev { grid-template-columns: 54px minmax(0, 1fr); gap: 12px; }
  .panel { padding: 18px; }
  nav a { padding-inline: 8px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Static-site additions */
.brand { display: inline-block; color: var(--fg); text-decoration: none; }
nav a { display: inline-block; text-decoration: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.f label small a { color: inherit; }

/* Community links bar (home, top) */
.commbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; background: var(--chip); border-radius: 10px; padding: 12px 16px; margin-bottom: 24px; }
.commbar p { margin: 0; font-weight: 600; }
.commbar .cta { gap: 10px; }
.commbar .linkbtn { padding: 10px 16px; font-size: 16px; }

/* Back to top button (calendar) */
.totop { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 6; font: 600 16px/1 var(--f-body); background: var(--navy); color: var(--navy-ink); border: 0; border-radius: 999px; padding: 13px 20px; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28); }
.totop:hover { filter: brightness(1.08); }

/* Home page banner image, centered at the bottom */
.banner { margin: 44px 0 0; text-align: center; }
.banner img { display: block; margin-inline: auto; max-width: 100%; height: auto; border-radius: 10px; }
