/* ===========================================================
   The Five Behaviors — shared front-of-site design system
   Primary colour: #e80e27 (brand red). Used by every public
   marketing page via includes/header.php + includes/footer.php.
   Not used by the admin or register.php.
   =========================================================== */

:root {
  --red: #e80e27;
  --red-dark: #c50d21;
  --red-tint: #fdecec;
  --navy: #1c2b4a;
  --grey: #6b7280;
  --grey-light: #9aa1ab;
  --bg: #f7f7f5;
  --bg-offset: #f3f2ee;
  --white: #ffffff;
  --border: #e5e2dc;
  --success-bg: #e6f4ea;
  --success-text: #1a7a34;

  /* Typeface and metrics match buydisc.co.uk (the master site) so the two
     merge cleanly: Inter, Bootstrap 5 container widths, Canvas line heights. */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --content-width: 1140px;    /* xl; widens to 1320px at 1400px and above - see .wrap */
  --line-height-base: 1.5;    /* --cnvs-line-height-base */
  --line-height-content: 1.65;/* --cnvs-line-height-content */
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(28, 43, 74, 0.08);
  --shadow-lg: 0 10px 30px rgba(28, 43, 74, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

a { color: var(--red); }
a:hover { color: var(--red-dark); }

/* Heading weight/sizes as BuyDISC (600; h1 2.25 / h2 1.875 / h3 1.5 / h4 1.125rem).
   Kept fluid at the small end, and with this site's tighter heading margin so
   the card-dense layouts don't gap open. */
h1, h2, h3, h4 { color: var(--navy); font-weight: 600; line-height: 1.25; margin: 0 0 16px; }
h1 { font-size: clamp(1.875rem, 4vw, 2.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p, li { line-height: var(--line-height-content); }
p { margin: 0 0 16px; }
.lead { font-size: 1.15rem; color: var(--grey); }

/* Bootstrap 5 container steps, as used across buydisc.co.uk. */
.wrap { max-width: var(--content-width); margin: 0 auto; padding: 0 20px; }
@media (min-width: 1400px) { .wrap { max-width: 1320px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; text-decoration: none; text-align: center;
  border-radius: var(--radius-sm); padding: 13px 28px; font-size: 1rem; border: 2px solid transparent;
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 20px;
}
.site-logo { display: inline-flex; }
.site-logo img { width: 165px; height: auto; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 0;
}
.nav-toggle__bar { display: block; width: 24px; height: 2px; background: var(--navy); }

/* The primary nav is a flat list of ordinary links – no dropdowns – so every
   destination is crawlable and keyboard-reachable in source order. */
.site-nav { display: flex; align-items: center; gap: 24px; }
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 18px; }
.nav-list > li { display: flex; align-items: center; }
.nav-link { display: inline-block; color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.92rem; line-height: 1.6; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-link:hover, .nav-link.is-active { color: var(--red); border-bottom-color: var(--red); }
.nav-cta { white-space: nowrap; padding: 10px 22px; }
.site-nav a:focus-visible, .nav-toggle:focus-visible {
  outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px;
}

/* Six items + Buy now: tighten slightly before switching to the menu button. */
@media (min-width: 1121px) and (max-width: 1220px) {
  .site-logo img { width: 136px; }
  .site-header__inner { gap: 16px; }
  .site-nav { gap: 18px; }
  .nav-list { gap: 15px; }
  .nav-link { font-size: 0.9rem; }
  .nav-cta { padding: 9px 16px; }
}

@media (max-width: 1120px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch;
    padding: 10px 20px 20px; gap: 14px; display: none;
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > .nav-link { display: block; padding: 11px 0; border-bottom: 1px solid var(--border); }
  .nav-list > li > .nav-link.is-active { border-bottom-color: var(--red); }
  .nav-list > li { display: block; }
  .nav-cta { align-self: flex-start; }
}

/* No-JS fallback: the mobile menu is shown inline, because the menu button
   needs JS. */
@media (max-width: 1120px) {
  html:not(.js) .site-header__inner { flex-wrap: wrap; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav { display: flex; position: static; width: 100%; padding: 0; box-shadow: none; border-bottom: 0; max-height: none; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; padding: 0; font-size: 0.85rem; color: var(--grey); }
/* Safety net: keep the breadcrumb aligned with .wrap content even if a page
   places it directly under <main> without its own .wrap div. */
main > .breadcrumb { max-width: var(--content-width); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--grey-light); }
.breadcrumb a { color: var(--grey); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb li[aria-current] { color: var(--navy); font-weight: 600; }
/* fb_breadcrumbs() wraps the <ol class="breadcrumb"> in <nav class="breadcrumb-nav">
   inside a .wrap; same safety net if a page emits the nav without .wrap. */
main > .breadcrumb-nav { max-width: var(--content-width); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 48px; background: var(--bg); }
.hero.hero-compact { padding: 40px 0; }
.hero__eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
/* Homepage hero: each product button with its price directly underneath. */
.hero__actions--priced { gap: 18px 14px; }
.hero__choice { display: flex; flex-direction: column; gap: 8px; flex: 1 1 220px; max-width: 290px; }
.hero__choice .btn { text-align: center; }
.hero__price { margin: 0; font-size: 0.85rem; line-height: 1.45; color: var(--grey); }
.hero__compare { margin: 18px 0 0; font-size: 0.9rem; color: var(--grey); }
@media (max-width: 560px) { .hero__choice { flex-basis: 100%; max-width: none; } }

/* Two-column hero: text left, photo right (stacks on mobile) */
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }
.hero__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Image-beside-text content block, reversible with .media-split--reverse */
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .media-split { grid-template-columns: 1fr; } }
.media-split--reverse .media-split__media { order: 2; }
.media-split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; }
.media-split__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-offset); }
.section-tight { padding: 36px 0; }
.section__head { max-width: 720px; margin-bottom: 36px; }
.section__head.center { margin-left: auto; margin-right: auto; text-align: center; }
/* Full-width intro, for sections whose content below also runs full width. */
.section__head--wide { max-width: none; }

/* ---------- Pyramid accents (official artwork in img/official/, unaltered) ----------
   Opt-in splashes of brand colour – use occasionally, not on every section.
   .hero--pyramid     Red pyramid rising from the bottom-right of a text-only
                      hero (not one with a .hero__grid photo). The hero text is
                      kept clear of it; hidden at 900px and below.
   .section--pyramid  Light-grey pyramid watermark in the bottom-right corner
                      of a white .section. It is #F2F2F2, so it vanishes on
                      .section-alt and hero backgrounds – white sections only. */
.hero--pyramid, .section--pyramid { position: relative; overflow: hidden; }
@media (min-width: 901px) {
  .hero--pyramid > .wrap { position: relative; padding-right: 300px; }
  .hero--pyramid > .wrap::after {
    content: ''; position: absolute; right: 20px; bottom: -90px;
    width: 260px; aspect-ratio: 1; pointer-events: none;
    background: url('../images/five-behaviors/official/pyramid-red.svg') no-repeat center bottom / contain;
  }
}
.section--pyramid { isolation: isolate; }
.section--pyramid::after {
  content: ''; position: absolute; z-index: -1; right: -60px; bottom: -110px;
  width: 420px; aspect-ratio: 800 / 650; pointer-events: none;
  background: url('../images/five-behaviors/official/pyramid-gray.svg') no-repeat center / contain;
}
@media (max-width: 560px) { .section--pyramid::after { width: 260px; bottom: -70px; } }

/* ---------- Trust strip ---------- */
.trust-strip { display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: center; padding: 20px 0; font-size: 0.9rem; color: var(--navy); font-weight: 600; }
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip span::before { content: '✓'; color: var(--red); font-weight: 700; }

/* ---------- Cards / grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .card-grid, .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
}

/* Grid items stretch to equal height by default, but content still stacks
   top-down within each card — without flex + margin-top:auto on the CTA,
   a shorter card's button sits higher than its neighbours' in the same row. */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 10px; }
.card.card-cta { text-align: center; }
.card > .btn, .card > .hero__actions { margin-top: auto; }

/* ---------- Pricing ---------- */
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.price-card__amount { font-size: 2.4rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.price-card__amount small { font-size: 1rem; font-weight: 600; color: var(--grey); }
/* Words in place of a figure, e.g. "Price on application". */
.price-card__amount--text { font-size: 1.6rem; font-weight: 700; }
.price-card__vat { color: var(--grey); font-size: 0.9rem; margin-top: 4px; }
.price-card__min { display: inline-block; margin-top: 10px; padding: 4px 10px; background: var(--red-tint); color: var(--red-dark); border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.price-card ul { padding-left: 20px; margin: 20px 0; }
.price-card li { margin-bottom: 8px; }
.price-card > .btn { margin-top: auto; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 52px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* ---------- Tables (comparison) ---------- */
.table-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; background: #fff; }
table.compare th, table.compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.compare thead th { background: var(--bg-offset); font-size: 0.95rem; }
table.compare tbody th { font-weight: 600; color: var(--navy); white-space: nowrap; }

/* ---------- FAQ accordion (native details/summary) ---------- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 4px; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--red); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-answer { padding: 0 4px 20px; color: var(--grey); }
/* fb_faq_list() puts each question in a heading inside <summary> – keep it
   looking exactly like the plain summary text. */
.faq-item__q { font-size: inherit; font-weight: inherit; color: inherit; line-height: 1.4; margin: 0; }

/* ---------- Key facts ("At a glance", fb_key_facts()) ---------- */
.key-facts { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; margin: 24px 0; }
.key-facts__title { font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); margin: 0 0 12px; }
.key-facts__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 24px; margin: 0; }
.key-facts__item { min-width: 0; }
.key-facts dt { font-size: 0.8rem; font-weight: 600; color: var(--grey); }
.key-facts dd { margin: 2px 0 0; font-size: 0.95rem; font-weight: 700; color: var(--navy); line-height: 1.4; }

/* ---------- Reviewer byline (fb_byline()) ---------- */
.byline { font-size: 0.82rem; color: var(--grey); margin: 12px 0 0; }
.byline a { color: var(--grey); text-decoration: underline; text-decoration-color: var(--grey-light); }
.byline a:hover { color: var(--red); }
.byline__sep { margin: 0 4px; }
/* The closing line that ends each page (fb_page_meta(), printed by includes/footer.php). */
.page-meta { border-top: 1px solid var(--border); padding: 18px 0 0; }
.page-meta .byline { margin: 0; }

/* ---------- Long-form text (policy pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }

/* ---------- Callout / notice ---------- */
.callout { background: var(--bg-offset); border-left: 4px solid var(--red); border-radius: var(--radius-sm); padding: 20px 24px; }
.callout.callout-navy { border-left-color: var(--navy); }

/* ---------- Tags ---------- */
.tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; background: var(--bg-offset); color: var(--navy); }
.tag-red { background: var(--red-tint); color: var(--red-dark); }
.tag-green { background: var(--success-bg); color: var(--success-text); }

/* ---------- Footer ----------
   Site-wide, shared with every BuyDISC page: markup in inc/site-footer.php
   and styles in assets/css/site-footer.css, both at the BuyDISC root. */

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ===========================================================
   Shared components (includes/components.php)
   =========================================================== */

/* ---------- PDF links (fb_pdf_link(), fb_sample_link()) ---------- */
.pdf-link__meta { font-size: 0.85em; font-weight: 400; }
.btn .pdf-link__meta { font-weight: 600; }
.pdf-link__icon::before { content: '\2197'; display: inline-block; margin-left: 0.3em; font-size: 0.9em; font-weight: 400; }

/* ---------- Facts panel ("At a glance", fb_facts_panel()) ---------- */
.facts-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin: 24px 0; }
.facts-panel__title { font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); margin: 0 0 14px; }
.facts-panel__groups { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .facts-panel__groups--2, .facts-panel__groups--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 961px) {
  .facts-panel__groups--3 { grid-template-columns: repeat(3, 1fr); }
}
.facts-panel__group { background: var(--bg); border-radius: var(--radius-sm); padding: 16px 18px; min-width: 0; }
.facts-panel__group--accent { border-top: 3px solid var(--red); }
.facts-panel__group-title { font-size: 1.05rem; margin: 0 0 10px; }
.facts-panel__list { margin: 0; }
.facts-panel__row { display: grid; grid-template-columns: minmax(90px, 36%) 1fr; gap: 4px 14px; padding: 8px 0; border-top: 1px solid var(--border); }
.facts-panel__row:first-child { border-top: 0; padding-top: 0; }
.facts-panel dt { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.facts-panel dd { margin: 0; color: var(--navy); font-size: 0.95rem; line-height: 1.45; }
.facts-panel__note { font-size: 0.88rem; color: var(--grey); margin: 10px 0 0; }
.facts-panel__link { margin: 10px 0 0; font-weight: 700; font-size: 0.92rem; }
@media (max-width: 420px) {
  .facts-panel { padding: 18px 16px; }
  .facts-panel__row { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Scenario cards (fb_scenario_cards()) ---------- */
.scenario-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 761px) {
  .scenario-grid--cols-2, .scenario-grid--cols-3, .scenario-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .scenario-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.scenario-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; display: flex; flex-direction: column; min-width: 0;
}
.scenario-card__title { font-size: 1.15rem; margin: 0 0 8px; }
.scenario-card__text { color: var(--grey); margin: 0 0 16px; }
.scenario-card__rec { background: var(--bg); border-left: 4px solid var(--navy); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 16px; }
.scenario-card--team .scenario-card__rec { border-left-color: var(--red); }
.scenario-card__rec-label { margin: 0 0 4px; }
.scenario-card__kicker { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--grey); }
.scenario-card__rec-label strong { font-size: 1.05rem; }
.scenario-card__reason { margin: 0; font-size: 0.92rem; }
.scenario-card__link { margin-top: auto; font-weight: 700; text-decoration: none; }
.scenario-card__link:hover { text-decoration: underline; }

/* ---------- Step / stage sequence (fb_steps()) ---------- */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.step-list__item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; min-width: 0; }
.step-list__num {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.step-list__body { min-width: 0; }
.step-list__title { font-size: 1.05rem; margin: 6px 0; }
.step-list__text { color: var(--grey); font-size: 0.95rem; }
.step-list__text p:last-child, .step-list__text ul:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .step-list--row.step-list--2 { grid-template-columns: repeat(2, 1fr); }
  .step-list--row.step-list--3 { grid-template-columns: repeat(3, 1fr); }
  .step-list--row.step-list--4 { grid-template-columns: repeat(4, 1fr); }
  .step-list--row.step-list--5 { grid-template-columns: repeat(5, 1fr); }
  .step-list--row .step-list__item { flex-direction: column; }
  .step-list--row .step-list__title { margin-top: 0; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .step-list--row.step-list--4, .step-list--row.step-list--5 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Partner badge / credibility block (fb_credibility_block()) ---------- */
.partner-badge { display: block; height: auto; }
.cred-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.cred-block__grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 861px) { .cred-block--with-quote .cred-block__grid { grid-template-columns: 1.2fr 1fr; } }
.cred-block__title { margin-bottom: 10px; }
.cred-block__experience { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.cred-block__intro { color: var(--grey); }
.cred-block__points { padding-left: 20px; margin: 0 0 16px; }
.cred-block__points li { margin-bottom: 6px; }
.cred-block__partner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 16px; font-weight: 600; }
.cred-block__partner p { margin: 0; }
.cred-block__more { margin: 0; font-weight: 700; }
.cred-block__more a { text-decoration: none; }
.cred-block__more a:hover { text-decoration: underline; }
.cred-block__quote { margin: 0; background: var(--bg-offset); border-left: 4px solid var(--red); border-radius: var(--radius-sm); padding: 20px 22px; }
.cred-block__quote blockquote { margin: 0 0 12px; font-size: 1.05rem; color: var(--navy); }
.cred-block__quote blockquote p { margin: 0; }
.cred-block__quote blockquote p::before { content: '\201C'; }
.cred-block__quote blockquote p::after { content: '\201D'; }
.cred-block__cite { font-size: 0.9rem; color: var(--grey); }
.cred-block__cite strong { color: var(--navy); }
.cred-block__cite span { display: block; }
.cred-block__logos { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.cred-block__logos-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--grey); margin-bottom: 12px; }
.logo-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.logo-row img { max-height: 48px; object-fit: contain; filter: grayscale(1); opacity: 0.8; }
.cred-block--compact { padding: 20px 22px; }
.cred-block--compact .cred-block__grid { grid-template-columns: 1fr; gap: 16px; }
.cred-block--compact .cred-block__experience { font-size: 1.1rem; }
@media (max-width: 560px) { .cred-block { padding: 20px 16px; } }

