/* Module tiles inside system trays — dual graphic rollover */

/* System tray body header — scope line from monkeypanel_tree */
.mb-system-head {
  margin: 0 0 12px;
  padding: 0 2px 10px;
  border-bottom: 1px solid #e2e8f0;
}

.mb-system-head-title {
  display: block;
  font-family: "Akzidenz MB", "Avenir MB", "Open Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 6px;
}

.mb-system-head-tagline {
  display: block;
  margin: 0;
  font-family: "Avenir MB", "Open Sans", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #64748b;
  /* one-line scope description */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mb-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
  padding: 4px 0 8px;
}

.mb-module-tile {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
  border-radius: 10px;
  padding: 10px 8px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: rgba(124, 188, 174, 0.2);
  touch-action: manipulation;
}

.mb-module-tile:hover,
.mb-module-tile:focus-visible,
.mb-module-tile.is-active {
  border-color: #7cbcae;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  outline: none;
}

.mb-module-tile:active {
  transform: scale(0.98);
}

.mb-module-art {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
}

.mb-module-art img {
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  transition: opacity 0.15s ease;
}

.mb-module-art-default {
  opacity: 1;
  z-index: 1;
}

.mb-module-art-hover {
  opacity: 0;
  z-index: 2;
}

/* Rollover: swap default → hover graphic */
.mb-module-tile:hover .mb-module-art-default,
.mb-module-tile:focus-visible .mb-module-art-default,
.mb-module-tile.is-active .mb-module-art-default {
  opacity: 0;
}

.mb-module-tile:hover .mb-module-art-hover,
.mb-module-tile:focus-visible .mb-module-art-hover,
.mb-module-tile.is-active .mb-module-art-hover {
  opacity: 1;
}

/* Touch: no hover — use :active for brief feedback */
@media (hover: none), (pointer: coarse) {
  .mb-module-tile:hover .mb-module-art-default { opacity: 1; }
  .mb-module-tile:hover .mb-module-art-hover { opacity: 0; }

  .mb-module-tile:active .mb-module-art-default,
  .mb-module-tile.is-active .mb-module-art-default { opacity: 0; }

  .mb-module-tile:active .mb-module-art-hover,
  .mb-module-tile.is-active .mb-module-art-hover { opacity: 1; }
}

.mb-module-title {
  display: block;
  font-family: "Akzidenz MB", "Avenir MB", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
  line-height: 1.25;
}

.mb-module-tagline {
  display: block;
  margin-top: 4px;
  font-family: "Avenir MB", system-ui, sans-serif;
  font-size: 10px;
  line-height: 1.3;
  color: #64748b;
  max-height: 2.6em;
  overflow: hidden;
}

.mb-module-tile:hover .mb-module-title,
.mb-module-tile.is-active .mb-module-title {
  color: #3d7a72;
}

.mb-module-empty {
  text-align: center;
  padding: 32px 16px;
  color: #94a3b8;
  font-family: "Avenir MB", system-ui, sans-serif;
  font-size: 13px;
}

.mb-module-empty code {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: #7cbcae;
}

/* Art display size (source is 144×144) */
.mb-module-art {
  width: 72px;
  height: 72px;
}

.mb-module-art img {
  width: 72px;
  height: 72px;
}


/* ============================================================
   IN-TRAY EXHIBIT (discovery atlas — replaces jump menu)
   ============================================================ */
