/*
Theme Name: Bridgwater Reds
Theme URI: https://bridgwater-reds.co.uk/
Author: Avallach Technology
Description: A modern custom WordPress theme for the Manchester United Supporters Club Bridgwater & South West Branch.
Version: 0.1.28
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: bridgwater-reds
*/

/* Design tokens shared across the public theme. */
:root {
  --br-red-950: #3d0507;
  --br-red-900: #5d070b;
  --br-red-800: #830b11;
  --br-red-700: #aa1018;
  --br-red-600: #c31622;
  --br-gold: #d7a83f;
  --br-gold-soft: #f4e6bd;
  --br-ink: #161719;
  --br-muted: #62666f;
  --br-line: #e8e1d5;
  --br-paper: #fffaf1;
  --br-surface: #ffffff;
  --br-soft: #f7f2e9;
  --br-shadow: 0 20px 50px rgba(32, 6, 8, 0.18);
  --br-radius: 8px;
  --br-wrap: 1180px;
  --br-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --br-serif: Georgia, "Times New Roman", serif;
}

/* Base document and accessible utility defaults. */
* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(61, 5, 7, 0.72), rgba(61, 5, 7, 0.92)),
    var(--br-red-900);
  color: var(--br-ink);
  font-family: var(--br-font);
  font-size: 16px;
  line-height: 1.6;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: var(--br-red-700);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--br-red-900);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Outer shell and branch identity header. */
.site-wrap {
  width: min(calc(100% - 28px), var(--br-wrap));
  margin: 18px auto 28px;
  overflow: hidden;
  background: var(--br-paper);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  box-shadow: var(--br-shadow);
}

.utility-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
  justify-content: space-between;
  padding: 9px clamp(18px, 4vw, 42px);
  background: var(--br-ink);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.84rem;
}

.utility-bar a {
  color: #ffffff;
  text-decoration: none;
}

.utility-label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0;
}

.utility-label::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--br-gold);
  border-radius: 999px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 241, 0.96);
  border-bottom: 1px solid var(--br-line);
  backdrop-filter: blur(14px);
}

.brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px clamp(18px, 4vw, 42px) 18px;
}

.site-brand {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.brand-text {
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.26), transparent 38%),
    linear-gradient(145deg, var(--br-red-600), var(--br-red-900));
  border: 3px solid var(--br-gold);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(94, 9, 13, 0.26);
  font-weight: 900;
  letter-spacing: 0;
}

.custom-logo-link {
  display: block;
  width: 68px;
  height: 68px;
}

