/* STATIX worked examples - one stylesheet for every calculators/examples/<calculator>-example-<n>.html page
   (worked-examples pilot, 23 Nov 2026). Screen: the site look (forest / teal, Archivo + Fraunces + JetBrains Mono).
   Print / Save as PDF: A4, no site chrome, one step never split across pages, a tick box per step for the checking engineer. */
:root{
  --we-bg:#F5FAF8; --we-panel:#FFFFFF; --we-line:#C3DAD3; --we-soft:#DDEBE6; --we-text:#123A38; --we-dim:#4E6B67; --we-faint:#7A9591;
  --we-accent:#1C9C8E; --we-deep:#14796E; --we-forest:#0F3D31; --we-good:#1F8A5B; --we-warn:#B7791F; --we-bad:#B03A2E;
  --we-sans:'Archivo',system-ui,-apple-system,'Segoe UI',sans-serif; --we-display:'Fraunces',Georgia,serif; --we-mono:'JetBrains Mono',ui-monospace,Consolas,monospace;
}
body.we-page{margin:0;background:var(--we-bg);color:var(--we-text);font-family:var(--we-sans);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased}
.we-wrap{max-width:1180px;margin:0 auto;padding:0 24px}
.we-crumb{font-size:14px;color:var(--we-dim);padding:18px 0 0}
.we-crumb a{color:var(--we-deep);text-decoration:none}.we-crumb a:hover{text-decoration:underline}
.we-hero{padding:28px 0 26px;border-bottom:1px solid var(--we-soft)}
.we-eyebrow{font-family:var(--we-mono);font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--we-deep)}
.we-hero h1{font-family:var(--we-display);font-weight:500;font-size:clamp(34px,4.2vw,54px);line-height:1.05;letter-spacing:-.015em;margin:10px 0 14px}
.we-hero h1 em{font-style:normal;color:var(--we-accent)}
.we-lede{font-size:19px;color:var(--we-dim);max-width:820px;margin:0 0 20px}
.we-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.we-btn{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:999px;font-weight:600;font-size:15px;text-decoration:none;border:1px solid transparent;cursor:pointer;font-family:inherit;line-height:1.2}
a.we-btn-primary,a.we-btn-primary:visited,a.we-btn-primary:hover{background:var(--we-forest);color:#fff!important}a.we-btn-primary:hover{background:#15403D}
a.we-btn-ghost,a.we-btn-ghost:visited{color:var(--we-text)!important}
button.we-btn{font-size:15px;padding:11px 20px;line-height:1.2}
.we-btn-ghost{border-color:var(--we-line);color:var(--we-text);background:var(--we-panel)}.we-btn-ghost:hover{border-color:var(--we-accent)}
.we-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0 0}
.we-sum{background:var(--we-panel);border:1px solid var(--we-soft);border-radius:12px;padding:12px 14px}
.we-sum b{display:block;font-family:var(--we-mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--we-dim);font-weight:500}
.we-sum span{font-size:20px;font-weight:600}
.we-sum span.pass{color:var(--we-good)}.we-sum span.fail{color:var(--we-bad)}
.we-sec{padding:34px 0 8px}
.we-sec h2{font-family:var(--we-display);font-weight:500;font-size:32px;letter-spacing:-.01em;margin:0 0 8px}
.we-sec h2 small{font-family:var(--we-sans);font-size:16px;color:var(--we-dim);font-weight:400;margin-left:8px}
.we-basis{color:var(--we-dim);margin:0 0 18px}
.we-problem{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:start}
.we-problem p{margin:0 0 14px}
.we-sketch{background:var(--we-panel);border:1px solid var(--we-soft);border-radius:14px;padding:12px}
.we-sketch svg{display:block;width:100%;height:auto}
.we-sketch figcaption{font-size:13px;color:var(--we-dim);padding:6px 4px 0}
table.we-data,table.we-cmp{width:100%;border-collapse:collapse;background:var(--we-panel);border:1px solid var(--we-soft);border-radius:12px;overflow:hidden;font-size:15px}
table.we-data th,table.we-data td,table.we-cmp th,table.we-cmp td{padding:8px 12px;border-bottom:1px solid var(--we-soft);text-align:left;vertical-align:top}
table.we-data th,table.we-cmp th{background:#EEF6F3;font-weight:600;font-size:13px;letter-spacing:.02em}
table.we-data td:first-child{color:var(--we-dim);width:38%}
table.we-cmp td.n,table.we-cmp th.n{text-align:right;font-family:var(--we-mono);font-size:14px;white-space:nowrap}
.we-step{background:var(--we-panel);border:1px solid var(--we-soft);border-radius:14px;padding:16px 18px 14px;margin:0 0 14px;break-inside:avoid;page-break-inside:avoid}
.we-step header{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}
.we-n{font-family:var(--we-mono);font-weight:600;color:#fff;background:var(--we-forest);border-radius:8px;padding:2px 9px;font-size:14px}
.we-step h3{margin:0;font-size:19px;font-weight:600;flex:1 1 auto}
.we-cl{font-family:var(--we-mono);font-size:12.5px;color:var(--we-deep);background:#E7F4F0;border-radius:6px;padding:2px 8px}
.we-tick{font-size:13px;color:var(--we-faint);white-space:nowrap}
.we-why{margin:8px 0 10px;color:var(--we-dim);font-size:15.5px}
.we-why::before{content:'Why: ';font-weight:600;color:var(--we-text)}
table.we-work{width:100%;border-collapse:collapse;font-size:15px}
table.we-work td{padding:6px 8px;border-top:1px solid var(--we-soft);vertical-align:top}
table.we-work td.f{width:40%}
table.we-work td.s{color:var(--we-dim);font-family:var(--we-mono);font-size:13.5px}
table.we-work td.r{text-align:right;font-weight:600;white-space:nowrap}
.we-note{font-size:14px;color:var(--we-dim);margin:8px 0 0;padding-left:12px;border-left:3px solid var(--we-soft)}
.we-check{display:flex;justify-content:flex-end;gap:12px;align-items:center;margin:10px 0 0;font-size:15px}
.we-check .box{border:2px solid var(--we-good);border-radius:8px;padding:4px 12px;font-weight:600;color:var(--we-good);font-family:var(--we-mono)}
.we-check.fail .box{border-color:var(--we-bad);color:var(--we-bad)}
.we-result{background:var(--we-forest);color:#fff;border-radius:14px;padding:16px 20px;margin:6px 0 10px;display:flex;gap:24px;flex-wrap:wrap;align-items:center}
.we-result b{font-family:var(--we-mono);font-size:26px}
.we-pill{display:inline-block;border-radius:999px;padding:1px 10px;font-size:12.5px;font-weight:600;font-family:var(--we-mono)}
.we-pill.agrees{background:#E3F3EA;color:var(--we-good)}.we-pill.rounding{background:#EEF4F2;color:var(--we-deep)}.we-pill.FINDING,.we-pill.MISSING{background:#FBEBD5;color:#8A5A10}
.we-findings{background:#FFF8EA;border:1px solid #F0D9A8;border-radius:12px;padding:12px 16px;margin:12px 0 0;font-size:15px}
.we-findings.none{background:#F0F8F4;border-color:#CBE6D8}
.we-how{color:var(--we-dim);font-size:15.5px}
.we-how li{margin:0 0 6px}
@media (max-width:980px){.we-problem{grid-template-columns:1fr}.we-summary{grid-template-columns:repeat(2,minmax(0,1fr))}table.we-work td.f{width:auto}}
@media print{
  @page{size:A4;margin:14mm 12mm 16mm}
  body.we-page{background:#fff;font-size:11pt}
  header.top,.ax-status,footer.stx-foot,.we-actions,.we-noprint,#stx-notice,.stx-notice{display:none!important}
  .we-wrap{max-width:none;padding:0}
  .we-hero{padding-top:0}
  .we-hero h1{font-size:24pt}
  .we-step,.we-sketch,table.we-cmp tr{break-inside:avoid;page-break-inside:avoid}
  .we-step{border-color:#999}
  .we-tick{color:#000}
  .we-sec{padding-top:14px}
  .we-part{break-before:page;page-break-before:always}
  .we-printurl{display:block!important;font-size:9pt;color:#555;margin-top:8px}
  a{color:inherit;text-decoration:none}
}
.we-printurl{display:none}
/* scope rows (review 3, 1 Dec 2026): what the result does not cover, named next to the verdict */
.we-sum span.open,.we-result b small.we-forshown{font-weight:500}
.we-sum span small.we-forshown{display:block;font-size:13px;color:var(--we-dim);font-weight:500}
.we-result b small.we-forshown{font-size:15px;font-family:inherit;opacity:.9}
.we-open{display:block;font-size:13px;line-height:1.35;margin-top:4px}
.we-sum span.we-open{color:#8A5A10;font-size:13.5px;font-weight:500}
.we-result .we-open{flex-basis:100%;margin:0;font-size:14px}
.we-open i{font-style:normal;font-family:var(--we-mono);font-weight:600;font-size:12px}
.we-scope{background:var(--we-panel);border:1px solid var(--we-soft);border-radius:12px;padding:12px 16px;margin:0 0 14px;font-size:15px}
.we-scope.open{background:#FFF8EA;border-color:#F0D9A8}
.we-scope b{display:block;margin:4px 0}
.we-scope p{margin:2px 0 6px}
.we-scope ul{margin:4px 0 6px;padding-left:18px}
.we-scope li{margin:6px 0}
.we-scope li b{display:inline;margin:0}
.we-scope .we-scl{font-family:var(--we-mono);font-size:12.5px;color:var(--we-dim);margin-left:6px}
.we-snote{margin:3px 0 0}
.we-pill.NOTCHECKED,.we-pill.REVIEW{background:#FBEBD5;color:#8A5A10}.we-pill.INFO,.we-pill.NA{background:#EEF4F2;color:var(--we-deep)}
