
.world-history-atlas-root .atlas-noscript{
  margin: 0;
  padding: 14px 18px;
  background: #5b2b20;
  color: #fff8e8;
  text-align: center;
  font: 600 0.95rem/1.45 system-ui, sans-serif;
}
.world-history-atlas-root{
  --atlas-bg: #eee7d8;
  --atlas-paper: #fbf6e9;
  --atlas-paper-strong: #fffaf0;
  --atlas-ink: #2c231b;
  --atlas-muted: #746759;
  --atlas-line: #d4c5ac;
  --atlas-line-dark: #a89170;
  --atlas-brown: #7a4b24;
  --atlas-brown-dark: #4d2f18;
  --atlas-gold: #c49b52;
  --atlas-blue: #2f6570;
  --atlas-green: #526f4e;
  --atlas-red: #86443f;
  --atlas-violet: #62558e;
  --atlas-shadow: 0 18px 48px rgba(63, 47, 30, 0.12);
  --atlas-shadow-small: 0 8px 22px rgba(63, 47, 30, 0.1);
  --sidebar-width: 322px;
  --detail-width: 370px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
}

.world-history-atlas-root *{ box-sizing: border-box; }
.world-history-atlas-root{ scroll-behavior: smooth; }
.world-history-atlas-root{
  margin: 0;
  background:
    radial-gradient(circle at 16% 4%, rgba(255,255,255,.72), transparent 34rem),
    linear-gradient(180deg, #f3eddf 0%, var(--atlas-bg) 52%, #e9dfcf 100%);
  color: var(--atlas-ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.52;
}

.world-history-atlas-root button, .world-history-atlas-root select, .world-history-atlas-root input{ font: inherit; }
.world-history-atlas-root button, .world-history-atlas-root a{ -webkit-tap-highlight-color: transparent; }
.world-history-atlas-root a{ color: var(--atlas-brown); text-underline-offset: 3px; }
.world-history-atlas-root a:hover{ color: var(--atlas-brown-dark); }
.world-history-atlas-root [hidden]{ display: none !important; }
.world-history-atlas-root .sr-only{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.world-history-atlas-root .atlas-page{
  width: 97%;
  max-width: none;
  margin: 0 auto;
  padding: 26px 0 46px;
  position: relative;
  z-index: 1;
}

.world-history-atlas-root .atlas-hero{
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, .72fr);
  gap: 20px;
  margin-bottom: 16px;
}
.world-history-atlas-root .atlas-hero__copy, .world-history-atlas-root .atlas-hero__chronology, .world-history-atlas-root .atlas-intro-notice, .world-history-atlas-root .atlas-sidebar, .world-history-atlas-root .atlas-stage-card, .world-history-atlas-root .atlas-methodology article, .world-history-atlas-root .atlas-source-reader, .world-history-atlas-root .atlas-footer{
  border: 1px solid var(--atlas-line);
  background: rgba(255, 250, 240, .94);
  box-shadow: var(--atlas-shadow);
}
.world-history-atlas-root .atlas-hero__copy{
  min-height: 255px;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 42px);
  position: relative;
  overflow: hidden;
}
.world-history-atlas-root .atlas-hero__copy::after{
  content: "ORBIS HISTORIAE";
  position: absolute;
  right: 26px;
  bottom: 14px;
  color: rgba(80, 53, 28, .06);
  font-size: clamp(2.2rem, 6vw, 6.4rem);
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
  pointer-events: none;
}
.world-history-atlas-root .atlas-kicker, .world-history-atlas-root .sidebar-heading__eyebrow, .world-history-atlas-root .timeline-panel__eyebrow{
  color: var(--atlas-brown);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.world-history-atlas-root .atlas-hero h1{
  max-width: 18ch;
  margin: 10px 0 13px;
  font-size: clamp(2.25rem, 4.5vw, 5rem);
  line-height: .98;
  letter-spacing: -.035em;
  position: relative;
  z-index: 1;
}
.world-history-atlas-root .atlas-hero__lead{
  max-width: 78ch;
  margin: 0;
  color: var(--atlas-muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  position: relative;
  z-index: 1;
}
.world-history-atlas-root .atlas-hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
  position: relative;
  z-index: 1;
}
.world-history-atlas-root .atlas-button{
  border: 1px solid var(--atlas-line-dark);
  border-radius: 999px;
  padding: 10px 15px;
  background: #fffaf0;
  color: var(--atlas-ink);
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.world-history-atlas-root .atlas-button:hover{ background: #f1e4cd; box-shadow: var(--atlas-shadow-small); transform: translateY(-1px); }
.world-history-atlas-root .atlas-button:focus-visible, .world-history-atlas-root .icon-button:focus-visible, .world-history-atlas-root .text-button:focus-visible, .world-history-atlas-root .region-presets button:focus-visible, .world-history-atlas-root .timeline-window-buttons button:focus-visible{
  outline: 3px solid rgba(47, 101, 112, .28);
  outline-offset: 2px;
}
.world-history-atlas-root .atlas-button--primary{
  border-color: var(--atlas-brown-dark);
  background: var(--atlas-brown-dark);
  color: #fff8e8;
}
.world-history-atlas-root .atlas-button--primary:hover{ background: #67401f; }

.world-history-atlas-root .atlas-hero__chronology{
  border-radius: var(--radius-lg);
  padding: 15px;
  display: grid;
  gap: 10px;
  align-content: center;
}
.world-history-atlas-root .chronology-card{
  border: 1px solid var(--atlas-line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: linear-gradient(180deg, #fffdf7 0%, #f1e6d1 100%);
}
.world-history-atlas-root .chronology-card--primary{
  background: linear-gradient(135deg, #4d301b 0%, #78522f 100%);
  border-color: #4d301b;
  color: #fff8e8;
}
.world-history-atlas-root .chronology-card__label{
  display: block;
  color: inherit;
  opacity: .72;
  font-family: system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.world-history-atlas-root .chronology-card__value{
  display: block;
  margin-top: 2px;
  font-size: 1.35rem;
}
.world-history-atlas-root .chronology-card__note{
  margin: 2px 4px 0;
  color: var(--atlas-muted);
  font-size: .84rem;
}

.world-history-atlas-root .atlas-intro-notice{
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 16px;
  box-shadow: var(--atlas-shadow-small);
}
.world-history-atlas-root .atlas-intro-notice p{ margin: 0; color: var(--atlas-muted); font-size: .93rem; }
.world-history-atlas-root .atlas-intro-notice__icon{
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7d6b6;
  color: var(--atlas-brown-dark);
  font-weight: 700;
}

.world-history-atlas-root .atlas-workspace{
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--detail-width);
  gap: 15px;
  align-items: start;
}
.world-history-atlas-root .atlas-sidebar, .world-history-atlas-root .atlas-stage-card{
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.world-history-atlas-root .atlas-sidebar{
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--atlas-line-dark) transparent;
  padding: 16px;
}
.world-history-atlas-root .atlas-sidebar::-webkit-scrollbar{ width: 8px; }
.world-history-atlas-root .atlas-sidebar::-webkit-scrollbar-thumb{ background: var(--atlas-line-dark); border-radius: 999px; }
.world-history-atlas-root .sidebar-heading{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.world-history-atlas-root .sidebar-heading h2{ margin: 2px 0 0; font-size: 1.35rem; }
.world-history-atlas-root .icon-button{
  width: 34px;
  height: 34px;
  border: 1px solid var(--atlas-line);
  border-radius: 50%;
  background: #fffaf0;
  color: var(--atlas-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.world-history-atlas-root .icon-button:hover{ background: #efe2ca; }
.world-history-atlas-root .field-group{ margin-bottom: 12px; }
.world-history-atlas-root .field-group label, .world-history-atlas-root .atlas-search > label, .world-history-atlas-root .compact-field > span{
  display: block;
  margin-bottom: 5px;
  color: var(--atlas-muted);
  font-family: system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.world-history-atlas-root .field-group select, .world-history-atlas-root .compact-field select, .world-history-atlas-root .atlas-search input{
  width: 100%;
  border: 1px solid var(--atlas-line-dark);
  border-radius: 9px;
  background: #fffdf7;
  color: var(--atlas-ink);
  padding: 9px 10px;
}
.world-history-atlas-root .atlas-search{ position: relative; margin: 15px 0; }
.world-history-atlas-root .atlas-search__row{ position: relative; }
.world-history-atlas-root .atlas-search__row input{ padding-right: 38px; }
.world-history-atlas-root .atlas-search__row button{
  position: absolute;
  right: 4px;
  top: 4px;
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: var(--atlas-muted);
}
.world-history-atlas-root .atlas-search__row button:hover{ background: #efe4d0; }
.world-history-atlas-root .atlas-search__results{
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--atlas-line-dark);
  border-radius: 12px;
  background: #fffdf7;
  box-shadow: var(--atlas-shadow);
  padding: 6px;
}
.world-history-atlas-root .search-result{
  width: 100%;
  display: block;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #e7dcc8;
  background: transparent;
  padding: 9px 8px;
  cursor: pointer;
  color: var(--atlas-ink);
}
.world-history-atlas-root .search-result:last-child{ border-bottom: 0; }
.world-history-atlas-root .search-result:hover{ background: #f3ead9; }
.world-history-atlas-root .search-result strong{ display: block; font-size: .94rem; }
.world-history-atlas-root .search-result span{ display: block; margin-top: 2px; color: var(--atlas-muted); font-size: .78rem; }

.world-history-atlas-root .layer-tree{ display: grid; gap: 8px; }
.world-history-atlas-root .layer-row{
  border: 1px solid var(--atlas-line);
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(255,255,255,.47);
}
.world-history-atlas-root .layer-row__top{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}
.world-history-atlas-root .layer-row__top input[type="checkbox"]{ accent-color: var(--atlas-brown); width: 16px; height: 16px; }
.world-history-atlas-root .layer-row__name{
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .91rem;
  cursor: pointer;
}
.world-history-atlas-root .layer-row__icon{ width: 20px; text-align: center; font-weight: 700; }
.world-history-atlas-root .layer-row__count{
  min-width: 28px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eadcc3;
  color: var(--atlas-muted);
  font-family: system-ui, sans-serif;
  font-size: .7rem;
  text-align: center;
}
.world-history-atlas-root .layer-row__opacity{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
}
.world-history-atlas-root .layer-row__opacity input{ width: 100%; accent-color: var(--atlas-brown); }
.world-history-atlas-root .layer-row__opacity output{ color: var(--atlas-muted); font-family: system-ui, sans-serif; font-size: .67rem; }
.world-history-atlas-root .layer-row.is-disabled{ opacity: .55; }
.world-history-atlas-root .layer-actions{ display: flex; gap: 12px; margin: 13px 0; }
.world-history-atlas-root .genealogy-overview{
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid rgba(109,75,120,.32);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(109,75,120,.08), rgba(255,253,247,.84));
}
.world-history-atlas-root .genealogy-overview__title{ margin-bottom: 7px; color: #4b3158; font-weight: 800; }
.world-history-atlas-root .genealogy-overview p{ margin: 0 0 9px; color: var(--atlas-muted); font-size: .8rem; }
.world-history-atlas-root .genealogy-overview__eyebrow{ margin: 9px 0 5px; color: #6d4b78; font-family: system-ui, sans-serif; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.world-history-atlas-root .genealogy-overview__primeval, .world-history-atlas-root .genealogy-overview__roots, .world-history-atlas-root .genealogy-overview__current, .world-history-atlas-root .genealogy-chain, .world-history-atlas-root .genealogy-descendants{ display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.world-history-atlas-root .genealogy-chip{
  border: 1px solid rgba(109,75,120,.38);
  border-radius: 999px;
  background: #fffaf1;
  color: #4b3158;
  padding: 4px 8px;
  cursor: pointer;
  font-family: system-ui, sans-serif;
  font-size: .68rem;
  font-weight: 700;
}
.world-history-atlas-root .genealogy-chip:hover, .world-history-atlas-root .genealogy-chip:focus-visible{ background: #eaddec; outline: 2px solid rgba(109,75,120,.2); outline-offset: 1px; }
.world-history-atlas-root .genealogy-path{ margin: 10px 0; padding: 10px; border: 1px solid rgba(109,75,120,.24); border-radius: 10px; background: rgba(109,75,120,.05); }
.world-history-atlas-root .genealogy-path h4{ margin-top: 0; color: #4b3158; }
.world-history-atlas-root .genealogy-arrow{ color: #8a6b91; }
.world-history-atlas-root .genealogy-status{ color: var(--atlas-muted); font-size: .78rem; }

.world-history-atlas-root .text-button{
  border: 0;
  background: transparent;
  color: var(--atlas-brown);
  padding: 0;
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.world-history-atlas-root .legend-details{
  border-top: 1px solid var(--atlas-line);
  padding-top: 12px;
  margin-top: 8px;
}
.world-history-atlas-root .legend-details summary{ cursor: pointer; font-weight: 700; }
.world-history-atlas-root .certainty-legend{ display: grid; gap: 9px; margin-top: 10px; }
.world-history-atlas-root .certainty-legend > div{ display: grid; grid-template-columns: 36px 1fr; gap: 8px; align-items: center; color: var(--atlas-muted); font-size: .82rem; }
.world-history-atlas-root .certainty-sample{ display: block; height: 18px; border-radius: 4px; background: rgba(136,69,65,.18); }
.world-history-atlas-root .certainty-sample--solid{ border: 2px solid #884541; }
.world-history-atlas-root .certainty-sample--dash{ border: 2px dashed #884541; }
.world-history-atlas-root .certainty-sample--hatch{ border: 1px dashed #62558e; background: repeating-linear-gradient(135deg, rgba(98,85,142,.08) 0 4px, rgba(98,85,142,.28) 4px 5px); }
.world-history-atlas-root .certainty-sample--dots{ border: 2px dotted #9b5f24; background-image: radial-gradient(#9b5f24 1px, transparent 1px); background-size: 6px 6px; }

.world-history-atlas-root .atlas-stage-card{
  padding: 12px;
  min-width: 0;
}
.world-history-atlas-root .atlas-stage-toolbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 3px 3px 11px;
}
.world-history-atlas-root .region-presets{ display: flex; flex-wrap: wrap; gap: 6px; }
.world-history-atlas-root .region-presets button, .world-history-atlas-root .timeline-window-buttons button{
  border: 1px solid var(--atlas-line);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--atlas-ink);
  padding: 6px 10px;
  cursor: pointer;
  font-size: .78rem;
}
.world-history-atlas-root .region-presets button:hover, .world-history-atlas-root .region-presets button.is-active, .world-history-atlas-root .timeline-window-buttons button:hover, .world-history-atlas-root .timeline-window-buttons button.is-active{
  border-color: var(--atlas-line-dark);
  background: #e9d7b8;
}
.world-history-atlas-root .stage-actions{ display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.world-history-atlas-root .toggle-control{ display: inline-flex; align-items: center; gap: 7px; font-family: system-ui, sans-serif; font-size: .79rem; cursor: pointer; }
.world-history-atlas-root .toggle-control input{ accent-color: var(--atlas-brown); }
.world-history-atlas-root .compact-field{ display: flex; align-items: center; gap: 7px; }
.world-history-atlas-root .compact-field > span{ margin: 0; }
.world-history-atlas-root .compact-field select{ width: auto; padding: 6px 8px; font-size: .78rem; }

.world-history-atlas-root .map-grid{
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: 650px;
  border-radius: 17px;
  overflow: hidden;
  background: #c6b797;
  border: 1px solid var(--atlas-line-dark);
}
.world-history-atlas-root .map-grid.is-comparing{ grid-template-columns: 1fr 1fr; }
.world-history-atlas-root .map-pane{ position: relative; min-width: 0; min-height: 650px; }
.world-history-atlas-root .map-pane--comparison{ border-left: 3px solid rgba(255,248,226,.86); }
.world-history-atlas-root .map-pane__label{
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(49,35,23,.82);
  color: #fff8e7;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  font-family: system-ui, sans-serif;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
  pointer-events: none;
}
.world-history-atlas-root .atlas-map{ position: absolute; inset: 0; }
/* Essential MapLibre canvas/control styling. */
.world-history-atlas-root .maplibregl-map{ font: 12px/20px system-ui, sans-serif; overflow: hidden; position: relative; -webkit-tap-highlight-color: rgb(0 0 0 / 0); }
.world-history-atlas-root .maplibregl-canvas{ position: absolute; left: 0; top: 0; }
.world-history-atlas-root .maplibregl-control-container .maplibregl-ctrl-top-right{ position: absolute; top: 0; right: 0; z-index: 2; }
.world-history-atlas-root .maplibregl-control-container .maplibregl-ctrl-bottom-left{ position: absolute; bottom: 0; left: 0; z-index: 2; }
.world-history-atlas-root .maplibregl-control-container .maplibregl-ctrl-bottom-right{ position: absolute; bottom: 0; right: 0; z-index: 2; }
.world-history-atlas-root .maplibregl-ctrl-group{
  background: rgba(255,250,239,.9) !important;
  border: 1px solid rgba(113,88,58,.4) !important;
  border-radius: 10px !important;
  box-shadow: 0 5px 14px rgba(46,32,19,.16) !important;
  overflow: hidden;
}
.world-history-atlas-root .maplibregl-ctrl-attrib{ background: rgba(255,250,239,.78) !important; color: #5d4e3d; }
.world-history-atlas-root .maplibregl-ctrl-attrib a{ color: #4d311d; }
.world-history-atlas-root .maplibregl-popup-content{
  border: 1px solid var(--atlas-line-dark);
  border-radius: 12px !important;
  background: rgba(255,250,239,.97) !important;
  color: var(--atlas-ink);
  box-shadow: var(--atlas-shadow) !important;
  padding: 12px 14px !important;
  font-family: Georgia, "Times New Roman", serif;
}
.world-history-atlas-root .maplibregl-popup-tip{ border-top-color: rgba(255,250,239,.97) !important; }
.world-history-atlas-root .atlas-popup__category{ color: var(--atlas-brown); font-family: system-ui, sans-serif; font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.world-history-atlas-root .atlas-popup strong{ display: block; margin: 2px 0 3px; font-size: 1rem; }
.world-history-atlas-root .atlas-popup span{ color: var(--atlas-muted); font-size: .81rem; }

.world-history-atlas-root .timeline-panel{
  margin-top: 10px;
  border: 1px solid var(--atlas-line);
  border-radius: 15px;
  background: linear-gradient(180deg, #fffaf0 0%, #f2e5cf 100%);
  padding: 14px 15px 13px;
}
.world-history-atlas-root .timeline-panel__header{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.world-history-atlas-root .timeline-panel__header h2{ margin: 2px 0 3px; font-size: 1.25rem; }
.world-history-atlas-root .timeline-panel__header p{ margin: 0; color: var(--atlas-muted); font-size: .9rem; max-width: 75ch; }
.world-history-atlas-root .timeline-readout{
  flex: 0 0 auto;
  border: 1px solid var(--atlas-line-dark);
  border-radius: 12px;
  background: #4d301b;
  color: #fff8e8;
  padding: 8px 12px;
  font-weight: 700;
  white-space: nowrap;
}
.world-history-atlas-root .timeline-slider{
  width: 100%;
  margin: 17px 0 4px;
  accent-color: var(--atlas-brown);
}
.world-history-atlas-root .timeline-slider::-webkit-slider-runnable-track{ height: 7px; border-radius: 999px; background: linear-gradient(90deg, #8b6234, #c6a46b, #6d4a2d); }
.world-history-atlas-root .timeline-slider::-webkit-slider-thumb{ margin-top: -5px; width: 18px; height: 18px; border-radius: 50%; background: #4c2f1b; border: 3px solid #fff1cf; box-shadow: 0 2px 7px rgba(0,0,0,.25); }
.world-history-atlas-root .timeline-scale{ position: relative; height: 38px; margin: 0 8px; }
.world-history-atlas-root .timeline-mark{ position: absolute; top: 2px; width: 1px; height: 10px; background: #806f5a; }
.world-history-atlas-root .timeline-mark span{ position: absolute; top: 12px; left: 50%; transform: translateX(-50%); color: var(--atlas-muted); font-family: system-ui, sans-serif; font-size: .61rem; white-space: nowrap; }
.world-history-atlas-root .comparison-slider-wrap{ margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--atlas-line-dark); }
.world-history-atlas-root .comparison-slider-head{ display: flex; justify-content: space-between; color: var(--atlas-muted); font-size: .82rem; }
.world-history-atlas-root .timeline-slider--comparison{ accent-color: var(--atlas-blue); }
.world-history-atlas-root .timeline-window-buttons{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.world-history-atlas-root .timeline-window-buttons button{ font-size: .7rem; }

.world-history-atlas-root .detail-panel{ min-height: 310px; }
.world-history-atlas-root .detail-empty{ padding: 26px 8px 14px; text-align: center; color: var(--atlas-muted); }
.world-history-atlas-root .detail-empty__icon{
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eadcc3;
  color: var(--atlas-brown);
  font-size: 1.6rem;
}
.world-history-atlas-root .detail-empty h3{ margin: 0 0 7px; color: var(--atlas-ink); font-size: 1.05rem; }
.world-history-atlas-root .detail-empty p{ margin: 0; font-size: .88rem; }
.world-history-atlas-root .detail-record__category{
  color: var(--atlas-brown);
  font-family: system-ui, sans-serif;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.world-history-atlas-root .detail-record h3{ margin: 4px 0 8px; font-size: 1.35rem; line-height: 1.15; }
.world-history-atlas-root .detail-record__date{ color: var(--atlas-muted); font-weight: 700; }
.world-history-atlas-root .detail-record__summary{ margin: 10px 0; }
.world-history-atlas-root .detail-badges{ display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 13px; }
.world-history-atlas-root .detail-badge{
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eadcc3;
  color: #5a4836;
  font-family: system-ui, sans-serif;
  font-size: .66rem;
  font-weight: 700;
}
.world-history-atlas-root .detail-tabs{ display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--atlas-line); margin-bottom: 10px; }
.world-history-atlas-root .detail-tabs button{
  flex: 0 0 auto;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 7px 6px;
  color: var(--atlas-muted);
  cursor: pointer;
  font-size: .76rem;
}
.world-history-atlas-root .detail-tabs button.is-active{ border-bottom-color: var(--atlas-brown); color: var(--atlas-ink); font-weight: 700; }
.world-history-atlas-root .detail-tab-panel{ font-size: .87rem; }
.world-history-atlas-root .detail-tab-panel h4{ margin: 12px 0 5px; font-size: .94rem; }
.world-history-atlas-root .detail-tab-panel ul{ margin: 5px 0 0; padding-left: 18px; }
.world-history-atlas-root .detail-tab-panel li{ margin-bottom: 5px; }
.world-history-atlas-root .source-card{
  border: 1px solid var(--atlas-line);
  border-radius: 10px;
  padding: 9px 10px;
  margin: 8px 0;
  background: #fffdf7;
}
.world-history-atlas-root .source-card__type{ color: var(--atlas-brown); font-family: system-ui, sans-serif; font-size: .63rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.world-history-atlas-root .source-card strong{ display: block; margin: 2px 0; }
.world-history-atlas-root .source-card span{ display: block; color: var(--atlas-muted); font-size: .78rem; }
.world-history-atlas-root .source-card a{ display: inline-block; margin-top: 4px; font-size: .78rem; }
.world-history-atlas-root .detail-actions{ display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.world-history-atlas-root .detail-actions button{ font-size: .78rem; }

.world-history-atlas-root .nearby-events{ margin-top: 18px; border-top: 1px solid var(--atlas-line); padding-top: 13px; }
.world-history-atlas-root .nearby-events__heading{ display: flex; justify-content: space-between; align-items: center; }
.world-history-atlas-root .nearby-events__heading h3{ margin: 0; font-size: 1rem; }
.world-history-atlas-root .nearby-events__heading span{ padding: 2px 7px; border-radius: 999px; background: #eadcc3; color: var(--atlas-muted); font-family: system-ui, sans-serif; font-size: .65rem; }
.world-history-atlas-root .nearby-events__list{ display: grid; gap: 7px; margin-top: 9px; }
.world-history-atlas-root .nearby-event{
  width: 100%;
  border: 1px solid var(--atlas-line);
  border-radius: 10px;
  background: #fffdf7;
  text-align: left;
  padding: 9px 10px;
  cursor: pointer;
  color: var(--atlas-ink);
}
.world-history-atlas-root .nearby-event:hover{ background: #f2e6d0; }
.world-history-atlas-root .nearby-event strong{ display: block; line-height: 1.25; }
.world-history-atlas-root .nearby-event span{ display: block; margin-top: 3px; color: var(--atlas-muted); font-size: .76rem; }

.world-history-atlas-root .atlas-methodology{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-top: 18px;
}
.world-history-atlas-root .atlas-methodology article{ border-radius: var(--radius-lg); padding: 20px 22px; position: relative; overflow: hidden; }
.world-history-atlas-root .method-card__number{ color: rgba(91,57,26,.12); font-size: 3.4rem; font-weight: 700; line-height: 1; position: absolute; right: 14px; top: 11px; }
.world-history-atlas-root .atlas-methodology h2{ max-width: 16ch; margin: 0 0 8px; font-size: 1.25rem; line-height: 1.15; }
.world-history-atlas-root .atlas-methodology p{ margin: 0; color: var(--atlas-muted); font-size: .92rem; }

.world-history-atlas-root .atlas-source-reader{ margin-top: 18px; border-radius: var(--radius-lg); padding: 23px 25px; }
.world-history-atlas-root .source-reader__header{ display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.world-history-atlas-root .source-reader__header h2{ margin: 5px 0 0; font-size: 1.7rem; }
.world-history-atlas-root .dataset-stats{ display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.world-history-atlas-root .dataset-stat{ min-width: 90px; border: 1px solid var(--atlas-line); border-radius: 10px; background: #fffdf7; padding: 7px 9px; text-align: center; }
.world-history-atlas-root .dataset-stat strong{ display: block; font-size: 1.08rem; }
.world-history-atlas-root .dataset-stat span{ color: var(--atlas-muted); font-family: system-ui, sans-serif; font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; }
.world-history-atlas-root .source-reader__grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.world-history-atlas-root .source-reader__grid article{ border-top: 3px solid #b38b4c; padding-top: 10px; }
.world-history-atlas-root .source-reader__grid h3{ margin: 0 0 6px; font-size: 1rem; }
.world-history-atlas-root .source-reader__grid p{ margin: 0; color: var(--atlas-muted); font-size: .86rem; }

.world-history-atlas-root .atlas-footer{ margin-top: 18px; border-radius: var(--radius-md); padding: 13px 17px; display: flex; justify-content: space-between; gap: 14px; align-items: center; box-shadow: var(--atlas-shadow-small); }
.world-history-atlas-root .atlas-footer p{ margin: 0; color: var(--atlas-muted); font-size: .83rem; }
.world-history-atlas-root .atlas-footer__links{ display: flex; flex-wrap: wrap; gap: 12px; font-size: .82rem; }

.world-history-atlas-root .source-dialog{
  width: min(900px, calc(100vw - 30px));
  max-height: min(760px, calc(100vh - 30px));
  border: 1px solid var(--atlas-line-dark);
  border-radius: 18px;
  background: #fffaf0;
  color: var(--atlas-ink);
  box-shadow: 0 30px 90px rgba(45,30,18,.35);
  padding: 0;
}
.world-history-atlas-root .source-dialog::backdrop{ background: rgba(33,24,17,.55); backdrop-filter: blur(3px); }
.world-history-atlas-root .source-dialog__header{ position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 17px 20px; background: #fffaf0; border-bottom: 1px solid var(--atlas-line); }
.world-history-atlas-root .source-dialog__header h2{ margin: 4px 0 0; }
.world-history-atlas-root .source-catalogue{ padding: 17px 20px 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.world-history-atlas-root .source-catalogue .source-card{ margin: 0; }
.world-history-atlas-root .toast{
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 1200;
  max-width: min(600px, calc(100vw - 30px));
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(54,38,25,.95);
  color: #fff8e7;
  box-shadow: var(--atlas-shadow);
  font-family: system-ui, sans-serif;
  font-size: .82rem;
}

.world-history-atlas-root .atlas-sidebar.is-collapsed{ width: 62px; padding: 12px 9px; overflow: hidden; }
.world-history-atlas-root .atlas-sidebar.is-collapsed > :not(.sidebar-heading){ display: none; }
.world-history-atlas-root .atlas-sidebar.is-collapsed .sidebar-heading > div{ display: none; }

@media (max-width: 1500px) {
  .world-history-atlas-root{ --sidebar-width: 285px; --detail-width: 335px; }
  .world-history-atlas-root .map-grid, .world-history-atlas-root .map-pane{ min-height: 590px; }
  .world-history-atlas-root .source-reader__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1220px) {
  .world-history-atlas-root .atlas-workspace{ grid-template-columns: 280px minmax(0, 1fr); }
  .world-history-atlas-root .atlas-sidebar--detail{ position: static; grid-column: 1 / -1; max-height: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .world-history-atlas-root .atlas-sidebar--detail .sidebar-heading{ grid-column: 1 / -1; }
  .world-history-atlas-root .atlas-hero{ grid-template-columns: 1fr; }
  .world-history-atlas-root .atlas-hero__chronology{ grid-template-columns: repeat(3, 1fr); }
  .world-history-atlas-root .chronology-card__note{ grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .world-history-atlas-root .atlas-page{ width: calc(100% - 18px); padding-top: 10px; }
  .world-history-atlas-root .atlas-workspace{ grid-template-columns: 1fr; }
  .world-history-atlas-root .atlas-sidebar{ position: static; max-height: none; }
  .world-history-atlas-root .atlas-sidebar--layers{ order: 2; }
  .world-history-atlas-root .atlas-stage-card{ order: 1; }
  .world-history-atlas-root .atlas-sidebar--detail{ order: 3; display: block; }
  .world-history-atlas-root .map-grid, .world-history-atlas-root .map-pane{ min-height: 520px; }
  .world-history-atlas-root .map-grid.is-comparing{ grid-template-columns: 1fr; grid-template-rows: 520px 520px; }
  .world-history-atlas-root .map-pane--comparison{ border-left: 0; border-top: 3px solid rgba(255,248,226,.86); }
  .world-history-atlas-root .atlas-methodology{ grid-template-columns: 1fr; }
  .world-history-atlas-root .atlas-hero__chronology{ grid-template-columns: 1fr; }
  .world-history-atlas-root .source-reader__grid{ grid-template-columns: 1fr; }
  .world-history-atlas-root .source-reader__header, .world-history-atlas-root .atlas-footer{ flex-direction: column; }
  .world-history-atlas-root .dataset-stats{ justify-content: flex-start; }
}
@media (max-width: 620px) {
  .world-history-atlas-root .atlas-hero__copy{ padding: 22px 18px; }
  .world-history-atlas-root .atlas-hero h1{ font-size: 2.2rem; }
  .world-history-atlas-root .atlas-hero__actions{ display: grid; grid-template-columns: 1fr; }
  .world-history-atlas-root .atlas-button{ width: 100%; }
  .world-history-atlas-root .atlas-stage-card{ padding: 8px; }
  .world-history-atlas-root .atlas-stage-toolbar{ align-items: flex-start; }
  .world-history-atlas-root .stage-actions{ width: 100%; justify-content: space-between; }
  .world-history-atlas-root .map-grid, .world-history-atlas-root .map-pane{ min-height: 430px; }
  .world-history-atlas-root .map-grid.is-comparing{ grid-template-rows: 430px 430px; }
  .world-history-atlas-root .timeline-panel__header{ flex-direction: column; }
  .world-history-atlas-root .timeline-readout{ align-self: flex-start; }
  .world-history-atlas-root .timeline-mark span{ display: none; }
  .world-history-atlas-root .atlas-source-reader{ padding: 19px 17px; }
  .world-history-atlas-root .source-catalogue{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .world-history-atlas-root{ scroll-behavior: auto; }
  .world-history-atlas-root *, .world-history-atlas-root *::before, .world-history-atlas-root *::after{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.world-history-atlas-root .source-card__citation{ margin-top: 4px; color: var(--atlas-ink) !important; font-style: italic; }
.world-history-atlas-root .source-card__licence{ margin-top: 4px; font-size: .72rem !important; }

/* --------------------------------------------------------------------------
   Research workbench edition 2.2
   -------------------------------------------------------------------------- */
.world-history-atlas-root .atlas-research-launcher{
  margin: 0 0 18px;
  border: 1px solid var(--atlas-line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255,250,240,.97), rgba(235,223,202,.95));
  box-shadow: var(--atlas-shadow-small);
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.world-history-atlas-root .research-launcher__intro{ display: grid; gap: 2px; min-width: 245px; }
.world-history-atlas-root .research-launcher__eyebrow, .world-history-atlas-root .parallel-history__eyebrow, .world-history-atlas-root .research-focus-card__eyebrow{
  color: var(--atlas-brown);
  font-family: system-ui, sans-serif;
  font-size: .63rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.world-history-atlas-root .research-launcher__buttons{ display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.world-history-atlas-root .research-launcher__buttons button, .world-history-atlas-root .compact-action{
  border: 1px solid var(--atlas-line);
  border-radius: 999px;
  background: rgba(255,253,247,.94);
  color: var(--atlas-ink);
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: system-ui, sans-serif;
  font-size: .73rem;
  font-weight: 700;
  transition: background .16s ease, transform .16s ease, border-color .16s ease;
}
.world-history-atlas-root .research-launcher__buttons button:hover, .world-history-atlas-root .compact-action:hover{ background: #eadcc3; border-color: var(--atlas-line-dark); transform: translateY(-1px); }
.world-history-atlas-root .map-mode-controls{ display: flex; flex-wrap: wrap; gap: 5px; }
.world-history-atlas-root .compact-action[aria-pressed="true"]{ background: var(--atlas-brown-dark); color: #fff8e8; border-color: var(--atlas-brown-dark); }

.world-history-atlas-root .timeline-lanes-shell{
  margin-top: 8px;
  border: 1px solid var(--atlas-line);
  border-radius: 12px;
  background: rgba(255,253,247,.72);
  overflow: hidden;
}
.world-history-atlas-root .timeline-lanes__heading{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 8px 10px;
  border-bottom: 1px solid var(--atlas-line);
  font-family: system-ui, sans-serif;
}
.world-history-atlas-root .timeline-lanes__heading strong{ font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.world-history-atlas-root .timeline-lanes__heading span{ color: var(--atlas-muted); font-size: .66rem; }
.world-history-atlas-root .timeline-lanes{ display: grid; }
.world-history-atlas-root .timeline-lane{
  min-height: 37px;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  border-top: 1px dashed rgba(168,145,112,.35);
}
.world-history-atlas-root .timeline-lane:first-child{ border-top: 0; }
.world-history-atlas-root .timeline-lane__label{
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--atlas-muted);
  font-family: system-ui, sans-serif;
  font-size: .68rem;
  font-weight: 700;
  border-right: 1px solid rgba(168,145,112,.35);
}
.world-history-atlas-root .timeline-lane__label > span{ width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.world-history-atlas-root .timeline-lane__track{ position: relative; min-height: 37px; overflow: hidden; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 1px), rgba(93,68,38,.08) calc(10% - 1px), rgba(93,68,38,.08) 10%); }
.world-history-atlas-root .timeline-lane__bar{ position: absolute; height: 5px; min-width: 3px; border: 0; border-radius: 999px; opacity: .55; cursor: pointer; padding: 0; }
.world-history-atlas-root .timeline-lane__bar:hover{ opacity: 1; height: 7px; transform: translateY(-1px); }
.world-history-atlas-root .timeline-lane__event{ position: absolute; width: 9px; height: 9px; border: 2px solid var(--atlas-brown); border-radius: 50%; background: #fff9e9; transform: translateX(-50%); cursor: pointer; padding: 0; z-index: 2; }
.world-history-atlas-root .timeline-lane__event:hover{ width: 13px; height: 13px; margin: -2px 0 0 -2px; background: #ffd477; }
.world-history-atlas-root .timeline-lane__cursor{ position: absolute; top: 0; bottom: 0; width: 2px; background: #37271a; box-shadow: 0 0 0 1px rgba(255,255,255,.78); transform: translateX(-1px); z-index: 4; pointer-events: none; }

.world-history-atlas-root .parallel-history{ margin-top: 12px; border-top: 1px solid var(--atlas-line); padding-top: 12px; }
.world-history-atlas-root .parallel-history__heading{ display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.world-history-atlas-root .parallel-history__heading > div{ display: grid; }
.world-history-atlas-root .parallel-history__heading > span{ min-width: 30px; padding: 3px 8px; border-radius: 999px; background: #e5d6bd; text-align: center; font-family: system-ui, sans-serif; font-size: .68rem; }
.world-history-atlas-root .parallel-history__grid{ display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
.world-history-atlas-root .parallel-card{
  min-height: 78px;
  border: 1px solid var(--atlas-line);
  border-top: 3px solid var(--atlas-brown);
  border-radius: 10px;
  background: rgba(255,253,247,.9);
  padding: 8px 9px;
  color: var(--atlas-ink);
  text-align: left;
  cursor: pointer;
}
.world-history-atlas-root .parallel-card:hover{ background: #f1e5cf; transform: translateY(-1px); }
.world-history-atlas-root .parallel-card > span{ display: block; color: var(--atlas-brown); font-family: system-ui, sans-serif; font-size: .57rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.world-history-atlas-root .parallel-card strong{ display: block; margin-top: 3px; line-height: 1.16; font-size: .82rem; }
.world-history-atlas-root .parallel-card small{ display: block; margin-top: 5px; color: var(--atlas-muted); font-family: system-ui, sans-serif; font-size: .61rem; }
.world-history-atlas-root .parallel-card--genealogy{ border-top-color: #6d4b78; }
.world-history-atlas-root .parallel-card--biblical{ border-top-color: #9b5f24; }
.world-history-atlas-root .parallel-card--civilization{ border-top-color: #8a6a3a; }
.world-history-atlas-root .parallel-card--people{ border-top-color: #4e7250; }
.world-history-atlas-root .parallel-card--state{ border-top-color: #884541; }
.world-history-atlas-root .parallel-card--religion{ border-top-color: #62558e; }
.world-history-atlas-root .parallel-card--church{ border-top-color: #8c6b1e; }
.world-history-atlas-root .parallel-card--tradition{ border-top-color: #2f7282; }

.world-history-atlas-root .atlas-research-workbench{
  margin-top: 20px;
  border: 1px solid var(--atlas-line-dark);
  border-radius: var(--radius-lg);
  background: rgba(255,250,240,.97);
  box-shadow: var(--atlas-shadow);
  overflow: hidden;
  scroll-margin-top: 16px;
}
.world-history-atlas-root .research-workbench__header{
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 27px 18px;
  background:
    radial-gradient(circle at 92% 20%, rgba(109,75,120,.11), transparent 22rem),
    linear-gradient(135deg, #fffaf0, #eee1ca);
  border-bottom: 1px solid var(--atlas-line);
}
.world-history-atlas-root .research-workbench__header h2{ max-width: 900px; margin: 5px 0 7px; font-size: clamp(1.55rem, 2.7vw, 2.55rem); line-height: 1.08; }
.world-history-atlas-root .research-workbench__header p{ max-width: 105ch; margin: 0; color: var(--atlas-muted); }
.world-history-atlas-root .research-workbench__status{ flex: 0 0 auto; border: 1px solid var(--atlas-line); border-radius: 999px; background: rgba(255,253,247,.85); padding: 7px 11px; color: var(--atlas-muted); font-family: system-ui, sans-serif; font-size: .69rem; }
.world-history-atlas-root .research-tabs{ display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--atlas-line); background: #f2e7d3; }
.world-history-atlas-root .research-tabs button{
  min-height: 54px;
  border: 0;
  border-right: 1px solid var(--atlas-line);
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--atlas-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px;
  font-family: system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 750;
}
.world-history-atlas-root .research-tabs button:last-child{ border-right: 0; }
.world-history-atlas-root .research-tabs button:hover{ background: rgba(255,255,255,.4); color: var(--atlas-ink); }
.world-history-atlas-root .research-tabs button.is-active{ background: #fffaf0; border-bottom-color: var(--atlas-brown); color: var(--atlas-ink); }
.world-history-atlas-root .research-tabs button > span:first-child{ font-size: 1.2rem; }
.world-history-atlas-root .research-panels{ min-height: 560px; }
.world-history-atlas-root .research-panel{ padding: 22px 24px 27px; animation: research-panel-in .24s ease; }
@keyframes research-panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.world-history-atlas-root .research-panel__intro{ display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 17px; }
.world-history-atlas-root .research-panel__intro h3{ margin: 0 0 5px; font-size: 1.45rem; }
.world-history-atlas-root .research-panel__intro p{ max-width: 90ch; margin: 0; color: var(--atlas-muted); }
.world-history-atlas-root .research-controls{ display: flex; gap: 9px; flex-wrap: wrap; }
.world-history-atlas-root .research-controls label{ min-width: 160px; display: grid; gap: 4px; color: var(--atlas-muted); font-family: system-ui, sans-serif; font-size: .66rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.world-history-atlas-root .research-controls select, .world-history-atlas-root .research-controls input{
  min-height: 38px;
  border: 1px solid var(--atlas-line);
  border-radius: 9px;
  background: #fffdf7;
  color: var(--atlas-ink);
  padding: 6px 9px;
  font-size: .78rem;
  text-transform: none;
  letter-spacing: 0;
}
.world-history-atlas-root .research-empty{ color: var(--atlas-muted); font-style: italic; }
.world-history-atlas-root .muted{ color: var(--atlas-muted); }
.world-history-atlas-root .count-pill{ display: inline-block; padding: 2px 7px; border-radius: 999px; background: #e7d8c1; color: var(--atlas-muted); font: 700 .64rem system-ui, sans-serif; }

.world-history-atlas-root .genealogy-explorer, .world-history-atlas-root .flood-explorer, .world-history-atlas-root .tour-layout{ display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(310px, .78fr); gap: 16px; align-items: start; }
.world-history-atlas-root .genealogy-tree, .world-history-atlas-root .flood-tradition-list, .world-history-atlas-root .toursList{ min-height: 420px; }
.world-history-atlas-root .genealogy-branch{ border: 1px solid var(--atlas-line); border-radius: 13px; background: #fffdf7; padding: 13px; margin-bottom: 12px; }
.world-history-atlas-root .genealogy-branch h4{ margin: 0 0 9px; color: var(--atlas-brown-dark); }
.world-history-atlas-root .genealogy-primeval-line{ display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.world-history-atlas-root .genealogy-branch-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.world-history-atlas-root .genealogy-branch-grid .genealogy-branch{ margin: 0; }
.world-history-atlas-root .genealogy-descendant-list{ display: grid; gap: 5px; }
.world-history-atlas-root .genealogy-descendant-list > div{ padding-left: calc(var(--genealogy-depth, 0) * 12px); }
.world-history-atlas-root .genealogy-descendant-list--expanded{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.world-history-atlas-root .genealogy-search-results{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.world-history-atlas-root .genealogy-node{
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--atlas-line);
  border-radius: 9px;
  background: #fffaf0;
  color: var(--atlas-ink);
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}
.world-history-atlas-root .genealogy-node:hover{ background: #f1e4ce; border-color: var(--atlas-line-dark); }
.world-history-atlas-root .genealogy-node.is-selected{ background: #eee2ef; border-color: #76557c; box-shadow: 0 0 0 2px rgba(109,75,120,.12); }
.world-history-atlas-root .genealogy-node.is-compact{ min-height: 45px; }
.world-history-atlas-root .genealogy-node__branch{ align-self: stretch; border-radius: 99px; background: #7c6d5d; }
.world-history-atlas-root .genealogy-node__branch--shem{ background: #8a6334; }
.world-history-atlas-root .genealogy-node__branch--ham{ background: #9b563d; }
.world-history-atlas-root .genealogy-node__branch--japheth{ background: #4f7180; }
.world-history-atlas-root .genealogy-node__branch--primeval{ background: #6d4b78; }
.world-history-atlas-root .genealogy-node__copy{ min-width: 0; }
.world-history-atlas-root .genealogy-node strong{ display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.world-history-atlas-root .genealogy-node small{ display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--atlas-muted); font-family: system-ui, sans-serif; font-size: .62rem; }
.world-history-atlas-root .genealogy-node__arrow{ color: var(--atlas-muted); }
.world-history-atlas-root .genealogy-focus, .world-history-atlas-root .flood-selection, .world-history-atlas-root .tour-player{ position: sticky; top: 12px; }
.world-history-atlas-root .research-focus-card, .world-history-atlas-root .tour-player > article, .world-history-atlas-root .tour-player__empty{
  border: 1px solid var(--atlas-line-dark);
  border-radius: 15px;
  background: linear-gradient(180deg, #fffdf7, #f5ead6);
  padding: 16px;
  box-shadow: var(--atlas-shadow-small);
}
.world-history-atlas-root .research-focus-card h4, .world-history-atlas-root .tour-player h4{ margin: 4px 0 5px; font-size: 1.35rem; line-height: 1.12; }
.world-history-atlas-root .research-focus-card h5{ margin: 14px 0 6px; }
.world-history-atlas-root .research-focus-card__date, .world-history-atlas-root .tour-step-date{ color: var(--atlas-muted); font-family: system-ui, sans-serif; font-size: .76rem; font-weight: 700; }
.world-history-atlas-root .meaning-box, .world-history-atlas-root .caution-box, .world-history-atlas-root .kinglist-framework{
  margin: 10px 0;
  border-left: 4px solid #6d4b78;
  border-radius: 0 10px 10px 0;
  background: rgba(109,75,120,.08);
  padding: 9px 11px;
  display: grid;
  gap: 2px;
}
.world-history-atlas-root .meaning-box strong, .world-history-atlas-root .caution-box strong, .world-history-atlas-root .kinglist-framework strong{ font-size: .78rem; }
.world-history-atlas-root .meaning-box small, .world-history-atlas-root .caution-box span{ color: var(--atlas-muted); font-family: system-ui, sans-serif; font-size: .68rem; }
.world-history-atlas-root .research-definition-list{ margin: 12px 0; display: grid; gap: 5px; }
.world-history-atlas-root .research-definition-list > div{ display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 8px; border-top: 1px dashed var(--atlas-line); padding-top: 5px; }
.world-history-atlas-root .research-definition-list dt{ color: var(--atlas-muted); font: 750 .65rem system-ui, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.world-history-atlas-root .research-definition-list dd{ margin: 0; font-size: .82rem; }
.world-history-atlas-root .relation-chips, .world-history-atlas-root .descendant-links, .world-history-atlas-root .motif-chip-list{ display: flex; flex-wrap: wrap; gap: 5px; }
.world-history-atlas-root .relation-chips button, .world-history-atlas-root .descendant-links button, .world-history-atlas-root .descendant-links span, .world-history-atlas-root .motif-chip-list span{
  border: 1px solid var(--atlas-line);
  border-radius: 999px;
  background: #fffdf7;
  padding: 3px 7px;
  color: var(--atlas-ink);
  font-family: system-ui, sans-serif;
  font-size: .62rem;
}
.world-history-atlas-root .relation-chips button, .world-history-atlas-root .descendant-links button{ cursor: pointer; }
.world-history-atlas-root .relation-chips button:hover, .world-history-atlas-root .descendant-links button:hover{ background: #e8dbc4; }
.world-history-atlas-root .compact-list{ margin: 5px 0; padding-left: 18px; font-size: .82rem; }
.world-history-atlas-root .reception-list{ display: grid; gap: 6px; }
.world-history-atlas-root .reception-list > div{ border: 1px solid var(--atlas-line); border-radius: 8px; padding: 7px; background: #fffdf7; }
.world-history-atlas-root .reception-list strong, .world-history-atlas-root .reception-list span{ display: block; }
.world-history-atlas-root .reception-list span{ color: var(--atlas-muted); font-size: .75rem; }
.world-history-atlas-root .research-focus-actions{ display: flex; gap: 7px; margin-top: 14px; }

.world-history-atlas-root .flood-motif-filters{ display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 13px; }
.world-history-atlas-root .motif-toggle{ position: relative; }
.world-history-atlas-root .motif-toggle input{ position: absolute; opacity: 0; pointer-events: none; }
.world-history-atlas-root .motif-toggle span{ display: block; border: 1px solid var(--atlas-line); border-radius: 999px; background: #fffdf7; padding: 5px 9px; color: var(--atlas-muted); cursor: pointer; font-family: system-ui, sans-serif; font-size: .68rem; }
.world-history-atlas-root .motif-toggle input:checked + span{ background: #2f6570; color: #fff; border-color: #2f6570; }
.world-history-atlas-root .flood-tradition-list{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: start; }
.world-history-atlas-root .research-list-summary{ grid-column: 1 / -1; color: var(--atlas-muted); font-family: system-ui, sans-serif; font-size: .72rem; }
.world-history-atlas-root .flood-card{ border: 1px solid var(--atlas-line); border-radius: 11px; background: #fffdf7; color: var(--atlas-ink); padding: 10px; text-align: left; cursor: pointer; }
.world-history-atlas-root .flood-card:hover{ background: #edf5f4; border-color: #7ea2a6; }
.world-history-atlas-root .flood-card.is-selected{ background: #e0eeee; border-color: #2f6570; box-shadow: 0 0 0 2px rgba(47,101,112,.12); }
.world-history-atlas-root .flood-card__region{ display: block; color: #2f6570; font: 800 .57rem system-ui, sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.world-history-atlas-root .flood-card strong{ display: block; margin: 3px 0; }
.world-history-atlas-root .flood-card > span:not(.flood-card__region){ display: block; color: var(--atlas-muted); font-size: .76rem; }
.world-history-atlas-root .similarity-meter{ height: 5px; margin: 9px 0 4px; border-radius: 99px; background: #d9cdb8; overflow: hidden; }
.world-history-atlas-root .similarity-meter i{ display: block; height: 100%; background: linear-gradient(90deg, #2f6570, #8e5b34); }
.world-history-atlas-root .flood-card small{ color: var(--atlas-muted); font-family: system-ui, sans-serif; }
.world-history-atlas-root .flood-score{ width: 82px; height: 82px; margin: 8px auto 12px; border: 7px solid rgba(47,101,112,.22); border-radius: 50%; display: grid; place-content: center; text-align: center; }
.world-history-atlas-root .flood-score strong{ font-size: 1.2rem; }
.world-history-atlas-root .flood-score span{ color: var(--atlas-muted); font: 600 .54rem/1.1 system-ui, sans-serif; }
.world-history-atlas-root .mini-source-list{ display: grid; gap: 5px; }
.world-history-atlas-root .mini-source-list a{ border: 1px solid var(--atlas-line); border-radius: 8px; background: #fffdf7; padding: 7px; text-decoration: none; }
.world-history-atlas-root .mini-source-list strong, .world-history-atlas-root .mini-source-list span{ display: block; }
.world-history-atlas-root .mini-source-list span{ color: var(--atlas-muted); font-size: .67rem; }
.world-history-atlas-root .research-footnote{ color: var(--atlas-muted); font-size: .72rem; font-style: italic; }
.world-history-atlas-root .motif-matrix-details{ margin-top: 16px; border: 1px solid var(--atlas-line); border-radius: 12px; background: #fffdf7; }
.world-history-atlas-root .motif-matrix-details summary{ padding: 10px 12px; cursor: pointer; font-weight: 700; }
.world-history-atlas-root .motif-matrix-wrap{ overflow: auto; max-height: 560px; border-top: 1px solid var(--atlas-line); }
.world-history-atlas-root .motif-matrix{ border-collapse: separate; border-spacing: 0; min-width: 1300px; width: 100%; font-family: system-ui, sans-serif; font-size: .66rem; }
.world-history-atlas-root .motif-matrix th, .world-history-atlas-root .motif-matrix td{ border-right: 1px solid var(--atlas-line); border-bottom: 1px solid var(--atlas-line); padding: 6px; text-align: center; }
.world-history-atlas-root .motif-matrix thead th{ position: sticky; top: 0; background: #eee1ca; z-index: 2; writing-mode: vertical-rl; transform: rotate(180deg); max-height: 150px; }
.world-history-atlas-root .motif-matrix thead th:first-child{ left: 0; z-index: 4; writing-mode: horizontal-tb; transform: none; min-width: 190px; }
.world-history-atlas-root .motif-matrix tbody th{ position: sticky; left: 0; background: #fffaf0; text-align: left; z-index: 1; }
.world-history-atlas-root .motif-matrix tbody th button{ border: 0; background: transparent; color: var(--atlas-ink); cursor: pointer; text-align: left; }
.world-history-atlas-root .motif-matrix td.is-present{ background: #dcebe5; color: #2d664a; }
.world-history-atlas-root .motif-matrix td.is-absent{ color: #aa9e8d; }

.world-history-atlas-root .segmented-control{ display: flex; border: 1px solid var(--atlas-line); border-radius: 999px; overflow: hidden; background: #fffdf7; }
.world-history-atlas-root .segmented-control button{ border: 0; border-right: 1px solid var(--atlas-line); background: transparent; padding: 7px 10px; color: var(--atlas-muted); cursor: pointer; font-family: system-ui, sans-serif; font-size: .7rem; }
.world-history-atlas-root .segmented-control button:last-child{ border-right: 0; }
.world-history-atlas-root .segmented-control button.is-active{ background: var(--atlas-brown-dark); color: #fff8e8; }
.world-history-atlas-root .kinglist-summary{ margin-bottom: 13px; }
.world-history-atlas-root .kinglist-framework{ border-left-color: var(--atlas-gold); }
.world-history-atlas-root .kinglist-framework p{ margin: 3px 0 5px; }
.world-history-atlas-root .kinglist-framework span{ color: var(--atlas-muted); font-size: .78rem; }
.world-history-atlas-root .antediluvian-comparison{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.world-history-atlas-root .antediluvian-comparison > section{ border: 1px solid var(--atlas-line); border-radius: 13px; background: #fffdf7; padding: 13px; }
.world-history-atlas-root .antediluvian-comparison h4{ margin: 0 0 9px; }
.world-history-atlas-root .comparison-column{ display: grid; gap: 5px; }
.world-history-atlas-root .comparison-person{ width: 100%; border: 1px solid var(--atlas-line); border-radius: 9px; background: #fffaf0; color: var(--atlas-ink); padding: 7px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 7px; text-align: left; overflow: hidden; }
.world-history-atlas-root button.comparison-person{ cursor: pointer; }
.world-history-atlas-root button.comparison-person:hover{ background: #f0e2cc; }
.world-history-atlas-root .comparison-person--king{ border-left: 3px solid #8a6a3a; }
.world-history-atlas-root .comparison-person__order{ width: 27px; height: 27px; border-radius: 50%; background: #e8dac3; display: grid; place-items: center; font: 800 .67rem system-ui, sans-serif; }
.world-history-atlas-root .comparison-person__copy{ min-width: 0; position: relative; }
.world-history-atlas-root .comparison-person__copy strong, .world-history-atlas-root .comparison-person__copy small{ display: block; }
.world-history-atlas-root .comparison-person__copy small{ color: var(--atlas-muted); font-family: system-ui, sans-serif; font-size: .64rem; }
.world-history-atlas-root .comparison-person__copy .comparison-meaning{ color: var(--atlas-ink); font-style: italic; }
.world-history-atlas-root .comparison-person__copy i{ display: block; height: 4px; border-radius: 99px; background: var(--atlas-brown); margin-top: 4px; opacity: .7; }
.world-history-atlas-root .comparison-assessments{ display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.world-history-atlas-root .assessment-card{ border: 1px solid var(--atlas-line); border-radius: 11px; background: #fffdf7; padding: 10px; }
.world-history-atlas-root .assessment-card > span{ color: var(--atlas-brown); font: 800 .56rem system-ui, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.world-history-atlas-root .assessment-card h4{ margin: 4px 0 7px; font-size: .92rem; }
.world-history-atlas-root .assessment-card > div{ display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.world-history-atlas-root .assessment-card section{ border: 1px solid var(--atlas-line); border-radius: 7px; padding: 6px; }
.world-history-atlas-root .assessment-card section strong{ font-size: .68rem; }
.world-history-atlas-root .assessment-card p{ margin: 3px 0 0; color: var(--atlas-muted); font-size: .7rem; }
.world-history-atlas-root .assessment-card--no_name_equation{ border-color: #9b655d; background: #fff8f5; }

.world-history-atlas-root .tour-list{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: start; }
.world-history-atlas-root .tour-card{ position: relative; border: 1px solid var(--atlas-line); border-radius: 11px; background: #fffdf7; color: var(--atlas-ink); padding: 12px; text-align: left; cursor: pointer; }
.world-history-atlas-root .tour-card:hover{ background: #f2e7d3; }
.world-history-atlas-root .tour-card.is-selected{ border-color: var(--atlas-brown); box-shadow: 0 0 0 2px rgba(122,75,36,.12); }
.world-history-atlas-root .tour-card__count{ position: absolute; right: 9px; top: 9px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #e9dac1; font: 800 .65rem system-ui, sans-serif; }
.world-history-atlas-root .tour-card strong{ display: block; padding-right: 30px; }
.world-history-atlas-root .tour-card p{ margin: 5px 0 0; color: var(--atlas-muted); font-size: .76rem; }
.world-history-atlas-root .tour-player__empty{ color: var(--atlas-muted); text-align: center; padding: 60px 20px; }
.world-history-atlas-root .tour-progress{ height: 7px; margin: 9px 0 12px; border-radius: 99px; background: #d7c9b1; overflow: hidden; }
.world-history-atlas-root .tour-progress i{ display: block; height: 100%; background: linear-gradient(90deg, #6d4b78, #c49b52); }
.world-history-atlas-root .tour-step-caption{ font-size: 1.05rem; }
.world-history-atlas-root .tour-step-list{ max-height: 300px; overflow: auto; margin: 12px 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.world-history-atlas-root .tour-step-list button{ width: 100%; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--atlas-muted); display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 6px; align-items: center; padding: 5px; text-align: left; cursor: pointer; font-size: .72rem; }
.world-history-atlas-root .tour-step-list button > span{ width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--atlas-line); display: grid; place-items: center; font: 700 .61rem system-ui, sans-serif; }
.world-history-atlas-root .tour-step-list li.is-active button{ border-color: var(--atlas-brown); background: #f3e5cd; color: var(--atlas-ink); }
.world-history-atlas-root .tour-step-list li.is-done button > span{ background: #647b58; color: white; border-color: #647b58; }
.world-history-atlas-root .tour-controls{ display: flex; flex-wrap: wrap; gap: 5px; }
.world-history-atlas-root .tour-controls button{ border: 1px solid var(--atlas-line); border-radius: 999px; background: #fffdf7; color: var(--atlas-ink); padding: 6px 9px; cursor: pointer; font-family: system-ui, sans-serif; font-size: .66rem; }
.world-history-atlas-root .tour-controls button.is-primary{ background: var(--atlas-brown-dark); color: #fff; }
.world-history-atlas-root .tour-controls button:disabled{ opacity: .4; cursor: default; }

.world-history-atlas-root .keyboard-dialog{ width: min(670px, calc(100vw - 30px)); }
.world-history-atlas-root .keyboard-shortcuts{ padding: 18px 22px 25px; display: grid; gap: 8px; }
.world-history-atlas-root .keyboard-shortcuts > div{ display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; border-bottom: 1px dashed var(--atlas-line); padding-bottom: 8px; }
.world-history-atlas-root .keyboard-shortcuts > div:has(kbd + kbd){ grid-template-columns: auto auto minmax(0, 1fr); }
.world-history-atlas-root kbd{ min-width: 32px; border: 1px solid var(--atlas-line-dark); border-bottom-width: 3px; border-radius: 6px; background: #fffdf7; padding: 3px 7px; text-align: center; font: 700 .75rem system-ui, sans-serif; }

.world-history-atlas-root .atlas-popup em{ display: block; margin-top: 4px; color: #d8b97e; font-size: .74rem; }
.world-history-atlas-root .atlas-popup small{ display: block; margin-top: 5px; color: #cfc1ac; font-size: .64rem; }

.world-history-atlas-root.atlas-narrative-mode .certainty-legend, .world-history-atlas-root.atlas-narrative-mode .research-definition-list, .world-history-atlas-root.atlas-narrative-mode .source-reader__grid, .world-history-atlas-root.atlas-narrative-mode .motif-matrix-details{ display: none; }
.world-history-atlas-root.atlas-narrative-mode .atlas-source-reader{ padding-bottom: 15px; }

.world-history-atlas-root.atlas-focus-mode{ overflow: hidden; }
.world-history-atlas-root.atlas-focus-mode::before{ display: none; }
.world-history-atlas-root.atlas-focus-mode .atlas-page{ width: 100%; padding: 0; }
.world-history-atlas-root.atlas-focus-mode .atlas-hero, .world-history-atlas-root.atlas-focus-mode .atlas-intro-notice, .world-history-atlas-root.atlas-focus-mode .atlas-research-launcher, .world-history-atlas-root.atlas-focus-mode .atlas-sidebar, .world-history-atlas-root.atlas-focus-mode .atlas-research-workbench, .world-history-atlas-root.atlas-focus-mode .atlas-methodology, .world-history-atlas-root.atlas-focus-mode .atlas-source-reader, .world-history-atlas-root.atlas-focus-mode .atlas-footer{ display: none !important; }
.world-history-atlas-root.atlas-focus-mode .atlas-workspace{ display: block; }
.world-history-atlas-root.atlas-focus-mode .atlas-stage-card{ position: fixed; inset: 0; z-index: 1100; border: 0; border-radius: 0; padding: 7px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.world-history-atlas-root.atlas-focus-mode .map-grid, .world-history-atlas-root.atlas-focus-mode .map-pane{ min-height: 0; height: 100%; }
.world-history-atlas-root.atlas-focus-mode .timeline-panel{ max-height: 40vh; overflow: auto; }

@media (max-width: 1500px) {
  .world-history-atlas-root .parallel-history__grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .world-history-atlas-root .comparison-assessments{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .world-history-atlas-root .atlas-research-launcher, .world-history-atlas-root .research-panel__intro, .world-history-atlas-root .research-workbench__header{ flex-direction: column; }
  .world-history-atlas-root .research-launcher__buttons{ justify-content: flex-start; }
  .world-history-atlas-root .research-tabs{ grid-template-columns: repeat(2, 1fr); }
  .world-history-atlas-root .research-tabs button:nth-child(2){ border-right: 0; }
  .world-history-atlas-root .genealogy-explorer, .world-history-atlas-root .flood-explorer, .world-history-atlas-root .tour-layout{ grid-template-columns: 1fr; }
  .world-history-atlas-root .genealogy-focus, .world-history-atlas-root .flood-selection, .world-history-atlas-root .tour-player{ position: static; }
  .world-history-atlas-root .genealogy-branch-grid{ grid-template-columns: 1fr; }
  .world-history-atlas-root .flood-tradition-list{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world-history-atlas-root .parallel-history__grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .world-history-atlas-root .timeline-lane{ grid-template-columns: 125px minmax(0, 1fr); }
  .world-history-atlas-root .comparison-assessments{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .world-history-atlas-root .atlas-research-launcher{ align-items: stretch; }
  .world-history-atlas-root .research-launcher__buttons{ display: grid; grid-template-columns: 1fr 1fr; }
  .world-history-atlas-root .research-launcher__buttons button{ justify-content: flex-start; }
  .world-history-atlas-root .parallel-history__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world-history-atlas-root .timeline-lanes__heading span{ display: none; }
  .world-history-atlas-root .timeline-lane{ grid-template-columns: 92px minmax(0, 1fr); }
  .world-history-atlas-root .timeline-lane__label{ font-size: .58rem; padding: 6px; }
  .world-history-atlas-root .research-workbench__header{ padding: 20px 17px 14px; }
  .world-history-atlas-root .research-workbench__status{ white-space: normal; }
  .world-history-atlas-root .research-tabs{ grid-template-columns: 1fr; }
  .world-history-atlas-root .research-tabs button{ border-right: 0; border-bottom: 1px solid var(--atlas-line); justify-content: flex-start; }
  .world-history-atlas-root .research-panel{ padding: 17px 12px 22px; }
  .world-history-atlas-root .research-controls{ width: 100%; }
  .world-history-atlas-root .research-controls label{ flex: 1 1 100%; }
  .world-history-atlas-root .genealogy-search-results, .world-history-atlas-root .genealogy-descendant-list--expanded, .world-history-atlas-root .flood-tradition-list, .world-history-atlas-root .tour-list, .world-history-atlas-root .antediluvian-comparison, .world-history-atlas-root .comparison-assessments{ grid-template-columns: 1fr; }
  .world-history-atlas-root .segmented-control{ border-radius: 10px; flex-wrap: wrap; }
  .world-history-atlas-root .segmented-control button{ flex: 1 1 50%; border-bottom: 1px solid var(--atlas-line); }
  .world-history-atlas-root .keyboard-shortcuts > div, .world-history-atlas-root .keyboard-shortcuts > div:has(kbd + kbd){ grid-template-columns: auto 1fr; }
  .world-history-atlas-root .keyboard-shortcuts > div:has(kbd + kbd) span{ grid-column: 1 / -1; }
}


/* Semantic comparison matrix: Genesis meanings beside Sumerian meanings */
.world-history-atlas-root .comparison-assessments.is-semantic-matrix{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.world-history-atlas-root .semantic-pair{
  border: 1px solid var(--atlas-border, rgba(76, 56, 39, .2));
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(246,238,220,.86));
  padding: 14px;
  box-shadow: 0 8px 20px rgba(49, 37, 27, .06);
}
.world-history-atlas-root .semantic-pair__head{ display:flex; align-items:center; gap:9px; margin-bottom:10px; }
.world-history-atlas-root .semantic-pair__head > span{ display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#e8dcc4; font-weight:800; }
.world-history-atlas-root .semantic-pair__head > strong{ font-size:.76rem; text-transform:uppercase; letter-spacing:.05em; color:#70583f; }
.world-history-atlas-root .semantic-pair__sides{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.world-history-atlas-root .semantic-pair__sides section{ border-left:3px solid #79506f; padding-left:10px; min-width:0; }
.world-history-atlas-root .semantic-pair__sides section + section{ border-left-color:#9a673d; }
.world-history-atlas-root .semantic-pair__sides small{ color:var(--atlas-muted, #6f655b); text-transform:uppercase; letter-spacing:.06em; }
.world-history-atlas-root .semantic-pair__sides h4{ margin:3px 0 5px; }
.world-history-atlas-root .semantic-pair__sides p, .world-history-atlas-root .semantic-pair__note{ margin:0; font-size:.9rem; line-height:1.45; }
.world-history-atlas-root .semantic-pair__note{ margin-top:11px; padding-top:10px; border-top:1px dashed rgba(76,56,39,.22); color:var(--atlas-muted, #62584f); }
.world-history-atlas-root .semantic-pair--conceptual_role_overlap_not_lexical_identity{ border-color:#79506f; box-shadow:0 9px 24px rgba(121,80,111,.14); }
.world-history-atlas-root .semantic-pair--role_parallel_without_name_equation{ border-color:#3e6d78; }
@media (max-width: 1100px) { .world-history-atlas-root .comparison-assessments.is-semantic-matrix{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 680px) { .world-history-atlas-root .comparison-assessments.is-semantic-matrix{ grid-template-columns:1fr; } .world-history-atlas-root .semantic-pair__sides{ grid-template-columns:1fr; } }


/* Flood corpus coverage and explicit source gaps */
.world-history-atlas-root .flood-coverage-summary{ margin: 12px 0 14px; padding: 12px 14px; border: 1px solid rgba(76,56,39,.18); border-radius: 15px; background: rgba(250,246,235,.78); }
.world-history-atlas-root .flood-coverage-summary p{ margin: 9px 0 0; color: var(--atlas-muted, #655b50); font-size: .9rem; }
.world-history-atlas-root .coverage-chip-row{ display:flex; flex-wrap:wrap; gap:7px; }
.world-history-atlas-root .coverage-chip-row span{ display:inline-flex; align-items:center; gap:5px; border-radius:999px; padding:5px 9px; background:#ebe2cf; font-size:.78rem; text-transform:capitalize; }
.world-history-atlas-root .coverage-chip-row strong{ display:grid; place-items:center; min-width:20px; height:20px; border-radius:50%; background:#4b6b72; color:white; font-size:.72rem; }
.world-history-atlas-root .coverage-chip-row .is-gap{ border:1px dashed #9f6b51; background:#fff6ec; color:#7b4c36; }
.world-history-atlas-root .coverage-chip-row .is-gap strong{ background:#9f6b51; }

/* ============================================================
   WH-MB1 2.3 — Evidence, Dynasties & Synchronisms workspace
   ============================================================ */
.world-history-atlas-root .atlas-evidence-workspace{
  margin: 22px 0;
  border: 1px solid var(--atlas-line);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,253,247,.98), rgba(245,238,224,.96));
  box-shadow: 0 20px 48px rgba(55,41,28,.08);
}
.world-history-atlas-root .evidence-workspace__header{
  display:flex; justify-content:space-between; gap:22px; align-items:flex-start;
  padding:24px 26px 18px;
  border-bottom:1px solid var(--atlas-line);
  background: radial-gradient(circle at top right, rgba(132,99,58,.10), transparent 42%);
}
.world-history-atlas-root .evidence-workspace__header h2{ margin:3px 0 8px; font-size:clamp(1.55rem,2.6vw,2.35rem); }
.world-history-atlas-root .evidence-workspace__header p{ margin:0; max-width:78ch; color:var(--atlas-muted); }
.world-history-atlas-root .evidence-workspace__mini-stats{ display:grid; grid-template-columns:repeat(3, minmax(90px,1fr)); gap:7px; min-width:min(390px,42vw); }
.world-history-atlas-root .evidence-workspace__mini-stats div{ border:1px solid var(--atlas-line); border-radius:14px; background:#fffdf7; padding:10px 11px; }
.world-history-atlas-root .evidence-workspace__mini-stats strong{ display:block; font-size:1.12rem; }
.world-history-atlas-root .evidence-workspace__mini-stats span{ display:block; margin-top:2px; color:var(--atlas-muted); font:600 .68rem system-ui,sans-serif; text-transform:uppercase; letter-spacing:.05em; }
.world-history-atlas-root .evidence-tabs{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); border-bottom:1px solid var(--atlas-line); background:rgba(235,226,207,.7); }
.world-history-atlas-root .evidence-tabs button{ border:0; border-right:1px solid var(--atlas-line); background:transparent; padding:12px 8px; cursor:pointer; color:var(--atlas-muted); font:700 .75rem system-ui,sans-serif; }
.world-history-atlas-root .evidence-tabs button:last-child{ border-right:0; }
.world-history-atlas-root .evidence-tabs button.is-active{ background:#fffdf7; color:var(--atlas-brown-dark); box-shadow:inset 0 -3px 0 #7c5732; }
.world-history-atlas-root .evidence-panel{ padding:20px 22px 26px; }
.world-history-atlas-root .evidence-panel__intro{ display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:16px; }
.world-history-atlas-root .evidence-panel__intro h3{ margin:0 0 6px; font-size:1.25rem; }
.world-history-atlas-root .evidence-panel__intro p{ margin:0; max-width:80ch; color:var(--atlas-muted); }
.world-history-atlas-root .evidence-panel__intro .research-controls{ max-width:620px; }
.world-history-atlas-root .sync-readout, .world-history-atlas-root .period-readout{ display:flex; gap:10px; align-items:center; margin:0 0 14px; }
.world-history-atlas-root .sync-readout > div, .world-history-atlas-root .period-readout{ border:1px solid var(--atlas-line); border-radius:12px; padding:8px 11px; background:#fffdf7; }
.world-history-atlas-root .sync-readout span, .world-history-atlas-root .period-readout span{ display:block; color:var(--atlas-muted); font:600 .62rem system-ui,sans-serif; text-transform:uppercase; letter-spacing:.05em; }
.world-history-atlas-root .sync-readout strong, .world-history-atlas-root .period-readout strong{ display:block; margin-top:2px; }
.world-history-atlas-root .sync-readout__metric{ display:grid; grid-template-columns:auto auto; gap:5px; align-items:baseline; }
.world-history-atlas-root .synchronism-grid{ display:grid; gap:13px; }
.world-history-atlas-root .sync-lane{ display:grid; grid-template-columns:190px minmax(0,1fr); gap:12px; border-top:1px dashed var(--atlas-line); padding-top:12px; }
.world-history-atlas-root .sync-lane:first-child{ border-top:0; }
.world-history-atlas-root .sync-lane > header{ padding:5px 0; }
.world-history-atlas-root .sync-lane > header h3{ margin:0 0 4px; font-size:.95rem; }
.world-history-atlas-root .sync-lane > header span{ color:var(--atlas-muted); font:.63rem system-ui,sans-serif; text-transform:uppercase; }
.world-history-atlas-root .sync-lane__cards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(205px,1fr)); gap:9px; }
.world-history-atlas-root .sync-card{ border:1px solid var(--atlas-line); border-radius:14px; background:#fffdf8; padding:11px; min-width:0; }
.world-history-atlas-root .sync-card__eyebrow{ color:#7a654e; font:700 .6rem system-ui,sans-serif; text-transform:uppercase; letter-spacing:.045em; }
.world-history-atlas-root .sync-card h4{ margin:4px 0 2px; font-size:1rem; }
.world-history-atlas-root .sync-card__range{ color:#8b6034; font-weight:700; font-size:.8rem; }
.world-history-atlas-root .sync-card p{ margin:5px 0 7px; color:var(--atlas-muted); font-size:.82rem; }
.world-history-atlas-root .evidence-chip{ display:inline-flex; margin:2px 4px 2px 0; padding:3px 6px; border-radius:999px; background:#eee3d1; font:600 .59rem system-ui,sans-serif; }
.world-history-atlas-root .evidence-chip--bible{ background:#e4e7d6; color:#4c5f3e; }
.world-history-atlas-root .sync-card__actions{ display:flex; gap:5px; margin-top:8px; }
.world-history-atlas-root .sync-card__actions button, .world-history-atlas-root .period-card button, .world-history-atlas-root .detail-actions button, .world-history-atlas-root .embedded-claims button{ border:1px solid var(--atlas-line); border-radius:999px; background:#faf4e8; padding:5px 8px; cursor:pointer; font:600 .62rem system-ui,sans-serif; color:var(--atlas-ink); }
.world-history-atlas-root .evidence-empty{ color:var(--atlas-muted); font-style:italic; }
.world-history-atlas-root .claim-workspace, .world-history-atlas-root .place-workspace{ display:grid; grid-template-columns:minmax(260px,.85fr) minmax(0,1.5fr); gap:14px; align-items:start; }
.world-history-atlas-root .claim-list, .world-history-atlas-root .place-name-list{ display:grid; gap:6px; max-height:620px; overflow:auto; padding-right:3px; }
.world-history-atlas-root .claim-list-item, .world-history-atlas-root .place-name-item, .world-history-atlas-root .witness-card{ width:100%; text-align:left; border:1px solid var(--atlas-line); border-radius:11px; background:#fffdf8; padding:9px 10px; cursor:pointer; color:var(--atlas-ink); }
.world-history-atlas-root .claim-list-item:hover, .world-history-atlas-root .claim-list-item.is-active, .world-history-atlas-root .place-name-item:hover, .world-history-atlas-root .place-name-item.is-active, .world-history-atlas-root .witness-card:hover, .world-history-atlas-root .witness-card.is-active{ border-color:#8a6641; background:#f3e7d2; }
.world-history-atlas-root .claim-list-item span, .world-history-atlas-root .place-name-item span, .world-history-atlas-root .witness-card span{ display:block; font-size:.78rem; line-height:1.35; }
.world-history-atlas-root .claim-list-item small, .world-history-atlas-root .place-name-item small{ display:block; margin-top:4px; color:var(--atlas-muted); font:600 .58rem system-ui,sans-serif; }
.world-history-atlas-root .claim-detail-pane, .world-history-atlas-root .place-name-detail, .world-history-atlas-root .witness-detail{ position:sticky; top:12px; border:1px solid var(--atlas-line); border-radius:15px; background:#fffdf8; padding:14px; }
.world-history-atlas-root .claim-detail__kicker{ color:#7b5d3e; font:700 .62rem system-ui,sans-serif; text-transform:uppercase; letter-spacing:.06em; }
.world-history-atlas-root .claim-detail h3, .world-history-atlas-root .claim-detail-pane h3, .world-history-atlas-root .place-name-detail h3, .world-history-atlas-root .witness-detail h3{ margin:5px 0 9px; }
.world-history-atlas-root .evidence-path{ display:grid; gap:6px; padding-left:0; list-style:none; }
.world-history-atlas-root .evidence-path li{ border-left:3px solid #8b6a44; padding:6px 0 6px 9px; }
.world-history-atlas-root .evidence-path li strong, .world-history-atlas-root .evidence-path li span{ display:block; }
.world-history-atlas-root .evidence-path li span{ color:var(--atlas-muted); font-size:.78rem; }
.world-history-atlas-root .stable-id{ display:block; margin-top:10px; padding:7px 8px; overflow-wrap:anywhere; border-radius:8px; background:#eee8dd; color:#594a3a; font-size:.67rem; }
.world-history-atlas-root .evidence-subheading{ margin:16px 0 8px; }
.world-history-atlas-root .witness-list{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.world-history-atlas-root .witness-detail{ position:static; margin-top:8px; }
.world-history-atlas-root .four-time-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.world-history-atlas-root .four-time-grid > div{ border:1px solid var(--atlas-line); border-radius:10px; padding:8px; background:#faf5ea; }
.world-history-atlas-root .four-time-grid span, .world-history-atlas-root .four-time-grid strong, .world-history-atlas-root .four-time-grid small{ display:block; }
.world-history-atlas-root .four-time-grid span{ color:var(--atlas-muted); font:600 .6rem system-ui,sans-serif; text-transform:uppercase; }
.world-history-atlas-root .four-time-grid small{ margin-top:4px; color:var(--atlas-muted); }
.world-history-atlas-root .dynasty-timeline{ border:1px solid var(--atlas-line); border-radius:15px; background:#fffdf8; padding:14px; }
.world-history-atlas-root .list-series-header{ display:flex; justify-content:space-between; gap:15px; align-items:flex-start; }
.world-history-atlas-root .list-series-header h3{ margin:0; }
.world-history-atlas-root .list-series-header p{ margin:3px 0 0; color:var(--atlas-muted); font-size:.75rem; }
.world-history-atlas-root .reign-axis{ position:relative; min-height:150px; margin:16px 0; border:1px solid var(--atlas-line); border-radius:12px; background:linear-gradient(90deg,rgba(139,106,68,.04),rgba(139,106,68,.10)); overflow:hidden; }
.world-history-atlas-root .reign-bar{ position:absolute; left:var(--left); width:max(var(--width),8px); top:calc(8px + (var(--row,0) * 25px)); height:22px; border:0; border-radius:5px; background:#7b5a39; color:#fff; cursor:pointer; overflow:hidden; padding:0 5px; font:600 .56rem system-ui,sans-serif; white-space:nowrap; text-overflow:ellipsis; }
.world-history-atlas-root .reign-bar:nth-child(3n/**/+2){ top:38px; background:#3f6d76; }
.world-history-atlas-root .reign-bar:nth-child(3n/**/+3){ top:68px; background:#7a566d; }
.world-history-atlas-root .reign-table{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.world-history-atlas-root .reign-table button{ display:grid; grid-template-columns:1fr auto; gap:3px 8px; border:1px solid var(--atlas-line); background:#fff; border-radius:9px; padding:7px 8px; text-align:left; cursor:pointer; color:var(--atlas-ink); }
.world-history-atlas-root .reign-table button small{ grid-column:1/-1; color:var(--atlas-muted); }
.world-history-atlas-root .place-name-list{ grid-template-columns:repeat(2,minmax(0,1fr)); max-height:680px; }
.world-history-atlas-root .place-aliases{ display:grid; gap:6px; }
.world-history-atlas-root .place-aliases button{ display:grid; grid-template-columns:1fr auto; gap:2px 8px; border:1px solid var(--atlas-line); background:#fbf6eb; border-radius:9px; padding:7px; text-align:left; cursor:pointer; }
.world-history-atlas-root .place-aliases button span{ color:var(--atlas-muted); font-size:.72rem; }
.world-history-atlas-root .place-aliases button small{ grid-column:1/-1; color:#815c35; }
.world-history-atlas-root .period-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.world-history-atlas-root .period-card{ border:1px solid var(--atlas-line); border-radius:12px; background:#fffdf8; padding:10px; }
.world-history-atlas-root .period-card__region{ color:#7b5d3e; font:700 .59rem system-ui,sans-serif; text-transform:uppercase; }
.world-history-atlas-root .period-card h4{ margin:4px 0; }
.world-history-atlas-root .period-card p, .world-history-atlas-root .period-card small, .world-history-atlas-root .period-card a{ display:block; margin:3px 0; }
.world-history-atlas-root .period-card small{ color:var(--atlas-muted); }
.world-history-atlas-root .period-card a{ color:#5a6d78; font-size:.72rem; }
.world-history-atlas-root .quality-summary{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; }
.world-history-atlas-root .quality-metric{ border:1px solid var(--atlas-line); border-radius:12px; background:#fffdf8; padding:10px; }
.world-history-atlas-root .quality-metric strong{ display:block; font-size:1.25rem; }
.world-history-atlas-root .quality-metric span, .world-history-atlas-root .quality-metric small{ display:block; color:var(--atlas-muted); font-size:.68rem; }
.world-history-atlas-root .quality-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:14px; }
.world-history-atlas-root .quality-grid section{ border:1px solid var(--atlas-line); border-radius:12px; background:#fffdf8; padding:11px; }
.world-history-atlas-root .quality-grid h4{ margin:0 0 7px; }
.world-history-atlas-root .quality-bars{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px 12px; }
.world-history-atlas-root .quality-bars div{ display:flex; justify-content:space-between; gap:7px; border-bottom:1px dashed var(--atlas-line); padding:4px 0; font-size:.73rem; }
.world-history-atlas-root .quality-priorities{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.world-history-atlas-root .quality-priorities article{ border:1px solid var(--atlas-line); border-radius:11px; padding:9px; background:#fffdf8; }
.world-history-atlas-root .quality-priorities article > span{ float:right; color:#8a5e37; font:700 .57rem system-ui,sans-serif; text-transform:uppercase; }
.world-history-atlas-root .quality-priorities article p{ margin:5px 0 0; color:var(--atlas-muted); font-size:.78rem; }
.world-history-atlas-root .quality-downloads{ display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.world-history-atlas-root .quality-downloads a{ border:1px solid var(--atlas-line); border-radius:999px; padding:6px 10px; background:#f7efdf; font:600 .68rem system-ui,sans-serif; color:var(--atlas-ink); }
.world-history-atlas-root .embedded-claims{ display:grid; gap:7px; }
.world-history-atlas-root .embedded-claims article{ border:1px solid var(--atlas-line); border-radius:9px; padding:8px; background:#fbf6eb; }
.world-history-atlas-root .embedded-claims article strong, .world-history-atlas-root .embedded-claims article span{ display:block; }
.world-history-atlas-root .embedded-claims article span{ margin-top:4px; color:var(--atlas-muted); font-size:.72rem; }
.world-history-atlas-root .embedded-claims article button{ margin-top:6px; }
@media (max-width:1200px) {
  .world-history-atlas-root .evidence-workspace__header, .world-history-atlas-root .evidence-panel__intro{ flex-direction:column; }
  .world-history-atlas-root .evidence-workspace__mini-stats{ min-width:0; width:100%; }
  .world-history-atlas-root .evidence-tabs{ grid-template-columns:repeat(3,1fr); }
  .world-history-atlas-root .claim-workspace, .world-history-atlas-root .place-workspace{ grid-template-columns:1fr; }
  .world-history-atlas-root .claim-detail-pane, .world-history-atlas-root .place-name-detail{ position:static; }
  .world-history-atlas-root .period-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .world-history-atlas-root .quality-summary{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .world-history-atlas-root .reign-table{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:720px) {
  .world-history-atlas-root .evidence-panel{ padding:15px 11px 20px; }
  .world-history-atlas-root .evidence-tabs{ grid-template-columns:1fr 1fr; }
  .world-history-atlas-root .sync-lane{ grid-template-columns:1fr; }
  .world-history-atlas-root .sync-lane__cards, .world-history-atlas-root .period-grid, .world-history-atlas-root .quality-grid, .world-history-atlas-root .quality-priorities, .world-history-atlas-root .quality-summary, .world-history-atlas-root .reign-table, .world-history-atlas-root .place-name-list, .world-history-atlas-root .four-time-grid, .world-history-atlas-root .witness-list{ grid-template-columns:1fr; }
  .world-history-atlas-root .evidence-workspace__mini-stats{ grid-template-columns:repeat(3,1fr); }
}

/* ============================================================
   WH-MB2 / 2.4.0 — Temporal cartography & best-in-class map UX
   ============================================================ */
.world-history-atlas-root .mb2-map-controls{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.world-history-atlas-root .mb2-theme-field select, .world-history-atlas-root #compareLayoutSelect{ min-width: 132px; }
.world-history-atlas-root[data-map-theme="scholar"]{
  --atlas-bg:#e8ece7; --atlas-paper:#f7faf5; --atlas-paper-strong:#ffffff; --atlas-ink:#21302c; --atlas-muted:#5d6e68;
  --atlas-line:#c7d0c9; --atlas-line-dark:#93a299; --atlas-brown:#4c6a60; --atlas-brown-dark:#2d4a41; --atlas-gold:#a47b2e;
}
.world-history-atlas-root[data-map-theme="dark"]{
  --atlas-bg:#171b1e; --atlas-paper:#20262a; --atlas-paper-strong:#252c31; --atlas-ink:#f0e7d2; --atlas-muted:#b8ad98;
  --atlas-line:#465057; --atlas-line-dark:#647078; --atlas-brown:#d1a664; --atlas-brown-dark:#f1c477; --atlas-gold:#d8ad54;
  --atlas-blue:#78b5c1; --atlas-green:#83ad7d; --atlas-red:#d17f79; --atlas-violet:#a89ada;
  background: radial-gradient(circle at 15% 0%, #293137 0, transparent 38rem), linear-gradient(180deg,#161a1d 0%,#101315 100%);
}
.world-history-atlas-root[data-map-theme="dark"] .atlas-hero__copy, .world-history-atlas-root[data-map-theme="dark"] .atlas-hero__chronology, .world-history-atlas-root[data-map-theme="dark"] .atlas-intro-notice, .world-history-atlas-root[data-map-theme="dark"] .atlas-sidebar, .world-history-atlas-root[data-map-theme="dark"] .atlas-stage-card, .world-history-atlas-root[data-map-theme="dark"] .atlas-methodology article, .world-history-atlas-root[data-map-theme="dark"] .atlas-source-reader, .world-history-atlas-root[data-map-theme="dark"] .atlas-footer, .world-history-atlas-root[data-map-theme="dark"] .atlas-research-workbench, .world-history-atlas-root[data-map-theme="dark"] .atlas-evidence-workspace{ background:rgba(31,37,41,.96); }
.world-history-atlas-root[data-map-theme="dark"] input, .world-history-atlas-root[data-map-theme="dark"] select, .world-history-atlas-root[data-map-theme="dark"] button:not(.atlas-button--primary){ color:var(--atlas-ink); background:#252c31; border-color:#505a61; }
.world-history-atlas-root[data-map-theme="dark"] .chronology-card:not(.chronology-card--primary), .world-history-atlas-root[data-map-theme="dark"] .detail-tab-panel, .world-history-atlas-root[data-map-theme="dark"] .source-card{ background:#262d31; }

.world-history-atlas-root .map-grid{ position:relative; }
.world-history-atlas-root .map-grid.is-swipe-comparing{ display:block; min-height:520px; overflow:hidden; }
.world-history-atlas-root .map-grid.is-swipe-comparing .map-pane--primary{ width:100%; min-height:520px; }
.world-history-atlas-root .map-grid.is-swipe-comparing .map-pane--comparison.is-swipe-overlay{ display:block !important; position:absolute; inset:0; width:100%; height:100%; z-index:4; border:0; background:transparent; pointer-events:auto; }
.world-history-atlas-root .map-grid.is-swipe-comparing .map-pane--comparison .atlas-map{ min-height:520px; height:100%; }
.world-history-atlas-root .map-grid.is-swipe-comparing .map-pane__label{ z-index:7; }
.world-history-atlas-root .swipe-divider{ position:absolute; inset:0; pointer-events:none; z-index:8; }
.world-history-atlas-root .swipe-divider__line{ position:absolute; top:0; bottom:0; left:var(--swipe-position,50%); width:2px; transform:translateX(-1px); background:#fff6dc; box-shadow:0 0 0 1px rgba(61,42,23,.55),0 0 16px rgba(0,0,0,.22); }
.world-history-atlas-root .swipe-divider__handle{ position:absolute; left:var(--swipe-position,50%); top:50%; transform:translate(-50%,-50%); width:42px; height:42px; display:grid; place-items:center; border-radius:999px; background:#fff5dc; color:#4d301b; border:2px solid #6d4a28; box-shadow:0 6px 18px rgba(0,0,0,.24); font-family:system-ui,sans-serif; font-weight:800; }
.world-history-atlas-root .swipe-divider input{ pointer-events:auto; appearance:none; -webkit-appearance:none; position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:ew-resize; margin:0; }

.world-history-atlas-root .temporal-cartography{ margin-top:14px; border:1px solid var(--atlas-line); border-radius:16px; background:rgba(255,250,240,.74); overflow:hidden; }
.world-history-atlas-root .temporal-cartography > summary{ list-style:none; cursor:pointer; padding:14px 16px; display:flex; justify-content:space-between; gap:18px; align-items:center; border-bottom:1px solid transparent; }
.world-history-atlas-root .temporal-cartography[open] > summary{ border-bottom-color:var(--atlas-line); }
.world-history-atlas-root .temporal-cartography > summary::-webkit-details-marker{ display:none; }
.world-history-atlas-root .temporal-cartography > summary > span:first-child{ display:grid; gap:2px; }
.world-history-atlas-root .temporal-cartography__status{ font:700 .78rem/1.2 system-ui,sans-serif; color:var(--atlas-brown); border:1px solid var(--atlas-line); border-radius:999px; padding:7px 10px; background:var(--atlas-paper-strong); }
.world-history-atlas-root .temporal-cartography__body{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:12px; }
.world-history-atlas-root .temporal-cartography__body > section{ min-width:0; border:1px solid var(--atlas-line); border-radius:14px; padding:13px; background:var(--atlas-paper-strong); box-shadow:var(--atlas-shadow-small); }
.world-history-atlas-root .time-lens, .world-history-atlas-root .follow-history{ grid-column:1 / -1; }
.world-history-atlas-root .temporal-section-heading{ display:flex; justify-content:space-between; gap:12px; align-items:flex-start; margin-bottom:10px; }
.world-history-atlas-root .temporal-section-heading h3{ margin:2px 0 0; font-size:1.05rem; line-height:1.15; }
.world-history-atlas-root .temporal-section-kicker{ display:block; color:var(--atlas-brown); font:800 .68rem/1.2 system-ui,sans-serif; letter-spacing:.08em; }
.world-history-atlas-root .time-lens__readout{ display:flex; flex-wrap:wrap; gap:10px; align-items:baseline; padding:8px 0 6px; }
.world-history-atlas-root .time-lens__readout strong{ font-size:1.05rem; }
.world-history-atlas-root .time-lens__readout span:last-child{ margin-left:auto; color:var(--atlas-muted); font:700 .8rem/1.2 system-ui,sans-serif; }
.world-history-atlas-root .dual-range{ position:relative; height:34px; margin:4px 0 7px; }
.world-history-atlas-root .dual-range__track, .world-history-atlas-root .dual-range__fill{ position:absolute; left:0; right:0; top:15px; height:5px; border-radius:999px; background:#d9ccb5; }
.world-history-atlas-root .dual-range__fill{ right:auto; background:linear-gradient(90deg,var(--atlas-brown),var(--atlas-gold)); }
.world-history-atlas-root .dual-range input[type="range"]{ position:absolute; inset:0; width:100%; height:34px; margin:0; background:transparent; pointer-events:none; appearance:none; -webkit-appearance:none; }
.world-history-atlas-root .dual-range input[type="range"]::-webkit-slider-thumb{ -webkit-appearance:none; pointer-events:auto; width:18px; height:18px; border-radius:50%; background:#fff7e8; border:2px solid var(--atlas-brown); box-shadow:0 2px 7px rgba(0,0,0,.18); cursor:ew-resize; }
.world-history-atlas-root .dual-range input[type="range"]::-moz-range-thumb{ pointer-events:auto; width:16px; height:16px; border-radius:50%; background:#fff7e8; border:2px solid var(--atlas-brown); box-shadow:0 2px 7px rgba(0,0,0,.18); cursor:ew-resize; }
.world-history-atlas-root .dual-range input[type="range"]::-moz-range-track{ background:transparent; border:0; }
.world-history-atlas-root .time-lens__presets{ display:flex; flex-wrap:wrap; gap:6px; }
.world-history-atlas-root .time-lens__presets button, .world-history-atlas-root .follow-controls button, .world-history-atlas-root .point-history__controls button{ border:1px solid var(--atlas-line); background:var(--atlas-paper); color:var(--atlas-ink); border-radius:999px; padding:6px 9px; cursor:pointer; }

.world-history-atlas-root .change-summary{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; margin-bottom:9px; }
.world-history-atlas-root .change-stat{ min-width:0; border:1px solid var(--atlas-line); border-radius:10px; background:var(--atlas-paper); color:var(--atlas-ink); padding:7px 4px; display:grid; justify-items:center; cursor:default; }
.world-history-atlas-root .change-stat strong{ font-size:1.05rem; }
.world-history-atlas-root .change-stat span{ font:600 .68rem/1.1 system-ui,sans-serif; color:var(--atlas-muted); text-align:center; }
.world-history-atlas-root .change-stat--new{ border-color:rgba(44,139,88,.48); }
.world-history-atlas-root .change-stat--ended{ border-color:rgba(155,63,55,.52); }
.world-history-atlas-root .change-stat--transformed{ border-color:rgba(194,140,44,.58); }
.world-history-atlas-root .change-stat--transient{ border-color:rgba(118,80,154,.48); }
.world-history-atlas-root .change-list{ display:grid; gap:5px; max-height:280px; overflow:auto; }
.world-history-atlas-root .change-row{ display:grid; grid-template-columns:auto 1fr; gap:2px 8px; text-align:left; border:0; border-top:1px dashed var(--atlas-line); background:transparent; color:var(--atlas-ink); padding:7px 2px; cursor:pointer; }
.world-history-atlas-root .change-row:first-child{ border-top:0; }
.world-history-atlas-root .change-row__status{ grid-row:1 / span 2; align-self:center; padding:3px 6px; border-radius:999px; font:800 .62rem/1.1 system-ui,sans-serif; background:#efe3ce; color:#62411f; }
.world-history-atlas-root .change-row span:last-child{ color:var(--atlas-muted); font-size:.78rem; }
.world-history-atlas-root .change-row--new .change-row__status{ background:#dcefe2; color:#205b38; }
.world-history-atlas-root .change-row--ended .change-row__status{ background:#f0dedd; color:#7c2f2a; }
.world-history-atlas-root .change-row--transformed .change-row__status{ background:#f4e7c7; color:#72500d; }
.world-history-atlas-root .change-row--transient .change-row__status{ background:#e9def1; color:#5f397d; }

.world-history-atlas-root .follow-controls{ display:grid; grid-template-columns:minmax(170px,1fr) minmax(180px,1fr) auto auto auto; gap:7px; align-items:center; }
.world-history-atlas-root .follow-controls label, .world-history-atlas-root .point-history__controls label{ font:700 .74rem/1.2 system-ui,sans-serif; color:var(--atlas-muted); }
.world-history-atlas-root .follow-controls select, .world-history-atlas-root .point-history__controls select{ width:100%; }
.world-history-atlas-root .follow-progress{ display:flex; gap:4px; align-items:center; min-height:22px; margin:10px 0 7px; overflow:auto; padding-bottom:2px; }
.world-history-atlas-root .follow-dot{ flex:0 0 auto; width:11px; height:11px; border-radius:50%; border:1px solid var(--atlas-line-dark); background:#d8c9aa; padding:0; cursor:pointer; }
.world-history-atlas-root .follow-dot.is-active{ width:17px; border-radius:999px; background:var(--atlas-brown); }
.world-history-atlas-root .follow-card{ display:grid; gap:3px; border-left:3px solid var(--atlas-gold); padding:7px 10px; background:rgba(196,155,82,.08); }
.world-history-atlas-root .follow-card__eyebrow{ color:var(--atlas-brown); font:800 .7rem/1.2 system-ui,sans-serif; text-transform:uppercase; }
.world-history-atlas-root .follow-card > span:not(.follow-card__eyebrow){ color:var(--atlas-muted); font-size:.82rem; }
.world-history-atlas-root .follow-card p{ margin:4px 0 0; }

.world-history-atlas-root .point-history__controls{ display:grid; grid-template-columns:auto minmax(100px,1fr) auto; gap:7px; align-items:center; margin-bottom:8px; }
.world-history-atlas-root #pointHistoryCoords{ color:var(--atlas-muted); font:700 .75rem/1.2 system-ui,sans-serif; }
.world-history-atlas-root .point-history__timeline{ display:grid; gap:10px; max-height:330px; overflow:auto; }
.world-history-atlas-root .point-century{ border-left:2px solid var(--atlas-line-dark); padding-left:9px; }
.world-history-atlas-root .point-century h4{ margin:0 0 4px; color:var(--atlas-brown); }
.world-history-atlas-root .point-century button{ display:grid; width:100%; gap:1px; text-align:left; border:0; background:transparent; color:var(--atlas-ink); padding:4px 0; cursor:pointer; }
.world-history-atlas-root .point-century button span{ color:var(--atlas-muted); font-size:.76rem; }
.world-history-atlas-root.point-history-armed .maplibregl-canvas{ cursor:crosshair !important; }

.world-history-atlas-root .connections-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; max-height:330px; overflow:auto; }
.world-history-atlas-root .connection-card{ min-width:0; display:grid; gap:2px; text-align:left; padding:8px; border:1px solid var(--atlas-line); border-radius:9px; background:var(--atlas-paper); color:var(--atlas-ink); cursor:pointer; }
.world-history-atlas-root .connection-card span, .world-history-atlas-root .connection-card small{ color:var(--atlas-muted); overflow:hidden; text-overflow:ellipsis; }

.world-history-atlas-root.atlas-analytical-3d .atlas-map{ box-shadow:inset 0 0 48px rgba(37,30,22,.18); }
.world-history-atlas-root.atlas-analytical-3d .map-pane__label::after{ content:" · 3D"; color:var(--atlas-gold); }

@media (max-width: 1100px) {
  .world-history-atlas-root .temporal-cartography__body{ grid-template-columns:1fr; }
  .world-history-atlas-root .time-lens, .world-history-atlas-root .follow-history{ grid-column:auto; }
  .world-history-atlas-root .change-summary{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width: 700px) {
  .world-history-atlas-root .mb2-map-controls{ width:100%; }
  .world-history-atlas-root .temporal-section-heading{ flex-direction:column; }
  .world-history-atlas-root .follow-controls{ grid-template-columns:1fr auto auto auto; }
  .world-history-atlas-root .follow-controls label{ grid-column:1 / -1; }
  .world-history-atlas-root .follow-controls select{ grid-column:1; }
  .world-history-atlas-root .connections-grid{ grid-template-columns:1fr; }
  .world-history-atlas-root .change-summary{ grid-template-columns:repeat(2,1fr); }
  .world-history-atlas-root .map-grid.is-swipe-comparing, .world-history-atlas-root .map-grid.is-swipe-comparing .map-pane--primary, .world-history-atlas-root .map-grid.is-swipe-comparing .map-pane--comparison .atlas-map{ min-height:430px; }
}
.world-history-atlas-root .research-launcher__link{ display:inline-flex; align-items:center; gap:7px; border:1px solid var(--atlas-line); border-radius:999px; padding:8px 11px; background:#fffdf7; color:var(--atlas-ink); text-decoration:none; font:700 .72rem system-ui,sans-serif; }
.world-history-atlas-root .research-launcher__link:hover{ background:#f3e7d2; border-color:#8a6641; }
.world-history-atlas-root .synchronism-toolbar, .world-history-atlas-root .period-toolbar{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin:0 0 12px; color:var(--atlas-muted); }
.world-history-atlas-root .synchronism-toolbar strong, .world-history-atlas-root .period-toolbar strong{ color:var(--atlas-ink); margin-left:6px; }
.world-history-atlas-root .witness-list{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:8px; }

/* WH-MB3 · Primary sources, scripts and material culture */
.world-history-atlas-root .atlas-material-workspace{margin:2rem auto;padding:1.25rem;border:1px solid var(--border,#d6ccb8);border-radius:22px;background:linear-gradient(180deg,rgba(255,252,245,.98),rgba(247,240,227,.98));box-shadow:0 18px 50px rgba(50,40,27,.08)}
.world-history-atlas-root .material-workspace__header{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.world-history-atlas-root .material-workspace__header h2{margin:.25rem 0 .5rem;font-size:clamp(1.7rem,3vw,2.6rem)}.world-history-atlas-root .material-workspace__header p{max-width:76ch;color:var(--muted,#6e6254)}
.world-history-atlas-root .material-workspace__stats{display:grid;grid-template-columns:repeat(2,minmax(110px,1fr));gap:.55rem;min-width:300px}.world-history-atlas-root .material-workspace__stats div{padding:.75rem;border:1px solid var(--border,#d6ccb8);border-radius:14px;background:rgba(255,255,255,.55)}.world-history-atlas-root .material-workspace__stats strong{display:block;font-size:1.25rem}.world-history-atlas-root .material-workspace__stats span{font-size:.8rem;color:var(--muted,#6e6254)}
.world-history-atlas-root .mc-rights-policy{margin:.85rem 0;padding:.7rem .9rem;border-left:4px solid #8a6a34;background:rgba(138,106,52,.08);font-size:.9rem}
.world-history-atlas-root .material-tabs{display:flex;gap:.4rem;overflow:auto;padding:.2rem 0 .9rem}.world-history-atlas-root .material-tabs button{border:1px solid var(--border,#d6ccb8);background:#fffaf0;border-radius:999px;padding:.65rem .95rem;white-space:nowrap;cursor:pointer}.world-history-atlas-root .material-tabs button.is-active{background:#4b3a24;color:#fff;border-color:#4b3a24}
.world-history-atlas-root .material-panel[hidden]{display:none}.world-history-atlas-root .material-panel__intro{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin:.4rem 0 1rem}.world-history-atlas-root .material-panel__intro h3{margin:0 0 .35rem}.world-history-atlas-root .material-panel__intro p{margin:0;color:var(--muted,#6e6254);max-width:72ch}.world-history-atlas-root .material-countline{display:flex;gap:.4rem;align-items:baseline;margin:.5rem 0}.world-history-atlas-root .material-countline strong{font-size:1.2rem}
.world-history-atlas-root .mc-split{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(0,1.6fr);gap:1rem;align-items:start}.world-history-atlas-root .mc-list{display:grid;gap:.55rem;max-height:720px;overflow:auto;padding-right:.25rem}.world-history-atlas-root .mc-list-card{display:grid;gap:.18rem;text-align:left;padding:.75rem .85rem;border:1px solid var(--border,#d6ccb8);background:rgba(255,255,255,.6);border-radius:14px;cursor:pointer;color:inherit}.world-history-atlas-root .mc-list-card:hover, .world-history-atlas-root .mc-list-card.is-active{border-color:#7f6034;background:#fff}.world-history-atlas-root .mc-list-card strong{font-size:.98rem}.world-history-atlas-root .mc-list-card span, .world-history-atlas-root .mc-list-card small{color:var(--muted,#6e6254)}.world-history-atlas-root .mc-card-kicker{text-transform:uppercase;letter-spacing:.07em;font-size:.68rem!important}
.world-history-atlas-root .mc-detail{min-height:360px;padding:1rem;border:1px solid var(--border,#d6ccb8);border-radius:16px;background:rgba(255,255,255,.62)}.world-history-atlas-root .mc-object-head{display:flex;justify-content:space-between;gap:1rem}.world-history-atlas-root .mc-object-head h3, .world-history-atlas-root .mc-detail h3{margin:.2rem 0 .45rem}.world-history-atlas-root .mc-date-badge{font-size:.8rem;padding:.4rem .6rem;background:#efe4cd;border-radius:999px;height:max-content;white-space:nowrap}
.world-history-atlas-root .mc-visual{margin:.8rem 0 1rem;border:1px solid var(--border,#d6ccb8);border-radius:14px;overflow:hidden;background:#ede8de}.world-history-atlas-root .mc-visual img{display:block;width:100%;max-height:480px;object-fit:contain;background:#e8e2d7}.world-history-atlas-root .mc-visual figcaption{padding:.55rem .7rem;font-size:.78rem;color:var(--muted,#6e6254)}.world-history-atlas-root .mc-visual-placeholder, .world-history-atlas-root .mc-rights-box{margin:.8rem 0;padding:1rem;border:1px dashed #aa9676;border-radius:14px;background:#f7f0e4;color:var(--muted,#6e6254)}
.world-history-atlas-root .mc-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;margin:1rem 0}.world-history-atlas-root .mc-meta div{padding:.55rem .65rem;background:rgba(246,241,232,.8);border-radius:10px}.world-history-atlas-root .mc-meta dt{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted,#6e6254)}.world-history-atlas-root .mc-meta dd{margin:.15rem 0 0}.world-history-atlas-root .mc-source-links{margin:.8rem 0;font-size:.85rem;line-height:1.7}.world-history-atlas-root .mc-source-links a{color:#60461e}.world-history-atlas-root .mc-actions{display:flex;gap:.5rem;flex-wrap:wrap}.world-history-atlas-root .mc-actions button, .world-history-atlas-root .mc-actions .button-link{border:1px solid #8a6a34;background:#fffaf0;color:#49361c;border-radius:999px;padding:.55rem .8rem;text-decoration:none;cursor:pointer}.world-history-atlas-root .mc-note{padding:.7rem .8rem;background:#f5ead3;border-radius:10px}.world-history-atlas-root .mc-script-sample{font-size:clamp(1.5rem,4vw,3rem);padding:1rem;margin:.6rem 0;background:#f2eadb;border-radius:12px;line-height:1.25;overflow-wrap:anywhere}
.world-history-atlas-root .mc-script-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,.8fr);gap:1rem}.world-history-atlas-root .mc-script-graph{overflow:auto;border:1px solid var(--border,#d6ccb8);border-radius:16px;background:#fbf6ed}.world-history-atlas-root .mc-script-graph svg{width:100%;min-width:900px;min-height:520px}.world-history-atlas-root .mc-script-edge{fill:none;stroke:#927650;stroke-width:1.4;opacity:.65}.world-history-atlas-root .mc-script-edge.confidence-low{stroke-dasharray:3 5;opacity:.4}.world-history-atlas-root .mc-script-edge.confidence-medium{stroke-dasharray:8 4}.world-history-atlas-root .mc-script-node{cursor:pointer}.world-history-atlas-root .mc-script-node circle{fill:#5c4221;stroke:#fff;stroke-width:2}.world-history-atlas-root .mc-script-node text{font:12px system-ui,sans-serif;fill:#352a1e;paint-order:stroke;stroke:#fffaf0;stroke-width:3px}
@media(max-width:980px){.world-history-atlas-root .material-workspace__header, .world-history-atlas-root .material-panel__intro{display:block}.world-history-atlas-root .material-workspace__stats{margin-top:1rem;min-width:0}.world-history-atlas-root .mc-split, .world-history-atlas-root .mc-script-layout{grid-template-columns:1fr}.world-history-atlas-root .mc-list{max-height:420px}.world-history-atlas-root .mc-meta{grid-template-columns:1fr}}


/* === World History 3.0 platform === */
.world-history-atlas-root .experience-mode-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:1rem 0;padding:1rem 1.15rem;border:1px solid var(--atlas-border,#c9bda8);background:rgba(255,250,241,.92);border-radius:16px}.world-history-atlas-root .experience-mode-buttons{display:flex;gap:.45rem;flex-wrap:wrap}.world-history-atlas-root .experience-mode-buttons button, .world-history-atlas-root .platform-tabs button, .world-history-atlas-root .church-mode-toolbar button, .world-history-atlas-root .collections-toolbar button, .world-history-atlas-root .file-button{border:1px solid #bcae96;background:#fffaf0;color:#342b22;border-radius:999px;padding:.55rem .85rem;cursor:pointer}.world-history-atlas-root .experience-mode-buttons button.is-active, .world-history-atlas-root .platform-tabs button.is-active{background:#513b68;color:#fff;border-color:#513b68}.world-history-atlas-root .atlas-platform-workspace{margin:1.5rem 0;border:1px solid #cbbda8;border-radius:20px;background:#fffaf2;box-shadow:0 18px 50px rgba(50,37,25,.08);overflow:hidden}.world-history-atlas-root .platform-workspace__header{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;padding:1.35rem 1.5rem;background:linear-gradient(135deg,#f7ecd7,#efe5f4)}.world-history-atlas-root .platform-workspace__header h2{margin:.25rem 0 .5rem}.world-history-atlas-root .platform-workspace__header p{max-width:78ch;margin:0;color:#665b50}.world-history-atlas-root .platform-mini-stats{display:grid;grid-template-columns:repeat(2,minmax(100px,1fr));gap:.55rem}.world-history-atlas-root .platform-mini-stats div{background:rgba(255,255,255,.72);border:1px solid #d5c8b5;border-radius:12px;padding:.7rem}.world-history-atlas-root .platform-mini-stats strong, .world-history-atlas-root .platform-mini-stats span{display:block}.world-history-atlas-root .platform-mini-stats strong{font-size:1.25rem}.world-history-atlas-root .platform-mini-stats span{font-size:.78rem;color:#6c6157}.world-history-atlas-root .platform-tabs{display:flex;gap:.5rem;flex-wrap:wrap;padding:.9rem 1.2rem;border-top:1px solid #d8cbb7;border-bottom:1px solid #d8cbb7;background:#f8f1e6}.world-history-atlas-root .platform-panel{padding:1.25rem 1.4rem}.world-history-atlas-root .platform-panel__intro{display:flex;justify-content:space-between;gap:1rem;align-items:flex-end;flex-wrap:wrap;margin-bottom:1rem}.world-history-atlas-root .platform-panel__intro h3{margin:0 0 .35rem}.world-history-atlas-root .platform-panel__intro p{margin:0;color:#6c6157}.world-history-atlas-root .p3-split{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(350px,1.1fr);gap:1rem}.world-history-atlas-root .p3-card-list{display:grid;gap:.65rem;max-height:680px;overflow:auto;padding-right:.25rem}.world-history-atlas-root .p3-card{border:1px solid #d7c9b6;border-radius:13px;background:#fff;padding:.8rem .9rem;cursor:pointer}.world-history-atlas-root .p3-card:hover, .world-history-atlas-root .p3-card.is-active{border-color:#76558d;background:#fbf7ff}.world-history-atlas-root .p3-card small{display:block;color:#74675d;margin-top:.3rem}.world-history-atlas-root .p3-detail{border:1px solid #d7c9b6;border-radius:14px;background:#fff;padding:1rem;min-height:300px}.world-history-atlas-root .p3-detail h3{margin-top:0}.world-history-atlas-root .prophecy-symbol-table{width:100%;border-collapse:collapse;margin:.8rem 0}.world-history-atlas-root .prophecy-symbol-table th, .world-history-atlas-root .prophecy-symbol-table td{padding:.5rem;border-bottom:1px solid #e5dbcc;text-align:left;vertical-align:top}.world-history-atlas-root .church-mode-toolbar{display:flex;justify-content:space-between;gap:.7rem;align-items:center;margin:.5rem 0 1rem}.world-history-atlas-root .learning-layout, .world-history-atlas-root .collections-layout{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.world-history-atlas-root .learning-course-list, .world-history-atlas-root .collection-list{display:grid;gap:.65rem}.world-history-atlas-root .learning-course, .world-history-atlas-root .saved-view-card, .world-history-atlas-root .tour-step-card{border:1px solid #d7c9b6;border-radius:12px;padding:.8rem;background:#fff}.world-history-atlas-root .quiz-player{border:1px solid #d7c9b6;border-radius:14px;padding:1rem;background:#fff;min-height:320px}.world-history-atlas-root .quiz-options{display:grid;gap:.55rem;margin:.8rem 0}.world-history-atlas-root .quiz-options button{text-align:left;border:1px solid #d7c9b6;background:#fffaf2;border-radius:10px;padding:.65rem;cursor:pointer}.world-history-atlas-root .quiz-options button.correct{background:#e6f3e6;border-color:#7aa57a}.world-history-atlas-root .quiz-options button.wrong{background:#f8e5e2;border-color:#b97a72}.world-history-atlas-root .collections-toolbar{display:flex;gap:.55rem;flex-wrap:wrap;margin-bottom:1rem}.world-history-atlas-root .custom-tour-builder{display:grid;gap:.6rem}.world-history-atlas-root .export-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:.7rem}.world-history-atlas-root .export-grid button{border:1px solid #cfc0aa;border-radius:14px;background:#fff;padding:1rem;text-align:left;cursor:pointer}.world-history-atlas-root .export-grid button strong, .world-history-atlas-root .export-grid button span{display:block}.world-history-atlas-root .export-grid button strong{font-size:1.15rem;margin-bottom:.25rem}.world-history-atlas-root .export-grid button span{color:#6f6256;font-size:.85rem}.world-history-atlas-root .embed-output{margin-top:1rem}.world-history-atlas-root .embed-output textarea{width:100%;min-height:110px}.world-history-atlas-root .offline-status{margin-top:.9rem;color:#5b4d41}.world-history-atlas-root.atlas-discover-mode .atlas-evidence-workspace, .world-history-atlas-root.atlas-discover-mode .atlas-material-workspace, .world-history-atlas-root.atlas-discover-mode .atlas-platform-workspace .platform-tabs button[data-p3-tab="collections"], .world-history-atlas-root.atlas-discover-mode .atlas-platform-workspace .platform-tabs button[data-p3-tab="export"]{display:none}.world-history-atlas-root.atlas-research-mode .atlas-evidence-workspace, .world-history-atlas-root.atlas-research-mode .atlas-material-workspace{display:block}.world-history-atlas-root.presentation-mode .atlas-sidebar, .world-history-atlas-root.presentation-mode .atlas-research-launcher, .world-history-atlas-root.presentation-mode .experience-mode-bar, .world-history-atlas-root.presentation-mode .atlas-methodology, .world-history-atlas-root.presentation-mode .atlas-source-reader, .world-history-atlas-root.presentation-mode footer{display:none!important}.world-history-atlas-root.presentation-mode .atlas-workspace{grid-template-columns:1fr}.world-history-atlas-root.presentation-mode .atlas-stage-card{min-height:92vh}.world-history-atlas-root.presentation-mode .atlas-map{min-height:70vh}@media print{.world-history-atlas-root .atlas-research-launcher, .world-history-atlas-root .experience-mode-bar, .world-history-atlas-root .atlas-sidebar, .world-history-atlas-root .atlas-hero__actions, .world-history-atlas-root .platform-tabs, .world-history-atlas-root .collections-toolbar, .world-history-atlas-root .export-grid{display:none!important}.world-history-atlas-root .atlas-page{width:100%!important}.world-history-atlas-root .atlas-map{min-height:520px}.world-history-atlas-root .atlas-platform-workspace, .world-history-atlas-root .atlas-material-workspace, .world-history-atlas-root .atlas-evidence-workspace{break-inside:avoid}}@media(max-width:900px){.world-history-atlas-root .p3-split, .world-history-atlas-root .learning-layout, .world-history-atlas-root .collections-layout{grid-template-columns:1fr}.world-history-atlas-root .export-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}.world-history-atlas-root .platform-workspace__header{display:block}.world-history-atlas-root .platform-mini-stats{margin-top:1rem}}

/* MB5 political chronology */
.world-history-atlas-root .political-chronology-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}.world-history-atlas-root .political-list{display:grid;gap:.45rem;max-height:32rem;overflow:auto;padding-right:.25rem}.world-history-atlas-root .political-record{display:grid;grid-template-columns:8rem 1fr;gap:.25rem .75rem;text-align:left;padding:.75rem;border:1px solid var(--atlas-line,#d7c9aa);border-radius:.65rem;background:var(--atlas-panel,#fffdf8);color:inherit}.world-history-atlas-root .political-record>span{grid-row:1/3;font-variant-numeric:tabular-nums;font-weight:700}.world-history-atlas-root .political-record small{opacity:.7}.world-history-atlas-root .political-record:hover, .world-history-atlas-root .political-record:focus-visible{outline:2px solid currentColor;outline-offset:1px}.world-history-atlas-root .political-record--assembly{border-style:dashed}@media(max-width:850px){.world-history-atlas-root .political-chronology-grid{grid-template-columns:1fr}.world-history-atlas-root .political-record{grid-template-columns:6.5rem 1fr}}

/* WH-MB6 / 3.3.0 — Deep Historical Geography & Networks */
.world-history-atlas-root .mb6-inline-controls{display:contents}.world-history-atlas-root .mb6-inline-controls .is-active{background:#5d4778;color:#fff;border-color:#5d4778}.world-history-atlas-root .mb6-workbench{margin:1rem;border:1px solid var(--atlas-line,#d7c9aa);border-radius:16px;background:rgba(255,251,243,.98);overflow:hidden}.world-history-atlas-root .mb6-workbench__header{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;padding:1rem 1.1rem;background:linear-gradient(135deg,#f3ead9,#eee8f4)}.world-history-atlas-root .mb6-workbench__header h3{margin:.18rem 0 .35rem}.world-history-atlas-root .mb6-workbench__header p{max-width:76ch;margin:0;color:var(--atlas-muted,#6d6257)}.world-history-atlas-root .mb6-metrics{display:grid;grid-template-columns:repeat(2,minmax(90px,1fr));gap:.45rem}.world-history-atlas-root .mb6-metrics span{display:grid;padding:.55rem .65rem;border:1px solid rgba(91,63,37,.18);border-radius:10px;background:rgba(255,255,255,.68);font-size:.72rem;color:var(--atlas-muted,#6d6257)}.world-history-atlas-root .mb6-metrics strong{font-size:1.1rem;color:var(--atlas-ink,#352a1e)}.world-history-atlas-root .mb6-workbench__grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(380px,1.2fr);gap:1rem;padding:1rem}.world-history-atlas-root .mb6-card{border:1px solid var(--atlas-line,#d7c9aa);border-radius:12px;padding:.9rem;background:#fffdf8}.world-history-atlas-root .mb6-card h4{margin:0 0 .45rem}.world-history-atlas-root .mb6-card ul{padding-left:1.15rem}.world-history-atlas-root .mb6-caution{padding:.6rem .7rem;border-left:3px solid #a27a3c;background:#f8efde;color:#655643;font-size:.82rem}.world-history-atlas-root .mb6-overlay-card label{font:700 .76rem/1.2 system-ui,sans-serif;color:var(--atlas-muted,#6d6257)}.world-history-atlas-root .mb6-overlay-card select{width:100%;margin:.25rem 0 .65rem}.world-history-atlas-root .mb6-swipe{--mb6-swipe:50%;position:relative;aspect-ratio:3/2;overflow:hidden;border:1px solid var(--atlas-line,#d7c9aa);border-radius:10px;background:#ebe4d7}.world-history-atlas-root .mb6-swipe img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#f6f0e5}.world-history-atlas-root .mb6-swipe__top{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--mb6-swipe)) 0 0);overflow:hidden}.world-history-atlas-root .mb6-swipe__top img{filter:saturate(.82) contrast(1.04)}.world-history-atlas-root .mb6-swipe i{position:absolute;top:0;bottom:0;left:var(--mb6-swipe);width:2px;background:#fff;box-shadow:0 0 0 1px rgba(50,35,20,.45);pointer-events:none}.world-history-atlas-root .mb6-overlay-sliders{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin:.65rem 0}.world-history-atlas-root .mb6-overlay-sliders label{display:grid;gap:.2rem}.world-history-atlas-root .mb6-overlay-sliders input{width:100%}@media(max-width:900px){.world-history-atlas-root .mb6-workbench__header{display:block}.world-history-atlas-root .mb6-metrics{margin-top:.8rem;grid-template-columns:repeat(4,1fr)}.world-history-atlas-root .mb6-workbench__grid{grid-template-columns:1fr}}@media(max-width:650px){.world-history-atlas-root .mb6-metrics{grid-template-columns:repeat(2,1fr)}.world-history-atlas-root .mb6-overlay-sliders{grid-template-columns:1fr}}

/* WH-MB7 / 3.4.0 — Civilisation, Society, Economy & Environment */
.world-history-atlas-root .mb7-inline-controls{display:contents}.world-history-atlas-root .mb7-inline-controls .is-active{background:var(--atlas-blue);color:#fff;border-color:var(--atlas-blue)}
.world-history-atlas-root .mb7-workbench{margin:1rem;border:1px solid var(--atlas-line);border-radius:18px;background:rgba(255,251,243,.98);overflow:hidden;box-shadow:var(--atlas-shadow-small)}
.world-history-atlas-root .mb7-workbench__header{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;padding:1.15rem 1.25rem;background:linear-gradient(135deg,#f2ead9,#e7eff0)}
.world-history-atlas-root .mb7-workbench__header h3{margin:.18rem 0 .35rem;font-size:clamp(1.35rem,2.1vw,1.9rem)}.world-history-atlas-root .mb7-workbench__header p{max-width:88ch;margin:0;color:var(--atlas-muted)}
.world-history-atlas-root .mb7-tabs{display:flex;gap:.45rem;flex-wrap:wrap;padding:.8rem 1rem;border-top:1px solid var(--atlas-line);border-bottom:1px solid var(--atlas-line);background:#f8f1e5}.world-history-atlas-root .mb7-tabs button{border:1px solid var(--atlas-line-dark);background:#fffaf0;color:var(--atlas-ink);border-radius:999px;padding:.52rem .78rem;cursor:pointer;font:700 .76rem/1.2 system-ui,sans-serif}.world-history-atlas-root .mb7-tabs button.is-active{background:var(--atlas-blue);color:#fff;border-color:var(--atlas-blue)}
.world-history-atlas-root .mb7-content{padding:1rem}.world-history-atlas-root .mb7-metric-grid{display:grid;grid-template-columns:repeat(6,minmax(110px,1fr));gap:.55rem;margin-bottom:1rem}.world-history-atlas-root .mb7-metric-grid span{display:grid;gap:.12rem;padding:.68rem .75rem;border:1px solid var(--atlas-line);border-radius:12px;background:#fffdf8;color:var(--atlas-muted);font:600 .73rem/1.25 system-ui,sans-serif}.world-history-atlas-root .mb7-metric-grid strong{font:700 1.2rem/1.1 Georgia,serif;color:var(--atlas-ink)}
.world-history-atlas-root .mb7-panel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-bottom:.9rem}.world-history-atlas-root .mb7-card, .world-history-atlas-root .mb7-life-card, .world-history-atlas-root .mb7-compare-card{border:1px solid var(--atlas-line);border-radius:13px;background:#fffdf8;padding:.9rem}.world-history-atlas-root .mb7-card h4, .world-history-atlas-root .mb7-life-card h4, .world-history-atlas-root .mb7-compare-card h4{margin:.2rem 0 .45rem}.world-history-atlas-root .mb7-card p, .world-history-atlas-root .mb7-life-card p, .world-history-atlas-root .mb7-compare-card p{margin:.4rem 0}.world-history-atlas-root .mb7-card__eyebrow{display:flex;gap:.4rem;align-items:center;color:var(--atlas-muted);font:700 .72rem/1.2 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.045em}
.world-history-atlas-root .mb7-evidence{display:inline-flex;align-items:center;border-radius:999px;padding:.18rem .46rem;font:800 .65rem/1.1 system-ui,sans-serif;letter-spacing:.02em;border:1px solid currentColor}.world-history-atlas-root .mb7-evidence--measured{color:#35604d;background:#edf5ef}.world-history-atlas-root .mb7-evidence--estimated{color:#805f27;background:#fbf2df}.world-history-atlas-root .mb7-evidence--qualitative{color:#5e4f82;background:#f0edf7}.world-history-atlas-root .mb7-evidence--catalogued{color:#2f6570;background:#e9f1f2}
.world-history-atlas-root .mb7-life-meta, .world-history-atlas-root .mb7-source-line{color:var(--atlas-muted);font-size:.82rem}.world-history-atlas-root .mb7-life-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin-top:.75rem}.world-history-atlas-root .mb7-life-grid section{padding:.75rem;border-radius:10px;background:#f6efe2}.world-history-atlas-root .mb7-life-grid strong{font:800 .76rem/1.2 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.035em}.world-history-atlas-root .mb7-life-grid p{margin:.35rem 0 0}.world-history-atlas-root .mb7-source-line code{display:inline-block;margin:.15rem .2rem .15rem 0;padding:.12rem .32rem;border-radius:5px;background:#eee6d8;color:#554636;font-size:.74rem}
.world-history-atlas-root .mb7-table-wrap{overflow:auto;border:1px solid var(--atlas-line);border-radius:12px;background:#fff}.world-history-atlas-root .mb7-table{width:100%;border-collapse:collapse;min-width:610px}.world-history-atlas-root .mb7-table th, .world-history-atlas-root .mb7-table td{padding:.55rem .65rem;border-bottom:1px solid #e8ddca;text-align:left;vertical-align:top}.world-history-atlas-root .mb7-table th{position:sticky;top:0;background:#f5ecdc;font:800 .72rem/1.2 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.035em}.world-history-atlas-root .mb7-table td{font-size:.85rem}.world-history-atlas-root .mb7-table tr:last-child td{border-bottom:0}
.world-history-atlas-root .mb7-reference-strip{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin:.8rem 0}.world-history-atlas-root .mb7-reference-strip span{padding:.65rem .75rem;border:1px dashed var(--atlas-line-dark);border-radius:10px;background:#faf5ea;font-size:.82rem}.world-history-atlas-root .mb7-comparison-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}.world-history-atlas-root .mb7-compare-card code{font-size:.72rem;overflow-wrap:anywhere}.world-history-atlas-root .mb7-caution{padding:.7rem .8rem;border-left:3px solid var(--atlas-gold);background:#f8efde;color:#655643;font-size:.83rem;margin:.8rem 0}
@media(max-width:1100px){.world-history-atlas-root .mb7-metric-grid{grid-template-columns:repeat(3,1fr)}.world-history-atlas-root .mb7-comparison-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:780px){.world-history-atlas-root .mb7-workbench__header{display:block}.world-history-atlas-root .mb7-workbench__header button{margin-top:.7rem}.world-history-atlas-root .mb7-panel-grid, .world-history-atlas-root .mb7-life-grid, .world-history-atlas-root .mb7-reference-strip, .world-history-atlas-root .mb7-comparison-grid{grid-template-columns:1fr}.world-history-atlas-root .mb7-metric-grid{grid-template-columns:repeat(2,1fr)}}

/* WH-MB8 / 3.5.0 — People, Biography, Genealogy & Institutions */
.world-history-atlas-root .mb8-inline-controls{display:contents}.world-history-atlas-root .mb8-inline-controls .is-active{background:var(--atlas-blue);color:#fff;border-color:var(--atlas-blue)}
.world-history-atlas-root .mb8-workbench{margin:1rem;border:1px solid var(--atlas-line);border-radius:18px;background:rgba(255,252,246,.99);overflow:hidden;box-shadow:var(--atlas-shadow-small)}
.world-history-atlas-root .mb8-workbench__header{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;padding:1.15rem 1.25rem;background:linear-gradient(135deg,#efe5d8,#e7eef0)}.world-history-atlas-root .mb8-workbench__header h3{margin:.18rem 0 .35rem;font-size:clamp(1.35rem,2.1vw,1.9rem)}.world-history-atlas-root .mb8-workbench__header p{max-width:92ch;margin:0;color:var(--atlas-muted)}
.world-history-atlas-root .mb8-tabs{display:flex;gap:.42rem;flex-wrap:wrap;padding:.8rem 1rem;border-top:1px solid var(--atlas-line);border-bottom:1px solid var(--atlas-line);background:#f8f1e5}.world-history-atlas-root .mb8-tabs button{border:1px solid var(--atlas-line-dark);background:#fffaf0;color:var(--atlas-ink);border-radius:999px;padding:.52rem .78rem;cursor:pointer;font:700 .75rem/1.2 system-ui,sans-serif}.world-history-atlas-root .mb8-tabs button.is-active{background:var(--atlas-blue);color:#fff;border-color:var(--atlas-blue)}
.world-history-atlas-root .mb8-content{padding:1rem}.world-history-atlas-root .mb8-metrics, .world-history-atlas-root .mb8-relation-metrics{display:grid;grid-template-columns:repeat(6,minmax(110px,1fr));gap:.55rem;margin-bottom:1rem}.world-history-atlas-root .mb8-metrics span, .world-history-atlas-root .mb8-relation-metrics span{display:grid;gap:.12rem;padding:.68rem .75rem;border:1px solid var(--atlas-line);border-radius:12px;background:#fffdf8;color:var(--atlas-muted);font:600 .72rem/1.25 system-ui,sans-serif}.world-history-atlas-root .mb8-metrics strong, .world-history-atlas-root .mb8-relation-metrics strong{font:700 1.18rem/1.1 Georgia,serif;color:var(--atlas-ink)}
.world-history-atlas-root .mb8-grid, .world-history-atlas-root .mb8-dynasty-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.world-history-atlas-root .mb8-card{border:1px solid var(--atlas-line);border-radius:13px;background:#fffdf8;padding:.9rem}.world-history-atlas-root .mb8-card h4{margin:.2rem 0 .45rem}.world-history-atlas-root .mb8-card p{margin:.42rem 0}.world-history-atlas-root .mb8-card__eyebrow{color:var(--atlas-muted);font:800 .7rem/1.2 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.045em}.world-history-atlas-root .mb8-card code{overflow-wrap:anywhere;font-size:.75rem}.world-history-atlas-root .mb8-card ul, .world-history-atlas-root .mb8-card ol{padding-left:1.2rem}.world-history-atlas-root .mb8-card li{margin:.25rem 0}
.world-history-atlas-root .mb8-guard{padding:.75rem .85rem;border-left:3px solid var(--atlas-gold);background:#f8efde;color:#615340;font-size:.84rem;margin:.75rem 0}.world-history-atlas-root .mb8-inference-label{display:inline-flex;border:1px solid #8b5f2c;background:#fff1d8;color:#754816;border-radius:999px;padding:.25rem .5rem;font:900 .68rem/1.1 system-ui,sans-serif;letter-spacing:.04em}
.world-history-atlas-root .mb8-split{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(340px,1.15fr);gap:.85rem}.world-history-atlas-root .mb8-toolbar{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap;margin-bottom:.7rem}.world-history-atlas-root .mb8-toolbar input{flex:1 1 260px;min-width:0;border:1px solid var(--atlas-line-dark);border-radius:10px;background:#fff;padding:.65rem .75rem}.world-history-atlas-root .mb8-toolbar span{color:var(--atlas-muted);font-size:.8rem}.world-history-atlas-root .mb8-toolbar button, .world-history-atlas-root .mb8-actions button, .world-history-atlas-root .mb8-dynasty-grid button, .world-history-atlas-root .mb8-card li button{border:1px solid var(--atlas-line-dark);background:#fffaf0;border-radius:8px;padding:.35rem .52rem;cursor:pointer;color:var(--atlas-ink)}
.world-history-atlas-root .mb8-person-list{display:grid;gap:.35rem;max-height:620px;overflow:auto;padding-right:.2rem}.world-history-atlas-root .mb8-person-row{width:100%;display:flex;justify-content:space-between;gap:.8rem;text-align:left;border:1px solid var(--atlas-line);border-radius:9px;background:#fffdf8;padding:.55rem .62rem;cursor:pointer;color:var(--atlas-ink)}.world-history-atlas-root .mb8-person-row:hover, .world-history-atlas-root .mb8-person-row.is-selected{border-color:var(--atlas-blue);background:#eef3f3}.world-history-atlas-root .mb8-person-row span:first-child{display:grid}.world-history-atlas-root .mb8-person-row small{color:var(--atlas-muted);font-size:.7rem}.world-history-atlas-root .mb8-person-row span:last-child{white-space:nowrap;color:var(--atlas-muted);font-size:.75rem}.world-history-atlas-root .mb8-actions{display:flex;gap:.45rem;flex-wrap:wrap;margin-top:.7rem}
.world-history-atlas-root .mb8-table-wrap{overflow:auto;border:1px solid var(--atlas-line);border-radius:12px;background:#fff}.world-history-atlas-root .mb8-table-wrap table{width:100%;border-collapse:collapse;min-width:760px}.world-history-atlas-root .mb8-table-wrap th, .world-history-atlas-root .mb8-table-wrap td{padding:.5rem .62rem;border-bottom:1px solid #e8ddca;text-align:left;vertical-align:top}.world-history-atlas-root .mb8-table-wrap th{position:sticky;top:0;background:#f5ecdc;font:800 .7rem/1.2 system-ui,sans-serif;text-transform:uppercase}.world-history-atlas-root .mb8-table-wrap td{font-size:.82rem}.world-history-atlas-root .mb8-empty{padding:1rem;color:var(--atlas-muted);border:1px dashed var(--atlas-line-dark);border-radius:10px}
@media(max-width:1100px){.world-history-atlas-root .mb8-metrics, .world-history-atlas-root .mb8-relation-metrics{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){.world-history-atlas-root .mb8-workbench__header{display:block}.world-history-atlas-root .mb8-workbench__header button{margin-top:.7rem}.world-history-atlas-root .mb8-grid, .world-history-atlas-root .mb8-dynasty-grid, .world-history-atlas-root .mb8-split{grid-template-columns:1fr}.world-history-atlas-root .mb8-metrics, .world-history-atlas-root .mb8-relation-metrics{grid-template-columns:repeat(2,1fr)}}

/* WH-MB9 / 4.0.0 — Grand Atlas Research, Query & Publication Platform */
.world-history-atlas-root .atlas-skip-link{position:fixed;left:14px;top:10px;z-index:5000;transform:translateY(-180%);padding:.7rem 1rem;border:2px solid var(--atlas-brown-dark);border-radius:9px;background:#fff;color:var(--atlas-ink);font:800 .85rem/1.2 system-ui,sans-serif;text-decoration:none}.world-history-atlas-root .atlas-skip-link:focus{transform:none}
.world-history-atlas-root :where(button,a,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #276c84;outline-offset:3px}
.world-history-atlas-root .mb9-workbench{margin:1rem;border:1px solid var(--atlas-line);border-radius:20px;background:rgba(255,252,246,.99);overflow:hidden;box-shadow:var(--atlas-shadow)}
.world-history-atlas-root .mb9-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;padding:1.2rem 1.3rem;background:linear-gradient(135deg,#eee3d4,#e5eff0)}.world-history-atlas-root .mb9-head h2{margin:.15rem 0 .4rem;font-size:clamp(1.45rem,2.4vw,2.15rem)}.world-history-atlas-root .mb9-head p{max-width:96ch;margin:0;color:var(--atlas-muted)}.world-history-atlas-root .mb9-head__actions{display:flex;gap:.45rem;flex-wrap:wrap}.world-history-atlas-root .mb9-head__actions button, .world-history-atlas-root .mb9-searchbox button, .world-history-atlas-root .mb9-query-grid button, .world-history-atlas-root .mb9-notebook-actions button, .world-history-atlas-root .mb9-story-head button, .world-history-atlas-root .mb9-chapter button, .world-history-atlas-root .mb9-present button{border:1px solid var(--atlas-line-dark);background:#fffaf0;color:var(--atlas-ink);border-radius:9px;padding:.52rem .72rem;cursor:pointer;font:700 .76rem/1.2 system-ui,sans-serif}.world-history-atlas-root .mb9-notebook-actions .danger{border-color:#a86a63;color:#7b2d28}
.world-history-atlas-root .mb9-tabs{display:flex;gap:.42rem;flex-wrap:wrap;padding:.8rem 1rem;border-top:1px solid var(--atlas-line);border-bottom:1px solid var(--atlas-line);background:#f8f1e5}.world-history-atlas-root .mb9-tabs button{border:1px solid var(--atlas-line-dark);background:#fffaf0;color:var(--atlas-ink);border-radius:999px;padding:.54rem .8rem;cursor:pointer;font:700 .75rem/1.2 system-ui,sans-serif}.world-history-atlas-root .mb9-tabs button.is-active{background:var(--atlas-blue);border-color:var(--atlas-blue);color:#fff}
.world-history-atlas-root .mb9-panel{padding:1rem}.world-history-atlas-root .mb9-metrics{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:.55rem;margin-bottom:1rem}.world-history-atlas-root .mb9-metrics span{display:grid;gap:.14rem;padding:.7rem .76rem;border:1px solid var(--atlas-line);border-radius:12px;background:#fffdf8;color:var(--atlas-muted);font:600 .72rem/1.25 system-ui,sans-serif}.world-history-atlas-root .mb9-metrics strong{font:700 1.22rem/1.1 Georgia,serif;color:var(--atlas-ink)}
.world-history-atlas-root .mb9-searchbox, .world-history-atlas-root .mb9-story-head, .world-history-atlas-root .mb9-notebook-actions{display:flex;gap:.55rem;align-items:end;flex-wrap:wrap;margin-bottom:.8rem}.world-history-atlas-root .mb9-searchbox label, .world-history-atlas-root .mb9-story-head label{display:grid;gap:.25rem;flex:1 1 260px;color:var(--atlas-muted);font:700 .72rem/1.2 system-ui,sans-serif}.world-history-atlas-root .mb9-searchbox input, .world-history-atlas-root .mb9-story-head input, .world-history-atlas-root .mb9-query-grid input, .world-history-atlas-root .mb9-query-grid select{width:100%;border:1px solid var(--atlas-line-dark);border-radius:9px;background:#fff;padding:.64rem .72rem;color:var(--atlas-ink)}
.world-history-atlas-root .mb9-result-list{display:grid;gap:.38rem;max-height:650px;overflow:auto}.world-history-atlas-root .mb9-result{width:100%;display:flex;justify-content:space-between;gap:1rem;text-align:left;border:1px solid var(--atlas-line);border-radius:10px;background:#fffdf8;padding:.62rem .7rem;color:var(--atlas-ink);cursor:pointer}.world-history-atlas-root .mb9-result:hover{border-color:var(--atlas-blue);background:#eef4f4}.world-history-atlas-root .mb9-result>span{display:grid;min-width:0}.world-history-atlas-root .mb9-result strong, .world-history-atlas-root .mb9-result small{overflow:hidden;text-overflow:ellipsis}.world-history-atlas-root .mb9-result small, .world-history-atlas-root .mb9-muted, .world-history-atlas-root .mb9-ranking-note{color:var(--atlas-muted);font:600 .7rem/1.35 system-ui,sans-serif}.world-history-atlas-root .mb9-ranking-note{padding:.6rem;border-left:3px solid var(--atlas-gold);background:#faf2e2}
.world-history-atlas-root .mb9-query-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:.7rem;align-items:end;margin-bottom:.9rem}.world-history-atlas-root .mb9-query-grid label{display:grid;gap:.25rem;color:var(--atlas-muted);font:700 .72rem/1.2 system-ui,sans-serif}.world-history-atlas-root .mb9-query-grid label:has(input[type=checkbox]){display:flex;align-items:center;gap:.4rem}.world-history-atlas-root .mb9-panel details{margin-top:1rem;border:1px solid var(--atlas-line);border-radius:10px;padding:.6rem .75rem;background:#fffdf8}.world-history-atlas-root .mb9-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.72rem}
.world-history-atlas-root .mb9-notebook-grid, .world-history-atlas-root .mb9-quality-grid, .world-history-atlas-root .mb9-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.world-history-atlas-root .mb9-notebook-grid>section, .world-history-atlas-root .mb9-quality-grid>article, .world-history-atlas-root .mb9-two>section{border:1px solid var(--atlas-line);border-radius:12px;background:#fffdf8;padding:.85rem}.world-history-atlas-root .mb9-notebook-grid h3, .world-history-atlas-root .mb9-quality-grid h3, .world-history-atlas-root .mb9-two h3{margin:.1rem 0 .65rem}.world-history-atlas-root .mb9-note{position:relative;border-top:1px dashed var(--atlas-line);padding:.55rem 2rem .55rem 0;display:grid;gap:.22rem}.world-history-atlas-root .mb9-note:first-of-type{border-top:0}.world-history-atlas-root .mb9-note p{margin:.2rem 0}.world-history-atlas-root .mb9-note small, .world-history-atlas-root .mb9-note code{color:var(--atlas-muted);font-size:.72rem;overflow-wrap:anywhere}.world-history-atlas-root .mb9-note>button{position:absolute;right:0;top:.45rem;border:0;background:transparent;color:var(--atlas-red);font-weight:900;cursor:pointer}
.world-history-atlas-root .mb9-prov-list{display:grid;gap:.35rem;max-height:520px;overflow:auto;margin-bottom:.85rem}.world-history-atlas-root .mb9-prov-list article{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:.2rem .7rem;padding:.55rem .65rem;border:1px solid var(--atlas-line);border-radius:9px;background:#fffdf8}.world-history-atlas-root .mb9-prov-list code{grid-column:1/-1;color:var(--atlas-muted);font-size:.68rem;overflow-wrap:anywhere}.world-history-atlas-root .mb9-prov-list span{color:var(--atlas-muted);font:600 .72rem/1.2 system-ui,sans-serif}
.world-history-atlas-root .mb9-chapter{display:grid;grid-template-columns:auto 1fr auto;gap:.75rem;align-items:start;border:1px solid var(--atlas-line);border-radius:11px;background:#fffdf8;padding:.72rem;margin:.45rem 0}.world-history-atlas-root .mb9-chapter>span{display:grid;place-items:center;width:2rem;height:2rem;border-radius:50%;background:#eee2cf;font-weight:800}.world-history-atlas-root .mb9-chapter>div:nth-child(2){display:grid}.world-history-atlas-root .mb9-chapter p{margin:.25rem 0}.world-history-atlas-root .mb9-chapter small{color:var(--atlas-muted)}.world-history-atlas-root .mb9-chapter>div:last-child{display:flex;gap:.25rem;flex-wrap:wrap}
.world-history-atlas-root .mb9-command{width:min(860px,94vw);max-height:86vh;border:1px solid var(--atlas-line-dark);border-radius:18px;background:#fffaf0;color:var(--atlas-ink);padding:0;box-shadow:0 30px 90px rgba(35,27,19,.35)}.world-history-atlas-root .mb9-command::backdrop, .world-history-atlas-root .mb9-present::backdrop{background:rgba(28,22,17,.64)}.world-history-atlas-root .mb9-command__head{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.15rem;border-bottom:1px solid var(--atlas-line);background:#f2eadc}.world-history-atlas-root .mb9-command__head h2{margin:.15rem 0}.world-history-atlas-root .mb9-command__head button{border:0;background:transparent;font-size:1.6rem;cursor:pointer}.world-history-atlas-root .mb9-command__search{display:grid;gap:.25rem;padding:.9rem 1rem;color:var(--atlas-muted);font:700 .72rem/1.2 system-ui,sans-serif}.world-history-atlas-root .mb9-command__search input{width:100%;font-size:1.05rem;border:1px solid var(--atlas-line-dark);border-radius:10px;padding:.75rem;background:#fff}.world-history-atlas-root .mb9-command__filters{padding:0 1rem .8rem}.world-history-atlas-root .mb9-command .mb9-result-list{padding:0 1rem 1rem;max-height:58vh}
.world-history-atlas-root .mb9-present{width:min(760px,92vw);border:1px solid var(--atlas-line-dark);border-radius:16px;background:#fffaf0;color:var(--atlas-ink);padding:0}.world-history-atlas-root .mb9-present__bar{display:flex;align-items:center;gap:.5rem;padding:.7rem;border-bottom:1px solid var(--atlas-line);background:#f2eadc}.world-history-atlas-root .mb9-present__bar strong{margin-right:auto}.world-history-atlas-root .mb9-present>[data-body]{padding:2rem;min-height:240px}.world-history-atlas-root .mb9-present>[data-body] h2{font-size:clamp(1.7rem,4vw,3rem)}
.world-history-atlas-root.atlas-embed-mode .atlas-hero, .world-history-atlas-root.atlas-embed-mode .atlas-intro-notice, .world-history-atlas-root.atlas-embed-mode .experience-mode-bar, .world-history-atlas-root.atlas-embed-mode .atlas-research-launcher, .world-history-atlas-root.atlas-embed-mode .atlas-sidebar--layers, .world-history-atlas-root.atlas-embed-mode .atlas-methodology, .world-history-atlas-root.atlas-embed-mode .atlas-source-reader, .world-history-atlas-root.atlas-embed-mode .atlas-footer, .world-history-atlas-root.atlas-embed-mode #researchWorkbench, .world-history-atlas-root.atlas-embed-mode #evidenceWorkspace, .world-history-atlas-root.atlas-embed-mode #materialCultureWorkspace, .world-history-atlas-root.atlas-embed-mode #platform3Workspace, .world-history-atlas-root.atlas-embed-mode #mb6Workbench, .world-history-atlas-root.atlas-embed-mode #mb7Workbench, .world-history-atlas-root.atlas-embed-mode #mb8Workbench, .world-history-atlas-root.atlas-embed-mode #mb9Workbench{display:none!important}.world-history-atlas-root.atlas-embed-mode .atlas-page{width:100%;padding:0}.world-history-atlas-root.atlas-embed-mode .atlas-workspace{grid-template-columns:1fr}.world-history-atlas-root.atlas-embed-mode .atlas-stage-card{border-radius:0;margin:0;min-height:100vh}
@media(max-width:1000px){.world-history-atlas-root .mb9-metrics{grid-template-columns:repeat(3,1fr)}.world-history-atlas-root .mb9-query-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.world-history-atlas-root .mb9-head{display:block}.world-history-atlas-root .mb9-head__actions{margin-top:.7rem}.world-history-atlas-root .mb9-metrics{grid-template-columns:repeat(2,1fr)}.world-history-atlas-root .mb9-query-grid, .world-history-atlas-root .mb9-notebook-grid, .world-history-atlas-root .mb9-quality-grid, .world-history-atlas-root .mb9-two{grid-template-columns:1fr}.world-history-atlas-root .mb9-result{display:grid}.world-history-atlas-root .mb9-prov-list article{grid-template-columns:1fr}.world-history-atlas-root .mb9-chapter{grid-template-columns:auto 1fr}.world-history-atlas-root .mb9-chapter>div:last-child{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.world-history-atlas-root{scroll-behavior:auto!important}.world-history-atlas-root *, .world-history-atlas-root *::before, .world-history-atlas-root *::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}.world-history-atlas-root .maplibregl-canvas{transition:none!important}}
@media(prefers-contrast:more){.world-history-atlas-root{--atlas-line:#8b775c;--atlas-muted:#50463d}.world-history-atlas-root .mb9-result, .world-history-atlas-root .mb8-person-row, .world-history-atlas-root .mb7-card{border-width:2px}}

/* Post-4.0 Research Deepening 4.1 */
.world-history-atlas-root .post4-open{cursor:pointer}.world-history-atlas-root .post4-panel{margin:2rem auto;padding:1.25rem;width:min(96%,1500px);border:1px solid var(--line,#cfc7b8);border-radius:18px;background:var(--surface,#fff);box-shadow:0 18px 55px rgba(0,0,0,.08)}.world-history-atlas-root .post4-head{display:flex;gap:1rem;justify-content:space-between;align-items:flex-start}.world-history-atlas-root .post4-head h2{margin:.15rem 0 .35rem}.world-history-atlas-root .post4-close{font-size:1.8rem;line-height:1;border:0;background:transparent;cursor:pointer}.world-history-atlas-root .post4-tabs{display:flex;flex-wrap:wrap;gap:.45rem;margin:1rem 0}.world-history-atlas-root .post4-tabs button{padding:.55rem .8rem;border:1px solid currentColor;border-radius:999px;background:transparent;cursor:pointer}.world-history-atlas-root .post4-tabs button.is-active{font-weight:700;background:rgba(127,127,127,.12)}.world-history-atlas-root .post4-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.75rem}.world-history-atlas-root .post4-cards article, .world-history-atlas-root .post4-source-list article{padding:1rem;border:1px solid var(--line,#ddd);border-radius:14px}.world-history-atlas-root .post4-cards strong{display:block;font-size:1.65rem}.world-history-atlas-root .post4-cards span, .world-history-atlas-root .post4-cards small{display:block}.world-history-atlas-root .post4-cards small, .world-history-atlas-root .post4-source-list small, .world-history-atlas-root .post4-note{opacity:.76}.world-history-atlas-root .post4-warning{margin-top:1rem;padding:1rem;border-left:4px solid currentColor;background:rgba(127,127,127,.08)}.world-history-atlas-root .post4-source-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.75rem;margin:1rem 0}@media(max-width:700px){.world-history-atlas-root .post4-panel{width:94%;padding:.85rem}.world-history-atlas-root .post4-head{align-items:flex-start}.world-history-atlas-root .post4-tabs{overflow-x:auto;flex-wrap:nowrap}.world-history-atlas-root .post4-tabs button{white-space:nowrap}}@media(prefers-reduced-motion:reduce){.world-history-atlas-root .post4-panel *{scroll-behavior:auto!important;transition:none!important}}

/* Post-4.0 Corpus Expansion 4.2 */
.world-history-atlas-root .p42-panel{margin:2rem auto;max-width:min(96vw,1680px);padding:clamp(1rem,2vw,2rem);border:1px solid var(--line,#d6d0c4);border-radius:1rem;background:var(--paper,#fff);box-shadow:0 18px 50px rgba(0,0,0,.08)}
.world-history-atlas-root .p42-panel[hidden]{display:none}.world-history-atlas-root .p42-head{display:flex;justify-content:space-between;gap:2rem;align-items:flex-start}.world-history-atlas-root .p42-head h2{margin:.2rem 0 .5rem}.world-history-atlas-root .p42-close{font-size:1.6rem;line-height:1;border:0;background:transparent;cursor:pointer;padding:.45rem}.world-history-atlas-root .p42-open{white-space:nowrap}.world-history-atlas-root .p42-tabs{display:flex;gap:.45rem;flex-wrap:wrap;margin:1.25rem 0;border-bottom:1px solid var(--line,#ddd);padding-bottom:.75rem}.world-history-atlas-root .p42-tabs button{border:1px solid var(--line,#ddd);border-radius:999px;background:transparent;padding:.55rem .8rem;cursor:pointer}.world-history-atlas-root .p42-tabs button.is-active{font-weight:700;background:color-mix(in srgb,currentColor 8%,transparent)}
.world-history-atlas-root .p42-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem;margin:1rem 0}.world-history-atlas-root .p42-cards article{border:1px solid var(--line,#ddd);border-radius:.8rem;padding:1rem;display:flex;flex-direction:column;gap:.25rem;min-height:118px}.world-history-atlas-root .p42-cards strong{font-size:clamp(1.25rem,2vw,2rem);font-variant-numeric:tabular-nums}.world-history-atlas-root .p42-cards span{font-weight:700}.world-history-atlas-root .p42-cards small, .world-history-atlas-root .p42-note, .world-history-atlas-root .p42-list small{opacity:.78}.world-history-atlas-root .p42-guard{padding:1rem;border-left:4px solid currentColor;background:color-mix(in srgb,currentColor 5%,transparent);margin:1rem 0}.world-history-atlas-root .p42-chiprow{display:flex;flex-wrap:wrap;gap:.4rem;margin:1rem 0}.world-history-atlas-root .p42-chiprow span{border:1px solid var(--line,#ddd);border-radius:999px;padding:.35rem .6rem;font-size:.88rem}.world-history-atlas-root .p42-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.7rem;margin:1rem 0}.world-history-atlas-root .p42-list article{border:1px solid var(--line,#ddd);border-radius:.7rem;padding:.8rem}.world-history-atlas-root .p42-list h3{font-size:1rem;margin:0 0 .3rem}.world-history-atlas-root .p42-list p{margin:.2rem 0}.world-history-atlas-root .p42-field, .world-history-atlas-root .p42-local-form, .world-history-atlas-root .p42-century{display:flex;gap:.65rem;align-items:end;flex-wrap:wrap;margin:1rem 0}.world-history-atlas-root .p42-field{flex-direction:column;align-items:flex-start}.world-history-atlas-root .p42-field select, .world-history-atlas-root .p42-local-form input, .world-history-atlas-root .p42-century input{min-height:42px;border:1px solid var(--line,#bbb);border-radius:.45rem;padding:.45rem .55rem;background:inherit;color:inherit}.world-history-atlas-root .p42-local-form label, .world-history-atlas-root .p42-century label{display:flex;flex-direction:column;gap:.25rem}.world-history-atlas-root .p42-local-form button, .world-history-atlas-root .p42-century button{min-height:42px}.world-history-atlas-root .p42-local-form small{width:100%;opacity:.7}
.world-history-atlas-root .p42-panel :focus-visible, .world-history-atlas-root .p42-open:focus-visible{outline:3px solid currentColor;outline-offset:3px}
@media (max-width:700px){.world-history-atlas-root .p42-panel{max-width:100%;border-radius:.6rem}.world-history-atlas-root .p42-head{gap:.75rem}.world-history-atlas-root .p42-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:.6rem}.world-history-atlas-root .p42-tabs button{flex:0 0 auto}.world-history-atlas-root .p42-cards{grid-template-columns:1fr 1fr}.world-history-atlas-root .p42-list{grid-template-columns:1fr}}
@media (max-width:430px){.world-history-atlas-root .p42-cards{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.world-history-atlas-root .p42-panel, .world-history-atlas-root .p42-panel *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Post-4.0 4.3 — Routes, Roman Roads & Historical Map Lab */
.world-history-atlas-root .p43-open{margin:.35rem}.world-history-atlas-root .p43-workbench{width:min(97%,1800px);margin:2rem auto;border:1px solid var(--line,#c9c2b2);border-radius:18px;background:var(--panel,#fff);box-shadow:0 18px 55px rgb(0 0 0/.09);overflow:hidden}.world-history-atlas-root .p43-head{display:flex;gap:2rem;justify-content:space-between;align-items:flex-start;padding:1.4rem 1.6rem;border-bottom:1px solid var(--line,#ddd)}.world-history-atlas-root .p43-head h2{margin:.15rem 0 .45rem}.world-history-atlas-root .p43-head p{max-width:1100px;margin:0;line-height:1.55}.world-history-atlas-root .p43-close{font-size:1.7rem;line-height:1;border:0;background:transparent;cursor:pointer}.world-history-atlas-root .p43-tabs{display:flex;flex-wrap:wrap;gap:.4rem;padding:.8rem 1rem;border-bottom:1px solid var(--line,#ddd)}.world-history-atlas-root .p43-tabs button{padding:.55rem .78rem;border:1px solid var(--line,#ccc);border-radius:999px;background:transparent;cursor:pointer}.world-history-atlas-root .p43-tabs button.is-active{font-weight:700;box-shadow:inset 0 0 0 1px currentColor}.world-history-atlas-root .p43-body{padding:1.2rem 1.5rem 1.8rem}.world-history-atlas-root .p43-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.8rem;margin-bottom:1rem}.world-history-atlas-root .p43-cards article{padding:1rem;border:1px solid var(--line,#ddd);border-radius:14px}.world-history-atlas-root .p43-cards strong{display:block;font-size:1.55rem}.world-history-atlas-root .p43-cards span, .world-history-atlas-root .p43-cards small{display:block;margin-top:.2rem}.world-history-atlas-root .p43-pill{display:inline-block;padding:.2rem .48rem;border:1px solid currentColor;border-radius:999px;font-size:.78rem;margin:.12rem}.world-history-atlas-root .p43-pill.ok{font-weight:700}.world-history-atlas-root .p43-pill.warn{font-weight:700}.world-history-atlas-root .p43-pill.muted{opacity:.7}.world-history-atlas-root .p43-alert, .world-history-atlas-root .p43-rule{padding:.85rem 1rem;border-left:4px solid currentColor;background:color-mix(in srgb,currentColor 5%,transparent);line-height:1.5;margin:1rem 0}.world-history-atlas-root .p43-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:.7rem}.world-history-atlas-root .p43-list article{padding:.85rem;border:1px solid var(--line,#ddd);border-radius:12px}.world-history-atlas-root .p43-list h3{font-size:1rem;margin:0 0 .35rem}.world-history-atlas-root .p43-list p{margin:.25rem 0}.world-history-atlas-root .p43-list small{overflow-wrap:anywhere}.world-history-atlas-root .p43-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}.world-history-atlas-root .p43-actions button{padding:.55rem .75rem}.world-history-atlas-root .p43-field{display:grid;gap:.35rem;max-width:520px;margin-bottom:1rem}.world-history-atlas-root .p43-field select{padding:.6rem}.world-history-atlas-root .p43-mapgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}.world-history-atlas-root .p43-mapgrid article{border:1px solid var(--line,#ddd);border-radius:14px;padding:.8rem}.world-history-atlas-root .p43-mapgrid figure{margin:0}.world-history-atlas-root .p43-mapgrid img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;background:#efe9dc}.world-history-atlas-root .p43-mapgrid figcaption{font-size:.85rem;margin-top:.5rem}.world-history-atlas-root .p43-swipe-lab{margin-top:1.2rem;border-top:1px solid var(--line,#ddd);padding-top:1rem}.world-history-atlas-root .p43-image-stack{position:relative;max-width:1100px;aspect-ratio:1.65;margin-top:.75rem;background:#eee;overflow:hidden}.world-history-atlas-root .p43-image-stack img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.world-history-atlas-root .p43-image-stack img+img{opacity:.55}.world-history-atlas-root .p43-body code{overflow-wrap:anywhere}@media(max-width:700px){.world-history-atlas-root .p43-workbench{width:100%;border-radius:0}.world-history-atlas-root .p43-head{padding:1rem}.world-history-atlas-root .p43-body{padding:1rem}.world-history-atlas-root .p43-cards{grid-template-columns:1fr 1fr}.world-history-atlas-root .p43-mapgrid, .world-history-atlas-root .p43-list{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.world-history-atlas-root .p43-workbench *{scroll-behavior:auto!important;transition:none!important}}

/* Post-4.0 Research Expansion 4.4 */
.world-history-atlas-root .p44-open{margin:.25rem;padding:.56rem .82rem;border:1px solid var(--line,#c9c2b3);border-radius:999px;background:var(--paper,#fff);cursor:pointer;font-weight:700}.world-history-atlas-root .p44-workbench{width:min(97%,1500px);margin:1.4rem auto 2.2rem;border:1px solid var(--line,#d7d0c1);border-radius:18px;background:var(--paper,#fff);box-shadow:0 18px 48px rgba(0,0,0,.09);overflow:hidden}.world-history-atlas-root .p44-head{display:flex;gap:1rem;justify-content:space-between;align-items:flex-start;padding:1.45rem 1.6rem;border-bottom:1px solid var(--line,#ddd)}.world-history-atlas-root .p44-head h2{margin:.16rem 0 .46rem}.world-history-atlas-root .p44-head p{max-width:1180px;margin:0;line-height:1.58}.world-history-atlas-root .p44-close{font-size:1.75rem;line-height:1;border:0;background:transparent;cursor:pointer}.world-history-atlas-root .p44-tabs{display:flex;flex-wrap:wrap;gap:.42rem;padding:.85rem 1rem;border-bottom:1px solid var(--line,#ddd)}.world-history-atlas-root .p44-tabs button{padding:.56rem .8rem;border:1px solid var(--line,#ccc);border-radius:999px;background:transparent;cursor:pointer}.world-history-atlas-root .p44-tabs button.is-active{font-weight:800;box-shadow:inset 0 0 0 1px currentColor}.world-history-atlas-root .p44-body{padding:1.25rem 1.55rem 1.9rem}.world-history-atlas-root .p44-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.8rem;margin-bottom:1rem}.world-history-atlas-root .p44-cards article, .world-history-atlas-root .p44-source, .world-history-atlas-root .p44-list article, .world-history-atlas-root .p44-mapgrid article{padding:1rem;border:1px solid var(--line,#ddd);border-radius:14px}.world-history-atlas-root .p44-cards strong{display:block;font-size:1.5rem}.world-history-atlas-root .p44-cards span, .world-history-atlas-root .p44-cards small{display:block;margin-top:.2rem}.world-history-atlas-root .p44-sourcegrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:.8rem;margin:1rem 0}.world-history-atlas-root .p44-source h3, .world-history-atlas-root .p44-list h3, .world-history-atlas-root .p44-mapgrid h3{margin:0 0 .42rem;font-size:1rem}.world-history-atlas-root .p44-source p{line-height:1.48}.world-history-atlas-root .p44-pill{display:inline-block;padding:.2rem .5rem;border:1px solid currentColor;border-radius:999px;font-size:.78rem;margin:.1rem .08rem}.world-history-atlas-root .p44-pill.ok{font-weight:800}.world-history-atlas-root .p44-pill.warn{font-weight:800}.world-history-atlas-root .p44-pill.muted{opacity:.7}.world-history-atlas-root .p44-truth, .world-history-atlas-root .p44-rule{padding:.9rem 1rem;border-left:4px solid currentColor;background:color-mix(in srgb,currentColor 5%,transparent);line-height:1.55;margin:1rem 0}.world-history-atlas-root .p44-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin:1rem 0}.world-history-atlas-root .p44-actions button{padding:.58rem .78rem}.world-history-atlas-root .p44-actions button:disabled{opacity:.45;cursor:not-allowed}.world-history-atlas-root .p44-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:.75rem}.world-history-atlas-root .p44-list p{margin:.3rem 0}.world-history-atlas-root .p44-list small{overflow-wrap:anywhere;line-height:1.4}.world-history-atlas-root .p44-mapgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:1rem}.world-history-atlas-root .p44-mapgrid img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;background:#efe9dc;margin-bottom:.7rem}.world-history-atlas-root .p44-method{max-width:1180px}.world-history-atlas-root .p44-method h3{margin:1.3rem 0 .45rem}.world-history-atlas-root .p44-method p{line-height:1.65}.world-history-atlas-root .p44-body code{overflow-wrap:anywhere}@media(max-width:700px){.world-history-atlas-root .p44-workbench{width:100%;border-radius:0}.world-history-atlas-root .p44-head{padding:1rem}.world-history-atlas-root .p44-body{padding:1rem}.world-history-atlas-root .p44-cards{grid-template-columns:1fr 1fr}.world-history-atlas-root .p44-list, .world-history-atlas-root .p44-mapgrid, .world-history-atlas-root .p44-sourcegrid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.world-history-atlas-root .p44-workbench *{scroll-behavior:auto!important;transition:none!important}}

/* Katholon World History 4.9 — integrated Catholon layout. */
.world-history-atlas-root{
  width:97%!important; max-width:none!important; margin:0 auto!important; padding:0 0 2.5rem!important;
  color:var(--atlas-ink); font-family:Georgia,"Times New Roman",serif; line-height:1.42;
  position:relative; isolation:isolate;
  background:linear-gradient(180deg,#f3eddf 0%,var(--atlas-bg) 52%,#e9dfcf 100%);
}
.world-history-atlas-root .atlas-page{width:100%!important;max-width:none!important;margin:0!important;padding:.5rem 0 2rem!important}
.world-history-atlas-root .atlas-compact-header{
  display:grid;grid-template-columns:minmax(300px,1.55fr) minmax(410px,1fr);
  grid-template-areas:"title chronology" "actions menus" "experience experience";
  gap:.38rem .75rem;padding:.55rem .72rem;margin:0 0 .48rem;
  border:1px solid var(--atlas-line);border-radius:14px;background:rgba(255,250,240,.96);box-shadow:var(--atlas-shadow-small)
}
.world-history-atlas-root .atlas-compact-title{grid-area:title;min-width:0}
.world-history-atlas-root .atlas-compact-title .atlas-kicker{font-size:.61rem;letter-spacing:.11em;margin-bottom:.04rem}
.world-history-atlas-root .atlas-compact-title h1{font-size:clamp(1.38rem,2vw,2.2rem);line-height:1;margin:.05rem 0 .12rem}
.world-history-atlas-root .atlas-compact-title p{margin:0;max-width:92ch;color:var(--atlas-muted);font-size:.76rem;line-height:1.22}
.world-history-atlas-root .atlas-compact-actions{grid-area:actions;display:flex;align-items:center;gap:.26rem;flex-wrap:wrap}
.world-history-atlas-root .atlas-compact-actions .atlas-button{font-size:.68rem;padding:.32rem .5rem;min-height:0}
.world-history-atlas-root .atlas-compact-chronology{grid-area:chronology;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.3rem;align-self:start}
.world-history-atlas-root .atlas-compact-chronology .chronology-card{padding:.35rem .43rem;min-height:0;border-radius:8px}
.world-history-atlas-root .atlas-compact-chronology .chronology-card__label{font-size:.54rem}
.world-history-atlas-root .atlas-compact-chronology .chronology-card__value{font-size:.84rem}
.world-history-atlas-root .atlas-compact-menus{grid-area:menus;display:flex;justify-content:flex-end;align-items:start;gap:.28rem;flex-wrap:wrap;position:relative;z-index:30}
.world-history-atlas-root .atlas-compact-dropdown{position:relative}
.world-history-atlas-root .atlas-compact-dropdown>summary{list-style:none;cursor:pointer;border:1px solid var(--atlas-line);border-radius:999px;background:var(--atlas-paper-strong);padding:.31rem .53rem;font:700 .65rem/1.1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--atlas-ink);white-space:nowrap}
.world-history-atlas-root .atlas-compact-dropdown>summary::-webkit-details-marker{display:none}
.world-history-atlas-root .atlas-compact-dropdown[open]>summary{box-shadow:inset 0 0 0 1px var(--atlas-brown)}
.world-history-atlas-root .atlas-compact-dropdown-panel,.world-history-atlas-root .atlas-release-menu{position:absolute;right:0;top:calc(100% + .32rem);width:min(390px,88vw);max-height:60vh;overflow:auto;padding:.5rem;border:1px solid var(--atlas-line);border-radius:12px;background:#fffaf0;box-shadow:0 14px 38px rgba(50,37,25,.2);z-index:80;display:grid;gap:.27rem}
.world-history-atlas-root .atlas-research-tools button,.world-history-atlas-root .atlas-research-tools a,.world-history-atlas-root .atlas-release-menu button{display:block;width:100%;margin:0;text-align:left;border:1px solid #d7c9b6;border-radius:8px;background:#fff;padding:.42rem .52rem;color:var(--atlas-ink);font:650 .7rem/1.25 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-decoration:none;cursor:pointer}
.world-history-atlas-root .atlas-method-summary{width:min(480px,90vw);font-size:.74rem;line-height:1.35}
.world-history-atlas-root .atlas-method-summary p{margin:.2rem 0 .45rem}
.world-history-atlas-root .atlas-compact-experience{grid-area:experience;margin:0!important;padding:.12rem .2rem!important;border:0!important;background:transparent!important;border-radius:0!important;justify-content:flex-end!important}
.world-history-atlas-root .atlas-compact-experience .experience-mode-buttons{gap:.2rem}
.world-history-atlas-root .atlas-compact-experience .experience-mode-buttons button{padding:.27rem .5rem;font-size:.64rem}
.world-history-atlas-root .atlas-workspace{margin-top:0;grid-template-columns:minmax(220px,14.5vw) minmax(0,1fr) minmax(260px,18vw);gap:12px}
.world-history-atlas-root .atlas-sidebar{padding:12px}
.world-history-atlas-root .atlas-stage-card{padding:.45rem}
.world-history-atlas-root .atlas-stage-toolbar{margin-bottom:.3rem}
.world-history-atlas-root .map-grid,.world-history-atlas-root .map-pane{min-height:clamp(540px,65vh,850px)}
.world-history-atlas-root .atlas-map{position:absolute;inset:0;min-height:clamp(540px,65vh,850px)}

.world-history-atlas-root .atlas-research-mount{display:contents}
.world-history-atlas-root .atlas-footer{border-top:1px solid var(--atlas-line);margin-top:1rem;padding-top:.8rem}
@media(max-width:1180px){
 .world-history-atlas-root .atlas-workspace{grid-template-columns:240px minmax(0,1fr)}
 .world-history-atlas-root .atlas-sidebar--detail{grid-column:1/-1;position:relative;max-height:none}
}
@media(max-width:960px){
 .world-history-atlas-root{width:98%}
 .world-history-atlas-root .atlas-compact-header{grid-template-columns:1fr;grid-template-areas:"title" "chronology" "actions" "menus" "experience"}
 .world-history-atlas-root .atlas-compact-menus{justify-content:flex-start}
 .world-history-atlas-root .atlas-workspace{grid-template-columns:1fr}
 .world-history-atlas-root .atlas-sidebar{position:relative;max-height:none}
 .world-history-atlas-root .map-grid,.world-history-atlas-root .map-pane,.world-history-atlas-root .atlas-map{min-height:56vh}
}
@media(max-width:700px){
 .world-history-atlas-root .atlas-compact-header{padding:.45rem}
 .world-history-atlas-root .atlas-compact-chronology{grid-template-columns:repeat(3,1fr)}
 .world-history-atlas-root .atlas-compact-actions .atlas-button{font-size:.64rem}
 .world-history-atlas-root .map-grid,.world-history-atlas-root .map-pane,.world-history-atlas-root .atlas-map{min-height:52vh}
}
