/* Generated: node scripts/build-cruelty-free-blocking-shell.mjs */
/* ATF critical for /cruelty-free-brands/: body shell + directory hero.
   Nav: site-nav-docs.css only (#118 ATF nav flex rules broke the tools grid). */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body.body.site-tools-page {
  margin: 0;
  padding-top: 64px;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  background: #fff;
  color: #111729;
  visibility: visible;
}

html[data-theme="dark"] body.body.site-tools-page {
  background: #030712;
  color: #f1f5f9;
}

.calc-hero-section {
  padding: 120px 5vw 72px;
  background:
    radial-gradient(circle at top left, rgba(44, 69, 125, 0.42), transparent 40%),
    radial-gradient(circle at right center, rgba(255, 75, 39, 0.16), transparent 30%),
    linear-gradient(135deg, #111729 0%, #1e3159 56%, #2c457d 100%);
  position: relative;
  overflow: hidden;
}

@media (max-width: 767px) {
  .calc-hero-section {
    padding: 88px 5vw 52px;
  }

  .calc-hero-panel h1 {
    font-size: clamp(2.25rem, 9vw, 3rem);
  }
}

.calc-hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(17, 23, 41, 0) 0%, rgba(247, 248, 251, 0.55) 100%);
  pointer-events: none;
}

html[data-theme="dark"] .calc-hero-section::after {
  background: linear-gradient(180deg, rgba(3, 7, 18, 0) 0%, rgba(3, 7, 18, 0.92) 100%);
}

