/* =========================================================================
   RemoteBooksOnline design system: rbo-ds.css (v1.0, direction B "Premium
   Financial Services", final). One stylesheet, mobile-first, no framework.
   Docs: TOKENS_AND_COMPONENTS.md. Breakpoints: 640 (sm) / 960 (md) / 1100 (lg).
   ========================================================================= */

/* ---------- 0. Font (self-hosted Manrope variable, 400-800) ---------- */
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-var.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

/* ---------- 1. Tokens ---------- */
:root {
  /* brand */
  --navy: #0C1B33; --navy-800: #132744; --navy-700: #22385C; --navy-600: #34507E;
  --blue: #1B4BC4; --blue-700: #153B9C; --blue-100: #DCE5F8; --blue-050: #EEF2FB; --sky: #9DB6F2;
  /* neutrals (warm) */
  --white: #FFFFFF; --paper: #F7F6F3; --paper-2: #FAFAF8;
  --ink: #121B2B; --ink-2: #3A4352; --ink-3: #525A69;
  --rule: #E3E0D8; --rule-2: #CFCAC0; --field: #8E897E;
  --on-navy: #FFFFFF; --on-navy-2: #BAC5D8;
  /* Brand-blue surfaces (heroes, bands, CTA bands, footers): one gradient for every large dark section. Text roles on it:
     white 7.4:1, --on-blue-2 5.8:1, --on-blue-accent 5.1:1 against the lighter end (#1B4BC4). */
  --blue-deep: #153A9A; --surface-brand: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 100%);
  --on-blue-2: #DCE5F8; --on-blue-accent: #C9D7FA; --on-blue-line: rgba(255,255,255,.22); --on-blue-line-2: rgba(255,255,255,.42);
  --on-blue-panel: rgba(9,28,84,.26);
  /* status */
  --positive: #1E6B47; --positive-bg: #E9F3EE; --error: #A12B2B; --error-bg: #FBEFEF; --star: #A86400;

  /* type: one family. Swap --font-sans only (see typography/). */
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-meta: 0.875rem;   /* 14px: floor for any text */
  --fs-sm: 0.9375rem;    /* 15px mobile, 16px >=960: supporting text, plan descriptions, form labels */
  --fs-body: 1rem;       /* 16px mobile, 17px >=960 */
  --fs-lead: 1.125rem;   /* 18 / 20 */
  --fs-h4: 1.0625rem;    /* 17 / 18 */
  --fs-h3: 1.1875rem;    /* 19 / 20 */
  --fs-h2: 1.75rem;      /* 28 / 32 / 36 */
  --fs-h1: 2rem;         /* 32 / 40 / 48 */
  --fs-price: 2.5rem;    /* 40 / 44 */
  --fw-body: 400; --fw-medium: 500; --fw-ui: 600; --fw-strong: 600;
  --fw-h1: 700; --fw-h2: 650; --fw-h3: 600; --fw-btn: 600; --fw-price: 700; --fw-bold: 650; --fw-label: 600;
  --lh-body: 1.6; --lh-h1: 1.12; --lh-h2: 1.2; --lh-h3: 1.35;
  --ls-h1: -0.022em; --ls-h2: -0.016em; --ls-h3: -0.006em; --ls-caps: 0.08em; --ls-body: 0;
  --measure: 68ch;

  /* space (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-7: 32px; --s-8: 40px; --s-9: 48px; --s-10: 64px; --s-11: 80px; --s-12: 96px;
  --section-y: 56px; --gutter: 16px; --container: 1200px;
  --card-pad: 20px; --stack: 16px; --sec-head-gap: 32px;

  /* shape + elevation */
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(12,27,51,.05);
  --sh-2: 0 1px 2px rgba(12,27,51,.04), 0 8px 24px -10px rgba(12,27,51,.14);
  --sh-3: 0 2px 4px rgba(12,27,51,.05), 0 22px 48px -20px rgba(12,27,51,.30);
  --focus-ring: 0 0 0 3px rgba(27,75,196,.28);

  --header-h: 64px; --bar-h: 64px;

  /* button roles (re-mapped on navy surfaces, see 4) */
  --btn-p-bg: var(--blue); --btn-p-fg: #fff; --btn-p-hover: var(--blue-700);
  --btn-s-bg: var(--white); --btn-s-fg: var(--navy); --btn-s-bd: var(--rule-2); --btn-s-hover: var(--navy);
  --link: var(--blue); --link-hover: var(--blue-700);
}
@media (min-width: 640px) { :root { --gutter: 24px; --fs-h1: 2.5rem; --fs-h2: 2rem; } }
@media (min-width: 960px) {
  :root { --gutter: 32px; --section-y: 80px; --header-h: 72px; --card-pad: 28px; --stack: 20px; --sec-head-gap: 40px; --fs-sm: 1rem;
    --fs-body: 1.0625rem; --fs-lead: 1.25rem; --fs-h1: 3rem; --fs-h2: 2.25rem; --fs-h3: 1.25rem; --fs-h4: 1.125rem; --fs-price: 2.75rem; }
}

/* ---------- 2. Base + typography ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; scroll-padding-bottom: 104px; } /* bottom: keyboard focus and in-page jumps stop above the sticky CTA bar / phone action bar (QA D-022) */
body {
  margin: 0; font-family: var(--font-sans); font-size: var(--fs-body); font-weight: var(--fw-body);
  line-height: var(--lh-body); letter-spacing: var(--ls-body); color: var(--ink); background: var(--paper-2);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 960px) { body { padding-bottom: 0; } }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
p { margin: 0 0 0.9em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; color: inherit; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: var(--fw-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-h3); line-height: var(--lh-h3); }
.h2-sm { font-size: clamp(1.375rem, 1.15rem + .9vw, 1.75rem); }
.h3-lg { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.375rem); font-weight: var(--fw-h2); }
strong, b { font-weight: var(--fw-strong); color: var(--ink); }
:is(.hero, .hero-main, .band-navy, .sticky-cta, .card--navy, .m-actionbar) :is(strong, b) { color: inherit; } /* bold text on dark surfaces stays light (QA D-020) */
section.band-navy > .container > p { color: var(--on-navy-2); } /* a note under the cards on a navy band (city pages) */
.num, .price, table, a[href^="tel:"] { font-variant-numeric: tabular-nums lining-nums; }
a[href^="tel:"] { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); padding: 10px 14px; border-radius: var(--r-sm); box-shadow: var(--sh-2); }
.skip-link:focus { top: 12px; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; } .icon-xs { width: 16px; height: 16px; }
.lead { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.55; }
.prose p, .sec-head p, .lead { max-width: var(--measure); }
.prose p { color: var(--ink-2); }
.prose p a { font-weight: var(--fw-ui); }
.muted { color: var(--ink-3); } .small { font-size: var(--fs-sm); } .meta { font-size: var(--fs-meta); color: var(--ink-3); }
.center { text-align: center; } .center .lead, .center p, p.center { margin-left: auto; margin-right: auto; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.section { padding: var(--section-y) 0; }
.section--tight { padding: calc(var(--section-y) * .6) 0; }
.band-paper { background: var(--paper); border-block: 1px solid var(--rule); }
.band-white { background: var(--white); border-block: 1px solid var(--rule); }
.band-paper + .band-paper, .band-white + .band-white { border-top: 0; }
.grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .grid { gap: var(--s-6); }
  .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.split { display: grid; gap: var(--s-7); }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-10); align-items: start; }
  .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--center { align-items: center; }
  .sticky-col { position: sticky; top: 104px; }
}
/* section header */
.sec-head { max-width: 760px; margin-bottom: var(--sec-head-gap); }
.sec-head > p { color: var(--ink-2); font-size: var(--fs-lead); margin: var(--s-4) 0 0; line-height: 1.55; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center > p { margin-inline: auto; }
.split > .sec-head, .sec-head:last-child { margin-bottom: 0; }
.sec-head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-4) var(--s-7); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-meta); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--blue); margin-bottom: var(--s-3); line-height: 1.3; }
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-s { margin-top: var(--s-4); } .mt-m { margin-top: var(--s-6); } .mt-l { margin-top: var(--s-8); } .mt-xl { margin-top: var(--s-10); }
.mb-s { margin-bottom: var(--s-4); } .mb-m { margin-bottom: var(--s-6); }
.divider { height: 1px; background: var(--rule); border: 0; margin: var(--s-9) 0; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  font: var(--fw-btn) 1rem/1.2 var(--font-sans); letter-spacing: 0; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--btn-p-bg); color: var(--btn-p-fg); box-shadow: var(--sh-1); }
.btn-primary:hover { background: var(--btn-p-hover); color: var(--btn-p-fg); }
.btn-secondary { background: var(--btn-s-bg); color: var(--btn-s-fg); border-color: var(--btn-s-bd); }
.btn-secondary:hover { border-color: var(--btn-s-hover); color: var(--btn-s-fg); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: var(--fs-sm); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-btn); text-decoration: none; min-height: 44px; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 16px; height: 16px; transition: transform .15s ease; }
.text-link:hover .icon { transform: translateX(2px); }
/* Navy surfaces: primary = WHITE with navy text, secondary = white outline. Automatic. */
.on-navy, .hero-main, .band-navy, .cta-band, .site-footer, .sticky-cta, .card--navy {
  --btn-p-bg: #fff; --btn-p-fg: var(--navy); --btn-p-hover: #E8EDF7;
  --btn-s-bg: transparent; --btn-s-fg: #fff; --btn-s-bd: rgba(255,255,255,.55); --btn-s-hover: #fff;
  --link: var(--on-blue-accent); --link-hover: #fff;
}
/* Text and hairline roles on the brand-blue surfaces (the 'navy' class names are kept; the surfaces are now blue). */
.on-navy, .hero-main, .band-navy, .cta-band, .site-footer, .sticky-cta, .card--navy,
.ds-legacy .intro-bookkeeping, .ds-legacy .intro, .ds-legacy > .hero:first-child, .ds-legacy > section.banner:first-child,
.ds-legacy .bg-dark-primary, .ds-legacy .bg-primary, .ds-legacy .scheduledemo > .container, .ds-legacy .callaction > .container {
  --on-navy-2: var(--on-blue-2); --sky: var(--on-blue-accent); --navy-600: var(--on-blue-line-2); --navy-700: var(--on-blue-line);
}
@media (min-width: 960px) { .hero { --on-navy-2: var(--on-blue-2); --sky: var(--on-blue-accent); --navy-600: var(--on-blue-line-2); --navy-700: var(--on-blue-line); } }
/* light surfaces nested in navy reset to light roles */
.surface-light, .form-card, .statement, .close-card, .facts-panel, .review-card, .dropdown, .drawer {
  --btn-p-bg: var(--blue); --btn-p-fg: #fff; --btn-p-hover: var(--blue-700);
  --btn-s-bg: var(--white); --btn-s-fg: var(--navy); --btn-s-bd: var(--rule-2); --btn-s-hover: var(--navy);
  --link: var(--blue); --link-hover: var(--blue-700);
  --on-navy-2: #BAC5D8; --sky: #9DB6F2; --navy-600: #34507E; --navy-700: #22385C;
}
@media (max-width: 639px) {
  .btn { white-space: normal; text-align: center; padding: 10px 16px; }
  .btn-row--stack { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .btn-row--stack > .btn:first-child { grid-column: 1 / -1; }
  .btn-row--stack > .btn:only-child, .btn-row--stack > .btn:first-child:nth-last-child(2), .btn-row--stack > .btn:first-child:nth-last-child(2) ~ .btn { grid-column: 1 / -1; }
  .btn-row--stack > .text-link { grid-column: 1 / -1; justify-content: center; }
}

/* ---------- 5. Header: utility row, white bar, nav, dropdowns ---------- */
.utility { display: none; background: var(--paper); border-bottom: 1px solid var(--rule); font-size: var(--fs-meta); color: var(--ink-2); }
.utility .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: var(--s-6); }
.utility a { color: var(--ink); text-decoration: none; font-weight: var(--fw-ui); }
.utility a:hover { color: var(--blue); text-decoration: underline; }
.u-left, .u-right { display: flex; align-items: center; gap: var(--s-4); white-space: nowrap; }
.u-left strong { color: var(--navy); font-weight: var(--fw-bold); }
.u-sep { width: 1px; height: 14px; background: var(--rule-2); }
@media (min-width: 1100px) { .utility { display: block; } }

.site-header { position: relative; z-index: 50; background: var(--white); border-bottom: 1px solid var(--rule); }
@media (min-width: 960px) { .site-header { position: sticky; top: 0; } }
.site-header > .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: var(--s-5); position: relative; }
.brand { display: flex; align-items: center; flex: none; min-height: 44px; }
/* Logo: refined R3 lockup (owner-approved 2026-11-18; templates/ds/logo.php). Inline SVG circle + live Manrope wordmark. */
.lk { display: inline-flex; align-items: center; font-family: var(--font-sans); line-height: 1; font-size: 22px; }
.lk-mk { flex: none; width: 1.32em; height: 1.32em; margin-right: .34em; }
.lk-wm { display: flex; flex-direction: column; line-height: 1; position: relative; }
.lk-rb { white-space: nowrap; font-weight: 650; color: #0C1B33; letter-spacing: -.008em; }
.lk-on { align-self: flex-end; font-weight: 650; color: #1777B8; font-size: .66em; margin-top: .07em; margin-right: .02em; letter-spacing: .01em; }
.lk sup { position: absolute; top: -.3em; right: -.75em; font-size: .32em; font-weight: 500; color: #0C1B33; line-height: 1; }
.lk--drawer { font-size: 20px; }
.lk--navy .lk-rb, .lk--navy sup { color: #FFFFFF; }
.lk--navy .lk-on { color: #7CC7F2; }
@media (min-width: 960px) {
  .lk--header { font-size: 25px; }
  .lk--header .lk-mk { margin-right: .36em; }
  .lk--header .lk-rb { letter-spacing: -.02em; }
  .lk--header .lk-on { font-weight: 600; font-size: .64em; margin-top: .05em; letter-spacing: 0; }
  .lk--header sup { font-size: .34em; right: -.8em; }
}
.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.header-call { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--navy); border-radius: var(--r-sm); }
.header-cta { display: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -10px; background: none; border: 0; color: var(--navy); cursor: pointer; border-radius: var(--r-sm); }
.nav-toggle .bars { width: 22px; height: 14px; position: relative; }
.nav-toggle .bars span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle .bars span:nth-child(2) { top: 6px; } .nav-toggle .bars span:nth-child(3) { top: 12px; }
.primary-nav { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .header-call, .nav-toggle { display: none; }
  .primary-nav { display: block; flex: 1; }
  .primary-nav > ul { list-style: none; display: flex; justify-content: center; gap: 2px; }
  .primary-nav > ul > li { position: relative; }
  .primary-nav > ul > li.has-mega { position: static; }
  .nav-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 0; background: none; cursor: pointer; border-radius: var(--r-sm);
    font: var(--fw-ui) var(--fs-sm)/1 var(--font-sans); color: var(--ink); text-decoration: none; white-space: nowrap; }
  .nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--blue); background: var(--paper); }
  .nav-link[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
  .nav-link .icon { width: 14px; height: 14px; transition: transform .15s; }
  .nav-link[aria-expanded="true"] .icon { transform: rotate(180deg); }
}
/* Header fit (js/rbo-ds.js 2b): a desktop menu too wide for the header first gets tighter spacing, then falls back to the menu button + phone icon. */
@media (min-width: 1100px) {
  .site-header.nav-tight .nav-link { padding: 0 8px; }
  .site-header.nav-compact .primary-nav { display: none; }
  .site-header.nav-compact .header-call, .site-header.nav-compact .nav-toggle { display: inline-flex; }
}
.dropdown { display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 60; min-width: 300px;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: var(--s-4); }
.dropdown[data-open="true"] { display: block; }
.dropdown ul { list-style: none; }
.dropdown a { display: block; padding: 7px 10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: var(--fs-sm); line-height: 1.35; }
.dropdown a:hover { background: var(--paper); color: var(--blue); }
/* QA D-030: the "Get a Quote" button in a dropdown card was dark text on blue (2.3:1): the dropdown link colour
   overrode the button. */
.dropdown .dd-card .btn-primary, .dropdown .dd-card .btn-primary:hover, .dropdown .dd-card .btn-primary:focus-visible { color: #fff; background: var(--blue); }
.dropdown .dd-card .btn-primary:hover { background: var(--blue-700); }
.dropdown .dd-note { display: block; padding: 7px 10px; font-size: var(--fs-sm); color: var(--ink-3); }
.dd-label { font-size: var(--fs-meta); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--ink-3); padding: 4px 10px 8px; margin: 0 0 6px; border-bottom: 1px solid var(--rule); }
.dropdown--wide { min-width: 380px; }
.dropdown--cols { min-width: 620px; } .dropdown--cols ul, .dd-cols { columns: 2; column-gap: var(--s-4); }
.dropdown--mega { left: var(--gutter); right: var(--gutter); transform: none; top: 100%; padding: var(--s-6); }
.mega-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: var(--s-6); }
.dd-cols li { break-inside: avoid; }
.mega-foot { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); font-size: var(--fs-sm); color: var(--ink-2); }

/* mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(12,27,51,.5); z-index: 80; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 90; background: var(--white); display: flex; flex-direction: column; box-shadow: var(--sh-3); }
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); padding: 0 6px 0 var(--gutter); border-bottom: 1px solid var(--rule); }
.drawer-head .lk { margin-right: 14px; }
.icon-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--navy); cursor: pointer; border-radius: var(--r-sm); }
.drawer-body { overflow-y: auto; padding: var(--s-2) var(--gutter) var(--s-6); flex: 1; }
.drawer-body > ul { list-style: none; }
.d-link, .drawer-body summary { display: flex; align-items: center; justify-content: space-between; min-height: 54px; font-weight: var(--fw-ui); font-size: 1.0625rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); cursor: pointer; list-style: none; }
.drawer-body summary::-webkit-details-marker { display: none; }
.drawer-body summary .icon { color: var(--ink-3); transition: transform .15s; }
.drawer-body details[open] > summary .icon { transform: rotate(180deg); }
.drawer-body details ul { list-style: none; padding: var(--s-2) 0 var(--s-3); border-bottom: 1px solid var(--rule); }
.drawer-body details a { display: flex; align-items: center; min-height: 44px; padding-left: var(--s-3); color: var(--ink-2); text-decoration: none; font-size: var(--fs-body); }
.drawer-body details a:hover { color: var(--blue); }
.d-group { font-size: var(--fs-meta); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--ink-3); padding: var(--s-4) 0 var(--s-1) var(--s-3); }
.drawer-foot { display: grid; gap: var(--s-3); padding: var(--s-4) var(--gutter) calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); background: var(--paper); }
.drawer-foot .meta { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.drawer-foot .meta a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-2); }
body.drawer-open { overflow: hidden; }

/* ---------- 6. Hero (navy) ---------- */
.hero { position: relative; }
.hero > .container { display: grid; gap: var(--s-6); }
.hero-main { position: relative; background: var(--surface-brand); color: var(--on-navy); overflow: hidden;
  margin: 0 calc(-1 * var(--gutter)); padding: var(--s-8) var(--gutter) var(--s-10); }
