/* Tilda T657: presentation only. The existing consent text, links,
   storage key, close control and acceptance behaviour remain untouched. */
body .t657 {
  filter: none !important;
  font-family: Manrope, Arial, sans-serif !important;
}
body .t657 .t657__wrapper {
  box-sizing: border-box !important;
  width: min(720px, calc(100% - 32px)) !important;
  max-width: 720px !important;
  margin: 0 auto 16px !important;
  padding: 24px 26px !important;
  background: #fff !important;
  border: 1px solid #e4e7ef !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 48px rgba(25, 35, 65, .18) !important;
  text-align: left !important;
}
body .t657 .t657__text {
  margin: 0 0 18px !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: #505969 !important;
  text-align: left !important;
}
body .t657 .t657__text a {
  color: #3155f5 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
}
body .t657 .t657__btn {
  box-sizing: border-box !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 12px 22px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #3155f5 !important;
  color: #fff !important;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
}
body .t657 .t657__btn .t-btnflex__text {
  color: #fff !important;
  text-transform: none !important;
}
body .t657 .t657__btn:hover { background: #2447df !important; }
body .t657 .t657__btn:focus-visible,
body .t657 .t657__text a:focus-visible {
  outline: 3px solid #91a6ff !important;
  outline-offset: 3px !important;
}
body .t657 .t657__close-button { top: 12px !important; right: 12px !important; }

@media (max-width: 480px) {
  body .t657 .t657__wrapper {
    width: calc(100% - 24px) !important;
    max-height: calc(100vh - 32px) !important;
    max-height: calc(100dvh - 32px - env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    margin-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 21px 20px 20px !important;
    border-radius: 17px !important;
  }
  body .t657 .t657__text {
    padding-right: 12px !important;
    margin-bottom: 16px !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
  }
  body .t657 .t657__btn { width: 100% !important; }
}

/* The HTML dimension attributes must not force 480/500px heights on phones. */
@media (max-width: 1000px) {
  body #consilium-site .team-grid .team-photo,
  body #consilium-site .profile img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}
@media (max-width: 760px) {
  body #consilium-site .team-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 22px !important; }
  body #consilium-site .team-grid .team-person {
    display: grid !important;
    grid-template-columns: clamp(112px, 35vw, 150px) minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: center !important;
    min-width: 0 !important;
  }
  body #consilium-site .team-grid .team-person > a { display: block !important; min-width: 0 !important; }
  body #consilium-site .team-grid .team-person > div { min-width: 0 !important; }
  body #consilium-site .team-grid .team-person h3 {
    margin-top: 0 !important;
    font-size: clamp(18px, 4.8vw, 21px) !important;
    line-height: 1.18 !important;
  }
  body #consilium-site .team-grid .team-person p {
    max-width: none !important;
    margin-top: 8px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
  body #consilium-site .team-page .team-person {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 24px !important;
    margin: 0 !important;
  }
  body #consilium-site .team-page .team-person .bio { font-size: 14px !important; line-height: 1.6 !important; }
}
@media (max-width: 480px) {
  body #consilium-site .team-page .team-person { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; }
  body #consilium-site .team-page .team-person > a { width: 100% !important; max-width: 360px !important; }
  body #consilium-site .team-page .team-photo { margin-bottom: 18px !important; }
  body #consilium-site .team-page .team-person h3 { font-size: 23px !important; }
  body #consilium-site .team-page .team-person p { font-size: 14px !important; }
}
