/* build:04e6f32 */
/* pf-case-study.css — S681 D-S681-CASESTUDY-HTML. The sample case study as a living page.
   Extends manifesto.css + how-it-works.css + pf-feature.css. Theme tokens only; no inline
   styles (site CSP style-src 'self'). Chart bar heights are generated classes at the end. */

.cs-hero .hiw-h1 { max-width: 900px; margin-left: auto; margin-right: auto; }
.cs-kicker {
  font-family: var(--font-mono, var(--font-body));
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin: 6px 0 4px;
}

.cs-doc {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px clamp(32px, 6vh, 64px);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}
.cs-doc p { margin: 0 0 14px; }
.cs-doc a { color: var(--color-accent-c); font-weight: 600; }
.cs-doc a:hover { color: var(--color-accent-g); }
.cs-doc h2 {
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--color-text);
}
.cs-doc h3 { font-size: 20px; margin: 22px 0 10px; color: var(--color-text); }
.cs-doc h4 { font-size: 17px; margin: 22px 0 8px; color: var(--color-text); }

.cs-sec {
  padding-top: clamp(28px, 4vh, 44px);
  scroll-margin-top: 80px;
}
.cs-sec + .cs-sec { border-top: 1px solid var(--color-border); margin-top: clamp(20px, 3vh, 32px); }

.cs-disclaimer {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent-a);
  padding: 14px 18px;
  border-radius: 6px;
  color: var(--color-text);
  margin-top: 8px !important;
}

/* ── Table of contents ──────────────────────────────────── */
.cs-toc {
  margin: 24px 0 8px;
  padding: 18px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.cs-toc-h { font-size: 18px !important; margin: 0 0 8px !important; }
.cs-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 36px; }
.cs-toc li { margin: 0 0 4px; break-inside: avoid; font-size: 15px; }
.cs-toc a { font-weight: 500; text-decoration: none; }
.cs-toc a:hover, .cs-toc a:focus-visible { text-decoration: underline; }

/* ── Tables ─────────────────────────────────────────────── */
.cs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 18px;
  font-size: 15px;
  line-height: 1.45;
  background: var(--color-bg);
}
.cs-table thead th {
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 700;
  text-align: left;
  padding: 9px 12px;
  border: 1px solid var(--color-text);
}
.cs-table tbody th, .cs-table tfoot th { text-align: left; font-weight: 600; }
.cs-table tbody th, .cs-table tbody td, .cs-table tfoot th, .cs-table tfoot td {
  padding: 9px 12px;
  border: 1px solid var(--color-border-strong);
  vertical-align: top;
  color: var(--color-text);
}
.cs-table tbody tr:nth-child(even) { background: var(--color-surface); }
.cs-table tfoot tr, .cs-table .cs-row-total { background: var(--color-surface2); font-weight: 700; }
.cs-table .cs-num { font-variant-numeric: tabular-nums; }
.cs-t-nums td.cs-num { text-align: right; white-space: nowrap; }
.cs-t2 tbody th { width: 38%; }
.cs-caption { caption-side: top; text-align: left; font-weight: 700; padding: 0 0 8px; color: var(--color-text); }

/* ── Lists ──────────────────────────────────────────────── */
.cs-list, .cs-list-num { margin: 8px 0 16px; padding-left: 24px; }
.cs-list li, .cs-list-num li { margin: 0 0 8px; }
.cs-src { color: var(--color-text-dim); }
.cs-note { color: var(--color-text-dim); font-style: italic; }

