/* Responsive overrides. Padding, margins and layout gaps remain compact. */
@media (max-width: 1000px) {
  .school-brand strong { font-size: 18px; }
  .header-details { gap: 10px; }
  .header-detail { gap: 5px; }
  .hero-caption { left: 55px; }
  .hero-carousel__stage { height: 450px; }
  .about-grid { min-height: 390px; }
  .school-collage { height: 360px; }
  .photo-print { width: 63%; }
  .photo-print--back { left: 5%; }
  .photo-print--front { right: 5%; }
  .photo-print img { height: 150px; }
  .gallery-item img { height: 190px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-note { display: none; }
}
@media (max-width: 760px) {
  .header-detail:first-child { display: none; }
  .header-detail .detail-icon { display: none; }
  .header-detail strong { font-size: 10px; }
  .site-nav { gap: 5px; }
  .site-nav a { padding: 5px 10px; font-size: 17px; }
  .hero-carousel__stage { height: 400px; }
  .hero-caption { left: 50px; width: 70%; }
  .hero-caption h1 { font-size: 43px; }
  .hero-caption p { font-size: 13px; }
  .carousel-dot { width: 13px; }
  .welcome-strip span { gap: 5px; font-size: 10px; }
  .welcome-strip .icon { width: 16px; height: 16px; }
  .about-grid { grid-template-columns: .9fr 1.1fr; }
  .school-collage { height: 340px; }
  .photo-print img { height: 130px; }
  .photo-print { width: 70%; }
  .collage-note { left: 3%; font-size: 10px; }
  .doodle-sun { display: none; }
  .about-copy p:not(.eyebrow) { font-size: 12px; }
  .value-tags { gap: 5px; }
  .value-tags span { font-size: 10px; }
  .gallery-item img { height: 170px; }
  .admission-intro h2 { font-size: 29px; }
  .contact-photo img { height: 340px; }
}
@media (max-width: 580px) {
  body { font-size: 14px; }
  .masthead { height: 60px; gap: 10px; }
  .school-mark { width: 40px; height: 40px; }
  .school-brand { gap: 5px; }
  .school-brand strong { font-size: 15px; }
  .school-brand small { font-size: 7px; letter-spacing: 1px; }
  .header-details { display: none; }
  .site-nav { justify-content: space-between; gap: 0; height: 42px; }
  .site-nav a { min-height: 34px; padding: 5px; font-size: 10px; }
  .hero-carousel__stage { height: 365px; }
  .hero-slide img { object-position: center; }
  .hero-carousel__stage::after { background: linear-gradient(0deg, #fff 0%, #ffffffc9 18%, #ffffff99 37%, #ffffff26 65%, #ffffff00 85%); }
  .hero-caption { top: auto; bottom: 55px; left: 15px; width: calc(100% - 30px); transform: none; }
  .hero-kicker { font-size: 8px; letter-spacing: 1.4px; }
  .hero-caption h1 { font-size: 35px; }
  .hero-caption p { margin-block: 10px; font-size: 12px; }
  .hero-caption .button { min-height: 36px; padding: 8px 10px; font-size: 11px; }
  .carousel-arrow { width: 28px; height: 28px; top: 25%; }
  .carousel-arrow .icon { width: 17px; height: 17px; }
  .carousel-toolbar { max-width: calc(100% - 20px); padding: 3px 5px; }
  .carousel-dot { width: 11px; height: 24px; padding: 2px; }
  .carousel-dot::before { width: 4px; height: 4px; }
  .carousel-dot[aria-current="true"]::before { width: 7px; }
  .carousel-count { min-width: 30px; font-size: 8px; }
  .welcome-strip .container { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .welcome-strip span { font-size: 9px; }
  .welcome-strip span:last-child { display: none; }
  .about-grid, .admission-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 10px; }
  .school-collage { width: 100%; max-width: 420px; height: 330px; margin-inline: auto; }
  .photo-print { width: 57%; }
  .photo-print img { height: 140px; }
  .photo-print--back { left: 7%; }
  .photo-print--front { right: 7%; }
  .doodle-sun { display: block; }
  .collage-note { left: 7%; }
  .about-copy p:not(.eyebrow) { font-size: 13px; }
  h2 { font-size: 26px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .section-heading > p { font-size: 12px; }
  .desktop-break { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .gallery-item img { height: 160px; }
  .gallery-item > span { padding: 5px; font-size: 9px; }
  .gallery-item .icon { width: 13px; height: 13px; }
  .gallery-action { flex-wrap: wrap; gap: 10px; }
  .admission-intro h2 { font-size: 31px; }
  .admission-steps { gap: 5px; }
  .contact-photo img { height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .school-loader__bag { width: 96px; }
  .school-loader__name { font-size: 14px; }
  .lightbox-stage { gap: 5px; }
  .gallery-lightbox button { width: 28px; height: 28px; }
  .lightbox-stage img { width: calc(100% - 66px); height: 60dvh; }
}

/* Breadcrumb-like navigation: one compact, swipeable trail of section links. */
@media (max-width: 760px) {
  .site-nav { justify-content: flex-start; gap: 0; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { position: relative; gap: 10px; padding: 5px 10px; color: #fff; font-size: 12px; }
  .site-nav a:not(:last-child)::after { content: '›'; color: #ffffffb3; font-size: 16px; font-weight: 400; }
  .site-nav a[aria-current="page"] { background: #ffffff26; }
  .footer-grid { column-gap: 20px; row-gap: 24px; }
}
@media (max-width: 580px) {
  .hero-carousel__stage { height: 410px; }
  .hero-caption { bottom: 55px; }
  .hero-caption h1 { font-size: 34px; }
  .hero-caption p { color: #42546a; }
  .site-footer { padding: 30px 0 24px; }
  .site-footer .container { padding-inline: 15px; }
  .footer-grid { row-gap: 24px; }
  .footer-bottom { padding-top: 18px; margin-top: 24px; padding-right: 60px; }
}
@media (max-width: 360px) {
  .hero-caption h1 { font-size: 30px; }
  .hero-caption p { font-size: 11px; }
  .school-collage { height: 300px; }
  .photo-print img { height: 120px; }
  .gallery-item img { height: 140px; }
}

/* Story layouts retain their photo-collage character on smaller screens. */
@media (max-width: 1000px) {
  .scrapbook-board { height: 410px; }
  .portrait-print { width: 40%; }
  .portrait-print img { height: 165px; }
  .portrait-print--principal { left: 4%; }
  .portrait-print--vice { right: 4%; }
  .portrait-print--manager { left: 29%; }
  .portrait-print--manager img { height: 145px; }
  .discovery-print { width: 72%; }
  .discovery-print img { height: 175px; }
  .footer-brand strong { font-size: 19px; }
  .footer-brand small { font-size: 10px; }
}
@media (max-width: 760px) {
  .story-grid { grid-template-columns: 1fr; }
  .scrapbook-board { width: 100%; max-width: 510px; margin-inline: auto; }
  .story-grid--reverse .discovery-board { grid-row: 1; }
  .portrait-print { width: 36%; }
  .story-copy p:not(.eyebrow) { font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-brand strong { font-size: 21px; }
  .footer-grid h2 { font-size: 18px; }
  .footer-grid nav, .footer-grid > div > p { font-size: 15px; }
  .footer-bottom { font-size: 13px; }
}
@media (max-width: 580px) {
  .scrapbook-board { max-width: 420px; height: 385px; }
  .portrait-print { width: 42%; padding: 5px; }
  .portrait-print img { height: 155px; }
  .portrait-print--principal { left: 4%; }
  .portrait-print--vice { top: 35px; right: 4%; }
  .portrait-print--manager { left: 30%; }
  .portrait-print--manager img { height: 140px; }
  .portrait-print figcaption, .discovery-print figcaption { font-size: 10px; }
  .board-note { right: 3%; font-size: 10px; }
  .discovery-print { width: 69%; padding: 5px; }
  .discovery-print img { height: 165px; }
  .discovery-print--campus { left: 5%; }
  .discovery-print--life { right: 5%; }
  .school-discoveries { gap: 10px; }
  .school-discoveries > div { gap: 5px; }
  .school-discoveries strong { font-size: 12px; }
  .footer-brand strong { font-size: 20px; }
  .footer-brand small { font-size: 10px; }
  .footer-grid nav { gap: 12px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; font-size: 13px; }
}

@media (max-width: 1000px) {
  .community-board { height: 445px; }
}
@media (max-width: 580px) {
  .community-board { height: 425px; }
}

/* Mobile hamburger menu replaces the breadcrumb-style navigation. */
@media (max-width: 760px) {
  .header-details { display: none; }
  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 10px;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius);
    background: var(--primary-soft);
    color: var(--primary);
  }
  .navigation-bar.is-collapsible {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    box-shadow: 0 8px 15px #24344b1a;
  }
  .navigation-bar.is-collapsible.is-open { display: block; }
  .navigation-bar.is-collapsible .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    max-height: calc(100svh - 60px);
    overflow-y: auto;
    padding: 10px;
    gap: 5px;
  }
  .navigation-bar.is-collapsible .site-nav a {
    justify-content: center;
    min-height: 40px;
    font-size: 14px;
    padding: 10px;
  }
  .navigation-bar.is-collapsible .site-nav a::after { content: none; }

  /* Hero controls form one centered pair below the image caption. */
  .hero-carousel .carousel-toolbar { display: none; }
  .hero-carousel__stage { height: 440px; }
  .hero-caption { top: auto; bottom: 75px; left: 15px; width: calc(100% - 30px); transform: none; }
  .hero-caption h1 { font-size: clamp(30px, 5.8vw, 43px); }
  .hero-caption p { margin-block: 10px; }
  .carousel-arrow {
    top: auto;
    bottom: 15px;
    width: 40px;
    height: 40px;
    padding: 10px;
    transform: none;
  }
  .carousel-arrow--previous { left: calc(50% - 45px); right: auto; }
  .carousel-arrow--next { left: calc(50% + 5px); right: auto; }

  /* Center calls to action without relocating utility controls. */
  .button, .contact-copy > .text-link {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
  }
  .gallery-action { flex-direction: column; align-items: center; }
}
@media (max-width: 360px) {
  .masthead { gap: 5px; }
  .masthead .school-brand strong { font-size: 13px; }
  .masthead .school-brand small { font-size: 6px; }
  .masthead .school-mark { width: 34px; height: 34px; }
  .hero-carousel__stage { height: 415px; }
}
