/* Link Check's page on the one system (the site round, 22 to 23 November 2026; site-src/v6/pages/link-check.mjs). The tool itself is
   unchanged: its markup (every ID, data-t key and fold tools/link-check/app.js relies on) and its own sheet (assets/css/v5/lc.css, written
   in design v5's names) are as they were; this sheet gives those names the system's values and draws the page around the tool. The
   result card keeps its colours and their meaning (the system's Link Check tokens are design v5's values), its spacing and its springs. */

/* ───────── the tool's own names, in the system's values ───────── */
.is-lc {
  --font: var(--text-face);
  --ink: var(--text); --ink-2: var(--text-2); --ink-3: var(--line-strong); --tint: var(--raised); --field: var(--bg);
  --red: var(--lc-red); --on-red: var(--lc-on-red); --red-text: var(--lc-red-text);
  --orange: var(--lc-orange); --on-orange: var(--lc-on-orange); --orange-text: var(--lc-orange-text);
  --grey: var(--lc-grey); --on-grey: var(--lc-on-grey); --grey-line: var(--lc-grey-line);
  --mark-red: var(--mk-red); --mark-orange: var(--mk-orange); --mark-grey: var(--mk-grey);
  --col: 40rem; --gutter: var(--margin);
  --spring-snappy: var(--ease-enter); --spring-snappy-dur: var(--dur-quick);
  --spring-standard: var(--ease-enter); --spring-standard-dur: var(--dur-base);
  --spring-bouncy: var(--ease-land); --spring-bouncy-dur: var(--dur-text);
  --fade: var(--ease-steady); --fade-dur: var(--dur-press);
}
/* (reduced motion: the durations above are the system's, which reduced motion sets to 0) */
/* the names the tool's late sheets read (tools/link-check/consent.css and preview.css, loaded on Full check's tap), pointed as design v5's
   tokens pointed them (assets/css/v5/tokens.css): a tool's "lime" is the ink (lime is the logo's alone, never near a verdict), its red
   words are a verdict's red text, its rules are the page's line, its headings are in the tool's face. Inside the result only where the
   system has a name of its own (--display, --lc-red), so the page's headings and the card's blocks keep the system's. */
.is-lc { --ink2: var(--ink-2); --lc-rule: var(--line); --lime: var(--ink); --paper: var(--bg); --rule: var(--line); --well: var(--tint); --lens: var(--bg); --lens-rim: var(--ink-3); }
.is-lc .lc-result { --display: var(--font); --lc-red: var(--lc-red-text); }

/* ───────── the base the tool and its card were drawn on (design v5's site.css), where the system's base leaves things to the browser:
   no margins on h4, dl, dd, blockquote or fieldset (the card's folds are h4s), form fields in the page's face, pictures within their
   column, numbers that line up, the tool's words in the look's ink. Zero specificity, so every rule of the tool's sheet still wins. ─── */
