/*
 * HelpSellMyCars Scanner styles.
 * Self-contained: no Tailwind dependency, since this renders inside the theme.
 * Tokens mirror the HelpSellMyCars theme so the report reads as part of the site.
 *
 * The dt- class prefix is left alone on purpose. It is not the brand name, it
 * is the hook every selector in this file and every template is written
 * against, and renaming it would mean rewriting a thousand selectors and
 * whatever page CSS on the site already targets them, for nothing a visitor
 * would ever see.
 */

.dt-scan, .dt-report {
  --dt-base:      #F2F3F0;   /* label stock */
  --dt-surface:   #FFFFFF;
  --dt-accent:    #FFD100;   /* FTC Buyer's Guide yellow */
  --dt-highlight: #FFD100;
  --dt-text:      #14161A;
  --dt-contrast:  #14161A;
  --dt-blue-bg:   #F2F3F0;
  --dt-dark:      #14161A;
  --dt-risk:      #FBEDEC;
  --dt-control:   #FFF8DB;
  --dt-hover:     #14161A;
  --dt-muted:     #6B7079;
  --dt-line:      #CCCCC4;
  --dt-danger:    #B3271E;
  --dt-warn:      #B3271E;

  color: var(--dt-text);
  font-family: 'Archivo', system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Figures, codes and labels are monospaced, exactly as they are on the rest of
   the site and on a window sticker. */
.dt-scan__eyebrow, .dt-scan__points, .dt-report .dt-mono,
.dt-check__id, .dt-scan__error {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

.dt-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- Buttons ------------------------------------------------------------ */
.dt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 30px; border-radius: 0;
  border: 2px solid var(--dt-text);
  font-weight: 800; font-size: 15px; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.dt-btn--primary { background: var(--dt-accent); color: var(--dt-text); box-shadow: 5px 5px 0 var(--dt-text); }
.dt-btn--primary:hover { background: var(--dt-text); color: var(--dt-accent); box-shadow: 5px 5px 0 var(--dt-accent); }
.dt-btn--primary:active { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--dt-text); }
.dt-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- Scan form ---------------------------------------------------------- */
.dt-scan { background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.dt-scan__heading { font-size: 40px; font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -.02em; color: var(--dt-dark); margin: 0 0 10px; }
.dt-scan__sub { color: var(--dt-muted); font-size: 17px; margin: 0 0 12px; }
.dt-scan__how {
  color: var(--dt-muted); font-size: 15.5px; line-height: 1.55;
  max-width: 62ch; margin: 0 0 26px;
}
.dt-scan__form { display: flex; gap: 0; flex-wrap: wrap; }
.dt-scan__form .dt-btn { border-left-width: 0; }
@media (max-width:620px){ .dt-scan__form .dt-btn { border-left-width: 2px; width: 100%; } }
.dt-scan__input {
  flex: 1 1 300px; padding: 16px 18px; font-size: 16px;
  border: 2px solid var(--dt-text); border-radius: 0; background: #fff;
  font-family: 'IBM Plex Mono', ui-monospace, monospace; color: var(--dt-text);
}
.dt-scan__input:focus { outline: 0; box-shadow: 0 0 0 4px rgba(255,209,0,.45); }
.dt-scan__error { color: var(--dt-danger); font-weight: 600; margin: 14px 0 0; }
.dt-scan__points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.dt-scan__points li { position: relative; padding-left: 26px; color: var(--dt-muted); font-size: 15px; }
.dt-scan__points li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px;
  border-radius: 0; background: var(--dt-accent);
}

/* --- Progress ------------------------------------------------------------ */
.dt-progress { margin-top: 24px; }
.dt-progress__bar { height: 8px; background: var(--dt-line); border-radius: 0; overflow: hidden; }
.dt-progress__bar span { display: block; height: 100%; width: 5%; background: var(--dt-accent); border-radius: 0; transition: width .5s ease; }
.dt-progress__label { margin: 10px 0 0; color: var(--dt-muted); font-size: 14px; }

/* --- Report shell -------------------------------------------------------- */
.dt-report { max-width: 1000px; margin: 0 auto; padding: 48px 20px 80px; }
.dt-section { margin-top: 56px; }
.dt-section h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--dt-dark); margin: 0 0 6px; }
.dt-section__sub { color: var(--dt-muted); margin: 0 0 22px; font-size: 16px; }
.dt-note { color: var(--dt-muted); font-size: 14px; margin-top: 14px; }
.dt-stamp { color: var(--dt-muted); font-size: 13px; margin-top: 48px; text-align: center; }
.dt-card--empty { background: var(--dt-surface); border: 2px solid var(--dt-text); padding: 44px; text-align: center; box-shadow: 8px 8px 0 var(--dt-text); }

/* --- Hero ---------------------------------------------------------------- */
.dt-hero { background: var(--dt-surface); border: 2px solid var(--dt-text); box-shadow: 8px 8px 0 var(--dt-text); padding: 34px; }
.dt-hero__eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--dt-hover); margin: 0 0 6px; }
.dt-hero__domain { font-size: clamp(28px, 5vw, 46px); font-weight: 800; letter-spacing: -.03em; color: var(--dt-dark); margin: 0 0 24px; word-break: break-all; }
.dt-hero__grid { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
@media (max-width: 640px) { .dt-hero__grid { grid-template-columns: 1fr; gap: 20px; } .dt-hero, .dt-scan { padding: 26px; } }

.dt-score { background: #fff; border: 2px solid var(--dt-text); padding: 22px 28px; text-align: center; box-shadow: none; }
.dt-score__num { font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--dt-contrast); }
.dt-score__num span { font-size: 20px; color: var(--dt-muted); font-weight: 600; }
.dt-score__level { margin-top: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dt-hover); }

.dt-verdict__head { font-size: 20px; font-weight: 700; color: var(--dt-dark); margin: 0 0 8px; }
.dt-verdict__sub { color: var(--dt-text); margin: 0; font-size: 16px; line-height: 1.6; }

.dt-gate { margin-top: 26px; background: #fff; border-left: 5px solid var(--dt-danger); border-radius: 0; padding: 18px 22px; }
.dt-gate__label { margin: 0 0 8px; font-weight: 700; color: var(--dt-danger); }
.dt-gate ul { margin: 0; padding-left: 20px; }
.dt-gate li { margin-bottom: 6px; line-height: 1.55; }

/* --- Chain ---------------------------------------------------------------- */
.dt-chain { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; flex-wrap: wrap; counter-reset: c; }
.dt-chain__item { flex: 1 1 130px; padding: 16px 12px; border-radius: 0; text-align: center; font-weight: 700; font-size: 14px; border: 2px solid transparent; }
.dt-chain__item--ok     { background: var(--dt-control); color: #1C7A45; border-color: var(--dt-text); }
.dt-chain__item--break  { background: var(--dt-risk);    color: var(--dt-danger); border-color: var(--dt-danger); }
.dt-chain__item--after  { background: var(--dt-base);    color: #9CA3AF; }
.dt-chain__item--break .dt-chain__label::after { content: " breaks here"; font-weight: 600; display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }

/* --- Pillars --------------------------------------------------------------- */
.dt-pillars { display: grid; gap: 14px; }
.dt-pillar__top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.dt-pillar__name { font-weight: 600; }
.dt-pillar__score { color: var(--dt-muted); font-variant-numeric: tabular-nums; }
.dt-meter { height: 10px; background: var(--dt-line); border-radius: 0; overflow: hidden; }
.dt-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--dt-accent), var(--dt-highlight)); }