/* ── Charts (HTML/CSS bars and inline SVG lines) ─────────── */
.cs-chart { margin: 22px 0 18px; padding: 18px 18px 12px; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-bg); }
.cs-chart-cap { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.cs-chart-cap strong { font-size: 17px; color: var(--color-text); }
.cs-chart-cap span { font-size: 14px; color: var(--color-text-dim); }
.cs-chart-src { font-size: 14px; color: var(--color-text-dim); margin: 12px 0 0 !important; }

.cs-plot { position: relative; height: 220px; border-bottom: 1px solid var(--color-border-strong); }
.cs-cols { display: flex; align-items: stretch; height: 100%; gap: 6px; }
.cs-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; }
.cs-val { display: block; text-align: center; font-size: 13px; line-height: 1.2; margin-bottom: 3px; color: var(--color-text); font-variant-numeric: tabular-nums; }
.cs-bar { display: block; background: var(--color-text-dim); opacity: .38; border-radius: 2px 2px 0 0; }
.cs-bar-hl { background: var(--color-accent-c); opacity: 1; }
.cs-seg { border-radius: 0; }
.cs-seg.cs-bar-hl { border-radius: 2px 2px 0 0; }
.cs-ref { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--color-text-dim); pointer-events: none; }
.cs-ref span { position: absolute; left: 0; bottom: 2px; font-size: 12px; color: var(--color-text-dim); background: var(--color-bg); padding-right: 6px; }
.cs-plot-stack .cs-cols, .cs-stack-lbls { padding-left: 58px; }
.cs-plot-stack .cs-ref span { bottom: auto; top: -8px; line-height: 1.2; }
.cs-lbls { display: flex; gap: 6px; margin-top: 6px; }
.cs-lbl { flex: 1 1 0; min-width: 0; text-align: center; font-size: 13px; color: var(--color-text-dim); line-height: 1.2; }
.cs-lbl-note { display: block; font-size: 12px; margin-top: 2px; }

.cs-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cs-line-title { font-size: 14px; font-weight: 700; margin: 0 0 4px !important; color: var(--color-text); }
.cs-svg { display: block; width: 100%; height: auto; overflow: visible; }
.cs-axis { stroke: var(--color-border-strong); stroke-width: 1; }
.cs-path { fill: none; stroke: var(--color-accent-c); stroke-width: 2.5; stroke-linejoin: round; }
.cs-dot { fill: var(--color-accent-c); }
.cs-svg-t { fill: var(--color-text-dim); font-size: 13px; font-family: var(--font-body); }
.cs-svg-strong { fill: var(--color-text); font-weight: 700; }

.cs-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Assistants worth section ───────────────────────────── */
.cs-lead { font-family: var(--font-display, var(--font-body)); font-size: 20px; font-weight: 700; color: var(--color-accent-g); }
.cs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0 8px; }
.cs-card { background: var(--color-surface); border: 1px solid var(--color-border); border-top: 3px solid var(--color-accent-c); border-radius: 8px; padding: 14px 16px; }
.cs-card h3 { margin: 0 0 8px !important; font-size: 18px !important; }
.cs-card ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.5; }
.cs-card li { margin-bottom: 6px; }
.cs-illustrative, .cs-plain {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent-a);
  padding: 12px 16px;
  border-radius: 6px;
}
.cs-plain { border-left-color: var(--color-accent-g); }
.cs-howto { margin: 18px 0; padding: 4px 18px 6px; border: 1px dashed var(--color-border-strong); border-radius: 8px; }
.cs-howto p { font-size: 15px; }

.cs-calc { margin: 22px 0 6px; padding: 18px 20px; background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: 10px; }
.cs-calc h4 { margin-top: 0 !important; }
.cs-calc-intro, .cs-calc-foot { font-size: 15px; color: var(--color-text-dim); }
.cs-calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0 14px; }
.cs-field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; color: var(--color-text); }
.cs-field input {
  font: inherit;
  font-weight: 400;
  padding: 9px 11px;
  border: 1px solid var(--color-border-strong);
  border-radius: 6px;
  background: var(--color-bg);
  color: var(--color-text);
  width: 100%;
  box-sizing: border-box;
}
.cs-field input:focus-visible { outline: 2px solid var(--color-accent-c); outline-offset: 1px; }
.cs-calc-out { display: block; padding: 12px 14px; border-radius: 6px; background: var(--color-bg); border: 1px solid var(--color-border); color: var(--color-text); }
.cs-calc-line { margin: 0 0 4px !important; }
.cs-calc-line:last-child { margin-bottom: 0 !important; }
.cs-calc-foot { margin: 10px 0 0 !important; }

.cs-docfoot { margin-top: 36px !important; padding-top: 14px; border-top: 1px solid var(--color-border); font-size: 14px; color: var(--color-text-dim); text-align: center; }

