/* grant-connect-deploy/css/workspace-status-banner.css
   ────────────────────────────────────────────────────────────────────────────
   WORKSPACE STATUS BANNER — D1 (Phase D, 2026-05-14)

   Persistent banner rendered below the back-strip when a grant's programStatus
   is not "active". Uses wsb- prefix. Matches Option 01 from the closed-grant
   treatment mockup (grant-status-options.html).

   Color conventions (matching the interstitial):
     amber = between-intakes / upcoming / paused
     gray  = closed / discontinued

   Slot: .wsp-status-banner-slot (inserted by workspace-pane.src.js into
   #workspace-pane-root between the back-strip and .wsp-layout).
   ──────────────────────────────────────────────────────────────────────── */

/* ── Banner slot ─────────────────────────────────────────────────────────── */
.wsp-status-banner-slot {
  background: var(--wsp-parchment, #FAF7F2);
}
.wsp-status-banner-slot:empty { display: none; }

/* ── Banner bar ──────────────────────────────────────────────────────────── */
.wsb-banner {
  max-width: var(--wsp-content-max, 1320px);
  margin: 0 auto;
  padding: 0 22px;
}

.wsb-banner__bar {
  margin-top: 16px;
  border-radius: 12px;
  border: 1px solid var(--wsb-line, #e6d49a);
  background: var(--wsb-bg, #fbf7e9);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0 16px;
  align-items: center;
  padding: 13px 16px 13px 14px;
  position: relative;
  overflow: hidden;
  transition: padding 0.18s ease;
}

/* left accent strip */
.wsb-banner__bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--wsb-accent, #b08300);
  border-radius: 12px 0 0 12px;
}

/* ── Expanded state (default) ────────────────────────────────────────────── */

.wsb-banner__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wsb-icon-bg, rgba(176, 131, 0, 0.14));
  color: var(--wsb-accent, #b08300);
}
.wsb-banner__icon svg { width: 16px; height: 16px; }

.wsb-banner__content { min-width: 0; }

.wsb-banner__head {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.wsb-banner__title {
  font-family: var(--wsp-font-display, "Fraunces", Georgia, serif);
  font-weight: 500;
  font-size: 15px;
  color: var(--wsp-ink, #1f2a24);
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.wsb-banner__pip {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wsb-accent, #b08300);
  flex-shrink: 0;
}

.wsb-banner__timing {
  font-family: var(--wsp-font-mono, "IBM Plex Mono", ui-monospace, monospace);
  font-size: 11.5px;
  color: var(--wsp-ink-3, #5e6b63);
  letter-spacing: 0.02em;
  line-height: 1.45;
  margin: 0;
}
.wsb-banner__timing strong {
  color: var(--wsb-accent, #b08300);
  font-weight: 500;
}

.wsb-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Banner CTA buttons ───────────────────────────────────────────────────── */
.wsb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--wsp-font-body, "DM Sans", system-ui, sans-serif);
  font-weight: 500;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
  white-space: nowrap;
  cursor: pointer;
}
.wsb-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

.wsb-btn--amber {
  background: #fff;
  border-color: var(--wsb-line, #e6d49a);
  color: var(--wsb-accent, #b08300);
}
.wsb-btn--amber:hover {
  background: var(--wsp-amber-l, #f6efd6);
  border-color: #d4b35a;
}

.wsb-btn--ghost {
  background: transparent;
  border-color: var(--wsp-rule-2, #d3ccba);
  color: var(--wsp-ink-3, #5e6b63);
}
.wsb-btn--ghost:hover {
  background: var(--wsp-paper, #FFFEF9);
  color: var(--wsp-ink-2, #3a4a42);
}

/* minimize button */
.wsb-banner__min {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--wsp-ink-3, #5e6b63);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0;
  transition: background 0.12s, color 0.12s;
}
.wsb-banner__min:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--wsp-ink, #1f2a24);
}
.wsb-banner__min:focus-visible {
  outline: 2px solid var(--wsp-forest, #2D6A4F);
  outline-offset: 2px;
}

/* ── Minimized / collapsed state ─────────────────────────────────────────── */
.wsb-banner__bar.is-min {
  grid-template-columns: auto 1fr auto;
  padding: 7px 14px 7px 10px;
}
.wsb-banner__bar.is-min::before { width: 3px; }
.wsb-banner__bar.is-min .wsb-banner__icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  margin-left: 0;
}
.wsb-banner__bar.is-min .wsb-banner__icon svg { width: 12px; height: 12px; }
.wsb-banner__bar.is-min .wsb-banner__title { font-size: 13px; }
.wsb-banner__bar.is-min .wsb-banner__pip { width: 5px; height: 5px; }
.wsb-banner__bar.is-min .wsb-banner__timing,
.wsb-banner__bar.is-min .wsb-banner__actions { display: none; }
.wsb-banner__bar.is-min .wsb-banner__min {
  width: auto;
  padding: 3px 8px;
  font-size: inherit;
  font-family: var(--wsp-font-mono, "IBM Plex Mono", ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wsp-ink-3, #5e6b63);
}
.wsb-banner__bar.is-min .wsb-banner__min svg { display: none; }

/* ── Gray variant (closed / discontinued) ────────────────────────────────── */
.wsb-banner__bar--gray {
  --wsb-bg: #f3f1ea;
  --wsb-line: #dcd8cc;
  --wsb-accent: var(--wsp-ink-4, #717e76);
  --wsb-icon-bg: rgba(94, 107, 99, 0.12);
}
.wsb-banner__bar--gray .wsb-banner__pip { background: var(--wsp-ink-4, #717e76); }
.wsb-banner__bar--gray .wsb-banner__timing strong { color: var(--wsp-ink-3, #5e6b63); }
.wsb-banner__bar--gray .wsb-btn--amber {
  border-color: var(--wsp-rule-2, #d3ccba);
  color: var(--wsp-ink-3, #5e6b63);
  background: #fff;
}
.wsb-banner__bar--gray .wsb-btn--amber:hover {
  background: var(--wsp-paper, #FFFEF9);
  color: var(--wsp-ink-2, #3a4a42);
}

/* ── Notify-me confirmed state ───────────────────────────────────────────── */
.wsb-btn--confirmed {
  background: var(--wsp-forest-ll, #f0f5f1);
  border-color: var(--wsp-forest, #2D6A4F);
  color: var(--wsp-forest-d, #1f4f3a);
  pointer-events: none;
  cursor: default;
}

/* ── Back-strip status chip ──────────────────────────────────────────────── */
/* Rendered inline inside .wsp-back-strip__inner for non-active grants. */
.wsp-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-family: var(--wsp-font-mono, "IBM Plex Mono", ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 500;
  padding: 3px 9px 3px 8px;
  border-radius: 999px;
  line-height: 1;
}
.wsp-status-chip__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* amber chip (between-intakes, upcoming, paused) — sits on the forest back-strip */
.wsp-status-chip--amber {
  background: rgba(176, 131, 0, 0.22);
  color: #f5d97a;  /* warm yellow that reads on forest green */
}
.wsp-status-chip--amber .wsp-status-chip__dot { background: #f5d97a; }

/* gray chip (closed, discontinued) — sits on the forest back-strip */
.wsp-status-chip--gray {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
}
.wsp-status-chip--gray .wsp-status-chip__dot { background: rgba(255, 255, 255, 0.55); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .wsb-banner { padding: 0 12px; }
  .wsb-banner__bar {
    grid-template-columns: auto 1fr;
    gap: 0 12px;
  }
  .wsb-banner__actions { display: none; }
  .wsb-banner__bar:not(.is-min) .wsb-banner__min { display: inline-flex; }
}

@media (max-width: 960px) {
  .wsb-banner__bar .wsb-btn { font-size: 12px; padding: 6px 10px; }
}
