/* ===== 00-fonts ===== */
/* Best You Training V2 - one stylesheet. Built from: fonts, Best You tokens, design-system components, site components, theme, WooCommerce, LearnDash and Amelia rules. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/montserrat-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2-variations"), url("fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }

/* ===== tokens ===== */
/* Best You design tokens as CSS variables. Values are copied from the Best You design system tokens.json (light theme, with the On ink theme below).
   Linked before the system's bundle.css, which expects these variables. */
:root {
  --font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --surface: #ffffff;
  --surface-soft: #efeae2;
  --surface-cream: #f7f4ee;
  --ink: #161513;
  --ink-muted: #5f5a52;
  --ink-raised: #26241f;
  --line: #e3dfd7;
  --line-strong: #161513;
  --gold: #ad9a51;
  --focus: #161513;
  --brand-ink: #161513;
  --brand-cream: #f7f4ee;
  --brand-plaster: #efeae2;
  --brand-white: #ffffff;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --gutter: 60px;
  --gutter-mobile: 24px;
  --container: 1320px;

  --radius-0: 0;
  --hairline: 1px;
  --rule-gold: 1px;
  --border-control: 1px;
  --focus-ring: 2px;
  --header-height: 72px;
  --utility-height: 32px;
  --feature-image: 300px;
}

[data-theme="ink"] {
  --surface: #161513;
  --surface-soft: #26241f;
  --ink: #f7f4ee;
  --ink-muted: #c9c5bd;
  --ink-raised: #ffffff;
  --line: #3d3a34;
  --line-strong: #f7f4ee;
  --focus: #f7f4ee;
}

/* ===== design-system components ===== */
/* Best You - component stylesheet. Every colour, size and gap is a token from tokens.css. */

.by-root, .by-root * { box-sizing: border-box; }
.by-root {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.by-root a { color: inherit; text-decoration: none; }
.by-root :focus-visible { outline: var(--focus-ring, 2px) solid var(--focus); outline-offset: 2px; }
.by-root svg { display: block; }

/* ---- Type styles (mirror tokens.json type.groups) ---- */
.by-display { font-size: 56px; line-height: 64px; font-weight: 300; letter-spacing: 0.12em; text-transform: uppercase; margin: 0; }
.by-h1 { font-size: 38px; line-height: 46px; font-weight: 300; letter-spacing: -0.01em; margin: 0; }
.by-h2 { font-size: 30px; line-height: 38px; font-weight: 300; letter-spacing: 0; margin: 0; }
.by-statement { font-size: 44px; line-height: 52px; font-weight: 300; letter-spacing: -0.01em; margin: 0; }
.by-stat { font-size: 44px; line-height: 48px; font-weight: 300; letter-spacing: -0.01em; }
.by-wordmark { font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.by-door { font-size: 20px; line-height: 24px; font-weight: 300; letter-spacing: 0.22em; text-transform: uppercase; }
.by-lead { font-size: 15px; line-height: 24px; font-weight: 400; margin: 0; }
.by-body { font-size: 14px; line-height: 22px; font-weight: 400; margin: 0; }
.by-small { font-size: 13px; line-height: 20px; font-weight: 400; margin: 0; }
.by-title-sm { font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.by-label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.by-nav { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.by-button-text { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.by-eyebrow-text { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }
.by-numeral { font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-muted); }
.by-caption { font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin: 0; }
.by-muted { color: var(--ink-muted); }
.by-compact .by-display { font-size: 38px; line-height: 46px; }
.by-compact .by-h1, .by-compact .by-statement { font-size: 30px; line-height: 38px; }
.by-compact .by-h2 { font-size: 22px; line-height: 30px; }

/* ---- Layout ---- */
.by-container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.by-compact .by-container { padding-left: var(--gutter-mobile); padding-right: var(--gutter-mobile); }
.by-section { padding-top: var(--space-9); padding-bottom: var(--space-9); background: var(--surface); color: var(--ink); }
.by-compact .by-section { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.by-rule { height: 0; border: 0; border-top: var(--hairline) solid var(--line); margin: 0; }

/* ---- Eyebrow ---- */
.by-eyebrow { display: flex; align-items: center; gap: var(--space-3); color: var(--ink); }
.by-eyebrow::before { content: ""; display: block; width: 28px; height: var(--rule-gold); background: var(--gold); flex: none; }

/* ---- Section heading ---- */
.by-section-heading { display: flex; flex-direction: column; gap: var(--space-2); }
.by-section-heading .by-h1 { max-width: 500px; margin-top: var(--space-2); }

/* ---- Button ---- */
.by-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6); min-height: 44px;
  border: var(--border-control) solid transparent; border-radius: var(--radius-0);
  font-family: inherit; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.by-btn.by-btn-solid { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.by-btn.by-btn-solid:hover { background: var(--ink-raised); border-color: var(--ink-raised); }
[data-theme="ink"] .by-btn.by-btn-solid { background: var(--surface-cream); color: var(--brand-ink); border-color: var(--surface-cream); }
[data-theme="ink"] .by-btn.by-btn-solid:hover { background: var(--brand-white); border-color: var(--brand-white); }
.by-btn.by-btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.by-btn.by-btn-outline:hover { background: var(--ink); color: var(--surface); }
.by-btn-block { display: flex; width: 100%; }

/* ---- Text link ---- */
.by-textlink { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); cursor: pointer; }
.by-textlink:hover .by-textlink-label { text-decoration: underline; text-underline-offset: 4px; }

/* ---- Icon ---- */
.by-icon { flex: none; }

/* ---- Logo ---- */
.by-logo { display: inline-flex; align-items: center; color: var(--ink); }
.by-logo-mark { flex: none; }
.by-logo-word { margin-left: 1.2em; white-space: nowrap; }
.by-doorlockup { display: inline-flex; align-items: baseline; white-space: nowrap; color: var(--ink); }
.by-doorlockup .by-door { margin-left: 0.9em; }

/* ---- Utility strip ---- */
.by-utility { background: var(--surface-soft); color: var(--ink); min-height: var(--utility-height); display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-2) var(--gutter); }
.by-utility a { text-decoration: underline; text-underline-offset: 3px; margin-left: var(--space-2); }
.by-compact .by-utility { padding-left: var(--gutter-mobile); padding-right: var(--gutter-mobile); }

/* ---- Header ---- */
.by-header { background: var(--surface); color: var(--ink); border-bottom: var(--hairline) solid var(--line); }
.by-header-inner { height: var(--header-height); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-6); padding: 0 var(--gutter); }
.by-header-nav { display: flex; gap: var(--space-5); align-items: center; }
.by-header-nav a { white-space: nowrap; }
.by-header-right { display: flex; gap: var(--space-5); align-items: center; justify-content: flex-end; }
.by-header-right .by-with-icon { display: inline-flex; align-items: center; gap: var(--space-2); }
.by-header-icons { display: flex; gap: var(--space-4); margin-left: var(--space-3); }
.by-iconbtn { background: none; border: 0; padding: 4px; color: inherit; cursor: pointer; display: inline-flex; }
.by-compact .by-header-inner { padding: 0 var(--gutter-mobile); grid-template-columns: auto 1fr auto; height: 56px; }
.by-hamburger { width: 20px; height: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.by-hamburger span { display: block; height: 1.5px; background: currentColor; }

/* ---- Hero ---- */
.by-hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--space-10) var(--gutter) var(--space-9); min-height: 560px; }
.by-hero .by-lead { max-width: 480px; margin-top: var(--space-5); }
.by-hero .by-btn { margin-top: var(--space-7); }
.by-hero-note { position: absolute; left: var(--gutter); bottom: var(--space-6); max-width: 380px; text-align: left; }
.by-hero-cue { position: absolute; left: 50%; bottom: var(--space-6); transform: translateX(-50%); color: var(--ink); }
.by-compact .by-hero { padding: var(--space-9) var(--gutter-mobile) var(--space-8); min-height: 460px; }
.by-compact .by-hero-note { position: static; margin-top: var(--space-8); text-align: center; }
.by-compact .by-hero-cue { display: none; }

/* ---- Service grid ---- */
.by-services { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-6); }
.by-service { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-4); border-top: var(--hairline) solid var(--line); }
.by-service.is-gold { border-top-color: var(--gold); }
.by-service .by-icon { margin-top: var(--space-1); }
.by-service .by-label { margin-top: var(--space-1); }
.by-service .by-body { color: var(--ink-muted); flex: 1; }
.by-service .by-textlink { margin-top: var(--space-2); }

/* ---- Service list (mobile) ---- */
.by-servicelist { display: flex; flex-direction: column; border-bottom: var(--hairline) solid var(--line); }
.by-servicelist-row { display: grid; grid-template-columns: 40px 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-4) 0; border-top: var(--hairline) solid var(--line); text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; color: inherit; font-family: inherit; cursor: pointer; }
.by-servicelist-row:last-child { border-bottom: 0; }
.by-servicelist-row .by-body { color: var(--ink-muted); margin-top: var(--space-1); }
.by-servicelist-row.is-gold { border-top-color: var(--gold); }

/* ---- ID panel ---- */
.by-idpanel { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "left rows" "cta rows"; gap: var(--space-5) var(--space-9); align-items: start; }
.by-idpanel-left { grid-area: left; }
.by-idpanel-rows { grid-area: rows; }
.by-idpanel-cta { grid-area: cta; justify-self: start; }
.by-idpanel-left { display: flex; flex-direction: column; gap: var(--space-5); }
.by-idpanel-left .by-statement { margin-top: var(--space-2); }
.by-idpanel-left .by-body { color: var(--ink-muted); max-width: 400px; }
.by-idpanel-rows { display: flex; flex-direction: column; }
.by-idpanel-row { padding: var(--space-5) 0; border-bottom: var(--hairline) solid var(--line); }
.by-idpanel-row:first-child { padding-top: 0; }
.by-idpanel-row:last-child { border-bottom: 0; }
.by-idpanel-row .by-body { color: var(--ink-muted); margin-top: var(--space-2); }
.by-compact .by-idpanel { grid-template-columns: 1fr; grid-template-areas: "left" "rows" "cta"; gap: var(--space-6); }
.by-compact .by-idpanel-cta { margin-top: var(--space-2); }

/* ---- Stat band ---- */
.by-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: var(--space-7) 0; }
.by-stat-cell { text-align: center; padding: 0 var(--space-4); border-left: var(--hairline) solid var(--line); display: flex; flex-direction: column; gap: var(--space-2); }
.by-stat-cell:first-child { border-left: 0; }
.by-compact .by-stats { grid-template-columns: 1fr 1fr; gap: var(--space-6) 0; padding: var(--space-6) 0; }
.by-compact .by-stat-cell { text-align: left; border-left: 0; padding: 0; }

/* ---- Image placeholder ---- */
.by-image { position: relative; background: var(--surface-soft); width: 100%; height: var(--feature-image); overflow: hidden; }
.by-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.by-image .by-caption { position: absolute; left: var(--space-4); bottom: var(--space-4); right: var(--space-4); }
.by-compact .by-image { height: 160px; }

/* ---- Feature card ---- */
.by-feature { display: flex; flex-direction: column; gap: var(--space-3); }
.by-feature .by-image { margin-bottom: var(--space-3); }
.by-feature .by-body { color: var(--ink-muted); max-width: 440px; }
.by-feature .by-textlink { margin-top: var(--space-2); }
.by-feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-9); }
.by-compact .by-feature-pair { grid-template-columns: 1fr; gap: var(--space-7); }

/* ---- Footer ---- */
.by-footer { padding: var(--space-8) var(--gutter) var(--space-6); }
.by-footer-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-6); margin-top: var(--space-7); }
.by-footer-col { display: flex; flex-direction: column; gap: var(--space-2); }
.by-footer-col .by-label { margin-bottom: var(--space-2); }
.by-footer-col a { color: var(--ink-muted); }
.by-footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.by-footer-legal { display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); margin-top: var(--space-8); padding-top: var(--space-5); border-top: var(--hairline) solid var(--line); color: var(--ink-muted); }
.by-footer-legal nav { display: flex; gap: var(--space-5); }
.by-compact .by-footer { padding: var(--space-7) var(--gutter-mobile) var(--space-6); }
.by-compact .by-footer-cols { grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-5); }
.by-compact .by-footer-legal { flex-direction: column; align-items: flex-start; }

/* ---- Site structure ---- */
.by-site { display: flex; flex-direction: column; align-items: center; gap: 0; }
.by-site-hub { width: 100%; border: var(--border-control) solid var(--line-strong); padding: var(--space-5) var(--space-6) var(--space-6); }
.by-site-hub-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-5); flex-wrap: wrap; }
.by-site-hub-head .by-small { color: var(--ink-muted); }
.by-site-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-5); }
.by-site-box { padding: var(--space-5); }
.by-site-box.is-ink { background: var(--brand-ink); color: var(--brand-cream); }
.by-site-box.is-ink .by-body { color: var(--brand-cream); opacity: 0.85; margin-top: var(--space-2); }
.by-site-box.is-own { border: var(--border-control) solid var(--line-strong); }
.by-site-box.is-own .by-body { color: var(--ink-muted); margin-top: var(--space-2); }
.by-site-box-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.by-site-box-head .by-small { color: var(--ink-muted); }
.by-site-box .by-domain { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; margin-top: var(--space-2); }
.by-site-stem { width: var(--hairline); height: var(--space-6); background: var(--line-strong); }
.by-site-bridge { border: var(--border-control) solid var(--line-strong); padding: var(--space-3) var(--space-5); text-align: center; }
.by-site-legend { display: flex; gap: var(--space-5); align-items: center; }
.by-site-legend span { display: inline-flex; align-items: center; gap: var(--space-2); }
.by-site-legend i { width: 12px; height: 12px; display: inline-block; border: var(--border-control) solid var(--line-strong); }
.by-site-legend i.is-ink { background: var(--brand-ink); border-color: var(--brand-ink); }
.by-site-foot { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-7); padding-top: var(--space-5); border-top: var(--hairline) solid var(--line); color: var(--ink-muted); }
.by-chevron-right { transform: rotate(-90deg); }

/* ---- Header: mega menu ---- */
.by-header { position: relative; z-index: 20; }
.by-header-nav .by-nav-item { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-3) 0; border-bottom: var(--hairline) solid transparent; }
.by-header-nav .by-nav-item.is-active { border-bottom-color: var(--ink); }
.by-nav-chev { opacity: 0.7; }
.by-signin { white-space: nowrap; }
.by-mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: var(--hairline) solid var(--line); box-shadow: none; }
.by-mega-inner { max-width: var(--container); margin: 0 auto; padding: var(--space-7) var(--gutter) var(--space-8); display: grid; grid-template-columns: repeat(var(--mega-cols, 4), minmax(0, 1fr)) 1.4fr; gap: var(--space-7); }
.by-mega-col { display: flex; flex-direction: column; gap: var(--space-2); }
.by-mega-col .by-label { margin-bottom: var(--space-2); }
.by-mega-col a { color: var(--ink-muted); }
.by-mega-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.by-mega-feature { border-left: var(--hairline) solid var(--line); padding-left: var(--space-7); display: flex; flex-direction: column; gap: var(--space-3); }
.by-mega-feature .by-h2 { margin: 0; max-width: 360px; }
.by-mobile-menu { border-top: var(--hairline) solid var(--line); padding: var(--space-4) var(--gutter-mobile) var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); }
.by-mobile-group { display: flex; flex-direction: column; gap: var(--space-3); }
.by-mobile-head { padding: var(--space-2) 0; border-bottom: var(--hairline) solid var(--line); }
.by-mobile-col { display: grid; grid-template-columns: 110px 1fr; gap: var(--space-1) var(--space-4); }
.by-mobile-col > span { grid-row: 1 / span 6; }
.by-mobile-col a { color: var(--ink-muted); }
.by-hamburger.is-open span:nth-child(2) { opacity: 0; }
.by-hamburger.is-open span:first-child { transform: translateY(6.25px) rotate(45deg); }
.by-hamburger.is-open span:last-child { transform: translateY(-6.25px) rotate(-45deg); }
.by-hamburger span { transition: transform 160ms ease, opacity 160ms ease; }

/* ===== site components ===== */
/* Best You Training - site components, built only from Best You design system tokens.
   Linked after the system's bundle.css. Square corners, hairlines, no shadows, no status colours, gold only as a thread. */

[data-theme="ink"] { background: var(--surface); color: var(--ink); }
.bt-page { min-height: 100%; }
.bt-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bt-muted { color: var(--ink-muted); }
.bt-stack { display: flex; flex-direction: column; }
.bt-row { display: flex; align-items: center; flex-wrap: wrap; }
.bt-between { justify-content: space-between; }
.bt-gap-2 { gap: var(--space-2); } .bt-gap-3 { gap: var(--space-3); } .bt-gap-4 { gap: var(--space-4); } .bt-gap-5 { gap: var(--space-5); } .bt-gap-6 { gap: var(--space-6); } .bt-gap-7 { gap: var(--space-7); }
.bt-section-soft { background: var(--surface-soft); color: var(--ink); }
.bt-lead-narrow { max-width: 560px; }
.bt-note { font: 400 12px/16px var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin: 0; }
.bt-h3 { font: 300 22px/30px var(--font-sans); letter-spacing: 0; margin: 0; }
.bt-h4 { font: 700 12px/16px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; margin: 0; }
.bt-big { font: 300 44px/48px var(--font-sans); letter-spacing: -0.01em; margin: 0; }
.bt-mid { font: 300 26px/32px var(--font-sans); letter-spacing: -0.01em; margin: 0; }

/* Chips (filters, toggles) */
.bt-chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; background: transparent; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 0; font: 500 12px/16px var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; text-align: left; }
.bt-chip:hover { background: var(--surface-soft); }
.bt-chip[aria-pressed="true"], .bt-chip[aria-current="true"] { background: var(--ink); color: var(--surface); }
.bt-chip .bt-count { color: inherit; opacity: 0.75; letter-spacing: 0.1em; }

.bt-chip.is-block { width: 100%; justify-content: space-between; }
.bt-cards.is-dense { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7) var(--space-5); }
.bt-cards.is-dense .bt-card h3 { font-size: 18px; line-height: 26px; }
.bt-linkbtn { background: none; border: 0; padding: 0; min-height: 44px; font: 600 12px/16px var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; text-align: left; }

/* Inputs */
.bt-label { display: block; font: 700 12px/16px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 8px; }
.bt-input, .bt-select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--surface); color: var(--ink); font: 400 14px/22px var(--font-sans); box-sizing: border-box; }
.bt-check { display: flex; gap: 12px; align-items: flex-start; font: 400 14px/22px var(--font-sans); cursor: pointer; }
.bt-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.bt-help { font: 400 13px/20px var(--font-sans); color: var(--ink-muted); margin: 4px 0 0; }

/* Tags: status is words and weight, never colour alone */
.bt-tag { align-self: flex-start; display: inline-block; padding: 2px 8px; border: 1px solid var(--ink); font: 600 12px/16px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.bt-tag.is-solid { background: var(--ink); color: var(--surface); }
.bt-tag.is-plain { border-color: var(--line); color: var(--ink-muted); }

/* Course card */
.bt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7) var(--space-6); }
.bt-cards.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.bt-card { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.bt-card .by-image { height: 180px; }
.bt-card h3 { font: 300 22px/30px var(--font-sans); margin: 0; }
.bt-card .bt-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-muted); font: 400 13px/20px var(--font-sans); }
.bt-card .bt-prices { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: baseline; }
.bt-card .bt-prices strong { font: 300 26px/32px var(--font-sans); letter-spacing: -0.01em; }
.bt-card .bt-prices small { display: block; font: 400 12px/16px var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.bt-card .bt-next { font: 400 13px/20px var(--font-sans); }
.bt-card .bt-grow { flex: 1; }

/* Finder layout */
.bt-finder { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.bt-filters { display: flex; flex-direction: column; gap: var(--space-6); }
.bt-filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bt-filters legend { padding: 0; margin-bottom: 12px; font: 700 12px/16px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; }
.bt-results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-5); flex-wrap: wrap; padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); margin-bottom: var(--space-6); }

/* Price box */
.bt-pricebox { border: 1px solid var(--line-strong); padding: 24px; display: flex; flex-direction: column; gap: 16px; background: var(--surface); }
.bt-pricebox hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.bt-kv { display: flex; justify-content: space-between; gap: 16px; font: 400 14px/22px var(--font-sans); }
.bt-kv span:last-child { font-weight: 600; text-align: right; }
.bt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bt-course { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-9); align-items: start; }
.bt-sticky { position: sticky; top: 24px; }

/* Lists and rows with hairlines */
.bt-list { list-style: none; margin: 0; padding: 0; }
.bt-list li { padding: 12px 0; border-top: 1px solid var(--line); font: 400 14px/22px var(--font-sans); }
.bt-list li:last-child { border-bottom: 1px solid var(--line); }
.bt-datarow { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; }
.bt-datarow:last-child { border-bottom: 1px solid var(--line); }
.bt-datarow input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }

/* FAQ */
.bt-faq details { border-top: 1px solid var(--line); }
.bt-faq details:last-child { border-bottom: 1px solid var(--line); }
.bt-faq summary { cursor: pointer; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 24px; font: 600 12px/18px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; }
.bt-faq summary::-webkit-details-marker { display: none; }
.bt-faq summary::after { content: "+"; font-weight: 400; font-size: 18px; line-height: 18px; }
.bt-faq details[open] summary::after { content: "-"; }
.bt-faq details p { margin: 0 0 20px; max-width: 680px; color: var(--ink-muted); font: 400 14px/22px var(--font-sans); }

/* Bento (used once, on the home page) */
.bt-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.bt-bento > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.bt-bento .is-wide { grid-column: span 2; }
.bt-bento .is-tall { grid-row: span 2; }
.bt-bento .bt-bignum { font: 300 44px/48px var(--font-sans); letter-spacing: -0.01em; margin: 0; }

/* Two doors */
.bt-doors { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.bt-door { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }

/* Placeholders (reviews, photos): visible, never filled with made-up content */
.bt-placeholder { border: 1px dashed var(--line-strong); padding: 32px; display: flex; flex-direction: column; gap: 12px; }

/* Tables (staff) */
.bt-table { width: 100%; border-collapse: collapse; }
.bt-table th { text-align: left; font: 700 12px/16px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line-strong); }
.bt-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); font: 400 13px/20px var(--font-sans); vertical-align: top; }
.bt-table td.num, .bt-table th.num { text-align: right; padding-right: 0; }
.bt-class { border-top: 1px solid var(--line-strong); padding: 16px 0 24px; display: flex; flex-direction: column; gap: 12px; }
.bt-progress { height: 4px; background: var(--line); }
.bt-progress > span { display: block; height: 100%; background: var(--ink); }

/* Account */
.bt-account { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.bt-side { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.bt-side button { background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; text-align: left; font: 600 12px/16px var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; }
.bt-side button[aria-current="page"] { border-bottom-color: var(--ink); }
.bt-side button[aria-current="page"]::after { content: ""; width: 12px; height: 1px; background: var(--ink); align-self: center; }
.bt-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line-strong); }

/* Checkout */
.bt-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: var(--space-9); align-items: start; }
.bt-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.bt-fields .is-full { grid-column: 1 / -1; }

/* Phone course page */
.bt-stickybar { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line-strong); padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; z-index: 5; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) { .by-root * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* The design system ships no media queries: these mirror its compact rules at phone width so pages work on a phone. */
@media (max-width: 900px) {
  .by-container, .by-utility, .by-footer { padding-left: 24px; padding-right: 24px; }
  .by-section { padding-top: 64px; padding-bottom: 64px; }
  .by-header-inner { grid-template-columns: 1fr auto; padding: 0 24px; height: 56px; }
  .by-header-nav, .by-header-right .by-signin { display: none; }
  .by-hero { padding: 96px 24px 64px; min-height: 460px; }
  .by-hero-note { position: static; margin-top: 64px; text-align: center; }
  .by-hero-cue { display: none; }
  .by-display { font-size: 38px; line-height: 46px; }
  .by-h1, .by-statement { font-size: 30px; line-height: 38px; }
  .by-services { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .by-feature-pair { grid-template-columns: 1fr; gap: 48px; }
  .by-stats { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .by-stat-cell { text-align: left; border-left: 0; padding: 0; }
  .by-idpanel { grid-template-columns: 1fr; grid-template-areas: "left" "rows" "cta"; gap: 32px; }
  .by-footer-cols { grid-template-columns: 1fr 1fr; }
  .by-footer-legal { flex-direction: column; align-items: flex-start; }
  .bt-cards, .bt-cards.is-four, .bt-cards.is-dense { grid-template-columns: 1fr; }
  .bt-finder, .bt-course, .bt-account, .bt-checkout, .bt-doors { grid-template-columns: 1fr; gap: 48px; }
  .bt-bento { grid-template-columns: 1fr; }
  .bt-bento .is-wide, .bt-bento .is-tall { grid-column: auto; grid-row: auto; }
  .bt-fields { grid-template-columns: 1fr; }
  .bt-sticky { position: static; }
}

/* Disabled buttons keep their shape and look inactive */
.by-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.by-btn[disabled]:hover { background: var(--ink); color: var(--surface); }
.bt-error { font: 600 13px/20px var(--font-sans); margin: 0; }

/* Row-and-column data grids built from divs, so loops can repeat rows (a loop element cannot sit inside a table) */
.bt-grid { display: block; width: 100%; }
.bt-grid [role="row"] { display: grid; gap: 0 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; font: 400 13px/20px var(--font-sans); }
.bt-grid [role="row"].is-head { border-bottom-color: var(--line-strong); padding: 8px 0; }
.bt-grid [role="columnheader"] { font: 700 12px/16px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
.bt-grid .num { text-align: right; }
.bt-cols-learners [role="row"] { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1.6fr); }
.bt-cols-week [role="row"] { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); }
.bt-cols-money [role="row"] { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.5fr); }
.bt-cols-pay [role="row"] { grid-template-columns: minmax(0, 1.2fr) minmax(0, 3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }

/* ===== 10-theme ===== */

/* ===================== Theme: page frame ===================== */
/* The hidden attribute must always win, even over display:flex layout classes (the course format toggle depends on it). */
[hidden] { display: none !important; }
.byt-skip:focus { clip: auto; width: auto; height: auto; margin: 0; padding: 12px 16px; background: var(--ink); color: var(--surface); z-index: 100; left: 8px; top: 8px; }
.byt-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .byt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .byt-header { top: 46px; } }
.byt-main { min-height: 50vh; }
.byt-page-section { padding-top: 48px; }
.by-header-nav .byt-menu, .byt-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-5); align-items: center; }
.byt-menu li { position: relative; }
.byt-menu a { display: inline-flex; align-items: center; padding: var(--space-3) 0; border-bottom: var(--hairline) solid transparent; white-space: nowrap; }
.byt-menu a:hover, .byt-menu .current-menu-item > a, .byt-menu .current-menu-ancestor > a { border-bottom-color: var(--ink); }
.byt-menu .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 240px; flex-direction: column; align-items: flex-start; gap: 0; padding: var(--space-3) var(--space-5); background: var(--surface); border: var(--hairline) solid var(--line); z-index: 60; }
.byt-menu li:hover > .sub-menu, .byt-menu li:focus-within > .sub-menu { display: flex; }
.byt-menu .sub-menu a { padding: 10px 0; width: 100%; }
.by-header-right { gap: var(--space-4); }
.byt-basket-link { position: relative; padding: 4px 6px; }
.byt-basket-count { position: absolute; top: -4px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; background: var(--ink); color: var(--surface); font: 600 12px/16px var(--font-sans); text-align: center; letter-spacing: 0; box-sizing: border-box; }
.byt-basket-count.is-empty { display: none; }
.byt-menu-toggle { display: none; }
.byt-search { border-top: var(--hairline) solid var(--line); background: var(--surface); padding: var(--space-5) 0; }
.byt-search[hidden] { display: none; }
.byt-search-form { max-width: 720px; margin: 0 auto 0 0; }
.byt-footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.byt-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-9); align-items: start; }
.byt-hero { background: var(--surface); }

/* The menu folds into the hamburger below 1240px; everything else changes layout at 900px. */
@media (max-width: 1239px) {
  .byt-menu-toggle { display: inline-flex; }
  .by-header-nav { display: none; }
  .by-header-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: var(--hairline) solid var(--line); padding: var(--space-4) 24px var(--space-6); max-height: calc(100vh - 100px); overflow: auto; }
  .by-header-nav.is-open .byt-menu { flex-direction: column; align-items: flex-start; gap: 0; }
  .by-header-nav.is-open .byt-menu a { padding: 14px 0; width: 100%; border-bottom: var(--hairline) solid var(--line); }
  .by-header-nav.is-open .sub-menu { display: flex; position: static; border: 0; padding: 0 0 0 16px; }
}
@media (max-width: 900px) {
  .byt-footer-cols { grid-template-columns: 1fr 1fr; }
  .byt-faq-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ===================== Theme: content typography ===================== */
.byt-content { max-width: 760px; font: 400 15px/26px var(--font-sans); color: var(--ink); }
.byt-content.is-wide { max-width: none; }
.byt-content h2 { font: 300 30px/38px var(--font-sans); margin: 48px 0 16px; }
.byt-content h3 { font: 300 22px/30px var(--font-sans); margin: 32px 0 12px; }
.byt-content h4, .byt-content h5, .byt-content h6 { font: 700 12px/16px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; margin: 24px 0 12px; }
.byt-content p { margin: 0 0 16px; }
.byt-content a { text-decoration: underline; text-underline-offset: 3px; }
.byt-content ul, .byt-content ol { padding-left: 22px; margin: 0 0 16px; }
.byt-content li { margin: 4px 0; }
.byt-content img, .byt-content video, .byt-content iframe { max-width: 100%; height: auto; }
.byt-content blockquote { margin: 24px 0; padding: 0 0 0 24px; border-left: 1px solid var(--gold); color: var(--ink-muted); }
.byt-content table { width: 100%; border-collapse: collapse; margin: 0 0 24px; }
.byt-content th { text-align: left; font: 700 12px/16px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line-strong); }
.byt-content td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.byt-content hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.alignleft { float: left; margin: 0 24px 16px 0; } .alignright { float: right; margin: 0 0 16px 24px; } .aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption-text, figcaption { font: 400 13px/20px var(--font-sans); color: var(--ink-muted); }

