/* UDBHAV responsive layout — shared by every page */

img, iframe, video {
  max-width: 100%;
}

.hero-mobile { display: none; }

@media (max-width: 1100px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: .76rem; }
  .hero { min-height: 570px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-header { top: 0; }
  .nav { min-height: 72px; }
  .menu-btn {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-links {
    display: none;
    position: fixed;
    inset: 72px 0 0;
    height: calc(100dvh - 72px);
    padding: 24px;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid #acd0cd;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 13px 4px;
    border-bottom: 1px solid #c5dfdc;
    font-size: 1rem;
  }
  .nav-links .register {
    width: max-content;
    margin-top: 18px;
    padding: 12px 20px;
    border: 0;
  }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .program { grid-template-columns: 64px minmax(0, 1fr); }
  .program > small { grid-column: 2; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.25fr 1fr 1fr; gap: 28px; }
  .admin { margin-top: 30px; }
  .hero {
    display: block;
    min-height: 0;
    padding-top: 0;
    background-color: var(--jade);
    background-image: none !important;
  }
  .hero-mobile {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    background: var(--jade);
  }
  .hero-copy { max-width: none; padding: 42px 0 58px; }
  .photo { background: white; }
  .photo img { object-fit: contain; object-position: center; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 68px; }
  body { font-size: 15px; overflow-x: hidden; }
  .wrap { width: min(var(--max), calc(100% - 36px)); }
  .nav { min-height: 68px; gap: 12px; }
  .brand img { width: 46px; height: 46px; }
  .brand strong { font-size: 1.3rem; }
  .brand small { font-size: .4rem; letter-spacing: .15em; }
  .nav-links { inset: 68px 0 0; height: calc(100dvh - 68px); }
  .hero {
    display: block;
    min-height: 0;
    padding-top: 0;
    background-color: var(--jade);
    background-image: none !important;
  }
  .hero-copy {
    max-width: none;
    padding: 38px 0 54px;
  }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4.4rem); }
  .hero p, .page-hero p { font-size: 1rem; }
  .page-hero { padding: 58px 0; }
  .page-hero h1 { font-size: clamp(2.7rem, 14vw, 4.5rem); }
  .section { padding: 50px 0; }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .grid, .people, .footer-grid, .fields, .slots {
    grid-template-columns: 1fr;
  }
  .card { padding: 22px; }
  .photo { background: white; }
  .photo img {
    object-fit: contain;
    object-position: center;
  }
  .photo.tall { aspect-ratio: 4 / 4.6; }
  .person { max-width: 430px; width: 100%; margin-inline: auto; }
  .program { gap: 12px; padding: 28px 0; }
  .program .num { font-size: 2.1rem; }
  .program h2 { font-size: 2rem; }
  .video { border-width: 5px; }
  .quote { padding: 26px 22px; border-left-width: 6px; }
  .form-card { padding: 25px 19px; }
  .field.full { grid-column: auto; }
  input, select, textarea { font-size: 16px; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { text-align: center; }
  .site-footer { padding-top: 44px; }
  .footer-grid { gap: 24px; }
  .admin { margin: 24px auto; padding: 0 16px; }
  .slot img { height: auto; aspect-ratio: 4 / 3; }
}

@media (max-width: 420px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .brand small { display: none; }
  .brand img { width: 43px; height: 43px; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 22px; }
  .program { grid-template-columns: 48px minmax(0, 1fr); }
  .program .num { font-size: 1.75rem; }
  .btn { width: 100%; text-align: center; }
  .form-card { padding: 23px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
