@import url("https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&display=swap");

/* DataLock palette (from datalockcg.com datalock_theme CSS) */
:root:root {
  --dl-navy: #1c3e6c;
  --dl-coral: #eb5a45;
  --dl-coral-hover: #d64a36;
  --dl-green: #008000;
  --dl-green-light: #75bf75;
  --dl-teal-overlay: rgba(0, 86, 112, 0.5);

  --primary: var(--dl-navy);
  --primary-foreground: #fff;
  --card: #fff;
  --card-foreground: var(--dl-navy);
  --accent: var(--dl-coral);
  --accent-foreground: #fff;
  --font-sans: "Hind", sans-serif;
  --font-body: "Hind", sans-serif;
}

body { font-family: "Hind", sans-serif; }
h1, h2, h3, h4, h5 { font-family: "Hind", sans-serif; }

/* CTA buttons: coral (live .datalock-button) */
a.bg-primary.text-primary-foreground {
  background-color: var(--dl-coral);
  color: #fff;
  font-weight: 600;
  border-radius: 3px;
}
a.bg-primary.text-primary-foreground:hover { background-color: var(--dl-coral-hover); }

/* Secondary button: white bg, coral text (live .datalock-button--secondary) */
a.bg-accent-foreground.text-accent {
  background-color: #fff;
  color: var(--dl-coral);
  border-color: #fff;
  font-weight: 600;
  border-radius: 3px;
}
a.bg-accent-foreground.text-accent:hover { background-color: #f2f2f2; }

/* Section headings: navy with green rules on both sides (live h2.content-divider) */
section header > h2.text-primary.text-center {
  display: flex;
  align-items: center;
  column-gap: 2.5rem;
  font-weight: 600;
}
section header > h2.text-primary.text-center::before,
section header > h2.text-primary.text-center::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--dl-green);
}

/* Body-copy headings ("Transform Your Security") */
h2.text-primary { color: var(--dl-navy); font-weight: 700; }

/* Banner overlay: teal tint instead of black (live .datalock-banner gradient) */
section .bg-black\/60 { background-color: var(--dl-teal-overlay); }

/* Card titles navy, white card bg, live-style shadow */
div.bg-card { background-color: #fff; box-shadow: 4px 5px 14px 1px rgba(0, 0, 0, 0.17); }
.bg-card h3, .bg-card h4, .bg-card a { color: var(--dl-navy); }

/* ===== Header (live: .layout-container header) ===== */
header[role="banner"] > .region-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 20px 15px;
  background: #fff;
}
header[role="banner"] .branding img { max-width: 185px; height: auto; }
@media (min-width: 650px) { header[role="banner"] .branding img { max-width: 300px; } }
header[role="banner"] .region-header nav a[data-level="1"] {
  color: #000;
  font-family: "Hind", sans-serif;
  font-size: 15px;
  font-weight: 500;
}
header[role="banner"] .region-header nav a[data-level="1"]:hover,
header[role="banner"] .region-header nav a[data-level="1"]:focus {
  background-color: var(--dl-navy);
  color: #fff;
}

/* ===== Footer (live: #footer) ===== */
footer[role="contentinfo"] {
  background: var(--dl-navy) url("/sites/default/files/datalock/footerbg.png") center / cover no-repeat;
  color: #fff;
}
footer[role="contentinfo"] > .region-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 4rem 2rem;
}
@media (min-width: 40em) {
  footer[role="contentinfo"] > .region-footer { grid-template-columns: repeat(4, 1fr); }
}
footer[role="contentinfo"] .region-footer h2 {
  color: #fff;
  font-family: "Hind", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin: 0 0 1rem;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--dl-green);
}
footer[role="contentinfo"] ul.menu {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
}
footer[role="contentinfo"] ul.menu a,
footer[role="contentinfo"] ul.menu span {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  line-height: 30px;
}
/* Below-footer white logo (live: #below_footer) */
footer[role="contentinfo"]::after {
  content: "";
  display: block;
  height: 100px;
  border-top: 2px solid var(--dl-green);
  background: url("/sites/default/files/datalock/datalock-logo-white.png") 2rem 25px / 200px auto no-repeat;
}
/* Keep site name for screen readers/alt, hide visually next to logo */
#block-mercury-dl-branding .branding + div {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Hero overlay: linear-gradient(0deg, rgba(0,86,112,.5), rgba(0,86,112,.5)) over the image (live .datalock-banner) */
section > .absolute.z-\[-1\] > .absolute.inset-0.bg-black\/0 {
  background: linear-gradient(0deg, rgba(0, 86, 112, 0.5), rgba(0, 86, 112, 0.5));
  z-index: 1;
}

/* Hero kicker "SECURITY EXCELLENCE": green underline (live .datalock-banner__kicker) */
section.cq-full div:has(+ h1.text-background) {
  align-self: stretch;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  text-align: center;
}
section.cq-full div:has(+ h1.text-background) > p {
  border-bottom: 3px solid var(--dl-green-light);
  padding-bottom: 0.67em;
  font-weight: 500;
  text-transform: uppercase;
}

/* =====================================================================
   Spacing & typography to match datalockcg.com (measured at 1440px)
   ===================================================================== */

/* Header nav (live #superfish-main a: 18px, 13.5px 18px, #23232d) */
header[role="banner"] .region-header nav a[data-level="1"] {
  font-size: 18px;
  font-weight: 400;
  padding: 13.5px 18px;
  color: #23232d;
}

/* Hero (live .datalock-banner: 484px tall, text block 1200px, 80px padding) */
main section.cq-full.min-h-\[500px\] { min-height: 484px; }
main section.cq-full.min-h-\[500px\] > .container > .relative.z-1.flex-col {
  max-width: 1200px;
  gap: 0;
  padding-block: 80px;
}
section.cq-full div:has(+ h1.text-background) > p { font-size: 32px; line-height: 1.15; }
main section.cq-full h1.text-background {
  font-size: 60px;
  line-height: 69px;
  font-weight: 700;
  margin-top: 40px;
}
main section.cq-full h1.text-background + div { margin-top: 32px; gap: 20px; }

/* Buttons (live .datalock-button: 16px 32px, 18px/600) */
a.bg-primary.text-primary-foreground,
a.bg-accent-foreground.text-accent {
  padding: 16px 32px;
  font-size: 18px;
  line-height: 20.7px;
}

/* Transform Your Security (live: h2 40px/600 mb 33px; p 24px/300, lh 1.7, black) */
main h2.text-left.text-primary {
  font-size: 40px;
  line-height: 46px;
  font-weight: 600;
  margin-bottom: 17px;
}
main h2.text-left.text-primary ~ div p {
  font-size: 24px;
  line-height: 1.7;
  font-weight: 300;
  color: #000;
}

