/* ==========================================================================
   Propel Franchise - design system
   --------------------------------------------------------------------------
   One stylesheet for the whole public site. Values are taken from the approved
   HTML concepts in /templates so the built pages match the designs exactly;
   what has been added is what a static concept does not need - focus states,
   responsive behaviour below 1024px, form validation styling and a mobile
   drawer for the sidebar the sitemap requires on every page.

   Contents
     01  Tokens
     02  Reset & base
     03  Layout
     04  Sidebar
     05  Mobile topbar & drawer
     06  Page furniture (breadcrumbs, page head, sections)
     07  Buttons
     08  Forms
     09  Tags, chips & badges
     10  Cards - brand, article, supplier, event
     11  Filters & result bar
     12  Pagination
     13  Hero & homepage blocks
     14  Detail-page blocks (fact card, spec table, gallery, enquiry)
     15  Editorial body copy
     16  CTA bands & dark cards
     17  FAQ accordion
     18  Alerts & empty states
     19  Footer
     20  Utilities
     21  Responsive
     22  Motion & print
   ========================================================================== */

/* --------------------------------------------------------------------------
   01  Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --ink:        #0D2620;
  --ink-2:      #123A32;
  --ink-3:      #1B4A40;
  --orange:     #FF6A1A;
  --orange-d:   #E85D0F;
  --orange-l:   rgba(255, 106, 26, .15);

  /* Surface */
  --bg:         #F5F3EE;
  --white:      #FFFFFF;
  --cream:      #F7F5EF;
  --border:     #E4E0D6;
  --border-2:   #D6D1C4;

  /* Text */
  --text:       #15211D;
  --muted:      #69756F;
  --on-ink:     #DCE4E0;
  --on-ink-dim: #9FAEA8;
  --on-ink-mid: #B9C4BF;
  --on-ink-low: #7C8B85;

  /* Content-type accents (news feed, article meta) */
  --c-news:     #2563EB;
  --c-report:   #16A34A;
  --c-event:    #FF6A1A;
  --c-insight:  #9333EA;
  --c-interview:#0891B2;

  /* State */
  --success:    #15803D;
  --success-bg: #F0FDF4;
  --danger:     #B91C1C;
  --danger-bg:  #FEF2F2;

  /* Type */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-body);

  /* Shape */
  --r-sm: 7px;
  --r:    8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Rhythm */
  --sidebar-w:  250px;
  --page-max:   1180px;
  --gutter:     40px;
  --topbar-h:   62px;

  --shadow-sm:  0 1px 2px rgba(13, 38, 32, .06);
  --shadow:     0 4px 16px rgba(13, 38, 32, .08);
  --shadow-lg:  0 12px 32px rgba(13, 38, 32, .12);

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --------------------------------------------------------------------------
   02  Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.2; color: var(--ink); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }

ul, ol { list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

strong, b { font-weight: 700; }

hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }

/* Visible focus for everything interactive. The concepts had none; a
   marketplace that captures leads needs to be keyboard-operable. */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 3px;
}
.sidebar :focus-visible { outline-color: var(--orange); outline-offset: 1px; }

::selection { background: var(--orange-l); color: var(--ink); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--orange);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r) 0;
  font-weight: 700;
  font-size: 13.5px;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   03  Layout
   -------------------------------------------------------------------------- */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

/* Column layout so the footer's margin-top:auto pins it to the bottom on
   pages too short to fill the viewport. */
.main {
  background: var(--white);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.main > .band,
.main > .page,
.main > .hero,
.main > .section { flex: none; }

/* Horizontal rhythm for everything inside main. */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Vertical padding is set with longhand, never "padding: 48px 0".
   17 views apply .section and .page to the SAME element (class="page section").
   A padding shorthand there resets .page's horizontal gutter to zero, which is
   invisible on desktop - .page is max-width 1180px with auto margins, so the
   centring still leaves space at the sides - and takes the gutter away
   completely below 1180px, where the auto margins collapse to nothing. */
.section { padding-top: 48px; padding-bottom: 48px; }
.section--tight { padding-top: 32px; padding-bottom: 32px; }
.section--flush-top { padding-top: 0; }
.section--bg { background: var(--bg); }

/* A full-bleed band that still aligns its contents to the page grid. */
.band { width: 100%; }
.band--bg { background: var(--bg); }
.band--ink { background: var(--ink); color: var(--on-ink); }

/* Two-column content + rail, used by the homepage and every listing page. */
.with-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}
.with-rail--wide-rail { grid-template-columns: minmax(0, 1fr) 320px; }

