/* Tools v2 (2026-11-08): Old Site X-Ray, ADA Plain-English Scan, the website
   checkup. Shared by the tool pages and their result pages, on the svc-v2
   system. Prefix tv2-. Mobile first; every layout works at 360px. */

.tv2-tool { max-width: 760px; margin: 0 auto; }
.tv2-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card, 12px); padding: var(--s6); box-shadow: 0 2px 10px rgba(20, 48, 73, .06); }
.tv2-form { display: grid; gap: var(--s4); }
.tv2-form .input { width: 100%; font: inherit; }
.tv2-check { display: flex; gap: var(--s3); align-items: flex-start; font-weight: 400; }
.tv2-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.tv2-passive { margin: 0; color: var(--muted); font-size: var(--fs-small); }
.tv2-status { min-height: 1.5em; margin: 0; font-weight: 600; color: var(--ink); }
.tv2-status:empty { min-height: 0; }
.tv2-progress { display: grid; gap: var(--s2); }
.tv2-progress[hidden] { display: none; }
.tv2-bar { width: 100%; height: 10px; border-radius: 5px; background: var(--mist); overflow: hidden; }
.tv2-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0C4A6E, #0E7490); transition: width .4s ease; }
@media (prefers-reduced-motion: reduce) { .tv2-bar span { transition: none; } }
.tv2-cached { border-left: 4px solid var(--teal); background: var(--teal-tint); padding: var(--s4); border-radius: 8px; display: grid; gap: var(--s3); }
.tv2-cached[hidden] { display: none; }
.tv2-cached p { margin: 0; }
.tv2-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.tv2-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-text); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; min-height: 24px; }
.tv2-error { color: var(--ochre-text); }

/* Results */
.tv2-head { display: grid; gap: var(--s3); }
.tv2-headline { font-family: var(--font-serif); font-size: var(--fs-h2); line-height: 1.2; color: var(--white); margin: 0; max-width: 34ch; }
.tv2-evidence { margin: 0; padding-left: 1.2em; color: var(--on-navy); display: grid; gap: 4px; }
.tv2-meta { color: var(--on-navy-muted); margin: 0; font-size: var(--fs-small); }
.tv2-meta a { color: var(--teal-on-navy); }
.tv2-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.tv2-stats li { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: var(--s4); display: grid; gap: 2px; }
.tv2-stats b { font-family: var(--font-serif); font-size: 1.75rem; color: var(--ink); line-height: 1.1; }
.tv2-stats span { color: var(--muted); font-size: var(--fs-small); }
@media (min-width: 760px) { .tv2-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tv2-shots { display: grid; gap: var(--s6); }
@media (min-width: 760px) { .tv2-shots { grid-template-columns: 1fr 1fr; align-items: start; } }
.tv2-shots figure { margin: 0; display: grid; gap: var(--s2); }
.tv2-shots img { width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--mist); }
.tv2-shots figcaption { color: var(--muted); font-size: var(--fs-small); }
.tv2-shot-now img { max-width: 320px; }

.tv2-years { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.tv2-years a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 18px; color: var(--teal-text); font-weight: 600; text-decoration: none; }
.tv2-years a:hover, .tv2-years a:focus-visible { border-color: var(--teal); background: var(--teal-tint); }

.tv2-findings { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.tv2-finding { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 10px; padding: var(--s5); display: grid; gap: var(--s2); }
.tv2-finding h3 { margin: 0; font-size: var(--fs-h3); }
.tv2-finding p { margin: 0; max-width: var(--measure); }
.tv2-finding .tv2-fix { font-weight: 600; color: var(--ink); }
.tv2-finding .tv2-ev { color: var(--muted); font-size: var(--fs-small); overflow-wrap: anywhere; }
.tv2-good { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s2); }

/* Label/value tables that stack into labeled cards under 640px */
.tv2-table-wrap { overflow-x: auto; }
.tv2-table { width: 100%; border-collapse: collapse; background: var(--white); }
.tv2-table th, .tv2-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.tv2-table thead th { background: var(--mist); color: var(--ink); font-size: var(--fs-small); }
.tv2-table tbody th { width: 34%; color: var(--ink); }
@media (max-width: 639px) {
  .tv2-table.tv2-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tv2-table.tv2-stack, .tv2-table.tv2-stack tbody, .tv2-table.tv2-stack tr, .tv2-table.tv2-stack td, .tv2-table.tv2-stack tbody th { display: block; width: auto; }
  .tv2-table.tv2-stack tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: var(--s3); padding: var(--s2) 0; }
  .tv2-table.tv2-stack td, .tv2-table.tv2-stack tbody th { border: 0; padding: 4px 12px; }
  .tv2-table.tv2-stack td[data-label]::before { content: attr(data-label); display: block; font-weight: 700; font-size: var(--fs-tiny); color: var(--muted); }
}

