/* gen6-sheet: the one bottom sheet for the phone map tools (js/gen6-sheet.js). 2026-11-13.
   Lives inside a positioned map frame. The frame sets --g6sh-covered (how many pixels the sheet covers) so the layer row and the
   zoom buttons ride above it. Tokens: the theme's ink, sky and sand values. A page creates the sheet only on a phone and hides it
   again on a wider screen (see gen6-waterway.css and gen6-flood-map.css). */
@media all {
  .g6sh {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1300;
    background: #fff; color: #2c3e50;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -2px 6px rgba(8, 17, 31, .08), 0 -14px 36px rgba(8, 17, 31, .2);
    will-change: transform;
    font-family: var(--font-body, Manrope, sans-serif);
  }
  .g6sh[hidden] { display: none; }
  .g6sh-head { position: relative; flex: 0 0 auto; padding: 22px 56px 12px 16px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
  .g6sh-peek { min-width: 0; }
  .g6sh-handle, .g6sh-close, .g6sh-btn { touch-action: manipulation; }
  .g6sh-handle {
    position: absolute; z-index: 2; top: 0; left: 56px; right: 56px; height: 44px; padding: 0; border: 0; background: transparent;
    display: flex; align-items: flex-start; justify-content: center; cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent;
  }
  .g6sh-grip { display: block; width: 44px; height: 5px; margin-top: 8px; border-radius: 999px; background: #b9c6d6; transition: background .15s; }
  .g6sh-handle:active .g6sh-grip { background: #095e93; }
  .g6sh.is-flat .g6sh-handle { pointer-events: none; }
  .g6sh.is-flat .g6sh-grip { background: #dde6ef; }
  .g6sh-close {
    position: absolute; z-index: 3; top: 4px; right: 6px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: #56698a; display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .g6sh-close svg { width: 16px; height: 16px; }
  .g6sh-close:active { background: #eaf4fc; color: #095e93; }
  .g6sh-body {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 4px 16px 16px; border-top: 1px solid #e6edf4; outline: none;
  }
  .g6sh[data-state="peek"] .g6sh-body { visibility: hidden; }
  .g6sh-close:focus-visible, .g6sh-body:focus-visible, .g6sh a:focus-visible, .g6sh button:focus-visible {
    outline: 3px solid #2b80bb; outline-offset: -3px; border-radius: 12px;
  }
  .g6sh .g6sh-handle:focus-visible { outline: none !important; box-shadow: none !important; background: transparent !important; }
  .g6sh .g6sh-handle:focus-visible .g6sh-grip { background: #095e93; outline: 3px solid #2b80bb; outline-offset: 5px; }
  .g6sh-body a { color: #095e93; font-weight: 700; text-underline-offset: 3px; }
  /* shared building blocks the pages use inside the sheet */
  .g6sh-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid #095e93; border-radius: 999px;
    background: #fff; color: #095e93; font: 700 16px/1 var(--font-body, Manrope, sans-serif); cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: background .12s, color .12s, transform .08s;
  }
  .g6sh-btn:active { background: #095e93; color: #fff; transform: scale(.98); }
  .g6sh-btn--fill { background: #095e93; color: #fff; }
  .g6sh-btn--fill:active { background: #074a75; }
  a.g6sh-btn { text-decoration: none; }
  .g6sh a.g6sh-btn--fill, .g6sh-body a.g6sh-btn--fill { color: #fff !important; }
  .g6sh a.g6sh-btn:not(.g6sh-btn--fill) { color: #095e93; }
  .g6sh-body h4 { margin: 18px 0 6px; color: #56698a; font: 700 13px/1.2 var(--font-body, Manrope, sans-serif); letter-spacing: .08em; text-transform: uppercase; }
  .g6sh-body p { margin: 8px 0 0; font: 400 16px/1.5 var(--font-body, Manrope, sans-serif); }
}
@media (prefers-reduced-motion: reduce) { .g6sh, .g6sh * { transition: none !important; } }
@media print { .g6sh { display: none !important; } }