.hero-main:last-child { padding-bottom: var(--s-9); }
.hero-main::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 90% at 100% 0%, rgba(27,75,196,.34), transparent 65%),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 56px 56px; }
.hero-main > * { position: relative; }
.hero h1 { color: #fff; max-width: 22ch; }
.hero h1 .h1-tail { display: block; font-size: .56em; font-weight: var(--fw-ui); color: var(--on-navy-2); margin-top: .45em; letter-spacing: -0.005em; line-height: 1.3; }
.hero-sub { font-size: var(--fs-lead); color: var(--on-navy-2); max-width: 56ch; margin: var(--s-5) 0 0; line-height: 1.55; }
.hero-sub strong, .hero-sub a { color: #fff; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-5) 0 0; font-size: var(--fs-sm); font-weight: var(--fw-ui); color: #fff; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .icon { width: 18px; height: 18px; color: var(--sky); }
.hero .btn-row { margin-top: var(--s-7); }
.hero-note { margin: var(--s-5) 0 0; font-size: var(--fs-sm); color: var(--on-navy-2); }
.hero-note a { font-weight: var(--fw-btn); }
.hero-note > a:only-child { display: inline-flex; align-items: center; min-height: 44px; } /* QA D-032: a lone link ("Call Me Back") was a 21 px tap target */
.hero-aside { padding-bottom: var(--s-2); }
.hero-aside > :first-child { margin-top: calc(-1 * var(--s-9)); position: relative; } /* card overlaps the navy band on mobile */
/* short hero (state / city / ZIP): H1 + 1-2 lines + CTAs, form right after */
.hero--short .hero-main { padding-top: var(--s-6); padding-bottom: var(--s-10); }
.hero--short .btn-row { margin-top: var(--s-5); }
.loc-chip { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-meta); font-weight: var(--fw-ui); color: var(--on-navy-2); padding: 0; margin: 0 0 var(--s-4); letter-spacing: .02em; } /* a place label, not a control: no box (QA D-006) */
.loc-chip .icon { color: var(--sky); }
@media (min-width: 960px) {
  .hero { background: var(--surface-brand); color: var(--on-navy); overflow: hidden; }
  .hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(55% 90% at 100% 0%, rgba(27,75,196,.32), transparent 65%),
      linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 56px 56px,
      linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 56px 56px;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.35), #000 50%); mask-image: linear-gradient(90deg, rgba(0,0,0,.35), #000 50%); }
  .hero > .container { position: relative; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-10); align-items: center; padding-top: 80px; padding-bottom: 88px; }
  .hero-main { margin: 0; padding: 0; background: none; overflow: visible; }
  .hero-main::before { display: none; }
  .hero-aside { padding: 0; }
  .hero-aside > :first-child { margin-top: 0; }
  .hero--short > .container { padding-top: 48px; padding-bottom: 56px; align-items: start; }
  .hero--short .hero-main { padding-top: var(--s-4); }
  .hero--short h1 { max-width: 22ch; }
}
/* hero breadcrumb + light breadcrumb */
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: var(--fs-meta); color: var(--ink-3); margin: 0 0 var(--s-4); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--rule-2); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; min-height: 24px; display: inline-flex; align-items: center; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: var(--fw-ui); }
.hero .breadcrumb, .on-navy .breadcrumb { color: var(--on-navy-2); }
.hero .breadcrumb a { color: var(--on-navy-2); }
.hero .breadcrumb a:hover { color: #fff; }
.hero .breadcrumb li + li::before { color: var(--navy-600); }
.hero .breadcrumb [aria-current] { color: #fff; }
/* price index (pricing hero) */
.price-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--s-8) 0 0; border-top: 1px solid var(--navy-700); }
.price-index > div { padding: var(--s-4) var(--s-4) 0 0; }
.price-index > div + div { padding-left: var(--s-4); border-left: 1px solid var(--navy-700); }
.price-index dt { font-size: var(--fs-meta); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--on-navy-2); }
.price-index dd { margin: 6px 0 0; color: #fff; font-variant-numeric: tabular-nums; }
.price-index .num { font-size: 1.75rem; font-weight: var(--fw-price); letter-spacing: -0.02em; line-height: 1; }
.price-index .per { color: var(--on-navy-2); font-size: var(--fs-meta); margin-left: 2px; }
.price-index .word { font-size: 1.125rem; font-weight: var(--fw-bold); line-height: 1.55; }
.price-index .d { font-size: var(--fs-meta); color: var(--on-navy-2); line-height: 1.4; }
@media (max-width: 479px) {
  .price-index { grid-template-columns: 1fr; }
  .price-index > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--navy-700); }
  .price-index > div + div { padding-left: 0; border-left: 0; }
  .price-index dd { margin: 0; text-align: right; }
  .price-index .d { grid-column: 1 / -1; text-align: left; margin-top: 2px; }
}

/* ---------- 7. Trust strip ---------- */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--rule); }
.trust-strip ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; }
.trust-strip li { display: flex; align-items: center; gap: 10px; padding: 14px 0; font-size: var(--fs-meta); font-weight: var(--fw-ui); color: var(--ink); line-height: 1.35; }
.trust-strip li:nth-child(odd) { padding-right: 10px; }
.trust-strip .icon { color: var(--blue); width: 20px; height: 20px; }
.trust-strip a { display: inline-flex; align-items: center; min-height: 24px; } /* QA D-032: the BBB link was 19 px tall (WCAG 2.2 minimum 24 px) */
.trust-strip a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-2); }
@media (min-width: 1180px) {
  .trust-strip ul { display: flex; justify-content: space-between; }
  .trust-strip li { padding: 18px 0; font-size: var(--fs-sm); white-space: nowrap; }
  .trust-strip li + li::before { content: ""; width: 1px; height: 20px; background: var(--rule); margin-right: clamp(12px, 2.5vw, 44px); }
}

/* ---------- 8. Cards ---------- */
.card { position: relative; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--card-pad); box-shadow: var(--sh-1); }
.card > h3, .card .card-title { margin-bottom: var(--s-2); }
.card-title { display: block; font-size: var(--fs-h3); font-weight: var(--fw-h3); line-height: var(--lh-h3); color: var(--ink); }
.card p { color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }
.card--flat { box-shadow: none; background: var(--paper-2); }
.card--flex { display: flex; flex-direction: column; }
.card-foot { margin-top: auto; padding-top: var(--s-5); }
.card--interactive { transition: border-color .15s, box-shadow .15s, transform .15s; }
.card--interactive:hover { border-color: var(--rule-2); box-shadow: var(--sh-2); }
.card--interactive a.stretch { color: var(--ink); text-decoration: none; }
.card--interactive a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--interactive:hover a.stretch { color: var(--blue); }
.icon-well { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--blue-050); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--s-4); flex: none; }
.icon-well .icon { width: 22px; height: 22px; }
.card--navy { background: var(--surface-brand); border-color: transparent; box-shadow: none; color: #fff; }
.band-navy .card { background: var(--on-blue-panel); border-color: var(--on-blue-line); box-shadow: none; color: #fff; }
.card--navy p, .band-navy .card p { color: var(--on-navy-2); }
.card--navy .icon-well, .band-navy .icon-well { background: rgba(255,255,255,.14); color: #fff; }
.card--navy .card-title, .card--navy h2, .card--navy h3 { color: #fff; }
.band-navy { background: var(--surface-brand); color: var(--on-navy); }
.band-navy h2 { color: #fff; }
.band-navy .eyebrow { color: var(--sky); }
/* compact row cards on phones (services, features) */
@media (max-width: 639px) {
  .cards-compact .card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 16px 18px; }
  .cards-compact .icon-well { margin: 0; width: 40px; height: 40px; }
  .cards-compact .card > h3, .cards-compact .card-title { margin: 0; font-size: 1.0625rem; }
  .cards-compact .card > p { grid-column: 1 / -1; margin: 8px 0 0; font-size: var(--fs-sm); }
}

/* ---------- 9. Statement, ledger rows, checklist, "at a glance" ---------- */
.statement { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden; color: var(--ink); }
.statement-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding: var(--s-4) var(--s-6); border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.statement-head .title { font-weight: var(--fw-bold); font-size: 1rem; line-height: 1.4; color: var(--navy); letter-spacing: 0; }
.statement-head .meta { white-space: nowrap; }
/* the header caption is a label, not a link: small caps in the muted ink, so it does not read as "view all" (QA D-007) */
.statement-head .meta { font-size: 0.75rem; font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--ink-3); cursor: default; }
@media (max-width: 639px) { .statement-head .meta { display: none; } }
.statement-body { padding: var(--s-2) var(--s-6); }
.statement-foot { padding: var(--s-4) var(--card-pad); background: var(--paper-2); border-top: 1px solid var(--rule); font-size: var(--fs-sm); color: var(--ink-2); }
.statement-foot a { font-weight: var(--fw-ui); }
/* "at a glance" rows: label left, figure right-aligned (tabular) */
.glance { margin: 0; }
.glance-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s-5); align-items: baseline; padding: var(--s-4) var(--card-pad); border-bottom: 1px solid var(--rule); }
.glance-row:last-child { border-bottom: 0; }
.glance-row dt, .glance-row .label { font-weight: var(--fw-medium); color: var(--ink); }
.glance-row dd, .glance-row .fig { margin: 0; text-align: right; font-weight: var(--fw-bold); color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.glance-row .fig small, .glance-row dd small { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--ink-2); }
.glance-row .soft { font-weight: var(--fw-ui); color: var(--ink-2); font-size: var(--fs-sm); }
.glance-row .desc { grid-column: 1 / -1; margin: 4px 0 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }
.glance-row .desc a { font-weight: var(--fw-ui); }
.glance-row--key { background: var(--blue-050); }
.glance-figure { padding: var(--s-5) var(--s-6) var(--s-4); border-bottom: 1px solid var(--rule); }
.glance-figure .amt { font-size: var(--fs-price); font-weight: var(--fw-price); letter-spacing: -0.025em; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.glance-figure .per { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--ink-2); margin-left: 4px; }
.glance-figure p { margin: var(--s-2) 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
@media (max-width: 479px) { .glance-row--wrap { grid-template-columns: 1fr; } .glance-row--wrap dd, .glance-row--wrap .fig { text-align: left; white-space: normal; color: var(--blue); } }
.ledger { list-style: none; border-top: 1px solid var(--rule); }
.ledger > li { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); }
.ledger--flush { border-top: 0; } .ledger--flush > li:last-child { border-bottom: 0; }
.ledger .icon { color: var(--positive); margin-top: 3px; width: 20px; height: 20px; }
.ledger--plus .icon { color: var(--ink-3); }
.ledger h3 { font-size: var(--fs-h4); align-self: center; }
.ledger--links > li { padding: 0; }
.ledger--links a { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); width: 100%; min-height: 52px; padding: var(--s-2) 0; color: var(--ink); text-decoration: none; font-weight: var(--fw-ui); }
.ledger--links a:hover { color: var(--blue); }
.ledger--links .icon { color: var(--ink-3); width: 18px; height: 18px; margin: 0; }
.ledger--links a:hover .icon { color: var(--blue); }
.checklist { list-style: none; display: grid; gap: var(--s-3); }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--positive); width: 20px; height: 20px; margin-top: 3px; }
.band-navy .checklist .icon, .on-navy .checklist .icon { color: var(--sky); }

