:root {
  --fg: #e5e7eb;
  --bg: #0b1220;
  --card: #111827;
  --accent: #695c9b;
  --highlight: #51bcb7;
}
/* Global link styling – no default blue/purple anywhere */

a {
  color: var(--highlight);
  text-decoration: none;
  font-weight: 200;
}

a:visited {
  color: var(--accent);            /* same as normal – no purple */
}

/* Hover + keyboard focus: make links obvious but still neat */
a:hover,
a:focus-visible {
  color: var(--highlight);
  text-decoration: underline;
}

/* Make focus visible for keyboard users */
a:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

/* Active click state – optional but nice */
a:active {
  color: #c7d2fe;
}

h1, h2, h3, h4 {
	font-weight: 350;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, sans-serif;
}

/* .wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem;
} */

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 1rem;
}

.site-header .site-nav a {
  color: var(--fg);
  margin-right: 1rem;
  text-decoration: none;
}

.site-header .site-nav a:focus,
.site-header .site-nav a:hover {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #000;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: #51bcb7;
  color: #000;
  text-decoration: none;
  border: 0;
}

.tms-form label {
  display: block;
  margin-top: 0.75rem;
}

.tms-form input,
.tms-form textarea,
.tms-form select {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #374151;
  background: #0f172a;
  color: var(--fg);
}

.tms-form .hp {
  position: absolute;
  left: -9999px;
}

.course-meta {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: flex;
  gap: 1rem;
}

/* ==== TMS – Pit Lane Neo layout & cards ==== */

:root {
  /* Pit Lane-specific accent */
  --tms-pitlane-accent: #51bcb7;
  --tms-pitlane-accent-soft: rgba(250, 204, 21, 0.15);
}

/* Shell & sections */

.tms-shell {
  display: block;
  padding: 1.5rem 1rem 2rem;
}

.tms-main {
  max-width: 100%;
  margin: 0 auto;
}

.tms-section {
  margin-bottom: 2.5rem;
}

/* Hero */

.tms-hero {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4); /* slate-400-ish */
}

.tms-hero-inner {
  max-width: 720px;
}

.tms-hero-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: #e5e7eb; /* slate-100 */
}

.tms-hero-title {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  line-height: 1.05;
  font-weight: 350;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: #f9fafb; /* near white */
}

.tms-hero-subtitle {
  font-size: 1rem;
  line-height: 1.5;
  color: #e5e7eb;
  max-width: 40rem;
  margin: 0 0 1.25rem;
}

.tms-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Primary hero button */

.tms-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--tms-pitlane-accent);
  color: #111827; /* slate-900 */
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9),
              0 12px 30px rgba(0, 0, 0, 0.7);
  transition: transform 150ms ease-out, box-shadow 150ms ease-out,
              background-color 150ms ease-out;
}

.tms-hero-primary:hover,
.tms-hero-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
  background-color: #3842a8; /* slightly brighter */
}

/* Course strip */

.tms-course-strip-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.tms-course-strip-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 350;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e5e7eb;
}

.tms-course-strip-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #cbd5f5;
}

/* Card grid */

.tms-course-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 1rem;      /* same horizontal spacing as before */
  row-gap: 1rem;       /* ~5px more vertical than 1rem */
}

@media (min-width: 720px) {
  .tms-course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}



/* Course cards – ticket vibe */

.tms-course-card {
  position: relative;
  display: flex;              /* was block */
  flex-direction: column;     /* new: vertical layout */
  text-decoration: none;
  border-radius: 0.75rem;
  overflow: hidden;
  background: radial-gradient(circle at top left,
            rgba(248, 250, 252, 0.04),
            rgba(15, 23, 42, 0.98));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
  border-top: 3px solid var(--tms-pitlane-accent);
  border-left: 1px solid rgba(148, 163, 184, 0.35);
  border-right: 1px solid rgba(148, 163, 184, 0.35);
  border-bottom: 1px solid rgba(55, 65, 81, 0.9); /* mid slate */
  transition: transform 150ms ease-out, box-shadow 150ms ease-out,
              border-top-color 150ms ease-out;
}

/* Role-specific variants for team/instructor cards */
.tms-person-card--instructor {
  border-top-color: #a3232a; /* existing accent red (tabs etc.) */
}

.tms-person-card--team {
  border-top-color: #3a8682; /* cool supporting tone for admin/support */
}


