/*
 * WMRN RADIO HISTORY ARCHIVE — Museum Interior System
 * Works alongside the approved museum-home.css homepage refresh.
 * Presentation only: no catalog queries, Tainacan rendering, audio
 * processing, form submission, or content editing is changed.
 *
 * Palette matches homepage:
 * Navy #0D2B63; deep #061431; gold #D8A846;
 * antique gold #B88A38; ivory #FFFDF8; paper #F5F1E9.
 */

/* Shared foundation and interior hierarchy */
html body:not(.home) {
  background:#F5F1E9;
  color:#243A55;
}
html body:not(.home) #content {
  overflow:visible;
  background:#F5F1E9;
}
html body:not(.home) #content *,
html body:not(.home) #content *::before,
html body:not(.home) #content *::after { box-sizing:border-box; }
html body:not(.home) #content :where(.wmrn-container,.wmrn-container-prose) {
  margin-left:auto;
  margin-right:auto;
}
html body:not(.home) #content :where(a,button,input,select,textarea,summary):focus-visible {
  outline:3px solid #D8A846;
  outline-offset:3px;
}
html body:not(.home) #content :where(img,video,iframe) {
  max-width:100%;
}
html body:not(.home) #content :where(p,li,blockquote) {
  overflow-wrap:break-word;
}
html body:not(.home) #content :where(a) {
  text-underline-offset:3px;
}
html body:not(.home) #content :where(h2,h3,h4):not(.recording-card-title):not(.recording-title) {
  color:#0A1D47;
  text-wrap:balance;
}
html body:not(.home) #content :where(.wmrn-container-prose,.prose-section,.archive-detail-body,.wmrn-single-content) :where(p,li) {
  font-size:clamp(16px,1.15vw,18px);
  line-height:1.72;
}
html body:not(.home) #content :where(.wmrn-container-prose,.prose-section,.wmrn-index-intro) :where(h2) {
  color:#0A1D47;
  font:700 clamp(1.9rem,3vw,2.65rem)/1.1 "EB Garamond",Georgia,serif;
  letter-spacing:-.015em;
}
html body:not(.home) #content :where(.wmrn-container-prose,.prose-section,.wmrn-index-intro) :where(h3) {
  color:#0A1D47;
  font:700 clamp(1.45rem,2.1vw,1.9rem)/1.16 "EB Garamond",Georgia,serif;
}
html body:not(.home) #content :where(.section-py,.wmrn-exhibits-index,.search-results-wrap,.recording-archive,.wmrnrha-photo-archive) {
  background-color:#F5F1E9;
}
html body:not(.home) #content .section-py {
  padding-top:clamp(38px,5vw,66px);
  padding-bottom:clamp(40px,5.5vw,75px);
}
html body:not(.home) #content .bg-section-grey {
  background:#EAE6DF;
}
html body:not(.home) #content .ornament-divider {
  color:#B88A38;
  background:#F5F1E9;
}

/* One compact, editorial WMRN masthead for historical pages. */
html body:not(.home) #content .page-hero,
html body:not(.home) #content .page-hero-plain {
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  min-height:clamp(250px,23vw,338px);
  padding:clamp(44px,5.5vw,82px) 0 clamp(39px,5vw,69px);
  overflow:hidden;
  color:#FFFDF8;
  background:#061431 !important;
  border-bottom:3px solid #D8A846;
  box-shadow:0 5px 20px rgba(6,20,49,.13);
}
html body:not(.home) #content .page-hero-bg {
  position:absolute;
  z-index:-2;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 44%;
  filter:grayscale(.55) contrast(1.08);
  opacity:.61;
  pointer-events:none;
}
html body:not(.home) #content .page-hero-overlay {
  position:absolute;
  z-index:-1;
  inset:0;
  display:block;
  background:linear-gradient(90deg,#061431 0%,rgba(6,20,49,.98) 24%,rgba(6,20,49,.85) 51%,rgba(6,20,49,.38) 100%) !important;
  opacity:1 !important;
  pointer-events:none;
}
html body:not(.home) #content .page-hero-content,
html body:not(.home) #content .page-hero-plain > .wmrn-container {
  position:relative;
  z-index:1;
  box-sizing:border-box;
  display:block;
  width:min(1280px,calc(100% - 72px));
  max-width:1280px;
  margin:0 auto;
  padding:0 !important;
  text-align:left;
}
html body:not(.home) #content .page-hero :where(.page-hero-eyebrow,.hero-eyebrow),
html body:not(.home) #content .page-hero-plain .hero-eyebrow {
  display:block;
  margin:0 0 12px;
  color:#F8D98F !important;
  font:800 12px/1.3 system-ui,sans-serif !important;
  letter-spacing:.17em;
  text-transform:uppercase;
}
html body:not(.home) #content .page-hero-title,
html body:not(.home) #content .page-hero-plain .page-hero-title {
  max-width:960px;
  margin:0 !important;
  padding:0;
  color:#FFFDF8 !important;
  font:600 clamp(2.85rem,5vw,4.45rem)/1.02 "EB Garamond",Georgia,serif !important;
  letter-spacing:-.032em;
  text-wrap:balance;
  text-shadow:0 2px 12px rgba(0,0,0,.11);
}
html body:not(.home) #content .page-hero-subtitle {
  max-width:800px;
  margin:13px 0 0;
  color:rgba(255,255,255,.91) !important;
  font:400 clamp(17px,1.6vw,21px)/1.5 "EB Garamond",Georgia,serif !important;
}
html body:not(.home) #content .page-hero .corner-flourish {
  opacity:.12 !important;
  pointer-events:none;
}
html body:not(.home) #content .page-hero-plain {
  min-height:190px;
}
html body:not(.home) #content :where(.wmrn-section-kicker,.section-eyebrow,.wmrn-index-intro .wmrn-section-kicker,.recording-kicker,.wmrnrha-kicker) {
  color:#795018;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}

