/* ════════════════════════════════════════════════════════════
   Demo overrides — fa que cada "pàgina" del flux ocupi
   tota la finestra (sense chrome del document de mockups)
   ═══════════════════════════════════════════════════════════ */
html, body {
  margin: 0; padding: 0;
  min-height: 100vh;
  background: var(--bp-grey-50);
  font-family: var(--bp-font-body);
  color: var(--bp-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }

/* The desktop app fills the viewport */
.demo-shell {
  min-height: 100vh;
  background: var(--bp-white);
}

/* Make the dk-app fill its container even though it originally
   was constrained inside a desktop-frame in the mockups doc. */
.demo-shell .dk-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Stretch the main flow areas so the cream cart sidebar
   reaches the bottom of the viewport */
.demo-shell .dk-flow,
.demo-shell .dk-dashboard,
.demo-shell .dk-grid {
  flex: 1;
}

/* Top "demo strip" — pinned bar that explains this is a clickable
   demo + lets the client jump between branches. */
.demo-strip {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bp-ink);
  color: var(--bp-white);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--bp-font-display);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 700;
}
.demo-strip .ds-tag {
  background: var(--bp-red);
  padding: 4px 10px;
  letter-spacing: 0.12em;
}
.demo-strip .ds-title {
  font-weight: 700;
  letter-spacing: 0.04em;
}
.demo-strip .ds-grow { flex: 1; }
.demo-strip a, .demo-strip button {
  color: var(--bp-white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 12px;
  font-family: inherit; font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.demo-strip a:hover, .demo-strip button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}
.demo-strip .branch-menu {
  position: relative;
}
.demo-strip .branch-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 10px; letter-spacing: 0.08em;
  display: inline-flex; align-items: center; gap: 6px;
}
.demo-strip .branch-menu summary::-webkit-details-marker { display: none; }
.demo-strip .branch-menu[open] summary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}
.demo-strip .branch-menu .menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bp-white);
  color: var(--bp-ink);
  min-width: 320px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  padding: 8px;
  z-index: 100;
}
.demo-strip .branch-menu .menu a {
  display: block;
  color: var(--bp-ink);
  background: transparent;
  border: none;
  padding: 10px 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 12px;
  text-align: left;
}
.demo-strip .branch-menu .menu a:hover {
  background: var(--bp-cream);
  border-color: transparent;
}
.demo-strip .branch-menu .menu .b {
  font-family: var(--bp-font-display);
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--bp-grey-500);
  padding: 8px 12px 4px;
  border-top: 1px solid var(--bp-grey-100);
  margin-top: 4px;
}
.demo-strip .branch-menu .menu .b:first-child {
  border-top: none; margin-top: 0;
}

/* Make all interactive buttons feel clickable in the demo */
.demo-shell button:not([disabled]),
.demo-shell .kid-pick,
.demo-shell .cat-card,
.demo-shell .combo-card:not(.disabled),
.demo-shell .mat-row,
.demo-shell .auth-row,
.demo-shell .opt-card-dk,
.demo-shell .slot-week .slot:not(.unavail),
.demo-shell .dk-insc-card,
.demo-shell .dk-topbar nav a,
.demo-shell .dk-sidebar .nav-item {
  transition: transform 0.06s ease, background-color 0.12s ease, border-color 0.12s ease;
}
.demo-shell .btn-primary:hover:not([disabled]) { filter: brightness(0.92); }
.demo-shell .btn-ghost:hover:not([disabled]) { background: var(--bp-cream); }
.demo-shell .dk-topbar nav a:hover { opacity: 1; }
.demo-shell .kid-pick:hover:not(.on) { border-color: var(--bp-grey-500); }
.demo-shell .cat-card:hover { background: var(--bp-cream); }
.demo-shell .combo-card:hover:not(.on):not(.disabled) { border-color: var(--bp-ink); }

/* All anchors that look like buttons should behave like links */
a.btn-primary, a.btn-ghost, a.btn-text {
  text-decoration: none;
}
