@media (max-width: 800px) {
  button {
    -webkit-appearance: none;
    appearance: none;
    color: var(--ink);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  summary {
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
  }
  .menu-toggle:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
  }
}

@media (max-width: 800px) and (prefers-reduced-motion: no-preference) {
  .menu-toggle {
    transition:
      background-color 180ms ease,
      color 180ms ease,
      transform 180ms ease;
  }
  .menu-toggle:active,
  .hero .button:active {
    transform: scale(0.97);
  }
  #navigation.is-open {
    animation: mobile-menu-enter 280ms var(--ease) both;
  }
  #navigation.is-open > * {
    animation: mobile-link-enter 360ms var(--ease) both;
  }
  #navigation.is-open > :nth-child(2) {
    animation-delay: 35ms;
  }
  #navigation.is-open > :nth-child(3) {
    animation-delay: 70ms;
  }
  #navigation.is-open > :nth-child(4) {
    animation-delay: 105ms;
  }
  #navigation.is-open > :nth-child(5) {
    animation-delay: 140ms;
  }
  .hero-caption {
    animation: mobile-link-enter 700ms var(--ease) 300ms both;
  }
  .hero-caption .material-symbols-outlined {
    animation: mobile-scroll-hint 1500ms ease-in-out 1200ms 2;
  }
  @keyframes mobile-menu-enter {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes mobile-link-enter {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes mobile-scroll-hint {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(5px);
    }
  }
}

