/* ARCHINFOR v1.28: current site ONLY. Preserve v1.27 search behaviour.
   - Bring hero text to top of the fixed right sidebar
   - Remove external guide section and full-document scrolling
   - Single scroll inside the right sidebar when available height is insufficient
 */
html, body {height:100%;max-height:100%;overflow:hidden;overscroll-behavior:none;}
body {margin:0;}
.app-shell {
  height:100vh;
  height:100dvh;
  min-height:0;
  max-height:100dvh;
  overflow:hidden;
}
.topbar {
  height:69px;
  min-height:69px;
  position:relative;
}
.topbar .brand {min-width:0;}
.topbar .top-right {margin-left:auto;}
.main-layout {flex:1 1 auto;min-height:0;overflow:hidden;}
.main-layout > .map-wrap {min-height:0;height:auto;overflow:hidden;}
.main-layout > .sidebar {min-height:0;max-height:100%;overflow:hidden;}
.sidebar .side-scroll {
  min-height:0;
  height:100%;
  max-height:100%;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
  padding-bottom:0;
}
/* User-requested heading returns to the right pane BEFORE 02 range controls. */
.sidebar .sidebar-hero-v128 {
  display:block;
  margin:0;
  padding:21px 0 19px;
  flex:none;
  max-width:none;
  min-width:0;
  border:0;
  border-bottom:1px solid var(--line);
  overflow:visible;
}
.sidebar .sidebar-hero-v128 .eyebrow {
  font-size:9px;
  line-height:1.4;
  letter-spacing:1.45px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.sidebar .sidebar-hero-v128 .eyebrow span {font-size:9px;letter-spacing:0;}
.sidebar .sidebar-hero-v128 h1 {
  color:#172338;
  margin:9px 0 8px;
  font-size:22px;
  font-weight:800;
  letter-spacing:-1.1px;
  line-height:1.35;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:break-word;
}
.sidebar .sidebar-hero-v128 h1 em {font-style:normal;color:#2479cd;}
.sidebar .sidebar-hero-v128 p {
  color:#8391a3;
  font-size:10.25px;
  margin:0;
  line-height:1.65;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
}
.sidebar .sidebar-hero-v128 p br {display:block;}
/* The first content section now follows the new sidebar hero. */
.sidebar .side-scroll > .sidebar-hero-v128 + .panel {padding-top:20px;}
/* The CAD export remains inside the same right-pane scroll container. */
.sidebar .side-scroll > .download-panel {
  position:static;
  margin-bottom:0;
}
/* Avoid artificial page expansion from the previously appended guide section. */
.guide-section {display:none!important;}
@media (min-width:701px) and (max-width:980px) {
  .sidebar .sidebar-hero-v128 h1 {font-size:20px;}
  .sidebar .sidebar-hero-v128 p {font-size:10px;}
}
@media (max-width:700px) {
  /* Previous releases switched to a long document at mobile widths.
     Keep a full-screen map + independently scrolling controls instead. */
  html,body {overflow:hidden;}
  .app-shell {height:100dvh;min-height:0;overflow:hidden;}
  .topbar {height:60px;min-height:60px;flex-shrink:0;}
  .main-layout {display:flex;flex-direction:column;height:auto;min-height:0;overflow:hidden;}
  .main-layout > .map-wrap {
    order:1;
    flex:0 0 45%;
    height:auto;
    min-height:0;
    max-height:50%;
  }
  .main-layout > .sidebar {
    order:2;
    flex:1 1 55%;
    height:auto;
    min-height:0;
    max-height:none;
    overflow:hidden;
    border-top:1px solid var(--line);
  }
  .sidebar .side-scroll {
    flex:1 1 auto;
    height:100%;
    max-height:100%;
    overflow-y:auto;
    padding-bottom:0;
  }
  .sidebar .sidebar-hero-v128 {padding:15px 0 14px;}
  .sidebar .sidebar-hero-v128 h1 {font-size:18px;line-height:1.4;}
  .sidebar .sidebar-hero-v128 p {font-size:9.5px;}
}
@media (max-height:650px) and (min-width:701px) {
  .topbar {height:59px;min-height:59px;}
  .sidebar .sidebar-hero-v128 {padding-top:12px;padding-bottom:12px;}
  .sidebar .sidebar-hero-v128 h1 {font-size:19px;}
}
