/* Case files: the library and the tools.

   Loaded after ungrow.css and trust.css, and only by pages the build writes (scripts/learn/build.mjs).
   Everything is scoped to .lf-* so the live page cannot be touched by anything here. The page links
   this file with a content hash, so there is no ?v= to bump: the build does it.

   The look follows the brand book: bone ground for reading, petrol for the header, charcoal ink,
   hivis only on the price button, the notice's charcoal band for the ruling. No gradients, no
   shadows, no icons beyond plain line glyphs. */

/* ---------- header ---------- */
.lf-head { padding-top: 0; padding-bottom: clamp(40px, 6vw, 72px); }
.lf-head__in { display: grid; gap: var(--space-8); align-items: end; padding-top: clamp(24px, 4vw, 56px); }
@media (min-width: 900px) { .lf-head__in--mug { grid-template-columns: minmax(0, 1fr) 220px; } }
.lf-head__copy { min-width: 0; }
.lf-crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink-muted); }
.lf-crumbs a { color: inherit; text-decoration: none; }
.lf-crumbs a:hover { color: var(--hivis); }
.lf-kicker { margin: var(--space-4) 0 0; font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.lf-title { margin: var(--space-3) 0 0; font-size: clamp(34px, 5.2vw, 62px); line-height: 1; font-weight: 900; letter-spacing: -.025em; max-width: 20ch; text-wrap: balance; }
.lf-lede { margin: var(--space-6) 0 0; max-width: 56ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; font-weight: 500; color: var(--ink-muted); }
.lf-lede a, .lf-byline a { color: var(--ink); font-weight: 700; text-decoration: none; }
.lf-lede a:hover, .lf-byline a:hover { color: var(--hivis); }
.lf-byline { margin: var(--space-6) 0 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-muted); }

/* the suspect's mugshot: the crew member over a name plate, the line-up's language */
.lf-mug { margin: 0; display: none; justify-items: center; gap: var(--space-4); }
.lf-mug img { width: 168px; height: auto; }
@media (min-width: 900px) { .lf-mug { display: grid; } }

/* ---------- reading column ---------- */
.lf-main { background: var(--bone); color: var(--charcoal); padding-block: clamp(40px, 6vw, 80px); }
.lf-grid { display: grid; gap: var(--space-12); }
@media (min-width: 1040px) {
  .lf-grid { grid-template-columns: minmax(0, 720px) 240px; justify-content: space-between; align-items: start; }
}
.lf-article { min-width: 0; max-width: 720px; }

/* The ruling: the notice's charcoal band over a bone sheet. It is the answer, so it reads first and
   largest, and it is the passage search engines lift. */
.lf-ruling { border: 3px solid var(--charcoal); background: var(--bone); }
.lf-ruling__k { margin: 0; padding: 10px var(--space-6); background: var(--charcoal); color: var(--bone);
  font-size: 13px; line-height: 18px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-stretch: 75%; }
.lf-ruling__t { margin: 0; padding: var(--space-6); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; font-weight: 600; }

.lf-body { margin-top: var(--space-12); }
.lf-body p, .lf-body li { font-size: 18px; line-height: 1.65; }
.lf-body p { margin: 0 0 var(--space-6); }
.lf-body ul, .lf-body ol { margin: 0 0 var(--space-6); padding-left: 1.3em; }
.lf-body li + li { margin-top: var(--space-2); }
.lf-body h2 { margin: var(--space-16) 0 var(--space-6); font-size: clamp(26px, 2.8vw, 34px); line-height: 1.08; font-weight: 900; letter-spacing: -.015em; text-wrap: balance; scroll-margin-top: var(--space-6); }
.lf-sec:first-child h2 { margin-top: 0; }
.lf-body h3 { margin: var(--space-8) 0 var(--space-4); font-size: 20px; line-height: 26px; font-weight: 800; }
.lf-body strong { font-weight: 800; }
.lf-body a { color: var(--petrol); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lf-body a:hover { color: var(--charcoal); }
.lf-body a.lf-term { color: inherit; font-weight: inherit; text-decoration-style: dotted; text-decoration-thickness: 2px; text-decoration-color: var(--petrol); }

/* citations: a number, never a word, so the sentence still reads as a sentence */
.lf-cite { font-size: 12px; line-height: 0; font-weight: 800; margin-left: 1px; }
.lf-cite a, .lf-body .lf-cite a { color: var(--petrol); text-decoration: none; padding-inline: 1px; }
.lf-cite { color: var(--petrol); }

/* In plain terms: the translation, set apart so a skimmer can read only these and still follow */
.lf-plain { background: var(--cream); border-left: 4px solid var(--petrol); padding: var(--space-4) var(--space-6); }
.lf-body .lf-plain { margin: calc(var(--space-6) * -1 + var(--space-4)) 0 var(--space-8); }
.lf-plain__k { display: block; margin-bottom: var(--space-1); font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--petrol); }

/* What we don't know: the honest limits, ruled off like a margin note */
.lf-unknown { margin-top: var(--space-16); border: 2px dashed var(--line); padding: var(--space-6) var(--space-6) var(--space-2); }
.lf-unknown h2 { margin-top: 0; font-size: clamp(22px, 2.2vw, 26px); }

/* exhibits */
.lf-exhibit { margin: var(--space-8) 0; }
.lf-exhibit img { width: 100%; height: auto; display: block; background: var(--cream); }
.lf-exhibit figcaption { margin-top: var(--space-3); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.lf-exhibit__k { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--charcoal); margin-right: var(--space-2); }

/* tables: rules, no fills */
.lf-body table { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-8); font-size: 15px; line-height: 1.45; }
.lf-body th { text-align: left; font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: 3px solid var(--charcoal); }
.lf-body td { padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 40%, transparent); vertical-align: top; }
@media (max-width: 599px) { .lf-body table { display: block; overflow-x: auto; } }

/* FAQ */
.lf-faq { margin-top: var(--space-16); }
.lf-faq h2, .lf-sources h2 { margin: 0 0 var(--space-6); font-size: clamp(22px, 2.2vw, 26px); line-height: 1.1; font-weight: 900; }
.lf-faq__i { border-top: 2px solid var(--charcoal); }
.lf-faq__i:last-child { border-bottom: 2px solid var(--charcoal); }
.lf-faq__i summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0; font-size: 18px; line-height: 26px; font-weight: 800; }
.lf-faq__i summary::-webkit-details-marker { display: none; }
.lf-faq__i summary::after { content: "+"; flex: none; font-weight: 400; font-size: 26px; line-height: 26px; }
.lf-faq__i[open] summary::after { content: "\2212"; }
.lf-faq__a { padding-bottom: var(--space-4); }
.lf-faq__a p { margin: 0 0 var(--space-3); font-size: 17px; line-height: 1.6; }

