/* Public site design (docs/HOME2_DESIGN_SYSTEM.md). Self-contained: does not load style.css.
   Every colour, font and radius below is a token. Use var(--h2-*) everywhere else;
   tools/design_check.php warns about raw values outside this block. */

:root {
  /* Brand */
  --h2-navy: #0B1F4B;
  --h2-navy-2: #16306B;
  --h2-yellow: #DFEE6E;
  --h2-yellow-hover: #EEFC7A;
  --h2-green: #0B7A4F;
  --h2-green-dark: #075A3A;
  --h2-coral: #FF6B4A;
  --h2-coral-deep: #C93D22;     /* Pasalo date block: white text on it (5.0:1) */
  /* Text */
  --h2-ink: #10162A;
  --h2-ink-2: #3B4256;
  --h2-muted: #5A6175;
  --h2-on-navy: #C9D2EA;       /* body copy on navy */
  --h2-on-navy-2: #DCE3F5;     /* nav links on navy */
  --h2-star: #8A5A00;          /* star rating text on cards */
  --h2-star-fill: #F5A623;     /* rating star icons */
  --h2-on-navy-3: #A9B4D3;     /* footer text on navy */
  /* Surfaces and lines */
  --h2-white: #FFFFFF;
  --h2-page: #F4F6FA;          /* grey behind card grids, soft boxes */
  --h2-fill: #F2F4F8;          /* inputs, chips */
  --h2-line: #E2E6EE;
  --h2-line-strong: #C3CBDA;   /* dashed "add" cards */
  /* Feedback */
  --h2-green-soft: #DDF3E7;    /* light-green pill, success alert */
  --h2-green-tint: #F1FAF5;    /* hover / picked state of a green-outlined option */
  --h2-green-line: #B9E2CC;    /* light-green outline (open booking slots) */
  --h2-coral-soft: #FFE8E1;    /* error alert, warning notice */
  --h2-coral-ink: #8A2A12;     /* text on --h2-coral-soft, error text */
  --h2-warn-soft: #FFF4D6;     /* warning callout */
  --h2-warn-ink: #7A4B00;
  --h2-info-soft: #E6EEFB;     /* info callout */
  --h2-info-ink: #1E3A8A;
  /* Type */
  --h2-font: 'Saira', system-ui, sans-serif;
  --h2-display: 'Saira Condensed', sans-serif;
  --h2-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Shape and depth */
  --h2-radius-2xs: 4px;        /* legend swatches and other marks under 20px */
  --h2-radius-xs: 8px;         /* tiny tiles: small logos, thumbnails, code */
  --h2-radius-sm: 12px;        /* inputs, small image tiles, date badges */
  --h2-radius: 14px;           /* cards, alerts */
  --h2-radius-lg: 18px;        /* panels, filter bar, form cards */
  --h2-radius-xl: 22px;        /* feature card, CTA, slider */
  --h2-radius-pill: 999px;     /* buttons, pills, chips */
  --h2-shadow: 0 1px 2px rgba(16, 22, 42, 0.06), 0 6px 18px rgba(16, 22, 42, 0.06);
  --h2-shadow-lift: 0 10px 30px rgba(16, 22, 42, 0.12); /* elements overlapping the navy */
}

*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute always wins over a component's own display rule. */
.h2 [hidden] { display: none !important; }

