/* ============================================================
   Blank Space — Pages (Session 2D)
   Module header + subtitle + mobile heartbeat is a pattern every
   future module page will reuse (7.5) — not Home-specific, hence its
   own stylesheet rather than extending components.css (2B) or
   layout.css (2C), which are owned by earlier, now-frozen sessions.
   ============================================================ */

.bs-module-header { margin-bottom: var(--space-5); }

.bs-module-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl-size);
  line-height: var(--text-2xl-lh);
  color: var(--text-primary);
  font-weight: 400;
}

.bs-module-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-lh);
  margin-top: var(--space-1);
}

.bs-home-section { margin-bottom: var(--space-6); }

/* HeartbeatIndicator lives in the sidebar on desktop (wired by app.js);
   on mobile the sidebar is hidden, so it returns to below each
   module's subtitle (7.5). */
.bs-mobile-heartbeat { display: none; margin-top: var(--space-3); }
@media (max-width: 899px) {
  .bs-mobile-heartbeat { display: block; }
}

.bs-show-more {
  display: block;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-sm-size);
  cursor: pointer;
  padding: var(--space-2) 0;
  text-decoration: underline;
}
.bs-show-more:hover { color: var(--text-primary); }

/* Today's Wins (5.1): 2px gold left border. Distinct purpose from the
   --accent left edge on an 'expanded' card (7A) — the two never
   co-occur since win cards aren't expandable. */
.bs-wins-section .bs-card { border-left: 2px solid var(--accent); }

/* --- Minimal PIN gate (9.9) ---
   No Phase 2 session explicitly owns a login screen (flagged to
   Anshu) — this unblocks end-to-end testing of session-authed reads
   without growing into a full page. Swap for something more
   considered whenever convenient. */
.bs-pin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.bs-pin-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  max-width: 280px;
}
.bs-pin-box label {
  font-size: var(--text-xs-size);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
.bs-pin-box input {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--text-lg-size);
  letter-spacing: 0.3em;
  text-align: center;
}
.bs-pin-box input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bs-pin-box button {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  color: var(--bg-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.bs-pin-error {
  color: var(--status-red);
  font-size: var(--text-xs-size);
  min-height: 16px;
  text-align: center;
}
