/*
 * WMRN — STANDARD INTERIOR HERO | 2026 redesign (staging draft only).
 * Unified hero architecture for ALL ordinary interior pages:
 * navy copy panel LEFT / authentic historic or collection image RIGHT.
 * Exclusions: homepage, individual Tainacan and legacy accession records.
 * Established navy remains unchanged: #0D2B63, #0A1D47, #061431.
 *
 * This stylesheet intentionally loads last to consolidate earlier per-page
 * hero attempts. Keep previous CSS and templates intact for easy rollback.
 */

@media (min-width:721px) {
  html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
    #content :is(.page-hero, .page-hero-plain) {
    position:relative!important;
    isolation:isolate!important;
    display:grid!important;
    grid-template-columns:minmax(0,54fr) minmax(0,46fr)!important;
    align-items:stretch!important;
    justify-content:stretch!important;
    min-height:clamp(340px,29vw,410px)!important;
    height:auto!important;
    padding:0!important;
    margin:0!important;
    overflow:hidden!important;
    width:100%!important;
    max-width:none!important;
    text-align:left!important;
    background:#061431!important;
    border-top:0!important;
    border-bottom:3px solid #D8A846!important;
  }

  /* All existing image-bearing page templates already have a real image. */
  html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
    #content .page-hero:not(.page-hero-plain) > .page-hero-bg {
    position:absolute!important;
    inset:0 0 0 auto!important;
    width:46%!important;
    height:100%!important;
    max-width:none!important;
    object-fit:cover!important;
    object-position:center!important;
    display:block!important;
    opacity:1!important;
    filter:none!important;
    -webkit-filter:none!important;
    border:0!important;
    border-radius:0!important;
    z-index:0!important;
  }

  html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
    #content .page-hero:not(.page-hero-plain) > .page-hero-overlay {
    position:absolute!important;
    inset:0 0 0 auto!important;
    width:46%!important;
    height:100%!important;
    background:linear-gradient(90deg,rgba(6,20,49,.18),rgba(6,20,49,.015) 80%)!important;
    z-index:1!important;
    pointer-events:none!important;
  }

  html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
    #content .page-hero:not(.page-hero-plain) > .page-hero-content,
  html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
    #content .page-hero-plain > :is(.wmrn-container,.page-hero-content) {
    position:relative!important;
    grid-column:1!important;
    grid-row:1!important;
    z-index:2!important;
    align-self:stretch!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    text-align:left!important;
    width:100%!important;
    max-width:none!important;
    min-height:clamp(340px,29vw,410px)!important;
    height:auto!important;
    margin:0!important;
    padding:48px 35px 48px max(35px,calc((100vw - 1280px)/2))!important;
    border:0!important;
    border-right:1px solid rgba(216,168,70,.26)!important;
    border-radius:0!important;
    background:linear-gradient(115deg,#061431 0%,#0A1D47 82%,#0D2B63 100%)!important;
    box-shadow:none!important;
  }

  /* Plain headers previously had only a gradient. Add the right-hand archive
   * photograph as a single pseudo media panel, not a decorative gold orb. */
  html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
    #content .page-hero-plain::after {
    content:""!important;
    display:block!important;
    position:absolute!important;
    top:0!important;right:0!important;bottom:0!important;left:auto!important;
    width:46%!important;
    height:100%!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background-image:linear-gradient(90deg,rgba(6,20,49,.12),rgba(6,20,49,0) 80%),var(--wmrn-standard-hero-photo)!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
    background-size:cover!important;
    z-index:0!important;
    pointer-events:none!important;
  }
}

/* Typography is identical whether the page's original hero has an image or
 * came from a simple page-hero-plain. Preserve long titles and real content. */
html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
  #content :is(.page-hero,.page-hero-plain) h1.page-hero-title {
  position:relative!important;
  z-index:3!important;
  display:block!important;
  width:auto!important;
  max-width:17ch!important;
  margin:0!important;
  padding:0!important;
  color:#FFFDF8!important;
  font-family:"EB Garamond",Georgia,serif!important;
  font-size:clamp(37px,4.5vw,68px)!important;
  font-weight:700!important;
  line-height:1.04!important;
  letter-spacing:-.035em!important;
  text-transform:none!important;
  overflow-wrap:break-word!important;
  text-wrap:balance;
  text-shadow:none!important;
}
html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
  #content :is(.page-hero,.page-hero-plain)
  :is(.page-hero-eyebrow,.hero-eyebrow,.room-eyebrow) {
  color:#F8D98F!important;
  font-family:system-ui,sans-serif!important;
  font-size:12px!important;
  font-weight:800!important;
  letter-spacing:.12em!important;
  line-height:1.4!important;
  text-transform:uppercase!important;
  opacity:1!important;
}
html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
  #content :is(.page-hero,.page-hero-plain) .page-hero-subtitle {
  width:auto!important;
  max-width:48ch!important;
  margin:15px 0 0!important;
  color:#E8EDF6!important;
  font-family:inherit!important;
  font-size:clamp(17px,1.4vw,21px)!important;
  line-height:1.52!important;
  opacity:1!important;
}
html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
  #content :is(.page-hero,.page-hero-plain)
  :is(.room-intro,.room-hero-proof) {color:#E8EDF6!important;}

/* Do not allow old decorative flourishes to intrude into the image panel. */
html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
  #content :is(.page-hero,.page-hero-plain) :is(.corner-flourish,.hero-ornament) {
  display:none!important;
}
html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
  #content :is(.page-hero,.page-hero-plain)::before {
  content:none!important;
  display:none!important;
}