.tms-course-card-inner {
  padding: 1rem 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.tms-course-card:hover,
.tms-course-card:focus-visible {
  transform: translateY(-3px);
  border-top-color: #3842a8;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

/* Card header */

.tms-course-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.tms-course-card-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
}

.tms-course-card-title {
  font-size: 1rem;
  font-weight: 350;
  color: #f9fafb;
  margin: 0;
}

.tms-course-card-tagline {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #d1d5db;
  margin: 0;
}

/* Card meta / price / footer */

.tms-course-card-meta {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.tms-course-card-meta-item {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.9);
  color: #e5e7eb;
}

.tms-course-card-price-row {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.tms-course-card-price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
}

.tms-course-card-price {
  font-weight: 700;
  color: var(--tms-pitlane-accent);
}

.tms-course-card-footer {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(55, 65, 81, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.tms-course-card-cta-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: #e5e7eb;
}

/* Course detail preview – 2-column layout */

.tms-course-preview-inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .tms-course-preview-inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: flex-start;
  }
}

.tms-course-preview-header {
  margin-bottom: 0.75rem;
  margin-left: 2rem;
}

.tms-course-preview-title {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f9fafb;
}

.tms-course-preview-tagline {
  margin: 0;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.tms-course-preview-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e5e7eb;
}

.tms-course-preview-section {
  margin-bottom: 1rem;
}

.tms-course-preview-section-title {
  margin: 0 2rem 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
}

.tms-course-preview-section-body p {
  margin: 0 2rem 0.4rem;
}

/* Sidebar spec card */

.tms-course-preview-sidebar-inner {
  border-radius: 0.9rem;
  padding: 1rem 1rem 1.1rem;
  background: radial-gradient(circle at top,
              rgba(248, 250, 252, 0.04),
              rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.9);
}

.tms-course-preview-meta {
  margin: 0 0 0.75rem;
}

.tms-course-preview-meta-item {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.15rem 0;
  border-bottom: 1px dashed rgba(55, 65, 81, 0.8);
}

.tms-course-preview-meta-item:last-child {
  border-bottom: none;
}

.tms-course-preview-meta-item dt {
  font-weight: 500;
  color: #9ca3af;
}

.tms-course-preview-meta-item dd {
  margin: 0;
  font-weight: 600;
  color: #f9fafb;
}

/* Sidebar actions */

.tms-course-preview-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tms-course-preview-primary,
.tms-course-preview-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.tms-course-preview-primary {
  background: var(--tms-pitlane-accent);
  color: #111827;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9),
              0 10px 26px rgba(0, 0, 0, 0.8);
}

.tms-course-preview-secondary {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

/* Booking CTA strip */

.tms-booking-cta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(55, 65, 81, 0.9);
}

.tms-booking-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .tms-booking-cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.tms-booking-cta-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 350;
  color: #f9fafb;
}

.tms-booking-cta-text {
  margin: 0;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.tms-booking-cta-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.tms-booking-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: #0f172a;
  border: 1px solid var(--tms-pitlane-accent);
  color: #f9fafb;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.9);
}
.site-header .site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Logo block */

.site-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  margin-right: 1.5rem;
}

.site-header .site-nav {
  margin-left: auto;
  display: flex;
  gap: 1rem;
}

/* 1) Keep the picker tucked to the right of the dd */
.tms-course-preview-meta-item .tms-ards-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;   /* NEW: push selects to the right edge */
}

/* 2) Don’t let the selects hog all the horizontal space */
.tms-ards-picker select {
  flex: 0 0 auto;              /* CHANGED: was 1 1 0; keeps them compact */
  min-width: 8rem;
  max-width: 100%;
}

/* 3) Error message still lives on its own line if it appears */
.tms-ards-picker-error {
  flex-basis: 100%;
  margin-top: 0.25rem;
}

/* 4) Prevent "Available dates" from wrapping between the words */
.tms-course-preview-meta-item dt {
  white-space: nowrap;
}

/* Non-ARDS: keep the preferred date control compact + right-aligned */
.tms-course-preview-meta-item .tms-course-date-wrapper {
  display: flex;
  justify-content: flex-end;
}

.tms-course-preview-meta-item .tms-course-date-input {
  width: auto;
  min-width: 11.5rem;  /* tweak to taste */
  max-width: 100%;
}

@media (max-width: 639px) {
  .tms-course-preview-meta-item .tms-course-date-input {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 639px) {
  .tms-course-preview-meta-item .tms-course-date-input {
    width: 100%;
    min-width: 0;
  }
}


/* 2025-11-30 content and clean-up phase */


.tms-circuits-list {
  display: grid;
  gap: 1.5rem;
}

.tms-circuit-card {
  position: relative;
  overflow: hidden;
}

/* Decorative background layer */
.tms-circuit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--tms-circuit-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0;
  transition: opacity 0.2s ease-out;
  pointer-events: none;
}