.tv2-panel { border-radius: 12px; padding: var(--s6); background: var(--navy); color: var(--on-navy); display: grid; gap: var(--s4); }
.tv2-panel h2, .tv2-panel h3 { color: var(--white); margin: 0; }
.tv2-panel p { margin: 0; max-width: var(--measure); }
.tv2-panel a:not(.v2-btn):not(.v2-book) { color: var(--teal-on-navy); }
.tv2-email { display: grid; gap: var(--s3); max-width: 560px; }
.tv2-email .tv2-row .input { flex: 1 1 220px; }
.tv2-disclaimer { color: var(--muted); font-size: var(--fs-small); }
.tv2-print-only { display: none; }
.tv2-toolbar { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Chips (who is affected) */
.tv2-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.tv2-chips li { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 16px; background: var(--white); color: var(--ink); font-size: var(--fs-small); border: 1px solid var(--line-strong); }
.tv2-chips b { font-weight: 700; }

/* Print: the result only, with the logo at the top and the site address at the foot. */
@media print {
  .site-header, .site-footer, .dock, .dock-hint, .dock-sheet, .klaro, .v2-crumbs, .tv2-no-print, .skip-link { display: none !important; }
  .tv2-print-only { display: block !important; }
  body { background: #fff !important; color: #000 !important; }
  .v2-hero, .tv2-panel { background: #fff !important; color: #000 !important; border: 1px solid #999; }
  .tv2-headline, .tv2-panel h2, .tv2-panel h3, .v2-hero .v2-h1 { color: #000 !important; }
  .tv2-evidence, .tv2-meta, .tv2-panel p { color: #222 !important; }
  .tv2-finding, .tv2-stats li { break-inside: avoid; }
  a { color: #000 !important; }
  .tv2-print-logo { width: 220px; height: auto; margin-bottom: 12px; }
  .tv2-print-foot { position: fixed; bottom: 0; left: 0; right: 0; text-align: center; font-size: 11px; color: #333; }
  details { display: block; }
  details > * { display: block !important; }
}
.tv2-limits { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s3); }
.tv2-limits li { max-width: var(--measure); }

/* Result heroes and panels on navy. `.svc-v2 main p` and the crumb colors
   outrank plain class rules, so these carry the extra scope. */
.svc-v2 .v2-hero.tv2-hero, .svc-v2 main .v2-hero.tv2-hero { background: linear-gradient(135deg, #0C4A6E 0%, #143049 60%); color: var(--on-navy); }
.svc-v2 .tv2-hero .v2-crumbs a, .svc-v2 .tv2-hero .v2-crumbs span { color: var(--on-navy); }
.svc-v2 .tv2-hero .eyebrow { color: var(--teal-on-navy); }
.svc-v2 main .tv2-hero p, .svc-v2 main .tv2-hero li { color: var(--on-navy); }
.svc-v2 main .tv2-hero .tv2-headline { color: var(--white); }
.svc-v2 main .tv2-panel p, .svc-v2 main .tv2-panel li { color: var(--on-navy); }
.svc-v2 main .tv2-chips li, .svc-v2 main .tv2-chips li span { color: var(--ink); }

/* Text links on the tool and result pages: svc-v2 resets link color in main,
   so set it back (underlined, so it never relies on color alone). */
.page-tv2 main a:not(.button):not(.v2-btn):not(.v2-book):not(.hu-chip) { color: var(--teal-text); text-decoration: underline; text-underline-offset: .18em; }
.page-tv2 main .tv2-years a { text-decoration: none; }
.page-tv2 main .tv2-hero a:not(.button):not(.v2-btn):not(.v2-book):not(.hu-chip) { color: var(--teal-on-navy); }
.page-tv2 main .tv2-hero .v2-crumbs a:not(.button):not(.v2-btn):not(.v2-book):not(.hu-chip) { color: var(--on-navy); }
.page-tv2 main .tv2-panel a:not(.button):not(.v2-btn):not(.v2-book):not(.hu-chip) { color: var(--teal-on-navy); }
.page-tv2 main .tv2-panel .v2-book { color: var(--white); }