body.h2 {
  margin: 0;
  background: var(--h2-white);
  color: var(--h2-ink);
  font-family: var(--h2-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.h2 a { color: var(--h2-green); }
.h2 img { max-width: 100%; display: block; }
.h2 :focus-visible { outline: 3px solid var(--h2-coral); outline-offset: 2px; }
.h2-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.h2-wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.h2-muted { color: var(--h2-muted); }
.h2-small { font-size: 14px; color: var(--h2-ink-2); }

/* Buttons and pills */
.h2-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font: inherit; font-weight: 700; font-size: 15px;
  border: 0; border-radius: var(--h2-radius-pill); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.h2-btn:hover { transform: translateY(-1px); }
.h2 .h2-btn-yellow { background: var(--h2-yellow); color: var(--h2-ink); }
.h2 .h2-btn-yellow:hover { background: var(--h2-yellow-hover); color: var(--h2-ink); }
.h2 .h2-btn-green { background: var(--h2-green); color: #fff; }
.h2 .h2-btn-green:hover { background: var(--h2-green-dark); color: #fff; }
.h2 .h2-btn-ink { background: var(--h2-ink); color: #fff; }
.h2 .h2-btn-ink:hover { background: #000; color: #fff; }
.h2-btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

.h2-pill {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 4px 10px; border-radius: var(--h2-radius-pill);
  font-size: 13px; font-weight: 600; line-height: 1.2;
  background: var(--h2-fill); color: var(--h2-ink-2);
}
.h2-pill-hot { background: var(--h2-yellow); color: var(--h2-ink); }
.h2-pill-coral { background: var(--h2-coral); color: var(--h2-ink); }
.h2-pill-ink { background: var(--h2-ink); color: #fff; }
.h2-price { font-weight: 700; font-size: 17px; color: var(--h2-ink); }
.h2-price-unit { font-size: 14px; font-weight: 600; color: var(--h2-muted); }
.h2-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: auto; padding-top: 6px; }

/* Header */
.h2-top { position: sticky; top: 0; z-index: 100; background: var(--h2-navy); color: #fff; }
/* js/site.js sets the sticky header height so in-page anchors land below it */
html { scroll-padding-top: var(--h2-top-pinned, 0px); }
.h2-top-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; }
.h2 .h2-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.h2-brand img { width: 36px; height: 36px; object-fit: contain; border-radius: var(--h2-radius-xs); background: #fff; }
.h2-brand span { font-family: var(--h2-display); font-weight: 800; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; }
.h2-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 auto; font-weight: 600; font-size: 15px; }
.h2 .h2-nav a, .h2 .h2-plain { color: var(--h2-on-navy-2); text-decoration: none; padding: 8px 0; white-space: nowrap; }
.h2 .h2-nav a:hover, .h2 .h2-plain:hover { color: var(--h2-yellow); }
.h2-nav-icon { display: none; }
.h2-burger, .h2-drawer { display: none; }
.h2 .h2-btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.h2 .h2-btn-outline:hover { box-shadow: inset 0 0 0 2px var(--h2-yellow); color: var(--h2-yellow); }
/* On light surfaces the outline button is a grey ring with ink text. Put .h2-on-light on the
   button row (or add a container here) rather than restyling the button per page. */
.h2 :is(.h2-on-light, .dash-main, .dash-modal, .h2-actions, .h2-pcta, .h2-sharebar, .h2-roster-pager, .pqr-actions) .h2-btn-outline { color: var(--h2-ink); box-shadow: inset 0 0 0 2px var(--h2-line); }
.h2 :is(.h2-on-light, .dash-main, .dash-modal, .h2-actions, .h2-pcta, .h2-sharebar, .h2-roster-pager, .pqr-actions) .h2-btn-outline:hover { color: var(--h2-ink); box-shadow: inset 0 0 0 2px var(--h2-ink); }
/* Square icon-only button (e.g. Download). */
.h2-btn-icon { width: 48px; padding: 0; }
.h2-btn-icon.h2-btn-sm { width: 40px; }
.h2-nav-mobile, .h2-nav-band { display: none; }
.h2-top-actions { display: flex; gap: 16px; align-items: center; }
.h2-top-actions .h2-btn { min-height: 44px; padding: 0 18px; }

/* Hero */
.h2-hero { background: var(--h2-navy); color: #fff; padding: 48px 0 72px; position: relative; overflow: hidden; }
.h2-hero::after {
  /* court kitchen lines, decorative */
  content: ''; position: absolute; right: -120px; top: -40px; width: 520px; height: 520px;
  border: 3px solid rgba(223, 238, 110, 0.14); border-radius: 50%; pointer-events: none;
}
/* Admin hero background image (Settings): photo under a navy wash so the text keeps its contrast */
.h2-hero-photo { background: linear-gradient(90deg, rgba(11, 31, 75, .96) 0%, rgba(11, 31, 75, .86) 55%, rgba(11, 31, 75, .72) 100%), var(--h2-hero-bg) center / cover no-repeat, var(--h2-navy); }
.h2-hero-grid { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.h2-hero-kicker { margin: 0 0 -8px; color: var(--h2-yellow); }
.h2-hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.h2-hero h1 {
  margin: 0; font-family: var(--h2-display); font-weight: 800;
  font-size: clamp(48px, 6.6vw, 92px); line-height: 0.95; letter-spacing: -0.01em; text-transform: uppercase;
}
.h2-hero h1 .h2-hl { color: var(--h2-yellow); }
/* Typewriter headline: the invisible longest phrase and the live text share one
   grid cell, so the hero keeps the same height while words type and erase. */
.h2-type { display: grid; }
.h2-type-ghost, .h2-type-live { grid-area: 1 / 1; }
.h2-type-ghost { visibility: hidden; }
.h2-type-word { display: block; white-space: nowrap; }
.h2-type-word::after {
  content: ''; display: inline-block; width: 0.07em; height: 0.78em; margin-left: 0.06em;
  background: var(--h2-yellow); vertical-align: -0.02em; animation: h2-caret 1s steps(1) infinite;
}
@keyframes h2-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .h2-type-word::after { display: none; } }
.h2-hero-copy > p { margin: 0; max-width: 520px; font-size: 19px; color: var(--h2-on-navy); }
.h2-search {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; margin-top: 8px;
  background: #fff; border-radius: var(--h2-radius-pill); max-width: 620px;
}
.h2-search select {
  flex: 1 1 150px; min-width: 0; height: 48px; padding: 0 16px;
  font: inherit; font-weight: 600; color: var(--h2-ink);
  background: var(--h2-fill); border: 0; border-radius: var(--h2-radius-pill);
}
.h2-search .h2-btn { flex: 0 0 auto; }

/* Hero cards: stacked in one grid cell (sized to the tallest) and cross-faded in
   step with the headline. Hidden cards use visibility so they can't be tabbed to. */
.h2-feature-stack { flex: 1 1 380px; min-width: 0; max-width: 480px; display: grid; }
.h2 .h2-feature {
  grid-area: 1 / 1; min-width: 0;
  display: flex; flex-direction: column; gap: 6px; padding: 28px;
  background: var(--h2-navy-2); color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.10); border-radius: var(--h2-radius-xl);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s, border-color .2s ease;
}
.h2 .h2-feature.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.h2 .h2-feature.is-on:hover { transform: translateY(-2px); border-color: rgba(223, 238, 110, 0.45); color: #fff; }
.h2-feature-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--h2-yellow); }
.h2-feature-time { font-family: var(--h2-display); font-weight: 800; font-size: 44px; line-height: 1; }
.h2-feature-name { font-family: var(--h2-display); font-weight: 800; font-size: 34px; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.h2-feature-title { font-size: 22px; font-weight: 700; line-height: 1.2; }
.h2-feature-sub { color: var(--h2-on-navy); font-weight: 500; }
.h2-feature-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; }
.h2-feature .h2-pill { background: rgba(255, 255, 255, 0.10); color: #fff; }
.h2-feature-go { margin-left: auto; font-weight: 700; color: var(--h2-yellow); }
.h2-feature-empty .h2-btn { align-self: flex-start; margin-top: 12px; }

/* Sections */
.h2-section { padding-top: 64px; padding-bottom: 64px; scroll-margin-top: 12px; }
.h2-band-green { background: var(--h2-green); color: #fff; }
.h2-band-navy { background: var(--h2-navy); color: #fff; }
.h2-band-green .h2-eyebrow { color: #fff; }
.h2 .h2-band-green .h2-more, .h2 .h2-band-navy .h2-more { color: #fff; }
.h2 .h2-band-navy .h2-more:hover { color: var(--h2-yellow); }
/* On a coloured band the light card border reads as a white outline; the band itself frames the card */
.h2 .h2-band .h2-card:not(.h2-card-add) { border-width: 0; }
.h2 .h2-band .h2-card-add, .h2 .h2-band a.h2-card-add:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.h2-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 20px; margin-bottom: 24px; }
.h2-head h2 { margin: 0; font-family: var(--h2-display); font-weight: 800; font-size: 46px; line-height: 1; text-transform: uppercase; }
.h2-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--h2-green); }
.h2-band-navy .h2-eyebrow { color: var(--h2-yellow); }
.h2-more { font-weight: 700; text-decoration: none; }
.h2-more:hover { text-decoration: underline; }

.h2-grid { display: grid; gap: 18px; }
.h2-grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.h2-grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* Cards */
.h2 .h2-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--h2-white); color: var(--h2-ink); text-decoration: none;
  border: 1px solid var(--h2-line); border-radius: var(--h2-radius); overflow: hidden;
  box-shadow: var(--h2-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.h2 a.h2-card:hover, .h2 .h2-tourney:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16,22,42,.06), 0 14px 30px rgba(16,22,42,.12); color: var(--h2-ink); }
.h2-card-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
/* Stacked rows sit together at the foot of the card. */
.h2-card-body .h2-row + .h2-row { margin-top: 0; padding-top: 2px; }
/* One type scale for every card: title and price 17px bold, everything else 14px. */
.h2-card-body strong, .h2-deal > strong { font-size: 17px; line-height: 1.3; }
/* City: first line of every listing card (h2_card_city()) */
.h2-card-city { display: flex; align-items: baseline; line-height: 16px; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--h2-muted); }
.h2-card-city-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2-card-rating { flex-shrink: 0; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--h2-muted); }
.h2-card-rating b { font-weight: 700; color: var(--h2-ink); }
.h2-card-star { color: var(--h2-star-fill); }
.h2-card-body h3 { margin: 4px 0 0; font-size: 17px; line-height: 1.3; }
.h2-card .h2-muted, .h2-card .h2-small { font-size: 14px; line-height: 1.4; }
.h2 .h2-card-body h3 a { color: var(--h2-ink); text-decoration: none; }

/* Colour fills for cards without images */
.h2-tone-green { background: var(--h2-green); color: #fff; }
.h2-tone-navy { background: var(--h2-navy); color: #fff; }
.h2-tone-coral { background: var(--h2-coral); color: var(--h2-ink); }
.h2-tone-yellow { background: var(--h2-yellow); color: var(--h2-ink); }

/* Open play cards */
.h2-op-time { display: flex; flex-direction: column; padding: 16px 18px; font-family: var(--h2-display); font-weight: 800; font-size: 34px; line-height: 1; }
.h2-op-time small { font-family: var(--h2-font); font-weight: 600; font-size: 13px; opacity: .85; margin-top: 6px; }
.h2-op-time .h2-op-day { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; opacity: 1; }
.h2-op-repeat { font-weight: 700; color: var(--h2-green-dark); }

/* Open play / pasalo schedule rows (h2_row_openplay / h2_row_pasalo): when | what & where | price.
   The title link stretches over the row; the Contact host button sits above it. */
.h2-sched-list { display: flex; flex-direction: column; gap: 10px; }
.h2 .h2-sched {
  position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto auto; gap: 20px; align-items: center;
  padding: 14px 18px;
}
.h2 .h2-sched:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16,22,42,.06), 0 14px 30px rgba(16,22,42,.12); }
.h2 .h2-sched-deal { border-color: transparent; }
/* The "when" column is a full-height colour block in the section colour:
   green (white text) for open play, coral (ink text) for pasalo. Negative margins
   take it to the card's top, bottom and left edges. */
.h2-sched-when {
  display: flex; flex-direction: column; justify-content: center; align-self: stretch; gap: 2px;
  margin: -14px 0 -14px -18px; padding: 14px 16px 14px 18px;
  background: var(--h2-green); color: #fff;
  border-radius: var(--h2-radius) 0 0 var(--h2-radius);
}
.h2-sched-deal .h2-sched-when { background: var(--h2-coral); color: var(--h2-ink); }
.h2 .h2-sched-when .h2-muted, .h2 .h2-sched-when .h2-op-repeat { color: inherit; opacity: .9; }
.h2-sched-day { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.h2-sched-start { font-family: var(--h2-display); font-weight: 800; font-size: 24px; line-height: 1.05; white-space: nowrap; }
.h2-sched-times span { white-space: nowrap; }
.h2-sched-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.h2 .h2-sched-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
  font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--h2-ink); text-decoration: none;
}
.h2-sched-title::after { content: ""; position: absolute; inset: 0; }
.h2 .h2-sched:hover .h2-sched-title { text-decoration: underline; text-underline-offset: 2px; }
.h2-sched-detail { display: flex; align-items: flex-start; gap: 6px; }
.h2-sched-detail svg { flex-shrink: 0; width: 14px; height: 14px; margin-top: 3px; }
.h2-sched-detail b { font-weight: 700; color: var(--h2-ink-2); }
.h2-sched-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.h2-sched-side .h2-price, .h2-sched-was { white-space: nowrap; }
.h2-sched-was { display: flex; align-items: center; gap: 8px; }
.h2-sched-side .h2-pill { align-self: auto; }
.h2-sched-side .h2-btn { position: relative; z-index: 1; }
.h2-sched-deal .h2-sched-was .h2-price { color: var(--h2-green); }
.h2-sched-go { display: flex; align-self: center; color: var(--h2-muted); transition: transform .18s ease, color .18s ease; }
.h2-sched-go svg { width: 20px; height: 20px; }
.h2 .h2-sched:hover .h2-sched-go { color: var(--h2-ink); transform: translateX(3px); }
/* The "add" card at the foot of a schedule list (home page) is row-shaped too. */
.h2 .h2-sched-list .h2-card-add { flex-direction: row; min-height: 0; padding: 18px; }
.h2 .h2-card-add {
  align-items: center; justify-content: center; gap: 8px; min-height: 180px;
  background: transparent; border: 2px dashed var(--h2-line-strong); box-shadow: none; font-weight: 700; color: var(--h2-ink-2);
  text-align: center; padding: 16px;
}
/* The plus is drawn with two bars, not a "+" glyph: font metrics left the glyph off-centre. */
.h2-add-plus { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--h2-yellow); color: var(--h2-ink); }
.h2-add-plus::before, .h2-add-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 3px; border-radius: var(--h2-radius-pill); background: currentColor; transform: translate(-50%, -50%); }
.h2-add-plus::after { transform: translate(-50%, -50%) rotate(90deg); }

/* Media blocks */
.h2-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.h2-media img { width: 100%; height: 100%; object-fit: cover; }
.h2-media-tall { aspect-ratio: 1 / 1; }
.h2-media-mark { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--h2-display); font-weight: 800; font-size: 72px; opacity: .9; }
.h2-media-logo { background: var(--h2-fill); }
.h2 .h2-media-logo img { object-fit: cover; }
.h2 .h2-media-photo img { object-position: center 25%; }
/* Shop / service categories along the bottom of the card (h2_card_tags()) */
.h2-card-tags { justify-content: flex-start; gap: 6px; }
.h2-card-tags .h2-pill { font-size: 12px; }
.h2-pill-more { background: transparent; box-shadow: inset 0 0 0 1px var(--h2-line); color: var(--h2-muted); }
.h2-date {
  position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column; align-items: center;
  min-width: 58px; padding: 6px 8px; border-radius: var(--h2-radius-sm); background: #fff; color: var(--h2-ink);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.h2-date b { font-family: var(--h2-display); font-size: 30px; line-height: 1; letter-spacing: 0; }
.h2-courtlines::before { content: ''; position: absolute; inset: 18px; border: 2px solid currentColor; opacity: .45; }
.h2-courtlines i { position: absolute; left: 50%; top: 18px; bottom: 18px; width: 2px; background: currentColor; opacity: .45; }
.h2-courtlines b { position: absolute; left: 32%; right: 32%; top: 18px; bottom: 18px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; opacity: .3; }
.h2-card-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--h2-muted); }

