/*
Theme Name: BOFS Child
Theme URI: https://bofs-es.com
Description: BOFS Energy & Sustainability — Astra child theme implementing the d2 dark institutional design.
Author: Bytecraft Media SRL
Author URI: https://bytecraftmedia.eu
Template: astra
Version: 0.1.0
Text Domain: bofs-child
*/

/* ============ DESIGN TOKENS (exact d2-desktop-long palette) ============ */
:root {
  /* Surfaces — d2's exact elevation hierarchy (dark mode adds light with elevation) */
  --bofs-bg-deep:           #061424; /* surface — base (darkest visible) */
  --bofs-surface-lowest:    #020f1e; /* surface-container-lowest — even darker */
  --bofs-surface-low:       #0f1c2c; /* surface-container-low — d2 exact */
  --bofs-surface-1:         #132031; /* surface-container */
  --bofs-surface-2:         #1e2b3c; /* surface-container-high */
  --bofs-surface-3:         #293647; /* surface-container-highest */
  --bofs-surface-bright:    #2d3a4b; /* surface-bright */

  /* ============================================================
     PALETTE (DEFAULT = GREEN)
     These tokens are the SINGLE SOURCE OF TRUTH for accent colors.
     Override file (loaded conditionally by bofs_child_enqueue_styles):
       palette-blue.css  — flips primary to electric blue, secondary to green
     Anything that touches an accent MUST use var(--bofs-*) — no hex literals
     outside this :root block.
     ============================================================ */
  --bofs-accent:            #6dde7b; /* primary */
  --bofs-accent-light:      #6dde7b; /* alias of accent */
  --bofs-accent-deep:       #006e28; /* pressed deep */
  --bofs-accent-pale:       #89fb95; /* primary-fixed — lighter */
  --bofs-accent-darker:     #30a54a; /* on-primary-container */
  --bofs-on-accent:         #002107; /* text-on-primary button */

  --bofs-data:              #9ecaff; /* secondary */
  --bofs-data-light:        #d1e4ff; /* secondary-fixed */

  /* Text */
  --bofs-text:          #d6e3fa;
  --bofs-text-muted:    #c4c6ce;
  --bofs-text-faint:    #8e9198;

  /* Type */
  --bofs-font-display:  'Manrope', 'Inter', system-ui, sans-serif;
  --bofs-font-body:     'Inter', system-ui, sans-serif;
}

/* ============ TEXT SELECTION (primary accent on dark) ============ */
::selection {
  background-color: var(--bofs-accent);
  color:            var(--bofs-on-accent);
}
::-moz-selection {
  background-color: var(--bofs-accent);
  color:            var(--bofs-on-accent);
}

/* ============ SCROLL-TO-TOP BUTTON (Astra default → primary accent) ============ */
#ast-scroll-top,
.ast-scroll-top-icon,
button#ast-scroll-top {
  background-color: var(--bofs-accent) !important;
  color:            var(--bofs-on-accent) !important;
  border:           none !important;
  width:            44px !important;
  height:           44px !important;
  border-radius:    4px !important;
  box-shadow:       0 4px 12px rgba(0,0,0,0.4);
  transition:       background-color 0.15s ease, transform 0.15s ease;
}
#ast-scroll-top:hover,
button#ast-scroll-top:hover {
  background-color: var(--bofs-accent-pale) !important;
  transform:        translateY(-2px);
}
#ast-scroll-top svg,
#ast-scroll-top .ast-icon path,
button#ast-scroll-top svg,
button#ast-scroll-top path {
  fill:    var(--bofs-on-accent) !important;
  stroke:  var(--bofs-on-accent) !important;
}

/* ============ GLOBAL DARK SURFACE ============ */
/* Force every Astra container/wrapper to the deep navy — Stitch d2 has no
   alternating section panels, just one continuous #061424. */
html, body,
#page, .site, .hfeed,
.ast-container, .ast-container-fluid,
.site-content, .content-area, .main-navigation,
.ast-primary-header-wrap, .ast-above-header, .ast-below-header,
.entry-content, article, .post-thumbnail,
.ast-row, .ast-three-column-wrap-inner,
.ast-builder-grid-row-container,
.ast-builder-grid-row-container-inner {
  background: var(--bofs-bg-deep) !important;
}

body {
  background: var(--bofs-bg-deep) !important;
  color: var(--bofs-text);
  font-family: var(--bofs-font-body);
  font-weight: 400;
  line-height: 1.55;
}

/* Override Astra's global color tokens so its defaults map to the d2 palette. */
:root {
  --ast-global-color-0: #ffffff;  /* primary text */
  --ast-global-color-1: var(--bofs-accent-light); /* link */
  --ast-global-color-2: #ffffff;  /* headings */
  --ast-global-color-3: var(--bofs-text); /* body text */
  --ast-global-color-4: var(--bofs-text-muted);
  --ast-global-color-5: var(--bofs-bg-deep);
  --ast-global-color-6: var(--bofs-bg-deep);
  --ast-global-color-7: var(--bofs-bg-deep);
  --ast-global-color-8: var(--bofs-accent);
}

