/* Clubhouse — classic racquet club. Centred masthead, hairline rules,
   generous whitespace, refined serif. Brand tokens override --club /
   --club-deep / --brass / --paper. */

:root {
  --ink: #1c2320;
  --ink-soft: #5a6560;
  --club: #1d4c3a;
  --club-deep: #12321f;
  --brass: #a98a4b;
  --paper: #fbfaf6;
  --paper-deep: #f2efe6;
  --white: #ffffff;
  --line: rgba(28, 35, 32, 0.13);
  --line-light: rgba(255, 255, 255, 0.24);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Futura", "Segoe UI", sans-serif;
  --header-h: 128px;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.4rem; }
h1 em, h2 em { display: block; font-style: italic; color: var(--brass); }
p { margin: 0 0 15px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
address { font-style: normal; }
dl, dd { margin: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
.ch-skip { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 16px; color: var(--white); background: var(--club-deep); transform: translateY(-160%); }
.ch-skip:focus { transform: none; }
.ch-wrap { width: min(calc(100% - 52px), 1160px); margin-inline: auto; }
.ch-section { padding: clamp(58px, 8vw, 108px) 0; }
.ch-kicker { margin: 0 0 12px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--brass); }
.ch-kicker--light { color: rgba(255, 255, 255, 0.78); }
.ch-note { font-size: 0.82rem; color: var(--ink-soft); font-style: italic; }
.ch-note--centred { text-align: center; }
.ch-source { text-align: center; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Centred heading + rule */
.ch-heading { max-width: 62ch; margin: 0 auto 30px; text-align: center; }
.ch-heading__blurb { color: var(--ink-soft); }
.ch-rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 46px; max-width: 320px; }
.ch-rule span { flex: 1; height: 1px; background: var(--line); }
.ch-rule i { width: 6px; height: 6px; transform: rotate(45deg); background: var(--brass); }

/* Buttons + links */
.ch-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ch-button--solid { color: var(--white); background: var(--club); }
.ch-button--solid:hover { background: var(--club-deep); }
.ch-button--outline { color: var(--club); border-color: var(--club); }
.ch-button--outline:hover { color: var(--white); background: var(--club); }
.ch-button--light { color: var(--club-deep); background: var(--white); }
.ch-button--quiet { color: var(--ink-soft); border-color: var(--line); background: transparent; }
.ch-link { display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; background: none; border: 0; border-bottom: 1px solid var(--brass); cursor: pointer; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--club); }
.ch-link:hover { color: var(--brass); }
.ch-link--light { color: var(--white); border-bottom-color: rgba(255, 255, 255, 0.5); }

/* Masthead — centred brand, nav beneath */
.ch-masthead { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 96%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.ch-masthead__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; min-height: 88px; padding: 14px 0; min-width: 0; }
.ch-brand { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.ch-brand img { width: 44px; height: 44px; object-fit: contain; }
.ch-brand__name { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.02em; }
.ch-brand__descriptor { font-size: 0.56rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft); }
.ch-nav { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: center; gap: 26px; padding-top: 12px; border-top: 1px solid var(--line); min-width: 0; }
.ch-nav ul { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2vw, 32px); margin: 0; padding: 0; list-style: none; flex-wrap: nowrap; }
.ch-nav a { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; }
.ch-nav ul a:hover { color: var(--brass); }
.ch-member-link { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--club); border-bottom: 1px solid var(--brass); padding-bottom: 2px; white-space: nowrap; }
.ch-menu-toggle { grid-column: 1; justify-self: start; display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; padding: 0 8px; background: none; border: 0; cursor: pointer; }
.ch-menu-toggle span { display: block; height: 1px; background: currentColor; }

/* Nav overflow */
.nav-more { position: relative; }
.nav-more[hidden] { display: none !important; }
.nav-more__button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; }
.nav-more__list { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); z-index: 60; display: none; flex-direction: column; min-width: 200px; margin: 0; padding: 8px; list-style: none; background: var(--white); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(28, 35, 32, 0.14); }
.nav-more.is-open .nav-more__list { display: flex; }
.nav-more__list a { display: block; padding: 9px 12px; font-size: 0.7rem; text-align: center; }
.nav-more__list a:hover { color: var(--brass); }

/* Hero — framed image with an overlapping plate */
.ch-hero { padding: clamp(34px, 5vw, 62px) 0 clamp(48px, 6vw, 80px); }
.ch-hero__frame { position: relative; }
.ch-hero__frame img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.ch-hero__plate { position: relative; width: min(660px, 100%); margin: -70px auto 0; padding: clamp(28px, 4vw, 46px); background: var(--paper); border: 1px solid var(--line); text-align: center; }
.ch-hero__lede { max-width: 48ch; margin: 16px auto 0; color: var(--ink-soft); }
.ch-hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; }
.ch-hero__note { max-width: 420px; margin: 26px auto 0; padding: 16px 20px; border-left: 2px solid var(--brass); text-align: left; }
.ch-hero__note span { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); }
.ch-hero__note strong { font-family: var(--serif); font-size: 1.2rem; }
.ch-hero__note small { display: block; font-size: 0.82rem; color: var(--ink-soft); }

/* Today */
.ch-today { padding: 18px 0; background: var(--club-deep); color: rgba(255, 255, 255, 0.82); }
.ch-today__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.ch-today__live { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 0.86rem; }
.ch-today__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.ch-today__live strong { color: var(--white); font-weight: 600; }
.ch-today__facts { display: flex; flex-wrap: wrap; gap: 28px; }
.ch-today__facts dt { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.ch-today__facts dd { font-family: var(--serif); font-size: 1.14rem; color: var(--white); }

/* Invitations (quick actions) */
.ch-invitations__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ch-invitation { padding: 34px 30px; background: var(--paper); text-align: center; }
.ch-invitation h3 { margin-bottom: 10px; }
.ch-invitation p { color: var(--ink-soft); font-size: 0.94rem; }

/* Courts (course overview) */
.ch-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 38px; }
.ch-switch__tab { padding: 9px 20px; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.ch-switch__tab:hover { border-color: var(--brass); color: var(--brass); }
.ch-switch__tab.is-active { background: var(--club); border-color: var(--club); color: var(--white); }
.ch-courts__panel { display: grid; gap: 46px; align-items: center; }
.ch-courts__panel[hidden] { display: none !important; }
@media (min-width: 900px) { .ch-courts__panel { grid-template-columns: 1.05fr 0.95fr; } }
.ch-courts__figure { position: relative; margin: 0; }
.ch-courts__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ch-courts__figure figcaption { position: absolute; left: 0; bottom: 0; padding: 14px 18px; background: var(--paper); }
.ch-courts__figure figcaption span { display: block; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); }
.ch-courts__figure figcaption strong { font-family: var(--serif); font-size: 1.16rem; }
.ch-courts__figure figcaption small { display: block; font-size: 0.76rem; color: var(--ink-soft); }
.ch-courts__copy p { color: var(--ink-soft); max-width: 52ch; }
.ch-facts { display: flex; flex-wrap: wrap; gap: 32px; margin: 26px 0; padding-top: 22px; border-top: 1px solid var(--line); }
.ch-facts dt { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.ch-facts dd { font-family: var(--serif); font-size: 2rem; line-height: 1.1; }
.ch-courts__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.ch-quote-inline { margin: 18px 0; padding-left: 18px; border-left: 2px solid var(--brass); font-family: var(--serif); font-size: 1.16rem; font-style: italic; color: var(--ink); }

/* Hole guide */
.ch-holes__list[hidden] { display: none !important; }
.ch-hole { display: grid; gap: 26px; padding: 30px 0; border-top: 1px solid var(--line); align-items: start; }
@media (min-width: 860px) { .ch-hole { grid-template-columns: 92px 1fr 300px; } }
.ch-hole__index { font-family: var(--serif); font-size: 2.4rem; color: var(--club); line-height: 1; }
.ch-hole__index small { display: block; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--ink-soft); }
.ch-hole__meta { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.ch-hole__copy p { color: var(--ink-soft); max-width: 60ch; }
.ch-hole__media { margin: 0; }
.ch-hole__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* Feeds */
.ch-feed__list { display: grid; gap: 0; }
.ch-entry { display: grid; gap: 26px; padding: 28px 0; border-top: 1px solid var(--line); align-items: center; }
@media (min-width: 860px) { .ch-entry { grid-template-columns: 300px 1fr; } }
.ch-entry figure { margin: 0; }
.ch-entry figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ch-entry__meta { margin: 0 0 6px; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }
.ch-entry__time { font-size: 0.86rem; font-weight: 600; margin: 0 0 6px; }
.ch-entry p { color: var(--ink-soft); }
.ch-feed__more { margin-top: 28px; text-align: center; }

/* Groups (societies) */
.ch-groups { background: var(--paper-deep); }
.ch-groups__inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .ch-groups__inner { grid-template-columns: 0.9fr 1.1fr; } }
.ch-groups__figure { position: relative; margin: 0; }
.ch-groups__figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ch-groups__figure figcaption { position: absolute; right: -1px; bottom: 22px; padding: 14px 20px; background: var(--club); color: var(--white); }
.ch-groups__figure figcaption span { display: block; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.ch-groups__figure figcaption strong { font-family: var(--serif); font-size: 1.2rem; }
.ch-groups__copy p { color: var(--ink-soft); max-width: 52ch; }
.ch-list { list-style: none; margin: 22px 0; padding: 0; }
.ch-list li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px solid var(--line); font-size: 0.94rem; color: var(--ink-soft); }
.ch-list li::before { content: ""; position: absolute; left: 0; top: 16px; width: 6px; height: 6px; transform: rotate(45deg); background: var(--brass); }
.ch-groups__actions { margin-top: 26px; }

