/* Section dock — part of the existing wayfinding family (the header's active-section pass).
   Shows only at max-width 820px. One row, five links, solid ink, no motion of its own.
   Remove by deleting this file, its <link>, the [data-dock] nav, and the syncDock() call. */

:root {
  --dock-bar: 4.25rem;
}

[data-dock] { display: none; }

@media (max-width: 820px) {
  html {
    scroll-padding-bottom: calc(var(--dock-bar) + env(safe-area-inset-bottom, 0px));
  }
  body {
    padding-bottom: calc(var(--dock-bar) + env(safe-area-inset-bottom, 0px));
  }
  .mobile-menu.open {
    max-height: calc(100dvh - var(--header, 4.75rem) - var(--dock-bar) - env(safe-area-inset-bottom, 0px));
  }
  [data-dock] {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: var(--dock-bar);
    align-items: stretch;
    height: calc(var(--dock-bar) + env(safe-area-inset-bottom, 0px));
    margin: 0;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    background: var(--ink, #0a0a0b);
    border-top: 1px solid var(--line, rgba(250, 251, 252, 0.12));
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.28);
  }
  [data-dock] a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-width: 44px;
    min-height: 44px;
    height: 100%;
    padding: 6px 2px 7px;
    position: relative;
    background: transparent;
    color: var(--dim, #b4b8c0);
    font-family: var(--ui, Inter, ui-sans-serif, system-ui, sans-serif);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    -webkit-tap-highlight-color: transparent;
  }
  [data-dock] a svg {
    display: block;
    width: 20px;
    height: 20px;
    flex: none;
  }
  [data-dock] a span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  [data-dock] a.active {
    background: transparent;
    color: var(--paper, #fafbfc);
  }
  [data-dock] a.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1.125rem;
    height: 2px;
    margin-left: -0.5625rem;
    background: var(--yellow, #f7b500);
  }
  [data-dock] a:focus-visible {
    outline: 3px solid var(--yellow, #f7b500);
    outline-offset: -3px;
  }
  /* The dock takes the bottom of the first screen. Pull the hero up by the same
     amount so the headline and the hero actions stay above it. */
  .hero-photo { height: calc(min(42vw, 168px) - env(safe-area-inset-bottom, 0px)); }
  .emblem { --emblem: min(36vw, 148px); }
}

@media (max-width: 520px) and (max-height: 900px) {
  .hero-photo { height: calc(min(34vw, 136px) - env(safe-area-inset-bottom, 0px)); }
  .emblem { --emblem: min(32vw, 128px); margin-bottom: 0.75rem; }
}

@media (max-width: 400px) and (max-height: 640px) {
  .hero h1 { margin-bottom: 1.5rem; }
}

@media (max-width: 820px) and (max-height: 640px) {
  .radio .cta-row { margin-top: 0.75rem; }
}

@media (min-width: 821px) {
  [data-dock] { display: none; }
  body { padding-bottom: 0; }
}

@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
  [data-dock] a,
  [data-dock] a.active::after { transition: none; animation: none; }
}
