/*
 * WMRN museum release polish — unified interior heroes and homepage restraint.
 * Staging draft: 2026-10-28. Presentation only; no catalog data mutation.
 */

/* Fixed 104–112px navigation must not cover an interior page's first hero.
 * The parent wrapper has no top offset, so offset only hero-bearing main areas.
 * Dedicated app templates and single-record views without these heroes remain unchanged.
 */
html body:not(.home) #content:has(> .page-hero),
html body:not(.home) #content:has(> .page-hero-plain) {
  padding-top:112px !important;
}

/* No giant gold "orb", rings, 1490 watermark or stripe-grid overlays. */
html body:not(.home) #content :is(.page-hero-plain,.page-hero)::before,
html body:not(.home) #content .page-hero-plain::after {
  content:none !important;
  display:none !important;
  background:none !important;
  box-shadow:none !important;
}
html body:not(.home) #content .page-hero-plain {
  display:flex !important;
  align-items:center !important;
  min-height:220px !important;
  height:auto !important;
  padding:40px max(28px,calc((100vw - 1280px)/2)) !important;
  background:linear-gradient(113deg,#061431 0%,#102A58 64%,#0D2B63 100%) !important;
  border-top:0 !important;
  border-bottom:3px solid #D8A846 !important;
  overflow:hidden !important;
}
html body:not(.home) #content .page-hero-plain > .wmrn-container,
html body:not(.home) #content .page-hero-plain .page-hero-content {
  position:relative;
  z-index:1;
  margin:0 auto !important;
  max-width:1180px;
  width:100% !important;
  padding:0 !important;
}
html body:not(.home) #content .page-hero-plain .page-hero-title {
  max-width:980px;
  font:700 clamp(38px,4.4vw,62px)/1.07 "EB Garamond",Georgia,serif !important;
  letter-spacing:-.028em !important;
  text-wrap:balance;
  overflow-wrap:break-word;
}

/* Split photo mastheads: give the text panel breathing room and keep the image
 * framed on the right without forcing a massive cinematic hero on utility pages. */
@media (min-width:901px) {
  html body:not(.home) #content .page-hero:not(.page-hero-plain) {
    min-height:340px !important;
  }
  html body:not(.home) #content .page-hero:not(.page-hero-plain) .page-hero-content {
    min-height:340px !important;
    padding:42px 35px 42px max(45px,calc((100vw - 1280px)/2)) !important;
  }
  html body:not(.home) #content .page-hero:not(.page-hero-plain) .page-hero-title {
    font-size:clamp(44px,4.5vw,69px) !important;
    line-height:1.035 !important;
    max-width:18ch;
  }
  html body:not(.home) #content .page-hero:not(.page-hero-plain) .page-hero-subtitle {
    font-size:clamp(18px,1.4vw,21px) !important;
    line-height:1.46 !important;
    margin-top:15px !important;
  }
}

/* A small editorial rule replaces the decorative ornament and retains gold in
 * a restrained way (no opaque circles or large numbers behind headings). */
html body:not(.home) #content :is(.page-hero,.page-hero-plain) {
  border-bottom:3px solid #D8A846 !important;
}

@media (max-width:900px) {
  html body:not(.home) #content:has(> .page-hero),
  html body:not(.home) #content:has(> .page-hero-plain) {
    padding-top:34px !important;
  }
  html body:not(.home) #content .page-hero-plain {
    padding:30px 24px !important;
    min-height:165px !important;
  }
  html body:not(.home) #content .page-hero-plain .page-hero-title {
    font-size:clamp(33px,6vw,52px) !important;
  }
}
@media (max-width:600px) {
  html body:not(.home) #content:has(> .page-hero),
  html body:not(.home) #content:has(> .page-hero-plain) {
    padding-top:26px !important;
  }
  html body:not(.home) #content .page-hero-plain {
    padding:24px 18px !important;
  }
  html body:not(.home) #content .page-hero-plain .page-hero-title {
    font-size:clamp(30px,8.8vw,45px) !important;
  }
}

