:root {
  --select-background: rgba(213, 225, 236, 0.15);
  --select-border-bottom: rgba(30, 41, 59, 0.4);

  /* Legacy brand colors */
  --brand-grey: #545859;
  --brand-light-grey: rgba(237, 242, 244, 0.4);
  --brand-lightest-grey: #EDF2F4;
  --brand-blue: #3b82f6;
  --brand-denim: #1e293b;
  --brand-teal: #0d9488;
  --brand-highlight: #f59e0b;
  --brand-lowlight: #1e293b;
  --brand-orangered: #c8102e;
  --brand-ruby: #c8102e;
  --brand-primary: #c8102e;
  --primary-blue: #1e293b;
  --primary-dark-blue: #1e293b;
  --quote: #0d9488;
  --data-grey: #F1F6F8;

  /* New brand colors */
  --brand-accent-blue-sky: #3b82f6;
  --brand-accent-blue-sky-rgb: 59, 130, 246;
  --brand-accent-green-mint: #0d9488;
  --brand-accent-green-mint-rgb: 13, 148, 136;
  --brand-accent-orange: #f59e0b;
  --brand-accent-orange-rgb: 245, 158, 11;
  --brand-accent-green-lime: #0d9488;
  --brand-accent-green-lime-rgb: 13, 148, 136;
  --brand-accent-blue-midnight: #1e293b;
  --brand-accent-blue-midnight-rgb: 30, 41, 59;
  --brand-accent-slate: #1e293b;
  --brand-accent-slate-rgb: 30, 41, 59;
  --brand-accent-coral: #c8102e;
  --brand-accent-coral-rgb: 200, 16, 46;
  --primary-blue-rgb: 30, 41, 59;
  --brand-primary-rgb: 200, 16, 46;

  /* Resource-category pills — remapped by category per client guide §5 (tag-based, NOT hex-based) */
  --brand-muted-blue-sky: #DBEAFE;      /* Sky Wash — HR Outsourcing / HR Tips / Performance Mgmt (Employee Dev is split to Blush in its rule) */
  --brand-muted-green-mint: #B2F5EA;    /* Mint Mist — Benefits */
  --brand-muted-orange: #FFE7C0;        /* Peach — HR Compliance / Workplace Safety / HR Consulting */
  --brand-muted-coral: #FBE9EC;         /* Blush — Hiring & Retention */
  --brand-muted-blue-midnight: #D4DCE8; /* Slate Wash — Technology */
  --brand-muted-green-lime: #FEF9C3;    /* Soft Lemon — Payroll (Compensation is split to Mint Mist in its own rule) */
  --brand-muted-brown: #e6ddd6;         /* unchanged — Contributed Article (not in migration) */
  --brand-muted-yellow: #FBE9EC;        /* Blush — Culture */
  --brand-muted-primary: #f4c7cd;       /* unchanged — used by .bg-* section themes, not a resource-category pill */
  --brand-muted-gray: #E5E5E5;          /* Cool Gray — Resource Type tag per client mapping */

  /* Icon-tint filters recomputed (black -> new category color) during the 2026 palette migration */
  --svg-tint-blue-sky: invert(41%) sepia(34%) saturate(2383%) hue-rotate(196deg) brightness(102%) contrast(93%);   /* Blue #3B82F6 */
  --svg-tint-green-mint: invert(53%) sepia(92%) saturate(6187%) hue-rotate(158deg) brightness(99%) contrast(90%);  /* Teal #0D9488 */
  --svg-tint-orange: invert(78%) sepia(20%) saturate(5497%) hue-rotate(349deg) brightness(94%) contrast(105%);     /* Amber #F59E0B */
  --svg-tint-green-lime: invert(53%) sepia(92%) saturate(6187%) hue-rotate(158deg) brightness(99%) contrast(90%);  /* Teal #0D9488 */
  --svg-tint-blue-midnight: invert(12%) sepia(17%) saturate(1494%) hue-rotate(178deg) brightness(100%) contrast(91%); /* Midnight Navy #1E293B */
  --svg-tint-slate: invert(12%) sepia(17%) saturate(1494%) hue-rotate(178deg) brightness(100%) contrast(91%);      /* Midnight Navy #1E293B */
  --svg-tint-coral: invert(16%) sepia(78%) saturate(4234%) hue-rotate(340deg) brightness(82%) contrast(101%);      /* Crimson #C8102E */

  /* Typography */
  --headline-font-family: "Work Sans", sans-serif;
  --body-font-family: "IBM Plex Sans", sans-serif;
  --font-size-base: 1rem;
  --font-size-xsmall: 0.6875rem;
  --font-size-small: 0.875rem;
  --font-size-xl: 1.3rem;
  --font-size-lg: 1.125rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Colors */
  --colors-white: #FFF;
  --colors-black: #000;
  --colors-black-rgb: 0, 0, 0;

  --colors-grey-40: #F9F6F6;
  --colors-grey-45: #E4ECFD;
  --colors-grey-46: #e5e7eb;
  --colors-grey-50: #f9f9f9;
  --colors-grey-100: #E0E0E0;
  --colors-grey-400: #c0c0c0;
  --colors-grey-500: #9D9D9D;
  --colors-grey-600: #555859;
  --colors-grey-600-rgb: 85, 88, 89;

  --colors-blue-80: #EEF4FE;
  --colors-blue-90: #E5E7FB;
  --colors-blue-100: #E4EDFD;
  --colors-blue-300: #0d9488;
  --colors-blue-300-rgb: 13, 148, 136;
  --colors-blue-400: var(--brand-accent-blue-sky);
  --colors-blue-400-rgb: var(--brand-accent-blue-sky-rgb);
  --colors-blue-800: #1e293b;
  --colors-blue-800-rgb: 30, 41, 59;
  --colors-blue-900: #222433;

  --colors-navy-500: #003399;

  --colors-green-100: #E5F9F9;
  --colors-green-400: var(--brand-accent-green-mint);
  --colors-green-600: #2FA18F;

  --colors-red-400: #c8102e;
  --colors-red-400-rgb: 200, 16, 46;
  --colors-red-500: #9F0A27;

  --colors-orange-400: #f59e0b;

  --colors-yellow-400: #FABF02;
  --colors-yellow-400-rgb: 214, 176, 55;

  --colors-brown: #A88F79;
   --colors-brown-rgb: 168, 143, 121;

  /* Layout and styling */
  --border-radius-md: 10px;
  --border-radius-lg: 20px;
  --section-padding: 3.25rem;
  --section-padding-sm: 2rem;
  --section-padding-lg: var(--section-padding);
  --breadcrumb-section-padding: 2rem;
  --container-padding: 1.25rem;
  --container-max-width: 100%;
  --inner-block-padding: 1.75rem;
  --inner-block-padding-x: var(--inner-block-padding);
  --modal-overlay-color: rgba(0, 0, 0, 0.5);
  --action-transition: cubic-bezier(0.4, 0, 0.2, 1);

  --active-header-color: var(--colors-black);
  --active-text-color: var(--colors-grey-600);
  --active-text-color-rgb: var(--colors-grey-600-rgb);

  --active-accent-color-link: var(--colors-red-400);
  --active-accent-color-rgb: 0, 0, 0;
  --active-accent-color-rgb-alt: 0, 0, 0;
  --active-accent-color-rgb-alt2: 0, 0, 0;
  --active-muted-color: #bfbfbf;

  --elm-size-sm: 32px;
  --elm-size-md: 50px;
  --elm-size-lg: 54px;
  --elm-size-base: var(--elm-size-md);

  --header-height: 100px;
  --main-offset: var(--header-height);

  --h1-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.375rem;
  --h4-font-size: 1.1rem;
  --h6-font-size: 0.875rem;
}

@media (max-width: 365px) {
  :root {
      --h1-font-size: 1.85rem;
  }
}

@media (min-width: 576px) {
  :root {
      --h1-font-size: 2.25rem;
      --h2-font-size: 1.85rem;
      --h3-font-size: 1.45rem;
  }
}

@media (min-width: 768px) {
  :root {
    --breadcrumb-section-padding: 3rem;
    --section-padding: 4.25rem;
    --section-padding-sm: 3.25rem;
    --inner-block-padding: 3rem;
    --header-height: 100px;

    --h1-font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-padding: 5rem;
    --section-padding-lg: 6.25rem;
    --container-max-width: 1024px;
    --inner-block-padding: 3.5rem;
    --inner-block-padding-x: 4.5rem;
    --header-height: 160px;

    --h4-font-size: 1.25rem;
  }
}

@media (min-width: 1279px) {
  :root {
    --container-max-width: 1279px;
    --section-padding-lg: 7rem;
    --h1-font-size: 3rem;
    --h2-font-size: 2.25rem;
    --h3-font-size: 1.5rem;
  }
}

@media (min-width: 1400px) {
  :root {
    --container-max-width: 1400px;
    --inner-block-padding: 4rem;
    --inner-block-padding-x: 6rem;
  }
}

/* Background & brand setters */
.bg-darkBlue {
  --active-bg: var(--colors-blue-800);
  --active-header-color: var(--colors-white);
  --active-text-color: var(--colors-white);
  --active-text-color-light: var(--colors-white);
  --active-text-color-rgb: 255, 255, 255;
  --active-accent-color: var(--colors-green-400);
  --active-accent-color-alt: var(--colors-green-400);
  --active-muted-color: var(--brand-muted-green-mint);
}

.bg-white {
  --active-bg: var(--colors-white);
  --active-header-color: var(--colors-black);
  --active-text-color: var(--colors-grey-600);
  --active-text-color-light: var(--colors-grey-600);
  --active-accent-color: var(--colors-red-400);
  --active-accent-color-alt: var(--colors-red-400);
  --active-accent-color-rgb: 0, 0, 0;
  --active-accent-color-rgb-alt: 0, 0, 0;
  --active-accent-color-rgb-alt2: 0, 0, 0;
  --colors-black-rgb: 0, 0, 0;
}

.bg-lightBlue {
  --active-bg: #DBEAFE; /* Light blue / Sky Wash — flat pale (restores pre-migration look per client) */
  --active-header-color: var(--colors-black);
  --active-text-color: var(--colors-grey-600);
  --active-text-color-light: var(--colors-grey-600);
  --active-accent-color: var(--colors-red-400);
  --active-accent-color-alt: var(--colors-red-400);
  --active-muted-color: var(--brand-muted-primary);
}

.bg-brightBlue {
  --active-bg: #3B82F6; /* Bright Blue — solid, white text */
  --active-header-color: var(--colors-white);
  --active-text-color: var(--colors-white);
  --active-text-color-light: var(--colors-white);
  --active-text-color-rgb: 255, 255, 255;
  --active-accent-color: var(--colors-white);
  --active-accent-color-alt: var(--colors-white);
  --active-muted-color: var(--brand-muted-primary);
}

.bg-lightGrey {
  --active-bg: #E5E5E5; /* Cool Gray — palette migration */
  --active-header-color: var(--colors-black);
  --active-text-color: var(--colors-grey-600);
  --active-text-color-light: var(--colors-grey-600);
  --active-accent-color: var(--colors-red-400);
  --active-accent-color-alt: var(--colors-blue-400);
  --active-muted-color: var(--brand-muted-primary);
}

.bg-green {
  --active-bg: var(--colors-green-400);
  --active-header-color: var(--colors-white);
  --active-text-color: var(--colors-white);
  --active-text-color-light: var(--colors-white);
  --active-accent-color: var(--colors-blue-800);
  --active-accent-color-alt: var(--colors-blue-800);  
  --active-muted-color: var(--brand-muted-blue-midnight);
}

.bg-red {
  --active-bg: var(--colors-red-400);
  --active-header-color: var(--colors-white);
  --active-text-color: var(--colors-white);
  --active-text-color-light: var(--colors-white);
  --active-accent-color: var(--colors-orange-400);
  --active-accent-color-alt: var(--colors-orange-400);
  --active-muted-color: var(--brand-muted-primary);
}

.bg-blueGradientMix,
.bg-blueGradientMixWithShape {
  --active-bg: #DBEAFE; /* Sky Wash (+ decorative swoosh on the With Shape variant) — per client */
  --active-header-color: var(--colors-black);
  --active-text-color: var(--colors-black);
  --active-text-color-light: var(--colors-grey-600);
  --active-accent-color: var(--colors-red-400);
  --active-accent-color-alt: var(--colors-blue-400);
  --active-accent-color-alt2: var(--colors-blue-800);
  --active-accent-color-rgb: var(--colors-red-400-rgb);
  --active-accent-color-rgb-alt: var(--colors-blue-400-rgb);
  --active-accent-color-rgb-alt2: var(--colors-blue-800-rgb);
  --colors-black-rgb: var(--colors-blue-400-rgb);
  --active-muted-color: var(--brand-muted-primary);
}

.bg-blueGradientMixWithShape .bg-shape-elm {
  position: absolute;
  top: -30px;
  left: -10%;
  width: 110%;
  height: 110%;
}

.bg-blueGradientMixWithShape .bg-shape-elm svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-default {
  /* take from bg styles */
}

.brand-hrOutsourcingHrManagement,
.brand-hrTips,
.brand-hr,
.brand-peo,
.brand-performanceManagement,
.brand-hrOutsourcing {
  --active-accent-color: var(--brand-accent-blue-sky);
  --active-accent-color-rgb: var(--brand-accent-blue-sky-rgb);
  --svg-tint-filter: var(--svg-tint-blue-sky);
  --active-muted-color: var(--brand-muted-blue-sky);
}

.brand-healthInsuranceBenefitsBenefits, .brand-benefits {
  --active-accent-color: var(--brand-accent-green-mint);
  --active-accent-color-rgb: var(--brand-accent-green-mint-rgb);
  --svg-tint-filter: var(--svg-tint-green-mint);
  --active-muted-color: var(--brand-muted-green-mint);
}

.brand-hrConsulting {
  --active-accent-color: var(--brand-accent-orange);
  --active-accent-color-rgb: var(--brand-accent-orange-rgb);
  --svg-tint-filter: var(--svg-tint-orange);
  --active-muted-color: var(--brand-muted-orange);
}

.brand-payrollAdministrationPayroll, .brand-payroll {
  --active-accent-color: var(--brand-accent-green-lime);
  --active-accent-color-rgb: var(--brand-accent-green-lime-rgb);
  --svg-tint-filter: var(--svg-tint-green-lime);
  --active-muted-color: var(--brand-muted-green-lime); /* Soft Lemon */
}

.brand-compensation {
  --active-accent-color: var(--brand-accent-green-lime);
  --active-accent-color-rgb: var(--brand-accent-green-lime-rgb);
  --svg-tint-filter: var(--svg-tint-green-lime);
  --active-muted-color: #B2F5EA; /* Mint Mist — split from Payroll per client guide §5 */
}

.brand-hrTechnology, .brand-technology {
  --active-accent-color: var(--brand-accent-blue-midnight);
  --active-accent-color-rgb: var(--brand-accent-blue-midnight-rgb);
  --svg-tint-filter: var(--svg-tint-blue-midnight);
  --active-muted-color: var(--brand-muted-blue-midnight);
}

.brand-hrCompliance, .brand-compliance, .brand-workplaceSafety {
  --active-accent-color: var(--brand-accent-orange);
  --active-accent-color-rgb: var(--brand-accent-orange-rgb);
  --svg-tint-filter: var(--svg-tint-orange);
  --active-muted-color: var(--brand-muted-orange);
}

.brand-recruitingHiring, .brand-recruitment, .brand-retention, .brand-recruitmentRetention {
  --active-accent-color: var(--brand-accent-coral);
  --active-accent-color-rgb: var(--brand-accent-coral-rgb);
  --svg-tint-filter: var(--svg-tint-coral);
  --active-muted-color: var(--brand-muted-coral);
}

.brand-employeeDevelopment {
  --active-accent-color: var(--primary-blue);
  --active-accent-color-rgb: var(--brand-accent-blue-sky-rgb);
  --svg-tint-filter: var(--svg-tint-blue);
  --active-muted-color: #FBE9EC; /* Blush — split from the Sky Wash group per client guide §5 */
}

.brand-recruitment {
  --active-accent-color: var(--brand-primary);
  --active-accent-color-rgb: var(--brand-primary-rgb);
  --svg-tint-filter: var(--svg-tint-primary);
  --active-muted-color: var(--brand-muted-coral);
}

.brand-contributedArticle {
  --active-accent-color-rgb: var(--colors-brown-rgb);
  --active-muted-color: var(--brand-muted-brown);
}

.brand-culture {
  --active-accent-color-rgb: var(--colors-yellow-400-rgb);
  --active-muted-color: var(--brand-muted-yellow);
}

/* main.css overwrites */
.block--feature-speedbump .block__headline h2, body.resources.article #page-wrapper.article-layout .block--split-dark .block__content-wrapper .block__headline h2,
body.resources.article #page-wrapper.article-layout .block--split-dim .block__content-wrapper .block__headline h2,
body.resources.article #page-wrapper.article-layout .block--split .block__content-wrapper .block__headline h2, h1, h2, h3, h4 {
  color: var(--active-header-color);
}

body.lp header.site_header {
  position: static;
}

body.lp main {
  padding-top: 0;
}

/* Visibility helpers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden { display: none; }
.visible { display: block; }

@media (min-width: 768px) {
  .md-hidden { display: none; }
  .md-visible { display: block; }
}

@media (min-width: 1024px) {
  .lg-hidden { display: none; }
  .lg-visible { display: block; }
}

@media (min-width: 1279px) {
  .xl-hidden { display: none; }
  .xl-visible { display: block; }
}

@media (min-width: 1400px) {
  .xxl-hidden { display: none; }
  .xxl-visible { display: block; }
}

/* Font helpers */
.font-family-body { font-family: var(--body-font-family); }

