/* Home: mobile layout refinements. Loaded only on the home page. */
@media (max-width: 900px) {
  .quick-access-section .quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-announcements-section,
  .home-news-section {
    padding-block: 36px;
  }
}

@media (max-width: 576px) {
  .topbar {
    display: none;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .nav-wrap {
    height: 64px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand span {
    font-size: 10px;
  }

  .brand strong {
    font-size: 14px;
  }

  .admission-cta {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .mobile-nav-toggle {
    width: 44px;
    height: 44px;
  }

  .mobile-nav-inner {
    max-height: calc(100vh - 64px);
  }

  .hero-carousel {
    min-height: 420px;
  }

  .hero-content {
    min-height: 420px;
    align-items: flex-start;
    padding: 74px 0 72px;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-copy h1 {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.15;
    margin-bottom: 12px;
  }

  .hero-copy p {
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 18px;
  }

  .hero-actions .btn {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .hero-dots {
    bottom: 42px;
    gap: 9px;
  }

  .hero-dot {
    width: 10px;
    height: 10px;
  }

  .hero-wave {
    height: 58px;
  }

  .quick-access-section {
    padding: 26px 0 30px;
  }

  .quick-access-section .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .quick-access-section .quick-card {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 70px;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
  }

  .quick-access-section .quick-card img {
    width: 34px;
    height: 34px;
  }

  .quick-access-section .quick-card strong {
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .home-announcements-section,
  .home-news-section {
    padding-block: 30px;
  }

  .announcement-heading,
  .home-news-heading {
    gap: 10px;
    margin-bottom: 16px;
  }

  .announcement-heading-icon img,
  .home-section-icon img {
    width: 42px;
    height: 42px;
  }

  .announcement-heading h2,
  .home-news-heading h2 {
    font-size: 19px;
    letter-spacing: 0;
  }

  .announcement-heading p,
  .home-news-heading p {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.35;
  }

  .home-announcement-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .announcement-card {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  }

  .announcement-poster {
    min-height: 0;
    aspect-ratio: auto;
  }

  .announcement-poster img {
    height: 100%;
    max-height: 210px;
    object-fit: cover;
  }

  .announcement-badge {
    left: 9px;
    top: 9px;
    min-height: 24px;
    padding: 4px 7px;
    font-size: 9px;
  }

  .announcement-body {
    min-height: 0;
    gap: 7px;
    padding: 14px;
  }

  .announcement-body h3 {
    font-size: 16px;
  }

  .announcement-body p,
  .announcement-body .muted {
    font-size: 13px;
    line-height: 1.4;
  }

  .announcement-body .btn {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 13px;
  }

  .announcement-more {
    margin-top: 16px;
  }

  .announcement-more .btn {
    min-height: 44px;
    width: 100%;
  }

  .home-news-layout {
    display: block;
  }

  .home-news-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(82%, 86%);
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 2px 2px 10px;
  }

  .home-news-list::-webkit-scrollbar {
    display: none;
  }

  .home-news-card {
    min-width: 0;
    scroll-snap-align: start;
  }

  .home-news-image {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .home-news-date {
    left: 14px;
    bottom: -8px;
    width: 50px;
    height: 50px;
  }

  .home-news-date strong {
    font-size: 19px;
  }

  .home-news-date small {
    font-size: 10px;
  }

  .home-news-body {
    min-height: 0;
    gap: 9px;
    padding: 24px 16px 16px;
  }

  .home-news-body h3 {
    font-size: 17px;
    -webkit-line-clamp: 2;
  }

  .home-news-body p {
    font-size: 14px;
    line-height: 1.45;
    -webkit-line-clamp: 3;
  }

  .home-news-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    font-size: 14px;
  }

  .home-news-more-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 0;
    margin-top: 10px;
    padding: 14px;
    text-align: left;
  }

  .home-news-more-icon {
    display: none;
  }

  .home-news-more-card h3 {
    flex: 1;
    font-size: 14px;
    line-height: 1.3;
  }

  .home-news-more-card .btn {
    width: auto;
    min-height: 42px;
    padding: 9px 11px;
    font-size: 12px;
    white-space: nowrap;
  }

  .home-calendar-section {
    padding-block: 28px;
  }

  .home-calendar-card {
    padding: 16px 12px;
    border-radius: 18px;
  }

  .home-calendar-card-head {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 12px;
  }

  .home-calendar-card-head .eyebrow {
    padding: 5px 9px;
    font-size: 11px;
  }

  .home-calendar-card-head h2 {
    margin-top: 5px;
    font-size: 21px;
  }

  .home-calendar-nav {
    width: auto;
    flex: 0 0 auto;
    gap: 6px;
  }

  .home-calendar-nav .calendar-nav {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
  }

  .home-calendar-weekdays,
  .home-calendar-grid {
    gap: 5px;
  }

  .home-calendar-weekdays {
    margin-bottom: 6px;
  }

  .home-calendar-weekdays span {
    font-size: 10px;
    letter-spacing: -.02em;
  }

  .home-calendar-grid .calendar-day-cell {
    min-height: 0;
    aspect-ratio: 1 / .94;
    display: grid;
    place-items: center;
    padding: 3px;
    border-radius: 10px;
    background: #f8fcff;
  }

  .home-calendar-grid .calendar-day-cell > strong {
    font-size: 14px;
    line-height: 1;
  }

  .home-calendar-grid .calendar-day-cell.has-events {
    position: relative;
    border-color: #bfe4ff;
    background: #edf8ff;
    box-shadow: none;
  }

  .home-calendar-grid .calendar-day-cell.has-events::after {
    content: "";
    position: absolute;
    bottom: 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--azul);
  }

  .home-calendar-grid .calendar-day-cell.is-today {
    border: 2px solid var(--amarillo);
    background: #fffaf0;
  }

  .home-calendar-grid .calendar-day-cell.is-today > strong {
    color: var(--azul);
  }

  .home-calendar-grid .calendar-day-cell.is-outside {
    border-color: transparent;
    background: transparent;
    opacity: .45;
  }

  .home-calendar-grid .calendar-day-events {
    display: contents;
  }

  .home-calendar-grid .calendar-day-events a.calendar-day-event-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    border: 0;
    border-radius: inherit;
    background: transparent;
    font-size: 0;
    padding: 0;
  }

  .home-calendar-grid .calendar-day-events a.calendar-day-event-link:focus-visible {
    outline: 2px solid var(--azul);
    outline-offset: 2px;
  }

  .home-calendar-grid .calendar-day-events > span {
    display: none;
  }

  .home-calendar-event-list {
    gap: 10px;
  }

  .home-calendar-event-item {
    border-left-width: 5px;
    border-radius: 14px;
    padding: 13px 14px;
  }

  .home-calendar-event-item strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-calendar-event-item p {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.35;
  }

  .home-gallery-section {
    padding-block: 28px;
  }

  .home-gallery-card {
    padding: 16px 0 16px 14px;
    border-radius: 18px;
  }

  .home-gallery-head {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 12px;
    padding-right: 14px;
  }

  .home-gallery-head .eyebrow {
    font-size: 15px;
  }

  .home-gallery-head .eyebrow::before {
    width: 26px;
    height: 26px;
  }

  .home-gallery-actions {
    width: auto;
  }

  .home-gallery-actions a {
    font-size: 12px;
  }

  .home-gallery-arrow {
    display: none;
  }

  .home-gallery-strip {
    grid-auto-columns: minmax(82%, 86%);
    gap: 12px;
    padding: 2px 2px 8px;
  }

  .home-gallery-strip .gallery-tile {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }

  .home-gallery-strip .gallery-tile img,
  .home-gallery-strip .gallery-tile video {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
  }
}

@media (max-width: 360px) {
  .nav-wrap {
    gap: 5px;
  }

  .brand {
    gap: 6px;
  }

  .brand strong {
    font-size: 13px;
  }

  .admission-cta {
    padding-inline: 7px;
    font-size: 11px;
  }

  .quick-access-section .quick-card {
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: 66px;
    padding: 9px;
  }

  .quick-access-section .quick-card img {
    width: 30px;
    height: 30px;
  }

  .quick-access-section .quick-card strong {
    font-size: 13px;
  }

  .announcement-card {
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  }

  .home-news-more-card {
    align-items: stretch;
    flex-direction: column;
  }

  .home-news-more-card .btn {
    width: 100%;
  }
}
