/* ============================================================
   Blueprint case template
   Scoped to .bp-case-body so legacy case pages can migrate one-by-one.
   ============================================================ */

.bp-case-body {
  background:
    radial-gradient(circle at 1px 1px, #c6cdd5 0.6px, transparent 0.7px) 0 0 / 24px 24px,
    #eef2f5;
  color: #16263a;
}

.bp-case-body strong { color: inherit; }

.bp-case-shell {
  background:
    radial-gradient(circle at 1px 1px, #c6cdd5 0.6px, transparent 0.7px) 0 0 / 24px 24px,
    #eef2f5;
}

.bp-case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 48px;
  padding: 44px 48px 36px;
  border-bottom: 1px solid #cdd3da;
}

.bp-case-kicker,
.bp-case-mono {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #52617a;
  font-weight: 500;
}

.bp-case-accent { color: #b9412a; }

.bp-case-hero h1 {
  max-width: 980px;
  margin: 14px 0 0;
  color: #16263a;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(44px, 6vw, 74px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.032em;
}

.bp-case-dek {
  max-width: 760px;
  margin-top: 18px;
  color: #52617a;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19px;
  line-height: 1.48;
}

.bp-case-hero-panel {
  background: #16263a;
  color: #ffffff;
  border: 1px solid #16263a;
}

.bp-case-panel-head,
.bp-case-panel-row {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.bp-case-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #a3b4c7;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bp-case-panel-row span {
  display: block;
  color: #a3b4c7;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.bp-case-panel-row strong {
  display: block;
  color: #ffffff;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 1;
}

.bp-case-panel-row p {
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  line-height: 1.5;
}

.bp-case-receipts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #cdd3da;
  border-bottom: 1px solid #cdd3da;
  background: #ffffff;
}

.bp-case-receipts article {
  padding: 20px 22px;
  border-right: 1px solid #cdd3da;
}

.bp-case-receipts article:last-child { border-right: 0; }

.bp-case-receipts strong {
  display: block;
  color: #16263a;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.bp-case-receipts span {
  display: block;
  margin-top: 8px;
  color: #52617a;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bp-case-section-tag {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 48px;
  border-top: 1px solid #16263a;
  border-bottom: 1px solid #cdd3da;
  color: #52617a;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bp-case-section-tag span:first-child { color: #b9412a; }

.bp-case-content {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 42px;
  padding: 32px 48px 44px;
}

.bp-case-sidebar {
  position: sticky;
  top: 72px;
  align-self: start;
}

.bp-case-sidebar h2 {
  margin-top: 8px;
  color: #16263a;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.018em;
}

.bp-case-sidebar p {
  margin-top: 12px;
  color: #52617a;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
}

.bp-case-main {
  display: grid;
  gap: 18px;
}

.bp-case-proof-panel {
  background: #ffffff;
  border: 1px solid #cdd3da;
  padding: 24px 28px;
}

.bp-case-proof-panel h3,
.bp-case-block h3 {
  margin: 0;
  color: #16263a;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.018em;
}

.bp-case-proof-panel p,
.bp-case-block p,
.bp-case-block li {
  color: #16263a;
  font-size: 15.5px;
  line-height: 1.62;
}

.bp-case-proof-panel p { margin-top: 12px; }

.bp-case-block {
  background: #ffffff;
  border: 1px solid #cdd3da;
  padding: 24px 28px;
}

.bp-case-block ul,
.bp-case-block ol {
  margin: 14px 0 0 20px;
}

.bp-case-gates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #cdd3da;
  border-left: 1px solid #cdd3da;
}

.bp-case-gate {
  min-height: 220px;
  padding: 20px 18px;
  background: #ffffff;
  border-right: 1px solid #cdd3da;
  border-bottom: 1px solid #cdd3da;
}

.bp-case-gate strong {
  display: block;
  margin-top: 12px;
  color: #16263a;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
}

.bp-case-gate p {
  margin-top: 10px;
  color: #52617a;
  font-size: 13.5px;
  line-height: 1.55;
}

.bp-case-flow-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #16263a;
  color: #ffffff;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  line-height: 1;
}

.bp-case-figure {
  background: #16263a;
  color: #ffffff;
  border: 1px solid #16263a;
}

.bp-case-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  color: #a3b4c7;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bp-case-figure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid rgba(255,255,255,0.16);
}

.bp-case-figure-grid div {
  padding: 18px;
  border-right: 1px solid rgba(255,255,255,0.16);
}