/* Consistent archival paper and framed museum cards. */
html body:not(.home) #content :where(
  .aged-card,
  .archive-title-card,
  .wmrn-exhibit-card,
  .wmrn-directory-card,
  .collection-card,
  .contact-card,
  .search-card,
  .wmrnrha-album-card,
  .wmrnrha-photo-card,
  .wmrn-wishlist-card
) {
  background:#FFFDF8;
  border:1px solid rgba(13,43,99,.17);
  border-radius:5px;
  box-shadow:0 5px 18px rgba(6,20,49,.07);
}
html body:not(.home) #content :where(
  .wmrn-exhibit-card,
  .wmrn-directory-card,
  .collection-card,
  .search-card,
  .wmrnrha-album-card
):hover {
  box-shadow:0 9px 25px rgba(6,20,49,.13);
}
html body:not(.home) #content :where(
  .wmrn-exhibit-grid,
  .wmrn-directory-grid,
  .collection-grid,
  .search-results-grid,
  .wmrnrha-album-grid
) {
  gap:clamp(16px,2vw,26px);
}
html body:not(.home) #content :where(
  .wmrn-exhibit-card,
  .wmrn-directory-card,
  .search-card,
  .wmrnrha-album-card
) :where(h2,h3,strong) {
  color:#0A1D47;
}
html body:not(.home) #content :where(
  .wmrn-exhibit-card,
  .wmrn-directory-card,
  .search-card,
  .wmrnrha-album-card,
  .collection-card
) :where(img) {
  object-fit:cover;
}
html body:not(.home) #content :where(.wmrn-exhibit-card__body,.archive-card-content,.wmrn-directory-card__body) {
  padding:clamp(16px,1.8vw,23px);
}
html body:not(.home) #content :where(.wmrn-exhibit-card__link,.archive-card-link,.collection-card a,.search-card a) {
  color:#0D2B63;
  font-weight:700;
}
html body:not(.home) #content :where(.wmrn-exhibit-card__link,.archive-card-link):hover {
  color:#976824;
}
html body:not(.home) #content :where(
  .btn-primary,.recording-btn-primary,.wmrnrha-button--primary,
  .wmrn-archival-button.primary,.recording-player-toggle
) {
  background:#D8A846;
  color:#061431;
  border-color:#D8A846;
}
html body:not(.home) #content :where(.btn-primary,.recording-btn-primary,.wmrnrha-button--primary):hover {
  background:#F8D98F;
  border-color:#F8D98F;
}
html body:not(.home) #content :where(input[type="text"],input[type="search"],input[type="email"],textarea,select) {
  border-radius:4px;
  border-color:rgba(13,43,99,.28);
}
html body:not(.home) #content :where(input[type="text"],input[type="search"],input[type="email"],textarea,select):focus {
  border-color:#B88A38;
}

/* Browsing and collection discovery: structure remains native WordPress. */
html body:not(.home) #content .wmrn-index-intro {
  max-width:980px;
  margin-bottom:clamp(24px,3vw,42px);
}
html body:not(.home) #content .wmrn-index-intro > p:last-child {
  max-width:850px;
  color:#465775;
  font-size:clamp(16px,1.3vw,18px);
  line-height:1.65;
}
html body:not(.home) #content :where(.wmrn-directory-toolbar,.wmrn-album-tools,.wmrnrha-album-tools,.recording-toolbox,.wmrn-archive-filter-form) {
  border:1px solid rgba(13,43,99,.13);
  background:#FFFDF8;
  border-radius:5px;
}
html body:not(.home) #content :where(.wmrn-filter-status,.wmrn-directory-note,.search-results-summary) {
  color:#465775;
}
html body:not(.home) #content .wmrn-directory-alpha a[aria-current="page"],
html body:not(.home) #content .wmrn-directory-alpha a.is-active {
  color:#061431;
  background:#D8A846;
}

