:root {
  --nhc-navy: #071e36;
  --nhc-navy-deep: #051627;
  --nhc-navy-card: #0b2a4a;
  --nhc-teal: #1ec8c4;
  --nhc-teal-dark: #15a8a4;
  --nhc-text: #1a2433;
  --nhc-muted: #5b6b7c;
  --nhc-page: #eef3f8;
  --nhc-white: #ffffff;
  --header-height: 4.5rem;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

/* Sticky footer: the page is a column and <main> takes the slack, so short pages (or a
   zoomed-out browser) do not leave the page background showing under the footer. */
body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--nhc-text);
  background: var(--nhc-page);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body > main {
  flex: 1 0 auto;
}

body > .site-footer {
  flex-shrink: 0;
}

a {
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nhc-navy);
}

.site-nav {
  min-height: var(--header-height);
  padding: 0.4rem 0;
}

.site-nav-inner {
  max-width: none;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--nhc-white);
}

.site-brand-mark {
  width: 34px;
  height: 38px;
}

.site-header .site-brand-mark,
.site-brand-footer .site-brand-mark {
  width: auto;
  height: 3.35rem;
  object-fit: contain;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.site-brand-est {
  margin-top: 0.18rem;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  opacity: 0.8;
}

.site-menu .nav-link {
  position: relative;
  color: #d7e3ef !important;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.7rem !important;
}

.site-menu .nav-link:hover,
.site-menu .nav-link:focus {
  color: var(--nhc-white) !important;
}

.site-menu .nav-link.active {
  color: var(--nhc-white) !important;
}

/* ::before, not ::after — Bootstrap draws the dropdown caret on .dropdown-toggle::after, and
   sharing it turned the caret into a white underline on "The Club". */
.site-menu .nav-link.active::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.18rem;
  height: 2px;
  background: var(--nhc-teal);
  border-radius: 2px;
}

.dropdown-menu-dark {
  background: var(--nhc-navy-deep);
  --bs-dropdown-link-active-bg: rgba(30, 200, 196, 0.16);
  --bs-dropdown-link-active-color: var(--nhc-teal);
}

.dropdown-menu-dark .dropdown-item.active {
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--nhc-teal);
}

.btn-member-login,
.btn-teal {
  background: var(--nhc-teal);
  border: 1px solid var(--nhc-teal);
  color: var(--nhc-navy-deep);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
}

.btn-member-login {
  border-radius: 8px;
  padding: 0.45rem 1rem;
}

.btn-member-login:hover,
.btn-teal:hover {
  background: var(--nhc-teal-dark);
  border-color: var(--nhc-teal-dark);
  color: var(--nhc-navy-deep);
}

.btn-outline-light {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}

.hero {
  position: relative;
  background: var(--nhc-navy);
  color: var(--nhc-white);
  padding: 4.5rem 0 7.5rem;
  overflow: hidden;
}

/* The wave art is 2:1 with a flat navy band on top. `cover` crops that band off on wide screens,
   leaving wave crests hard against the header, so a navy fade is laid over the top of the waves
   to make the header melt into the hero at every window width. */
.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      to bottom,
      var(--nhc-navy) 0,
      rgba(7, 30, 54, 0.92) 9%,
      rgba(7, 30, 54, 0.55) 24%,
      rgba(7, 30, 54, 0) 44%
    ),
    var(--hero-media-image, url("/images/Backgrounds/background-wave-1.svg"));
  background-size: 100% 100%, cover;
  background-position: center top, center bottom;
  background-repeat: no-repeat, no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-title span {
  display: block;
  color: var(--nhc-teal);
}

.hero-subtitle {
  max-width: 34rem;
  font-size: 1.05rem;
  color: #d5e2ee;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  background: transparent;
}

.hero .btn-outline-light:hover,
.hero .btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.feature-band {
  margin-top: -4.2rem;
  position: relative;
  z-index: 2;
  padding-bottom: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--nhc-navy-card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(7, 30, 54, 0.22);
}

.feature-card {
  padding: 1.4rem 1.15rem 1.5rem;
  color: var(--nhc-white);
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card:last-child {
  border-right: 0;
}

.feature-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  color: var(--nhc-teal);
  margin-bottom: 0.7rem;
}

.feature-icon svg,
.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card h2 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.86rem;
  color: #c9d7e4;
}

.home-panels {
  padding: 1.5rem 0 3.5rem;
}

.panel-card {
  background: var(--nhc-white);
  border-radius: 18px;
  padding: 1.4rem 1.3rem 1.2rem;
  box-shadow: 0 12px 30px rgba(16, 37, 66, 0.08);
  height: 100%;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.panel-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
}

.btn-sm.btn-teal {
  padding: 0.35rem 0.8rem;
  font-size: 0.72rem;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #edf2f6;
}

.news-item:last-child {
  border-bottom: 0;
}

.news-thumb {
  width: 88px;
  height: 64px;
  border-radius: 8px;
  background: #12324f center / cover no-repeat;
}

.news-ladies {
  background-image: linear-gradient(135deg, #0b3a2a, #1ec8c4);
}

.news-u14 {
  background-image: linear-gradient(135deg, #12324f, #4aa3d8);
}

.news-camp {
  background-image: linear-gradient(135deg, #1a5a32, #8fd18b);
}

.news-item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.news-item p,
.news-item time {
  margin: 0;
  font-size: 0.86rem;
  color: var(--nhc-muted);
}

.booking-table-wrap {
  overflow-x: auto;
}

.booking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.booking-table th {
  color: var(--nhc-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
  padding: 0.4rem 0.35rem 0.7rem;
  border-bottom: 1px solid #edf2f6;
}

.booking-table td {
  padding: 0.7rem 0.35rem;
  vertical-align: middle;
  border-bottom: 1px solid #f3f6f9;
}

.booking-date {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 700;
}

.booking-month,
.booking-dow {
  font-size: 0.65rem;
  color: var(--nhc-muted);
  letter-spacing: 0.05em;
}

.booking-day {
  font-size: 1.05rem;
}

.status-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-confirmed {
  background: #d9f7e7;
  color: #157a4b;
}

.status-pending {
  background: #fff1cc;
  color: #b58100;
}

.booking-location {
  display: block;
  color: var(--nhc-muted);
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.page-shell {
  padding: 2.5rem 0 4rem;
}

.coming-soon {
  max-width: 520px;
}

.coming-soon h1 {
  font-weight: 800;
  margin-bottom: 0.6rem;
}

body.auth-body {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(165deg, #ffffff 0%, #f3f8fd 42%, #a7c9eb 100%);
}

body.auth-body .site-footer {
  display: none;
}

.auth-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.auth-home-link {
  position: absolute;
  top: 1.1rem;
  left: 1.25rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--nhc-navy);
}

.auth-home-link .site-brand-mark {
  width: auto;
  height: 2.6rem;
  object-fit: contain;
}

.auth-home-link .site-brand-text {
  color: var(--nhc-navy);
}

.login-card {
  width: 100%;
  max-width: 504px;
  background: #071a31;
  border-radius: 26px;
  box-shadow: 0 24px 50px rgba(7, 30, 54, 0.28);
  overflow: hidden;
  color: #d7e4ef;
}

.login-card-header {
  padding: 2rem 1.9rem 1.5rem;
  text-align: center;
  background: linear-gradient(90deg, #071a31 0%, #0a2340 52%, #127a82 100%);
}

.login-card-header h1 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 2.05rem;
  font-weight: 800;
}

.login-card-header p {
  margin: 0 auto;
  max-width: 22.5rem;
  color: #c5d4e2;
  font-size: 1.05rem;
  line-height: 1.4;
}

.login-card-body,
.login-card-footer {
  padding: 0 1.8rem;
}

.login-card-body {
  padding-top: 1.4rem;
}

.login-card-body-solo {
  padding-bottom: 1.9rem;
}

.login-card-footer {
  padding-bottom: 1.9rem;
  text-align: center;
}

.login-card-wide {
  max-width: 920px;
}

.auth-page:has(.login-card-wide) {
  align-items: flex-start;
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
}

.register-notice {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #e8f4ff;
  color: #16324f;
}

.register-notice p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.register-notice-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2f6fdb;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.15rem;
}

.register-span {
  grid-column: 1 / -1;
}

.register-submit {
  margin: 0.35rem 0 0.25rem;
}

.register-optin {
  margin: 0.5rem 0 0.25rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(215, 228, 239, 0.28);
  border-radius: 12px;
}

.register-optin-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-weight: 600;
  color: #eaf2f9;
  cursor: pointer;
}

.register-optin-toggle input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #12a19a;
  flex: 0 0 auto;
}

.register-optin-hint {
  margin: 0.45rem 0 0 1.7rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #a9bccd;
}

.register-club-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(215, 228, 239, 0.22);
}

.login-file {
  width: 100%;
  color: #d7e4ef;
  padding: 0.7rem 0.9rem;
  border: 1px dashed #2a4663;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.login-file::file-selector-button {
  margin-right: 0.9rem;
  border: 0;
  border-radius: 8px;
  background: var(--nhc-teal);
  color: #07313a;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
}

.login-file-hint {
  display: block;
  margin-top: 0.4rem;
  color: #8ea2b6;
  font-size: 0.82rem;
}

.hero-verify {
  max-width: 38rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(232, 244, 255, 0.95);
  color: #16324f;
}

.hero-verify p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.login-errors,
.login-field-error {
  color: #ffb4b4;
  font-size: 0.82rem;
}

.login-errors {
  margin-bottom: 0.75rem;
}

.login-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

.login-lockout {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 180, 180, 0.12);
  color: #ffb4b4;
}

.login-lockout p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.login-lockout .login-forgot {
  margin-bottom: 0;
}

.login-field {
  position: relative;
  margin-bottom: 0.9rem;
}

.login-field-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #d7e4ef;
  font-size: 0.95rem;
  font-weight: 600;
}

.login-field-error {
  display: block;
  margin-top: 0.35rem;
}

.login-field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: #9fb3c6;
}

.login-field-icon svg {
  width: 100%;
  height: 100%;
}

.login-input {
  width: 100%;
  height: 58px;
  border: 1px solid #2a4663;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  padding: 0 1rem 0 2.85rem;
  font-size: 1.05rem;
}

.login-input::placeholder {
  color: #8ea2b6;
}

.login-input-plain {
  padding-left: 1rem;
}

.login-input:focus {
  outline: none;
  border-color: var(--nhc-teal);
  box-shadow: 0 0 0 3px rgba(30, 200, 196, 0.15);
}

/* Room on the right for the show/hide password button. */
.login-input-has-toggle {
  padding-right: 3.25rem;
}

/* Edge draws its own reveal button; ours replaces it. */
.login-input-has-toggle::-ms-reveal {
  display: none;
}

.login-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #9fb3c6;
  cursor: pointer;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
  color: var(--nhc-teal);
}

.login-password-toggle:focus-visible {
  outline: 2px solid var(--nhc-teal);
  outline-offset: 1px;
}

.login-password-toggle svg {
  width: 20px;
  height: 20px;
}

.login-password-toggle .login-password-eye-off,
.login-password-toggle[aria-pressed="true"] .login-password-eye {
  display: none;
}

.login-password-toggle[aria-pressed="true"] .login-password-eye-off {
  display: block;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.45rem 0 1.2rem;
  color: #d7e4ef;
  font-size: 1.05rem;
  cursor: pointer;
}

.login-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  appearance: none;
  border: 1.5px solid #d7e4ef;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}

