/* Shared touch and spacing adjustments for the legacy content pages. */
@media (max-width: 767px) {
  body > section { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  body > section > div { overflow-wrap: anywhere; }
  body > section .grid > * { min-width: 0; }
  body > section .p-6 { padding: 1rem; }
  body > section h1 { font-size: clamp(1.6rem, 6vw, 1.9rem); line-height: 1.2; }
  body > section summary { min-height: 44px; padding-block: 0.4rem; line-height: 1.4; }
  body > section .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(191, 219, 254, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    line-height: 1.35;
  }
  body > section .btn-primary { background: #5eead4; color: #04111f; }
  body > section .btn:focus-visible { outline: 3px solid #5eead4; outline-offset: 3px; }
  body > section iframe { display: block; width: 100%; max-width: 100%; }
  body > section div:has(> iframe) { padding: 0.5rem; }
  body > section iframe { height: 75svh !important; min-height: 300px; }
  .embedded-page-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 0.5rem;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *, .home-page * { transition: none !important; }
}
