/* BrainSeer sitewide visual system. Keep page-specific application layouts intact. */
body.brainseer-ui {
  --brainseer-navy: #0a1038;
  --brainseer-slate: #1f2944;
  --brainseer-blue: #1687ba;
  --brainseer-blue-dark: #0f668f;
  --brainseer-ink: #202938;
  --brainseer-muted: #596575;
  --brainseer-line: #d9e2e8;
  --brainseer-surface: #ffffff;
  --brainseer-soft: #f4f7f9;
  --brainseer-radius: 6px;
  --brainseer-shadow: 0 8px 24px rgba(19, 35, 55, 0.08);
  background: var(--brainseer-soft);
  color: var(--brainseer-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.brainseer-ui *,
body.brainseer-ui *::before,
body.brainseer-ui *::after {
  box-sizing: border-box;
}

body.brainseer-ui a {
  color: var(--brainseer-blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.brainseer-ui a:focus-visible,
body.brainseer-ui button:focus-visible,
body.brainseer-ui input:focus-visible,
body.brainseer-ui select:focus-visible,
body.brainseer-ui textarea:focus-visible {
  outline: 3px solid rgba(22, 135, 186, 0.35);
  outline-offset: 2px;
}

body.brainseer-ui .elementor-heading-title {
  letter-spacing: 0;
  text-wrap: balance;
}

body.brainseer-ui .elementor-widget-text-editor,
body.brainseer-ui .elementor-icon-box-description {
  color: var(--brainseer-muted);
}

/* Shared navigation */
body.brainseer-ui header.elementor-top-section {
  min-height: 76px !important;
  background-color: #0b0b29 !important;
  border-bottom: 1px solid rgba(51, 164, 211, 0.35);
  box-shadow: 0 6px 20px rgba(3, 8, 36, 0.18);
  z-index: 50;
}

body.brainseer-ui header.elementor-top-section > .elementor-container {
  width: min(calc(100% - 64px), 1920px) !important;
  max-width: 1920px !important;
  min-height: 76px;
}

body.brainseer-ui header .elementor-widget-image img {
  max-height: 48px;
  width: auto;
}

body.brainseer-ui header .elementor-nav-menu a {
  letter-spacing: 0;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

body.brainseer-ui header .elementor-nav-menu--main > .elementor-nav-menu > li > a {
  position: relative;
  min-height: 76px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

body.brainseer-ui header .elementor-nav-menu--main > .elementor-nav-menu > li > a::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 3px;
  background: #2aa6d6;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

body.brainseer-ui header .elementor-nav-menu--main > .elementor-nav-menu > li:hover > a,
body.brainseer-ui header .elementor-nav-menu--main > .elementor-nav-menu > li > a:focus-visible,
body.brainseer-ui header .elementor-nav-menu--main > .elementor-nav-menu > .current-menu-item > a,
body.brainseer-ui header .elementor-nav-menu--main > .elementor-nav-menu > .current-menu-ancestor > a {
  color: #ffffff;
}

body.brainseer-ui header .elementor-nav-menu--main > .elementor-nav-menu > li:hover > a::after,
body.brainseer-ui header .elementor-nav-menu--main > .elementor-nav-menu > li > a:focus-visible::after,
body.brainseer-ui header .elementor-nav-menu--main > .elementor-nav-menu > .current-menu-item > a::after,
body.brainseer-ui header .elementor-nav-menu--main > .elementor-nav-menu > .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

body.brainseer-ui header .elementor-nav-menu--main .sub-menu {
  min-width: 250px !important;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--brainseer-line);
  border-top: 3px solid var(--brainseer-blue);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 14px 32px rgba(3, 8, 36, 0.18);
}

body.brainseer-ui header .elementor-nav-menu--main .sub-menu a {
  padding: 11px 13px;
  border: 0;
  border-radius: 4px;
  color: var(--brainseer-ink);
  font-size: 14px;
  line-height: 1.35;
}

body.brainseer-ui header .elementor-nav-menu--main .sub-menu a:hover,
body.brainseer-ui header .elementor-nav-menu--main .sub-menu a:focus-visible,
body.brainseer-ui header .elementor-nav-menu--main .sub-menu .current-menu-item > a {
  color: var(--brainseer-blue-dark);
  background: #edf7fb;
}

body.brainseer-ui header .brainseer-site-search {
  display: flex;
  width: min(100%, 270px);
  height: 40px;
  margin-left: auto;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

body.brainseer-ui header .brainseer-site-search:focus-within {
  border-color: #61c3e8;
  box-shadow: 0 0 0 3px rgba(42, 166, 214, 0.2);
}

body.brainseer-ui header .brainseer-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.brainseer-ui header .brainseer-site-search input,
body.brainseer-ui header .brainseer-site-search button {
  height: 40px;
  border: 0;
  border-radius: 0;
}

body.brainseer-ui header .brainseer-site-search input {
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  color: var(--brainseer-ink);
  background: #ffffff;
  font-size: 14px;
}

body.brainseer-ui header .brainseer-site-search input:focus {
  outline: 0;
}

body.brainseer-ui header .brainseer-site-search button {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  padding: 0;
  color: #ffffff;
  background: var(--brainseer-blue);
  cursor: pointer;
}

body.brainseer-ui header .brainseer-site-search button:hover,
body.brainseer-ui header .brainseer-site-search button:focus-visible {
  background: var(--brainseer-blue-dark);
}

body.brainseer-ui header .brainseer-search-icon {
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

body.brainseer-ui header .brainseer-search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

@media (min-width: 1025px) {
  body.brainseer-ui header.elementor-top-section > .elementor-container > .elementor-column:nth-child(1) {
    width: 22%;
  }

  body.brainseer-ui header.elementor-top-section > .elementor-container > .elementor-column:nth-child(2) {
    width: 58%;
  }

  body.brainseer-ui header.elementor-top-section > .elementor-container > .elementor-column:nth-child(3) {
    width: 20%;
  }
}

/* Compact inner-page mastheads while preserving the homepage hero. */
body.brainseer-ui:not(.brainseer-ui--home) header.elementor-top-section + section.elementor-top-section {
  height: 168px !important;
  min-height: 168px !important;
  overflow: hidden;
  border-bottom: 1px solid rgba(22, 135, 186, 0.32);
  background-color: var(--brainseer-slate);
}

body.brainseer-ui:not(.brainseer-ui--home) header.elementor-top-section + section.elementor-top-section > .elementor-container {
  width: min(calc(100% - 64px), 1280px) !important;
  max-width: 1280px !important;
  min-height: 168px !important;
  height: 168px !important;
  margin-right: auto;
  margin-left: auto;
}

body.brainseer-ui.page-id-6423 header.elementor-top-section + section .elementor-heading-title {
  font-size: 25px;
}

body.brainseer-ui:not(.brainseer-ui--home) header.elementor-top-section + section .elementor-heading-title {
  color: #ffffff;
  max-width: 470px;
  margin: 0;
  font-size: clamp(24px, 2vw, 29px);
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

body.brainseer-ui:not(.brainseer-ui--home) header.elementor-top-section + section .elementor-widget-image img {
  width: auto;
  max-width: 96px;
  max-height: 96px;
  object-fit: contain;
}

body.brainseer-ui:not(.brainseer-ui--home) header.elementor-top-section + section .elementor-divider-separator {
  border-color: rgba(42, 166, 214, 0.52);
}

body.brainseer-ui .breadcrumbs,
body.brainseer-ui .breadcrumb,
body.brainseer-ui .rank-math-breadcrumb {
  font-size: 14px;
  line-height: 1.4;
}

body.brainseer-ui:not(.brainseer-ui--home) header.elementor-top-section + section :is(.breadcrumbs, .breadcrumb, .rank-math-breadcrumb) {
  color: rgba(255, 255, 255, 0.82);
}

body.brainseer-ui:not(.brainseer-ui--home) header.elementor-top-section + section :is(.breadcrumbs, .breadcrumb, .rank-math-breadcrumb) a {
  color: #43add4;
  text-decoration: none;
}

body.brainseer-ui:not(.brainseer-ui--home) header.elementor-top-section + section :is(.breadcrumbs, .breadcrumb, .rank-math-breadcrumb) a:hover,
body.brainseer-ui:not(.brainseer-ui--home) header.elementor-top-section + section :is(.breadcrumbs, .breadcrumb, .rank-math-breadcrumb) a:focus-visible {
  color: #83d1ee;
  text-decoration: underline;
}

/* The Human Compartments banner begins its artwork behind a long title on
   narrower desktops. Preserve the image and use its existing overlay for
   the same text-over-image treatment as the homepage hero. */
body.brainseer-ui.page-id-6423 header.elementor-top-section + section.elementor-top-section > .elementor-background-overlay {
  background: linear-gradient(
    90deg,
    rgba(31, 41, 68, 1) 0%,
    rgba(31, 41, 68, 0.98) 24%,
    rgba(31, 41, 68, 0.88) 34%,
    rgba(31, 41, 68, 0) 48%
  );
  opacity: 1;
}

/* Editorial pages */
body.brainseer-ui--editorial .elementor-section.elementor-top-section:not(header):not(footer) > .elementor-container {
  width: min(100% - 48px, 1140px);
}

body.brainseer-ui--editorial .elementor-section.elementor-top-section:not(header):not(footer) {
  padding-top: 40px;
  padding-bottom: 40px;
}

body.brainseer-ui--editorial .elementor-widget-text-editor {
  font-size: 17px;
  line-height: 1.7;
}

body.brainseer-ui--editorial .elementor-widget-text-editor p:last-child {
  margin-bottom: 0;
}

body.brainseer-ui--editorial .elementor-section.elementor-top-section:not(header):not(footer) > .elementor-container > .elementor-column > .elementor-widget-wrap {
  min-width: 0;
}

/* Embedded roster widgets must respond to the content container, not viewport width. */
body.brainseer-ui #teams-root,
body.brainseer-ui #teams-root .panel,
body.brainseer-ui #teams-root .section {
  min-width: 0;
  max-width: 100%;
}

body.brainseer-ui #teams-root .panel {
  border-radius: var(--brainseer-radius);
  box-shadow: var(--brainseer-shadow);
}

body.brainseer-ui #teams-root .team {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
}

body.brainseer-ui #teams-root .card {
  min-width: 0;
  border-radius: var(--brainseer-radius);
}

/* Page-family widths: reading pages stay restrained; data tools use the
   available workspace instead of inheriting the editorial content width. */
body.brainseer-ui--data header.elementor-top-section + section.elementor-top-section ~ section.elementor-top-section:not(footer) > .elementor-container,
body.brainseer-ui--atlas header.elementor-top-section + section.elementor-top-section ~ section.elementor-top-section:not(footer) > .elementor-container {
  width: min(calc(100% - 48px), 1920px) !important;
  max-width: 1920px !important;
}

body.brainseer-ui--landing header.elementor-top-section + section.elementor-top-section ~ section.elementor-top-section:not(footer) > .elementor-container,
body.brainseer-ui--species header.elementor-top-section + section.elementor-top-section ~ section.elementor-top-section:not(footer) > .elementor-container {
  width: min(calc(100% - 48px), 1600px) !important;
  max-width: 1600px !important;
}

body.brainseer-ui--data .main-layout {
  width: min(calc(100vw - 64px), 1920px) !important;
}

body.brainseer-ui--atlas :is(.mouse-page, .marmoset-page, .human-page) .wrapper,
body.brainseer-ui--data .wrapper {
  max-width: 1920px !important;
}

body.brainseer-ui--atlas header.elementor-top-section + section.elementor-top-section > .elementor-container,
body.brainseer-ui--data header.elementor-top-section + section.elementor-top-section > .elementor-container {
  width: min(calc(100% - 64px), 1920px) !important;
  max-width: 1920px !important;
}

@media (min-width: 1200px) {
  body.brainseer-ui header.elementor-top-section > .elementor-container > .elementor-column:first-child > .elementor-widget-wrap {
    justify-content: flex-start;
    padding-left: 0 !important;
  }

  body.brainseer-ui header.elementor-top-section > .elementor-container > .elementor-column:first-child .elementor-widget-image,
  body.brainseer-ui header.elementor-top-section > .elementor-container > .elementor-column:first-child .elementor-image {
    width: auto;
    margin-right: auto;
    text-align: left;
  }

  body.brainseer-ui--home .elementor-element-5d14d352 > .elementor-container,
  body.brainseer-ui--home .elementor-element-46c9bb67 > .elementor-container {
    width: min(calc(100% - 96px), 1720px) !important;
    max-width: 1720px !important;
  }

  body.brainseer-ui--home .elementor-element-478ba9e8 {
    width: min(100%, 1720px) !important;
    max-width: 1720px !important;
  }

  body.brainseer-ui--home.page-id-1076 .elementor-element-478ba9e8 > .elementor-container {
    flex-wrap: nowrap;
  }

  body.brainseer-ui--home.page-id-1076 .elementor-element-478ba9e8 > .elementor-container > .elementor-column {
    width: calc(25% - 12px) !important;
    max-width: calc(25% - 12px) !important;
    min-height: 148px !important;
    flex: 0 0 calc(25% - 12px) !important;
  }

  body.brainseer-ui--home.page-id-1076 .elementor-element-478ba9e8 > .elementor-container > .elementor-column > .elementor-widget-wrap {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 16px;
    padding: 18px 20px !important;
  }

  body.brainseer-ui--home.page-id-1076 .elementor-element-478ba9e8 .elementor-widget-image img {
    max-width: 88px;
    max-height: 82px;
  }

  body.brainseer-ui--home.page-id-1076 .elementor-element-478ba9e8 .elementor-icon-box-title {
    font-size: 17px;
    line-height: 1.2;
  }

  body.brainseer-ui--home.page-id-1076 .elementor-element-478ba9e8 .elementor-icon-box-description {
    font-size: 13px;
    line-height: 1.4;
  }

  /* Mouse Projections contains its own legacy 1280px/760px rails. Keep its
     controls intact while letting the data workspace use the shared wide rail. */
  body.brainseer-ui.page-id-10181 .superheader-inner,
  body.brainseer-ui.page-id-10181 .main-layout {
    width: min(calc(100vw - 64px), 1920px) !important;
    max-width: 1920px !important;
  }

  body.brainseer-ui.page-id-10181 .tree-panel {
    flex: 0 0 clamp(520px, 34vw, 720px);
  }

  body.brainseer-ui.page-id-10181 .card-panel,
  body.brainseer-ui.page-id-10181 .card-list {
    min-width: 0;
    width: 100%;
  }

  body.brainseer-ui.page-id-10181 .card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 14px;
  }

  body.brainseer-ui.page-id-10181 .card-list > .card-spacer {
    grid-column: 1 / -1;
  }

  body.brainseer-ui.page-id-10181 .card-list .card {
    max-width: none;
    min-width: 0;
    margin: 0;
  }

  body.brainseer-ui--atlas .marmoset-page .card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
  }

  body.brainseer-ui--atlas .marmoset-page .card {
    display: grid !important;
    grid-template-columns: 340px minmax(0, 1fr);
    min-width: 0;
    height: 210px;
    min-height: 210px;
  }

  body.brainseer-ui--atlas .marmoset-page .viewer-previews {
    display: grid;
    width: 340px;
    height: 210px;
    grid-template-columns: repeat(2, 170px);
    align-self: stretch;
    background: #dce5eb;
  }

  body.brainseer-ui--atlas .marmoset-page .viewer-preview {
    position: relative;
    display: flex;
    min-width: 0;
    height: 210px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f4f7f9;
    color: #20303b;
    text-decoration: none;
  }

  body.brainseer-ui--atlas .marmoset-page .viewer-preview--3d {
    background: #eaf4f4;
  }

  body.brainseer-ui--atlas .marmoset-page .viewer-preview--3d[aria-disabled="true"] {
    opacity: 0.58;
  }

  body.brainseer-ui--atlas .marmoset-page .viewer-preview img {
    width: 100%;
    height: 100%;
    max-height: 210px;
    object-fit: contain;
  }

  body.brainseer-ui--atlas .marmoset-page .viewer-preview--3d img {
    padding: 10px;
  }

  body.brainseer-ui--atlas .marmoset-page .preview-label,
  body.brainseer-ui--atlas .marmoset-page .preview-status {
    position: absolute;
    z-index: 1;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
  }

  body.brainseer-ui--atlas .marmoset-page .preview-label {
    top: 7px;
    left: 7px;
    background: rgba(8, 23, 34, 0.86);
    color: #fff;
  }

  body.brainseer-ui--atlas .marmoset-page .preview-status {
    right: 7px;
    bottom: 7px;
    background: rgba(255, 255, 255, 0.9);
    color: #52616b;
  }

  body.brainseer-ui--atlas .marmoset-page .card-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 10px 12px;
  }

  body.brainseer-ui--atlas .marmoset-page .card-content .meta {
    margin-bottom: 2px;
    font-size: 11px;
    line-height: 1.3;
  }

  body.brainseer-ui--atlas .marmoset-page .card-content .meta:first-child {
    margin-bottom: 4px;
    font-size: 14px;
  }

  body.brainseer-ui--atlas .marmoset-page .card-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
  }

  body.brainseer-ui--atlas .marmoset-page .viewer-action {
    display: flex;
    min-width: 84px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 4px 7px;
    border: 1px solid #3a6fe0;
    border-radius: 6px;
    background: #4681f4;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
  }

  body.brainseer-ui--atlas .marmoset-page .viewer-action--3d {
    border-color: #08799f;
    background: #0c86ad;
  }

  body.brainseer-ui--atlas .marmoset-page .viewer-action--3d[aria-disabled="true"] {
    flex-direction: column;
    border-color: #cbd5df;
    background: #eef2f5;
    color: #687680;
    cursor: not-allowed;
  }

  body.brainseer-ui--atlas .marmoset-page .viewer-action small {
    margin-top: 2px;
    font-size: 9px;
    font-weight: 500;
  }

  body.brainseer-ui--atlas .marmoset-page .card[style*="display: none"] {
    display: none !important;
  }

  /* Developmental Human Atlas: compact horizontal records align this page
     with the other atlas tools without changing its data or filters. */
  body.brainseer-ui.page-id-11626 .human-dev-page .card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    align-items: start;
    gap: 12px;
  }

  body.brainseer-ui.page-id-11626 .human-dev-page .card {
    display: grid !important;
    grid-template-columns: minmax(170px, 42%) minmax(0, 1fr);
    min-width: 0;
    min-height: 180px;
  }

  body.brainseer-ui.page-id-11626 .human-dev-page .card > img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    max-height: 210px;
    object-fit: contain;
  }

  body.brainseer-ui.page-id-11626 .human-dev-page .card-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 12px 14px;
  }

  body.brainseer-ui.page-id-11626 .human-dev-page .card-content .meta {
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.35;
  }

  body.brainseer-ui.page-id-11626 .human-dev-page .card-extra {
    margin-top: 4px;
    padding-top: 4px;
    font-size: 11px;
  }

  body.brainseer-ui.page-id-11626 .human-dev-page .card-buttons {
    margin-top: 7px;
  }

  body.brainseer-ui.page-id-11626 .human-dev-page .card-buttons a {
    padding: 6px 10px;
    font-size: 11px;
  }

  body.brainseer-ui.page-id-11626 .human-dev-page .card[style*="display: none"] {
    display: none !important;
  }
}