/* Membership */
.ch-membership { background: var(--club); color: var(--white); text-align: center; }
.ch-membership__inner { max-width: 760px; margin-inline: auto; }
.ch-membership__body { max-width: 56ch; margin-inline: auto; color: rgba(255, 255, 255, 0.84); }
.ch-membership em { color: var(--brass); }
.ch-membership__quote { margin: 32px 0; }
.ch-membership__quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-style: italic; line-height: 1.35; }
.ch-membership__quote figcaption { margin-top: 12px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.ch-membership__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; }

/* Partners */
.ch-partners__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 46px; }
.ch-partner img { max-height: 46px; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 0.2s ease, opacity 0.2s ease; }
.ch-partner:hover img { filter: none; opacity: 1; }
.ch-partner span { font-family: var(--serif); font-size: 1.2rem; color: var(--ink-soft); }

/* Member app */
.ch-app { background: var(--paper-deep); text-align: center; }
.ch-app__inner { max-width: 620px; margin-inline: auto; }
.ch-app p { color: var(--ink-soft); margin: 14px 0 24px; }

/* Page header + prose */
.ch-page-header { padding: clamp(38px, 5vw, 64px) 0 0; text-align: center; }
.ch-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.ch-page-header__intro { max-width: 58ch; margin: 16px auto 0; color: var(--ink-soft); }
.ch-page-header__media { margin: 0; }
.ch-page-header__media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.ch-prose__inner { max-width: 68ch; margin-inline: auto; }
.ch-prose__inner h2 { margin-bottom: 18px; }
.ch-prose__inner h3 { margin: 30px 0 10px; }
.ch-prose__inner p { color: var(--ink-soft); }
.ch-prose__inner ul { margin: 0 0 15px; padding-left: 22px; color: var(--ink-soft); }
.ch-prose__inner li { margin-bottom: 6px; }
.ch-prose__inner li::marker { color: var(--brass); }
.ch-prose__inner a:not(.cv-button) { color: var(--club); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.ch-prose__figure { margin: 0 0 26px; }
.ch-prose__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ch-prose__back { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Contact */
.ch-contact__grid { display: grid; gap: 44px; }
@media (min-width: 900px) { .ch-contact__grid { grid-template-columns: 1fr 1fr; } }
.ch-contact__item { margin-bottom: 20px; }
.ch-contact__item span { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); margin-bottom: 4px; }
.ch-contact__rows { border-top: 1px solid var(--line); padding-top: 12px; }
.ch-contact__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.ch-contact__rows dt { color: var(--ink-soft); }
.ch-contact__action { margin-top: 22px; }
.ch-contact__map { margin: 0; }
.ch-contact__map iframe { width: 100%; min-height: 340px; border: 0; }

/* Event detail */
.ch-event__grid { display: grid; gap: 44px; }
@media (min-width: 900px) { .ch-event__grid { grid-template-columns: 1.5fr 0.5fr; } }
.ch-event__facts { align-self: start; padding: 26px; border: 1px solid var(--line); }
.ch-event__facts div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ch-event__facts dt { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.ch-event__facts dd { font-family: var(--serif); font-size: 1.16rem; }
.ch-event__book { padding-top: 18px; }

/* Downloads + rates */
.ch-downloads__group { max-width: 760px; margin: 0 auto 34px; }
.ch-downloads__group h3 { text-align: center; margin-bottom: 14px; }
.ch-downloads__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ch-downloads__list a { display: flex; align-items: baseline; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.ch-downloads__list a:hover { color: var(--brass); }
.ch-downloads__list b { font-weight: 500; font-size: 0.98rem; }
.ch-downloads__list small { flex: 1; font-size: 0.76rem; color: var(--ink-soft); }
.ch-rates__table { max-width: 760px; margin-inline: auto; border-top: 1px solid var(--line); }
.ch-rates__row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ch-rates__row b { font-weight: 500; font-size: 0.98rem; }
.ch-rates__row small { display: block; font-size: 0.8rem; color: var(--ink-soft); }
.ch-rates__row > span { font-family: var(--serif); font-size: 1.5rem; white-space: nowrap; }

/* Announcement */
.ch-announce { padding: 11px 0; background: var(--brass); color: var(--white); text-align: center; font-size: 0.84rem; letter-spacing: 0.04em; }

/* Footer */
.ch-footer { padding: clamp(52px, 6vw, 84px) 0 28px; background: var(--club-deep); color: rgba(255, 255, 255, 0.76); text-align: center; }
.ch-footer__crest img { width: 54px; height: 54px; object-fit: contain; margin: 0 auto 12px; }
.ch-footer__crest strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--white); }
.ch-footer__crest p { max-width: 46ch; margin: 8px auto 0; font-size: 0.9rem; }
/* The marks themselves are drawn by the shared .cv-social rules; this footer is centred. */
.ch-social { justify-content: center; margin: 10px 0 0; }
.ch-social a:hover { color: var(--brass); }
.ch-newsletter { max-width: 430px; margin: 34px auto 0; }
.ch-newsletter__label { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white); }
.ch-newsletter__intro { margin: 8px 0 0; font-size: 0.86rem; }
.ch-newsletter__row { display: flex; gap: 10px; margin-top: 12px; }
.ch-newsletter__row input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line-light); background: rgba(255, 255, 255, 0.05); color: var(--white); font: inherit; font-size: 0.88rem; }
.ch-newsletter__row input::placeholder { color: rgba(255, 255, 255, 0.45); }
.ch-newsletter__consent { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin-top: 10px; font-size: 0.74rem; text-align: left; cursor: pointer; }
.ch-newsletter__done { margin-top: 10px; color: var(--brass); font-size: 0.86rem; }
.ch-newsletter__error { margin-top: 10px; color: #f3b6ac; font-size: 0.8rem; }
.ch-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; margin-top: 44px; padding: 34px 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); text-align: center; }
.ch-footer__grid span { display: block; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 10px; }
/* A long email address breaks rather than widening the page on a phone. */
.ch-footer__grid a { display: block; padding: 3px 0; font-size: 0.88rem; overflow-wrap: anywhere; }
.ch-footer__grid a:hover { color: var(--brass); }
.ch-footer__bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; padding-top: 22px; font-size: 0.74rem; }

