/* The free contract scanner (/learn/contract-scanner, assets/learn-contract.js),
   in the Learn page's look (shop.css: sh_ panels, fields and banners). Prefix lc_.

   Four marks, each a level the scanner reads a clause at, so a red flag, a
   question, a protection and something not there are told apart before a word
   is read: a flag in red, a question mark in gold, a shield in green, and a
   dashed shield in grey. Text never wears the colour alone: the mark, a
   stripe on the card and the chip's words carry it together. */
.lc { --lc-red: #ff2b4a; --lc-red-t: #ff8fa3; --lc-ask: #f4c95d; --lc-good: #4ade80; --lc-miss: #a7a6ad; --lc-plain: #6cb6ff; }
.lc_ico { width: 18px; height: 18px; flex: none; }

/* Back to the other tools, above the title. */
.lc_up { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 0 0 18px; font-size: .86rem; color: rgba(255,255,255,.8);
  text-decoration: none; }
.lc_up:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ── The box ──────────────────────────────────────────────────────────── */
.lc_form { display: grid; gap: 14px; }
.lc_k { display: block; font-family: var(--x-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.66); }
.lc_ex { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lc_ex .lc_k { flex: 1 1 100%; margin-bottom: 2px; }
.lc_chip { font: inherit; font-size: .84rem; padding: 7px 13px; border-radius: 999px; cursor: pointer; color: rgba(255,255,255,.84);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); }
.lc_chip:hover { border-color: rgba(255,255,255,.34); color: #fff; }
/* 16px and up, so a phone does not zoom into the box; a contract is long,
   so the box is tall and grows with a drag. */
.lc .sh_field textarea#lcText { width: 100%; min-height: 300px; resize: vertical; font-size: 1rem; line-height: 1.55;
  font-family: var(--x-mono); color: #fff; background: rgba(0,0,0,.34); border: 1px solid rgba(255,255,255,.16); border-radius: 11px; padding: 12px 14px; }
.lc .sh_field textarea#lcText:focus { outline: none; border-color: var(--x-red); box-shadow: 0 0 0 3px rgba(255,43,74,.18); }
.lc_row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; }
.lc_kindf { flex: 1 1 220px; margin: 0; }
.lc_acts { flex: 0 0 auto; margin: 0; }
.lc_msg { min-height: 1.4em; color: rgba(255,255,255,.86); }

/* ── The answer ───────────────────────────────────────────────────────── */
.lc_mark { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; color: var(--mc, rgba(255,255,255,.8));
  background: color-mix(in srgb, var(--mc, #fff) 12%, transparent); border: 1px solid color-mix(in srgb, var(--mc, #fff) 40%, transparent); }
.lc_mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lc_mark.sm { width: 28px; height: 28px; border-radius: 8px; }
.lc_mark.sm svg { width: 16px; height: 16px; }
.lc_mark.xs { width: 20px; height: 20px; border-radius: 6px; background: none; border: 0; }
.lc_mark.xs svg { width: 14px; height: 14px; }
/* The level sets the colour, on the mark, the card's stripe and the chip. */
.lc_red { --mc: var(--lc-red); }
.lc_ask { --mc: var(--lc-ask); }
.lc_good { --mc: var(--lc-good); }
.lc_miss { --mc: var(--lc-miss); }
.lc_plain { --mc: var(--lc-plain); }
.lc_red.lc_mark, .lc_red .lc_mark { color: var(--lc-red-t); }

.lc_sum { display: grid; gap: 14px; padding: 20px 20px 16px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.lc_kindline { margin: 0; color: rgba(255,255,255,.85); line-height: 1.55; }
.lc_kindline b { color: #fff; }
.lc_counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .lc_counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lc_count { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: #fff;
  background: color-mix(in srgb, var(--mc) 9%, transparent); border: 1px solid color-mix(in srgb, var(--mc) 35%, transparent); }
.lc_count b { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.lc_count span { font-size: .8rem; line-height: 1.3; color: rgba(255,255,255,.75); }
a.lc_count:hover { border-color: var(--mc); }
.lc_count.lc_zero { opacity: .55; }
.lc_glance { display: flex; flex-wrap: wrap; gap: 6px; }
.lc_g { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 6px; border-radius: 999px; font-size: .8rem; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.05); border: 1px solid color-mix(in srgb, var(--mc) 45%, rgba(255,255,255,.14)); }
.lc_g:hover { background: color-mix(in srgb, var(--mc) 12%, transparent); }
.lc_read { margin: 0; }

.lc_grp { margin-top: 26px; }
.lc_grp h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; color: #fff; font-size: 1.14rem; }
.lc_grp h3 .lc_n { margin-left: 2px; padding: 1px 9px; border-radius: 999px; font: 600 .74rem/1.6 var(--x-mono); color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.lc_grp_sub { margin: 0 0 14px; color: rgba(255,255,255,.66); line-height: 1.55; }
.lc_cards { display: grid; gap: 12px; }
.lc_card { position: relative; padding: 18px 18px 16px 20px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-left: 4px solid var(--mc); }
@media (max-width: 560px) { .lc_card { padding: 16px 14px 14px 16px; } }
.lc_card_h { display: flex; align-items: flex-start; gap: 12px; }
.lc_card_t { flex: 1; min-width: 0; }
.lc_kind { display: block; font-family: var(--x-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.lc_card h4 { margin: 2px 0 0; color: #fff; font-size: 1.04rem; line-height: 1.3; }
.lc_card .lc_chip { flex: none; cursor: default; font-size: .72rem; padding: 4px 10px; color: #fff;
  background: color-mix(in srgb, var(--mc) 14%, transparent); border-color: color-mix(in srgb, var(--mc) 50%, transparent); }
.lc_card .lc_chip:hover { border-color: color-mix(in srgb, var(--mc) 50%, transparent); }
@media (max-width: 480px) { .lc_card_h { flex-wrap: wrap; } .lc_card .lc_chip { order: 3; } }
.lc_q { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; font-size: .92rem; line-height: 1.6; color: rgba(255,255,255,.78);
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.08); overflow-wrap: anywhere; }
.lc_q mark { color: #fff; background: color-mix(in srgb, var(--mc) 28%, transparent); border-radius: 3px; padding: 0 2px; }
.lc_q_s { margin-top: 8px; font-size: .86rem; }
.lc_dl { display: grid; gap: 10px; margin: 14px 0 0; }
.lc_dl > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 4px 14px; }
@media (max-width: 560px) { .lc_dl > div { grid-template-columns: minmax(0, 1fr); } }
.lc_dl dt { color: rgba(255,255,255,.62); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
.lc_dl dd { margin: 0; color: rgba(255,255,255,.88); line-height: 1.6; }
.lc_dl .lc_askrow dd { color: #fff; }
.lc_more { margin-top: 12px; }
.lc_more summary { cursor: pointer; width: fit-content; color: rgba(255,255,255,.8); font-size: .86rem; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,.35); }

.lc_norms { margin-top: 26px; padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.lc_norms h3 { margin: 0 0 10px; color: #fff; font-size: 1.08rem; }
.lc_norms ul { margin: 0 0 10px; padding-left: 18px; color: rgba(255,255,255,.8); line-height: 1.6; }
.lc_norms a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.lc_end { display: grid; gap: 14px; margin-top: 26px; }
.lc_end .sh_actions { flex-wrap: wrap; }
.lc_copytext { width: 100%; margin-top: 8px; font: .86rem/1.5 var(--x-mono); color: #fff; background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.16); border-radius: 11px; padding: 10px 12px; }

/* ── How it reads ─────────────────────────────────────────────────────── */
.lc_how { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 78ch; }
.lc_how li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; color: rgba(255,255,255,.78); line-height: 1.65; }
.lc_how b { color: #fff; }
