/* =========================================================
   CVMT — Divi Overrides (modern, Divi-5-friendly patterns)
   ---------------------------------------------------------
   One shared file. No per-module CSS. Pages add
   `module_class="<hook>"` to attach to these rules.

   Uses CSS custom properties + clamp() so the same values
   forward-port cleanly when the theme is migrated to Divi 5
   (Design Variables / Global Presets).
   ========================================================= */

:root {
  /* ---- Color tokens (kept in sync with site.css) ---- */
  --cvmt-ink:        #1c150f;
  --cvmt-ink-soft:   #4a3f33;
  --cvmt-bone:       #f4ece0;
  --cvmt-bone-deep:  #ebe0cd;
  --cvmt-gold:       #c4913a;
  --cvmt-ember:      #b04822;
  --cvmt-sand:       #d8c5a4;

  /* ---- Type families ---- */
  --cvmt-font-display: 'Fraunces', 'Cinzel', Georgia, serif;
  --cvmt-font-body:    'Inter Tight', 'Inter', system-ui, sans-serif;

  /* ---- Fluid type scale (clamp: min, fluid, max) ---- */
  --cvmt-text-eyebrow: clamp(0.68rem, 0.62rem + 0.25vw, 0.78rem);
  --cvmt-text-body:    clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  --cvmt-text-lede:    clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem);
  --cvmt-text-h3:      clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --cvmt-text-h2:      clamp(1.65rem, 1.3rem + 1.6vw, 2.6rem);
  --cvmt-text-h1:      clamp(2.4rem, 1.6rem + 4vw, 5rem);

  /* ---- Spacing scale ---- */
  --cvmt-space-2xs: 0.25rem;
  --cvmt-space-xs:  0.5rem;
  --cvmt-space-sm:  0.85rem;
  --cvmt-space-md:  clamp(1rem, 0.85rem + 0.7vw, 1.5rem);
  --cvmt-space-lg:  clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
  --cvmt-space-xl:  clamp(2.5rem, 1.8rem + 2.8vw, 4.5rem);
  --cvmt-space-2xl: clamp(4rem, 3rem + 4vw, 7rem);

  /* ---- Layout ---- */
  --cvmt-wrap-max: 1200px;
  --cvmt-radius:   4px;
}

/* ---------- 1. Neutralize Divi container defaults ----------
   cvmt-section: strip Divi's default section padding, keep transparent.
   cvmt-bleed:   strip ALL padding on row+column (use for full-bleed Code/Image modules).
   cvmt-text:    let site.css typography pass through Divi's text wrapper. */

.et_pb_section.cvmt-section,
.et_pb_section.et_pb_with_background.cvmt-section { padding: 0 !important; background: transparent; }
/* Strip Divi's default 1080 cap on the section's rows — EXCEPT for cvmt-grid rows
   which manage their own max-width via the .cvmt-grid rule below. */
