/* ============================================================
   LE HAYE — style.css
   Single shared stylesheet for all pages
   Mobile-first, dark-mode ready
   ============================================================ */

/* ──────────────────────────────────────────────────────────
   Licensed local fonts
   ────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'GroteskRemixMonospace';
  src: url('fonts/GroteskRemixMonospace-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Zigzag Not Rounded';
  src: url('fonts/zigzag-not-rounded.woff2') format('woff2'),
       url('fonts/zigzag-not-rounded.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Inter as fallback for weights GroteskRemix doesn't cover */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ──────────────────────────────────────────────────────────
   CSS Custom Properties — Light mode
   ────────────────────────────────────────────────────────── */
:root {
  --color-text:           #4a4d51;
  --color-bg:             #f4f6f1;
  --color-bg-all:         #e9e6e3;
  --color-surface:        #ffffff;
  --color-accent:         #d1c7ff;
  --color-quote-yellow:   #eaff98;
  --color-img-bg:         #cbcec5;
  --color-news:           #e5f5f7;
  --color-menu:           #c1b8af;
  --color-footer:         #1a2000;
  --color-text-muted:     #65686c; /* 5.1:1 on --color-bg */
  --color-on-quote:       #2b2c00;
  --color-footer-text:    #eaff98;
  --color-footer-muted:   #b6c772; /* 9:1 on footer */
  --color-footer-subtle:  #97a65b; /* 6.3:1 on footer */

  --font-body:            'GroteskRemixMonospace', 'Inter', sans-serif;
  --font-display:         'Zigzag Not Rounded', 'Inter', sans-serif;

  --nav-height:           72px;
  --max-width:            940px;
  --section-padding:      40px 20px;
  --border-radius-pill:   100px;
}

/* ──────────────────────────────────────────────────────────
   Dark mode — explicit toggle
   ────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --color-text:           #f7f7f7;
  --color-bg:             #333333;
  --color-bg-all:         #2b2b2b;
  --color-surface:        #555555;
  --color-accent:         #796e65;
  --color-quote-yellow:   #888888;
  --color-img-bg:         #222222;
  --color-news:           #444444;
  --color-menu:           #555555;
  --color-footer:         #1a2000;
  --color-text-muted:     #b5b5b5; /* 6.2:1 on dark bg */
  --color-on-quote:       #111111; /* 5.3:1 on dark quote grey */
}

/* ──────────────────────────────────────────────────────────
   Dark mode — system preference (only when no data-theme set)
   ────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-text:           #f7f7f7;
    --color-bg:             #333333;
    --color-bg-all:         #2b2b2b;
    --color-surface:        #555555;
    --color-accent:         #796e65;
    --color-quote-yellow:   #888888;
    --color-img-bg:         #222222;
    --color-news:           #444444;
    --color-menu:           #555555;
    --color-footer:         #1a2000;
    --color-text-muted:     #b5b5b5;
    --color-on-quote:       #111111;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
}

/* ──────────────────────────────────────────────────────────
   Navigation
   ────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-bg-all);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 100%;
  max-width: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.nav-logo:hover {
  text-decoration: none;
}

/* Desktop nav menu */
.nav-menu {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link svg.lab-star {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-left: 2px;
}

.nav-link:hover {
  text-decoration: underline;
}

/* Theme toggle in nav */
.nav-theme {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.theme-toggle {
  width: 44px;
  height: 24px;
  background: var(--color-bg-all);
  border-radius: 12px;
  position: relative;
  border: 1px solid var(--color-menu);
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-ball {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-text);
  transition: transform 0.2s;
}

[data-theme="dark"] .toggle-ball {
  transform: translateX(20px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .toggle-ball {
    transform: translateX(20px);
  }
}

/* Mobile menu button */
.menu-btn {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}

/* Mobile nav open state */
.nav-menu.nav-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-surface);
  padding: 24px 20px;
  border-bottom: 1px solid var(--color-bg-all);
  z-index: 99;
}

/* ────────────────────────────────────────────────
   Desktop nav breakpoint
   ──────────────────────────────────────────────── */
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }

  .menu-btn {
    display: none;
  }
}

/* ──────────────────────────────────────────────────────────
   Page layout
   ────────────────────────────────────────────────────────── */
.page-wrap {
  padding-top: var(--nav-height);
}

/* Two-column section layout */
.page-section {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .section-inner {
    grid-template-columns: 16.6% 1fr;
    gap: 24px;
    align-items: start;
  }
}

/* Hero / top section */
.section-hero {
  padding-top: 60px;
}

@media (min-width: 768px) {
  .section-hero {
    padding-top: 80px;
  }
}

/* Section eyebrow */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  color: var(--color-text-muted);
  padding-top: 6px;
}

/* ──────────────────────────────────────────────────────────
   Typography
   ────────────────────────────────────────────────────────── */
h1 {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.125rem); /* 24px → 34px */
  font-weight: 400;
  line-height: 1.35;
  max-width: 38ch; /* keeps lines readable (WCAG 1.4.8) */
  color: var(--color-text);
}

h2 {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem); /* 20px → 26px */
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
}