.mb-exhibit {
  display: none;
  margin-top: 16px;
  padding: 16px 18px 18px;
  background: #fff;
  border: 2px solid #7cbcae;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  animation: mb-exhibit-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mb-exhibit.is-open,
.mb-exhibit:not([hidden]) {
  display: block;
}

.mb-exhibit[hidden] {
  display: none !important;
}

@keyframes mb-exhibit-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mb-exhibit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.mb-exhibit-kicker {
  font-family: "Open Sans", "Avenir MB", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5f9e96;
}

.mb-exhibit-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(107, 79, 160, 0.35);
  border-radius: 10px;
  background: rgba(124, 188, 174, 0.12);
  color: #5b4b8a;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.mb-exhibit-close:hover,
.mb-exhibit-close:focus-visible {
  background: #6b4fa0;
  border-color: #5b3f90;
  color: #fff;
}

.mb-exhibit-title {
  margin: 0 0 8px;
  font-family: "Open Sans", "Akzidenz MB", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.25;
  color: #0f172a;
}

.mb-exhibit-tagline {
  margin: 0 0 10px;
  font-family: "Open Sans", "Avenir MB", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: #334155;
}

.mb-exhibit-uri {
  margin: 0 0 14px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #64748b;
  word-break: break-all;
}

.mb-exhibit-beats-label {
  margin: 0 0 8px;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5f9e96;
}

.mb-exhibit-beats {
  margin: 0;
  padding: 0 0 0 1.15rem;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #0f172a;
}

.mb-exhibit-beats li {
  margin: 0 0 0.45rem;
}

.mb-exhibit-beats li:last-child {
  margin-bottom: 0;
}

.mb-exhibit-empty {
  margin: 0;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 14px;
  color: #94a3b8;
  font-style: italic;
}

.sp-tray.has-exhibit .mb-module-tile.is-active {
  border-color: #6b4fa0;
  box-shadow: 0 0 0 2px rgba(107, 79, 160, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .mb-exhibit {
    animation: none;
  }
}


/* Clickable exhibit beat — start tour */
.mb-exhibit-beats li.mb-exhibit-beat-tour {
  list-style: none;
  margin-left: -1.15rem;
  margin-top: 0.75rem;
}

.mb-exhibit-tour-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #5b4b8a;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(107, 79, 160, 0.35);
  background: rgba(124, 188, 174, 0.12);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mb-exhibit-tour-link:hover,
.mb-exhibit-tour-link:focus-visible {
  background: #6b4fa0;
  border-color: #5b3f90;
  color: #fff;
  outline: none;
}

/* Clickable exhibit beat — start tour */
.mb-exhibit-beats li.mb-exhibit-beat-tour {
  list-style: none;
  margin-left: -1.15rem;
  margin-top: 0.75rem;
}

.mb-exhibit-tour-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #5b4b8a;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(107, 79, 160, 0.35);
  background: rgba(124, 188, 174, 0.12);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mb-exhibit-tour-link:hover,
.mb-exhibit-tour-link:focus-visible {
  background: #6b4fa0;
  border-color: #5b3f90;
  color: #fff;
  outline: none;
}

/* ============================================================
   GUIDED TOUR — floating synth rack (right margin, draggable)
   ============================================================ */
.mb-tour-bar.mb-tour-synth {
  position: fixed;
  /* default: right margin of browser */
  top: 72px;
  right: 16px;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: 900;
  display: flex;
  flex-direction: column;
  width: 168px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 88px);
  padding: 0;
  background:
    linear-gradient(180deg, #2a3140 0%, #1a1f2a 40%, #12161e 100%);
  color: #c8d0d8;
  border: 3px solid #3d4654;
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5),
    0 16px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px #0a0c10;
  font-family: "Open Sans", "Courier New", monospace;
  overflow: hidden;
  user-select: none;
}

.mb-tour-bar[hidden] {
  display: none !important;
}

.mb-tour-bar.is-dragging {
  opacity: 0.95;
  cursor: grabbing;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 56px rgba(0, 0, 0, 0.65),
    0 0 0 1px #5f9e96;
}

/* Drag chrome */
.mb-tour-drag-handle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 6px;
  cursor: grab;
  background: linear-gradient(180deg, #323a4a 0%, #1e2430 100%);
  border-bottom: 2px solid #0a0c10;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mb-tour-bar.is-dragging .mb-tour-drag-handle {
  cursor: grabbing;
}

.mb-tour-synth-brand {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #5eead4;
  text-shadow: 0 0 8px rgba(94, 234, 212, 0.45);
  flex: 1 1 auto;
}

.mb-tour-drag-grip {
  width: 28px;
  height: 12px;
  background:
    repeating-linear-gradient(
      90deg,
      #5f6b7a 0 2px,
      transparent 2px 5px
    );
  opacity: 0.55;
  border-radius: 1px;
  flex: 0 0 auto;
}

.mb-tour-exit {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid #3d4654;
  border-radius: 2px;
  background: #1a1f2a;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  cursor: pointer;
  padding: 0;
}

.mb-tour-exit:hover,
.mb-tour-exit:focus-visible {
  background: #6b4fa0;
  border-color: #5b3f90;
  color: #fff;
  outline: none;
}

.mb-tour-synth-body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
}