@media (max-width: 800px) {
  .container {
    width: calc(100% - 36px);
  }
  .header-inner {
    min-height: 80px;
    column-gap: 12px;
  }
  .site-header .brand {
    gap: 9px;
    min-width: 0;
  }
  .site-header .brand-mark {
    width: 44px;
    height: 44px;
    padding: 5px;
  }
  .site-header .brand-name {
    font-size: 1.5rem;
  }
  .site-header .brand-name small {
    font-size: 0.57rem;
    letter-spacing: 0.12em;
  }
  .menu-toggle {
    min-height: 44px;
    padding: 9px 11px;
    flex-shrink: 0;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    line-height: 1.2;
  }
  .menu-toggle[aria-expanded="true"] {
    background: var(--paper);
    color: var(--ink);
  }
  #navigation {
    width: 100%;
    padding-block: 8px 16px;
  }
  #navigation > a,
  .nav-group summary,
  #navigation .nav-dropdown a {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 0.9375rem;
  }
  #navigation .nav-dropdown {
    padding: 4px 8px 8px;
  }
  #navigation .nav-dropdown a {
    white-space: normal;
  }
  .page-intro {
    padding: 16px 0 28px;
  }
  .hero-facts {
    width: min(620px, calc(100% - 54px));
  }
  .hero-fact {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding: 13px 11px;
  }
  .hero-fact > .material-symbols-outlined {
    width: 28px;
    height: 28px;
    font-size: 23px;
  }
  .hero-fact strong {
    font-size: 1.2rem;
  }
  .hero-fact div > span {
    font-size: 0.55rem;
  }
  .page-intro .breadcrumb {
    gap: 9px;
    margin-bottom: 16px;
  }
  .page-intro h1,
  .news-intro--compact h1 {
    font-size: clamp(2.25rem, 7.5vw, 3rem);
    line-height: 1.08;
    margin-block: 12px;
  }
  .page-intro > div > p {
    font-size: 0.9375rem;
    line-height: 1.65;
  }
  .page-intro .eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
  }
  .breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }
  .breadcrumb {
    align-items: center;
  }
  .content-section,
  .club-section,
  .district-section {
    padding-block: 32px 48px;
  }
  .button {
    min-height: 48px;
  }
  .text-link {
    min-height: 44px;
    max-width: 100%;
  }
  .prose,
  .article-body,
  .contact-data,
  .history-chapters {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .prose p,
  .article-body p {
    line-height: 1.75;
  }
  .about-grid,
  .resource-page,
  .contact-grid,
  .history-layout {
    gap: 30px;
  }
  .about-photo {
    width: 100%;
  }
  .content-section.about-grid {
    padding-top: 32px;
  }
  .about-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-position: center 20%;
  }
  .prose h2,
  .resources h2 {
    font-size: 2.4rem;
  }
  .prose blockquote {
    margin-inline: 0;
    font-size: 2.6rem;
  }
  .article-wrap {
    padding-block: 20px 48px;
  }
  .article-heading {
    padding-bottom: 26px;
    margin-bottom: 28px;
  }
  .article-heading h1 {
    font-size: clamp(2.15rem, 7.5vw, 3rem);
    line-height: 1.1;
  }
  .article-lead {
    font-size: 1.55rem;
  }
  .article-photo {
    margin-inline: 0;
  }
  .article-photo img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
  }
  .notice {
    padding: 20px;
  }
  .section-heading {
    gap: 16px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .section-heading h2 {
    font-size: 2.8rem;
    margin-top: 8px;
  }
  .news-section {
    padding-block: 44px 48px;
  }
  .news-period-nav a {
    min-height: 44px;
  }
  .news-period-heading {
    flex-wrap: wrap;
    gap: 8px;
  }
  .news-card-title {
    overflow-wrap: anywhere;
  }
  .news-card-cta {
    min-height: 44px;
  }
  .news-history-link {
    min-width: 0;
  }
  .news-history-link h4 {
    overflow-wrap: anywhere;
  }
  .news-period {
    margin-bottom: 36px;
  }
  .calendar-toolbar {
    gap: 16px;
  }
  .calendar-actions {
    gap: 8px;
  }
  .calendar-actions .small-button,
  .icon-button,
  .filter-buttons button {
    min-height: 44px;
  }
  .icon-button {
    min-width: 44px;
  }
  .calendar-weekdays {
    font-size: 0.7rem;
  }
  .calendar-day,
  .calendar-blank {
    min-height: 44px;
  }
  .calendar-agenda {
    padding: 22px;
  }
  .calendar-agenda h2 {
    font-size: 2rem;
  }
  .calendar-legend {
    font-size: 0.8rem;
  }
  .sample-note {
    font-size: 0.8rem;
    line-height: 1.65;
  }
  .club-callout {
    margin-top: 32px;
    padding: 24px;
    gap: 20px;
  }
  .club-callout h2 {
    font-size: 2.1rem;
  }
  .club-callout > a {
    flex-shrink: 1;
  }
  .gallery-item figcaption {
    flex-wrap: wrap;
    gap: 3px 12px;
    font-size: 0.9rem;
  }
  .photo-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    padding: 60px 12px 14px;
  }
  .photo-large {
    height: auto;
    max-height: 65dvh;
    object-fit: contain;
  }
  .photo-controls {
    gap: 8px;
  }
  .photo-caption {
    font-size: 0.8rem;
    line-height: 1.5;
  }
  .history-photo img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .history-photo figcaption {
    font-size: 1.5rem;
  }
  .history-chapters > h2 {
    font-size: 2.4rem;
  }
  .board-lead {
    margin-bottom: 26px;
  }
  .download-row > div {
    min-width: 0;
  }
  .download-row h2 {
    overflow-wrap: anywhere;
  }
  .download-action {
    min-height: 44px;
  }
  .map-toolbar {
    width: 100%;
    gap: 14px;
  }
  .district-filters {
    width: 100%;
  }
  .district-filters button {
    min-height: 44px;
  }
  #district-map {
    height: 62svh;
    min-height: 360px;
    max-height: 500px;
  }
  #district-map .leaflet-control-zoom a {
    width: 44px;
    height: 44px;
    line-height: 44px;
  }
  #district-map .leaflet-control-attribution {
    max-width: 100%;
    white-space: normal;
    font-size: 9px;
  }
  .district-card-title {
    gap: 8px;
    margin-bottom: 14px;
  }
  .district-card-title h2 {
    font-size: 1.9rem;
  }
  .district-card dl {
    font-size: 0.85rem;
  }
  .map-status,
  .map-source {
    font-size: 0.8rem;
    line-height: 1.65;
  }
  .footer-top {
    padding-block: 32px;
  }
  .footer-bottom {
    padding-block: 18px;
    gap: 6px 22px;
    line-height: 1.65;
  }
  .footer-bottom a {
    min-height: 44px;
  }
  .footer-bottom > span {
    margin-right: 0;
  }
}

