/* Free tool pages: one shared look.
   v1 Ben t2195u (29 Nov 2026). Visual redesign: Ben t2236u (30 Nov 2026), spec in
   /workspace/trueline-atlas/free-tools-visual-redesign-20261130/CLAUDE-REVIEW.md.
   Used only by /free-tools, /ai-exposure-score, /margin-leakage-calculator and /free-tools/*.
   Linked after site.css. Nothing here applies to any other page.
   Colours come from the live --tl-* tokens in site.css. The --tool-* names below are aliases (mixes), not new brand colours.
   Orange + white text is --tl-action-primary (#c2410c). Bright orange #f97316 is decoration only. */
body.tool-page {
  --tool-navy: var(--tl-color-navy, #1a2744);
  --tool-sky: var(--tl-color-sky, #e8f2ff);
  --tool-blue: var(--tl-color-blue, #2563eb);
  --tool-text: var(--tl-text-secondary, #42506e);
  --tool-muted: var(--tl-text-muted, #5a6a8a);
  --tool-edge-input: #6b83ad;
  --tool-edge-card: #c9d8f0;
  --tool-tint: #f4f7fd;
  --tool-tint-row: #f6f8fc;
  --tool-divider: #e6edf8;
  --tool-orange: var(--tl-action-primary, #c2410c);
  --tool-orange-hover: var(--tl-action-primary-hover, #9a3412);
  --tool-orange-active: var(--tl-action-primary-active, #7c2d12);
  --tool-card-shadow: 0 1px 3px rgba(26, 39, 68, 0.08), 0 4px 12px rgba(26, 39, 68, 0.06);
  --tool-pad: 16px;
  background: #fafaf8; color: var(--tool-navy);
}
@media (min-width: 768px) { body.tool-page { --tool-pad: 32px; } }

/* Page shell: full-width Sky band, then the tool area that overlaps it */
.tool-main { max-width: none; margin: 0; padding: 0; box-sizing: border-box; scroll-margin-top: 80px; }
.tool-main *, .tool-main *::before, .tool-main *::after { box-sizing: border-box; }
.tool-main :focus-visible { outline: 3px solid var(--tool-blue); outline-offset: 2px; }
.tool-hero { background: var(--tool-sky); padding: 0 16px 48px; }
.tool-hero-in { max-width: 1080px; margin: 0 auto; }
.tool-body { max-width: 1080px; margin: -24px auto 0; padding: 0 16px 48px; position: relative; }
.tool-after { max-width: 760px; margin: 48px 0 0; }
@media (min-width: 768px) {
  .tool-hero { padding: 8px 5% 64px; }
  .tool-body { margin-top: -32px; padding: 0 5% 64px; }
  .tool-after { margin-top: 64px; }
}
@media (min-width: 1200px) { .tool-hero, .tool-body { padding-left: 0; padding-right: 0; } }

.tool-crumbs { margin: 0 0 8px; }
.tool-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 8px; color: var(--tool-text); }
.tool-crumbs li { display: flex; align-items: center; }
.tool-crumbs li + li::before { content: "\203A"; margin-right: 8px; color: var(--tool-muted); }
.tool-crumbs a { color: #1d4ed8; text-decoration: underline; display: inline-flex; align-items: center; min-height: 44px; }

.tool-main h1 { font-family: Fraunces, "Fraunces Fallback", Georgia, serif; font-size: 1.875rem; line-height: 1.15; margin: 0 0 12px; color: var(--tool-navy); font-weight: 700; letter-spacing: -0.01em; max-width: 24em; }
.tool-lede { font-size: 1.125rem; line-height: 1.5; color: var(--tool-text); margin: 0 0 12px; max-width: 60ch; }
.tool-trust { margin: 0; color: var(--tool-text); line-height: 1.4; font-weight: 600; }
.tool-main h2 { font-family: Fraunces, "Fraunces Fallback", Georgia, serif; font-size: 1.375rem; line-height: 1.25; margin: 0 0 12px; color: var(--tool-navy); font-weight: 700; }
.tool-main h3 { font-size: 1.0625rem; line-height: 1.3; margin: 0 0 8px; color: var(--tool-navy); font-weight: 600; }
.tool-main p { line-height: 1.55; color: #2b3858; margin: 0 0 12px; }
.tool-main a { color: #1d4ed8; }
@media (min-width: 768px) {
  .tool-main h1 { font-size: 2.75rem; line-height: 1.1; }
  .tool-lede { font-size: 1.25rem; margin-bottom: 16px; }
  .tool-main h2 { font-size: 1.75rem; }
}

/* Type scale fix (S1). site.css has a deliberate 16px floor for reading text. It also flattened the
   display elements on these pages. Only these two are exempt, and only on tool pages. */
body.tool-page .tool-lede { font-size: 1.125rem !important; }
body.tool-page .tool-result .tool-big, body.tool-page .tool-big { font-size: 2.25rem !important; }
@media (min-width: 768px) {
  body.tool-page .tool-lede { font-size: 1.25rem !important; }
  body.tool-page .tool-result .tool-big, body.tool-page .tool-big { font-size: 3rem !important; }
}

/* The tool area: input card, result card. Two columns from 1100px. */
.tool-area { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; counter-reset: toolstep; }
.tool-area.is-multi { counter-reset: none; }
@media (min-width: 1100px) {
  .tool-area { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 32px; align-items: start; }
  .tool-area.is-stack { grid-template-columns: minmax(0, 1fr); }
  .tool-area:not(.is-stack) > .tool-result { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: auto; box-shadow: var(--tl-shadow-3, 0 8px 30px rgba(26, 39, 68, 0.14)); }
}

.tool-panel, .tool-result, .tool-cta {
  background: #fff; border: 1px solid var(--tool-edge-card); border-radius: 16px; margin: 0; min-width: 0;
  box-shadow: var(--tool-card-shadow);
}
.tool-panel { padding: var(--tool-pad); position: relative; }
.tool-panel > h2, .tool-card-head h2 {
  display: flex; align-items: center; gap: 12px; font-size: 1.25rem; line-height: 1.25; margin: 0 0 16px; min-height: 48px;
}
@media (min-width: 768px) { .tool-panel > h2, .tool-card-head h2 { font-size: 1.375rem; } }
.tool-panel > h2::before, .tool-card-head h2::before, .tool-result > h2::before {
  counter-increment: toolstep; content: counter(toolstep); flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; background: var(--tool-blue); color: #fff;
  font: 600 1rem/1 "DM Sans", system-ui, sans-serif;
}
.tool-area.is-multi .tool-panel > h2::before, .tool-area.is-multi .tool-result > h2::before { display: none; }
.tool-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 8px; }
.tool-card-head h2 { margin: 0; flex: 1 1 auto; min-width: 0; }
.tool-pill-row { margin: 0 0 16px; }
.tool-pill-row .tool-example, .tool-pill-row .tool-pill { margin: 0; }
.tool-panel > .tool-hint:first-of-type { margin-top: 0; }
.tool-jump { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 8px; font-weight: 600; color: #1d4ed8; }
.tool-jump-back { margin: 8px var(--tool-pad) 0; }
@media (min-width: 1100px) { .tool-area:not(.is-stack) .tool-jump { display: none; } }
.tool-jump-target { scroll-margin-top: 72px; }

/* Fields */
.tool-field { margin: 0 0 24px; }
.tool-field label, .tool-field .tool-label { display: block; font-weight: 600; margin: 0 0 8px; color: var(--tool-navy); line-height: 1.35; }
.tool-field input[type="number"], .tool-field input[type="text"], .tool-field input[type="date"], .tool-field select, .tool-field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 1.5px solid var(--tool-edge-input); border-radius: 10px;
  font: inherit; font-size: 1.125rem !important; background: #fff; color: var(--tool-navy); line-height: 1.3;
  transition: border-color var(--tl-motion-fast, 200ms ease-out), box-shadow var(--tl-motion-fast, 200ms ease-out);
}
.tool-field input:hover, .tool-field select:hover, .tool-field textarea:hover { border-color: var(--tool-muted); }
.tool-field input:focus, .tool-field select:focus, .tool-field textarea:focus { border-color: var(--tool-blue); border-width: 2px; padding: 13.5px 15.5px; }
.tool-field input::placeholder, .tool-field textarea::placeholder { color: var(--tool-muted); opacity: 1; }
.tool-field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.tool-field input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--tool-blue); }
.tool-field input[aria-invalid="true"] { border-color: var(--tl-error, #dc2626); border-width: 2px; padding: 13.5px 15.5px; }
.tool-field .tool-hint.tl-cap:not([hidden]) { color: var(--tl-error, #dc2626); font-weight: 600; display: flex; gap: 8px; }
.tool-field .tool-hint.tl-cap:not([hidden])::before { content: "!"; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--tl-error, #dc2626); color: #fff; font: 700 0.8125rem/20px "DM Sans", sans-serif; text-align: center; }
.tool-unit-wrap { position: relative; }
.tool-unit-wrap input { padding-right: 64px !important; }
.tool-unit { position: absolute; right: 16px; top: 0; bottom: 0; display: flex; align-items: center; color: var(--tool-text); font-weight: 600; pointer-events: none; }
.tool-unit-left { right: auto; left: 16px; }
.tool-unit-wrap.is-left input { padding-left: 36px !important; padding-right: 16px !important; }
@media (min-width: 768px) { .tool-field .tool-unit-wrap.is-num { max-width: 240px; } .tool-field.is-pct .tool-unit-wrap { max-width: 160px; } }
.tool-hint { color: var(--tool-text); margin: 8px 0 0; line-height: 1.45; }
.tool-range-row { display: flex; justify-content: space-between; gap: 8px; color: var(--tool-text); }
.tool-range-row strong { color: var(--tool-navy); }

fieldset.tool-q { border: 0; border-top: 1px solid var(--tool-divider); margin: 0; padding: 24px 0 8px; min-width: 0; }
fieldset.tool-q:first-of-type { border-top: 0; padding-top: 0; }
fieldset.tool-q legend { font-weight: 600; line-height: 1.4; padding: 0; margin: 0 0 8px; color: var(--tool-navy); }
.tool-options { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-option, .tool-check {
  position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 16px;
  border: 1.5px solid var(--tool-edge-input); border-radius: 8px; background: #fff; cursor: pointer; color: var(--tool-navy);
  transition: border-color var(--tl-motion-fast, 200ms ease-out), background var(--tl-motion-fast, 200ms ease-out);
}
.tool-option:hover, .tool-check:hover { border-color: var(--tool-muted); }
.tool-option input, .tool-check input { width: 24px; height: 24px; margin: 0; flex: 0 0 auto; accent-color: var(--tool-blue); }
.tool-option:has(input:checked), .tool-check:has(input:checked) { border: 2px solid var(--tool-blue); padding: 7.5px 15.5px; background: var(--tool-sky); font-weight: 600; }
.tool-option:has(input:focus-visible), .tool-check:has(input:focus-visible) { outline: 3px solid var(--tool-blue); outline-offset: 2px; }
.tool-checks { display: grid; gap: 8px; }
.tool-check { width: 100%; align-items: flex-start; line-height: 1.4; }
.tool-check input { margin-top: 1px; }
.tool-main .tool-check span, .tool-main .tool-option span { min-width: 0; overflow-wrap: anywhere; }

.tool-channel { border: 1.5px solid var(--tool-edge-card); border-radius: 10px; padding: 8px 12px; margin: 0 0 8px; background: #fff; }
.tool-channel .tool-check { border: 0; padding-left: 4px; }
.tool-channel .tool-check:has(input:checked) { border: 0; padding: 8px 16px 8px 4px; background: transparent; }
.tool-channel.is-on { border-color: var(--tool-blue); background: var(--tool-tint); }
.tool-channel-detail { display: none; padding: 4px 4px 12px 36px; }
.tool-channel.is-on .tool-channel-detail { display: block; }
.tool-channel-detail .tool-field { margin-bottom: 16px; }
.tool-channel-detail .tool-label { font-weight: 600; }

/* Buttons: ghost by default, one orange primary per page (the lead Copy) */
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; align-items: center; }
.tool-btn {
  min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1.5px solid var(--tool-navy); background: #fff; color: var(--tool-navy);
  font: inherit; font-weight: 600; cursor: pointer; line-height: 1.2;
  transition: background var(--tl-motion-fast, 200ms ease-out), border-color var(--tl-motion-fast, 200ms ease-out);
}
.tool-btn:hover { background: #eef3fc; }
.tool-btn.tool-btn-ghost { background: #fff; color: var(--tool-navy); }
.tool-btn:not(.tool-btn-ghost):not(.tool-btn-text) { min-height: 48px; background: var(--tool-orange); border-color: var(--tool-orange); color: #fff; font-size: 1.125rem; }
.tool-btn:not(.tool-btn-ghost):not(.tool-btn-text):hover { background: var(--tool-orange-hover); border-color: var(--tool-orange-hover); }
.tool-btn:not(.tool-btn-ghost):not(.tool-btn-text):active { background: var(--tool-orange-active); border-color: var(--tool-orange-active); }
.tool-btn.tool-btn-text { border-color: transparent; background: transparent; color: #1d4ed8; text-decoration: underline; padding-left: 8px; padding-right: 8px; }
.tool-btn.tool-btn-text:hover { background: var(--tool-sky); }
.tool-btn[disabled], .tool-btn[aria-disabled="true"] { background: #eef3fc !important; border-color: #eef3fc !important; color: var(--tool-muted) !important; cursor: not-allowed; text-decoration: none; }
.tool-btn.tool-reset { border-color: transparent; background: transparent; min-width: 64px; text-decoration: underline; }
.tool-btn.tool-reset:hover { background: var(--tool-sky); }
.tool-panel > .tool-actions { margin-top: 8px; }
@media (max-width: 767px) {
  .tool-result .tool-block .tool-actions > .tool-btn:not(.tool-btn-ghost):not(.tool-btn-text) { flex: 1 1 100%; }
}

/* Result card: one card. Navy strip, Sky number panel, flat rows. */
.tool-result { position: relative; overflow: hidden; padding: 0 0 var(--tool-pad); }
.tool-result > h2 {
  display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 0 0 var(--tool-pad); padding: 8px 120px 8px var(--tool-pad);
  background: var(--tool-navy); color: #fff; font-size: 1.125rem; line-height: 1.25; font-weight: 600; position: sticky; top: 0; z-index: 2;
}
.tool-result > h2::before { background: #fff; color: var(--tool-navy); }
.tool-result > * { margin-left: var(--tool-pad); margin-right: var(--tool-pad); }
.tool-result > h2 { margin-left: 0; margin-right: 0; }
.tool-result > .tool-actions, .tool-result > div:last-child { margin-bottom: 0; }
.tool-updated { position: absolute; top: 0; right: var(--tool-pad); height: 48px; display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; z-index: 3; margin: 0 !important; }
.tool-updated::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tl-color-blue-light, #3b82f6); display: none; }
.tool-updated.is-on::before { display: inline-block; }
.tool-result h3 { margin-top: 12px; }
.tool-result .tool-summary, .tool-result .tool-big-label, .tool-result .tool-big { margin-left: 0; margin-right: 0; }
.tool-summary { background: var(--tool-sky); padding: var(--tool-pad); margin: 0 0 var(--tool-pad); display: grid; gap: 12px 24px; grid-template-columns: minmax(0, 1fr); }
.tool-summary p { margin: 0; }
.tool-summary > * { min-width: 0; }
@media (min-width: 1100px) { .tool-area:not(.is-stack) .tool-summary.is-pair { grid-template-columns: 1fr 1fr; } }
.tool-result .tool-big { font-family: Fraunces, "Fraunces Fallback", Georgia, serif; font-weight: 700; line-height: 1.1; color: var(--tool-navy); margin: 0 0 4px; overflow-wrap: anywhere; word-break: break-word; font-variant-numeric: tabular-nums; }
.tool-result .tool-big-label { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tool-muted); margin: 0 0 4px; line-height: 1.3; }
.tool-summary .tool-big-label { margin-top: 0; }
/* Older pages put the number straight in the card */
.tool-result > .tool-big-label, .tool-result > .tool-big { background: var(--tool-sky); padding-left: var(--tool-pad); padding-right: var(--tool-pad); }
.tool-result > .tool-big-label { margin-top: 0; padding-top: 16px; margin-bottom: 0; }
.tool-result > .tool-big { padding-bottom: 4px; margin-bottom: 0; }
.tool-result > .tool-big + .tool-hint { background: var(--tool-sky); margin-top: 0; margin-bottom: 0; padding: 0 var(--tool-pad) 16px; }
.tool-result > h2 + .tool-big-label { margin-top: calc(-1 * var(--tool-pad)); }
.tool-result ul, .tool-result ol { margin: 0 0 12px; padding-left: 1.2rem; color: #2b3858; line-height: 1.5; }
.tool-result li { margin: 0 0 4px; }
.tool-result .tool-next { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--tool-divider); }
.tool-badge { display: inline-block; padding: 4px 12px; border-radius: 6px; color: #fff; font-weight: 600; vertical-align: middle; }
.tool-badge.is-critical { background: #b91c1c; }
.tool-badge.is-moderate { background: #b45309; }
.tool-badge.is-well { background: #15803d; }
.tool-example, .tool-pill {
  display: inline-flex; align-items: center; min-height: 24px; padding: 2px 12px; border-radius: 9999px; background: var(--tool-sky); color: var(--tool-navy);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.2; vertical-align: middle; margin-left: 8px; width: auto; align-self: flex-start;
}
.tool-example[hidden], .tool-pill[hidden] { display: none; }

/* Sections under the tool */
.tool-section { margin: 0 0 48px; }
.tool-section ul, .tool-section ol { padding-left: 1.2rem; color: #2b3858; line-height: 1.55; margin: 0 0 12px; }
.tool-section li { margin: 0 0 8px; }
.tool-main details { border: 1px solid var(--tool-edge-card); border-radius: 10px; background: #fff; margin: 0 0 8px; padding: 0 16px; }
.tool-main details summary { cursor: pointer; font-weight: 600; padding: 14px 0; min-height: 56px; display: flex; align-items: center; color: var(--tool-navy); font-size: 1.0625rem; }
.tool-main details p { margin: 0 0 16px; }
.tool-sources li { overflow-wrap: anywhere; }
.tool-notice { margin: 24px 0 0; padding: 12px 16px; background: #fff7e6; border: 1px solid #f0d9a8; border-radius: 8px; color: #5b4310; }
.tool-main .tool-notice p { margin: 0; color: #5b4310; }
.tool-body > .tool-notice { max-width: 760px; }
.tool-main .tool-example-box { background: #fff; border: 1px solid var(--tool-edge-card); border-radius: 8px; padding: 12px 16px; margin: 0 0 12px; }
.tool-main .tool-example-box p:last-child, .tool-main .tool-example-box ul:last-child { margin-bottom: 0; }
.tool-softlink { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--tool-divider); color: var(--tool-text); }
.tool-softlink a { color: #1d4ed8; }
.tool-field .tool-hint + .tool-hint { margin-top: 4px; }
details.tool-advanced { margin: 0 0 24px; }

/* Bottom CTA (call block) */
.tool-cta { padding: 24px var(--tool-pad); text-align: center; margin: 0 0 8px; }
.tool-cta h2 { margin-bottom: 8px; }
.tool-cta .form-card { max-width: 480px; margin: 0 auto; text-align: left; color: var(--tool-navy); }
.tool-cta .gov-form-wrap { max-width: 480px; margin: 0 auto 8px; text-align: left; }
.tool-call-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 10px; background: var(--tool-navy); color: #fff !important; font-weight: 600; text-decoration: none; }
.tool-call-link:hover { background: var(--tl-color-navy-light, #243354); }

.tool-main .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* ---------- Hub ---------- */
.tool-hub .tool-hero { text-align: center; padding-bottom: 48px; }
.tool-hub .tool-hero-in { display: flex; flex-direction: column; align-items: center; }
.tool-hub .tool-crumbs ol { justify-content: center; }
.tool-hub .tool-lede { margin-left: auto; margin-right: auto; }
.tool-hub .tool-body { max-width: 1200px; }
.tool-group-note { color: var(--tool-text); margin: 0 0 16px; }
.tool-main ul.tool-card-list { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 640px) { .tool-main ul.tool-card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tool-main ul.tool-card-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tool-card { background: #fff; border: 1px solid var(--tool-edge-card); border-radius: 16px; box-shadow: var(--tool-card-shadow); margin: 0; padding: 0; display: flex; min-width: 0; transition: box-shadow var(--tl-motion-fast, 200ms ease-out); }
.tool-card:hover { box-shadow: var(--tl-shadow-3, 0 8px 30px rgba(26, 39, 68, 0.14)); }
.tool-card:focus-within { outline: 3px solid var(--tool-blue); outline-offset: 2px; }
.tool-main .tool-card-a { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; min-height: 160px; padding: 24px; color: var(--tool-navy); text-decoration: none; border-radius: 16px; }
.tool-main .tool-card-a:focus-visible { outline: none; }
.tool-ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--tool-sky); color: var(--tool-navy); }
.tool-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tool-ico::after { content: ""; position: absolute; top: 5px; right: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--tl-color-orange, #f97316); }
.tool-tag { display: inline-block; align-self: flex-start; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tool-navy); background: var(--tool-sky); border-radius: 9999px; padding: 4px 12px; line-height: 1.2; }
.tool-main .tool-card h3 { margin: 0; font-family: Fraunces, "Fraunces Fallback", Georgia, serif; font-size: 1.1875rem; font-weight: 600; line-height: 1.25; color: var(--tool-navy); }
.tool-main .tool-card p { margin: 0; color: var(--tool-text); line-height: 1.45; flex: 1 1 auto; }
.tool-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: #1d4ed8; }
.tool-go::after { content: "\2192"; transition: transform var(--tl-motion-fast, 200ms ease-out); }
.tool-card:hover .tool-go { text-decoration: underline; }
.tool-card:hover .tool-go::after { transform: translateX(4px); }

/* Hub: quieter list of service-page calculators */
.tool-compact { margin: 0 0 8px; padding-top: 32px; border-top: 1px solid var(--tool-divider); }
.tool-compact h2 { font-size: 1.25rem; color: var(--tool-text); }
.tool-compact h3 { font-size: 1rem; margin: 24px 0 4px; color: var(--tool-text); font-weight: 600; }
.tool-main ul.tool-compact-list { list-style: none; margin: 0 0 8px; padding: 0; columns: 1; }
@media (min-width: 768px) { .tool-main ul.tool-compact-list { columns: 2; column-gap: 32px; } }
.tool-compact-list li { break-inside: avoid; margin: 0; padding: 0; color: var(--tool-text); min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; border-bottom: 1px solid var(--tool-divider); }
.tool-compact-list a { display: inline-flex; align-items: center; min-height: 44px; }
.tool-compact-list li span { color: var(--tool-muted); }

/* Hub extras kept for older markup */
.tool-main ul.tool-card-list.tool-card-list-big { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .tool-main ul.tool-card-list.tool-card-list-big { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tool-main ul.tool-card-list.tool-card-list-big { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Reusable output: copy, download, print (Ben t2210u, 30 Nov 2026) */
.tool-result .tool-actions { margin: 16px 0 0; }
.tool-line { display: block; margin: 4px 0 8px; padding: 8px 12px; background: var(--tool-tint-row); border-radius: 8px; line-height: 1.45; color: var(--tool-navy); overflow-wrap: anywhere; }
.tool-result li .tool-line { margin-top: 8px; }
.tool-template { border-top: 1px solid var(--tool-divider); padding: 16px 0 0; margin: 16px 0 0; }
.tool-template h4 { margin: 0 0 8px; font-size: 1.0625rem; font-weight: 600; color: var(--tool-navy); }
.tool-template .tool-when { margin: 0 0 8px; color: var(--tool-text); }
.tool-template .tool-msg { margin: 0 0 8px; padding: 12px 16px; background: var(--tool-tint-row); border-radius: 8px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--tool-navy); }
.tool-template .tool-meta { margin: 0 0 8px; color: var(--tool-text); }
.tool-template .tool-btn { min-height: 44px; padding: 8px 16px; }
.tool-table-wrap { overflow-x: auto; margin: 0 0 16px; max-width: 100%; }
.tool-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tool-table th, .tool-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--tl-border-subtle, #dde6f5); vertical-align: top; color: var(--tool-navy); min-height: 44px; }
.tool-table th { font-weight: 600; color: var(--tool-muted); }
.tool-table tbody tr:nth-child(even) { background: var(--tool-tint-row); }
.tool-table td:not(:first-child) { text-align: right; }

/* Shared engine blocks (assets/tools.js) */
.tool-summary { margin: 0 0 var(--tool-pad); }
.tool-warn { margin: 0 0 16px; padding: 12px 16px 12px 32px; background: #fff7e6; border: 1px solid #f0d9a8; border-radius: 8px; color: #5b4310; }
.tool-block { background: transparent; border: 0; border-top: 1px solid var(--tool-divider); border-radius: 0; padding: 24px 0 0; margin: 24px 0 0; min-width: 0; }
.tool-block:first-of-type, .tool-summary + .tool-block, .tool-warn + .tool-block { margin-top: 0; border-top: 0; padding-top: 0; }
.tool-block h3 { margin: 0 0 8px; font-size: 1.0625rem; }
.tool-block .tool-meta { margin: 0 0 8px; color: var(--tool-text); }
.tool-block .tool-msg { margin: 0 0 8px; padding: 12px 16px; background: var(--tool-tint-row); border-radius: 8px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--tool-navy); }
.tool-block .tool-actions { margin: 12px 0 0; }
.tool-block .tool-btn { min-height: 44px; padding: 8px 16px; }
.tool-block .tool-btn:not(.tool-btn-ghost):not(.tool-btn-text) { min-height: 48px; padding: 10px 24px; }
.tool-result .tool-all { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--tool-divider); }
.tl-flag.is-long { color: #b91c1c; font-weight: 600; }
.tl-flag.is-ok { color: #15803d; font-weight: 600; }
.tool-main fieldset.tool-q .tool-hint { margin-top: 8px; }
.tool-main [hidden] { display: none !important; }
.tool-form-group { margin: 0 0 8px; padding: 0 0 8px; border-bottom: 1px solid var(--tool-divider); }
.tool-form-group h3 { margin: 8px 0 16px; font-size: 1rem; color: var(--tool-text); }

/* Printable sheets: review card, signs, forms. The print preview reads as "the page you will print". */
.tl-sheet { background: #fff; color: #111; border: 1px solid var(--tool-edge-card); border-radius: 12px; padding: 16px; text-align: center; margin: 0 auto 12px; max-width: 100%; box-shadow: var(--tl-shadow-1, 0 1px 2px rgba(26, 39, 68, 0.10)); }
.tl-sheet h4 { margin: 0 0 8px; font-size: 1.25rem; color: #111; }
.tl-sheet p { margin: 0 0 8px; color: #111; }
.tl-sheet .tl-qr { width: min(100%, 220px); margin: 8px auto; }
.tl-sheet .tl-qr svg { display: block; width: 100%; height: auto; }
.tl-sheet .tl-url { overflow-wrap: anywhere; word-break: break-all; }
.tl-sheet.tl-big .tl-qr { width: min(100%, 300px); }
.tl-sheet.tl-big h4 { font-size: 1.6rem; }
.tl-sheet .tl-small { color: #444; }
.tl-sheet.tl-left { text-align: left; }
.tl-doc { background: #fff; color: #111; border: 1px solid var(--tool-edge-card); border-radius: 8px; padding: 16px; text-align: left; line-height: 1.5; box-shadow: var(--tl-shadow-1, 0 1px 2px rgba(26, 39, 68, 0.10)); }
.tl-doc h4 { margin: 16px 0 8px; font-size: 1rem; color: #111; border-bottom: 1px solid #999; padding-bottom: 4px; }
.tl-doc h4:first-child { margin-top: 0; }
.tl-doc p { color: #111; margin: 0 0 8px; }
.tl-doc .tl-fill { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 8px; }
.tl-doc .tl-fill label { flex: 1 1 200px; font-weight: 600; color: #111; margin: 0; display: block; }
.tl-doc input[type="text"], .tl-doc input[type="date"] { display: block; width: 100%; border: 0; border-bottom: 1px solid #111; border-radius: 0; background: transparent; font: inherit; padding: 4px 0; min-height: 44px; color: #111; }
.tl-doc .tl-yn { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0 0 8px; align-items: center; }
.tl-doc .tl-yn span.q { flex: 1 1 100%; }
.tl-doc .tl-yn label { font-weight: 400; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.tl-doc input[type="checkbox"], .tl-doc input[type="radio"] { width: 24px; height: 24px; flex: 0 0 auto; accent-color: var(--tool-navy); }
.tl-doc .tl-box { display: inline-block; width: 16px; height: 16px; border: 1.5px solid #111; vertical-align: -2px; margin-right: 8px; }
.tl-doc .tl-sig { margin-top: 24px; }
.tl-table-flat { width: 100%; border-collapse: collapse; }
.tl-table-flat th, .tl-table-flat td { border: 1px solid #999; padding: 4px 8px; text-align: left; color: #111; }

@media print {
  .tool-block { border: 0; padding: 0; margin: 0 0 12px; break-inside: avoid; }
  .tool-block .tool-msg { background: #fff; padding: 0; }
  .tool-summary, .tool-warn { display: none !important; }
  body.tl-print-one .tool-block:not(.tl-print-target) { display: none !important; }
  body.tl-print-one .tool-all { display: none !important; }
  .tl-sheet { border-color: #000; box-shadow: none; }
  .tl-doc { border: 0; padding: 0; box-shadow: none; }
}

/* Print: only the printable result (every tool) */
@media print {
  nav.tl-nav, footer, .skip-link, .tool-hero, .tool-noprint, .tool-lede, .tool-panel, .tool-section, .tool-cta, .tool-actions, .tool-next, .tool-softlink, .tool-jump, .tool-updated, .tool-notice, .tool-after { display: none !important; }
  body.tool-page { background: #fff; }
  .tool-main, .tool-body { max-width: none; padding: 0; margin: 0; }
  .tool-area { display: block; }
  .tool-result { border: 0; background: #fff; padding: 0; margin: 0; box-shadow: none; position: static; max-height: none !important; overflow: visible !important; }
  .tool-result > h2 { display: none; }
  .tool-result > * { margin-left: 0; margin-right: 0; }
  .tool-result.tool-printable { display: block !important; }
}

/* Long unbroken input (huge pasted text) must never push the page wider than the screen */
.tool-block, .tool-block h3, .tool-block p, .tl-sheet, .tl-sheet h4, .tl-sheet p, .tl-doc, .tl-doc h4, .tl-doc p, .tool-summary, .tool-warn { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.tool-result, .tool-panel { min-width: 0; }
.tool-big, .tool-card h3 { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .tool-main * { transition: none !important; } }
