/* Product shell: layout glue on top of vendored Bootstrap (CSS only, no Bootstrap JavaScript).
   Dropdowns are <details> elements, so they work without scripts and under a strict CSP. */

.shell-body {
  background: var(--bs-body-bg);
}

.shell-header {
  background: var(--bs-tertiary-bg);
  flex-wrap: wrap;
  row-gap: 0.25rem;
}

.shell-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.shell-main-nav .navbar-nav,
.shell-menus {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.shell-menus {
  margin-left: auto;
}

.shell-dropdown {
  position: relative;
}

.shell-dropdown > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.shell-dropdown > summary::-webkit-details-marker {
  display: none;
}

.shell-dropdown > summary::after {
  content: "";
  display: inline-block;
  margin-left: 0.4em;
  vertical-align: 0.2em;
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-left: 0.3em solid transparent;
}

.shell-dropdown[open] > .dropdown-menu {
  display: block;
  position: absolute;
  right: 0;
  left: auto;
  z-index: 1000;
}

.shell-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.shell-messages {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.shell-footer {
  text-align: center;
  color: var(--bs-secondary-color);
  padding: 1rem 0 2rem;
}

/* Status badges on form lists. */
.shell-status-published {
  color: #0f5132;
  background: #d1e7dd;
}

.shell-status-draft {
  color: #41464b;
  background: #e2e3e5;
}

.shell-status-closed {
  color: #842029;
  background: #f8d7da;
}

.shell-copy-field {
  font-family: var(--bs-font-monospace);
  font-size: 0.875rem;
}

.shell-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--bs-secondary-color);
}
