/* Shared header: identical geometry on the map, directory and editorial pages. */
html { scrollbar-gutter: stable; scroll-behavior: auto; scroll-padding-top: 6rem; }
.rwn-site-header, .rwn-site-header * { box-sizing: border-box; }
.rwn-site-header { position: sticky; top: 0; z-index: 100; margin: 0; border-bottom: 1px solid #d7e0e4; background: #fff; color: #153e5c; font: 400 1rem/1.4 system-ui, sans-serif; }
.rwn-site-header__inner { display: flex; align-items: center; gap: 1.5rem; width: min(76rem, calc(100% - 3rem)); min-height: 80px; margin: 0 auto; padding: .5rem 0; }
.rwn-site-header .rwn-site-brand { display: flex; align-items: center; flex-shrink: 0; gap: .65rem; color: #153e5c; text-decoration: none; }
.rwn-site-brand img { display: block; width: 44px; height: 44px; object-fit: contain; }
.rwn-site-brand strong { display: block; font-size: .95rem; font-weight: 750; line-height: 1.3; }
.rwn-site-brand small { display: block; margin-top: .15rem; color: #526774; font-size: .7rem; line-height: 1.3; }
.rwn-site-header .rwn-site-nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.rwn-site-header .rwn-site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 0; border: 0; color: #153e5c; background: none; font-size: .875rem; font-weight: 600; line-height: 1.4; white-space: nowrap; text-decoration: none; }
.rwn-site-header a::after { content: none; }
.rwn-site-header .rwn-site-nav a:is(:hover,[aria-current="page"]) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .4em; }
.rwn-site-header :is(a,select,summary):focus-visible { outline: 3px solid #2875a8; outline-offset: 3px; border-radius: 2px; }
.rwn-site-tools { display: flex; align-items: center; gap: .75rem; }
.rwn-language-bar { display: flex; align-items: center; gap: .1rem; padding: 0; margin: 0; color: #153e5c; font: 400 .8125rem/1.5 system-ui, sans-serif; }
.rwn-language-bar label { display: flex; align-items: center; }
.rwn-language-bar select { width: 6.25rem; min-height: 44px; padding: .5rem .3rem; border: 0; border-radius: 0; background: #fff; color: #153e5c; font: inherit; cursor: pointer; }
.rwn-language-info { position: relative; margin: 0; }
.rwn-language-info summary { display: grid; place-items: center; width: 30px; min-height: 44px; padding: 0; cursor: pointer; list-style: none; }
.rwn-language-info summary::-webkit-details-marker { display: none; }
.rwn-language-info summary span { display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid #74868e; border-radius: 50%; font-size: .7rem; font-weight: 600; }
.rwn-language-info p { position: absolute; right: 0; top: 100%; z-index: 120; width: min(21rem, calc(100vw - 2rem)); max-width: none; margin: .4rem 0 0; padding: 1rem; border: 1px solid #d7e0e4; border-radius: 6px; background: #fff; color: #40525c; box-shadow: 0 8px 24px #153e5c14; font: 400 .875rem/1.6 system-ui, sans-serif; }
.rwn-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[data-rwn-label] > [lang="es"] { display: none; }
html[lang="es"] [data-rwn-label] > [lang="en"] { display: none; }
html[lang="es"] [data-rwn-label] > [lang="es"] { display: inline; }
.rwn-site-header .rwn-page-menu { display: none; position: relative; margin: 0; }
.rwn-site-header .rwn-page-menu > summary { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .65rem; border: 1px solid #c8d5db; border-radius: 4px; background: #fff; color: #153e5c; font: 600 .875rem/1.4 system-ui, sans-serif; cursor: pointer; list-style: none; }
.rwn-site-header .rwn-page-menu > summary::-webkit-details-marker { display: none; }
.rwn-site-header .rwn-page-menu nav { position: absolute; top: calc(100% + .5rem); right: 0; display: grid; gap: 0; width: min(20rem, calc(100vw - 2rem)); max-height: calc(100dvh - 7rem); overflow: auto; overscroll-behavior: contain; padding: .5rem; border: 1px solid #d7e0e4; border-radius: 6px; background: #fff; box-shadow: 0 8px 24px #153e5c14; }
.rwn-site-header .rwn-page-menu nav a { display: flex; align-items: center; min-height: 48px; padding: .65rem .75rem; border: 0; color: #153e5c; font: 600 .9375rem/1.4 system-ui, sans-serif; text-decoration: none; }
.rwn-site-header .rwn-page-menu nav a:is(:hover,[aria-current="page"]) { background: #edf4f7; text-decoration: underline; text-underline-offset: .2em; }
html[lang="es"] .rwn-professional .resource-row__reviewed::before { content: "Fuente consultada "; }
@media (max-width: 68rem) {
  .rwn-site-header .rwn-site-nav { display: none; }
  .rwn-site-header .rwn-site-tools { margin-left: auto; }
  .rwn-site-header .rwn-page-menu { display: block; }
}
@media (max-width: 40rem) {
  .rwn-site-header__inner { width: calc(100% - 1.5rem); min-height: 72px; gap: .5rem; }
  .rwn-site-header .rwn-site-brand { flex-shrink: 1; min-width: 0; gap: .4rem; }
  .rwn-site-brand img { width: 36px; height: 36px; }
  .rwn-site-brand strong { max-width: 7.5rem; font-size: .875rem; }
  .rwn-site-brand small { display: none; }
  .rwn-site-tools { gap: .25rem; flex-shrink: 0; }
  .rwn-language-bar select { width: 5.3rem; }
  .rwn-language-info summary { width: 24px; }
  .rwn-language-info p { right: -4rem; }
}
@media print { .rwn-site-header, .rwn-language-bar { display: none; } }

/* The same compact footer on the map, directory and information pages. */
.rwn-site-footer { margin: 0; padding: 2.5rem 0; border-top: 4px solid #377a4b; background: #153e5c; color: #fff; font: 400 .875rem/1.5 system-ui, sans-serif; }
.rwn-site-footer, .rwn-site-footer * { box-sizing: border-box; }
.rwn-site-footer__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 2rem; width: min(76rem, calc(100% - 3rem)); margin-inline: auto; }
.rwn-site-footer__inner > * { min-width: 0; overflow-wrap: anywhere; }
.rwn-site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.rwn-site-footer strong { display: block; margin-bottom: .5rem; color: #fff; font-size: .9375rem; }
.rwn-site-footer .rwn-site-footer__brand p { margin: 0; color: #d4e2eb; font-size: .875rem; }
.rwn-site-footer a, .rwn-site-footer button { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding: .45rem 0; border: 0; background: none; color: #fff; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.rwn-site-footer a:hover, .rwn-site-footer button:hover { text-decoration: underline; text-underline-offset: .2em; }
.rwn-site-footer :is(a,button):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 56rem) { .rwn-site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .rwn-site-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; width: calc(100% - 2.5rem); } }
@media print { .rwn-site-footer { display: none; } }

.rwn-professional .result-access-facts { min-width:0; max-width:70ch; margin:.5rem 0 .75rem; color:#40594c; font-size:.875rem; line-height:1.55; overflow-wrap:anywhere; }
.rwn-professional .result-access-facts p { margin:.35rem 0; }
.rwn-professional .finder-place, .directory-place-field { display:grid; gap:.35rem; min-width:0; margin-top:.7rem; }
.rwn-professional .finder-place label, .directory-place-field > span { color:#294139; font-size:.8125rem; font-weight:650; }
.rwn-professional .finder-place input, .directory-place-field input { width:100%; min-width:0; min-height:44px; box-sizing:border-box; padding:.7rem .8rem; border:1px solid #8b9d92; border-radius:5px; background:#fff; color:#173d2b; font:inherit; }
.search-intent-guidance { min-width:0; margin:.65rem 0; color:#40594c; font-size:.875rem; line-height:1.5; overflow-wrap:anywhere; }
.search-intent-guidance:empty { display:none; }
.search-intent-guidance p { margin:.4rem 0; }
.search-intent-guidance :is(button,select) { min-height:44px; max-width:100%; margin:.2rem .3rem .2rem 0; padding:.5rem .65rem; white-space:normal; border:1px solid #8b9d92; border-radius:5px; background:#fff; color:#173d2b; font:inherit; }
.search-intent-guidance :is(button,select):focus-visible, .finder-place input:focus-visible { outline:3px solid #376b47; outline-offset:3px; }

.service-before-you-go{padding:1rem;border:1px solid #dce5df;border-radius:8px;background:#fff;overflow-wrap:anywhere}.service-before-you-go article+article{border-top:1px solid #dce5df;margin-top:1rem;padding-top:.5rem}.service-before-you-go dt{font-weight:650}.service-before-you-go dd{margin:0 0 .6rem}.service-before-you-go summary{min-height:44px;cursor:pointer}

/* One optional disclosure holds detailed routes on every result surface. */
.result-more { grid-column: 1 / -1; min-width: 0; color: #40525c; }
.result-more > summary { width: fit-content; min-height: 44px; padding-block: .65rem; font-size: .875rem; font-weight: 600; cursor: pointer; }
.result-more > summary:focus-visible { outline: 3px solid #2875a8; outline-offset: 2px; }
.result-more > p { max-width: 75ch; margin: .5rem 0; font-size: .875rem; line-height: 1.65; overflow-wrap: anywhere; }
.result-more .directory-global-result-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; }
.result-more[open] { padding-bottom: .75rem; }
@media print { .result-more > :not(summary) { display: block; } }

/* Search first, optional geographic restrictions second. */
#directory .directory-search-tools { display: flex; flex-direction: column; gap: .7rem; }
#directory .directory-search-tools .directory-search-tools__top,
#directory .directory-search-tools .directory-search-tools__top:not(:has(.directory-country-field)) { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; align-items: end; }
#directory .directory-search-control, #directory .directory-place-field { grid-column: auto; margin: 0; }
#directory .directory-place-field input { min-height: 56px; }
.directory-location-filter { order: 2; color: #40525c; }
.directory-location-filter > summary { min-height: 44px; padding-block: .65rem; cursor: pointer; font-size: .875rem; }
.directory-location-filter .directory-country-field { width: min(100%, 24rem); margin: .4rem 0 .75rem; }
#directory .directory-search-tools__meta { order: 3; }
#directory .directory-coverage-note { order: 4; margin-top: .25rem; }
#directory .directory-search-tools .directory-search-tools__clear { margin-left: 0; }
#directory .directory-category-chips button { font-size: .875rem; }
#directory .directory-results-jump { width: fit-content; gap: .5rem; margin: 0; padding: .4rem 0; min-height: 44px; border: 0; background: transparent; font-size: .875rem; text-decoration: underline; text-underline-offset: .2em; }
#directory .directory-record__facts { display: grid; gap: .25rem; }
#directory .directory-record__facts > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem; padding: 0; border: 0; background: transparent; font-size: .875rem; }
#directory .directory-record__facts span { font-size: .875rem; font-weight: 400; text-transform: none; letter-spacing: 0; }
#directory .directory-record__facts span::after { content: ":"; }
#directory .directory-record__facts p { flex-basis: 100%; max-width: 75ch; }
#directory .directory-record__actions a, #directory .directory-record__more > summary { font-size: .875rem; min-height: 44px; }
#directory .directory-record > header time { font-size: .8125rem; color: #526774; }
#directory .directory-record__summary { max-width: 75ch; font-size: .9375rem; line-height: 1.65; }
#directory .directory-aid li { font-size: .8125rem !important; }
#directory .directory-global-result-wrap { row-gap: .15rem; }
#directory .directory-global-result > span { display: grid; gap: .1rem; }
#directory .directory-global-result > span > span { font-size: .9375rem; }
#directory .directory-global-result > small { font-size: .875rem; line-height: 1.55; }
#directory .directory-global-result-actions { display: flex; justify-content: flex-start; align-items: flex-start; }
#directory .directory-global-result-actions a { width: auto; }
@media (max-width: 600px) {
  #directory .directory-search-tools .directory-search-tools__top,
  #directory .directory-search-tools .directory-search-tools__top:not(:has(.directory-country-field)) { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
}