body.brainseer-ui--atlas :is(.mouse-page, .marmoset-page, .human-page) .layout,
body.brainseer-ui--data .layout {
  padding-left: 16px;
  padding-right: 16px;
}

@media (max-width: 1199px) {
  body.brainseer-ui--atlas .marmoset-page .viewer-previews {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: #dce5eb;
  }

  body.brainseer-ui--atlas .marmoset-page .viewer-preview {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 140px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f4f7f9;
    color: #20303b;
    text-decoration: none;
  }

  body.brainseer-ui--atlas .marmoset-page .viewer-preview--3d {
    background: #eaf4f4;
  }

  body.brainseer-ui--atlas .marmoset-page .viewer-preview--3d[aria-disabled="true"] {
    opacity: 0.58;
  }

  body.brainseer-ui--atlas .marmoset-page .viewer-preview img {
    width: 100%;
    height: 140px;
    max-height: 140px;
    object-fit: contain;
  }

  body.brainseer-ui--atlas .marmoset-page .viewer-preview--3d img {
    padding: 10px;
  }

  body.brainseer-ui--atlas .marmoset-page :is(.preview-label, .preview-status) {
    position: absolute;
    z-index: 1;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
  }

  body.brainseer-ui--atlas .marmoset-page .preview-label {
    top: 7px;
    left: 7px;
    background: rgba(8, 23, 34, 0.86);
    color: #fff;
  }

  body.brainseer-ui--atlas .marmoset-page .preview-status {
    right: 7px;
    bottom: 7px;
    background: rgba(255, 255, 255, 0.9);
    color: #52616b;
  }

  body.brainseer-ui--atlas .marmoset-page .card-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  body.brainseer-ui--atlas .marmoset-page .viewer-action {
    display: flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border: 1px solid #3a6fe0;
    border-radius: 6px;
    background: #4681f4;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
  }

  body.brainseer-ui--atlas .marmoset-page .viewer-action--3d {
    border-color: #08799f;
    background: #0c86ad;
  }

  body.brainseer-ui--atlas .marmoset-page .viewer-action--3d[aria-disabled="true"] {
    flex-direction: column;
    border-color: #cbd5df;
    background: #eef2f5;
    color: #687680;
  }

  body.brainseer-ui--atlas .marmoset-page .viewer-action small {
    margin-top: 2px;
    font-size: 9px;
  }

  body.brainseer-ui--atlas .marmoset-page .card[style*="display: none"] {
    display: none !important;
  }
}

