/* Layout utilities — TP tokens live in 02_tp_brand.css; fonts in 00_tp_sans.css */

html,
body {
  margin: 0;
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  background: var(--tp-surface);
}

#react-entry-point {
  height: 100%;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

#react-entry-point > div {
  height: 100%;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

/* Dash Pages: `page_container` is a plain wrapper. As a default-sized flex item it grows
   to content height; the shell uses overflow:hidden, so tall pages clip with no scroll.
   Force the pages tree to fill the host and pass a bounded height to page layouts. */
.portal-page-host > div {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.portal-page-host #_pages_content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.portal-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes portalThinkingPulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