/* FedRAMP banner (live: 350px tall, 80px padding, h2 40px/600 one line) */
section.bg-primary.text-primary-foreground > .relative.flex-col {
  min-height: 350px;
  padding-block: 80px;
  gap: 32px;
  max-width: 1261px;
}
section.bg-primary.text-primary-foreground h2 {
  font-size: 40px;
  line-height: 46px;
  font-weight: 600;
  max-width: none;
}
section.bg-primary.text-primary-foreground p:empty { display: none; }

/* Section headings with green rules (live h2.content-divider: 60px/69px, ~50px below) */
section header > h2.text-primary.text-center { font-size: 60px; line-height: 69px; }
section header:has(> h2.text-primary.text-center) { margin-bottom: 50px; }

/* "See all industries" (live: centered, 24px/300, default link blue) */
section header p:has(> a[href="/industries-served"]) { text-align: center; margin-top: 20px; }
section header p > a[href="/industries-served"] {
  font-size: 24px;
  font-weight: 300;
  color: #0000ee;
}

/* Card grids: wider row, cards centered (live: 1367px row, 350px cards) */
main .container:has(div.bg-card) { max-width: 1439px; }
main .lg\:max-w-9\/10:has(div.bg-card) { max-width: 1367px; width: 100%; }
main .grid:has(> div.bg-card) { justify-items: center; }
main .grid:has(> div.bg-card:nth-child(4)) { gap: 16px; }

/* Cards (live .teaser_card: no padding, square, full-bleed 350x288 image, 30px label) */
main div.bg-card {
  width: 95%;
  max-width: 350px;
  padding: 0;
  gap: 0;
  border-radius: 0;
}
main .grid:has(> div.bg-card:nth-child(4)) > div.bg-card { width: 100%; max-width: 325px; }
main div.bg-card:hover { transform: none; }
main div.bg-card > .aspect-video {
  aspect-ratio: 350 / 288;
  border-radius: 0;
}
main div.bg-card > .aspect-video img { width: 100%; height: 100%; object-fit: cover; }
main div.bg-card > div:last-child { padding: 20px 24px 20px 20px; }
main div.bg-card h3 {
  font-size: 30px;
  line-height: 34.5px;
  font-weight: 600;
}

/* Footer (live: h2 heavier w/ top margin, 16px list margins) */
footer[role="contentinfo"] .region-footer h2 { font-weight: 800; margin-top: 16.6px; }
footer[role="contentinfo"] ul.menu { margin-block: 16px; }

/* --- Round 2 adjustments (measured against live) --- */
/* Transform row: full 1367px width, 480px image centered in left half, 636px text column */
main .lg\:max-w-8\/10:has(h2.text-left.text-primary) { max-width: 1367px; width: 100%; }
main .lg\:max-w-8\/10:has(h2.text-left.text-primary) .aspect-3\/2 { max-width: 480px; margin-inline: auto; }
main h2.text-left.text-primary { margin-top: 0; }
main div:has(> h2.text-left.text-primary) { max-width: 636px; justify-self: start; }

/* Heading -> cards: live ~98px */
section header:has(> h2.text-primary.text-center) { margin-bottom: 98px; }
/* Industries heading: 50px to "See all", ~73px to cards */
section header:has(a[href="/industries-served"]) { margin-bottom: 73px; }
section header p:has(> a[href="/industries-served"]) { margin-top: 50px; margin-bottom: 0; }

/* Card label area: live body ~129px (extra space under label) */
main div.bg-card > div:last-child { padding-bottom: 40px; }

/* =====================================================================
   Header nav with dropdowns (dl-header menu; mirrors live superfish sf-style-white)
   ===================================================================== */
#block-mercury-dl-main-menu ul.menu { gap: 0; margin: 0; padding: 0; flex-wrap: nowrap; }
#block-mercury-dl-main-menu li.menu__item { position: relative; list-style: none; }
#block-mercury-dl-main-menu a.menu__link {
  display: block;
  font-family: "Hind", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 18px;
  color: #23232d;
  padding: 13.5px 18px;
  text-decoration: none;
  white-space: nowrap;
  opacity: 1;
}
#block-mercury-dl-main-menu a.menu__link:hover,
#block-mercury-dl-main-menu a.menu__link:focus,
#block-mercury-dl-main-menu li.menu__item:hover > a.menu__link,
#block-mercury-dl-main-menu li.menu__item:focus-within > a.menu__link {
  background: #f0f0f0;
  text-decoration: none;
  opacity: 1;
  outline: 0;
}
/* Parent link: room for chevron */
#block-mercury-dl-main-menu a.menu__link--has-children { padding-right: 2.6em; position: relative; }
#block-mercury-dl-main-menu a.menu__link--has-children::after {
  content: "";
  position: absolute;
  right: 1.1em;
  top: 50%;
  border-style: solid;
  border-width: 0 2.4px 2.4px 0;
  border-color: currentColor;
  padding: 3.5px;
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.75;
}
#block-mercury-dl-main-menu li.menu__item--has-children:hover > a.menu__link--has-children::after,
#block-mercury-dl-main-menu li.menu__item--has-children:focus-within > a.menu__link--has-children::after {
  transform: translateY(-25%) rotate(225deg);
  opacity: 1;
}
/* Dropdown panel */
#block-mercury-dl-main-menu ul.menu--level-2 {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 499;
  flex-direction: column;
  min-width: 100%;
  background: #f6f6f6;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
#block-mercury-dl-main-menu li.menu__item--has-children:hover > ul.menu--level-2,
#block-mercury-dl-main-menu li.menu__item--has-children:focus-within > ul.menu--level-2 {
  display: flex;
}
#block-mercury-dl-main-menu ul.menu--level-2 a.menu__link {
  padding: 0.75em 1em;
  line-height: 1.2;
}
/* Keep header above hero so the dropdown overlays it */
header[role="banner"] { position: relative; z-index: 50; }

/* =====================================================================
   Who We Are (/about) – measured against datalockcg.com/about at 1440px
   ===================================================================== */

/* Ribbon hero (live: 350px tall, same overlay/kicker/h1 as homepage) */
main section.cq-full.md\:min-h-\[400px\] { min-height: 350px; height: auto; }
main section.cq-full.md\:min-h-\[400px\] > .container > .relative.z-1.flex-col {
  max-width: 1200px; gap: 0; padding-block: 80px;
}
main section.cq-full.md\:min-h-\[400px\] div:has(+ h1.text-background) { max-width: 795px; }
main section.cq-full.md\:min-h-\[400px\] > .absolute.z-\[-1\] > .absolute.inset-0.bg-black\/0 {
  background: linear-gradient(0deg, rgba(0, 86, 112, 0.5), rgba(0, 86, 112, 0.5));
  z-index: 1;
}