/* ---------- 10. Pricing ---------- */
.plans { display: grid; gap: var(--s-5); }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--card-pad); box-shadow: var(--sh-1); }
.plan--featured { border-color: var(--navy); box-shadow: var(--sh-3); }
.plan--featured::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--blue); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.plan--quiet { background: var(--paper-2); box-shadow: none; }
.plan-name { font-size: var(--fs-meta); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--ink-3); }
.plan .badge { position: absolute; top: 22px; right: 20px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; margin: var(--s-3) 0 var(--s-2); color: var(--navy); }
.price .amt { font-size: var(--fs-price); font-weight: var(--fw-price); line-height: 1; letter-spacing: -0.03em; }
.price .amt--word { font-size: 1.75rem; letter-spacing: -0.02em; }
.price .per { font-size: var(--fs-sm); color: var(--ink-2); font-weight: var(--fw-medium); }
.plan-scope { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; padding-bottom: var(--stack); margin-bottom: var(--stack); border-bottom: 1px solid var(--rule); }
.plan .checklist { margin-bottom: var(--card-pad); font-size: var(--fs-sm); color: var(--ink-2); }
.plan > .btn { margin-top: auto; }
/* clean pricing table (C): right-aligned tabular figures */
.price-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); font-variant-numeric: tabular-nums lining-nums; }
.price-table caption { text-align: left; padding: 0 0 var(--s-3); font-weight: var(--fw-bold); color: var(--navy); }
.price-table th, .price-table td { padding: 14px var(--s-4); border-bottom: 1px solid var(--rule); text-align: left; vertical-align: baseline; }
.price-table thead th { font-size: var(--fs-meta); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--rule-2); padding-top: 0; }
.price-table tbody th { font-weight: var(--fw-ui); color: var(--ink); }
.price-table .r, .price-table td.r, .price-table th.r { text-align: right; white-space: nowrap; }
.price-table td.fig { font-weight: var(--fw-bold); color: var(--navy); font-size: 1.0625rem; }
.price-table tr > :first-child { padding-left: 0; } .price-table tr > :last-child { padding-right: 0; }
.price-table tfoot td { border-bottom: 0; font-size: var(--fs-meta); color: var(--ink-3); padding-top: var(--s-3); }
.price-table .sub { display: block; font-size: var(--fs-meta); font-weight: var(--fw-medium); color: var(--ink-3); }
.table-panel { overflow-x: auto; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: var(--s-5) var(--s-6) var(--s-2); }
@media (max-width: 639px) {
  .price-table--stack thead { display: none; }
  .price-table--stack, .price-table--stack tbody, .price-table--stack tr { display: block; }
  .price-table--stack tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .price-table--stack th, .price-table--stack td { border: 0; padding: 0; }
  .price-table--stack td[data-label] { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: var(--fs-sm); color: var(--ink-2); }
  .price-table--stack td[data-label]::before { content: attr(data-label); color: var(--ink-3); }
  .price-table--stack td.fig { grid-column: auto; grid-row: 1; grid-column-start: 2; font-size: 1.0625rem; }
}
/* in-house vs flat bars */
.cost-bars { padding: var(--s-5) var(--s-6) var(--s-3); display: grid; gap: var(--s-5); }
.cb-top { display: flex; justify-content: space-between; gap: var(--s-4); font-weight: var(--fw-ui); font-size: var(--fs-sm); margin-bottom: 8px; }
.cb-top .num { color: var(--navy); font-weight: var(--fw-bold); }
.cb-track { position: relative; height: 12px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-pill); overflow: hidden; }
.cb-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--r-pill); }
.cb-in { background: #8792A6; border-radius: var(--r-pill) 0 0 var(--r-pill); }
.cb-range { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(-45deg, #8792A6 0 4px, #C3C9D4 4px 8px); }
.cb-us { background: var(--blue); min-width: 12px; }
.cb-note { margin: 6px 0 0; font-size: var(--fs-meta); color: var(--ink-3); }

/* ---------- 11. Comparison / data table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-1); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 640px; }
.data-table th, .data-table td { padding: 14px var(--s-5); text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.data-table thead th { font-size: var(--fs-meta); font-weight: var(--fw-bold); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); }
.data-table tbody th { font-weight: var(--fw-ui); color: var(--ink); }
.data-table td { color: var(--ink-2); }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table .us { background: var(--blue-050); color: var(--ink); }
.data-table thead .us { color: var(--navy); box-shadow: inset 0 3px 0 var(--blue); }
.data-table .sub-head th { background: var(--paper); font-size: var(--fs-meta); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--navy); font-weight: var(--fw-bold); }
.data-table--sticky tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--white); box-shadow: 1px 0 0 var(--rule); }
.data-table--sticky thead th:first-child { background: var(--paper-2); }
.data-table--sticky .sub-head th { background: var(--paper); }
.yes { color: var(--positive); font-weight: var(--fw-bold); display: inline-flex; gap: 6px; align-items: center; }
.no { color: var(--ink-3); }
.table-note { font-size: var(--fs-meta); color: var(--ink-3); margin-top: var(--s-3); }
.scroll-hint { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-meta); color: var(--ink-3); margin-bottom: var(--s-2); }
@media (min-width: 960px) { .scroll-hint { display: none; } }
@media (max-width: 759px) { /* situation table -> stacked cards */
  .rt-cards { min-width: 0; }
  .rt-cards thead { display: none; }
  .rt-cards, .rt-cards tbody, .rt-cards tr, .rt-cards th, .rt-cards td { display: block; width: 100%; }
  .rt-cards tr { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--rule); }
  .rt-cards tbody tr:last-child { border-bottom: 0; }
  .rt-cards th, .rt-cards td { border: 0; padding: 2px 0; }
  .rt-cards td::before { content: attr(data-label) ": "; font-weight: var(--fw-ui); color: var(--ink-3); }
  .rt-cards th { font-size: 1rem; margin-bottom: 4px; }
}

/* ---------- 12. Location facts panel (C) ---------- */
.facts-panel { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden; }
.facts-panel .fp-head { display: flex; align-items: center; gap: 10px; padding: var(--s-4) var(--s-6); background: var(--navy); color: #fff; font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.facts-panel .fp-head .icon { color: var(--sky); width: 18px; height: 18px; }
.facts-panel dl { margin: 0; }
.facts-panel .glance-row dt { font-weight: var(--fw-medium); color: var(--ink-2); }
.facts-panel .fp-foot { padding: var(--s-4) var(--s-6); border-top: 1px solid var(--rule); background: var(--paper-2); font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- 13. Monthly-close visual (A) ---------- */
.close-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: var(--s-5); color: var(--ink); max-width: 460px; width: 100%; }
.cc-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding-bottom: var(--s-4); border-bottom: 1px solid var(--rule); }
.cc-title { display: flex; align-items: center; gap: 12px; }
.cc-title .icon-well { margin: 0; width: 40px; height: 40px; }
.cc-title strong { display: block; font-size: 1rem; font-weight: var(--fw-bold); color: var(--navy); line-height: 1.3; }
.cc-title span span { display: block; font-size: var(--fs-meta); color: var(--ink-3); }
.cc-pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-meta); font-weight: var(--fw-bold); color: var(--positive); background: var(--positive-bg); border-radius: var(--r-sm); padding: 4px 10px; white-space: nowrap; }
.cc-pill .icon { width: 14px; height: 14px; }
.cc-rows { list-style: none; padding: var(--s-2) 0; }
.cc-rows li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--rule); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.cc-rows li:last-child { border-bottom: 0; }
.cc-rows .cc-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-050); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.cc-rows .cc-ic .icon { width: 15px; height: 15px; }
.cc-ok { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-meta); font-weight: var(--fw-bold); color: var(--positive); }
.cc-ok .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.cc-label { font-size: var(--fs-meta); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--ink-3); margin: var(--s-3) 0 var(--s-2); }
.cc-reports { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cc-doc { border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 10px; background: var(--paper-2); }
.cc-doc b { display: block; font-size: var(--fs-meta); font-weight: var(--fw-bold); color: var(--navy); line-height: 1.25; margin-bottom: 8px; }
.cc-doc i { display: block; height: 5px; border-radius: 3px; background: var(--rule); margin-top: 5px; }
.cc-doc i:nth-of-type(2) { width: 78%; } .cc-doc i:nth-of-type(3) { width: 56%; }
.cc-chart { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: var(--s-4); padding-top: var(--s-2); border-top: 1px solid var(--rule); }
.cc-chart span { flex: 1; background: var(--blue-100); border-radius: 3px 3px 0 0; }
.cc-chart span.hi { background: var(--blue); }
@media (max-width: 380px) { .cc-reports { grid-template-columns: 1fr 1fr; } }

/* ---------- 14. FAQ accordion (details/summary, no JS needed) ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item > summary { list-style: none; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-5); padding: var(--s-5) 0; cursor: pointer; min-height: 56px; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-q { margin: 0; font-size: var(--fs-h4); font-weight: var(--fw-h3); line-height: 1.45; letter-spacing: 0; color: var(--ink); }
.faq-item > summary:hover .faq-q { color: var(--blue); }
.faq-item > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.faq-pm { flex: none; width: 28px; height: 28px; border: 1px solid var(--rule-2); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); transition: transform .2s, background-color .15s; }
.faq-pm .icon { width: 14px; height: 14px; stroke-width: 2; }
.faq-item[open] .faq-pm { transform: rotate(45deg); background: var(--navy); color: #fff; border-color: var(--navy); }
.faq-a { padding: 0 var(--s-9) var(--s-5) 0; color: var(--ink-2); max-width: var(--measure); }
.faq-a p:last-child { margin-bottom: 0; }
@media (max-width: 639px) { .faq-a { padding-right: 0; } }

/* ---------- 15. Forms ---------- */
.form-card { background: var(--white); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: var(--card-pad); }
.form-card--compact { padding: var(--s-5); }
@media (min-width: 960px) { .form-card--compact { padding: var(--s-6); } }
@media (min-width: 960px) { .form-card { padding: var(--s-7); } .form-card--compact { padding: var(--s-6); } }
.form-title { display: block; font-size: 1.375rem; font-weight: var(--fw-h2); line-height: 1.25; letter-spacing: var(--ls-h2); color: var(--navy); margin: 0; }
.form-intro { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; margin: var(--s-2) 0 var(--stack); }
.form-points { list-style: none; display: grid; gap: 6px; margin: var(--s-3) 0 var(--s-4); font-size: var(--fs-sm); color: var(--ink-2); }
.form-points li { display: flex; gap: 10px; align-items: flex-start; }
.form-points .icon { width: 18px; height: 18px; color: var(--positive); margin-top: 3px; }
.form-points--2 { grid-template-columns: 1fr 1fr; }
.req-note { font-size: var(--fs-meta); color: var(--ink-3); margin: 0 0 var(--s-3); }
.field { display: grid; gap: 6px; margin-bottom: var(--stack); }
.field label, .label { font-size: var(--fs-sm); font-weight: var(--fw-ui); color: var(--ink); line-height: 1.3; }
.field .req { color: var(--error); font-weight: var(--fw-bold); }
.field .opt { color: var(--ink-3); font-weight: var(--fw-medium); }
.input { width: 100%; min-height: 48px; padding: 10px 14px; font: var(--fw-medium) 1rem/1.4 var(--font-sans); color: var(--ink); background: var(--white); border: 1px solid var(--field); border-radius: var(--r-sm); transition: border-color .15s, box-shadow .15s; appearance: none; }
.input::placeholder { color: #6A707C; opacity: 1; }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus-ring); }
textarea.input { min-height: 96px; resize: vertical; }
select.input { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230C1B33' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field-row { display: grid; gap: 0 var(--s-4); }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-hint { font-size: var(--fs-sm); color: var(--ink-2); }
.field-error { display: flex; gap: 6px; align-items: flex-start; font-size: var(--fs-meta); font-weight: var(--fw-ui); color: var(--error); }
.field-error:empty { display: none; }
.field-error .icon { width: 16px; height: 16px; margin-top: 2px; }
.field.is-invalid .input, .input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; padding: 9px 13px; background: var(--error-bg); }
.form-alert { display: flex; gap: 10px; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: var(--error-bg); border: 1px solid #E5C4C4; color: var(--error); font-size: var(--fs-sm); font-weight: var(--fw-ui); margin-bottom: var(--s-4); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: var(--s-3) var(--s-4); margin: var(--s-1) 0 var(--s-5); background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-sm); font-size: var(--fs-meta); line-height: 1.55; color: var(--ink-2); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
.consent strong { color: var(--ink); }
.form-alt { font-size: var(--fs-sm); color: var(--ink-3); margin: var(--s-4) 0 0; text-align: center; }
.form-alt + .form-alt { margin-top: var(--s-2); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
dialog.modal { border: 0; padding: 0; border-radius: var(--r-lg); width: min(520px, calc(100% - 24px)); max-height: calc(100% - 24px); box-shadow: var(--sh-3); color: var(--ink); }
dialog.modal::backdrop { background: rgba(12,27,51,.55); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: var(--s-3) var(--s-3) var(--s-3) var(--s-6); border-bottom: 1px solid var(--rule); }
.modal-body { padding: var(--s-6); }
.loader[hidden] { display: none; }

/* ---------- 16. Reviews (genuine Google reviews only) ---------- */
.reviews { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .reviews--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review-card { display: flex; flex-direction: column; gap: var(--s-3); margin: 0; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--s-5) var(--s-6); box-shadow: var(--sh-1); }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.review-card blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.55; color: var(--ink); }
.review-card figcaption { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--rule); font-size: var(--fs-meta); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.review-card figcaption strong { font-size: var(--fs-sm); color: var(--ink); }
.review-src { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-ui); color: var(--ink-2); }
.review-src .g { width: 16px; height: 16px; }
.reviews-foot { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); align-items: center; margin-top: var(--s-5); }
.reviews-foot a { font-weight: var(--fw-btn); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }

/* ---------- 17. Link groups (location / related links) ---------- */
.link-chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.link-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--rule-2); border-radius: var(--r-sm); background: var(--white); text-decoration: none; color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-ui); }
.link-chips a:hover { border-color: var(--blue); color: var(--blue); }
.link-chips--zip a { border-radius: var(--r-sm); min-width: 76px; justify-content: center; font-weight: var(--fw-bold); color: var(--navy); font-variant-numeric: tabular-nums; }
@media (max-width: 639px) { .link-chips a { min-height: 44px; } }
.link-cols { list-style: none; columns: 1; column-gap: var(--s-7); }
@media (min-width: 640px) { .link-cols { columns: 2; } }
@media (min-width: 960px) { .link-cols--3 { columns: 3; } }
.link-cols li { break-inside: avoid; border-bottom: 1px solid var(--rule); }
.link-cols a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; color: var(--ink); text-decoration: none; font-weight: var(--fw-medium); font-size: var(--fs-sm); }
.link-cols a:hover { color: var(--blue); text-decoration: underline; }
/* 17b. Location navigation (one component for every service family and page level, 2026-11-19).
   .loc-nav-h   small heading over each list: "Browse by State", "Popular Cities & ZIP Codes".
   .loc-states  state links as compact blue cards: as many 240 px columns as the space holds from 640 px (4 across a
                full-width desktop section, 2 on a tablet or in a half-width column), 2 on phones (1 below 360 px), equal heights. The visible text is the state name; the service words stay in the link as .sr-only text,
                so the anchor text and the accessible name are unchanged. --flat: legacy markup whose links sit
                directly in column divs (the divs drop out of the layout, the links become the grid).
   .loc-list    city and ZIP links in even columns with hairline dividers (also the template lists rbo-ll-cities,
                rbo-ll-othercities, rbo-ll-zips, rbo-ll-nearzips); as many 220 px columns as the space holds (one on
                phones); --zip: ZIP codes, 96 px columns, tabular figures. */
.loc-nav-h { margin: 0 0 var(--s-3); font-size: var(--fs-meta); font-weight: var(--fw-label); letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; color: var(--ink-2); }
* + .loc-nav-h { margin-top: var(--s-6); }
.loc-states { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.row.loc-states { margin: 0; }
.row.loc-states::before, .row.loc-states::after { content: none; }
.loc-states--flat > * { display: contents; }
@media (max-width: 359px) { .loc-states { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 640px) { .loc-states { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; } }
/* A-Z directory (/states): the directory keeps its letter groups. Phones: one column of letter groups, two state
   cards per line; from 760 px: three columns of letter groups, one card per line. The service words are .sr-only,
   so the long-label variant uses the same layout as the short one. */
.az-dir.loc-az, .az-dir--long.loc-az { columns: 1; }
@media (min-width: 760px) { .az-dir.loc-az, .az-dir--long.loc-az { columns: 3; column-gap: var(--s-6); } }
.loc-az .az-group { grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-2); }
@media (min-width: 640px) { .loc-az .az-group { grid-template-columns: 32px minmax(0, 1fr); gap: var(--s-3); } }
.loc-az .az-letter { line-height: 48px; }
.az-group .loc-states { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 760px) { .az-group .loc-states { grid-template-columns: minmax(0, 1fr); } }
.loc-az .az-group .loc-states a { min-height: 48px; color: #fff; font-weight: var(--fw-ui); }
.loc-az .az-group .loc-states a:hover { color: #fff; text-decoration: none; }
@media (max-width: 399px) { .loc-az .az-group .loc-states a { padding: 10px 12px; } }
.loc-states > li { display: flex; min-width: 0; margin: 0; padding: 0; border: 0; }
.loc-states > li::before { content: none; }
.loc-states a { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 48px; margin: 0; padding: 10px 14px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-size: var(--fs-sm); font-weight: var(--fw-ui); line-height: 1.25; text-align: left; text-decoration: none; overflow-wrap: break-word; box-shadow: 0 1px 2px rgba(12, 27, 51, .14); transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.loc-states a::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 3px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .8; }
.loc-states a:hover, .loc-states a:focus-visible { background: var(--blue-700); color: #fff; text-decoration: none; box-shadow: 0 6px 14px rgba(27, 75, 196, .26); transform: translateY(-1px); }
.loc-states a:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.loc-states a .icon, .loc-states a svg { display: none; }
.loc-list, .rbo-ll-ds ul.rbo-ll-cities, .rbo-ll-ds ul.rbo-ll-othercities, .rbo-ll-ds ul.rbo-ll-zips, .rbo-ll-ds ul.rbo-ll-nearzips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); column-gap: var(--s-6); border-top: 1px solid var(--rule); }
.loc-list--zip, .rbo-ll-ds ul.rbo-ll-zips, .rbo-ll-ds ul.rbo-ll-nearzips { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); column-gap: var(--s-5); }
.loc-list > li, .rbo-ll-ds ul[class^="rbo-ll-"]:not(.rbo-ll-related) > li { min-width: 0; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.loc-list > li::before { content: none; }
.loc-list a, .rbo-ll-ds ul[class^="rbo-ll-"]:not(.rbo-ll-related) a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 44px; padding: 6px 2px; border: 0; border-radius: 0; background: none; color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-medium); line-height: 1.3; text-decoration: none; overflow-wrap: break-word; }
.loc-list a::after, .rbo-ll-ds ul[class^="rbo-ll-"]:not(.rbo-ll-related) a::after { content: ""; flex: none; width: 6px; height: 6px; margin-right: 4px; border-top: 1.5px solid var(--ink-3); border-right: 1.5px solid var(--ink-3); transform: rotate(45deg); }
.loc-list a:hover, .rbo-ll-ds ul[class^="rbo-ll-"]:not(.rbo-ll-related) a:hover { color: var(--blue); text-decoration: underline; }
.loc-list a:hover::after, .rbo-ll-ds ul[class^="rbo-ll-"]:not(.rbo-ll-related) a:hover::after { border-color: var(--blue); }
.loc-list--zip a, .rbo-ll-ds ul.rbo-ll-zips a, .rbo-ll-ds ul.rbo-ll-nearzips a { font-weight: var(--fw-ui); color: var(--navy); font-variant-numeric: tabular-nums; }
/* QA D-029: the rest of the location-links block (related services, up link, "more" link row, groups) lives here, not
   in rbo-ds-location.css, because pages of other modules show it too (the payroll location pages load the trust
   module, so their "more" row ran together as one line of 22 px links). */
.rbo-ll-ds .link-group > div { margin-top: var(--s-4); }
.rbo-ll-ds .text-link { margin-top: var(--s-3); }
.rbo-ll-ds .rbo-ll-related { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rbo-ll-ds .rbo-ll-related > li { padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.rbo-ll-ds .rbo-ll-related a { font-weight: var(--fw-btn); }
.rbo-ll-ds .rbo-ll-up { margin: var(--s-3) 0 0; }
.rbo-ll-ds .rbo-ll-more { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); margin: 0; font-size: var(--fs-sm); }
.rbo-ll-ds .rbo-ll-more a { font-weight: var(--fw-btn); min-height: 44px; display: inline-flex; align-items: center; }
.rbo-ll-ds .container.mt-l .rbo-ll-more { border-top: 1px solid var(--rule); padding-top: var(--s-4); }
.loc-list--flat > * { display: contents; }
.loc-list--flat > * > a { border-bottom: 1px solid var(--rule); }
.loc-nav-h + .loc-states, .loc-nav-h + .loc-list { margin-top: 0; }
.loc-states + .loc-nav-h, .loc-list + .loc-nav-h { margin-top: var(--s-7); }
/* the "all locations" link at the end of a state list: same card, outlined */
.loc-states a[href$="/locations"], .loc-states a[href$="/states"] { background: var(--white); color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.loc-states a[href$="/locations"]:hover, .loc-states a[href$="/states"]:hover { background: var(--blue-050); color: var(--blue-700); box-shadow: inset 0 0 0 1.5px var(--blue-700); }
.loc-list a .icon, .loc-list a svg { display: none; }
@media (prefers-reduced-motion: reduce) { .loc-states a { transition: none; } .loc-states a:hover, .loc-states a:focus-visible { transform: none; } }
.link-group > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); cursor: pointer; }
.link-group > summary::-webkit-details-marker { display: none; }
.link-group > summary .icon { color: var(--ink-3); transition: transform .15s; }
.link-group[open] > summary .icon { transform: rotate(180deg); }
@media (max-width: 639px) { .link-group > summary { min-height: 56px; border-bottom: 1px solid var(--rule); } .link-group > :not(summary) { margin-top: var(--s-4); } }
@media (min-width: 640px) { .link-group > summary { pointer-events: none; } .link-group > summary .icon { display: none; } }
.related > li { display: block; color: var(--ink-2); }
.related a { font-weight: var(--fw-btn); }
.inline-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.inline-links a { font-weight: var(--fw-btn); min-height: 44px; display: inline-flex; align-items: center; }
.loc-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: var(--s-5); padding: var(--s-3) var(--s-5); font-size: var(--fs-sm); background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md); }
.loc-trail .sep { color: var(--rule-2); }
.loc-trail .here { font-weight: var(--fw-bold); color: var(--navy); }
.loc-trail a { min-height: 36px; display: inline-flex; align-items: center; }
.loc-trail .near { margin-left: auto; color: var(--ink-3); }
@media (max-width: 639px) { .loc-trail .near { margin-left: 0; width: 100%; } }

/* ---------- 18. CTA band, badges, misc content blocks ---------- */
.cta-band { position: relative; overflow: hidden; display: grid; gap: var(--s-6); align-items: center; padding: var(--s-8) var(--s-6); border-radius: var(--r-lg); background: var(--surface-brand); color: #fff; }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 120% at 100% 0%, rgba(27,75,196,.35), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem); }
.cta-band p { color: var(--on-navy-2); margin: var(--s-3) 0 0; }
.cta-band .lede { color: #fff; font-size: 1.1875rem; font-weight: var(--fw-ui); margin: 0; max-width: 52ch; line-height: 1.5; }
@media (min-width: 960px) { .cta-band { grid-template-columns: 1fr auto; padding: var(--s-9); } }
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); padding: var(--s-7) 0; border-block: 1px solid var(--rule); }
.cta-inline h2 { font-size: clamp(1.375rem, 1.15rem + .9vw, 1.875rem); max-width: 40ch; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-meta); font-weight: var(--fw-bold); line-height: 1.3; color: var(--navy); background: var(--blue-050); border: 1px solid var(--blue-100); border-radius: var(--r-sm); padding: 3px 10px; white-space: nowrap; }
.badge--neutral { background: var(--paper); border-color: var(--rule); color: var(--ink-2); }
.badge--positive { background: var(--positive-bg); border-color: #CFE3D8; color: var(--positive); }
.tag { display: inline-flex; font-size: var(--fs-meta); font-weight: var(--fw-ui); color: var(--ink-3); border: 1px solid var(--rule-2); border-radius: var(--r-sm); padding: 0 8px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; letter-spacing: 0; }
.callout { border-left: 3px solid var(--blue); padding: var(--s-1) 0 var(--s-1) var(--s-5); color: var(--ink-2); }
.source { font-size: var(--fs-meta); color: var(--ink-3); }
a.source { color: var(--ink-3); } a.source:hover { color: var(--blue); }
.cite-list { list-style: none; display: grid; gap: var(--s-4); }
.cite-list li { padding-left: var(--s-5); border-left: 2px solid var(--rule); color: var(--ink-2); }
.qa { border-top: 1px solid var(--rule); padding-top: var(--s-5); margin-top: var(--s-5); }
.qa h4 { margin-bottom: var(--s-2); color: var(--navy); }
.qa p { color: var(--ink-2); }
.steps { list-style: none; display: grid; gap: var(--s-5); }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); } }
.step { padding: var(--s-5) 0 0; border-top: 1px solid var(--rule); }
@media (min-width: 960px) { .step { border-top: 0; padding: var(--s-7) var(--s-7) 0 0; } .step + .step { padding-left: var(--s-7); border-left: 1px solid var(--rule); } }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: var(--fw-bold); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; margin-bottom: var(--s-4); }
.step h3 { margin-bottom: var(--s-2); }
.step p { color: var(--ink-2); margin: 0; }
.path { list-style: none; counter-reset: p; display: grid; gap: var(--s-3); }
.path li { counter-increment: p; display: grid; grid-template-columns: 36px 1fr; gap: var(--s-3); align-items: center; font-weight: var(--fw-ui); }
.path li::before { content: counter(p); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: var(--fw-bold); color: var(--navy); }
.industry-list { list-style: none; display: grid; gap: 0 var(--s-8); border-top: 1px solid var(--rule); }
@media (min-width: 760px) { .industry-list { grid-template-columns: 1fr 1fr; } }
.industry-list li { padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: var(--fs-sm); }
.industry-list a { display: block; font-weight: var(--fw-bold); font-size: 1rem; text-decoration: none; color: var(--navy); margin-bottom: 2px; }
.industry-list a:hover { color: var(--blue); text-decoration: underline; }
.platforms { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); background: var(--white); }
@media (min-width: 760px) { .platforms { grid-template-columns: repeat(5, 1fr); } }
.platforms li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-height: 84px; display: flex; align-items: center; justify-content: center; font-weight: var(--fw-bold); color: var(--ink-2); text-align: center; padding: 0 12px; }
@media (max-width: 759px) { .platforms li:last-child { grid-column: 1 / -1; } }
.driver { display: flex; flex-direction: column; padding-top: var(--s-5); border-top: 2px solid var(--navy); }
.driver h3 { font-size: var(--fs-h4); }
.tax-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.tf { padding: var(--s-4); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--white); }
.tf-fig { display: block; font-size: 1.5rem; font-weight: var(--fw-price); letter-spacing: -0.02em; color: var(--navy); line-height: 1.15; font-variant-numeric: tabular-nums; }
.tf-lbl { display: block; font-size: var(--fs-meta); color: var(--ink-3); margin-top: 4px; }
.three-way { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: var(--s-3); }
.three-way span { font-size: var(--fs-meta); font-weight: var(--fw-ui); color: var(--navy); background: var(--white); border: 1px solid #C9D4F0; border-radius: var(--r-sm); padding: 3px 8px; }
.three-way i { font-style: normal; color: var(--blue); font-weight: var(--fw-bold); }
.num-rows { list-style: none; counter-reset: n; }
.num-rows li { counter-increment: n; display: grid; grid-template-columns: 36px 1fr; gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); }
.num-rows li:last-child { border-bottom: 0; }
.num-rows li::before { content: counter(n, decimal-leading-zero); font-weight: var(--fw-bold); color: var(--blue); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; padding-top: 2px; }
.num-rows .key { background: var(--blue-050); margin: 0 calc(-1 * var(--s-6)); padding-inline: var(--s-6); }
.num-rows .key::before { padding-left: 0; }
.statement .num-rows .key { display: grid; grid-template-columns: 36px 1fr; }

