/* ==========================================================================
   SAV PAGE HEADER — Production CSS
   Full-bleed brand gradient hero for all non-homepage pages.
   Injected via Astra Custom Layout Hook #731 (astra_content_before).
   Order: Breadcrumb → H1 → Meta
   ========================================================================== */

/* Horizontal overflow safety (prevents full-bleed scroll on some browsers) */
html, body { overflow-x: clip; }

/* ---------- Full-bleed wrapper --------------------------------------- */
.ast-container.vs-header-container,
.vs-header-container {
  max-width: none;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  margin-bottom: 32px;
  padding: 72px 0 56px;
  background: linear-gradient(135deg, #004466 0%, #0A5F86 100%);
  overflow: hidden;
  isolation: isolate;
}

.vs-header-container::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Direct children (constrain, add side padding) ------------ */
.vs-header-container > div.vs-breadcrumb,
.vs-header-container > h1.vs-title,
.vs-header-container > .vs-meta {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Breadcrumb wrapper --------------------------------------- */
.vs-header-container > div.vs-breadcrumb {
  margin-bottom: 20px;
  background: transparent;
}

/* ---------- Breadcrumb nav typography -------------------------------- */
.vs-header-container nav.vs-breadcrumb {
  font-family: 'Inter', -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
}

.vs-header-container .vs-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color .15s ease;
}
.vs-header-container .vs-breadcrumb a:hover {
  color: #ffffff;
  text-decoration: none;
}

.vs-header-container .vs-sep {
  color: rgba(255, 255, 255, 0.35);
  margin: 0 8px;
  opacity: 1;
  user-select: none;
}

.vs-header-container .vs-current {
  color: #ffffff;
  font-weight: 600;
}

/* ---------- H1 ------------------------------------------------------- */
.vs-header-container > h1.vs-title {
  font-family: 'Inter', -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 auto 20px;
}

/* ---------- Meta ----------------------------------------------------- */
.vs-header-container > .vs-meta {
  font-family: 'Inter', -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 0;
  margin-bottom: 0;
}

.vs-header-container .vs-author-link {
  color: #F59E0B;
  font-weight: 600;
  text-decoration: none;
}
.vs-header-container .vs-author-link:hover {
  color: #FBBF24;
  text-decoration: underline;
}

.vs-header-container .vs-date,
.vs-header-container .vs-time {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* ---------- Responsive: tablet (≤ 1024px) ---------------------------- */
@media (max-width: 1024px) {
  .ast-container.vs-header-container,
  .vs-header-container {
    padding: 56px 0 44px;
  }
}

/* ---------- Responsive: mobile (≤ 768px) ----------------------------- */
@media (max-width: 768px) {
  .ast-container.vs-header-container,
  .vs-header-container {
    padding: 40px 0 32px;
    margin-bottom: 24px;
  }
  .vs-header-container::before {
    width: 280px;
    height: 280px;
    top: -30%;
    right: -20%;
  }
  .vs-header-container > div.vs-breadcrumb,
  .vs-header-container > h1.vs-title,
  .vs-header-container > .vs-meta {
    padding-left: 20px;
    padding-right: 20px;
  }
  .vs-header-container > div.vs-breadcrumb {
    margin-bottom: 14px;
  }
  .vs-header-container nav.vs-breadcrumb {
    font-size: 12px;
  }
  .vs-header-container .vs-sep {
    margin: 0 6px;
  }
  .vs-header-container > h1.vs-title {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  .vs-header-container > .vs-meta {
    font-size: 12px;
    padding-top: 14px;
  }
}

/* ---------- Responsive: very small (≤ 380px) ------------------------- */
@media (max-width: 380px) {
  .ast-container.vs-header-container,
  .vs-header-container {
    padding: 32px 0 28px;
  }
  .vs-header-container > div.vs-breadcrumb,
  .vs-header-container > h1.vs-title,
  .vs-header-container > .vs-meta {
    padding-left: 16px;
    padding-right: 16px;
  }
  .vs-header-container > h1.vs-title {
    font-size: 1.5rem;
  }
}

/* ---------- Tighten gap between brand hero and content ------------------
   Astra defaults to 64px margin-top on .content-area, designed for pages
   WITHOUT a brand hero above. Since the hero already adds its own padding,
   this margin creates a double gap. Reset to a tighter default. */
.ast-single-post .content-area.primary,
.ast-archive .content-area.primary {
  margin-top: 24px;
}
@media (max-width: 640px) {
  .ast-single-post .content-area.primary,
  .ast-archive .content-area.primary {
    margin-top: 16px;
  }
}
