:root {
  color-scheme: light;
  --ink:#202c38; --muted:#536575; --paper:#f5f8fb; --white:#fff;
  --pine:#215d89; --lime:#ffffff; --line:#d8e4ed; --brand-blue:#2E82C2; --brand-red:#E31E24;
  font-family: "Century Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;
  color:var(--ink); background:var(--paper); font-synthesis:none;
}
*, *::before, *::after { box-sizing:border-box }
body { margin:0; min-width:280px }
[hidden] { display:none !important }
button, select, input, textarea { font:inherit }
button, a { -webkit-tap-highlight-color:transparent }
button { cursor:pointer }
button:disabled { cursor:default; opacity:.56 }
a { color:inherit }
:focus-visible { outline:3px solid #2b6fe5; outline-offset:4px }
h1,h2,h3,p { margin:0 }
.shell { width:min(100% - 64px, 1140px); margin-inline:auto }
.skip-link { position:absolute; top:8px; left:8px; z-index:20; background:white; padding:12px; transform:translateY(-160%) }
.skip-link:focus { transform:translateY(0) }
.sr-only { width:1px; height:1px; position:absolute; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
.topbar { background:#fff; border-bottom:1px solid var(--line) }
.topbar-inner { display:flex; align-items:center; min-height:75px; gap:24px }
.brand { display:inline-flex; align-items:center; gap:11px; border:0; padding:0; background:none; color:var(--ink); font-size:1.08rem; font-weight:750; letter-spacing:-.04em; white-space:nowrap }
.brand b { color:#307050 }
.brand-mark { width:35px; height:35px; border-radius:11px; background:var(--pine); display:grid; place-items:center }
.brand-mark span { width:13px; height:13px; border:3px solid var(--lime); border-radius:50% 50% 50% 0; transform:rotate(-45deg); margin-top:-3px }
.top-city { color:var(--muted); display:flex; align-items:center; gap:7px; font-size:.84rem; margin-right:auto }
.city-dot { width:7px; height:7px; border-radius:50%; background:#64a47b; display:inline-block; flex:none }
.nav { display:flex; gap:7px }
.nav button,.switch button { border:0; background:transparent; border-radius:10px; padding:10px 14px; color:var(--muted); font-size:.9rem; font-weight:650; white-space:nowrap }
.nav button[aria-current="page"] { color:var(--ink); background:#e9f0e7 }
.demo { display:flex; align-items:center; gap:12px; justify-content:space-between; color:#5f532c; background:#f5ecd4; border:1px solid #e9ddb8; border-radius:12px; padding:8px 14px; margin-top:16px; font-size:.8rem }
.demo select { padding:5px 6px; border:1px solid #d8caa1; border-radius:7px; color:inherit; background:#fbf6e8; max-width:58vw }
.hero { position:relative; margin-top:20px; overflow:hidden; isolation:isolate; min-height:354px; border-radius:24px; background:var(--pine); color:var(--white); display:flex; align-items:center }
.hero-content { position:relative; z-index:1; padding:37px 7%; max-width:760px }
.locality { display:flex; align-items:center; gap:9px; font-size:.7rem; letter-spacing:.17em; font-weight:750; color:#c8dccd; margin-bottom:17px }
.locality .city-dot { background:var(--lime) }
.hero h1, .plain-heading h1 { font-size:clamp(2.55rem, 7vw, 5rem); font-weight:770; line-height:.98; letter-spacing:-.075em }
.hero h1 span { color:var(--lime) }
.hero-description { max-width:33ch; margin:17px 0 23px; font-size:clamp(.94rem, 2vw, 1.06rem); color:#dceae0; line-height:1.45 }
.hero-decoration { position:absolute; z-index:-1; width:min(66%,625px); height:170%; right:-3%; top:-40%; transform:rotate(-17deg); opacity:.72;
  background:repeating-linear-gradient(90deg,transparent 0 62px,#91b5a12a 63px 64px,transparent 65px 105px),
             repeating-linear-gradient(0deg,transparent 0 54px,#91b5a12a 55px 56px,transparent 57px 90px);
  mask-image:linear-gradient(90deg,transparent,#000 40%); pointer-events:none }
.hero-decoration i { position:absolute; width:54%; aspect-ratio:1; border:1px solid #a7cfb77d; border-radius:50%; right:14%; top:27% }
.hero-decoration i:nth-child(2) { transform:scale(.75) }
.hero-decoration i:nth-child(3) { transform:scale(.5); border-style:dashed }
.hero-decoration span { position:absolute; top:51%; right:37%; width:70px; height:70px; border:13px solid var(--lime); transform:rotate(-28deg); border-radius:50% 50% 50% 0; box-shadow:0 10px 50px #c3eb8827 }
.button { display:inline-flex; align-items:center; justify-content:center; gap:12px; border:1px solid transparent; background:var(--pine); color:white; border-radius:11px; padding:12px 17px; min-height:44px; font-weight:720; text-decoration:none; font-size:.94rem }
.hero-button { color:#142725; background:var(--lime) }
.button.secondary { background:transparent; border-color:var(--line); color:var(--pine) }
.button.danger { background:#fff1ef; color:#9c342a; border-color:#e9beb9 }
.agenda { padding-top:34px; scroll-margin-top:16px }
.section-header { display:flex; align-items:end; justify-content:space-between; gap:12px; margin-bottom:16px }
.overline { font-weight:750; letter-spacing:.12em; color:#447359; font-size:.7rem; margin-bottom:7px }
.section-header h2,.join h2 { font-size:clamp(1.5rem,4vw,2.2rem); letter-spacing:-.06em; line-height:1.12 }
.switch { display:flex; gap:2px; padding:3px; border:1px solid var(--line); border-radius:12px; background:#e9ede6 }
.switch button { padding:7px 11px }
.switch button[aria-pressed="true"] { background:#fff; color:var(--ink); box-shadow:0 1px 2px #182c2615 }
.filters { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:17px }
.chip { padding:8px 12px; border:1px solid var(--line); border-radius:999px; color:#354a40; background:#fafbf8; font-size:.82rem; font-weight:650 }
.chip[aria-pressed="true"] { background:var(--pine); border-color:var(--pine); color:white }
.cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px }
.event-card { border:1px solid var(--line); background:white; border-radius:16px; overflow:hidden; display:flex; flex-direction:column }
.art { height:75px; padding:11px 13px; display:flex; align-items:center; justify-content:space-between; gap:6px; background:#e3eee0; color:#31523e }
.art.games,.art.meeting,.art.family { background:#ebe4f2; color:#56426e }
.art.pets,.art.good { background:#f5ead6; color:#6e5127 }
.art.sport,.art.auto { background:#dbedf0; color:#335b63 }
.art-category { display:inline-flex; align-items:center; gap:8px; font-size:.77rem; font-weight:780; letter-spacing:.01em }
.art-icon { display:grid; justify-content:center; align-items:center; min-width:34px; height:34px; border:1px solid currentColor; border-radius:12px; font-size:1.1rem }
.art time { align-self:center; border-radius:7px; white-space:nowrap; background:#ffffffaa; padding:6px 8px; font-size:.7rem; font-weight:760 }
.event-info { padding:14px; display:grid; gap:8px; flex:1 }
.event-info h3 { font-size:1.14rem; line-height:1.25; letter-spacing:-.034em; overflow-wrap:anywhere }
.event-meta { color:var(--muted); font-size:.83rem; overflow-wrap:anywhere; line-height:1.4 }
.event-bottom { display:flex; align-items:center; gap:8px; justify-content:space-between; margin-top:3px }
.event-bottom .button { padding:8px 12px; min-height:37px; font-size:.8rem }
.availability { font-size:.74rem; color:#3b6250; font-weight:680 }
.availability.closed { color:#9a422f }
.notice { padding:13px 16px; border-radius:12px; grid-column:1/-1; line-height:1.5; background:#e8efe6; color:#364f42 }
.notice.error { margin:12px 0; color:#852f24; background:#f8e4df }
.notice button { margin-top:8px }
.join { margin-top:24px; padding:20px 23px; border:1px solid var(--line); border-radius:15px; background:#eaf0e7; display:flex; justify-content:space-between; align-items:center; gap:14px }
.join h2 { font-size:1.3rem }
.join p { margin-top:6px; color:var(--muted); font-size:.89rem }
.footer { padding-block:28px; font-size:.77rem; color:var(--muted) }
.plain-heading { padding:32px 0 24px }
.plain-heading h1 { font-size:clamp(2.2rem,8vw,3.45rem) }
.close { position:absolute; right:13px; top:13px; border:0; color:var(--ink); background:#f2f4ef; border-radius:50%; width:44px; height:44px; font-size:1.6rem }
dialog { width:min(92vw, 545px); max-height:calc(100dvh - 28px); border:1px solid var(--line); padding:24px; border-radius:20px; color:var(--ink); background:#fff; box-shadow:0 20px 70px #14272533 }
dialog::backdrop { background:#172f45a8 }
.detail-title { font-size:clamp(1.55rem,6vw,2.15rem); letter-spacing:-.05em; line-height:1.1; padding-right:42px; margin-block:7px 15px; overflow-wrap:anywhere }
.detail-data { display:grid; gap:9px; line-height:1.42; margin-block:12px 17px; overflow-wrap:anywhere }
.detail-data strong { display:block; font-size:.83rem }
.detail-data p { color:var(--muted); font-size:.92rem }
.detail-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:18px }
.toast { position:fixed; bottom:17px; left:50%; transform:translateX(-50%); z-index:1000; max-width:min(92vw,600px); border-radius:12px; background:var(--pine); color:white; padding:11px 16px; box-shadow:0 5px 18px #14272540; font-size:.87rem; pointer-events:none }
.toast:empty { display:none }
#map { height:330px; border:1px solid var(--line); border-radius:15px; background:#e7f2fa; margin-bottom:10px }
#map-panel { margin-bottom:14px }
.map-pin { background:var(--pine); color:var(--lime); border:2px solid var(--lime); border-radius:50%; text-align:center; font-size:18px; font-weight:700; line-height:24px }
.muted { color:var(--muted); font-size:.84rem }
.manager-card { border-radius:13px; background:#fff; padding:15px; border:1px solid var(--line); margin:0 0 10px; display:grid; gap:8px; overflow-wrap:anywhere }
.manager-card h3 { font-size:1.03rem }
.manager-form { display:grid; grid-template-columns:1fr 1fr; gap:13px; margin-bottom:20px }
.manager-form label { display:grid; gap:4px; color:#36526a; font-size:.85rem; font-weight:650 }
.manager-form input,.manager-form textarea,.manager-form select { width:100%; min-width:0; border:1px solid var(--line); border-radius:8px; padding:8px; background:#fbfcfe; color:var(--ink) }
.manager-form textarea { min-height:88px; resize:vertical }
.manager-form .full,.manager-form .notice { grid-column:1/-1 }
.manager-form .button { justify-self:start }
.manager-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center }
.manager-actions .button { padding:8px 10px; font-size:.82rem }
.participants { display:grid; gap:8px }
@media (max-width:810px) { .shell { width:calc(100% - 34px) } .cards { grid-template-columns:repeat(2,minmax(0,1fr)) } }
@media (max-width:540px) {
  .shell { width:calc(100% - 26px) }
  .topbar-inner { min-height:58px; gap:9px; flex-wrap:wrap; padding-block:9px }
  .brand { font-size:1rem; gap:8px }
  .brand-mark { width:29px; height:29px; border-radius:8px }
  .top-city { margin:0 0 0 auto; font-size:.77rem }
  .nav { flex-basis:100%; justify-content:flex-start; gap:4px }
  .nav button { padding:7px 10px; font-size:.83rem }
  .demo { margin-top:12px; padding:6px 8px }
  .demo-detail { display:none }
  .hero { margin-top:13px; border-radius:17px; min-height:260px }
  .hero-content { padding:23px 20px }
  .hero h1 { font-size:clamp(2.1rem, 11vw, 3.2rem) }
  .hero-description { margin:13px 0 18px; max-width:26ch }
  .hero-decoration { right:-18%; width:77%; opacity:.42 }
  .hero-decoration span { width:45px; height:45px; border-width:9px; right:39% }
  .agenda { padding-top:23px }
  .filters { flex-wrap:nowrap; overflow-x:auto; padding:4px; margin-inline:-4px; margin-bottom:10px }
  .chip { flex:none; padding:9px 11px }
  .cards { grid-template-columns:1fr; gap:10px }
  .art { height:58px }
  .join { align-items:start; flex-direction:column }
  #map { height:290px }
  .manager-form { grid-template-columns:1fr }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; animation-duration:0.001ms !important } }

/* Brand palette from supplied vector brand book. One primary emblem in the header. */
.brand-logo{width:54px;height:52px;object-fit:contain;flex:none}.brand b{color:#2E82C2}.hero{background:#2E82C2}.hero h1 span{color:#fff}.locality,.hero-description{color:#fff}.hero-button{color:#215d89}.city-dot{background:#E31E24}.overline{color:#215d89}.nav button[aria-current="page"]{background:#e8f2f9;color:#215d89}.switch{background:#edf3f8}.chip{color:#36526a;background:#fff}.art,.art.games,.art.meeting,.art.family,.art.pets,.art.good,.art.sport,.art.auto{background:#e7f2fa;color:#215d89}.art.pets,.art.good{background:#fff0f0;color:#a82930}.availability{color:#215d89}.notice{background:#eaf3fa;color:#294e6b}.hero-decoration{opacity:.28}.hero-decoration span{border-color:white}.join{background:#e7f2fa}.topbar{border-top:3px solid #2E82C2}.brand-mark{display:none}
@media(max-width:650px){.topbar-inner{flex-wrap:wrap;gap:10px;padding-block:10px}.nav{width:100%;justify-content:space-between}.nav button{padding:9px 10px;font-size:.82rem}.brand-logo{width:45px;height:44px}.top-city{margin-left:auto;margin-right:0}.brand{font-size:1rem}}

.location-filters{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:12px;max-width:740px;margin:0 0 16px}
.location-filters label{display:grid;gap:5px;min-width:0;color:var(--muted);font-size:.85rem;font-weight:650}
.location-filters input,.location-filters select{width:100%;height:44px;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink)}
.location-filters .button{background:white}
@media(max-width:570px){.location-filters{grid-template-columns:1fr auto;gap:8px}.location-filters label:first-child{grid-column:1/-1}.section-header{align-items:start;flex-wrap:wrap}}