.login-remember input:checked {
  background: var(--nhc-teal);
  border-color: var(--nhc-teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2307131a' stroke-width='2.2' d='M3 8.2 6.4 11.5 13 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.btn-login-submit,
.btn-login-register {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  height: 58px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  line-height: 1;
  text-decoration: none;
}

.btn-login-register svg {
  width: 18px;
  height: 18px;
}

.btn-login-submit {
  border: 0;
  background: var(--nhc-teal);
  color: #07313a;
}

.btn-login-submit:hover {
  background: var(--nhc-teal-dark);
  color: #07313a;
}

.login-or {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.35rem 0 1rem;
  color: #8ea2b6;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.login-or::before,
.login-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #2a4663;
}

.login-forgot {
  display: inline-block;
  color: var(--nhc-teal);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.login-forgot:hover {
  color: #7be7e3;
}

.login-register-copy {
  margin: 0 0 0.9rem;
  color: #c5d4e2;
  font-size: 1.05rem;
}

.btn-login-register {
  border: 1.5px solid var(--nhc-teal);
  color: #fff;
  background: transparent;
}

.btn-login-register:hover {
  background: rgba(30, 200, 196, 0.1);
  color: #fff;
}

.site-footer {
  background: var(--nhc-navy-deep);
  color: #d5e2ee;
  padding: 2.5rem 0 1.2rem;
}

.site-brand-footer {
  margin-bottom: 0.8rem;
}

.footer-copy,
.footer-links a,
.footer-bottom {
  color: #b7c6d4;
}

.footer-heading {
  color: var(--nhc-white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a:hover {
  color: var(--nhc-teal);
}

.footer-bottom-link {
  color: #b7c6d4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom-link:hover,
.footer-bottom-link:focus-visible {
  color: var(--nhc-teal);
}

.footer-bottom {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-version {
  color: #8ea2b6;
}

@media (max-width: 991.98px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-menu {
    padding: 0.75rem 0 1rem;
  }

  .btn-member-login {
    display: inline-block;
    margin: 0.4rem 0.7rem 0.8rem;
  }

  .hero {
    padding: 3rem 0 6.5rem;
  }
}

@media (max-width: 767.98px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .booking-table thead {
    display: none;
  }

  .booking-table tr {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.2rem 0.7rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #edf2f6;
  }

  .booking-table td {
    border: 0;
    padding: 0.1rem 0;
  }

  .booking-table td:first-child {
    grid-row: 1 / span 4;
  }

  .booking-table td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 700;
    color: var(--nhc-muted);
  }
}

@media (max-width: 575.98px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .news-thumb {
    width: 100%;
    height: 120px;
  }

  :root {
    --header-height: 3.6rem;
  }

  .site-nav {
    min-height: var(--header-height);
    padding: 0.2rem 0;
  }

  .site-nav-inner {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .site-brand-mark {
    width: 28px;
    height: 32px;
  }

  .site-header .site-brand-mark,
  .site-brand-footer .site-brand-mark {
    height: 2.7rem;
  }

  body.auth-body {
    min-height: 100dvh;
    overflow-x: hidden;
  }

  .auth-page {
    min-height: calc(100dvh - var(--header-height));
    padding: 1.5rem 0.75rem 0.75rem;
    align-items: center;
  }

  .auth-home-link {
    top: 0.65rem;
    left: 0.75rem;
  }

  .auth-home-link .site-brand-mark {
    height: 2.1rem;
  }

  .login-card {
    max-width: 100%;
    border-radius: 18px;
  }

  .login-card-header {
    padding: 1.1rem 1.15rem 0.85rem;
  }

  .login-card-header h1 {
    font-size: 1.45rem;
    margin-bottom: 0.25rem;
  }

  .login-card-header p {
    font-size: 0.85rem;
  }

  .login-card-body,
  .login-card-footer {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .login-card-body {
    padding-top: 0.9rem;
  }

  .login-card-footer {
    padding-bottom: 1.1rem;
  }

  .register-grid {
    grid-template-columns: 1fr;
  }

  .auth-page:has(.login-card-wide) {
    padding-top: 3.6rem;
  }

  .login-field {
    margin-bottom: 0.65rem;
  }

  .login-input,
  .btn-login-submit,
  .btn-login-register {
    height: 44px;
    line-height: 1;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .login-remember {
    margin: 0.2rem 0 0.75rem;
    font-size: 0.9rem;
  }

  .login-or {
    margin: 0.85rem 0 0.65rem;
    font-size: 0.75rem;
  }

  .login-forgot {
    font-size: 0.9rem;
    margin-bottom: 0.55rem;
  }

  .login-register-copy {
    font-size: 0.85rem;
    margin-bottom: 0.65rem;
  }
}

@media (max-width: 575.98px) and (max-height: 700px) {
  .auth-page {
    padding: 0.5rem 0.65rem;
  }

  .login-card-header {
    padding: 0.85rem 1rem 0.65rem;
  }

  .login-card-header h1 {
    font-size: 1.3rem;
  }

  .login-card-body {
    padding-top: 0.7rem;
  }

  .login-card-footer {
    padding-bottom: 0.85rem;
  }

  .login-input,
  .btn-login-submit,
  .btn-login-register {
    height: 40px;
    line-height: 1;
  }

  .login-or {
    margin: 0.6rem 0 0.45rem;
  }
}

.user-admin-page {
  background: #f4f7fb;
}

.user-admin-wrap {
  max-width: 1180px;
}

.user-admin-heading h1 {
  margin: 0 0 0.35rem;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--nhc-navy);
}

.user-admin-heading p {
  margin: 0 0 1.4rem;
  color: var(--nhc-muted);
}

.user-admin-alert {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
}

.user-admin-alert-success {
  background: #e8f8ee;
  color: #146c43;
}

.user-admin-alert-error {
  background: #fdecea;
  color: #b42318;
}

.user-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.user-stat-card {
  background: var(--nhc-white);
  border: 1px solid #e6edf5;
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.05rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  align-items: center;
}

.user-stat-icon {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #edf3ff;
  color: #3b6dff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-stat-icon svg {
  width: 22px;
  height: 22px;
}

.user-stat-card strong {
  font-size: 1.7rem;
  line-height: 1;
  color: #3b6dff;
  font-weight: 800;
}

.user-stat-card span:last-child {
  color: var(--nhc-muted);
  font-size: 0.92rem;
}

.user-grid-card {
  background: var(--nhc-white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(16, 37, 66, 0.08);
}

.user-grid-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 1.2rem;
  background: linear-gradient(90deg, #0c2f7a 0%, #1547ab 52%, #1e5ac9 100%);
  color: #fff;
}

.user-grid-toolbar h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.user-grid-toolbar p {
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
  opacity: 0.9;
}

.user-grid-search input {
  width: min(260px, 42vw);
  height: 38px;
  border: 0;
  border-radius: 10px;
  padding: 0 0.9rem;
  background: rgba(6, 14, 52, 0.32);
  color: #fff;
}

.user-grid-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.user-grid-search input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(6, 14, 52, 0.42);
}

.user-grid-scroll {
  overflow-x: auto;
}

.user-grid {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.user-grid th,
.user-grid td {
  padding: 0.7rem 0.65rem;
  border-bottom: 1px solid #eef2f6;
  font-size: 0.82rem;
  color: #334155;
  vertical-align: middle;
}

.user-grid thead th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64748b;
  background: #fff;
}

.user-grid-filters th {
  padding-top: 0;
}

.user-grid-filters input {
  width: 100%;
  height: 30px;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  padding: 0 0.45rem;
  font-size: 0.78rem;
}

.user-status {
  display: inline-flex;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.user-status-validated {
  background: #e8f8ee;
  color: #198754;
}

.user-status-pending {
  background: #fff6db;
  color: #9a6700;
}

.user-status-suspended,
.user-status-deactivated {
  background: #fdecea;
  color: #b42318;
}

.user-admin-cell {
  text-align: center;
}

.btn-verify,
.btn-user-edit {
  border: 0;
  background: none;
  font-weight: 700;
  font-size: 0.8rem;
}

.btn-verify {
  background: var(--nhc-teal);
  color: var(--nhc-navy-deep);
  border-radius: 8px;
  padding: 0.28rem 0.7rem;
}

.btn-user-edit {
  color: #1547ab;
}

.user-grid-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem 1rem;
}

.user-grid-footer p {
  margin: 0;
  color: var(--nhc-muted);
  font-size: 0.82rem;
}

.user-grid-pager {
  display: flex;
  gap: 0.3rem;
}

.user-grid-pager button {
  min-width: 32px;
  height: 32px;
  border: 1px solid #dbe4ee;
  background: #fff;
  border-radius: 8px;
  color: #334155;
}

.user-grid-pager button.is-active {
  background: #1547ab;
  border-color: #1547ab;
  color: #fff;
}

.user-verify-modal {
  position: relative;
}

.user-verify-busy {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  border-radius: inherit;
}

.user-verify-busy[hidden] {
  display: none !important;
}

.user-verify-busy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.2rem 1.4rem;
  text-align: center;
}

.user-verify-busy-card p {
  margin: 0;
  font-weight: 700;
  color: var(--nhc-navy);
}

.user-verify-spinner {
  width: 2.1rem;
  height: 2.1rem;
  border: 3px solid #d7e4f4;
  border-top-color: var(--nhc-teal);
  border-radius: 50%;
  animation: user-verify-spin 0.7s linear infinite;
}

@keyframes user-verify-spin {
  to {
    transform: rotate(360deg);
  }
}

.user-verify-lead {
  color: var(--nhc-muted);
}

.user-verify-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.user-verify-meta dt {
  font-size: 0.75rem;
  color: var(--nhc-muted);
  font-weight: 700;
}

.user-verify-meta dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
  color: var(--nhc-navy);
}

.user-verify-email {
  grid-column: 1 / -1;
}

.user-verify-missing,
.user-verify-error {
  margin: 0.7rem 0 0;
  color: #b42318;
  font-size: 0.88rem;
}

.btn-outline-navy {
  border: 1px solid var(--nhc-navy);
  color: var(--nhc-navy);
  background: #fff;
  border-radius: 8px;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
}

.btn-outline-navy:hover {
  background: var(--nhc-navy);
  color: #fff;
}

.user-editor-label {
  display: block;
  margin: 1.1rem 0 0.45rem;
  font-weight: 700;
  font-size: 0.88rem;
}

.tiny-html-editor {
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  overflow: hidden;
}

.tiny-html-toolbar {
  display: flex;
  gap: 0.25rem;
  padding: 0.4rem;
  background: #f4f7fb;
  border-bottom: 1px solid #e6edf5;
}

.tiny-html-toolbar button {
  border: 0;
  background: #fff;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.78rem;
}

.tiny-html-surface {
  min-height: 120px;
  padding: 0.75rem 0.85rem;
  background: #fff;
}

.tiny-html-surface:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
}

.user-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 0.9rem;
}

.user-edit-grid label,
.user-edit-wide {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.user-edit-wide {
  grid-column: 1 / -1;
}

.user-edit-grid input,
.user-edit-grid select {
  height: 38px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  padding: 0 0.7rem;
  font-weight: 500;
}

@media (max-width: 991.98px) {
  .user-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .user-grid-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .user-grid-search input {
    width: 100%;
  }
}

.custom-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.2rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.45rem 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(16, 37, 66, 0.06);
}

.custom-tab {
  border: 0;
  background: transparent;
  color: #64748b;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.9rem 0.25rem 0.7rem;
  border-bottom: 3px solid transparent;
}

.custom-tab.is-active {
  color: #2f5bff;
  border-bottom-color: #2f5bff;
}

.custom-card {
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 18px;
  padding: 1.35rem 1.4rem 1.4rem;
  box-shadow: 0 10px 24px rgba(16, 37, 66, 0.05);
  margin-bottom: 1.15rem;
}

.custom-card h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--nhc-navy);
}

.custom-card > p,
.club-doc-modal-lead {
  margin: 0.3rem 0 1.1rem;
  color: var(--nhc-muted);
  font-size: 0.9rem;
}

.club-doc-form {
  display: grid;
  gap: 1rem;
}

.club-doc-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(140px, 0.7fr) minmax(180px, 0.8fr);
  gap: 0.85rem 1rem;
  align-items: end;
}

.club-doc-fields label,
.club-doc-file-field > span {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.club-doc-fields input[type="text"],
.club-doc-fields input[type="number"],
.club-doc-fields input[type="email"],
.club-doc-fields input[type="url"],
.club-doc-fields select,
.club-doc-fields textarea,
.club-doc-modal input[type="text"],
.club-doc-modal input[type="number"],
.club-doc-modal input[type="email"],
.club-doc-modal input[type="url"],
.club-doc-modal select,
.club-doc-modal textarea {
  height: 42px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  padding: 0 0.8rem;
  font-weight: 500;
  background: #fff;
}

.club-doc-fields textarea,
.club-doc-modal textarea {
  height: auto;
  min-height: 72px;
  padding: 0.65rem 0.8rem;
  resize: vertical;
}

/* iOS Safari zooms in on focus for any field under 16px, and keeps that zoom
   across the reload that follows a save. The fields above inherit 0.82rem
   from their label, so lift them to 16px on phones. */
@media (max-width: 767.98px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  select,
  textarea {
    font-size: 16px;
  }
}

.club-doc-wide {
  grid-column: 1 / -1;
}

.club-doc-new-category {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(140px, 0.7fr) minmax(180px, 0.8fr);
  gap: 0.85rem 1rem;
  align-items: end;
  padding: 0.85rem;
  border: 1px dashed #c5d4e6;
  border-radius: 12px;
  background: #f8fbff;
}

.club-doc-new-category[hidden] {
  display: none !important;
}

.club-doc-card-lead {
  margin: 0.3rem 0 0;
  color: var(--nhc-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.club-doc-empty-spaced,
.club-doc-list-spaced {
  margin-top: 1.1rem;
}

.club-doc-fields .club-doc-flag,
.club-doc-flag {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  min-height: 42px;
  font-weight: 700;
  color: #334155;
}

.club-doc-flag input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #2f5bff;
}

.club-doc-flag span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.club-doc-flag small {
  font-weight: 500;
  color: var(--nhc-muted);
}

.club-doc-flag-modal {
  margin: 0.85rem 0 1rem;
}

.club-doc-flag-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

.club-doc-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 132px;
  border: 1.5px dashed #c5d4e6;
  border-radius: 14px;
  background: #f8fbff;
  color: #64748b;
  cursor: pointer;
  text-align: center;
}

.club-doc-dropzone strong {
  color: #334155;
  font-size: 0.98rem;
}

.club-doc-dropzone span {
  font-size: 0.82rem;
}

.club-doc-dropzone.is-over,
.club-doc-dropzone.has-file {
  border-color: #2f5bff;
  background: #eef3ff;
}

.club-doc-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn-club-upload,
.btn-club-choose {
  background: #2f5bff;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  padding: 0.55rem 1.05rem;
}

.btn-club-upload:hover,
.btn-club-choose:hover {
  background: #2448d6;
  color: #fff;
}

.btn-club-reset {
  background: #fff;
  color: #334155;
  border: 1px solid #d5deea;
  border-radius: 10px;
  font-weight: 700;
  padding: 0.55rem 1.05rem;
}

.club-doc-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.club-doc-count {
  background: #edf2ff;
  color: #2f5bff;
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.club-doc-empty {
  margin: 0;
  color: var(--nhc-muted);
}

.club-doc-groups {
  display: grid;
  gap: 1.15rem;
}

.club-doc-group-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #e8eef6;
}

.club-doc-group-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--nhc-navy);
}

.club-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.club-doc-item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border: 1px solid #e8eef6;
  border-radius: 14px;
}

.club-doc-order {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #edf2ff;
  color: #2f5bff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
}

.club-doc-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #22c55e;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.club-doc-item-category {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.club-doc-copy strong {
  font-weight: 800;
  color: var(--nhc-navy);
}

.club-doc-copy p {
  margin: 0.15rem 0 0;
  color: var(--nhc-muted);
  font-size: 0.82rem;
}

.club-doc-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.club-doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.club-doc-badge-active {
  background: #e8f8ee;
  color: #198754;
}

.club-doc-badge-active span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #22c55e;
}

.club-doc-badge-inactive {
  background: #eef2f6;
  color: #64748b;
}

.club-doc-badge-offline {
  background: #fff4e0;
  color: #b45309;
}

.club-doc-badge-featured {
  background: #e7f7fb;
  color: #0f766e;
}

.club-doc-item-actions {
  display: flex;
  gap: 0.4rem;
}

.club-doc-icon {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.club-doc-icon svg {
  width: 16px;
  height: 16px;
}

.club-doc-edit {
  background: #f59e0b;
}

.club-doc-delete {
  background: #ef4444;
}

.club-doc-modal .modal-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.club-doc-modal .club-doc-fields {
  grid-template-columns: 1fr 140px;
}

.club-doc-file-field {
  display: grid;
  gap: 0.55rem;
}

.club-doc-current-file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 1px solid #e8eef6;
  border-radius: 12px;
}

.club-doc-delete-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  background: #fdecea;
  border-radius: 12px;
}

.club-doc-delete-warning {
  margin: 0.85rem 0 0;
  color: #b42318;
  font-size: 0.88rem;
}

.btn-club-delete {
  background: #ef4444;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  padding: 0.5rem 0.95rem;
}

.customization-busy {
  position: fixed;
  inset: 0;
  z-index: 2000;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 991.98px) {
  .custom-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .club-doc-fields,
  .club-doc-modal .club-doc-fields,
  .club-doc-flag-row,
  .club-doc-new-category,
  .club-doc-item,
  .club-doc-item-category,
  .club-doc-group-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .club-doc-item-actions,
  .club-doc-badges {
    justify-content: flex-start;
  }
}

.docs-page,
.contact-page {
  background: #f7fafc;
  padding-bottom: 4rem;
}

.docs-hero {
  background: #fff;
  padding: 2.4rem 0 1.4rem;
}

.docs-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.9fr);
  gap: 1.5rem;
  align-items: center;
}

.docs-hero-copy h1,
.contact-hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 800;
  color: var(--nhc-navy);
}

.docs-hero-copy p,
.contact-hero p {
  margin: 0;
  max-width: 34rem;
  color: var(--nhc-muted);
  font-size: 1.02rem;
}

.docs-hero-photo {
  min-height: 168px;
  border-radius: 18px;
  background: url("/images/Live-Images/Green-Yellow-Railway/DSC_2466.JPG") center / cover no-repeat;
  box-shadow: 0 12px 28px rgba(7, 30, 54, 0.12);
}

.docs-body {
  display: grid;
  gap: 1.25rem;
  padding-top: 1.4rem;
}

.docs-featured {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  background: var(--nhc-navy);
  color: #fff;
  border-radius: 18px;
}

.docs-featured-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ec7d8;
}

.docs-featured h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.docs-featured p {
  margin: 0.35rem 0 0;
  color: #c9d7e4;
}

.docs-btn-featured,
.docs-btn-contact {
  background: var(--nhc-teal);
  color: var(--nhc-navy-deep);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.7rem 1.25rem;
  white-space: nowrap;
}

.docs-btn-featured:hover,
.docs-btn-contact:hover {
  background: var(--nhc-teal-dark);
  color: var(--nhc-navy-deep);
}

.docs-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 0.8rem;
}

.docs-search {
  position: relative;
  display: flex;
  align-items: center;
}

.docs-search svg {
  position: absolute;
  left: 0.85rem;
  width: 16px;
  height: 16px;
  color: #94a3b8;
}

.docs-search input,
.docs-toolbar select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #fff;
  color: var(--nhc-text);
  font-weight: 500;
}

.docs-search input,
.docs-toolbar select {
  height: 46px;
  padding: 0 0.9rem 0 2.4rem;
}

.docs-toolbar select {
  padding-left: 0.9rem;
  min-width: 210px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.docs-card,
.contact-directory,
.contact-form-card,
.contact-visit,
.contact-finder-card {
  background: #fff;
  border: 1px solid #e6eef6;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 40, 70, 0.04);
}

.docs-card {
  padding: 1.2rem 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.docs-card h2,
.contact-group h2,
.contact-form-card h2,
.contact-visit h2,
.contact-finder-card h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--nhc-navy);
}

.docs-card-lead {
  margin: 0.4rem 0 0.9rem;
  color: var(--nhc-muted);
  font-size: 0.92rem;
}

.docs-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.docs-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.docs-item.is-extra {
  display: none;
}

.docs-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--nhc-navy);
}

.docs-item span {
  display: block;
  margin-top: 0.15rem;
  color: var(--nhc-muted);
  font-size: 0.78rem;
}

.docs-view-pdf {
  flex-shrink: 0;
  border: 1px solid var(--nhc-teal);
  color: #0f766e;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.docs-view-pdf:hover {
  background: #e7f7fb;
  color: #0f766e;
}

.docs-view-all {
  margin-top: auto;
  padding: 0.9rem 0 0.15rem;
  border: 0;
  background: none;
  color: #0f766e;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: left;
}

.docs-empty {
  margin: 0;
  color: var(--nhc-muted);
}

.docs-help {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: #e9f8fb;
  border: 1px solid #d5eef3;
  border-radius: 18px;
}

.docs-help-copy {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.docs-help-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d7f1f6;
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.docs-help-copy strong {
  display: block;
  color: var(--nhc-navy);
}

.docs-help-copy p {
  margin: 0.2rem 0 0;
  color: var(--nhc-muted);
  font-size: 0.92rem;
}

.contact-page {
  padding-top: 2.6rem;
}

.contact-hero {
  text-align: center;
  margin-bottom: 1.6rem;
}

.contact-hero p {
  margin: 0 auto;
}

.contact-status {
  margin: 0 0 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
}

.contact-status.is-success {
  background: #e8f8ee;
  color: #166534;
}

.contact-status.is-error {
  background: #fdecea;
  color: #b42318;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.15rem;
  align-items: start;
}

.contact-directory,
.contact-form-card,
.contact-visit,
.contact-finder-card {
  padding: 1.3rem 1.35rem;
}

.contact-group + .contact-group {
  margin-top: 1.2rem;
}

.contact-people {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.7rem;
  align-items: stretch;
}

.contact-person {
  flex: 1 1 16.75rem;
  min-width: max-content;
  max-width: min(100%, calc(50% - 0.35rem));
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: #fff;
}

.contact-person h3 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--nhc-navy);
}

.contact-person-name,
.contact-person a,
.contact-visit p {
  display: block;
  margin: 0.18rem 0 0;
  color: var(--nhc-muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.contact-person a[href^="mailto:"] {
  white-space: nowrap;
}

.contact-person a:hover,
.contact-visit a:hover {
  color: var(--nhc-teal-dark);
}

.contact-side {
  display: grid;
  gap: 1rem;
}

.contact-form-card h2,
.contact-visit h2,
.contact-finder-card h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-form-card h2 svg,
.contact-finder-card h2 svg {
  width: 20px;
  height: 20px;
  color: #64748b;
}

.contact-form-card p {
  margin: 0.45rem 0 1rem;
  color: var(--nhc-muted);
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
}

.contact-form input,
.contact-form textarea {
  min-height: 44px;
  padding: 0.7rem 0.85rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form span {
  color: #b42318;
  font-size: 0.78rem;
  font-weight: 600;
}

.contact-submit {
  width: 100%;
  border-radius: 12px;
}

.contact-visit {
  display: grid;
  gap: 0.8rem;
  align-items: center;
}

.contact-visit-name {
  margin-top: 0.45rem !important;
  color: var(--nhc-navy) !important;
  font-weight: 700 !important;
}

.contact-visit a {
  display: block;
  margin: 0.18rem 0 0;
  color: var(--nhc-muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.contact-directions {
  display: inline-flex;
  margin-top: 0.9rem;
  border: 1px solid var(--nhc-teal);
  color: var(--nhc-navy-deep);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 700;
}

.contact-directions:hover {
  background: var(--nhc-teal);
  color: var(--nhc-navy-deep);
}

.contact-finder {
  margin-top: 1.15rem;
}

.contact-finder-card h2 {
  margin-bottom: 1rem;
}

.contact-finder-select {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.contact-finder-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 12px;
  background: var(--nhc-teal);
  color: var(--nhc-navy-deep);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.contact-finder-toggle:hover {
  background: var(--nhc-teal-dark);
  color: var(--nhc-navy-deep);
}

.contact-finder-toggle-icon,
.contact-finder-chevron {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-finder-toggle-icon svg,
.contact-finder-chevron svg {
  width: 20px;
  height: 20px;
}

.contact-finder-toggle-label {
  flex: 1;
  text-align: center;
}

.contact-finder.is-open .contact-finder-chevron,
.contact-finder-select.is-open .contact-finder-chevron {
  transform: rotate(180deg);
}

.contact-finder-menu {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: calc(100% + 0.45rem);
  margin: 0;
  padding: 0.55rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e6eef6;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(15, 40, 70, 0.12);
}

.contact-finder-option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.85rem 1.15rem;
  color: #334155;
  font-size: 0.98rem;
  font-weight: 500;
}

.contact-finder-option:hover,
.contact-finder-option[aria-selected="true"] {
  background: #e9f8fb;
  color: var(--nhc-navy);
}

.contact-finder-detail {
  margin-top: 1.15rem;
  padding: 1.1rem 0.2rem 0.2rem;
}

.contact-finder-copy h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  color: var(--nhc-navy);
  font-size: 1.12rem;
  font-weight: 800;
}

.contact-finder-copy h3 svg {
  width: 22px;
  height: 22px;
  color: #64748b;
}

.contact-finder-copy p {
  margin: 0.12rem 0 0;
  color: var(--nhc-muted);
  font-size: 0.95rem;
}

.contact-finder-map {
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 18px;
  min-height: 320px;
  background: #e7f4f8;
}

.contact-finder-map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

@media (max-width: 1100px) {
  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .docs-hero-inner,
  .docs-toolbar,
  .docs-featured,
  .docs-help,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .docs-featured,
  .docs-help {
    display: grid;
  }

  .docs-hero-photo {
    min-height: 180px;
  }
}

@media (max-width: 640px) {
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .contact-person {
    flex-basis: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .contact-person a[href^="mailto:"] {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Teams — site admin chooser */

.team-custom-head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e3eaf2;
  margin-bottom: 1.25rem;
}

.team-custom-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: #e8f1fb;
  color: #1d4ed8;
}

.team-custom-icon svg {
  width: 22px;
  height: 22px;
}

.team-choose-heading,
.team-section-heading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--nhc-navy);
  margin: 0 0 0.85rem;
}

.team-section-heading {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e3eaf2;
}

.team-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.team-choose-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 2.25rem 1rem 1rem;
  border: 1px solid #dbe5ee;
  border-radius: 14px;
  background: var(--nhc-white);
  color: var(--nhc-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-choose-card:hover {
  border-color: var(--nhc-teal);
  box-shadow: 0 10px 24px rgba(7, 30, 54, 0.1);
  color: var(--nhc-text);
}

.team-choose-avatar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--nhc-navy);
  color: var(--nhc-white);
}

.team-choose-avatar svg {
  width: 24px;
  height: 24px;
}

.team-choose-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.team-choose-copy strong {
  font-size: 0.95rem;
  color: var(--nhc-navy);
}

.team-choose-sub {
  font-size: 0.8rem;
  color: var(--nhc-muted);
}

.team-choose-meta {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--nhc-muted);
}

.team-choose-meta svg {
  width: 13px;
  height: 13px;
}

.team-choose-chevron {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nhc-muted);
}

.team-choose-chevron svg {
  width: 18px;
  height: 18px;
}

.team-choose-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #e3eaf2;
  font-size: 0.8rem;
  color: var(--nhc-muted);
}

