:root {
  --mug-bg: #f5f7fb;
  --mug-surface: #ffffff;
  --mug-surface-soft: #f9fbfd;
  --mug-ink: #172238;
  --mug-muted: #66758b;
  --mug-line: #dde5ee;
  --mug-navy: #102b4e;
  --mug-navy-2: #173e68;
  --mug-teal: #0e7c86;
  --mug-teal-2: #22aaa1;
  --mug-teal-soft: #e9f7f5;
  --mug-radius: 20px;
  --mug-shadow: 0 18px 50px rgba(16, 43, 78, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 92% 5%, rgba(34, 170, 161, 0.10), transparent 26rem),
    linear-gradient(180deg, #f8fafc 0%, var(--mug-bg) 100%);
  color: var(--mug-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body > .container {
  width: min(1440px, calc(100% - 32px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 18px 0 56px !important;
}

body > .container > .row {
  margin: 0 !important;
}

.tm-left-right-container {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
}

/* Header / brand: same visual family as POSEIDON and SpotOne */
.topnav {
  position: sticky;
  top: 12px;
  z-index: 100;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 0 28px !important;
  padding: 12px 16px 12px 20px !important;
  border: 1px solid rgba(221, 229, 238, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 12px 34px rgba(16, 43, 78, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tm-logo-div {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.tm-site-name {
  margin: 0 !important;
  color: var(--mug-navy) !important;
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: -0.04em;
}

.tm-site-name::after {
  content: "Mutation Understanding for GPCRs";
  display: block;
  margin-top: 5px;
  color: var(--mug-muted);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.015em;
}

.tm-main-nav {
  flex: 1 1 auto;
  padding: 0 !important;
}

.tm-main-nav-ul {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.tm-nav-item {
  position: relative;
  margin: 0 !important;
}

.tm-nav-item-link,
.dropbtn {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  min-height: 40px;
  padding: 9px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: #415069 !important;
  font-family: inherit !important;
  font-size: 0.86rem !important;
  font-weight: 650 !important;
  line-height: 1.15;
  text-align: left !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition:
    color 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.tm-nav-item-link:hover,
.tm-nav-item-link:focus,
.dropbtn:hover,
.dropbtn:focus,
.tm-nav-item.active > .tm-nav-item-link {
  border-color: #d5e7e6 !important;
  background: var(--mug-teal-soft) !important;
  color: #0b626b !important;
  outline: none;
}

.dropdown {
  position: relative !important;
}

.dropdown-content {
  position: absolute !important;
  top: calc(100% + 8px);
  right: 0;
  left: auto !important;
  z-index: 120;
  display: none;
  min-width: 225px !important;
  padding: 8px !important;
  border: 1px solid var(--mug-line);
  border-radius: 14px;
  background: #ffffff !important;
  box-shadow: 0 18px 42px rgba(16, 43, 78, 0.14) !important;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block !important;
}

.dropdown-content br {
  display: none;
}

.dropdown-content .tm-nav-item-link {
  display: block !important;
  width: 100% !important;
  padding: 9px 10px !important;
  color: #4d5d72 !important;
  white-space: normal;
}

.dropdown-content .tm-nav-item-link:hover {
  color: #0b626b !important;
}

/* Page shell */
.tm-right-column {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
}

.tm-content-div {
  width: 100% !important;
  padding: 0 !important;
}

.tm-content-div > .tm-section {
  margin: 0 0 24px !important;
  padding: clamp(28px, 4vw, 52px) !important;
  border: 1px solid var(--mug-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--mug-shadow);
}

/* First section behaves like the modern product hero */
#welcome {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 10%, rgba(34, 170, 161, 0.14), transparent 20rem),
    linear-gradient(135deg, #ffffff 0%, #f8fbfd 72%, #eff9f7 100%) !important;
}

#welcome::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -80px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(14, 124, 134, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.tm-blue-text,
.tm-welcome-title,
.tm-section-title {
  color: var(--mug-navy) !important;
}

.tm-welcome-title {
  margin: 0 0 14px !important;
  color: var(--mug-navy) !important;
  font-size: clamp(2.25rem, 5vw, 4.25rem) !important;
  font-weight: 820 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.055em;
}

.tm-welcome-title::before {
  content: "MOREIRALAB · GPCR DATA RESOURCE";
  display: block;
  margin-bottom: 14px;
  color: var(--mug-teal);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
}

.tm-section-title {
  margin: 0 0 16px !important;
  font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
  font-weight: 760 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.03em;
}

h3.tm-section-title {
  font-size: 1.12rem !important;
}

p {
  max-width: 88ch;
  color: var(--mug-muted);
}

#welcome > p {
  max-width: 64ch;
  color: #506177;
  font-size: 1.07rem;
}

/* Nested scientific sections become modern content cards */
.tm-section .tm-section {
  position: relative;
  margin: 32px 0 0 !important;
  padding: 28px !important;
  border: 1px solid var(--mug-line);
  border-radius: var(--mug-radius);
  background: var(--mug-surface) !important;
  box-shadow: 0 10px 30px rgba(16, 43, 78, 0.055);
}

.tm-section .tm-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  width: 52px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--mug-teal), var(--mug-teal-2));
}

/* Plotly and data blocks */
.chart {
  width: 100% !important;
  max-width: 100%;
  margin: 26px 0 !important;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid var(--mug-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 43, 78, 0.045);
}

.js-plotly-plot,
.plot-container,
.svg-container {
  max-width: 100% !important;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 14px;
}

td {
  vertical-align: top;
}

/* Form controls / actions */
.form-control {
  min-height: 46px;
  border: 1px solid var(--mug-line) !important;
  border-radius: 12px !important;
  background: #fbfcfe !important;
  box-shadow: none !important;
  color: var(--mug-ink) !important;
}

textarea.form-control {
  min-height: 140px;
}

.form-control:focus {
  border-color: var(--mug-teal-2) !important;
  box-shadow: 0 0 0 3px rgba(34, 170, 161, 0.13) !important;
}

.tm-button,
button[type="submit"] {
  min-height: 44px;
  padding: 10px 18px !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, var(--mug-teal), var(--mug-teal-2)) !important;
  color: #ffffff !important;
  font-weight: 750 !important;
  box-shadow: 0 10px 22px rgba(14, 124, 134, 0.16);
}

.tm-button:hover,
button[type="submit"]:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

/* Contact and footer */
#contact {
  background:
    linear-gradient(135deg, #ffffff 0%, #f5fbfa 100%) !important;
}

#contact::before {
  content: "MoreiraLAB";
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--mug-teal-soft);
  color: var(--mug-teal);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--mug-line);
}

.tm-copyright-p {
  margin: 0;
  color: #8290a2;
  font-size: 0.86rem;
}

.tm-copyright-p a {
  color: var(--mug-navy-2) !important;
  font-weight: 700;
  text-decoration: none;
}

/* Responsive behaviour */
@media (max-width: 1100px) {
  .topnav {
    position: relative;
    top: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .tm-main-nav {
    width: 100%;
  }

  .tm-main-nav-ul {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .dropdown-content {
    right: auto;
    left: 0 !important;
  }
}

@media (max-width: 760px) {
  body > .container {
    width: min(100% - 16px, 1440px) !important;
    padding-top: 8px !important;
  }

  .topnav {
    padding: 14px !important;
    border-radius: 15px;
  }

  .tm-main-nav-ul {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .tm-nav-item-link,
  .dropbtn {
    width: 100% !important;
  }

  .dropdown-content {
    position: static !important;
    width: 100%;
    margin-top: 4px;
    box-shadow: none !important;
  }

  .tm-content-div > .tm-section {
    padding: 26px 20px !important;
    border-radius: 18px;
  }

  .tm-section .tm-section {
    padding: 22px 18px !important;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100% !important;
  }

  td {
    padding: 0 !important;
  }

  .chart {
    padding: 4px;
  }
}

@media (max-width: 480px) {
  .tm-main-nav-ul {
    grid-template-columns: 1fr;
  }

  .tm-welcome-title {
    font-size: 2.4rem !important;
  }
}


/* ==========================================================
   MUG landing page — product layout aligned with POSEIDON
   ========================================================== */
.mug-home {
  background: #f6f8fb;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.product-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(221, 229, 238, 0.92);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.product-header-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.product-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--mug-navy);
  text-decoration: none !important;
}

.product-mark {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--mug-navy), var(--mug-navy-2));
  color: #fff;
  font-size: .86rem;
  font-weight: 850;
  letter-spacing: .04em;
}

.product-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.product-brand-copy strong {
  color: var(--mug-navy);
  font-size: .94rem;
  font-weight: 760;
}

.product-brand-copy small {
  margin-top: 3px;
  color: var(--mug-muted);
  font-size: .72rem;
}

.product-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.product-nav a {
  padding: 9px 11px;
  border-radius: 10px;
  color: #485a72;
  font-size: .84rem;
  font-weight: 650;
  text-decoration: none !important;
}

.product-nav a:hover,
.product-nav a.active {
  background: var(--mug-teal-soft);
  color: #0b626b;
}

.product-hero {
  padding: 72px 0 48px;
  background:
    radial-gradient(circle at 84% 18%, rgba(34, 170, 161, .13), transparent 25rem),
    linear-gradient(180deg, #fff 0%, #f7fafc 100%);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 64px;
  align-items: center;
}

.kicker {
  margin: 0 0 13px;
  color: var(--mug-teal);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.product-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--mug-navy);
  font-size: clamp(2.8rem, 5.5vw, 5.15rem);
  font-weight: 820;
  line-height: .97;
  letter-spacing: -.058em;
}

.product-lede {
  max-width: 700px;
  margin: 24px 0 0;
  color: #53647a;
  font-size: 1.12rem;
  line-height: 1.72;
}

.hero-actions,
.paper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn.primary,
.btn.secondary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 11px;
  font-weight: 760;
  text-decoration: none !important;
}

.btn.primary {
  border: 1px solid var(--mug-teal);
  background: linear-gradient(135deg, var(--mug-teal), var(--mug-teal-2));
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(14, 124, 134, .17);
}

.btn.secondary {
  border: 1px solid var(--mug-line);
  background: #fff;
  color: var(--mug-navy) !important;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-meta span {
  padding: 6px 9px;
  border: 1px solid #dbe7ea;
  border-radius: 999px;
  background: #f9fcfc;
  color: #607286;
  font-size: .74rem;
  font-weight: 650;
}

.science-visual-card {
  padding: 22px;
  border: 1px solid var(--mug-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(16, 43, 78, .13);
}

.science-visual-head,
.science-visual-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  color: var(--mug-navy);
  font-size: .78rem;
  font-weight: 800;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mug-teal);
  font-size: .72rem;
  font-weight: 800;
}

.status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mug-teal-2);
  box-shadow: 0 0 0 5px rgba(34, 170, 161, .11);
}

.receptor-visual {
  position: relative;
  height: 310px;
  margin: 20px 0 18px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 45%, rgba(34, 170, 161, .12), transparent 11rem),
    linear-gradient(180deg, #f9fcfd, #eef5f7);
}

.membrane {
  position: absolute;
  left: 0;
  width: 100%;
  height: 24px;
  opacity: .55;
  background:
    radial-gradient(circle, #adcbd1 3px, transparent 4px) 0 0 / 18px 18px;
}

.membrane-top { top: 70px; }
.membrane-bottom { bottom: 70px; }

.tm {
  position: absolute;
  top: 70px;
  width: 28px;
  height: 172px;
  border-radius: 22px;
  background: linear-gradient(180deg, #173e68 0%, #0e7c86 58%, #22aaa1 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 10px 24px rgba(16,43,78,.12);
  transform-origin: center;
}

.tm i {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #f06f72;
  box-shadow: 0 0 0 3px rgba(240,111,114,.14);
}

.tm i:nth-child(1) { top: 35px; left: 9px; }
.tm i:nth-child(2) { top: 82px; right: -2px; }
.tm i:nth-child(3) { bottom: 25px; left: -2px; }

.tm1 { left: 20%; transform: rotate(-13deg); }
.tm2 { left: 30%; transform: rotate(8deg); }
.tm3 { left: 40%; transform: rotate(-6deg); }
.tm4 { left: 50%; transform: rotate(10deg); }
.tm5 { left: 60%; transform: rotate(-8deg); }
.tm6 { left: 70%; transform: rotate(7deg); }
.tm7 { left: 80%; transform: rotate(-10deg); }

.science-visual-legend {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: #617286;
  font-size: .72rem;
}

.science-visual-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-dot.mutation { background: #f06f72; }
.legend-dot.functional { background: var(--mug-teal-2); }

.lab-signature {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--mug-line);
}

.lab-signature img {
  width: auto;
  max-width: 160px;
  max-height: 42px;
  object-fit: contain;
}

.metrics-strip {
  border-top: 1px solid var(--mug-line);
  border-bottom: 1px solid var(--mug-line);
  background: #fff;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric-item {
  padding: 24px 18px;
  text-align: center;
}

.metric-item + .metric-item {
  border-left: 1px solid var(--mug-line);
}

.metric-item strong {
  display: block;
  color: var(--mug-navy);
  font-size: 1.75rem;
  font-weight: 820;
  line-height: 1;
}

.metric-item span {
  display: block;
  margin-top: 7px;
  color: var(--mug-muted);
  font-size: .78rem;
  font-weight: 650;
}

.content-section,
.insight-section,
.paper-section {
  padding: 76px 0;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.insight-grid h2,
.paper-card h2 {
  margin: 0;
  color: var(--mug-navy);
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.045em;
}

.section-heading > p:last-child,
.insight-grid > div > p {
  margin-top: 18px;
  color: var(--mug-muted);
  font-size: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.feature-card {
  position: relative;
  display: block;
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--mug-line);
  border-radius: 20px;
  background: #fff;
  color: inherit;
  text-decoration: none !important;
  box-shadow: 0 10px 32px rgba(16, 43, 78, .055);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #c9dedf;
  box-shadow: 0 18px 42px rgba(16, 43, 78, .09);
}

.feature-number {
  color: var(--mug-teal);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.feature-card h3 {
  margin: 22px 0 11px;
  color: var(--mug-navy);
  font-size: 1.25rem;
  font-weight: 780;
}

.feature-card p {
  margin: 0;
  color: var(--mug-muted);
  font-size: .9rem;
}

.feature-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--mug-teal);
  font-size: .84rem;
  font-weight: 760;
}

.insight-section {
  background: #102b4e;
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap: 72px;
  align-items: center;
}

.insight-grid h2 {
  color: #fff;
}

.insight-grid > div > p {
  color: rgba(255,255,255,.68);
}

.insight-section .kicker {
  color: #62d0c7;
}

.text-link {
  display: inline-block;
  margin-top: 15px;
  color: #75d9d1 !important;
  font-weight: 760;
  text-decoration: none !important;
}

.insight-stack {
  display: grid;
  gap: 12px;
}

.insight-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
}

.insight-card span {
  color: #75d9d1;
  font-size: 1.75rem;
  font-weight: 820;
}

.insight-card p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .88rem;
}

.paper-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: center;
  padding: 38px;
  border: 1px solid var(--mug-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--mug-shadow);
}

