/* REAL_DOM_FIX: actual structure is #app > div.page > div.wrap.ax2-home; all v7.0 direct-child selectors missed. */
/* AXIOM_HOME_GRID_V71 — correct the two-column HOMEPAGE only.
   6.8 moved the news feed below the full-width row; 6.9 aligned only wrapper.
   Restore two tall rails: digest + latest stories LEFT, markets/popular RIGHT.
   Keep real data, existing card styles and desktop sticky markets. */
@media (min-width: 1100px) {
  #app .wrap.ax2-home.ax5-home > .ax2-home-columns {
    display:grid!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    grid-template-columns:minmax(0,1fr) clamp(315px,24vw,410px)!important;
    column-gap:18px!important;
    row-gap:14px!important;
    align-items:start!important;
    padding-top:10px!important;
  }
  #app .wrap.ax2-home.ax5-home > .ax2-home-columns > #axiom-digest-mount {
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
  }
  #app .wrap.ax2-home.ax5-home > .ax2-home-columns > .ax5-main,
  #app .wrap.ax2-home.ax5-home > .ax2-home-columns > .ax3-main {
    grid-column:1!important;
    grid-row:2!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
  }
  #app .wrap.ax2-home.ax5-home > .ax2-home-columns > aside {
    grid-column:2!important;
    grid-row:1 / span 2!important;
    align-self:start!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    position:sticky!important;
    top:62px!important;
    max-height:calc(100dvh - 74px)!important;
    overflow-y:auto!important;
    scrollbar-width:thin;
    scrollbar-color:#d8d8de transparent;
  }
  #app .ax5-home #axiom-digest-mount .ax3-feature-grid {
    grid-template-columns:minmax(0,1.25fr) minmax(0,0.88fr)!important;
    gap:12px!important;
    align-items:stretch!important;
  }
  #app .ax5-home #axiom-digest-mount .ax3-feature {
    min-height:355px!important;
  }
  #app .ax5-home #axiom-digest-mount .ax3-side-stories {
    grid-template-rows:repeat(3,minmax(0,1fr))!important;
    min-height:355px!important;
  }
  #app .ax5-home .ax2-news-block > .grid {
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:13px!important;
  }
}
/* On intermediate screens maintain the existing two-column layout with 2 latest cards/row. */
@media (min-width:1100px) and (max-width:1199px){
  #app .ax5-home .ax2-news-block > .grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
/* Small devices: existing v6.7 design intact. */
@media (max-width:1099px) {
  #app .wrap.ax2-home.ax5-home > .ax2-home-columns {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:14px!important;
  }
  #app .wrap.ax2-home.ax5-home > .ax2-home-columns > #axiom-digest-mount {grid-column:1!important;grid-row:1!important;}
  #app .wrap.ax2-home.ax5-home > .ax2-home-columns > .ax5-main,
  #app .wrap.ax2-home.ax5-home > .ax2-home-columns > .ax3-main {grid-column:1!important;grid-row:2!important;}
  #app .wrap.ax2-home.ax5-home > .ax2-home-columns > aside {
    grid-column:1!important;grid-row:3!important;
    position:static!important;max-height:none!important;overflow:visible!important;
  }
}
