.directory-page { background: var(--ground); }
.directory-page .topbar, .home-main, .home-footer { width: calc(100% - 2 * var(--gutter)); max-width: 1264px; margin-inline: auto; }
.directory-page .topbar { padding: 0; display: flex; align-items: center; justify-content: space-between; min-height: 94px; gap: 24px; }
.directory-page .topbar .wordmark { font-size: 34px; }
.directory-page .topbar nav { display: flex; align-items: center; gap: 29px; font-size: 14px; }
.directory-page .topbar nav > a { display: inline-flex; align-items: center; min-height: 44px; }
.directory-page #theme { border: 1px solid var(--subtle); border-radius: 24px; min-height: 40px; padding: 6px 17px; background: var(--paper); font-size: 13px; }
.section-line { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 20px; }
.section-line h1, .section-line h2 { margin: 0; font-size: 23px; font-weight: 600; letter-spacing: -.035em; line-height: 1.4; }
.daily-heading-line { margin-top: 20px; }
.daily-tools { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--secondary); }
.daily-tools button { border: 0; padding: 8px 0; background: none; color: var(--accent); font-size: 12px; }
.daily-feature { --feature-color: #3288bb; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.35fr); background: var(--paper); border-radius: 18px; overflow: hidden; }
.daily-copy { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(27px, 3.3vw, 48px); background: color-mix(in srgb, var(--feature-color) 7%, var(--paper)); }
.daily-band { display: flex; align-items: center; justify-content: flex-start; min-height: 54px; margin-bottom: 32px; }
.daily-band img { display: block; width: 156px; max-height: 64px; height: auto; object-fit: contain; }
.daily-identity { margin-top: auto; }
.daily-identity h2 { margin: 0 0 6px; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.3; font-weight: 600; letter-spacing: -.055em; }
.daily-character { margin: 0; font-size: 21px; line-height: 1.5; }
.daily-role { margin: 5px 0 0; color: var(--secondary); font-size: 14px; }
.daily-gear { margin: 25px 0 22px; max-width: 30ch; font-size: 13px; line-height: 1.7; color: var(--secondary); }
.daily-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.gear-button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 11px 22px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: 14px; }
.gear-button:hover { background: #253bb5; color: white; }
.shuffle-button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 5px 0; border: 0; background: none; font-size: 13px; color: var(--secondary); }
.shuffle-button:hover { color: var(--accent); }
.shuffle-button svg { width: 21px; height: 21px; }
.daily-visual { min-width: 0; margin: 0; align-self: stretch; background: color-mix(in srgb, var(--feature-color) 7%, var(--paper)); }
.daily-photo-link { display: flex; min-height: 100%; align-items: center; }
.daily-photo-link img { display: block; width: 100%; height: auto; aspect-ratio: 1000/666; object-fit: contain; }
.daily-visual.photo-fallback img { padding: 65px; }
.photo-attribution { margin: 11px 2px 0; color: var(--secondary); font-size: 11px; line-height: 1.7; }
.photo-attribution p { margin: 0; }
.photo-attribution p:first-child { display: flex; flex-wrap: wrap; gap: 3px 12px; }
.photo-attribution a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.home-search { position: relative; margin: 32px 0 34px; z-index: 2; }
#home-search-form { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 11px 15px 11px 20px; border: 1px solid var(--subtle); border-radius: 12px; background: var(--paper); }
.search-input-wrap { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.search-input-wrap svg { width: 21px; height: 21px; flex-shrink: 0; fill: none; stroke: var(--secondary); stroke-width: 1.5; }
#home-query { width: 100%; min-width: 0; min-height: 41px; padding: 0; border: 0; background: transparent; outline-offset: 3px; font-size: 15px; }
#home-query::placeholder { color: var(--secondary); opacity: 1; }
.category-shortcuts { display: flex; flex-wrap: wrap; gap: 5px; }
.category-shortcuts button { min-height: 36px; padding: 5px 11px; border: 0; border-radius: 6px; background: var(--well); color: var(--secondary); font-size: 12px; white-space: nowrap; }
.category-shortcuts button:hover { background: var(--accent-soft); color: var(--accent); }
.home-results { position: absolute; top: calc(100% + 7px); left: 0; right: 0; max-height: 400px; overflow-y: auto; padding: 9px 18px; border: 1px solid var(--subtle); border-radius: 12px; background: var(--paper); box-shadow: 0 12px 30px rgba(23,34,59,.08); }
.search-result { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 16px; padding: 15px 6px; border-bottom: 1px solid var(--subtle); }
.search-result:last-child { border-bottom: 0; }
.search-result strong { font-size: 15px; font-weight: 600; }
.search-result small { grid-column: 1; color: var(--secondary); font-size: 12px; overflow-wrap: anywhere; }
.search-result .result-band { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--secondary); font-size: 12px; text-align: right; }
.search-empty { padding: 10px 6px; font-size: 14px; color: var(--secondary); }