.mb-tour-synth-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 10px 12px;
  flex: 1 1 auto;
  min-width: 0;
  border-right: 2px solid #0a0c10;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.04);
}

.mb-tour-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mb-tour-progress {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #7cbcae;
  letter-spacing: 0.06em;
}

.mb-tour-stop-title {
  font-size: 12px;
  font-weight: 600;
  color: #e8eef5;
  line-height: 1.3;
  max-height: 3.9em;
  overflow: hidden;
}

.mb-tour-nav {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.mb-tour-btn {
  flex: 1 1 auto;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 3px;
  border: 2px solid #2a3344;
  background: linear-gradient(180deg, #3a4558 0%, #252b38 100%);
  color: #dbe4ee;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 0 #0a0c10;
  touch-action: manipulation;
}

.mb-tour-btn:hover:not(:disabled),
.mb-tour-btn:focus-visible:not(:disabled) {
  border-color: #5f9e96;
  color: #fff;
  outline: none;
}

.mb-tour-btn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.mb-tour-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.mb-tour-btn-primary {
  background: linear-gradient(180deg, #4db8a8 0%, #2a9d8f 45%, #1a7a6e 100%);
  border-color: #1a7a6e;
  color: #042f2e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Right stack: autoplay ABOVE vertical speed */
.mb-tour-synth-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 0 0 78px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 50%);
}

.mb-tour-synth-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 10px;
}

.mb-tour-autoplay-section {
  border-bottom: 2px solid #0a0c10;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  padding-top: 10px;
}

.mb-tour-section-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7cbcae;
  text-shadow: 0 0 6px rgba(124, 188, 174, 0.35);
  text-align: center;
}

/* Autoplay: toggle + penlight stacked vertically */
.mb-tour-autoplay-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 0 2px;
}

