/* Layout: in the manner of rotarydistrict2482.org: white top bar with the name, a Royal Blue menu bar with a Sky Blue join tile, then white panels on a Silver page, and a Royal Blue footer. One light look by choice. */
:root {
  color-scheme: light;
  --page: #d0cfcd;          /* Rotary Silver, page ground */
  --bg: #ffffff;            /* panels and cards */
  --surface: #f3f2f0;       /* quiet fill inside panels */
  --ink: #1b1b1b;
  --muted: #54565a;         /* Rotary Charcoal */
  --line: #d8d7d4;
  --control-line: #898a8d;  /* Rotary Pewter */
  --royal: #17458f;         /* Rotary Royal Blue */
  --brand-ink: #17458f;
  --band: #17458f;
  --on-band: #ffffff;
  --azure: #0067c8;         /* Rotary Azure */
  --sky: #00a2e0;           /* Rotary Sky Blue */
  --powder: #dcedf6;        /* tint of Rotary Powder Blue */
  --gold: #f7a81b;          /* Rotary Gold */
  --on-gold: #17458f;
  --gold-soft: #fdf0d5;
  --navy-ink: #0b1f3a;
  --focus: #0067c8;
  --font-body: "Fira Sans", "Segoe UI", Arial, sans-serif;
  --font-display: "Fira Sans", "Segoe UI", Arial, sans-serif;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.55rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.1rem, 5vw, 3.4rem);
  --radius: 6px;
}

