/* v962 — Speed Up eVisa service content restore root fix
   Root cause: public-sidebar-standard-alignment-v935 turned .speedup-article-container-v806
   into a two-column grid although the Speed Up page already has an inner .speedup-two-column-v806.
   That nested grid squeezed the article column to near zero width, leaving only the hero image and sidebar visible.
   This page-specific lock makes the real layout: left lane = hero + article, right lane = sidebar. */

@media (min-width: 981px){
  html body.speedup-content-restore-v962.sidebar-standard-v935 .speedup-article-container-v806{
    display:grid !important;
    grid-template-columns:minmax(0, 1fr) var(--vge-sidebar-width-v935, 330px) !important;
    column-gap:var(--vge-sidebar-gap-v935, 28px) !important;
    row-gap:26px !important;
    width:min(var(--vge-sidebar-shell-v935, 1180px), calc(100vw - 56px)) !important;
    max-width:min(var(--vge-sidebar-shell-v935, 1180px), calc(100vw - 56px)) !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-left:0 !important;
    padding-right:0 !important;
    align-items:start !important;
    overflow:visible !important;
  }

  html body.speedup-content-restore-v962 .speedup-hero-image-v806{
    grid-column:1 !important;
    grid-row:1 !important;
    width:100% !important;
    max-width:100% !important;
    margin:78px 0 0 !important;
    min-width:0 !important;
  }

  html body.speedup-content-restore-v962 .speedup-hero-image-v806 img{
    width:100% !important;
    height:clamp(245px, 25vw, 360px) !important;
    object-fit:cover !important;
  }

  /* Let the article and sidebar become real children of the outer two-column grid.
     This removes the bad nested 1fr + sidebar grid that collapsed the article lane. */
  html body.speedup-content-restore-v962 .speedup-two-column-v806{
    display:contents !important;
  }

  html body.speedup-content-restore-v962 .speedup-article-v806,
  html body.speedup-content-restore-v962 article.speedup-article-v806{
    grid-column:1 !important;
    grid-row:2 !important;
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow:visible !important;
    visibility:visible !important;
    opacity:1 !important;
  }

  html body.speedup-content-restore-v962 .speedup-sidebar-v827,
  html body.speedup-content-restore-v962 aside.emergency-sidebar-v787FR.speedup-sidebar-v827{
    grid-column:2 !important;
    grid-row:1 / span 2 !important;
    width:var(--vge-sidebar-width-v935, 330px) !important;
    min-width:var(--vge-sidebar-width-v935, 330px) !important;
    max-width:var(--vge-sidebar-width-v935, 330px) !important;
    position:sticky !important;
    top:94px !important;
    align-self:start !important;
    justify-self:stretch !important;
    margin:0 !important;
    transform:none !important;
    z-index:3 !important;
  }

  html body.speedup-content-restore-v962 .speedup-breadcrumb-v806,
  html body.speedup-content-restore-v962 .speedup-title-block-v806,
  html body.speedup-content-restore-v962 .speedup-section-row-v806,
  html body.speedup-content-restore-v962 .speedup-final-cta-v806{
    visibility:visible !important;
    opacity:1 !important;
  }
}

@media (max-width: 980px){
  html body.speedup-content-restore-v962 .speedup-article-container-v806{
    display:block !important;
    width:min(100%, calc(100vw - 32px)) !important;
    max-width:min(100%, calc(100vw - 32px)) !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-left:0 !important;
    padding-right:0 !important;
    overflow:visible !important;
  }

  html body.speedup-content-restore-v962 .speedup-two-column-v806{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:22px !important;
    width:100% !important;
    max-width:100% !important;
  }

  html body.speedup-content-restore-v962 .speedup-hero-image-v806{
    margin-top:34px !important;
    margin-bottom:22px !important;
  }

  html body.speedup-content-restore-v962 .speedup-article-v806,
  html body.speedup-content-restore-v962 .speedup-sidebar-v827{
    grid-column:auto !important;
    grid-row:auto !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    position:static !important;
    overflow:visible !important;
    visibility:visible !important;
    opacity:1 !important;
  }
}