/* ---------- 19. Sticky CTAs ---------- */
.m-actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-2);
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.97); border-top: 1px solid var(--rule); box-shadow: 0 -8px 24px -12px rgba(12,27,51,.25); }
.m-actionbar .btn { min-height: 48px; width: 100%; padding: 0 12px; }
@media (min-width: 960px) { .m-actionbar { display: none; } }
.sticky-cta { display: none; }
@media (min-width: 960px) {
  .sticky-cta { display: block; position: sticky; bottom: 0; z-index: 30; background: rgba(21,58,154,.97); color: #fff; border-top: 1px solid var(--on-blue-line); }
  .sticky-cta .container { display: flex; justify-content: space-between; align-items: center; min-height: 64px; gap: var(--s-5); }
  .sticky-cta strong { color: #fff; font-weight: var(--fw-btn); }
}

/* ---------- 20. Footer ---------- */
.site-footer { background: var(--surface-brand); color: var(--on-navy-2); font-size: var(--fs-sm); }
.site-footer a:not(.btn) { color: #fff; text-decoration: none; }
.site-footer a:not(.btn):hover { text-decoration: underline; }
.footer-cta { border-bottom: 1px solid var(--navy-700); }
.footer-cta .container { display: grid; gap: var(--s-5); padding-top: var(--s-9); padding-bottom: var(--s-9); }
.footer-cta h2 { color: #fff; }
.footer-cta p { margin: var(--s-2) 0 0; font-size: var(--fs-lead); }
.contact-line { display: flex; flex-wrap: wrap; gap: 0 var(--s-6); margin-top: var(--s-3); font-size: 1rem; }
.contact-line a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: var(--fw-btn); }
.contact-line .icon { width: 18px; height: 18px; color: var(--sky); }
@media (min-width: 960px) { .footer-cta .container { grid-template-columns: 1fr auto; align-items: center; } }
.footer-grid { display: grid; gap: var(--s-7) var(--s-6); padding-top: var(--s-9); padding-bottom: var(--s-8); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.4fr 1fr 1fr; } }
.f-title { display: block; font-size: var(--fs-meta); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: #fff; margin: 0 0 var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--navy-700); }
.footer-grid ul { list-style: none; display: grid; gap: 0; }
.site-footer .footer-grid li a, .footer-grid li span { display: inline-flex; align-items: center; min-height: 34px; color: var(--on-navy-2); line-height: 1.35; }
.footer-grid li a:hover { color: #fff; }
.footer-grid address { font-style: normal; display: grid; gap: var(--s-2); }
.f-sub { margin-top: var(--s-6); }
.footer-brand { display: inline-flex; margin-bottom: var(--s-5); padding-right: 14px; }
.social { display: flex; gap: var(--s-2); margin-top: var(--s-2); }
.social a { width: 44px; height: 44px; border: 1px solid var(--navy-700); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.social a:hover { border-color: var(--sky); }
.social .icon { width: 18px; height: 18px; }
.f-group > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.f-group > summary::-webkit-details-marker { display: none; }
.f-group > summary .icon { color: var(--on-navy-2); transition: transform .15s; }
.f-group[open] > summary .icon { transform: rotate(180deg); }
@media (max-width: 639px) {
  .footer-grid { gap: 0; }
  .footer-grid > div:first-child { margin-bottom: var(--s-6); }
  .f-group > summary { min-height: 54px; border-bottom: 1px solid var(--navy-700); }
  .f-group > summary .f-title { border: 0; margin: 0; padding: 0; }
  .f-group.f-sub { margin-top: 0; }
  .f-group ul { padding: var(--s-2) 0 var(--s-4); }
  .footer-grid li a { min-height: 44px; }
}
@media (min-width: 640px) { .f-group > summary { pointer-events: none; } .f-group > summary .icon { display: none; } .f-group > summary .f-title { flex: 1; } }
.footer-legal { border-top: 1px solid var(--navy-700); }
.footer-legal .container { display: grid; gap: var(--s-4); padding-top: var(--s-6); padding-bottom: var(--s-6); }
.footer-legal .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3) var(--s-6); }
.footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.footer-legal ul a { color: var(--on-navy-2); display: inline-flex; min-height: 44px; align-items: center; }
.disclaimer { font-size: var(--fs-meta); line-height: 1.6; color: #AEB9CC; margin: 0; max-width: 110ch; }

/* ---------- 21. Page patterns (shared by templates) ---------- */
.display { font-size: clamp(1.1875rem, 1.05rem + .6vw, 1.5rem); font-weight: var(--fw-medium); line-height: 1.45; letter-spacing: -0.012em; color: var(--navy); margin: 0; max-width: 44ch; text-wrap: pretty; }
.start-links .sl { display: flex; gap: 14px; align-items: center; }
.start-links .icon-well { margin: 0; width: 40px; height: 40px; }
.platforms-title { max-width: 44ch; margin: 0 auto var(--s-7); }
.compare-card { display: grid; gap: var(--s-3); }
.compare-card p { max-width: none; }
.trust-cards .card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-1); }
.trust-cards .icon-well { margin-bottom: var(--s-2); }
.trust-cards .card-title { margin: 0; font-size: var(--fs-h4); }
.trust-cards .card-title a { color: var(--ink); }
@media (max-width: 639px) { .trust-cards { grid-template-columns: 1fr; } .trust-cards .card { flex-direction: row; justify-content: flex-start; text-align: left; gap: 14px; padding: 16px 18px; } .trust-cards .icon-well { margin: 0; } }

.hero-sub--strong { color: #fff; font-weight: var(--fw-ui); margin-top: var(--s-3); }
.btn-row--center { justify-content: center; }
.statement--muted { background: var(--paper-2); box-shadow: none; }
.statement--muted .statement-head { background: var(--paper); }
.ledger--wells > li { align-items: center; }
.ledger--wells .icon-well { margin: 0; }
.ledger--wells .icon-well .icon { color: var(--blue); margin: 0; }
.price-table .act a { min-height: 0; font-size: var(--fs-sm); }
@media (max-width: 639px) { .price-table--stack td.act { grid-column: 1 / -1; text-align: left; padding-top: 4px; } }
.label { display: block; }
.gap-l { gap: var(--s-9); }
.faq--cont { border-top: 0; }
.strong-line, .cta-inline-text { font-weight: var(--fw-ui); color: var(--ink); max-width: 56ch; }
.summary-statement { text-align: center; max-width: none; }
.more-links p { margin: 0; padding-top: var(--s-4); border-top: 1px solid var(--rule); }
@media (max-width: 639px) {
  .summary-statement { text-align: left; }
  .affects { grid-template-columns: 1fr 1fr; gap: 12px; }
  .affects .card { padding: 16px; }
  .driver { flex-direction: row; align-items: center; gap: 14px; padding-top: 14px; }
  .driver .icon-well { margin: 0; }
}

.link-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.rule-top { border-top: 1px solid var(--rule); padding-top: var(--s-4); }
.prose-p { color: var(--ink-2); max-width: 80ch; }
.facts-panel .glance-row { padding-block: 12px; }
.facts-panel .glance-figure { background: var(--paper-2); }
.site-footer .footer-legal ul a { color: var(--on-navy-2); }
.link-group > summary h2 { margin: 0; }

@media (min-width: 960px) { .hero--short > .container { align-items: center; } }
.form-card--compact .field-row { grid-template-columns: 1fr 1fr; }
.form-card--compact .field { margin-bottom: var(--s-3); }

@media (max-width: 959px) { .hero--short .hero-sub { font-size: var(--fs-body); margin-top: var(--s-3); } .hero--short .hero-facts { margin-top: var(--s-4); font-size: var(--fs-meta); } }

.sec-head--center .eyebrow { justify-content: center; }
@media (max-width: 639px) { .sec-head--center .eyebrow::before { display: none; } }

.price-table tbody th { white-space: nowrap; }
@media (min-width: 960px) { .checklist--row { grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s-3) var(--s-7); } }
.plan-incl .label { margin-bottom: var(--s-3); }

/* ---------- 22. Motion + print ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .utility, .m-actionbar, .sticky-cta, .drawer, .drawer-backdrop { display: none !important; } body { padding: 0; } }

/* ---- Video facade: a thumbnail link instead of a YouTube iframe (no third-party JS until the visitor clicks; ds.js swaps in the player) ---- */
.yt-facade{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;border-radius:var(--radius-md,12px);background:#0C1B33}
.yt-facade img{width:100%;height:100%;object-fit:cover;display:block;opacity:.92;transition:opacity .2s}
.yt-facade:hover img,.yt-facade:focus-visible img{opacity:1}
.yt-play{position:absolute;left:50%;top:50%;width:68px;height:48px;margin:-24px 0 0 -34px;border-radius:12px;background:rgba(12,27,51,.85)}
.yt-play::after{content:"";position:absolute;left:28px;top:14px;border-style:solid;border-width:10px 0 10px 16px;border-color:transparent transparent transparent #fff}
.yt-facade:hover .yt-play{background:#1B4BC4}
.yt-facade iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* =========================================================================
   23. Production bridge (site only; not in design/system/rbo-ds.css).
   The site keeps Bootstrap 3 loaded before this file (its modals and their
   lead forms use it). These rules undo the Bootstrap defaults the design
   system does not want, style the legacy hooks that design-system pages still
   output (Bootstrap modals, js/reviews.js cards, the SMS consent partial), and
   hold the few chrome rules that live in the page modules of the prototypes.
   ========================================================================= */
/* 23.1 Bootstrap 3 resets */
html { font-size: 100%; }                                   /* Bootstrap sets 10px; every rem here assumes 16px */
.container::before, .container::after { content: none; }    /* clearfix pseudo-elements would become grid/flex items */
a { text-decoration: underline; }                           /* Bootstrap removes it; component rules set none where wanted */
a.brand, a.footer-brand, a.header-call { text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); }
a:focus { outline: 0; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
a.nav-link:hover, a.nav-link:focus, a.d-link:hover, a.brand:hover, a.btn:hover, a.btn:focus, a.header-call:hover,
.ledger--links a:hover, .dropdown a:focus, .drawer-body details a:hover, .card--interactive a.stretch:hover { text-decoration: none; }
.btn:focus, .btn:active:focus, .btn.active:focus { outline: 0; }
.btn:active, .btn.active { box-shadow: none; }
.btn-primary:focus, .btn-primary.focus, .btn-primary:active, .btn-primary:active:focus, .btn-primary:active:hover, .btn-primary.active:hover {
  background: var(--btn-p-hover); color: var(--btn-p-fg); border-color: transparent; }
.btn-secondary:focus, .btn-secondary:active, .btn-secondary:active:focus { color: var(--btn-s-fg); background: var(--btn-s-bg); }
.btn-block + .btn-block { margin-top: 0; }
.label { padding: 0; white-space: normal; text-align: inherit; border-radius: 0; vertical-align: baseline; }
.badge { min-width: 0; text-align: left; vertical-align: baseline; }
.breadcrumb { padding: 0; background: none; border-radius: 0; }
.breadcrumb > li + li::before { padding: 0; }
.lead { font-weight: var(--fw-body); margin-bottom: 0.9em; }
label { font-weight: var(--fw-ui); }
dl { margin-bottom: 0; }
.d-none { display: none !important; }                       /* honeypot fields (Quote.Agent) */
.footer-legal .fl-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3) var(--s-6); }
body:not(:has(.m-actionbar)) { padding-bottom: 0; }         /* chrome variants without the mobile action bar */

/* 23.2 Chrome pieces kept in the page modules of the prototypes */
.u-link { border: 0; background: none; padding: 0; font: inherit; font-weight: var(--fw-ui); color: var(--ink); cursor: pointer; }
.u-link:hover { color: var(--blue); text-decoration: underline; }
.brand-sub { display: none; font-size: var(--fs-meta); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--ink-3); border-left: 1px solid var(--rule); padding-left: var(--s-4); margin-left: var(--s-4); white-space: nowrap; }
@media (min-width: 480px) { .brand-sub { display: inline-block; } }
@media (min-width: 1100px) { .mega-grid--3 { grid-template-columns: 1fr 1.3fr 1fr; } .mega-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mega-grid--4 ul + .dd-label { margin-top: var(--s-4); }
.dd-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md); padding: var(--s-4); align-self: start; }
.dd-card-text { font-size: var(--fs-sm); color: var(--ink-2); padding: 0 10px; margin: 0 0 var(--s-4); }
.d-note { display: flex; align-items: center; min-height: 44px; padding-left: var(--s-3); color: var(--ink-3); font-size: var(--fs-body); }
.d-btn { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 0 0 var(--s-3); border: 0; background: none; color: var(--ink-2); font: inherit; text-align: left; cursor: pointer; }
.d-btn:hover { color: var(--blue); }
.sticky-cta .sticky-text { font-size: var(--fs-sm); color: var(--on-navy-2); max-width: 90ch; }
.sticky-cta .sticky-text strong { margin-right: 6px; }
@media (min-width: 1100px) { .footer-grid--payroll { grid-template-columns: repeat(3, 1fr); } }

/* 23.3 Shared partials in design-system mode */
.support { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.55; }
.consent { font-weight: var(--fw-body); }
.form-card .consent .rbo-sms-explicit { display: block; }
.form-error:empty { display: none; }
.form-error { margin: 0 0 var(--s-3); }
.reviews-feed .card { display: flex; flex-direction: column; gap: var(--s-3); margin: 0; padding: var(--s-5) var(--s-6); }
.reviews-feed .card > p { margin: 0; color: var(--ink); font-size: 1.0625rem; line-height: 1.55; }
.reviews-feed .card > div { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--rule); font-size: var(--fs-sm); color: var(--ink-2); }
.reviews-feed .card .text-muted { display: block; font-size: var(--fs-meta); color: var(--ink-3); }
.reviews-feed .fa-star { display: inline-block; width: 18px; height: 18px; margin-right: 2px; background: var(--star);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.2l2.6 5.6 6.1.7-4.5 4.2 1.2 6.1L12 16.8l-5.4 3 1.2-6.1-4.5-4.2 6.1-.7z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.2l2.6 5.6 6.1.7-4.5 4.2 1.2 6.1L12 16.8l-5.4 3 1.2-6.1-4.5-4.2 6.1-.7z'/%3E%3C/svg%3E") center / contain no-repeat; }
.reviews-feed .rbo-review-source { grid-column: 1 / -1; margin: var(--s-2) 0 0; text-align: left; }
.reviews-feed .rbo-review-source a { font-weight: var(--fw-btn); display: inline-flex; align-items: center; min-height: 44px; }
.trust-snippet-ds .sec-head--row > div { display: grid; gap: var(--s-1); }
.trust-snippet-ds .strong-line { margin: 0; }
.ts-aside { max-width: 60ch; margin: 0; }

/* 23.4 Bootstrap modals (#myModal, #signUp, #nlpGetQuoteModal) in design-system mode: styling only, markup unchanged */
.modal-content { border: 0; border-radius: var(--r-lg); box-shadow: var(--sh-3); color: var(--ink); }
.modal-header { padding: var(--s-4) var(--s-6); border-bottom: 1px solid var(--rule); }
.modal-header .close { margin-top: 2px; font-size: 28px; font-weight: 400; opacity: .7; }
.modal-title { font-size: 1.375rem; font-weight: var(--fw-h2); line-height: 1.25; letter-spacing: var(--ls-h2); color: var(--navy); }
.modal-header p { margin: var(--s-2) 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.modal .form-group { margin-bottom: var(--s-3); }
.modal .form-control { height: 48px; padding: 10px 14px; font: var(--fw-medium) 1rem/1.4 var(--font-sans); color: var(--ink); border: 1px solid var(--field); border-radius: var(--r-sm); box-shadow: none; }
.modal .form-control:focus { border-color: var(--blue); box-shadow: var(--focus-ring); }
.modal .form-control[aria-invalid="true"] { border: 2px solid var(--error); background: var(--error-bg); }
.modal label { font-size: var(--fs-sm); color: var(--ink); }
.modal .checkbox label { font-weight: var(--fw-body); font-size: var(--fs-meta); line-height: 1.55; color: var(--ink-2); }
.modal .text-danger { color: var(--error); font-size: var(--fs-meta); font-weight: var(--fw-ui); margin: 4px 0 0; }
.modal .text-danger:empty { display: none; }
.modal .btn { min-height: 48px; }
.modal .btn.text-uppercase { text-transform: none; }
.modal .tlist { list-style: none; padding: 0; display: grid; gap: var(--s-3); font-size: var(--fs-sm); color: var(--ink-2); }
.modal .tlist img { display: inline-block; width: 22px; height: 22px; margin-right: 6px; }
.modal .tlist .glyphicon { color: var(--positive); margin-right: 6px; }
.rbo-req-note, .req-note { font-size: var(--fs-meta); color: var(--ink-3); }
.form-card .rbo-req-note { margin: 0 0 var(--s-3); }
.rbo-req { color: var(--error); }
.trust-line { font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--s-3); }

/* 23.5 Pricing reference page (pages/pricing.php) */
.plans-note { margin-top: var(--s-8); margin-bottom: var(--s-5); }

/* =========================================================================
   24. Shared components promoted from the page modules (consolidation, design/impl/consolidation.md)
   ========================================================================= */
/* Hero without a form aside (pages that have no quick-quote form): one column, no empty right track. */
@media (min-width: 960px) {
  .hero--solo > .container { grid-template-columns: minmax(0, 1fr); }
  .hero--solo .hero-main { max-width: 820px; }
}
/* Banner photo beside a hero (desktop only; hide the aside on phones with .hero-aside--desktop). */
.hero-photo { display: block; width: 100%; max-width: 440px; height: auto; margin-left: auto; border-radius: var(--r-lg); box-shadow: var(--sh-3); }
/* List and grid modifiers */
.checklist--2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-7); } }
ul.checklist.card { margin: 0; }
@media (max-width: 759px) { .platforms--even li:last-child { grid-column: auto; } }
@media (min-width: 760px) { .platforms--even li { min-height: 72px; } }
@media (min-width: 960px) {                                   /* five cards: three over two (wider), no empty slot */
  .g-3-2 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .g-3-2 > * { grid-column: span 2; }
  .g-3-2 > :nth-child(n+4) { grid-column: span 3; }
}
/* Intro paragraph of a .sec-head inside the navy band (the base rule colours it for light surfaces). */
.band-navy .sec-head p { color: var(--on-navy-2); }
/* Plain-text label inside .inline-links, centred with the 44px link targets. */
.inline-links > span { display: inline-flex; align-items: center; min-height: 44px; }
/* Manrope's ligatures turn "(c)" into a copyright sign ("501(c)(3)"); .nolig switches them off on such blocks. */
.nolig { font-variant-ligatures: none; font-feature-settings: "liga" 0, "dlig" 0, "calt" 0; }
/* templates/tc.php in design-system mode: the heading and its button on one line (wrapping on phones). */
.tc-ds { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); font-size: var(--fs-h3); }
/* Focus chrome (templates/header2 + footer2, e.g. /get-a-quote): legal footer row only. */
.site-footer--focus .footer-legal { border-top: 0; }
.site-footer--focus .fl-row p { margin: 0; color: var(--on-navy-2); }
.ds-legacy footer.footer { padding: var(--s-6) 0; background: var(--paper); border-top: 1px solid var(--rule); }   /* page copies of the legacy copyright footer */
.ds-legacy footer.footer p { margin: 0; font-size: var(--fs-sm); }

