:root {
  --qa-speed: #004cc9;
  --qa-speed-strong: #003d9f;
  --qa-speed-tint: #edf4ff;
  --qa-diagnose: #096456;
  --qa-diagnose-tint: #eaf8f3;
  --qa-choose: #7e4908;
  --qa-choose-tint: #fff4df;
}
.wx-hero > .wx-speed { min-width: 0; align-self: start; border-color: #b4cdf7; border-top: 4px solid var(--qa-speed); }
.wx-hero .wx-actions > :first-child, .wx-mobile > a[href$="#speed-test"], .wx-result-link:not([hidden]) {
  background: var(--qa-speed); border-color: var(--qa-speed); color: #fff;
}
.wx-hero .wx-actions > :first-child:hover, .wx-mobile > a[href$="#speed-test"]:hover, .wx-result-link:not([hidden]):hover {
  background: var(--qa-speed-strong); color: #fff;
}
.wx-hero .wx-actions > a[href="#diagnosis"] { background: var(--qa-diagnose-tint); color: var(--qa-diagnose); border-color: #95c9bd; }
.wx-test-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; margin-block: 1rem; align-items: start; }
.wx-go-wrap { display: block; }
.wx-speed button#wx-start {
  width: 100%; height: auto; min-height: 60px; padding: 12px 16px;
  display: flex; flex-flow: row nowrap; align-items: center; justify-content: center; gap: .65em;
  background: var(--qa-speed); color: #fff; border: 2px solid var(--qa-speed-strong); border-radius: 8px;
  box-shadow: 0 3px 0 var(--qa-speed-strong); animation: none; transform: none;
}
.wx-speed button#wx-start::before, .wx-speed button#wx-start::after { content: none; }
.wx-speed #wx-start span { font-size: 1.16rem; line-height: 1.25; letter-spacing: 0; }
.wx-speed #wx-start svg { width: 1.25rem; height: 1.25rem; flex: none; }
.wx-speed button#wx-start:hover:not(:disabled) { background: var(--qa-speed-strong); color: #fff; transform: none; }
.wx-speed button#wx-start:disabled { opacity: 1; background: var(--qa-speed-tint); color: var(--qa-speed-strong); border-color: #a2c2f8; box-shadow: none; }
.wx-speed button#wx-start:focus-visible { outline: 3px solid var(--qa-speed-strong); outline-offset: 4px; }
.wx-test-notes .wx-data-note { margin: 0; max-width: 54ch; }
.wx-stop:not([hidden]) { display: inline-flex; align-items: center; color: var(--qa-speed-strong); }
.wx-result-link:not([hidden]) { justify-content: center; gap: .5em; padding: 8px 12px; border-radius: 6px; text-align: center; }

.wt-start-here { margin-block: 0 2rem; }
.wt-start-option, .qa-cable-path {
  --tool-fg: var(--qa-speed); --tool-bg: var(--qa-speed-tint); --tool-line: #abc8fa;
}
.wt-start-option[href="#diagnosis"] { --tool-fg: var(--qa-diagnose); --tool-bg: var(--qa-diagnose-tint); --tool-line: #9dcbbf; }
.qa-cable-path, .qa-cable-path .wt-start-option { --tool-fg: var(--qa-choose); --tool-bg: var(--qa-choose-tint); --tool-line: #dfc29d; min-width: 0; }
.wt-start-option, .qa-cable-path { border-color: var(--tool-line); border-inline-start: 4px solid var(--tool-fg); background: var(--tool-bg); border-radius: 8px; }
.wt-start-option strong, .wt-start-option > span > span, .qa-cable-path > a { color: var(--tool-fg); }
.wt-start-option:hover, .wt-start-option:focus-visible { border-color: var(--tool-fg); transform: none; }
.qa-cable-path .wt-start-option { border: 0; min-height: auto; padding-block: 12px 0; }
.qa-cable-path > a:last-child { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 14px; font-weight: 700; font-size: .875rem; }

.wx-diagnosis .wx-kicker, .wx-symptom-number, .wx-symptom-arrow, .wt-coach .wt-coach-kicker { color: var(--qa-diagnose); }
.wx-symptom:hover, .wx-symptom[aria-pressed="true"] { background: var(--qa-diagnose-tint); border-color: var(--qa-diagnose); }
.wx-symptom[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--qa-diagnose); }
#wx-diagnosis-form button, .wx-result-heading a[href="#diagnosis"] { background: var(--qa-diagnose); color: #fff; border-color: var(--qa-diagnose); }
.wx-diagnosis .wg-outcome-advice { background: var(--qa-diagnose-tint); border-left-color: var(--qa-diagnose); }
[data-wu-task-first="selector"] :is(.eyebrow, .wt-tool__eyebrow) { color: var(--qa-choose); }
[data-wu-task-first="selector"] .wt-choice { border-top: 3px solid var(--qa-choose); background: var(--qa-choose-tint); }
[data-wu-task-first="selector"] .wt-choice button[type="submit"] { color: #fff; background: var(--qa-choose); border-color: var(--qa-choose); }
[data-wu-task-first="selector"] .wt-choice button[type="submit"]:hover { background: #613703; }
[data-wu-task-first="selector"] :is(#selector-result, .wu-result-actions) :is(a, button):focus-visible { outline-color: var(--qa-choose); }

.qa-latest { margin-block: 2rem 3rem; padding-block: 1.6rem; border-block: 1px solid var(--line,#dbe2ed); }
.qa-latest > h2 { margin: 0 0 .35rem; }
.qa-latest > p { margin: 0 0 1rem; max-width: 68ch; }
.qa-guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.1rem; }
.qa-guide { min-width: 0; color: inherit; display: grid; align-content: start; gap: .45rem; text-decoration: none; }
.qa-guide img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #edf4fa; }
.qa-guide strong { color: var(--ink,#03022e); font-size: 1.12rem; }
.qa-guide:hover strong, .qa-guide:focus-visible strong { text-decoration: underline; text-underline-offset: 3px; }
.qa-guide small { color: var(--qa-speed); font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.qa-guide[data-tone="diagnose"] small { color: var(--qa-diagnose); }
.qa-guide[data-tone="choose"] small { color: var(--qa-choose); }
.qa-guide span { color: var(--muted,#465369); line-height: 1.5; }
.qa-photo-credit { display: block; margin: .3rem 0 0; color: var(--muted,#465369); font-size: .75rem; line-height: 1.45; }
.qa-method-figure img { display: block; width: 100%; height: auto; border: 1px solid #cae0f8; border-radius: 8px; }
.qa-guide-tool { display: inline-flex; align-items: center; min-height: 44px; margin-block: .5rem 1.5rem; padding: .55em .85em; background: var(--qa-speed); color: #fff!important; border-radius: 6px; }
.qa-guide-tool[data-tone="diagnose"] { background: var(--qa-diagnose); }

@media (max-width: 600px) {
  .wx-hero .wx-speed { margin-top: 12px; }
  .wt-start-here { margin-block: .4rem 1.6rem; }
  .qa-guide-grid { grid-template-columns: minmax(0,1fr); gap: 1.45rem; }
  #wx-comparison table { width: 100%; table-layout: fixed; font-size: .75rem; }
  #wx-comparison th:first-child { width: 36%; }
  #wx-comparison :is(td,th) { padding-inline: 3px; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .wx-speed #wx-start, .wt-start-option { transition: none; }
}
