/* Final, page-scoped layer. Shared heading sizes, navigation and forms stay authoritative. */
.matching-page { --match-gold: #806A3B; overflow: visible; }
.matching-page *, .matching-page *::before, .matching-page *::after { box-sizing: border-box; }
.matching-page .match-shell { width: calc(100% - 112px); max-width: 1280px; margin-inline: auto; min-width: 0; }
.matching-page > .seo-breadcrumb { width: calc(100% - 112px); max-width: 1280px; padding-inline: 0; margin: 20px auto 0; }
.matching-page > .seo-breadcrumb, .matching-page > .seo-breadcrumb :is(ol,li,a) { font-family: var(--font-primary); font-size: 13px; font-weight: 400; line-height: 1.75; color: var(--muted); }
.matching-page :is(h1,h2,h3,p,figure,dl,dd) { margin: 0; }
.matching-page :is(p,dd,a) { word-break: keep-all; overflow-wrap: anywhere; }
.matching-page p, .matching-page dd { font-size: 16px; line-height: 1.75; color: var(--muted); }
.matching-page h3 { font-size: 23px; color: var(--green); }
.matching-page .match-label { display: block; margin-bottom: 20px; color: var(--match-gold); font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
.matching-page .match-heading > p { margin-top: 24px; max-width: 38ch; }
.matching-page .match-lead { font-size: 18px; line-height: 1.8; }
.matching-page .match-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.matching-page .match-actions .button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; width: auto; text-align: center; white-space: normal; }
.matching-page .match-text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; margin-top: 24px; color: var(--green); font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
/* Specificity beats the legacy main > section:not(...) spacing, without affecting other pages. */
.matching-page > section.match-section:not(.match-hero) { padding-block: 84px; border-top: 1px solid var(--line); }
.matching-page > section.match-section.match-hero { padding-block: 64px 80px; border-top: 0; }
.matching-page .match-hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 64px; align-items: center; }
.matching-page .match-hero-copy { min-width: 0; }
.matching-page .match-hero-copy .match-lead { margin-top: 28px; max-width: 36ch; }
.matching-page .match-hero-copy .match-actions { margin-top: 30px; }
.matching-page .match-hero-media { min-width: 0; }
.matching-page .match-hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: center; }
.matching-page .match-hero-media figcaption { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
.matching-page .match-needs { background: var(--soft); }
.matching-page .match-needs-grid { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 96px; }
.matching-page .match-needs-list > div { display: grid; grid-template-columns: 136px minmax(0,1fr); gap: 24px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.matching-page .match-needs-list > div:first-child { padding-top: 0; }
.matching-page dt { color: var(--green); font-size: 16px; font-weight: 600; line-height: 1.75; word-break: keep-all; }
.matching-page > section.match-section.match-fit { padding-block: 96px; scroll-margin-top: 84px; }
.matching-page .match-fit-heading { max-width: 760px; }
.matching-page .match-fit-heading > p { max-width: 62ch; margin-top: 24px; }
.matching-page .match-fit-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; margin-top: 48px; }
.matching-page .match-fit-grid article { min-width: 0; border-top: 1px solid var(--green); padding-top: 24px; }
.matching-page .match-index { display: block; color: var(--match-gold); font-size: 32px; font-weight: 400; line-height: 1.3; margin-bottom: 28px; }
.matching-page .match-fit-grid .match-question { margin-top: 18px; color: var(--green); font-weight: 600; }
.matching-page .match-fit-grid p + p { margin-top: 16px; }
.matching-page .match-fit-grid .match-prompt { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.matching-page .match-wide-heading { max-width: 760px; }
.matching-page .match-wide-heading > p { max-width: 62ch; }
.matching-page .match-language-list { margin-top: 44px; border-top: 1px solid var(--green); }
.matching-page .match-language-list > article { display: grid; grid-template-columns: 140px minmax(0,1fr) 220px; align-items: start; gap: 48px; padding-block: 36px; border-bottom: 1px solid var(--line); }
.matching-page .match-language-name .match-label { margin-bottom: 10px; }
.matching-page .match-language-questions p + p { margin-top: 20px; }
.matching-page .match-language-questions strong { display: block; margin-bottom: 6px; color: var(--green); font-size: 14px; font-weight: 600; }
.matching-page .match-course-links { display: grid; align-content: start; }
.matching-page .match-course-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding-block: 8px; border-bottom: 1px solid var(--line); color: var(--green); font-size: 14px; }
.matching-page .match-note { max-width: 80ch; margin-top: 24px; font-size: 13px; }
.matching-page > section.match-section.match-connect { padding-block: 80px; background: var(--soft); }
.matching-page .match-connect-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 96px; }
.matching-page .match-connect-list > div { padding-block: 20px; border-bottom: 1px solid var(--line); }
.matching-page .match-connect-list > div:first-child { padding-top: 0; }
.matching-page .match-connect-list dd { margin-top: 8px; }
.matching-page .match-related { display: flex; flex-wrap: wrap; column-gap: 28px; row-gap: 4px; margin-top: 32px; padding-bottom: 28px; border-bottom: 1px solid #78968C; }
.matching-page .match-related a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
@media (min-width: 641px) and (max-width: 1199px) {
  .matching-page .match-shell, .matching-page > .seo-breadcrumb { width: calc(100% - 48px); }
  .matching-page > section.match-section:not(.match-hero) { padding-block: 78px; }
  .matching-page > section.match-section.match-hero { padding-block: 48px 64px; }
  .matching-page .match-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .matching-page .match-hero-copy { max-width: 800px; }
  .matching-page .match-hero-copy .match-lead { max-width: 60ch; }
  .matching-page .match-hero-media { max-width: 760px; }
  .matching-page :is(.match-needs-grid,.match-connect-grid) { grid-template-columns: 1fr; gap: 32px; }
  .matching-page .match-heading > p { max-width: 62ch; }
  .matching-page .match-fit-grid { gap: 28px; }
  .matching-page .match-language-list > article { grid-template-columns: 100px minmax(0,1fr); gap: 24px; }
  .matching-page .match-course-links { grid-column: 2; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
  .matching-page > section.match-section:is(.match-fit,.match-connect) { padding-block: 78px; }
}
@media (max-width: 640px) {
  .matching-page .match-shell, .matching-page > .seo-breadcrumb { width: calc(100% - 40px); }
  .matching-page > .seo-breadcrumb { margin-top: 16px; }
  .matching-page > section.match-section:not(.match-hero), .matching-page > section.match-section:is(.match-fit,.match-connect) { padding-block: 64px; }
  .matching-page > section.match-section.match-hero { padding-block: 36px 48px; }
  .matching-page .match-hero-grid, .matching-page .match-needs-grid, .matching-page .match-connect-grid { grid-template-columns: 1fr; gap: 28px; }
  .matching-page .match-desktop-break { display: none; }
  .matching-page .match-lead { font-size: 16px; }
  .matching-page .match-hero-copy .match-lead { margin-top: 22px; }
  .matching-page .match-hero-copy .match-actions { margin-top: 24px; }
  .matching-page .match-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .matching-page .match-actions .button { width: 100%; }
  .matching-page .match-needs-list > div { grid-template-columns: 1fr; gap: 8px; }
  .matching-page .match-fit-grid { grid-template-columns: 1fr; gap: 36px; margin-top: 32px; }
  .matching-page .match-fit-grid article { padding-top: 20px; }
  .matching-page .match-index { margin-bottom: 16px; font-size: 28px; }
  .matching-page .match-fit-grid .match-prompt { margin-top: 20px; padding-top: 16px; }
  .matching-page .match-language-list { margin-top: 32px; }
  .matching-page .match-language-list > article { grid-template-columns: 1fr; gap: 24px; padding-block: 30px; }
  .matching-page .match-course-links { grid-column: auto; }
  .matching-page .match-related { column-gap: 24px; margin-top: 24px; }
}