/* City chips */
.h2-citybar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.h2-citychip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--h2-line-strong); border-radius: var(--h2-radius-pill); background: var(--h2-fill); color: var(--h2-ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.h2 a.h2-citychip { color: var(--h2-ink); }
.h2 a.h2-citychip:hover { background: var(--h2-yellow); border-color: var(--h2-yellow); color: var(--h2-ink); }
.h2-citychip b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: var(--h2-radius-pill); background: var(--h2-navy); color: #fff; font-size: 12px; }

/* Pasalo */
.h2 .h2-deal { gap: 6px; padding: 18px; border: 0; }
.h2-deal-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.h2-deal-when { font-size: 14px; font-weight: 700; color: var(--h2-green); }
.h2-empty { display: flex; flex-direction: column; gap: 6px; padding: 28px; border: 2px dashed var(--h2-line); border-radius: var(--h2-radius); color: var(--h2-muted); }
.h2-empty strong { color: var(--h2-ink); font-size: 18px; }
.h2-band .h2-empty { border-color: rgba(255,255,255,.25); color: var(--h2-on-navy); }
.h2-band .h2-empty strong { color: #fff; }
/* Home: the add card under a section's empty note (components/h2_home.php) */
.h2-empty-add { margin-top: 10px; }

/* People and clubs */
.h2 .h2-person { align-items: flex-start; gap: 6px; padding: 22px; }
.h2-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-family: var(--h2-display); font-weight: 800; font-size: 28px; margin-bottom: 8px; }
.h2-avatar-square { border-radius: var(--h2-radius-lg); }
img.h2-avatar { background: var(--h2-fill); border: 1px solid var(--h2-line); object-fit: contain; }
.h2-person strong { font-size: 18px; line-height: 1.25; }

/* CTA */
.h2-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 36px; border-radius: var(--h2-radius-xl); background: var(--h2-yellow); }
.h2-cta > div { flex: 1 1 360px; min-width: 0; }
.h2-cta h2 { margin: 0; font-family: var(--h2-display); font-weight: 800; font-size: 38px; line-height: 1.05; text-transform: uppercase; }
.h2-cta p { margin: 6px 0 0; color: var(--h2-ink-2); font-size: 17px; }

/* Section pages (browse.php) */
.h2-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.h2 .h2-nav a[aria-current="page"] { color: var(--h2-yellow); }
.h2-pagehead { background: var(--h2-navy); color: #fff; padding: 40px 0 44px; }
.h2-pagehead-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; }
.h2-pagehead .h2-eyebrow { color: var(--h2-yellow); }
.h2-pagehead h1 { margin: 0; font-family: var(--h2-display); font-weight: 800; font-size: clamp(44px, 6vw, 72px); line-height: .95; text-transform: uppercase; }
.h2-pagehead p:not(.h2-eyebrow) { margin: 10px 0 0; max-width: 560px; font-size: 18px; color: var(--h2-on-navy); }
.h2-browse { display: flow-root; background: var(--h2-page); padding: 0 0 64px; min-height: 50vh; } /* flow-root: child margins stay inside the grey band */
.h2-filters {
  position: relative; top: -22px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
  padding: 18px; background: #fff; border-radius: var(--h2-radius-lg); box-shadow: 0 10px 30px rgba(16, 22, 42, .12);
}
.h2-filter { display: flex; flex-direction: column; gap: 4px; flex: 1 1 150px; min-width: 0; }
.h2-filter-q { flex: 2 1 240px; }
.h2-filter-sort { flex: 0 1 130px; }
/* Grouped bar (browse pages): the search box sits on its own line above the rest,
   capped so it doesn't stretch full width; the other fields, sort and the button
   share one row below it. */
.h2-filters-grouped { flex-direction: column; align-items: stretch; gap: 6px; }
.h2-filters-grouped .h2-filter-q { flex: 0 0 auto; width: 100%; max-width: 360px; }
.h2-filters-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
/* Narrower basis than .h2-filter's default so up to 5 fields + sort + the button
   still fit this row on one line all the way down to the 960px breakpoint. */
.h2-filters-row .h2-filter { flex: 1 1 105px; }
.h2-filters-row .h2-filter-sort { flex: 0 1 105px; }
@media (max-width: 860px) {
  /* Below this, 105px fields get too cramped to read; fall back to the same
     two-per-row grid the phone breakpoint uses. */
  .h2-filters-row .h2-filter, .h2-filters-row .h2-filter-sort { flex: 1 1 calc(50% - 5px); }
}
.h2-filter label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--h2-muted); }
/* appearance:none drops Safari's own chrome (grey gloss, inner shadow, the date
   field's fixed minimum width that pushed it over its neighbour); 16px stops iOS
   zooming in on focus. Selects get a drawn chevron and cut long text short. */
