/* v914 — Visa Requirements XXX linear rebuild
   Purpose: remove wide table/card-style content from the main article and
   replace it with a narrow, icon-led XXX interface that cannot push into the sidebar. */

html body.visa-req-linear-v914,
html body.visa-req-linear-v914 *{
  box-sizing:border-box !important;
}

html body.visa-req-linear-v914 .visa-req-linear-layout-v914{
  display:grid !important;
  grid-template-columns:minmax(0, 860px) 320px !important;
  gap:30px !important;
  width:min(1240px, calc(100vw - 56px)) !important;
  max-width:1240px !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.visa-req-linear-v914 .visa-req-linear-main-v914,
html body.visa-req-linear-v914 .visa-req-linear-rail-v914{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
}

html body.visa-req-linear-v914 .visa-req-linear-rail-v914 > .visa-req-linear-section-v914{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:26px 0 !important;
  border-top:1px solid rgba(15,23,42,.11) !important;
  background:transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
}

html body.visa-req-linear-v914 .visa-req-linear-rail-v914 > .visa-req-linear-section-v914:first-child{
  border-top:0 !important;
  padding-top:12px !important;
}

html body.visa-req-linear-v914 .visa-req-linear-head-v914{
  display:grid !important;
  grid-template-columns:58px minmax(0,1fr) !important;
  gap:18px !important;
  align-items:start !important;
  width:100% !important;
  min-width:0 !important;
}

html body.visa-req-linear-v914 .visa-req-linear-icon-v914{
  width:58px !important;
  height:58px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:16px !important;
  background:#eef6ff !important;
  border:1px solid #cfe3ff !important;
  font-size:28px !important;
  line-height:1 !important;
  flex:0 0 auto !important;
}

html body.visa-req-linear-v914 .visa-req-linear-head-v914 h2{
  margin:0 0 8px !important;
  font-size:clamp(30px, 2.5vw, 42px) !important;
  line-height:1.1 !important;
  letter-spacing:-.035em !important;
  color:#071d53 !important;
  max-width:820px !important;
}

html body.visa-req-linear-v914 .visa-req-linear-head-v914 p{
  margin:0 !important;
  max-width:820px !important;
  font-size:18px !important;
  line-height:1.62 !important;
  color:#334155 !important;
}

html body.visa-req-linear-v914 .visa-req-xxx-lines-v914{
  margin:18px 0 0 76px !important;
  display:grid !important;
  gap:0 !important;
  width:calc(100% - 76px) !important;
  max-width:780px !important;
  min-width:0 !important;
  border-top:1px solid rgba(15,23,42,.09) !important;
}

html body.visa-req-linear-v914 .visa-req-xxx-lines-v914 p{
  display:grid !important;
  grid-template-columns:minmax(180px, .34fr) minmax(0, 1fr) !important;
  gap:20px !important;
  margin:0 !important;
  padding:15px 0 !important;
  border-bottom:1px solid rgba(15,23,42,.09) !important;
  font-size:17px !important;
  line-height:1.55 !important;
  color:#334155 !important;
  min-width:0 !important;
}

html body.visa-req-linear-v914 .visa-req-xxx-lines-v914 strong{
  color:#071d53 !important;
  font-weight:850 !important;
  min-width:0 !important;
}

html body.visa-req-linear-v914 .visa-req-xxx-lines-v914 span{
  min-width:0 !important;
  overflow-wrap:anywhere !important;
}

/* Flatten checker: preserve JS hooks, remove card-like frame. */
html body.visa-req-linear-v914 .visa-req-checker-flat-v914,
html body.visa-req-linear-v914 .visa-checker-box{
  margin:20px 0 0 76px !important;
  width:calc(100% - 76px) !important;
  max-width:780px !important;
  min-width:0 !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}

html body.visa-req-linear-v914 .visa-req-checker-form-v914,
html body.visa-req-linear-v914 .visa-checker-form{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto !important;
  gap:12px !important;
  align-items:end !important;
  width:100% !important;
  min-width:0 !important;
  padding:0 0 16px !important;
  border-bottom:1px solid rgba(15,23,42,.10) !important;
}

html body.visa-req-linear-v914 .visa-checker-form label{
  min-width:0 !important;
  margin:0 !important;
  font-weight:800 !important;
  color:#071d53 !important;
}

html body.visa-req-linear-v914 .visa-checker-form input,
html body.visa-req-linear-v914 .visa-checker-form select{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  height:46px !important;
  margin-top:6px !important;
}

html body.visa-req-linear-v914 .visa-checker-form .btn,
html body.visa-req-linear-v914 .visa-checker-form button{
  height:46px !important;
  white-space:nowrap !important;
  align-self:end !important;
}

html body.visa-req-linear-v914 .popular-country-list,
html body.visa-req-linear-v914 .visa-req-popular-flat-v914{
  margin:12px 0 0 !important;
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  max-width:100% !important;
}

html body.visa-req-linear-v914 .visa-result-area,
html body.visa-req-linear-v914 .visa-req-result-flat-v914{
  margin:16px 0 0 !important;
  max-width:100% !important;
}

html body.visa-req-linear-v914 .visa-result-area > *,
html body.visa-req-linear-v914 .visa-result-card,
html body.visa-req-linear-v914 .visa-result-plain-v914{
  border:0 !important;
  border-left:4px solid #0b63d8 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  background:#f2f8ff !important;
  padding:14px 16px !important;
  max-width:100% !important;
  min-width:0 !important;
}

html body.visa-req-linear-v914 table,
html body.visa-req-linear-v914 .visa-req-table-wrap-v886,
html body.visa-req-linear-v914 .visa-req-table-v886,
html body.visa-req-linear-v914 .visa-req-feature-grid-v886,
html body.visa-req-linear-v914 .visa-req-feature-v886,
html body.visa-req-linear-v914 .source-policy-section-v529U,
html body.visa-req-linear-v914 .working-visa-note-v610U,
html body.visa-req-linear-v914 .hard-nationality-note-v612U{
  display:none !important;
}

/* Sidebar stays in the proper right lane, but the main content never depends on its width. */
html body.visa-req-linear-v914 .visa-req-xxx-sidebar-v872,
html body.visa-req-linear-v914 .visa-req-emergency-sidebar-v886{
  grid-column:2 !important;
  width:320px !important;
  min-width:320px !important;
  max-width:320px !important;
  position:sticky !important;
  top:92px !important;
  align-self:start !important;
  z-index:2 !important;
}

html body.visa-req-linear-v914 .visa-req-action-row-v914{
  margin:20px 0 0 76px !important;
  display:flex !important;
  flex-wrap:wrap !important;
  gap:12px !important;
}

html body.visa-req-linear-v914 .visa-req-link-row-v914{
  margin:16px 0 0 76px !important;
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  max-width:780px !important;
}

html body.visa-req-linear-v914 .visa-req-link-row-v914 a{
  display:inline-flex !important;
  align-items:center !important;
  min-height:38px !important;
  padding:7px 13px !important;
  border-radius:999px !important;
  border:1px solid #cfe3ff !important;
  text-decoration:none !important;
  color:#0b63d8 !important;
  background:#fff !important;
  font-weight:800 !important;
}

@media (max-width:1279px){
  html body.visa-req-linear-v914 .visa-req-linear-layout-v914{
    grid-template-columns:1fr !important;
    width:min(1060px, calc(100vw - 40px)) !important;
    max-width:1060px !important;
    gap:22px !important;
  }

  html body.visa-req-linear-v914 .visa-req-xxx-sidebar-v872,
  html body.visa-req-linear-v914 .visa-req-emergency-sidebar-v886{
    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:820px){
  html body.visa-req-linear-v914 .visa-req-linear-layout-v914{
    width:min(100%, calc(100vw - 22px)) !important;
  }

  html body.visa-req-linear-v914 .visa-req-linear-head-v914{
    grid-template-columns:48px minmax(0,1fr) !important;
    gap:14px !important;
  }

  html body.visa-req-linear-v914 .visa-req-linear-icon-v914{
    width:48px !important;
    height:48px !important;
    font-size:24px !important;
  }

  html body.visa-req-linear-v914 .visa-req-linear-head-v914 h2{
    font-size:clamp(25px, 7vw, 34px) !important;
  }

  html body.visa-req-linear-v914 .visa-req-linear-head-v914 p{
    font-size:16px !important;
  }

  html body.visa-req-linear-v914 .visa-req-xxx-lines-v914,
  html body.visa-req-linear-v914 .visa-req-checker-flat-v914,
  html body.visa-req-linear-v914 .visa-checker-box,
  html body.visa-req-linear-v914 .visa-req-action-row-v914,
  html body.visa-req-linear-v914 .visa-req-link-row-v914{
    margin-left:0 !important;
    width:100% !important;
    max-width:100% !important;
  }

  html body.visa-req-linear-v914 .visa-req-xxx-lines-v914 p{
    grid-template-columns:1fr !important;
    gap:4px !important;
  }

  html body.visa-req-linear-v914 .visa-req-checker-form-v914,
  html body.visa-req-linear-v914 .visa-checker-form,
  html body.visa-req-linear-v914 .visa-req-xxx-sidebar-v872,
  html body.visa-req-linear-v914 .visa-req-emergency-sidebar-v886{
    grid-template-columns:1fr !important;
  }

  html body.visa-req-linear-v914 .visa-checker-form .btn,
  html body.visa-req-linear-v914 .visa-checker-form button{
    width:100% !important;
  }
}
