/* ============================================
   Rheostatics - Modernized Stylesheet
   Converted from table-based layout to
   flexbox/semantic HTML. Mobile-responsive.
   ============================================ */

:root {
  --bg-dark: #000000;
  --bg-content: #444444;
  --text-primary: #ffffff;
  --text-accent: #ffcc00;
  --text-link: #ffffff;
  --text-link-brown: #a26721;
  --font-main: Verdana, Arial, Helvetica, sans-serif;
  --wrapper-width: 760px;
  --content-width: 624px;
  --sidebar-width: 135px;
}

/* --- Base Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 11px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-link);
  text-decoration: underline;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 8px 0;
}

/* --- Page Wrapper --- */
.page-wrapper {
  max-width: var(--wrapper-width);
  margin: 0 auto;
  background-color: var(--bg-dark);
}

/* ============================================
   Header
   ============================================ */
.site-header {
  width: 100%;
}

.banner {
  background-color: var(--bg-dark);
  line-height: 0;
  position: relative;
  border-left: 1px solid #ffffff;
}

.banner-img {
  width: 100%;
  max-width: calc(var(--content-width) - 1px);
  height: 75px;
  object-fit: cover;
  object-position: top left;
}

.banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: calc(var(--content-width) - 1px);
  width: 1px;
  height: 100%;
  background-color: #ffffff;
  pointer-events: none;
}

/* --- Navigation --- */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  background-color: #1a1a1a;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  max-width: calc(var(--content-width) + 1px);
  border-left: 1px solid #ffffff;
  border-right: 1px solid #ffffff;
}

.main-nav a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: color 0.2s, background-color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover {
  background-color: var(--bg-content);
  color: var(--text-accent);
}

.main-nav a.active {
  color: var(--text-accent);
  background-color: #333;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: bold;
  padding: 10px 16px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  letter-spacing: 0.5px;
}

.nav-toggle:hover {
  background-color: var(--bg-content);
}

/* --- Sub Header ---
   HTML replacement for old sub_*.jpg images.
   Two spans: .sub-header-left (grey) | 1px white border | .sub-header-right (black).
   ============================================ */
.sub-header {
  display: flex;
  align-items: stretch;
  height: 45px;
  width: 100%;
}

/* *** LEFT SIDE — grey, content-width, right-aligned text *** */
.sub-header-left {
  width: calc(var(--content-width) + 1px);
  flex-shrink: 0;
  background-color: var(--bg-content);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5px;
  border-right: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  font-family: 'Georgia', Times, serif;
  font-style: italic;
  font-weight: bold;
  font-size: 20px;
  color: var(--text-primary);
  line-height: 1;
}

/* *** RIGHT SIDE — black, fills sidebar, left-aligned text *** */
.sub-header-right {
  flex: 1;
  background-color: var(--bg-dark);
  display: flex;
  align-items: center;
  padding-left: 5px;
  font-family: 'Georgia', Times, serif;
  font-style: italic;
    font-weight: bold;
  font-size: 20px;
  color: var(--text-primary);
  line-height: 1;
}

/* ============================================
   Content Layout
   Preserves the original visual structure:
   624px content | 1px white divider | 135px sidebar space
   ============================================ */
.content-row {
  display: flex;
}

.main-content {
  width: var(--content-width);
  flex-shrink: 0;
  background-color: var(--bg-content);
  padding: 20px;
  border-left: 1px solid #ffffff;
}

p img {
    max-width: 100%;
}

.content-divider {
  width: 1px;
  background-color: #ffffff;
  flex-shrink: 0;
}

.content-sidebar {
  flex: 1;
  background-color: var(--bg-dark);
  min-width: 0;
}

/* ============================================
   Footer
   promofact images are 760px wide and span
   the full wrapper width (same as sub-header).
   ============================================ */
.site-footer {
  line-height: 0;
}

.footer-bar {
  width: 100%;
}

.footer-bar img {
  width: 100%;
  height: auto;
}

.footer-white-line {
  height: 1px;
  background-color: #ffffff;
  width: 100%;
}

/* ============================================
   Typography & Content Styles
   ============================================ */

/* Matches old .contentText */
.content-text {
  font-weight: normal;
  color: var(--text-primary);
  font-size: 11px;
  font-family: var(--font-main);
}

.content-text a {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Matches old .subTitleText */
.sub-title {
  font-weight: bold;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-main);
}

.sub-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.sub-title a:hover {
  text-decoration: underline;
}

/* Matches old .linkText */
.link-text {
  color: var(--text-link-brown);
  font-size: 11px;
}

.link-text a {
  color: var(--text-link-brown);
  text-decoration: none;
}

.link-text a:hover {
  text-decoration: underline;
}

/* Accent/label text (old .style10) */
.accent-label {
  color: var(--text-accent);
  font-weight: bold;
  font-size: 9px;
}

/* ============================================
   News / Article Items (Home Page)
   ============================================ */
.news-item {
  margin-bottom: 24px;
  padding-bottom: 16px;
}