/* Filter rail on the left, results on the right. */
.with-filters {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   04  Sidebar
   -------------------------------------------------------------------------- */
.sidebar {
  background: var(--ink);
  color: var(--on-ink);
  padding: 28px 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .18) transparent;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .16);
  border-radius: var(--r-pill);
}

/* The logo artwork is dark on transparent, so it sits on a cream card that
   bleeds to the sidebar edges. */
.logo-card {
  background: var(--cream);
  margin: -28px -22px 26px;
  padding: 26px 24px 22px;
  display: block;
}
.logo-card img { width: 100%; height: auto; }

.side-group { margin-bottom: 2px; }

.side-nav a,
.side-nav .side-nav-label {
  padding: 11px 12px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--on-ink-mid);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }

.side-nav a.is-active {
  background: var(--orange-l);
  color: var(--orange);
}
.side-nav a.is-active .dot { background: var(--orange); }

.side-nav-label { cursor: default; color: var(--on-ink-mid); }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

/* Sub-navigation: sectors and investment bands. Per the sitemap these are
   filters on the listing page, not pages of their own, so they link into
   /franchise-opportunities with a query string. */
.side-sub { margin: 0 0 6px 30px; }
.side-sub a {
  display: block;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: #8FA09A;
  border-radius: var(--r-sm);
  transition: color .15s var(--ease), background .15s var(--ease);
}
.side-sub a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.side-sub a.is-active { color: var(--orange); }

.side-promo {
  background: rgba(255, 255, 255, .06);
  border-radius: var(--r-md);
  padding: 16px;
  margin-top: 26px;
}
.side-promo h2,
.side-promo h3 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.side-promo p { font-size: 12.5px; color: var(--on-ink-dim); line-height: 1.5; margin-bottom: 12px; }

.side-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--orange);
  color: #fff;
  padding: 10px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 12.5px;
  transition: background .15s var(--ease);
}
.side-btn:hover { background: var(--orange-d); color: #fff; }

.side-input {
  width: 100%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  color: #fff;
  font-size: 13px;
  margin-bottom: 8px;
}
.side-input::placeholder { color: var(--on-ink-low); }
.side-input:focus { border-color: var(--orange); outline: none; }

/* Search sits above the nav so it is the first thing reachable on every
   page, which is the point of keeping the sidebar site-wide. */
.side-search { position: relative; margin-bottom: 18px; }
.side-search .side-input { margin-bottom: 0; padding-right: 38px; }
.side-search button {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-ink-dim);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.side-search button:hover { color: var(--orange); }

.side-social { display: flex; gap: 8px; margin-top: 24px; }
.side-social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-ink-mid);
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.side-social a:hover { border-color: var(--orange); color: var(--orange); }
.side-social svg { width: 13px; height: 13px; }

.side-copy { font-size: 11px; color: var(--on-ink-low); margin-top: 20px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   05  Mobile topbar & drawer
   -------------------------------------------------------------------------- */
.topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--topbar-h);
  background: var(--ink);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
}
.topbar-logo { background: var(--cream); padding: 7px 12px; border-radius: var(--r-sm); }
.topbar-logo img { height: 30px; width: auto; }

.nav-toggle {
  width: 42px; height: 42px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, .18);
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 17, .55);
  z-index: 70;
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.nav-scrim.is-open { display: block; opacity: 1; }

/* --------------------------------------------------------------------------
   06  Page furniture
   -------------------------------------------------------------------------- */
