/* The read-only project views (project_view_controller.js), shared by
   « Mes serments » and the shared-oath page: section headings, mini and
   recipe cards, recipe steps, the paints list. */

/* ---------- sections & meta text ---------- */
.sect{margin-bottom:26px}
.shead{display:flex;align-items:baseline;gap:12px;margin-bottom:9px}

/* ---------- read cards ---------- */
/* same box metrics as input.pname so nothing jumps when switching modes */
.vtitle{font-size:23px;font-weight:650;letter-spacing:-.02em;margin:0 0 0 -8px;flex:1;min-width:200px;
  padding:4px 8px;border:1px solid transparent}
.vnotes{margin:0;color:var(--ink-2)}
.vmini,.vrecipe{border:1px solid var(--line);background:var(--panel);border-radius:var(--radius);padding:14px 16px;margin-bottom:12px}
.vmini h3{margin:0;font-size:16px;letter-spacing:-.01em}
.vrecipe h3{margin:0 0 8px;font-size:16px;letter-spacing:-.01em}
.vmhead{display:flex;align-items:center;gap:8px;margin-bottom:10px;flex-wrap:wrap}
/* the name never shrinks under its longest word; the mark, fraction and
   controls travel as one group, to the far edge or to the line below */
.vmhead h3{flex:1;min-width:min-content}
.vmacts{display:flex;align-items:center;gap:8px;margin-left:auto}
.vmnotes{margin:-6px 0 10px;font-size:12.5px;color:var(--ink-2);font-style:italic}
.vbar+.vmnotes{margin-top:0}
.vrnotes{margin:0 0 4px;font-size:12.5px;color:var(--ink-2);font-style:italic}
.vzone{margin-bottom:12px}
.vzone:last-child{margin-bottom:0}
/* at the pointer a mini's surfaces read in two columns */
@media (min-width:861px){
  .vzones{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px}
  .vzones .vzone{margin-bottom:0}
}
.vzhead{display:flex;gap:8px;align-items:baseline;margin-bottom:4px;flex-wrap:wrap}
.vzhead .vfrac{margin-left:auto}
.vzname{font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-3)}
.varrow{color:var(--ink-3)}
.vrname{font-weight:600;font-size:14.5px}
.vsteps{margin:0;padding:0;list-style:none;counter-reset:st;display:flex;flex-direction:column;gap:3px}
.vsteps li{counter-increment:st;display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:14px}
.vsteps li::before{content:counter(st);font-size:11px;color:var(--ink-3);width:14px;text-align:right;font-variant-numeric:tabular-nums}
.vrole{color:var(--ink-2);font-size:13px;min-width:110px}
.vbrand{color:var(--ink-3);font-size:12px}
.vnote{color:var(--ink-2);font-size:12.5px;font-style:italic}
.vundec{color:var(--ink-3);font-style:italic;font-size:13px}
/* a mix is named in full — « Afro Shadow 1 · Anodized Violet 1 · … » — and
   a step is one line: the name gives way rather than wrapping under it */
.vmixname{
  flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  text-decoration:none;
}
a.vmixname{text-decoration:underline;text-underline-offset:2px}
a.vmixname:hover{color:var(--accent)}

/* ---------- painting progress (lib/progress.js) ---------- */
/* the fraction, the thin bar, and the steps read against a surface's
   pointer: done ones greyed and ticked, the current one in accent */
.vfrac{font-size:13px;color:var(--ink-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.vfrac.vok{color:var(--ok)}
.vbar{height:4px;border-radius:99px;background:var(--panel-2);overflow:hidden;margin:-2px 0 10px}
.vbar>span{display:block;height:100%;background:var(--accent)}
.vbar.vok>span{background:var(--ok)}
/* a finished mini wears the ticked ring of a done step, not a word */
.vdonemark{width:22px;height:22px;border-radius:99px;background:var(--ok);color:#fff;display:inline-grid;place-items:center;flex:none}
.vsteps li.done{opacity:.55}
.vsteps li.done::before{content:'✓';color:var(--ok)}
.vsteps li.cur::before{color:var(--accent);font-weight:700}
.vsteps li.cur .vrole{color:var(--accent)}
.vsteps li.cur .vpn,.vsteps li.cur .vundec,.vsteps li.cur .vunres{font-weight:600}

/* ---------- paints list ---------- */
.vshop{border:1px solid var(--line);background:var(--panel);border-radius:var(--radius);padding:14px 16px;margin-bottom:12px}
.vshophead{display:flex;align-items:center;gap:8px 12px;margin-bottom:10px;flex-wrap:wrap}
.vshophead .btn{margin-left:auto}
.vshopmeta{font-size:12.5px;color:var(--ink-3)}
.vshop h3{margin:0;font-size:16px;letter-spacing:-.01em}
.vwishwhy{font-size:12.5px;color:var(--ink-3)}
.vshoplist{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:2px}
.vshoplist li{display:flex;gap:8px;align-items:center;font-size:14px;
  min-height:38px;padding:3px 8px;margin:0 -8px;border-radius:var(--radius-s)}
/* one pot, one line: twenty-five of them read as a list only if nothing
   wraps, so the name is what gives way */
.vshoplist .vpn{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vshoplist .vbadge{flex:none}
/* twenty-two lines of the same shape: the pointer needs to know which one
   it is on before it clicks the ＋ at the far end */
@media (hover:hover){ .vshoplist li:hover{background:var(--panel-2)} }
.vprice{margin-left:auto;font-variant-numeric:tabular-nums;color:var(--ink-2);font-size:13px;white-space:nowrap}
.vtotal{margin-top:10px;padding-top:8px;border-top:1px solid var(--line);font-size:13.5px}
.vtotal b{font-variant-numeric:tabular-nums}
.vtotal .vmiss{color:var(--ink-3);font-size:12.5px}
.vstock,.vshopnote{margin:6px 0 0;font-size:12.5px;color:var(--ink-3)}

/* pinning a pot to the oath's palette, from the list that already holds
   every pot it uses — shown only where the document can be written */
/* pinning a pot to the oath's palette, from the list that already names
   every pot it uses — shown only where the document can be written, and
   only where there is something to do */
.palpin{
  display:inline-grid;place-items:center;width:32px;height:32px;flex:none;margin-left:2px;padding:0;
  border:1px dashed var(--ink-3);background:none;color:var(--ink-2);
  border-radius:var(--radius-s);cursor:pointer;line-height:0;
}
.palpin:hover{border-color:var(--ink);color:var(--ink)}


@media (max-width:860px){
  /* one line per step — no room for the brand · range pair, and the role
     column narrows to leave the paint name whole */
  .vbrand{display:none}
  .vrole{min-width:90px}
}

/* a mix in the paints list: it heads the pots it is made of, and buys
   nothing itself */
.vshoplist li.vsub{padding-left:22px;font-size:13px;color:var(--ink-2)}
.vshoplist li.vsub .dot{width:11px;height:11px}
.vshoplist li.vmixline .vpn{font-weight:600}
