/* ARCHINFOR v1.26 — three layout-only adjustments (CURRENT v1.23/v1.25 branch)
 * 1. Move workspace hero text into the header.
 * 2. Right sidebar + CAD Export use ONE continuous vertical scroll.
 * 3. Floating expanded search width ~70% of v1.25 (425 -> 300px).
 * The app.js, dxf.js, API/auth files and national conversion tools are untouched.
 */

/* 1. Header: move the existing message next to the brand, not as another sidebar card. */
.topbar {
  height: 81px;
  min-height: 81px;
  gap: 16px;
}
.topbar .brand {flex: 0 0 auto;}
.topbar .header-hero {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 665px;
  padding: 0;
  margin: 0 0 0 clamp(15px, 7vw, 140px);
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
}
.topbar .header-hero .eyebrow {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 1.4px;
  line-height: 1.2;
}
.topbar .header-hero .eyebrow span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .5px;
}
.topbar .header-hero h1 {
  margin: 1px 0;
  font-size: 18px;
  letter-spacing: -.65px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar .header-hero p {
  margin: 0;
  color: #7a8b9e;
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar .header-hero p br { display: none; }
.topbar .top-right { flex: 0 0 auto; margin-left: auto; }

/* 2. Exactly one vertical scroll mechanism in the right sidebar.
 * The download panel is now the LAST CHILD inside .side-scroll. */
.sidebar {overflow: hidden;}
.sidebar .side-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  padding: 0 24px 0;
  scrollbar-width: thin;
  scrollbar-color: #c5d1df transparent;
}
.sidebar .side-scroll > .panel:first-child {padding-top: 23px;}
.sidebar .side-scroll > .download-panel {
  position: static;
  width: auto;
  margin: 0 -24px;
  box-shadow: none;
  flex-shrink: 0;
}
/* Parcel list previously had its own 225px scroll; remove it so that the
 * right sidebar (range tools, parcel list and export) is one long document. */
.sidebar .parcel-list {
  max-height: none;
  height: auto;
  overflow: visible;
}

/* 3. v1.25 search overlay: collapsed remains small, expanded is ~70% of 425px. */
.arch-search-dock {
  width: min(250px, calc(100% - 32px));
  max-width: calc(100% - 32px);
}
.arch-search-dock.is-expanded {width: min(300px, calc(100% - 32px));}
.arch-search-dock .search-result-info {min-width: 0;overflow-wrap: anywhere;}
.arch-search-dock .search-result-info b {overflow-wrap: anywhere;}
.arch-search-dock .campus-place-item b {overflow-wrap: anywhere;}

@media (max-width: 1200px) and (min-width: 701px) {
  .topbar { padding: 0 17px; }
  .topbar .brand {min-width: 190px;}
  .topbar .header-hero {margin-left: 6px;}
  .topbar .header-hero h1 {font-size: 16px;}
  .topbar .header-hero p {font-size: 9px;}
}
@media (max-width: 980px) and (min-width: 701px) {
  .sidebar .side-scroll {padding-left:18px;padding-right:18px;}
  .sidebar .side-scroll > .download-panel {margin-left:-18px;margin-right:-18px;}
  .arch-search-dock {right: 12px; width:min(230px,calc(100% - 24px));}
  .arch-search-dock.is-expanded {width:min(285px,calc(100% - 24px));}
  .topbar .header-hero p {display:none;}
  .topbar .brand {min-width:160px;}
  .topbar .top-right {gap:8px;}
}
@media (max-width: 700px) {
  /* Mobile keeps the original map-first stacking and a single natural page
     scroll; avoid a scrollable nested sidebar. */
  .topbar {height: 64px; min-height:64px; padding:0 12px; gap:9px;}
  .topbar .brand {min-width: 118px; gap: 6px;}
  .topbar .brand-mark {width:25px;height:25px;}
  .topbar .brand strong {font-size:14px;}
  .topbar .brand small {font-size:7px;letter-spacing:1px;}
  .topbar .header-hero {margin:0;gap:1px;}
  .topbar .header-hero .eyebrow, .topbar .header-hero p {display:none;}
  .topbar .header-hero h1 {font-size:11px;letter-spacing:-.4px;}
  .topbar .top-right {gap:4px;}
  .topbar .api-badge {font-size:9px;padding:6px;}
  .sidebar {overflow: visible;}
  .sidebar .side-scroll {overflow: visible;max-height:none;padding:0 18px;}
  .sidebar .side-scroll > .download-panel {margin-left:-18px;margin-right:-18px;}
  .arch-search-dock {top:10px;right:10px;width:min(235px,calc(100% - 20px));}
  .arch-search-dock.is-expanded {width:min(300px,calc(100% - 20px));}
}
@media (max-width: 400px) {
  .topbar .top-right .api-badge {display:none;}
}