.custom-logo-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-kicker {
  margin: 0 0 2px;
  color: var(--br-red-700);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand-title {
  margin: 0;
  color: var(--br-ink);
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
}

.brand-subtitle {
  margin: 4px 0 0;
  color: var(--br-muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #ffffff;
  background: var(--br-red-800);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

/* Primary navigation and mobile fallback menu. */
.primary-nav {
  padding: 0 clamp(18px, 4vw, 42px) 18px;
}

.primary-menu,
.primary-menu ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.primary-menu a {
  display: block;
  padding: 9px 12px;
  color: var(--br-ink);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 8px;
}

.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu a:hover,
.primary-menu a:focus {
  color: #ffffff;
  background: var(--br-red-800);
}

.menu-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Shared layout primitives, headings, buttons, and cards. */
.main-content {
  background: linear-gradient(180deg, #fffaf1 0, #ffffff 420px);
}

.section-pad {
  padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 42px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(22px, 5vw, 46px);
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 5px 9px;
  margin: 0 0 16px;
  color: var(--br-red-800);
  background: #fff2d2;
  border: 1px solid #f0d98f;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero h1,
.page-title,
.archive-title {
  max-width: 800px;
  margin: 0;
  color: var(--br-ink);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.96;
}

.hero h1 {
  font-size: clamp(2.35rem, 6vw, 4.85rem);
}

.page-title,
.archive-title {
  font-size: clamp(1.2rem, 3vw, 2.45rem);
}

.hero-lede {
  max-width: 680px;
  margin: 18px 0 0;
  color: #3b3d43;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--br-red-800);
  border: 1px solid var(--br-red-800);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  color: #ffffff;
  background: var(--br-red-950);
  border-color: var(--br-red-950);
}

.button.secondary {
  color: var(--br-red-900);
  background: #ffffff;
  border-color: #e6d7c6;
}

.button.secondary:hover,
.button.secondary:focus {
  color: var(--br-red-950);
  background: #fff3df;
}

.card {
  background: var(--br-surface);
  border: 1px solid var(--br-line);
  border-radius: var(--br-radius);
  box-shadow: 0 12px 30px rgba(42, 14, 5, 0.08);
}

.card-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 0;
}

.card-title {
  margin: 0;
  color: var(--br-ink);
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
}

.card-body {
  padding: 18px;
}

/* Fixture cards, fixture archive, and monthly calendar. */
.fixture-list {
  display: grid;
  gap: 10px;
}

.fixture-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  color: inherit;
  text-decoration: none;
  background: #fffaf3;
  border: 1px solid #eadfcf;
  border-radius: 8px;
}

.fixture-card.has-badge {
  grid-template-columns: auto 42px minmax(0, 1fr);
}

.fixture-card:hover,
.fixture-card:focus {
  color: inherit;
  border-color: var(--br-gold);
  box-shadow: 0 10px 20px rgba(61, 5, 7, 0.1);
}

.fixture-date {
  display: grid;
  width: 68px;
  place-items: center;
  padding: 8px 6px;
  color: #ffffff;
  background: var(--br-red-800);
  border-radius: 8px;
  line-height: 1;
  text-align: center;
}

.fixture-badge {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  align-self: center;
  background: #ffffff;
  border: 1px solid var(--br-line);
  border-radius: 8px;
}

.fixture-badge img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.fixture-date span:first-child {
  font-size: 1.55rem;
  font-weight: 950;
}

.fixture-date span:last-child {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fixture-name {
  margin: 0;
  color: var(--br-ink);
  font-size: 1.13rem;
  font-weight: 950;
  line-height: 1.12;
}

.fixture-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 8px;
  color: var(--br-muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.25;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 4px 8px;
  margin-top: 10px;
  color: var(--br-red-900);
  background: #fff0d0;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.fixture-empty {
  margin: 0;
  color: var(--br-muted);
  font-size: 0.95rem;
  font-weight: 750;
}

.fixture-title-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.fixture-title-row .page-title {
  min-width: 0;
  margin: 0;
}

.single-br_fixture .fixture-title-row .page-title,
.type-br_fixture .fixture-title-row .page-title {
  max-width: 620px;
  font-size: 2.6rem;
  line-height: 1.03;
  overflow-wrap: anywhere;
}

.fixture-page-badge {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  background: #ffffff;
  border: 1px solid var(--br-line);
  border-radius: 8px;
}

.fixture-page-badge img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.fixture-actions {
  border-top: 1px solid var(--br-line);
}

.fixture-view-more {
  display: inline-flex;
  align-items: center;
  color: var(--br-red-800);
  font-size: 0.9rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.fixture-view-more:hover,
.fixture-view-more:focus {
  color: var(--br-red-950);
  text-decoration: underline;
}

.fixtures-archive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
  gap: 18px;
  align-items: start;
}

.fixtures-archive-booking {
  margin-top: 18px;
}

.fixtures-archive-booking .fixture-booking-instructions {
  margin-top: 0;
}

.fixture-calendar-widget {
  display: grid;
  gap: 12px;
}

.fixture-calendar-nav {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
}

.fixture-calendar-nav strong,
.fixture-calendar-month {
  margin: 0;
  color: var(--br-ink);
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
}

.fixture-calendar-nav a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--br-red-900);
  text-decoration: none;
  background: #fffaf3;
  border: 1px solid var(--br-line);
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 950;
  line-height: 1;
}

.fixture-calendar-nav a:hover,
.fixture-calendar-nav a:focus {
  color: #ffffff;
  background: var(--br-red-800);
  border-color: var(--br-red-800);
}

.fixture-calendar-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 4px;
}

.fixture-calendar-table th {
  padding: 0 0 4px;
  color: var(--br-muted);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.fixture-calendar-table td {
  padding: 0;
  text-align: center;
  vertical-align: middle;
}

.fixture-calendar-day {
  position: relative;
  display: grid;
  min-height: 34px;
  place-items: center;
  color: var(--br-muted);
  text-decoration: none;
  background: #fffaf3;
  border: 1px solid #eadfcf;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
}

.is-today .fixture-calendar-day {
  border-color: var(--br-gold);
  box-shadow: inset 0 0 0 1px var(--br-gold);
}

.has-fixture .fixture-calendar-day {
  color: #ffffff;
  background: var(--br-red-800);
  border-color: var(--br-red-800);
}

.has-fixture .fixture-calendar-day:hover,
.has-fixture .fixture-calendar-day:focus {
  color: #ffffff;
  background: var(--br-red-700);
  border-color: var(--br-red-700);
}

.fixture-calendar-count {
  position: absolute;
  top: -6px;
  right: -5px;
  display: grid;
  min-width: 17px;
  min-height: 17px;
  place-items: center;
  padding: 2px 4px;
  color: var(--br-red-950);
  background: var(--br-gold);
  border-radius: 999px;
  font-size: 0.62rem;
  line-height: 1;
}

.fixture-calendar-events {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.fixture-calendar-events a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  color: var(--br-ink);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.25;
}

.fixture-calendar-events a:hover,
.fixture-calendar-events a:focus {
  color: var(--br-red-800);
}

.fixture-calendar-events span {
  color: var(--br-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fixture-calendar-empty {
  margin: 0;
  color: var(--br-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.info-panel {
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--br-line);
  border-radius: 8px;
}

.info-panel h2,
.info-panel h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.16;
}

.info-panel p {
  margin: 0;
  color: var(--br-muted);
  font-size: 0.94rem;
}

/* Homepage booking, coach travel, news, and essentials sections. */
.home-band,
.coach-section,
.essentials-section {
  border-top: 1px solid var(--br-line);
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: 18px;
  align-items: stretch;
}

.booking-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contact-panel {
  padding: 20px;
  color: #ffffff;
  background: var(--br-red-900);
  border-radius: 8px;
}

.contact-panel h3,
.contact-panel p {
  margin: 0;
}

.contact-panel h3 {
  color: #ffe3a6;
  font-size: 0.95rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-panel p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.45;
}

.contact-panel a {
  color: #ffffff;
}

.contact-panel .contact-name {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 950;
  line-height: 1;
}

.coach-location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px;
  align-items: start;
}

.coach-location-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--br-line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(69, 9, 12, 0.08);
}

.coach-location-card h3 {
  margin: 0;
  color: var(--br-red-900);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.2;
}

.coach-location-table {
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--br-line);
  border-collapse: separate;
  border-radius: 6px;
  border-spacing: 0;
  table-layout: fixed;
}

.coach-location-table th,
.coach-location-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--br-line);
}