/* ===================== Theme: forms, buttons, notices (global) ===================== */
.by-root input[type="text"], .by-root input[type="email"], .by-root input[type="tel"], .by-root input[type="password"], .by-root input[type="number"], .by-root input[type="search"], .by-root input[type="url"], .by-root input[type="date"], .by-root select, .by-root textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--surface); color: var(--ink); font: 400 14px/22px var(--font-sans); box-sizing: border-box; -webkit-appearance: none; appearance: none; }
.by-root select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.by-root textarea { min-height: 110px; }
.by-root input:focus-visible, .by-root select:focus-visible, .by-root textarea:focus-visible, .by-root button:focus-visible, .by-root a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.by-root input[type="checkbox"], .by-root input[type="radio"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--ink); margin: 0; vertical-align: middle; -webkit-appearance: auto; appearance: auto; padding: 0; }
.by-root label { font: 700 12px/16px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; }
.by-root label.bt-check, .by-root .woocommerce-form__label-for-checkbox, .by-root label.checkbox, .by-root .payment_box label, .by-root #payment label { font: 400 14px/22px var(--font-sans); letter-spacing: 0; text-transform: none; }
.bt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bt-notice { border: 1px solid var(--line-strong); padding: 20px 24px; margin: 0 0 24px; }
.bt-notice.is-error { border-left-width: 4px; }
.by-root .button, .by-root button.button, .by-root a.button, .by-root input[type="submit"], .by-root .single_add_to_cart_button, .by-root #place_order, .by-root .wc-forward, .by-root .checkout-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 32px; min-height: 44px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--surface); font: 600 12px/16px var(--font-sans); letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color 120ms ease, color 120ms ease; box-sizing: border-box; width: auto; -webkit-appearance: none; appearance: none; }
.by-root .button:hover, .by-root button.button:hover, .by-root input[type="submit"]:hover, .by-root .single_add_to_cart_button:hover, .by-root #place_order:hover, .by-root .checkout-button:hover { background: var(--ink-raised); border-color: var(--ink-raised); color: var(--surface); }
.by-root .button.alt, .by-root #place_order, .by-root .single_add_to_cart_button, .by-root .checkout-button { width: 100%; }
.by-root .button.disabled, .by-root .button:disabled, .by-root button[disabled] { opacity: 0.45; cursor: not-allowed; }
.by-root .button.wc-backward, .by-root a.button.wc-forward:not(.checkout-button) { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.by-root a.button.wc-forward:not(.checkout-button):hover { background: var(--ink); color: var(--surface); }
.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; }
.nav-links, .woocommerce-pagination ul { display: flex; gap: 8px; list-style: none; padding: 0; margin: 48px 0 0; justify-content: center; flex-wrap: wrap; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); font: 500 12px/16px var(--font-sans); letter-spacing: 0.14em; box-sizing: border-box; }
.page-numbers.current { background: var(--ink); color: var(--surface); }
.byt-terms { border-top: 1px solid var(--line); padding: 16px 0; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.byt-addtocart form.cart { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.byt-addtocart .quantity { display: none; }
.by-root .price, .by-root .amount { font-weight: 600; }
.by-root del { color: var(--ink-muted); }
.by-root ins { text-decoration: none; }
.bt-section-soft .bt-chip, .byt-finder .bt-chip { background: var(--surface); }
.byt-finder .bt-chip[aria-current="true"] { background: var(--ink); color: var(--surface); }
.byt-finder .bt-card { background: transparent; }
@media (max-width: 900px) { .byt-content h2 { font-size: 24px; line-height: 32px; } }

/* Never allow sideways scrolling (a full-width band can add a pixel on browsers with classic scrollbars). */
html, body { overflow-x: clip; }

/* ===== 20-woocommerce ===== */

/* ===================== WooCommerce (default WooCommerce CSS is switched off) ===================== */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments { list-style: none; margin: 0 0 24px; padding: 16px 24px; border: 1px solid var(--line-strong); border-left-width: 4px; font: 400 14px/22px var(--font-sans); display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.woocommerce-error li { list-style: none; }
.woocommerce-error { flex-direction: column; align-items: flex-start; font-weight: 600; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }
.woocommerce form .form-row { margin: 0 0 20px; display: block; }
.woocommerce form .form-row label { display: block; margin: 0 0 8px; }
.woocommerce form .form-row .required { color: var(--ink); text-decoration: none; border: 0; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - 12px); float: left; }
.woocommerce form .form-row-first { margin-right: 24px; }
.woocommerce form .form-row-wide { clear: both; }
.woocommerce form::after, .woocommerce-billing-fields__field-wrapper::after, .woocommerce-shipping-fields__field-wrapper::after { content: ""; display: table; clear: both; }
.woocommerce .select2-container .select2-selection--single { height: 44px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--surface); }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 42px; padding-left: 12px; color: var(--ink); font: 400 14px/42px var(--font-sans); }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
.select2-dropdown { border-radius: 0; border: 1px solid var(--line-strong); font-family: var(--font-sans); }

/* Shop tables (cart, order review, orders, downloads) */
.woocommerce table.shop_table, .woocommerce table.my_account_orders, .woocommerce table.woocommerce-table { width: 100%; border-collapse: collapse; border: 0; margin: 0 0 24px; }
.woocommerce table.shop_table th, .woocommerce table.my_account_orders th { text-align: left; font: 700 12px/16px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line-strong); }
.woocommerce table.shop_table td, .woocommerce table.my_account_orders td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); font: 400 14px/22px var(--font-sans); vertical-align: top; }
.woocommerce table.shop_table td:last-child, .woocommerce table.shop_table th:last-child { padding-right: 0; text-align: right; }
.woocommerce table.shop_table .product-thumbnail img { width: 64px; height: auto; display: block; }
.woocommerce table.shop_table .product-name a { font-weight: 600; }
.woocommerce table.shop_table .product-remove a { font-size: 20px; line-height: 1; color: var(--ink-muted); }
.woocommerce table.shop_table tfoot th { color: var(--ink); font-size: 12px; }
.woocommerce table.shop_table .order-total td, .woocommerce table.shop_table .order-total th { border-bottom: 1px solid var(--line-strong); font-weight: 700; }
.woocommerce .quantity .qty { width: 72px; text-align: center; }
.woocommerce .actions .coupon { display: flex; gap: 12px; align-items: stretch; }
.woocommerce .actions .coupon input { max-width: 220px; }
.woocommerce td.actions { text-align: left; }
.woocommerce-cart .cart-collaterals { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 96px; margin-top: 48px; }
.woocommerce-cart .cart_totals { grid-column: 2; border: 1px solid var(--line-strong); padding: 24px; }
.woocommerce-cart .cart_totals h2 { font: 700 12px/16px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 16px; }
.woocommerce-cart .wc-proceed-to-checkout { margin-top: 16px; }

/* Checkout: customer details left, order review right */
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-areas: "details heading" "details review"; column-gap: 96px; align-items: start; }
.woocommerce-checkout #customer_details { grid-area: details; }
.woocommerce-checkout #order_review_heading { grid-area: heading; font: 700 12px/16px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 16px; }
.woocommerce-checkout #order_review { grid-area: review; border: 1px solid var(--line-strong); padding: 24px; position: sticky; top: 96px; }
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { float: none; width: 100%; }
.woocommerce-checkout .byt-main h3 { font: 300 22px/30px var(--font-sans); margin: 0 0 24px; }
.woocommerce-checkout #order_review table.shop_table td, .woocommerce-checkout #order_review table.shop_table th { padding: 12px 0; font-size: 13px; }
.woocommerce-checkout #payment { margin-top: 16px; }
.woocommerce-checkout #payment ul.payment_methods { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.woocommerce-checkout #payment ul.payment_methods > li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.woocommerce-checkout #payment ul.payment_methods > li > label { cursor: pointer; display: inline; }
.woocommerce-checkout #payment ul.payment_methods img { max-height: 22px; width: auto; vertical-align: middle; margin-left: 8px; }
.woocommerce-checkout #payment div.payment_box { background: var(--surface-soft); padding: 16px; margin-top: 12px; font-size: 13px; line-height: 20px; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout .woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper { font-size: 13px; line-height: 20px; color: var(--ink-muted); margin-bottom: 16px; }
.woocommerce-form-login-toggle .woocommerce-info, .woocommerce-form-coupon-toggle .woocommerce-info { margin-bottom: 16px; }
.woocommerce-form-login, .woocommerce-form-coupon { border: 1px solid var(--line); padding: 24px; margin: 0 0 32px; }
.woocommerce-checkout .create-account { border-top: 1px solid var(--line); padding-top: 20px; }

/* Thank you page */
.woocommerce-order .woocommerce-notice--success { border: 1px solid var(--line-strong); padding: 24px; font: 300 26px/32px var(--font-sans); margin-bottom: 32px; }
ul.woocommerce-order-overview { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 16px 48px; }
ul.woocommerce-order-overview li { font: 700 12px/16px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; font: 400 15px/22px var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--ink); }

/* My account */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.woocommerce-account:not(.logged-in) .woocommerce, .woocommerce-account .woocommerce > .woocommerce-notices-wrapper, .woocommerce-account .u-columns { grid-column: 1 / -1; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: none; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.woocommerce-MyAccount-navigation li a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font: 600 12px/16px var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; }
.woocommerce-MyAccount-navigation li.is-active a { border-bottom-color: var(--ink); }
.woocommerce-MyAccount-navigation li.is-active a::after { content: ""; width: 12px; height: 1px; background: var(--ink); align-self: center; }
.woocommerce-MyAccount-content { min-width: 0; font: 400 14px/22px var(--font-sans); }
.woocommerce-MyAccount-content h2, .woocommerce-MyAccount-content h3 { font: 300 26px/32px var(--font-sans); margin: 0 0 16px; }
.woocommerce-Addresses, .u-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.woocommerce-Address address { font-style: normal; }
.woocommerce-account fieldset { border: 1px solid var(--line); padding: 24px; margin: 24px 0; }
.woocommerce-account fieldset legend { padding: 0 8px; font: 700 12px/16px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; }
.woocommerce-account .woocommerce-form-login, .woocommerce-account .woocommerce-form-register { max-width: none; width: 100%; box-sizing: border-box; border: 1px solid var(--line); padding: 32px; margin: 16px 0 0; }
.woocommerce-account .u-columns { gap: 48px; align-items: start; }
.woocommerce-account .u-columns h2 { font: 300 26px/32px var(--font-sans); margin: 0; }
.woocommerce-account .woocommerce-ResetPassword { max-width: 520px; }
.woocommerce-password-strength:empty, .woocommerce-password-hint:empty { display: none; }
.woocommerce-password-strength { margin-top: 8px; font: 600 12px/18px var(--font-sans); }
.woocommerce-account .woocommerce-form-login__rememberme { display: inline-flex; gap: 8px; align-items: center; margin-right: 16px; }
.byt-learning-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.byt-learning-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .woocommerce-checkout form.checkout { display: block; }
  .woocommerce-checkout #order_review { position: static; margin-top: 32px; }
  .woocommerce-cart .cart-collaterals { display: block; }
  .woocommerce-account .woocommerce { display: block; }
  .woocommerce-MyAccount-navigation { margin-bottom: 32px; }
  .woocommerce-Addresses, .u-columns { grid-template-columns: 1fr; }
  .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; margin-right: 0; }
  .woocommerce table.shop_table_responsive thead { display: none; }
  .woocommerce table.shop_table_responsive tr td { display: block; text-align: right !important; padding: 8px 0; border-bottom: 0; }
  .woocommerce table.shop_table_responsive tr td::before { content: attr(data-title) ": "; float: left; font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
  .woocommerce table.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .woocommerce table.shop_table_responsive tr td.product-remove::before, .woocommerce table.shop_table_responsive tr td.actions::before { display: none; }
  .woocommerce .actions .coupon { flex-direction: column; }
  .woocommerce .actions .coupon input { max-width: none; }
}

/* My account dashboard tiles */
.byt-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.byt-tile { border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.byt-tile .bt-h4 { margin: 0; }
@media (max-width: 900px) { .byt-tiles { grid-template-columns: 1fr; } }

/* ===================== Classroom dates page ===================== */
.byt-dates { display: block; }
.byt-dates-tools { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 24px; align-items: end; margin: 0 0 16px; }
.byt-dates-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.byt-dates-more { display: flex; justify-content: center; margin-top: 40px; }
.byt-dates-month { margin: 40px 0 0; }
.byt-dates-month[hidden], .byt-date-row[hidden] { display: none; }
.byt-dates-month > h2 { padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin: 0; }
.byt-date-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 190px 90px 120px; gap: 16px 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font: 400 14px/22px var(--font-sans); }
.byt-date-when strong { display: block; font-weight: 600; }
.byt-date-what a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.byt-date-what span { display: block; }
.byt-date-price { font-weight: 600; }
.byt-date-action { text-align: right; }
@media (max-width: 900px) {
  .byt-dates-tools { grid-template-columns: 1fr; }
  .byt-date-row { grid-template-columns: minmax(0, 1fr) auto; }
  .byt-date-what { grid-column: 1 / -1; grid-row: 2; }
  .byt-date-where { grid-column: 1; grid-row: 3; }
  .byt-date-price { grid-column: 2; grid-row: 1; text-align: right; }
  .byt-date-action { grid-column: 2; grid-row: 3; }
}

