/* Colors and spacing for the lab. All graphics are drawn locally with SVG. */
:root { color-scheme: light; --ink:#172e29; --muted:#425e54; --dark:#102c29; --teal:#12614e; --blue:#235a85; --paper:#f1f5ef; --line:#c7d6ca; }
* { box-sizing:border-box; }
body { margin:0; font:1rem/1.55 system-ui,sans-serif; color:var(--ink); background:var(--paper); }
.wrap { width:min(100% - 2rem, 72rem); margin-inline:auto; }
.hero { color:#f6fff9; background:var(--dark); padding:clamp(2rem,6vw,4.5rem) 0 2rem; border-bottom:5px solid #87b89a; }
.hero p { max-width:65ch; }
.eyebrow { color:#b6e0c6; font-size:.875rem; letter-spacing:.14em; font-weight:750; }
h1,h2,h3,p { margin:0 0 .65em; }
h1 { font-size:clamp(2.5rem,7vw,5rem); line-height:1.02; letter-spacing:-.045em; margin-bottom:.25em; }
h2 { font-size:clamp(1.65rem,4vw,2.2rem); line-height:1.15; letter-spacing:-.025em; }
h3 { font-size:1.15rem; }
.intro { font-size:clamp(1.15rem,3vw,1.5rem); }
nav { display:flex; flex-wrap:wrap; gap:.4rem 1rem; margin-top:1.4rem; }
nav a { color:#f6fff9; padding:.65rem .15rem; text-underline-offset:.28em; }
section { margin-block:2.5rem; scroll-margin-top:1rem; }
section > p { max-width:75ch; }
.panel,.question,.control,.run { background:#fff; border:1px solid var(--line); border-radius:.8rem; padding:clamp(.8rem,2.5vw,1.35rem); min-width:0; }
.model-grid,.control-grid,.log-grid { display:grid; gap:1rem; }
.model-grid { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
.control-grid,.log-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr)); margin-block:1rem; }
.rules,.question,.reflection { margin-top:1rem; }
summary,label,legend { font-weight:680; }
summary { cursor:pointer; padding-block:.35rem; }
.rules ul { padding-left:1.25rem; }
.steps { padding-left:1.4rem; max-width:80ch; margin-bottom:0; }
.steps li + li { margin-top:.7rem; }
.first-trial { margin-top:1.2rem; border-top:1px solid var(--line); padding-top:1rem; }
#first-control .control { margin-block:1rem; max-width:42rem; }
main a { color:var(--teal); text-underline-offset:.2em; }
.muted,footer { color:var(--muted); }
svg { display:block; width:100%; height:auto; font:600 13px system-ui,sans-serif; }
svg text { fill:var(--ink); }
#charts svg { margin-bottom:.6rem; }
fieldset { min-width:0; border:0; padding:0; margin:.75rem 0; }
fieldset:disabled { opacity:.65; }
textarea,input[type=text],input[type=number] { font:inherit; color:inherit; width:100%; padding:.55rem .7rem; border:1px solid #6e887a; border-radius:.35rem; background:#fff; }
textarea { display:block; margin:.4rem 0 .8rem; resize:vertical; }
input[type=range] { display:block; width:100%; margin:0 0 .65rem; height:2.6rem; accent-color:var(--teal); }
input[type=radio] { accent-color:var(--teal); }
button { font:inherit; font-weight:700; border:1px solid var(--teal); border-radius:.4rem; padding:.52rem .8rem; background:var(--teal); color:#fff; cursor:pointer; min-height:44px; }
button:disabled { background:#e3ece5; color:var(--muted); cursor:default; }
:focus-visible { outline:3px solid #a54d00; outline-offset:3px; }
.hero :focus-visible { outline-color:#ffd786; }
.skip { position:absolute; left:1rem; top:-10rem; background:white; color:var(--ink); padding:.5rem; z-index:1; }
.skip:focus { top:1rem; }
.choice { display:flex; align-items:center; gap:.55rem; min-height:44px; font-weight:500; }
.feedback { margin:.65rem 0 0; }
.feedback:empty { display:none; }
.outcomes,.run dl { margin:.5rem 0; font-variant-numeric:tabular-nums; }
dt { font-weight:650; }
dd { margin:0 0 .45rem; }
#goal { background:#e5f2e9; padding:.6rem .75rem; margin-bottom:0; border-radius:.4rem; }
.readings { padding-left:1.3rem; }
#log-form { display:grid; grid-template-columns:minmax(0,22rem) auto; gap:.4rem .6rem; justify-content:start; }
#log-form label { grid-column:1/-1; }
.run { overflow-wrap:anywhere; }
.log-table { width:100%; table-layout:fixed; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.log-table th,.log-table td { padding:.38rem .25rem; text-align:left; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.log-table th:first-child { width:29%; }
.log-table th { font-size:.875rem; }
.table-wrap { grid-column:1/-1; }
footer { padding:0 0 1.5rem; }
@media(max-width:48rem) { .model-grid { grid-template-columns:1fr; } }
@media(max-width:29rem) { #log-form { grid-template-columns:1fr; } #log-form button { justify-self:start; } }

