/* Only pages containing the lab receive this class. Shared header stays untouched. */
body.tk-llm-host {
  --tk-header-clearance: 120px;
  --tk-main-original-padding: 0px;
  --tk-anchor-clearance: 144px;
}
body.tk-llm-host.admin-bar { --tk-header-clearance: 152px; }
body.tk-llm-host main#content {
  padding-block-start: calc(var(--tk-main-original-padding) + var(--tk-header-clearance));
}
body.tk-llm-host main#content :where(h1,h2,h3,[id],input,select,button) {
  scroll-margin-block-start: var(--tk-anchor-clearance);
}
body.tk-llm-host main#content > .page-header .entry-title {
  font-family: var(--e-global-typography-primary-font-family, inherit);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  overflow-wrap: break-word;
  margin-block: 0 1.25rem;
  max-width: 24ch;
}
body.tk-llm-host main#content > .page-content > p:first-child {
  max-width: 72ch;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
}
/* Reuse the blog CTA and existing site contact dialog. */
body.tk-llm-host .tk-llm-project-contact .tk-llm-contact-actions {
  display: grid;
  gap: .65rem;
  flex: 0 1 280px;
}
body.tk-llm-host .tk-llm-project-contact .tk-llm-contact-actions > p {
  margin: 0;
}
body.tk-llm-host .tk-llm-project-contact .tk-llm-contact-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
body.tk-llm-host .tk-llm-project-contact .tk-btn {
  font-family: Inter, system-ui, sans-serif;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
}
body.tk-llm-host .tk-modal__panel {
  max-height: calc(100dvh - 48px);
}
body.tk-llm-host .tk-modal__panel h2 {
  padding-inline-end: 2.5rem;
}
body.tk-llm-host .tk-modal__x {
  width: 44px;
  height: 44px;
}
body.tk-llm-host .tk-modal .elementor-button {
  font-family: Inter, system-ui, sans-serif;
  text-transform: none;
  letter-spacing: normal;
  min-height: 48px;
  white-space: normal;
}
@media(max-width:782px) {
  body.tk-llm-host.admin-bar { --tk-header-clearance: 166px; }
}
@media(max-width:767px) {
  body.tk-llm-host main#content > .page-header .entry-title {
    font-size: clamp(1.875rem, 8vw, 2.5rem);
  }
  body.tk-llm-host .tk-llm-project-contact .tk-llm-contact-actions {
    flex-basis: 100%;
    width: 100%;
  }
  body.tk-llm-host .tk-llm-project-contact .tk-btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }
  body.tk-llm-host .tk-modal__panel {
    max-height: calc(100dvh - 24px);
  }
  body.tk-llm-host .tk-modal .elementor-field-textual {
    font-size: 16px;
  }
}
/* 1.3.1 Punkt 2: room for the contact bar and an evasive cookie button, up to 767 px only. */
@media(max-width:767px) {
  body.tk-llm-mbar-on {
    padding-bottom: 70px;
  }
  body.tk-llm-mbar-on .faz-btn-revisit-wrapper {
    bottom: 86px !important;
  }
}