/* --- Plan ------------------------------------------------------------------ */
.dt-plan { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: p; }
.dt-plan__item { background: #fff; border: 1px solid var(--dt-line); border-left: 5px solid var(--dt-highlight); border-radius: 0; padding: 18px 22px; }
.dt-plan__item--gate { border-left-color: var(--dt-accent); background: var(--dt-control); }
/* Grid, not flex. A three-item flex row with space-between let the title
   collapse to zero width between the number and the points badge, so the most
   important line in the box vanished while everything around it rendered. */
.dt-plan__head {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 12px; margin-bottom: 2px;
}
.dt-plan__label {
  margin: 0; min-width: 0; font-size: 17px; font-weight: 800;
  line-height: 1.35; letter-spacing: -.01em; color: var(--dt-dark);
  overflow-wrap: anywhere;
}
.dt-plan__why { margin: 0 0 6px; line-height: 1.6; }
.dt-plan__meta { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dt-muted); }
.dt-tag { flex-shrink: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 0; background: var(--dt-base); color: var(--dt-muted); }
.dt-tag--effort { background: var(--dt-blue-bg); color: var(--dt-hover); font-weight: 600; text-transform: none; letter-spacing: 0; }
.dt-tag--gate { background: var(--dt-accent); color: #fff; }

/* --- Broker ----------------------------------------------------------------- */
.dt-broker { border-radius: 0; padding: 24px; border-left: 6px solid; }
.dt-broker--unknown  { background: var(--dt-base);    border-color: var(--dt-line); }
.dt-broker--clear    { background: var(--dt-control); border-color: var(--dt-accent); }
.dt-broker--low      { background: var(--dt-base);    border-color: var(--dt-highlight); }
.dt-broker--elevated { background: #FFFBEB;           border-color: var(--dt-warn); }
.dt-broker--high     { background: var(--dt-risk);    border-color: var(--dt-danger); }
.dt-broker__verdict { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: var(--dt-dark); }
.dt-broker__detail  { margin: 0; line-height: 1.65; }
.dt-broker__signals { margin: 16px 0 0; padding-left: 20px; }
.dt-broker__signals li { margin-bottom: 6px; font-size: 15px; line-height: 1.5; }

/* --- Simulation --------------------------------------------------------------- */
.dt-sim { display: grid; gap: 8px; }
.dt-sim__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--dt-line); border-radius: 0; padding: 12px 16px; }
.dt-sim__label { font-size: 15px; }
.dt-sim__fields { display: flex; gap: 5px; flex-shrink: 0; }
.dt-dot { width: 24px; height: 24px; border-radius: 0; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.dt-dot--ok { background: var(--dt-control); color: #1C7A45; }
.dt-dot--no { background: var(--dt-risk); color: var(--dt-danger); }

/* --- Checks ---------------------------------------------------------------------- */
.dt-details summary { cursor: pointer; font-weight: 700; color: var(--dt-hover); padding: 12px 0; }
.dt-checks { display: grid; gap: 6px; margin-top: 12px; }
.dt-check { display: grid; grid-template-columns: 230px 1fr; gap: 14px; padding: 12px 16px; border-radius: 0; font-size: 14px; line-height: 1.5; }
@media (max-width: 640px) { .dt-check { grid-template-columns: 1fr; gap: 4px; } }
.dt-check--pass           { background: var(--dt-control); }
.dt-check--partial        { background: #FFFBEB; }
.dt-check--fail           { background: var(--dt-risk); }
.dt-check--error          { background: var(--dt-risk); }
.dt-check--not_applicable { background: var(--dt-base); color: var(--dt-muted); }
.dt-check--unmeasured     { background: #F4F5F7; color: var(--dt-muted); }
.dt-check__id { font-weight: 700; }

/* --- CTA ------------------------------------------------------------------------- */
.dt-cta { margin-top: 56px; background: #1D2126; color: #fff; padding: 44px; text-align: center; }
.dt-cta h2 { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; }
.dt-cta p { color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto 26px; line-height: 1.6; }

/* --- Evidence blocks ------------------------------------------------------ */
.dt-ev { margin: 12px 0; padding: 14px 16px; background: var(--dt-base); border-radius: 0; border: 1px solid var(--dt-line); }
.dt-ev__title { margin: 0 0 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--dt-muted); }
.dt-ev__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dt-ev__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.dt-ev__key { background: var(--dt-contrast); color: #fff; padding: 3px 10px; border-radius: 0; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dt-ev__where { font-size: 14px; color: var(--dt-text); }
.dt-ev__pages { font-size: 12px; color: var(--dt-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.dt-ev__note { margin: 12px 0 0; font-size: 13px; color: var(--dt-muted); font-style: italic; }
.dt-ev__chips { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dt-chip { background: #fff; border: 1px solid var(--dt-line); border-radius: 0; padding: 4px 12px; font-size: 13px; }
.dt-chip--more { background: var(--dt-line); border-color: transparent; color: var(--dt-muted); }
.dt-ev__table { width: 100%; border-collapse: collapse; }
.dt-ev__table th { text-align: left; padding: 6px 14px 6px 0; font-size: 13px; color: var(--dt-muted); font-weight: 600; white-space: nowrap; }
.dt-ev__table td { padding: 6px 0; }
.dt-ev__table code { background: #fff; border: 1px solid var(--dt-line); padding: 3px 9px; border-radius: 0; font-size: 13px; }
.dt-ev__quote { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.dt-ev__quote:last-child { margin-bottom: 0; }
.dt-ev__quote-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dt-muted); margin-bottom: 3px; }
.dt-ev__metric { margin: 0; font-size: 14px; }
.dt-ev__metric strong { font-size: 22px; color: var(--dt-danger); }

/* --- Fix cards ------------------------------------------------------------- */
.dt-fix { margin: 12px 0 0; border: 1px solid var(--dt-line); border-radius: 0; background: #fff; }
.dt-fix__toggle { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--dt-hover); font-size: 14px; list-style: none; display: flex; align-items: center; gap: 8px; }
.dt-fix__toggle::-webkit-details-marker { display: none; }
.dt-fix__toggle::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 0; background: var(--dt-accent); color: #fff; font-size: 15px; line-height: 1; }
.dt-fix[open] .dt-fix__toggle::before { content: "\2212"; }
.dt-fix__body { padding: 0 16px 16px; }
.dt-fix__warn { background: var(--dt-risk); border-left: 4px solid var(--dt-danger); border-radius: 0; padding: 10px 14px; font-size: 14px; margin: 0 0 14px; line-height: 1.55; }
.dt-fix__steps { margin: 0 0 14px; padding-left: 22px; }
.dt-fix__steps li { margin-bottom: 8px; line-height: 1.6; font-size: 14px; }

/* --- Code blocks ------------------------------------------------------------ */
.dt-code { border: 1px solid var(--dt-line); border-radius: 0; overflow: hidden; }
.dt-code__bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--dt-base); border-bottom: 1px solid var(--dt-line); }
.dt-code__name { font-size: 12px; font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--dt-contrast); }
.dt-code__actions { display: flex; gap: 6px; }
.dt-code__btn { border: 1px solid var(--dt-line); background: #fff; border-radius: 0; padding: 4px 12px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--dt-hover); font-family: inherit; }
.dt-code__btn:hover { background: var(--dt-hover); color: #fff; border-color: var(--dt-hover); }
.dt-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; background: #14161A; max-height: 420px; }
.dt-code code { color: #D7E3F4; font-size: 12.5px; line-height: 1.6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }

/* --- Comparison --------------------------------------------------------------- */
.dt-compare__form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.dt-compare__input { flex: 1 1 190px; padding: 13px 16px; font-size: 15px; border: 2px solid var(--dt-line); border-radius: 0; background: var(--dt-base); font-family: inherit; }
.dt-compare__input:focus { outline: 0; border-color: var(--dt-highlight); background: #fff; }

.dt-rank { background: var(--dt-blue-bg); border-radius: 0; padding: 22px 26px; margin: 24px 0; }
.dt-rank__headline { margin: 0; font-size: 19px; font-weight: 700; color: var(--dt-dark); line-height: 1.5; }

.dt-vs { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.dt-vs th { text-align: left; padding: 10px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dt-muted); border-bottom: 2px solid var(--dt-line); }
.dt-vs td { padding: 13px 12px; border-bottom: 1px solid var(--dt-line); }
.dt-vs tr.is-you { background: var(--dt-control); }
.dt-vs tr.is-you td { font-weight: 700; }
.dt-vs__score { font-variant-numeric: tabular-nums; font-weight: 700; }

.dt-gap { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dt-gap__item { background: var(--dt-risk); border-left: 5px solid var(--dt-danger); border-radius: 0; padding: 15px 18px; }
.dt-gap__item--some { background: #FFFBEB; border-left-color: var(--dt-warn); }
.dt-gap__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.dt-gap__label { font-weight: 700; color: var(--dt-dark); }
.dt-gap__ratio { flex-shrink: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--dt-danger); }
.dt-gap__item--some .dt-gap__ratio { color: var(--dt-warn); }
.dt-gap__who { margin: 0; font-size: 13px; color: var(--dt-muted); }
.dt-ahead { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dt-ahead li { background: var(--dt-control); border: 1px solid var(--dt-text); border-radius: 0; padding: 6px 14px; font-size: 14px; font-weight: 600; color: #1C7A45; }

/* --- Scanner page ------------------------------------------------------------- */
.dt-scan__eyebrow { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--dt-hover); background: var(--dt-blue-bg); padding: 5px 12px; border-radius: 0; margin-bottom: 14px; }
.dt-scan__meta { margin: 12px 0 0; font-size: 13px; color: var(--dt-muted); }
.dt-scan__demo { margin-top: 30px; padding: 22px 26px; background: var(--dt-blue-bg); border-radius: 0; }
.dt-scan__demo-q { margin: 0 0 10px; font-size: 19px; font-weight: 700; color: var(--dt-dark); line-height: 1.45; }
.dt-scan__demo-a { margin: 0; color: var(--dt-text); line-height: 1.6; }
.dt-scan__intro { margin-bottom: 22px; }
.dt-scan__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 20px; }
.dt-scan__card { background: var(--dt-base); border-radius: 0; padding: 20px; border-top: 4px solid var(--dt-accent); }
.dt-scan__card-num { font-size: 12px; font-weight: 800; color: var(--dt-accent); letter-spacing: .1em; }
.dt-scan__card h3 { margin: 8px 0 6px; font-size: 17px; font-weight: 700; color: var(--dt-dark); }
.dt-scan__card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--dt-muted); }
.dt-scan__strip { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--dt-line); font-size: 14px; color: var(--dt-muted); }
.dt-scan__strip strong { color: var(--dt-contrast); font-weight: 800; }

/* --- Gauge and tally ----------------------------------------------------------- */
.dt-hero__gauge { display: grid; place-items: center; }
.dt-gauge { width: 190px; height: 190px; }
.dt-tally { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.dt-tally__item { font-size: 14px; padding: 6px 14px; border-radius: 0; background: #fff; }
.dt-tally__item strong { font-size: 17px; font-weight: 800; margin-right: 4px; }
.dt-tally__item--pass strong { color: #1C7A45; }
.dt-tally__item--partial strong { color: var(--dt-warn); }
.dt-tally__item--fail strong { color: var(--dt-danger); }
.dt-tally__item--unmeasured strong { color: var(--dt-muted); }
.dt-tally__item--na strong { color: var(--dt-muted); }

/* --- AI answer preview ---------------------------------------------------------- */
.dt-chat { background: #fff; border: 1px solid var(--dt-line); border-radius: 0; padding: 26px; }
.dt-chat__q { margin: 0 0 20px; font-size: 18px; font-weight: 700; color: var(--dt-dark); padding: 14px 18px; background: var(--dt-base); border-radius: 0 14px 14px 4px; display: inline-block; }
.dt-chat__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .dt-chat__pair { grid-template-columns: 1fr; } }
.dt-chat__side { padding: 18px 20px; border-radius: 0 14px 14px 14px; }
.dt-chat__side--now { background: var(--dt-risk); border: 1px solid rgba(220,38,38,.25); }
.dt-chat__side--after { background: var(--dt-control); border: 1px solid rgba(52,211,153,.4); }
.dt-chat__side p { margin: 0; line-height: 1.65; font-size: 15px; }
.dt-chat__tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; padding: 3px 10px; border-radius: 0; margin-bottom: 10px; }
.dt-chat__tag--now { background: var(--dt-danger); color: #fff; }
.dt-chat__tag--after { background: var(--dt-accent); color: #fff; }
.dt-chat__gap { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--dt-line); font-size: 14px; color: var(--dt-text); line-height: 1.6; }

/* --- Level ladder ------------------------------------------------------------------ */
.dt-ladder { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: l; }
.dt-ladder__step { display: flex; gap: 16px; align-items: flex-start; padding: 15px 18px; border-radius: 0; border: 2px solid transparent; }
.dt-ladder__step--done   { background: var(--dt-control); }
.dt-ladder__step--here   { background: #fff; border-color: var(--dt-accent); box-shadow: 0 4px 16px rgba(52,211,153,.22); }
.dt-ladder__step--next   { background: var(--dt-risk); border-color: rgba(220,38,38,.3); }
.dt-ladder__step--future { background: var(--dt-base); opacity: .6; }
.dt-ladder__num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 0; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: #fff; color: var(--dt-muted); border: 1px solid var(--dt-line); }
.dt-ladder__step--done .dt-ladder__num { background: var(--dt-accent); color: #fff; border-color: transparent; }
.dt-ladder__step--here .dt-ladder__num { background: var(--dt-contrast); color: #fff; border-color: transparent; }
.dt-ladder__body { display: block; }
.dt-ladder__name { display: block; font-weight: 700; color: var(--dt-dark); margin-bottom: 2px; }
.dt-ladder__desc { display: block; font-size: 14px; color: var(--dt-muted); line-height: 1.5; }
.dt-ladder__tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; background: var(--dt-accent); color: #fff; padding: 3px 9px; border-radius: 0; margin-left: 8px; vertical-align: middle; }
.dt-ladder__block { display: block; margin-top: 7px; font-size: 13px; font-weight: 700; color: var(--dt-danger); }

/* --- Radar --------------------------------------------------------------------------- */
.dt-radar-wrap { display: grid; grid-template-columns: minmax(300px, 460px) 1fr; gap: 32px; align-items: center; }
@media (max-width: 860px) { .dt-radar-wrap { grid-template-columns: 1fr; } }
.dt-radar { width: 100%; height: auto; max-width: 460px; margin: 0 auto; display: block; }
.dt-bar { display: block; height: 9px; background: var(--dt-line); border-radius: 0; overflow: hidden; }
.dt-bar__fill { display: block; height: 100%; border-radius: 0; }

/* --- Plan additions -------------------------------------------------------------------- */
.dt-plan__cost { margin: 0 0 10px; font-size: 15.5px; line-height: 1.6; color: var(--dt-text); }
.dt-plan__why { font-size: 13.5px; color: var(--dt-muted); background: var(--dt-base); border-radius: 0; padding: 10px 13px; }
.dt-plan__detail-label { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #9CA3AF; margin-bottom: 3px; }

/* --- Phone layout -----------------------------------------------------------------
 * Most dealers will open this on a phone, often standing on the lot.
 * Everything below collapses to a single column and drops the ornamental spacing. */
@media (max-width: 600px) {
  .dt-report { padding: 28px 16px 60px; }
  .dt-section { margin-top: 40px; }
  .dt-section h2 { font-size: 23px; }
  .dt-hero { padding: 24px 20px; }
  .dt-hero__grid { grid-template-columns: 1fr; text-align: center; }
  .dt-gauge { width: 160px; height: 160px; }
  .dt-tally { justify-content: center; }
  .dt-verdict__head { font-size: 17px; }
  .dt-gate { text-align: left; }

  .dt-chat { padding: 18px; }
  .dt-chat__q { font-size: 16px; display: block; }
  .dt-ladder__step { padding: 13px 14px; gap: 12px; }
  .dt-ladder__name { font-size: 15px; }
  .dt-ladder__tag { display: block; margin: 5px 0 0; width: fit-content; }

  .dt-chain { gap: 5px; }
  .dt-chain__item { flex: 1 1 calc(50% - 5px); font-size: 13px; padding: 12px 8px; }

  .dt-plan__item { padding: 15px 16px; }
  .dt-plan__head { grid-template-columns: auto 1fr; }
  .dt-plan__head .dt-tag { grid-column: 2; justify-self: start; margin-top: 4px; }
  .dt-plan__tech { margin-left: 0; }
  .dt-plan__cost { font-size: 15px; }
  .dt-code pre { padding: 12px; }
  .dt-code code { font-size: 11.5px; }

  .dt-compare__form { flex-direction: column; }
  .dt-vs { font-size: 13px; }
  .dt-vs th, .dt-vs td { padding: 9px 7px; }

  .dt-cta { padding: 30px 22px; }
  .dt-cta h2 { font-size: 24px; }
  .dt-btn { width: 100%; padding: 15px 20px; font-size: 14px; }

  .dt-scan__strip { gap: 14px; font-size: 13px; }
  .dt-scan__demo { padding: 18px; }
  .dt-scan__demo-q { font-size: 17px; }
}

/* Long phone numbers and domains must never force a horizontal scrollbar. */
.dt-ev__list li { word-break: break-word; }
.dt-vs td:first-child { word-break: break-all; }

/* --- Fix list: tally strip -------------------------------------------------- */
.dt-scoreboard {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 32px;
}
@media (max-width: 720px) { .dt-scoreboard { grid-template-columns: repeat(2, 1fr); } }
.dt-scoreboard__item {
  background: #fff; border: 1px solid var(--dt-line); border-radius: 0;
  padding: 18px 16px; text-align: center;
}
.dt-scoreboard__num {
  display: block; font-size: 34px; font-weight: 800; line-height: 1;
  letter-spacing: -.03em; color: var(--dt-contrast);
}
.dt-scoreboard__label {
  display: block; margin-top: 8px; font-size: 12px; line-height: 1.4;
  text-transform: uppercase; letter-spacing: .06em; color: var(--dt-muted);
}
.dt-scoreboard__item--alert { background: var(--dt-risk); border-color: rgba(220,38,38,.28); }
.dt-scoreboard__item--alert .dt-scoreboard__num { color: var(--dt-danger); }
.dt-scoreboard__item--gain  { background: var(--dt-control); border-color: rgba(52,211,153,.4); }
.dt-scoreboard__item--gain .dt-scoreboard__num { color: #1C7A45; }

/* --- Fix list: groups -------------------------------------------------------- */
.dt-group { margin-bottom: 36px; }
.dt-group__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; border-bottom: 2px solid var(--dt-line); padding-bottom: 10px; margin-bottom: 8px;
}
.dt-group__title {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-size: 21px; font-weight: 800; letter-spacing: -.01em; color: var(--dt-dark);
}
.dt-group__count {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px;
  padding: 0 8px; border-radius: 0; background: var(--dt-base);
  font-size: 13px; font-weight: 700; color: var(--dt-muted);
}
.dt-group__points {
  flex-shrink: 0; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--dt-muted);
}
.dt-group__sub { margin: 0 0 18px; color: var(--dt-muted); font-size: 15px; line-height: 1.6; max-width: 760px; }

.dt-group--blocking .dt-group__head  { border-bottom-color: var(--dt-danger); }
.dt-group--blocking .dt-group__title { color: var(--dt-danger); }
.dt-group--blocking .dt-group__count { background: var(--dt-risk); color: var(--dt-danger); }
.dt-group--high .dt-group__head      { border-bottom-color: var(--dt-accent); }
.dt-group--high .dt-group__count     { background: var(--dt-control); color: #1C7A45; }

.dt-group__fold > summary {
  cursor: pointer; padding: 12px 16px; border-radius: 0; background: var(--dt-base);
  font-weight: 700; color: var(--dt-hover); list-style: none;
}
.dt-group__fold > summary::-webkit-details-marker { display: none; }
.dt-group__fold > summary::after { content: "  ▾"; }
.dt-group__fold[open] > summary::after { content: "  ▴"; }
.dt-group__fold[open] > summary { margin-bottom: 14px; }

/* --- Fix list: numbering and effort ------------------------------------------ */
.dt-plan__n {
  flex-shrink: 0; display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 0; margin-right: 4px;
  background: var(--dt-contrast); color: #fff; font-size: 13px; font-weight: 800;
}
.dt-plan__item--gate .dt-plan__n { background: var(--dt-danger); }
.dt-plan__effort {
  margin: 0 0 10px; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--dt-hover);
}

.dt-group--quick .dt-group__head  { border-bottom-color: var(--dt-highlight); }
.dt-group--quick .dt-group__count { background: var(--dt-blue-bg); color: var(--dt-hover); }

.dt-check__summary { color: var(--dt-text); }

/* --- Status color: missing is red, working is green ------------------------ */
/* An owner should be able to scan the page and know what is wrong from color
   alone, before reading a word. Left borders alone were too subtle. */
.dt-plan__item {
  background: var(--dt-risk);
  border: 1px solid rgba(220,38,38,.22);
  border-left: 5px solid var(--dt-danger);
}
.dt-plan__item--gate {
  background: var(--dt-risk);
  border-color: rgba(220,38,38,.45);
  border-left-width: 7px;
  box-shadow: 0 4px 14px rgba(220,38,38,.10);
}
.dt-group--quick .dt-plan__item,
.dt-group--worth .dt-plan__item {
  background: #FFFBEB;
  border-color: rgba(217,119,6,.22);
  border-left-color: var(--dt-warn);
}
.dt-group--later .dt-plan__item {
  background: var(--dt-base);
  border-color: var(--dt-line);
  border-left-color: #9CA3AF;
}
.dt-plan__item .dt-code { background: #fff; }

/* Working list, shown alongside the fix list */
.dt-wins { display: grid; gap: 8px; margin-top: 6px; }
.dt-win {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--dt-control); border: 1px solid rgba(52,211,153,.35);
  border-left: 5px solid var(--dt-accent); border-radius: 0; padding: 12px 16px;
}
.dt-win__tick { flex-shrink: 0; color: #1C7A45; font-weight: 800; }
.dt-win__label { font-weight: 700; color: var(--dt-dark); font-size: 15px; }
.dt-win__note { display: block; font-weight: 400; color: var(--dt-muted); font-size: 13.5px; margin-top: 2px; }

/* Full check list: unmistakable pass/fail */
.dt-check--pass    { background: var(--dt-control); border-left: 4px solid var(--dt-accent); }
.dt-check--partial { background: #FFFBEB;          border-left: 4px solid var(--dt-warn); }
.dt-check--fail,
.dt-check--error   { background: var(--dt-risk);   border-left: 4px solid var(--dt-danger); }
.dt-check--not_applicable { background: var(--dt-base); border-left: 4px solid var(--dt-line); }
.dt-check--unmeasured     { background: #F4F5F7;      border-left: 4px solid var(--dt-line); }

/* --- Not measurable ------------------------------------------------------------- */
/* Shown where the gauge would be when the site refused too much of the scan. The
   point is that it reads as an absent measurement, not as a bad result, so it
   carries none of the red used for a genuine failure. */
.dt-noscore {
  width: 190px; height: 190px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: #F4F5F7; border: 1px dashed var(--dt-line); padding: 12px;
}
.dt-noscore__mark  { font-size: 38px; line-height: 1; color: var(--dt-muted); letter-spacing: 2px; }
.dt-noscore__label { font-size: 15px; font-weight: 700; margin-top: 10px; color: var(--dt-text); }
.dt-noscore__sub   { font-size: 12px; color: var(--dt-muted); margin-top: 6px; line-height: 1.4; }

/* --- Partial read ---------------------------------------------------------------- */
/* Enough of the site answered to be worth a figure, not enough for a single number.
   Styled as a real result rather than a failure state, because it is one. */
.dt-partial {
  margin: 10px 0 0; text-align: center; line-height: 1.45;
  font-size: 12px; font-weight: 700; color: var(--dt-text);
}
.dt-partial span {
  display: block; font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: .07em; font-weight: 400; color: var(--dt-muted);
  margin-top: 3px;
}

/* --- Scan log -------------------------------------------------------------------- */
/* Collapsed working, at the foot of the report. The first question when a score looks
   low is whether the site was actually read, and this answers it without a login. */
.dt-log { margin: 26px 0 0; border: 1px solid var(--dt-line); background: #fff; }
.dt-log__summary {
  cursor: pointer; padding: 13px 16px; font-size: 14px; font-weight: 700;
  color: var(--dt-text); display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  list-style: none;
}
.dt-log__summary::-webkit-details-marker { display: none; }
.dt-log__summary::before { content: '+'; font-family: 'IBM Plex Mono', ui-monospace, monospace; color: var(--dt-muted); }
.dt-log[open] .dt-log__summary::before { content: '\2212'; }
.dt-log__flag {
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px;
  letter-spacing: .05em; color: var(--dt-muted); font-weight: 400;
}
.dt-log__body { padding: 0 16px 16px; border-top: 1px solid var(--dt-line); }
.dt-log__stats { margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.75; }
.dt-log__stats li { color: var(--dt-muted); }
.dt-log__stats strong { color: var(--dt-text); }
.dt-log__note { color: var(--dt-muted); }
.dt-log__table { width: 100%; border-collapse: collapse; margin: 14px 0 0; font-size: 13.5px; }
.dt-log__table th {
  text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--dt-line);
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--dt-muted); font-weight: 500;
}
.dt-log__table td { padding: 7px 8px; border-bottom: 1px solid var(--dt-base); vertical-align: top; }
.dt-log__table code { font-size: 12.5px; word-break: break-all; }
.dt-log__foot { margin: 12px 0 0; font-size: 13px; color: var(--dt-muted); line-height: 1.55; max-width: 68ch; }

.dt-coverage {
  margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: var(--dt-muted);
  background: #F4F5F7; border-left: 4px solid var(--dt-line); padding: 12px 14px;
}

.dt-gate--unconfirmed .dt-gate__label { color: var(--dt-muted); }
.dt-gate--unconfirmed { border-left: 4px solid var(--dt-line); padding-left: 12px; }
.dt-gate__note { margin: 8px 0 0; font-size: 13px; color: var(--dt-muted); }

.dt-diff__head--nocompare { color: var(--dt-muted); font-weight: 700; }

/* --- Fetch mode chooser --------------------------------------------------------- */
/* Sits under the scan form. Deliberately quiet: it is a tool for whoever is running
   the scan, not a decision a prospect should feel they have to make. */
.dt-mode {
  margin: 14px 0 0; padding: 12px 14px;
  background: var(--dt-base); border-left: 4px solid var(--dt-line);
  display: flex; flex-direction: column; gap: 8px;
}
.dt-mode__label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dt-muted);
}
.dt-mode__opt { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.dt-mode__opt input { margin-top: 3px; flex: 0 0 auto; }
.dt-mode__opt strong { font-weight: 700; }
.dt-mode__opt span { color: var(--dt-muted); }
.dt-mode__opt strong { color: var(--dt-text); }

.dt-inconclusive__retry { margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* --- What we could still determine ---------------------------------------------- */
/* Shown on a report the site refused. Deliberately looks like evidence rather than a
   warning: this is the part of such a report that is actually worth reading. */
.dt-oob {
  margin: 22px 0 0; padding: 18px 20px;
  background: #fff; border: 1px solid var(--dt-line); border-left: 4px solid var(--dt-text);
}
.dt-oob__head {
  margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--dt-text);
}
.dt-oob__intro { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--dt-muted); max-width: 70ch; }
.dt-oob__list { margin: 0; }
.dt-oob__row {
  display: flex; flex-wrap: wrap; gap: 4px 18px;
  padding: 9px 0; border-top: 1px solid var(--dt-line);
}
.dt-oob__row dt {
  flex: 0 0 180px; font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--dt-muted); padding-top: 2px;
}
.dt-oob__row dd { flex: 1 1 260px; margin: 0; font-size: 14.5px; line-height: 1.55; }
.dt-oob__row dd strong { font-weight: 700; color: var(--dt-text); }
.dt-oob__raw {
  display: block; font-size: 13px; color: var(--dt-muted); line-height: 1.5;
  word-break: break-word;
}
.dt-oob__note {
  margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--dt-line);
  font-size: 14px; line-height: 1.6; color: var(--dt-text); max-width: 70ch;
}

@media (max-width: 640px) {
  .dt-oob__row { flex-direction: column; gap: 2px; }
  .dt-oob__row dt { flex: 1 1 auto; }
}
.dt-inconclusive__retry-note { font-size: 13.5px; color: var(--dt-muted); line-height: 1.5; max-width: 46ch; }

@media (max-width: 640px) {
  .dt-inconclusive__retry { flex-direction: column; align-items: flex-start; }
}

/* Build stamp, so a screenshot always says which version produced it */
.dt-build { text-align: center; color: #9CA3AF; font-size: 12px; margin-top: 8px; }

.dt-group--wins .dt-group__head { border-bottom-color: var(--dt-accent); }
.dt-group--wins .dt-group__title { color: #1C7A45; }
.dt-group--wins .dt-group__count { background: var(--dt-control); color: #1C7A45; }

.dt-compare__auto { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dt-compare__or { color: var(--dt-muted); font-size: 14px; }

/* Technical name shown under the plain-language title. An owner reads the top
   line; whoever actually implements the fix needs the real term to search for. */
.dt-plan__tech, .dt-check__tech {
  display: block; margin: 0 0 10px 38px; font-weight: 500; font-size: 12px;
  color: var(--dt-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.dt-check__tech { margin-left: 0; }

.dt-restale {
  text-align: center; margin-top: 32px; padding: 12px 16px;
  background: var(--dt-blue-bg); border-radius: 0;
  font-size: 14px; color: var(--dt-contrast);
}
.dt-restale a { color: var(--dt-hover); font-weight: 700; }

/* --- Run another scan ------------------------------------------------------- */
.dt-again {
  margin-top: 48px; background: var(--dt-blue-bg);
  border-radius: 0; padding: 28px 32px;
}
.dt-again__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.dt-again__head { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--dt-dark); }
.dt-again__sub { margin: 0; color: var(--dt-muted); font-size: 15px; }
.dt-again__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dt-btn--ghost-dark {
  background: #fff; color: var(--dt-contrast);
  border: 2px solid var(--dt-highlight);
}
.dt-btn--ghost-dark:hover { border-color: var(--dt-hover); color: var(--dt-hover); }
@media (max-width: 640px) {
  .dt-again { padding: 22px; }
  .dt-again__inner { flex-direction: column; align-items: flex-start; }
  .dt-again__actions { width: 100%; }
  .dt-again__actions .dt-btn { flex: 1 1 auto; justify-content: center; }
}

/* --- Market league table ----------------------------------------------------- */
.dt-market__lede { max-width: 700px; margin: 0 0 24px; color: var(--dt-text); font-size: 16px; line-height: 1.6; }
.dt-league { display: grid; gap: 8px; }
.dt-league__row {
  display: grid; grid-template-columns: 44px 1fr 160px 56px;
  align-items: center; gap: 16px; padding: 14px 18px;
  background: #fff; border: 1px solid var(--dt-line); border-radius: 0;
  text-decoration: none; color: var(--dt-text);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.dt-league__row:hover {
  transform: translateY(-2px); border-color: var(--dt-highlight);
  box-shadow: 5px 5px 0 var(--dt-text);
}
.dt-league__row--pending { opacity: .6; grid-template-columns: 44px 1fr auto; }
.dt-league__rank {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 0; background: var(--dt-base);
  font-weight: 800; font-size: 14px; color: var(--dt-contrast);
}
.dt-league__row:first-child .dt-league__rank { background: var(--dt-accent); color: #fff; }
.dt-league__main { min-width: 0; }
.dt-league__domain { display: block; font-weight: 700; font-size: 16px; color: var(--dt-dark); word-break: break-all; }
.dt-league__level { display: block; margin-top: 3px; font-size: 12.5px; color: var(--dt-muted); }
.dt-league__flag {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 0;
  background: var(--dt-risk); color: var(--dt-danger); font-size: 11px; font-weight: 700;
}
.dt-league__score {
  text-align: right; font-size: 22px; font-weight: 800;
  letter-spacing: -.02em; color: var(--dt-contrast); font-variant-numeric: tabular-nums;
}
.dt-league__pending { font-size: 13px; color: var(--dt-muted); font-style: italic; }
@media (max-width: 720px) {
  .dt-league__row { grid-template-columns: 36px 1fr 48px; }
  .dt-league__bar { display: none; }
}

/* Shared gaps across the market.
   Named separately from .dt-gap, which is the comparison list on the report.
   They collided: this rule set display:flex on that list container and every
   comparison card ran off the page in a single unwrapped row. */
.dt-mgaps { display: grid; gap: 10px; }
.dt-mgap {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--dt-risk); border-left: 5px solid var(--dt-danger);
  border-radius: 0; padding: 14px 18px;
}
.dt-mgap__stat {
  flex-shrink: 0; font-size: 18px; font-weight: 800;
  color: var(--dt-danger); font-variant-numeric: tabular-nums; min-width: 54px;
}
.dt-mgap__label { font-weight: 600; color: var(--dt-dark); min-width: 0; }

/* --- Print / Save as PDF ------------------------------------------------------ */
/* The report is the pitch, so it has to survive being printed or attached to an
   email. Everything interactive is either opened or removed. */
@media print {
  @page { margin: 14mm; }

  body { background: #fff !important; }

  header, footer, nav, .dt-cta, .dt-again, .dt-compare__auto, .dt-compare__form,
  .dt-code__actions, .dt-print, [data-dt-compare-progress], .dt-restale {
    display: none !important;
  }

  .dt-report { max-width: 100%; padding: 0; }
  .dt-section { margin-top: 22px; page-break-inside: avoid; }
  .dt-hero { background: #fff !important; border: 2px solid #E5E7EB; }

  /* Folded content must be readable on paper. */
  details { display: block !important; }
  details > summary { display: none !important; }
  .dt-group__fold[open], .dt-group__fold { display: block !important; }
  .dt-fix, .dt-details { display: block !important; }
  .dt-fix__body, .dt-checks { display: block !important; }

  .dt-plan__item, .dt-win, .dt-gap, .dt-league__row { page-break-inside: avoid; }
  .dt-code pre { background: #F8FAFC !important; max-height: none !important; }
  .dt-code code { color: #1F2937 !important; }

  a[href]::after { content: ""; }
  .dt-gauge { width: 150px !important; height: 150px !important; }

  /*
   * The comparison with an earlier scan stays on screen and off paper. A
   * printed report is handed to a dealer as the current position, and an
   * earlier figure on it only raises a question nobody at the table asked.
   */
  .dt-section--diff { display: none !important; }

  /* A guide already printed under an earlier item is not printed again. */
  .dt-fix--repeat { display: none !important; }
  .dt-fix__see { display: block !important; font-size: 10pt; color: #6B7079; margin: 6px 0 0; }

  /* Quotes print. They are the open and close of the document. */
  .dt-quote { page-break-inside: avoid; border-left: 3px solid #D1D5DB; }

  /* ---------------------------------------------------------------------
   * Summary print.
   *
   * Set by the Print summary button, which adds dt-print-brief to <html>.
   * Everything hidden here is implementation detail: the step-by-step fix
   * guides, the files to upload, the full list of every check, and the log
   * of how the scan itself went. The score, the ladder, the findings and
   * the fix list all stay, so the argument survives intact and the page
   * count drops to something an owner will actually read.
   * ------------------------------------------------------------------- */
  .dt-print-brief .dt-fix,
  .dt-print-brief .dt-code,
  .dt-print-brief .dt-section--checks,
  .dt-print-brief .dt-log,
  .dt-print-brief [data-dt-compare],
  .dt-print-brief .dt-ev,
  .dt-print-brief .dt-plan__tech,
  .dt-print-brief .dt-plan__meta,
  .dt-print-brief .dt-sim,
  .dt-print-brief .dt-scan__demo,
  .dt-print-brief .dt-scoreboard {
    display: none !important;
  }

  /*
   * Let sections flow across a page boundary.
   *
   * page-break-inside: avoid on .dt-section is what turned a short summary
   * into a long one. A section taller than the paper cannot be kept whole, so
   * the browser pushes it to a fresh sheet, fails anyway, and leaves the
   * bottom third of the previous page empty. Over nine sections that is
   * several blank pages on its own. Individual items still hold together,
   * which is the part that actually matters for readability.
   */
  .dt-print-brief .dt-section {
    page-break-inside: auto;
    margin-top: 16px;
  }

  .dt-print-brief .dt-plan__item,
  .dt-print-brief .dt-win,
  .dt-print-brief .dt-gap {
    page-break-inside: avoid;
  }

  /* Tighter setting. Same words, fewer sheets. */
  .dt-print-brief .dt-report      { font-size: 10.5pt; line-height: 1.38; }
  .dt-print-brief .dt-section h2  { font-size: 15pt; margin-bottom: 4px; }
  .dt-print-brief .dt-section__sub { font-size: 9.5pt; margin-bottom: 8px; }
  .dt-print-brief .dt-plan__item  { margin-bottom: 8px; padding-bottom: 8px; }
  .dt-print-brief .dt-plan__why,
  .dt-print-brief .dt-plan__cost,
  .dt-print-brief .dt-plan__effort { font-size: 9.5pt; line-height: 1.35; margin-bottom: 3px; }
  .dt-print-brief .dt-plan__label { font-size: 11pt; }
  .dt-print-brief .dt-gauge       { width: 120px !important; height: 120px !important; }
  .dt-print-brief .dt-hero        { padding: 14px !important; }

  /*
   * .dt-oob stays. On a site whose firewall refused us it is the only
   * substantive content on the page, so dropping it from the summary would
   * leave a blocked dealer holding two sheets of explanation and nothing else.
   */
}

/* --- Pull quotes --------------------------------------------------------------- */
.dt-quote {
  margin: 0 0 34px;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--dt-accent, #FFD100);
}

.dt-quote--close { margin: 46px 0 0; }

.dt-quote__text {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--dt-text, #14161A);
}

.dt-quote__by {
  margin-top: 9px;
  font-family: var(--dt-mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dt-muted, #6B7079);
}

@media (max-width: 600px) {
  .dt-quote { margin-bottom: 26px; padding-left: 15px; }
  .dt-quote__text { font-size: 17px; }
}

.dt-print { margin-left: auto; }

/* --- Change since last scan ---------------------------------------------------- */
.dt-diff { border-radius: 0; padding: 24px; border-left: 6px solid; }
.dt-diff--up   { background: var(--dt-control); border-color: var(--dt-accent); }
.dt-diff--down { background: var(--dt-risk);    border-color: var(--dt-danger); }
.dt-diff__head { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--dt-contrast); }
.dt-diff__arrow { margin: 0 8px; color: var(--dt-muted); }
.dt-diff__delta { margin-left: 12px; font-size: 20px; }
.dt-diff--up .dt-diff__delta   { color: #1C7A45; }
.dt-diff--down .dt-diff__delta { color: var(--dt-danger); }
.dt-diff--flat { background: var(--dt-panel, #f4f6f8); border-color: var(--dt-muted); }
.dt-diff--flat .dt-diff__delta { color: var(--dt-muted); }
.dt-diff__when { margin: 6px 0 0; font-size: 14px; color: var(--dt-muted); }
.dt-diff__none { margin: 4px 0 0; max-width: 60ch; }
.dt-diff__level { margin: 8px 0 0; font-weight: 700; color: #1C7A45; }
.dt-diff__label { margin: 18px 0 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--dt-muted); }
.dt-diff__list { margin: 0; padding-left: 20px; }
.dt-diff__list li { margin-bottom: 4px; }
.dt-diff__list--good li { color: #1C7A45; }
.dt-diff__list--bad li  { color: var(--dt-danger); }

/* ===========================================================================
   Responsive safety net
   ---------------------------------------------------------------------------
   Added after a comparison list ran off the page: a later rule turned its
   container into an unwrapped flex row, and nothing in the stylesheet stopped
   the overflow. These rules make that class of bug impossible rather than
   fixing each component as it surfaces.

   Three causes of horizontal overflow, all handled here:
     1. flex rows that never wrap
     2. grid children that refuse to shrink below their content (min-width:auto)
     3. long unbroken strings, which for this tool means domains and URLs
   =========================================================================== */

/* Nothing inside the tool may exceed the viewport.
 *
 * NOT max-width here. On a block element in normal flow max-width:100% buys
 * nothing, because the box already fills its container, but it does sit later
 * in the file than the report's own max-width:1000px and at equal specificity,
 * so it silently won and stretched the report across the whole page. The
 * containment this block exists for comes from overflow-x and from the child
 * rules below, none of which need the parent's width unset. */
.dt-report, .dt-scan, .dt-market { overflow-x: clip; }
.dt-report *, .dt-scan * { max-width: 100%; }

/* Grid and flex children default to min-width:auto, which means a long word
   can push a track wider than its container. This is the single most common
   cause of a layout escaping its parent. */
.dt-report [class^="dt-"], .dt-report [class*=" dt-"],
.dt-scan  [class^="dt-"], .dt-scan  [class*=" dt-"] { min-width: 0; }

/* Any flex row that was not explicitly told to wrap, now wraps. */
.dt-scoreboard, .dt-chain, .dt-again__inner, .dt-again__actions,
.dt-compare__auto, .dt-compare__form, .dt-group__head, .dt-plan__head,
.dt-code__bar, .dt-code__actions, .dt-ev__list li, .dt-ahead,
.dt-sim__row, .dt-sim__fields, .dt-hero__grid, .dt-tally { flex-wrap: wrap; }

/* Domains, URLs and file paths are the long unbroken strings in this tool. */
.dt-league__domain, .dt-hero__domain, .dt-vs td, .dt-gap__who,
.dt-ev__key, .dt-code__name, .dt-plan__tech, .dt-check__tech,
.dt-scan__input, .dt-compare__input { overflow-wrap: anywhere; }

/* Tables scroll rather than stretch the page. */
.dt-vs-wrap, .dt-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dt-vs { min-width: 460px; }

/* Code blocks are the one place a horizontal scrollbar is correct. */
.dt-code pre { max-width: 100%; overflow-x: auto; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .dt-scoreboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .dt-again__inner { flex-direction: column; align-items: stretch; }
  .dt-chain__item { flex: 1 1 calc(33.333% - 6px); }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .dt-report { padding: 24px 16px 60px; }
  .dt-hero, .dt-scan, .dt-cta, .dt-again { padding: 20px; }
  .dt-hero__domain { font-size: 26px; }
  .dt-section h2 { font-size: 22px; }

  .dt-scoreboard { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dt-scoreboard__num { font-size: 26px; }

  .dt-chain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt-chain__item { flex: initial; }

  .dt-plan__item { padding: 16px; }
  .dt-plan__head { grid-template-columns: auto minmax(0, 1fr); }
  .dt-plan__head .dt-tag { grid-column: 2; justify-self: start; margin-top: 4px; }

  .dt-league__row { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; }
  .dt-mgap { flex-direction: column; align-items: flex-start; gap: 6px; }

  .dt-compare__form { flex-direction: column; }
  .dt-compare__input, .dt-compare__form .dt-btn { width: 100%; }
  .dt-again__actions .dt-btn { width: 100%; }

  .dt-gap__head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .dt-sim__row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dt-diff__head { font-size: 26px; }
  .dt-btn { padding: 14px 20px; font-size: 14px; }
}

/* ---------- Small phone ---------- */
@media (max-width: 400px) {
  .dt-scoreboard { grid-template-columns: minmax(0, 1fr); }
  .dt-chain { grid-template-columns: minmax(0, 1fr); }
}

/* Remaining flex rows the audit flagged as unable to wrap. */
.dt-pillar__top, .dt-fix__toggle, .dt-gap__head, .dt-ladder__step,
.dt-group__title, .dt-win, .dt-league__row { flex-wrap: wrap; }

/* Fixed grid tracks become flexible so a long value cannot widen the page.
   minmax(0, …) is the important part: without the zero minimum, a grid track
   refuses to shrink below its content and pushes the whole layout wider. */
.dt-check      { grid-template-columns: minmax(0, 230px) minmax(0, 1fr); }
.dt-radar-wrap { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); }
.dt-league__row          { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 160px) 56px; }
.dt-league__row--pending { grid-template-columns: 44px minmax(0, 1fr) auto; }
.dt-scoreboard { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* The gauge is the one fixed-size element, and it must never be the reason
   the page scrolls sideways. */
.dt-gauge { max-width: 100%; height: auto; }

.dt-ev__list li { flex-wrap: wrap; }

/* Chain intact: shown when no gate fails, so the diagram is never left
   ambiguous about whether the absence of a marker means "fine" or "unknown". */
.dt-chain__intact { margin: 14px 0 0; font-weight: 600; color: #1C7A45; }

/* Level badge on each chain step, tying the chain to the ladder. */
.dt-chain__level { display: block; margin-top: 4px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--dt-muted); }

/* Explainer shown when a strong score sits behind a low level. */
.dt-note--why { border-radius: 0; padding: 20px 24px; margin: 0 0 20px;
  background: var(--dt-control); border-left: 6px solid var(--dt-accent); }
.dt-note--why p { margin: 0 0 10px; max-width: 70ch; }
.dt-note--why p:last-child { margin-bottom: 0; }
.dt-note__head { font-weight: 800; color: var(--dt-contrast); }

/* ---------------------------------------------------------------------------
   Mobile grid collapse. MUST STAY LAST IN THIS FILE.

   Several two-column grids had a max-width media query collapsing them to one
   column, and then a later top-level rule re-declaring the two-column tracks.
   Equal specificity, so source order decides and the later rule won: the media
   queries never applied and the layouts stayed two-column on phones.

   The radar section was the visible casualty. A 460px chart column beside a
   squeezed second column on a 360px screen pushed the pillar labels off the
   edge and stacked them on top of each other.

   Anything added below this block that touches these grid tracks will
   reintroduce the bug.
   --------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .dt-radar-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .dt-radar { max-width: 380px; }
  .dt-check { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .dt-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .dt-radar { max-width: 300px; }
  .dt-chain { grid-template-columns: minmax(0, 1fr); }
  .dt-scoreboard { grid-template-columns: minmax(0, 1fr); }
  .dt-league__row,
  .dt-league__row--pending { grid-template-columns: 36px minmax(0, 1fr) auto; }

  /* Pillar rows: name and percentage on one line, bar beneath, so a long
     label like "Commercial Terms & Quotability" wraps instead of forcing
     the row wider than the screen. */
  .dt-pillar__top { gap: 8px; align-items: baseline; }
  .dt-pillar__name { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
  .dt-pillar__score { flex: 0 0 auto; }
}

/* No horizontal scroll, whatever else happens. */
html, body { max-width: 100%; overflow-x: hidden; }

/* Forward-looking note on the top ladder rung. Deliberately quiet: it is
   context, not a blocker, and must not read as another thing to fix. */
.dt-ladder__horizon { display: block; margin-top: 6px; font-size: 13px;
  line-height: 1.5; color: var(--dt-muted); font-style: italic; max-width: 60ch; }

/* Cross-model comparison caveat. Prominent enough to be read, not alarming:
   the diff is still useful, it just is not a like-for-like score. */
.dt-diff__model { margin: 8px 0 0; padding: 10px 12px; border-radius: 0;
  background: rgba(255,255,255,.6); border-left: 4px solid var(--dt-warn, #d97706);
  font-size: 14px; line-height: 1.5; max-width: 66ch; }


/* Inconclusive banner. Deliberately loud, because a wrong confident report
   costs more credibility than fifty correct ones earn. */
.dt-inconclusive{
  margin: 18px 0 26px;
  padding: 20px 22px;
  background: #fff;
  border: 2px solid var(--dt-text);
  border-left: 8px solid var(--dt-accent);
}
.dt-inconclusive__head{
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.01em;
}
.dt-inconclusive p{ margin: 0 0 10px; font-size: 15.5px; line-height: 1.55; max-width: 72ch; }
.dt-inconclusive p:last-child{ margin-bottom: 0; }


/* Per-surface reachability table. */
.dt-surfaces{ list-style:none; margin:22px 0 0; padding:0; border-top:2px solid var(--dt-text); }
.dt-surface{
  display:flex; align-items:baseline; flex-wrap:wrap;
  padding:13px 0; border-bottom:1px solid var(--dt-line);
}
.dt-surface__name{ flex:0 0 260px; font-weight:700; font-size:16px; padding-right:16px; }
.dt-surface__state{
  flex:0 0 130px;
  font-family:'IBM Plex Mono', ui-monospace, monospace;
  font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; font-weight:600;
}
.dt-surface--allowed .dt-surface__state{ color:#1C7A45; }
.dt-surface--partial .dt-surface__state{ color:var(--dt-warn); }
.dt-surface--blocked .dt-surface__state{ color:var(--dt-danger); }
.dt-surface__note{ flex:1 1 auto; min-width:0; color:var(--dt-muted); font-size:14.5px; }

@media (max-width:760px){
  .dt-surface__name{ flex:1 1 100%; }
  .dt-surface__state{ flex:0 0 auto; margin-right:12px; }
  .dt-surface__note{ flex:1 1 100%; margin-top:4px; }
}

/* --- Browser-assisted scan panel ------------------------------------------------ */
.dt-assist {
  margin-top: 22px;
  padding: 20px 22px;
  background: var(--dt-card, #fff);
  border: 1.5px solid var(--dt-text, #14161A);
  text-align: left;
}
.dt-assist__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.dt-assist__lead  { margin: 0 0 12px; font-size: 15px; }
.dt-assist__steps { margin: 0 0 10px 20px; padding: 0; font-size: 15px; }
.dt-assist__steps li { margin-bottom: 10px; }
.dt-assist__mark  { display: inline-block; margin: 8px 0 0; cursor: grab; }
.dt-assist__note  { margin: 0; font-size: 12.5px; color: var(--dt-muted, #6B7079); }
.dt-stamp--browser { max-width: 640px; }
@media print { .dt-assist { display: none !important; } }

/* Pointer to an earlier item's guide. Print only. */
.dt-fix__see { display: none; }

/* Off-site footprint: score make-up panel and the findings table. */
.dt-makeup { background: var(--dt-base); border-left: 4px solid var(--dt-accent); padding: 20px 22px; margin: 0 0 22px; }
.dt-makeup__head { margin: 0 0 6px; font-size: 19px; font-weight: 800; color: var(--dt-contrast); }
.dt-makeup__lede, .dt-makeup__note { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--dt-muted); max-width: 760px; }
.dt-makeup__note { margin: 14px 0 0; }
.dt-makeup__table { width: 100%; border-collapse: collapse; background: #fff; }
.dt-makeup__table th, .dt-makeup__table td { text-align: left; padding: 10px 14px; border: 1px solid var(--dt-line); font-size: 15px; }
.dt-makeup__table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dt-muted); font-weight: 700; }
.dt-makeup__table td { font-variant-numeric: tabular-nums; }
.dt-makeup__table tbody th { font-weight: 700; color: var(--dt-contrast); }
.dt-makeup__total th, .dt-makeup__total td { font-weight: 800; background: var(--dt-control); color: var(--dt-contrast); }

.dt-offsite { width: 100%; border-collapse: collapse; margin: 0 0 4px; }
.dt-offsite th, .dt-offsite td { text-align: left; vertical-align: top; padding: 14px; border: 1px solid var(--dt-line); font-size: 15px; line-height: 1.5; }
.dt-offsite thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dt-muted); font-weight: 700; }
.dt-offsite tbody th { width: 24%; font-weight: 700; color: var(--dt-contrast); }
.dt-offsite__sum { width: 14%; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--dt-contrast); }
.dt-offsite__foot th, .dt-offsite__foot td { font-weight: 800; background: var(--dt-control); color: var(--dt-contrast); }
.dt-offsite__checks { list-style: none; margin: 10px 0 0; padding: 0; }
.dt-offsite__check { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px dashed var(--dt-line); font-size: 14px; }
.dt-offsite__state { flex: 0 0 96px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.dt-offsite__what { flex: 1 1 auto; min-width: 0; color: var(--dt-muted); }
.dt-offsite__what strong { color: var(--dt-contrast); font-weight: 700; }
.dt-offsite__pts { flex: 0 0 auto; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--dt-muted); }
.dt-offsite__check--pass .dt-offsite__state { color: #1c7a45; }
.dt-offsite__check--partial .dt-offsite__state { color: #9a6700; }
.dt-offsite__check--fail .dt-offsite__state { color: var(--dt-warn); }
.dt-offsite__check--skip .dt-offsite__state { color: var(--dt-muted); }
@media (max-width: 700px) {
  .dt-offsite thead { display: none; }
  .dt-offsite tr, .dt-offsite th, .dt-offsite td { display: block; width: auto; }
  .dt-offsite th, .dt-offsite td { border-width: 0 1px; padding: 6px 12px; }
  .dt-offsite tr { border-top: 1px solid var(--dt-line); border-bottom: 1px solid var(--dt-line); margin-bottom: 10px; padding: 6px 0; }
  .dt-offsite__sum::before { content: 'Points: '; font-weight: 400; color: var(--dt-muted); }
  .dt-offsite__check { flex-wrap: wrap; }
  .dt-makeup__table th, .dt-makeup__table td { padding: 8px; font-size: 13px; }
}
@media print {
  .dt-offsite th, .dt-offsite td, .dt-makeup__table th, .dt-makeup__table td { padding: 6px 8px; font-size: 10pt; }
  .dt-makeup, .dt-offsite tr { page-break-inside: avoid; }
}

/* Two-part score under the gauge. */
.dt-parts { display: grid; grid-template-columns: 7fr 3fr; gap: 16px; margin-top: 26px; padding-top: 24px; border-top: 2px solid var(--dt-text); }
.dt-part { background: var(--dt-base); padding: 18px 20px; border-top: 4px solid var(--dt-accent); }
.dt-part__kicker { margin: 0; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--dt-hover); }
.dt-part__name { margin: 2px 0 8px; font-size: 18px; font-weight: 800; color: var(--dt-contrast); }
.dt-part__num { margin: 0 0 8px; color: var(--dt-muted); font-size: 14px; }
.dt-part__num strong { font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--dt-contrast); margin-right: 6px; font-variant-numeric: tabular-nums; }
.dt-part__bar { height: 8px; background: var(--dt-line); }
.dt-part__bar span { display: block; height: 100%; background: var(--dt-accent); }
.dt-part__alone { margin: 6px 0 8px; font-size: 13px; font-weight: 700; color: var(--dt-contrast); }
.dt-part__what { margin: 0; font-size: 14px; line-height: 1.5; color: var(--dt-muted); }
.dt-parts__sum { margin: 14px 0 0; font-size: 15px; color: var(--dt-muted); }
.dt-parts__sum strong { color: var(--dt-contrast); }
.dt-part--off { padding: 16px 16px; }
.dt-part--off .dt-part__name { font-size: 16px; }
.dt-part--off .dt-part__num strong { font-size: 28px; }
.dt-part--flag { border-top-color: var(--dt-danger); }
.dt-part--flag .dt-part__bar span { background: var(--dt-danger); }
.dt-part__band { display: inline-block; margin-right: 8px; padding: 2px 8px; background: var(--dt-contrast); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; vertical-align: 1px; }
.dt-part__band--low { background: var(--dt-danger); }
.dt-part__flag { margin: 12px 0 0; padding: 10px 12px; background: var(--dt-risk); border-left: 4px solid var(--dt-danger); font-size: 15px; line-height: 1.45; font-weight: 700; color: var(--dt-danger); }
.dt-parts__alert { margin: 14px 0 0; padding: 12px 14px; background: var(--dt-risk); border-left: 4px solid var(--dt-danger); font-size: 16px; line-height: 1.45; color: var(--dt-danger); }
.dt-parts__how { margin: 14px 0 0; padding: 12px 14px; background: var(--dt-control); border-left: 4px solid var(--dt-accent); font-size: 15px; line-height: 1.55; color: var(--dt-contrast); }
@media print { .dt-part__band, .dt-part__flag, .dt-parts__alert, .dt-parts__how { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* What goes into the score: on-site and off-site in one table. */
.dt-factors { width: 100%; border-collapse: collapse; margin: 0 0 8px; }
.dt-factors th, .dt-factors td { text-align: left; vertical-align: middle; padding: 12px 14px; border: 1px solid var(--dt-line); font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.dt-factors thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dt-muted); font-weight: 700; }
.dt-factors tbody th { width: 27%; }
.dt-factors td:nth-child(3), .dt-factors td:nth-child(4), .dt-factors td:nth-child(5) { white-space: nowrap; }
@media (max-width: 700px) { .dt-factors td:nth-child(3), .dt-factors td:nth-child(4), .dt-factors td:nth-child(5) { white-space: normal; } }
.dt-factors__group th, .dt-factors__group td { background: #fff; color: var(--dt-contrast); font-weight: 700; }
.dt-factors__group td:nth-child(2) { font-weight: 400; color: var(--dt-muted); }
.dt-factors__group strong { font-size: 20px; font-weight: 800; }
.dt-factors__tag { display: inline-block; margin-right: 10px; padding: 3px 8px; background: var(--dt-accent); color: var(--dt-contrast); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; vertical-align: middle; }
.dt-factors__sub th { padding-left: 34px; font-weight: 600; color: var(--dt-contrast); }
.dt-factors__sub td { color: var(--dt-muted); }
.dt-factors__total th, .dt-factors__total td { font-weight: 800; background: var(--dt-control); color: var(--dt-contrast); }
@media (max-width: 700px) {
  .dt-parts { grid-template-columns: 1fr; }
  .dt-factors thead { display: none; }
  .dt-factors tr, .dt-factors th, .dt-factors td { display: block; width: auto; }
  .dt-factors th, .dt-factors td { border-width: 0 1px; padding: 5px 12px; }
  .dt-factors tr { border-top: 1px solid var(--dt-line); border-bottom: 1px solid var(--dt-line); margin-bottom: 10px; padding: 6px 0; }
  .dt-factors td:nth-child(3)::before { content: 'Points available: '; color: var(--dt-muted); font-weight: 400; }
  .dt-factors td:nth-child(4)::before { content: 'Points earned: '; color: var(--dt-muted); font-weight: 400; }
  .dt-factors__sub th { padding-left: 12px; }
}
@media print {
  .dt-parts { page-break-inside: avoid; }
  .dt-factors th, .dt-factors td { padding: 6px 8px; font-size: 10pt; }
  .dt-factors tr { page-break-inside: avoid; }
  .dt-part__bar span, .dt-factors__tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Score band and what is left, beside the gauge. */
.dt-band { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.dt-band__name { display: inline-block; padding: 4px 10px; background: var(--dt-contrast); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.dt-band__text { font-size: 16px; color: var(--dt-contrast); font-weight: 600; }
.dt-left { margin: 0 0 14px; padding: 12px 14px; background: var(--dt-control); border-left: 4px solid var(--dt-accent); font-size: 15px; line-height: 1.5; color: var(--dt-contrast); }
@media print { .dt-band__name, .dt-left { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }


/* --- Print, second pass -------------------------------------------------------
   Headings stay with what follows them, the closing lines stay off a sheet of
   their own, and the summary is set tightly enough to stay inside ten pages. */
@media print {
  .dt-ago { display: none; }
  .dt-stamp { margin-top: 14px; }
  .dt-section h2, .dt-section__sub, .dt-group__head, .dt-group__sub { break-after: avoid; page-break-after: avoid; }
  .dt-win { flex-wrap: nowrap; }
  .dt-offsite tr, .dt-factors tr { break-inside: avoid; page-break-inside: avoid; }

  /* Score block: gauge beside the verdict so the two parts fit on page one. */
  .dt-print-brief .dt-hero__grid { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 16px; align-items: start; }
  .dt-print-brief .dt-hero__domain { font-size: 22pt; margin-bottom: 6px; }
  .dt-print-brief .dt-gauge { width: 112px !important; height: 112px !important; }
  .dt-print-brief .dt-parts { margin-top: 12px; padding-top: 12px; gap: 10px; }
  .dt-print-brief .dt-part { padding: 10px 12px; }
  .dt-print-brief .dt-part__num strong { font-size: 20pt; }
  .dt-print-brief .dt-part__what, .dt-print-brief .dt-part__flag { font-size: 9.5pt; line-height: 1.35; }
  .dt-print-brief .dt-parts__sum, .dt-print-brief .dt-parts__alert, .dt-print-brief .dt-parts__how { font-size: 9.5pt; line-height: 1.4; margin-top: 8px; padding-top: 7px; padding-bottom: 7px; }
  .dt-print-brief .dt-parts__sum { padding: 0; }
  .dt-print-brief .dt-gate { margin-top: 8px; padding: 8px 12px; }

  /* Tables. */
  .dt-print-brief .dt-factors th, .dt-print-brief .dt-factors td,
  .dt-print-brief .dt-offsite th, .dt-print-brief .dt-offsite td { padding: 5px 8px; font-size: 9.5pt; line-height: 1.35; }
  .dt-print-brief .dt-offsite__checks { margin-top: 4px; }
  .dt-print-brief .dt-offsite__check { padding: 3px 0; font-size: 9.5pt; }
  .dt-print-brief .dt-offsite__what br { display: none; }
  .dt-print-brief .dt-offsite__what { font-size: 0; }
  .dt-print-brief .dt-offsite__what strong { font-size: 9.5pt; }
  .dt-print-brief .dt-note { font-size: 9pt; }

  /* Ladder: one line per level. */
  .dt-print-brief .dt-ladder { gap: 3px; }
  .dt-print-brief .dt-ladder__step { padding: 4px 10px; gap: 10px; align-items: center; box-shadow: none; }
  .dt-print-brief .dt-ladder__num { width: 20px; height: 20px; font-size: 9pt; }
  .dt-print-brief .dt-ladder__name { display: inline; margin: 0 8px 0 0; font-size: 10pt; }
  .dt-print-brief .dt-ladder__desc { display: inline; font-size: 9.5pt; }
  .dt-print-brief .dt-ladder__block { margin-top: 2px; font-size: 9.5pt; }
  .dt-print-brief .dt-ladder__horizon { display: none; }
  .dt-print-brief .dt-section:not(.dt-section--firewall) .dt-note--why { display: none; }
  .dt-print-brief .dt-section--firewall .dt-note { font-size: 9.5pt; padding: 8px 12px; }
  .dt-print-brief .dt-section--firewall .dt-note p { margin: 0 0 4px; }

  /* AI surfaces: three across. An allowed surface needs no note. */
  .dt-print-brief .dt-surfaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; margin-top: 6px; border-top: 0; }
  .dt-print-brief .dt-surface { padding: 4px 0; display: block; }
  .dt-print-brief .dt-surface__name { display: block; font-size: 10pt; padding: 0; }
  .dt-print-brief .dt-surface__state { font-size: 8pt; }
  .dt-print-brief .dt-surface--allowed .dt-surface__note { display: none; }
  .dt-print-brief .dt-surface__note { display: block; font-size: 9pt; }

  /* Chain: one row. */
  .dt-print-brief .dt-chain { display: flex; flex-wrap: nowrap; gap: 4px; }
  .dt-print-brief .dt-chain__item { flex: 1 1 0; padding: 6px 4px; font-size: 9pt; }
  .dt-print-brief .dt-chain__level { font-size: 7.5pt; }

  /* Ten areas: the figures in two columns, without the chart. */
  .dt-print-brief .dt-radar-wrap { display: block; }
  .dt-print-brief .dt-radar { display: none !important; }
  .dt-print-brief .dt-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 28px; }
  .dt-print-brief .dt-pillar__top { margin-bottom: 2px; font-size: 9.5pt; }
  .dt-print-brief .dt-meter { height: 5px; }

  /* Fix list. */
  .dt-print-brief .dt-group { margin-bottom: 12px; }
  .dt-print-brief .dt-group__title { font-size: 13pt; }
  .dt-print-brief .dt-group__sub { font-size: 9.5pt; margin: 4px 0 6px; }
  .dt-print-brief .dt-fix__see, .dt-print-brief .dt-plan__cost { display: none !important; }
  .dt-print-brief .dt-plan { display: block; margin: 0; padding: 0; }
  .dt-print-brief .dt-plan__item { padding: 6px 10px; margin-bottom: 4px; border-left-width: 3px; box-shadow: none; }
  .dt-print-brief .dt-plan__head { margin-bottom: 1px; }
  .dt-print-brief .dt-plan__effort { font-size: 7.5pt; margin: 0 0 1px; }
  .dt-print-brief .dt-plan__why { margin: 0; padding: 0; background: none; border: 0; }
  .dt-print-brief .dt-plan__detail-label { display: none; }
  /* The two long tails print as a list of titles and points. */
  .dt-print-brief .dt-plan--tail { columns: 2; column-gap: 22px; }
  .dt-print-brief .dt-plan--tail .dt-plan__item { padding: 2px 8px; margin-bottom: 2px; border-top: 0; border-right: 0; border-bottom: 0; break-inside: avoid; }
  .dt-print-brief .dt-plan--tail .dt-plan__effort, .dt-print-brief .dt-plan--tail .dt-plan__why { display: none; }
  .dt-print-brief .dt-plan--tail .dt-plan__label { font-size: 9.5pt; font-weight: 600; }
  /* Already working: titles only, two columns. */
  .dt-print-brief .dt-wins { display: block; columns: 2; column-gap: 22px; margin-top: 2px; }
  .dt-print-brief .dt-win { padding: 1px 0; margin: 0; border: 0; background: none; box-shadow: none; font-size: 9.5pt; }
  .dt-print-brief .dt-win__label { font-size: 9.5pt; font-weight: 600; }
  .dt-print-brief .dt-win__note { display: none; }

  .dt-print-brief .dt-quote { margin-top: 10px; }
  .dt-print-brief .dt-answer, .dt-print-brief .dt-preview { font-size: 9.5pt; }
}
@media print {
  .dt-print-brief .dt-chat { padding: 10px 12px; }
  .dt-print-brief .dt-chat__q { font-size: 11pt; margin: 0 0 6px; }
  .dt-print-brief .dt-chat__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .dt-print-brief .dt-chat__side { padding: 8px 10px; margin: 0; font-size: 9.5pt; line-height: 1.4; }
  .dt-print-brief .dt-chat__side p { margin: 2px 0 0; font-size: 9.5pt; line-height: 1.4; }
  .dt-print-brief .dt-chat__gap { margin: 6px 0 0; padding-top: 6px; font-size: 9.5pt; }
}
@media print {
  /* On paper the two parts stack, each kept whole, so the first page fills
     and neither box is cut in half by the page edge. */
  .dt-print-brief .dt-parts { display: block; page-break-inside: auto; break-inside: auto; }
  .dt-print-brief .dt-part { break-inside: avoid; page-break-inside: avoid; margin-bottom: 8px; }
  .dt-print-brief .dt-chat, .dt-print-brief .dt-parts__how, .dt-print-brief .dt-parts__alert { break-inside: avoid; page-break-inside: avoid; }
}

.dt-chat__note { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--dt-muted); }
@media print { .dt-print-brief .dt-chat__note { font-size: 8.5pt; margin-top: 5px; } }