.et_pb_section.cvmt-section > .et_pb_row:not(.cvmt-grid) {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.et_pb_section.cvmt-section .et_pb_row > .et_pb_column { padding: 0 !important; }

.et_pb_row.cvmt-fullbleed,
.et_pb_row.cvmt-fullbleed > .et_pb_column { padding: 0 !important; margin: 0 !important; max-width: none !important; width: 100% !important; }
/* Modules inside a fullbleed row are also full-width by default —
   but a cvmt-image module manages its own max-width via §3 below. */
.et_pb_row.cvmt-fullbleed > .et_pb_column > .et_pb_module:not(.cvmt-image) { padding: 0 !important; margin: 0 !important; max-width: none !important; width: 100% !important; }

/* Text module: let site.css typography & spacing win */
.et_pb_text.cvmt-text { font-family: inherit; color: inherit; font-size: inherit; padding: 0 !important; margin: 0 !important; }
.et_pb_text.cvmt-text > .et_pb_text_inner { font-family: inherit; }

/* Image module reset — default to a centered, max-width image (matches .wrap).
   Add `cvmt-image-bleed` for full-bleed photo-break style. */
.et_pb_image.cvmt-image {
  margin: 0 auto !important;
  padding: var(--cvmt-space-md) !important;
  max-width: var(--cvmt-wrap-max) !important;
  width: 100% !important;
}
.et_pb_image.cvmt-image .et_pb_image_wrap { display: block; }
.et_pb_image.cvmt-image img { width: 100%; height: auto; display: block; border-radius: var(--cvmt-radius); }

.et_pb_image.cvmt-image-bleed {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* ---------- 2. Grid rows (cvmt-grid is ON the row itself) ----------
   Use a bumped-specificity selector to beat Divi 5's
   `.et_pb_row:not([class*=et_flex_column]) { max-width: 1080px }`. */
body .et_pb_row.cvmt-grid,
body .et_pb_row.cvmt-grid:not([class*=et_flex_column]) {
  display: grid !important;
  gap: var(--cvmt-space-md) !important;
  max-width: 1200px !important;   /* hard value, in case the CSS var isn't reaching the cascade */
  margin-left: auto !important;
  margin-right: auto !important;
  padding: var(--cvmt-space-md) !important;
  width: 100% !important;
  float: none !important;
}
body .et_pb_row.cvmt-grid.cvmt-grid-2 { grid-template-columns: repeat(2, 1fr); }
body .et_pb_row.cvmt-grid.cvmt-grid-3 { grid-template-columns: repeat(3, 1fr); }
body .et_pb_row.cvmt-grid.cvmt-grid-4 { grid-template-columns: repeat(4, 1fr); }
body .et_pb_row.cvmt-grid > .et_pb_column {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

@media (max-width: 960px) {
  body .et_pb_row.cvmt-grid.cvmt-grid-3,
  body .et_pb_row.cvmt-grid.cvmt-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  body .et_pb_row.cvmt-grid { grid-template-columns: 1fr !important; }
}

/* ---------- 3. Divi Blurb -> .media-card design ---------- */
.et_pb_blurb.media-card {
  padding: 0 !important;
  background: var(--cvmt-bone);
  border: 1px solid color-mix(in srgb, var(--cvmt-ink) 8%, transparent);
  border-radius: var(--cvmt-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.et_pb_blurb.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px color-mix(in srgb, var(--cvmt-ink) 10%, transparent);
}
.et_pb_blurb.media-card .et_pb_blurb_content { display: block; max-width: none; text-align: left; }
.et_pb_blurb.media-card .et_pb_main_blurb_image { display: block; margin: 0; }
.et_pb_blurb.media-card .et_pb_main_blurb_image a,
.et_pb_blurb.media-card .et_pb_main_blurb_image .et_pb_image_wrap { display: block; }
.et_pb_blurb.media-card .et_pb_main_blurb_image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  height: auto;
  /* Defeat Divi's scroll-triggered fade-in so card images render immediately */
  opacity: 1 !important;
  transform: none !important;
}
.et_pb_blurb.media-card .et_pb_main_blurb_image .et_pb_image_wrap {
  display: block;
  width: 100%;
}
.et_pb_blurb.media-card .et_pb_blurb_container {
  padding: var(--cvmt-space-md) var(--cvmt-space-md) var(--cvmt-space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.et_pb_blurb.media-card h4.et_pb_module_header,
.et_pb_blurb.media-card .et_pb_module_header {
  font-family: var(--cvmt-font-display);
  font-weight: 600;
  font-size: var(--cvmt-text-h3);
  color: var(--cvmt-ink);
  margin: 0 0 var(--cvmt-space-sm);
  padding: 0;
  line-height: 1.2;
}
.et_pb_blurb.media-card .et_pb_module_header a { color: inherit; text-decoration: none; }
.et_pb_blurb.media-card .et_pb_blurb_description {
  font-family: var(--cvmt-font-body);
  font-size: var(--cvmt-text-body);
  line-height: 1.65;
  color: var(--cvmt-ink-soft);
}
.et_pb_blurb.media-card .et_pb_blurb_description a {
  display: inline-block;
  margin-top: var(--cvmt-space-md);
  font-size: var(--cvmt-text-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cvmt-ember);
  border-bottom: 1px solid var(--cvmt-gold);
  text-decoration: none;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.et_pb_blurb.media-card .et_pb_blurb_description a:hover { color: var(--cvmt-gold); }

/* ---------- 3b. Dark callout text variant (used on /departments/ as 6th card) ---------- */
.et_pb_text.media-card-dark {
  background: #2c2118;
  border: 1px solid #2c2118;
  border-radius: var(--cvmt-radius);
  padding: 0 !important;
  margin: 0 !important;
  color: var(--cvmt-bone);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.et_pb_text.media-card-dark > .et_pb_text_inner {
  padding: var(--cvmt-space-lg) var(--cvmt-space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.et_pb_text.media-card-dark .media-card-callout { display: flex; flex-direction: column; height: 100%; }
.et_pb_text.media-card-dark .callout-eyebrow { color: var(--cvmt-gold) !important; }
.et_pb_text.media-card-dark h3 {
  font-family: var(--cvmt-font-display);
  color: var(--cvmt-bone) !important;
  font-size: var(--cvmt-text-h3);
  margin: var(--cvmt-space-sm) 0 var(--cvmt-space-md);
  line-height: 1.25;
}
.et_pb_text.media-card-dark p {
  color: color-mix(in srgb, var(--cvmt-bone) 78%, transparent) !important;
  font-family: var(--cvmt-font-body);
  font-size: var(--cvmt-text-body);
  line-height: 1.65;
  flex: 1;
}
.et_pb_text.media-card-dark .callout-link {
  display: inline-block;
  margin-top: var(--cvmt-space-md);
  font-size: var(--cvmt-text-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cvmt-gold);
  border-bottom: 1px solid var(--cvmt-gold);
  text-decoration: none;
  padding-bottom: 2px;
  width: fit-content;
}

/* ---------- 4. Divi Text -> .council-tile design ----------
   Divi wraps text-module content in `.et_pb_text_inner`, so the flex container
   must be the inner div, not the outer text wrapper. */
.et_pb_text.council-tile {
  background: var(--cvmt-bone);
  border: 1px solid color-mix(in srgb, var(--cvmt-ink) 8%, transparent);
  border-radius: var(--cvmt-radius);
  padding: 0 !important;
  margin: 0 !important;
}
.et_pb_text.council-tile > .et_pb_text_inner {
  display: flex;
  align-items: center;
  gap: var(--cvmt-space-md);
  padding: var(--cvmt-space-md) var(--cvmt-space-lg);
  font-family: var(--cvmt-font-body);
}
.et_pb_text.council-tile .council__monogram {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cvmt-gold), var(--cvmt-ember));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--cvmt-font-display);
  font-weight: 600;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.et_pb_text.council-tile .council__role {
  font-size: var(--cvmt-text-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cvmt-ember);
  font-weight: 600;
}
.et_pb_text.council-tile .council__name {
  font-family: var(--cvmt-font-display);
  font-weight: 600;
  color: var(--cvmt-ink);
  font-size: var(--cvmt-text-h3);
  margin-top: var(--cvmt-space-2xs);
}

/* ---------- 5. WP nav menu shim (dropdown) ---------- */
.nav .menu-item-has-children { position: relative; display: inline-block; }
.nav .menu-item-has-children > a::after {
  content: " \25BE";
  font-size: 0.7em;
  opacity: 0.7;
  margin-left: 0.25em;
}
.nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--cvmt-ink);
  border: 1px solid color-mix(in srgb, var(--cvmt-gold) 25%, transparent);
  padding: var(--cvmt-space-xs) 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}
.nav .menu-item-has-children:hover > .sub-menu,
.nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav .sub-menu li { list-style: none; }
.nav .sub-menu a {
  display: block;
  padding: 0.55rem 1.1rem;
  white-space: nowrap;
  color: var(--cvmt-sand);
  text-decoration: none;
  font-family: var(--cvmt-font-body);
  font-size: var(--cvmt-text-body);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav .sub-menu a:hover {
  background: color-mix(in srgb, var(--cvmt-gold) 10%, transparent);
  color: var(--cvmt-gold);
}
.nav > ul,
.nav .menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--cvmt-space-lg);
  align-items: center;
}
.nav > ul > li { list-style: none; }

/* ---------- 6. Suppress Divi’s on-page builder UI/scaffolding leaks ---------- */
body.et_pb_pagebuilder_layout .cvmt-section { background: none; }

/* ---------- 5. Divi Text -> .oak-divider (flanked rule label) ----------
   Same wrapper issue as council-tile: the flex container + flanking rules
   must live on .et_pb_text_inner, else the rules collapse to zero width. */
.et_pb_text.oak-divider { display: block; margin: 0 !important; }
.et_pb_text.oak-divider::before,
.et_pb_text.oak-divider::after { display: none; }
.et_pb_text.oak-divider > .et_pb_text_inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0 2rem;
}
.et_pb_text.oak-divider > .et_pb_text_inner::before,
.et_pb_text.oak-divider > .et_pb_text_inner::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule-strong);
}
.et_pb_text.oak-divider > .et_pb_text_inner p {
  flex: 0 0 auto;
  margin: 0;
  color: var(--gold);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ============ CVMT native page components (2026-06-29) — shared across converted pages ============ */
/* Native bg-image hero */
.et_pb_section.cvmt-hero{display:flex!important;flex-direction:column;justify-content:flex-end;position:relative;overflow:hidden;}
.cvmt-hero::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(21,13,6,.62) 0%,rgba(21,13,6,.18) 46%,transparent 70%);}
.cvmt-hero>.et_pb_row{position:relative;z-index:2;}
.cvmt-hero .et_pb_column{z-index:2;row-gap:0.6rem!important;}
.cvmt-hero .et_pb_module{margin-bottom:0!important;}
.cvmt-hero h1{font-size:clamp(2.2rem,5vw,4rem)!important;line-height:1.06!important;max-width:24ch;}
.cvmt-hero h1 .dept-icon{width:0.9em;height:0.9em;vertical-align:-0.06em;margin-right:0.15em;color:var(--gcid-cvmt-gold-bright);}
/* Eyebrow + leading rule */
.cvmt-eb{margin-bottom:0.25rem!important;}
.cvmt-eb p::before{content:'';display:inline-block;width:1.75rem;height:1px;background:var(--gcid-cvmt-gold);vertical-align:middle;margin-right:.75rem;}
.cvmt-hero .cvmt-eb p::before{background:var(--gcid-cvmt-gold-bright);}
/* Generic 2-col split (1 : 1.2) */
.et_pb_row.cvmt-split{display:flex!important;gap:clamp(2rem,6vw,5rem);align-items:flex-start;}
.et_pb_row.cvmt-split>.et_pb_column{margin:0!important;}
.et_pb_row.cvmt-split>.et_pb_column:first-child{flex:1 1 0!important;}
.et_pb_row.cvmt-split>.et_pb_column:last-child{flex:1.2 1 0!important;}
/* Department page: body + sidebar */
.et_pb_row.dept-grid{display:flex!important;gap:clamp(2rem,4vw,3.5rem);align-items:flex-start;max-width:var(--max-w)!important;}
.et_pb_row.dept-grid>.et_pb_column{margin:0!important;}
.et_pb_row.dept-grid>.et_pb_column:first-child{flex:1 1 0!important;row-gap:1.15rem!important;}
.et_pb_row.dept-grid>.et_pb_column:last-child{flex:0 0 280px!important;row-gap:1.5rem!important;}
.et_pb_row.dept-grid>.et_pb_column>.et_pb_module{margin-bottom:0!important;}
/* tighten heading-to-its-own-text inside dept body via small negative compensation handled by row-gap */
.et_pb_row.dept-grid .et_pb_heading{margin:0!important;}
@media(max-width:920px){
  .et_pb_row.cvmt-split,.et_pb_row.dept-grid{flex-direction:column!important;gap:1.5rem;}
  .et_pb_row.cvmt-split>.et_pb_column,.et_pb_row.dept-grid>.et_pb_column{flex:1 1 auto!important;}
  .et_pb_row.dept-grid>.et_pb_column:last-child{flex:1 1 auto!important;}
}

