/* HWND base styles - modernised from the original test.css */
* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 10px;
  padding: 0;
  background-color: #333333;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

a {
  color: #ff9000;
  text-decoration: none;
}

a:visited,
a:active {
  color: #ff9000;
}

a:hover,
a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
.top-nav {
  min-height: 30px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 6px;
  font-size: 12px;
}
#banner {
  height: 62px;
  background-color: #000000;
  border: 1px solid #ff9000;
}

/* HWND shared central frame — retired the 112px legacy side columns. */
.page-layout {
  display: block;
  margin-top: 7px;
}
#centercontent {
  min-height: 136px;
  background-color: #000000;
  border: 1px solid #ff9000;
  text-align: center;
  padding: 16px;
}

h1 {
  margin: 0 0 10px;
  padding-top: 10px;
  color: #ffffff;
  font-size: 18px;
  text-align: center;
}

p {
  margin: 0 0 10px;
  color: #ffffff;
}
.tagline {
  text-align: center;
}
.stats {
  margin-top: 24px;
  font-size: 10px;
  text-align: center;
}
.quick-links-title {
  margin-bottom: 2px;
  font-size: 10px;
}

/* Retained for older pages that still use tables while they are modernised. */
table {
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
}
.legacy-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

td {
  color: #ffffff;
  text-align: left;
}

a img {
  border: 1px solid #ff9000;
}

tr.whitetext { color: #ffffff; font-size: 10pt; }
tr.whitetext2 { color: #ffffff; font-size: 12pt; }
tr.whitetext3 { color: #ffffff; font-size: 8pt; }

/* First-stage mobile treatment: preserve the content, stack the columns. */
@media (max-width: 700px) {
  body {
    margin: 8px;
  }

  #banner {
    background-size: contain;
  }

  #centercontent {
    padding: 12px;
  }
}

/* Archive landing page */
.archive-years {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 20px 0;
}
.archive-years img {
  display: block;
  max-width: 100%;
  height: auto;
}
.archive-genres {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 15px;
  margin: 20px 0;
}
.archive-count {
  margin-top: 22px;
}
.archive-disclaimer {
  margin-top: 20px;
  font-size: 10px;
}
.archive-search {
  margin-top: 12px;
  color: #ffffff;
}
.archive-search label {
  display: block;
  margin-bottom: 3px;
}
.archive-search input {
  max-width: 100%;
  border: 1px solid #ff9000;
  background-color: #333333;
  color: #ff9000;
  font: inherit;
}
.archive-search button {
  margin-top: 4px;
  border: 1px solid #ff9000;
  background-color: #333333;
  color: #ff9000;
  font: inherit;
  cursor: pointer;
}

.archive-search button:hover,
.archive-search button:focus-visible {
  color: #ffffff;
}

/* Reusable image grid - used by Mixes and later Tracklists. */
.mix-djs {
  display: grid;
  grid-template-columns: repeat(5, 60px);
  justify-content: center;
  gap: 6px;
  margin: 20px 0;
}
.mix-djs img {
  display: block;
  width: 60px;
  height: auto;
}

/* Flyer archive image */
.flyer-archive-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto 10px;
}

/* History hub: keep the original desktop image size, but contain it on phones. */
@media (max-width: 700px) {
  .history-image img {
    max-width: 100%;
    height: auto;
  }
}

/* Rave Timeline: preserve the original dense archive layout while containing legacy media on narrow screens. */
.timeline-content {
  min-width: 0;
}
.timeline-content table {
  max-width: 100%;
}
.timeline-content img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 700px) {
  .timeline-content table[width="576"],
  .timeline-content table[width="700"] {
    width: 100%;
  }
}