/* (the words' ink on <body class="is-lc"> itself: this one rule needs the class's weight to pass the system's body colour) */
.is-lc { color: var(--text); font-variant-numeric: tabular-nums; }
:where(.is-lc) :where(h4, dl, dd, blockquote, fieldset) { margin: 0; }
:where(.is-lc) :where(input, textarea, select) { font: inherit; color: inherit; }
:where(.is-lc) :where(img, svg) { max-width: 100%; }
:where(.is-lc) :where(button) { cursor: pointer; }
:where(.is-lc) :where(a) { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
/* the card's headings are the tool's: the system's heading ink, face and balance (site.css, h1 to h3) stay out of the result and the
   sample plate, so a verdict's title keeps its block's colour (white on Red) as it did (a tie in weight, won by coming later) */
:where(.is-lc .lc-result, .is-lc .lc-sample) :is(h2, h3) { color: inherit; font-family: inherit; text-wrap: wrap; }
/* the focus ring here: the look's ink, never lime ("lime is never near a scam verdict"; design v4, 12 November 2026), 3 px, set off
   from the control by the system's gap ring (e2e/link-check.spec.mjs) */
.is-lc { --focus: var(--text); --focus-gap: var(--bg); }
.is-lc :focus-visible { outline-width: 3px; }

/* ───────── the header stays in the page's flow here: nothing is ever held over a result (design v4's rule of 12 November 2026, kept:
   e2e/link-check.spec.mjs) ───────── */
.is-lc .mast { position: relative; }

/* ───────── the tool: its heading, the switch, the box, the button, the examples ───────── */
.lc-check { padding-top: var(--s7); }
.is-lc .lc-head h1 { font-family: var(--display-cut); font-weight: 800; font-size: var(--t-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); color: var(--text); }
.is-lc .lc-lead { color: var(--text-body); font-size: var(--t-lead); line-height: var(--lh-lead); }
.is-lc .langs { border-radius: var(--r-control); overflow: clip; }
.is-lc .choice { border-radius: var(--r-control); color: var(--text); }
.is-lc .lc-input { border-radius: var(--r-control); }
/* the tool's own action: filled in the page's ink, as a product draws its main button */
.is-lc .btn.lc-go, .is-lc #lc-bottom { background: var(--text); border-color: var(--text); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .is-lc .btn.lc-go:hover, .is-lc #lc-bottom:hover { background: var(--text-body); border-color: var(--text-body); } .is-lc .choice:hover { border-color: var(--text); } }

/* ───────── from 1024 px the tool takes the page's two halves, as Home's hero does: its heading and the language switch on the left,
   held while the box and its result pass; the box, the examples and the result on the right, in the tool's own column (at most 40rem).
   The tool's wrapper hands its parts to the section's grid (display: contents): nothing of the tool's markup or order changes, and the
   wrapper keeps its 40rem measure below 1024 px. Spare height goes to the last row, so the right column's parts stay close. ───────── */
@media (min-width: 1024px) {
  .is-lc .lc-check { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(12, auto) 1fr; column-gap: var(--gap); align-items: start; }
  .is-lc .lc-check > .lc-tool { display: contents; }
  .is-lc .lc-tool > * { grid-column: 7 / 13; max-width: var(--col); margin-top: var(--s4); }
  .is-lc .lc-tool > .lc-lead { margin-top: 0; }
  .is-lc .lc-tool > .lc-head { grid-column: 1 / 7; grid-row: 1 / -1; position: sticky; top: var(--s5); margin-top: 0; max-width: none; padding-right: var(--gap); }
  .is-lc .lc-page[data-checked="true"] .lc-tool > .lc-form { margin-top: 0; }
  /* (the result's space above it, as in the tool's own grid: the grid's gap and the result's margin) */
  .is-lc .lc-tool > .lc-result { margin-top: calc(var(--s4) + var(--s5)); }
}

/* ───────── the page's sections: the heading in its own columns, held while its section passes (from 1024 px); words in the reading
   measure ───────── */
.is-lc .lc-page > .sec { padding-top: var(--section); }
.is-lc .lc-page > .sec > * + * { margin-top: var(--s4); }
.is-lc .lc-page > .sec > .sec-h + * { margin-top: var(--s6); }
/* the page's headline is the system's second size, so its sections' headings take the third (page.css: two steps of headings) */
.is-lc .lc-page > .sec > .sec-h { font-size: var(--t-h3); line-height: var(--lh-h3); letter-spacing: var(--tr-h3); }
.is-lc .lc-page > .sec > :not(.sec-h):not(.folds):not(.lc-folds):not(.help-regions) { max-width: var(--measure); }
@media (min-width: 1024px) {
  .is-lc .lc-page > .sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .is-lc .lc-page > .sec > * { grid-column: 5 / 13; }
  .is-lc .lc-page > .sec > * + * { margin-top: var(--s4); }
  .is-lc .lc-page > .sec > .sec-h { grid-column: 1 / 5; grid-row: 1 / span 40; position: sticky; top: var(--s5); margin-top: 0; }
  .is-lc .lc-page > .sec > .sec-h + * { margin-top: 0; }
}
.is-lc .lc-page > .sec p:not([class]) { color: var(--text-body); }

/* the colours, each with its swatch */
.legend { list-style: none; padding: 0; display: grid; gap: var(--s3); }
.lg { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); column-gap: var(--s3); align-items: start; }
.lg-sw { width: 1.25rem; height: 1.25rem; margin-top: 0.2em; border-radius: var(--r-xs); }
.lg-red .lg-sw { background: var(--lc-red); }
.lg-orange .lg-sw { background: var(--lc-orange); }
.lg-grey .lg-sw { background: var(--lc-grey); box-shadow: inset 0 0 0 1px var(--lc-grey-line); }
.lg strong { color: var(--text); }
@media (forced-colors: active) { .lg-sw { forced-color-adjust: none; } }

