/* ReferSpecs tools (tools/): the workbench every tool page shares. Loaded on tool pages only, after styles.css.
   One sheet: a toolbar, the inputs, then the results as figures, a verdict, a chart and tables. Side by side when there
   is room, one above the other when there is not. */
.tk-facts{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:1rem;font-size:.8125rem;color:var(--ink-2)}
.tk-facts span{display:inline-flex;align-items:center;gap:.35rem;padding:.2rem .65rem;border:1px solid var(--rule);border-radius:2rem;background:var(--paper)}
.tk-facts span:first-child{border-color:#BFE3CF;background:var(--active-bg);color:var(--active);font-weight:600}

.tk{container:tk/inline-size;margin-top:1.75rem;background:var(--paper);border:1px solid var(--rule-2);border-radius:1rem;box-shadow:var(--lift),0 18px 40px -30px rgba(16,27,51,.35)}
.tk-bar{position:sticky;top:0;z-index:4;display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;padding:.6rem .7rem;background:rgba(246,247,249,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--rule);border-radius:1rem 1rem 0 0}
@media (min-width:62rem){.tk-bar{top:var(--bar)}}
.tk-gap{flex:1}
.tk-btn{display:inline-flex;align-items:center;gap:.4rem;padding:.38rem .7rem;border:1px solid var(--rule);border-radius:.55rem;background:var(--paper);color:var(--ink);font:600 .8125rem/1.2 var(--body);cursor:pointer;white-space:nowrap}
.tk-btn:hover{border-color:var(--rule-2);background:var(--soft)}
.tk-primary{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 1px 2px rgba(15,46,138,.25)}
.tk-primary:hover{background:var(--blue-deep);border-color:var(--blue-deep)}
.tk-pro-group{display:inline-flex;align-items:center;gap:.3rem;padding-left:.5rem;border-left:1px solid var(--rule)}
.tk-tag{font-size:.6875rem;font-weight:700;padding:.15rem .4rem;border-radius:.3rem;background:var(--blue-wash);color:var(--blue-deep);margin-right:.1rem}
.tk-is-premium .tk-tag{display:none}
@container tk (max-width:40rem){.tk-gap{display:none}.tk-pro-group{border-left:0;padding-left:0}}
.tk-msg{min-height:0;margin:0;padding:0 .9rem;font-size:.8125rem;color:var(--active)}
.tk-msg:not(:empty){padding:.5rem .9rem;border-bottom:1px solid var(--rule);background:var(--active-bg)}

.tk-work{display:grid;grid-template-columns:minmax(0,1fr)}
@container tk (min-width:52rem){.tk-work{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)}.tk-out{border-left:1px solid var(--rule);border-top:0 !important}.tk-out>*:first-child{margin-top:0}}