/* Hero readability: accent text should match the title (no hard-to-read gold italic), drop dept icons */
.cvmt-hero h1 em{color:var(--gcid-cvmt-bone)!important;font-style:normal!important;}
.cvmt-hero h1 .dept-icon{display:none!important;}

/* ============ CVMT contact form styling (2026-06-29) ============ */
.et_pb_contact_form_label{display:block;font-family:'Inter Tight',sans-serif;font-size:0.72rem;letter-spacing:0.14em;text-transform:uppercase;color:var(--gcid-cvmt-oak-soft);margin:0 0 0.4rem;font-weight:600;}
.et_pb_contact p{margin-bottom:1.1rem!important;}
.et_pb_contact .et_pb_contact_field{width:100%!important;padding:0!important;}
.et_pb_contact input.input,
.et_pb_contact textarea.input,
.et_pb_contact select.et_pb_contact_select{
  width:100%!important;box-sizing:border-box;background:#FBF7EE!important;
  border:1px solid color-mix(in srgb, var(--gcid-cvmt-ink) 16%, transparent)!important;
  border-radius:4px!important;padding:0.8rem 0.95rem!important;
  font-family:'Inter',sans-serif!important;font-size:1rem!important;color:var(--gcid-cvmt-ink)!important;
  line-height:1.45!important;box-shadow:none!important;transition:border-color .15s,box-shadow .15s;}
