/* Datumetry: the samples page (/samples) only. Loads after landing.css.
   The samples wear the site's orange: marks in orange-600 (3.1:1 on white), words and
   small controls in the accent text color (4.7:1), a gray for "last year", and green and
   red for status only, each with a shape and a word.
   The calendar is colored the way a spreadsheet's color scale is: red for the low days,
   through orange and yellow, to green for the high ones. Its five steps stay apart for
   red-green colorblind readers (validator, every pair: 9.8 simulated, 16.6 with full
   color), take ink text at 5:1 or better, and wear a darker edge so the pale steps hold
   their shape on white.
   The page runs the full width of the window, so a card can lay its parts side by side. */
.smp-page{
  --wrap:9999px; --pad:clamp(16px,2vw,40px);
  --s-accent:var(--orange-600); --s-strong:var(--orange-700); --s-ink:var(--accent-text);
  --s-soft:var(--bg-hover); --s-edge:var(--line-strong);
  --s-context:#7d7770; --s-trend:#b3ada5; --s-zero:#f0efec;
  --ok:#17734f; --warn:#8a5300; --bad:#b42318;
  --c-1:#e76250; --c-2:#f8ab5e; --c-3:#f9f084; --c-4:#8ad7b6; --c-5:#4a9e86;
  --e-1:#b3472f; --e-2:#c2772d; --e-3:#9e912a; --e-4:#4a9e86; --e-5:#2f7d68;
}

/* ════════ top of the page ════════ */
.smp-head{padding-bottom:0;}
.smp-head .lead{max-width:60ch;}
.smp-how{margin-top:12px;color:var(--text-2);font-size:15.5px;max-width:62ch;}
.smp-bar{display:flex;align-items:center;justify-content:space-between;gap:12px 28px;flex-wrap:wrap;margin-top:22px;padding-top:14px;border-top:1px solid var(--line);}
/* the list of samples: two groups, each sample a button */
.smp-list{display:flex;flex-wrap:wrap;gap:10px 14px;}
.smp-group{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:8px 10px 8px 16px;border:1px solid var(--line);border-radius:var(--r-lg);}
.smp-group p{margin-right:2px;font-size:14.5px;font-weight:600;color:var(--text);}
.smp-group ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px;}
.smp-cap a{color:var(--accent-text);text-underline-offset:3px;}
.smp-cap a:hover{color:var(--accent-text-hover);}
.smp-page > section.band:first-of-type{padding-top:clamp(28px,3.4vw,44px);}
.smp-page .sec-head{margin-bottom:clamp(18px,2.2vw,26px);gap:8px;}

/* ════════ a sample card ════════ */
.smp{position:relative;border:1px solid var(--line);border-radius:var(--r-lg);background:#fff;
  padding:clamp(18px,2.6vw,28px);display:flex;flex-direction:column;gap:12px;
  box-shadow:0 1px 2px rgba(28,28,28,.04),0 14px 34px rgba(28,28,28,.06);scroll-margin-top:96px;}
