/* IVA v3.9.0 — editorial performance + exact inner-page subheader alignment */
:root{--iva390-content:1240px;--iva390-side:48px;--iva390-side-mobile:28px}

/* Editorial subheader: use the same full content rail as the rest of the website.
   v3.5 had a legacy max-width on .page-hero>.container that visually pushed text inward. */
body.ivc-public-v300 .page-hero>.container,
body.ivc-public-v300 .iva-editorial-hero>.container{
  width:min(calc(100% - var(--iva390-side)),var(--iva390-content))!important;
  max-width:none!important;
  margin-inline:auto!important;
  padding:0!important;
  text-align:start!important;
  display:block!important;
}
body.ivc-public-v300 .page-hero>.container>span,
body.ivc-public-v300 .page-hero>.container>h1,
body.ivc-public-v300 .page-hero>.container>p{text-align:start!important}
body.ivc-public-v300 .iva-editorial-hero .iva-subhero-copy{
  width:min(100%,820px)!important;
  max-width:820px!important;
  margin:0!important;
  padding:0!important;
  text-align:start!important;
}
html[dir="rtl"] body.ivc-public-v300 .iva-editorial-hero .iva-subhero-copy{margin-inline-start:0!important;margin-inline-end:0!important}
body.ivc-public-v300 .iva-editorial-hero .iva-subhero-copy>span,
body.ivc-public-v300 .iva-editorial-hero .iva-subhero-copy>h1,
body.ivc-public-v300 .iva-editorial-hero .iva-subhero-copy>p{text-align:start!important}

/* Fast, stable editorial cards. Fixed aspect ratio prevents layout shifts while images load. */
body.ivc-public-v300 .iva-editorial-section{padding:58px 0 52px!important;background:var(--iva-page-bg,#f7f5f0)!important}
body.ivc-public-v300 .iva-editorial-section>.container,
body.ivc-public-v300 .iva-editorial-pagination{
  width:min(calc(100% - var(--iva390-side)),var(--iva390-content))!important;
  max-width:none!important;
  margin-inline:auto!important;
}
body.ivc-public-v300 .iva-editorial-grid{align-items:stretch!important;gap:20px!important}
body.ivc-public-v300 .iva-editorial-card{
  min-height:100%;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  content-visibility:auto;
  contain-intrinsic-size:430px;
}
body.ivc-public-v300 .iva-editorial-media{
  width:100%!important;
  height:auto!important;
  aspect-ratio:8/5!important;
  overflow:hidden!important;
  background:#e8efec!important;
}
body.ivc-public-v300 .iva-editorial-media img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  transform:translateZ(0);
}
body.ivc-public-v300 .iva-editorial-card .card-body{display:flex;flex:1;flex-direction:column;padding:21px!important}
body.ivc-public-v300 .iva-editorial-card .card-body h2{font-size:20px!important;line-height:1.55!important;margin:8px 0 8px!important}
body.ivc-public-v300 .iva-editorial-card .card-body p{font-size:13px!important;line-height:1.85!important;margin:0 0 12px!important}
body.ivc-public-v300 .iva-editorial-card .card-link{margin-top:auto!important;padding-top:10px!important}
body.ivc-public-v300 .iva-editorial-pagination{padding-bottom:70px}
body.ivc-public-v300 .iva-editorial-pagination .pagination{margin-top:0!important}

/* Avoid costly paint effects while scrolling a long archive. */
@media (hover:hover){body.ivc-public-v300 .iva-editorial-card:hover{transform:translateY(-2px)!important}}

@media(max-width:1050px){
  body.ivc-public-v300 .page-hero>.container,
  body.ivc-public-v300 .iva-editorial-hero>.container,
  body.ivc-public-v300 .iva-editorial-section>.container,
  body.ivc-public-v300 .iva-editorial-pagination{width:min(calc(100% - 40px),var(--iva390-content))!important}
}
@media(max-width:720px){
  body.ivc-public-v300 .page-hero>.container,
  body.ivc-public-v300 .iva-editorial-hero>.container,
  body.ivc-public-v300 .iva-editorial-section>.container,
  body.ivc-public-v300 .iva-editorial-pagination{width:min(calc(100% - var(--iva390-side-mobile)),var(--iva390-content))!important}
  body.ivc-public-v300 .iva-editorial-hero .iva-subhero-copy{max-width:none!important}
  body.ivc-public-v300 .iva-editorial-section{padding:42px 0 36px!important}
  body.ivc-public-v300 .iva-editorial-card .card-body{padding:18px!important}
  body.ivc-public-v300 .iva-editorial-pagination{padding-bottom:48px}
}