.team-choose-note svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

/* Pitch bookings — shared tokens */

:root {
  --slot-available: #d7f5e2;
  --slot-available-line: #57c98a;
  --slot-club-training: #cdeeee;
  --slot-club-training-line: #1ec8c4;
  --slot-match: #d6e2fb;
  --slot-match-line: #4a7ddc;
  --slot-private: #e6dcf9;
  --slot-private-line: #8b6fd4;
  --slot-pending: #fdecc8;
  --slot-pending-line: #e8a838;
}

/* Pitch bookings — public page */

.booking-page {
  background: var(--nhc-page);
  padding: 2.25rem 0 3.5rem;
}

.booking-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.booking-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--nhc-navy);
  margin: 0 0 0.45rem;
}

.booking-hero p {
  color: var(--nhc-muted);
  font-size: 0.9rem;
  margin: 0;
  max-width: 34rem;
}

.booking-how {
  background: var(--nhc-white);
  border: 1px solid #e3eaf2;
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 10px 26px rgba(7, 30, 54, 0.05);
}

.booking-how > strong {
  display: block;
  font-size: 0.82rem;
  color: var(--nhc-navy);
  margin-bottom: 0.6rem;
}

.booking-how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.booking-how-steps > div + div {
  padding-left: 0.9rem;
  border-left: 1px solid #eef3f8;
}

.booking-how-step {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--nhc-teal-dark);
  margin-bottom: 0.15rem;
}

.booking-how-steps p {
  margin: 0;
  font-size: 0.68rem;
  color: var(--nhc-muted);
}

.booking-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.booking-request-btn {
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
}

.booking-toolbar select,
.booking-toolbar input[type="date"] {
  padding: 0.5rem 0.75rem;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  background: var(--nhc-white);
  font-size: 0.82rem;
  min-width: 11rem;
}

.booking-views {
  display: flex;
  margin-left: auto;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  overflow: hidden;
  background: var(--nhc-white);
}

.booking-views a {
  padding: 0.5rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--nhc-text);
}

.booking-views a:hover {
  background: #eef3f8;
}

.booking-views a.is-active {
  background: var(--nhc-teal-dark);
  color: var(--nhc-white);
}

.booking-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.68rem;
  color: var(--nhc-muted);
}

.booking-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Offline pitches: shown on the calendar, but members book them through the club. */
.booking-offline-note {
  margin: 0 0 1rem;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  border: 1px solid #f5d9a8;
  background: #fff8ec;
  color: #7c4a03;
  font-size: 0.85rem;
}

.booking-offline-note a {
  color: inherit;
  font-weight: 700;
}

.booking-col-offline {
  display: block;
  width: fit-content;
  margin: 0.2rem auto 0;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: #fff4e0;
  color: #b45309;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.booking-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.booking-dot.is-available { background: var(--slot-available-line); }
.booking-dot.is-club-training { background: var(--slot-club-training-line); }
.booking-dot.is-match { background: var(--slot-match-line); }
.booking-dot.is-private { background: var(--slot-private-line); }
.booking-dot.is-pending { background: var(--slot-pending-line); }

.booking-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 205px);
  gap: 0.85rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.booking-calendar {
  background: var(--nhc-white);
  border: 1px solid #e3eaf2;
  border-radius: 14px;
  padding: 0.75rem;
  overflow-x: auto;
}

.booking-grid-head,
.booking-grid-body {
  display: grid;
  grid-template-columns:
    var(--booking-time-col, 62px)
    repeat(var(--booking-cols, 4), minmax(var(--booking-col-min, 150px), 1fr));
  gap: var(--booking-col-gap, 0.35rem);
}

/* A full week has to fit without a horizontal scrollbar, so the seven day columns and the
   time gutter are tighter than the daily view's per-pitch columns. */
.booking-grid[data-columns="7"] .booking-grid-head,
.booking-grid[data-columns="7"] .booking-grid-body {
  --booking-cols: 7;
  --booking-col-min: 104px;
  --booking-time-col: 50px;
  --booking-col-gap: 0.25rem;
}

.booking-grid[data-columns="7"] .booking-col-head {
  padding: 0.5rem 0.2rem;
  font-size: 0.72rem;
}

.booking-grid[data-columns="7"] .booking-slot {
  padding: 0.3rem 0.35rem;
}

.booking-grid[data-columns="1"] .booking-grid-head,
.booking-grid[data-columns="1"] .booking-grid-body {
  --booking-cols: 1;
}

.booking-col-head,
.booking-grid-head .booking-time-col {
  padding: 0.5rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--nhc-navy);
  text-align: center;
  border-bottom: 1px solid #e3eaf2;
}

.booking-grid-body .booking-time-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.35rem;
}

.booking-hour {
  font-size: 0.65rem;
  color: var(--nhc-muted);
  min-height: 1.6rem;
}

.booking-col {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.35rem;
  border-left: 1px solid #f1f5f9;
}

.booking-slot {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: #f7fafd;
  font-size: 0.7rem;
  color: var(--nhc-text);
}

.booking-slot strong {
  display: block;
  font-size: 0.72rem;
}

.booking-slot-time {
  display: block;
  font-size: 0.62rem;
  color: var(--nhc-muted);
}

.booking-slot-pitch {
  display: block;
  font-size: 0.6rem;
  color: var(--nhc-muted);
}

button.booking-slot {
  cursor: pointer;
}

button.booking-slot:hover,
button.booking-slot:focus-visible {
  border-color: var(--nhc-teal);
  box-shadow: 0 0 0 2px rgba(30, 200, 196, 0.25);
}

.booking-slot.is-selected {
  border-color: var(--nhc-teal-dark);
  box-shadow: 0 0 0 2px rgba(21, 168, 164, 0.4);
}

.booking-slot.is-available {
  background: var(--slot-available);
  border: 1px dashed var(--slot-available-line);
}

.booking-slot.is-club-training {
  background: var(--slot-club-training);
  border-left: 3px solid var(--slot-club-training-line);
}

.booking-slot.is-match {
  background: var(--slot-match);
  border-left: 3px solid var(--slot-match-line);
}

.booking-slot.is-private {
  background: var(--slot-private);
  border-left: 3px solid var(--slot-private-line);
}

.booking-slot.is-pending {
  background: var(--slot-pending);
  border-left: 3px solid var(--slot-pending-line);
}

.booking-slot.is-readonly {
  opacity: 0.75;
}

/* monthly */

.booking-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.5rem 0.75rem;
}

.booking-month-head strong {
  font-size: 0.95rem;
  color: var(--nhc-navy);
}

.booking-month-head a {
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  color: var(--nhc-navy);
  font-size: 1.1rem;
  line-height: 1;
}

.booking-month-head a:hover {
  background: #eef3f8;
}

.booking-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: #e3eaf2;
  border: 1px solid #e3eaf2;
  border-radius: 8px;
  overflow: hidden;
}

.booking-month-dayname {
  background: #f7fafd;
  padding: 0.4rem;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--nhc-muted);
}

.booking-month-cell {
  background: var(--nhc-white);
  min-height: 5.5rem;
  padding: 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.booking-month-cell.is-muted {
  background: #fafcfe;
  opacity: 0.55;
}

.booking-month-number {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--nhc-muted);
}

.booking-chip {
  display: block;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.55rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #eef3f8;
}

.booking-chip.is-club-training { background: var(--slot-club-training); }
.booking-chip.is-match { background: var(--slot-match); }
.booking-chip.is-private { background: var(--slot-private); }
.booking-chip.is-pending { background: var(--slot-pending); }
.booking-chip.is-available { background: var(--slot-available); }

/* selected slot panel */

.booking-slot-card {
  background: var(--nhc-white);
  border: 1px solid #e3eaf2;
  border-radius: 14px;
  padding: 0.85rem;
  box-shadow: 0 10px 26px rgba(7, 30, 54, 0.05);
}

.booking-slot-card h2 {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--nhc-navy);
  margin: 0 0 0.7rem;
}

.booking-slot-card h2 svg {
  width: 15px;
  height: 15px;
  color: var(--nhc-teal-dark);
}

.booking-slot-empty {
  font-size: 0.75rem;
  color: var(--nhc-muted);
}

.booking-slot-details {
  margin: 0 0 0.85rem;
}

.booking-slot-details dt {
  font-size: 0.62rem;
  color: var(--nhc-muted);
  font-weight: 500;
}

.booking-slot-details dd {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--nhc-text);
}

.booking-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.65rem;
  font-size: 0.62rem;
  color: var(--nhc-muted);
}

.booking-club-note {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  color: var(--nhc-muted);
}

.booking-field select,
.booking-field input,
.booking-field textarea {
  padding: 0.4rem 0.55rem;
  border: 1px solid #dbe5ee;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--nhc-text);
}

.booking-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0.75rem 0 0.6rem;
  font-size: 0.62rem;
  color: var(--nhc-muted);
}

.booking-price strong {
  font-size: 0.95rem;
  color: var(--nhc-navy);
}

.booking-price-basis {
  margin: -0.35rem 0 0.7rem;
  font-size: 0.62rem;
  color: var(--nhc-muted);
  text-align: right;
}

.booking-confirm {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
}

.booking-note {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.62rem;
  color: var(--nhc-muted);
  text-align: center;
}

/* my booking requests */

.booking-requests {
  background: var(--nhc-white);
  border: 1px solid #e3eaf2;
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: 0 10px 26px rgba(7, 30, 54, 0.05);
}

.booking-requests-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.booking-requests-head h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--nhc-navy);
  margin: 0;
}

.booking-requests-head p {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--nhc-muted);
}

.booking-refresh {
  font-size: 0.72rem;
  padding: 0.35rem 0.8rem;
}

.booking-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.booking-filter-pills button {
  padding: 0.28rem 0.75rem;
  border: 1px solid #dbe5ee;
  border-radius: 6px;
  background: var(--nhc-white);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--nhc-text);
  cursor: pointer;
}

.booking-filter-pills button:hover {
  border-color: var(--nhc-teal);
}

.booking-filter-pills button.is-active {
  background: var(--nhc-navy);
  border-color: var(--nhc-navy);
  color: var(--nhc-white);
}

.booking-table-wrap {
  overflow-x: auto;
}

.booking-requests-table,
.admin-bookings-table,
.admin-entries-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.booking-requests-table th,
.admin-bookings-table th,
.admin-entries-table th {
  text-align: left;
  padding: 0.5rem 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nhc-muted);
  border-bottom: 1px solid #dbe5ee;
  white-space: nowrap;
}

.booking-requests-table td,
.admin-bookings-table td,
.admin-entries-table td {
  padding: 0.6rem;
  border-bottom: 1px solid #eef3f8;
  white-space: nowrap;
}

.booking-status {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
}

.booking-status.is-pending { background: var(--slot-pending); color: #8a5a00; }
.booking-status.is-approved { background: #d7f5e2; color: #1d7a45; }
.booking-status.is-rejected { background: #fbdcdc; color: #a32626; }
.booking-status.is-cancelled { background: #e7ecf1; color: #5b6b7c; }
.booking-status.is-completed { background: var(--slot-match); color: #23509c; }

/* Pitch bookings — site admin */

.admin-bookings-head {
  flex-wrap: wrap;
  border-bottom: 0;
}

.admin-bookings-create {
  margin-left: auto;
}

.admin-bookings-card {
  padding-top: 0;
  overflow: hidden;
}

.admin-bookings-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 -1.5rem 1rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(90deg, #1d4ed8, #2f6ae3);
  color: var(--nhc-white);
}

.admin-bookings-bar h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--nhc-white);
}

.admin-bookings-bar svg {
  width: 16px;
  height: 16px;
}

.admin-booking-actions {
  display: flex;
  gap: 0.2rem;
}

.admin-booking-actions .club-doc-icon.is-open svg {
  transform: rotate(180deg);
}

.admin-booking-approve {
  color: #1d7a45;
}

.admin-booking-reject {
  color: #a32626;
}

.admin-booking-entries {
  margin: 0.5rem 0 1rem;
  padding: 0.85rem;
  border: 1px solid #dbe5ee;
  border-left: 3px solid #1d4ed8;
  border-radius: 10px;
  background: #fafcfe;
}

.admin-booking-entries-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.admin-booking-entries-head strong {
  font-size: 0.85rem;
  color: var(--nhc-navy);
}

.admin-entry-add {
  font-size: 0.72rem;
  padding: 0.3rem 0.8rem;
}

.admin-entries-empty {
  color: var(--nhc-muted);
  font-style: italic;
}

.admin-bookings-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--nhc-muted);
}

.admin-bookings-footer .news-pager {
  margin-top: 0;
}

/* Below Bootstrap's xl breakpoint the container drops to 960px, which is not enough for the
   week grid plus the side panel, so the panel moves under the calendar instead of forcing
   a horizontal scrollbar. */
@media (max-width: 1199.98px) {
  .booking-hero,
  .booking-main {
    grid-template-columns: 1fr;
  }

  .booking-views {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .booking-how-steps {
    grid-template-columns: 1fr;
  }

  .booking-how-steps > div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #eef3f8;
    padding-top: 0.5rem;
  }

  .booking-month-cell {
    min-height: 4rem;
  }

  .admin-bookings-bar {
    margin-left: -1.1rem;
    margin-right: -1.1rem;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

/* News — site admin */

.news-admin-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.news-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--nhc-muted);
}

.news-compose {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
  gap: 1rem;
  align-items: start;
}

.news-editor .tiny-html-surface {
  min-height: 150px;
}

.news-row-thumb {
  width: 72px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef3f8;
  flex: 0 0 auto;
}

/* The photo strip under an article in the admin list. Sits on its own row, so it needs the
   full width of the flex item rather than a column beside the title. */
.news-image-manager {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #e3eaf2;
  flex-wrap: wrap;
}

.news-image-manager-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--nhc-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.news-image-strip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.news-image-chip {
  position: relative;
  width: 64px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef3f8;
  border: 1px solid #e3eaf2;
}

.news-image-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-image-cover {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  font-size: 0.55rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: rgba(7, 30, 54, 0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-image-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 30, 54, 0.75);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
}

.news-image-remove:hover {
  background: #c0392b;
}

.news-image-add label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.3rem;
  color: var(--nhc-muted);
  cursor: pointer;
  border: 1px dashed #c6d3e0;
  border-radius: 8px;
}

.news-image-add label:hover {
  color: var(--nhc-teal-dark);
  border-color: var(--nhc-teal-dark);
}

.news-image-hint {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: var(--nhc-muted);
}

.newsletter-cloud {
  color: #9db4ca;
}

.newsletter-cloud svg {
  width: 30px;
  height: 30px;
}

.newsletter-chosen {
  margin-top: 0.6rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  background: var(--nhc-white);
  font-size: 0.75rem;
  color: var(--nhc-text);
}

.round-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.round-image-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 0.6rem;
  border: 1px solid #dbe5ee;
  border-radius: 12px;
  text-align: center;
}

.round-image-slot strong {
  font-size: 0.72rem;
  color: var(--nhc-navy);
}

.round-image-slot small {
  font-size: 0.65rem;
  color: var(--nhc-muted);
}

.round-image-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: #eef3f8;
}

.round-image-preview.is-empty {
  border: 1px dashed #c6d6e5;
}

.round-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* News — public listing */

.news-page {
  background: var(--nhc-page);
  padding-bottom: 3.5rem;
}

.news-hero {
  background: linear-gradient(120deg, var(--nhc-navy-deep), #123a63);
  color: var(--nhc-white);
  padding: 2.75rem 0 3rem;
}

.news-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.news-hero p {
  margin: 0;
  color: #cfdded;
  font-size: 0.95rem;
}

.news-body {
  padding-top: 1.75rem;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.news-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.news-search svg {
  position: absolute;
  left: 0.7rem;
  width: 16px;
  height: 16px;
  color: var(--nhc-muted);
}

.news-search input {
  width: 100%;
  padding: 0.55rem 0.8rem 0.55rem 2.1rem;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  background: var(--nhc-white);
  font-size: 0.82rem;
}

.news-categories {
  background: var(--nhc-white);
  border: 1px solid #e3eaf2;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 26px rgba(7, 30, 54, 0.05);
}

.news-categories h2 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--nhc-navy);
  margin: 0 0 0.75rem;
}

.news-categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.news-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  color: var(--nhc-text);
  font-size: 0.82rem;
}

.news-categories a:hover {
  background: #eef3f8;
  color: var(--nhc-navy);
}

.news-categories a.is-active {
  background: var(--nhc-teal);
  color: var(--nhc-navy-deep);
  font-weight: 700;
}

.news-category-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: inherit;
  opacity: 0.75;
}

.news-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.news-count {
  font-size: 0.8rem;
  color: var(--nhc-muted);
}

.news-sort select {
  padding: 0.45rem 0.7rem;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  background: var(--nhc-white);
  font-size: 0.8rem;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.news-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  background: var(--nhc-white);
  border: 1px solid #e3eaf2;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(7, 30, 54, 0.05);
}

.news-row-image {
  flex: 0 0 auto;
  width: 110px;
  height: 78px;
  border-radius: 10px;
  overflow: hidden;
  background: #dfeae2;
}

.news-row-image.is-placeholder {
  background: linear-gradient(160deg, #cfe4d4, #a9cdb4);
}

.news-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-row-copy {
  flex: 1;
  min-width: 0;
}

.news-row-category {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--nhc-teal-dark);
  margin-bottom: 0.2rem;
}

.news-row-copy h2 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
}

.news-row-copy h2 a {
  color: var(--nhc-navy);
}

.news-row-copy h2 a:hover {
  color: var(--nhc-teal-dark);
}

.news-row-copy p {
  font-size: 0.78rem;
  color: var(--nhc-muted);
  margin: 0 0 0.35rem;
}

.news-row-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--nhc-muted);
}

