/* Focus on clear actions, comfortable touch targets and inexpensive painting. */
:where(main [id]) { scroll-margin-block-start: 6rem; }
:where(a, button, input, select, summary) { touch-action: manipulation; }
.on-night :focus-visible { outline-color: var(--sun); }
.hero--illustrated .hero__title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); max-inline-size: 22ch; }
.hero--illustrated .hero__lede { font-size: 1.1rem; max-inline-size: 48ch; }
.hero--illustrated { padding-block: 2.5rem; }
.hero__art picture, .hope-feature picture { display: block; min-inline-size: 0; }
.hope-feature picture img { inline-size: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.start-links { background: #e2ece9; border-block-end: 1px solid #cbdcd6; }
.start-links > .wrap { display: flex; flex-wrap: wrap; gap: .5rem 2rem; padding-block: .75rem; }
.start-links a { display: inline-flex; align-items: center; min-block-size: 44px; color: #1a464b; font-size: .95rem; font-weight: 600; }
.page-head { padding-block: 2rem 2.5rem; }
.page-head h1 { font-size: clamp(1.9rem, 1.4rem + 1.7vw, 2.8rem); max-inline-size: 28ch; }
.page-head p { font-size: 1.1rem; }
.program-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-block-start: 1.25rem; }
.program-entry span { font-size: .9rem; color: #d6e2e9; }
.program-gallery { padding-block: .5rem 1rem; border-block-end: 1px solid var(--line); margin-block-end: 1.5rem; }
.program-gallery summary { cursor: pointer; min-block-size: 44px; padding-block: .6rem; color: var(--river-ink); font-weight: 600; }
.program-gallery .gallery { margin-block: 1rem 0; }
.facts { position: static; }
.detail > .facts { order: -1; }
.filters--opportunities { display: block; padding: 1.25rem; }
.filters__primary { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; }
.filters__primary .filters__search { flex: 1 1 260px; min-inline-size: 0; }
.filters__actions { flex-wrap: wrap; }
.filters__advanced { border-block-start: 1px solid var(--line); margin-block-start: 1rem; }
.filters__advanced summary { cursor: pointer; padding-block: .85rem; min-block-size: 44px; font-weight: 600; color: var(--river-ink); }
.filters__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 1rem; padding-block: .5rem 1rem; }
.filters__fields .check { align-self: end; min-block-size: 48px; }
.filters__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.filters__footer p { margin: 0; }
.lang-switch, .nav a, .nav-more summary, .chip { min-block-size: 44px; }
.nav a, .lang-switch { display: inline-flex; align-items: center; }
.nav-more { position: relative; }
.nav-more > summary { color: #d6e0e6; padding: .5rem .8rem; cursor: pointer; border-radius: 999px; line-height: 1.8; }
.nav-more > summary:hover, .nav-more[open] > summary, .nav-more__current { background: rgb(255 255 255 / .12); color: #fff; }
.nav-more__panel { position: absolute; inset-block-start: calc(100% + .75rem); inset-inline-end: 0; min-inline-size: 240px; padding: .5rem; background: #0d2b43; border: 1px solid #355268; border-radius: 12px; box-shadow: 0 12px 28px rgb(7 30 48 / .2); }
.nav .nav-more__panel a { display: flex; border-radius: 6px; white-space: normal; }
.menu__panel { max-block-size: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; padding-block-end: max(1.25rem, env(safe-area-inset-bottom)); }
.menu__panel a.btn--sun { display: flex; justify-content: center; color: var(--night); }
.nav { display: none; }
.menu { display: block; }
button[aria-busy="true"] { cursor: wait; }
button[aria-busy="true"]::after { content: ''; inline-size: 1em; block-size: 1em; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: submitting .8s linear infinite; }
@keyframes submitting { to { transform: rotate(360deg); } }
@media (min-width: 960px) {
  .facts { position: sticky; inset-block-start: 5.75rem; }
  .detail > .facts { order: 0; }
}
@media (min-width: 1080px) {
  .nav { display: flex; }
  .menu { display: none; }
}
@media (max-width: 639px) {
  .site-head__bar { gap: .5rem; }
  .brand { gap: .45rem; min-inline-size: 0; }
  .brand__name { font-size: .88rem; white-space: normal; }
  .brand img { inline-size: 36px; }
  .brand__name small { display: none; }
  .lang-switch { padding-inline: .65rem; font-size: .82rem; }
  .menu > summary { padding-inline: .45rem; gap: .3rem; }
  .hero--illustrated { padding-block: 2rem; }
  .hero--illustrated .hero__grid { gap: 1.5rem; }
  .hero__art { max-inline-size: 100%; }
  .start-links > .wrap { display: grid; gap: 0; }
  .start-links a + a { border-block-start: 1px solid #cbdcd6; }
  .page-head { padding-block: 1.5rem 2rem; }
  .page-head p { font-size: 1rem; }
  .filters__primary .filters__actions { inline-size: 100%; }
  .filters__primary .filters__actions .btn { flex: 1; }
  .program-entry { align-items: start; }
  .program-entry .btn { inline-size: 100%; justify-content: center; }
  .program-entry span { font-size: .85rem; }
  .filters__actions .btn, .filters__footer .btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { button[aria-busy="true"]::after { animation: none; } }
@media print { .start-links, .nav-more, .program-entry { display: none; } }
