/* The configurator: bar, readout, starting points, the body, and the specification sheet it prints.
   Request mode: there is no price anywhere in this component. */
.dp-inst{padding-block:clamp(1rem,2.2vw,1.5rem) clamp(3rem,6vw,5rem)}
.dp-inst-bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.5rem 2rem;padding-bottom:.875rem;border-bottom:1px solid var(--line);color:var(--fg-2)}
.dp-inst-say{display:flex;align-items:baseline;gap:.5rem;max-width:44rem;font-size:var(--fs-note);line-height:1.45;color:var(--fg)}
.dp-inst-say::before{content:"";flex:none;width:.5rem;height:.5rem;background:var(--acc)}
.dp-inst-top{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:1.5rem}
.dp-inst-top>*{grid-column:1 / -1;min-width:0}
.dp-inst .dp-crumb{padding-top:0;padding-bottom:.75rem}

/* Designation readout */
.dp-readout{order:-1;display:flex;flex-wrap:wrap;row-gap:1rem;padding-block:clamp(1.25rem,2.4vw,2rem) clamp(1.125rem,2vw,1.5rem);border-bottom:1px solid var(--line)}
.dp-seg{display:inline-grid}
.dp-seg-c{font-family:var(--mono);font-stretch:75%;font-weight:300;font-size:var(--fs-readout);line-height:1;white-space:nowrap;font-variant-ligatures:none;font-feature-settings:"calt" 0;transition:color var(--t3) var(--ease)}
.dp-seg-c .dp-k{color:var(--fg-2);transition:color var(--t3) var(--ease)}
.dp-seg-c .dp-sep{color:var(--line-ctl)}
.dp-seg.is-changed .dp-seg-c,.dp-seg.is-changed .dp-seg-c .dp-k{color:var(--acc);transition:none}
.dp-seg-l{width:0;min-width:100%;margin-top:.625rem;font-family:var(--mono);font-stretch:75%;font-size:var(--fs-label);line-height:1.5;color:var(--fg-2);font-variant-ligatures:none;font-feature-settings:"calt" 0}
.dp-seg-l>span{display:block;white-space:nowrap}
.dp-seg-l .dp-v{color:var(--fg)}
.dp-lg,.dp-lg-i{display:none!important}
@media (min-width:640px){.dp-seg-l{font-size:.75rem}.dp-lg{display:block!important}.dp-lg-i{display:inline!important}.dp-sm{display:none!important}}

.dp-inst-head{padding-top:clamp(1.75rem,3.5vw,2.75rem)}
.dp-inst-intro{max-width:31em;margin-top:1rem;color:var(--fg-2)}
@media (min-width:960px){
  .dp-inst-head{grid-column:1 / 8}
  .dp-inst-intro{grid-column:8 / 13;align-self:end;margin-top:0;padding-top:clamp(1.75rem,3.5vw,2.75rem)}
}

/* Starting points: positions on the same four scales. Not plans. */
.dp-presets{margin:clamp(1.5rem,3vw,2.25rem) 0 0;padding:0;border:0;min-width:0}
.dp-presets legend{padding:0;margin-bottom:.75rem;color:var(--fg-2)}
.dp-presets legend .dp-lnk{color:var(--fg)}
.dp-segs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;border:1px solid var(--line-ctl);background:var(--line-ctl)}
.dp-segm{position:relative;display:block;min-width:0}
.dp-segm:last-child{grid-column:1 / -1}
.dp-segm input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.dp-segm input:disabled{cursor:default}
.dp-segm-in{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.625rem;row-gap:.125rem;align-content:start;align-items:baseline;height:100%;min-height:3.75rem;padding:.75rem .875rem;background:var(--bg);transition:background-color var(--t1) var(--ease),color var(--t1) var(--ease)}
.dp-segm-k{font-family:var(--mono);font-stretch:87.5%;font-size:var(--fs-label);font-weight:500;color:var(--fg-2)}
.dp-segm-n{font-size:1rem;font-weight:600;font-stretch:90%;line-height:1.2}
.dp-segm-s{grid-column:1 / -1;font-family:var(--mono);font-stretch:75%;font-size:var(--fs-label);line-height:1.45;color:var(--fg-2);font-variant-ligatures:none;font-feature-settings:"calt" 0}
@media (hover:hover){.dp-segm:hover input:not(:disabled):not(:checked) + .dp-segm-in{background:var(--bg-2)}}
.dp-segm input:checked + .dp-segm-in{background:var(--fg);color:var(--bg)}
.dp-segm input:checked + .dp-segm-in .dp-segm-k,.dp-segm input:checked + .dp-segm-in .dp-segm-s{color:var(--fg-inv-2)}
.dp-segm input:disabled:not(:checked) + .dp-segm-in{color:var(--fg-2)}
.dp-segm input:focus-visible + .dp-segm-in{outline:2px solid var(--acc);outline-offset:-5px}
.dp-segm input:checked:focus-visible + .dp-segm-in{outline-color:var(--acc-inv)}
@media (min-width:820px){
  .dp-segs{grid-template-columns:repeat(5,minmax(0,1fr))}
  .dp-segm:last-child{grid-column:auto}
  .dp-segm-s{grid-column:2}
}

