/* ============================================================
   SwiftLife — Is this link safe? (/tools/link-check/): its own look.

   Only what is this tool's own, every class starting lk-. The
   panel, the box, the buttons, the verdict, the findings and the
   pills are the tools kit's (../tools.css); colours are the sheet's
   palette variables, so light and dark both come from
   placeholder.css. A level is always said in words and shown with
   an icon, never by colour alone.
   ============================================================ */

/* ---- the box ---- */
.lk-form .tk-area { min-height: 132px; font-size: 16px; }
.lk-hint { margin: -2px 0 0; font-size: .875rem; line-height: 1.5; color: var(--ink-3); }
.lk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lk-row .tk-go { flex: 0 1 auto; }
.lk-status { margin: 16px 0 0; min-height: 1.4em; font-weight: 500; line-height: 1.45; color: var(--ink); }
.lk-status:empty { margin: 0; min-height: 0; }

/* ---- what was found ---- */
.lk-out:empty { display: none; }
.lk-res-h {
  margin: 30px 0 4px;
  font: 360 clamp(1.5rem, 1.25rem + 1vw, 1.875rem)/1.15 var(--serif); letter-spacing: -.02em;
}
.lk-res-h:focus { outline: none; }
.lk-res-h:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.lk-note { margin: 10px 0 0; max-width: 62ch; line-height: 1.55; color: var(--ink-2); }

/* One link: a panel edged in its level's colour. */
.lk-card {
  margin: 18px 0 0; padding: 18px 18px 20px;
  border: 1px solid var(--rule); border-top: 5px solid var(--lv, var(--rule-2)); border-radius: 16px;
  background: var(--card); box-shadow: var(--shadow);
  min-width: 0;
}
.lk-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.lk-n { margin: 0; font: 500 .75rem/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
/* The words a pasted email showed for a link, above its real address. */
.lk-words { margin: 12px 0 0; font-size: .875rem; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.lk-words + .lk-raw { margin-top: 4px; }
.lk-raw { margin: 12px 0 0; line-height: 1.5; }
.lk-code {
  display: inline; font-size: .8125rem; word-break: break-all; overflow-wrap: anywhere;
  unicode-bidi: isolate; direction: ltr; text-align: left;
}
/* A character you can't see, shown as a marked word instead. */
.lk-hid {
  display: inline-block; margin: 0 2px; padding: 0 4px; border-radius: 4px;
  border: 1px dashed var(--alert); background: var(--alert-tint); color: var(--alert);
  font: 600 .6875rem/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px;
}
.lk-more { color: var(--ink-3); }

/* Where it really goes, large. */
.lk-goes { margin: 16px 0 0; font-size: .875rem; color: var(--ink-2); }
.lk-dest {
  margin: 2px 0 0;
  font: 500 clamp(1.375rem, 1.1rem + 1.4vw, 1.875rem)/1.2 var(--serif); letter-spacing: -.01em; color: var(--ink);
  overflow-wrap: anywhere; word-break: break-word;
  unicode-bidi: isolate; direction: ltr; text-align: left;
}
.lk-dest-a { margin: 4px 0 0; font: 400 .8125rem/1.45 var(--mono); color: var(--ink-3); overflow-wrap: anywhere; }

.lk-card .tk-verdict { margin-top: 16px; padding: 14px 16px; box-shadow: none; background: var(--lv-tint, var(--cream)); }
.lk-card .tk-verdict-t { font-size: 1.0625rem; }
.lk-card .tk-verdict-p { font-size: .9375rem; }
.lk-card .tk-flags { margin-top: 12px; }

/* The address inside the address, nested under it. */
.lk-inner { margin: 16px 0 0; padding: 0 0 0 14px; border-left: 2px dashed var(--rule-2); }
.lk-card-in { margin: 12px 0 0; padding: 14px 14px 16px; box-shadow: none; border-top-width: 4px; }
.lk-card-in .lk-dest { font-size: clamp(1.1875rem, 1rem + 1vw, 1.5rem); }

/* What to do next: the scam search, and any phone number in it. */
.lk-next {
  margin: 18px 0 0; padding: 16px 18px;
  border: 1px solid var(--rule); border-radius: 14px; background: var(--cream);
}
.lk-next p { margin: 6px 0 0; line-height: 1.6; color: var(--ink-2); }
.lk-next a { color: var(--link); text-underline-offset: 2px; display: inline-block; padding: 2px 0; }
.lk-next a:hover { color: var(--link-2); }
.lk-next-h { margin: 0; font: 600 1rem/1.35 var(--sans); color: var(--ink); }
.lk-num { font-family: var(--mono); font-size: .9375rem; color: var(--ink); white-space: nowrap; }
.lk-phones { border-left: 5px solid var(--alert); }

@media (max-width: 479px) {
  .lk-card { padding: 16px 14px 18px; }
  .lk-inner { padding-left: 8px; }
  .lk-card-in { padding: 12px 12px 14px; }
  .lk-card .tk-verdict { padding: 12px 12px; gap: 4px 10px; }
  .lk-card .tk-flag { padding: 10px 10px; gap: 2px 10px; }
  .lk-row .tk-go { flex: 1 1 auto; }
}