/* Rave Timeline mobile fix: keep the legacy timeline inside one phone-width column. */
@media (max-width: 700px) {
  .page-layout,
  #centercontent,
  .timeline-content {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .timeline-content table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
  }

  .timeline-content td,
  .timeline-content p {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

/* Archive result pagination */
.archive-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin: 15px 0;
  font-size: 16px;
}
.archive-pagination span {
  color: #ffffff;
}

/* Tracklist database results */
.tracklist-search {
  margin: 12px 0 18px;
  text-align: center;
  color: #ffffff;
}
.tracklist-search label {
  display: block;
  margin-bottom: 3px;
}
.tracklist-search input {
  max-width: 100%;
  border: 1px solid #ff9000;
  background-color: #333333;
  color: #ff9000;
  font: inherit;
}
.tracklist-search button {
  border: 1px solid #ff9000;
  background-color: #333333;
  color: #ff9000;
  font: inherit;
  cursor: pointer;
}

.tracklist-search button:hover,
.tracklist-search button:focus-visible {
  color: #ffffff;
}
.archive-results-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.archive-results {
  width: 100%;
  max-width: 760px;
  border-collapse: collapse;
  margin: 12px auto;
}

.archive-results th,
.archive-results td {
  padding: 5px 8px;
  border-bottom: 1px solid #555555;
  color: #ffffff;
  text-align: left;
  vertical-align: top;
}
.archive-results th {
  color: #ff9000;
  font-weight: bold;
}

.archive-results td:last-child,
.archive-results th:last-child {
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .archive-results {
    min-width: 560px;
  }
}

/* Modern HWND homepage frame prototype */
.modern-home #centercontent {
  min-width: 0;
  padding: 12px;
}
.home-search {
  margin: 4px 0 12px;
  padding: 14px;
  border: 1px solid #ff9000;
  text-align: center;
}
.home-search h1 {
  padding-top: 0;
  margin-bottom: 8px;
  font-size: 24px;
}
.home-search form {
  display: flex;
  width: min(680px, 100%);
  margin: 0 auto;
}
.home-search input {
  min-width: 0;
  flex: 1;
  padding: 9px 10px;
  border: 1px solid #ff9000;
  background: #222222;
  color: #ffffff;
  font: inherit;
}
.home-search button {
  padding: 9px 16px;
  border: 1px solid #ff9000;
  background: #ff9000;
  color: #000000;
  font-weight: bold;
  cursor: pointer;
}
.home-search-note {
  margin: 7px 0 0;
  font-size: 11px;
}
.home-sections {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.home-section {
  min-width: 0;
  border: 1px solid #ff9000;
  background: #000000;
  text-align: left;
}
.home-section-art {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid #ff9000;
  background: #1c1c1c;
  color: #777777;
  font-size: 11px;
  letter-spacing: 1px;
}
.home-section-copy {
  padding: 10px;
}
.home-section h2 {
  margin: 0 0 6px;
  color: #ff9000;
  font-size: 19px;
}
.home-section p {
  min-height: 48px;
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.3;
}
.home-section-link {
  font-weight: bold;
}
.home-stats {
  margin: 14px 0 2px;
  padding-top: 10px;
  font-size: 11px;
  text-align: center;
}
.home-quick-links a {
  padding: 3px 0;
}
.home-latest {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #ff9000;
}
.home-latest-title {
  margin: 0 0 6px;
  color: #ff9000;
  font-weight: bold;
}
.home-latest p {
  margin-bottom: 7px;
  font-size: 11px;
}

@media (max-width: 1000px) {
  .home-sections {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .home-search h1 {
    font-size: 21px;
  }

  .home-search form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .home-sections {
    grid-template-columns: 1fr;
  }

  .home-section {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .home-section-art {
    aspect-ratio: auto;
    min-height: 90px;
    border-right: 1px solid #ff9000;
    border-bottom: 0;
  }

  .home-section p {
    min-height: 0;
  }

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

/* Homepage frame v2: single centred column; no right rail. */
.modern-home {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.modern-home #centercontent {
  width: 100%;
}
.home-quick-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 14px;
  padding: 9px 10px;
  border-top: 1px solid #ff9000;
  border-bottom: 1px solid #ff9000;
}
.home-quick-strip span {
  color: #ffffff;
}

@media (max-width: 700px) {
  .home-quick-strip {
    gap: 6px 12px;
  }
}

/* Modern Audio landing frame */
.audio-home {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.audio-home #centercontent {
  width: 100%;
  padding: 16px;
}
.audio-heading {
  margin-bottom: 14px;
}
.audio-heading h1 {
  margin-bottom: 4px;
  padding-top: 0;
  font-size: 28px;
}
.audio-heading p {
  margin: 0;
  text-align: center;
  font-size: 12px;
}
.audio-search-panel {
  max-width: 850px;
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid #ff9000;
}
.audio-search-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.audio-search-panel input {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #ff9000;
  background: #202020;
  color: #ffffff;
  font: inherit;
}
.audio-search-panel button {
  padding: 0 24px;
  border: 1px solid #ff9000;
  border-left: 0;
  background: #ff9000;
  color: #000000;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}
.audio-years {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.audio-year {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid #ff9000;
  background: #1c1c1c;
  text-align: left;
}
.audio-year-art {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 130px;
  color: #777777;
  font-size: 11px;
  letter-spacing: 1px;
}
.audio-year-label {
  padding: 10px 12px;
  border-top: 1px solid #ff9000;
  background: #000000;
}
.audio-year-label strong {
  display: block;
  color: #ff9000;
  font-size: 23px;
}
.audio-year-label span {
  display: block;
  margin-top: 2px;
  color: #ffffff;
  font-size: 10px;
}

.audio-year.is-live:hover,
.audio-year.is-live:focus-within {
  border-color: #ffffff;
}
.audio-year.is-live a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.audio-year.is-pending {
  opacity: 0.55;
}
.audio-bottom {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid #ff9000;
  text-align: center;
  font-size: 11px;
}

@media (max-width: 900px) {
  .audio-years {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .audio-home #centercontent {
    padding: 12px;
  }

  .audio-heading h1 {
    font-size: 23px;
  }

  .audio-search-panel {
    padding: 10px;
  }

  .audio-search-panel button {
    padding: 0 14px;
  }

  .audio-years {
    grid-template-columns: 1fr 1fr;
  }

  .audio-year {
    min-height: 135px;
  }

  .audio-year-art {
    min-height: 82px;
  }

  .audio-year-label strong {
    font-size: 20px;
  }
}

/* Audio layout experiments v2 */
.audio-search-panel.audio-search-open {
  border: 0;
  padding: 4px 0 10px;
}
.audio-quick-strip {
  margin-top: 18px;
}
.audio-years.seven-years {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.seven-years .audio-year {
  min-height: 180px;
}
.seven-years .audio-year-art {
  min-height: 120px;
}
.seven-years .audio-year-label {
  text-align: center;
  padding: 9px 5px;
}
.seven-years .audio-year-label strong {
  font-size: 21px;
}
.audio-year-nav {
  cursor: pointer;
  appearance: none;
  width: 100%;
  padding: 0;
  color: #ff9000;
  font: inherit;
}
.audio-year-nav .audio-year-art {
  font-size: 58px;
  color: #ff9000;
}
.audio-year-nav .audio-year-label {
  text-align: center;
}

.audio-year-nav:hover,
.audio-year-nav:focus-visible {
  border-color: #ffffff;
  color: #ffffff;
}

.audio-year-nav:hover .audio-year-art,
.audio-year-nav:focus-visible .audio-year-art {
  color: #ffffff;
}
.audio-year-window-note {
  margin: 9px 0 0;
  text-align: center;
  font-size: 10px;
  color: #aaaaaa;
}

@media (max-width: 1100px) {
  .audio-years.seven-years {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .audio-years.seven-years {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audio-years.five-window {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .five-window .audio-year {
    min-height: 105px;
  }

  .five-window .audio-year-art {
    min-height: 62px;
  }

  .five-window .audio-year-label {
    padding: 7px 2px;
    text-align: center;
  }

  .five-window .audio-year-label strong {
    font-size: 15px;
  }

  .five-window .audio-year-label span {
    display: none;
  }

  .five-window .audio-year-nav .audio-year-art {
    font-size: 34px;
  }
}

/* Modern Audio Archive results test */
.archive-modern-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.archive-modern-layout #centercontent {
  min-width: 0;
  width: 100%;
  padding: 12px;
}
.archive-modern-heading h1 {
  margin-bottom: 2px;
  font-size: 24px;
}
.archive-modern-heading p {
  margin-bottom: 10px;
  color: #ff9000;
  font-size: 16px;
  font-weight: bold;
}
.archive-main-search.archive-search-open {
  margin: 10px auto 14px;
  padding: 0;
  border: 0;
  text-align: center;
}
.archive-main-search label {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 11px;
}
.archive-main-search-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  max-width: 850px;
  margin: 0 auto;
}
.archive-main-search-row input[type="search"] {
  min-width: 0;
  flex: 1 1 auto;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #ff9000;
  background: #222222;
  color: #ffffff;
  font: inherit;
}
.archive-main-search-row button {
  min-width: 110px;
  border: 1px solid #ff9000;
  background: #ff9000;
  color: #000000;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}
.archive-main-search-row > a {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #ff9000;
  border-left: 0;
}

.archive-search-summary,
.archive-message {
  margin: 10px 0;
  text-align: center;
}
.archive-modern-layout .archive-results {
  max-width: none;
}
.archive-play {
  border: 1px solid #ff9000;
  background: #222222;
  color: #ff9000;
  font: inherit;
  cursor: pointer;
}

.archive-play:hover,
.archive-play:focus-visible {
  color: #ffffff;
  border-color: #ffffff;
}
.archive-player {
  max-width: 760px;
  margin: 14px auto 4px;
  text-align: center;
}
.archive-player p {
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 16px;
}
.archive-play.is-playing {
  color: #66bfff;
  border-color: #66bfff;
}
.archive-player p.is-playing {
  color: #66bfff;
}
.archive-player audio {
  width: 100%;
  max-width: 620px;
}
.archive-quick-strip {
  margin-top: 18px;
}

@media (max-width: 700px) {
  .archive-modern-layout #centercontent {
    padding: 10px;
  }

  .archive-modern-heading h1 {
    font-size: 21px;
  }

  .archive-main-search-row {
    flex-wrap: wrap;
  }

  .archive-main-search-row input[type="search"] {
    flex-basis: calc(100% - 92px);
  }

  .archive-main-search-row button {
    min-width: 92px;
  }

  .archive-main-search-row > a {
    width: 100%;
    justify-content: center;
    min-height: 30px;
    border-left: 1px solid #ff9000;
    border-top: 0;
  }
}

/* Modern Tracklists results - aligned with the approved Archive V4 shell. */
.tracklist-modern-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.tracklist-modern-layout #centercontent {
  min-width: 0;
  width: 100%;
  padding: 12px;
}
.tracklist-modern-heading h1 {
  margin-bottom: 8px;
  font-size: 24px;
}
.tracklist-results-search {
  margin: 8px auto 12px;
  text-align: center;
}
.tracklist-results-search label {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 11px;
}
.tracklist-results-search-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  max-width: 850px;
  margin: 0 auto;
}
.tracklist-results-search-row input[type="search"] {
  min-width: 0;
  flex: 1 1 auto;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #ff9000;
  background: #222222;
  color: #ffffff;
  font: inherit;
}
.tracklist-results-search-row button {
  min-width: 110px;
  border: 1px solid #ff9000;
  background: #ff9000;
  color: #000000;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}
.tracklist-results-search-row > a {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #ff9000;
  border-left: 0;
}

.tracklist-search-summary,
.tracklist-message {
  margin: 10px 0;
  text-align: center;
}
.tracklist-modern-layout .archive-results {
  max-width: none;
}

.tracklist-results th:first-child,
.tracklist-results td:first-child {
  width: 72px;
  text-align: center;
  white-space: nowrap;
}

.tracklist-results th:last-child,
.tracklist-results td:last-child {
  width: 90px;
  text-align: left;
}
.tracklist-view-link {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid #ff9000;
}

.tracklist-view-link:hover,
.tracklist-view-link:focus-visible {
  border-color: #ffffff;
  text-decoration: none;
}
.tracklist-quick-strip {
  margin-top: 18px;
}

@media (max-width: 700px) {
  .tracklist-modern-layout #centercontent {
    padding: 10px;
  }

  .tracklist-modern-heading h1 {
    font-size: 21px;
  }

  .tracklist-results-search-row {
    flex-wrap: wrap;
  }

  .tracklist-results-search-row input[type="search"] {
    flex-basis: calc(100% - 92px);
  }

  .tracklist-results-search-row button {
    min-width: 92px;
  }

  .tracklist-results-search-row > a {
    width: 100%;
    justify-content: center;
    min-height: 30px;
    border-left: 1px solid #ff9000;
    border-top: 0;
  }

  .tracklist-results {
    min-width: 520px;
  }
}

/* Tracklists results v2: keep the HWND shell wide, but make this compact dataset fit its content. */
.tracklist-modern-layout .archive-results-wrap,
.tracklist-modern-layout .archive-pagination {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.tracklist-results {
  width: 100%;
  table-layout: fixed;
}

.tracklist-results th:nth-child(1),
.tracklist-results td:nth-child(1) {
  width: 76px;
}

.tracklist-results th:nth-child(2),
.tracklist-results td:nth-child(2) {
  width: 25%;
}

.tracklist-results th:nth-child(3),
.tracklist-results td:nth-child(3) {
  width: auto;
}

.tracklist-results th:nth-child(4),
.tracklist-results td:nth-child(4) {
  width: 82px;
}

@media (max-width: 700px) {
  .tracklist-modern-layout .archive-results-wrap,
  .tracklist-modern-layout .archive-pagination {
    max-width: none;
  }

  .tracklist-results {
    table-layout: auto;
  }
}

/* Tracklist viewer v1 - presentation only; listing/file handling remains unchanged. */
.tracklist-view-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.tracklist-view-layout #centercontent {
  min-width: 0;
  width: 100%;
  padding: 12px;
}
.tracklist-view-heading h1 {
  margin-bottom: 8px;
  font-size: 24px;
}
.tracklist-view-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin: 0 auto 16px;
  text-align: center;
  font-size: 20px;
}
.tracklist-view-meta strong {
  color: #ff9000;
}
.tracklist-view-meta span::before {
  content: "·";
  margin-right: 14px;
  color: #ffffff;
}
.tracklist-view-content {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid #555555;
  background: #050505;
  color: #ffffff;
  white-space: normal;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.6;
  text-align: left;
}
.tracklist-track {
  margin: 0;
  padding: 0;
  line-height: 1.35;
}

.tracklist-view-message,
.tracklist-view-original,
.tracklist-view-back {
  text-align: center;
}
.tracklist-view-original {
  max-width: 760px;
  margin: 0 auto;
}
.tracklist-view-back {
  margin: 16px 0 4px;
}
.tracklist-view-quick-strip {
  margin-top: 18px;
}

@media (max-width: 700px) {
  .tracklist-view-layout #centercontent {
    padding: 10px;
  }

  .tracklist-view-heading h1 {
    font-size: 21px;
  }

  .tracklist-view-meta {
    display: block;
    line-height: 1.5;
  }

  .tracklist-view-meta strong,
  .tracklist-view-meta span {
    display: block;
  }

  .tracklist-view-meta span::before {
    content: none;
  }

  .tracklist-view-content {
    padding: 10px;
    line-height: 1.5;
  }
}

/* Modern Tracklists landing - uses the approved Modern HWND shell above. */
.tracklist-home {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.tracklist-home #centercontent {
  min-width: 0;
  width: 100%;
  padding: 12px;
}
.tracklist-heading h1 {
  margin-bottom: 10px;
  font-size: 24px;
}
.tracklist-main-search {
  max-width: 850px;
  margin: 0 auto 14px;
  text-align: center;
}
.tracklist-main-search label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
}
.tracklist-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.tracklist-search-row input {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #ff9000;
  background: #202020;
  color: #ffffff;
  font: inherit;
}
.tracklist-search-row button {
  padding: 0 22px;
  border: 1px solid #ff9000;
  border-left: 0;
  background: #ff9000;
  color: #000000;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}
.tracklist-browse {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #ff9000;
}
.tracklist-browse h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 14px;
  text-align: center;
}
.tracklist-djs {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
}
.tracklist-djs a {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ff9000;
  background: #000000;
  text-align: center;
}

.tracklist-djs a:hover,
.tracklist-djs a:focus-visible {
  text-decoration: none;
}
.tracklist-djs img {
  display: block;
  width: 100%;
  aspect-ratio: 1.08 / 1;
  object-fit: cover;
  border: 0;
  border-bottom: 1px solid #ff9000;
}
.tracklist-djs span {
  display: flex;
  min-height: 25px;
  padding: 2px;
  align-items: center;
  justify-content: center;
  color: #ff9000;
  font-size: 10px;
  font-weight: bold;
  line-height: 1.05;
}
.tracklist-compact {
  text-align: center;
}
.tracklist-text-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 15px;
  font-size: 11px;
}
.tracklist-home .home-quick-strip {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .tracklist-djs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .tracklist-home #centercontent {
    padding: 10px;
  }

  .tracklist-heading h1 {
    font-size: 21px;
  }

  .tracklist-search-row button {
    padding: 0 14px;
  }

  .tracklist-djs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .tracklist-djs span {
    min-height: 24px;
    font-size: 9px;
  }
}

