/* Archive fidelity: apply observed production /archive/ styling, not museum approximations.
 * Scoped to the unpublished archive layout. Global refreshed header/footer untouched.
 */
html body.wmrn-exact-archive-layout:not(.home) #content {
  background: transparent !important;
  background-image: none !important;
}
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero {
  background-color:#0D2B63 !important;
  background-image:
    radial-gradient(circle at 88% 18%,rgba(114,149,183,.2),transparent 30%),
    radial-gradient(circle at 12% 0%,rgba(248,217,143,.13),transparent 32%),
    linear-gradient(180deg,#0D2B63,#0A1D47 62%,#061431) !important;
  grid-template-columns:none !important;
}
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero-content {
  padding:0!important;
  background:transparent!important;
  min-height:0!important;
  height:auto!important;
  margin:0 auto!important;
  width:min(1180px,calc(100% - 2rem))!important;
}
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero-eyebrow {
  font-family:"Libre Baskerville","EB Garamond",Georgia,serif!important;
  font-size:11.52px!important;
  line-height:17.28px!important;
  font-weight:700!important;
  letter-spacing:.16em!important;
  color:#F1D998!important;
  padding:0 0 4.48px!important;
  margin:0 0 11.2px!important;
  text-indent:0!important;
}
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero-eyebrow::before,
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero-eyebrow::after {
  content:none!important;display:none!important;
}
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero-title {
  font-family:"EB Garamond",Garamond,Georgia,serif!important;
  font-size:clamp(31.2px,3.2vw,46.08px)!important;
  line-height:1.08!important;
  font-weight:700!important;
  letter-spacing:-.04em!important;
  color:#fff!important;
  max-width:930px!important;
}
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero-subtitle {
  font-family:"EB Garamond",Georgia,serif!important;
  font-size:clamp(16.8px,1.4222vw,20.48px)!important;
  line-height:1.58!important;
  color:rgba(255,255,255,.86)!important;
  margin:14.4px 0 0!important;
  max-width:760px!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content .section-py {
  background:linear-gradient(rgba(255,253,248,.96),rgba(246,241,232,.98))!important;
  padding:32px 0 48px!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content .wmrn-container-prose {
  width:min(1500px,calc(100vw - 40px))!important;
  max-width:1720px!important;
  margin:0 auto!important;
  padding:0!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page {
  width:100%!important;
  margin:0!important;
  padding:0!important;
  min-height:540px!important;
  background:transparent!important;
  color:#243A55!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page #wmrn-material-browser,
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page #wmrn-era-browser {
  color:#243A55!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control {
  background:linear-gradient(rgba(231,238,244,.82),rgba(255,253,248,.98))!important;
  color:#243A55!important;
  padding:16px 18.4px 17.6px!important;
  margin:0 0 21.6px!important;
  border:1px solid rgba(36,58,85,.16)!important;
  border-top:4px solid #D8A846!important;
  border-radius:8px!important;
  gap:11.2px 12.8px!important;
  box-shadow:0 8px 22px rgba(36,58,85,.07)!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control .search-control-item--search {
  padding:0!important;margin:0!important;order:-20!important;min-width:0!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control .search-area {
  display:flex!important;width:100%!important;max-width:none!important;
  height:49px!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control .search-area input {
  width:100%!important;max-width:none!important;box-sizing:border-box!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control > button .text.is-hidden-tablet {
  display:inline!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control > button {
  background:#FFD67F!important;
  color:#0D2B63!important;
  padding:0 12.8px!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control .search-control-item,
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control .advanced-search-toggle {
  margin:0!important;
  padding:0!important;
  font-family:"EB Garamond",Garamond,serif!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control .search-control-item .button,
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control .search-control-item button {
  min-height:42px!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .metadata-alert {
  flex-wrap:wrap!important;gap:8px!important;color:#243A55!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .table-container,
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .table-wrapper {
  color:#243A55!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page table.tainacan-table tbody tr {
  margin:0!important;
  border:1px solid rgba(36,58,85,.16)!important;
  background:#FFFDF8!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page table.tainacan-table tbody tr > td:nth-child(1) {
  aspect-ratio:1.905!important;
  height:auto!important;min-height:0!important;
  position:relative!important;
  background:linear-gradient(rgba(255,250,240,.62),rgba(228,222,210,.9)),#E8E1D5!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page table.tainacan-table tbody tr > td:nth-child(1) > a {
  display:block!important;position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page table.tainacan-table tbody tr > td:nth-child(1) img.table-thumb {
  width:100%!important;height:100%!important;object-fit:contain!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page table.tainacan-table tbody tr > td:nth-child(2) {
  color:#243A55!important;background:#FFFDF8!important;
  font-family:Arial,sans-serif!important;font-size:13.12px!important;
  line-height:18.368px!important;
  padding:15.2px 16px 11.2px!important;
  min-height:0!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page table.tainacan-table tbody tr > td:nth-child(2) a {
  font-family:Arial,sans-serif!important;font-size:13.12px!important;
  line-height:18.368px!important;color:#243A55!important;
  white-space:normal!important;overflow:visible!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page table.tainacan-table tbody tr > td:nth-child(6) {
  min-height:68.2px!important;height:auto!important;
  color:#566475!important;font-family:Arial,sans-serif!important;
  font-size:13.12px!important;line-height:18.368px!important;
  padding:8px 13px!important;
  overflow:visible!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page table.tainacan-table tbody tr > td:nth-child(6) * {
  line-height:18.368px!important;
  white-space:normal!important;
  text-overflow:clip!important;
  overflow:visible!important;
}
@media (min-width:1300px) {
  html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero {
    min-height:420px!important;height:420px!important;
    padding:156px 0 61.6px!important;
    margin-top:-86px!important;
  }
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control {
    display:grid!important;
    grid-template-columns:114px minmax(0,1.215fr) minmax(0,1fr) 238px 125px 129px!important;
    grid-template-rows:49px 42px!important;
    grid-template-areas:"search search search search search search" "filters metadata sorting views exposers advanced"!important;
    align-items:center!important;
  }
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control > button {grid-area:filters!important;}
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control .search-control-item--search {grid-area:search!important;}
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control .search-control-item--displayed-metadata-dropdown {grid-area:metadata!important;}
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control .search-control-item--sorting-area {grid-area:sorting!important;}
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control .search-control-item--view-modes-dropdown {grid-area:views!important;}
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control .search-control-item--exposers-button {grid-area:exposers!important;}
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control > .advanced-search-toggle {grid-area:advanced!important;}
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page table.tainacan-table tbody tr > td:nth-child(2) {
    min-height:92px!important;
  }
}
@media (min-width:850px) and (max-width:1299px) {
  html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero {
    padding:clamp(132px,12vw,156px) 0 clamp(41px,4vw,62px)!important;
    margin-top:-86px!important;
  }
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control {
    display:flex!important;flex-wrap:wrap!important;align-items:center!important;
  }
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control .search-control-item--search {
    flex:1 0 100%!important;
  }
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page table.tainacan-table tbody tr > td:nth-child(2) {
    min-height:92px!important;
  }
}
@media (max-width:849px) {
  html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero {
    padding:132px 0 40.8px!important;
    min-height:300px!important;
  }
  html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero-content {
    width:calc(100% - 20px)!important;
  }
  html body.wmrn-exact-archive-layout:not(.home) #content .section-py {padding-top:16px!important;}
  html body.wmrn-exact-archive-layout:not(.home) #content .wmrn-container-prose {
    width:calc(100vw - 16px)!important;max-width:none!important;
  }
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control {
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    gap:13px!important;
    padding:16.8px 18.4px!important;
  }
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control > button,
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control > .search-control-item,
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control > .advanced-search-toggle {
    width:100%!important;max-width:100%!important;
    flex:0 0 auto!important;
  }
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control .search-control-item--search {
    order:-20!important;height:460px!important;
    flex:0 0 460px!important;
  }
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control > button {order:0!important;}
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control .search-control-item--displayed-metadata-dropdown {order:1!important;}
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control .search-control-item--view-modes-dropdown {order:2!important;}
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control .search-control-item--exposers-button {order:3!important;}
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control .search-control-item--sorting-area {order:4!important;}
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control > .advanced-search-toggle {order:5!important;}
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .search-control .search-control-item--search .search-area {
    width:100%!important;max-width:100%!important;
  }
  html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page table.tainacan-table tbody tr > td:nth-child(2) {
    min-height:44px!important;
  }
}

/* Remove archive-only museum chrome from Tainacan root and restore actual text. */
html body.wmrn-exact-archive-layout:not(.home) #content .wmrn-tainacan-browser {
  border-left:0!important; box-shadow:none!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page {
  left:0!important;right:auto!important;transform:none!important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page table.tainacan-table tbody tr > td:nth-child(6) * {
  font-family:Arial,sans-serif!important;
  font-size:13.12px!important;
  line-height:18.368px!important;
}

/* Final measured production geometry: override museum split-hero and mobile insets. */
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero .page-hero-content {
 width:min(1180px,calc(100% - 20px))!important;
 max-width:none!important;margin:0 auto!important;
}
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero .page-hero-title {
 font-size:clamp(31.2px,3.2vw,46.08px)!important;
 line-height:1.08!important;
 font-family:"EB Garamond",Garamond,Georgia,serif!important;font-weight:700!important;
}
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero .page-hero-subtitle {
 font-size:clamp(16.8px,1.4222vw,20.48px)!important;
 line-height:1.58!important;
 font-family:"EB Garamond",Georgia,serif!important;
}
@media(max-width:849px){
 html body.wmrn-exact-archive-layout:not(.home) #content section.section-py {
   padding-top:16px!important;
 }
}

/* Live hero has no extra museum border. */
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero {
  border:0!important;border-bottom:0!important;box-shadow:none!important;
}

/* Align the original collection-attribution band's height to live records. */
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page table.tainacan-table tbody tr > td:nth-child(6)::after {
 content:""!important;display:block!important;
 height:15.5px!important;min-height:15.5px!important;
 flex:0 0 15.5px!important;
 width:100%!important;
}


/* WMRN accession-card font sizes matched to live /archive/ computed styles */
/* Live metrics measured at 1600px, 1024px and 390px. Card content only. */
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page table.tainacan-table tbody tr > td:nth-child(2) > a {
  font-family: "EB Garamond", Garamond, Georgia, serif !important;
  font-size: 18.88px !important;
  line-height: 23.4112px !important;
  font-weight: 700 !important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page table.tainacan-table tbody tr > td:nth-child(2) > a .metadata-value {
  font-family: "EB Garamond", Garamond, Georgia, serif !important;
  font-size: 16.52px !important;
  line-height: 18.585px !important;
  font-weight: 700 !important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page table.tainacan-table tbody tr > td:nth-child(n+3):not(:nth-child(6)) .metadata-value {
  font-family: Arial, sans-serif !important;
  font-size: 13.44px !important;
  line-height: 18.816px !important;
  font-weight: 500 !important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page table.tainacan-table tbody tr > td:nth-child(n+3) .sr-only {
  font-family: Arial, sans-serif !important;
  font-size: 10.72px !important;
  line-height: 15.008px !important;
  font-weight: 800 !important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page table.tainacan-table tbody tr > td:nth-child(4) .sr-only {
  font-size: 10px !important;
  line-height: 14px !important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page table.tainacan-table tbody tr > td:nth-child(6) .metadata-value {
  font-family: Arial, sans-serif !important;
  font-size: 13.12px !important;
  line-height: 18.368px !important;
  font-weight: 500 !important;
}
