/* ---------- headings ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--gold-strong); font-size: var(--fs-small); font-weight: 400; }
.heading-gold { color: var(--gold-strong); font-size: var(--fs-h2); font-weight: 800; line-height: var(--lh-heading); }
.section-title { font-size: var(--fs-h2); font-weight: 800; color: var(--text); }
.section-title--gold { color: var(--text); } /* gold heading text is kept for the page H1 only (review §1.3) */
.lead { font-size: var(--fs-lead); color: var(--text-3); line-height: var(--lh-body); }

/* page heading block under the banner */
/* One page intro everywhere: start-aligned, the editor's statement in the drawn gold at section-heading size, on one or
   two lines (R-2, revised by R-50), and the intro as a lead. */
.page-heading { padding-block: var(--sp-9) var(--sp-8); }  /* the room the frames leave around the intro statement */
.page-heading__title.heading-gold { max-width: 30em; color: var(--gold-strong); font-size: var(--fs-h2); font-weight: 800; text-wrap: balance; }
.page-heading__title:has(+ .page-heading__intro) { margin-bottom: var(--sp-3); }
.page-heading__intro { max-width: var(--measure); }
@media (max-width: 640px) { .page-heading { padding-block: var(--sp-6) var(--sp-4); } }

/* ---------- buttons ----------
   One set for the whole site: primary (filled), secondary (outline), on-dark, text link.
   One height (48, 40 small), one radius, 16 px bold label; the icon follows the label and flips with the direction. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--control-h); padding-inline: var(--sp-5); border-radius: var(--r-md);
  border: 1px solid transparent; font-size: var(--fs-ui); font-weight: 700; line-height: 1.2;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap; text-align: center;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--action); color: #fff; }
/* gold buttons sit on dark grounds only (hero, feature banner): primary gold with dark text, 7.1:1 */
.btn--gold, .btn--gold-light { background: var(--gold); color: var(--text); }
:is(.btn--primary, .btn--gold, .btn--gold-light):hover { background: var(--action-hover); color: #fff; }
:is(.btn--primary, .btn--gold, .btn--gold-light):active { background: var(--action-pressed); color: #fff; }
.btn--outline, .btn--secondary { background: var(--surface); border-color: var(--gold-strong); color: var(--gold-strong); }
.btn--outline:hover, .btn--secondary:hover { background: var(--selected-bg); color: var(--gold-deep); border-color: var(--gold-deep); }
.btn--on-dark, .btn--white { background: #fff; color: var(--text); }
.btn--on-dark:hover, .btn--white:hover { background: var(--selected-bg); color: var(--text); }
.btn--sm { min-height: var(--control-h-sm); padding-inline: var(--sp-4); font-size: var(--fs-small); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--btn-disabled); border-color: transparent; color: var(--text-2); cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; opacity: .8; }
@media (max-width: 640px) { .btn { white-space: normal; } }

.link-arrow { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--target-min); color: var(--gold-strong); font-weight: 700; font-size: var(--fs-ui); }
.link-arrow:hover { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 4px; }
.link-arrow .icon { width: 1em; height: 1em; }

/* ---------- pills (filters) ---------- */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--control-h); min-width: 123px;
  padding-inline: var(--sp-5); border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: var(--fs-ui); font-weight: 700; line-height: 1.3;
}
.pill:hover { border-color: var(--gold); color: var(--gold-strong); }
@media (max-width: 640px) {
  /* one row that scrolls sideways, bleeding to the screen edge, instead of ragged wrapped rows */
  .pills { flex-wrap: nowrap; justify-content: flex-start; gap: var(--sp-2); overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-block: 2px; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex: none; min-width: 0; padding-inline: var(--sp-5); }
}
.pill.is-active, .pill[aria-current="true"], .pill[aria-pressed="true"], .pill[aria-selected="true"] { background: var(--action); border-color: var(--action); color: #fff; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.chip-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: var(--r-md); background: var(--selected-bg); color: var(--gold);
}
.chip-icon--round { border-radius: 50%; width: 40px; height: 40px; }
.chip-icon .icon { width: 22px; height: 22px; }
.badge, .home-announcements__tag, .initiative-card__tag, .news-featured__tag, .sport-announcement__badge, .sport-detail__category, .program-card__tag, .body-card__tag {
  display: inline-flex; align-items: center; gap: var(--sp-1); padding: var(--sp-1) var(--sp-3); border-radius: var(--r-full);
  background: var(--selected-bg); color: var(--gold-strong); font-size: var(--fs-xs); font-weight: 700; line-height: 1.4;
} /* one badge for every small label (R-92); page stylesheets only place it */
.badge .icon, .news-featured__tag .icon, .sport-detail__category .icon { width: 12px; height: 12px; }