/* sources */
.lf-sources { margin-top: var(--space-16); padding-top: var(--space-6); border-top: 3px solid var(--charcoal); }
.lf-sources ol { margin: 0; padding-left: 1.4em; }
.lf-sources li { font-size: 14px; line-height: 20px; margin-bottom: var(--space-3); color: var(--ink-muted); scroll-margin-top: var(--space-8); }
.lf-sources li:target { color: var(--charcoal); background: var(--cream); }
.lf-src__pub { font-weight: 800; color: var(--charcoal); }
.lf-sources a { color: var(--petrol); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; word-break: break-word; }

/* the contents rail, desktop only */
.lf-aside { display: none; }
@media (min-width: 1040px) {
  .lf-aside { display: block; position: sticky; top: var(--space-8); }
}
.lf-aside__k { margin: 0 0 var(--space-3); font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.lf-toc { list-style: none; margin: 0 0 var(--space-6); padding: 0; border-left: 2px solid color-mix(in srgb, var(--line) 35%, transparent); }
.lf-toc a { display: block; padding: 6px 0 6px var(--space-4); margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; line-height: 19px; font-weight: 600; color: var(--ink-muted); text-decoration: none; }
.lf-toc a:hover { color: var(--charcoal); }
.lf-toc a.is-on { color: var(--charcoal); font-weight: 800; border-left-color: var(--charcoal); }
.lf-aside__go { width: 100%; justify-content: center; }

/* ---------- cards: related files ---------- */
.lf-related { background: var(--cream); color: var(--charcoal); padding-block: clamp(40px, 6vw, 72px); }
.lf-related__h { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.05; font-weight: 900; letter-spacing: -.015em; }
.lf-cards { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lf-card a { position: relative; display: flex; flex-direction: column; gap: var(--space-2); height: 100%; padding: var(--space-6); background: var(--bone); border: 2px solid var(--charcoal); color: var(--charcoal); text-decoration: none; transition: background-color .15s ease; }
.lf-related .lf-card a { background: var(--bone); }
.lf-card a:hover { background: var(--cream); }
.lf-card a:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; }
.lf-card__k { font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.lf-card__t { font-size: 20px; line-height: 1.15; font-weight: 900; letter-spacing: -.01em; text-wrap: balance; }
.lf-card__s { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.lf-card--crew a { padding-right: calc(var(--space-6) + 72px); }
.lf-card__crew { position: absolute; top: var(--space-6); right: var(--space-6); width: 56px; height: auto; }
.lf-card--tool a { border-width: 3px; }

/* ---------- the hub: the evidence room ----------
   The hub reads like the scenes on the home page: each section is its own ground and its own
   layout, so the page has a rhythm instead of one grid of identical boxes.
     header   petrol  the search, and a contents sheet set like the notice (bone, charcoal band)
     suspects bone    the line-up: the home page's height chart, drawn in charcoal on a light wall
     tools    cream   two panels, each drawn from its own tool's read out
     science  petrol  six numbered briefs, each with its finding up front
     cases    bone    a docket: numbered rows, the ruling on every row, filed by question
   Hivis stays on the price button below; nothing up here competes with it. */

/* ---- header ---- */
/* the search results drop over the sections below, so this header must not clip, and must sit
   above the next scene's own stacking layer */
.lf-head--hub { position: relative; z-index: 5; overflow: visible; padding-bottom: clamp(48px, 6vw, 96px); }
.lf-hh { display: grid; gap: var(--space-12); padding-top: clamp(24px, 4vw, 56px); }
@media (min-width: 1000px) {
  .lf-hh { grid-template-columns: minmax(0, 1fr) minmax(340px, 392px); column-gap: var(--space-16); align-items: end; }
}
.lf-hh__copy { min-width: 0; }
.lf-head--hub .lf-title { max-width: 15ch; font-size: clamp(40px, 5.6vw, 76px); line-height: .96; letter-spacing: -.035em; }
.lf-head--hub .lf-lede { max-width: 50ch; }

/* the search: instant results under the box; without script it is a box and the links below */
.lf-find { margin-top: var(--space-8); max-width: 600px; }
.lf-find__k { display: block; margin-bottom: var(--space-2); font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.lf-find__box { position: relative; }
.lf-find__in { width: 100%; font: inherit; font-size: 18px; line-height: 24px; font-weight: 600; padding: 16px 56px 16px 18px;
  border: 2px solid var(--bone); border-radius: 0; background: var(--petrol-deep); color: var(--bone); -webkit-appearance: none; appearance: none; }
.lf-find__in::placeholder { color: #8fb0ab; opacity: 1; }
.lf-find__in:focus { outline: 3px solid var(--hivis); outline-offset: 2px; }
.lf-find__in::-webkit-search-cancel-button { -webkit-appearance: none; }
.lf-find__kbd { position: absolute; right: 16px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 26px; height: 26px;
  border: 2px solid #8fb0ab; color: #c3d3d0; font: 800 13px/1 var(--font); pointer-events: none; }
.lf-find__in:focus ~ .lf-find__kbd, .lf-find__in:not(:placeholder-shown) ~ .lf-find__kbd { display: none; }
@media (hover: none), (max-width: 599px) { .lf-find__kbd { display: none; } .lf-find__in { padding-right: 18px; } }

.lf-hits { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: min(64vh, 540px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bone); color: var(--charcoal); border: 2px solid var(--charcoal); --ink: var(--charcoal); --ink-muted: #5e544a; }
.lf-hits[hidden] { display: none; }
.lf-hits__list { list-style: none; margin: 0; padding: 0; }
.lf-hit a { display: grid; gap: 3px; padding: 12px 16px 13px 14px; border-left: 4px solid transparent; color: var(--charcoal); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--charcoal) 13%, transparent); }
.lf-hit a:hover, .lf-hit a[aria-selected="true"] { background: var(--cream); border-left-color: var(--petrol); }
.lf-hit__k { font-size: 10px; line-height: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.lf-hit__t { font-size: 16px; line-height: 21px; font-weight: 800; }
.lf-hit__t mark { background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--petrol); text-underline-offset: 3px; }
.lf-hit__v { font-size: 14px; line-height: 19px; color: var(--ink-muted); }
.lf-hits__foot { margin: 0; padding: 10px 16px 12px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); }
.lf-hits__foot:empty { display: none; }
.lf-hits__foot a { color: var(--petrol); font-weight: 800; }

.lf-find__quick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-4) 0 0; }
.lf-find__qk { margin-right: var(--space-2); font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.lf-find__quick a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border: 2px solid rgba(250, 246, 238, .3);
  color: var(--bone); font-size: 14px; line-height: 18px; font-weight: 700; text-decoration: none; transition: border-color .15s ease; }
.lf-find__quick a:hover { border-color: var(--bone); }
.lf-find__quick a:focus-visible { outline: 3px solid var(--hivis); outline-offset: 2px; }
/* on a phone the quick links are one strip you swipe, not three rows of buttons */
@media (max-width: 599px) {
  .lf-find__quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--space-4) * -1); padding: 2px var(--space-4); }
  .lf-find__quick::-webkit-scrollbar { display: none; }
  .lf-find__quick a { flex: none; white-space: nowrap; }
  .lf-find__qk { flex: none; }
}

