/* Shared navigation, readable states and controls across every page. */
.footer-policy [data-cookie-settings] { padding: 0; text-decoration: underline; }
.cookie-choice {
  position: fixed; z-index: 50; right: 1rem; bottom: 1rem; width: min(27rem, calc(100% - 2rem));
  padding: 1rem 1.25rem; border: 1px solid #65744b; border-radius: .35rem;
  background: #faf9f3; color: #233b32; box-shadow: 0 4px 22px #17261c29;
}
.cookie-choice h2 { font-size: 1.8rem; line-height: 1.1; }
.cookie-choice p { font-size: 1rem; line-height: 1.38; margin: .45rem 0 .75rem; }
.cookie-choice div { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.cookie-choice button { min-height: 44px; padding: .35rem 1rem; border: 1px solid currentColor; border-radius: .25rem; font-size: 1rem; }
.cookie-choice button:hover { background: #e6ebdf; }
.cookie-choice a { margin-inline-start: auto; font-size: 1rem; text-decoration: underline; }
@media print { .cookie-choice { display: none; } }
@layer components {
  .quiet-link.standalone { display: flex; width: fit-content; max-width: 100%; }
  .main-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
  .mandala-story > p { margin-top: 24px; }
  .mandala-story { min-block-size: 365px; }
  .mandala-section .mandala-display { display: flex; flex-direction: column; justify-content: center; min-height: 0; gap: 36px; }
  .mandala-section .mandala-caption { position: static; transform: none; white-space: normal; text-align: center; max-width: 36ch; margin-inline: auto; }
  .map-disclaimer { display: block; margin-top: 7px; font-size: .88em; }
  .mandala-copy .guardian-label { margin-top: 22px; }
  .guardian-picker { flex-wrap: wrap; }
  .mandala-section[data-guardian="seahorse"] .guardian { border-color: #e8c9d4; }
  .mandala-section[data-guardian="seahorse"] .mandala-art { filter: brightness(0) invert(.94) sepia(.25); }
  .mandala-section[data-guardian="seahorse"] :focus-visible,
  .site-footer :focus-visible,
  .experiences :focus-visible { outline-color: #fff2c5; }
  .guardian:focus-visible { outline-offset: 5px; }
  .day-controls { flex-wrap: wrap; }
  .day-controls button, .edition-link { min-width: 44px; min-height: 44px; }
  .calendar-day { min-height: 44px; }
  .footer-details a { overflow-wrap: anywhere; }
  .choice input[type="radio"], .choice input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; padding: 0; }
  .choice { min-height: 44px; }
}

@layer responsive {
  @media (max-width: 980px) and (min-width: 701px) {
    .mandala-layout { grid-template-columns: 1fr; gap: 40px; }
    .mandala-copy { max-width: 640px; }
    .mandala-story { min-block-size: 300px; }
    .mandala-section .mandala-display { width: min(100%, 550px); margin-inline: auto; }
  }
  @media (max-width: 1280px) {
    .site-header { min-height: 84px; padding-block: 15px; gap: 20px; }
    .site-header .brand img { width: 200px; }
    .header-cta { margin-left: auto; }
    .mobile-menu { display: grid; place-items: center; width: 44px; height: 44px; flex: none; }
    .main-nav {
      display: none;
      position: absolute;
      inset: 84px 0 auto;
      margin: 0;
      padding: 22px 32px 30px;
      background: var(--lilac);
      max-height: calc(100dvh - 84px);
      overflow-y: auto;
      overscroll-behavior: contain;
      box-shadow: 0 20px 22px #263e3612;
    }
    .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 6px; font-size: 21px; }
    .main-nav a, .nav-disclosure { min-height: 44px; }
    .nav-group { width: 100%; }
    .nav-disclosure { width: 100%; justify-content: space-between; }
    .nav-submenu { position: relative; left: 0; padding: 0 0 8px 18px; background: transparent; box-shadow: none; font-size: 18px; }
  }
  @media (max-width: 700px) {
    .site-header { min-height: 76px; padding: 14px 20px; gap: 12px; }
    .site-header .brand img { width: 190px; }
    .main-nav { top: 76px; max-height: calc(100dvh - 76px); padding-inline: 24px; }
    .mandala-story { min-block-size: 390px; }
    .mandala-story > p { margin-top: 22px; }
    .mandala-copy .guardian-picker { margin-top: 24px; }
    .edition-row { grid-template-columns: 49px minmax(0, 1fr) 44px; gap: 14px; }
    .day-controls button { width: 44px; height: 44px; }
    .edition-link { width: 44px; height: 44px; }
    .calendar-day { min-height: 44px; }
  }
  @media (max-width: 380px) {
    .site-header .brand img { width: 172px; }
    .mandala-story { min-block-size: 445px; }
    .edition-row { grid-template-columns: 40px minmax(0, 1fr) 44px; gap: 12px; }
    .route-overview { grid-template-columns: 100px minmax(0, 1fr); gap: 16px; }
    .route-overview h3 { font-size: 33px; padding-right: 0; }
    .route-overview > div > .icon { position: static; margin-top: 12px; }
  }
}