.h2-filter input, .h2-filter select {
  -webkit-appearance: none; appearance: none; display: block;
  width: 100%; min-width: 0; max-width: 100%; height: 46px; margin: 0; padding: 0 14px;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 42px; color: var(--h2-ink);
  background-color: var(--h2-fill); border: 2px solid transparent; border-radius: var(--h2-radius-sm);
}
.h2-filter select {
  padding-right: 36px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.h2-filter input::-webkit-search-decoration { -webkit-appearance: none; }
.h2-filter input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.h2-filter input[type="date"]::-webkit-calendar-picker-indicator { margin: 0; opacity: .6; cursor: pointer; }
.h2-filter input[type="date"] { display: flex; align-items: center; }
.h2-filter input:focus, .h2-filter select:focus { border-color: var(--h2-green); outline: none; background-color: #fff; }
.h2-filters .h2-btn { min-height: 46px; flex: 0 0 auto; }
/* Tabbed search card (h2_search_tabs()): the card overlaps the page head like the bar; the bar and
   the open-court card inside it drop their own overlap, padding, border and shadow */
.h2-searchtabs {
  position: relative; top: -22px; padding: 14px 18px 18px; background: #fff;
  border-radius: var(--h2-radius-lg); box-shadow: 0 10px 30px rgba(16, 22, 42, .12);
}
.h2-tabs { display: flex; gap: 4px; margin: 0 0 14px; padding: 4px; width: fit-content; max-width: 100%; background: var(--h2-fill); border-radius: var(--h2-radius-pill); }
.h2-tab {
  flex: 1 1 auto; min-height: 38px; padding: 0 18px; border: 0; border-radius: var(--h2-radius-pill);
  background: transparent; color: var(--h2-muted); font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.h2-tab:hover { color: var(--h2-ink); }
.h2-tab[aria-selected="true"] { background: var(--h2-navy); color: #fff; }
.h2-tab:focus-visible { outline: 2px solid var(--h2-green); outline-offset: 2px; }
.h2-searchtabs .h2-filters { top: 0; padding: 0; box-shadow: none; }
.h2-searchtabs .h2-opencourts { margin: 0; padding: 0; border: 0; box-shadow: none; }
/* "Find an open court" (components/h2_booking_search.php): a white card with the filter bar and a result list */
.h2-opencourts { margin: 0 0 24px; padding: 20px; background: #fff; border: 1px solid var(--h2-line); border-radius: var(--h2-radius-lg); box-shadow: var(--h2-shadow); }
.h2-opencourts-head { margin-bottom: 12px; }
.h2-opencourts-head .h2-eyebrow { margin: 0 0 2px; }
.h2-opencourts-head h3 { margin: 0; font-family: var(--h2-display); font-size: 24px; font-weight: 800; line-height: 1.05; text-transform: uppercase; color: var(--h2-ink); }
.h2-opencourts .h2-opencourts-form { top: 0; padding: 0; box-shadow: none; }
.h2-opencourts-results { margin-top: 16px; }
.h2-opencourts-results-page { margin: 0 0 24px; } /* /courts: listed below the search card, in place of the courts grid */
.h2 .h2-opencourts-results-page .h2-opencourt, .h2-opencourts-results-page .h2-opencourts-empty { background: #fff; }
.h2-opencourts-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.h2 .h2-opencourt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--h2-line); border-radius: var(--h2-radius); color: var(--h2-ink); text-decoration: none; }
.h2 .h2-opencourt:hover { border-color: var(--h2-green); }
.h2-opencourt-main { display: flex; flex-direction: column; min-width: 0; }
.h2-opencourt-main strong { overflow-wrap: anywhere; }
.h2-opencourt-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; text-align: right; }
.h2-opencourts-empty { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--h2-radius); background: var(--h2-page); font-size: 14px; color: var(--h2-ink-2); }
.h2-results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -6px 0 20px; }
.h2-results-bar strong { font-size: 18px; margin-right: 6px; }
.h2 .h2-filterchip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: var(--h2-radius-pill); background: var(--h2-navy); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.h2 .h2-filterchip:hover { background: var(--h2-coral); color: var(--h2-ink); }
.h2-filterchip span { font-size: 17px; line-height: 1; }
.h2-clear { font-weight: 700; font-size: 14px; }
.h2-noresults { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px; border: 2px dashed var(--h2-line-strong); border-radius: var(--h2-radius); background: #fff; }
.h2-noresults strong { font-size: 19px; }
.h2-dayhead { display: flex; align-items: center; gap: 10px; margin: 28px 0 14px; font-family: var(--h2-display); font-weight: 800; font-size: 28px; text-transform: uppercase; }
.h2-dayhead:first-of-type { margin-top: 4px; }
.h2-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.h2-pager a, .h2-pager span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--h2-radius-pill); font-weight: 700; text-decoration: none; background: #fff; border: 1px solid var(--h2-line); }
.h2 .h2-pager a { color: var(--h2-ink); }
.h2 .h2-pager a:hover { background: var(--h2-yellow); }
.h2-pager span { background: var(--h2-navy); border-color: var(--h2-navy); color: #fff; }

/* Listing page (profile2.php) */
/* isolation keeps the photo overlay's z-index inside the header, so it can't paint over the fact tiles below */
.h2-phero { position: relative; isolation: isolate; overflow: hidden; background: var(--h2-navy); color: #fff; padding: 20px 0 64px; }
.h2-phero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.h2-phero-photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11, 31, 75, .55) 0%, rgba(11, 31, 75, .92) 75%); }
.h2-phero-inner { position: relative; z-index: 2; }
.h2-phero-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 36px; }
.h2 .h2-phero-back { color: var(--h2-on-navy-2); font-weight: 700; text-decoration: none; padding: 8px 0; }
.h2 .h2-phero-back:hover { color: var(--h2-yellow); }
.h2-phero-share {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--h2-radius-pill);
  background: rgba(255, 255, 255, .12); color: #fff; border: 0; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
}
.h2-phero-share:hover { background: var(--h2-yellow); color: var(--h2-ink); }
.h2-phero-share svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.h2-phero-main { display: flex; align-items: flex-end; gap: 24px; }
.h2-phero-logo {
  flex: 0 0 auto; width: 120px; height: 120px; border-radius: var(--h2-radius-xl); object-fit: contain; background: #fff;
  display: grid; place-items: center; font-family: var(--h2-display); font-weight: 800; font-size: 46px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.h2-phero-logo-round { border-radius: 50%; object-fit: cover; }
.h2-phero-text { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.h2-phero h1 { margin: 0; font-family: var(--h2-display); font-weight: 800; font-size: clamp(40px, 6vw, 72px); line-height: .95; text-transform: uppercase; overflow-wrap: anywhere; }
.h2-phero-tagline { margin: 0; font-size: 19px; color: #fff; font-weight: 600; }
.h2-phero-sub { margin: 0; color: var(--h2-on-navy); font-size: 17px; }
.h2-phero-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.h2-phero-pills .h2-pill { background: var(--h2-navy-2); color: #fff; }
.h2-phero-pills .h2-pill-hot { background: var(--h2-yellow); color: var(--h2-ink); }
.h2-facts { position: relative; z-index: 1; top: -32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: -8px; }
.h2-fact { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: #fff; border-radius: var(--h2-radius-lg); box-shadow: 0 10px 30px rgba(16, 22, 42, .1); }
.h2-fact:first-child { background: var(--h2-yellow); }
.h2-fact span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--h2-ink-2); }
.h2-fact strong { font-family: var(--h2-display); font-weight: 800; font-size: 28px; line-height: 1.05; overflow-wrap: anywhere; }
.h2-profile .h2-wrap > .h2-notice:first-child, .h2-profile .h2-wrap > .h2-pgrid:first-child { margin-top: 32px; }
.h2-notice { margin-bottom: 20px; padding: 14px 18px; border-radius: var(--h2-radius); background: var(--h2-coral-soft); color: var(--h2-coral-ink); font-weight: 700; }

.h2-pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.h2-pmain { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.h2-pmain > .h2-dayhead { margin: 12px 0 -6px; }
.h2-pside { display: flex; flex-direction: column; gap: 16px; }
.h2-panel { padding: 24px; background: #fff; border: 1px solid var(--h2-line); border-radius: var(--h2-radius-lg); box-shadow: var(--h2-shadow); }
.h2-panel-title { margin: 22px 0 10px; font-family: var(--h2-display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.h2-panel > .h2-panel-title:first-child, .h2-panel > .rating-summary + .h2-panel-title { margin-top: 0; }
.h2-prose { margin: 0; white-space: pre-line; line-height: 1.65; color: var(--h2-ink-2); }
.h2-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 0; }
.h2-details > div { min-width: 0; }
.h2-details .h2-wide { grid-column: 1 / -1; }
.h2-details dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--h2-muted); }
.h2-details dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.h2 .h2-details dd a { color: var(--h2-green); }
.h2-hours { list-style: none; margin: 0; padding: 0; }
.h2-hours li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: var(--h2-radius-sm); }
.h2-hours li:nth-child(odd) { background: var(--h2-page); }
.h2-hours li.h2-today { background: var(--h2-yellow); font-weight: 700; }
.h2-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.h2-gallery button { padding: 0; border: 0; border-radius: var(--h2-radius-sm); overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; background: var(--h2-fill); }
.h2-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.h2-gallery button:hover img { transform: scale(1.05); }

.h2-actions { display: flex; flex-direction: column; gap: 10px; }
.h2-actions .h2-panel-title { margin-bottom: 4px; }
.h2-actions .h2-btn { width: 100%; white-space: normal; text-align: center; line-height: 1.2; padding-top: 10px; padding-bottom: 10px; }
/* Call-to-action card under the main details panel (book, contact, register). */
.h2-pcta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.h2-pcta .h2-btn { white-space: normal; text-align: center; line-height: 1.2; padding-top: 10px; padding-bottom: 10px; }
.h2-pcta-foot { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--h2-line); }
.h2-pcta-foot:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.h2-pcta > .h2-panel-title { flex-basis: 100%; margin-bottom: 4px; }
.h2-pcta-note { flex-basis: 100%; margin: 0; font-size: 14px; line-height: 1.5; color: var(--h2-muted); }
.h2-claim { background: var(--h2-green-soft); }
.h2-claim p, .h2-pside .h2-muted { margin: 0 0 14px; line-height: 1.5; }
.h2 a.h2-morelink { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: #fff; background: var(--h2-green); border: 0; }
.h2 a.h2-morelink:hover { background: var(--h2-green-dark); color: #fff; }
.h2-morelink span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; }
.h2-morelink strong { font-family: var(--h2-display); font-size: 26px; text-transform: uppercase; }

/* Tournament page (event2.php) */
.h2-pill-green { background: var(--h2-green-soft); color: var(--h2-green-dark); }
.h2-pill-green-solid { background: var(--h2-green); color: #fff; }
/* Soft status tones (h2_pill(): registration, payment and protest status) */
.h2-pill-warn { background: var(--h2-warn-soft); color: var(--h2-warn-ink); }
.h2-pill-info { background: var(--h2-info-soft); color: var(--h2-info-ink); }
.h2-pill-bad { background: var(--h2-coral-soft); color: var(--h2-coral-ink); }
.h2-chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.h2-divisions { list-style: none; margin: 0; padding: 0; border: 1px solid var(--h2-line); border-radius: var(--h2-radius); overflow: hidden; }
.h2-divisions li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.h2-divisions li + li { border-top: 1px solid var(--h2-line); }
.h2-divisions li > div { display: flex; flex-direction: column; min-width: 0; }
.h2-divisions .h2-muted { font-size: 14px; }
.h2-divisions .h2-pill { align-self: center; white-space: nowrap; }
.h2-poster { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--h2-radius); overflow: hidden; background: var(--h2-fill); cursor: zoom-in; }
.h2-poster img { width: 100%; height: auto; }
/* A native disabled button (e.g. switched on by a script) looks the same as -disabled. */
.h2 .h2-btn-disabled, .h2 .h2-btn:disabled { background: var(--h2-line); border-color: transparent; color: var(--h2-muted); cursor: default; }
.h2 .h2-btn-disabled:hover, .h2 .h2-btn:disabled:hover { transform: none; }
.h2-host { display: flex; align-items: center; gap: 14px; }
.h2 a.h2-host { text-decoration: none; color: var(--h2-ink); }
.h2 a.h2-host:hover { border-color: var(--h2-ink); }
.h2-host .h2-avatar { width: 56px; height: 56px; margin: 0; font-size: 22px; flex: 0 0 auto; }
.h2-host span { display: flex; flex-direction: column; min-width: 0; }
.h2-host small { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--h2-muted); }
.h2-host strong { font-size: 17px; line-height: 1.25; }

/* Admin-driven extras: announcement banner, highlights slider, blog cards, sponsors, ad card, iOS install hint */
.h2-banner { background: var(--h2-yellow); color: var(--h2-ink); font-weight: 700; text-align: center; padding: 10px 0; font-size: 15px; }
.h2-slider-wrap { position: relative; padding-top: 40px; }
.h2-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--h2-radius-xl); }
.h2-slider::-webkit-scrollbar { display: none; }
.h2-slide { position: relative; flex: 0 0 100%; aspect-ratio: 21 / 8; min-height: 260px; scroll-snap-align: start; background: var(--h2-navy); color: #fff; overflow: hidden; }
.h2-slide picture, .h2-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h2-slide-link { position: absolute; inset: 0; z-index: 1; }
.h2-slide-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 80px 32px 28px; background: linear-gradient(180deg, transparent, rgba(11, 31, 75, .9)); }
.h2-slide-copy .h2-eyebrow { color: var(--h2-yellow); margin: 0; }
.h2-slide-copy h2 { margin: 0; font-family: var(--h2-display); font-weight: 800; font-size: clamp(28px, 4vw, 44px); line-height: 1; text-transform: uppercase; }
.h2-slide-copy p { margin: 0; max-width: 520px; color: var(--h2-on-navy-2); }
.h2-slider-nav { position: absolute; right: 40px; top: 56px; display: flex; gap: 8px; z-index: 3; }
.h2-slider-nav button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--h2-ink); font-size: 26px; line-height: 1; cursor: pointer; }
.h2-slider-nav button:hover { background: var(--h2-yellow); }
.h2-citybar-lg .h2-citychip { min-height: 48px; padding: 0 18px; font-size: 16px; }
.h2-post-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.h2-sponsors { padding: 40px 0 48px; background: var(--h2-page); border-top: 1px solid var(--h2-line); overflow: hidden; }
.h2-sponsors .h2-eyebrow { margin-bottom: 18px; }
/* Still row by default; js/site.js adds .is-scrolling and loops the logos. */
.h2-sponsor-viewport { overflow: hidden; }
.h2-sponsor-track { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.h2-sponsor-viewport.is-scrolling { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.h2-sponsor-viewport.is-scrolling .h2-sponsor-track { flex-wrap: nowrap; width: max-content; animation: h2-marquee var(--h2-marquee-time, 40s) linear infinite; }
.h2-sponsor-viewport.is-scrolling:hover .h2-sponsor-track { animation-play-state: paused; }
.h2 .h2-sponsor { display: flex; align-items: center; height: 72px; color: var(--h2-ink-2); font-weight: 700; text-decoration: none; white-space: nowrap; }
.h2-sponsor img { height: 64px; width: auto; max-width: 180px; object-fit: contain; }
@keyframes h2-marquee { to { transform: translateX(calc(-50% - 24px)); } } /* half the track plus half the 48px gap */
.h2-ad { padding: 18px; }
.h2-ad-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.h2-ad-head span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--h2-muted); }
.h2-ad-head strong { font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2-ad-img { display: block; aspect-ratio: 1 / 1; border-radius: var(--h2-radius-sm); overflow: hidden; background: var(--h2-fill); }
.h2-ad-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.h2 a.h2-ad-img:hover img { transform: scale(1.03); }
.h2-ios-banner { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--h2-radius); background: var(--h2-navy); color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.h2-ios-banner span { flex: 1; }
.h2-ios-banner button { width: 36px; height: 36px; border: 0; background: none; color: #fff; font-size: 24px; cursor: pointer; }
/* Floating chat button (components/click_to_chat.php; the menu opens from js/site.js).
   Below the install banner and modals; brand colours only on the channel icon tiles. */
.c2c { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.h2 .c2c-fab { gap: 10px; padding-left: 10px; box-shadow: var(--h2-shadow-lift), 0 0 0 1px rgba(255, 255, 255, .2); } /* the ring keeps it visible over navy */
.c2c-fab-icon, .c2c-channel-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; color: #fff; }
.c2c-fab-icon { width: 30px; height: 30px; }
.c2c-fab-icon svg { width: 20px; height: 20px; fill: currentColor; }
.c2c .is-messenger { background: #1877F2; } /* design-check: allow (Messenger brand) */
.c2c .is-whatsapp { background: #25D366; } /* design-check: allow (WhatsApp brand) */
.c2c-popup { width: 290px; max-width: calc(100vw - 32px); padding: 14px; border: 1px solid var(--h2-line); border-radius: var(--h2-radius-lg); background: #fff; box-shadow: var(--h2-shadow-lift); }
.c2c-popup-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.c2c-popup-title { margin: 0; font-size: 14px; font-weight: 700; }
.c2c-close { width: 32px; height: 32px; margin-right: -6px; border: 0; border-radius: 50%; background: none; color: var(--h2-muted); font-size: 24px; line-height: 1; cursor: pointer; }
.c2c-close:hover { background: var(--h2-fill); color: var(--h2-ink); }
.h2 .c2c-channel { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--h2-line); border-radius: var(--h2-radius-sm); color: var(--h2-ink); text-decoration: none; }
.c2c-channel + .c2c-channel { margin-top: 8px; }
.h2 .c2c-channel:hover { border-color: var(--h2-line-strong); background: var(--h2-page); }
.c2c-channel-icon { width: 38px; height: 38px; }
.c2c-channel-icon svg { width: 22px; height: 22px; fill: currentColor; }
.c2c-channel-info strong { display: block; font-size: 14px; line-height: 1.25; }
.c2c-channel-info span { display: block; margin-top: 2px; color: var(--h2-muted); font-size: 12px; }
@media (max-width: 640px) { .c2c { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); } }
@media print { .c2c { display: none; } }
.h2-browse > .h2-wrap > .h2-listresults:first-child > .h2-results-bar:first-child { padding-top: 28px; }
/* Filtering in place (js/site.js data-swap): the old list dims while the new one loads. */
.h2-listresults { transition: opacity .15s; }
.h2-listresults[aria-busy="true"] { opacity: .5; }
@media (prefers-reduced-motion: reduce) {
}
@media (max-width: 640px) {
  .h2-slider-wrap { padding-top: 24px; }
  .h2-slide { aspect-ratio: 4 / 5; min-height: 0; }
  .h2-slide-copy { padding: 60px 20px 20px; }
  .h2-slider-nav { right: 28px; top: 36px; }
}

/* Text pages: about2, terms2, privacy2, blog2, blog_post2 */
.h2-doc .h2-wrap { max-width: 900px; }
.h2-doc .h2-panel { margin-top: 32px; padding: 36px 40px; }
.h2-rich { color: var(--h2-ink-2); font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }
.h2-rich > :first-child { margin-top: 0; }
.h2-rich h2 { margin: 36px 0 12px; font-family: var(--h2-display); font-weight: 800; font-size: 28px; line-height: 1.1; text-transform: uppercase; color: var(--h2-ink); }
.h2-rich h3 { margin: 24px 0 8px; font-size: 20px; color: var(--h2-ink); }
.h2-rich p { margin: 0 0 16px; }
.h2-rich ul, .h2-rich ol { margin: 0 0 18px; padding-left: 22px; }
.h2-rich li { margin-bottom: 8px; }
.h2-rich li::marker { color: var(--h2-green); }
.h2-rich strong { color: var(--h2-ink); }
.h2 .h2-rich a:not(.h2-btn) { color: var(--h2-green) !important; font-weight: 600; }
.h2-rich img, .h2-rich video { max-width: 100%; height: auto; border-radius: var(--h2-radius); }
.h2-rich iframe { max-width: 100%; border: 0; border-radius: var(--h2-radius); }
.h2-rich blockquote { margin: 20px 0; padding: 14px 20px; border-left: 4px solid var(--h2-yellow); background: var(--h2-page); border-radius: 0 var(--h2-radius-sm) var(--h2-radius-sm) 0; color: var(--h2-ink); }
.h2-rich table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; display: block; overflow-x: auto; }
.h2-rich th, .h2-rich td { padding: 8px 12px; border: 1px solid var(--h2-line); text-align: left; }
.h2-rich hr { border: 0; border-top: 1px solid var(--h2-line); margin: 28px 0; }
.h2-rich .highlight-notice-box, .h2-rich .about-notice-box { margin: 0 0 18px; padding: 16px 20px; border-radius: var(--h2-radius); background: var(--h2-yellow); color: var(--h2-ink); }
.h2-about .about-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 4px 0 18px; }
.h2 .h2-about a.about-feature { display: block; padding: 16px 18px; border: 1px solid var(--h2-line); border-radius: var(--h2-radius); color: var(--h2-ink) !important; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.h2 .h2-about a.about-feature:hover { border-color: var(--h2-ink); transform: translateY(-2px); }
.h2-about .about-feature h3 { margin: 0 0 4px; font-family: var(--h2-display); font-weight: 800; font-size: 20px; text-transform: uppercase; }
.h2-about .about-feature p { margin: 0; font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--h2-ink-2); }
.h2-about .about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.h2-about .about-panel { padding: 20px 22px; border-radius: var(--h2-radius-lg); background: var(--h2-page); }
.h2-about .about-panel h3 { margin-top: 0; }

.h2-posthead { padding-bottom: 72px; }
.h2-posthead .h2-wrap { max-width: 1100px; }
.h2-posthead h1 { margin: 6px 0 0; font-family: var(--h2-display); font-weight: 800; font-size: clamp(36px, 5vw, 60px); line-height: 1; text-transform: uppercase; max-width: 900px; }
.h2-post-meta { margin: 20px 0 0 !important; font-size: 15px !important; color: var(--h2-yellow) !important; font-weight: 700; }
.h2-postgrid { max-width: 1100px; margin: -40px auto 0; position: relative; }
.h2-notice-top { max-width: 1100px; margin: 24px auto 0; position: relative; z-index: 1; }
.h2-notice-top + .h2-postgrid { margin-top: 20px; }
.h2-postpanel { padding: 0; overflow: hidden; }
.h2-post-hero { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.h2-postbody { padding: 32px 36px 8px; }
.h2-post-tags, .h2-sharebar { padding: 0 36px; }
.h2 .h2-post-tags a { text-decoration: none; }
.h2 .h2-post-tags a:hover { background: var(--h2-yellow); color: var(--h2-ink); }
.h2-sharebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 0; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--h2-line); }
.h2-sharebar > span { margin-right: 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--h2-muted); }
.h2-minilist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.h2 .h2-minilist a { display: flex; gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: var(--h2-radius-sm); color: var(--h2-ink); text-decoration: none; }
.h2 .h2-minilist a:hover { background: var(--h2-page); }
.h2-minilist img, .h2-minilist a > span:first-child:not(:last-child) { flex: 0 0 64px; width: 64px; height: 64px; border-radius: var(--h2-radius-sm); object-fit: cover; display: grid; place-items: center; font-family: var(--h2-display); font-weight: 800; font-size: 22px; }
.h2-minilist a > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.h2-minilist strong { font-size: 15px; line-height: 1.3; }
.h2-minilist small { font-size: 13px; color: var(--h2-muted); }
.h2-minilist em { font-style: normal; font-size: 11px; padding: 2px 8px; }