.news-row-meta svg {
  width: 13px;
  height: 13px;
}

.news-row-divider {
  opacity: 0.5;
  margin: 0 0.15rem;
}

.news-row-btn {
  flex: 0 0 auto;
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
  padding: 0.4rem 0.9rem;
}

.news-pager {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
}

.news-pager a {
  min-width: 2rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #dbe5ee;
  border-radius: 6px;
  background: var(--nhc-white);
  color: var(--nhc-text);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.news-pager a:hover {
  border-color: var(--nhc-teal);
  color: var(--nhc-navy);
}

.news-pager a.is-active {
  background: var(--nhc-teal);
  border-color: var(--nhc-teal);
  color: var(--nhc-navy-deep);
}

/* News — article page */

.article-page {
  background: var(--nhc-page);
  padding-bottom: 3.5rem;
}

.article-hero {
  background: linear-gradient(120deg, var(--nhc-navy-deep), #123a63);
  color: var(--nhc-white);
  padding: 2rem 0 0;
}

.article-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: #a9c2d8;
  margin-bottom: 0.9rem;
}

.article-crumbs a {
  color: #cfdded;
}

.article-crumbs a:hover {
  color: var(--nhc-white);
}

.article-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  margin: 0 0 0.4rem;
}

.article-standfirst {
  color: #cfdded;
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
}

/* The image is shown whole, not cropped: admins upload anything from wide banners to portrait
   photos. Where it does not fill the frame, a blurred copy of itself fills the sides instead of
   flat bars. The negative side margins line the frame up with the white article card below,
   which spans the container's padding. */
.article-hero-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.85);
  margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -0.5) -4rem;
  background: #123a63;
  isolation: isolate;
}

.article-hero-image::before {
  content: "";
  position: absolute;
  inset: -24px;
  background-image: var(--article-image);
  background-size: cover;
  background-position: center;
  filter: blur(24px) saturate(1.1);
  opacity: 0.55;
  z-index: -1;
}

.article-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

/* Article photo carousel — same framing as a single hero image, with the slides side by side
   on a track that slides horizontally. Swipe on touch is native scrolling; the arrows and dots
   drive the same scroll, so the two stay in step without any position bookkeeping. */
.article-carousel {
  position: relative;
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: #123a63;
  margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -0.5) -4rem;
  overflow: hidden;
  isolation: isolate;
}

.article-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.article-carousel-track::-webkit-scrollbar {
  display: none;
}

.article-carousel-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  isolation: isolate;
}

/* The blurred fill behind a photo that does not match the frame's shape. */
.article-carousel-slide::before {
  content: "";
  position: absolute;
  inset: -24px;
  background-image: var(--article-image);
  background-size: cover;
  background-position: center;
  filter: blur(24px) saturate(1.1);
  opacity: 0.55;
  z-index: -1;
}

.article-carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

.article-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 30, 54, 0.55);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.article-carousel-arrow:hover,
.article-carousel-arrow:focus-visible {
  background: rgba(7, 30, 54, 0.8);
}

.article-carousel-arrow svg {
  width: 20px;
  height: 20px;
}

.article-carousel-arrow.is-prev {
  left: 0.65rem;
}

.article-carousel-arrow.is-next {
  right: 0.65rem;
}

.article-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.7rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.article-carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.article-carousel-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

/* Touch devices swipe, so the arrows only take up room where there is a pointer to use them. */
@media (hover: none) {
  .article-carousel-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-carousel-track {
    scroll-behavior: auto;
  }
}

.article-body {
  background: var(--nhc-white);
  border-radius: 14px;
  padding: 5rem 2rem 2rem;
  margin-top: 1.5rem;
  box-shadow: 0 12px 30px rgba(7, 30, 54, 0.06);
}

.article-body:first-child {
  padding-top: 2rem;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eef3f8;
  margin-bottom: 1.25rem;
}

.article-date {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--nhc-teal-dark);
}

.article-date svg {
  width: 14px;
  height: 14px;
}

.article-category {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--nhc-teal);
  color: var(--nhc-navy-deep);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.article-content {
  font-size: 0.92rem;
  color: var(--nhc-text);
  line-height: 1.7;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content h3 {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nhc-navy);
  margin: 1.5rem 0 0.6rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1rem 1.15rem;
}

.article-content li {
  margin-bottom: 0.35rem;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0;
  border-top: 1px solid #eef3f8;
  font-size: 0.8rem;
  color: var(--nhc-text);
}

.article-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: #eef3f8;
  color: var(--nhc-navy);
}

.article-share a:hover {
  background: var(--nhc-teal);
  color: var(--nhc-navy-deep);
}

.article-share svg {
  width: 15px;
  height: 15px;
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid #eef3f8;
  padding-top: 1rem;
}

.article-nav-slot.is-next {
  text-align: right;
}

.article-nav-slot a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--nhc-text);
}

.article-nav-slot span {
  font-size: 0.72rem;
  color: var(--nhc-muted);
}

.article-nav-slot strong {
  font-size: 0.85rem;
  color: var(--nhc-navy);
}

.article-nav-slot a:hover strong {
  color: var(--nhc-teal-dark);
}

@media (max-width: 991.98px) {
  .news-admin-split,
  .news-compose {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .news-row {
    flex-wrap: wrap;
  }

  .news-row-image {
    width: 100%;
    height: 150px;
  }

  .news-row-btn {
    width: 100%;
    text-align: center;
  }

  .article-hero-image {
    margin-bottom: -2rem;
  }

  .article-body {
    padding: 3rem 1.1rem 1.5rem;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav-slot.is-next {
    text-align: left;
  }
}

/* Membership — public page */

.join-page {
  padding: 2.5rem 0 4rem;
  background: var(--nhc-page);

  /* Membership icons are a fixed square so every card matches, whatever its text runs to.
     One value to change if they want them bigger or smaller. */
  --join-icon-size: 10rem;
}

.join-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--nhc-navy);
  margin: 0 0 0.6rem;
}

.join-hero p {
  max-width: 40rem;
  color: var(--nhc-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.join-notice {
  display: grid;
  grid-template-columns: auto auto repeat(var(--join-notice-points, 3), minmax(0, 1fr));
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.35rem;
  background: var(--nhc-white);
  border: 1px solid #e3eaf2;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(7, 30, 54, 0.05);
  margin-bottom: 2rem;
}

.join-notice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: #e8f1fb;
  color: #1d4ed8;
}

.join-notice-icon svg {
  width: 18px;
  height: 18px;
}

.join-notice-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--nhc-navy);
  white-space: nowrap;
}

.join-notice p {
  position: relative;
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.78rem;
  color: var(--nhc-muted);
  border-left: 1px solid #e3eaf2;
}

.join-grid-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--nhc-navy);
  margin: 0 0 1.25rem;
}

.join-grid-heading svg {
  width: 17px;
  height: 17px;
  color: var(--nhc-teal-dark);
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.join-card {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--nhc-white);
  border: 1px solid #e3eaf2;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(7, 30, 54, 0.06);
}

.join-card-icon {
  flex: 0 0 auto;
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--join-icon-size);
  height: var(--join-icon-size);
  padding: 0.75rem;
  border-radius: 12px;
  background: #e6f0fa;
  overflow: hidden;
}

/* The icons are tall portrait drawings, so they are fitted whole inside the square rather
   than sized off one edge — a width-only rule overflows the height and crops the figure. */
.join-card-icon img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.join-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.join-card-body h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--nhc-navy);
  margin: 0 0 0.35rem;
}

.join-card-body p {
  font-size: 0.75rem;
  color: var(--nhc-muted);
  margin: 0 0 0.9rem;
}

.join-card-empty {
  font-style: italic;
}

.join-select {
  align-self: flex-end;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
}

.join-select svg {
  width: 15px;
  height: 15px;
}

.join-modal .modal-header {
  border-bottom: 0;
  padding-bottom: 0.25rem;
}

.join-modal .modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--nhc-navy);
}

.join-modal-lead {
  font-size: 0.82rem;
  color: var(--nhc-muted);
  margin-bottom: 1.1rem;
}

.join-modal-lead strong {
  color: var(--nhc-text);
}

.join-option-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.join-option {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: var(--nhc-navy-card);
  color: var(--nhc-white);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.join-option:hover,
.join-option:focus-visible {
  background: var(--nhc-navy);
  color: var(--nhc-white);
}

@media (max-width: 1100px) {
  .join-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .join-notice {
    grid-template-columns: auto auto;
    row-gap: 0.75rem;
  }

  .join-notice p {
    grid-column: span 2;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 700px) {
  .join-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .join-card {
    flex-direction: column;
  }

  /* Dropped rather than shrunk on phones: stacked, the icon became a short full-width band
     that showed only a slice through the middle of the figure. The card reads better with
     just the name, description and button. */
  .join-card-icon {
    display: none;
  }

  .join-select {
    align-self: stretch;
    justify-content: center;
  }
}

/* Membership — site admin */

.membership-head {
  flex-wrap: wrap;
}

.membership-add-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.membership-add-btn svg {
  width: 15px;
  height: 15px;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.1rem;
}

.membership-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem;
  border: 1px solid #dbe5ee;
  border-radius: 16px;
  background: var(--nhc-white);
}

.membership-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.membership-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: #eef6f1;
  overflow: hidden;
}

.membership-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.membership-card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.membership-card-copy strong {
  font-size: 0.92rem;
  color: var(--nhc-navy);
  overflow-wrap: anywhere;
}

.membership-code {
  align-self: flex-start;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: #e8f1fb;
  color: #1d4ed8;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.membership-description {
  margin: 0;
  font-size: 0.8rem;
  color: var(--nhc-muted);
}

.membership-links-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid #eef3f8;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nhc-muted);
}

.membership-add-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid #cfe0ef;
  border-radius: 999px;
  background: transparent;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.membership-add-link:hover {
  background: #e8f1fb;
}

.membership-add-link svg {
  width: 12px;
  height: 12px;
}

.membership-empty-links {
  margin: 0;
  font-size: 0.78rem;
  color: var(--nhc-muted);
}

.membership-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.membership-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #eef3f8;
  border-radius: 10px;
  background: #f9fbfd;
}

.membership-link-icon {
  flex: 0 0 auto;
  color: var(--nhc-teal-dark);
}

.membership-link-icon svg {
  width: 15px;
  height: 15px;
}

.membership-link-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.membership-link-copy strong {
  font-size: 0.78rem;
  color: var(--nhc-text);
  overflow-wrap: anywhere;
}

.membership-link-copy a {
  font-size: 0.68rem;
  color: var(--nhc-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.membership-link-copy a:hover {
  color: var(--nhc-teal-dark);
}

.membership-link-actions {
  display: flex;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.membership-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.6rem;
}

.membership-card-actions .btn {
  flex: 1;
  font-size: 0.78rem;
}

/* Teams — site admin editor */

.team-editor-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nhc-navy);
}

.team-editor-back:hover {
  color: var(--nhc-teal-dark);
}

.team-editor-back svg {
  width: 16px;
  height: 16px;
}

.team-hero-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #dbe5ee;
  border-radius: 14px;
  background: #f7fafd;
}

.team-hero-field > span:first-child {
  flex-basis: 100%;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nhc-muted);
}

.team-hero-preview {
  width: 190px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  background: #e7eef6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-hero-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-hero-empty {
  font-size: 0.75rem;
  color: var(--nhc-muted);
  text-align: center;
  padding: 0 0.5rem;
}

.team-hero-filename {
  font-size: 0.78rem;
  color: var(--nhc-muted);
  overflow-wrap: anywhere;
}

.league-fields {
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}

.league-fields .league-name {
  grid-column: span 3;
  min-width: 160px;
}

.league-admin-scroll {
  overflow-x: auto;
  margin-top: 1rem;
}

.league-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.league-admin-table th {
  text-align: left;
  padding: 0.5rem 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nhc-muted);
  border-bottom: 1px solid #dbe5ee;
  white-space: nowrap;
}

.league-admin-table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid #eef3f8;
  white-space: nowrap;
}

.league-admin-table tr.is-our-club td {
  background: #e9fbfa;
  font-weight: 700;
}

/* Teams — public page */

.teams-page {
  padding: 2.5rem 0 4rem;
  background: var(--nhc-page);
}

.teams-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--nhc-navy);
  margin: 0 0 1.25rem;
}

.teams-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.teams-tab {
  padding: 0.5rem 1.15rem;
  border-radius: 8px;
  border: 1px solid #dbe5ee;
  background: var(--nhc-white);
  color: var(--nhc-text);
  font-size: 0.85rem;
  font-weight: 700;
}

.teams-tab:hover {
  border-color: var(--nhc-teal);
  color: var(--nhc-navy);
}

.teams-tab.is-active {
  background: var(--nhc-navy);
  border-color: var(--nhc-navy);
  color: var(--nhc-white);
}

.teams-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 1.75rem;
}

.teams-photo {
  border-radius: 18px;
  overflow: hidden;
  background: #dfeae2;
  max-height: 350px;
}

/* Uploads vary wildly in size, so fill a fixed frame and centre-crop rather
   than showing the image at its natural size. */
.teams-photo img {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center;
}

.teams-photo.is-placeholder {
  min-height: 260px;
  background: linear-gradient(160deg, #cfe4d4, #a9cdb4);
}

.teams-copy h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--nhc-navy);
  margin: 0 0 0.85rem;
}

.teams-copy p {
  color: var(--nhc-muted);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.teams-cards {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr) minmax(0, 0.9fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.teams-card {
  min-width: 0;
  background: var(--nhc-white);
  border: 1px solid #e3eaf2;
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: 0 12px 30px rgba(7, 30, 54, 0.06);
}

.teams-card h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--nhc-navy);
  margin: 0 0 0.9rem;
}

.teams-training-times {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--nhc-text);
  margin: 0 0 0.25rem;
}

.teams-training-location {
  font-size: 0.78rem;
  color: var(--nhc-muted);
  margin: 0 0 1rem;
}

.teams-training-btn,
.teams-join-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
}

.teams-join {
  background: var(--nhc-navy);
  border-color: var(--nhc-navy);
  color: var(--nhc-white);
}

.teams-join h2 {
  color: var(--nhc-white);
}

.teams-join p {
  font-size: 0.85rem;
  color: #d5e2ee;
  margin-bottom: 1.1rem;
}

.teams-empty {
  font-size: 0.85rem;
  color: var(--nhc-muted);
  margin: 0;
}

.teams-table-wrap {
  overflow-x: auto;
}

.teams-fixtures-table,
.teams-league-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.teams-fixtures-table th,
.teams-league-table th {
  text-align: left;
  padding: 0.55rem 0.65rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nhc-muted);
  border-bottom: 1px solid #dbe5ee;
  white-space: nowrap;
}

.teams-fixtures-table td,
.teams-league-table td {
  padding: 0.6rem 0.65rem;
  border-bottom: 1px solid #eef3f8;
  color: var(--nhc-text);
  white-space: nowrap;
}

.teams-league-table tr.is-our-club td {
  background: #e9fbfa;
  font-weight: 700;
  color: var(--nhc-navy);
}

.teams-league {
  margin-bottom: 0;
}

/* Several teams (1st, 2nd) can each have a table. */
.teams-league + .teams-league {
  margin-top: 1.5rem;
}

.teams-league h2 {
  margin-bottom: 0.2rem;
}

.teams-league-competition {
  font-size: 0.78rem;
  color: var(--nhc-muted);
  margin: 0 0 0.9rem;
}

.teams-league h2:has(+ .teams-table-wrap) {
  margin-bottom: 0.9rem;
}

.teams-results {
  margin-bottom: 1.5rem;
}

.teams-result-outcome {
  display: inline-block;
  min-width: 1.4rem;
  margin-right: 0.4rem;
  border-radius: 6px;
  padding: 0.1rem 0.3rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.teams-result-outcome.is-w {
  background: #e8f8ee;
  color: #198754;
}

.teams-result-outcome.is-d {
  background: #eef2f6;
  color: #64748b;
}

.teams-result-outcome.is-l {
  background: #fdecec;
  color: #b42318;
}

.club-doc-badge-imported {
  background: #eef3fb;
  color: #1d4f91;
}

@media (max-width: 1100px) {
  .teams-cards {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .teams-join {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .teams-intro {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* minmax(0, …) rather than 1fr: a bare 1fr track grows to the min-content
   width of the no-wrap fixtures table and pushes the cards off-screen. */
@media (max-width: 640px) {
  .teams-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .teams-join {
    grid-column: auto;
  }

  .team-hero-preview {
    width: 100%;
  }

  .league-fields .league-name {
    grid-column: span 2;
  }
}

/* Gallery — site admin */

.club-gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.club-gallery-selection-status {
  margin: 1rem 0 0;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: #eef3f8;
  font-size: 0.8rem;
  color: var(--nhc-text);
}

.club-gallery-selection-status.is-error {
  background: #fdecea;
  color: #b42318;
}

.club-gallery-preview-remove {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 30, 54, 0.8);
  color: var(--nhc-white);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.club-gallery-preview-remove:hover,
.club-gallery-preview-remove:focus-visible {
  background: #d92d20;
}

.gallery-hero-admin {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.gallery-hero-admin-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #eef3f8;
  font-size: 0.8rem;
  color: var(--nhc-muted);
}

.gallery-hero-admin-preview.is-empty {
  border: 1px dashed #c6d6e5;
}

.gallery-hero-admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-hero-admin-copy p {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: var(--nhc-text);
}

.gallery-hero-admin-copy small {
  display: block;
  font-size: 0.75rem;
  color: var(--nhc-muted);
}

@media (max-width: 640px) {
  .gallery-hero-admin {
    grid-template-columns: 1fr;
  }
}

.club-gallery-preview-item {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f2f6fa;
  border: 1px solid #dbe5ee;
}

.club-gallery-preview-item img {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: cover;
}

.club-gallery-preview-item figcaption {
  padding: 0.35rem 0.5rem;
  font-size: 0.7rem;
  color: var(--nhc-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.club-gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}

.club-gallery-tile {
  border: 1px solid #dbe5ee;
  border-radius: 14px;
  overflow: hidden;
  background: var(--nhc-white);
  display: flex;
  flex-direction: column;
}

.club-gallery-thumb {
  position: relative;
  background: #eef3f8;
}

.club-gallery-thumb img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.club-gallery-thumb-order {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  min-width: 1.5rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(7, 30, 54, 0.78);
  color: var(--nhc-white);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
}

.club-gallery-thumb-flags {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.club-gallery-tile-body {
  padding: 0.6rem 0.75rem 0.25rem;
  flex: 1;
}

.club-gallery-tile-body strong {
  display: block;
  font-size: 0.85rem;
  color: var(--nhc-text);
  overflow-wrap: anywhere;
}

.club-gallery-tile-body p {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--nhc-muted);
}

.club-gallery-tile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem 0.6rem;
}

.club-gallery-edit-preview {
  margin-bottom: 1rem;
  border-radius: 14px;
  overflow: hidden;
  background: #eef3f8;
}

.club-gallery-edit-preview img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.club-gallery-delete-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.club-gallery-delete-preview img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: #eef3f8;
}

/* Gallery — public page */

.gallery-hero-photo {
  background-size: cover;
  background-position: center;
}

.gallery-count {
  align-self: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nhc-muted);
  white-space: nowrap;
}

.gallery-albums {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.gallery-album-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gallery-album-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--nhc-navy);
}

.gallery-album-head p {
  margin: 0.25rem 0 0;
  color: var(--nhc-muted);
  font-size: 0.95rem;
}

.gallery-album-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--nhc-muted);
  white-space: nowrap;
}

