/* Low specificity keeps Divi's generated per-element styles authoritative. */
:where(.dsc-parent) { overflow: visible; }
:where(.dsc-stack) { display: flex; flex-direction: column; gap: var(--dsc-gap, 64px); isolation: isolate; }
:where(.dsc-stack > .dsc-card) { width: 100%; margin: 0; position: relative; }
:where(.dsc-card) { min-width: 0; }
:where(.dsc-layout) { --dsc-bg: #111d36; --dsc-fg: #f6f8fc; --dsc-accent: #b8cdfc; }
:where(.dsc-preset-light) { --dsc-bg: #f4f7fc; --dsc-fg: #162139; --dsc-accent: #284e9b; }
:where(.dsc-preset-sand) { --dsc-bg: #eee7da; --dsc-fg: #302a24; --dsc-accent: #745338; }
:where(.dsc-surface) {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 4vw, 64px); min-height: var(--dsc-height, 420px);
  padding: var(--dsc-padding, 48px); border-radius: var(--dsc-radius, 28px);
  background: var(--dsc-bg); color: var(--dsc-fg); box-sizing: border-box;
  box-shadow: 0 12px 40px #07132914;
}
:where(.dsc-ratio-wide-text .dsc-surface) { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
:where(.dsc-ratio-wide-media .dsc-surface) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
:where(.dsc-layout-reverse .dsc-copy) { order: 2; }
:where(.dsc-layout-reverse .dsc-media) { order: 1; }
:where(.dsc-layout-reverse.dsc-ratio-wide-text .dsc-surface) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
:where(.dsc-layout-reverse.dsc-ratio-wide-media .dsc-surface) { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
:where(.dsc-layout-text .dsc-surface) { grid-template-columns: minmax(0, 1fr); }
:where(.dsc-layout-text .dsc-media) { display: none; }
:where(.dsc-copy, .dsc-media) { min-width: 0; overflow-wrap: anywhere; }
.dsc-card :where(.dsc-eyebrow) { color: var(--dsc-accent); font-size: 13px; font-weight: 650; letter-spacing: .12em; margin: 0 0 24px; padding: 0; }
.dsc-card :where(.dsc-heading) { color: inherit; font-size: clamp(30px, 3.7vw, 60px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; margin: 0 0 22px; padding: 0; }
.dsc-card :where(.dsc-description) { color: inherit; font-size: 18px; line-height: 1.65; }
:where(.dsc-description > :last-child) { margin-bottom: 0; padding-bottom: 0; }
.dsc-card :where(.dsc-button) { display: inline-flex; gap: 12px; align-items: center; color: inherit; border: 1px solid currentColor; border-radius: 999px; padding: 12px 20px; margin-top: 28px; font-size: 15px; line-height: 1.5; text-decoration: none; }
.dsc-card :where(.dsc-button:hover) { text-decoration: underline; }
.dsc-card :where(a:focus-visible, button:focus-visible, input:focus-visible) { outline: 3px solid var(--dsc-accent, #5786e6); outline-offset: 5px; }
:where(.dsc-media) { position: relative; }
:where(.dsc-media img, .dsc-media video, .dsc-media iframe) { max-width: 100%; }
:where(.dsc-sr-only) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Enabled only after viewport checks. Without JS the cards remain readable. */
.dsc-stack.dsc-active > .dsc-card { position: sticky; top: var(--dsc-top, 80px); z-index: var(--dsc-index, 1); }
.dsc-stack.dsc-active > .dsc-card > .dsc-layout { transform: scale(var(--dsc-scale, 1)); transform-origin: top center; }
.dsc-stack.dsc-focus-open > .dsc-card { position: relative; top: auto; }
.dsc-stack.dsc-focus-open > .dsc-card > .dsc-layout { transform: none; }
@media (max-width: 980px) {
  :where(.dsc-surface) { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: min(var(--dsc-padding, 48px), 28px); }
  :where(.dsc-ratio-wide-text .dsc-surface, .dsc-ratio-wide-media .dsc-surface) { grid-template-columns: minmax(0, 1fr); }
  :where(.dsc-layout-reverse.dsc-ratio-wide-text .dsc-surface, .dsc-layout-reverse.dsc-ratio-wide-media .dsc-surface) { grid-template-columns: minmax(0, 1fr); }
  :where(.dsc-layout-reverse .dsc-copy, .dsc-layout-reverse .dsc-media) { order: initial; }
  .dsc-card :where(.dsc-description) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .dsc-stack.dsc-active > .dsc-card { position: relative; top: auto; }
  .dsc-stack.dsc-active > .dsc-card > .dsc-layout { transform: none; }
}
@media print {
  .dsc-stack.dsc-active > .dsc-card { position: relative; top: auto; break-inside: avoid; }
  .dsc-stack.dsc-active > .dsc-card > .dsc-layout { transform: none; }
}