@media (max-width: 390px) {
  .tracklist-djs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tracklists v3 calming pass */
.tracklist-dj-browse {
  border-top: 0;
  padding-top: 0;
}

/* One clean frame around each DJ tile; no line between photo and name. */
.tracklist-djs img {
  border-bottom: 0;
}

/* Modern History landing page */
.history-home {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.history-home #centercontent { width: 100%; padding: 16px; }
.history-heading { margin-bottom: 14px; text-align: center; }
.history-heading h1 { margin-bottom: 4px; padding-top: 0; font-size: 28px; }
.history-heading p { margin-bottom: 0; font-size: 13px; }
.history-hero { margin: 0 auto 16px; text-align: center; }
.history-hero img {
  display: block; max-width: 100%; height: auto; margin: 0 auto;
  border: 1px solid #ff9000;
}
.history-sections {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.history-sections > a {
  min-width: 0; padding: 14px 12px; border: 1px solid #ff9000;
  background: #111111; text-align: left;
}
.history-sections > a:hover,
.history-sections > a:focus-visible { background: #1c1c1c; text-decoration: none; }
.history-sections strong, .history-sections span { display: block; }
.history-sections strong {
  margin-bottom: 5px; color: #ff9000; font-size: 16px;
}
.history-sections span {
  color: #ffffff; font-size: 12px; line-height: 1.35;
}
@media (max-width: 900px) {
  .history-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .history-home #centercontent { padding: 12px; }
  .history-heading h1 { font-size: 24px; }
  .history-sections { grid-template-columns: 1fr; }
}

/* Modern FAQ page */
.faq-home {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.faq-home #centercontent { width: 100%; padding: 16px; }
.faq-heading { margin-bottom: 14px; text-align: center; }
.faq-heading h1 { margin-bottom: 0; padding-top: 0; font-size: 28px; }
.faq-list { max-width: 940px; margin: 0 auto; }
.faq-list p {
  margin: 0; padding: 12px 0; border-bottom: 1px solid #333333;
  text-align: left !important; line-height: 1.5;
}
.faq-list p:first-child { border-top: 1px solid #333333; }
.faq-list i b { color: #ff9000; font-style: normal; }
.faq-home .home-quick-strip { margin-top: 16px; }

@media (max-width: 700px) {
  .faq-home #centercontent { padding: 12px; }
  .faq-heading h1 { font-size: 24px; }
  .faq-list p { padding: 11px 0; }
}

/* Modern Documentaries page */
.documentaries-home { grid-template-columns: minmax(0, 1fr); max-width: 1180px; margin-left: auto; margin-right: auto; }
.documentaries-home #centercontent { width: 100%; padding: 16px; }
.documentaries-heading { margin-bottom: 14px; text-align: center; }
.documentaries-heading h1 { margin-bottom: 0; padding-top: 0; font-size: 28px; }
.documentaries-home .legacy-table-wrap { max-width: 760px; margin: 0 auto; }
.documentaries-home table { width: 100%; }
.documentaries-home td { padding: 7px 10px; vertical-align: middle; }
.documentaries-home td:first-child { width: 68px; text-align: center; }
.documentaries-home td img { display: block; margin: 0 auto; }
.documentaries-home #centercontent > p { margin: 14px 0 0; text-align: center; }
.documentaries-home .home-quick-strip { margin-top: 16px; }
@media (max-width: 700px) {
  .documentaries-home #centercontent { padding: 12px; }
  .documentaries-heading h1 { font-size: 24px; }
  .documentaries-home td { padding: 7px 6px; }
}

/* Modern historical video-list pages */
.video-archive-home {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.video-archive-home #centercontent { width: 100%; padding: 16px; }
.video-archive-heading { margin-bottom: 14px; text-align: center; }
.video-archive-heading h1 { margin-bottom: 5px; padding-top: 0; font-size: 28px; }
.video-archive-heading p { margin: 0; }
.video-archive-list { max-width: 760px; margin: 0 auto; border-top: 1px solid #333333; }
.video-archive-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 6px;
  border-bottom: 1px solid #333333;
}
.video-archive-play { text-align: center; }
.video-archive-play img { display: block; margin: 0 auto; }
.video-archive-title { text-align: left; }
.video-archive-credit { margin: 18px auto 0; text-align: center; }
.video-archive-credit strong { display: block; margin-bottom: 5px; font-size: 11px; }
.video-archive-back { margin: 14px 0 0; text-align: center; }
.video-archive-home .home-quick-strip { margin-top: 16px; }

@media (max-width: 700px) {
  .video-archive-home #centercontent { padding: 12px; }
  .video-archive-heading h1 { font-size: 24px; }
  .video-archive-row { grid-template-columns: 58px minmax(0, 1fr); gap: 8px; }
}

/* Modern video landing page */
.video-home {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.video-home #centercontent { width: 100%; padding: 16px; }
.video-home-heading { text-align: center; margin-bottom: 14px; }
.video-home-heading h1 { margin: 0; padding: 0; font-size: 28px; }
.video-home-list { max-width: 760px; margin: 0 auto; border-top: 1px solid #333333; }
.video-home-card {
  display: block;
  padding: 16px 12px;
  border-bottom: 1px solid #333333;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
}
.video-home .home-quick-strip { margin-top: 18px; }
@media (max-width: 700px) {
  .video-home #centercontent { padding: 12px; }
  .video-home-heading h1 { font-size: 24px; }
  .video-home-card { padding: 14px 8px; font-size: 17px; }
}

/* Modern disclaimer pages */
.disclaimer-page {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.disclaimer-page #centercontent { width: 100%; padding: 16px; }
.disclaimer-heading { text-align: center; margin-bottom: 14px; }
.disclaimer-heading h1 { margin: 0; padding: 0; font-size: 28px; }
.disclaimer-copy {
  max-width: 820px;
  margin: 0 auto;
  padding: 4px 0;
  line-height: 1.55;
}
.disclaimer-copy p { margin: 0; padding: 12px 4px; border-bottom: 1px solid #333333; }
.disclaimer-copy p:first-child { border-top: 1px solid #333333; }
.disclaimer-page .home-quick-strip { margin-top: 18px; }
@media (max-width: 700px) {
  .disclaimer-page #centercontent { padding: 12px; }
  .disclaimer-heading h1 { font-size: 24px; }
}

/* Modern Acid House section */
.acid-page {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.acid-page #centercontent { width: 100%; padding: 16px; }
.acid-page-heading { text-align: center; margin-bottom: 14px; }
.acid-page-heading h1 { margin: 0; padding: 0; font-size: 28px; }
.acid-legacy-content { max-width: 900px; margin: 0 auto; line-height: 1.5; overflow-wrap: anywhere; }
.acid-legacy-content table { width: 100%; max-width: 100%; }
.acid-legacy-content img { max-width: 100%; height: auto; }
.acid-page .home-quick-strip { margin-top: 18px; }
@media (max-width: 700px) {
  .acid-page #centercontent { padding: 12px; }
  .acid-page-heading h1 { font-size: 24px; }
  .acid-legacy-content table, .acid-legacy-content tbody, .acid-legacy-content tr, .acid-legacy-content td {
    display: block;
    width: 100%;
  }
}

/* Divider lines for repeated Acid House content rows */
.acid-video-content tr + tr > td,
.acid-mixes-content tr + tr > td,
.acid-flyer-content tr + tr > td {
  border-top: 1px solid #333333;
}

/* Modern History inner pages */
.history-inner-page { grid-template-columns:minmax(0,1fr); max-width:1180px; margin-left:auto; margin-right:auto; }
.history-inner-page #centercontent { width:100%; padding:16px; }
.history-inner-heading { text-align:center; margin-bottom:14px; }
.history-inner-heading h1 { margin:0; padding:0; font-size:28px; }
.history-inner-content { max-width:900px; margin:0 auto; line-height:1.5; overflow-wrap:anywhere; }
.history-inner-content table { width:100%; max-width:100%; }
.history-inner-content img { max-width:100%; height:auto; }
.history-inner-content tr + tr > td { border-top:1px solid #333333; }
.history-inner-page .home-quick-strip { margin-top:18px; }
@media (max-width:700px) {
  .history-inner-page #centercontent { padding:12px; }
  .history-inner-heading h1 { font-size:24px; }
  .history-inner-content table,.history-inner-content tbody,.history-inner-content tr,.history-inner-content td { display:block; width:100%; }
}

/* Rave Quotes: clean divider between quote blocks */
.quotes-content p {
  margin: 0;
  padding: 14px 4px;
  border-bottom: 1px solid #333333;
}
.quotes-content p:empty {
  display: none;
}

/* Modern legacy inner-content pages */
.legacy-inner-page { grid-template-columns:minmax(0,1fr); max-width:1180px; margin-left:auto; margin-right:auto; }
.legacy-inner-page #centercontent { width:100%; padding:16px; }
.legacy-inner-heading { text-align:center; margin-bottom:14px; }
.legacy-inner-heading h1 { margin:0; padding:0; font-size:28px; }
.legacy-inner-content { max-width:900px; margin:0 auto; line-height:1.5; overflow-wrap:anywhere; }
.legacy-inner-content table { width:100%; max-width:100%; }
.legacy-inner-content img { max-width:100%; height:auto; }
.legacy-inner-content tr + tr > td { border-top:1px solid #333333; }
.legacy-inner-page .home-quick-strip { margin-top:18px; }

@media (max-width:700px) {
 .legacy-inner-page #centercontent { padding:12px; }
 .legacy-inner-heading h1 { font-size:24px; }
 .legacy-inner-content table,.legacy-inner-content tbody,.legacy-inner-content tr,.legacy-inner-content td { display:block; width:100%; }
 .legacy-inner-content td { padding:8px 2px; }
}

/* Canonical heading consistency — 29 Sep 2026 audit */
.history-heading h1,
.video-archive-heading h1,
.video-home-heading h1,
.disclaimer-heading h1,
.acid-page-heading h1,
.history-inner-heading h1,
.legacy-inner-heading h1,
.tracklist-page h1,
.tracklist-heading h1 {
  font-size: 28px;
}

@media (max-width: 700px) {
  .history-heading h1,
  .video-archive-heading h1,
  .video-home-heading h1,
  .disclaimer-heading h1,
  .acid-page-heading h1,
  .history-inner-heading h1,
  .legacy-inner-heading h1,
  .tracklist-page h1,
  .tracklist-heading h1 {
    font-size: 24px;
  }
}

/* Canonical cleanup batch #2: legacy inline presentation moved into CSS */
.faq-home #centercontent table {
  max-width: 100%;
}
.faq-home #centercontent td {
  vertical-align: top;
}
.faq-home #centercontent img {
  max-width: 100%;
  height: auto;
}
.acid-video-content table {
  width: 100%;
  max-width: 100%;
}
.acid-video-content td {
  vertical-align: top;
}
.acid-video-content img {
  max-width: 100%;
  height: auto;
}

/* Acid Video rollback: preserve the original list layout on mobile.
   Overrides the experimental grid treatment from the previous test. */
@media (max-width: 700px) {
  .acid-video-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .acid-video-list,
  .acid-video-list tbody,
  .acid-video-list tr,
  .acid-video-list td {
    display: revert;
    width: revert;
    max-width: none;
  }
  .acid-video-list tr {
    padding: 0;
    border-bottom: 0;
  }
  .acid-video-list td {
    padding: revert;
    border: revert;
  }
  .acid-video-list td:empty {
    display: table-cell;
  }
  .acid-video-list img {
    max-width: 100%;
    height: auto;
  }
}

/* Acid Video final row treatment:
   one divider per complete record; no borders on individual cells. */
.acid-video-content tr > td {
  border-top: 0;
  border-bottom: 0;
}
.acid-video-content tr + tr > td {
  border-top: 1px solid #333333;
}
.acid-video-content td {
  vertical-align: middle;
}

@media (max-width: 700px) {
  .acid-video-content tr {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #333333;
  }
  .acid-video-content tr + tr > td,
  .acid-video-content tr > td {
    border: 0;
  }
  .acid-video-content td {
    display: block;
    width: 100%;
    padding: 4px 2px;
  }
  .acid-video-content tr:empty {
    display: none;
  }
}

/* Shared DJ-head browser — canonical component for Mixes + Tracklists. */
.dj-browse,
.tracklist-dj-browse {
  margin-top: 11px;
  padding-top: 0;
  border-top: 0;
}

.dj-browse h2,
.tracklist-dj-browse h2,
.mix-browse h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 14px;
  text-align: center;
}
.dj-heads {
  display: grid;
  grid-template-columns: repeat(5, 60px);
  justify-content: center;
  gap: 6px;
  margin: 12px 0 18px;
}

.dj-heads a,
.dj-heads img {
  display: block;
  width: 60px;
}
.dj-heads a {
  border: 1px solid #ff9000;
}
.dj-heads img {
  height: auto;
  border: 0;
}

.dj-heads a:hover,
.dj-heads a:focus-visible {
  border-color: #ffffff;
}

/* Modern Mixes landing — sibling of Tracklists. */
.mix-home {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.mix-home #centercontent { min-width: 0; width: 100%; padding: 12px; }
.mix-heading h1 { margin-bottom: 10px; font-size: 28px; }
.mix-main-search { max-width: 850px; margin: 0 auto 14px; text-align: center; }
.mix-main-search label { display: block; margin-bottom: 5px; font-size: 11px; }
.mix-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.mix-search-row input { min-width: 0; padding: 10px 12px; border: 1px solid #ff9000; background: #202020; color: #ffffff; font: inherit; }
.mix-search-row button { padding: 0 22px; border: 1px solid #ff9000; border-left: 0; background: #ff9000; color: #000000; font: inherit; font-weight: bold; cursor: pointer; }
.mix-browse { margin-top: 11px; padding-top: 10px; border-top: 1px solid #ff9000; }
.mix-compact { text-align: center; }
.mix-text-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 15px; font-size: 11px; }
.mix-count { margin: 16px 0 4px; text-align: center; }
.mix-disclaimer { text-align: center; font-size: 10px; }
.mix-home .home-quick-strip { margin-top: 12px; }

@media (max-width: 700px) {
  .mix-home #centercontent { padding: 10px; }
  .mix-heading h1 { font-size: 24px; }
  .mix-search-row button { padding: 0 14px; }
  /* Keep the original compact 5-across DJ wall on phones. */
  .dj-heads { grid-template-columns: repeat(5, 52px); gap: 5px; }
  .dj-heads a, .dj-heads img { width: 52px; }
}

@media (max-width: 340px) {
  .dj-heads { grid-template-columns: repeat(5, 48px); gap: 4px; }
  .dj-heads a, .dj-heads img { width: 48px; }
}

/* DJ-head border cleanup v2: image owns the frame, not the link tile. */
.dj-heads a {
  border: 0;
}
.dj-heads img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid #ff9000;
}

.dj-heads a:hover img,
.dj-heads a:focus-visible img {
  border-color: #ffffff;
}

/* Do not draw a full-width divider immediately below the DJ wall. */
.tracklist-dj-browse + .tracklist-browse,
.dj-browse + .mix-browse {
  border-top: 0;
}

@media (max-width: 700px) {
  .dj-heads img {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 340px) {
  .dj-heads img {
    width: 48px;
    height: 48px;
  }
}

/* ===== Shared HWND page chrome =====
   One rulebook for the current modern pages. Keep page HTML structural. */

/* Desktop outer geometry: nav, banner and modern page panels share the same edges. */
.top-nav,
.banner-home-link,
.audio-home,
.mix-home,
.tracklist-home,
.archive-modern-layout,
.tracklist-modern-layout,
.history-home {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.top-nav {
  flex-wrap: nowrap;
  white-space: nowrap;
}
.banner-home-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.banner-home-link:hover,
.banner-home-link:focus-visible {
  text-decoration: none;
}

/* Shared section title treatment. */
.section-heading {
  margin-bottom: 14px;
  text-align: center;
}

.section-heading h1,
.history-heading h1 {
  margin-bottom: 4px;
  padding-top: 0;
  color: #ffffff;
  font-size: 20px;
}

.section-heading p,
.history-heading p {
  margin: 0;
  color: #ffffff;
  font-size: 12px;
  font-weight: normal;
  text-align: center;
}

/* Shared search treatment: Audio is the visual master. No outer gold box. */
.site-search {
  max-width: 850px;
  margin: 0 auto 16px;
  padding: 0;
  border: 0;
  text-align: center;
}
.site-search label {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 11px;
}
.site-search-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  max-width: 850px;
  margin: 0 auto;
}

.site-search-row input[type="search"],
.site-search-row input[type="text"] {
  min-width: 0;
  flex: 1 1 auto;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #ff9000;
  background: #222222;
  color: #ffffff;
  font: inherit;
}
.site-search-row input::placeholder {
  color: #8f8f8f;
  opacity: 1;
}
.site-search-row button {
  min-width: 110px;
  padding: 0 24px;
  border: 1px solid #ff9000;
  border-left: 0;
  background: #ff9000;
  color: #000000;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}
.site-search-row > a {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #ff9000;
  border-left: 0;
}

/* Landing pages use the same centre-panel breathing room as Audio. */
.audio-home #centercontent,
.mix-home #centercontent,
.tracklist-home #centercontent {
  padding: 16px;
}
.archive-year-context {
  margin-top: 4px !important;
  color: #ff9000 !important;
  font-weight: bold !important;
}
.tracklist-browse.no-top-rule {
  border-top: 0;
  padding-top: 0;
}

@media (max-width: 700px) {
  .top-nav {
    justify-content: center;
    gap: 0 4px;
    font-size: clamp(9px, 2.65vw, 12px);
    overflow: hidden;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .top-nav .nav-home,
  .top-nav .nav-home-sep {
    display: none;
  }

  .audio-home #centercontent,
  .mix-home #centercontent,
  .tracklist-home #centercontent {
    padding: 12px;
  }

  .site-search-row button {
    min-width: 0;
    padding: 0 14px;
  }
}

/* ===== Fixed HWND site shell =====
   The frame never moves between pages; only the content inside #centercontent varies. */
.site-shell {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.site-shell #centercontent {
  min-width: 0;
  width: 100%;
  padding: 16px;
}

@media (max-width: 700px) {
  .site-shell #centercontent {
    padding: 12px;
  }
}

/* Approved modern subheading typography. */
.section-heading h2,
.history-heading h2,
.subheading { font-size: 16px; }

/* ===== Change 11F: site-wide approved TEST design ===== */
/* Root-relative image path works from /hwndt/ without duplicating /image/. */
#banner {
  position: relative;
  overflow: hidden;
}
#banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/image/HWNDdespair4.jpg") no-repeat center;
  background-size: auto;
  transform: scale(.9);
  transform-origin: center;
  pointer-events: none;
}
@media (max-width: 700px) {
  #banner::before { background-size: contain; }
}

/* Shared modern search forms: same 600px cap and 36px control height. */
.site-search,
.site-search-row,
.archive-main-search-row,
.tracklist-results-search-row,
.tracklist-search-row,
.mix-search-row,
.audio-search-panel form,
.home-search form {
  max-width: 600px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.site-search-row input[type="search"],
.site-search-row input[type="text"],
.site-search-row button,
.archive-main-search-row input[type="search"],
.archive-main-search-row button,
.tracklist-results-search-row input[type="search"],
.tracklist-results-search-row button,
.tracklist-search-row input,
.tracklist-search-row button,
.mix-search-row input,
.mix-search-row button,
.audio-search-panel input,
.audio-search-panel button,
.home-search input,
.home-search button {
  height: 36px;
  min-height: 36px;
}
/* ===== Change 12: approved 12px regular navigation/link consistency ===== */
/* Quick Links strips, including their label, on all modern pages. */
.home-quick-strip,
.archive-quick-strip,
.audio-quick-strip,
.tracklist-quick-strip,
.tracklist-view-quick-strip {
  font-size: 12px;
  font-weight: 400;
}
.home-quick-strip span,
.archive-quick-strip span,
.audio-quick-strip span,
.tracklist-quick-strip span,
.tracklist-view-quick-strip span {
  font-size: 12px;
  font-weight: 400;
}
/* Legacy side-panel Quick Links. */
#rightcontent,
#rightcontent a,
.quick-links-title,
.home-quick-links,
.home-quick-links a {
  font-size: 12px;
  font-weight: 400;
}
/* Event and year browse links; headings stay 14px bold. */
.tracklist-text-links,
.tracklist-text-links a,
.mix-text-links,
.mix-text-links a {
  font-size: 12px;
  font-weight: 400;
}

/* ===== Change 14: archive count and pagination typography ===== */
.archive-count,
.archive-pagination,
.archive-pagination a,
.archive-pagination span {
  font-size: 14px;
  font-weight: 400;
}

/* ===== Candidate 18: Audio artwork rules from page-specific CSS =====
   Shared chrome and page geometry remain governed by the approved base CSS. */

.audio-years.five-window{margin-left:auto;margin-right:auto}
.audio-years .audio-year{min-width:0;overflow:hidden}
.audio-year-art{position:relative;overflow:hidden}
.audio-year:not(.audio-year-nav) .audio-year-art{background:linear-gradient(140deg,#282828 0%,#444 42%,#202020 100%);color:#777}
.audio-year-label{position:relative;z-index:1}

.audio-years.five-window .audio-year-art{background-image:linear-gradient(rgba(0,0,0,.16),rgba(0,0,0,.16)),url("assets/hwnd-audio-year-art.png")!important;background-size:100% 100%,800% 100%!important;background-repeat:no-repeat!important;}

.audio-years.five-window .audio-year-art::before,.audio-years.five-window .audio-year-art::after{display:none!important}
.audio-years.five-window .audio-year-nav .audio-year-art{background-image:linear-gradient(145deg,#2a2116,#121212)!important;color:white;text-shadow:0 2px 8px black}
.audio-years.five-window .audio-year-label{background:#222}
@media (max-width:700px){.audio-years.five-window{gap:6px}}

@media  (max-width:700px) {
  .audio-years.five-window {max-width:90%!important;}
  .audio-years.five-window .audio-year {min-height:95px!important;}
  .audio-years.five-window .audio-year-art {min-height:56px!important;}
}

/* Holmes / Watson: fixed Flyer GRID card dimensions, no screenshot scaling. */
@media  (min-width:701px) {
  .audio-years.five-window {
    width: 890px !important; max-width: 100% !important;
    grid-template-columns: repeat(5, 162px) !important;
    gap: 20px !important;
    justify-content: center;
  }
  .audio-years.five-window .audio-year {
    box-sizing: border-box !important;
    width: 162px !important; height: 180px !important;
    min-height: 0 !important; max-height: 180px !important;
    display: flex; flex-direction: column;
  }
  .audio-years.five-window .audio-year > a {
    display: flex; flex-direction: column; height: 100%; min-height: 0;
  }
  .audio-years.five-window .audio-year-art {
    height: 126px !important; min-height: 0 !important; flex: 1 1 auto;
  }
  .audio-years.five-window .audio-year-label {
    height: 52px !important; min-height: 52px !important; flex: 0 0 52px;
    padding: 5px 6px !important;
  }
  .audio-years.five-window .audio-year-label strong {font-size: 23px !important;}
}



/* Page-specific styling consolidated from flyer.html */
/* Flyer landing carousel: fixed card geometry */
.flyer-carousel{display:grid;grid-template-columns:repeat(5,162px);grid-template-rows:repeat(2,180px);gap:20px;width:max-content;max-width:100%;margin:48px auto 14px}
.flyer-tile{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:162px;height:180px;border:1px solid #ff9000;color:white;overflow:hidden;background:#211d1a;text-align:center;text-decoration:none;cursor:pointer;font-family:Arial,sans-serif}
.flyer-tile:not(.flyer-nav)::before{content:"";position:absolute;inset:0;background-image:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.58)),url("assets/hwnd-flyer-carousel-art.png");background-size:100% 100%,500% 200%;background-position:center,var(--crop);background-repeat:no-repeat;transition:filter .15s}
.flyer-tile:not(.flyer-nav):hover::before{filter:brightness(1.25)}
.flyer-tile strong{position:relative;z-index:1;font-weight:400;font-size:17px;line-height:1.2;text-shadow:0 2px 5px #000,0 0 9px #000;padding:7px}
/* Approved flyer rollover: preserve each tile label colour, no underline or bold. */
/* Flyer-only rollover: preserve the original label colours and weight. */
.flyer-carousel .flyer-tile,
.flyer-carousel .flyer-tile:link,
.flyer-carousel .flyer-tile:visited,
.flyer-carousel .flyer-tile:hover,
.flyer-carousel .flyer-tile:focus-visible,
.flyer-carousel .flyer-tile:active { color: #ffffff !important; text-decoration: none !important; font-weight: 400 !important; }
.flyer-carousel .flyer-nav,
.flyer-carousel .flyer-nav:hover,
.flyer-carousel .flyer-nav:focus-visible,
.flyer-carousel .flyer-nav:active { color: #ff9000 !important; text-decoration: none !important; font-weight: 400 !important; }
.flyer-carousel .flyer-tile strong,
.flyer-carousel .flyer-tile:hover strong,
.flyer-carousel .flyer-tile:focus-visible strong { color: inherit !important; font-weight: 400 !important; text-decoration: none !important; }
.flyer-nav{flex-direction:column;gap:10px;background:linear-gradient(#282018 70%,#222 70%);color:#ff9000}
.flyer-nav .chev{font-size:54px;line-height:1;color:#fff}
.flyer-nav strong{font-size:19px;font-weight:400;text-shadow:none;padding:0}
.flyer-nav small{font-size:11px;color:#fff}
.flyer-nav:disabled{opacity:.4;cursor:default}
.flyer-carousel-note{text-align:center;font-size:12px;color:#aaa;margin:0 0 12px}
@media(max-width:940px){.flyer-carousel{grid-template-columns:repeat(5,minmax(0,1fr));width:calc(100% - 24px);gap:10px}.flyer-tile{width:100%;height:180px}.flyer-tile strong{font-size:clamp(11px,1.8vw,17px)}}
@media(max-width:600px){.flyer-carousel{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none;gap:8px}.flyer-tile{height:140px}.flyer-tile strong{font-size:12px}.flyer-nav .chev{font-size:35px}}


/* Page-specific styling consolidated from audio.html */
/* HWND 13 Oct: match approved flyer carousel vertical spacing. */
.audio-home .audio-years.five-window { margin-top: 48px; }

/* HWND index.php — approved homepage-specific styles (moved from embedded <style>, unchanged). */
/* Approved weekly carousel A styling, preserved */

/* Test 04: preserve navigation and looping; contain artwork and show date/event. */
.audio-years.five-window {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  margin: 18px auto;
  flex-wrap: nowrap;
}
.five-window .audio-year {
  box-sizing: border-box;
  flex: 0 0 162px;
  width: 162px;
  height: 180px;
  min-height: 180px;
  padding: 8px;
  background: #222222;
  border: 1px solid #444444;
  justify-content: space-between;
  overflow: hidden;
}
.five-window .audio-year-art {
  min-height: 0;
  flex: 1;
  font-size: 11px;
  text-align: center;
  color: #aaaaaa;
}
.five-window .audio-year-label {
  padding: 5px 0 0;
  background: transparent;
  border-top: none;
  text-align: center;
}
.five-window .audio-year-label strong { font-size: 15px; }
.five-window .audio-year-label span { display: block; font-size: 9px; }
.five-window .audio-year-nav { border-color: #444444; }
.five-window .audio-year-nav .audio-year-art { font-size: 42px; }
@media (max-width: 900px) {
  .audio-years.five-window { gap: 8px; }
  .five-window .audio-year { flex: 1 1 0; width: auto; min-width: 0; }
}
@media (max-width: 520px) {
  .audio-years.five-window { gap: 5px; }
  .five-window .audio-year { padding: 3px; height: 140px; min-height: 140px; }
  .five-window .audio-year-art { font-size: 8px; letter-spacing: 0; }
  .five-window .audio-year-label strong { font-size: 11px; }
  .five-window .audio-year-label span { display: none; }
  .five-window .audio-year-nav .audio-year-art { font-size: 25px; }
}
.five-window .audio-year.is-live > .weekly-flyer-link {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 100%;
  height: 100%;
  min-height: 0;
  text-decoration: none;
  color: inherit;
}
.five-window .weekly-flyer-link .weekly-flyer-art {
  display: block !important;
  position: relative;
  flex: 1 1 0 !important;
  min-height: 80px !important;
  width: 100%;
  overflow: hidden;
}
.five-window .weekly-flyer-link .weekly-flyer-art img {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.five-window .weekly-flyer-link .audio-year-label {
  display: block;
  flex: 0 0 auto !important;
  min-width: 0;
  padding: 7px 0 0;
  text-align: center;
}
.five-window .weekly-flyer-link .audio-year-label .weekly-flyer-date {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 400;
}
.five-window .weekly-flyer-link .audio-year-label span {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Homepage A only: scoped additions */
/* Give the HWND banner breathing room before the black main panel */
.banner-home-link + .hwnd-home{margin-top:8px;}

body{background:#333;}
.hwnd-home{background:#000;border:1px solid #ff9000;padding:18px 20px 35px;}
.hwnd-home .search-block{border:0!important;background:transparent!important;box-shadow:none!important;margin:8px 0 28px;}
.hwnd-home .home-search{border:0!important;background:transparent!important;box-shadow:none!important;padding:0;}
.hwnd-home {max-width:1180px;margin:0 auto;padding:0 16px 40px;color:#ddd}
.hwnd-home h1,.hwnd-home h2{color:#ff9000;text-align:center;font-weight:normal}
.hwnd-home h2{font-size:20px;margin:0 0 14px}
.hwnd-home .block{margin:28px 0}
.hwnd-home .home-search{max-width:720px;margin:0 auto;display:flex;gap:8px}
.hwnd-home .home-search input{flex:1;min-width:0;background:#222;color:#fff;border:1px solid #555;padding:13px;font-size:15px}
.hwnd-home .home-search button{background:#ff9000;color:#000;border:0;font-weight:bold;padding:0 22px;cursor:pointer}
.hwnd-home .five-doors{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.hwnd-home .door{display:flex;min-height:150px;flex-direction:column;justify-content:center;align-items:center;gap:13px;background:#181818;border:1px solid #ff9000;text-decoration:none;text-align:center;padding:16px 8px}
.hwnd-home .door:hover,.hwnd-home .door:focus-visible{background:#292219}
.hwnd-home .door strong{font-size:20px;color:#ff9000}
.hwnd-home .door span{font-size:12px;color:#bbb}
.hwnd-home .weekly-wrap{background:#111;border:1px solid #444;padding:10px 12px;max-width:940px;box-sizing:border-box;margin:28px auto}
.hwnd-home .weekly-wrap .audio-years{margin:8px auto}
.hwnd-home .date-note{text-align:center;color:#aaa;font-size:12px}
.hwnd-home .spotlights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:940px;width:100%;margin-left:auto;margin-right:auto}
.hwnd-home .spot{background:#171717;border:1px solid #444;padding:18px}
.hwnd-home .spot h3{color:#ff9000;margin:0 0 9px;font-size:17px}
.hwnd-home .spot p{font-size:13px;line-height:1.5}
.hwnd-home a{color:#ffad36}
.hwnd-home .quick{border-top:1px solid #b66b10;border-bottom:1px solid #b66b10;display:flex;gap:16px;justify-content:center;flex-wrap:wrap;padding:15px;font-size:12px}
.hwnd-home .quick strong{color:#ff9000}
.hwnd-home .stats{text-align:center;font-size:12px;color:#aaa}
.hwnd-home .note{text-align:center;color:#999;font-size:12px}
@media(max-width:750px){.hwnd-home .five-doors{grid-template-columns:repeat(2,minmax(0,1fr))}.hwnd-home .door:last-child{grid-column:1/-1}.hwnd-home .spotlights{grid-template-columns:1fr}}
@media(max-width:500px){.hwnd-home .home-search button{padding:0 12px}.hwnd-home .door{min-height:110px}.hwnd-home .weekly-wrap{padding:12px 2px}}

/* Psychotropic five-button experiment: original scanned artwork, carousel-width buttons */
.hwnd-home .five-doors{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;justify-content:center;max-width:720px;margin:20px auto 24px}
.hwnd-home .five-doors .door{min-width:0;min-height:0;height:116px;padding:0;gap:0;display:flex;flex-direction:column;justify-content:stretch;background:#000;border:1px solid #ff9000;overflow:hidden}
.hwnd-home .five-doors .door-art{height:94px;width:100%;flex:none;background-image:url('hwnd-psychotropic-face.jpg');background-repeat:no-repeat;background-size:500% auto;background-position:var(--piece) 58%}
.hwnd-home .five-doors .door strong{height:22px;width:100%;display:flex;align-items:center;justify-content:center;font-size:13px;color:#ff9000;background:#050505}
.hwnd-home .five-doors .door:hover strong,.hwnd-home .five-doors .door:focus-visible strong{background:#ff9000;color:#000}
.hwnd-home .five-doors .door:hover .door-art{filter:brightness(1.12)}
@media(max-width:900px){.hwnd-home .five-doors{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;max-width:100%}.hwnd-home .five-doors .door:last-child{grid-column:auto}.hwnd-home .five-doors .door{height:101px}.hwnd-home .five-doors .door-art{height:80px}.hwnd-home .five-doors .door strong{height:21px;font-size:clamp(7px,1.8vw,12px)}}
@media(max-width:500px){.hwnd-home .five-doors .door{min-height:0;height:84px}.hwnd-home .five-doors .door-art{height:66px}.hwnd-home .five-doors .door strong{height:18px;font-size:clamp(6px,1.7vw,9px)}}
/* Version B: five clickable flyers, compact controls beneath; no other homepage changes. */
.hwnd-home .date-note .weekly-see-all{color:#ff9000;text-decoration:none;font-weight:normal;}
.hwnd-home .date-note .weekly-see-all:hover,.hwnd-home .date-note .weekly-see-all:focus-visible{color:#55aaff;text-decoration:underline;}
.hwnd-home .weekly-five-images{gap:12px;max-width:100%;}
.hwnd-home .weekly-five-images .audio-year{flex:1 1 0;width:0;min-width:0;}
.hwnd-home .weekly-controls{display:flex;justify-content:center;align-items:center;gap:13px;margin:5px auto 0;font-size:12px;color:#777;}
.hwnd-home .weekly-controls button{background:transparent;border:0;padding:5px 3px;color:#ff9000;font:inherit;font-weight:normal;text-decoration:none;cursor:pointer;}
.hwnd-home .weekly-controls button:hover,.hwnd-home .weekly-controls button:focus-visible{color:#55aaff;text-decoration:none;}
.hwnd-home .weekly-controls button:disabled{opacity:.35;cursor:default;}
@media(max-width:520px){.hwnd-home .weekly-five-images{gap:5px;}}


/* ===================================================================
   CANDIDATE 25 — THE FIVE OWNER-EDITABLE TEXT CONTROLS
   Change ONLY these five font-size values to run the 50px test.
   Do not use these classes for carousels, PHP results or bespoke controls.
   =================================================================== */
:root {
  --hwnd-top-nav-font-size: 12px;
  --hwnd-page-heading-font-size: 20px;
  --hwnd-page-subheading-font-size: 14px;
  --hwnd-body-font-size: 12px;
  --hwnd-quick-links-font-size: 12px;
  --hwnd-page-heading-weight: 700;
  --hwnd-page-subheading-weight: 400;
}
/* Higher specificity than historical page rules, including mobile rules. */
html body .top-nav,
html body .top-nav a,
html body .top-nav span { font-size: var(--hwnd-top-nav-font-size); }
html body h1.hwnd-page-heading,
html body .section-heading h1 {
  font-size: var(--hwnd-page-heading-font-size);
  font-weight: var(--hwnd-page-heading-weight);
}
html body p.hwnd-page-subheading,
html body .section-heading p {
  font-size: var(--hwnd-page-subheading-font-size);
  font-weight: var(--hwnd-page-subheading-weight);
}
html body { font-size: var(--hwnd-body-font-size); }
/* All ordinary unstyled paragraphs inherit the body size. */
html body p:not([class]):not([style]) { font-size: inherit; }
/* Quick links: one value, including their nested labels and anchors. */
html body .home-quick-strip,
html body .home-quick-strip span,
html body .home-quick-strip a,
html body .hwnd-home .quick,
html body .hwnd-home .quick a,
html body .hwnd-home .quick strong,
html body #rightcontent,
html body #rightcontent a,
html body .home-quick-links,
html body .home-quick-links a,
html body .quick-links-title {
  font-size: var(--hwnd-quick-links-font-size);
}
/* This audio paragraph has its own position/colour, NOT a font size. */
.audio-offline-note { text-align:center; color:#888; margin:8px auto 16px; }
/* The year-window status is ordinary body text; position stays separate. */
html body p.audio-year-window-note { font-size: var(--hwnd-body-font-size); }

/* Candidate 25 local QA: ordinary content typography, no bespoke component changes. */
html body p.flyer-carousel-note,
html body p.mix-disclaimer,
html body p.archive-disclaimer,
html body p.mix-disclaimer a,
html body p.archive-disclaimer a { font-size: var(--hwnd-body-font-size); }
.quotes-intro-colour { color: #ff9000; }

/* Shared browse typography — MIXES + TRACKLISTS (staging review) */
html body .dj-browse h2,
html body .tracklist-dj-browse h2,
html body .tracklist-browse h2,
html body .mix-browse h2 {
  font-size: var(--hwnd-page-subheading-font-size);
}
html body .mix-text-links,
html body .mix-text-links a,
html body .tracklist-text-links,
html body .tracklist-text-links a {
  font-size: var(--hwnd-body-font-size);
}

/* INDEX: both section headings follow the shared 20px heading control. */
html body .hwnd-home .weekly-wrap > h2,
html body .hwnd-home h2.home-archive-heading {
  color: #ffffff;
  font-size: var(--hwnd-page-heading-font-size);
}

/* INDEX Quick Links: reference.html component; retain Facebook link. */
html body .hwnd-home .home-quick-strip {
  font-size: var(--hwnd-quick-links-font-size);
  font-weight: 400;
  gap: 5px 14px;
  margin-top: 14px;
  padding: 9px 10px;
  border-top: 1px solid #ff9000;
  border-bottom: 1px solid #ff9000;
}
html body .hwnd-home .home-quick-strip span {
  color: #ffffff;
  font-size: var(--hwnd-quick-links-font-size);
  font-weight: 400;
}
html body .hwnd-home .home-quick-strip a {font-size:var(--hwnd-quick-links-font-size);font-weight:400}
@media(max-width:700px){html body .hwnd-home .home-quick-strip{gap:6px 12px}}

/* Temporary LIVE holding-page compatibility overrides; /hwndt/ unchanged. */
@media (min-width:701px) {
  .hwnd-home .audio-years.five-window.weekly-five-images {
    display:flex!important; width:100%!important; max-width:900px!important;
    grid-template-columns:none!important; gap:12px!important; justify-content:center;
  }
  .hwnd-home .weekly-five-images .audio-year {
    flex:1 1 0!important; width:0!important; min-width:0!important;
    height:180px!important; min-height:180px!important;
  }
  .hwnd-home .weekly-five-images .weekly-flyer-link .audio-year-label {
    height:auto!important; min-height:0!important; flex:0 0 auto!important;
  }
}
