
/* ── BW GRADUAL FONT FAMILY ──────────────────────────────────────────────────── */
/* Complete library: 14 faces (7 weights × upright + italic). Browsers lazy-load  */
/* only faces that are actually referenced by rendered content.                   */
@font-face { font-family: 'Bw Gradual'; src: url('/assets/fonts/_immutable/BwGradual-Thin.9dd85aba.woff2') format('woff2'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bw Gradual'; src: url('/assets/fonts/_immutable/BwGradual-ThinItalic.9eb6af80.woff2') format('woff2'); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: 'Bw Gradual'; src: url('/assets/fonts/_immutable/BwGradual-Light.490945aa.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bw Gradual'; src: url('/assets/fonts/_immutable/BwGradual-LightItalic.9e2e2a14.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Bw Gradual'; src: url('/assets/fonts/_immutable/BwGradual-Regular.ba786e30.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bw Gradual'; src: url('/assets/fonts/_immutable/BwGradual-RegularItalic.02b23acf.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Bw Gradual'; src: url('/assets/fonts/_immutable/BwGradual-Medium.9d85d9a5.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bw Gradual'; src: url('/assets/fonts/_immutable/BwGradual-MediumItalic.66c37216.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Bw Gradual'; src: url('/assets/fonts/_immutable/BwGradual-Bold.d4149e5c.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bw Gradual'; src: url('/assets/fonts/_immutable/BwGradual-BoldItalic.9510cb7f.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Bw Gradual'; src: url('/assets/fonts/_immutable/BwGradual-ExtraBold.8917049b.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bw Gradual'; src: url('/assets/fonts/_immutable/BwGradual-ExtraBoldItalic.f3e2d255.woff2') format('woff2'); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Bw Gradual'; src: url('/assets/fonts/_immutable/BwGradual-Black.1ffaff4b.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bw Gradual'; src: url('/assets/fonts/_immutable/BwGradual-BlackItalic.80b1fc5c.woff2') format('woff2'); font-weight: 900; font-style: italic; font-display: swap; }

/* ── CROSS-DOCUMENT VIEW TRANSITIONS (item 40) ──────────────────────────────────
   Opts both source and destination documents into a cross-document view
   transition for same-origin navigations (traverse/push/replace). Effect is
   automatic — no JS required. All DVO pages are same-origin so every internal
   nav qualifies.

   Spec: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@view-transition
   Default behavior is the UA cross-fade; we are intentionally not overriding
   ::view-transition-{old,new} pseudos at this stage. Item 29 will layer
   document.startViewTransition() onto same-page toggles.

   Browser matrix (verified 2026-05-24):
     • Chrome/Edge 126+: full cross-doc support.
     • Safari 18+: full cross-doc support.
     • Firefox 144+: same-doc View Transitions only — cross-doc Level 2 still
       behind dom.viewTransitions.enabled and lacks @view-transition handling.
       Per CSS error-recovery rules the at-rule is silently ignored; no
       runtime break.

   The @supports (view-transition-name: none) wrapper is defense-in-depth:
     • It does NOT prevent any browser from emitting a parse warning at runtime
       (unknown at-rules are ignored per CSS Syntax Module Level 3 §5.4.3).
     • It DOES keep the rule out of devtools / linters in browsers that lack
       view-transition-name entirely (pre-Chrome 111, pre-Safari 18,
       pre-Firefox 144) — cleaner CSP audit surface, no behavior change.

   Reduced-motion: per CSSWG resolution (Apr 2024) the UA stylesheet falls back
   to a position/size-free cross-fade when prefers-reduced-motion is reduce.
   We wrap the opt-in in @media (prefers-reduced-motion: no-preference)
   anyway — stricter than the spec, defensive against UA implementation lag,
   and disables the transition entirely (not just motion components) for
   users requesting reduced motion. */
@supports (view-transition-name: none) {
  @media (prefers-reduced-motion: no-preference) {
    @view-transition {
      navigation: auto;
    }
  }
}

/* ── TYPOGRAPHY HIERARCHY ────────────────────────────────────────────────────── */
h1, h2, .font-display { font-family: var(--font-display); letter-spacing: -0.02em; }
h3 { font-family: var(--font-display); letter-spacing: -0.01em; }
h4 { font-family: var(--font-display); letter-spacing: -0.005em; }
.nav-pill { font-family: var(--font-display); font-weight: 500; }
.stat-number, .stat-val-gradient { font-family: var(--font-display); }
.phase-tab-btn { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.01em; }
.mobile-nav-link { font-family: var(--font-display); font-weight: 500; }
.nav-brand-text { font-family: var(--font-display); letter-spacing: -0.01em; }
/* Extended Bw Gradual coverage */
.risk-critical, .risk-high, .risk-medium { font-family: var(--font-display); letter-spacing: 0.05em; }
.badge-shipped, .badge-partial, .badge-high-risk, .badge-no-roadmap, .badge-spec, .badge-blue, .badge-leading, .badge-mixed { font-family: var(--font-display); }
.hero-badge { font-family: var(--font-display); }
.vendor-target-bar { font-family: var(--font-display); }
th { font-family: var(--font-display); letter-spacing: -0.005em; }
td:first-child { font-family: var(--font-display); }
.use-annotation .font-semibold, .gap-annotation .font-semibold { font-family: var(--font-display); }
footer, .footer-text { font-family: var(--font-display); }
.domain-icon { font-family: var(--font-display); }
.nist-icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; margin-bottom: 0.5rem; }

/* ── @property TYPED CUSTOM PROPERTIES ─────────────────────────────────
   Wave 6 PR-B (item 22): register design tokens as typed custom properties.

   Benefits per CSS Properties and Values API L1 (Baseline 2024 — Chrome 85+,
   Firefox 128+, Safari 16.4+):
     • Invalid values are rejected at parse time (type-safety) instead of
       silently cascading as the literal string, which protects gradients,
       color-mix(), and box-shadow against bad token overrides.
     • Tokens become interpolatable: <color> tokens animate through the
       declared color space; <length> tokens animate as lengths instead of
       discrete strings.
     • Each property has a guaranteed initial-value if the cascade misses.

   Scope: only registers tokens whose CSS data-type is unambiguous and a
   currently-registered <type> in the spec. Excluded:
     • --color-nav-accent-rgb        (comma-triplet, no registered syntax)
     • --gradient-nav-underline      (gradient values are not a registered
                                      <type> — they remain plain strings)
     • Composite box-shadow tokens   (none exist in this codebase — neumorphic
                                      shadows are composed inline at use site
                                      via box-shadow shorthand, so there is
                                      nothing to register)

   Initial values match the light-mode defaults in :root below; dark-mode
   .dark{} overrides cascade normally — @property only sets fallbacks, it
   does NOT pin the value.

   MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/@property            */
@property --color-brand                { syntax: '<color>'; inherits: true; initial-value: #7c3aed; }
@property --color-brand-strong         { syntax: '<color>'; inherits: true; initial-value: #6d28d9; }
@property --color-brand-soft           { syntax: '<color>'; inherits: true; initial-value: #ddd6fe; }
@property --color-brand-on-dark        { syntax: '<color>'; inherits: true; initial-value: #c4b5fd; }
@property --color-brand-on-dark-strong { syntax: '<color>'; inherits: true; initial-value: #a78bfa; }
@property --color-brand-pop            { syntax: '<color>'; inherits: true; initial-value: #8b5cf6; }
@property --color-brand-glow           { syntax: '<color>'; inherits: true; initial-value: #a855f7; }

@property --color-nav-accent           { syntax: '<color>'; inherits: true; initial-value: #2563EB; }
@property --color-nav-accent-on        { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --color-nav-hover-from       { syntax: '<color>'; inherits: true; initial-value: #1f3c7f; }
@property --color-nav-hover-to         { syntax: '<color>'; inherits: true; initial-value: #2563eb; }

@property --neu-bg-primary             { syntax: '<color>'; inherits: true; initial-value: #e6e9ef; }
@property --neu-bg-secondary           { syntax: '<color>'; inherits: true; initial-value: #d1d5db; }
@property --neu-shadow-dark            { syntax: '<color>'; inherits: true; initial-value: #b8bcc2; }
@property --neu-shadow-light           { syntax: '<color>'; inherits: true; initial-value: #ffffff; }

/* Dark-mode-only color tokens — initial-value matches the .dark{} value so
   any element outside .dark that accidentally references one falls back to
   the dark color rather than `unset`. */
@property --neu-indigo-light           { syntax: '<color>'; inherits: true; initial-value: #3a3471; }
@property --neu-indigo-dark            { syntax: '<color>'; inherits: true; initial-value: #100e37; }
@property --neu-convex-top             { syntax: '<color>'; inherits: true; initial-value: #342f67; }
@property --neu-convex-bottom          { syntax: '<color>'; inherits: true; initial-value: #121039; }

/* Radius tokens (declared in tailwind.css @theme, registered here because
   @property cannot be nested inside @theme — Tailwind v4 limitation). */
@property --radius-3xl                 { syntax: '<length>'; inherits: false; initial-value: 1.5rem; }
@property --radius-4xl                 { syntax: '<length>'; inherits: false; initial-value: 2rem; }

:root {
  /* Wave 5 (2026-05-21): item 26 — declares the page supports both light and
     dark color schemes. This (a) enables the `light-dark(<light>, <dark>)` CSS
     function for any future color-only declarations, (b) tells the UA to use
     scheme-appropriate defaults for scrollbars, form-control chrome, and
     `<input type=color/date>` widgets, and (c) acts as the default for users
     with no manual preference — falls back to `prefers-color-scheme`.
     The manual toggle (main.js + PageHead inline script) sets singular
     `color-scheme: light` or `dark` on the `.style` attribute of <html> to
     OVERRIDE OS preference. Class `.dark` remains the master switch for the
     15 token overrides (below) + 96 component-level `.dark .selector` rules.
     See docs/LIGHT_DARK_AUDIT_2026-05-21.md for the why. */
  color-scheme: light dark;

  --neu-bg-primary: #e6e9ef;
  --neu-bg-secondary: #d1d5db;
  --neu-shadow-dark: #b8bcc2;
  --neu-shadow-light: #ffffff;
  /* Tier 1 legacy aliases — kept for backwards compat; values cascade from
     the central brand tokens so one edit in @theme flips both tiers. */
  --neu-primary: var(--color-brand);
  --neu-primary-dark: var(--color-brand-strong);
  /* Brand semantic tokens are declared in tailwind.css @theme (light defaults).
     Do NOT redeclare them here — @theme already emits to :root and redeclaring
     would shadow the @theme-generated Tailwind utilities (bg-brand, text-brand,
     etc.). Dark-mode overrides below are the only per-color-scheme exception. */
}
.dark {
  --neu-bg-primary: #374151;
  --neu-bg-secondary: #1f2937;
  --neu-shadow-dark: #111827;
  --neu-shadow-light: #4b5563;
  --neu-indigo-light: #3a3471;
  --neu-indigo-dark: #100e37;
  --neu-convex-top: #342f67;
  --neu-convex-bottom: #121039;

  /* ── Brand semantic tokens — dark-mode overrides ─────────────────────────
     These override the @theme light defaults when `.dark` is on <html>.
     Current dark mode keeps identical brand values as light mode (the design
     intentionally uses the same purple in both schemes). Tokens are declared
     here anyway so any future dark-specific tuning is a single edit.         */
  --color-brand:          #7c3aed;
  --color-brand-strong:   #6d28d9;
  --color-brand-soft:     #ddd6fe;
  --color-brand-on-dark:  #c4b5fd;
  --color-brand-on-dark-strong: #a78bfa;
  --color-brand-pop:      #8b5cf6;
  --color-brand-glow:     #a855f7;
}
*, *::before, *::after { box-sizing: border-box; }

/* ── GLOBAL HORIZONTAL OVERFLOW CLIP ───────────────────────────────
   Prevents off-screen elements (mobile nav drawer, wide embeds, decorative
   glows) from creating a horizontal scrollbar on mobile. `overflow-x: clip`
   is preferred over `overflow-x: hidden` because it does NOT create a new
   scroll container — position:sticky still works inside. Supported in
   Chromium 90+, Firefox 81+, Safari 16+.  Fallback to hidden for older UAs
   via the @supports not() block. */
html, body { overflow-x: clip; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

/* ── TYPOGRAPHY BASE ─────────────────────────────────────────────────────
   Base size raised from the browser default 16px → 17px (≈ 1.0625×).
   This uniformly scales every rem/em-based size on the page, including
   all Tailwind `text-*` utilities, without touching individual classes.

   Research-backed:
   • 16px is the WCAG floor; 17–18px is the modern best practice for
     B2B marketing / professional audiences (Scope Design 2025, b13, a11y
     Collective). 17px is a deliberate middle ground — noticeably more
     readable than 16 without crowding the neumorphic/compact UI.
   • Scale ratio: Major Third (1.25) — marketing-appropriate contrast.
   • Body line-height: 1.65 (improves long-form readability while staying
     tight enough for dense dashboards).
   • Scaled Tailwind sizes (with 17px base):
       text-xs  → 13.6px  (pinned to 13px via override below)
       text-sm  → 14.9px
       text-base→ 17px
       text-lg  → 19.1px
       text-xl  → 21.25px
       text-2xl → 25.5px
       text-3xl → 31.9px
       text-4xl → 38.25px

   Mobile gets a slight reduction to keep line lengths comfortable.
   ─────────────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  /* Wave 3 (2026-05-21): item 31 — WCAG 2.2 SC 2.4.11 (Focus Not Obscured, AA).
     Sticky `.dvo-site-nav` is `padding: 16px` + ~56px inner pill container = 88px
     unscrolled, ~76px scrolled. Anchor-scroll targets and Tab-focused elements
     must land *below* the nav, never under it. Previous value (90px) gave only
     2px of breathing room when unscrolled — below the WCAG-recommended 16px
     margin-of-error for low-vision users. Bumped to 104px (88px nav + 16px buffer)
     to guarantee the focused element is never partially obscured. */
  scroll-padding-top: 104px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;          /* ← global base size (was 16px default) */
  text-rendering: optimizeLegibility;
  /* Wave 3 (2026-05-21): item 19 — hanging-punctuation lets quotation marks and
     punctuation hang outside the text block for optical alignment. CSS Baseline
     Widely Available (all major browsers). Pure progressive enhancement: any
     browser that doesn't support it ignores the property with zero impact. */
  hanging-punctuation: first last;
  /* Wave 3 (2026-05-21): item 24 — scrollbar-gutter: stable reserves space for
     the vertical scrollbar even when content fits in the viewport. Eliminates
     the layout jump that happens when navigating from a short page (no
     scrollbar) to a long page (scrollbar appears, content shifts ~15px left).
     CSS Baseline Widely Available (Chromium 94+, Firefox 97+, Safari 18.2+).
     Orthogonal to the `overflow-x: clip` above — that prevents horizontal
     scrollbars from rogue overflow; this reserves vertical scrollbar gutter.
     Pure progressive enhancement: any browser that ignores it just keeps the
     previous behavior. */
  scrollbar-gutter: stable;
}

/* Wave 3 (2026-05-21): item 18 — modern text-wrap algorithms.
   `balance` distributes heading text across lines to avoid orphaned single words.
   `pretty` improves paragraph rag (last line never has a single short word).
   Both are CSS Baseline Widely Available; zero-risk progressive enhancement.
   - Applied to all heading levels so brand headings and section headings benefit.
   - Applied to p/li/figcaption to cover prose; intentionally NOT applied to
     short flex-row labels (Tailwind utility classes can override via text-wrap-*
     if needed for a specific layout). */
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
@media (max-width: 640px) {
  html { font-size: 16.5px; }  /* gentle scale-down on small screens */
}
body {
  font-family: var(--font-display);
  background: var(--neu-bg-primary);
  color: #374151;
  min-height: 100vh;
  line-height: 1.65;        /* accessibility + long-form readability */
  font-weight: 400;
}

/* Pin .text-xs to a readable floor. Tailwind defines it as 0.75rem →
   with our 17px base it'd be 12.75px, which is below the 13px UI floor.
   This override is the only Tailwind text-size we adjust; all others scale
   naturally from the html base. */
.text-xs { font-size: 0.8125rem !important; line-height: 1.35rem !important; }

/* Heading line-heights — tighter than body for impact */
h1, h2 { line-height: 1.15; }
h3     { line-height: 1.25; }
h4, h5 { line-height: 1.35; }
.dark body { color: #e5e7eb; }
/* Brand icon dark mode overrides */
.dark .si-apple { color: #FFFFFF !important; }
.dark .si-slack { color: #E0B3E1 !important; }
.dark .si-tuta { color: #FF6B6B !important; }


/* ── NEU SURFACES ── */
.neu-raised {
  background: linear-gradient(145deg, var(--neu-bg-primary), var(--neu-bg-secondary));
  box-shadow: 8px 8px 16px var(--neu-shadow-dark), -8px -8px 16px var(--neu-shadow-light);
  outline: 2px solid transparent;
  filter: drop-shadow(0 0 0 transparent);
  transition: outline 0.12s ease, filter 0.12s ease;
}
.neu-raised-sm {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(2px);
}
.dark .neu-raised-sm {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.neu-inset {
  background: linear-gradient(145deg, var(--neu-bg-secondary), var(--neu-bg-primary));
  box-shadow: inset 4px 4px 8px var(--neu-shadow-dark), inset -4px -4px 8px var(--neu-shadow-light);
}
.neu-flat {
  background: linear-gradient(145deg, var(--neu-bg-primary), var(--neu-bg-secondary));
}
/* Clickable card collapse indicator */
.card-collapse-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 0 2px;
  color: var(--color-brand);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  font-family: var(--font-display);
  pointer-events: none;
}
.dark .card-collapse-indicator { color: var(--color-brand-on-dark-strong); }
.card-collapse-indicator .ci-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
}
/* Item 23 (twenty-eighth pass): drive card "expanded" visual state from the
   collapsible content's own .expanded class via :has(), removing the parent
   .card-expanded class-toggle in main.js. `:has()` is Baseline 2023; supported
   in all engines since Firefox 121 (Dec 2023). Invalidation cost is O(1) per
   ancestor for descendant-class changes (Chromium 124+), identical to the
   prior JS classList.toggle. The aria-expanded attribute is still set by JS —
   only the purely-visual ancestor styling moved to CSS. */
[data-collapsible]:has(> .collapsible-content.expanded) .card-collapse-indicator .ci-icon { transform: rotate(180deg); }
[data-collapsible]:has(> .collapsible-content.expanded) .card-collapse-indicator .ci-show { display: none; }
[data-collapsible]:has(> .collapsible-content.expanded) .card-collapse-indicator .ci-hide { display: inline; }

/* Item 23 (twenty-eighth pass): theme-toggle icon visibility is now derived
   from <html.dark> directly, removing the four classList.toggle('hidden') sites
   in main.js (lines ~192-197 and ~402-409). The canonical theme source of
   truth is the .dark class on <html>, set in the no-FOUC head script. */
html:not(.dark) .moon-icon { display: none; }
html.dark .sun-icon { display: none; }
.card-collapse-indicator .ci-hide { display: none; }
.card-collapse-indicator .ci-show { display: inline; }
[data-collapsible]:hover .card-collapse-indicator { opacity: 1; }
[data-collapsible] { cursor: pointer; }
/* ──────────────────────────────────────────────────────────────────────────
   UNIVERSAL INTERACTIVE SURFACE STATES
   Any button or link that uses a neu-raised / neu-raised-sm / neu-flat /
   neu-inset surface OR carries the .neu-btn helper class inherits identical
   hover / active / focus-visible / disabled feedback site-wide. This is the
   single source of truth — do not redefine these states per-component.
   ────────────────────────────────────────────────────────────────────────── */
.neu-btn,
button.neu-raised,
button.neu-raised-sm,
button.neu-flat,
button.neu-inset,
a.neu-raised,
a.neu-raised-sm,
a.neu-flat,
a.neu-inset {
  transition: transform 150ms ease, box-shadow 150ms ease, outline-color 150ms ease;
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.neu-btn:hover:not(:disabled):not([aria-disabled="true"]),
button.neu-raised:hover:not(:disabled),
button.neu-raised-sm:hover:not(:disabled),
button.neu-flat:hover:not(:disabled),
button.neu-inset:hover:not(:disabled),
a.neu-raised:hover:not([aria-disabled="true"]),
a.neu-raised-sm:hover:not([aria-disabled="true"]),
a.neu-flat:hover:not([aria-disabled="true"]),
a.neu-inset:hover:not([aria-disabled="true"]) {
  transform: translateY(-2px);
  box-shadow: 2px 2px 6px var(--neu-shadow-dark), -2px -2px 6px var(--neu-shadow-light);
}

.neu-btn:active:not(:disabled):not([aria-disabled="true"]),
button.neu-raised:active:not(:disabled),
button.neu-raised-sm:active:not(:disabled),
button.neu-flat:active:not(:disabled),
button.neu-inset:active:not(:disabled),
a.neu-raised:active:not([aria-disabled="true"]),
a.neu-raised-sm:active:not([aria-disabled="true"]),
a.neu-flat:active:not([aria-disabled="true"]),
a.neu-inset:active:not([aria-disabled="true"]) {
  transform: translateY(1px);
  box-shadow: inset 3px 3px 6px var(--neu-shadow-dark), inset -3px -3px 6px var(--neu-shadow-light);
}

/* WCAG 2.2 — visible focus ring for keyboard users on every interactive neu surface */
.neu-btn:focus-visible,
button.neu-raised:focus-visible,
button.neu-raised-sm:focus-visible,
button.neu-flat:focus-visible,
button.neu-inset:focus-visible,
a.neu-raised:focus-visible,
a.neu-raised-sm:focus-visible,
a.neu-flat:focus-visible,
a.neu-inset:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-brand) 70%, transparent);
  outline-offset: 3px;
}

/* Disabled state — unified */
.neu-btn:disabled,
.neu-btn[aria-disabled="true"],
button.neu-raised:disabled,
button.neu-raised-sm:disabled,
button.neu-flat:disabled,
button.neu-inset:disabled,
a.neu-raised[aria-disabled="true"],
a.neu-raised-sm[aria-disabled="true"],
a.neu-flat[aria-disabled="true"],
a.neu-inset[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: inset 2px 2px 4px var(--neu-shadow-dark), inset -2px -2px 4px var(--neu-shadow-light) !important;
}

/* Honor reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .neu-btn,
  button.neu-raised, button.neu-raised-sm, button.neu-flat, button.neu-inset,
  a.neu-raised, a.neu-raised-sm, a.neu-flat, a.neu-inset {
    transition: none;
  }
  .neu-btn:hover:not(:disabled),
  .neu-btn:active:not(:disabled),
  button.neu-raised:hover, button.neu-raised:active,
  a.neu-raised:hover, a.neu-raised:active {
    transform: none;
  }
}

/* Three-state interactive feedback */
.neu-interactive {
  transition: box-shadow 0.15s ease, transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), outline 0.12s ease, filter 0.12s ease;
  cursor: pointer;
  outline: 2px solid transparent;
  filter: drop-shadow(0 0 0 transparent);
}
.neu-interactive:hover {
  transform: translateY(-3px);
  box-shadow: 5px 5px 10px var(--neu-shadow-dark), -5px -5px 10px var(--neu-shadow-light);
  outline: 2px solid color-mix(in srgb, var(--color-brand) 45%, transparent);
  outline-offset: -2px;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--color-brand) 25%, transparent));
}
.neu-interactive:active {
  transform: translateY(0);
  box-shadow: inset 4px 4px 8px var(--neu-shadow-dark), inset -4px -4px 8px var(--neu-shadow-light);
}
.dark .neu-interactive:hover {
  box-shadow: 5px 5px 12px var(--neu-indigo-dark), -5px -5px 12px var(--neu-indigo-light);
  outline: 2px solid color-mix(in srgb, var(--color-brand-on-dark-strong) 55%, transparent);
  outline-offset: -2px;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--color-brand-on-dark-strong) 30%, transparent));
}
.dark .neu-interactive:active {
  box-shadow: inset 4px 4px 9px var(--neu-indigo-dark), inset -4px -4px 9px var(--neu-indigo-light);
}
/* Hover glow for non-interactive neu-raised cards */
.neu-raised:not(.neu-interactive):hover {
  box-shadow: 8px 8px 16px var(--neu-shadow-dark), -8px -8px 16px var(--neu-shadow-light);
  outline: 2px solid color-mix(in srgb, var(--color-brand) 45%, transparent);
  outline-offset: -2px;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--color-brand) 25%, transparent));
}
.dark .neu-raised:not(.neu-interactive):hover {
  box-shadow: 8px 8px 16px var(--neu-shadow-dark), -8px -8px 16px var(--neu-shadow-light);
  outline: 2px solid color-mix(in srgb, var(--color-brand-on-dark-strong) 55%, transparent);
  outline-offset: -2px;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--color-brand-on-dark-strong) 30%, transparent));
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .neu-interactive { transition: none; }
}

/* Accessible focus rings */
.neu-interactive:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-brand) 60%, transparent);
  outline-offset: 3px;
}
.dark .neu-interactive:focus-visible {
  outline-color: rgba(129, 140, 248, 0.7);
}


/* ── COLLAPSIBLE SECTIONS ── */
.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}
.collapsible-content.expanded {
  max-height: 4000px;
  opacity: 1;
}


/* Expand all controls — neumorphic pill */
.expand-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px 7px 13px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  color: #6b7280;
  background: linear-gradient(145deg, var(--neu-bg-primary), var(--neu-bg-secondary));
  box-shadow: 3px 3px 6px var(--neu-shadow-dark), -3px -3px 6px var(--neu-shadow-light);
  transition: all 0.2s ease;
  outline: 2px solid transparent;
  filter: drop-shadow(0 0 0 transparent);
}
.expand-all-btn .iconify {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.expand-all-btn:hover {
  color: var(--color-brand);
  box-shadow: 4px 4px 10px var(--neu-shadow-dark), -4px -4px 10px var(--neu-shadow-light);
  outline: 2px solid color-mix(in srgb, var(--color-brand) 30%, transparent);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--color-brand) 15%, transparent));
  transform: translateY(-1px);
}
.expand-all-btn:hover .iconify {
  transform: scaleY(1.15);
}
.expand-all-btn:active {
  transform: translateY(0.5px);
  box-shadow: inset 2px 2px 4px var(--neu-shadow-dark), inset -2px -2px 4px var(--neu-shadow-light);
}
.dark .expand-all-btn {
  color: #9ca3af;
}
.dark .expand-all-btn:hover {
  color: var(--color-brand-on-dark-strong);
  outline: 2px solid color-mix(in srgb, var(--color-brand-on-dark-strong) 35%, transparent);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--color-brand-on-dark-strong) 18%, transparent));
}
/* ── STATUS BADGES ── */
.badge-shipped { background: linear-gradient(135deg, #22c55e, #16a34a); color: white; box-shadow: 0 2px 8px rgba(34,197,94,0.4); }
.badge-partial { background: linear-gradient(135deg, #eab308, #ca8a04); color: white; box-shadow: 0 2px 8px rgba(234,179,8,0.4); }
.badge-high-risk { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; box-shadow: 0 2px 8px rgba(239,68,68,0.4); }
.badge-no-roadmap { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; box-shadow: 0 2px 8px rgba(239,68,68,0.4); white-space: nowrap; flex-shrink: 0; }
.badge-spec { background: linear-gradient(135deg, var(--color-brand), var(--color-brand-strong)); color: white; box-shadow: 0 2px 8px color-mix(in srgb, var(--color-brand) 40%, transparent); }
.badge-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; box-shadow: 0 2px 8px rgba(59,130,246,0.4); }
.badge-leading { background: linear-gradient(135deg, #22c55e, #16a34a); color: white; box-shadow: 0 2px 8px rgba(34,197,94,0.4); }
.badge-mixed { background: linear-gradient(135deg, #eab308, #ca8a04); color: white; box-shadow: 0 2px 8px rgba(234,179,8,0.4); }

/* ── RISK CHIPS (domain cards) ── */
.risk-critical { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; box-shadow: 0 2px 6px rgba(239,68,68,0.35); }
.risk-high { background: linear-gradient(135deg, #f97316, #ea580c); color: white; box-shadow: 0 2px 6px rgba(249,115,22,0.35); }
.risk-medium { background: linear-gradient(135deg, #eab308, #ca8a04); color: white; box-shadow: 0 2px 6px rgba(234,179,8,0.35); }

/* ── STAT CARD LINKS ── */
.stat-card-link { text-decoration: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, outline 0.12s ease, filter 0.12s ease; outline: 2px solid transparent; filter: drop-shadow(0 0 0 transparent); }
.stat-card-link:hover { transform: translateY(-3px); box-shadow: 6px 6px 16px var(--neu-shadow-dark), -6px -6px 16px var(--neu-shadow-light); outline: 2px solid color-mix(in srgb, var(--color-brand) 45%, transparent); outline-offset: -2px; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--color-brand) 25%, transparent)); }
.dark .stat-card-link:hover { box-shadow: 6px 6px 16px var(--neu-shadow-dark), -6px -6px 16px var(--neu-shadow-light); outline: 2px solid color-mix(in srgb, var(--color-brand-on-dark-strong) 55%, transparent); outline-offset: -2px; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--color-brand-on-dark-strong) 30%, transparent)); }
.stat-card-link:active { transform: translateY(0); box-shadow: inset 3px 3px 8px var(--neu-shadow-dark), inset -3px -3px 8px var(--neu-shadow-light); }

/* ── NAV ACTIVE (handled by .nav-pill.active in new nav) ── */

/* ── THREAT BOX ── */
.threat-box { background: rgba(234,179,8,0.1); border: 1px solid rgba(234,179,8,0.2); }
.dark .threat-box { background: rgba(234,179,8,0.08); border-color: rgba(234,179,8,0.15); }
.fips-box { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.15); }
.dark .fips-box { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.12); }
.gap-box { background: rgba(234,179,8,0.08); border: 1px solid rgba(234,179,8,0.15); }
.dark .gap-box { background: rgba(234,179,8,0.06); border-color: rgba(234,179,8,0.12); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── SECTION BG ALT ── */
.section-alt { background: linear-gradient(145deg, var(--neu-bg-secondary), var(--neu-bg-primary)); }

/* ── TIMELINE DOT ── */
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--color-brand), var(--color-brand-strong)); flex-shrink: 0; margin-top: 5px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand) 20%, transparent); }

