/* case-detail-wf.css — components unique to the Wells Fargo subscription finance
   case study. Kept separate from case-detail.css so the shared stylesheet does
   not diverge from the live site. Merge into case-detail.css only if a second
   page starts using these. */

/* ---- Public-record figure row -------------------------------------------
   Deliberately NOT .metric-bar / .stat-num. These are cited facts about a 2012
   transaction, not performance results, and must not read like a results bar. */
.record-row {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: rgba(17, 16, 14, 0.18);
  border: 1px solid rgba(17, 16, 14, 0.18);
  margin: 46px 0 0;
}

.record-row > div {
  background: var(--paper-deep);
  padding: 26px 24px 22px;
}

.deep .record-row > div { background: var(--paper); }

.record-row .rec-num {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 12px;
}

.record-row .rec-label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: rgba(17, 16, 14, 0.7);
}

.record-row .rec-src {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 16, 14, 0.45);
}

/* ---- Full-width explanatory figure ---------------------------------------
   This page is text-driven, so its diagrams have to carry real width. .case-art
   is a two-column grid (art ~0.8fr beside prose) which renders a dense diagram
   far too small — hence a full-bleed figure instead. */
.case-figure {
  margin: clamp(34px, 4vw, 56px) 0 0;
  max-width: 1100px;
}

.case-figure img {
  background: var(--paper-deep);
  border: 1px solid rgba(17, 16, 14, 0.35);
  width: 100%;
}

.dark .case-figure img { border-color: rgba(255, 255, 255, 0.28); }

.case-figure .art-caption { margin-top: 14px; }

/* ---- Blueprint chain ----------------------------------------------------- */
/* Explicit 4-up above 1180px only. auto-fit was wrapping to 2 columns while the
   horizontal arrows were still active, which left an arrow pointing at nothing
   at the end of each row. Below the breakpoint it stacks with down arrows. */
.flow-chain {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 8px;
}

@media (min-width: 1180px) {
  .flow-chain { grid-template-columns: repeat(4, 1fr); }
}

.flow-chain .flow-step {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 24px 22px 22px;
}

.flow-chain .flow-step .flow-idx {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.flow-chain .flow-step h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 10px;
}

.flow-chain .flow-step p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}

.flow-chain .flow-step:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--gold);
  z-index: 2;
}

@media (max-width: 1179px) {
  .flow-chain .flow-step:not(:last-child)::after {
    content: "\2193";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -22px;
    transform: translateX(-50%);
  }
  .flow-chain { gap: 32px; }
}

/* ---- Practice list ------------------------------------------------------- */
.practice-list {
  border-top: 1px solid var(--ink);
  margin-top: 40px;
  max-width: 900px;
}

.practice-list > div {
  border-bottom: 1px solid rgba(17, 16, 14, 0.22);
  display: grid;
  gap: 8px 40px;
  grid-template-columns: minmax(190px, 0.5fr) minmax(0, 1fr);
  padding: 22px 0;
}

.practice-list h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.practice-list p {
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  color: rgba(17, 16, 14, 0.78);
}

@media (max-width: 700px) {
  .practice-list > div { grid-template-columns: 1fr; }
}

/* ---- Provenance / sources ------------------------------------------------ */
.provenance {
  border: 1px solid rgba(255, 255, 255, 0.28);
  margin-top: 54px;
  padding: 30px 30px 26px;
}

.provenance strong {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.provenance p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 900px;
}

.provenance p:last-of-type { margin-bottom: 0; }

.provenance ol {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 20px 0 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.provenance ol li { margin-bottom: 7px; }

.provenance a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.provenance a:hover { color: var(--gold); }

/* Mobile leading guard — see migration-context notes: any sub-1.0 line-height
   needs an override where the clamp minimum drops below ~60px. */
@media (max-width: 760px) {
  .record-row .rec-num { line-height: 1.02; }
}