/* Forms */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.form-fields.row {
  flex-direction: row;
}

@media (min-width: 768px) {
  .form-fields {
    flex-direction: row;
  }
}

.form-fields .field {
  flex: 1;
}

.form-fields .field.terms {
  display: flex;
  align-items: flex-start;
  flex-direction: row-reverse;
  gap: 0.75rem;
  text-align: left;
}

.form-fields .field.terms input {
  position: relative;
  top: 0.25rem;
}

.form-fields label,
.form-fields label a,
.form-fields p,
.form-fields p a {
  line-height: 1.4;
  font-size: 0.9rem;
  color: var(--active-text-color-light);
  flex: 1;
  font-weight: 400;
  font-family: var(--body-font-family);
  margin: 0;
}

.form-fields .field.terms a {
  color: var(--brand-accent-blue-sky);
  text-decoration: underline;
}

.search__submit .form-disclaimer {
  --active-accent-color: var(--colors-red-400);
  margin-bottom: 1rem;
}

.form-fields .form-disclaimer p,
.form-fields .form-disclaimer a,
.search__submit .form-disclaimer p,
.search__submit .form-disclaimer a {
  font-size: 0.8rem;
  margin-bottom: 0 !important;
  text-align: center;
}

.form-fields .form-disclaimer a,
.search__submit .form-disclaimer a { 
  color: var(--active-accent-color);
  text-decoration: underline;
}

.form-fields label,
.form-fields label a {
  cursor: pointer;
}

.form-fields input[type='text'],
.form-fields input[type='email'],
.form-fields input[type='tel'],
.form-fields select,
.form-fields textarea {
  width: 100%;
  padding: 0.5rem 1rem;
  height: var(--elm-size-base);
  border: 1px solid rgba(var(--active-accent-color-rgb-alt), 0.5);
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  transition: border 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--body-font-family);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--colors-white);
  margin: 0 !important;
}

.bg-white .form-fields input[type='text'],
.bg-white .form-fields input[type='email'],
.bg-white .form-fields input[type='tel'],
.bg-white .form-fields select,
.bg-white .form-fields textarea {
  background-color: rgba(var(--active-accent-color-rgb), 0.04);
}

.form-fields textarea {
  padding: 1rem;
}

.form-fields.fields--lg input[type='text'],
.form-fields.fields--lg input[type='email'],
.form-fields.fields--lg input[type='tel'],
.form-fields.fields--lg select {
  height: var(--elm-size-lg);
}

.form-fields.fields--sm input[type='text'],
.form-fields.fields--sm input[type='email'],
.form-fields.fields--sm input[type='tel'],
.form-fields.fields--sm select {
  height: var(--elm-size-sm);
}

.form-fields select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23333' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 10px 6px;
}

.form-fields input::placeholder,
.form-fields textarea::placeholder,
.form-fields select:invalid {
  color: rgba(var(--colors-black-rgb), 0.45);
}

.form-fields select::-ms-expand {
  display: none;
}

.form-fields input[type='text']:hover,
.form-fields input[type='text']:focus,
.form-fields input[type='email']:hover,
.form-fields input[type='email']:focus,
.form-fields input[type='tel']:hover,
.form-fields input[type='tel']:focus,
.form-fields select:hover,
.form-fields select:focus,
.form-fields textarea:hover,
.form-fields textarea:focus {
  border-color: var(--active-accent-color);
  box-shadow: inset 0 0 0 1px var(--active-accent-color);
  background-color: var(--colors-white);
}

.form-fields input[type='text']:focus-visible,
.form-fields input[type='email']:focus-visible,
.form-fields input[type='tel']:focus-visible,
.form-fields select:focus-visible,
.form-fields textarea:focus-visible {
  border-color: var(--active-accent-color);
  outline: 1px solid var(--active-accent-color);
  background: var(--colors-white);
}

.form-fields textarea {
  min-height: 100px;
}

.form-fields .error {
  border-color: var(--colors-red-400) !important;
}

/* Content limit */
.content-limit-1024 {
  max-width: 1024px;
  margin: 0 auto;
}

.content-limit-768 {
  max-width: 768px;
  margin: 0 auto;
}

.content-limit-500 {
  max-width: 500px;
  margin: 0 auto;
}

/* Overlay */
.global-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--group-cubic-transition);
}

.global-overlay.active {
  opacity: 1;
  background: var(--modal-overlay-color);
  pointer-events: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  align-items: center;
  border: 1px solid;
  border-radius: var(--border-radius-md);
  transition: all 0.2s var(--action-transition);
  cursor: pointer;
  font-family: var(--headline-font-family);
  font-weight: var(--font-weight-semibold);
  padding: 0.5rem 2rem;
  font-size: 0.925rem;
  min-height: var(--elm-size-md);
  letter-spacing: 0.25px;
  text-transform: uppercase;
  line-height: 1.2;
}

.btn.disable-wrap {
  height: var(--elm-size-md);
  padding-block: 0;
  line-height: 0;
}

.btn.disable-wrap span {
  white-space: nowrap;
}

.btn svg {
  transition: transform 0.2s var(--action-transition);
}

.btn.btn-button svg {
  width: 28px;
  height: 28px;
}

.btn.btn-button.btn--lg svg {
  width: 30px;
  height: 30px;
}

.btn.btn-button.btn--sm svg {
  width: 22px;
  height: 22px;
}

.btn:hover svg {
  transform: translateX(0.25rem);
}

.btn--min-width {
  min-width: 350px;
}

.btn--full-width {
  width: 100%;
}

.btn--sm {
  min-height: var(--elm-size-sm);
  text-transform: none;
  font-size: 0.85rem;
}

.btn--sm.disable-wrap {
  height: var(--elm-size-sm);
}

.btn--lg {
  min-height: var(--elm-size-lg);
  font-size: 1rem;
}

.btn--lg.disable-wrap {
  height: var(--elm-size-lg);
}

.btn--outline {
  background: transparent;
  color: var(--colors-black);
  border-color: var(--colors-black);
}

.btn--link {
  color: var(--brand-ruby);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
}

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

.arrow-link {
  display: inline-flex;
  width: auto;
  align-items: center;
  transition: all 0.3s ease;
}

.arrow-link::after {
  content: "";
  right: 0;
  width: 25px;
  height: 25px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='25' viewBox='0 0 25 25' fill='none'%3E%3Cpath d='M5.03057 12.2213L19.0305 12.2573M19.0305 12.2573L12.0486 5.23933M19.0305 12.2573L12.0125 19.2393' stroke='%23C8102E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
  margin-left: 5px;
}

.arrow-link.arrow-white::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='25' viewBox='0 0 25 25' fill='none'%3E%3Cpath d='M5.03057 12.2213L19.0305 12.2573M19.0305 12.2573L12.0486 5.23933M19.0305 12.2573L12.0125 19.2393' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.arrow-link:hover::after {
  transform: translateX(5px);
}

/* Brand refresh: red (primary) CTAs render as pills, with capitalization
   mirroring the label entered in the CMS (no forced uppercase). Color comes
   from --brand-primary (the new Crimson #c8102e, set by the color conversion);
   font comes from the .btn base (--headline-font-family / Work Sans). */
.btn--primary {
  background: var(--brand-primary);
  color: var(--colors-white);
  border-color: var(--brand-primary);
}

.btn.btn--primary {
  border-radius: 999px;
  text-transform: none;
}

.btn.btn--primary:hover {
  background: var(--colors-red-500);
  border-color: var(--colors-red-500);
}

.btn--primary.btn--outline {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn--primary.btn--outline:hover {
  background: var(--brand-primary);
  color: var(--colors-white);
  border-color: var(--brand-primary);
}

/* "Secondary" Button Style — repurposed to the teal brand-refresh style
   (pill, CMS-cased). Label kept as "Secondary" in the CMS; renders teal.
   Outline variant = the teal "ghost" CTA (ancillary nav + hero banners). */
.btn.btn--secondary {
  border-radius: 999px;
  text-transform: none;
  background: var(--brand-teal);
  color: var(--colors-white);
  border-color: var(--brand-teal);
}

.btn.btn--secondary:hover {
  background: var(--colors-green-600);
  border-color: var(--colors-green-600);
}

.btn.btn--secondary.btn--outline {
  background: transparent;
  color: var(--brand-teal);
  border-color: var(--brand-teal);
}

.btn.btn--secondary.btn--outline:hover {
  background: var(--brand-teal);
  color: var(--colors-white);
  border-color: var(--brand-teal);
}

.btn.btn--blue {
  background: var(--brand-accent-blue-sky);
  color: var(--colors-white);
  border-color: var(--brand-accent-blue-sky0);
}

.btn.btn--blue:hover {
  background: var(--colors-blue-800);
  border-color: var(--colors-blue-800);
}

.btn.btn--blue.btn--outline {
  background: transparent;
  color: var(--brand-accent-blue-sky);
  border-color: var(--brand-accent-blue-sky);
}

.btn.btn--blue.btn--outline:hover {
  background: var(--colors-blue-800);
  color: var(--colors-white);
  border-color: var(--colors-blue-800);
}

.btn.btn--white {
  background: var(--colors-white);
  color: var(--colors-black);
  border-color: var(--colors-white);
}

.btn.btn--white:hover {
  background: var(--colors-grey-100);
  border-color: var(--colors-grey-100);
}

/* Link style */
.btn-link {
  color: var(--active-accent-color-link);
  gap: 0.5rem;
  padding: 0;
  height: auto;
  min-height: 0;
  border: 0;
  text-transform: none;
  font-size: 1rem;
}

.btn-link span {
  position: relative;
}

.btn-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-link.btn--sm {
  font-size: 0.9rem;
}
.btn-link.btn--lg {
  font-size: 1.1rem;
}

.btn-link.btn--sm svg {
  width: 18px;
  height: 18px;
}

.btn-link.btn--lg svg {
  width: 26px;
  height: 26px;
}

/* button plus icon type */
.btn.icon-plus svg {
  width: 18px;
  height: 18px;
}

.btn.btn--lg.icon-plus svg {
  width: 21px;
  height: 21px;
}

.btn.btn--sm.icon-plus svg {
  width: 15px;
  height: 15px;
}

.btn.icon-plus:hover svg {
  transform: scale(1.15);
}

/* button headlinee */
.btn.btn--headline svg {
  width: 46px;
  height: 46px;
}


/* Promo banner */
.header-promo-banner {
  width: 100%;
  background-color: var(--colors-blue-800);
  color: var(--colors-white);
  padding: 0.75rem var(--container-padding);
  padding-right: calc(var(--container-padding) * 2);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-size-xsmall);
  position: relative;
}

.header-promo-banner .close {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--container-padding);
  cursor: pointer;
}

.header-promo-banner .close svg {
  width: 24px;
  height: 24px;

}

.header-promo-banner__content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--container-max-width);
  width: 100%;
  gap: 0.5rem;
}

.header-promo-banner__content a {
  color: var(--colors-white);
  text-decoration: underline;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-small);
}

.header-promo-banner__icon {
  width: 20px;
  height: 20px;
  margin-right: calc(var(--container-padding) / 2)
}

@media (min-width: 768px) {
  .header-promo-banner {
    font-size: var(--font-size-small);
  }
}


/* header action links */
body header .container .block--header .block__utility.block__utility--alternative {
  margin-bottom: 10px;
}

body header .container .block--header .block__utility.block__utility--alternative .btn--header {
  padding: 0 1.25rem;
  font-size: 0.937rem;
  min-width: 200px;
}

.alternative--header .search__open img {
    width: 0.95rem;
    height: 0.95rem;
    filter: brightness(0);
}

.alternative--header .block__utility--alternative > ul {
    display: flex;
    align-items: center;
    gap: 0.937rem;
    margin-left: 1rem;
}

.block__utility--alternative__links li {
    font-size: var(--font-size-base);
}

.header-action-link {
    position: relative;
}

.alternative--header .header-action-link > div {
    display: none;
}

.alternative--header .header-action-link.is-open > div {
  display: flex;
}

@media (min-width: 1024px) {
  .alternative--header .header-action-link > div {
      display: none;
      position: absolute;
      top: 100%;
      right: 0;
      /* Must clear the megamenu, which shares this stacking context
         (.block__on-canvas has a transform): panel-content is z-index 50 and
         the nav trigger buttons are z-index 51. At the old z-index 2 the 90px
         tall nav buttons painted over this dropdown and stole the hover, so it
         closed as soon as the pointer moved down into it. */
      z-index: 60;
  }

  .alternative--header .header-action-link:hover > div {
      display: flex;
  }

  .alternative--header .header-action-link.is-open > div {
    display: none;
  }
}


.header-action-link .menu-link__children {
    min-width: 180px;
    margin-top: 1.3rem;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    border-radius: 10px;
    background: var(--colors-grey-40);
    /* Matches the megamenu panel's box-shadow: 0 0 10px rgba(0,0,0,0.2).
       drop-shadow() reads its blur the same way box-shadow does, so the same
       number renders the same spread - kept as a filter rather than a
       box-shadow so the ::before pointer triangle is shadowed with the panel
       instead of getting a hard rectangular edge behind it. */
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
}

/* Triangle pointer at the top of dropdown */
.header-action-link .menu-link__children::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--colors-grey-40);
  }

.header-action-link .menu-link__children li a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-semibold);
}

.header-action-link .menu-link__children li a img {
  position: relative;
  top: 2px;
}

.header-action-link .menu-link__children li a:hover {
    color: var(--colors-blue-300);
}

@media (max-width: 768px) {
  .alternative--header .block__utility--alternative__links li:last-of-type .header-action-link > div {
    right: 0;
  }
  .alternative--header .header-action-link > div {
    width: calc(100vw - 40px);
    right: unset;
  }
  .header-action-link .menu-link__children {
    width: 100%;
    filter: none;
    border-radius: 0;
    background: var(--colors-white);
    padding: 5px 10px 20px;
  }

  /* Inside the mobile drawer these sit on the pale blue pinned band, where a
     white panel reads as a second surface; the design has the child links
     sitting straight on the band. The white ground stays for the same
     dropdown opened from the header with the drawer closed. */
  body.mm-mobile-open .block__utility--alternative__links .header-action-link .menu-link__children {
    background: transparent;
  }
  .header-action-link .menu-link__children::before {
    content: none;
  }
}

/* mega menu */
.mega-menu {
    justify-content: flex-end;
    display: none !important;

    /* ---- Desktop panel animation switch -------------------------------
       Currently OFF at the client's request. Set these two back to 400ms
       and 34px to restore the cross-dissolve, the section slide-in and the
       section morph - none of that code has been removed, it is all still
       below and driven by these values. The JS reads --mm-anim-ms off this
       element for the morph duration, so this is the only place to edit. */
    --mm-anim-ms: 0ms;
    --mm-anim-shift: 0px;
}

.mega-menu__panel {
    padding-inline: calc(1.875rem / 2);
}

.mega-menu__panel:last-of-type {
  padding-right: 0;
}

.mega-menu__panel button > svg {
    /* Same 400ms ease-out as the panel dissolve so the chevron and the panel
       land together. It was 300ms ease-in-out against the panel's
       250ms-delayed 300ms fade, so the chevron finished rotating before the
       panel had started to appear. */
    transition: transform 0.4s ease-out, color 0.4s ease-out;
}

.mega-menu__panel.open .mega-menu__panel-content {
    opacity: 1;
    height: auto;
    pointer-events: auto;
}

/* Switching panels: the outgoing one stays fully opaque and drops BELOW the
   incoming one, which fades in over the top. Fading both at once looks wrong
   even though the opacities are complementary - two 60%/40% white cards over
   the page only cover 1-(0.4*0.6) = 76% of it, so the hero photo washes
   through the middle of the menu. Measured on a recording of the prototype,
   Figma's panel surface holds at 251.8-253.8 all the way through (codec
   noise); ours was dipping to 221.6.
   49 keeps it under the incoming panel's 50 and both under the nav buttons'
   51, and transition:none means it vanishes instantly when .open is finally
   removed - it is hidden behind an opaque card by then, so there is nothing
   to animate. */
.mega-menu__panel.mm-beneath .mega-menu__panel-content {
    z-index: 49;
}

.mega-menu__panel.mm-beneath .mega-menu__panel-content,
.mega-menu__panel.mm-beneath .mega-menu__panel-content-inner > * {
    transition: none;
}

/* Sections slide in from the right over the same 400ms ease-out as the fade.
   Restored at the client's direction. To be straight about the evidence: a
   global shift scan of their screen recording of the prototype - masked to
   the 78% of the panel that is white in the outgoing panel, so only the
   incoming content contributes, scanned +/-120px - peaks at exactly 0px in
   every frame of three separate transitions, i.e. the measurement says Figma
   does not translate anything. 34px is therefore a chosen value, not a
   measured one; change the one number to taste. */
.mega-menu__panel-content-inner > * {
    transform: translateX(var(--mm-anim-shift, 34px));
    transition: transform var(--mm-anim-ms, 0.4s) ease-out;
}

.mega-menu__panel.open .mega-menu__panel-content-inner > * {
    transform: none;
}