/* Dialogs + forms */
.ch-dialog { width: min(620px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.ch-dialog::backdrop { background: rgba(18, 50, 31, 0.62); }
.ch-dialog__inner { position: relative; padding: 36px; text-align: center; }
.ch-dialog__close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.ch-dialog h2 { margin-bottom: 20px; }
.ch-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
@media (max-width: 620px) { .ch-form__grid { grid-template-columns: 1fr; } }
.ch-form__field--wide { grid-column: 1 / -1; }
.ch-form__field span { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 5px; }
.ch-form__field input, .ch-form__field select, .ch-form__field textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); background: var(--white); font: inherit; font-size: 0.92rem; }
.ch-form__consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; font-size: 0.82rem; color: var(--ink-soft); text-align: left; cursor: pointer; }
.ch-form__error { margin-top: 12px; color: #b3261e; font-size: 0.85rem; }
.ch-form__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* Consent banner */
.cv-consent { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 470px; margin-inline: auto; padding: 18px 20px; background: var(--club-deep); color: var(--white); box-shadow: 0 18px 46px rgba(18, 50, 31, 0.32); }
.cv-consent p { font-size: 0.86rem; }
.cv-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cv-consent button { padding: 9px 15px; border: 1px solid var(--line-light); background: transparent; color: var(--white); cursor: pointer; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; }
.cv-consent button[data-consent="accept"] { background: var(--brass); border-color: var(--brass); }

/* Mobile */
@media (max-width: 900px) {
  .ch-wrap { width: calc(100% - 34px); }
  .ch-masthead__bar { min-height: 72px; }
  .ch-menu-toggle { display: flex; }
  .nav-more { display: none !important; }
  .ch-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: -1;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    height: 100dvh;
    /* Under the masthead, which a logo and a long club name make taller than any fixed figure. */
    padding: calc(var(--cv-menu-top, 96px) + 12px) 30px 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--club-deep);
    color: var(--white);
    border-top: 0;
    transform: translateY(-110%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  body.menu-open .ch-nav { transform: none; }
  body.menu-open .ch-menu-toggle { z-index: 2; color: var(--white); }
  /* The club's name stays readable over the open menu; it was dark ink on the dark panel, showing through behind the first link. */
  body.menu-open .ch-brand { color: var(--white); }
  body.menu-open .ch-brand__descriptor { color: color-mix(in srgb, var(--white) 72%, transparent); }
  .ch-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .ch-nav ul li { border-bottom: 1px solid var(--line-light); }
  .ch-nav ul a { display: block; padding: 15px 0; font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.02em; text-transform: none; text-align: center; }
  /* A page with a submenu is centred like the links around it (its arrow sits at the right), and the
     pages under it read on the dark panel. Written past the shared submenu sheet, which loads later. */
  html.has-js .ch-nav[data-primary-nav] .nav-parent > a:first-child { justify-content: center; padding-left: 50px; }
  html.has-js .ch-nav[data-primary-nav] .nav-parent__list { margin: 0 0 14px; padding: 4px 0 6px; background: color-mix(in srgb, var(--white) 6%, transparent); border-left: 0; color: inherit; }
  html.has-js .ch-nav[data-primary-nav] .nav-parent__list li { border-bottom: 0; }
  html.has-js .ch-nav[data-primary-nav] .nav-parent__list a { display: block; min-height: 44px; padding: 10px 0; font-size: 1.15rem; text-align: center; white-space: normal; }
  html.has-js .ch-nav[data-primary-nav] .nav-parent__list a::after { display: none; }
  html.has-js .ch-nav[data-primary-nav] .nav-parent__list a:hover,
  html.has-js .ch-nav[data-primary-nav] .nav-parent__list a:focus-visible { background: color-mix(in srgb, var(--white) 10%, transparent); color: var(--white); box-shadow: none; }
  .ch-member-link { margin-top: 24px; color: var(--white); }
  .ch-hero__plate { margin-top: -34px; }
}

/* ─── Racquet blocks ─────────────────────────────────────────────────
   Club overview, courts in a line, photos, what's on, coaching. Kept
   deliberately plain: a small club's site sells with photos and clarity,
   not with density. Blocks are absent (not empty) when they have no data. */

.ch-block__head { margin-bottom: 28px; }
.ch-block__head h2 { font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.04; margin: 0; }

.ch-club-overview__body { max-width: 68ch; }
.ch-club-overview__body p { margin: 0 0 1em; font-size: 1.05rem; line-height: 1.65; color: var(--ink-soft); }
.ch-club-overview__facts {
  display: grid; gap: 20px; margin: 32px 0 0; padding: 24px 0 0;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.ch-club-overview__facts dt { font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-soft); }
.ch-club-overview__facts dd { margin: 6px 0 0; font-family: var(--display); font-size: 1.5rem; }

.ch-court-summary__line { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; margin: 0; }
.ch-court-summary__sports,
.ch-court-summary__access { margin: 10px 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.ch-court-summary__actions { margin-top: 26px; }

/* Sized so two or three photos still look composed, not sparse. */
.ch-photo-strip__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ch-photo-strip__item { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--paper-deep); }
.ch-photo-strip__item img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ch-photo-strip__grid[data-count="1"] .ch-photo-strip__item img { aspect-ratio: 16 / 9; }
.ch-photo-strip__actions { margin-top: 22px; }

.ch-whats-on__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ch-whats-on__item { padding: 22px 0; border-top: 1px solid var(--line); }
.ch-whats-on__item:first-child { border-top: 0; }
.ch-whats-on__item h3 { margin: 4px 0 0; font-family: var(--display); font-size: 1.45rem; }
.ch-whats-on__item h3 a { color: inherit; text-decoration: none; }
.ch-whats-on__item h3 a:hover { text-decoration: underline; }
.ch-whats-on__meta { margin: 6px 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.ch-whats-on__summary { margin: 8px 0 0; color: var(--ink-soft); line-height: 1.6; max-width: 62ch; }

.ch-coaching { background: var(--paper-deep); }
.ch-coaching__body { max-width: 62ch; font-size: 1.05rem; line-height: 1.65; color: var(--ink-soft); margin: 0; }
.ch-coaching__bullets { margin: 18px 0 0; padding-left: 1.1em; color: var(--ink-soft); line-height: 1.7; }
.ch-coaching__actions { margin-top: 26px; }


/* ── Submenus (one level) ───────────────────────────────────────────
   The parent stays a real link to its own page; the small toggle beside it
   opens the list on touch, while pointer devices get hover and keyboard users
   get focus-within. Everything below is progressive: with no CSS or no JS the
   children are still in the document as ordinary links. */
.nav-parent { position: relative; display: inline-flex; align-items: center; gap: 3px; }
.nav-parent__toggle { display: inline-flex; align-items: center; padding: 2px; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; line-height: 1; }
.nav-parent__list { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); z-index: 61; display: none; flex-direction: column; min-width: 200px; margin: 0; padding: 8px; list-style: none; background: var(--white); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(28, 35, 32, 0.14); }
.nav-parent:hover > .nav-parent__list,
.nav-parent:focus-within > .nav-parent__list,
.nav-parent.is-open > .nav-parent__list { display: flex; }
.nav-parent__list li { border: 0; }
.nav-parent__list a { display: block; padding: 9px 12px; font-size: 0.7rem; text-align: center; }
.nav-parent__list a:hover { color: var(--brass); }
.nav-more__list .nav-parent { display: block; }
.nav-more__list .nav-parent__toggle { display: none; }
.nav-more__list .nav-parent__list { position: static; transform: none; display: flex; min-width: 0; padding: 0 0 4px 12px; background: none; border: 0; box-shadow: none; }
@media (max-width: 900px) {
  .ch-nav .nav-parent { display: block; width: 100%; }
  .ch-nav .nav-parent__toggle { display: none; }
  .ch-nav .nav-parent__list { position: static; transform: none; display: flex; min-width: 0; margin: 0 0 10px; padding: 0; background: none; border: 0; box-shadow: none; }
  .ch-nav .nav-parent__list a { padding: 9px 0; font-family: var(--serif); font-size: 1.05rem; text-transform: none; letter-spacing: 0.02em; }
}

/* ── The menu on a computer ───────────────────────────────────────────
   The submenus were the shared panel every design starts from (a coloured bar on top, rounded corners, the
   heading repeated inside, bold items with an arrow and a grey fill) and read as something added to this
   design. Here they take the More menu's manner instead: square and white with a hairline, hung from the
   masthead's own rule, centred under their heading with the design's diamond pointing up to it, the items
   set like the menu itself, a fine brass underline on hover. The phone menu (900px and under) is untouched.
   The panels sit lower than the shared ones, so an open item keeps a bridge under itself for the pointer. */
@media (min-width: 901px) {
  /* Headings with a submenu sat 2px above the rest: the row lines up on the words, not the boxes. */
  .ch-nav > ul { align-items: baseline; }
  .ch-nav > ul > li > a,
  .ch-nav .nav-more__button {
    text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 7px;
    transition: color 160ms ease, text-decoration-color 160ms ease;
  }
  .ch-nav > ul > li > a:hover,
  .ch-nav > ul > .nav-parent.is-open > a,
  .ch-nav .nav-more.is-open > .nav-more__button { color: var(--club); text-decoration-color: var(--brass); }

  /* The chevron: drawn, fine, close to its word, no disc behind it. */
  .ch-nav > ul > .nav-parent > .nav-parent__toggle {
    min-width: 26px; min-height: 30px; margin: -8px -8px -8px -4px; border-radius: 0; color: var(--ink-soft);
  }
  .ch-nav > ul > .nav-parent > .nav-parent__toggle:hover,
  .ch-nav > ul > .nav-parent > .nav-parent__toggle:focus-visible,
  .ch-nav > ul > .nav-parent.is-open > .nav-parent__toggle { background: transparent; color: var(--club); }
  .ch-nav > ul > .nav-parent > .nav-parent__toggle:focus-visible { outline: 1px solid var(--brass); outline-offset: 1px; }
  .ch-nav > ul > .nav-parent > .nav-parent__toggle span,
  .ch-nav .nav-more__button span {
    display: inline-block; width: 5px; height: 5px; font-size: 0;
    border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg); transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .ch-nav > ul > .nav-parent.is-open > .nav-parent__toggle span,
  .ch-nav .nav-more.is-open > .nav-more__button span { transform: translateY(1px) rotate(-135deg); }
  .ch-nav .nav-more__button { gap: 9px; }

  /* The panels: hung from the masthead's rule, their top edge lying on it (measured: a heading with a submenu
     stands 2px shorter than More, whose button is a box of its own). */
  .ch-nav > ul > .nav-parent > .nav-parent__list,
  .ch-nav .nav-more > .nav-more__list {
    top: calc(100% + 16.5px); align-items: stretch; gap: 0; min-width: 220px; padding: 12px 0; overflow: visible;
    background: var(--white); border: 1px solid var(--line); border-radius: 0;
    box-shadow: 0 24px 40px -22px rgba(28, 35, 32, 0.32), 0 2px 6px rgba(28, 35, 32, 0.04);
  }
  .ch-nav .nav-more > .nav-more__list { top: calc(100% + 14px); }
  .ch-nav > ul > .nav-parent > .nav-parent__list {
    left: 50%; transform: none; translate: calc(-50% + var(--cv-submenu-nudge, 0px)) 0;
    animation: ch-submenu-in 200ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  /* The diamond, pointing back to the heading even when a panel is moved in from the screen's edge. */
  .ch-nav > ul > .nav-parent > .nav-parent__list::before,
  .ch-nav .nav-more > .nav-more__list::before {
    content: ''; position: absolute; top: -5px; left: calc(50% - var(--cv-submenu-nudge, 0px)); width: 9px; height: 9px; padding: 0;
    background: var(--white); border-top: 1px solid var(--line); border-left: 1px solid var(--line);
    transform: translateX(-50%) rotate(45deg);
  }
  /* Room for the pointer between a heading and its panel, only while it is open. */
  .ch-nav > ul > .nav-parent.is-open::after,
  .ch-nav .nav-more.is-open::after { content: ''; position: absolute; left: -18px; right: -18px; top: 100%; height: 18px; }

  .ch-nav > ul > .nav-parent > .nav-parent__list a,
  .ch-nav .nav-more__list > li > a {
    justify-content: center; min-height: 0; padding: 11px 30px; border-radius: 0; color: var(--ink);
    font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em; text-align: center;
    text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 6px;
    transition: color 160ms ease, text-decoration-color 160ms ease;
  }
  .ch-nav > ul > .nav-parent > .nav-parent__list a::after { display: none; }
  .ch-nav > ul > .nav-parent > .nav-parent__list a:hover,
  .ch-nav > ul > .nav-parent > .nav-parent__list a:focus-visible,
  .ch-nav .nav-more__list > li > a:hover,
  .ch-nav .nav-more__list > li > a:focus-visible { background: transparent; box-shadow: none; color: var(--club); text-decoration-color: var(--brass); }
  .ch-nav > ul > .nav-parent > .nav-parent__list a:focus-visible,
  .ch-nav .nav-more__list > li > a:focus-visible { outline: 1px solid var(--brass); outline-offset: -4px; }
}
@keyframes ch-submenu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .ch-nav > ul > .nav-parent > .nav-parent__list { animation: none; }
  .ch-nav > ul > .nav-parent > .nav-parent__toggle span, .ch-nav .nav-more__button span { transition: none; }
}

/* Shared submenu presentation and interaction geometry.
   Template selectors only provide colour aliases; typography stays native. */
#primary-navigation { --cv-submenu-accent: var(--pine, #17523c); --cv-submenu-surface: var(--paper, #fffdf7); --cv-submenu-hover: var(--paper-deep, #f2efe5); }
#field-nav { --cv-submenu-accent: var(--rust, #b65d3a); --cv-submenu-surface: var(--paper, #fffdf7); --cv-submenu-hover: var(--cream, #f2eadc); }
.bl-nav { --cv-submenu-accent: var(--court, #16765a); --cv-submenu-surface: var(--white, #fff); --cv-submenu-hover: var(--surface, #f2f7f4); }
.ch-nav { --cv-submenu-accent: var(--brass, #9b7740); --cv-submenu-surface: var(--white, #fff); --cv-submenu-hover: var(--paper-deep, #f4f0e7); }

.nav-parent { position: relative; isolation: isolate; }
.nav-parent__toggle {
  display: inline-flex; min-width: 36px; min-height: 36px; align-items: center; justify-content: center;
  margin: -6px -8px -6px -5px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: inherit; cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}
.nav-parent__toggle:hover,
.nav-parent__toggle:focus-visible,
.nav-parent.is-open > .nav-parent__toggle {
  background: color-mix(in srgb, var(--cv-submenu-accent, currentColor) 12%, transparent);
  color: var(--cv-submenu-accent, currentColor); outline: none;
}
.nav-parent__toggle span { display: inline-block; font-size: .72em; transform-origin: center; transition: transform 180ms ease; }
.nav-parent.is-open > .nav-parent__toggle span { transform: rotate(180deg); }

/* The panel begins at the trigger edge so there is no dead pointer corridor. */
.nav-parent__list {
  position: absolute; top: 100%; left: 0; z-index: 80; display: none; flex-direction: column; gap: 2px;
  min-width: 238px; margin: 0; padding: 10px; overflow: hidden;
  background: var(--cv-submenu-surface, #fff); color: var(--ink, #17221e);
  border: 1px solid color-mix(in srgb, var(--cv-submenu-accent, #17221e) 22%, transparent);
  border-top: 3px solid var(--cv-submenu-accent, #17221e); border-radius: 4px 4px 16px 16px;
  box-shadow: 0 24px 55px rgba(10, 28, 21, .18), 0 4px 12px rgba(10, 28, 21, .08);
  transform-origin: top center; animation: cv-submenu-enter 150ms ease-out;
}
.nav-parent__list::before {
  content: attr(data-submenu-label); display: block; padding: 4px 10px 7px;
  color: color-mix(in srgb, var(--ink, #17221e) 52%, transparent);
  font-family: inherit; font-size: .64rem; font-weight: 700; line-height: 1.2;
  letter-spacing: .16em; text-transform: uppercase;
}
.nav-parent.is-open > .nav-parent__list { display: flex; }
html.has-js .nav-parent:not(.is-open) > .nav-parent__list { display: none; }
.nav-parent__list li { width: 100%; list-style: none; border: 0; }
.nav-parent__list a {
  display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 18px;
  padding: 10px 11px; border: 0; border-radius: 10px; color: inherit;
  font-size: .82rem; font-weight: 600; line-height: 1.25; text-align: left; text-decoration: none; white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.nav-parent__list a::after {
  content: '→'; display: inline-block; color: var(--cv-submenu-accent, currentColor);
  opacity: 0; transform: translateX(-5px); transition: opacity 150ms ease, transform 150ms ease;
}
.nav-parent__list a:hover,
.nav-parent__list a:focus-visible {
  background: var(--cv-submenu-hover, #f4f4f1); color: var(--cv-submenu-accent, currentColor);
  box-shadow: inset 3px 0 0 var(--cv-submenu-accent, currentColor); outline: none;
}
.nav-parent__list a:hover::after,
.nav-parent__list a:focus-visible::after { opacity: 1; transform: translateX(0); }

/* More is already a popup: submenu children become a quiet grouped list. */
html.has-js .nav-more__list .nav-parent > .nav-parent__list {
  position: static; display: flex; min-width: 0; padding: 2px 0 7px 12px; overflow: visible;
  background: transparent; border: 0; border-left: 2px solid color-mix(in srgb, var(--cv-submenu-accent, #17221e) 28%, transparent);
  border-radius: 0; box-shadow: none; animation: none;
}
.nav-more__list .nav-parent__toggle,
.nav-more__list .nav-parent__list::before,
.nav-more__list .nav-parent__list a::after { display: none; }
.nav-more__list .nav-parent__list a { min-height: 34px; padding: 6px 10px; font-size: .76rem; opacity: .78; }

/* Template header-row rules (`.primary-navigation ul`, `.bl-nav ul`,
   `.ch-nav ul`) are written for the top-level row but also match these nested
   lists — centring the panel's items and spreading them with the row gap, and
   dragging the hover-underline pseudo-element into the panels. This file
   loads after every template sheet, so these same-specificity rules win the
   tie and keep the panels' own geometry. */
nav .nav-parent__list,
nav .nav-more__list { align-items: stretch; justify-content: flex-start; }
nav .nav-parent__list { gap: 2px; }
nav .nav-more__list { gap: 0; }
/* The header row's `.primary-navigation ul { display: flex }` must not
   force a closed More panel open. Match its specificity and state explicitly. */
nav .nav-more > .nav-more__list { display: none; }
nav .nav-more.is-open > .nav-more__list { display: flex; }
nav .nav-parent__list a::after {
  content: '→'; position: static; height: auto; background: none;
  transform: translateX(-5px); transition: opacity 150ms ease, transform 150ms ease;
}
nav .nav-parent__list a:hover::after,
nav .nav-parent__list a:focus-visible::after { transform: translateX(0); }

@keyframes cv-submenu-enter {
  from { opacity: 0; transform: translateY(-4px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Each template switches to its mobile drawer at a different width. */
@media (max-width: 1100px) {
  html.has-js #field-nav .nav-parent { display: block; width: 100%; }
  html.has-js #field-nav .nav-parent__toggle { display: inline-flex; position: absolute; top: 2px; right: 0; min-width: 44px; min-height: 44px; margin: 0; }
  html.has-js #field-nav .nav-parent > a:first-child { display: flex; min-height: 48px; align-items: center; padding-right: 50px; }
  html.has-js #field-nav .nav-parent__list { position: static; transform: none; min-width: 0; margin: 2px 0 12px; padding: 5px 8px 7px 14px; background: color-mix(in srgb, white 8%, transparent); border: 0; border-left: 2px solid var(--cv-submenu-accent); border-radius: 0; box-shadow: none; animation: none; }
  html.has-js #field-nav .nav-parent__list::before { display: none; }
  html.has-js #field-nav .nav-more__list .nav-parent__toggle { display: none; }
}
@media (max-width: 900px) {
  html.has-js [data-primary-nav] .nav-parent { display: block; width: 100%; }
  html.has-js [data-primary-nav] .nav-parent__toggle { display: inline-flex; position: absolute; top: 2px; right: 0; min-width: 44px; min-height: 44px; margin: 0; }
  html.has-js [data-primary-nav] .nav-parent > a:first-child { display: flex; min-height: 48px; align-items: center; padding-right: 50px; }
  html.has-js [data-primary-nav] .nav-parent__list { position: static; transform: none; min-width: 0; margin: 2px 0 12px; padding: 5px 8px 7px 14px; background: color-mix(in srgb, var(--cv-submenu-accent) 7%, transparent); border: 0; border-left: 2px solid var(--cv-submenu-accent); border-radius: 0; box-shadow: none; animation: none; }
  html.has-js [data-primary-nav] .nav-parent__list::before { display: none; }
  html.has-js [data-primary-nav] .nav-more__list .nav-parent__toggle { display: none; }
}
@media (max-width: 860px) {
  html.has-js #primary-navigation .nav-parent { display: block; width: 100%; }
  html.has-js #primary-navigation .nav-parent__toggle { display: inline-flex; position: absolute; top: 2px; right: 0; min-width: 44px; min-height: 44px; margin: 0; }
  html.has-js #primary-navigation .nav-parent > a:first-child { display: flex; min-height: 48px; align-items: center; padding-right: 50px; }
  html.has-js #primary-navigation .nav-parent__list { position: static; transform: none; min-width: 0; margin: 2px 0 12px; padding: 5px 8px 7px 14px; background: color-mix(in srgb, var(--cv-submenu-accent) 7%, transparent); border: 0; border-left: 2px solid var(--cv-submenu-accent); border-radius: 0; box-shadow: none; animation: none; }
  html.has-js #primary-navigation .nav-parent__list::before { display: none; }
  html.has-js #primary-navigation .nav-more__list .nav-parent__toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-parent__toggle, .nav-parent__toggle span, .nav-parent__list, .nav-parent__list a, .nav-parent__list a::after { animation: none; transition: none; }
}

/* Photo viewer — shared by every template. Deliberately neutral: the overlay is
   a utility, so it looks the same everywhere while each template styles its own
   grid. Appended to each template's stylesheet at build time. */

.cv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(8, 12, 10, 0.92);
  backdrop-filter: blur(6px);
}
.cv-lightbox[hidden] { display: none; }
body.cv-lightbox-open { overflow: hidden; }
.cv-lightbox__figure {
  margin: 0;
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.cv-lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}
.cv-lightbox figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  line-height: 1.5;
}
.cv-lightbox__meta, .cv-lightbox__count {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}
.cv-lightbox__close, .cv-lightbox__nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease;
}
.cv-lightbox__close:hover, .cv-lightbox__nav:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.6); }
.cv-lightbox__close {
  position: absolute;
  top: clamp(12px, 3vw, 26px);
  right: clamp(12px, 3vw, 26px);
  width: 46px;
  height: 46px;
  font-size: 1.7rem;
  border-radius: 50%;
}
.cv-lightbox__nav {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  font-size: 2rem;
  border-radius: 50%;
}
.cv-lightbox__nav[hidden] { display: none; }
.cv-lightbox__close:focus-visible, .cv-lightbox__nav:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 700px) {
  .cv-lightbox { padding: 12px; }
  .cv-lightbox__nav { position: absolute; bottom: 18px; width: 46px; height: 46px; }
  .cv-lightbox__nav--prev { left: 18px; }
  .cv-lightbox__nav--next { right: 18px; }
  .cv-lightbox__figure img { max-height: calc(100vh - 210px); }
}

/* Shared grid defaults — each template overrides spacing/shape in its own file. */
.pk-gallery-grid, .fn-gallery-grid, .bl-gallery-grid, .ch-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.pk-gallery-grid[hidden], .fn-gallery-grid[hidden], .bl-gallery-grid[hidden], .ch-gallery-grid[hidden] { display: none; }
.pk-gallery-item, .fn-gallery-item, .bl-gallery-item, .ch-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
}
.pk-gallery-item img, .fn-gallery-item img, .bl-gallery-item img, .ch-gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 320ms ease;
}
.pk-gallery-item:hover img, .fn-gallery-item:hover img, .bl-gallery-item:hover img, .ch-gallery-item:hover img { transform: scale(1.04); }
.pk-gallery-item__caption, .fn-gallery-item__caption, .bl-gallery-item__caption, .ch-gallery-item__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 22px 12px 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0;
  transition: opacity 200ms ease;
}
.pk-gallery-item:hover .pk-gallery-item__caption,
.fn-gallery-item:hover .fn-gallery-item__caption,
.bl-gallery-item:hover .bl-gallery-item__caption,
.ch-gallery-item:hover .ch-gallery-item__caption { opacity: 1; }
@media (hover: none) {
  .pk-gallery-item__caption, .fn-gallery-item__caption, .bl-gallery-item__caption, .ch-gallery-item__caption { opacity: 1; }
}

/* Album switcher (shared shape; colours come from each template's tokens) */
.pk-gallery-switch, .fn-gallery-switch, .bl-gallery-switch, .ch-gallery-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.pk-gallery-switch__tab, .fn-gallery-switch__tab, .bl-gallery-switch__tab, .ch-gallery-switch__tab {
  padding: 9px 18px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.62;
}
.pk-gallery-switch__tab small, .fn-gallery-switch__tab small, .bl-gallery-switch__tab small, .ch-gallery-switch__tab small {
  margin-left: 6px;
  opacity: 0.7;
  font-size: 0.72em;
}
.pk-gallery-switch__tab.is-active, .fn-gallery-switch__tab.is-active,
.bl-gallery-switch__tab.is-active, .ch-gallery-switch__tab.is-active { opacity: 1; }
.gallery__description { max-width: 60ch; margin-bottom: 22px; }

/* Photo carousel — shared by every template. One large photo at a time with the
   next showing at the edge. It takes its colour from the text around it and its
   corners from the template (--radius), so it sits in each design without a
   look of its own. Appended to each template's stylesheet at build time. */

.cv-carousel {
  --cv-slide: 72%;
  --cv-gap: clamp(10px, 1.4vw, 18px);
  --cv-ease: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.cv-carousel[hidden] { display: none; }

.cv-carousel__track {
  position: relative;
  display: flex;
  gap: var(--cv-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cv-carousel__track::-webkit-scrollbar { display: none; }
.cv-carousel__track:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.cv-carousel__slide {
  position: relative;
  flex: 0 0 var(--cv-slide);
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  /* A quick flick stops at the next photo instead of sailing past several. */
  scroll-snap-stop: always;
  border-radius: var(--cv-carousel-radius, var(--radius, 0px));
  background: rgba(127, 127, 127, 0.14);
}
.cv-carousel__slide:only-child { flex-basis: 100%; }
.cv-carousel__link { display: block; cursor: zoom-in; }
.cv-carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: min(64vh, 560px);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.cv-carousel__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 56px clamp(14px, 2vw, 24px) clamp(12px, 1.6vw, 18px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.4;
  text-wrap: balance;
  pointer-events: none;
}

/* With the script running, the photo in view is at full strength and the ones
   either side sit back. Without it every photo stays as it is. */
.cv-carousel.is-ready .cv-carousel__slide img { transition: filter 520ms var(--cv-ease); }
.cv-carousel.is-ready .cv-carousel__slide:not(.is-current) img { filter: saturate(0.5) brightness(0.8); }
.cv-carousel.is-ready .cv-carousel__caption { transition: opacity 320ms ease, transform 520ms var(--cv-ease); }
.cv-carousel.is-ready .cv-carousel__slide:not(.is-current) .cv-carousel__caption { opacity: 0; transform: translateY(8px); }
.cv-carousel.is-dragging .cv-carousel__track { scroll-snap-type: none; }
.cv-carousel.is-dragging .cv-carousel__link { cursor: grabbing; }

.cv-carousel__bar {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(14px, 1.8vw, 22px);
}
.cv-carousel__bar[hidden] { display: none; }
.cv-carousel__count {
  margin: 0;
  min-width: 5ch;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cv-carousel__count b { font-weight: 700; }
.cv-carousel__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.cv-carousel__progress {
  flex: 1;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(127, 127, 127, 0.3);
  background: color-mix(in srgb, currentColor 18%, transparent);
}
.cv-carousel__progress i {
  display: block;
  height: 100%;
  background: currentColor;
  transform: scaleX(var(--cv-progress, 0));
  transform-origin: left center;
  transition: transform 520ms var(--cv-ease);
}
.cv-carousel__buttons { display: flex; gap: 8px; }
.cv-carousel__button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(127, 127, 127, 0.5);
  border-color: color-mix(in srgb, currentColor 32%, transparent);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}
.cv-carousel__button[hidden] { display: none; }
.cv-carousel__button svg { width: 18px; height: 18px; }
.cv-carousel__button:hover:not(:disabled) {
  border-color: currentColor;
  background: rgba(127, 127, 127, 0.16);
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.cv-carousel__button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.cv-carousel__button:disabled { opacity: 0.32; cursor: default; }
.cv-carousel__icon-play { display: none; }
.cv-carousel__button:not(.is-playing) .cv-carousel__icon-play { display: block; }
.cv-carousel__button:not(.is-playing) .cv-carousel__icon-pause { display: none; }

@media (max-width: 700px) {
  .cv-carousel { --cv-slide: 86%; }
  .cv-carousel__slide img { aspect-ratio: 4 / 3; }
  .cv-carousel__caption { font-size: 0.86rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cv-carousel.is-ready .cv-carousel__slide img,
  .cv-carousel.is-ready .cv-carousel__caption,
  .cv-carousel__progress i { transition: none; }
  .cv-carousel.is-ready .cv-carousel__slide:not(.is-current) .cv-carousel__caption { transform: none; }
}

.cv-directory {
  padding:80px 0;
  color:inherit;
}
.cv-directory__inner {
  width:calc(100% - 64px);
  max-width:1280px;
  margin:auto;
}
.cv-directory__heading {
  max-width:700px;
  margin-bottom:32px;
}
.cv-directory__heading h2 {
  font-family:var(--serif,Georgia,serif);
  font-size:clamp(32px,4vw,52px);
  line-height:1.12;
  margin:0 0 16px;
}
.cv-directory__grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}
.cv-directory__item {
  border:1px solid var(--line,#ccc);
  min-width:0;
}
.cv-directory__item img {
  width:100%;
  aspect-ratio:1.6;
  object-fit:cover;
}
.cv-directory__copy {
  padding:24px;
}
.cv-directory__copy h3 {
  font-size:23px;
  margin:0 0 12px;
}
.cv-directory__copy p {
  line-height:1.65;
  white-space:pre-line;
}
.cv-directory__link {
  display:inline-flex;
  gap:24px;
  align-items:center;
  background:none;
  border:0;
  border-bottom:1px solid currentColor;
  padding:8px 0;
  font:inherit;
  font-weight:600;
  color:inherit;
  text-decoration:none;
  cursor:pointer;
}
.cv-directory--clubs .cv-directory__grid {
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.cv-directory--clubs .cv-directory__copy h3 {
  font-size:19px;
}
.cv-directory__link:focus-visible {
  outline:2px solid currentColor;
  outline-offset:5px;
}
@media(max-width:900px) {
  .cv-directory__grid,.cv-directory--clubs .cv-directory__grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:540px) {
  .cv-directory {
    padding:48px 0;
  }
  .cv-directory__inner {
    width:calc(100% - 36px);
  }
  .cv-directory__grid,.cv-directory--clubs .cv-directory__grid {
    grid-template-columns:1fr;
  }
}

/* Coaching section — shared by every template. The club's coaches, their lessons and
   prices, and a way to book, filled from the Coaching module. It takes its colour, type
   and corners from the template around it: each template names its brand colour
   differently, so the first one that is set is used. Appended to each template's
   stylesheet at build time. */

.cv-coaching {
  --cvc-brand: var(--pine, var(--court, var(--club, var(--green, #1d4c3a))));
  --cvc-line: var(--line, rgba(0, 0, 0, 0.16));
  --cvc-soft: var(--ink-soft, var(--muted, #56635d));
  --cvc-card: var(--white, #fff);
  --cvc-radius: var(--radius-medium, var(--radius, 4px));
  padding: 80px 0;
  color: inherit;
}
.cv-coaching__inner {
  width: calc(100% - 64px);
  max-width: 1280px;
  margin: 0 auto;
}

.cv-coaching__heading {
  max-width: 720px;
  margin-bottom: 40px;
}
.cv-coaching__heading h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
}
.cv-coaching__eyebrow {
  margin: 0 0 12px;
  color: var(--cvc-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.cv-coaching__blurb {
  margin: 0;
  color: var(--cvc-soft);
  font-size: 1.06rem;
  line-height: 1.65;
}

/* ── Coaches ── */
.cv-coaching__coaches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.cv-coaching__coaches--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cv-coaching__coaches--solo { grid-template-columns: minmax(0, 1fr); }

.cv-coaching__coach {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--cvc-line);
  border-radius: var(--cvc-radius);
  background: var(--cvc-card);
}
.cv-coaching__photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  /* Faces sit in the upper part of a portrait. */
  object-position: 50% 22%;
}
/* No photo, in a row where others have one: the coach's initials hold the place. */
.cv-coaching__photo--blank {
  display: grid;
  place-items: center;
  background: rgba(127, 127, 127, 0.12);
  color: var(--cvc-brand);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.cv-coaching__copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 24px;
}
.cv-coaching__copy h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.15;
}
.cv-coaching__copy .cv-coaching__eyebrow { margin: 0; }
.cv-coaching__role {
  margin: 0;
  font-weight: 600;
}
.cv-coaching__credentials {
  margin: 0;
  color: var(--cvc-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}
.cv-coaching__bio,
.cv-coaching__more .cv-rich-content {
  color: var(--cvc-soft);
  line-height: 1.65;
}
.cv-coaching__bio p:last-child,
.cv-coaching__more p:last-child { margin-bottom: 0; }
.cv-coaching__more summary {
  width: fit-content;
  padding: 4px 0;
  font-weight: 600;
  cursor: pointer;
}
.cv-coaching__more[open] summary { margin-bottom: 8px; }
.cv-coaching__more summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.cv-coaching__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  font-size: 0.95rem;
}
.cv-coaching__contact a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* Their next free time, filled in by coaching.js; it takes no room until it has something to say. */
.cv-coaching__next {
  margin: 0;
  color: var(--cvc-brand);
  font-size: 0.95rem;
  font-weight: 600;
}
.cv-coaching__next[hidden] { display: none; }

/* One coach: the photo beside the words, the whole profile in view. */
.cv-coaching__coaches--solo .cv-coaching__coach { flex-direction: row; }
.cv-coaching__coaches--solo .cv-coaching__photo {
  flex: 0 0 auto;
  width: 38%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
}
.cv-coaching__coaches--solo .cv-coaching__copy {
  justify-content: center;
  gap: 12px;
  padding: clamp(24px, 4vw, 56px);
}
.cv-coaching__coaches--solo .cv-coaching__copy h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cv-coaching__coaches--solo .cv-coaching__bio { max-width: 62ch; }

/* ── Buttons ── */
.cv-coaching__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--cvc-brand);
  border-radius: var(--radius-small, var(--radius, 4px));
  background: var(--cvc-brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.cv-coaching__button:hover { filter: brightness(1.14); }
.cv-coaching__button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.cv-coaching__button--quiet {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}
.cv-coaching__button--quiet:hover { filter: none; background: rgba(127, 127, 127, 0.12); }
/* A coach's next free time and their button. Along a row of coaches they line up at the foot of the cards. */
.cv-coaching__book {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
}
.cv-coaching__coaches--solo .cv-coaching__book { margin-top: 8px; }

/* ── Lessons, prices and packages ── */
.cv-coaching__panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 32px 56px;
  margin-top: 48px;
}
.cv-coaching__coaches + .cv-coaching__panels,
.cv-coaching__coaches + .cv-coaching__notes { margin-top: 56px; }
/* A price list on its own does not run the width of the page: a name and its price stay within a glance. */
.cv-coaching__panel:only-child { max-width: 820px; }
.cv-coaching__panel h3,
.cv-coaching__note h3 {
  margin: 0 0 14px;
  font-size: 1.4rem;
  line-height: 1.2;
}
.cv-coaching__lessons {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--cvc-line);
  list-style: none;
}
.cv-coaching__lesson {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 20px;
  align-items: baseline;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--cvc-line);
}
.cv-coaching__lesson-name { font-weight: 600; }
.cv-coaching__lesson-length {
  margin-left: 6px;
  color: var(--cvc-soft);
  font-size: 0.92rem;
  font-weight: 400;
  white-space: nowrap;
}
.cv-coaching__lesson-price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.cv-coaching__lesson-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--cvc-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}
/* A coach's own price list, inside their card. */
.cv-coaching__coach .cv-coaching__lessons {
  margin-top: 4px;
  font-size: 0.95rem;
}
.cv-coaching__coach .cv-coaching__lesson { padding: 10px 0; }

/* ── The club's own words ── */
.cv-coaching__notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px 56px;
  margin-top: 48px;
}
.cv-coaching__note p {
  max-width: 68ch;
  margin: 0 0 10px;
  color: var(--cvc-soft);
  line-height: 1.65;
}
.cv-coaching__note p:last-child { margin-bottom: 0; }
.cv-coaching__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .cv-coaching__coaches,
  .cv-coaching__coaches--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-coaching__coaches--solo .cv-coaching__photo { width: 42%; }
}
@media (max-width: 620px) {
  .cv-coaching { padding: 48px 0; }
  .cv-coaching__inner { width: calc(100% - 36px); }
  .cv-coaching__heading { margin-bottom: 28px; }
  .cv-coaching__coaches,
  .cv-coaching__coaches--duo { grid-template-columns: minmax(0, 1fr); }
  .cv-coaching__coaches--solo .cv-coaching__coach { flex-direction: column; }
  /* One coach to a row, so there is nothing for the initials to keep level. */
  .cv-coaching__photo--blank { display: none; }
  /* Square on a phone: a wider crop cuts a close portrait off at the chin. */
  .cv-coaching__coaches--solo .cv-coaching__photo {
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
  }
  .cv-coaching__copy,
  .cv-coaching__coaches--solo .cv-coaching__copy { padding: 20px; }
  .cv-coaching__panels,
  .cv-coaching__notes { margin-top: 36px; }
  .cv-coaching__button { width: 100%; }
  .cv-coaching__book { align-items: stretch; }
}

.cv-rich-content { overflow-wrap: anywhere; }
.cv-rich-content img { max-width: 100%; height: auto; }
.cv-rich-content figure { margin: 1.5rem 0; }
.cv-rich-content figcaption { font-size: .9rem; margin-top: .5rem; }
.cv-rich-content ul, .cv-rich-content ol { padding-left: 1.5rem; margin-block: 1rem; }
.cv-rich-content__table { overflow-x: auto; margin-block: 1.5rem; }
.cv-rich-content table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.cv-rich-content th, .cv-rich-content td { border-bottom: 1px solid #d5d8dc; padding: .65rem; text-align: left; vertical-align: top; }
.cv-rich-content th { font-weight: 700; }
.cv-rich-content a { text-decoration: underline; text-underline-offset: .18em; }
/* A link the author marked as a button takes the template's own button classes; this only keeps it out of the text's link styling. */
.cv-rich-content a.cv-button { text-decoration: none; margin: .35rem .6rem .35rem 0; }

/* Pieces every template shares: the same thing said the same way whichever look a club chose. */

/* An event the club has marked sold out. One strong tag, readable on any template's card. */
.cv-sold-out {
  display: inline-flex;
  align-items: center;
  padding: .32em .7em;
  border-radius: 3px;
  background: #b3261e;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.cv-sold-out-line { margin: 0 0 .9rem; }

/* Get directions, under an address. Inherits the template's link colour. */
.cv-directions { display: inline-flex; align-items: center; gap: .4em; margin-top: .6rem; font-weight: 600; }

/* The club's social media pages: one mark per network, in the footer's own text colour. Written
   with :where() so they carry no weight: a template's own rules for its footer class always win. */
:where(.cv-social) { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-left: -12px; }
:where(.cv-social) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: inherit;
  opacity: .82;
  transition: opacity 160ms ease, background-color 160ms ease;
}
:where(.cv-social) a:hover { opacity: 1; background-color: color-mix(in srgb, currentColor 10%, transparent); }
:where(.cv-social) a:focus-visible { opacity: 1; outline: 2px solid currentColor; outline-offset: 2px; }
:where(.cv-social) svg { display: block; width: 20px; height: 20px; }

/* A map of the club where the template has no map frame of its own. */
.cv-map { margin-top: 1.5rem; }
.cv-map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; }

/* Meet the team section — shared by every template. The people who work at the club, by
   department, from the Meet the team module. It takes its colour, type and corners from the
   template around it: each template names its brand colour differently, so the first one
   that is set is used. Appended to each template's stylesheet at build time. */

.cv-team {
  --cvt-brand: var(--pine, var(--court, var(--club, var(--green, #1d4c3a))));
  --cvt-line: var(--line, rgba(0, 0, 0, 0.16));
  --cvt-soft: var(--ink-soft, var(--muted, #56635d));
  --cvt-radius: var(--radius-medium, var(--radius, 4px));
  --cvt-problem: #b42318;
  padding: 80px 0;
  color: inherit;
}
.cv-team__inner {
  width: calc(100% - 64px);
  max-width: 1280px;
  margin: 0 auto;
}

.cv-team__heading {
  max-width: 720px;
  margin-bottom: 40px;
}
.cv-team__heading h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
}
.cv-team__eyebrow {
  margin: 0 0 12px;
  color: var(--cvt-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.cv-team__blurb {
  margin: 0;
  color: var(--cvt-soft);
  font-size: 1.06rem;
  line-height: 1.65;
}

/* ── Departments ── */
.cv-team__group + .cv-team__group { margin-top: 56px; }
.cv-team__department {
  margin: 0 0 28px;
  padding-top: 18px;
  border-top: 1px solid var(--cvt-line);
  font-size: 1.4rem;
  line-height: 1.2;
}

/* ── People ──
   Four to a row. One or two people keep a card's width at the start of the row, where a
   stretched portrait would dwarf the page. */
.cv-team__people {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px 28px;
}
.cv-team__person {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.cv-team__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--cvt-radius);
  background: rgba(127, 127, 127, 0.12);
  object-fit: cover;
  /* Faces sit in the upper part of a portrait. */
  object-position: 50% 22%;
}
/* No photo, where others have one: their initials hold the place so the names stay level. */
.cv-team__photo--blank {
  display: grid;
  place-items: center;
  color: var(--cvt-brand);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.cv-team__copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.cv-team__name {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}
.cv-team__role {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}
.cv-team__intro {
  margin: 2px 0 0;
  color: var(--cvt-soft);
  line-height: 1.55;
}
.cv-team__facts {
  margin: 0;
  color: var(--cvt-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}
.cv-team__bio,
.cv-team__more {
  max-width: 62ch;
  color: var(--cvt-soft);
  line-height: 1.65;
}
.cv-team__bio p,
.cv-team__more p { margin: 0 0 10px; }
.cv-team__bio p:last-child,
.cv-team__more p:last-child { margin-bottom: 0; }
.cv-team__more summary {
  width: fit-content;
  padding: 4px 0;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cv-team__more[open] summary { margin-bottom: 8px; }
.cv-team__more summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.cv-team__reach {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 4px 0 0;
  font-size: 0.95rem;
}
.cv-team__reach a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* ── Buttons ── */
.cv-team__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: var(--radius-small, var(--radius, 4px));
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.cv-team__button:hover { background: rgba(127, 127, 127, 0.12); }
.cv-team__button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.cv-team__button--solid {
  border-color: var(--cvt-brand);
  background: var(--cvt-brand);
  color: #fff;
}
.cv-team__button--solid:hover {
  background: var(--cvt-brand);
  filter: brightness(1.14);
}
.cv-team__button[disabled] {
  opacity: 0.6;
  cursor: default;
}
/* Along a row, the buttons line up at the foot of the cards. */
.cv-team__act {
  margin: auto 0 0;
  padding-top: 10px;
}
.cv-team__act .cv-team__button { margin-top: 0; }

/* ── The message form ──
   Dark words on white whatever the template: a form has to be read and filled in, not themed. */
.cv-team__dialog {
  width: min(100% - 32px, 520px);
  max-height: min(90vh, 760px);
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--cvt-radius);
  background: #fff;
  color: #1a1a1a;
  overflow: auto;
}
.cv-team__dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.cv-team__form,
.cv-team__sent {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
}
.cv-team__form[hidden],
.cv-team__sent[hidden] { display: none; }
.cv-team__dialog h3 {
  margin: 0;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1.2;
}
.cv-team__dialog h3:focus { outline: none; }
.cv-team__form-note,
.cv-team__sent p {
  margin: 0;
  color: #4b5563;
  line-height: 1.55;
}
.cv-team__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cv-team__field label {
  font-size: 0.95rem;
  font-weight: 600;
}
.cv-team__field label span {
  color: #4b5563;
  font-weight: 400;
}
.cv-team__field input,
.cv-team__field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #6b7280;
  border-radius: var(--radius-small, var(--radius, 4px));
  background: #fff;
  color: #111;
  font: inherit;
  /* 16px, so an iPhone does not zoom in on the field. */
  font-size: 1rem;
  line-height: 1.4;
}
.cv-team__field textarea { resize: vertical; }
.cv-team__field input:focus-visible,
.cv-team__field textarea:focus-visible {
  outline: 2px solid var(--cvt-brand);
  outline-offset: 2px;
}
.cv-team__field [aria-invalid='true'] { border-color: var(--cvt-problem); }
.cv-team__field-problem,
.cv-team__form-problem {
  margin: 0;
  color: var(--cvt-problem);
  font-size: 0.92rem;
  line-height: 1.45;
}
.cv-team__field-problem[hidden],
.cv-team__form-problem[hidden] { display: none; }
.cv-team__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cv-team__form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.cv-team__form-actions .cv-team__button { margin-top: 0; }

@media (max-width: 1040px) {
  .cv-team__people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cv-team__people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
}
/* A phone: one person to a row, their photo beside their name, so a long team is a short scroll. */
@media (max-width: 560px) {
  .cv-team { padding: 48px 0; }
  .cv-team__inner { width: calc(100% - 36px); }
  .cv-team__heading { margin-bottom: 28px; }
  .cv-team__group + .cv-team__group { margin-top: 40px; }
  .cv-team__department { margin-bottom: 20px; }
  .cv-team__people { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cv-team__person {
    flex-direction: row;
    align-items: flex-start;
  }
  .cv-team__photo {
    flex: 0 0 96px;
    width: 96px;
  }
  .cv-team__photo--blank { font-size: 1.8rem; }
  .cv-team__act { margin-top: 0; }
  .cv-team__form,
  .cv-team__sent { padding: 20px; }
  .cv-team__form-actions { flex-direction: column-reverse; }
  .cv-team__form-actions .cv-team__button { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .cv-team__button { transition: background-color 150ms ease-out, filter 150ms ease-out; }
}

/* Testimonials section — shared by every template. What members and visitors say about the club,
   typed in by the club. It takes its colour, type and corners from the template around it: each
   template names its brand colour and its display face differently, so the first one that is set
   is used. Appended to each template's stylesheet at build time. */

.cv-quotes {
  --cvq-brand: var(--pine, var(--court, var(--club, var(--green, #1d4c3a))));
  --cvq-line: var(--line, rgba(0, 0, 0, 0.16));
  --cvq-soft: var(--ink-soft, var(--muted, #56635d));
  --cvq-card: var(--white, #fff);
  --cvq-radius: var(--radius-medium, var(--radius, 4px));
  --cvq-face: var(--serif, var(--display, inherit));
  padding: 80px 0;
  color: inherit;
}
.cv-quotes__inner {
  width: calc(100% - 64px);
  max-width: 1280px;
  margin: 0 auto;
}

.cv-quotes__heading {
  max-width: 720px;
  margin-bottom: 40px;
}
.cv-quotes__heading h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
}
.cv-quotes__heading h2:last-child { margin-bottom: 0; }
.cv-quotes__eyebrow {
  margin: 0 0 12px;
  color: var(--cvq-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.cv-quotes__blurb {
  margin: 0;
  color: var(--cvq-soft);
  font-size: 1.06rem;
  line-height: 1.65;
}

/* ── Quotes ──
   Three across; two and four sit two across so no quote is left alone on a row. */
.cv-quotes__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.cv-quotes__list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cv-quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 32px 30px 28px;
  border: 1px solid var(--cvq-line);
  border-top: 3px solid var(--cvq-brand);
  border-radius: var(--cvq-radius);
  background: var(--cvq-card);
}

.cv-quote__stars {
  margin: 0;
  color: var(--cvq-brand);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  line-height: 1;
}
.cv-quote__unlit { opacity: 0.25; }

.cv-quote__words {
  position: relative;
  margin: 0;
  font-family: var(--cvq-face);
  font-size: 1.14rem;
  line-height: 1.55;
  text-transform: none;
}
.cv-quote__words p { margin: 0 0 12px; }
.cv-quote__words p:last-child { margin-bottom: 0; }
/* Opening and closing marks, drawn here; testimonials.ts takes off any the club typed, so a quote never shows two. */
.cv-quote__words p:first-child::before { content: '\201C'; }
.cv-quote__words p:last-child::after { content: '\201D'; }

.cv-quote__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 4px;
  line-height: 1.4;
}
.cv-quote__name { font-weight: 600; }
.cv-quote__detail {
  color: var(--cvq-soft);
  font-size: 0.92rem;
}

/* One quote: drawn large in the middle of the page, as a pull quote. */
.cv-quotes__list--one {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
}
.cv-quotes__list--one .cv-quote {
  padding: 0;
  border: 0;
  background: none;
}
.cv-quotes__list--one .cv-quote__stars { font-size: 1.3rem; }
.cv-quotes__list--one .cv-quote__words {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.35;
}
.cv-quotes__list--one .cv-quote__who {
  padding-top: 12px;
  border-top: 1px solid var(--cvq-line);
  width: fit-content;
  min-width: 200px;
}

@media (max-width: 1040px) {
  .cv-quotes__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cv-quotes { padding: 48px 0; }
  .cv-quotes__inner { width: calc(100% - 36px); }
  .cv-quotes__heading { margin-bottom: 28px; }
  .cv-quotes__list,
  .cv-quotes__list--two { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cv-quote { padding: 26px 22px 22px; }
  .cv-quote__words { font-size: 1.06rem; }
}

/* Form section — shared by every template. One of the website's forms drawn in the page, to fill in
   there and then. It takes its colour, type and corners from the template around it: each template
   names its brand colour differently, so the first one that is set is used. Fields are 16px so a
   phone does not zoom, and every control is at least 48px high to press.
   Appended to each template's stylesheet at build time. */

.cv-form {
  --cvf-brand: var(--pine, var(--court, var(--club, var(--green, #1d4c3a))));
  --cvf-line: var(--line, rgba(0, 0, 0, 0.16));
  --cvf-soft: var(--ink-soft, var(--muted, #56635d));
  --cvf-field: var(--white, #fff);
  --cvf-radius: var(--radius-small, var(--radius, 4px));
  --cvf-problem: #b42318;
  padding: 80px 0;
  color: inherit;
}
.cv-form__inner {
  width: calc(100% - 64px);
  max-width: 760px;
  margin: 0 auto;
}

.cv-form__heading { margin-bottom: 32px; }
.cv-form__heading h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.12;
}
.cv-form__heading h2:last-child { margin-bottom: 0; }
.cv-form__intro {
  margin: 0;
  color: var(--cvf-soft);
  font-size: 1.06rem;
  line-height: 1.65;
}

.cv-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}
.cv-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.cv-form__field--wide { grid-column: 1 / -1; }
.cv-form__field > label {
  font-weight: 600;
  line-height: 1.4;
}
.cv-form__optional {
  color: var(--cvf-soft);
  font-weight: 400;
}

.cv-form__field input:not([type='checkbox']),
.cv-form__field select,
.cv-form__field textarea {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid rgba(0, 0, 0, 0.32);
  border-radius: var(--cvf-radius);
  background: var(--cvf-field);
  color: #1a1a1a;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}
.cv-form__field textarea {
  min-height: 120px;
  resize: vertical;
}
.cv-form__field input:focus-visible,
.cv-form__field select:focus-visible,
.cv-form__field textarea:focus-visible {
  outline: 2px solid var(--cvf-brand);
  outline-offset: 1px;
  border-color: var(--cvf-brand);
}
.cv-form__field input[aria-invalid='true'],
.cv-form__field select[aria-invalid='true'],
.cv-form__field textarea[aria-invalid='true'] { border-color: var(--cvf-problem); }

/* Tick boxes: the box beside its words, the whole line pressable. */
.cv-form__check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
}
.cv-form__check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--cvf-brand);
}
.cv-form__check > label {
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}
.cv-form__check .cv-form__problem { grid-column: 2; }
.cv-form__consent { margin-top: 24px; }

.cv-form__problem,
.cv-form__send-problem {
  margin: 0;
  color: var(--cvf-problem);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}
.cv-form__send-problem { margin-top: 18px; }

.cv-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cv-form__actions { margin: 24px 0 0; }
.cv-form__button {
  min-height: 48px;
  padding: 0 32px;
  border: 0;
  border-radius: var(--cvf-radius);
  background: var(--cvf-brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cv-form__button:hover { filter: brightness(1.1); }
.cv-form__button:focus-visible {
  outline: 2px solid var(--cvf-brand);
  outline-offset: 3px;
}
.cv-form__button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.cv-form__sent {
  padding: 28px 30px;
  border: 1px solid var(--cvf-line);
  border-left: 4px solid var(--cvf-brand);
  border-radius: var(--cvf-radius);
  background: var(--cvf-field);
}
.cv-form__sent h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  line-height: 1.25;
}
.cv-form__sent h3:focus { outline: none; }
.cv-form__sent p {
  margin: 0;
  color: var(--cvf-soft);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .cv-form { padding: 48px 0; }
  .cv-form__inner { width: calc(100% - 36px); }
  .cv-form__fields { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cv-form__button { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .cv-form__button { transition: filter 150ms ease-out; }
}

/* The photo or film at the top of an action card — shared by every template. It sits inside the
   card's own padding, so every design's card keeps its shape, and takes the template's corners.
   Appended to each template's stylesheet at build time. */

.cv-card-media {
  align-self: stretch;
  width: 100%;
  margin: 0 0 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-small, var(--radius, 2px));
  background: rgba(127, 127, 127, 0.14);
}
.cv-card-media img,
.cv-card-media video {
  display: block;
  width: 100%;
  height: 100%;
}
.cv-card-media img { object-fit: cover; }
.cv-card-media video {
  object-fit: contain;
  background: #000;
}

/* Films section — shared by every template. One film in a player, the others in a list beside it on a
   computer and under it on a phone. It takes its colour, type and corners from the template around
   it: each template names its brand colour differently, so the first one that is set is used.
   Appended to each template's stylesheet at build time. */

.cv-films {
  --cvv-brand: var(--pine, var(--court, var(--club, var(--green, #1d4c3a))));
  --cvv-line: var(--line, rgba(0, 0, 0, 0.16));
  --cvv-soft: var(--ink-soft, var(--muted, #56635d));
  --cvv-radius: var(--radius-medium, var(--radius, 4px));
  padding: 80px 0;
  color: inherit;
}
.cv-films__inner {
  width: calc(100% - 64px);
  max-width: 1280px;
  margin: 0 auto;
}

.cv-films__heading {
  max-width: 720px;
  margin-bottom: 36px;
}
.cv-films__heading h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
}
.cv-films__heading h2:last-child { margin-bottom: 0; }
.cv-films__eyebrow {
  margin: 0 0 12px;
  color: var(--cvv-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.cv-films__blurb {
  margin: 0;
  color: var(--cvv-soft);
  font-size: 1.06rem;
  line-height: 1.65;
}

/* One film fills the width, up to a comfortable size; with a list, the player takes two thirds. */
.cv-films__stage { max-width: 980px; }
.cv-films__stage--list {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 28px;
  max-width: none;
  align-items: start;
}

.cv-films__player { margin: 0; }
.cv-films__player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--cvv-radius);
  background: #000;
  object-fit: contain;
}
.cv-films__caption {
  margin-top: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.cv-films__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 540px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}
.cv-films__pick {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 8px;
  border-radius: var(--cvv-radius);
  color: inherit;
  text-decoration: none;
}
.cv-films__pick:hover { background: rgba(127, 127, 127, 0.1); }
.cv-films__pick:focus-visible {
  outline: 2px solid var(--cvv-brand);
  outline-offset: 2px;
}
.cv-films__pick[aria-current='true'] {
  background: rgba(127, 127, 127, 0.12);
  box-shadow: inset 3px 0 0 var(--cvv-brand);
}
.cv-films__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--cvv-radius) / 2);
  background: #1a1a1a;
}
.cv-films__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* A play mark on every still, so the list reads as films. */
.cv-films__thumb::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-40%, -50%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
.cv-films__name {
  font-size: 0.95rem;
  line-height: 1.35;
}
.cv-films__pick[aria-current='true'] .cv-films__name { font-weight: 600; }

@media (max-width: 860px) {
  .cv-films { padding: 48px 0; }
  .cv-films__inner { width: calc(100% - 36px); }
  .cv-films__stage--list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cv-films__list { max-height: none; }
  .cv-films__pick { grid-template-columns: 96px minmax(0, 1fr); }
}