/* Cart: courses are sold one per order, so there is no quantity or update button to show. */
.woocommerce-cart-form th.product-quantity, .woocommerce-cart-form td.product-quantity, .woocommerce-cart-form button[name="update_cart"] { display: none; }
/* Show/hide password button (WooCommerce default icon is off) */
.woocommerce .password-input { position: relative; display: block; }
.woocommerce .password-input input { padding-right: 72px; }
.woocommerce .show-password-input { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: auto; min-height: 0; padding: 4px; margin: 0; background: none; border: 0; cursor: pointer; font: 700 12px/16px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.woocommerce .show-password-input::after { content: "Show"; }
.woocommerce .show-password-input.display-password::after { content: "Hide"; }

/* ===================== Content pages: FAQ, places, pathway, contact ===================== */
details.byt-faq { border-bottom: 1px solid var(--line); padding: 0; }
details.byt-faq:first-of-type { border-top: 1px solid var(--line); }
details.byt-faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font: 600 14px/22px var(--font-sans); position: relative; }
details.byt-faq summary::-webkit-details-marker { display: none; }
details.byt-faq summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font: 300 22px/26px var(--font-sans); }
details.byt-faq[open] summary::after { content: "-"; }
details.byt-faq > *:not(summary) { margin: 0 0 16px; }
.byt-content address { font-style: normal; margin: 0 0 12px; }
.byt-places { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.byt-places li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.byt-places a { text-decoration: none; display: block; }
.byt-places a strong { display: block; }
.byt-pathway-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 8px; }
.byt-pathway-nav a { font: 700 12px/16px var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.byt-pathway { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.byt-pathway li { display: grid; grid-template-columns: minmax(0, 1fr) 100px 190px; gap: 8px 24px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.byt-pathway a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.byt-pathway-price { font-weight: 600; text-align: right; }
.byt-pathway-level h2 { margin-top: 40px; }
.bt-notice { border: 1px solid var(--line-strong); border-left-width: 4px; padding: 16px 24px; margin: 0 0 32px; }
.bt-notice p { margin: 0 0 8px; }
.byt-contact { margin-top: 24px; max-width: 720px; }
@media (max-width: 700px) { .byt-pathway li { grid-template-columns: 1fr auto; } .byt-pathway li .by-small { grid-column: 1 / -1; } }

/* ===== 30-plugins ===== */

/* LearnDash screens are styled in 35-learndash.css. */

/* ===================== Amelia (booking forms, customer panel, staff panel) ===================== */
/* Amelia sets its colour variables inline from its own settings, so the Best You values need !important.
   The same variables are set on :root for pop-ups that Amelia mounts on the body (select lists, dialogs). */
:root, [class^="am-"], [class*=" am-"], [class*="amelia-v2-booking"] {
	--am-c-primary: var(--ink) !important;
	--am-c-main-bgr: var(--surface) !important;
	--am-c-main-heading-text: var(--ink) !important;
	--am-c-main-text: var(--ink) !important;
	--am-c-main-text-op15: rgba(22, 21, 19, 0.15) !important;
	--am-c-sb-bgr: var(--surface) !important;
	--am-c-sb-text: var(--ink) !important;
	--am-c-inp-bgr: var(--surface) !important;
	--am-c-inp-border: var(--line-strong) !important;
	--am-c-inp-text: var(--ink) !important;
	--am-c-inp-placeholder: var(--ink-muted) !important;
	--am-c-drop-bgr: var(--surface) !important;
	--am-c-drop-text: var(--ink) !important;
	--am-c-card-bgr: var(--surface) !important;
	--am-c-card-text: var(--ink) !important;
	--am-c-card-border: var(--line) !important;
	--am-c-btn-prim: var(--ink) !important;
	--am-c-btn-prim-text: var(--surface) !important;
	--am-c-btn-sec: var(--ink) !important;
	--am-c-btn-sec-text: var(--surface) !important;
	--am-c-scroll-op30: rgba(22, 21, 19, 0.3) !important;
	--am-c-scroll-op10: rgba(22, 21, 19, 0.1) !important;
	--am-font-family: var(--font-sans), sans-serif !important;
	--am-rad-inp: 0 !important;
	/* Event list, event pop-up (tabs, organiser avatar) and secondary text: ink instead of Amelia's blue and grey-blue. */
	--am-c-ec-primary: var(--ink) !important;
	--am-c-eli-primary: var(--ink) !important;
	--am-c-ec-text: var(--ink) !important;
	--am-c-ec-text-op90: rgba(22, 21, 19, 0.9) !important;
	--am-c-ec-text-op80: rgba(22, 21, 19, 0.8) !important;
	--am-c-ec-text-op50: var(--ink-muted) !important;
	--am-c-els-text-op60: var(--ink-muted) !important;
	--am-c-inp-text-op60: var(--ink-muted) !important;
}
/* Amelia buttons and event cards carry their own inline colour variables, resolved from its settings. */
.am-button, [class*=" am-button"], [class*="amelia"] button {
	--am-c-btn-first: var(--ink) !important;
	--am-c-btn-second: var(--surface) !important;
	--am-c-btn-first-op80: rgba(22, 21, 19, 0.8) !important;
	--am-c-btn-first-op30: rgba(22, 21, 19, 0.3) !important;
	--am-c-btn-first-op20: rgba(22, 21, 19, 0.1) !important;
}
.am-ec, [class*="am-ec "] { --am-c-ec-primary: var(--gold) !important; }
[class*="amelia"], [class*="amelia"] *, .am-capc, .am-capc *, .am-cap, .am-cap *, .am-select-popper, .am-select-popper *, .am-dialog-popup, .am-dialog-popup * { font-family: var(--font-sans), sans-serif; }
[class*="amelia"] .am-button, [class*="amelia"] button, .am-capc .am-button, .am-cap .am-button, .am-dialog-popup .am-button { border-radius: 0 !important; box-shadow: none !important; }
[class*="amelia"] .am-button--filled, .am-capc .am-button--filled, .am-cap .am-button--filled, .am-dialog-popup .am-button--filled { text-transform: uppercase; letter-spacing: 0.18em; font-weight: 600; }
[class*="amelia"] .am-ec, [class*="amelia"] .am-eli__item, [class*="amelia"] .am-event-card, .am-capc [class*="__card"], .am-cap [class*="__card"] { border-radius: 0 !important; box-shadow: none !important; border: 1px solid var(--line) !important; }
[class*="amelia"] .am-ec { border-left: 3px solid var(--gold) !important; background: var(--surface); }
[class*="amelia"] .am-ec__actions-price { color: var(--ink) !important; font-weight: 600; }
[class*="amelia"] .am-ec__info-availability { color: var(--ink-muted); }
[class*="amelia"] .el-input__wrapper, [class*="amelia"] .el-select__wrapper, [class*="amelia"] .el-textarea__inner, .am-capc .el-input__wrapper, .am-cap .el-input__wrapper { border-radius: 0 !important; box-shadow: 0 0 0 1px var(--line-strong) inset !important; min-height: 44px; }
[class*="amelia"] .el-input__wrapper.is-focus, [class*="amelia"] .el-select__wrapper.is-focused { box-shadow: 0 0 0 1px var(--ink) inset !important; }
.am-dialog-popup, .am-dialog-popup .el-dialog, .am-select-popper, .am-select-popper .el-popper, .el-popper.am-select-popper { border-radius: 0 !important; box-shadow: none !important; border: 1px solid var(--line-strong) !important; }
/* No cancel button for customers, ever (the server also refuses the request; byt.js hides the rest by label). */
.am-capc [class*="cancel-btn"], .am-capc [class*="cancel-button"], .am-capc .am-cancel, [class*="amelia-v2-booking"] [class*="cancel-btn"], .byt-no-cancel { display: none !important; }
/* Never show a customer-facing cancel link in WooCommerce order screens either. */
.woocommerce-orders-table__cell-order-actions .cancel, .woocommerce-MyAccount-content a.cancel, .order-actions a.cancel { display: none !important; }

/* ===================== Print ===================== */
@media print { .byt-header, .by-utility, .byt-footer, .by-btn { display: none !important; } body { background: #fff; } }

/* ===== 35-learndash ===== */

/* ===================== LearnDash learner screens (course, lesson, topic, quiz) =====================
   LearnDash prints its own accent colours (gold #ae9950, dark #333) as inline CSS after this file, so colour
   rules carry !important and one extra selector (body.by-root). Layout, type and spacing are ours.
   The theme template single.php wraps these screens in .byt-ld. */
.byt-ld { max-width: 880px; }
.byt-ld .byt-content { max-width: none; }
.byt-ld .byt-ld-hero { margin: 0; aspect-ratio: 16 / 7; max-height: 360px; overflow: hidden; background: var(--surface-soft); }
.byt-ld .byt-ld-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.byt-ld .byt-content p, .byt-ld .byt-content li { max-width: 760px; }

body.by-root .learndash-wrapper, body.by-root .learndash-wrapper * { font-family: var(--font-sans); border-radius: 0 !important; }
body.by-root .learndash-wrapper { color: var(--ink); font-size: 16px; line-height: 28px; }

/* ---- Buttons: one black square button, outline for the quiet one ---- */
body.by-root .learndash-wrapper .ld-button,
body.by-root .learndash-wrapper a.ld-button,
body.by-root .learndash-wrapper input[type="submit"],
body.by-root .learndash-wrapper .learndash_mark_complete_button,
body.by-root .learndash-wrapper .btn-join,
body.by-root .learndash-wrapper #btn-join,
body.by-root .learndash-wrapper .wpProQuiz_button,
body.by-root .learndash-wrapper .wpProQuiz_button2,
body.by-root .learndash-wrapper #quiz_continue_link,
body.by-root .learndash-wrapper .ld-course-status .ld-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; width: auto; margin: 0;
	background: var(--ink) !important; color: var(--surface) !important; border: 1px solid var(--ink) !important;
	font: 600 12px/16px var(--font-sans) !important; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none !important;
	padding: 14px 28px; box-shadow: none !important; cursor: pointer;
}
body.by-root .learndash-wrapper .ld-button:hover,
body.by-root .learndash-wrapper input[type="submit"]:hover,
body.by-root .learndash-wrapper .learndash_mark_complete_button:hover,
body.by-root .learndash-wrapper .btn-join:hover,
body.by-root .learndash-wrapper .wpProQuiz_button:hover,
body.by-root .learndash-wrapper .wpProQuiz_button2:hover,
body.by-root .learndash-wrapper #quiz_continue_link:hover { background: var(--ink-raised) !important; color: var(--surface) !important; }
body.by-root .learndash-wrapper .ld-button:focus-visible,
body.by-root .learndash-wrapper input[type="submit"]:focus-visible,
body.by-root .learndash-wrapper .wpProQuiz_button:focus-visible,
body.by-root .learndash-wrapper a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
body.by-root .learndash-wrapper .ld-button.ld-button-transparent,
body.by-root .learndash-wrapper .ld-button.ld-course-step-next-disabled { background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--ink) !important; }
body.by-root .learndash-wrapper .ld-button[disabled], body.by-root .learndash-wrapper .ld-button.ld-button-disabled, body.by-root .learndash-wrapper input[type="submit"][disabled] { opacity: 0.45; cursor: not-allowed; }
body.by-root .learndash-wrapper .ld-button .ld-icon { font-size: 12px; }
/* LearnDash's own rule for the plain button (grey #333) carries six selectors, so ours needs more to win. */
html body.by-root .learndash-wrapper .ld-button:not([disabled]):not(.ld-button-reverse):not(.ld-button-transparent):not(.ld--ignore-inline-css) { background: var(--ink) !important; color: var(--surface) !important; border-color: var(--ink) !important; }
html body.by-root .learndash-wrapper .ld-button:hover:not([disabled]):not(.ld-button-reverse):not(.ld-button-transparent):not(.ld--ignore-inline-css) { background: var(--ink-raised) !important; color: var(--surface) !important; }
html body.by-root .learndash-wrapper .ld-content-actions .ld-button { width: auto !important; max-width: none !important; min-width: 190px; white-space: nowrap; padding: 14px 24px; }

/* ---- Lesson bar: breadcrumb and status ---- */
body.by-root .learndash-wrapper .ld-lesson-status, body.by-root .learndash-wrapper .ld-course-status.ld-course-status-enrolled { margin: 0 0 24px; }
body.by-root .learndash-wrapper .ld-course-status.ld-course-status-enrolled { background: var(--surface-cream) !important; border: 1px solid var(--line); padding: 16px 20px; }
body.by-root .learndash-wrapper .ld-course-status.ld-course-status-enrolled .ld-progress { margin-bottom: 0; }
body.by-root .learndash-wrapper .ld-breadcrumbs { background: var(--surface-cream) !important; border: 1px solid var(--line); padding: 12px 16px; align-items: center; gap: 16px; }
body.by-root .learndash-wrapper .ld-breadcrumbs .ld-breadcrumbs-segments, body.by-root .learndash-wrapper .ld-breadcrumbs .ld-breadcrumbs-segments span { font: 400 13px/20px var(--font-sans); color: var(--ink-muted) !important; letter-spacing: 0; text-transform: none; }
body.by-root .learndash-wrapper .ld-breadcrumbs a { font: 600 13px/20px var(--font-sans); color: var(--ink) !important; text-decoration: none; }
body.by-root .learndash-wrapper .ld-breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Status labels (In progress, Complete, Not enrolled); the step tick icons keep their own look below ---- */
body.by-root .learndash-wrapper .ld-status:not(.ld-status-icon) {
	display: inline-flex; align-items: center; gap: 6px; background: transparent !important; color: var(--ink) !important;
	border: 1px solid var(--ink) !important; padding: 6px 14px; font: 700 12px/16px var(--font-sans) !important; letter-spacing: 0.16em; text-transform: uppercase;
}
body.by-root .learndash-wrapper .ld-status.ld-status-complete:not(.ld-status-icon) { background: var(--ink) !important; color: var(--surface) !important; }
body.by-root .learndash-wrapper .ld-status:not(.ld-status-icon) .ld-icon { color: inherit !important; }

/* ---- Step tick (the square before each lesson in the course outline) ---- */
body.by-root .learndash-wrapper .ld-status-icon { width: 24px; height: 24px; min-width: 24px; flex: 0 0 24px; border: 1px solid var(--ink-muted) !important; background: var(--surface) !important; color: var(--surface) !important; display: inline-flex; align-items: center; justify-content: center; margin: 0 16px 0 0; }
body.by-root .learndash-wrapper .ld-status-icon.ld-status-complete { background: var(--ink) !important; border-color: var(--ink) !important; color: var(--surface) !important; }
body.by-root .learndash-wrapper .ld-status-icon.ld-status-in-progress, body.by-root .learndash-wrapper .ld-status-icon.ld-quiz-waiting { border-color: var(--ink) !important; }

/* ---- Progress ---- */
body.by-root .learndash-wrapper .ld-progress.ld-progress-inline, body.by-root .learndash-wrapper .ld-progress { background: transparent !important; padding: 0; margin: 0 0 32px; border: 0; }
body.by-root .learndash-wrapper .ld-progress-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 8px; }
body.by-root .learndash-wrapper .ld-progress-stats { display: flex; align-items: baseline; gap: 12px; }
body.by-root .learndash-wrapper .ld-progress-percentage { color: var(--ink) !important; font: 700 12px/16px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; }
body.by-root .learndash-wrapper .ld-progress-steps { color: var(--ink-muted) !important; font: 400 13px/16px var(--font-sans); }
body.by-root .learndash-wrapper .ld-progress-bar { height: 4px; background: var(--line) !important; box-shadow: none; margin: 0; }
body.by-root .learndash-wrapper .ld-progress-bar .ld-progress-bar-percentage { height: 4px; background: var(--ink) !important; }

/* ---- Course outline ---- */
body.by-root .learndash-wrapper .ld-section-heading h2, body.by-root .learndash-wrapper .ld-section-heading h3 { font: 300 30px/38px var(--font-sans); margin: 40px 0 8px; color: var(--ink); }
body.by-root .learndash-wrapper .ld-item-list-section-heading { background: transparent; border: 0; border-top: 1px solid var(--ink); padding: 14px 0 6px; margin: 32px 0 0; }
body.by-root .learndash-wrapper .ld-item-list-section-heading .ld-lesson-section-heading, body.by-root .learndash-wrapper .ld-lesson-section-heading { font: 700 12px/16px var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); margin: 0; }
body.by-root .learndash-wrapper .ld-item-list .ld-item-list-item { border: 0 !important; border-bottom: 1px solid var(--line) !important; background: transparent !important; margin: 0; }
body.by-root .learndash-wrapper .ld-item-list .ld-item-list-item.ld-is-next, body.by-root .learndash-wrapper .ld-item-list .ld-item-list-item.ld-is-current-lesson { background: var(--surface-cream) !important; }
body.by-root .learndash-wrapper .ld-item-list .ld-item-list-item-preview { padding: 16px 12px; align-items: center; }
body.by-root .learndash-wrapper .ld-item-list .ld-item-name, body.by-root .learndash-wrapper .ld-item-list .ld-item-title { font: 500 15px/24px var(--font-sans); color: var(--ink) !important; text-decoration: none; letter-spacing: 0; }
body.by-root .learndash-wrapper .ld-item-list a.ld-item-name:hover .ld-item-title { text-decoration: underline; text-underline-offset: 3px; }
body.by-root .learndash-wrapper .ld-item-list .ld-item-details, body.by-root .learndash-wrapper .ld-item-list .ld-lesson-list-count, body.by-root .learndash-wrapper .ld-item-list .ld-item-components { font: 600 12px/16px var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted) !important; }
body.by-root .learndash-wrapper .ld-item-list .ld-item-list-item-expanded .ld-table-list { border: 0; border-top: 1px solid var(--line); margin: 0; }
body.by-root .learndash-wrapper .ld-table-list-items .ld-table-list-item { border-color: var(--line) !important; }
body.by-root .learndash-wrapper .ld-table-list-items .ld-table-list-item-preview { padding: 14px 16px; }
body.by-root .learndash-wrapper .ld-table-list { border: 1px solid var(--line) !important; background: var(--surface); }
body.by-root .learndash-wrapper .ld-table-list .ld-table-list-items, body.by-root .learndash-wrapper .ld-table-list .ld-table-list-item { border-left: 0 !important; border-right: 0 !important; border-bottom-width: 0 !important; }
body.by-root .learndash-wrapper .ld-table-list .ld-table-list-item + .ld-table-list-item { border-top: 1px solid var(--line) !important; }
/* The header also carries .ld-primary-background (black), so it needs the extra class to stay cream with ink text. */
body.by-root .learndash-wrapper .ld-table-list-header, body.by-root .learndash-wrapper .ld-table-list-header.ld-primary-background { background: var(--surface-cream) !important; border: 0; border-top: 1px solid var(--line-strong); color: var(--ink) !important; font: 700 12px/16px var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; padding: 12px 12px; }
body.by-root .learndash-wrapper .ld-table-list-header .ld-table-list-title, body.by-root .learndash-wrapper .ld-table-list-header .ld-table-list-lesson-details { color: var(--ink) !important; font: 700 12px/16px var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; }
body.by-root .learndash-wrapper .ld-table-list-items .ld-table-list-item-preview, body.by-root .learndash-wrapper .ld-table-list-items .ld-table-list-item-preview .ld-topic-title, body.by-root .learndash-wrapper .ld-table-list-items .ld-table-list-item-preview .ld-lesson-title { color: var(--ink) !important; font: 400 15px/24px var(--font-sans); text-decoration: none; }
body.by-root .learndash-wrapper .ld-table-list-items .ld-table-list-item-preview:hover .ld-topic-title { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Expand all / expand ---- */
body.by-root .learndash-wrapper .ld-expand-button, body.by-root .learndash-wrapper .ld-expand-button .ld-text, body.by-root .learndash-wrapper .ld-item-list-item .ld-expand-button { background: transparent !important; color: var(--ink) !important; font: 600 12px/16px var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; box-shadow: none; }
body.by-root .learndash-wrapper .ld-expand-button .ld-icon-arrow-down, body.by-root .learndash-wrapper .ld-expand-button .ld-icon { background: var(--ink) !important; color: var(--surface) !important; }

/* ---- Tabs and alerts ---- */
body.by-root .learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab { color: var(--ink-muted) !important; font: 600 12px/16px var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 2px solid transparent; }
body.by-root .learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab.ld-active { color: var(--ink) !important; border-bottom-color: var(--ink) !important; }
body.by-root .learndash-wrapper .ld-alert { background: var(--surface-cream) !important; border: 1px solid var(--line); border-left: 3px solid var(--gold); color: var(--ink) !important; padding: 16px 20px; margin: 0 0 24px; }
body.by-root .learndash-wrapper .ld-alert .ld-alert-content, body.by-root .learndash-wrapper .ld-alert .ld-alert-messages { color: var(--ink) !important; font: 400 15px/24px var(--font-sans); }
body.by-root .learndash-wrapper .ld-alert .ld-icon-alert, body.by-root .learndash-wrapper .ld-alert .ld-alert-icon { color: var(--ink) !important; background: transparent !important; }

/* ---- Lesson footer: back, mark complete, next ---- */
body.by-root .learndash-wrapper .ld-content-actions { border-top: 1px solid var(--line-strong) !important; border-bottom: 0 !important; padding: 24px 0 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
body.by-root .learndash-wrapper .ld-content-actions .ld-content-action { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; }
body.by-root .learndash-wrapper .ld-content-actions .ld-content-action.ld-empty { display: none; }
body.by-root .learndash-wrapper a.ld-course-step-back, body.by-root .learndash-wrapper .ld-primary-color, body.by-root .learndash-wrapper .ld-course-step-back .ld-icon { color: var(--ink) !important; font: 600 12px/16px var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
body.by-root .learndash-wrapper a.ld-course-step-back:hover { text-decoration: underline; text-underline-offset: 3px; }
body.by-root .learndash-wrapper .ld-primary-background { background: var(--ink) !important; color: var(--surface) !important; }
body.by-root .learndash-wrapper .ld-secondary-color { color: var(--ink) !important; }
body.by-root .learndash-wrapper .ld-secondary-background { background: var(--ink) !important; }
body.by-root .learndash-wrapper .ld-primary-border-color, body.by-root .learndash-wrapper .ld-secondary-border-color { border-color: var(--ink) !important; }
body.by-root .learndash-wrapper form.sfwd-mark-complete { margin: 0; }

/* ---- Course status box (not enrolled / enrolled) ---- */
body.by-root .learndash-wrapper .ld-course-status:not(.ld-course-status-enrolled) { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 0; border: 1px solid var(--line); background: var(--surface-cream) !important; margin: 0 0 32px; padding: 0; }
body.by-root .learndash-wrapper .ld-course-status .ld-course-status-segment { padding: 20px 24px; margin: 0; border: 0; border-right: 1px solid var(--line); background: transparent !important; }
body.by-root .learndash-wrapper .ld-course-status .ld-course-status-segment:last-child { border-right: 0; }
body.by-root .learndash-wrapper .ld-course-status .ld-course-status-label { font: 700 12px/16px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted) !important; display: block; margin: 0 0 6px; }
body.by-root .learndash-wrapper .ld-course-status .ld-course-status-content, body.by-root .learndash-wrapper .ld-course-status .ld-course-status-price { font: 300 22px/30px var(--font-sans); color: var(--ink) !important; }
body.by-root .learndash-wrapper .ld-course-status .ld-course-status-action { display: flex; align-items: center; }
@media (max-width: 700px) {
	body.by-root .learndash-wrapper .ld-course-status:not(.ld-course-status-enrolled) { grid-template-columns: 1fr; }
	body.by-root .learndash-wrapper .ld-course-status .ld-course-status-segment { border-right: 0; border-bottom: 1px solid var(--line); }
	body.by-root .learndash-wrapper .ld-course-status .ld-course-status-segment:last-child { border-bottom: 0; }
	body.by-root .learndash-wrapper .ld-course-status .ld-button, body.by-root .learndash-wrapper .btn-join { width: 100%; }
	body.by-root .learndash-wrapper .ld-content-actions { flex-direction: column; align-items: stretch; }
	body.by-root .learndash-wrapper .ld-content-actions .ld-content-action { flex-direction: column; align-items: stretch; }
	html body.by-root .learndash-wrapper .ld-content-actions .ld-button, body.by-root .learndash-wrapper .ld-content-actions input[type="submit"] { width: 100% !important; white-space: normal; }
	body.by-root .learndash-wrapper .ld-item-list .ld-item-list-item-preview { padding: 14px 4px; }
}

/* ---- Quizzes (WP Pro Quiz) ---- */
body.by-root .learndash-wrapper .wpProQuiz_content { color: var(--ink); font-size: 16px; line-height: 28px; }
body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_text, body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_question_text { font: 400 16px/28px var(--font-sans); color: var(--ink); }
body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_question_text { margin: 0 0 16px; }
body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_listItem { margin: 0 0 40px; }
body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionList { list-style: none; margin: 0; padding: 0; }
body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem { margin: 0 0 8px; padding: 0; list-style: none; background: var(--surface) !important; border: 1px solid var(--line) !important; }
body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:hover { border-color: var(--ink) !important; }
body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem label { border: 0 !important; box-shadow: none !important; display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 16px; width: 100%; box-sizing: border-box; cursor: pointer; font: 400 15px/24px var(--font-sans) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink) !important; background: transparent !important; }
body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem input[type="radio"], body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem input[type="checkbox"] { flex: 0 0 auto; margin: 4px 0 0; accent-color: var(--ink); width: 18px; height: 18px; }
body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:focus-within { border-color: var(--ink) !important; outline: 2px solid var(--ink); outline-offset: 2px; }
body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_answerCorrect { background: #e8f2e9 !important; border-color: #2f6b3a !important; }
body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_answerIncorrect { background: #f7e7e4 !important; border-color: #9c2f24 !important; }
body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_response { margin: 16px 0 0; padding: 16px 20px; border: 1px solid var(--line); border-left: 3px solid var(--ink); background: var(--surface-cream) !important; }
body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_correct, body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_incorrect { background: transparent !important; color: var(--ink) !important; }
body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_incorrect .wpProQuiz_response { border-left-color: #9c2f24; }
body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_correct .wpProQuiz_response { border-left-color: #2f6b3a; }
body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_header, body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_time_limit, body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_quiz_time { font: 400 14px/22px var(--font-sans); color: var(--ink-muted); }
body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_results, body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_points { font: 400 16px/28px var(--font-sans); color: var(--ink); }
body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_button, body.by-root .learndash-wrapper .wpProQuiz_content input.wpProQuiz_button { margin: 0 8px 8px 0; }
body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_button[style*="display: none"] { display: none !important; }
body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_lock, body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_prerequisite, body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_startOnlyRegisteredUser, body.by-root .learndash-wrapper .wpProQuiz_content .wpProQuiz_loadQuiz { background: var(--surface-cream) !important; border: 1px solid var(--line); border-left: 3px solid var(--gold); color: var(--ink) !important; padding: 16px 20px; }

/* ===== 40-polish ===== */

/* ===================== Polish: type scale, alignment, contrast, subjects and finder ===================== */

:root { --container: 1440px; }

/* ---- Readable sizes. Nothing meant to be read is smaller than 12px, body copy is 15-16px. ---- */
.by-body { font-size: 15px; line-height: 24px; }
.by-lead { font-size: 17px; line-height: 28px; }
.by-small { font-size: 14px; line-height: 22px; }
.by-label, .by-nav, .by-button-text { font-size: 12px; }
.by-eyebrow-text { font-size: 12px; }
.bt-note, .by-caption { font-size: 12px; line-height: 16px; letter-spacing: 0.12em; }
.bt-chip { font-size: 12px; letter-spacing: 0.14em; }
.bt-label, .by-root label { font-size: 12px; }
.bt-filters legend { font-size: 12px; }
.bt-help { font-size: 14px; line-height: 22px; }
.bt-tag { font-size: 12px; line-height: 16px; padding: 3px 8px; }
.bt-card .bt-meta, .bt-card .bt-next { font-size: 14px; line-height: 22px; }
.bt-card .bt-prices small { font-size: 12px; }
.bt-card h3 { font-size: 22px; line-height: 30px; }
.bt-cards.is-dense .bt-card h3 { font-size: 20px; line-height: 28px; }
.bt-card h3 a { text-decoration: none; }
.bt-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bt-table th, .byt-content th, .bt-grid [role="columnheader"] { font-size: 12px; }
.bt-table td, .byt-content td, .bt-grid [role="row"] { font-size: 14px; line-height: 22px; }
.bt-kv, .bt-list li, .bt-check { font-size: 15px; line-height: 24px; }
.bt-faq details p { font-size: 15px; line-height: 24px; }
.bt-faq summary { font-size: 13px; line-height: 20px; }
.by-root input[type="text"], .by-root input[type="email"], .by-root input[type="tel"], .by-root input[type="password"], .by-root input[type="number"], .by-root input[type="search"], .by-root input[type="url"], .by-root input[type="date"], .by-root select, .by-root textarea,
.bt-input, .bt-select { font-size: 16px; line-height: 24px; }
.by-root label.bt-check, .by-root .woocommerce-form__label-for-checkbox, .by-root label.checkbox, .by-root .payment_box label, .by-root #payment label { font-size: 15px; line-height: 24px; }
.byt-content { font-size: 16px; line-height: 28px; }
.byt-content td { font-size: 15px; }
.byt-content h2 { margin-top: 56px; }
.byt-content li { margin: 6px 0; }
.wp-caption-text, figcaption { font-size: 14px; line-height: 22px; }
.by-footer-col a, .by-footer-legal { font-size: 14px; line-height: 22px; }
.by-utility { font-size: 13px; line-height: 20px; }

/* ---- Header and footer line up with the page content on wide screens. ---- */
@media (min-width: 901px) {
  .by-header-inner, .by-footer, .by-utility {
    padding-left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
    padding-right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  }
}

/* ---- Header: logo, then the menu, then account/search/basket. The Courses panel opens straight under the bar. ---- */
.by-header-inner { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo nav right"; column-gap: var(--space-6); }
.by-header-inner > .by-logo { grid-area: logo; }
.by-header-inner > .by-header-nav { grid-area: nav; justify-self: start; }
.by-header-inner > .by-header-right { grid-area: right; }
.by-header-nav { align-self: stretch; }
.by-header-nav .byt-menu { align-items: stretch; height: 100%; gap: 22px; }
.by-header-nav .byt-menu > li { display: flex; align-items: stretch; }
.by-header-nav .byt-menu > li > a { padding: 0; letter-spacing: 0.12em; border-bottom: 2px solid transparent; }
.by-header-nav .byt-menu > li > a:hover, .by-header-nav .byt-menu > li.current-menu-item > a, .by-header-nav .byt-menu > li.current-menu-ancestor > a { border-bottom-color: var(--ink); }
.byt-menu .menu-item-has-children > a::after { content: ""; width: 5px; height: 5px; margin: -2px 0 0 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); opacity: 0.7; }
.byt-menu .sub-menu { background: var(--surface); border: var(--hairline) solid var(--line); border-top-color: var(--ink); }
.byt-menu .sub-menu a { padding: 11px 0; font-size: 13px; letter-spacing: 0.1em; border-bottom: 0; white-space: normal; }
.byt-menu .sub-menu a:hover { text-decoration: underline; text-underline-offset: 4px; }
.byt-menu .sub-menu.is-mega { grid-template-columns: repeat(2, minmax(220px, 1fr)); column-gap: var(--space-7); width: 600px; max-width: calc(100vw - 48px); left: -24px; padding: var(--space-5) var(--space-6); }
.byt-menu .sub-menu.is-mega > li:first-child { grid-column: 1 / -1; border-bottom: var(--hairline) solid var(--line); margin-bottom: var(--space-2); padding-bottom: var(--space-2); }
.byt-menu .sub-menu.is-mega > li:first-child > a { font-weight: 700; }
.byt-menu .sub-menu li { display: block; }
@media (min-width: 1240px) { .byt-menu li:hover > .sub-menu.is-mega, .byt-menu li:focus-within > .sub-menu.is-mega { display: grid; } }
@media (min-width: 1240px) and (max-width: 1439px) {
  :root { --gutter: 40px; }
  .by-header-inner { column-gap: var(--space-5); }
  .by-header-nav .byt-menu { gap: 16px; }
  .by-header-nav .byt-menu > li > a { letter-spacing: 0.08em; }
}
.by-header-right { gap: 0; }
.by-header-icons { gap: 2px; margin-left: 0; }
.byt-account-link { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 1239px) {
  .by-header-inner { grid-template-columns: 1fr auto; grid-template-areas: "logo right"; column-gap: var(--space-4); }
  .by-header-nav.is-open .byt-menu > li > a { min-height: 52px; padding: 14px 0; letter-spacing: 0.14em; border-bottom: var(--hairline) solid var(--line); }
}

/* ---- Course finder: heading and search ---- */
.byt-finder-head { padding-bottom: var(--space-7); }
.byt-finder-search { max-width: 560px; margin-top: var(--space-2); }
.byt-finder-search-row { display: flex; gap: var(--space-2); align-items: stretch; }
.byt-finder-search-row .bt-input { flex: 1 1 auto; min-width: 0; }
.byt-finder-search-row .by-btn { flex: none; }

@media (min-width: 1000px) {
  .byt-finder-head .bt-stack { display: grid; grid-template-columns: minmax(0, 1fr) 440px; grid-template-areas: "crumb crumb" "head form" "lead form"; column-gap: var(--space-8); row-gap: var(--space-4); align-items: start; }
  .byt-finder-head .bt-stack > nav { grid-area: crumb; }
  .byt-finder-head .bt-stack > .by-section-heading { grid-area: head; }
  .byt-finder-head .bt-stack > .by-lead { grid-area: lead; }
  .byt-finder-head .byt-finder-search { grid-area: form; align-self: end; margin: 0; max-width: none; }
}

/* ---- Subject directory ---- */
.byt-directory { padding-top: var(--space-8); }
.byt-dir-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.byt-subjects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.byt-subjects > li { display: flex; }
.byt-subject { display: flex; flex-direction: column; width: 100%; background: var(--surface); border: var(--hairline) solid var(--line); color: var(--ink); text-decoration: none; transition: border-color 120ms ease; }
.byt-subject:hover, .byt-subject:focus-visible { border-color: var(--ink); }
.byt-subject:hover .byt-subject-name { text-decoration: underline; text-underline-offset: 5px; }
.byt-subject-img { height: 180px; flex: none; border-bottom: var(--hairline) solid var(--line); }
.byt-subject-body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); flex: 1; }
.byt-subject-name { font: 300 22px/30px var(--font-sans); }
.byt-subject-body .by-small { flex: 1; }
.byt-subject-meta { margin-top: var(--space-3); padding-top: var(--space-3); border-top: var(--hairline) solid var(--line); font: 600 12px/16px var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; }
.byt-dir-types { margin-top: var(--space-8); padding-top: var(--space-6); border-top: var(--hairline) solid var(--line); display: flex; flex-direction: column; gap: var(--space-4); }

/* ---- Finder with filters ---- */
.byt-finder { padding-top: var(--space-7); }
.bt-finder { grid-template-columns: 264px minmax(0, 1fr); gap: var(--space-8); }
.byt-results { min-width: 0; }
.byt-filters-toggle { display: none; width: 100%; justify-content: space-between; list-style: none; background: var(--surface); }
.byt-filters-toggle::-webkit-details-marker { display: none; }
.byt-filters-toggle::after { content: "+"; font-size: 18px; line-height: 16px; font-weight: 400; letter-spacing: 0; }
.byt-filters-wrap[open] > .byt-filters-toggle::after { content: "-"; }
.bt-filters { gap: var(--space-6); }
.bt-filters .bt-chip.is-block { min-height: 40px; padding: 8px 12px; border-color: transparent; font-size: 14px; line-height: 20px; letter-spacing: 0.01em; text-transform: none; font-weight: 500; text-align: left; }
.bt-filters .bt-chip.is-block:hover { background: var(--surface); border-color: var(--line-strong); }
.bt-filters .bt-chip.is-block[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.bt-filters .bt-count { font-size: 13px; letter-spacing: 0; flex: none; }
.bt-filters fieldset { gap: 2px; }
.bt-results-head { align-items: center; }
.bt-results-head .by-lead { font-size: 15px; line-height: 24px; font-weight: 600; }
.byt-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bt-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: var(--hairline) solid var(--ink); background: var(--surface); color: var(--ink); font: 600 12px/16px var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.bt-pill:hover { background: var(--ink); color: var(--surface); }
.byt-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-5); flex-wrap: wrap; margin: var(--space-8) 0 var(--space-5); padding-bottom: var(--space-3); border-bottom: var(--hairline) solid var(--line-strong); }
.byt-group-head > p { margin: 0; max-width: 560px; }
.bt-results-head + .byt-group-head { margin-top: 0; }
.byt-group-head + .bt-cards { margin-top: 0; }
.byt-group-head + .bt-cards .bt-card { border-top: 0; padding-top: 0; }
.byt-more { margin-top: var(--space-9); }
.byt-more .byt-group-head { margin-top: 0; }

/* ---- Qualification levels ---- */
.byt-content:has(.byt-pathway) { max-width: none; }
.byt-content:has(.byt-pathway) > p { max-width: 760px; }
.byt-pathway-nav { gap: 8px 28px; margin: var(--space-5) 0 0; }
.byt-pathway-nav a { font-size: 12px; padding: 10px 0 4px; }
.byt-pathway-level { max-width: 1000px; }
.byt-pathway-level h2 { margin: var(--space-7) 0 var(--space-4); }
.byt-pathway li { grid-template-columns: minmax(0, 1fr) 100px 240px; padding: 16px 0; font-size: 16px; line-height: 24px; }
.byt-pathway a { text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 5px; border-bottom: 0; justify-self: start; }
.byt-pathway a:hover { text-decoration-color: transparent; }
.byt-pathway li .by-small { font-size: 14px; }
@media (max-width: 700px) { .byt-pathway li { grid-template-columns: minmax(0, 1fr) auto; } }

/* ---- Classroom dates ---- */
.byt-date-row { padding: 20px 0; font-size: 15px; line-height: 24px; align-items: center; }
.byt-date-when strong { font-size: 15px; }
.byt-date-what a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.byt-date-what a:hover { border-bottom-color: transparent; }
.byt-date-what span { font-size: 14px; line-height: 22px; }
.byt-date-action .by-btn { min-height: 44px; padding: 0 24px; border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.byt-date-action .by-btn:hover { background: var(--ink); color: var(--surface); }
.byt-dates-month > h2 { font-size: 26px; line-height: 34px; }
.byt-dates-month { margin-top: var(--space-7); }

/* ---- Cards ---- */
.bt-card { background: transparent; }
.bt-card .by-image, .bt-card .bt-card-img { display: block; height: 200px; border-bottom: var(--hairline) solid var(--line); }
.bt-card .bt-card-img img { transition: opacity 160ms ease; }
.bt-card .bt-card-img:hover img { opacity: 0.88; }
.bt-card .bt-meta { gap: 2px 16px; }
.bt-cards { align-items: stretch; }

/* ---- Chips ---- */
.bt-chip.is-solid { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.bt-chip.is-solid:hover { background: var(--ink-raised); }
.byt-home-subjects { margin-top: var(--space-7); display: flex; flex-direction: column; gap: var(--space-3); }

/* ---- Text over images always sits on a dark fade so the words stay readable ---- */
.by-image .by-caption { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.by-image:has(.by-caption)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(to top, rgba(22, 21, 19, 0.7), rgba(22, 21, 19, 0)); pointer-events: none; }
.by-image:has(.by-caption) .by-caption { z-index: 1; }

/* ---- Footer ---- */
.byt-footer-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
.by-footer-col a { display: inline-block; padding: 3px 0; }
.by-footer-legal nav a { padding: 6px 0; display: inline-block; }

/* ---- Home page ---- */
.by-stats { padding: var(--space-7) 0; }
@media (min-width: 901px) { .by-stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.by-stat-cell .by-body { max-width: 240px; margin: 0 auto; }
.bt-bento > * { padding: var(--space-6); }
.bt-bento .by-body, .bt-bento .by-small { color: var(--ink-muted); }

/* ---- Cart and checkout totals ---- */
.by-root .shop_table { width: 100%; border-collapse: collapse; }
.by-root .shop_table th, .by-root .shop_table td { padding: 14px 0; border-bottom: var(--hairline) solid var(--line); text-align: left; font-size: 15px; line-height: 24px; vertical-align: top; }
.by-root .shop_table td:last-child, .by-root .shop_table th:last-child { text-align: right; }
.by-root .shop_table tr.order-total th, .by-root .shop_table tr.order-total td { border-top: var(--hairline) solid var(--line-strong); border-bottom: 0; font-weight: 600; font-size: 17px; }
.by-root .shop_table thead th { font: 700 12px/16px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); border-bottom: var(--hairline) solid var(--line-strong); }

/* ---- Touch targets and focus ---- */
.by-root a.bt-chip, .by-root button.bt-chip, .byt-menu-toggle, .byt-basket-link, .byt-search-toggle, .byt-account-link { min-height: 44px; }
@media (max-width: 1239px) { .byt-menu-toggle { min-width: 44px; justify-content: center; align-items: center; } }
.byt-basket-link, .byt-search-toggle, .byt-account-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; }
.by-textlink { min-height: 44px; }
.bt-note a { display: inline-block; padding: 12px 0; }
.bt-note { font-size: 12px; }

/* ---- Small numerals and labels never drop below 12px ---- */
.by-numeral { font-size: 12px; line-height: 16px; }

/* ---- Phones and small tablets ---- */
@media (max-width: 1100px) {
  .byt-subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-cards, .bt-cards.is-dense { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .byt-footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .bt-finder { grid-template-columns: 1fr; gap: var(--space-6); }
  .byt-filters-toggle { display: inline-flex; }
  .byt-filters-wrap:not([open]) > .bt-filters { display: none; }
  .byt-filters-wrap[open] > .bt-filters { margin-top: var(--space-4); padding: var(--space-4); border: var(--hairline) solid var(--line); background: var(--surface); }
  .bt-cards, .bt-cards.is-dense { grid-template-columns: 1fr; gap: var(--space-6); }
  .byt-subjects { grid-template-columns: 1fr; gap: var(--space-4); }
  .byt-subject { flex-direction: row; }
  .byt-subject-img { width: 112px; height: auto; min-height: 100%; flex: none; border-bottom: 0; border-right: var(--hairline) solid var(--line); }
  .byt-subject-body { padding: var(--space-4); }
  .byt-subject-name { font-size: 19px; line-height: 26px; }
  .byt-subject-meta { margin-top: var(--space-2); padding-top: var(--space-2); }
  .byt-footer-cols { grid-template-columns: 1fr 1fr; }
  .byt-group-head { margin-top: var(--space-7); }
  .byt-menu .sub-menu.is-mega { display: none; width: auto; max-width: none; grid-template-columns: 1fr; padding: 0 0 0 16px; border: 0; }
  .by-header-nav.is-open .byt-menu > li { display: block; }
  .by-header-nav.is-open .byt-menu li.is-expanded > .sub-menu.is-mega { display: grid; }
  .by-header-nav.is-open .byt-menu .menu-item-has-children > a { justify-content: space-between; }
  .by-header-nav.is-open .byt-menu .sub-menu a { min-height: 48px; padding: 12px 0; font-size: 14px; letter-spacing: 0.06em; }
  .by-lead { font-size: 16px; line-height: 26px; }
  .byt-finder-search { max-width: none; }
}
@media (max-width: 520px) {
  .by-header-inner { padding-left: 16px; padding-right: 16px; }
  .by-logo-mark { height: 22px; width: auto; }
  .by-logo-word { font-size: 16px !important; margin-left: 0.9em; }
  .byt-basket-link, .byt-search-toggle, .byt-account-link, .byt-menu-toggle { min-width: 40px; }
  .byt-finder-search-row { flex-direction: column; }
  .byt-footer-cols { grid-template-columns: 1fr; }
  .byt-subject { flex-direction: column; }
  .byt-subject-img { width: 100%; height: 150px; min-height: 0; border-right: 0; border-bottom: var(--hairline) solid var(--line); }
}

/* ===================== Round 15: Amelia event list contrast and alignment, form alignment ===================== */
/* Amelia fades past or closed events with the am-ghost class and uses a light green for "Open"; both fell under 4.5:1 on white. */
[class*="amelia"] .am-ghost,
[class*="amelia"] .am-ec__period-text,
[class*="amelia"] .am-ec__period-time,
[class*="amelia"] .am-ec__info-location,
[class*="amelia"] .am-ec__info-availability.closed { color: var(--ink-muted) !important; opacity: 1 !important; }
[class*="amelia"] .am-ec__info-availability.open { color: #0b6b21 !important; font-weight: 600; }
[class*="amelia"] .am-ec__info-name { color: var(--ink) !important; }
[class*="amelia"] .am-ec__info-name.am-ghost { color: var(--ink-muted) !important; }
/* Give every row the same date column so titles line up whether or not a row has the "Begins" line. */
[class*="amelia"] .am-ec__period { min-width: 92px; flex: none; display: flex; flex-direction: column; justify-content: flex-end; }
[class*="amelia"] .am-ec__info { flex: 1 1 auto; }

/* Form rows: when a label wraps onto two lines the inputs in that row still line up. */
.bt-fields > div:not(.is-full) { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.bt-fields > div:not(.is-full) > .bt-label { margin: 0; }

/* Contact: form on the left, ways to reach us on the right, so the page is not a narrow strip beside empty space. */
.byt-content:has(.byt-contact-wrap) { max-width: 1040px; }
.byt-content:has(.byt-contact-wrap) > p { max-width: 640px; }
.byt-contact-wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 64px; align-items: start; margin-top: 8px; }
.byt-contact-aside { background: var(--surface-soft); padding: 32px; display: grid; gap: 28px; }
.byt-contact-aside p { margin: 0; font: 400 15px/24px var(--font-sans); }
.byt-contact-aside .byt-contact-label { font: 700 12px/16px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 8px; }
.byt-contact-aside .byt-contact-note { color: var(--ink-muted); font-size: 14px; line-height: 22px; margin-top: 4px; }
@media (max-width: 900px) {
  .byt-contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .byt-contact-aside { padding: 24px; }
}
/* Small badge on the basket icon stays legible. */
.byt-basket-count { font-size: 12px; }

/* Portrait pages (About): picture on the left, name and story on the right. The portrait file is a circle on a wider transparent canvas, so it is cropped to a square. */
.byt-content > p:first-child > img:only-child { display: block; width: 100%; max-width: 360px; aspect-ratio: 1 / 1; object-fit: cover; }
@media (min-width: 901px) {
  .byt-content:has(> p:first-child > img:only-child):has(> h3:nth-child(2)) { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); column-gap: 72px; max-width: 1040px; align-items: start; }
  .byt-content:has(> p:first-child > img:only-child):has(> h3:nth-child(2)) > * { grid-column: 2; }
  .byt-content:has(> p:first-child > img:only-child):has(> h3:nth-child(2)) > p:first-child { grid-column: 1; grid-row: 1 / span 12; margin: 0; }
  .byt-content:has(> p:first-child > img:only-child):has(> h3:nth-child(2)) > h3 { margin-top: 0; font-size: 36px; line-height: 44px; }
  .byt-content:has(> p:first-child > img:only-child):has(> h3:nth-child(2)) > h6 { margin-top: 0; }
}
/* Nothing under 12px: table heads on the basket and the small tags on course pages. */
.byt-content th, .by-root th { font-size: 12px; line-height: 16px; }
.bt-tag { font-size: 12px; }
.byt-contact-main > .byt-contact { margin-top: 0; }

/* Course hero: a portrait or square photo is cropped to the same 16:9 frame as the others, so the booking box is never pushed far down the page. */
.single-product .by-image > img.wp-post-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 35%; }
/* The first heading of the About block sits close under its label. */
.byt-content > h2:first-child { margin-top: 0; }
/* Sub-headings converted from the old accordion. */
.byt-content > h3 { margin: 32px 0 12px; }

/* Course page on a phone or tablet: the price and booking box follows the hero image instead of sitting after the whole description. */
@media (max-width: 900px) {
  .bt-course > .bt-stack { display: contents; }
  .bt-course > .bt-stack > .by-image { order: 0; }
  .bt-course > .bt-sticky { order: 1; }
  .bt-course > .bt-stack > section { order: 2; }
}

/* Order tables: label cells in the body and footer use the same light rule as the value cells (only the heading row and the total carry a strong rule). */
.woocommerce table.shop_table tbody th, .woocommerce table.shop_table tfoot th { border-bottom-color: var(--line); }

/* Basket on a phone: thumbnail left, course name and subtotal beside it, remove cross top right. (Quantity is never shown: courses are sold one per order.) */
@media (max-width: 768px) {
  .woocommerce table.shop_table_responsive tr td::before { font-size: 12px; line-height: 16px; float: none; margin-right: 8px; }
  .woocommerce table.shop_table_responsive tr td.product-thumbnail::before,
  .woocommerce table.shop_table_responsive tr td.product-name::before,
  .woocommerce table.shop_table_responsive tr td.product-remove::before { display: none; }
  .woocommerce-cart-form table.shop_table_responsive tr.cart_item { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: start; position: relative; padding: 16px 0; }
  .woocommerce-cart-form table.shop_table_responsive tr.cart_item td { display: block; padding: 0; text-align: left !important; }
  .woocommerce-cart-form table.shop_table_responsive tr.cart_item td.product-thumbnail { grid-column: 1; grid-row: 1 / span 2; }
  .woocommerce-cart-form table.shop_table_responsive tr.cart_item td.product-name { grid-column: 2; grid-row: 1; padding-right: 32px; font-weight: 600; }
  .woocommerce-cart-form table.shop_table_responsive tr.cart_item td.product-subtotal { grid-column: 2; grid-row: 2; }
  .woocommerce-cart-form table.shop_table_responsive tr.cart_item td.product-price,
  .woocommerce-cart-form table.shop_table_responsive tr.cart_item td.product-quantity { display: none !important; }
  .woocommerce-cart-form table.shop_table_responsive tr.cart_item td.product-remove { position: absolute; top: 12px; right: 0; width: 28px; text-align: center !important; }
  .woocommerce-cart-form table.shop_table_responsive tr.cart_item td.product-thumbnail img { width: 72px; height: 72px; object-fit: cover; }
}

/* Basket totals on a phone: label and amount share one line (the responsive table was printing every label twice). */
@media (max-width: 768px) {
  .woocommerce .cart_totals table.shop_table_responsive tr { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .woocommerce .cart_totals table.shop_table_responsive tr th,
  .woocommerce .cart_totals table.shop_table_responsive tr td { display: block; padding: 0; border: 0; text-align: left; font: 700 12px/18px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
  .woocommerce .cart_totals table.shop_table_responsive tr td { text-align: right !important; font: 600 15px/24px var(--font-sans); letter-spacing: 0; text-transform: none; }
  .woocommerce .cart_totals table.shop_table_responsive tr td::before { display: none; }
  .woocommerce .cart_totals table.shop_table_responsive tr.order-total { border-bottom: 0; border-top: 1px solid var(--line-strong); }
  .woocommerce .cart_totals table.shop_table_responsive tr.order-total td { font-size: 17px; }
}

/* Qualifications shortcut beside the subject chips: outlined with a gold underline and an arrow, so it does not read as a selected filter. */
.bt-chip.is-type { border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); }
.bt-chip.is-type:hover { background: var(--surface-soft); }
.bt-chip.is-type .by-icon { flex: none; }

/* Course cards: every row of cards lines up its image, title, details, prices, next date and link, however many lines a title takes.
   Each card becomes seven rows of the shared card grid (subgrid); browsers without subgrid keep the stacked layout. */
@supports (grid-template-rows: subgrid) {
  .bt-cards, .bt-cards.is-four, .bt-cards.is-dense { row-gap: 0; }
  .bt-cards { margin-bottom: calc(var(--space-7) * -1); }
  .bt-card { display: grid; grid-template-rows: subgrid; grid-row: span 7; row-gap: 0; gap: 0; padding-bottom: var(--space-7); }
  .bt-card > * { margin-top: 0; margin-bottom: 0; align-self: start; min-width: 0; }
  .bt-card > .bt-card-img { grid-row: 1; margin-bottom: 12px; }
  .bt-card > .bt-note { grid-row: 2; margin-bottom: 12px; }
  .bt-card > h3 { grid-row: 3; margin-bottom: 12px; }
  .bt-card > .bt-meta { grid-row: 4; margin-bottom: 12px; }
  .bt-card > .bt-prices { grid-row: 5; margin-bottom: 12px; }
  .bt-card > .bt-next { grid-row: 6; margin-bottom: 12px; }
  .bt-card > .bt-grow { display: none; }
  .bt-card > .by-textlink { grid-row: 7; justify-self: start; align-self: end; }
}

/* Top notice bar on a phone: keep one short line (the support link) instead of a wrapped sentence with a broken link. */
@media (max-width: 600px) {
  .by-utility > span { display: none; }
  .by-utility a { margin-left: 0; }
}

/* My account: addresses as two tidy boxes, orders list aligned on the middle of each row. */
.woocommerce-MyAccount-content > p { margin: 0 0 24px; font-size: 15px; line-height: 24px; }
.woocommerce-Address { border: 1px solid var(--line); background: var(--surface); padding: 24px; min-width: 0; }
.woocommerce-Address-title { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.woocommerce-Addresses .woocommerce-Address { float: none; width: auto; }
.woocommerce-Address-title h2, .woocommerce-Address-title h3 { margin: 0; font-size: 22px; line-height: 30px; }
.woocommerce-Address-title a.edit { font: 600 12px/16px var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.woocommerce-Address address { color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.woocommerce table.woocommerce-orders-table tbody th, .woocommerce table.woocommerce-orders-table tbody td { vertical-align: middle; padding-top: 16px; padding-bottom: 16px; line-height: 24px; }
.woocommerce-orders-table__cell-order-number a { font: 600 15px/24px var(--font-sans); letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-orders-table .button { min-height: 36px; padding: 8px 20px; }

/* Order view: no yellow highlighter on the order number, date and status; table totals aligned on the middle of the row; billing and shipping boxes side by side. */
.woocommerce mark, .byt-main mark { background: transparent; color: inherit; font-weight: 600; }
.woocommerce table.shop_table.order_details tfoot th, .woocommerce table.shop_table.order_details tfoot td,
.woocommerce table.shop_table.order_details tbody td { vertical-align: middle; padding-top: 14px; padding-bottom: 14px; line-height: 22px; }
.woocommerce-customer-details .woocommerce-columns--addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 16px; }
.woocommerce-customer-details .woocommerce-column { float: none; width: auto; min-width: 0; border: 1px solid var(--line); background: var(--surface); padding: 24px; }
.woocommerce-customer-details .woocommerce-column__title { margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--line); font-size: 22px; line-height: 30px; }
.woocommerce-customer-details address { font-style: normal; color: var(--ink-muted); font-size: 15px; line-height: 24px; border: 0; padding: 0; margin: 0; }
@media (max-width: 900px) { .woocommerce-customer-details .woocommerce-columns--addresses { grid-template-columns: 1fr; } }

/* Classroom date list on a course page: starts at the left edge of the page like the heading above it (Amelia centres it at 792px by default). */
#book-classroom .am-elf { max-width: 960px !important; padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: auto !important; }

/* Login and register boxes on My account share one height. */
.u-columns:not(.woocommerce-Addresses) { align-items: stretch; }
.u-columns:not(.woocommerce-Addresses) > div { display: flex; flex-direction: column; }
.u-columns:not(.woocommerce-Addresses) > div > form { flex: 1 1 auto; }

/* Checkout and basket totals: no repeated Subtotal line when nothing sits between it and the Total. */
.woocommerce-checkout-review-order-table tr.cart-subtotal:has(+ tr.order-total),
.cart_totals table tr.cart-subtotal:has(+ tr.order-total) { display: none; }

/* Checkout tick boxes: both confirmations read in the same ink, and the privacy line matches the notes under it. */
.woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox,
.woocommerce-terms-and-conditions-wrapper .woocommerce-terms-and-conditions-checkbox-text { color: var(--ink); }
.woocommerce-privacy-policy-text p { font-size: 14px; line-height: 22px; }

/* Phones: a plain 1fr column grows to the widest unbreakable line (the Online / Classroom price buttons) and pushed the right edge of the whole course page off screen. Columns may now shrink, and the two format buttons show the format name with its price underneath. */
@media (max-width: 900px) {
  .bt-finder, .bt-course, .bt-account, .bt-checkout, .bt-doors { grid-template-columns: minmax(0, 1fr); }
}
.bt-course > *, .bt-course .bt-stack, .bt-sticky, .bt-pricebox, .bt-pricebox > * { min-width: 0; }
.bt-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bt-two .bt-chip.is-block { flex-direction: column; justify-content: center; text-align: center; gap: 2px; padding: 8px 10px; letter-spacing: 0.12em; min-width: 0; }

/* Long web addresses pasted into page text (Cookie policy) wrap on a phone instead of running off the screen. */
.byt-content { overflow-wrap: anywhere; }

/* Staff area (Amelia employee panel): same width as the panel itself, left-aligned with the page, and without the 100px gap Amelia adds above it. */
.byt-content:has(.amelia-v2-booking) { max-width: 1024px; }
.byt-content .amelia-v2-booking #amelia-container { margin: 0 !important; max-width: none; }

/* Order confirmation: bank transfer details sit in a soft panel instead of a bare bulleted list. */
.byt-content .woocommerce-bacs-bank-details { margin: 32px 0; padding: 24px 28px; background: var(--surface-soft); }
.byt-content .woocommerce-bacs-bank-details .wc-bacs-bank-details-heading { margin: 0 0 12px; font-size: 22px; line-height: 30px; }
.byt-content .woocommerce-bacs-bank-details .wc-bacs-bank-details-account-name { margin: 0 0 12px; font: 600 15px/24px var(--font-sans); }
.byt-content ul.wc-bacs-bank-details { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.byt-content ul.wc-bacs-bank-details li { margin: 0; }

/* Course page: the title and intro sit in the left column, so the price box starts level with the title and its Add to basket button is on the first screen of a laptop. */
.bt-course-crumb { margin-bottom: -16px; }
.bt-course-head .by-section-heading .by-h1 { max-width: 640px; }
.bt-course-head .bt-lead-narrow { max-width: 620px; }

/* Page text: buttons written as "line" buttons (Get directions, View training dates) become proper outline buttons, matching the Book buttons on the dates list, instead of indented underlined text. */
.byt-content p > a.by-btn.by-btn-line { min-height: 44px; padding: 0 24px; border: 1px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; }
.byt-content p > a.by-btn.by-btn-line:hover { background: var(--ink); color: var(--surface); }

/* Car park, hotel, qualification and My learning lists start flush with their headings (page text adds a 22px indent to every list). */
.byt-content ul.byt-places, .byt-content ul.byt-pathway, .byt-content ul.byt-learning-list { padding-left: 0; }

/* Staff area: the marker for today follows the brand instead of Amelia's own blue. */
.byt-content .amelia-v2-booking .am-cape__date.am-today::before { background: var(--ink) !important; }

/* Buttons and the My account menu are not links in running text: page text underlines every link, so switch it off for these (Book buttons, See classroom dates, the account menu). */
.byt-content a.by-btn, .byt-content .woocommerce-MyAccount-navigation a { text-decoration: none; }

/* Checkout: the form column is tall and spans both rows, which stretched the first row and left a gap under "Your order". The heading row now keeps its own height and the box takes the rest. */
.woocommerce-checkout form.checkout { grid-template-rows: auto minmax(0, 1fr); }
@media (max-width: 900px) { .woocommerce-checkout form.checkout { grid-template-rows: none; } }

/* Course page date list: dates before today are hidden by the script (today and later stay). */
#book-classroom .am-ec.byt-past { display: none !important; }
.byt-no-dates { margin: 16px 0 0; color: var(--ink-muted); }

/* ===== 50-v2 ported from the design system ===== */
/* ===== Best You Training V2 additions (ported from the design system, r43). Classes are bn-*. ===== */
:root { --header-top: 80px; --header-nav: 48px; --field-height: 48px; --touch-target: 44px; --hero-image-min: 560px; --card-image: 200px; --tile-image: 180px; --summary-width: 380px; }
.by-root { --edge: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }
@media (max-width: 900px) { .by-root { --edge: var(--gutter-mobile); } }
.by-h3 { font-size: 22px; line-height: 30px; font-weight: 300; letter-spacing: 0; margin: 0; }
.by-price { font-size: 26px; line-height: 32px; font-weight: 300; letter-spacing: -0.01em; }
.by-chip-text { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.by-field-text { font-size: 14px; line-height: 20px; font-weight: 400; }
.bn-stack { display: flex; flex-direction: column; }
.bn-gap-2 { gap: var(--space-2); }
.bn-gap-3 { gap: var(--space-3); }
.bn-gap-4 { gap: var(--space-4); }
.bn-gap-5 { gap: var(--space-5); }
.bn-gap-6 { gap: var(--space-6); }
.bn-gap-7 { gap: var(--space-7); }
.bn-gap-8 { gap: var(--space-8); }
.bn-row { display: flex; flex-wrap: wrap; align-items: center; }
.bn-between { justify-content: space-between; }
.bn-band-soft { background: var(--surface-soft); }
.bn-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-6); flex-wrap: wrap; }
.bn-measure { max-width: 520px; }
.bn-field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.bn-field-label { color: var(--ink); }
.bn-input, .bn-select { height: var(--field-height); width: 100%; padding: 0 var(--space-4); border: var(--border-control) solid var(--line-strong); border-radius: var(--radius-0);
  background: var(--surface); color: var(--ink); font-family: inherit; font-size: 14px; line-height: 20px; appearance: none; -webkit-appearance: none; }
.bn-select { padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.bn-input::placeholder { color: var(--ink-muted); opacity: 1; }
[data-theme="ink"] .bn-input, [data-theme="ink"] .bn-select { background-color: transparent; }
[data-theme="ink"] .bn-select option { color: #161513; background: #fff; }
.bn-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bn-chip { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 28px; padding: 4px var(--space-3); border: var(--border-control) solid var(--line-strong); border-radius: var(--radius-0); color: var(--ink); background: transparent; font-family: inherit; cursor: pointer; text-decoration: none; }
a.bn-chip:hover, button.bn-chip:hover { background: var(--ink); color: var(--surface); }
.bn-chip.is-active { background: var(--ink); color: var(--surface); }
.bn-chip.is-quiet { border-color: var(--line); color: var(--ink-muted); cursor: default; }
.bn-chip.is-tall { min-height: 40px; padding: 8px var(--space-4); }
.bn-notice { background: var(--surface-soft); color: var(--ink); padding: var(--space-5); display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4) var(--space-5); align-items: center; border-top: var(--border-control) solid var(--line-strong); }
.bn-notice .by-body { color: var(--ink-muted); margin-top: var(--space-1); }
.bn-notice.is-stacked { grid-template-columns: 1fr; }
.bn-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); color: var(--ink-muted); }
.bn-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bn-crumbs [aria-current] { color: var(--ink); }
.bn-crumbs .by-icon { transform: rotate(-90deg); opacity: 0.6; }
.bn-utility { background: var(--surface-soft); color: var(--ink); min-height: var(--utility-height); display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: var(--space-2) var(--edge); }
.bn-utility nav { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.bn-utility a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-muted); }
.bn-utility a:hover { text-decoration-color: var(--ink); }
.bn-finder { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) auto; gap: var(--space-3); align-items: end; padding: var(--space-5); background: var(--surface-soft); border-top: var(--border-control) solid var(--line-strong); }
[data-theme="ink"] .bn-finder { border-top-color: var(--line-strong); }
.bn-finder .by-btn { height: var(--field-height); padding-left: var(--space-5); padding-right: var(--space-5); }
.bn-finder-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; color: var(--ink-muted); margin-top: var(--space-1); }
.bn-journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.bn-path { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-4); border-top: var(--hairline) solid var(--line-strong); color: var(--ink); }
.bn-path:hover .by-h3 { text-decoration: underline; text-underline-offset: 5px; }
.bn-path .by-body { color: var(--ink-muted); flex: 1; }
.bn-path-tags { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); color: var(--ink-muted); }
.bn-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6) var(--space-6); }
.bn-tile { display: flex; flex-direction: column; gap: var(--space-3); color: var(--ink); }
.bn-tile .by-image { height: var(--tile-image); }
.bn-tile .by-body { color: var(--ink-muted); }
.bn-tile:hover .by-label { text-decoration: underline; text-underline-offset: 4px; }
.bn-more { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-top: var(--space-6); }
.bn-subjectlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-7); }
.bn-subjectlist a { display: grid; grid-template-columns: 1fr auto; gap: var(--space-1) var(--space-4); padding: var(--space-4) 0; border-top: var(--hairline) solid var(--line); align-items: center; }
.bn-subjectlist a .by-body { grid-column: 1; color: var(--ink-muted); }
.bn-subjectlist a .by-icon { grid-row: 1 / span 2; grid-column: 2; }
.bn-subjectlist a:hover .by-label { text-decoration: underline; text-underline-offset: 4px; }
.bn-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.bn-cards.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bn-card { display: flex; flex-direction: column; background: var(--surface); border: var(--hairline) solid var(--line); }
.bn-card:hover { border-color: var(--line-strong); }
.bn-card .by-image { height: var(--card-image); }
.bn-card-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.bn-card-body .by-h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.bn-card-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-3); margin-top: auto; padding-top: var(--space-4); border-top: var(--hairline) solid var(--line); }
.bn-price { display: flex; flex-direction: column; gap: var(--space-1); }
.bn-rail > .bn-card { min-width: 0; }
.bn-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: var(--space-4); overflow-x: auto; padding-bottom: var(--space-3); }
.bn-trust { display: grid; grid-template-columns: 1fr auto; gap: var(--space-7); align-items: center; padding: var(--space-6) 0; border-top: var(--hairline) solid var(--line); border-bottom: var(--hairline) solid var(--line); }
.bn-trust-names { display: flex; flex-wrap: wrap; gap: var(--space-5) var(--space-8); align-items: baseline; }
.bn-trust-name { font-size: 20px; line-height: 24px; font-weight: 300; letter-spacing: 0.22em; text-transform: uppercase; }
.bn-trust-note { display: flex; flex-direction: column; gap: var(--space-1); max-width: 360px; color: var(--ink-muted); }
.bn-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); counter-reset: step; }
.bn-step { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-4); border-top: var(--hairline) solid var(--line-strong); }
.bn-step .by-stat { color: var(--ink); }
.bn-step .by-body { color: var(--ink-muted); }
.bn-academies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-9); }
.bn-academy { display: flex; flex-direction: column; gap: var(--space-3); }
.bn-academy .by-image { height: var(--feature-image); margin-bottom: var(--space-3); }
.bn-address { font-style: normal; color: var(--ink-muted); }
.bn-academy-links { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-2); }
.bn-dates { display: flex; flex-direction: column; }
.bn-dates-week { padding: var(--space-4) 0 var(--space-3); display: flex; justify-content: space-between; gap: var(--space-4); border-bottom: var(--border-control) solid var(--line-strong); }
.bn-dates-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 160px 110px 140px; gap: var(--space-5); align-items: center; padding: var(--space-4) 0; border-bottom: var(--hairline) solid var(--line); }
.bn-dates-row:hover { background: var(--surface-soft); }
.bn-dates-when { display: flex; flex-direction: column; gap: var(--space-1); }
.bn-dates-when .is-next { display: inline-flex; align-items: center; gap: var(--space-2); }
.bn-dates-when .is-next::before { content: ""; width: 12px; height: var(--rule-gold); background: var(--gold); }
.bn-dates-course .by-body { color: var(--ink-muted); }
.bn-dates-place { display: inline-flex; gap: var(--space-2); align-items: center; }
.bn-dates-row .by-btn { min-height: 40px; padding: var(--space-2) var(--space-5); }
.bn-dates-head { display: grid; grid-template-columns: 150px minmax(0, 1fr) 160px 110px 140px; gap: var(--space-5); padding: var(--space-3) 0; color: var(--ink-muted); border-bottom: var(--hairline) solid var(--line); }
.bn-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.bn-review { border-top: var(--hairline) solid var(--line-strong); padding-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.bn-review q { quotes: none; font-size: 18px; line-height: 28px; font-weight: 300; }
.bn-review.is-slot q { color: var(--ink-muted); }
.bn-faq-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-9); align-items: start; }
.bn-faq details { border-top: var(--hairline) solid var(--line); }
.bn-faq details:last-child { border-bottom: var(--hairline) solid var(--line); }
.bn-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); padding: var(--space-5) 0; min-height: var(--touch-target); font-size: 16px; line-height: 24px; font-weight: 500; }
.bn-faq summary::-webkit-details-marker { display: none; }
.bn-faq summary::after { content: "+"; font-size: 22px; font-weight: 300; line-height: 1; flex: none; }
.bn-faq details[open] summary::after { content: "\2212"; }
.bn-faq details p { margin: 0 0 var(--space-5); color: var(--ink-muted); max-width: 560px; font-size: 14px; line-height: 22px; }
.bn-cta { display: grid; grid-template-columns: 1fr auto; gap: var(--space-7); align-items: center; }
.bn-cta .by-statement { max-width: 620px; }
.bn-cta .by-body { color: var(--ink-muted); max-width: 480px; margin-top: var(--space-3); }
.bn-cta-actions { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.bn-group { display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); flex-wrap: wrap; padding: var(--space-5) var(--edge); border-top: var(--hairline) solid var(--line); background: var(--surface); color: var(--ink); }
.bn-group nav { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.bn-group nav a { color: var(--ink-muted); }
.bn-group nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bn-footer { padding: var(--space-8) var(--edge) var(--space-6); background: var(--surface); color: var(--ink); }
.bn-footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-6); flex-wrap: wrap; }
.bn-footer-contact { display: flex; flex-direction: column; gap: var(--space-1); text-align: right; }
.bn-footer-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)) minmax(0, 1fr); gap: var(--space-6); margin-top: var(--space-7); }
.bn-footer-col { display: flex; flex-direction: column; gap: var(--space-2); }
.bn-footer-col .by-label { margin-bottom: var(--space-2); }
.bn-footer-col a { color: var(--ink-muted); }
.bn-footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bn-footer-legal { display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); margin-top: var(--space-8); padding-top: var(--space-5); border-top: var(--hairline) solid var(--line); color: var(--ink-muted); flex-wrap: wrap; }
.bn-footer-legal nav { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.bn-pagehead { background: var(--surface); border-bottom: var(--hairline) solid var(--line); }
.bn-pagehead-grid { padding: var(--space-6) var(--edge) var(--space-8); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: var(--space-9); align-items: end; }
.bn-pagehead-grid.is-plain { grid-template-columns: minmax(0, 1fr); }
.bn-pagehead-copy { display: flex; flex-direction: column; gap: var(--space-4); }
.bn-pagehead-copy .by-h1 { max-width: 640px; }
.bn-pagehead-copy .by-lead { color: var(--ink-muted); max-width: 560px; }
.bn-pagehead .bn-crumbs { margin-bottom: var(--space-5); }
.bn-pagehead-media .by-image { height: 240px; }
.bn-filter { background: var(--surface-soft); padding: var(--space-5) var(--edge); }
.bn-filter-inner { padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 220px)) 1fr; gap: var(--space-4); align-items: end; }
.bn-filter-count { justify-self: end; color: var(--ink-muted); text-align: right; }
.bn-filter-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.bn-course { display: grid; grid-template-columns: minmax(0, 1fr) var(--summary-width); gap: var(--space-9); align-items: start; }
.bn-course-main { display: flex; flex-direction: column; gap: var(--space-8); min-width: 0; }
.bn-course-main .by-image { height: 360px; }
.bn-summary { border: var(--border-control) solid var(--line-strong); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); position: sticky; top: var(--space-6); background: var(--surface); }
.bn-seg { display: grid; grid-template-columns: 1fr 1fr; border: var(--border-control) solid var(--line-strong); }
.bn-seg button { background: transparent; color: var(--ink); border: 0; min-height: 44px; font-family: inherit; cursor: pointer; }
.bn-seg button + button { border-left: var(--border-control) solid var(--line-strong); }
.bn-seg button.is-active { background: var(--ink); color: var(--surface); }
.bn-summary-price { display: flex; align-items: baseline; gap: var(--space-3); }
.bn-summary-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.bn-summary-list li { padding: var(--space-3) 0; border-top: var(--hairline) solid var(--line); color: var(--ink-muted); }
.bn-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: var(--hairline) solid var(--line); }
.bn-facts > div { padding: var(--space-4) var(--space-4) var(--space-4) 0; border-bottom: var(--hairline) solid var(--line); display: flex; flex-direction: column; gap: var(--space-1); }
.bn-facts dt { margin: 0; color: var(--ink-muted); }
.bn-facts dd { margin: 0; }
.bn-learn { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-6); }
.bn-learn li { padding: var(--space-3) 0; border-top: var(--hairline) solid var(--line); display: grid; grid-template-columns: 28px 1fr; }
.bn-curriculum details { border-top: var(--hairline) solid var(--line); }
.bn-curriculum details:last-child { border-bottom: var(--hairline) solid var(--line); }
.bn-curriculum summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-4) 0; }
.bn-curriculum summary::-webkit-details-marker { display: none; }
.bn-curriculum .bn-curr-body { padding: 0 0 var(--space-5) 56px; color: var(--ink-muted); }
.bn-progress { height: 4px; background: var(--line); position: relative; }
.bn-progress > span { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.bn-learner-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-9); align-items: start; }
.bn-learner-card { border: var(--hairline) solid var(--line); background: var(--surface); display: grid; grid-template-columns: 160px 1fr; }
.bn-learner-card .by-image { height: 100%; min-height: 140px; }
.bn-learner-card-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.bn-learner-card.is-continue { grid-template-columns: 280px 1fr; border-color: var(--line-strong); }
.bn-learner-list { display: flex; flex-direction: column; gap: var(--space-4); }
.bn-booking { border-top: var(--border-control) solid var(--line-strong); padding: var(--space-5) 0; display: flex; flex-direction: column; gap: var(--space-2); }
.bn-herophoto { position: relative; isolation: isolate; overflow: hidden; background: var(--surface); color: var(--ink); }
.bn-herophoto-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; z-index: -2; }
.bn-herophoto-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(22, 21, 19, 0.94) 0%, rgba(22, 21, 19, 0.82) 40%, rgba(22, 21, 19, 0.52) 72%, rgba(22, 21, 19, 0.42) 100%); }
.bn-herophoto-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: var(--space-8); align-items: end; padding: var(--space-9) var(--edge) var(--space-7); min-height: 520px; }
.bn-herophoto-copy { display: flex; flex-direction: column; gap: var(--space-5); max-width: 700px; }
.bn-herophoto-copy .by-display { font-size: 52px; line-height: 60px; text-wrap: balance; }
.bn-claims { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-6); }
.bn-claims li { display: flex; gap: var(--space-3); align-items: baseline; }
.bn-claims li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--gold); transform: translateY(-1px); }
.bn-accred { display: block; justify-self: end; width: 100%; max-width: 380px; }
.bn-accred img { display: block; width: 100%; height: auto; }
.bn-herophoto-finder { padding: 0 var(--edge) var(--space-8); }
.bn-herophoto-finder .bn-finder { background: rgba(22, 21, 19, 0.88); }
.bn-cats { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.bn-cats > .by-eyebrow-text { padding-top: var(--space-3); }
.bn-paylater { display: block; border: var(--hairline) solid var(--line); background: var(--surface); }
.bn-paylater img { display: block; width: 100%; height: auto; }
.bn-signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-9); align-items: start; }
.bn-signup-copy { display: flex; flex-direction: column; gap: var(--space-4); }
.bn-signup-copy .by-body { color: var(--ink-muted); max-width: 440px; }
.bn-signup-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.bn-signup-fields .bn-check, .bn-signup-fields .by-btn { grid-column: 1 / -1; }
.bn-signup-fields .by-btn { justify-self: start; }
.bn-check { display: flex; gap: var(--space-3); align-items: flex-start; cursor: pointer; }
.bn-check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: var(--border-control) solid var(--line-strong); border-radius: 0; background: transparent; display: grid; place-content: center; cursor: pointer; }
.bn-check input:checked { background: var(--ink); }
.bn-check input:checked::after { content: ""; width: 8px; height: 8px; background: var(--surface); }
.bn-check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bn-check .by-small { color: var(--ink-muted); }
.bn-check a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bn-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.bn-why > div { border-top: var(--border-control) solid var(--line-strong); padding-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.bn-team { display: flex; flex-direction: column; gap: var(--space-9); }
.bn-team-group { display: flex; flex-direction: column; gap: var(--space-6); }
.bn-team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-7) var(--space-6); }
.bn-member { display: flex; flex-direction: column; gap: var(--space-2); }
.bn-member .by-image { height: auto; aspect-ratio: 4 / 5; margin-bottom: var(--space-3); }
.bn-location { border-top: var(--border-control) solid var(--line-strong); padding-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-6); }
.bn-location-head { display: flex; align-items: baseline; gap: var(--space-5); flex-wrap: wrap; }
.bn-location-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-7); }
.bn-location-grid > div { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.bn-places { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.bn-places li { display: flex; flex-direction: column; gap: 2px; }
.bn-location.is-compact .bn-location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.bn-maphero { position: relative; isolation: isolate; overflow: hidden; background: var(--surface); color: var(--ink); padding: var(--space-9) 0; }
.bn-maphero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bn-maphero-shade { position: absolute; inset: 0; z-index: -1; background: rgba(22, 21, 19, 0.86); }
.bn-maphero-inner { padding: 0 var(--edge); display: flex; flex-direction: column; gap: var(--space-7); }
.bn-maphero-foot { color: var(--ink-muted); margin: 0; }
.bn-maphero .bn-address, .bn-maphero .by-muted { color: var(--ink-muted); }
.bn-tabs { border-bottom: var(--hairline) solid var(--line); background: var(--surface); }
.bn-tabs-inner { display: flex; gap: var(--space-6); padding: 0 var(--edge); overflow-x: auto; }
.bn-tab { display: inline-flex; align-items: center; min-height: 52px; border-bottom: var(--border-control) solid transparent; margin-bottom: -1px; color: var(--ink-muted); white-space: nowrap; }
.bn-tab:hover { color: var(--ink); }
.bn-tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.bn-footer-signup { padding-bottom: var(--space-8); margin-bottom: var(--space-8); border-bottom: var(--hairline) solid var(--line); }
.bn-footer-locations p { margin: 0; display: flex; flex-direction: column; gap: 2px; color: var(--ink-muted); }
.bn-footer-locations .by-title-sm { color: var(--ink); }
.bn-footer-locations > a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; margin-top: var(--space-1); }
.bn-footer-social { display: flex; gap: var(--space-4); justify-content: flex-end; }
.bn-footer-contact a { color: var(--ink); }
.bn-pay { display: flex; flex-direction: column; gap: var(--space-3); }
.bn-pay img { width: 120px; height: auto; display: block; }
.bn-band-soft .by-image { background: var(--surface); }
.bn-band-soft .bn-card { background: var(--surface); }
@media (max-width: 900px) {
  .by-root .by-h3 { font-size: 20px; line-height: 28px; }
  .by-root .bn-section-head { align-items: flex-start; flex-direction: column; gap: var(--space-4); }
  .by-root .bn-notice { grid-template-columns: 1fr; }
  .by-root .bn-utility { padding: var(--space-2) var(--gutter-mobile); justify-content: center; text-align: center; }
  .by-root .bn-utility nav { display: none; }
  .by-root .bn-finder { grid-template-columns: 1fr; padding: var(--space-5) var(--space-4); }
  .by-root .bn-journey { grid-template-columns: 1fr; gap: 0; }
  .by-root .bn-path { padding: var(--space-5) 0; }
  .by-root .bn-tiles { grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-4); }
  .by-root .bn-tile .by-image { height: 120px; }
  .by-root .bn-tile .by-body { display: none; }
  .by-root .bn-subjectlist { grid-template-columns: 1fr; }
  .by-root .bn-cards, .by-root .bn-cards.is-three { grid-template-columns: 1fr; }
  .by-root .bn-card .by-image { height: 160px; }
  .by-root .bn-rail { margin-right: calc(-1 * var(--gutter-mobile)); padding-right: var(--gutter-mobile); scrollbar-width: none; }
  .by-root .bn-trust { grid-template-columns: 1fr; gap: var(--space-5); }
  .by-root .bn-steps { grid-template-columns: 1fr; gap: 0; }
  .by-root .bn-step { display: grid; grid-template-columns: 56px 1fr; column-gap: var(--space-4); padding: var(--space-5) 0; }
  .by-root .bn-step .by-stat { grid-row: 1 / span 3; font-size: 32px; line-height: 36px; }
  .by-root .bn-academies { grid-template-columns: 1fr; gap: var(--space-7); }
  .by-root .bn-academy .by-image { height: 160px; }
  .by-root .bn-dates-head { display: none; }
  .by-root .bn-dates-row { grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-4); padding: var(--space-5) var(--space-4); }
  .by-root .bn-dates-row .bn-dates-course { grid-column: 1 / -1; grid-row: 2; }
  .by-root .bn-dates-row .bn-dates-place { grid-row: 3; }
  .by-root .bn-dates-row .bn-price-sm { grid-row: 1; grid-column: 2; text-align: right; }
  .by-root .bn-dates-row .by-btn { grid-column: 1 / -1; grid-row: 4; margin-top: var(--space-3); }
  .by-root .bn-reviews { grid-template-columns: 1fr; gap: var(--space-6); }
  .by-root .bn-faq-wrap { grid-template-columns: 1fr; gap: var(--space-6); }
  .by-root .bn-cta { grid-template-columns: 1fr; gap: var(--space-5); }
  .by-root .bn-group { padding: var(--space-5) var(--gutter-mobile); }
  .by-root .bn-group nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-5); width: 100%; }
  .by-root .bn-footer { padding: var(--space-7) var(--gutter-mobile) var(--space-6); }
  .by-root .bn-footer-cols { grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-5); }
  .by-root .bn-footer-locations { grid-column: 1 / -1; }
  .by-root .bn-footer-contact { text-align: left; }
  .by-root .bn-pagehead-grid { grid-template-columns: 1fr; padding: var(--space-5) var(--gutter-mobile) var(--space-7); gap: var(--space-6); }
  .by-root .bn-pagehead-media .by-image { height: 160px; }
  .by-root .bn-filter { padding: var(--space-5) var(--gutter-mobile); }
  .by-root .bn-filter-inner { grid-template-columns: 1fr; }
  .by-root .bn-filter-count { justify-self: start; text-align: left; }
  .by-root .bn-course { grid-template-columns: 1fr; gap: var(--space-7); }
  .by-root .bn-summary { position: static; padding: var(--space-5); }
  .by-root .bn-course-main .by-image { height: 200px; }
  .by-root .bn-facts, .by-root .bn-learn { grid-template-columns: 1fr; }
  .by-root .bn-learner-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .by-root .bn-learner-card, .by-root .bn-learner-card.is-continue { grid-template-columns: 1fr; }
  .by-root .bn-learner-card .by-image { height: 120px; min-height: 0; }
  .by-root .bn-herophoto-inner { grid-template-columns: 1fr; padding: var(--space-8) var(--gutter-mobile) var(--space-6); gap: var(--space-6); min-height: 0; }
  .by-root .bn-herophoto-copy .by-display { font-size: 38px; line-height: 46px; }
  .by-root .bn-claims { grid-template-columns: 1fr; }
  .by-root .bn-accred { justify-self: start; max-width: 260px; }
  .by-root .bn-herophoto-finder { padding: 0 var(--gutter-mobile) var(--space-7); }
  .by-root .bn-cats { grid-template-columns: 1fr; gap: var(--space-4); }
  .by-root .bn-cats > .by-eyebrow-text { padding-top: 0; }
  .by-root .bn-paylater { max-width: 340px; margin: 0 auto; }
  .by-root .bn-signup { grid-template-columns: 1fr; gap: var(--space-6); }
  .by-root .bn-signup-fields { grid-template-columns: 1fr; }
  .by-root .bn-why { grid-template-columns: 1fr; gap: var(--space-6); }
  .by-root .bn-team { gap: var(--space-8); }
  .by-root .bn-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); }
  .by-root .bn-member .by-image { height: auto; }
  .by-root .bn-location-grid, .by-root .bn-location.is-compact .bn-location-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .by-root .bn-maphero { padding: var(--space-8) 0; }
  .by-root .bn-maphero-inner { padding: 0 var(--gutter-mobile); }
  .by-root .bn-tabs-inner { padding: 0 var(--gutter-mobile); gap: var(--space-5); }
  .by-root .bn-footer-social { justify-content: flex-start; }
}

