/* GWPA Finchley & Barnet - site styles */
:root {
  --aegean: #1d4e89;
  --navy: #14243b;
  --mist: #e9f0f7;
  --mist-deep: #d5e2ef;
  --olive: #56602f;
  --line: #dbe4ee;
  --line-strong: #a9bbd0;
  --text-soft: #3b4a5f;
  --text-muted: #4a5a70;
  --white: #ffffff;
  --font-head: "Jost", "Futura", "Century Gothic", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --max: 1200px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--navy); font-family: var(--font-body); font-size: 18px; line-height: 1.7; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--aegean); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--aegean); outline-offset: 3px; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 1000px; }
.section { padding: 96px 0; }
.section--mist { background: var(--mist); }
.section--blue { background: var(--aegean); color: var(--white); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.soft { color: var(--text-soft); }
.muted { color: var(--text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border-radius: 999px; font-family: var(--font-head); font-size: 17px; font-weight: 500; text-decoration: none; cursor: pointer; border: 2px solid var(--aegean); background: var(--aegean); color: var(--white); }
.btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn--outline { background: transparent; color: var(--aegean); }
.btn--outline:hover { background: var(--aegean); color: var(--white); }
.btn--white { background: var(--white); border-color: var(--white); color: var(--aegean); }
.btn--white:hover { background: var(--mist); border-color: var(--mist); color: var(--navy); }
.btn--ghost-white { background: transparent; border-color: var(--white); color: var(--white); }
.btn--ghost-white:hover { background: var(--white); color: var(--aegean); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.text-link { font-family: var(--font-head); font-weight: 500; font-size: 17px; padding: 10px 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand img { width: 64px; height: 64px; }
.brand-name { display: flex; flex-direction: column; font-family: var(--font-head); line-height: 1.2; }
.brand-name strong { font-size: 20px; font-weight: 600; letter-spacing: 0.04em; }
.brand-name span { font-size: 14px; color: var(--text-muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-family: var(--font-head); font-size: 16px; }
.nav a { padding: 12px; color: var(--navy); text-decoration: none; }
.nav a:hover { color: var(--aegean); }
.nav a[aria-current="page"] { color: var(--aegean); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .btn { margin-left: 8px; color: var(--white); padding: 0 22px; min-height: 46px; }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 64px; }
.hero-text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.01em; }
.hero p { max-width: 34em; font-size: 20px; line-height: 1.65; color: var(--text-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { flex: 1 1 360px; position: relative; display: flex; justify-content: center; }
.arch { width: 100%; max-width: 440px; height: 520px; border-radius: 220px 220px 16px 16px; background: var(--mist); border: 1px solid #c9d6e4; overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seal { position: absolute; left: 0; bottom: -24px; width: 150px; height: 150px; background: var(--white); border-radius: 50%; padding: 10px; border: 1px solid #c9d6e4; }
.meander { display: block; width: 100%; height: 28px; }

/* Generic blocks */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split > :first-child { flex: 1 1 300px; }
.split > :last-child { flex: 2 1 520px; max-width: 680px; }
.section h2 { font-size: clamp(30px, 3.5vw, 38px); }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; margin-top: 48px; }
.col { border-top: 3px solid var(--aegean); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.col h3 { font-size: 24px; }
.col p { font-size: 17px; color: var(--text-soft); }

/* Event rows (home) */
.event-row { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.event-row:hover h3 { color: var(--aegean); }
.date-block { width: 96px; display: flex; flex-direction: column; align-items: center; font-family: var(--font-head); line-height: 1.1; }
.date-block .d { font-size: 48px; font-weight: 500; color: var(--aegean); }
.date-block .m { font-size: 16px; color: var(--olive); }
.event-row .info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.event-row h3 { font-size: 24px; }
.event-row .meta { font-size: 16px; color: var(--text-muted); }
.pill { padding: 10px 22px; border: 2px solid var(--aegean); border-radius: 999px; font-family: var(--font-head); font-size: 16px; font-weight: 500; color: var(--aegean); }
.empty { padding: 32px; border: 1px dashed var(--line-strong); border-radius: 16px; color: var(--text-soft); text-align: center; }

/* Posts */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.post { background: var(--white); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.post-head { padding: 16px 18px; display: flex; align-items: center; gap: 12px; font-family: var(--font-head); line-height: 1.3; }
.post-head img { width: 40px; height: 40px; }
.post-head strong { font-size: 15px; font-weight: 500; display: block; }
.post-head span { font-size: 13px; color: var(--text-muted); }
.post-img { height: 210px; background: var(--mist-deep); }
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.post-body p { font-size: 16px; line-height: 1.6; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-body a { font-family: var(--font-head); font-size: 15px; font-weight: 500; padding: 6px 0; }
.fb-embed { display: flex; justify-content: center; }
.fb-embed iframe { border: none; border-radius: 16px; background: var(--white); max-width: 100%; }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.partner { height: 110px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 16px; color: var(--text-muted); font-family: var(--font-head); font-size: 15px; text-align: center; }
.partner img { max-height: 70px; object-fit: contain; }

/* Get involved */
.involve { display: flex; flex-wrap: wrap; gap: 48px; }
.involve > div { flex: 1 1 400px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.involve h2 { color: var(--white); }
.involve p { max-width: 30em; color: #e3ecf6; }
.involve > div + div { border-left: 1px solid #5b80ad; padding-left: 48px; }
@media (max-width: 900px) { .involve > div + div { border-left: none; padding-left: 0; border-top: 1px solid #5b80ad; padding-top: 40px; } }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; font-family: var(--font-head); }
.form-row { display: flex; flex-wrap: wrap; gap: 18px; }
.form-row > label { flex: 1 1 200px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 500; }
.form input[type=text], .form input[type=email], .form input[type=url], .form input[type=date], .form input[type=time], .form textarea, .form select { min-height: 50px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 14px; font-size: 16px; font-family: inherit; color: var(--navy); background: var(--white); }
.form textarea { padding: 12px 14px; min-height: 120px; }
.form .check { flex-direction: row; align-items: center; gap: 12px; min-height: 44px; font-weight: 400; }
.form .check input { width: 20px; height: 20px; accent-color: var(--aegean); }
.hp { position: absolute; left: -9999px; }
.status { font-size: 15px; min-height: 1.5em; }
.status.ok { color: #2f6b2a; }
.status.err { color: #9a2a2a; }

/* Footer */
.site-footer { background: var(--navy); color: var(--white); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; font-family: var(--font-head); }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand img { width: 72px; height: 72px; }
.foot-brand div { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #c9d6e4; line-height: 1.4; }
.foot-brand strong { font-size: 16px; font-weight: 400; color: var(--white); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; }
.foot-nav a { color: var(--white); padding: 10px; }
.meander--foot { height: 20px; opacity: 0.5; }

/* Page intro */
.intro { background: var(--mist); }
.intro .wrap { padding-top: 72px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.intro h1 { font-size: clamp(40px, 5vw, 52px); }
.toggle { display: flex; background: var(--white); border: 1px solid #c9d6e4; border-radius: 999px; padding: 4px; font-family: var(--font-head); }
.toggle button { min-height: 44px; padding: 0 22px; border: none; border-radius: 999px; background: transparent; color: var(--aegean); font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--aegean); color: var(--white); }

/* Event cards (events page) */
.event-card { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--navy); background: var(--white); }
.event-card:hover { border-color: var(--line-strong); }
.event-card .img { flex: 0 0 240px; min-height: 180px; background: var(--mist-deep); }
.event-card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card .body { flex: 1 1 320px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.event-card .date-block { width: 72px; }
.event-card .date-block .d { font-size: 44px; }
.event-card .info { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; }
.event-card h3 { font-size: 24px; }
.event-card .meta { font-size: 16px; color: var(--text-muted); }
.event-card .sum { font-size: 16px; line-height: 1.6; color: var(--text-soft); }
@media (max-width: 640px) { .event-card .img { flex-basis: 100%; } }
.past-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.past-row .date-block { width: 72px; color: var(--text-muted); }
.past-row .date-block .d { font-size: 30px; color: var(--text-muted); }
.past-row .date-block .m { font-size: 14px; color: var(--text-muted); }
.past-row .t { flex: 1 1 240px; font-family: var(--font-head); font-size: 20px; font-weight: 500; }
.past-row .l { font-family: var(--font-head); font-size: 15px; font-weight: 500; color: var(--aegean); }

/* Calendar */
.cal-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.cal-nav h2 { margin: 0 10px; font-size: 28px; min-width: 9em; }
.round { width: 44px; height: 44px; border: 1px solid #c9d6e4; border-radius: 50%; background: var(--white); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cal-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; }
.cal { min-width: 600px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal .wd { padding: 12px; background: var(--mist); font-family: var(--font-head); font-size: 14px; font-weight: 500; color: var(--text-soft); }
.cal .cell { min-height: 104px; padding: 10px; border-top: 1px solid #e3eaf2; border-right: 1px solid #e3eaf2; display: flex; flex-direction: column; gap: 6px; }
.cal .cell.out { background: #f6f8fb; }
.cal .cell .n { font-family: var(--font-head); font-size: 14px; color: var(--text-muted); }
.cal .cell.today .n { color: var(--aegean); font-weight: 600; }
.chip { padding: 6px 8px; border-radius: 8px; background: var(--aegean); color: var(--white); font-family: var(--font-head); font-size: 13px; text-decoration: none; line-height: 1.3; }
.chip.past { background: var(--line); color: var(--navy); }
.legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; font-family: var(--font-head); font-size: 14px; color: var(--text-soft); }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--aegean); }
.legend i.past { background: var(--line); }

/* Single event */
.event-hero .wrap { padding-top: 24px; padding-bottom: 64px; }
.back { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; margin-bottom: 32px; font-family: var(--font-head); font-size: 15px; font-weight: 500; text-decoration: none; }
.event-hero .row { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.event-hero .txt { flex: 1 1 440px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.event-hero h1 { font-size: clamp(38px, 5vw, 54px); line-height: 1.08; }
.badge { padding: 6px 14px; background: var(--white); border-radius: 999px; font-family: var(--font-head); font-size: 14px; color: var(--olive); }
.when { font-family: var(--font-head); font-size: 20px; color: var(--aegean); }
.event-hero .arch { flex: 1 1 360px; height: 400px; border-radius: 200px 200px 16px 16px; background: var(--mist-deep); border: none; }
.event-main { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding: 72px 0 96px; }
.event-main .content { flex: 999 1 520px; min-width: 0; max-width: 700px; display: flex; flex-direction: column; gap: 48px; }
.event-main h2 { font-size: 30px; }
.description { white-space: pre-line; font-size: 19px; line-height: 1.75; color: var(--text-soft); }
.map { width: 100%; height: 300px; border: 0; border-radius: 16px; background: var(--mist); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.gallery a, .gallery div { display: block; height: 150px; border-radius: 12px; overflow: hidden; background: var(--mist); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.booking { flex: 1 1 320px; position: sticky; top: 24px; border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 22px; font-family: var(--font-head); }
.booking dl { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.booking dt { font-size: 14px; color: var(--text-muted); }
.booking dd { margin: 4px 0 0; font-size: 18px; }
.booking .sep { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a, .share button { min-height: 44px; padding: 0 16px; border: 1px solid #c9d6e4; border-radius: 999px; background: var(--white); color: var(--navy); font-family: inherit; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.mini { background: var(--white); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--navy); }
.mini .img { height: 160px; background: var(--mist-deep); }
.mini .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini .b { padding: 22px; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-head); }
.mini .b span { font-size: 15px; color: var(--olive); }
.mini .b strong { font-size: 21px; font-weight: 500; }