@media (max-width: 600px) {
  .hero {
    margin-inline: 0;
    min-height: 710px;
    min-height: clamp(690px, 90svh, 760px);
  }
  .hero-content {
    padding-block: 52px 275px;
  }
  .hero h1 {
    font-size: 40px;
    line-height: 1.18;
  }
  .hero h1 em {
    font-size: 60px;
    line-height: 1.15;
  }
  .hero p {
    font-size: 1rem;
    line-height: 1.65;
    max-width: 310px;
  }
  .hero .button {
    width: min(100%, 300px);
    padding-inline: 18px;
    gap: 16px;
  }
  .hero-caption {
    bottom: 25px;
    gap: 12px;
  }
  .hero-facts {
    bottom: 88px;
    width: calc(100% - 36px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-fact {
    min-height: 70px;
    padding: 11px 12px;
  }
  .hero-fact + .hero-fact {
    border-left: 0;
  }
  .hero-fact:nth-child(even) {
    border-left: 1px solid #eee5c329;
  }
  .hero-fact:nth-child(n + 3) {
    border-top: 1px solid #eee5c329;
  }
  .hero-caption a {
    min-height: 44px;
    font-size: 0.75rem;
  }
  .hero-caption > span:first-child {
    font-size: 0.65rem;
  }
  .welcome {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "photo" "note";
    gap: 28px;
    padding-block: 44px;
  }
  .welcome-center {
    text-align: center;
  }
  .welcome-center h2 {
    font-size: clamp(2.4rem, 8.5vw, 3rem);
    margin-block: 16px 20px;
  }
  .welcome-copy p {
    font-size: 0.9375rem;
  }
  .welcome-note {
    display: block;
    justify-self: center;
  }
  .welcome-note span {
    font-size: 2rem;
  }
  .welcome-note::after {
    margin: 12px auto 0;
  }
  .moon-widget {
    width: min(100%, 300px);
    justify-self: center;
    padding: 22px 18px;
  }
  #moon-disc {
    width: 135px;
    height: 135px;
    margin-block: 16px;
  }
  .moon-widget p,
  #moon-next,
  .moon-future {
    font-size: 0.85rem;
  }
  .moon-future summary {
    min-height: 44px;
  }
  .moon-future li {
    padding-block: 8px;
  }
  .news-grid,
  .news-grid--home,
  .news-grid--dense {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .news-grid--home .news-card:nth-child(even) {
    margin-top: 0;
  }
  .news-grid--dense .news-card-media,
  .news-card-media {
    aspect-ratio: 16 / 10;
  }
  .news-card-body {
    padding-right: 0;
    margin-right: 10px;
  }
  .news-grid--dense .news-card-title {
    font-size: 1.85rem;
  }
  .news-card-body p {
    font-size: 0.9375rem;
    line-height: 1.7;
  }
  .news-history {
    margin-top: 32px;
  }
  .news-history-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-heading {
    flex-direction: column;
    gap: 12px;
  }
  .resource-photo {
    width: 100%;
    max-width: 300px;
    height: 260px;
  }
  .resource-links > a {
    font-size: 1.65rem;
  }
  .institution-list article {
    padding-left: 28px;
    margin-left: 0;
  }
  .institution-list h2 {
    font-size: 1.9rem;
  }
  .contact-sheet {
    padding: 30px 22px;
  }
  .contact-sheet h2 {
    font-size: 2.5rem;
  }
  .contact-data dl > div {
    grid-template-columns: minmax(75px, 0.35fr) minmax(0, 1fr);
    gap: 12px;
  }
  .contact-data dd {
    overflow-wrap: anywhere;
  }
  .board-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .board-person,
  .board-person:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px 14px;
  }
  .board-person:last-child {
    border-bottom: 0;
  }
  .board-number {
    float: right;
    font-size: 3.25rem;
    margin: 0 0 10px 16px;
  }
  .board-person h2 {
    font-size: 2rem;
  }
  .board-person .muted {
    font-size: 0.875rem;
  }
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .district-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .district-filters button:first-child {
    grid-column: 1 / -1;
  }
  .district-card-title button {
    gap: 6px;
  }
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .footer-brand .brand-name {
    font-size: 1.65rem;
  }
  .footer-brand .brand-name small {
    font-size: 0.55rem;
    letter-spacing: 0.12em;
  }
  .footer-address {
    justify-self: start;
    padding-left: 0;
    font-size: 0.875rem;
  }
}

@media (max-width: 360px) {
  .container {
    width: calc(100% - 28px);
  }
  .header-inner {
    column-gap: 6px;
  }
  .site-header .brand-mark {
    width: 38px;
    height: 38px;
  }
  .site-header .brand {
    gap: 7px;
  }
  .site-header .brand-name {
    font-size: 1.3rem;
  }
  .site-header .brand-name small {
    font-size: 0.5rem;
  }
  .menu-toggle {
    font-size: 0.75rem;
    gap: 5px;
    padding-inline: 8px;
  }
  .calendar-agenda,
  .club-callout {
    padding: 18px;
  }
  .district-card-title h2 {
    font-size: 1.7rem;
  }
  .filter-buttons {
    gap: 6px;
  }
  .filter-buttons button {
    padding-inline: 10px;
    font-size: 0.75rem;
  }
}

@media (max-width: 800px) and (max-height: 500px) {
  #district-map {
    min-height: 280px;
  }
  .photo-large {
    max-height: 50dvh;
  }
}