/* =========================================================================
   25. Legacy bridge (one shared layer for every bridged page).
   Views that opted into the design-system chrome but keep their legacy Bootstrap body
   markup wrap it in <div class="ds-legacy"> (headings, links, forms byte-for-byte).
   Without style.css / style2.css that markup would be unstyled, so these rules draw
   the legacy components in design-system terms: short navy hero, white / paper bands
   separated by hairlines, DS headings, cards, check lists drawn instead of tick images,
   accordions, tables, navy CTA band. Scoped to .ds-legacy; design-system partials
   rendered inside it keep their own component classes.
   Merged from the content group's .ds-legacy and the trust group's .ds-bridge.
   ========================================================================= */
/* 25.1 rhythm + type */
.ds-legacy { color: var(--ink); overflow-x: clip; }   /* legacy rows outside a .container must not widen the page */
.ds-legacy section, .ds-legacy .section { position: relative; }
.ds-legacy .section, .ds-legacy .section-primary, .ds-legacy .trust-signals, .ds-legacy .faqs, .ds-legacy .key-benefits,
.ds-legacy .insights, .ds-legacy .testimonials, .ds-legacy section:not([class]) { padding: var(--section-y) 0; }
.ds-legacy > section:not(:first-child):not(.light-gray):not(.bg-light):not(.bg-dark-primary):not(.scheduledemo):not(.callaction) + section:not(.light-gray):not(.bg-light):not(.bg-dark-primary):not(.scheduledemo):not(.callaction) { border-top: 1px solid var(--rule); }
.ds-legacy .light-gray, .ds-legacy .bg-light, .ds-legacy .bg-gray, .ds-legacy .gray-bg { background: var(--paper) !important; border-block: 1px solid var(--rule); }
.ds-legacy .light-gray + .light-gray { border-top: 0; }
.ds-legacy .bg-white { background: var(--white); }
.ds-legacy .container > :last-child { margin-bottom: 0; }
.ds-legacy h2, .ds-legacy .heading-2 { font-size: var(--fs-h2); font-weight: var(--fw-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); color: var(--navy); margin: 0 0 var(--sec-head-gap); text-wrap: balance; }
.ds-legacy h2.text-center, .ds-legacy .text-center > h2 { max-width: 30ch; margin-left: auto; margin-right: auto; }
.ds-legacy h3 { font-size: var(--fs-h3); font-weight: var(--fw-h3); line-height: var(--lh-h3); color: var(--ink); margin: var(--s-6) 0 var(--s-3); }
.ds-legacy h4, .ds-legacy h5, .ds-legacy h6 { font-size: var(--fs-h4); font-weight: var(--fw-h3); line-height: var(--lh-h3); color: var(--ink); margin: var(--s-5) 0 var(--s-2); }
.ds-legacy .card h3:first-child, .ds-legacy .card h4:first-child, .ds-legacy .mt-0 { margin-top: 0; }
.ds-legacy .h4 { font-size: var(--fs-h4); }
.ds-legacy .mb-0 { margin-bottom: 0; }
.ds-legacy .mb-15 { margin-bottom: var(--s-3); } .ds-legacy .mb-30 { margin-bottom: var(--s-5); } .ds-legacy .mb-60 { margin-bottom: var(--sec-head-gap); }
.ds-legacy .mt-15 { margin-top: var(--s-3); } .ds-legacy .mt-60 { margin-top: var(--s-8); }
.ds-legacy p, .ds-legacy li { color: var(--ink-2); line-height: var(--lh-body); }
.ds-legacy p[style*="font-size"], .ds-legacy .fs-18, .ds-legacy .fs-18 p { font-size: var(--fs-body) !important; }
.ds-legacy p.text-center, .ds-legacy .text-center > p { max-width: 72ch; margin-left: auto; margin-right: auto; }
.ds-legacy .section-primary .container > p, .ds-legacy .section-primary .container > div:not([class]) { max-width: 75ch; margin-left: auto; margin-right: auto; }
/* plain lists between those paragraphs sit in the same reading column (they hung at the container's left edge) */
.ds-legacy .section-primary .container > :is(ul, ol):not([class]) { max-width: 75ch; margin-left: auto; margin-right: auto; padding-left: 1.25em; box-sizing: border-box; }
.ds-legacy strong, .ds-legacy b { font-weight: var(--fw-strong); color: var(--ink); }
/* text on dark surfaces (QA D-020): the two rules above gave legacy paragraphs and bold text the dark body ink also on
   the navy hero, navy bands and sticky bars ("At a glance:", "Most businesses pay between ...", "Need predictable payroll
   pricing?" were dark on navy). There, bold text keeps the light colour and paragraphs use the light secondary ink. */
.ds-legacy :is(.hero, .hero-main, .band-navy, .sticky-cta, .sticky-payroll-cta, .card--navy) :is(strong, b) { color: inherit; }
.ds-legacy .band-navy > .container > p, .ds-legacy .band-navy .sec-head p { color: var(--on-navy-2); }
.ds-legacy .text-primary { color: var(--navy) !important; }
.ds-legacy ul:not(.list-unstyled):not(.list-inline):not(.loc-list):not(.loc-states) { padding-left: 1.25em; }
.ds-legacy ul:not(.list-unstyled) > li { margin-bottom: var(--s-2); }
.ds-legacy .sublist { padding-left: 52px; color: var(--ink-2); }
.ds-legacy .row { margin-left: -12px; margin-right: -12px; }
.ds-legacy .row > [class*="col-"] { padding-left: 12px; padding-right: 12px; min-width: 0; }
.ds-legacy .row.flex, .ds-legacy .row.lg-flex, .ds-legacy .row.flex-center, .ds-legacy .lg-flex, .ds-legacy .equal-height-row, .ds-legacy .hrow { display: flex; flex-wrap: wrap; }
.ds-legacy .row.flex::before, .ds-legacy .row.flex::after, .ds-legacy .lg-flex::before, .ds-legacy .lg-flex::after,
.ds-legacy .row.flex-center::before, .ds-legacy .row.flex-center::after, .ds-legacy .equal-height-row::before, .ds-legacy .equal-height-row::after,
.ds-legacy .hrow::before, .ds-legacy .hrow::after { content: none; }
.ds-legacy .lg-flex, .ds-legacy .equal-height-row { justify-content: center; }
.ds-legacy .row.flex-center { align-items: center; }
.ds-legacy .lg-flex > [class*="col-"]:only-child { width: 100%; max-width: 920px; float: none; }
@media (min-width: 760px) { .ds-legacy .lg-flex > [class*="col-"]:only-child .tlist { columns: 2; column-gap: var(--s-8); } }
/* ...but a card that already splits its list into 3+ columns of its own (link directories) uses the full width, one list per column
   (2 columns inside each of 3-4 columns squeezed every link onto 3-4 lines) */
.ds-legacy .lg-flex > [class*="col-"]:only-child:has(.card > .row > [class*="col-"]:nth-child(3)) { max-width: none; }
@media (min-width: 760px) { .ds-legacy .lg-flex > [class*="col-"]:only-child .card > .row .tlist { columns: auto; } }
.ds-legacy .equal-height-row > [class*="col-"] { display: flex; }
.ds-legacy .equal-height-row > [class*="col-"] > .card { width: 100%; }
.ds-legacy .row[style*="margin"] { margin-top: var(--s-6) !important; margin-bottom: var(--s-6) !important; }
.ds-legacy .dots { display: none; }                                   /* decorative dot images of the old theme */
.ds-legacy i.fa { display: none; }                                    /* Font Awesome is not loaded: no empty icon boxes */
.ds-legacy img { max-width: 100%; height: auto; }
@media (max-width: 767px) { .ds-legacy .row.lg-flex > [class*="col-"], .ds-legacy .row.flex > [class*="col-"] { flex: 1 1 100%; width: 100%; } }

/* 25.2 hero (legacy .intro-bookkeeping, business .intro, first .hero, first .banner) -> short navy hero */
.ds-legacy .intro-bookkeeping, .ds-legacy .intro, .ds-legacy > .hero:first-child, .ds-legacy > section.banner:first-child {
  position: relative; overflow: hidden; background: var(--surface-brand) !important; color: var(--on-navy);
  padding: var(--s-9) 0 var(--s-10); border: 0; display: block; min-height: 0; height: auto; }
.ds-legacy .intro-bookkeeping::before, .ds-legacy .intro::before, .ds-legacy > .hero:first-child::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: none; mask-image: none;
  background: radial-gradient(55% 90% at 100% 0%, rgba(27,75,196,.32), transparent 65%),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 56px 56px; }
