/* Page styles. Tokens only; the rules followed are ../design/apps/anthropic-assessment-lab/rules.md (see CLAUDE.md) */
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:var(--fs-body)/var(--lh-body) var(--sans)}
.wrap{max-width:var(--col-main);margin:0 auto;padding:0 var(--page-pad) var(--s-9)}

/* header + tabs (rule 4) */
.site{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:var(--s-2) var(--s-4);padding:var(--s-5) 0 var(--s-4);border-bottom:var(--border)}
.site .name{font:500 var(--fs-body)/var(--lh-ui) var(--sans);color:var(--ink);text-decoration:none}
.tabs{display:flex;gap:var(--s-5);margin:0;padding:0;list-style:none}
.tabs a{color:var(--ink-2);text-decoration:none;padding-bottom:var(--s-2);border-bottom:2px solid transparent;transition:color var(--dur) var(--ease)}
.tabs a:hover{color:var(--ink)}
.tabs a[aria-current]{color:var(--ink);border-bottom-color:var(--ink)}
a:focus-visible,button:focus-visible{outline:none;border-radius:var(--radius);box-shadow:0 0 0 3px var(--interact-wash),0 0 0 4px var(--interact)}

/* headings */
h1,h2{font-family:var(--serif);font-weight:400;line-height:var(--lh-heading);margin:0}
h1{font-size:var(--fs-title);margin-top:var(--s-7)}
.lede{font-size:var(--fs-lede);color:var(--ink-2);margin:var(--s-3) 0 var(--s-5)}

/* masthead photograph (rules 7-12) */
.masthead{margin:0 0 var(--s-6)}
.masthead img{display:block;width:100%;aspect-ratio:var(--masthead-ratio);height:auto;max-height:var(--masthead-max-h);min-height:var(--masthead-min-h);object-fit:cover;border-radius:var(--radius);filter:var(--photo-dim)}
/* a page's own art in the masthead's place (app.js showArt): a transparent picture straight on the page, shown
   whole at its own shape, centred, no wider than the reading column */
.masthead.art img{aspect-ratio:auto;max-width:var(--col-text);max-height:none;min-height:0;margin:0 auto;border-radius:0}

/* the filter by reading status shares the count line: options on the left, count on the right (rules 13, 41-43) */
.countline{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:var(--s-2) var(--s-4)}
.filter{display:flex;flex-wrap:wrap;gap:var(--s-4);margin:0}
.filter button{appearance:none;background:none;border:0;margin:0;padding:0;font:var(--fs-meta)/var(--lh-ui) var(--sans);color:var(--ink-2);cursor:pointer;transition:color var(--dur) var(--ease)}
.filter button:hover{color:var(--ink)}
.filter button[aria-pressed="true"]{color:var(--ink);font-weight:500}

/* the list (rules 13-22) */
.count{font-size:var(--fs-meta);color:var(--ink-3);margin:0}
.group h2,.program h2{font-size:var(--fs-h2);margin:var(--s-7) 0 var(--s-3)}
.group h2 .n,.program h2 .n{font:var(--fs-meta)/var(--lh-ui) var(--sans);color:var(--ink-3);margin-left:var(--s-2);white-space:nowrap}
.resources{list-style:none;margin:0;padding:0;border-top:var(--border)}
.resources li{padding:var(--s-4) 0;border-bottom:var(--border)}
.r-title{font:400 var(--fs-item)/var(--lh-heading) var(--serif)}
.r-title a{color:var(--ink);text-decoration:none}
.r-title a:hover{text-decoration:underline;text-decoration-color:var(--rule);text-underline-offset:3px;text-decoration-thickness:1px}
.meta{font-size:var(--fs-meta);line-height:var(--lh-ui);color:var(--ink-2);margin-top:var(--s-1)}
.meta a{color:var(--ink-2);text-decoration:underline;text-decoration-color:var(--rule);text-underline-offset:3px;text-decoration-thickness:1px}
.meta a:hover{color:var(--ink);text-decoration-color:var(--ink)}
.summary{color:var(--ink-2);margin-top:var(--s-2)}

/* program and project pages: a kicker line with the way back sits above the title; the metadata line under it */
.kicker{font-size:var(--fs-meta);line-height:var(--lh-ui);color:var(--ink-3);margin:var(--s-7) 0 0}
.kicker a{color:var(--ink-2);text-decoration:underline;text-decoration-color:var(--rule);text-underline-offset:3px;text-decoration-thickness:1px}
.kicker a:hover{color:var(--ink);text-decoration-color:var(--ink)}
.kicker + h1{margin-top:var(--s-2)}
h1 + .meta{margin:var(--s-2) 0 0}
.meta + .lede{margin-top:var(--s-3)}
.meta + .masthead{margin-top:var(--s-5)}

/* a project's page: the research question, then the summary as prose in the reading column */
.question-page{max-width:var(--col-text);font:400 var(--fs-h2)/var(--lh-heading) var(--serif);color:var(--ink);border-left:2px solid var(--rule);padding-left:var(--s-4);margin:0 0 var(--s-5)}
.prose{max-width:var(--col-text);font:var(--fs-prose)/var(--lh-prose) var(--serif);color:var(--ink)}
.prose p{margin:0 0 var(--s-4)}

/* a note page (notes/<slug>.html): kicker, title, metadata, lede, then numbered sections of short prose and figures.
   Not yet covered by the design rules; see CLAUDE.md. */
.note section h2{font-size:var(--fs-h2);margin:var(--s-7) 0 var(--s-3)}
.note .lede{max-width:var(--col-text)}
.prose b{font-weight:600}
.points{margin:0;padding-left:var(--s-5)}
.points li{margin-bottom:var(--s-3)}

