/* Customer tool pages only. Load after style.css. Uses the site's own variables. */
.tool{display:grid;gap:1.5rem;grid-template-columns:minmax(0,1fr);max-width:52rem}
.tool > *{min-width:0}
.tool-row{display:flex;flex-wrap:wrap;gap:.625rem;align-items:stretch}
.tool-row .input{flex:1 1 13rem;min-width:0;max-width:none}
.tool-row .btn{flex:0 0 auto}
.tool .opts{justify-items:stretch;max-width:40rem}
.tool-form__end{margin-top:1.5rem}

/* The result box keeps its height before and after a result, so the page does not jump. */
.tool-out{min-height:var(--tool-min,16rem);padding:1.125rem 1.25rem;border:1px solid var(--line);border-top:3px solid var(--ink);border-radius:var(--radius);background:#fff;overflow-wrap:anywhere;display:flex;flex-direction:column}
.band--white .tool-out{background:var(--glass-wash)}
.tool-out > * + *{margin-top:.875rem}
.tool-out--fail{border-top-color:var(--red)}
.tool-out .tool-cta{margin-top:auto;padding-top:1rem}
.tool-wait{color:var(--ink-2)}
.tool-group + .tool-group{margin-top:1.5rem}
.tool-group > * + *{margin-top:.5rem}
.tool-list{display:grid;gap:.75rem;grid-template-columns:minmax(0,1fr)}
.tool-item{min-width:0;padding:.875rem 1rem;border:1px solid var(--line);border-left:3px solid var(--ink);border-radius:0 var(--radius) var(--radius) 0;background:#fff}
.tool-item > * + *{margin-top:.375rem}
.tool-item .tag,.tool-out .subtitle .tag{vertical-align:.12em}
.tool-src .link{font-weight:500}
.tool-verdict{font:600 1.75rem/1.1 var(--display);letter-spacing:-.003em}
.tool-verdict--fail{color:var(--red-deep)}
.tool-notes{display:grid;gap:.75rem;max-width:52rem}

/* Pre-trip card */
.tool-card{max-width:44rem;padding:1.25rem 1.375rem;border:2px solid var(--ink);border-radius:var(--radius);background:#fff}
.tool-card > * + *{margin-top:.875rem}
.tool-card ul{padding-left:1.25rem;display:grid;gap:.25rem}
.tool-card__fill{display:grid;gap:.875rem 1.25rem;grid-template-columns:minmax(0,1fr)}
.tool-card__fill > div{display:flex;align-items:flex-end;gap:.5rem;font-size:.9375rem}
.tool-card__line{flex:1 1 auto;min-width:3rem;height:1.5rem;border-bottom:1.5px solid var(--ink-3)}
.tool-card__box{display:inline-block;width:1rem;height:1rem;margin:0 .375rem 0 .75rem;border:1.5px solid var(--ink);vertical-align:-.15em}
.tool-card__check{min-height:16.5rem;padding:.75rem .875rem;border:1px dashed #a9b6bf;border-radius:var(--radius);font-size:.9375rem;line-height:1.45}
.tool-card__check span{display:block}
.tool-card__check span + span{margin-top:.25rem}
.tool-card__foot{font-size:.875rem;line-height:1.45;color:var(--ink-2)}
.tool-card__foot a{overflow-wrap:anywhere}
@media (min-width:36rem){
  .tool-card__fill{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tool-card__check{min-height:12.5rem}
}

/* Printing the fleet page gives the card alone, on one page. */
@media print{
  @page{margin:12mm}
  body > *:not(main),.pagehead,.tool-noprint{display:none !important}
  body,body.has-actbar{background:#fff;padding:0}
  .tool-print{padding:0;background:#fff}
  .tool-print .wrap{width:100%}
  .tool-card{max-width:none;border:1.5pt solid #000;border-radius:0;color:#000;font-size:11pt;line-height:1.35;break-inside:avoid}
  .tool-card .subtitle{font-size:20pt}
  .tool-card .tag{border:1pt solid #000;background:none;color:#000}
  .tool-card__foot,.tool-card__check{color:#000;font-size:10pt}
  .tool-card__check{min-height:0;border:1pt solid #000}
  .tool-card__fill{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tool-card__line{border-bottom:1pt solid #000}
  .tool-card__foot a{text-decoration:none}
  .tool-card__foot a[href^="http"]::after{content:" (" attr(href) ")";overflow-wrap:anywhere}
}