/* ===== 51-v2 site ===== */
/* ===== Best You Training V2 (r43): header, mobile menu, sign-up, team, locations and page glue. Hand-written; the rest of bn-* is ported from the design system. ===== */

/* ---- Fields (search box, inputs, selects) ---- */
.bn-searchbox { position: relative; display: flex; align-items: center; }
.bn-searchbox .by-icon { position: absolute; left: var(--space-4); pointer-events: none; color: var(--ink); }
.by-root .bn-searchbox input.bn-input, .bn-searchbox input.bn-input { padding-left: 44px; }
.bn-searchform { margin: 0; min-width: 0; }
.by-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- Brand lockup ---- */
.bn-lockup { display: inline-flex; align-items: center; gap: var(--space-4); color: var(--ink); white-space: nowrap; }
.bn-lockup-words { display: inline-flex; align-items: baseline; gap: 0.9em; line-height: 1; }
.bn-lockup-words .by-wordmark, .bn-lockup-words .by-door { font-size: inherit; line-height: 1; }
.bn-lockup .by-logo-mark { flex: none; }

/* ---- Utility bar ---- */
.bn-utility { background: var(--surface-soft); color: var(--ink); min-height: var(--utility-height); display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: var(--space-2) var(--edge); font-size: 13px; line-height: 20px; }
.bn-utility nav { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.bn-utility a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-muted); }
.bn-utility a:hover { text-decoration-color: var(--ink); }

