/*
 * ToolFlowCo visual contract 3.2.2
 * Scope: public Site Studio shell only. No WordPress-admin / third-party reset.
 * Earlier layout sheets remain for backward-compatible markup. Their visual
 * aliases are reconciled here; !important is limited to properties already
 * forced by those sheets or by WordPress's saved block styles.
 */
body.tfc-studio-body.tfc-unified-theme {
  --tfc-ui-navy: #102a43;
  --tfc-ui-blue: #1769d2;
  --tfc-ui-blue-hover: #0f55b3;
  --tfc-ui-text: #243b53;
  --tfc-ui-muted: #526579;
  --tfc-ui-border: #d5e0eb;
  --tfc-ui-soft: #f4f7fb;
  --tfc-ui-tint: #eaf2fd;
  --tfc-ui-white: #fff;
  --tfc-ui-radius: 12px;
  --tfc-ui-button-radius: 8px;
  --tfc-ui-shadow: 0 8px 26px rgba(16,42,67,.06);
  --tfc-ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --tfc-header-offset: 88px;
  --tfc-admin-offset: 0px;
  --tfc-navy: var(--tfc-ui-navy);
  --tfc-navy-2: #183f63;
  --tfc-primary: var(--tfc-ui-blue);
  --tfc-blue: var(--tfc-ui-blue);
  --tfc-blue-dark: var(--tfc-ui-blue-hover);
  --tfc-ink: var(--tfc-ui-text);
  --tfc-muted: var(--tfc-ui-muted);
  --tfc-soft: var(--tfc-ui-soft);
  --tfc-soft-blue: var(--tfc-ui-tint);
  --tfc-border: var(--tfc-ui-border);
  --tfc-radius: var(--tfc-ui-radius);
  --tfc-radius-sm: var(--tfc-ui-button-radius);
  --tfc-shadow-sm: var(--tfc-ui-shadow);
  --tfc320-navy: var(--tfc-ui-navy);
  --tfc320-ink: var(--tfc-ui-text);
  --tfc320-muted: var(--tfc-ui-muted);
  --tfc320-teal: var(--tfc-ui-blue); /* Legacy variable name; actions are blue. */
  --tfc320-line: var(--tfc-ui-border);
  --tfc320-soft: var(--tfc-ui-soft);
  --tfc320-radius: var(--tfc-ui-radius);
  font-family: var(--tfc-ui-font) !important;
  font-size: 16px;
  line-height: 1.7;
  min-width: 0;
  background: var(--tfc-ui-white) !important;
  color: var(--tfc-ui-text) !important;
}
/* Old page-local token definitions must not create a second brand palette. */
body.tfc-unified-theme :is(.tfc-page,.tfc320-site,.tfc-block-content,.tfc-inventory-hub-output) {
  --tfc-navy: var(--tfc-ui-navy) !important;
  --tfc-blue: var(--tfc-ui-blue) !important;
  --tfc-blue-dark: var(--tfc-ui-blue-hover) !important;
  --tfc-muted: var(--tfc-ui-muted) !important;
  --tfc-border: var(--tfc-ui-border) !important;
  --tfc-soft: var(--tfc-ui-soft) !important;
  font-family: var(--tfc-ui-font);
  line-height: 1.7;
}
body.tfc-unified-theme :is(.tfc-container,.tfc-reading-container) { min-width: 0; }
body.tfc-unified-theme .tfc-container {
  width: min(calc(100% - 48px), var(--tfc-container,1180px));
  max-width: var(--tfc-container,1180px);
  margin-inline: auto;
}
body.tfc-studio-body.tfc-unified-theme .tfc-studio-blocks-output .tfc-container {
  width: min(calc(100% - 48px), var(--tfc-container,1180px));
}
body.tfc-unified-theme :is(.tfc-section,.tfc320-section) { padding-block: clamp(36px,4.5vw,64px); }
body.tfc-unified-theme #tfc-main { min-width: 0; }
body.tfc-unified-theme #tfc-main :is(section,[id],h2,h3),
body.tfc-unified-theme .tfc-form-wrap { scroll-margin-top: var(--tfc-header-offset); }
body.tfc-studio-body.tfc-unified-theme #tfc-main h1 {
  font: 750 clamp(30px,3.4vw,44px)/1.16 var(--tfc-ui-font) !important;
  letter-spacing: -.028em;
  color: var(--tfc-ui-navy) !important;
  margin: 0 0 22px !important;
  overflow-wrap: break-word;
  text-wrap: balance;
}
body.tfc-studio-body.tfc-unified-theme.tfc-studio-role-home #tfc-main h1 {
  font-size: clamp(32px,4vw,50px) !important;
  max-width: 22ch;
}
body.tfc-studio-body.tfc-unified-theme #tfc-main h2 {
  font: 700 clamp(25px,2.65vw,34px)/1.25 var(--tfc-ui-font) !important;
  letter-spacing: -.023em;
  margin: 0 0 18px !important;
  color: var(--tfc-ui-navy) !important;
  overflow-wrap: break-word;
  text-wrap: balance;
}
body.tfc-studio-body.tfc-unified-theme #tfc-main h3 {
  font: 700 21px/1.35 var(--tfc-ui-font) !important;
  letter-spacing: -.012em;
  margin: 0 0 12px !important;
  color: var(--tfc-ui-navy) !important;
  overflow-wrap: break-word;
}
body.tfc-unified-theme #tfc-main p { line-height: 1.7; }
body.tfc-unified-theme :is(.tfc-hero-lead,.tfc320-lead,.tfc-lead) {
  color: var(--tfc-ui-muted) !important;
  font-size: clamp(17px,1.5vw,19px) !important;
  line-height: 1.7 !important;
  max-width: 68ch;
  margin-bottom: 22px;
}
body.tfc-unified-theme :is(.tfc-kicker,.tfc320-eyebrow,.tfc-menu-label) {
  color: var(--tfc-ui-blue);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: .085em;
  text-transform: uppercase;
}
body.tfc-unified-theme #tfc-main :is(.tfc-kicker,.tfc320-eyebrow) { margin: 0 0 12px !important; }
body.tfc-unified-theme :is(.tfc-home-hero,.tfc-page-hero,.tfc-product-hero,.tfc320-home-hero,.tfc320-page-hero,.tfc320-product-hero) {
  background: linear-gradient(120deg,#f1f6fd 0%,#fff 80%) !important;
  border-bottom: 1px solid var(--tfc-ui-border);
  padding: clamp(34px,4.5vw,64px) 0 !important;
}
body.tfc-unified-theme :is(.tfc-home-hero-grid,.tfc-product-hero-grid,.tfc320-hero-grid) { gap: clamp(24px,3vw,42px); align-items: start; }
body.tfc-unified-theme :is(.tfc-home-hero-grid,.tfc-product-hero-grid,.tfc320-hero-grid,.tfc-two-column,.tfc320-two,.tfc-detail-columns) > * { min-width: 0; }
body.tfc-unified-theme :is(.tfc-product-hero-copy,.tfc-home-hero-copy) { min-width:0; }
body.tfc-unified-theme .tfc-compact-benefits { margin: 0 0 24px !important; gap: 10px; }
body.tfc-unified-theme .tfc-compact-benefits li { line-height: 1.6; }

/* All public action aliases share one size, palette and interaction contract. */
body.tfc-studio-body.tfc-unified-theme :is(a,button,input):is(.tfc-button,.tfc-btn,.tfc320-button,.wp-element-button,.wp-block-button__link),
body.tfc-studio-body.tfc-unified-theme .tfc-contact-form :is(button[type=submit],input[type=submit]),
body.tfc-studio-body.tfc-unified-theme .tfc-consultancy-form :is(button[type=submit],input[type=submit]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  max-width: 100%;
  height: auto;
  padding: 12px 20px !important;
  border: 1px solid var(--tfc-ui-blue) !important;
  border-radius: var(--tfc-ui-button-radius) !important;
  background: var(--tfc-ui-blue) !important;
  color: #fff !important;
  font: 650 15px/1.4 var(--tfc-ui-font) !important;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none !important;
  text-transform: none;
  white-space: normal;
  overflow-wrap: break-word;
  cursor: pointer;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color .16s ease,border-color .16s ease,color .16s ease;
}
body.tfc-studio-body.tfc-unified-theme :is(a,button,input):is(.tfc-button,.tfc-btn,.tfc320-button,.wp-element-button,.wp-block-button__link):is(:hover,:active) {
  background: var(--tfc-ui-blue-hover) !important;
  border-color: var(--tfc-ui-blue-hover) !important;
  color: #fff !important;
  transform: none !important;
}
body.tfc-studio-body.tfc-unified-theme :is(a,button):is(.tfc-button-secondary,.tfc-btn-secondary,.tfc320-button-secondary,.tfc-button-light),
body.tfc-studio-body.tfc-unified-theme .wp-block-button:is(.tfc-button-secondary,.is-style-outline) > a {
  background: #fff !important;
  border-color: #a5b7ca !important;
  color: var(--tfc-ui-navy) !important;
}
body.tfc-studio-body.tfc-unified-theme :is(a,button):is(.tfc-button-secondary,.tfc-btn-secondary,.tfc320-button-secondary,.tfc-button-light):is(:hover,:active),
body.tfc-studio-body.tfc-unified-theme .wp-block-button:is(.tfc-button-secondary,.is-style-outline) > a:is(:hover,:active) {
  background: var(--tfc-ui-tint) !important;
  border-color: var(--tfc-ui-blue) !important;
  color: var(--tfc-ui-navy) !important;
}
body.tfc-studio-body.tfc-unified-theme :is(.tfc-button,.tfc-btn,.tfc320-button,.wp-element-button):is(:disabled,[aria-disabled=true]) {
  background: #e3eaf2 !important;
  color: #516477 !important;
  border-color: #c9d5e2 !important;
  cursor: not-allowed;
  opacity: 1;
}
body.tfc-unified-theme .wp-block-button { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
body.tfc-unified-theme :is(.tfc-actions,.tfc-button-row,.tfc-hero-actions,.tfc320-actions,.wp-block-buttons.tfc-actions) { gap: 12px; align-items: center; }
body.tfc-unified-theme :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
  outline: 3px solid var(--tfc-ui-blue) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 3px #fff !important;
}
body.tfc-unified-theme :is(.tfc-prose,.tfc-article-content,.tfc321-reviewed-section) a:not(.tfc-button):not(.tfc320-button):not(.wp-block-button__link) {
  color: var(--tfc-ui-blue-hover);
  text-decoration: underline;
  text-underline-offset: .18em;
}
body.tfc-unified-theme :is(.tfc320-site,.tfc320-section) a:not(.tfc320-button) { color: var(--tfc-ui-blue-hover); }
body.tfc-unified-theme a:is(.tfc-card-link,.tfc-text-link) { color: var(--tfc-ui-blue-hover); }

/* Header and navigation: one breakpoint, not competing 920/980/1080 rules. */
body.tfc-unified-theme .tfc-site-header { height: auto; min-height: 76px; top: var(--tfc-admin-offset); background: #fff; backdrop-filter: none; }
body.tfc-unified-theme .tfc-header-inner { min-height: 76px; gap: 20px; }
body.tfc-unified-theme .tfc-primary-nav { gap: 16px; }
body.tfc-unified-theme .tfc-primary-nav > ul { gap: 1px; }
body.tfc-unified-theme .tfc-primary-nav > ul > li > a { font-size: 14px; font-weight: 600; min-height: 44px; padding: 10px 8px; color: var(--tfc-ui-text); }
body.tfc-unified-theme .tfc-has-submenu { position: relative; }
body.tfc-unified-theme .tfc-has-submenu > button { width: 32px; height: 44px; margin-left: -3px; border-radius: 6px; background: transparent; }
body.tfc-studio-body.tfc-unified-theme .tfc-primary-nav .tfc-mega-menu {
  display: none !important;
  visibility: hidden;
  opacity: 0;
  transform: none;
  pointer-events: none;
  top: 100%;
  padding: 22px;
  border: 1px solid var(--tfc-ui-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(16,42,67,.12);
  background: #fff;
}
body.tfc-studio-body.tfc-unified-theme .tfc-primary-nav .tfc-has-submenu.is-open > .tfc-mega-menu,
body.tfc-studio-body.tfc-unified-theme:not(.tfc-nav-ready) .tfc-has-submenu:is(:hover,:focus-within) > .tfc-mega-menu {
  display: grid !important; visibility: visible; opacity: 1; pointer-events: auto;
}
body.tfc-unified-theme .tfc-primary-nav .tfc-mega-menu a { min-height: 44px; padding: 10px 12px; border-radius: 6px; line-height: 1.45; font-size: 14px; }
body.tfc-studio-body.tfc-unified-theme .tfc-primary-nav .tfc-mega-menu a:is(:hover,:focus-visible) { background: var(--tfc-ui-tint) !important; color: var(--tfc-ui-blue-hover) !important; }
body.tfc-unified-theme .tfc-primary-nav .tfc-has-submenu > button[aria-expanded=true]::after { transform: rotate(225deg); }
body.tfc-unified-theme .tfc-brand-name { color: var(--tfc-ui-navy); font-weight: 750; letter-spacing: -.035em; }
body.tfc-unified-theme .tfc-menu-toggle { display: none; }

/* Reusable surfaces, readable cards and evenly aligned actions. */
body.tfc-unified-theme :is(.tfc-product-card,.tfc-article-card,.tfc-solution-card,.tfc320-card,.tfc320-route,.tfc-feature-panel,.tfc-compatibility-card,.tfc-about-panel,.tfc320-panel,.tfc321-featured .tfc320-card) {
  border: 1px solid var(--tfc-ui-border);
  border-radius: var(--tfc-ui-radius) !important;
  background: #fff;
  box-shadow: var(--tfc-ui-shadow);
  min-width: 0;
}
body.tfc-unified-theme :is(.tfc-product-card,.tfc-article-card,.tfc320-card):hover { transform: none !important; border-color: #a9bfd6; box-shadow: 0 10px 28px rgba(16,42,67,.09); }
body.tfc-unified-theme :is(.tfc-product-card-body,.tfc-article-card-body,.tfc320-card-body) { padding: 24px; }
body.tfc-unified-theme #tfc-main :is(.tfc-product-card,.tfc-article-card,.tfc320-card,.tfc-article-sidebar,.tfc-related-sidebar) :is(h2,h3) {
  font-size: 20px !important; line-height: 1.4 !important; letter-spacing: -.012em; margin-bottom: 12px !important;
}
body.tfc-unified-theme :is(.tfc-product-card,.tfc320-card) h3 a { color: var(--tfc-ui-navy) !important; }
body.tfc-unified-theme :is(.tfc-product-card,.tfc-article-card,.tfc320-card) p { font-size: 15px; line-height: 1.7; }
body.tfc-unified-theme .tfc-product-card-top { flex-wrap: wrap; gap: 12px; }
body.tfc-unified-theme .tfc-product-card-top .tfc320-price { align-items: flex-start; text-align: left; }
body.tfc-unified-theme .tfc-product-card-top .tfc320-price small { font-size: 12px; }
body.tfc-unified-theme :is(.tfc320-price small,.tfc-purchase-note,.tfc-compat-note) { line-height: 1.6; }
body.tfc-unified-theme .tfc320-purchase { padding: 24px; border: 1px solid var(--tfc-ui-border); border-radius: 12px; background: #fff; box-shadow: var(--tfc-ui-shadow); }
body.tfc-unified-theme .tfc320-purchase > .tfc320-button { width: 100%; }
body.tfc-unified-theme .tfc320-price strong { color: var(--tfc-ui-navy); font-size: 26px; }
body.tfc-unified-theme .tfc320-purchase-compat { font-size: 14px; line-height: 1.7; border-top: 1px solid var(--tfc-ui-border); padding-top: 16px; margin-top: 18px; }
body.tfc-unified-theme :is(.tfc-platform-tag,.tfc-platform,.tfc-badge,.tfc-tag,.tfc-product-platform) { border-radius: 6px; }
body.tfc-unified-theme .tfc-feature-grid { gap:12px; background:transparent; border:0; }
body.tfc-unified-theme .tfc-feature-grid > div { border:1px solid var(--tfc-ui-border); border-radius:8px; min-height:0; padding:18px; background:#fff; }
body.tfc-unified-theme .tfc-feature-grid > div > span { color: var(--tfc-ui-blue); }
body.tfc-unified-theme .tfc-feature-grid strong { color:var(--tfc-ui-text); font-weight:650; font-size:16px; line-height:1.6; }
body.tfc-unified-theme .tfc-feature-grid p { margin:0; }
body.tfc-unified-theme .tfc-proof-strip span { color:var(--tfc-ui-muted); font-size:14px; }
body.tfc-unified-theme :is(.tfc-product-subnav,.tfc320-subnav) { top: calc(var(--tfc-header-offset) - 12px); background: #fff; border-block: 1px solid var(--tfc-ui-border); }
body.tfc-unified-theme :is(.tfc-product-subnav,.tfc320-subnav) a { min-height: 44px; line-height: 1.4; padding: 12px 0; font-size: 14px; color: var(--tfc-ui-text); }
body.tfc-unified-theme :is(.tfc-product-subnav,.tfc320-subnav) a:hover { color: var(--tfc-ui-blue-hover); }

/* Forms, filters and feedback use the same control dimensions. */
body.tfc-unified-theme #tfc-main :is(input[type=text],input[type=email],input[type=search],input[type=tel],input[type=url],input[type=number],select,textarea) {
  width: 100%; max-width: 100%; min-width: 0; min-height: 46px;
  border: 1px solid #a6b7ca; border-radius: 8px; background: #fff;
  color: var(--tfc-ui-text); padding: 12px 14px; box-shadow: none;
  font: 400 16px/1.5 var(--tfc-ui-font);
}
body.tfc-unified-theme #tfc-main :is(input,textarea)::placeholder { color: #65778a; opacity: 1; }
body.tfc-unified-theme #tfc-main textarea { min-height: 160px; resize: vertical; }
body.tfc-unified-theme #tfc-main label { color: var(--tfc-ui-text); line-height: 1.6; }
body.tfc-unified-theme #tfc-main :is(input[type=checkbox],input[type=radio]) { accent-color: var(--tfc-ui-blue); width: 18px; height: 18px; flex: 0 0 18px; }
body.tfc-unified-theme .tfc-filter-buttons { gap: 8px; }
body.tfc-unified-theme .tfc-filter-buttons button { min-height: 44px; padding: 9px 14px; border: 1px solid #a6b7ca; border-radius: 8px; background: #fff; color: var(--tfc-ui-text); font-size: 14px; font-weight: 600; }
body.tfc-unified-theme .tfc-filter-buttons button:is(:hover,.is-active,[aria-pressed=true]) { background: var(--tfc-ui-blue); color: #fff; border-color: var(--tfc-ui-blue); }
body.tfc-unified-theme :is(.tfc-results-count,[data-tfc-article-count]) { font-size: 14px; color: var(--tfc-ui-muted); }
body.tfc-unified-theme :is(.tfc-faq-list,.tfc320-faq) details { border: 1px solid var(--tfc-ui-border); border-radius: 10px; background: #fff; margin-bottom: 12px; }
body.tfc-unified-theme :is(.tfc-faq-list,.tfc320-faq) summary { min-height: 48px; font-weight: 650; line-height: 1.5; color: var(--tfc-ui-navy); cursor: pointer; }
body.tfc-unified-theme :is(.tfc-notice,.tfc-form-privacy) { border-radius: 8px; line-height: 1.65; }

/* Comparison overflow belongs to the table, never the entire page. */
body.tfc-unified-theme :is(.tfc320-table-wrap,.tfc-table-scroll,.tfc-table-wrap) { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--tfc-ui-border); border-radius: 12px; }
body.tfc-unified-theme .tfc-table-scroll > table { margin: 0; }
body.tfc-unified-theme .tfc320-table { font-size: 15px; line-height: 1.65; }
body.tfc-unified-theme .tfc320-table :is(th,td) { padding: 20px; }
body.tfc-unified-theme .tfc320-table thead th { background: var(--tfc-ui-soft); color: var(--tfc-ui-navy); }
body.tfc-unified-theme .tfc320-table tbody tr:nth-child(even) :is(td,th) { background: #f8fafd; }
body.tfc-unified-theme .tfc-table-hint { margin: 0 0 8px; color: var(--tfc-ui-muted); font-size: 13px; }
body.tfc-unified-theme .tfc-table-hint[hidden] { display:none; }
body.tfc-unified-theme :is(.tfc-article-content,.tfc-prose) { color: var(--tfc-ui-text); font-size: 17px; line-height: 1.8; }
body.tfc-studio-body.tfc-unified-theme #tfc-main :is(.tfc-article-content,.tfc-prose) h2 { margin-top: 34px !important; }
body.tfc-studio-body.tfc-unified-theme #tfc-main :is(.tfc-article-content,.tfc-prose) > h2:first-child { margin-top: 0 !important; }
body.tfc-unified-theme :is(.tfc-article-content,.tfc-prose) p { margin-bottom: 20px; }
body.tfc-unified-theme :is(.tfc-article-content,.tfc-prose) li { margin-block: 8px; }
body.tfc-unified-theme .tfc-article-sidebar { min-width: 0; }
body.tfc-unified-theme .tfc-article-sidebar .tfc-button { width: 100%; }

/* Explicit dark-section heading context survives the global heading ID selector. */
body.tfc-studio-body.tfc-unified-theme #tfc-main :is(.tfc-build-story-cta,.tfc-final-cta,.tfc-cta) :is(h1,h2,h3,p,.tfc-kicker) { color:#fff !important; }

/* Screenshots are evidence, not cropped artwork. Preserve their aspect ratio. */
body.tfc-unified-theme :is(.tfc-gallery-main,.tfc320-hero-proof,.tfc-home-showcase) { border-radius: 12px !important; border-color: var(--tfc-ui-border); background: #fff; }
body.tfc-unified-theme .tfc-gallery-thumbs { gap: 10px !important; }
body.tfc-unified-theme .tfc-gallery-thumbs button { border-radius: 8px !important; min-height: 44px; border-color: var(--tfc-ui-border); }
body.tfc-unified-theme .tfc-gallery-thumbs button:hover { border-color: var(--tfc-ui-blue); }
body.tfc-unified-theme .tfc-gallery-view-all { background: var(--tfc-ui-navy) !important; color: #fff !important; border-radius: 6px !important; font-weight: 650; }
body.tfc-unified-theme .tfc-full-gallery { gap: 20px; }
body.tfc-unified-theme .tfc-full-gallery button { border-radius: 12px; box-shadow: none; }
body.tfc-unified-theme .tfc-full-gallery button img { object-fit: contain; }
body.tfc-unified-theme .tfc320-video { border-radius: 12px; background: var(--tfc-ui-navy); }
body.tfc-unified-theme .tfc320-video-cover p { color: #fff !important; }
body.tfc-unified-theme .tfc320-video-cover .tfc320-small { color: #dbe7f4 !important; }
body.tfc-unified-theme .tfc-lightbox { background: rgba(8,23,40,.96); }
body.tfc-unified-theme .tfc-lightbox button { border-radius: 8px; min-height: 48px; color: #fff; }
body.tfc-unified-theme .tfc-lightbox figcaption { color: #e4edf7; }

/* Dark sections need their own contrast context, not inherited body colours. */
body.tfc-studio-body.tfc-unified-theme :is(.tfc-prefooter,.tfc-build-story-cta,.tfc-final-cta,.tfc-cta) { background: var(--tfc-ui-navy) !important; color: #fff !important; }
body.tfc-studio-body.tfc-unified-theme :is(.tfc-prefooter,.tfc-build-story-cta,.tfc-final-cta,.tfc-cta) :is(h2,h3,p,.tfc-kicker) { color: #fff !important; }
body.tfc-studio-body.tfc-unified-theme :is(.tfc-prefooter,.tfc-build-story-cta,.tfc-final-cta,.tfc-cta) :is(a.tfc-button-light,a.tfc-button-primary) { background: #fff !important; color: var(--tfc-ui-navy) !important; border-color: #fff !important; }
body.tfc-studio-body.tfc-unified-theme :is(.tfc-prefooter,.tfc-build-story-cta,.tfc-final-cta,.tfc-cta) :is(a.tfc-button-secondary,a.tfc-button-ghost-light) { background: transparent !important; color: #fff !important; border-color: #b9cde2 !important; }
body.tfc-studio-body.tfc-unified-theme :is(.tfc-prefooter,.tfc-build-story-cta,.tfc-final-cta,.tfc-cta) a.tfc-button:hover { background: #eaf2fd !important; color: var(--tfc-ui-navy) !important; border-color: #fff !important; }
body.tfc-unified-theme .tfc-prefooter-inner { gap: 32px; }
body.tfc-unified-theme .tfc-prefooter-inner > div:first-child { max-width: 680px; }
body.tfc-unified-theme .tfc-prefooter h2 { font-size: clamp(25px,2.6vw,33px) !important; line-height: 1.3; }
body.tfc-unified-theme .tfc-site-footer { background: #0c2136 !important; color: #dbe7f4; }
body.tfc-unified-theme .tfc-site-footer :is(h2,.tfc-brand-name) { color: #fff !important; }
body.tfc-unified-theme .tfc-site-footer :is(a,p,span) { color: #dbe7f4; }
body.tfc-unified-theme .tfc-site-footer .tfc-footer-grid > div > a:not(.tfc-brand) { min-height: 36px; line-height: 1.5; padding-block: 7px; }
body.tfc-unified-theme .tfc-site-footer a:hover { color: #fff; text-decoration: underline; }
body.tfc-unified-theme .tfc-footer-bottom { gap: 12px; line-height: 1.6; border-color: #2b435d; }
body.tfc-unified-theme .tfc-back-to-top { background: #fff; color: var(--tfc-ui-navy); border: 1px solid #a6b7ca; border-radius: 8px; width: 44px; height: 44px; }

/* A CSS-only anchor/target menu is usable before JS, after script failure,
   and with scripting disabled. Closed/open states never change header height. */
body.tfc-unified-theme .tfc-nav-close { display:none; }
@media (max-width:1080px) {
  body.tfc-unified-theme .tfc-header-inner { position: relative; min-height: 70px; flex-wrap: nowrap; }
  body.tfc-unified-theme .tfc-site-header { min-height: 70px; }
  body.tfc-unified-theme .tfc-menu-toggle { display: grid !important; margin-left:auto; text-decoration:none; }
  body.tfc-unified-theme .tfc-primary-nav {
    display:none !important; position:absolute; top:100%; inset-inline:0; width:100%; padding:16px;
    flex-direction:column; align-items:stretch; background:#fff;
    max-height:calc(100vh - 90px - var(--tfc-admin-offset)); max-height:calc(100dvh - 90px - var(--tfc-admin-offset));
    overflow-y:auto; border:1px solid var(--tfc-ui-border); border-radius:0 0 12px 12px; box-shadow:var(--tfc-ui-shadow);
    overscroll-behavior:contain;
  }
  body.tfc-unified-theme.tfc-nav-ready .tfc-primary-nav.is-open,
  body.tfc-unified-theme:not(.tfc-nav-ready) .tfc-primary-nav:target { display:flex !important; }
  body.tfc-studio-body.tfc-unified-theme:not(.tfc-nav-ready) .tfc-primary-nav .tfc-mega-menu { display:grid !important; visibility:visible; opacity:1; pointer-events:auto; }
  body.tfc-unified-theme:not(.tfc-nav-ready) .tfc-has-submenu > button { display:none; }
  body.tfc-unified-theme .tfc-nav-close { display:block; min-height:44px; padding:8px; align-self:flex-end; }
  body.tfc-unified-theme .tfc-primary-nav > ul { display: block; width: 100%; }
  body.tfc-unified-theme .tfc-primary-nav > ul > li { display: flex; flex-wrap: wrap; position: relative; width:100%; }
  body.tfc-unified-theme .tfc-primary-nav > ul > li > a { flex: 1 1 auto; font-size:16px; min-height:46px; }
  body.tfc-unified-theme .tfc-primary-nav .tfc-has-submenu > button { width: 44px; height: 46px; margin:0; }
  body.tfc-studio-body.tfc-unified-theme .tfc-primary-nav .tfc-mega-menu { position:static; width:100%; min-width:0; margin:0 0 12px; padding:12px; box-shadow:none; grid-template-columns:1fr; background:#f4f7fb; }
  body.tfc-unified-theme .tfc-primary-nav .tfc-header-cta { display:inline-flex !important; width:100%; }
  body.tfc-unified-theme .tfc-prefooter-inner { display:block; }
}
@media (min-width:1081px) {
  body.tfc-unified-theme .tfc-primary-nav { display:flex !important; position:static; flex-direction:row; }
  body.tfc-unified-theme .tfc-primary-nav > ul { display:flex; }
  body.tfc-unified-theme .tfc-primary-nav > ul > li { display:flex; align-items:center; }
  body.tfc-unified-theme .tfc-primary-nav .tfc-mega-menu { left:0; right:auto; width:min(560px,80vw); }
  body.tfc-unified-theme .tfc-primary-nav .tfc-mega-menu-single { width:300px; }
}
@media (max-width:800px) {
  body.tfc-unified-theme :is(.tfc-home-hero-grid,.tfc-product-hero-grid,.tfc320-hero-grid,.tfc-two-column,.tfc320-two,.tfc-detail-columns) { grid-template-columns: minmax(0,1fr) !important; }
  body.tfc-unified-theme :is(.tfc-product-subnav,.tfc320-subnav) { position:static !important; }
  body.tfc-unified-theme .tfc320-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.tfc-unified-theme .tfc-footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:28px; }
  body.tfc-unified-theme .tfc-footer-brand { grid-column:1 / -1; }
  body.tfc-unified-theme .tfc-article-grid { grid-template-columns:minmax(0,1fr) !important; }
  body.tfc-unified-theme .tfc-catalogue-toolbar { display:flex; flex-direction:column; align-items:stretch; gap:16px; }
  body.tfc-unified-theme .tfc-filter-buttons { justify-content:flex-start; }
  body.tfc-unified-theme .tfc-search-box { max-width:none; width:100%; }
}
@media (max-width:560px) {
  body.tfc-unified-theme .tfc-container,
  body.tfc-studio-body.tfc-unified-theme .tfc-studio-blocks-output .tfc-container { width:calc(100% - 32px); }
  body.tfc-studio-body.tfc-unified-theme #tfc-main h1 { font-size:30px !important; line-height:1.2 !important; }
  body.tfc-studio-body.tfc-unified-theme.tfc-studio-role-home #tfc-main h1 { font-size:34px !important; }
  body.tfc-studio-body.tfc-unified-theme #tfc-main h2 { font-size:26px !important; }
  body.tfc-unified-theme :is(.tfc-actions,.tfc320-actions,.tfc-button-row) { align-items:stretch; }
  body.tfc-unified-theme :is(.tfc-actions,.tfc320-actions,.tfc-button-row) > :is(a,button,.wp-block-button) { width:100%; flex:1 1 100%; }
  body.tfc-unified-theme .wp-block-button > .wp-block-button__link { width:100%; }
  body.tfc-unified-theme :is(.tfc-product-grid,.tfc320-card-grid,.tfc-article-grid,.tfc-feature-grid,.tfc-form-grid) { grid-template-columns:minmax(0,1fr) !important; }
  body.tfc-unified-theme :is(.tfc-product-card-body,.tfc-article-card-body,.tfc320-card-body,.tfc320-purchase,.tfc-feature-panel,.tfc-compatibility-card) { padding:20px; }
  body.tfc-unified-theme .tfc-full-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  body.tfc-unified-theme .tfc320-table :is(th,td) { padding:16px; }
  body.tfc-unified-theme .tfc-footer-bottom { flex-direction:column; align-items:flex-start; }
}
@media (prefers-reduced-motion:reduce) {
  html:has(body.tfc-unified-theme) { scroll-behavior:auto; }
  body.tfc-unified-theme *,body.tfc-unified-theme *::before,body.tfc-unified-theme *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
@media (forced-colors:active) {
  body.tfc-unified-theme :is(.tfc-button,.tfc320-button,.wp-block-button__link,.tfc-filter-buttons button) { border:1px solid ButtonText !important; forced-color-adjust:auto; }
}
@media print {
  body.tfc-unified-theme :is(.tfc-site-header,.tfc-prefooter,.tfc-site-footer,.tfc-back-to-top,.tfc-table-hint) { display:none !important; }
  body.tfc-unified-theme #tfc-main { color:#000 !important; }
  body.tfc-unified-theme :is(.tfc320-table-wrap,.tfc-table-scroll,.tfc-table-wrap) { overflow:visible; }
  body.tfc-unified-theme .tfc320-table { min-width:0; table-layout:auto; font-size:10px; }
  body.tfc-unified-theme .tfc320-table :is(th,td) { padding:6px; }
}

/* Final consistency checks: small badges, chip markers and nested form panels. */
body.tfc-unified-theme .tfc-platform-badge { display:inline-flex; padding:6px 10px; font-size:12px !important; line-height:1.45; letter-spacing:.03em; font-weight:700; border-radius:6px; margin-bottom:16px; }
body.tfc-unified-theme .tfc-inline-trust { display:flex; flex-wrap:wrap; gap:10px 16px; padding:0; margin:24px 0 0; list-style:none; }
body.tfc-unified-theme .tfc-inline-trust li { display:flex; align-items:flex-start; gap:8px; padding:0; border:0; background:transparent; border-radius:0; box-shadow:none; font-size:14px; line-height:1.55; }
body.tfc-unified-theme .tfc-inline-trust li::before { position:static; display:inline-block; flex:0 0 auto; color:var(--tfc-ui-blue); }
body.tfc-unified-theme .tfc-form-card .tfc-fallback-form-card { padding:0; border:0; box-shadow:none; border-radius:0; }
body.tfc-unified-theme .tfc-native-contact-form { min-width:0; }
body.tfc-unified-theme .tfc320-before { background:var(--tfc-ui-soft); border-color:var(--tfc-ui-blue); }
body.tfc-unified-theme .tfc-mobile-cell-label { display:none; }
@media (max-width:760px) {
  /* The JavaScript adds explicit table roles and header associations before
     enabling this stacked layout. Without JS the original scrollable table stays. */
  body.tfc-unified-theme .tfc-table-scroll:has(>.tfc-responsive-comparison) { border:0; overflow:visible; background:transparent; }
  body.tfc-unified-theme .tfc-responsive-comparison { display:block; width:100%; min-width:0; table-layout:auto; }
  body.tfc-unified-theme .tfc-responsive-comparison caption { display:block; width:100%; padding:0 0 18px; font-size:14px; line-height:1.6; white-space:normal; }
  body.tfc-unified-theme .tfc-responsive-comparison thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  body.tfc-unified-theme .tfc-responsive-comparison tbody { display:grid; gap:18px; }
  body.tfc-unified-theme .tfc-responsive-comparison tbody tr { display:block; border:1px solid var(--tfc-ui-border); border-radius:12px; background:#fff; box-shadow:var(--tfc-ui-shadow); overflow:hidden; }
  body.tfc-unified-theme .tfc-responsive-comparison tbody :is(th,td) { display:block; width:100%; min-width:0; padding:16px 20px; border:0; border-bottom:1px solid var(--tfc-ui-border); background:#fff !important; }
  body.tfc-unified-theme .tfc-responsive-comparison tbody th[scope=row] { background:var(--tfc-ui-soft) !important; padding:20px; font-size:18px; }
  body.tfc-unified-theme .tfc-responsive-comparison tbody th[scope=row] .tfc320-price { margin-top:14px; }
  body.tfc-unified-theme .tfc-responsive-comparison tbody tr > :last-child { border-bottom:0; }
  body.tfc-unified-theme .tfc-mobile-cell-label { display:block; font-size:12px; line-height:1.5; font-weight:750; color:var(--tfc-ui-blue-hover); letter-spacing:.04em; text-transform:uppercase; margin-bottom:7px; }
  body.tfc-unified-theme .tfc-comparison-scroll-note { display:none; }
}

/* 3.4 reading navigation; no new colours or dependency. */
body.tfc-unified-theme .tfc340-contents { padding:18px 22px; margin:0 0 24px; border:1px solid var(--tfc-ui-border); border-radius:8px; background:var(--tfc-ui-soft); }
body.tfc-unified-theme .tfc340-contents summary { cursor:pointer; font-weight:650; padding:8px 0; min-height:44px; }
body.tfc-unified-theme .tfc340-contents li { margin:8px 0; }
body.tfc-unified-theme .tfc340-product-guide .tfc-container { max-width:1000px; }
body.tfc-unified-theme .tfc340-answers { max-width:840px; }
body.tfc-unified-theme .tfc340-answers h3 { margin:26px 0 10px; }
body.tfc-unified-theme .tfc340-reference { font-size:15px; color:var(--tfc-ui-muted); }
body.tfc-unified-theme [id^="tfc-"] { scroll-margin-top:calc(var(--tfc-header-height,78px) + 24px); }