html body h1, html body h3,
html body h4, html body h5, html body h6,
html body .entry-title, html body .ast-archive-title,
html body .ast-builder-html-element h1,
html body .entry-content h1,
html body .entry-content h3, html body .entry-content h4 {
  font-family: var(--bofs-font-display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  color: #ffffff !important;
}

/* H2 — exact d2 `headline-lg` spec:
   Manrope 48px / weight 800 / line-height 1.2 / letter-spacing -0.02em
   color: text-on-surface (#d6e3fa) */
html body h2,
html body .wp-block-heading.h2,
html body .ast-builder-html-element h2,
html body .entry-content h2,
html body .wp-block-heading[class*="is-style-h2"],
html body h2.wp-block-heading {
  font-family: 'Manrope', var(--bofs-font-display) !important;
  font-size: 48px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  color: var(--bofs-text) !important; /* #d6e3fa */
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  html body h2,
  html body .entry-content h2 {
    font-size: 36px !important;
  }
}

html body .entry-content p,
html body .entry-content li {
  color: var(--bofs-text) !important;
}
html body .entry-content em {
  color: var(--bofs-text-muted) !important;
}

a {
  color: var(--bofs-accent-light);
}
a:hover, a:focus {
  color: var(--bofs-accent-pale);
}

/* ============ HEADER ============ */
.site-header,
.ast-primary-header-bar {
  background: var(--bofs-bg-deep) !important;
  border-bottom: 1px solid var(--bofs-surface-2);
}

/* ============================================================
   d2 HEADER LAYOUT — bulletproof override of Astra defaults
   Logo on far left · nav absolutely centered · CTA on far right
   ============================================================ */

/* 1. The header bar wrapper becomes a relative container at a fixed height.
      We set position:relative so the absolutely-positioned children below
      anchor to the .ast-container, not to the document.
      min-height 7rem accommodates the 220px-wide logo (~105px tall). */
.main-header-bar .ast-container,
.ast-primary-header-bar .ast-container,
.main-header-bar-wrap .ast-container {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 2.5rem !important;
  padding-right: 2.5rem !important;
  min-height: 7rem !important;
  height: auto !important;
  box-sizing: border-box !important;
}
@media (min-width: 768px) {
  .main-header-bar .ast-container,
  .ast-primary-header-bar .ast-container {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
  }
}

/* 2. Logo zone (far left) — natural flow, no positioning needed.
      Just kill any flex:1 that Astra applies which would stretch it. */
.site-header-primary-section-left,
.ast-builder-layout-element.site-header-focus-item {
  flex: 0 0 auto !important;
}

/* 3. Right section: keep visible as a flex column-filler — but its children
      (the menu + CTA) will be absolutely positioned, so its only role is to
      not collapse Astra's row layout. */
.site-header-primary-section-right {
  position: static !important;
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  height: 100% !important;
}
/* Astra's intermediate menu wrappers — strip their internal flex so they
   don't introduce zero-width layout boxes around the actual <ul>. */
.ast-builder-menu-1,
.ast-builder-menu-1.ast-builder-menu,
.ast-main-header-bar-alignment,
.main-header-bar-navigation,
.main-navigation,
#primary-site-navigation {
  position: static !important;
  display: block !important;
  width: auto !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 4. THE MENU UL — absolutely centered on the .ast-container.
      Targeting the <ul> directly because it has natural width from its items. */
ul.main-header-menu,
.ast-nav-menu.main-header-menu {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  /* Nudge left so the menu is centered in the space BETWEEN the logo and the
     right-pinned CTA (both edge-anchored), not on the full header width — keeps
     "Contact" clear of the "Request a Sustainability Assessment" button. */
  transform: translate(calc(-50% - 60px), -50%) !important;
  display: flex !important;
  flex-direction: row !important;
  /* nowrap is load-bearing: Astra sets flex-wrap:wrap, and the abs-positioned
     ul's shrink-to-fit width is capped at ~50% of the header, so the longer FR
     menu ("Perspectives", "À propos") wraps to a second row without this. */
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 1.5rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  white-space: nowrap !important;
}
.main-header-menu li { margin: 0 !important; padding: 0 !important; }
.main-header-menu .menu-link {
  color: var(--bofs-text-muted) !important;
  font-family: var(--bofs-font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  transition: color 0.15s ease;
}
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .menu-link:hover {
  color: var(--bofs-accent) !important;
}

/* 5. CTA button — absolutely positioned on the far right of the header bar. */
.bofs-header-cta {
  position: absolute !important;
  right: 2.5rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: inline-block !important;
  background: var(--bofs-accent) !important;
  color: var(--bofs-on-accent) !important;
  font-family: var(--bofs-font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem !important;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
  white-space: nowrap;
  z-index: 5;
}
@media (min-width: 768px) {
  .bofs-header-cta { right: 3rem !important; }
}
.bofs-header-cta:hover {
  background: var(--bofs-accent-pale) !important;
  color: var(--bofs-on-accent) !important;
}

/* 5b. Narrow desktop (Astra's hamburger takes over below ~922px): the wide FR
   CTA + the centered menu cannot coexist between 922-1366px, so flow the menu
   statically after the logo and hide the header CTA (the hero and the bottom
   CTA band carry the same action on every page). */
@media (min-width: 769px) and (max-width: 1366px) {
  ul.main-header-menu,
  .ast-nav-menu.main-header-menu {
    position: static !important;
    transform: none !important;
    margin-left: 1.25rem !important;
    gap: 1rem !important;
  }
  .main-header-menu .menu-link {
    font-size: 0.85rem;
  }
  .bofs-header-cta {
    display: none !important;
  }
}

/* 6. Mobile: hide the centered nav + CTA so Astra's mobile menu can take over. */
@media (max-width: 768px) {
  .ast-builder-menu-1,
  .ast-builder-menu-1.ast-builder-menu,
  .ast-main-header-bar-alignment {
    position: static !important;
    transform: none !important;
    left: auto !important;
  }
  .bofs-header-cta { display: none !important; }
}

/* Logo — prominent size for the horizontal lockup (~2:1 aspect ratio).
   At max-width 220px the logo renders at ~105px tall, so the header bar
   needs to be tall enough to host it cleanly. */
.site-branding .custom-logo-link img,
.site-branding img.custom-logo,
.ast-site-identity img.custom-logo {
  max-width: 220px !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  display: block;
}
.site-branding .ast-site-identity {
  padding: 0.4rem 0 !important;
}

/* Hide the site title + tagline that auto-render next to the logo */
.site-title, .ast-site-title-wrap,
.site-description, .ast-site-tagline,
.site-branding .site-title,
.site-branding .site-description,
.ast-site-title,
.wp-custom-logo .site-branding-container .ast-site-identity .site-title {
  display: none !important;
}

.main-header-menu a,
.main-header-menu .menu-link {
  color: var(--bofs-text) !important;
  font-weight: 700;
}
.main-header-menu .current-menu-item > a {
  color: var(--bofs-accent-light) !important;
}

/* ============ d2 HERO — 2-column flex (text left, image right) ============ */
.bofs-hero-d2 {
  width: 100%;
  background: var(--bofs-bg-deep);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 600px;
}
@media (max-width: 900px) {
  .bofs-hero-d2 { flex-direction: column; min-height: 0; }
}
.bofs-hero-d2__text {
  width: 50%;
  display: flex;
  align-items: center;
  padding: 5rem 2.5rem;
  background: var(--bofs-bg-deep);
}
@media (min-width: 1280px) {
  .bofs-hero-d2__text { padding-left: 6rem; }
}
@media (max-width: 900px) {
  .bofs-hero-d2__text { width: 100%; padding: 3.5rem 1.5rem; }
}
.bofs-hero-d2__text-inner { max-width: 720px; min-width: 0; }
.bofs-hero-d2 h1,
html body .entry-content .bofs-hero-d2 h1 {
  font-family: 'Manrope', sans-serif !important;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem) !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 2rem 0 !important;
  color: var(--bofs-text) !important;
  overflow-wrap: break-word !important;
}
.bofs-hero-d2 h1 .hero-energy      { color: var(--bofs-accent) !important; }
.bofs-hero-d2 h1 .hero-performance { color: var(--bofs-data) !important; }
.bofs-hero-d2__sub {
  font-size: 1.125rem;
  color: var(--bofs-text-muted) !important;
  max-width: 520px;
  margin: 0 0 3rem 0 !important;
  line-height: 1.5;
}
.bofs-hero-d2__cta {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .bofs-hero-d2__cta { flex-direction: column; }
}
.bofs-hero-d2__btn {
  display: inline-block;
  padding: 1.1rem 2rem;
  font-family: var(--bofs-font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  border: none;
  border-radius: 0;
}
.bofs-hero-d2__btn--primary {
  background: var(--bofs-accent) !important;
  color:      var(--bofs-on-accent) !important;
}
.bofs-hero-d2__btn--primary:hover {
  background: var(--bofs-accent-pale) !important;
}
.bofs-hero-d2__btn--ghost {
  background:   transparent !important;
  color:        #e0e2ec !important;
  border:       1px solid #727781 !important;
}
.bofs-hero-d2__btn--ghost:hover {
  background:   #1e2b3c !important;
}

.bofs-hero-d2__media {
  width: 50%;
  position: relative;
  background: var(--bofs-surface-1);
  min-height: 600px;
}
@media (max-width: 900px) {
  .bofs-hero-d2__media { width: 100%; min-height: 320px; }
}
.bofs-hero-d2__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
}
.bofs-hero-d2__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6,20,36,0.55) 0%, rgba(6,20,36,0.15) 50%, rgba(6,20,36,0) 100%);
  pointer-events: none;
}
/* Diagram/illustration variant: show the whole image in full colour (no cover-crop,
   no grayscale, no darkening overlay). Used by the Services EAHX hero. */
