/* DemandStream Digital: Tool pages (/tools/ and /tools/<slug>/, page-templates/template-tool.php).
   Loads after home-dark.css + glowup.css + about.css + service.css. Same tokens and look as the pricing page's package
   finder: white cards with a hairline border on the gray ground, 4px radius, ink #15171B, one red primary button.
   Grounds: hero navy/red wash · tool gray · how it works navy · FAQ gray · contact. */

/* ---- Hero: the service hero without the form column ---- */
.tl-hero { padding-bottom: 88px; }
.tl-hero .sv-hero__copy { max-width: 900px; }

/* ---- Light ground for the tool and the tool list (same token set as .wp-packages) ---- */
.tl-section {
  --hd-bg: #EEF1F5; --hd-bg-2: #F7F9FB; --hd-card: #FFFFFF; --hd-navy: #E1E6ED; --hd-line: #D3DAE3;
  --hd-white: #15171B; --hd-text: #3A3E45; --hd-muted: #5F646C; --hd-red-text: #B3222B;
  --lx-hair: rgba(21, 23, 27, 0.12); --lx-hair-strong: rgba(21, 23, 27, 0.24); --lx-surface: rgba(21, 23, 27, 0.03);
  --lx-ink: #15171B; --lx-ink-2: #2C3036; --lx-ink-3: #3A3E45;
  color: var(--hd-text);
  background-image: none !important; background-color: var(--hd-bg) !important;
  padding-top: 72px; padding-bottom: 88px;
}
.tl-section .hd-btn:not(.hd-btn--outline) { --hd-white: #FFFFFF; --hd-red-text: #FFFFFF; }
.tl-head { max-width: 820px; margin: 0 auto 40px; text-align: center; }
.tl-head .hd-lead { margin-top: 16px; }

.tl-app { max-width: 1120px; margin: 0 auto; }
.tl-app--plumbing-cost-quiz, .tl-app--job-cost-estimator { max-width: 820px; }
.tl-noscript { padding: 24px; background: #FFFFFF; border: 1px solid var(--hd-line); border-radius: 4px; }

/* headings that take focus after a step change: no focus box (focus lands there for screen readers and keyboard order) */
.tl-app [tabindex="-1"]:focus { outline: none !important; box-shadow: none !important; }

/* screen-reader-only (announcements, hidden labels) */
.tl-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- Cards ---- */
.tl-card { position: relative; background: #FFFFFF; border: 1px solid var(--hd-line); border-radius: 4px; padding: 28px 30px; box-shadow: 0 1px 2px rgba(21, 23, 27, 0.04), 0 8px 24px -16px rgba(21, 23, 27, 0.18); }
.tl-card--accent { border-top: 3px solid var(--hd-red, #BF272F); }
.tl-card + .tl-card, .tl-grid + .tl-card { margin-top: 20px; }
.tl-grid { display: grid; gap: 20px; align-items: start; }
.tl-grid > .tl-card { margin-top: 0; }
.tl-grid--split { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.tl-grid--half { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.tl-sticky { position: sticky; top: 120px; }
.tl-card-eyebrow, .tl-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hd-muted); }
.tl-card-eyebrow.tl-red, .tl-red { color: #B3222B; }
.tl-card-title { margin: 0 0 6px; color: #15171B; font-family: var(--ds-head); font-stretch: 115%; font-variation-settings: "wdth" 115; font-size: 20px; font-weight: 500; line-height: 1.25; }
.tl-card-title--lg { font-size: 24px; }
.tl-card-title--xl { font-size: 30px; margin-bottom: 24px; }
.tl-step-title { margin: 0 0 20px; color: #15171B; font-family: var(--ds-head); font-stretch: 115%; font-variation-settings: "wdth" 115; font-size: 26px; font-weight: 500; line-height: 1.25; outline: none; }
.tl-muted { color: var(--hd-muted); font-size: 15.5px; line-height: 1.6; margin: 0; }
.tl-strong { color: #15171B; font-weight: 700; }
.tl-help { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--hd-muted); }
.tl-fine { margin: 16px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--hd-muted); }
.tl-meta-line { margin: 0 0 14px; font-size: 14.5px; color: var(--hd-muted); text-transform: capitalize; }
.tl-head-center { text-align: center; margin-bottom: 24px; }

/* ---- Fields ---- */
.tl-field { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.tl-field:last-child { margin-bottom: 0; }
.tl-legend { display: block; padding: 0; margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #15171B; }
.tl-legend--row { display: flex; justify-content: space-between; gap: 12px; }
.tl-legend--row output { font-variant-numeric: tabular-nums; color: #B3222B; }
.tl-label--sub { display: block; margin: -10px 0 8px; font-size: 14px; color: var(--hd-muted); }
.tl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-chip { position: relative; }
.tl-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tl-chip span { display: inline-block; padding: 9px 14px; border: 1px solid var(--hd-line); border-radius: 4px; background: #FFFFFF; font-size: 15px; font-weight: 600; color: var(--lx-ink-2); font-variant-numeric: tabular-nums; transition: border-color .15s, background-color .15s; }
.tl-chip:hover span { border-color: rgba(21, 23, 27, 0.45); }
.tl-chip input:checked + span { border-color: #15171B; background: #15171B; color: #FFFFFF; }
.tl-chip input:focus-visible + span { outline: 2px solid #2C66A8; outline-offset: 2px; }
.tl-input { display: flex; align-items: center; gap: 8px; border: 1px solid var(--hd-line); border-radius: 4px; background: #F7F9FB; padding: 0 14px; }
.tl-input:focus-within { border-color: #15171B; outline: 2px solid #2C66A8; outline-offset: 1px; }
.tl-input span { color: var(--hd-muted); font-weight: 600; }
.tl-input input, .tl-select select { width: 100%; min-width: 0; height: 48px; border: 0; background: transparent; font: inherit; font-size: 16px; color: #15171B; outline: none; }
.tl-field .tl-input + .tl-legend, .tl-input + fieldset { margin-top: 26px; }
.tl-controls .tl-input { margin-bottom: 26px; }
.tl-select { position: relative; border: 1px solid var(--hd-line); border-radius: 4px; background: #F7F9FB; }
.tl-select:focus-within { border-color: #15171B; outline: 2px solid #2C66A8; outline-offset: 1px; }
.tl-select select { padding: 0 40px 0 14px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.tl-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid #15171B; border-bottom: 1.6px solid #15171B; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.tl-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--hd-line); border-radius: 4px; background: #F7F9FB; }
.tl-seg label { position: relative; }
.tl-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tl-seg span { display: block; padding: 10px; border-radius: 3px; text-align: center; font-size: 15px; font-weight: 600; color: var(--hd-muted); }
.tl-seg input:checked + span { background: #15171B; color: #FFFFFF; }
.tl-seg input:focus-visible + span { outline: 2px solid #2C66A8; outline-offset: 2px; }

/* range: same look as the pricing finder sliders */
.tl-range { --fill: 20%; width: 100%; height: 24px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.tl-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, #15171B var(--fill), #D3DAE3 var(--fill)); }
.tl-range::-moz-range-track { height: 4px; border-radius: 4px; background: #D3DAE3; }
.tl-range::-moz-range-progress { height: 4px; border-radius: 4px; background: #15171B; }
.tl-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #FFFFFF; border: 2px solid #15171B; box-shadow: 0 1px 3px rgba(21, 23, 27, 0.2); }
.tl-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; border: 2px solid #15171B; }
.tl-range:focus-visible { outline: 2px solid #2C66A8; outline-offset: 4px; border-radius: 4px; }

/* ---- Results ---- */
.tl-big { margin: 0 0 18px; color: #15171B; font-family: var(--ds-head); font-stretch: 115%; font-variation-settings: "wdth" 115; font-size: 46px; font-weight: 500; line-height: 1.05; font-variant-numeric: tabular-nums lining-nums; overflow-wrap: anywhere; }
.tl-big--sm { font-size: 30px; margin: 0; }
.tl-rows { margin: 0 0 20px; }
.tl-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15.5px; }
.tl-rows dt { color: var(--hd-muted); }
.tl-rows dd { margin: 0; font-weight: 600; color: #15171B; font-variant-numeric: tabular-nums; }
.tl-rows .tl-rows__sep { margin-top: 6px; padding-top: 13px; border-top: 1px solid var(--lx-hair); }
.tl-result--center { text-align: center; }
.tl-result--center .tl-big { font-size: 52px; }
.tl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tl-actions--center { justify-content: center; }
.tl-actions--center .hd-btn { min-width: 280px; } /* Retake / Estimate Another + the result button: same size */
.tl-actions .hd-btn, .tl-cta .hd-btn { margin: 0; justify-content: center; text-align: center; }
.hd-btn.tl-btn-ghost.hd-btn--outline { color: #15171B !important; border: 1px solid rgba(21, 23, 27, 0.35) !important; background: transparent !important; }
.hd-btn.tl-btn-ghost.hd-btn--outline:hover, .hd-btn.tl-btn-ghost.hd-btn--outline:focus-visible { border-color: #15171B !important; background: rgba(21, 23, 27, 0.04) !important; }
.tl-result .tl-actions .hd-btn, .tl-result .tl-cta, .tl-result .tl-cta .hd-btn { width: 100%; }

/* result call to action (moved next to the result by the tool script) */
.tl-cta__title { margin: 0 0 10px; color: #FFFFFF; font-family: var(--ds-head); font-stretch: 115%; font-variation-settings: "wdth" 115; font-size: 28px; font-weight: 500; line-height: 1.2; }
.tl-cta__text { margin: 0 auto 24px; max-width: 580px; color: #DCE3EA; font-size: 16.5px; line-height: 1.6; }
.tl-cta--box { margin-top: 20px; padding: 40px 32px; border-radius: 4px; text-align: center; background: #0B1E33 url(tex/bg-navy-grain.webp) center / cover no-repeat; }
.tl-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.tl-cta--box .tl-cta__btns { justify-content: center; }
/* a pair of buttons: identical size, color may differ */
.tl-cta__btns--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tl-cta--box .tl-cta__btns--pair { max-width: 640px; margin: 0 auto; }
.tl-cta--box .hd-btn.tl-btn-ghost.hd-btn--outline { color: #FFFFFF !important; border-color: rgba(255, 255, 255, 0.45) !important; }
.tl-cta--box .hd-btn.tl-btn-ghost.hd-btn--outline:hover, .tl-cta--box .hd-btn.tl-btn-ghost.hd-btn--outline:focus-visible { border-color: #FFFFFF !important; background: rgba(255, 255, 255, 0.06) !important; }

/* ---- Step flow (job cost estimator) ---- */
.tl-tiles { display: grid; gap: 12px; }
.tl-tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tl-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tl-tile { position: relative; display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 20px 22px; border: 1px solid var(--hd-line); border-radius: 4px; background: #FFFFFF; text-align: left; font: inherit; color: var(--hd-text); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tl-tile:hover { border-color: rgba(21, 23, 27, 0.45); box-shadow: 0 8px 24px -16px rgba(21, 23, 27, 0.35); }
.tl-tile:focus-visible { outline: 2px solid #2C66A8; outline-offset: 2px; }
.tl-tile--big { padding: 30px 28px; }
.tl-tile__icon { color: #B3222B; margin-bottom: 10px; }
.tl-tile__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #15171B; }
.tl-tile__title { font-size: 17px; font-weight: 700; color: #15171B; }
.tl-tile--big .tl-tile__title { font-family: var(--ds-head); font-stretch: 115%; font-variation-settings: "wdth" 115; font-size: 22px; font-weight: 500; }
.tl-tile__meta { font-size: 14.5px; color: var(--hd-muted); font-variant-numeric: tabular-nums; }
.tl-tile--radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tl-tile--radio:has(input:checked) { border-color: #15171B; box-shadow: inset 0 0 0 1px #15171B; }
.tl-tile--radio:has(input:focus-visible) { outline: 2px solid #2C66A8; outline-offset: 2px; }
.tl-back { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: #B3222B; cursor: pointer; }
.tl-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.tl-back:focus-visible { outline: 2px solid #2C66A8; outline-offset: 2px; border-radius: 2px; }
.tl-factors { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--lx-hair); }
.tl-factors__title { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #15171B; }
.tl-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tl-pills li { padding: 6px 12px; border: 1px solid var(--hd-line); border-radius: 999px; background: #F7F9FB; font-size: 14px; color: var(--lx-ink-2); }

/* ---- Quiz ---- */
.tl-progress { margin-bottom: 20px; }
.tl-progress__meta { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; color: var(--hd-muted); font-variant-numeric: tabular-nums; }
.tl-progress__bar { height: 6px; border-radius: 6px; background: #D3DAE3; overflow: hidden; }
.tl-progress__bar span { display: block; height: 100%; background: #BF272F; border-radius: 6px; transition: width .4s ease; }
.tl-options { display: grid; gap: 10px; }
.tl-option { width: 100%; padding: 16px 18px; border: 1px solid var(--hd-line); border-radius: 4px; background: #F7F9FB; text-align: left; font: inherit; font-size: 16px; font-weight: 600; color: #15171B; cursor: pointer; transition: border-color .15s, background-color .15s; }
.tl-option:hover { border-color: rgba(21, 23, 27, 0.45); background: #FFFFFF; }
.tl-option.is-selected { border-color: #15171B; background: #FFFFFF; box-shadow: inset 0 0 0 1px #15171B; }
.tl-option:focus-visible { outline: 2px solid #2C66A8; outline-offset: 2px; }
.tl-quiz .tl-back { margin: 18px 0 0; }
.tl-grade { text-align: center; padding: 40px 30px; border-top: 4px solid var(--tone); }
.tl-grade--good { --tone: #2F7D4F; } .tl-grade--ok { --tone: #2C66A8; } .tl-grade--warn { --tone: #B7791F; } .tl-grade--risk { --tone: #C05621; } .tl-grade--bad { --tone: #B3222B; }
.tl-grade__letter { margin: 0; color: var(--tone); font-family: var(--ds-head); font-stretch: 115%; font-variation-settings: "wdth" 115; font-size: 88px; font-weight: 500; line-height: 1; }
.tl-grade__label { margin: 6px 0 14px; color: var(--tone); font-size: 20px; font-weight: 700; }
.tl-grade__msg { max-width: 520px; margin: 0 auto 24px; font-size: 16.5px; line-height: 1.6; }
.tl-grade__waste { display: inline-block; padding: 16px 24px; border-radius: 4px; background: #F7F9FB; border: 1px solid var(--hd-line); }
.tl-breakdown ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.tl-breakdown__item { position: relative; padding-left: 20px; }
.tl-breakdown__item::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; }
.tl-dot--0::before { background: #2F7D4F; } .tl-dot--1::before { background: #2C66A8; } .tl-dot--2::before { background: #B7791F; } .tl-dot--3::before { background: #B3222B; }
.tl-breakdown__q { display: block; font-weight: 700; color: #15171B; font-size: 15.5px; }
.tl-breakdown__a { display: block; color: var(--hd-muted); font-size: 15px; line-height: 1.55; }
.tl-breakdown__a b { color: var(--lx-ink-2); }

/* ---- Benchmark ---- */
.tl-bench { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.tl-bench div { padding: 16px 10px; border: 1px solid var(--hd-line); border-radius: 4px; text-align: center; background: #F7F9FB; }
.tl-bench div.is-avg { border: 2px solid #15171B; background: #FFFFFF; }
.tl-bench span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hd-muted); }
.tl-bench strong { font-size: 22px; color: #15171B; font-variant-numeric: tabular-nums; }
.tl-bench .is-avg strong { font-size: 26px; }
.tl-sources { padding: 14px 16px; border-radius: 4px; background: #F7F9FB; border: 1px solid var(--hd-line); }
.tl-sources__title { margin: 0 0 6px; font-weight: 700; color: #15171B; font-size: 14.5px; }
.tl-sources ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tl-sources a { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: #B3222B; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tl-risk { margin-top: 20px; }
.tl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.tl-stat { padding: 16px 18px; border: 1px solid var(--hd-line); border-radius: 4px; background: #F7F9FB; }
.tl-stat.is-hl { border-color: #15171B; background: #FFFFFF; }
.tl-stat span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hd-muted); }
.tl-stat strong { font-family: var(--ds-head); font-stretch: 115%; font-variation-settings: "wdth" 115; font-size: 28px; font-weight: 500; color: #15171B; font-variant-numeric: tabular-nums; }
.tl-permiss { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; padding: 14px 16px; border-radius: 4px; background: #F7F9FB; border: 1px solid var(--hd-line); font-size: 15px; }
.tl-permiss__v { font-size: 20px; color: #B3222B; font-variant-numeric: tabular-nums; }
.tl-flag { margin-left: auto; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(179, 34, 43, 0.4); background: rgba(191, 39, 47, 0.08); color: #B3222B; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* ---- GBP Category Discovery ---- */
.tl-gbp__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; max-width: 760px; margin: 0 auto; }
.tl-gbp__search { display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--hd-line); border-radius: 4px; background: #FFFFFF; color: var(--hd-muted); }
.tl-gbp__search:focus-within { border-color: #15171B; outline: 2px solid #2C66A8; outline-offset: 1px; }
.tl-gbp__search input { width: 100%; min-width: 0; height: 56px; border: 0; background: transparent; font: inherit; font-size: 16.5px; color: #15171B; outline: none; }
.tl-gbp__go { height: 56px; margin: 0 !important; }
.tl-gbp__go[disabled] { opacity: .55; cursor: not-allowed; }
.tl-ex-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; max-width: 760px; margin: 16px auto 0; }
.tl-ex { padding: 7px 13px; border: 1px solid var(--hd-line); border-radius: 999px; background: #FFFFFF; font: inherit; font-size: 14.5px; color: var(--lx-ink-2); cursor: pointer; }
.tl-ex:hover { border-color: rgba(21, 23, 27, 0.45); }
.tl-ex:focus-visible { outline: 2px solid #2C66A8; outline-offset: 2px; }
.tl-ex[disabled] { opacity: .5; cursor: default; }
.tl-gbp__error { max-width: 760px; margin: 20px auto 0; padding: 14px 16px; border-radius: 4px; border: 1px solid rgba(179, 34, 43, 0.4); background: #FFF5F5; color: #8E1B22; font-size: 15px; }
.tl-gbp__loading { margin-top: 40px; text-align: center; }
.tl-gbp__loading p { margin: 6px 0 0; }
.tl-gbp__results { margin-top: 36px; }
.tl-gbp__results > * + * { margin-top: 20px; }
.tl-gbp__best { border: 2px solid #15171B; }
.tl-gbp__best-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 4px 0 12px; }
.tl-gbp__best-name { margin: 0; color: #15171B; font-family: var(--ds-head); font-stretch: 115%; font-variation-settings: "wdth" 115; font-size: 36px; font-weight: 500; line-height: 1.1; outline: none; }
.tl-gbp__score { font-size: 26px; font-weight: 800; color: #B3222B; font-variant-numeric: tabular-nums; }
.tl-gbp__reason { margin: 10px 0 0; font-size: 14.5px; color: var(--lx-ink-2); }
.tl-tier { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; border: 1px solid; }
.tl-tier--perfect { background: #E3F5EC; color: #1F5E3B; border-color: #B7E1C9; }
.tl-tier--excellent { background: #EAF6E5; color: #2F6B1F; border-color: #C5E5B8; }
.tl-tier--great { background: #E6EEF8; color: #22508A; border-color: #BFD3EC; }
.tl-tier--good { background: #FBF1DE; color: #7A4E0E; border-color: #EED7A8; }
.tl-gbp__help { margin-bottom: 18px; }
.tl-gbp__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tl-gbp__cat, .tl-gbp__page { position: relative; padding: 16px 18px; border: 1px solid var(--hd-line); border-radius: 4px; }
.tl-gbp__cat .tl-tier { margin: 6px 0 8px; }
.tl-gbp__cat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tl-gbp__cat-score { font-size: 18px; font-weight: 800; color: #15171B; }
.tl-gbp__pick { position: absolute; top: -10px; right: 12px; padding: 2px 8px; border-radius: 999px; background: #BF272F; color: #FFFFFF; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tl-gbp__legend { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--lx-hair); font-size: 13.5px; color: var(--hd-muted); }
.tl-gbp__legend p { margin: 0 0 6px; font-size: 14px; }
.tl-gbp__legend ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.tl-gbp__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.tl-gbp__list li, .tl-gbp__paa li { position: relative; padding-left: 16px; font-size: 15.5px; color: #15171B; }
.tl-gbp__list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: #BF272F; }
.tl-gbp__paa { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tl-gbp__paa li { padding: 12px 14px 12px 36px; border: 1px solid var(--hd-line); border-radius: 4px; background: #F7F9FB; }
.tl-gbp__paa li::before { content: "?"; position: absolute; left: 12px; top: 11px; width: 16px; height: 16px; border-radius: 50%; background: #BF272F; color: #FFFFFF; font-size: 11px; font-weight: 800; line-height: 16px; text-align: center; }
.tl-ptype { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; border: 1px solid; }
.tl-ptype--service { background: rgba(191, 39, 47, 0.08); color: #B3222B; border-color: rgba(179, 34, 43, 0.3); }
.tl-ptype--location { background: #E8EDF3; color: #0B1E33; border-color: #C9D3DF; }
.tl-ptype--faq { background: #EFEAF8; color: #4B2E83; border-color: #D5C9EE; }
.tl-gbp__slug { display: block; margin: 8px 0; padding: 4px 8px; border-radius: 3px; border: 1px solid var(--hd-line); background: #F7F9FB; color: #B3222B; font-size: 13px; overflow-wrap: anywhere; }
.tl-gbp__page .tl-muted { font-size: 14px; }
.tl-gbp__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tl-gbp__tags li { padding: 6px 12px; border: 1px solid var(--hd-line); border-radius: 999px; background: #F7F9FB; font-size: 14.5px; color: #15171B; }
.tl-gbp__tags--mono li { border-radius: 4px; font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; }
.tl-gbp__help code { color: #B3222B; }
.tl-gbp__two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tl-gbp__two > .tl-card + .tl-card { margin-top: 0; }
.tl-gbp__tip { background: #0B1E33; border-color: #0B1E33; }
.tl-gbp__tip .tl-card-eyebrow { color: #FF6B72; }
.tl-gbp__tip p:last-child { margin: 0; color: #DCE3EA; font-size: 16px; line-height: 1.65; }
.tl-gbp__oos { display: flex; gap: 16px; max-width: 760px; margin: 0 auto; border-color: #EED7A8; }
.tl-gbp__oos-icon { color: #B7791F; flex: none; }
.tl-gbp__oos .tl-ex-row { justify-content: flex-start; margin-left: 0; }
.tl-spin { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tl-spin .8s linear infinite; vertical-align: -3px; }
.tl-spin--lg { width: 40px; height: 40px; border-width: 3px; color: #BF272F; }
@keyframes tl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tl-spin { animation-duration: 2.4s; } .tl-progress__bar span { transition: none; } }

/* ---- Tools index cards (white ground, so it doesn't run into the gray FAQ) ---- */
.tl-list { --hd-bg: #FFFFFF; }
.tl-list .tl-list__card { background: #F7F9FB; box-shadow: none; }
.tl-list .tl-list__card:hover { background: #FFFFFF; }
.tl-list__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tl-list__card { position: relative; display: flex; flex-direction: column; padding: 28px 26px; background: #FFFFFF; border: 1px solid var(--hd-line); border-radius: 4px; box-shadow: 0 1px 2px rgba(21, 23, 27, 0.04), 0 8px 24px -16px rgba(21, 23, 27, 0.18); transition: border-color .15s, box-shadow .15s; }
.tl-list__card:hover { border-color: rgba(21, 23, 27, 0.45); box-shadow: 0 1px 2px rgba(21, 23, 27, 0.06), 0 18px 40px -20px rgba(21, 23, 27, 0.35); }
.tl-list__name { margin: 0 0 10px; font-family: var(--ds-head); font-stretch: 115%; font-variation-settings: "wdth" 115; font-size: 22px; font-weight: 500; line-height: 1.2; }
.tl-list__name a { color: #15171B; text-decoration: none; }
.tl-list__name a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link */
.tl-list__name a:focus-visible { outline: none; }
.tl-list__card:has(a:focus-visible) { outline: 2px solid #2C66A8; outline-offset: 2px; }
.tl-list__text { flex: 1; margin: 0 0 20px; font-size: 15.5px; line-height: 1.6; color: var(--hd-text); }
.tl-list__go { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #B3222B; }

/* ---- How it works (navy) ---- */
.tl-explainer__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.tl-explainer__copy .hd-lead { margin-top: 18px; }
.tl-explainer__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tl-explainer__steps li { display: flex; gap: 18px; padding: 20px 22px; border: 1px solid var(--lx-hair); border-radius: 4px; background: rgba(255, 255, 255, 0.03); }
.tl-explainer__num { flex: none; font-family: var(--ds-head); font-size: 20px; color: #FF6B72; font-variant-numeric: tabular-nums; }
.tl-explainer__steps h3 { margin: 0 0 4px; color: #FFFFFF; font-size: 17px; font-weight: 700; }
.tl-explainer__steps p { margin: 0; color: var(--lx-ink-2); font-size: 15.5px; line-height: 1.6; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .tl-list__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tl-grid--split, .tl-grid--half, .tl-explainer__grid, .tl-gbp__two { grid-template-columns: minmax(0, 1fr); }
  .tl-explainer__grid { gap: 32px; }
  .tl-sticky { position: static; }
}
@media (max-width: 640px) {
  .tl-section { padding-top: 48px; padding-bottom: 64px; }
  .tl-card { padding: 22px 18px; }
  .tl-big { font-size: 38px; }
  .tl-result--center .tl-big { font-size: 34px; }
  .tl-step-title { font-size: 22px; }
  .tl-card-title--xl { font-size: 24px; }
  .tl-tiles--2, .tl-tiles--3, .tl-list__grid, .tl-gbp__grid, .tl-gbp__list, .tl-gbp__legend ul, .tl-cta__btns--pair { grid-template-columns: minmax(0, 1fr); }
  .tl-gbp__form { grid-template-columns: minmax(0, 1fr); }
  .tl-gbp__best-name { font-size: 28px; }
  .tl-bench strong { font-size: 18px; } .tl-bench .is-avg strong { font-size: 20px; }
  .tl-stats { grid-template-columns: minmax(0, 1fr); }
  .tl-stat strong { font-size: 24px; }
  .tl-flag { margin-left: 0; }
  .tl-actions .hd-btn, .tl-actions [data-cta-slot], .tl-actions .tl-cta { width: 100%; }
  .tl-cta--box { padding: 30px 18px; }
  .tl-cta__title { font-size: 23px; }
  .tl-grade__letter { font-size: 72px; }
}

/* ---------- Calculators ported from Dialed In Web (ad budget, marketing ROI, email) and the AI Ready Check ---------- */
.tl-input--pct input { text-align: left; }
.tl-controls .tl-input:has(+ .tl-help) { margin-bottom: 8px; }
.tl-controls .tl-help + .tl-field, .tl-controls .tl-field + .tl-field { margin-top: 0; }
.tl-air__url { margin: -8px 0 18px; overflow-wrap: anywhere; }
.tl-air__score--good { color: #2F7D4F; } .tl-air__score--ok { color: #B7791F; } .tl-air__score--bad { color: #B3222B; }
.tl-air__counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 22px; }
.tl-air__counts div { padding: 12px 10px; border: 1px solid var(--hd-line); border-radius: 4px; text-align: center; }
.tl-air__counts dt { font-size: 13px; color: var(--hd-muted); }
.tl-air__counts dd { margin: 2px 0 0; font-size: 24px; font-weight: 600; color: #15171B; font-variant-numeric: tabular-nums; }
.tl-air .tl-back { margin: 14px 0 0; }
.tl-air__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tl-air__list .tl-card { margin-top: 0; padding: 20px 22px; }
.tl-air__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-air__head .tl-step-title { margin: 0; font-size: 20px; flex: 1 1 auto; }
.tl-air__chip { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #EEF1F4; color: #3A4048; }
.tl-air__item--pass .tl-air__chip { background: #E5F2EA; color: #2F7D4F; }
.tl-air__item--warning .tl-air__chip { background: #FBF0DD; color: #8A5A12; }
.tl-air__item--fail .tl-air__chip { background: #F9E3E4; color: #B3222B; }
.tl-air__num { font-size: 18px; font-variant-numeric: tabular-nums; }
.tl-air__bar { height: 6px; margin: 12px 0; border-radius: 3px; background: #EEF1F4; overflow: hidden; }
.tl-air__bar span { display: block; height: 100%; background: currentColor; }
.tl-air__item--pass .tl-air__bar { color: #2F7D4F; } .tl-air__item--warning .tl-air__bar { color: #B7791F; } .tl-air__item--fail .tl-air__bar { color: #B3222B; }
.tl-air__details { margin: 0 0 6px; color: #15171B; }
.tl-air .tl-help { margin: 0; }
