/* Page Engine v1: isolated comparison component, BDW brand tokens. */
.bdw-page-comparison__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(1rem,2vw,1.5rem)}
.bdw-page-comparison__card{min-width:0;border:1px solid color-mix(in srgb,#374550 18%,transparent);border-radius:1.25rem;background:var(--bdw-comparison-bg,#fffdf9);color:var(--bdw-comparison-fg,#374550);padding:clamp(1.2rem,3vw,2rem);display:flex;flex-direction:column;gap:.75rem}
.bdw-page-comparison__card--accent{--bdw-comparison-bg:#b2e0d6;--bdw-comparison-fg:#26343d}
.bdw-page-comparison__card h3{font-size:clamp(1.2rem,2vw,1.6rem);line-height:1.2;margin:0;color:inherit}
.bdw-page-comparison__card p{margin:0;line-height:1.7}
.bdw-page-comparison__card ul{padding-left:1.2rem;line-height:1.8;margin:.2rem 0 1rem}
.bdw-page-comparison__card a{color:inherit;font-weight:700;text-underline-offset:.2em;margin-top:auto}
.bdw-page-comparison__card a:focus-visible{outline:3px solid currentColor;outline-offset:4px}
@media(max-width:720px){.bdw-page-comparison__grid{grid-template-columns:minmax(0,1fr)}}

/* Page Engine V2: reusable ocean atmosphere on existing semantic heroes. */
.bdw-ocean-hero--family { position:relative; isolation:isolate; overflow:clip; background:linear-gradient(125deg,var(--bdw-paper),var(--bdw-soft) 62%,color-mix(in srgb,var(--bdw-mint) 24%,var(--bdw-paper))); }
.bdw-ocean-hero--family::before {pointer-events:none;opacity:.25;}
.bdw-ocean-hero--family::after {pointer-events:none;opacity:.18;}
.bdw-ocean-hero--family > * {position:relative;z-index:1;}
@media (max-width:600px) {.bdw-ocean-hero--family {background:linear-gradient(155deg,var(--bdw-paper),color-mix(in srgb,var(--bdw-mint) 12%,var(--bdw-soft)));}}

/* BDW Page Engine V2.2 — shared editorial surface contract.
   The same layout/spacing applies to academy and contact; articles have a
   shared compact header. No viewport-height based geometry for these pages. */
.bdw-unified-hero,
.bdw-unified-article__header.bdw-ocean-hero--family {
  box-sizing:border-box;
  min-width:0;
  height:auto;
  min-height:0;
  padding:clamp(24px,3.6vw,52px);
  margin-block:clamp(12px,2vw,26px) clamp(28px,3.6vw,52px);
  border:1px solid var(--bdw-line);
  border-radius:clamp(18px,2.4vw,28px);
}
.bdw-unified-hero {
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);
  align-items:center;
  gap:clamp(24px,4vw,64px);
}
.bdw-unified-hero > *, .bdw-unified-hero__aside {min-width:0;max-width:100%;}
.bdw-unified-hero h1,.bdw-unified-article__header h1 {
  max-width:19ch;
  font-size:clamp(2.2rem,min(4.4vw,7vh),4.35rem);
  line-height:1.07;
  letter-spacing:-.048em;
  overflow-wrap:break-word;
  text-wrap:balance;
}
.bdw-unified-hero__aside {align-self:center;}
/* Academy follows the Blog editorial two-column header, including its card. */
.bdw-academy {padding-top:0;}
.bdw-academy .bdw-academy__hero.bdw-unified-hero {
  display:block; width:100%; max-width:none; border-inline:0; border-radius:0;
  padding-block:clamp(28px,4vw,54px);
  margin:0 0 clamp(28px,4vw,56px);
}
.bdw-academy .bdw-academy__hero > .bdw-shell {min-width:0;}
.bdw-academy .bdw-academy__hero-layout.bdw-editorial-hero__layout {
  display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);
  gap:clamp(24px,4vw,64px);align-items:center;
}
.bdw-academy .bdw-academy__hero .bdw-content-nav {margin:0 0 clamp(18px,3vw,34px);}
.bdw-academy .bdw-academy__hero h1 {margin:12px 0 18px;max-width:17ch;}
.bdw-academy .bdw-academy__hero-stats {margin-top:clamp(16px,2.6vw,28px);}
/* Contact uses the same two-column geometry but keeps actionable contact details. */
.bdw-contact .bdw-contact__hero.bdw-unified-hero {
  min-height:0;height:auto;padding:clamp(24px,3.6vw,52px);
}
.bdw-contact .bdw-content-nav {min-height:0;padding-block:clamp(12px,1.6vw,22px);}
.bdw-contact .bdw-contact__copy h1 {max-width:13ch;}
/* Article singles and legal pages: compact editorial intro, no giant empty top fold. */
.bdw-unified-article.bdw-content {padding-block:clamp(24px,3.6vw,52px) clamp(54px,6vw,96px);}
.bdw-unified-article .bdw-content-nav {margin-bottom:clamp(18px,2.4vw,32px);}
.bdw-unified-article .bdw-unified-article__header {min-width:0;max-width:100%;margin-bottom:clamp(20px,2.6vw,34px);}
.bdw-unified-article .bdw-unified-article__header h1 {max-width:22ch;margin-block:clamp(12px,1.8vw,18px);}
.bdw-blog-single .bdw-unified-article__header > p {max-width:60ch;}
.bdw-legal-page .bdw-unified-article__header {margin-bottom:clamp(28px,3vw,42px);}
.bdw-legal-page .bdw-unified-article__header > p {max-width:65ch;}
/* Rubro cards: include their actions in the hero instead of pushing them below fold. */
.bdw-seo-niche .bdw-geo-niche-hero.bdw-ocean-hero--family {
  box-sizing:border-box;width:100%;max-width:none;min-width:0;min-height:0;height:auto;
  margin:0 0 clamp(26px,4vw,54px);padding:clamp(22px,3.6vw,52px);
  border:1px solid var(--bdw-line);border-radius:clamp(18px,2.3vw,30px);
  align-content:center;align-items:center;gap:clamp(18px,3vw,34px);
}
.bdw-seo-niche .bdw-geo-niche-hero__aside {min-width:0;}
.bdw-seo-niche .bdw-geo-niche-hero__actions {grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;margin:0;position:relative;z-index:2;}
.bdw-seo-niche .bdw-geo-niche-hero__actions a {min-height:44px;}
.bdw-seo-niche .bdw-geo-niche-hero h1 {font-size:clamp(2.3rem,min(4.5vw,7vh),4.8rem);max-width:17ch;line-height:1.06;}
@media(max-width:920px){
  .bdw-unified-hero,.bdw-academy .bdw-academy__hero-layout.bdw-editorial-hero__layout {grid-template-columns:minmax(0,1fr);}
  .bdw-seo-niche .bdw-geo-niche-hero.bdw-ocean-hero--family {grid-template-columns:minmax(0,1fr);}
  .bdw-seo-niche .bdw-geo-niche-hero__actions {grid-column:1;}
}
@media(max-width:620px){
  .bdw-unified-hero,.bdw-unified-article__header.bdw-ocean-hero--family {padding:clamp(20px,5vw,30px);}
  .bdw-unified-hero h1,.bdw-unified-article__header h1 {font-size:clamp(2rem,8.6vw,3.2rem);}
  .bdw-academy .bdw-academy__hero.bdw-unified-hero {padding-block:26px;}
  .bdw-seo-niche .bdw-geo-niche-hero__actions a {flex:1 1 auto;justify-content:center;}
}
