/* ─────────────────────────────────────────────────────────
   Project Kestrel — Daybreak Theme
   ───────────────────────────────────────────────────────── */

:root {
  /* Backgrounds */
  --bg:           #f2ede4;  /* warm paper — page background */
  --panel:        #ffffff;  /* sidebar, cards, header */

  /* Text */
  --ink:          #1c1c18;  /* primary text */
  --muted:        #7a7a6a;  /* secondary text */
  --muted-light:  #b0a898;  /* labels, timestamps, tertiary */

  /* Borders */
  --border:       rgba(0, 0, 0, 0.07);
  --border-mid:   rgba(0, 0, 0, 0.10);

  /* Green — primary accent */
  --green:        #2d6a35;
  --green-dim:    rgba(45, 106, 53, 0.10);

  /* Orange — picks, draft state, secondary CTA */
  --orange:       #d46b2a;
  --orange-dim:   rgba(212, 107, 42, 0.08);

  /* Sky — links, URLs */
  --sky:          #2b5a8f;
  --sky-dim:      rgba(43, 90, 143, 0.10);

  /* Semantic */
  --like-red:     #c0303a;
  --like-red-dim: rgba(192, 48, 58, 0.09);

  /* Typography */
  --font-ui:      'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-serif:   'Source Serif 4', Georgia, 'Times New Roman', serif;
  /* Alias used by dialog headings, banners, and any other display-tier
     copy. Resolves to the serif brand font so modals match the perch
     sidebar title (.p-sb-title) and the perch share dialog heading. */
  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

/* ─ Light scrollbars ─ */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.14);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.22);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.14) var(--bg);
}

.btn.primary {
  background: var(--green);
  color: #fff;
}
.btn.primary:hover {
  background: #245529;
}

.btn.secondary,
.btn.ghost {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border-mid);
}
.btn.secondary:hover,
.btn.ghost:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* ── Shared "ALPHA" / experimental-feature chip ── */
.p-alpha-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(78, 145, 152, 0.12);
  color: #2f6770;
  border: 1px solid rgba(78, 145, 152, 0.28);
  vertical-align: middle;
  white-space: nowrap;
  flex-shrink: 0;
}
.p-alpha-chip::before { content: '●'; font-size: 6px; }

.p-alpha-advisory {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-style: italic;
  color: var(--muted);
  background: rgba(78, 145, 152, 0.06);
  border-left: 2px solid rgba(78, 145, 152, 0.45);
  padding: 7px 11px;
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
  margin: 0;
}