/* Active/hover label. Measured off the prototype recording by sampling the
   ink colour of each nav label: with a panel open, only that label is red
   (r-g = +40 and +66 on two different panels) while every other label stays
   neutral navy (r-g within +/-3). The red covers the chevron too - the svg
   strokes with currentColor - and at 16x magnification the active chevron is
   the same downward "v" as its idle neighbours, so it does NOT flip. The
   rotate(180deg) that used to be here was ours, not the design's. */
.mega-menu__panel button:hover,
.mega-menu__panel.open button {
    color: var(--brand-primary);
}

.mega-menu__panel button {
    transition: color 0.4s ease-out;
}

/* Nav labels, per the Figma type panel: Work Sans / Medium 500 / 16px /
   24px line height / 0 letter spacing. They were inheriting the body face
   (IBM Plex Sans) because nothing here set a family. */
.mega-menu__panel button {
    font-family: var(--headline-font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    letter-spacing: 0;
    padding: 0;
}

.mega-menu__panel-content {
    opacity: 0;
    height: 0;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 50;
    /* Figma prototype: the panel cross-dissolves in over ~200ms with an
       ease-out curve and no movement or scale (measured off the prototype by
       dilating its clock 10-15x and sampling the cross-fade). Opacity only -
       "all" also tried to animate height/padding, and the 0.25s delay meant
       the panel held the layout for a quarter second while still invisible
       before it began to fade.
       Duration re-measured from a 30fps screen recording of the prototype
       (frame-differenced, then each frame decomposed as (1-p)*from + p*to):
       five separate transitions each span 9 frames, 0 -> 1 in 300ms, and the
       progress curve sits above linear throughout - Figma's default 300ms,
       since slowed a third at the client's request to 400ms
       with its "Ease out" preset, which is the same bezier as CSS ease-out.
       The same analysis cross-correlated every frame against the settled one
       in three horizontal bands and found a best shift of 0px every time, so
       the panel genuinely does not move - no slide, no scale. */
    transition: opacity var(--mm-anim-ms, 0.4s) ease-out;
    overflow: hidden;
    /* A closed panel is height:0 but still has vertical padding, so its
       padding box stays ~44px tall and full-width (left:0/right:0) and sits
       over the header via the -33px margin. Invisible but hit-testable, it
       fired the panel's mouseenter from anywhere in that band - hovering the
       empty header space opened Resources (the last panel, so topmost).
       Re-enabled on .open below so the menu itself stays interactive. */
    pointer-events: none;
}

.mega-menu__panel-content > div {
    border-radius: 0px 0px 10px 10px;
    background: var(--colors-white);
    border-top: 1px solid var(--colors-grey-46);
    max-width: 1150px;
    margin: auto;
    padding: 1.875rem 0 0;
}

.mega-menu__panel-content.no-footer-link {
    padding: 1.875rem 0;
}

.mega-menu__panel-content .mega-menu__panel-content-inner {
    display: flex;
    width: 100%;
    gap: 50px;
    padding: 0 1.875rem;
}

.mega-menu__panel-content .column {
    margin-bottom: 2rem;
}

.mega-menu__panel-content .column p {
    color: var(--colors-blue-400);
    font-size: 1.25rem;
    margin: .5rem 0 1rem;
    font-weight: var(--font-weight-bold);
}

.mega-menu__panel-content .column:last-of-type {
    flex: 1;
}

@media (min-width: 768px) {
  .mega-menu__panel-content .column.mega-menu__group--featured {
    flex: none !important;
    margin-top: auto;
  }

  .mega-menu__panel-content .column.mega-menu__group--featured a {
    color: var(--brand-primary)!important;
  }

  .mega-menu__group--links-list {
    max-width: 300px;
  }

  .mega-menu__group--links-list a.mega-menu__link.featured-link .menu-link__text {
    white-space: normal !important;
  }
}

.mega-menu__panel-content a.mega-menu__link.featured-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--colors-black);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    line-height: normal;
}

.mega-menu__panel-content a.mega-menu__link.featured-link > svg {
  transition: transform 0.3s ease;
}

.mega-menu__panel-content a.mega-menu__link.featured-link:hover > svg {
  transform: translateX(5px);
}

.mega-menu__panel-content a.mega-menu__link.featured-link .img-wrap svg,
.mobile-nav label .img-wrap svg {
  color: var(--active-accent-color);
}

.mega-menu__panel-content a.mega-menu__link.featured-link .menu-link__text {
    white-space: nowrap;
    display: flex;
    flex-direction: column;
}

.mega-menu__panel-content a.mega-menu__link.featured-link .menu-link__text .menu-link__subtext,
.card-grid__item a.mega-menu__link.featured-link .menu-link__text .menu-link__subtext {
    font-size: var(--font-size-xsmall);
    color: var(--colors-grey-500);
    font-weight: var(--font-weight-normal);
    display: block;
}

.mega-menu__panel-content a.mega-menu__link.featured-link svg {
    margin-left: 0.5rem;
    flex: 0 0 0.7rem;
    color: var(--brand-primary)
}

/* Mega Menu Divider */
.mega-menu__divider {
    width: 1px;
    background: var(--colors-grey-100);
}

/* Mega Menu Footer */
.mega-menu__panel-content-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.75rem 1.1875rem;
    background: var(--colors-blue-800);
    border-radius: 0px 0px 10px 10px;
    color: var(--colors-white);
}

.mega-menu__panel-content-footer a.mega-menu__link.featured-link,
.mega-menu__panel-content-footer a.mega-menu__link.featured-link svg {
    color: var(--colors-white);
}

/* mega menu link column*/
.mega-menu__panel-content .mega-menu__group--links p {
    min-height: 1.4rem;
}
  
.mega-menu__panel-content .mega-menu__group--links ul.mega-menu__group--links-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
}

.mega-menu__panel-content .mega-menu__group--links ul.mega-menu__group--links-list li {
    margin: 0;
    padding: 0;
    align-items: flex-start;
}

.mega-menu__panel-content .mega-menu__group--links ul.mega-menu__group--links-list li a.mega-menu__link {
    width: 100%;
    line-height: 1.15;
}

.mega-menu__panel-content .mega-menu__group--links ul.mega-menu__group--links-list li a.mega-menu__link svg {
    margin-left: auto;
}

.mega-menu__panel-content .mega-menu__group--links ul.mega-menu__group--links-list li a.button {
  margin-top: 5px;
  display: block;
  text-align: center;
}
.mega-menu__panel-content .mega-menu__group--links .menu-link__children {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-left: 1.75rem;
    margin-top: 0.625rem;
}

.mega-menu__panel-content .mega-menu__group--links .menu-link__children .menu-link__text {
    font-size: var(--font-size-small);
}

/* mega menu card grid */
.mega-menu__panel-content .mega-menu__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 1400px) {
  .mega-menu__panel-content .mega-menu__cards {
    display: flex;
  }

  .mega-menu__panel-content .mega-menu__cards > div {
    flex: 1;
  }
}

.mega-menu__panel-content .mega-menu__cards .mega-menu__card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mega-menu__panel-content .mega-menu__card .mega-menu__card-image {
    width: 100%;
    height: 135px;
    display: flex;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    justify-content: center;
}

.mega-menu__panel-content .mega-menu__card .mega-menu__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-menu__panel-content .mega-menu__card .mega-menu__card-image .mega-menu__play-icon-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.mega-menu__panel-content .mega-menu__card .mega-menu__card-image .mega-menu__play-icon {
    width: 40px;
    height: 40px;
}

.mega-menu__panel-content .mega-menu__card .mega-menu__link {
    width: 100%;
    justify-content: space-between;
    margin-top: auto;
}

.mega-menu__panel-content .mega-menu__card .mega-menu__link.mega-menu__link--overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* mega menu posts link */
.mega-menu__panel-content .mega-menu__group--cards-posts {
    gap: 1.56rem;
}

.mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card-image {
    height: 150px;
}

.mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card .mega-menu__link {
    justify-content: flex-start;
}

/* mega menu award gallery */
.mega-menu__panel-content .mega-menu__group--awards .mega-menu__awards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.625rem;
    margin: 0;
}

.mega-menu__panel-content .mega-menu__group--awards .mega-menu__awards + a {
  margin-top: 1.5rem;
}

.mega-menu__panel-content .mega-menu__group--awards .mega-menu__awards .mega-menu__award img {
  width: 100px;
  height: 100px;
  object-fit: contain
}

.mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card .mega-menu__card-content {
    font-family: var(--body-font-family);
}

.mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card .mega-menu__card-content .mega-menu__card-date {
    color: var(--colors-grey-500);
}

.mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card .menu-link__text {
    color: var(--brand-primary);
}

/* mega menu promo block */
.mega-menu__panel-content .mega-menu__promo {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.mega-menu__panel-content .mega-menu__promo .mega-menu__promo-content {
  font-family: var(--body-font-family);
  line-height: 1.5;
  color: var(--active-header-color);
}

.mega-menu__panel-content .mega-menu__promo .mega-menu__link {
    margin-top: 10px;
}

.mega-menu__panel-content .mega-menu__promo .mega-menu__promo-image {
    border-radius: 5px;
    overflow: hidden;
}

.mega-menu__panel-content .mega-menu__promo .mega-menu__link .menu-link__text {
    color: var(--brand-primary);
}

@media (min-width: 1024px) {
  .mega-menu {
    display: flex !important;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* mobile nav */
.mobile-nav input[type="checkbox"] {
  display: none;
}

.mobile-nav input[type="checkbox"] ~ ul {
  display: none;
}

.mobile-nav input[type="checkbox"]:checked ~ ul {
  display: flex;
  flex-direction: column;
}

.mobile-nav input[type="checkbox"]:checked + label > svg {
  transform: rotate(180deg);
}

.mobile-nav input[type="checkbox"]:checked + label,
.mobile-nav input[type="checkbox"]:checked + label > svg {
  color: var(--brand-primary);
  font-weight: var(--font-weight-bold);
}

.mobile-nav input[type="checkbox"]:checked + label.has-brand-color,
.mobile-nav input[type="checkbox"]:checked + label.has-brand-color > svg {
  color: var(--active-accent-color);
}

.mobile-nav ul li a.featured-link svg {
  color: var(--active-accent-color);
}

.mobile-nav ul li a.featured-link > svg {
  color: var(--brand-primary);
}

.mobile-nav > ul > li > ul > li > ul > li a,
.mobile-nav label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: bold;
  color: var(--colors-black);
}

.mobile-nav > ul > li > ul > li > ul > li a,
.mobile-nav > ul > li > ul > li > ul > li a svg,
.mobile-nav label,
.mobile-nav label > svg {
  transition: all 0.3s ease-in-out;
}

.mobile-nav li {
  padding: 0 12px;
}

.mobile-nav ul li a {
  display: flex;
  text-decoration: none;
  color: var(--colors-black);
}

.mobile-nav ul li a.featured-link {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--colors-black);
  font-weight: var(--font-weight-semibold);
  line-height: normal;
}

.mobile-nav ul li.card-grid__item a.featured-link {
  gap: 0.875rem;
}

.mobile-nav ul li a.featured-link svg {
  margin-left: auto;
  flex: 0 0 0.7rem;
}

.mobile-nav > ul {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.mobile-nav > ul > li {
  padding: 0;
  font-size: var(--font-size-base);
}

.mobile-nav > ul > li > ul {
  gap: 1.25rem;
  margin-top: 0.875rem;
}

.mobile-nav > ul > li > ul > li,
.mobile-nav > ul > li > ul > li > a {
  font-size: 0.9375rem;
}

.mobile-nav > ul > li > ul > li ul{
  margin-top: 0.9rem;
  gap: 1rem;
}

.mobile-nav > ul > li > ul > li > ul > li a {
  gap: 8px !important
}

.mobile-nav > ul > li > ul > li > ul > li,
.mobile-nav > ul > li > ul > li > ul > li a {
  font-size: var(--font-size-small);
}

.mobile-nav .group-link-cols > li a span,
.mobile-nav .group-link-cols > li label {
  font-weight: 400;
}

.mobile-nav .group-link-cols > li:not(.has-children) span + svg {
  display: none;
}

@media (max-width: 1023px) {
  .block__utility--alternative .search__open {
    display: none;
  }

  .alternative--header .block__utility--alternative > ul {
    width: 100%;
    justify-content: space-between;
    margin: 1.8rem 0 0;
    flex-wrap: wrap;
  }

  .block__utility--alternative__links li:first-child {
    flex: 100%
  }

  .block__utility--alternative__links li {
    flex: 1;
  }

  .block__utility--alternative__links li .btn {
    display: flex;
  }

  .alternative--header .search__open-mobile {
    filter: brightness(0);
  }

  body header .container .block--header .block__utility-mobile .menu-icon.active .nav-icon__menu {
    display: none;
  }

  body header .container .block--header .block__utility-mobile .menu-icon.active .nav-icon__close {
    display: block;
    min-width: 33px;
  }
}

@media (min-width: 1024px) {
  body header .container .block__nav--mega-menu nav {
    justify-content: space-between;
  }
}

.footer-end-row.wp-section {
  --section-padding: var(--container-padding);
}

.footer-end-row .wp-container {
  display: flex;
  align-items: center;
  text-align: center;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1279px) {
  .footer-end-row .wp-container {
    flex-direction: row;
    gap: 3rem;
  }
}

.footer-end-row .wp-container > *:last-child {
  flex: 1;
}

.footer-end-row p {
  margin: 0;
  color: var(--active-text-color);
}

.footer-end-row * {
  font-size: var(--font-size-base);
}

.footer-end-row .legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  row-gap: 0.35rem;
}

@media (min-width: 1024px) {
  .footer-end-row .legal-links {
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;
  }
}

.footer-end-row .legal-links li,
.footer-end-row .legal-links a {
  color: var(--active-text-color);
}

.footer-end-row .legal-links a span {
  white-space: nowrap;
}

.footer-end-row .legal-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-end-row .legal-links svg {
  width: 2.18rem;
  height: auto;
  vertical-align: middle;
}

.footer-v3 p,
.footer-v3 p a {
  color: var(--active-text-color);
  font-size: var(--font-size-base);
  margin-bottom: 0;
}

.footer-v3 p a {
  font-weight: 600
}

.footer-v3 a:hover span,
.footer-v3 a:focus-visible span,
.footer-v3 p a:hover,
.footer-v3 p a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-v3 .wp-container {
  --row-spacing: 1.25rem;

  display: flex;
  flex-direction: column;
  gap: var(--row-spacing);
  color: var(--active-text-color);
}

@media (min-width: 1024px) {
  .footer-v3 .wp-container {
    --row-spacing: 0;
    --row-margin: 4rem;
  }
}

.footer-v3 .footer-logo-row {
  text-align: center;
  line-height: 1;
}

@media (min-width: 1024px) {
  .footer-v3 .footer-logo-row {
    text-align: left;
  }
}

.footer-v3 .footer-logo-row a {
  display: inline-block;
}

.footer-v3 .footer-logo-row img {
  max-width: 215px;
  margin: 0 auto;
}

.footer-v3 .newsletter-form-wrapper {
  margin-top: 1.5rem;
}

.footer-newsletter-row {
  display: flex;
  gap: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2rem;
  margin-top: var(--row-margin);
}

@media (min-width: 1024px) {
  .footer-newsletter-row {
    align-items: center;
    padding: 2.5rem;
    gap: 3rem;
  }

  .footer-newsletter-row .newsletter-wrap {
    max-width: 330px;
  }
}

.footer-links-row {
  display: grid;
  gap: 0;
  font-family: var(--body-font-family);
}

@media (min-width: 1024px) {
  .footer-links-row {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
    row-gap: 3rem;
    margin-top: var(--section-padding-sm);
    padding-top: var(--row-margin);
  }
}

.footer-link-blocks {
  min-width: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15)
}

.footer-link-blocks:last-child {
  border: 0;
}

@media (min-width: 1024px) {
  .footer-link-blocks {
    border: 0;
  }
}

.footer-title.is-single,
.footer-accordion > summary,
.footer-link-blocks > div {
  margin: 0;
  padding: 0;
  line-height: 1.3;
  font-weight: 600;
  color: var(--active-text-color);
}

