/* Public-page presentation only. The contact and Service Fit runtimes are unchanged. */
body[data-page-id] {
  --engagement-edge: max(6%, calc((100vw - 1260px) / 2));
  --muted: #4b6269;
  font-size: 16px;
  line-height: 1.6;
}
body[data-page-id] :is(h1, h2, h3) { overflow-wrap: break-word; }
body[data-page-id] :is(p, li) { overflow-wrap: anywhere; }
body[data-page-id] :is(h1, h2, h3, p, ul, ol) { max-width: 100%; }
body[data-page-id] :is(p, li, input, select, textarea) { font-size: max(1rem, 16px); }
body[data-page-id] h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); line-height: 1.09; letter-spacing: -.035em; }
body[data-page-id] h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.18; letter-spacing: -.025em; }
body[data-page-id] h3 { font-size: 1.3rem; line-height: 1.28; }
body[data-page-id] :is(.eyebrow, .card-kicker) { color: #226c55; font-size: .8rem; letter-spacing: .05em; }
body[data-page-id] :is(.button, button, summary) { min-height: 44px; }
body[data-page-id] :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid #226c55;
  outline-offset: 4px;
}
body[data-page-id] .button { box-shadow: none; font-size: 1rem; font-weight: 700; }
body[data-page-id] .button:hover { transform: none; }
body[data-page-id] :is(.section, .hero-section, .service-hero, .about-hero, .assessment-hero, .assessment-process) {
  padding-left: var(--engagement-edge);
  padding-right: var(--engagement-edge);
}
body[data-page-id] .section { padding-top: 48px; padding-bottom: 48px; }
body[data-page-id] .section-heading { max-width: 780px; margin-bottom: 28px; }
body[data-page-id] .section-heading > p { margin-bottom: 16px; }
body[data-page-id] .hero-actions { align-items: center; }
body[data-page-id] :is(.hero-lede, .hero-clarification, .service-hero-note) { max-width: 66ch; }
body[data-page-id] :is(.hero-clarification, .service-hero-note) { font-size: 1rem; font-weight: 400; line-height: 1.6; }
body[data-page-id] :is([id], .trustfit-step) { scroll-margin-top: 110px; }
body[data-page-id] :is(.engagement-text-link, .engagement-assessment-link a) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #235f4b;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 700;
}
.engagement-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 20px;
  background: #fff;
  border: 2px solid #226c55;
  border-radius: 8px;
  transform: translateY(-150%);
}
.engagement-skip-link:focus { transform: translateY(0); }
/* Native details keeps the compact menu usable if scripting is unavailable. */
body[data-page-id] .site-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--engagement-edge);
  min-height: 80px;
  background: #f7faf8;
  backdrop-filter: none;
}
body[data-page-id] .brand { flex: 0 0 auto; }
body[data-page-id] .brand img { width: 180px; }
body[data-page-id] .engagement-menu { margin: 0; min-width: 0; }
body[data-page-id] .engagement-menu > summary {
  cursor: pointer;
  padding: 9px 14px;
  border: 1px solid #b4cbc0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  background: #fff;
}
body[data-page-id] .nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 22px;
  padding: 0;
  margin: 0;
  max-width: none;
  width: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  white-space: normal;
}
body[data-page-id] .nav-links a,
body[data-page-id] .quick-answer-trigger {
  min-height: 44px;
  padding: 9px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  text-align: left;
  color: #24454d;
  cursor: pointer;
  line-height: 1.5;
}
body[data-page-id] .nav-links a[aria-current="page"] {
  color: #235f4b;
  text-decoration: underline;
  text-underline-offset: 5px;
}
body[data-page-id] .nav-links .engagement-contact-link {
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: #0e1f24;
}
.quick-answer-trigger { display: none; }
.quick-answer-trigger:not([hidden]) { display: inline-flex; align-items: center; }
body[data-page-id] [hidden] { display: none !important; }
@media (min-width: 1080px) {
  body[data-page-id] .engagement-menu::details-content { display: block; content-visibility: visible; }
  @supports selector(details::details-content) {
    body[data-page-id] .engagement-menu > summary { display: none; }
  }
}
/* Home: one service summary and one visible company story. */
body[data-page-id="home"] .hero-section { grid-template-areas: "copy visual" "scope visual"; grid-template-rows: auto auto; padding-top: 36px; padding-bottom: 32px; gap: 18px 48px; }
body[data-page-id="home"] .hero-copy { grid-area: copy; }
body[data-page-id="home"] .hero-clarification { grid-area: scope; margin: 0; }
body[data-page-id="home"] #homepage-title { font-size: clamp(2.55rem, 4.8vw, 4.15rem); max-width: 12ch; }
body[data-page-id="home"] .hero-lede { font-size: 1.2rem; line-height: 1.6; }
body[data-page-id="home"] .hero-actions { margin-top: 0; }
body[data-page-id="home"] .hero-visual { grid-area: visual; display: block; margin: 0; min-width: 0; align-self: center; }
body[data-page-id="home"] .welcome-photo { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 1000 / 563; object-fit: contain; }
body[data-page-id="home"] .welcome-hero-photo figcaption { margin-top: 10px; color: #4b6269; font-size: .8125rem; line-height: 1.5; }
body[data-page-id="home"] .signal-band { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; padding: 16px var(--engagement-edge); margin-inline: 0; }
body[data-page-id="home"] .signal-band div { min-height: 0; padding: 0; background: transparent; }
body[data-page-id="home"] .signal-band p { margin: 0; font-size: 1rem; line-height: 1.5; }
body[data-page-id="home"] .package-card { padding: 27px; }
body[data-page-id="home"] .package-card h3 { font-size: 1.65rem; }
body[data-page-id="home"] .package-card :is(p, li) { font-size: 1rem; }
body[data-page-id="home"] .service-summary-actions { margin-top: 24px; }
body[data-page-id="home"] .engagement-company { background: #edf5f0; }
body[data-page-id="home"] .outcome-grid { gap: 24px; }
body[data-page-id="home"] .outcome-card { padding: 0 24px 0 0; min-height: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
body[data-page-id="home"] .outcome-grid .outcome-card :is(h3, p) { color: #0e1f24; }
body[data-page-id="home"] .outcome-grid .outcome-card p { color: #4b6269; }
body[data-page-id="home"] .faq-section { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 48px; }
body[data-page-id="home"] .welcome-faq { padding: 0; }
body[data-page-id="home"] .welcome-faq > summary { padding: 18px 0; font-size: 1rem; }
body[data-page-id="home"] .welcome-faq > p { margin: 0 0 18px; }
body[data-page-id="home"] #contact { margin-top: 8px; }
/* One parallel comparison. Original full service terms remain in native disclosures. */
body[data-page-id="services"] .service-hero { display: block; padding-top: 48px; padding-bottom: 8px; }
body[data-page-id="services"] .service-hero-copy { max-width: 900px; }
body[data-page-id="services"] .service-hero h1 { max-width: 24ch; }
body[data-page-id="services"] .service-hero .hero-lede { font-size: 1.125rem; }
body[data-page-id="services"] .service-hero .hero-actions { margin-top: 24px; }
body[data-page-id="services"] .service-hero-note { margin-top: 22px; }
.engagement-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 20px; }
.engagement-service-card { min-width: 0; background: #fff; border: 1px solid #ccdcd3; border-radius: 18px; padding: 28px; }
body[data-page-id] .engagement-service-card .service-number { margin-bottom: 12px; font-size: .875rem; color: #226c55; }
body[data-page-id] .engagement-service-card h2 { font-size: 1.7rem; min-height: 2.4em; margin-bottom: 14px; }
body[data-page-id] .engagement-service-card > p:not(.service-number) { min-height: 9.6em; margin-bottom: 20px; }
.engagement-deliverable { padding: 20px 0; border-top: 1px solid #dce8e0; border-bottom: 1px solid #dce8e0; min-height: 12.6em; }
body[data-page-id] .engagement-deliverable h3 { font-size: .875rem; margin-bottom: 8px; font-weight: 750; }
.engagement-deliverable p { margin: 0; }
.engagement-typical-items { padding-left: 20px; margin: 22px 0; min-height: 9.6em; }
.engagement-typical-items li { margin-bottom: 8px; }
.engagement-scope { border-top: 1px solid #dce8e0; }
.engagement-scope summary { padding: 18px 0 0; cursor: pointer; font-size: 1rem; line-height: 1.5; font-weight: 700; color: #235f4b; }
.engagement-scope[open] summary { padding-bottom: 18px; }
body[data-page-id] .engagement-scope .service-detail-grid { display: block; padding: 0; }
body[data-page-id] .engagement-scope .service-subcard { padding: 20px 0; margin: 0; border: 0; border-top: 1px solid #dce8e0; border-radius: 0; background: transparent; box-shadow: none; }
body[data-page-id] .engagement-scope h3 { font-size: 1.05rem; }
body[data-page-id] .engagement-scope :is(p, li) { font-size: 1rem; }
body[data-page-id] .engagement-scope ul { padding-left: 20px; }
body[data-page-id] .engagement-comparison-note { margin: 22px 0 0; max-width: 86ch; }
.engagement-assessment-link { padding: 24px var(--engagement-edge); background: #edf5f0; border-block: 1px solid #dce8e0; }
.engagement-assessment-link p { margin: 0; max-width: 86ch; }
body[data-page-id="services"] .service-process .eyebrow { color: #8ce0b8; }
body[data-page-id="services"] .service-process-grid { gap: 24px; }
body[data-page-id="services"] .service-process-grid li { border: 0; padding: 0; box-shadow: none; background: transparent; }
/* Keep step labels intact while allowing the adjacent description to wrap. */
body[data-page-id="services"] .service-process-grid > li > span { flex: 0 0 2ch; white-space: nowrap; overflow-wrap: normal; }
body[data-page-id="services"] .service-process-grid > li > div { min-width: 0; }
body[data-page-id="services"] .service-faq-list { display: block; max-width: 920px; }
.engagement-faq { border-bottom: 1px solid #ccdcd3; }
.engagement-faq summary { padding: 18px 0; cursor: pointer; color: #0e1f24; font-weight: 700; }
.engagement-faq p { margin: 0 0 18px; max-width: 80ch; }
/* About and assessment share restrained spacing and a compact inquiry boundary. */
body[data-page-id] :is(.about-hero, .assessment-hero) { max-width: none; padding-top: 48px; padding-bottom: 40px; gap: 40px; }
body[data-page-id] :is(.about-hero-copy, .assessment-hero-copy) { display: block; }
body[data-page-id] :is(.about-hero-card, .assessment-snapshot) { box-shadow: none; padding: 28px; border-radius: 18px; }
body[data-page-id] :is(.about-hero-card, .assessment-snapshot) .eyebrow { color: #8ce0b8; }
body[data-page-id] :is(.about-hero, .assessment-hero) .hero-lede { font-size: 1.125rem; }
body[data-page-id] :is(.about-card, .assessment-card) { box-shadow: none; padding: 24px; }
body[data-page-id] :is(.about-card, .assessment-card) .card-kicker { font-size: .8rem; }
body[data-page-id] .assessment-card.featured .card-kicker { color: #8ce0b8; }
body[data-page-id] .assessment-card p + p { margin-top: 12px; }
body[data-page-id="assessment"] .assessment-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body[data-page-id] .qualification-panel { padding: 0; border: 0; box-shadow: none; background: transparent; }
body[data-page-id] .qualification-card { padding: 22px; box-shadow: none; }
body[data-page-id] .engagement-audience { background: #edf5f0; }
body[data-page-id] .engagement-audience .section-heading { margin-bottom: 0; max-width: 900px; }
body[data-page-id] .assessment-process { padding-top: 48px; padding-bottom: 48px; }
body[data-page-id] .assessment-process ol { box-shadow: none; }
body[data-page-id] :is(.about-final-cta, .assessment-final-cta) .form-warning { margin-top: 16px; font-weight: 400; font-size: 1rem; line-height: 1.6; }
/* Existing Service Fit controls and results keep all current IDs and behavior. */
body[data-page-id="trustfit"] .trustfit-section { padding-top: 36px; }
body[data-page-id="trustfit"] .trustfit-choice-card { min-height: 90px; }
body[data-page-id="trustfit"] .trustfit-choice-card small { font-size: 1rem; }
/* Policy information precedes the existing, lower-emphasis service bridge. */
body[data-page-id] .legal-page { max-width: 900px; margin-inline: auto; padding: 48px 32px; }
body[data-page-id] .legal-page h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 24px; }
body[data-page-id] .legal-page h2 { margin-top: 32px; font-size: clamp(1.45rem, 2.4vw, 1.8rem); }
body[data-page-id] .legal-page :is(p, li) { font-size: 1rem; line-height: 1.75; }
body[data-page-id] .legal-page a:not(.button) { text-decoration: underline; text-underline-offset: 3px; }
body[data-page-id] .legal-page .policy-note { padding: 18px 20px; margin-block: 24px; border-radius: 10px; }
body[data-page-id] .legal-page .policy-note p { margin-bottom: 0; }
body[data-page-id] .policy-bridge { display: block; padding: 28px 0 0; margin-top: 36px; background: transparent; border: 0; border-top: 1px solid #ccdcd3; border-radius: 0; box-shadow: none; }
body[data-page-id] .policy-bridge .eyebrow { margin-bottom: 10px; }
body[data-page-id] .policy-bridge h2 { margin-top: 0; font-size: 1.3rem; }
body[data-page-id] .policy-actions { justify-content: flex-start; gap: 12px 24px; }
body[data-page-id] .policy-actions .button { padding: 8px 0; background: transparent; color: #235f4b; border: 0; box-shadow: none; text-decoration: underline; text-underline-offset: 4px; }
body[data-page-id] .site-footer { padding: 32px var(--engagement-edge); gap: 24px; }
body[data-page-id] .footer-links { display: flex; gap: 4px 22px; flex-wrap: wrap; }
body[data-page-id] .footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; padding: 8px 0; }
body[data-page-id] .site-footer > img { width: 190px; }
body[data-page-id] .site-footer > p { font-size: 1rem; }
@media (max-width: 1079px) {
  body[data-page-id] .site-header { min-height: 76px; padding-block: 12px; }
  body[data-page-id] .engagement-menu .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 6% 20px;
    background: #fff;
    border-bottom: 1px solid #ccdcd3;
    box-shadow: 0 12px 20px #0e1f2412;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
  }
  body[data-page-id] .nav-links .engagement-contact-link { justify-content: center; margin-top: 8px; }
  body[data-page-id] .engagement-service-card { padding: 22px; }
  body[data-page-id] .engagement-service-card > p:not(.service-number) { min-height: 12.8em; }
  body[data-page-id="assessment"] .assessment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page-id] :is(.about-hero, .assessment-hero) { grid-template-columns: minmax(0, 1fr); }
  body[data-page-id] :is(.about-hero-card, .assessment-snapshot) { max-width: 760px; }
}
@media (max-width: 1000px) {
  body[data-page-id="home"] .hero-section { grid-template-areas: "copy" "visual" "scope"; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  body[data-page-id] .engagement-service-grid { grid-template-columns: minmax(0, 1fr); }
  body[data-page-id] .engagement-service-card :is(h2, .engagement-deliverable, .engagement-typical-items),
  body[data-page-id] .engagement-service-card > p:not(.service-number) { min-height: 0; }
  body[data-page-id] .engagement-service-card { padding: 26px; }
  body[data-page-id] .engagement-scope .service-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  body[data-page-id="home"] .faq-section { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
/* Anchor legacy static mobile headers; Services keeps its existing sticky header. */
@media screen and (max-width: 780px) {
  body[data-page-id]:not([data-page-id="services"]) .site-header { position: relative; }
}
@media (max-width: 700px) {
  body[data-page-id] { --engagement-edge: 6%; }
  body[data-page-id] .brand img { width: 160px; }
  body[data-page-id] .site-header { gap: 16px; min-height: 72px; }
  body[data-page-id] .section { padding-top: 34px; padding-bottom: 34px; }
  body[data-page-id] :is(.hero-section, .service-hero, .about-hero, .assessment-hero) { padding-top: 32px; padding-bottom: 26px; }
  body[data-page-id="home"] .hero-section { grid-template-areas: "copy" "visual" "scope"; gap: 20px; grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  body[data-page-id="home"] #homepage-title { font-size: clamp(2.3rem, 9.5vw, 2.9rem); margin-bottom: 16px; }
  body[data-page-id="home"] .hero-lede { font-size: 1.125rem; margin-bottom: 18px; }
  body[data-page-id="home"] .hero-actions .button { width: auto; min-width: 0; }
  body[data-page-id="home"] .hero-actions { flex-direction: row; align-items: center; gap: 10px 24px; }
  body[data-page-id="home"] .hero-clarification { margin: 0; }
  body[data-page-id="home"] .signal-band { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 16px; }
  body[data-page-id="home"] .outcome-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  body[data-page-id="home"] .outcome-card p { margin-bottom: 0; }
  body[data-page-id="home"] .package-card { padding: 24px; }
  body[data-page-id] .engagement-scope .service-detail-grid { display: block; }
  body[data-page-id] :is(.about-grid, .about-grid.four-up, .qualification-grid, .assessment-grid, .assessment-process) { grid-template-columns: minmax(0, 1fr); }
  body[data-page-id="assessment"] .assessment-grid { grid-template-columns: minmax(0, 1fr); }
  body[data-page-id] .legal-page { padding: 32px 6%; }
  body[data-page-id] .policy-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  body[data-page-id] .policy-actions .button { min-width: 0; width: auto; justify-content: flex-start; }
  body[data-page-id] :is([id], .trustfit-step) { scroll-margin-top: 92px; }
  body[data-page-id] .site-footer { align-items: flex-start; padding-block: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body[data-page-id] *, body[data-page-id] *::before, body[data-page-id] *::after { animation: none !important; transition: none !important; }
}
@media print {
  body[data-page-id] .site-header { position: static; }
  body[data-page-id] .engagement-menu { display: none; }
  body[data-page-id] .engagement-scope::details-content { display: block; content-visibility: visible; }
  body[data-page-id] .engagement-service-grid { display: block; }
  body[data-page-id] .engagement-service-card { break-inside: avoid; margin-block: 20px; }
}