.bofs-hero-d2__media--contain {
  background: var(--bofs-bg-deep) !important;
  display: flex;
  align-items: center;
}
.bofs-hero-d2__media--contain img {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: none !important;
}
.bofs-hero-d2__media--contain::after { display: none !important; }

/* ============ HERO (page header on top-level pages) ============ */
/* Hide Astra's default page title since we render our own hero via shortcode */
.ast-archive-description,
.entry-header .entry-title,
.ast-page-header,
.page .ast-archive-description {
  display: none;
}

.bofs-hero {
  background: linear-gradient(160deg, var(--bofs-bg-deep) 0%, #0d2440 60%, #102d4a 100%);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  color: #fff !important;
  border-bottom: 1px solid var(--bofs-surface-2);
  width: 100%;
}
.bofs-hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bofs-accent-light) !important;
  font-weight: 700;
  margin-bottom: 1rem;
}
.bofs-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem) !important;
  line-height: 1.05 !important;
  max-width: 900px;
  margin: 0 auto 1.25rem !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}
.bofs-hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88) !important;
  max-width: 720px;
  margin: 0 auto;
}

/* ============ BUTTONS ============ */
.bofs-btn,
.wp-block-button__link,
button.menu-toggle,
.ast-button {
  display: inline-block;
  background: var(--bofs-accent);
  color: #fff !important;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--bofs-font-display);
  letter-spacing: 0.01em;
  transition: background 0.15s ease, transform 0.15s ease;
  border: none;
}
.bofs-btn:hover,
.wp-block-button__link:hover {
  background: var(--bofs-accent-deep);
  color: #fff !important;
}
.bofs-btn--ghost {
  background: transparent;
  color: var(--bofs-accent-light) !important;
  border: 1.5px solid var(--bofs-accent);
}
.bofs-btn--ghost:hover {
  background: rgba(48, 165, 74, 0.1);
}