/* inputs */
.tk-in{display:grid;gap:1rem;align-content:start;padding:1.15rem 1.15rem 1.25rem}
.tk-row{display:grid;gap:.9rem;grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr))}
.tk-f{display:grid;gap:.3rem;align-content:start;min-width:0;margin:0;padding:0;border:0}
.tk-l{font:600 .8125rem/1.3 var(--body);color:var(--ink)}
.tk-hint{font-size:.75rem;line-height:1.45;color:var(--ink-2)}
.tk-box{display:flex;align-items:stretch;background:var(--paper);border:1px solid var(--rule-2);border-radius:.6rem;box-shadow:var(--lift);overflow:hidden}
.tk-box:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgba(27,79,214,.14)}
.tk-box input,.tk-box select,.tk-box textarea{flex:1;min-width:0;width:100%;border:0;background:transparent;font:inherit;font-size:.9375rem;color:var(--ink);padding:.55rem .7rem;font-variant-numeric:tabular-nums}
.tk-box textarea{resize:vertical;line-height:1.45;font-size:.875rem}
.tk-box input:focus,.tk-box select:focus,.tk-box textarea:focus{outline:0}
.tk-u{display:flex;align-items:center;padding:0 .65rem;font-size:.75rem;color:var(--ink-2);background:var(--soft);border-left:1px solid var(--rule);white-space:nowrap}
/* grids: a small spreadsheet */
.tk-gridwrap{overflow:auto;max-height:24rem;border:1px solid var(--rule-2);border-radius:.6rem;box-shadow:var(--lift)}
.tk-grid-t thead th{position:sticky;top:0;z-index:1}
.tk-grid-t{border-collapse:collapse;width:100%;min-width:30rem;font-size:.875rem}
.tk-grid-t th{font:600 .6875rem/1.2 var(--body);color:var(--ink-2);text-align:left;padding:.45rem .5rem;background:var(--soft);border-bottom:1px solid var(--rule)}
.tk-grid-t th.n{text-align:right}
.tk-grid-t td{padding:0;border-bottom:1px solid var(--rule);border-left:1px solid var(--rule)}
.tk-grid-t td:first-child{border-left:0}
.tk-grid-t tr:last-child td{border-bottom:0}
.tk-grid-t td.tk-wide input{min-width:10rem}
.tk-grid-t input,.tk-grid-t select{width:100%;min-width:3.5rem;border:0;background:transparent;font:inherit;color:var(--ink);padding:.45rem .5rem;font-variant-numeric:tabular-nums}
.tk-grid-t input:focus,.tk-grid-t select:focus{outline:2px solid var(--blue);outline-offset:-2px;background:var(--blue-wash)}
.tk-x{width:2rem;text-align:center}
.tk-x button{border:0;background:none;color:var(--field);font-size:1.1rem;line-height:1;cursor:pointer;width:2rem;height:2rem}
.tk-x button:hover{color:var(--canceled)}
.tk-add{justify-self:start;border:0;background:none;padding:.2rem 0;font:600 .8125rem var(--body);color:var(--blue);cursor:pointer}
.tk-add::before{content:'+ '}
/* checklists: Yes, No, N/A on each line */
.tk-cg{display:grid;gap:0;margin-top:.5rem;border:1px solid var(--rule);border-radius:.7rem;overflow:hidden}
.tk-cg h3{font:600 .8125rem/1.3 var(--body);padding:.55rem .8rem;background:var(--soft);border-bottom:1px solid var(--rule);margin:0}
.tk-ci{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.5rem 1rem;padding:.55rem .8rem;border-top:1px solid var(--rule)}
.tk-cg h3+.tk-ci{border-top:0}
.tk-ci p{font-size:.875rem;line-height:1.45}
.tk-seg{display:inline-flex;background:var(--wash);border-radius:.55rem;padding:.15rem;gap:.1rem}
.tk-seg label{position:relative}
.tk-seg input{position:absolute;opacity:0;inset:0;cursor:pointer}
.tk-seg span{display:block;padding:.25rem .6rem;border-radius:.42rem;font-size:.75rem;font-weight:600;color:var(--ink-2)}
.tk-seg input:focus-visible+span{outline:2px solid var(--focus)}
.tk-seg input[value=y]:checked+span{background:var(--active);color:#fff}
.tk-seg input[value=n]:checked+span{background:var(--canceled);color:#fff}
.tk-seg input[value=na]:checked+span{background:var(--paper);color:var(--ink);box-shadow:var(--lift)}
@container tk (max-width:30rem){.tk-ci{grid-template-columns:1fr}}

/* results */
.tk-out{display:grid;gap:1.1rem;align-content:start;padding:1.15rem 1.15rem 1.3rem;background:#FBFCFD;border-top:1px solid var(--rule);border-radius:0 0 1rem 0;min-height:14rem}
.tk-out>*{min-width:0}
.tk-empty{display:grid;justify-items:center;align-content:center;gap:.8rem;min-height:12rem;text-align:center;color:var(--ink-2);border:1px dashed var(--rule-2);border-radius:.8rem;padding:1.5rem}
.tk-empty-h{font-size:.9375rem;max-width:26rem}
.tk-verdict{display:flex;gap:.6rem;align-items:flex-start;margin:0;padding:.7rem .85rem;border-radius:.7rem;font-size:.9375rem;line-height:1.45;font-weight:600}
.tk-dot{flex:none;width:.6rem;height:.6rem;margin-top:.38rem;border-radius:50%;background:currentColor}
.tk-verdict.tk-good{background:var(--active-bg);color:var(--active)}
.tk-verdict.tk-warn{background:var(--inactive-bg);color:var(--inactive)}
.tk-verdict.tk-bad{background:var(--canceled-bg);color:var(--canceled)}
.tk-verdict.tk-info{background:var(--blue-wash);color:var(--blue-deep)}
.tk-kpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(10.5rem,1fr));gap:.6rem;margin:0}
.tk-kpi{padding:.65rem .8rem .7rem;background:var(--paper);border:1px solid var(--rule);border-radius:.7rem}
.tk-kpi dt{font-size:.75rem;line-height:1.3;color:var(--ink-2)}
.tk-kpi dd{margin:.2rem 0 0;font:600 1.375rem/1.15 var(--body);letter-spacing:-.015em;font-variant-numeric:tabular-nums;color:var(--ink);overflow-wrap:normal;word-break:normal}
.tk-kpi.tk-big dd{font-size:1.75rem}
@container tk (max-width:30rem){.tk-kpis{grid-template-columns:1fr 1fr}.tk-kpi dd{font-size:1.125rem}.tk-kpi.tk-big dd{font-size:1.375rem}}
.tk-unit{font-size:.8125rem;font-weight:400;letter-spacing:0;color:var(--ink-2)}
.tk-kpi.tk-good dd{color:var(--active)}.tk-kpi.tk-warn dd{color:var(--inactive)}.tk-kpi.tk-bad dd{color:var(--canceled)}
.tk-sub{margin-top:.25rem;font-size:.75rem;line-height:1.4;color:var(--ink-2)}
.tk-fig{margin:0;padding:.75rem .8rem .6rem;background:var(--paper);border:1px solid var(--rule);border-radius:.7rem}
.tk-fig figcaption{font:600 .8125rem/1.3 var(--body);margin-bottom:.35rem}
.tk-svg{display:block;width:100%;height:auto;overflow:visible}
.tk-svg.tk-square{max-width:22rem;margin:0 auto}
.tk-svg text{font-family:var(--body)}
.tk-ax{font-size:11px;fill:#4F5B73;font-variant-numeric:tabular-nums}
.tk-lab{font-size:12px;fill:#101B33}
.tk-val{font-size:11px;font-weight:600;fill:#101B33;font-variant-numeric:tabular-nums}
.tk-ref{font-size:11px;font-weight:600}
.tk-cell{font-size:13px;font-weight:700;fill:#fff}
.tk-legend{display:flex;flex-wrap:wrap;gap:.3rem 1rem;list-style:none;padding:0;margin:.4rem 0 0;font-size:.75rem;color:var(--ink-2)}
.tk-sw{display:inline-block;width:.65rem;height:.65rem;border-radius:.15rem;margin-right:.35rem;vertical-align:-.05em}
.tk-tbl h3{font:600 .8125rem/1.3 var(--body);margin:0 0 .4rem}
.tk-scroll{overflow-x:auto;background:var(--paper);border:1px solid var(--rule);border-radius:.7rem}
.tk-table{border-collapse:collapse;width:100%;font-size:.8125rem;font-variant-numeric:tabular-nums}
.tk-table th,.tk-table td{padding:.45rem .7rem;text-align:left;border-bottom:1px solid var(--rule);vertical-align:top}
.tk-table thead th{font-size:.6875rem;color:var(--ink-2);background:var(--soft);white-space:nowrap}
.tk-table .n{text-align:right;white-space:nowrap}
.tk-table tbody th{font-weight:400}
.tk-table tbody tr:last-child>*{border-bottom:0}
.tk-row-good>*{background:#F3FAF6}.tk-row-warn>*{background:#FFF9EA}.tk-row-bad>*{background:#FDF2EE}
.tk-notes{display:grid;gap:.35rem;font-size:.8125rem;line-height:1.5;color:var(--ink-2)}
/* saved results */
.tk-hist{border-top:1px solid var(--rule);padding:1rem 1.15rem 1.15rem;background:var(--soft);border-radius:0 0 1rem 1rem}
.tk-hist h3{font:600 .9375rem var(--body)}
.tk-hlist{list-style:none;padding:0;margin:.5rem 0 0;display:grid;gap:.4rem}
.tk-hlist li{display:flex;align-items:center;gap:.5rem;background:var(--paper);border:1px solid var(--rule);border-radius:.6rem}
.tk-hopen{flex:1;min-width:0;display:grid;gap:.1rem;text-align:left;border:0;background:none;padding:.55rem .75rem;cursor:pointer;font:inherit}
.tk-hopen b{font-size:.875rem}
.tk-hopen span{font-size:.75rem;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tk-hopen:hover b{color:var(--blue)}
.tk-hdel{border:0;background:none;color:var(--ink-2);font:400 .75rem var(--body);padding:.5rem .7rem;cursor:pointer}
.tk-hdel:hover{color:var(--canceled)}
.tk-print-head{display:none}

/* below the workbench, and the tools index */
.tk-prose{margin-top:2rem}
.tk-more{list-style:none;padding:0 !important;display:grid;gap:.5rem}
.tk-more li{margin:0 !important;display:grid;gap:.1rem}
.tk-more a{font-weight:600}
.tk-more span{font-size:.875rem;color:var(--ink-2)}
.tk-cats{margin-top:1.5rem}
.tk-cards{list-style:none;padding:0;margin:1.1rem 0 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(17rem,1fr));gap:.75rem}
.tk-cards li{position:relative;display:grid;gap:.3rem;align-content:start;padding:1rem 1.1rem 1.05rem;background:var(--paper);border:1px solid var(--rule);border-radius:var(--r);box-shadow:var(--lift)}
.tk-cards li:hover{border-color:var(--rule-2)}
.tk-cards a{font-weight:600;color:var(--ink);text-decoration:none}
.tk-cards a::after{content:"";position:absolute;inset:0}
.tk-cards li:hover a{color:var(--blue)}
.tk-cards span{font-size:.875rem;line-height:1.45;color:var(--ink-2)}

/* the PDF report: the browser's print, with only the tool's inputs and results */
@media print{
  .tk-printing .side,.tk-printing .bar-page,.tk-printing .app-bar,.tk-printing .rail,.tk-printing .pg-toc,.tk-printing .tk-prose,.tk-printing .tk-bar,.tk-printing .tk-msg,.tk-printing .tk-hist,.tk-printing .tk-add,.tk-printing .tk-x,.tk-printing .neuclon,.tk-printing .ftr,.tk-printing .ftr-page,.tk-printing .acts,.tk-printing .tk-facts,.tk-printing .signup,.tk-printing .aip,.tk-printing .upg,.tk-printing .pg-head{display:none !important}
  .tk-printing .app{display:block}.tk-printing .page{display:block;padding:0}
  .tk-printing .tk{border:0;box-shadow:none;margin:0}
  .tk-printing .tk-print-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.25rem 1rem;padding:0 0 .6rem;margin-bottom:.8rem;border-bottom:2px solid #101B33;font-size:.75rem;color:#4F5B73}
  .tk-printing .tk-print-head b{flex-basis:100%;font-size:1.25rem;color:#101B33}
  .tk-printing .tk-work{grid-template-columns:1fr}
  .tk-printing .tk-out{border:0;background:none;padding:0}
  .tk-printing .tk-in{padding:0 0 1rem}
  .tk-printing .tk-fig,.tk-printing .tk-tbl,.tk-printing .tk-kpi{break-inside:avoid}
}
