/* =====================================================================
   The World: the second look (docs/DESIGN.md), a prototype.
   Loaded last. Every rule is scoped to html.look2, a class that js/look.js sets only when the
   address has ?look=2, so with the flag off this file changes nothing.
   The order follows docs/DESIGN.md: tokens, type, the three button kinds, the segmented control,
   then each place on the page.
   ===================================================================== */
html.look2 {
  /* colour: porcelain, ink, one accent, one index */
  --paper: #f4f5f4;          /* the reading panel and every sheet */
  --paper-2: #e9ebea;        /* insets, hover, the track of a segmented control */
  --raised: #fdfdfc;         /* fields and the selected segment */
  --plate: #fafbfa;          /* the ground of a figure */
  --ink: #16191d;            /* text: 16.4:1 on paper */
  --ink-2: #3b424a;          /* secondary text: 9.5:1 */
  --muted: #5d6670;          /* captions and meta: 5.4:1, never smaller than 12px */
  --rule: rgba(22,25,29,.12);        /* hairlines between rows */
  --edge: rgba(22,25,29,.5);         /* the boundary of a field: 3:1 or better against paper */
  --accent: #1e4e8f;         /* Prussian blue: what can be pressed, and nothing else */
  --accent-2: #173f75;       /* pressed */
  --wash: rgba(30,78,143,.09);       /* the quiet button */
  --wash-2: rgba(30,78,143,.16);
  --index: #f0c330;          /* "you are here": the ruler's needle and the label of You */
  --screen: var(--plate);
  --vellum: rgba(244,245,244,.92);   /* controls that float on the scene: opaque enough to read on grass and on space, no blur */
  --track: rgba(226,229,228,.94);
  --tip: rgba(22,25,29,.92);
  /* type: the platform's own faces where the platform has them (never shipped), Source Serif 4 and IBM Plex Sans elsewhere */
  --serif: ui-serif, 'Source Serif 4', 'Source Serif Pro', 'Iowan Old Style', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'IBM Plex Sans', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  /* shape: three radii, nested so that an inner corner is the outer one less the gap */
  --r-panel: 14px; --r-ctl: 9px; --r-in: 7px;
  /* depth: two shadows, one for sheets and one for controls; no borders on either */
  --lift: 0 0 0 .5px rgba(22,25,29,.14), 0 2px 6px rgba(22,25,29,.08), 0 16px 36px -14px rgba(22,25,29,.32);
  --lift-ctl: 0 0 0 .5px rgba(22,25,29,.14), 0 1px 3px rgba(22,25,29,.12);
  --panel-w: 400px;
  --ease: cubic-bezier(.2,.8,.2,1);
}
/* the dark tokens (?look=2&theme=dark): the same roles, checked for the same contrast */
html.look2.look2-dark {
  --paper: #1c1f23; --paper-2: #262a2f; --raised: #2e3338; --plate: #15181b;
  --ink: #eef0f2; --ink-2: #c5cad0; --muted: #9aa3ad;
  --rule: rgba(238,240,242,.14); --edge: rgba(238,240,242,.5);
  --accent: #8db8f2; --accent-2: #a9c9f5; --wash: rgba(141,184,242,.14); --wash-2: rgba(141,184,242,.24);
  --vellum: rgba(28,31,35,.92); --track: rgba(20,22,25,.94); --tip: rgba(244,245,244,.94);
  --lift: 0 0 0 .5px rgba(255,255,255,.16), 0 2px 6px rgba(0,0,0,.3), 0 16px 36px -14px rgba(0,0,0,.7);
  --lift-ctl: 0 0 0 .5px rgba(255,255,255,.16), 0 1px 3px rgba(0,0,0,.4);
}
html.look2 body { font: 400 14px/20px var(--sans); font-variant-numeric: tabular-nums lining-nums; text-rendering: optimizeLegibility }
html.look2 :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
html.look2 button, html.look2 .tb, html.look2 .lm { transition: background-color .12s, color .12s, box-shadow .12s }
@media (prefers-reduced-motion: reduce) { html.look2 *, html.look2 *::before, html.look2 *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important } }

/* ---------- the three kinds of button ----------
   1 primary: a filled accent. One per view: the thing this view is for.
   2 quiet: an accent word on a wash. The other things you can do here.
   3 plain: an accent word. Housekeeping: Back, Close, Minimise, Show, Hide, Pause. */
html.look2 #info .zoom, html.look2 #place .zoom, html.look2 .act, html.look2 #help .go, html.look2 #trail .tr-nav button.b.next, html.look2 #trail .tr-away button, html.look2 #proc .pb button:last-child {
  border: 0; background: var(--accent); color: #fff; border-radius: var(--r-ctl); padding: 8px 15px; font: 500 13px/18px var(--sans); box-shadow: none; cursor: pointer }