/* Streamline the homepage. The dedicated Exhibits links still give full
 * access to the Marion Public Library exhibit and Buckeye Chuck history.
 * These two oversized old blocks duplicate that discovery path. */
/* The October library promotion is retired; the active scheduled replacement
   must remain visible. Do not suppress Buckeye Chuck or future seasonal features. */
html body.home .wmrn-home-refresh > .wmrn-library-exhibit-feature,
html body.home .wmrn-library-exhibit-feature {
  display:none !important;
}

/* Fourth discovery card: preserve the original WMRN-blue featured-image
   colors. Other three discovery-card photographs retain their styling. */
html body.home .wmrn-home-portals__grid > .wmrn-home-portal:nth-child(4) .wmrn-home-portal__photo img {
  filter: none !important;
  -webkit-filter: none !important;
}

/*
 * Universal navigation / hero seam — all redesigned interior templates.
 *
 * The fixed navigation's rendered height differs between desktop, tablet,
 * phone portrait, and phone landscape. A tiny shared script measures it and
 * sets --wmrn-fixed-header-space; the CSS values below are safe fallbacks.
 *
 * Reserve the nav height on the OUTER #content wrapper only, not on the hero
 * itself: no double offsets and no uncovered strip between nav and artwork.
 */
:root { --wmrn-fixed-header-space: 128px; }
@media (min-width:769px) and (max-width:1023px) {
  :root { --wmrn-fixed-header-space: 104px; }
}
@media (max-width:768px) {
  :root { --wmrn-fixed-header-space: 87px; }
}

html body:not(.home) #content:has(> :is(.page-hero,.page-hero-plain,.search-header)),
html body:not(.home) #content:has(> :first-child > :is(.page-hero,.page-hero-plain)),
html body:not(.home) #content:has(> .wmrn-room > .page-hero),
html body:not(.home) #content:has(> .wmrnrha-photos > .page-hero),
html body:not(.home) #content:has(> #primary > .page-hero) {
  padding-top:var(--wmrn-fixed-header-space) !important;
}

/* Any space must be WITHIN the hero content, not between the two bands. */
html body:not(.home) #content > :is(.page-hero,.page-hero-plain,.search-header),
html body:not(.home) #content > :first-child > :is(.page-hero,.page-hero-plain),
html body:not(.home) #content > .wmrn-room > .page-hero,
html body:not(.home) #content > .wmrnrha-photos > .page-hero,
html body:not(.home) #content > #primary > .page-hero {
  margin-top:0 !important;
}

/* This proof-of-concept is nested inside #content instead of being its
 * first child. The parent now owns the header offset like every other page. */
html body.wmrn-listening-room-prototype #content > .wmrn-room {
  padding-top:0 !important;
}
html { scroll-padding-top:calc(var(--wmrn-fixed-header-space) + 12px); }

/* On shorter landscape screens, retain editorial breathing room without
 * reserving a second navigation-height gap above the image. */
@media (orientation:landscape) and (max-height:520px) {
  html body:not(.home) #content .page-hero:not(.page-hero-plain) .page-hero-content {
    min-height:0 !important;
    padding-top:clamp(24px,5vh,42px) !important;
    padding-bottom:clamp(24px,5vh,42px) !important;
  }
}

/* Listening Room: display the authentic WMRN-AM microphone photograph
 * in full original color. Suppress only this hero's shared grayscale,
 * sepia and right-hand darkening overlay; other pages remain unchanged. */
html body.wmrn-listening-room-prototype:not(.home) #content .page-hero.room-hero > img.page-hero-bg {
  filter:none !important;
  -webkit-filter:none !important;
  opacity:1 !important;
  mix-blend-mode:normal !important;
}
html body.wmrn-listening-room-prototype:not(.home) #content .page-hero.room-hero > .page-hero-overlay {
  display:none !important;
  background:none !important;
  opacity:0 !important;
}