.footer-accordion > summary,
.footer-link-blocks > div {
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-title.is-single:not(.is-single-link),
.footer-title.is-single a,
.footer-accordion > summary {
  list-style: none;
  padding: 1.5rem 0;
  margin: 0;
}

.footer-title.is-single-link {
  width: 100%;
}

.footer-title.is-single-link a {
  display: block;
}

.footer-accordion > summary {
  cursor: pointer;
}

@media (min-width: 1024px) {
  .footer-title.is-single:not(.is-single-link),
  .footer-title.is-single a,
  .footer-title.is-single,
  .footer-accordion > summary {
    padding: 0;
  }

  .footer-accordion > * + * {
    margin-top: 1.5rem;
  }
}

.footer-link-blocks > * + * {
  margin-top: 1.5rem;
}

.footer-accordion > summary::-webkit-details-marker {
  display: none;
}

.footer-title,
.footer-overview-link {
  font-family: var(--body-font-family);
  color: var(--active-text-color);
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin: 0;
  padding: 0;
}

.footer-accordion > summary > .footer-overview-link {
  text-decoration: none;
}

.footer-accordion > summary > .footer-overview-link:hover,
.footer-accordion > summary > .footer-overview-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* .footer-link-blocks > div > h4 {
  margin: 0;
  font: inherit;
  color: inherit;
} */

.footer-link-blocks > div > h4 > a {
  font: inherit;
  color: inherit;
  text-decoration: none;
}

.footer-accordion > summary svg {
  flex: 0 0 auto;
  width: 15px;
  height: 9px;
  transition: transform 200ms ease;
}

.footer-accordion[open] > summary svg {
  transform: rotate(180deg);
}

.footer-accordion > ul {
  padding: 0 0 2.25rem;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .footer-accordion > ul {
    padding: 0;
  }
}

.footer-v3 ul a,
.footer-v3 ul span {
  color: var(--active-text-color);
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.4;
}

.footer-v3 ul a strong {
  display: block;
  text-decoration: none;
  text-transform: uppercase;
  font-size: var(--font-size-small);
  color: rgba(var(--active-text-color-rgb), 0.65)
}

.footer-v3 ul a span {
  color: var(--active-text-color);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.4;
}

@media (max-width: 1023px) {
  .footer-accordion > summary > .footer-overview-link {
    display: none;
  }

  .footer-newsletter-row {
    flex-direction: column;
  }
}

@media (min-width: 1024px) {
  .footer-accordion > summary {
    cursor: default;
  }

  .footer-accordion > summary > .footer-overview-link + .footer-title {
    display: none;
  }

  .footer-accordion > ul .overview-link {
    display: none;
  }

  .footer-accordion[open] > summary svg {
    display: none;
  }
}

.footer-inline-link-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

@media (max-width: 1023px) {
  .footer-inline-link-blocks > :nth-child(3) {
    grid-column: 1 / -1;
  }
}

.footer-inline-link-blocks ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-inline-link-blocks .footer-link-blocks {
  border: 0;
}

@media (min-width: 1024px) {
  .footer-inline-link-blocks {
    display: flex;
    margin-left: auto;
    gap: 5rem;
  }

  .footer-inline-link-blocks ul {
    flex-direction: row;
    gap: 3rem;
  }
}

.reviews-badge img {
  max-width: 150px;
  border-radius: var(--border-radius-md);
}

#footer-newsletter-hs .hsfc-Step__Content {
  flex-direction: row !important;
}

#footer-newsletter-hs .hsfc-Step__Content > :first-child {
  flex: 1;
}


/* Checkbox */
.wp_option-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  border: 2px solid var(--brand-accent-blue-sky);
  border-radius: 6px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  flex: 0 0 20px;
}

.wp_option-checkbox:checked {
  background-color: var(--brand-accent-blue-sky);
}

