/* Miriam, dressed as Liquid Calling dresses: one plain grotesk set with intention (Neue Haas where it's installed,
   Helvetica Neue elsewhere), thin outlines and pill buttons, colour only where it means something. The ground is the
   visitor's choice (ground.js): white, Liquid Calling's grey, or black; everything below follows --ink and --paper.
   Loaded after the page's own styles; take this file out and Miriam is as it was. */
@font-face { font-family: 'NHG'; src: local('Neue Haas Grotesk Text Pro'), local('NHaasGroteskTXPro-55Rg'), url('NHaasGroteskTXPro-55Rg.ttf') format('truetype'); font-weight: 400 600; }
:root, :root[data-ground="white"] {   /* the default ground is grey (ground.js); these are the shared values and white's */
  --paper: #fff; --ink: #000;
  --bg: var(--paper); --panel: var(--paper); --panel2: rgba(0,0,0,.04); --line: rgba(0,0,0,.14); --fg: var(--ink);
  --mut: #4d4d4d; --dim: #808080; --acc: var(--ink); --acc2: var(--paper); --warn: #b26b00; --bad: #c2331c; --good: #17a24a;
  --c-glyph: var(--ink); --c-outline: rgba(0,0,0,.35); --c-grid: rgba(0,0,0,.09); --c-box: rgba(0,0,0,.13); --c-cell: rgba(0,0,0,.07);
  --scroll: rgba(0,0,0,.18);
}
:root[data-ground="grey"] { --paper: #d9d9d9; --panel2: rgba(0,0,0,.05); --line: rgba(0,0,0,.16); --dim: #6f6f6f; }
:root[data-ground="black"] {
  --paper: #000; --ink: #fff; --panel2: rgba(255,255,255,.06); --line: rgba(255,255,255,.18); --mut: #b3b3b3; --dim: #8a8a8a;
  --warn: #ffcf6b; --bad: #ff8a75; --good: #5fe08a;
  --c-outline: rgba(255,255,255,.4); --c-grid: rgba(255,255,255,.10); --c-box: rgba(255,255,255,.16); --c-cell: rgba(255,255,255,.08);
  --scroll: rgba(255,255,255,.22);
}
html, body { font: 500 14px/1.35 'NHG', 'Helvetica Neue', Helvetica, Arial, sans-serif; letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; }

/* the name, as Liquid Calling sets its own: large, plain, tight, a hairline under it */
.brand { padding: 18px 20px 16px; border-bottom: 1px solid var(--line); }
.brand h1 { font-size: 33px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.brand small { font-size: 13px; color: var(--mut); }
.brand small a { color: var(--fg); }

/* panels: no boxes, a hairline between, the name in sentence case */
.side { border-right: 1px solid var(--line); }
.group { border-bottom: 1px solid var(--line); padding: 14px 20px 16px; }
.group > h2 { font-size: 17px; letter-spacing: -0.01em; text-transform: none; color: var(--fg); font-weight: 500; }
.group > h2::before { color: var(--fg); font-size: 11px; }
.group.primary { background: none; }
.group.primary > h2 { font-size: 17px; }
.group > h2 .verb { color: var(--dim); }
.pstatus { font-size: 12px; color: var(--mut); }
.pstatus.bad::before { color: var(--bad); }
.pstatus.ok::before { color: var(--good); }
.hint, .axis, .stagefoot { font-size: 12px; }
.subhdr { text-transform: none; letter-spacing: 0; font-size: 12px; }
.val, .pairrow .pv, .vmtable .plan, .hc .f, .sug .vv, .hc button.f { color: var(--fg); }

/* controls: pills with a hairline in the ink; on = filled with it */
.seg { border: 1px solid var(--ink); border-radius: 999px; }
.seg button { color: var(--ink); padding: 7px 14px; }
.seg button[aria-pressed=true] { background: var(--ink); color: var(--paper); font-weight: 500; border-radius: 999px; }
.btn { background: var(--ink); color: var(--paper); border-radius: 999px; font-weight: 500; padding: 11px; }
.btn.ghost, .chips button, .chips-btn, .res .opts button, .sidetoggle { background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; }
.group > h2 .hbtn { background: var(--ink); color: var(--paper); border-radius: 999px; font-weight: 500; letter-spacing: 0; }
.res .opts button.on { background: var(--ink); color: var(--paper); }
input[type=text], textarea { background: transparent; color: var(--fg); border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 8px 0; }
.topbar input[type=text] { border: 1px solid var(--ink); border-radius: 999px; padding: 8px 16px; }
input[type=range] { accent-color: var(--ink); }
.drop { border: 1px dashed var(--ink); border-radius: 999px; color: var(--mut); }

/* findings and lists: plain rows, coloured only at the level */
.hc, .vmissue, .ask, .pairlist { background: transparent; border-color: var(--line); border-radius: 10px; }
.hc.bad { border-color: color-mix(in srgb, var(--bad) 50%, transparent); } .hc.bad .lv, .vmissue.bad { color: var(--bad); }
.hc.warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); } .hc.warn .lv, .vmissue.warn { color: var(--warn); }
.hc.ok .lv, .vmissue.ok { color: var(--good); }
.hc .armed { color: var(--good); } .hc .armed input { accent-color: var(--good); }
.pairrow { border-bottom-color: var(--line); }
.pairrow[aria-selected=true] { background: var(--ink); color: var(--paper); }
.pairrow[aria-selected=true] .pp, .pairrow[aria-selected=true] .pv { color: var(--paper); }
.tag, .badge { border-radius: 999px; background: transparent; }