/* Ensure text is above the bg */
.tms-circuit-card > * {
  position: relative;
}

/* On hover/focus, show the bg if present */
.tms-circuit-card--has-bg:hover::before,
.tms-circuit-card--has-bg:focus-within::before {
  opacity: 0.10;           /* tune for taste */
}


/* 2025-12-01 */
/* ============================
   Course tabs – classic tab strip
   ============================ */

.tms-course-tabs {
  margin-top: 2rem;
}

/* Card-style container */
.tms-course-tabs-inner {
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.98)
  );
  overflow: hidden;
}

/* ----------------------------
   Tab strip (top)
   ---------------------------- */

.tms-course-tabs-nav {
  padding: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(
    circle at top left,
    rgba(148, 163, 184, 0.12),
    transparent 55%
  );
}

.tms-course-tabs-list {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tms-course-tabs-item {
  flex: 1 1 auto;
  min-width: 0;
}

/* The clickable tab */
.tms-course-tab-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.9rem;
  line-height: 1.2;
  color: #e5e7eb;
  opacity: 0.75;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

/* Remove divider on the last tab */
.tms-course-tabs-item:last-child .tms-course-tab-link {
  border-right: 0;
}

/* Hover / focus */
.tms-course-tab-link:hover,
.tms-course-tab-link:focus-visible {
  opacity: 1;
  outline: none;
  background: rgba(15, 23, 42, 0.9);
}

/* Active tab */
.tms-course-tab-link.is-active {
  opacity: 1;
  background: rgba(15, 23, 42, 1);
  box-shadow: inset 0 -2px 0 0 rgba(148, 163, 184, 0.9);
}

/* Icon container (we’ll drop real SVGs in later) */
.tms-course-tab-icon {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.3rem;
  border: 1px solid currentColor;
  flex-shrink: 0;
}

.tms-course-tab-label {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Slightly friendlier on small screens: allow wrapping */
@media (max-width: 640px) {
  .tms-course-tabs-item {
    flex: 1 1 50%;
  }
}

/* Give the logo a real visible size and prevent CLS */

.tms-shell {
  padding: 0; /* default */
}
.wrap.card .tms-shell {
  padding: 1.5rem 1rem 2rem;
}
/* Unify global layout width on the wider value (courses.php) */


.tms-main {
  max-width: 100%;
  margin: 0 auto;
}

/* Logo – single authoritative rule */
.site-logo-helmet {
  display: block;
  width: 220px;   /* pick your final width */
  height: auto;   /* keeps SVG aspect ratio */
}
html {
  overflow-y: scroll;
}

/* ============================
   Booking form – layout & styling
   ============================ */

/* Card shell */
.booking-card {
  margin-top: 1.5rem;
  border-radius: 0.9rem;
  padding: 1.25rem 1.5rem 1.5rem;
  background: radial-gradient(circle at top,
    rgba(248, 250, 252, 0.04),
    rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.9);
}

.booking-card .card-header {
  margin-bottom: 1rem;
}

.booking-card .card-header h1 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  font-weight: 350;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f9fafb;
}

.booking-lead {
  margin: 0;
  font-size: 0.95rem;
  color: #e5e7eb;
}

/* Form container */
.booking-form {
  margin-top: 0.75rem;
}

/* Respect [hidden] – important for timeslot on non-ARDS */
.booking-form .form-field[hidden] {
  display: none;
}

/* Stack fields with vertical rhythm */
.booking-form .form-grid {
  display: grid;
  row-gap: 0.9rem;
}

/* Core 2-column label/input layout */
.booking-form .form-field {
  display: grid;
  grid-template-columns: minmax(8rem, 0.4fr) minmax(0, 1fr);
  column-gap: 0.85rem;
  align-items: center;
}

/* Labels: right-aligned in left column */
.booking-form .form-field > label {
  grid-column: 1;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: right;
  color: #e5e7eb;
}

/* Inputs/selects/textarea: fill right column */
.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form input[type="date"],
.booking-form input[type="number"],
.booking-form select,
.booking-form textarea {
  grid-column: 2;
  width: 100%;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #374151;
  background: #0f172a;
  color: var(--fg);
  font-size: 0.95rem;
  line-height: 1.4;
  outline: none;
}
/* Booking: force inputs/textarea to respect the card’s inner width */
.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form input[type="number"],
.booking-form textarea {
  box-sizing: border-box;
  max-width: 100%;
  display: block;
  margin: 0;
}

/* Booking: date needs the sizing bits, but NOT display:block (prevents duplicate date UI on ARDS) */
.booking-form input[type="date"] {
  box-sizing: border-box;
  max-width: 100%;
  margin: 0;
  min-width: 0;
  justify-self: stretch;
}

/* Safety net: never let hidden helper inputs appear */
.booking-form [hidden],
.booking-form input[type="hidden"] {
  display: none !important;
}


.booking-form #qty {
  width: 6ch;
  justify-self: start;
  text-align: center;
}