@media (max-width: 640px) {
  .h2-doc .h2-panel { margin-top: 20px; padding: 22px 18px; }
  .h2-rich { font-size: 16px; }
  .h2-rich h2 { font-size: 24px; }
  .h2-about .about-split { grid-template-columns: 1fr; }
  .h2-postbody { padding: 22px 18px 4px; }
  .h2-post-tags, .h2-sharebar { padding-left: 18px; padding-right: 18px; }
  .h2-postgrid { margin-top: -32px; }
}

/* Form cards (login2, register2 ... register_event2, my_registration2). The card
   markup is shared with the classic pages (components/content/*_body.php), so
   these style the classic class names and map its CSS variables to home2. */
.h2-authpage { background: var(--h2-navy); padding: 48px 0 72px; min-height: 60vh; }
.h2-authcard { max-width: 460px; margin: 0 auto; padding: 32px; }
.h2-authcard-wide { max-width: 560px; }
.h2-form {
  --text-muted: var(--h2-muted); --text-main: var(--h2-ink); --border-line: var(--h2-line); --border-light: var(--h2-line);
  --steel-accent: var(--h2-green); --primary-button-color: var(--h2-green);
  color: var(--h2-ink); font-size: 15px;
}
/* Manual copy box (js/share.js), when the browser blocks copying */
.share-copy { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(11, 31, 75, .6); }
.share-copy[hidden] { display: none; }
.share-copy-card { width: 100%; max-width: 420px; padding: 24px; border-radius: var(--h2-radius-lg); background: #fff; }
.share-copy-title { margin-bottom: 6px; font-family: var(--h2-display); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.share-copy-card p { margin: 0 0 12px; font-size: 14px; color: var(--h2-muted); }
.share-copy-card textarea { width: 100%; min-height: 90px; margin-bottom: 12px; padding: 10px 12px; border: 2px solid var(--h2-line); border-radius: var(--h2-radius-sm); font: inherit; font-size: 14px; resize: none; box-sizing: border-box; }
.h2-form a:not(.h2-btn) { color: var(--h2-green); }
.h2-form code { font-size: 13px; background: var(--h2-fill); padding: 1px 6px; border-radius: var(--h2-radius-xs); }
.h2-form .form-group { margin-bottom: 16px; }
.h2-form .form-group label[for], .h2-form label.form-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--h2-ink); }
.h2-form .form-control {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; font-weight: 500; color: var(--h2-ink);
  background: var(--h2-fill); border: 2px solid transparent; border-radius: var(--h2-radius-sm); box-sizing: border-box;
}
/* iOS Safari sizes date/time inputs by their content and ignores width:100%,
   so they stick out of the form; appearance:none keeps them in the box. */