/* the stage: the same ground, no bars, the type in the ink */
.topbar { background: var(--bg); border-bottom: 0; padding: 14px 20px; }
.stagefoot { border-top: 0; color: var(--dim); align-items: center; }
.stagefoot kbd { background: transparent; border-color: var(--line); color: var(--fg); border-radius: 999px; padding: 0 7px; }

/* the ground switch (ground.js): three small dots in the foot, the one on at full strength, the others faded */
.ground { display: flex; align-items: center; gap: 7px; }
.ground button { width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; }
.ground button[data-g="white"] { background: #fff; } .ground button[data-g="grey"] { background: #d9d9d9; } .ground button[data-g="black"] { background: #000; }
.ground button { opacity: .4; transition: opacity .2s ease; }
.ground button:hover, .ground button[aria-pressed=true] { opacity: 1; }

/* scrollbars on whichever ground */
.side, .pairlist { scrollbar-color: var(--scroll) transparent; }
.side::-webkit-scrollbar-thumb, .pairlist::-webkit-scrollbar-thumb { background: var(--scroll); background-clip: padding-box; }

/* the labels in title case: each word of a control's name capitalised. Names of controls only; what they say back
   (hints, findings, values, the type itself) stays as written */
.group > h2, .row .lbl, .topbar .lbl, .subhdr, .vmtable .hd, .hc .lv, .ask h4, .tag, .badge,
.seg button, .btn, .btn.ghost, .chips button, .chips-btn, .res .opts button, .group > h2 .hbtn,
.stagefoot b, .stagefoot .keys span, .brand small { text-transform: capitalize; letter-spacing: 0; }
.group > h2 .verb, .pstatus { text-transform: none; }

/* the name drawn in Chubby (logo-*.svg, outlines, so no font file ships), in the ink of whichever ground */
.brand h1 .logo { display: block; height: 30px; width: auto; color: var(--ink); margin-bottom: 8px; }
.brand h1 .logo[aria-label="Miriam Play"] { width: 100%; height: auto; }   /* the longer name, as wide as the panel allows */

/* file formats keep their capitals (OTF / TTF, WOFF2, BOTH (ZIP)), set smaller so the three fit the panel */
.seg button[data-v="otf"], .seg button[data-v="woff2"], .seg button[data-v="zip"] { text-transform: uppercase; font-size: 11.5px; padding-inline: 6px; }
/* a panel's heading on one line in the narrower panel: the name a touch smaller, what follows it cut short */
.group > h2 { font-size: 15px; flex-wrap: nowrap; white-space: nowrap; }
.group > h2 .verb { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* no 'live' badges on the panels: everything here works, there's nothing to announce (the elements stay, the form
   panel's script writes into its own) */
.tag.live { display: none; }

/* the name block the same height on Miriam and Play, so moving between them doesn't jump: the description on one
   line, the way across on the next, neither allowed to wrap */
.brand small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; }
