/* v935 — Public sidebar alignment standard
   Emergency Visa page is the baseline: centered 1180px shell, 330px sidebar, 28px gap.
   This file is applied to public pages that use the Emergency-style right sidebar so spacing
   to the right page edge and distance from main content stay consistent. */

@media (min-width: 981px){
  html body.sidebar-standard-v935{
    --vge-sidebar-shell-v935: 1180px;
    --vge-sidebar-gap-v935: 28px;
    --vge-sidebar-width-v935: 330px;
    --vge-sidebar-top-v935: 104px;
  }

  /* Article-style two-column shells */
  html body.sidebar-standard-v935 .emergency-article-layout-v787FR,
  html body.sidebar-standard-v935 .arrival-xxx-layout-v829,
  html body.sidebar-standard-v935 .departure-xxx-layout-v830,
  html body.sidebar-standard-v935 .arrival-layout-v787GW,
  html body.sidebar-standard-v935 .booking-guide-layout-v878,
  html body.sidebar-standard-v935 .refund-guide-layout-v879,
  html body.sidebar-standard-v935 .privacy-guide-layout-v880,
  html body.sidebar-standard-v935 .speedup-article-container-v806,
  html body.sidebar-standard-v935 .correction-xxx-layout-v828,
  html body.sidebar-standard-v935 .evisa-reference-layout-v803,
  html body.sidebar-standard-v935 .visa-info-xxx-layout-v835,
  html body.sidebar-standard-v935 .working-layout-v814,
  html body.sidebar-standard-v935 .guide-shell-sidebar-v870,
  html body.sidebar-standard-v935 .useful-guide-shell-v890,
  html body.sidebar-standard-v935 .visa-req-linear-layout-v914,
  html body.sidebar-standard-v935 .visa-req-xxx-layout-v872,
  html body.sidebar-standard-v935 .price-xxx-layout-v871,
  html body.sidebar-standard-v935 .voa-article-shell-v787GN{
    display:grid !important;
    grid-template-columns:minmax(0, 1fr) var(--vge-sidebar-width-v935) !important;
    gap:var(--vge-sidebar-gap-v935) !important;
    width:min(var(--vge-sidebar-shell-v935), calc(100vw - 56px)) !important;
    max-width:min(var(--vge-sidebar-shell-v935), 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;
  }

  /* The speedup page uses inner two-column div inside a centered container. */
  html body.sidebar-standard-v935 .speedup-two-column-v806{
    display:grid !important;
    grid-template-columns:minmax(0, 1fr) var(--vge-sidebar-width-v935) !important;
    gap:var(--vge-sidebar-gap-v935) !important;
    width:100% !important;
    max-width:100% !important;
    align-items:start !important;
  }

  /* Ensure main article lane cannot run below the sidebar. */
  html body.sidebar-standard-v935 article,
  html body.sidebar-standard-v935 .visa-req-xxx-main-v872,
  html body.sidebar-standard-v935 .visa-req-linear-main-v914,
  html body.sidebar-standard-v935 .price-xxx-main-v871,
  html body.sidebar-standard-v935 .useful-guide-main-v890,
  html body.sidebar-standard-v935 .guide-main-v870,
  html body.sidebar-standard-v935 .visa-info-xxx-main-v835,
  html body.sidebar-standard-v935 .speedup-article-v806{
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
    grid-column:1 !important;
  }

  /* Right sidebar standard: same width/top as Emergency Visa. */
  html body.sidebar-standard-v935 .emergency-sidebar-v787FR,
  html body.sidebar-standard-v935 aside.emergency-sidebar-v787FR{
    grid-column:2 !important;
    width:var(--vge-sidebar-width-v935) !important;
    min-width:var(--vge-sidebar-width-v935) !important;
    max-width:var(--vge-sidebar-width-v935) !important;
    position:sticky !important;
    top:var(--vge-sidebar-top-v935) !important;
    align-self:start !important;
    justify-self:stretch !important;
    margin-left:0 !important;
    margin-right:0 !important;
    transform:none !important;
    z-index:3 !important;
  }

  /* Visa requirements had earlier hard width locks; override them to use the standard shell. */
  html body.sidebar-standard-v935.visa-req-left-lane-tight-v926 .visa-req-linear-main-v914,
  html body.sidebar-standard-v935.visa-req-left-lane-tight-v926 .visa-req-xxx-main-v872,
  html body.sidebar-standard-v935.visa-req-left-lane-tight-v926 .visa-req-linear-rail-v914,
  html body.sidebar-standard-v935.visa-req-left-lane-tight-v926 .vge-subpage-viewport-rail-v441G,
  html body.sidebar-standard-v935.visa-req-left-lane-tight-v926 .visa-req-linear-section-v914,
  html body.sidebar-standard-v935.visa-req-left-lane-tight-v926 .visa-req-linear-head-v914{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  html body.sidebar-standard-v935.visa-req-left-lane-tight-v926 .visa-req-xxx-lines-v914,
  html body.sidebar-standard-v935.visa-req-left-lane-tight-v926 .visa-req-checker-flat-v914,
  html body.sidebar-standard-v935.visa-req-left-lane-tight-v926 .visa-checker-box,
  html body.sidebar-standard-v935.visa-req-left-lane-tight-v926 .visa-req-action-row-v914,
  html body.sidebar-standard-v935.visa-req-left-lane-tight-v926 .visa-req-link-row-v914{
    width:calc(100% - 68px) !important;
    max-width:calc(100% - 68px) !important;
  }

  /* Price Lists keeps its compact tables, but its sidebar edge aligns with the standard shell. */
  html body.sidebar-standard-v935.price-table-sidebar-lock-v918 .price-xxx-layout-v871{
    grid-template-columns:minmax(0, 1fr) var(--vge-sidebar-width-v935) !important;
    width:min(var(--vge-sidebar-shell-v935), calc(100vw - 56px)) !important;
    max-width:min(var(--vge-sidebar-shell-v935), calc(100vw - 56px)) !important;
    column-gap:var(--vge-sidebar-gap-v935) !important;
  }

  html body.sidebar-standard-v935.price-sidebar-nudge-v921 .price-xxx-sidebar-v871,
  html body.sidebar-standard-v935.price-sidebar-nudge-v921 .price-sidebar-emergency-standard-v889,
  html body.sidebar-standard-v935.price-sidebar-nudge-v921 .price-sidebar-v917{
    transform:none !important;
  }
}

/* Stack consistently below the same breakpoint as Emergency Visa instead of letting the sidebar overlap. */
@media (max-width: 980px){
  html body.sidebar-standard-v935 .emergency-article-layout-v787FR,
  html body.sidebar-standard-v935 .arrival-xxx-layout-v829,
  html body.sidebar-standard-v935 .departure-xxx-layout-v830,
  html body.sidebar-standard-v935 .arrival-layout-v787GW,
  html body.sidebar-standard-v935 .booking-guide-layout-v878,
  html body.sidebar-standard-v935 .refund-guide-layout-v879,
  html body.sidebar-standard-v935 .privacy-guide-layout-v880,
  html body.sidebar-standard-v935 .speedup-article-container-v806,
  html body.sidebar-standard-v935 .speedup-two-column-v806,
  html body.sidebar-standard-v935 .correction-xxx-layout-v828,
  html body.sidebar-standard-v935 .evisa-reference-layout-v803,
  html body.sidebar-standard-v935 .visa-info-xxx-layout-v835,
  html body.sidebar-standard-v935 .working-layout-v814,
  html body.sidebar-standard-v935 .guide-shell-sidebar-v870,
  html body.sidebar-standard-v935 .useful-guide-shell-v890,
  html body.sidebar-standard-v935 .visa-req-linear-layout-v914,
  html body.sidebar-standard-v935 .visa-req-xxx-layout-v872,
  html body.sidebar-standard-v935 .price-xxx-layout-v871,
  html body.sidebar-standard-v935 .voa-article-shell-v787GN{
    grid-template-columns:1fr !important;
    width:min(100%, calc(100vw - 32px)) !important;
    max-width:min(100%, calc(100vw - 32px)) !important;
    gap:22px !important;
  }

  html body.sidebar-standard-v935 .emergency-sidebar-v787FR,
  html body.sidebar-standard-v935 aside.emergency-sidebar-v787FR{
    grid-column:1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    position:static !important;
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:16px !important;
  }
}

@media (max-width: 680px){
  html body.sidebar-standard-v935 .emergency-sidebar-v787FR,
  html body.sidebar-standard-v935 aside.emergency-sidebar-v787FR{
    grid-template-columns:1fr !important;
  }
}