/* how a link really reads: the sample and its plate, then each rule */
.lc-sample { display: grid; gap: var(--s3); padding: var(--s5); border-radius: var(--r-panel); background: var(--raised); }
.lc-sms { color: var(--text); }
.lc-sample-cap { font-size: var(--t-small); line-height: var(--lh-small); color: var(--text-2); }
.kv.sees .tag { display: inline-flex; margin-top: var(--s2); padding: 0 var(--s2); min-height: 1.5rem; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-xs); font-size: var(--t-fine); color: var(--text-2); }

/* the two checks */
.chk { padding-block: var(--s4); }
.chk + .chk { border-top: 1px solid var(--line); }
.chk > h3 { font-family: var(--display); font-weight: var(--w-h4); font-size: var(--t-h4); line-height: var(--lh-h4); color: var(--text); }
.chk > .kv { margin-top: var(--s4); }
.chk > p { margin-top: var(--s4); color: var(--text-body); }

/* the tricks */
.lc-scams > * + * { margin-top: var(--s4); }
.tricks > li { display: grid; gap: var(--s2); }
.trick-h { font-family: var(--display); font-weight: var(--w-h4); font-size: var(--t-h4); line-height: var(--lh-h4); color: var(--text); }
.trick-ex { color: var(--text); }
.trick-says { color: var(--text-body); }
.trick-try { justify-self: start; }
.newtrick { display: grid; gap: var(--s3); padding: var(--s5); border-radius: var(--r-panel); background: var(--raised); }
.newtrick h3 { font-family: var(--display); font-weight: var(--w-h4); font-size: var(--t-h4); color: var(--text); }
.scam-list > li { display: grid; gap: var(--s2); }
.scam-h { color: var(--text); font-weight: 600; }

/* passing the warning on */
.warn-card { padding: var(--s4) var(--s5); border-radius: var(--r-card); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.share { display: grid; gap: var(--s1); color: var(--text); }
.share-p { display: block; }

/* already clicked or paid: the steps for each place */
.help-regions { border-top: 1px solid var(--line); }
.help-steps { display: grid; gap: var(--s4); padding-left: var(--s5); }
.help-steps li > * + * { margin-top: var(--s2); }
.step-btn { margin-top: var(--s2); }
.help-report { display: grid; gap: var(--s2); color: var(--text-body); }
.help-zone { color: var(--text-2); }

/* the questions are the tool's own folds (buttons that app.js opens); on the page they are drawn as the system's fold (content.css):
   the same row, weight and sign as the folds above them. The result card's folds keep the tool's own icons. */
.is-lc .sec .lc-fold-btn { min-height: 3.5rem; font-size: inherit; font-weight: 600; color: var(--text); }
.is-lc .sec .lc-fold-btn svg { display: none; }
.is-lc .sec .lc-fold-btn::after { content: "+"; content: "+" / ""; flex-shrink: 0; width: 24px; font-size: 1.5rem; font-weight: 400; line-height: 1; text-align: right; color: var(--text-2); }
.is-lc .sec .lc-fold-btn[aria-expanded="true"]::after { content: "\2212"; content: "\2212" / ""; }
@media (hover: hover) and (pointer: fine) { .is-lc .sec .lc-fold-btn:hover::after { color: var(--text); } }

/* "How we test", in the line under a result: its 44 px target in the system's small type (the tool's 10 px reach was drawn for v5's) */
.is-lc .lc-both a { padding-block: 12px; margin-block: -12px; }

/* the questions, and the way back to the box */
.lc-qa-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.lc-qa-links a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--text); font-weight: 600; }
.lc-end { margin-top: var(--s7); }
/* the page's end: the system's section space before the footer */
.is-lc .lc-page { padding-bottom: var(--section); }
.lc-made { color: var(--text-2); }
