/* Paper, ink and two trace colours carry the same meaning in all five views. */
body.studio-page { margin: 0; padding: 0 0 36px; background: #FAF8F4; color: #1f3231; font: 16px/1.5 "Helvetica Neue", Arial, sans-serif; }
.studio-page * { box-sizing: border-box; }
.studio-page [hidden] { display: none !important; }
.studio-page a { color: #185a53; text-underline-offset: .18em; }
.studio-page :focus-visible { outline: 3px solid #986324; outline-offset: 3px; }
.studio-skip { position: absolute; inset: 0 auto auto -9999px; }
.studio-skip:focus { left: 0; z-index: 2; background: #fff; padding: 8px; }
.studio-mast { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #c9cec1; padding: 11px max(5vw, calc((100vw - 1080px)/2)); color: #25483e; }
.studio-mast :first-child { color: inherit; text-decoration: none; font: bold 20px/1.4 Georgia, serif; }
.studio-mast span:last-child { font-size: 13px; }
.studio-main { margin: 0 auto; padding: 32px 0 0; width: min(90%, 1080px); max-width: none; }
.studio-heading { display: flex; flex-direction: column; align-items: flex-start; }
.studio-heading p, .part-number { margin: 0; font: 600 12px/1.4 "Helvetica Neue", Arial, sans-serif; text-transform: uppercase; letter-spacing: .1em; color: #506459; }
.studio-heading h1 { font: 500 clamp(48px, 5.3vw, 78px)/1.08 Georgia, serif; letter-spacing: -.055em; margin: 3px 0 19px; color: #183c36; }
.studio-tabs { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); border-block: 1px solid #c7cdbf; }
.studio-tabs a { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; min-height: 43px; padding: 8px 3px; color: #38574e; font-size: 14px; text-decoration: none; }
.studio-tabs a span { font: 12px ui-monospace, monospace; color: #59695f; }
.studio-tabs a[aria-current=step] { color: #fff; background: #25574f; }
.studio-tabs a[aria-current=step] span { color: #d8e9df; }
.studio-tabs a:hover { text-decoration: underline; }
.experiment { padding-top: 26px; }
.experiment-heading h2 { color: #203d38; font: 500 clamp(28px, 3.2vw, 46px)/1.1 Georgia, serif; letter-spacing: -.035em; margin: 6px 0 8px; }
#experiment-intro { max-width: 77ch; margin: 0 0 20px; }
.bench { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(265px,1fr); column-gap: 34px; align-items: start; }
.instrument { min-width: 0; }
.instrument figure { margin: 0; border: 1px solid #bec7b9; border-radius: 4px; overflow: hidden; background: #f0f1e8; }
#diagram { display: block; width: 100%; height: auto; background-color: #f5f3e9; background-image: radial-gradient(#cbd1c1 .8px,transparent .8px); background-size: 12px 12px; }
#diagram-caption { font-size: 14px; line-height: 1.4; padding: 10px 14px; border-top: 1px solid #c8cfc1; color: #3a534a; }
.knob { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; padding: 12px 2px 0; }
.knob output { font: 14px ui-monospace, monospace; }
#knob { grid-column: 1 / -1; width: 100%; min-height: 32px; margin: 0; accent-color: #26655a; cursor: pointer; }
.knob span, .rule-label { font-size: 14px; font-weight: 650; }
#prediction { display: block; margin: 0; min-width: 0; }
#rule { font: 16px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; width: 100%; margin-top: 5px; padding: 9px 12px; color: #214d47; border: 1px solid #9cae9c; border-left: 3px solid #3d7568; border-radius: 2px; background: #f2f4ec; }
#rule-hint { color: #4c6056; margin: 5px 0 12px; font-size: 14px; line-height: 1.45; }
#rule-hint code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: #203934; background: #ebe7dd; border-radius: 3px; padding: 0 4px; }
#prediction fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
#prediction legend { padding: 0; font: 600 17px/1.3 Georgia, serif; color: #253e35; }
#options { display: flex; flex-wrap: wrap; gap: 8px; padding: 9px 0; }
#options label { display: flex; align-items: center; gap: 4px; padding: 7px 10px; min-height: 40px; border: 1px solid #b1beb0; border-radius: 3px; background: #fcfbf7; cursor: pointer; }
#options label:has(input:checked) { background: #e4eee4; border-color: #537b6a; }
#options input { accent-color: #25574f; margin: 0 3px 0 0; }
.trace-now { font: 600 15px/1.3 "Helvetica Neue",Arial,sans-serif; min-height: 44px; padding: 10px 16px; border-radius: 3px; border: 1px solid #254e47; color: white; background: #25574f; cursor: pointer; }
.trace-now span { margin-left: 12px; }
#experiment-error { color: #85391e; margin: 6px 0 0; }
.outcome { border-left: 4px solid #b7603c; background: #f3ece1; margin: 15px 0 0; padding: 11px 16px; }
.outcome p { margin: 4px 0; }
#feedback { color: #5e523e; font-size: 14px; }
#observed { font: 650 20px/1.4 Georgia, serif; }
#history, .source-edition { margin-top: 14px; font-size: 14px; }
#history summary, .source-edition summary { cursor: pointer; }
#history ol { padding-left: 22px; overflow-wrap: anywhere; }
.studio-footer { display: flex; flex-wrap: wrap; gap: 8px 26px; border-top: 1px solid #c9cec1; padding: 14px 0 0; margin-top: 26px; font-size: 15px; }
.source-edition { width: min(90%, 1080px); margin-inline: auto; }
.source-edition pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.outer-crate { fill: none; stroke: #9aa593; stroke-width: 1.7; stroke-dasharray: 5 5; }
.crate { fill: #dce5d5; fill-opacity: .35; stroke: #708671; stroke-width: 2; }
.crate.checked { fill: #c7dfcd; stroke: #296557; stroke-width: 3; }
.facet { fill: #bdcec1; stroke: #4f716b; stroke-width: 1.7; }
.facet.checked { fill: #6f9f91; stroke: #245d55; }
.beam,.sunlight { stroke: #ab482f; stroke-width: 3.5; }
.aim { stroke: #9b4836; stroke-width: 2.8; stroke-dasharray: 9 5; }
.lens,.hit { fill: #ab482f; }
.speck { fill: #163131; }
.sun { fill: #d9a03a; stroke: #916321; stroke-width: 2; }
.sunlight { stroke: #ad7929; }
.cup { fill: #bbd1c2; stroke: #32594f; stroke-width: 2; }
.cup-handle { fill: none; stroke: #466c60; stroke-width: 3; }
.wall { fill: #b4a28a; stroke: #675946; stroke-width: 2; }
.group-a,.group-b { fill-opacity: .25; stroke-width: 3; }
.group-a { fill: #e2a65f; stroke: #975c2a; }
.group-b { fill: #79b4a9; stroke: #377367; stroke-dasharray: 8 4; }
.glass { fill: #d2e4de; stroke: #679991; stroke-width: 2; }
.normal { stroke: #76897b; stroke-width: 1.5; stroke-dasharray: 5 4; }
.swatch { fill: #e1e0d3; stroke: #859182; stroke-width: 2; }
@media (max-width: 720px) {
  .studio-main { width: calc(100% - 32px); padding-top: 22px; }
  .studio-mast { padding: 9px 16px; }
  .bench { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .studio-tabs a { flex-direction: column; gap: 1px; font-size: 12px; padding: 5px 0; }
  .studio-tabs a span { font-size: 11px; }
  .experiment { padding-top: 18px; }
  .studio-heading h1 { margin-bottom: 13px; }
  #experiment-intro { margin-bottom: 13px; }
  .studio-footer { margin-top: 20px; }
}