/* Full-width text block (intro copy: live 976px, 24px/300, lh 1.7, black) */
main .lg\:max-w-3\/4:has(> .grid.grid-cols-1) { max-width: 976px; width: 100%; }
main .grid.grid-cols-1 > div.font-body p,
main .grid.md\:grid-cols-2 > .flex-col > div.font-body p {
  font-size: 24px;
  line-height: 1.7;
  font-weight: 300;
  color: #000;
  margin-block: 0 24px;
}

/* Leadership columns (live: 684px cols, 400px headshot, 40px name, 636px bio) */
main .lg\:max-w-9\/10:has(> .grid.md\:grid-cols-2 figure) { max-width: 1367px; width: 100%; }
main .grid.md\:grid-cols-2:has(figure) { column-gap: 0; }
main .grid.md\:grid-cols-2 > .flex-col:has(> figure) { gap: 0; padding-inline: 24px; }
main .grid.md\:grid-cols-2 > .flex-col > figure { width: 400px; max-width: 100%; margin: 0 auto; }
main .grid.md\:grid-cols-2 > .flex-col > figure > div { border-radius: 0; }
main .grid.md\:grid-cols-2 > .flex-col > h2.text-center.text-primary {
  font-size: 40px; line-height: 46px; font-weight: 600; margin: 0 0 33px;
}
main .grid.md\:grid-cols-2 > .flex-col > div.font-body { max-width: 636px; text-align: left; }

/* Value cards (live .teaser_card + .tc-icon: 333x458, photo 333x274,
   158px white icon circle overlapping 68px at left 40px, 30px label) */
main .lg\:max-w-3\/4:has(> .grid.md\:grid-cols-3 > .flex-col > figure + figure) { max-width: 1115px; width: 100%; }
main .grid.md\:grid-cols-3:has(> .flex-col > figure + figure) { column-gap: 58px; row-gap: 16px; }
main .grid.md\:grid-cols-3 > .flex-col:has(> figure + figure) {
  gap: 0;
  width: 100%;
  max-width: 333px;
  min-height: 458px;
  background: #fff;
  border-radius: 0;
  box-shadow: 4px 5px 14px 1px rgba(0, 0, 0, 0.17);
  align-items: stretch;
}
main .grid.md\:grid-cols-3 > .flex-col > figure:first-child { width: 100%; margin: 0; }
main .grid.md\:grid-cols-3 > .flex-col > figure:first-child > div { aspect-ratio: 333 / 274; border-radius: 0; }
main .grid.md\:grid-cols-3 > .flex-col > figure:first-child img { width: 100%; height: 100%; object-fit: cover; }
main .grid.md\:grid-cols-3 > .flex-col > figure + figure {
  width: 158px; height: 158px;
  margin: -68px 0 0 40px;
  border: 8px solid #fff;
  border-radius: 50%;
  background: #fff;
  position: relative; z-index: 1;
  box-sizing: border-box;
}
main .grid.md\:grid-cols-3 > .flex-col > figure + figure > div { aspect-ratio: auto; height: 100%; padding: 21px; border-radius: 0; }
main .grid.md\:grid-cols-3 > .flex-col > figure + figure img { width: 100%; height: 100%; object-fit: contain; }
main .grid.md\:grid-cols-3 > .flex-col:has(> figure + figure) > h3 {
  font-size: 30px; line-height: 34.5px; font-weight: 600;
  margin: 0; padding: 20px 24px 20px 20px;
}
/* About round 2 */
main section:has(> .container > .lg\:max-w-3\/4 > .grid.grid-cols-1) { margin-top: 88px; }
main .grid.grid-cols-1 > div.font-body p { margin-block: 0 34px; }
main .container:has(.grid.md\:grid-cols-2 figure) { max-width: 1439px; }
main .grid.md\:grid-cols-2 > .flex-col > h2.text-center.text-primary { margin-top: 46px; }
/* Values: full-width divider heading, 1115px card grid */
main .container:has(.grid.md\:grid-cols-3 > .flex-col > figure + figure) { max-width: 1439px; }
main .lg\:max-w-3\/4:has(> .grid.md\:grid-cols-3 > .flex-col > figure + figure) { max-width: 1367px; }
main .grid.md\:grid-cols-3:has(> .flex-col > figure + figure) { max-width: 1115px; margin-inline: auto; }

/* =====================================================================
   What We Do (/what-we-do) + shared fixes
   ===================================================================== */
/* Divider heading with intro text under it (live: 64px from hero, 1026px wide, 50px to text) */
main section:has(> .container > .lg\:max-w-3\/4 > header):has(.grid.grid-cols-1) { margin-top: 64px; }
main .lg\:max-w-3\/4:has(> header):has(> .grid.grid-cols-1) { max-width: 1026px; }
main .lg\:max-w-3\/4:has(> header) > .grid.grid-cols-1 { max-width: 976px; margin-inline: auto; }
main section header:has(> h2.text-primary.text-center):has(+ .grid.grid-cols-1) { margin-bottom: 50px; }

/* Icon cards: equal heights, live label area (20px top, 39px bottom incl. empty description) */
main .grid.md\:grid-cols-3:has(> .flex-col > figure + figure) { align-items: stretch; }
main .grid.md\:grid-cols-3 > .flex-col:has(> figure + figure) { align-self: stretch; min-height: 0; }
main .grid.md\:grid-cols-3 > .flex-col:has(> figure + figure) > h3 { padding-bottom: 39px; }
main .grid.md\:grid-cols-3 > .flex-col:has(> figure + figure) > h3 a { color: inherit; text-decoration: none; }

/* CTA banners: Mercury always outputs an (empty) description <p>; hide it so the
   heading + button are centred like live. Remove this rule if a CTA needs body text. */
section.bg-primary.text-primary-foreground > .relative.flex-col > h2 + p.max-w-2xl { display: none; }

/* Footer: live classy .menu-item padding-top 0.2em, h2 margin 16.6px top & bottom */
footer[role="contentinfo"] ul.menu > li { padding-top: 0.2em; }
footer[role="contentinfo"] .region-footer h2 { margin-bottom: 16.6px; }
/* Live footer sits directly after the last section (Mercury adds 32px region padding) */
main .region-content { padding-bottom: 0; }

/* =====================================================================
   Icon cards in 2-column rows (live .layout--twocol-section--50-50.layout--cards:
   768px row, 350px cards, 350x288 photo, cards keep natural height)
   ===================================================================== */
