/* Indent ShiftNav sub-menu items */
.shiftnav ul.shiftnav-sub-accordion > li.menu-item > a {
    padding-left: 2rem !important; /* Adjust pixel/rem value to control indentation depth */
} 

/* Core Fluid Typography Rules */
.et_pb_module h1:not(.keep-size), 
.et_pb_text h1:not(.keep-size) {
  font-size: var(--df-font-h1);
}

.et_pb_module h2:not(.keep-size), 
.et_pb_text h2:not(.keep-size) {
  font-size: var(--df-font-h2);
}

p, .et_pb_text p {
  font-size: var(--df-font-body);
}

/* Ensure focus visibility for WCAG Compliance */
a:focus-visible, 
button:focus-visible {
  outline: 2px solid #c5a059 !important;
  outline-offset: 3px !important;
}

/* Hero Sub-heading Class */
h2.hero-sub-h2,
.et_pb_module h2.hero-sub-h2,
.hero-sub-h2 {
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem) !important;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* To this (remove !important and target base sections): */
.et_pb_section:not(.dpsf-hero-section) {
  padding-top: var(--df-spacing-section);
  padding-bottom: var(--df-spacing-section);
}

/* Allow specific builder or class sizes to override global fluid variables */
.et_pb_module h1:not(.keep-size), 
.et_pb_text h1:not(.keep-size) {
  font-size: var(--df-font-h1);
}

.et_pb_module h2:not(.keep-size), 
.et_pb_text h2:not(.keep-size) {
  font-size: var(--df-font-h2);
}

/* Leadership Row */
.dpsf-leadership-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  max-width: 1280px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}

/* Individual leader card */
.dpsf-leader-card {
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

/* Image */
.dpsf-leader-img {
  width: 300px !important;
  max-width: 300px !important;
  min-width: 0;
}

.dpsf-leader-img img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(200, 162, 73, 0.55);
}

/* Text */
.dpsf-leader-copy {
  min-width: 0 !important;
  max-width: 100% !important;
  width: auto !important;
  overflow-wrap: normal;
  word-break: normal;
}

.dpsf-leader-copy * {
  max-width: 100%;
}

/* Tablet */
@media (max-width: 980px) {
  .dpsf-leadership-row {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .dpsf-leader-card {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }

  .dpsf-leader-img {
    width: 220px !important;
    max-width: 220px !important;
  }
}

/* Phone */
@media (max-width: 767px) {
  .dpsf-leader-card {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
    justify-items: center;
  }

  .dpsf-leader-img {
    width: 260px !important;
    max-width: 80% !important;
  }

  .dpsf-leader-copy {
    width: 100% !important;
    text-align: center;
  }
}

/* Specific Hero Sub-heading Sizing */
.et_pb_module h2.hero-sub-h2,
h2.hero-sub-h2 {
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem) !important;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Apply body fluid sizing ONLY to general page content, ignoring footer elements */
p, 
.et_pb_text:not(.footer-text) p {
  font-size: var(--df-font-body);
}

/* Dedicated smaller font utility class for footers */
.footer-text, 
.footer-text p {
  font-size: clamp(0.75rem, 1vw, 0.875rem) !important;
}

/* Target users with OS/Browser High Contrast settings turned ON */
@media (prefers-contrast: more) {
  :root {
    /* Darken the gold text variable strictly for contrast-seeking users */
    --df-font-gold-text: #8c6b28;
  }

  /* Automatically darken gold text elements on light backgrounds */
  .et_pb_module h1, 
  .et_pb_module h2, 
  .et_pb_text p, 
  a {
    color: #8c6b28 !important;
  }
}

/* Target Windows High Contrast Mode / Forced Colors Mode */
@media (forced-colors: active) {
  a, button, h1, h2, p {
    forced-color-adjust: auto;
  }
}

/* Utility class: Hidden visually, but read aloud by screen readers */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}