.smp + .smp{margin-top:clamp(28px,4vw,48px);}
.smp-top{display:flex;justify-content:space-between;align-items:baseline;gap:6px 20px;flex-wrap:wrap;}
.smp-top h3{font-size:clamp(21px,2.3vw,26px);font-weight:500;letter-spacing:-.02em;}
.smp-tag{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;color:var(--text-2);}
.smp-mark{width:15px;height:15px;flex:none;fill:var(--s-accent);}
/* the owner's question and, under it, the answer in one sentence: the chart below is the proof */
.smp-qa{display:flex;flex-direction:column;gap:6px;padding:14px 18px 16px;border-radius:14px;background:var(--s-soft);}
.smp-q{font-size:15px;color:var(--text-2);}
.smp-a{font-size:clamp(18px,2vw,22px);font-weight:500;letter-spacing:-.012em;line-height:1.32;color:var(--text);max-width:62ch;}
.smp-a b{font-weight:700;}
.smp-try{font-size:14.5px;color:var(--text-2);}
.smp-try b{font-weight:600;color:var(--text);}
.smp-body{position:relative;display:flex;flex-direction:column;gap:16px;border-top:1px solid var(--line);padding-top:18px;margin-top:4px;min-width:0;background:#fff;}
/* a strip of controls above a card's parts */
.smp-tools{padding:8px 10px;border-radius:var(--r-md);background:var(--s-soft);}
.smp-tools > .smp-btn:last-child{margin-left:auto;}
.smp h4{font-size:15px;font-weight:600;letter-spacing:-.005em;color:var(--text);}
.smp-cap,.smp-crumbs{font-size:13.5px;color:var(--text-2);}

.smp-btn{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:4px 14px;border:1px solid var(--line-control);
  border-radius:var(--r-pill);background:#fff;color:var(--text);font:inherit;font-size:14px;font-weight:500;cursor:pointer;}
.smp-btn:hover{background:var(--bg-hover);}
.smp-btn[aria-pressed="true"]{background:var(--s-soft);border-color:var(--s-accent);}
.smp-btn[disabled]{opacity:.4;cursor:default;}
.smp-row{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;}
.smp-filter{position:relative;display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap;padding:10px 14px;border-radius:12px;background:var(--s-soft);font-size:15px;font-weight:500;}

/* table behind a chart: one of the two is hidden (the head's noscript rule shows both) */
.smp [hidden]{display:none !important;}
/* positioned, so a hidden label in a far column stays inside the scrolling box. Where the table runs on past
   an edge, that edge carries a soft shadow: the two white covers scroll with the table and hide it at each end. */
.smp-table{position:relative;overflow-x:auto;-webkit-overflow-scrolling:touch;
  background:linear-gradient(to right,#fff 40%,rgba(255,255,255,0)) 0 0/36px 100% no-repeat local,
    linear-gradient(to left,#fff 40%,rgba(255,255,255,0)) 100% 0/36px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%,rgba(28,28,28,.16),rgba(28,28,28,0)) 0 0/12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%,rgba(28,28,28,.16),rgba(28,28,28,0)) 100% 0/12px 100% no-repeat scroll;}
.smp-t{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums;}
.smp-t th,.smp-t td{text-align:left;padding:8px 14px 8px 0;border-top:1px solid var(--line);white-space:nowrap;font-weight:400;}
.smp-t thead th{font-size:12.5px;font-weight:700;color:var(--text-2);border-top:0;white-space:normal;vertical-align:bottom;}
.smp-t .num{text-align:right;padding-right:0;padding-left:14px;}
.smp-t tr.tot th,.smp-t tr.tot td{font-weight:650;border-top:1px solid var(--line-strong);}
.smp-t.l2 tr > :nth-child(2),.smp-t.l3 tr > :nth-child(3),.smp-t.l4 tr > :nth-child(4){text-align:left;padding:8px 14px 8px 0;white-space:normal;}   /* a column of words reads from the left, and may wrap */
.smp-t.say td:nth-child(4){min-width:220px;}                      /* a sentence needs some width to wrap in */
/* lines that can be picked: the whole line answers a click, and says so under the pointer */
.smp-t.pick tbody tr:not(.tot){cursor:pointer;}
.smp-t.pick tbody tr:not(.tot):hover > *{background:var(--s-soft);}
/* a statement: detail lines step in, totals are heavy, and the first column stays put when the table scrolls */
.smp-t tr.sub th{padding-left:16px;color:var(--text-2);}
.smp-t tr.hd th,.smp-t tr.hd td,.smp-t tr.key th,.smp-t tr.key td{font-weight:650;}
.smp-t tr.key th,.smp-t tr.key td{border-top-color:var(--line-strong);}
.smp-t tr.hi th,.smp-t tr.hi td{background:var(--s-soft);}
.smp-t.stick th:first-child{position:sticky;left:0;z-index:1;background:#fff;padding-right:14px;}
.smp-t.stick tbody th{white-space:normal;min-width:112px;}
.smp-t.stick tr.hi th:first-child{background:var(--s-soft);}
.smp-t.tight{font-size:13px;}                          /* thirteen months across */
.smp-t.tight .num{padding-left:9px;}
.smp-t.tight th:last-child,.smp-t.tight td:last-child{padding-right:8px;}
.smp-t .kn-spark{display:block;width:60px;height:20px;margin-left:auto;}
/* a line that folds its detail: a small corner turns when it opens */
.fin-x{appearance:none;display:inline-flex;align-items:center;gap:8px;min-height:24px;margin:-2px 0;padding:0;border:0;background:none;font:inherit;color:inherit;cursor:pointer;}
.fin-x::before{content:"";width:6px;height:6px;margin-left:2px;border:solid var(--s-accent);border-width:0 2px 2px 0;transform:rotate(-45deg);}
.fin-x[aria-expanded="true"]::before{transform:rotate(45deg);margin-top:-3px;}
.fin-x:hover{color:var(--s-ink);}
/* status: a shape and a word, with the color */
.st{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600;white-space:nowrap;}
.st svg{width:9px;height:9px;flex:none;fill:currentColor;}
.st.up,.st.ok,.k-fine{color:var(--ok);} .st.dn,.k-late{color:var(--bad);} .k-risk{color:var(--warn);} .k-done{color:var(--text-2);}

/* tooltip: one per card */
.smp-tip{position:absolute;z-index:6;max-width:270px;padding:8px 11px;border-radius:10px;background:rgba(44,41,38,.84);color:#fff;font-size:13px;line-height:1.4;
  pointer-events:none;box-shadow:var(--sh-2);display:flex;flex-direction:column;gap:2px;}
.smp-tip .tt{font-weight:600;}
.smp-tip .tr{display:flex;align-items:center;gap:7px;}
.smp-tip .key{width:12px;height:0;border-top:2px solid #fff;flex:none;}
.smp-tip .key.ly{border-top-style:dashed;opacity:.8;}

/* ════════ key numbers ════════ */
.kn-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:10px;}
.kn{appearance:none;position:relative;display:flex;flex-direction:column;gap:2px;text-align:left;min-width:0;
  padding:14px 14px 10px;border:1px solid var(--line);border-radius:16px;background:#fff;color:inherit;font:inherit;cursor:pointer;}
.kn:hover{border-color:var(--s-accent);}
.kn[aria-expanded="true"],.kn[aria-pressed="true"]{border-color:var(--s-accent);box-shadow:inset 0 0 0 1px var(--s-accent);}
.kn-label{font-size:13px;font-weight:600;color:var(--text-2);line-height:1.3;}
.kn-value{margin-top:auto;font-size:clamp(22px,2.5vw,28px);font-weight:600;letter-spacing:-.025em;line-height:1.15;}
.kn-cmp{font-size:12.5px;color:var(--text-2);line-height:1.35;}
.kn-foot{display:flex;align-items:flex-end;gap:10px;margin-top:6px;}
.kn-spark{position:relative;flex:1 1 auto;height:28px;min-width:0;}
.kn-spark svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;}
.kn-spark path{fill:none;stroke:var(--s-trend);stroke-width:1.5px;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round;}
.kn-dot{position:absolute;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:var(--s-accent);box-shadow:0 0 0 2px #fff;}
.kn-open{flex:none;font-size:12.5px;font-weight:600;color:var(--s-ink);}
.kn-detail{margin-top:14px;padding:16px;border:1px solid var(--s-edge);border-radius:16px;background:#fff;display:flex;flex-direction:column;gap:12px;}
.smp-crumbs button{background:none;border:0;padding:2px 0;margin:0;font:inherit;color:var(--s-ink);cursor:pointer;text-decoration:underline;text-underline-offset:3px;}
.smp-crumbs .cur{color:var(--text);font-weight:500;}
.smp-two{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(18px,2.6vw,28px);}
/* a part of a card: its own box, so one part reads apart from the next */
.smp-panel{position:relative;display:flex;flex-direction:column;gap:10px;min-width:0;scroll-margin-top:96px;
  padding:clamp(14px,1.3vw,20px);border:1px solid var(--line);border-radius:var(--r-md);background:#fff;}
@media(min-width:1280px){.kn-grid{grid-template-columns:repeat(6,minmax(0,1fr));}}
.smp-two.rev{grid-template-columns:minmax(0,5fr) minmax(0,7fr);}
.smp-two.even{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
.smp-two.jm-two{grid-template-columns:minmax(0,2fr) minmax(0,1fr);}
@media(max-width:1100px){.smp-two.rev,.smp-two.even,.smp-two.jm-two{grid-template-columns:1fr;}}   /* a table beside a chart needs the room */
@media(max-width:900px){.smp-two{grid-template-columns:1fr;}}
@media(max-width:560px){.kn-grid{grid-template-columns:1fr 1fr;gap:8px;}.kn{padding:12px 10px 8px;}}

/* ════════ bars ════════ */
.hb{display:flex;flex-direction:column;gap:2px;}
.hb-row{display:grid;grid-template-columns:minmax(96px,34%) minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;
  padding:6px 6px;border:0;border-radius:8px;background:none;color:inherit;font:inherit;font-size:13.5px;text-align:left;}
button.hb-row{cursor:pointer;}
button.hb-row:hover{background:var(--bg-hover);}
.hb-label{line-height:1.3;min-width:0;}
.hb-track{display:block;height:14px;}
.hb-fill{display:block;height:14px;min-width:3px;border-radius:0 4px 4px 0;background:var(--s-accent);}
.hb-fill.neg{background:var(--s-context);}
.hb-fill.tot{background:var(--s-strong);}
.hb-fill.mid{border-radius:4px;}                       /* a step that starts partway along */
.hb.fl .hb-row[aria-pressed="true"] .hb-fill.neg{background:var(--text-2);}
.hb-val{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;min-width:48px;text-align:right;}
.hb-sub{font-weight:400;color:var(--text-2);margin-left:6px;}
.hb.has-pick .hb-row:not([aria-pressed="true"]) .hb-fill{opacity:.38;}
.hb-row[aria-pressed="true"]{background:var(--s-soft);}
.hb-row[aria-pressed="true"] .hb-label{font-weight:600;}
.hb-row[aria-pressed="true"] .hb-fill{background:var(--s-strong);}

/* ════════ line chart ════════ */
.lc-legend{display:flex;gap:8px;flex-wrap:wrap;}
.lg{display:inline-flex;align-items:center;gap:8px;min-height:28px;padding:2px 10px;border:1px solid transparent;border-radius:var(--r-pill);background:none;
  font:inherit;font-size:13px;color:var(--text);cursor:pointer;}
.lg:hover{border-color:var(--line-control);}
.lg i{width:18px;height:0;border-top:2px solid var(--s-accent);flex:none;}
.lg.ly i{border-top:2px dashed var(--s-context);}
.lg[aria-pressed="false"]{color:var(--text-2);text-decoration:line-through;}
.lg[aria-pressed="false"] i{opacity:.35;}
.lg b{font-weight:600;display:none;}
.lc-plot{display:grid;grid-template-columns:46px minmax(0,1fr);row-gap:6px;}
.lc-y{position:relative;height:240px;font-size:12px;color:var(--text-2);font-variant-numeric:tabular-nums;}
.lc-y span{position:absolute;right:8px;line-height:1;transform:translateY(-50%);}
.lc-area{position:relative;height:240px;margin-right:104px;border-bottom:1px solid var(--line-strong);
  background:repeating-linear-gradient(to top,transparent 0 calc(25% - 1px),var(--line) calc(25% - 1px) 25%);}
.lc-area svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;}
.lc-area path{fill:none;stroke-width:2px;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round;}
.lc-area path.ty{stroke:var(--s-accent);}
.lc-area path.ly{stroke:var(--s-context);stroke-dasharray:5 4;}
.lc-col{position:absolute;top:0;bottom:0;border:0;padding:0;margin:0;background:none;cursor:crosshair;}
.lc-col::before{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background:var(--line-control);opacity:0;}
.lc-col:hover::before,.lc-col:focus-visible::before{opacity:1;}
.lc-col:focus-visible{outline-offset:-3px;}
.lc-dot{position:absolute;left:50%;width:9px;height:9px;margin:-4.5px 0 0 -4.5px;border-radius:50%;box-shadow:0 0 0 2px #fff;opacity:0;}
.lc-dot.ty{background:var(--s-accent);}
.lc-dot.ly{background:var(--s-context);}
.lc-col:hover .lc-dot,.lc-col:focus-visible .lc-dot,.lc-dot.on{opacity:1;}
.lc-end{position:absolute;left:100%;margin-left:10px;transform:translateY(-50%);font-size:12.5px;line-height:1.2;white-space:nowrap;color:var(--text-2);}
.lc-end b{font-weight:600;color:var(--text);}
.lc-x{grid-column:2;display:flex;margin-right:104px;font-size:12px;color:var(--text-2);}
.lc-x span{flex:1 1 0;min-width:0;display:flex;justify-content:center;white-space:nowrap;overflow:visible;}
.lc-x span:last-child{justify-content:flex-end;}
.lc-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:14px;color:var(--text-2);text-align:center;padding:0 12px;}
.lc.no-ty .ty,.lc.no-ly .ly{display:none;}
@media(max-width:600px){
  .lc-area,.lc-x{margin-right:0;}
  .lc-end{display:none;}
  .lc-x .p2{visibility:hidden;}
  .lg b{display:inline;}
  .lc-y{height:190px;} .lc-area{height:190px;}
}

/* ════════ calendar ════════ */
.cal-bar{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;}
/* earlier and later, with the dates they move between them */
.cal-step{display:inline-flex;align-items:center;gap:2px;margin-left:auto;padding:3px;border:1px solid var(--line-control);border-radius:var(--r-pill);background:#fff;}
.cal-step .smp-btn{min-height:32px;border-color:transparent;}
.cal-step h4{padding:0 10px;text-align:center;font-variant-numeric:tabular-nums;}
.smp-tools > .cal-step + .smp-btn{margin-left:0;}
.cal-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:3px 3px 8px;margin:-3px;}
/* a column per week (or per day), every column the same width; the squares grow with the card */
.cal-frame{display:grid;grid-template-columns:auto minmax(min-content,1fr);gap:4px 8px;font-size:11.5px;color:var(--text-2);}
.cal-months{grid-column:2;display:grid;grid-template-columns:repeat(var(--cols),minmax(var(--c),1fr));gap:var(--g);min-height:16px;}
.cal-months span{white-space:nowrap;}
.cal-wd{display:grid;grid-template-rows:repeat(var(--rows),1fr);gap:var(--g);align-items:center;}
.cal-grid{display:grid;gap:var(--g);}
.cal-grid.cal-cols{grid-auto-flow:column;grid-template-rows:repeat(var(--rows),auto);grid-template-columns:repeat(var(--cols),minmax(var(--c),1fr));}
.cal-year{--c:15px;--g:3px;--rows:7;}
.cal-year .cal-cell{aspect-ratio:1;}
.cal-quarter{--c:36px;--g:4px;--rows:7;}
.cal-quarter .cal-cell{height:38px;}
.cal-week{--c:56px;--g:4px;--rows:11;}
.cal-week .cal-cell{height:34px;}
.cal-week .cal-months{text-align:center;}
.cal-none{background:none;box-shadow:inset 0 0 0 1px var(--line);color:var(--text-2);cursor:default;}
.cal-hint{display:none;margin-top:6px;font-size:12.5px;color:var(--text-2);}
@media(max-width:1080px){.cal-w-year .cal-hint{display:block;}}
@media(max-width:640px){.cal-w-quarter .cal-hint{display:block;}}
@media(max-width:560px){.cal-w-week .cal-hint{display:block;}}
.cal-cell{appearance:none;border:0;padding:0;margin:0;border-radius:3px;background:var(--s-zero);color:var(--text);font:inherit;font-size:11.5px;
  font-variant-numeric:tabular-nums;line-height:1;display:flex;align-items:center;justify-content:center;min-width:0;cursor:pointer;}
.cal-quarter .cal-cell,.cal-week .cal-cell,.cal-month .cal-cell{border-radius:6px;}
i.cal-cell{cursor:default;background:none;}
.cal-cell.q0{background:var(--s-zero);color:var(--text-2);cursor:default;}
.q1{--f:var(--c-1);--e:var(--e-1);} .q2{--f:var(--c-2);--e:var(--e-2);} .q3{--f:var(--c-3);--e:var(--e-3);} .q4{--f:var(--c-4);--e:var(--e-4);} .q5{--f:var(--c-5);--e:var(--e-5);}
.cal-cell.q1,.cal-cell.q2,.cal-cell.q3,.cal-cell.q4,.cal-cell.q5{background:var(--f);color:var(--ink);box-shadow:inset 0 0 0 1px var(--e);}
.cal-cell:hover{box-shadow:0 0 0 2px var(--text);}
.cal-cell:focus-visible{outline:3px solid var(--focus);outline-offset:1px;}
.cal-month{--g:5px;}
.cal-month .cal-head,.cal-month .cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--g);}
.cal-month .cal-head{font-size:12px;color:var(--text-2);margin-bottom:5px;text-align:center;}
.cal-month .cal-cell{flex-direction:column;align-items:flex-start;justify-content:space-between;gap:6px;min-height:58px;padding:7px 8px;font-size:13px;}
.cal-month .cal-cell b{font-weight:600;font-size:12px;}
.cal-month .cal-cell span,.cal-month .cal-cell::after{font-weight:600;}
.cal-cell[data-v]::after{content:attr(data-v);}        /* the short figure; the square's own name says it in full */
.cal-legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12.5px;color:var(--text-2);}
.cal-legend span{display:inline-flex;align-items:center;gap:6px;}
.cal-legend i{width:13px;height:13px;border-radius:3px;flex:none;background:var(--f);box-shadow:inset 0 0 0 1px var(--e);}
.cal-legend .q0{--f:var(--s-zero);--e:var(--line-strong);}
.cal-day{display:grid;grid-template-columns:repeat(var(--n,11),minmax(0,1fr));gap:6px;align-items:end;height:230px;padding-top:22px;border-bottom:1px solid var(--line-strong);
  background:repeating-linear-gradient(to top,transparent 0 calc(25% - 1px),var(--line) calc(25% - 1px) 25%);background-clip:content-box;}
.cal-day,.cal-dayx{padding-inline:8px;}                 /* room for a figure wider than its bar */
.cal-daycol{position:relative;display:flex;align-items:flex-end;justify-content:center;height:100%;}
.cal-bar-v{appearance:none;border:0;padding:0;margin:0;width:100%;max-width:32px;min-height:2px;border-radius:4px 4px 0 0;background:var(--s-accent);cursor:pointer;}
.cal-bar-v:hover{background:var(--s-strong);}
.cal-daycol span{position:absolute;left:-8px;right:-8px;z-index:1;text-align:center;font-size:11.5px;font-weight:600;color:var(--text);white-space:nowrap;text-shadow:0 0 2px #fff,0 0 2px #fff,0 0 2px #fff;}
.cal-dayx{display:grid;grid-template-columns:repeat(var(--n,11),minmax(0,1fr));gap:6px;font-size:11.5px;color:var(--text-2);text-align:center;margin-top:5px;}
.cal-dayx b{display:block;margin-top:2px;font-weight:600;color:var(--text);}
.cal-closed{padding:40px 12px;text-align:center;color:var(--text-2);font-size:15px;border:1px dashed var(--line-strong);border-radius:12px;}
@media(pointer:coarse){.cal-year{--c:24px;--g:2px;}}       /* squares a finger can hit */
@media(max-width:600px){
  .smp-bar{align-items:flex-start;flex-direction:column;}
  .cal-month{--g:3px;}
  .cal-month .cal-cell{min-height:46px;padding:5px 2px;align-items:center;font-size:10.5px;letter-spacing:-.02em;}
  .cal-month .cal-cell b{font-size:11px;}
  .cal-month .q0 span{display:none;}
  .cal-daycol span{font-size:10px;} .cal-dayx{font-size:10px;}
  .cal-step{margin-left:0;width:100%;justify-content:space-between;}
}
@media(max-width:380px){.cal-bar .seg span{padding:4px 3px;font-size:12.5px;}}

/* ════════ financial overview ════════ */
.fin-m{appearance:none;min-height:24px;padding:2px 8px;margin:-3px -8px -3px 0;border:1px solid transparent;border-radius:var(--r-pill);background:none;
  font:inherit;color:var(--s-ink);white-space:nowrap;cursor:pointer;}
.fin-m:hover{border-color:var(--s-accent);}
.fin-m[aria-pressed="true"]{background:var(--accent);color:var(--accent-fg);}
.fin-ok{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;font-size:14px;color:var(--text-2);}
.fin-below .smp-table{max-width:460px;}
.fin-notes{list-style:none;margin:0;padding:0;font-size:14px;color:var(--text-2);}
.fin-notes li{padding:8px 0;border-top:1px solid var(--line);}
@media(max-width:640px){.h640{display:block;}}
@media(max-width:760px){                               /* four long names: two rows of two */
  .smp .seg.seg-4{display:grid;grid-template-columns:1fr 1fr;width:100%;border-radius:20px;}
  .smp .seg.seg-4 span{width:100%;justify-content:center;text-align:center;white-space:normal;line-height:1.2;padding:4px 8px;min-height:38px;border-radius:16px;}
}

/* ════════ jobs on a map ════════ */
/* drop-downs: the site's own select box, sized for a strip of controls */
.smp-sel{width:auto;max-width:100%;height:40px;padding:0 12px 0 16px;background:#fff;font-size:14px;font-weight:500;}
.smp-sel:focus-visible{outline:3px solid var(--focus);outline-offset:2px;}
.smp-sel .menu{right:auto;width:max-content;min-width:100%;max-width:min(380px,calc(100vw - 48px));visibility:hidden;
  transition:opacity var(--t2) var(--ease),transform var(--t2) var(--ease),visibility 0s linear var(--t2);}
.smp-sel.open .menu{visibility:visible;transition-delay:0s;}
.smp-sel .opt{font-size:14px;font-weight:400;transition:background-color var(--t1);}
.smp-sel .opt.sel{font-weight:500;}
.smp-sel .chev path,.smp-now .chev path{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.jm-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:16px;}
.jm-map{position:relative;min-width:600px;}
.jm-map img{display:block;width:100%;height:auto;}
.jm-town{position:absolute;transform:translate(-50%,-50%);font-size:12px;line-height:1;color:var(--text-2);white-space:nowrap;pointer-events:none;text-shadow:0 0 3px #fff,0 0 3px #fff,0 0 3px #fff;}
/* a pin: a white disc with the status shape in it; the late ones also say so */
.jm-pin{position:absolute;display:flex;align-items:center;justify-content:center;width:26px;height:26px;margin:-13px 0 0 -13px;padding:0;border:1.5px solid currentColor;border-radius:50%;
  background:#fff;cursor:pointer;box-shadow:0 1px 3px rgba(28,28,28,.2);}
.jm-pin svg{width:12px;height:12px;fill:currentColor;}
.jm-pin span{position:absolute;left:50%;bottom:100%;transform:translateX(-50%);margin-bottom:4px;padding:2px 6px;border:1px solid currentColor;border-radius:6px;background:#fff;
  font-size:11.5px;font-weight:600;line-height:1.2;white-space:nowrap;}
.jm-pin:hover{z-index:3;}
.jm-pin[aria-pressed="true"]{z-index:2;box-shadow:0 0 0 3px var(--text);}
.jm-legend{display:flex;flex-wrap:wrap;gap:6px 16px;}
.jm-list{display:flex;flex-direction:column;border-top:1px solid var(--line);}
.jm-item{border-bottom:1px solid var(--line);}
.jm-row{display:grid;grid-template-columns:minmax(0,1fr) auto 108px;gap:10px;align-items:center;width:100%;padding:9px 6px;border:0;background:none;color:inherit;font:inherit;font-size:14px;text-align:left;cursor:pointer;}
.jm-row:hover,.jm-row[aria-expanded="true"]{background:var(--s-soft);}
.jm-row[aria-expanded="true"] .jm-name{font-weight:600;}
.jm-pct{font-size:13px;color:var(--text-2);text-align:right;font-variant-numeric:tabular-nums;}
.jm-detail{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:6px 6px 14px;}
.jm-detail dl{display:grid;grid-template-columns:auto 1fr;gap:4px 18px;margin:0;font-size:14px;}
.jm-detail dl div{display:contents;}
.jm-detail dt{color:var(--text-2);}
.jm-detail dd{margin:0;}
.jm-detail p{font-size:14px;max-width:52ch;}
@media(max-width:760px){.h760{display:block;}}
@media(max-width:420px){.jm-row{grid-template-columns:minmax(0,1fr) auto;}.jm-pct{display:none;}}

/* ════════ job budgets ════════ */
.jb-pick{appearance:none;min-height:24px;margin:-2px 0;padding:0;border:0;background:none;color:var(--s-ink);font:inherit;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
.jb-pick[aria-pressed="true"],.jb-pick[aria-expanded="true"]{color:var(--text);font-weight:650;text-decoration:none;}
.jb-co{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;padding:10px 14px;border-radius:12px;background:var(--s-soft);font-size:14px;}
/* jobs beside the picked job on a wide window; inside the picked job, cost codes beside the chart when it has the room */
.smp-two.jb-two{grid-template-columns:minmax(0,11fr) minmax(0,9fr);}
.smp-two.jb-two,.smp-two.bc-two,.smp-two.sc-two{align-items:start;}
@media(max-width:1640px){.smp-two.jb-two{grid-template-columns:1fr;}}
.jb-job{container-type:inline-size;}
.jb-in{display:grid;gap:16px 28px;}
.jb-in > div{display:flex;flex-direction:column;gap:10px;min-width:0;}
@container (min-width:860px){.jb-in{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}}
.jb-tx{display:flex;flex-direction:column;gap:10px;padding-top:14px;border-top:1px solid var(--line);}

/* ════════ labor forecast, inventory and purchasing, build checklist ════════ */
.kn-grid.four{grid-template-columns:repeat(auto-fit,minmax(min(150px,45%),1fr));}
.kn.flat,.kn.flat:hover{cursor:default;border-color:var(--line);}
.kn.flat .kn-value{margin-top:0;}
.lf-in{width:54px;min-height:32px;padding:2px 2px 2px 6px;border:1px solid var(--line-control);border-radius:8px;background:#fff;color:var(--text);font:inherit;font-variant-numeric:tabular-nums;text-align:right;}
.lf-in[aria-invalid="true"]{border-color:var(--bad);box-shadow:0 0 0 1px var(--bad);}
.lf-err{font-size:14px;font-weight:600;color:var(--bad);}
.lf-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:16px 28px;}
/* on a wide window the settings sit beside the plan and what it needs; the reading order stays plan, results, settings */
@media(min-width:1500px){
  [data-smp="labor"] .smp-body{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);grid-template-areas:"plan set" "out set";align-items:start;}
  .lf-plan{grid-area:plan;} .lf-out{grid-area:out;} .lf-set{grid-area:set;}
}
@media(max-width:1100px){.lf-in{width:46px;} .smp-t.tight{font-size:12px;} .smp-t.tight .num{padding-left:6px;}}
@media(pointer:coarse){.lf-in{font-size:16px;width:62px;}}       /* no zoom on focus on a phone */
/* three products in one bar: orange, deep orange and the gray. The validator passes every pair
   (9 or more apart for colorblind readers, 15 or more with full color, 3:1 or better on white);
   the gray is the brand's neutral, so a 2px gap, the legend, the tooltip and the table back it up. */
.s0{--f:var(--s-accent);--e:var(--s-accent);} .s1{--f:var(--orange-800);--e:var(--orange-800);} .s2{--f:var(--s-context);--e:var(--s-context);}
.cal-bar-v.stack,.cal-bar-v.stack:hover{display:flex;flex-direction:column-reverse;gap:2px;border-radius:0;background:none;}
.cal-bar-v i{flex:1 0 0;min-height:0;background:var(--f);}
.cal-bar-v i:last-child{border-radius:4px 4px 0 0;}
.cal-line{position:absolute;left:-3px;right:-3px;border-top:2px dashed var(--text);pointer-events:none;}     /* a limit across the column */
.cal-legend .ln{height:0;border-radius:0;background:none;box-shadow:none;border-top:2px dashed var(--text);}
.cal-legend b{font-weight:700;color:var(--text);}
.cal-scroll > .wide{min-width:600px;}
/* the build checklist: the list beside its flagged parts */
.smp-two.bc-two{grid-template-columns:minmax(0,5fr) minmax(0,2fr);}
@media(max-width:1500px){.smp-two.bc-two{grid-template-columns:1fr;}}
/* the schedule: a button a week, each with a meter of booked hours against the hours on hand */
.wk-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px;}
.wk{gap:3px;}
.mt{display:block;height:8px;margin:6px 0 3px;border-radius:4px;background:var(--s-zero);overflow:hidden;}
.mt i{display:block;height:100%;border-radius:4px;background:var(--s-accent);}
@media(max-width:1280px){.wk-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:560px){.wk-grid{grid-template-columns:1fr 1fr;gap:8px;}}
.smp-two.sc-two{grid-template-columns:minmax(0,3fr) minmax(0,2fr);}
.smp-two.sc-two.one{grid-template-columns:1fr;}
@media(max-width:1400px){.smp-two.sc-two{grid-template-columns:1fr;}}
/* the balance sheet: a small mark on a balance that moved from the month before */
.bs{display:inline-block;margin-right:4px;vertical-align:1px;opacity:.8;}
.bs svg{display:block;width:6px;height:6px;fill:currentColor;}
.bs.up{color:var(--ok);} .bs.dn{color:var(--bad);}

/* ════════ a change settles instead of jolting ════════
   The old drawing lies over the new one and fades away; the box glides to its new height. */
.smp-ghost{position:absolute;inset:0 0 auto 0;z-index:3;display:inherit;flex-direction:inherit;flex-wrap:inherit;grid-template:inherit;align-items:inherit;gap:inherit;padding:inherit;
  background:inherit;pointer-events:none;animation:smp-out .22s var(--ease) forwards;}
.smp-move{overflow:hidden;transition:height .22s var(--ease);}
@keyframes smp-out{to{opacity:0;}}
@keyframes smp-in{from{opacity:0;transform:translateY(5px);}}

/* ════════ the floating bar: where you are, the list of samples, top and bottom ════════
   It keeps to the bottom right corner of the window all the way down the page, the footer included. On a narrow
   window the footer gets room under its last line, so the bar never covers it; and the keyboard never brings a
   control to rest under the bar. */
.smp-jump{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));z-index:40;display:flex;flex-direction:column;align-items:flex-end;gap:8px;
  max-width:calc(100vw - 32px);}
@media(max-width:900px){.smp-page ~ .footer-shell .fin{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px));}}
html:has(.smp-page){scroll-padding-bottom:84px;}
.smp-jump[hidden]{display:none;}
.smp-jump-bar{position:relative;display:flex;align-items:center;max-width:100%;padding:4px;border:1px solid var(--line-control);border-radius:var(--r-pill);background:#fff;box-shadow:var(--sh-2);overflow:hidden;}
.smp-jump-bar button{display:inline-flex;align-items:center;gap:8px;min-width:0;min-height:36px;padding:4px 14px;border:0;border-radius:var(--r-pill);background:none;color:var(--text);
  font:inherit;font-size:14px;font-weight:500;cursor:pointer;}
.smp-jump-bar button:hover{background:var(--bg-hover);}
.smp-jump-bar .smp-now{border-inline:1px solid var(--line);border-radius:0;}
.smp-now b{min-width:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;animation:smp-in .25s var(--ease);}
.smp-now .chev{flex:none;width:16px;height:16px;transform:rotate(180deg);transition:transform var(--t2) var(--ease);}
.smp-now[aria-expanded="true"] .chev{transform:none;}
/* how far down the page: a thin line that fills as the page scrolls, where the browser can tie one to the scroll */
@supports (animation-timeline:scroll()){
  .smp-jump-bar::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--s-accent);transform-origin:0 50%;animation:smp-far linear both;animation-timeline:scroll(root);}
  @keyframes smp-far{from{transform:scaleX(0);}to{transform:scaleX(1);}}
}
.smp-jump nav{width:min(300px,calc(100vw - 32px));max-height:min(70vh,520px);overflow:auto;padding:14px 16px;border:1px solid var(--line-strong);border-radius:16px;background:#fff;
  box-shadow:var(--sh-3);font-size:15px;}
.smp-jump nav[hidden]{display:none;}
.smp-jump nav p{font-size:13px;font-weight:600;color:var(--text-2);margin:8px 0 4px;}
.smp-jump nav p:first-child{margin-top:0;}
.smp-jump nav a{display:block;padding:7px 0;color:var(--text);text-decoration:none;transition:color var(--t1);}
.smp-jump nav a:hover{color:var(--accent-text);text-decoration:underline;text-underline-offset:3px;}
.smp-jump nav a[aria-current]{color:var(--accent-text);font-weight:600;}
@media(max-width:600px){.smp-jump{right:50%;transform:translateX(50%);align-items:center;}}

@media(prefers-reduced-motion:no-preference){
  .kn,.hb-row,.smp-btn,.lg,.cal-bar-v{transition:background-color var(--t1),border-color var(--t1);}
}
