@media (max-width: 1220px) {
  :root {
    --header-height: 70px;
  }

  .brand-copy small {
    max-width: 190px;
  }

  .menu-toggle {
    display: grid;
  }

  .primary-nav {
    position: absolute;
    z-index: 40;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    max-height: calc(100vh - var(--header-height));
    padding: 1rem max(1rem, calc((100vw - var(--container)) / 2));
    overflow: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--color-gray-200);
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .primary-nav > a {
    min-height: 50px;
    padding-inline: 0.4rem;
  }

  .primary-nav > a:not(.staff-link)::after {
    bottom: 0;
  }

  .primary-nav .staff-link {
    justify-content: center;
    margin-top: 0.75rem;
  }

  .quick-access {
    grid-template-columns: repeat(3, 1fr);
  }

  .quick-link:nth-child(3) {
    border-right: 0;
  }

  .quick-link:nth-child(-n + 3) {
    border-bottom: 1px solid var(--color-gray-200);
  }

  .risk-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .emergency-bar__content {
    padding-block: 0.35rem;
    flex-wrap: wrap;
    gap: 0 0.5rem;
    line-height: 1.3;
  }

  .emergency-bar__content strong {
    width: 100%;
    text-align: center;
  }

  .hero,
  .hero__content {
    min-height: 540px;
  }

  .hero__content {
    padding-bottom: 4rem;
  }

  .hero__media img {
    object-position: 66% center;
  }

  .hero__scrim {
    background: linear-gradient(90deg, rgb(5 46 43 / 0.94) 0%, rgb(5 46 43 / 0.74) 52%, rgb(5 46 43 / 0.22) 100%);
  }

  .quick-access {
    margin-top: 1rem;
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-link,
  .quick-link:nth-child(3) {
    border-right: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
  }

  .quick-link:nth-child(even) {
    border-right: 0;
  }

  .quick-link:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .alerts-section {
    padding-top: 4rem;
  }

  .alert-panel {
    grid-template-columns: 1fr;
  }

  .territory-map {
    min-height: 450px;
  }

  .community-panel,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .community-panel > img {
    min-height: 320px;
    aspect-ratio: 16 / 10;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) 1.1fr;
  }

  .footer-bottom .container {
    padding-block: 0.8rem;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 590px) {
  :root {
    --header-height: 66px;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .emergency-bar__separator {
    display: none;
  }

  .emergency-bar__content a {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    font-size: 0.84rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-logo {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.4rem;
  }

  .brand-copy strong {
    font-size: 1.05rem;
  }

  .brand-copy small {
    display: none;
  }

  .hero,
  .hero__content {
    min-height: 485px;
  }

  .hero__content {
    justify-content: flex-end;
    padding-block: 5rem 2.5rem;
  }

  .hero h1 {
    max-width: 8ch;
    margin-bottom: 1rem;
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .hero p {
    max-width: 34ch;
    font-size: 1rem;
  }

  .hero__media img {
    object-position: 63% center;
  }

  .hero__scrim {
    background: linear-gradient(0deg, rgb(5 46 43 / 0.97) 0%, rgb(5 46 43 / 0.78) 58%, rgb(5 46 43 / 0.2) 100%);
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero__actions .button {
    width: 100%;
  }

  .quick-access {
    padding: 0.5rem;
  }

  .quick-link {
    min-height: 112px;
    font-size: 0.9rem;
  }

  .quick-link svg {
    width: 2.25rem;
    height: 2.25rem;
  }

  .section {
    padding-block: 3.75rem;
  }

  .alert-panel__content {
    padding: 1.2rem;
  }

  .alert-heading {
    flex-direction: column;
  }

  .territory-map {
    min-height: 390px;
  }

  .territory-map figcaption {
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
  }

  .alert-legend {
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    justify-content: flex-start;
    gap: 0.45rem 0.85rem;
  }

  .risk-grid,
  .directorates,
  .dialog__actions,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .news-card {
    display: block;
  }

  .community-panel > img {
    min-height: auto;
  }

  .footer-grid {
    gap: 1.8rem;
  }

  .footer-bottom nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .dialog {
    width: calc(100% - 1rem);
  }

  .dialog__panel {
    padding: 1.3rem;
  }

  .dialog__panel h2 {
    padding-right: 2.5rem;
  }
}

@media (min-width: 1440px) {
  :root {
    --container: 1260px;
  }

  .hero,
  .hero__content {
    min-height: 650px;
  }

  .quick-access {
    margin-top: -72px;
  }
}

@media (min-width: 1800px) {
  :root {
    --container: 1380px;
  }

  .hero,
  .hero__content {
    min-height: 720px;
  }
}