html.look2.look2-dark #info .zoom, html.look2.look2-dark #place .zoom, html.look2.look2-dark .act, html.look2.look2-dark #help .go, html.look2.look2-dark #trail .tr-nav button.b.next { color: #10151b }
html.look2 #info .zoom:hover, html.look2 #place .zoom:hover, html.look2 .act:hover, html.look2 #help .go:hover, html.look2 #trail .tr-nav button.b.next:hover:not(:disabled) { background: var(--accent-2) }
html.look2 #info .zoom.alt, html.look2 #info .zoom.lab, html.look2 #place .zoom.alt, html.look2 #ruler .foot button, html.look2 #trail .tr-nav button.b:not(.next), html.look2 #proc .pb button:not(:last-child), html.look2 #library .libsb, html.look2 .tours2 button, html.look2 #tourBar button, html.look2 #srchPanel .schips button, html.look2 #lab .labbar button {
  border: 0; background: var(--wash); color: var(--accent); border-radius: var(--r-ctl); font-weight: 500; box-shadow: none }
html.look2 #info .zoom.alt:hover, html.look2 #info .zoom.lab:hover, html.look2 #place .zoom.alt:hover, html.look2 #ruler .foot button:hover, html.look2 #trail .tr-nav button.b:not(.next):hover:not(:disabled), html.look2 #library .libsb:hover, html.look2 .tours2 button:hover, html.look2 #tourBar button:hover, html.look2 #srchPanel .schips button:hover, html.look2 #lab .labbar button:hover { background: var(--wash-2); color: var(--accent) }
html.look2 .back, html.look2 #panelMin, html.look2 #info .x, html.look2 .pop .px, html.look2 #timebar button, html.look2 .vzp, html.look2 #perf button, html.look2 .core li .core-peel, html.look2 #proc .ph .x, html.look2 #panelHint button {
  border: 0; background: none; color: var(--accent); border-radius: var(--r-in); padding: 4px 8px; font: 500 12px/16px var(--sans); text-decoration: none; box-shadow: none; cursor: pointer }