.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #eef3f8;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(7, 30, 54, 0.08);
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-thumb:hover img,
.gallery-thumb:focus-visible img {
  transform: scale(1.06);
}

.gallery-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 30, 54, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-thumb:hover .gallery-thumb-overlay,
.gallery-thumb:focus-visible .gallery-thumb-overlay {
  opacity: 1;
}

.gallery-thumb-overlay svg {
  width: 34px;
  height: 34px;
  color: var(--nhc-white);
}

.gallery-thumb:focus-visible {
  outline: 3px solid var(--nhc-teal);
  outline-offset: 2px;
}

/* Gallery — lightbox */

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(5, 22, 39, 0.92);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery-lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  margin: 0 auto;
  border-radius: 14px;
  object-fit: contain;
}

.gallery-lightbox-figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
  color: #d5e2ee;
}

.gallery-lightbox-figure figcaption strong {
  color: var(--nhc-white);
  font-size: 1.05rem;
}

.gallery-lightbox-figure figcaption span {
  font-size: 0.9rem;
}

.gallery-lightbox-figure figcaption small {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nhc-teal);
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: var(--nhc-white);
  border-radius: 999px;
  cursor: pointer;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
  background: rgba(30, 200, 196, 0.25);
  border-color: var(--nhc-teal);
}

.gallery-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.6rem;
  height: 2.6rem;
}

.gallery-lightbox-nav {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
}

.gallery-lightbox-close svg {
  width: 20px;
  height: 20px;
}

.gallery-lightbox-nav svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 900px) {
  .gallery-album-head {
    flex-direction: column;
  }

  .gallery-album-meta {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-thumb img {
    height: 130px;
  }

  .gallery-lightbox {
    padding: 1rem 0.5rem;
    gap: 0.35rem;
  }

  .gallery-lightbox-nav {
    width: 2.4rem;
    height: 2.4rem;
  }

  .gallery-lightbox-figure img {
    max-height: 60vh;
  }
}

/* ---------- my account ---------- */

.account-head {
  margin-bottom: 1.4rem;
}

.account-head h1 {
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.account-head p {
  margin: 0;
  color: var(--nhc-muted);
}

.account-status {
  margin-bottom: 1.2rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.94rem;
}

.account-status-ok {
  background: #d7f5e2;
  color: #1d7a45;
}

.account-status-error {
  background: #fbdcdc;
  color: #a32626;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.account-panel h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.account-subhead {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.6rem 0 0.9rem;
  padding-top: 1.2rem;
  border-top: 1px solid #e3eaf1;
}

.account-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

.account-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nhc-muted);
}

.account-field input,
.account-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d3dde7;
  border-radius: 10px;
  font: inherit;
  color: var(--nhc-text);
  background: var(--nhc-white);
}

.account-field input:focus,
.account-field textarea:focus {
  outline: none;
  border-color: var(--nhc-teal-dark);
  box-shadow: 0 0 0 3px rgba(30, 200, 196, 0.18);
}

.account-field-error {
  font-size: 0.8rem;
  color: #a32626;
}

.account-errors ul {
  margin: 0 0 0.9rem;
  padding-left: 1.1rem;
  color: #a32626;
  font-size: 0.85rem;
}

.account-hint {
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--nhc-muted);
}

.account-current-email {
  margin-bottom: 0.35rem;
}

.account-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.account-badge-ok { background: #d7f5e2; color: #1d7a45; }
.account-badge-pending { background: #fdf0d2; color: #8a5a00; }

.account-panel-wide {
  height: auto;
}

.account-table-wrap {
  overflow-x: auto;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.account-table th,
.account-table td {
  padding: 0.65rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid #e3eaf1;
  vertical-align: top;
}

.account-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nhc-muted);
}

.account-table-actions {
  white-space: nowrap;
}

.account-table-actions .btn {
  color: var(--nhc-text);
  border-color: #c7d3de;
}

.account-note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--nhc-muted);
}

.account-pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.account-pill-approved { background: #d7f5e2; color: #1d7a45; }
.account-pill-pending { background: #fdf0d2; color: #8a5a00; }
.account-pill-rejected { background: #fbdcdc; color: #a32626; }
.account-pill-cancelled { background: #e7ecf1; color: #5b6b7c; }

@media (max-width: 640px) {
  .account-table thead {
    display: none;
  }

  .account-table tr {
    display: block;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e3eaf1;
  }

  .account-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    padding: 0.25rem 0;
  }

  .account-table td::before {
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--nhc-muted);
  }
}

/* ---------- admin: clubs & access ---------- */

.club-access-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.club-access-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--nhc-white);
  box-shadow: 0 10px 24px rgba(16, 37, 66, 0.07);
}

.club-access-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.club-access-stat-label {
  font-size: 0.78rem;
  color: var(--nhc-muted);
}

.club-access-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.club-access-item {
  padding: 1rem 1.1rem;
  border: 1px solid #e3eaf1;
  border-radius: 14px;
  background: var(--nhc-white);
}

.club-access-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.club-access-item-head strong {
  font-size: 1.02rem;
}

.club-access-meta {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--nhc-muted);
}

.club-access-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.6rem 1.1rem;
  margin: 0 0 0.8rem;
}

.club-access-facts dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nhc-muted);
  font-weight: 700;
}

.club-access-facts dd {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
}

.club-access-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #e4edfb;
  color: #23509c;
  font-size: 0.7rem;
  font-weight: 700;
}

.club-access-doc-link {
  margin-left: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nhc-teal-dark);
  text-decoration: underline;
}

.club-access-note {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #f3f7fb;
  font-size: 0.86rem;
}

.club-access-notes-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--nhc-muted);
}

.club-access-notes-field textarea {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid #d3dde7;
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
  color: var(--nhc-text);
}

.club-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.club-access-actions .btn-outline-light,
.club-access-move .btn-outline-light {
  color: var(--nhc-text);
  border-color: #c7d3de;
}

.club-access-danger {
  color: #a32626 !important;
  border-color: #e7bcbc !important;
}

.club-access-move {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #e3eaf1;
}

.club-access-move label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 240px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--nhc-muted);
}

.club-access-move select {
  padding: 0.45rem 0.6rem;
  border: 1px solid #d3dde7;
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
  color: var(--nhc-text);
  background: var(--nhc-white);
}

.club-access-members {
  list-style: none;
  margin: 0 0 0.7rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.club-access-members li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  background: #f7fafc;
  font-size: 0.88rem;
}

.club-access-member-tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.account-pill-awaiting { background: #e4edfb; color: #23509c; }
.account-pill-suspended { background: #fdf0d2; color: #8a5a00; }

.user-edit-hint {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--nhc-muted);
}

/* Weekly and monthly calendar cells open the daily view, so they read as cells, not links. */

a.booking-month-cell {
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

a.booking-month-cell:hover,
a.booking-month-cell:focus-visible {
  background: #eefafa;
  box-shadow: inset 0 0 0 2px var(--nhc-teal);
}

a.booking-month-cell.is-muted:hover,
a.booking-month-cell.is-muted:focus-visible {
  opacity: 0.85;
}

.booking-col-head-link {
  display: block;
  color: var(--nhc-navy);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.booking-col-head-link:hover,
.booking-col-head-link:focus-visible {
  background: #eefafa;
  color: var(--nhc-teal-dark);
}

/* Weekly day columns open the daily grid, where the free slots live. */

a.booking-col-link {
  color: inherit;
  text-decoration: none;
  min-height: 6rem;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

a.booking-col-link:hover,
a.booking-col-link:focus-visible {
  background: #eefafa;
  box-shadow: inset 0 0 0 2px var(--nhc-teal);
}

.booking-col-cta {
  margin-top: auto;
  padding: 0.35rem 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  color: var(--nhc-teal-dark);
  opacity: 0;
  transition: opacity 0.15s ease;
}

a.booking-col-link:hover .booking-col-cta,
a.booking-col-link:focus-visible .booking-col-cta {
  opacity: 1;
}

.booking-table-empty {
  padding: 1.1rem 0.6rem;
  text-align: center;
  color: var(--nhc-muted);
  font-size: 0.9rem;
}

/* ---------- sponsors ---------- */

.footer-sponsors {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(213, 226, 238, 0.14);
}

.sponsor-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
}

.sponsor-strip-footer {
  margin-top: 0.7rem;
}

.sponsor-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.sponsor-strip-footer .sponsor-item img {
  max-height: 44px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
}

a.sponsor-item:hover,
a.sponsor-item:focus-visible {
  opacity: 0.75;
  transform: translateY(-1px);
}

.sponsor-strip-footer .sponsor-wordmark {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f5c542;
}

/* admin list */

.sponsor-admin-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 44px;
  flex: 0 0 84px;
  border-radius: 8px;
  background: #f3f7fb;
  overflow: hidden;
}

.sponsor-admin-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sponsor-admin-nologo {
  font-size: 0.68rem;
  color: var(--nhc-muted);
}

@media (max-width: 640px) {
  .sponsor-strip {
    gap: 1.1rem 1.4rem;
  }
}

/* Membership notice points: add button with its "n of 3" counter. */

.notice-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-bottom: 0.9rem;
}

.notice-add-row .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.notice-limit-hint {
  font-size: 0.8rem;
  color: var(--nhc-muted);
}

.notice-limit-hint.is-reached {
  color: #8a5a00;
  font-weight: 600;
}

/* ---------- about our club ---------- */

.about-page {
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, #f3f8fb 0%, var(--nhc-page) 100%);
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.about-eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #4f8fa8;
}

.about-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--nhc-navy);
}

.about-lead {
  max-width: 38rem;
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #34465a;
}

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--nhc-teal-dark);
  color: var(--nhc-white);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(21, 168, 164, 0.28);
  transition: background 0.15s ease, transform 0.15s ease;
}

.about-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.15s ease;
}

.about-cta:hover,
.about-cta:focus-visible {
  background: #11908c;
  color: var(--nhc-white);
}

.about-cta:hover svg,
.about-cta:focus-visible svg {
  transform: translateX(3px);
}

.about-photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  box-shadow: 0 18px 40px rgba(7, 30, 54, 0.14);
  background: #cfe0d6;
}

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.about-values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.about-value {
  padding: 1.4rem 1.6rem 1.5rem;
  border-radius: 16px;
  background: var(--nhc-white);
  box-shadow: 0 10px 26px rgba(16, 37, 66, 0.06);
}

.about-value h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--nhc-navy);
}

.about-value p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: #4a5b6d;
}

.about-value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 50%;
}

.about-value-icon svg {
  width: 26px;
  height: 26px;
}

