/* Live /archive/ layout fidelity fixes for the refreshed archive only. */
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero {
  position:relative !important; isolation:isolate !important; overflow:hidden !important;
  min-height:300px !important; height:auto !important; display:flex !important;
  flex-direction:row !important; align-items:flex-end !important; justify-content:stretch !important;
  padding:clamp(8.25rem,12vw,9.75rem) 0 clamp(2.55rem,5vw,3.85rem) !important;
  background:#0D2B63 !important; color:#fff !important; box-shadow:none !important;
  box-sizing:border-box !important;
}
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero-bg {
  position:absolute !important;z-index:-2 !important;inset:0 !important;
  width:100% !important;height:100% !important; object-fit:cover !important;
  opacity:.42 !important;filter:grayscale(.42) saturate(.62) contrast(.92) !important;
}
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero-overlay {
  display:block !important;position:absolute !important;z-index:-1 !important;
  inset:0 !important;background:linear-gradient(90deg,rgba(6,20,49,.97),rgba(13,43,99,.91) 56%,rgba(6,20,49,.78)) !important;
}
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero-content {
  width:min(1180px,calc(100% - 2rem)) !important;max-width:none !important;
  margin:0 auto !important;padding:0 !important;display:block !important;position:relative !important;
}
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero-title {
  font-size:clamp(2.45rem,5.25vw,4.7rem) !important;
  max-width:930px !important;line-height:1.04 !important;margin:0 !important;
}
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero-subtitle {
  margin:.9rem 0 0 !important;max-width:760px !important;
  font-size:clamp(1.05rem,1.75vw,1.28rem) !important;line-height:1.58 !important;
}
html body.wmrn-exact-archive-layout:not(.home) #content section.section-py {
  background:transparent !important;padding:2rem 0 3rem !important;
}
html body.wmrn-exact-archive-layout:not(.home) #content .wmrn-container-prose {
  width:min(1500px,calc(100vw - 2.5rem)) !important;
  max-width:none !important;margin:0 auto !important;padding:0 !important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page {
  font-family:"EB Garamond",Garamond,serif !important;max-width:100% !important;
}
html body.wmrn-exact-archive-layout:not(.home) #content #wmrn-material-browser,
html body.wmrn-exact-archive-layout:not(.home) #content #wmrn-era-browser {
  font-family:"EB Garamond",Garamond,serif !important;
}
html body.wmrn-exact-archive-layout:not(.home) #content .table-wrapper {
  width:100% !important;max-width:100% !important;overflow:visible !important;
}
html body.wmrn-exact-archive-layout:not(.home) #content table.tainacan-table {
  display:block !important;width:100% !important;max-width:100% !important;min-width:0 !important;
  border-collapse:separate !important;table-layout:auto !important;
}
html body.wmrn-exact-archive-layout:not(.home) #content table.tainacan-table thead {display:none !important;}
html body.wmrn-exact-archive-layout:not(.home) #content table.tainacan-table tbody {
  display:block !important;width:100% !important;
}
html body.wmrn-exact-archive-layout:not(.home) #content table.tainacan-table tbody tr {
  position:relative !important;display:flex !important;flex-direction:column !important;
  width:100% !important;max-width:100% !important;min-width:0 !important;
  height:auto !important;max-height:none !important;
  margin:0 0 16px !important;padding:0 !important;
  background:#FFFDF8 !important;border:1px solid rgba(36,58,85,.16) !important;
  box-shadow:0 6px 18px rgba(16,32,56,.06) !important;
}
html body.wmrn-exact-archive-layout:not(.home) #content table.tainacan-table tbody tr > td {
  display:none !important;position:static !important;flex:0 0 auto !important;
  width:100% !important;max-width:100% !important;min-width:0 !important;
  height:auto !important;min-height:0 !important;max-height:none !important;
  box-sizing:border-box !important;overflow:visible !important;
}
html body.wmrn-exact-archive-layout:not(.home) #content table.tainacan-table tbody tr > td:nth-child(1) {
  display:block !important;position:relative !important;order:-20 !important;
  height:195px !important;padding:0 !important;overflow:hidden !important;
  background:#e8e1d5 !important;
}
html body.wmrn-exact-archive-layout:not(.home) #content table.tainacan-table tbody tr > td:nth-child(1) img.table-thumb {
  display:block !important;width:100% !important;height:100% !important;
  object-fit:contain !important;max-width:100% !important;max-height:100% !important;
}
html body.wmrn-exact-archive-layout:not(.home) #content table.tainacan-table tbody tr > td:nth-child(2) {
  display:block !important;order:-19 !important;
  padding:15px 16px 11px !important;
  color:#0D2B63 !important;white-space:normal !important;
}
html body.wmrn-exact-archive-layout:not(.home) #content table.tainacan-table tbody tr > td:nth-child(2) a {
  display:block !important;max-width:100% !important;color:#0D2B63 !important;
  white-space:normal !important;overflow-wrap:anywhere !important;
}
html body.wmrn-exact-archive-layout:not(.home) #content table.tainacan-table tbody tr > td:nth-child(6) {
  display:flex !important;order:0 !important;flex-direction:column !important;
  padding:8px 13px !important;width:100% !important;min-height:65px !important;
  background:#dce7f1 !important;white-space:normal !important;
}
@media(max-width:700px) {
 html body.wmrn-exact-archive-layout:not(.home) #content .wmrn-container-prose {
   width:calc(100vw - 16px) !important;
 }
 html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero {
  min-height:300px !important;padding:132px 0 41px !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(.wmrn-restored-museum-hero):not(.home) #content .page-hero-title {
   font-size:clamp(28px,8vw,31.2px) !important;
 }
}