.crumb {
  font-size: 12.5px;
  color: var(--muted);
  padding: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.crumb a:hover { color: var(--orange); }
.crumb .sep { color: var(--border-2); }
.crumb [aria-current] { color: var(--ink); font-weight: 600; }

.page-head { padding-top: 10px; padding-bottom: 26px; }
.page-head h1 { font-size: 30px; font-weight: 800; margin: 10px 0 6px; }
.page-head p { font-size: 14.5px; color: var(--muted); max-width: 680px; }

/* Same reason as .section: 8 views use class="page page-head--band". */
.page-head--band { background: var(--bg); padding-top: 34px; padding-bottom: 34px; margin-bottom: 0; }
.page-head--band .crumb { padding: 0 0 10px; }
.page-head--band h1 { font-size: 32px; margin: 0 0 8px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 22px; font-weight: 800; }
.section-head p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

.view-all { color: var(--orange); font-weight: 700; font-size: 13px; white-space: nowrap; }
.view-all:hover { color: var(--orange-d); }

/* Trust strip under the hero. */
.trust { padding: 34px var(--gutter); border-bottom: 1px solid var(--border); }
.trust-label {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.trust-row { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.trust-row span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #B9C0B9;
}

/* --------------------------------------------------------------------------
   07  Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease),
              border-color .15s var(--ease), transform .1s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-d); color: #fff; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }

.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-ghost { border: 1px solid var(--border); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn-lg { padding: 14px 26px; font-size: 14.5px; }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }
.btn-block { display: flex; width: 100%; }

.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }

/* --------------------------------------------------------------------------
   08  Forms
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }

.field { margin-bottom: 16px; }
.field label,
.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.field-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.req { color: var(--orange); }

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--r);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #9AA5A0; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-l);
}
.textarea { resize: vertical; min-height: 110px; }

.select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2369756F' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--danger); }
.field-error { display: block; font-size: 12px; color: var(--danger); margin-top: 5px; font-weight: 600; }

/* Consent and filter checkboxes */
.checkrow {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 6px 0;
  font-size: 13px;
  cursor: pointer;
}
.checkrow input { accent-color: var(--orange); margin-top: 2px; flex: none; width: 15px; height: 15px; }
.checkrow span { flex: 1; }
.checkrow .count { color: var(--muted); font-size: 11.5px; }
.checkrow:hover { color: var(--ink); }

.consent { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.consent a { color: var(--orange); font-weight: 600; text-decoration: underline; }

/* Honeypot: present in the DOM for bots, invisible and unfocusable for
   people. Not display:none - some bots skip hidden fields. */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   09  Tags, chips & badges
   -------------------------------------------------------------------------- */
.tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 5px;
  display: block;
}
.tag--news      { color: var(--c-news); }
.tag--report    { color: var(--c-report); }
.tag--event     { color: var(--c-event); }
.tag--insight   { color: var(--c-insight); }
.tag--interview { color: var(--c-interview); }

.chip-row { display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
}
.chip--light {
  background: var(--bg);
  border-color: var(--border);
  color: var(--ink);
}

/* Filter pills (news tabs, active filter summary) */
.pill-row { display: flex; gap: 8px; margin: 26px 0; flex-wrap: wrap; }
.pill {
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill.is-active:hover { color: #fff; }

.pill--clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-style: dashed;
}
.pill--clear:hover { border-color: var(--danger); color: var(--danger); }

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  background: var(--orange-l);
  color: var(--orange-d);
}
.badge--premium { background: rgba(201, 179, 126, .22); color: #8A6D2F; }
.badge--pro     { background: rgba(37, 99, 235, .12);  color: var(--c-news); }

/* --------------------------------------------------------------------------
   10  Cards
   -------------------------------------------------------------------------- */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
}

/* -- Brand card (franchise opportunity) -- */
.brand-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.brand-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.brand-card:hover h3 { color: var(--orange); }

/* The tile carries each brand's own gradient, set inline from the record so
   the palette is CMS-controlled rather than hardcoded per brand. */
.brand-tile {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.brand-tile img { max-height: 76px; width: auto; object-fit: contain; }
.brand-wordmark {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  text-align: center;
  line-height: 1.15;
  letter-spacing: .01em;
  text-wrap: balance;
}

.brand-body { padding: 15px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.brand-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 7px; transition: color .15s var(--ease); }
.brand-body p { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }

.brand-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: auto;
}
.brand-meta b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 700; }
.brand-meta span { color: var(--muted); }
.brand-meta > div:last-child { text-align: right; }

.brand-card--sm .brand-tile { height: 120px; }
.brand-card--sm .brand-body { padding: 14px 15px 16px; }
.brand-card--sm .brand-body h3 { font-size: 15px; }
.brand-card--sm .brand-body p { font-size: 12px; }

/* -- Article card -- */
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.article-card:hover h3 { color: var(--orange); }

.article-thumb {
  height: 140px;
  background: linear-gradient(135deg, #D8CFC0, #B7AA92);
  overflow: hidden;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-thumb--sm { height: 110px; }

.article-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.article-body h3 {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  margin: 5px 0 8px;
  transition: color .15s var(--ease);
}
.article-body p { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.article-meta {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
/* Feature card meta reads as one sentence rather than pushed to the edges of
   a much wider card. */
.article-meta--inline { justify-content: flex-start; gap: 8px; font-size: 12px; }

/* Featured article - image beside body */
.article-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: box-shadow .18s var(--ease);
}
.article-feature:hover { box-shadow: var(--shadow); }
.article-feature:hover h2 { color: var(--orange); }
.article-feature .article-thumb {
  height: 100%;
  min-height: 260px;
  background: linear-gradient(135deg, #D8CFC0, #8C7C5E);
}
.article-feature .article-body { padding: 30px; justify-content: center; }
.article-feature h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color .15s var(--ease);
}
.article-feature p { font-size: 14px; margin-bottom: 14px; }

/* -- Supplier card -- */
.supplier-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.supplier-card:hover { box-shadow: var(--shadow); }
.supplier-card:hover h3 { color: var(--orange); }

.supplier-top { padding: 22px; display: flex; gap: 16px; align-items: center; }
.logo-block {
  width: 56px; height: 56px;
  border-radius: 10px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  font-size: 12px;
  text-align: center;
  line-height: 1.1;
  overflow: hidden;
  padding: 6px;
}
.logo-block img { width: 100%; height: 100%; object-fit: contain; }
.logo-block--lg { width: 76px; height: 76px; font-size: 15px; }

.supplier-card h3 { font-size: 17px; font-weight: 700; transition: color .15s var(--ease); }
.supplier-card .tag { margin-top: 3px; margin-bottom: 0; }
.supplier-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; padding: 0 22px; margin-bottom: 16px; }

.supplier-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.supplier-foot span { font-size: 12px; color: var(--muted); }
.supplier-foot a { font-size: 13px; font-weight: 700; color: var(--orange); }

/* Compact supplier tile used on the homepage row */
.supplier-tile {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition: box-shadow .18s var(--ease), transform .18s var(--ease);
}
.supplier-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.supplier-tile .tile-img { height: 90px; }
.supplier-tile .tile-body { padding: 12px 14px; }
.supplier-tile h3 { font-size: 13px; font-weight: 700; }

/* -- Event card -- */
.event-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.event-card:hover { box-shadow: var(--shadow); }
.event-card:hover h3 { color: var(--orange); }

.date-box {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r);
  padding: 8px 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  flex: none;
  min-width: 46px;
  line-height: 1.3;
}
.date-box .d { display: block; font-size: 15px; }
.date-box .m { display: block; font-size: 10px; letter-spacing: .08em; opacity: .8; }

.event-card h3 { font-size: 13.5px; font-weight: 700; margin-bottom: 3px; transition: color .15s var(--ease); }
.event-card .venue { font-size: 11.5px; color: var(--muted); display: block; }

/* Wider event row for the events index */
.event-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 14px;
  background: #fff;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.event-row:hover { box-shadow: var(--shadow); }
.event-row:hover h3 { color: var(--orange); }
.event-row .date-box { min-width: 76px; padding: 12px 10px; }
.event-row .date-box .d { font-size: 22px; }
.event-row h3 { font-size: 17px; margin-bottom: 5px; }
.event-row p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.event-row .event-facts {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   11  Filters & result bar
   -------------------------------------------------------------------------- */
.filter-box {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 16px;
}
.filter-box h2,
.filter-box h3 { font-size: 13.5px; font-weight: 700; margin-bottom: 12px; }

.filter-actions { display: grid; gap: 8px; margin-top: 12px; }

.result-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.result-bar .count { font-size: 13px; color: var(--muted); }
.result-bar .count b { color: var(--ink); }

.sort-select {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 8px 34px 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  background-color: #fff;
}

/* Sticky "apply" bar for the mobile filter sheet */
.filter-toggle { display: none; }

/* --------------------------------------------------------------------------
   12  Pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .gap { border: 0; color: var(--muted); min-width: 20px; }
.pagination .is-disabled { opacity: .4; pointer-events: none; }

/* --------------------------------------------------------------------------
   13  Hero & homepage blocks
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; min-height: 420px; }
.hero-bg { position: absolute; inset: -10px; overflow: hidden; filter: blur(3px) brightness(.8) saturate(1.05); z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(8, 6, 4, .82) 0%, rgba(8, 6, 4, .88) 55%, rgba(6, 4, 3, .94) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 46px var(--gutter) 40px; }

.eyebrow {
  color: var(--orange);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 { font-size: 42px; line-height: 1.12; font-weight: 800; color: #fff; max-width: 620px; text-wrap: balance; }
.hero h1 .accent { color: var(--orange); }
.hero-sub { font-size: 15.5px; line-height: 1.6; color: #C7D0CC; margin: 18px 0 28px; max-width: 520px; }

/* Hero search - a real form posting to the listing page */
.hero-search {
  background: #fff;
  border-radius: var(--r-md);
  padding: 8px;
  display: flex;
  max-width: 760px;
  box-shadow: var(--shadow-lg);
}
.hero-search .search-field {
  padding: 10px 18px;
  flex: 1;
  min-width: 0;
  border-right: 1px solid var(--border);
}
.hero-search .search-field:last-of-type { border-right: none; }
.hero-search label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 3px;
}
.hero-search select {
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  outline: none;
  width: 100%;
  cursor: pointer;
}
.hero-search button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 0 26px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background .15s var(--ease);
}
.hero-search button:hover { background: var(--orange-d); }

.stat-panel {
  position: absolute;
  right: var(--gutter);
  top: 46px;
  width: 210px;
  background: rgba(13, 38, 32, .85);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-md);
  padding: 18px;
  backdrop-filter: blur(6px);
}
.stat-panel .row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.stat-panel .row:last-child { border-bottom: none; }
.stat-panel .ic {
  width: 30px; height: 30px;
  border-radius: var(--r);
  background: rgba(255, 106, 26, .2);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 14px;
}
.stat-panel b { display: block; font-size: 13.5px; color: #fff; font-weight: 700; }
.stat-panel span { font-size: 11px; color: var(--on-ink-dim); }

/* Rail cards on the homepage */
.rail-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 18px;
  background: #fff;
}
.rail-card h2,
.rail-card h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 12px; }