/* ── Narrow screens: tables become stacked cards ─────────── */
@media (max-width: 800px) {
  .cs-cards { grid-template-columns: 1fr; }
  .cs-lines { grid-template-columns: 1fr; }
  .cs-toc ol { columns: 1; }
}
@media (max-width: 640px) {
  .cs-doc { padding: 0 16px 40px; font-size: 16px; }
  .cs-calc-fields { grid-template-columns: 1fr; }
  .cs-table, .cs-table tbody, .cs-table tfoot, .cs-table tr, .cs-table th, .cs-table td { display: block; width: auto !important; }
  .cs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .cs-table { border: 0; background: transparent; }
  .cs-table tr { border: 1px solid var(--color-border-strong); border-radius: 6px; margin: 0 0 10px; overflow: hidden; background: var(--color-bg); }
  .cs-table tbody tr:nth-child(even) { background: var(--color-bg); }
  .cs-table tbody th, .cs-table tfoot th { background: var(--color-surface); border: 0; border-bottom: 1px solid var(--color-border); }
  .cs-table tbody td, .cs-table tfoot td { border: 0; padding: 6px 12px; }
  .cs-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-dim); }
  .cs-t-nums td.cs-num { text-align: left; white-space: normal; }
  .cs-table td.cs-blank { display: none; }
  .cs-caption { display: block; }
  .cs-cols, .cs-lbls { gap: 3px; }
  .cs-val { font-size: 12px; }
  .cs-lbl { font-size: 12px; }
  .cs-chart { padding: 14px 10px 10px; }
  .cs-plot { height: 190px; }
}

/* ── Print ──────────────────────────────────────────────── */
@media print {
  #eco-header, #eco-header-bar, #eco-nav-bar, #eco-help-btn, #eco-help-panel, #eco-theme-selector, .eco-skip, footer, #eco-footer, .m-wrap > #eco-footer.eco-footer, .cs-cta, .m-footer, .cs-calc, .cs-toc { display: none !important; }
  html, body, .m-wrap, .cs-doc { background: var(--color-white) !important; color: var(--color-black) !important; }
  .cs-doc { max-width: none; padding: 0; font-size: 11pt; line-height: 1.45; }
  .cs-hero { padding: 0 0 8pt !important; min-height: 0 !important; }
  .cs-sec { padding-top: 10pt; break-inside: auto; }
  .cs-sec + .cs-sec { margin-top: 8pt; }
  .cs-doc h2, .cs-doc h3, .cs-doc h4 { break-after: avoid; color: var(--color-black) !important; }
  .cs-table { font-size: 9.5pt; }
  .cs-table thead { display: table-header-group; }
  .cs-table tr, .cs-chart, .cs-card, .cs-howto { break-inside: avoid; }
  .cs-table thead th { background: var(--color-black) !important; color: var(--color-white) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cs-bar, .cs-bar-hl, .cs-path, .cs-dot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cs-doc a { color: var(--color-black) !important; text-decoration: underline; }
  .cs-doc a[href^="pf-"]::after { content: " (eternalcurrent.online/" attr(href) ")"; font-weight: 400; font-size: 9pt; }
  .cs-cards { grid-template-columns: repeat(3, 1fr); }
}

/* GENERATED-START */
/* GENERATED heights (bar and reference-line positions, % of the plot). No inline styles under the site CSP. */
.cs-h3 { height: 3%; }
.cs-h5 { height: 5%; }
.cs-h6 { height: 6%; }
.cs-h7 { height: 7%; }
.cs-h8 { height: 8%; }
.cs-h9 { height: 9%; }
.cs-h12 { height: 12%; }
.cs-h16 { height: 16%; }
.cs-h21 { height: 21%; }
.cs-h25 { height: 25%; }
.cs-h27 { height: 27%; }
.cs-h30 { height: 30%; }
.cs-h34 { height: 34%; }
.cs-h41 { height: 41%; }
.cs-h42 { height: 42%; }
.cs-h43 { height: 43%; }
.cs-h44 { height: 44%; }
.cs-h47 { height: 47%; }
.cs-h49 { height: 49%; }
.cs-h51 { height: 51%; }
.cs-h55 { height: 55%; }
.cs-h57 { height: 57%; }
.cs-h60 { height: 60%; }
.cs-h62 { height: 62%; }
.cs-h63 { height: 63%; }
.cs-h66 { height: 66%; }
.cs-h69 { height: 69%; }
.cs-h71 { height: 71%; }
.cs-h73 { height: 73%; }
.cs-h77 { height: 77%; }
.cs-h78 { height: 78%; }
.cs-h85 { height: 85%; }
.cs-b9 { bottom: 9%; }
.cs-b85 { bottom: 85%; }
/* GENERATED-END */
