/* Separate website identities: TissueForge materials; Merotope app + service. */
:root { --tf-header-height: 108px; }
html { scroll-padding-top: calc(var(--tf-header-height) + 18px); }
.site-header.has-destinations, .analytics-page .ba-header {
  position: sticky; top: 0; left: auto; right: auto; z-index: 40;
  align-items: center; gap: 0; min-height: 0;
  border-bottom: 1px solid #d9e3ef; background: rgba(255,255,255,.97);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 5px 24px #07133406;
}
.site-header.has-destinations {
  display: grid; grid-template-columns: auto 1fr auto;
  padding: 18px clamp(22px,4vw,68px); column-gap: 30px;
}
.tissueforge-identity { display: block; width: 290px; max-width: 100%; }
.tissueforge-identity img { display: block; width: 100%; height: auto; }
.has-destinations .site-nav {
  display: flex; position: static; align-items: center; justify-content: flex-end;
  gap: clamp(18px,2.5vw,36px); margin: 0; padding: 0; min-width: 0;
}
.has-destinations .site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.has-destinations .menu-button { display: none; }
.has-destinations~main>.hero { padding-top: 0; min-height: calc(49rem - 7rem); }
.analytics-page .ba-header { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; }
.analytics-page .ba-header .destination-switch {
  grid-column: 1/-1; grid-row: 1; display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; max-width: none;
  margin: 0; padding: 0; gap: 0; border: 0; border-bottom: 1px solid #dfe7f1;
  border-radius: 0; background: #f8fafc;
}
.destination-switch a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-width: 0; min-height: 138px; padding: 18px 24px;
  color: #53647c; text-decoration: none; text-align: center;
  font: 600 14px/1.4 Arial,Helvetica,sans-serif; border: 0; border-radius: 0;
  transition: color 180ms ease,background-color 180ms ease;
}
.destination-switch a+a { border-left: 1px solid #dfe7f1; }
.destination-switch a::after { content: ''; position: absolute; inset: auto 0 -1px; height: 3px; background: #175eaa; opacity: 0; }
.destination-switch a[aria-current="page"] { color: #0b245d; background: linear-gradient(110deg,#f1f6fc,#eaf3fb 55%,#f0f7fa); }
.destination-switch a[aria-current="page"]::after { opacity: 1; }
.destination-brand { display: flex; align-items: center; justify-content: center; width: min(320px,100%); height: 76px; }
.destination-switch .destination-logo { display: block; width: 270px; max-width: 100%; height: auto; max-height: 76px; object-fit: contain; }
.destination-switch .destination-logo-analysis { width: 292px; }
.destination-switch .destination-logo-merotope-compact,
.destination-switch .destination-logo-analysis-compact { display: none; }
.destination-label { display: block; }
.analytics-page .studio-subnav, .analytics-page .analytics-subnav {
  display: flex; grid-row: 2; align-items: center; justify-content: center;
  gap: 24px; min-height: 52px; padding: 4px 16px; margin: 0;
}
.analytics-page .studio-subnav { grid-column: 1; }
.analytics-page .analytics-subnav { grid-column: 2; }
.analytics-page .studio-subnav a, .analytics-page .analytics-subnav a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; color: #263b65; font-size: 12px; font-weight: 600; text-decoration: none; text-align: center;
}
.destination-switch a:focus-visible, .tissueforge-identity:focus-visible { outline: 3px solid #245bff; outline-offset: -4px; }
.has-destinations .site-nav a:focus-visible, .has-destinations .menu-button:focus-visible,
.analytics-subnav a:focus-visible, .studio-subnav a:focus-visible { outline: 2px solid #245bff; outline-offset: 3px; }
.analytics-page .ba-footer img, .analytics-page .studio-footer img { width: 260px; max-width: 100%; height: auto; }
@media (hover:hover) {
  .destination-switch a:hover { background-color: #eaf0f8; color: #0b245d; }
  .analytics-subnav a:hover, .studio-subnav a:hover { color: #245bff; }
}
@media(max-width:1000px) {
  .site-header.has-destinations { padding: 14px 24px; grid-template-columns: minmax(0,1fr) auto; }
  .tissueforge-identity { width: 260px; }
  .has-destinations .menu-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: auto; min-height: 44px; height: auto; margin: 0; padding: 0 14px;
    background: transparent; border: 0; border-radius: 10px; color: #263b65;
    font: 600 13px/1.3 Arial,Helvetica,sans-serif; cursor: pointer;
  }
  .has-destinations .menu-button .module-menu-label { display: inline; width: auto; height: auto; background: none; transform: none; }
  .has-destinations .menu-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
  .has-destinations .menu-button:hover, .has-destinations .menu-button[aria-expanded="true"] { background: #eef6f8; }
  .has-destinations .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    width: 100%; margin: 0; padding: 10px 24px 24px; gap: 0;
    max-height: calc(100dvh - var(--tf-header-height)); overflow-y: auto;
    background: #fff; border-block: 1px solid #dbe3ef; box-shadow: 0 15px 25px #0713340b;
  }
  .has-destinations .site-nav.is-open { display: grid; justify-content: stretch; }
  .has-destinations .site-nav a { padding: 16px 0; font-size: 15px; border-bottom: 1px solid #e6edf5; }
  .has-destinations .site-nav a::after { display: none; }
}
@media(max-width:680px) {
  .site-header.has-destinations { padding: 14px 18px; column-gap: 15px; }
  .tissueforge-identity { width: min(240px,100%); }
  .has-destinations .menu-button { padding-inline: 6px; font-size: 12px; }
  .destination-switch a { min-height: 110px; padding: 14px 12px; gap: 9px; font-size: 12px; }
  .destination-brand { height: 48px; }
  .destination-switch .destination-logo-merotope,
  .destination-switch .destination-logo-analysis { display: none; }
  .destination-switch .destination-logo-merotope-compact,
  .destination-switch .destination-logo-analysis-compact { display: block; width: 48px; height: 48px; }
  .analytics-page .studio-subnav, .analytics-page .analytics-subnav { grid-column: 1/-1; gap: 24px; min-height: 48px; }
  .has-destinations~main>.hero { min-height: 0; }
}
@media(prefers-reduced-motion:reduce) { .destination-switch a { transition: none; } }
