/* ═══════════════════════════════════════════
   /driver-licence-checking, v3 design (30 Oct 2026)
   Replaces the page's inline <style> block. The body
   (app/_legacy-html/driver-licence-checking-body.html) keeps .article, so
   every rule here is scoped to .article.dlc-page to beat site.css's
   .article rules without !important. Ids, data-mode / data-price, the
   form's field names and every class the inline script or site.js reads
   are unchanged; only .dlc-head, .dlc-row and .dlc-row-body wrappers and
   v3 type classes were added.
   ═══════════════════════════════════════════ */

.article.dlc-page {
  /* site.css lets article titles and the related grid run on past the
     reading column; this page is full width, so nothing runs on. */
  --reading-runon: 0px;
  max-width: none;
  margin: 0;
  padding: 0 0 clamp(72px, 9vw, 128px);
  color: var(--ink);
  line-height: 1.6;
}
/* The script shows and hides with the hidden attribute; no display rule
   below may undo it. */
.dlc-page [hidden] { display: none !important; }

/* In-page jumps land below the sticky nav. */
#request-check, #sample-check, #dlc-sent { scroll-margin-top: 96px; }

.article.dlc-page p {
  margin: 0 0 1em;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--grey-600);
}
.article.dlc-page p strong { color: var(--ink); font-weight: 600; }
.article.dlc-page a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border-bottom: 0;
}
.article.dlc-page a:hover { color: var(--ink); }

/* ═════════════════════════════════════════
   HEAD: breadcrumb, headline, dek and the first actions
   ───────────────────────────────────────── */
.dlc-head { padding: clamp(32px, 4vw, 48px) var(--gutter) clamp(56px, 7vw, 96px); }
.article.dlc-page .article-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: clamp(56px, 8vw, 112px);
  font: 500 11px/1.4 var(--font-label);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--grey-400);
}
.article.dlc-page .article-crumbs a { color: var(--grey-500); text-decoration: none; }
.article.dlc-page .article-crumbs a:hover { color: var(--ink); }
.article.dlc-page .article-crumbs [aria-current] { color: var(--ink); }
.article.dlc-page .article-eyebrow { display: block; margin-bottom: 24px; }
.article.dlc-page .article-eyebrow::before { content: none; }
.article.dlc-page .article-hed {
  max-width: 12em;
  margin: 0 0 28px;
  font-size: clamp(42px, 6.4vw, 92px);
  line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
}
.article.dlc-page .article-dek {
  max-width: 720px;
  margin: 0 0 40px;
  padding: 0;
  border: 0;
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
}
.dlc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  max-width: 720px;
}
.article.dlc-page .dlc-hero-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  background: var(--green);
  color: #fff;
  border: 0;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}
.article.dlc-page .dlc-hero-alt { color: var(--green); text-decoration: none; border-bottom: 1px solid currentColor; font-size: 15px; }
.article.dlc-page .dlc-hero-alt:hover { color: var(--ink); }
.article.dlc-page .dlc-hero-note {
  flex: 1 1 100%;
  max-width: 560px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey-500);
}

/* ═════════════════════════════════════════
   ROWS: each h2 section, title column and text column (v3-row's layout)
   ───────────────────────────────────────── */
.dlc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 0 var(--gutter);
  padding: 32px 0 clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--hairline);
}
.article.dlc-page .dlc-row > h2 {
  max-width: 11em;
  margin: 0;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.025em !important;
  color: var(--ink);
  text-wrap: balance;
}
@media (min-width: 1100px) {
  .dlc-row { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; }
  .article.dlc-page .dlc-row > h2 { position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; }
}
.dlc-row-body { min-width: 0; max-width: 720px; }
.article.dlc-page .dlc-row-body > p:last-child { margin-bottom: 0; }
.dlc-mid-cta { margin: 28px 0 0; }

/* Offer line above the form. */
.article.dlc-page .dlc-offer {
  padding: 14px 18px;
  background: var(--lime-pale);
  border-left: 2px solid var(--green);
  border-radius: 0 2px 2px 0;
}