.coach-location-table th + th,
.coach-location-table td + td {
  border-left: 1px solid var(--br-line);
}

.coach-location-table thead th {
  color: #ffffff;
  background: var(--br-red-800);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
}

.coach-location-table tbody th {
  color: var(--br-ink);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.25;
}

.coach-location-table thead th:last-child,
.coach-location-table td {
  width: 34%;
}

.coach-location-table td {
  color: var(--br-red-900);
  font-weight: 950;
  white-space: nowrap;
}

.coach-location-table tbody tr:last-child th,
.coach-location-table tbody tr:last-child td {
  border-bottom: 0;
}

.coach-note {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--br-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.home-news-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.essentials-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.essential-link {
  display: grid;
  gap: 7px;
  min-height: 112px;
  align-content: center;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--br-line);
  border-radius: 8px;
}

.essential-link strong {
  color: var(--br-ink);
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.1;
}

.essential-link span {
  color: var(--br-muted);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.3;
}

.essential-link:hover,
.essential-link:focus {
  color: inherit;
  border-color: var(--br-gold);
  box-shadow: 0 10px 24px rgba(69, 9, 12, 0.1);
}

/* General content, posts, contact cards, sidebar, and footer. */
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.38fr);
  gap: 18px;
}

.section-heading {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-item {
  display: block;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--br-line);
  border-radius: 8px;
}

.news-item:hover,
.news-item:focus {
  color: inherit;
  border-color: #dfc36c;
}

