/* ts-theme.v1.css: global "strict premium" layer for Tax-Services.ca.
   One source of truth = the home page tokens (--ts-*). Loaded globally after every inline style (see shared piece dabf97637186
   in site/src/data/shared.json). Version lives in the file name because /wp-content/themes/* is served immutable for a year:
   to change anything, create ts-theme.v2.css and update the single <link>.
   Selector rule: "html body .cs-site ..." gives specificity above the page inline CSS (ts-critical, per-page <style>) without !important.
   !important is used only where an existing rule already uses it (marked "WHY").
   Home page is the reference: nothing here targets .ts-hero, .ts-sec h2 or other home-only blocks.
   Dark theme: body[data-scheme=dark] (toggle in header/footer, cookie _color_schema) and body[data-scheme=auto] + prefers-color-scheme. */

/* ---------- 1. Tokens ---------- */
:root{
  /* home tokens, unchanged values */
  --ts-navy:#0a1b33; --ts-navy2:#0f2a52; --ts-ink:#0f1b2d; --ts-accent:#1a62ff; --ts-accent-d:#0b49d1; --ts-accent-s:#eef3ff;
  --ts-gold:#c9a55c; --ts-bg:#f6f8fc; --ts-line:#e4e9f2; --ts-muted:#5a6a82;
  /* scale: 6 / 12 / 18 radii, one shadow, 13-32 type scale */
  --ts-r-sm:6px; --ts-r-md:12px; --ts-r-lg:18px; --ts-pill:999px;
  --ts-shadow-1:0 1px 2px rgba(10,27,51,.05),0 12px 32px -8px rgba(10,27,51,.12);
  --ts-fs-13:.8125rem; --ts-fs-14:.875rem; --ts-fs-16:1rem; --ts-fs-17:1.0625rem; --ts-fs-20:1.25rem; --ts-fs-24:1.5rem; --ts-fs-32:2rem;
  --ts-fw-head:750; --ts-fw-strong:700;
  --ts-measure:62ch;
  --ts-gap-1:8px; --ts-gap-2:16px; --ts-gap-3:24px; --ts-gap-4:48px;
  --ts-tap:44px;
  /* header tokens for the later 64px mobile header and mega menu (markup is not changed in this step) */
  --ts-header-h:72px;
  /* semantic (theme-switchable) colours used by this file */
  --t-page:#fff; --t-surface:#f6f8fc; --t-card:#fff; --t-raise:#fbfcfe;
  --t-line:#e4e9f2; --t-line-2:#c9d4ea;
  --t-head:#0a1b33; --t-ink:#0f1b2d; --t-text:#1b2a41; --t-muted:#5a6a82;
  --t-link:#1a62ff; --t-link-d:#0b49d1; --t-link-on-tint:#0b49d1;
  --t-tint:#eef3ff; --t-tint-line:#d5e1ff;
  --t-focus:#1a62ff; --t-focus-soft:rgba(26,98,255,.22);
  --t-btn:#1a62ff; --t-btn-h:#0b49d1; --t-btn-ink:#fff;
  --t-ad-bg:#f6f8fc; --t-ad-line:#e4e9f2; --t-ad-ink:#5a6a82;
  --t-hdr:rgba(255,255,255,.86); --t-field:#fff; --t-field-line:#c9d4ea;
  --t-warn-bg:#fff6e0; --t-warn-ink:#6b4a00;
  --t-shadow:var(--ts-shadow-1);
}
@media (max-width:767.98px){:root{--ts-header-h:64px}}

/* dark: same names, other values (>= WCAG AA: text 4.5:1, large text/UI 3:1; values checked in theme-report.md) */
body[data-scheme="dark"]{
  --t-page:#0b1424; --t-surface:#0f1a2e; --t-card:#111d31; --t-raise:#0f1a2e;
  --t-line:#233149; --t-line-2:#2c3d5c;
  --t-head:#f1f5fc; --t-ink:#e4ebf7; --t-text:#d5dfee; --t-muted:#9fb0c9;
  --t-link:#8db6ff; --t-link-d:#b4cfff; --t-link-on-tint:#a9c8ff;
  --t-tint:#15264a; --t-tint-line:#2a4378;
  --t-focus:#8db6ff; --t-focus-soft:rgba(141,182,255,.3);
  --t-btn:#1a62ff; --t-btn-h:#0b49d1; --t-btn-ink:#fff;
  --t-ad-bg:#0f1a2e; --t-ad-line:#233149; --t-ad-ink:#9fb0c9;
  --t-hdr:rgba(11,20,36,.88); --t-field:#0b1424; --t-field-line:#2c3d5c;
  --t-warn-bg:#2a2412; --t-warn-ink:#f1e7c8;
  --t-shadow:0 1px 2px rgba(0,0,0,.4),0 12px 32px -8px rgba(0,0,0,.55);
  color-scheme:dark;
}
@media (prefers-color-scheme:dark){
  body[data-scheme="auto"],body:not([data-scheme]){
    --t-page:#0b1424; --t-surface:#0f1a2e; --t-card:#111d31; --t-raise:#0f1a2e;
    --t-line:#233149; --t-line-2:#2c3d5c;
    --t-head:#f1f5fc; --t-ink:#e4ebf7; --t-text:#d5dfee; --t-muted:#9fb0c9;
    --t-link:#8db6ff; --t-link-d:#b4cfff; --t-link-on-tint:#a9c8ff;
    --t-tint:#15264a; --t-tint-line:#2a4378;
    --t-focus:#8db6ff; --t-focus-soft:rgba(141,182,255,.3);
    --t-btn:#1a62ff; --t-btn-h:#0b49d1; --t-btn-ink:#fff;
    --t-ad-bg:#0f1a2e; --t-ad-line:#233149; --t-ad-ink:#9fb0c9;
    --t-hdr:rgba(11,20,36,.88); --t-field:#0b1424; --t-field-line:#2c3d5c;
    --t-warn-bg:#2a2412; --t-warn-ink:#f1e7c8;
    --t-shadow:0 1px 2px rgba(0,0,0,.4),0 12px 32px -8px rgba(0,0,0,.55);
    color-scheme:dark;
  }
}