.h2-form input[type="date"].form-control,
.h2-form input[type="datetime-local"].form-control,
.h2-form input[type="time"].form-control { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; }
.h2-form .form-control::-webkit-date-and-time-value { text-align: left; margin: 0; }
.h2-form textarea.form-control { min-height: 96px; resize: vertical; }
.h2-form .form-control:focus { outline: none; border-color: var(--h2-green); background: #fff; }
.h2-form .field-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }
.h2-form .field-meta > * { margin-top: 0; }
.h2-form .field-counter { white-space: nowrap; }
.h2-form .form-control[readonly] { background: var(--h2-line) !important; color: var(--h2-ink-2); }
.h2-form .btn-primary, .h2-form .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--h2-radius-pill) !important; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
}
.h2 .h2-form .btn-primary { background: var(--h2-yellow); color: var(--h2-ink); }
.h2 .h2-form .btn-primary:hover { background: var(--h2-yellow-hover); color: var(--h2-ink); }
.h2 .h2-form .btn-primary:disabled { opacity: .6; cursor: default; }
.h2 .h2-form .btn-secondary { background: #fff; color: var(--h2-ink); box-shadow: inset 0 0 0 2px var(--h2-line); }
.h2 .h2-form .btn-secondary:hover { box-shadow: inset 0 0 0 2px var(--h2-ink); }
.h2-form .error-alert, .h2-form .info-alert, .h2-form .success-alert { margin-bottom: 18px; padding: 12px 16px; border-radius: var(--h2-radius-sm); font-size: 14px; line-height: 1.5; }
.h2-form .error-alert { background: var(--h2-coral-soft); color: var(--h2-coral-ink); }
.h2-form .info-alert, .h2-form .success-alert { background: var(--h2-green-soft); color: var(--h2-green-dark); }
.h2-form .error-alert a:not(.h2-btn), .h2-form .success-alert a:not(.h2-btn) { color: inherit !important; }
.h2-form .hint, .h2-form .field-help, .h2-form .field-counter { margin-top: 4px; font-size: 12.5px; color: var(--h2-muted); }
.h2-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

/* Form card building blocks (components/content/*_body.php) */
.h2 .form-title { margin: 0 0 8px; font-family: var(--h2-display); font-weight: 800; font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.h2 .form-intro { margin: 0 0 22px; font-size: 15px; line-height: 1.5; color: var(--h2-muted); }
.h2 .form-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 50%; background: var(--h2-green-soft); color: var(--h2-green-dark); }
.h2 .form-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--h2-line); font-size: 14px; text-align: center; color: var(--h2-muted); }
.h2 .form-note, .h2 .form-fineprint { margin-top: 14px; font-size: 13px; color: var(--h2-muted); }
.h2 .form-note { text-align: center; }
.h2 .form-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--h2-muted); }
.h2 .form-divider::before, .h2 .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--h2-line); }
.h2 .label-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.h2 .h2-form .label-row label { margin-bottom: 0; }
.h2 .h2-form .btn-block { width: 100%; }
.h2 .h2-form * + .btn-block { margin-top: 10px; }
.h2 .btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.h2 .social-btns { display: flex; flex-direction: column; gap: 10px; }
.h2 .social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: var(--h2-radius-pill); background: #fff; box-shadow: inset 0 0 0 2px var(--h2-line); color: var(--h2-ink) !important; font-size: 15px; font-weight: 700; text-decoration: none; }
.h2 .social-btn:hover { box-shadow: inset 0 0 0 2px var(--h2-ink); }
.h2 .social-btn-facebook { background: #1877F2; box-shadow: none; color: #fff !important; } /* design-check: allow (Facebook brand) */
.h2 .social-btn-facebook:hover { background: #1464D2; box-shadow: none; } /* design-check: allow (Facebook brand) */
.h2 .text-link { color: var(--h2-green); font-weight: 700; text-decoration: underline; }
.h2 .text-sm { font-size: 13px; }
.h2 .text-center { text-align: center; }
.h2 .muted { color: var(--h2-muted); }
.h2 .pre-line { white-space: pre-line; }
.h2 .mt-sm { margin-top: 12px; }
.h2 .mt-md { margin-top: 18px; }
.h2 .mb-sm { margin-bottom: 12px; }
.h2-form .hint-above { margin: 0 0 10px; }
.h2 .link-btn-muted { display: block; width: 100%; padding: 4px; color: var(--h2-muted); font-size: 13px; }
/* Coloured note boxes: callout (form cards) and notice (registration form) */
.h2 .callout { margin: 0 0 20px; padding: 14px 16px; border-radius: var(--h2-radius); background: var(--h2-page); font-size: 14px; line-height: 1.55; color: var(--h2-ink-2, var(--h2-ink)); text-align: left; }
.h2 .callout-ok, .h2-form .notice-ok { background: var(--h2-green-soft); color: var(--h2-green-dark); }
.h2 .callout-info { background: var(--h2-info-soft); color: var(--h2-info-ink); }
.h2 .callout-warn, .h2-form .notice-warn { background: var(--h2-warn-soft); color: var(--h2-warn-ink); }
.h2 .callout-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.h2 .callout-title { margin-bottom: 6px; font-family: var(--h2-display); font-weight: 800; font-size: 16px; text-transform: uppercase; }
.h2 .callout-text { margin: 0 0 12px; }
.h2 .callout-list { margin: 8px 0 0; padding-left: 20px; }
.h2 .callout .inapp-url { flex: 1 1 200px; min-width: 0; }
.h2 .callout a:not(.h2-btn), .h2-form .notice a:not(.h2-btn) { color: inherit; }
.h2-form .notice-title { margin-bottom: 6px; font-weight: 800; font-size: 16px; }
/* Registration form and registration page details */
.h2-form .reg-kicker, .h2-form .reg-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.h2-form .div-option.is-full { opacity: .6; cursor: not-allowed; }
.h2-form .div-fee-note { font-size: 11px; font-weight: 600; color: var(--h2-muted); text-align: right; }
.h2-form .pay-amount { margin: 12px 0; font-weight: 800; font-size: 16px; }
.h2-form .check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.h2-form .check-row input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
.h2-form .ref-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: var(--h2-radius); background: var(--h2-page); }
.h2-form .badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.h2-form .status-line { margin: 14px 0 0; font-size: 15px; }
.h2-form .details-toggle { cursor: pointer; font-weight: 700; font-size: 14px; }
.h2-form .reg-note { font-size: 14px; color: var(--h2-ink-2, var(--h2-ink)); }
.h2-form .reg-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--h2-line); }

/* Error page (render_error_page() in core/security.php): the form card, centred on a full-height navy page */
.h2-errorpage { display: flex; align-items: center; min-height: 100vh; }
.h2-errorpage > .h2-wrap { width: 100%; }
.h2-error-badge { margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.h2-form .h2-error-help { margin: 0 0 22px; }
.h2-error-help p { margin: 0 0 6px; }
.h2-error-help ol { margin: 0; padding-left: 18px; }
.h2-error-help li + li { margin-top: 6px; }

.h2-authback { display: inline-block; margin: 0 auto 14px; }
.h2-authpage .h2-wrap > .h2-authback { display: block; max-width: 560px; margin: 0 auto 14px; }

/* Registration form and private registration page (shared markup from register_event / my_registration) */
.h2-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.h2-form .reg-event-head { padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--h2-line); }
.h2-form .reg-event-title, .h2-form .reg-title { margin: 4px 0 6px; font-family: var(--h2-display); font-weight: 800; font-size: 32px; line-height: 1; text-transform: uppercase; color: var(--h2-ink); }
.h2-form .reg-meta { font-size: 14px; line-height: 1.6; color: var(--h2-muted); }
.h2-form .reg-section, .h2-form .section-title { margin: 24px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--h2-green); }
.h2-form .notice { padding: 14px 16px; border: 0 !important; border-radius: var(--h2-radius); background: var(--h2-page); font-size: 14px; line-height: 1.55; color: var(--h2-ink-2); }
.h2-form .div-option { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; padding: 14px 16px; border: 2px solid var(--h2-line); border-radius: var(--h2-radius); cursor: pointer; }
.h2-form .div-option:has(input:checked) { border-color: var(--h2-green); background: var(--h2-green-soft); }
.h2-form .div-option input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--h2-green); }
.h2-form .div-name { font-weight: 700; font-size: 15px; }
.h2-form .div-sub { margin-top: 2px; font-size: 13px; color: var(--h2-muted); }
.h2-form .div-fee { margin-left: auto; font-weight: 800; font-size: 15px; white-space: nowrap; color: var(--h2-green-dark); }
.h2-form .slot-full { color: var(--h2-info-ink); font-weight: 700; }
.h2-form .slot-low { color: var(--h2-warn-ink); font-weight: 700; }
.h2-form .terms-box { max-height: 180px; overflow-y: auto; overflow-x: hidden; overflow-wrap: anywhere; word-break: break-word; margin-bottom: 10px; padding: 12px 14px; border-radius: var(--h2-radius-sm); background: var(--h2-page); font-size: 13px; color: var(--h2-ink-2); white-space: pre-line; }
.h2-form input[type="checkbox"] { accent-color: var(--h2-green); }
.h2-form .roster-row { border: 2px solid var(--h2-line); border-radius: var(--h2-radius); }
.h2-form .input-group { display: flex; align-items: stretch; position: relative; min-width: 0; }
.h2-form .input-addon { display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--h2-radius-sm) 0 0 var(--h2-radius-sm); background: var(--h2-line); color: var(--h2-ink-2, var(--h2-ink)); font-size: 14px; font-weight: 700; user-select: none; }
.h2-form .input-addon-end { border-radius: 0 var(--h2-radius-sm) var(--h2-radius-sm) 0; }
.h2-form .input-group > .form-control { min-width: 0; border-radius: 0 var(--h2-radius-sm) var(--h2-radius-sm) 0; }
.h2-form .input-group > .form-control:not(:last-child) { border-radius: 0; }
.h2-regpage .reg-card { max-width: 640px; margin: 0 auto 16px; padding: 28px; background: #fff; border-radius: var(--h2-radius-lg); box-shadow: var(--h2-shadow); }
.h2-regpage > p.reg-meta { max-width: 640px; margin: 0 auto 24px; text-align: center; color: var(--h2-on-navy); }
.h2-regpage > p.reg-meta a { color: var(--h2-yellow) !important; }
.h2-form .ref-code { font-family: var(--h2-mono); font-size: 20px; font-weight: 700; letter-spacing: .08em; }
.h2-form .kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; margin: 16px 0; font-size: 15px; }
.h2-form .kv dt { color: var(--h2-muted); }
.h2-form .kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.h2-form .box { margin-top: 16px; padding: 16px; border: 2px solid var(--h2-line); border-radius: var(--h2-radius); }
.h2-form .ok-alert { margin-bottom: 16px; padding: 12px 16px; border-radius: var(--h2-radius-sm); background: var(--h2-green-soft); color: var(--h2-green-dark); font-size: 14px; }
.h2-form .pay-instructions { white-space: pre-line; font-size: 14px; line-height: 1.55; color: var(--h2-ink-2); }
.h2-form .qr-img { display: block; max-width: 220px; width: 100%; margin-top: 12px; border-radius: var(--h2-radius-sm); }
.h2-form .link-btn { padding: 0; border: 0; background: none; color: var(--h2-coral-ink); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }

@media (max-width: 640px) {
  .h2-authpage { padding: 20px 0 40px; }
  .h2-authcard { padding: 22px 18px; }
  .h2-form .form-row { grid-template-columns: 1fr; }
  .h2-regpage .reg-card { padding: 20px 16px; }
  .h2-form .kv { grid-template-columns: 1fr; gap: 2px; }
  .h2-form .kv dd { margin-bottom: 8px; }
}

/* 404 and city guide (404_2.php, city2.php) */
.h2-404 { text-align: center; padding: 80px 0 96px; color: #fff; }
.h2-404 .h2-eyebrow { color: var(--h2-yellow); }
.h2-404 h1 { margin: 0 0 14px; font-family: var(--h2-display); font-weight: 800; font-size: clamp(48px, 8vw, 96px); line-height: .95; text-transform: uppercase; }
.h2-404 p:not(.h2-eyebrow) { max-width: 520px; margin: 0 auto 28px; font-size: 18px; color: var(--h2-on-navy); }
.h2-404-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.h2-cityjump select { min-height: 40px; max-width: 220px; padding: 0 14px; border: 0; border-radius: var(--h2-radius-pill); background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-weight: 700; font-size: 14px; }
.h2-cityjump select option { color: var(--h2-ink); }
.h2-phero .h2-phero-text > .h2-eyebrow { color: var(--h2-yellow); margin: 0; }
.h2-cityblock { margin-top: 40px; }
.h2-profile .h2-wrap > .h2-cityblock:first-child { margin-top: 32px; }

/* Ratings, modals and lightbox (markup from core/ratings.php and components/photo_gallery_lightbox.php) */
.h2 .rating-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0 0 18px; border-bottom: 1px solid var(--h2-line); }
.h2 .rs-stars { display: inline-flex; gap: 2px; font-size: 22px; line-height: 1; }
.h2 .rs-star, .h2 .rl-star, .h2 .rm-star { color: var(--h2-line); }
.h2 .rs-star-filled, .h2 .rl-star-filled, .h2 .rm-star-filled { color: var(--h2-star-fill); }
.h2 .rs-avg { font-family: var(--h2-display); font-weight: 800; font-size: 24px; }
.h2 .rs-count, .h2 .rs-owner-note { font-size: 14px; color: var(--h2-muted); }
.h2 .rs-spacer { flex: 1; }
.h2 .rs-rate-btn, .h2 .modal-content .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px;
  border: 0; border-radius: var(--h2-radius-pill); background: var(--h2-green); color: #fff; font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer;
}
.h2 .rs-rate-btn:hover, .h2 .modal-content .btn-primary:hover { background: var(--h2-green-dark); color: #fff; }
.h2 .modal-content .btn-primary:disabled { opacity: .45; cursor: default; }
.h2 .rs-raters-line { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--h2-muted); }
.h2 .rs-raters-more { padding: 0; border: 0; background: none; color: var(--h2-green); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.h2 .modal-backdrop { display: none; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; padding: 20px; background: rgba(11, 31, 75, .6); }
.h2 .modal-content { width: 100%; max-height: 90vh; overflow-y: auto; padding: 28px; background: #fff; border-radius: var(--h2-radius-xl); box-shadow: 0 24px 48px rgba(0, 0, 0, .25); }
.h2 .modal-content h3 { font-family: var(--h2-display); font-weight: 800; font-size: 26px !important; text-transform: uppercase; }
.h2 .rm-star-picker { display: flex; justify-content: center; gap: 6px; }
.h2 .rm-star { padding: 4px; border: 0; background: none; font-size: 38px; line-height: 1; cursor: pointer; transition: transform .1s ease; }
.h2 .rm-star:hover { transform: scale(1.1); }
.h2 .rl-list { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow-y: auto; }
.h2 .rl-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--h2-line); }
.h2 .rl-item:last-child { border-bottom: 0; }
.h2 .rl-name-link { color: var(--h2-ink); font-weight: 600; }
.h2 .rl-stars { display: inline-flex; gap: 1px; font-size: 14px; }
.h2 .gallery-lightbox-overlay { display: none; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; padding: 24px; background: rgba(11, 31, 75, .94); }
.h2 .gallery-lightbox-overlay.active { display: flex; }
.h2 .gallery-lightbox-img { max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: var(--h2-radius-sm); }
.h2 .gallery-lightbox-close { position: absolute; top: 14px; right: 18px; width: 48px; height: 48px; border: 0; background: none; color: #fff; font-size: 36px; cursor: pointer; }
.h2 .gallery-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 28px; cursor: pointer; }
.h2 .gallery-lightbox-nav:hover { background: var(--h2-yellow); color: var(--h2-ink); }
.h2 .gallery-lightbox-prev { left: 14px; }
.h2 .gallery-lightbox-next { right: 14px; }

@media (max-width: 900px) {
  .h2-pgrid { grid-template-columns: 1fr; gap: 16px; }
}

/* Location / venue map card (profile.php, event.php; off unless enabled in Settings) */
.h2-mapcard iframe { display: block; width: 100%; height: 220px; margin-bottom: 12px; border: 0; border-radius: var(--h2-radius-sm); background: var(--h2-fill); }
.h2-mapcard a { font-size: 14px; font-weight: 700; color: var(--h2-green); text-decoration: none; }

/* Link list in a side panel ("Socials and links" on profile.php) */
.h2-linklist { margin: 0; padding: 0; list-style: none; }
.h2-linklist li + li { border-top: 1px solid var(--h2-line); }
.h2-linklist a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 15px; font-weight: 700; color: var(--h2-green); text-decoration: none; overflow-wrap: anywhere; }
.h2-linklist a:hover { color: var(--h2-green-dark); }