/* ── PHASE TABS ── */
.phase-content:not(.active) { display: none !important; }
.phase-content.active { display: grid; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--neu-bg-secondary); }
::-webkit-scrollbar-thumb { background: #9ca3af; border-radius: 3px; }

/* Scoped scrollbar for dropdown lists / overflow containers / themed textareas */
/* Applied automatically to .dvo-input (textareas use .dvo-input) so the form     */
/* message field matches the combobox / neumorphic theme.                        */
.custom-scrollbar::-webkit-scrollbar,
textarea.dvo-input::-webkit-scrollbar { width: 8px; height: 8px; }

.custom-scrollbar::-webkit-scrollbar-track,
textarea.dvo-input::-webkit-scrollbar-track {
  background: var(--neu-bg-secondary);
  border-radius: 4px;
  margin: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb,
textarea.dvo-input::-webkit-scrollbar-thumb {
  background: linear-gradient(145deg, var(--neu-shadow-dark), #9ca0a6);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover,
textarea.dvo-input::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(145deg, var(--color-brand), var(--color-brand-glow));
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb,
.dark textarea.dvo-input::-webkit-scrollbar-thumb {
  background: linear-gradient(145deg, #4b5563, #6b7280);
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover,
.dark textarea.dvo-input::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(145deg, var(--color-brand), var(--color-brand-glow));
}

/* Firefox equivalent (no gradient support, but still themed) */
.custom-scrollbar,
textarea.dvo-input {
  scrollbar-width: thin;
  scrollbar-color: var(--neu-shadow-dark) var(--neu-bg-secondary);
}
.dark .custom-scrollbar,
.dark textarea.dvo-input {
  scrollbar-color: #4b5563 var(--neu-bg-secondary);
}

/* ── COMBOBOX DROPDOWN (service picker, country picker, etc.) ──────────    */
/* Input inherits .neu-inset. List uses .neu-raised + .custom-scrollbar.         */
/* JS controller: SearchDropdownController in dvo-main.js.                       */
/* Add data-combo-pick-only on the wrapper to disable typing/filtering.          */

/* .combo-input :focus styling lives in dvo-extend.css (loaded AFTER this file)  */
/* so it can override the purple ring added by .dvo-input:focus there.           */
.combo-input::-webkit-search-cancel-button,
.combo-input::-webkit-search-decoration { display: none; }

.combo-list {
  position: absolute; z-index: var(--z-dropdown); width: 100%; margin-top: 0.5rem;
  border-radius: 0.75rem; overflow: hidden;
  opacity: 0; visibility: hidden;
  max-height: 16rem; overflow-y: auto;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.combo-list.is-open { opacity: 1; visibility: visible; }
.combo-item {
  padding: 0.75rem 1rem; font-size: 0.875rem;
  color: #4b5563; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.dark .combo-item { color: #d1d5db; }
.combo-item:hover,
.combo-item.is-active { background-color: color-mix(in srgb, var(--color-brand) 8%, transparent); color: var(--color-brand); }
.dark .combo-item:hover,
.dark .combo-item.is-active { background-color: color-mix(in srgb, var(--color-brand) 18%, transparent); color: var(--color-brand-on-dark); }
.combo-item[hidden] { display: none; }

/* ── STAT GRADIENT ── */
.stat-val-gradient { background: linear-gradient(135deg, var(--color-brand), #2563eb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── USE-CASE ANNOTATION ── */
.use-annotation {
  border-left: 3px solid var(--neu-primary);
  padding: 6px 12px;
  border-radius: 0 8px 8px 0;
  background: color-mix(in srgb, var(--color-brand) 6%, transparent);
}
.dark .use-annotation {
  background: color-mix(in srgb, var(--color-brand) 10%, transparent);
}

/* ── VENDOR TARGET BAR ── */
.vendor-target-bar {
  background: color-mix(in srgb, var(--color-brand) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-brand) 15%, transparent);
  border-radius: 12px;
  padding: 10px 16px;
}
.dark .vendor-target-bar {
  background: color-mix(in srgb, var(--color-brand) 10%, transparent);
  border-color: color-mix(in srgb, var(--color-brand) 20%, transparent);
}

/* ── HERO GRADIENT ── */
.hero-badge { background: linear-gradient(135deg, color-mix(in srgb, var(--color-brand) 12%, transparent), rgba(37,99,235,0.08)); border: 1px solid color-mix(in srgb, var(--color-brand) 20%, transparent); }

/* ── RESPONSIVE ── */
@media (max-width: 1023px) {
  #nav-tabs { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── GAP ANNOTATION (amber "Not covered" callouts) ── */
.gap-annotation {
  border-left: 3px solid #d97706;
  padding: 6px 12px;
  border-radius: 0 8px 8px 0;
  background: rgba(217,119,6,0.06);
}
.dark .gap-annotation {
  background: rgba(217,119,6,0.1);
  border-color: #f59e0b;
}

/* ── FRAMEWORK CHIP ── */
/* Unified chip/pill used for compliance framework badges (NIST CSF, CIS, CMMC, etc.).
   Consistent across cybersecurity + security-compliance + any page listing frameworks.
   Works in both light and dark modes. */
.framework-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-brand-strong);
  background: rgba(196, 181, 253, 0.14);
  border: 1px solid color-mix(in srgb, var(--color-brand-on-dark-strong) 30%, transparent);
  border-radius: 0.5rem;
  line-height: 1.25;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.framework-chip .iconify {
  color: var(--color-brand);
  flex-shrink: 0;
}
.dark .framework-chip {
  color: var(--color-brand-on-dark);
  background: color-mix(in srgb, var(--color-brand) 18%, transparent);
  border-color: color-mix(in srgb, var(--color-brand-on-dark-strong) 35%, transparent);
}
.dark .framework-chip .iconify {
  color: var(--color-brand-on-dark-strong);
}
.framework-chip:hover {
  background: rgba(196, 181, 253, 0.22);
  border-color: color-mix(in srgb, var(--color-brand-on-dark-strong) 45%, transparent);
}
.dark .framework-chip:hover {
  background: color-mix(in srgb, var(--color-brand) 28%, transparent);
}

/* ── SECTION HEADER IMAGE ── */
.section-header-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 1.5rem;
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  opacity: 0.72;
}
.dark .section-header-img {
  opacity: 0.55;
}

/* ── REDESIGNED NAV ── */
.nav-pill-container {
  background: linear-gradient(145deg, var(--neu-bg-primary), var(--neu-bg-secondary));
  box-shadow: 6px 6px 14px var(--neu-shadow-dark), -6px -6px 14px var(--neu-shadow-light);
  border: 1px solid rgba(255,255,255,0.06);
}
.nav-pill {
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Underline: gradient blue, full pill width, slow ease-out from center.
   Uses the canonical scaleX pattern (Tobias Ahlin / WPShout / 30secondsofcode)
   with will-change: transform so Chrome promotes to a GPU-composited layer
   end-to-end — no rasterization mid-animation, no flash on completion. */
.nav-pill::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 1px;
  border-radius: 2px;
  background: var(--gradient-nav-underline);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  transform: scaleX(0);
  transform-origin: center;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-pill:hover::after,
.nav-pill.active::after {
  transform: scaleX(1);
}

/* Active pill = same gradient tint as hover (no solid fill) */
.nav-pill.active {
  color: var(--color-nav-accent) !important;
  background: linear-gradient(90deg,
      color-mix(in oklch, var(--color-nav-hover-from) 18%, transparent) 0%,
      color-mix(in oklch, var(--color-nav-hover-to) 18%, transparent) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 10px color-mix(in oklch, var(--color-nav-hover-from) 20%, transparent);
}
.dark .nav-pill.active {
  color: var(--color-nav-accent-on) !important;
  background: linear-gradient(90deg,
      color-mix(in oklch, var(--color-nav-hover-from) 32%, transparent) 0%,
      color-mix(in oklch, var(--color-nav-hover-to) 32%, transparent) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 12px color-mix(in oklch, var(--color-nav-hover-from) 36%, transparent);
}

/* Hover (non-active, non-CTA) */
.nav-pill:hover:not(.active):not(.nav-pill-cta) {
  color: var(--color-nav-accent) !important;
  background: linear-gradient(90deg,
      color-mix(in oklch, var(--color-nav-hover-from) 18%, transparent) 0%,
      color-mix(in oklch, var(--color-nav-hover-to) 18%, transparent) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 10px color-mix(in oklch, var(--color-nav-hover-from) 20%, transparent);
  transition: background 0.6s cubic-bezier(0.22, 1, 0.36, 1), color 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-pill:hover:not(.active):not(.nav-pill-cta) .iconify {
  opacity: 1;
  color: var(--color-nav-accent);
}
.dark .nav-pill:hover:not(.active):not(.nav-pill-cta) {
  color: var(--color-nav-accent-on) !important;
  background: linear-gradient(90deg,
      color-mix(in oklch, var(--color-nav-hover-from) 32%, transparent) 0%,
      color-mix(in oklch, var(--color-nav-hover-to) 32%, transparent) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 12px color-mix(in oklch, var(--color-nav-hover-from) 36%, transparent);
}
.dark .nav-pill:hover:not(.active):not(.nav-pill-cta) .iconify {
  color: var(--color-nav-accent-on);
}

/* ── MOBILE NAV DRAWER ── */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: var(--z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 260px;
  z-index: var(--z-drawer);
  background: linear-gradient(180deg, var(--neu-bg-primary), var(--neu-bg-secondary));
  box-shadow: none;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav-drawer.open {
  transform: translateX(0);
  box-shadow: -8px 0 24px var(--neu-shadow-dark);
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.2s ease;
}
.dark .mobile-nav-link { color: #9ca3af; }
.mobile-nav-link.active, .mobile-nav-link:hover {
  background: linear-gradient(90deg,
      color-mix(in oklch, var(--color-nav-hover-from) 10%, transparent) 0%,
      color-mix(in oklch, var(--color-nav-hover-to) 10%, transparent) 100%);
  color: var(--color-nav-accent);
}
.dark .mobile-nav-link.active, .dark .mobile-nav-link:hover {
  background: linear-gradient(90deg,
      color-mix(in oklch, var(--color-nav-hover-from) 22%, transparent) 0%,
      color-mix(in oklch, var(--color-nav-hover-to) 22%, transparent) 100%);
  color: var(--color-nav-accent-on);
}

/* ── Brand Gradient ─────────────────────────────────────────────────── */
.brand-gradient {
  background: linear-gradient(135deg, #4b5563 15%, var(--color-brand) 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dark .brand-gradient {
  background: linear-gradient(135deg, #e5e7eb 15%, var(--color-brand-on-dark-strong) 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Nav top-left wordmark — K6 underline form. Tri-stop spectrum (light) / teal→mauve (dark) */
.nav-brand {
  position: relative;
  display: inline-block;
  padding-bottom: 0.13em;
  font-weight: 700; /* moved off inline style so .dark override can win cascade */
  background-image: linear-gradient(135deg, #4ca2b5 0%, #003f82 55%, #be0c5c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dark .nav-brand {
  /* Dark-mode wordmark color per TYPOGRAPHY_RULES.md: gray-100 (#f3f4f6),
     canonical heading-on-neumorphic dark-mode color. Pure #ffffff is
     banned for sustained-reading surfaces (glare / after-image fatigue).

     Weight inherits 700 (Bw Gradual Bold) from the base .nav-brand rule —
     per-user directive 2026-05-24: keep Bold across both modes regardless
     of the irradiation-induced perceived heaviness on dark surfaces.

     Rendering routed through background-clip: text (two-stop identical
     gradient) to mirror light-mode pipeline.

     The teal→mauve underline bar (.nav-brand-bar below) provides the
     remaining splash of brand color identity. */
  background-image: linear-gradient(135deg, #f3f4f6 0%, #f3f4f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #f3f4f6; /* fallback for browsers without background-clip: text */
}
.nav-brand-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  height: 0.07em;
  min-height: 2px;
  border-radius: 3px;
  -webkit-text-fill-color: initial;
  background: linear-gradient(90deg, #003f82, #be0c5c);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}
.dark .nav-brand-bar {
  /* Match light mode for visual consistency (per design directive 2026-04-24) */
  background: linear-gradient(90deg, #003f82, #be0c5c);
}
.brand-options-gradient {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-on-dark-strong) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dark .brand-options-gradient {
  background: linear-gradient(135deg, var(--color-brand-on-dark-strong) 0%, var(--color-brand-on-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Floating Controls ──────────────────────────────────────────────── */
.floating-controls {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  pointer-events: none;
}
.floating-controls > button {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, color 0.25s ease, outline 0.15s ease, filter 0.25s ease;
  background: var(--neu-bg-primary);
  box-shadow: 4px 4px 10px var(--neu-shadow-dark), -4px -4px 10px var(--neu-shadow-light);
  color: #6b7280;
  margin-top: 10px;
  outline: 2px solid transparent;
  filter: drop-shadow(0 0 0 transparent);
}
.floating-controls > button:first-child {
  margin-top: 0;
}
.dark .floating-controls > button {
  color: #d1d5db;
}
.floating-controls > button:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 14px var(--neu-shadow-dark), -5px -5px 14px var(--neu-shadow-light);
  color: var(--color-brand);
  outline: 2px solid color-mix(in srgb, var(--color-brand) 45%, transparent);
  outline-offset: -2px;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--color-brand) 25%, transparent));
}
.dark .floating-controls > button:hover {
  color: var(--color-brand-on-dark-strong);
  outline: 2px solid color-mix(in srgb, var(--color-brand-on-dark-strong) 55%, transparent);
  outline-offset: -2px;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--color-brand-on-dark-strong) 30%, transparent));
}
.floating-controls > button:active {
  transform: translateY(1px);
  box-shadow: inset 3px 3px 6px var(--neu-shadow-dark), inset -3px -3px 6px var(--neu-shadow-light);
  outline: 2px solid transparent;
  filter: none;
}
.floating-controls > .scroll-btn {
  opacity: 0;
  pointer-events: none !important;
  height: 0;
  min-height: 0;
  padding: 0;
  margin-top: 0 !important;
  overflow: hidden;
  transform: translateY(-8px) scale(0.85);
  transition: height 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              min-height 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              margin-top 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s ease, color 0.25s ease;
  will-change: height, opacity, transform;
}
.floating-controls > .scroll-btn.visible {
  opacity: 1;
  pointer-events: auto !important;
  height: 42px;
  min-height: 42px;
  margin-top: 10px !important;
  transform: translateY(0) scale(1);
}
.floating-theme-btn {
  /* always visible, slightly larger */
  width: 44px;
  height: 44px;
}
@media (max-width: 640px) {
  .floating-controls {
    bottom: 16px;
    right: 16px;
  }
  .floating-controls > button {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    margin-top: 8px;
  }
  .floating-controls > button:first-child {
    margin-top: 0;
  }
  .floating-controls > .scroll-btn.visible {
    height: 38px;
    min-height: 38px;
    margin-top: 8px !important;
  }
  .floating-theme-btn {
    width: 40px;
    height: 40px;
  }
}



/* ── Universal Expand / Collapse FAB ────────────────────────────────── */
/* Lives inside .floating-controls (bottom-right), stacked directly above
   .floating-theme-btn. Hidden by default via [hidden]; dvo-collapsibles.js
   removes [hidden] only when the page contains .collapsible-content
   elements. Icon animates between expand and collapse states. */
.floating-expand-btn {
  /* Match .floating-controls > button geometry exactly — same pattern
     as the scroll/theme buttons above/below it. */
  width: 44px;
  height: 44px;
  position: relative;
  overflow: hidden;
}
.floating-expand-btn .icon-expand,
.floating-expand-btn .icon-collapse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.floating-expand-btn .icon-collapse {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(180deg);
}
.floating-expand-btn.all-expanded .icon-expand {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-180deg);
}
.floating-expand-btn.all-expanded .icon-collapse {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg);
}
@media (max-width: 640px) {
  .floating-expand-btn {
    width: 40px;
    height: 40px;
  }
}

/* ── Floating Nav Menu ──────────────────────────────────────────────── */
.floating-nav {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.floating-nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neu-bg-primary);
  box-shadow: 4px 4px 10px var(--neu-shadow-dark), -4px -4px 10px var(--neu-shadow-light);
  color: #6b7280;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, color 0.25s ease, outline 0.15s ease, filter 0.25s ease, background 0.25s ease;
  outline: 2px solid transparent;
  filter: drop-shadow(0 0 0 transparent);
  position: relative;
  z-index: 2;
}
.dark .floating-nav-toggle { color: #d1d5db; }
.floating-nav-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 14px var(--neu-shadow-dark), -5px -5px 14px var(--neu-shadow-light);
  color: var(--color-brand);
  outline: 2px solid color-mix(in srgb, var(--color-brand) 45%, transparent);
  outline-offset: -2px;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--color-brand) 25%, transparent));
}
.dark .floating-nav-toggle:hover {
  color: var(--color-brand-on-dark-strong);
  outline: 2px solid color-mix(in srgb, var(--color-brand-on-dark-strong) 55%, transparent);
  outline-offset: -2px;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--color-brand-on-dark-strong) 30%, transparent));
}
.floating-nav-toggle.active {
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-strong));
  color: white;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--color-brand) 35%, transparent), inset 0 1px 0 rgba(255,255,255,0.15);
}
/* Pressed/clicked state — matches .floating-controls > button:active */
.floating-nav-toggle:active {
  transform: translateY(1px);
  box-shadow: inset 3px 3px 6px var(--neu-shadow-dark), inset -3px -3px 6px var(--neu-shadow-light);
  outline: 2px solid transparent;
  filter: none;
}
/* When the menu is open (.active) and being pressed again, keep the purple fill
   but still communicate the press with a subtle sink. */
.floating-nav-toggle.active:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--color-brand) 35%, transparent), inset 0 1px 0 rgba(255,255,255,0.15), inset 3px 3px 6px rgba(0,0,0,0.18);
  filter: none;
}

.floating-nav-menu {
  position: absolute;
  bottom: 54px;
  left: 0;
  min-width: 180px;
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--neu-bg-primary), var(--neu-bg-secondary));
  box-shadow: 6px 6px 18px var(--neu-shadow-dark), -6px -6px 18px var(--neu-shadow-light);
  border: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.floating-nav-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.floating-nav-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.dark .floating-nav-menu a { color: #9ca3af; }
.floating-nav-menu a:hover {
  color: var(--color-brand);
  background: color-mix(in srgb, var(--color-brand) 6%, transparent);
}
.dark .floating-nav-menu a:hover {
  color: var(--color-brand-on-dark-strong);
  background: color-mix(in srgb, var(--color-brand) 10%, transparent);
}
.floating-nav-menu a.active {
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-strong));
  color: white;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--color-brand) 30%, transparent);
}

