/* ================================================================
   DECOHERENT SOLUTIONS — mobile.css
   Applies at max-width: 768px via media query in HTML.
   Contains overrides only. Never duplicates desktop rules.
   ================================================================ */


/* ----------------------------------------------------------------
   CONTAINER — full width, no side chrome
   ---------------------------------------------------------------- */

#container {
  width: 100%;
  border-left: none;
  border-right: none;
  box-shadow: none;
}


/* ----------------------------------------------------------------
   BANNER — reduced height on small screens
   ---------------------------------------------------------------- */

#banner-link {
  height: 80px;
}


/* ----------------------------------------------------------------
   PAGE LAYOUT — single column block
   ---------------------------------------------------------------- */

#page-layout {
  display: block;
}


/* ----------------------------------------------------------------
   SIDEBAR TOGGLE — visible on mobile
   Injected by nav.js before #site-sidebar when sidebar exists.
   ---------------------------------------------------------------- */

#sidebar-toggle {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  background-color: var(--bg-sidebar);
  color: var(--text-primary);
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-align: left;
}

#sidebar-toggle:hover {
  background-color: var(--sidebar-hover-bg);
}


/* ----------------------------------------------------------------
   SIDEBAR — fixed overlay, off-screen by default
   ---------------------------------------------------------------- */

#site-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 500;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border);
}

#site-sidebar.sidebar-open {
  transform: translateX(0);
}


/* ----------------------------------------------------------------
   MAIN CONTENT — full width, tighter padding
   ---------------------------------------------------------------- */

#main-content {
  padding: 1rem 1.25rem;
}


/* ----------------------------------------------------------------
   OPTIONS PANEL — full width on small screens
   ---------------------------------------------------------------- */

#options-panel {
  right: 0;
  left: 0;
  min-width: unset;
  border-left: none;
  border-right: none;
}


/* ----------------------------------------------------------------
   BACK TO TOP — tuck closer to edge on mobile
   ---------------------------------------------------------------- */

#back-to-top {
  bottom: 1rem;
  right: 1rem;
}
