/* Shared layout fixes loaded after each site's visual theme. */
html { overflow-x: clip; }
body { overflow-wrap: break-word; }
.topbar .wrap { min-height: 60px; height: auto; }
.topbar .brand { min-width: 0; overflow-wrap: anywhere; }
.topbar .nav { flex-wrap: wrap; align-items: center; }
.topbar .btn { flex: 0 0 auto; }
.article .wrap { max-width: min(var(--max), 760px); }
.article pre, .article table { max-width: 100%; overflow-x: auto; }
.article pre { padding: 14px; }
.article td, .article th, .facts td, .facts th { overflow-wrap: anywhere; }
.card, .ctabox { min-width: 0; }
.btn { max-width: 100%; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero .wrap { padding-left: 22px !important; padding-right: 22px !important; }
  .topbar .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand action" "nav nav";
    gap: 8px 18px;
    padding-top: 11px;
    padding-bottom: 11px;
  }
  .topbar .brand { grid-area: brand; white-space: normal; line-height: 1.2; }
  .topbar .nav { grid-area: nav; display: flex; margin: 0; gap: 8px 20px; }
  .topbar > .wrap > .btn { grid-area: action; justify-self: end; white-space: nowrap; }
}

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.58; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .topbar .wrap {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "nav";
    gap: 10px;
  }
  .topbar .brand { font-size: 17px; }
  .topbar .nav { gap: 8px 18px; }
  .topbar .nav a { font-size: 14px; line-height: 1.35; }
  .topbar > .wrap > .btn { display: none; }
  .hero { padding-top: 36px; padding-bottom: 36px; }
  .hero .wrap { max-width: 100%; padding-left: 18px !important; padding-right: 18px !important; }
  section.sec-cta .wrap { padding-left: 18px !important; padding-right: 18px !important; }
  .hero h1 { font-size: clamp(26px, 7.4vw, 32px); line-height: 1.15; }
  .lead { font-size: 16.5px; line-height: 1.55; }
  .hero .btn, .sec-cta .btn, .ctabox .btn {
    width: 100%;
    white-space: normal;
    padding: 12px 16px;
  }
  .hero-note { line-height: 1.45; }
  section.sec { padding-top: 34px; padding-bottom: 34px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .facts, .facts tbody { display: block; width: 100%; }
  .facts tr { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .facts th, .facts td {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    text-align: left;
  }
  .facts td { margin-top: 3px; }
  .article { overflow-x: hidden; }
  .article .wrap { max-width: 100%; }
  .article table { display: block; width: 100%; }
  .article table th, .article table td { min-width: 120px; }
  .crumbs { overflow-wrap: anywhere; }
  .ctabox { padding: 20px 18px; }
  .cookiebar { gap: 10px; padding: 10px 18px; font-size: 12px; line-height: 1.35; }
  .cookiebar .btn { margin-left: auto; }
}
