.explore-browser [hidden] { display: none !important; }
/* Deep links wait on a neutral placeholder, never another tab's results. */
html[data-explore-initial-view] .explore-browser :is(.explore-result-heading, .explore-overview, .explore-pathways, #explore-empty, #explore-more) { display: none !important; }
html[data-explore-initial-view] .explore-loading { display: block !important; }
html[data-explore-initial-view] [data-explore-controls] { display: block !important; opacity: .4; }
html[data-explore-initial-view="globe"] [data-explore-controls] { display: none !important; }
.explore-select-filter:empty::before { content: ''; display: block; height: 48px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
html[data-explore-initial-view] .explore-tabs a { color: var(--text-muted); border-bottom-color: transparent; }
html[data-explore-initial-view="pathways"] [data-explore-tab="pathways"],
html[data-explore-initial-view="globe"] [data-explore-tab="globe"] { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.explore-loading { margin-top: 1.6rem; color: var(--text-muted); font-size: .85rem; }
.explore-loading > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-top: 1rem; }
.explore-loading i { height: 230px; border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(125deg, #fff, #f0f2ed); }
.explore-browser.is-ready .explore-results { animation: explore-reveal .18s ease-out; }
.explore-results { scroll-margin-top: calc(var(--app-shell-sticky-offset, 8.25rem) + 1rem); }
@keyframes explore-reveal { from { opacity: 0; } to { opacity: 1; } }
.explore-browser svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.explore-browser button, .explore-browser input { font: inherit; }
.explore-browser button { cursor: pointer; }
.explore-browser :is(a, button, input):focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; }
.explore-hero { margin-bottom: 1.75rem; }
.explore-eyebrow { color: var(--brand-primary); text-transform: uppercase; letter-spacing: .09em; font-size: .75rem; font-weight: 700; margin-bottom: .5rem; }
.resource-doc .explore-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.045em; font-weight: 600; }
.explore-hero > p:last-child { color: var(--text-muted); margin-top: .7rem; max-width: 46rem; }
.explore-navigation { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.4rem; }
.explore-tabs { display: flex; gap: 1.5rem; }
.explore-tabs { position: relative; }
.explore-browser.is-ready .explore-tabs a { border-bottom-color: transparent; transition: color .2s ease; }
.explore-browser.is-ready .explore-tabs::after { content: ''; position: absolute; height: 3px; bottom: 0; left: var(--explore-tab-left); width: var(--explore-tab-width); background: var(--brand-primary); transition: left .24s cubic-bezier(.2,.65,.3,1), width .24s cubic-bezier(.2,.65,.3,1); pointer-events: none; }
.explore-tabs a { display: flex; align-items: center; gap: .5rem; padding: .5rem .5rem .9rem; color: var(--text-muted); text-decoration: none; border-bottom: 3px solid transparent; font-weight: 600; }
.explore-tabs a[aria-current] { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.explore-filter-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(10rem, .55fr) minmax(14rem, .7fr) auto; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.explore-search { position: relative; }
.explore-search > svg { position: absolute; left: .9rem; top: 15px; color: var(--text-muted); }
.explore-search input { width: 100%; min-width: 0; height: 48px; padding: .7rem .85rem .7rem 2.6rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); }
.explore-select-filter { margin: 0; min-width: 0; position: relative; z-index: 10; }
.explore-select-filter:has(.custom-select.open) { z-index: 11; }
.explore-select-filter .custom-select-display { min-height: 48px; width: 100%; text-align: left; }
.explore-select-filter .custom-select-options { width: 100%; max-height: min(350px, 50svh); }
.explore-select-filter .custom-select-option { min-height: 44px; display: flex; align-items: center; }
.explore-category-label { display: flex; align-items: center; gap: .5rem; min-width: 0; white-space: normal; }
.explore-category-label svg { width: 16px; height: 16px; }
.custom-select-display .explore-category-label > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.explore-browser .explore-reset { display: inline-flex; align-items: center; justify-content: center; justify-self: end; gap: .4rem; min-height: 48px; margin: 0; padding: .5rem 0; border: 0; border-radius: 0; background: transparent; color: var(--brand-primary); font-size: .8125rem; font-weight: 500; line-height: 1.25; white-space: nowrap; transition: color .15s ease; }
.explore-reset span { text-decoration: underline; text-underline-offset: 3px; }
.explore-reset:hover { color: var(--brand-primary-hover); }
.explore-overview { margin-bottom: 1.75rem; }
.explore-overview-card { display: grid; grid-template-columns: minmax(0, .36fr) minmax(0, .64fr); overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.explore-overview-photo { position: relative; margin: 0; min-height: 240px; overflow: hidden; background: linear-gradient(120deg, #e2e8dc, #edf0e8); }
.explore-overview-photo.is-loading::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #ffffff80, transparent); animation: explore-photo-loading 1.5s ease-in-out infinite; }
.explore-overview-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; animation: explore-reveal .2s ease-out; }
@keyframes explore-photo-loading { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.explore-overview-photo figcaption { position: absolute; z-index: 1; right: .65rem; bottom: .55rem; color: rgb(255 255 255 / .65); font-size: .56rem; line-height: 1; text-shadow: 0 1px 3px rgb(0 0 0 / .4); pointer-events: none; }
.explore-overview-photo figcaption::before { content: ''; position: absolute; z-index: -1; right: -.65rem; bottom: -.55rem; width: calc(100% + 4rem); height: 4.5rem; background: radial-gradient(ellipse farthest-side at bottom right, rgb(0 0 0 / .52), rgb(0 0 0 / .16) 55%, transparent); }
.explore-overview-copy { align-self: center; min-width: 0; padding: clamp(1.25rem, 2.5vw, 2rem); }
.explore-overview-kind { color: var(--brand-primary); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin: 0 0 .65rem; }
.explore-overview h2 { display: flex; align-items: center; gap: .65rem; margin: 0; font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.25; letter-spacing: -.025em; }
.explore-overview h2 img { flex-shrink: 0; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px #1f23380a; }
.explore-overview-description { margin-top: .85rem; color: var(--text-muted); font-size: .88rem; line-height: 1.75; }
.explore-overview-description:not(.is-expanded) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.explore-overview-description > :first-child { margin-top: 0; }
.explore-overview-description > :last-child { margin-bottom: 0; }
.explore-overview-more { border: 0; background: transparent; color: var(--brand-primary); padding: .3rem 0 0; font-size: .8rem !important; text-decoration: underline; text-underline-offset: 3px; }
.explore-result-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: 1.6rem 0 1rem; }
.explore-result-heading h2 { font-size: 1.15rem; margin: 0; }
.explore-result-heading p { font-size: .82rem; color: var(--text-muted); margin-top: .3rem; }
.explore-pathways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.explore-pathway { display: flex; flex-direction: column; gap: .65rem; min-width: 0; padding: 1.15rem; background: #fff; border: 1px solid var(--border); border-radius: 10px; color: var(--text); text-decoration: none; }
.explore-pathway { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
@media (hover: hover) {
  .explore-pathway:hover { transform: translateY(-3px); border-color: #b6afa3; color: var(--text); box-shadow: 0 12px 28px rgba(31,35,56,.14); }
}
.explore-card-country { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--text-muted); }
.explore-card-country img { object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px #1f23380a; }
.explore-pathway h3 { font-size: 1rem; line-height: 1.35; margin: 0; }
.explore-pathway p { font-size: .83rem; line-height: 1.55; color: var(--text-muted); margin: 0; }
.explore-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .35rem; color: var(--brand-primary); }
.explore-card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .55rem; min-width: 0; }
.explore-card-tags .chip.category { font-size: .65rem; padding: .22rem .55rem; }
.explore-card-category { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; max-width: 100%; padding: .25rem .55rem; border: 1px solid var(--border); border-radius: 999px; background: transparent; font-size: .7rem; line-height: 1.3; color: var(--text-muted); }
.explore-card-category svg { width: 14px; height: 14px; }
.explore-empty { text-align: center; background: #fff; padding: 3rem 1rem; border: 1px solid var(--border); border-radius: 10px; }
.explore-empty p { margin: .5rem 0 1rem; color: var(--text-muted); }
.explore-more, .explore-empty button { padding: .65rem 1rem; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--brand-primary); font-weight: 600; }
.explore-more { display: block; margin: 1.5rem auto 0; }
@media (max-width: 900px) {
  .explore-pathways, .explore-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explore-search, .explore-reset { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .explore-tabs { width: 100%; gap: 0; }
  .explore-tabs a { flex: 1; justify-content: center; gap: .25rem; padding-inline: 0; font-size: .8rem; }
  .explore-tabs svg { width: 16px; height: 16px; }
  .explore-overview-description:not(.is-expanded) { -webkit-line-clamp: 3; }
  .explore-overview-card { grid-template-columns: minmax(0, 1fr); }
  .explore-overview-photo { min-height: 0; height: clamp(190px, 55vw, 280px); }
  .explore-loading > div { grid-template-columns: minmax(0, 1fr); }
  .explore-loading i:not(:first-child) { display: none; }
  .explore-filter-row, .explore-pathways { grid-template-columns: minmax(0, 1fr); }
  .explore-search { display: none; }
}
@media (pointer: coarse) { .explore-overview-more { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) {
  .explore-browser .explore-reset { transition: none; }
  .explore-pathway { transition: none; }
  .explore-pathway:hover { transform: none; }
  .explore-browser.is-ready .explore-results { animation: none; }
  .explore-overview-photo.is-loading::after, .explore-overview-photo img { animation: none; }
  .explore-browser.is-ready .explore-tabs a, .explore-browser.is-ready .explore-tabs::after { transition: none; }
}
