/*
Theme Name: Kodaira Boccia Association
Theme URI: https://kodaira-boccia.local/
Author: Kodaira Boccia Association
Description: 小平市ボッチャ協会のためのアクセシブルなオリジナルテーマ
Version: 1.1.0
Text Domain: kodaira-boccia
*/

:root {
  --color-primary: #d83c72;
  --color-primary-dark: #a92858;
  --color-red: #e4545f;
  --color-blue: #2f6fc0;
  --color-blue-dark: #1d4f91;
  --color-green: #3f9872;
  --color-yellow: #e9b949;
  --color-ink: #172a3a;
  --color-muted: #5b6872;
  --color-bg: #f4f8fb;
  --color-surface: #fff;
  --color-surface-soft: #eef5f9;
  --color-surface-warm: #fbf8f6;
  --color-border: #d9e2e8;
  --color-focus: #1559a6;
  --font-sans: "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, -apple-system, BlinkMacSystemFont, sans-serif;
  --page-max: 74rem;
  --content-measure: 48rem;
  --radius-sm: 0.625rem;
  --radius-md: 1rem;
  --radius-lg: 1.75rem;
  --radius-pill: 999px;
  --shadow-sm: 0 8px 24px rgba(23, 42, 58, 0.07);
  --shadow-card: 0 16px 42px rgba(23, 42, 58, 0.09);
  --shadow-lg: 0 26px 70px rgba(23, 42, 58, 0.17);
  color-scheme: light;
  scrollbar-color: #9caab4 #eaf0f4;
  scrollbar-width: auto;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
body::-webkit-scrollbar, *::-webkit-scrollbar { width: 12px; height: 12px; }
body::-webkit-scrollbar-track, *::-webkit-scrollbar-track { background: #eaf0f4; }
body::-webkit-scrollbar-thumb, *::-webkit-scrollbar-thumb { background: #9caab4; border: 3px solid #eaf0f4; border-radius: 999px; }
body::-webkit-scrollbar-thumb:hover, *::-webkit-scrollbar-thumb:hover { background: #778894; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}
::selection { background: #ffd7e5; color: var(--color-ink); }

.shell { width: min(calc(100% - 3rem), var(--page-max)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 9999;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius-sm);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(217, 226, 232, 0.95);
  box-shadow: 0 4px 18px rgba(23, 42, 58, 0.035);
  backdrop-filter: blur(14px);
}
.site-header__inner { min-height: 5.4rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: block; width: min(22.5rem, 42vw); }
.brand img { width: 100%; }
.site-nav { display: flex; align-items: center; gap: 0.4rem; }
.site-nav a {
  position: relative;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.site-nav a:hover { color: var(--color-primary-dark); background: #fff0f5; }
.site-nav a:active { transform: translateY(1px); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.25rem;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
}
.site-nav .site-nav__cta { margin-left: 0.4rem; background: var(--color-ink); color: #fff; padding-inline: 1.25rem; }
.site-nav .site-nav__cta:hover { background: var(--color-primary-dark); color: #fff; }
.site-nav .site-nav__cta[aria-current="page"]::after { background: #fff; }
.nav-toggle { display: none; min-width: 3rem; min-height: 3rem; border: 0; background: transparent; color: var(--color-ink); cursor: pointer; }
.nav-toggle__label { font-weight: 800; }
.nav-toggle__bars { width: 1.5rem; height: 0.875rem; margin-left: 0.65rem; display: inline-block; border-block: 2px solid currentColor; position: relative; }
.nav-toggle__bars::after { content: ""; position: absolute; inset: 50% 0 auto; border-top: 2px solid currentColor; transform: translateY(-50%); }

.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 7vw, 7rem) 0 0; background: linear-gradient(132deg, #f9fbfd 0%, #f9fbfd 58%, #eef6fb 58%); }
.hero::before {
  content: "";
  position: absolute;
  width: 34rem;
  aspect-ratio: 1;
  left: -20rem;
  top: -10rem;
  border: 5rem solid rgba(216, 60, 114, 0.07);
  border-radius: 50%;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.hero__copy { position: relative; z-index: 2; padding-bottom: 5rem; }
.eyebrow, .section-kicker { margin: 0 0 1rem; color: var(--color-blue-dark); font-size: 0.82rem; font-weight: 900; letter-spacing: 0.12em; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.9rem; background: #e9f1fc; border-radius: var(--radius-pill); }
.eyebrow span { width: 0.75rem; aspect-ratio: 1; background: #fff; border: 3px solid var(--color-blue); border-radius: 50%; }
.hero h1, .page-hero h1 { margin: 0; font-size: clamp(2.55rem, 5.6vw, 5.3rem); line-height: 1.12; letter-spacing: -0.045em; }
.hero h1 em, .page-hero h1 em { color: var(--color-primary); font-style: normal; }
.hero__lead { max-width: 35rem; margin: 1.7rem 0 0; color: #334a5a; font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.9; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.1rem; }
.button {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.45rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button--primary { background: var(--color-primary); color: #fff; box-shadow: 0 10px 22px rgba(216, 60, 114, 0.25); }
.button--primary:hover { background: var(--color-primary-dark); box-shadow: 0 14px 30px rgba(216, 60, 114, 0.32); }
.button--outline { border-color: var(--color-ink); background: #fff; color: var(--color-ink); }
.button--outline:hover { background: var(--color-ink); color: #fff; }
.button--light { background: #fff; color: var(--color-primary-dark); box-shadow: 0 10px 30px rgba(74, 20, 42, 0.2); }
.button--light:hover { background: #fff7fa; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 2.3rem 0 0; padding: 0; list-style: none; }
.hero__facts li { min-width: 5rem; display: flex; flex-direction: column; }
.hero__facts strong { font-size: 1.45rem; line-height: 1.1; }
.hero__facts span { margin-top: 0.35rem; color: var(--color-muted); font-size: 0.82rem; }
.hero__visual { position: relative; align-self: stretch; min-height: 38rem; display: flex; align-items: center; }
.hero__photo-wrap { position: relative; z-index: 2; width: 108%; aspect-ratio: 1.18; overflow: hidden; border-radius: 42% 1.75rem 1.75rem 42%; box-shadow: var(--shadow-lg); }
.hero__photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
.hero__photo-wrap::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); border-radius: inherit; }
.hero__ball { position: absolute; z-index: 3; border-radius: 50%; box-shadow: 0 14px 25px rgba(23,42,58,.22), inset -8px -12px 18px rgba(0,0,0,.12), inset 7px 8px 16px rgba(255,255,255,.25); }
.hero__ball::before, .hero__ball::after { content: ""; position: absolute; inset: 18%; border: 1px solid rgba(255,255,255,.34); border-radius: 46% 54% 48% 52%; transform: rotate(35deg); }
.hero__ball::after { transform: rotate(-35deg); }
.hero__ball--red { width: 6rem; aspect-ratio: 1; right: 2%; top: 8%; background: var(--color-red); }
.hero__ball--blue { width: 4.7rem; aspect-ratio: 1; left: -4%; bottom: 10%; background: var(--color-blue); }
.hero__label { position: absolute; z-index: 4; right: 3%; bottom: 2.5rem; padding: 0.75rem 1.1rem; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transform: rotate(-2deg); }
.hero__label span { display: block; color: var(--color-muted); font-size: 0.7rem; font-weight: 700; }
.hero__label strong { display: block; color: var(--color-blue-dark); font-size: 1.35rem; letter-spacing: .08em; }
.court-line { position: relative; height: 2.25rem; margin-top: 1.5rem; background: #fff; border-top: 4px solid #fff; }
.court-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; background: linear-gradient(90deg, var(--color-red) 0 27%, var(--color-yellow) 27% 50%, var(--color-green) 50% 73%, var(--color-blue) 73% 100%); transform: translateY(-50%); }
.court-line i { position: absolute; z-index: 2; top: 50%; width: 1rem; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 2px 5px rgba(0,0,0,.16); }
.court-line i:nth-child(1) { left: 44%; background: var(--color-red); }
.court-line i:nth-child(2) { left: 50%; width: .85rem; background: #fff; border: 1px solid #b8c3cb; }
.court-line i:nth-child(3) { left: 56%; background: var(--color-blue); }

.section { padding-block: clamp(4rem, 7vw, 6.75rem); }
.section-heading h2, .president-card h2, .contact-band h2, .contact-details h2, .contact-form-card h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.25; letter-spacing: -0.035em; }
.section-heading h1,
.section-heading h2,
.president-card h2,
.contact-form-card h1 {
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: keep-all;
}
.section-heading:not(.section-heading--row) > h1::after,
.section-heading:not(.section-heading--row) > h2::after {
  content: "";
  display: block;
  width: 4.75rem;
  height: 0.32rem;
  margin-top: 1rem;
  background: linear-gradient(90deg, var(--color-red) 0 44%, var(--color-blue) 44% 100%);
  border-radius: var(--radius-pill);
}
.clubs-preview .section-heading > h2::after,
.home-notice .section-heading > h2::after,
.boccia-intro .section-heading > h2::after,
.activity-gallery .section-heading > h2::after,
.club-directory .section-heading > h2::after,
.club-map-section .section-heading > h2::after,
.facebook-section .section-heading > h2::after {
  margin-inline: auto;
}
.section-heading--row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.7fr); align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading--row > p { margin: 0; color: var(--color-muted); }
.section-kicker { color: var(--color-primary-dark); }
.event-notice__title-phrase { white-space: nowrap; }
.about-grid { display: block; }
.prose { max-width: var(--content-measure); }
.prose p { margin: 0 0 1.25rem; }
.prose p:last-child { margin-bottom: 0; }
.prose--large { font-size: clamp(1.02rem, 1.5vw, 1.14rem); }
.mission-grid { margin-top: 4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mission-card { position: relative; overflow: hidden; min-height: 15rem; padding: 2rem; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.mission-card::after { content: ""; position: absolute; width: 8rem; aspect-ratio: 1; right: -3rem; bottom: -3rem; border: 1.5rem solid currentColor; border-radius: 50%; opacity: .09; }
.mission-card span { display: inline-flex; width: 2.35rem; aspect-ratio: 1; align-items: center; justify-content: center; border: 2px solid currentColor; border-radius: 50%; font-weight: 900; }
.mission-card h3 { margin: 1.6rem 0 .7rem; color: var(--color-ink); font-size: 1.55rem; }
.mission-card p { margin: 0; color: var(--color-muted); }
.mission-card--red { color: var(--color-red); }
.mission-card--blue { color: var(--color-blue); }
.mission-card--green { color: var(--color-green); }

.president-section { background: var(--color-surface-soft); }
.president-card { display: grid; grid-template-columns: minmax(15rem, .65fr) minmax(0, 1.35fr); overflow: hidden; background: #f3f7fb; border: 1px solid #e2eaf0; border-radius: var(--radius-lg); }
.president-card__mark { position: relative; min-height: 32rem; background: linear-gradient(155deg, #2f6fc0, #153967); overflow: hidden; }
.president-card__mark::before, .president-card__mark::after { content: ""; position: absolute; border-radius: 50%; border: 4rem solid rgba(255,255,255,.08); }
.president-card__mark::before { width: 21rem; aspect-ratio: 1; left: -10rem; top: -9rem; }
.president-card__mark::after { width: 15rem; aspect-ratio: 1; right: -7rem; bottom: -7rem; }
.president-card__mark span { position: absolute; left: 50%; top: 50%; width: 8rem; aspect-ratio: 1; background: #fff; border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 0 1.6rem var(--color-red), 0 0 0 3.2rem rgba(255,255,255,.92); }
.president-card__body { padding: clamp(2.5rem, 6vw, 5rem); }
.president-card__body .prose { margin-top: 1.7rem; color: #334a5a; }
.president-card__signature { margin: 2rem 0 0; text-align: right; }
.president-card__signature span { display: block; color: var(--color-muted); font-size: .9rem; }
.president-card__signature strong { font-size: 1.35rem; }

.clubs-preview { overflow-x: hidden; background: var(--color-surface-warm); }
.club-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.club-card { --club: var(--color-primary); position: relative; overflow: hidden; min-height: 18rem; padding: 1.5rem; background: #fff; border: 1px solid var(--color-border); border-top: .38rem solid var(--club); border-radius: .35rem .35rem var(--radius-md) var(--radius-md); box-shadow: var(--shadow-sm); }
.club-card::after { content: ""; position: absolute; right: -3rem; bottom: -3rem; width: 9rem; aspect-ratio: 1; background: color-mix(in srgb, var(--club) 10%, transparent); border-radius: 50%; pointer-events: none; }
.club-card--1 { --club: #d84b67; }
.club-card--2 { --club: #dc8c2a; }
.club-card--3 { --club: #5c9d47; }
.club-card--4 { --club: #39919b; }
.club-card--5 { --club: #7d4aa5; }
.club-card--6 { --club: #c94c7b; }
.club-card__top { display: grid; grid-template-columns: 2.65rem minmax(0,1fr); align-items: center; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.club-card__top span { display: inline-flex; width: 2.65rem; aspect-ratio: 1; align-items: center; justify-content: center; background: var(--club); color: #fff; border-radius: 50%; font-size: .9rem; font-weight: 900; }
.club-card h3 { margin: 0; color: var(--club); font-size: 1.16rem; line-height: 1.45; }
.club-directory .club-card h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.32rem);
  line-height: 1.4;
  line-break: strict;
  overflow-wrap: anywhere;
  text-wrap: balance;
  word-break: normal;
}

@supports (word-break: auto-phrase) {
  .club-directory .club-card h3 {
    word-break: auto-phrase;
  }
}
.club-card dl { position: relative; z-index: 1; margin: 1rem 0 0; }
.club-card dl div { display: grid; grid-template-columns: 5rem 1fr; gap: .75rem; margin-top: 0; padding-block: .75rem; align-items: start; border-bottom: 1px solid #edf1f4; }
.club-card dl div:last-child { border-bottom: 0; }
.club-card dt { display: inline-flex; align-items: center; justify-content: center; padding: .18rem .35rem; color: var(--club); background: color-mix(in srgb, var(--club) 11%, #fff); border-radius: var(--radius-pill); font-size: .72rem; font-weight: 900; white-space: nowrap; }
.club-card dd { margin: 0; font-size: .91rem; font-weight: 700; line-height: 1.55; }
.section-action { margin: 2.5rem 0 0; text-align: center; }

.contact-band { padding-block: clamp(3.5rem, 7vw, 6rem); background: linear-gradient(135deg, #bd2b60, var(--color-primary) 52%, #e96392); color: #fff; }
.contact-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.contact-band .section-kicker { color: #ffe7ef; }
.contact-band h2 { margin-bottom: .8rem; }
.contact-band p { margin: 0; max-width: 45rem; }
.contact-band--compact { padding-block: 4rem; }

.page-hero { position: relative; overflow: hidden; padding-top: clamp(3rem, 6vw, 6rem); background: linear-gradient(135deg, #f7fbff, #eef6fb); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(2.5rem,6vw,5rem); align-items: center; padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); }
.page-hero p:not(.eyebrow) { max-width: 36rem; margin: 1.5rem 0 2rem; color: #405563; font-size: 1.1rem; }
.page-hero__image { position: relative; aspect-ratio: 1.25; border-radius: 3rem 1rem 3rem 1rem; overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(1.5deg); }
.page-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.club-directory { background: #f3f7fa; }

.club-directory__count {
  margin: -1.5rem 0 2rem;
  color: var(--color-muted);
  font-weight: 800;
  text-align: center;
}

.club-filter {
  display: grid;
  grid-template-columns: minmax(16rem, 23rem) minmax(0, 1fr);
  align-items: end;
  gap: 1.5rem;
  margin: 0 0 2.5rem;
  padding: clamp(1.15rem, 3vw, 1.5rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.club-filter__field {
  display: grid;
  gap: 0.45rem;
}

.club-filter__field label {
  font-weight: 800;
}

.club-filter__field select {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.65rem 0.8rem;
  color: var(--color-ink);
  background: #fff;
  border: 2px solid #9dabb5;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.club-filter__field select:hover {
  border-color: var(--color-primary-dark);
}

.club-filter__status {
  margin: 0 0 0.75rem;
  color: var(--color-muted);
  font-weight: 700;
  text-align: right;
  font-size: 0.94rem;
}

.club-map-section {
  background: #fff;
}

.club-map-section .section-heading {
  margin-bottom: 2.5rem;
  text-align: center;
}

.club-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.65fr);
  min-height: 34rem;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.club-map {
  position: relative;
  min-height: 34rem;
  background: #e8eef2;
  z-index: 0;
}

.club-map__message {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(80%, 28rem);
  margin: 0;
  color: var(--color-muted);
  font-weight: 700;
  text-align: center;
  transform: translate(-50%, -50%);
}

.club-map-list {
  max-height: 34rem;
  padding: 1.5rem;
  overflow-y: auto;
  border-left: 1px solid var(--color-border);
}

.club-map-list h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.club-map-list ol {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.club-map-list button {
  width: 100%;
  min-height: 3.5rem;
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem;
  color: var(--color-ink);
  background: #f7fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.club-map-list button:hover {
  background: #fff1f6;
  border-color: var(--color-primary);
}

.club-map-list button:active {
  transform: translateY(1px);
}

.club-map-list__number,
.club-map-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--color-primary-dark);
  border-radius: 50%;
  font-weight: 900;
}

.club-map-list__number {
  width: 2.35rem;
  aspect-ratio: 1;
  font-size: 0.78rem;
}

.club-map-list button strong,
.club-map-list button small {
  display: block;
}

.club-map-list button strong {
  line-height: 1.45;
}

.club-map-list button small {
  margin-top: 0.15rem;
  color: var(--color-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.club-map-marker-wrap {
  background: transparent;
  border: 0;
}

.club-map-marker {
  width: 2.375rem;
  height: 2.375rem;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(23, 42, 58, 0.36);
  font-size: 0.76rem;
}

.leaflet-container {
  font-family: var(--font-sans);
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm);
}

.club-map-popup strong,
.club-map-popup span {
  display: block;
}

.club-map-popup strong {
  font-size: 0.95rem;
}

.club-map-popup span {
  margin-top: 0.25rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.page-title { padding-block: clamp(3.5rem, 7vw, 6rem); background: linear-gradient(135deg, #f8f3f5 0 55%, #edf5fb 55%); }
.page-title__inner { display: grid; grid-template-columns: minmax(0,.75fr) minmax(18rem,1fr); align-items: end; gap: 3rem; }
.page-title h1 { margin: 0; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.2; }
.page-title__inner > p { margin: 0; color: var(--color-muted); font-size: 1.08rem; }
.contact-section { background: linear-gradient(180deg, #f5f9fc 0%, #fbf8f6 100%); }
.contact-layout { display: grid; grid-template-columns: minmax(16rem,.6fr) minmax(0,1.4fr); gap: clamp(2rem,7vw,6rem); align-items: start; }
.contact-details { position: sticky; top: 8rem; }
.contact-details h2 { font-size: 2rem; }
.contact-details > p { color: var(--color-muted); }
.contact-details dl { margin: 2rem 0; }
.contact-details dl div { padding-block: 1rem; border-top: 1px solid #cbc9c2; }
.contact-details dl div:last-child { border-bottom: 1px solid #cbc9c2; }
.contact-details dt { color: var(--color-muted); font-size: .8rem; font-weight: 800; }
.contact-details dd { margin: .35rem 0 0; font-size: 1.05rem; font-weight: 800; }
.contact-details__note { padding: 1rem; background: #fff; border-left: 4px solid var(--color-yellow); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .9rem; }
.contact-form-card { position: relative; overflow: hidden; padding: clamp(1.5rem, 4vw, 3rem); background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.contact-form-card::before { content: ""; position: absolute; inset: 0 0 auto; height: .38rem; background: linear-gradient(90deg, var(--color-red), var(--color-primary), var(--color-blue)); }
.contact-form-card h2 { font-size: 2rem; }
.contact-form { margin-top: 2rem; }
.form-field { margin-bottom: 1.5rem; }
.form-field label { display: block; margin-bottom: .45rem; font-weight: 800; }
.required, .optional { display: inline-flex; margin-left: .45rem; padding: .1rem .5rem; border-radius: var(--radius-pill); font-size: .7rem; line-height: 1.5; vertical-align: .08em; }
.required { background: #ffe1eb; color: #a32150; }
.optional { background: #edf1f4; color: #5a6871; }
.form-field input, .form-field textarea { width: 100%; min-height: 3.4rem; padding: .85rem 1rem; color: var(--color-ink); background: #fff; border: 2px solid #aebbc4; border-radius: var(--radius-sm); transition: border 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.form-field textarea { min-height: 10rem; resize: none; line-height: 1.7; }
.form-field input:hover, .form-field textarea:hover { border-color: #738894; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--color-blue); box-shadow: 0 0 0 3px rgba(47,111,192,.16); }
.form-field [aria-invalid="true"] { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180,35,24,.12); }
.field-error { min-height: 1.5rem; margin: .35rem 0 0; color: #a11610; font-size: .85rem; font-weight: 700; }
.field-hint { margin: .35rem 0 0; color: var(--color-muted); font-size: .8rem; }
.form-submit { width: 100%; min-height: 3.6rem; border: 0; }
.form-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.form-notice { margin: 1.5rem 0; padding: 1rem 1.15rem; border-radius: var(--radius-sm); }
.form-notice--success { background: #e8f6ef; border: 1px solid #80c5a2; color: #205d40; }
.form-notice--error { background: #fff0ef; border: 1px solid #e2a19b; color: #8b1e18; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-not-valid-tip { display: block; margin-top: .35rem; color: #a11610; font-size: .85rem; font-weight: 700; }
.wpcf7 form .wpcf7-response-output { margin: 1.5rem 0 0; padding: 1rem 1.15rem; border-radius: var(--radius-sm); font-weight: 700; }
.wpcf7 form.sent .wpcf7-response-output { background: #e8f6ef; border-color: #80c5a2; color: #205d40; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output { background: #fff0ef; border-color: #e2a19b; color: #8b1e18; }
.wpcf7-spinner { margin: .75rem auto 0; }

.site-footer { padding-top: 4.5rem; background: #172a3a; color: #eef2f4; }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1fr .65fr; gap: 3rem; }
.site-footer__name { margin: 0; font-size: 1.25rem; font-weight: 900; }
.site-footer__tagline { margin: .5rem 0 0; color: #c7d1d7; }
.site-footer__heading { margin: 0 0 .85rem; font-weight: 900; }
.site-footer a { color: #fff; }
.site-footer__nav { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer__nav a { margin-bottom: .35rem; }
.site-footer__bottom { min-height: 6rem; margin-top: 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.3); color: #cbd4d9; font-size: .85rem; }
.court-mark { display: flex; align-items: center; gap: .35rem; }
.court-mark i { width: 1rem; aspect-ratio: 1; border-radius: 50%; }
.court-mark i:nth-child(1) { background: var(--color-red); }
.court-mark i:nth-child(2) { width: .8rem; background: #fff; }
.court-mark i:nth-child(3) { background: var(--color-blue); }

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { position: absolute; top: calc(100% + 1px); left: 1rem; right: 1rem; display: none; flex-direction: column; align-items: stretch; gap: .25rem; padding: 1rem; background: #fff; border: 1px solid var(--color-border); border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: var(--shadow-lg); }
  .site-nav.is-open { display: flex; }
  .site-nav a { justify-content: flex-start; }
  .site-nav .site-nav__cta { margin: .5rem 0 0; justify-content: center; }
}

@media (max-width: 960px) {
  .shell { width: min(calc(100% - 2rem), var(--page-max)); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { position: absolute; top: calc(100% + 1px); left: 1rem; right: 1rem; display: none; flex-direction: column; align-items: stretch; gap: .25rem; padding: 1rem; background: #fff; border: 1px solid var(--color-border); border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: var(--shadow-lg); }
  .site-nav.is-open { display: flex; }
  .site-nav a { justify-content: flex-start; }
  .site-nav .site-nav__cta { margin: .5rem 0 0; justify-content: center; }
  .hero__grid, .page-hero__grid { grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 0; }
  .hero__visual { min-height: 28rem; }
  .hero__photo-wrap { width: 100%; border-radius: 2rem; aspect-ratio: 1.55; }
  .hero__ball--red { top: -1.5rem; right: 1rem; }
  .hero__ball--blue { left: 1rem; bottom: 1rem; }
  .president-card { grid-template-columns: 1fr; }
  .president-card__mark { min-height: 18rem; }
  .mission-grid, .club-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-details { position: static; }
  .club-map-layout { grid-template-columns: 1fr; }
  .club-map-list { max-height: none; border-top: 1px solid var(--color-border); border-left: 0; }
  .club-map-list ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .site-header__inner { min-height: 4.75rem; }
  .brand { width: min(16rem, 65vw); }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nav-toggle__bars { margin-left: 0; }
  .hero { padding-top: 2.75rem; }
  .hero h1, .page-hero h1 { font-size: clamp(2.35rem, 12vw, 3.7rem); }
  .hero__actions { align-items: stretch; flex-direction: column; }
  .hero__actions .button { width: 100%; }
  .hero__facts { justify-content: space-between; gap: .8rem; }
  .hero__facts li { min-width: 4.25rem; }
  .hero__visual { min-height: 21rem; }
  .hero__photo-wrap { aspect-ratio: 1.2; }
  .hero__label { right: .5rem; bottom: .75rem; }
  .hero__ball--red { width: 4.25rem; }
  .hero__ball--blue { width: 3.5rem; }
  .section-heading--row, .page-title__inner { grid-template-columns: 1fr; align-items: start; gap: 1.2rem; }
  .mission-grid, .club-grid { grid-template-columns: 1fr; }
  .club-filter { grid-template-columns: 1fr; gap: 0.75rem; }
  .club-filter__status { margin: 0; text-align: left; }
  .president-card__body { padding: 2rem 1.35rem; }
  .club-card { padding: 1.2rem; }
  .contact-band__inner { align-items: stretch; flex-direction: column; }
  .contact-band .button { width: 100%; }
  .club-map-layout { border-radius: var(--radius-md); }
  .club-map { min-height: 25rem; }
  .club-map-list { padding: 1rem; }
  .club-map-list ol { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Accessibility: motion suppression must override component transitions. */
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (forced-colors: active) {
  * { scrollbar-color: auto; }
  .button, .club-card, .mission-card, .contact-form-card { border: 1px solid ButtonText; }
}

/* Source-site faithful presentation. */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-slider,
.hero-slider__viewport,
.hero-slide {
  width: 100%;
  min-height: calc(100svh - 5.75rem);
}

.hero-slider {
  position: relative;
  overflow: hidden;
  background: #d8e2e8;
}

.hero-slider__viewport {
  position: relative;
}

.hero-slide {
	position: absolute;
	inset: 0;
  margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.6s ease-in-out, visibility 0s linear 1.6s;
}

.hero-slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide__backdrop {
  display: none;
}

.hero-slide--tournament img {
	object-position: 50% 62%;
}

.hero-slide--festival img {
  object-position: 50% 60%;
}

.hero-slider__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  place-items: center;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 42, 58, 0.22);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(23, 42, 58, 0.2);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 180ms ease, transform 180ms ease;
}

.hero-slider__arrow span {
  display: block;
  margin-top: -0.12em;
  font-size: 1.75rem;
  line-height: 1;
}

.hero-slider__arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
}

.hero-slider__arrow:active {
  transform: translateY(-50%);
}

.hero-slider__arrow--previous {
  left: clamp(0.75rem, 2vw, 1.75rem);
}

.hero-slider__arrow--next {
  right: clamp(0.75rem, 2vw, 1.75rem);
}

.home-notice {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--color-surface-soft);
}

.home-notice__heading,
.boccia-intro__heading {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}

.home-notice__poster {
  width: min(100%, 28rem);
  margin: 0 auto;
  padding: 0.4rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.home-notice__poster img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-md) - 0.35rem);
}

.boccia-intro {
  background: var(--color-surface);
}

.boccia-intro__body {
  margin-inline: auto;
  color: #334a5a;
  text-align: left;
}

.boccia-intro__body p:first-child {
  color: var(--color-ink);
  font-weight: 800;
}

.event-notice {
  background: var(--color-surface-soft);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.event-notice__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.5rem 1.5rem;
  max-width: 66rem;
  margin: 0 auto 1.5rem;
}

.event-notice__heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.event-notice__heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.event-notice__heading > p:last-child {
  margin: 0 0 0.35rem;
  color: var(--color-primary-dark);
  font-size: 1rem;
  font-weight: 800;
}

.event-notice__card {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
  max-width: 66rem;
  margin-inline: auto;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #d5e1e8;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.event-notice__poster {
  margin: 0;
  overflow: hidden;
  background: #0c3f91;
  border-radius: calc(var(--radius-md) - 0.25rem);
}

.event-notice__poster img {
  display: block;
  width: 100%;
  height: auto;
}

.event-notice__summary {
  min-width: 0;
  padding: 0.5rem 1rem 0.5rem 0;
}

.event-notice__label {
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.15rem 0.75rem;
  color: var(--color-blue-dark);
  background: #e9f1fc;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 900;
}

.event-notice__excerpt {
  margin: 0;
  color: #334a5a;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  font-weight: 700;
  line-height: 1.9;
}

.event-notice__edit,
.single-news__edit,
.page-admin-edit {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
}

.event-notice__edit a,
.single-news__edit a,
.page-admin-edit a {
  color: var(--color-blue-dark);
  font-weight: 800;
}

.page-admin-edit--inverse a {
  color: #fff;
}

.news-hero__actions {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
}

.contact-form-card__intro {
  width: min(100%, 40rem);
  margin: 1.5rem auto 2rem;
}

@media (max-width: 720px) {
  .news-hero__actions {
    width: 100%;
  }
}

.event-highlights {
  margin: 0;
}

.event-highlights > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.event-highlights > div:first-child {
  padding-top: 0;
}

.event-highlights dt,
.event-facts dt {
  color: var(--color-blue-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.event-highlights dd,
.event-facts dd {
  margin: 0;
  color: var(--color-ink);
  font-weight: 700;
  line-height: 1.65;
}

.event-notice__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 1.25rem;
}

.event-notice__actions p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.event-notice__more {
  margin-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.event-notice__more summary {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--color-blue-dark);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.event-notice__more summary::-webkit-details-marker {
  display: none;
}

.event-notice__more summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1;
}

.event-notice__more[open] summary::after {
  content: "−";
}

.event-notice__more summary:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.event-notice__more-body {
  padding-top: 0.5rem;
}

.event-facts {
  margin: 0;
}

.event-facts > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.event-facts > div:first-child {
  padding-top: 0;
}

.event-facts small {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.event-qualification {
  margin-top: 1.5rem;
}

.event-qualification {
  padding: 1rem 1.15rem;
  background: #eef4fb;
  border-left: 0.3rem solid var(--color-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.event-qualification h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.event-qualification p {
  margin: 0;
}

.event-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-style: normal;
}

.event-contact strong {
  flex-basis: 100%;
}

.event-contact a {
  color: var(--color-blue-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.section-heading h1,
.section-heading h2,
.president-card h2,
.contact-form-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.section--about {
  background: #fff;
}

.section--about .section-heading {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}

.section--about .section-heading h1 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  white-space: nowrap;
}

.section--about .section-heading h1::after {
  margin-inline: auto;
}

.section--about .prose {
  margin-inline: auto;
  text-align: left;
}

.section--about .prose p:first-child {
  margin-bottom: 1.25rem;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: inherit;
  font-weight: 800;
}

.president-card--text {
  display: block;
  max-width: 74rem;
  padding: clamp(2rem, 4vw, 3.25rem);
  background: #fff;
  border-color: #dce6ec;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.president-card__heading {
  padding: 0 0 1.25rem;
  background: transparent;
  border-right: 0;
  border-bottom: 1px solid #dce6ec;
}

.president-card__heading h2::after {
  content: "";
  display: block;
  width: 4.75rem;
  height: .32rem;
  margin-top: .85rem;
  background: linear-gradient(90deg, var(--color-red) 0 44%, var(--color-blue) 44% 100%);
  border-radius: var(--radius-pill);
}

.president-card__heading::after {
  display: none;
}

.president-card__heading h2 {
  max-width: none;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.president-card--text .president-card__body {
  padding: 1.75rem 0 0;
}

.president-card--text .president-card__message {
  max-width: 64rem;
  margin-top: 0;
  color: #334a5a;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.9;
}

.president-card__message p {
  margin-bottom: 1.15rem;
}

.president-card__message p:last-child {
  margin-top: 1.6rem;
  color: var(--color-ink);
  font-weight: 700;
}

.president-card--text .president-card__signature {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #dce6ec;
}

.clubs-preview .section-heading,
.club-directory .section-heading {
  margin-bottom: 2.5rem;
  text-align: center;
}

.clubs-preview__title-line {
  display: inline;
}

.club-carousel__viewport {
  overflow: hidden;
  padding: 0.35rem;
  margin: -0.35rem;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.club-carousel__viewport:active {
  cursor: grabbing;
}

.club-carousel .club-carousel__track {
  display: flex;
  width: max-content;
  transform: translate3d(0, 0, 0);
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.club-carousel .club-carousel__track.is-resetting {
  transition: none;
}

.club-carousel .club-carousel__track.is-dragging {
  transition: none;
}

.club-carousel__group {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding-right: 1rem;
}

.club-carousel .club-card {
  flex: 0 0 clamp(18rem, 29vw, 23rem);
  width: clamp(18rem, 29vw, 23rem);
}

.facebook-section {
  background: #f7fafc;
}

.activity-gallery {
  overflow: hidden;
  background: #e8f0f5;
}

.activity-gallery__heading {
  position: relative;
  margin-bottom: 2.5rem;
  text-align: center;
}

.activity-gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(13rem, 24vw, 17.5rem);
  gap: 0.55rem;
  padding: 0.55rem;
  background: #fff;
  border: 1px solid rgba(23, 42, 58, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgba(23, 42, 58, 0.13);
}

.activity-gallery__item {
  grid-column: span 2;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #d8e2e8;
  border-radius: var(--radius-md);
}

.activity-gallery__item--lead {
  grid-column: span 4;
  grid-row: span 2;
}

.activity-gallery__item:nth-child(2),
.activity-gallery__item:nth-child(3) {
  grid-column: span 2;
}

@media (min-width: 961px) {
  .activity-gallery__item:nth-child(n + 10) {
    grid-column: span 3;
  }
}

.activity-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-gallery__item--portrait img {
  object-position: 50% 30%;
}

.facebook-embed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.facebook-section__heading {
  width: 100%;
  margin-bottom: 2rem;
  text-align: center;
}

.facebook-embed > iframe {
  display: block;
  width: min(100%, 500px);
  height: 130px;
  border: 0;
}

.facebook-timeline {
  display: grid;
  width: min(100%, 500px);
  gap: 1.5rem;
  margin-top: 1rem;
}

.facebook-post {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.facebook-post iframe {
  display: block;
  width: 100%;
  max-width: 500px;
  border: 0;
}

.facebook-section__action {
  width: 100%;
  margin-top: 2rem;
}

.page-hero--clubs {
  position: relative;
  min-height: min(48rem, calc(100svh - 5.75rem));
  display: grid;
  align-items: center;
  padding: 0;
  isolation: isolate;
  background: #223442;
}

.page-hero__backdrop,
.page-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero__backdrop {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.page-hero__shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 24, 34, 0.78) 0%, rgba(10, 24, 34, 0.48) 52%, rgba(10, 24, 34, 0.08) 100%);
}

.page-hero__content {
  padding-block: clamp(4rem, 9vw, 7rem);
  color: #fff;
}

.page-hero__content h1 {
  max-width: 58rem;
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 5.5vw, 4.9rem);
  line-height: 1.2;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.page-hero__content h1 span {
  display: block;
}

.page-hero .page-hero__content p {
  max-width: 42rem;
  margin: 1.25rem 0;
  color: #fff;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 700;
}

.contact-section {
  min-height: 70svh;
}

.contact-form-card {
  width: min(calc(100% - 3rem), 46rem);
}

.contact-form-card h1 {
  text-align: center;
}

.contact-form-card h1::after {
  content: "";
  display: block;
  width: 4.75rem;
  height: .32rem;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, var(--color-red) 0 44%, var(--color-blue) 44% 100%);
  border-radius: var(--radius-pill);
}

.form-field label > span[aria-hidden="true"] {
  margin-left: 0.2rem;
  color: #a32150;
}

.button--secondary {
  background: var(--color-ink);
  color: #fff;
  box-shadow: 0 10px 22px rgba(23, 42, 58, 0.18);
}

.button--secondary:hover {
  background: var(--color-blue-dark);
  color: #fff;
  box-shadow: 0 14px 28px rgba(23, 42, 58, 0.24);
}

.club-directory .club-grid {
  gap: 1.25rem;
}

.club-directory .club-card[hidden] {
  display: none;
}

.club-map-layout {
  box-shadow: var(--shadow-card);
}

.site-footer a:hover {
  color: #ffd7e5;
}

.site-footer__grid {
  grid-template-columns: 1fr 1fr 0.65fr;
}

.news-page {
  background: var(--color-bg);
}

.news-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.news-hero::after {
  content: "";
  position: absolute;
  right: clamp(-11rem, -7vw, -4rem);
  bottom: -14rem;
  width: 30rem;
  aspect-ratio: 1;
  border: 5rem solid rgba(47, 111, 192, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.news-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.news-hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.news-hero p:not(.section-kicker) {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.news-hero .button {
  flex: 0 0 auto;
}

.news-feature {
  padding-block: clamp(3.25rem, 6vw, 6rem);
  background: var(--color-surface-soft);
}

.news-feature__card {
  display: grid;
  grid-template-columns: minmax(15rem, 21rem) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 68rem;
  margin-inline: auto;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.news-feature__poster {
  margin: 0;
  overflow: hidden;
  background: #0c3f91;
  border-radius: var(--radius-md);
}

.news-feature__poster img {
  width: 100%;
}

.news-feature__body {
  min-width: 0;
  padding-right: clamp(0rem, 2vw, 1.25rem);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-bottom: 1rem;
}

.news-meta time,
.news-card__date time {
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.news-meta span,
.news-card__date span {
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  padding: 0.15rem 0.75rem;
  color: var(--color-blue-dark);
  background: #e9f1fc;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 900;
}

.news-feature h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.4;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.news-feature h2 a,
.news-card__body h3 a {
  color: inherit;
  text-decoration: none;
}

.news-feature h2 a:hover,
.news-card__body h3 a:hover {
  color: var(--color-primary-dark);
}

.news-feature__lead {
  margin: 1rem 0 1.5rem;
  color: #334a5a;
  font-size: 1.08rem;
  font-weight: 700;
}

.news-feature__facts {
  margin: 0;
  border-top: 1px solid var(--color-border);
}

.news-feature__facts > div {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-border);
}

.news-feature__facts dt {
  color: var(--color-blue-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.news-feature__facts dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.65;
}

.news-feature__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
  margin-top: 1.75rem;
}

.news-source-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-blue-dark);
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.news-source-link:hover {
  color: var(--color-primary-dark);
  transform: translateX(2px);
}

.news-source-link:active {
  transform: translateX(0);
}

.news-archive {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: #fff;
}

.news-archive__layout {
  display: grid;
  grid-template-columns: minmax(13rem, 19rem) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.news-archive__heading {
  position: sticky;
  top: 7.25rem;
}

.news-archive__heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.news-list {
  border-top: 1px solid var(--color-border);
}

.news-card {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--color-border);
}

.news-card__date {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.75rem;
}

.news-card__body h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  line-height: 1.45;
}

.news-card__body p {
  margin: 0.85rem 0 1rem;
  color: #405563;
  line-height: 1.9;
}

.news-empty {
  min-height: 24rem;
  display: grid;
  place-items: center;
  text-align: center;
}

.single-news-page {
  background: #fff;
}

.single-news__header {
  padding-block: clamp(3rem, 7vw, 6rem);
  background: var(--color-surface-soft);
  border-bottom: 1px solid var(--color-border);
}

.single-news__header-inner {
  max-width: var(--page-max);
}

.single-news__back {
  margin: 0 0 2rem;
}

.single-news__back a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-blue-dark);
  font-weight: 800;
}

.single-news__header h1 {
  max-width: 54rem;
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.4;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.single-news__layout {
  display: grid;
  grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  max-width: var(--page-max);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.single-news__layout:not(:has(.single-news__image)) {
  display: block;
  max-width: var(--page-max);
}

.single-news__image {
  position: sticky;
  top: 7.25rem;
  margin: 0;
  overflow: hidden;
  background: var(--color-surface-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.single-news__image img {
  width: 100%;
}

.single-news__content {
  max-width: 54rem;
  margin: 0;
  color: #334a5a;
}

.single-news__content h2,
.single-news__content h3 {
  margin: 2.5rem 0 0.8rem;
  color: var(--color-ink);
  line-height: 1.45;
}

.single-news__content h2 {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.45rem;
}

.single-news__content p,
.single-news__content li {
  line-height: 1.9;
}

.single-news__content a:not(.button) {
  color: var(--color-blue-dark);
  font-weight: 700;
}

.single-news__source {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 960px) {
  .hero-slider,
  .hero-slider__viewport,
  .hero-slide {
    min-height: calc(100svh - 5.75rem);
  }

  .club-carousel .club-card { flex-basis: clamp(18rem, 43vw, 23rem); width: clamp(18rem, 43vw, 23rem); }

  .activity-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .activity-gallery__item,
  .activity-gallery__item:nth-child(2),
  .activity-gallery__item:nth-child(3),
  .activity-gallery__item:nth-child(13) {
    grid-column: span 1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .activity-gallery__item--lead {
    grid-column: span 2;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .news-feature__card {
    grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr);
    gap: 2rem;
  }

  .news-archive__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .news-archive__heading {
    position: static;
    max-width: 34rem;
  }

  .single-news__layout {
    grid-template-columns: minmax(12rem, 17rem) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 680px) {
  .hero-slider,
  .hero-slider__viewport,
  .hero-slide {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .hero-slide__backdrop {
    display: block;
    object-fit: cover;
    object-position: 50% 70%;
    filter: blur(14px) brightness(0.96) saturate(1.14);
    transform: scale(1.36);
  }

  .hero-slide .hero-slide__image {
    z-index: 1;
    object-fit: contain;
    object-position: center;
    background: transparent;
  }

  .section {
    padding-block: 2.75rem;
  }

  .home-notice__poster {
    width: min(86vw, 20rem);
    padding: 0.3rem;
  }

  .boccia-intro__body {
    font-size: 1rem;
    line-height: 1.85;
  }

  .event-notice__heading {
    grid-template-columns: 1fr;
    align-items: start;
    margin-bottom: 1.25rem;
  }

  .event-notice__heading h2 {
    max-width: 100%;
    font-size: clamp(1.45rem, 7vw, 1.85rem);
    line-height: 1.35;
    letter-spacing: -0.025em;
    word-break: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .event-notice__title-prefix,
  .event-notice__title-phrase {
    display: block;
  }

  .event-notice__heading > p:last-child {
    margin-bottom: 0;
  }

  .section-heading h1,
  .section-heading h2,
  .president-card h2 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: clamp(1.45rem, 6.4vw, 1.85rem);
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .contact-form-card h1 {
    font-size: clamp(1.75rem, 8.5vw, 2.35rem);
    line-height: 1.35;
  }

  .event-notice__card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1rem;
    border-radius: var(--radius-md);
  }

  .event-notice__poster {
    width: 11rem;
    margin-inline: auto;
  }

  .event-notice__summary {
    padding: 0;
  }

  .event-highlights > div,
  .event-facts > div {
    grid-template-columns: 5.75rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .event-notice__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .event-notice__actions .button {
    width: 100%;
  }

  .event-contact {
    flex-direction: column;
  }

  .president-card--text {
    padding: 1.5rem;
  }

  .section--about .section-heading h1 {
    font-size: clamp(1.45rem, 6.4vw, 1.85rem);
    white-space: normal;
  }

  .clubs-preview .section-heading {
    margin-bottom: 1.5rem;
  }

  .clubs-preview .section-heading h2 {
    max-width: 13em;
    margin-inline: auto;
    font-size: clamp(1.45rem, 6.4vw, 1.85rem);
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .clubs-preview__title-line {
    display: block;
  }

  .president-card__heading {
    min-width: 0;
    padding: 0 0 1rem;
  }

  .president-card--text .president-card__body {
    padding: 1.25rem 0 0;
  }

  .president-card--text .president-card__signature {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
  }

  .club-carousel .club-card {
    flex-basis: min(70vw, 16.5rem);
    width: min(70vw, 16.5rem);
    min-height: 13.25rem;
    padding: 0.9rem;
  }

  .club-carousel__group {
    gap: 0.65rem;
    padding-right: 0.65rem;
  }

  .club-carousel .club-card__top {
    grid-template-columns: 2.1rem minmax(0, 1fr);
    gap: 0.55rem;
    padding-bottom: 0.65rem;
  }

  .club-carousel .club-card__top span {
    width: 2.1rem;
    font-size: 0.75rem;
  }

  .club-carousel .club-card h3 {
    font-size: 1rem;
    line-height: 1.4;
  }

  .club-carousel .club-card dl {
    margin-top: 0.55rem;
  }

  .club-carousel .club-card dl div {
    grid-template-columns: 4.25rem minmax(0, 1fr);
    gap: 0.45rem;
    padding-block: 0.45rem;
  }

  .club-carousel .club-card dd {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .clubs-preview .section-action {
    margin-top: 1.5rem;
  }

  .activity-gallery__heading {
    margin-bottom: 1.75rem;
  }

  .activity-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    padding: 0.4rem;
    border-radius: var(--radius-md);
  }

  .activity-gallery__item,
  .activity-gallery__item--lead,
  .activity-gallery__item--portrait {
    grid-column: span 1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
    margin: 0;
    border-radius: calc(var(--radius-md) - 0.25rem);
  }

  .activity-gallery__item:last-child {
    grid-column: span 2;
    aspect-ratio: 4 / 3;
  }

  .activity-gallery__item--portrait img {
    object-fit: contain;
    background: #d8e2e8;
  }

  .club-directory .section-heading {
    margin-bottom: 1.5rem;
  }

  .club-directory .club-filter {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .club-directory .club-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .club-directory .club-card {
    min-height: 0;
    padding: 0.75rem;
    border-top-width: 0.3rem;
    border-radius: 0.3rem 0.3rem 0.75rem 0.75rem;
  }

  .club-directory .club-card::after {
    width: 5rem;
    right: -2rem;
    bottom: -2rem;
  }

  .club-directory .club-card__top {
    display: grid;
    position: static;
    grid-template-columns: 1.8rem minmax(0, 1fr);
    align-items: start;
    gap: 0.45rem;
    padding-bottom: 0.55rem;
  }

  .club-directory .club-card__top span {
    position: static;
    width: 1.8rem;
    min-width: 1.8rem;
    height: 1.8rem;
    aspect-ratio: auto;
    padding: 0;
    font-size: 0.68rem;
    line-height: 1;
    white-space: nowrap;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .club-directory .club-card h3 {
    font-size: 1rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    text-indent: 0;
    word-break: keep-all;
  }

  .club-directory .club-card dl {
    margin-top: 0.45rem;
  }

  .club-directory .club-card dl div {
    display: block;
    padding-block: 0.45rem;
  }

  .club-directory .club-card dt {
    margin-bottom: 0.25rem;
    font-size: 0.66rem;
  }

  .club-directory .club-card dd {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .page-hero--clubs {
    min-height: 0;
  }

  .page-hero__shade {
    background: rgba(10, 24, 34, 0.62);
  }

  .page-hero__content {
    padding-block: 3rem;
  }

  .page-hero__content h1 {
    font-size: clamp(2rem, 8vw, 2.4rem);
  }

  .contact-form-card {
    width: min(calc(100% - 2rem), 46rem);
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .news-hero__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-hero .button {
    width: 100%;
  }

  .news-feature__card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius-md);
  }

  .news-feature__poster {
    width: min(100%, 15rem);
    margin-inline: auto;
  }

  .news-feature__body {
    padding: 0 0.25rem 0.5rem;
  }

  .news-feature h2 {
    font-size: clamp(1.4rem, 6.5vw, 1.75rem);
    line-height: 1.45;
  }

  .news-feature__facts > div {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .news-feature__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .news-feature__actions .button {
    width: 100%;
  }

  .news-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .news-card__date {
    flex-flow: row wrap;
    align-items: center;
  }

  .single-news__layout {
    display: block;
    padding-block: 2.25rem 3.5rem;
  }

  .single-news__image {
    position: static;
    width: min(100%, 15rem);
    margin: 0 auto 2rem;
  }

  .single-news__header {
    padding-block: 2.25rem 2.75rem;
  }

  .single-news__back {
    margin-bottom: 1.25rem;
  }

  .single-news__header h1 {
    font-size: clamp(1.5rem, 6.5vw, 1.9rem);
    line-height: 1.45;
    letter-spacing: -0.015em;
  }

  .single-news__content {
    width: 100%;
  }

  .single-news__content .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .club-carousel__viewport {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .club-carousel .club-carousel__track {
    display: block;
    width: auto;
    /* Accessibility: keep all cards stationary when reduced motion is requested. */
    transform: none !important;
    transition: none;
  }

  .club-carousel .club-carousel__group:first-child {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-right: 0;
  }

  .club-carousel .club-carousel__group--copy {
    display: none;
  }

  .club-carousel .club-card {
    width: auto;
  }
}

@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .club-carousel .club-carousel__group:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) and (prefers-reduced-motion: reduce) {
  .club-carousel .club-carousel__group:first-child { grid-template-columns: 1fr; }
}
