/* Shared official logo and band-page layout. The homepage uses home.css. */
.band-directory { max-width: var(--max); margin: 4px auto 56px; padding: 0 var(--gutter); scroll-margin-top: 24px; }
.band-directory-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.band-card { display: flex; align-items: center; justify-content: center; min-width: 0; aspect-ratio: 1.58; padding: clamp(18px,2.4vw,34px); border-bottom: 6px solid var(--band-color); border-radius: 8px; background: var(--band-soft); }
.band-logo { display: block; width: 100%; height: auto; object-fit: contain; }
.band-card .band-logo { max-height: 126px; }
.band-card:hover { background: var(--band-wash); border-bottom-width: 10px; }
.band-card:focus-visible { outline: 4px solid var(--band-color); outline-offset: 5px; }

.band-page { --ground: var(--band-wash); --well: var(--band-wash); --accent: var(--band-link); --accent-soft: var(--band-soft); --stage: var(--band-soft); --stage-ink: #17223b; }
.band-page.dark { --ground: var(--band-night); --paper: var(--band-night-paper); --subtle: var(--band-night-line); --well: var(--band-night); --accent: var(--band-light); --accent-soft: var(--band-night-line); --stage: var(--band-soft); --stage-ink: #17223b; }
.band-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(24px,4vw,64px); width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto 44px; padding: clamp(28px,3.8vw,56px); border-radius: 20px; background: var(--stage); color: var(--stage-ink); }
.band-hero-copy { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.band-hero h1 { width: 100%; margin: 0 0 30px; padding: 0; background: transparent; }
.band-hero h1 .band-logo { width: min(100%,440px); height: auto; max-height: 210px; margin-inline: auto; object-position: center; background: transparent; }
.band-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px; border: 1px solid var(--band-color); border-radius: 8px; background: var(--band-color); color: var(--band-contrast); font-size: 14px; font-weight: 600; }
.band-primary:hover { background: var(--band-link); border-color: var(--band-link); color: white; }
.band-primary:focus-visible { outline-color: var(--stage-ink); }
.band-hero-visual { min-width: 0; }
.band-hero-visual .photo-open { border-radius: 8px; background: transparent; }
.band-hero-visual .photo img { width: 100%; height: auto; max-height: 440px; object-fit: contain; }
.band-hero-visual .photo figcaption strong, .band-hero-visual .photo figcaption > span, .band-hero-visual .source-link { color: var(--stage-ink); }
.band-hero-visual .photo figcaption strong { font-size: 12px; }
.band-hero-visual .photo figcaption > span { font-size: 12px; line-height: 1.8; }
.band-page .catalog { grid-template-columns: 200px minmax(0,1fr); }
.band-sidebar .back-to-bands { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--subtle); border-radius: 0; color: var(--accent); font-size: 12px; }
.band-page #filters { grid-template-columns: minmax(160px,1fr) 150px auto; }
.band-page #filters .search-field { grid-column: auto; }
.band-page .band-head h2 { font-family: var(--font); font-size: 25px; font-weight: 600; letter-spacing: -.035em; }
.band-page .band { margin-bottom: 54px; }
.band-return { display: flex; align-items: center; justify-content: space-between; gap: 30px; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; padding: 28px 0; border-top: 1px solid var(--subtle); }
.band-return > a { color: var(--secondary); font-size: 14px; }
.detail-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 30px; color: var(--secondary); font-size: 13px; }
.detail-footer a { text-decoration: underline; text-underline-offset: 5px; }
.supplement-main { max-width: 1100px; margin: 24px auto 48px; padding: 0 var(--gutter); }
.supplement-main h1 { margin: 0 0 32px; font-size: 32px; letter-spacing: -.04em; }

/* Keep each band's cover shape and arrangement. Logos retain their original colors. */
.layout-reversed .band-hero-copy { order: 2; }
.layout-reversed .band-hero-visual { order: 1; }
.layout-poster .band-hero { border-radius: 4px; }
.layout-playful .band-hero { border-radius: 36px 12px 36px 12px; }
.layout-soft .band-hero { border-radius: 30px; }
[data-band-theme="ave-mujica"].band-page .band-hero { border-radius: 2px; }
[data-band-theme="morfonica"].band-page .band-hero { border-radius: 12px 46px 12px 12px; }

@media (max-width: 1150px) {
  .band-directory-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .band-page .catalog { grid-template-columns: 180px minmax(0,1fr); }
  .band-page #filters { grid-template-columns: minmax(0,1fr) auto; }
  .band-page #filters .search-field { grid-column: 1 / -1; }
  .band-hero { gap: 28px; padding: 30px; }
  .band-hero h1 .band-logo { max-height: 180px; }
}
@media (max-width: 820px) {
  .band-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .band-card { padding: 24px; }
  .band-page .catalog { display: block; }
  .band-sidebar .back-to-bands { display: none; }
  .band-hero { padding: 26px; gap: 24px; margin-bottom: 30px; }
  .band-hero h1 .band-logo { max-height: 160px; }
}
@media (max-width: 560px) {
  .band-directory { margin-top: 0; margin-bottom: 30px; }
  .band-directory-grid { gap: 12px; }
  .band-card { padding: 18px 14px; border-bottom-width: 4px; border-radius: 5px; aspect-ratio: 1.35; }
  .band-card:hover { border-bottom-width: 6px; }
  .band-card .band-logo { max-height: 90px; }
  .band-page .topbar nav, .supplement-page .topbar nav { gap: 12px; }
  .band-hero { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding: 24px 20px; }
  .band-hero-copy { order: 0 !important; }
  .band-hero-visual { order: 1 !important; }
  .band-hero h1 { margin-bottom: 24px; }
  .band-hero h1 .band-logo { max-height: 150px; }
  .band-primary { min-height: 44px; padding: 10px 16px; font-size: 13px; }
  .band-hero-visual .photo img { max-height: 420px; }
  .band-hero-visual .photo figcaption > span { font-size: 11px; }
  .band-page .band-head h2 { font-size: 23px; }
  .band-page .band-sidebar a { font-size: 12px; }
  .band-return { gap: 24px; padding: 22px 0; }
  .detail-footer { font-size: 12px; }
}
@media print {
  .band-return, .detail-footer { display: none; }
  .band-hero { display: block; padding: 12px; background: white; color: black; }
  .band-hero h1 { max-width: 320px; padding: 0; }
  .band-hero h1 .band-logo { max-height: 100px; }
  .band-hero-visual { max-width: 450px; }
  .band-hero-visual .photo figcaption strong, .band-hero-visual .photo figcaption > span, .band-hero-visual .source-link { color: black; }
}