.ds-legacy .intro-bookkeeping > .container, .ds-legacy .intro > .container, .ds-legacy > .hero:first-child > .container { position: relative; display: block; padding-top: 0; padding-bottom: 0; }
.ds-legacy .intro-bookkeeping .row, .ds-legacy .intro .row, .ds-legacy > .hero:first-child .row { margin-top: 0 !important; margin-bottom: 0 !important; align-items: center; }
.ds-legacy .intro-bookkeeping .row > .col-md-6:only-child, .ds-legacy > .hero:first-child .row > .col-md-6:only-child { width: 100%; max-width: 820px; float: none; }
.ds-legacy .intro-bookkeeping h1, .ds-legacy .intro h1, .ds-legacy > .hero:first-child h1 { color: #fff; font-size: var(--fs-h1); line-height: var(--lh-h1); max-width: 24ch; margin: 0 0 var(--s-4) !important; }
.ds-legacy .intro-bookkeeping p, .ds-legacy .intro p, .ds-legacy > .hero:first-child p,
.ds-legacy .intro-bookkeeping li, .ds-legacy .intro li, .ds-legacy > .hero:first-child li { color: var(--on-navy-2); font-size: var(--fs-lead); line-height: 1.55; max-width: 60ch; }
.ds-legacy .intro-bookkeeping .sub-heading { color: var(--on-navy-2); }
.ds-legacy .intro-bookkeeping p[style], .ds-legacy .intro p[style] { margin: 0 0 var(--s-4) !important; }
.ds-legacy .intro-bookkeeping strong, .ds-legacy .intro strong, .ds-legacy > .hero:first-child strong { color: #fff; }
.ds-legacy .intro-bookkeeping a:not(.btn), .ds-legacy .intro a:not(.btn), .ds-legacy > .hero:first-child a:not(.btn) { color: #fff; }
/* ...but not inside a white card or form panel in that hero (QA D-021: the "Privacy Policy" link of the SMS consent text in
   hero quote forms was white on white) */
.ds-legacy :is(.intro-bookkeeping, .intro, .hero) :is(.panel, .card, .form-card, .well, form) a:not(.btn) { color: var(--blue); }
.ds-legacy a.mailto { color: var(--blue); }
.ds-legacy .breadcrumb > .active { color: var(--ink-3); }
.ds-legacy .intro-bookkeeping .btn, .ds-legacy .intro .btn, .ds-legacy > .hero:first-child .btn { margin: var(--s-2) var(--s-2) 0 0; }
.ds-legacy .intro-bookkeeping .btn-primary, .ds-legacy .intro .btn-primary, .ds-legacy > .hero:first-child .btn-primary { background: #fff; color: var(--navy) !important; border-color: #fff; }   /* owner: white primary buttons on navy */
.ds-legacy .intro-bookkeeping .btn-primary:hover, .ds-legacy .intro .btn-primary:hover, .ds-legacy > .hero:first-child .btn-primary:hover { background: var(--blue-050); color: var(--navy) !important; }
.ds-legacy .intro-bookkeeping .btn-default, .ds-legacy .intro-bookkeeping .btn-outline-primary, .ds-legacy > .hero:first-child .btn-default { background: transparent; color: #fff; border: 1px solid var(--navy-600); }
.ds-legacy .intro .col-md-6 + .col-md-6 img { border-radius: var(--r-lg); max-height: 360px; width: auto; margin-left: auto; display: block; }
.ds-legacy .intro-bookkeeping .hero-banner img, .ds-legacy .intro-bookkeeping .hbanner img { border-radius: var(--r-lg); box-shadow: var(--sh-3); }
@media (max-width: 991px) { .ds-legacy .intro .col-md-6 + .col-md-6 { display: none; } }
/* 25.2b hero photo: a legacy hero without its own image shows the page's banner photo (ds/head.php sets --hero-photo and
   html.ds-hero-photo) as the right half from 960 px; the photo's own blue edge is masked so it melts into the gradient.
   The copy keeps the left column. Phones and tablets keep the one-column hero (as the original site did). */
@media (min-width: 960px) {
  .ds-hero-photo .ds-legacy > :is(section.intro-bookkeeping, section.intro, section.hero, section.banner):first-of-type:not(:has(img:not(.dots img))) { display: flex; align-items: center; min-height: 440px; }
  .ds-hero-photo .ds-legacy > :is(section.intro-bookkeeping, section.intro, section.hero, section.banner):first-of-type:not(:has(img:not(.dots img))) > .container { width: 100%; }
  .ds-hero-photo .ds-legacy > :is(section.intro-bookkeeping, section.intro, section.hero, section.banner):first-of-type:not(:has(img:not(.dots img))) > .container > * { max-width: 54%; }
  .ds-hero-photo .ds-legacy > :is(section.intro-bookkeeping, section.intro, section.hero, section.banner):first-of-type:not(:has(img:not(.dots img))) [class*="col-md-"] { width: 100%; float: none; }
  .ds-hero-photo .ds-legacy > :is(section.intro-bookkeeping, section.intro, section.hero, section.banner):first-of-type:not(:has(img:not(.dots img)))::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 50%; pointer-events: none;
    background: var(--hero-photo) right center / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.55) 22%, #000 46%); mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.55) 22%, #000 46%); }
}
.ds-legacy .mobile-btn { margin-top: var(--s-4); position: static !important; width: auto; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; z-index: auto; }   /* page stylesheets (new-ads.css) pin it to the bottom; the chrome action bar does that job */
.ds-legacy .mobile-btn .btn { width: 100%; }
/* quotes-new.js turns a hero .mobile-btn into "Call now" + quote buttons (.rbo-mobile-cta): two equal buttons in the hero */
.ds-legacy .mobile-btn.rbo-mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); align-items: stretch; }
.ds-legacy .mobile-btn.rbo-mobile-cta.hidden-xs, .ds-legacy .mobile-btn.rbo-mobile-cta[class*="visible-"] { display: none; }
@media (max-width: 767px) { .ds-legacy .mobile-btn.rbo-mobile-cta.visible-xs { display: grid !important; } }
.ds-legacy .mobile-btn.rbo-mobile-cta > p { margin: 0; }
.ds-legacy .mobile-btn.rbo-mobile-cta .btn { margin: 0 !important; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.ds-legacy .mobile-btn .rbo-mb-call { background: transparent; color: #fff !important; border: 1px solid var(--navy-600); text-decoration: none; }
.ds-legacy :not(.intro-bookkeeping):not(.intro) > .container .mobile-btn .rbo-mb-call { color: var(--btn-s-fg) !important; background: var(--btn-s-bg); border-color: var(--btn-s-bd); }
/* guide pages show a light hero (.ds-guide ... .has-toc): the phone "Call now" button there takes the light-surface
   secondary style; it was white on white (QA D-024) */
.ds-guide > :is(.intro-bookkeeping, .hero).has-toc .mobile-btn .rbo-mb-call { color: var(--btn-s-fg) !important; background: var(--btn-s-bg); border-color: var(--btn-s-bd); }
/* link-style buttons (.btn-link) on the navy legacy hero: white like the hero's other links, not brand blue on blue (QA D-025) */
.ds-legacy :is(.intro-bookkeeping, .intro) .btn-link, .ds-legacy :is(.intro-bookkeeping, .intro) .btn-link .ai-chip { color: #fff; }
.ds-legacy :is(.intro-bookkeeping, .intro) .btn-link:hover, .ds-legacy :is(.intro-bookkeeping, .intro) .btn-link:focus-visible { color: #fff; text-decoration: underline; }
.ds-guide > :is(.intro-bookkeeping, .hero).has-toc .btn-link, .ds-guide > :is(.intro-bookkeeping, .hero).has-toc .btn-link .ai-chip { color: var(--blue); }
.ds-legacy .sub-heading { margin-bottom: var(--s-4); }
/* lead / consultation forms inside the hero sit on a white panel (light-surface colours, DS button) */
.ds-legacy .intro-bookkeeping .panel { background: var(--white); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: var(--card-pad); }
.ds-legacy .intro-bookkeeping .panel .panel-body { padding: 0; }
.ds-legacy .intro-bookkeeping .panel label { color: var(--ink); }
.ds-legacy .intro-bookkeeping .panel p { color: var(--ink-2); font-size: var(--fs-sm); }
.ds-legacy .intro-bookkeeping .panel .btn-primary { background: var(--btn-p-bg); color: var(--btn-p-fg) !important; border-color: transparent; text-transform: none; min-width: 60%; }
.ds-legacy .intro-bookkeeping .panel .btn-primary:hover { background: var(--btn-p-hover); }

/* 25.3 buttons and links */
.ds-legacy .btn { white-space: normal; text-align: center; margin-right: 0; }
.ds-legacy .btn-primary { background: var(--btn-p-bg); color: var(--btn-p-fg); border-color: transparent; }
.ds-legacy .btn-default, .ds-legacy .btn-outline-primary { background: var(--btn-s-bg); color: var(--btn-s-fg); border: 1px solid var(--btn-s-bd); }
.ds-legacy .btn + .btn { margin-left: var(--s-2); }
.ds-legacy .text-center > .btn, .ds-legacy p.text-center .btn { margin-top: var(--s-2); }
.ds-legacy .btn-link { background: none; color: var(--link); }
@media (max-width: 767px) { .ds-legacy .btn + .btn { margin-left: 0; margin-top: var(--s-2); } }

/* 25.4 cards, media rows, icon lists, steps */
.ds-legacy .card { position: relative; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--card-pad); box-shadow: var(--sh-1); margin-bottom: var(--s-5); }
.ds-legacy .row.lg-flex > [class*="col-"] > .card, .ds-legacy .row.flex > [class*="col-"] > .card { height: calc(100% - var(--s-5)); }
/* Card rows on plain floated Bootstrap rows (columns holding cards): from 992 px the cards in a row share one height and
   an odd last card is centred instead of hanging alone at the left. */
@media (min-width: 992px) {
  .ds-legacy .row:not(.lg-flex, .flex):has(> [class*="col-"] > .card) { display: flex; flex-wrap: wrap; justify-content: center; }
  .ds-legacy .row:not(.lg-flex, .flex):has(> [class*="col-"] > .card)::before,
  .ds-legacy .row:not(.lg-flex, .flex):has(> [class*="col-"] > .card)::after { display: none; }
  .ds-legacy .row:not(.lg-flex, .flex):has(> [class*="col-"] > .card) > [class*="col-"] { float: none; }
  .ds-legacy .row:not(.lg-flex, .flex):has(> [class*="col-"] > .card) > [class*="col-"] > .card { height: calc(100% - var(--s-5)); }
}
/* Step rows ("Step 1" ... badges in cards): one balanced track from 992 px - 5 steps in one row, 6 as 3 + 3, 7 as 4 + 3,
   8 as 4 + 4 - instead of Bootstrap's 4 per row that left the last step alone. */
@media (min-width: 992px) {
  .ds-legacy .row:has(> [class*="col-"] > .card > .step-badge) { --steps: 4; display: grid; grid-template-columns: repeat(var(--steps), minmax(0, 1fr)); gap: var(--s-5); margin-left: 0; margin-right: 0; }
  .ds-legacy .row:has(> [class*="col-"] > .card > .step-badge):has(> :nth-child(3):last-child) { --steps: 3; }
  .ds-legacy .row:has(> [class*="col-"] > .card > .step-badge):has(> :nth-child(5):last-child) { --steps: 5; }
  .ds-legacy .row:has(> [class*="col-"] > .card > .step-badge):has(> :nth-child(6):last-child) { --steps: 3; }
  .ds-legacy .row:has(> [class*="col-"] > .card > .step-badge)::before, .ds-legacy .row:has(> [class*="col-"] > .card > .step-badge)::after { display: none; }
  .ds-legacy .row:has(> [class*="col-"] > .card > .step-badge) > [class*="col-"] { width: auto; float: none; padding: 0; margin: 0; }
  .ds-legacy .row:has(> [class*="col-"] > .card > .step-badge) > [class*="col-"] > .card { height: 100%; margin: 0; }
  /* phase cards with their own lists are too long for 5 across: 3 per row, a shorter last row centred */
  .ds-legacy .row:has(> [class*="col-"] > .card > .step-badge):has(> [class*="col-"] > .card ul):not(:has(> :nth-child(4):last-child)) { display: flex; flex-wrap: wrap; justify-content: center; }
  .ds-legacy .row:has(> [class*="col-"] > .card > .step-badge):has(> [class*="col-"] > .card ul):not(:has(> :nth-child(4):last-child)) > [class*="col-"] { flex: 0 1 calc((100% - 2 * var(--s-5)) / 3); }
}
.ds-legacy .card-body { padding: 0; }
.ds-legacy .card-body:has(> img) { display: flex; align-items: center; gap: var(--s-4); }   /* icon + label rows only; text cards stay block */
.ds-legacy .form-group.d-flex { display: flex; gap: var(--s-2); align-items: stretch; }
.ds-legacy .card.p-3 { padding: var(--card-pad); }
.ds-legacy .media { display: flex; align-items: center; gap: var(--s-4); margin: 0; }
.ds-legacy .media-left { padding: 0; }
.ds-legacy .media-object, .ds-legacy .card-body > img { width: 48px; height: 48px; object-fit: contain; padding: 8px; background: var(--blue-050); border-radius: var(--r-md); flex: none; }
.ds-legacy .media-body { width: auto; }
.ds-legacy .media-heading { margin: 0; font-size: var(--fs-h4); color: var(--ink); }
.ds-legacy .tlist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.ds-legacy .tlist > li { position: relative; padding-left: 32px; margin: 0; color: var(--ink-2); break-inside: avoid; }
.ds-legacy .tlist > li > img:first-child { display: none; }          /* tick image replaced by the check below */
.ds-legacy .tlist > li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; background: var(--positive);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.ds-legacy .tlist > li p { margin: var(--s-1) 0 0; }
.ds-legacy .tlist + .tlist { margin-top: var(--s-3); }
.ds-legacy .lg-flex > [class*="col-"]:only-child .tlist { display: block; }
.ds-legacy .lg-flex > [class*="col-"]:only-child .tlist > li { margin-bottom: var(--s-3); }
.ds-legacy .glyphicon-ok { color: var(--positive); margin-right: 6px; }
.ds-legacy .bt-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.ds-legacy .bt-list > li { display: grid; grid-template-columns: 48px 1fr; column-gap: var(--s-4); align-items: start; min-height: 0 !important; padding: var(--card-pad); background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.ds-legacy .bt-list > li > img { position: static; grid-row: span 3; width: 48px; height: 48px; padding: 8px; background: var(--blue-050); border-radius: var(--r-md); }
.ds-legacy .bt-list > li > h3, .ds-legacy .bt-list > li > h4 { margin: 0 0 var(--s-2); }
.ds-legacy .bt-list > li > p { margin: 0; }
.ds-legacy .ss-logo { max-height: 48px; width: auto; }
/* step number: a label in the eyebrow style, not a filled blue button-like chip (QA D-006) */
.ds-legacy .step-badge { display: inline-flex; align-items: center; padding: 0; color: var(--blue); font-size: var(--fs-meta); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; line-height: 1.3; margin-bottom: var(--s-3); }
.ds-legacy .ac-softwares img { max-height: 60px; width: auto; filter: grayscale(1); opacity: .85; }
/* 25.4b workflow diagrams (legacy .workflow-horizontal / .workflow-vertical markup, unchanged).
   Horizontal = a numbered process track: balanced rows (js/rbo-ds.js 7 sets --wf-cols and marks row ends), each step
   joined to the next by an arrow through the step numbers; on phones one column with a line down the numbers.
   Vertical = a centred layer stack (architecture) joined by drawn connectors; the arrow glyphs in the markup are hidden. */
.ds-legacy .workflow-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md); box-shadow: var(--sh-1); }
.ds-legacy .workflow-card h3 { font-size: var(--fs-sm); line-height: 1.35; margin: 0; color: var(--ink); font-weight: var(--fw-bold); }
.ds-legacy .workflow-card p { font-size: var(--fs-sm); margin: var(--s-1) 0 0; color: var(--ink-2); }
.ds-legacy .workflow-horizontal { counter-reset: wf; display: grid; grid-template-columns: repeat(var(--wf-cols, 1), minmax(0, 1fr)); gap: var(--s-5) var(--s-7); max-width: 1120px; margin: var(--s-6) auto 0; }
.ds-legacy .workflow-horizontal > .workflow-arrow { display: none; }
.ds-legacy .workflow-horizontal > .workflow-card { counter-increment: wf; position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: var(--s-4) var(--s-4) var(--s-5); }
.ds-legacy .workflow-horizontal > .workflow-card::before { content: counter(wf); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-bottom: var(--s-3); border-radius: 50%; background: var(--blue); color: #fff; font-size: var(--fs-meta); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; flex: none; }
.ds-legacy .workflow-horizontal > .workflow-card:not(:last-child):not(.wf-row-end)::after { content: ""; position: absolute; top: calc(var(--s-4) + 8px); left: calc(100% + 5px); width: calc(var(--s-7) - 10px); height: 12px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12' fill='none' stroke='%231B4BC4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h19M15 1l5 5-5 5'/%3E%3C/svg%3E") right center / auto 12px no-repeat,
    linear-gradient(var(--blue), var(--blue)) left center / calc(100% - 4px) 2px no-repeat; }
@media (max-width: 639px) {
  .ds-legacy .workflow-horizontal { grid-template-columns: minmax(0, 1fr) !important; gap: var(--s-3); }
  .ds-legacy .workflow-horizontal > .workflow-card { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); }
  .ds-legacy .workflow-horizontal > .workflow-card::before { margin: 0; grid-row: span 2; }
  .ds-legacy .workflow-horizontal > .workflow-card > * { grid-column: 2; }
  .ds-legacy .workflow-horizontal > .workflow-card:not(:last-child)::after, .ds-legacy .workflow-horizontal > .workflow-card.wf-row-end:not(:last-child)::after { content: ""; position: absolute; display: block; left: calc(var(--s-4) + 13px); width: 2px; height: calc(100% + var(--s-3) - 32px); top: calc(50% + 16px); background: var(--blue-100); }
}
.ds-legacy .workflow-vertical { display: flex; flex-direction: column; align-items: stretch; max-width: 640px; margin: var(--s-6) auto 0; }
.ds-legacy .workflow-vertical > .workflow-card { text-align: center; padding: var(--s-5) var(--s-6); border-top: 3px solid var(--blue); }
.ds-legacy .workflow-vertical > .workflow-card h3 { font-size: var(--fs-h4); }
.ds-legacy .workflow-vertical > .workflow-arrow { position: relative; height: 44px; font-size: 0; color: transparent; overflow: hidden; }
.ds-legacy .workflow-vertical > .workflow-arrow::before { content: ""; position: absolute; left: calc(50% - 1px); top: 4px; bottom: 10px; width: 2px; background: var(--blue); }
.ds-legacy .workflow-vertical > .workflow-arrow::after { content: ""; position: absolute; left: calc(50% - 6px); bottom: 4px; border: 6px solid transparent; border-top: 8px solid var(--blue); border-bottom: 0; }
/* trust row (templates/trust-rbo legacy markup and page copies of it) */
.ds-legacy .trust-signals .row > [class*="col-"] { margin-top: var(--s-4); }
.ds-legacy .trust-signals .card-body strong, .ds-legacy .trust-signals .row > [class*="col-"]:not(:has(.card)) { color: var(--ink); font-weight: var(--fw-ui); }
.ds-legacy .trust-signals .row > [class*="col-"]:not(:has(.card)) { display: flex; align-items: center; gap: var(--s-3); }

/* 25.5 navy bands and CTA strips */
.ds-legacy .bg-dark-primary, .ds-legacy .bg-primary { background: var(--surface-brand); color: var(--on-navy); padding: var(--section-y) 0; }
.ds-legacy .bg-dark-primary h2, .ds-legacy .bg-dark-primary h3, .ds-legacy .bg-dark-primary h4, .ds-legacy .bg-primary h2 { color: #fff; }
.ds-legacy .bg-dark-primary p, .ds-legacy .bg-dark-primary li { color: var(--on-navy-2); }
.ds-legacy :is(.bg-dark-primary, .bg-primary) a:not(.btn) { color: #fff; }
.ds-legacy .bg-dark-primary .card p, .ds-legacy .bg-dark-primary .card li { color: var(--ink-2); }
.ds-legacy .bg-dark-primary .card h3, .ds-legacy .bg-dark-primary .card h4 { color: var(--ink); }
.ds-legacy .bg-dark-primary .card a:not(.btn) { color: var(--link); }
.ds-legacy .bg-dark-primary .btn-primary { background: #fff; color: var(--navy); }
.ds-legacy :is(.bg-dark-primary, .bg-primary) :is(img[src*="logo"], img[src*="/qb"], img[src*="xero"], img[src*="intuit"], img[src*="badge"], img[src*="sage"], img[src*="citrix"], img[src*="certified"], img[src*="partner"]):not(.yt-facade img) { background: #fff; border-radius: var(--r-md); padding: 8px 12px; max-height: 56px; width: auto; }   /* logos on the blue band sit on a white chip (photos stay photos) */
.ds-legacy .scheduledemo, .ds-legacy .callaction { padding: var(--s-9) 0; background: var(--paper); border: 0; }
.ds-legacy .scheduledemo > .container, .ds-legacy .callaction > .container { position: relative; overflow: hidden; background: var(--surface-brand); color: #fff; border-radius: var(--r-lg); padding: var(--s-8) var(--s-6); max-width: calc(var(--container) - 2 * var(--gutter)); box-shadow: var(--sh-2); }
.ds-legacy .scheduledemo > .container::before, .ds-legacy .callaction > .container::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 120% at 100% 0%, rgba(27,75,196,.35), transparent 60%); }
.ds-legacy .scheduledemo > .container > *, .ds-legacy .callaction > .container > * { position: relative; }
.ds-legacy .scheduledemo h2, .ds-legacy .callaction h2, .ds-legacy .scheduledemo h3, .ds-legacy .callaction h3 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem); margin: 0 auto var(--s-3); }
.ds-legacy .scheduledemo p, .ds-legacy .callaction p { color: var(--on-navy-2); max-width: 68ch; margin-left: auto; margin-right: auto; }
.ds-legacy .scheduledemo strong, .ds-legacy .callaction strong { color: #fff; }
.ds-legacy .scheduledemo a:not(.btn), .ds-legacy .callaction a:not(.btn) { color: #fff; }
.ds-legacy .scheduledemo .btn-primary, .ds-legacy .callaction .btn-primary { background: #fff; color: var(--navy) !important; border-color: #fff; }
.ds-legacy .scheduledemo .btn-primary:hover, .ds-legacy .callaction .btn-primary:hover { background: var(--blue-050); }
.ds-legacy .light-gray + .scheduledemo, .ds-legacy .bg-light + .scheduledemo { padding-top: 0; }

/* 25.6 accordions (bulk pages: <details class="faq-item">; leftover Bootstrap panels drawn alike, with a + marker) */
.ds-legacy .faq { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--rule); text-align: left; font-size: var(--fs-body); font-weight: var(--fw-body); }
.ds-legacy .faq-item h2.faq-q, .ds-legacy .faq-item h3.faq-q, .ds-legacy .faq-item h4.faq-q { margin: 0; font-size: var(--fs-h4); font-weight: var(--fw-h3); line-height: 1.45; letter-spacing: 0; color: var(--ink); max-width: none; }
.ds-legacy .faq-a { padding-top: 0; }
.ds-legacy .faq-a ul { margin-bottom: var(--s-3); }
.ds-legacy .col-md-offset-1 > .faq, .ds-legacy .col-md-10 > .faq { max-width: none; }
.ds-legacy .panel-group { max-width: 880px; margin: 0 auto; }
.ds-legacy .panel-group .panel { border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; box-shadow: none; background: transparent; margin: 0 !important; }
.ds-legacy .panel-group .panel:first-child { border-top: 1px solid var(--rule); }
.ds-legacy .panel-group .panel-heading { background: transparent !important; border: 0; padding: 0; }
.ds-legacy .panel-group .panel-title { position: relative; display: block; margin: 0; padding: var(--s-4) 44px var(--s-4) 0; font-size: var(--fs-h4); font-weight: var(--fw-h3); line-height: 1.45; color: var(--ink); text-transform: none; cursor: pointer; }
.ds-legacy .panel-group .panel-title > a { display: block; color: inherit; text-decoration: none; margin: calc(-1 * var(--s-4)) -44px calc(-1 * var(--s-4)) 0; padding: var(--s-4) 44px var(--s-4) 0; }
.ds-legacy .panel-group .panel-title::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule-2); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: var(--fw-body); color: var(--ink-2); transition: transform .2s, background-color .15s; pointer-events: none; }
/* open state (js/rbo-ds.js section 9 sets .is-open): the "+" turns into a navy "x", as the design-system FAQ (.faq-pm) */
.ds-legacy .panel-group .panel.is-open .panel-title::after { transform: translateY(-50%) rotate(45deg); background: var(--navy); color: #fff; border-color: var(--navy); }
.ds-legacy .panel-group .panel-title:hover, .ds-legacy .panel-group .panel-title > a:hover { color: var(--blue); }
.ds-legacy .panel-group .panel-title[tabindex]:focus-visible, .ds-legacy .panel-group .panel-title > a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .ds-legacy .panel-group .panel-title::after { transition: none; } }
.ds-legacy .panel-group .panel-body { padding: 0 0 var(--s-4); border: 0 !important; color: var(--ink-2); }
/* standalone legacy panels (form cards: referral, consultation requests) keep an inner margin; the accordion rule above
   used to apply to every panel and left form cards with their fields touching the edge (QA D-018) */
.ds-legacy .panel:not(.panel-group .panel) { border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--sh-2); background: var(--white); overflow: hidden; }
.ds-legacy .panel:not(.panel-group .panel) > .panel-heading { padding: var(--s-4) var(--s-5); background: var(--paper-2); border-bottom: 1px solid var(--rule); color: var(--navy); font-weight: var(--fw-bold); }
.ds-legacy .panel:not(.panel-group .panel) > .panel-body { padding: var(--s-5); color: var(--ink-2); }
/* legacy two-column hero (<section class="hero"><div class="container"><div class="row">...): the design-system hero
   container is a two-column grid, which squeezed the legacy row into its first column; the legacy body colour also
   made the hero copy dark on blue (QA D-019, /client-referral-program) */
.ds-legacy section.hero > .container:has(> .row) { display: block; }
.ds-legacy section.hero:has(> .container > .row) { background: var(--surface-brand); color: var(--on-navy); padding: var(--s-8) 0; }
@media (min-width: 960px) { .ds-legacy section.hero:has(> .container > .row) { padding: 0; } }
.ds-legacy section.hero > .container > .row > [class*="col-"] > p { color: var(--on-navy-2); }
.ds-legacy .panel-body p:last-child { margin-bottom: 0; }

/* 25.7 tables (wide tables scroll inside their card, never widen the page) */
.ds-legacy .table-responsive { border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-1); margin-bottom: var(--s-4); overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.ds-legacy .table { margin: 0; font-size: var(--fs-sm); background: var(--white); }
.ds-legacy .table > thead > tr > th, .ds-legacy .table > thead th { background: var(--paper-2) !important; color: var(--ink-3) !important; font-size: var(--fs-meta); font-weight: var(--fw-bold); letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--rule); }
.ds-legacy .table > thead > tr[style] { background: var(--paper-2) !important; }
.ds-legacy .table > tbody > tr > td, .ds-legacy .table > tbody > tr > th, .ds-legacy .table > thead > tr > th { padding: 12px var(--s-4); border-color: var(--rule); vertical-align: top; }
.ds-legacy .table-bordered, .ds-legacy .table-bordered > * > tr > * { border-color: var(--rule); }
.ds-legacy .table-responsive > .table-bordered { border: 0; }
.ds-legacy .table-striped > tbody > tr:nth-of-type(odd) { background: var(--paper-2); }
.ds-legacy .table td { color: var(--ink-2); }
/* Bootstrap 3 keeps responsive-table cells on one line below 768 px, so even a two-column table scrolled sideways and
   was cut off at the screen edge. Cells wrap; a table with many columns still scrolls inside its frame. */
@media (max-width: 767px) { .ds-legacy .table-responsive > .table > * > tr > * { white-space: normal; min-width: 6em; overflow-wrap: anywhere; } }
.ds-legacy .text-muted, .ds-legacy .small, .ds-legacy small { color: var(--ink-2); font-size: var(--fs-sm); }

/* 25.8 video embeds (YouTube iframes became .yt-facade) and forms */
.ds-legacy .embed-responsive { border-radius: var(--r-lg); box-shadow: var(--sh-2); height: auto; padding-bottom: 0; }
.ds-legacy .embed-responsive .yt-facade { position: relative; }
.ds-legacy .form-control { height: 48px; border: 1px solid var(--field); border-radius: var(--r-sm); box-shadow: none; font: var(--fw-medium) 1rem/1.4 var(--font-sans); color: var(--ink); }
.ds-legacy textarea.form-control { height: auto; min-height: 112px; }
.ds-legacy .form-control:focus { border-color: var(--blue); box-shadow: var(--focus-ring); }
.ds-legacy .form-group label { font-weight: var(--fw-ui); color: var(--ink); }
.ds-legacy .text-danger { color: var(--error); }
/* field error lines in legacy lead forms (QA D-011): small, under the field, no gap while empty */
.ds-legacy .form-group > .text-danger, .ds-legacy form .form-control + .text-danger { font-size: var(--fs-meta); font-weight: var(--fw-ui); margin: 4px 0 0; }
.ds-legacy form .text-danger:empty { display: none; }

/* 25.9 legacy price cards (templates/pricing-sba.php, pricing.php) */
.ds-legacy .rbo-pricing { display: flex; flex-wrap: wrap; }
.ds-legacy .rbo-pricing::before, .ds-legacy .rbo-pricing::after { content: none; }
.ds-legacy .rbo-pricing > [class*="col-"] { padding-top: var(--s-5) !important; }
.ds-legacy .plan { height: 100%; gap: var(--s-2); text-align: left; }
.ds-legacy .plan.active { border-color: var(--navy); box-shadow: var(--sh-3); }
.ds-legacy .plan.active::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--blue); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.ds-legacy .hot-ribbon { display: none; }
.ds-legacy .plan-header { font-size: var(--fs-meta); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--ink-3); }
.ds-legacy .plan-price { display: flex; align-items: baseline; gap: 2px; font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ds-legacy .plan-price sup { font-size: .5em; top: 0; align-self: flex-start; margin-top: .35em; }
.ds-legacy .plan-tenure { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--ink-2); margin-left: 4px; }
.ds-legacy .plan-description { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; padding: var(--s-3) 0 var(--stack) !important; border-bottom: 1px solid var(--rule); margin-bottom: var(--stack); }
.ds-legacy .plan-footer { margin-top: auto; }
.ds-legacy .plan-footer .btn { width: 100%; min-height: 48px; font-size: 1rem; padding: 0 22px; }

/* 25.10 location link lists (enterprise / payroll location trees) */
.ds-legacy .cities-links .row > [class*="col-"] { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .ds-legacy .cities-links .row > [class*="col-"] { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); } }
.ds-legacy .cities-links a:not(.btn):not(.view-all-locations) { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--rule); color: var(--ink); font-weight: var(--fw-ui); font-size: var(--fs-sm); text-decoration: none; }
/* QA D-033: a link inside a sentence under the city lists ("... our specialized Enterprise Accounts Payable Outsourcing")
   took the list-row look above: body-text colour, no underline, so it read as plain text. It is a normal text link. */