/* ---------- 2. Base, page background (dark) ---------- */
html{scroll-padding-top:calc(var(--cs-header-height,88px) + 16px);scrollbar-gutter:stable}
html body{font-family:Inter,"Inter Fallback",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-optical-sizing:auto;-webkit-text-size-adjust:100%;text-size-adjust:100%}
html:has(body[data-scheme="dark"]){background:#0b1424}
@media (prefers-color-scheme:dark){html:has(body[data-scheme="auto"]),html:has(body:not([data-scheme])){background:#0b1424}}
/* the Csco theme paints --cs-site-background (a light gradient) on the content wrappers; in dark it must follow the token */
body[data-scheme="dark"] .cs-site-content,body[data-scheme="dark"] .cs-site-primary,body[data-scheme="dark"] .cs-main-content{background:transparent}
body[data-scheme="dark"]{background:var(--t-page);color:var(--t-text)}
@media (prefers-color-scheme:dark){
  body[data-scheme="auto"],body:not([data-scheme]){background:var(--t-page);color:var(--t-text)}
  body[data-scheme="auto"] .cs-site-content,body[data-scheme="auto"] .cs-site-primary,body[data-scheme="auto"] .cs-main-content{background:transparent}
}

/* ---------- 3. Visible focus everywhere (3px ring) ---------- */
html body :is(a,button,summary,select,textarea,input,[tabindex],[role="button"]):focus-visible{
  outline:3px solid var(--t-focus);outline-offset:2px;border-radius:var(--ts-r-sm);
}
/* WHY !important: ts-dark.css sets outline-color:#8db6ff!important for focus-visible in dark; same colour, harmless */
html body .cs-site .ts-calc .ts-input :is(input,select):focus-visible{outline:none} /* the ring is drawn on the wrapper below */
html body .cs-site .ts-calc .ts-input:focus-within{outline:3px solid var(--t-focus);outline-offset:2px;border-color:var(--t-focus);box-shadow:0 0 0 4px var(--t-focus-soft)}
html body :is(input,select,textarea):focus-visible{box-shadow:0 0 0 4px var(--t-focus-soft)}

/* ---------- 4. Article typography (post, blog, page, hubs, calculators, /about, officials): .entry-content only, home untouched ---------- */
/* WHY !important: theme critical CSS has "h1.cs-entry__title{font-size:clamp(...)!important;line-height:1.15!important}" */
html body .cs-site .cs-entry__header h1.cs-entry__title{
  font-size:clamp(1.875rem,1.25rem + 2.1vw,2.75rem)!important;line-height:1.12!important;
  font-weight:var(--ts-fw-head);letter-spacing:-.03em;color:var(--t-head);text-wrap:balance;text-align:left;margin:0 0 var(--ts-gap-2);
}
html body .cs-site .cs-entry__header h1.cs-entry__title span{font-weight:inherit;letter-spacing:inherit}
html body .cs-site .cs-main-content .entry-content{color:var(--t-text);font-size:var(--ts-fs-17);line-height:1.65;font-variant-numeric:lining-nums}
html body .cs-site .cs-main-content .entry-content > :is(h2,h3,h4),html body .cs-site .cs-main-content .entry-content :is(.ts-faq,.ts-related-guides,.ts-more,.ts-about,.ts-related,.ts-notes,.ts-cluster,.ts-saved) > :is(h2,h3,h4){color:var(--t-head);text-wrap:balance;scroll-margin-top:calc(var(--cs-header-height,88px) + 16px)}
html body .cs-site .cs-main-content .entry-content > h2,html body .cs-site .cs-main-content .entry-content :is(.ts-faq,.ts-related-guides,.ts-more,.ts-about,.ts-related,.ts-notes,.ts-cluster,.ts-saved) > h2{
  font-size:clamp(1.5rem,1.2rem + 1vw,1.875rem);font-weight:var(--ts-fw-head);line-height:1.2;letter-spacing:-.025em;margin:var(--ts-gap-4) 0 12px;
}
html body .cs-site .cs-main-content .entry-content > h2:first-child,html body .cs-site .cs-main-content .entry-content > .ts-updated + h2{margin-top:var(--ts-gap-3)}
html body .cs-site .cs-main-content .entry-content > h3{font-size:clamp(1.125rem,1.05rem + .3vw,1.25rem);font-weight:var(--ts-fw-strong);line-height:1.3;letter-spacing:-.01em;margin:28px 0 8px}
html body .cs-site .cs-main-content .entry-content > h4{font-size:var(--ts-fs-17);font-weight:var(--ts-fw-strong);line-height:1.35;margin:20px 0 6px}
html body .cs-site .cs-main-content .entry-content > p,html body .cs-site .cs-main-content .entry-content > :is(ul,ol) > li > p{font-size:var(--ts-fs-17);line-height:1.65;color:var(--t-text);margin-top:0;margin-bottom:1.1em}
html body .cs-site .cs-main-content .entry-content > :is(p,ul,ol) strong{color:var(--t-head);font-weight:650}
/* line length: text blocks stop at ~66ch, tables/cards/FAQ keep the full column */
html body .cs-site .cs-main-content .entry-content > :is(p,ul,ol,blockquote,h2,h3,h4,dl){max-width:var(--ts-measure)}
html body .cs-site .cs-main-content .entry-content > p.ts-lead{max-width:none}
@media (max-width:640px){
  html body .cs-site .cs-main-content .entry-content,html body .cs-site .cs-main-content .entry-content > p{font-size:1rem;line-height:1.65}
  html body .cs-site .cs-main-content .entry-content > h2{margin-top:36px}
}

/* lists */
html body .cs-site .cs-main-content .entry-content > :is(ul,ol){padding-left:1.35em;margin-bottom:1.1em}
html body .cs-site .cs-main-content .entry-content > :is(ul,ol) > li{margin:.4em 0;padding-left:.15em;font-size:var(--ts-fs-17);line-height:1.65;color:var(--t-text)}
html body .cs-site .cs-main-content .entry-content > :is(ul,ol) > li::marker{color:var(--t-link-d);font-weight:650}
html body .cs-site .cs-main-content .entry-content > :is(ul,ol) :is(ul,ol){margin-bottom:0}

/* links in text: accent, 600, calm underline (replaces the heavy 700 gradient underline of the Csco theme) */
html body .cs-site .cs-main-content .entry-content > p a:not(.ts-btn):not(.cs-button):not(.wp-block-button__link),
html body .cs-site .cs-main-content .entry-content > :is(ul,ol) li a:not(.ts-btn):not(.cs-button):not(.wp-block-button__link),
html body .cs-site .cs-main-content .entry-content > table td a,html body .cs-site .cs-main-content .entry-content blockquote a,html body .cs-site .cs-main-content .entry-content .ts-faq p a{
  color:var(--t-link);font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;
  text-decoration-color:color-mix(in srgb,currentColor 45%,transparent);background:none;background-image:none;
}
html body .cs-site .cs-main-content .entry-content :is(p,li,td,blockquote) a:not(.ts-btn):not(.cs-button):not(.ts-chip):hover{color:var(--t-link-d);text-decoration-color:currentColor;background:none}

/* ---------- 5. Breadcrumbs, Updated plate, lead / quick answer ---------- */
html body .cs-site .cs-breadcrumbs{font-size:var(--ts-fs-14);line-height:1.4;color:var(--t-muted)}
html body .cs-site .cs-breadcrumbs a{color:var(--t-muted);text-decoration:none}
html body .cs-site .cs-breadcrumbs a:hover{color:var(--t-link)}
html body .cs-site .cs-breadcrumbs span[aria-current]{color:var(--t-ink)}

html body .cs-site .cs-main-content .entry-content .ts-updated{
  display:block;margin:0 0 var(--ts-gap-3);padding:10px 14px;
  font-size:var(--ts-fs-14);line-height:1.5;color:var(--t-muted);background:var(--t-surface);border:1px solid var(--t-line);border-radius:var(--ts-r-md);max-width:none;
}
html body .cs-site .cs-main-content .entry-content .ts-updated time{font-weight:650;color:var(--t-ink)}
html body .cs-site .cs-main-content .entry-content .ts-updated a{font-weight:600;color:var(--t-link);background:none;background-image:none}
html body .cs-site .cs-main-content .entry-content .ts-updated .ts-updated__sep{margin:0 .45em;opacity:.55}

/* .ts-lead inside articles = Quick answer card (the home .ts-lead lives in .ts-sec, not in .entry-content) */
html body .cs-site .cs-main-content .entry-content :is(.ts-lead,.ts-quick){
  font-size:1.125rem;line-height:1.6;color:var(--t-ink);background:var(--t-tint);border:1px solid var(--t-tint-line);border-left:4px solid var(--t-link);
  border-radius:var(--ts-r-md);padding:16px 20px;margin:0 0 var(--ts-gap-3);
}
html body .cs-site .cs-main-content .entry-content :is(.ts-lead,.ts-quick) :is(strong,b){color:var(--t-head)}

/* ---------- 6. Contents (TOC) ---------- */
html body .cs-site .cs-main-content .entry-content .ts-toc{
  background:var(--t-surface);border:1px solid var(--t-line);border-radius:var(--ts-r-md);padding:16px 20px;margin:0 0 var(--ts-gap-3);font-size:var(--ts-fs-14);max-width:none;
}
html body .cs-site .cs-main-content .entry-content .ts-toc > strong{display:block;font-size:var(--ts-fs-13);letter-spacing:.06em;text-transform:uppercase;color:var(--t-muted);font-weight:700;margin-bottom:6px}
html body .cs-site .cs-main-content .entry-content .ts-toc ol{margin:0;padding-left:1.25em;columns:2;column-gap:2rem}
html body .cs-site .cs-main-content .entry-content .ts-toc li{margin:0;padding:0;break-inside:avoid;font-size:var(--ts-fs-14);line-height:1.4}
html body .cs-site .cs-main-content .entry-content .ts-toc li a{display:inline-block;padding:5px 0;font-weight:600;color:var(--t-link);text-decoration:none;background:none;background-image:none}
html body .cs-site .cs-main-content .entry-content .ts-toc li a:hover{color:var(--t-link-d);text-decoration:underline}
@media (max-width:640px){
  /* compact: one column, bounded height with its own scroll instead of pushing the first paragraph a full screen down */
  html body .cs-site .cs-main-content .entry-content .ts-toc{padding:12px 14px}
  html body .cs-site .cs-main-content .entry-content .ts-toc ol{columns:1;max-height:13.5rem;overflow-y:auto;overscroll-behavior:contain;padding-right:6px}
  html body .cs-site .cs-main-content .entry-content .ts-toc li a{display:flex;align-items:center;min-height:var(--ts-tap);padding:6px 0}
}

/* ---------- 7. Tables: strict on desktop, scroll container on mobile, row-cards when .ts-stack + data-label exist ---------- */
html body .cs-site .cs-main-content .entry-content table{
  width:100%;border-collapse:separate;border-spacing:0;font-size:.96875rem;line-height:1.45;font-variant-numeric:tabular-nums lining-nums;
  border:1px solid var(--t-line);border-radius:var(--ts-r-md);overflow:hidden;background:var(--t-card);color:var(--t-text);margin-bottom:var(--ts-gap-3);
}
html body .cs-site .cs-main-content .entry-content table :is(th,td){padding:12px 14px;border:0;border-bottom:1px solid var(--t-line);vertical-align:top;text-align:left;color:var(--t-text);background:transparent;line-height:1.45}
html body .cs-site .cs-main-content .entry-content table th{background:var(--t-surface);color:var(--t-head);font-weight:700;font-size:var(--ts-fs-14);letter-spacing:0;white-space:normal}
html body .cs-site .cs-main-content .entry-content table tbody tr:last-child td{border-bottom:0}
html body .cs-site .cs-main-content .entry-content table tbody tr:nth-child(even) td{background:var(--t-raise)}
html body .cs-site .cs-main-content .entry-content table td:not(:first-child),html body .cs-site .cs-main-content .entry-content table th:not(:first-child){font-variant-numeric:tabular-nums}
html body .cs-site .cs-main-content .entry-content table td:first-child{font-weight:600;color:var(--t-head)}
@media (max-width:640px){
  html body .cs-site .cs-main-content .entry-content table:not(.ts-stack){display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;font-size:.9375rem}
  html body .cs-site .cs-main-content .entry-content table:not(.ts-stack) :is(th,td){min-width:5.5rem;padding:10px 12px}
  html body .cs-site .cs-main-content .entry-content table.ts-stack,html body .cs-site .cs-main-content .entry-content table.ts-stack :is(tbody,tr,td){display:block;width:100%}
  html body .cs-site .cs-main-content .entry-content table.ts-stack{border:0;background:transparent;overflow:visible}
  html body .cs-site .cs-main-content .entry-content table.ts-stack thead{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
  html body .cs-site .cs-main-content .entry-content table.ts-stack tr{background:var(--t-card);border:1px solid var(--t-line);border-radius:var(--ts-r-md);margin:0 0 12px;padding:6px 0}
  html body .cs-site .cs-main-content .entry-content table.ts-stack td{display:grid;grid-template-columns:minmax(6rem,38%) 1fr;gap:8px;border:0;padding:6px 14px;background:transparent!important /* WHY: zebra rule above has higher specificity on even rows */}
  html body .cs-site .cs-main-content .entry-content table.ts-stack td::before{content:attr(data-label);font-weight:650;color:var(--t-muted);font-size:var(--ts-fs-13)}
}

/* ---------- 8. FAQ cards ---------- */
html body:not(.home) .cs-site .ts-faq{max-width:none}
html body:not(.home) .cs-site .ts-faq details{background:var(--t-card);border:1px solid var(--t-line);border-radius:var(--ts-r-md);margin:0 0 12px;padding:0;overflow:hidden}
html body:not(.home) .cs-site .ts-faq details[open]{border-color:var(--t-line-2)}
html body:not(.home) .cs-site .ts-faq summary{
  position:relative;display:block;min-height:var(--ts-tap);padding:14px 52px 14px 20px;cursor:pointer;list-style:none;
  font-size:1.03125rem;font-weight:700;line-height:1.4;color:var(--t-head);
}
html body:not(.home) .cs-site .ts-faq summary::-webkit-details-marker{display:none}
html body:not(.home) .cs-site .ts-faq summary::marker{content:""}
html body:not(.home) .cs-site .ts-faq summary::after{
  content:"+";position:absolute;right:16px;top:50%;transform:translateY(-50%);width:28px;height:28px;border-radius:var(--ts-pill);
  display:grid;place-items:center;font-size:1.25rem;font-weight:500;line-height:1;color:var(--t-link-on-tint);background:var(--t-tint);
}
html body:not(.home) .cs-site .ts-faq details[open] > summary::after{content:"\2212"}
html body:not(.home) .cs-site .ts-faq details > :not(summary){margin:0;padding:0 20px 16px;font-size:1.03125rem;line-height:1.6;color:var(--t-text);max-width:none}
html body:not(.home) .cs-site .ts-faq details > p + p{padding-top:0}

/* ---------- 9. Sources, helpful, legal ---------- */
html body .cs-site aside.ts-sources{background:var(--t-card);border:1px solid var(--t-line);border-radius:var(--ts-r-md);padding:20px 24px;margin:var(--ts-gap-4) 0 var(--ts-gap-3);max-width:none}
html body .cs-site aside.ts-sources h2{font-size:var(--ts-fs-13);letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--t-muted);margin:0 0 12px;line-height:1.3}
html body .cs-site aside.ts-sources ul{list-style:none;margin:0 0 8px;padding:0;display:flex;flex-wrap:wrap;gap:8px}
html body .cs-site aside.ts-sources li{margin:0;padding:0}
/* text chips: the visible text is the page name; data-domain (added by the later script) is shown after it, no foreign logos */
html body .cs-site :is(aside.ts-sources li a.ts-src,.ts-chip){
  display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:6px 12px;font-size:var(--ts-fs-14);font-weight:600;line-height:1.3;
  color:var(--t-link-on-tint);background:var(--t-tint);border:1px solid var(--t-tint-line);border-radius:var(--ts-r-sm);text-decoration:none;
}
html body .cs-site :is(aside.ts-sources li a.ts-src,.ts-chip):hover{border-color:var(--t-link);text-decoration:underline}
html body .cs-site :is(aside.ts-sources li a.ts-src,.ts-chip)[data-domain]::after{content:attr(data-domain);font-weight:500;font-size:var(--ts-fs-13);color:var(--t-muted);padding-left:8px;border-left:1px solid var(--t-tint-line)}
html body .cs-site aside.ts-sources p{font-size:var(--ts-fs-14);line-height:1.55;color:var(--t-muted);margin:0 0 .6em;max-width:none}
html body .cs-site aside.ts-sources p strong{color:var(--t-ink)}
html body .cs-site aside.ts-sources p a{color:var(--t-link);font-weight:600}
html body .cs-site :is(.ts-helpful,.ts-helpful span){font-size:var(--ts-fs-14);color:var(--t-muted)}
html body .cs-site .ts-helpful button{min-height:40px;min-width:56px;padding:6px 16px;border-radius:var(--ts-r-sm);font-size:var(--ts-fs-14);font-weight:650}
html body .cs-site .ts-legal{font-size:var(--ts-fs-13);line-height:1.5;color:var(--t-muted);border:1px solid var(--t-line);border-radius:var(--ts-r-md);padding:10px 14px;background:var(--t-surface);max-width:none}
html body .cs-site .ts-legal :is(summary,p,span,u){font-size:var(--ts-fs-13);line-height:1.5;color:var(--t-muted)}
html body .cs-site .ts-legal a{color:var(--t-link);font-weight:600}
html body .cs-site .ts-legal summary{display:flex;gap:8px;flex-wrap:wrap;min-height:var(--ts-tap);align-items:center;cursor:pointer}
html body .cs-site .ts-legal-foot,html body .cs-site .disclaimer{font-size:var(--ts-fs-13);line-height:1.55}

/* ---------- 10. Callouts, quotes ---------- */
html body .cs-site .cs-main-content .entry-content :is(blockquote,.wp-block-quote,.ts-callout,.ts-notebox){
  margin:var(--ts-gap-3) 0;padding:16px 20px;background:var(--t-tint);border:1px solid var(--t-tint-line);border-left:4px solid var(--t-link);border-radius:var(--ts-r-md);color:var(--t-ink);
}
html body .cs-site .cs-main-content .entry-content :is(blockquote,.wp-block-quote) p{margin:0 0 .6em;color:var(--t-ink)}
html body .cs-site .cs-main-content .entry-content :is(blockquote,.wp-block-quote) p:last-child{margin-bottom:0}
html body .cs-site .cs-main-content .entry-content :is(.ts-warn,.ts-strip){background:var(--t-warn-bg);color:var(--t-warn-ink);border-radius:var(--ts-r-md)}

/* ---------- 11. Buttons ---------- */
html body .cs-site :is(.ts-btn:not(.ts-btn--ghost),.cs-button,.wp-block-button__link,input[type=submit]){
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 20px;border-radius:var(--ts-r-sm);
  background:var(--t-btn);background-image:none;color:var(--t-btn-ink);border:1px solid transparent;font-size:var(--ts-fs-16);font-weight:650;line-height:1.2;text-decoration:none;
  box-shadow:none;transition:background-color .15s ease,border-color .15s ease;
}
html body .cs-site :is(.ts-btn:not(.ts-btn--ghost),.cs-button,.wp-block-button__link,input[type=submit]):hover{background:var(--t-btn-h);background-image:none;color:var(--t-btn-ink);box-shadow:none}
html body .cs-site .ts-btn--ghost{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border-radius:var(--ts-r-sm);background:transparent;color:var(--t-link-d);border:1px solid var(--t-line-2);font-weight:650;box-shadow:none}
html body .cs-site .ts-btn--ghost:hover{background:var(--t-tint);border-color:var(--t-link)}
@media (min-width:768px){html body .cs-site :is(.ts-btn,.cs-button,.wp-block-button__link){min-height:40px}}

/* ---------- 12. Forms and calculators ---------- */
html body .cs-site :is(.ts-calc,.entry-content) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]):not([type=button]),select,textarea){
  font-size:1.03125rem;color:var(--t-ink);font-variant-numeric:tabular-nums;
}
html body .cs-site .entry-content :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]):not([type=button]),select,textarea){
  min-height:48px;padding:10px 14px;background:var(--t-field);border:1px solid var(--t-field-line);border-radius:var(--ts-r-md);
}
html body .cs-site .ts-calc{background:var(--t-card);border:1px solid var(--t-line);border-radius:var(--ts-r-lg);box-shadow:var(--t-shadow);color:var(--t-text);font-variant-numeric:tabular-nums}
html body .cs-site .ts-calc :is(label,.ts-field label){font-size:var(--ts-fs-14);font-weight:650;color:var(--t-ink)}
html body .cs-site .ts-calc .ts-input{background:var(--t-field);border:1px solid var(--t-field-line);border-radius:var(--ts-r-md);min-height:48px}
html body .cs-site .ts-calc .ts-input :is(input,select){font-size:1.03125rem;min-height:46px;color:var(--t-ink);background:transparent}
html body .cs-site .ts-calc :is(.ts-note,small){font-size:var(--ts-fs-13);color:var(--t-muted)}
/* "i" / "?" hint buttons: 28px visual, 44px hit area, never below WCAG 2.5.8 (24px) */
html body .cs-site .ts-calc .ts-ex-b{
  position:relative;display:inline-grid;place-items:center;width:28px;height:28px;min-width:28px;padding:0;border-radius:var(--ts-pill);
  font-size:var(--ts-fs-14);font-weight:700;line-height:1;color:var(--t-link-on-tint);background:var(--t-tint);border:1px solid var(--t-tint-line);
}
html body .cs-site .ts-calc .ts-ex-b::before{content:"";position:absolute;inset:-8px}
html body .cs-site .ts-calc .ts-ex-b:hover{border-color:var(--t-link)}
/* result card: keeps the existing navy card of the calculators (white text on #0a1b33); only radius, rhythm and numerals are unified */
html body .cs-site .ts-calc .ts-result,html body .cs-site .ts-result{border-radius:var(--ts-r-lg);font-variant-numeric:tabular-nums lining-nums}
html body .cs-site .ts-result .ts-big{font-size:clamp(1.75rem,1.4rem + 1.6vw,2rem);font-weight:var(--ts-fw-head);letter-spacing:-.025em;line-height:1.1;font-variant-numeric:tabular-nums}
html body .cs-site .ts-result :is(.ts-rows,.ts-explain){font-variant-numeric:tabular-nums}
html body .cs-site .ts-calc .ts-actions{gap:10px}

