/* SpaceX case study: inherit the original Open Sky palette and typefaces. */
.spacex-case .case-meta,.spacex-case .case-evidence{color:var(--muted)}
.spacex-case .case-meta{margin-top:22px}
.spacex-case .case-motto{border-left:4px solid var(--blue);padding:2px 0 2px 16px;color:var(--ink)}
/* Analytic workflow: the twelve steps in their three stages, each one a link to its view */
.case-workflow{padding-block:30px 34px;border-bottom:1px solid var(--line)}
.case-workflow-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:10px}
.case-workflow-group{background:var(--stone);border:1px solid var(--line);border-radius:10px;padding:18px 16px 14px}
.case-workflow-group h3{margin:0 0 10px;font-size:21px;line-height:1.3}
.case-workflow-group h3 a{display:flex;gap:10px;color:#203d55}
.case-workflow-group-num{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--blue);color:#fff;font-size:15px;font-weight:700}
.case-workflow ol{list-style:none;margin:0;padding:0}
.spacex-case .case-workflow li a{text-decoration:none} /* a menu, not links in a sentence: no underline (style.css underlines those) */
.case-workflow li a{display:flex;gap:12px;padding:8px 10px;border-radius:6px;font-size:19px;line-height:1.35;color:var(--ink)}
.case-workflow li a:hover,.case-workflow li a:focus-visible{background:var(--sky);text-decoration:none}
.case-workflow-num{flex:none;min-width:2ch;font-weight:700;color:#86622d;font-variant-numeric:tabular-nums}
@media(max-width:900px){.case-workflow-grid{grid-template-columns:1fr}}
.case-stage{scroll-margin-top:120px}.case-stage:nth-of-type(even){background:var(--stone)}
.case-featured,.case-view-body{padding-block:20px}
.case-figure{margin:25px 0;border:1px solid var(--line);background:var(--paper);border-radius:6px;overflow:hidden}
.case-image-link{position:relative;display:block;background:var(--paper)}
.case-figure img{width:100%;height:auto;object-fit:contain}
.case-figure figcaption{padding:16px 20px;overflow-wrap:anywhere;color:var(--muted);border-top:1px solid var(--line)}
.case-takeaway{padding:20px;border-left:4px solid var(--blue);background:var(--sky)}
.case-view{border:1px solid var(--line);border-radius:6px;background:var(--paper);margin-block:18px}
.case-view summary{cursor:pointer;padding:22px;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.case-view summary:hover{background:var(--sky)}
.case-view summary:focus-visible{outline:3px solid #86622d;outline-offset:3px}
.case-view-body{padding:0 24px 24px}.case-step{color:var(--blue);margin-right:10px}
.case-skip{position:fixed;left:20px;top:-150px;background:var(--paper);padding:15px;z-index:100}.case-skip:focus{top:10px}
@media(max-width:600px){.case-view summary{padding:16px}.case-view-body{padding:0 16px 16px}.case-figure figcaption{padding:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.case-executive-summary{margin-top:28px;padding:26px 28px;background:var(--sky);border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:8px;}
.case-executive-summary h2{font-size:clamp(24px,2.5vw,32px)!important;}
.case-executive-summary p,.case-executive-summary li{font-size:18px;line-height:1.6;}
.case-executive-summary ul{padding-left:24px;}
.case-summary-continue{display:inline-block;margin:14px 0 0 18px;font-size:16px;font-weight:600;}
.case-executive-summary a:focus-visible{outline:3px solid #86622d;outline-offset:4px;}
@media(max-width:600px){.case-executive-summary{padding:20px;}.case-summary-continue{display:block;margin:16px 0 0;}}

/* "From documents to map": who does what (CASE-02). On narrow screens each row becomes a stacked card. */
.case-boundary{border:1px solid var(--line);border-radius:5px;background:#fff}
.case-boundary table{width:100%;border-collapse:collapse;font-size:inherit;line-height:inherit}
.case-boundary caption{text-align:left;padding:14px 18px 0;color:var(--muted);font-size:inherit}
.case-boundary th,.case-boundary td{text-align:left;vertical-align:top;padding:14px 18px;border-top:1px solid var(--line)}
.case-boundary thead th{border-top:0;font-size:.8em;letter-spacing:.05em;text-transform:uppercase;color:#86622d}
.case-boundary tbody th{width:18%;font-weight:600}.case-boundary tbody td:nth-child(2){width:17%;color:#275c83;font-weight:600}
@media(max-width:700px){.case-boundary table,.case-boundary tbody,.case-boundary tr,.case-boundary th,.case-boundary td{display:block;width:auto!important}
.case-boundary thead{display:none}.case-boundary tbody tr{border-top:1px solid var(--line);padding:14px 16px}
.case-boundary tbody th,.case-boundary tbody td{border:0;padding:0}.case-boundary tbody td:nth-child(2){margin:2px 0 6px}
.case-boundary caption{display:block;padding:14px 16px}}
/* one type scale (style.css): the workflow menu at text size, its stage names as minor headings */
.spacex-case .case-workflow li a{font-size:var(--text-size)}
.spacex-case .case-workflow-group h3{font-size:var(--heading-minor-size)!important}

/* Phones (UX W-10): the outline shows only its three parts (each a link to its section); the twelve steps stay on
   larger screens, where the outline takes a few lines instead of two and a half screens. */
@media(max-width:600px){.case-workflow ol{display:none}.case-workflow-group h3{margin:0}}

/* Case pages: an image still to provide (the token blocks tools/build_deploy.py until the image replaces it) */

/* SpaceX case: "Questions this case answers" box under the title (strategy reading, 20 Nov. 2026) */
.case-questions{margin-top:22px;padding:18px 22px;background:#fff;border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:6px}
.case-questions h2{font-size:var(--heading-minor-size,25px)!important;margin:0 0 8px!important}
.case-questions ul{margin:0;padding-left:22px}
.case-questions li{margin:6px 0}