main .container:has(.grid.md\:grid-cols-2 > .flex-col > figure + figure) { max-width: 1439px; }
main .lg\:max-w-3\/4:has(> .grid.md\:grid-cols-2 > .flex-col > figure + figure) { max-width: 768px; width: 100%; }
main .grid.md\:grid-cols-2:has(> .flex-col > figure + figure) { column-gap: 34px; row-gap: 16px; justify-items: center; align-items: start; }
main .grid.md\:grid-cols-2 > .flex-col:has(> figure + figure) {
  gap: 0; padding: 0;
  width: 100%; max-width: 350px;
  background: #fff;
  border-radius: 0;
  box-shadow: 4px 5px 14px 1px rgba(0, 0, 0, 0.17);
  align-items: stretch;
}
main .grid.md\:grid-cols-2 > .flex-col:has(> figure + figure) > figure:first-child { width: 100%; margin: 0; }
main .grid.md\:grid-cols-2 > .flex-col:has(> figure + figure) > figure:first-child > div { aspect-ratio: 350 / 288; border-radius: 0; }
main .grid.md\:grid-cols-2 > .flex-col:has(> figure + figure) > figure:first-child img { width: 100%; height: 100%; object-fit: cover; }
main .grid.md\:grid-cols-2 > .flex-col:has(> figure + figure) > figure + figure {
  width: 158px; height: 158px;
  margin: -68px 0 0 40px;
  border: 8px solid #fff; border-radius: 50%;
  background: #fff;
  position: relative; z-index: 1;
  box-sizing: border-box;
}
main .grid.md\:grid-cols-2 > .flex-col:has(> figure + figure) > figure + figure > div { aspect-ratio: auto; height: 100%; padding: 21px; border-radius: 0; }
main .grid.md\:grid-cols-2 > .flex-col:has(> figure + figure) > figure + figure img { width: 100%; height: 100%; object-fit: contain; }
main .grid.md\:grid-cols-2 > .flex-col:has(> figure + figure) > h3 {
  font-size: 30px; line-height: 34.5px; font-weight: 600;
  margin: 0; padding: 20px 24px 39px 20px;
}
main .grid.md\:grid-cols-2 > .flex-col:has(> figure + figure) > h3 a { color: inherit; text-decoration: none; }

/* Row spacing (live: 283px intro -> first row, 62px between rows, 96px to CTA) */
main section:has(.grid.grid-cols-1) + section:has(.grid.md\:grid-cols-2 > .flex-col > figure + figure) { margin-top: 235px; }
main section:has(.grid.md\:grid-cols-2 > .flex-col > figure + figure) + section:has(.grid.md\:grid-cols-2 > .flex-col > figure + figure) { margin-top: 14px; }
main section:has(.grid.md\:grid-cols-2 > .flex-col > figure + figure):has(+ section.bg-primary) { margin-bottom: 96px; }
/* (section margins collapse: values below are the full gaps) */
main section:has(.grid.grid-cols-1) + section:has(.grid.md\:grid-cols-2 > .flex-col > figure + figure) { margin-top: 246px; }
main section:has(.grid.md\:grid-cols-2 > .flex-col > figure + figure) + section:has(.grid.md\:grid-cols-2 > .flex-col > figure + figure) { margin-top: 63px; }
main .grid.md\:grid-cols-2:has(> .flex-col > figure + figure) { column-gap: 0; }

/* =====================================================================
   3-col icon card grids -> live .datalock-card-grid (flex wrap, space-evenly,
   max 76em/1216px, 16px row gap, cards 333px + 4.95px side margins).
   Partial last rows centre like live (e.g. Compliance 3 + 2).
   ===================================================================== */
main .grid.md\:grid-cols-3:has(> .flex-col > figure + figure) {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: stretch;
  max-width: 1216px;
  margin-inline: auto;
  column-gap: 0;
  row-gap: 16px;
}
main .grid.md\:grid-cols-3 > .flex-col:has(> figure + figure) {
  flex: 0 0 333px;
  width: 333px;
  margin-inline: 4.95px;
}
/* Paragraph spacing inside divider-heading intro (live: 24px) */
main .lg\:max-w-3\/4:has(> header) > .grid.grid-cols-1 p { margin-block: 0 24px; }
/* Intro -> 3-col card grid: live 88px (collapsed margin 64 + last paragraph 24) */
main section:has(.grid.grid-cols-1) + section:has(.grid.md\:grid-cols-3 > .flex-col > figure + figure) { margin-top: 64px; }

/* =====================================================================
   Resources (/resources): Featured Resource + blog listing View (blog:all)
   Live: .datalock-card-grid + .teaser_card_text, pager "Page 1  Next ›"
   ===================================================================== */
main .container:has(.dl-blog-listing),
main .container:has(> .lg\:max-w-9\/10 > .grid > section.bg-primary) { max-width: 1439px; }
main .lg\:max-w-9\/10:has(.dl-blog-listing),
main .lg\:max-w-9\/10:has(> .grid > section.bg-primary) { max-width: 1367px; width: 100%; }
main .lg\:max-w-9\/10 > .grid > section.bg-primary { width: 100%; margin-inline: 0; }
section header:has(> h2.text-primary.text-center):has(+ .grid .dl-blog-listing) { margin-bottom: 50px; }

/* Card grid */
main .dl-blog-listing .view-content {
  display: flex; flex-wrap: wrap; justify-content: space-evenly;
  max-width: 1216px; margin-inline: auto; row-gap: 16px; column-gap: 0;
}
/* Card: 350 x 538 = 288px image + 250px text area (title / read more spaced evenly) */
main .dl-blog-listing .views-row {
  width: 350px; max-width: 100%; height: 538px; margin-bottom: 10px;
  display: grid; grid-template-rows: 288px 1fr auto 2fr auto 1fr; justify-items: center;
  background: #fff; box-shadow: 4px 5px 14px 1px rgba(0, 0, 0, 0.17);
}
main .dl-blog-listing .views-field-field-featured-image { grid-row: 1; width: 100%; height: 288px; position: relative; overflow: hidden; }
main .dl-blog-listing .views-field-field-featured-image a { display: block; height: 100%; }
main .dl-blog-listing .views-field-field-featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
main .dl-blog-listing .views-field-field-featured-image a::after {
  content: ""; position: absolute; inset: 0; background: #365cac; opacity: 0.3; pointer-events: none;
}
main .dl-blog-listing .views-field-title { grid-row: 3; width: 90%; }
main .dl-blog-listing h3.blog-card__title {
  margin: 0; font-size: 30px; line-height: 34.5px; font-weight: 600; color: #1c3e6c; text-align: left;
}
main .dl-blog-listing .views-field-view-node { grid-row: 5; }
main .dl-blog-listing .blog-card__link a {
  font-size: 18px; line-height: 20.7px; font-weight: 600; color: #1c3e6c; text-decoration: none;
}
main .dl-blog-listing .blog-card__link a:hover { text-decoration: underline; }

