/* Native controls remain authoritative. Container defaults use Elementor variables. */
body.jt-elementor :where(.jt-page-top) {
  --padding-bottom: 22px;
  --margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
body.jt-elementor :where(.jt-heading) {
  --margin-bottom: 28px;
}
body.jt-elementor :where(.jt-home-actions) {
  --margin-top: 18px;
}
body.jt-elementor :where(.jt-section-intro) {
  --margin-bottom: 26px;
}
body.jt-elementor :where(.jt-collections) {
  --margin-top: var(--section);
}
body.jt-elementor :where(.jt-contact-cta) {
  --margin-top: var(--section);
  --padding-top: 30px;
  --padding-bottom: 30px;
  border-top: 1px solid var(--line);
}
body.jt-elementor :where(.jt-project-navigation) {
  --margin-top: 48px;
  --padding-top: 24px;
  border-top: 1px solid var(--line);
}
body.jt-elementor :where(.jt-case-text) {
  --margin-top: 38px;
}
body.jt-elementor :where(.jt-additional-film) {
  --margin-top: 48px;
}
body.jt-elementor :where(.jt-practice) {
  --margin-top: 38px;
}
body.jt-elementor :where(.jt-practice-row) {
  --padding-top: 24px;
  --padding-bottom: 24px;
  border-top: 1px solid var(--line);
}
body.jt-elementor :where(.jt-prototype-status) {
  --padding-top: 25px;
  --margin-top: 35px;
  border-top: 1px solid var(--line);
}

/* Legacy 2.0 card defaults: editable widget widths outrank these rules. */
body.jt-elementor .jt-project-grid > :where(.elementor-widget-jt-project) {
  width: calc((100% - var(--column-gap, 24px)) / 2);
  min-width: 0;
}
body.jt-elementor .jt-project-grid > :where(.jt-wide) {
  width: 100%;
}
body.jt-elementor .jt-project-grid .tile {
  height: 100%;
}
body.jt-elementor .jt-page-top :where(.jt-eyebrow, .elementor-widget-jt-link),
body.jt-elementor .jt-home-actions > :where(.elementor-widget-jt-link),
body.jt-elementor .jt-section-intro > :where(.elementor-widget),
body.jt-elementor .jt-contact-cta > :where(.elementor-widget-jt-link) {
  width: auto;
}
body.jt-elementor .jt-project-navigation > :where(.elementor-widget) {
  width: calc((100% - var(--column-gap, 32px)) / 2);
}
body.jt-elementor .jt-heading :where(.jt-eyebrow) {
  margin-bottom: 14px;
}
body.jt-elementor .jt-contact-cta :where(.jt-eyebrow) {
  margin-bottom: 9px;
}
body.jt-elementor .jt-collections .collection-row:last-child {
  border-bottom: 0;
}
body.jt-elementor .jt-collections > :last-child .collection-row {
  border-bottom: 1px solid var(--line);
}
body.jt-elementor .jt-project-navigation a {
  display: block;
  position: relative;
  padding-right: 30px;
}
body.jt-elementor .jt-project-navigation .title {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
body.jt-elementor .jt-project-navigation .eyebrow {
  display: block;
  margin-bottom: 9px;
}
body.jt-elementor .jt-project-navigation a > span:last-child {
  position: absolute;
  top: 26px;
  right: 0;
  font-size: 26px;
}
body.jt-elementor .jt-case-notes section + section {
  margin-top: 25px;
}
body.jt-elementor .jt-case-notes h2 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 9px;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
body.jt-elementor .jt-case-notes p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--quiet);
}
body.jt-elementor .jt-info-layout :where(.elementor-widget-heading) {
  margin-bottom: 13px;
}
body.jt-elementor .jt-info-layout :where(.elementor-widget-jt-link) {
  margin-top: 20px;
}
body.jt-elementor
  .jt-about-body
  :where(.elementor-widget-text-editor + .elementor-widget-text-editor) {
  margin-top: 20px;
}
body.jt-elementor .jt-practice-row > :where(:nth-child(1)) {
  width: 24px;
  flex-shrink: 0;
}
body.jt-elementor .jt-practice-row > :where(:nth-child(2)) {
  width: 30%;
}
body.jt-elementor .jt-practice-row > :where(:nth-child(3)) {
  flex: 1;
}
body.jt-elementor .jt-shared-preview {
  padding: 24px;
}
body.jt-elementor .jt-shared-preview .rail {
  position: relative;
  min-height: 700px;
}
body.jt-elementor.elementor-editor-active [data-reveal] {
  opacity: 1;
  translate: none;
}
body.jt-elementor.elementor-editor-active .background-film {
  display: none;
}
body.jt-elementor .jt-editor-placeholder {
  display: none;
}
body.jt-elementor.elementor-editor-active .jt-editor-placeholder {
  display: block;
  padding: 14px;
  border: 1px dashed var(--line);
  font-size: 13px;
  color: var(--quiet);
}
@media (max-width: 767px) {
  body.jt-elementor .jt-practice-row > :where(:nth-child(2)) {
    width: calc(100% - 40px);
  }
  body.jt-elementor .jt-practice-row > :where(:nth-child(3)) {
    flex: auto;
    width: calc(100% - 40px);
    margin-left: 40px;
  }
  body.jt-elementor .jt-project-grid > :where(.elementor-widget-jt-project) {
    width: 100%;
  }
  body.jt-elementor .jt-project-grid .feature-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  body.jt-elementor .jt-project-navigation .title {
    font-size: 22px;
  }
}