html.look2 .back:hover:not(:disabled), html.look2 #panelMin:hover, html.look2 #info .x:hover, html.look2 .pop .px:hover, html.look2 #timebar button:hover, html.look2 .vzp:hover, html.look2 #perf button:hover, html.look2 .core li .core-peel:hover, html.look2 #panelHint button:hover { background: var(--wash) }
html.look2 .back:disabled { color: var(--muted); opacity: .5 }
@media (pointer: coarse) { html.look2 .back, html.look2 #panelMin, html.look2 #info .x, html.look2 .pop .px, html.look2 #info .zoom, html.look2 #place .zoom { min-height: 44px; min-width: 44px } }

/* ---------- the segmented control: one design for the scene's modes, a card's depth and the meter's switches ---------- */
html.look2 .seg, html.look2 #info .tabs { display: flex; gap: 2px; padding: 3px; background: var(--track); border: 0; border-radius: 10px; box-shadow: var(--lift-ctl); overflow: visible }
html.look2 .seg button, html.look2 #info .tabs button { border: 0; margin: 0; border-radius: var(--r-in); padding: 5px 11px; font: 500 13px/18px var(--sans); color: var(--ink-2); background: none; cursor: pointer }
html.look2 .seg button:hover, html.look2 #info .tabs button:hover { background: rgba(22,25,29,.06); color: var(--ink) }
html.look2 .seg button.on, html.look2 #info .tabs button.on { background: var(--raised); color: var(--ink); font-weight: 500; box-shadow: var(--lift-ctl) }
html.look2 .seg.fold { flex-wrap: nowrap }
html.look2 .seg.fold.folded:not(.open) > button[data-k]:not(.on) { display: none }
html.look2 .seg.fold.folded.open { flex-direction: column; max-height: 46vh; overflow-y: auto }
html.look2 .seg.fold.folded.open > button { text-align: left }
html.look2 .seg.fold.folded .segMore { display: block; color: var(--accent); font-weight: 500 }
html.look2 .seg.fold.folded.open .segMore { order: -1 }
html.look2 #info .tabs { margin: 18px 0 16px; box-shadow: none; background: var(--paper-2) }
html.look2 #info .tabs button { flex: 1; text-align: center; padding: 5px 0 }
html.look2 .molsel { border: 0; border-radius: 10px; background: var(--vellum); box-shadow: var(--lift-ctl); font: 500 13px/18px var(--sans); padding: 8px 10px }

/* ---------- the ruler ---------- */
html.look2 #ruler { background: var(--paper); border-right: 0; box-shadow: .5px 0 0 rgba(22,25,29,.16), 10px 0 28px -16px rgba(22,25,29,.35) }
html.look2 #ruler .mark { padding: 18px 16px 12px; border-bottom: 0 }
html.look2 #ruler .mark b { font: 600 22px/24px var(--serif); letter-spacing: -.016em }
html.look2 #ruler .mark span { font: 400 12px/16px var(--sans); color: var(--muted); margin-top: 4px }
html.look2 #ruler svg .tk { stroke: var(--ink); stroke-opacity: .6 }
html.look2 #ruler svg .tk.mi { stroke: var(--ink); stroke-opacity: .2 }
html.look2 #ruler svg .ex { font: 500 11px var(--sans); fill: var(--ink-2) }
html.look2 #ruler svg .lead { stroke: var(--ink); stroke-opacity: .16 }
html.look2 #ruler svg .lead.lk-near { stroke-opacity: .7 }
html.look2 #ruler svg .lead.lk-side { stroke-opacity: .09 }
html.look2 #ruler .lm { font: 400 12px/15px var(--sans); color: var(--ink-2); border-radius: 5px; padding: 0 5px }
html.look2 #ruler .lm.lk-side { color: var(--muted) }
html.look2 #ruler .lm:hover { color: var(--accent); background: var(--wash) }
html.look2 #ruler .lm.near { color: var(--ink); font-weight: 600 }
html.look2 #rulerMark { border-top: 1.5px solid var(--index) }
html.look2 #rulerMark .ro { color: #16191d; font: 600 13px/24px var(--sans); padding: 0 10px 0 9px; border-radius: 0 var(--r-in) var(--r-in) 0; box-shadow: 0 1px 3px rgba(22,25,29,.25) }
html.look2 #ruler .foot { border-top: 0; padding: 8px 12px 12px; gap: 8px }
html.look2 #ruler .foot button { padding: 7px 4px; font: 500 12px/16px var(--sans) }

/* ---------- the right-hand column: main buttons, search, the panel: one width, one edge ---------- */
html.look2 #topright { top: 12px; right: 16px; width: var(--panel-w); max-width: calc(100vw - 32px); padding: 3px; gap: 2px; background: var(--vellum); border: 0; border-radius: 10px; box-shadow: var(--lift-ctl); overflow: visible }
html.look2 .tb { flex: 1; border: 0; border-radius: var(--r-in); padding: 5px 6px; font: 500 13px/18px var(--sans); color: var(--ink-2); white-space: nowrap }
html.look2 .tb:hover { background: rgba(22,25,29,.06); color: var(--ink) }
html.look2 .tb.on { background: var(--raised); color: var(--ink); box-shadow: var(--lift-ctl) }
html.look2 .tb.off { color: var(--muted) }
html.look2 #srch { top: 50px; right: 16px }
html.look2 #srchForm { height: 36px; background: var(--raised); border: 0; border-radius: 10px; box-shadow: 0 0 0 1px var(--edge), var(--lift-ctl) }
html.look2 #srchForm:focus-within { box-shadow: 0 0 0 2px var(--accent), var(--lift-ctl) }
html.look2 #srchQ { font: 400 14px/20px var(--sans); padding: 0 40px 0 12px; border-radius: 10px }
html.look2 #srchForm .kbd { top: 8px; right: 8px; font: 500 11px/18px var(--sans); border: 0; border-radius: 5px; background: var(--paper-2); color: var(--muted); padding: 0 7px }
html.look2 #srchPanel { margin-top: 8px; padding: 6px; border: 0; border-radius: var(--r-panel); box-shadow: var(--lift); background: var(--paper) }
html.look2 #srchPanel .sgh { padding: 12px 10px 4px; font: 600 12px/16px var(--sans); color: var(--muted) }
html.look2 #srchPanel .srow { padding: 7px 10px 8px; border-top: 0; border-radius: var(--r-in) }
html.look2 #srchPanel .srow + .srow { border-top: 0 }
html.look2 #srchPanel .srow.on::before { content: none }
html.look2 #srchPanel .st b { font: 600 14px/20px var(--sans) }
html.look2 #srchPanel .sk { font: 400 12px/16px var(--sans) }
html.look2 #srchPanel .why { font: 400 14px/21px var(--serif); font-style: normal; color: var(--ink-2) }
html.look2 #srchPanel .shint { border-left: 0; margin: 6px 10px 2px; padding: 0; font: italic 400 14px/21px var(--serif) }
html.look2 #srchPanel .near { border: 0; background: var(--wash); border-radius: 5px; padding: 0 6px; font: 500 11px/16px var(--sans) }
html.look2 #srchPanel a.sbook { border-top: 0; border-radius: var(--r-in); padding: 7px 10px 8px }

html.look2 #panel { top: 94px; right: 16px; bottom: 16px; border: 0; border-radius: var(--r-panel); box-shadow: var(--lift); transition: transform .28s var(--ease), visibility 0s }
html.look2 #panel.min { transition: transform .28s var(--ease), visibility 0s .28s }
html.look2 #panelHead { padding: 8px 8px 8px 12px; gap: 4px; border-bottom: 1px solid var(--rule) }
html.look2 #crumbList { font: 400 12px/24px var(--sans) }
html.look2 #crumbList li + li::before { color: var(--muted); opacity: .7; margin: 0 1px 0 0 }
html.look2 .crumb { color: var(--ink-2); border-radius: 5px }
html.look2 .crumb:hover { background: var(--wash); color: var(--accent); text-decoration: none }
html.look2 .crumb.cur { color: var(--ink); font-weight: 600 }
html.look2 #panelBody { padding: 20px 24px 28px }
html.look2 #panelHint { margin: 0 0 18px; padding: 10px 6px 10px 12px; background: var(--paper-2); border-radius: var(--r-ctl); font: 400 13px/19px var(--sans); align-items: center }

/* the place, and the card of a selected thing: title, one line that stands alone, then the reading text */
html.look2 #place .ptag, html.look2 #info .tag { font: 500 12px/16px var(--sans); color: var(--muted) }
html.look2 #place .n, html.look2 #info h2 { font: 600 30px/34px var(--serif); letter-spacing: -.018em; margin: 6px 0 12px }
html.look2 #panel.hasSel #place .n { font: 600 18px/24px var(--serif); letter-spacing: -.008em; margin: 2px 0 }
html.look2 #place .d, html.look2 #info .body { font: 400 16px/26px var(--serif); color: var(--ink) }
html.look2 #info .body p { margin: 0 0 12px; max-width: 36em }
html.look2 #info .body p.lk-lead b { font-weight: 400 }
html.look2 #info .body p.lk-lead { font-size: 18px; line-height: 27px; letter-spacing: -.004em; margin-bottom: 14px }
html.look2 #info .expert { font-size: 15px; line-height: 23px }
html.look2 #place .nt, html.look2 #info .note { margin-top: 12px; font: italic 400 14px/21px var(--serif); color: var(--ink-2) }   /* italic serif says one thing in this interface: what the picture is */
html.look2 #place .tn { font: 400 12px/16px var(--sans) }
html.look2 #place .btnrow, html.look2 #info .btnrow { gap: 8px; margin: 18px 0 4px }
html.look2 #info .lookrow { gap: 8px; margin: 12px 0 16px }
html.look2 #info { padding-bottom: 20px; margin-bottom: 18px }
html.look2 #info .cardhead { padding-right: 60px }
html.look2 #info .x { top: -4px; right: -8px }
html.look2 .asked { font: 400 13px/19px var(--sans); margin: 0 0 4px }
html.look2 .asked button, html.look2 #trail .tr-leave, html.look2 #trail .tr-deeper button { text-decoration: none; font-weight: 500 }
html.look2 .asked button:hover, html.look2 #trail .tr-leave:hover, html.look2 #trail .tr-deeper button:hover { text-decoration: underline; text-underline-offset: 3px }
html.look2 #info dl { margin: 16px 0 4px }
html.look2 #info dt { font: 400 13px/18px var(--sans); padding: 8px 16px 8px 0 }
html.look2 #info dd { font: 400 13px/18px var(--sans); padding: 8px 0 }
html.look2 #info .fun { margin: 16px 0 6px; padding: 12px 14px; border-left: 0; background: var(--paper-2); border-radius: var(--r-ctl); font: 400 15px/23px var(--serif); font-style: normal; color: var(--ink) }
html.look2 #info .fun b { font: 600 12px/16px var(--sans); color: var(--ink-2); margin-bottom: 3px }
html.look2 #info .nobuilt, html.look2 #place .nobuilt { border-left: 0; background: var(--paper-2); border-radius: var(--r-ctl); padding: 10px 14px; font: 400 15px/23px var(--serif) }
html.look2 #info .refs { margin-top: 20px; padding-top: 14px }
html.look2 #info .rh, html.look2 .pop .rh { font: 600 13px/18px var(--sans); margin-bottom: 6px }
html.look2 #info .rs { font: 400 12px/16px var(--sans); margin: 8px 0 2px }
html.look2 .chips { font: 400 14px/24px var(--sans) }   /* a list of links is a control: sans, and the accent alone marks it */
html.look2 .chip { text-decoration: none }
html.look2 .chip:hover { text-decoration: underline; text-underline-offset: 3px }
html.look2 .chip.pr { font-weight: 500 }
html.look2 .chip + .chip::before { content: none }
html.look2 .chip:not(:last-child)::after { content: ','; display: inline-block; margin-right: .32em; color: var(--muted); text-decoration: none; font-weight: 400 }   /* the comma stays with its word: it no longer starts a line */
html.look2 a.ref { padding: 8px 0; font: 400 12px/16px var(--sans) }
html.look2 a.ref b { font: 500 13px/18px var(--sans) }
html.look2 ul.ev { font: 400 15px/23px var(--serif); padding-left: 18px }
html.look2 .core { border: 0; background: var(--paper-2); border-radius: var(--r-ctl); padding: 12px 14px }
html.look2 .formula, html.look2 .regime { border-radius: var(--r-ctl) }
html.look2 .trnav { border-radius: var(--r-ctl) }
html.look2 .trnav button { background: var(--raised) }
html.look2 .psec > summary { font: 600 13px/18px var(--sans); padding: 12px 0 10px }
html.look2 .psec > summary::after { font: 500 12px/18px var(--sans) }
html.look2 #panelTab { border: 0; border-radius: 10px 0 0 10px; box-shadow: var(--lift-ctl); top: 96px }
html.look2 #panelTabB .tt { font: 600 13px/18px var(--sans) }

/* a question trail in the panel */
html.look2 #trail h3 { font: 600 22px/27px var(--serif); letter-spacing: -.012em; margin: 2px 0 8px }
html.look2 #trail p { font: 400 16px/26px var(--serif); margin: 0 0 10px }
html.look2 #trail .tr-model { border-radius: var(--r-ctl); padding: 8px 12px; font: italic 400 14px/21px var(--serif); background: none; padding-left: 0; color: var(--ink-2) }
html.look2 #trail .tr-notice { border-left: 0; padding: 10px 14px; background: var(--paper-2); border-radius: var(--r-ctl); font: 400 15px/23px var(--serif) }
html.look2 #trail .tr-notice b { color: var(--ink-2); display: block; margin: 0 0 2px }
html.look2 #trail .tr-nav button.b { padding: 8px 15px; font: 500 13px/18px var(--sans) }
html.look2 #trail .tr-dots button { width: 8px; height: 8px; border: 0; background: rgba(22,25,29,.22) }
html.look2 #trail .tr-dots button.done { background: var(--muted) }
html.look2 #trail .tr-dots button.on { background: var(--accent); transform: scale(1.3) }

/* ---------- figures: a plate on the card, not a screen ---------- */
html.look2 .vzh { margin: 16px 0 6px }
html.look2 .vz canvas { background: var(--plate); border-radius: var(--r-ctl); outline: 1px solid var(--rule); outline-offset: -1px }
html.look2 .vzh { padding-top: 26px; position: relative }   /* Enlarge is a plain button above the plate's top right corner: on the plate it covered the figure's own labels */
html.look2 .vzbig { top: -2px; right: -8px; height: 24px; padding: 0 8px; border-radius: var(--r-in); background: none; color: var(--accent); font: 500 12px/24px var(--sans) }
html.look2 .vzbig:hover { background: var(--wash) }
html.look2 .vzc { padding: 10px 0 2px; gap: 6px 14px }
html.look2 .vzc label { font: 400 12px/16px var(--sans); color: var(--ink-2) }
html.look2 .vzp { margin-left: -8px }
html.look2 .vzr { font: 400 12px/18px var(--sans) }
html.look2 .vzcap { font: 400 13px/19px var(--sans); font-style: normal; color: var(--ink-2); padding: 6px 0 0; max-width: 46em }   /* a caption is one clear step below the reading text */
html.look2 #vizModal .vm { border-radius: 18px; padding: 24px 28px 26px }

/* ---------- sheets: Library, Questions, Tracks take the panel's place and width, so nothing overlaps the search field ---------- */
html.look2 .pop { top: 94px; right: 16px; width: var(--panel-w); max-height: calc(100% - 110px); padding: 20px 24px 24px; border: 0; border-radius: var(--r-panel); box-shadow: var(--lift) }
html.look2 .pop h3 { font: 600 22px/27px var(--serif); letter-spacing: -.012em; margin: 0 0 6px }
html.look2 .pop .sub { font: 400 13px/19px var(--sans); color: var(--ink-2); margin-bottom: 14px }
html.look2 .pop .px { top: 14px; right: 12px }
html.look2 #questions { width: var(--panel-w); padding: 20px 0 10px }
html.look2 #questions h3, html.look2 #questions .sub { padding: 0 24px }
html.look2 #questions .qx { top: 12px; right: 14px; color: var(--accent); font: 400 22px/24px var(--sans); border-radius: var(--r-in) }
html.look2 .qtheme { font: 600 12px/16px var(--sans); padding: 16px 24px 4px; margin-top: 8px }
html.look2 .qitem { padding: 9px 24px 11px }
html.look2 .qitem .qq { font: 600 18px/24px var(--serif); letter-spacing: -.008em }
html.look2 .qitem .qt { font: 400 15px/23px var(--serif); margin-top: 2px }
html.look2 .qitem .qm { font: 400 12px/16px var(--sans); margin-top: 5px }
html.look2 .qitem:hover .qq { color: var(--ink) }
html.look2 #tracks { top: 12px; bottom: auto; left: 12px; width: 360px; max-height: calc(100vh - 28px); border: 0; border-radius: var(--r-panel); box-shadow: var(--lift); padding: 20px 20px 24px }   /* a sheet like the others: it floats, it does not run the height of the screen over the ruler */
html.look2 body:has(#tracks.open) #controls { left: 388px }
html.look2 details summary { font: 400 14px/20px var(--sans); padding: 6px 0 }
html.look2 .jl { font: 600 13px/18px var(--sans); margin: 18px 0 4px }
html.look2 #library .libsb { padding: 9px 12px; font: 500 13px/18px var(--sans) }
html.look2 .kn { font: 400 13px/18px var(--sans) }

/* ---------- small things that float on the scene ---------- */
html.look2 #zoombtns { background: var(--vellum); border: 0; border-radius: 10px; box-shadow: var(--lift-ctl) }
html.look2 #zoombtns button { width: 36px; height: 36px; font: 400 18px/1 var(--sans); color: var(--ink-2) }
html.look2 #zoombtns button:hover { background: rgba(22,25,29,.06); color: var(--ink) }
html.look2 #fov { font: 400 12px/16px var(--sans); gap: 4px }
html.look2 #fov .k, html.look2 #clockBtn { background: var(--vellum); border-radius: var(--r-in); padding: 3px 9px; box-shadow: var(--lift-ctl); color: var(--ink-2) }
html.look2 #clockBtn { color: var(--accent); font-weight: 500 }
html.look2 #clockBtn:hover { text-decoration: none; background: var(--raised) }
html.look2 #tip { background: var(--tip); color: #fff; border: 0; border-radius: var(--r-in); padding: 5px 9px; font: 500 12px/16px var(--sans); box-shadow: 0 2px 8px rgba(22,25,29,.3) }
html.look2 #tip small { color: rgba(255,255,255,.68); font-weight: 400 }
html.look2.look2-dark #tip { color: #16191d } html.look2.look2-dark #tip small { color: rgba(22,25,29,.65) }
html.look2 .toast { background: var(--tip); color: #fff; border-radius: var(--r-ctl); padding: 9px 15px; font: 400 13px/19px var(--sans); box-shadow: 0 4px 14px rgba(22,25,29,.3) }
html.look2 .toast.m, html.look2 #push, html.look2 #loadNote, html.look2 #tourBar { background: var(--vellum); color: var(--ink); border: 0; border-radius: var(--r-ctl); box-shadow: var(--lift-ctl) }
html.look2 #perf, html.look2 #scalePop, html.look2 .cfg, html.look2 #seq, html.look2 .specw { border: 0; border-radius: var(--r-panel); box-shadow: var(--lift) }
html.look2 #perf .pf-warn { border-left: 0; background: var(--paper-2); border-radius: var(--r-ctl); padding: 8px 10px }
html.look2 #perf, html.look2 body.panelOpen #perf { right: 16px; top: 94px; bottom: auto; width: var(--panel-w); max-height: calc(100vh - 110px); overflow-y: auto; padding: 12px 16px; background: var(--paper) }   /* a sheet in the panel's place, like Library: it covers neither the scene nor the buttons */
html.look2 body:has(#perf.open) #panel, html.look2 body:has(.pop.open) #panel, html.look2 body:has(#tracks.open) #panel { visibility: hidden }   /* one sheet at a time: no second edge showing past the first */
html.look2 #perf .pf-row { flex-direction: column; align-items: flex-start; gap: 3px; margin-top: 4px }   /* a long choice never wraps inside its own control: the name above, the control below */
html.look2 #perf .pf-seg button { white-space: nowrap }
html.look2 #perf .pf-seg { flex-wrap: wrap; justify-content: flex-start }
html.look2 #perf header b { font: 600 18px/24px var(--serif); letter-spacing: -.008em }
html.look2 #perf dl, html.look2 #perf dt, html.look2 #perf dd { border-color: var(--rule) }
html.look2 #perf dt { font: 400 12px/16px var(--sans); color: var(--muted) } html.look2 #perf dd { font: 400 13px/18px var(--sans) }
html.look2 #perf .pf-row > span:first-child { font: 400 12px/16px var(--sans) }
html.look2 #perf .pf-seg { gap: 2px; padding: 3px; background: var(--paper-2); border-radius: 10px }   /* the meter's switches are the one segmented control */
html.look2 #perf .pf-seg button { margin: 0; border-radius: var(--r-in); padding: 3px 9px; font: 500 12px/16px var(--sans); color: var(--ink-2); background: none }
html.look2 #perf .pf-seg button:hover { background: rgba(22,25,29,.06); color: var(--ink) }
html.look2 #perf .pf-seg button.on { background: var(--raised); color: var(--ink); box-shadow: var(--lift-ctl) }
html.look2 #perf textarea { border: 0; background: var(--paper-2); border-radius: var(--r-ctl) }
html.look2 #selMark { border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(22,25,29,.7), inset 0 0 0 1px rgba(22,25,29,.7) }

/* ---------- labels in the scene: names, set like the names on a map ----------
   The label sits above the thing it names with a short stem pointing down at it. No dot: the old dot sat beside the
   word, on nothing. On a light scene (the park by day, a tissue plate, the atom) the words are ink with a paper halo;
   on a dark one they are paper with an ink halo. js/look.js sets body.lk-day. */
html.look2 .lbl { --halo: rgba(10,13,18,.78); font: 500 12px/16px var(--sans); letter-spacing: 0; padding: 1px 5px; margin-top: 0; color: #f6f7f6; text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased;
  text-shadow: 0 0 1px var(--halo), 0 0 3px var(--halo), 0 0 6px var(--halo) }   /* one soft halo, not eight hard copies */
html.look2 .lbl::before { left: 50%; top: 100%; width: 1px; height: 9px; margin: 0 0 0 -.5px; border-radius: 0; background: currentColor; opacity: .85; box-shadow: none }   /* the stem ends on the point the name belongs to (js/engine.js, LBL_STEM) */
html.look2 .lbl:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px }
html.look2 body.lk-day .lbl { --halo: rgba(255,255,255,.92); color: #16191d; font-weight: 600 }
html.look2 body.lk-day .lbl:hover { color: var(--accent) }
html.look2 .lbl.you, html.look2 body.lk-day .lbl.you { color: #16191d; font-weight: 600; background: var(--index); border-radius: 5px; padding: 1px 7px; text-shadow: none; box-shadow: 0 1px 3px rgba(22,25,29,.3) }   /* the same mark as the ruler's read-out: you are here */
html.look2 .lbl.you::before { background: var(--index); width: 1.5px; opacity: 1; box-shadow: none }

/* ---------- welcome ---------- */
html.look2 #help { background: rgba(14,18,24,.64) }
html.look2 #help .card { width: min(620px, 92vw); padding: 36px 40px 32px; border-radius: 18px; box-shadow: var(--lift) }
html.look2 #help h1 { font: 600 36px/40px var(--serif); letter-spacing: -.022em; margin: 0 0 12px }
html.look2 #help .lead { font: 400 18px/27px var(--serif); margin: 0 0 18px }
html.look2 #help .starters { margin: 0 0 20px; padding: 12px 16px 10px; border-radius: var(--r-ctl) }
html.look2 #help .starters b { font: 600 12px/16px var(--sans); margin-bottom: 6px }
html.look2 #help .starters button { font: 600 16px/24px var(--serif); padding: 2px 0 }
html.look2 #help .steps li { grid-template-columns: 34px 1fr; padding: 12px 0 }
html.look2 #help .steps li::before { width: auto; height: auto; border-radius: 0; background: none; color: var(--muted); font: 400 22px/24px var(--serif); text-align: left; margin-top: 0 }   /* a numeral, set as one */
html.look2 #help .steps b { font: 600 18px/24px var(--serif); letter-spacing: -.008em }
html.look2 #help .steps span { font: 400 14px/20px var(--sans) }
html.look2 #help .grid > * { padding: 9px 0; font: 400 13px/18px var(--sans) }
html.look2 h1, html.look2 .pop h3, html.look2 #info h2, html.look2 #trail h3, html.look2 #place .n { text-wrap: balance }
html.look2 #help .go { margin-top: 22px; padding: 11px 22px; font: 500 14px/20px var(--sans); border-radius: 10px }

/* ---------- labs ---------- */
html.look2 #lab .labbar { border-bottom: 1px solid var(--rule) }
html.look2 #lab .labbar b { font: 600 18px/24px var(--serif); letter-spacing: -.008em }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  html.look2 { --panel-w: 100vw }
  html.look2 #topright { top: 8px; right: 8px; width: auto; left: calc(var(--ruler-w) + 8px); max-width: none }
  html.look2 .tb { padding: 7px 2px; font-size: 12px }
  html.look2 #srch { top: 50px; right: 8px }
  html.look2 #srchBtn { border: 0; border-radius: 10px; background: var(--vellum); box-shadow: var(--lift-ctl); color: var(--accent) }
  html.look2 #panel { top: auto; left: calc(var(--ruler-w) + 6px); right: 6px; bottom: 6px; border-radius: 16px }
  html.look2 #panel .grab::after { width: 36px; height: 5px; margin-left: -18px; top: 7px; border-radius: 3px; background: rgba(22,25,29,.25) }
  html.look2 #panelHead { padding: 20px 6px 6px 10px }
  html.look2 #panelBody { padding: 12px 16px 20px }
  html.look2 #place .n, html.look2 #info h2 { font-size: 22px; line-height: 27px; letter-spacing: -.012em; margin: 4px 0 8px }
  html.look2 #place .d, html.look2 #info .body { font-size: 16px; line-height: 26px }
  html.look2 #info .body p.lk-lead { font-size: 18px; line-height: 26px }
  html.look2 .pop { top: 92px; left: calc(var(--ruler-w) + 8px); right: 8px; width: auto; max-height: calc(100% - 100px); padding: 18px 16px 20px }   /* under the Search button, which a sheet used to cover */
  html.look2 #questions { width: auto; padding: 18px 0 8px }
  html.look2 #questions h3, html.look2 #questions .sub { padding: 0 16px }
  html.look2 .qtheme { padding: 14px 16px 4px } html.look2 .qitem { padding: 10px 16px 12px }
  html.look2 #tracks { top: 50px; left: 8px; right: 8px; bottom: auto; max-height: calc(100vh - 58px); width: auto; border-radius: var(--r-panel); box-shadow: var(--lift) }
  html.look2 #perf, html.look2 body.panelOpen #perf { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 60vh }
  html.look2 #trail .tr-model { position: sticky; bottom: 58px; z-index: 1; background: var(--paper); margin: 0; padding: 6px 0 4px; font-size: 13px; line-height: 18px }   /* the note that says what the picture is stays on screen above Back and Next, even when the sheet is low */
  html.look2 #panelTab { top: auto; border-radius: 12px; box-shadow: var(--lift-ctl) }
  html.look2 #help .card { padding: 24px 20px 20px; border-radius: 16px }
  html.look2 #help h1 { font-size: 30px; line-height: 34px }
  html.look2 #help .go { position: sticky; bottom: -12px; display: block; width: 100%; box-shadow: 0 0 0 14px var(--paper) }   /* a solid strip behind the button: no text runs under it */
  html.look2 #ruler .mark { padding: 12px 4px 8px } html.look2 #ruler .mark b { font-size: 15px; line-height: 18px }
  html.look2 .seg button { padding: 6px 9px }
  html.look2 body:has(.pop.open) #controls, html.look2 body:has(#perf.open) #controls { display: none }   /* a sheet has the screen: the scene's own control waits */
  html.look2 #ruler svg .lead { display: none }   /* the names are hidden on a phone: so are the lines that led to them */
}

/* the note that says the sky over the park is a photograph (js/look.js, section 7) */
#lkSkyNote { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px)); padding: 6px 10px; border-radius: 6px;
  background: rgba(250, 251, 250, .9); color: #16191d; font: 12px/1.4 -apple-system, BlinkMacSystemFont, 'IBM Plex Sans', 'Segoe UI', sans-serif; z-index: 5; pointer-events: none }
#lkSkyNote[hidden] { display: none }

/* ---------- step 14: what the system left for the interface ---------- */
/* a path that is too long folds to "N more": a plain button like the others, not a box */
html.look2 .crumb.more { border: 0; background: none; color: var(--accent); font-weight: 500; padding: 3px 5px }
html.look2 .crumb.more:hover { background: var(--wash); text-decoration: none }
html.look2 .crumb.more[aria-expanded="true"] { background: var(--wash); color: var(--accent) }
/* the ruler names a side stop only within three decades of where you are (js/engine_ui.js, updateRuler) */
html.look2 #ruler .lm, html.look2 #ruler svg .lead { transition: opacity .16s ease-out, top .2s ease-out }
html.look2 #ruler .lm.lk-far { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .16s ease-out, visibility 0s .16s }
html.look2 #ruler svg .lead.lk-far { opacity: 0 }
/* labels: secondary names at 60 percent; a name hidden by a collision fades */
html.look2 .lbl { transition: opacity .16s ease-out }
html.look2 .lbl.lk-sec { opacity: .6 }
html.look2 .lbl.lblhide { opacity: 0; transition: opacity .16s ease-out, visibility 0s .16s }
/* tooltips: the thing under the pointer, and one muted fact */
html.look2 #tip { max-width: 260px }
/* the sheets' close buttons and lists keep a 44 px target for a finger */
@media (pointer: coarse) { html.look2 .crumb, html.look2 .tb, html.look2 #srchBtn, html.look2 .qitem, html.look2 #ruler .foot button { min-height: 44px } html.look2 .tb { min-height: 36px } }
/* keyboard focus is a 2 px accent outline, 2 px off, on everything; never removed; inside a field it is the field's ring */
html.look2 #srchQ:focus-visible { outline: 0 }
html.look2 .seg button:focus-visible, html.look2 .tb:focus-visible { outline-offset: -2px }

/* the path's long form ("N more"): a list of plain rows on a raised ground, not a white box with a rule */
html.look2 #crumbMenu { background: var(--raised); border: 0; border-radius: 10px; box-shadow: var(--lift-ctl); padding: 4px }
html.look2 #crumbMenu .cmi { font: 500 13px/18px var(--sans); border-radius: var(--r-in); min-height: 32px }
html.look2 #crumbMenu button.cmi:hover, html.look2 #crumbMenu button.cmi:focus-visible { background: var(--paper-2); text-decoration: none }

/* the path on a phone is one row that scrolls, so a separator never starts a line on its own */
@media (max-width: 860px) {
  html.look2 #crumbList { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent) }
  html.look2 #crumbList::-webkit-scrollbar { display: none }
  html.look2 #crumbList li { flex: none }
  html.look2 .seg.fold.open button { border-top: 0 }
}

/* a card panel hugs its content on a desktop: it ends where the text ends (up to the height of the screen) and gives the rest back to the scene.
   On a phone it is a bottom sheet with its own two heights (css/app.css). */
@media (min-width: 861px) { html.look2 #panel { bottom: auto; height: auto; max-height: calc(100vh - 110px) } }