/* ---------- 13. Cards (hubs, lists, related, src-grid) ---------- */
html body:not(.home) .cs-site :is(.ts-card,.ts-hubs li,.ts-list li,.ts-more li,.ts-sit a,.ts-prov a){border-radius:var(--ts-r-lg)}
html body .cs-site :is(.ts-list,.ts-more) li{background:var(--t-card);border:1px solid var(--t-line);padding:16px 20px}
html body .cs-site .cs-main-content .entry-content :is(.ts-list,.ts-more) li > a{font-weight:700;color:var(--t-head);text-decoration:none;font-size:1.03125rem}
html body .cs-site .cs-main-content .entry-content :is(.ts-list,.ts-more) li > a:hover{color:var(--t-link);text-decoration:underline}
html body .cs-site :is(.ts-list,.ts-more) li > p{font-size:var(--ts-fs-14);line-height:1.55;color:var(--t-muted);margin:6px 0 0;max-width:none}
html body .cs-site .cs-main-content .entry-content section.ts-related-guides{margin:var(--ts-gap-4) 0 var(--ts-gap-3);max-width:none}
html body .cs-site .cs-main-content .entry-content section.ts-related-guides ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
html body .cs-site .cs-main-content .entry-content section.ts-related-guides li{margin:0;padding:0}
html body .cs-site .cs-main-content .entry-content section.ts-related-guides li a{
  display:flex;align-items:center;height:100%;min-height:var(--ts-tap);padding:14px 16px;border:1px solid var(--t-line);border-radius:var(--ts-r-lg);background:var(--t-card);
  font-size:var(--ts-fs-14);font-weight:650;line-height:1.4;color:var(--t-head);text-decoration:none;
}
html body .cs-site .cs-main-content .entry-content section.ts-related-guides li a:hover{border-color:var(--t-line-2);box-shadow:var(--t-shadow);color:var(--t-link)}
html body .cs-site .cs-main-content .entry-content .ts-hublink{max-width:none}
html body .cs-site .cs-main-content .entry-content .ts-hublink a{display:inline-flex;align-items:center;min-height:var(--ts-tap);font-weight:650;color:var(--t-link)}
html body .cs-site .ts-src-grid__card{border-radius:var(--ts-r-md)}
html body .cs-site .ts-src-grid__card a{font-size:var(--ts-fs-14);color:var(--t-link-on-tint)}
html body .cs-site .ts-src-grid__note{font-size:var(--ts-fs-13)}
html body .cs-site .cs-entry-prev-next .cs-entry__title{font-size:1.0625rem;font-weight:var(--ts-fw-strong);letter-spacing:-.01em;line-height:1.3;margin:0}
html body .cs-site .cs-entry-prev-next__label{font-size:var(--ts-fs-13)}