/* ── Sample check: the result on a pale sky panel ── */
.dlc-sample {
  margin: 28px 0 32px;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--sky-pale);
  border-radius: 2px;
}
.dlc-sample-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.dlc-sample-title { font-family: var(--font-serif); font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
.dlc-sample-stamp,
.dlc-sample-grid dt {
  font: 500 11px/1.4 var(--font-label);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.dlc-sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0;
}
.dlc-sample-grid > div { padding: 14px 0; border-bottom: 1px solid rgba(15, 19, 25, 0.12); }
.dlc-sample-grid dt { margin: 0 0 4px; }
.dlc-sample-grid dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.dlc-sample-grid dd.is-ok { color: var(--green); }
.dlc-sample-grid dd.is-flag { color: #a8620a; }
.article.dlc-page .dlc-sample-foot { margin: 16px 0 0; font-size: 14px; line-height: 1.6; }

/* ── FAQ: the v3-faq look on the existing <details> ── */
.dlc-faq { border-bottom: 1px solid var(--hairline); }
.dlc-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.dlc-faq:first-child summary { padding-top: 4px; }
.dlc-faq summary::-webkit-details-marker { display: none; }
.dlc-faq summary::after {
  content: "+";
  flex: none;
  font: 400 22px/1.1 var(--font-label);
  color: var(--grey-500);
  transition: transform 0.25s;
}
.dlc-faq[open] summary::after { transform: rotate(45deg); }
.dlc-faq summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.article.dlc-page .dlc-faq > p { margin: 0 0 24px; font-size: 16px; }

/* ═════════════════════════════════════════
   REQUEST FORM
   ───────────────────────────────────────── */
.trl-form { margin: 32px 0 0; }
.trl-row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.trl-row > .trl-field { flex: 1 1 220px; min-width: 0; }
.trl-field { margin-bottom: 20px; }
.trl-field label {
  display: block;
  margin-bottom: 8px;
  font: 500 13px/1.4 var(--font-label);
  color: var(--ink);
}
.trl-optional { font-weight: 400; color: var(--grey-500); }
.trl-field input,
.trl-field select,
.trl-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  color: var(--ink);
  font: 400 15px/1.45 var(--font-body);
  transition: border-color 0.15s;
}
.trl-field input:hover,
.trl-field select:hover,
.trl-field textarea:hover { border-color: rgba(15, 19, 25, 0.45); }
.trl-field input:focus,
.trl-field select:focus,
.trl-field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 0;
  border-color: var(--green);
}
.trl-field input[aria-invalid="true"] { border-color: #a12a1f; }
.trl-field ::placeholder { color: var(--grey-400); }
.trl-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%230f1319' stroke-width='1.4' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.trl-field textarea { resize: vertical; }
.dlc-licence { text-transform: uppercase; letter-spacing: 0.06em; }
.dlc-licence::placeholder { text-transform: none; letter-spacing: 0; }

/* Fieldsets: pale sky panels, the legend as a label inside. */
.trl-fieldset {
  min-inline-size: 0;
  margin: 12px 0 24px;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--sky-pale);
  border: 0;
  border-radius: 2px;
}
.trl-fieldset legend {
  float: left;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  font: 500 11px/1.4 var(--font-label);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
}
.trl-fieldset legend + * { clear: both; }
.article.dlc-page .dlc-consent-how,
.article.dlc-page .dlc-submit-terms { margin: 0 0 12px; font-size: 14px; line-height: 1.55; }
.dlc-consent label strong { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 600; }
.trl-consent { margin: 4px 0 20px; }
.article.dlc-page .dlc-optional-hed {
  margin: 0 0 10px;
  font: 500 11px/1.4 var(--font-label);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
}
.trl-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey-600);
}
.trl-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid rgba(15, 19, 25, 0.45);
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.trl-check input[type="checkbox"]:hover { border-color: var(--green); }
.trl-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.trl-check input[type="checkbox"]:checked { background: var(--green); border-color: var(--green); }
.trl-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.trl-check label { cursor: pointer; }

