/* ============================================================
   Solution detail pages & individual case studies
   Loaded only on /solutions/{slug} and /case-studies/{slug}
   ============================================================ */

/* ── Breadcrumbs ─────────────────────────────────────────── */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 12px; color: var(--muted); margin-bottom: 36px;
  letter-spacing: 0.04em;
}
.crumbs a { color: var(--muted); transition: color 160ms ease; }
.crumbs a:hover { color: var(--accent-deep); }
.crumbs span { opacity: 0.45; }

.accent-hero { background: var(--accent); }
.accent-hero .crumbs, .accent-hero .crumbs a { color: rgba(245,242,236,0.72); }
.accent-hero .crumbs a:hover { color: var(--bg-cream); }
.accent-hero .eyebrow { color: rgba(245,242,236,0.72); }
.accent-hero h1 { color: var(--bg-cream); }
.accent-hero .lead, .accent-hero .muted { color: rgba(245,242,236,0.88); }

/* ── Hero layout ─────────────────────────────────────────── */
.sol-detail-head {
  display: grid; grid-template-columns: 1.5fr 0.9fr;
  gap: 64px; align-items: start;
}
.sol-detail-head h1 { max-width: 20ch; margin-top: 18px; }

.sol-hero-stats {
  display: grid; gap: 2px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.sol-hero-stat { background: var(--bg-elev); padding: 26px 28px; }
.sol-hero-stat strong {
  display: block; font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.05;
}
.sol-hero-stat span {
  display: block; margin-top: 8px; font-size: 13px;
  color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.02em;
}
.accent-hero .sol-hero-stats { background: rgba(245,242,236,0.22); border-color: rgba(245,242,236,0.28); }
.accent-hero .sol-hero-stat { background: var(--accent-deep); }
.accent-hero .sol-hero-stat strong { color: var(--bg-cream); }
.accent-hero .sol-hero-stat span { color: rgba(245,242,236,0.75); }

/* ── Two-column split (header left, content right) ───────── */
.sol-split {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 64px; align-items: start;
}
.sol-split h2 { max-width: 18ch; }
.sol-section-num {
  color: var(--muted); margin-bottom: 18px;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
}

.section-head { margin-bottom: 56px; max-width: 46ch; }
.section-head h2 { max-width: 22ch; }

/* ── Bullet lists ────────────────────────────────────────── */
.sol-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-strong); }
.sol-list li {
  position: relative; padding: 20px 0 20px 34px;
  border-bottom: 1px solid var(--border);
  font-size: 17px; line-height: 1.55;
}
.sol-list li::before {
  content: ""; position: absolute; left: 4px; top: 30px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border-strong);
}
.sol-list.checks li::before {
  content: "→"; left: 0; top: 19px;
  width: auto; height: auto; border-radius: 0; background: none;
  color: var(--accent); font-size: 15px; line-height: 1.6;
}

/* ── Outcome cards ───────────────────────────────────────── */
/* cols-2 is used when the item count would leave a single orphan
   card on the last row of a 3-wide grid (4, 7, 10 …). */
.sol-outcomes {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.sol-outcomes.cols-2 { grid-template-columns: repeat(2, 1fr); }
.sol-cases.cols-2 { grid-template-columns: repeat(2, 1fr); }
.sol-outcome { background: var(--bg-elev); padding: 36px 32px; }
.sol-outcome h3 { font-size: 19px; font-weight: 500; line-height: 1.3; }
.sol-outcome p { margin-top: 12px; font-size: 15px; line-height: 1.6; }

.sol-midcta {
  margin-top: 48px; padding: 32px 36px;
  background: var(--accent-soft); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.sol-midcta p { font-size: 19px; font-weight: 500; max-width: 46ch; margin: 0; }

/* ── Deep-dive prose blocks ──────────────────────────────── */
.sol-deep { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.sol-deep.spaced { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--border); }
.sol-deep h2 { max-width: 16ch; }
.sol-deep-body p { font-size: 17px; line-height: 1.65; color: var(--muted); }
.sol-deep-body p + p { margin-top: 20px; }
.sol-deep-body .cs-link { display: inline-flex; margin-top: 24px; }

/* ── Case study cards ────────────────────────────────────── */
.sol-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sol-case {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 30px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.sol-case:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.sol-case-logo { height: 26px; width: auto; max-width: 130px; object-fit: contain; margin-bottom: 22px; opacity: 0.85; }
.sol-case h3 { font-size: 18px; font-weight: 500; line-height: 1.35; }
.sol-case p { margin-top: 12px; font-size: 15px; line-height: 1.6; }
.sol-case .cs-mini-stat { margin-top: 18px; }
.sol-case .cs-link { margin-top: auto; padding-top: 24px; }

.cs-mini-stat {
  display: inline-block; padding: 7px 13px;
  background: var(--accent-soft); color: var(--accent-deep);
  border-radius: 999px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.02em; line-height: 1.4;
}
.cs-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--accent-deep); letter-spacing: 0.03em;
}
.cs-link .arrow { transition: transform 200ms ease; }
.sol-case:hover .cs-link .arrow { transform: translateX(4px); }

/* ── Sibling solution rows (shared with the solutions index) ─ */
.sol-items { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--border-strong); }
.sol-items.two-col { grid-template-columns: 1fr 1fr; gap: 0 24px; }
.sol-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border);
  transition: padding-left 200ms ease, color 200ms ease;
}
.sol-row:hover { padding-left: 12px; color: var(--accent-deep); }
.sol-row h4 { font-size: 18px; font-weight: 500; }
.sol-row .arrow { color: var(--muted); transition: color 200ms ease, transform 200ms ease; }
.sol-row:hover .arrow { color: var(--accent-deep); transform: translateX(4px); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .sol-outcomes { grid-template-columns: repeat(2, 1fr); }
  .sol-cases { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .sol-detail-head, .sol-split, .sol-deep { grid-template-columns: 1fr; gap: 32px; }
  .sol-detail-head h1 { max-width: none; }
  .sol-split h2, .sol-deep h2, .section-head h2 { max-width: 24ch; }
  .sol-hero-stats { grid-template-columns: repeat(3, 1fr); }
  .sol-items.two-col { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .sol-outcomes, .sol-cases { grid-template-columns: 1fr; }
  .sol-hero-stats { grid-template-columns: 1fr; }
  .sol-midcta { flex-direction: column; align-items: flex-start; }
  .sol-list li { font-size: 16px; }
}

/* ── Case study hero extras ──────────────────────────────── */
.cs-hero-logo { height: 34px; width: auto; max-width: 180px; object-fit: contain; margin-bottom: 26px; }
.cs-hero-img {
  aspect-ratio: 21/9; border-radius: var(--radius-xl);
  overflow: hidden; background: var(--bg-soft);
}
.cs-hero-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .cs-hero-img { aspect-ratio: 4/3; } }

/* ── Case study attribution note ─────────────────────────── */
.cs-attribution {
  max-width: 78ch; font-size: 12px; line-height: 1.7;
  color: var(--muted); letter-spacing: 0.01em;
  padding: 18px 22px; border-left: 2px solid var(--border-strong);
  background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0;
}