.news-item h3 {
  margin: 0;
  color: var(--br-ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.news-item h2 {
  margin: 0 0 8px;
  color: var(--br-ink);
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.18;
}

.news-item time,
.post-meta {
  display: block;
  margin-top: 8px;
  color: var(--br-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(22px, 4vw, 42px);
}

.content-card {
  padding: clamp(20px, 4vw, 38px);
  background: #ffffff;
  border: 1px solid var(--br-line);
  border-radius: 8px;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.fixture-booking-instructions {
  display: grid;
  gap: 10px;
  padding: 18px;
  margin-top: 24px;
  color: #303237;
  background: #fffaf3;
  border: 1px solid var(--br-line);
  border-left: 4px solid var(--br-gold);
  border-radius: 8px;
}

.fixture-booking-instructions p {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 720;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.fixture-booking-instructions p:first-child {
  color: var(--br-red-900);
  font-weight: 950;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.6em;
  line-height: 1.16;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--br-line);
  border-radius: 8px;
}

.entry-content th,
.entry-content td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--br-line);
}

.entry-content th {
  color: #ffffff;
  background: var(--br-red-800);
}

.entry-content tr:nth-child(even) td {
  background: #fff9ed;
}

.coach-times-page .coach-location-table {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.coach-times-page .coach-location-table th,
.coach-times-page .coach-location-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: middle;
}

.coach-times-page .coach-location-table tbody th {
  color: var(--br-ink);
  background: #ffffff;
}

.coach-times-page .coach-location-table tr:nth-child(even) td {
  background: #ffffff;
}

.coach-times-page-content {
  margin-bottom: 24px;
}

.branch-contacts {
  margin-top: 26px;
}

.branch-contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

.branch-contact-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #fffaf3;
  border: 1px solid var(--br-line);
  border-radius: 8px;
}

.branch-contact-heading {
  display: grid;
  gap: 6px;
}

.branch-contact-role,
.branch-contact-heading h2 {
  margin: 0;
}

.branch-contact-role {
  color: var(--br-red-800);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.branch-contact-heading h2 {
  color: var(--br-ink);
  font-size: 1.32rem;
  font-weight: 950;
  line-height: 1.05;
}

.branch-contact-details {
  display: grid;
  gap: 12px;
  margin: 0;
}

.branch-contact-details div {
  display: grid;
  gap: 3px;
}

.branch-contact-details dt {
  color: var(--br-muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.branch-contact-details dd {
  margin: 0;
  color: #303237;
  font-size: 0.94rem;
  font-weight: 720;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.branch-contact-details a {
  font-weight: 850;
}

.branch-contacts-empty,
.branch-contacts-page-content {
  margin-top: 24px;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
}

.sidebar .card-body ul {
  padding-left: 18px;
  margin: 0;
}

.site-footer {
  padding: 26px clamp(18px, 4vw, 42px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--br-ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.site-footer a {
  color: #ffffff;
}

.footer-title {
  margin: 0;
  color: #ffffff;
  font-weight: 950;
}

.footer-note {
  margin: 4px 0 0;
  font-size: 0.9rem;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 800;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
  padding: 8px 11px;
  background: #ffffff;
  border: 1px solid var(--br-line);
  border-radius: 8px;
  text-decoration: none;
}

.pagination .current {
  color: #ffffff;
  background: var(--br-red-800);
}

/* Responsive reductions for tablet and small mobile screens. */
@media (max-width: 900px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .site-wrap {
    width: min(calc(100% - 18px), var(--br-wrap));
    margin-top: 9px;
    border-radius: 10px;
  }

  .brand-row {
    padding-bottom: 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    padding-top: 0;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-menu,
  .menu-fallback {
    display: grid;
  }

  .primary-menu a,
  .menu-fallback a {
    padding: 11px 12px;
    background: #ffffff;
    border: 1px solid var(--br-line);
  }

  .hero,
  .split-section,
  .fixtures-archive-grid,
  .content-layout,
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .booking-steps,
  .home-news-list,
  .essentials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-menu {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .utility-bar {
    display: none;
  }

  body.admin-bar .site-header {
    top: 0;
  }

  .brand-row {
    gap: 12px;
    padding: 14px;
  }

  .site-brand {
    gap: 10px;
  }

  .brand-mark,
  .custom-logo-link {
    width: 52px;
    height: 52px;
  }

  .brand-kicker {
    font-size: 0.64rem;
  }

  .brand-title {
    font-size: 1.45rem;
  }

  .brand-subtitle {
    font-size: 0.76rem;
  }

  .primary-nav,
  .section-pad,
  .site-footer {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero h1 {
    font-size: 2.38rem;
  }

  .page-title,
  .archive-title {
    font-size: 1.2rem;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-hero .hero-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .home-hero .hero-actions .button {
    min-width: 0;
    padding-right: 6px;
    padding-left: 6px;
    font-size: 0.82rem;
  }

  .fixture-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 11px;
    padding: 12px;
  }

  .fixture-card.has-badge {
    grid-template-columns: 58px 36px minmax(0, 1fr);
  }

  .fixture-date {
    width: 58px;
  }

  .fixture-badge {
    width: 36px;
    height: 36px;
  }

  .fixture-badge img {
    width: 26px;
    height: 26px;
  }

  .fixture-name {
    font-size: 1rem;
  }

  .single-br_fixture .fixture-title-row .page-title,
  .type-br_fixture .fixture-title-row .page-title {
    font-size: 1.75rem;
    line-height: 1.08;
  }
}