/* Tablet and landscape: retain the same split composition without clipping.
 * Real hero content controls the minimum height. */
@media (min-width:721px) and (max-width:1100px) {
 html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
  #content :is(.page-hero,.page-hero-plain) > :is(.page-hero-content,.wmrn-container) {
   min-width:0!important;
   padding:36px 26px!important;
 }
 html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
  #content :is(.page-hero,.page-hero-plain) h1.page-hero-title {
   font-size:clamp(35px,4.2vw,49px)!important;
   max-width:100%!important;
 }
}

/* Phones: same ordered design, text above a full-width photograph.
 * Image sits in its own reserved space: no overlapping text or giant gap. */
@media (max-width:720px) {
 html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
  #content :is(.page-hero,.page-hero-plain) {
   position:relative!important;
   isolation:isolate!important;
   display:block!important;
   min-height:0!important;
   height:auto!important;
   width:100%!important;
   margin:0!important;
   padding:0 0 205px!important;
   overflow:hidden!important;
   background:#061431!important;
   border:0!important;
   border-bottom:3px solid #D8A846!important;
 }
 html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
  #content :is(.page-hero,.page-hero-plain) > :is(.page-hero-content,.wmrn-container) {
   position:relative!important;
   z-index:2!important;
   display:flex!important;
   flex-direction:column!important;
   align-items:flex-start!important;
   justify-content:center!important;
   width:100%!important;
   min-height:230px!important;
   height:auto!important;
   max-width:none!important;
   margin:0!important;
   padding:36px 25px 38px!important;
   background:linear-gradient(115deg,#061431,#0A1D47 86%,#0D2B63)!important;
   border:0!important;
   border-radius:0!important;
   box-shadow:none!important;
 }
 html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
  #content :is(.page-hero,.page-hero-plain) h1.page-hero-title {
   font-size:clamp(35px,8vw,48px)!important;
   line-height:1.07!important;
   max-width:100%!important;
 }
 html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
  #content .page-hero:not(.page-hero-plain) > .page-hero-bg {
   display:block!important;
   position:absolute!important;
   inset:auto 0 0 0!important;
   width:100%!important;
   height:205px!important;
   max-width:none!important;
   object-fit:cover!important;
   object-position:center!important;
   opacity:1!important;
   filter:none!important;
   -webkit-filter:none!important;
   border:0!important;
   border-radius:0!important;
   z-index:0!important;
 }
 html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
  #content .page-hero:not(.page-hero-plain) > .page-hero-overlay {
   position:absolute!important;
   inset:auto 0 0 0!important;
   width:100%!important;
   height:205px!important;
   background:linear-gradient(180deg,rgba(6,20,49,.16),rgba(6,20,49,0) 65%)!important;
   z-index:1!important;
   pointer-events:none!important;
 }
 html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
  #content .page-hero-plain::after {
   content:""!important;
   display:block!important;
   position:absolute!important;
   inset:auto 0 0 0!important;
   width:100%!important;
   height:205px!important;
   background-image:linear-gradient(180deg,rgba(6,20,49,.09),rgba(6,20,49,0) 70%),var(--wmrn-standard-hero-photo)!important;
   background-position:center!important;
   background-size:cover!important;
   background-repeat:no-repeat!important;
   border:0!important;
   border-radius:0!important;
   box-shadow:none!important;
   z-index:0!important;
   pointer-events:none!important;
 }
 html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
  #content :is(.page-hero,.page-hero-plain) .page-hero-subtitle {
   font-size:17px!important;
   line-height:1.5!important;
 }
 html body:not(.home):not(.single-tnc_col_2719_item):not(.single-accession)
  #content :is(.page-hero,.page-hero-plain)
   :is(.room-hero-actions,.room-hero-proof) {max-width:100%;flex-wrap:wrap!important;}
}

/* Protect the distinct accession masthead and the full homepage hero. */
html body.home .wmrn-home-hero,
html body.single-tnc_col_2719_item .archive-detail-header,
html body.single-accession .archive-detail-header { --wmrn-standard-hero-exempt:1; }
