html:has(body:is(.home, .page-id-2849, .page-id-2855) .bpmc-preview) {
  container-type: inline-size;
}
.bpmc-preview {
  --blue: #1b48a6;
  --navy: #162851;
  --coal: #212223;
  --red: #f4030c;
  --paper: #f3f5f8;
  --gutter: 12px;
  --heading-xl: 2rem;
  --heading-lg: 1.55rem;
  --heading-md: 1.2rem;
  --section-space: 36px;
  --column-gap: 16px;
  color: var(--coal);
}
body:is(.home, .page-id-2849):has(.bpmc-sales) .hero-section[data-type="type-1"] { display: none; }
.bpmc-preview, .bpmc-preview * { box-sizing: border-box; }
.bpmc-preview > .wp-block-group { margin-block: 0; }
.bpmc-preview .bpmc-inner {
  width: calc(100% - 2 * var(--gutter));
  max-width: 1440px;
  margin-inline: auto;
}
.bpmc-preview .wp-block-column { min-width: 0; overflow-wrap: anywhere; }
.bpmc-preview .wp-block-button { max-width: 100%; }
.bpmc-preview .wp-block-button__link { overflow-wrap: anywhere; }
.bpmc-preview h1, .bpmc-preview h2, .bpmc-preview h3 { color: inherit; line-height: 1.22; }
.bpmc-preview h1 { font-size: var(--heading-xl); white-space: pre-line; margin: .25em 0; }
.bpmc-preview h2 { font-size: var(--heading-lg); margin: 0 0 .45em; }
.bpmc-preview h3 { font-size: var(--heading-md); margin: 0 0 .25em; }
.bpmc-preview p { line-height: 1.75; }
.bpmc-preview .bpmc-hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(530px, 70vh, 740px); color: #fff; background: var(--navy); }
.bpmc-preview .bpmc-hero > figure, .bpmc-preview .bpmc-hero::before { position: absolute; inset: 0; margin: 0; }
.bpmc-preview .bpmc-hero > figure { z-index: -2; }
.bpmc-preview .bpmc-hero > figure img { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
.bpmc-preview .bpmc-hero::before { content: ""; z-index: -1; background: linear-gradient(90deg, rgba(13, 22, 44, .95), rgba(13, 22, 44, .74) 43%, rgba(13, 22, 44, .08) 88%); }
.bpmc-preview .bpmc-hero .bpmc-inner { padding-block: 70px; }
.bpmc-preview .bpmc-lede { max-width: 490px; font-size: var(--lede-size, 1rem); margin-bottom: 1.6rem; }
.bpmc-preview .bpmc-kicker { font-weight: 700; margin: 0 0 .8rem; display: flex; align-items: center; gap: .65rem; }
.bpmc-preview .bpmc-kicker::before { content: ""; display: block; width: 24px; height: 3px; background: var(--red); }
.bpmc-preview .bpmc-caption { position: absolute; right: 1rem; bottom: .75rem; padding: .15em .6em; background: rgba(13, 22, 44, .78); margin: 0; font-size: .75rem; }
.bpmc-preview .wp-block-buttons { gap: .65rem; margin-block: 0; }
.bpmc-preview .wp-block-button__link { background: var(--blue); color: #fff; border: 1px solid transparent; border-radius: 4px; padding: .72em 1.1em; font-weight: 700; }
.bpmc-preview .wp-block-button.is-style-outline .wp-block-button__link { color: inherit; background: transparent; border-color: currentColor; }
.bpmc-preview .wp-block-button__link:hover { background: #143781; color: #fff; }
.bpmc-preview .wp-block-button__link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.bpmc-preview .bpmc-proof { background: var(--navy); color: #fff; padding-block: 1.6rem; }
.bpmc-preview .wp-block-columns { margin-bottom: 0; gap: var(--column-gap); }
.bpmc-preview .bpmc-stat { border-inline-start: 2px solid #608ae0; padding-inline-start: 1rem; }
.bpmc-preview .bpmc-stat p { margin: 0; color: #d5e0f7; }
.bpmc-preview .bpmc-section, .bpmc-preview .bpmc-about, .bpmc-preview .bpmc-contact { padding-block: var(--section-space); }
.bpmc-preview .bpmc-section { background: var(--paper); }
.bpmc-preview .bpmc-intro { margin-bottom: 1.6rem; }
.bpmc-preview .bpmc-card { background: #fff; border: 1px solid #dce2eb; overflow: hidden; border-radius: 6px; height: 100%; }
.bpmc-preview .bpmc-card figure { margin: 0; }
.bpmc-preview .bpmc-card img { display: block; width: 100%; height: auto; aspect-ratio: 2/1; object-fit: cover; }
.bpmc-preview .bpmc-card-copy { padding: var(--card-padding, 18px); }
.bpmc-preview .bpmc-note { font-size: .85rem; margin: 1rem 0 0; color: #525c69; }
.bpmc-preview .bpmc-info { height: 100%; border-top: 2px solid var(--blue); padding-top: 1.4rem; }
.bpmc-preview .bpmc-contact { background: var(--navy); color: #fff; }
.bpmc-preview .bpmc-contact p:not(.bpmc-kicker) { max-width: 600px; }
/* Mobile S: up to 320px. */
@media (width <= 320px) {
  .bpmc-preview .bpmc-hero .wp-block-buttons > .wp-block-button,
  .bpmc-preview .bpmc-hero .wp-block-button__link { width: 100%; }
}
/* Mobile M: 321px through 375px. */
@media (320px < width <= 375px) {
  .bpmc-preview { --gutter: 16px; --heading-xl: 2.15rem; --section-space: 40px; }
}
/* Mobile L: 376px through 425px. */
@media (375px < width <= 425px) {
  .bpmc-preview { --gutter: 20px; --heading-xl: 2.35rem; --heading-lg: 1.7rem; --section-space: 44px; }
}
/* Tablet: 426px through 768px. */
@media (425px < width <= 768px) {
  .bpmc-preview { --gutter: 24px; --heading-xl: 2.75rem; --heading-lg: 2rem; --section-space: 56px; --card-padding: 24px; }
}
@media (width <= 768px) {
  .bpmc-preview .wp-block-columns { flex-direction: column; }
  .bpmc-preview .bpmc-hero::before { background: linear-gradient(90deg, rgba(13, 22, 44, .88), rgba(13, 22, 44, .52)); }
  .bpmc-preview .bpmc-about .wp-block-columns { gap: 2rem; }
}

.bpmc-preview .bpmc-icon { margin: 0 0 .45rem; font-size: 1.5rem; line-height: 1; color: #a9c3fa; }

/* Laptop: 769px through 1024px. */
@media (768px < width <= 1024px) {
  .bpmc-preview { --gutter: 32px; --heading-xl: 3.25rem; --heading-lg: 2.2rem; --heading-md: 1.4rem; --section-space: 64px; --column-gap: 22px; --card-padding: 24px; --lede-size: 1.12rem; }
}
/* WordPress stacks columns through 781px. Keep the laptop layout from 769px. */
@media (768px < width <= 781px) {
  .bpmc-preview .wp-block-columns:not(.is-not-stacked-on-mobile) { flex-wrap: nowrap !important; }
  .bpmc-preview .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex: 1 1 0 !important; }
}
/* Laptop L: 1025px through 1440px. */
@media (1024px < width <= 1440px) {
  .bpmc-preview { --gutter: 48px; --heading-xl: 4.25rem; --heading-lg: 2.6rem; --heading-md: 1.55rem; --section-space: 80px; --column-gap: 28px; --card-padding: 28px; --lede-size: 1.2rem; }
}
/* Desktop: full-width sections with fixed maximum content width and type scale. */
@media (width > 1440px) {
  .bpmc-preview {
    --gutter: 0px;
    --heading-xl: 5rem;
    --heading-lg: 3rem;
    --heading-md: 1.7rem;
    --section-space: 92px;
    --column-gap: 34px;
    --card-padding: 32px;
    --lede-size: 1.22rem;
  }
  body .entry-content > .bpmc-preview.alignfull {
    width: 100cqw;
    max-width: none;
    margin-inline: calc((100% - 100cqw) / 2);
  }
}

/* Sales homepage preview */
.bpmc-sales [id^="bpmc-"] { scroll-margin-top: 7rem; }
.bpmc-sales .bpmc-hero .bpmc-lede { max-width: 40ch; }
.bpmc-sales .bpmc-hero-hint { margin: 1.05rem 0 0; color: #e1e9f9; font-size: .9rem; max-width: 52ch; }
.bpmc-sales .bpmc-line-button .wp-block-button__link {
  background: #08794c;
  color: #fff;
}
.bpmc-sales .bpmc-line-button .wp-block-button__link:hover { background: #065c3a; color: #fff; }
.bpmc-sales :is(.bpmc-hero, .bpmc-sales-contact) .is-style-outline .wp-block-button__link { color: #fff; }
.bpmc-sales .bpmc-card { display: flex; flex-direction: column; }
.bpmc-sales .bpmc-card-copy { display: flex; flex-direction: column; flex: 1; }
.bpmc-sales .bpmc-card-copy .wp-block-buttons { margin-top: auto; }
.bpmc-sales .bpmc-card-copy ul { margin-block: 0 1.25rem; padding-inline-start: 1.2rem; }
.bpmc-sales .bpmc-card-copy li + li { margin-top: .45rem; }
.bpmc-sales .bpmc-gallery-follow { padding-top: 0; }
.bpmc-sales .bpmc-step, .bpmc-sales .bpmc-area {
  height: 100%;
  padding: var(--card-padding, 18px);
  border: 1px solid #dce2eb;
  border-radius: 6px;
  background: #fff;
}
.bpmc-sales .bpmc-step-index {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  margin: 0 0 .9rem;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.bpmc-sales :is(.bpmc-step, .bpmc-area) p:last-child { margin-bottom: 0; }
.bpmc-sales .bpmc-quote-section .wp-block-buttons { margin-top: 1.5rem; }
.bpmc-sales .bpmc-company-section .wp-block-columns { align-items: center; }
.bpmc-sales .bpmc-company-photo figure { margin: 0; }
.bpmc-sales .bpmc-company-photo img { display: block; width: 100%; height: auto; border-radius: 6px; }
.bpmc-sales .bpmc-faq { max-width: 860px; }
.bpmc-sales .bpmc-faq details { border-bottom: 1px solid #dce2eb; }
.bpmc-sales .bpmc-faq details:first-child { border-top: 1px solid #dce2eb; }
.bpmc-sales .bpmc-faq summary { padding-block: 1rem; cursor: pointer; font-weight: 700; color: var(--navy); }
.bpmc-sales .bpmc-faq details p { margin: 0 0 1.1rem; }
.bpmc-sales .bpmc-sales-contact .wp-block-columns { align-items: center; }
.bpmc-sales .bpmc-contact-details { border: 1px solid #7085ad; border-radius: 6px; padding: var(--card-padding, 18px); }
.bpmc-sales .bpmc-contact-details h3 { margin-bottom: .75rem; }
@media (width <= 425px) {
  .bpmc-sales :is(.bpmc-hero, .bpmc-quote-section, .bpmc-contact-copy) .wp-block-button { width: 100%; }
  .bpmc-sales :is(.bpmc-hero, .bpmc-quote-section, .bpmc-contact-copy) .wp-block-button__link { width: 100%; }
}

/* Preview telephone button icon */
@supports (mask-image: url("")) {
  .bpmc-preview .wp-block-button__link[href^="tel:"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
  }
  .bpmc-preview .wp-block-button__link[href^="tel:"]::before {
    content: "";
    display: block;
    flex: 0 0 1.2em;
    width: 1.2em;
    height: 1.2em;
    background-color: currentColor;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M22%2016.9v3a2%202%200%200%201-2.2%202%2019.8%2019.8%200%200%201-8.6-3.1%2019.5%2019.5%200%200%201-6-6%2019.8%2019.8%200%200%201-3.1-8.7A2%202%200%200%201%204.1%202h3a2%202%200%200%201%202%201.7%2012.8%2012.8%200%200%200%20.7%202.8%202%202%200%200%201-.5%202.1L8%209.9a16%2016%200%200%200%206%206l1.3-1.3a2%202%200%200%201%202.1-.5%2012.8%2012.8%200%200%200%202.8.7A2%202%200%200%201%2022%2016.9z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  }
}

/* LINE contact button in the homepage preview */
.bpmc-sales .bpmc-line-contact .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding-block: .35rem;
  background: #fff;
  color: var(--navy);
}
.bpmc-sales .bpmc-line-contact .wp-block-button__link:hover {
  background: #eef8f1;
  color: var(--navy);
}
.bpmc-sales .bpmc-line-contact .wp-block-button__link::before {
  content: "";
  flex: 0 0 40px;
  height: 40px;
  background: url("./bpmc-line-brand-icon.png") center / contain no-repeat;
}

/* Compact FAQ and contact card in the sales homepage preview. */
.bpmc-sales .bpmc-faq-section { background: #fff; }
.bpmc-sales .bpmc-faq-layout.wp-block-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--column-gap);
}
.bpmc-sales .bpmc-faq-layout > .wp-block-column { min-width: 0; }
.bpmc-sales .bpmc-faq-layout h2 { font-size: min(var(--heading-lg), 2.5rem); margin: 0 0 1.15rem; }
.bpmc-sales .bpmc-faq-layout .bpmc-faq { max-width: none; margin: 0; }
.bpmc-sales .bpmc-faq-layout .bpmc-faq details {
  margin: 0;
  border-color: #ccd7e7;
}
.bpmc-sales .bpmc-faq-layout .bpmc-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  min-height: 54px;
  padding: .65rem .25rem .65rem 0;
  list-style: none;
  line-height: 1.5;
}
.bpmc-sales .bpmc-faq-layout .bpmc-faq summary::-webkit-details-marker { display: none; }
.bpmc-sales .bpmc-faq-layout .bpmc-faq summary::after {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-right: .25rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.bpmc-sales .bpmc-faq-layout .bpmc-faq details[open] > summary::after { transform: rotate(225deg); }
.bpmc-sales .bpmc-faq-layout .bpmc-faq summary:hover { color: var(--blue); }
.bpmc-sales .bpmc-faq-layout .bpmc-faq summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.bpmc-sales .bpmc-faq-layout .bpmc-faq details > p {
  margin: 0;
  padding: 0 1.75rem .9rem 0;
  color: #34435c;
}
.bpmc-sales .bpmc-faq-contact {
  display: grid;
  grid-template: "intro" auto "actions" auto "qr" auto / minmax(0, 1fr);
  gap: 1rem;
  padding: var(--card-padding, 18px);
  border: 1px solid #cfdbef;
  border-radius: 8px;
  background: #eaf1fc;
  color: var(--navy);
}
.bpmc-sales .bpmc-faq-contact-intro { grid-area: intro; margin: 0; }
.bpmc-sales .bpmc-faq-contact-intro .bpmc-kicker { margin: 0 0 .55rem; font-size: .875rem; }
.bpmc-sales .bpmc-faq-contact-intro h3 { margin: 0 0 .45rem; }
.bpmc-sales .bpmc-faq-contact-intro p:last-child { margin: 0; color: #34435c; }
.bpmc-sales .bpmc-faq-contact > .bpmc-faq-qr {
  grid-area: qr;
  justify-self: center;
  width: min(100%, 150px);
  margin: 0;
  text-align: center;
}
.bpmc-sales .bpmc-faq-qr img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 6px;
}
.bpmc-sales .bpmc-faq-qr figcaption { margin: .35rem 0 0; color: #34435c; font-size: .85rem; }
.bpmc-sales .bpmc-faq-contact > .wp-block-buttons {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 172px), 1fr));
  gap: .6rem;
  margin: 0;
}
.bpmc-sales .bpmc-faq-contact .wp-block-button { margin: 0; min-width: 0; }
.bpmc-sales .bpmc-faq-contact .wp-block-button__link { width: 100%; height: 100%; min-height: 54px; }

.bpmc-sales .wp-block-button > a.wp-block-button__link[href^="https://line.me/"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding-block: .35rem;
  background: #06c755;
  border-color: transparent;
  color: #102219;
}
.bpmc-sales .wp-block-button > a.wp-block-button__link[href^="https://line.me/"]:hover { background: #05b44d; color: #102219; }
.bpmc-sales .wp-block-button > a.wp-block-button__link[href^="https://line.me/"]::before {
  content: "";
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  background: url("./bpmc-line-brand-icon.png") center / contain no-repeat;
}
@supports (mask-image: url("")) {
  .bpmc-sales .wp-block-button__link[href^="tel:"]::before {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
  }
}
@media (width >= 769px) {
  .bpmc-sales .bpmc-faq-layout.wp-block-columns {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  }
  .bpmc-sales .bpmc-faq-layout > .wp-block-column {
    align-self: center;
  }
}
@media (width >= 1025px) {
  .bpmc-sales .bpmc-faq-contact {
    grid-template: "intro qr" auto "actions actions" auto / minmax(0, 1fr) minmax(105px, 32%);
    align-items: center;
  }
}


/* Separate the final sales section from the navy footer with a warm neutral. */
.bpmc-sales .bpmc-sales-contact {
  border-block-start: 1px solid #e4dfd4;
  background: #f5f2eb;
  color: var(--navy);
}
.bpmc-sales .bpmc-sales-contact p:not(.bpmc-kicker) { color: #34435c; }
.bpmc-sales .bpmc-sales-contact .bpmc-contact-details {
  border-color: #d3deec;
  background: #fff;
}
.bpmc-sales .bpmc-sales-contact .bpmc-contact-details .is-style-outline .wp-block-button__link {
  color: var(--blue);
  border-color: #9fb6db;
}
.bpmc-sales .bpmc-sales-contact .bpmc-contact-details .is-style-outline .wp-block-button__link:hover {
  background: #eaf1fc;
  color: var(--navy);
}
.bpmc-sales :is(.bpmc-faq-contact, .bpmc-sales-contact) .wp-block-button__link[href^="tel:"] {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
}
.bpmc-sales :is(.bpmc-faq-contact, .bpmc-sales-contact) .wp-block-button__link[href^="tel:"]:hover {
  background: #143781;
}

/* Blocksy uses ::before as a hidden button effect; contact buttons use it as an icon. */
.bpmc-preview .wp-block-button > .wp-block-button__link[href^="tel:"]::before,
.bpmc-sales .wp-block-button > .wp-block-button__link[href^="https://line.me/"]::before {
  display: block;
  position: static;
  inset: auto;
  z-index: auto;
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  transition: none;
  pointer-events: none;
}

/* Matched contact buttons for the sales homepage. */
.bpmc-sales .wp-block-buttons:has(> .wp-block-button > a[href^="https://line.me/"]):has(> .wp-block-button > a[href^="tel:"]) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.75rem), 1fr));
  align-items: stretch;
  gap: .65rem;
  width: min(100%, 27rem);
}
.bpmc-sales .bpmc-faq-contact > .wp-block-buttons:has(> .wp-block-button > a[href^="https://line.me/"]):has(> .wp-block-button > a[href^="tel:"]) {
  width: 100%;
}
.bpmc-sales .wp-block-button > a.wp-block-button__link:is([href^="https://line.me/"], [href^="tel:"]) {
  width: 100%;
  min-height: 54px;
  height: 100%;
  padding: .65rem .9rem;
  border-radius: 8px;
  line-height: 1.35;
  text-align: center;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.bpmc-sales .wp-block-button > a.wp-block-button__link[href^="https://line.me/"] {
  border-color: transparent;
  background-color: #077b3b;
  color: #fff;
}
.bpmc-sales .wp-block-button > a.wp-block-button__link[href^="https://line.me/"]:is(:hover, :active) {
  background-color: #066531;
  color: #fff;
}
.bpmc-sales .wp-block-button > a.wp-block-button__link[href^="https://line.me/"]::before {
  flex-basis: 24px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: url("./bpmc-line-contact-mark.svg") center / contain no-repeat;
}
.bpmc-sales .wp-block-button > a.wp-block-button__link[href^="tel:"] {
  border: 1px solid #a9bcdf;
  background: #edf3ff;
  color: #162851;
}
.bpmc-sales .wp-block-button > a.wp-block-button__link[href^="tel:"]:is(:hover, :active) {
  border-color: #7695ca;
  background: #e0eaff;
  color: #162851;
}
@media (width <= 425px) {
  .bpmc-sales .wp-block-buttons:has(> .wp-block-button > a[href^="https://line.me/"]):has(> .wp-block-button > a[href^="tel:"]) {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bpmc-sales .wp-block-button > a.wp-block-button__link:is([href^="https://line.me/"], [href^="tel:"]) {
    transition: none;
  }
}


/* Portrait project highlights on the sales homepage. */
.bpmc-sales .bpmc-project-highlights { background: #fff; color: var(--navy); }
.bpmc-sales .bpmc-project-grid.wp-block-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--column-gap);
}
.bpmc-sales .bpmc-project-grid > .wp-block-column {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr);
  align-content: start;
  gap: 1rem;
  margin: 0;
}
.bpmc-sales .bpmc-project-grid figure { margin: 0; }
.bpmc-sales .bpmc-project-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
}
.bpmc-sales .bpmc-project-copy h3 { margin: 0 0 .45rem; }
.bpmc-sales .bpmc-project-copy p { margin: 0; color: #34435c; line-height: 1.65; }
.bpmc-sales .bpmc-project-highlights .wp-block-buttons { margin-top: 1.75rem; }
@media (width <= 320px) {
  .bpmc-sales .bpmc-project-grid > .wp-block-column { grid-template-columns: minmax(0, 1fr); }
}
@media (width >= 426px) {
  .bpmc-sales .bpmc-project-grid.wp-block-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bpmc-sales .bpmc-project-grid > .wp-block-column { grid-template-columns: minmax(0, 1fr); }
}
@media (width >= 1025px) {
  .bpmc-sales .bpmc-project-grid.wp-block-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* Give the two homepage albums the full section width on larger screens. */
@media (min-width: 769px) {
  .bpmc-sales .bpmc-gallery-section .bpmc-gallery {
    width: 100%;
    max-width: none;
  }
  .bpmc-sales .bpmc-gallery-section .bpmc-gallery__rail {
    grid-template-columns: var(--gallery-arrow-width) minmax(0, 1fr) var(--gallery-arrow-width);
    column-gap: clamp(6px, 1vw, 14px);
  }
  .bpmc-sales .bpmc-gallery-section .bpmc-gallery__track img {
    aspect-ratio: 3 / 4;
    object-fit: contain;
  }
  .bpmc-sales .bpmc-gallery-follow .bpmc-gallery__track img {
    aspect-ratio: 4 / 3;
  }
}

/* Reserve the mobile rail for photos and group navigation beneath the caption. */
@media (max-width: 768px) {
  .bpmc-sales .bpmc-gallery-section .bpmc-gallery__rail {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .bpmc-sales .bpmc-gallery-section .bpmc-gallery__track { grid-area: 1 / 1; }
  .bpmc-sales .bpmc-gallery-section .bpmc-gallery__track img {
    aspect-ratio: 3 / 4;
    object-fit: contain;
  }
  .bpmc-sales .bpmc-gallery-follow .bpmc-gallery__track img { aspect-ratio: 4 / 3; }
  .bpmc-sales .bpmc-gallery-section .bpmc-gallery__controls:not([hidden]) {
    grid-area: 2 / 1;
    display: flex;
    justify-content: center;
    gap: 1rem;
  }
  .bpmc-sales .bpmc-gallery-section .bpmc-gallery__controls button { width: 44px; }
  .bpmc-sales .bpmc-gallery-section .bpmc-gallery__dots { margin-top: .15rem; }
}

/* Pair each proof point with a replaceable WordPress image. */
.bpmc-sales .bpmc-proof .bpmc-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: center;
  column-gap: clamp(12px, 1.4vw, 20px);
  row-gap: .3rem;
  padding-inline-start: 0;
  border: 0;
}
.bpmc-sales .bpmc-stat .bpmc-proof-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: clamp(48px, 4.4vw, 64px);
  aspect-ratio: 1;
  margin: 0;
  border-radius: 12px;
  background: #243f70;
  box-shadow: inset 0 0 0 1px #466497;
}
.bpmc-sales .bpmc-proof-icon img { display: block; width: 70%; height: auto; }
.bpmc-sales .bpmc-stat :is(h3, p) { grid-column: 2; margin: 0; }


/* Keep the core outline buttons and place the arrow next to each label. */
.bpmc-sales-services .bpmc-card-copy .wp-block-button {
  width: min(100%, 17rem);
}
.bpmc-sales-services .bpmc-card-copy .wp-block-button > a.wp-block-button__link {
  width: 100%;
  min-height: 54px;
  padding: .65rem .9rem;
  border-radius: 8px;
  line-height: 1.35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
}
.bpmc-sales-services .bpmc-card-copy .wp-block-button__link::after {
  content: "";
  display: block;
  position: static;
  width: 1em;
  height: 1em;
  flex: none;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13 13 3M4 3h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Gutenberg project-type cards on service, area and regional pages. */
.bpmc-preview .bpmc-project-types {background:#f5f7fa;color:#172b49}
.bpmc-project-types .regional-type-lead {max-width:55rem;margin:0 0 1.4rem}
.bpmc-project-types .regional-type-lead h2 {scroll-margin-top:6rem}
.bpmc-project-types :is(.regional-type-grid, .bpmc-job-cards) {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.8rem,1.6vw,1.5rem)}
.bpmc-project-types .regional-type-card {margin:0;padding:clamp(1rem,1.7vw,1.5rem);background:white;border:1px solid #d6e0ee;border-radius:12px}
.bpmc-project-types .regional-type-heading {display:grid;grid-template-columns:minmax(0,1fr) clamp(4.2rem,7vw,6rem);align-items:start;gap:.85rem}
.bpmc-project-types .regional-type-heading h3 {margin:0 0 .5rem;font-size:clamp(1.18rem,1.6vw,1.5rem);color:#152b50}
.bpmc-project-types .regional-type-heading p {margin:0;color:#415269;font-size:.98rem;line-height:1.6}
.bpmc-project-types .regional-type-photo {margin:0}
.bpmc-project-types .regional-type-photo img {display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;border-radius:7px}
.bpmc-project-types .regional-type-card .regional-job-list {margin:1rem 0 0;padding:0;list-style:none}
.bpmc-project-types .regional-job-list li {margin:0;padding:.65rem 0;border-top:1px solid #e3e9ef;color:#38495e;line-height:1.55}
.bpmc-project-types .regional-job-list li:last-child {padding-bottom:0}
.bpmc-project-types .regional-job-list strong {display:block;margin-bottom:.12rem;color:#142f58}
.bpmc-project-types .regional-type-footer {display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem;padding:1rem 1.25rem;border-radius:8px;background:#e8eff8}
.bpmc-project-types .regional-type-footer p {margin:0}
.bpmc-project-types .regional-type-footer p:first-child {max-width:54rem}
.bpmc-project-types .regional-type-footer a {display:inline-block;color:#173e79;font-weight:700}
@media(max-width:900px){.bpmc-project-types :is(.regional-type-grid, .bpmc-job-cards){grid-template-columns:1fr}.bpmc-project-types .regional-type-footer{display:grid}.bpmc-project-types .regional-type-heading{grid-template-columns:1fr 4.5rem}}

