/* ============================================================
   SwiftLife — Website check (/tools/website-check/)
   Only what is this tool's own; the rest is the tool kit in
   ../tools.css (tk-) on the placeholder's sheet. Colours are
   the palette's variables, so light and dark both follow it.
   ============================================================ */

/* The box and its button. */
.wc-form .tk-lab { display: block; }
.wc-form .tk-input { min-width: 0; font-family: var(--mono); font-size: 16px; }   /* an input won't shrink below its own width otherwise */
.wc-form .tk-input[aria-invalid="true"] { border-color: var(--err-line); }
.wc-form .tk-go { flex: 0 0 auto; }
.wc-err {
  margin: 10px 0 0; padding: 9px 12px;
  border: 1px solid var(--err-line); border-radius: 10px; background: var(--err-bg); color: var(--err-ink);
  font-size: .9375rem; line-height: 1.5;
}
.wc-err::before { content: "\26A0\FE0E\00A0"; }   /* a warning sign as well as the colour */

/* While it checks: a thin bar that moves (still, for reduced motion). */
.wc-bar[data-on="1"] { margin-top: 20px; }
.wc-wait { position: relative; height: 4px; margin: 10px 0 0; border-radius: 4px; background: var(--rule); overflow: hidden; }
.wc-wait span { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; border-radius: 4px; background: var(--tk); }
@media (prefers-reduced-motion: no-preference) {
  .wc-wait span { animation: wc-slide 1.4s ease-in-out infinite; }
}
@keyframes wc-slide { 0% { left: -40%; } 100% { left: 100%; } }

/* The report. */
.wc-out:focus { outline: none; }
.wc-out .tk-verdict { margin-top: 18px; }
.wc-out .tk-verdict-t:focus { outline: none; }
.wc-out .tk-verdict-t:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.wc-counts { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 2; margin: 8px 0 0; padding: 0; list-style: none; }
.wc-group { margin-top: 28px; }
.wc-gh { margin: 0; font: 600 1.0625rem/1.35 var(--sans); color: var(--ink); }
.wc-out .tk-flag-t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.wc-out .tk-flag-p p { margin: 4px 0 0; }
.wc-out .tk-flag-p p:first-child { margin-top: 2px; }
.wc-k { display: block; margin: 8px 0 1px; font: 500 .6875rem/1.35 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.wc-rec { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 6px; }
.wc-rec .tk-code { display: block; flex: 1 1 14rem; min-width: 0; padding: 6px 9px; color: var(--ink); }
.wc-copy { min-height: 44px; padding: 0 14px; font-size: .875rem; }

/* Help at the end. */
.wc-help { margin-top: 30px; }
.wc-help-h { margin: 0 0 6px; font: 400 1.375rem/1.25 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.wc-help p { margin: 0; line-height: 1.6; color: var(--ink-2); }
.wc-help-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px !important; }

@media (max-width: 479px) {
  .wc-form .tk-go { flex: 1 1 100%; }
  .wc-counts { grid-column: 1 / -1; }
  .wc-out .tk-verdict { padding: 16px 14px; }
  .wc-out .tk-flag { padding: 12px 12px; gap: 2px 10px; }
}