/* Body: the machine, and the sheet it prints */
.dp-inst-body{display:grid;grid-template-columns:minmax(0,1fr);gap:2rem;margin-top:2rem}
.dp-panel{min-width:0}
@media (min-width:1080px){.dp-inst-body{grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:start}}

/* Specification sheet: the light sheet the dark instrument prints */
.dp-sheet{min-width:0;max-width:36rem;padding:clamp(1rem,2vw,1.25rem);border:1px solid var(--bg-2)}
@media (min-width:1080px){.dp-sheet{max-width:none}}
.dp-sheet-hd{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:2.25rem;padding-bottom:.5rem;border-bottom:1px solid var(--fg)}
.dp-sheet-h{color:var(--fg)}
.dp-copy{min-height:1.75rem;padding:.25rem 0;border:0;border-bottom:1px solid var(--fg);background:none;font-size:var(--fs-note);font-weight:600;line-height:1.3}
@media (hover:hover){.dp-copy:hover{color:var(--acc);border-color:var(--acc)}}
.dp-sheet-code{margin-top:1rem;font-family:var(--mono);font-stretch:75%;font-weight:500;font-size:1.0625rem;line-height:1.3;white-space:nowrap;font-variant-ligatures:none;font-feature-settings:"calt" 0}
.dp-sheet-plan{min-height:1.45em;margin-top:.25rem;font-size:var(--fs-small);line-height:1.45;color:var(--fg-2)}
.dp-sheet-say{min-height:4.5em;margin-top:.75rem;font-size:.9375rem;line-height:1.5;text-wrap:pretty;font-variant-numeric:tabular-nums}
.dp-sheet-tb{width:100%;margin-top:.5rem;border-collapse:collapse;table-layout:fixed;font-size:var(--fs-small);line-height:1.35}
.dp-sheet-tb th,.dp-sheet-tb td{padding:.4375rem 0;border-top:1px solid var(--line);text-align:left;vertical-align:baseline;font-weight:400}
.dp-sheet-tb thead th{padding-top:0;border-top:0;color:var(--fg-3)}
.dp-sheet-tb thead th:nth-child(1){width:36%}
.dp-sheet-tb thead th:nth-child(2){width:25%}
.dp-sheet-tb tbody th{padding-right:.5rem;font-weight:600;font-stretch:90%}
.dp-sheet-tb td:nth-child(2){font-family:var(--mono);font-stretch:75%;font-size:var(--fs-fig-table);white-space:nowrap;font-variant-ligatures:none;font-feature-settings:"calt" 0;transition:color var(--t3) var(--ease)}
.dp-sheet-tb td.is-changed{color:var(--acc);transition:none}
.dp-sheet-tb td:nth-child(3){font-size:var(--fs-note);color:var(--fg-2)}
.dp-sheet-tb tbody tr:last-child th,.dp-sheet-tb tbody tr:last-child td{border-bottom:1px solid var(--line)}
.dp-sheet-note{margin-top:.875rem;font-size:var(--fs-note);line-height:1.5;color:var(--fg-3)}

/* The request: the action of the sheet */
.dp-req{margin-top:1.25rem;padding-top:.875rem;border-top:1px solid var(--fg)}
.dp-req-h{color:var(--fg-3)}
.dp-req-say{margin-top:.5rem;font-size:var(--fs-small);line-height:1.45;color:var(--fg-2)}
.dp-req .dp-form{margin-top:1rem}
.dp-req .dp-fg{margin-top:.875rem}
.dp-req .dp-fg:first-of-type{margin-top:0}
.dp-req .dp-field{min-height:2.75rem;padding:.5625rem .75rem}
.dp-req textarea.dp-field{min-height:5rem}
.dp-req-more{margin-top:.875rem}
.dp-req-more>summary{display:inline-flex;align-items:center;gap:.5rem;min-height:1.75rem;font-size:var(--fs-small);font-weight:600;line-height:1.3;cursor:pointer;list-style:none;user-select:none}
.dp-req-more>summary::-webkit-details-marker{display:none}
.dp-req-more>summary::after{content:"";width:.4375rem;height:.4375rem;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-.15rem) rotate(45deg);transition:transform var(--t1) var(--ease)}
.dp-req-more[open]>summary::after{transform:translateY(.1rem) rotate(225deg)}
.dp-req-more[open]>summary{margin-bottom:.875rem}
@media (pointer:coarse){.dp-req-more>summary{min-height:2.75rem}}

/* How a request becomes an order: steps on a line */
.dp-steps{display:grid;grid-template-columns:minmax(0,1fr);gap:0;border:1px solid var(--line-ctl)}
.dp-steps li{display:grid;grid-template-columns:1.5rem minmax(0,1fr);column-gap:.5rem;padding:.875rem 1rem;border-bottom:1px solid var(--line);font-size:.9375rem;line-height:1.4}
.dp-steps li:last-child{border-bottom:0}
.dp-st-k{font-family:var(--mono);font-stretch:75%;font-size:.75rem;font-weight:500;line-height:1.9;color:var(--acc)}
.dp-steps b{display:block;font-weight:600;font-stretch:90%}
.dp-st-v{display:block;margin-top:.125rem;font-size:var(--fs-small);line-height:1.45;color:var(--fg-2)}
@media (min-width:820px){
  .dp-steps{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dp-steps li{border-bottom:0;border-right:1px solid var(--line)}
  .dp-steps li:last-child{border-right:0}
}