.ds-legacy .cities-links p > a:not(.btn):not(.view-all-locations) { display: inline; min-height: 0; border-bottom: 0; color: var(--link); font-weight: var(--fw-btn); font-size: inherit; text-decoration: underline; }
.ds-legacy .cities-links a:not(.btn):hover { color: var(--blue); }
/* the shared location navigation (17b) inside legacy sections: the bridge rules above must not flatten the cards */
.ds-legacy .cities-links .row.loc-states--flat > [class*="col-"], .ds-legacy .loc-states--flat > [class*="col-"],
.ds-legacy .cities-links .row.loc-list--flat > [class*="col-"], .ds-legacy .loc-list--flat > [class*="col-"] { display: contents; }
.ds-legacy .row.loc-states, .ds-legacy .row.loc-list { display: grid; margin: 0; }
.ds-legacy .row.loc-list::before, .ds-legacy .row.loc-list::after { content: none; }
.ds-legacy .loc-nav-h, body .ds-legacy p.loc-nav-h, .ds-legacy .section-primary .container > p.loc-nav-h { max-width: none; margin: var(--s-6) 0 var(--s-3); font-size: var(--fs-meta); font-weight: var(--fw-label); letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; color: var(--ink-2); text-align: left; }
.ds-legacy .loc-list, .ds-legacy .loc-states, body .ds-legacy ul.loc-list, body .ds-legacy ul.loc-states { padding: 0; margin-left: 0; margin-right: 0; }
.ds-legacy .loc-list > li, .ds-legacy .loc-states > li, body .ds-legacy .loc-list > li { padding-left: 0; margin-left: 0; }
.ds-legacy .loc-list > li::before, .ds-legacy .loc-states > li::before { content: none; }
.ds-legacy .loc-states + p, .ds-legacy .loc-list + p { margin-top: var(--s-5); }
.ds-legacy .loc-states a:not(.btn), .ds-legacy .cities-links .loc-states a:not(.btn):not(.view-all-locations) { display: flex; min-height: 48px; padding: 10px 14px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-weight: var(--fw-ui); text-decoration: none; }
.ds-legacy .loc-states a:not(.btn):hover, .ds-legacy .cities-links .loc-states a:not(.btn):hover { background: var(--blue-700); color: #fff; }
.ds-legacy .view-all-locations { background: none !important; font-weight: var(--fw-btn); }
.ds-legacy .list-inline > li { padding: 4px; }
.ds-legacy .list-inline > li > a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--rule-2); border-radius: var(--r-sm); background: var(--white); color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: var(--fw-ui); }

@media (min-width: 960px) {
  .ds-legacy .intro-bookkeeping, .ds-legacy .intro, .ds-legacy > .hero:first-child { padding: 72px 0 80px; }
  .ds-legacy .scheduledemo > .container, .ds-legacy .callaction > .container { padding: var(--s-9) var(--s-10); }
}
@media (max-width: 639px) {
  .ds-legacy .section, .ds-legacy .section-primary { padding: var(--s-9) 0; }
  .ds-legacy .scheduledemo > .container, .ds-legacy .callaction > .container { margin: 0 var(--gutter); width: auto; }
}

/* ---- 26. Callback dialog ("Call me back" opens the existing callback form; templates/ds/callback-dialog.php) ---- */
dialog.ds-dialog { border: 0; padding: 0; border-radius: var(--r-lg); width: min(460px, calc(100% - 24px)); max-height: calc(100% - 24px); box-shadow: var(--sh-3); color: var(--ink); background: var(--white); }
dialog.ds-dialog::backdrop { background: rgba(12,27,51,.55); }
.ds-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-3) var(--s-4) var(--card-pad); border-bottom: 1px solid var(--rule); }
.ds-dialog-title { margin: 0; font-size: 1.25rem; font-weight: var(--fw-h2); color: var(--navy); letter-spacing: var(--ls-h2); }
.ds-dialog-body { padding: var(--s-5) var(--card-pad) var(--card-pad); }
.ds-dialog-body > p:first-child { color: var(--ink-2); margin-bottom: var(--stack); }
.ds-dialog-body .label { display: block; margin-bottom: 6px; }
.ds-callback-row { display: grid; gap: var(--s-3); }
@media (min-width: 480px) { .ds-callback-row { grid-template-columns: minmax(0, 1fr) auto; } }
.ds-callback-row .btn { white-space: nowrap; }
.ds-dialog-note { margin: var(--s-4) 0 0; font-size: var(--fs-sm); color: var(--ink-2); }