.about-value-icon.is-inclusive { background: #e3ecfb; color: #4a78d0; }
.about-value-icon.is-development { background: #dcf5e6; color: #1f9d55; }
.about-value-icon.is-community { background: #fde2e2; color: #e5484d; }
.about-value-icon.is-excellence { background: #fdf1d3; color: #f0a500; }

@media (max-width: 991.98px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .about-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .about-page {
    padding: 2rem 0 3rem;
  }

  .about-values {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .about-photo {
    aspect-ratio: 3 / 2;
  }
}

/* ==========================================================================
   Club Store — public store, cart, checkout, orders (Figma: CLUB STORE)
   ========================================================================== */

/* Header cart icon with item count. */
.site-cart-link {
  display: inline-flex !important;
  align-items: center;
}

.site-cart-link svg {
  width: 22px;
  height: 22px;
}

.site-cart-count {
  position: absolute;
  top: 0.05rem;
  right: 0.1rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--nhc-teal);
  color: var(--nhc-navy);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
  letter-spacing: 0;
}

.store-hero {
  position: relative;
  color: var(--nhc-white);
  background:
    linear-gradient(90deg, rgba(5, 22, 39, 0.94) 0%, rgba(7, 30, 54, 0.78) 55%, rgba(7, 30, 54, 0.55) 100%),
    url("/images/Live-Images/Blue-Theme-UCD/DSC_7545.jpg") center 40% / cover no-repeat;
}

.store-hero-inner {
  padding: 3.2rem 1rem 3.6rem;
}

.store-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.2rem, 4.4vw, 3.3rem);
  font-weight: 800;
}

.store-hero-inner > p {
  margin: 0 0 1.6rem;
  color: #d5e2ee;
  font-size: 1.02rem;
}

.store-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-hero-points li {
  display: grid;
  gap: 0.15rem;
}

.store-hero-points strong {
  font-size: 0.92rem;
}

.store-hero-points span {
  font-size: 0.74rem;
  color: #b7c9da;
}

.store-wrap {
  padding-bottom: 2.5rem;
}

/* Teal strip overlapping the bottom of the hero. */
.store-banner {
  position: relative;
  margin: -1.3rem 0 1.4rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: linear-gradient(90deg, #1f5f86, #2b8aa0);
  color: var(--nhc-white);
  font-size: 0.8rem;
  text-align: center;
  box-shadow: 0 10px 24px rgba(7, 30, 54, 0.18);
}

.store-banner strong {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.store-banner span {
  margin: 0 0.8rem;
  opacity: 0.7;
}

.store-wrap > .store-pills:first-child {
  margin-top: 1.4rem;
}

.store-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.store-pill {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1px solid #d4dee8;
  border-radius: 6px;
  background: var(--nhc-white);
  color: var(--nhc-navy);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.store-pill:hover {
  border-color: #2b8aa0;
  color: #1f5f86;
}

.store-pill.is-active {
  border-color: transparent;
  background: linear-gradient(90deg, #1f7d99, #2ea5b3);
  color: var(--nhc-white);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.store-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e3eaf2;
  border-radius: 12px;
  background: var(--nhc-white);
  box-shadow: 0 10px 24px rgba(7, 30, 54, 0.06);
}

.store-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: #f2f5f8;
}

.store-card-image img,
.store-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-card-noimage {
  color: var(--nhc-muted);
  font-size: 0.78rem;
}

.store-card-body {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem 0.95rem;
  text-align: center;
}

.store-card-body h2 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.store-card-body h2 a {
  color: var(--nhc-navy);
  text-decoration: none;
}

.store-price {
  margin: 0 0 0.35rem;
  color: #1f7d99;
  font-weight: 800;
  font-size: 0.9rem;
}

.store-btn {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.store-btn-inline {
  display: inline-block;
  width: auto;
  margin-top: 0.8rem;
}

.store-btn-primary {
  border: 0;
  background: linear-gradient(90deg, #1f7d99, #2ea5b3);
  color: var(--nhc-white);
}

.store-btn-primary:hover,
.store-btn-primary:focus-visible {
  color: var(--nhc-white);
  filter: brightness(1.07);
}

.store-btn-primary:disabled,
.store-btn-primary.disabled {
  opacity: 0.55;
}

.store-btn-outline {
  border: 1px solid #c9d5e2;
  background: var(--nhc-white);
  color: #1f5f86;
}

.store-btn-outline:hover {
  border-color: #1f7d99;
  color: #1f7d99;
}

.store-btn-disabled {
  border: 1px solid #e3eaf2;
  background: #f2f5f8;
  color: var(--nhc-muted);
}

.store-trust {
  background: var(--nhc-navy);
  color: var(--nhc-white);
}

.store-trust-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.3rem 1rem;
  text-align: center;
}

.store-trust strong {
  display: block;
  font-size: 0.85rem;
}

.store-trust span {
  font-size: 0.74rem;
  color: #b7c9da;
}

.store-added-note {
  position: fixed;
  right: 1.25rem;
  top: 5.5rem;
  z-index: 1080;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  max-width: calc(100vw - 2.5rem);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--nhc-navy);
  color: var(--nhc-white);
  font-size: 0.85rem;
  box-shadow: 0 14px 30px rgba(7, 30, 54, 0.3);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.store-added-note.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.store-added-note a {
  color: var(--nhc-teal);
  font-weight: 700;
  white-space: nowrap;
}

/* Product page */
.store-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.store-detail-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 1px solid #e3eaf2;
  border-radius: 16px;
  background: var(--nhc-white);
  overflow: hidden;
}

.store-detail-category {
  margin: 0 0 0.3rem;
  color: var(--nhc-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.store-detail-copy h1 {
  margin: 0 0 0.4rem;
  color: var(--nhc-navy);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}

.store-detail-price {
  font-size: 1.25rem;
}

.store-detail-description {
  color: var(--nhc-text);
  font-size: 0.92rem;
}

.store-detail-form {
  display: grid;
  gap: 0.9rem;
  max-width: 22rem;
  margin-top: 1.2rem;
}

.store-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.store-sizes legend {
  width: 100%;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nhc-navy);
}

.store-size {
  position: relative;
}

.store-size input {
  position: absolute;
  opacity: 0;
}

.store-size span {
  display: inline-block;
  min-width: 2.8rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #c9d5e2;
  border-radius: 6px;
  background: var(--nhc-white);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.store-size input:checked + span {
  border-color: #1f7d99;
  background: #e6f6f8;
  color: #1f5f86;
}

.store-size input:focus-visible + span {
  outline: 2px solid #1f7d99;
  outline-offset: 2px;
}

.store-qty {
  display: grid;
  gap: 0.3rem;
  max-width: 8rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nhc-navy);
}

.store-qty input,
.store-field input,
.store-field textarea,
.store-search {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #d4dee8;
  border-radius: 8px;
  font-size: 0.9rem;
}

.store-stock {
  margin: 0;
  color: #198754;
  font-size: 0.82rem;
  font-weight: 600;
}

.store-stock-out {
  color: #b42318 !important;
  font-weight: 700;
}

/* Cart, checkout and orders */
.store-page-title {
  margin: 0.6rem 0 1.2rem;
  color: var(--nhc-navy);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
}

.store-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1.25rem;
  align-items: start;
}

.store-checkout-main .custom-card h2,
.store-summary h2 {
  margin: 0 0 0.9rem;
  color: var(--nhc-navy);
  font-size: 1.05rem;
  font-weight: 800;
}

.store-checkout-main h3 {
  margin: 0;
  color: var(--nhc-navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.store-optional {
  color: var(--nhc-muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.store-cart-lines,
.store-summary-lines,
.store-cart-issues {
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-cart-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid #eef3f8;
}

.store-cart-line:last-child {
  border-bottom: 0;
}

.store-cart-line.is-invalid {
  opacity: 0.6;
}

.store-cart-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #f2f5f8;
  overflow: hidden;
}

.store-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-cart-info {
  display: grid;
  gap: 0.1rem;
}

.store-cart-info strong {
  color: var(--nhc-navy);
  font-size: 0.92rem;
}

.store-cart-info small {
  color: var(--nhc-muted);
}

.store-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.store-qty-btn {
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid #d4dee8;
  border-radius: 6px;
  background: var(--nhc-white);
  color: var(--nhc-navy);
  font-weight: 800;
  line-height: 1;
}

.store-qty-btn:disabled {
  opacity: 0.4;
}

.store-cart-total {
  min-width: 4.5rem;
  color: var(--nhc-navy);
  font-weight: 800;
  text-align: right;
}

.store-summary {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  display: grid;
  gap: 0.6rem;
}

.store-summary-lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.35rem 0;
  font-size: 0.86rem;
  border-bottom: 1px solid #eef3f8;
}

.store-summary-rows {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  margin: 0.2rem 0 0.4rem;
  font-size: 0.9rem;
}

.store-summary-rows dt {
  font-weight: 500;
  color: var(--nhc-muted);
}

.store-summary-rows dd {
  margin: 0;
  text-align: right;
  color: var(--nhc-navy);
  font-weight: 700;
}

.store-summary-rows .store-summary-total {
  padding-top: 0.45rem;
  border-top: 1px solid #dbe5ee;
  color: var(--nhc-navy);
  font-size: 1.02rem;
  font-weight: 800;
}

.store-summary-note {
  margin: 0;
  color: var(--nhc-muted);
  font-size: 0.8rem;
}

.store-summary-customer {
  margin: 0;
  font-weight: 700;
  color: var(--nhc-navy);
}

.store-summary-customer small {
  color: var(--nhc-muted);
  font-weight: 500;
}

.store-cart-issues {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: #fdecec;
  color: #a32626;
  font-size: 0.82rem;
}

.store-cart-issues li + li {
  margin-top: 0.3rem;
}

.store-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.store-choice {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.8rem 0.9rem;
  border: 1px solid #d4dee8;
  border-radius: 10px;
  background: var(--nhc-white);
  cursor: pointer;
}

.store-choice:has(input:checked) {
  border-color: #1f7d99;
  background: #f1fafb;
}

.store-choice input {
  margin-top: 0.25rem;
  accent-color: #1f7d99;
}

.store-choice > span {
  display: grid;
  gap: 0.15rem;
}

.store-choice strong {
  color: var(--nhc-navy);
  font-size: 0.9rem;
}

.store-choice small {
  color: var(--nhc-muted);
  font-size: 0.8rem;
}

.store-choice .store-choice-note {
  color: #1f5f86;
}

.store-choice a {
  font-size: 0.8rem;
}

.store-choice-block + .store-choice-block {
  margin-top: 0.55rem;
}

.store-fulfilment-panel {
  display: grid;
  gap: 0.7rem;
}

.store-fulfilment-panel[hidden] {
  display: none;
}

.store-field {
  display: grid;
  gap: 0.3rem;
  color: var(--nhc-navy);
  font-size: 0.85rem;
  font-weight: 700;
}

.store-field small {
  color: var(--nhc-muted);
  font-weight: 500;
}

.store-order-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.store-order-head .store-page-title {
  margin-bottom: 0.2rem;
}

.store-order-placed {
  margin: 0 0 1.2rem;
  color: var(--nhc-muted);
  font-size: 0.85rem;
}

.store-bank {
  border-color: #b9e3e8;
  background: #f4fbfc;
}

.store-bank-rows {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.2rem;
  margin: 0 0 0.8rem;
  font-size: 0.92rem;
}

.store-bank-rows dt {
  color: var(--nhc-muted);
  font-weight: 500;
}

.store-bank-rows dd {
  margin: 0;
  color: var(--nhc-navy);
}

.store-mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.02em;
}

.store-club-note {
  border-left: 4px solid var(--nhc-teal);
}

.store-club-note p {
  margin: 0;
  white-space: pre-line;
}

.store-order-row .btn {
  flex: none;
}

.account-panel-lead {
  margin: 0;
  color: var(--nhc-muted);
  font-size: 0.88rem;
}

/* ==========================================================================
   Store Management — Site Admin (Figma: STORE MANAGEMENT / ADD PRODUCT)
   ========================================================================== */

.store-admin-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.store-admin-add {
  border: 0;
  border-radius: 8px;
  background: #2f5bff;
  color: var(--nhc-white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
}

.store-admin-add:hover,
.store-admin-add:focus-visible {
  background: #2449d8;
  color: var(--nhc-white);
}

.store-admin-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.store-tab-count {
  display: inline-block;
  min-width: 1.2rem;
  margin-left: 0.3rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #fdf0d2;
  color: #8a5a00;
  font-size: 0.72rem;
  line-height: 1.2rem;
}

.store-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.store-stat {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border: 1px solid #e8eef6;
  border-radius: 14px;
  background: var(--nhc-white);
  box-shadow: 0 10px 24px rgba(16, 37, 66, 0.05);
}

.store-stat strong {
  display: block;
  color: var(--nhc-navy);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.store-stat-label {
  color: var(--nhc-muted);
  font-size: 0.8rem;
}

.store-stat-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
}

.store-stat-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.store-stat-icon-blue { background: #e7edff; color: #2f5bff; }
.store-stat-icon-green { background: #e3f6ea; color: #198754; }
.store-stat-icon-amber { background: #fdf0d2; color: #c2780a; }

.store-search {
  max-width: 16rem;
  margin-bottom: 1rem;
}

.store-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.store-admin-table th {
  padding: 0.6rem 0.7rem;
  background: #f5f8fb;
  color: var(--nhc-navy);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.store-admin-table td {
  padding: 0.7rem;
  border-bottom: 1px solid #eef3f8;
  vertical-align: middle;
}

.store-admin-table small {
  color: var(--nhc-muted);
}

.store-admin-product {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.store-admin-product > span:last-child {
  display: grid;
}

.store-admin-thumb {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f2f5f8;
  overflow: hidden;
}

.store-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-table-foot {
  margin: 0.9rem 0 0;
  color: var(--nhc-muted);
  font-size: 0.78rem;
}

.store-order-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.store-order-filters .store-pill {
  cursor: pointer;
}

.store-modal-lead {
  margin: 0.15rem 0 0;
  color: var(--nhc-muted);
  font-size: 0.82rem;
}

/* Looks like the other modal fields; the € sits inside the box. */
.store-money-input {
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: var(--nhc-white);
  overflow: hidden;
}

.store-money-input:focus-within {
  border-color: #2f5bff;
  box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.12);
}

.store-money-input span {
  flex: none;
  padding-left: 0.8rem;
  color: var(--nhc-muted);
  font-weight: 500;
}

/* min-width: 0 stops the input's default width pushing it past the box. */
.store-money-input input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 40px !important;
  padding-left: 0.4rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
}

.store-field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nhc-navy);
}

.store-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
  padding: 1rem;
  border: 1.5px dashed #c9d5e2;
  border-radius: 10px;
  background: #f8fafc;
  text-align: center;
  cursor: pointer;
}

.store-dropzone.is-over {
  border-color: #2f5bff;
  background: #eef2ff;
}

.store-dropzone span {
  display: grid;
  gap: 0.2rem;
}

.store-dropzone span[hidden] {
  display: none;
}

.store-dropzone strong {
  color: var(--nhc-navy);
  font-size: 0.88rem;
}

.store-dropzone small {
  color: var(--nhc-muted);
}

.store-dropzone img {
  max-height: 9rem;
  max-width: 100%;
  object-fit: contain;
}

.store-order-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eef3f8;
}

.store-order-detail h3 {
  margin: 0 0 0.3rem;
  color: var(--nhc-navy);
  font-size: 0.85rem;
  font-weight: 800;
}

.store-order-detail p {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
}

.store-stripe-card {
  background: #f8fafc;
}

.store-stripe-card .club-doc-flag {
  margin-top: 0.75rem;
}

.store-stripe-card code {
  font-size: 0.78rem;
  word-break: break-all;
}

/* Test keys mean nothing that happens here is real. Said loudly enough that nobody
   mistakes a test payment for a real one, on the checkout page and in Store Management. */
.store-test-mode-note {
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid #fcd34d;
  border-left-width: 4px;
  border-radius: 6px;
  background: #fffbeb;
  color: #78350f;
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .store-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-checkout-grid,
  .store-detail,
  .store-order-detail {
    grid-template-columns: 1fr;
  }

  .store-summary {
    position: static;
  }

  .store-admin-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .store-trust-inner,
  .store-stats,
  .store-choice-row {
    grid-template-columns: 1fr;
  }

  .store-banner span {
    display: block;
    height: 0;
    overflow: hidden;
  }

  .store-cart-line {
    grid-template-columns: 56px minmax(0, 1fr) auto;
  }

  .store-cart-thumb {
    width: 56px;
    height: 56px;
  }

  .store-cart-qty {
    grid-column: 2;
  }
}

@media (max-width: 420px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
}

/* Address form: live Eircode check and the fixed Country field. */
.store-eircode-status {
  display: block;
  margin-top: 0.3rem;
  color: var(--nhc-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.store-eircode-status.is-valid {
  color: #198754;
  font-weight: 700;
}

.store-eircode-status.is-invalid {
  color: #b42318;
}

.store-readonly {
  background: #f2f5f8 !important;
  color: var(--nhc-muted) !important;
}

/* Store Management: "Store visible to customers" switch. */
.store-visibility {
  display: grid;
  gap: 0.7rem;
  border-left: 4px solid #c2780a;
}

.store-visibility.is-open {
  border-left-color: #198754;
}

.store-switch {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.store-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.store-switch-track {
  position: relative;
  flex: none;
  width: 2.9rem;
  height: 1.6rem;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.15s ease;
}

.store-switch-track::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--nhc-white);
  box-shadow: 0 1px 3px rgba(7, 30, 54, 0.3);
  transition: transform 0.15s ease;
}

.store-switch input:checked + .store-switch-track {
  background: #198754;
}

.store-switch input:checked + .store-switch-track::after {
  transform: translateX(1.3rem);
}

.store-switch input:focus-visible + .store-switch-track {
  outline: 2px solid #2f5bff;
  outline-offset: 2px;
}

.store-switch-text {
  display: grid;
  gap: 0.15rem;
}

.store-switch-text strong {
  color: var(--nhc-navy);
  font-size: 0.95rem;
}

.store-switch-text small {
  color: var(--nhc-muted);
  font-size: 0.82rem;
}

.store-readiness {
  margin: 0;
  padding: 0.6rem 0.8rem 0.6rem 1.8rem;
  border-radius: 8px;
  background: #fdf6e7;
  color: #8a5a00;
  font-size: 0.82rem;
}

/* Shown to site admins browsing the store while it is hidden from customers. */
.store-preview-banner {
  margin: 0 0 1rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: #fdf0d2;
  color: #8a5a00;
  font-size: 0.85rem;
  text-align: center;
}

.store-page > .store-preview-banner {
  margin: 0;
  border-radius: 0;
}

.store-preview-banner a {
  margin-left: 0.4rem;
  color: #8a5a00;
  font-weight: 700;
}

/* Snack bar (site.js nhcConfirm / nhcNotify): replaces the browser's "localhost says" boxes.
   Above Bootstrap modals (z-index 1055) so it also works from inside a dialog. */
.nhc-snackbar {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 1090;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  width: min(36rem, calc(100vw - 2rem));
  padding: 0.9rem 1rem 0.9rem 1.25rem;
  border-left: 4px solid var(--nhc-teal);
  border-radius: 10px;
  background: var(--nhc-navy);
  color: var(--nhc-white);
  box-shadow: 0 16px 36px rgba(7, 30, 54, 0.35);
  opacity: 0;
  transform: translate(-50%, 1rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nhc-snackbar.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.nhc-snackbar.is-error {
  border-left-color: #f87171;
}

.nhc-snackbar-message {
  flex: 1 1 16rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.nhc-snackbar-actions {
  display: flex;
  flex: none;
  gap: 0.5rem;
  margin-left: auto;
}

.nhc-snackbar-actions button {
  border: 0;
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.nhc-snackbar-cancel {
  background: transparent;
  color: #b7c9da;
}

.nhc-snackbar-cancel:hover,
.nhc-snackbar-cancel:focus-visible {
  color: var(--nhc-white);
  background: rgba(255, 255, 255, 0.08);
}

.nhc-snackbar-confirm {
  background: var(--nhc-teal);
  color: var(--nhc-navy);
}

.nhc-snackbar-confirm:hover,
.nhc-snackbar-confirm:focus-visible {
  background: #3fd8d4;
}

.nhc-snackbar-confirm.is-danger {
  background: #ef4444;
  color: var(--nhc-white);
}

.nhc-snackbar-confirm.is-danger:hover,
.nhc-snackbar-confirm.is-danger:focus-visible {
  background: #dc2626;
}

.nhc-snackbar-actions button:focus-visible {
  outline: 2px solid var(--nhc-white);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .nhc-snackbar {
    transition: none;
  }
}

/* Bookings filter: user, club and status side by side, equal widths. */
.booking-filter-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .booking-filter-fields {
    grid-template-columns: 1fr;
  }
}

/* Bookings: explicit grey for the row action buttons (they relied on the browser default), a visible
   chevron, and the legend that explains them. */
.admin-booking-actions .club-doc-icon:not(.club-doc-delete),
.admin-bookings-legend .club-doc-icon:not(.club-doc-delete) {
  background: #eef2f6;
}

.admin-booking-actions .club-doc-icon[data-toggle-entries],
.admin-bookings-legend .club-doc-icon:not(.admin-booking-approve):not(.admin-booking-reject):not(.club-doc-delete) {
  color: #475569;
}

.admin-bookings-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #f8fafc;
  list-style: none;
  color: #475569;
  font-size: 0.8rem;
}

.admin-bookings-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-bookings-legend .club-doc-icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.admin-bookings-legend .club-doc-icon svg {
  width: 13px;
  height: 13px;
}

/* ---------- Newsletter sign-up ---------- */

.newsletter-signup {
  display: grid;
  gap: 1rem;
}

/* The card on the News page. */
.newsletter-signup.is-card {
  grid-template-columns: minmax(0, 1fr);
  background: var(--nhc-white);
  border: 1px solid #e3eaf2;
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.5rem 0 2.5rem;
  box-shadow: 0 12px 30px rgba(7, 30, 54, 0.06);
}

.newsletter-signup.is-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--nhc-navy);
  margin: 0 0 0.3rem;
}

.newsletter-signup.is-card .newsletter-copy p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--nhc-muted);
}

/* The compact version in the footer, on the dark background. */
.newsletter-signup.is-footer {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.newsletter-signup.is-footer h2 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.25rem;
}

.newsletter-signup.is-footer .newsletter-copy p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-row input[type="email"] {
  flex: 1 1 15rem;
  min-width: 0;
  padding: 0.55rem 0.8rem;
  border: 1px solid #ccd7e3;
  border-radius: 8px;
  font-size: 0.9rem;
}

.newsletter-signup.is-footer .newsletter-row input[type="email"] {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.newsletter-signup.is-footer .newsletter-row input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter-row button {
  flex: 0 0 auto;
}

/* The consent tick. Deliberately full wording rather than a bare "I agree" — it has to say what
   they are agreeing to and how to withdraw it. */
.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--nhc-muted);
}

.newsletter-signup.is-footer .newsletter-consent {
  color: rgba(255, 255, 255, 0.65);
}

.newsletter-consent input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 0.15rem;
}

.newsletter-consent a {
  color: var(--nhc-teal-dark);
  text-decoration: underline;
}

.newsletter-signup.is-footer .newsletter-consent a {
  color: var(--nhc-teal);
}

.newsletter-message {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nhc-teal-dark);
}

.newsletter-signup.is-footer .newsletter-message {
  color: var(--nhc-teal);
}

.newsletter-message.is-error {
  color: #c0392b;
}

.newsletter-signup.is-footer .newsletter-message.is-error {
  color: #ff9a8f;
}

@media (min-width: 768px) {
  .newsletter-signup.is-card,
  .newsletter-signup.is-footer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 1.5rem;
  }
}

/* ---------- Clubs & Access — section styling (NHC-44) ----------
   Scoped to .club-access-page: .custom-card and .club-doc-list-head are shared with the other
   admin screens, so none of this leaks onto them. */

/* Each section's header sits on a tint with an accent bar, so Access Requests and Clubs read as
   two distinct areas rather than one continuous wall of white. */
.club-access-page .club-access-section {
  padding-top: 0;
  overflow: hidden;
}

.club-access-page .club-access-section-head {
  position: relative;
  align-items: flex-start;
  margin: 0 -1.4rem 1.2rem;
  padding: 1.15rem 1.4rem 1.1rem 1.75rem;
  border-bottom: 1px solid #e8eef6;
}

/* The accent bar, and the tint it bleeds into. */
.club-access-page .club-access-section-head::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  bottom: 1.1rem;
  left: 1.4rem;
  width: 4px;
  border-radius: 999px;
  background: var(--club-section-accent);
}

.club-access-page .club-access-section.is-requests {
  --club-section-accent: #4c6ef5;
  --club-section-tint: rgba(76, 110, 245, 0.05);
}

