/* OGC Blog Visual V8 — desktop reading-width correction. Loaded after V7. */
:root{--ogcb-v8-ink:#173d46;--ogcb-v8-line:#e2ece7;}

/*
  The existing article sits inside a narrower theme container. Break the
  article grid out of that parent and centre it against the viewport so the
  reading column can use the screen width without losing the ad rail.
*/
@media (min-width: 901px){
  .ogcb-article-layout{
    position:relative!important;
    left:50%!important;
    transform:translateX(-50%)!important;
    width:min(1580px,calc(100vw - 80px))!important;
    max-width:1580px!important;
    margin:42px 0 72px!important;
    padding:0!important;
    display:grid!important;
    grid-template-columns:56px minmax(0,1fr) minmax(320px,360px)!important;
    column-gap:30px!important;
    row-gap:28px!important;
    align-items:start!important;
    box-sizing:border-box!important;
  }
  .ogcb-article-share{grid-column:1!important;min-width:0!important;}
  .ogcb-article-body{
    grid-column:2!important;
    min-width:0!important;
    width:100%!important;
    max-width:none!important;
    box-sizing:border-box!important;
  }
  .ogcb-article-body>*{max-width:none;}
  .ogcb-rich-content{
    width:100%!important;
    max-width:none!important;
    font-size:17px!important;
    line-height:1.92!important;
  }
  .ogcb-article-sidebar{
    grid-column:3!important;
    width:100%!important;
    max-width:360px!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  .ogcb-ad-card{width:100%;box-sizing:border-box;}
  .ogcb-ad-slot{width:100%;box-sizing:border-box;}
  .ogcb-related{
    position:relative!important;
    left:50%!important;
    transform:translateX(-50%)!important;
    width:min(1580px,calc(100vw - 80px))!important;
    max-width:1580px!important;
    margin:30px 0 64px!important;
  }
}

/* Intermediate desktop and tablet: keep the ad rail useful without squeezing text. */
@media (min-width:901px) and (max-width:1200px){
  .ogcb-article-layout{
    width:calc(100vw - 48px)!important;
    grid-template-columns:46px minmax(0,1fr) 294px!important;
    column-gap:22px!important;
  }
  .ogcb-rich-content{font-size:16px!important;line-height:1.86!important;}
  .ogcb-article-sidebar{max-width:294px!important;}
  .ogcb-related{width:calc(100vw - 48px)!important;}
}

/* V7 already stacks the content/ad sections on tablet and mobile. Keep its
   responsive layout intact and neutralise the desktop breakout transform. */
@media (max-width:900px){
  .ogcb-article-layout,.ogcb-related{
    left:auto!important;
    transform:none!important;
    position:static!important;
    width:calc(100% - 40px)!important;
    max-width:none!important;
    margin:28px auto 48px!important;
  }
}
@media (max-width:620px){
  .ogcb-article-layout,.ogcb-related{
    width:calc(100% - 30px)!important;
  }
}
