/* === Global Layout Flow Fix === */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.layout-container {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
}

/* === Banner Overrides === */
.page-header {
  background: none !important;
  background-image: url("{{ '/assets/images/daley-dose-banner-title.png?v=5' | relative_url }}") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding: 4rem 2rem;
  margin-bottom: 2rem;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Make banner text readable */
.page-header .project-name a,
.page-header .project-tagline {
  color: #ffffff !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* === Left Sidebar — static === */
.left-sidebar {
  width: 250px;
  margin-left: 115px;
  padding-left: 20px;
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  position: static;
  border-right: 1px solid rgba(0, 0, 0, 0.1); /* subtle border */
}

/* === Right Sidebar — sticky === */
.right-sidebar {
  width: 250px;
  padding-left: 20px;
  position: sticky;
  top: 100px;
  margin-right: 115px;
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  border-left: 1px solid rgba(0, 0, 0, 0.1); /* subtle border */
}

/* === Main Content === */
.main-content {
  flex: 1 1 auto;
  max-width: 100%;
  padding: 0 40px;
  margin: 0 auto;
  box-sizing: border-box;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  border-left: 1px solid rgba(0, 0, 0, 0.05);  /* subtle separation from left */
  border-right: 1px solid rgba(0, 0, 0, 0.05); /* subtle separation from right */
}

/* Main Content Headings — fixed sizes for scaling stability */
.main-content h1 {
  margin-top: 2rem;
  font-size: 1.8rem;
}

.main-content h2 {
  font-size: 1.4rem;
}

.main-content h3 {
  font-size: 1.2rem;
}

/* === Bullet Style Overrides === */
ul ul {
  list-style-type: square;
  margin-left: 1.5rem;
}

/* === Responsive Adjustments === */
@media (max-width: 1200px) {
  .layout-container {
    flex-wrap: wrap;
  }

  .left-sidebar,
  .right-sidebar {
    width: 100%;
    margin: 20px 0;
    position: static;
    border: none; /* remove borders on mobile wrap */
  }

  .main-content {
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
    border: none; /* remove borders on mobile wrap */
  }
}

/* === Header Banner Overrides (Full-Width Clickable) === */
.page-header {
  position: relative;
  background: none !important;
  background-image: url('{{ "/assets/images/daley-dose-banner-top.png?v=1" | relative_url }}') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding: 4rem 2rem;
  height: clamp(250px, 40vh, 500px);
}

.page-header .project-name a,
.page-header .project-tagline {
  color: #ffffff !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.page-header a.banner-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  text-indent: -9999px;
  cursor: pointer;
}

/* === Footer Styles === */
.page-footer {
  background-color: #002157;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.footer-text {
  color: #ffffff;
  text-transform: uppercase;
}

.footer-text .highlight {
  color: #f26522;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}
