@media (max-width: 850px) {
  .site-header .menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }
  .scripted .site-header .site-nav {
    max-height: calc(100vh - 150px);
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 840px) {
  body .tj-split .tj-copy,
  body .tj-split .tj-visual,
  body .tj-dark-split .tj-copy,
  body .tj-dark-split .tj-visual,
  body .tj-cert-hero .tj-copy,
  body .tj-cert-hero .tj-visual {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }
  body .tj-card-flag {
    box-sizing: border-box;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px;
  }
  body .tj-card-flag > div { min-width: 0; }
  body .tj-cert-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  body .tj-standards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .announcement a { position: relative; }
  .announcement a::after {
    content: "";
    position: absolute;
    inset: -7px -3px;
  }
  body .tj-cert-hero .tj-certs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .book-section .book-object {
    width: min(260px, calc(100% - 52px));
  }
}

@media (max-width: 480px) {
  body .tj-standards { grid-template-columns: minmax(0, 1fr); }
  body .tj-hero .tj-hero-brand {
    font-size: clamp(24px, 8.2vw, 28px);
    white-space: normal;
  }
  body .tj-hero .tj-hero-ctas {
    flex-wrap: wrap;
    gap: 10px;
  }
}
