/* Shared site theme. Base layout: site.css; page-specific components: page stylesheets. */
:root {
  --teal: #00667d;
  --teal-dark: #00566a;
  --paper: #fff;
  --cream: #f3f8f8;
  --ink: #202a2e;
  --muted: #58666c;
  --charcoal: #202a2e;
  --rule: #dce5e7;
  --line: #dce5e7;
  --rule-light: #c9dfe3;
  --teal-soft: #eaf4f5;
  --type-section: clamp(30px, 3.1vw, 44px);
  --type-band: clamp(28px, 2.8vw, 38px);
  --type-subheading: 26px;
}
body { background: #fff; color: var(--ink); }
h1, h2, h3 { letter-spacing: -.025em; }
h1, h2, .heading-display, .heading-section, .heading-band { font-weight: 600; }
p { line-height: 1.85; }
.site-header { position: relative; inset: auto; color: var(--ink); background: #fff; border-bottom: 1px solid var(--rule); }
.site-header .header-inner { min-height: 88px; }
.site-header .brand { color: var(--teal); }
.site-header .header-link { color: var(--muted); border: 0; }
.site-header .header-cta { min-width: 172px; color: #fff; background: var(--teal); border-radius: 100px; padding: 14px 24px; }
.button, .contact-submit { min-height: 56px; border-radius: 100px; font-size: 16px; font-weight: 600; padding: 16px 26px; box-shadow: none; }
.button-light, .contact-submit { background: var(--teal); color: #fff; border-color: var(--teal); }
.button-outline { background: #fff; color: var(--teal); border-color: var(--rule); }
.button:hover, .header-cta:hover, .contact-submit:hover { box-shadow: 0 3px 12px #00667d20; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.accent-line, .process-band h2::after, .ownership-v4-emphasis::after, .contact-title-ja::after { display: none; }
.kicker, .section-kicker, .eyebrow { color: var(--teal); font-weight: 600; }
.hero, .mg-hero, .np-hero { color: var(--ink); background: #fff; }
.hero .hero-stage { width: min(calc(100% - var(--content-inline)), var(--content-width)); height: auto; min-height: 0; padding-block: 64px 32px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 32px; }
.hero .hero-copy { width: auto; padding: 0; }
.hero #hero-title { --heading-size: clamp(32px, 3.7vw, 50px); font-weight: 600; }
.hero-title-line { white-space: normal; }
.hero-title-mobile-line { display: inline; }
.hero .hero-lead { font-size: 16px; color: var(--muted); margin-top: 26px; }
.hero .hero-visual { position: relative; inset: auto; width: 100%; border-radius: 32px; background: var(--teal-soft); overflow: hidden; }
.hero .hero-visual img { display: block; width: 100%; height: auto; }
.hero-annotation { display: none; }
.hero-features { flex-wrap: wrap; row-gap: 12px; }
.hero-features li { padding-inline: 10px; color: var(--teal); }
.hero .under-link { color: var(--teal); border-color: var(--rule); }
.hero-actions .button { min-width: 0; max-width: 100%; }
.process-band { background: var(--cream); min-height: 220px; border-radius: 24px; width: min(calc(100% - 48px), 1344px); margin: 0 auto 48px; padding: 56px 40px; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.5fr); gap: 40px; }
.process-band h2 { font-size: clamp(26px, 2.6vw, 36px); }
.process-band li strong { position: relative; font-size: 15px; }
.process-band li:not(:last-child)::after { content: none; }
@media (min-width: 901px) {
 .process-band li:not(:last-child) strong::after { content: ""; position: absolute; top: 50%; right: -3px; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); }
}
.needs-stage, .service-stage, .roles-stage, .faq-panel { background: #fff; }
.needs-photo { border-radius: 24px; overflow: hidden; }
.needs-story, .activation-copy p { color: var(--muted); }

.offer-panel { background: var(--teal); }
.offer-panel .pricing-heading, .offer-panel .pricing-heading .heading-section, .offer-panel .pricing-kicker { color: #fff; }
.offer-panel .pricing-heading > .service-visual { background: transparent; }
.pricing-stage { padding-block: 88px; }
.price-main { background: #fff; border: 1px solid var(--rule); border-radius: 28px; padding: 36px; }
.ownership-v4-panel, .ownership-v4-panel + .ownership-v4-panel { border: 1px solid var(--rule); border-radius: 24px; padding: 28px; background: #fff; }
.ownership-v4-note { background: var(--cream); border: 0; border-radius: 16px; padding: 24px; }
.nonprofit-stage { background: var(--teal-soft); color: var(--ink); }
.nonprofit-stage h2, .nonprofit-stage p { color: var(--ink); }
.faq-list { border-top: 0; }
.faq-item { border: 1px solid var(--rule); border-radius: 16px; margin-bottom: 12px; background: #fff; }
.faq-item button { padding: 24px; font-weight: 600; }
.faq-answer { padding: 0 24px 24px; color: var(--muted); }
.final-cta .final-cta-inner { align-items: center; }
.site-footer { background: #fff; color: var(--muted); border-top: 1px solid var(--rule); }
.site-footer .brand { color: var(--teal); }
.mg-hero, .np-hero { min-height: 0; }
.mg-hero .mg-hero-inner, .np-hero .np-hero-inner { min-height: 0; padding-block: 64px 32px; align-items: center; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; }
.mg-hero-copy, .np-hero-copy { padding: 0; }
.mg-hero-copy .hero-catchphrase, .np-hero-copy .hero-catchphrase { --heading-size: clamp(32px,3.6vw,48px); font-size: clamp(32px,3.6vw,48px); font-weight: 600; }
.mg-hero-audience, .np-hero-audience { border: 0;  border-radius: 0; background: transparent; color: var(--teal); padding: 0; line-height: 1.6; }
.mg-hero-copy .kicker, .np-hero-copy .section-kicker { color: var(--teal); }
.mg-hero-price > small, .mg-hero-sub-link, .np-hero-sub-link { color: var(--muted); }
.mg-hero-visual, .np-hero-media { align-self: center; border-radius: 28px; overflow: hidden; background: var(--teal-soft); }
.mg-hero-visual img, .np-hero-media img { width: 100%; height: auto; }
.mg-visual-label { display: none; }
.mg-checks, .mg-scope, .np-eligibility, .np-hearing { background: var(--cream); }
.mg-check-grid section, .mg-source-list article, .np-check-grid section { border: 1px solid var(--rule); border-radius: 20px; background: #fff; padding: 28px; }
.mg-flow, .np-flow { background: var(--teal-soft); color: var(--ink); }
.mg-section-heading-light h2, .mg-section-heading-light .kicker, .mg-section-heading-light > p:last-child, .np-section-heading-light, .np-section-heading-light .section-kicker { color: var(--teal); }
.mg-flow-list li, .np-flow-list li { border-color: var(--rule); }
.mg-scope-columns section { border: 1px solid var(--rule); border-radius: 20px; padding: 24px; background: #fff; }
.np-cta { background: var(--cream); color: var(--ink); }
.np-cta .section-kicker { color: var(--teal); }
.contact-hero { background: var(--cream); color: var(--ink); padding-block: 64px; }
.contact-hero-inner { padding: 0; }
.contact-title-en { color: var(--teal); }
.contact-section { background: #fff; }
.contact-form-panel { border: 1px solid var(--rule); border-radius: 24px; padding: 36px; }
.contact-form input:not([type=checkbox]), .contact-form select, .contact-form textarea { background: #fff; border-color: #a5b7bd; border-radius: 8px; }
/* Knowledge base uses a separate base stylesheet. */
.knowledge-hero { color: var(--ink); background: var(--cream); border-radius: 28px; }
.knowledge-kicker { color: var(--teal); }
.article-card { border: 1px solid var(--rule); border-radius: 20px; background: #fff; }
.tag-filter-item, .pagination-button { border-radius: 100px; }
@media (max-width: 820px) {
  .hero .hero-stage { grid-template-columns: 1fr; min-height: 0; padding-block: 40px 24px; gap: 32px; }
  .hero .hero-copy { max-width: 640px; }
  .hero .hero-visual { max-width: 580px; margin-inline: auto; }
  .hero #hero-title { --heading-size: clamp(30px,5.5vw,44px); }
  .process-band { grid-template-columns: 1fr; padding: 32px 24px; gap: 56px; }
  .mg-hero .mg-hero-inner, .np-hero .np-hero-inner { grid-template-columns: 1fr; min-height: 0; padding-block: 40px 24px; gap: 32px; }
  .mg-hero-visual, .np-hero-media { width: 100%; max-width: 580px; margin-inline: auto; }
  .mg-hero-copy .hero-catchphrase, .np-hero-copy .hero-catchphrase { --heading-size: clamp(30px,5.5vw,44px); font-size: clamp(30px,5.5vw,44px); }
}
@media (max-width: 520px) {
  .site-header .header-inner { min-height: 76px; }
  .site-header .header-cta { min-width: 0; padding: 12px 16px; font-size: 12px; }
  .site-header .brand { font-size: 22px; }
  .hero-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero-features li, .hero-features li:first-child { padding: 0; border: 0; }
  .hero-features strong { font-size: 12px; white-space: nowrap; }
  .price-main, .contact-form-panel { padding: 24px 20px; }
  .ownership-v4-panel, .ownership-v4-panel + .ownership-v4-panel { padding: 24px 20px; }
  .faq-item button { padding: 20px 16px; }
  .faq-answer { padding: 0 16px 20px; }
  .mg-scope-columns section { padding: 20px 16px; }
  .contact-hero { padding-block: 40px; }
}
/* Grouped in-page navigation, shared by service pages and future fixed pages. */
html { scroll-padding-top: 0; scroll-behavior: smooth; }
main [id] { scroll-margin-top: 64px; }
.fixed-page-hero { background: var(--cream); padding-block: 72px; }
.fixed-page-section { padding-block: 72px; border-bottom: 1px solid var(--rule); }
.fixed-page-section h2 { margin: 0 0 32px; font-size: var(--type-section); }
.fixed-page-section h3 { margin-top: 32px; }
.fixed-page-section .fixed-page-copy { max-width: 800px; }
.mg-check-grid, .mg-source-list, .mg-flow-list, .mg-scope-columns { gap: 20px; background: transparent; border: 0; }
.mg-flow-list li, .np-flow-list li { background: #fff; color: var(--ink); border: 1px solid var(--rule); border-radius: 20px; padding: 24px; }
.mg-flow-list p, .np-flow-list p { color: var(--muted); }
.mg-flow-icon { color: var(--teal); }

/* Reset old dark-section and tightly joined-panel styles for the light design. */
.service-stage { color: var(--ink); min-height: 0; }
.activation-layout { display: grid; width: min(calc(100% - var(--content-inline)), var(--content-width)); padding-block: 72px; column-gap: 48px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.activation-copy, .activation-map { padding: 0; }
.activation-copy h2, .activation-step h3, .activation-step-final h3 { color: var(--teal); }
.activation-copy h2 { margin-top: 24px; }
.activation-copy .activation-kicker { color: var(--teal); }
.activation-title-line, .nonprofit-copy h2::after, .activation-end strong::after { display: none; }
.activation-map { --step-icon-size: 64px; --step-gap: 24px; }
.activation-steps { display: grid; gap: 0; }
.activation-step, .activation-step:first-child { min-height: 116px; grid-template-columns: var(--step-icon-size) minmax(0,1fr); gap: var(--step-gap); padding: 0 0 24px; border: 0; border-radius: 0; background: transparent; }
.activation-icon { width: var(--step-icon-size); height: var(--step-icon-size); border: 1px solid var(--teal); color: var(--teal); background: #fff; }
.activation-icon .material-symbols { font-size: 34px; }
.activation-step .activation-icon::after { display: none; }
.activation-step h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.5; }
.activation-step p { color: var(--muted); font-weight: 400; line-height: 1.7; }
.activation-end { margin-top: 0; padding-top: 0; min-height: var(--step-icon-size); transform: none; grid-template-columns: var(--step-icon-size) minmax(0,1fr); gap: var(--step-gap); }
.activation-end > strong { color: var(--teal); font-size: 26px; }
.activation-complete-icon { width: var(--step-icon-size); height: var(--step-icon-size); margin: 0; }
.activation-layout > .service-button { width: min(100%, 406px); margin: 32px 0 0; align-self: start; }
.ownership-v4-grid { gap: 24px; border: 0; }
.np-flow-list { gap: 24px; }
.np-check-number, .np-flow-list > li > span, .mg-source-type { color: var(--teal); }
.footer-legal { border-color: var(--rule); }
.footer-legal nav a, .footer-legal small { color: var(--muted); }
.footer-legal nav a:hover, .footer-legal nav a:focus-visible { color: var(--teal); }
.faq-item { overflow: hidden; }
@media (max-width: 820px) {
 .activation-layout { grid-template-columns: 1fr; grid-template-areas: 'copy' 'map' 'cta'; gap: 32px; padding-block: 48px; }
 .activation-layout > .service-button { margin: 0; width: 100%; }
}
@media (max-width: 520px) {
 .activation-map { --step-icon-size: 56px; --step-gap: 18px; }
}

.activation-step::before { content: ""; display: block; position: absolute; left: calc(var(--step-icon-size) / 2); top: calc(var(--step-icon-size) + 8px); bottom: 8px; border-left: 1px dashed var(--teal); }
.activation-step > div { min-width: 0; padding: 4px 0 20px; border-bottom: 1px solid var(--rule); }
@media (max-width: 520px) {
 .process-band { width: calc(100% - var(--content-inline)); padding: 28px 16px; gap: 40px; }
 .process-band ol { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); }
 .process-band li span { top: -36px; font-size: 15px; }
 .process-band li strong { font-size: 12px; }
}
/* Remove legacy absolute hero positioning at every desktop breakpoint. */
.mg-hero .mg-hero-inner, .np-hero .np-hero-inner { display: grid; }
.mg-hero-copy, .np-hero-copy { position: relative; inset: auto; width: auto; }
.mg-hero-visual, .np-hero-media { position: relative; inset: auto; width: 100%; transform: none; }
.mg-hero-copy .hero-catchphrase > .mg-hero-nowrap { white-space: normal; }
.article-list { gap: 24px; border: 0; }
.footer-main nav a { color: var(--muted); }
@media (max-width: 820px) {
 .mg-hero-visual, .np-hero-media { max-width: 580px; margin-inline: auto; }
}

.process-mobile-break { display: none; }
@media (max-width: 520px) { .process-mobile-break { display: inline; } }
.mg-hero-sub-link, .np-hero-sub-link { display: flex; width: fit-content; }
.mg-source-list article + article { border: 1px solid var(--rule); }
.np-flow-list > li:nth-last-child(-n + 2) { border-bottom: 1px solid var(--rule); }

/* Font-independent chevron for action buttons. */
.button .button-chevron { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.hero .hero-stage, .activation-layout { margin-inline: auto; }

/* Preserve meaning: a continuous process is distinct from independent checks. */
.mg-flow, .np-flow { background: var(--teal-dark); color: #fff; --rule-light: rgba(255,255,255,.35); }
.mg-flow .mg-section-heading h2, .np-flow .np-section-heading h2 { color: #fff; }
.mg-flow .kicker, .np-flow .section-kicker { color: var(--mustard); }
.mg-flow .mg-section-heading > p:last-child, .np-flow .np-section-heading > p:last-child { color: #fff; }
.mg-flow-list { gap: 0; border-top: 1px solid var(--rule-light); }
.mg-flow-list li { position: relative; border: 0; border-radius: 0; border-bottom: 1px solid var(--rule-light); background: transparent; color: #fff; padding: 28px; }
.mg-flow-list li:not(:nth-child(3n)) { border-right: 1px solid var(--rule-light); }
.mg-flow-icon { color: #fff; }
.mg-flow-icon .mg-flow-icon-ink { stroke: var(--teal-dark); }
.flow-number { position: absolute; right: 28px; top: 28px; color: var(--mustard); font-family: var(--font-latin); font-size: 18px; font-weight: 700; }
.mg-flow-list p, .np-flow-list p { color: #fff; }
.np-flow-list { column-gap: 48px; row-gap: 0; }
.np-flow-list li { border: 0; border-top: 1px solid var(--rule-light); border-radius: 0; background: transparent; color: #fff; padding: 28px 0; }
.np-flow-list > li:nth-last-child(-n + 2) { border-bottom: 1px solid var(--rule-light); }
.np-flow-list > li > span { color: var(--mustard); }
/* The visual labels describe what the migration covers, so keep them visible. */
.mg-hero-visual figcaption { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 24px; padding: 20px; }
.mg-hero-visual .mg-visual-label { position: static; display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-size: 14px; }
.mg-hero-visual .mg-visual-rule { display: none; }
.mg-hero-visual .mg-visual-label .material-symbols { font-size: 24px; }
@media (max-width: 1120px) and (min-width: 821px) {
 .mg-flow-list li:not(:nth-child(3n)) { border-right: 0; }
 .mg-flow-list li:nth-child(odd) { border-right: 1px solid var(--rule-light); }
}
@media (max-width: 820px) {
 .mg-flow-list li, .mg-flow-list li:not(:nth-child(3n)) { border-right: 0; }
 .mg-flow-list li { padding-left: 0; padding-right: 0; }
 .flow-number { right: 0; }
 .np-flow-list > li:nth-last-child(2) { border-bottom: 0; }
}

/* Shared SVG illustration system: teal linework, flat surfaces, HTML labels. */
.service-visual { color: var(--teal); width: 100%; min-width: 0; padding: 20px; background: #f3f8f8; border-radius: 24px; }
.service-visual .service-art { display: block; width: 100%; height: auto; overflow: visible; }
.service-visual .visual-labels { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; list-style: none; margin: 0; padding: 0 0 12px; }
.service-visual .visual-labels li { color: var(--teal); font-size: 14px; line-height: 1.6; font-weight: 500; }
.hero .hero-visual, .mg-hero-visual, .np-hero-media { background: transparent; overflow: visible; }
.hero .hero-visual { padding: 0; }
.needs-photo { overflow: visible; background: transparent; }
.needs-photo > img { border-radius: inherit; }
.pricing-heading > .service-visual { margin-top: 32px; max-width: 440px; }
.nonprofit-inner > .service-visual { max-width: 420px; align-self: center; }
.final-cta-media { position: relative; inset: auto; width: 100%; max-width: 520px; margin: 0; transform: none; align-self: center; }
.final-cta-media .service-visual { background: #fff; }
.mg-intro-illustration { width: 100%; margin: 32px 0 0; }
.mg-intro-illustration > img { border-radius: 24px; }
.mg-hero-visual figcaption { border-top: 1px solid var(--rule); margin-top: 16px; }
@media (max-width: 820px) {
 .nonprofit-inner > .service-visual { margin-inline: auto; }
 .final-cta-media { margin-inline: auto; }
}
@media (max-width: 520px) {
 .service-visual { padding: 12px; border-radius: 18px; }
 .service-visual .visual-labels { gap: 6px 12px; padding-bottom: 8px; }
 .service-visual .visual-labels li { font-size: 13px; }
}

/* Photographic main visuals: editorial scale and asymmetric corners, inspired by the corporate service page. */
.hero .hero-stage { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; }
.hero .hero-visual { border-radius: 0; }
.mv-photo { --mv-word-size: clamp(48px,5.6vw,78px); --mv-inset: 22px; position: relative; padding: 52px 0 var(--mv-inset) var(--mv-inset); isolation: isolate; }
.mv-photo::before { content: ''; position: absolute; z-index: -1; inset: 86px 32px 0 0; background: var(--teal); border-radius: 0 0 0 76px; }
.mv-photo .mv-photo-word { display: block; position: absolute; z-index: 2; top: 0; left: 0; margin: 0; font-family: var(--font-latin); font-size: var(--mv-word-size); font-weight: 400; letter-spacing: -.045em; line-height: 1.1; color: var(--teal); }
.hero .mv-photo img, .mg-hero-visual .mv-photo img, .np-hero-media .mv-photo img { display: block; position: relative; z-index: 1; width: 100%; height: auto; border-radius: 76px 8px 76px 8px; }
.mg-hero-visual .mv-photo--migration img { aspect-ratio: auto; object-fit: cover; object-position: 50% 40%; }
.mg-hero-visual, .np-hero-media { border-radius: 0; }
@media (max-width: 820px) {
 .hero .hero-stage { grid-template-columns: 1fr; gap: 32px; }
 .hero .hero-visual, .mg-hero-visual, .np-hero-media { max-width: 640px; }
 .mv-photo { --mv-word-size: clamp(44px,9vw,68px); }
 .mg-hero-visual .mv-photo--migration { max-width: 480px; margin-inline: auto; }
}
@media (max-width: 520px) {
 .mv-photo { --mv-inset: 14px; padding-top: 38px; }
 .mv-photo::before { inset: 64px 22px 0 0; border-bottom-left-radius: 48px; }
 .hero .mv-photo img, .mg-hero-visual .mv-photo img, .np-hero-media .mv-photo img { border-radius: 48px 6px 48px 6px; }
}

/* One-line section navigation; overflow stays inside the bar on narrow screens. */
.page-toc { position: sticky; top: 0; z-index: 30; margin-bottom: 40px; background: #fff; }
/* clip avoids creating a separate scrolling ancestor for sticky navigation. */
body:has(.page-toc) { overflow-x: clip; }
main:has(> .page-toc) [id] { scroll-margin-top: 112px; }
.page-toc-inner { width: min(calc(100% - var(--content-inline)),1248px); margin-inline: auto; display: flex; align-items: center; gap: 24px; border-block: 1px solid var(--rule); }
.page-toc-scroll { min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--rule-light) transparent; }
.page-toc-links { display: flex; align-items: center; width: max-content; min-width: 100%; list-style: none; margin: 0; padding: 6px 4px; }
.page-toc-links li { flex: 1 0 auto; }
.page-toc-links li + li { border-left: 1px solid var(--rule); }
.page-toc-links a { display: block; padding: 14px 20px; color: var(--ink); font-size: 14px; line-height: 1.5; white-space: nowrap; text-align: center; text-decoration: none; }
.page-toc-links a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 820px) {
 .page-toc-inner { gap: 16px; }
 .page-toc-links a { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Home conversion areas: service referral band and closing consultation CTA. */
.home-page .nonprofit-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  min-height: 0;
  padding-block: 48px;
}
.home-page .nonprofit-copy { flex: 1; }
.home-page .nonprofit-stage h2 { font-size: clamp(26px, 2.6vw, 36px); white-space: normal; }
.home-page .nonprofit-stage .button { width: auto; flex: 0 0 auto; min-height: 56px; padding: 18px 24px; font-size: 15px; }
.final-cta { background: var(--teal); color: #fff; }
.final-cta .final-cta-inner { display: block; min-height: 0; padding-block: 88px; text-align: center; }
.final-cta-copy { padding: 0; margin-inline: auto; max-width: 860px; }
.final-cta h2 { color: #fff; font-size: clamp(30px, 4vw, 52px); line-height: 1.45; }
.final-cta .section-kicker { color: #fff; margin-bottom: 20px; }
.final-cta p:not(.section-kicker) { color: #fff; margin: 24px 0 32px; font-weight: 400; }
.final-cta .button { background: #fff; color: var(--teal); border-color: #fff; }
.final-cta .button:hover { background: var(--teal-soft); border-color: var(--teal-soft); }
@media (max-width: 820px) {
  .home-page .nonprofit-inner { flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 36px; }
  .home-page .nonprofit-stage .button { width: 100%; }
  .final-cta .final-cta-inner { padding-block: 64px; }
}

/* Shared navigation: expanded fallback, mobile disclosure when JS is ready. */
.site-header .global-nav { gap: 20px; flex-wrap: nowrap; }
.site-header .header-link { white-space: nowrap; }
.site-header .header-link[aria-current="page"] { color: var(--teal); border-bottom: 2px solid currentColor; }
.site-header .header-cta { min-width: 160px; }
.site-header .nav-toggle { display: none; }
.site-header a:focus-visible, .site-header button:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
@media (max-width: 1120px) {
  .site-header .header-inner { display: flex; flex-wrap: wrap; gap: 0; padding-block: 12px; justify-content: space-between; }
  .site-header .brand { font-size: 22px; }
  .site-header .nav-toggle:not([hidden]) { position: fixed; top: 12px; right: 16px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 56px; min-height: 52px; padding: 6px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; box-shadow: 0 3px 14px rgb(0 0 0 / 10%); color: var(--teal); font: inherit; cursor: pointer; }
  .nav-toggle-label { font-size: 10px; line-height: 1.2; }
  .nav-toggle-icon { position: relative; display: block; width: 24px; height: 18px; }
  .nav-toggle-icon span { position: absolute; left: 0; width: 24px; height: 2px; background: currentColor; }
  .nav-toggle-icon span:nth-child(1) { top: 0; }
  .nav-toggle-icon span:nth-child(2) { top: 8px; }
  .nav-toggle-icon span:nth-child(3) { top: 16px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) { top: 8px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) { top: 8px; transform: rotate(-45deg); }
  .site-header .global-nav { display: flex; flex-direction: column; align-items: stretch; flex: 0 0 100%; gap: 0; padding-top: 12px; }
  .site-header .global-nav .header-link { display: block; padding: 16px 8px; border: 0; font-size: 15px; }
  .site-header .header-cta { margin-top: 12px; min-width: 0; padding: 14px; font-size: 15px; }
  .site-header.nav-ready .header-inner { padding-right: 72px; }
  .site-header.nav-ready .global-nav { display: none; position: fixed; z-index: 1; top: 80px; left: 16px; right: 16px; width: auto; max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; padding: 12px 20px 20px; border: 1px solid var(--rule); border-radius: 16px; background: #fff; box-shadow: 0 8px 30px rgb(0 0 0 / 12%); }
  .site-header.nav-ready.nav-open .global-nav { display: flex; }
}

.hero-service-title { margin: 0 0 24px; color: var(--teal); font-family: var(--font-body); font-size: 18px; font-weight: 600; line-height: 1.6; }
/* MV lettering uses the original responsive top inset and sits above the photo. */
.mg-hero-copy .mg-hero-audience, .np-hero-copy .np-hero-audience { padding: 0; }


/* Align service titles and the following catchphrases across all three heroes. */
.hero .hero-copy, .mg-hero-copy, .np-hero-copy { align-self: start; }
.hero .hero-service-title, .mg-hero-copy .hero-service-title, .np-hero-copy .hero-service-title { margin: 0 0 24px; }
.hero .hero-catchphrase, .mg-hero-copy .hero-catchphrase, .np-hero-copy .hero-catchphrase { margin: 0; }

.hero .hero-copy { width: 100%; max-width: none; margin-inline: 0; }


/* Shared hero description typography and spacing. */
.hero .hero-lead, .mg-hero-copy .mg-hero-lead, .np-hero-copy .np-hero-lead {
  width: 100%;
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: normal;
}

/* Identical primary MV buttons across the three service pages. */
.hero-actions .button, .mg-hero-copy .button, .np-hero-copy .button {
  width: min(100%, 500px);
  min-width: 0;
  min-height: 64px;
  padding: 16px 26px;
  font-size: 16px;
  line-height: 1.5;
}

.np-hero-copy .button { margin-top: 32px; }

/* Shared MV image frame and top alignment. */
.hero .hero-visual, .mg-hero-visual, .np-hero-media {
  align-self: start;
  width: 100%;
  max-width: none;
  margin: 0;
}
.mg-hero-visual .mv-photo--migration { max-width: none; margin: 0; }
@media (max-width: 820px) {
  .hero .hero-copy, .mg-hero-copy, .np-hero-copy { min-height: 0; }
  .hero .hero-visual, .mg-hero-visual, .np-hero-media { max-width: 640px; margin-inline: auto; }
}

/* Responsive typography: phrase-based wrapping, without forced short lines. */
main h2.heading-section {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.45;
  letter-spacing: -.025em;
  text-wrap: balance;
}
main h2.balanced-heading > .heading-chunk {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  vertical-align: top;
}
.hero-catchphrase, main h1, main h2, main h3, .faq-item button > span:first-child,
.knowledge-strip strong { text-wrap: balance; }
.process-band #process-title { text-wrap: balance; }
.process-band #process-title strong { display: inline-block; margin-left: .3em; }
.final-cta h2 { max-width: 100%; }
@media (max-width: 820px) {
  .hero-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero-features li, .hero-features li:first-child, .hero-features li:last-child {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    padding: 0; border: 0; min-width: 0; text-align: center;
  }
  .hero-features strong { white-space: normal; font-size: 12px; line-height: 1.5; }
}
@media (max-width: 520px) {
  main #mg-intro-title { font-size: 26px; }
  .ownership-v4-panel > header { gap: 12px; }
  .ownership-v4-icon { flex-basis: 36px; width: 36px; height: 36px; }
  .ownership-v4-icon .material-symbols { font-size: 32px; }
  .ownership-v4-panel h3 { font-size: 20px; line-height: 1.5; }
  .process-band #process-title { font-size: 26px; }
  .price-main .price-migration-link { text-wrap: balance; }
}
/* Override the legacy ID rule that kept the entire second line unbreakable. */
main #mg-intro-title > .heading-chunk { display: inline-block; white-space: normal; }
.roles-stage .ownership-v4-heading h2 { line-height: 1.45; }

.heading-word { display: inline-block; }

/* Descriptions fill their existing content column; do not rebalance prose. */
.hero .hero-lead,
.mg-hero-copy .mg-hero-lead,
.np-hero-copy .np-hero-lead,
.needs-story p,
.activation-copy .activation-lead,
.ownership-v4-heading > p:last-child,
.mg-section-heading > p:last-child,
.mg-price-block > p:last-child,
.contact-complete > p:not(.kicker) {
  width: 100%;
  max-width: none;
  text-wrap: wrap;
}
.mg-section-heading, .np-section-heading, .mg-source-intro,
.final-cta .final-cta-copy, .contact-section .contact-guide {
  width: 100%;
  max-width: none;
}

@media (max-width: 820px) {
  .knowledge-stage .knowledge-desktop-break { display: none; }
}

/* Introductory copy immediately above a page contents navigation. */
.contact-guide > p:has(+ .pricing-toc) { font-weight: 400; }

/* Shared GWS BASE wordmark. */
:is(.site-header, .site-footer) .brand { display: inline-flex; flex-direction: row; align-items: baseline; gap: 8px; }
:is(.site-header, .site-footer) .brand-name { line-height: 1; }
:is(.site-header, .site-footer) .brand-byline { font-family: Arial, sans-serif; font-size: 10px; font-weight: 400; line-height: 1.2; letter-spacing: .02em; }

.site-header .brand { transform: translateY(3px); }