/* ---- Header: logo centred, the menu in its own row beneath ---- */
.bn-header { position: relative; z-index: 50; background: var(--surface); color: var(--ink); border-bottom: var(--hairline) solid var(--line); }
.bn-header-top { height: var(--header-top); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-6); padding: 0 var(--edge); }
.bn-header-left { display: flex; align-items: center; min-width: 0; gap: var(--space-3); }
.bn-header-left .bn-searchform { width: 100%; max-width: 300px; }
.bn-header-right { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-4); }
.bn-signin { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.bn-header-icons { display: flex; gap: var(--space-2); }
.bn-iconbtn { background: none; border: 0; padding: 6px; color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; position: relative; min-width: 44px; min-height: 44px; font-family: inherit; }
.bn-count { position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; background: var(--ink); color: var(--surface); font-size: 12px; line-height: 16px; font-weight: 600; text-align: center; box-sizing: border-box; letter-spacing: 0; }
.bn-count.is-empty { display: none; }
.bn-menu-btn { display: none; }
.bn-hamburger { width: 20px; height: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.bn-hamburger span { display: block; height: 1.5px; background: currentColor; transition: transform 160ms ease, opacity 160ms ease; }
.bn-menu-btn.is-open .bn-hamburger span:nth-child(2) { opacity: 0; }
.bn-menu-btn.is-open .bn-hamburger span:first-child { transform: translateY(6.25px) rotate(45deg); }
.bn-menu-btn.is-open .bn-hamburger span:last-child { transform: translateY(-6.25px) rotate(-45deg); }

.bn-header-nav { border-top: var(--hairline) solid var(--line); }
.bn-nav { display: flex; justify-content: center; gap: var(--space-7); height: var(--header-nav); align-items: stretch; padding: 0 var(--edge); list-style: none; margin: 0; }
.bn-nav > li { display: flex; align-items: stretch; }
.bn-nav-item { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); border-top: 2px solid transparent; border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer; background: none; border-left: 0; border-right: 0; font-family: inherit; padding: 0; text-decoration: none; }
.bn-nav-item:hover, .bn-nav > li.is-open > .bn-nav-item, .bn-nav-item[aria-current="page"] { border-bottom-color: var(--ink); }
.bn-nav-chev { opacity: 0.7; transition: transform 160ms ease; }
.bn-nav > li.is-open > .bn-nav-item .bn-nav-chev { transform: rotate(180deg); }

.bn-mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-top: var(--hairline) solid var(--line); border-bottom: var(--hairline) solid var(--line); }
.bn-nav > li.is-open > .bn-mega { display: block; }
@media (hover: hover) and (min-width: 901px) {
  .bn-nav > li:hover > .bn-mega, .bn-nav > li:focus-within > .bn-mega { display: block; }
  .bn-nav > li:hover > .bn-nav-item { border-bottom-color: var(--ink); }
}
.bn-mega-inner { padding: var(--space-7) var(--edge) var(--space-8); display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)) minmax(0, 1.3fr); gap: var(--space-7); }
.bn-mega-col { display: flex; flex-direction: column; gap: var(--space-2); }
.bn-mega-col .by-label { margin-bottom: var(--space-2); }
.bn-mega-col a { color: var(--ink-muted); }
.bn-mega-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bn-mega-col a.is-all { color: var(--ink); font-weight: 600; }
.bn-mega-feature { border-left: var(--hairline) solid var(--line); padding-left: var(--space-7); display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.bn-mega-feature .by-h2 { max-width: 340px; font-size: 24px; line-height: 32px; }
.bn-mobile-extras { display: none; }

@media (min-width: 901px) and (max-width: 1239px) {
  .bn-nav { gap: var(--space-5); }
  .bn-header-left .bn-searchform { max-width: 220px; }
}

/* ---- Header on a phone: one bar, the menu opens beneath it ---- */
@media (max-width: 900px) {
  .bn-header { position: sticky; top: 0; }
  .admin-bar .bn-header { top: 32px; }
  .bn-header-top { height: 56px; padding: 0 var(--gutter-mobile); grid-template-columns: 44px 1fr 44px; gap: var(--space-2); }
  .bn-header-left .bn-searchform, .bn-header-right .bn-signin { display: none; }
  .bn-menu-btn { display: inline-flex; }
  .bn-lockup { justify-self: center; gap: var(--space-3); }
  .bn-header .bn-lockup .by-logo-mark { width: 28px; height: auto; }
  .bn-header .bn-lockup-words { font-size: 12px !important; gap: 0.7em; }
  .bn-header-right { justify-content: flex-end; gap: 0; }
  .bn-header-right .bn-iconbtn { min-width: 44px; }
  .bn-header-nav { display: none; max-height: calc(100vh - 56px); overflow-y: auto; background: var(--surface); }
  .bn-header-nav.is-open { display: block; }
  .bn-nav { flex-direction: column; height: auto; padding: var(--space-3) var(--gutter-mobile) var(--space-3); gap: 0; justify-content: flex-start; }
  .bn-nav > li { display: block; border-bottom: var(--hairline) solid var(--line); }
  .bn-nav-item { width: 100%; min-height: 52px; justify-content: space-between; border: 0; }
  .bn-nav-item:hover, .bn-nav > li.is-open > .bn-nav-item { border: 0; }
  .bn-mega { position: static; border: 0; }
  .bn-mega-inner { grid-template-columns: 1fr; padding: 0 0 var(--space-4); gap: var(--space-4); }
  .bn-mega-feature { display: none; }
  .bn-mega-col a { display: block; padding: 6px 0; }
  .bn-mobile-extras { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5) var(--gutter-mobile) var(--space-6); border-top: var(--hairline) solid var(--line); }
  .bn-mobile-extras .bn-signin { display: inline-flex; min-height: 44px; }
  .bn-utility { padding: var(--space-2) var(--gutter-mobile); justify-content: center; text-align: center; }
  .bn-utility nav { display: none; }
}
@media (max-width: 782px) { .admin-bar .bn-header { top: 46px; } }

/* ---- Hero actions on the photograph ---- */
.bn-hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; margin-top: var(--space-2); }
.bn-herophoto { margin: 0; }
.bn-herophoto h1 { margin: 0; }
.bn-herophoto-copy .by-eyebrow { margin: 0; }

/* ---- Home sections ---- */
.bn-section-flush { padding-top: 0; }
.bn-proof .by-stat-cell { min-width: 0; }
.bn-tile .by-image .bn-tile-ph { display: block; width: 100%; height: 100%; background: var(--surface-soft); }
.bn-band-soft .bn-tile .by-image { background: var(--surface); }
.bn-note-small { margin: 0; color: var(--ink-muted); }
.bn-home-claims { margin: 0; }

/* ---- Course cards: the finder, shop and home share the existing open card (hairline above, no box) ---- */
.bn-band-soft .bt-card { background: transparent; }

/* ---- Email sign-up ---- */
.bn-signup-note { margin: 0; color: var(--ink-muted); }
.bn-signup-msg { grid-column: 1 / -1; margin: 0; }
@media (min-width: 901px) { .bn-footer-signup .bn-signup { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
/* The tick-box sentence is body copy, not a label. */
.bn-check .bn-check-text { font-size: 14px; line-height: 22px; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ink-muted); }
.bn-check .bn-check-text a { letter-spacing: 0; text-transform: none; }
.bn-hp { position: absolute !important; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Footer ---- */
.bn-footer-locations a.is-quiet { text-decoration: none; color: var(--ink-muted); }
.bn-footer-col a[aria-current="page"] { color: var(--ink); }
.bn-footer-privacy { max-width: 760px; margin: var(--space-6) 0 0; color: var(--ink-muted); }
.bn-footer .by-logo-mark { flex: none; }

/* ---- Team ---- */
.bn-member .by-image { background: var(--surface-soft); display: flex; align-items: center; justify-content: center; }
.bn-member-ph { font-size: 12px; line-height: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); text-align: center; padding: var(--space-3); }
.bn-member .bn-member-bio { margin: 0; }

@media (min-width: 901px) {
  .bn-team-grid[data-cols="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bn-team-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- Locations ---- */
.bn-location-body.has-outside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: var(--space-7); align-items: start; }
.bn-location-body.has-outside .bn-location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bn-location-outside { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.bn-location-outside .by-image { height: auto; aspect-ratio: 4 / 5; }
.bn-location-outside .by-caption { color: var(--ink-muted); }
@media (max-width: 900px) {
  .bn-location-body.has-outside { grid-template-columns: 1fr; gap: var(--space-5); }
  .bn-location-body.has-outside .bn-location-grid { grid-template-columns: 1fr; }
  .bn-location-outside { max-width: 420px; }
  .bn-location-outside .by-image { aspect-ratio: 4 / 3; }
}
.bn-location-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.bn-photo-slot { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 200px; padding: var(--space-5); background: var(--surface-soft); color: var(--ink-muted); }
.bn-maphero .bn-academy .by-image { background: rgba(247, 244, 238, 0.08); }
.bn-maphero .bn-photo-slot { background: transparent; color: rgba(247, 244, 238, 0.72); }
.bn-maphero .bn-academy .by-caption { color: rgba(247, 244, 238, 0.72); }
.bn-maphero-foot a { text-decoration: underline; text-underline-offset: 3px; }
.bn-locations-page .bn-location + .bn-location { margin-top: var(--space-8); }

/* ---- Account: Getting to class ---- */
.bn-booking-list { display: flex; flex-direction: column; margin: 0 0 var(--space-7); }
.bn-account-notice { margin-top: var(--space-6); }

/* ---- Page-level layout helpers for the new templates ---- */
.bn-page-section { padding-top: var(--space-8); padding-bottom: var(--space-9); }
.bn-lead-measure { max-width: 640px; }
.bn-trust-section .bn-trust { border-top: 0; }
.bn-main-flush { padding-top: 0; }

/* Anchor targets sit below a sticky header on a phone. */
@media (max-width: 900px) { [id] { scroll-margin-top: 72px; } }

@media print { .bn-header, .bn-utility, .bn-footer { display: none !important; } }

/* ---- Page content: plain question-and-answer blocks (details) from the old pages get the same open/close style as the course FAQ ---- */
.byt-content details { border-bottom: 1px solid var(--line); padding: 0; }
.byt-content details:first-of-type { border-top: 1px solid var(--line); }
.byt-content details > summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font: 600 14px/22px var(--font-sans); position: relative; }
.byt-content details > summary::-webkit-details-marker { display: none; }
.byt-content details > summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font: 300 22px/26px var(--font-sans); }
.byt-content details[open] > summary::after { content: "-"; }
.byt-content details > *:not(summary) { margin: 0 0 16px; }

/* ---- Notices: WooCommerce focuses a new notice so screen readers announce it; the browser focus ring made a double frame ---- */
.woocommerce-error:focus, .woocommerce-message:focus, .woocommerce-info:focus, .woocommerce-notices-wrapper [tabindex="-1"]:focus { outline: 0; }

/* ---- Basket total: label and amount share one baseline ---- */
@media (min-width: 769px) {
  .woocommerce-cart .cart_totals .order-total th, .woocommerce-cart .cart_totals .order-total td { padding-top: 16px; padding-bottom: 16px; line-height: 24px; vertical-align: baseline; }
}
.byt-content details:last-of-type + * { margin-top: 24px; }

/* ===== 52-v3 AM 20 Oct updates ===== */
/* ===== r47: AM's 20 Oct updates (contrast, type, page header, breadcrumb, closing band, footer, category buttons) ===== */

/* ---- Tokens (section 6): readable lines, control borders and gold text ---- */
:root {
  --line: #d1c9bb;
  --line-control: #8f877a;
  --gold-text: #7a6a2e;
  --gold-text-hover: #6a5c27;
  --gold-on-ink: #c9b46a;
}
[data-theme="ink"] { --line: #4a463f; --gold-text: #c9b46a; }

/* ---- Type (section 6): heavier headings, 16px body in ink ---- */
.by-root .by-h1, .by-root .by-h2, .by-root .by-statement, .by-root .by-display { font-weight: 400; }
.by-root .by-h3, .by-root .bt-h4, .by-root .byt-content h3 { font-weight: 500; }
.by-root h2.by-h1, .by-root .by-h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.18; letter-spacing: -0.01em; }
.by-root .bn-mega-feature .by-h2 { font-size: 24px; line-height: 32px; }
.by-root .by-body { font-size: 16px; line-height: 26px; }
.by-root .byt-content { font-size: 16px; line-height: 27px; color: var(--ink); }
.by-root .byt-content h2 { font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.25; }
.by-root .byt-content h3 { font-size: 22px; line-height: 30px; }
.by-root .by-eyebrow-text, .by-root .by-eyebrow { color: var(--ink); }
.by-root .by-eyebrow::before { background: var(--gold); }
.by-root [data-theme="ink"] .by-eyebrow-text { color: var(--ink); }
.by-root .bt-card h3 { font-size: 18px; line-height: 26px; font-weight: 500; }
.by-root .bn-input, .by-root .bn-select, .by-root input[type="text"], .by-root input[type="email"], .by-root input[type="tel"], .by-root input[type="search"], .by-root input[type="password"], .by-root input[type="number"], .by-root select, .by-root textarea { border-color: var(--line-control); }
.by-root .by-btn-outline, .by-root .bn-dates-row .by-btn { border-color: var(--line-control); }
.by-root .by-btn-outline:hover { border-color: var(--ink); }
.by-root :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.by-root [data-theme="ink"] :focus-visible { outline-color: var(--ink); }

/* ---- Breadcrumb: sentence case, 13px, muted, " / " separators, current in ink ---- */
.bn-crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; font-size: 13px; line-height: 20px; color: var(--ink-muted); letter-spacing: 0; text-transform: none; }
.bn-crumb li { display: inline-flex; align-items: center; }
.bn-crumb li + li::before { content: "/"; padding: 0 8px; color: var(--ink-muted); }
.bn-crumb a { color: var(--ink-muted); text-decoration: none; padding: 12px 0; }
.bn-crumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bn-crumb [aria-current] { color: var(--ink); }

/* ---- Page header: one component, three variants ---- */
.bn-ph { background: var(--surface); color: var(--ink); border-bottom: var(--hairline) solid var(--line); }
.bn-ph-inner { padding: var(--space-5) var(--edge) var(--space-8); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7); align-items: center; }
.bn-ph-copy { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.bn-ph-copy .bn-crumb { margin-bottom: var(--space-2); }
.bn-ph-eyebrow { margin: 0; }
.bn-ph-title { margin: 0; font-size: clamp(36px, 4vw, 52px); line-height: 1.12; font-weight: 400; letter-spacing: -0.015em; max-width: 760px; text-wrap: balance; }
.bn-ph-lead { margin: 0; font-size: 17px; line-height: 28px; color: var(--ink-muted); max-width: 620px; }
.bn-ph-extra { margin-top: var(--space-3); }
.bn-ph.is-warm { background: var(--surface-soft); border-bottom: 0; }
.bn-ph.is-photo { background: var(--surface-cream); border-bottom: 0; }
.bn-ph.is-photo .bn-ph-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding-top: var(--space-5); padding-bottom: var(--space-7); gap: var(--space-8); }
.bn-ph-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-soft); align-self: stretch; min-height: 320px; max-height: 460px; }
.bn-ph-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bn-ph.is-warm .bn-ph-inner:has(.bn-ph-aside) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; }
.bn-ph.is-compact .bn-ph-inner { padding-top: var(--space-4); padding-bottom: var(--space-6); }
.bn-ph.is-compact .bn-ph-title { font-size: clamp(30px, 3vw, 40px); }
@media (max-width: 900px) {
  .by-root .bn-ph-inner { padding: var(--space-3) var(--edge) var(--space-7); gap: var(--space-6); }
  .by-root .bn-ph.is-photo .bn-ph-inner, .by-root .bn-ph.is-warm .bn-ph-inner:has(.bn-ph-aside) { grid-template-columns: 1fr; }
  .by-root .bn-ph.is-photo .bn-ph-media { order: -1; margin: 0 calc(var(--edge) * -1); min-height: 0; aspect-ratio: 16 / 9; max-height: none; }
  .by-root .bn-ph.is-photo .bn-ph-inner { padding-top: 0; }
  .by-root .bn-ph-lead { font-size: 16px; line-height: 26px; }
}
/* the old page section sat right under its own header; keep its top space smaller now the header has its own band */
.bn-ph + .byt-page-section, .bn-ph + .by-section { padding-top: var(--space-8); }

/* ---- Closing band: help on the left, the email sign-up on the right, on #efeae2 ---- */
.bn-close { background: var(--surface-soft); color: var(--ink); border-top: var(--hairline) solid var(--line); }
.bn-close-inner { padding: var(--space-9) var(--edge); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-9); align-items: start; }
.bn-close-help { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.bn-close-title { margin: 0; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.18; font-weight: 400; letter-spacing: -0.01em; max-width: 560px; }
.bn-close-text { margin: 0; font-size: 16px; line-height: 26px; color: var(--ink-muted); max-width: 480px; }
.bn-close-actions { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; margin-top: var(--space-2); }
.bn-close-phone { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-control); }
.bn-close-phone:hover { text-decoration-color: var(--ink); }
.bn-close-signup { border-left: var(--hairline) solid var(--line); padding-left: var(--space-8); }
.bn-signup-form { display: flex; flex-direction: column; gap: var(--space-4); }
.bn-signup-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.bn-signup-form .bn-input { background: var(--surface); }
.bn-signup-actions { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.bn-signup-actions .bn-signup-msg { margin: 0; color: var(--ink); font-weight: 500; }
.bn-signup-msg:empty { display: none; }
.bn-signup-form.is-sending button { opacity: 0.6; pointer-events: none; }
.bn-check .bn-check-text { color: var(--ink-muted); }
@media (max-width: 900px) {
  .by-root .bn-close-inner { grid-template-columns: 1fr; gap: var(--space-7); padding: var(--space-8) var(--edge); }
  .by-root .bn-close-signup { border-left: 0; padding-left: 0; border-top: var(--hairline) solid var(--line); padding-top: var(--space-7); }
  .by-root .bn-signup-row { grid-template-columns: 1fr; }
}

/* ---- Footer (minimal): logo row, four columns, payments row, group row, legal ---- */
.bn-footer3 { padding-top: var(--space-8); }
.bn-footer3 .bn-footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); margin-top: var(--space-7); }
.bn-footer3 .bn-footer-col a { color: var(--ink-muted); }
.bn-footer3 .bn-footer-col a:hover { color: var(--ink); }
.bn-footer-pay { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-7); padding-top: var(--space-5); border-top: var(--hairline) solid var(--line); }
.bn-footer-pay span { color: var(--ink-muted); margin-right: var(--space-2); }
.bn-footer-pay img { height: 32px; width: auto; display: block; }
.bn-footer-group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-top: var(--space-6); font-size: 13px; line-height: 20px; color: var(--ink); opacity: 0.7; }
.bn-footer-group span { margin-right: var(--space-3); }
.bn-footer-group a { color: var(--ink); text-decoration: none; }
.bn-footer-group a + a::before { content: "\00b7"; padding: 0 10px; display: inline-block; text-decoration: none; }
.bn-footer-group a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bn-footer3 .bn-footer-legal { margin-top: var(--space-5); }
@media (max-width: 900px) {
  .by-root .bn-footer3 .bn-footer-cols { grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-5); }
}