.club-access-page .club-access-section.is-clubs {
  --club-section-accent: var(--nhc-teal-dark, #0f9b8e);
  --club-section-tint: rgba(15, 155, 142, 0.06);
}

.club-access-page .club-access-section-head {
  background: linear-gradient(180deg, var(--club-section-tint), rgba(255, 255, 255, 0));
}

.club-access-page .club-access-section-head h2 {
  margin-bottom: 0.15rem;
}

/* Rows get a status-coloured edge, so what needs attention is visible before reading anything. */
.club-access-page .club-access-item {
  position: relative;
  border-color: #e8eef6;
  padding-left: 1.5rem;
  box-shadow: 0 6px 16px rgba(16, 37, 66, 0.05);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.club-access-page .club-access-item::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  bottom: 0.9rem;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--club-row-accent, #cfd8e3);
}

.club-access-page .club-access-item:hover {
  box-shadow: 0 10px 24px rgba(16, 37, 66, 0.09);
}

/* Matched to the status pill colours, so the edge and the badge agree. */
.club-access-page .club-access-item.is-pending { --club-row-accent: #e8a33d; }
.club-access-page .club-access-item.is-awaiting { --club-row-accent: #4c6ef5; }
.club-access-page .club-access-item.is-approved { --club-row-accent: #2aa76a; }
.club-access-page .club-access-item.is-rejected { --club-row-accent: #d05353; }
.club-access-page .club-access-item.is-suspended { --club-row-accent: #e8a33d; }
.club-access-page .club-access-item.is-cancelled { --club-row-accent: #9aa8b6; }

/* Hairlines between the fact columns, so the four readings separate at a glance. */
.club-access-page .club-access-facts > div {
  padding-left: 1.1rem;
  border-left: 1px solid #edf1f6;
}

.club-access-page .club-access-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

/* One column on narrow screens, where a left rule would just look like a stray line. */
@media (max-width: 720px) {
  .club-access-page .club-access-facts > div {
    padding-left: 0;
    border-left: 0;
  }

  .club-access-page .club-access-section-head {
    margin-left: -1.4rem;
    margin-right: -1.4rem;
  }
}

/* ---------- Club Store: retail partner banner ----------
   Shown at the top of the store while the club is not selling directly. Deliberately the most
   prominent thing on the page, because it is the only way to actually buy. */

.store-partner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.35rem;
  border-radius: 14px;
  border: 1px solid rgba(30, 200, 196, 0.35);
  background: linear-gradient(135deg, rgba(30, 200, 196, 0.12), rgba(30, 200, 196, 0.04));
}

.store-partner-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1 1 18rem;
  min-width: 0;
}

.store-partner-copy strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--nhc-navy);
}

.store-partner-copy span {
  font-size: 0.88rem;
  color: var(--nhc-muted);
}

/* .store-btn is display:block / width:100% for the product cards, which would push this onto its
   own row. Overridden here so the button sits beside the copy. */
.store-partner-btn {
  flex: 0 0 auto;
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}

.store-partner-btn svg {
  width: 16px;
  height: 16px;
}

/* Catalogue mode: the blurb takes the place the price held, so cards stay the same height. */
.store-card-blurb {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--nhc-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-detail-sizes {
  margin: 0.4rem 0 0.6rem;
  font-size: 0.9rem;
  color: var(--nhc-text);
}

.store-detail-partner-note {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  color: var(--nhc-muted);
}

@media (max-width: 560px) {
  .store-partner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  /* The 18rem flex-basis is a width side by side; stacked, it became an 18rem-tall gap. */
  .store-partner-copy {
    flex: 0 0 auto;
  }

  .store-partner-btn {
    justify-content: center;
  }
}

/* The selling-mode switch means nothing until the store itself is on, so it is dimmed and
   unusable until then rather than hidden — the admin can still see what it will do. */
.store-selling-mode.is-disabled {
  opacity: 0.55;
}

.store-selling-mode.is-disabled .store-switch {
  cursor: not-allowed;
}

/* ---------- Privacy Policy (NHC-35) ----------
   The sections are <details> elements, so opening and closing is the browser's own and works
   with a keyboard, a screen reader and no JavaScript at all. */

.privacy-page {
  padding: 1.75rem 0 4rem;
  background: var(--nhc-page);
}

.privacy-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  font-size: 0.78rem;
  color: var(--nhc-muted);
}

.privacy-crumbs a {
  color: var(--nhc-muted);
  text-decoration: none;
}

.privacy-crumbs a:hover {
  color: var(--nhc-teal-dark);
  text-decoration: underline;
}

.privacy-crumbs [aria-current="page"] {
  color: var(--nhc-teal-dark);
  font-weight: 700;
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.privacy-intro h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--nhc-navy);
  margin: 0 0 0.5rem;
}

.privacy-intro p {
  margin: 0 0 1.4rem;
  max-width: 62ch;
  color: var(--nhc-muted);
  line-height: 1.6;
}

.privacy-sections {
  display: grid;
  gap: 0.7rem;
}

.privacy-section {
  background: var(--nhc-white);
  border: 1px solid #e3eaf2;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 37, 66, 0.05);
  overflow: hidden;
}

.privacy-section > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
}

/* The default disclosure triangle, in both engines — the chevron replaces it. */
.privacy-section > summary::-webkit-details-marker {
  display: none;
}

.privacy-section > summary::marker {
  content: "";
}

.privacy-section > summary:focus-visible {
  outline: 2px solid var(--nhc-teal-dark);
  outline-offset: -3px;
}

.privacy-summary-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.privacy-summary-text strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--nhc-navy);
}

.privacy-summary-text > span {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--nhc-muted);
}

.privacy-icon,
.privacy-card-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
}

.privacy-icon svg,
.privacy-card-icon svg {
  width: 20px;
  height: 20px;
}

.privacy-icon.is-blue,
.privacy-card-icon.is-blue { background: #e4edfb; color: #2f5bff; }
.privacy-icon.is-green { background: #ddf3e7; color: #1d7a45; }
.privacy-icon.is-red { background: #fbe0e0; color: #c0392b; }
.privacy-icon.is-amber { background: #fdf0d2; color: #b07800; }
.privacy-icon.is-info { background: #e4edfb; color: #2f5bff; }

.privacy-chevron {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  color: var(--nhc-muted);
  transition: transform 0.18s ease;
}

.privacy-section[open] > summary .privacy-chevron {
  transform: rotate(180deg);
}

.privacy-body {
  padding: 0 1.15rem 1.15rem;
  /* Lines up with the summary text rather than the icon. */
  margin-left: 3.5rem;
  border-top: 1px solid #edf1f6;
  padding-top: 0.9rem;
}

.privacy-body p {
  margin: 0 0 0.8rem;
  color: var(--nhc-text);
  line-height: 1.6;
  font-size: 0.92rem;
}

.privacy-body ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-body li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--nhc-muted);
}

.privacy-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nhc-teal);
}

.privacy-body li strong {
  color: var(--nhc-navy);
}

.privacy-body a {
  color: var(--nhc-teal-dark);
  text-decoration: underline;
}

/* ---- Sidebar ---- */

.privacy-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.privacy-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.15rem;
  background: var(--nhc-white);
  border: 1px solid #e3eaf2;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 37, 66, 0.05);
}

.privacy-card.is-stacked {
  flex-direction: column;
  gap: 0.6rem;
}

.privacy-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--nhc-navy);
}

.privacy-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--nhc-muted);
}

.privacy-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.privacy-contact-btn svg {
  width: 17px;
  height: 17px;
}

@media (min-width: 992px) {
  .privacy-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 2rem;
  }
}

/* The indent under a section reads as a stray gap once the text is narrow. */
@media (max-width: 560px) {
  .privacy-body {
    margin-left: 0;
  }

  .privacy-section > summary {
    gap: 0.7rem;
    padding: 0.9rem 1rem;
  }
}

/* The chevron flip is decorative, so it goes when motion is turned down. */
@media (prefers-reduced-motion: reduce) {
  .privacy-chevron {
    transition: none;
  }
}

/* ---------- Cookie notice ----------
   Same navy-into-teal palette as the hero, with the teal pill button the hero uses, so it reads
   as part of the site rather than a bolted-on bar. */

.site-info-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  padding: 0.9rem 0;
  background: linear-gradient(180deg, var(--nhc-navy) 0%, var(--nhc-navy-deep) 100%);
  border-top: 2px solid var(--nhc-teal);
  box-shadow: 0 -10px 30px rgba(5, 22, 39, 0.35);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-info-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-info-bar-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.site-info-bar-text a {
  color: var(--nhc-teal);
  text-decoration: underline;
}

.site-info-bar-text a:hover {
  color: #fff;
}

/* .btn-teal already gives the pill, the uppercase weight and the navy label used in the hero;
   this only widens it so "OK" is still an easy target. */
.site-info-bar-ok {
  flex: 0 0 auto;
  min-width: 6rem;
}

.site-info-bar.is-dismissed {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 560px) {
  .site-info-bar-inner {
    flex-direction: column;
    gap: 0.7rem;
  }

  .site-info-bar-ok {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-info-bar {
    transition: none;
  }
}

/* ---------- Clubs & Access: narrow screens ----------
   A grid or flex child defaults to min-width: auto, so it refuses to shrink below its content.
   On this page that floor came from the "Main contact" control (a 240px flex-basis plus its
   button) and from unbreakable member emails, which pushed each club card wider than the phone
   and cut the status pills and buttons off the right. Every text or control holder that has to
   give way is told it may. */

.club-access-item,
.club-access-item-head,
.club-access-item-head > div,
.club-access-facts > div,
.club-access-members li,
.club-access-members li > span:first-child,
.club-access-move,
.club-access-move label {
  min-width: 0;
}

/* Long addresses are the usual culprit; let them wrap rather than widen the card. */
.club-access-meta,
.club-access-members li > span:first-child,
.club-access-facts dd {
  overflow-wrap: anywhere;
}

.club-access-move select {
  width: 100%;
  min-width: 0;
}

@media (max-width: 640px) {
  /* The status pill sits under the name instead of being squeezed beside it. */
  .club-access-item-head {
    flex-direction: column;
    gap: 0.45rem;
  }

  .club-access-members li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  /* Label above, button full width underneath — nothing left to clip. */
  .club-access-move {
    flex-direction: column;
    align-items: stretch;
  }

  .club-access-move label {
    flex: 1 1 auto;
  }

  .club-access-move .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Pitch booking cart (online payments) ----------
   Kept visibly apart from the shop cart: a calendar icon and amber accents rather than the
   shop's trolley and teal, so a pitch slot and a hoodie are never mistaken for each other. */

:root {
  --slot-held: #ffe1c7;
  --slot-held-line: #e0762b;
}

.booking-dot.is-held { background: var(--slot-held-line); }
.booking-chip.is-held { background: var(--slot-held); }

.booking-slot.is-held {
  background: repeating-linear-gradient(135deg, var(--slot-held) 0 8px, #fff1e4 8px 16px);
  border-left: 3px solid var(--slot-held-line);
}

.booking-field[hidden] {
  display: none;
}

.booking-no-payment {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.78rem;
}

.site-booking-cart-link {
  position: relative;
}

.site-booking-cart-count {
  background: var(--slot-held-line);
  color: var(--nhc-white);
}

.booking-cart-summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--slot-held-line);
  border-radius: 10px;
  background: #fff7ef;
  color: var(--nhc-navy);
  text-decoration: none;
}

.booking-cart-summary:hover {
  background: var(--slot-held);
  color: var(--nhc-navy);
}

.booking-cart-summary strong,
.booking-cart-summary small {
  display: block;
}

.booking-cart-summary small {
  color: var(--nhc-muted);
  font-size: 0.72rem;
}

.booking-cart-summary-icon,
.booking-cart-head-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  background: var(--slot-held-line);
  color: var(--nhc-white);
}

.booking-cart-summary-icon svg,
.booking-cart-head-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.booking-cart-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--slot-held-line);
  border-radius: 10px;
  background: #fff7ef;
}

.booking-cart-head .store-page-title {
  margin: 0;
}

.booking-cart-head p {
  margin: 0.15rem 0 0;
  color: var(--nhc-muted);
  font-size: 0.85rem;
}

.booking-cart-head-icon {
  width: 2.75rem;
  height: 2.75rem;
}

.booking-cart-head-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.booking-cart-hold {
  margin: 0 0 0.9rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: var(--slot-held);
  color: #7a3a0c;
  font-size: 0.85rem;
}

.booking-cart-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.booking-cart-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e7ecf1;
}

.booking-cart-line:last-child {
  border-bottom: 0;
}

.booking-cart-line form {
  margin: 0;
}

.booking-cart-line-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.booking-cart-line-main span {
  font-size: 0.88rem;
}

.booking-cart-line-main small {
  color: var(--nhc-muted);
  font-size: 0.75rem;
}

.booking-cart-line-price {
  font-weight: 800;
  white-space: nowrap;
}

.booking-cart-more,
.booking-cart-cta {
  margin-top: 0.9rem;
}

.booking-cart-methods {
  margin: 0.75rem 0;
  padding: 0;
  border: 0;
}

.booking-cart-methods legend {
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.booking-cart-checkout {
  width: 100%;
  margin-top: 0.75rem;
}

.admin-booking-payment-ref {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
}

.admin-booking-payment-none {
  color: var(--nhc-muted);
}

@media (max-width: 575.98px) {
  .booking-cart-line {
    flex-wrap: wrap;
  }

  .booking-cart-line-main {
    flex-basis: 100%;
  }
}

.admin-entry-discount {
  display: block;
  color: var(--nhc-muted);
  font-size: 0.7rem;
}

.booking-pay-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.booking-pay-option {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
}

.booking-pay-option small {
  flex: 1 1 auto;
  color: var(--nhc-muted);
}

.admin-create-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0.75rem 0 0.15rem;
  font-weight: 700;
}

.admin-create-price strong {
  font-size: 1.25rem;
}

/* The Create Booking date picker, styled like the modal's other fields. */
#createBookingModal input[type="date"] {
  height: 42px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  padding: 0 0.8rem;
  font-weight: 500;
  background: #fff;
}

.booking-cart-line-discount {
  display: block;
  color: #1d7a45;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: right;
}

/* ---------- Donations ---------- */

.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0.35rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--nhc-teal);
  border-radius: 8px;
  color: var(--nhc-teal);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-donate svg {
  width: 1rem;
  height: 1rem;
}

.btn-donate:hover,
.btn-donate.active {
  background: var(--nhc-teal);
  color: var(--nhc-navy-deep);
}

.donate-wrap {
  max-width: 640px;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.donate-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.donate-head h1,
.donate-thanks h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--nhc-navy);
}

.donate-head p {
  margin: 0.2rem 0 0;
  color: var(--nhc-muted);
}

.donate-head-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #e2f8f7;
  color: var(--nhc-teal-dark);
}

.donate-head-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.donate-amounts,
.donate-who {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

.donate-amounts legend,
.donate-who legend {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--nhc-navy);
}

.donate-amount-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.donate-amount input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.donate-amount span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  border: 1.5px solid #dbe4ee;
  border-radius: 10px;
  background: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--nhc-navy);
  cursor: pointer;
}

.donate-amount input:checked + span {
  border-color: var(--nhc-teal-dark);
  background: #e2f8f7;
  box-shadow: 0 0 0 2px rgba(21, 168, 164, 0.25);
}

.donate-amount input:focus-visible + span {
  outline: 2px solid var(--nhc-teal-dark);
  outline-offset: 2px;
}

.donate-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0.75rem 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}

.donate-field[hidden] {
  display: none;
}

.donate-field input {
  height: 44px;
  padding: 0 0.8rem;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  font-weight: 500;
}

.donate-who .club-doc-flag small {
  display: block;
  margin-top: 0.15rem;
  color: var(--nhc-muted);
  font-weight: 500;
}

