/* Kern Kiwanis — public site styles
   Brand: navy + gold from the club logo, pen-and-ink illustration, water.
   Type: Zilla Slab (headings, echoes the KERN KIWANIS wordmark) + Public Sans (text). */
:root {
  --navy: #0c2d5e;
  --navy-deep: #071c3d;
  --gold: #d6a01d;
  --gold-soft: #f7e9c4;
  --water: #e7eef7;
  --water-2: #d3e0f0;
  --white: #ffffff;
  --text: #15233d;
  --muted: #56657c;
  --line: #d9e1ec;
  --danger: #b4372f;
  --ok: #2f7a4b;
  --head: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --max: 1160px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.125rem; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); text-decoration-color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.08; margin: 0 0 .45em; font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.4rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.lede { font-size: 1.22rem; color: var(--muted); max-width: 40ch; }
.measure { max-width: 64ch; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Draft bar */
.draft-bar { background: var(--gold); color: var(--navy-deep); text-align: center; font-size: .82rem; font-weight: 700; padding: 5px 12px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 60; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(7, 28, 61, .35); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 84px; }
.brand img { height: 64px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .96rem; padding: 8px 11px; border-radius: var(--r-sm); position: relative; }
.nav a:hover { color: var(--navy); background: var(--water); }
.nav a[aria-current="page"] { color: var(--navy); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--gold); }
.nav-actions { display: flex; gap: 8px; align-items: center; margin-left: 10px; }
.nav-toggle { display: none; margin-left: auto; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; font: 600 .95rem var(--sans); color: var(--navy); cursor: pointer; }
.hub-chip { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--navy); padding: 6px 12px 6px 6px; border: 1.5px solid var(--line); border-radius: 999px; }
.hub-chip:hover { border-color: var(--navy); }
.hub-chip .av { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: .75rem; }

