/* Shared responsive refinements for phones, tablets, and enlarged text. */
.brand-logo { display: block; width: 330px; max-width: 100%; height: auto; }
.brand-logo-light { display: none; }
footer .brand-logo-dark { display: none; }
footer .brand-logo-light { display: block; }
.site-header .brand { max-width: 330px; flex-shrink: 1; min-width: 0; }
footer .brand { max-width: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img { max-width: 100%; }
.hero > *, .intro-grid > *, .content-grid > *, .contact-grid > *,
.service-grid > *, .history-grid > *, .record-list > *, .steps > *,
.news-row > *, .footer-grid > *, .section-heading > *, .archive-tools > * {
  min-width: 0;
}
.prose, .side-panel, .news-row, .record-list, address {
  overflow-wrap: anywhere;
}
.button { max-width: 100%; }
.button > i, .text-link > i { flex-shrink: 0; }
.archive-tools input, .archive-tools select { min-width: 0; }

@media (max-width: 1100px) {
  .site-header nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 20px 24px; box-shadow: 0 8px 16px #10243516;
  }
  .site-header nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
  .site-header nav > a { padding: 11px 8px; font-size: 14px; }
  .site-header nav > a[aria-current] { box-shadow: inset 3px 0 var(--red); }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid var(--line); background: #fff; padding: 9px 13px;
    font-size: 12px; font-weight: 700; color: var(--navy); cursor: pointer;
  }
  .menu-toggle { min-width: 82px; min-height: 44px; flex-shrink: 0; }
  .site-header nav {
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-header nav > a { min-height: 44px; display: flex; align-items: center; }
  .site-header nav > .button-small { justify-content: space-between; }
  .archive-tools input, .archive-tools select { font-size: 16px; }
  .utility .wrap { min-height: 44px; height: auto; gap: 12px; }
  .utility a { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding: 42px 24px; }
  .hero h1 { font-size: clamp(38px, 7vw, 51px); }
  .hero-photo { height: clamp(245px, 49vw, 370px); }
  .hero .actions { flex-direction: row; flex-wrap: wrap; }
  .hero .button { min-height: 46px; }
  .intro-grid, .content-grid, .contact-grid, .operations-band .content-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .service-grid, .history-grid, .steps, .record-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .service { margin: 0; padding: 26px 0; border-right: 0; border-bottom: 1px solid #c9d2d9; }
  .service:last-child { padding-top: 26px; }
  .service h3 { font-size: 22px; }
  .service p { font-size: 15px; }
  .service-icon { margin-bottom: 18px; }
  .service-link { padding-top: 18px; }
  .history-grid, .steps, .record-list { gap: 28px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-heading .text-link { white-space: normal; }
  .operation-details > article { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .detail-heading { flex-direction: row; align-items: center; gap: 18px; }
  .archive-tools { grid-template-columns: minmax(0, 1fr); }
  .join-band .wrap { flex-direction: column; align-items: flex-start; gap: 28px; }
  .join-band .button { white-space: normal; }
  .emergency-panel { align-items: flex-start; }
  .emergency-panel > div { flex-basis: 100%; }
  .emergency-panel > i { display: none; }
  .emergency-panel .button { margin-left: 0; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 96px; }
  .hero-copy { padding-inline: 20px; }
  .hero h1 { font-size: clamp(35px, 9.5vw, 46px); }
  .page-head h1 { font-size: clamp(31px, 8.8vw, 37px); }
  .utility .wrap > span { flex: 1; min-width: 0; line-height: 1.45; padding-block: 6px; }
  .header-inner { gap: 12px; }
  .menu-toggle { min-width: 44px; width: 44px; padding: 10px; justify-content: center; }
  .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-header .brand { flex: 1 1 0; }
  .brand { min-width: 0; }
  .brand-mark, .brand-name { flex-shrink: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > div > a:not(.brand), .footer-bottom a {
    min-height: 44px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
  }
  .footer-bottom div { gap: 4px 18px; }
  .text-link, summary { min-height: 44px; }
  summary { padding-block: 9px; }
  .faq details { padding-block: 10px; }
  .contact-topics a { min-height: 48px; gap: 14px; }
  .button, .side-panel .button, .hero .button { min-height: 46px; font-size: 13px; }
  .news-row h2 { line-height: 1.4; }
  .hero-photo figcaption { right: 20px; }
}

@media (max-width: 380px) {
  .site-header .brand-name { display: none; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .button { width: 100%; justify-content: space-between; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .contact-email { font-size: 22px; }
  .side-panel { padding: 23px; }
}

@media (max-height: 500px) and (max-width: 1100px) {
  .site-header nav { max-height: calc(100dvh - 84px); }
}
