/* Shared content, a dedicated composition for phones and small tablets. */
.mobile-only { display: none; }

@media (max-width: 760px) {
  html { scroll-padding-top: 84px; }
  .home-page, .gallery-page { min-width: 0; background: #f4f8f2; }
  .mobile-only { display: block; }
  .site-header {
    top: 0; left: 0; right: 0; width: 100%; min-height: 70px;
    padding: 10px 16px; gap: 10px; border-radius: 0 0 20px 20px;
    border: 0; background: #f8fcfaed; box-shadow: 0 4px 22px #2445370b;
  }
  .brand { gap: 8px; }
  .brand > svg { width: 29px; height: 34px; }
  .brand strong { font-size: 21px; letter-spacing: -.04em; white-space: nowrap; }
  .brand small { display: none; }
  .site-navigation { gap: 3px; }
  .site-navigation a { padding: 10px; min-height: 44px; font-size: 13px; }
  .home-page .map-hero {
    padding: 110px 20px 34px;
    background: linear-gradient(180deg, #d8f1ff, #eefaff);
  }
  .home-page .map-hero::before, .home-page .map-hero::after { display: none; }
  .home-page .hero-copy { width: 100%; max-width: 580px; margin: auto; }
  .hero-copy .eyebrow { font-size: 10px; letter-spacing: .13em; margin-bottom: 16px; }
  .home-page .hero-copy h1 { font-size: clamp(29px, 8vw, 44px); line-height: 1.35; letter-spacing: -.05em; margin-bottom: 16px; }
  .home-page .hero-copy .newmind-intro { font-size: 15px; line-height: 1.9; color: #48635c; max-width: 38em; margin: 0; }
  .home-page .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
  .home-page .hero-actions a { min-height: 46px; padding: 10px 15px; font-size: 13px; gap: 5px; }
  .home-page .map-overview { padding: 22px 20px 38px; background: linear-gradient(#eefaff, #d7e9c9); }
  .map-overview-heading { max-width: 580px; margin: 0 auto 20px; }
  .map-overview-heading .section-kicker { font-size: 10px; }
  .map-overview-heading h2 { font-size: 25px; line-height: 1.4; }
  .map-overview-heading > p:last-child { font-size: 14px; line-height: 1.8; max-width: none; }
  .adventure-map.four-stop-map {
    display: grid; grid-template-columns: 1fr; gap: 8px; height: auto; max-width: 580px;
    margin: 0 auto; padding: 14px 16px 18px; border-radius: 25px;
    background: #f8fcf0d9; box-shadow: none; position: relative;
  }
  .four-stop-map::before {
    content: ''; position: absolute; top: 51px; bottom: 87px; left: 44px;
    width: 0; height: auto; border-left: 2px dashed #b4c8a3; background: none; transform: none;
  }
  .four-stop-map::after, .four-stop-map .route-line { display: none; }
  .adventure-map.four-stop-map .map-stop {
    position: relative; inset: auto; display: grid; grid-template-columns: 56px minmax(0, 1fr) 20px;
    justify-items: start; align-items: center; gap: 14px; min-height: 78px; width: 100%; padding: 8px 0;
    transform: none; animation: none;
  }
  .four-stop-map .map-stop::before { display: none; }
  .four-stop-map .map-stop::after { content: '↗'; color: #779174; font-size: 20px; position: static; background: none; width: auto; height: auto; }
  .four-stop-map .stop-icon { width: 56px; height: 56px; border-width: 3px; box-shadow: 0 3px 0 #315c4220; }
  .four-stop-map .stop-icon svg { width: 29px; height: 29px; }
  .four-stop-map .stop-copy { min-width: 0; width: auto; padding: 0; min-height: 0; background: none; border: 0; box-shadow: none; text-align: left; }
  .four-stop-map .stop-copy small { font-size: 11px; line-height: 1.6; color: #5c7258; }
  .four-stop-map .stop-copy strong, .four-stop-map .pace-stop .stop-copy strong { font-size: 18px; line-height: 1.5; }
  .four-stop-map .map-note { position: static; grid-column: 1; margin-top: 8px; padding-top: 14px; border-top: 1px solid #dbe7d0; font-size: 12px; text-align: center; line-height: 1.7; }
  .home-page .destination-section { padding: 40px 20px; }
  .home-page .section-heading { margin-bottom: 25px; }
  .home-page .section-heading h2 { font-size: 29px; line-height: 1.4; }
  .home-page .section-heading > p:last-child { font-size: 15px; line-height: 1.8; }
  .home-page .section-kicker { font-size: 10px; letter-spacing: .1em; }
  .growth-land { padding: 22px 16px; border-radius: 25px; margin-top: 22px; }
  .growth-land .growth-heading h3 { font-size: 29px; line-height: 1.4; }
  .growth-land .growth-heading > div > p:last-child { font-size: 15px; line-height: 1.85; }
  .growth-land > .destination-number { font-size: 66px; top: 16px; right: 12px; opacity: .5; }
  .creative-display { grid-template-columns: 1fr; gap: 20px; }
  .growth-radio { max-width: none; margin: 0; }
  .growth-radio .music-player { width: calc(100% - 4px); margin: 0; padding: 15px; border-radius: 19px; display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 14px; box-shadow: 4px 4px 0 #315548; }
  .growth-radio .player-topbar { grid-column: 1/-1; font-size: 10px; padding: 0 0 10px; gap: 7px; }
  .growth-radio .player-topbar strong { font-size: 12px; }
  .growth-radio .cassette-tape { width: 92px; height: 64px; min-height: 0; margin: 0; padding: 7px; border-width: 2px; border-radius: 9px; }
  .growth-radio .cassette-label { display: none; }
  .growth-radio .cassette-window { grid-template-columns: 24px 1fr 24px; min-height: 35px; height: 36px; padding: 4px; gap: 3px; margin: 4px 0; border-width: 1px; }
  .growth-radio .cassette-reel { width: 23px; height: 23px; border-width: 4px; }
  .growth-radio .cassette-reel::after { inset: 4px; }
  .growth-radio .cassette-reel i { inset: 7px; }
  .growth-radio h4 { margin: 0; align-self: center; text-align: left; font-size: 20px; line-height: 1.5; }
  .growth-radio audio { grid-column: 1/-1; width: 100%; min-width: 0; height: 42px; margin: 0; }
  .home-audio-status { font-size: 12px; margin: 12px 0 0; }
  .creative-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .creative-gallery .card-visual { aspect-ratio: 3/4; }
  .growth-grid .card-body { padding: 12px 10px; }
  .growth-grid .card-body h4 { font-size: 15px; line-height: 1.5; }
  .growth-grid .card-open { font-size: 12px; min-height: 44px; padding: 8px; }
  .ai-value-points { gap: 0; margin-bottom: 22px; }
  .ai-value-points li { padding: 18px 0 18px 40px; border: 0; border-bottom: 1px solid #bfcfc07d; border-radius: 0; background: none; box-shadow: none; }
  .ai-value-number { position: absolute; top: 20px; left: 0; width: 28px; height: 28px; font-size: 11px; margin: 0; }
  .ai-value-points h4 { font-size: 18px; margin-bottom: 7px; }
  .ai-value-points p { font-size: 15px; line-height: 1.8; }
  .learning-land .growth-heading { margin-bottom: 18px; }
  .learning-land .growth-heading h3 span { display: block; }
  .learning-land .ai-value-points { display: grid; grid-template-columns: 1fr; margin-bottom: 28px; }
  .learning-land .ai-value-points li { position: relative; }
  .learning-gallery { grid-template-columns: 1fr; gap: 20px; }
  .learning-gallery .work-card { display: flex; flex-direction: column; border-radius: 18px; }
  .learning-gallery .card-visual { height: auto; min-height: 0; aspect-ratio: 16/10; }
  .learning-gallery .card-visual > img { object-fit: contain; padding: 0; }
  .learning-gallery .card-body { padding: 6px 16px; }
  .learning-gallery .card-body h4 { font-size: 18px; line-height: 1.6; margin: 0; }
  .learning-gallery .card-title-link { display: block; width: 100%; min-height: 52px; padding: 12px 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
  .learning-gallery .card-title-link:focus-visible { outline: 2px solid #326b59; outline-offset: 3px; border-radius: 4px; }
  .learning-gallery .card-title-link:active { color: #326b59; }
  .growth-section > .more-works { margin-top: 26px; }
  .growth-section > .more-works .primary-button { width: 100%; min-height: 50px; font-size: 15px; }
  .home-page .pace-handbook { padding: 38px 20px 44px; }
  .pace-book { width: 100%; margin: 0; max-width: none; grid-template-columns: 1fr; }
  .pace-book::before { inset: 8px -4px -8px; }
  .pace-book::after { inset: 4px -2px -4px; }
  .pace-book > .pace-introduction { padding: 26px 22px 22px; }
  .pace-handbook h2 { font-size: 29px; line-height: 1.35; }
  .pace-framework-full-name { font-size: 12px; line-height: 1.7; margin-top: 8px; }
  .pace-handbook .pace-framework-subtitle { font-size: 21px; margin: 16px 0; }
  .pace-framework-description { font-size: 15px; line-height: 1.9; }
  .pace-book > .pace-principles { padding: 0 22px 8px; }
  .pace-chapter { grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding: 20px 0; }
  .pace-chapter-icon { display: block; width: 34px; height: 34px; }
  .pace-book .pace-principles h3 { font-size: 18px; line-height: 1.6; }
  .pace-chapter-copy p { font-size: 15px; line-height: 1.8; }
  .pace-index, .pace-moon, .pace-handbook > .destination-number { display: none; }
  .home-page .teacher-section .about-layout { gap: 24px; }
  .home-page .teacher-photo { max-width: none; width: 100%; display: grid; grid-template-columns: 102px 1fr; align-items: center; border-radius: 20px; }
  .teacher-photo img { width: 102px; height: 130px; aspect-ratio: auto; object-fit: cover; object-position: center 20%; }
  .teacher-photo figcaption { position: static; padding: 16px; background: none; }
  .teacher-photo figcaption span { font-size: 12px; line-height: 1.6; }
  .teacher-photo figcaption strong { display: block; font-size: 16px; line-height: 1.7; }
  .about-copy h3 { font-size: 23px; }
  .about-copy > p { font-size: 15px; line-height: 1.9; }
  .home-page .teacher-section .about-copy blockquote { font-size: 17px; line-height: 1.8; margin: 22px 0 0; padding-left: 15px; }
  .site-footer { padding: 28px 20px max(26px,env(safe-area-inset-bottom)); gap: 12px; }
  .site-footer p { font-size: 12px; line-height: 1.7; }
  .footer-links { gap: 22px; }

  /* A small gallery lobby; each collection has its own full view. */
  .gallery-intro { padding: 104px 20px 27px; background: linear-gradient(145deg,#e0f2f6,#e6efdb); }
  .gallery-intro .eyebrow { font-size: 10px; margin-bottom: 15px; }
  .gallery-intro h1 { font-size: 32px; line-height: 1.4; margin-bottom: 12px; }
  .gallery-intro p:not(.eyebrow) { font-size: 15px; line-height: 1.8; margin-bottom: 0; }
  .gallery-summary { gap: 12px; margin-top: 21px; }
  .gallery-summary strong { font-size: 34px; }
  .gallery-summary span { font-size: 12px; line-height: 1.6; max-width: 21em; }
  .gallery-content { padding: 0 16px 36px; }
  .gallery-tools { position: sticky; top: 70px; z-index: 20; display: block; margin: 0 -16px; padding: 10px 16px; background: #f4f8f2f5; border-bottom: 1px solid #dde6d8; backdrop-filter: blur(16px); scroll-margin-top: 0; }
  .mobile-filter-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding: 0; width: 100%; border: 0; background: transparent; text-align: left; color: #26483d; }
  .mobile-filter-toggle > span:first-child { display: flex; align-items: center; gap: 12px; }
  .mobile-filter-toggle small { color: #647668; font-size: 12px; }
  .mobile-filter-toggle strong { font-size: 18px; }
  .mobile-filter-action { padding: 10px 12px; border: 1px solid #cadccb; background: white; border-radius: 13px; font-size: 13px; }
  .mobile-filter-action > span { display: inline-block; margin-left: 6px; }
  .mobile-filter-toggle[aria-expanded=true] .mobile-filter-action > span { transform: rotate(180deg); }
  .gallery-tools .category-filters { display: none; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; max-width: none; padding: 10px 0 6px; max-height: 50dvh; overflow-y: auto; }
  .gallery-tools.is-expanded .category-filters { display: grid; }
  .category-filters button { display: flex; align-items: center; justify-content: space-between; min-height: 46px; font-size: 14px; padding: 10px 13px; box-shadow: none; }
  .category-filters button span { font-size: 12px; }
  .results-line { min-height: 56px; gap: 10px; }
  .results-line p { font-size: 12px; }
  .work-collections { gap: 28px; }
  .work-collection { padding: 19px 14px 20px; border-radius: 24px; box-shadow: none; }
  .collection-heading { margin-bottom: 16px; padding-bottom: 12px; gap: 8px; }
  .collection-heading::before { height: 22px; width: 4px; }
  .collection-heading h2 { font-size: 23px; }
  .collection-heading > span { font-size: 12px; }
  .collection-more { border: 0; background: transparent; color: #456153; min-height: 44px; padding: 8px 0 8px 8px; font-size: 12px; margin-left: auto; white-space: nowrap; }
  .collection-more span { margin-left: 5px; }
  .work-collection .work-grid { grid-template-columns: 1fr; gap: 20px; }
  .work-collection .work-card { display: flex; flex-direction: column; border-radius: 18px; min-width: 0; box-shadow: 0 3px 0 #294b3210; }
  .work-collection .card-body { padding: 6px 16px; }
  .work-collection .card-body h3 { font-size: 18px; line-height: 1.6; margin: 0; }
  .work-collection .card-title-link { display: block; width: 100%; min-height: 52px; padding: 12px 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
  .work-collection .card-title-link:focus-visible { outline: 2px solid #326b59; outline-offset: 3px; border-radius: 4px; }
  .work-collection .card-title-link:active { color: #326b59; }
  .work-collection .card-visual { height: auto; min-height: 0; aspect-ratio: 16/10; }
  .work-collection .card-visual > img { object-fit: contain; object-position: center; }
  .collection-reading .card-visual, .learning-gallery .work-card[data-category=reading] .card-visual { aspect-ratio: auto; }
  .collection-reading .work-card .card-visual > img, .learning-gallery .work-card[data-category=reading] .card-visual > img { display: block; position: static; width: 100%; height: auto; padding: 0; }
  .collection-music .card-visual { aspect-ratio: 16/9; }
  .collection-music .mini-tape { width: 80%; }
  .vinyl-radio { padding: 12px; gap: 12px; border-radius: 20px; grid-template-columns: 1fr; }
  .vinyl-radio .radio-header { gap: 10px; padding: 3px 2px 7px; flex-wrap: wrap; }
  .radio-header > strong { font-size: 17px; }
  .radio-header-note { font-size: 11px; }
  .vinyl-radio .music-deck { padding: 16px 12px; display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 12px; }
  .vinyl-radio .deck-label { font-size: 10px; margin: 0; }
  .vinyl-radio .deck-label > span:last-child { display: none; }
  .vinyl-radio .turntable { width: 92px; height: 92px; margin: 0; }
  .vinyl-radio .vinyl-record { width: 86px; height: 86px; top: 3px; left: 3px; border-width: 3px; }
  .vinyl-radio .record-label { width: 33px; height: 33px; border-width: 2px; box-shadow: 0 0 0 2px #bd622c; }
  .vinyl-radio .record-label small, .vinyl-radio .record-label i, .vinyl-radio .tonearm, .vinyl-radio .turntable-dot { display: none; }
  .vinyl-radio .record-label strong { font-size: 13px; bottom: 7px; }
  .vinyl-radio .record-console { display: contents; }
  .vinyl-radio .record-caption { min-height: 0; margin: 0; text-align: left; }
  .vinyl-radio .music-deck h3 { font-size: 21px; }
  .vinyl-radio audio, .vinyl-radio .deck-controls, .vinyl-radio .deck-status { grid-column: 1/-1; width: 100%; margin: 0; }
  .vinyl-radio .deck-controls { gap: 8px; }
  .vinyl-radio .deck-controls button { font-size: 12px; padding: 10px 8px; }
  .vinyl-radio .deck-status { font-size: 12px; line-height: 1.6; }
  .mobile-art-viewer { display: block; }
  .mobile-art-viewer .art-stage-panel { border-radius: 18px; }
  .mobile-art-viewer .art-stage { height: auto; aspect-ratio: 4/3; padding: 8px; }
  .mobile-art-viewer .art-stage img { min-width: 0; min-height: 0; }
  .mobile-art-viewer .art-caption { padding: 8px 14px 0; align-items: center; gap: 12px; }
  .mobile-art-viewer .art-caption > span { flex-shrink: 0; font-size: 12px; color: #796288; }
  .mobile-art-viewer .art-caption h3 { flex: 1; margin: 0; font-size: 18px; }
  .mobile-art-viewer .art-caption .card-title-link { padding: 8px 0; min-height: 44px; }
  .mobile-art-viewer .art-controls { padding: 8px 14px 16px; gap: 12px; }
  .mobile-art-viewer .art-controls button { flex: 1; min-height: 44px; border: 1px solid #d8cce2; border-radius: 10px; font-size: 14px; }
  .work-dialog { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .work-dialog .dialog-head { padding: max(16px,env(safe-area-inset-top)) 16px 14px; }
  .work-dialog .dialog-head h2 { font-size: 21px; }
  .work-dialog #dialogBody { flex: 1; padding-bottom: env(safe-area-inset-bottom); }
  .work-dialog .reader-tools { display: grid; grid-template-columns: 1fr 36px 1fr 1.1fr; gap: 6px; padding: 10px; }
  .work-dialog .reader-tools span { min-width: 0; }
  .work-dialog .reader-tools button, .work-dialog .reader-tools a { font-size: 12px; padding: 8px 4px; text-align: center; }
  .work-dialog .reader-image { max-width: calc(100% - 20px); margin-bottom: 20px; }
  .audio-room { width: 100%; padding: 20px 16px; }
}

@media (max-width: 360px) {
  .site-header { padding-inline: 12px; gap: 6px; }
  .brand { gap: 5px; }
  .brand strong { font-size: 19px; }
  .brand > svg { width: 25px; }
  .site-navigation a { padding-inline: 8px; }
  .home-page .map-hero, .home-page .map-overview, .home-page .destination-section { padding-inline: 16px; }
  .home-page .hero-actions { gap: 8px; }
  .home-page .hero-actions a { padding-inline: 11px; font-size: 12px; }
  .growth-land { padding-inline: 12px; }
  .creative-gallery { gap: 9px; }
  .growth-grid .card-body { padding-inline: 8px; }
  .growth-grid .card-body h4 { font-size: 14px; }
  .gallery-content { padding-inline: 12px; }
  .gallery-tools { margin-inline: -12px; padding-inline: 12px; }
  .mobile-filter-toggle strong { font-size: 16px; }
  .mobile-filter-toggle > span:first-child { gap: 8px; }
  .work-collection { padding-inline: 10px; }
  .work-collection .work-grid { gap: 18px; }
  .work-collection .card-body { padding-inline: 14px; }
  .work-collection .card-body h3 { font-size: 17px; }
}