@media (max-width: 640px) {
  .floating-nav {
    bottom: 16px;
    left: 16px;
  }
  .floating-nav-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .floating-nav-menu {
    bottom: 50px;
    min-width: 160px;
    padding: 6px;
  }
  .floating-nav-menu a {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
}


/* ── PERFORMANCE: content-visibility for off-screen sections ── */
section:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* Escape hatch: add class "no-cv" to <html> to disable content-visibility
   (used by Playwright measurement runs and for debugging anchor jumps). */
html.no-cv section {
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
}

/* ── ACCESSIBILITY: focus-visible for floating buttons (WCAG 2.2) ── */
.floating-controls > button:focus-visible,
.floating-nav-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-brand) 70%, transparent);
  outline-offset: 3px;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--color-brand) 30%, transparent));
}
.dark .floating-controls > button:focus-visible,
.dark .floating-nav-toggle:focus-visible {
  outline-color: color-mix(in srgb, var(--color-brand-on-dark-strong) 80%, transparent);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--color-brand-on-dark-strong) 35%, transparent));
}
@media (prefers-reduced-motion: reduce) {
  .floating-controls > button,
  .floating-nav-toggle { transition: none !important; }
  section:not(:first-of-type) { content-visibility: visible; contain-intrinsic-size: none; }
}