.donate-submit {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.donate-note {
  margin: 0.75rem 0 0;
  color: var(--nhc-muted);
  font-size: 0.8rem;
}

.donate-thanks {
  text-align: center;
}

.donate-thanks .donate-head-icon {
  margin-bottom: 0.75rem;
}

.donate-thanks p {
  margin: 0.75rem 0;
}

@media (max-width: 575.98px) {
  .donate-amount-options {
    grid-template-columns: repeat(3, 1fr);
  }

  .btn-donate {
    margin: 0.4rem 0.7rem;
  }
}

/* Bootstrap floats legends and only clears the element right after one. Hiding the name box (donate
   anonymously) left nothing cleared, and the checkbox slid up beside the legend and off the card. */
.donate-page legend {
  float: none;
}

/* ---------- Block booking (Recurring) ---------- */

.booking-repeat {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #f8fafc;
}

.booking-repeat[hidden] {
  display: none;
}

.booking-repeat-end {
  margin: 0 0 0.6rem;
  padding: 0;
  border: 0;
}

/* Bootstrap floats legends; these ones sit on their own line. */
.booking-repeat-end legend,
.booking-cart-methods legend {
  float: none;
}

.booking-repeat-end legend {
  margin-bottom: 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--nhc-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.booking-repeat-choice {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
}

.booking-repeat-choice span {
  flex: 0 0 3.6rem;
}

.booking-repeat-choice select,
.booking-repeat-choice input[type="date"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  padding: 0 0.5rem;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #fff;
  font-size: 0.78rem;
}

.booking-preview-title {
  display: block;
  font-size: 0.78rem;
}

.booking-preview-status {
  margin: 0.2rem 0 0.4rem;
  color: var(--nhc-muted);
  font-size: 0.72rem;
}

.booking-preview-list {
  max-height: 16rem;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.booking-preview-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.45rem;
  border-left: 3px solid var(--slot-available-line);
  border-radius: 6px;
  background: #fff;
  font-size: 0.75rem;
}

.booking-preview-item + .booking-preview-item {
  margin-top: 0.3rem;
}

.booking-preview-item.is-invalid {
  border-left-color: #d64545;
  background: #fdecec;
}

.booking-preview-when {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.booking-preview-when small {
  color: var(--nhc-muted);
}

.booking-preview-item.is-invalid .booking-preview-when small,
.booking-preview-item.is-invalid .booking-preview-price {
  color: #a32626;
}

.booking-preview-price {
  font-weight: 700;
  white-space: nowrap;
}

.booking-preview-remove {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  border-radius: 50%;
  background: #e7ecf1;
  color: #334155;
  font-size: 1rem;
  line-height: 1;
}

.booking-preview-remove:hover {
  background: #d64545;
  color: #fff;
}

.booking-confirm:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.booking-cart-dates {
  margin: 0.15rem 0;
  font-size: 0.78rem;
}

.booking-cart-dates summary {
  color: var(--nhc-teal-dark);
  cursor: pointer;
}

.booking-cart-dates ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

/* ---------- Booking pop-up (calendar) ----------
   The booking form opens over the calendar: two columns on a wide screen (details | recurring), one
   column and full screen on a phone. Header and footer stay put; the middle scrolls. */

.booking-modal .modal-content {
  border: 0;
  border-radius: 16px;
}

.booking-modal-header {
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e7ecf1;
}

.booking-modal-header .modal-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--nhc-navy);
}

.booking-modal-when {
  margin: 0.2rem 0 0;
  color: var(--nhc-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.booking-modal .modal-body {
  padding: 1.1rem 1.25rem;
}

.booking-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.booking-modal-heading {
  margin: 0 0 0.6rem;
  color: var(--nhc-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.booking-modal-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.booking-modal .booking-field {
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

.booking-modal .booking-field select,
.booking-modal .booking-field input,
.booking-modal .booking-field textarea {
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.booking-modal .booking-field select,
.booking-modal .booking-field input {
  height: 42px;
}

.booking-modal .booking-club-note {
  font-size: 0.85rem;
}

.booking-modal-repeat {
  padding: 0.9rem;
  border-radius: 12px;
  background: #f8fafc;
}

.booking-repeat-hint {
  margin: -0.3rem 0 0;
  color: var(--nhc-muted);
  font-size: 0.8rem;
}

.booking-modal .booking-repeat {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.booking-modal .booking-repeat-end legend {
  font-size: 0.72rem;
}

.booking-modal .booking-repeat-choice {
  font-size: 0.88rem;
}

.booking-modal .booking-repeat-choice select,
.booking-modal .booking-repeat-choice input[type="date"] {
  height: 38px;
  font-size: 0.88rem;
}

.booking-modal .booking-preview {
  margin-top: 0.4rem;
}

.booking-modal .booking-preview-title {
  font-size: 0.88rem;
}

.booking-modal .booking-preview-status {
  font-size: 0.8rem;
}

.booking-modal .booking-preview-list {
  max-height: 20rem;
}

.booking-modal .booking-preview-item {
  padding: 0.5rem 0.6rem;
  font-size: 0.85rem;
}

.booking-modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid #e7ecf1;
}

.booking-modal-footer > * {
  margin: 0;
}

.booking-modal-price {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 0.6rem;
}

.booking-modal-price-label {
  color: var(--nhc-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.booking-modal-price strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--nhc-navy);
}

.booking-modal-price small {
  grid-column: 1 / -1;
  color: var(--nhc-muted);
  font-size: 0.75rem;
}

.booking-modal-actions {
  display: flex;
  gap: 0.5rem;
}

.booking-modal-actions .booking-confirm {
  width: auto;
  margin: 0;
  padding: 0.6rem 1.25rem;
}

.booking-modal-footer .booking-note {
  flex-basis: 100%;
  color: var(--nhc-muted);
  font-size: 0.75rem;
}

@media (max-width: 767.98px) {
  .booking-modal-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 575.98px) {
  .booking-modal .modal-content {
    border-radius: 0;
  }

  .booking-modal-actions {
    flex: 1 1 100%;
  }

  .booking-modal-actions .btn {
    flex: 1 1 0;
  }
}

/* ---------- Store: club and/or partner selling ---------- */

.store-partner-product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.store-card-body .store-partner-product-btn {
  margin-top: 0.4rem;
}

.store-partner-product-btn svg {
  width: 1rem;
  height: 1rem;
}

.store-detail-partner {
  margin-top: 1rem;
}

.store-detail-partner p {
  margin: 0 0 0.4rem;
  color: var(--nhc-muted);
  font-size: 0.9rem;
}

.store-admin-sold-by {
  display: block;
  margin-top: 0.25rem;
  color: var(--nhc-muted);
  font-size: 0.72rem;
}

.store-sold-by {
  margin: 0;
  padding: 0;
  border: 0;
}

.store-sold-by legend {
  float: none;
  margin-bottom: 0.25rem;
}

.store-partner-url {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0.25rem 0 0 1.7rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: #334155;
}

.store-partner-url[hidden] {
  display: none;
}

.store-partner-url input {
  height: 42px;
  padding: 0 0.8rem;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  font-weight: 500;
}

/* ---------- Special Event (home page banner + event page) ---------- */

.special-event-band {
  padding: 0.5rem 0 0.25rem;
}

.special-event {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 30%) minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  min-height: 210px;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(30, 200, 196, 0.28) 0 22%, transparent 23%),
    #dff4f3;
  box-shadow: 0 12px 30px rgba(16, 37, 66, 0.08);
}

.special-event.is-imageless {
  grid-template-columns: minmax(0, 1fr) auto;
}

/* The photo ends in a soft wave rather than a straight edge, as in the design. */
.special-event-image {
  align-self: stretch;
  min-height: 210px;
  background-position: center;
  background-size: cover;
  -webkit-clip-path: polygon(0 0, 88% 0, 84% 25%, 95% 50%, 86% 72%, 94% 100%, 0 100%);
  clip-path: polygon(0 0, 88% 0, 84% 25%, 95% 50%, 86% 72%, 94% 100%, 0 100%);
}

.special-event-body {
  padding: 1.4rem 1.25rem 1.4rem 1.5rem;
}

.special-event.is-imageless .special-event-body {
  padding-left: 2rem;
}

.special-event-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--nhc-teal-dark);
  color: var(--nhc-white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.special-event-body h2 {
  margin: 0 0 0.45rem;
  color: var(--nhc-navy);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 900;
  line-height: 1.15;
}

.special-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 0 0 0.6rem;
  padding: 0;
  list-style: none;
  color: var(--nhc-navy);
  font-weight: 700;
}

.special-event-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.special-event-meta svg {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
}

.special-event-text {
  max-width: 46rem;
  margin: 0;
  color: #1f3a52;
}

.special-event-action {
  padding: 1.4rem 1.75rem 1.4rem 0.5rem;
}

.special-event-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  background: var(--nhc-navy);
  color: var(--nhc-white);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.special-event-btn:hover,
.special-event-btn:focus-visible {
  background: #0d2c4d;
  color: var(--nhc-white);
}

.special-event-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* On the event's own page the details sit in the dark hero, so they go light. */
.article-hero .special-event-meta {
  color: inherit;
  margin-bottom: 0.9rem;
}

@media (max-width: 991.98px) {
  .special-event,
  .special-event.is-imageless {
    grid-template-columns: 1fr;
  }

  .special-event-image {
    min-height: 180px;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 86%, 70% 94%, 35% 88%, 0 96%);
    clip-path: polygon(0 0, 100% 0, 100% 86%, 70% 94%, 35% 88%, 0 96%);
  }

  .special-event-body,
  .special-event.is-imageless .special-event-body {
    padding: 1.1rem 1.25rem 0.5rem;
  }

  .special-event-action {
    padding: 0.5rem 1.25rem 1.4rem;
  }

  .special-event-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Special Event (Site Admin news form) ---------- */

.news-event-switch {
  margin-bottom: 1rem;
}

.news-event-fields {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #cdebea;
  border-radius: 12px;
  background: #f1fbfa;
}

.news-event-fields[hidden] {
  display: none;
}

.news-event-fields legend {
  float: none;
  width: auto;
  margin-bottom: 0.5rem;
  padding: 0;
  color: var(--nhc-navy);
  font-size: 0.95rem;
  font-weight: 800;
}

.news-event-fields label small {
  color: var(--nhc-muted);
  font-weight: 500;
}

.news-required {
  color: #c0392b;
}

.news-event-note {
  margin: 0.5rem 0 0;
  color: var(--nhc-muted);
  font-size: 0.8rem;
}

.news-event-badge {
  background: #dff4f3;
  color: var(--nhc-teal-dark);
}

/* ---------- Add / Edit News & Events (Site Admin → Customization → Latest News) ----------
   Laid out as the NH-46 design: fields on the left, the event switch, featured image, publish
   period and Active switch on the right, with Cancel and Save across the bottom. */

.news-editor-card {
  padding: 1.5rem 1.6rem;
}

.news-editor-card [hidden] {
  display: none !important;
}

.news-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1.75rem;
  align-items: start;
}

.news-editor-title {
  margin: 0 0 1.1rem;
  color: var(--nhc-navy);
  font-size: 1.35rem;
  font-weight: 800;
}

.news-input {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 0 1rem;
  min-width: 0;
}

.news-label {
  color: var(--nhc-navy);
  font-size: 0.88rem;
  font-weight: 700;
}

.news-sublabel {
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
}

.news-required {
  color: #d64545;
}

/* One look for every box on the form: same height, border, radius and text size. */
.news-editor-card input[type="text"],
.news-editor-card input[type="date"],
.news-editor-card select,
.news-editor-card textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 1px solid #d5deea;
  border-radius: 10px;
  background: #fff;
  color: var(--nhc-text, #1f2937);
  font-size: 0.92rem;
  font-weight: 500;
}

.news-editor-card textarea {
  resize: vertical;
}

.news-editor-card input:focus,
.news-editor-card select:focus,
.news-editor-card textarea:focus {
  border-color: #2f5bff;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.15);
}

.news-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

/* A box with an icon inside it on the left (dates, location, age group). */
.news-icon-input {
  position: relative;
  display: block;
  flex: 1 1 0;
  min-width: 0;
}

.news-icon-input svg {
  position: absolute;
  top: 50%;
  left: 0.8rem;
  width: 1.1rem;
  height: 1.1rem;
  color: #475569;
  transform: translateY(-50%);
  pointer-events: none;
}

.news-editor-card .news-icon-input input {
  padding-left: 2.4rem;
}

.news-date-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-date-dash {
  color: #64748b;
  font-weight: 700;
}

.news-editor-card .tiny-html-toolbar {
  flex-wrap: wrap;
  align-items: center;
  padding: 0.5rem 0.6rem;
}

.news-editor-card .tiny-html-toolbar button {
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
}

.tiny-html-divider {
  width: 1px;
  height: 1.3rem;
  margin: 0 0.25rem;
  background: #dbe4ee;
}

.news-editor-card .tiny-html-surface {
  min-height: 180px;
  font-size: 0.95rem;
}

/* ---- right column ---- */

.news-editor-side {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.news-event-switch,
.news-active-switch {
  margin: 0;
}

.news-editor-side .store-switch-text small {
  color: var(--nhc-muted);
  font-size: 0.78rem;
}

.news-editor-side .store-switch input:checked + .store-switch-track {
  background: #2f5bff;
}

.news-side-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.9rem;
  border: 1px solid #e3eaf2;
  border-radius: 12px;
  background: #fff;
}

.news-featured-preview {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #eef3f8;
  aspect-ratio: 16 / 7;
}

.news-featured-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-featured-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #d64545;
  box-shadow: 0 2px 6px rgba(7, 30, 54, 0.2);
}

.news-featured-remove svg {
  width: 1.1rem;
  height: 1.1rem;
}

.news-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.1rem 0.75rem;
  border: 1.5px dashed #c5d4e6;
  border-radius: 10px;
  background: #fafcff;
  color: #334155;
  font-size: 0.85rem;
  text-align: center;
  cursor: pointer;
}

.news-dropzone.is-over {
  border-color: #2f5bff;
  background: #eef3ff;
}

.news-dropzone > svg {
  width: 2.2rem;
  height: 2.2rem;
  color: #2f5bff;
}

.news-dropzone small {
  color: var(--nhc-muted);
}

.news-dropzone .btn {
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
}

.news-dropzone-hint {
  font-size: 0.75rem;
}

.news-editor-side .news-image-hint {
  color: var(--nhc-muted);
  font-size: 0.75rem;
}

.news-side-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.news-side-help {
  color: var(--nhc-muted);
  font-size: 0.75rem;
}

.news-side-block .news-input {
  margin: 0;
}

.news-editor-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e7ecf1;
}

.news-editor-actions .btn {
  min-width: 7.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
}

.news-editor-actions .btn-light {
  border: 1px solid #d5deea;
  background: #fff;
}

@media (max-width: 991.98px) {
  .news-editor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .news-editor-card {
    padding: 1.1rem;
  }

  .news-input-row {
    grid-template-columns: 1fr;
  }

  .news-date-range {
    flex-wrap: wrap;
  }
}

/* Back button beside the Special Event badge on the event's page. */
.special-event-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.special-event-topline .special-event-badge {
  margin-bottom: 0;
}

.special-event-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: var(--nhc-white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.special-event-back:hover,
.special-event-back:focus-visible {
  background: var(--nhc-white);
  color: var(--nhc-navy);
}

.special-event-back svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* ---------- Sliding-scale prices ---------- */

.store-price-from {
  color: var(--nhc-muted);
  font-size: 0.72em;
  font-weight: 600;
}

.store-price-tiers {
  display: block;
  color: var(--nhc-teal-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.store-tiers {
  margin: 0.5rem 0 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #cdebea;
  border-radius: 12px;
  background: #f1fbfa;
}

.store-tiers-title {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--nhc-navy);
}

.store-tiers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.store-tiers-table th {
  padding: 0.3rem 0.5rem;
  color: var(--nhc-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

.store-tiers-table td {
  padding: 0.4rem 0.5rem;
  border-top: 1px solid #d7eeed;
}

.store-tiers-table td:last-child,
.store-tiers-table th:last-child {
  text-align: right;
  font-weight: 700;
}

.store-tiers-table tr.is-current td {
  background: #fff;
  color: var(--nhc-teal-dark);
  font-weight: 800;
}

.store-tiers-note {
  display: block;
  margin-top: 0.35rem;
  color: var(--nhc-muted);
  font-size: 0.78rem;
}

.store-tier-total {
  margin: 0.25rem 0 0.75rem;
  color: var(--nhc-navy);
  font-weight: 700;
}

.store-cart-price-note {
  color: var(--nhc-teal-dark);
  font-weight: 600;
}

/* Admin: the price band editor in the product pop-up. */
.store-tier-editor {
  padding: 0.75rem 0.85rem;
  border: 1px solid #e3eaf2;
  border-radius: 12px;
  background: #fafcff;
}

.store-tier-edit-table {
  width: 100%;
  margin: 0.5rem 0;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.store-tier-edit-table th {
  padding: 0.25rem 0.4rem;
  color: var(--nhc-muted);
  font-size: 0.75rem;
  text-align: left;
}

.store-tier-edit-table td {
  padding: 0.3rem 0.4rem;
  vertical-align: middle;
}

.store-tier-edit-table input {
  width: 100%;
  height: 38px;
}

.store-tier-base td {
  color: var(--nhc-muted);
}

.store-tier-add {
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
}

.store-tier-preview {
  display: block;
  margin-top: 0.4rem;
  color: var(--nhc-teal-dark);
  font-weight: 600;
}

/* ---------- No delivery fee ---------- */

.store-free-delivery-tag {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #d7f5e2;
  color: #1d7a45;
  font-size: 0.75rem;
  font-weight: 700;
}

p.store-free-delivery-tag {
  display: block;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
}

.store-cart-info .store-free-delivery-tag {
  width: fit-content;
  margin: 0.15rem 0 0;
}

.store-delivery-note {
  margin-top: 0.5rem;
}

/* "Designed and maintained by Shad Solutions", between the copyright and the version. */
.footer-credit {
  color: #b7c6d4;
}

@media (max-width: 575.98px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

/* ---------- Store card: quantity + Add to Cart ---------- */

.store-card-buy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.store-card-buy .store-btn {
  flex: 1 1 auto;
}

.store-card-qty {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.25rem;
}

.store-card-qty input {
  width: 2.6rem;
  height: 1.9rem;
  padding: 0;
  border: 1px solid #d4dee8;
  border-radius: 6px;
  color: var(--nhc-navy);
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}

.store-card-qty input::-webkit-outer-spin-button,
.store-card-qty input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

/* The header cart badge pulses when something is added. */
.site-cart-count.is-bumped {
  animation: nhc-cart-bump 0.5s ease;
}

@keyframes nhc-cart-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .site-cart-count.is-bumped {
    animation: none;
  }
}

/* ---------- Price per size ---------- */

.store-size.has-price span {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.store-size.has-price small {
  color: var(--nhc-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.store-size.has-price input:checked + span small {
  color: inherit;
}

.store-size-prices {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.store-size-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.5rem;
}

.store-size-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.store-size-price > span:first-child {
  min-width: 2.2rem;
}

.store-size-price input {
  width: 100%;
  height: 38px;
}

/* Buy more, pay less: the size × band grid, when sizes have their own prices. */
.store-tiers-scroll {
  overflow-x: auto;
}

.store-tiers-grid th,
.store-tiers-grid td {
  text-align: right;
  white-space: nowrap;
}

.store-tiers-grid th:first-child,
.store-tiers-grid tbody th {
  text-align: left;
  font-weight: 700;
}

.store-tiers-grid tbody th {
  padding: 0.4rem 0.5rem;
  border-top: 1px solid #d7eeed;
  color: var(--nhc-navy);
  font-size: 0.88rem;
}

.store-tiers-grid td.is-current-band,
.store-tiers-grid th.is-current-band {
  color: var(--nhc-teal-dark);
}

.store-tiers-grid tr.is-current th,
.store-tiers-grid tr.is-current td {
  background: #fff;
}

.store-tiers-grid tr.is-current td.is-current-band {
  font-weight: 800;
  box-shadow: inset 0 0 0 2px var(--nhc-teal);
  border-radius: 6px;
}

/* Admin: price per size, and per size in each band — one row per size, one column per band. */
.store-size-price-grid {
  display: block;
  overflow-x: auto;
}

.store-size-band-table {
  margin: 0;
}

.store-size-band-table tbody th {
  padding: 0.3rem 0.4rem;
  color: var(--nhc-navy);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.store-size-band-table td {
  min-width: 6.5rem;
}

.store-size-band-table input::placeholder {
  color: #9aa7b6;
}

/* Gallery — albums as an accordion, photos loaded when an album opens */
.gallery-albums {
  gap: 0.85rem;
}

.gallery-album {
  border: 1px solid #e3eaf2;
  border-radius: 18px;
  background: var(--nhc-white);
  box-shadow: 0 8px 22px rgba(7, 30, 54, 0.06);
  overflow: hidden;
}

.gallery-album-heading {
  margin: 0;
  font-size: inherit;
}

.gallery-album-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.85rem 1.1rem 0.85rem 0.85rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.gallery-album-toggle:hover {
  background: #f5f9fc;
}

.gallery-album-toggle:focus-visible {
  outline: 3px solid var(--nhc-teal);
  outline-offset: -3px;
}

.gallery-album-cover {
  position: relative;
  flex: 0 0 auto;
  width: 88px;
  height: 66px;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-album-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-album-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.gallery-album-name {
  color: var(--nhc-navy);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.gallery-album-description {
  color: var(--nhc-muted);
  font-size: 0.92rem;
  font-weight: 400;
}

.gallery-album-toggle .gallery-album-meta {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.75rem;
  white-space: normal;
}

.gallery-album-chevron {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--nhc-navy);
  transition: transform 0.25s ease;
}

.gallery-album.is-open .gallery-album-chevron {
  transform: rotate(180deg);
}

.gallery-album-body {
  padding: 0.35rem 1.1rem 1.2rem;
  border-top: 1px solid #eef3f8;
}

.gallery-album-body .gallery-grid {
  margin-top: 0.85rem;
}

/* A shimmer while a photo loads, then it fades in. */
.gallery-thumb,
.gallery-album-cover {
  background: linear-gradient(100deg, #eef3f8 30%, #f8fbfd 50%, #eef3f8 70%) 0 0 / 250% 100%;
  animation: gallery-shimmer 1.3s linear infinite;
}

.gallery-thumb.is-loaded,
.gallery-album-cover.is-loaded {
  background: #eef3f8;
  animation: none;
}

.gallery-thumb img,
.gallery-album-cover img {
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-thumb.is-loaded img,
.gallery-album-cover.is-loaded img {
  opacity: 1;
}

@keyframes gallery-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -150% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-thumb,
  .gallery-album-cover {
    animation: none;
  }
}

/* The viewer shows the thumbnail first; a small spinner until the full photo arrives. */
.gallery-lightbox.is-loading-full .gallery-lightbox-figure::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: gallery-spin 0.8s linear infinite;
}

.gallery-lightbox-figure {
  position: relative;
}

@keyframes gallery-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 560px) {
  .gallery-album-toggle {
    gap: 0.75rem;
    padding: 0.7rem 0.8rem 0.7rem 0.7rem;
  }

  .gallery-album-cover {
    width: 64px;
    height: 52px;
  }

  .gallery-album-name {
    font-size: 1rem;
  }

  .gallery-album-body {
    padding: 0.25rem 0.75rem 0.9rem;
  }

  .gallery-album-body .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .gallery-album-body .gallery-thumb img {
    height: 140px;
  }
}

/* reCAPTCHA v3 notice under each protected form (_Recaptcha partial). Google's own badge shows
   bottom-right as well once its script has loaded. */
.recaptcha-notice {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  opacity: 0.75;
}

.recaptcha-notice a {
  color: inherit;
  text-decoration: underline;
}