.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sector-box {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.sector-box:hover { border-color: var(--orange); color: var(--orange); background: #FFF8F4; }

.snapshot {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 18px;
}
.snapshot h2,
.snapshot h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: #fff; }
.snapshot-row { display: flex; justify-content: space-between; gap: 16px; }
.snapshot-row span { display: block; font-size: 11px; color: var(--on-ink-dim); }
.snapshot-row b { font-size: 22px; font-weight: 800; font-family: var(--font-display); }

/* "What is franchising" band */
.explainer {
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: 30px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.explainer h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.explainer p { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 640px; }

/* --------------------------------------------------------------------------
   14  Detail-page blocks
   -------------------------------------------------------------------------- */
.detail-hero {
  background: linear-gradient(160deg, #2B2B2B, #0E0E0E);
  color: #fff;
  border-radius: var(--r-lg);
  margin: 18px 0 0;
  padding: 44px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}
.detail-hero .tag { color: #C9B37E; font-size: 12.5px; letter-spacing: .1em; margin-bottom: 10px; }
.detail-hero h1 { font-size: 38px; font-weight: 800; color: #fff; text-wrap: balance; }
.detail-hero p { color: #C9CDC8; margin-top: 10px; max-width: 480px; font-size: 14.5px; line-height: 1.6; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
  padding: 44px 0 60px;
}

.block { margin-bottom: 36px; }
.block h2 { font-size: 21px; font-weight: 800; margin-bottom: 14px; }
.block h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.block > p { font-size: 14.5px; line-height: 1.7; margin-bottom: 12px; }

.checklist li { display: flex; gap: 10px; font-size: 14.5px; padding: 8px 0; align-items: flex-start; line-height: 1.6; }
.checklist .c { color: var(--orange); font-weight: 800; flex: none; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th,
.spec-table td { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; text-align: left; }
.spec-table th { color: var(--muted); font-weight: 400; }
.spec-table td { text-align: right; font-weight: 700; color: var(--ink); }
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: none; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery > * { height: 140px; border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.sticky-rail { position: sticky; top: 24px; }

.fact-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px;
  margin-bottom: 20px;
}
.fact-card h2,
.fact-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.fact-row:last-child { border-bottom: none; }
.fact-row span { color: var(--muted); }
.fact-row b { color: var(--ink); text-align: right; }

.rel-list { border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px; }
.rel-list h2,
.rel-list h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.rel-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.rel-item:last-child { border-bottom: none; }
.rel-item b { display: block; color: var(--ink); }
.rel-item span { color: var(--muted); font-size: 11.5px; }
.rel-item:hover b { color: var(--orange); }

/* --------------------------------------------------------------------------
   15  Editorial body copy
   -------------------------------------------------------------------------- */
.prose { font-size: 16px; line-height: 1.75; color: var(--text); max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 22px; font-weight: 800; margin-top: 1.9em; }
.prose h3 { font-size: 18px; font-weight: 700; margin-top: 1.6em; }
.prose p { margin-bottom: 0; }
.prose a { color: var(--orange); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--orange); }
.prose blockquote {
  border-left: 3px solid var(--orange);
  padding: 4px 0 4px 20px;
  color: var(--muted);
  font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg); font-weight: 700; }
.prose img { border-radius: var(--r-md); }

.article-header { padding: 34px 0 24px; }
.article-header h1 { font-size: 34px; font-weight: 800; line-height: 1.2; margin: 10px 0 12px; text-wrap: balance; }
.article-header .byline {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  align-items: center;
}
.article-hero { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 32px; max-height: 440px; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.tag-list a {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--muted);
}
.tag-list a:hover { background: var(--orange-l); color: var(--orange-d); }

/* --------------------------------------------------------------------------
   16  CTA bands & dark cards
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 10px 0 50px;
}
.cta-band h2 { font-size: 20px; font-weight: 800; margin-bottom: 6px; color: #fff; }
.cta-band p { font-size: 13.5px; color: var(--on-ink-mid); max-width: 440px; }

.dark-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
  padding: 22px;
}
.dark-card h2,
.dark-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; color: #fff; }
.dark-card p { font-size: 13px; color: var(--on-ink-mid); margin-bottom: 14px; line-height: 1.55; }
/* background-color, not the `background` shorthand: the shorthand resets
   background-repeat/position, which made the select's arrow SVG tile across
   the whole control instead of sitting once on the right. */
.dark-card .input,
.dark-card .select,
.dark-card .textarea {
  border: 1px solid rgba(255, 255, 255, .2);
  background-color: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 13.5px;
  padding: 11px 14px;
}
.dark-card .select {
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.dark-card .input::placeholder,
.dark-card .textarea::placeholder { color: var(--on-ink-low); }
.dark-card .input:focus,
.dark-card .select:focus,
.dark-card .textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 106, 26, .2); }
.dark-card .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239FAEA8' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
}
.dark-card .select option { color: var(--text); }
.dark-card .field label { color: #fff; }
.dark-card .field { margin-bottom: 10px; }
.dark-card .consent { color: var(--on-ink-dim); }
.dark-card .consent a { color: var(--orange); }
.dark-card .field-error { color: #FCA5A5; }

.toplist li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.45;
}
.toplist li:last-child { border-bottom: none; }
.toplist .n { color: var(--orange); font-weight: 800; flex: none; }
.toplist a:hover { color: var(--orange); }

/* --------------------------------------------------------------------------
   17  FAQ accordion
   -------------------------------------------------------------------------- */
.faq { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--orange);
  font-size: 18px;
  flex: none;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { color: var(--orange); }
.faq-item .answer { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin-top: 8px; }
.faq-item .answer p + p { margin-top: .8em; }

/* --------------------------------------------------------------------------
   18  Alerts & empty states
   -------------------------------------------------------------------------- */
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-icon { flex: none; font-weight: 800; }
.alert--success { background: var(--success-bg); border-color: #BBF7D0; color: var(--success); }
.alert--error   { background: var(--danger-bg);  border-color: #FECACA; color: var(--danger); }
.alert--info    { background: var(--bg);         border-color: var(--border); color: var(--ink); }

.empty-state {
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed var(--border-2);
  border-radius: var(--r-md);
  background: var(--bg);
}
.empty-state h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--muted); max-width: 420px; margin: 0 auto 18px; }

/* --------------------------------------------------------------------------
   19  Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--on-ink);
  padding: 44px 0 26px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-grid h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { font-size: 13.5px; color: var(--on-ink-dim); }
.footer-grid a:hover { color: var(--orange); }
.footer-blurb { font-size: 13.5px; color: var(--on-ink-dim); line-height: 1.6; max-width: 300px; }
.footer-contact { font-size: 13.5px; color: var(--on-ink-dim); line-height: 1.7; }
.footer-contact a:hover { color: var(--orange); }

.footer-bottom {
  padding-top: 22px;
  font-size: 12.5px;
  color: var(--on-ink-low);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--orange); }

/* --------------------------------------------------------------------------
   20  Utilities
   -------------------------------------------------------------------------- */
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 28px; }

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* --------------------------------------------------------------------------
   21  Responsive
   -------------------------------------------------------------------------- */

/* Narrower desktop: tighten the gutters and drop the 4-up supplier row to 2. */
@media (max-width: 1240px) {
  :root { --gutter: 28px; }
  .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-panel { position: static; width: 100%; max-width: 320px; margin-top: 26px; }
  .hero h1 { max-width: none; }
}

/* Tablet: rails move below the content they support. */
@media (max-width: 1080px) {
  .with-rail,
  .with-rail--wide-rail,
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .sticky-rail { position: static; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-feature { grid-template-columns: minmax(0, 1fr); }
  .article-feature .article-thumb { min-height: 200px; }
  .detail-hero { padding: 32px; }
  .detail-hero h1 { font-size: 30px; }
}

/* Below 900px the fixed sidebar becomes a drawer behind a topbar. */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }

  .topbar { display: flex; }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 288px;
    max-width: 86vw;
    z-index: 80;
    transform: translateX(-100%);
    transition: transform .25s var(--ease);
    height: 100dvh;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.is-open { transform: translateX(0); }

  /* Stop the page behind the drawer scrolling. */
  body.nav-open { overflow: hidden; }

  .hero { min-height: 0; }
  .hero-content { padding: 36px var(--gutter); }
  .hero h1 { font-size: 32px; }

  .hero-search { flex-wrap: wrap; gap: 4px; }
  .hero-search .search-field { flex: 1 1 45%; border-right: none; border-bottom: 1px solid var(--border); }
  .hero-search button { flex: 1 1 100%; padding: 13px 20px; margin-top: 4px; }

  .with-filters { grid-template-columns: minmax(0, 1fr); }

  /* Filters collapse behind a toggle so results are the first thing seen. */
  .filter-toggle { display: flex; width: 100%; margin-bottom: 16px; }
  .filter-panel { display: none; }
  .filter-panel.is-open { display: block; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .event-row { grid-template-columns: 64px minmax(0, 1fr); }
  .event-row .btn { grid-column: 1 / -1; }
  .article-header h1 { font-size: 27px; }
  .detail-layout { padding: 28px 0 44px; }
}

/* Phone */
@media (max-width: 620px) {
  :root { --gutter: 18px; }

  body { font-size: 14.5px; }

  .section { padding-top: 34px; padding-bottom: 34px; }
  .card-grid,
  .card-grid--2,
  .card-grid--4 { grid-template-columns: minmax(0, 1fr); }

  .page-head h1,
  .page-head--band h1 { font-size: 25px; }
  .hero h1 { font-size: 27px; }
  .hero-sub { font-size: 14.5px; }
  .hero-search .search-field { flex: 1 1 100%; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }

  .detail-hero { padding: 24px; border-radius: var(--r-md); }
  .detail-hero h1 { font-size: 25px; }
  .detail-hero .btn { width: 100%; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }

  .cta-band,
  .explainer { padding: 26px 22px; }
  .cta-band .btn,
  .explainer .btn { width: 100%; }

  .trust-row { gap: 18px; }
  .trust-row span { font-size: 13px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; gap: 12px; }

  .supplier-top { padding: 18px; }
  .supplier-card p { padding: 0 18px; }
  .supplier-foot { padding: 12px 18px; }

  .article-feature .article-body { padding: 22px; }
  .article-feature h2 { font-size: 20px; }
  .prose { font-size: 15.5px; }
}

/* --------------------------------------------------------------------------
   22  Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .sidebar, .topbar, .site-footer, .nav-scrim,
  .hero-search, .cta-band, .pagination, .filter-box { display: none !important; }
  .layout { grid-template-columns: 1fr; }
  body { font-size: 11pt; color: #000; background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .card, .brand-card, .article-card, .supplier-card { break-inside: avoid; }
}