/* ============ CARDS / SURFACES ============ */
.bofs-card {
  background: var(--bofs-surface-1);
  border: 1px solid var(--bofs-surface-2);
  border-radius: 6px;
  padding: 1.75rem;
  color: var(--bofs-text);
}
.bofs-card h2, .bofs-card h3, .bofs-card h4 {
  color: #fff;
}
.bofs-card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(48, 165, 74, 0.12);
  color: var(--bofs-accent-light);
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* ============ d2 FULL-BLEED SECTION WRAPPER ============
   On pages using Astra's Page Builder content layout, the surrounding
   container is removed, so each <section> is naturally full-width.
   No CSS escape needed. */
.bofs-fullbleed {
  width: 100%;
  padding: 5rem 0; /* py-section-padding */
}

/* ============ CONTENT CENTERING ============
   The d2 pattern: bands stretch full-width, content inside is centered at 1440px.
   On Home this is achieved by wrapping content in `.bofs-container` inside each
   `.bofs-fullbleed`. On inner pages where Gutenberg blocks sit directly in
   .entry-content, this rule centers them in the same 1440px column. */
.entry-content > *:not(.bofs-fullbleed):not(.bofs-hero):not(.bofs-protocol):not(.bofs-featured-case):not(.bofs-kpis):not(.bofs-section-d2) {
  max-width: 1440px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  box-sizing: border-box;
}

/* Replace-banners (orange callouts) are inline content, keep them centered too */
.entry-content .bofs-replace-banner {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}
.bofs-fullbleed--surface          { background: var(--bofs-bg-deep) !important; }
.bofs-fullbleed--surface-low      { background: var(--bofs-surface-low) !important; }
.bofs-fullbleed--surface-container { background: var(--bofs-surface-1) !important; }

/* Inner content container — max-w-[1440px] mx-auto px-10
   !important + high specificity guard against Astra/Gutenberg full-width overrides. */
.bofs-container,
section.bofs-fullbleed > div.bofs-container,
html body .bofs-container,
html body section > div.bofs-container {
  max-width: 1440px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 2.5rem !important; /* px-10 */
  padding-right: 2.5rem !important;
  box-sizing: border-box !important;
}
@media (min-width: 768px) {
  .bofs-container,
  section.bofs-fullbleed > div.bofs-container,
  html body .bofs-container {
    padding-left: 3rem !important; /* md:px-12 */
    padding-right: 3rem !important;
  }
}

/* Prevent any descendant from breaking out of the container width */
.bofs-container > * {
  max-width: 100%;
  box-sizing: border-box;
}

/* ============ HOME PAGE: same width as inner pages, taller cards ============
   Column is the same 1440px d2 width on Home as inner pages; the cards just
   get more vertical breathing room. */
.home .bofs-container {
  max-width: 1440px;
}
.home .entry-content > *:not(.bofs-fullbleed):not(.bofs-hero):not(.bofs-protocol):not(.bofs-featured-case):not(.bofs-kpis):not(.bofs-section-d2) {
  max-width: 1440px;
}

/* No Home-specific card overrides: cards inherit the exact d2 spec from
   .bofs-card-d2 (p-10 = 2.5rem all sides, mb-8/6/10 spacing rhythm,
   gap-gutter ≈ 1.5rem between cards). Text inside stays left-aligned. */

/* ============ d2 EXACT-MATCH SECTION (Core Competencies / Engineering Protocol / etc.) ============ */
.bofs-section-d2 {
  padding: 5rem 0;
}
.bofs-section-d2__header {
  margin-bottom: 5rem; /* mb-20 in Tailwind */
}
.bofs-section-d2__header h2 {
  text-align: left !important;
  margin-bottom: 1rem !important; /* mb-4 */
}
.bofs-section-d2__bar {
  width: 80px;     /* w-20 */
  height: 4px;     /* h-1 */
  background: var(--bofs-accent); /* bg-primary */
  border-radius: 0;
}

.bofs-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem; /* gap-gutter */
}
@media (max-width: 900px) {
  /* !important: defensive against inline style="grid-template-columns:..." on the wrapper */
  .bofs-grid-3 { grid-template-columns: 1fr !important; gap: 1rem !important; }
}

