/* Mobile reference: original artwork, with semantic, keyboard-accessible links.
   Image and hotspots share one coordinate grid, including on taller phones. */
.reference-hero { display: none; }

@media (max-width: 768px) {
  body[data-page="/"] .site-header { display: none; }
  body[data-page="/"] .home-hero {
    min-height: 100svh;
    padding-bottom: calc(max(44px, 10.5vw) + 2.9vw + max(7.1vw, env(safe-area-inset-bottom, 0px)) + 1px);
    background: #001a30;
  }
  .reference-hero {
    display: block;
    position: relative;
    aspect-ratio: 592 / 1104;
    min-height: calc(100svh - max(44px, 10.5vw) - 2.9vw - max(7.1vw, env(safe-area-inset-bottom, 0px)) - 1px);
    width: 100%;
    container-type: inline-size;
    overflow: hidden;
    isolation: isolate;
  }
  .reference-hero-image {
    position: absolute;
    width: 100%;
    max-width: none;
    height: 115.942029%;
    top: -4.710145%;
    left: 0;
    pointer-events: none;
    user-select: none;
  }
  .reference-hit {
    position: absolute;
    left: var(--left);
    top: var(--top);
    width: var(--width);
    height: var(--height);
    border-radius: 2.2cqw;
  }
  /* The painted labels stay exact; the invisible hit areas remain touch-sized. */
  .reference-hit::after {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    min-height: 44px;
    height: 100%;
    transform: translateY(-50%);
  }
  .reference-hit:focus-visible,
  .reference-menu:focus-visible,
  .reference-language summary:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 20px #009ee3;
  }
  .reference-hit:hover { box-shadow: 0 0 15px #009ee380; }
  .reference-menu {
    position: absolute;
    left: 87.5%;
    top: 3.1%;
    width: 8.8%;
    height: 4.4%;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    padding: 0;
    background: transparent;
    border-radius: 4px;
  }
  .reference-language {
    position: absolute;
    left: 75%;
    top: 3.1%;
    width: 11%;
    z-index: 5;
  }
  .reference-language summary {
    min-width: 44px;
    min-height: 44px;
    height: 7.5cqw;
    border-radius: 4px;
    cursor: pointer;
    list-style: none;
  }
  .reference-language summary::-webkit-details-marker { display: none; }
  .reference-language-panel {
    position: absolute;
    right: 0;
    background: #00223f;
    color: white;
    padding: 14px 18px;
    border: 1px solid #009ee3;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
  }
  body[data-page="/"] .hero-art,
  body[data-page="/"] .hero-hotspots,
  body[data-page="/"] .hero-bottom,
  body[data-page="/"] .hero-actions,
  body[data-page="/"] .hero-location { display: none; }
  /* Retain one real, indexable H1 and text alternative for the illustrated copy. */
  body[data-page="/"] .hero-content {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    overflow: hidden;
    clip-path: inset(50%);
    padding: 0;
    margin: 0;
    white-space: nowrap;
  }
  body[data-page="/"] .mobile-dock {
    display: grid;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 35;
    grid-template-columns: 1fr 1.03fr 1.07fr;
    gap: 1.7vw;
    padding: 2.9vw 3vw max(7.1vw, env(safe-area-inset-bottom, 0px));
    border: 0;
    border-top: 1px solid #009ee34a;
    border-radius: 5.1vw 5.1vw 0 0;
    background: #001a30f5;
    backdrop-filter: blur(12px);
    box-shadow: 0 -8px 28px #001a3066;
  }
  body[data-page="/"] .mobile-dock > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: max(44px, 10.5vw);
    gap: 2.5vw;
    border: 1px solid #63758caa;
    border-radius: 2.3vw;
    color: white;
    font-size: clamp(11px, 3.35vw, 25px);
    font-weight: 400;
    box-shadow: inset 0 0 8px #ffffff08;
  }
  body[data-page="/"] .mobile-dock svg {
    width: 6.1vw;
    height: 6.1vw;
    max-width: 40px;
    max-height: 40px;
    stroke-width: 1.3;
  }
  body[data-page="/"] .mobile-dock .dock-cta {
    border-color: #009ee3;
    background: linear-gradient(125deg, #0046df, #00329c 65%, #0051eb);
    box-shadow: inset 0 0 14px #0076ff, 0 0 13px #009ee344;
    font-size: clamp(11px, 3.35vw, 25px);
    font-weight: 400;
  }
  body[data-page="/"] .site-footer { padding-bottom: max(100px, 23vw); }
}

@media print {
  .reference-hero { display: none; }
  body[data-page="/"] .hero-content { position: static; width: auto; height: auto; clip-path: none; white-space: normal; }
}
