/* Opt-in thermal navigation for UNLOCK and the public Foxy Lab page. */
@media (max-width: 820px) {
  .route-dock.route-dock--thermal {
    display: flex;
    gap: 0;
    width: max-content;
    max-width: calc(100% - 2rem);
    padding: 0.25rem;
    border: 1px solid rgb(127 214 203 / .26);
    border-radius: 0.5rem;
    background: #141c1f;
    box-shadow: 0 1rem 2rem -0.5rem rgb(0 0 0 / .7);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .route-dock--thermal .route-dock__item {
    display: grid;
    place-items: center;
    flex: 1;
    width: auto;
    min-width: 0;
    min-height: 48px;
    padding: 0.75rem 1.125rem;
    border-radius: 0.3rem;
    color: #f4e9e4;
  }

  .route-dock--thermal .route-dock__item + .route-dock__item {
    border-left: 1px solid rgb(127 214 203 / .18);
  }

  .route-dock--thermal .route-dock__label {
    color: inherit;
    font: 600 0.875rem/1.2 "Archivo", "Arial Narrow", sans-serif;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
  }

  .route-dock--thermal .route-dock__item[aria-current="page"] {
    color: #0c0e0f;
    background: radial-gradient(circle at 50% 70%, #fff3dc 0, #ffe08a 18%, #ffb43a 42%, #ff6a1f 72%, #e0401c 100%);
  }

  .route-dock--thermal .route-dock__item[aria-current="page"] .route-dock__label {
    color: inherit;
  }

  .route-dock--thermal .route-dock__item:active {
    background: #354248;
    color: #f4e9e4;
  }

  .route-dock--thermal .route-dock__item:focus-visible {
    outline: 2px solid #ffb43a;
    outline-offset: -2px;
  }

  html.site-night .site-shell > .site-header {
    display: none;
  }

  /* Reserve the dock's height and the phone's home-indicator inset. */
  body:has(.route-dock--thermal) :is(.site-footer, .sala-foot) {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
  }

  /* Inicio is already available in the dock; keep the Lab entrance above. */
  body:has(.route-dock--thermal) .sala-top__nav .chip--dark {
    display: none;
  }
}