/* d2 card: bg-surface-container, p-10 (40px), no border, hover→surface-container-high */
.bofs-card-d2 {
  background: var(--bofs-surface-1); /* #132031 */
  padding: 2.5rem; /* p-10 */
  border: none;
  border-radius: 0;
  transition: background 0.2s ease;
}
.bofs-card-d2:hover {
  background: var(--bofs-surface-2); /* #1e2b3c */
}
.bofs-card-d2 .bofs-icon {
  font-family: 'Material Symbols Outlined';
  font-size: 48px !important;
  font-weight: 400;
  color: var(--bofs-accent) !important; /* primary green */
  margin-bottom: 2rem; /* mb-8 */
  display: inline-block;
  line-height: 1;
  font-style: normal;
  font-variant: normal;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
}
.bofs-card-d2 h3,
html body .entry-content .bofs-card-d2 h3 {
  font-family: var(--bofs-font-body) !important; /* Inter, not Manrope per d2 (text-2xl font-bold) */
  font-size: 1.5rem !important; /* text-2xl */
  font-weight: 700 !important;
  color: var(--bofs-text) !important; /* text-on-surface */
  margin: 0 0 1.5rem 0 !important; /* mb-6 */
  letter-spacing: 0 !important;
  line-height: 1.25 !important;
}
.bofs-card-d2 p,
html body .entry-content .bofs-card-d2 p {
  color: var(--bofs-text-muted) !important; /* text-on-surface-variant */
  margin: 0 0 2.5rem 0 !important; /* mb-10 */
  font-size: 1rem;
  line-height: 1.6;
}

/* ============ d2 FEATURED CASE STUDY (homepage, no separate page) ============ */
.bofs-featured-case {
  background: var(--bofs-bg-deep);
  padding: 5rem 0;
}
.bofs-featured-case__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 900px) {
  .bofs-featured-case__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.bofs-featured-case__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1a2d 0%, #132031 50%, #1e2b3c 100%);
}
.bofs-featured-case__media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  border: 1px dashed #43474d;
}
.bofs-featured-case__media-placeholder .material-symbols-outlined {
  font-size: 64px;
  color: var(--bofs-text-faint);
  margin-bottom: 1rem;
}
.bofs-featured-case__media-placeholder span:not(.material-symbols-outlined) {
  color: var(--bofs-text-faint);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.bofs-featured-case__eyebrow,
html body .entry-content .bofs-featured-case__eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bofs-accent) !important;
  margin-bottom: 1.5rem !important;
}
.bofs-featured-case h2,
html body .entry-content .bofs-featured-case h2 {
  margin: 0 0 2.5rem 0 !important; /* mb-10 */
  text-align: left !important;
}
.bofs-featured-case__kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid #43474d;
  padding-top: 2.5rem;
}
.bofs-featured-case__kpi-num {
  font-family: 'Manrope', sans-serif;
  font-size: 1.875rem; /* text-3xl */
  font-weight: 800;
  color: var(--bofs-accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.bofs-featured-case__kpi-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bofs-text-muted);
  font-weight: 600;
}
.bofs-featured-case__cta,
html body .entry-content a.bofs-featured-case__cta {
  display: inline-block;
  margin-top: 3rem;
  color: var(--bofs-text) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--bofs-text);
  padding-bottom: 0.5rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.bofs-featured-case__cta:hover {
  color: var(--bofs-accent) !important;
  border-color: var(--bofs-accent);
}

/* ============ d2 PROTOCOL SECTION (numbered steps, no cards) ============ */
.bofs-protocol {
  background: var(--bofs-surface-low);
  padding: 5rem 0;
  width: 100%;
}
.bofs-protocol__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
.bofs-protocol__title,
html body .entry-content .bofs-protocol__title {
  text-align: center !important;
  margin-bottom: 6rem !important; /* mb-24 */
  color: var(--bofs-text) !important;
}
.bofs-protocol__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
@media (max-width: 900px) {
  .bofs-protocol__grid { grid-template-columns: 1fr; }
}
.bofs-protocol__step {
  padding: 2rem;             /* p-8 */
  border-top: 1px solid #43474d; /* border-outline-variant */
  transition: background 0.2s ease;
}
.bofs-protocol__step:hover {
  background: var(--bofs-surface-1); /* hover:bg-surface-container */
}
@media (max-width: 900px) {
  .bofs-protocol__step {
    border-top: none;
    border-left: 1px solid #43474d;
  }
}
.bofs-protocol__num {
  font-family: 'Manrope', sans-serif;
  font-size: 2.25rem;        /* text-4xl */
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bofs-accent); /* text-primary green */
  line-height: 1;
  margin-bottom: 1.5rem;     /* mb-6 */
}
.bofs-protocol__step h4,
html body .entry-content .bofs-protocol__step h4 {
  font-family: var(--bofs-font-body) !important; /* Inter */
  font-size: 1.25rem !important; /* text-xl */
  font-weight: 700 !important;
  color: var(--bofs-text) !important;
  margin: 0 0 1rem 0 !important; /* mb-4 */
  letter-spacing: 0 !important;
  line-height: 1.3 !important;
}
.bofs-protocol__step p,
html body .entry-content .bofs-protocol__step p {
  color: var(--bofs-text-muted) !important; /* text-on-surface-variant */
  font-size: 0.875rem !important; /* text-sm */
  line-height: 1.55;
  margin: 0 !important;
}

