@media (max-width: 1180px) {
  .ah-primary-nav { order: 4; }
  .ah-header-actions .ah-text-link { display: none; }
  .ah-menu { gap: 1.15rem; }
  .ah-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  :root { --ah-header-height: 82px; }
  .ah-primary-nav {
    position: fixed;
    inset: calc(var(--ah-admin-offset, 0px) + var(--ah-utility-height) + var(--ah-header-height)) 0 0;
    z-index: 999;
    display: none;
    overflow-y: auto;
    margin: 0;
    padding: 2rem var(--ah-gutter) 6rem;
    background: var(--ah-white);
  }
  .ah-site-shell.is-scrolled .ah-primary-nav { inset-block-start: calc(var(--ah-admin-offset, 0px) + var(--ah-utility-height) + 78px); }
  .ah-primary-nav.is-open { display: block; }
  .ah-menu { align-items: stretch; flex-direction: column; gap: 0; }
  .ah-menu > li { border-bottom: 1px solid var(--ah-border); }
  .ah-menu a,
  .ah-header-overlay .ah-site-shell:not(.is-scrolled) .ah-menu a { width: 100%; min-height: 58px; color: var(--ah-blue); font-size: 1rem; }
  .ah-menu > li > a::after { display: none; }
  .ah-menu .sub-menu { position: static; min-width: 0; padding: 0 0 0.75rem 1rem; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .ah-menu-toggle { display: grid; }
  .ah-header-actions { margin-left: auto; }
  .ah-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .ah-footer__contact { grid-column: 2 / -1; }
  .ah-post-grid { grid-template-columns: repeat(2, 1fr); }
  .ah-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --ah-gutter: 1.25rem; --ah-utility-height: 30px; --ah-header-height: 76px; }
  .ah-utility-bar { font-size: 0.68rem; text-align: center; }
  .ah-utility-bar .ah-shell-container { justify-content: center; }
  .ah-utility-nav { display: none; }
  .ah-brand__mark img { max-width: var(--ah-logo-scrolled-mobile, 90px); max-height: 56px; }
  .ah-brand__monogram { width: 42px; }
  .ah-brand__text strong { font-size: 0.9rem; }
  .ah-brand__text small { display: none; }
  .ah-header-actions { display: none; }
  .ah-header-overlay .ah-site-shell:not(.is-scrolled) .ah-header__inner { gap: .75rem; }
  .ah-home-logo-left.ah-header-overlay .ah-site-shell:not(.is-scrolled) .ah-header__inner { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ah-home-logo-left.ah-header-overlay .ah-site-shell:not(.is-scrolled) .ah-brand { grid-column: 1; justify-self: start; }
  .ah-home-logo-center.ah-header-overlay .ah-site-shell:not(.is-scrolled) .ah-header__inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .ah-home-logo-center.ah-header-overlay .ah-site-shell:not(.is-scrolled) .ah-brand { grid-column: 2; justify-self: center; }
  .ah-header-overlay .ah-site-shell:not(.is-scrolled) .ah-brand__mark img { max-width: var(--ah-logo-home-mobile, 120px); max-height: 64px; }
  .ah-header-overlay .ah-site-shell:not(.is-scrolled) .ah-header-entry-cta { grid-column: 3; min-height: 44px; padding: .65rem 1rem; font-size: .72rem; }
  .ah-header-entry-cta__long { display: none; }
  .ah-header-entry-cta__short { display: inline; }
  .ah-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .ah-footer__identity,
  .ah-footer__contact,
  .ah-footer__bottom { grid-column: 1 / -1; }
  .ah-footer__bottom { flex-direction: column; gap: 0.5rem; }
  .ah-post-grid,
  .ah-grid--2,
  .ah-grid--3,
  .ah-grid--4 { grid-template-columns: 1fr; }
  .ah-entry__header h1,
  .ah-archive-header h1,
  .ah-not-found h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
}

@media (max-width: 390px) {
  .ah-header-overlay .ah-site-shell:not(.is-scrolled) .ah-header-entry-cta { padding-inline: .8rem; }
  .ah-home-logo-center.ah-header-overlay .ah-site-shell:not(.is-scrolled) .ah-brand__mark img { max-width: min(var(--ah-logo-home-mobile, 120px), 104px); }
}