/* ==== Comparison + Consultants pages (page agent) ==== */
.tvp-quick { max-width: 780px; }
.tvp-guide .scenario-card { border-top: 4px solid var(--navy); }
.tvp-guide .scenario-card--team { border-top-color: var(--red); }
.tvp-guide__more { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 32px; align-items: start; }
@media (min-width: 900px) { .tvp-guide__more { grid-template-columns: 1.3fr 1fr; } }
.tvp-guide__more h3 { font-size: 1.15rem; }
.tvp-questions { margin: 0; }
.tvp-questions > div { padding: 12px 0; border-top: 1px solid var(--border); }
.tvp-questions dt { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.tvp-questions dd { margin: 0; color: var(--grey); }
.tvp-unsure { background: #fff; }
.tvp-after-table { margin-top: 20px; }
.tvp-story { max-width: 860px; }
.tvp-story h2 { font-size: 1.3rem; margin-bottom: 8px; }
@media (max-width: 640px) {
  table.tvp-table tbody th { white-space: normal; min-width: 7.5em; }
  table.tvp-table th, table.tvp-table td { padding: 12px 10px; font-size: 0.92rem; }
}
.cf-resources { margin-top: 32px; padding: 22px 24px; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--navy); border-radius: var(--radius); }
.cf-resources h3 { margin-bottom: 6px; }
.cf-resources__list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 761px) { .cf-resources__list { grid-template-columns: repeat(2, 1fr); } }
.cf-resources__item { background: var(--bg); border-radius: var(--radius-sm); padding: 14px 16px; }
.cf-resources__item .pdf-link { font-weight: 700; }
.cf-resources__item p { margin: 6px 0 0; color: var(--grey); font-size: 0.92rem; }
.cf-resources__note { font-size: 0.92rem; }
@media (min-width: 901px) and (max-width: 1150px) { .tvp-related, .cf-related { grid-template-columns: repeat(2, 1fr); } }