/* the contents sheet: a form, the way the notice is a form */
.lf-ix { background: var(--bone); color: var(--charcoal); --ink: var(--charcoal); --ink-muted: #5e544a; }
.lf-ix__k { display: flex; justify-content: space-between; margin: 0; padding: 11px 20px; background: var(--charcoal); color: var(--bone);
  font-size: 13px; line-height: 18px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-stretch: 75%; }
.lf-ix__k span + span { color: #c3d3d0; }
.lf-ix__list { list-style: none; margin: 0; padding: 0 20px; }
.lf-ix__list li + li { border-top: 1px solid color-mix(in srgb, var(--charcoal) 16%, transparent); }
.lf-ix__list a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: var(--space-3); align-items: center; padding: 13px 0; color: var(--charcoal); text-decoration: none; }
.lf-ix__no { font-size: 13px; line-height: 1; font-weight: 800; letter-spacing: .06em; font-stretch: 75%; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.lf-ix__t { min-width: 0; }
.lf-ix__t b { display: block; font-size: 17px; line-height: 22px; font-weight: 900; letter-spacing: -.005em; }
.lf-ix__t span { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.lf-ix__c { display: grid; justify-items: end; gap: 3px; }
.lf-ix__c b { font-size: 26px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.lf-ix__c span { font-size: 10px; line-height: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.lf-ix__list a:hover .lf-ix__t b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lf-ix__list a:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; }
@media (max-width: 599px) {
  .lf-ix__k { padding-inline: 16px; }
  .lf-ix__list { padding-inline: 16px; }
  .lf-ix__list a { grid-template-columns: 26px minmax(0, 1fr) auto; padding: 11px 0; }
  .lf-ix__t b { font-size: 16px; line-height: 20px; }
  .lf-ix__c { display: flex; align-items: baseline; gap: 5px; }
  .lf-ix__c b { font-size: 20px; }
  .lf-ix__foot { padding-inline: 16px; }
}
.lf-ix__foot { margin: 0; padding: 12px 20px 14px; border-top: 2px solid var(--charcoal); font-size: 12px; line-height: 17px; font-weight: 700; color: var(--ink-muted); }

/* ---- the bands ---- */
.lf-band { padding-block: clamp(64px, 8.5vw, 120px); scroll-margin-top: 0; }
.lf-band--bone { background: var(--bone); color: var(--charcoal); }
.lf-band--cream { background: var(--cream); color: var(--charcoal); }
.lf-band--petrol { background: var(--petrol); }
.lf-band__head { max-width: 760px; }
.lf-band__k { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.lf-band__no { display: inline-grid; place-items: center; min-width: 32px; height: 22px; padding: 0 5px; border: 2px solid currentColor; font-size: 12px; letter-spacing: .06em; font-stretch: 75%; font-variant-numeric: tabular-nums; }
.lf-band__h { margin: var(--space-4) 0 0; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; font-weight: 900; letter-spacing: -.03em; text-wrap: balance; }
.lf-band__s { margin: var(--space-4) 0 0; max-width: 54ch; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: var(--ink-muted); text-wrap: pretty; }
.lf-band__more { display: inline-block; margin-top: var(--space-4); font-size: 15px; line-height: 20px; font-weight: 800; color: var(--charcoal);
  text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--petrol); text-underline-offset: 4px; }
.lf-band__more:hover { text-decoration-color: var(--charcoal); }

/* ---- the suspects: the line-up ---- */
/* Same construction as the home page's .ug-wall: the scale is a rule COUNT, the rules are painted
   every --rule-gap up from the floor, and each number sits on its own rule. Here it is drawn in
   charcoal on a light wall, the way a real line-up wall is, and each suspect stands over its files. */
.lf-line {
  --crew-h: clamp(92px, 9.6vw, 140px);
  --rule-gap: 34px; --rules: 5; --floor: 4px;
  --wall-h: calc(var(--rules) * var(--rule-gap) + var(--floor) + 22px);
  position: relative; margin-top: clamp(40px, 5vw, 64px);
}
.lf-line::before {
  content: ''; position: absolute; left: 0; right: 0; pointer-events: none;
  top: calc(var(--wall-h) - var(--floor) - var(--rules) * var(--rule-gap)); height: calc(var(--rules) * var(--rule-gap));
  background: repeating-linear-gradient(to top, transparent 0 calc(var(--rule-gap) - 1px),
    color-mix(in srgb, var(--charcoal) 22%, transparent) calc(var(--rule-gap) - 1px) var(--rule-gap));
}
.lf-line::after { content: ''; position: absolute; left: 0; right: 0; top: calc(var(--wall-h) - var(--floor)); height: var(--floor); background: var(--charcoal); }
.lf-line__scale { position: absolute; left: 0; top: 0; width: 0; height: calc(var(--wall-h) - var(--floor));
  font-size: 10px; font-weight: 900; letter-spacing: .12em; color: color-mix(in srgb, var(--charcoal) 52%, transparent); }
.lf-line__scale span { position: absolute; left: 0; line-height: 1; translate: 0 -4px; }
.lf-line__scale span:nth-child(1) { bottom: calc(5 * var(--rule-gap)); }
.lf-line__scale span:nth-child(2) { bottom: calc(4 * var(--rule-gap)); }
.lf-line__scale span:nth-child(3) { bottom: calc(3 * var(--rule-gap)); }
.lf-line__scale span:nth-child(4) { bottom: calc(2 * var(--rule-gap)); }
.lf-line__scale span:nth-child(5) { bottom: calc(1 * var(--rule-gap)); }

.lf-line__row { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-6);
  grid-template-rows: var(--wall-h) auto auto auto 1fr; }
.lf-sus { grid-row: span 5; display: grid; grid-template-rows: subgrid; min-width: 0; }
.lf-sus__info { display: contents; }
/* he floats a clear gap above the floor: 8% of his height, as on the home page */
.lf-sus__fig { align-self: end; justify-self: center; display: block; padding-bottom: calc(var(--floor) + var(--crew-h) * .08); }
.lf-sus__fig img { height: var(--crew-h); width: auto; max-width: 100%; transition: translate .28s cubic-bezier(.2, .9, .3, 1), opacity .2s ease; }
.lf-sus__fig:focus-visible { outline: 3px solid var(--petrol); outline-offset: 4px; }
.lf-sus__plate { display: block; margin-top: var(--space-6); padding: 7px 14px; font-size: 12px; line-height: 16px; text-align: center; }
.lf-sus__tag { display: block; margin-top: var(--space-4); font-size: 10px; line-height: 14px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; text-align: center; color: var(--ink-muted); }
.lf-sus__look { margin: var(--space-2) auto 0; max-width: 24ch; font-size: 15px; line-height: 1.45; text-align: center; color: var(--ink-muted); text-wrap: balance; }
.lf-sus__files { list-style: none; margin: var(--space-6) 0 0; padding: 0; align-self: start; border-bottom: 2px solid var(--charcoal); }
.lf-sus__files a { display: grid; gap: 4px; padding: 14px 4px 15px; border-top: 2px solid var(--charcoal); color: var(--charcoal); text-decoration: none; text-align: center; }
.lf-sus__t { font-size: 16px; line-height: 1.3; font-weight: 800; text-wrap: pretty; }
.lf-sus__m { font-size: 10px; line-height: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.lf-sus__files a:hover .lf-sus__t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lf-sus__files a:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; }
/* point at one suspect and the other three step back */
@media (hover: hover) and (min-width: 860px) {
  .lf-line__row:has(.lf-sus:hover) .lf-sus:not(:hover) .lf-sus__fig img { opacity: .26; }
  .lf-sus:hover .lf-sus__fig img { translate: 0 -8px; }
}
@media (prefers-reduced-motion: reduce) { .lf-sus__fig img { transition: none; } }

/* The phone gets the same wall, fitted: four on one floor, and under it each suspect as a
   row of the list, named by its plate. Same idea as the home page, one screen not four. */
@media (max-width: 859px) {
  .lf-line { --crew-h: clamp(54px, 18vw, 96px); --rule-gap: 24px; --rules: 4; padding-left: 28px; }
  .lf-line__scale { font-size: 9px; }
  .lf-line__scale span:nth-child(1) { display: none; }
  .lf-line__row { column-gap: var(--space-2); grid-template-rows: var(--wall-h); grid-auto-rows: auto; }
  .lf-sus { display: contents; }
  .lf-sus:nth-child(1) .lf-sus__fig { grid-column: 1; }
  .lf-sus:nth-child(2) .lf-sus__fig { grid-column: 2; }
  .lf-sus:nth-child(3) .lf-sus__fig { grid-column: 3; }
  .lf-sus:nth-child(4) .lf-sus__fig { grid-column: 4; }
  .lf-sus__fig { grid-row: 1; }
  .lf-sus__info { display: grid; grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-3); align-items: center;
    padding-top: var(--space-8); margin-left: -28px; }
  .lf-sus:nth-child(1) .lf-sus__info { padding-top: var(--space-6); }
  .lf-sus__plate { margin: 0; padding: 5px 12px; font-size: 11px; }
  .lf-sus__tag { margin: 0; text-align: left; }
  .lf-sus__look { grid-column: 1 / -1; margin: var(--space-3) 0 0; max-width: none; text-align: left; font-size: 16px; color: var(--charcoal); }
  .lf-sus__files { grid-column: 1 / -1; margin-top: var(--space-4); }
  .lf-sus__files a { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: var(--space-4); padding: 12px 0 13px; border-top-width: 1px; text-align: left; }
  .lf-sus__mk { display: none; }
  .lf-sus__files li:first-child a { border-top-width: 2px; }
  .lf-sus__files { border-bottom-width: 1px; }
}

/* the lookalikes: evidence tags, a stub with a punched hole and a perforation */
.lf-alike { margin-top: clamp(56px, 7vw, 96px); padding-top: var(--space-8); border-top: 3px solid var(--charcoal); display: grid; gap: var(--space-6); }
@media (min-width: 960px) { .lf-alike { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--space-12); align-items: start; } }
.lf-alike__k { margin: 0; font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.lf-alike__h { margin: var(--space-3) 0 0; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.08; font-weight: 900; letter-spacing: -.015em; }
.lf-alike__s { margin: var(--space-3) 0 0; max-width: 36ch; font-size: 16px; line-height: 1.5; color: var(--ink-muted); }
.lf-alike__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .lf-alike__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lf-exh a { display: grid; grid-template-columns: 48px minmax(0, 1fr); height: 100%; background: var(--cream); color: var(--charcoal);
  border: 2px solid var(--charcoal); text-decoration: none; transition: background-color .15s ease; }
.lf-exh a:hover { background: #ecdfca; }
.lf-exh a:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; }
.lf-exh__stub { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); padding: 16px 0; border-right: 2px dashed var(--charcoal); }
.lf-exh__stub i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--charcoal); background: var(--bone); }
.lf-exh__stub span { writing-mode: vertical-rl; rotate: 180deg; font-size: 12px; line-height: 1; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; font-stretch: 75%; }
.lf-exh__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 20px 18px; }
.lf-exh__name { font-size: 24px; line-height: 1; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; font-stretch: 75%; }
.lf-exh__t { margin-top: 4px; font-size: 16px; line-height: 1.3; font-weight: 800; }
.lf-exh__s { font-size: 14px; line-height: 1.45; color: var(--ink-muted); }
.lf-exh__m { margin-top: auto; padding-top: var(--space-2); font-size: 10px; line-height: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.lf-exh a:hover .lf-exh__t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---- tools: two panels, unlike each other on purpose ---- */
.lf-kits { list-style: none; margin: clamp(40px, 5vw, 56px) 0 0; padding: 0; display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .lf-kits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lf-kit a { display: flex; flex-direction: column; height: 100%; padding: clamp(24px, 3.2vw, 44px); border: 3px solid var(--charcoal); text-decoration: none; }
.lf-kit a:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; }
.lf-kit--roof-report a { background: var(--petrol); border-color: var(--petrol); color: var(--bone); --ink-muted: #c3d3d0; }
.lf-kit--when-will-it-clear a { background: var(--bone); color: var(--charcoal); --ink-muted: #5e544a; }
.lf-kit__k { font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.lf-kit__t { margin-top: var(--space-3); font-size: clamp(32px, 3.4vw, 46px); line-height: 1; font-weight: 900; letter-spacing: -.03em; }
.lf-kit__s { margin-top: var(--space-3); max-width: 40ch; font-size: 16px; line-height: 1.5; color: var(--ink-muted); }
.lf-kit__art { display: grid; gap: 10px; margin: var(--space-8) 0; }
.lf-kit__key { display: flex; align-items: center; gap: var(--space-3); margin-top: 6px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--ink-muted); }
.lf-kit__key b { font-weight: 900; color: inherit; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.lf-kit__go { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: var(--space-3); min-height: 52px; padding: 12px 22px;
  border: 2px solid currentColor; font-size: 17px; line-height: 1; font-weight: 900; transition: gap .2s ease; }
.lf-kit a:hover .lf-kit__go { gap: var(--space-4); }
.lf-kit--roof-report a:hover .lf-kit__go { background: var(--bone); color: var(--petrol); border-color: var(--bone); }
.lf-kit--when-will-it-clear a:hover .lf-kit__go { background: var(--charcoal); color: var(--bone); border-color: var(--charcoal); }

/* Roof Report: the faces, from most sun to least, in the tool's own five step scale */
.lf-face { display: grid; grid-template-columns: 6.6em minmax(0, 1fr); align-items: center; column-gap: var(--space-3); font-size: 13px; line-height: 16px; font-weight: 700; color: var(--ink-muted); }
.lf-face__bar { position: relative; display: flex; align-items: center; height: 18px; background: var(--petrol-deep); }
.lf-face__bar i { display: block; height: 100%; width: var(--w); }
.lf-face__bar em { margin-left: var(--space-3); font-style: normal; font-size: 10px; line-height: 1; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--bone); white-space: nowrap; }
.lf-face__bar i.s5 { background: var(--bone); }
.lf-face__bar i.s4 { background: #a9c4c1; }
.lf-face__bar i.s3 { background: #4f8a88; }
.lf-kit__scale { display: flex; width: 110px; height: 10px; border: 2px solid var(--bone); }
.lf-kit__scale i { flex: 1; }
.lf-kit__scale i:nth-child(1) { background: #0a2428; }
.lf-kit__scale i:nth-child(2) { background: #1c4b50; }
.lf-kit__scale i:nth-child(3) { background: #4f8a88; }
.lf-kit__scale i:nth-child(4) { background: #a9c4c1; }
.lf-kit__scale i:nth-child(5) { background: #faf6ee; }

/* When will it clear: eighteen months, the leave by window shaded, the check at twelve */
.lf-months { position: relative; display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); gap: 3px; height: 60px; margin-top: 30px; }
.lf-months i { background: var(--cream); }
.lf-months i.is-on { background: var(--petrol); }
.lf-months i.is-check { background: var(--charcoal); }
/* centred on month 12: eleven cells and their gaps, then half a cell */
.lf-months__flag { position: absolute; bottom: calc(100% + 6px); left: calc((100% - 51px) / 18 * 11.5 + 33px); translate: -50% 0; padding: 3px 7px; background: var(--charcoal); color: var(--bone);
  font-size: 10px; line-height: 14px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.lf-months__flag::after { content: ''; position: absolute; left: 50%; top: 100%; width: 2px; margin-left: -1px; height: 6px; background: var(--charcoal); }
.lf-months__k { display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); gap: 3px; font-size: 11px; line-height: 14px; font-weight: 800; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.lf-months__k span { justify-self: center; white-space: nowrap; }
.lf-months__cap { display: block; margin-top: 2px; font-size: 10px; line-height: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); text-align: center; }

/* ---- the science: six numbered briefs ---- */
.lf-briefs { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; column-gap: var(--space-8); }
@media (min-width: 720px) { .lf-briefs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .lf-briefs { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-12); } }
@media (min-width: 720px) { .lf-brief { display: grid; grid-row: span 4; grid-template-rows: subgrid; } .lf-briefs { grid-auto-rows: auto; } }
.lf-brief { border-top: 2px solid rgba(250, 246, 238, .26); }
.lf-brief a { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "n k" "t t" "f f" "m m"; align-content: start; column-gap: var(--space-4);
  padding: var(--space-6) 0 var(--space-12); color: var(--bone); text-decoration: none; }
@media (min-width: 720px) { .lf-brief a { grid-row: span 4; grid-template-rows: subgrid; } }
.lf-brief__n { grid-area: n; font-size: clamp(64px, 6.4vw, 92px); line-height: .8; font-weight: 900; letter-spacing: -.04em; font-stretch: 75%;
  color: var(--bone); font-variant-numeric: tabular-nums; }
.lf-brief__k { grid-area: k; justify-self: end; align-self: start; padding: 3px 8px; border: 2px solid rgba(250, 246, 238, .4);
  font-size: 10px; line-height: 14px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #c3d3d0; }
.lf-brief__t { grid-area: t; margin-top: var(--space-6); font-size: clamp(21px, 1.9vw, 24px); line-height: 1.15; font-weight: 900; letter-spacing: -.015em; text-wrap: balance; }
.lf-brief__f { grid-area: f; margin-top: var(--space-3); padding-left: var(--space-3); border-left: 3px solid #8fb0ab; font-size: 16px; line-height: 1.45; font-weight: 600; color: #c3d3d0; text-wrap: pretty; }
.lf-brief__m { grid-area: m; margin-top: var(--space-6); font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #c3d3d0; }
.lf-brief a:hover .lf-brief__n, .lf-brief a:focus-visible .lf-brief__n { color: #c3d3d0; }
.lf-brief a:hover .lf-brief__t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lf-brief a:focus-visible { outline: 3px solid var(--hivis); outline-offset: 4px; }
/* On a phone the six briefs are one strip you swipe through, the next one always showing at
   the edge, so the science is one screen high rather than six. */
.lf-briefs__hint { display: none; }
@media (max-width: 719px) {
  .lf-briefs__hint { display: block; margin: var(--space-8) 0 0; font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #c3d3d0; }
  .lf-briefs { display: flex; gap: var(--space-3); margin: var(--space-3) calc(var(--space-4) * -1) 0; padding: 0 var(--space-4) var(--space-2);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--space-4); scrollbar-width: none; overscroll-behavior-x: contain; }
  .lf-briefs::-webkit-scrollbar { display: none; }
  .lf-brief { flex: 0 0 min(84%, 330px); scroll-snap-align: start; border: 2px solid rgba(250, 246, 238, .3); }
  .lf-brief a { height: 100%; grid-template-rows: auto auto 1fr auto; padding: var(--space-6) var(--space-6) var(--space-6) 22px; }
  .lf-brief__n { font-size: 56px; }
  .lf-brief__t { margin-top: var(--space-6); font-size: 20px; }
  .lf-brief__f { align-self: start; }
}

/* ---- the cases: the docket ---- */
.lf-dock { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: var(--space-8); }
@media (min-width: 1000px) { .lf-dock { grid-template-columns: 300px minmax(0, 1fr); column-gap: var(--space-12); align-items: start; } }
.lf-dock__tabs { display: flex; flex-direction: column; border-top: 3px solid var(--charcoal); }
@media (min-width: 1000px) { .lf-dock__tabs { position: sticky; top: var(--space-6); } }
.lf-dock__tab { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 13px 12px 13px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--charcoal) 18%, transparent); color: var(--charcoal); text-decoration: none;
  font-size: 16px; line-height: 20px; font-weight: 800; transition: background-color .15s ease; }
.lf-dock__tab b { display: grid; place-items: center; min-width: 30px; height: 24px; padding: 0 4px; border: 2px solid currentColor; font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; }
.lf-dock__tab:hover { background: var(--cream); }
.lf-dock__tab:focus-visible { outline: 3px solid var(--petrol); outline-offset: -3px; }
.lf-dock__tab[aria-selected="true"] { background: var(--charcoal); color: var(--bone); }
.lf-dock__tab--all { color: var(--ink-muted); }
/* without script the tabs are jump links and every panel shows, so "All cases" adds nothing */
.lf-dock:not(.is-tabbed) .lf-dock__tab--all { display: none; }
@media (max-width: 999px) {
  .lf-dock { gap: var(--space-6); }
  .lf-dock__tabs { flex-direction: row; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; border-top: 0;
    margin-inline: calc(var(--space-4) * -1); padding: 2px var(--space-4); scroll-padding-inline: var(--space-4); }
  .lf-dock__tabs::-webkit-scrollbar { display: none; }
  .lf-dock__tab { flex: none; gap: var(--space-2); padding: 8px 8px 8px 12px; border: 2px solid var(--charcoal); font-size: 14px; line-height: 18px; white-space: nowrap; }
  .lf-dock__tab b { min-width: 24px; height: 20px; border-width: 0; background: color-mix(in srgb, var(--charcoal) 10%, transparent); font-size: 11px; }
  .lf-dock__tab[aria-selected="true"] b { background: rgba(250, 246, 238, .16); }
  .lf-dock__tab--all { color: var(--charcoal); }
  /* the chosen tab already names the panel, so on a phone its heading is for screen readers only */
  .lf-dock.is-tabbed:not(.is-all) .lf-dock__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.lf-dock__list { min-width: 0; }
.lf-dock__panel { scroll-margin-top: var(--space-6); }
.lf-dock__panel + .lf-dock__panel { margin-top: var(--space-12); }
.lf-dock.is-tabbed .lf-dock__panel + .lf-dock__panel { margin-top: 0; }
.lf-dock.is-tabbed.is-all .lf-dock__panel + .lf-dock__panel { margin-top: var(--space-12); }
.lf-dock__panel[hidden] { display: none; }
.lf-dock__h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); margin: 0 0 var(--space-3); font-size: clamp(20px, 2vw, 24px); line-height: 1.15; font-weight: 900; letter-spacing: -.01em; }
.lf-dock__h span { flex: none; font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.lf-rows { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--charcoal); }
.lf-row a { display: grid; grid-template-columns: 64px minmax(0, 1fr) 56px; grid-template-areas: "n t m" "n v m"; column-gap: var(--space-4); row-gap: 5px;
  padding: 16px 12px 17px; border-bottom: 1px solid color-mix(in srgb, var(--charcoal) 18%, transparent); color: var(--charcoal); text-decoration: none; transition: background-color .15s ease; }
.lf-row a:hover { background: var(--cream); }
.lf-row a:focus-visible { outline: 3px solid var(--petrol); outline-offset: -3px; }
.lf-row__n { grid-area: n; padding-top: 4px; font-size: 13px; line-height: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-stretch: 75%; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.lf-row__t { grid-area: t; font-size: 18px; line-height: 1.3; font-weight: 800; letter-spacing: -.005em; text-wrap: pretty; }
.lf-row__v { grid-area: v; font-size: 15px; line-height: 1.45; color: var(--ink-muted); text-wrap: pretty; }
.lf-row__v b { margin-right: 6px; padding: 1px 5px; background: var(--charcoal); color: var(--bone); font-size: 9px; line-height: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; vertical-align: 2px; }
.lf-row__m { grid-area: m; justify-self: end; padding-top: 4px; font-size: 13px; line-height: 16px; font-weight: 700; color: var(--ink-muted); white-space: nowrap; }
.lf-row a:hover .lf-row__t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 599px) {
  .lf-row a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n m" "t t" "v v"; row-gap: 6px; padding: 14px 0 16px; }
  .lf-row__n, .lf-row__m { padding-top: 0; font-size: 12px; }
  .lf-row__t { font-size: 17px; }
}

/* definitions, as the last line of the register */
.lf-defs-link { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k go" "t go" "s go";
  column-gap: var(--space-8); row-gap: 4px; align-items: center; padding: var(--space-6) var(--space-8); border: 3px solid var(--charcoal); color: var(--charcoal); text-decoration: none; transition: background-color .15s ease; }
.lf-defs-link:hover { background: var(--cream); }
.lf-defs-link:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; }
.lf-defs-link__k { grid-area: k; font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.lf-defs-link__t { grid-area: t; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.05; font-weight: 900; letter-spacing: -.02em; }
.lf-defs-link__s { grid-area: s; font-size: 15px; line-height: 1.45; color: var(--ink-muted); }
.lf-defs-link__go { grid-area: go; font-size: 15px; font-weight: 900; white-space: nowrap; }
@media (max-width: 599px) {
  .lf-defs-link { grid-template-columns: 1fr; grid-template-areas: "k" "t" "s" "go"; padding: var(--space-6); }
  .lf-defs-link__go { margin-top: var(--space-3); }
}

/* ---------- definitions ---------- */
.lf-az { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.lf-az a { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--charcoal); font-weight: 800; color: var(--charcoal); text-decoration: none; }
.lf-az a:hover { background: var(--cream); }
.lf-defs { margin: 0; max-width: 760px; }
.lf-defs__l { display: block; margin: var(--space-12) 0 var(--space-4); font-size: 34px; line-height: 1; font-weight: 900; scroll-margin-top: var(--space-6); }
.lf-def { padding: var(--space-6) 0; border-top: 2px solid var(--charcoal); scroll-margin-top: var(--space-6); }
.lf-def:target { background: var(--cream); outline: var(--space-4) solid var(--cream); }
.lf-def dt { font-size: 22px; line-height: 1.15; font-weight: 900; }
.lf-def dd { margin: var(--space-3) 0 0; }
.lf-def dd p { margin: 0 0 var(--space-3); font-size: 17px; line-height: 1.6; }
.lf-def__see { font-size: 15px !important; color: var(--ink-muted); }
.lf-def__see a { color: var(--petrol); font-weight: 700; }

/* ---------- tools ---------- */
.lf-head--tool .lf-title { max-width: 18ch; }
.lf-main--tool { padding-top: clamp(32px, 5vw, 64px); }
.lf-faq--tool { max-width: 720px; }

/* ---------- Roof Report ---------- */
.rr-find { margin-top: var(--space-8); max-width: 640px; }
.rr-find__k { display: block; margin-bottom: var(--space-2); font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.rr-find__row { position: relative; display: flex; gap: var(--space-3); }
.rr-find__in { flex: 1; min-width: 0; font: inherit; font-size: 18px; line-height: 24px; font-weight: 600; padding: 14px 16px; border: 2px solid var(--bone); border-radius: 0; background: var(--petrol-deep); color: var(--bone); }
.rr-find__in::placeholder { color: var(--ink-muted); }
.rr-find__in:focus { outline: 3px solid var(--hivis); outline-offset: 2px; }
.rr-find__go { flex: none; }
.rr-find__go[disabled] { opacity: .6; }
.rr-find__msg { margin: var(--space-3) 0 0; min-height: 20px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--bone); }
@media (max-width: 599px) {
  .rr-find__row { flex-direction: column; }
  .rr-find__go { width: 100%; justify-content: center; }
  .rr-ac { top: calc(56px + 4px); }
}

.rr-out { margin-bottom: var(--space-16); }
.rr-grid { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 960px) { .rr-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); } }

.rr-map { margin: 0; }
.rr-map__frame { position: relative; aspect-ratio: 1; background: var(--charcoal); border: 3px solid var(--charcoal); overflow: hidden; }
.rr-map__frame img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.rr-map__frame img.is-in { opacity: 1; }
.rr-map__n { position: absolute; top: var(--space-3); left: var(--space-3); display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--bone); color: var(--bone); font-size: 13px; font-weight: 900; }
.rr-map__wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--bone); font-weight: 700; }
.rr-map__wait[hidden] { display: none; }
.rr-map figcaption { margin-top: var(--space-3); }
/* stepped, not a gradient: the brand has none. The five steps are the five stops the image uses. */
.rr-scale { display: flex; height: 12px; border: 2px solid var(--charcoal); }
.rr-scale i { flex: 1; }
.rr-scale i:nth-child(1) { background: #0a2428; }
.rr-scale i:nth-child(2) { background: #1c4b50; }
.rr-scale i:nth-child(3) { background: #4f8a88; }
.rr-scale i:nth-child(4) { background: #a9c4c1; }
.rr-scale i:nth-child(5) { background: #faf6ee; }
.rr-scale__k { display: flex; justify-content: space-between; margin-top: var(--space-2); font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.rr-map__note { display: block; margin-top: var(--space-3); font-size: 13px; line-height: 18px; color: var(--ink-muted); }

.rr-read { min-width: 0; }
.rr-finding .lf-ruling__t { font-size: clamp(18px, 1.6vw, 20px); }
.rr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin: var(--space-6) 0 0; }
.rr-stats > div { border-top: 3px solid var(--charcoal); padding-top: var(--space-3); }
.rr-stats dt { font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.rr-stats dd { margin: var(--space-2) 0 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.2; font-weight: 900; }
.rr-h { margin: var(--space-12) 0 var(--space-3); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; font-weight: 900; letter-spacing: -.01em; }
.rr-sub { margin: 0 0 var(--space-4); font-size: 16px; line-height: 1.55; color: var(--ink-muted); }
.rr-sub a { color: var(--petrol); font-weight: 700; }

.rr-faces { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--charcoal); }
.rr-faces li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 4.5em; grid-template-areas: "d m s" "b b b"; gap: 4px var(--space-3); align-items: baseline; padding: var(--space-3) 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 35%, transparent); }
.rr-face__d { grid-area: d; font-weight: 900; font-size: 16px; }
.rr-face__m { grid-area: m; font-size: 14px; color: var(--ink-muted); }
.rr-face__s { grid-area: s; text-align: right; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rr-face__bar { grid-area: b; height: 8px; background: var(--cream); }
.rr-face__bar i { display: block; height: 100%; width: var(--w); background: #a9c4c1; }
.rr-faces li.is-shady .rr-face__bar i { background: var(--petrol-deep); }

.rr-rain { display: flex; align-items: flex-end; gap: 4px; height: 96px; padding-bottom: 2px; border-bottom: 2px solid var(--charcoal); }
.rr-rain span { flex: 1; height: var(--h); min-height: 2px; background: #a9c4c1; }
.rr-rain span.is-wet { background: var(--petrol); }
.rr-rain__k { display: flex; justify-content: space-between; margin: var(--space-2) 0 0; font-size: 12px; font-weight: 700; color: var(--ink-muted); }

.rr-next { margin-top: var(--space-4); }
.rr-price { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin: var(--space-8) 0 0; font-size: 15px; font-weight: 600; color: var(--ink-muted); }

.rr-how { padding: var(--space-8) 0 0; border-top: 3px solid var(--charcoal); }
.rr-how__in { max-width: 720px; }
.rr-how__in .rr-h { margin-top: 0; }
.rr-how__in > p { margin: 0 0 var(--space-6); font-size: 18px; line-height: 1.65; }
.rr-how__in .lf-plain { margin-top: calc(var(--space-6) * -1 + var(--space-4)); }
.rr-how__list { margin: 0; padding-left: 1.2em; }
.rr-how__list li { font-size: 17px; line-height: 1.6; margin-bottom: var(--space-2); }

/* ---------- When will it clear? ---------- */
.wc-ask { margin-top: var(--space-8); display: grid; gap: var(--space-6); max-width: 760px; }
.wc-q { margin: 0; padding: 0; border: 0; min-width: 0; }
.wc-q__k { display: block; margin-bottom: var(--space-2); padding: 0; font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.wc-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.wc-chips label { position: relative; cursor: pointer; }
.wc-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wc-chips span { display: inline-block; padding: 10px 16px; border: 2px solid var(--bone); color: var(--bone); font-size: 15px; line-height: 20px; font-weight: 700; }
.wc-chips input:checked + span { background: var(--bone); color: var(--petrol-deep); }
.wc-chips input:focus-visible + span { outline: 3px solid var(--hivis); outline-offset: 2px; }
.wc-row { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.wc-sel select { width: 100%; font: inherit; font-size: 17px; font-weight: 700; padding: 12px 14px; border: 2px solid var(--bone); border-radius: 0; background: var(--petrol-deep); color: var(--bone); }
.wc-sel select:focus { outline: 3px solid var(--hivis); outline-offset: 2px; }

.wc-out { max-width: 960px; margin-bottom: var(--space-16); }
.wc-sum .lf-ruling__t { font-size: clamp(17px, 1.6vw, 20px); }

.wc-chart { display: grid; grid-template-columns: repeat(19, minmax(0, 1fr)); gap: 3px; align-items: end; height: 190px; padding-top: 40px; border-bottom: 2px solid var(--charcoal); }
.wc-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.wc-col__bar { display: block; height: var(--h); min-height: 2px; background: #a9c4c1; }
.wc-col.is-wet .wc-col__bar { background: var(--petrol); }
.wc-col__m { position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px; text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-muted); }
.wc-col.is-mile::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed var(--charcoal); }
.wc-col__flag { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--charcoal); color: var(--bone); padding: 3px 6px; }
.wc-col:first-child .wc-col__flag { left: 0; transform: none; }
.wc-col:last-child .wc-col__flag { left: auto; right: 0; transform: none; }
@media (max-width: 719px) {
  .wc-chart { gap: 2px; height: 150px; padding-top: 8px; }
  .wc-col__m { font-size: 9px; writing-mode: vertical-rl; transform: rotate(180deg); margin-top: 4px; height: 26px; }
  .wc-col__flag { display: none; }
}

.wc-steps { list-style: none; margin: var(--space-16) 0 0; padding: 0; border-top: 3px solid var(--charcoal); }
.wc-steps li { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 4px var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 35%, transparent); }
.wc-step__k { grid-row: span 2; font-size: 11px; line-height: 22px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.wc-steps b { font-size: 18px; line-height: 22px; font-weight: 900; }
.wc-steps p { margin: 0; font-size: 16px; line-height: 1.55; }
@media (max-width: 599px) { .wc-steps li { grid-template-columns: 1fr; } .wc-step__k { grid-row: auto; } }

.wc-best { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; align-items: end; height: 110px; border-bottom: 2px solid var(--charcoal); }
.wc-best span { display: block; height: var(--h); background: #a9c4c1; }
.wc-best span.is-you { background: var(--charcoal); }
.wc-best__k { display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; text-align: center; }
.wc-note { margin: var(--space-6) 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-muted); max-width: 64ch; }

/* ---------- Roof Report: address list, pin, and the report's layout ---------- */
/* The tool header must not clip: the address suggestions and the pin map hang below the fold of
   the header's own box. And the list sets its own colours: inside a petrol scene --ground stays
   bone while --ink turns bone, which made the suggestions bone on bone. */
.lf-head--tool { overflow: visible; z-index: 5; }
.rr-ac { background: var(--bone); color: var(--charcoal); border-color: var(--charcoal); z-index: 60; }
.rr-ac li[aria-selected="true"], .rr-ac li:hover { background: var(--cream); }

.rr-pin { margin-top: var(--space-6); max-width: 760px; }
.rr-pin[hidden] { display: none; }
.rr-pin__k { margin: 0 0 var(--space-3); font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.rr-pin__map { height: clamp(280px, 46vh, 440px); border: 3px solid var(--bone); background: var(--petrol-deep); }
.rr-pin__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-4); }
.rr-pin__say { margin: 0; flex: 1 1 260px; font-size: 16px; line-height: 1.45; font-weight: 600; color: var(--bone); }
.rr-pin__go[disabled] { opacity: .6; }
.rr-find__go[hidden] { display: none; }
@media (max-width: 599px) { .rr-pin__go { width: 100%; justify-content: center; } }

.rr-for { margin: 0 0 var(--space-6); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; font-weight: 900; }
.rr-for__k { display: block; margin-bottom: var(--space-2); font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.rr-far { margin: calc(var(--space-2) * -1) 0 var(--space-6); padding: var(--space-3) var(--space-4); border-left: 4px solid var(--charcoal); background: var(--cream); font-size: 15px; line-height: 1.5; }
.rr-far[hidden] { display: none; }
.rr-far a { color: var(--petrol); font-weight: 800; }
/* the map and the rain share the left column, the finding and the faces the right, so neither
   column runs long against an empty one */
.rr-left { min-width: 0; }
.rr-h--rain { margin-top: var(--space-8); }
.rr-more { margin-top: var(--space-3); font: inherit; font-size: 15px; font-weight: 800; color: var(--petrol); background: none; border: 0; padding: var(--space-2) 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rr-more[hidden] { display: none; }
.rr-faces li[hidden] { display: none; }

/* the index sheet is a desktop table of contents; on a phone it would fill the first screen before a
   single answer, so the phone gets the one-line count instead (judged 15 Oct 2026) */
.lf-hh__stats { display: none; margin: var(--space-6) 0 0; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink-muted); }
@media (max-width: 899px) { .lf-ix { display: none; } .lf-hh__stats { display: block; } }