/* Listing cards (news, events, albums, facilities): one tab stop on the title link, which covers the whole card;
   the "Read more" line is a quiet text link for mouse users; hover lifts the shadow and colours the title, nothing moves. */
:is(.news-card, .event-card, .album-card, .facility-card, .legislation-card) { position: relative; transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
:is(.news-card__title, .event-card__title, .album-card__title, .facility-card__title, .legislation-card__title) a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
:is(.news-card, .event-card, .album-card, .facility-card, .legislation-card):hover { box-shadow: var(--shadow-raised); border-color: var(--gold); }
:is(.news-card, .event-card, .album-card, .facility-card, .legislation-card):hover :is(.news-card__title, .event-card__title, .album-card__title, .facility-card__title, .legislation-card__title) a { color: var(--gold-strong); }
:is(.news-card, .event-card, .album-card, .facility-card, .legislation-card):has(a:focus-visible) { outline: 2px solid var(--gold-strong); outline-offset: 2px; }
:is(.news-card__title, .event-card__title, .album-card__title, .facility-card__title, .legislation-card__title) a:focus-visible { outline: none; box-shadow: none; }
/* Cards carry no generic «Read more»: the title link above already covers the whole card. */

/* Related items at the end of a detail page */
.related { padding-block: var(--sp-7) var(--sp-8); border-top: 1px solid var(--border); }
.related__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.related__title { font-size: var(--fs-h2); font-weight: 800; color: var(--text); }
.related .related__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--sp-5); }
.related .related__list { margin-top: 0; }
.related__list .news-card { width: auto; max-width: none; min-height: 0; }

/* ---------- search bar ---------- */
.search-bar { display: flex; align-items: center; gap: var(--sp-3); max-width: 1282px; margin-inline: auto; padding-block: var(--sp-6); border-bottom: 2px solid var(--surface-2); }
.search-bar__field { position: relative; flex: 1; }
/* As drawn: a heavier 20 px magnifier, 16 px in from the field's edge, in the body text colour. */
.search-bar__field .icon { position: absolute; inset-inline-start: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--text-3); stroke-width: 2.5; }
.search-bar input {
  width: 100%; height: var(--control-h-lg); padding-inline: var(--sp-7) var(--sp-5); border-radius: var(--r-md);
  border: 1px solid var(--border-control); background: var(--surface-2); font-size: var(--fs-ui);
}
.search-bar input { text-overflow: ellipsis; }
.search-bar input:focus { outline: none; border-color: var(--gold-strong); background: var(--surface); box-shadow: var(--focus); }
.search-bar input::placeholder { color: var(--text-3); opacity: 1; }

/* Filter bars: every select beside a search field shares the field's height, type and shape (R-67). */
:is(.news-search__select, .facilities__select, .bodies-search__select, .events-select, .achievement-select) { position: relative; }
:is(.news-search__select, .facilities__select, .bodies-search__select, .events-select, .achievement-select) select {
  width: 100%; height: var(--control-h-lg); padding-inline: var(--sp-4) var(--sp-7); border: 1px solid var(--border-control); border-radius: var(--r-md);
  background: var(--surface-2); color: var(--text); font: inherit; font-size: var(--fs-ui); font-weight: 400; line-height: 1.4; appearance: none; cursor: pointer;
}
:is(.news-search__select, .facilities__select, .bodies-search__select, .events-select, .achievement-select) select:focus { outline: none; border-color: var(--gold-strong); background: var(--surface); box-shadow: var(--focus); }
:is(.news-search__select, .facilities__select, .bodies-search__select, .events-select, .achievement-select) .icon {
  position: absolute; inset-inline-end: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; color: var(--text-3);
}