/* Dark mode: brighten vendor wordmark logos */
.dark h3 > svg[aria-label], .dark .flex > h3 svg[aria-label],
.dark .flex > h4 svg[aria-label] { filter: brightness(1.8) saturate(0.8); }

/* Colored vendor logo pills */
.vendor-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 8px;
  margin-right: 8px;
  flex-shrink: 0;
  vertical-align: middle;
}
.vendor-pill svg { display: block; }
.vendor-pill-thales { background: rgba(44,47,115,0.08); }
.vendor-pill-entrust { background: rgba(63,69,79,0.08); }
.vendor-pill-infineon { background: rgba(0,102,179,0.08); }
.vendor-pill-tcg { background: rgba(26,54,93,0.08); }
.vendor-pill-gp { background: rgba(230,126,34,0.08); }
.vendor-pill-nxp { background: rgba(118,185,0,0.08); }

.dark .vendor-pill-thales { background: rgba(94,191,212,0.12); }
.dark .vendor-pill-entrust { background: rgba(184,188,196,0.10); }
.dark .vendor-pill-infineon { background: rgba(0,102,179,0.15); }
.dark .vendor-pill-tcg { background: rgba(100,140,200,0.12); }
.dark .vendor-pill-gp { background: rgba(230,126,34,0.12); }
.dark .vendor-pill-nxp { background: rgba(118,185,0,0.12); }