* { box-sizing: border-box; }
.navbar, footer.site { --focus: #ffffff; }
body { background: var(--page); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--gold); }
a { color: var(--azure); }
a:hover { color: var(--royal); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; text-wrap: balance; margin: 0; color: var(--royal); }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--azure); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 62ch; font-weight: 300; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* page bands: Silver ground with a white panel, like the district site's content box */
.band, .hero { padding-block: 24px 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
main { padding-bottom: 28px; }
.band > .wrap, .hero > .wrap { background: var(--bg); border-radius: var(--radius); padding: 28px; }

/* prototype ribbon */
.ribbon { background: var(--gold); color: var(--royal); font-size: .85rem; }
.ribbon .wrap { padding-block: 7px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ribbon strong { background: var(--royal); color: #fff; padding: 1px 8px; border-radius: 3px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

/* header: white top bar + Royal Blue menu bar */
.topbar { background: var(--bg); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--royal); }
/* Logo from Rotary Brand Center (District 2482, Zone 10), trimmed with clear space kept around the mark. */
.brand-logo { height: 76px; width: auto; flex: none; }
.brand-name { display: flex; flex-direction: column; padding-left: 14px; border-left: 1px solid var(--line); }
.brand-name b { font-size: 1.35rem; font-weight: 700; color: var(--royal); line-height: 1.2; }
.brand-name span { font-size: .85rem; color: var(--muted); }
.navbar { background: var(--royal); }
.nav-wrap { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 0 16px; }
nav.main { display: flex; flex-wrap: wrap; }
nav.main a { font: inherit; font-size: .98rem; font-weight: 300; background: none; border: 0; color: #fff; padding: 13px 14px; cursor: pointer; min-height: 48px; box-shadow: inset 0 -3px 0 transparent; }
nav.main a:hover { background: rgba(255,255,255,.12); }
nav.main a[aria-current="page"] { font-weight: 600; box-shadow: inset 0 -3px 0 var(--gold); }
.join-tile { text-decoration: none; display: inline-flex; align-items: center; font: inherit; font-weight: 700; font-size: 1rem; background: var(--sky); color: var(--navy-ink); border: 0; padding: 12px 22px; cursor: pointer; min-height: 48px; }
.join-tile:hover { background: #33b5e6; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; padding: 11px 20px; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; text-decoration: none; min-height: 44px; }
.btn.gold { background: var(--gold); color: var(--royal); }
.btn.gold:hover { background: #f9b94a; }
.btn.ghost { border-color: var(--royal); color: var(--royal); background: transparent; }
.btn.ghost:hover { background: var(--powder); }
.btn.link { padding: 0; min-height: 0; background: none; color: var(--azure); text-decoration: underline; font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* hero panel */
.hero > .wrap { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 40px; }
.hero h1 { font-size: var(--step-4); max-width: 18ch; }
.hero p { font-size: var(--step-1); font-weight: 300; color: var(--muted); max-width: 52ch; margin-top: 14px; }
.hero .row { margin-top: 26px; }
.tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tally div { padding: 18px 14px; border-radius: var(--radius); }
.tally div:nth-child(1) { background: var(--azure); color: #fff; }
.tally div:nth-child(2) { background: var(--sky); color: var(--navy-ink); }
.tally div:nth-child(3) { background: var(--gold); color: var(--royal); }
.tally b { display: block; font-size: 2.4rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.tally span { font-size: .88rem; }

/* section heads */
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 22px; }
.head h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); overflow-wrap: break-word; }
.head > * { min-width: 0; }
.head.bar { --focus: #ffffff; background: var(--azure); border-radius: var(--radius); padding: 10px 16px; align-items: center; }
.head.bar h2 { color: #fff; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; }
.head.bar .btn.link { color: #fff; }

/* grids */
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* clubs */
.club { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); text-align: left; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.club:hover { border-color: var(--royal); box-shadow: 0 0 0 1px var(--royal); }
.club h3 { font-size: 1.35rem; }
.club .meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: .9rem; }
.club .meta dt { color: var(--muted); font-weight: 300; }
.club .meta dd { margin: 0; }
.club .city { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--azure); }

.profile { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
#club-profile { scroll-margin-top: 16px; }
.profile .top { background: var(--bg); padding: 28px 28px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; border-bottom: 1px solid var(--line); }
.profile .top h2 { font-size: clamp(1.9rem, 6vw, 3rem); }
.profile .top .eyebrow { color: var(--azure) !important; opacity: 1 !important; }
.profile .top .btn.ghost { border-color: var(--royal); color: var(--royal); }
.profile .body { padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: .95rem; }
.facts dt { color: var(--muted); font-weight: 300; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.placeholder { color: var(--muted); font-style: italic; }

/* chips and filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.chip { font: inherit; font-size: .88rem; font-weight: 400; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--control-line); background: var(--bg); color: var(--ink); cursor: pointer; min-height: 40px; }
.chip:hover { border-color: var(--royal); }
.chip[aria-pressed="true"] { background: var(--royal); border-color: var(--royal); color: #fff; font-weight: 600; }
select, input[type="search"], input[type="text"], input[type="email"], textarea { font: inherit; font-size: .95rem; padding: 10px 12px; border: 1px solid var(--control-line); border-radius: var(--radius); background: var(--bg); color: var(--ink); min-height: 44px; max-width: 100%; }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }

/* projects */
.project { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.project h3 { font-size: 1.15rem; line-height: 1.3; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 3px; background: var(--surface); color: var(--muted); }
.badge.area { background: var(--powder); color: var(--royal); }
.project .club-name { font-size: .85rem; font-weight: 600; color: var(--azure); }
/* Project photos fill the top of the card; club logos keep their own proportions. */
.project-photo { display: block; margin: -20px -20px 4px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface); }
.project-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.club-logo { display: block; height: 56px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.club-logo.big { height: 84px; }
.club-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
figure.photo { margin: 18px 0 22px; }
figure.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
figure.photo figcaption { margin-top: 6px; font-size: .85rem; color: var(--muted); }
.project footer { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.empty { padding: 32px; border: 1px dashed var(--control-line); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* region */
.region { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.map { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow-x: auto; }
.map > svg { display: block; width: 100%; height: auto; min-width: 320px; }
.map figcaption { padding: 10px 14px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--bg); }
.places { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 640px; overflow-y: auto; }
.place { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 12px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 0; }
.place.on { border-color: var(--royal); box-shadow: 0 0 0 2px var(--royal) inset; }
.place-btn { grid-column: 1 / -1; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: var(--royal); cursor: pointer; min-height: 44px; }
.place .num { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--royal); font-weight: 700; font-size: .85rem; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.place b { font-size: 1rem; font-weight: 600; }
.place .where { grid-column: 2; font-size: .8rem; color: var(--muted); }
.place .desc { grid-column: 2; font-size: .9rem; }
.place .src { grid-column: 2; font-size: .8rem; }

/* business directory */
.biz { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.biz .sector { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--azure); }
.biz h3 { font-size: 1.15rem; }
.biz .who { font-size: .9rem; color: var(--muted); }
.biz dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; font-size: .85rem; margin: 6px 0 0; }
.biz dt { color: var(--muted); font-weight: 300; }
.biz dd { margin: 0; overflow-wrap: anywhere; }
.biz .example { align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--royal); background: var(--gold); padding: 2px 8px; border-radius: 3px; }
.note { border-radius: var(--radius); padding: 16px 20px; background: var(--powder); font-size: .92rem; }
.note b { display: block; margin-bottom: 4px; color: var(--royal); }
.test { counter-reset: q; list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.test li { counter-increment: q; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
.test li::before { content: counter(q); font-weight: 700; color: var(--royal); }

/* join */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--royal); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps b { color: var(--royal); }
.join-form { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg); }
.form-msg { padding: 12px 14px; border-radius: var(--radius); background: var(--gold-soft); font-size: .9rem; }
.meet { width: 100%; border-collapse: collapse; font-size: .92rem; }
.meet th, .meet td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.meet th { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.meet td b { color: var(--royal); }
.table-box { overflow-x: auto; }

/* footer: Royal Blue with Sky Blue headings, as on the district site */
footer.site { background: var(--royal); color: #fff; }
footer.site .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: .92rem; font-weight: 300; }
footer.site b { display: block; color: var(--sky); font-size: 1.35rem; font-weight: 700; margin-bottom: 6px; }
footer.site a { color: #fff; }

@media (max-width: 880px) {
  .hero > .wrap, .profile .body, .region { grid-template-columns: minmax(0, 1fr); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .g3, .g2 { grid-template-columns: minmax(0, 1fr); }
  .band > .wrap, .hero > .wrap { padding: 20px; }
  .band, .hero { padding-block: 16px 0; }
  .tally b { font-size: 1.8rem; }
  .join-tile { text-decoration: none; display: inline-flex; align-items: center; width: 100%; }
  .brand { flex-direction: column; align-items: flex-start; gap: 8px; }
  .brand-logo { height: 56px; }
  .brand-name { padding-left: 0; border-left: 0; }
  .brand-name b { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .view:not([hidden]) { animation: rise .25s ease-out; }
  @keyframes rise { from { transform: translateY(6px); } to { transform: none; } }
}

/* WordPress theme additions */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: #fff; padding: 8px 12px; }
nav.main a { text-decoration: none; display: inline-flex; align-items: center; }
nav.main a:hover { color: #fff; }
a.chip { text-decoration: none; display: inline-flex; align-items: center; }
.chip[aria-current="page"] { background: var(--royal); border-color: var(--royal); color: #fff; font-weight: 600; }
a.badge { text-decoration: none; }
a.club-name { text-decoration: none; }
.project h3 a { color: var(--royal); text-decoration: none; }
.project h3 a:hover { text-decoration: underline; }
.band > .wrap.narrow { max-width: 860px; }
.page-title { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 10px 0 16px; }
.entry { max-width: 70ch; }
.entry p { margin: 0 0 1em; }
.entry > :last-child { margin-bottom: 0; }
.facts { margin: 20px 0; }
.near { margin: 6px 0 0; padding-left: 18px; }
.plain-list { padding-left: 18px; }
.filters .btn { align-self: end; }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 24px 0 0; }
.pager a, .pager span { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.pager .current { background: var(--royal); color: #fff; border-color: var(--royal); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: start; }
.leaflet-box { height: 560px; width: 100%; }
.leaflet-box.small-map { height: 320px; }
.rhk-icon { background: none; border: 0; }
.pin { display: grid; place-items: center; width: 28px; height: 28px; font: 700 12px/1 var(--font-body); box-shadow: 0 0 0 2px #fff; }
.pin-place { border-radius: 50%; background: var(--gold); color: var(--royal); }
.pin-club { width: 18px; height: 18px; margin: 5px; border-radius: 3px; background: var(--royal); }
.map figcaption a { color: var(--azure); }
@media (max-width: 600px) { .leaflet-box { height: 420px; } }