/* small text floor: the theme/post-meta rules that went down to 8-11px */
html body .cs-site :is(.cs-entry__post-meta .cs-meta-date,.cs-meta-date-on,.cs-entry__post-meta){font-size:var(--ts-fs-13)}
html body .cs-site .cs-entry__post-meta .cs-meta-date{color:var(--t-muted)}
html body .cs-site .ts-aside h2{font-size:var(--ts-fs-13)}

/* ---------- 14. Ad slot wrapper (the ad itself is untouched; wrapper reserves height, no negative margins) ---------- */
html body .cs-site .ts-adslot{
  position:relative;display:flex;align-items:center;justify-content:center;width:100%;max-width:100%;margin:24px auto 32px!important /* WHY: auto-ads add inline margins */;
  min-height:280px;contain:layout;overflow:hidden;background:var(--t-ad-bg);border:1px solid var(--t-ad-line);border-radius:var(--ts-r-md);
}
html body .cs-site .ts-adslot::before{content:"Advertisement";position:absolute;top:6px;left:12px;font-size:var(--ts-fs-13);letter-spacing:.04em;text-transform:uppercase;color:var(--t-ad-ink);pointer-events:none}
html body .cs-site .ts-adslot ins.adsbygoogle{display:block;max-width:100%;margin:0 auto!important /* WHY: Google sets margin-left:-24px on mobile via inline style */}
html body .cs-site .ts-adslot > *{max-width:100%}
@media (max-width:640px){html body .cs-site .ts-adslot{min-height:250px}}