@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 84px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 10px 24px 22px; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -20px rgba(7,28,61,.4); margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 8px; font-size: 1.05rem; }
  .nav a[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 4px; height: auto; }
  .nav-actions { margin: 12px 0 0; }
  .brand img { height: 46px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem var(--sans); text-decoration: none; padding: 13px 22px; border-radius: var(--r-sm); border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s var(--ease); line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #c18d10; color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-small { padding: 8px 14px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero: the lake ---------- */
.hero { position: relative; background: linear-gradient(180deg, var(--white) 0%, var(--water) 62%, var(--water-2) 100%); overflow: hidden; }
.hero-copy { padding: 64px 24px 0; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; }
.hero h1 { margin-bottom: .25em; }
.hero .lede { margin-bottom: 1.4em; }
.hero-note { align-self: center; justify-self: end; max-width: 340px; width: 100%; font-size: 1rem; color: var(--muted); border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; }
.hero-note strong { color: var(--navy); font-family: var(--head); font-size: 1.35rem; display: block; line-height: 1.2; margin-bottom: 4px; }
.hero-art { position: relative; margin-top: -10px; }
.hero-art img { width: max(1400px, 108vw); max-width: none; margin: 0 auto; position: relative; left: 50%; transform: translate(-50%, var(--py, 0px)); will-change: transform;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%); }
.waves { position: relative; height: 70px; margin-top: -26px; overflow: hidden; }
.waves svg { position: absolute; left: 0; width: 200%; height: 100%; animation: drift 18s linear infinite; }
.waves svg.slow { animation-duration: 30s; animation-direction: reverse; opacity: .55; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero-load .hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-load .hero-copy > *:nth-child(2) { animation-delay: .15s; }
.hero-load .hero-art img { animation: surface 1.3s var(--ease) .25s backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes surface { from { opacity: 0; transform: translate(-50%, 40px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 860px) {
  .hero-copy { grid-template-columns: 1fr; padding-top: 44px; gap: 8px; }
  .hero-note { justify-self: start; }
  .hero-art { margin-top: 22px; }
  .hero-art img { width: 175vw; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.band-navy { background: var(--navy-deep); color: #d9e2f0; }
.band-navy h2, .band-navy h3 { color: var(--white); }
.band-water { background: var(--water); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.band-navy .section-head p { color: #b9c6db; }

/* ---------- The monthly rhythm (signature interactive) ---------- */
.rhythm { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--navy); border-radius: var(--r-md); overflow: hidden; background: var(--white); }
.week { appearance: none; border: 0; background: var(--white); text-align: left; padding: 22px 22px 24px; cursor: pointer; font: inherit; color: inherit; border-right: 2px solid var(--navy); position: relative; transition: background .2s; }
.week:last-child { border-right: 0; }
.week:hover { background: var(--water); }
.week .wk { font-family: var(--head); color: var(--gold); font-size: 1.15rem; font-weight: 600; display: block; }
.week .what { font-weight: 700; color: var(--navy); font-size: 1.05rem; display: block; margin-top: 2px; }
.week .time { font-family: var(--head); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--navy); display: block; line-height: 1.1; margin: 10px 0 6px; }
.week .where { color: var(--muted); font-size: .92rem; }
.week[aria-pressed="true"] { background: var(--navy); }
.week[aria-pressed="true"] .what, .week[aria-pressed="true"] .time { color: var(--white); }
.week[aria-pressed="true"] .where { color: #c7d3e6; }
.week .now { position: absolute; top: 14px; right: 14px; font-size: .72rem; font-weight: 700; background: var(--gold); color: var(--navy-deep); padding: 2px 8px; border-radius: 999px; }
.week.off .time { color: #9aa8bd; }
.rhythm-detail { margin-top: 22px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--gold-soft); border-radius: var(--r-md); padding: 22px 26px; min-height: 104px; }
.rhythm-detail h3 { margin: 0 0 4px; }
.rhythm-detail p { margin: 0; color: #4a4330; }
.rhythm-detail.swap { animation: rise .35s var(--ease); }
@media (max-width: 820px) {
  .rhythm { grid-template-columns: 1fr 1fr; }
  .week:nth-child(2) { border-right: 0; }
  .week:nth-child(-n+2) { border-bottom: 2px solid var(--navy); }
  .rhythm-detail { grid-template-columns: 1fr; }
  .week .now { position: static; display: inline-block; margin-bottom: 6px; }
}

/* ---------- Programs ---------- */
.programs { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.program-list { list-style: none; margin: 0; padding: 0; }
.program-list li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.program-list li:last-child { border-bottom: 1px solid var(--line); }
.program-list h3 { margin-bottom: .2em; font-size: 1.3rem; }
.program-list p { margin: 0; color: var(--muted); font-size: 1rem; }
.program-list a { font-weight: 700; font-size: .95rem; }
.glyph { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--navy); display: grid; place-items: center; color: var(--navy); }
.glyph svg { width: 26px; height: 26px; }
.feature-card { background: var(--water); border-radius: var(--r-lg); overflow: hidden; position: sticky; top: 110px; }
.feature-card img { width: 100%; margin-top: 18px; }
.feature-card .pad { padding: 30px 30px 6px; }
@media (max-width: 900px) { .programs { grid-template-columns: 1fr; } .feature-card { position: static; } }

/* ---------- Scholarship band ---------- */
.pull { font-family: var(--head); font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.2; color: var(--white); max-width: 26ch; margin: 0 0 18px; font-weight: 600; }
.pull-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
@media (max-width: 860px) { .pull-row { grid-template-columns: 1fr; } }

/* ---------- Events ---------- */
.event-list { display: grid; gap: 0; }
.event { display: grid; grid-template-columns: 76px 1fr auto; gap: 20px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.event:last-child { border-bottom: 1px solid var(--line); }
.date-tile { text-align: center; border: 2px solid var(--navy); border-radius: var(--r-sm); overflow: hidden; background: var(--white); }
.date-tile .m { display: block; background: var(--navy); color: var(--gold); font-size: .78rem; font-weight: 700; padding: 3px 0; }
.date-tile .d { display: block; font-family: var(--head); font-weight: 700; font-size: 1.8rem; color: var(--navy); line-height: 1.25; }
.date-tile .w { display: block; font-size: .72rem; color: var(--muted); padding-bottom: 3px; }
.event h3 { font-size: 1.2rem; margin: 0 0 2px; }
.event .meta { margin: 0; color: var(--muted); font-size: .95rem; }
.event .desc { margin: 6px 0 0; font-size: .98rem; }
.event.meeting h3::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: middle; }
@media (max-width: 640px) { .event { grid-template-columns: 64px 1fr; } .event .addcal { grid-column: 2; justify-self: start; } }

/* Add-to-calendar menu */
.addcal { position: relative; }
.addcal > button { background: var(--white); border: 1.5px solid var(--line); color: var(--navy); font: 700 .88rem var(--sans); padding: 8px 12px; border-radius: var(--r-sm); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.addcal > button:hover { border-color: var(--navy); }
.addcal .menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 16px 40px -16px rgba(7,28,61,.35); padding: 6px; min-width: 210px; z-index: 30; display: none; }
.addcal.open .menu { display: block; animation: rise .2s var(--ease); }
.addcal .menu a { display: block; padding: 9px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--text); font-size: .95rem; }
.addcal .menu a:hover { background: var(--water); }
@media (max-width: 640px) { .addcal .menu { left: 0; right: auto; } }

/* ---------- Generic blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split .flip { order: -1; } }
.panel { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 28px; }
.panel h3 { margin-bottom: .35em; }
.panel.water { background: var(--water); border-color: transparent; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }
.note { background: #fff6dd; border: 1px dashed #d8b45c; color: #6e5410; border-radius: var(--r-sm); padding: 9px 13px; font-size: .88rem; margin: 12px 0; }
.photo { aspect-ratio: 4/3; border-radius: var(--r-md); background: repeating-linear-gradient(135deg, rgba(12,45,94,.05) 0 10px, transparent 10px 20px), var(--water); border: 2px dashed #a9bbd5; display: grid; place-items: center; text-align: center; color: var(--navy); font-weight: 600; font-size: .95rem; padding: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--water); color: var(--navy); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .92rem; }

/* People */
.roster { list-style: none; margin: 0; padding: 0; }
.roster li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.roster li span:first-child { font-weight: 600; }
.roster li span:last-child { color: var(--muted); text-align: right; }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(180deg, var(--white), var(--water)); padding: 72px 0 56px; position: relative; overflow: hidden; }
.page-hero .lede { max-width: 58ch; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M0 7 Q15 0 30 7 T60 7 T90 7 T120 7' fill='none' stroke='%230c2d5e' stroke-opacity='.25' stroke-width='2'/%3E%3C/svg%3E") repeat-x; background-size: 120px 14px; }

/* CTA band */
.cta { background: var(--gold); padding: 64px 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { margin-bottom: .2em; color: var(--navy-deep); }
.cta p { margin: 0; color: var(--navy-deep); max-width: 52ch; }

/* Forms */
.field { margin-bottom: 16px; }
label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
input, textarea, select { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #c5d1e1; border-radius: var(--r-sm); background: var(--white); color: var(--text); }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(214,160,29,.45); border-color: var(--navy); }
textarea { min-height: 130px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c3cee0; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-brand img { width: 74px; height: 74px; border-radius: 50%; background: var(--white); flex: none; }
.site-footer h4 { font-family: var(--head); color: var(--gold); font-size: 1.1rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 44px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot { grid-template-columns: 1fr; } }

.anchor { scroll-margin-top: 110px; }

/* Scroll reveal: used once per page, on purpose */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Meeting place map ---------- */
.map-card { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--white); border: 1.5px solid var(--line); box-shadow: 0 14px 30px -20px rgba(7,28,61,.45); }
.map-card iframe { display: block; width: 100%; height: 170px; border: 0; filter: saturate(.85); pointer-events: none; }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; position: relative; z-index: 2; }
.map-foot strong { display: block; color: var(--navy); font-family: var(--head); font-size: 1.1rem; line-height: 1.2; }
.map-foot span { font-size: .88rem; color: var(--muted); }
.map-hit { position: absolute; inset: 0 0 60px 0; z-index: 1; }
.map-hit:hover { background: rgba(214,160,29,.08); }
.map-hit:focus-visible { outline-offset: -4px; }
.rhythm-detail.has-map { grid-template-columns: 1fr 340px; }
.rhythm-detail .rd-text p { color: #4a4330; }
.speaker { margin: 10px 0 0 !important; font-weight: 600; color: var(--navy) !important; }
.speaker span { display: inline-block; font-size: .75rem; font-weight: 700; background: var(--navy); color: var(--gold); border-radius: 4px; padding: 1px 7px; margin-right: 6px; vertical-align: 2px; }
.venue-note { margin-top: 10px !important; font-size: .92rem; font-style: italic; }
.event.cancelled h3, .event.cancelled .meta { color: #9aa8bd; text-decoration: line-through; }
.hero-note .map-card { margin-top: 14px; }
.hero-note .map-card iframe { height: 130px; }
@media (max-width: 820px) { .rhythm-detail.has-map { grid-template-columns: 1fr; } }

/* ---------- Donate ---------- */
.donate-head { max-width: 640px; margin-bottom: 36px; }
.donate-head p { color: #c3cee0; font-size: 1.1rem; }
.give-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.give { background: var(--white); color: var(--text); border-radius: var(--r-md); padding: 28px; border-top: 5px solid var(--gold); }
.give h3 { color: var(--navy) !important; }
.give address { font-style: normal; font-family: var(--head); font-size: 1.35rem; color: var(--navy); line-height: 1.35; }
.give .taxid { font-family: var(--head); font-size: 2rem; font-weight: 700; color: var(--navy); letter-spacing: .02em; margin: -6px 0 14px; }
.more-ways { margin-top: 36px; }
.more-ways .chip { text-decoration: none; background: rgba(255,255,255,.1); color: var(--white); border: 1px solid rgba(255,255,255,.25); }
.more-ways .chip:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
@media (max-width: 900px) { .give-ways { grid-template-columns: 1fr; } }

/* ---------- History ---------- */
.history-hero { padding-top: 56px; }
.since { font-family: var(--head); font-weight: 700; font-size: clamp(5rem, 16vw, 11rem); line-height: .8; margin: 0 0 -.12em -.04em; color: transparent; -webkit-text-stroke: 2px var(--navy); opacity: .9; letter-spacing: -.02em; }
.history-hero h1 { position: relative; }
.facts { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.facts li { border-left: 3px solid var(--gold); padding-left: 12px; }
.facts strong { display: block; font-family: var(--head); font-size: 1.4rem; color: var(--navy); line-height: 1.1; }
.facts span { font-size: .9rem; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--water-2), var(--navy) 12%, var(--navy) 88%, var(--gold)); border-radius: 2px; }
.timeline li { display: grid; grid-template-columns: 100px 1fr; gap: 44px; padding: 0 0 34px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 111px; top: 8px; width: 17px; height: 17px; border-radius: 50%; background: var(--white); border: 3px solid var(--navy); }
.timeline li.now::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(214,160,29,.25); }
.timeline .yr { font-family: var(--head); font-weight: 700; font-size: 1.35rem; color: var(--navy); text-align: right; line-height: 1.3; }
.timeline h3 { font-size: 1.25rem; margin-bottom: .25em; }
.timeline p { margin: 0; color: var(--muted); }
@media (max-width: 640px) {
  .timeline::before { left: 8px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 36px; }
  .timeline li::before { left: 1px; top: 6px; }
  .timeline .yr { text-align: left; font-size: 1.1rem; }
}

.pp-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 8px; }
.pp-tools input { max-width: 380px; }
.pp-tools .filters { margin: 0; }
.presidents { list-style: none; margin: 18px 0 0; padding: 0; columns: 3 260px; column-gap: 36px; }
.presidents li { break-inside: avoid; display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid #cfdbec; font-size: .98rem; }
.presidents .y { font-family: var(--head); font-weight: 600; color: var(--gold); color: #a87b0c; }
.presidents .n small { color: var(--muted); font-size: .82rem; }
.presidents li.current .n { font-weight: 700; color: var(--navy); }
.presidents li.none { display: block; color: var(--muted); border: 0; }
.presidents mark { background: var(--gold-soft); color: inherit; padding: 0 2px; border-radius: 3px; }
.filters button { border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 6px 14px; font: 600 .88rem var(--sans); color: var(--muted); cursor: pointer; }
.filters button[aria-pressed="true"] { border-color: var(--navy); color: var(--white); background: var(--navy); }

.charter { background: #fffdf6; border: 1px solid #e9dfc2; border-radius: 4px; padding: 30px 32px; box-shadow: 0 1px 0 #e9dfc2, 0 18px 40px -26px rgba(7,28,61,.45); position: relative; }
.charter::before { content: ""; position: absolute; inset: 8px; border: 1px solid #e9dfc2; pointer-events: none; }
.charter-head { font-family: var(--head); text-align: center; color: var(--navy); font-weight: 600; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--gold); }
.charter ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; font-family: var(--head); font-size: 1.05rem; color: var(--text); }
.charter li { padding: 3px 0; break-inside: avoid; }
.charter small { font-family: var(--sans); color: var(--muted); font-size: .75rem; }
@media (max-width: 520px) { .charter ul { columns: 1; } }

.legacy { list-style: none; margin: 0; padding: 0; }
.legacy li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 1.05rem; }
.legacy strong { font-family: var(--head); color: var(--gold); font-size: 1.2rem; margin-right: 8px; }
.map-card iframe { background: var(--water) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230c2d5e'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / 34px no-repeat; }

/* Charter badges */
.badge-p, .badge-lg { display: inline-block; font-family: var(--sans); font-size: .68rem; font-weight: 700; border-radius: 4px; padding: 1px 6px; vertical-align: 2px; }
.badge-p { background: var(--navy); color: var(--gold); }
.badge-lg { background: var(--gold); color: var(--navy-deep); }
.charter-key { font-size: .82rem; color: var(--muted); margin: 18px 0 0; padding-top: 12px; border-top: 1px solid #e9dfc2; }

/* In the news */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-md); padding: 24px; text-decoration: none; color: var(--text); border: 1.5px solid transparent; transition: border-color .15s, transform .15s var(--ease); }
.news:hover { border-color: var(--navy); transform: translateY(-2px); color: var(--text); }
.news .src { font-weight: 700; font-size: .85rem; color: var(--navy); }
.news time { font-size: .85rem; color: #a87b0c; font-weight: 600; margin-bottom: 10px; }
.news h3 { font-size: 1.2rem; }
.news p { font-size: .95rem; color: var(--muted); flex: 1; }
.news .loc { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

/* Video */
.video { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--navy-deep); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--white); border: 0; font: inherit; cursor: default; background: radial-gradient(600px 300px at 50% 40%, rgba(214,160,29,.22), transparent 70%), var(--navy-deep); background-size: cover; background-position: center; }
.video-ph.has-thumb { cursor: pointer; position: relative; }
.video-ph.has-thumb::before { content: ""; position: absolute; inset: 0; background: rgba(7,28,61,.45); }
.video-ph > * { position: relative; }
.video-ph strong { font-family: var(--head); font-size: 1.6rem; }
.video-ph span:not(.play) { color: #b9c6db; }
.play { width: 74px; height: 74px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; margin-bottom: 8px; transition: transform .2s var(--ease); }
.play::after { content: ""; border-left: 22px solid var(--navy-deep); border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.video-ph.has-thumb:hover .play { transform: scale(1.08); }

/* Year in service */
.year-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.year-grid h3 { font-size: 1.15rem; color: var(--gold) !important; }
.year-grid p { color: #c3cee0; font-size: .98rem; margin: 0; }
@media (max-width: 900px) { .year-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .year-grid { grid-template-columns: 1fr; } }

/* ---------- Phoenix Initiative nav item ---------- */
.nav a.nav-phoenix { overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 7px; }
.nav-phoenix .ember { width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 50% 65%, #f6c15a, #e08a2c 55%, #b8562a); box-shadow: 0 0 6px rgba(224,138,44,.7); animation: emberPulse 3.2s ease-in-out infinite; flex: none; }
.nav a.nav-phoenix::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(246,193,90,.35) 50%, transparent 70%); transform: translateX(-120%); }
.nav a.nav-phoenix:hover { background: #fdf3e4; color: #8a3f15; }
.nav a.nav-phoenix:hover::before { animation: sweep .9s var(--ease); }
.nav a.nav-phoenix[aria-current="page"] { color: #8a3f15; }
.nav a.nav-phoenix[aria-current="page"]::after { background: linear-gradient(90deg, #b8562a, #f6c15a); box-shadow: 0 0 10px rgba(224,138,44,.75); }
@keyframes emberPulse { 50% { transform: translateY(-2px) scale(1.15); box-shadow: 0 0 10px rgba(246,193,90,.9); } }
@keyframes sweep { to { transform: translateX(120%); } }
@media (max-width: 1240px) { .nav a.nav-phoenix { display: flex; } }


/* =====================================================================
   MOTION — the site coming alive. All of it is switched off for
   visitors who ask their device to reduce motion.
   ===================================================================== */

/* Scroll progress: a thin gold line under the header */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; background: linear-gradient(90deg, var(--gold), #f3c95a); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); pointer-events: none; }

/* Reveal on scroll (added by script, so nothing hides without it) */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.rv.rv-left { transform: translateX(-30px); }
.rv.rv-right { transform: translateX(30px); }
.rv.rv-pop { transform: scale(.94); }
.rv.rv-in { opacity: 1; transform: none; }

/* Headings: words rise one at a time */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 70ms + var(--d, 0s)); }
.split-in .w > span { transform: none; }

/* Section headings get a gold stroke that draws in */
.section-head h2::after, .draw-line::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--gold); margin-top: 14px; transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease) .35s; }
.band-navy .section-head h2::after { background: #f3c95a; }
.section-head.rv-in h2::after, .draw-line.rv-in::after { transform: scaleX(1); }

/* Pull quote: words light up as you scroll through it */
.pull .pw { opacity: .22; transition: opacity .25s linear; }
.pull .pw.lit { opacity: 1; }

/* Ticker band */
.ticker { background: var(--navy-deep); color: var(--white); overflow: hidden; border-top: 3px solid var(--gold); position: relative; }
.ticker-track { display: flex; width: max-content; animation: tick 48s linear infinite; padding: 18px 0; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font-family: var(--head); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 600; white-space: nowrap; padding: 0 22px; display: inline-flex; align-items: center; gap: 44px; }
.ticker span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.ticker span:nth-child(3n) { color: #f3c95a; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Hero lake: a bobber on the water, ripples, and rising bubbles */
.bobber { position: absolute; left: 68%; top: 2px; width: 26px; height: 40px; z-index: 3; animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
.bobber svg { width: 100%; height: 100%; overflow: visible; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(6px) rotate(5deg); } }
.ripple { position: absolute; left: calc(68% + 13px); top: 30px; width: 18px; height: 6px; margin-left: -9px; border: 2px solid rgba(12,45,94,.35); border-radius: 50%; animation: ripple 3.2s ease-out infinite; z-index: 2; }
.ripple.r2 { animation-delay: 1.6s; }
@keyframes ripple { from { transform: scale(.4); opacity: .9; } to { transform: scale(5); opacity: 0; } }
.bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.bubbles i { position: absolute; bottom: 30px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(12,45,94,.3); background: rgba(255,255,255,.4); animation: bubble 11s linear infinite; opacity: 0; }
@keyframes bubble { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(12px, -42vh); } 90% { opacity: .6; } 100% { transform: translate(-6px, -78vh); opacity: 0; } }

/* Drifting gold motes in navy bands */
.motes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.band-navy, .cta, .site-footer { position: relative; }
.band-navy > .wrap, .cta > .wrap { position: relative; z-index: 1; }
.motes i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #f3c95a; opacity: 0; box-shadow: 0 0 10px 2px rgba(243,201,90,.45); animation: mote 14s ease-in-out infinite; }
@keyframes mote { 0% { transform: translate(0, 20px); opacity: 0; } 20% { opacity: .7; } 80% { opacity: .5; } 100% { transform: translate(40px, -160px); opacity: 0; } }

/* Counting numbers and the 1948 that fills like a lake */
.since { background: linear-gradient(0deg, var(--navy) 0 50%, transparent 50% 100%); background-size: 100% 200%; background-position: 0 0%; -webkit-background-clip: text; background-clip: text; transition: background-position 2.4s var(--ease) .3s; }
.since.filled { background-position: 0 100%; }

/* Timeline line fills as you read */
.timeline::after { content: ""; position: absolute; left: 118px; top: 8px; width: 3px; height: calc((100% - 16px) * var(--tp, 0)); background: var(--gold); border-radius: 2px; box-shadow: 0 0 10px rgba(214,160,29,.6); }
.timeline li::before { transition: background .4s, border-color .4s, transform .4s var(--ease); }
.timeline li.passed::before { background: var(--gold); border-color: var(--gold); transform: scale(1.1); }
@media (max-width: 640px) { .timeline::after { left: 8px; } }

/* Gentle life on interactive pieces */
.program-list li { transition: transform .35s var(--ease); }
.program-list li:hover { transform: translateX(6px); }
.program-list li:hover .glyph { background: var(--navy); color: var(--gold); }
.glyph { transition: background .3s, color .3s, transform .5s var(--ease); }
.program-list li.rv-in .glyph { animation: spinIn .9s var(--ease) both; animation-delay: calc(var(--d, 0s) + .15s); }
@keyframes spinIn { from { transform: rotate(-90deg) scale(.6); } to { transform: none; } }
.week { transition: background .25s, transform .3s var(--ease); }
.week:hover { transform: translateY(-3px); }
.event { animation: rise .6s var(--ease) both; }
.event:nth-child(2) { animation-delay: .08s; } .event:nth-child(3) { animation-delay: .16s; } .event:nth-child(4) { animation-delay: .24s; } .event:nth-child(5) { animation-delay: .32s; }
.btn-gold, .btn-navy { position: relative; overflow: hidden; }
.btn-gold::after, .btn-navy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); }
.btn-gold:hover::after, .btn-navy:hover::after { animation: sweep .8s var(--ease); }
.photo { position: relative; overflow: hidden; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%); animation: shimmer 4.5s ease-in-out infinite; }
@keyframes shimmer { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

@media print { .rv, .w > span { opacity: 1 !important; transform: none !important; } .scroll-progress, .ticker, .bubbles, .motes, .bobber, .ripple { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker span:nth-child(n+9) { display: none; }
  .bubbles, .motes, .ripple { display: none; }
  .since { background-position: 0 100%; }
}


/* =====================================================================
   PHONE-FIRST
   ===================================================================== */
html.big-text { font-size: 118%; }
.text-size { background: none; border: 1px solid rgba(255,255,255,.35); color: var(--white); border-radius: 6px; padding: 4px 10px; font: inherit; cursor: pointer; }
.text-size::before { content: "A"; font-size: 1.15em; font-weight: 700; margin-right: 6px; }

/* Bottom tab bar */
.tabbar { display: none; }
@media (max-width: 860px) {
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -16px rgba(7,28,61,.35); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; text-decoration: none; color: var(--muted); font: 700 .78rem var(--sans); background: none; border: 0; border-radius: 12px; cursor: pointer; }
  .tabbar svg { width: 26px; height: 26px; }
  .tabbar [aria-current="page"] { color: var(--navy); background: var(--water); }
  .tabbar .tb-help { color: var(--navy-deep); }
  .tabbar .tb-help svg { background: var(--gold); border-radius: 50%; padding: 5px; width: 34px; height: 34px; margin-top: -4px; }
  .tb-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 20px; height: 20px; border-radius: 10px; background: #c0392b; color: #fff; font-size: .72rem; display: grid; place-items: center; padding: 0 5px; }
  body.has-tabbar { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  /* phone sizing */
  .site-header .wrap { height: 70px; }
  .brand img { height: 46px; }
  .nav { top: 70px; max-height: calc(100dvh - 140px); overflow-y: auto; }
  .section { padding: 64px 0; }
  .wrap { padding: 0 20px; }
  .btn { min-height: 48px; }
  .btn-row .btn { flex: 1 1 auto; }
  .lede { font-size: 1.1rem; }
  .event { gap: 14px; }
  .addcal > button { min-height: 44px; }
  .scroll-progress { display: none; }
}

/* Member sign-in prompt */
.signin-sheet { position: fixed; z-index: 95; left: 50%; bottom: 24px; width: min(560px, calc(100% - 24px)); transform: translate(-50%, 30px); opacity: 0; transition: opacity .45s var(--ease), transform .45s var(--ease); display: flex; gap: 16px; align-items: flex-start; background: var(--white); border-radius: var(--r-lg); padding: 22px 22px 18px; box-shadow: 0 30px 60px -20px rgba(7,28,61,.5); border-top: 5px solid var(--gold); }
.signin-sheet.show { opacity: 1; transform: translate(-50%, 0); }
.signin-sheet img { border-radius: 50%; flex: none; }
.signin-sheet h2 { font-size: 1.35rem; margin: 0 0 4px; }
.signin-sheet p { margin: 0 0 14px; color: var(--muted); font-size: 1rem; }
.ss-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ss-btns .btn { flex: 1 1 140px; }
.ss-guest { display: block; width: 100%; margin-top: 10px; background: none; border: 0; font: 700 1rem var(--sans); color: var(--muted); padding: 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ss-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
@media (max-width: 860px) { .signin-sheet { bottom: calc(80px + env(safe-area-inset-bottom)); } .signin-sheet img { width: 44px; height: 44px; } }

/* =====================================================================
   KIWANIS HELPER (voice help bot)
   ===================================================================== */
.hb-fab { position: fixed; right: 22px; bottom: 22px; z-index: 92; display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; background: var(--navy); color: var(--white); font: 700 1rem var(--sans); padding: 8px 18px 8px 8px; border-radius: 999px; box-shadow: 0 14px 30px -12px rgba(7,28,61,.6); }
.hb-fab .hb-mic-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); display: grid; place-items: center; animation: micPulse 2.6s ease-in-out infinite; }
.hb-fab svg, .hb-mic svg { width: 22px; height: 22px; }
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(214,160,29,.55); } 50% { box-shadow: 0 0 0 10px rgba(214,160,29,0); } }
@media (max-width: 860px) { .hb-fab { display: none; } }

.hb-panel { position: fixed; z-index: 110; right: 22px; bottom: 22px; width: min(420px, calc(100vw - 24px)); height: min(640px, calc(100dvh - 120px)); display: flex; flex-direction: column; background: var(--white); border-radius: 22px; box-shadow: 0 40px 80px -24px rgba(7,28,61,.6); overflow: hidden; opacity: 0; transform: translateY(20px) scale(.98); transition: opacity .25s var(--ease), transform .25s var(--ease); font-size: 1.05rem; }
.hb-panel.show { opacity: 1; transform: none; }
.hb-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy); color: #c8d3e6; }
.hb-head img { border-radius: 50%; background: #fff; }
.hb-head strong { display: block; color: var(--white); font-family: var(--head); font-size: 1.2rem; }
.hb-head span { font-size: .85rem; }
.hb-x { margin-left: auto; background: none; border: 0; color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; padding: 4px 10px; }
.hb-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--water); }
.hb-msg { max-width: 88%; padding: 12px 15px; border-radius: 16px; line-height: 1.45; animation: rise .3s var(--ease); }
.hb-msg.bot { background: var(--white); border-bottom-left-radius: 4px; color: var(--text); }
.hb-msg.you { background: var(--navy); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.hb-msg ul { margin: 6px 0 0; padding-left: 20px; }
.hb-msg p { margin: 0 0 8px; }
.hb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hb-actions .btn { min-height: 44px; }
.hb-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px; border-top: 1px solid var(--line); scrollbar-width: none; }
.hb-chips button { flex: none; border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 9px 14px; font: 600 .92rem var(--sans); color: var(--navy); cursor: pointer; }
.hb-bottom { padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.hb-mic { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; cursor: pointer; background: var(--gold); color: var(--navy-deep); font: 700 1.15rem var(--sans); border-radius: 16px; padding: 12px; min-height: 60px; }
.hb-mic .hb-mic-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-deep); color: var(--gold); display: grid; place-items: center; }
.hb-panel.listening .hb-mic { background: #c0392b; color: var(--white); }
.hb-panel.listening .hb-mic-ico { animation: micPulse 1s ease-in-out infinite; }
.hb-form { display: flex; gap: 8px; margin-top: 10px; }
.hb-form input { flex: 1; min-width: 0; font-size: 1rem; }
.hb-voice { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--muted); margin: 10px 0 0; }
.hb-voice input { width: auto; }
@media (max-width: 860px) {
  .hb-panel { left: 0; right: 0; bottom: 0; width: 100%; height: calc(100dvh - 60px); border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}
@media (prefers-reduced-motion: reduce) { .hb-fab .hb-mic-ico, .mic-dot { animation: none; } }
@media print { .hb-fab, .hb-panel, .tabbar, .signin-sheet { display: none !important; } }
.hb-panel[hidden] { display: none; }
.tb-badge[hidden] { display: none !important; }