body.brainseer-ui--atlas header.elementor-top-section + section.elementor-top-section ~ section.elementor-top-section:not(footer) {
  min-height: 0 !important;
  padding-top: 28px !important;
  padding-bottom: 32px !important;
}

body.brainseer-ui--landing header.elementor-top-section + section.elementor-top-section ~ section.elementor-top-section:not(footer),
body.brainseer-ui--species header.elementor-top-section + section.elementor-top-section ~ section.elementor-top-section:not(footer) {
  min-height: 0 !important;
  padding-top: 36px !important;
  padding-bottom: 36px !important;
}

/* Repeated landing cards */
body.brainseer-ui .click-child {
  border: 1px solid var(--brainseer-line) !important;
  border-radius: var(--brainseer-radius) !important;
  background: var(--brainseer-surface);
  box-shadow: 0 4px 14px rgba(19, 35, 55, 0.06);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

body.brainseer-ui .click-child:hover {
  border-color: rgba(22, 135, 186, 0.55) !important;
  box-shadow: var(--brainseer-shadow);
  transform: translateY(-2px);
}

body.brainseer-ui .click-child .elementor-icon-box-title {
  margin-bottom: 6px;
}

/* One visual system for the homepage project, atlas, and toolbox cards. */
body.brainseer-ui--home .elementor-element-5d14d352,
body.brainseer-ui--home .elementor-element-46c9bb67,
body.brainseer-ui--home .elementor-element-1e3b9621 {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
  background: #f7f9fc !important;
}

/* Keep the homepage project cards compact even when production Elementor data
   predates the equivalent section-level custom CSS. */
body.brainseer-ui--home .elementor-element-5d14d352 .elementor-inner-section > .elementor-container {
  display: flex;
  gap: 20px;
}

body.brainseer-ui--home .elementor-element-5d14d352 :is(
  .elementor-element-187e487c,
  .elementor-element-2d95ac11
) {
  min-height: 0 !important;
  margin: 20px 0 0 !important;
  padding: 0 !important;
}

body.brainseer-ui--home .elementor-element-5d14d352 :is(
  .elementor-element-187e487c,
  .elementor-element-2d95ac11
) > .elementor-container {
  min-height: 0 !important;
  align-items: stretch;
}

body.brainseer-ui--home .elementor-element-5d14d352 .elementor-element-de87a13 {
  display: none !important;
}

body.brainseer-ui--home .elementor-element-5d14d352 :is(
  .elementor-element-491ab05,
  .elementor-element-14f2cffe,
  .elementor-element-bec3763,
  .elementor-element-e1eac7e,
  .elementor-element-e2f8e7e,
  .elementor-element-7deec0f5
) {
  width: calc((100% - 40px) / 3) !important;
  max-width: calc((100% - 40px) / 3) !important;
  min-height: 150px !important;
  flex: 0 0 calc((100% - 40px) / 3) !important;
  border-color: #dbe4ea !important;
  border-radius: var(--brainseer-radius);
  background: var(--brainseer-surface);
  box-shadow: 0 6px 16px rgba(12, 22, 44, 0.06);
  overflow: hidden;
}

body.brainseer-ui--home .elementor-element-5d14d352 :is(
  .elementor-element-491ab05,
  .elementor-element-14f2cffe,
  .elementor-element-bec3763,
  .elementor-element-e1eac7e,
  .elementor-element-e2f8e7e,
  .elementor-element-7deec0f5
) > .elementor-element-populated {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px 20px !important;
}

body.brainseer-ui--home .elementor-element-5d14d352 :is(
  .elementor-element-491ab05,
  .elementor-element-14f2cffe,
  .elementor-element-bec3763,
  .elementor-element-e1eac7e,
  .elementor-element-e2f8e7e,
  .elementor-element-7deec0f5
) .elementor-widget-image {
  margin: 0;
}

body.brainseer-ui--home .elementor-element-5d14d352 :is(
  .elementor-element-491ab05,
  .elementor-element-14f2cffe,
  .elementor-element-bec3763,
  .elementor-element-e1eac7e,
  .elementor-element-e2f8e7e,
  .elementor-element-7deec0f5
) .elementor-widget-image img {
  width: 82px;
  height: 82px;
  max-width: 82px;
  object-fit: contain;
}

body.brainseer-ui--home .elementor-element-5d14d352 :is(
  .elementor-element-491ab05,
  .elementor-element-14f2cffe,
  .elementor-element-bec3763,
  .elementor-element-e1eac7e,
  .elementor-element-e2f8e7e,
  .elementor-element-7deec0f5
) .elementor-icon-box-wrapper {
  text-align: left;
}

body.brainseer-ui--home .elementor-element-5d14d352 :is(
  .elementor-element-491ab05,
  .elementor-element-14f2cffe,
  .elementor-element-bec3763,
  .elementor-element-e1eac7e,
  .elementor-element-e2f8e7e,
  .elementor-element-7deec0f5
) .elementor-icon-box-title {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.2;
}

body.brainseer-ui--home .elementor-element-5d14d352 :is(
  .elementor-element-491ab05,
  .elementor-element-14f2cffe,
  .elementor-element-bec3763,
  .elementor-element-e1eac7e,
  .elementor-element-e2f8e7e,
  .elementor-element-7deec0f5
) .elementor-icon-box-description {
  max-width: none;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

@media (min-width: 768px) and (max-width: 1024px) {
  body.brainseer-ui--home .elementor-element-5d14d352 .elementor-inner-section > .elementor-container {
    flex-wrap: wrap;
  }

  body.brainseer-ui--home .elementor-element-5d14d352 :is(
    .elementor-element-491ab05,
    .elementor-element-14f2cffe,
    .elementor-element-bec3763,
    .elementor-element-e1eac7e,
    .elementor-element-e2f8e7e,
    .elementor-element-7deec0f5
  ) {
    width: calc((100% - 20px) / 2) !important;
    max-width: calc((100% - 20px) / 2) !important;
    flex-basis: calc((100% - 20px) / 2) !important;
  }
}

@media (max-width: 767px) {
  body.brainseer-ui--home .elementor-element-5d14d352 .elementor-inner-section > .elementor-container {
    flex-direction: column;
    gap: 12px;
  }

  body.brainseer-ui--home .elementor-element-5d14d352 :is(
    .elementor-element-491ab05,
    .elementor-element-14f2cffe,
    .elementor-element-bec3763,
    .elementor-element-e1eac7e,
    .elementor-element-e2f8e7e,
    .elementor-element-7deec0f5
  ) {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 132px !important;
    flex-basis: 100% !important;
  }

  body.brainseer-ui--home .elementor-element-5d14d352 :is(
    .elementor-element-491ab05,
    .elementor-element-14f2cffe,
    .elementor-element-bec3763,
    .elementor-element-e1eac7e,
    .elementor-element-e2f8e7e,
    .elementor-element-7deec0f5
  ) > .elementor-element-populated {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    padding: 16px !important;
  }

  body.brainseer-ui--home .elementor-element-5d14d352 :is(
    .elementor-element-491ab05,
    .elementor-element-14f2cffe,
    .elementor-element-bec3763,
    .elementor-element-e1eac7e,
    .elementor-element-e2f8e7e,
    .elementor-element-7deec0f5
  ) .elementor-widget-image img {
    width: 68px;
    height: 68px;
    max-width: 68px;
  }
}

body.brainseer-ui--home .elementor-element-478ba9e8 {
  width: min(100%, 1320px);
  margin: 24px auto 0 !important;
}

/* These Elementor sections contain only legacy dividers. Removing their boxes
   closes the false gaps without hiding any homepage content. */
body.brainseer-ui--home .elementor-element-46c9bb67 .elementor-element-e9d0eaa {
  display: none !important;
}

body.brainseer-ui--home .elementor-element-478ba9e8 > .elementor-container {
  flex-wrap: wrap;
  gap: 16px;
}

body.brainseer-ui--home .elementor-element-478ba9e8 > .elementor-container > .elementor-column {
  width: calc(50% - 8px) !important;
  min-height: 170px !important;
  flex: 0 0 calc(50% - 8px) !important;
  border-color: #dbe4ea !important;
  box-shadow: 0 6px 16px rgba(12, 22, 44, 0.06);
}

body.brainseer-ui--home .elementor-element-478ba9e8 > .elementor-container > .elementor-column > .elementor-widget-wrap {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 22px 26px !important;
}

body.brainseer-ui--home .elementor-element-478ba9e8 .elementor-widget-image {
  width: 100% !important;
  margin: 0 !important;
}

body.brainseer-ui--home .elementor-element-478ba9e8 .elementor-widget-image img {
  width: auto;
  max-width: 120px;
  max-height: 105px;
  object-fit: contain;
}

body.brainseer-ui--home .elementor-element-478ba9e8 .elementor-icon-box-title {
  margin-top: 0 !important;
}

body.brainseer-ui--home .elementor-element-478ba9e8 .elementor-icon-box-wrapper {
  text-align: left;
}

body.brainseer-ui--home .elementor-element-478ba9e8 .elementor-icon-box-content {
  text-align: left;
}

body.brainseer-ui--home .elementor-element-478ba9e8 .elementor-icon-box-title,
body.brainseer-ui--home .elementor-element-478ba9e8 .elementor-icon-box-title a {
  color: var(--brainseer-blue);
}

body.brainseer-ui--home .elementor-element-478ba9e8 .elementor-icon-box-description {
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body.brainseer-ui--home .elementor-element-3c86f3f4 {
  width: min(100%, 652px);
  margin: 40px auto 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.brainseer-ui--home .elementor-element-5112a79 {
  min-height: 170px !important;
  padding: 22px 26px !important;
  border-color: #dbe4ea !important;
  box-shadow: 0 6px 16px rgba(12, 22, 44, 0.06);
}

body.brainseer-ui--home .elementor-element-5112a79 > .elementor-widget-wrap {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.brainseer-ui--home .elementor-element-419820d,
body.brainseer-ui--home .elementor-element-8d4ddf3 {
  width: 100% !important;
  max-width: none !important;
}

body.brainseer-ui--home .elementor-element-419820d img {
  width: 110px;
  max-height: 105px;
  object-fit: contain;
}

body.brainseer-ui--home .elementor-element-8d4ddf3 .elementor-icon-box-wrapper {
  text-align: left;
}

body.brainseer-ui--home .elementor-element-8d4ddf3 .elementor-icon-box-content {
  text-align: left;
}

body.brainseer-ui--home .elementor-element-8d4ddf3 .elementor-icon-box-title {
  margin-top: 0 !important;
}

body.brainseer-ui--home .elementor-element-8d4ddf3 .elementor-icon-box-description {
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body.brainseer-ui--home .elementor-element-009a388,
body.brainseer-ui--home .elementor-element-e850e5c {
  display: none !important;
}

/* Forms and viewer controls */
body.brainseer-ui input:not([type="checkbox"]):not([type="radio"]),
body.brainseer-ui select,
body.brainseer-ui textarea {
  min-height: 40px;
  border: 1px solid #cbd6de;
  border-radius: 4px;
  background: #fff;
  color: var(--brainseer-ink);
  box-shadow: none;
}

body.brainseer-ui input:not([type="checkbox"]):not([type="radio"]):focus,
body.brainseer-ui select:focus,
body.brainseer-ui textarea:focus {
  border-color: var(--brainseer-blue);
}

body.brainseer-ui .elementor-button,
body.brainseer-ui button,
body.brainseer-ui input[type="submit"] {
  min-height: 40px;
  border-radius: 4px;
  letter-spacing: 0;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body.brainseer-ui .card-buttons a:not([aria-disabled="true"]),
body.brainseer-ui a.elementor-button {
  color: #ffffff;
  text-decoration: none;
}

body.brainseer-ui .card-buttons a[aria-disabled="true"] {
  color: #5f6d7b;
  text-decoration: none;
}

body.brainseer-ui .elementor-button:hover,
body.brainseer-ui button:hover,
body.brainseer-ui input[type="submit"]:hover {
  transform: translateY(-1px);
}

body.brainseer-ui table {
  border-color: var(--brainseer-line);
}

body.brainseer-ui th {
  background: #edf3f6;
  color: var(--brainseer-ink);
  font-weight: 700;
}

/* Shared footer */
body.brainseer-ui footer.elementor-top-section {
  min-height: 0 !important;
  padding: 44px 24px 28px !important;
  background-color: var(--brainseer-slate) !important;
}

body.brainseer-ui footer.elementor-top-section > .elementor-container {
  width: min(100%, 1120px);
}

body.brainseer-ui footer .elementor-widget-text-editor,
body.brainseer-ui footer .elementor-heading-title,
body.brainseer-ui footer a {
  line-height: 1.5;
}

@media (max-width: 1024px) {
  body.brainseer-ui header.elementor-top-section > .elementor-container {
    width: min(100% - 32px, 960px);
  }

  body.brainseer-ui--editorial .elementor-section.elementor-top-section:not(header):not(footer) > .elementor-container {
    width: min(100% - 40px, 900px);
  }

  body.brainseer-ui:not(.brainseer-ui--home) header.elementor-top-section + section.elementor-top-section {
    height: 150px !important;
    min-height: 150px !important;
  }

  body.brainseer-ui:not(.brainseer-ui--home) header.elementor-top-section + section.elementor-top-section > .elementor-container {
    width: calc(100% - 40px) !important;
    height: 150px !important;
    min-height: 150px !important;
  }

  body.brainseer-ui--data header.elementor-top-section + section.elementor-top-section ~ section.elementor-top-section:not(footer) > .elementor-container,
  body.brainseer-ui--atlas header.elementor-top-section + section.elementor-top-section ~ section.elementor-top-section:not(footer) > .elementor-container,
  body.brainseer-ui--landing header.elementor-top-section + section.elementor-top-section ~ section.elementor-top-section:not(footer) > .elementor-container,
  body.brainseer-ui--species header.elementor-top-section + section.elementor-top-section ~ section.elementor-top-section:not(footer) > .elementor-container {
    width: calc(100% - 32px) !important;
  }

  body.brainseer-ui--home .elementor-element-478ba9e8 > .elementor-container {
    flex-wrap: wrap;
  }

  body.brainseer-ui--home .elementor-element-478ba9e8 > .elementor-container > .elementor-column {
    width: calc(50% - 8px) !important;
  }
}

@media (max-width: 767px) {
  body.brainseer-ui {
    font-size: 15px;
  }

  body.brainseer-ui--data .main-layout {
    width: 100% !important;
  }

  body.brainseer-ui--home .elementor-element-46c9bb67,
  body.brainseer-ui--home .elementor-element-1e3b9621 {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  body.brainseer-ui--home .elementor-element-478ba9e8 {
    margin-top: 28px !important;
  }

  body.brainseer-ui--home .elementor-element-478ba9e8 > .elementor-container > .elementor-column {
    width: 100% !important;
    min-height: 160px !important;
    flex-basis: 100% !important;
  }

  body.brainseer-ui--home .elementor-element-478ba9e8 > .elementor-container > .elementor-column > .elementor-widget-wrap {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    padding: 18px !important;
  }

  body.brainseer-ui header.elementor-top-section {
    min-height: 64px !important;
  }

  body.brainseer-ui header.elementor-top-section > .elementor-container {
    width: calc(100% - 24px);
    min-height: 64px;
    flex-wrap: nowrap;
    position: relative;
  }

  body.brainseer-ui header.elementor-top-section > .elementor-container > .elementor-column:nth-child(1) {
    width: 72% !important;
  }

  body.brainseer-ui header.elementor-top-section > .elementor-container > .elementor-column:nth-child(2) {
    width: 28% !important;
  }

  body.brainseer-ui header.elementor-top-section > .elementor-container > .elementor-column:nth-child(3) {
    display: none !important;
  }

  body.brainseer-ui header .elementor-widget-image img {
    max-width: 220px;
    max-height: 42px;
  }

  body.brainseer-ui header .elementor-widget-theme-site-logo {
    text-align: left;
  }

  body.brainseer-ui header.elementor-top-section > .elementor-container > .elementor-column:nth-child(2) > .elementor-widget-wrap {
    justify-content: flex-end;
  }

  body.brainseer-ui header .elementor-widget-nav-menu {
    width: auto;
    margin-left: auto;
  }

  body.brainseer-ui header .elementor-menu-toggle {
    width: 42px;
    height: 42px;
    margin-right: 0;
    margin-left: auto;
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 4px;
  }

  body.brainseer-ui header .elementor-menu-toggle svg {
    width: 22px;
    height: 22px;
    fill: currentColor !important;
  }

  body.brainseer-ui header .elementor-nav-menu--dropdown {
    border-top: 1px solid rgba(42, 166, 214, 0.55);
    box-shadow: 0 16px 28px rgba(3, 8, 36, 0.2);
  }

  body.brainseer-ui header .elementor-nav-menu--dropdown a {
    min-height: 44px;
    padding: 11px 16px;
  }

  body.brainseer-ui:not(.brainseer-ui--home) header.elementor-top-section + section.elementor-top-section {
    height: 132px !important;
    min-height: 132px !important;
  }

  body.brainseer-ui:not(.brainseer-ui--home) header.elementor-top-section + section.elementor-top-section > .elementor-container {
    width: calc(100% - 32px) !important;
    height: 132px !important;
    min-height: 132px !important;
  }

  body.brainseer-ui:not(.brainseer-ui--home) header.elementor-top-section + section .elementor-heading-title {
    max-width: min(72vw, 360px);
    font-size: 22px;
    line-height: 1.2;
  }

  body.brainseer-ui:not(.brainseer-ui--home) header.elementor-top-section + section .elementor-widget-image img {
    max-width: 72px;
    max-height: 72px;
  }

  body.brainseer-ui.page-id-6423 header.elementor-top-section + section .elementor-inner-section > .elementor-container {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  body.brainseer-ui.page-id-6423 header.elementor-top-section + section .elementor-inner-section > .elementor-container > .elementor-column:first-child {
    display: none !important;
    width: 0 !important;
  }

  body.brainseer-ui.page-id-6423 header.elementor-top-section + section .elementor-inner-section > .elementor-container > .elementor-column:last-child,
  body.brainseer-ui.page-id-6423 header.elementor-top-section + section .elementor-widget-heading {
    width: 240px !important;
    max-width: 240px !important;
  }

  body.brainseer-ui.page-id-6423 header.elementor-top-section + section .elementor-heading-title {
    width: 240px;
    max-width: 240px;
    font-size: 22px;
    overflow-wrap: normal;
  }

  body.brainseer-ui--data table,
  body.brainseer-ui--atlas table,
  body.brainseer-ui--species table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.brainseer-ui:not(.brainseer-ui--home) header.elementor-top-section + section :is(.breadcrumbs, .breadcrumb, .rank-math-breadcrumb) {
    font-size: 13px;
  }

  body.brainseer-ui--editorial .elementor-section.elementor-top-section:not(header):not(footer) {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  body.brainseer-ui--editorial .elementor-section.elementor-top-section:not(header):not(footer) > .elementor-container {
    width: calc(100% - 32px);
  }

  body.brainseer-ui--editorial .elementor-widget-text-editor {
    font-size: 16px;
  }

  body.brainseer-ui--data header.elementor-top-section + section.elementor-top-section ~ section.elementor-top-section:not(footer) > .elementor-container,
  body.brainseer-ui--atlas header.elementor-top-section + section.elementor-top-section ~ section.elementor-top-section:not(footer) > .elementor-container,
  body.brainseer-ui--landing header.elementor-top-section + section.elementor-top-section ~ section.elementor-top-section:not(footer) > .elementor-container,
  body.brainseer-ui--species header.elementor-top-section + section.elementor-top-section ~ section.elementor-top-section:not(footer) > .elementor-container {
    width: calc(100% - 20px) !important;
  }

  body.brainseer-ui--atlas header.elementor-top-section + section.elementor-top-section ~ section.elementor-top-section:not(footer),
  body.brainseer-ui--landing header.elementor-top-section + section.elementor-top-section ~ section.elementor-top-section:not(footer),
  body.brainseer-ui--species header.elementor-top-section + section.elementor-top-section ~ section.elementor-top-section:not(footer) {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  body.brainseer-ui footer.elementor-top-section {
    padding: 34px 20px 24px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.brainseer-ui *,
  body.brainseer-ui *::before,
  body.brainseer-ui *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
