/* Manseur Advisory brand identity refresh
   Visual layer only. Page content and behavior remain unchanged. */

:root {
  --ma-navy-950: #031a35;
  --ma-navy-900: #062445;
  --ma-navy-800: #0a315b;
  --ma-gold-700: #a66c00;
  --ma-gold-600: #c78300;
  --ma-gold-500: #d79818;
  --ma-gold-300: #efbd5a;
  --ma-gold-text: #946000;
  --ma-white: #ffffff;
  --ma-neutral-50: #f7f9fc;
  --ma-neutral-100: #eef3f8;
  --ma-line: #dce5ef;
  --ma-bluegray-300: #b9cae0;
  --ma-text: #0a1d38;
  --ma-muted: #556477;
  --ma-font-display: "Manrope", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --ma-font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --ma-radius-sm: 8px;
  --ma-radius-md: 14px;
  --ma-radius-lg: 20px;
  --ma-shadow-sm: 0 6px 18px rgba(3, 26, 53, 0.06);
  --ma-shadow-md: 0 16px 42px rgba(3, 26, 53, 0.1);

  --bg: var(--ma-neutral-50);
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: var(--ma-white);
  --ink: var(--ma-text);
  --ink-2: var(--ma-muted);
  --muted: var(--ma-muted);
  --accent-brand: var(--ma-gold-600);
  --accent-interactive: var(--ma-navy-900);
  --accent-interactive-hover: var(--ma-navy-950);
  --accent: var(--ma-gold-text);
  --accent-2: var(--ma-navy-800);
  --focus-ring: var(--ma-gold-500);
  --focus-ring-contrast: var(--ma-navy-950);
  --on-accent: var(--ma-white);
  --serif: var(--ma-font-display);
  --sans: var(--ma-font-body);
  --mono: var(--ma-font-display);
  --maxw: 1440px;
  --header-h: 76px;
  --footer-h: 64px;
}

html {
  background: var(--ma-neutral-50);
}

body {
  color: var(--ma-text);
  background: var(--ma-neutral-50);
  font-family: var(--ma-font-body);
  font-size: clamp(16px, calc(12px + 0.35vw), 18px);
  line-height: 1.6;
}