h3 {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem); /* 18px → 20px */
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
}

h4 {
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px */
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
}

p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
}


/* Paragraphs styled as headings (keeps heading order valid) */
.text-h1 {
  font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.125rem);
  line-height: 1.35;
  max-width: 38ch;
}
.text-h3 {
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  line-height: 1.5;
}

/* ──────────────────────────────────────────────────────────
   Accessibility
   ────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

main:focus { outline: none; }

/* Clear, consistent focus indicator for keyboard users (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Respect reduced-motion settings (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Link styles */
.cta-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
  text-decoration: none;
}

.cta-link:hover {
  text-decoration: none;
  border-bottom-width: 3px;
}

.view-all {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px 32px;
}

/* A coloured CTA row must span the full width, or the page background shows either side */
.view-all[class*="bg-"] {
  max-width: none;
  padding-inline: max(20px, calc((100% - var(--max-width)) / 2 + 20px));
}

/* ──────────────────────────────────────────────────────────
   Tag / pill components
   ────────────────────────────────────────────────────────── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
  background: var(--color-bg-all);
  color: var(--color-text);
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag.active {
  background: var(--color-accent);
  font-weight: 500;
}

/* ──────────────────────────────────────────────────────────
   Tab navigation
   ────────────────────────────────────────────────────────── */
.tab-nav-label {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 20px 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.tabs-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.tab-menu {
  display: flex;
  gap: 0;
  box-shadow: inset 0 -1px 0 var(--color-bg-all); /* rule drawn inside, so the active tab's underline can sit on it */
  margin-bottom: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tab-menu::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-muted);
  padding: 16px 20px 12px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  white-space: nowrap;
  text-decoration: none;
  display: block;
}

.tab-btn:first-child {
  padding-left: 0; /* align first tab with the content edge */
}

.tab-btn:hover {
  color: var(--color-text);
  text-decoration: none;
}

.tab-btn[aria-selected="true"] {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-text);
}

@media (min-width: 768px) {
  .tab-btn {
    font-size: 22px;
    padding: 20px 28px 16px;
  }

  .tab-btn:first-child {
    padding-left: 0;
  }

  .tab-menu {
    margin-bottom: 48px;
  }
}

/* Tab panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ──────────────────────────────────────────────────────────
   Case study / featured content panels
   ────────────────────────────────────────────────────────── */
.case-study {
  padding: 40px 20px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-bg-all);
}

.case-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .case-inner {
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
  }
}

.case-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-date {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.case-org {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 400;
}

.case-body {
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-line;
}

.case-image {
  margin-top: 32px;
}

.case-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ──────────────────────────────────────────────────────────
   Gallery grid
   ────────────────────────────────────────────────────────── */
.gallery-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px 32px;
  }
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-item-venue {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.gallery-item-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
}

.gallery-item-body {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.85;
}

.gallery-item-image {
  margin-top: 12px;
  background: var(--color-img-bg);
}

.gallery-item-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Outcomes pills */
.outcomes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.outcome-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--border-radius-pill);
  background: var(--color-news);
  color: var(--color-text);
}

.outcome-pill.label {
  background: var(--color-accent);
  font-weight: 600;
}

/* ──────────────────────────────────────────────────────────
   Spotlight / feature section (home)
   ────────────────────────────────────────────────────────── */
.section-spotlight {
  background: var(--color-img-bg);
}

/* ──────────────────────────────────────────────────────────
   Process diagram (home)
   ────────────────────────────────────────────────────────── */
.process-diagram {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-bg-all);
  border: 1px solid var(--color-bg-all);
  margin-top: 20px;
}

