/* Technical showcase; ordinary site pages keep their existing presentation. */
main.case-study { display: block; max-width: 88rem; padding: clamp(20px, 4vw, 56px); }
.case-study header { margin-bottom: 2.5rem; }
.case-study nav[aria-label="Site"] { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; margin-bottom: 2rem; }
.case-study h1 { max-width: 24ch; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.15; font-weight: 650; }
.case-study .dateline, .case-study .scope-note { color: #bccbc1; }
.case-study .lede { font-size: 1.15rem; line-height: 1.7; max-width: 65ch; }
.case-study .highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; padding: 0; list-style: none; gap: 1rem; margin: 2rem 0 1.5rem; }
.case-study .highlights li { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; }
.case-study .highlights li + li { margin-top: 0; }
.case-study .highlights strong { display: block; font-size: 1.7rem; font-weight: 600; color: #adedd1; }
.case-study .highlights span { display: block; font-size: 1rem; }
.case-layout, .case-body { min-width: 0; }
.case-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.case-contents { border: 1px solid var(--line); padding: 1rem; border-radius: 12px; }
.case-contents h2 { font-size: 1.1rem; }
.case-contents ul { padding: 0; list-style: none; margin: 0; }
.case-contents a { display: block; padding: 0.3rem 0; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.case-contents .download { margin-top: 0.8rem; border-top: 1px solid var(--line); padding-top: 0.8rem; }
.case-study .case-section { border: 0; border-radius: 0; padding: 0; margin: 2.5rem 0; }
.case-study .case-section:first-child { margin-top: 0; }
.case-study h2 { font-size: 1.45rem; line-height: 1.35; padding-bottom: 0.6rem; }
.case-study h3 { font-size: 1.15rem; margin: 1.8rem 0 0.5rem; }
.case-study p, .case-study li { line-height: 1.75; }
.case-study li + li { margin-top: 0.45rem; }
.case-study :is(a, summary, input, select, button, pre):focus-visible { outline: 3px solid #adedd1; outline-offset: 4px; }
.case-study [id] { scroll-margin-top: 1.5rem; }
.case-study .prose { min-width: 0; overflow-x: auto; }
.case-study .prose table { font-size: 1rem; margin: 1.25rem 0; }
.case-study .prose th { font-weight: 650; }
.case-study .prose :is(th, td) { padding: 0.6rem 0.7rem; }
.case-study .prose th:first-child { min-width: 13rem; }
.case-study .command-example { margin-bottom: 2.5rem; }
.case-study pre { background: #000 !important; color: #e4eae6 !important; border: 1px solid #425148; border-radius: 12px; padding: 1.1rem 1.2rem; font-size: 1rem; line-height: 1.65; max-height: 34rem; overflow: auto; overflow-wrap: anywhere; tab-size: 2; }
.case-study pre code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.case-study .astro-code span[style*="#6A737D" i] { color: #bdc975 !important; }
.case-study :not(pre) > code { color: #bce7d2; }
.case-study .command-log { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-top: 3rem; }
.case-study .command-log > summary { font-size: 1.3rem; }
.case-study .command-log > summary span { font-size: 1rem; font-weight: 400; }
.command-filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin: 1.5rem 0 1rem; }
.command-filters label { display: grid; gap: 0.4rem; flex: 1 1 10rem; }
.command-filters .search-label { flex-basis: 15rem; }
.command-filters :is(input, select, button) { min-width: 0; width: 100%; font: inherit; padding: 0.65rem; border: 1px solid #708778; border-radius: 6px; background: #000; color: #e4eae6; }
.command-filters button { width: auto; cursor: pointer; }
.case-study .command-entry { margin: 1.5rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); }
.case-study .command-entry[hidden] { display: none; }
.case-study .command-entry > .command-meta { margin: 0 0 0.6rem; }
.case-study .command-entry > pre { margin: 0 0 0.8rem; }
.case-study .command-entry :is(.full-command, .command-detail, .command-output, .command-context) { margin: 0.4rem 0; }
.case-study .command-entry .guide-link { margin: 0.65rem 0 0; font-size: 0.95rem; }
.command-meta { color: #bed3c6; font-weight: 400; font-size: 0.95rem; }
.command-explanation { display: block; color: #e4eae6; font-weight: 500; margin: 0.35rem 0; line-height: 1.6; }
.command-facts { color: #bed3c6; font-size: 0.95rem; }
.case-study .statistics-table { overflow-x: auto; margin: 1rem 0; }
.statistics-table table { min-width: 44rem; }
.statistics-table th { font-weight: 600; }
.statistics-table :is(th, td) { padding: 0.6rem; }
.statistics-table td { font-variant-numeric: tabular-nums; }
.statistics-table .subtotal { border-top: 2px solid #708778; }
.statistics-table .subtotal :is(th, td) { font-weight: 650; }
.case-study .command-guide { border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 1rem; }
.case-study .command-guide > summary { font-size: 1.1rem; }
.case-study .command-guide pre { max-height: none; line-height: 1.4; }
.case-study .command-output { margin: 0.5rem 0; padding-top: 0.3rem; }
.case-study .command-output > summary { font-weight: 500; }
.case-study .output-note { font-size: 0.95rem; line-height: 1.5; color: #bed3c6; }
.case-study .source-links { font-size: 0.95rem; }
.case-study .command-table { min-width: 0; margin: 1.3rem 0; }
.command-table table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.command-table th:first-child { width: 42%; }
.command-table :is(th, td) { padding: 1.1rem 0.85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.command-table thead th { padding-top: 0; font-weight: 600; }
.command-table .sample-command { font-weight: 400; }
.command-table .sample-command pre { margin: 0; }
.command-table td > p:first-child { margin-top: 0; }
.command-table td > p { margin: 0.45rem 0 0.8rem; }
.command-table .sample-title { font-weight: 600; }
.command-table details { margin-top: 0.7rem; }
.command-table pre { font-size: 1rem; padding: 0.8rem; }
.command-table .sample-output pre { max-height: 26rem; }
.case-study .lisp-example { margin: 2rem 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.case-study .lisp-example h3 { margin-top: 0.3rem; }
.case-study .lisp-source pre { max-height: none; line-height: 1.45; }
.case-study .lisp-call { margin: 1.1rem 0; }
.case-study .lisp-call pre { margin-bottom: 0.5rem; }
.case-study .lisp-call p { margin-top: 0; }
.case-study footer { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1rem; }
@media (min-width: 72rem) {
  .case-layout { grid-template-columns: 14rem minmax(0, 1fr); }
  .case-contents { position: sticky; top: 1.5rem; max-height: calc(100dvh - 3rem); overflow-y: auto; }
  .case-study .highlights { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 38rem) {
  body.report-page:has(.case-study) { padding: 10px; }
  main.case-study { padding: 20px 16px; }
  .case-study pre { padding: 0.85rem; }
  .command-table :is(table, tbody, tr, th, td) { display: block; width: 100%; }
  .command-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .command-table th:first-child { width: 100%; }
  .command-table :is(th, td) { padding: 0; border: 0; }
  .command-table tr { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
  .command-table td { padding-top: 0.8rem; }
}