/* ==== Facilitation page (page agent) ==== */
.fac-note { margin: 24px 0 0; color: var(--grey); max-width: 820px; }
.fac-context { max-width: 820px; }
.fac-context p:last-child { margin-bottom: 0; font-weight: 700; }
.fac-person { flex-direction: row; gap: 18px; align-items: flex-start; }
.fac-person__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.fac-person__role { color: var(--grey); font-size: 0.9rem; font-weight: 600; margin: -4px 0 10px; }
.fac-more { margin: 20px 0 0; font-weight: 700; }
.fac-format { margin-top: 40px; }
.fac-figure { margin: 0; min-width: 0; }
.fac-figure .media-split__media { aspect-ratio: auto; }
.fac-figure .media-split__media img { height: auto; display: block; }
.fac-figure figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--grey); }
.media-split--reverse > .fac-figure { order: 2; }
.fac-includes { background: var(--bg-offset); }
@media (max-width: 560px) { .fac-person { flex-direction: column; } }

/* ==== Homepage + Five Dysfunctions story (page agent) ==== */
.home-story__sub { font-size: 1.1rem; font-weight: 600; color: var(--red); margin-top: -6px; }
.story-narrow { max-width: 860px; }
.story-note { font-size: 0.85rem; color: var(--grey); margin-top: 12px; }
table.story-options { min-width: 860px; }
table.story-options thead th { vertical-align: bottom; }
table.story-options tbody th { white-space: normal; min-width: 130px; }
.story-options-wrap:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
#workshops .callout { background: #fff; }
.story-scroll-hint { display: none; font-size: 0.85rem; font-weight: 600; color: var(--grey); margin-bottom: 8px; }
@media (max-width: 900px) { .story-scroll-hint { display: block; } table.story-options tbody th { min-width: 110px; } }