.paper-card h2 {
  max-width: 760px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.paper-authors,
.paper-journal,
.paper-doi {
  margin: 12px 0 0;
  color: var(--mug-muted);
  font-size: .88rem;
}

.paper-doi {
  color: var(--mug-teal);
  font-weight: 760;
}

.paper-actions {
  min-width: 170px;
  flex-direction: column;
  margin-top: 0;
}

.product-footer {
  border-top: 1px solid var(--mug-line);
  background: #fff;
}

.footer-grid {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-brand img {
  width: auto;
  max-width: 150px;
  max-height: 42px;
  object-fit: contain;
}

.footer-brand p {
  margin: 0;
  color: var(--mug-muted);
  font-size: .78rem;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: #52647b;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none !important;
}

@media (max-width: 960px) {
  .product-header-inner,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .product-nav {
    width: 100%;
    overflow-x: auto;
  }

  .product-hero-grid,
  .insight-grid,
  .paper-card {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .science-visual-card {
    max-width: 680px;
  }

  .paper-actions {
    flex-direction: row;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .product-hero {
    padding-top: 48px;
  }

  .product-brand-copy {
    display: none;
  }

  .product-nav a {
    white-space: nowrap;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--mug-line);
  }

  .metric-item:nth-child(4) {
    border-top: 1px solid var(--mug-line);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .insight-card {
    grid-template-columns: 68px 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .receptor-visual {
    height: 250px;
  }

  .tm {
    top: 55px;
    height: 140px;
  }

  .membrane-top { top: 55px; }
  .membrane-bottom { bottom: 55px; }
}


/* Landing header branding: exact MoreiraLAB wordmark family used in modern apps */
.brand-family {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 0 0 auto;
}

.lab-wordmark,
.mug-header-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none !important;
  line-height: 1;
}

.lab-wordmark strong {
  color: #102d4f;
  font-size: 1.34rem;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.lab-wordmark strong span {
  color: #15949c;
  font-weight: 820;
}

.lab-wordmark small {
  margin-top: 5px;
  color: #66758b;
  font-size: .56rem;
  font-weight: 760;
  letter-spacing: .12em;
}

.brand-separator {
  width: 1px;
  height: 38px;
  background: #d8e5e7;
}

.mug-header-lockup strong {
  color: #102d4f;
  font-size: 1.05rem;
  font-weight: 840;
  letter-spacing: .055em;
}

.mug-header-lockup small {
  margin-top: 5px;
  color: #66758b;
  font-size: .61rem;
  font-weight: 620;
  white-space: nowrap;
}

/* Landing dropdowns */
.product-header,
.product-header-inner,
.product-nav {
  overflow: visible !important;
}

.product-nav {
  position: relative;
  z-index: 220;
}

.product-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.product-dropbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #485a72;
  font-family: inherit;
  font-size: .84rem;
  font-weight: 650;
  cursor: pointer;
}

.product-dropbtn:hover,
.product-dropdown:focus-within .product-dropbtn,
.product-dropdown.is-open .product-dropbtn {
  background: var(--mug-teal-soft);
  color: #0b626b;
}

.product-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1000;
  display: none;
  width: 230px;
  padding: 8px;
  border: 1px solid #d8e5e7;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(16, 43, 78, .16);
}

.product-dropdown:hover .product-dropdown-menu,
.product-dropdown:focus-within .product-dropdown-menu,
.product-dropdown.is-open .product-dropdown-menu {
  display: block;
}

.product-dropdown-menu a {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border-radius: 9px;
  color: #4d5d72 !important;
  font-size: .82rem;
  font-weight: 650;
  text-decoration: none !important;
  white-space: normal;
}

.product-dropdown-menu a:hover,
.product-dropdown-menu a:focus {
  background: var(--mug-teal-soft);
  color: #0b626b !important;
}

/* Legacy internal-page dropdowns must not be clipped */
.topnav {
  overflow: visible !important;
}

.tm-main-nav,
.tm-main-nav-ul,
.tm-nav-item,
.dropdown {
  overflow: visible !important;
}

.dropdown-content {
  z-index: 1000 !important;
}

@media (max-width: 960px) {
  .brand-family {
    width: 100%;
  }

  .product-header-inner {
    overflow: visible !important;
  }

  .product-nav {
    flex-wrap: wrap;
    overflow: visible !important;
  }

  .product-dropdown-menu {
    left: 0;
    right: auto;
  }
}

@media (max-width: 700px) {
  .lab-wordmark strong {
    font-size: 1.12rem;
  }

  .lab-wordmark small {
    font-size: .49rem;
  }

  .brand-separator {
    height: 34px;
  }

  .mug-header-lockup small {
    display: none;
  }

  .product-dropdown {
    position: static;
  }

  .product-dropdown-menu {
    top: auto;
    left: 12px;
    right: 12px;
    width: auto;
  }
}


/* Always-visible scientific subnavigation */
.science-tabs {
  position: sticky;
  top: 74px;
  z-index: 180;
  border-bottom: 1px solid var(--mug-line);
  background: rgba(248, 250, 252, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.science-tabs-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.science-tabs-inner a,
.science-tabs-label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.science-tabs-inner a {
  padding: 7px 9px;
  border-radius: 9px;
  color: #56677d;
  font-size: .76rem;
  font-weight: 650;
  text-decoration: none !important;
}

.science-tabs-inner a:hover,
.science-tabs-inner a:focus {
  background: var(--mug-teal-soft);
  color: #0b626b;
}

.science-tabs-label {
  margin-right: 2px;
  color: var(--mug-navy);
  font-size: .68rem;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.science-tabs-divider {
  flex: 0 0 auto;
  width: 1px;
  height: 20px;
  margin: 0 8px;
  background: #d6e0e8;
}

@media (max-width: 960px) {
  .science-tabs {
    position: relative;
    top: 0;
  }
}

@media (max-width: 700px) {
  .science-tabs-inner {
    min-height: 44px;
  }

  .science-tabs-inner a {
    padding: 6px 8px;
    font-size: .72rem;
  }
}


/* Hardening for clickable navigation */
.product-header,
.product-header-inner,
.product-nav,
.science-tabs,
.science-tabs-inner {
  pointer-events: auto !important;
}

.product-header *,
.science-tabs * {
  pointer-events: auto !important;
}

.science-tabs {
  position: relative !important;
  top: auto !important;
  z-index: 10 !important;
}

.science-tabs-inner {
  position: relative !important;
  z-index: 11 !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
}

.science-tabs-inner a {
  position: relative !important;
  z-index: 12 !important;
  cursor: pointer !important;
  user-select: none;
}

.product-hero,
.product-hero-grid,
.science-visual-card {
  position: relative;
  z-index: 1;
}


/* Progressive loading for scientific plots. */
.chart { min-height: 90px; }

.mug-plot-loading,
.mug-plot-error-message {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #65758a;
  font-size: .86rem;
}

.mug-plot-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #d7e4e8;
  border-top-color: #15949c;
  border-radius: 50%;
  animation: mug-spin .8s linear infinite;
}

.mug-plot-error-message {
  flex-direction: column;
  color: #6e3f45;
}

.mug-plot-error-message button {
  padding: 7px 12px;
  border: 1px solid #d8e5e7;
  border-radius: 8px;
  background: #fff;
  color: #102d4f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@keyframes mug-spin { to { transform: rotate(360deg); } }


/* =========================================================
   Modern internal MUG pages — shared shell
   ========================================================= */
.mug-app-page {
  margin: 0;
  min-height: 100vh;
  background: #f7f9fc;
  color: #12253a;
}

.page-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid #d8e5e7;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header .header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.exact-lab-wordmark {
  text-decoration: none !important;
}

.exact-lab-wordmark strong {
  color: #102d4f;
  font-size: 1.65rem;
  font-weight: 780;
  letter-spacing: -.055em;
}

.exact-lab-wordmark strong span {
  color: #15949c;
  font-weight: 850;
}

.exact-lab-wordmark small {
  display: block;
  margin-top: 5px;
  color: #52667d;
  font-size: .56rem;
  font-weight: 760;
  letter-spacing: .12em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 10px 13px;
  border-radius: 9px;
  color: #44556c;
  font-size: .84rem;
  font-weight: 650;
  text-decoration: none !important;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: #eaf7f6;
  color: #0b626b;
}

.mug-product-bar {
  background: #fff;
  border-bottom: 1px solid #e3e9ef;
}

.mug-product-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.mug-product-lockup {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: #102d4f !important;
  text-decoration: none !important;
}

.mug-product-lockup strong {
  font-size: 1.22rem;
  font-weight: 850;
}

.mug-product-lockup span {
  color: #66758b;
  font-size: .78rem;
  font-weight: 620;
}

.mug-primary-nav {
  display: flex;
  gap: 4px;
}

.mug-primary-nav a {
  padding: 8px 11px;
  border-radius: 9px;
  color: #53657c;
  font-size: .78rem;
  font-weight: 680;
  text-decoration: none !important;
}

.mug-primary-nav a:hover,
.mug-primary-nav a.is-active {
  background: #eef8f7;
  color: #0d7078;
}

.internal-science-tabs {
  position: relative !important;
  top: auto !important;
  z-index: 20 !important;
  background: #f8fafc;
}

.internal-science-tabs .science-tabs-inner a.is-active {
  background: #e7f5f4;
  color: #0b626b;
}

.mug-page-main {
  min-height: calc(100vh - 280px);
}

.mug-page-hero {
  padding: 54px 0 28px;
  background:
    radial-gradient(circle at 88% 12%, rgba(54,183,189,.10), transparent 28rem),
    linear-gradient(180deg,#fff 0%,#f8fbfd 100%);
  border-bottom: 1px solid #e5ebf0;
}

.mug-page-hero h1 {
  max-width: 950px;
  margin: 0;
  color: #102d4f;
  font-size: clamp(2.65rem, 5vw, 4.8rem);
  font-weight: 820;
  line-height: .98;
  letter-spacing: -.055em;
}

.mug-page-lede {
  max-width: 900px;
  margin: 20px 0 0;
  color: #5b6d84;
  font-size: 1.02rem;
  line-height: 1.7;
}

.mug-page-content {
  padding: 34px 0 72px;
}

.mug-page-stack {
  display: grid;
  gap: 30px;
}

.mug-plot-grid {
  display: grid;
  gap: 30px;
}

.mug-plot-grid-two {
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: start;
}

.mug-plot-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid #dce5ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16,45,79,.065);
}

.mug-plot-card-head {
  margin-bottom: 20px;
}

.mug-plot-card-head h2 {
  margin: 0;
  color: #102d4f;
  font-size: 1.28rem;
  font-weight: 780;
  letter-spacing: -.025em;
}

.mug-plot-card-head p {
  max-width: 72ch;
  margin: 8px 0 0;
  color: #6a788b;
  font-size: .84rem;
  line-height: 1.55;
}

.mug-plot-canvas.chart {
  width: 100% !important;
  min-height: 520px;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
  border: 0;
  border-radius: 14px;
  background: #fbfcfe;
  box-shadow: inset 0 0 0 1px #e4eaf0;
}

.mug-plot-3d {
  min-height: 620px !important;
}

.mug-plot-heatmap {
  min-height: 520px !important;
}

.mug-plot-tall {
  min-height: 720px !important;
}

.mug-plot-table {
  min-height: 650px !important;
}

.mug-plot-wide {
  min-height: 540px !important;
}

.mug-plot-canvas .js-plotly-plot,
.mug-plot-canvas .plot-container,
.mug-plot-canvas .svg-container {
  width: 100% !important;
  min-height: inherit !important;
}

.mug-simple-footer {
  border-top: 1px solid #dfe6ed;
  background: #fff;
}

.mug-simple-footer-inner {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.mug-simple-footer-inner > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.mug-simple-footer strong {
  color: #102d4f;
  font-size: 1rem;
}

.mug-simple-footer span {
  color: #758397;
  font-size: .76rem;
}

.mug-footer-links {
  display: flex;
  gap: 18px;
}

.mug-footer-links a {
  color: #53657c;
  font-size: .76rem;
  font-weight: 680;
  text-decoration: none !important;
}

@media (max-width: 980px) {
  .site-header .header-inner,
  .mug-product-inner,
  .mug-simple-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .main-nav,
  .mug-primary-nav {
    width: 100%;
    overflow-x: auto;
  }

  .mug-plot-grid-two {
    grid-template-columns: 1fr;
  }

  .mug-plot-3d {
    min-height: 560px !important;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 24px,1200px);
  }

  .mug-product-lockup span {
    display: none;
  }

  .mug-page-hero {
    padding-top: 36px;
  }

  .mug-page-hero h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .mug-plot-card {
    padding: 18px;
    border-radius: 16px;
  }

  .mug-plot-canvas.chart,
  .mug-plot-heatmap {
    min-height: 440px !important;
  }

  .mug-plot-3d {
    min-height: 500px !important;
  }
}