/* d2 "Learn more →" link: text-secondary (blue), bold, arrow with hover-gap */
.bofs-link-arrow,
html body .entry-content a.bofs-link-arrow {
  color: var(--bofs-data) !important; /* #1e95f2 */
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  transition: gap 0.2s ease, color 0.15s ease;
  font-family: var(--bofs-font-body);
}
.bofs-link-arrow:hover {
  gap: 1rem;
  color: var(--bofs-data-light) !important;
}
.bofs-link-arrow .material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-size: 1.1em;
  line-height: 1;
}

/* ============ KPI STRIP ============ */
/* New layout: grid inside .bofs-container; section background comes from the
   parent .bofs-fullbleed--surface, so this layer is just the grid + dividers. */
.bofs-kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border-top: 1px solid var(--bofs-surface-2);
  border-bottom: 1px solid var(--bofs-surface-2);
}
.bofs-kpis-grid > div {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--bofs-surface-2);
}
.bofs-kpis-grid > div:last-child { border-right: none; }
@media (max-width: 900px) {
  .bofs-kpis-grid > div { border-right: none; border-bottom: 1px solid var(--bofs-surface-2); }
  .bofs-kpis-grid > div:last-child { border-bottom: none; }
}

/* Legacy .bofs-kpis kept for compat with any older block still in DB */
.bofs-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  background: var(--bofs-surface-1);
  border-top: 1px solid var(--bofs-surface-2);
  border-bottom: 1px solid var(--bofs-surface-2);
  padding: 2.5rem 1.5rem;
  margin: 3rem 0;
}
.bofs-kpi__num {
  font-family: var(--bofs-font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--bofs-accent-light);
  line-height: 1;
  display: block;
}
.bofs-kpi__label {
  display: block;
  font-size: 0.875rem;
  color: var(--bofs-text-muted);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* KPI strip — BOFS metrics variant (icon + emphasized lead + sub).
   Reuses the .bofs-kpis-grid container (auto-fit columns, top/bottom borders,
   vertical dividers, responsive stacking) and only restyles the inner tiles, so it
   handles a mix of numeric ("Up to 40%") and qualitative ("CO₂ Reduction") items.
   Colours use --bofs-accent* tokens so the green/blue palette toggle still applies. */
.bofs-kpis-grid--metrics > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
}
/* Inline-SVG icons (replacement for the Material Symbols ligature font — the
   font came from Google Fonts and rendered as raw ligature names, e.g. "co2",
   whenever the request was blocked). The SVG keeps the original wrapper class,
   so the font-size-based sizing below transfers via width/height: 1em. */
svg.bofs-svg-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

.bofs-metric__icon {
  font-family: 'Material Symbols Outlined';
  font-size: 34px;
  color: var(--bofs-accent);
  line-height: 1;
  margin-bottom: 0.35rem;
  font-style: normal;
  white-space: nowrap;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
}
.bofs-metric__lead {
  font-family: var(--bofs-font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--bofs-text);
  line-height: 1.1;
}
.bofs-metric__lead strong { color: var(--bofs-accent-light); font-weight: 800; }
.bofs-metric__sub {
  font-size: 0.9rem;
  color: var(--bofs-text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}
@media (max-width: 600px) {
  .bofs-metric__lead { font-size: 1.35rem; }
}

/* ============ FOOTER ============ */
.site-footer,
.footer-widget-area {
  background: #020d1c;
  color: var(--bofs-text-muted);
  border-top: 1px solid var(--bofs-surface-2);
}
.site-footer a {
  color: var(--bofs-text-muted);
}
.site-footer a:hover {
  color: var(--bofs-accent-light);
}

/* ============ PLACEHOLDER / REPLACE MARKERS ============ */
.bofs-placeholder {
  display: inline-block;
  background: rgba(230, 126, 34, 0.15);
  border: 1px dashed #E67E22;
  color: #ffb86b;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
}
.bofs-replace-banner {
  background: #2b1810;
  border-left: 4px solid #E67E22;
  color: #ffb86b;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  border-radius: 3px;
}
.bofs-replace-banner strong {
  color: #fff;
}

/* ============ CONTENT ============ */
.entry-content {
  color: var(--bofs-text);
}
.entry-content p {
  font-size: 1.0625rem;
  line-height: 1.7;
}
.entry-content strong {
  color: #fff;
}
.entry-content code {
  background: var(--bofs-surface-2);
  color: var(--bofs-accent-light);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

/* ============ TABLES ============ */
.entry-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
}
.entry-content th {
  background: var(--bofs-bg-deep);
  color: #fff;
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.entry-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--bofs-surface-2);
  vertical-align: top;
  color: var(--bofs-text);
}