.directory-page .band-directory-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.directory-page .band-card { aspect-ratio: auto; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 112px; padding: 22px 28px; border-radius: 8px; background: var(--paper); border-bottom: 3px solid var(--band-color); }
.directory-page .band-card img { max-height: 63px; display: block; width: 100%; height: 63px; object-fit: contain; }
.directory-page .band-card:hover { background: color-mix(in srgb, var(--band-color) 8%, var(--paper)); }
.directory-page .band-card:focus-visible { outline-color: var(--band-color); }



.home-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 34px; padding-block: 22px 32px; border-top: 1px solid var(--subtle); color: var(--secondary); font-size: 12px; }
.home-footer a { text-decoration: underline; text-underline-offset: 4px; }
.noscript-message { margin: 20px var(--gutter); }
.noscript-message a { text-decoration: underline; }
@media (max-width: 1050px) {
  .daily-copy { padding: 27px; }
  .daily-band { margin-bottom: 24px; }
  .daily-gear { margin: 20px 0 14px; }
  .daily-actions { gap: 7px 14px; }
  .gear-button { padding-inline: 18px; }
  .directory-page .band-card { padding-inline: 18px; min-height: 100px; }
  .category-shortcuts button { padding-inline: 9px; }
}
@media (max-width: 760px) {
  .directory-page .topbar { min-height: 80px; }
  .directory-page .topbar nav { gap: 18px; }
  .daily-heading-line { margin-top: 12px; }
  .daily-feature { display: flex; flex-direction: column; border-radius: 14px; }
  .daily-visual { order: -1; }
  .daily-copy { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; padding: 27px; }
  .daily-identity { grid-row: 1; grid-column: 1; }
  .daily-band { grid-row: 1; grid-column: 2; margin: 0; align-self: center; }
  .daily-band img { width: 103px; max-height: 54px; }
  .daily-identity h2 { font-size: 35px; }
  .daily-character { font-size: 18px; }
  .daily-role { font-size: 13px; }
  .daily-gear { grid-column: 1 / -1; margin: 0; }
  .daily-actions { grid-column: 1 / -1; }
  .home-search { margin-block: 26px 29px; }
  #home-search-form { flex-wrap: wrap; gap: 7px; padding: 10px 15px; }
  .search-input-wrap { flex-basis: 100%; }
  .category-shortcuts { padding: 5px 0; gap: 8px; }
  .category-shortcuts button { padding-inline: 13px; }
  .directory-page .band-directory-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
  .directory-page .band-card { padding: 19px; min-height: 102px; }
  .directory-page .band-card img { height: 54px; }
}
@media (max-width: 480px) {
  .directory-page .topbar .wordmark { font-size: 29px; }
  .directory-page .topbar nav { gap: 14px; font-size: 13px; }
  .directory-page .topbar nav > a:first-child { display: none; }
  .directory-page #theme { min-height: 36px; padding: 5px 13px; }
  .section-line { margin-bottom: 15px; }
  .section-line h1, .section-line h2 { font-size: 21px; }
  .daily-tools { gap: 10px; font-size: 12px; }
  .daily-tools button { font-size: 11px; }
  .daily-copy { padding: 23px; gap: 16px 10px; }
  .daily-band img { width: 85px; }
  .daily-identity h2 { font-size: 32px; }
  .daily-character { font-size: 17px; }
  .daily-role { margin-top: 3px; font-size: 12px; }
  .daily-gear { font-size: 12px; }
  .daily-actions { gap: 18px; }
  .photo-attribution { font-size: 10px; line-height: 1.8; }
  .home-search { margin-block: 24px 27px; }
  #home-query { font-size: 14px; }
  .category-shortcuts { gap: 7px; }
  .category-shortcuts button { padding-inline: 12px; }
  .directory-page .band-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .directory-page .band-card { min-height: 101px; padding-inline: 23px; }
  .directory-page .band-card img { height: 54px; }

}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Transparent logos sit directly on their surrounding card in either theme. */
.directory-page .band-card img { background: transparent; padding: 4px 10px; }
.directory-page .daily-band { padding: 9px 12px; background: transparent; }
.directory-page.dark img:is([src*="/roselia.webp"], [src*="/raise-a-suilen.webp"], [src*="/ave-mujica.webp"], [src*="/afterglow.webp"], [src*="/millsage.webp"]) { filter: drop-shadow(0 0 1px #cdd6ed); }
.directory-page .band-card:hover { border-bottom-width: 3px; }
.directory-page .band-directory { width: 100%; padding: 0; margin: 0; max-width: none; }
.directory-page .band-directory-grid { gap: 14px; }
.directory-page .topbar nav { flex-shrink: 0; }
.directory-page .daily-identity { min-width: 0; }
.directory-page .daily-identity h2, .directory-page .daily-character { overflow-wrap: anywhere; }
.directory-page .daily-gear { overflow-wrap: anywhere; }
.home-results a:focus-visible { outline-offset: -3px; }
@media (max-width: 480px) {
  .directory-page .topbar nav { gap: 10px; }
  .directory-page .band-directory-grid { gap: 12px; }
  .directory-page .daily-band { padding: 7px 9px; }
  .daily-tools { flex-shrink: 0; }
  .daily-heading-line { align-items: flex-start; }
  .daily-heading-line h1 { max-width: 60%; }
}