/* Dark mode: boost brightness for icons with dark backgrounds/elements */
/* Many brand logos are designed for light backgrounds; nudge them in dark */
.dark .vendor-icon-lg,
.dark .vendor-icon-sm,
.dark .partner-tile img { filter: brightness(1.05) contrast(1.05); }

/* Dark mode: invert for vendor logos with dark wordmarks on transparent bg */
/* (3cx, afiai, connectwise, jamf). invert+hue-rotate preserves brand color hue. */
.vendor-icon-invert-dark { transition: filter 0.2s ease; }
.dark .vendor-icon-invert-dark { filter: invert(1) hue-rotate(180deg) brightness(1.05); }

/* ── VENDOR CARD TOOLTIP ────────────────────────────────────────────── */
/* Some vendor descriptions are longer than the card width allows, so the
   visible line uses .truncate. We preserve the full text in data-full and
   reveal it in a small popover on hover (desktop) or tap (mobile).
   The card's visual size never changes, so the grid layout stays stable. */
.vendor-card { position: relative; z-index: 1; }
.vendor-card:hover,
.vendor-card.vc-open { z-index: 20; }
.vendor-card[data-full] .vendor-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(6px) scale(0.97);
  transform-origin: bottom center;
  background: var(--neu-bg-primary, #ffffff);
  color: #1f2937;
  font-size: 0.75rem;
  line-height: 1.4;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--color-brand-on-dark-strong) 28%, transparent);
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.16), 0 2px 6px rgba(31,41,55,0.08);
  width: max-content;
  max-width: 260px;
  white-space: normal;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  /* Leave-state: fade out a little slower for grace while moving the cursor */
  transition:
    opacity 220ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 30;
  will-change: opacity, transform;
}
.dark .vendor-card[data-full] .vendor-tooltip {
  background: #1f2937;
  color: #e5e7eb;
  border-color: color-mix(in srgb, var(--color-brand-on-dark-strong) 35%, transparent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.3);
}
/* Small arrow pointing down to the card */
.vendor-card[data-full] .vendor-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--neu-bg-primary, #ffffff);
  filter: drop-shadow(0 1px 0 color-mix(in srgb, var(--color-brand-on-dark-strong) 28%, transparent));
}
.dark .vendor-card[data-full] .vendor-tooltip::after {
  border-top-color: #1f2937;
}
/* Reveal on hover (desktop), focus-within (keyboard), or .vc-open (tap) */
/* On enter: slightly snappier with a gentle ease-out so it feels premium,
   yet still crisp enough that quickly moving between cards doesn't feel
   laggy. The outgoing transition (above) is a touch longer so hover-swap
   looks smooth rather than blinky. */