/* the three checks: a numbered list separated by hairlines */
.checks{list-style:none;margin:0;padding:0;border-top:var(--border);counter-reset:check;max-width:var(--col-text)}
.checks li{counter-increment:check;padding:var(--s-4) 0;border-bottom:var(--border)}
.checks p{margin:0 0 var(--s-1);color:var(--ink-2)}
.checks .q{font:400 var(--fs-item)/var(--lh-heading) var(--serif);color:var(--ink);margin-bottom:var(--s-2)}
.checks .q::before{content:counter(check) ". ";color:var(--ink-3)}
.checks .k{display:block;font-size:var(--fs-meta);line-height:var(--lh-ui);color:var(--ink-3)}
.checks p + p{margin-top:var(--s-2)}

/* figures: controls above, drawing and readouts side by side (stacked on phones), caption below */
.fig{margin:var(--s-5) 0 var(--s-6)}
.fig-body{display:flex;flex-wrap:wrap;gap:var(--s-4) var(--s-6);align-items:center}
.fig svg{display:block;flex:1 1 320px;width:100%;max-width:440px;height:auto}
.fig figcaption{max-width:var(--col-text);margin-top:var(--s-3);font-size:var(--fs-meta);line-height:var(--lh-ui);color:var(--ink-2)}
.fig figcaption b{font-weight:600;color:var(--ink)}
.controls{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s-2) var(--s-3);margin:0 0 var(--s-2);font-size:var(--fs-meta);color:var(--ink-2)}
.controls input[type=range]{accent-color:var(--interact);width:180px;max-width:50vw}
.controls output{color:var(--ink);font-variant-numeric:tabular-nums;min-width:3em}
.ctl-label{color:var(--ink-3)}
.ctl{display:inline-flex;flex-wrap:wrap;gap:var(--s-2)}
.ctl button{appearance:none;margin:0;font:inherit;line-height:var(--lh-ui);color:var(--interact-ink);background:none;border:1px solid var(--interact);border-radius:var(--radius);padding:var(--s-1) var(--s-3);cursor:pointer;transition:background var(--dur) var(--ease)}
.ctl button:hover{background:var(--interact-wash)}
.ctl button[aria-pressed="true"]{background:var(--interact-wash);color:var(--ink)}

/* readouts beside a drawing */
.readout{flex:1 1 220px;font-size:var(--fs-meta);line-height:var(--lh-ui);color:var(--ink-2)}
.readout p{margin:0}
.ro-head{color:var(--ink-3);margin-top:var(--s-4) !important}
.ro-head:first-child{margin-top:0 !important}
.ro-value{color:var(--ink);font-variant-numeric:tabular-nums;margin-top:var(--s-1) !important}
.ro-note{color:var(--ink-3);margin-top:var(--s-1) !important}
.scale{position:relative;height:6px;margin-top:var(--s-3);background:var(--seq-1);border-radius:var(--radius)}
.scale-band{position:absolute;top:0;bottom:0;background:var(--data)}
.scale-mark{position:absolute;top:-6px;width:2px;height:18px;margin-left:-1px;background:var(--highlight);transition:left var(--dur) var(--ease)}
.scale-ends{display:flex;justify-content:space-between;color:var(--ink-3);margin-top:var(--s-1)}
.bar-row{display:flex;align-items:center;gap:var(--s-2);margin-top:var(--s-2)}
.bar-key{width:1em;color:var(--ink)}
.bar{flex:1;display:flex;height:10px;margin-top:var(--s-2);background:var(--seq-1);border-radius:var(--radius);overflow:hidden}
.bar-row .bar{margin-top:0}
.bar-fill{height:100%;transition:width var(--dur) var(--ease)}
.fill-a{background:var(--cat-1)} .fill-b{background:var(--cat-2)}

/* marks inside figure drawings: hue only for A, B and what flows; grey for structure */
.fig .lbl{font:var(--fs-label) var(--sans);fill:var(--ink-2)}
.fig .lbl-strong{fill:var(--ink);font-weight:600}
.fig .lbl-quiet{fill:var(--ink-3)}
.fig .ax{stroke:var(--seq-2);stroke-width:1}
.fig .guide{stroke:var(--data);stroke-width:1;stroke-dasharray:3 3}
.fig .vec{stroke-width:2.5;stroke-linecap:round}
/* plots: a curve for the thing measured, a level line for what it is compared with, a shaded band for a range */
.fig .curve{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.fig .curve-a{stroke:var(--cat-1)} .fig .curve-b{stroke:var(--cat-2)}
.fig .ref-a{stroke:var(--cat-1);stroke-width:2}
.fig .band{fill:var(--seq-1)}
.fig .vec-s{stroke:var(--ink)} .fig .vec-a{stroke:var(--cat-1)} .fig .vec-b{stroke:var(--cat-2)}
.fig .m-s{fill:var(--ink)} .fig .m-a{fill:var(--cat-1)} .fig .m-b{fill:var(--cat-2)} .fig .m-off{fill:var(--data)}
.fig .src-a{fill:var(--cat-1)} .fig .src-b{fill:var(--cat-2)}
.fig .edge{stroke-width:2;transition:stroke var(--dur) var(--ease)}
.fig .edge-a{stroke:var(--cat-1)} .fig .edge-b{stroke:var(--cat-2)} .fig .edge-on{stroke:var(--ink)}
.fig .edge-off{stroke:var(--data);stroke-dasharray:4 3}
.fig .part{fill:var(--bg);stroke:var(--ink-2);stroke-width:1}
.fig .part-out{stroke:var(--ink)}
.fig .part-off{stroke:var(--ink-3);stroke-dasharray:4 3}
.fig .part-idle{stroke:var(--data)}
