.article article { overflow-wrap: break-word; }
.article .extrusion-figure { margin: 1.5rem 0; padding: 0; border: 0; background: none; box-shadow: none; }
.extrusion-control { color: inherit; font-size: 1rem; text-decoration: underline; text-underline-offset: .2em; }
.extrusion-control:not([hidden]) { display: table; position: relative; margin: -48px auto 0; }
.extrusion-drawing-link { display: block; background: none; cursor: pointer; }
.extrusion-drawing { display: block; width: 100%; max-width: none; height: 260px; margin-bottom: 0; overflow: hidden; background: none; cursor: pointer; }
.extrusion-drawing-link *, .extrusion-control, .extrusion-control * { cursor: pointer; }
.extrusion-control:focus-visible { outline: 2px solid #2865d9; outline-offset: 6px; }
@media print { .extrusion-prompt { display: none; } }
.article .shadow-figure { margin: 2rem 0; background: none; }
.shadow-views { max-width: 36rem; margin: 0 auto; }
.shadow-view-label { margin: 0 0 .35rem; font-size: 1rem; line-height: 1.4; text-align: center; }
.shadow-views svg { display: block; width: 100%; height: auto; margin: 0; overflow: visible; }
.shadow-scene { cursor: grab; touch-action: none; user-select: none; }
.shadow-scene.is-dragging { cursor: grabbing; }
.shadow-scene:focus-visible { outline: 2px solid #2865d9; outline-offset: 3px; }
.shadow-labels { pointer-events: none; }
.shadow-dimensions { opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.shadow-dimensions text { fill: #222; font-size: 16px; text-anchor: middle; dominant-baseline: central; paint-order: stroke fill; stroke: white; stroke-width: 4px; stroke-linejoin: round; }
.shadow-labels, .shadow-plane-outline { transition: opacity .25s ease; }
.shadow-figure.is-straight .shadow-dimensions { opacity: 1; }
/* The figure is drawn in dark greys and blue for a light page. On a dark page, turn its lightness
   over and its hues back, so the greys become light and the blue stays blue. */
@media (prefers-color-scheme: dark) { .shadow-views svg { filter: invert(1) hue-rotate(180deg); } }
.shadow-figure.is-straight .shadow-labels, .shadow-figure.is-straight .shadow-plane-outline { opacity: 0; }
.shadow-formulas { display: inline-grid; align-items: center; justify-items: center; }
.shadow-formulas > span { grid-area: 1 / 1; transition: opacity .35s ease; }
.shadow-general { display: inline-flex; align-items: center; gap: .65rem; }
.shadow-calculation { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .65rem; opacity: 0; pointer-events: none; }
.shadow-figure.is-straight .shadow-calculation { opacity: 1; }
.shadow-figure.is-straight .shadow-general { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .shadow-dimensions, .shadow-labels, .shadow-plane-outline, .shadow-formulas > span { transition: none; } }
.shadow-controls:not([hidden]) { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.25rem; margin: .25rem 0 1.25rem; }
.shadow-equation { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .45rem .8rem; margin: .5rem 0 1rem; font-size: 1rem; }
.shadow-control, .shadow-control * { color: inherit; font: inherit; font-size: 1rem; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.shadow-control { border: 0; border-radius: 0; background: none; padding: .2rem 0; }
.shadow-control:focus-visible { outline: 2px solid #2865d9; outline-offset: 6px; }
@media print { .shadow-control { display: none; } }
.article article > h2, .article .proof-faq > h2 { margin-top: 2.4rem; font-size: 1.65rem; line-height: 1.2; }
.article .proof-media { margin: 2rem 0; }
.proof-plot { position: relative; }
.proof-plot-frame > a { display: block; }
.proof-plot-frame { position: relative; }
/* The chart proper starts 12.33% into the picture (axis labels) and ends .84% short of its right edge.
   Hang the axis labels in the left margin, as far as the margin allows (all but a rem of it),
   up to the point where the chart itself spans the text column: the picture is then 114.06% as wide
   as the column. (100vw - 100%) / 2 is the margin beside a centred column. Centre the links under
   the chart proper, wherever that leaves it. */
.proof-plot { --hang: clamp(0px, (100vw - 100%) / 2 - 1rem, 14.06%); }
.proof-plot-frame { width: calc(100% + var(--hang)); margin-left: calc(-1 * var(--hang)); }
.article .proof-plot .proof-downloads { padding: 0 calc(.84% + .0084 * var(--hang)) 0 calc(12.33% - .8767 * var(--hang)); }
.proof-plot-control { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; touch-action: pan-y; outline: none; }
.proof-plot-hit, .proof-plot-handle { pointer-events: all; cursor: ew-resize; }
.proof-plot-control[data-aside] * { pointer-events: none; }
.proof-plot-focus { visibility: hidden; }
.proof-plot-control:focus-visible .proof-plot-focus { visibility: visible; }
.proof-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.article .proof-downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.2rem; margin: .75rem 0 0; font-size: 1rem; }
.article .proof-media video,
.article .proof-media img { display: block; width: 100%; max-width: 100%; height: auto; box-sizing: border-box; background: white; filter: none; }
.article figcaption { margin-top: .75rem; font-size: 1rem; line-height: 1.55; text-align: left; }
.article .method-note { padding: .85rem 0; margin: 1.7rem 0 2.5rem; font-size: 1rem; }
.method-note summary { cursor: pointer; text-decoration: underline; text-underline-offset: .15em; }
.method-note p:last-child { margin-bottom: .25rem; }
.proof-faq { margin-top: 3rem; }
.proof-faq .method-note { margin: 1rem 0; padding: .25rem 0; font-size: inherit; }
.cylinder-figure { text-align: left; }
.model-switch { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; margin: 0; padding: .75rem 0 1rem; border: 0; font-size: 1rem; }
.model-switch legend { padding: 0 .35rem; }
.model-switch label { display: flex; align-items: center; gap: .45rem; cursor: pointer; }
.model-switch input { width: 1.1rem; height: 1.1rem; accent-color: #2865d9; margin: 0; }
.model-stage { position: relative; z-index: 1; width: 100%; aspect-ratio: 8 / 5; min-height: 240px; background: #fff; box-sizing: border-box; }
/* The model selector sits in the stage's top-left corner, above the drawing. The stage is white in every theme. */
.model-stage .model-switch { position: absolute; top: 0; left: 0; z-index: 2; padding: .6rem 0; color: #222; }
@media (prefers-color-scheme: dark) { .model-stage .model-switch { padding-left: .75rem; } }
.model-stage canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; cursor: grab; touch-action: none; outline-offset: -4px; }
.model-stage canvas:active { cursor: grabbing; }
/* The drawing layer: cylinders run past the stage and fade out at the layer's edge. */
.model-stage .model-view { --spill-x: .25; --spill-y: .5; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 2rem, #000 calc(100% - 2rem), transparent), linear-gradient(transparent, #000 2rem, #000 calc(100% - 2rem), transparent);
  mask-image: linear-gradient(to right, transparent, #000 2rem, #000 calc(100% - 2rem), transparent), linear-gradient(transparent, #000 2rem, #000 calc(100% - 2rem), transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
/* On a dark page the stage is a white panel, so the drawing stays inside it. */
@media (prefers-color-scheme: dark) { .model-stage .model-view { --spill-x: 0; --spill-y: 0; -webkit-mask-image: none; mask-image: none; } }
.article .model-stage img { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; filter: none; }
.model-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin: 1rem 0 .5rem; font-size: 1rem; }
.model-controls input[type=range] { flex: 1 1 8rem; min-width: 5rem; max-width: 17rem; accent-color: #2865d9; }
.model-controls output { min-width: 3rem; font-variant-numeric: tabular-nums; }
.view-buttons { display: flex; gap: .4rem; }
.model-controls button { font: inherit; padding: .4rem .7rem; min-width: 2.5rem; min-height: 2.75rem; border: 1px solid #999; border-radius: .25rem; color: inherit; background: var(--main-bg-color); cursor: pointer; }
.model-controls button:hover { border-color: currentColor; }
.model-help { margin: .75rem 0 0; font-size: .9rem; line-height: 1.5; text-align: left; }
.view-reset button { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.view-reset button:focus-visible { outline: 2px solid #2865d9; outline-offset: 3px; }
.cylinder-figure [hidden] { display: none !important; }
.cylinder-figure :focus-visible { outline: 3px solid #2865d9; outline-offset: 3px; }
.area-equation { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem .75rem; font-size: 1.4rem; font-family: Georgia, serif; margin: 1.75rem 0; }
.fraction { display: inline-flex; flex-direction: column; text-align: center; line-height: 1.4; vertical-align: middle; }
.fraction > span:first-child { border-bottom: 1px solid currentColor; padding: 0 .2rem; }
.fraction > span:last-child { padding: 0 .2rem; }
@media (max-width: 420px) { .area-equation { font-size: 1.15rem; gap: .3rem .45rem; } }
/* OpenAI's construction, staged. Without the script every stage's text is shown and the canvas is hidden. */
.cover-figure { text-align: left; margin: 2rem 0; }
.cover-figure canvas { display: none; width: 100%; aspect-ratio: 8 / 5; min-height: 240px; cursor: grab; touch-action: none; outline-offset: -4px; }
.cover-figure.cover-live canvas { display: block; }
.cover-figure canvas:active { cursor: grabbing; }
.cover-figure :focus-visible { outline: 3px solid #2865d9; outline-offset: 3px; }
.cover-figure [hidden] { display: none !important; }
.article .cover-text p { margin: .5rem 0; text-align: left; }
.article .cover-text .cover-stat { font-variant-numeric: tabular-nums; }
.cover-figure .model-help { display: none; }
.cover-figure.cover-live .model-help { display: block; }
.cover-blue { color: hsl(216, 78%, 45%); font-weight: 600; } .cover-rose { color: hsl(338, 78%, 45%); font-weight: 600; }
@media (prefers-color-scheme: dark) { .cover-blue { color: hsl(216, 88%, 70%); } .cover-rose { color: hsl(338, 88%, 72%); } }
@media print { .cover-figure .model-controls, .cover-figure .model-help { display: none !important; } }
/* Float-printing benchmark: the chart is drawn in its "after" state; choosing "before" undoes the changes. */
.float-bench svg { display: block; width: 100%; height: auto; background: #fff; }
.float-bench .lean-bar { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 1.4s cubic-bezier(.45, 0, .2, 1); }
.float-bench .lean-label { transition: transform 1.4s cubic-bezier(.45, 0, .2, 1), opacity .9s ease; }
.float-bench .loc { transition: opacity .9s ease; }
.float-bench .lean-bar.g0 { transform: scaleY(.77419); } .float-bench .lean-label.g0 { transform: translateY(8.4px); }
.float-bench .lean-bar.g1 { transform: scaleY(.75342); } .float-bench .lean-label.g1 { transform: translateY(10.8px); }
.float-bench .lean-bar.g2 { transform: scaleY(.40541); } .float-bench .lean-label.g2 { transform: translateY(39.6px); }
.float-bench .before { opacity: 0; }
.float-bench:has([value=before]:checked) .lean-bar, .float-bench:has([value=before]:checked) .lean-label { transform: none; }
.float-bench:has([value=before]:checked) .before { opacity: 1; }
.float-bench:has([value=before]:checked) .after { opacity: 0; }
/* The speed-up quoted in the text follows the chart's selector. */
.bench-speedup .after { display: none; }
body:has(#float-bench [value=after]:checked) .bench-speedup .before { display: none; }
body:has(#float-bench [value=after]:checked) .bench-speedup .after { display: inline; }
@media (prefers-reduced-motion: reduce) { .float-bench svg * { transition: none; } }
@media print { .model-controls, .model-switch, .model-help { display: none; } .model-stage { break-inside: avoid; } .article .proof-media { break-inside: avoid; } }