/* ==== about-us + for-organisations (page agent) ==== */
.about-partner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 8px; }
.about-hero-media { margin: 0; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
.about-experience { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.about-partner-card { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--red); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.about-partner-card .partner-badge { margin-bottom: 14px; }
.about-partner-card__line { font-weight: 700; font-size: 1.05rem; }
.person-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.person-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; min-width: 0; }
.person-card__head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.person-card__photo { width: 112px; height: 112px; flex: none; border-radius: 50%; object-fit: cover; background: var(--bg); }
.person-card__name { margin: 0 0 4px; }
.person-card__role { margin: 0; color: var(--grey); font-weight: 600; font-size: 0.95rem; }
.person-card__label { font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; color: var(--grey); margin: 18px 0 8px; }
.person-card__list { padding-left: 20px; margin: 0 0 8px; }
.person-card__list li { margin-bottom: 6px; }
.person-card__link { font-weight: 700; }
.about-note { max-width: 760px; margin: 24px 0 0; color: var(--grey); }
.about-list { padding-left: 20px; margin: 0 0 16px; }
.about-list li { margin-bottom: 10px; }
.about-figure { margin: 0; aspect-ratio: auto; background: #fff; }
.about-figure img { height: auto; aspect-ratio: 1200 / 857; }
.about-figure figcaption { padding: 10px 14px; font-size: 0.85rem; color: var(--grey); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.about-logos { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.about-logos .logo-row img { width: auto; height: 40px; }
.about-next h2 { margin-bottom: 10px; }
.about-contact { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.about-contact h3 { font-size: 1.05rem; margin-bottom: 8px; }
.about-contact ul { list-style: none; margin: 0 0 12px; padding: 0; }
.about-contact li { margin-bottom: 4px; }
.about-contact p { font-size: 0.9rem; color: var(--grey); }
.org-lead { max-width: 760px; }
.org-note { margin-top: 20px; }
.org-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px 40px; align-items: start; }
.org-checklist__intro { margin: 0 0 8px; font-weight: 600; }
.org-checklist { padding-left: 20px; margin: 0 0 20px; }
/* A key line given more weight than body copy – a statement, not a call to action. */
.org-statement { margin: 0; padding: 2px 0 2px 18px; border-left: 4px solid var(--red); font-size: 1.3rem; line-height: 1.45; font-weight: 600; color: var(--navy); }
@media (max-width: 560px) { .org-statement { font-size: 1.15rem; padding-left: 14px; } }
.org-checklist li { margin-bottom: 6px; }
.org-trust { align-items: stretch; }
.org-trust__title { font-size: 1.25rem; }
.org-sample { margin-top: 12px; font-size: 0.92rem; }
.org-closing { margin: 28px 0 0; }
@media (max-width: 900px) {
  .about-cols, .about-experience, .person-grid, .quote-grid, .org-split { grid-template-columns: 1fr; }
  .about-experience, .org-split { gap: 24px; }
}
@media (max-width: 480px) {
  .person-card { padding: 20px 16px; }
  .person-card__photo { width: 88px; height: 88px; }
}

/* ==== Products, samples & support pages (page agent) ==== */
.product-note { margin-top: 20px; font-size: 0.95rem; color: var(--grey); }
.hero__actions--center { justify-content: center; }
.sample-preview { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; text-align: left; }
.card.card-cta.sample-preview { text-align: left; }
.sample-preview__cover, .sample-cover { display: block; width: 100%; max-width: 180px; height: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.sample-preview__more { margin: 12px 0 0; font-size: 0.95rem; }
.sample-cover { max-width: 150px; margin-bottom: 16px; }
@media (min-width: 640px) {
  .sample-preview { grid-template-columns: 180px 1fr; gap: 32px; }
}

/* ===========================================================
   Client-logo carousel — fb_logo_carousel() in includes/components.php,
   upgraded by the [data-logo-carousel] block in assets/js/five-behaviors.js.

   The markup is a plain <ul> of logos. These rules are the carousel
   geometry (one row, clipped, translated a page at a time) and apply
   whether or not the JS has run yet, so upgrading causes NO layout
   shift. With scripting off, the <noscript> block printed by the
   component overrides them back to a wrapped static grid.

   --fb-logos-per-view sets how many logos fill the frame (2 on phones
   up to 5 on wide screens); the JS reads it to work out how many pages
   there are. --fb-logo-h is the shared logo height, set inline per
   instance (default 40px, matching the old .logo-row treatment).
   =========================================================== */
.logo-carousel { --fb-logos-per-view: 2; --fb-logo-h: 40px; margin-top: 4px; }
@media (min-width: 560px)  { .logo-carousel { --fb-logos-per-view: 3; } }
@media (min-width: 800px)  { .logo-carousel { --fb-logos-per-view: 4; } }
@media (min-width: 1040px) { .logo-carousel { --fb-logos-per-view: 5; } }
/* Compact placements (e.g. inside .cred-block on the homepage) show fewer. */
.logo-carousel--compact { --fb-logos-per-view: 2; }
@media (min-width: 560px) { .logo-carousel--compact { --fb-logos-per-view: 3; } }
@media (min-width: 800px) { .logo-carousel--compact { --fb-logos-per-view: 4; } }

.logo-carousel__note { font-size: 0.8rem; color: var(--grey); margin: 0 0 12px; max-width: 70ch; }
.logo-carousel__frame { display: flex; align-items: center; gap: 8px; }
.logo-carousel__viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.logo-carousel__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: nowrap; align-items: center;
  transform: translateX(0);
  transition: transform 600ms ease;
}
/* Percentage widths (no flex gap) so one page = exactly 100% of the frame. */
.logo-carousel__item {
  flex: 0 0 calc(100% / var(--fb-logos-per-view));
  display: flex; align-items: center; justify-content: center;
  padding: 8px 12px;
  min-height: calc(var(--fb-logo-h) + 16px);   /* reserves the row height */
}
.logo-carousel__item img {
  width: auto; height: auto;                    /* keep the artwork's ratio */
  max-width: 100%; max-height: var(--fb-logo-h);
  object-fit: contain;
  filter: grayscale(1); opacity: 0.8;
}

.logo-carousel__controls { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.logo-carousel__controls[hidden], .logo-carousel__btn[hidden] { display: none; }
.logo-carousel__btn {
  width: 36px; height: 36px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--navy);
  border: 1px solid var(--border); border-radius: 50%;
  font: inherit; line-height: 1; cursor: pointer;
}
.logo-carousel__btn:hover { background: var(--bg-offset); border-color: var(--grey-light); }
.logo-carousel__btn:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.logo-carousel__glyph { font-size: 1.4rem; display: inline-flex; align-items: center; justify-content: center; }
/* Pause = two bars; the --playing state swaps it for a play triangle. */
.logo-carousel__pause { display: block; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.logo-carousel__btn--toggle.is-paused .logo-carousel__pause {
  width: 0; height: 0; border: 0;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
}

/* Reduced motion: the JS never autoplays and hides the pause/play button;
   prev/next still work, they just don't slide. */
@media (prefers-reduced-motion: reduce) {
  .logo-carousel__list { transition: none; }
}

@media (max-width: 560px) {
  .logo-carousel__item { padding: 8px; }
  .logo-carousel__btn { width: 32px; height: 32px; }
}

/* ===========================================================
   Team Development – sample report page previews (§6) and the
   in-page anchor offset used by the suitability-card link (§5)
   -----------------------------------------------------------
   Written as a standalone part file so it can be pasted into
   assets/css/five-behaviors.css without touching anything already there.
   Nothing here is required for the markup to be readable: the
   figures, captions and PDF link are ordinary flow content and
   degrade to a single stacked column with no CSS at all.

   Markup it styles (team-development/index.php, inside the
   "What does the Team Development profile give your team?"
   section):

     <div class="report-gallery">
       <h3 class="report-gallery__title" id="sample-report-pages">…</h3>
       <p class="report-gallery__intro">…</p>
       <div class="report-gallery__grid">
         <figure class="report-gallery__item">
           <img class="report-gallery__img" …>
           <figcaption class="report-gallery__caption">…</figcaption>
         </figure>  … ×3
       </div>
       <p class="report-gallery__more"><!-- fb_sample_link() --></p>
     </div>

   Depends only on tokens already defined in assets/css/five-behaviors.css :root
   (--border, --grey, --navy, --white, --radius-sm, --shadow).
   =========================================================== */

.report-gallery {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.report-gallery__title {
  margin-bottom: 8px;
}

.report-gallery__intro {
  max-width: 720px;
  color: var(--grey);
  font-size: 0.95rem;
}

/* Three previews side by side on desktop; the grid collapses to a
   single stacked column below 860px (see the media query). No
   carousel, no horizontal scrolling. */
.report-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.report-gallery__item {
  margin: 0;
  min-width: 0;
}

/* width/height are set on the <img> itself (900×1165) so space is
   reserved before the file loads; aspect-ratio keeps that ratio
   once the image is scaled down to the column width. */
.report-gallery__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 1165;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.report-gallery__caption {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--grey);
}

.report-gallery__caption strong {
  color: var(--navy);
}

.report-gallery__more {
  margin: 24px 0 0;
}

@media (max-width: 860px) {
  .report-gallery__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* -----------------------------------------------------------
   Sticky-header offset for in-page anchors
   -----------------------------------------------------------
   .site-header is position:sticky (≈82px tall: 53px logo +
   14px padding top and bottom + 1px border), so a jump to
   #price would otherwise put the heading underneath it. The
   site had no scroll-margin convention when this was written;
   these are the ids that are actually linked to in-page.
   Safe to widen to a shared rule if more anchors are added.
   ----------------------------------------------------------- */
#price,
#faqs,
#sample-report-pages {
  scroll-margin-top: 96px;
}

/* ===========================================================
   The Five Behaviors model  (amendments 25 Sep 2026, §7)
   -----------------------------------------------------------
   Used by: /five-dysfunctions-team-assessment/ – section#model
   The official pyramid artwork carries the shape; the five levels are
   listed below it in base-to-apex order, each with its behaviour name,
   the dysfunction it replaces and what it looks like in practice.
   (An earlier CSS-drawn pyramid warped, because band heights were driven
   by the length of each explanation rather than the model geometry.)
   =========================================================== */
.pyr { margin: 0; }
.pyr__art { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto 28px; }
.pyr__levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 900px) { .pyr__levels { grid-template-columns: 1fr 1fr; gap: 20px 32px; } }
.pyr__level { display: block; }
.pyr__band {
  display: inline-block; background: var(--red); color: #fff; border-radius: 4px;
  padding: 3px 10px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 8px;
}
.pyr__detail { border-left: 3px solid var(--red-tint); padding-left: 16px; }
.pyr__behaviour { margin: 0 0 4px; font-size: 1.02rem; }
.pyr__meta { margin: 0 0 6px; font-size: 0.82rem; color: var(--grey); }
.pyr__meta-level { font-weight: 700; color: var(--navy); }
.pyr__meta-dys::before { content: " · "; }
.pyr__practice { margin: 0; font-size: 0.95rem; }
.pyr__caption { margin-top: 20px; font-size: 0.85rem; color: var(--grey); }

/* Diagram in a media-split slot: show the whole graphic. The default
   .media-split__media crops to a 3:2 photo box, which cut the pyramid's
   apex and base off. */
.model-media { aspect-ratio: auto; overflow: visible; border-radius: 0; box-shadow: none; }
.model-media img { width: 100%; height: auto; max-width: 460px; margin: 0 auto; display: block; object-fit: contain; }

/* Homepage model list (official five-behaviour labels) and the model figure
   on /personal-development/ — both sit beside/under the official pyramid art. */
.model-list { list-style: none; margin: 18px 0 20px; padding: 0; counter-reset: model; }
.model-list li { position: relative; padding: 0 0 0 38px; margin-bottom: 12px; counter-increment: model; font-size: 0.97rem; }
.model-list li::before {
  content: counter(model); position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff;
  font-size: 0.82rem; font-weight: 700; display: grid; place-items: center;
}
.model-figure { margin: 0 0 28px; text-align: center; }
.model-figure img { max-width: 100%; height: auto; }
.model-figure figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--grey); }

/* ---------- Links across to the main BuyDISC (Everything DiSC) site ----------
   This section lives at buydisc.co.uk/five-behaviors/ and keeps its own
   chrome, so these are the visible route back to the DiSC site. */
.nav-link--sibling { color: var(--grey); }
.nav-link--sibling:hover { color: var(--navy); }
@media (min-width: 1121px) {
  .nav-link--sibling { margin-left: 6px; padding-left: 18px; border-left: 1px solid var(--border); }
}