.et_pb_contact input.input:focus,
.et_pb_contact textarea.input:focus,
.et_pb_contact select.et_pb_contact_select:focus{
  outline:none!important;border-color:var(--gcid-cvmt-gold)!important;
  box-shadow:0 0 0 3px color-mix(in srgb, var(--gcid-cvmt-gold) 18%, transparent)!important;}
.et_pb_contact textarea.input{min-height:170px!important;resize:vertical;}
.et_pb_contact ::placeholder{color:color-mix(in srgb, var(--gcid-cvmt-oak-soft) 55%, transparent)!important;opacity:1;}
.et_pb_contact select.et_pb_contact_select{
  -webkit-appearance:none;appearance:none;cursor:pointer;padding-right:2.4rem!important;
  background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235C4733' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:right 0.95rem center!important;background-size:14px!important;}
.et_pb_contact_captcha_question{font-family:'Inter',sans-serif;color:var(--gcid-cvmt-oak-soft);font-size:0.95rem;}
.et_pb_contact input.et_pb_contact_captcha{width:54px!important;text-align:center;}
.et_pb_button.et_pb_contact_submit{
  background:var(--gcid-cvmt-ink)!important;color:var(--gcid-cvmt-bone)!important;border:1px solid var(--gcid-cvmt-ink)!important;border-radius:4px!important;
  font-family:'Inter Tight',sans-serif!important;font-size:0.8rem!important;font-weight:600!important;letter-spacing:0.14em!important;text-transform:uppercase!important;
  padding:0.95rem 1.9rem!important;line-height:1!important;transition:background .2s,border-color .2s;}
.et_pb_button.et_pb_contact_submit:hover{background:var(--gcid-cvmt-ember)!important;border-color:var(--gcid-cvmt-ember)!important;color:var(--gcid-cvmt-bone)!important;padding:0.95rem 1.9rem!important;}
.et_pb_button.et_pb_contact_submit:after{display:none!important;}
.et_pb_contact_main_title{margin-bottom:1.25rem!important;}

/* ---- contact form spacing fix (flex row-gaps) ---- */
.et_pb_contact_form_container{row-gap:0.4rem!important;}
.et_pb_contact_main_title{margin:0!important;}
.et-pb-contact-message:empty{display:none!important;margin:0!important;}
.et_pb_contact{margin-top:0!important;}
.et_pb_contact .et_pb_contact_form{row-gap:1rem!important;}
.et_pb_contact .et_pb_contact_field{row-gap:0.3rem!important;}
.et_pb_contact_form_label{margin:0!important;font-size:0.78rem!important;}
.et_pb_contact input.input,.et_pb_contact textarea.input,.et_pb_contact select.et_pb_contact_select{font-size:1.05rem!important;}

/* -----------------------------------------------------------------------------
   Divi 5 Visual Builder only (body.et-fb) — editor stability.
   Department pages lay out via .dept-grid (Home/Departments via .cvmt-grid /
   .cvmt-split) using !important flex/grid. That CSS fights the Divi 5 builder's
   own column rendering, so columns jump to odd widths and modules resize on
   rollover. Inside the builder we neutralize those layout overrides + hover
   transforms so editing is stable. body.et-fb only exists in the Visual Builder,
   so the live frontend is completely unaffected.
----------------------------------------------------------------------------- */
body.et-fb .et_pb_row.dept-grid,
body.et-fb .et_pb_row.cvmt-grid,
body.et-fb .et_pb_row.cvmt-split { display: block !important; }
body.et-fb .et_pb_row.dept-grid > .et_pb_column,
body.et-fb .et_pb_row.dept-grid > .et_pb_column:first-child,
body.et-fb .et_pb_row.dept-grid > .et_pb_column:last-child,
body.et-fb .et_pb_row.cvmt-grid > .et_pb_column,
body.et-fb .et_pb_row.cvmt-split > .et_pb_column { flex: none !important; width: auto !important; max-width: none !important; }
body.et-fb .et_pb_module, body.et-fb .et_pb_row, body.et-fb .et_pb_column,
body.et-fb .et_pb_blurb, body.et-fb .et_pb_image, body.et-fb .et_pb_image img,
body.et-fb .card, body.et-fb .media-card, body.et-fb [class*="card"] { transition: none !important; }
body.et-fb .card:hover, body.et-fb .media-card:hover, body.et-fb .media-card:hover img,
body.et-fb .media-card:hover .media-card__img img, body.et-fb .et_pb_blurb:hover,
body.et-fb .et_pb_blurb.media-card:hover, body.et-fb .et_pb_image:hover img { transform: none !important; }

/* ===== Mobile responsive + nav fix (2026-07-27) ===== */
@media (max-width:767px){
  html body{overflow-x:hidden;max-width:100%;}
  body .et_pb_row{display:block!important;}
  body .et_pb_row>.et_pb_column{display:block!important;width:100%!important;max-width:100%!important;float:none!important;margin:0 0 1.5rem!important;}
  body .et_pb_row.cvmt-split, body .et_pb_row.dept-grid, body .et_pb_row[class*="cvmt-grid"], body .cvmt-grid, body .grid, body .split, body .split--reverse, body .council, body .stats, body .deflist{display:block!important;grid-template-columns:1fr!important;}
  body .et_pb_row.cvmt-split>.et_pb_column, body .et_pb_row.dept-grid>.et_pb_column{display:block!important;width:100%!important;flex:0 0 auto!important;}
  body .et_pb_team_member{width:100%!important;}
  body img{max-width:100%!important;height:auto!important;}
}
@media (max-width:640px){
  body .nav.is-open{height:auto!important;}
  body .nav.is-open .menu{flex-direction:column!important;align-items:stretch!important;gap:0!important;width:100%!important;}
  body .nav.is-open .menu > li{width:100%!important;border-bottom:1px solid rgba(92,71,51,.12)!important;}
  body .nav.is-open .menu > li:last-child{border-bottom:0!important;}
  body .nav.is-open .menu a{display:block!important;padding:.7rem .25rem!important;}
}

/* ===== Mobile: home stats/cards/button + footer (2026-07-27) ===== */
@media (max-width:767px){
  /* Home stats: 1916|2024 and 9|5 as 2x2 */
  body.home .et_pb_row_3{display:grid!important;grid-template-columns:1fr 1fr!important;gap:1.25rem!important;}
  body.home .et_pb_row_3 > .et_pb_column{width:auto!important;max-width:none!important;margin:0!important;}
  /* Home department cards: continuous 2-wide (dissolve the two 3-col rows into the section grid) */
  body.home .et_pb_section_3{display:grid!important;grid-template-columns:1fr 1fr!important;gap:1.25rem!important;align-items:start!important;}
  body.home .et_pb_section_3 > .et_pb_row_5{grid-column:1 / -1!important;}
  body.home .et_pb_section_3 > .et_pb_row_6, body.home .et_pb_section_3 > .et_pb_row_7{display:contents!important;}
  body.home .et_pb_section_3 .et_pb_column{width:auto!important;max-width:none!important;margin:0!important;}
  /* Space above "Learn Our Story" button */
  body.home .et_pb_button_module_wrapper:has(.et_pb_button_0){margin-top:1.75rem!important;}
}
@media (max-width:640px){
  /* Footer: Government + Departments two columns (all pages) */
  body .footer__grid{grid-template-columns:1fr 1fr!important;gap:1.75rem 1.25rem!important;}
}

/* Cards: switch section from grid to flex-wrap so the 6 cards flow 2-up continuously (2026-07-27) */
@media (max-width:767px){
  body.home .et_pb_section_3{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;}
  body.home .et_pb_section_3 > .et_pb_row_5{flex:0 0 100%!important;width:100%!important;}
  body.home .et_pb_row_6 > .et_pb_column, body.home .et_pb_row_7 > .et_pb_column{flex:0 0 calc(50% - 0.625rem)!important;width:calc(50% - 0.625rem)!important;max-width:none!important;margin:0!important;}
}

/* Cards merged into one row — grid 2-col on mobile; undo the earlier section grid/flex attempts (2026-07-27) */
@media (max-width:767px){
  body.home .et_pb_section_3{display:block!important;}
  body.home .et_pb_section_3 > .et_pb_row_5{width:auto!important;}
  body.home .et_pb_section_3 .et_pb_row.cvmt-grid-3{display:grid!important;grid-template-columns:1fr 1fr!important;gap:1.25rem!important;}
  body.home .et_pb_section_3 .et_pb_row.cvmt-grid-3 > .et_pb_column{display:block!important;width:auto!important;max-width:none!important;flex:0 0 auto!important;margin:0!important;}
}

/* Footer: brand block (tribe name + "federally recognized sovereign nation" + address) spans both columns (2026-07-27) */
@media (max-width:640px){
  body .footer__grid > :first-child{grid-column:1 / -1!important;}
}

/* Footer: try 3 columns on mobile — Government | Departments | Official (2026-07-27) */
@media (max-width:640px){
  body .footer__grid{grid-template-columns:repeat(3,1fr)!important;gap:1.25rem 0.65rem!important;}
  body .footer__grid > :first-child{grid-column:1 / -1!important;}
}

/* About page: space above "Citizens & Community" on mobile (2026-07-27) */
@media (max-width:767px){
  body.page-id-29 .et_pb_text_24{margin-top:2.25rem!important;}
}

/* Events page: space above "Submitting a Request" and "Contact" on mobile (2026-07-27) */
@media (max-width:767px){
  body.page-id-30 .et_pb_heading_3{margin-top:2.25rem!important;}
  body.page-id-30 .et_pb_text_6{margin-top:2.25rem!important;}
}

/* Events "Submitting a Request" heading: higher-specificity margin override (2026-07-27) */
@media (max-width:767px){
  body.page-id-30 .et_pb_row_1 .et_pb_heading_3.et_pb_heading{margin-top:2.25rem!important;}
}

/* Election Board page: space above "Function of the Election Board" + "Contact" on mobile (2026-07-27) */
@media (max-width:767px){
  body.page-id-31 .et_pb_row_1 .et_pb_heading_2.et_pb_heading{margin-top:2.25rem!important;}
  body.page-id-31 .et_pb_text_6{margin-top:2.25rem!important;}
}

/* Departments page: merged card row -> 2-col grid on mobile (2026-07-27) */
@media (max-width:767px){
  body.page-id-33 .et_pb_section_1 .et_pb_row.cvmt-grid-3{display:grid!important;grid-template-columns:1fr 1fr!important;gap:1.25rem!important;}
  body.page-id-33 .et_pb_section_1 .et_pb_row.cvmt-grid-3 > .et_pb_column{display:block!important;width:auto!important;max-width:none!important;flex:0 0 auto!important;margin:0!important;}
}

/* Department pages: space above "Key Responsibilities" heading on mobile (2026-07-27) */
@media (max-width:767px){
  body.page-id-34 .et_builder_inner_content .et_pb_heading_2.et_pb_heading,
  body.page-id-35 .et_builder_inner_content .et_pb_heading_2.et_pb_heading,
  body.page-id-37 .et_builder_inner_content .et_pb_heading_2.et_pb_heading,
  body.page-id-38 .et_builder_inner_content .et_pb_heading_2.et_pb_heading,
  body.page-id-36 .et_builder_inner_content .et_pb_heading_1.et_pb_heading{margin-top:2.25rem!important;}
}

/* Department pages: space above "Contact" (below Member Access) on mobile (2026-07-27) */
@media (max-width:767px){
  body.page-id-34 .et_pb_text_6,
  body.page-id-35 .et_pb_text_5,
  body.page-id-36 .et_pb_text_5,
  body.page-id-37 .et_pb_text_5,
  body.page-id-38 .et_pb_text_5{margin-top:2.5rem!important;}
}
