/* Shared navigation and the task-first layout. Existing DMD brand tokens stay authoritative. */
html[lang="en"] [data-locale="es"], html[lang="es"] [data-locale="en"] { display: none !important; }
.skip-link { position: fixed; top: -6rem; left: 1rem; z-index: 100; padding: .7rem 1rem; background: white; color: var(--green); font: 700 .9rem var(--ui); }
.skip-link:focus { top: .6rem; }
.site-header { position: relative; z-index: 40; gap: 1.4rem; padding: .85rem max(1.25rem, calc((100vw - 1280px)/2)); flex-wrap: nowrap; }
.site-header .brand { flex-shrink: 0; font-size: .77rem; }
.site-header .brand small { font-size: .64rem; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: .3rem; margin-left: auto; }
.site-nav a, .mobile-menu a { display: flex; align-items: center; min-height: 44px; padding: .55rem .75rem; color: var(--paper); font: 700 .82rem/1.35 var(--ui); text-decoration: none; }
.site-nav a[aria-current], .mobile-menu a[aria-current] { background: var(--paper); color: var(--green); border-radius: 3px; }
.site-nav a:hover, .mobile-menu a:hover { text-decoration: underline; text-underline-offset: .3em; }
.site-header :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.site-header .language-switch { flex-shrink: 0; }
.language-home { color: var(--paper); font: .78rem var(--ui); }
.mobile-menu { display: none; }
.site-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; padding: .75rem 0; color: var(--muted); font: .8rem/1.5 var(--ui); }
.site-breadcrumbs a { display: inline-flex; align-items: center; min-height: 36px; color: var(--green); text-underline-offset: .2em; }
.breadcrumbs { font-size: .8rem; line-height: 1.5; }
[id] { scroll-margin-top: 1.2rem; }
.nav-home .hero { grid-template-columns: minmax(460px, .9fr) minmax(0, 1.1fr); min-height: 0; overflow: visible; }
.nav-home .hero-copy { padding: 2rem clamp(1.25rem, 3vw, 3rem); justify-content: center; }
.nav-home .hero h1 { font-size: clamp(2.1rem, 3.4vw, 3rem); max-width: 20ch; line-height: 1.08; }
.nav-home .hero .eyebrow { margin-bottom: .6rem; font-size: .78rem; }
.nav-home .hero-context { max-width: 50ch; font: .9rem/1.5 var(--ui); margin-top: .8rem; }
.nav-home .hero-search { max-width: 640px; margin-top: 1.2rem; padding: 1rem 0 0; background: transparent; color: var(--paper); border: 0; border-top: 1px solid #555047; border-radius: 0; }
.nav-home .hero-search-heading { display: block; margin-bottom: .55rem; }
.nav-home .hero-search-heading label { font: 700 .95rem var(--ui); }
.nav-home .hero-search-heading p { text-align: left; color: #CFC8BB; margin-top: .35rem; font-size: .78rem; }
.nav-home .search-row { display: block; }
.nav-home .hero-search .typeahead { position: static; max-height: 220px; margin-top: .4rem; border: 1px solid var(--rule); }
.nav-home .search-row input { padding: .75rem; font-size: 1rem; border: 1px solid var(--rule); border-radius: 2px; }
.nav-home .hero-search .route-choice { margin-top: .9rem; padding: 0; background: transparent; border: 0; }
.nav-home .route-choice legend { float: none; width: auto; font: 700 .9rem var(--ui); margin: 0 0 .5rem; }
.nav-home .direction-grid { grid-template-columns: 1fr 1fr; gap: .65rem; border: 0; }
.nav-home .direction { display: flex; align-items: center; gap: .5rem; min-height: 50px; padding: .65rem .75rem; color: var(--green); background: white; border: 1px solid var(--rule); border-radius: 3px; overflow: visible; }
.nav-home .direction input { position: static; opacity: 1; flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.nav-home .direction span { font: 700 .82rem/1.3 var(--ui); }
.nav-home .direction::after { display: none; }
.nav-home .direction:has(input:checked) { outline: 2px solid var(--green); outline-offset: -2px; background: var(--surface-sage); }
.nav-home .direction:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 3px; }
.nav-home #submit-button { width: 100%; min-height: 52px; margin-top: .85rem; border-radius: 3px; font-size: .94rem; background: var(--gold); color: var(--ink); }
.nav-home #submit-button:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
.nav-home .hero-search .hint { margin-top: .7rem; font: .78rem/1.4 var(--ui); color: #CFC8BB; }
.nav-home .hero-examples { margin-top: .85rem; }
.nav-home .hero-examples__links { gap: .7rem; }
.nav-home .hero-examples a { min-height: 44px; }
.nav-home .hero-examples a span { font-size: .9rem; }
.nav-home .hero-examples a small { font-size: .74rem; }
.nav-home .hero-visual { clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); min-height: 100%; overflow: hidden; }
.nav-home .hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; transform: none; animation: none; }
.nav-home .route-lab { padding: 0; }
.nav-home .route-lab:has(.decision-panel[hidden]):has(.message:empty) { min-height: 0; }
.nav-home .trust-strip { padding-block: .7rem; font-size: .8rem; }
.nav-home .coverage-note { font-size: .8rem; padding-block: .65rem; }
.directory-teaser.nav-directory { display: block; padding: 0; margin: 2.2rem auto; background: transparent; color: var(--ink); }
.nav-directory h2, .hub-intro h1 { max-width: none; margin: 0 0 .5rem; font-size: clamp(1.85rem, 3vw, 2.8rem); line-height: 1.12; font-weight: 600; }
.nav-directory .eyebrow, .hub-intro .eyebrow { color: var(--green); }
.nav-directory > p { max-width: 65ch; color: var(--muted); margin: 0 0 1.2rem; line-height: 1.5; }
.destination-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.destination-card, .nav-directory a.destination-card { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; min-width: 0; padding: 1.25rem; color: var(--ink); background: white; border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; }
.destination-card .nav-icon { width: 36px; height: 36px; color: var(--green); flex-shrink: 0; }
.destination-card strong { font: 600 1.3rem/1.15 var(--reading); }
.destination-card p { margin: 0; font: .87rem/1.55 var(--ui); color: var(--muted); }
.destination-card .card-action { margin-top: auto; padding-top: .45rem; color: var(--green); font: 700 .82rem/1.4 var(--ui); text-decoration: underline; text-underline-offset: .25em; }
.destination-card.is-primary, .nav-directory a.destination-card.is-primary { background: var(--green); color: white; border-color: var(--green); }
.destination-card.is-primary :is(.nav-icon,p,.card-action) { color: white; }
.destination-card:hover, .nav-directory a.destination-card:hover { border-color: var(--green); background: var(--surface-sage); color: var(--ink); }
.destination-card.is-primary:hover :is(.nav-icon,p,.card-action) { color: var(--green); }
.destination-card:focus-visible, .nav-directory a.destination-card:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.hub-main { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto 3rem; }
.hub-main .site-breadcrumbs { width: 100%; }
.hub-intro { padding: 1.4rem 0 1.8rem; }
.hub-intro > p:last-child { max-width: 67ch; margin-bottom: 0; line-height: 1.6; }
.checklist-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checklist-choices .destination-card { padding: 1.6rem; }
.checklist-choices img { width: 90px; height: 78px; object-fit: contain; }
.hub-note { margin-top: 1.5rem; font: .9rem/1.6 var(--ui); color: var(--muted); }
.hub-note a { color: var(--green); text-underline-offset: .2em; }
.hub-main .country-contact { width: 100%; margin-top: 0; }
.hub-main .country-contact__card { border-color: var(--rule); border-radius: 4px; }
.hub-main .country-contact__copy h2 { font-size: clamp(1.65rem, 2.5vw, 2.4rem); line-height: 1.12; }
  .hub-main .country-contact__kicker, .hub-main .country-contact__boundary { font-size: .78rem; }
.country-toggle { margin-bottom: 1.5rem; border-block: 1px solid var(--rule); }
.country-toggle > summary { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 0; cursor: pointer; list-style: none; color: var(--green); }
.country-toggle > summary::-webkit-details-marker { display: none; }
.country-toggle > summary::marker { content: ''; }
.country-toggle__name { font: 600 clamp(1.5rem, 3vw, 2rem)/1.15 var(--reading); }
.country-toggle__description { font: .85rem/1.5 var(--ui); color: var(--muted); }
.country-toggle__icon { margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--rule); border-radius: 50%; }
.country-toggle__icon::before { content: '+'; font: 400 1.5rem/1 var(--ui); }
.country-toggle[open] .country-toggle__icon::before { content: '−'; }
.country-toggle > summary:hover .country-toggle__name { text-decoration: underline; text-underline-offset: .2em; }
.country-toggle > summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.country-toggle .country-contact { padding-bottom: 1.5rem; }
.country-invitation { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.country-invitation h2 { margin: 0 0 .65rem; font: 600 clamp(1.4rem, 2.5vw, 1.8rem)/1.2 var(--reading); }
.country-invitation p { max-width: 63ch; margin: 0; color: var(--muted); font: .9rem/1.6 var(--ui); }
.country-invitation__cta { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 48px; padding: .8rem 1.2rem; background: var(--green); color: white; font: 700 .9rem/1.4 var(--ui); text-decoration: none; border-radius: 3px; }
.country-invitation__cta:hover { text-decoration: underline; text-underline-offset: .2em; }
.country-invitation__cta:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.result-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.2rem; margin: 1.25rem 0; padding: .85rem 1rem; background: white; border: 1px solid var(--rule); font: .85rem/1.5 var(--ui); }
.result-nav > div, .result-jumps { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.result-nav a { color: var(--green); min-height: 44px; display: inline-flex; align-items: center; }
.result-nav button { min-height: 44px; padding: .5rem .8rem; font-size: .85rem; }
.result-nav .result-jump { background: transparent; color: var(--green); border: 0; padding-inline: .3rem; text-decoration: underline; text-underline-offset: .25em; }
.result-nav .result-jump:hover, .result-nav .result-jump:focus-visible { background: var(--surface-sage); }
.agreement-note { width: min(1180px, calc(100% - 2.5rem)); margin: .7rem auto; color: var(--muted); font: .8rem/1.5 var(--ui); }
.nav-home .social-desk__status { margin-top: 1.2rem; }
.nav-home .social-card { min-height: 280px; padding: 1.25rem; }
.nav-home .social-card h3 { margin-top: 1rem; font-size: 1.45rem; line-height: 1.2; }
.nav-home .social-card p { font-size: .9rem; }
.result .result-header h2 { font-size: clamp(1.7rem, 2.8vw, 2.8rem); line-height: 1.17; }
.nav-home .how-it-works { padding-block: 1.8rem; }
.nav-home .explainer-lead h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.nav-home .verified-routes { margin-bottom: 2.5rem; padding-top: 1.8rem; border-top-width: 1px; }
.nav-home .verified-routes__lead h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.nav-home .verified-routes__grid a { grid-template-rows: auto 80px minmax(2.4em, auto) auto auto; padding: 1rem; }
.nav-home .verified-routes__illustration { height: 80px; }
.read-guide-label { font: 700 .78rem var(--ui); color: var(--green); text-decoration: underline; text-underline-offset: .2em; }
.nav-home #social-desk { padding-block: 2rem; }
.nav-home #social-desk h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.12; }
.nav-home .newsletter-cta { margin-top: 1.5rem; }
.nav-home .guide-contact { padding-block: 2.2rem; }
.institution-hero__inner, .pathway-hero__inner, .providers-hero__inner { min-height: 0; padding-block: 1.8rem; gap: 2rem; align-items: start; }
.institution-hero h1, .pathway-hero h1, .providers-hero h1 { max-width: 26ch; font-size: clamp(2rem, 3.2vw, 3.1rem); line-height: 1.1; }
.institution-hero__lede, .pathway-hero__lede, .providers-hero__lede { font-size: 1rem; line-height: 1.55; }
.pathway-hub, .providers-directory, .providers-standards { padding-block: 1.8rem; }
.institution-directory, .directory-method, .directory-sources, .pathway-builder { padding-block: 1.8rem; }
.directory-method { border-bottom-width: 1px; }
.directory-pathway-callout { margin-top: 1rem; padding: 1.3rem; gap: 1.3rem; }
.directory-method h2, .institution-directory__heading h2, .directory-sources h2, .directory-pathway-callout h2, .pathway-builder__intro h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; }
.pathway-hub__intro h2, .providers-directory__intro h2, .providers-standards__intro h2 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.12; max-width: 24ch; }
.pathway-hub__card > span { font-size: .76rem; }
.pathway-hub__card a { font-size: .85rem; min-height: 44px; }
.provider-detail-options { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto 1.5rem; border-top: 1px solid var(--rule); }
.provider-detail-options > summary { padding: 1rem 0; font: 700 .9rem/1.4 var(--ui); cursor: pointer; }
.provider-detail-options .providers-standards { width: 100%; }
@media (max-width: 1120px) {
  .nav-home .hero { grid-template-columns: 1fr; }
  .nav-home .hero-copy { width: min(100%, 760px); margin-inline: auto; }
  .nav-home .hero-visual { min-height: 0; height: auto; aspect-ratio: 3 / 2; clip-path: none; }
  .nav-home .hero-visual img { object-fit: contain; }
  .site-header { flex-wrap: wrap; gap: .5rem 1rem; }
  .site-nav { display: none; }
  .mobile-menu { display: block; margin-left: auto; }
  .mobile-menu summary { min-height: 44px; display: flex; align-items: center; padding: .5rem .7rem; cursor: pointer; color: var(--paper); border: 1px solid #888074; border-radius: 3px; font: 700 .86rem var(--ui); list-style: none; }
  .mobile-menu summary::after { content: '+'; margin-left: .75rem; font-size: 1.15rem; }
  .mobile-menu[open] summary::after { content: '−'; }
  .mobile-menu nav { position: absolute; left: 0; right: 0; top: 100%; padding: .6rem 1rem 1rem; color: white; background: var(--ink); box-shadow: 0 8px 12px #0003; }
  .mobile-menu a { padding: .8rem; min-height: 48px; }
  .destination-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .site-header { padding: .6rem 1rem; }
  .site-header .brand { font-size: .67rem; letter-spacing: .05em; }
  .site-header .brand small { font-size: .56rem; }
  .site-header .language-switch { display: flex; border: 0; }
  .site-header .language-switch button { padding: .3rem; min-width: 36px; min-height: 44px; font-size: .72rem; }
  .nav-home .hero { display: flex; flex-direction: column; }
  .nav-home .hero-copy { padding: 1.35rem 1rem; }
  .nav-home .hero h1 { max-width: 22ch; font-size: 2rem; }
  .nav-home .hero-context { font-size: .86rem; }
  .nav-home .hero-search { margin-top: 1rem; padding: 1rem 0 0; }
  .nav-home .hero-visual { min-height: 0; height: auto; aspect-ratio: 3 / 2; clip-path: none; }
  .nav-home .hero-visual img { height: 100%; object-fit: contain; }
  .nav-home .hero-examples__links { grid-template-columns: 1fr 1fr 1fr; gap: .55rem; }
  .nav-home .hero-examples a { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .3rem; border-bottom: 0; }
  .nav-home .hero-examples a span { font-size: .82rem; }
  .nav-home .hero-examples a small { font-size: .72rem; }
  .nav-home .direction { padding: .6rem .5rem; gap: .4rem; }
  .nav-home .direction span { font-size: .76rem; }
  .destination-grid, .checklist-choices { grid-template-columns: 1fr; }
  .nav-directory .destination-card { display: grid; grid-template-columns: 38px 1fr; gap: .35rem .8rem; padding: 1rem; }
  .nav-directory .nav-icon { grid-row: 1 / 4; width: 30px; height: 30px; }
  .nav-directory .destination-card strong, .nav-directory .destination-card p, .nav-directory .card-action { grid-column: 2; }
  .nav-directory .destination-card strong { font-size: 1.2rem; }
  .institution-hero__inner, .pathway-hero__inner, .providers-hero__inner { grid-template-columns: 1fr; padding-block: 1.4rem; gap: 1rem; }
  .institution-hero__aside, .pathway-hero__status, .providers-hero__disclosure { padding: 1rem; }
  .nav-home .verified-routes__lead { display: block; }
  .nav-home .verified-routes__lead > p { border: 0; padding: 0; margin-top: .8rem; }
  .nav-home .verified-routes__grid { grid-template-columns: 1fr; }
  .nav-home .verified-routes__grid a { grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto auto auto auto; gap: .4rem 1rem; }
  .nav-home .verified-routes__grid a > :not(img) { grid-column: 2; grid-row: auto; }
  .nav-home .verified-routes__grid a > img { grid-column: 1; grid-row: 1 / 5; align-self: center; width: 88px; height: 88px; }
  .nav-home .verified-routes__grid strong { font-size: 1.1rem; }
  .site-breadcrumbs { font-size: .77rem; padding-block: .5rem; }
  .hub-main .country-contact__identity { display: grid; grid-template-columns: 80px minmax(0, 1fr); grid-template-rows: auto; align-items: center; gap: .8rem; }
  .hub-main .country-contact__identity .country-contact__logo { grid-column: 1; grid-row: 1; min-height: 70px; padding: .4rem; }
  .hub-main .country-contact__identity .country-contact__kicker { grid-column: 2; grid-row: 1; }
  .country-toggle > summary { flex-wrap: wrap; gap: .4rem 1rem; position: relative; padding-right: 60px; }
  .country-toggle__description { width: 100%; }
  .country-toggle__icon { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
  .country-invitation { align-items: flex-start; flex-direction: column; }
  .result-nav { gap: .3rem; }
  .result-jumps { width: 100%; }
  .result .result-header h2 { font-size: 1.75rem; }
}
@media (max-width: 370px) {
  .site-header { gap: .4rem; padding-inline: .7rem; }
  .site-header .brand { max-width: 144px; }
  .site-header .language-switch button { min-width: 31px; }
  .mobile-menu summary { padding-inline: .5rem; }
  .nav-home .direction-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .skip-link, .site-breadcrumbs, .result-nav { display: none !important; } }
