/* Choir photo refresh */
.photo-grid .photo-card.photo-focus-top img {
  object-position: center top;
}

/* Simplified site structure: these ideas are already part of the training flow. */
#voices,
#contribute,
#mainNav a[href="#voices"],
#mainNav a[href="#contribute"] {
  display: none !important;
}

/* Persistent production/support strip. Keep it compact so it never obscures content. */
body {
  padding-bottom: 78px;
}

footer {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 45;
  padding: 8px 0 !important;
  background: rgba(255, 255, 255, .97) !important;
  border-top: 1px solid #000 !important;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

footer .footer-inner.footer-expanded {
  min-height: 52px;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

footer .footer-brand {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  flex: 0 0 auto;
}

footer .footer-oros-logo {
  width: 36px !important;
  height: 42px !important;
  margin-inline: 6px !important;
  transform: scale(1.7) !important;
}

footer .footer-brand > span {
  font-size: 12px !important;
  white-space: nowrap;
}

footer .footer-credit-logos {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  min-width: 0;
}

footer .footer-credit-logos > span {
  padding: 0 !important;
  white-space: nowrap;
}

footer .footer-credit-logos img,
footer .footer-credit-logos .footer-nas,
footer .footer-credit-logos .footer-habaq {
  width: auto !important;
  height: 27px !important;
  flex: 0 0 auto;
}

footer .footer-credit-logos .footer-afh {
  width: auto !important;
  height: 31px !important;
}

.choir-notes-section {
  background: #fff;
  border-top: 1px solid #000;
}

.choir-notes-section .section-head {
  margin-bottom: 28px;
}

.choir-notes-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 12px;
}

.choir-note-card {
  margin: 0;
  grid-column: span 3;
  overflow: hidden;
  background: #ededed;
  min-width: 0;
}

.choir-note-card.note-lead {
  grid-column: span 6;
  grid-row: span 2;
}

.choir-note-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transform: scale(1.001);
  transition: filter .35s ease, transform .5s ease;
}

.choir-note-card:hover img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.025);
}

@media (max-width: 900px) {
  .choir-notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }

  .choir-note-card,
  .choir-note-card.note-lead {
    grid-column: auto;
    grid-row: auto;
  }

  .choir-note-card.note-lead {
    grid-column: 1 / -1;
    min-height: 360px;
  }

  footer .footer-brand > span,
  footer .footer-credit-logos > span {
    display: none !important;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 62px;
  }

  .choir-notes-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 9px;
  }

  .choir-note-card,
  .choir-note-card.note-lead {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  footer {
    padding: 5px 0 !important;
  }

  footer .footer-inner.footer-expanded {
    min-height: 48px;
    gap: 8px !important;
  }

  footer .footer-oros-logo {
    width: 30px !important;
    height: 34px !important;
    margin-inline: 4px !important;
    transform: scale(1.55) !important;
  }

  footer .footer-credit-logos {
    gap: 7px !important;
  }

  footer .footer-credit-logos img,
  footer .footer-credit-logos .footer-nas,
  footer .footer-credit-logos .footer-habaq {
    height: 22px !important;
  }

  footer .footer-credit-logos .footer-afh {
    height: 26px !important;
  }
}

/* Mobile training layout guard.
   Some Android browsers stretch the wizard grid rows inside <dialog>.
   Keep the step navigation compact and let the active page flow naturally. */
@media (max-width: 760px) {
  .song-dialog[open] {
    display: block !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .song-dialog #songDetail {
    height: auto !important;
    min-height: 0 !important;
  }

  .coach-root.coach-wizard {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    align-content: flex-start !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .coach-wizard-head,
  .coach-stepper,
  .coach-step-panel {
    flex: 0 0 auto !important;
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .coach-stepper {
    position: relative !important;
    top: auto !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: 54px !important;
    align-items: stretch !important;
    margin: 0 !important;
  }

  .coach-stepper button {
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    padding: 6px 4px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1px !important;
    line-height: 1.2 !important;
  }

  .coach-stepper button span,
  .coach-stepper button strong {
    display: block !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }

  .coach-stepper button span { font-size: 9px !important; }
  .coach-stepper button strong { font-size: 10px !important; }

  .coach-step-panel:not([hidden]) {
    display: flex !important;
    flex-direction: column !important;
  }

  .coach-step-panel[hidden] {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .coach-stepper {
    grid-auto-rows: 50px !important;
  }
  .coach-stepper button {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
  }
  .coach-stepper button strong { font-size: 9px !important; }
}

/* Balanced production/support marks.
   Equal cards + a shared visual logo zone, with optical sizing per mark. */
.partners-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
}

.partner-item {
  min-height: 270px !important;
  padding: 24px 24px 22px !important;
  justify-content: flex-start !important;
  gap: 18px !important;
}

.partner-role {
  display: block;
  min-height: 34px;
  line-height: 1.55;
  text-align: center;
}

.partner-logo-wrap,
.producer-logos {
  flex: 1 1 auto;
  width: 100%;
  min-height: 160px !important;
  height: 160px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 28px !important;
  overflow: hidden !important;
}

.partner-logo {
  display: block !important;
  width: auto !important;
  max-width: 78% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  margin: 0 !important;
}

.oros-partner-logo {
  width: auto !important;
  height: 124px !important;
  transform: none !important;
}

.nas-partner-logo,
.habaq-partner-logo {
  width: auto !important;
  height: 48px !important;
  max-width: 38% !important;
  transform: none !important;
}

.afh-logo {
  width: auto !important;
  height: 88px !important;
  max-width: 68% !important;
  transform: none !important;
}

@media (max-width: 900px) {
  .partners-grid {
    grid-template-columns: 1fr !important;
  }

  .partner-item {
    min-height: 210px !important;
  }

  .partner-logo-wrap,
  .producer-logos {
    min-height: 132px !important;
    height: 132px !important;
  }

  .oros-partner-logo { height: 110px !important; }
  .nas-partner-logo,
  .habaq-partner-logo { height: 44px !important; }
  .afh-logo { height: 80px !important; }
}

@media (max-width: 640px) {
  .partner-item {
    min-height: 190px !important;
    padding: 18px 18px 16px !important;
  }

  .partner-role {
    min-height: 28px;
    font-size: 10px !important;
  }

  .partner-logo-wrap,
  .producer-logos {
    min-height: 116px !important;
    height: 116px !important;
    gap: 18px !important;
  }

  .oros-partner-logo { height: 96px !important; }
  .nas-partner-logo,
  .habaq-partner-logo { height: 38px !important; }
  .afh-logo { height: 70px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .choir-note-card img { transition: none; }
}

/* Typography refinements */
.eyebrow {
  font-size: 14px !important;
  letter-spacing: .15em !important;
}

.partner-role {
  color: var(--muted);
  font-size: 14px !important;
}

@media (max-width: 1120px) {
  nav a {
    font-size: 14px !important;
  }
}

footer .footer-brand > span {
  font-size: 14px !important;
  white-space: nowrap;
}

.brand-copy strong {
  font-size: 20px !important;
  line-height: 1.2;
  letter-spacing: -.01em;
}