.news-item h2 {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.news-item h2 .new-badge {
  color: var(--text-accent);
  font-size: 9px;
  font-weight: bold;
  margin-right: 4px;
}

.news-item .event-links {
  margin: 8px 0;
}

/* Content divider image */
.divider {
  display: block;
  margin: 20px auto;
  max-width: 240px;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid #666;
  margin: 20px 0;
}

/* Back to top */
.back-to-top {
  margin: 10px 0;
  font-size: 11px;
}

/* ============================================
   Images in Content
   ============================================ */
.content-img {
  max-width: 100%;
  height: auto;
  border: 1px solid #666;
  margin: 8px 0;
}

.content-img-wide {
  max-width: 560px;
  width: 100%;
  height: auto;
  border: 1px solid #666;
  margin: 8px 0;
}

.content-img-right {
  float: right;
  margin: 0 0 10px 15px;
  max-width: 265px;
  border: 2px solid #666;
}

.content-img-inline {
  display: inline-block;
  margin: 8px 0;
}

/* ============================================
   Responsive Video Embeds
   ============================================ */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 560px;
  margin: 10px 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   Album / Discography (Music Page)
   ============================================ */
.discography-section {
  margin-top: 10px;
}

.album-entry {
  margin-bottom: 24px;
  overflow: hidden;
  padding-bottom: 16px;
}

.album-entry::after {
  content: "";
  display: table;
  clear: both;
}

.album-cover {
  float: right;
  margin: 0 0 10px 15px;
  max-width: 200px;
  border: 1px solid #666;
}

.album-title {
  font-weight: bold;
  font-style: italic;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.album-label {
  margin-bottom: 8px;
}

.track-list {
  margin: 8px 0;
  line-height: 1.8;
}

.buy-link {
  margin: 8px 0;
}

/* ============================================
   Shows Page
   ============================================ */
.show-entry {
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
}

.show-entry .show-date {
  font-weight: bold;
  font-style: italic;
  font-size: 13px;
  color: var(--text-primary);
}

.show-entry .show-theme {
  font-weight: bold;
  font-size: 13px;
}

.show-entry .show-venue {
  margin: 4px 0;
}

/* ============================================
   Links Page
   ============================================ */
.links-section {
  margin-bottom: 24px;
}

.links-section h2 {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 12px;
}

.link-item {
  margin-bottom: 16px;
}

.link-item img {
  margin-bottom: 6px;
  display: inline-block;
}

.artist-links {
  line-height: 2.2;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-section {
  margin-bottom: 24px;
}

.contact-section h2 {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 8px;
}

.contact-block {
  margin-bottom: 16px;
}

/* ============================================
   Blockquote
   ============================================ */
blockquote {
  margin: 12px 20px;
  padding-left: 12px;
  border-left: 2px solid #888;
  font-style: italic;
}

/* ============================================
   Utilities
   ============================================ */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Tablet and below */
@media (max-width: 768px) {
  .page-wrapper {
    max-width: 100%;
  }

  .banner-img {
    max-width: 100%;
  }

  /* Show hamburger, collapse nav */
  .nav-toggle {
    display: block;
  }

  .main-nav {
    flex-direction: column;
  }

  .main-nav.collapsed .nav-link {
    display: none;
  }

  /* Content fills full width */
  .content-row {
    flex-direction: column;
  }

  .main-content {
    width: 100%;
  }

  .content-divider,
  .content-sidebar {
    display: none;
  }

  .banner {
    border-left: none;
  }

  .banner::after {
    display: none;
  }

  .main-nav {
    border-left: none;
    border-right: none;
    max-width: 100%;
  }

  .main-content {
    border-left: none;
  }

  .sub-header {
    justify-content: flex-end;
    background-color: var(--bg-content);
  }

  .sub-header-left {
    width: auto;
    flex: 0 0 auto;
    border-right: none;
    border-left: none;
    justify-content: flex-end;
    padding-right: 5px;
  }

  .sub-header-right {
    flex: 0 0 auto;
    background-color: var(--bg-content);
    justify-content: flex-start;
    padding-left: 5px;
  }

  /* Images stack vertically */
  .album-cover {
    float: none;
    display: block;
    margin: 10px auto;
    max-width: 200px;
  }

  .content-img-right {
    float: none;
    display: block;
    margin: 10px auto;
    max-width: 100%;
  }

  .content-img-wide {
    max-width: 100%;
  }
}

/* Small mobile */
@media (max-width: 624px) {
  /* Below the content column width the banner must scale proportionally so
     object-fit:cover always scales by width and the same bottom crop is
     maintained at all viewport sizes. aspect-ratio 624:75 mirrors the
     desktop crop (showing exactly the top 75px of the 110px-tall images). */
  .banner-img {
    height: auto;
    aspect-ratio: 624 / 75;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 15px;
  }

  .main-nav a {
    padding: 10px 16px;
    font-size: 13px;
    border-bottom: 1px solid #333;
  }

  .show-entry {
    text-align: left;
  }
}
