/* QA repair: make search result cards shrink safely on narrow viewports. */
.search-results a { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.page-head h1 { overflow-wrap: anywhere; word-break: break-word; }
.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > .card { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
@media (min-width: 1100px) {
  .hero { padding: 50px 0 40px; }
  .hero h1 { font-size: 3.05rem; line-height: 1.2; max-width: 700px; }
  .symptoms { grid-template-columns: repeat(3, 1fr); max-width: 700px; }
  .symptom { min-height: 70px; padding: .72rem; font-size: .91rem; }
}
@media (max-width: 850px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 530px) { .search-results a { width: 100%; } }
@media (max-width: 530px) { .grid { grid-template-columns: minmax(0, 1fr); } }

.mobile-menu-toggle,
.mobile-nav-panel { display: none; }
.mobile-menu-toggle {
  min-width: 70px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #53718c;
  border-radius: 10px;
  background: #132d47;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.mobile-nav-panel[hidden] { display: none !important; }
@media (max-width: 700px) {
  .top .shell { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-block: 14px; }
  .top .brand { min-width: 0; margin-right: auto; }
  .top .brand img { display: block; width: min(232px, calc(100vw - 118px)); height: auto; }
  .top .desktop-nav,
  .top .searchbar { display: none; }
  .mobile-menu-toggle { display: inline-flex; flex: 0 0 auto; }
  .mobile-nav-panel:not([hidden]) { display: block; flex: 0 0 100%; width: 100%; }
  .top .mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    margin: 0;
    overflow: visible;
  }
  .top .mobile-nav a {
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 9px 11px;
    border: 1px solid #53718c;
    border-radius: 9px;
    background: #132d47;
    color: #e8f1f6;
    font-size: 13px;
    font-weight: 700;
    white-space: normal;
  }
  .top .mobile-nav a:last-child { grid-column: 1 / -1; border-color: #45b9b0; color: #fff; }
}