.calc-hero-grid {
  width: min(92%, 960px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.calc-hero-panel {
  display: grid;
  gap: 22px;
  max-width: 42rem;
}

.calc-hero-panel .subtitle.light {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.calc-hero-panel h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

.calc-hero-panel h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
}

.calc-hero-panel .hero-lead,
.calc-hero-panel .calc-hero-note {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.35vw, 1.0625rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.calc-hero-panel .calc-hero-note {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}

.calc-hero-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 18px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.cf-repertory.niche-page.section,
.cf-repertory.niche-page.section.grey {
  padding-top: 0;
  padding-bottom: 0;
  background: #f7f8fb;
}

.cf-repertory .calc-hero-section {
  width: 100%;
}

.cf-repertory .calc-hero-panel .cf-breadcrumb {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.cf-repertory .cf-toolbar {
  min-height: 11rem;
}

.cf-repertory .cf-search {
  width: 100%;
  min-height: 2.5rem;
}

.cf-repertory .cf-chip {
  min-height: 2.125rem;
}

.calc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.calc-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.calc-hero-btn-primary {
  background: #fff;
  color: #111729;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.calc-hero-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Webflow .grid-wrapper is a 3-column grid; collapse to a single content column until theme CSS loads. */
.cf-repertory .grid-wrapper {
  display: block;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 max(20px, 5vw) 72px;
}

.cf-repertory .grid-wrapper > .niche-section,
.cf-repertory .grid-wrapper > .cf-hero-note {
  width: 100%;
  max-width: 1120px;
  min-width: 0;
}

.cf-repertory .cf-hero-note {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #5b6480;
}

.cf-repertory .niche-section.cf-directory h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111729;
}

.cf-repertory .niche-section-intro,
.cf-repertory .cf-legend {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #5b6480;
}

.cf-repertory .cf-legend {
  min-height: 4.5rem;
}

.cf-repertory .cf-filter-state,
.cf-repertory .cf-status {
  margin: 0.5rem 0;
  font-size: 0.875rem;
  color: #5b6480;
}

.site-footer {
  min-height: 12rem;
}

/* Minimal directory styles in the blocking shell when the deferred bundle is slow or missing. */

.cf-repertory {
  --niche-navy: #2c457d;
  --niche-ink: #111729;
  --niche-muted: #5b6480;
  --niche-grey: #eef0f6;
  --niche-font: Poppins, system-ui, sans-serif;
}

.cf-repertory.niche-page .niche-section.cf-directory {
  max-width: none;
}

.cf-repertory .cf-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 22px;
}

.cf-repertory .cf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cf-repertory .cf-toolbar .cf-filters + .cf-filters {
  flex-basis: 100%;
}

.cf-repertory .cf-search {
  flex: 1 1 220px;
  min-width: 0;
}

.cf-repertory .cf-chip {
  appearance: none;
  border: 1px solid rgba(44, 69, 125, 0.16);
  background: transparent;
  color: var(--niche-navy);
  font-family: var(--niche-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  min-height: 2.125rem;
  padding: 0.12rem 0.65rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.cf-repertory .cf-chip.is-active,
.cf-repertory .cf-chip[aria-pressed="true"] {
  background: #2c457d;
  color: #fff;
  border-color: #2c457d;
}

.cf-repertory .cf-search {
  border: 1px solid rgba(44, 69, 125, 0.16);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-family: var(--niche-font);
  font-size: 0.92rem;
  background: #fff;
  color: var(--niche-ink);
}

.cf-repertory .cf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 767px) {
  .cf-repertory .cf-grid {
    grid-template-columns: 1fr;
  }
}

.cf-repertory .cf-card {
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 1px 0 rgba(17, 23, 41, 0.04), 0 16px 40px rgba(44, 69, 125, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.cf-repertory .cf-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cf-repertory .cf-logo {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  background: #eef0f6;
  color: #2c457d;
}

.cf-repertory .cf-logo__img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

.cf-repertory .cf-logo--photo:not(.is-loaded) .cf-logo__img {
  display: none;
}

.cf-repertory .cf-bunny-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #f4efe6;
  color: #2c457d;
  text-decoration: none;
}

.cf-repertory .cf-bunny-badge svg {
  width: 22px;
  height: 22px;
  display: block;
}

.cf-repertory .cf-card-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cf-repertory .cf-tags,
.cf-repertory .cf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cf-repertory .cf-tag {
  border-radius: 999px;
  padding: 4px 9px;
  background: #eef0f6;
  color: #2c457d;
  font-size: 0.72rem;
  font-weight: 600;
}

.cf-repertory .cf-btn-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(44, 69, 125, 0.16);
  background: #f4f6fa;
  color: #2c457d;
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
}

.cf-repertory .cf-globe.is-loading {
  height: 0 !important;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.cf-repertory .cf-globe-block.is-failed {
  display: none !important;
}

/* Dark mode: blocking shell must not leave light chip surfaces with light ink */
html[data-theme="dark"] .cf-repertory {
  --niche-navy: #8db4ff;
  --niche-ink: #f1f5f9;
  --niche-muted: #94a3b8;
  --niche-grey: #0a0f1e;
}

html[data-theme="dark"] .cf-repertory .cf-filters:not(.cf-filters--cert) .cf-chip {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
  border-color: transparent;
  background: transparent !important;
}

html[data-theme="dark"] .cf-repertory .cf-filters:not(.cf-filters--cert) .cf-chip.is-active,
html[data-theme="dark"] .cf-repertory .cf-filters:not(.cf-filters--cert) .cf-chip[aria-pressed="true"] {
  font-weight: 600;
  color: #e2e8f0 !important;
  background: rgba(147, 197, 253, 0.14) !important;
  border-color: rgba(147, 197, 253, 0.45) !important;
}

html[data-theme="dark"] .cf-repertory .cf-legend,
html[data-theme="dark"] .cf-repertory .cf-filter-state,
html[data-theme="dark"] .cf-repertory .cf-status,
html[data-theme="dark"] .cf-repertory .niche-section-intro,
html[data-theme="dark"] .cf-repertory .cf-hero-note {
  color: #cbd5e1;
}

html[data-theme="dark"] .cf-repertory .niche-section.cf-directory h2 {
  color: #f1f5f9;
}

/* Shared design tokens — aligned with fisagency / prompts */
:root,
[data-theme="light"] {
  color-scheme: light;

  --body-display: #626d86;
  --pinstripe: rgba(136, 158, 168, 0.2);
  --grey: #eef0f6;
  --black: #111729;
  --blue-fisagency: #2c457d;
  --shaddow: rgba(41, 43, 78, 0.07);
  --orange-red: #ff4b27;

  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #eef0f6;
  --surface-elevated: #ffffff;
  --border-subtle: rgba(136, 158, 168, 0.18);
  --border-soft: rgba(136, 158, 168, 0.28);
  --shadow-sm: 0 12px 26px rgba(41, 43, 78, 0.06);
  --shadow-md: 0 18px 38px rgba(41, 43, 78, 0.08);
  --shadow-lg: 0 24px 56px rgba(41, 43, 78, 0.1);
  --shadow-accent: 0 12px 24px rgba(17, 23, 41, 0.16);
  --glow-accent: 0 0 0 1px rgba(44, 69, 125, 0.12);

  --library-bg: linear-gradient(180deg, rgba(249, 250, 252, 0.98) 0%, #ffffff 100%);
  --panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 248, 251, 0.92) 100%);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 252, 0.98) 100%);
  --footer-bg: linear-gradient(180deg, #ffffff 0%, rgba(244, 246, 250, 0.78) 100%);
  --hero-fade-bottom: linear-gradient(180deg, rgba(17, 23, 41, 0) 0%, rgba(247, 248, 251, 0.78) 100%);
  --shell-tool-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0) 100%);
  --shell-tool-cover-bg: linear-gradient(135deg, rgba(10, 16, 31, 0.72) 0%, rgba(30, 49, 89, 0.6) 100%);
  --shell-tool-cover-border: rgba(255, 255, 255, 0.12);
  --shell-tool-cover-shadow: 0 24px 64px rgba(8, 12, 24, 0.24);
  --shell-tool-brand-color: #ffffff;
  --shell-tool-brand-muted: rgba(255, 255, 255, 0.72);
  --shell-tool-nav-border: rgba(255, 255, 255, 0.08);
  --shell-tool-nav-bg: rgba(255, 255, 255, 0.06);
  --shell-tool-nav-link-color: rgba(255, 255, 255, 0.8);
  --shell-tool-nav-link-hover-color: #ffffff;
  --shell-tool-nav-link-hover-bg: rgba(255, 255, 255, 0.08);
  --shell-tool-nav-link-active-color: #ffffff;
  --shell-tool-nav-link-active-bg: rgba(255, 255, 255, 0.14);
  --shell-tool-nav-link-active-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shell-tool-prompts-border: rgba(255, 255, 255, 0.14);
  --shell-tool-prompts-color: rgba(255, 255, 255, 0.92);
  --shell-tool-prompts-bg: rgba(255, 255, 255, 0.06);
  --shell-tool-prompts-hover-bg: rgba(255, 255, 255, 0.12);
  --shell-tool-prompts-hover-color: #ffffff;
  --shell-tool-toggle-border: rgba(255, 255, 255, 0.14);
  --shell-tool-toggle-bg: rgba(255, 255, 255, 0.08);
  --shell-tool-toggle-color: rgba(255, 255, 255, 0.92);
  --shell-tool-toggle-hover-bg: rgba(255, 255, 255, 0.14);
  --shell-tool-toggle-hover-border: rgba(255, 255, 255, 0.2);
  --shell-cta-bg: #ffffff;
  --shell-cta-color: #111729;
  --shell-cta-border: rgba(255, 255, 255, 0.12);
  --shell-cta-shadow: 0 8px 20px rgba(7, 11, 23, 0.14);
  --shell-cta-shadow-hover: 0 10px 24px rgba(7, 11, 23, 0.18);
  --hero-btn-primary-bg: #ffffff;
  --hero-btn-primary-color: #111729;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-2xl: 28px;
  --r-shell: 32px;
  --r-pill: 999px;
  --ring: 0 0 0 4px rgba(44, 69, 125, 0.08);
  --t-fast: 150ms;
  --t-med: 300ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --calc-font: Poppins, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  --calc-accent: var(--blue-fisagency);
  --calc-accent-hover: #1e3159;
  --calc-accent-muted: rgba(44, 69, 125, 0.08);
  --calc-success: #0f766e;
  --calc-warn: #b45309;
  --white: #ffffff;

  /* Compact premium CTAs — intrinsic width, ≥44px tap height */
  --calc-btn-height: 44px;
  --calc-btn-height-sm: 40px;
  --calc-btn-pad-x: 18px;
  --calc-btn-pad-x-sm: 14px;
  --calc-btn-font: 13px;
  --calc-btn-weight: 600;
  --calc-btn-tracking: 0;

  /* 2026 B2B type scale — body 15–16, lede ≤17, H2 28–36, H1 48–64 */
  --type-body: 15px;
  --type-lede: 16px;
  --type-lede-max: 17px;
  --type-h2: clamp(1.75rem, 2.5vw, 2.25rem);
  --type-h1: clamp(3rem, 5vw, 4rem);
  --type-h1-mobile: clamp(2.5rem, 8vw, 3rem);
  --type-label: 13px;

  --accent-gradient: linear-gradient(135deg, #111729 0%, #2c457d 100%);
  --accent-gradient-hover: linear-gradient(135deg, #0a1020 0%, #1e3159 100%);
  --hero-gradient:
    radial-gradient(circle at top left, rgba(44, 69, 125, 0.42), transparent 40%),
    radial-gradient(circle at right center, rgba(255, 75, 39, 0.16), transparent 30%),
    linear-gradient(135deg, #111729 0%, #1e3159 56%, #2c457d 100%);
}

/* Dark mode: solid navy surfaces (no purple, no cream, no soft gradient panels). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --black: #f1f5f9;
    --body-display: #94a3b8;
    --grey: #1e293b;
    --white: var(--surface-2);
    --blue-fisagency: #8ab4ff;
    --calc-accent: #8ab4ff;
    --calc-accent-hover: #a8c4ff;
    --calc-accent-muted: rgba(138, 180, 255, 0.12);
    --surface: #030712;
    --surface-2: #0f172a;
    --surface-3: #1e293b;
    --surface-elevated: #121826;
    --pinstripe: rgba(241, 245, 249, 0.1);
    --shaddow: rgba(0, 0, 0, 0.35);
    --border-subtle: rgba(241, 245, 249, 0.08);
    --border-soft: rgba(241, 245, 249, 0.14);
    --shadow-sm: 0 12px 28px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 18px 38px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.4);
    --shadow-accent: 0 12px 28px rgba(0, 0, 0, 0.35);
    --ring: 0 0 0 4px rgba(138, 180, 255, 0.14);
    --library-bg: #0f172a;
    --panel-bg: #0f172a;
    --card-bg: #121826;
    --footer-bg: #030712;
    --hero-fade-bottom: linear-gradient(180deg, rgba(3, 7, 18, 0) 0%, #0f172a 100%);
    --shell-tool-bg: #0f172a;
    --shell-tool-cover-bg: #111729;
    --shell-tool-cover-border: rgba(255, 255, 255, 0.12);
    --shell-tool-cover-shadow: 0 24px 64px rgba(8, 12, 24, 0.24);
    --shell-tool-brand-color: #ffffff;
    --shell-tool-brand-muted: rgba(255, 255, 255, 0.72);
    --shell-tool-nav-border: rgba(255, 255, 255, 0.08);
    --shell-tool-nav-bg: rgba(255, 255, 255, 0.06);
    --shell-tool-nav-link-color: rgba(255, 255, 255, 0.8);
    --shell-tool-nav-link-hover-color: #ffffff;
    --shell-tool-nav-link-hover-bg: rgba(255, 255, 255, 0.08);
    --shell-tool-nav-link-active-color: #ffffff;
    --shell-tool-nav-link-active-bg: rgba(255, 255, 255, 0.14);
    --shell-tool-nav-link-active-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    --shell-tool-prompts-border: rgba(255, 255, 255, 0.14);
    --shell-tool-prompts-color: rgba(255, 255, 255, 0.92);
    --shell-tool-prompts-bg: rgba(255, 255, 255, 0.06);
    --shell-tool-prompts-hover-bg: rgba(255, 255, 255, 0.12);
    --shell-tool-prompts-hover-color: #ffffff;
    --shell-tool-toggle-border: rgba(255, 255, 255, 0.14);
    --shell-tool-toggle-bg: rgba(255, 255, 255, 0.08);
    --shell-tool-toggle-color: rgba(255, 255, 255, 0.92);
    --shell-tool-toggle-hover-bg: rgba(255, 255, 255, 0.14);
    --shell-tool-toggle-hover-border: rgba(255, 255, 255, 0.2);
    --accent-gradient: linear-gradient(135deg, #111729 0%, #2c457d 100%);
    --hero-gradient:
      radial-gradient(circle at top left, rgba(44, 69, 125, 0.5), transparent 40%),
      radial-gradient(circle at right center, rgba(255, 75, 39, 0.1), transparent 30%),
      linear-gradient(135deg, #030712 0%, #111729 56%, #1e3159 100%);
  }
}

[data-theme="dark"] {
  color-scheme: dark;
  --black: #f1f5f9;
  --body-display: #94a3b8;
  --grey: #1e293b;
  --white: var(--surface-2);
  --blue-fisagency: #8ab4ff;
  --calc-accent: #8ab4ff;
  --calc-accent-hover: #a8c4ff;
  --calc-accent-muted: rgba(138, 180, 255, 0.12);
  --surface: #030712;
  --surface-2: #0f172a;
  --surface-3: #1e293b;
  --surface-elevated: #121826;
  --pinstripe: rgba(241, 245, 249, 0.1);
  --shaddow: rgba(0, 0, 0, 0.35);
  --border-subtle: rgba(241, 245, 249, 0.08);
  --border-soft: rgba(241, 245, 249, 0.14);
  --shadow-sm: 0 12px 28px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 38px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 12px 28px rgba(0, 0, 0, 0.35);
  --ring: 0 0 0 4px rgba(138, 180, 255, 0.14);
  --library-bg: #0f172a;
  --panel-bg: #0f172a;
  --card-bg: #121826;
  --footer-bg: #030712;
  --hero-fade-bottom: linear-gradient(180deg, rgba(3, 7, 18, 0) 0%, #0f172a 100%);
  --shell-tool-bg: #0f172a;
  --shell-tool-cover-bg: #111729;
  --shell-tool-cover-border: rgba(255, 255, 255, 0.12);
  --shell-tool-cover-shadow: 0 24px 64px rgba(8, 12, 24, 0.24);
  --shell-tool-brand-color: #ffffff;
  --shell-tool-brand-muted: rgba(255, 255, 255, 0.72);
  --shell-tool-nav-border: rgba(255, 255, 255, 0.08);
  --shell-tool-nav-bg: rgba(255, 255, 255, 0.06);
  --shell-tool-nav-link-color: rgba(255, 255, 255, 0.8);
  --shell-tool-nav-link-hover-color: #ffffff;
  --shell-tool-nav-link-hover-bg: rgba(255, 255, 255, 0.08);
  --shell-tool-nav-link-active-color: #ffffff;
  --shell-tool-nav-link-active-bg: rgba(255, 255, 255, 0.14);
  --shell-tool-nav-link-active-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shell-tool-prompts-border: rgba(255, 255, 255, 0.14);
  --shell-tool-prompts-color: rgba(255, 255, 255, 0.92);
  --shell-tool-prompts-bg: rgba(255, 255, 255, 0.06);
  --shell-tool-prompts-hover-bg: rgba(255, 255, 255, 0.12);
  --shell-tool-prompts-hover-color: #ffffff;
  --shell-tool-toggle-border: rgba(255, 255, 255, 0.14);
  --shell-tool-toggle-bg: rgba(255, 255, 255, 0.08);
  --shell-tool-toggle-color: rgba(255, 255, 255, 0.92);
  --shell-tool-toggle-hover-bg: rgba(255, 255, 255, 0.14);
  --shell-tool-toggle-hover-border: rgba(255, 255, 255, 0.2);
  --accent-gradient: linear-gradient(135deg, #111729 0%, #2c457d 100%);
  --hero-gradient:
    radial-gradient(circle at top left, rgba(44, 69, 125, 0.5), transparent 40%),
    radial-gradient(circle at right center, rgba(255, 75, 39, 0.1), transparent 30%),
    linear-gradient(135deg, #030712 0%, #111729 56%, #1e3159 100%);
}

/* Override Webflow body { color: #000 } — loads after fisagency.webflow.css on tool pages */
html[data-theme="dark"] body.body {
  color: var(--black);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.body {
    color: var(--black);
  }
}

/*
 * Webflow paints .section.no-padding { background-color: #eef0f6 } at ≥1920px.
 * That wins over single-class CTA backgrounds and creates a bright band in dark mode
 * (Prompts/Skills hubs). Re-assert theme surface with higher specificity.
 */
@media screen and (min-width: 1920px) {
  html[data-theme="dark"] .section.no-padding {
    background-color: var(--surface);
  }
}

@media screen and (min-width: 1920px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section.no-padding {
    background-color: var(--surface);
  }
}

/* Shared hub hero — used by /calculators, /prompts, /skills */
/* Shared hub motion: calculators + directory heroes, filter chips, theme crossfade.
   Loaded via hero-ui.css and site-hub-motion.js. */

.tools-hub__hero,
.niche-hero-section#hero {
  position: relative;
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  html.site-hub-hero-pending .site-hub-reveal-item {
    opacity: 0;
    transform: translateY(10px);
  }

  html.site-hub-hero-ready .site-hub-reveal-item {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.52s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--site-hub-reveal-delay, 0ms);
  }

  html.site-hub-hero-pending .calc-hero-section::before,
  html.site-hub-hero-pending .tools-hub__hero::before,
  html.site-hub-hero-pending .niche-hero-section#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: rgba(12, 18, 34, 0.55);
    opacity: 1;
    transition: opacity 0.42s ease;
  }

  html.site-hub-hero-ready .calc-hero-section::before,
  html.site-hub-hero-ready .tools-hub__hero::before,
  html.site-hub-hero-ready .niche-hero-section#hero::before {
    opacity: 0;
  }

  .tools-hub__hero::before {
    background: var(--hub-hero, #fff);
  }

  html[data-theme="dark"] .tools-hub__hero::before {
    background: var(--hub-hero, #0b1220);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.site-hub-hero-pending .site-hub-reveal-item,
  html.site-hub-hero-ready .site-hub-reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html.site-hub-hero-pending .calc-hero-section::before,
  html.site-hub-hero-pending .tools-hub__hero::before,
  html.site-hub-hero-pending .niche-hero-section#hero::before {
    display: none;
  }
}

/* Filter / calendar chips: color + scale settle (not snap) */
.site-hub-chip,
.cf-chip,
.rep-filter,
.rep-month,
.rep-year-kind,
.rep-year-month,
.rep-year-name,
.rep-chip,
.wb-chip {
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .site-hub-chip-settle {
    animation: site-hub-chip-settle 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
  }

  @keyframes site-hub-chip-settle {
    0% {
      transform: scale(0.96);
    }
    100% {
      transform: scale(1);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-hub-chip,
  .cf-chip,
  .rep-filter,
  .rep-month,
  .rep-year-kind,
  .rep-year-month,
  .rep-year-name,
  .rep-chip,
  .wb-chip {
    transition: none;
  }

  .site-hub-chip-settle {
    animation: none;
  }
}

/* Theme toggle: faster canvas + hero gradient crossfade (~200ms) */
html.site-theme-transition,
html.site-theme-transition body.tools-hub-page,
html.site-theme-transition .calc-hero-section,
html.site-theme-transition .tools-hub__hero {
  transition:
    background-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  html.site-theme-transition,
  html.site-theme-transition body.tools-hub-page,
  html.site-theme-transition .calc-hero-section,
  html.site-theme-transition .tools-hub__hero {
    transition: none;
  }
}


.calc-hero-section {
  padding: 120px 5vw 72px;
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
}

.calc-hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 64px;
  background: var(--hero-fade-bottom);
  pointer-events: none;
}

.calc-hero-grid {
  width: min(92%, 960px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.calc-hero-panel {
  display: grid;
  gap: 22px;
  max-width: 42rem;
}

.calc-hero-panel .subtitle.light {
  margin: 0;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.calc-hero-panel h1,
.calc-hero-panel .heading-large {
  margin: 0;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: var(--type-h1, clamp(3rem, 5vw, 4rem));
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

.calc-hero-panel h1 em,
.calc-hero-panel .heading-large em {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.calc-hero-panel .hero-lead {
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1rem, 1.35vw, 1.0625rem); /* 16–17px */
  line-height: 1.65;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
  margin: 0;
  letter-spacing: 0.005em;
}

.calc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.calc-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--calc-btn-height, 44px);
  min-height: var(--calc-btn-height, 44px);
  padding: 0 var(--calc-btn-pad-x, 16px);
  border-radius: var(--r-pill);
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: var(--calc-btn-font, 13px);
  font-weight: var(--calc-btn-weight, 600);
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), background var(--t-med) var(--ease);
}

.calc-hero-btn-primary {
  background: var(--hero-btn-primary-bg, #fff);
  color: var(--hero-btn-primary-color, #111729);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 36px rgba(7, 11, 23, 0.18);
}

.calc-hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(7, 11, 23, 0.24);
}

.calc-hero-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.calc-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

/* Legacy stat cards: keep styles for any remaining uses, but hubs no longer
   place non-interactive stats in the first viewport. */
.calc-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
}

.calc-stat-card {
  min-height: 132px;
  padding: 24px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
  backdrop-filter: blur(10px);
}

.calc-stat-number {
  color: #fff;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}

.calc-stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

@media (max-width: 991px) {
  .calc-stats-grid {
    grid-template-columns: 1fr;
  }

  .calc-hero-section {
    padding-top: 100px;
  }
}

@media (max-width: 767px) {
  .calc-hero-section {
    padding-top: 96px;
    padding-bottom: 48px;
  }

  .calc-hero-panel h1,
  .calc-hero-panel .heading-large {
    font-size: var(--type-h1-mobile, clamp(2.5rem, 8vw, 3rem));
  }

  .calc-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .calc-hero-btn {
    width: 100%;
  }
}

.cf-repertory .calc-hero-panel h1 em{font-family:Georgia,"Times New Roman",serif!important;font-style:italic;font-weight:500}
/* Appended last in cruelty-free-blocking-shell.css so dark filter chips stay
   readable before the deferred theme bundle loads (live FOUC path). */

html[data-theme="dark"] .cf-repertory .cf-toolbar .cf-filters:not(.cf-filters--cert) button.cf-chip:not(.is-active):not([aria-pressed="true"]) {
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  color: #94a3b8 !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .cf-repertory .cf-toolbar .cf-filters:not(.cf-filters--cert) button.cf-chip.is-active,
html[data-theme="dark"] .cf-repertory .cf-toolbar .cf-filters:not(.cf-filters--cert) button.cf-chip[aria-pressed="true"] {
  font-weight: 600 !important;
  color: #e2e8f0 !important;
  background-color: rgba(147, 197, 253, 0.14) !important;
  background-image: none !important;
  border-color: rgba(147, 197, 253, 0.45) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .cf-repertory .cf-filters--cert .cf-chip__cert-count {
  opacity: 1 !important;
  color: #cbd5e1 !important;
}
