/* WMRN Accession Viewer V2.
   Disable the module without touching the existing #3001 Tainacan presentation.
   Exact approved navy palette: #0D2B63 / #0A1D47 / #061431. */
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live {
  --blue:#0D2B63;
  --blue2:#0A1D47;
  --deep:#061431;
  --gold:#D8A846;
  --cream:#fffdf8;
  --line:rgba(13,43,99,.17);
  color:#253750;
}
body.wmrn-accession-v2-ready .archive-detail-header h1{
  font-family:"EB Garamond","Libre Baskerville",Georgia,serif!important;
  font-weight:700!important;
  font-size:clamp(2.15rem,4.2vw,3.35rem)!important;
  letter-spacing:-.018em;
  line-height:1.13!important;
  max-width:1000px!important;
}
body.wmrn-accession-v2-ready .archive-detail-header{
  background:linear-gradient(115deg,#061431,#0A1D47 55%,#0D2B63);
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-jumpnav{
  position:sticky!important;
  top:84px!important;
  display:flex!important;
  align-items:center;
  flex-wrap:nowrap!important;
  overflow-x:auto!important;
  scrollbar-width:thin;
  gap:.2rem!important;
  margin:0 0 1.35rem!important;
  padding:.45rem .55rem!important;
  border-radius:7px!important;
  border:1px solid rgba(13,43,99,.15)!important;
  border-top:3px solid #D8A846!important;
  background:rgba(255,253,248,.98)!important;
  -webkit-overflow-scrolling:touch;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-jumpnav a{
  flex:none;
  white-space:nowrap;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  padding:.6rem .7rem!important;
  font-size:.82rem!important;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-jumpnav a:focus-visible,
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live a:focus-visible,
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live button:focus-visible{
  outline:3px solid #B37B11!important;
  outline-offset:3px;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:.9rem;
  padding:1rem 1.15rem;
  background:#f6f1e8;
  border:1px solid rgba(13,43,99,.14);
  border-left:4px solid #D8A846;
  border-radius:8px;
  margin-bottom:1.4rem;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-toolbar__identity{
  display:flex;align-items:center;flex-wrap:wrap;gap:.5rem .7rem;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-accession{
  color:#061431;font-size:1.05rem;font-weight:800;letter-spacing:.025em;font-variant-numeric:tabular-nums;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-type,
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-status{
  padding:.32rem .6rem;
  border:1px solid rgba(13,43,99,.18);
  border-radius:20px;
  font-size:.78rem;
  font-weight:700;
  color:#0D2B63;
  background:#fff;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-status{
  background:#fff8e8;border-color:#bea469;color:#654814;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-tools{
  display:flex;flex-wrap:wrap;gap:.45rem;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-control{
  appearance:none;
  display:inline-flex;align-items:center;justify-content:center;
  gap:.4rem;min-height:44px;
  padding:.55rem .8rem;
  color:#0D2B63!important;
  background:#fff!important;
  border:1px solid rgba(13,43,99,.24)!important;
  border-radius:6px!important;
  font-family:inherit;font-size:.82rem;font-weight:700;line-height:1.3;
  text-decoration:none!important;
  cursor:pointer;
  box-shadow:none!important;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-control:hover{
  background:#e9eef5!important;border-color:#0D2B63!important;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-control--primary{
  color:#fff!important;background:#0D2B63!important;border-color:#0D2B63!important;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-control--primary:hover{
  background:#0A1D47!important;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-feedback{
  flex-basis:100%;
  margin:0;color:#0A1D47;font-size:.83rem;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-feedback:empty{display:none}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-feature-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.65fr) minmax(280px,.8fr)!important;
  gap:1.15rem!important;
  align-items:start;
  margin-bottom:2rem;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-feature-grid.wmrn-no-media{
  grid-template-columns:minmax(0,1fr)!important;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-media-card,
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-glance-card{
  border-radius:9px!important;
  box-shadow:0 8px 28px rgba(6,20,49,.06)!important;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-media-head,
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-glance-card h2{
  background:linear-gradient(120deg,#061431,#0A1D47)!important;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-media-body{
  background:#f7f9fb;
  padding:1.1rem!important;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-native-attachment-image img,
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .tainacan-media-component img{
  object-fit:contain!important;
  width:auto;max-width:100%;max-height:min(68vh,740px)!important;
  margin-inline:auto;
  background:transparent!important;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-native-gallery-arrow{
  min-height:44px!important;min-width:44px;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-glance-card{
  top:157px!important;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-glance-row dt{
  font-size:.75rem!important;letter-spacing:.075em!important;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-glance-row dd{
  color:#233958!important;font-size:.96rem;overflow-wrap:anywhere;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-panel{
  border-radius:9px!important;
  padding:1.5rem 1.65rem!important;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-panel p{
  line-height:1.8!important;max-width:83ch;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-section-title{
  font-size:clamp(1.55rem,2.6vw,2.2rem)!important;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-meta-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-meta-item:nth-child(3n){
  border-right:1px solid var(--line)!important;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-meta-item:nth-child(2n){
  border-right:0!important;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-meta-item.wmrn-v2-longmeta{
  grid-column:1/-1;border-right:0!important;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-meta-value{
  font-weight:500!important;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-related-card{
  min-height:165px!important;
  border-radius:9px!important;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-footer{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.65rem;
  margin:1.25rem 0 0;padding:1rem 0;
  border-top:1px solid rgba(13,43,99,.2);
  color:#47586c;font-size:.84rem;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-footer a{color:#0D2B63}
@media(max-width:930px){
  body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-feature-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-glance-card{position:static!important}
  body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-jumpnav{top:68px!important}
}
@media(max-width:620px){
  body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-toolbar{padding:.9rem}
  body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-tools{width:100%}
  body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-control{flex:1 1 auto}
  body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-panel{padding:1.05rem!important}
  body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-meta-grid{grid-template-columns:1fr!important}
  body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-meta-item{border-right:0!important}
  body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-section{scroll-margin-top:135px}
}
@media(prefers-reduced-motion:reduce){
  body.wmrn-accession-v2-ready #wmrn-accession-redesign-live *{transition:none!important;scroll-behavior:auto!important}
}
@media print{
  body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-jumpnav,
  body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-tools,
  body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-feedback{display:none!important}
  body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-glance-card{position:static!important}
  body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-meta-panel{break-inside:avoid}
}

/*
 * V2 accession contrast fixes, Oct 31 2026.
 * The site-wide editorial rules make h2/h3 headings dark navy !important.
 * On dark card mastheads, those inherited overrides produce dark-on-dark.
 * Keep dark headings everywhere else (cream paper panels, metadata, etc.).
 */
html body.single-tnc_col_2719_item.wmrn-accession-v2-ready
  #wmrn-accession-redesign-live .wmrn-media-card .wmrn-media-head h2,
html body.single-tnc_col_2719_item.wmrn-accession-v2-ready
  #wmrn-accession-redesign-live .wmrn-glance-card > h2,
html body.single-tnc_col_2719_item.wmrn-accession-v2-ready
  #wmrn-accession-redesign-live .wmrn-rights-callout h3 {
  color:#FFFDF8 !important;
  opacity:1 !important;
}

/* The small uppercase label should stand out against the navy media masthead. */
html body.single-tnc_col_2719_item.wmrn-accession-v2-ready
  #wmrn-accession-redesign-live .wmrn-media-head .wmrn-kicker {
  color:#F8D98F !important;
}

/* Rights and preservation copy: light-on-navy; not the generic paper-card ink. */
html body.single-tnc_col_2719_item.wmrn-accession-v2-ready
  #wmrn-accession-redesign-live .wmrn-rights-callout :is(p,li,span,small,em,strong) {
  color:#F2F5FC !important;
}
html body.single-tnc_col_2719_item.wmrn-accession-v2-ready
  #wmrn-accession-redesign-live .wmrn-rights-callout a:not(.wmrn-button) {
  color:#FFF0B5 !important;
  text-decoration:underline !important;
  text-underline-offset:.15em;
}
/* The gold Contact button stays navy-on-gold. */
html body.single-tnc_col_2719_item.wmrn-accession-v2-ready
  #wmrn-accession-redesign-live .wmrn-rights-callout a.wmrn-button {
  color:#061431 !important;
  background:#F1D998 !important;
}

/* Link and keyboard-focus contrast within the V2 viewer. */
html body.single-tnc_col_2719_item.wmrn-accession-v2-ready
  #wmrn-accession-redesign-live .wmrn-v2-toolbar button.wmrn-v2-control:not(.wmrn-v2-control--primary) {
  background:#FFFDF8 !important;
  color:#0D2B63 !important;
}
html body.single-tnc_col_2719_item.wmrn-accession-v2-ready
  #wmrn-accession-redesign-live .wmrn-v2-control--primary {
  color:#FFFDF8 !important;
}
html body.single-tnc_col_2719_item.wmrn-accession-v2-ready
  #wmrn-accession-redesign-live .wmrn-rights-callout a:focus-visible {
  outline:3px solid #F8D98F !important;
  outline-offset:3px;
}


/* Clean presentation of a single archival image originally embedded in a
 * malformed legacy WordPress gallery. The Tainacan media source is unchanged. */
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-clean-media-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  max-width: 100%;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-clean-media-link {
  display: block;
  width: 100%;
  max-width: 100%;
  line-height: 0;
  text-align: center;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-clean-media-link:focus-visible {
  outline: 3px solid #c99b41;
  outline-offset: 3px;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-clean-media-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(80vh, 950px);
  margin-inline: auto;
  object-fit: contain;
}
body.wmrn-accession-v2-ready #wmrn-accession-redesign-live .wmrn-v2-clean-media-figure figcaption {
  font-size: .89rem;
  line-height: 1.5;
  color: #536379;
  text-align: center;
  overflow-wrap: anywhere;
}