.trl-submit {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 2px;
  font: 400 16px/1 var(--font-label);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.trl-submit:hover { background: var(--lime); color: var(--ink); }
.trl-submit:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.trl-submit:disabled { background: var(--grey-500); color: #fff; cursor: progress; }
.article.dlc-page .trl-note { margin: 14px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--grey-500); }

/* Billing, only for a repeat organisation: a hairline-ruled disclosure. */
.dlc-billing { margin: 8px 0 24px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.dlc-billing summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font: 500 14px/1.4 var(--font-label);
  color: var(--ink);
}
.dlc-billing summary::-webkit-details-marker { display: none; }
.dlc-billing summary::after { content: "+"; flex: none; font-size: 18px; line-height: 1; color: var(--grey-500); transition: transform 0.25s; }
.dlc-billing[open] summary::after { transform: rotate(45deg); }
.dlc-billing summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.dlc-billing[open] { padding-bottom: 4px; }
.article.dlc-page .dlc-billing-note { margin: 0 0 16px; font-size: 13.5px; line-height: 1.55; }

/* Alerts (validation and refusals), all role="alert". */
.article.dlc-page .dlc-freemail {
  margin: 10px 0 0;
  padding: 12px 14px;
  background: #fbefee;
  border-left: 2px solid #a12a1f;
  border-radius: 0 2px 2px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

/* ── Toasts: ink, so they read over anything without a shadow ── */
.dlc-toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(560px, calc(100% - 32px));
  padding: 18px 20px;
  background: var(--ink);
  border-radius: 2px;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}
.article.dlc-page .dlc-toast p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.article.dlc-page .dlc-toast strong { color: #fff; }
.article.dlc-page .dlc-toast a { color: var(--lime); border-bottom-color: rgba(156, 229, 69, 0.5); }
.article.dlc-page .dlc-toast .dlc-toast-sub { font-size: 13.5px; color: rgba(255, 255, 255, 0.7); }
/* The personal-mailbox toast floats on the email field, above its label, so
   it moves with the field and a phone's keyboard hides neither. */
#dlc-email-field { position: relative; }
.dlc-toast.dlc-toast-field {
  position: absolute;
  top: auto;
  bottom: calc(100% + 8px);
  left: 0;
  transform: none;
  width: 100%;
  z-index: 20;
  padding-right: 48px;
}
.article.dlc-page .dlc-toast-field p:last-child { margin-bottom: 0; }
.dlc-toast .dlc-toast-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.dlc-toast .dlc-toast-x:hover { color: #fff; }
.dlc-toast .dlc-toast-x:focus-visible { outline: 2px solid var(--lime); }
.dlc-toast-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dlc-toast-actions button {
  height: 36px;
  padding: 0 14px;
  border-radius: 2px;
  font: 400 14px/1 var(--font-label);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.dlc-toast-primary { background: var(--lime); color: var(--ink); border: 0; }
.dlc-toast-primary:hover { background: #fff; }
.dlc-toast-close { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.dlc-toast-close:hover { border-color: #fff; }

/* ── Confirmation: the blurred result (auto) or the manual note ── */
.dlc-sent {
  margin: 24px 0 28px;
  padding: 22px 22px 8px;
  background: var(--lime-pale);
  border-radius: 2px;
}
.article.dlc-page .dlc-sent-hed {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.article.dlc-page .dlc-sent p { margin: 0 0 14px; }
/* The result, blurred until the account is activated: the covase-v2 result
   layout with SAMPLE values only. Nothing real is ever sent to this page. */
.dlc-result { position: relative; margin: 6px 0 16px; border-radius: 2px; overflow: hidden; }
.dlc-result-sample { filter: blur(6px); pointer-events: none; user-select: none; padding: 14px; }
.dlc-result-hdr { padding: 14px; background: var(--ink); border-radius: 2px; color: #fff; font-size: 14px; }
.article.dlc-page .dlc-result-hdr strong { color: #fff; }
.dlc-result-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
  font-size: 13px;
  text-align: center;
  color: var(--grey-600);
}
.dlc-result-tiles div,
.dlc-result-row { padding: 10px; background: #fff; border: 1px solid rgba(15, 19, 25, 0.12); border-radius: 2px; }
.dlc-result-tiles b { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 24px; color: var(--green); }
.dlc-result-row { font-size: 13px; color: var(--ink); }
/* After the preview: "your result is waiting" (Alan, 2026-09-30). The panel
   sits over the top of the blurred report, which fades out beneath it. */
.dlc-activate {
  position: relative;
  z-index: 2;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 2px;
}
.article.dlc-page .dlc-activate p { margin: 0 0 10px; font-size: 15px; }
.article.dlc-page .dlc-activate-list { margin: 0 0 12px; padding-left: 22px; }
.article.dlc-page .dlc-activate-list li { margin: 4px 0; font-size: 15px; line-height: 1.6; color: var(--grey-600); }
.article.dlc-page .dlc-activate .dlc-activate-cta { font-weight: 600; color: var(--green); margin-bottom: 12px; }
.article.dlc-page .dlc-activate .dlc-activate-resend { margin: 0; font-size: 13.5px; color: var(--grey-600); }
.dlc-linkbtn {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.dlc-linkbtn:disabled { color: var(--grey-500); cursor: default; text-decoration: none; }
#dlc-resend-msg { display: block; margin-top: 4px; color: var(--ink); }
#dlc-resend-msg:empty { display: none; }
.dlc-activate + .dlc-result-sample {
  margin-top: -22px;
  -webkit-mask-image: linear-gradient(#000 35%, transparent);
  mask-image: linear-gradient(#000 35%, transparent);
}
/* The real result, shown for a few seconds after the check, then removed. */
.dlc-result.is-live .dlc-result-sample,
.dlc-result.is-live .dlc-activate { display: none; }
.dlc-result-live { padding: 14px; }
.dlc-result-live .dlc-result-row + .dlc-result-row { margin-top: 8px; }
.article.dlc-page .dlc-result-timer { margin: 12px 0 0; font-size: 13.5px; }

/* ═════════════════════════════════════════
   CLOSING: the phone line on a pale sky panel, then related pages
   ───────────────────────────────────────── */
.article.dlc-page .article-cta {
  display: grid;
  justify-items: start;
  gap: 24px;
  margin: 0 var(--gutter);
  padding: clamp(36px, 5vw, 72px) clamp(22px, 4vw, 56px);
  background: var(--sky-pale);
  border: 0;
  border-radius: 2px;
  text-align: left;
}
.article.dlc-page .article-cta > p:first-child {
  max-width: 14em;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.article.dlc-page .article-cta .article-cta-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  background: var(--green);
  color: #fff;
  border: 0;
  font-size: 16px;
  font-weight: 400;
}
.article.dlc-page .article-cta .article-cta-sub { margin: 0; font-family: var(--font-body); font-size: 14px; letter-spacing: 0; color: var(--grey-600); }

.article.dlc-page .related-block {
  max-width: none;
  margin: clamp(72px, 9vw, 128px) var(--gutter) 0;
  padding: 0;
  border: 0;
}
.article.dlc-page .related-block-kicker {
  margin-bottom: 16px;
  font: 500 11px/1.4 var(--font-label);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.article.dlc-page .related-block-grid {
  margin-right: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.article.dlc-page .related-block-item {
  display: flex;
  flex-direction: column;
  padding: 0 16px 0 0;
  background: none;
  border: 0;
  text-decoration: none;
  border-radius: 0;
  color: var(--ink);
  transform: none;
}
.article.dlc-page .related-block-item .related-block-label {
  margin-bottom: clamp(28px, 4vw, 48px);
  font: 500 11px/1.4 var(--font-label);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
}
.article.dlc-page .related-block-title {
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
}
.article.dlc-page .related-block-item:hover .related-block-title { text-decoration: underline; text-underline-offset: 4px; }
.article.dlc-page .related-block-desc { margin-bottom: 14px; font-size: 15px; line-height: 1.55; color: var(--grey-600); }
.article.dlc-page .related-block-arr { margin-top: auto; font: 400 16px/1 var(--font-label); color: var(--green); }
@media (max-width: 860px) {
  .article.dlc-page .related-block-grid { grid-template-columns: minmax(0, 1fr); }
}
