/* A quiet glass dock that leaves the portrait unobstructed. */
.section-nav[hidden] { display: none; }
.section-nav {
  position: fixed;
  z-index: 20;
  --section-nav-offset: calc(20px + env(safe-area-inset-bottom));
  inset: auto 0 var(--section-nav-offset);
  width: max-content;
  max-width: calc(100% - max(16px, env(safe-area-inset-left), env(safe-area-inset-right)) * 2);
  margin-inline: auto;
  padding: 6px;
  display: flex;
  align-items: stretch;
  gap: 3px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  border: 1px solid rgb(255 255 255 / .78);
  border-radius: 18px;
  background: rgb(240 238 233 / .94);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
  box-shadow: 0 12px 36px rgb(17 28 25 / .16), 0 2px 8px rgb(17 28 25 / .07), inset 0 1px 0 rgb(255 255 255 / .75);
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(100% + var(--section-nav-offset) + 40px));
  transition: transform var(--motion-medium) var(--motion-easing), visibility 0s var(--motion-medium);
}
.section-nav.is-visible { visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
.section-nav a, .section-nav-ink-label {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 11px;
  color: #242c29;
  font: 400 14px/1.25 var(--font-body);
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.section-nav a:last-child { color: var(--color-accent); font-weight: 500; }
.section-nav a:hover { background: rgb(255 255 255 / .45); }
.section-nav a[aria-current="location"] { background: var(--color-accent); color: var(--color-on-accent); box-shadow: 0 2px 6px rgb(17 28 25 / .12), inset 0 1px 0 rgb(255 255 255 / .18); }
.section-nav.is-sliding a[aria-current="location"] { background: transparent; color: #242c29; box-shadow: none; }
.section-nav.is-sliding a:last-child { color: var(--color-accent); }
.section-nav-indicator { display: none; position: absolute; z-index: 1; left: 0; top: 0; overflow: hidden; contain: layout paint; pointer-events: none; border-radius: 11px; background: var(--color-accent); box-shadow: 0 2px 6px rgb(17 28 25 / .12), inset 0 1px 0 rgb(255 255 255 / .18); transition: transform 220ms cubic-bezier(.22,.68,.3,1), width 220ms cubic-bezier(.22,.68,.3,1); }
.is-sliding .section-nav-indicator { display: block; }
.section-nav-ink { position: absolute; left: 0; top: 0; transition: transform 220ms cubic-bezier(.22,.68,.3,1); }
.section-nav-ink-label { position: absolute; color: var(--color-on-accent); white-space: nowrap; }
.section-nav-ink-label:last-child { font-weight: 500; }
.section-nav.is-sliding a:focus-visible { outline: none; }
.section-nav.is-sliding a:focus-visible::after { content: ""; position: absolute; z-index: 2; inset: 3px -2px; border: 2px solid #fff; border-radius: 8px; box-shadow: 0 0 0 2px #242c29; pointer-events: none; }
.section-nav a { position: relative; }
.section-nav a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -3px; }
.section-nav a[aria-current="location"]:focus-visible { outline-color: var(--color-on-accent); }
.nav-label-compact { display: none; }
html.section-nav-ready { scroll-padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.section-nav-ready body { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .section-nav { background: #f0eee9; }
}
@media (max-width: 720px) {
  .section-nav { --section-nav-offset: calc(12px + env(safe-area-inset-bottom)); width: calc(100% - 12px); max-width: min(460px, calc(100% - max(6px, env(safe-area-inset-left), env(safe-area-inset-right)) * 2)); padding: 6px 14px; display: grid; grid-template-columns: repeat(4, max-content); justify-content: space-between; gap: 0; }
  .section-nav a, .section-nav-ink-label { min-height: 48px; padding: 8px 0; font-size: 12px; white-space: nowrap; }
}
@media (max-width: 340px) {
  .section-nav { width: calc(100% - 6px); max-width: calc(100% - max(3px, env(safe-area-inset-left), env(safe-area-inset-right)) * 2); }
}
@media (max-width: 389px) {
  .nav-label-full { display: none; }
  .nav-label-compact { display: inline; }
}
@media (min-width: 430px) and (max-width: 720px) {
  .section-nav a, .section-nav-ink-label { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .section-nav, .section-nav a { transition: none; transform: none; }
  .section-nav-indicator, .section-nav-ink { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .section-nav { background: #f0eee9; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .section-nav { background: Canvas; border-color: CanvasText; box-shadow: none; }
  .section-nav a { color: LinkText; }
  .section-nav a[aria-current] { background: Highlight; color: HighlightText; }
  .section-nav .section-nav-indicator { display: none; }
  .section-nav.is-sliding a[aria-current] { background: Highlight; color: HighlightText; }
  .section-nav.is-sliding a:focus-visible::after { border-color: Highlight; box-shadow: none; }
  .section-nav a[aria-current]:focus-visible { outline-color: HighlightText; }
}