/* Broadcast Archive: preserve native search, player, category and pagination JS. */
html body:not(.home) #content .recording-archive {
  padding-top:clamp(30px,4vw,55px);
  padding-bottom:clamp(45px,5vw,75px);
}
html body:not(.home) #content :where(
  .recording-featured,.recording-snapshot,.recording-archive-note,
  .wmrn-listening-platforms,.recording-toolbox,.recording-room,
  .wmrn-broadcast-contribute
) {
  background:#FFFDF8;
  border:1px solid rgba(13,43,99,.17);
  border-radius:5px;
  box-shadow:0 5px 18px rgba(6,20,49,.07);
}
html body:not(.home) #content .recording-featured h2,
html body:not(.home) #content .wmrn-listening-platforms h2 {
  color:#0A1D47;
  font:700 clamp(1.7rem,2.4vw,2.25rem)/1.14 "EB Garamond",Georgia,serif;
}
html body:not(.home) #content :where(.recording-card,.recording-list article) {
  border-color:rgba(13,43,99,.17);
}
html body:not(.home) #content .recording-featured :where(.recording-kicker) {
  color:#926018;
}
html body:not(.home) #content :where(.wmrn-platform-iheart,.wmrn-platform-buttons a:first-child) {
  background:#D8A846;
  color:#061431;
}
html body:not(.home) #content :where(.recording-player-range,input[type="range"]) {
  accent-color:#B88A38;
}

/* Station history, policy, oral histories, photos and record detail. */
html body:not(.home) #content :where(.wmrnrha-album-hero,.wmrn-accession-hero,.archive-detail-header) {
  background-color:#061431;
}
html body:not(.home) #content :where(.wmrnrha-album-hero h1,.wmrn-accession-hero h1,.archive-detail-header h1) {
  color:#FFFDF8;
  font-family:"EB Garamond",Georgia,serif;
}
html body:not(.home) #content .wmrnrha-photo-archive :where(.wmrnrha-section-heading) {
  color:#0A1D47;
}
html body:not(.home) #content :where(.wmrn-doc-viewer,.wmrn-gallery-viewer,.wmrnrha-viewer) {
  max-width:100%;
}
html body:not(.home) #content :where(.faq-trigger,.wmrn-directory-search,.recording-search-shell) {
  border-color:rgba(13,43,99,.23);
}
html body:not(.home) #content :where(table) {
  border-collapse:collapse;
  width:100%;
}
html body:not(.home) #content :where(th) {
  color:#061431;
  background:#EAE6DF;
}
html body:not(.home) #content :where(td,th) {
  border-color:rgba(13,43,99,.14);
}
html body:not(.home) #content :where(blockquote) {
  border-left:3px solid #B88A38;
  color:#243A55;
}

/* Plugin safety: brand the outside of the Tainacan browser; do not
   override its Vue search controls, behavior, grid mechanics or metadata. */
html body:not(.home) #content :where(.tainacan-search-container,.tainacan-search,.tnc-search) {
  --primary:#0D2B63;
  --primary-foreground:#FFFDF8;
  --gold:#D8A846;
}
html body:not(.home) #content :where(.wmrn-archive-stats,.wmrn-archive-grid,.archive-grid) {
  --wmrn-refresh-navy:#0D2B63;
  --wmrn-refresh-paper:#F5F1E9;
}

/* Navigation and link target sizes on mobile. */
@media(max-width:900px) {
  html body:not(.home) #content .page-hero,
  html body:not(.home) #content .page-hero-plain {
    min-height:250px;
    padding:42px 0 37px;
  }
  html body:not(.home) #content .page-hero-content,
  html body:not(.home) #content .page-hero-plain > .wmrn-container {
    width:calc(100% - 44px);
  }
  html body:not(.home) #content .page-hero-overlay {
    background:linear-gradient(90deg,#061431 0%,rgba(6,20,49,.95) 58%,rgba(6,20,49,.65) 100%) !important;
  }
}
@media(max-width:600px) {
  html body:not(.home) #content .page-hero,
  html body:not(.home) #content .page-hero-plain {
    min-height:210px;
    padding:32px 0;
  }
  html body:not(.home) #content .page-hero-content,
  html body:not(.home) #content .page-hero-plain > .wmrn-container {
    width:calc(100% - 34px);
  }
  html body:not(.home) #content .page-hero-title {
    font-size:clamp(2.55rem,10.2vw,3.45rem) !important;
  }
  html body:not(.home) #content .page-hero-subtitle {
    font-size:17px !important;
  }
  html body:not(.home) #content .page-hero-overlay {
    background:linear-gradient(90deg,#061431 0%,rgba(6,20,49,.96) 72%,rgba(6,20,49,.78) 100%) !important;
  }
  html body:not(.home) #content .section-py {
    padding-top:32px;
    padding-bottom:42px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html body:not(.home) #content * {
    scroll-behavior:auto !important;
  }
}
