/* Cicada website shell — parent-owned navigation layer (CW-UX-1C-A).
   Colours match the authorised palette: deep purple #300950, vibrant #7540F5,
   persimmon #ED6942, bone #F7F4ED. CW-WEB-VISUAL-R1: every shell page now
   shares the main site-nav header; this sheet keeps the subordinate demo
   rows (breadcrumb, cross-demo links, page-level extras) beneath it. */

/* The shared site-nav is fixed 68px — clear it, and keep it above the demo
   surfaces (Leaflet controls reach z-index 1000 inside the Fieldwork map). */
body { padding-top: var(--nav-h, 68px); }
.site-nav { z-index: 1100; }

/* CW-WEB-10A-R1: contextual breadcrumb row — home > capability > subview. */
.cw-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 5px 20px;
  background: #300950;
  border-top: 1px solid rgba(247, 244, 237, 0.14);
  color: rgba(247, 244, 237, 0.72);
  font-size: 12.5px;
  line-height: 1.4;
}
/* CW-WEB-VISUAL-R1: breadcrumb + cross-demo rows stay subordinate to the
   brand and page content — present, quiet, never competing. */
.cw-crumbs a { color: rgba(247,244,237,.78); text-decoration: none; }
.cw-crumbs a:hover { text-decoration: underline; }
.cw-crumbs a:focus-visible { outline: 2px solid #ED6942; outline-offset: 2px; }
.cw-crumb-sep { color: rgba(247, 244, 237, 0.45); }
.cw-crumb-now { color: #ED6942; font-weight: 600; }
/* CW-WEB-VISUAL-R1: page-level demo links and the configuration badge move
   off the brand row and sit subordinate, right-aligned in the breadcrumb. */
.cw-crumbs-extra {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cw-crumbs-extra a { color: rgba(247,244,237,.78); text-decoration: none; }
.cw-crumbs-extra a:hover { text-decoration: underline; }
.cw-crumbs-extra a:focus-visible { outline: 2px solid #ED6942; outline-offset: 2px; }
@media (max-width: 720px) {
  .cw-crumbs { padding: 4px 14px; gap: 6px; font-size: 12px; }
  .cw-crumbs-extra { margin-left: 0; gap: 10px; }
}
.cw-shell-note {
  padding: 2px 10px;
  border: 1px solid rgba(185, 169, 242, 0.55);
  border-radius: 999px;
  color: #F7F4ED;
  white-space: nowrap;
}
.cw-shell-state {
  padding: 2px 10px;
  border-radius: 999px;
  background: #7540F5;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.cw-shell-links {
  margin-left: auto;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.app-shell { min-height: calc(100vh - 42px); }

/* CW-WEB-8: second-row cross-demonstration navigation — one consistent
   route between the four module demos and back to the product sections. */
.cw-demos {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 6px 20px 8px;
  background: #7540F5;
  font-size: 13px;
  line-height: 1.4;
}
.cw-demos-label {
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(247,244,237,.8);
  margin-right: 10px;
}
.cw-demos a {
  color: rgba(247,244,237,.85);
  text-decoration: none;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.cw-demos a:hover { background: rgba(48,9,80,.35); }
.cw-demos a:focus-visible { outline: 2px solid #ED6942; outline-offset: 1px; }
.cw-demos a[aria-current="true"] {
  background: #300950;
  color: #F7F4ED;
  font-weight: 700;
}
@media (max-width: 720px) {
  .cw-demos { gap: 2px; padding: 6px 14px 8px; }
  .cw-demos a { padding: 4px 10px; }
}
