/* ══════════════════════════════════════════════════════════════════
   /research/:ticker sleeve overlay styles (Phase G-1 2026-05-25)
   ──────────────────────────────────────────────────────────────────
   Token map aligned with the Three-Sleeve Mandate. Each sleeve
   ships a slate (Core), amber (Frontier), or warm-gray (Neutral)
   accent. The body[data-yb-sleeve] attribute drives the cascade.

   Visual layers:
     .tk-sleeve-badge   inline below the hero with the sleeve label
                        plus tagline.
     .tk-sleeve-banner  full-bleed banner for Neutral tickers
                        surfacing the "outside the YB playbook" cue.

   Voice contract. Zero em-dashes, zero prose semicolons.
   ═══════════════════════════════════════════════════════════════ */

/* Token defaults. Read by the badge + the banner. The body
   attribute overrides via the variant rules below. */
:root,
html[data-yb-theme="dark"] {
  --yb-sleeve-color:      #888888;
  --yb-sleeve-wash:       rgba(136, 136, 136, 0.18);
}

body[data-yb-sleeve="core"] {
  --yb-sleeve-color:  #2B4A63;
  --yb-sleeve-wash:   rgba(43, 74, 99, 0.22);
}
body[data-yb-sleeve="frontier"] {
  --yb-sleeve-color:  #B24A2F;
  --yb-sleeve-wash:   rgba(178, 74, 47, 0.20);
}
body[data-yb-sleeve="neutral"] {
  --yb-sleeve-color:  #6B6558;
  --yb-sleeve-wash:   rgba(107, 101, 88, 0.20);
}
body[data-yb-sleeve="watch"] {
  --yb-sleeve-color:  #888888;
  --yb-sleeve-wash:   rgba(136, 136, 136, 0.18);
}

/* ── Sleeve badge. Inline below the hero. ──────────────────────── */
.tk-sleeve-badge {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 26px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--yb-sleeve-color, #888);
  background: var(--yb-sleeve-wash, rgba(255, 255, 255, 0.02));
  border-top: 1px solid var(--line, rgba(184, 146, 58, 0.12));
  border-right: 1px solid var(--line, rgba(184, 146, 58, 0.12));
  border-bottom: 1px solid var(--line, rgba(184, 146, 58, 0.12));
  max-width: 720px;
}
.tk-sleeve-badge .tsb-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.tk-sleeve-badge .tsb-eyebrow {
  font-family: var(--mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute, #9ca3af);
}
.tk-sleeve-badge .tsb-label {
  font-family: var(--sans, 'Geist', system-ui, sans-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--yb-sleeve-color, #888);
  font-style: italic;
}
.tk-sleeve-badge .tsb-tagline {
  font-family: var(--sans, system-ui);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-mute, #9ca3af);
  margin: 0;
  max-width: 64ch;
}

/* ── Neutral "outside the YB playbook" banner. ────────────────── */
.tk-sleeve-banner {
  display: block;
  margin: 0;
  padding: 14px 0;
  background: var(--yb-sleeve-wash, rgba(107, 101, 88, 0.20));
  border-top: 1px solid var(--yb-sleeve-color, #6B6558);
  border-bottom: 1px solid var(--yb-sleeve-color, #6B6558);
}
.tk-sleeve-banner .tsb-banner-eyebrow {
  display: block;
  font-family: var(--mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--yb-sleeve-color, #6B6558);
  margin: 0 auto 6px;
  padding: 0 24px;
  max-width: 1080px;
}
.tk-sleeve-banner .tsb-banner-text {
  margin: 0 auto;
  padding: 0 24px;
  max-width: 1080px;
  font-family: var(--sans, system-ui);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink, #e8eaed);
}
.tk-sleeve-banner .tsb-banner-text a {
  color: var(--gold, #d4a843);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Sleeve tint on the stack chevron. Reads the sleeve color via
       the body data-attr so each ticker page reads as branded. */
body[data-yb-sleeve] .tk-section .tk-stack-head:hover .tk-stack-chev {
  color: var(--yb-sleeve-color, var(--gold, #d4a843));
  border-color: var(--yb-sleeve-color, var(--gold-line, rgba(212, 168, 67, 0.4)));
}

/* Neutral sleeve. Mute every section panel border so the stack
   reads as quiet under the banner. */
body[data-yb-sleeve="neutral"] .tk-section {
  opacity: 0.78;
}
body[data-yb-sleeve="neutral"] .tk-section .tk-stack-head:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .tk-sleeve-badge {
    padding: 12px 14px;
  }
  .tk-sleeve-badge .tsb-label {
    font-size: 16px;
  }
}