@media (min-width: 600px) {
  .process-diagram {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.process-cell {
  background: var(--color-bg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.process-cell h3 {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.process-cell-item {
  font-size: 14px;
  line-height: 1.5;
}

.process-cell-item.arrow {
  font-weight: 600;
}

/* ──────────────────────────────────────────────────────────
   Workflow diagram (about)
   ────────────────────────────────────────────────────────── */
.workflow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 24px;
}

@media (min-width: 600px) {
  .workflow-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.workflow-cell {
  padding: 20px 16px;
  border-left: 2px solid var(--color-bg-all);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.workflow-cell:first-child {
  border-left: none;
}

@media (max-width: 599px) {
  .workflow-cell:nth-child(odd) {
    border-left: none;
  }
}

.workflow-cell h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.workflow-cell p {
  font-size: 13px;
  line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────
   Quote / editorial section
   ────────────────────────────────────────────────────────── */
.section-quote {
  background: var(--color-quote-yellow);
}

.section-quote .section-eyebrow,
.section-quote h1,
.section-quote h2,
.section-quote h3,
.section-quote p {
  color: var(--color-footer);
}

/* Alternate quote/lab section colors */
.section-accent {
  background: var(--color-accent);
}

.section-news {
  background: var(--color-news);
}

/* ──────────────────────────────────────────────────────────
   Lab entries
   ────────────────────────────────────────────────────────── */
.lab-section {
  padding: 40px 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.lab-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .lab-inner {
    grid-template-columns: 16.6% 1fr;
    gap: 24px;
    align-items: start;
  }
}

.lab-section h3.lab-title {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .lab-section h3.lab-title {
    font-size: 32px;
  }
}

.lab-image {
  margin-top: 20px;
}

.lab-image img {
  width: 100%;
  height: auto;
  display: block;
}

.lab-cta {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 20px 0;
}

/* ──────────────────────────────────────────────────────────
   Full-width images
   ────────────────────────────────────────────────────────── */
.full-image {
  width: 100%;
  background: var(--color-img-bg);
}

.full-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 600px;
  object-fit: cover;
}

/* ──────────────────────────────────────────────────────────
   Awards section
   ────────────────────────────────────────────────────────── */
.awards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .awards-grid {
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
  }
}

.award-link {
  display: block;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  text-decoration: none;
  margin-bottom: 6px;
}

.award-link:hover {
  text-decoration: underline;
}

.awards-image {
  max-width: 280px;
}

.awards-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contact links (About) */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

/* ──────────────────────────────────────────────────────────
   Go to top / back button
   ────────────────────────────────────────────────────────── */
.go-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 40px;
  text-align: right;
}

.btn-top {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
  background: var(--color-bg-all);
  border: 1px solid var(--color-menu);
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-top:hover {
  background: var(--color-menu);
  text-decoration: none;
}

/* ──────────────────────────────────────────────────────────
   Footer
   ────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-footer);
  color: var(--color-quote-yellow);
  padding: 60px 20px 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-headline {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-quote-yellow);
  max-width: 700px;
  margin-bottom: 40px;
  display: block;
  text-decoration: none;
}

.footer-headline:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .footer-headline {
    font-size: 48px;
  }
}

.footer-links-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-footer-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--color-footer-text);
  text-decoration: underline;
}

.footer-logo img {
  width: 64px;
  height: auto;
  opacity: 0.85;
}

.footer-rule {
  border: none;
  border-top: 1px solid rgba(234, 255, 152, 0.2);
  margin-bottom: 24px;
}

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

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--color-footer-subtle);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-legal a:hover {
  color: var(--color-footer-text);
}

.footer-copy {
  font-size: 13px;
  color: var(--color-footer-subtle);
}

/* ──────────────────────────────────────────────────────────
   Spotlight thumbnail (home)
   ────────────────────────────────────────────────────────── */
.spotlight-thumb {
  width: 80px;
  height: auto;
  margin-top: 16px;
  border-radius: 4px;
}

/* ──────────────────────────────────────────────────────────
   Section background variants
   ────────────────────────────────────────────────────────── */
.bg-surface    { background: var(--color-surface); }
.bg-bg         { background: var(--color-bg); }
.bg-img        { background: var(--color-img-bg); }
.bg-accent     { background: var(--color-accent); }
.bg-quote      { background: var(--color-quote-yellow); }
.bg-news       { background: var(--color-news); }
.bg-all        { background: var(--color-bg-all); }

/* Override text color on yellow/accent sections for readability */
.bg-quote .section-eyebrow,
.bg-quote h1, .bg-quote h2, .bg-quote h3, .bg-quote h4, .bg-quote p,
.bg-quote .cta-link {
  color: var(--color-on-quote);
}

/* Muted text on coloured sections uses the section's own text colour */
.bg-quote, .lab-alt-3 { --color-text-muted: var(--color-on-quote); }
.bg-accent, .bg-news, .lab-alt-1, .lab-alt-2 { --color-text-muted: var(--color-text); }

/* ──────────────────────────────────────────────────────────
   Spotlight content layout (home page – 3+6+1 column feel)
   ────────────────────────────────────────────────────────── */
.spotlight-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .spotlight-cols {
    grid-template-columns: 2fr 3fr;
    gap: 32px;
    align-items: start;
  }
}

/* ──────────────────────────────────────────────────────────
   Inline body text spacing
   ────────────────────────────────────────────────────────── */
.body-text p + p {
  margin-top: 16px;
}

.body-text {
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-line;
}

/* ──────────────────────────────────────────────────────────
   Featured case study tabs — full-width content area
   ────────────────────────────────────────────────────────── */
.featured-panel {
  padding: 40px 20px;
}

.featured-panel-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .featured-panel-inner {
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
  }
}

/* ──────────────────────────────────────────────────────────
   Utility
   ────────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mt-sm  { margin-top: 12px; }
.mt-md  { margin-top: 24px; }
.mt-lg  { margin-top: 40px; }
.mb-sm  { margin-bottom: 12px; }
.mb-md  { margin-bottom: 24px; }

/* ──────────────────────────────────────────────────────────
   Lab section alt colors (pink/yellow/green variants)
   ────────────────────────────────────────────────────────── */
.lab-alt-1 { background: var(--color-accent); }
.lab-alt-2 { background: var(--color-news); }
.lab-alt-3 { background: var(--color-quote-yellow); }

.lab-alt-3 .section-eyebrow,
.lab-alt-3 h3, .lab-alt-3 h2, .lab-alt-3 p, .lab-alt-3 .cta-link {
  color: var(--color-on-quote);
}
