:root{--bg:var(--pst-color-background,#fff);--panel:var(--pst-color-surface,#f7f7f7);--fg:var(--pst-color-text-base,#000);--muted:var(--pst-color-text-muted,#666);--line:color-mix(in srgb,var(--fg) 22%,var(--bg));--accent:#76B900;--accent-ink:var(--pst-color-primary,#3F8500);--blue:#0074DF;--orange:#EF9100;--purple:#952FC6}body{font-family:var(--pst-font-family-base,Arial,sans-serif);background:var(--bg);color:var(--fg)}:root[data-theme=dark]{--bg:var(--pst-color-background,#111);--panel:var(--pst-color-surface,#202020);--fg:var(--pst-color-text-base,#eee);--muted:var(--pst-color-text-muted,#aaa)}main{max-width:1000px;margin:auto;padding:12px}h1{font-size:22px;line-height:1.25;margin:0 0 7px}p{font-size:14px;line-height:1.5;margin:8px 0}.lead,.key,.limits{color:var(--muted)}.row{gap:10px;margin:12px 0}.row label{display:flex;gap:6px;align-items:center;font-size:13px;min-width:0}select{font:inherit;max-width:100%;padding:5px;border:1px solid var(--line);border-radius:4px;color:var(--fg);background:var(--bg)}.row .policy-select{max-width:300px}.plot-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:5px}.plot-wrap svg{display:block;width:100%;min-width:620px;height:auto;touch-action:pan-y}.plot-wrap svg.requirements{touch-action:pan-x pan-y}.plot-wrap svg.requirements [data-handle],.plot-wrap svg.requirements [data-handle] *{touch-action:none}.gridline{fill:none;stroke:var(--line);stroke-width:1}.axis{fill:none;stroke:var(--fg);stroke-width:1.2}.tick,.axis-label,.plot-label{fill:var(--fg);font-family:inherit;font-size:14px}.tick{fill:var(--muted);font-size:13px}.plot-label{font-size:13px}.mark{cursor:pointer;outline:none}.mark:focus .hit{stroke:var(--fg);stroke-width:2}.mark .hit{fill:transparent;stroke:transparent;pointer-events:all}.readout{border-left:3px solid var(--accent);background:var(--panel);padding:9px 12px;color:var(--fg);font-size:14px;min-height:58px;line-height:1.5;margin:12px 0}.key{font-size:12px}.legend{display:flex;flex-wrap:wrap;gap:8px 15px;font-size:12px;color:var(--muted);margin:7px 0}.legend span:before{content:'';display:inline-block;width:10px;height:10px;margin-right:5px;background:var(--swatch);border:1px solid #757575}.limits{border-top:1px solid var(--line);padding-top:9px;font-size:12px}details{margin-top:9px;font-size:13px}summary{cursor:pointer}table{width:100%;border-collapse:collapse;font-size:12px}th,td{text-align:left;padding:5px 7px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}.table-wrap{overflow-x:auto}.threshold-controls{display:grid;grid-template-columns:1fr 1fr;gap:14px}.threshold-controls label{display:block;font-size:13px}.threshold-controls input{width:100%;margin:0}.count{font-weight:bold;color:var(--fg)}.checks{list-style:none;padding:0}.checks .pass{color:var(--accent-ink)}@media(max-width:480px){main{padding:9px}h1{font-size:20px}.row label{flex-wrap:wrap}.row .policy-select{max-width:240px}.threshold-controls{grid-template-columns:1fr}}

/* The lesson supplies the heading and introduction for embedded figures. */
html[data-embedded="true"],
html[data-embedded="true"] body {
  margin: 0;
  padding: 0;
  min-height: 0;
  height: auto;
}
html[data-embedded="true"] main {
  display: flow-root;
  max-width: none;
  margin: 0;
  padding: 0;
}
html[data-embedded="true"] h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
html[data-embedded="true"] .lead { display: none; }
html[data-embedded="true"] .plot-wrap {
  border: 0;
  border-radius: 0;
}

/* Dragging the requirement boundary must not select axis or tick text. */
.plot-wrap svg.requirements {
  user-select: none;
  -webkit-user-select: none;
}

/* The course theme forces a scrollbar even when the iframe content fits. */
html[data-embedded="true"] { overflow-y: auto; }
