/* Shared colours and components. Keep photographs and external maps in their original colours. */
:root {
  color-scheme: light;
  --text: #18334a;
  --muted: #526b7c;
  --brand: #0a5684;
  --brand-strong: #0a3159;
  --surface-soft: #eef4f7;
  --page-top: #fcfbf8;
  --button-bg: #0a3159;
  --button-text: #fff;
  --action-glow: 0 0 18px rgba(22, 130, 196, .17), 0 4px 12px rgba(10, 49, 89, .08);
  --club-gradient: linear-gradient(115deg, #0a3159 0%, #086b8b 53%, #34763e 100%);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #0c1722;
  --page-top: #101e2b;
  --surface: #152636;
  --surface-alt: #1c3143;
  --surface-soft: #1c3143;
  --ink: #e4edf4;
  --text: #e4edf4;
  --ink-soft: #b3c6d4;
  --muted: #b3c6d4;
  --navy: #d4e8fa;
  --navy-deep: #e5f2ff;
  --blue: #7ac9f6;
  --brand: #8bcff6;
  --brand-strong: #d4e8fa;
  --lime: #a8d868;
  --line: #345064;
  --shadow: 0 20px 48px #0005;
  --shadow-soft: 0 10px 24px #0002;
  --button-bg: #a9d8f6;
  --button-text: #0a243b;
  --action-glow: 0 0 20px rgba(122, 201, 246, .17), 0 4px 12px rgba(0, 0, 0, .12);
}

html { background-color: var(--page-bg, #f4f1eb); }

.placeholder-hero {
  display: flex;
  align-items: center;
  min-height: 8.5rem;
  padding: 1.25rem 0;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--club-gradient);
  color: #fff;
}
.placeholder-hero h1 { margin: 0; color: #fff; }
.placeholder-hero p { margin: .55rem 0 0; max-width: 980px; color: #eef7fa; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top left, #1682c40a, transparent 34%), linear-gradient(180deg, var(--page-top), var(--page-bg));
  background-color: var(--page-bg);
}
main { flex: 1; min-width: 0; }
.lucide { display: inline-block; width: 1.2em; height: 1.2em; flex-shrink: 0; vertical-align: -.18em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.site-header, .site-nav__submenu { background: var(--surface); }
.site-nav__submenu, .site-nav__submenu::before, .site-nav__item, .site-nav__submenu { border-color: var(--line); }
.placeholder-card, .team-app-step, .news-card { background: var(--surface); border-color: var(--line); }
.portal-intro-card, .portal-callout-card, .pool-location-card--relocation, .error-page__card {
  background: linear-gradient(135deg, var(--surface), var(--surface-soft));
}
.uniform-card__media, .portal-feature-card__media, .coach-card__placeholder-label, .policy-meta {
  background: var(--surface-soft);
  border-color: var(--line);
}
.team-app-step__placeholder small, .news-article__content { color: var(--muted); }
.team-app-step__media { background: var(--surface-soft); border-color: var(--line); }
.policy-dropdown, .policy-dropdown summary { border-color: var(--line); }
.policy-dropdown summary { background: var(--surface-soft); }
.portal-feature-card__media { box-shadow: none; }
.slideshow__control { background: var(--surface); color: var(--text); }
.slideshow__control:hover, .slideshow__control:focus-visible { background: var(--surface-soft); }
.theme-toggle { cursor: pointer; background: var(--surface-soft); color: var(--text); }
.theme-toggle__sun, html[data-theme="dark"] .theme-toggle__moon { display: none; }
html[data-theme="dark"] .theme-toggle__sun { display: inline-block; }
.social-link img { width: 26px; height: 26px; }
.site-header .social-link:hover, .site-header .social-link:focus-visible { background: transparent; }
.site-header__actions .icon-link { min-height: 44px; }

/* Links use a quiet accent; dedicated actions pair a label with a directional icon. */
.placeholder-card p a, .placeholder-link-list a, .news-article__content a, .home-inline-link {
  color: var(--brand);
  border: 0;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand) 30%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
.placeholder-card p a:hover, .placeholder-link-list a:hover, .news-article__content a:hover, .home-inline-link:hover {
  text-decoration-color: currentColor;
}
.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .78rem 1.15rem;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--brand-strong);
  background: var(--surface-soft);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  justify-self: start;
}
.action-link--primary { background: var(--button-bg); border-color: transparent; color: var(--button-text); }
.action-link, .home-news__all, .schedule-picker__pdf-link { transition: box-shadow 180ms ease; }
.action-link:hover, .home-news__all:hover, .schedule-picker__pdf-link:hover { box-shadow: var(--action-glow); }
.uniform-card__body { gap: 1rem; }
.uniform-card__body .action-link { margin: .2rem 0 .4rem; }
.uniform-enquiry { display: flex; gap: .8rem; align-items: center; padding: 1rem; border-radius: 12px; background: var(--surface-soft); color: var(--brand-strong); }
.uniform-enquiry > span { flex: 1; min-width: 0; }
.uniform-enquiry span span { display: block; font-size: .95rem; overflow-wrap: anywhere; color: var(--muted); }
.uniform-enquiry:hover { box-shadow: inset 0 0 0 1px var(--brand); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.4rem; align-items: stretch; }
.contact-layout__club { display: grid; grid-template-rows: auto auto; gap: 1.4rem; }
.contact-card { min-width: 0; }
.contact-card h2 { line-height: 1.1; margin: 0 0 .8rem; }
.contact-card__details { margin: 1.25rem 0; display: grid; gap: .7rem; }
.contact-link { display: flex; align-items: center; gap: .85rem; padding: .85rem; border-radius: 12px; background: var(--surface-soft); border: 1px solid transparent; min-width: 0; }
.contact-link:hover { border-color: var(--brand); }
.contact-link__icon { color: var(--brand); display: flex; }
.contact-link > span:nth-child(2) { flex: 1; min-width: 0; }
.contact-link__label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }
.contact-link__value { display: block; color: var(--text); font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.contact-link__arrow { color: var(--brand); width: 1rem; }
.contact-postal { display: flex; gap: .85rem; align-items: center; padding: .85rem; }
.contact-postal > svg { color: var(--brand); }
.contact-postal p { margin: 0; }
.contact-map { grid-column: 1 / -1; padding: 0; overflow: hidden; }
.contact-map__heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem; }
.contact-map__heading h2 { margin: .5rem 0 0; }
.contact-map iframe { border: 0; display: block; width: 100%; height: 420px; background: var(--surface-soft); color-scheme: light; }

.site-footer { margin-top: 1.5rem; background: var(--club-gradient); color: #fff; border: 0; }
.site-footer__inner { padding: 2.2rem 0 1.3rem; }
.site-footer__about { max-width: 650px; }
.site-footer__message { margin: 0 0 .8rem; font-size: clamp(1.35rem, 2.1vw, 1.9rem); line-height: 1.25; font-weight: 600; }
.site-footer__copy, .site-footer__links { color: #e4f1f4; }
.site-footer__links { gap: .7rem; }
.site-footer__links .social-link { background: #fff; width: 46px; height: 46px; flex-shrink: 0; }
.site-footer__copy a:hover, .site-footer__copy a:focus-visible { color: #fff; text-decoration: underline; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: .4rem 1.7rem; border-top: 1px solid #ffffff38; padding: 1rem 0 1.4rem; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 36px; color: #f0f7fa; font-weight: 600; }
.site-footer__nav a:hover { text-decoration: underline; text-underline-offset: .25em; }

@media (max-width: 1100px) and (min-width: 641px) {
  .site-header__top { grid-template-columns: 120px minmax(0, 1fr) auto; }
  .site-brand__title { font-size: 1.7rem; letter-spacing: .025em; }
  .site-header__support-logo img { max-width: 120px; height: auto; }
}
@media (max-width: 960px) {
  .site-nav__submenu { background: transparent; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .placeholder-hero { min-height: 0; padding: 1rem 0; }
  .placeholder-hero p { margin-top: .5rem; font-size: 1rem; line-height: 1.45; }
  .site-header__top { grid-template-columns: clamp(96px, 29vw, 130px) minmax(0, 1fr); gap: .85rem .45rem; align-items: center; }
  .site-brand__title { width: 100%; max-width: none; font-size: 2rem; line-height: 1.1; }
  .site-header__support-logo img { width: clamp(96px, 29vw, 130px); height: auto; }
  .site-header__actions { gap: .16rem; }
  .site-header__actions .icon-link, .site-header__menu-toggle { width: 36px; min-height: 36px; height: 36px; flex-shrink: 0; }
  .site-header__menu-toggle { width: 44px; min-height: 44px; height: 44px; margin-left: .15rem; }
  .site-header__menu-icon { width: 1.5rem; gap: .28rem; }
  .site-header__actions .site-header__portal-link { width: auto; padding: 0 .6rem; font-size: 1.05rem; letter-spacing: 0; }
  .social-link img { width: 25px; height: 25px; }
  .contact-layout { gap: 1rem; }
  .contact-layout__club { gap: 1rem; }
  .contact-link { gap: .6rem; padding: .75rem .6rem; }
  .contact-link__value { font-size: .95rem; }
  .contact-map { padding: 0; }
  .contact-map__heading { align-items: start; flex-direction: column; padding: 1.15rem; }
  .contact-map iframe { height: 330px; }
  .site-footer__inner { flex-direction: row; align-items: start; flex-wrap: wrap; }
  .site-footer__links .social-link img { width: 26px; height: 26px; }
  .site-footer__nav { gap: .35rem 1.2rem; }
}
@media (max-width: 360px) {
  .site-header__top { grid-template-columns: 80px minmax(0, 1fr); }
  .site-header__support-logo img { width: 80px; }
  .site-header__actions { gap: .05rem; }
  .site-header__actions .icon-link, .site-header__menu-toggle { width: 32px; min-height: 34px; height: 34px; }
  .site-header__actions .theme-toggle { width: 34px; }
  .site-header__actions .site-header__portal-link { width: auto; padding: 0 .45rem; }
  .site-header__menu-toggle { width: 44px; min-height: 40px; height: 40px; margin-left: 0; }
}
@media (forced-colors: active) {
  .placeholder-hero { background: Canvas; color: CanvasText; border-bottom: 1px solid CanvasText; }
  .placeholder-hero h1, .placeholder-hero p { color: CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
