/* ── Engenharia Clínica — Public Page CSS ──
   Resets theme interference when rendered via shortcode
   ─────────────────────────────────────────────────────── */

/* Ensure the app container has breathing room */
#engclinica-app {
  max-width: 100%;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Override common theme button resets */
#engclinica-app button {
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
}

/* Override theme input resets */
#engclinica-app input,
#engclinica-app select,
#engclinica-app textarea {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 6px;
  box-shadow: none;
  -webkit-appearance: none;
}

/* Override theme link colours inside app */
#engclinica-app a {
  text-decoration: none;
  color: inherit;
}

/* Make hero full-width even in narrow content areas */
#engclinica-app .ec-hero {
  border-radius: 8px;
  overflow: hidden;
}

/* Doc grid responsive tweak for narrow themes */
@media (max-width: 640px) {
  #engclinica-app .ec-doc-grid {
    grid-template-columns: 1fr;
  }
  #engclinica-app .ec-section-body {
    grid-template-columns: 1fr;
  }
  #engclinica-app .ec-field-wrap.full {
    grid-column: 1;
  }
  #engclinica-app .ec-form-actions {
    flex-direction: column;
  }
  #engclinica-app .ec-record-item {
    flex-wrap: wrap;
  }
  #engclinica-app .ec-record-actions {
    width: 100%;
    justify-content: flex-end;
  }
  #engclinica-app .ec-toolbar {
    flex-wrap: wrap;
  }
}

/* Toast z-index bump for frontend */
#ec-toast {
  z-index: 999999 !important;
}