/* ---- Equal-width category buttons (bn-catgrid, section 2.3) ---- */
.bn-catgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.bn-catgrid li { display: flex; }
.bn-catbtn { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px 12px; background: var(--gold-text); color: #ffffff; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; border-radius: 0; transition: background-color 120ms ease; }
.bn-catbtn:hover { background: var(--gold-text-hover); color: #ffffff; }
.bn-catbtn[aria-current] { background: #161513; color: #f7f4ee; }
.bn-catbtn:focus-visible { outline: 2px solid #161513; outline-offset: 2px; }
.bn-catgrid-toggle { display: none; }
@media (max-width: 600px) {
  .by-root .bn-catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .by-root .bn-catbtn { letter-spacing: 0.08em; padding: 8px 6px; }
  .by-root .bn-catgrid-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; border: 0; background: var(--ink); color: var(--surface); font: 600 12px/16px var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
  .by-root .bn-catgrid-toggle[aria-expanded="true"] .by-icon { transform: rotate(180deg); }
  .by-root .bn-catgrid-wrap .bn-catgrid { display: none; margin-top: 8px; }
  .by-root .bn-catgrid-wrap.is-open .bn-catgrid { display: grid; }
}

/* ---- Line icons ---- */
.bn-licon { flex: none; display: inline-block; vertical-align: middle; }

/* ---- Home (section 3) ---- */
.bn-home-cats { padding-top: var(--space-8); padding-bottom: var(--space-7); }
.bn-home-cats + .by-section.is-flush { padding-top: var(--space-6) !important; }
.bn-why > div .bn-licon { color: var(--gold-text); margin-bottom: var(--space-2); }
.bn-proofrow { display: flex; align-items: center; gap: var(--space-7); flex-wrap: wrap; padding-top: var(--space-6); border-top: var(--hairline) solid var(--line); }
.bn-proofrow > img { height: 60px; width: auto; }
.bn-proofrow-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); color: var(--ink); flex: 1; }
.bn-proofrow-list li { display: inline-flex; align-items: center; gap: var(--space-2); }
.bn-proofrow-list li::before { content: ""; width: 6px; height: 6px; background: var(--gold); flex: none; }
.bn-proofrow.is-about { border-top: 0; padding-top: 0; justify-content: space-between; }
.bn-proofitem { display: flex; gap: var(--space-4); align-items: flex-start; max-width: 360px; }
.bn-proofitem .bn-licon { color: var(--gold-text); margin-top: 2px; }

/* ---- About and team (section 5) ---- */
.bn-story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-9); align-items: start; }
.bn-story-photo { aspect-ratio: 4 / 5; background: var(--surface-soft); overflow: hidden; position: sticky; top: 24px; }
.bn-story-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bn-story-copy { display: flex; flex-direction: column; gap: var(--space-3); }
.bn-story-name { margin: 0; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.18; font-weight: 400; }
.bn-story-role { margin: 0 0 var(--space-4); color: var(--gold-text); }
.bn-story-copy .byt-content { max-width: 640px; }
.bn-proof-section { background: var(--surface-cream); padding-top: var(--space-7); padding-bottom: var(--space-7); }
.bn-member-role { font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
@media (min-width: 901px) { .bn-team-grid[data-cols="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); } }
@media (min-width: 901px) and (max-width: 1200px) { .bn-team-grid[data-cols="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bn-academy-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7); }
.bn-academy-card { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.bn-academy-card .by-image { width: 100%; aspect-ratio: 16 / 10; height: auto; margin-bottom: var(--space-3); }
.bn-academy-card .by-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .by-root .bn-story-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .by-root .bn-story-photo { position: static; max-width: 420px; }
  .by-root .bn-academy-cards { grid-template-columns: 1fr; }
  .by-root .bn-proofrow { gap: var(--space-5); }
}

/* ---- Course cards: an eighth row for the "no expiry" tag ---- */
.bt-tag-noexpiry { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: 0.06em; color: var(--gold-text); }
@supports (grid-template-rows: subgrid) {
  .bt-card { grid-row: span 8; }
  .bt-card > .bt-tag-noexpiry { grid-row: 7; margin-bottom: 12px; }
  .bt-card > .by-textlink { grid-row: 8; }
}

/* ---- Courses hub and category pages (section 2.5, 2.6) ---- */
.bn-ph-search { display: flex; gap: var(--space-3); max-width: 560px; margin-top: var(--space-2); }
.bn-ph-search .bn-searchbox { flex: 1; position: relative; }
.bn-ph-search .bn-input { background: var(--surface); }
.bn-ph-search .by-btn { flex: none; height: var(--field-height); }
.bn-cattiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.bn-cattile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-soft); color: #f7f4ee; }
.bn-cattile-img, .bn-cattile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bn-cattile-img img { transition: transform 300ms ease; }
.bn-cattile:hover .bn-cattile-img img { transform: scale(1.03); }
.bn-cattile-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: 14px 16px; background: #161513; }
.bn-cattile-name { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.bn-cattile-count { font-size: 13px; line-height: 18px; color: #c9c5bd; white-space: nowrap; }
.bn-typerow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); padding-top: var(--space-6); border-top: var(--hairline) solid var(--line); }
.bn-typerow .by-label { margin-right: var(--space-2); }
.bn-typelink { font-size: 15px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-control); }
.bn-typelink:hover { text-decoration-color: var(--ink); }
.bn-results { padding-top: var(--space-7); }
.bn-filterbar { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-5); flex-wrap: wrap; padding: var(--space-5) 0; border-top: var(--hairline) solid var(--line); border-bottom: var(--hairline) solid var(--line); }
.bn-filterbar-count { margin: 0; font-size: 16px; font-weight: 600; }
.bn-filterbar-fields { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.bn-fsel { display: flex; flex-direction: column; gap: 6px; min-width: 190px; }
.bn-fsel .bn-select { height: 44px; }
.bn-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-6); padding-bottom: var(--space-3); border-bottom: var(--hairline) solid var(--line-strong); }
.bn-group-title { margin: 0; font-size: 24px; line-height: 32px; font-weight: 400; }
.bt-cards.bn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1366px) { .bt-cards.bn-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .by-root .bn-cattiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .by-root .bt-cards.bn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .by-root .bn-cattiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .by-root .bn-cattile-bar { flex-direction: column; gap: 2px; padding: 10px 12px; }
  .by-root .bt-cards.bn-grid { grid-template-columns: 1fr; }
  .by-root .bn-fsel { min-width: 0; flex: 1 1 140px; }
  .by-root .bn-filterbar-fields { width: 100%; }
  .by-root .bn-ph-search { flex-direction: column; }
}
/* link colour rules elsewhere are stronger: pin the colours of the gold buttons and the tile captions */
.by-root a.bn-cattile, .by-root a.bn-cattile .bn-cattile-name { color: #f7f4ee; }
.by-root a.bn-cattile .bn-cattile-count { color: #c9c5bd; }

/* ---- VTCT | Ofqual page (section 8.6) ---- */
.bn-ph-logo { height: 56px; width: auto; display: block; margin-top: var(--space-2); }
.bn-levelbar { position: sticky; top: 0; z-index: 15; background: var(--surface); border-bottom: var(--hairline) solid var(--line); }
.admin-bar .bn-levelbar { top: 32px; }
.bn-levelbar ul { list-style: none; margin: 0 auto; padding: 0 var(--edge); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bn-levelbar a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-left: var(--hairline) solid var(--line); color: var(--ink); text-decoration: none; }
.bn-levelbar li:last-child a { border-right: var(--hairline) solid var(--line); }
.bn-levelbar a:hover { background: var(--surface-cream); }
.bn-levelbar-n { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.bn-levelbar-t { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.bn-progmap-section { background: var(--surface-cream); }
.bn-progmap { display: flex; flex-direction: column; gap: var(--space-4); }
.bn-progmap-support { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); background: var(--surface); border: var(--hairline) dashed var(--line-control); }
.bn-progroute { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-5); align-items: start; padding: var(--space-5); background: var(--surface); border-left: 3px solid var(--gold); }
.bn-progroute-head { display: flex; flex-direction: column; gap: var(--space-2); }
.bn-progroute-name { margin: 0; font-size: 18px; line-height: 26px; font-weight: 500; }
.bn-progroute-link { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.bn-progroute-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.bn-progroute-steps li { display: flex; align-items: center; gap: var(--space-3); }
.bn-progroute-steps li + li::before { content: ""; width: 16px; height: 1px; background: var(--line-control); }
.bn-prognode { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: var(--hairline) solid var(--line-control); background: var(--surface); color: var(--ink); font-size: 14px; line-height: 20px; text-decoration: none; }
.bn-prognode:hover { border-color: var(--ink); }
.bn-lvl { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 6px; background: var(--ink); color: var(--gold-on-ink); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.bn-prognode.is-support .bn-lvl { background: var(--gold-text); color: #fff; }
.bn-progmap-credit { margin: 0; }
.bn-qlevel { scroll-margin-top: 120px; }
.bn-qlevel-head { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.bn-qlevel-title { margin: 0; font-size: clamp(28px, 2.8vw, 36px); line-height: 1.2; font-weight: 400; }
.bn-qtable { width: 100%; border-collapse: collapse; }
.bn-qtable th, .bn-qtable td { text-align: left; padding: 16px 12px 16px 0; border-bottom: var(--hairline) solid var(--line); vertical-align: middle; font-size: 15px; line-height: 22px; }
.bn-qtable thead th { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); border-bottom-color: var(--line-strong); }
.bn-qtable tbody th { font-weight: 500; width: 40%; }
.by-root .bn-qtable a { text-decoration: none; }
.by-root .bn-qtable a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bn-qtable-go { text-align: right !important; padding-right: 0 !important; }
.bn-qtable-go .by-btn { min-height: 40px; padding: 8px 20px; }
.bn-quals-help { padding-top: 0; }
@media (max-width: 900px) {
  .by-root .bn-levelbar ul { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; padding: 0; }
  .by-root .bn-levelbar-t { display: none; }
  .by-root .bn-progroute { grid-template-columns: 1fr; padding: var(--space-4); }
  .by-root .bn-progroute-steps { flex-direction: column; align-items: flex-start; }
  .by-root .bn-progroute-steps li + li::before { width: 1px; height: 12px; margin-left: 20px; position: relative; }
  .by-root .bn-progroute-steps li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .by-root .bn-qtable thead { display: none; }
  .by-root .bn-qtable, .by-root .bn-qtable tbody, .by-root .bn-qtable tr, .by-root .bn-qtable th, .by-root .bn-qtable td { display: block; width: auto; }
  .by-root .bn-qtable tr { border: var(--hairline) solid var(--line); padding: var(--space-4); margin-bottom: var(--space-4); }
  .by-root .bn-qtable th, .by-root .bn-qtable td { border: 0; padding: 4px 0; }
  .by-root .bn-qtable td::before { content: attr(data-label) ": "; color: var(--ink-muted); font-size: 13px; }
  .by-root .bn-qtable tbody th { font-size: 17px; margin-bottom: 6px; }
  .by-root .bn-qtable-go { text-align: left !important; margin-top: 8px; }
  .by-root .bn-qtable-go::before { content: none !important; }
}

/* ---- Course page (section 7) ---- */
.bn-coursehead { background: var(--surface-soft); color: var(--ink); }
.bn-coursehead-inner { padding: var(--space-5) var(--edge) var(--space-7); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.bn-coursehead-copy { display: flex; flex-direction: column; gap: var(--space-4); }
.bn-coursehead-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-cream); }
.bn-coursehead-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bn-facts { margin: 0; padding: var(--space-5) var(--edge); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-4); border-top: var(--hairline) solid var(--line); background: var(--surface-cream); }
.bn-fact { display: flex; gap: var(--space-3); align-items: flex-start; }
.bn-fact .bn-licon { color: var(--gold-text); margin-top: 2px; }
.bn-fact dt { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.bn-fact dd { margin: 2px 0 0; font-size: 15px; line-height: 22px; font-weight: 500; }
.bn-sub { margin: 0; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.25; font-weight: 400; }
.bn-sub-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); flex-wrap: wrap; }
.bn-readmore { position: relative; }
.bn-readmore-body { overflow: hidden; transition: max-height 200ms ease; }
.bn-readmore.is-clipped:not(.is-open) .bn-readmore-body { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.bn-readmore-btn { margin-top: var(--space-4); padding: 10px 0; border: 0; background: none; font: 600 12px/16px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; align-self: flex-start; }
.bn-learn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.bn-learn-item { display: flex; gap: var(--space-3); padding: var(--space-5); background: var(--surface-cream); }
.bn-learn-item .bn-licon { color: var(--gold-text); flex: none; margin-top: 2px; }
.bn-learn-item h3 { margin: 0 0 6px; font-size: 17px; line-height: 24px; font-weight: 500; }
.bn-learn-item p { margin: 0; font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.bn-syllabus { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: var(--space-7); counter-reset: syl; }
.bn-syllabus li { break-inside: avoid; counter-increment: syl; display: flex; gap: var(--space-3); padding: 10px 0; border-bottom: var(--hairline) solid var(--line); font-size: 15px; line-height: 22px; }
.bn-syllabus li::before { content: counter(syl, decimal-leading-zero); flex: none; width: 26px; font-size: 12px; font-weight: 700; color: var(--gold-text); padding-top: 2px; }
.bn-syllabus.is-collapsed .is-extra { display: none; }
.bn-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.bn-ticks li { position: relative; padding-left: 28px; font-size: 16px; line-height: 24px; }
.bn-ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text); transform: rotate(-45deg); }
.bn-tracklinks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.bn-tracklinks a { display: inline-flex; align-items: center; gap: var(--space-2); padding: 10px 14px; border: var(--hairline) solid var(--line-control); color: var(--ink); text-decoration: none; font-size: 15px; }
.bn-tracklinks a:hover { border-color: var(--ink); }
.bn-tracklinks-type { font-size: 12px; color: var(--ink-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-left: var(--space-2); }
.bn-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.bn-reviewcard { margin: 0; padding: var(--space-5); background: var(--surface-cream); display: flex; flex-direction: column; gap: var(--space-3); }
.bn-stars { display: inline-flex; gap: 2px; color: var(--gold-text); }
.bn-stars .bn-licon path { fill: currentColor; }
.bn-reviewcard blockquote { margin: 0; }
.bn-reviewcard blockquote p { margin: 0; font-size: 15px; line-height: 24px; }
.bn-reviewcard figcaption { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.bn-amelia-list { margin-top: var(--space-6); }
@media (max-width: 1100px) { .by-root .bn-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .by-root .bn-reviews { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .by-root .bn-coursehead-inner { grid-template-columns: 1fr; gap: var(--space-5); padding-top: 0; }
  .by-root .bn-coursehead-media { order: -1; margin: 0 calc(var(--edge) * -1); aspect-ratio: 16 / 9; }
  .by-root .bn-learn { grid-template-columns: 1fr; }
  .by-root .bn-syllabus { columns: 1; }
}
@media (max-width: 600px) { .by-root .bn-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Classroom date list (one component: course page, Classroom dates page, home) ---- */
.bn-datelist { border-top: var(--hairline) solid var(--line-strong); }
.bn-dl-row { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 0.7fr 1fr auto; gap: var(--space-4); align-items: center; padding: 14px 0; border-bottom: var(--hairline) solid var(--line); }
.bn-datelist.has-course .bn-dl-row { grid-template-columns: 1.1fr 2fr 1fr 1fr 0.7fr 1fr auto; }
.bn-dl-head { padding: 10px 0; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.bn-dl-row > span { font-size: 15px; line-height: 22px; min-width: 0; }
.bn-dl-date strong { font-weight: 600; }
.bn-dl-course a { color: var(--ink); text-decoration: none; font-weight: 500; }
.bn-dl-course a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bn-dl-place { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-muted); }
.bn-dl-price { font-weight: 600; }
.bn-pill { display: inline-block; padding: 3px 8px; font-size: 12px; line-height: 16px; font-weight: 600; background: var(--surface-cream); color: var(--ink); border: var(--hairline) solid var(--line); white-space: nowrap; }
.bn-pill.is-full { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.bn-dl-go { justify-self: end; }
.bn-dl-go .by-btn { min-height: 40px; padding: 8px 22px; }
@media (max-width: 900px) {
  .by-root .bn-dl-head { display: none; }
  .by-root .bn-dl-row, .by-root .bn-datelist.has-course .bn-dl-row { grid-template-columns: 1fr auto; gap: 4px var(--space-4); padding: 16px 0; }
  .by-root .bn-dl-date { grid-column: 1; }
  .by-root .bn-dl-price { grid-column: 2; grid-row: 1; text-align: right; }
  .by-root .bn-dl-course, .by-root .bn-dl-time, .by-root .bn-dl-place, .by-root .bn-dl-left { grid-column: 1 / -1; }
  .by-root .bn-dl-go { grid-column: 1 / -1; justify-self: stretch; margin-top: 8px; }
  .by-root .bn-dl-go .by-btn { width: 100%; }
}
.bn-ph-logo { background: #161513; padding: 10px 14px; box-sizing: content-box; height: 44px; }
.byt-noexpiry-line { margin: 16px 0 0; font-size: 14px; line-height: 22px; color: var(--gold-text); font-weight: 600; }

/* ===== 53-tracks ===== */
/* ================================================================= tracks (r49) */
.bn-tracktabs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.by-root a.bn-tracktab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: var(--hairline) solid var(--line-control); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.by-root a.bn-tracktab span { font-size: 13px; color: var(--ink-muted); }
.by-root a.bn-tracktab:hover { border-color: var(--ink); }
.by-root a.bn-tracktab[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.by-root a.bn-tracktab[aria-current="true"] span { color: var(--gold-on-ink); }

.bn-trackgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
.bn-trackcard { display: flex; flex-direction: column; background: var(--surface); border: var(--hairline) solid var(--line); }
.bn-trackcard[hidden] { display: none; }
.bn-trackcard-img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface-cream); overflow: hidden; }
.bn-trackcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bn-trackcard-type { position: absolute; left: 12px; top: 12px; padding: 4px 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: var(--ink); color: #fff; }
.bn-trackcard-type.is-cpd { background: #fff; color: var(--ink); }
.bn-trackcard-body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); flex: 1; }
.bn-trackcard-body h3 { margin: 0; }
.by-root .bn-trackcard-body h3 a { color: var(--ink); text-decoration: none; }
.by-root .bn-trackcard-body h3 a:hover { text-decoration: underline; }
.bn-trackcard-body p { margin: 0; }
.bn-trackcard-meta { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-muted); }
.bn-trackcard-price strong { font-size: 18px; }
.bn-trackcard-price s { margin-left: 4px; }
.bn-trackgroup { display: grid; gap: var(--space-5); }
.bn-trackgroup + .bn-trackgroup { margin-top: var(--space-7); }
.bn-trackgroup[hidden] { display: none; }
.bn-trackgroup-head h3, .bn-trackgroup-head p { margin: 0; }
.bn-areachips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bn-areachips .bt-chip { min-height: 40px; text-transform: none; letter-spacing: 0.01em; font-size: 14px; font-weight: 500; }
.bn-areachips .bt-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.bn-popular-tracks { background: var(--surface-cream); }

.bn-newband { background: var(--ink); color: #fff; }
.bn-newband .by-h2, .bn-newband .by-body { color: #fff; }
.bn-newband .by-eyebrow-text { color: var(--gold-on-ink); }
.bn-newband-inner { display: grid; grid-template-columns: 3fr 2fr; gap: var(--space-7); align-items: center; }
.bn-newband-links { display: grid; gap: var(--space-3); }
.by-root a.bn-newband-link { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border: var(--hairline) solid rgba(255,255,255,0.35); color: #fff; text-decoration: none; font-weight: 500; }
.by-root a.bn-newband-link:hover { border-color: var(--gold-on-ink); color: var(--gold-on-ink); }
.bn-levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); }
.bn-levels li { display: grid; gap: var(--space-2); padding: var(--space-5) var(--space-4); border-top: 3px solid var(--gold); background: var(--surface); }
.bn-levels strong { font-size: 18px; }
.bn-levels span { font-size: 15px; line-height: 22px; color: var(--ink-muted); }

/* single track */
.bn-ticks.is-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); }
.bn-skipnote { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-5); background: var(--surface-cream); border-left: 3px solid var(--gold); }
.bn-skipnote svg { flex: none; color: var(--gold-text); }
.bn-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.bn-stage { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-5); padding-bottom: var(--space-7); }
.bn-stage::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: var(--line); }
.bn-stage:last-child { padding-bottom: 0; }
.bn-stage:last-child::before { display: none; }
.bn-stage-num { width: 48px; height: 48px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 600; font-size: 18px; border-radius: 50%; position: relative; z-index: 1; }
.bn-stage-body { display: grid; gap: var(--space-3); padding-top: 8px; }
.bn-stage-body > h3 { margin: 0; }
.bn-tsteps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-2); }
.bn-tstep { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4) var(--space-5); background: var(--surface); border: var(--hairline) solid var(--line); }
.bn-tstep.is-optional, .bn-tstep.is-alt { background: transparent; border-style: dashed; }
.bn-tstep.is-done { border-color: #2f6b3a; }
.bn-tstep-top { display: flex; flex-wrap: wrap; gap: 6px; }
.bn-tsteptag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border: var(--hairline) solid var(--line-control); color: var(--ink); }
.bn-tsteptag.is-required { background: var(--ink); color: #fff; border-color: var(--ink); }
.bn-tsteptag.is-qual { color: var(--gold-text); border-color: var(--gold-text); }
.bn-tsteptag.is-done { background: #2f6b3a; border-color: #2f6b3a; color: #fff; }
.bn-tsteptag.is-started { border-color: var(--ink); }
.bn-tstep-title { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.by-root .bn-tstep-title a { color: var(--ink); text-decoration: none; }
.by-root .bn-tstep-title a:hover { text-decoration: underline; }
.bn-tstep-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--ink-muted); }
.bn-tstep-meta span { display: inline-flex; align-items: center; gap: 6px; }
.bn-tstep-meta strong { color: var(--ink); }
.bn-tstep-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: auto; padding-top: var(--space-2); }
.by-root .by-btn.is-small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.bn-glance { display: grid; gap: var(--space-4); }
.bn-glance hr { margin: 0; }
.bn-bundleprice strong { font-size: 32px; line-height: 36px; }
.bn-bundleprice s { color: var(--ink-muted); margin-left: 6px; }
.bn-havenote { margin: 0; padding: 10px 12px; background: var(--surface-cream); font-size: 14px; line-height: 20px; }
.bn-payin3 { margin: 0; }
.bn-follow-form { margin: 0; }
.by-root .bn-follow { width: 100%; justify-content: center; gap: 8px; display: inline-flex; align-items: center; }
.by-root .bn-follow.is-on { border-color: #2f6b3a; color: #2f6b3a; }
.bn-tprogress { height: 8px; background: var(--surface-cream); border: var(--hairline) solid var(--line); overflow: hidden; }
.bn-tprogress > span { display: block; height: 100%; background: var(--gold); }
.bn-tprogress.is-small { display: inline-block; width: 120px; height: 6px; vertical-align: middle; }
.bn-glance-progress { display: grid; gap: 6px; }

/* my account */
.bn-mytracks { display: grid; gap: var(--space-5); margin: var(--space-5) 0; }
.bn-mytrack { display: grid; gap: var(--space-4); padding: var(--space-5); border: var(--hairline) solid var(--line); background: var(--surface); }
.bn-mytrack-head { display: flex; justify-content: space-between; gap: var(--space-4); align-items: flex-end; flex-wrap: wrap; }
.bn-mytrack-count { margin: 0; }
.bn-mytrack-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bn-mytrack-steps li { display: flex; align-items: center; gap: 10px; }
.bn-mytrack-steps li .by-small { margin-left: auto; }
.bn-mytrack-steps li.is-done svg { color: #2f6b3a; }
.bn-mytrack-next { margin: 0; }
.bn-dash-tracks { margin: var(--space-5) 0; padding: var(--space-5); border: var(--hairline) solid var(--line); }
.bn-dash-tracks h3 { margin: 0 0 var(--space-3); }
.bn-dash-tracklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.bn-dash-tracklist li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }

@media (max-width: 1100px) { .by-root .bn-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .by-root .bn-trackgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .by-root .bn-tsteps { grid-template-columns: 1fr; }
}
@media (max-width: 900px) { .by-root .bn-newband-inner { grid-template-columns: 1fr; gap: var(--space-5); } }
@media (max-width: 600px) {
  .by-root .bn-trackgrid { grid-template-columns: 1fr; }
  .by-root .bn-levels { grid-template-columns: 1fr; }
  .by-root .bn-ticks.is-2col { grid-template-columns: 1fr; }
  .by-root .bn-stage { grid-template-columns: 36px minmax(0, 1fr); gap: var(--space-3); }
  .by-root .bn-stage-num { width: 36px; height: 36px; font-size: 16px; }
  .by-root .bn-stage::before { left: 17px; top: 36px; }
  .by-root .bn-tstep { padding: var(--space-4); }
  .by-root a.bn-tracktab { flex: 1 1 auto; justify-content: center; padding: 10px 12px; }
}

/* r49 second pass: badges on cards, back link, next step */
.bn-trackcard-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.bn-trackbadge { display: inline-flex; align-items: center; padding: 3px 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; border: var(--hairline) solid var(--line-control); color: var(--ink); background: var(--surface); }
.bn-trackbadge.is-qualification { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--gold); }
.bn-trackbadge.is-level { border-color: var(--line); color: var(--ink-muted); }
.bn-trackcard.is-qualification { border-top: 3px solid var(--gold); }
.bn-backlink { margin: 0; }
.by-root .bn-backlink a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); text-decoration: none; }
.by-root .bn-backlink a:hover { text-decoration: underline; }
.bn-nextstep { display: grid; gap: var(--space-2); justify-items: start; }
.bn-nextstep-title { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.by-root .bn-nextstep-title a { color: var(--ink); }
.bn-nexthl { padding: var(--space-5); background: var(--surface-cream); border-left: 3px solid var(--gold); }
.bn-tstep.is-next { border: 2px solid var(--gold); }
.bn-fromprice strong { font-size: 22px; }
.bn-mytrack-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-6); align-items: start; }
.bn-mytrack-side { display: grid; gap: var(--space-4); padding: var(--space-4); background: var(--surface-cream); }
.bn-mytrack-steps li.bn-mytrack-stage { margin-top: var(--space-3); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text); }
.bn-mytrack-steps li.bn-mytrack-stage:first-child { margin-top: 0; }
.bn-dash-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin: var(--space-5) 0; }
.bn-dash-panels > section { margin: 0; display: grid; gap: var(--space-3); align-content: start; }
@media (max-width: 900px) { .by-root .bn-mytrack-cols, .by-root .bn-dash-panels { grid-template-columns: 1fr; } }

/* badges (r49) */
.bn-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-6) var(--space-4); margin: var(--space-5) 0; }
.bn-badge { display: grid; justify-items: center; gap: 8px; text-align: center; }
.bn-badge-disc { display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--gold-on-ink); }
.bn-badge-disc svg { color: var(--gold-on-ink); }
.bn-badge-name { display: inline-block; padding: 3px 12px; background: var(--surface-cream); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 20px; }
.bn-badge.is-locked .bn-badge-disc { background: transparent; border: 2px solid var(--line-control); color: var(--line-control); }
.bn-badge.is-locked .bn-badge-disc svg { color: var(--line-control); }
.bn-badge.is-locked .bn-badge-name { background: transparent; color: var(--ink-muted); }
.bn-dash-badge .bn-badge { justify-items: start; text-align: left; }
.bn-badge-toast { position: fixed; z-index: 9999; right: 24px; bottom: 24px; max-width: 380px; display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); background: var(--surface); border: var(--hairline) solid var(--line); box-shadow: 0 12px 32px rgba(22, 21, 19, 0.18); }
.bn-badge-toast .bn-badge { flex: none; }
.bn-badge-toast .bn-badge .bn-badge-name, .bn-badge-toast .bn-badge .by-small { display: none; }
.bn-badge-toast-copy { display: grid; gap: 4px; }
.bn-badge-toast-x { position: absolute; top: 4px; right: 6px; width: 32px; height: 32px; border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
@media (max-width: 600px) { .bn-badge-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; } }