/* ---------- 15. Header / footer, touch targets ---------- */
html body .cs-site .cs-header{background:var(--t-hdr);-webkit-backdrop-filter:saturate(1.4) blur(10px);backdrop-filter:saturate(1.4) blur(10px)}
html body .cs-site .cs-footer{border-top:2px solid var(--ts-gold)}
html body .cs-site .cs-footer :is(.ts-foot a,.ts-foot-links a,.ts-foot-bottom a){display:inline-block;padding:8px 0;line-height:1.4}
html body .cs-site .cs-footer .ts-foot h3{font-size:var(--ts-fs-14);font-weight:var(--ts-fw-strong)}
/* inert hooks for the next step (64px mobile header, mega menu); markup does not use them yet */
html body .cs-site .ts-header{position:sticky;top:0;z-index:100;min-height:var(--ts-header-h);background:var(--t-hdr);border-bottom:1px solid var(--t-line)}
html body .cs-site .ts-mega{position:absolute;left:0;right:0;top:100%;display:none;background:var(--t-card);border:1px solid var(--t-line);border-radius:0 0 var(--ts-r-lg) var(--ts-r-lg);box-shadow:var(--t-shadow);padding:var(--ts-gap-3)}
html body .cs-site .ts-mega[data-open],html body .cs-site .ts-mega:focus-within{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:var(--ts-gap-3)}
html body .cs-site .ts-mega a{display:flex;align-items:center;min-height:var(--ts-tap);color:var(--t-head);font-weight:600}

@media (max-width:767.98px){
  html body .cs-site :is(.ts-side li a,.ts-side-all,.ts-related-guides li a,.ts-fshare__b,.ts-foot a,.ts-foot-bottom a,.ts-foot-bottom .cs-site-scheme-toggle,.cs-breadcrumbs a,.ts-next a,.ts-tabbar a,.ts-tabbar button,.ts-helpful button,.cs-header__logo,.ts-hublink a,aside.ts-sources li a.ts-src){min-height:var(--ts-tap)}
  html body .cs-site :is(.ts-side li a,.ts-side-all,.ts-fshare__b,.cs-breadcrumbs a,.ts-foot a,.ts-foot-bottom a,.ts-foot-bottom .cs-site-scheme-toggle,.cs-header__logo){display:inline-flex;align-items:center}
  html body .cs-site .cs-main-content .entry-content .ts-hublink a{display:inline-flex;align-items:center;min-height:var(--ts-tap)}
  html body #ts-notice :is(button,a.ts-btn,.ts-btn){min-height:var(--ts-tap)}
  html body .ts-tabbar :is(a,button,span){font-size:var(--ts-fs-13);letter-spacing:0}
  html body .cs-site :is(.ts-btn,.cs-button,button.ts-btn,.ts-calc button:not(.ts-ex-b)){min-height:var(--ts-tap)}
  html body .cs-site .ts-calc :is(input,select){min-height:48px}
  html body .cs-site :is(input[type=checkbox],input[type=radio]){width:22px;height:22px}
  html body .cs-site .cs-entry__post-meta,html body .cs-site .cs-breadcrumbs{font-size:var(--ts-fs-14)}
}