/* ============ POLYLANG LANGUAGE SWITCHER ============ */
.lang-item {
  list-style: none;
  display: inline-block;
  margin-left: 0.75rem;
}
.lang-item a {
  color: var(--bofs-text-muted) !important;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.lang-item.current-lang a {
  color: var(--bofs-accent-light) !important;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .bofs-hero { padding: 4rem 1.5rem 3rem; }
  .bofs-hero h1 { font-size: 2rem; }
  .bofs-kpis { gap: 1.25rem; padding: 1.75rem 1rem; }
  .bofs-kpi__num { font-size: 2rem; }
}

/* ============ MOBILE DRAWER (Astra default → D2 dark) ============
   Astra's mobile menu retains a light/white panel by default. Force it to the
   d2 navy surface and reflow it as a full-width overlay below the header. */
@media (max-width: 921px) {
  /* Drawer container — Astra reveals this when the toggle is pressed.
     The default panel is right-aligned, narrow, and light. Reset all three. */
  .main-header-bar-navigation,
  .ast-mobile-header-wrap .main-header-bar-navigation,
  .ast-mobile-header-wrap .ast-mobile-menu-buttons,
  .ast-flyout-menu-enable .main-header-bar-navigation {
    background: var(--bofs-bg-deep) !important;
    width: 100% !important;
    max-width: 100% !important;
    border-top: 1px solid var(--bofs-surface-2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  }

  /* Drawer UL — vertical stack, generous padding, no inherited centering */
  .main-header-bar-navigation .main-header-menu,
  .main-header-bar-navigation ul.main-header-menu,
  .ast-mobile-header-wrap .main-header-menu {
    position: static !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0.5rem 0 !important;
    background: var(--bofs-bg-deep) !important;
    width: 100% !important;
  }
  .main-header-bar-navigation .main-header-menu > li,
  .ast-mobile-header-wrap .main-header-menu > li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--bofs-surface-2) !important;
  }
  .main-header-bar-navigation .main-header-menu > li:last-child,
  .ast-mobile-header-wrap .main-header-menu > li:last-child {
    border-bottom: none !important;
  }

  /* Menu links — full width tap targets, light text on navy, green active */
  .main-header-bar-navigation .main-header-menu .menu-link,
  .main-header-bar-navigation .main-header-menu a,
  .ast-mobile-header-wrap .main-header-menu .menu-link {
    display: block !important;
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    color: var(--bofs-text) !important;
    font-family: var(--bofs-font-body);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
    background: transparent !important;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  .main-header-bar-navigation .main-header-menu .menu-link:hover,
  .main-header-bar-navigation .main-header-menu .menu-link:focus,
  .main-header-bar-navigation .main-header-menu .current-menu-item > .menu-link {
    background: var(--bofs-surface-1) !important;
    color: var(--bofs-accent) !important;
  }

  /* Mobile CTA at the foot of the drawer — match the green primary button */
  .main-header-bar-navigation .bofs-header-cta {
    position: static !important;
    transform: none !important;
    display: block !important;
    margin: 1rem 1.5rem !important;
    text-align: center;
    border-radius: 4px;
  }

  /* Toggle button (hamburger + X) — keep the dark-outlined square aesthetic */
  .menu-toggle.main-header-menu-toggle,
  button.menu-toggle {
    background: transparent !important;
    color: var(--bofs-text) !important;
    border: 1px solid var(--bofs-surface-2) !important;
    border-radius: 4px;
  }
  .menu-toggle .mobile-menu-toggle-icon svg,
  .menu-toggle svg { fill: var(--bofs-text) !important; }
}

/* ============ BLOG / ARCHIVE CARDS — dark-mode override ============ */
/* /insights/, category & search archives are rendered by Astra's DEFAULT loop
   (.ast-article-post inside the blog-layout grid), NOT by the bofs-* content
   blocks used on the 6 hand-built pages. Astra's separate-container gives those
   cards a light surface that clashes with the dark site and makes the excerpt
   text unreadable. These rules bring the cards in line with .bofs-card-d2. */
.ast-separate-container .ast-article-post,
.blog .ast-article-post,
.archive .ast-article-post,
.search .ast-article-post {
  background: var(--bofs-surface-1) !important;   /* #132031 */
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transition: background 0.2s ease;
}
.blog .ast-article-post:hover,
.archive .ast-article-post:hover,
.search .ast-article-post:hover {
  background: var(--bofs-surface-2) !important;   /* #1e2b3c */
}
.ast-separate-container .ast-article-post .ast-article-inner {
  background: transparent !important;
  border: none !important;
}
/* Title */
.ast-article-post .entry-title a {
  color: var(--bofs-text) !important;
  font-family: var(--bofs-font-display);
}
.ast-article-post .entry-title a:hover { color: var(--bofs-accent) !important; }
/* Excerpt / body text */
.ast-article-post .entry-content,
.ast-article-post .entry-content p,
.ast-article-post .ast-excerpt-container,
.ast-article-post .ast-excerpt-container p,
.ast-article-post p { color: var(--bofs-text-muted) !important; }
/* Meta (date) */
.ast-article-post .entry-meta,
.ast-article-post .entry-meta a,
.ast-article-post .posted-on,
.ast-article-post .posted-on a,
.ast-article-post .ast-blog-single-element { color: var(--bofs-text-muted) !important; }
/* Category tag ("Insights") + read-more — accent green */
.ast-article-post .cat-links a,
.ast-article-post .read-more a,
.ast-article-post .ast-button { color: var(--bofs-accent) !important; }
.ast-article-post .cat-links a:hover,
.ast-article-post .read-more a:hover { color: var(--bofs-accent-light) !important; }

/* ============ COMMENTS (single article) — dark-mode styling ============ */
/* Astra's comments.php is template-rendered and was unstyled for the dark theme,
   so the "Leave a Comment" form rendered as a light box. Labels are
   screen-reader-only, so the visible field hints are the placeholders. */
.comments-area,
.ast-separate-container .comments-area {
  color: var(--bofs-text-muted);
  background: transparent !important;   /* Astra separate-container gives this a light box; blend it into the dark page */
}
.comments-area .comments-title,
.comment-respond .comment-reply-title {
  color: var(--bofs-text) !important;
  font-family: var(--bofs-font-display);
}
.comment-respond .comment-notes,
.comment-form-cookies-consent label,
.comments-area .comment-meta,
.comments-area .comment-metadata a { color: var(--bofs-text-muted) !important; }
/* Inputs + textarea — dark surface, light text, accent focus ring */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  background: var(--bofs-surface-1) !important;   /* #132031 */
  color: var(--bofs-text) !important;
  border: 1px solid var(--bofs-surface-2) !important;
  border-radius: 4px !important;
  padding: 0.75rem 1rem !important;
  font-family: var(--bofs-font-body);
}
.comment-form input::placeholder,
.comment-form textarea::placeholder { color: var(--bofs-text-muted) !important; opacity: 1; }
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: var(--bofs-accent) !important;
  outline: none !important;
}
/* Submit button — match the primary green CTA */
.comment-form .submit,
.comments-area .submit {
  background: var(--bofs-accent) !important;
  color: var(--bofs-on-accent) !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 0.75rem 1.5rem !important;
  font-family: var(--bofs-font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.comment-form .submit:hover,
.comments-area .submit:hover { background: var(--bofs-accent-pale) !important; }
/* Existing/threaded comments (none yet, but style for when they appear) */
.comments-area .comment-body { border-bottom: 1px solid var(--bofs-surface-2); }
.comments-area .comment-author .fn,
.comments-area .comment-author .fn a,
.comments-area .comment-content,
.comments-area .comment-content p { color: var(--bofs-text) !important; }
.comments-area .reply a { color: var(--bofs-accent) !important; }

/* ============ PRIMARY CTA PARITY ============ */
/* Make the in-page primary CTA (.bofs-btn — e.g. the bottom-of-page
   "Request a Sustainability Assessment" button) match the header
   .bofs-header-cta exactly: dark text on green, uppercase, Inter, same
   size + letter-spacing + hover. :not(--ghost) protects the outline variant. */
.bofs-btn:not(.bofs-btn--ghost) {
  color: var(--bofs-on-accent) !important;
  font-family: var(--bofs-font-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 0.75rem 1.5rem !important;
  text-decoration: none !important;   /* kill the in-content link underline (header CTA has none) */
}
.bofs-btn:not(.bofs-btn--ghost):hover {
  background: var(--bofs-accent-pale) !important;
  color: var(--bofs-on-accent) !important;
}

/* ============ UTILITY: hidden section (kept in markup, not rendered) ============ */
/* Leadership block is hidden until real names/roles/photos land — toggle by
   removing the class (or this rule). The markup stays editable in place. */
.bofs-hidden-section { display: none !important; }

/* ============ CONTACT FORM 7 — dark-mode ============ */
.bofs-cf7 .wpcf7-form p { color: var(--bofs-text-muted); margin: 0 0 1rem; }
.bofs-cf7 .wpcf7-form label { color: var(--bofs-text); font-weight: 500; display: block; }
.bofs-cf7 input.wpcf7-form-control:not(.wpcf7-submit),
.bofs-cf7 textarea.wpcf7-form-control {
  width: 100%;
  background: var(--bofs-surface-1) !important;
  color: var(--bofs-text) !important;
  border: 1px solid var(--bofs-surface-2) !important;
  border-radius: 4px !important;
  padding: 0.75rem 1rem !important;
  font-family: var(--bofs-font-body);
  margin-top: 0.35rem;
  box-sizing: border-box;
}
.bofs-cf7 input.wpcf7-form-control:focus,
.bofs-cf7 textarea.wpcf7-form-control:focus {
  border-color: var(--bofs-accent) !important;
  outline: none !important;
}
.bofs-cf7 input::placeholder, .bofs-cf7 textarea::placeholder { color: var(--bofs-text-muted) !important; opacity: 1; }
.bofs-cf7 .wpcf7-submit {
  background: var(--bofs-accent) !important;
  color: var(--bofs-on-accent) !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 0.75rem 1.5rem !important;
  font-family: var(--bofs-font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.bofs-cf7 .wpcf7-submit:hover { background: var(--bofs-accent-pale) !important; }
.bofs-cf7 .wpcf7-not-valid-tip { color: #ff9b9b; }
.bofs-cf7 .wpcf7-response-output { color: var(--bofs-text-muted); border-color: var(--bofs-surface-2) !important; }

/* ============ TITLE WRAPPING — never break mid-word ============ */
/* Post/archive titles (e.g. Insights cards) were breaking inside words and
   orphaning a letter or punctuation on a new line. Force word-level wrapping. */
.entry-title, .entry-title a,
.ast-archive-title,
.ast-article-post .entry-title, .ast-article-post .entry-title a {
  overflow-wrap: normal !important;
  word-break: normal !important;
  word-wrap: normal !important;
  hyphens: none !important;
}

/* ============ CONTACT MAP EMBED ============ */
.bofs-map { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 2.5rem; box-sizing: border-box; }
.bofs-map iframe { width: 100%; height: 360px; border: 1px solid var(--bofs-surface-2); border-radius: 6px; display: block; filter: grayscale(0.2) contrast(1.05); }

