/* Archoseum · Centralized Museum Navigation v32
   Card map and Entire Museum Directory share this one stylesheet. */

:root{
  --mv2-bg:#0a1519;--mv2-head:#101b20;--mv2-grid:#444b4c;--mv2-gridline:rgba(255,255,255,.035);
  --mv2-card:#eee8da;--mv2-side:#173038;--mv2-gold:#c99a43;--mv2-gold2:#efbd50;
  --mv2-text:#eee8dc;--mv2-muted:#8e9d9d;--mv2-ink:#292923;--mv2-line:#30454b;
}
/* Museum Map tab: physically attached to the sticky site header */
.site-header{
  overflow:visible!important;
}

#museum-map-v2-tab{
  position:absolute;
  left:50%;
  top:100%;
  transform:translateX(-50%);
  z-index:2147483000;

  width:330px;
  height:36px;
  padding:0 26px 2px;

  border:0;
  border-radius:0 0 9px 9px;
  background:inherit;
  color:#c8ad77;
  cursor:pointer;
  box-shadow:none;

  display:flex;
  align-items:center;
  justify-content:center;
}

/* The tab shares the header's bottom rule, then turns downward around the tab */
#museum-map-v2-tab::before{
  content:"";
  position:absolute;
  inset:0;
  border-left:1px solid rgba(184,139,60,.42);
  border-right:1px solid rgba(184,139,60,.42);
  border-bottom:1px solid rgba(184,139,60,.42);
  border-radius:0 0 9px 9px;
  pointer-events:none;
}

#museum-map-v2-tab .mv2-tabcopy{
  writing-mode:horizontal-tb;
  transform:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  white-space:nowrap;

  font:700 10px/1 Inter,Arial,sans-serif;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#c8ad77;
  transition:color .18s ease;
}

#museum-map-v2-tab .mv2-tabcopy::after{
  content:"";
  width:5px;
  height:5px;
  margin-left:2px;
  border-right:1px solid currentColor;
  border-bottom:1px solid currentColor;
  transform:rotate(45deg) translateY(-1px);
  opacity:.45;
}

#museum-map-v2-tab small{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:8px;
  font-weight:700;
  color:#aaa08b;
  letter-spacing:.15em;
  transition:color .18s ease;
}

#museum-map-v2-tab small::after{
  content:"•";
  color:#8d8068;
  font-size:6px;
  letter-spacing:0;
}

/* Rollover brightens only the lettering */
#museum-map-v2-tab:hover,
#museum-map-v2-tab:focus-visible{
  background:inherit;
  outline:none;
}

#museum-map-v2-tab:hover .mv2-tabcopy,
#museum-map-v2-tab:focus-visible .mv2-tabcopy{
  color:#efc66c;
}

#museum-map-v2-tab:hover small,
#museum-map-v2-tab:focus-visible small{
  color:#bda56f;
}