/* ---------- 16. Pre-wired page hero for the later template step (not used by current markup) ---------- */
html body .cs-site .ts-pagehero{
  background:radial-gradient(700px 260px at 90% -20%,rgba(26,98,255,.28),transparent 60%),linear-gradient(180deg,var(--ts-navy),var(--ts-navy2));
  color:#fff;border-bottom:2px solid var(--ts-gold);padding:32px 0 28px;
}
html body .cs-site .ts-pagehero :is(h1,.cs-entry__title){color:#fff}
html body .cs-site .ts-pagehero :is(.ts-updated,.cs-breadcrumbs,.cs-breadcrumbs a){color:#c2cee2}

/* ---------- 17. Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  html body *,html body *::before,html body *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* ---------- 18. Print ---------- */
@media print{html body .cs-site .ts-adslot,html body .cs-site .ts-mega{display:none!important}}

/* ---------- 19. Consistency pass: one radius set, left-aligned header block, small text floor ---------- */
html body .cs-site .cs-entry__header,html body .cs-site .cs-entry__header .cs-entry__inner,html body .cs-site .cs-breadcrumbs{text-align:left}
html body .cs-site .cs-entry__header .cs-entry__inner,html body .cs-site .cs-entry-title-and-subtitle{align-items:flex-start;justify-content:flex-start}
html body .cs-site .cs-breadcrumbs,html body .cs-site .cs-breadcrumbs > span{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:2px 8px}
html body .cs-site .cs-main-content .cs-entry__header .cs-meta-category .post-categories{justify-content:flex-start}
html body .cs-site .cs-meta-category .post-categories a{font-size:var(--ts-fs-13);font-weight:600;letter-spacing:0;text-transform:none}
html body .cs-site .ts-next{border-radius:var(--ts-r-lg)}
html body .cs-site .ts-next strong{font-size:var(--ts-fs-13)}
body[data-scheme="dark"] .cs-entry-prev-next__item{background:var(--t-card)}
@media (prefers-color-scheme:dark){body[data-scheme="auto"] .cs-entry-prev-next__item,body:not([data-scheme]) .cs-entry-prev-next__item{background:var(--t-card)}}
html body .cs-site .cs-entry-prev-next__item,html body .cs-site .cs-search{border-radius:var(--ts-r-lg)}
html body .cs-site :is(.cs-search__input,.cs-search__group,.cs-search__submit){border-radius:var(--ts-r-md)}
html body .cs-site :is(.ts-sugg,.cs-header .sub-menu,.cs-header__nav-inner .sub-menu){border-radius:var(--ts-r-md)}
html body:not(.home) .cs-site .ts-ico{border-radius:var(--ts-r-sm)}
html body .cs-site .ts-legal-foot :is(p,a,span){font-size:var(--ts-fs-13);line-height:1.55}

/* ---------- 20. Dark gaps found by the contrast scan (home deadline strip: amber text hard-coded in the page CSS) ---------- */
body[data-scheme="dark"] .ts-strip :is(b,strong,small,em,i,time,p,div,span){color:var(--t-warn-ink)}
body[data-scheme="dark"] .ts-strip a{color:#e7cf99}
@media (prefers-color-scheme:dark){
  body[data-scheme="auto"] .ts-strip :is(b,strong,small,em,i,time,p,div,span),body:not([data-scheme]) .ts-strip :is(b,strong,small,em,i,time,p,div,span){color:var(--t-warn-ink)}
  body[data-scheme="auto"] .ts-strip a,body:not([data-scheme]) .ts-strip a{color:#e7cf99}
}

/* ---------- 20b. Text floor and radius for page-specific blocks (officials cards etc.): 13px minimum, 12px image radius ---------- */
html body .cs-site :is(figcaption,figcaption a,.ts-person__office){font-size:var(--ts-fs-13)}
html body .cs-site .ts-person__ph img{border-radius:var(--ts-r-md)}
@media (max-width:640px){html body .cs-site .cs-main-content .entry-content :is(.ts-lead,.ts-quick){font-size:1.0625rem;padding:14px 16px}}

html body .cs-site .ts-src-grid__mark{font-size:var(--ts-fs-13)}

/* ---------- 22. QA pass: archive, hubpage, radii, column, mobile taps, CLS ---------- */
:root{--ts-col:820px}
html body .cs-site .cs-main-content .entry-content,html body .cs-site .cs-entry__header,html body .cs-site .cs-page__header{max-width:var(--ts-col);margin-left:auto;margin-right:auto}
html body .cs-site .cs-entry__header h1.cs-entry__title,html body .cs-site .cs-page__header h1.cs-page__title{max-width:var(--ts-col)}
/* H2 aligned to home: 32px / 780 / -.035em */
html body .cs-site .cs-main-content .entry-content > h2,html body .cs-site .cs-main-content .entry-content > .ts-hubpage > h2,html body .cs-site .cs-main-content .entry-content :is(.ts-faq,.ts-related-guides,.ts-more,.ts-about,.ts-related,.ts-notes,.ts-cluster,.ts-saved) > h2{
  font-size:clamp(1.5rem,1.1rem + 1.3vw,2rem);font-weight:780;letter-spacing:-.035em;line-height:1.2;margin:var(--ts-gap-4) 0 12px}
/* .ts-hubpage wrapper behaves like the entry-content root */
html body .cs-site .cs-main-content .entry-content > .ts-hubpage > :is(h2,h3,h4){color:var(--t-head);text-wrap:balance}
html body .cs-site .cs-main-content .entry-content > .ts-hubpage > h3{font-size:clamp(1.125rem,1.05rem + .3vw,1.25rem);font-weight:var(--ts-fw-strong);line-height:1.3;letter-spacing:-.01em;margin:28px 0 8px}
html body .cs-site .cs-main-content .entry-content > .ts-hubpage > h4{font-size:var(--ts-fs-17);font-weight:var(--ts-fw-strong);line-height:1.35;margin:20px 0 6px}
html body .cs-site .cs-main-content .entry-content > .ts-hubpage > :is(p,ul,ol){font-size:var(--ts-fs-17);line-height:1.65;color:var(--t-text);margin-top:0;margin-bottom:1.1em;max-width:var(--ts-measure)}
html body .cs-site .cs-main-content .entry-content > .ts-hubpage > h2,html body .cs-site .cs-main-content .entry-content > .ts-hubpage > h3,html body .cs-site .cs-main-content .entry-content > .ts-hubpage > h4{max-width:var(--ts-measure)}
html body .cs-site .cs-main-content .entry-content > .ts-hubpage :is(p,li) a:not([class]){color:var(--t-link);font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em}
html body .cs-site .cs-main-content .entry-content > .ts-hubpage :is(p,li) a:not([class]):hover{color:var(--t-link-d)}
/* archive (/articles) */
html body .cs-site .cs-page__header h1.cs-page__title{font-size:clamp(1.875rem,1.25rem + 2.1vw,2.75rem);line-height:1.12;font-weight:var(--ts-fw-head);letter-spacing:-.03em;color:var(--t-head);text-align:left;margin:0 0 var(--ts-gap-2)}
html body .cs-site .cs-page__archive-description{max-width:var(--ts-col);color:var(--t-text)}
html body .cs-site .cs-page__archive-description h2{font-size:clamp(1.5rem,1.1rem + 1.3vw,2rem);font-weight:780;letter-spacing:-.035em;line-height:1.2;margin:var(--ts-gap-4) 0 12px;color:var(--t-head)}
html body .cs-site .cs-page__archive-description h3{font-size:clamp(1.125rem,1.05rem + .3vw,1.25rem);font-weight:var(--ts-fw-strong);line-height:1.3;margin:28px 0 8px;color:var(--t-head)}
html body .cs-site .cs-page__archive-description :is(p,ul,ol){font-size:var(--ts-fs-17);line-height:1.65;color:var(--t-text);max-width:var(--ts-measure)}
html body .cs-site .cs-page__archive-description a:not([class]){color:var(--t-link);font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em}
html body .cs-site .cs-entry__outer,html body .cs-site .cs-page__archive-description :is(.ts-card,.ts-hubs li,[class*=tile]){border:1px solid var(--t-line);border-radius:var(--ts-r-lg);box-shadow:var(--ts-shadow-1);background:var(--t-card);overflow:hidden}
html body .cs-site .cs-entry__title,html body .cs-site .cs-entry__title a{font-weight:var(--ts-fw-strong);letter-spacing:-.015em;color:var(--t-head)}
/* radii: one large radius for blocks */
html body .cs-site :is(.ts-toc,.ts-lead,.ts-quick,.ts-updated,.ts-short,.ts-sources,.ts-legal,.ts-cluster,.ts-faq details,.ts-input,.ts-input input,.ts-faq-item){border-radius:var(--ts-r-lg)}
html body .cs-site .cs-main-content .entry-content > table:not(.ts-stack){border-radius:var(--ts-r-lg);overflow-x:auto}
html body.home .cs-site :is(.ts-faq details,.ts-faq-item){border-radius:var(--ts-r-lg)}
html body .cs-site p.ts-lead{max-width:72ch}
html body .cs-site .ts-short strong{font-size:.8125rem}
/* links on tint need the darker blue (AA) */
html body .cs-site .cs-main-content .entry-content :is(.ts-lead,.ts-quick,.ts-toc,.ts-updated) a{color:var(--t-link-on-tint)}
/* drawer sub-menu contrast on navy */
html body .cs-offcanvas li.ts-nav-calc .sub-menu a{color:#c2cee2}
/* cookie banner vs scroll-top */
body:has(#ts-notice:not([hidden])) .cs-scroll-top{display:none}
/* calculator result: reserve space, no CLS */
html body .cs-site .ts-calc .ts-result{min-height:22rem}
@media (min-width:768px){html body .cs-site .ts-calc .ts-result{min-height:18rem}}
/* TOC compact variant (markup step later) */
html body .cs-site .ts-toc--collapsible{padding:0}
html body .cs-site .ts-toc--collapsible > summary{min-height:var(--ts-tap);display:flex;align-items:center;padding:0 16px;cursor:pointer;font-weight:var(--ts-fw-strong)}
html body .cs-site .ts-toc--collapsible > :not(summary){padding:0 16px 12px}
@media (max-width:767.98px){
  /* swipe hint: scroll shadows on scrollable tables */
  html body .cs-site .cs-main-content .entry-content > table:not(.ts-stack){
    background:linear-gradient(to right,var(--t-card) 30%,transparent) left/40px 100% no-repeat local,linear-gradient(to left,var(--t-card) 30%,transparent) right/40px 100% no-repeat local,linear-gradient(to right,rgba(10,27,51,.22),transparent) left/14px 100% no-repeat scroll,linear-gradient(to left,rgba(10,27,51,.22),transparent) right/14px 100% no-repeat scroll}
}
@media (max-width:640px){
  html body.home .cs-site :is(.ts-badge,.ts-now__k,.ts-now small,.ts-chips__lbl,.ts-hero__card-k,.ts-hero__card-src,label){font-size:13px}
  html body.home .cs-site :is(.ts-hero__card-links a,.ts-side-all,.ts-prov__all,.ts-src,.ts-now a,.ts-fshare__b){display:inline-flex;align-items:center;min-height:var(--ts-tap)}
  html body .cs-site :is(input[type=checkbox],input[type=radio]):not([name=ts-tab]){width:24px;height:24px;margin:10px}
  html body .cs-site label:has(> input[type=checkbox]),html body .cs-site label:has(> input[type=radio]){display:inline-flex;align-items:center;min-height:var(--ts-tap)}
}
html body .cs-offcanvas :is(.menu,.widget_nav_menu,.sub-menu) a{display:flex;align-items:center;min-height:var(--ts-tap)}
@media (max-width:640px){
  html body.home .cs-site .ts-tabs > input[type=radio]{width:24px;height:24px}
  html body.home .cs-site :is(small,em,b,span,h3,.ts-live__txt):not(.ts-big){font-size:max(13px,var(--ts-home-fs,13px))}
  html body.home .cs-site :is(li > a,.ts-trustline a,.ts-wrap > a){display:inline-flex;align-items:center;min-height:var(--ts-tap)}
}
/* ---------- 24. A11y/forms QA ---------- */
html body .cs-site .ts-result .ts-btn--ghost,html body .cs-site .ts-result a.ts-btn--ghost{color:#fff;border-color:rgba(255,255,255,.55);background:transparent}
html body .cs-site .ts-result p.ts-note,html body .cs-site .ts-result .ts-note{color:#a9b8d0}
html body .cs-site :is(.ts-card,.ts-hubs,.ts-list) a:focus-visible{outline:3px solid #0b4fd1!important;outline-offset:2px}
html body .cs-site :is(.ts-hubs,.ts-list) li:focus-within{box-shadow:0 0 0 3px #0b4fd1}
body[data-scheme="dark"] .cs-site :is(.ts-card,.ts-hubs,.ts-list) a:focus-visible{outline-color:#8db6ff!important}
html body #ts-notice button:focus-visible,html body #ts-notice a:focus-visible{outline:3px solid #0a1b33;outline-offset:2px;box-shadow:0 0 0 5px #fff}
html body .cs-site .cs-header__offcanvas-toggle{min-width:var(--ts-tap);min-height:var(--ts-tap);display:inline-flex;align-items:center;justify-content:center}
html body .cs-site .ts-form-status{border-radius:var(--ts-r-md);padding:10px 14px;font-weight:600;border:1px solid var(--t-tint-line);background:var(--t-tint);color:var(--t-link-on-tint)}
html body .cs-site .ts-form-status:is(.is-error,.ts-form-status--error,.error,[data-state=error],[role=alert]){background:#fdecec;border-color:#e5a3a3;color:#8a1c1c}
body[data-scheme="dark"] .cs-site .ts-form-status:is(.is-error,.ts-form-status--error,.error,[data-state=error],[role=alert]){background:#3a1618;border-color:#7a2f33;color:#ffb4b4}
/* ---------- 21. Dark gap rules (generated by ts-theme-work/dark.py) ---------- */
body[data-scheme="dark"] .ts-person{background:var(--t-card);border-color:var(--t-line)}
body[data-scheme="dark"] .ts-person h3{color:var(--t-head)}
body[data-scheme="dark"] .ts-person__office,body[data-scheme="dark"] .ts-person__office a{color:var(--t-link)}
body[data-scheme="dark"] .ts-person__since,body[data-scheme="dark"] .ts-person__ph figcaption{color:var(--t-muted)}
body[data-scheme="dark"] .ts-person__role{color:var(--t-ink)}
body[data-scheme="dark"] .ts-person__ph img{background:var(--t-surface);border-color:var(--t-line)}
body[data-scheme="dark"] .cs-header__offcanvas-toggle,body[data-scheme="dark"] .cs-header__offcanvas-toggle .cs-icon{color:var(--t-ink)}
body[data-scheme="dark"] .cs-search .cs-icon-x{color:var(--t-muted)}
body[data-scheme="dark"] .cs-offcanvas{background:var(--t-surface)}
@media (prefers-color-scheme:dark){
body[data-scheme="auto"] .ts-person,body:not([data-scheme]) .ts-person{background:var(--t-card);border-color:var(--t-line)}
body[data-scheme="auto"] .ts-person h3,body:not([data-scheme]) .ts-person h3{color:var(--t-head)}
body[data-scheme="auto"] .ts-person__office,body[data-scheme="auto"] .ts-person__office a,body:not([data-scheme]) .ts-person__office,body:not([data-scheme]) .ts-person__office a{color:var(--t-link)}
body[data-scheme="auto"] .ts-person__since,body[data-scheme="auto"] .ts-person__ph figcaption,body:not([data-scheme]) .ts-person__since,body:not([data-scheme]) .ts-person__ph figcaption{color:var(--t-muted)}
body[data-scheme="auto"] .ts-person__role,body:not([data-scheme]) .ts-person__role{color:var(--t-ink)}
body[data-scheme="auto"] .ts-person__ph img,body:not([data-scheme]) .ts-person__ph img{background:var(--t-surface);border-color:var(--t-line)}
body[data-scheme="auto"] .cs-header__offcanvas-toggle,body[data-scheme="auto"] .cs-header__offcanvas-toggle .cs-icon,body:not([data-scheme]) .cs-header__offcanvas-toggle,body:not([data-scheme]) .cs-header__offcanvas-toggle .cs-icon{color:var(--t-ink)}
body[data-scheme="auto"] .cs-search .cs-icon-x,body:not([data-scheme]) .cs-search .cs-icon-x{color:var(--t-muted)}
body[data-scheme="auto"] .cs-offcanvas,body:not([data-scheme]) .cs-offcanvas{background:var(--t-surface)}
}

/* 25. dark theme QA fixes */
body[data-scheme="dark"] .cs-header__nav-inner>li>a>span>span{color:#e4ebf7}
body[data-scheme="dark"] .ts-updated__sep{color:#b9c8e0}
body[data-scheme="dark"] nav.ts-tabbar>a.is-active>span,body[data-scheme="dark"] nav.ts-tabbar>a[aria-current]>span{color:#7fa8ff}
@media (prefers-color-scheme:dark){
body[data-scheme="auto"] .cs-header__nav-inner>li>a>span>span,body:not([data-scheme]) .cs-header__nav-inner>li>a>span>span{color:#e4ebf7}
body[data-scheme="auto"] .ts-updated__sep,body:not([data-scheme]) .ts-updated__sep{color:#b9c8e0}
body[data-scheme="auto"] nav.ts-tabbar>a>span,body:not([data-scheme]) nav.ts-tabbar>a>span{color:#7fa8ff}
}

/* 26. mega menu (CSS only, same markup) and 64px mobile header */
@media (min-width:992px){
html body .cs-site .cs-header__nav-inner>li.menu-item-has-children{position:relative}
html body .cs-site .cs-header__nav-inner>li.menu-item-has-children>.sub-menu{
  position:absolute;left:-24px;right:auto;top:100%;width:min(720px,92vw);min-width:0;max-width:none;margin:0;padding:20px;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 16px;
  background:var(--t-card);border:1px solid var(--t-line);border-radius:0 0 var(--ts-r-lg,18px) var(--ts-r-lg,18px);box-shadow:0 18px 40px rgba(10,27,51,.12);
  opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .16s ease,transform .16s ease,visibility 0s linear .16s;z-index:60}
html body .cs-site .cs-header__nav-inner>li.ts-nav-guides>.sub-menu{left:-140px}
html body .cs-site .cs-header__nav-inner>li.menu-item-has-children:nth-child(n+3)>.sub-menu{left:auto;right:-24px;width:min(560px,92vw);grid-template-columns:repeat(2,minmax(0,1fr))}
html body .cs-site .cs-header__nav-inner>li.menu-item-has-children:is(:hover,:focus-within)>.sub-menu{opacity:1;visibility:visible;transform:none;transition-delay:0s}
html body .cs-site .cs-header__nav-inner>li>.sub-menu>li{margin:0;padding:0;list-style:none;width:auto;float:none}
html body .cs-site .cs-header__nav-inner>li>.sub-menu>li>a{display:flex;align-items:center;width:100%;min-width:0;min-height:var(--ts-tap,44px);padding:6px 10px;border-radius:10px;color:var(--t-head);font-weight:600;font-size:.9375rem;line-height:1.3;white-space:normal}
html body .cs-site .cs-header__nav-inner>li>.sub-menu>li>a:is(:hover,:focus-visible){background:var(--t-tint,#eef3ff);color:var(--t-link-on-tint,#0b49d1)}
}
@media (max-width:991.98px){
html body .cs-site .cs-header__inner-mobile{min-height:64px;height:64px}
html body .cs-site .cs-header__inner-mobile .ts-logo{width:auto;height:32px}
html body .cs-site{--cs-header-height:64px}
}

/* 27. compact premium footer */
html body .cs-site .cs-footer .ts-foot{gap:20px 32px;padding:32px 0 20px}
html body .cs-site .cs-footer .ts-foot h3{margin:0 0 10px;font-size:.75rem;letter-spacing:.14em}
html body .cs-site .cs-footer .ts-foot li{margin:0;font-size:.875rem}
html body .cs-site .cs-footer .ts-foot-bottom{display:grid;grid-template-columns:1fr auto;gap:10px 24px;align-items:center;padding:16px 0 22px}
html body .cs-site .cs-footer .ts-foot-links{margin:0;display:flex;flex-wrap:wrap;gap:0 20px}
html body .cs-site .cs-footer .ts-foot-links a{margin:0}
html body .cs-site .cs-footer .ts-foot-bottom .ts-scheme-foot{grid-column:2;grid-row:1;justify-self:end}
html body .cs-site .cs-footer .ts-foot-legal{grid-column:1 / -1;margin:0;max-width:112ch;font-size:.75rem;line-height:1.55;color:#8093b1}
html body .cs-site .cs-footer .ts-foot-legal strong{color:#b7c4da;font-weight:650}
html body .cs-site .cs-footer .ts-foot-legal a{display:inline;padding:0;color:#b7c4da;text-decoration:underline;text-underline-offset:2px}
html body .cs-site .cs-footer .ts-foot-copy{display:block;margin-top:6px;color:#8093b1}
@media (min-width:768px){
html body .cs-site .cs-footer .ts-foot{grid-template-columns:1fr 1fr 1fr 1.5fr}
html body .cs-site .cs-footer :is(.ts-foot a,.ts-foot-links a){padding:3px 0;min-height:0}
html body .cs-site .cs-footer .ts-foot>div:last-child ul{columns:2;column-gap:24px}
}
@media (max-width:767.98px){
html body .cs-site .cs-footer .ts-foot{grid-template-columns:repeat(2,minmax(0,1fr));padding:24px 0 12px}
html body .cs-site .cs-footer .ts-foot-bottom{grid-template-columns:1fr}
html body .cs-site .cs-footer .ts-foot-bottom .ts-scheme-foot{grid-column:1;grid-row:auto;justify-self:start}
}
/* 27b. footer: tighter */
html body .cs-site .cs-footer .ts-foot-legal{max-width:none}
@media (min-width:768px){
html body .cs-site .cs-footer .ts-foot{padding:22px 0 12px;gap:12px 32px}
html body .cs-site .cs-footer .ts-foot h3{margin-bottom:6px}
html body .cs-site .cs-footer :is(.ts-foot a,.ts-foot-links a){padding:2px 0;line-height:1.35}
html body .cs-site .cs-footer .ts-foot-bottom{padding:12px 0 16px;gap:8px 24px}
html body .cs-site .cs-footer .ts-foot-copy{display:inline;margin:0 0 0 .5em}
}

/* 28. footer share bar: share left, colour switch right; legal text 20% smaller */
html body .cs-site .cs-footer .ts-foot-legal{font-size:.6rem;line-height:1.6}
html body .cs-site .ts-fshare__in--wide{padding-block:12px;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:10px 20px}
html body .cs-site .ts-fshare__in--wide .ts-fshare__btns{flex:0 1 auto}
html body .cs-site .ts-fshare__in--wide .ts-scheme-foot{margin-left:auto;flex:0 0 auto;display:inline-flex;align-items:center;min-height:0}
html body .cs-site .cs-footer .ts-foot-bottom{grid-template-columns:1fr}
@media (max-width:767.98px){
html body .cs-site .ts-fshare__in--wide{flex-direction:row;align-items:center;justify-content:space-between}
html body .cs-site .ts-fshare__in--wide .ts-fshare__lead{flex:1 0 100%;margin:0}
html body .cs-site .ts-fshare__in--wide .ts-fshare__btns{flex:1 1 auto;min-width:0;flex-wrap:wrap}
}

/* 29. footer on phones: denser (targets stay >= 32px) */
@media (max-width:767.98px){
html body .cs-site .cs-footer :is(.ts-foot a,.ts-foot-links a){min-height:32px;padding:4px 0;font-size:.875rem}
html body .cs-site .cs-footer .ts-foot{gap:14px 20px;padding:20px 0 8px}
html body .cs-site .cs-footer .ts-foot>div:nth-child(n+3){grid-column:1 / -1}
html body .cs-site .cs-footer .ts-foot>div:nth-child(n+3) ul{columns:2;column-gap:20px}
html body .cs-site .cs-footer .ts-foot-links{gap:0 18px}
html body .cs-site .cs-footer .ts-foot-bottom{padding:12px 0 18px}
}

/* 30. phone footer accordion (only when the script added .ts-foot--acc) */
@media (max-width:767.98px){
html body .cs-site .cs-footer .ts-foot--acc{display:block;padding:8px 0 0}
html body .cs-site .cs-footer .ts-foot--acc>div{border-bottom:1px solid rgba(255,255,255,.1)}
html body .cs-site .cs-footer .ts-foot--acc>div>h3{display:flex;align-items:center;justify-content:space-between;margin:0;min-height:48px;cursor:pointer}
html body .cs-site .cs-footer .ts-foot--acc>div>h3::after{content:"";width:8px;height:8px;border-right:2px solid #c9a55c;border-bottom:2px solid #c9a55c;transform:rotate(45deg);transition:transform .18s ease;margin-right:4px}
html body .cs-site .cs-footer .ts-foot--acc>div.is-open>h3::after{transform:rotate(-135deg)}
html body .cs-site .cs-footer .ts-foot--acc>div:not(.is-open)>ul{display:none}
html body .cs-site .cs-footer .ts-foot--acc>div>ul{padding:0 0 12px;columns:2;column-gap:20px}
html body .cs-site .cs-footer .ts-foot-legal.is-clamped{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
html body .cs-site .cs-footer .ts-foot-more{background:none;border:0;padding:6px 0;margin:0;min-height:32px;color:#b7c4da;font:inherit;font-size:.75rem;text-decoration:underline;text-underline-offset:2px;cursor:pointer;justify-self:start}
}
@media (min-width:768px){html body .cs-site .cs-footer .ts-foot-more{display:none}}

/* 31 phone: keep legal notice legible */
@media (max-width:767px){html body .cs-site .cs-footer .ts-foot-legal{font-size:.68rem;line-height:1.6}}

/* 32 article template: calmer heading scale, comfortable measure */
html body .cs-site .entry-content h2{font-size:clamp(1.45rem,1.2rem + 1vw,1.85rem);line-height:1.25;margin-top:2.6rem;margin-bottom:.9rem;letter-spacing:-.01em}
html body .cs-site .entry-content h3{font-size:clamp(1.15rem,1.05rem + .5vw,1.35rem);line-height:1.3;margin-top:1.8rem}
html body .cs-site .entry-content>p,html body .cs-site .entry-content>ul,html body .cs-site .entry-content>ol{max-width:68ch}

/* 33 form field errors, calculator jump link */
.ts-field-err{display:block;margin-top:.3rem;color:#b42318;font-size:.85rem;line-height:1.4}
form[data-ts-contact] [aria-invalid="true"]{border-color:#b42318!important;box-shadow:0 0 0 1px #b42318}
body[data-scheme="dark"] .ts-field-err{color:#ff9a8f}
body[data-scheme="dark"] form[data-ts-contact] [aria-invalid="true"]{border-color:#ff9a8f!important;box-shadow:0 0 0 1px #ff9a8f}
.ts-jump{display:none}
@media (max-width:767px){html body .cs-site a.ts-jump{display:flex;align-items:center;justify-content:center;min-height:48px;margin:0 0 1.4rem;padding:0 1.1rem;border-radius:12px;background:#2a5bd7;color:#fff;font-weight:650;text-decoration:none}html body .cs-site a.ts-jump:focus-visible{outline:3px solid #7fa8ff;outline-offset:2px}}

/* 34 */
.cs-site-inner{overflow-x:clip}
.cs-entry__header-standard{position:relative;isolation:isolate;padding:40px 0 36px;margin-bottom:1.5rem}
.cs-entry__header-standard::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:50%;width:100vw;margin-left:-50vw;background:radial-gradient(900px 420px at 88% -12%,rgba(26,98,255,.5),transparent 62%),radial-gradient(600px 300px at 0% 110%,rgba(201,165,92,.14),transparent 60%),linear-gradient(165deg,#0a1b33 0%,#0d2447 100%)}
.cs-entry__header-standard::after{content:"";position:absolute;z-index:-1;bottom:0;left:50%;width:100vw;margin-left:-50vw;height:1px;background:linear-gradient(90deg,transparent,rgba(201,165,92,.55),transparent)}
.cs-entry__header-standard .cs-entry__title,.cs-entry__header-standard .cs-entry__title span{color:#fff;font-size:clamp(1.9rem,4.4vw,3rem);font-weight:800;letter-spacing:-.035em;line-height:1.08;margin:0}
@media (max-width:767px){.cs-entry__header-standard{padding:28px 0 26px;margin-bottom:1rem}}

/* 35 */
.cs-entry__header-standard{max-width:none;width:100%}
.cs-entry__header-standard .cs-entry__title{max-width:820px}
.cs-entry__header-standard .cs-entry__post-meta,.cs-entry__header-standard .cs-entry__post-meta *{color:#b9c8e0}
.cs-entry__header-standard .cs-entry__title{color:#fff!important}
