/* SurfLocal Responsive Nav02. Main owner navigation only; existing palettes
 * and desktop geometry are left to their current appearance stylesheets.
 * Controller markers are applied only to the reviewed owner/demo shells.
 */
html[data-sl-rnav-document] [data-sl-rnav] [data-sl-rnav-toggle="02"] {
  display: none !important;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--slo-line, var(--ot-line, #a9bbce));
  border-color: var(--slo-line, var(--ot-line, #a9bbce)) !important;
  border-radius: 10px;
  background: var(--slo-raised, var(--ot-raised, #f5f8fc)) !important;
  color: var(--slo-text, var(--ot-text, #17293f)) !important;
  -webkit-text-fill-color: var(--slo-text, var(--ot-text, #17293f)) !important;
  text-shadow: none !important;
  filter: none !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
html[data-sl-rnav-document] [data-sl-rnav] [data-sl-rnav-toggle="02"]:focus-visible {
  outline: 3px solid var(--slo-focus, var(--ot-focus, #0757a6));
  outline-offset: 3px;
}
html[data-sl-rnav-document] [data-sl-rnav] .sl-rnav-toggle-mark02 { font-size: 19px; line-height: 1; }

@media screen and (max-width: 900px) {
  html[data-sl-rnav-document] [data-sl-rnav="v2"] {
    position: relative;
    top: auto;
    height: auto;
    min-width: 0;
    max-height: none;
    overflow: visible;
  }
  html[data-sl-rnav-document] [data-sl-rnav] [data-sl-rnav-grid],
  html[data-sl-rnav-document] [data-sl-rnav="v2"][data-sl-rnav-grid="direct"] {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
  }
  html[data-sl-rnav-document] [data-sl-rnav="v2"] [data-sl-rnav-grid="nav"] {
    margin-top: 12px;
  }
  html[data-sl-rnav-document] [data-sl-rnav="v2"] [data-sl-rnav-group="flat"] {
    display: contents !important;
  }
  html[data-sl-rnav-document] [data-sl-rnav="v2"] [data-sl-rnav-brand],
  html[data-sl-rnav-document] [data-sl-rnav="v2"] > [data-sl-rnav-toggle="02"],
  html[data-sl-rnav-document] [data-sl-rnav="v2"] [data-sl-rnav-group="section"] {
    grid-column: 1 / -1;
    min-width: 0;
  }
  html[data-sl-rnav-document] [data-sl-rnav="v2"] [data-sl-rnav-brand] { margin: 0 0 4px; }
  html[data-sl-rnav-document] [data-sl-rnav="v2"] .bc-brand { min-width: 0; }
  html[data-sl-rnav-document] [data-sl-rnav="v2"] .bc-brand span { font-size: 14px; }
  html[data-sl-rnav-document] [data-sl-rnav="v2"] .bc-logo { flex-shrink: 0; }

  html[data-sl-rnav-document] [data-sl-rnav] a[data-sl-rnav-cell],
  html[data-sl-rnav-document] body#sl-classic [data-sl-rnav="classic"] .toolgrid[data-sl-rnav-grid] a[data-sl-rnav-cell] {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 9px 8px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: break-word;
  }
  html[data-sl-rnav-document] [data-sl-rnav="v2"] a[data-sl-rnav-cell] > span { min-width: 0; }
  html[data-sl-rnav-document] [data-sl-rnav="v2"] a[data-sl-rnav-cell] > em { font-size: 14px !important; }
  html[data-sl-rnav-document] [data-sl-rnav="v2"] [data-sl-rnav-group="section"] > summary {
    min-height: 44px !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
  }
  html[data-sl-rnav-document] [data-sl-rnav="classic"] .toolgrid[data-sl-rnav-grid] { margin-top: 10px; }
}

@media screen and (max-width: 600px) {
  /* Hide only when a working, bound control has marked this menu. */
  html[data-sl-rnav-document] [data-sl-rnav] [data-sl-rnav-toggle="02"] { display: inline-flex !important; }
  html[data-sl-rnav-document] [data-sl-rnav] > .sl-rnav-toggle02 { width: auto; max-width: 100%; justify-self: start; }
  html[data-sl-rnav-document] [data-sl-rnav] [data-sl-rnav-grid],
  html[data-sl-rnav-document] [data-sl-rnav="v2"][data-sl-rnav-grid="direct"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html[data-sl-rnav-document] [data-sl-rnav][data-sl-rnav-open="false"] > [data-sl-rnav-controlled] {
    display: none !important;
  }
  html[data-sl-rnav-document] [data-sl-rnav="v2"] .bc-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  html[data-sl-rnav-document] [data-sl-rnav="v2"] .bc-brand-row .bc-brand { margin: 0; }
  html[data-sl-rnav-document] [data-sl-rnav="v2"] .mobile-menu-toggle { flex-shrink: 0; }
  /* On the photographed phone views the tall sticky demo controls cover the
   * owner heading during scroll. Let that header scroll with these two shells.
   */
  html[data-sl-rnav-document="demo"][data-sl-rnav-active="v2"] .demo-bar,
  html[data-sl-rnav-document="demo"][data-sl-rnav-active="classic"] .demo-bar { position: relative; top: auto; }
  html[data-sl-rnav-document="demo"][data-sl-rnav-active="v2"] .demo-controls button[data-demo-action],
  html[data-sl-rnav-document="demo"][data-sl-rnav-active="classic"] .demo-controls button[data-demo-action] {
    padding-inline: 4px !important;
    white-space: nowrap !important;
    min-height: 44px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-sl-rnav-document] [data-sl-rnav] [data-sl-rnav-toggle="02"] { transition: none; }
}
@media (forced-colors: active) {
  html[data-sl-rnav-document] [data-sl-rnav] [data-sl-rnav-toggle="02"] { border-color: ButtonText !important; background: ButtonFace !important; color: ButtonText !important; -webkit-text-fill-color: ButtonText !important; }
  html[data-sl-rnav-document] [data-sl-rnav] [data-sl-rnav-toggle="02"]:focus-visible { outline-color: Highlight; }
}
@media print {
  html[data-sl-rnav-document] [data-sl-rnav] [data-sl-rnav-toggle="02"] { display: none !important; }
}

/* Source02 verified admin shells. These additions cannot match owner/demo
 * document modes and do not alter palettes, workspace controls, or frames.
 */
@media screen and (max-width: 900px) {
  html[data-sl-rnav-document="admin"] .admin-app,
  html[data-sl-rnav-document="admin-customer"] .bc-app {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: start;
    min-width: 0;
  }
  html[data-sl-rnav-document="admin"] .admin-app > aside.admin-sidebar[data-sl-rnav="admin"] {
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
    min-width: 0;
    overflow: visible;
  }
  html[data-sl-rnav-document="admin"] [data-sl-rnav="admin"] [data-sl-rnav-brand] { min-width: 0; margin-bottom: 10px; }
  html[data-sl-rnav-document="admin"] [data-sl-rnav="admin"] [data-sl-rnav-grid="admin"] { margin-top: 10px; }
  html[data-sl-rnav-document="admin"] [data-sl-rnav="admin"] [data-sl-rnav-heading] {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 8px 0 0;
    font-size: 14px !important;
    line-height: 1.3;
  }
  html[data-sl-rnav-document="admin"] [data-sl-rnav="admin"] a.admin-menu[data-sl-rnav-cell] > span,
  html[data-sl-rnav-document="admin"] [data-sl-rnav="admin"] a.admin-menu[data-sl-rnav-cell] > em {
    min-width: 0;
    font-size: 14px !important;
    line-height: 1.3 !important;
  }
  html[data-sl-rnav-document="admin"] [data-sl-rnav="admin"] a.admin-menu[data-sl-rnav-cell] > em,
  html[data-sl-rnav-document="admin-customer"] [data-sl-rnav="v2"] a[data-sl-rnav-cell] > em {
    flex-shrink: 0;
    white-space: nowrap !important;
  }
}