/* Booking: keep dark theme when browser autofills (Chrome/Edge/Safari) */
.booking-form input:-webkit-autofill,
.booking-form input:-webkit-autofill:hover,
.booking-form input:-webkit-autofill:focus,
.booking-form textarea:-webkit-autofill,
.booking-form textarea:-webkit-autofill:hover,
.booking-form textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--fg);
  caret-color: var(--fg);
  -webkit-box-shadow: 0 0 0 1000px #0f172a inset;
  box-shadow: 0 0 0 1000px #0f172a inset;
  border: 1px solid #374151;
}

/* Optional: hint to the browser that controls are dark-themed */
.booking-form input,
.booking-form textarea,
.booking-form select {
  color-scheme: dark;
}

/* Help / note text – sit under the input, same column */
.booking-form .field-help,
.booking-form .field-note {
  grid-column: 2;
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Notes textarea – align to top, give a bit more space */
.booking-form .form-field-notes {
  align-items: flex-start;
}

.booking-form .form-field-notes textarea {
  min-height: 5rem;
}

/* Actions row */
.booking-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}

.booking-actions #booking-submit {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: var(--tms-pitlane-accent);
  color: #111827;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.9);
}

.booking-actions #booking-submit:hover,
.booking-actions #booking-submit:focus-visible {
  background: #76c198;
}

.booking-status {
  font-size: 0.85rem;
  color: #e5e7eb;
}

/* Small screens: labels above inputs (single column) */
@media (max-width: 639px) {
  .booking-form .form-field {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-form .form-field > label {
    text-align: left;
    margin-bottom: 0.25rem;
  }

  .booking-form input[type="text"],
  .booking-form input[type="email"],
  .booking-form input[type="tel"],
  .booking-form input[type="date"],
  .booking-form select,
  .booking-form textarea,
  .booking-form .field-help,
  .booking-form .field-note {
    grid-column: 1;
  }
}

.page-contact {
  margin-top: 1.5rem;
}

.contact-layout {
  display: grid;
  gap: 1.5rem;
}

/* Two columns on wider screens */
@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    align-items: flex-start;
  }
}
.contact-card {
  border-radius: 0.9rem;
  padding: 1.25rem 1.5rem 1.5rem;
  background: radial-gradient(circle at top,
    rgba(248, 250, 252, 0.04),
    rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.9);
}

.contact-card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

/* Contact layout */
.contact-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    align-items: flex-start;
  }
}

/* Contact cards (optional, to match booking card look) */
.contact-card {
  border-radius: 0.9rem;
  padding: 1.25rem 1.5rem 1.5rem;
  background: radial-gradient(circle at top,
    rgba(248, 250, 252, 0.04),
    rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.9);
}


/* Contact form honeypot – visible to bots, invisible to humans */
.contact-form .hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: flex-start;
  }
}

/* Generic header strip style */
.page-header.striped {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.5rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background:
    linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.85),
      rgba(15, 23, 42, 0.95)
    ),
    var(--tms-strip-img) center / cover no-repeat;
}

.page-course .page-header.striped {
  --tms-strip-img: url("/public/images/strips/tms-course-banner.webp");
}
.page-instructor .page-header.striped {
  --tms-strip-img: url("/public/images/strips/tms-instructor-banner.webp");
}

.page-contact .page-header.striped {
  --tms-strip-img: url("/public/images/strips/tms-action-banner.webp");
}

/* If you want a specific booking header */
.page-booking .page-header.striped {
  --tms-strip-img: url("/public/images/strips/tms-booking-banner.webp");
}

.page-header.striped {
  margin-bottom: 1.75rem;   /* adjust to taste: 1.5–2.5rem */
}

.page-header.striped::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(148, 163, 184, 0.3);
  opacity: 0.5;
}

.tms-course-tab-link {
  color: #e5e7eb;
}

.tms-course-tab-link.is-active {
  color: #f97316; /* or whatever accent you choose */
}

.tms-course-tab-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}
.tms-course-tabs.js-tabs-enhanced .tms-course-tab-panel {
  display: none;
}