html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero-content {
  height:auto !important; min-height:0 !important; max-height:none !important;
  background:transparent !important; border:0 !important;
  box-shadow:none !important; border-radius:0 !important;
}
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero-eyebrow::before {display:none !important;}
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero-content::before,
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero-content::after {display:none !important;}

html body.wmrn-exact-archive-layout:not(.home) #content #tainacan-items-page .table-container {
  padding-left:0 !important;padding-right:0 !important;
  overflow:visible !important;
}
/* Override the refresh's split hero panel only on this archived layout. */
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero .page-hero-content {
  min-height:0 !important;height:auto !important;max-height:none !important;
  padding:0 !important;box-shadow:none !important;background:transparent !important;
  width:min(1180px,calc(100% - 2rem)) !important;
}
html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero .page-hero-overlay {
  width:100% !important;min-width:100% !important;max-width:none !important;
  inset:0 !important;
}
@media (min-width:901px) {
 html body.wmrn-exact-archive-layout:not(.wmrn-restored-museum-hero):not(.home) #content .page-hero {
   min-height:310px !important;padding:85px 0 45px !important;
 }
}
/* Original live Archive's 1 / 2 / 3-column responsive record grid. */
html body.wmrn-exact-archive-layout:not(.home) #content table.tainacan-table tbody {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  gap:26.4px !important;
  align-items:stretch !important;
}
html body.wmrn-exact-archive-layout:not(.home) #content .tainacan-table tbody tr {
  align-self:stretch !important;
  width:100% !important;
  margin:0 !important;
}
@media (min-width:850px) {
  html body.wmrn-exact-archive-layout:not(.home) #content table.tainacan-table tbody {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media (min-width:1280px) {
  html body.wmrn-exact-archive-layout:not(.home) #content table.tainacan-table tbody {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

/* The live archive shows the full collection attribution rather than truncating it. */
html body.wmrn-exact-archive-layout:not(.home) #content .tainacan-table tbody tr > td:nth-child(6) a,
html body.wmrn-exact-archive-layout:not(.home) #content .tainacan-table tbody tr > td:nth-child(6) .metadata-value {
  display:block !important;width:100% !important;max-width:100% !important;
  height:auto !important;max-height:none !important;min-height:0 !important;
  white-space:normal !important;overflow:visible !important;
  text-overflow:clip !important;-webkit-line-clamp:unset !important;overflow-wrap:anywhere !important;
}

/* The universal fixed-header offset now reserves the correct space above
 * this page too. Do not reintroduce the old 54px Archive-only top gap. */
@media (max-width: 900px) {
  html body.wmrn-exact-archive-layout.wmrn-restored-museum-hero #content .page-hero {
    margin-top:0 !important;
  }
}
