/* Phase 3: targeted navigation, keyboard and mobile reading improvements. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #087ba3;
  outline-offset: 4px;
}
.p3-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  background: #fff;
  color: #102e63;
  border: 2px solid #102e63;
  border-radius: 6px;
  font-weight: 700;
  transform: translateY(calc(-100% - 20px));
}
.p3-skip-link:focus { transform: none; }
.detail-nav a,
.breadcrumb a,
.tr002-section-nav a,
.product-sections a,
.main-nav a,
.p2-footer-main nav a,
.p2-footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.detail-page .btn,
.detail-page summary,
.dialog-close { min-height: 44px; }
.detail-page summary { display: list-item; align-content: center; padding-block: 10px; }
.detail-page .footer a { display: inline-flex; align-items: center; min-height: 44px; }
.detail-page .tr002-option input:focus-visible + span {
  outline: 3px solid #087ba3;
  outline-offset: 4px;
}
@media (max-width: 760px) {
  /* Retain the approved blue, unboxed price; only reduce the 80px phone type. */
  .detail-page .detail-price {
    font-size: clamp(2.5rem, 10vw, 3.25rem);
    line-height: 1.12;
    color: var(--price-brand, #102e63);
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .detail-page .detail-actions .btn { text-align: center; }
  .detail-page .breadcrumb { padding-block: 14px; align-items: center; }
}
@media (max-width: 540px) {
  /* Keep the icon AND TRIGRAM wordmark with room for the two direct links. */
  .detail-page .topbar .bar-inner { gap: 8px; }
  .detail-page .topbar .brand { gap: 8px; }
  .detail-page .topbar .brand img { width: 56px; height: 56px; }
  .detail-page .topbar .brand span { display: inline; font-size: .95rem; }
  .detail-page .topbar .detail-nav { flex-direction: column; align-items: flex-end; gap: 0; font-size: .85rem; }
  .detail-page .topbar .detail-nav a { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