/* Pager: show only "Page N" + "‹ Previous" / "Next ›" like live mini pager */
main .dl-blog-listing nav.pager { margin: 13px 0 24px; }
main .dl-blog-listing nav.pager li:has(> a:not([rel]):not([aria-current])) { display: none; }
main .dl-blog-listing nav.pager a[aria-current="page"] {
  width: auto; min-width: 0; height: auto; background: none; color: #000;
  font-size: 24px; font-weight: 700; padding: 12px;
}
main .dl-blog-listing nav.pager a[aria-current="page"] .sr-only {
  position: static; width: auto; height: auto; margin: 0 0.3em 0 0; clip: auto; overflow: visible; white-space: normal;
}
main .dl-blog-listing nav.pager a[aria-current="page"] .pager__list-item { font-size: 24px; }
main .dl-blog-listing nav.pager .pager__item--next .pager__icon,
main .dl-blog-listing nav.pager .pager__item--previous .pager__icon { display: none; }
main .dl-blog-listing nav.pager .pager__item--next a::after,
main .dl-blog-listing nav.pager .pager__item--previous a::before {
  font-size: 24px; font-weight: 300; color: #0000ee; text-decoration: underline;
}
main .dl-blog-listing nav.pager .pager__item--next a::after { content: "Next ›"; }
main .dl-blog-listing nav.pager .pager__item--previous a::before { content: "‹ Previous"; }
main .dl-blog-listing nav.pager .pager__item--next a,
main .dl-blog-listing nav.pager .pager__item--previous a { padding: 12px; background: none; }
/* Pager -> footer: live 37px */
main .dl-blog-listing nav.pager { margin-bottom: 0; }
main section:has(.dl-blog-listing) { margin-bottom: 37px; }
main .dl-blog-listing nav.pager a[aria-current="page"] .sr-only { clip-path: none; padding: 0; border: 0; font-size: 24px; font-weight: 700; }
main .dl-blog-listing .views-field-field-featured-image > .field-content { height: 100%; }

/* =====================================================================
   Blog post pages (node type blog, full view) – live: "Blog" banner + narrow body
   ===================================================================== */