.tms-course-tabs.js-tabs-enhanced .tms-course-tab-panel.is-active {
  display: block;
}
.tms-course-tabs-panels {
  padding: 1rem 1.75rem 1.5rem;  /* top | left/right | bottom */
}
.tms-course-tab-panel {
    padding-left: var(--tms-panel-padding, 1.25rem);
    padding-right: var(--tms-panel-padding, 1.25rem);
}
/* Smaller, tighter headings inside tab panels */
.tms-course-tab-body .tms-course-preview-subheading {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 600;
}

/* Keep lists snug under those headings */
.tms-course-tab-body .tms-list--compact {
  margin-top: 0.1rem;
}
/* Ensure instructor About text sits on the same text column as the header/footer */
.page-instructor .tms-instructor-bio {
  margin-top: 0.75rem;       /* a little closer to the header */
}

/* Keep the body text in a comfortable width for reading */
.page-instructor .tms-instructor-bio .tms-course-preview-section-body {
  max-width: 62ch;           /* optional, makes it read like an article */
}

/* Footer layout */
.site-footer .footer-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

/* Mobile stack */
@media (max-width: 900px){
  .site-footer .footer-grid{
    grid-template-columns: 1fr;
  }
}
.site-footer .footer-bottom{
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer .footer-bottom-row{
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.site-footer .footer-social{
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.site-footer .footer-social-link{
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
}

.site-footer .footer-social-link img{
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}
.site-footer .footer-credit-row{
  display: flex;
  justify-content: flex-end;
}

.site-footer .footer-credit{
  font-size: 0.9rem;
  opacity: 0.85;
}
.site-footer .footer-credit-row{
  display: flex;
  justify-content: flex-end; /* or flex-start if you prefer */
}


/* Policy pages */
.tms-policy .policy-body{
  line-height: 1.65;
}

.tms-policy .policy-body h2{
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.tms-policy .policy-body h3{
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.tms-policy .policy-body p{
  margin: 0.75rem 0;
}

.tms-policy .policy-body ul,
.tms-policy .policy-body ol{
  margin: 0.75rem 0 0.75rem 1.25rem;
}

.tms-policy .policy-body li{
  margin: 0.25rem 0;
}

.tms-policy .policy-body a{
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.tms-policy .policy-body hr{
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 1.25rem 0;
}

.tms-policy .policy-body blockquote{
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(255,255,255,0.2);
}

.tms-instructor-photo {
  width: 100%;
  max-width: 300px;   /* adjust to taste */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =========================================
   Card shadow unification override
   Append at end of style.css
   ========================================= */

:root {
  --tms-card-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 10px 26px rgba(0, 0, 0, 0.9);
}

/* Base card shell
   This also catches header/footer where .card is already used */
.card,
.booking-card,
.contact-card,
.tms-course-preview-sidebar-inner,
.tms-course-tabs-inner,
.page-header.striped {
  box-shadow: var(--tms-card-shadow);
}

/* Course cards keep their slightly stronger, more "raised" behaviour */
.tms-course-card {
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 10px 30px rgba(15, 23, 42, 0.9);
}

.tms-course-card:hover,
.tms-course-card:focus-visible {
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 16px 40px rgba(15, 23, 42, 0.9);
}

/* =========================================
   Global shell consolidation
   Header / footer / shared card rhythm
   ========================================= */

:root {
  --tms-card-border: 1px solid rgba(148, 163, 184, 0.35);
  --tms-card-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 10px 26px rgba(0, 0, 0, 0.9);
}

/* Single authoritative page container */
.wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 1rem;
}

/* Shared card shell */
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 1rem;
  border: var(--tms-card-border);
  box-shadow: var(--tms-card-shadow);
}

/* Keep card-like non-.card shells visually aligned */
.booking-card,
.contact-card,
.tms-course-tabs-inner,
.page-header.striped {
  border: var(--tms-card-border);
  box-shadow: var(--tms-card-shadow);
}

/* Course cards remain the slightly more elevated variant */
.tms-course-card {
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 10px 30px rgba(15, 23, 42, 0.9);
}

.tms-course-card:hover,
.tms-course-card:focus-visible {
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 16px 40px rgba(15, 23, 42, 0.9);
}

/* Header shell */
.site-header .wrap {
  min-height: 120px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.wrap.flex-row {
  display: flex;
  align-items: center;
}

.site-header .site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Footer shell rhythm */
.site-footer .wrap > .card + .card {
  margin-top: 1rem;
}

.site-footer .footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer .footer-credit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.stack-lg > * + * {
  margin-top: 1.5rem;
}

.stack-md > * + * {
  margin-top: 1rem;
}