/* classroom dates page (r49) */
.bn-dates-page { display: grid; gap: var(--space-5); }
.bn-dates-note { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4) var(--space-5); background: var(--surface-cream); border-left: 3px solid var(--gold); }
.bn-dates-note svg { flex: none; color: var(--gold-text); }
.bn-dates-page .byt-dates-tools { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-4); align-items: end; }
.bn-dates-page .byt-dates-tools input, .bn-dates-page .byt-dates-tools select { width: 100%; }
.bn-dates-page .byt-dates-month { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.bn-dates-page .byt-dates-month[hidden] { display: none; }
.bn-dates-page .byt-dates-month h2 { margin: 0; }
.bn-dl-row[hidden] { display: none !important; }
@media (max-width: 700px) { .by-root .bn-dates-page .byt-dates-tools { grid-template-columns: 1fr; } }

/* r50: phone fixes for the timeline */
.bn-stage-body, .bn-tsteps, .bn-tstep { min-width: 0; }
.bn-tstep-top { position: static; }
.by-root .bn-tstep-actions .by-btn { white-space: normal; max-width: 100%; text-align: center; }
@media (max-width: 600px) {
  .by-root .bn-tstep-actions .by-btn { width: 100%; }
  .by-root .bn-tstep-title { font-size: 17px; }
}

/* ===== 54-polish r53 design review ===== */
/* ===== r53: AM's design review, 20 Oct 16:17 - full-width photo heroes, darker text, framed cards, one button style ===== */

/* ---- Contrast: darker secondary text and lines, heavier light headings ---- */
:root {
  --ink-muted: #36322c;
  --line: #cbc2b2;
  --line-control: #6f685d;
  --band: #f2ede4;
  --card-line: #d3cabb;
  --card-shadow: 0 1px 2px rgba(22, 21, 19, 0.06), 0 6px 18px rgba(22, 21, 19, 0.05);
  --card-shadow-hover: 0 2px 4px rgba(22, 21, 19, 0.08), 0 12px 28px rgba(22, 21, 19, 0.10);
}
[data-theme="ink"] { --ink-muted: #d9d4ca; --line: #57534b; }
.by-root .by-h1, .by-root .by-h2, .by-root .by-statement, .by-root .by-display, .by-root .bn-ph-title, .by-root .bn-sub { font-weight: 400; }
.by-root .by-h3, .by-root .bt-card h3 { font-weight: 500; }
.by-root .by-small, .by-root .by-body { color: inherit; }
.by-root .by-muted, .by-root .bt-muted { color: var(--ink-muted); }
.by-root .by-small { font-size: 14px; line-height: 21px; }
.by-root .by-eyebrow-text, .by-root .by-label { font-weight: 600; }

/* ---- Top strip: phone and Ask Support on the left, social on the right ---- */
.by-root .bn-utility { background: #161513; color: #f7f4ee; display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); min-height: 40px; padding: 8px var(--edge); font-size: 13px; line-height: 20px; }
.by-root .bn-utility-side { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.by-root .bn-utility a { display: inline-flex; align-items: center; gap: 6px; color: #f7f4ee; text-decoration: none; letter-spacing: 0.04em; }
.by-root .bn-utility a svg { color: #c9b46a; }
.by-root .bn-utility a:hover span:first-of-type, .by-root .bn-utility a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .by-root .bn-utility { padding: 8px 16px; font-size: 12px; gap: 12px; }
  .by-root .bn-utility nav, .by-root .bn-utility-side { display: flex; gap: 14px; }
}

/* ---- Page heroes: the photo fills the width, the title sits on it ---- */
.by-root .bn-hero { position: relative; isolation: isolate; overflow: hidden; background: #161513; color: #f7f4ee; border: 0; }
.by-root .bn-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.by-root .bn-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(22, 21, 19, 0.90) 0%, rgba(22, 21, 19, 0.74) 45%, rgba(22, 21, 19, 0.42) 100%), linear-gradient(0deg, rgba(22, 21, 19, 0.45) 0%, rgba(22, 21, 19, 0) 45%); }
.by-root .bn-hero .bn-ph-inner { display: flex; align-items: flex-end; min-height: 440px; padding: var(--space-7) var(--edge) var(--space-8); grid-template-columns: none; }
.by-root .bn-hero.is-compact .bn-ph-inner { min-height: 240px; padding-top: var(--space-6); padding-bottom: var(--space-6); }
.by-root .bn-hero .bn-ph-copy { max-width: 760px; gap: var(--space-4); }
.by-root .bn-hero .bn-ph-title { color: #ffffff; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.1; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25); }
.by-root .bn-hero.is-compact .bn-ph-title { font-size: clamp(30px, 3.2vw, 42px); }
.by-root .bn-hero .bn-ph-lead { color: rgba(247, 244, 238, 0.92); font-size: 18px; line-height: 29px; max-width: 640px; }
.by-root .bn-hero .bn-ph-eyebrow, .by-root .bn-hero .by-eyebrow-text { color: #e3d6a6; }
.by-root .bn-hero .by-eyebrow::before { background: #c9b46a; }
.by-root .bn-hero .bn-crumb ol, .by-root .bn-hero .bn-crumb a, .by-root .bn-hero .bn-crumb li + li::before { color: rgba(247, 244, 238, 0.82); }
.by-root .bn-hero .bn-crumb a:hover, .by-root .bn-hero .bn-crumb [aria-current] { color: #ffffff; }
.by-root .bn-hero .bn-ph-media { display: none; }
.by-root .bn-hero .bn-ph-aside { position: relative; }
.by-root .bn-hero .bn-ph-search .bn-input { background: #ffffff; color: #161513; border-color: #ffffff; }
.by-root .bn-hero .bn-ph-search .by-btn { background: #f7f4ee; color: #161513; border-color: #f7f4ee; }
.by-root .bn-hero .bn-backlink a { color: #f7f4ee; }
.by-root .bn-hero .bn-ph-logo { background: transparent; padding: 0; height: 52px; }
.bn-hero + .by-section, .bn-factsband + .by-section { padding-top: var(--space-8); }
.by-root .bn-coursehead.bn-hero .bn-ph-inner { min-height: 460px; }
.by-root .bn-factsband { background: var(--surface-cream); border-bottom: var(--hairline) solid var(--line); }
.by-root .bn-factsband .bn-facts { border-top: 0; background: transparent; max-width: none; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-5) var(--space-8); padding: var(--space-5) var(--edge); }
.by-root .bn-factsband .bn-fact { border: 0; padding: 0; min-width: 150px; }
.by-root .bn-factsband .bn-fact dd { font-size: 16px; font-weight: 600; }
.by-root .bn-fact dt { color: var(--ink-muted); }
@media (max-width: 900px) {
  .by-root .bn-hero .bn-ph-inner { min-height: 340px; padding: var(--space-6) 16px var(--space-6); }
  .by-root .bn-coursehead.bn-hero .bn-ph-inner { min-height: 380px; }
  .by-root .bn-hero.is-compact .bn-ph-inner { min-height: 180px; }
  .by-root .bn-hero .bn-ph-lead { font-size: 16px; line-height: 26px; }
  .by-root .bn-hero-shade { background: linear-gradient(0deg, rgba(22, 21, 19, 0.92) 0%, rgba(22, 21, 19, 0.70) 55%, rgba(22, 21, 19, 0.45) 100%); }
}

/* ---- Home hero: no finder box, more air ---- */
.by-root .bn-herophoto-inner { padding-bottom: var(--space-9); min-height: 560px; }
.by-root .bn-herophoto-finder { display: none; }

/* ---- One button style for categories, areas and track types (ink outline, uppercase, equal width) ---- */
.by-root .bn-catgrid { gap: 10px; }
.by-root .bn-catbtn, .by-root a.bn-catbtn, .by-root a.bn-catbtn:visited { flex: 1; width: 100%; min-height: 54px; padding: 10px 12px; background: #ffffff; color: #161513; border: 1px solid #161513; font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; cursor: pointer; border-radius: 0; transition: background-color 120ms ease, color 120ms ease; }
.by-root .bn-catbtn:hover, .by-root a.bn-catbtn:hover, .by-root a.bn-catbtn:visited:hover { background: #161513; color: #f7f4ee; }
.by-root .bn-catbtn[aria-current], .by-root a.bn-catbtn[aria-current], .by-root a.bn-catbtn[aria-current]:visited, .by-root .bn-catbtn[aria-pressed="true"] { background: #161513; color: #f7f4ee; }
.by-root .bn-areagrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.by-root .bn-areagrid li { display: flex; }
.by-root .bn-tracktabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 760px; margin-top: var(--space-5); }
.by-root a.bn-tracktab { justify-content: center; min-height: 52px; padding: 10px 12px; border: 1px solid rgba(247, 244, 238, 0.85); background: transparent; color: #f7f4ee; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.by-root a.bn-tracktab span { color: #e3d6a6; font-size: 12px; letter-spacing: 0.04em; }
.by-root a.bn-tracktab:hover { background: rgba(247, 244, 238, 0.12); border-color: #ffffff; }
.by-root a.bn-tracktab[aria-current="true"] { background: #f7f4ee; color: #161513; border-color: #f7f4ee; }
.by-root a.bn-tracktab[aria-current="true"] span { color: #7a6a2e; }
.by-root .bn-catgrid-toggle { background: #161513; }
@media (max-width: 1000px) { .by-root .bn-areagrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .by-root .bn-areagrid, .by-root .bn-catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .by-root .bn-tracktabs { grid-template-columns: 1fr; }
}

/* ---- Bands and framed cards: products stand out from the page ---- */
.by-root .bn-band-cards, .by-root .bn-home-dates, .by-root .bn-popular-tracks, .by-root .bn-band-soft-section { background: var(--band); }
.by-root .bt-card { background: #ffffff; border: 1px solid var(--card-line); box-shadow: var(--card-shadow); padding: 0 20px 20px; border-top: 1px solid var(--card-line); transition: box-shadow 160ms ease, border-color 160ms ease; }
.by-root .bt-card:hover { box-shadow: var(--card-shadow-hover); border-color: #a39985; }
.by-root .bt-card > .bt-card-img, .by-root .bt-card > .by-image { display: block; width: calc(100% + 40px); max-width: none; margin: 0 -20px 16px; height: 200px; border-bottom: 0; overflow: hidden; justify-self: stretch; }
.by-root .bt-card > .bt-card-img img, .by-root .bt-card > .by-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.by-root .bt-card .bt-note { margin-top: 2px; color: #6b5d28; font-weight: 600; }
.by-root .bt-card .bt-meta { color: var(--ink-muted); }
.by-root .bt-card .bt-prices strong { font-weight: 500; }
.by-root .bt-card .bt-prices small { color: var(--ink-muted); }
.by-root .byt-group-head + .bt-cards .bt-card { border-top: 1px solid var(--card-line); padding-top: 0; }
.by-root .bt-cards, .by-root .bt-cards.is-four, .by-root .bt-cards.bn-grid { gap: var(--space-5); }
@supports (grid-template-rows: subgrid) { .by-root .bt-card { padding-bottom: 20px; } }
.by-root .bn-trackcard { border-color: var(--card-line); box-shadow: var(--card-shadow); transition: box-shadow 160ms ease, border-color 160ms ease; }
.by-root .bn-trackcard:hover { box-shadow: var(--card-shadow-hover); border-color: #a39985; }
.by-root .bn-trackcard.is-qualification { border-top: 3px solid var(--gold); }
.by-root .bn-alltracks { background: #ffffff; }
.by-root .bn-filterbar { background: #ffffff; border: 1px solid var(--card-line); padding: 14px 18px; }
.by-root .bn-results .bn-group-head { border-bottom-color: #161513; }
.by-root .bn-cattile { box-shadow: var(--card-shadow); }

/* ---- Date lists: clear rows, places only when low ---- */
.by-root .bn-datelist { background: #ffffff; border: 1px solid var(--card-line); border-top: 2px solid #161513; padding: 0 20px; box-shadow: var(--card-shadow); }
.by-root .bn-dl-head > span { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #161513; }
.by-root .bn-dl-row:last-child { border-bottom: 0; }
.by-root .bn-dl-place { color: var(--ink-muted); }
.by-root .bn-pill.is-low { background: #f3e7c2; border-color: #c9a94a; color: #4a3d10; }
.by-root .bn-pill.is-full { background: #161513; color: #f7f4ee; border-color: #161513; }

/* ---- Course page: framed booking card, readable sections ---- */
.by-root .bt-pricebox { border: 1px solid #161513; box-shadow: var(--card-shadow-hover); }
.by-root .bn-tstep { box-shadow: var(--card-shadow); border-color: var(--card-line); }
.by-root .bn-tstep.is-optional, .by-root .bn-tstep.is-alt { background: #fbf9f5; }
.by-root .bn-faq details { border-color: var(--line); }
.by-root .bn-faq summary { font-weight: 500; }

/* ---- Logos on light backgrounds sit on an ink chip so the white lettering shows ---- */
.by-root .bn-proofrow img[src*="vtct-cpd"] { background: #161513; padding: 10px 14px; box-sizing: content-box; height: 44px; width: auto; }

/* ---- Home map band: the front of each building ---- */
.by-root .bn-academy-front { height: 360px; overflow: hidden; margin-bottom: var(--space-3); }
.by-root .bn-academy-front img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
@media (max-width: 900px) { .by-root .bn-academy-front { height: 260px; } }

/* ---- Contact page ---- */
.bn-contact-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.bn-contact-form { background: #ffffff; border: 1px solid var(--card-line); box-shadow: var(--card-shadow); padding: var(--space-6); }
.bn-contact-side { display: grid; gap: var(--space-4); }
.bn-contact-card { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-5); background: var(--band); border-left: 3px solid var(--gold); }
.bn-contact-card svg { flex: none; color: #7a6a2e; }
.by-root .bn-contact-card a { text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.by-root .bn-contact .byt-contact-wrap { display: block; }
.by-root .bn-contact .bt-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.by-root .bn-contact .bt-fields .is-full { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .bn-contact-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .by-root .bn-contact .bt-fields { grid-template-columns: 1fr; }
  .bn-contact-form { padding: var(--space-5); }
}

/* ---- My account: framed panels, clear navigation and tables ---- */
.by-root .bt-account { gap: var(--space-7); }
.by-root .woocommerce-MyAccount-navigation ul { border: 1px solid var(--card-line); border-top: 2px solid #161513; background: #ffffff; padding: 0 16px; }
.by-root .woocommerce-MyAccount-navigation li:last-child a { border-bottom: 0; }
.by-root .woocommerce-MyAccount-navigation li a { color: #161513; }
.by-root .woocommerce-MyAccount-navigation li a:hover { color: #7a6a2e; }
.by-root .woocommerce-MyAccount-navigation li.is-active a { font-weight: 700; }
.by-root .byt-tile, .by-root .bn-dash-tracks, .by-root .bn-mytrack { background: #ffffff; border: 1px solid var(--card-line); box-shadow: var(--card-shadow); }
.by-root .byt-tiles { gap: var(--space-4); }
.by-root .woocommerce-MyAccount-content table.shop_table, .by-root .woocommerce-MyAccount-content table.woocommerce-orders-table { width: 100%; border-collapse: collapse; background: #ffffff; border: 1px solid var(--card-line); }
.by-root .woocommerce-MyAccount-content table tbody th { background: transparent; border-bottom: 1px solid var(--line); font-size: 14px; letter-spacing: 0; text-transform: none; }
.by-root .woocommerce-MyAccount-content table thead th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 12px 14px; border-bottom: 2px solid #161513; background: var(--band); }
.by-root .woocommerce-MyAccount-content table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.by-root .woocommerce-MyAccount-content .woocommerce-Address, .by-root .woocommerce-MyAccount-content .u-column1, .by-root .woocommerce-MyAccount-content .u-column2 { background: #ffffff; border: 1px solid var(--card-line); padding: var(--space-5); }
.by-root .woocommerce-MyAccount-content form.woocommerce-EditAccountForm, .by-root .woocommerce-MyAccount-content form.edit-account { background: #ffffff; border: 1px solid var(--card-line); padding: var(--space-6); }
.by-root .byt-learning-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: 10px; }
.by-root .byt-learning-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: 14px 18px; background: #ffffff; border: 1px solid var(--card-line); }
.by-root .bn-badges .bn-badge { background: #ffffff; border: 1px solid var(--card-line); padding: var(--space-5) var(--space-3); }
.by-root .woocommerce-MyAccount-content > h2:first-child { margin-top: 0; }

/* ---- Utility pages without their own template ---- */
.by-root .byt-content > .bn-faq, .by-root .byt-content table { background: #ffffff; }

/* ---- One question style everywhere (sentence case, as on the home page) ---- */
.by-root .bt-faq summary, .by-root .byt-content details > summary, .by-root details.byt-faq summary { font: 500 16px/24px var(--font-sans); letter-spacing: 0; text-transform: none; padding: var(--space-5) 40px var(--space-5) 0; }
.by-root .bt-faq details p, .by-root .bn-faq details p { color: var(--ink-muted); font-size: 15px; line-height: 25px; }
.by-root .bn-tracklinks a { background: #ffffff; border-color: #161513; font-weight: 500; }
.by-root .bn-tracklinks a:hover { background: #161513; color: #f7f4ee; }
.by-root .bn-tracklinks a:hover .bn-tracklinks-type { color: #e3d6a6; }

/* ---- About: team members without a photo yet show their initial, not an empty box ---- */
.by-root .bn-member .by-image.is-initial { aspect-ratio: auto; height: auto; background: transparent; display: flex; justify-content: flex-start; margin-bottom: var(--space-3); }
.by-root .bn-member .by-image.is-initial .bn-member-ph { width: 88px; height: 88px; border-radius: 50%; background: #161513; color: #e3d6a6; display: grid; place-items: center; font-size: 32px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.by-root .bn-member { background: #ffffff; border: 1px solid var(--card-line); box-shadow: var(--card-shadow); padding: var(--space-5); }
.by-root .bn-team-section { background: var(--band); }
.by-root .bn-story-photo { background: transparent; }

/* ---- Plain pages: the text column sits in the middle at a comfortable width ---- */
.by-root .byt-page-section .byt-content:not(.is-wide) { max-width: 860px; margin-left: auto; margin-right: auto; }
.by-root .byt-page-section .byt-content:not(.is-wide) img { max-width: 100%; height: auto; }
.by-root .woocommerce-MyAccount-content table tbody th { padding: 14px; }
.by-root .bn-filterbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.by-root .bn-filterbar-count { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.by-root .bn-filterbar-fields { display: flex; flex-wrap: wrap; gap: var(--space-4); }
@media (max-width: 700px) {
  .by-root .bn-utility { flex-wrap: nowrap; }
  .by-root .bn-utility .bn-utility-side { flex-direction: row; flex-wrap: nowrap; gap: 12px; }
  .by-root .bn-utility a { white-space: nowrap; }
  .by-root .bn-utility a svg { display: none; }
}
@media (max-width: 900px) {
  .by-root .bn-coursehead.bn-hero .bn-ph-lead { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .by-root .bn-factsband .bn-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
  .by-root .bn-factsband .bn-fact { min-width: 0; }
  .by-root .bn-hero .bn-ph-inner { padding-left: 20px; padding-right: 20px; }
}
/* Account menu on phones: one swipeable row instead of a long list above the content */
@media (max-width: 900px) {
  .by-root .woocommerce-MyAccount-navigation { margin-bottom: var(--space-5); }
  .by-root .woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; padding: 0 6px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .by-root .woocommerce-MyAccount-navigation li { flex: none; }
  .by-root .woocommerce-MyAccount-navigation li a { padding: 14px 12px; border-bottom: 2px solid transparent; white-space: nowrap; }
  .by-root .woocommerce-MyAccount-navigation li.is-active a { border-bottom-color: #161513; }
  .by-root .woocommerce-MyAccount-navigation li.is-active a::after { display: none; }
}

/* ===== 55-r60 review ===== */
/* ===== r60: AM's review, 20 Oct 19:15 ===== */

/* ---- Footer: four columns, "Other" last, no contact block or group row ---- */
.by-root .bn-footer3 .bn-footer-top { justify-content: flex-start; }
.by-root .bn-footer3 .bn-footer-contact, .by-root .bn-footer3 .bn-footer-group { display: none; }
.by-root .bn-footer3 .bn-footer-col a { color: #d9d4ca; transition: color 120ms ease; }
.by-root .bn-footer3 .bn-footer-col a:hover { color: #e3d6a6; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Map band: darker, framed photos ---- */
.by-root .bn-maphero-shade { background: rgba(14, 13, 12, 0.86); }
.by-root .bn-academy-front { border: 4px solid #ffffff; box-sizing: border-box; background: #ffffff; }
.by-root .bn-academy-front img { transform: scale(1.015); }

/* ---- Date lists: no Places column, rows light up on hover ---- */
.by-root .bn-datelist { padding: 0; }
.by-root .bn-dl-row { grid-template-columns: 1.3fr 1fr 1fr 0.7fr 120px; padding: 14px 20px; transition: background-color 140ms ease; }
.by-root .bn-datelist.has-course .bn-dl-row { grid-template-columns: 1.1fr 2.2fr 1fr 1fr 0.7fr 120px; }
.by-root .bn-dl-go { justify-self: end; }
.by-root .bn-dl-row:not(.bn-dl-head):hover { background: #f6eedb; }
.by-root .bn-dl-head { background: #ffffff; }
.by-root .bn-dl-course .bn-pill, .by-root .bn-dl-date .bn-pill { margin-left: 6px; vertical-align: middle; }
@media (max-width: 900px) { .by-root .bn-dl-row, .by-root .bn-datelist.has-course .bn-dl-row { grid-template-columns: 1fr auto; padding: 14px 16px; } .by-root .bn-dl-go { justify-self: stretch; } }

/* ---- Home: why choose columns lift on hover; logo strip is one dark band ---- */
.by-root .bn-why > div { padding: var(--space-5) var(--space-5) var(--space-6); border-top: 1px solid #161513; background: transparent; transition: background-color 160ms ease, box-shadow 160ms ease; }
.by-root .bn-why > div:hover { background: var(--band); box-shadow: inset 0 3px 0 #b39b4c; }
.by-root .bn-proofband { background: #161513; color: #f7f4ee; padding: var(--space-4) var(--space-5); border: 0; align-items: center; }
.by-root .bn-proofband img[src*="vtct-cpd"] { background: transparent; padding: 0; height: 40px; }
.by-root .bn-proofband .bn-proofrow-list li { color: #f7f4ee; }
.by-root .bn-proofband .by-textlink, .by-root .bn-proofband a { color: #f7f4ee; }
.by-root .bn-proofband a:hover { color: #e3d6a6; }

/* ---- General hover feedback (tidy padding so nothing touches the edge) ---- */
.by-root .bn-faq summary { padding-left: 12px; padding-right: 12px; transition: background-color 140ms ease; }
.by-root .bn-faq summary:hover, .by-root .bt-faq summary:hover { background: #f6eedb; }
.by-root .bn-faq details p { padding: 0 12px; }
.by-root .bn-contact-card { transition: box-shadow 160ms ease, transform 160ms ease; }
.by-root .bn-contact-card:hover { box-shadow: var(--card-shadow-hover); }
.by-root .bt-card, .by-root .bn-trackcard, .by-root .bn-cattile { transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease; }
.by-root .bt-card:hover, .by-root .bn-trackcard:hover { transform: translateY(-2px); }
.by-root .byt-tile, .by-root .bn-member, .by-root .bn-mytrack, .by-root .bn-badges .bn-badge { transition: box-shadow 160ms ease, border-color 160ms ease; }
.by-root .byt-tile:hover, .by-root .bn-member:hover, .by-root .bn-badges .bn-badge:hover { box-shadow: var(--card-shadow-hover); border-color: #a39985; }
.by-root .byt-learning-list li { transition: background-color 140ms ease; }
.by-root .byt-learning-list li:hover { background: #fbf6ea; }
.by-root .woocommerce-MyAccount-content table tbody tr:hover td, .by-root .woocommerce-MyAccount-content table tbody tr:hover th { background: #fbf6ea; }
@media (prefers-reduced-motion: reduce) { .by-root .bt-card:hover, .by-root .bn-trackcard:hover { transform: none; } }

/* ---- Courses hub tiles: five to a row, name and count on the left, gold arrow on the right ---- */
.by-root .bn-cattiles.is-five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); }
.by-root .bn-cattiles.is-five .bn-cattile { aspect-ratio: 4 / 5; }
.by-root .bn-cattile-bar { align-items: center; padding: 12px 14px; }
.by-root .bn-cattile-text { display: grid; gap: 2px; min-width: 0; }
.by-root .bn-cattile-name { white-space: normal; }
.by-root .bn-cattile-go { flex: none; display: grid; place-items: center; width: 34px; height: 34px; color: #c9b46a; border: 1px solid rgba(201, 180, 106, 0.6); transition: background-color 140ms ease, color 140ms ease; }
.by-root .bn-cattile:hover .bn-cattile-go { background: #c9b46a; color: #161513; }
@media (max-width: 1100px) { .by-root .bn-cattiles.is-five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .by-root .bn-cattiles.is-five { grid-template-columns: repeat(2, minmax(0, 1fr)); } .by-root .bn-cattile-bar { flex-direction: row; } }
.by-root .bn-hero .bn-ph-search .bn-input::placeholder, .by-root .bn-input::placeholder, .by-root input::placeholder, .by-root textarea::placeholder { color: #5f5a52; opacity: 1; }

/* ---- Filter bar on a dark background ---- */
.by-root .bn-filterbar { background: #161513; border-color: #161513; color: #f7f4ee; padding: 14px 20px; }
.by-root .bn-filterbar .bn-fsel .by-eyebrow-text, .by-root .bn-filterbar-count { color: #f7f4ee; }
.by-root .bn-filterbar .bn-select { background-color: #ffffff; color: #161513; border-color: #ffffff; }

/* ---- Heroes: button under the text; course heroes fill the screen so the facts bar sits at the bottom ---- */
.by-root .bn-hero-cta-wrap { margin: var(--space-3) 0 0; }
.by-root .bn-hero .bn-hero-cta { display: inline-flex; align-items: center; gap: 10px; background: #f7f4ee; color: #161513; border: 1px solid #f7f4ee; transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease; }
.by-root .bn-hero .bn-hero-cta svg { color: #7a6a2e; transition: transform 140ms ease, color 140ms ease; }
.by-root .bn-hero .bn-hero-cta:hover { background: #c9b46a; border-color: #c9b46a; color: #161513; }
.by-root .bn-hero .bn-hero-cta:hover svg { color: #161513; transform: translateX(3px); }
.by-root .bn-coursehead.bn-hero .bn-ph-inner { min-height: max(460px, calc(100svh - 300px)); }
.by-root .bn-hero-shade { background: linear-gradient(90deg, rgba(22, 21, 19, 0.92) 0%, rgba(22, 21, 19, 0.78) 45%, rgba(22, 21, 19, 0.5) 100%), linear-gradient(0deg, rgba(22, 21, 19, 0.5) 0%, rgba(22, 21, 19, 0) 45%); }
.by-root #hero-map .bn-hero-shade { background: rgba(14, 13, 12, 0.84); }
.by-root .bn-hero.is-photo .bn-ph-inner, .by-root .bn-hero.is-warm .bn-ph-inner { min-height: 480px; }
.by-root .bn-factsband .bn-facts { gap: var(--space-5) var(--space-9); }

/* ---- Contact: more room above and below ---- */
.by-root .bn-contact { padding-top: var(--space-9); padding-bottom: var(--space-9); }

/* ---- Track badges: plain, no gold underline ---- */
.by-root .bn-trackbadge.is-qualification { box-shadow: none; background: #161513; color: #f7f4ee; border-color: #161513; letter-spacing: 0.08em; }
.by-root .bn-trackbadge { letter-spacing: 0.04em; font-weight: 600; }

/* ---- Card designs page (for AM to choose; not used elsewhere yet) ---- */
.cd-group + .cd-group { margin-top: var(--space-9); }
.cd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.cd-card { display: flex; flex-direction: column; background: #ffffff; border: 1px solid var(--card-line); box-shadow: var(--card-shadow); transition: box-shadow 160ms ease, transform 160ms ease; }
.cd-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.cd-bar { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; overflow: hidden; padding: 10px 14px; letter-spacing: 0.08em !important; background: #e9e4da; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #161513; }
.cd-bar span:last-child { color: #5f5a52; font-weight: 600; }
.cd-img { position: relative; display: block; height: 200px; overflow: hidden; }
.cd-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms ease; }
.cd-card:hover .cd-img img { transform: scale(1.03); }
.cd-pill { position: absolute; left: 12px; top: 12px; padding: 4px 10px; background: #161513; color: #f7f4ee; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.cd-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.by-root .cd-title { margin: 0; font-size: 18px; line-height: 25px; font-weight: 500; }
.by-root .cd-title a { color: #161513; }
.cd-meta { margin: 0; font-size: 14px; color: #36322c; }
.cd-price { margin: auto 0 0; padding-top: 8px; font-size: 14px; color: #36322c; }
.cd-price strong { font-size: 24px; font-weight: 500; color: #161513; }
.cd-note { margin: 0; font-size: 13px; color: #5f5a52; }
.cd-prices { margin-top: auto; padding-top: 8px; display: flex; gap: 24px; }
.cd-prices strong { display: block; font-size: 22px; font-weight: 500; }
.cd-prices small { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #5f5a52; }
.by-root a.cd-btn { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: #161513; color: #f7f4ee; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; transition: background-color 140ms ease; }
.by-root a.cd-btn svg { color: #c9b46a; transition: transform 140ms ease; }
.by-root a.cd-btn:hover { background: #2a2824; }
.by-root a.cd-btn:hover svg { transform: translateX(4px); }
@media (max-width: 1100px) { .cd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cd-grid { grid-template-columns: 1fr; } }

/* ===== 56-r63 review ===== */
/* ==== r63: AM's review, 20 Oct 20:53 ==== */

/* ---- Course cards: Design A everywhere (grey format bar, category, one price, black button) ---- */
.by-root .bt-cards { margin-bottom: 0 !important; row-gap: var(--space-5) !important; align-items: stretch; }
.by-root .bk-card { height: 100%; min-width: 0; }
.by-root .bk-card .cd-bar { justify-content: flex-start; }
.by-root .bk-card .cd-body { gap: 6px; }
.by-root .bk-card .cd-kicker { margin: 0; font-size: 12px; line-height: 18px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #6b5d28; }
.by-root .bk-card .cd-meta { color: #5f5a52; }
.by-root .bk-card .cd-price { padding-top: 14px; }
.by-root .bk-card .cd-note { margin: 4px 0 0; }
.by-root .bk-card .cd-title a:hover { color: #6b5d28; }
.by-root .bt-cards.is-dense .bk-card .cd-title { font-size: 17px; line-height: 24px; }

/* ---- Heroes: one height site-wide (the home hero's), content centred, minimal ---- */
.by-root .bn-herophoto-inner { min-height: 580px; align-items: center; padding-top: var(--space-8); padding-bottom: var(--space-8); }
.by-root .bn-hero .bn-ph-inner,
.by-root .bn-hero.is-photo .bn-ph-inner,
.by-root .bn-hero.is-warm .bn-ph-inner,
.by-root .bn-hero.is-compact .bn-ph-inner,
.by-root .bn-coursehead.bn-hero .bn-ph-inner { position: relative; min-height: 580px; align-items: center; justify-content: space-between; gap: var(--space-8); padding-top: var(--space-8); padding-bottom: var(--space-8); }
.by-root .bn-hero .bn-ph-copy { gap: var(--space-4); }
.by-root .bn-hero .bn-ph-lead { max-width: 600px; }
.by-root .bn-hero .bn-ph-extra { margin-top: var(--space-2); }
.by-root .bn-hero .bn-ph-aside { flex: none; align-self: center; }
.by-root .bn-hero .bn-accred { display: block; width: 300px; max-width: 32vw; }
.by-root .bn-hero .bn-accred img { width: 100%; height: auto; display: block; }
.by-root .bn-hero .bn-hero-cta-wrap { margin-top: var(--space-4); }

/* Home title: gold, 1px tighter */
.by-root .bn-herophoto-copy .by-display { color: #c9b46a; letter-spacing: calc(0.12em - 1px); }

/* "Back" link (replaces every breadcrumb), pinned to the top of the hero so the title stays centred */
.by-root .bn-back { position: absolute; top: var(--space-6); left: var(--edge); z-index: 1; }
.by-root .bn-back a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 1px solid rgba(247, 244, 238, 0.45); color: #f7f4ee; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease; }
.by-root .bn-back a svg { color: #c9b46a; transition: transform 140ms ease; }
.by-root .bn-back a:hover { border-color: #c9b46a; color: #c9b46a; background: rgba(22, 21, 19, 0.35); }
.by-root .bn-back a:hover svg { transform: translateX(-3px); }
.by-root .bn-crumb { display: none; }
/* Pages outside a hero (posts, learner screens) keep the link in the flow, in ink */
.by-root .bn-back:not(.bn-hero .bn-back) { position: static; margin-bottom: var(--space-4); }
.by-root .bn-back:not(.bn-hero .bn-back) a { color: #161513; border-color: var(--line-strong); }
.by-root .bn-back:not(.bn-hero .bn-back) a:hover { color: #6b5d28; border-color: #6b5d28; background: transparent; }

/* Contact: a clearer, lighter overlay so the silk background shows */
.by-root #hero-contact .bn-hero-shade { background: linear-gradient(90deg, rgba(14, 13, 12, 0.72) 0%, rgba(14, 13, 12, 0.35) 55%, rgba(14, 13, 12, 0.1) 100%); }
.by-root #hero-contact .bn-hero-bg { object-position: center; }

@media (max-width: 900px) {
  .by-root .bn-hero .bn-ph-inner { flex-direction: column; align-items: flex-start; justify-content: center; }
  .by-root .bn-hero .bn-accred { width: 220px; max-width: 70vw; }
}
@media (max-width: 600px) {
  .by-root .bn-herophoto-inner,
  .by-root .bn-hero .bn-ph-inner,
  .by-root .bn-hero.is-photo .bn-ph-inner,
  .by-root .bn-hero.is-warm .bn-ph-inner,
  .by-root .bn-hero.is-compact .bn-ph-inner,
  .by-root .bn-coursehead.bn-hero .bn-ph-inner { min-height: 560px; padding-top: 76px; padding-bottom: var(--space-7); }
  .by-root .bn-back { top: 20px; left: 20px; }
  .by-root .bn-herophoto-copy .by-display { letter-spacing: calc(0.08em - 1px); }
}

/* ---- Training locations: dark content, light text, gold on hover ---- */
.by-root .bn-locations-page { background: #161513; color: #f7f4ee; border-top: 1px solid rgba(247, 244, 238, 0.12); }
.by-root .bn-locations-page .bn-location { border-top-color: rgba(247, 244, 238, 0.28); }
.by-root .bn-locations-page h2, .by-root .bn-locations-page .by-h1, .by-root .bn-locations-page .by-numeral { color: #ffffff; }
.by-root .bn-locations-page .by-label { color: #ffffff; }
.by-root .bn-locations-page .by-eyebrow-text { color: #e3d6a6; }
.by-root .bn-locations-page .by-eyebrow::before { background: #c9b46a; }
.by-root .bn-locations-page .bn-address, .by-root .bn-locations-page .by-body { color: #f7f4ee; }
.by-root .bn-locations-page .by-muted, .by-root .bn-locations-page .by-small, .by-root .bn-locations-page .by-caption { color: rgba(247, 244, 238, 0.72) !important; }
.by-root .bn-locations-page .bn-places li { transition: color 140ms ease; }
.by-root .bn-locations-page .bn-places li:hover .by-label { color: #c9b46a; }
.by-root .bn-locations-page .by-btn { background: transparent; color: #f7f4ee; border-color: #f7f4ee; }
.by-root .bn-locations-page .by-btn:hover { background: #c9b46a; border-color: #c9b46a; color: #161513; }
.by-root .bn-locations-page a:not(.by-btn) { color: #f7f4ee; }
.by-root .bn-locations-page a:not(.by-btn):hover { color: #c9b46a; }
.by-root .bn-locations-page .bn-location-outside .by-image { border: 4px solid #ffffff; box-shadow: none; outline: 0; background: #ffffff; }
.by-root .bn-locations-page .bn-location-outside .by-image img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.015); }
.by-root .bn-locations-page .bn-notice { background: rgba(247, 244, 238, 0.06); color: #f7f4ee; border-top-color: #c9b46a; }
.by-root .bn-locations-page .bn-notice .by-body { color: rgba(247, 244, 238, 0.82) !important; }
.by-root .bn-locations-page .by-textlink, .by-root .bn-locations-page .by-textlink span { color: #f7f4ee; }
.by-root .bn-locations-page .by-textlink:hover, .by-root .bn-locations-page .by-textlink:hover span { color: #c9b46a; }

/* ---- Advanced Learner Loans ---- */
.by-root .bn-all-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-9); align-items: start; }
.by-root .bn-all-points .bn-sub, .by-root .bn-all-form .bn-sub { margin: 0 0 var(--space-5); }
.by-root .bn-all-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.by-root .bn-all-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: var(--space-5) 12px; border-top: 1px solid var(--line); transition: background-color 140ms ease; }
.by-root .bn-all-list li:last-child { border-bottom: 1px solid var(--line); }
.by-root .bn-all-list li:hover { background: #f6eedb; }
.by-root .bn-all-list li > svg { color: #6b5d28; margin-top: 2px; }
.by-root .bn-all-list strong { display: block; font-size: 16px; line-height: 24px; font-weight: 600; color: #161513; }
.by-root .bn-all-list span { display: block; font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.by-root .bn-all-list a { color: #161513; text-decoration: underline; text-underline-offset: 3px; }
.by-root .bn-all-list a:hover { color: #6b5d28; }
.by-root .bn-all-form { background: #ffffff; border: 1px solid var(--card-line); box-shadow: var(--card-shadow); padding: var(--space-7); }
.by-root .bn-all-course { padding: 0 0 var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.by-root .bn-all-course p { margin: 0; max-width: 640px; font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.by-root .bn-all-length { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 600; color: #161513 !important; }
.by-root .bn-all-length svg { color: #6b5d28; }
.by-root .bn-ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px var(--space-6); }
.by-root .bn-ticks li { position: relative; padding-left: 24px; font-size: 14px; line-height: 22px; color: #36322c; }
.by-root .bn-ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid #6b5d28; border-bottom: 2px solid #6b5d28; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .by-root .bn-all-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .by-root .bn-all-form { padding: var(--space-5); }
  .by-root .bn-ticks { grid-template-columns: 1fr; }
}

/* About: Anne-Marie's photo in the same circle as the initials */
.by-root .bn-member .by-image.is-initial .bn-member-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: center 25%; display: block; }

/* ===== 57-r65 review ===== */
/* ==== r65: AM's review, 20 Oct 21:55 ==== */

body.by-root { overflow-x: clip; }

/* ---- Titles in Caps Case site-wide (headings and card titles; questions stay as written) ---- */
.by-root .bn-ph-title, .by-root .bn-sub, .by-root .by-h1, .by-root .by-h2, .by-root .by-h3, .by-root .by-statement, .by-root .by-display,
.by-root .cd-title, .by-root .bn-group-title, .by-root .bt-h4, .by-root .bn-nextstep-title, .by-root .bn-close-title, .by-root .bn-tstep-title,
.by-root .bn-acc-head h2, .by-root .bn-mytrack-title, .by-root .bn-continue-title, .by-root .bn-suggest-title, .by-root .bn-learn-group-title,
.by-root .byt-content h2, .by-root .byt-content h3, .by-root .byt-content h4, .by-root .woocommerce-MyAccount-content h2, .by-root .woocommerce-MyAccount-content h3,
.by-root .product_title, .by-root .woocommerce-loop-product__title { text-transform: capitalize; }
.by-root .bn-herophoto-copy .by-display { text-transform: uppercase; }
.by-root .bn-faq summary, .by-root .bn-faq details p, .by-root .byt-content p { text-transform: none; }

/* ---- Hero logos sit lower, level with the buttons ---- */
.by-root .bn-hero .bn-ph-aside:has(.bn-accred) { align-self: flex-end; margin-bottom: 6px; }
.by-root .bn-herophoto-inner .bn-accred { align-self: end; margin-bottom: 6px; }

/* ---- Hero search: about 60% wider ---- */
.by-root .bn-hero .bn-ph-search { width: 100%; max-width: 660px; }
.by-root .bn-hero .bn-ph-extra:has(.bn-ph-search) { width: 100%; }

/* ---- Filter bars: full width, straight under the hero ---- */
.by-root .bn-filterband { background: #161513; border-top: 1px solid rgba(247, 244, 238, 0.12); }
.by-root .bn-filterband .bn-filterbar { border: 0; background: transparent; padding: 18px 0; margin: 0; box-shadow: none; }
.by-root .bn-filterband + .by-section { padding-top: var(--space-8); }
.by-root .bn-dates-section { padding-top: 0 !important; }
.by-root .bn-dates-page .byt-dates-tools { width: 100vw; margin: 0 calc(50% - 50vw) var(--space-7); padding: 18px calc(50vw - 50%); box-sizing: border-box; border: 0; border-top: 1px solid rgba(247, 244, 238, 0.12); }
.by-root .bn-dates-page .byt-dates-tools .bt-label { color: #f7f4ee; }
@media (max-width: 600px) { .by-root .bn-dates-page .byt-dates-tools { padding: 16px 16px; } }

/* ---- Training locations: beige London box, neater academy layout ---- */
.by-root .bn-locations-page .bn-notice { background: #f2ede4; color: #161513; border-top: 3px solid #c9b46a; }
.by-root .bn-locations-page .bn-notice .by-label { color: #161513; }
.by-root .bn-locations-page .bn-notice .by-body { color: #36322c !important; }
.by-root .bn-locations-page .bn-notice .by-textlink, .by-root .bn-locations-page .bn-notice .by-textlink span { color: #161513 !important; }
.by-root .bn-locations-page .bn-notice .by-textlink:hover, .by-root .bn-locations-page .bn-notice .by-textlink:hover span { color: #6b5d28 !important; }
.by-root .bn-location-body.bn-loc3 { display: grid; grid-template-columns: 300px minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.by-root .bn-loc-col { display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start; }
.by-root .bn-loc-block { display: flex; flex-direction: column; gap: 10px; width: 100%; padding-top: var(--space-4); border-top: 1px solid rgba(247, 244, 238, 0.2); }
.by-root .bn-loc-col > .bn-loc-block:first-child { border-top: 0; padding-top: 0; }
.by-root .bn-locations-page .bn-location-head { padding-bottom: var(--space-2); }
@media (max-width: 1000px) { .by-root .bn-location-body.bn-loc3 { grid-template-columns: 1fr 1fr; } .by-root .bn-loc3 .bn-location-outside { grid-column: 1 / -1; max-width: 380px; } }
@media (max-width: 640px) { .by-root .bn-location-body.bn-loc3 { grid-template-columns: 1fr; gap: var(--space-6); } }

/* ---- Tracks ---- */
.by-root .bn-tracks-faq { padding-top: var(--space-9); padding-bottom: var(--space-9); }
.by-root .bn-alltracks .bn-trackgroup { display: grid; gap: var(--space-5); }
.by-root .bn-alltracks .bn-trackgroup + .bn-trackgroup { margin-top: var(--space-7); }
.by-root .bn-tstep-top:not(:has(*)) { display: none; }
.by-root .bn-tsteptag.is-other { background: #f2ede4; color: #161513; border: 1px solid #cbc2b2; }

/* ==== My Account ==== */
.woocommerce-account.by-root .byt-page-section { background: #f2ede4; }

/* Hero: abstract artwork (no photo), bold title, the learner's numbers on the right */
.by-root #hero-account { background: #120f0c; }
.by-root .bn-hero-art { position: absolute; inset: 0; z-index: -2; overflow: hidden; background:
  radial-gradient(60% 90% at 85% 20%, rgba(201, 180, 106, 0.55) 0%, rgba(201, 180, 106, 0) 60%),
  radial-gradient(50% 80% at 65% 110%, rgba(184, 50, 122, 0.45) 0%, rgba(184, 50, 122, 0) 60%),
  radial-gradient(45% 70% at 105% 85%, rgba(47, 127, 224, 0.35) 0%, rgba(47, 127, 224, 0) 60%),
  linear-gradient(120deg, #161513 0%, #221b14 55%, #2b2117 100%); }
.by-root .bn-hero-art span { position: absolute; border-radius: 50%; border: 1px solid rgba(227, 214, 166, 0.22); }
.by-root .bn-hero-art span:nth-child(1) { width: 720px; height: 720px; right: -160px; top: -260px; }
.by-root .bn-hero-art span:nth-child(2) { width: 480px; height: 480px; right: 120px; top: 120px; border-color: rgba(227, 214, 166, 0.14); }
.by-root .bn-hero-art span:nth-child(3) { width: 260px; height: 260px; right: 520px; bottom: -120px; border-color: rgba(233, 162, 59, 0.25); }
.by-root #hero-account .bn-hero-shade { background: linear-gradient(90deg, rgba(18, 15, 12, 0.75) 0%, rgba(18, 15, 12, 0.2) 60%, rgba(18, 15, 12, 0) 100%); }
.by-root #hero-account .bn-ph-title { font-weight: 700; letter-spacing: -0.01em; }
.by-root #hero-account .bn-ph-aside { flex: 0 1 460px; align-self: center; }
.by-root .bn-acc-stats { display: grid; gap: var(--space-4); padding: var(--space-5); background: rgba(22, 21, 19, 0.55); border: 1px solid rgba(227, 214, 166, 0.28); backdrop-filter: blur(6px); }
.by-root .bn-acc-statgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.by-root .bn-acc-statgrid a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; background: rgba(247, 244, 238, 0.06); border: 1px solid rgba(247, 244, 238, 0.12); color: #f7f4ee; text-decoration: none; transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease; }
.by-root .bn-acc-statgrid a:hover { background: rgba(201, 180, 106, 0.18); border-color: #c9b46a; transform: translateY(-2px); }
.by-root .bn-acc-statgrid svg { grid-row: 1 / 3; color: #e3d6a6; }
.by-root .bn-acc-statgrid strong { font-size: 26px; line-height: 30px; font-weight: 700; color: #ffffff; }
.by-root .bn-acc-statgrid span { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247, 244, 238, 0.78); }
.by-root .bn-acc-level-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 8px; }
.by-root .bn-acc-level-name { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #e3d6a6; }
.by-root .bn-acc-level-next { font-size: 13px; color: rgba(247, 244, 238, 0.82); }
.by-root .bn-acc-levelbar { height: 10px; background: rgba(247, 244, 238, 0.14); border-radius: 999px; overflow: hidden; }
.by-root .bn-acc-levelbar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #e9a23b, #c9b46a 50%, #f2d675); box-shadow: 0 0 12px rgba(242, 214, 117, 0.6); }

/* Navigation: high contrast, the current tab in ink */
.by-root .woocommerce-MyAccount-navigation ul { padding: 8px; border: 1px solid #cbc2b2; border-top: 3px solid #161513; box-shadow: var(--card-shadow); }
.by-root .woocommerce-MyAccount-navigation li a { padding: 13px 12px; border-bottom: 1px solid #e6dfd2; color: #161513; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; transition: background-color 120ms ease, color 120ms ease; }
.by-root .woocommerce-MyAccount-navigation li a:hover { background: #f6eedb; color: #161513; }
.by-root .woocommerce-MyAccount-navigation li.is-active a { background: #161513; color: #ffffff; border-bottom-color: #161513; }
.by-root .woocommerce-MyAccount-navigation li.is-active a::after { background: #c9b46a; width: 14px; height: 2px; }
.by-root .woocommerce-MyAccount-content { color: #161513; }
.by-root .woocommerce-MyAccount-content .by-muted, .by-root .woocommerce-MyAccount-content .bt-muted { color: #36322c !important; }

/* Shared account pieces */
.by-root .bn-acc-head { margin-bottom: var(--space-5); }
.by-root .bn-acc-head h2 { margin: 0 0 6px; font-size: 30px; line-height: 38px; font-weight: 600; }
.by-root .bn-acc-intro { margin: 0; font-size: 15px; line-height: 24px; color: #36322c; max-width: 640px; }
.by-root .bn-acc-empty { display: grid; gap: 10px; justify-items: start; padding: var(--space-6); background: #ffffff; border: 1px dashed #b5aa94; }
.by-root .bn-acc-empty p { margin: 0; color: #36322c; }
.by-root .bn-acc-empty .bn-acc-empty-title { font-size: 18px; font-weight: 600; color: #161513; }

/* Dashboard: continue card */
.by-root .bn-acc-dash { display: grid; gap: var(--space-6); }
.by-root .bn-continue { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); padding: var(--space-6) var(--space-7); background: linear-gradient(120deg, #161513 0%, #2b2117 100%); color: #f7f4ee; box-shadow: 0 10px 30px rgba(22, 21, 19, 0.18); }
.by-root .bn-continue::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 180, 106, 0.45), rgba(201, 180, 106, 0) 70%); pointer-events: none; }
.by-root .bn-continue-text { display: grid; gap: 8px; min-width: 0; flex: 1; position: relative; z-index: 1; }
.by-root .bn-continue-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #e3d6a6; }
.by-root .bn-continue-title { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; color: #ffffff; }
.by-root .bn-continue-bar { height: 8px; max-width: 460px; background: rgba(247, 244, 238, 0.16); border-radius: 999px; overflow: hidden; }
.by-root .bn-continue-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #e9a23b, #f2d675); }
.by-root .bn-continue-pct { margin: 0; font-size: 13px; color: rgba(247, 244, 238, 0.82); }
.by-root a.bn-continue-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; background: #c9b46a; color: #161513; border: 1px solid #c9b46a; flex: none; }
.by-root a.bn-continue-btn:hover { background: #f2d675; border-color: #f2d675; color: #161513; }

/* Dashboard: shortcuts */
.by-root .bn-acc-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.by-root .bn-acc-tile { position: relative; display: grid; gap: 6px; height: 100%; padding: var(--space-5); background: #ffffff; border: 1px solid #cbc2b2; color: #161513; text-decoration: none; box-shadow: var(--card-shadow); transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.by-root .bn-acc-tile:hover { transform: translateY(-3px); border-color: #161513; box-shadow: var(--card-shadow-hover); }
.by-root .bn-acc-tile-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #161513; color: #e3d6a6; margin-bottom: 6px; }
.by-root .bn-acc-tile-name { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.by-root .bn-acc-tile-sub { font-size: 14px; color: #36322c; }
.by-root .bn-acc-tile-go { position: absolute; right: 16px; top: 18px; color: #6b5d28; transition: transform 140ms ease; }
.by-root .bn-acc-tile:hover .bn-acc-tile-go { transform: translateX(4px); }

/* Dashboard: panels */
.by-root .bn-dash-panels { margin: 0; gap: var(--space-5); }
.by-root .bn-dash-panel { display: grid; gap: var(--space-4); align-content: start; padding: var(--space-6); background: #ffffff; border: 1px solid #cbc2b2; box-shadow: var(--card-shadow); }
.by-root .bn-dash-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.by-root .bn-dash-panel-head h3 { margin: 0; font-size: 22px; font-weight: 600; }
.by-root .bn-dash-count { font-size: 14px; font-weight: 700; color: #6b5d28; }
.by-root .bn-dash-trackname { margin: 0; font-size: 16px; font-weight: 600; }
.by-root .bn-dash-trackname a { color: #161513; }
.by-root .bn-dash-trackname span { display: block; font-size: 13px; font-weight: 400; color: #36322c; }
.by-root .bn-tprogress { border-radius: 999px; border: 0; background: #e9e4da; }
.by-root .bn-tprogress > span { border-radius: 999px; background: linear-gradient(90deg, #6b5d28, #c9b46a); }
.by-root .bn-tprogress.is-big { height: 12px; }
.by-root .bn-nextstep { padding: var(--space-4); background: #f6eedb; border-left: 3px solid #c9b46a; }
.by-root .bn-nextstep .by-eyebrow-text { color: #6b5d28; }

/* Badges: each its own colour when earned */
.by-root .bn-badge { --b1: #c9a227; --b2: #f2d675; }
.by-root .bn-badge.is-k-welcome { --b1: #d6336c; --b2: #f59ab5; }
.by-root .bn-badge.is-k-first-steps { --b1: #0f8f88; --b2: #5fd3c7; }
.by-root .bn-badge.is-k-first-course { --b1: #b8860b; --b2: #f2d675; }
.by-root .bn-badge.is-k-rising-star { --b1: #6f42c1; --b2: #b79cf5; }
.by-root .bn-badge.is-k-track-started { --b1: #1f6fd1; --b2: #7fb7ff; }
.by-root .bn-badge.is-k-first-track { --b1: #1b8a4b; --b2: #72d39a; }
.by-root .bn-badge.is-k-qualified { --b1: #b8327a; --b2: #e9a23b; }
.by-root .bn-badges .bn-badge { position: relative; gap: 10px; padding: var(--space-6) var(--space-3) var(--space-5); background: #ffffff; border: 1px solid #cbc2b2; box-shadow: var(--card-shadow); transition: transform 180ms ease, box-shadow 180ms ease; }
.by-root .bn-badges .bn-badge.is-earned { border-color: var(--b1); box-shadow: 0 10px 24px color-mix(in srgb, var(--b1) 22%, transparent); }
.by-root .bn-badges .bn-badge.is-earned:hover { transform: translateY(-4px); }
.by-root .bn-badge.is-earned .bn-badge-disc { position: relative; background: linear-gradient(135deg, var(--b1), var(--b2)); color: #ffffff; border: 0; box-shadow: 0 0 0 4px #ffffff, 0 0 0 6px var(--b1), 0 10px 22px color-mix(in srgb, var(--b1) 45%, transparent); overflow: hidden; }
.by-root .bn-badge.is-earned .bn-badge-disc svg { color: #ffffff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)); }
.by-root .bn-badge.is-earned .bn-badge-disc::after { content: ""; position: absolute; top: -40%; left: -60%; width: 60%; height: 180%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); transform: rotate(25deg); animation: bn-shine 4.5s ease-in-out infinite; }
@keyframes bn-shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .by-root .bn-badge.is-earned .bn-badge-disc::after { animation: none; display: none; } }
.by-root .bn-badge.is-earned .bn-badge-name { background: color-mix(in srgb, var(--b1) 12%, #ffffff); color: #161513; }
.by-root .bn-badge.is-locked .bn-badge-disc { background: #f2ede4; border: 2px dashed #b5aa94; color: #8a8173; }
.by-root .bn-badge.is-locked .bn-badge-disc svg { color: #8a8173; }
.by-root .bn-badge.is-locked .bn-badge-name { color: #36322c; }
.by-root .bn-badge-when { font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--b1) 80%, #161513); }
.by-root .bn-badge-how { font-size: 13px; line-height: 19px; color: #36322c; max-width: 200px; }
.by-root .bn-badges:not(.is-strip) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) { .by-root .bn-badges:not(.is-strip) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.by-root .bn-badges.is-strip { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.by-root .bn-badges.is-strip .bn-badge { padding: 0; border: 0; background: transparent; box-shadow: none; gap: 6px; width: 76px; }
.by-root .bn-badges.is-strip .bn-badge-name { padding: 0; background: transparent !important; font-size: 12px; line-height: 16px; }
.by-root .bn-badges.is-strip .bn-badge-when, .by-root .bn-badges.is-strip .bn-badge-how { display: none; }
.by-root .bn-badge-summary { display: grid; grid-template-columns: auto 1fr; gap: 10px var(--space-6); align-items: center; padding: var(--space-5) var(--space-6); background: linear-gradient(120deg, #161513, #2b2117); color: #f7f4ee; margin-bottom: var(--space-5); }
.by-root .bn-badge-score { display: flex; align-items: baseline; gap: 10px; }
.by-root .bn-badge-score strong { font-size: 44px; line-height: 1; font-weight: 700; color: #f2d675; }
.by-root .bn-badge-score span { font-size: 14px; color: rgba(247, 244, 238, 0.85); }
.by-root .bn-badge-bar { height: 12px; background: rgba(247, 244, 238, 0.16); border-radius: 999px; overflow: hidden; }
.by-root .bn-badge-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #d6336c, #e9a23b, #f2d675); }
.by-root .bn-badge-next { grid-column: 1 / -1; margin: 0; font-size: 15px; color: rgba(247, 244, 238, 0.9); }
.by-root .bn-badge-next strong { color: #ffffff; }
.by-root .bn-badge-next span { color: #e3d6a6; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.by-root .bn-badge-toast .bn-badge-disc { background: linear-gradient(135deg, var(--b1), var(--b2)); }

/* My tracks */
.by-root .bn-mytrack { gap: var(--space-5); padding: var(--space-6); border: 1px solid #cbc2b2; }
.by-root .bn-mytrack-head { align-items: center; }
.by-root .bn-mytrack-cat { display: block; margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #6b5d28; }
.by-root .bn-mytrack-title { margin: 0; font-size: 24px; line-height: 30px; font-weight: 600; }
.by-root .bn-mytrack-title a { color: #161513; }
.by-root .bn-mytrack-score { display: grid; justify-items: end; }
.by-root .bn-mytrack-score strong { font-size: 34px; line-height: 1; font-weight: 700; color: #161513; }
.by-root .bn-mytrack-score span { font-size: 13px; color: #36322c; }
.by-root .bn-mytrack-steps { gap: 0; }
.by-root .bn-mytrack-steps li.bn-mytrack-stage { display: flex; align-items: center; gap: 10px; margin: var(--space-4) 0 6px; color: #161513; font-size: 13px; letter-spacing: 0.1em; }
.by-root .bn-mytrack-steps li.bn-mytrack-stage span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #161513; color: #e3d6a6; font-size: 12px; letter-spacing: 0; }
.by-root .bn-mytrack-steps li.bn-mytrack-stage em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; color: #36322c; }
.by-root .bn-mystep { display: grid !important; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border-bottom: 1px solid #ece6db; transition: background-color 120ms ease; }
.by-root .bn-mystep:hover { background: #faf6ee; }
.by-root .bn-mystep a { color: #161513; font-size: 15px; line-height: 21px; text-decoration: none; }
.by-root .bn-mystep a:hover { text-decoration: underline; }
.by-root .bn-mystep-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e9e4da; color: #6b5d28; }
.by-root .bn-mystep.is-done .bn-mystep-icon { background: #1b8a4b; color: #ffffff; }
.by-root .bn-mystep.is-started .bn-mystep-icon { background: #e9a23b; color: #161513; }
.by-root .bn-statuspill { white-space: nowrap; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: #e9e4da; color: #36322c; }
.by-root .bn-statuspill.is-done { background: #dff3e7; color: #135f34; }
.by-root .bn-statuspill.is-started { background: #fdeccd; color: #7a4a05; }
.by-root .bn-statuspill.is-optional { background: transparent; border: 1px solid #b5aa94; color: #36322c; }
.by-root .bn-mytrack-side { background: transparent; padding: 0; }
.by-root .bn-mytrack-have, .by-root .bn-mytrack-key { margin: 0; font-size: 14px; color: #36322c; }
.by-root .bn-mytrack-key { font-size: 13px; }
.by-root .bn-nextstep.is-done { background: #dff3e7; border-left-color: #1b8a4b; }
.by-root .bn-suggest { margin-top: var(--space-7); }
.by-root .bn-suggest-title { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.by-root .bn-suggest-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.by-root .bn-suggest-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: #ffffff; border: 1px solid #cbc2b2; }
.by-root .bn-suggest-list li > div { display: grid; gap: 2px; min-width: 0; }
.by-root .bn-suggest-name { color: #161513; font-weight: 600; }
.by-root .bn-suggest-have { font-size: 13px; color: #36322c; }
.by-root .bn-suggest-list .bn-follow-form { flex: none; }
.by-root .bn-suggest-list .bn-follow { min-height: 38px; padding: 8px 14px; font-size: 12px; }

/* My learning */
.by-root .bn-learn-summary { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.by-root .bn-learn-summary li { display: grid; gap: 2px; padding: 16px 18px; background: #ffffff; border: 1px solid #cbc2b2; border-top: 4px solid #b5aa94; }
.by-root .bn-learn-summary li.is-progress { border-top-color: #e9a23b; }
.by-root .bn-learn-summary li.is-done { border-top-color: #1b8a4b; }
.by-root .bn-learn-summary strong { font-size: 30px; line-height: 34px; font-weight: 700; color: #161513; }
.by-root .bn-learn-summary span { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #36322c; }
.by-root .bn-learn-group + .bn-learn-group { margin-top: var(--space-7); }
.by-root .bn-learn-group-title { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--space-3); font-size: 20px; font-weight: 600; }
.by-root .bn-learn-group-title span { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: #161513; color: #e3d6a6; font-size: 13px; }
.by-root .bn-learn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.by-root .bn-learn-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); padding: 14px 18px; background: #ffffff; border: 1px solid #cbc2b2; transition: border-color 140ms ease, box-shadow 140ms ease; }
.by-root .bn-learn-list li:hover { border-color: #161513; box-shadow: var(--card-shadow); }
.by-root .bn-learn-main { display: grid; grid-template-columns: minmax(0, 1fr) 160px auto; align-items: center; gap: 6px 16px; min-width: 0; flex: 1; }
.by-root .bn-learn-name { color: #161513; font-weight: 600; text-decoration: none; }
.by-root .bn-learn-name:hover { text-decoration: underline; }
.by-root .bn-learn-bar { height: 8px; background: #e9e4da; border-radius: 999px; overflow: hidden; }
.by-root .bn-learn-bar span { display: block; height: 100%; background: linear-gradient(90deg, #e9a23b, #c9b46a); border-radius: 999px; }
.by-root .is-done .bn-learn-bar span { background: #1b8a4b; }
.by-root .bn-learn-pct { font-size: 13px; color: #36322c; white-space: nowrap; }
.by-root .bn-learn-list .by-btn { flex: none; min-height: 40px; padding: 10px 18px; }

/* Orders, addresses and details: easier to read */
.by-root .woocommerce-MyAccount-content table.shop_table { background: #ffffff; border: 1px solid #cbc2b2; }
.by-root .woocommerce-MyAccount-content table.shop_table td, .by-root .woocommerce-MyAccount-content table.shop_table th { color: #161513; }
.by-root .woocommerce-MyAccount-content form:not(.bn-follow-form), .by-root .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address { background: #ffffff; border: 1px solid #cbc2b2; padding: var(--space-5); }
.by-root .woocommerce-MyAccount-content label { color: #161513; font-weight: 600; }

@media (max-width: 1100px) {
  .by-root .bn-acc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .by-root #hero-account .bn-ph-aside { flex-basis: auto; width: 100%; max-width: 520px; }
}
@media (max-width: 700px) {
  .by-root .bn-continue { flex-direction: column; align-items: flex-start; padding: var(--space-5); }
  .by-root .bn-learn-main { grid-template-columns: 1fr; }
  .by-root .bn-learn-list li { flex-direction: column; align-items: stretch; }
  .by-root .bn-suggest-list { grid-template-columns: 1fr; }
  .by-root .bn-learn-summary strong { font-size: 24px; }
  .by-root .bn-mytrack { padding: var(--space-5); }
  .by-root .bn-mytrack-score { justify-items: start; }
  .by-root .bn-badge-summary { grid-template-columns: 1fr; padding: var(--space-5); }
  .by-root .bn-acc-statgrid strong { font-size: 22px; }
}
@media (max-width: 480px) { .by-root .bn-acc-tile { padding: 16px; } .by-root .bn-acc-tile-name { font-size: 12px; } }

/* r66 follow-ups */
.by-root .bn-hero .bn-ph-copy { flex: 1 1 auto; max-width: 760px; }
.by-root .bn-location-head h2, .by-root .bn-location-head .by-h1, .by-root .bn-location-head .by-h2 { text-transform: none; }
