/* Shared base reset for pages that use the .app-nav navbar (navbar.css) -
   home/dashboard/search. Cached once by the browser, reused on every
   subsequent page navigation - unlike inline <style> blocks, which get
   re-downloaded (as part of the HTML) on every single page load with no
   cache reuse across pages. Pages with their own full design system
   (explore.css, map.css) don't load this file. */

body { font-family: system-ui, sans-serif; margin: 0; color: #222; }

/* Real page <h1> on tool pages that have no natural place for a big visible
   headline (filter-first layouts like Explore/Search) - present for SEO/
   screen readers, not shown visually, since the page's own filter form is
   the actual first thing a sighted user should see. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Shared scroll-in entrance animation - used by scroll-animate.js (most
   pages sharing this base.css) and home-animate.js (homepage's own
   variant). The .animate-on-scroll class is only ever added BY those
   scripts, never present in server-rendered HTML, so a client with no JS
   (or no IntersectionObserver) never sees this rule apply at all - no
   noscript fallback needed, the page is simply fully visible immediately. */
.animate-on-scroll { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.animate-on-scroll.in-view { opacity: 1; transform: translateY(0); }

/* Shared address-typeahead suggestion box - see address-typeahead.js,
   used on both the homepage demo search and the atskaite address field.
   Only position is shared here - flex/width sizing is context-specific
   (home.css/.demo-form is a row, report.css/.report-form is a column) and
   set alongside each page's own input styling instead. */
.addr-typeahead-anchor { position: relative; }
.addr-suggestions {
  display: none; position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px;
  background: #fff; border: 1px solid var(--line, #e2e6ea); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(16,24,40,.14); z-index: 40; max-height: 320px; overflow-y: auto;
}
.addr-suggestion {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--line, #eef1f4);
}
.addr-suggestion:last-child { border-bottom: none; }
.addr-suggestion:hover { background: #faf6ee; }
.addr-suggestion-text { font-size: 14px; font-weight: 600; color: #12293a; }
.addr-suggestion-facts { font-size: 12.5px; color: var(--ink-faint, #6b7684); white-space: nowrap; flex-shrink: 0; }
