/* Bring the retained free tools into the marketing site's visual system. */
html:has(body.te-resource) {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
body.te-resource {
  display: block !important;
  height: auto !important;
  min-height: 100vh !important;
  overflow: visible !important;
  background: #fff !important;
  color: #172941;
}
body.te-resource .te-retained-hero {
  width: min(var(--max, 1320px), calc(100% - 2 * var(--page-gutter, 50px)));
  padding: 32px 0 60px;
  border: 0;
  background: #002e73;
  box-shadow: 0 0 0 100vmax #002e73;
  clip-path: inset(0 -100vmax);
  color: #fff;
}
body.te-resource .te-retained-hero .breadcrumb {
  margin-bottom: 38px;
  color: #c7d9ec;
}
body.te-resource .te-retained-hero .breadcrumb a { color: #e3edfa; }
body.te-resource .te-retained-hero .breadcrumb a:hover { color: #ffc729; }
body.te-resource .te-retained-hero .eyebrow { color: #c8dbef; }
body.te-resource .te-retained-hero h1 {
  max-width: 1080px;
  color: #fff !important;
  font-size: clamp(2.7rem, 4.9vw, 4.9rem);
  line-height: 1.05;
}
body.te-resource .te-retained-hero .sub-intro {
  max-width: 850px;
  margin-top: 22px;
  color: #d3e1f0;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.5;
}
body.te-resource :is(.uc-app,.fb-app,.rx-app,.ab-app,.bsdd-app,.cs-app,.dn-app,.ec-app,.up-app) {
  width: min(var(--max, 1320px), calc(100% - 2 * var(--page-gutter, 50px)));
  max-width: 1320px;
  margin: 44px auto 80px;
  padding: 0;
  gap: 26px;
}
body.te-resource :is(.uc-card,.fb-panel,.rx-card,.ab-side,.bsdd-side,.cs-card,.cs-side,.dn-card,.dn-side,.ec-side,.up-card,.up-side,.uc-side) {
  border: 1px solid #d4dfec !important;
  border-radius: 12px !important;
  background: #f5f8fc !important;
  box-shadow: none !important;
}
body.te-resource :is(.uc-card,.fb-panel,.rx-card,.cs-card,.dn-card,.up-card) {
  background: #fff !important;
  padding: clamp(20px, 2.4vw, 32px);
}
body.te-resource :is(.uc-card,.fb-panel,.rx-card,.cs-card,.dn-card,.up-card) h2 {
  color: #002e73 !important;
  font: 800 clamp(1.45rem, 2.2vw, 2rem)/1.15 Barlow, sans-serif !important;
  letter-spacing: -.025em;
}
body.te-resource :is(.uc-app,.fb-app,.rx-app,.ab-app,.bsdd-app,.cs-app,.dn-app,.ec-app,.up-app)
  :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea) {
  border-color: #bdcde0;
  border-radius: 7px;
  color: #102e5b;
  font-size: 16px;
}
body.te-resource :is(.uc-app,.fb-app,.rx-app,.ab-app,.bsdd-app,.cs-app,.dn-app,.ec-app,.up-app)
  :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea):focus-visible {
  outline: 2px solid #226dcc;
  outline-offset: 2px;
}
body.te-resource :is(.uc-preset-btn,.ab-cat-btn,.cs-cat-btn,.up-cat-btn,.dn-sec-btn,.ec-trade-btn) {
  font-size: 15px;
}
body.te-resource :is(.uc-side,.ab-side,.bsdd-side,.cs-side,.dn-side,.ec-side,.up-side,.rx-side) {
  top: 112px;
  max-height: calc(100dvh - 132px);
}
body.te-resource :is(.uc-result,.fb-output,.rx-result) {
  background: #002e73;
  border-radius: 9px;
}
body.te-resource :is(.uc-app,.fb-app,.rx-app,.ab-app,.bsdd-app,.cs-app,.dn-app,.ec-app,.up-app)
  :is(.uc-tab.is-active,.ab-cat-btn.is-active,.cs-cat-btn.is-active,.up-cat-btn.is-active,.dn-sec-btn.is-active,.ec-trade-btn.is-active) {
  background: #002e73;
  color: #fff;
}
/* Reference trees keep their own scroll panes, inside a normal scrolling page. */
body.te-resource .app-container {
  flex: none !important;
  width: min(var(--max, 1320px), calc(100% - 2 * var(--page-gutter, 50px)));
  height: clamp(650px, 76dvh, 820px) !important;
  min-height: 650px !important;
  margin: 44px auto 80px;
  border: 1px solid #d4dfec;
  border-radius: 12px;
  background: #fff;
  overflow: hidden !important;
}
body.te-resource .app-container .main-content { flex: 1 1 auto !important; min-height: 0 !important; }
body.te-resource .app-container .sidebar { background: #f5f8fc !important; }
body.te-resource .app-container .detail-panel { background: #fff !important; }
body.te-resource .app-container .app-header { background: #f5f8fc !important; }
body.te-resource .te-resource-share { position: relative; display: inline-flex; margin-top: 26px; }
body.te-resource .te-resource-share .te-share-btn {
  position: static !important;
  width: auto;
  min-width: 44px;
  height: 44px;
  padding: 9px 15px;
  gap: 10px;
  border: 1px solid #b4c8df;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font: 700 15px Barlow, sans-serif;
}
body.te-resource .te-resource-share .te-share-btn:hover { background: #ffc729; border-color: #ffc729; color: #002e73; }
body.te-resource .te-resource-share .te-share-toast {
  position: absolute;
  top: calc(100% + 8px);
  bottom: auto;
  left: 0;
  right: auto;
  white-space: nowrap;
}
body.te-resource .contact-finale h2 { color: #002e73; }
/* The old reference viewer uses footer class names that also occur in the site footer. */
body.te-resource .expanded-footer .footer-brand {
  display: block !important;
  min-width: 0;
  grid-row: auto;
}
body.te-resource .expanded-footer .footer-logo {
  display: block !important;
  width: 225px !important;
  max-width: 100%;
  height: auto !important;
  margin: 0;
}
body.te-resource .expanded-footer .footer-logo img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
}
/* A launch card for a related free app, between the hero and the workspace (the IFC Viewer on the IFC reference). */
body.te-resource .te-tool-launch {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  width: min(var(--max, 1320px), calc(100% - 2 * var(--page-gutter, 50px)));
  margin: 44px auto 0;
  padding: clamp(20px, 2.4vw, 28px) clamp(20px, 2.4vw, 32px);
  border: 1px solid #d4dfec;
  border-radius: 12px;
  background: #f5f8fc;
}
body.te-resource .te-tool-launch-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #002e73;
  color: #ffc729;
}
body.te-resource .te-tool-launch-copy { flex: 1 1 auto; min-width: 0; }
body.te-resource .te-tool-launch-copy h2 {
  margin: 0 0 6px;
  color: #002e73 !important;
  font: 800 clamp(1.35rem, 2vw, 1.75rem)/1.15 Barlow, sans-serif !important;
  letter-spacing: -.02em;
}
body.te-resource .te-tool-launch-copy p { max-width: 760px; margin: 0; color: #516173; font-size: 16px; line-height: 1.5; }
body.te-resource .te-tool-launch .button { flex: none; gap: 10px; }
@media (max-width: 900px) {
  body.te-resource .te-tool-launch { flex-direction: column; align-items: flex-start; width: calc(100% - 40px); margin-top: 28px; }
  body.te-resource .te-tool-launch .button { width: 100%; }
  body.te-resource :is(.uc-app,.fb-app,.rx-app,.ab-app,.bsdd-app,.cs-app,.dn-app,.ec-app,.up-app) {
    width: calc(100% - 40px);
    margin-block: 28px 56px;
  }
  body.te-resource .app-container { width: calc(100% - 40px); margin-block: 28px 56px; }
  body.te-resource :is(.uc-side,.ab-side,.bsdd-side,.cs-side,.dn-side,.ec-side,.up-side,.rx-side) {
    position: static;
    max-height: none;
  }
}
@media (max-width: 600px) {
  body.te-resource .te-retained-hero { width: calc(100% - 40px); padding: 24px 0 44px; }
  body.te-resource .te-retained-hero .breadcrumb { margin-bottom: 27px; }
  body.te-resource .te-retained-hero h1 { font-size: clamp(2.3rem, 9vw, 3.3rem); }
  body.te-resource .te-retained-hero .sub-intro { font-size: 18px; }
  body.te-resource .app-container { height: 760px !important; min-height: 0 !important; }
  body.te-resource .expanded-footer .footer-brand { grid-column: 1 / -1; }
  body.te-resource .te-mobile-filter-btn {
    width: auto;
    min-width: 86px;
    padding: 0 13px;
    gap: 6px;
    border-radius: 4px;
    font: 700 14px Barlow, sans-serif;
  }
  body.te-resource .te-mobile-filter-btn::after { content: 'Filters'; }
  body.te-resource .fb-grid { grid-template-columns: minmax(0, 1fr) !important; }
  body.te-resource .fb-panel,
  body.te-resource .fb-ta-wrap,
  body.te-resource .fb-ta-wrap textarea { min-width: 0; max-width: 100%; width: 100%; }
  body.te-resource .fb-tools,
  body.te-resource .fb-chips { flex-wrap: wrap; }
}
@media print {
  html:has(body.te-resource), body.te-resource { height: auto !important; overflow: visible !important; }
  body.te-resource .app-container { height: auto !important; overflow: visible !important; border: 0; }
}
