/* Lecture 1 additions. Shared typography, code, controls and disclosures use skrypt.css. */
.lecture-one .prose .katex-display { overflow-x: auto; overflow-y: hidden; max-width: 100%; padding: 4px 0; }
.lecture-one .source-block { min-width: 0; }
.source-figure { text-align: center; }
.lab-intro { margin-bottom: 12px !important; font-size: 14px; }
.lab-parameters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px 14px; margin: 10px 0 0; }
.lab-parameters label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font: 13px/1.5 var(--ui); }
.lab-parameters input { width: 100px; padding: 5px 8px; border: 1px solid #b4c6dc; background: #fff; color: var(--ink); font: 14px/1.5 Consolas, monospace; }
.lab-parameters button { border: 1px solid #b4c6dc; background: #f1f5fb; color: var(--accent-dark); border-radius: 2px; padding: 6px 10px; min-height: 33px; font: 13px/1.5 var(--ui); }
.lab-parameters input[aria-invalid="true"] { border-color: #963333; }
.lab-scrubber { display: flex; align-items: center; gap: 12px; padding: 7px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px; font-size: 13px; }
.lab-scrubber input { flex: 1; min-width: 0; accent-color: var(--accent); }
.lab-scrubber output { min-width: 55px; font: 14px Consolas, monospace; text-align: right; }
.lab-columns, .population-statistics { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; margin: 12px 0; }
.lab-columns > *, .population-statistics > * { min-width: 0; }
.lab-chart { display: block; width: 100%; height: auto; }
.lab-chart text { fill: #435870; font: 19px var(--ui); }
.lab-axis { stroke: #94a7bd; stroke-width: 1; }
.lab-grid { stroke: #e1e7ef; stroke-width: 1; }
.lab-series { fill: none; stroke-width: 2.5; }
.lab-series-a { stroke: #275d98; }
.lab-series-b { stroke: #9a4f21; stroke-dasharray: 3 5; }
.lab-series-low { stroke: #78578f; stroke-dasharray: 9 5; }
.lab-point { fill: #275d98; stroke: #fff; stroke-width: 1; }
.lab-point.is-ignored { fill: #9aa7b8; }
.lab-tail { fill: #eef2fa; }
.lab-selected { stroke: #78578f; stroke-width: 1.5; stroke-dasharray: 4 4; }
.lab-reading h3 { font-size: 15px; margin: 0 0 8px; }
.lab-table { border-collapse: collapse; width: 100%; font: 13px/1.5 var(--ui); }
.lab-table caption { text-align: left; color: var(--muted); margin-bottom: 6px; font-size: 12px; }
.lab-table th, .lab-table td { padding: 6px 7px; border-bottom: 1px solid var(--line); text-align: right; }
.lab-table th:first-child { text-align: left; }
.lab-table th { font-weight: 500; color: #4f637b; }
.lab-table thead { background: #eaf0f7; }
.lab-values { margin: 12px 0; font-size: 14px; }
.lab-values > div { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; padding: 4px 0; }
.lab-values dt { color: var(--muted); }
.lab-values dd { margin: 0; font-variant-numeric: tabular-nums; }
.lab-verdict { border-left: 2px solid #8ca7c6; background: #edf3fb; padding: 9px 11px; font-size: 14px; margin: 9px 0 !important; }
.lab-verdict p + p { margin-top: 6px; font-size: 13px; }
.series-key { display: inline-block; margin-right: 12px; }
.series-key::before { content: ""; display: inline-block; vertical-align: middle; width: 17px; border-top: 2px solid; margin-right: 5px; }
.series-a { color: #275d98; }
.series-b { color: #9a4f21; }
.series-b::before { border-top-style: dotted; }
.series-low { color: #78578f; }
.series-low::before { border-top-style: dashed; }
.lab-certificates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.lab-certificate { padding: 10px 12px; background: #f1f4f8; border-left: 2px solid #a2b2c5; }
.lab-certificate h3 { font-size: 14px; margin: 0 0 6px; }
.lab-certificate p { font-size: 13px; line-height: 1.6; }
.lab-certificate[data-valid="false"] { background: #fcf3ed; border-color: #bd865f; }
.lab-formula { overflow-x: auto; overflow-y: hidden; padding: 8px 0 4px; font-size: 14px; line-height: 2; }
.lab-formula .katex { white-space: nowrap; }
.population-forms { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 20px; }
.population-forms .lab-parameters { margin-top: 0; }
.population-forms .lab-parameters input { width: 65px; }
.population-forms .demo-input { flex-wrap: wrap; }
.population-forms .demo-input input { width: 205px; }
.population-metrics { flex-wrap: wrap; gap: 12px 24px !important; margin-top: 12px !important; }
.population-heading { block-size: 62px; margin-top: 12px; }
.population-heading h3 { font-size: 17px; margin: 0; }
.population-strip { display: flex; gap: 6px; margin: 6px 0 12px; }
.population-item { flex: 0 1 52px; min-width: 32px; padding: 8px 4px; border: 1px solid #9aafc9; background: #fff; text-align: center; font: 17px/1.4 Consolas, monospace; }
.population-item small { display: block; font-size: 12px; color: var(--muted); }
.population-item.is-current { border: 2px solid #ad5815; padding: 7px 3px; }
.population-overview { margin: 15px 0 8px; }
.population-overview tr[aria-current="true"] > * { background: #e8e0f2; }
.hist-bar { fill: #aec8e7; stroke: #557fae; stroke-width: 1; }
.hist-choice { cursor: pointer; outline: none; }
.hist-choice[aria-pressed="true"] .hist-bar { fill: #dfd2ed; stroke: #78578f; stroke-width: 3; }
.hist-choice:focus-visible .hist-bar { stroke: #ad5815; stroke-width: 4; }
@media (max-width: 1180px) {
  .lab-columns, .population-statistics { grid-template-columns: 1fr; }
  .lab-chart { max-width: 720px; margin: 0 auto; }
}
@media (max-width: 900px) {
  .lab-certificates { grid-template-columns: 1fr; }
  .lab-parameters { gap: 8px 10px; }
}