.bp-case-figure-grid span {
  display: block;
  color: #a3b4c7;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bp-case-figure-grid strong {
  display: block;
  color: #ffffff;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}

.bp-case-figure-grid p {
  margin-top: 8px;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  line-height: 1.5;
}

.bp-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bp-case-tag {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid #cdd3da;
  background: #ffffff;
  color: #16263a;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bp-case-next {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 28px 48px 48px;
  background: #dde4ec;
}

.bp-case-next a {
  min-height: 174px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #cdd3da;
  margin-right: -1px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bp-case-next a:hover {
  text-decoration: none;
  background: #f8fafc;
}

.bp-case-next strong {
  color: #16263a;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.12;
}

.bp-case-next span:last-child {
  color: #52617a;
  font-size: 13.5px;
  line-height: 1.55;
}

@media (max-width: 1040px) {
  .bp-case-hero,
  .bp-case-content {
    grid-template-columns: 1fr;
  }

  .bp-case-sidebar {
    position: static;
  }

  .bp-case-receipts,
  .bp-case-gates,
  .bp-case-next {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .bp-case-hero,
  .bp-case-content,
  .bp-case-section-tag,
  .bp-case-next {
    padding-left: 20px;
    padding-right: 20px;
  }

  .bp-case-section-tag {
    flex-direction: column;
    gap: 6px;
  }

  .bp-case-receipts,
  .bp-case-gates,
  .bp-case-figure-grid,
  .bp-case-next {
    grid-template-columns: 1fr;
  }

  .bp-case-receipts article,
  .bp-case-next a {
    border-right: 0;
    margin-right: 0;
  }

  .bp-case-hero h1 {
    font-size: 38px;
  }
}

/* ── distinct per-case signature visuals (pilot) ───────────────── */

/* shadow-it — discovery chain (connected horizontal trail) */
.bp-case-chain {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.bp-case-chain-node {
  position: relative;
  padding: 20px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.bp-case-chain-node::after {
  content: "\2192";
  position: absolute;
  top: 20px;
  right: -8px;
  z-index: 1;
  color: #b9412a;
  font-family: var(--font-mono);
  font-size: 14px;
}
.bp-case-chain-node:last-child::after {
  content: none;
}
.bp-case-chain-step {
  color: #a3b4c7;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bp-case-chain-node strong {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.15;
}
.bp-case-chain-node p {
  margin-top: 8px;
  color: #a3b4c7;
  font-size: 12.5px;
  line-height: 1.5;
}

/* sslp-enablement — SQL query plate + result grid */
.bp-case-query {
  padding: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.bp-case-query pre {
  margin: 0;
  overflow-x: auto;
  color: #e7edf3;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
}
.bp-case-q-kw {
  color: #d8704f;
}
.bp-case-q-str {
  color: #8fb6a0;
}
.bp-case-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.bp-case-result div {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.bp-case-result strong {
  display: block;
  color: #ffffff;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}
.bp-case-result span {
  display: block;
  margin-top: 8px;
  color: #a3b4c7;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ux-research-home-services — mixed-methods streams */
.bp-case-streams {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.bp-case-stream {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 3px solid var(--stream-accent, #52617a);
}
.bp-case-stream:nth-child(1) {
  --stream-accent: #3e7f5b;
}
.bp-case-stream:nth-child(2) {
  --stream-accent: #b9412a;
}
.bp-case-stream:nth-child(3) {
  --stream-accent: #a3b4c7;
}
.bp-case-stream span {
  color: #a3b4c7;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bp-case-stream strong {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.15;
}
.bp-case-stream p {
  margin-top: 8px;
  color: #a3b4c7;
  font-size: 12.5px;
  line-height: 1.5;
}

/* pipeline-optimization — before/after diff strip */
.bp-case-diff {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.bp-case-diff-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.bp-case-diff-row:last-child {
  border-bottom: 0;
}
.bp-case-diff-before {
  color: #a3b4c7;
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: line-through;
  text-decoration-color: rgba(184, 65, 42, 0.7);
}
.bp-case-diff-arrow {
  color: #b9412a;
  font-family: var(--font-mono);
  font-size: 13px;
}
.bp-case-diff-after {
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
}

/* candidate-funnel — narrowing funnel bars */
.bp-case-funnel {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.bp-case-funnel-stage {
  display: flex;
  align-items: center;
  gap: 16px;
}
.bp-case-funnel-bar {
  flex-shrink: 0;
  height: 34px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid #b9412a;
}
.bp-case-funnel-stage:nth-child(1) .bp-case-funnel-bar {
  width: 54%;
}
.bp-case-funnel-stage:nth-child(2) .bp-case-funnel-bar {
  width: 43%;
}
.bp-case-funnel-stage:nth-child(3) .bp-case-funnel-bar {
  width: 32%;
}
.bp-case-funnel-stage:nth-child(4) .bp-case-funnel-bar {
  width: 21%;
}
.bp-case-funnel-text strong {
  display: block;
  color: #ffffff;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
}
.bp-case-funnel-text span {
  display: block;
  margin-top: 5px;
  color: #a3b4c7;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* product-quiz-placement — A/B variant compare */
.bp-case-ab {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.bp-case-ab-variant {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.bp-case-ab-bar {
  width: 100%;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.1);
}
.bp-case-ab-variant:nth-child(1) .bp-case-ab-bar {
  height: 58px;
}
.bp-case-ab-variant:nth-child(2) .bp-case-ab-bar {
  height: 120px;
}
.bp-case-ab-variant:nth-child(3) .bp-case-ab-bar {
  height: 84px;
}
.bp-case-ab-variant:nth-child(4) .bp-case-ab-bar {
  height: 80px;
}
.bp-case-ab-winner .bp-case-ab-bar {
  background: #b9412a;
}
.bp-case-ab-key {
  color: #a3b4c7;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bp-case-ab-variant strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.15;
}
.bp-case-ab-note {
  display: block;
  margin-top: 6px;
  color: #a3b4c7;
  font-size: 12px;
  line-height: 1.4;
}

/* mqsr-dashboards — dashboard tile grid */
.bp-case-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.bp-case-tile {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.bp-case-tile-tag {
  display: inline-block;
  color: #b9412a;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bp-case-tile strong {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.15;
}
.bp-case-tile p {
  margin-top: 8px;
  color: #a3b4c7;
  font-size: 12.5px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .bp-case-result,
  .bp-case-streams,
  .bp-case-ab,
  .bp-case-tiles {
    grid-template-columns: 1fr;
  }
  .bp-case-chain {
    grid-auto-flow: row;
  }
  .bp-case-chain-node::after {
    content: none;
  }
  .bp-case-diff-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .bp-case-diff-after {
    text-align: left;
  }
}