.vendor-card[data-full]:hover .vendor-tooltip,
.vendor-card[data-full]:focus-within .vendor-tooltip,
.vendor-card[data-full].vc-open .vendor-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  /* 400ms entry delay per NN/G + PatternFly tooltip best practice —
     prevents accidental triggers when mousing across the grid. The
     tap (vc-open) path bypasses via !important below. */
  transition:
    opacity 180ms cubic-bezier(0.16, 1, 0.3, 1) 400ms,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1) 400ms;
}
/* Tap/click-open tooltips on touch devices fire immediately */
.vendor-card[data-full].vc-open .vendor-tooltip {
  transition:
    opacity 180ms cubic-bezier(0.16, 1, 0.3, 1) 0ms,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1) 0ms;
}
/* On very small screens flip tooltip below card if it would clip at the top */
@media (max-width: 640px) {
  .vendor-card[data-full] .vendor-tooltip {
    max-width: min(240px, calc(100vw - 32px));
    font-size: 0.72rem;
  }
}
/* Reduced-motion: fade only, no slide/scale */
@media (prefers-reduced-motion: reduce) {
  .vendor-card[data-full] .vendor-tooltip {
    transition: opacity 160ms ease;
    transform: translateX(-50%);
  }
  .vendor-card[data-full]:hover .vendor-tooltip,
  .vendor-card[data-full]:focus-within .vendor-tooltip,
  .vendor-card[data-full].vc-open .vendor-tooltip {
    transform: translateX(-50%);
    transition: opacity 160ms ease;
  }
}

/* Eyebrow pill — theme-adaptive contrast (Solutions One-Partner, About eyebrows, etc.) */
.one-partner-pill {
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  background: color-mix(in srgb, var(--color-brand) 10%, transparent);
  color: var(--color-brand);
  border: 1px solid color-mix(in srgb, var(--color-brand) 20%, transparent);
}
.dark .one-partner-pill {
  background: color-mix(in srgb, var(--color-brand-on-dark-strong) 14%, transparent);
  color: var(--color-brand-on-dark);
  border: 1px solid color-mix(in srgb, var(--color-brand-on-dark-strong) 35%, transparent);
}
</style>