@media(max-width:700px){
  #museum-map-v2-tab{
    width:260px;
    height:31px;
    padding:0 18px 2px;
  }
  #museum-map-v2-tab .mv2-tabcopy{font-size:8px;gap:7px}
  #museum-map-v2-tab small{font-size:7px;gap:7px}
}
#museum-map-v2{
  position:fixed;inset:0;z-index:2147483001;display:none;flex-direction:column;
  background:#071115f5;color:var(--mv2-text);font-family:Inter,Arial,sans-serif;
}
#museum-map-v2.open{display:flex}
.mv2-head{flex:0 0 auto;background:#101b20;border:1px solid #7a6238;border-bottom-color:#314348}
.mv2-top{display:flex;align-items:center;gap:14px;min-height:74px;padding:10px 20px;border-bottom:1px solid #2a3c41}
.mv2-brand{min-width:310px}
.mv2-brand small{display:block;color:#c59440;font:800 8px/1 Inter,Arial,sans-serif;letter-spacing:.14em;margin-bottom:7px}
.mv2-brand strong{font:600 28px/1 "Cormorant Garamond",Georgia,serif;color:#eee8db}
.mv2-tools{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex:1}
.mv2-search{flex:1;max-width:365px;min-width:160px;height:40px;padding:0 12px;border:1px solid #705932;background:#071216;color:#e7e1d6;font-size:10px}
.mv2-btn{height:40px;padding:0 12px;border:1px solid #89682f;background:#111e22;color:#e1d1ab;font:800 9px/1 Inter,Arial,sans-serif;letter-spacing:.055em;white-space:nowrap;cursor:pointer}
.mv2-btn:hover{background:#172a30;color:#f2c96c}
.mv2-btn[data-entire]{background:#c79a3b;color:#0d1b20;border-color:#d6ad55;box-shadow:0 0 0 1px rgba(214,173,85,.18) inset}
.mv2-btn[data-entire]:hover{background:#d7ad50;color:#071216;border-color:#e4c06b}
.mv2-close{font-size:20px;padding-inline:14px}
.mv2-loc{padding:11px 20px 12px;background:#111d21}
.mv2-loc .label{color:#d2a448;font:800 8px/1 Inter,Arial,sans-serif;letter-spacing:.14em;margin-right:14px}
.mv2-loc strong{font:600 18px/1 "Cormorant Garamond",Georgia,serif;color:#e4bd64}
.mv2-crumb{margin:9px 0 0 76px;color:#829192;font-size:17px;line-height:1.5}
.mv2-body{
  flex:1;overflow:auto;padding:30px max(26px,calc((100vw - 1360px)/2)) 70px;
  background-color:var(--mv2-grid);
  background-image:linear-gradient(var(--mv2-gridline) 1px,transparent 1px),linear-gradient(90deg,var(--mv2-gridline) 1px,transparent 1px);
  background-size:64px 64px;
}
.mv2-stage{zoom:var(--mv2-zoom,1)}
.mv2-root{display:flex;justify-content:center;margin:0 0 32px}
.mv2-root .mv2-wrap{width:min(330px,100%)}

/* Museum Entrance is intentionally blue as the root of the map hierarchy. */
.mv2-root .mv2-card{
  border-color:#79a9bc !important;
  box-shadow:0 0 0 1px rgba(112,177,202,.34),0 0 18px rgba(71,145,177,.32),0 5px 15px rgba(0,0,0,.38) !important;
}
.mv2-root .mv2-card .mv2-copy{
  background:linear-gradient(135deg,#244d60 0%,#173847 100%) !important;
}
.mv2-root .mv2-card .mv2-copy small{
  color:#9eb7c0 !important;
}
.mv2-root .mv2-card .mv2-copy strong{
  color:#f0eadf !important;
}
.mv2-root .mv2-card .mv2-side{
  background:#12313e !important;
  color:#e0b24d !important;
  border-right:1px solid rgba(129,190,213,.42);
}

.mv2-section-title{font:500 27px/1.08 "Cormorant Garamond",Georgia,serif;margin:0 0 18px;color:#f0e7d8}
.mv2-kicker{color:#c99a43;font:800 8px/1 Inter,Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;margin-bottom:8px}
.mv2-row{display:grid;grid-template-columns:repeat(5,minmax(185px,1fr));gap:14px;margin-bottom:24px}
.mv2-wrap{display:flex;flex-direction:column;min-width:0}
.mv2-card{display:flex;height:138px;min-height:138px;background:var(--mv2-card);border:2px solid #ddd8cd;color:var(--mv2-ink);text-decoration:none;box-shadow:0 2px 0 rgba(0,0,0,.35);transition:.15s ease}
.mv2-card:hover{border-color:#c59a49;transform:translateY(-1px);box-shadow:0 5px 15px rgba(0,0,0,.35)}
.mv2-side{width:58px;flex:0 0 58px;background:var(--mv2-side);color:#d9a743;display:flex;align-items:center;justify-content:center;font:800 8px/1 Inter,Arial,sans-serif;letter-spacing:.07em}
.mv2-copy{padding:15px 13px 36px;flex:1;min-width:0;position:relative}
.mv2-copy small{display:block;color:#82775f;font:800 7px/1 Inter,Arial,sans-serif;letter-spacing:.09em;margin-bottom:9px}
.mv2-copy strong{display:block;color:#2f302c;font:600 15px/1.2 Inter,Arial,sans-serif;letter-spacing:-.01em}

/* =========================================================
   MUSEUM MAP · STANDARD EXHIBIT CARD HIERARCHY
   Each exhibit row restarts automatically at EXHIBIT 01.
   ========================================================= */
.mv2-row{counter-reset:mv2-article}
.mv2-exhibit-card{counter-increment:mv2-article}
.mv2-exhibit-card .mv2-copy small{
  color:transparent;
  font-size:0;
  line-height:1;
  letter-spacing:0;
  margin-bottom:11px;
}
.mv2-exhibit-card .mv2-copy small::before{
  content:"EXHIBIT " counter(mv2-article, decimal-leading-zero);
  color:#8f8062;
  font:800 8px/1 Inter,Arial,sans-serif;
  letter-spacing:.12em;
}
/* Keep every card in a grid row the same height, even when a title wraps. */
.mv2-row > .mv2-wrap > .mv2-card{flex:0 0 auto}
/* Location line: secondary information, not part of the headline. */
.mv2-card-location{
  display:block;
  margin-top:7px;
  color:#6f6a5d;
  font:500 10px/1.3 Inter,Arial,sans-serif;
  letter-spacing:.005em;
}
.mv2-card.current-exact .mv2-card-location{color:#39342a}
.mv2-exhibit-card .mv2-copy strong{
  color:#2f302c;
  font:600 15px/1.2 Inter,Arial,sans-serif;
  letter-spacing:-.01em;
}
.mv2-here{position:absolute;left:13px;bottom:12px;display:inline-block;margin:0;padding:5px 8px;background:#173038;color:#f1c55e;font:900 7px/1 Inter,Arial,sans-serif;letter-spacing:.08em}
.mv2-sub{height:34px;border:1px solid #896a34;border-top:0;background:#142429;color:#cfa344;font:800 8px/1 Inter,Arial,sans-serif;letter-spacing:.08em;cursor:pointer}
.mv2-sub:hover{background:#1a3036;color:#f0c86d}
.mv2-card.current-parent{
  border-color:#efbd4f;box-shadow:0 0 0 2px rgba(174,128,42,.95),0 0 18px rgba(235,177,61,.63),0 0 34px rgba(235,177,61,.24)
}
.mv2-card.current-parent .mv2-copy{background:linear-gradient(110deg,rgba(239,189,79,.28),rgba(239,189,79,.08) 62%,transparent)}
.mv2-card.current-exact{
  border-color:#f0bd45;box-shadow:0 0 0 2px rgba(214,157,42,.95),0 0 18px rgba(239,181,58,.66),0 0 34px rgba(239,181,58,.24)
}
.mv2-card.current-exact .mv2-copy{background:linear-gradient(135deg,#f0c65c 0%,#e3ad39 100%)}
.mv2-card.current-exact .mv2-copy small,.mv2-card.current-exact .mv2-copy strong{color:#252720}
.mv2-card.current-exact .mv2-side{box-shadow:inset -2px 0 0 #efbd4f}
.mv2-tabs{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin:2px 0 32px}
.mv2-tabbtn{border:0;border-bottom:2px solid transparent;background:none;color:#d3aa58;padding:8px 4px 9px;font:800 10px/1 Inter,Arial,sans-serif;letter-spacing:.035em;cursor:pointer}
.mv2-tabbtn.selected{border-color:#ebb94e;background:rgba(153,113,39,.22);padding-inline:10px}
.mv2-headrow{display:flex;justify-content:space-between;align-items:end;gap:20px}
.mv2-open{border:1px solid #886a35;color:#d7aa56;text-decoration:none;padding:10px 13px;font:800 8px/1 Inter,Arial,sans-serif;letter-spacing:.08em}
.mv2-nested{margin-top:7px;padding:8px;border:1px solid #806438;background:#0d1b20;display:grid;grid-template-columns:1fr;gap:6px;box-shadow:0 6px 18px rgba(0,0,0,.38)}
.mv2-nested[hidden]{display:none}
.mv2-child{--accent:#bd9144;position:relative;display:block;padding:10px 11px 10px 29px;border:1px solid #2b464d;border-left:4px solid var(--accent);background:#112329;color:#b2c0be;text-decoration:none;font-size:10px;line-height:1.25}
.mv2-child::before{content:"";position:absolute;left:10px;top:50%;width:8px;height:8px;border-radius:50%;transform:translateY(-50%);background:var(--accent);box-shadow:0 0 7px var(--accent)}
.mv2-child.light{--accent:#d7aa42}.mv2-child.sound{--accent:#5aaeb0}.mv2-child.precision{--accent:#7396c4}.mv2-child.solar{--accent:#dc8737}.mv2-child.lunar{--accent:#9179c0}
.mv2-child.current{color:#fff0bd;background:#182d32;border-color:var(--accent);box-shadow:0 0 10px color-mix(in srgb,var(--accent) 48%,transparent)}
.mv2-dir-title{display:flex;align-items:end;justify-content:space-between;margin-bottom:18px}
.mv2-dir-title h2{font:500 32px/1 "Cormorant Garamond",Georgia,serif;margin:0}
.mv2-dir-title p{margin:6px 0 0;color:#879798;font-size:10px}
.mv2-dir-section{border:1px solid #293d42;border-radius:8px;background:#0b191d;margin-bottom:14px;overflow:hidden}
.mv2-dir-section.current{border-color:#a98139;box-shadow:inset 3px 0 0 #d1a043,0 0 16px rgba(201,155,72,.12)}
.mv2-dir-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0;border-bottom:1px solid #283c41;background:#0d1b1f}
.mv2-dir-section.current .mv2-dir-section-head{background:#14262a}
.mv2-dir-section h3{margin:0;padding:14px 16px;color:#ded7c8;font-size:14px;flex:1}
.mv2-dir-section.current h3{color:#efc66d}
.mv2-dir-toggle{width:44px;align-self:stretch;border:0;border-left:1px solid #283c41;background:#101f24;color:#d2a348;font:800 18px/1 Inter,Arial,sans-serif;cursor:pointer}
.mv2-dir-toggle:hover{background:#1a3036;color:#f1c96d}
.mv2-dir-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 22px;padding:10px 16px 14px}
.mv2-dir-grid[hidden]{display:none}
.mv2-dir-controls{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.mv2-dir-current-badge{display:inline-block;margin-left:10px;padding:4px 7px;background:#173038;color:#f3c968;font:900 7px/1 Inter,Arial,sans-serif;letter-spacing:.09em;vertical-align:middle}
.mv2-dir-grid a{color:#92a3a3;text-decoration:none;padding:7px 9px;border-radius:5px;font-size:11px}
.mv2-dir-grid a:hover,.mv2-dir-grid a.current{color:#f0c76a;background:rgba(201,155,72,.1)}
.mv2-dir-sub{padding-left:28px!important;font-size:10px!important}
.mv2-empty{border:1px solid #2c4248;background:#102126;color:#93a4a4;padding:18px;font-size:11px}
.mv2-quick{margin-top:40px;border-top:1px solid #977638;background:#111d21;padding:17px;text-align:center}
.mv2-stage.mv2-root-collapsed .mv2-quick{margin-top:clamp(120px,22vh,240px)}
.mv2-quick span{display:block;color:#d3a746;font:800 8px/1 Inter,Arial,sans-serif;letter-spacing:.14em;margin-bottom:11px}
.mv2-quick a{color:#aaa;text-decoration:none;margin:0 14px;font-size:9px}

@media(max-width:1180px){
  .mv2-row{grid-template-columns:repeat(3,minmax(180px,1fr))}
  .mv2-brand{min-width:240px}.mv2-tools{flex-wrap:wrap}.mv2-search{order:2;max-width:none;min-width:100%}
}
@media(max-width:760px){
  .mv2-row{grid-template-columns:repeat(2,minmax(160px,1fr))}
  .mv2-brand{display:none}.mv2-body{padding:24px 16px 50px}.mv2-dir-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
  .mv2-row{grid-template-columns:1fr}.mv2-tools{gap:4px}.mv2-btn{padding-inline:8px}
  .mv2-loc{padding-left:12px}.mv2-crumb{margin-left:0}
}

/* Anchor landing standard: exhibit label/title/introduction remain visible below header. */
[id]{scroll-margin-top:138px}

/* Hide the old Mounds jump scrollbar without removing the jump rail. */
.m-nav .m-shell{scrollbar-width:none!important;-ms-overflow-style:none!important}
.m-nav .m-shell::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}

/* Archive header readability fix on archaeology pages. */
html[data-theme="archive"] .site-header{
  background:rgba(18,18,17,.97)!important;border-bottom-color:#4e473b!important;
}
html[data-theme="archive"] .site-header .brand-copy strong,
html[data-theme="archive"] .site-header .museum-brand .brand-copy strong{color:#eee7db!important}
html[data-theme="archive"] .site-header .brand-copy small,
html[data-theme="archive"] .site-header .museum-brand .brand-copy small{color:#d0a044!important}
html[data-theme="archive"] .site-header .primary-nav a,
html[data-theme="archive"] .site-header .museum-nav a{color:#d8d0c3!important}
html[data-theme="archive"] .site-header .primary-nav a:hover,
html[data-theme="archive"] .site-header .museum-nav a:hover{color:#f0c96c!important}


/* Shared Museum Map refinements. Keep map/card styling here, not in individual HTML pages. */
.mv2-room-subcards{grid-column:1 / -1;display:grid;grid-template-columns:repeat(5,minmax(185px,1fr));gap:14px;margin:0 0 24px}.mv2-room-subcards[hidden]{display:none!important}.mv2-room-subcards .mv2-wrap{min-width:0}.mv2-room-subcards .mv2-card{height:138px;min-height:138px}.mv2-room-subcards .mv2-copy small{color:#82775f;font:800 7px/1 Inter,Arial,sans-serif;letter-spacing:.09em;margin-bottom:9px}.mv2-room-subcards .mv2-copy strong{color:#2f302c;font:600 15px/1.2 Inter,Arial,sans-serif}.mv2-room-subcards .mv2-card.current-exact .mv2-copy small,.mv2-room-subcards .mv2-card.current-exact .mv2-copy strong{color:#29251d}
@media(max-width:1280px){.mv2-room-subcards{grid-template-columns:repeat(3,minmax(180px,1fr))}}@media(max-width:900px){.mv2-room-subcards{grid-template-columns:repeat(2,minmax(160px,1fr))}}@media(max-width:620px){.mv2-room-subcards{grid-template-columns:1fr}}
#museum-map-v2 .mv2-section-title,#museum-map-v2 .mv2-dir-title h2{color:#f2eadc!important;text-shadow:0 1px 1px rgba(0,0,0,.28)}#museum-map-v2 .mv2-section-title{opacity:1!important}#museum-map-v2 .mv2-dir-grid{display:flex!important;flex-direction:column!important;gap:0!important;padding:10px 16px 16px!important}#museum-map-v2 .mv2-dir-grid[hidden]{display:none!important}#museum-map-v2 .mv2-dir-grid a{display:block;width:100%;box-sizing:border-box}#museum-map-v2 .mv2-dir-topic{margin:6px 0 3px;padding:10px 12px!important;background:rgba(145,165,164,.045);border-left:3px solid rgba(145,165,164,.22);border-radius:5px;color:#aab8b7!important;font-weight:700}#museum-map-v2 .mv2-dir-sub{margin:0;padding:8px 12px 8px 30px!important;font-size:11px!important;line-height:1.35;border-left:1px solid rgba(145,165,164,.22);color:#aab8b7!important}#museum-map-v2 .mv2-dir-sub:hover,#museum-map-v2 .mv2-dir-sub.current{color:#f0c76a!important;background:rgba(201,155,72,.1)}#museum-map-v2 .mv2-dir-item{padding:9px 12px!important;color:#aab8b7!important}#museum-map-v2 .mv2-dir-item.current,#museum-map-v2 .mv2-dir-topic.current,#museum-map-v2 .mv2-dir-sub.current{color:#f0c76a!important;background:rgba(201,155,72,.12)!important;border-left-color:#c99a43!important}



/* Museum Map brand link: same visual identity, now returns to Museum Entrance. */
#museum-map-v2 .mv2-brand{
  text-decoration:none;
  color:inherit;
  cursor:pointer;
}
#museum-map-v2 .mv2-brand:visited{
  color:inherit;
}

/* v38 long-title resilience for expanded scholarly rooms */
.mv2-card .mv2-copy strong{overflow-wrap:anywhere}
.mv2-dir-section a{overflow-wrap:anywhere}

/* Entire Museum Directory: compact expanded-entry typography.
   Keep the top-level directory section headings unchanged. */
#museum-map-v2 .mv2-dir-grid .mv2-dir-topic{
  font-size:8.5px!important;
  line-height:1.28!important;
}
#museum-map-v2 .mv2-dir-grid .mv2-dir-item{
  font-size:8px!important;
  line-height:1.28!important;
}
#museum-map-v2 .mv2-dir-grid .mv2-dir-sub{
  font-size:7.5px!important;
  line-height:1.3!important;
}

/* =============================================================
   HWHM UNIFIED SECTION CLOSE CONTROL — Flood master standard
   Shared visual contract for genuine museum section accordions.
   ============================================================= */
.museum-section-close-row{
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  margin:38px 0 8px !important;
  min-height:40px !important;
}
.museum-section-close{
  width:40px !important;
  height:40px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 40px !important;
  padding:0 !important;
  border:0 !important;
  border-left:1px solid var(--theme-border) !important;
  border-radius:0 !important;
  background:transparent !important;
  color:var(--file-accent,var(--frontier,var(--flood-accent,var(--newworld-accent,var(--accent,#a87935))))) !important;
  font:400 27px/1 Inter,Arial,sans-serif !important;
  opacity:1 !important;
  transform:none !important;
  cursor:pointer !important;
  transition:background .18s ease,color .18s ease !important;
  text-indent:-9999px !important;
  overflow:hidden !important;
  position:relative !important;
}
.museum-section-close::before{
  content:"↑" !important;
  display:block !important;
  position:absolute !important;
  inset:0 !important;
  text-indent:0 !important;
  font:400 27px/40px Inter,Arial,sans-serif !important;
  text-align:center !important;
}
.museum-section-close:hover{background:rgba(255,255,255,.05) !important;}
html[data-theme="archive"] .museum-section-close:hover{background:rgba(169,118,48,.07) !important;}
.museum-section-close:focus-visible{outline:2px solid currentColor !important;outline-offset:3px !important;}

/* The Vault: keep its existing close row aligned to the unified Flood standard.
   the-vault.html contains a page-level display:block !important override for
   .vault-file-close-row; restore flex here without changing Vault markup/IDs. */
.vault-file .vault-file-close-row.museum-section-close-row{
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  grid-column:1 / -1 !important;
  width:100% !important;
  margin:38px 0 8px !important;
}