.mb-tour-toggle {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.mb-tour-toggle-track {
  display: block;
  width: 44px;
  height: 22px;
  border-radius: 11px;
  background: #0a0c10;
  border: 2px solid #3d4654;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.7),
    0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mb-tour-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #8a94a4 0%, #4a5568 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.5);
  transition: left 0.15s ease, background 0.15s ease;
}

.mb-tour-toggle.is-on .mb-tour-toggle-track {
  border-color: #2a9d8f;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(42, 157, 143, 0.35);
}

.mb-tour-toggle.is-on .mb-tour-toggle-thumb {
  left: 24px;
  background: linear-gradient(180deg, #9ee0d6 0%, #2a9d8f 100%);
}

.mb-tour-penlight {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #1a1f2a;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.mb-tour-penlight.is-on {
  background: radial-gradient(circle at 35% 30%, #b8fff0 0%, #2dd4bf 40%, #0f766e 100%);
  box-shadow:
    0 0 6px 2px rgba(45, 212, 191, 0.75),
    0 0 14px rgba(45, 212, 191, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.mb-tour-penlight.is-off {
  background: radial-gradient(circle at 40% 35%, #3a4558 0%, #1a1f2a 70%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Speed under autoplay */
.mb-tour-speed-section {
  flex: 1 1 auto;
  padding-bottom: 10px;
}

.mb-tour-gait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mb-tour-gait img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(94, 234, 212, 0.25));
}

.mb-tour-speed-val {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #5eead4;
  text-shadow: 0 0 6px rgba(94, 234, 212, 0.4);
  letter-spacing: 0.04em;
}

.mb-tour-speed-vert {
  -webkit-appearance: slider-vertical;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 28px;
  height: 100px;
  margin: 6px 0 4px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  accent-color: #2a9d8f;
}

.mb-tour-speed-vert::-webkit-slider-runnable-track {
  width: 8px;
  background: linear-gradient(180deg, #0a0c10 0%, #1a1f2a 100%);
  border: 1px solid #3d4654;
  border-radius: 2px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.mb-tour-speed-vert::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 12px;
  margin-left: -5px;
  border-radius: 2px;
  border: 1px solid #1a7a6e;
  background: linear-gradient(180deg, #9ee0d6 0%, #2a9d8f 50%, #1a7a6e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.5);
  cursor: grab;
}

.mb-tour-speed-vert::-moz-range-track {
  width: 8px;
  background: #1a1f2a;
  border: 1px solid #3d4654;
  border-radius: 2px;
}

.mb-tour-speed-vert::-moz-range-thumb {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid #1a7a6e;
  background: linear-gradient(180deg, #9ee0d6 0%, #2a9d8f 100%);
  cursor: grab;
}

.mb-tour-speed-caption {
  margin-top: 2px;
  letter-spacing: 0.08em;
  max-width: 4.5em;
  line-height: 1.2;
}

body.mb-tour-active #mb-main {
  /* panel floats on right — leave a little air, not bottom padding */
  padding-right: 12px;
}



/* ============================================================
   ARTICLE MODAL — reusable centered window
   ============================================================ */
.mb-article-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mb-article-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mb-article-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.mb-article-modal-window {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  background: #fff;
  border: 2px solid #5f9e96;
  border-radius: 16px;
  box-shadow:
    0 24px 64px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(95, 158, 150, 0.2);
  display: flex;
  flex-direction: column;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s;
}

.mb-article-modal.is-open .mb-article-modal-window {
  transform: none;
}

.mb-article-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 12px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.mb-article-modal-header h2 {
  margin: 0;
  font-family: "Akzidenz MB", "Avenir MB", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.mb-article-modal-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 22px;
  font-weight: 700;
  line-height: 32px;
  cursor: pointer;
  padding: 0;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.mb-article-modal-close:hover,
.mb-article-modal-close:focus-visible {
  background: #6b4fa0;
  border-color: #5b3f90;
  color: #fff;
  outline: none;
}

.mb-article-modal-body {
  overflow-y: auto;
  padding: 24px;
  font-family: "Open Sans", "Avenir MB", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #1e293b;
}

.mb-article-modal-body h2 {
  font-family: "Akzidenz MB", "Avenir MB", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 1.5em 0 0.5em;
  padding-top: 1em;
  border-top: 1px solid #e2e8f0;
}

.mb-article-modal-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.mb-article-modal-body p {
  margin: 0 0 1em;
}

.mb-article-modal-body strong {
  color: #0f172a;
}

.mb-article-modal-body em {
  color: #334155;
}

.mb-article-modal-body hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 2em 0;
}

.mb-article-modal-body a {
  color: #2a9d8f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mb-article-modal-body a:hover {
  color: #1a7a6e;
}

.mb-200year-article header {
  margin-bottom: 1.5em;
  padding-bottom: 1em;
  border-bottom: 1px solid #e2e8f0;
}

.mb-200year-subtitle {
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0.5em 0 0;
}

.mb-200year-link {
  display: inline-block;
  margin-top: 1em;
  padding: 10px 20px;
  background: linear-gradient(180deg, #4db8a8 0%, #2a9d8f 100%);
  color: #042f2e;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.mb-200year-link:hover {
  background: linear-gradient(180deg, #5ecab8 0%, #3abdb0 100%);
  color: #042f2e;
}

/* Exhibit article link style */
.mb-exhibit-beat-article {
  list-style: none;
  margin-left: -1.15rem;
  margin-top: 0.5rem;
}

.mb-exhibit-article-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #5b4b8a;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(107, 79, 160, 0.35);
  background: rgba(124, 188, 174, 0.12);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mb-exhibit-article-link:hover,
.mb-exhibit-article-link:focus-visible {
  background: #6b4fa0;
  border-color: #5b3f90;
  color: #fff;
  outline: none;
}

body.mb-article-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .mb-article-modal {
    padding: 12px;
  }
  .mb-article-modal-window {
    max-height: 90vh;
    border-radius: 12px;
  }
  .mb-article-modal-header {
    padding: 16px 16px 8px;
  }
  .mb-article-modal-body {
    padding: 16px;
  }
}