/* Division rosters and the Protest Roster pop-up (components/content/roster_protest.php) */
.h2-roster { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 90px; }
.h2-roster-note { margin: 0; padding: 12px 16px; border-radius: var(--h2-radius-sm); background: var(--h2-fill); font-size: 14px; }
.h2-roster-card .h2-panel-title { margin-bottom: 2px; }
.h2-roster-card > .h2-muted { margin: 0 0 14px; font-size: 14px; }
.h2-roster-list { margin: 0; padding: 0 0 0 28px; border-top: 1px solid var(--h2-line); }
.h2-roster-list li { padding: 10px 0 10px 4px; border-bottom: 1px solid var(--h2-line); font-weight: 600; overflow-wrap: anywhere; }
.h2-roster-list li::marker { color: var(--h2-muted); font-weight: 700; }
.h2-roster-sep { margin: 0 6px; color: var(--h2-muted); font-weight: 400; }
.h2-roster-empty { margin: 0; padding: 14px 0; color: var(--h2-muted); border-top: 1px solid var(--h2-line); }
.h2-roster-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--h2-muted); }
.h2 .h2-roster-pager .h2-btn-outline:disabled { opacity: .4; cursor: default; transform: none; }
.h2-roster-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.h2-roster-actions .h2-muted { font-size: 14px; }
.h2-flash { padding: 12px 16px; border-radius: var(--h2-radius-sm); font-size: 14px; line-height: 1.5; }
.h2-flash-ok { background: var(--h2-green-soft); color: var(--h2-green-dark); }
.h2-flash-error { background: var(--h2-coral-soft); color: var(--h2-coral-ink); }
.h2 .modal-backdrop.is-open { display: flex; }
/* Pop-up window: h2_modal_open() in components/h2_blocks.php */
.h2-modal .modal-content { position: relative; max-width: 520px; }
.h2-modal .modal-content h3 { margin: 0 32px 10px 0; line-height: 1.05; }
.h2-modal .modal-content > p { margin: 0 0 16px; line-height: 1.5; }
.h2-modal-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; color: var(--h2-muted); font-size: 28px; line-height: 1; cursor: pointer; }
.h2-modal-close:hover { color: var(--h2-ink); }
.h2-modal .modal-content > .h2-modal-kicker { margin: 0 40px 4px 0; line-height: 1.3; }
.h2-modal-wide .modal-content { max-width: 600px; }
.h2-modal .modal-content:focus { outline: none; }
html.h2-modal-lock { overflow: hidden; } /* page behind an open pop-up doesn't scroll (js/h2-modal.js) */
.h2-protest-points { margin: 0 0 20px; padding-left: 20px; font-size: 14px; line-height: 1.7; color: var(--h2-ink-2, var(--h2-ink)); }
.h2-protest-hint { margin: -2px 0 8px; font-size: 13px; color: var(--h2-muted); }
.h2-protest-foot { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--h2-muted); }
.h2-protest-preview { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--h2-line); border-radius: var(--h2-radius-sm); background: var(--h2-page); }
.h2-protest-preview[hidden] { display: none; }
/* Payment QR with full-screen viewer (components/payment_qr.php) */
.pqr { margin-top: 12px; }
.pqr-thumb { display: block; position: relative; width: 100%; max-width: 220px; padding: 0; border: 1px solid var(--h2-line); border-radius: var(--h2-radius-xs); background: #fff; cursor: zoom-in; overflow: hidden; }
.pqr-thumb img { display: block; width: 100%; height: auto; }
.pqr-hint { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 0; font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(11, 31, 75, .7); text-align: center; }
.pqr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pqr-overlay { position: fixed; inset: 0; z-index: 10000; display: none; background: rgba(11, 31, 75, .94); overflow: auto; touch-action: pan-x pan-y pinch-zoom; -webkit-overflow-scrolling: touch; }
.pqr-overlay.active { display: block; }
.pqr-stage { min-width: 100%; min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 56px 16px 72px; }
.pqr-overlay img { display: block; max-width: 100%; max-height: calc(100vh - 128px); background: #fff; border-radius: var(--h2-radius-xs); cursor: zoom-in; }
.pqr-overlay.zoomed .pqr-stage { width: max-content; height: max-content; }
.pqr-overlay.zoomed img { max-width: none; max-height: none; width: min(1600px, 250vw); cursor: zoom-out; }
.pqr-close { position: fixed; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.pqr-bar { position: fixed; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.pqr-bar > * { pointer-events: auto; }
body.pqr-lock { overflow: hidden; }
/* Back / forward links above a form card (my_registration.php) */
.h2-backrow { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 560px; margin: 0 auto 14px; }
.h2-backrow-end { margin-left: auto; }
.h2-protest-preview img { width: 56px; height: 56px; flex: 0 0 auto; object-fit: cover; border-radius: var(--h2-radius-xs); }
.h2-protest-preview span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--h2-muted); }
.h2-protest-preview button { border: 0; background: none; color: var(--h2-coral-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.h2-btn-block { width: 100%; }

/* Footer (components/h2_footer.php) */
.h2-foot { background: var(--h2-navy); color: var(--h2-on-navy-3); font-size: 14px; padding-top: 56px; border-top: 4px solid var(--h2-yellow); }
.h2 .h2-foot a { color: var(--h2-on-navy-2); text-decoration: none; }
.h2 .h2-foot a:hover { color: var(--h2-yellow); }
.h2-foot-main { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; padding-bottom: 40px; }
.h2-foot-logo { display: inline-block; }
.h2-foot-logo img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: var(--h2-radius-lg); padding: 6px; }
.h2-foot-logo span { font-family: var(--h2-display); font-weight: 800; font-size: 24px; text-transform: uppercase; color: #fff; }
.h2-foot-brand p { margin: 14px 0 0; max-width: 240px; line-height: 1.5; }
.h2-foot-col h3 { margin: 0 0 16px; font-family: var(--h2-display); font-weight: 800; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; color: var(--h2-yellow); }
.h2-foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.h2-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: var(--h2-on-navy-3); }
@media (max-width: 960px) {
  .h2-foot-main { grid-template-columns: repeat(2, 1fr); }
  .h2-foot-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .h2 * { transition: none !important; }
  .h2 .h2-feature { transform: none; }
}

@media (max-width: 640px) {
  .h2-wrap { padding-left: 16px; padding-right: 16px; }
  .h2-hero { padding: 32px 0 48px; }
  .h2-section { padding-top: 44px; padding-bottom: 44px; }
  .h2-head h2 { font-size: 38px; }
  .h2-search { border-radius: var(--h2-radius-lg); }
  .h2-search .h2-btn { flex: 1 1 100%; }
  .h2-feature-stack { max-width: none; }
  /* Nav becomes an icon grid, four per row. */
  .h2-nav { order: 3; flex-basis: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; padding-bottom: 4px; }
  .h2 .h2-nav a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; font-size: 12px; text-align: center; white-space: normal; line-height: 1.2; }
  .h2-nav-icon {
    display: block; width: 52px; height: 52px; padding: 13px; border-radius: var(--h2-radius-lg);
    background: var(--h2-navy-2); stroke: var(--h2-yellow); fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  }
  .h2 .h2-nav a:hover .h2-nav-icon, .h2 .h2-nav a:active .h2-nav-icon { background: var(--h2-yellow); stroke: var(--h2-ink); }
  /* home2: the grid moves out of the top bar to sit between the search and the hero card */
  .h2-nav-desktop { display: none; }
  .h2-nav.h2-nav-mobile { display: grid; flex-basis: 100%; order: 0; }
  /* Inner pages: the grid in its own band under the sticky bar (components/h2_header.php) */
  .h2-nav-band { display: block; background: var(--h2-navy); padding-bottom: 14px; }
  /* Sign in / List your court move into the burger drawer */
  .h2-top-actions { display: none; }
  .h2-top-row { flex-wrap: wrap; }
  .h2-brand { flex: 1 1 auto; min-width: 0; }
  .h2-burger {
    display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px;
    background: none; border: 0; border-radius: var(--h2-radius-sm); color: #fff; cursor: pointer;
  }
  .h2-burger svg { stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; fill: none; }
  .h2-burger:hover { color: var(--h2-yellow); }
  .h2-drawer:not([hidden]) {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 100;
    background: var(--h2-navy); color: #fff; overflow-y: auto;
    padding: 14px 16px calc(24px + env(safe-area-inset-bottom));
  }
  .h2-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .h2-drawer-close { width: 48px; height: 48px; margin-right: -8px; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
  .h2-drawer-body { display: flex; flex-direction: column; padding: 4px 0; }
  .h2 .h2-drawer-body a {
    display: flex; align-items: center; min-height: 40px; padding: 0 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-weight: 400; font-size: 17px;
    color: rgba(255, 255, 255, .9); text-decoration: none;
  }
  .h2 .h2-drawer-body a:hover, .h2 .h2-drawer-body a[aria-current="page"] { color: var(--h2-yellow); }
  /* Buttons follow the last menu item on every screen height (no gap pushing them to the bottom). */
  .h2-drawer-actions { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; }
  .h2-cta { padding: 24px; }

  /* Two per row for the image cards, so eight courts aren't eight screens. */
  #courts .h2-grid, #coaches .h2-grid, #clubs .h2-grid, #stores .h2-grid, #services .h2-grid,
  .h2-grid-courts, .h2-grid-coaches, .h2-grid-clubs, .h2-grid-stores, .h2-grid-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .h2-court .h2-card-body { padding: 10px 12px 12px; }
  /* Same scale, one step down, for the two-up grid. */
  .h2-court .h2-card-body strong, .h2-court .h2-price { font-size: 15px; }
  .h2-court .h2-muted, .h2-court .h2-small, .h2-court .h2-price-unit, .h2-court .h2-row { font-size: 13px; }
  /* Schedule rows: price and level drop under the title. */
  .h2 .h2-sched { grid-template-columns: 124px minmax(0, 1fr) auto; gap: 6px 14px; padding: 12px 10px 12px 12px; align-items: start; }
  .h2-sched-when { grid-row: span 2; margin: -12px 0 -12px -12px; padding: 12px; }
  .h2-sched-side { grid-column: 2; }
  .h2-sched-go { grid-column: 3; grid-row: 1 / span 2; }
  .h2-sched-start { font-size: 20px; white-space: normal; }
  .h2-sched-side { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; gap: 6px 10px; }
  /* No pin on phones: a wrapped location line then starts on the same edge as the title, price and pill. */
  .h2-sched-detail svg { display: none; }
  /* Pasalo: the "% off" pill drops to its own line instead of running into the arrow. */
  .h2-sched-was { flex-wrap: wrap; row-gap: 6px; }

  .h2-pagehead { padding: 28px 0 40px; }
  .h2-pagehead p:not(.h2-eyebrow) { font-size: 16px; }
  .h2-filters { padding: 14px; gap: 10px; }
  .h2-filters-row { gap: 10px; }
  .h2-filter { flex: 1 1 calc(50% - 5px); }
  .h2-filter-q, .h2-filters .h2-btn { flex-basis: 100%; }
  .h2-filters-grouped .h2-filter-q { max-width: none; }
  .h2-searchtabs { padding: 10px 14px 14px; }
  .h2-tabs { width: 100%; }
  .h2-tab { padding: 0 10px; font-size: 14px; }
  .h2-dayhead { font-size: 24px; }
  .h2-phero { padding-bottom: 52px; }
  .h2-phero-bar { margin-bottom: 24px; }
  .h2-phero-main { flex-direction: column; align-items: flex-start; gap: 16px; }
  .h2-phero-logo { width: 88px; height: 88px; font-size: 34px; border-radius: var(--h2-radius-lg); }
  .h2-phero-logo-round { border-radius: 50%; }
  .h2-facts { grid-template-columns: 1fr 1fr; gap: 10px; top: -26px; }
  .h2-fact { padding: 14px 16px; }
  .h2-fact strong { font-size: 22px; }
  .h2-panel { padding: 18px; }
  .h2-details { grid-template-columns: 1fr; gap: 12px; }
  .h2 .h2-person { padding: 16px; }
  .h2-avatar { width: 56px; height: 56px; font-size: 22px; }
  .h2-person strong { font-size: 16px; }
}

/* Mobile hero: drop the intro sentence and put the changing card straight under
   the typed headline. The copy column dissolves so its children can be reordered. */
@media (max-width: 640px) {
  .h2-hero-grid { gap: 20px; }
  .h2-hero-copy { display: contents; }
  .h2-hero-copy > p { display: none; }
  .h2-hero-grid > *, .h2-hero-copy > * { flex: 1 1 100%; min-width: 0; }
  .h2-hero h1 { order: 2; }
  /* "Pickleball Service" is ~7.3em wide: keep it on one line on the narrowest phones. */
  .h2-hero h1.h2-type { font-size: min(48px, calc((100vw - 32px) / 7.4)); }
  .h2-feature-stack { order: 3; }
  .h2-search { order: 4; }
  .h2-hero-grid .h2-nav.h2-nav-mobile { order: 5; }
  /* Compact card so the search still shows on the first screen. Long names cut
     off on one line, which also keeps every card in the stack about the same height. */
  .h2 .h2-feature { padding: 14px 18px; gap: 2px; border-radius: var(--h2-radius-lg); }
  .h2-feature-label { font-size: 11.5px; }
  .h2-feature-time { font-size: 30px; }
  .h2-feature-name { font-size: 22px; }
  .h2-feature-title { font-size: 16px; }
  .h2-feature-sub { font-size: 14px; }
  .h2-feature-name, .h2-feature-title, .h2-feature-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
  .h2-feature-foot { padding-top: 8px; gap: 6px; font-size: 14px; }
  .h2-feature .h2-pill { padding: 3px 9px; font-size: 12px; }
}