body.page-node-type-blog header[role="banner"] > .container {
  max-width: none; width: 100%; margin: 0; padding: 80px 5%;
  min-height: 350px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(0deg, rgba(0, 86, 112, 0.5), rgba(0, 86, 112, 0.5)),
              url("/sites/default/files/hero-banner.png") center / cover no-repeat;
  color: #fff; text-align: center;
}
body.page-node-type-blog header[role="banner"] > .container > :not(h1) { display: none; } /* breadcrumb */
body.page-node-type-blog header[role="banner"] > .container::before {
  content: "Blog";
  display: block; width: 100%; max-width: 1082px;
  font-family: "Hind", sans-serif; font-size: 32px; line-height: 36.8px; font-weight: 500;
  text-transform: uppercase; padding-bottom: 21.44px; border-bottom: 3px solid var(--dl-green-light);
}
body.page-node-type-blog header[role="banner"] > .container > h1 {
  max-width: 1082px; margin: 40px 0 0;
  font-family: "Hind", sans-serif; font-size: 60px; line-height: 69px; font-weight: 700; color: #fff;
}
body.page-node-type-blog main .region-content > article {
  max-width: 1024px; margin: 64px auto 64px; padding: 0 16px; box-sizing: content-box;
}
body.page-node-type-blog main article p,
body.page-node-type-blog main article li {
  font-size: 24px; line-height: 40.8px; font-weight: 300; color: #000;
}
body.page-node-type-blog main article p,
body.page-node-type-blog main article ul,
body.page-node-type-blog main article ol { margin: 24px 0; }
body.page-node-type-blog main article ul { list-style: disc; padding-left: 40px; }
body.page-node-type-blog main article ol { list-style: decimal; padding-left: 40px; }
body.page-node-type-blog main article h2,
body.page-node-type-blog main article h3,
body.page-node-type-blog main article h4 { color: #000; font-weight: 700; margin: 18.72px 0; }
body.page-node-type-blog main article h3 { font-size: 18.72px; line-height: 21.5px; }
body.page-node-type-blog main article h2 { font-size: 24px; line-height: 1.2; }
body.page-node-type-blog main article a { color: #0000ee; text-decoration: underline; }
body.page-node-type-blog header[role="banner"] > .container > h1 { max-width: 1200px; }
body.page-node-type-blog main .region-content > article { margin-top: 85px; margin-bottom: 64px; }
body.page-node-type-blog main .region-content > article { margin-bottom: 88px; }

/* Icon cards with a description under the title (live .tc-description: 20px/23px light, 20px margins) */
main .grid > .flex-col:has(> figure + figure) > h3:has(+ div.font-body) { padding-bottom: 0; }
main .grid > .flex-col:has(> figure + figure) > h3 + div.font-body { padding: 20px 24px 40px 20px; margin: 0; }
main .grid > .flex-col:has(> figure + figure) > h3 + div.font-body p {
  font-size: 20px; line-height: 23px; font-weight: 300; color: #000; margin: 0;
}

/* =====================================================================
   Basic page nodes (detail pages, e.g. /what-we-do/.../risk-management):
   live = banner with title only + narrow 1024px body (same type as blog posts)
   ===================================================================== */
body.page-node-type-page header[role="banner"] > .container {
  max-width: none; width: 100%; margin: 0; padding: 80px 5%;
  min-height: 350px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(0deg, rgba(0, 86, 112, 0.5), rgba(0, 86, 112, 0.5)),
              url("/sites/default/files/hero-banner.png") center / cover no-repeat;
  color: #fff; text-align: center;
}
body.page-node-type-page header[role="banner"] > .container > :not(h1) { display: none; }
body.page-node-type-page header[role="banner"] > .container > h1 {
  max-width: 1200px; margin: 0;
  font-family: "Hind", sans-serif; font-size: 60px; line-height: 69px; font-weight: 700; color: #fff;
}
body.page-node-type-page main .region-content > article { max-width: 1024px; margin: 88px auto 64px; padding: 0 16px; box-sizing: content-box; }
body.page-node-type-page main article p,
body.page-node-type-page main article li { font-size: 24px; line-height: 40.8px; font-weight: 300; color: #000; }
body.page-node-type-page main article p,
body.page-node-type-page main article ul,
body.page-node-type-page main article ol { margin: 24px 0; }
body.page-node-type-page main article ul { list-style: disc; padding-left: 40px; }
body.page-node-type-page main article ol { list-style: decimal; padding-left: 40px; }
body.page-node-type-page main article li > p { margin: 0 0 24px; }
body.page-node-type-page main article h2,
body.page-node-type-page main article h3,
body.page-node-type-page main article h4 { color: #000; font-weight: 700; margin: 18.72px 0; }
body.page-node-type-page main article a { color: #0000ee; text-decoration: underline; }
body.page-node-type-page main article strong,
body.page-node-type-blog main article strong { font-weight: 400; }
body.page-node-type-page main .region-content > article { margin-bottom: 88px; }

/* Industry detail pages (Basic pages under /industries-served/...): live banner has an
   "Industries Served" kicker. Detected via the breadcrumb link, so no extra field needed. */
body.page-node-type-page header[role="banner"] > .container:has(nav a[href="/industries-served"])::before {
  content: "Industries Served";
  display: block; width: 100%; max-width: 1082px;
  font-family: "Hind", sans-serif; font-size: 32px; line-height: 36.8px; font-weight: 500;
  text-transform: uppercase; padding-bottom: 21.44px; border-bottom: 3px solid var(--dl-green-light);
}
body.page-node-type-page header[role="banner"] > .container:has(nav a[href="/industries-served"]) > h1 { margin-top: 40px; }

/* --- Kicker width = title block width (live: underline spans max(kicker, title)) ---
   Move kicker from the container into the h1 so the line matches the title width. */
body.page-node-type-blog header[role="banner"] > .container::before,
body.page-node-type-page header[role="banner"] > .container:has(nav a[href="/industries-served"])::before { content: none; display: none; }
body.page-node-type-blog header[role="banner"] > .container > h1,
body.page-node-type-page header[role="banner"] > .container:has(nav a[href="/industries-served"]) > h1 {
  display: inline-block; width: fit-content; margin-top: 0;
}
body.page-node-type-blog header[role="banner"] > .container > h1::before,
body.page-node-type-page header[role="banner"] > .container:has(nav a[href="/industries-served"]) > h1::before {
  display: block;
  font-family: "Hind", sans-serif; font-size: 32px; line-height: 36.8px; font-weight: 500;
  text-transform: uppercase; padding-bottom: 21.44px; margin-bottom: 40px;
  border-bottom: 3px solid var(--dl-green-light);
}
body.page-node-type-blog header[role="banner"] > .container > h1::before { content: "Blog"; }
body.page-node-type-page header[role="banner"] > .container:has(nav a[href="/industries-served"]) > h1::before { content: "Industries Served"; }

/* --- Headings inside detail-page / blog articles (live .layout h2: 36px navy 600) --- */
body.page-node-type-page main article h2,
body.page-node-type-blog main article h2 {
  font-family: "Hind", sans-serif; font-size: 36px; line-height: 41.4px; font-weight: 600;
  color: #1c3e6c; margin: 0 0 29.88px;
}
/* Centered h2 = live "content-divider": 60px, navy, green rules both sides (full width) */
body.page-node-type-page main article h2.text-align-center,
body.page-node-type-blog main article h2.text-align-center {
  display: flex; align-items: center; column-gap: 2.5rem;
  font-size: 60px; line-height: 69px; margin: 0 -25px 49.8px; width: calc(100% + 50px);
}
body.page-node-type-page main article h2.text-align-center::before,
body.page-node-type-page main article h2.text-align-center::after,
body.page-node-type-blog main article h2.text-align-center::before,
body.page-node-type-blog main article h2.text-align-center::after { content: ""; flex: 1; height: 2px; background: var(--dl-green); }
body.page-node-type-page main article h2:not(.text-align-center),
body.page-node-type-blog main article h2:not(.text-align-center) { font-size: 40px; line-height: 46px; }
/* Live h1 always has ~40px top margin (centred block shifts down 20px when there's no kicker) */
body.page-node-type-page header[role="banner"] > .container:not(:has(nav a[href="/industries-served"])) > h1 { margin-top: 40px; }
/* Article that opens with a divider heading starts 64px below the banner */
body.page-node-type-page main .region-content > article:has(h2.text-align-center:first-child),
body.page-node-type-blog main .region-content > article:has(h2.text-align-center:first-child) { margin-top: 64px; }
/* Bold inside headings stays bold (live h3 > strong renders heavy) */
body.page-node-type-page main article :is(h2, h3, h4) strong,
body.page-node-type-blog main article :is(h2, h3, h4) strong { font-weight: 700; }

/* =====================================================================
   Contact Us (/contact = core Contact form "contact_us", body.path-contact)
   Live: "CONTACT US" kicker + 60px tagline banner, 700px centred form.
   The h1 text is the form label ("Contact Us"); it's shown as the kicker and the
   tagline is added visually. Change the tagline text here if needed.
   ===================================================================== */
body.path-contact header[role="banner"] > .container {
  max-width: none; width: 100%; margin: 0; padding: 80px 5%;
  min-height: 350px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(0deg, rgba(0, 86, 112, 0.5), rgba(0, 86, 112, 0.5)),
              url("/sites/default/files/hero-banner.png") center / cover no-repeat;
  color: #fff; text-align: center;
}
body.path-contact header[role="banner"] > .container > :not(h1) { display: none; }
body.path-contact header[role="banner"] > .container > h1 {
  width: 100%; max-width: 1200px; margin: 0;
  font-family: "Hind", sans-serif; font-size: 32px; line-height: 36.8px; font-weight: 500; color: #fff;
  text-transform: uppercase; padding-bottom: 21.44px; border-bottom: 3px solid var(--dl-green-light);
}
body.path-contact header[role="banner"] > .container::after {
  content: "Reach out to one of our experts to amplify your security.";
  display: block; max-width: 1200px; margin-top: 40px;
  font-family: "Hind", sans-serif; font-size: 60px; line-height: 69px; font-weight: 700; color: #fff;
}

/* Form */
body.path-contact main form.contact-form { max-width: 700px; margin: 80px auto; padding: 0 16px; box-sizing: content-box; font-family: "Hind", sans-serif; }
body.path-contact main form.contact-form .form-item { margin: 16px 0; }
body.path-contact main form.contact-form label {
  display: block; font-size: 18px; line-height: 21px; font-weight: 700; color: #000; padding-bottom: 8px; margin: 0;
}
body.path-contact main form.contact-form label.form-required::after {
  content: "*"; color: #e62600; margin: 0 0.3em; font-size: 16px; vertical-align: super; line-height: 0;
}
body.path-contact main form.contact-form input[type="text"],
body.path-contact main form.contact-form input[type="email"],
body.path-contact main form.contact-form textarea {
  display: block; width: 100%; box-sizing: border-box;
  border: 1px solid #ccc; border-radius: 0; background: #fff; color: #000;
  padding: 8px 12px; font-size: 16px; line-height: 26px; font-family: inherit;
}
body.path-contact main form.contact-form input[type="text"],
body.path-contact main form.contact-form input[type="email"] { height: 44px; }
body.path-contact main form.contact-form textarea { height: 146px; resize: vertical; }
body.path-contact main form.contact-form input:focus,
body.path-contact main form.contact-form textarea:focus { outline: 2px solid var(--dl-navy); outline-offset: 0; }
body.path-contact main form.contact-form .form-actions { margin: 16px 0; }
body.path-contact main form.contact-form input[type="submit"] {
  display: block; width: 100%; height: 47px; cursor: pointer;
  background: var(--dl-coral); color: #fff; border: 1px solid #ccc; border-radius: 0;
  padding: 8px 12px; font-family: "Hind", sans-serif; font-size: 18px; font-weight: 700;
}
body.path-contact main form.contact-form input[type="submit"]:hover { background: var(--dl-coral-hover); }

/* =====================================================================
   Mobile "cheeseburger" menu (built by Global JS). Live breakpoint: 69em.
   ===================================================================== */
.dl-burger, .dl-mm, .dl-mm-backdrop { display: none; }
@media (max-width: 68.99em) {
  #block-mercury-dl-main-menu { display: none; }
  .dl-burger {
    display: block; position: relative; width: 55px; height: 40px; min-width: 40px;
    margin-left: auto; padding: 0; border: 0; background: transparent; cursor: pointer;
  }
  .dl-burger span { position: absolute; left: 0; width: 55px; height: 3px; background: var(--dl-navy); transition: width 0.25s; }
  .dl-burger span:nth-child(1) { top: 8px; }
  .dl-burger span:nth-child(2) { top: 19px; }
  .dl-burger span:nth-child(3) { top: 30px; }
  .dl-burger:focus-visible { outline: 2px solid var(--dl-navy); outline-offset: 4px; }

  .dl-mm-backdrop { display: block; position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, 0); pointer-events: none; transition: background-color 0.25s; }
  .dl-mm-backdrop--open { background: rgba(0, 0, 0, 0.5); pointer-events: auto; }
  .dl-mm {
    display: block; position: fixed; top: 0; left: 0; z-index: 201;
    width: 350px; max-width: 100%; height: 100vh; overflow-y: auto; box-sizing: border-box;
    padding: 0 0 150px 75px; background: #fff; color: #000;
    transform: translateX(-100%); transition: transform 0.3s ease; visibility: hidden;
    font-family: "Hind", sans-serif;
  }
  .dl-mm--open { transform: translateX(0); visibility: visible; }
  body.dl-mm-active { overflow: hidden; overscroll-behavior-y: contain; }
  .dl-mm__close {
    position: absolute; top: 10px; left: 0; width: 75px; height: 65px;
    display: flex; align-items: center; justify-content: center; border: 0; background: transparent; cursor: pointer;
  }
  .dl-mm__close svg { width: 50px; height: 50px; fill: var(--dl-navy); }
  .dl-mm__list, .dl-mm__sub { list-style: none; margin: 0; padding: 0; }
  .dl-mm__item { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid #dfdfec; font-size: 18px; }
  .dl-mm__link {
    flex: 1 0 auto; max-width: calc(100% - 40px); min-height: 40px; display: flex; align-items: center;
    padding: 1em 12px; color: #000; text-decoration: none; font-size: 18px; line-height: 1.2;
  }
  .dl-mm__link:hover, .dl-mm__link:focus-visible, .dl-mm__link[aria-current="page"] { text-decoration: underline; color: #000; }
  .dl-mm__toggle {
    position: relative; width: 40px; min-height: 40px; align-self: stretch;
    border: 0; background: transparent; cursor: pointer;
  }
  /* Chevron (two 2x8px bars) -> X when expanded, like cheeseburger_menu */
  .dl-mm__toggle::before, .dl-mm__toggle::after {
    content: ""; position: absolute; top: calc(50% - 4px); width: 2px; height: 8px; background: #000; transition: all 0.35s ease;
  }
  .dl-mm__toggle::before { left: 16px; transform: rotate(-45deg); }
  .dl-mm__toggle::after { left: 21px; transform: rotate(45deg); }
  .dl-mm__toggle[aria-expanded="true"]::before,
  .dl-mm__toggle[aria-expanded="true"]::after { left: 19px; height: 14px; top: calc(50% - 7px); }
  .dl-mm__toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
  .dl-mm__toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }
  .dl-mm__sub { flex: 1 0 100%; background: rgba(0, 0, 0, 0.1); padding-left: 12px; }
  .dl-mm__sub li { border-bottom: 1px solid #dfdfec; }
  .dl-mm__sub li:last-child { border-bottom: 0; }
  .dl-mm__link--sub { max-width: 100%; }
}

/* =====================================================================
   RESPONSIVE (tablet / mobile) – mirrors datalockcg.com breakpoints:
   h1 36 -> 40 (>=650px) -> 60 (>=1024px); .layout h2 36 -> 40 (>=650) -> 60 dividers (>=1024);
   kicker 24 -> 32 (>=650); CTA buttons stack < 640px; card grids 2-up 640–1103px, 1-up < 640px.
   ===================================================================== */
@media (max-width: 1023.98px) {
  /* Banner titles (Canvas heroes, Basic page/blog/contact banners) */
  main section.cq-full h1.text-background,
  body.page-node-type-page header[role="banner"] > .container > h1,
  body.page-node-type-blog header[role="banner"] > .container > h1 { font-size: 40px; line-height: 46px; }
  main section.cq-full h1.text-background { margin-top: 0.67em; }
  body.path-contact header[role="banner"] > .container::after { font-size: 40px; line-height: 46px; margin-top: 0.67em; }
  /* Divider headings + section/CTA/content h2 */
  section header > h2.text-primary.text-center,
  body.page-node-type-page main article h2.text-align-center,
  body.page-node-type-blog main article h2.text-align-center { font-size: 40px; line-height: 46px; }
  /* Hero heights follow content (no viewport-height sizing) */
  main section.cq-full.min-h-\[500px\],
  main section.cq-full.md\:min-h-\[400px\] { height: auto; max-height: none; }
}
@media (max-width: 649.98px) {
  main section.cq-full h1.text-background,
  body.page-node-type-page header[role="banner"] > .container > h1,
  body.page-node-type-blog header[role="banner"] > .container > h1 { font-size: 36px; line-height: 41.4px; }
  body.path-contact header[role="banner"] > .container::after { font-size: 36px; line-height: 41.4px; }
  /* Kickers 24px */
  section.cq-full div:has(+ h1.text-background) > p,
  body.path-contact header[role="banner"] > .container > h1,
  body.page-node-type-blog header[role="banner"] > .container > h1::before,
  body.page-node-type-page header[role="banner"] > .container:has(nav a[href="/industries-served"]) > h1::before { font-size: 24px; line-height: 27.6px; }
  body.page-node-type-blog header[role="banner"] > .container > h1::before,
  body.page-node-type-page header[role="banner"] > .container:has(nav a[href="/industries-served"]) > h1::before { margin-bottom: 0.67em; }
  /* .layout h2 = 36px */
  section header > h2.text-primary.text-center,
  body.page-node-type-page main article h2.text-align-center,
  body.page-node-type-blog main article h2.text-align-center,
  section.bg-primary.text-primary-foreground h2,
  main h2.text-left.text-primary,
  main .grid.md\:grid-cols-2 > .flex-col > h2.text-center.text-primary,
  body.page-node-type-page main article h2:not(.text-align-center),
  body.page-node-type-blog main article h2:not(.text-align-center) { font-size: 36px; line-height: 41.4px; }
  section header > h2.text-primary.text-center,
  body.page-node-type-page main article h2.text-align-center,
  body.page-node-type-blog main article h2.text-align-center { column-gap: 1rem; }
  /* Banner text block: live padding 80px 5% */
  main section.cq-full > .container,
  body.page-node-type-page header[role="banner"] > .container,
  body.page-node-type-blog header[role="banner"] > .container,
  body.path-contact header[role="banner"] > .container { padding-left: 5%; padding-right: 5%; }
}
/* Hero CTA buttons stack full width below 640px (live .datalock-banner__cta) */
@media (max-width: 639.98px) {
  main section.cq-full h1.text-background + div { flex-direction: column; align-items: stretch; width: 100%; row-gap: 20px; }
  main section.cq-full h1.text-background + div > a { width: 100%; justify-content: center; }
  section.bg-primary.text-primary-foreground > .relative.flex-col { padding-block: 80px; }
}
/* Homepage card grids (Mercury cards): 1-up < 640px, 2-up 640–1103px (live layout regions) */
@media (max-width: 68.99em) {
  main .grid:has(> div.bg-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  main .grid:has(> div.bg-card:nth-child(4)) > div.bg-card { max-width: 350px; }
}
@media (max-width: 39.99em) {
  main .grid:has(> div.bg-card) { grid-template-columns: minmax(0, 1fr); }
  main div.bg-card,
  main .grid:has(> div.bg-card:nth-child(4)) > div.bg-card { width: 100%; max-width: 350px; }
}
@media (max-width: 1023.98px) {
  main section.cq-full.min-h-\[500px\], main section.cq-full.md\:min-h-\[400px\] { min-height: 0; }
}
@media (max-width: 68.99em) {
  main .grid:has(> div.bg-card) { column-gap: 0; justify-items: center; }
  main .grid:has(> div.bg-card) > div.bg-card { width: 95%; max-width: 350px; }
}
@media (max-width: 39.99em) {
  main .grid:has(> div.bg-card) > div.bg-card { width: 100%; max-width: 350px; }
}
/* Inner-page (ribbon) banners keep live's 350px minimum at every width */
main section.cq-full.md\:min-h-\[400px\] { min-height: 350px; }
/* Article column: region already has 16px gutters on small screens (live text = 358px at 390) */
@media (max-width: 1087.98px) {
  body.page-node-type-page main .region-content > article,
  body.page-node-type-blog main .region-content > article { padding-left: 0; padding-right: 0; }
}
@media (max-width: 1087.98px) {
  body.page-node-type-page main article h2.text-align-center,
  body.page-node-type-blog main article h2.text-align-center { width: 100%; margin-left: 0; margin-right: 0; }
}

/* =====================================================================
   Image + text 50/50 section ("Transform Your Security") – live .layout--twocol-section
   at every width: layout 95% of viewport; < 640px stacked (img centred, max 480px,
   text padded 24px); >= 640px two equal halves (img centred w/ 40px side padding,
   max 480px; text padded 24px, top-aligned).
   ===================================================================== */
main .container:has(.grid > figure + div > h2.text-left.text-primary) { max-width: none; padding-inline: 0; }
main .container:has(.grid > figure + div > h2.text-left.text-primary) > div { width: 95%; max-width: none; margin-inline: auto; }
main .grid:has(> figure + div > h2.text-left.text-primary) {
  grid-template-columns: minmax(0, 1fr); column-gap: 0; row-gap: 16px; align-items: start;
}
main .grid:has(> figure + div > h2.text-left.text-primary) > figure { margin: 0; width: 100%; }
main .grid:has(> figure + div > h2.text-left.text-primary) > figure > div { width: 100%; max-width: 480px; margin-inline: auto; }
main .grid:has(> figure + div > h2.text-left.text-primary) > div:has(> h2) {
  align-self: start; justify-self: stretch; max-width: none; width: 100%;
  padding-inline: 24px; box-sizing: border-box;
}
@media (min-width: 40em) {
  main .grid:has(> figure + div > h2.text-left.text-primary) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main .grid:has(> figure + div > h2.text-left.text-primary) > figure { padding-inline: 40px; box-sizing: border-box; }
}

/* Leadership 50/50 (About): same live twocol rules – 95% layout, 2-up from 40em,
   headshot centred w/ 40px side padding (max 400px), name + bio padded 24px. */
main .container:has(.grid.md\:grid-cols-2 > .flex-col > figure:only-of-type) { max-width: none; padding-inline: 0; }
main .container:has(.grid.md\:grid-cols-2 > .flex-col > figure:only-of-type) > div { width: 95%; max-width: none; margin-inline: auto; }
main .grid.md\:grid-cols-2:has(> .flex-col > figure:only-of-type) { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
main .grid.md\:grid-cols-2 > .flex-col:has(> figure:only-of-type) { padding-inline: 0; align-items: stretch; }
main .grid.md\:grid-cols-2 > .flex-col > figure:only-of-type { width: 100%; max-width: none; margin: 0; box-sizing: border-box; }
main .grid.md\:grid-cols-2 > .flex-col > figure:only-of-type > div { width: 100%; max-width: 400px; margin-inline: auto; }
main .grid.md\:grid-cols-2 > .flex-col:has(> figure:only-of-type) > h2,
main .grid.md\:grid-cols-2 > .flex-col:has(> figure:only-of-type) > div.font-body { width: 100%; max-width: none; padding-inline: 24px; box-sizing: border-box; }
@media (min-width: 40em) {
  main .grid.md\:grid-cols-2:has(> .flex-col > figure:only-of-type) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main .grid.md\:grid-cols-2 > .flex-col > figure:only-of-type { padding-inline: 40px; }
}
@media (max-width: 1023.98px) {
  main .grid.md\:grid-cols-2 > .flex-col:has(> figure:only-of-type) > h2 { margin-top: 0; }
}
@media (max-width: 1023.98px) {
  main .grid.md\:grid-cols-2 > .flex-col:has(> figure:only-of-type) > h2.text-center.text-primary { margin-top: 0; }
}