/* ---- 27. Desktop phone number in the payroll and enterprise headers (owner decision 2026-11-18) ---- */
.header-phone { display: none; }
@media (min-width: 1100px) {
  .header-phone { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: var(--fw-ui); color: var(--navy); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .header-phone:hover { color: var(--blue); }
  .header-phone .icon { width: 18px; height: 18px; }
}

/* ---- 28. Line icons that replace the old clip-art images (visual asset cleanup 2026-11-19) ----
   One size, one stroke, one colour everywhere: 28px, 1.6 stroke, brand blue, no tile or background.
   Markup: <svg class="line-icon" aria-hidden="true" focusable="false"><use href="#i-NAME"/></svg> */
.line-icon, .contact-icon { display: block; width: 28px; height: 28px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.line-icon--sm { width: 22px; height: 22px; }
.ds-legacy .media > .line-icon { float: left; margin: 2px 14px 0 0; }
/* in running text and plain lists the small check sits on the first line, like the image it replaces */
li > .line-icon--sm, p > .line-icon--sm, td > .line-icon--sm { display: inline-block; vertical-align: -5px; margin-right: var(--s-2); }
.btn > .line-icon--sm { display: inline-block; vertical-align: -5px; margin-left: var(--s-2); stroke: currentColor; }
/* legacy feature rows, trust rows and benefit lists: the icon sits bare (no tile) beside its label */
.ds-legacy .card-body:has(> .line-icon) { display: flex; align-items: center; gap: var(--s-4); }
.ds-legacy .media-left:has(> .line-icon) { display: flex; padding: 0; }
.ds-legacy .bt-list > li > .line-icon { grid-row: span 3; margin-top: 2px; }
.ds-legacy .tlist > li > .line-icon:first-child { display: none; }   /* the list draws its own check (25.4) */
.modal .tlist .line-icon { display: inline-block; vertical-align: -5px; margin-right: 6px; }
.feature-icon:has(> .line-icon) { width: auto; height: auto; background: none; border-radius: 0; }
.ds-legacy .bg-dark-primary .line-icon:not(.card .line-icon) { stroke: #fff; }   /* on navy: white line, never blue on navy */
/* Contact page: three equal cards (Corporate Office, Phone Support, eMail Support) */
.contact-cards { display: grid; gap: var(--s-5); margin-top: var(--s-7); }
@media (min-width: 768px) { .contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--card-pad); box-shadow: var(--sh-1); }
.contact-card .contact-icon { margin-bottom: var(--s-4); }
.ds-legacy .contact-card h3, .contact-card h3 { font-size: var(--fs-h3); font-weight: var(--fw-h3); color: var(--navy); margin: 0 0 var(--s-3); }
.contact-card p { color: var(--ink-2); margin: 0 0 var(--s-3); }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card a { font-weight: var(--fw-ui); overflow-wrap: anywhere; }

/* ---- 29. Final visual cleanup (owner-approved 2026-11-19): clean photo frames, large line icon, six-step component ---- */
.line-icon--lg { width: 44px; height: 44px; stroke-width: 1.4; }
.ds-photo { display: block; width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--rule); box-shadow: var(--sh-2); object-fit: cover; background: var(--paper); }
.ds-photo--banner { max-width: 350px; aspect-ratio: 5 / 3; margin-inline: auto; }
.band-navy .ds-photo, .hero .ds-photo, .ds-legacy .intro .ds-photo, .ds-legacy .intro-bookkeeping .ds-photo { border-color: var(--navy-700); }
.six-steps { margin: 0; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--card-pad); box-shadow: var(--sh-1); }
.six-steps-title { font-size: var(--fs-meta); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--blue); margin: 0 0 var(--s-4); }
.six-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.six-steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: var(--s-4); align-items: center; padding: var(--s-3) 0; }
.six-steps li + li::before { content: ""; position: absolute; left: 19px; top: -10px; height: 20px; border-left: 2px solid var(--blue-100); }
.six-steps .ss-n { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--blue-050); color: var(--blue); border: 1.5px solid var(--blue); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.six-steps li:last-child .ss-n { background: var(--blue); color: #fff; }
.six-steps .ss-t { color: var(--ink); font-weight: var(--fw-medium); line-height: 1.35; }

/* 27. Premium Accounting partner banner (templates/banner.php, 32 insurance pages; markup unchanged). Its old stylesheet
   (style2.css) is not loaded on design-system pages, so the Bootstrap columns fell apart: an oversized title, a stray
   icon, labels split over lines. Now one card: shield + statement on the left, the integration panel on the right,
   four proof points in a row below. */
.premium-banner-section { padding: var(--section-y) 0; background: var(--paper); }
.premium-banner-section .banner-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: var(--s-7) var(--s-6); }
.premium-banner-section .banner-card > .row { display: grid; gap: var(--s-6); margin: 0; }
.premium-banner-section .banner-card > .row::before, .premium-banner-section .banner-card > .row::after { display: none; }
.premium-banner-section .banner-card > .row > [class*="col-"] { width: auto; float: none; padding: 0; }
.premium-banner-section .banner-card > .row > .hidden-sm { display: none; }
.premium-banner-section .icon-col { text-align: left; }
.premium-banner-section .banner-icon { width: 56px; height: 56px; border-radius: var(--r-md); background: var(--blue-050); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.premium-banner-section .banner-icon .line-icon { width: 28px; height: 28px; }
.premium-banner-section .banner-title { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.125rem); line-height: 1.22; letter-spacing: var(--ls-h2); font-weight: var(--fw-h2); color: var(--ink); margin: 0 0 var(--s-4); max-width: 26ch; }
.premium-banner-section .banner-title br { display: none; }
.premium-banner-section .banner-blue { color: var(--blue); }
.premium-banner-section .banner-desc { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.55; margin: 0; max-width: 60ch; }
.premium-banner-section .integration-title { font-size: var(--fs-h4); line-height: 1.35; margin: 0 0 var(--s-4); color: var(--ink); text-align: left; }
.premium-banner-section .integration-title br { display: none; }
.premium-banner-section .banner-card > .row > .col-md-4 { text-align: left; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-md); padding: var(--s-5); }
.premium-banner-section .logo-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); margin: 0 0 var(--s-5); }
.premium-banner-section .logo-row::before, .premium-banner-section .logo-row::after { display: none; }
.premium-banner-section .logo-row > [class*="col-"] { width: auto; float: none; padding: 0; display: flex; align-items: center; justify-content: center; height: 56px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-sm); }
.premium-banner-section .integration-logo { max-height: 30px; max-width: 80%; width: auto; margin: 0; }
.premium-banner-section .banner-line { display: none; }
.premium-banner-section .btn-premium { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; background: var(--blue); border: 0; color: #fff; border-radius: var(--r-sm); font-weight: var(--fw-btn); }
.premium-banner-section .btn-premium:hover { background: var(--blue-700); color: #fff; }
.premium-banner-section .bottom-divider { height: 1px; background: var(--rule); margin: var(--s-7) 0 var(--s-6); }
.premium-banner-section .banner-card > .row:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.premium-banner-section .feature-box { display: flex; align-items: center; gap: var(--s-3); }
.premium-banner-section .feature-icon { flex: none; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--blue-050); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.premium-banner-section .feature-icon .line-icon { width: 22px; height: 22px; }
.premium-banner-section .feature-box p { margin: 0; line-height: 1.35; font-size: var(--fs-sm); }
.premium-banner-section .feature-title { color: var(--ink); font-weight: var(--fw-bold); }
.premium-banner-section .feature-sub { color: var(--ink-2); }
@media (min-width: 992px) {
  .premium-banner-section .banner-card { padding: var(--s-9); }
  .premium-banner-section .banner-card > .row:first-child { grid-template-columns: 56px minmax(0, 1fr) minmax(300px, 380px); column-gap: var(--s-7); align-items: start; }
  .premium-banner-section .banner-card > .row:last-child { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 479px) { .premium-banner-section .banner-card > .row:last-child { grid-template-columns: minmax(0, 1fr); } .premium-banner-section .logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 28. Enterprise resource hub (/enterprise/resources): resource cards in a grid (the use-case list spans two columns and
   splits into two), three next-step cards below. */
.ds-legacy .res-grid { display: grid; gap: var(--s-5); }
.ds-legacy .res-card { margin: 0; display: flex; flex-direction: column; }
.ds-legacy .res-card h2.heading-2 { font-size: var(--fs-h3); line-height: var(--lh-h3); margin: 0 0 var(--s-2); text-align: left; }
.ds-legacy .res-card > p { margin: 0 0 var(--s-4); color: var(--ink-2); font-size: var(--fs-sm); max-width: none; text-align: left; }
.ds-legacy .res-card .tlist { margin-top: 0; }
.ds-legacy .res-next { display: grid; gap: var(--s-5); margin-top: var(--s-7); }
.ds-legacy .res-next .res-card { background: var(--blue-050); border-color: var(--blue-100); box-shadow: none; }
.ds-legacy .res-next .res-card > p:last-child { margin: auto 0 0; font-size: var(--fs-body); font-weight: var(--fw-btn); }
@media (min-width: 768px) { .ds-legacy .res-grid, .ds-legacy .res-next { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ds-legacy .res-card--wide .tlist { display: block; columns: 2; column-gap: var(--s-7); } .ds-legacy .res-card--wide .tlist > li { margin-bottom: var(--s-3); } .ds-legacy .res-card--wide { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .ds-legacy .res-grid, .ds-legacy .res-next { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ds-legacy .res-card--wide { grid-column: span 2; } }

/* 29. Legacy copy written straight into .container (no <p>; the enterprise location templates) keeps the reading column like
   the paragraphs around it (it ran 1,200 px wide), and a centred section heading with an inline margin stays centred. */
.ds-legacy .section-primary > .container:not(:has(> :not(a, strong, b, em, i, span, br, sup, sub))) { max-width: calc(75ch + 2 * var(--gutter)); }
.ds-legacy h2.text-center[style*="margin"] { margin-left: auto !important; margin-right: auto !important; }

/* 30. Flex rows (.equal-height-row, .flex-center, .hrow, .flex, .lg-flex): below 992 px a column that only has md / lg widths
   took the width of its text (cards of different widths, indented) - it is full width, as in a floated Bootstrap row. */
@media (max-width: 991px) {
  .ds-legacy :is(.row.flex, .row.lg-flex, .row.flex-center, .equal-height-row, .hrow) > [class*="col-"]:not([class*="col-sm-"], [class*="col-xs-"]) { flex: 1 1 100%; width: 100%; max-width: 100%; }
}

/* 31. Insurance-page heroes (copy + product screenshot inside .col-md-10.col-md-offset-custom): the old theme centred that
   column; without it the hero sat left with an empty strip on the right. It uses the full content width, copy and
   screenshot side by side, vertically centred. */
@media (min-width: 992px) {
  .ds-legacy .intro-bookkeeping .col-md-offset-custom { width: 100%; margin-left: 0; float: none; }
  .ds-legacy .intro-bookkeeping .hrow { align-items: center; flex-wrap: nowrap; gap: var(--s-8); margin: 0; }
  .ds-legacy .intro-bookkeeping .hrow > .hcontent, .ds-legacy .intro-bookkeeping .hrow > .hbanner { width: auto; flex: 1 1 50%; padding: 0; }
  .ds-legacy .intro-bookkeeping .hbanner { text-align: right; }
  .ds-legacy .intro-bookkeeping .hbanner img { margin-left: auto; max-height: 380px; width: auto; }
}
.ds-legacy .intro-bookkeeping .hero-buttons { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.ds-legacy .intro-bookkeeping .hero-buttons > .btn { margin: 0; }
/* centred legacy heroes (confirmation pages): the heading box is centred too, not only its text */
.ds-legacy .intro-bookkeeping .text-center h1, .ds-legacy .intro-bookkeeping h1.text-center { margin-left: auto !important; margin-right: auto !important; }

/* 32. Long guides (ds/toc.php, $data['ds_toc']): CoverPay-style reading layout.
   Hero: light, copy left, "On this page" card right (from 992 px; a collapsible card under the copy on smaller screens).
   Sections with a heading, a short intro and ONE card / table: heading + intro left, the card right (from 992 px).
   Diagrams, multi-card grids and FAQs keep the centred full-width layout. */
.ds-guide > :is(.intro-bookkeeping, .hero).has-toc { background: linear-gradient(180deg, #F3F6FD 0%, #E9EFFB 100%) !important; color: var(--ink); border-bottom: 1px solid var(--blue-100);
  --on-navy-2: var(--ink-2); --link: var(--blue); --link-hover: var(--blue-700); min-height: 0; padding: var(--s-9) 0; }
.ds-guide > :is(.intro-bookkeeping, .hero).has-toc::before, .ds-guide > :is(.intro-bookkeeping, .hero).has-toc::after { display: none !important; }
.ds-guide > :is(.intro-bookkeeping, .hero).has-toc h1 { color: var(--ink); }
.ds-guide > :is(.intro-bookkeeping, .hero).has-toc p, .ds-guide > :is(.intro-bookkeeping, .hero).has-toc li, .ds-guide > :is(.intro-bookkeeping, .hero).has-toc .sub-heading { color: var(--ink-2); }
.ds-guide > :is(.intro-bookkeeping, .hero).has-toc strong { color: var(--ink); }
.ds-guide > :is(.intro-bookkeeping, .hero).has-toc a:not(.btn) { color: var(--blue); }
.ds-guide > :is(.intro-bookkeeping, .hero).has-toc .btn-primary { background: var(--blue) !important; color: #fff !important; border-color: var(--blue) !important; }
.ds-guide > :is(.intro-bookkeeping, .hero).has-toc .btn-primary:hover { background: var(--blue-700) !important; }
.ds-guide > :is(.intro-bookkeeping, .hero).has-toc .btn-default, .ds-guide > :is(.intro-bookkeeping, .hero).has-toc .btn-outline-primary { color: var(--blue); border-color: var(--blue-100); background: #fff; }
.ds-guide > :is(.intro-bookkeeping, .hero).has-toc > .container > * { max-width: none !important; }
.toc-card { background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--blue); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: var(--s-4) var(--s-5); margin-top: var(--s-6); }
.toc-card > summary { list-style: none; cursor: pointer; font-size: var(--fs-meta); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--blue); display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.toc-card > summary::-webkit-details-marker { display: none; }
.toc-card > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s; }
.toc-card[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.toc-card ul { list-style: none; margin: var(--s-2) 0 0; padding: 0 !important; }
.toc-card li { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.toc-card li + li { border-top: 1px solid var(--rule); }
.toc-card a { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); min-height: 40px; padding: 6px 0; color: var(--blue) !important; font-size: var(--fs-sm); font-weight: var(--fw-ui); text-decoration: none; line-height: 1.3; }
.toc-card a::after { content: ""; flex: none; width: 6px; height: 6px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
.toc-card a:hover { text-decoration: underline; }
.ds-guide :is(h2[id]) { scroll-margin-top: calc(var(--header-h) + 16px); }
@media (min-width: 992px) {
  .ds-guide > :is(.intro-bookkeeping, .hero).has-toc > .container { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: var(--s-10); align-items: center; }
  .ds-guide > :is(.intro-bookkeeping, .hero).has-toc > .container > .toc-col { grid-column: 2; grid-row: 1; }
  /* long lists (9+ sections): a wider card in two columns, so the hero stays compact */
  .ds-guide > :is(.intro-bookkeeping, .hero).has-toc > .container:has(.toc-card li:nth-child(9)) { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
  .ds-guide > :is(.intro-bookkeeping, .hero).has-toc .toc-card:has(li:nth-child(9)) ul { columns: 2; column-gap: var(--s-6); }
  .ds-guide > :is(.intro-bookkeeping, .hero).has-toc .toc-card:has(li:nth-child(9)) li { break-inside: avoid; border-top: 0; border-bottom: 1px solid var(--rule); }
  .ds-guide > :is(.intro-bookkeeping, .hero).has-toc > .container > :not(.toc-col) { grid-column: 1; }
  .ds-guide > :is(.intro-bookkeeping, .hero).has-toc .toc-card { margin-top: 0; }
  .ds-guide > :is(.intro-bookkeeping, .hero).has-toc .toc-card > summary { pointer-events: none; }
  .ds-guide > :is(.intro-bookkeeping, .hero).has-toc .toc-card > summary::after { display: none; }
  /* split sections */
  :is(.ds-guide, .ds-split) .section-primary > .container:has(> h2):has(> .row > [class*="col-"]:only-child > .card):not(:has(> .row ~ .row, .workflow-horizontal, .workflow-vertical, .faq-item, .panel-group, > .row > [class*="col-"]:only-child > .card ~ *)) {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s-9); align-items: start; }
  :is(.ds-guide, .ds-split) .section-primary > .container:has(> h2):has(> .row > [class*="col-"]:only-child > .card):not(:has(> .row ~ .row, .workflow-horizontal, .workflow-vertical, .faq-item, .panel-group, > .row > [class*="col-"]:only-child > .card ~ *)) > * { grid-column: 1; text-align: left; margin-left: 0; margin-right: 0; max-width: none; }
  :is(.ds-guide, .ds-split) .section-primary > .container:has(> h2):has(> .row > [class*="col-"]:only-child > .card):not(:has(> .row ~ .row, .workflow-horizontal, .workflow-vertical, .faq-item, .panel-group, > .row > [class*="col-"]:only-child > .card ~ *)) > .row { grid-column: 2; grid-row: 1 / span 12; margin: 0; display: block; }
  :is(.ds-guide, .ds-split) .section-primary > .container:has(> h2):has(> .row > [class*="col-"]:only-child > .card):not(:has(> .row ~ .row, .workflow-horizontal, .workflow-vertical, .faq-item, .panel-group, > .row > [class*="col-"]:only-child > .card ~ *)) > .row > [class*="col-"] { width: 100%; max-width: none; float: none; padding: 0; margin: 0; }
  :is(.ds-guide, .ds-split) .section-primary > .container:has(> h2):has(> .row > [class*="col-"]:only-child > .card):not(:has(> .row ~ .row, .workflow-horizontal, .workflow-vertical, .faq-item, .panel-group, > .row > [class*="col-"]:only-child > .card ~ *)) > .row .card { margin: 0; height: auto; }
  :is(.ds-guide, .ds-split) .section-primary > .container:has(> h2):has(> .row > [class*="col-"]:only-child > .card):not(:has(> .row ~ .row, .workflow-horizontal, .workflow-vertical, .faq-item, .panel-group, > .row > [class*="col-"]:only-child > .card ~ *)) > h2 { margin: 0 0 var(--s-4) !important; text-align: left !important; }
}
/* a card that only frames a table: the table's own frame is enough (no double border) */
.ds-legacy .card:has(> .table-responsive:only-child) { padding: 0; border: 0; box-shadow: none; background: none; }
.ds-legacy .card:has(> .table-responsive:only-child) > .table-responsive { margin: 0; }

/* 33. Design-system heroes without an aside (.hero--solo: hubs, directories, service pages): the page's own banner photo as the
   right half from 960 px, as for the legacy heroes (25.2b) - they left the right half of the band empty. */
@media (min-width: 960px) {
  .ds-hero-photo main > .hero:not(:has(.hero-aside)) > .container { grid-template-columns: minmax(0, 1fr); }
  .ds-hero-photo main > .hero:not(:has(.hero-aside)) .hero-main { max-width: 54%; }
  .ds-hero-photo main > .hero:not(:has(.hero-aside))::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 50%; pointer-events: none;
    background: var(--hero-photo) right center / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.55) 22%, #000 46%); mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.55) 22%, #000 46%); }
}
/* lists that draw their own tick: the old glyph tick in front of the text is dropped (it doubled the tick) */
.ds-legacy .tlist > li > .glyphicon-ok:first-child { display: none; }
/* inline "color: #fff" from the old dark sections: text takes its section's colour (white on the blue bands, ink on light ones) */
.ds-legacy :is([style*="color: #fff"], [style*="color:#fff"], [style*="color: #FFF"], [style*="color:#FFF"], [style*="color: white"]) { color: inherit !important; }

/* legacy sections named "steps" are not the design-system .steps list: the whole section became a 3-column grid and its
   content sat in the first third (the step-by-step flowcharts squeezed to 40 px columns) */
.ds-legacy section.steps { display: block; border-top: 0; }
.ds-legacy .row:has(> [class*="col-"] > .card > .step-badge) + * { margin-top: var(--s-6); }

/* 32b. Long guides on a design-system hero (resource pages): the same light guide hero as the legacy guides */
main > .hero.has-toc { background: linear-gradient(180deg, #F3F6FD 0%, #E9EFFB 100%) !important; color: var(--ink); }
main > .hero.has-toc .hero-main { background: transparent !important; color: var(--ink); }
main > .hero.has-toc { border-bottom: 1px solid var(--blue-100); }
main > .hero.has-toc::before, main > .hero.has-toc .hero-main::before, main > .hero.has-toc::after { display: none !important; }
main > .hero.has-toc .hero-main { --on-navy-2: var(--ink-2); --link: var(--blue); --link-hover: var(--blue-700);
  --btn-p-bg: var(--blue); --btn-p-fg: #fff; --btn-p-hover: var(--blue-700); --btn-s-bg: #fff; --btn-s-fg: var(--blue); --btn-s-bd: var(--blue-100); --btn-s-hover: var(--blue-050); }
main > .hero.has-toc h1 { color: var(--ink); }
main > .hero.has-toc .breadcrumb, main > .hero.has-toc .breadcrumb a, main > .hero.has-toc .breadcrumb span { color: var(--ink-3) !important; }
main > .hero.has-toc .breadcrumb [aria-current] { color: var(--ink) !important; }
main > .hero.has-toc .hero-aside > :first-child { margin-top: 0; }
@media (min-width: 960px) {
  main > .hero.has-toc .toc-card > summary { pointer-events: none; }
  main > .hero.has-toc .toc-card > summary::after { display: none; }
  main > .hero.has-toc > .container:has(.toc-card li:nth-child(9)) { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
  main > .hero.has-toc .toc-card:has(li:nth-child(9)) ul { columns: 2; column-gap: var(--s-6); }
  main > .hero.has-toc .toc-card:has(li:nth-child(9)) li { break-inside: avoid; border-top: 0; border-bottom: 1px solid var(--rule); }
}

/* 34. Google reviews widget in legacy sections (#google-reviews, 288 views): three review cards side by side from 768 px with the
   "see all" link under them (they were one narrow stacked column - the reading-column rule caught the unclassed wrapper). */
.ds-legacy #google-reviews { max-width: none; display: grid; gap: var(--s-4); }
.ds-legacy #google-reviews > .card { margin: 0; height: 100%; }
@media (min-width: 768px) {
  .ds-legacy #google-reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ds-legacy #google-reviews > :not(.card) { grid-column: 1 / -1; text-align: center; }
}

/* 35. Long reading sections on the old dark bands (.bg-dark-primary / .bg-primary with 3+ paragraphs or an FAQ): a light blue
   tint with ink text instead of a full blue band - pages had four or five large blue text blocks in a row. Short bands (a heading,
   a line, logos, a CTA) keep the blue gradient. */
.ds-legacy :is(.bg-dark-primary, .bg-primary):has(p:nth-of-type(3), .faq-item, .panel-group, .panel) {
  background: var(--blue-050) !important; color: var(--ink); border-block: 1px solid var(--blue-100);
  --on-navy-2: var(--ink-2); --sky: var(--blue); --navy-600: var(--rule-2); --navy-700: var(--rule); --link: var(--blue); --link-hover: var(--blue-700); }
.ds-legacy :is(.bg-dark-primary, .bg-primary):has(p:nth-of-type(3), .faq-item, .panel-group, .panel) :is(h2, h3, h4, h5, strong) { color: var(--ink); }
.ds-legacy :is(.bg-dark-primary, .bg-primary):has(p:nth-of-type(3), .faq-item, .panel-group, .panel) :is(p, li) { color: var(--ink-2); }
.ds-legacy :is(.bg-dark-primary, .bg-primary):has(p:nth-of-type(3), .faq-item, .panel-group, .panel) a:not(.btn) { color: var(--blue); }
.ds-legacy :is(.bg-dark-primary, .bg-primary):has(p:nth-of-type(3), .faq-item, .panel-group, .panel) .btn-primary { background: var(--blue); color: #fff !important; border-color: var(--blue); }

/* 36. Icon lists (.bt-list): the icon always takes the icon column and the text the text column, whatever their order in the
   markup (some items put the heading before the icon, which pushed the heading and its list into the 48 px icon column). */
.ds-legacy .bt-list > li > :is(svg, img) { grid-column: 1; grid-row: 1 / span 4; }
.ds-legacy .bt-list > li > :not(svg, img) { grid-column: 2; }

/* 37. Old page-level <style> blocks (30 legacy views: fixed 420 px cards, 260 px lists, bordered list rows, padding 0 0 50px)
   load after this file and won over the bridge; the design-system card and list roles are restated with a little more weight. */
body .ds-legacy .card { padding: var(--card-pad); width: auto; max-width: 100%; }
body .ds-legacy .tlist { margin: 0; width: auto; }
body .ds-legacy .tlist > li { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
body .ds-legacy .pricing .btn-primary { width: auto; }
body .ds-legacy .lg-flex > [class*="col-"]:only-child .tlist > li { margin-bottom: var(--s-3); }
body .ds-legacy .tlist + :is(.text-center, p, div) { margin-top: var(--s-5); }

/* 38. Confirmation heroes (thank-you pages): one centred column - a short message has no second column to fill. */
.hero--centred > .container { grid-template-columns: minmax(0, 1fr) !important; justify-items: center; text-align: center; }
.hero--centred .hero-main { max-width: 720px; margin-inline: auto; }
.hero--centred .hero-main h1, .hero--centred .hero-main .hero-sub { margin-inline: auto; }
.hero--centred .btn-row, .hero--centred .confirm-mark { justify-content: center; margin-inline: auto; }

/* 39. Software support section on hand-built near-me pages (logo + checklist pairs straight in the container): four columns from
   960 px, each logo above its list (they were one narrow column at the left). */
@media (min-width: 960px) {
  .section > .container:has(> img + .checklist) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s-6); row-gap: var(--s-3); align-items: start; }
  .section > .container:has(> img + .checklist) > .sec-head { grid-column: 1 / -1; grid-row: 1; }
  .section > .container:has(> img + .checklist) > img { grid-row: 2; align-self: end; }
  .section > .container:has(> img + .checklist) > .checklist { grid-row: 3; margin: 0; }
}

/* 40. Legal pages (refund policy, privacy & terms, terms, disclaimer): the text in one left-aligned reading column (it ran 1,200 px wide). */
.ds-legal > section:not(:first-of-type) > .container > * { max-width: 78ch; margin-left: 0 !important; margin-right: 0 !important; text-align: left !important; }
.ds-legal > section:not(:first-of-type) :is(h2, h3) { text-transform: none; letter-spacing: var(--ls-h2); margin-top: var(--s-7); }
/* a step row continued in a second short .row (3 + 2 markup): the short row is centred at the first row's card width */
@media (min-width: 992px) {
  .ds-legacy .row:has(> [class*="col-"] > .card > .step-badge):has(> :nth-child(3):last-child) + .row:has(> [class*="col-"] > .card > .step-badge):not(:has(> :nth-child(3))) { display: flex; justify-content: center; gap: var(--s-5); margin-top: var(--s-5); }
  .ds-legacy .row:has(> [class*="col-"] > .card > .step-badge):has(> :nth-child(3):last-child) + .row:has(> [class*="col-"] > .card > .step-badge):not(:has(> :nth-child(3))) > [class*="col-"] { flex: 0 0 calc((100% - 2 * var(--s-5)) / 3); }
}
/* comparison tables with three columns or fewer wrap on phones instead of scrolling sideways (the 640 px minimum is for wider tables) */
.data-table:not(:has(tr > :nth-child(4))) { min-width: 0; }
@media (max-width: 479px) { .data-table:not(:has(tr > :nth-child(4))) :is(th, td) { padding: 10px 10px; overflow-wrap: anywhere; } }