body,
button,
input,
select,
textarea {
  font-family: var(--ma-font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero h1,
.section-head h1,
.summary-title h3,
.engagement-title h4,
.contact-section h1,
.contact-form-title,
.article-header h1,
.article-body h2,
.article-body h3,
.newsletter-dialog h2,
.booking-intro h1 {
  color: var(--ma-navy-950);
  font-family: var(--ma-font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
}

em,
.hero h1 em,
.section-head h1 em,
.summary-title h3 em,
.method-bridge em,
.sustain-lede em,
.sustain-card h2 em,
.contact-section h1 em,
.insight-card h2 em,
.article-header h1 em,
.newsletter-dialog h2 em,
.booking-intro h1 em {
  color: var(--ma-gold-700);
  font-style: normal;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--ma-gold-500);
  outline-offset: 3px;
}

::selection {
  color: var(--ma-white);
  background: var(--ma-navy-800);
}

.site-background {
  background: url("../img/background-handshake.jpeg") center / cover no-repeat;
  opacity: 0.20;
  overflow: visible;
}

.site-background::before,
.site-background::after {
  display: none;
  content: none;
}

.shell {
  padding-inline: clamp(20px, 3.2vw, 52px);
}

.site-header {
  height: var(--header-h);
  border-bottom: 1px solid var(--ma-line);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: none;
  box-shadow: 0 3px 12px rgba(3, 26, 53, 0.035);
}

.brand-lockup {
  position: relative;
  min-width: 190px;
  min-height: 52px;
  color: var(--ma-navy-950);
}

.brand-lockup::before {
  content: "";
  display: block;
  width: 184px;
  height: 50px;
  background: url("../img/branding/logo-horizontal.svg") left center / contain no-repeat;
}

.brand-lockup .mark {
  display: none;
}

.brand-lockup .name {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.nav-actions {
  gap: 14px;
}

.links,
.nav-parent,
.lang-toggle,
.eyebrow,
.num,
.article-meta,
.article-kicker,
.insight-card-meta,
.tool-card-meta,
.footer-brand,
.screen-status {
  font-family: var(--ma-font-display);
}

.links {
  gap: 2px;
}

.links a,
.nav-parent {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--ma-radius-sm);
  color: var(--ma-navy-900);
  font-family: var(--ma-font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.115em;
  padding: 9px 10px;
}

.links > a,
.nav-parent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

.links a:hover,
.nav-parent:hover,
.nav-parent:focus-visible {
  color: var(--ma-navy-950);
  border-color: var(--ma-line);
  background: var(--ma-neutral-100);
}

.links a.active,
.links a[aria-current="page"],
.nav-parent.active,
.nav-parent[aria-current="page"] {
  color: var(--ma-white);
  border-color: var(--ma-navy-900);
  background: var(--ma-navy-900);
}

.nav-submenu {
  padding: 8px;
  border: 1px solid var(--ma-line);
  border-radius: var(--ma-radius-md);
  background: var(--ma-white);
  box-shadow: var(--ma-shadow-md);
}

.nav-submenu a {
  border-radius: 6px;
}

.lang-toggle {
  overflow: hidden;
  border: 1px solid var(--ma-bluegray-300);
  border-radius: var(--ma-radius-sm);
  background: var(--ma-white);
}

.lang-toggle button {
  color: var(--ma-navy-900);
  font-family: var(--ma-font-display);
  font-size: 10px;
  font-weight: 700;
}

.lang-toggle button.on {
  color: var(--ma-white);
  background: var(--ma-navy-900);
}

.menu-toggle {
  border: 1px solid var(--ma-bluegray-300);
  border-radius: var(--ma-radius-sm);
  color: var(--ma-navy-900);
  background: var(--ma-white);
}

.page-panel {
  padding: clamp(52px, 7vh, 96px) 0;
  background: transparent;
  backdrop-filter: none;
}

.page-panel > .screen-section,
.home-practice-divider {
  width: min(calc(100% - clamp(40px, 8vw, 128px)), 1320px);
}

.hero .eyebrow,
.eyebrow,
.section-head .num,
.num,
.home-section-heading > span,
.home-card-kicker,
.services-question-intro > span,
.service-question,
.contact-path-heading > span,
.contact-path-card > span,
.newsletter-eyebrow {
  color: var(--ma-gold-text);
  font-family: var(--ma-font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.eyebrow::after {
  background: var(--ma-line);
}

.hero h1 {
  max-width: 1050px;
  margin-bottom: clamp(24px, 3vh, 34px);
  font-size: clamp(48px, 6.4vw, 82px);
  font-weight: 600;
  line-height: 1.02;
}

.hero .lede,
.insights-intro,
.sustain-lede,
.article-deck,
.newsletter-intro,
.booking-copy,
.positioning .col:nth-child(2) p {
  color: var(--ma-muted);
  font-family: var(--ma-font-body) !important;
  font-weight: 400;
  letter-spacing: 0;
}

.hero .lede {
  max-width: 780px;
  font-size: clamp(20px, 1.75vw, 26px);
  line-height: 1.5;
}

.hero-cta .cta-primary,
.hero-cta .cta-secondary,
.action-button,
.footer-contact-button,
.newsletter-trigger,
.hubspot-form-shell .hs-button,
.newsletter-form-shell .hs-button,
.booking-fallback .action-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--ma-radius-sm) !important;
  font-family: var(--ma-font-display) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.hero-cta .cta-primary,
.action-button,
.hubspot-form-shell .hs-button,
.newsletter-form-shell .hs-button,
.booking-fallback .action-button {
  color: var(--ma-white) !important;
  border-color: var(--ma-navy-900) !important;
  background: var(--ma-navy-900) !important;
}

.hero-cta .cta-primary:hover,
.action-button:hover,
.hubspot-form-shell .hs-button:hover,
.newsletter-form-shell .hs-button:hover,
.booking-fallback .action-button:hover {
  border-color: var(--ma-navy-950) !important;
  background: var(--ma-navy-950) !important;
  transform: translateY(-1px);
}

.hero-cta .cta-secondary {
  color: var(--ma-navy-900) !important;
  border-color: var(--ma-bluegray-300) !important;
  background: var(--ma-white) !important;
}

.hero-cta .cta-secondary:hover {
  border-color: var(--ma-navy-900) !important;
  background: var(--ma-neutral-100) !important;
}

.home-practice-divider,
.home-section,
.section-head,
.contact-actions,
.contact-form-section,
.article-header,
.article-cta,
.insights-tools {
  border-color: var(--ma-line) !important;
}

.home-practice-divider {
  height: 1px;
  background: var(--ma-line);
}

#quebec > div[style] {
  max-width: 900px !important;
  padding: 24px 28px !important;
  border: 1px solid var(--ma-line) !important;
  border-radius: var(--ma-radius-md);
  background: var(--ma-white);
  box-shadow: inset 4px 0 0 var(--ma-gold-600), var(--ma-shadow-sm);
}

.positioning {
  grid-template-columns: 130px minmax(0, 0.9fr) minmax(0, 1fr);
}

.positioning p,
.privacy-copy,
.decision-review-details,
.article-body,
.contact-path-card p,
.service-outcome-preview,
.tool-card p,
.insight-card p {
  color: var(--ma-muted);
}

.positioning .col:nth-child(2) p {
  color: var(--ma-navy-900) !important;
  font-size: clamp(24px, 2.1vw, 32px) !important;
  line-height: 1.4 !important;
}

.section-head {
  grid-template-columns: 130px minmax(0, 1fr);
  padding-bottom: 28px;
  border-bottom-width: 1px;
}

.section-head h1,
.contact-section h1,
.insights-tools-heading h2 {
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 600;
  line-height: 1.04;
}

.home-section-heading h2,
.contact-path-heading h2,
.contact-form-title {
  color: var(--ma-navy-950);
  font-family: var(--ma-font-display);
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.08;
}

.expand-card,
.sustain-card,
.contact-path-card,
.hubspot-form-shell,
.decision-review-form,
.insight-card,
.tool-card,
.services-closing,
.newsletter-form-shell,
.article-intake,
.article-engagement-cta,
.booking-calendar-shell,
.home-preview-card,
.home-resource-card,
.home-practice-card,
.about-resource-column {
  border: 1px solid var(--ma-line) !important;
  border-radius: var(--ma-radius-md);
  background: var(--ma-white) !important;
  box-shadow: var(--ma-shadow-sm);
}

.expand-card[open],
.contact-path-card:hover,
.contact-path-card:focus-visible,
.insight-card:hover,
.insight-card:focus-visible,
.tool-card:hover,
.tool-card:focus-visible,
.home-preview-card:hover,
.home-resource-card:hover,
.home-practice-card:hover {
  border-color: var(--ma-bluegray-300) !important;
  box-shadow: var(--ma-shadow-md);
}

.expand-card,
.sustain-card,
.contact-path-card,
.insight-card,
.tool-card,
.home-preview-card,
.home-resource-card,
.home-practice-card {
  overflow: hidden;
}

.expand-summary,
.expand-body,
.services-closing,
.insight-card,
.tool-card,
.home-preview-card,
.home-resource-card,
.home-practice-card,
.hubspot-form-shell,
.newsletter-form-shell,
.decision-review-form {
  padding: clamp(22px, 2.5vw, 34px);
}

.expand-body {
  border-top: 1px solid var(--ma-line);
}

.summary-title h3,
.engagement-title h4,
.step h2,
.principles-title h2,
.principle h3,
.sustain-card h2,
.decision-path-note h2,
.decision-review-form-title,
.tool-card h3,
.featured-insight h3 {
  color: var(--ma-navy-950);
  font-family: var(--ma-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.summary-title .glyph,
.engagement-title .kicker,
.principle .n,
.expand-body li::before,
.decision-review-details li::before,
.home-practice-card > span,
.home-card-link,
.tool-card span,
.service-engagement-link a,
.services-secondary,
.article-rail a,
.article-sources a,
.article-engagement-cta a,
.privacy-copy a,
.newsletter-privacy a,
.booking-privacy a,
.booking-path-note a {
  color: var(--ma-gold-text);
}

.step,
.method-bridge,
.phases,
.article-timeline li,
.article-callout,
.decision-path-note,
.booking-path-note {
  border-color: var(--ma-line);
}

.step {
  border-top-width: 3px;
  border-top-color: var(--ma-navy-900);
}

.ph .bar {
  border-radius: 999px;
  background: var(--ma-line);
}

.ph.on .bar,
.ph.partial .bar {
  background: var(--ma-gold-600);
}

.sustain-card .ico,
.measures-card .summary-title {
  color: var(--ma-navy-800);
}

.contact-path-card.is-current {
  border-color: var(--ma-gold-600) !important;
  box-shadow: inset 4px 0 0 var(--ma-gold-600), var(--ma-shadow-sm);
}

.hubspot-form-shell .hs-form-field > label,
.newsletter-form-shell .hs-form-field > label {
  color: var(--ma-navy-900);
  font-family: var(--ma-font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.hubspot-form-shell .hs-input:not([type="checkbox"]):not([type="radio"]),
.newsletter-form-shell .hs-input:not([type="checkbox"]):not([type="radio"]),
input,
select,
textarea {
  min-height: 46px;
  border: 1px solid var(--ma-bluegray-300) !important;
  border-radius: var(--ma-radius-sm);
  color: var(--ma-text);
  background: var(--ma-white);
}

.hubspot-form-shell .hs-input:focus,
.newsletter-form-shell .hs-input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--ma-navy-800) !important;
  box-shadow: 0 0 0 3px rgba(215, 152, 24, 0.22);
  outline: none;
}

.insights-intro,
.article-deck,
.newsletter-intro {
  font-size: clamp(20px, 1.8vw, 27px);
  line-height: 1.5;
}

.insight-list {
  gap: 20px;
}

.insight-card {
  grid-template-columns: 130px minmax(0, 1fr);
}

.insight-card h2 {
  color: var(--ma-navy-950);
  font-family: var(--ma-font-display);
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 600;
  line-height: 1.08;
}

.article-layout {
  grid-template-columns: minmax(0, 190px) minmax(0, 760px);
}

.article-header {
  border-bottom-width: 1px;
}

.article-header h1 {
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 600;
  line-height: 1.04;
}

.article-body {
  font-size: clamp(17px, 1vw, 19px);
  line-height: 1.75;
}

.article-body h2 {
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.15;
}

.article-body h3 {
  font-size: clamp(22px, 2vw, 30px);
}

.article-callout,
.article-engagement-cta,
.decision-path-note,
.booking-path-note {
  border-left: 4px solid var(--ma-gold-600) !important;
  border-radius: 0 var(--ma-radius-sm) var(--ma-radius-sm) 0;
  background: var(--ma-white) !important;
}

.article-intake th,
.article-intake td {
  border-color: var(--ma-line);
}

.article-intake th {
  color: var(--ma-navy-900);
  background: var(--ma-neutral-100);
}

.insights-tools {
  border-top-width: 1px;
  border-bottom-width: 0;
  border-radius: var(--ma-radius-lg);
  background: var(--ma-neutral-100);
}

.newsletter-trigger {
  color: var(--ma-navy-900);
  border: 1px solid var(--ma-bluegray-300);
  background: var(--ma-white);
  box-shadow: var(--ma-shadow-md);
}

.newsletter-trigger:hover,
.newsletter-trigger:focus-visible {
  color: var(--ma-white);
  border-color: var(--ma-navy-900);
  background: var(--ma-navy-900);
}

.newsletter-dialog {
  border: 1px solid var(--ma-line);
  border-radius: var(--ma-radius-lg);
  background: var(--ma-neutral-50);
  box-shadow: 0 30px 90px rgba(3, 26, 53, 0.28);
}

.newsletter-dialog::backdrop {
  background: rgba(3, 26, 53, 0.7);
}

.newsletter-close {
  border: 1px solid var(--ma-bluegray-300);
  border-radius: 999px;
  color: var(--ma-navy-900);
  background: var(--ma-white);
}

.newsletter-close:hover,
.newsletter-close:focus-visible {
  color: var(--ma-white);
  background: var(--ma-navy-900);
}

.newsletter-dialog h2 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
}

.booking-calendar-shell {
  padding: clamp(12px, 2vw, 20px);
}

.site-footer {
  height: var(--footer-h);
  color: var(--ma-white);
  background: var(--ma-navy-950);
}

.footer-brand {
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 600;
}

.footer-brand::before {
  content: "";
  display: block;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  background: url("../img/branding/logo-mark-reversed.svg") center / contain no-repeat;
}

.footer-brand a {
  color: rgba(255, 255, 255, 0.72) !important;
}

.footer-contact-button {
  color: var(--ma-navy-950) !important;
  border-color: var(--ma-gold-300);
  background: var(--ma-gold-300);
}

.footer-contact-button:hover,
.footer-contact-button:focus-visible {
  color: var(--ma-white) !important;
  border-color: var(--ma-white);
  background: transparent;
}

@media (max-width: 1160px) {
  :root {
    --header-h: 70px;
  }

  .brand-lockup {
    min-width: 158px;
  }

  .brand-lockup::before {
    width: 154px;
    height: 44px;
  }

  .links a,
  .nav-parent {
    padding-inline: 8px;
    font-size: 9px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 64px;
    --footer-h: 58px;
  }

  .site-background::before {
    inset: 7% 9% 10% 65%;
  }

  .site-background::after {
    right: -18%;
    width: 72vw;
  }

  .brand-lockup {
    min-width: 148px;
    min-height: 46px;
  }

  .brand-lockup::before {
    width: 144px;
    height: 42px;
  }

  .links {
    top: var(--header-h);
    left: 12px;
    right: 12px;
    padding: 8px;
    border: 1px solid var(--ma-line);
    border-radius: var(--ma-radius-md);
    background: var(--ma-white);
    box-shadow: var(--ma-shadow-md);
  }

  .links a,
  .nav-parent {
    border: 0;
    border-radius: var(--ma-radius-sm);
    font-size: 11px;
  }

  .nav-parent {
    justify-content: flex-start;
  }

  .nav-item {
    border-bottom-color: var(--ma-line);
  }

  .nav-submenu {
    border-top: 1px solid var(--ma-line);
    border-radius: 0;
    box-shadow: none;
  }

  .nav-submenu a {
    background: var(--ma-neutral-50);
  }

  .page-panel {
    padding: 44px 0;
  }

  .positioning,
  .section-head,
  .article-layout,
  .insight-card,
  .tool-card,
  .insights-tools-heading {
    grid-template-columns: 1fr;
  }

  .article-rail {
    border-bottom-color: var(--ma-line);
  }

  .footer-brand {
    gap: 10px;
  }
}

@media (max-width: 540px) {
  :root {
    --header-h: 60px;
    --footer-h: 54px;
  }

  .shell {
    padding-inline: 12px;
  }

  .brand-lockup {
    min-width: 142px;
  }

  .brand-lockup::before {
    width: 142px;
    height: 42px;
  }

  .lang-toggle button {
    min-width: 40px;
    min-height: 42px;
    padding-inline: 6px;
  }

  .page-panel > .screen-section,
  .home-practice-divider {
    width: calc(100% - 28px);
  }

  .hero h1,
  .contact-section h1,
  .article-header h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero .lede,
  .insights-intro,
  .article-deck {
    font-size: 19px;
  }

  .expand-summary,
  .expand-body,
  .insight-card,
  .tool-card,
  .home-preview-card,
  .home-resource-card,
  .home-practice-card,
  .hubspot-form-shell,
  .newsletter-form-shell,
  .decision-review-form {
    padding: 20px;
  }

  .footer-brand::before,
  .footer-brand span:nth-of-type(2) {
    display: none;
  }
}


/* Layout refinements requested during review */

.section-head {
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}

.section-head .num {
  display: none;
}

body[data-page="quebec"] .section-head,
body[data-page="quebec"] .screen-section > div[style*="max-width:720px"] {
  width: min(100%, 980px);
  margin-inline: auto;
}

body[data-page="quebec"] .screen-section > div[style*="max-width:720px"] {
  max-width: 980px !important;
  font-size: clamp(16px, 1.15vw, 18px) !important;
  line-height: 1.72 !important;
}

body[data-page="quebec"] .screen-section > div[style*="max-width:720px"] > h3 {
  margin-top: clamp(28px, 4vw, 44px) !important;
  color: var(--ma-gold-text) !important;
  font-size: clamp(12px, 1vw, 14px) !important;
  line-height: 1.45;
}

body[data-page="quebec"] [data-i18n="qcp.muni"] {
  padding: clamp(18px, 2.5vw, 26px) !important;
  border: 1px solid var(--ma-line);
  border-left: 4px solid var(--ma-gold-600);
  border-radius: 0 var(--ma-radius-sm) var(--ma-radius-sm) 0;
  background: rgba(255, 255, 255, 0.92) !important;
  font-size: clamp(15px, 1.05vw, 17px) !important;
}

body[data-page="quebec"] .screen-section > div[style*="max-width:720px"] > div:last-child {
  gap: 12px !important;
  margin-top: 30px;
}

body[data-page="quebec"] .screen-section > div[style*="max-width:720px"] > div:last-child a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-color: var(--ma-bluegray-300) !important;
  border-radius: var(--ma-radius-sm);
  color: var(--ma-navy-900) !important;
  background: var(--ma-white);
  font-family: var(--ma-font-display) !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.02em !important;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body[data-page="quebec"] .screen-section > div[style*="max-width:720px"] > div:last-child a:first-child {
  border-color: var(--ma-navy-900) !important;
  color: var(--ma-white) !important;
  background: var(--ma-navy-900);
}

body[data-page="quebec"] .screen-section > div[style*="max-width:720px"] > div:last-child a:hover,
body[data-page="quebec"] .screen-section > div[style*="max-width:720px"] > div:last-child a:focus-visible {
  border-color: var(--ma-navy-900) !important;
  color: var(--ma-white) !important;
  background: var(--ma-navy-900);
  transform: translateY(-1px);
}

body[data-page="quebec"] .screen-section > div[style*="max-width:720px"] > div:last-child a:first-child:hover,
body[data-page="quebec"] .screen-section > div[style*="max-width:720px"] > div:last-child a:first-child:focus-visible {
  border-color: var(--ma-gold-300) !important;
  color: var(--ma-navy-950) !important;
  background: var(--ma-gold-300);
}

body[data-page="sustainability"] .section-head h1 em {
  color: #1f6b4f;
}

.services,
.engagement-card-grid {
  align-items: stretch;
}

.service-card,
.engagement-choice-card,
.service-card .expand-summary,
.service-card .summary-title,
.engagement-card-summary {
  min-width: 0;
}

.service-card {
  container-type: inline-size;
}

.service-card .summary-title {
  flex: 1 1 auto;
}

.service-card .summary-title h3 {
  max-width: 100%;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.08;
  white-space: nowrap;
}

.engagement-card-summary h3 {
  max-width: 100%;
  font-size: clamp(22px, 2.05vw, 31px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

@container (max-width: 560px) {
  .service-card .summary-title h3 {
    font-size: clamp(15px, 4.1cqw, 22px);
  }
}

@container (max-width: 420px) {
  .service-card .expand-summary {
    gap: 12px;
  }

  .service-card .summary-title {
    gap: 0;
  }

  .service-card .summary-title .glyph {
    display: none;
  }

  .service-card .summary-title h3 {
    font-size: clamp(13px, 3.7cqw, 17px);
  }
}

.engagements {
  align-items: start;
}

.engagement-card {
  width: 100%;
  min-width: 0;
}

.engagement-card .expand-summary,
.engagement-card .engagement-title,
.engagement-card .expand-body {
  min-width: 0;
}

.engagement-card .engagement-title h4 {
  max-width: 100%;
  font-size: clamp(21px, 1.75vw, 28px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.engagement-card .engagement-title .duration,
.engagement-card .expand-body {
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .engagements,
  .engagement-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-page="quebec"] .section-head,
  body[data-page="quebec"] .screen-section > div[style*="max-width:720px"] {
    width: 100%;
  }

  body[data-page="quebec"] .screen-section > div[style*="max-width:720px"] > div:last-child {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  body[data-page="quebec"] .screen-section > div[style*="max-width:720px"] > div:last-child a {
    width: 100%;
  }

  .services,
  .engagements,
  .engagement-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card .expand-summary,
  .engagement-card-summary {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .engagement-card-summary,
  .engagement-card-details {
    padding: 18px;
  }

  .engagement-card-topline {
    gap: 8px;
  }

  .engagement-card-summary h3 {
    font-size: clamp(20px, 6.2vw, 25px);
  }
}


/* Expanded service and engagement detail structure */

details.expand-card[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.service-outcome {
  margin: 18px 0;
  padding-left: 16px;
  border-left: 3px solid var(--ma-gold-600);
  color: var(--ma-navy-800);
  font-size: clamp(17px, 1.15vw, 20px);
  line-height: 1.55;
}

.service-outcome em {
  color: var(--ma-navy-800);
  font-style: italic;
  font-weight: 600;
}

.deliverables {
  margin: 20px 0 14px;
}

.deliverables-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deliverables-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--ma-line);
  border-radius: var(--ma-radius-sm);
  color: var(--ma-navy-900);
  background: var(--ma-neutral-50);
  font-size: 14px;
  line-height: 1.4;
}

.deliverables-list li::before {
  display: none;
}

.deliverables-list li > span {
  min-width: 0;
}


.ongoing-engagement-band,
.principal-led-band {
  margin-top: clamp(24px, 4vw, 42px);
  padding: clamp(24px, 3.5vw, 42px);
  border: 1px solid var(--ma-line);
  border-left: 5px solid var(--ma-gold-600);
  border-radius: var(--ma-radius-md);
  background: linear-gradient(135deg, rgba(239, 189, 90, 0.18), rgba(255, 255, 255, 0.96) 58%);
  box-shadow: var(--ma-shadow-sm);
}

.ongoing-engagement-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(20px, 4vw, 56px);
  margin-bottom: 22px;
}

.ongoing-engagement-heading h2,
.principal-led-band h2 {
  margin: 0;
  color: var(--ma-navy-950);
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.08;
}

.ongoing-engagement-heading p,
.principal-led-band p {
  margin: 0;
  color: var(--ma-muted);
  line-height: 1.6;
}

.ongoing-engagement-band > .engagement-card {
  margin: 0;
  border-color: var(--ma-bluegray-300) !important;
  background: var(--ma-white) !important;
}

.principal-led-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  border-left-color: var(--ma-navy-800);
  background: rgba(255, 255, 255, 0.94);
}

.principal-led-band > div {
  display: grid;
  grid-template-columns: minmax(210px, 0.45fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
}

.principal-led-band .services-secondary {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .deliverables-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .ongoing-engagement-heading,
  .principal-led-band,
  .principal-led-band > div {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .principal-led-band .services-secondary {
    white-space: normal;
  }
}


/* About method, principles and Sustainable AI links */

.about-approach-section,
.about-principles-section {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.page-panel > .about-approach-section {
  margin-top: clamp(64px, 8vw, 112px);
}

.page-panel > .about-principles-section {
  margin-top: clamp(28px, 4vw, 54px);
}

.about-approach-section .section-head h2 {
  margin: 0;
  color: var(--ma-navy-950);
  font-family: var(--ma-font-display);
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.about-approach-section .step h5 {
  margin: 0 0 9px;
  color: var(--ma-navy-950);
  font-family: var(--ma-font-display);
  font-size: clamp(25px, 2vw, 33px);
  font-weight: 600;
  line-height: 1.12;
}

.about-principles-section .principles-title h3 {
  margin: 0;
  color: var(--ma-navy-950);
  font-family: var(--ma-font-display);
  font-size: clamp(29px, 2.5vw, 40px);
  font-weight: 600;
  line-height: 1.1;
}

.about-principles-section .principle h6 {
  margin: 0 0 5px;
  color: var(--ma-navy-950);
  font-family: var(--ma-font-display);
  font-size: clamp(20px, 1.5vw, 26px);
  font-weight: 600;
  line-height: 1.15;
}

.service-sustainability-link,
.principal-led-note {
  color: var(--ma-muted);
  font-size: 14px;
  line-height: 1.55;
}

.service-sustainability-link {
  margin: 8px 0 0;
}

.service-sustainability-link a,
.principal-led-note a {
  color: #1f6b4f;
  font-family: var(--ma-font-display);
  font-weight: 700;
  text-decoration: none;
}

.service-sustainability-link a:hover,
.service-sustainability-link a:focus-visible,
.principal-led-note a:hover,
.principal-led-note a:focus-visible {
  color: var(--ma-navy-950);
  text-decoration: underline;
}

.principal-led-note {
  margin: clamp(22px, 3vw, 34px) 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--ma-line);
  border-bottom: 1px solid var(--ma-line);
}

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


/* Footer layout and simplified engagement deliverables */

.site-footer {
  height: auto;
  min-height: 92px;
}

.site-footer .footer-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 92px;
  padding-block: 18px;
  gap: clamp(20px, 4vw, 52px);
}

.site-footer .footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px clamp(16px, 2.2vw, 32px);
  min-width: 0;
  font-size: 10px;
  line-height: 1.4;
}

.site-footer .footer-brand span,
.site-footer .footer-brand a {
  margin-left: 0 !important;
  white-space: nowrap;
}

.site-footer .screen-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-footer .footer-contact {
  align-items: center;
}

.deliverables .deliverables-list {
  display: block;
  margin: 0;
  padding-left: 1.2rem;
  list-style: disc;
}

.deliverables .deliverables-list li {
  display: list-item;
  margin: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  line-height: 1.5;
}

.deliverables .deliverables-list li::marker {
  color: var(--ma-gold-700);
}

@media (max-width: 700px) {
  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 22px;
  }

  .site-footer .footer-brand {
    gap: 10px 18px;
  }

  .site-footer .footer-brand::before,
  .site-footer .footer-brand span:nth-of-type(2) {
    display: block;
  }

  .site-footer .footer-brand a {
    display: inline-flex !important;
  }

  .site-footer .footer-contact {
    justify-content: flex-start;
  }
}


/* Three-format engagement model */

.engagements-positioning {
  max-width: 980px;
  margin: clamp(14px, 2vw, 24px) 0 clamp(28px, 4vw, 44px);
  color: var(--ma-muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
}

.engagements-positioning strong {
  color: var(--ma-navy-900);
  font-weight: 700;
}

.engagements.engagements-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.engagement-context-note {
  margin: 18px 0 20px;
  padding: 12px 14px;
  border-left: 3px solid var(--ma-bluegray-300);
  color: var(--ma-muted);
  background: rgba(236, 240, 244, 0.55);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .engagements.engagements-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .engagements.engagements-three {
    grid-template-columns: minmax(0, 1fr);
  }

  .engagements-positioning {
    margin-bottom: 26px;
  }
}


/* Stable viewport shell, hash navigation and consistent engagement headings */

body {
  grid-template-rows: var(--header-h) minmax(0, 1fr) auto;
}

.page-scroll {
  scroll-padding-block: 24px;
}

.page-scroll [id] {
  scroll-margin-block-start: 24px;
}

.engagement-card .engagement-title h4 {
  font-size: clamp(21px, 1.75vw, 28px);
  line-height: 1.12;
  white-space: normal !important;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.site-footer {
  height: auto;
  min-height: 70px;
}

.site-footer .footer-grid {
  height: auto;
  min-height: 70px;
  padding-block: 12px;
}

@media (max-width: 700px) {
  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 70px;
    padding-block: 12px;
  }

  .site-footer .footer-brand {
    gap: 6px 10px;
    font-size: 9px;
    line-height: 1.35;
  }

  .site-footer .footer-brand::before {
    display: block;
    flex-basis: 26px;
    width: 26px;
    height: 26px;
  }

  .site-footer .footer-brand span:nth-of-type(2) {
    display: none;
  }

  .site-footer .footer-contact {
    justify-content: flex-end;
  }

  .site-footer .footer-contact-button {
    min-height: 44px;
    padding: 10px 12px;
  }
}