/* ---------- form fields ---------- */
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label { font-size: var(--fs-ui); font-weight: 700; line-height: 1.5; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: var(--control-h); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm);
  border: 1px solid var(--border-control); background: var(--surface-2); color: var(--text); font-size: var(--fs-ui);
}
.field :is(input:not([type="checkbox"], [type="radio"]), select) { height: var(--control-h); padding-block: 0; line-height: 1.4; } /* exactly one control height */
.field textarea { height: 130px; min-height: 100px; resize: vertical; }
.field select { color: var(--text); }
.field select { appearance: none; background-image: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-2); opacity: 1; }
.field textarea { line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-strong); background: var(--surface); box-shadow: var(--focus); }
.field__select { position: relative; }
.field__select .icon { position: absolute; inset-inline-end: 18px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text); }
.field__help { font-size: var(--fs-small); color: var(--text-2); }
.field__error { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-small); font-weight: 700; color: var(--error); }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field .required { color: var(--error); }

.alert { padding: var(--sp-4) var(--sp-4); border-radius: var(--r-sm); background: var(--selected-bg); border: 1px solid var(--border); }
.alert--error { background: var(--error-bg); border-color: var(--error-line); color: var(--error); }
.form-errors { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.form-errors__title { font-weight: 700; }
.form-errors__list { margin: 0; padding-inline-start: var(--sp-5); }
.form-errors a { color: var(--error); text-decoration: underline; }
.alert--success { background: var(--success-bg); border-color: var(--success-line); color: var(--success); }

/* ---------- page end: share + last updated ---------- */
.page-end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-4); padding-block: var(--sp-5); border-top: 1px solid var(--border); color: var(--text-2); font-size: var(--fs-small); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.share > span { white-space: nowrap; margin-inline-end: var(--sp-1); }
.share__link { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.share__link:hover { color: var(--gold-strong); border-color: var(--gold); }
.share__link .icon { width: 16px; height: 16px; }
@media (max-width: 640px) { .share > span { flex-basis: 100%; } } /* the label on its own line, the seven links in one row */

/* ---------- error pages ---------- */
.error-page { display: grid; justify-items: center; gap: var(--sp-5); text-align: center; padding-block: var(--sp-9); }
.error-page__code { font-size: 6rem; font-weight: 800; line-height: 1; color: var(--selected-bg); -webkit-text-stroke: 2px var(--gold); }

/* search bar with buttons (FAQ, achievements) */
.search-bar--buttons { gap: var(--sp-4); }
.search-bar--buttons .search-bar__field { order: 0; margin-inline-end: var(--sp-4); }
/* Ordinary buttons at the filter bar's height (R-67): bold label, the icon after it. */
.search-bar__reset, .search-bar__submit { min-height: var(--control-h-lg); gap: var(--sp-2); padding-inline: var(--sp-5); }
.search-bar__reset .icon, .search-bar__submit .icon { order: 1; width: 18px; height: 18px; }
.search-bar__reset { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-3); min-width: 138px; }
.search-bar__reset:hover { border-color: var(--gold); color: var(--gold-strong); }
.search-bar__submit { min-width: 113px; }
@media (max-width: 640px) {
  .search-bar--buttons { flex-wrap: wrap; }
  .search-bar--buttons .search-bar__field { flex-basis: 100%; margin-inline-end: 0; }
  .search-bar__reset, .search-bar__submit { flex: 1; }
}

