/* House (homes.js): the home's facts under its title, its blocks, and the moving checklist. Colours come from the
   tokens of app.css and look.css, so light, dark and the four themes follow by themselves. */

.homeav{display:grid;place-items:center;background:var(--t-home-a);color:var(--t-home-i);border-radius:26%}
.homeav svg.i{width:26px;height:26px}
.homefacts{display:flex;flex-wrap:wrap;gap:8px;margin-top:-10px}
.homefacts .hf{display:inline-flex;align-items:center;gap:6px;font-size:.84rem;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:4px 11px;background:var(--surface);min-width:0;overflow-wrap:anywhere}
.homefacts .hf b{color:var(--fg);font-weight:650}
.homefacts .hf svg.i{width:15px;height:15px;flex:none}
.homefacts .hf a{color:var(--fg);font-weight:650}
.homeblk{display:grid;gap:10px;min-width:0}
.homeblk>.small.muted svg.i.tiny{vertical-align:-2px;margin-right:2px}
.homegrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:26px 32px}
.homeblk .row .val{flex:none}
.homeblk .row.off{opacity:.65}
.homeblk .row .grow{min-width:0}
.homeblk .row .grow .small.muted{overflow-wrap:anywhere}
.homeblk .row .pill{flex:none}
.costbox{border-top:1px solid var(--line);padding-top:8px}
.costbox summary{cursor:pointer;color:var(--accent);font-weight:600}
.movenote{color:var(--fg);border-style:solid;border-color:var(--t-date-i);background:var(--t-date-b);align-items:center}
.movenote svg.i{color:var(--t-date-i)}
.movenote .grow{flex:1;min-width:0}
.pick{width:100%;text-align:left;border:0;background:none;font:inherit;color:inherit;cursor:pointer;border-radius:12px}
.pick:hover{background:var(--surface-2)}
fieldset.plain{border:0;padding:0;margin:0;min-width:0}
fieldset.plain[disabled] .input{opacity:.85}
.pvextra{border-top:1px solid var(--line);padding-top:14px;margin-top:6px}
.pvextra .t.wrap,.mvadd{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pvextra .t.wrap .input{flex:1 1 140px;width:auto}
.input.mini2{width:120px;flex:0 1 120px}
.pvextra label.btn{cursor:pointer}
[data-show][hidden]{display:none}

/* moving */
.mvlegend{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px}
.mvlegend>div{display:grid;gap:2px;padding:10px 14px;border-radius:14px;background:var(--surface-2);font-size:.84rem;color:var(--muted)}
.mvlegend b{color:var(--fg);font-size:.9rem}
.mvrow{align-items:flex-start;flex-wrap:wrap}
.mvrow .grow{flex:1 1 260px}
.mvtext{color:var(--muted);margin-top:4px;max-width:70ch}
.mvside{display:grid;gap:6px;justify-items:end;flex:0 0 auto;margin-left:auto}
.mvdue{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.mvseg{padding:3px}
.mvseg label{position:relative;padding:5px 12px;border-radius:999px;font-size:.82rem;color:var(--muted);cursor:pointer;font-weight:600}
.mvseg label input{position:absolute;opacity:0;pointer-events:none}
.mvseg label:has(input:checked){background:var(--fg);color:var(--bg)}
.mvseg label:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:1px}
.mvseg label:has(input:disabled){cursor:default}
.mvtask{cursor:pointer;align-items:center}
.mvtask input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent);flex:none}
.mvtask.off .grow>div:first-child{text-decoration:line-through;color:var(--muted)}
.mvadd .input{flex:1 1 200px;width:auto}
.mvadd .input[type=date]{flex:0 1 170px}
.mvstart{max-width:640px}
.mvpath{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 14px;border-radius:14px;background:var(--surface-2)}
.mvpath>div{display:flex;gap:10px;align-items:center;min-width:0;flex:1 1 200px}
.mvpath>div>div{display:grid;min-width:0}
.mvpath>svg.i{color:var(--faint);flex:none}

@media (max-width:640px){
  .mvside{justify-items:start;margin-left:50px;flex:1 1 calc(100% - 62px);min-width:0}
  .mvdue{justify-content:flex-start}
  .homefacts{margin-top:-6px}
}
a.hmcost{color:inherit;text-decoration:none;border-bottom:1px dashed var(--accent);white-space:nowrap;font-family:var(--f-mono);flex:none}
a.hmcost:hover{color:var(--accent)}
.ins.hmtile .v small{white-space:nowrap;display:inline-block}
.provrow{flex-wrap:wrap}
.provrow .grow{flex:1 1 240px}
.homeblk .row .grow{flex-basis:160px}
@media (max-width:640px){
  .provrow>.pill,.provrow>.tag{margin-left:50px}
  .provrow>.go{display:none}
}