.wp_option-checkbox:checked::after {
  content: '✓';
  position: absolute;
  color: var(--colors-white);
  font-size: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.wp_option-checkbox.wp_checkbox-big {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

/* clickable card */
.clickable-card {
  position: relative;
  cursor: pointer;
}

/* Create the overlay with ::before */
.clickable-card a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Above the card content but below interactive elements */
}

/* Optional: Add hover effect to indicate clickability */
.clickable-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* header/globals fixes */
main {
  padding-top: var(--main-offset);
}

main.promo-banner-enabled {
  padding-top: calc(var(--main-offset) + var(--promo-height));
}

body header .container {
  max-width: var(--container-max-width);
}

.site_header.alternative--header {
  height: var(--header-height);
  padding: 0;
}

.site_header.alternative--header .wp-container {
  padding: 0;
}

.site_header.alternative--header.has-promo-banner {
  height: calc(var(--header-height) + var(--promo-height));
}

.site_header.alternative--header .block--header {
  height: var(--header-height);
  gap: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.site_header.alternative--header .block--header .menu-icon {
  min-width: 0 !important;
}

.site_header.alternative--header .block--header .block__logo,
.site_header.alternative--header .block--header .block__utility-mobile  {
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

body header .container .block__logo {
  width: 100%;
  max-width: calc(180px + var(--container-padding));
}

@media (min-width: 768px) {
  body header .container .block__logo {
    max-width: calc(220px + var(--container-padding));
  }
}

.site_header.alternative--header .block--header .block__logo a {
  padding-inline: var(--container-padding);
  height: 100%;
  display: flex;
  align-items: center;
}

.site_header.alternative--header .block--header .block__nav--mega-menu {
  padding: 0;
  height: 100%;
}

.site_header.alternative--header .mega-menu__panel button {
  height: 90px;
  padding: 1rem 0;
}

.site_header.alternative--header .mega-menu__panel button:focus {
  outline: none;
}

.site_header.alternative--header .mega-menu__panel button:focus-visible {
  outline: 2px solid var(--brand-accent-blue-sky);
  outline-offset: 2px;
}

body header .block__utility {
  transition: none;
}

@media (max-width: 1023px) {
  .site_header.alternative--header .block--header .block__nav--mega-menu.open {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: calc(var(--header-height) + var(--promo-height));
    max-height: calc(100dvh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    padding: var(--container-padding);
  }

  .site_header.alternative--header.has-promo-banner .block--header .block__nav--mega-menu.open {
    max-height: calc(100dvh - (var(--header-height) + var(--promo-height)));
    height: calc(100dvh - (var(--header-height) + var(--promo-height)));
  }
}

.site_header.alternative--header .block--header .block__utility-mobile > button,
.site_header.alternative--header .block--header .block__utility-mobile > label.menu-icon {
  padding: 0 var(--container-padding); 
  height: var(--header-height);
  margin: 0 !important;
  display: flex;
  align-items: center;
  flex-direction: row;
  cursor: pointer;
}

.site_header.alternative--header .block--header .block__utility-mobile > button {
  padding-right: calc(var(--container-padding) / 2);
}

.site_header.alternative--header .block--header .block__utility-mobile > label.menu-icon {
  padding-left: calc(var(--container-padding) / 2);
}

.site_header .block--header .block__utility-mobile > label.menu-icon .close {
  display: none;
}

.site_header.alternative--header .block--header .block__utility-mobile > label.menu-icon.active .open,
.site_header.alternative--header .block--header .block__utility-mobile > label.menu-icon .close {
  opacity: 0;
  display: block;
}

.site_header.alternative--header .block--header .block__utility-mobile > label.menu-icon.active .close {
  opacity: 1;
}

.site_header.alternative--header .block--header .block__utility-mobile > label.menu-icon .close {
  position: absolute;
  width: 32px;
  height: 32px;
  transform: translateX(-3px);
}

body header .container .block__on-canvas {
  display: none;
}

body header .container .block__nav--mega-menu.open .block__on-canvas {
  display: flex;
}

.site_header.alternative--header .block--header {
  padding: 0;
}

@media (min-width: 1024px) {
  .site_header.alternative--header .wp-container {
    padding: 0 var(--container-padding);
  }
    
  .site_header.alternative--header .block--header .block__logo,
  .site_header.alternative--header .block--header .block__utility-mobile {
    display: none
  }

  body header .container .block__logo-desktop {
    height: 100%;
    max-width: 250px;
  }

  body header .container .block__logo-desktop a {
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
  }

  body header .container .block--header .block__utility.block__utility--alternative {
    position: absolute;
    top: 1.5rem;
    right: 0;
  }

  body header .container .block__on-canvas {
    gap: 1.5rem;
    height: 100%;
    justify-content: flex-end;
    display: flex;
  }

  body header .container .block__nav--mega-menu nav {
    align-items: center;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  body header .container .block__on-canvas > nav {
    flex-direction: column;
  }

  body header .container .block__nav--mega-menu nav {
    width: 100%;
    justify-content: space-between;
  }

  body header .container .block__logo-desktop {
    position: absolute;
    top: 1.4rem;
    left: 0;
    height: auto;
    max-width: 200px;
  }
}

.site_header.alternative--header,
body header.alternate.alternative--header .block--header .block__utility,
body header.alternate.alternative--header .block--header .block__utility *,
body header .container .block__logo-desktop,
body header .container .block__logo-desktop * {
  transition: none !important
}

/* wp-form-btn loading state styles */
.wp-form-btn.loading-state {
  opacity: 0.8 !important;
  cursor: not-allowed !important;
}

.wp-form-btn.loading-state .submit-text {
  display: none !important;
}

.wp-form-btn.loading-state .loading-spinner {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
}

.wp-form-btn.loading-spinner {
  display: none !important;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* menu card */
.menu-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.menu-card__image {
  width: 100%;
  height: 135px;
  display: flex;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  justify-content: center;
}

.menu-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-card__image .menu-card__play-icon-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.menu-card__image .menu-card__play-icon-container .menu-card__play-icon {
  width: 40px;
  height: 40px;
}

.menu-card .menu-card__menu-link {
  width: 100%;
  justify-content: space-between;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--colors-black);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  line-height: normal;
}

.menu-card .menu-card__menu-link.menu-card__link--overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}    

.menu-card .menu-card__menu-link > svg {
  transition: transform 0.3s ease;
  color: var(--brand-primary);
  margin-left: 0.5rem;
  flex: 0 0 0.7rem;
}

.menu-card .menu-card__menu-link:hover > svg {
  transform: translateX(5px);
}

@media (min-width: 1024px) {
  body.resources .wp-article-banner__default {
    padding-top: 2rem;
  }
}

#onetrust-consent-sdk {
  position: sticky;
  bottom: 0;
  z-index: 99;
}

#onetrust-consent-sdk #onetrust-banner-sdk {
  position: static
}

.block--embed .block__embed-container .block__responsive-wrapper > div {
  height: 100%;
}

.category-resource-index {
  display: none;
}

/* =====================================================================
   MEGA MENU REDESIGN (2026) — Figma "G&A | Website" Top Nav
   Card-based panels: teal section labels, bordered icon cards with
   descriptions, compact icon rows, intro column + CTA card, pill CTAs.
   Appended last so it overrides the legacy mega-menu rules above.
   Desktop only (>=1024px); mobile-nav styling is untouched.
   ===================================================================== */
/* Material Symbols Outlined - the icon set the Figma uses for the mega-menu
   cards (FILL 0 / wght 400 / opsz 24). Loaded from Google Fonts next to
   Work Sans / IBM Plex Sans in the layout. */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

@media (min-width: 1024px) {

  /* ---- Panel container ------------------------------------------------ */
  .mega-menu__panel-content > div {
    /* Figma "mega-menu": 1360 x 568 fixed, radius 14, padding 40 */
    --mm-title: #0A1B3D;   /* Figma title navy */
    --mm-body: #181818;    /* Figma body copy */
    --mm-gutter: 80px;     /* Figma gap 40 + 1px divider + gap 40 */
    max-width: 1360px;
    height: 568px;
    border-top: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 40px 0 0;
  }

  /* Who We Help uses a 24px auto-layout gap */
  #who-we-help .mega-menu__panel-content > div {
    --mm-gutter: 48px;
  }

  /* Neo divider blocks: column separation is handled by the border rules below */
  .mega-menu__panel-content .mega-menu__divider {
    display: none;
  }

  /* Panel sits ~10px under the nav labels (Figma), not 63px under them */
  .mega-menu__panel > button {
    position: relative;
    z-index: 51;
  }

  .mega-menu__panel-content,
  .mega-menu__panel-content.no-footer-link {
    margin-top: -33px;
    padding: 10px 0 34px;
  }

  /* The panel box is exactly as wide as its container (1360px) and the card
     fills it edge to edge, so overflow:hidden clipped the card's 10px shadow
     flush at the left and right - it only showed above and below, where the
     10px/34px padding left room. Nothing needs clipping once the panel is
     open (the card carries its own overflow:hidden for the corner radius),
     so let the shadow paint on all four sides as in Figma. */
  .mega-menu__panel.open .mega-menu__panel-content {
    overflow: visible;
  }
  .mega-menu__panel-content.no-footer-link > div {
    padding-bottom: 2.25rem;
  }

  /* Panel CTA buttons: full pill, 52px tall (measured off the Figma frames) */
  .mega-menu__panel-content .button.button--large {
    border-radius: 999px;
    padding-block: 1.025rem;
    padding-inline: 1.75rem;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0;
  }

  .mega-menu__panel-content .mega-menu__panel-content-inner {
    gap: 0;
    height: 488px;
    padding: 0 calc(40px - var(--mm-gutter) / 2);
    align-items: stretch;
  }

  /* A Link Column block wraps its sections in .flex.flex-col (stacked).
     In the wide desktop panel, lay those sections out side-by-side as
     real columns, matching the Figma layout. */
  .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col {
    flex-direction: row;
    gap: 0;
    flex: 1 1 auto;
  }

  /* 48px gutter between columns with the hairline rule centred in it (Figma) */
  .mega-menu__panel-content .mega-menu__panel-content-inner > .column,
  .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col > .column {
    padding-inline: calc(var(--mm-gutter) / 2);
    min-height: 0;
  }

  /* Columns are Fill (488px) in the Figma - never taller than the panel box */
  .mega-menu__panel-content .mega-menu__panel-content-inner > .column,
  .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col,
  .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col > .column {
    max-height: 488px;
  }

  .mega-menu__panel-content .mega-menu__panel-content-inner > .column:not(:first-child),
  .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col > .column + .column,
  .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col:not(:first-child) > .column:first-child {
    border-left: 1px solid var(--colors-grey-46);
  }

  .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col {
    flex: 1 1 0%;
    min-width: 0;
  }

  .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col:has(> .column:nth-child(2)) {
    flex-grow: 2;
  }

  .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col:has(> .column:nth-child(3)) {
    flex-grow: 3;
  }

  .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col > .column.mega-menu__group--links {
    flex: 1 1 0%;
    min-width: 0;
  }

  .mega-menu__panel-content .column {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* Column sizing: card columns share space evenly; intro column fixed */
  .mega-menu__panel-content .mega-menu__panel-content-inner > .column.mega-menu__group--links {
    flex: 1 1 0%;
    min-width: 0;
  }

  .mega-menu__panel-content .mega-menu__panel-content-inner > .column.mega-menu__group--boxed:not(.mega-menu__group--grid2) {
    flex-grow: 0.78;
  }

  .mega-menu__panel-content .mega-menu__panel-content-inner > .column.mega-menu__group--promo {
    flex: 0 0 300px;
    max-width: 300px;
  }

  /* ---- Section labels (teal, uppercase) ------------------------------- */
  .mega-menu__panel-content p.mega-menu__group-title {
    color: var(--brand-teal);
    font-family: var(--headline-font-family);
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semibold);
    /* Figma tracks 11% BETWEEN LETTERS but does not add it to spaces, whereas
       CSS letter-spacing applies to spaces too. Uniformly shrinking to 0.09em
       matched the total width but left the letter gaps too tight and the word
       gaps too wide. Keep the Figma's 11% and cancel it on the spaces. */
    letter-spacing: 0.11em;
    word-spacing: -0.11em;
    text-transform: uppercase;
    line-height: 1.8;
    min-height: 0;
    flex: 0 0 auto;
    margin: 0 0 30px;
  }

  /* ---- Link column → card / row list ---------------------------------- */
  .mega-menu__panel-content .mega-menu__group--links ul.mega-menu__group--links-list {
    gap: 20px;
    max-width: none;
  }

  /* Cards are Height Fill in the Figma - they share the column evenly */
  .mega-menu__panel-content .mega-menu__group--links:not(.mega-menu__group--grid2) ul.mega-menu__group--links-list > li {
    flex: 1 1 0%;
    min-height: 0;
    display: flex;
    align-items: stretch;
  }

  .mega-menu__panel-content .mega-menu__group--links:not(.mega-menu__group--grid2) ul.mega-menu__group--links-list > li > a.mega-menu__link.featured-link {
    height: 100%;
  }

  .mega-menu__panel-content .mega-menu__group--links ul.mega-menu__group--links-list > li:has(a.button) {
    flex: 0 0 auto;
  }

  .mega-menu__panel-content .mega-menu__group--links ul.mega-menu__group--links-list li {
    align-items: stretch;
  }

  /* Base item = white card, icon + label + red chevron (Figma) */
  .mega-menu__panel-content .mega-menu__group--links a.mega-menu__link.featured-link {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 24px;
    border: 1px solid #EEEEEE;
    border-radius: 16px;
    background: var(--colors-white);
    color: var(--colors-blue-800);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: border-color 0.2s var(--action-transition),
                box-shadow 0.2s var(--action-transition);
  }

  .mega-menu__panel-content .mega-menu__group--links a.mega-menu__link.featured-link:hover {
    border-color: var(--active-accent-color, var(--brand-teal));
    box-shadow: 0 8px 20px -8px rgba(16, 24, 40, 0.18);
  }

  /* About Us' "What We Offer" rows are value props, not destinations. The
     template renders them as href-less anchors so they keep the card layout
     above without being links; this puts the resting border and shadow back
     under :hover, which still matches an anchor with no href. */
  .mega-menu__panel-content .mega-menu__group--links a.mega-menu__link.featured-link.mega-menu__link--static:hover {
    border-color: #EEEEEE;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  }
  .mega-menu__link--static { cursor: default; text-decoration: none; }

  /* Rich card = item that carries a description */
  .mega-menu__panel-content .mega-menu__group--links a.mega-menu__link.featured-link:has(.menu-link__subtext) {
    padding: 24px;
  }

  /* Title-only card lists (About Us "Explore More", WWH "By Industry"):
     shorter cards, tighter rhythm - matches the Figma */
  .mega-menu__panel-content .mega-menu__group--boxed .mega-menu__group--links-list {
    gap: 20px;
  }

  .mega-menu__panel-content .mega-menu__group--boxed .mega-menu__group--links-list a.mega-menu__link.featured-link {
    padding: 16px;
    gap: 14px;
  }

  .mega-menu__panel-content .mega-menu__group--boxed a.mega-menu__link.featured-link .img-wrap,
  .mega-menu__panel-content .mega-menu__group--boxed a.mega-menu__link.featured-link .img-wrap svg,
  .mega-menu__panel-content .mega-menu__group--boxed a.mega-menu__link.featured-link .img-wrap img {
    width: 30px;
    height: 30px;
  }

  /* Title-only cards. Measured against the exports, 32px ran 7-17% under the
     Figma across both columns that use these (Who We Help "By Industry" and
     Why G&A "Why Clients Trust Us"); 37px lands them within ~5%. */
  .mega-menu__panel-content .mega-menu__group--boxed .img-wrap .material-symbols-outlined {
    font-size: 37px;
  }

  .mega-menu__panel-content .mega-menu__group--boxed a.mega-menu__link.featured-link .menu-link__text {
    letter-spacing: -0.01em;
  }

  /* Two-column card grid (e.g. Services "HR Services") */
  .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col > .column.mega-menu__group--grid2,
  .mega-menu__panel-content .mega-menu__panel-content-inner > .column.mega-menu__group--grid2 {
    flex: 1 1 460px;
    min-width: 420px;
  }

  .mega-menu__panel-content .mega-menu__group--grid2 ul.mega-menu__group--links-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: none;
  }

  /* Grid cells are 1fr, but the anchor still has to fill its cell or the
     cards come out at their content height (117/117/97 instead of 3 x 114). */
  .mega-menu__panel-content .mega-menu__group--grid2 ul.mega-menu__group--links-list > li {
    display: flex;
    align-items: stretch;
    min-height: 0;
  }

  .mega-menu__panel-content .mega-menu__group--grid2 ul.mega-menu__group--links-list > li > a.mega-menu__link.featured-link {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
  }

  /* The Figma puts the Services CTA under the grid's right-hand column */
  .mega-menu__panel-content .mega-menu__group--grid2 ul.mega-menu__group--links-list > li:has(a.button) {
    grid-column: 2;
    justify-self: stretch;
  }

  /* Three icons are coloured off-palette in the Figma - there is no
     brandColorAccent token for them, so the exact values are set here and the
     seeder tags the icon with the matching class. */
  .mega-menu__panel-content .mm-ico--yellow { color: #FFD91C; }
  .mega-menu__panel-content .mm-ico--orange { color: #EA6918; }
  .mega-menu__panel-content .mm-ico--red    { color: #C8102E; }

  /* Icon: bare 28px line art in the item's accent colour (Figma - no chip) */
  .mega-menu__panel-content .mega-menu__group--links a.mega-menu__link.featured-link .img-wrap {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 0;
    background: none;
    color: var(--active-accent-color, var(--colors-blue-800));
  }

  /* Figma renders the card icons at 36px */
  .mega-menu__panel-content .img-wrap .material-symbols-outlined {
    /* 38px: at 36px the ink measured ~5% under the Figma's */
    font-size: 38px;
  }

  /* Who We Help: "Partners & Segments" and every "By Industry" icon is red in
     the Figma. brandColorAccent has no red option (brand-default sets nothing
     and falls back to navy), so scope it here. */
  #who-we-help .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col > .column:nth-child(2) a.mega-menu__link.featured-link .img-wrap,
  #who-we-help .mega-menu__panel-content .mega-menu__group--boxed a.mega-menu__link.featured-link .img-wrap,
  #about-us .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col + .flex.flex-col a.mega-menu__link.featured-link .img-wrap {
    color: var(--brand-primary);
  }

  .mega-menu__panel-content .mega-menu__cat-card .material-symbols-outlined {
    /* Figma's tile glyphs measure 25x31 of ink; 36px renders 24x30, so these
       take 37px to land on the design's size. */
    font-size: 37px;
    color: var(--brand-primary);
  }

  /* Case Studies is the odd one out - its glyph is drawn ~10% larger than the
     other three tiles in the Figma (24x31 of ink where bookmark_flag gives
     22x28 at 38px). */
  .mega-menu__panel-content .mega-menu__cat-card .material-symbols-outlined.mm-ico--lg {
    font-size: 41px;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__minicard .material-symbols-outlined {
    /* kept for any mini-card that still uses a glyph */
    font-size: 41px;
    color: var(--brand-primary);
  }


  .mega-menu__panel-content .mega-menu__group--links a.mega-menu__link.featured-link .img-wrap svg,
  .mega-menu__panel-content .mega-menu__group--links a.mega-menu__link.featured-link .img-wrap img {
    /* 39, not 36: the exported Figma icons are drawn inside a 40x40 frame, so
       at 36px their ink came out 8-12% smaller than the design's. */
    width: 39px;
    height: 39px;
    margin: 0;
    color: var(--active-accent-color, var(--colors-blue-800));
  }

  /* Heavier line weight, per the Figma */
  .mega-menu__panel-content .mega-menu__group--links a.mega-menu__link.featured-link .img-wrap svg,
  .mega-menu__panel-content .mega-menu__group--links a.mega-menu__link.featured-link .img-wrap svg * {
    stroke-width: 2.2px;
  }

  /* Title + description block */
  .mega-menu__panel-content .mega-menu__group--links a.mega-menu__link.featured-link .menu-link__text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    white-space: normal !important;
    font-family: var(--headline-font-family);
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    /* Figma node is 21px tall for one 18px line ("Line height 100%" = auto).
       Set in px, not 1.167: 18 x 1.167 = 21.006, a fractional line box, which
       puts the baseline mid-pixel - round glyphs then round their overshoot
       upward where the Figma rounds it down, and "2026" reads as uneven. */
    line-height: 21px;
    letter-spacing: 0;
    color: var(--mm-title);
  }

  .mega-menu__panel-content .mega-menu__group--links a.mega-menu__link.featured-link .menu-link__subtext {
    font-family: var(--body-font-family);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    color: var(--mm-body);
    line-height: 1.4;
    letter-spacing: 0;
    margin-top: 0.15rem;
  }

  /* Trailing chevron — nudge to the right, vertically centered */
  /* Replace the small grey arrow with a larger red chevron */
  .mega-menu__panel-content .mega-menu__group--links a.mega-menu__link.featured-link > svg {
    display: none;
  }

  .mega-menu__panel-content .mega-menu__group--links a.mega-menu__link.featured-link::after {
    flex: 0 0 auto;
    content: "";
    align-self: center;
    margin-left: auto;
    width: 10px;
    height: 18px;
    /* Figma's chevron: a mitred point with flat-cut ends, not a rounded
       font glyph. Drawn as a filled polygon so the corners stay sharp. */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='18' viewBox='0 0 10 18'%3E%3Cpath fill='%23c8102e' d='M0%200%20L10%209%20L0%2018%20L0%2013.88%20L5.4%209%20L0%204.12%20Z'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.2s var(--action-transition);
  }

  .mega-menu__panel-content .mega-menu__group--links a.mega-menu__link.featured-link:hover::after {
    transform: translateX(3px);
  }

  /* ---- CTA (pill) links inside a column ------------------------------- */
  .mega-menu__panel-content .mega-menu__group--links a.button,
  .mega-menu__panel-content .column > a.button,
  .mega-menu__panel-content a.mega-menu__link.cta-link {
    margin-top: 1rem;
    align-self: stretch;
    text-align: center;
  }

  /* The card <li> is a flex container (so cards stretch to their slot), which
     makes align-self:stretch act on the vertical axis - a trailing CTA button
     therefore needs an explicit full width to span the column as the Figma has it. */
  .mega-menu__panel-content .mega-menu__group--links ul.mega-menu__group--links-list > li > a.button {
    flex: 1 1 auto;
    width: 100%;
  }

  /* The card list fills the column so a trailing CTA sits on the panel's
     bottom padding line, as the Figma shows it. */
  .mega-menu__panel-content .mega-menu__group--links ul.mega-menu__group--links-list {
    flex: 1 1 auto;
    min-height: 0;
  }

  .mega-menu__panel-content .mega-menu__group--links ul.mega-menu__group--links-list > li:last-child:has(a.button) {
    margin-top: auto;
  }

  .mega-menu__panel-content .mega-menu__group--cards .mega-menu__cards,
  .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__cards {
    flex: 0 0 auto;
    margin-bottom: 0;
  }

  /* Featured "View all …" style link kept text-like but teal-accented */
  .mega-menu__panel-content .column.mega-menu__group--featured a {
    color: var(--brand-primary) !important;
  }

  /* ---- Intro column (heading + copy + CTA card) ----------------------- */
  /* Promo block is repurposed as the left intro column when present */
  .mega-menu__panel-content .mega-menu__group--promo {
    max-width: 320px;
    gap: 1rem;
  }

  .mega-menu__panel-content .mega-menu__group--promo .mega-menu__promo {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 14px;
    background: var(--colors-blue-80);
  }

  .mega-menu__panel-content .mega-menu__group--promo .mega-menu__promo-image {
    border-radius: 10px;
    max-width: 48px;
  }

  .mega-menu__panel-content .mega-menu__group--promo .mega-menu__promo-content {
    color: var(--colors-blue-800);
    font-weight: var(--font-weight-semibold);
  }

  /* ---- Footer bar → lighter, right-aligned pill ----------------------- */
  .mega-menu__panel-content-footer {
    background: var(--colors-grey-50);
    border-top: 1px solid var(--colors-grey-46);
    border-radius: 0 0 16px 16px;
    color: var(--colors-blue-800);
    padding: 1rem 2.25rem;
  }

  .mega-menu__panel-content-footer a.mega-menu__link.featured-link,
  .mega-menu__panel-content-footer a.mega-menu__link.featured-link svg {
    color: var(--brand-primary);
  }

  /* ---- Card grid / posts / awards — soften to match panel ------------- */
  .mega-menu__panel-content .mega-menu__card .mega-menu__card-image {
    border-radius: 10px;
  }

  .mega-menu__panel-content .mega-menu__group--cards .mega-menu__link .menu-link__text,
  .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card .menu-link__text {
    color: var(--colors-blue-800);
    font-weight: var(--font-weight-bold);
    white-space: normal !important;
  }

  /* Card grid inside the redesigned panel: wrap, never squish below a legible width */
  .mega-menu__panel-content .mega-menu__group--cards .mega-menu__cards {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  /* Give an image card-grid column a bit more room so 2 cards fit cleanly */
  .mega-menu__panel-content .mega-menu__panel-content-inner > .column.mega-menu__group--cards {
    flex: 1 1 300px;
    min-width: 260px;
  }

  /* Thumbnail-row columns need space for a 152px thumb + copy */
  .mega-menu__panel-content .mega-menu__panel-content-inner > .column.mega-menu__group--cards-posts,
  .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col > .column.mega-menu__group--cards-posts {
    flex: 1 1 0%;
    min-width: 300px;
  }

  /* Posts block ("Popular Topics") → thumbnail with title + "Read more" stacked */
  .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card {
    display: grid;
    grid-template-columns: 187px 1fr;
    column-gap: 14px;
    /* an inherited 16px gap was padding every story row out by 16px, which
       pushed Why G&A's CTA past the bottom of the panel */
    row-gap: 0;
    align-items: start;
  }

  .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card .mega-menu__card-image {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 187px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
  }

  .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card .mega-menu__card-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Play badge centred over a video thumbnail (Why G&A "Client Stories") */
  .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card .mega-menu__play-icon-container {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
  }

  .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card .mega-menu__play-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
  }

  /* Title + optional description in the text cell */
  .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card-content > span:first-child {
    display: -webkit-box;
    /* the Figma's third Popular Topics title runs to four lines, and a 3-line
       clamp was truncating real article titles with an ellipsis */
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--headline-font-family);
    /* Figma: 13px / 500 with an 18px line pitch (was 16px/1.3, which made
       these titles a full step larger than the design). */
    font-size: 0.8125rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.385;
    color: var(--mm-title);
  }

  .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.3rem;
    font-family: var(--body-font-family);
    font-size: 0.875rem;
    font-weight: var(--font-weight-normal);
    line-height: 1.4;
    color: var(--mm-body);
  }

  .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card .mega-menu__card-content {
    grid-column: 2;
    grid-row: 1;
  }

  .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card-date {
    display: none;
  }

  .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card .mega-menu__link {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start;
    align-self: start;
    margin-top: 0.5rem;
    gap: 0.3rem;
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--brand-primary);
  }

  .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card .mega-menu__link.featured-link > svg {
    display: none;
  }

  .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card .mega-menu__link.featured-link::after {
    content: "";
    display: block;
    /* must be reset: a legacy rule leaves this absolute, which pinned the
       chevron to the card's top-left corner, on top of the thumbnail */
    position: static;
    align-self: center;
    flex: 0 0 auto;
    width: 8px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='18' viewBox='0 0 10 18'%3E%3Cpath fill='%23c8102e' d='M0%200%20L10%209%20L0%2018%20L0%2013.88%20L5.4%209%20L0%204.12%20Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card .mega-menu__link .menu-link__text {
    color: var(--brand-primary);
  }

  /* Thumbnail, title and Read more are one click target. The shared overlay
     uses ::after, but this layout has already claimed ::after for the red
     chevron beside Read more (and has to force it back to static), so the
     hit area goes on ::before instead. It spans the card because .mega-menu__card
     is the nearest positioned ancestor. */
  .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card .mega-menu__link.mega-menu__link--overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__topics-cta-btn {
    display: block;
    margin-top: auto;
    text-align: center;
  }

  .mega-menu__panel-content .mega-menu__group--cards .mega-menu__cards-cta-btn {
    display: block;
    margin-top: auto;
    text-align: center;
  }

  .mega-menu__panel-content .mega-menu__group--cards .mega-menu__card .mega-menu__link {
    align-items: flex-start;
    gap: 0.4rem;
  }

  .mega-menu__panel-content .mega-menu__group--awards .mega-menu__awards .mega-menu__award img {
    width: 84px;
    height: 84px;
  }

  /* ---- Intro column: headline + copy + category grid ------------------ */
  .mega-menu__panel-content .column.mega-menu__group--intro {
    flex: 0 0 340px;
    max-width: none;
    gap: 0;
  }

  /* Exact per-panel column widths from the Figma (content + column padding).
     who-we-help  284 / 327 / 283 / 242   (gutter 48)
     services     487 / 724 hug          (gutter 80)
     why-g-a      387 / 349 / 386        (gutter 80) */
  #who-we-help .mega-menu__panel-content .column.mega-menu__group--intro {
    /* 328, not 332: the Figma's own column widths total 2px more than the
       1360 frame, and widening By Business Size for its wrap adds 2 more.
       Taking all 4px off the intro keeps the other three columns exact - and
       the intro's own line breaks are pinned by max-width, so nothing moves. */
    flex: 0 1 328px;
  }

  #who-we-help .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col > .column:first-child {
    /* 380, not 375: the description box has to reach 192px or "100+
       Employees" wraps to four lines where the Figma has three. 378 is the
       threshold; 378 clears it. */
    flex: 0 1 378px;
  }

  #who-we-help .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col > .column:nth-child(2) {
    flex: 0 1 332px;
  }

  #who-we-help .mega-menu__panel-content .mega-menu__panel-content-inner > .column.mega-menu__group--boxed {
    flex: 0 1 290px;
  }

  #hr-outsourcing-solutions .mega-menu__panel-content .column.mega-menu__group--intro {
    flex: 0 1 567px;
  }

  #why-g-a .mega-menu__panel-content .column.mega-menu__group--intro {
    flex: 0 1 467px;
  }

  #why-g-a .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col > .column:first-child,
  #why-g-a .mega-menu__panel-content .mega-menu__panel-content-inner > .column.mega-menu__group--boxed {
    flex: 0 1 429px;
  }

  #why-g-a .mega-menu__panel-content .mega-menu__panel-content-inner > .column.mega-menu__group--cards-posts {
    flex: 0 1 466px;
  }

  /* about-us 446 / 307 / 365  and  resources 401 / 367 / 350 (gutter 80),
     both read off the Figma Properties panel. */
  #about-us .mega-menu__panel-content .column.mega-menu__group--intro {
    flex: 0 1 526px;
  }

  /* About Us puts each section in its own .flex.flex-col wrapper, and the
     wrapper (not the column) is the flex item of the panel row - so the width
     has to go on the wrapper. */
  #about-us .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col {
    flex: 0 1 389px;
  }

  #about-us .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col + .flex.flex-col {
    /* 451, not 447: "Nationwide Service" needs a 268px description box to set
       on two lines as the Figma does, and 447 only yields 265. */
    flex: 0 1 451px;
  }

  #about-us .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col > .column {
    flex: 1 1 auto;
  }

  /* "What We Offer" carries three 3-line descriptions - a 14px list gap keeps
     it inside the fixed 488px content box. */
  #about-us .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col + .flex.flex-col ul.mega-menu__group--links-list {
    gap: 13px;
  }

  /* No chevron on these cards in the Figma; removing it also gives the
     descriptions the width to set on two lines rather than three. */
  #about-us .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col + .flex.flex-col a.mega-menu__link.featured-link::after {
    content: none;
  }

  /* Figma leaves 25px between the last card and the CTA (not the 13px list
     gap), which is what holds the three cards at 110px rather than 113px. */
  #about-us .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col + .flex.flex-col ul.mega-menu__group--links-list > li:has(a.button) {
    margin-top: 12px;
  }

  /* What We Offer, Figma revision: the three rows sit in ONE blush panel
     rather than three separate white cards. Each row keeps its layout and
     height; it drops its own border, shadow and radius, and the list gap
     closes so the pink runs continuously. The first and last rows carry the
     panel's corners. The "About G&A Partners" CTA stays outside, below. */
  #about-us .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col + .flex.flex-col ul.mega-menu__group--links-list {
    gap: 0;
  }

  #about-us .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col + .flex.flex-col ul.mega-menu__group--links-list > li > a.mega-menu__link.featured-link.mega-menu__link--static,
  #about-us .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col + .flex.flex-col ul.mega-menu__group--links-list > li > a.mega-menu__link.featured-link.mega-menu__link--static:hover {
    background: var(--brand-muted-coral);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #about-us .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col + .flex.flex-col ul.mega-menu__group--links-list > li:first-child > a.mega-menu__link.featured-link.mega-menu__link--static {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }

  #about-us .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col + .flex.flex-col ul.mega-menu__group--links-list > li:last-child > a.mega-menu__link.featured-link.mega-menu__link--static,
  #about-us .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col + .flex.flex-col ul.mega-menu__group--links-list > li:has(+ li > a.button) > a.mega-menu__link.featured-link.mega-menu__link--static {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  /* Figma: ~30px between the bottom of the panel and the CTA. */
  #about-us .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col + .flex.flex-col ul.mega-menu__group--links-list > li:has(a.button) {
    margin-top: 30px;
  }

  #resources .mega-menu__panel-content .column.mega-menu__group--intro {
    flex: 0 1 481px;
  }

  #resources .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col > .column:first-child {
    flex: 0 1 449px;
  }

  #resources .mega-menu__panel-content .mega-menu__panel-content-inner > .column.mega-menu__group--cards-posts {
    flex: 0 1 430px;
  }

  /* The Figma's 20px card gap assumes its own (slightly shorter) copy. These
     four columns carry a line more of CMS copy, so they tighten to 16px/12px
     to stay inside the fixed 488px content box. */
  #who-we-help .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col > .column:first-child ul.mega-menu__group--links-list {
    gap: 18px;
  }

  #who-we-help .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col > .column:nth-child(2) ul.mega-menu__group--links-list {
    gap: 18px;
  }

  #who-we-help .mega-menu__panel-content .mega-menu__panel-content-inner > .column.mega-menu__group--boxed ul.mega-menu__group--links-list {
    gap: 19px;
  }

  #hr-outsourcing-solutions .mega-menu__panel-content .mega-menu__group--grid2 .mega-menu__group-title {
    margin-bottom: 25px;
  }

  #hr-outsourcing-solutions .mega-menu__panel-content .mega-menu__group--grid2 ul.mega-menu__group--links-list {
    gap: 15px 23px;
    /* Figma has three equal card rows plus an auto row for the CTA. Using
       grid-auto-rows: 1fr sized the CTA's row equally too, which squashed the
       cards to 99px. */
    grid-template-rows: repeat(3, 1fr) auto;
  }

  #about-us .mega-menu__panel-content .mega-menu__group--boxed ul.mega-menu__group--links-list {
    gap: 13px;
  }

  #resources .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col > .column ul.mega-menu__group--links-list {
    gap: 19px;
  }

  /* Why G&A's story list did not fill its column, so the three rows packed to
     the top and the CTA floated 30px above the panel's bottom edge. A 26px row
     gap plus a bottom-pinned CTA puts all three rows within 3px of the Figma
     and the CTA exactly on it. (space-between was tried first: it nails the
     CTA but leaves row 3 15px low, because the Figma's own gaps are uneven.) */
  #why-g-a .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__cards {
    row-gap: 26px;
  }

  #why-g-a .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__cards-cta-btn {
    margin-top: auto;
  }

  /* Story cards are sized differently in the two panels that use them.
     Resources (authoritative, read off its SVG text nodes): title 13px/500,
     no description. Why G&A: title 14px (its "G-Con Manufacturing" measures
     144px of ink against 134px at 13px) and a 13px description, whose 17px
     line pitch confirms it. The base rules carry the Resources values. */
  #why-g-a .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card-content > span:first-child {
    font-size: 0.875rem;
    line-height: 1.3;
  }

  #why-g-a .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card-desc {
    font-size: 0.8125rem;
    line-height: 1.3;
  }

  /* About Us "Explore More": the Figma sizes these five icons individually
     rather than on one scale, so they are set per row. Measured ink against
     the export: Our Leadership 24x24 (ours 26x27 at 39px), Our Values 21x30
     (exact at the base size), Media Center 31x24 (28x22), Locations 25x30
     (22x27), Careers 31x29 (28x26). Row order is fixed by the design. */
  #about-us .mega-menu__panel-content .mega-menu__group--boxed ul.mega-menu__group--links-list > li:nth-child(1) a.mega-menu__link .img-wrap svg {
    width: 37px;
    height: 37px;
  }

  #about-us .mega-menu__panel-content .mega-menu__group--boxed ul.mega-menu__group--links-list > li:nth-child(3) a.mega-menu__link .img-wrap .material-symbols-outlined {
    font-size: 35px;
  }

  #about-us .mega-menu__panel-content .mega-menu__group--boxed ul.mega-menu__group--links-list > li:nth-child(4) a.mega-menu__link .img-wrap .material-symbols-outlined {
    font-size: 36px;
  }

  #about-us .mega-menu__panel-content .mega-menu__group--boxed ul.mega-menu__group--links-list > li:nth-child(5) a.mega-menu__link .img-wrap .material-symbols-outlined {
    font-size: 36px;
  }

  /* "Brokers & Partners" is the one card icon in this column that runs over:
     the Figma has it at 36x30 of ink where 38px gives 38x32. Private Equity
     below it already matches exactly, so this is scoped to the first row. */
  #who-we-help .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col > .column:nth-child(2) ul.mega-menu__group--links-list > li:nth-child(1) a.mega-menu__link .img-wrap .material-symbols-outlined {
    font-size: 36px;
  }

  /* Card-title tracking is not uniform in the Figma: the description cards
     in Who We Help / Services sit at 0, Who We Help's title-only "By
     Industry" cards at -0.01em, and Resources' featured cards at -0.02em. */
  #resources .mega-menu__panel-content a.mega-menu__link.featured-link .menu-link__text {
    letter-spacing: -0.02em;
  }

  #who-we-help .mega-menu__panel-content .mega-menu__group--boxed a.mega-menu__link .menu-link__text {
    letter-spacing: -0.01em;
  }

  /* ---- Figma text-node widths -----------------------------------------
     Several text nodes in the Figma are narrower than the box they sit in -
     the designer sized them by hand - so the design breaks lines earlier (or
     in one case later) than a full-width box does. Every value below is the
     midpoint of the range of widths that reproduces the Figma's exact line
     breaks, found by scanning widths against the exported frames rather than
     eyeballing. The window is noted so the intent survives a copy change. */

  #hr-outsourcing-solutions .mega-menu__panel-content .mega-menu__intro-title {
    max-width: 443px;    /* breaks before "off"; window 415-471 */
  }

  #hr-outsourcing-solutions .mega-menu__panel-content .mega-menu__intro-copy {
    max-width: 431px;    /* breaks after "three"; window 414-448 */
  }

  #why-g-a .mega-menu__panel-content .mega-menu__intro-copy {
    max-width: 365px;    /* window 351-380 */
  }

  #who-we-help .mega-menu__panel-content .mega-menu__intro-cta p:not(.mega-menu__intro-cta-title) {
    max-width: 210px;    /* breaks after "fits"; window 194-227 */
  }

  /* Why G&A's title-only cards wrap onto two lines in the Figma
     ("NPS & Client / Satisfaction"), which needs ~153px, not the 239px the
     card gives. The chevron stays hard right, so the slack is invisible. */
  #why-g-a .mega-menu__panel-content .mega-menu__group--boxed a.mega-menu__link .menu-link__text {
    max-width: 153px;    /* window 114-193 for all four labels */
  }

  /* All six Services descriptions break as the Figma has them at 185px */
  #hr-outsourcing-solutions .mega-menu__panel-content a.mega-menu__link.featured-link .menu-link__subtext {
    max-width: 185px;    /* window 181-189 */
  }

  /* Resources' three featured descriptions. Narrow window (208-209) because
     card 1 fits "are" on line one at 210, so there is little room either way. */
  #resources .mega-menu__panel-content a.mega-menu__link.featured-link .menu-link__subtext {
    max-width: 208px;
  }

  /* About Us "What We Offer" is the one column where no single width works -
     its three text nodes are 268 / 268 / 250 in the Figma. The first two take
     the full box; the third is pinned. */
  #about-us .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col + .flex.flex-col ul.mega-menu__group--links-list > li:nth-child(3) .menu-link__subtext {
    max-width: 250px;
  }

  /* Same column: the Figma sets these card titles at 16px, not the 18px the
     other panels use (measured 149px vs 168px of ink on "Nationwide
     Service"), and puts 16px between icon and text rather than 20px. */
  #about-us .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col + .flex.flex-col a.mega-menu__link.featured-link {
    gap: 14px;
  }

  #about-us .mega-menu__panel-content .mega-menu__panel-content-inner > .flex.flex-col + .flex.flex-col a.mega-menu__link.featured-link .menu-link__text {
    font-size: 1rem;
    line-height: 1.3;
  }

  /* Why G&A's story thumbs are smaller than Resources' in the Figma */
  #why-g-a .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card {
    grid-template-columns: 165px 1fr;
  }

  #why-g-a .mega-menu__panel-content .mega-menu__group--cards-posts .mega-menu__card .mega-menu__card-image {
    width: 165px;
    height: 95px;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-title {
    font-family: var(--headline-font-family);
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.02em;
    color: var(--mm-title);
    text-transform: none;
    min-height: 0;
    margin: 0 0 20px;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-title .accent {
    color: var(--brand-primary);
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-copy {
    font-family: var(--body-font-family);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    /* Figma pitch is 22px; 1.6 on 14px computes to 22.4 and rounds to 23,
       drifting a pixel per line down the paragraph. */
    line-height: 22px;
    letter-spacing: 0;
    color: var(--mm-body);
    margin: 0 0 20px;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-cta-btn {
    margin-top: 0.5rem;
    align-self: flex-start;
  }

  /* Intro "Top Awards & Distinctions" card (About Us) */
  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-awards {
    /* 1.6875rem sits the panel at y198 in the column, as the Figma has it */
    margin-top: 1.6875rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--brand-muted-blue-sky);
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-awards-title {
    color: var(--brand-teal);
    font-family: var(--headline-font-family);
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semibold);
    /* Figma tracks 11% BETWEEN LETTERS but does not add it to spaces, whereas
       CSS letter-spacing applies to spaces too. Uniformly shrinking to 0.09em
       matched the total width but left the letter gaps too tight and the word
       gaps too wide. Keep the Figma's 11% and cancel it on the spaces. */
    letter-spacing: 0.11em;
    word-spacing: -0.11em;
    line-height: 1.8;
    text-transform: uppercase;
    margin: 0 0 2rem;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-awards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    align-items: center;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-awards-grid img {
    width: 100%;
    height: 103px;
    object-fit: contain;
    background: var(--colors-white);
    border-radius: 8px;
    padding: 6px;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-awards-link {
    display: inline-block;
    margin-top: 1.4375rem;
    color: var(--colors-blue-800);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-small);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* Intro PEO/ASO/HCM mini-grid + Compare card (Services) */
  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-minigrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin: 0.7rem 0 2.25rem;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__minicard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    /* Figma: 154px tall. The contents are not quite centred - they sit 5px
       lower, which an extra 9px of top padding reproduces. */
    height: 154px;
    justify-content: center;
    padding: 23px 0.4rem 16px;
    border: 1px solid var(--colors-grey-46);
    border-radius: 12px;
    color: var(--colors-blue-800);
    transition: border-color 0.2s var(--action-transition), box-shadow 0.2s var(--action-transition);
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__minicard:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 6px 16px -6px rgba(16, 24, 40, 0.16);
  }

  /* PEO / ASO / HCM are exported Figma artwork (30x33, 30x21, 37x30). Each
     carries its own width/height, so no width is forced here - a 26px square
     used to squash all three to the same box. The 35px height gives all three
     a uniform icon area (the SVGs letterbox inside it via preserveAspectRatio)
     so the three titles line up as they do in the Figma. */
  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__minicard svg {
    display: block;
    height: 35px;
    color: var(--brand-primary);
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__minicard-title {
    font-weight: var(--font-weight-bold);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__minicard-sub {
    /* 14px, not 11: "Full service" measures 70px of ink in the Figma against
       54 at 11px, and "HR tech + support" 112 against 87. The -4px pulls the
       title-to-sub gap to the Figma's 18px (the card's 10px gap is set by the
       icon-to-title distance). */
    font-size: 0.875rem;
    /* 500 at the client's request - these were inheriting 300, which read too
       light. The Figma's own ink matches 400; 500 is a deliberate step up. */
    font-weight: var(--font-weight-medium);
    margin-top: -4px;
    color: var(--colors-grey-600);
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-compare {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    /* 33px on the right: the Figma's arrow sits at x483 in a strip ending at
       x527, where 1.15rem put it at 505. */
    padding: 1rem 33px 1rem 1.15rem;
    border-radius: 12px;
    /* Figma: 116px tall, flush with the bottom of the intro column */
    min-height: 116px;
    background: var(--brand-muted-blue-sky);
    color: var(--colors-blue-800);
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-compare-title {
    display: block;
    /* Figma ink is 200px on "Compare HR Solutions"; 18px gave 190 */
    font-size: 1.1875rem;
    font-weight: var(--font-weight-bold);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-compare-sub {
    display: block;
    font-size: var(--font-size-small);
    /* 500 at the client's request (was inheriting 300; the Figma matches 400) */
    font-weight: var(--font-weight-medium);
    color: var(--colors-grey-600);
    /* 10px, not 4: client asked for 6px more air under the underlined title */
    margin-top: 10px;
  }

  /* The Figma gives this strip the same mitred 11x18 arrow as the cards; the
     markup's inline SVG renders a 4x7 thin stroke, so it is swapped for the
     shared chevron. */
  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-compare svg {
    display: none;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-compare::after {
    content: "";
    flex: 0 0 auto;
    /* bigger than the card chevrons: the Figma draws this one at 11x18 of ink
       where the cards are 9x16 (which a 10x18 box reproduces exactly). */
    width: 12px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='18' viewBox='0 0 10 18'%3E%3Cpath fill='%23c8102e' d='M0%200%20L10%209%20L0%2018%20L0%2013.88%20L5.4%209%20L0%204.12%20Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  /* Intro stat cards + testimonial (Why G&A) */
  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin: 0.15rem 0 1.35rem;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-stats {
    gap: 0.75rem;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-stat {
    padding: 0.8rem 1.15rem;
    border-radius: 10px;
    background: var(--colors-blue-80);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-stat-value {
    font-family: var(--headline-font-family);
    font-size: 1.375rem;
    font-weight: var(--font-weight-bold);
    color: var(--brand-primary);
    line-height: 1;
    flex: 0 0 auto;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-stat-label {
    font-size: 0.8125rem;
    color: var(--colors-grey-600);
    line-height: 1.35;
    flex: 1 1 auto;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-quote-label {
    color: var(--brand-teal);
    font-family: var(--headline-font-family);
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semibold);
    /* Figma tracks 11% BETWEEN LETTERS but does not add it to spaces, whereas
       CSS letter-spacing applies to spaces too. Uniformly shrinking to 0.09em
       matched the total width but left the letter gaps too tight and the word
       gaps too wide. Keep the Figma's 11% and cancel it on the spaces. */
    letter-spacing: 0.11em;
    word-spacing: -0.11em;
    line-height: 1.8;
    text-transform: uppercase;
    /* Figma leaves 24px between this label's baseline row and the quote
       panel's top edge; 0.6rem left only 18. */
    margin: 0 0 1rem;
  }

  /* DELIBERATE DEVIATION FROM THE FIGMA (client request, 2026-09-10):
     "HOW G&A SHOWS UP" and its quote panel are pinned to the bottom of the
     intro column so all three columns bottom-align. The Figma leaves 8px of
     slack under the panel; this closes it. Remove this rule to go back to the
     design's spacing. */
  #why-g-a .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-quote-label {
    margin-top: auto;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-quote {
    display: grid;
    grid-template-columns: auto 1fr;
    /* Figma: mark 40px in from the panel's left edge, 21px before the text */
    column-gap: 21px;
    align-items: start;
    /* 28px on top: the Figma sets the mark and the quote's first line 33px
       below the panel's top edge. */
    padding: 28px 1.4rem 1.25rem 40px;
    border-radius: 12px;
    background: var(--brand-muted-coral);
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-quote > .mega-menu__intro-quote-mark {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-quote > .mega-menu__intro-quote-text,
  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-quote > .mega-menu__intro-quote-author {
    grid-column: 2;
  }

  /* The Figma's quote mark is vector artwork, not a type glyph - 23 x 20.5,
     exported out of the Why G&A frame (public/media/mm-icons/Quote-Mark.svg).
     A &ldquo; in Work Sans bold came out 53 x 39 and the wrong shape. */
  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-quote-mark {
    display: block;
    width: 23px;
    height: 21px;
    margin-top: 5px;
    color: var(--brand-primary);
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-quote-mark svg {
    display: block;
    width: 23px;
    height: 21px;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-quote-text {
    font-family: var(--body-font-family);
    color: var(--colors-blue-800);
    font-weight: var(--font-weight-normal);
    /* Figma sets this roman, not italic */
    font-style: normal;
    /* Figma: 14px on a 20px line pitch. At 15px the first line measured
       278px of ink against the design's 259. */
    line-height: 20px;
    font-size: 0.875rem;
    margin: 0 0 0.3rem;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-quote-author {
    font-weight: var(--font-weight-bold);
    color: var(--colors-blue-800);
    font-size: 0.875rem;
    margin: 0;
  }

  .mega-menu__panel-content .mega-menu__cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 15px;
    flex: 1 1 auto;
  }

  .mega-menu__panel-content .mega-menu__cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    text-align: center;
    padding: 1.15rem 0.75rem;
    border: 1px solid var(--colors-grey-46);
    border-radius: 12px;
    background: var(--colors-white);
    color: var(--colors-blue-800);
    /* Figma: 16px / 500 / -0.01em nominally, but its ink measures 111px on
       "Guides & Tools" where 16px gives 106 - the tile component is scaled
       slightly in the design, so 17px is what actually matches. */
    font-size: 1.0625rem;
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.01em;
    transition: border-color 0.2s var(--action-transition),
                box-shadow 0.2s var(--action-transition);
  }

  .mega-menu__panel-content .mega-menu__cat-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 6px 16px -6px rgba(16, 24, 40, 0.16);
  }

  .mega-menu__panel-content .mega-menu__cat-card svg {
    width: 30px;
    height: 30px;
    color: var(--brand-primary);
    stroke-width: 2.2px;
  }

  .mega-menu__panel-content .mega-menu__cat-card svg * {
    stroke-width: inherit;
  }

  /* label only - this was underlining the icon glyph's span too, drawing a
     stray red rule between the icon and the label */
  .mega-menu__panel-content .mega-menu__cat-card span:not(.material-symbols-outlined) {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* ---- Intro CTA card (light blue) ------------------------------------ */
  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-cta {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Figma puts the card top at y232 of the intro column (16px lower than
       the copy's own margin leaves it), which also gives it the right height */
    margin-top: 16px;
    /* Solved from the Figma's ink positions with the mark at its correct
       height: mark y306 x71, title y353, copy y388, button y456. */
    padding: 35px 24px 28px 30px;
    border-radius: 16px;
    background: var(--brand-muted-blue-sky);
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-cta p {
    font-family: var(--body-font-family);
    color: var(--mm-body);
    font-size: 0.9375rem;
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    letter-spacing: 0;
    /* 26px below: puts the button's top edge on the Figma's y456 */
    margin: 0 0 26px;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-cta .mega-menu__intro-cta-title {
    font-family: var(--headline-font-family);
    font-weight: var(--font-weight-medium);
    font-size: 1.25rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--mm-title);
    /* 18px above: puts the title's ink on the Figma's y353 */
    margin: 18px 0 0.6rem;
  }

  /* The crop window and the image scale together. Figma's mark is 37x25 of
     ink; at 58x42 / 48px tall ours came out 58x40, so everything is x0.63. */
  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-cta-mark {
    display: block;
    width: 37px;
    height: 27px;
    overflow: hidden;
    flex: 0 0 auto;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-cta-mark img {
    height: 30px;
    width: auto;
    max-width: none;
    display: block;
  }

  .mega-menu__panel-content .mega-menu__group--intro .mega-menu__intro-cta .button.button--large {
    display: block;
    /* Figma: 217 x 44 - narrower and shorter than the column CTAs */
    width: 217px;
    padding-block: 0.775rem;
    text-align: center;
  }

  /* ---- Popular topics: thumbnail rows --------------------------------- */
  .mega-menu__panel-content .column.mega-menu__group--topics {
    flex: 1 1 300px;
  }

  .mega-menu__panel-content .mega-menu__topics {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
  }

  .mega-menu__panel-content .mega-menu__topic {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
  }

  .mega-menu__panel-content .mega-menu__topic-thumb {
    flex: 0 0 94px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--colors-grey-50);
  }

  .mega-menu__panel-content .mega-menu__topic-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mega-menu__panel-content .mega-menu__topic-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .mega-menu__panel-content .mega-menu__topic-title {
    font-weight: var(--font-weight-bold);
    color: var(--colors-blue-800);
    font-size: var(--font-size-small);
    line-height: 1.3;
  }

  .mega-menu__panel-content .mega-menu__topic-more {
    color: var(--brand-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-small);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .mega-menu__panel-content .mega-menu__group--topics .button {
    margin-top: 1.35rem;
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  /* The intro heading field is shared with the mobile drill-down, which carries
     `<br class="mm-br">` for the breaks the Figma draws on the phone screens.
     The desktop column is wide enough to wrap on its own, so the marker is
     inert here. */
  .mega-menu__intro-title .mm-br { display: none; }
}

/* ---------------------------------------------------------------------------
   MOBILE MEGAMENU (2026) - drill-down to match the Figma "M | Nav" flow.
   Root = flat list of panel titles with a red chevron-right; tapping pushes a
   sub-screen headed by a red "<" back row, opening with the panel's intro
   heading and blue CTA card, then its sections. The inner accordions the old
   mobile markup used are forced open here - the design shows every section
   expanded under a teal label, so the checkboxes stay in the DOM but do
   nothing.
   --------------------------------------------------------------------------- */
@media (max-width: 1023px) {

  /* ---- measured against the exported 375px frames ----
     mobile-nav-menu 375x699, who we help 375x697. Values below are read off
     those PNGs (pixel rows/columns), not eyeballed:
       root rows      64px pitch, 2px #F2F3F5 dividers full-bleed, label x=24
       panel gutters  16px (cards span x16-358)
       intro heading  60px band of #F8FAFC, full-bleed, y194-253
       back row       1px #E7E9ED divider under it, full-bleed
       band pills     45px tall, 11px apart
     The drawer applies its own 20px padding, so it is zeroed here and each
     child carries the inset the design actually uses. */
  /* The drawer carries `padding: var(--container-padding)` (20px) from
     .site_header.alternative--header .block--header .block__nav--mega-menu.open,
     and `.mobile-nav li` adds `padding: 0 12px` - together they were insetting
     every row by 32px, so the dividers could not run full-bleed as the export
     shows. Both are neutralised here; each element then carries the inset the
     design actually uses (24px on root rows, 16px in panel screens). The
     override has to out-specify a five-class selector, hence the long form. */
  body.mm-mobile-open .block__off-canvas,
  body.mm-mobile-open .sub-menu__nav { padding-left: 0; padding-right: 0; }

  body.mm-mobile-open .site_header.alternative--header .block--header .block__nav--mega-menu.open {
    padding-left: 0;
    padding-right: 0;
    /* the drawer's 20px top padding pushed the back row down; the export has it
       flush under the header divider (header ends y133, back row starts y134) */
    padding-top: 0;
    /* This element - not .block__off-canvas - is the drawer's scroll
       container, so the clearance for the pinned Contact Us / Employee
       Support band has to sit here or the last rows cannot be scrolled out
       from behind it. The band measures 148px. */
    padding-bottom: calc(168px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-nav .mobile-nav__root > li,
  .mobile-nav .mobile-nav__screen > li { padding: 0; }

  /* `.mobile-nav li { padding: 0 12px }` also reaches every list inside a
     panel screen, pushing the section labels and row cards off the 16px
     gutter (they measured x=12 and x=24 against the export's 16). Zero it
     here and let .mobile-nav__panel's own 16px margin set the inset. */
  .mobile-nav .mobile-nav__panel { padding: 0; margin: 0 16px; }

  /* The design is not uniform here: Who We Help and Services sit their section
     rows on a 16px gutter, Why G&A / About Us / Resources on 20px. Measured
     from the container strokes in the exports - Why G&A's trust card runs
     x20-354 where Who We Help's By Industry card runs x16-358. */
  .mobile-nav [data-screen="why-g-a"] .mobile-nav__panel,
  .mobile-nav [data-screen="about-us"] .mobile-nav__panel,
  .mobile-nav [data-screen="resources"] .mobile-nav__panel { margin: 0 20px; }

  .mobile-nav [data-screen="resources"] .mobile-nav__extras { margin-left: 20px; margin-right: 20px; }

  /* Resources leaves more air under the tile grid than the other panels do
     before its first section label (export: 37px of ink-to-tile gap vs ~28). */
  .mobile-nav [data-screen="resources"] .mobile-nav__extras { margin-bottom: 32px; }

  /* Where the first element under the heading is a tinted card, the design
     butts it straight up against the band (Why G&A's stat pills start 2px
     below it, About Us' awards card 1px); the panels that open on white
     content keep the 20px gap. */
  .mobile-nav [data-screen="why-g-a"] .mobile-nav__intro-title,
  .mobile-nav [data-screen="about-us"] .mobile-nav__intro-title { margin-bottom: 2px; }
  .mobile-nav .mobile-nav__panel ul { padding: 0; margin: 0; }
  .mobile-nav .mobile-nav__panel li { padding: 0; }

  .mobile-nav { --mm-teal: #0D9488; }

  .mobile-nav__screen { display: none; }
  .mobile-nav__screen.is-current { display: block; }
  .mobile-nav[data-dir="fwd"] .mobile-nav__screen.is-current { animation: mm-slide-from-right 0.4s ease-out; }
  .mobile-nav[data-dir="back"] .mobile-nav__screen.is-current { animation: mm-slide-from-left 0.4s ease-out; }

  @keyframes mm-slide-from-right {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes mm-slide-from-left {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: none; }
  }

  /* ---- root list ---- */
  .mobile-nav__root { margin: 0; padding: 0; list-style: none; }

  .mobile-nav__row {
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 28px 0 24px;
    background: none;
    border: 0;
    border-bottom: 2px solid #F2F3F5;
    text-align: left;
    /* Matched against the export by rendering candidates to a canvas and
       scoring pixel MSE against the cropped Figma ink, rather than by width
       alone - width on its own cannot separate size from weight or tracking.
       Best fit for both "Who We Help" and "Resources": Work Sans 600 @17.5. */
    font-family: var(--headline-font-family);
    font-size: 17.5px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0;
    color: var(--mm-title, #0A1B3D);
    cursor: pointer;
  }

  .mobile-nav__row > svg { color: var(--brand-primary); flex: none; }

  /* ---- back row ---- */
  .mobile-nav__back {
    /* sticks to the top of the drawer's scroll area so the panel title stays
       visible while the rows scroll under it. The scroll container is
       .block__nav--mega-menu; nothing between it and this button clips, so
       plain sticky works. Needs an opaque background - it was `none`. */
    position: sticky;
    top: 0;
    z-index: 5;
    width: 100%;
    height: 59px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 20px;
    margin-bottom: 0;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #E7E9ED;
    text-align: left;
    font-family: var(--headline-font-family);
    font-size: 17.5px;   /* matches the root rows in the export */
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0;
    color: var(--mm-title, #0A1B3D);
    cursor: pointer;
  }

  .mobile-nav__back > svg { color: var(--brand-primary); flex: none; }

  /* ---- panel intro ---- */
  /* full-bleed tinted band behind the heading (y194-253 in the export) */
  .mobile-nav__intro-title {
    /* NOT flex: the heading is rich text with a red <span>, and flex turns
       each inline child into a flex item, which collapses the whitespace
       between them - it rendered as "HR support thatgrowswith you.".
       Block plus padding gives the same 60px band. */
    display: block;
    min-height: 60px;
    margin: 0 0 1.25rem;
    /* 16px bottom too: the export's band is 61 tall for one line and 84 for
       two (Services), which only works with symmetric padding - with no
       bottom padding the two-line band came out 69. */
    padding: 16px;
    background: #F8FAFC;
    font-family: var(--headline-font-family);
    font-size: 20.5px;   /* canvas-matched: Work Sans 600 @20.5, -0.3px */
    letter-spacing: -0.3px;
    line-height: 1.3;
    font-weight: var(--font-weight-semibold);
    color: var(--mm-title, #0A1B3D);
  }

  /* everything else in a panel screen sits on the 16px gutter */
  .mobile-nav__panel,
  .mobile-nav__extras,
  .mobile-nav__intro-cta { margin-left: 16px; margin-right: 16px; }

  .mobile-nav__intro-title span,
  .mobile-nav__intro-title strong { color: var(--brand-primary); }

  /* the deliberate breaks the Figma draws in the mobile headings */
  .mobile-nav__intro-title .mm-br { display: block; }

  /* The mark sits on the same row as "Ready to get started?" in the design
     (export: mark ink y295-310, title ink y297-312), not stacked above it.
     The markup is shared with the desktop card, so the row is made here with
     grid rather than by moving the span. */
  .mobile-nav__intro-cta {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    background: var(--brand-muted-blue-sky, #DBEAFE);
    border-radius: 12px;
    padding: 20px 20px 15px;   /* export: card x16-358 y276-407, ink starts x36 */
    /* 45, not 28: the export puts the first row card 79px below the card
       (y407 -> y486) and the section label's own 24px top margin collapses
       into this one, so the whole gap is carried here. */
    margin-bottom: 45px;
  }

  .mobile-nav__intro-cta > .mobile-nav__intro-cta-mark { grid-column: 1; grid-row: 1; align-self: start; margin-top: 1px; }
  .mobile-nav__intro-cta > .mobile-nav__intro-cta-title { grid-column: 2; grid-row: 1; align-self: center; }
  .mobile-nav__intro-cta > p:not(.mobile-nav__intro-cta-title) { grid-column: 1 / -1; }
  .mobile-nav__intro-cta > .button { grid-column: 1 / -1; justify-self: start; }

  .mobile-nav__intro-cta-mark { display: block; width: 34px; margin-bottom: 0.5rem; }
  .mobile-nav__intro-cta-mark img { width: 34px; height: auto; object-fit: cover; object-position: left top; }

  /* Two classes, so this beats `.mobile-nav__intro-cta p` - the title is a <p>
     too, and was being dragged down to the body size by it. */
  .mobile-nav .mobile-nav__intro-cta-title {
    margin: 0 0 11px;
    font-family: var(--headline-font-family);
    font-size: 18.75px;   /* canvas-matched: Work Sans 600 @18.75, -0.4px */
    letter-spacing: -0.4px;
    line-height: 1.2;
    font-weight: var(--font-weight-semibold);
    color: var(--mm-title, #0A1B3D);
  }

  /* the one string on this screen that really is the body face */
  .mobile-nav__intro-cta p { margin: 0 0 11px; font-family: var(--body-font-family); font-size: 13px; line-height: 1.45; }
  .mobile-nav__intro-cta .button {
    display: inline-flex;
    align-items: center;
    height: 33px;          /* export pill measures 151 x 33 */
    padding-block: 0;
    /* 20px each side: the export's label ink is 111 wide inside a 151 pill */
    padding-inline: 20px;
    border-radius: 999px;
    /* canvas-matched: Work Sans 600 @13.25, -0.2px - a step lighter and a
       touch tighter than the full-width pills */
    font-family: var(--headline-font-family);
    font-size: 13.25px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.2px;
  }

  /* ---- sections inside a panel: always open, label becomes a heading ---- */
  .mobile-nav__panel { margin: 0; padding: 0; list-style: none; }
  .mobile-nav__panel input[type="checkbox"] { display: none; }
  .mobile-nav__panel input[type="checkbox"] ~ ul { display: block !important; }

  .mobile-nav__panel > li > label {
    display: block;
    margin: 1.5rem 0 0.75rem;
    font-family: var(--headline-font-family);
    font-size: 13px;   /* joint fit over "BY BUSINESS SIZE" + "HR SERVICES" */
    font-weight: var(--font-weight-semibold);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--mm-teal, #0D9488);
    pointer-events: none;
  }

  .mobile-nav__panel > li > label > svg { display: none; }

  /* A link that has children renders as a checkbox label rather than an <a>.
     The accordions are forced open above, so its caret means nothing - hide it
     and give the label the same row-card treatment as every other row, so the
     list reads consistently instead of mixing bare labels with cards. */
  .mobile-nav__panel ul li > label.has-brand-color {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--colors-grey-46, #E5E7EB);
    border-radius: 10px;
    font-family: var(--headline-font-family);
    font-size: 15px;
    font-weight: var(--font-weight-medium, 500);
    letter-spacing: 0;
    color: var(--mm-title, #0A1B3D);
    pointer-events: none;
  }

  .mobile-nav__panel ul li > label.has-brand-color > svg { display: none; }

  .mobile-nav__panel ul li > label.has-brand-color .img-wrap,
  .mobile-nav__panel ul li > label.has-brand-color .img-wrap svg {
    display: block;
    flex: none;
    width: 26px;
    height: 26px;
  }

  /* its children sit under it as ordinary rows */
  .mobile-nav__panel ul.submenu { margin-top: 10px; }
  .mobile-nav__panel ul.submenu > li + li { margin-top: 10px; }

  /* Flattened groups emit their section title as a bare <li>; style it the
     same as the <label> headings so both routes look identical. */
  .mobile-nav__section-label {
    margin: 1.5rem 0 0.75rem;
    font-family: var(--headline-font-family);
    font-size: 13px;   /* joint fit over "BY BUSINESS SIZE" + "HR SERVICES" */
    font-weight: var(--font-weight-semibold);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--mm-teal, #0D9488);
  }

  .mobile-nav__section-label:first-child { margin-top: 0.5rem; }

  /* Rows emitted straight into .mobile-nav__panel (flattened groups and the
     "By Industry" icon rows) are siblings of the section labels, so they need
     their own gap; the labels' larger margin collapses over it. */
  .mobile-nav__panel > li + li { margin-top: 10px; }

  /* "By Industry" is ONE bordered container in the design (Figma
     ListContainer: 343 wide, radius 11.54, 0.96px #E5E7EB, no padding, no
     gap) with the four rows stacked flush and divided by a hairline - not
     four separate cards like the sections above it. */
  .mobile-nav__panel > li.mobile-nav__group-card {
    /* an inset shadow rather than a border: Figma draws the stroke INSIDE, so
       the container measures 224 (4 x 56) rather than 226, and the rows stay
       the full 343 wide */
    box-shadow: inset 0 0 0 1px var(--colors-grey-46, #E5E7EB);
    border-radius: 11.5px;
    overflow: hidden;
  }

  .mobile-nav__panel > li.mobile-nav__group-card > ul > li + li { margin-top: 0; }

  /* Figma IndustryItem: height 56, padding 14/15, gap 12, bottom border only */
  .mobile-nav__panel .mobile-nav__group-card a.mega-menu__link {
    min-height: 56px;
    padding: 14px 15px;
    border: 0;
    border-bottom: 1px solid var(--colors-grey-46, #E5E7EB);
    border-radius: 0;
    column-gap: 12px;
  }

  /* By Industry's 15px row inset comes from the Figma node itself, but the
     trust card and Explore More measure ~17.5: their icon ink starts x42 and
     label ink x77 against a card at x20, which 15px puts 2.5px short of. */
  .mobile-nav [data-screen="why-g-a"] .mobile-nav__group-card a.mega-menu__link,
  .mobile-nav [data-screen="about-us"] .mobile-nav__group-card a.mega-menu__link {
    padding-inline: 17.5px;
  }

  /* the last row's own border would double up with the container's */
  .mobile-nav__panel .mobile-nav__group-card > ul > li:last-child a.mega-menu__link {
    border-bottom: 0;
  }

  /* The section's own CTA ("Explore All Industries") is a red pill sitting
     BELOW the card, not inside it - in the Figma it is a sibling of the
     section: 328 x 44, radius 40, centred, sitting on the section's 20px
     bottom padding. */
  /* out-specifies `.mobile-nav__panel > li + li` / `ul > li + li`, which were
     holding this at 10. A CTA row can sit either directly in the panel (By
     Industry) or inside a grouped column's list (Explore HR Outsourcing). */
  .mobile-nav__panel li.mobile-nav__cta-row { margin-top: 20px; }
  /* The label has to be named explicitly: the legacy
     `.mobile-nav .group-link-cols > li a span { font-weight: 400 }` (near the
     top of this file) catches the text span of any CTA button that sits inside
     a grouped column, so Explore HR Outsourcing rendered regular while the
     anchor itself was 700. Who We Help's button is a direct child of the panel
     and was unaffected, which is why this only showed up on Services. */
  .mobile-nav__cta-row .button .menu-link__text {
    font-family: var(--headline-font-family);
    font-size: 13.5px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.3px;
  }

  .mobile-nav__cta-row .button {
    display: flex;
    width: 328px;
    max-width: 100%;
    margin-inline: auto;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 40px;
    /* canvas-matched against the export's "Contact Us" pill, which is the same
       component at the same size (329x43 vs this button's 328x44):
       Work Sans 700 @13.5 with +0.3px tracking, not IBM Plex 500 @16. */
    font-family: var(--headline-font-family);
    font-size: 13.5px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.3px;
    /* the drawer's own `a { color }` reaches this one and rendered the label
       black on the red fill */
    color: #fff;
  }

  /* Children of a link row render flat, not indented under a caret - the
     design has no second level inside a panel. */
  .mobile-nav__panel ul ul { margin-top: 10px; }
  .mobile-nav__panel ul ul li { margin-left: 0; }

  /* Crop the tagline logo down to just the mark, the way the desktop intro
     card does - the source file is the full lockup. */
  .mobile-nav__intro-cta-mark {
    display: block;
    width: 24px;
    height: 17px;
    overflow: hidden;
    margin-bottom: 0;
  }

  .mobile-nav__intro-cta-mark img {
    height: 19px;   /* crops the lockup to the mark: export ink 23 x 16 */
    width: auto;
    max-width: none;
    display: block;
    object-fit: cover;
    object-position: left top;
  }

  /* ---- link rows: bordered cards with a red chevron, as in the design ---- */
  .mobile-nav__panel ul { margin: 0; padding: 0; list-style: none; }

  .mobile-nav__panel ul > li + li { margin-top: 10px; }

  .mobile-nav__panel a.mega-menu__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 59px;   /* export: border y486, icon centred on y515.5 */
    padding: 0.5rem 1rem;
    border: 1px solid var(--colors-grey-46, #E5E7EB);
    border-radius: 10px;
    font-family: var(--headline-font-family);
    font-size: 15px;   /* canvas-matched: Work Sans 500 @15, no tracking */
    font-weight: var(--font-weight-medium, 500);
    letter-spacing: 0;
    color: var(--mm-title, #0A1B3D);
    text-decoration: none;
  }

  /* menu-link.html only emits its own chevron for featured/CTA links, so draw
     one on every row instead and hide any built-in to avoid doubling up. The
     colour is hard-coded because a data URI cannot read currentColor. */
  .mobile-nav__panel a.mega-menu__link > svg { display: none; }

  .mobile-nav__panel a.mega-menu__link::after {
    content: "";
    flex: none;
    margin-left: auto;
    /* The viewBox is cropped to the stroke's own extents so the box IS the
       ink - a 0 0 20 20 box letterboxed the glyph down to about 2 x 5px.
       Export measures the chevron at 7 x 12 with a ~2px stroke. */
    width: 10px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='5 3 10 14' fill='none'%3E%3Cpath d='M7.5 5L12.5 10L7.5 15' stroke='%23C8102E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .mobile-nav__panel a.mega-menu__link .img-wrap,
  .mobile-nav__panel a.mega-menu__link > svg:first-child {
    flex: none;
    width: 26px;
    height: 26px;
  }

  .mobile-nav__panel a.mega-menu__link .img-wrap svg { width: 26px; height: 26px; }

  /* Icon colour follows the same system as the desktop panel: the row's
     brandColorAccent sets --active-accent-color (0-10 Employees resolves to
     #0D9488, which is exactly the teal the export samples), and brand-default
     sets nothing - those are the Partners & Segments and By Industry rows,
     which the design draws in brand red. */
  .mobile-nav__panel a.mega-menu__link .img-wrap,
  .mobile-nav__panel a.mega-menu__link .img-wrap svg,
  .mobile-nav__panel a.mega-menu__link .img-wrap .material-symbols-outlined,
  .mobile-nav__panel label.has-brand-color .img-wrap,
  .mobile-nav__panel label.has-brand-color .img-wrap svg,
  .mobile-nav__panel label.has-brand-color .img-wrap .material-symbols-outlined {
    color: var(--active-accent-color, var(--brand-primary));
  }

  /* export: glyph ink 26 x 22 (24px rendered 24 x 19) */
  .mobile-nav__panel a.mega-menu__link .img-wrap .material-symbols-outlined {
    font-size: 26px;
    line-height: 1;
  }

  /* One weight for every row label. The rows inside a grouped column already
     render at 400 - the width measurements were taken against those - but a
     row emitted straight into .mobile-nav__panel inherits 600, so the two
     routes disagreed on By Industry. */
  .mobile-nav .mobile-nav__panel a.mega-menu__link,
  .mobile-nav .mobile-nav__panel a.mega-menu__link .menu-link__text {
    font-family: var(--headline-font-family);
    font-weight: var(--font-weight-medium, 500);
    letter-spacing: 0;
  }

  /* The shared row styles win the `gap` declaration with 0.2rem; the export
     has the label ink starting at x73 against icon ink ending at x58. */
  .mobile-nav .mobile-nav__panel a.mega-menu__link { column-gap: 14px; }

  /* ---- pinned footer band ----
     Figma pins Contact Us and Employee Support to the bottom of the drawer on
     the pale blue ground, Contact Us first; the markup order is the other way
     round and is shared with the desktop header, so flip it with order rather
     than touching the template. Scoped to body.mm-mobile-open (set by the nav
     script) so these never pin when the drawer is closed. */
  /* .block__on-canvas carries an identity transform (matrix(1,0,0,1,0,0)),
     which is still enough to make it the containing block for position:fixed
     descendants - the band was pinning to the bottom of that box, mid-screen,
     rather than the viewport. Dropping it costs nothing visually (it is an
     identity) and only applies while the mobile drawer is open, where the
     desktop megamenu that relies on this element's stacking context is
     display:none anyway. */
  body.mm-mobile-open .site_header .block--header .block__on-canvas { transform: none !important; }

  body.mm-mobile-open .block__utility--alternative__links {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 0;
    padding: 24px 26px calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--brand-muted-blue-sky, #DBEAFE);
  }

  body.mm-mobile-open .block__utility--alternative__links .btn,
  body.mm-mobile-open .block__utility--alternative__links .header-action-link > span {
    height: 45px;
    /* same pill component as Explore All Industries - the Contact Us label in
       the export is what both were matched against */
    font-family: var(--headline-font-family);
    font-size: 13.5px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.3px;
  }

  body.mm-mobile-open .block__utility--alternative__links > li { width: 100%; }
  body.mm-mobile-open .block__utility--alternative__links > li:first-child { order: 2; }
  body.mm-mobile-open .block__utility--alternative__links > li:last-child { order: 1; }

  body.mm-mobile-open .block__utility--alternative__links .btn,
  body.mm-mobile-open .block__utility--alternative__links .header-action-link > span {
    width: 100%;
    justify-content: center;
  }

  /* keep the drawer's last rows clear of the band */
  body.mm-mobile-open .block__off-canvas { padding-bottom: 140px; }

  /* ---- shared intro extras at phone width ----
     The markup comes from parts/components/mega-menu-intro-extras.html, which
     the desktop panel also uses; every desktop rule for these classes lives
     inside min-width:1024px, so they arrive here unstyled. Sizes below are
     read off the mobile frames in the prototype. */
  .mobile-nav__extras { margin-bottom: 1.5rem; }
  .mobile-nav__extras:empty { margin-bottom: 0; }

  /* Services: PEO / ASO / HCM */
  .mobile-nav__extras .mega-menu__intro-minigrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8.5px;        /* export: three 110px cards across 343 */
    margin-bottom: 14px;
  }

  .mobile-nav__extras .mega-menu__intro-minigrid > * { min-height: 103px; }   /* export: cards y298-400 */

  .mobile-nav__extras .mega-menu__minicard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 14px 6px;
    border: 1px solid var(--colors-grey-46, #E5E7EB);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
  }

  /* The design does NOT give these a common height - each glyph is drawn at
     0.60x its own artboard, then vertically centred in a shared 20px band:
       PEO  viewBox 30 x 33.33 -> ink 18 x 20
       ASO  viewBox 30 x 20.67 -> ink 18 x 12
       HCM  viewBox 36.67 x 30 -> ink 22 x 18
     Forcing height:22px on all three made ASO nearly twice its intended size.
     Order is fixed - the three cards are hard-coded in
     parts/components/mega-menu-intro-extras.html. */
  .mobile-nav__extras .mega-menu__minicard > svg {
    color: var(--brand-primary);
    height: 20px;
    width: auto;
  }

  .mobile-nav__extras .mega-menu__intro-minigrid > :nth-child(2) > svg {
    height: 12.4px;
    margin-top: 3.8px;   /* centres it in the 20px band */
  }

  .mobile-nav__extras .mega-menu__intro-minigrid > :nth-child(3) > svg {
    height: 18px;
    margin-top: 1px;
  }
  .mobile-nav__extras .mega-menu__minicard-title {
    font-family: var(--headline-font-family);
    font-size: 16.25px;   /* canvas-matched over "PEO" and "HCM" */
    letter-spacing: -0.1px;
    font-weight: var(--font-weight-semibold);
    color: var(--mm-title, #0A1B3D);
    text-decoration: underline;
  }

  .mobile-nav__extras .mega-menu__minicard-sub {
    /* export: sub ink sits 77px below the card top and the card is 103 tall;
       the 4px flex gap alone left both 5px short */
    margin-top: 5px;
    font-family: var(--body-font-family);
    font-size: 12px;   /* canvas-matched over "Full service" and "HR tech+support" */
    letter-spacing: 0.1px;
    line-height: 1.25;
    color: var(--mm-body, #181818);
  }

  /* Services: Compare HR Solutions */
  .mobile-nav__extras .mega-menu__intro-compare {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* export: card y414-482 x16-358, title ink starts x36, chevron ends x342 */
    padding: 16px 16px 14px 20px;
    border: 0;   /* the design fills it flat - there is no stroke */
    border-radius: 10px;
    background: var(--brand-muted-blue-sky, #DBEAFE);
    text-decoration: none;
  }

  .mobile-nav__extras .mega-menu__intro-compare-title {
    display: block;
    font-family: var(--headline-font-family);
    font-size: 15px;   /* canvas-matched */
    letter-spacing: 0;
    font-weight: var(--font-weight-semibold);
    color: var(--mm-title, #0A1B3D);
    text-decoration: underline;
  }

  .mobile-nav__extras .mega-menu__intro-compare-sub {
    display: block;
    font-family: var(--body-font-family);
    font-size: 13px;   /* canvas-matched */
    letter-spacing: 0;
    line-height: 1.35;
  }
  /* Same letterboxing trap as the row chevrons: the inline SVG's viewBox is
     0 0 20 20 but the stroke only occupies a quarter of its width, so an 8x14
     box rendered about 2x4 of ink. The export has this chevron at 7x12 - the
     same glyph as the rows - so it is drawn the same way, from a viewBox
     cropped to the stroke's own extents. */
  .mobile-nav__extras .mega-menu__intro-compare > svg { display: none; }

  .mobile-nav__extras .mega-menu__intro-compare::after {
    content: "";
    flex: none;
    margin-left: auto;
    width: 10px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='5 3 10 14' fill='none'%3E%3Cpath d='M7.5 5L12.5 10L7.5 15' stroke='%23C8102E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  /* About Us: Top Awards & Distinctions */
  .mobile-nav__extras .mega-menu__intro-awards {
    background: var(--brand-muted-blue-sky, #DBEAFE);
    border-radius: 12px;
    /* export: card x16-358 y279-445, title ink starts x34. The bottom inset is
       smaller than the other three - 12 against 18. */
    padding: 18px 18px 12px;
  }

  .mobile-nav__extras .mega-menu__intro-awards-title {
    margin: 0 0 20px;   /* export: title ink y302, tiles start y336 */
    font-family: var(--headline-font-family);
    line-height: 1.2;
    font-size: 13px;   /* same spec as the teal section labels */
    font-weight: var(--font-weight-semibold);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--mm-teal, #0D9488);
  }

  .mobile-nav__extras .mega-menu__intro-awards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;          /* export: four 68px tiles, 12px apart */
    margin-bottom: 12px;
  }

  .mobile-nav__extras .mega-menu__intro-awards-grid img {
    /* inline images sit on a text baseline, which was adding 9px of descender
       space under the row and pushing the card 9px taller than the export */
    display: block;
    width: 100%;
    /* the badge images have mixed aspect ratios, so `height: auto` let the
       tallest one set the row height (76.8 against the export's 68). The
       design's tiles are square with the logo contained. */
    aspect-ratio: 1;
    height: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 6px;
  }

  .mobile-nav__extras .mega-menu__intro-awards-link {
    font-family: var(--headline-font-family);
    display: inline-block;
    line-height: 1.2;
    font-size: 14.5px;   /* canvas-matched: Work Sans 600 @14.5, -0.3px */
    letter-spacing: -0.3px;
    font-weight: var(--font-weight-semibold);
    color: var(--mm-title, #0A1B3D);
    text-decoration: underline;
  }

  /* Resources: category tiles */
  .mobile-nav__extras .mega-menu__cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* export: tiles x20-175 and x198-354, rows y298-353 and y366-421 */
    column-gap: 22px;
    row-gap: 13px;
  }

  .mobile-nav__extras .mega-menu__cat-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 56px;
    padding: 0.5rem;
    border: 1px solid var(--colors-grey-46, #E5E7EB);
    border-radius: 10px;
    font-family: var(--headline-font-family);
    font-size: 14.4px;   /* canvas-matched: Work Sans 400 @14.4, -0.2px */
    letter-spacing: -0.2px;
    font-weight: 400;
    color: var(--mm-title, #0A1B3D);
    text-decoration: none;
  }

  .mobile-nav__extras .mega-menu__cat-card .material-symbols-outlined {
    color: var(--brand-primary);
    font-size: 26px;
  }

  /* Why G&A: percentage stat pills */
  .mobile-nav__extras .mega-menu__intro-stats { display: flex; flex-direction: column; gap: 10px; }

  .mobile-nav__extras .mega-menu__intro-stat {
    display: flex;
    align-items: center;
    gap: 14px;          /* export: "97%" ink ends x63, label ink starts x77 */
    padding: 6px 10px;  /* export: value ink starts x26 in a pill at x16 */
    border-radius: 8px;
    background: var(--brand-muted-blue-sky, #DBEAFE);
  }

  .mobile-nav__extras .mega-menu__intro-stats > * {
    min-height: 44px;   /* export: pills y251-294 and y304-348, 10px apart */
  }

  .mobile-nav__extras .mega-menu__intro-stat-value {
    flex: none;
    font-family: var(--headline-font-family);
    font-size: 18.5px;   /* canvas-matched: Work Sans 700 @18.5, -0.45px */
    letter-spacing: -0.45px;
    font-weight: var(--font-weight-bold);
    color: var(--brand-primary);
  }

  .mobile-nav__extras .mega-menu__intro-stat-label {
    font-family: var(--body-font-family);
    font-size: 12px;   /* canvas-matched: IBM Plex Sans 400 @12, no tracking */
    letter-spacing: 0;
    line-height: 1.35;
    color: var(--mm-body, #181818);
  }
}