/* Pagination (includes/pagination.html) */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-4); margin-top: var(--sp-8); }
.pagination__pages { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); list-style: none; align-items: center; }
.pagination__page, .pagination__step { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-width: 44px; height: 44px; padding-inline: var(--sp-3); border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.pagination__page.is-current { background: var(--action); border-color: var(--action); color: #fff; font-weight: 700; }
.pagination__page:hover, .pagination__step:hover { border-color: var(--gold); color: var(--gold-strong); }

@media (max-width: 600px) {
  .pagination { gap: var(--sp-2); margin-top: var(--sp-7); }
  .pagination__pages { gap: var(--sp-1); }
  .pagination__page, .pagination__step { min-width: 36px; height: 40px; padding-inline: var(--sp-2); }
  .pagination__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}


/* Feature banner (includes/feature_banner.html): the map page's investment banner, also a home section */
.feature-banner { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: var(--sp-7); padding: var(--sp-9) var(--sp-9) var(--sp-8); border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.feature-banner__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.feature-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgb(26 30 28 / .55), rgb(26 30 28 / .92)); }
.feature-banner__eyebrow { position: absolute; inset-inline-end: 92px; top: 96px; color: var(--gold); font-size: var(--fs-small); letter-spacing: .2em; }
.feature-banner__title { max-width: 560px; font-size: var(--fs-h1); font-weight: 800; line-height: 1.35; }
.feature-banner__text { max-width: 560px; margin-top: var(--sp-4); color: rgb(255 255 255 / .85); font-size: var(--fs-body); line-height: 1.9; }
.feature-banner__links { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.btn--ghost { background: transparent; border-color: rgb(255 255 255 / .5); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.feature-banner__stats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin: 0; }
.feature-banner__stats li { display: grid; gap: var(--sp-1); padding: var(--sp-5) var(--sp-5); border: 1px solid rgb(255 255 255 / .35); border-radius: var(--r-md); background: rgb(26 30 28 / .35); }
.feature-banner__number { font-size: var(--fs-h2-sm); font-weight: 700; line-height: 1.2; }
.feature-banner__label { font-weight: 700; }
.feature-banner__note { color: rgb(255 255 255 / .75); font-size: var(--fs-small); }
.feature-banner--plain { background: radial-gradient(circle at 80% 20%, #3A3426, var(--ink) 70%); }
@media (max-width: 1000px) {
  .feature-banner { padding: var(--sp-8) var(--sp-5) var(--sp-5); }
  .feature-banner__eyebrow { position: static; }
  .feature-banner__stats { grid-template-columns: minmax(0, 1fr); }
  .feature-banner__title { font-size: var(--fs-h2); }
}

/* Site search (search/search.html) */
.site-search__types { justify-content: flex-start; margin-block: var(--sp-4) var(--sp-2); }
.pill__count { margin-inline-start: var(--sp-2); font-weight: 400; opacity: .8; }
.site-search { max-width: calc(1000px + 2 * var(--gutter)); padding-block: var(--sp-8) var(--sp-9); }
.site-search__count { margin-top: var(--sp-5); color: var(--text-2); }
.site-search__hint { margin-top: var(--sp-5); color: var(--text-2); }
.site-search__browse { margin-top: var(--sp-7); }
.site-search__browse-title { font-size: var(--fs-h4); margin-bottom: var(--sp-4); }
.site-search__browse-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; }
.site-search__browse .pill { min-width: 0; }
.site-search__results { list-style: none; display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.search-result { display: grid; gap: var(--sp-2); padding: var(--sp-5) var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.search-result__kind { color: var(--gold-strong); font-size: var(--fs-xs); font-weight: 700; }
.search-result__title { font-size: var(--fs-h4); font-weight: 800; }
.search-result__title a:hover { color: var(--gold-strong); }
.search-result__summary { max-width: var(--measure); color: var(--text-2); line-height: 1.8; }

/* Site map (core/sitemap_page.html) */
.site-map { padding-block: var(--sp-8) var(--sp-9); }
.site-map__title { text-align: center; }
.site-map__home { margin-top: var(--sp-5); text-align: center; font-weight: 700; }
.site-map__sections { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); margin-top: var(--sp-7); }
.site-map__section { padding: var(--sp-5) var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.site-map__heading { font-size: var(--fs-lead); font-weight: 800; }
.site-map__heading a:hover, .site-map__links a:hover { color: var(--gold-strong); }
.site-map__links { list-style: none; display: grid; gap: var(--sp-2); margin-top: var(--sp-3); color: var(--text-2); }
.site-map__search { margin-top: var(--sp-7); text-align: center; }
@media (max-width: 1000px) { .site-map__sections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .site-map__sections { grid-template-columns: minmax(0, 1fr); } }

/* ---------- touch targets (WCAG 2.5.8) ----------
   Small controls keep their drawn size but get a hit area of at least 24 × 24 px. */
:is(.hero__dot, .block-slider__dot, .news-featured__dot, .facility-slider__dot, .article-slider__dot) { position: relative; }
:is(.block-slider__dot, .news-featured__dot, .facility-slider__dot, .article-slider__dot)::before { content: ""; position: absolute; inset: -8px; }
:is(.achievement-entry__more, .legislation-panel__more, .breadcrumb__home, .breadcrumb__item a) { min-height: 24px; min-width: 24px; display: inline-flex; align-items: center; }
a.contact-card__value, .contact-card .contact-card__value { display: block; min-height: 24px; padding-block: 2px; }
.legislation-panel__more { font-size: var(--fs-small); }

/* One button size everywhere: page stylesheets may place a button (margins, alignment, width) but not resize it. */
:is(a, button, summary).btn { min-height: var(--control-h); height: auto; font-size: var(--fs-ui); border-radius: var(--r-md); }
:is(a, button, summary).btn.btn--sm { min-height: var(--control-h-sm); font-size: var(--fs-small); }
:is(.search-bar, .bodies-search__row, .events-filters__selects) :is(a, button).btn { min-height: var(--control-h-lg); } /* level with the search field (R-67) */

/* Reading text keeps a comfortable line length wherever it appears */
:is(.facility__body, .initiative__body, .committee-section__text, .event-detail__text, .event-detail__body, .block-headline__text, .publication-card__summary) { max-width: var(--measure); }

/* ---------- slider controls (R-67) ----------
   One look for every slider. Over a photo: a 40 px dark round button with an 18 px white icon. Beside a row on the page:
   a 44 px round button in the action colour. Dots are 8 px, the current one 28 px and gold, each with a 24 px hit area. */
:is(.hero__btn, .block-slider__btn, .facility-slider__arrow, .article-slider__arrow, .news-featured__arrow) {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgb(255 255 255 / .35); border-radius: 50%;
  background: rgb(16 19 20 / .75); color: #fff;
}
:is(.hero__btn, .block-slider__btn, .facility-slider__arrow, .article-slider__arrow, .news-featured__arrow):hover { background: rgb(16 19 20 / .9); color: #fff; }
:is(.hero__btn, .block-slider__btn, .facility-slider__arrow, .article-slider__arrow, .news-featured__arrow) .icon { width: 18px; height: 18px; }
:is(.facility-photos__arrow, .article-photos__arrow, .athletes__arrow) {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--action); color: #fff;
}
:is(.facility-photos__arrow, .article-photos__arrow, .athletes__arrow):hover { background: var(--action-hover); color: #fff; }
:is(.facility-photos__arrow, .article-photos__arrow, .athletes__arrow) .icon { width: 20px; height: 20px; }
:is(.block-slider__dot, .news-featured__dot, .facility-slider__dot, .article-slider__dot) {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--r-full); background: rgb(255 255 255 / .75);
  transition: width var(--dur-slow) var(--ease), background-color var(--dur-slow) var(--ease);
}
:is(.block-slider__dot, .news-featured__dot, .facility-slider__dot, .article-slider__dot).is-active { width: 28px; background: var(--gold); }

/* ---------- dialog controls (R-67) ----------
   Close, previous and next in every dialog: a 48 px dark round button with a 24 px white icon, readable on any photo. */
:is(.story-dialog__close, .story-dialog__nav, .member-dialog__close, .member-dialog__nav, .lightbox__close, .lightbox__nav, .video-player__close) {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgb(16 19 20 / .6); color: #fff;
}
:is(.story-dialog__close, .story-dialog__nav, .member-dialog__close, .member-dialog__nav, .lightbox__close, .lightbox__nav, .video-player__close):hover { background: rgb(16 19 20 / .85); color: #fff; }
:is(.story-dialog__close, .story-dialog__nav, .member-dialog__close, .member-dialog__nav, .lightbox__close, .lightbox__nav, .video-player__close) :is(.icon, svg) { width: 24px; height: 24px; stroke-width: 2; }

/* ---------- accordion toggle (R-67): the FAQ and the committee sections share one round toggle ---------- */
:is(.faq-item__toggle, .committee-section__toggle) {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--action); color: #fff;
}
:is(.faq-item__toggle, .committee-section__toggle) .icon { width: 22px; height: 22px; stroke-width: 2; transition: transform var(--dur-2) var(--ease); }

/* ---------- tabs (R-67) ----------
   Text tabs on one line over a hairline, the current one bold with a 3 px underline in the action colour; the row
   scrolls sideways when it does not fit. Used by the initiatives and the events agenda. */
:is(.initiative__tablist, .events-tabs) { display: flex; gap: var(--sp-6); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
:is(.initiative__tablist, .events-tabs)::-webkit-scrollbar { display: none; }
:is(.initiative__tab, .events-tabs__tab) {
  display: flex; align-items: center; flex: none; min-height: var(--target-min); padding-block: var(--sp-3); margin-bottom: -1px;
  border-bottom: 3px solid transparent; font-size: var(--fs-h4); font-weight: 400; line-height: var(--lh-heading); color: var(--text-3); white-space: nowrap;
}
:is(.initiative__tab[aria-selected="true"], .events-tabs__tab.is-active) { border-bottom-color: var(--action); font-weight: 700; color: var(--text); }
:is(.initiative__tab, .events-tabs__tab):hover { color: var(--gold-strong); }

/* ---------- stats row: figures with a label under each (the stats block, the committees' figures) ---------- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 0; }
.stats-row__item { display: grid; justify-items: center; gap: var(--sp-2); padding: var(--sp-4); border-inline-start: 1px solid var(--border); }
.stats-row__item:first-child { border-inline-start: 0; }
.stats-row__icon { order: -2; color: var(--gold); }
.stats-row__number { order: -1; margin: 0; font-size: var(--fs-h2-sm); font-weight: 800; color: var(--gold-strong); }
.stats-row__label { color: var(--text-2); font-size: var(--fs-ui); }

/* 404: a search field and two ways on (R-91) */
.error-page__search { width: min(640px, 100%); padding-block: var(--sp-2); border-bottom: 0; }
.error-page__more { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-5); }

/* ---------- spacing roles (R-93) ----------
   One rhythm for the whole site, written once. `main :is(…)` outranks the page stylesheets' single-class rules. */
/* a section heading sits 32 px above its content (24 on phones) */
main :is(.section-title, .block-band__title, .block-timeline__title, .committee-list__title, .committee-members__title, .event-detail__section-title,
  .facility__heading, .sports-body__heading, .strategy-title, .sport-finder__title, .bodies__heading, .stories__title, .events-agenda__title,
  .news-pulse__title, .related__title, .facilities__list-head, .contact__form-title, .registration__legend) {
  min-height: 0; margin-block-end: var(--sp-6);
}
main :is(.related__head, .home-band__head) { margin-block-end: var(--sp-6); }
main :is(.related__head, .home-band__head) :is(.related__title, .home-band__title) { margin-block-end: 0; }
/* exactly one section gap between the page's last content and the share bar: the last section-level blocks (closed
   dialogs ignored) drop their bottom padding, and the share bar's row adds the gap */
main:has(.page-end) :is(main > *, .container, .streamfield, .streamfield--sections, .block-band, .block-timeline, .block-page-cards, .initiative, .initiative__tabs, .initiative__panel,
  .facility, .facilities, .facility-band, .registration, .committee, .committee-sections, .committee-members, .committee-list, .sports-body, .bodies, .strategy-document,
  .faq, .events-agenda, .event-detail, .event-detail__register, .news-pulse, .champions, .stories, .article, .related, .gallery, .publication-list, .facilities-map,
  .facility-finder, .sport-detail, .sport-detail__section, .achievement-timeline, .legislation, .minister, .contact, .system-sections, .album-cards, .video-grid):not(:has(~ :not(dialog, script, [hidden], .page-end-row))) { padding-block-end: 0; margin-block-end: 0; }
.page-end-row { margin-block-start: var(--section-gap); }
.facility-finder .map-layout { margin-block-end: var(--sp-8); } /* the tilted map draws below its box */
/* detail pages: the title 48 px under the compact banner (32 on phones) */
main :is(.committee__title, .event-detail__title, .achievement-detail__title, .sports-body__title, .facility__title, .legislation-detail__title) { min-height: 0; margin-block-start: 0; padding-block-start: var(--sp-7); }
main :is(.article-heading) { padding-block-start: var(--sp-7); }
/* card grids: 24 px between cards (16 on phones); cards: 24 px inside (16 on phones) */
main :is(.page-cards, .events-grid, .album-cards, .video-grid, .publication-list, .news-list, .facility-grid, .facility-grid--small, .initiative-grid,
  .body-grid, .body-grid--committee, .committee-cards, .related__list, .system-sections__grid, .sport-bento, .program-grid, .branch-grid) { gap: var(--sp-5); }
main :is(.news-card__body, .event-card__body, .album-card__body, .facility-card__body, .sport-card__body, .body-card__body, .program-card__body,
  .initiative-card__body, .video-card__body, .publication-card__body, .committee-card, .page-card) { padding: var(--sp-5); }
/* card titles: grid cards at --fs-h4, large featured cards at --fs-h3 */
main :is(.news-card__title, .event-card__title, .album-card__title, .facility-card__title, .sport-card__title, .body-card__title, .video-card__title,
  .committee-card__title, .page-card__title, .legislation-card__title, .program-card__title) { font-size: var(--fs-h4); line-height: 1.5; }
main :is(.news-featured__title, .publication-card__title, .sport-bento > :nth-child(-n+2) .sport-card__title, .home-event--lead .home-event__title) { font-size: var(--fs-h3); line-height: 1.4; }
@media (max-width: 640px) {
  main :is(.section-title, .block-band__title, .block-timeline__title, .committee-list__title, .committee-members__title, .event-detail__section-title,
    .facility__heading, .sports-body__heading, .strategy-title, .sport-finder__title, .bodies__heading, .stories__title, .events-agenda__title,
    .news-pulse__title, .related__title, .facilities__list-head, .contact__form-title, .registration__legend),
  main :is(.related__head, .home-band__head) { margin-block-end: var(--sp-5); }
  main :is(.committee__title, .event-detail__title, .achievement-detail__title, .sports-body__title, .facility__title, .legislation-detail__title, .article-heading) { padding-block-start: var(--sp-6); }
  main :is(.page-cards, .events-grid, .album-cards, .video-grid, .publication-list, .news-list, .facility-grid, .facility-grid--small, .initiative-grid,
    .body-grid, .body-grid--committee, .committee-cards, .related__list, .system-sections__grid, .sport-bento, .program-grid, .branch-grid) { gap: var(--sp-4); }
  main :is(.news-card__body, .event-card__body, .album-card__body, .facility-card__body, .sport-card__body, .body-card__body, .program-card__body,
    .initiative-card__body, .video-card__body, .publication-card__body, .committee-card, .page-card) { padding: var(--sp-4); }
}

/* a heading with a subtitle: the subtitle sits 12 px under it, the content 32 px under the subtitle (R-93) */
main .block-band__title:has(+ .block-band__subtitle) { margin-block-end: var(--sp-3); }
main .block-band__subtitle { margin-block-end: var(--sp-6); }
