/* Concise Reporting stories: primary points first, evidence on demand. */
.reporting-story { max-width: 1060px; }
.story-guide { display:flex; flex-wrap:wrap; gap:8px 18px; margin:24px 0; font-size:.875rem; }
.story-guide a { color:inherit; text-underline-offset:4px; }
.story-box { border:1px solid #e2e4e7; border-radius:18px; padding:28px; margin:20px 0; background:var(--paper, #fff); scroll-margin-top:140px; }
.story-box h2 { margin:0 0 14px; font-size:1.5rem; }
.story-box p { margin:0 0 14px; }
.story-box p:last-child { margin-bottom:0; }
.story-box li { margin-bottom:12px; }
.story-box .story-evidence { font-size:.85rem; color:#525967; padding-top:14px; border-top:1px solid #e2e4e7; }
.story-more { margin-top:18px; border-top:1px solid #e2e4e7; padding-top:14px; }
.story-more > summary { cursor:pointer; font-weight:500; padding:8px 0; }
.story-more > summary:focus-visible { outline:2px solid #546b86; outline-offset:4px; border-radius:4px; }
.story-more-content { padding-top:16px; }
.story-more-content > h2 { font-size:1.25rem; margin-top:28px; }
.story-more-content .em-figure-breakout { width:100%; margin-left:0; margin-right:0; }
.story-more-content figure, .story-more-content svg { max-width:100%; }
.story-more-content .framework { overflow-x:auto; }
@media(max-width:600px) { .story-box { padding:20px; border-radius:14px; } .story-guide { gap:10px 16px; } }

.story-more-content .container-wide, .story-more-content .container-content { width:100%; max-width:100%; padding-left:0; padding-right:0; }
.story-more-content .section { padding:16px 0; }
.story-more-content .em-figure-breakout, .story-more-content .framework { max-width:100%; margin-left:0; margin-right:0; }

/* Visuals shown inside story boxes (not only in toggles) */
.story-box > figure { margin: 22px 0 6px; }
.story-box > .em-figure-breakout,
.story-box > .product-evidence-figure,
.story-box > .publishing-flow,
.story-box > .report-library-screen {
  position: static;
  left: auto;
  transform: none;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.story-box > .product-evidence-figure { padding: 14px; }
.story-box > figure svg { max-width: 100%; height: auto; }

/* Metrics section: the numbers strip sits inside its own story box */
.story-metrics .rb-stats { margin: 4px 0 0; }

/* Trade-offs table */
.to-table { margin: 16px 0 0; border: 1px solid #e3ddd1; border-radius: 10px; overflow: hidden; background: #fff; }
.to-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 1.9fr); }
.to-row + .to-row { border-top: 1px solid #ece7dd; }
.to-row > div { padding: 14px 16px; font-size: 0.95rem; line-height: 1.5; }
.to-head > div { padding: 10px 16px; background: #faf8f4; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6a6359; }
.to-cell:first-child { font-weight: 600; color: #1f1d1a; }
.to-cell.is-cost { color: #8a3b2a; }
.to-cell.is-why { color: #4a463f; }
.to-k { display: none; }
.to-note { margin: 12px 0 0; font-size: 0.85rem; font-style: italic; color: #6a6359; }
@media (max-width: 720px) {
  .to-head { display: none; }
  .to-row { grid-template-columns: minmax(0, 1fr); padding: 6px 0; }
  .to-row > div { padding: 6px 16px; }
  .to-k { display: block; margin-bottom: 2px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6a6359; }
}

/* Quiet link back to the reporting overview */
.system-link { margin: 0 0 12px; font-size: 0.92rem; color: #5a544b; }
.system-link a { white-space: nowrap; }

/* Short story template (earlier work): problem and role lists, sub-headings */
.story-problem, .story-role { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.story-problem li, .story-role li { margin: 0; line-height: 1.55; }
.story-role { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
@media (max-width: 640px) { .story-role { grid-template-columns: minmax(0, 1fr); } }
.story-box .story-sub { margin: 26px 0 10px; font-size: 1.15rem; }
.story-box > .story-sub:first-of-type { margin-top: 4px; }
.story-box > .story-role + p { margin-top: 16px; }

/* Product overview: first box on every case study */
.story-overview h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.story-overview h2 .wl-status { font-family: var(--font-body); font-size: 0.75rem; margin-left: 0; }
.story-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 36px; margin: 0; }
.story-overview-grid dt { margin-bottom: 6px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #6a6359; }
.story-overview-grid dd { margin: 0; line-height: 1.6; }
@media (max-width: 640px) { .story-overview-grid { grid-template-columns: minmax(0, 1fr); } }

/* Case-study summary layer (pilot: Report Builder) */
.rbs .sr-only, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rbs { margin: 8px 0 0; }
.rbs-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.rbs-overview .wl-status { margin: 0 0 14px; }
.rbs-overview dl { margin: 0; display: grid; gap: 14px; }
.rbs-overview dt { margin-bottom: 4px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #6a6359; }
.rbs-overview dd { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.rbs-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 22px; }
.rbs-note { width: 100%; font-size: 0.8rem; color: #7a736a; }
.rbs-shot { margin: 0; }
.rbs-stats { margin: clamp(1.75rem, 4vw, 2.5rem) 0 0; }
.rbs-block { margin-top: clamp(2rem, 5vw, 3rem); }
.rbs-block > h2 { margin: 0 0 14px; font-size: 1.5rem; }
.rbs-contrib { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.rbs-contrib li { position: relative; padding-left: 18px; line-height: 1.55; }
.rbs-contrib li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: #1f5fbf; }
.rbs-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rbs-card { display: flex; flex-direction: column; border: 1px solid #e2e4e7; border-radius: 14px; background: #fff; overflow: hidden; }
.rbs-card h3 { margin: 16px 18px 6px; font-size: 1.1rem; }
.rbs-card p { margin: 0 18px 18px; font-size: 0.93rem; line-height: 1.55; color: #4a463f; }
.rbs-visual { aspect-ratio: 16 / 9; background: #f4f1ea; border-bottom: 1px solid #e2e4e7; overflow: hidden; }
.rbs-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rbs-crop img { object-position: left top; transform: scale(1.6); transform-origin: 0 38%; }
.rbs-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; align-content: center; }
.rbs-split-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rbs-split-col small { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6a6359; }
.rbs-pair { display: flex; gap: 4px; }
.rbs-chip { padding: 5px 9px; border: 1px solid #d6d0c4; border-radius: 6px; background: #fff; font-size: 0.72rem; white-space: nowrap; }
.rbs-chip.is-warn { border-style: dashed; color: #8a3b2a; }
.rbs-chip.is-strong { background: #1f1d1a; border-color: #1f1d1a; color: #fff; }
.rbs-arrow { color: #8a8378; font-size: 0.8rem; line-height: 1; }
.rbs-divider { margin: clamp(3rem, 7vw, 4.5rem) 0 0; padding-top: 1.5rem; border-top: 1px solid #e2e4e7; font-size: 0.78rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #6a6359; scroll-margin-top: 100px; }
@media (max-width: 900px) { .rbs-top, .rbs-contrib { grid-template-columns: minmax(0, 1fr); } .rbs-cards { grid-template-columns: minmax(0, 1fr); } }

/* Pilot v2: tighter two-fold summary */
.rbs-top { align-items: start; }
.rbs-what { margin: 0 0 10px; font-size: 1.12rem; line-height: 1.55; }
.rbs-outcome { margin: 0 0 18px; line-height: 1.55; color: #3a3732; }
.rbs-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 14px 0; border-top: 1px solid #e2e4e7; border-bottom: 1px solid #e2e4e7; }
.rbs-nums dt { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; }
.rbs-nums dd { margin: 4px 0 0; font-size: 0.75rem; line-height: 1.35; color: #6a6359; }
.rbs-ctas { margin-top: 18px; }
.rbs-role { margin: clamp(1.75rem, 4vw, 2.5rem) 0 18px; font-size: 0.95rem; line-height: 1.6; color: #3a3732; }
.rbs-role span { display: inline-block; margin-right: 12px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #6a6359; }
.rbs-visual { aspect-ratio: 16 / 7.5; }
.rbs-card h3 { margin: 12px 16px 4px; font-size: 1.02rem; }
.rbs-card p { margin: 0 16px 14px; font-size: 0.88rem; }
@media (max-width: 900px) { .rbs-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Summary cards: responsive */
@media (max-width: 900px) {
  .rbs-cards { gap: 12px; }
  .rbs-card { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; }
  .rbs-card .rbs-visual { grid-row: 1 / span 2; aspect-ratio: auto; height: 100%; min-height: 140px; border-bottom: 0; border-right: 1px solid #e2e4e7; }
  .rbs-card h3 { margin: 14px 16px 4px; }
  .rbs-card p { margin: 0 16px 14px; }
  .rbs-split { padding: 10px; gap: 6px; }
  .rbs-chip { padding: 4px 7px; font-size: 0.66rem; }
}
@media (max-width: 560px) {
  .rbs-card { display: flex; flex-direction: column; }
  .rbs-card .rbs-visual { width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 8; border-right: 0; border-bottom: 1px solid #e2e4e7; }
}
.rbs-crop-list img { transform: scale(1.7); transform-origin: 30% 36%; }

/* Phone-screen summary (Paytm): show the composed image whole, framed like the screenshots */
.rbs-shot-phones img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid #e2e4e7; }
.rbs .rbs-note { margin: 12px 0 0; }

/* Summary CTAs: prototype button on the right, password note under it */
.rbs-ctas { align-items: flex-start; }
.rbs-ctas .card-proto { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-left: auto; }
.rbs-ctas .card-proto-note { margin: 0; font-size: 0.78rem; color: #767472; }

/* Summary screens shown plainly, side by side (Paytm) */
.rbs-screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; margin: 0; }
.rbs-screens img { display: block; width: 100%; height: auto; border: 1px solid #e2e4e7; border-radius: 8px; background: #fff; }
