/* ==========================================================================
   ExtractHelp — site stylesheet (every page)
   1. Fonts            2. Tokens (light / dark)   3. Base & type
   4. Layout           5. Buttons, links, badges  6. Form controls
   7. Header           8. Menus (dropdowns)       9. Mobile drawer
   10. Search dialog   11. Footer                 12. Inner-page components
   13. Cookie banner, notices, floating button    14. Motion & utilities
   Homepage sections: home.css. Project brief form: quote.css. Tools: tools.css.
   Colours come from the logo only: orange #F86219 and navy #051C5E.
   Logical properties (margin-inline, inset-inline…) keep Arabic (RTL) working.
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
/* Google Sans Flex and Google Sans Code (SIL Open Font License, see fonts/OFL.txt),
   self-hosted, subset, variable weight. Google Sans is the open-source sibling of
   Product Sans, the typeface used on invozone.com (owner's reference). */
@font-face {
  font-family: "Google Sans Flex";
  src: url("../fonts/google-sans-flex-latin.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Google Sans Flex";
  src: url("../fonts/google-sans-flex-latin-ext.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Google Sans Code";
  src: url("../fonts/google-sans-code-latin.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
/* Metric-matched fallback, so text barely moves when the web font arrives. */
@font-face {
  font-family: "GSF Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 100.5%; ascent-override: 96.1%; descent-override: 28.5%; line-gap-override: 0%;
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  --brand-orange: #F86219;
  --brand-navy: #051C5E;
  --navy-deep: #030F36;

  --bg: #FFFFFF;
  --bg-soft: #F4F6FB;
  --surface: #FFFFFF;
  --surface-2: #EEF1F8;
  --line: #E2E7F1;
  --line-strong: #C9D2E3;
  --text: #1B2645;
  --heading: #051C5E;
  --muted: #56627E;
  --accent: #F86219;
  --accent-text: #B8420E;
  --accent-soft: #FFF0E7;
  --navy-soft: #E8EDF8;
  --navy-strong: #051C5E;
  --wordmark: #E8590C;
  /* Main buttons: the logo's own pairing, navy on orange (5.6:1). */
  --btn-bg: #F86219;
  --btn-bg-hover: #FF7A36;
  --btn-text: #04133F;
  --focus: #2453D6;
  --success: #147A3A; /* 4.8:1 on --success-soft, 5.4:1 on white */
  --success-soft: #E6F5EC;
  --danger: #C62828;
  --danger-soft: #FDECEC;

  /* Dark bands (hero, process, data platform, footer). */
  --ink: #051C5E;
  --ink-deep: #030F36;
  --ink-surface: rgba(255, 255, 255, .05);
  --ink-line: rgba(255, 255, 255, .12);
  --ink-text: #E6EBF8;
  --ink-muted: #B4BFDC;
  --hero-bg: #051C5E;
  --hero-text: #FFFFFF;
  --hero-muted: #C3CCE6;
  --hero-line: rgba(255, 255, 255, .16);
  --footer-bg: #04164B;
  --footer-deep: #030F36;
  --band-bg: #051C5E;
  --band-text: #FFFFFF;
  --band-muted: #C3CCE6;
  --fab-bg: #051C5E;
  --fab-text: #FFFFFF;

  /* Dark bands share one recipe: a deep-to-brand navy gradient, a fine grid, and two lights
     (warm orange, cool blue) that are blended as light (screen), so they glow instead of going brown. */
  --ink-grad: linear-gradient(162deg, #030F36 0%, #051C5E 46%, #0A2B85 100%);
  --glow-warm: rgba(255, 112, 40, .5);
  --glow-cool: rgba(72, 124, 255, .42);
  --grad-accent: linear-gradient(135deg, #F86219 0%, #FF8A3D 100%);
  --grad-navy: linear-gradient(150deg, #04154A 0%, #072878 52%, #1140B0 100%);
  --chip-grad: linear-gradient(135deg, #051C5E 0%, #17409F 100%);
  --mark-filter: none;

  --header-bg: rgba(255, 255, 255, .97);
  --header-bg-scrolled: rgba(255, 255, 255, .96);
  --header-line: #E2E7F1;
  --header-line-strong: rgba(5, 28, 94, .12);
  --nav-hover: #EEF2FA;

  --shadow-sm: 0 1px 2px rgba(3, 15, 54, .05), 0 1px 1px rgba(3, 15, 54, .03);
  --shadow: 0 1px 1px rgba(3, 15, 54, .04), 0 4px 10px -3px rgba(3, 15, 54, .07), 0 18px 36px -14px rgba(3, 15, 54, .14);
  --shadow-float: 0 1px 2px rgba(3, 15, 54, .05), 0 8px 16px -6px rgba(3, 15, 54, .1), 0 28px 60px -18px rgba(3, 15, 54, .28);
  --shadow-bar: 0 12px 32px -14px rgba(3, 15, 54, .28), 0 2px 6px -2px rgba(3, 15, 54, .06);
  --shadow-panel: 0 4px 10px -2px rgba(3, 15, 54, .08), 0 30px 70px -20px rgba(3, 15, 54, .35);

  --font: "Google Sans Flex", "GSF Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Google Sans Code", ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  /* Older names, still used by tools.css */
  --border: var(--line);
  --border-strong: var(--line-strong);
  --radius-sm: var(--r-sm);
  --radius: var(--r);
  --radius-lg: var(--r-lg);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --bar-pad: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #060E26;
  --bg-soft: #0A1533;
  --surface: #0D1A3D;
  --surface-2: #12224B;
  --line: #1C2B55;
  --line-strong: #2A3C6C;
  --text: #D9E0F0;
  --heading: #FFFFFF;
  --muted: #A1ADC9;
  --accent-text: #FF8A4C;
  --accent-soft: rgba(248, 98, 25, .14);
  --navy-soft: #13234A;
  --navy-strong: #22397A;
  --wordmark: #F86219;
  --btn-bg: #F86219;
  --btn-bg-hover: #FF7A36;
  --btn-text: #061238;
  --focus: #7FA2FF;
  --success: #4ADE80;
  --success-soft: rgba(74, 222, 128, .12);
  --danger: #FF8A80;
  --danger-soft: rgba(255, 138, 128, .12);
  --ink: #081845;
  --ink-deep: #040B22;
  --hero-bg: #071440;
  --footer-bg: #040B22;
  --footer-deep: #02071A;
  --band-bg: #0D1A3D;
  --fab-bg: #F86219;
  --fab-text: #061238;
  --chip-grad: linear-gradient(135deg, #F86219 0%, #FF8A3D 100%);
  --ink-grad: linear-gradient(162deg, #040B22 0%, #081845 50%, #0C2466 100%);
  --glow-warm: rgba(255, 112, 40, .38);
  --glow-cool: rgba(72, 124, 255, .3);
  --mark-filter: drop-shadow(0 0 1px rgba(255, 255, 255, .85)) drop-shadow(0 0 8px rgba(255, 255, 255, .16));
  --header-bg: rgba(6, 14, 38, .84);
  --header-bg-scrolled: rgba(13, 26, 61, .72);
  --header-line: #1C2B55;
  --header-line-strong: rgba(255, 255, 255, .12);
  --nav-hover: #13234A;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -10px rgba(0, 0, 0, .5);
  --shadow-float: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 56px -16px rgba(0, 0, 0, .7);
  --shadow-bar: 0 12px 32px -14px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  --shadow-panel: 0 4px 10px -2px rgba(0, 0, 0, .4), 0 30px 70px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060E26;
    --bg-soft: #0A1533;
    --surface: #0D1A3D;
    --surface-2: #12224B;
    --line: #1C2B55;
    --line-strong: #2A3C6C;
    --text: #D9E0F0;
    --heading: #FFFFFF;
    --muted: #A1ADC9;
    --accent-text: #FF8A4C;
    --accent-soft: rgba(248, 98, 25, .14);
    --navy-soft: #13234A;
    --navy-strong: #22397A;
    --wordmark: #F86219;
    --btn-bg: #F86219;
    --btn-bg-hover: #FF7A36;
    --btn-text: #061238;
    --focus: #7FA2FF;
    --success: #4ADE80;
    --success-soft: rgba(74, 222, 128, .12);
    --danger: #FF8A80;
    --danger-soft: rgba(255, 138, 128, .12);
    --ink: #081845;
    --ink-deep: #040B22;
    --hero-bg: #071440;
    --footer-bg: #040B22;
    --footer-deep: #02071A;
    --band-bg: #0D1A3D;
    --fab-bg: #F86219;
    --fab-text: #061238;
    --chip-grad: linear-gradient(135deg, #F86219 0%, #FF8A3D 100%);
  --ink-grad: linear-gradient(162deg, #040B22 0%, #081845 50%, #0C2466 100%);
  --glow-warm: rgba(255, 112, 40, .38);
  --glow-cool: rgba(72, 124, 255, .3);
    --mark-filter: drop-shadow(0 0 1px rgba(255, 255, 255, .85)) drop-shadow(0 0 8px rgba(255, 255, 255, .16));
    --header-bg: rgba(6, 14, 38, .84);
    --header-bg-scrolled: rgba(13, 26, 61, .72);
    --header-line: #1C2B55;
    --header-line-strong: rgba(255, 255, 255, .12);
    --nav-hover: #13234A;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -10px rgba(0, 0, 0, .5);
    --shadow-float: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 56px -16px rgba(0, 0, 0, .7);
    --shadow-bar: 0 12px 32px -14px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .03) inset;
    --shadow-panel: 0 4px 10px -2px rgba(0, 0, 0, .4), 0 30px 70px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}


/* 3. Base & type ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scrollbar-color: var(--line-strong) transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--heading); margin: 0 0 .55em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.45rem + 3.3vw, 3.8rem); line-height: 1.06; letter-spacing: -.032em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.1vw, 2.9rem); line-height: 1.08; letter-spacing: -.028em; }
h3 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -.012em; font-weight: 650; }
h4 { font-size: 1rem; line-height: 1.35; }
p { margin: 0 0 1rem; text-wrap: pretty; }
a { color: var(--accent-text); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { padding-inline-start: 1.25rem; }
strong { font-weight: 650; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
kbd { font-family: var(--font-mono); font-size: .75em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
::selection { background: var(--brand-orange); color: #fff; }
/* Arabic: system fonts, no negative tracking (it breaks letter joining). */
body:lang(ar) { line-height: 1.8; }
h1:lang(ar), h2:lang(ar), h3:lang(ar), h4:lang(ar), .brand-name:lang(ar) { letter-spacing: 0; line-height: 1.35; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -100px; z-index: 100;
  background: var(--surface); color: var(--heading); padding: 10px 16px; border-radius: var(--r-sm); box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Orange gradient text for one key phrase per section (large text only). */
.text-grad { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (forced-colors: active) { .text-grad { background: none; color: CanvasText; } }

/* 4. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--soft {
  background:
    linear-gradient(180deg, transparent 0, var(--bg-soft) 380px),
    radial-gradient(circle at 1px 1px, var(--line-strong) 1px, transparent 1.6px) 0 0 / 24px 24px,
    var(--bg-soft);
}
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px clamp(32px, 6vw, 96px);
  align-items: end; margin-block-end: clamp(36px, 5vw, 60px);
}
.section-head h2 { margin: 0; max-width: 11.5em; }
.section-head__aside { display: grid; gap: 16px; justify-items: start; }
.section-head__aside > p { margin: 0; color: var(--muted); font-size: 1.07rem; line-height: 1.6; max-width: 54ch; }
.section-head:not(.section-head--center):not(.section-head--stack) .section-head__aside { padding-inline-start: 22px; border-inline-start: 2px solid var(--line); }
.section--ink .section-head .section-head__aside { border-color: var(--ink-line); }
.section-head--center { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.section-head--center h2 { max-width: 14em; }
.section-head--center .section-head__aside { justify-items: center; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .section-head:not(.section-head--center):not(.section-head--stack) .section-head__aside { padding-inline-start: 0; border-inline-start: 0; }
}
/* Small label above section titles. */
/* The marker is a spreadsheet's selected cell: a small orange square with its selection ring. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 0 0 0 4px;
  color: var(--accent-text); font-size: .86rem; font-weight: 650; letter-spacing: .005em;
}
.eyebrow::before {
  content: ""; flex: none; width: 9px; height: 9px; border-radius: 2.5px; background: var(--grad-accent);
  outline: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2.5px;
}
.section-title { margin-block-end: 28px; }
.lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--accent-text); text-decoration: none; }
.text-link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.text-link:hover { text-decoration: underline; }
.text-link:hover .icon { transform: translateX(3px); }
.text-link:hover .icon:dir(rtl) { transform: scaleX(-1) translateX(3px); }

/* Dark band: navy background with a faint grid and a soft glow. */
.section--ink { position: relative; isolation: isolate; overflow: hidden; background: var(--ink) var(--ink-grad); color: var(--ink-text); }
.section--ink::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 10%, transparent 75%);
}
.section--ink::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0; mix-blend-mode: screen;
  background:
    radial-gradient(520px 420px at calc(100% - 8%) -6%, var(--glow-warm), transparent 68%),
    radial-gradient(620px 460px at -6% 108%, var(--glow-cool), transparent 70%);
}
.section--ink::after:dir(rtl) { transform: scaleX(-1); }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .section-head__aside > p, .section--ink .lead { color: var(--ink-muted); }
.section--ink .eyebrow { color: #FFB48A; }
.section--ink a:not(.btn) { color: #FFB48A; }

/* Spotlight that follows the pointer on cards (position set by home.js). */
.spot { position: relative; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(248, 98, 25, .1), transparent 60%);
}
.spot:hover::after { opacity: 1; }

/* 5. Buttons, links, badges ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 650; font-size: .97rem; line-height: 1.2; letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .2s, transform .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover { text-decoration: none; }
.btn:hover > .icon--flip { transform: translateX(2px); }
.btn:hover > .icon--flip:dir(rtl) { transform: scaleX(-1) translateX(2px); }
.btn--primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 24px -12px rgba(248, 98, 25, .85); }
.btn--primary:hover { background: var(--btn-bg-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 14px 28px -12px rgba(248, 98, 25, .9); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); transition-duration: .05s; }
/* Brand orange with navy text: used on navy backgrounds and for the main actions. */
.btn--accent { background: var(--brand-orange); color: #04133F; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 26px -10px rgba(248, 98, 25, .8); }
.btn--accent:hover { background: #FF7A36; transform: translateY(-1px); }
.btn--secondary { background: var(--surface); color: var(--heading); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--heading); }
.btn--ghost { background: transparent; color: var(--heading); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--on-dark { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(255, 255, 255, .32); }
.btn--on-dark:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: .92rem; border-radius: 11px; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1.03rem; border-radius: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--accent-text); text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; }
.link-arrow:hover { text-decoration: underline; }
.icon--flip:dir(rtl), .link-arrow .icon:dir(rtl), .text-link .icon:dir(rtl), .card__more .icon:dir(rtl) { transform: scaleX(-1); }
.link-button { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: none; font-size: inherit; }
.link-button:hover { text-decoration: underline; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--heading); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn--sm { width: 32px; height: 32px; border-radius: 8px; }
.icon-btn--sm .icon { width: 16px; height: 16px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); color: var(--heading); font-weight: 600; font-size: .92rem; text-decoration: none;
}
a.chip:hover { border-color: var(--accent); color: var(--accent-text); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-text); }
.badge--soft { background: var(--navy-soft); color: var(--heading); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 650; background: var(--navy-soft); color: var(--heading); }
.pill--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
@media (prefers-reduced-motion: no-preference) { .pill--live::before { animation: live 2.4s var(--ease) infinite; } }
@keyframes live { 0%, 100% { box-shadow: 0 0 0 2px var(--success-soft); } 50% { box-shadow: 0 0 0 5px transparent; } }
.status-badge {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 4px 12px 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text); font-size: .84rem; font-weight: 650;
}
.status-badge .icon { width: 16px; height: 16px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--accent); width: 20px; height: 20px; margin-block-start: 3px; }

/* 6. Form controls --------------------------------------------------------- */
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font-size: 1rem; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none; padding-inline-end: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.select:dir(rtl) { background-position: 15px 50%, 20px 50%; }
.select--sm { min-height: 40px; padding-block: 8px; font-size: .93rem; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .85; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 24%, transparent); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--danger); }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field__label, .field legend { font-weight: 650; color: var(--heading); font-size: .94rem; padding: 0; }
.field--group { border: 0; margin: 0; padding: 0; min-width: 0; }
.field--group legend { margin-block-end: 8px; }
.hint { color: var(--muted); font-size: .86rem; margin: 0; }
.req { color: var(--accent-text); }
.field__error { margin: 0; color: var(--danger); font-size: .86rem; font-weight: 600; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.form-note { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }
.form-status { margin: 8px 0 0; font-size: .9rem; font-weight: 600; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }
/* Spam trap: invisible to people, no off-screen offset (offsets create scrollable overflow in right-to-left pages). */
.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.inline-form { display: flex; gap: 8px; }
.inline-form .input { flex: 1; min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--btn-bg); flex: none; }
.field-search { position: relative; width: 100%; max-width: 420px; }
.field-search > .icon { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.input--search { padding-inline-start: 42px; }
.input--search::-webkit-search-cancel-button { cursor: pointer; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; cursor: pointer; color: var(--text); }
.toggle input {
  appearance: none; flex: none; width: 34px; height: 20px; margin: 0; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background-color .2s;
}
.toggle input::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.toggle input:checked { background: var(--btn-bg); }
.toggle input:checked::after { transform: translateX(14px); }
.toggle input:checked:dir(rtl)::after { transform: translateX(-14px); }
.toggle input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin: 0; min-width: 0; }
.segmented__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 16px; border-radius: 10px; border: 0;
  background: transparent; color: var(--muted); font-weight: 650; font-size: .93rem; cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s;
}
.segmented__btn .icon { width: 18px; height: 18px; }
.segmented__btn:hover { color: var(--heading); }
.segmented__btn[aria-selected="true"], .segmented__btn:has(input:checked) { background: var(--surface); color: var(--heading); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.segmented--radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented__btn:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

/* 7. Header ------------------------------------------------------------------ */
/* The header keeps a fixed height. Its visible bar (.site-header__bar) is full width
   on load and becomes a compact floating bar with rounded corners after scrolling. */
.site-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); }
.site-header__bar {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--header-bg); border-block-end: 1px solid var(--header-line);
  -webkit-backdrop-filter: saturate(170%) blur(18px); backdrop-filter: saturate(170%) blur(18px);
  transition: top .45s var(--ease), right .45s var(--ease), bottom .45s var(--ease), left .45s var(--ease), border-radius .45s var(--ease), background-color .3s, box-shadow .45s, border-color .3s;
}
.site-header.is-scrolled .site-header__bar {
  inset-block: 8px;
  inset-inline: max(8px, calc(var(--gutter) - var(--bar-pad)), calc((100% - var(--container)) / 2 - var(--bar-pad)));
  border: 1px solid var(--header-line-strong); border-radius: 18px;
  background: var(--header-bg-scrolled); box-shadow: var(--shadow-bar);
}
.site-header.has-panel::after {
  content: ""; position: fixed; inset: var(--header-h) 0 0; z-index: -2; background: rgba(3, 15, 54, .22); pointer-events: none;
  animation: fade-in .2s var(--ease);
}
.header-inner { position: relative; display: flex; align-items: center; gap: 16px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); flex: none; }
.brand-mark { width: 38px; height: 38px; filter: var(--mark-filter); transition: transform .35s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.05); }

/* Logo mark: plain in light mode, white circular badge (logo-badge.svg) in dark mode — see brand_icon() */
.logo-d { display: none !important; }
:root[data-theme="dark"] .logo-d { display: revert !important; }
:root[data-theme="dark"] .logo-l { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-d { display: revert !important; }
  :root:not([data-theme="light"]) .logo-l { display: none !important; }
}
img.logo-badge { border-radius: 50%; filter: none !important; }
.brand-name { font-size: 1.38rem; font-weight: 750; letter-spacing: -.035em; line-height: 1; color: var(--heading); }
.brand-name span { color: var(--wordmark); }

.site-nav { display: flex; align-items: center; justify-content: center; flex: 1; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 8px 10px; border-radius: 11px;
  background: none; border: 0; cursor: pointer; text-decoration: none; color: var(--text); font-weight: 550; font-size: .94rem; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.nav-link:hover, .nav-item.is-open > .nav-link { color: var(--heading); background: var(--nav-hover); }
.nav-caret { width: 15px; height: 15px; color: var(--muted); transition: transform .2s var(--ease); }
.nav-item.is-open .nav-caret { transform: rotate(180deg); }
/* The data platform is a separate system: its menu is set apart from the agency menus. */
.nav-item--database { margin-inline-start: 6px; padding-inline-start: 10px; border-inline-start: 1px solid var(--line); }
.nav-link--db { gap: 7px; padding-inline: 10px 9px; color: var(--heading); border: 1px solid var(--line-strong); background: var(--surface); }
.nav-link--db:hover, .nav-item--database.is-open > .nav-link--db { border-color: var(--brand-orange); background: var(--accent-soft); }
.nav-link__icon { width: 17px; height: 17px; color: var(--accent); }
.nav-badge { padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
.drawer-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.header-icon {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 40px; height: 40px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--heading); cursor: pointer;
  font-size: .8rem; font-weight: 700; letter-spacing: .02em; list-style: none; transition: background-color .15s, border-color .15s;
}
.header-icon::-webkit-details-marker { display: none; }
.header-icon:hover { border-color: var(--line-strong); background: var(--surface-2); }
.header-icon .icon { width: 19px; height: 19px; }
.search-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 12px 7px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--muted); cursor: pointer; font-size: .9rem;
  transition: border-color .15s, color .15s;
}
.search-btn:hover { border-color: var(--line-strong); color: var(--heading); }
.search-btn .icon { width: 18px; height: 18px; }
.search-btn__kbd { padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--muted); font-size: .72rem; }
html:not(.js) .search-btn { display: none; }
.header-cta { padding-inline: 16px 14px; }
.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
/* Desktop header: icon-only search, and the "Soon" badge shows in the drawer only (it is
   also inside the Database menu), so the menus keep comfortable spacing. */
.search-btn__text, .search-btn__kbd { display: none; }
.search-btn { width: 40px; padding: 0; justify-content: center; }
@media (min-width: 1200px) { .nav-badge { display: none; } }
@media (max-width: 1439px) and (min-width: 1200px) {
  .nav-link { padding-inline: 9px; }
  .header-inner { gap: 12px; }
}
@media (max-width: 1365px) and (min-width: 1200px) {
  .nav-link { padding-inline: 7px; font-size: .92rem; }
  .header-actions .lang-menu--compact { display: none; }
  .nav-item--database { margin-inline-start: 2px; padding-inline-start: 6px; }
}
@media (max-width: 1259px) and (min-width: 1200px) {
  .nav-link__icon { display: none; }
  .brand-name { font-size: 1.28rem; }
}

/* Language menu (header, drawer, footer). */
.setting-btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 4px 10px; border: 0; border-radius: 8px;
  background: transparent; color: inherit; cursor: pointer; font-size: .84rem; font-weight: 600; text-decoration: none;
}
.setting-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.setting-btn .icon { width: 16px; height: 16px; }
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-caret { width: 14px !important; height: 14px !important; transition: transform .2s var(--ease); }
.lang-menu[open] .lang-caret { transform: rotate(180deg); }
.lang-list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 80; min-width: 200px; list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-float); font-size: .93rem;
}
.lang-menu--up .lang-list { top: auto; bottom: calc(100% + 6px); }
.lang-list a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.lang-list a:hover { background: var(--surface-2); color: var(--heading); }
.lang-list a[aria-current] { color: var(--accent-text); font-weight: 650; }
.lang-code { color: var(--muted); font-size: .78rem; font-weight: 650; }
.icon-sun, :root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-moon { display: none; }
  :root:not([data-theme="light"]) .icon-sun { display: block; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-moon { display: none; }
  :root:not([data-theme="light"]) .icon-sun { display: block; }
}

/* 8. Menus (dropdowns) -------------------------------------------------------- */
/* Large menus open as a floating card aligned with the header bar's left and right edges. */
.nav-panel { display: none; z-index: 70; }
.nav-item.is-open > .nav-panel { display: block; animation: panel-in .2s var(--ease); }
html:not(.js) .nav-item:hover > .nav-panel, html:not(.js) .nav-item:focus-within > .nav-panel { display: block; }
.nav-panel--mega {
  position: absolute; top: calc(100% + var(--panel-gap, 6px)); inset-inline: calc(var(--gutter) - var(--bar-pad));
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-panel);
  max-height: calc(100vh - var(--header-h) - 24px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
.site-header.is-scrolled { --panel-gap: -2px; }
.nav-item--company { position: relative; }
.nav-panel--small {
  position: absolute; top: calc(100% + 16px); inset-inline-start: 50%; translate: -50% 0; width: 280px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-panel);
}
.nav-panel--small:dir(rtl) { translate: 50% 0; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.mega { display: grid; gap: 18px; padding: 18px; }
.mega--services { grid-template-columns: 268px minmax(0, 1fr); }
.mega--cards { grid-template-columns: minmax(0, 1fr) 250px; }
.mega-side { display: grid; align-content: start; gap: 14px; padding-inline-end: 18px; border-inline-end: 1px solid var(--line); }
.mega-tabs { display: grid; gap: 2px; }
.mega-tab {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 6px 10px 6px 6px; padding-inline: 6px 10px;
  border: 0; border-radius: 12px; background: transparent; color: var(--text); font-weight: 600; font-size: .93rem; text-align: start; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.mega-tab__name { overflow: hidden; text-overflow: ellipsis; }
.mega-tab__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--navy-soft); color: var(--heading); transition: background .2s, color .2s; }
.mega-tab__icon .icon { width: 17px; height: 17px; }
.mega-tab__count { font-size: .74rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.mega-tab:hover { background: var(--surface-2); color: var(--heading); }
.mega-tab[aria-selected="true"] { background: var(--accent-soft); color: var(--heading); }
.mega-tab[aria-selected="true"] .mega-tab__icon { background: var(--grad-accent); color: #fff; box-shadow: 0 6px 14px -6px rgba(248, 98, 25, .65); }
.mega-tab[aria-selected="true"] .mega-tab__count { color: var(--accent-text); }
.mega-help {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; border-radius: 16px;
  background: var(--grad-navy); color: #fff; text-decoration: none; box-shadow: 0 14px 30px -18px rgba(5, 28, 94, .8);
}
.mega-help__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .12); }
.mega-help__icon .icon { width: 19px; height: 19px; color: #FFB48A; }
.mega-help__body { display: grid; line-height: 1.3; }
.mega-help__body strong { font-size: .9rem; font-weight: 650; }
.mega-help__body span { font-size: .82rem; color: #C3CCE6; }
.mega-help__arrow { width: 18px; height: 18px; color: #FFB48A; transition: transform .2s var(--ease); }
.mega-help:hover .mega-help__arrow { transform: translateX(3px); }
.mega-panels { min-width: 0; padding-block-start: 4px; }
.js .mega-panel:not([hidden]) { animation: fade-in .2s var(--ease); }
.mega-panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 24px; margin-block-end: 16px; }
.mega-panel__title { font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em; color: var(--heading); text-decoration: none; }
.mega-panel__title:hover { color: var(--accent-text); }
.mega-panel__head p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; max-width: 62ch; }
.mega-panel__all { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); font-weight: 650; font-size: .86rem; color: var(--heading); text-decoration: none; white-space: nowrap; }
.mega-panel__all .icon { width: 16px; height: 16px; color: var(--accent); }
.mega-panel__all:hover { border-color: var(--accent); color: var(--accent-text); }
.mega-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; align-items: start; }
.mega-groups--single .mega-cat__list { columns: 3 200px; column-gap: 16px; display: block; }
/* Category cards: the heading (icon, name) stands apart from the items below it. */
.mega-cat { padding: 10px 10px 8px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); break-inside: avoid; }
.mega-cat__head {
  display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 2px 2px 10px; border-block-end: 1px solid var(--line);
  font-weight: 700; font-size: .92rem; letter-spacing: -.005em; color: var(--heading); white-space: nowrap;
}
.mega-cat__name { overflow: hidden; text-overflow: ellipsis; }
.mega-cat__icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--chip-grad); color: #fff; box-shadow: 0 6px 14px -8px rgba(5, 28, 94, .7); }
.mega-cat__icon .icon { width: 16px; height: 16px; }
.mega-cat__count { margin-inline-start: auto; padding: 1px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .72rem; font-weight: 700; color: var(--muted); }
.mega-cat__list { list-style: none; margin: 0; padding: 0; display: grid; }
.mega-cat__list li { break-inside: avoid; }
.mega-cat__list a {
  display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 8px; color: var(--text); text-decoration: none;
  font-size: .9rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .15s, color .15s;
}
.mega-cat__list a:hover { background: var(--surface); color: var(--accent-text); }
.mega-cat__list .mega-more { color: var(--accent-text); font-weight: 650; }
.mega-cat__list .mega-more .icon { width: 14px; height: 14px; }
@media (max-width: 1365px) { .mega-groups .mega-cat__count { display: none; } }
.mega-cats { columns: 4 220px; column-gap: 12px; }
.mega-cats--3 { columns: 3 220px; }
.mega-cats--5 { columns: 5 200px; }
.mega--full { grid-template-columns: minmax(0, 1fr); }
.mega-cats .mega-cat { margin-block-end: 12px; }
.mega-card {
  display: grid; align-content: start; align-self: start; gap: 10px; padding: 20px; border-radius: 18px;
  background: var(--grad-navy); color: #DCE3F5; box-shadow: 0 18px 40px -24px rgba(5, 28, 94, .9);
}
.mega-card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #FFB48A; }
.mega-card__icon .icon { width: 20px; height: 20px; }
.mega-card__title { margin: 6px 0 0; font-weight: 700; color: #fff; font-size: 1.04rem; line-height: 1.3; }
.mega-card__text { margin: 0 0 6px; color: #C3CCE6; font-size: .9rem; }
.mega-card .btn { justify-self: start; }
.mega-card .btn--secondary { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: #fff; }
.mega-card .btn--secondary:hover { border-color: #fff; }
.mega-mobile { display: none; }
.mega-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; padding: 12px 22px; border-block-start: 1px solid var(--line); background: var(--bg-soft); }
.mega-bar a { display: inline-flex; align-items: center; gap: 8px; color: var(--heading); font-weight: 600; font-size: .9rem; text-decoration: none; }
.mega-bar a:hover { color: var(--accent-text); }
.mega-bar .icon { width: 17px; height: 17px; color: var(--accent); }
.mega-bar__cta { margin-inline-start: auto; padding: 6px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.mega-bar__cta span { color: var(--muted); font-weight: 500; }
.mega-bar__cta:hover { border-color: var(--accent); }
.mega-bar__note { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; color: var(--muted); font-size: .86rem; }
.mega-bar__note .icon { color: var(--success); }
html:not(.js) .mega-tabs { display: none; }
html:not(.js) .mega--services { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .mega-panel[hidden] { display: block !important; margin-block-start: 24px; }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu-list a { display: flex; align-items: center; gap: 12px; padding: 7px 10px 7px 7px; border-radius: 11px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .93rem; }
.menu-list a:hover { background: var(--surface-2); color: var(--heading); }
.menu-list__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--navy-soft); color: var(--heading); }
.menu-list a:hover .menu-list__icon { background: var(--grad-accent); color: #fff; }
.menu-list .icon { width: 17px; height: 17px; }

/* Dropdown menus (Services, Industries, Data sources, Tools, Company) ------
   One shared look: light sections with a small tinted icon tile, plain link rows
   that tint on hover with a sliding chevron, a navy spotlight card, a soft footer bar. */
.dd { display: grid; gap: 0; }
.dd-label { margin: 0 0 10px; padding-inline: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

/* Section: heading + link list */
.dd-sec { min-width: 0; break-inside: avoid; }
.dd-sec__head { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 0 4px 8px; border-block-end: 1px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--heading); }
.dd-sec__icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); }
.dd-sec__icon .icon { width: 15px; height: 15px; }
.dd-sec__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-sec__count { margin-inline-start: auto; font-size: .74rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.dd-links { list-style: none; margin: 0; padding: 0; display: grid; }
.dd-link {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; color: var(--text); text-decoration: none;
  font-size: .9rem; line-height: 1.35; transition: background-color .15s, color .15s;
}
.dd-link > span:not(.dd-mono) { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-link__go { flex: none; width: 14px; height: 14px; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s var(--ease); }
.dd-link:hover, .dd-link:focus-visible { background: var(--surface-2); color: var(--heading); }
.dd-link:hover .dd-link__go, .dd-link:focus-visible .dd-link__go { opacity: 1; transform: none; }
.dd-mono { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--navy-soft); color: var(--heading); font-size: .7rem; font-weight: 750; }
.dd-link:hover .dd-mono { background: var(--grad-accent); color: #fff; }
.dd-more { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0; padding: 4px 8px; color: var(--accent-text); font-weight: 650; font-size: .86rem; text-decoration: none; }
.dd-more .icon { width: 14px; height: 14px; transition: transform .15s var(--ease); }
.dd-more:hover .icon { transform: translateX(3px); }
.dd-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--heading); font-weight: 650; font-size: .86rem; text-decoration: none; white-space: nowrap; transition: border-color .15s, color .15s, background-color .15s; }
.dd-btn .icon { width: 15px; height: 15px; color: var(--accent); }
.dd-btn:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }

/* Column layouts */
.dd-main { min-width: 0; padding: 22px 24px; }
.dd-cols { columns: 3 200px; column-gap: 28px; }
.dd-cols .dd-sec { margin-block-end: 20px; }
.dd-cols .dd-sec:last-child { margin-block-end: 0; }
.dd-groups { display: grid; gap: 18px 28px; align-items: start; }
.dd-groups--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dd-groups--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dd-groups--single .dd-links { display: block; columns: 3 190px; column-gap: 28px; }
.dd-groups--single .dd-links li { break-inside: avoid; }

/* Services: tab rail on the left */
.dd--services { grid-template-columns: 284px minmax(0, 1fr); }
.dd-rail { display: grid; align-content: start; gap: 4px; padding: 20px 14px 18px; background: var(--bg-soft); border-inline-end: 1px solid var(--line); border-start-start-radius: 21px; }
.dd-tabs { display: grid; gap: 3px; }
.dd-tab {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 11px; width: 100%;
  padding: 7px 10px 7px 7px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--text);
  font: inherit; font-weight: 600; font-size: .92rem; text-align: start; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.dd-tab__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--heading); transition: background .2s, color .2s, border-color .2s; }
.dd-tab__icon .icon { width: 17px; height: 17px; }
.dd-tab__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-tab__count { min-width: 26px; padding: 1px 7px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.dd-tab:hover { background: var(--surface); color: var(--heading); }
.dd-tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); color: var(--heading); box-shadow: var(--shadow-sm); }
.dd-tab[aria-selected="true"]::before { content: ""; position: absolute; inset-block: 10px; inset-inline-start: -1px; width: 3px; border-radius: 3px; background: var(--grad-accent); }
.dd-tab[aria-selected="true"] .dd-tab__icon { background: var(--grad-accent); border-color: transparent; color: #fff; box-shadow: 0 6px 14px -6px rgba(248, 98, 25, .65); }
.dd-tab[aria-selected="true"] .dd-tab__count { background: var(--accent-soft); color: var(--accent-text); }
.dd-help {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 11px; margin-block-start: 14px; padding: 12px;
  border-radius: 14px; background: var(--grad-navy); color: #fff; text-decoration: none;
}
.dd-help__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #FFB48A; }
.dd-help__icon .icon { width: 18px; height: 18px; }
.dd-help__body { display: grid; line-height: 1.3; }
.dd-help__body strong { font-size: .88rem; font-weight: 650; }
.dd-help__body span { font-size: .8rem; color: #C3CCE6; }
.dd-help__arrow { width: 17px; height: 17px; color: #FFB48A; transition: transform .2s var(--ease); }
.dd-help:hover .dd-help__arrow { transform: translateX(3px); }
.dd--services .dd-main { padding-block-start: 20px; }
.js .dd-panel:not([hidden]) { animation: fade-in .2s var(--ease); }
.dd-head { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-block-end: 20px; padding-block-end: 18px; border-block-end: 1px solid var(--line); }
.dd-head__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--chip-grad); color: #fff; box-shadow: 0 10px 20px -12px rgba(5, 28, 94, .8); }
.dd-head__icon .icon { width: 22px; height: 22px; }
.dd-head__title { font-size: 1.16rem; font-weight: 700; letter-spacing: -.015em; color: var(--heading); text-decoration: none; }
.dd-head__title:hover { color: var(--accent-text); }
.dd-head__text p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; max-width: 66ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Industries, Data sources: navy spotlight on the left */
.dd--spot { grid-template-columns: 300px minmax(0, 1fr); }
.dd-spot {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin: 12px; margin-inline-end: 0; padding: 24px 22px; border-radius: 16px;
  background: radial-gradient(360px 260px at 100% 0%, rgba(248, 98, 25, .26), transparent 70%), linear-gradient(150deg, #061238 0%, #0A2266 100%);
  color: #C3CCE6; box-shadow: 0 18px 40px -26px rgba(5, 28, 94, .9);
}
.dd-spot__eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 4px 11px 4px 8px; border-radius: 999px; background: rgba(248, 98, 25, .16); color: #FFB48A; font-size: .76rem; font-weight: 700; }
.dd-spot__eyebrow .icon { width: 14px; height: 14px; }
.dd-spot__title { margin: 16px 0 8px; color: #fff; font-size: 1.24rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.dd-spot__text { margin: 0 0 20px; font-size: .9rem; line-height: 1.55; color: #B9C3DE; }
.dd-spot__actions { display: grid; justify-items: start; gap: 12px; margin-block-start: auto; }
.dd-spot__link { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 650; font-size: .88rem; text-decoration: none; }
.dd-spot__link .icon { width: 15px; height: 15px; color: #FFB48A; transition: transform .15s var(--ease); }
.dd-spot__link:hover { color: #FFB48A; }
.dd-spot__link:hover .icon { transform: translateX(3px); }

/* Tools: free zone + paid zone */
.dd--tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dd-items--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
.dd--tools .dd-item__desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.dd--tools .dd-zone__head { margin-block-end: 12px; padding-block-end: 12px; }
.dd--tools .dd-zone__text { display: none; }
.dd-items--tight .dd-item { padding-block: 7px; }
.dd--tools .dd-zone--paid .dd-item__icon { width: 32px; height: 32px; }
.dd-foot__sheets { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text) !important; font-weight: 600; }
.dd-foot__sheets b { color: var(--heading); }
.dd-foot__sheets span { color: var(--muted); font-weight: 400; }
.dd-foot__sheets:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.dd--tools .dd-more { margin-block-start: 12px; }
.dd-zone { min-width: 0; padding: 22px 24px; }
.dd-zone--paid { margin: 12px; margin-inline-start: 0; padding: 20px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 0; }
.dd-zone__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-block-end: 20px; padding-block-end: 16px; border-block-end: 1px solid var(--line); }
.dd-zone--paid .dd-zone__head { grid-template-columns: auto minmax(0, 1fr); margin-block-end: 16px; }
.dd-zone__title { margin: 0; font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; color: var(--heading); }
.dd-zone__text { margin: 2px 0 0; font-size: .86rem; color: var(--muted); }
.dd-tier { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: .76rem; font-weight: 750; letter-spacing: .02em; white-space: nowrap; }
.dd-tier .icon { width: 14px; height: 14px; }
.dd-tier--free { background: var(--success-soft); color: var(--success); }
.dd-tier--paid { background: var(--grad-accent); color: #fff; box-shadow: 0 6px 14px -8px rgba(248, 98, 25, .8); }
.dd-zone--paid .dd-sec + .dd-sec { margin-block-start: 16px; }
.dd-soon { flex: 1; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 22px 16px; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--surface); text-align: center; }
.dd-soon__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-block-end: 4px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-text); }
.dd-soon__icon .icon { width: 21px; height: 21px; }
.dd-soon__title { margin: 0; font-weight: 700; color: var(--heading); }
.dd-soon__text { margin: 0 0 6px; font-size: .86rem; color: var(--muted); max-width: 30ch; }
.dd-soon__link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 650; font-size: .88rem; text-decoration: none; }
.dd-soon__link .icon { width: 15px; height: 15px; transition: transform .15s var(--ease); }
.dd-soon__link:hover .icon { transform: translateX(3px); }

/* Company: two columns of described links */
.nav-panel--company {
  position: absolute; top: calc(100% + 16px); inset-inline-start: 50%; translate: -50% 0; width: min(680px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-panel); overflow: hidden;
}
.nav-panel--company:dir(rtl) { translate: 50% 0; }
.dd-company { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dd-company__col { min-width: 0; padding: 18px 14px 14px; }
.dd-company__col + .dd-company__col { border-inline-start: 1px solid var(--line); }
.dd-company__col .dd-label { padding-inline: 10px; }
.dd-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dd-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--text); text-decoration: none; transition: background-color .15s; }
.dd-item__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--navy-soft); color: var(--heading); transition: background .2s, color .2s; }
.dd-item__icon .icon { width: 17px; height: 17px; }
.dd-item__body { display: grid; min-width: 0; line-height: 1.3; }
.dd-item__name { font-weight: 650; font-size: .92rem; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-item__desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-item__desc { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-item:hover, .dd-item:focus-visible { background: var(--surface-2); }
.dd-zone--paid .dd-item__desc { white-space: normal; }
.dd-item:hover .dd-item__icon, .dd-item:focus-visible .dd-item__icon { background: var(--grad-accent); color: #fff; }
.dd-item:hover .dd-item__name { color: var(--accent-text); }

/* Footer bar */
.dd-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; padding: 12px 24px; border-block-start: 1px solid var(--line); background: var(--bg-soft); }
.dd-foot a { display: inline-flex; align-items: center; gap: 8px; color: var(--heading); font-weight: 600; font-size: .88rem; text-decoration: none; }
.dd-foot a:hover { color: var(--accent-text); }
.dd-foot .icon { width: 16px; height: 16px; color: var(--accent); }
.dd-foot__end { display: inline-flex; flex-wrap: wrap; gap: 8px 22px; margin-inline-start: auto; }
.dd-foot__note { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; color: var(--muted); font-size: .84rem; }
.dd-foot__note .icon { color: var(--success); }
.dd-foot--compact { justify-content: center; padding: 11px 18px; }

/* Medium desktops: tighten */
@media (max-width: 1365px) and (min-width: 1200px) {
  .dd--services { grid-template-columns: 252px minmax(0, 1fr); }
  .dd--spot { grid-template-columns: 260px minmax(0, 1fr); }
  .dd--tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dd-cols { column-gap: 20px; }
  .dd-groups--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Without JavaScript: every service area is listed in turn */
html:not(.js) .dd-tabs { display: none; }
html:not(.js) .dd-panel[hidden] { display: block !important; margin-block-start: 28px; }

/* Database menu: a navy card, because the data platform is its own product (views/partials/nav/database.php). */
.nav-panel--db {
  background:
    radial-gradient(560px 340px at 100% 0%, rgba(248, 98, 25, .26), transparent 68%),
    radial-gradient(420px 300px at 0% 100%, rgba(56, 109, 255, .22), transparent 70%),
    linear-gradient(135deg, #061238 0%, #0A2266 100%);
  border-color: rgba(255, 255, 255, .12); color: #C3CCE6; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(3, 12, 45, .75), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.nav-panel--db::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 18px 18px;
  mask-image: linear-gradient(90deg, #000, transparent 45%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 45%); }
.mega--db { position: relative; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, .9fr); gap: 0; padding: 0; }
.dbm-intro { padding: 28px 28px 26px; }
.dbm-sets, .dbm-side { padding: 26px 22px; border-inline-start: 1px solid rgba(255, 255, 255, .09); }
.dbm-side { background: rgba(3, 10, 38, .22); }
.dbm-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 11px 4px 9px; border-radius: 999px; background: rgba(248, 98, 25, .16); color: #FFB48A; font-size: .78rem; font-weight: 700; }
.dbm-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-orange); }
@media (prefers-reduced-motion: no-preference) { .dbm-pulse { animation: pulse-dot 2s var(--ease) infinite; } }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(248, 98, 25, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(248, 98, 25, 0); } }
.dbm-title { margin: 14px 0 8px; color: #fff; font-size: 1.42rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.dbm-text { margin: 0 0 18px; font-size: .9rem; line-height: 1.55; color: #B9C3DE; }
.dbm-search { position: relative; display: flex; align-items: center; margin-bottom: 16px; }
.dbm-search > .icon { position: absolute; left: 14px; width: 18px; height: 18px; color: #8F9CC4; pointer-events: none; }
.dbm-search input { width: 100%; height: 46px; padding: 0 52px 0 42px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: rgba(255, 255, 255, .07); color: #fff; font-size: .92rem; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.dbm-search input::placeholder { color: #8F9CC4; }
.dbm-search input:focus { outline: 0; border-color: #FF8A4C; background: rgba(255, 255, 255, .11); box-shadow: 0 0 0 4px rgba(248, 98, 25, .18); }
.dbm-search button { position: absolute; right: 6px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #FF8A4C, #F86219); color: #fff; cursor: pointer; transition: transform .15s; }
.dbm-search button:hover { transform: translateX(2px); }
.dbm-search button .icon { width: 16px; height: 16px; }
.dbm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.dbm-actions .btn .icon { width: 16px; height: 16px; }
.dbm-ghost { display: inline-flex; align-items: center; gap: 6px; color: #DCE3F5; font-weight: 650; font-size: .88rem; text-decoration: none; }
.dbm-ghost .icon { width: 15px; height: 15px; transition: transform .15s; }
.dbm-ghost:hover { color: #fff; }
.dbm-ghost:hover .icon { transform: translateX(3px); }
.dbm-label { margin: 0 0 12px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8F9CC4; }

/* The three databases as cards */
.dbm-cards { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.dbm-card { --tone: #FF8A4C; --tone-bg: rgba(248, 98, 25, .18); position: relative; border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; background: rgba(255, 255, 255, .045);
  transition: border-color .18s, background-color .18s, transform .18s, box-shadow .18s; }
.dbm-card--companies { --tone: #7FA6FF; --tone-bg: rgba(86, 132, 255, .2); }
.dbm-card--influencers { --tone: #E59BFF; --tone-bg: rgba(200, 110, 255, .18); }
.dbm-card:hover, .dbm-card:focus-within { border-color: color-mix(in srgb, var(--tone) 55%, transparent); background: rgba(255, 255, 255, .08); transform: translateY(-1px); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); }
.dbm-card__main { display: flex; align-items: center; gap: 13px; padding: 12px 12px 6px; color: #fff; text-decoration: none; }
.dbm-card__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tone-bg); color: var(--tone);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 30%, transparent); }
.dbm-card__icon .icon { width: 20px; height: 20px; }
.dbm-card__body { flex: 1; display: grid; gap: 2px; min-width: 0; }
.dbm-card__title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .98rem; }
.dbm-card__count { padding: 1px 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: #B9C3DE; font-size: .7rem; font-weight: 650; }
.dbm-card__text { overflow: hidden; color: #9FAACB; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.dbm-card__go { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #8F9CC4; transition: background-color .18s, color .18s, transform .18s; }
.dbm-card__go .icon { width: 15px; height: 15px; }
.dbm-card:hover .dbm-card__go { background: var(--tone); color: #061238; transform: translateX(2px); }
.dbm-card__try { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 10px 67px; padding: 2px 9px 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, .06); color: #C3CCE6; font-size: .74rem; font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s; }
.dbm-card__try .icon { width: 12px; height: 12px; color: var(--tone); }
.dbm-card__try:hover { background: var(--tone-bg); color: #fff; }

/* Where results go next */
.dbm-tools { display: grid; gap: 4px; list-style: none; margin: 0 0 18px; padding: 0; }
.dbm-tools a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: #fff; text-decoration: none; transition: background-color .15s; }
.dbm-tools a:hover { background: rgba(255, 255, 255, .07); }
.dbm-tools a > span:last-child { display: grid; line-height: 1.3; }
.dbm-tools b { font-size: .88rem; font-weight: 650; }
.dbm-tools small { color: #9FAACB; font-size: .76rem; }
.dbm-tools__icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.dbm-tools__icon .icon { width: 17px; height: 17px; }
.dbm-tools__icon--sheets { background: rgba(34, 197, 94, .16); color: #4ADE80; }
.dbm-tools__icon--email { background: rgba(86, 132, 255, .2); color: #93B4FF; }
.dbm-tools__icon--wa { background: rgba(37, 211, 102, .16); color: #4ADE80; }
.dbm-points { display: grid; gap: 8px; list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .09); }
.dbm-points li { display: flex; align-items: center; gap: 8px; color: #C3CCE6; font-size: .8rem; }
.dbm-points .icon { flex: none; width: 14px; height: 14px; padding: 2px; border-radius: 50%; background: rgba(248, 98, 25, .2); color: #FFA066; }
@media (prefers-reduced-motion: no-preference) {
  .nav-panel--db .dbm-card { animation: dbm-in .32s var(--ease) both; }
  .nav-panel--db .dbm-card:nth-child(2) { animation-delay: .04s; }
  .nav-panel--db .dbm-card:nth-child(3) { animation-delay: .08s; }
}
@keyframes dbm-in { from { opacity: 0; transform: translateY(6px); } }

/* 9. Mobile drawer --------------------------------------------------------- */
@media (max-width: 1199px) {
  .header-actions { margin-inline-start: auto; }
  .menu-toggle { display: inline-flex; }
  .header-actions .header-cta, .header-actions .lang-menu--compact { display: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 55; display: none; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 12px var(--gutter) 28px; background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  }
  .site-header.is-menu-open .site-nav { display: flex; }
  .site-header.is-menu-open .site-header__bar { inset: 0; border-radius: 0; border-width: 0 0 1px; background: var(--bg); box-shadow: none; }
  .site-header.is-menu-open .icon-menu { display: none; }
  .site-header.is-menu-open .icon-close { display: block; }
  .site-header.has-panel::after { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-block-end: 1px solid var(--line); }
  .nav-item--database { margin: 14px 0 0; padding: 0; border: 0; }
  .nav-link { width: 100%; justify-content: space-between; min-height: 56px; padding: 14px 4px; font-size: 1.06rem; border-radius: 0; }
  .nav-link:hover, .nav-item.is-open > .nav-link { background: none; }
  .nav-link--db { justify-content: flex-start; padding: 12px 14px; border-radius: 14px; }
  .nav-link--db .nav-caret { margin-inline-start: auto; }
  .nav-badge { display: inline-block; }
  .nav-panel--mega, .nav-panel--small {
    position: static; translate: none; width: auto; max-height: none; overflow: visible; box-shadow: none; border: 0; border-radius: 0;
    padding: 0 0 14px; background: transparent; animation: none;
  }
  .mega, .mega--cards, .mega--services { display: block; padding: 0; }
  .mega-side, .mega-panels, .mega-card, .mega-bar { display: none !important; }
  .nav-panel--company { position: static; translate: none; width: auto; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 14px; background: transparent; animation: none; overflow: visible; }
  .dd, .dd--services, .dd--spot, .dd--tools { display: block; }
  .dd-rail, .dd-main, .dd-spot, .dd-foot, .dd-zone__text, .dd-zone__head .dd-btn, .dd-item__desc { display: none !important; }
  .dd--spot .dd-main { display: block !important; padding: 4px 0 0; }
  .dd-cols { columns: 2 220px; column-gap: 18px; }
  .dd-cols .dd-sec { margin-block-end: 18px; }
  .dd-zone { padding: 4px 0 0; }
  .dd-zone--paid { margin: 8px 0 0; padding: 14px; }
  .dd-zone__head { grid-template-columns: auto minmax(0, 1fr); margin-block-end: 12px; padding-block-end: 10px; }
  .dd-soon { padding: 14px; }
  .dd-company { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .dd-company__col { padding: 4px 0 0; }
  .dd-company__col + .dd-company__col { border: 0; }
  .dd-company__col .dd-label { padding-inline: 4px; }
  .dd-item { padding: 6px 4px; grid-template-columns: 32px minmax(0, 1fr); }
  .dd-item__name, .dd-item__desc { white-space: normal; }
  .dd-item__icon { width: 32px; height: 32px; }
  .mega-cats, .mega-cats--3, .mega-cats--5 { columns: 2 220px; column-gap: 12px; }
  .mega-mobile { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
  .mega-mobile a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; }
  .mega-mobile .icon { width: 20px; height: 20px; color: var(--accent); }
  .mega-mobile__count { margin-inline-start: auto; font-size: .8rem; color: var(--muted); }
  .nav-panel--db { margin-block-start: 10px; padding: 0; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .12); }
  .nav-item--database .nav-panel--db { background: radial-gradient(420px 260px at 100% 0%, rgba(248, 98, 25, .22), transparent 70%), linear-gradient(135deg, #061238 0%, #0A2266 100%); }
  .mega--db { display: grid; grid-template-columns: minmax(0, 1fr); }
  .dbm-intro, .dbm-sets, .dbm-side { padding: 18px; }
  .dbm-sets, .dbm-side { border-inline-start: 0; border-block-start: 1px solid rgba(255, 255, 255, .1); }
  .dbm-card__try { margin-left: 12px; }
  .drawer-extra { display: grid; gap: 18px; margin-block-start: 24px; }
  .drawer-contact { display: grid; gap: 10px; }
  .drawer-contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); text-decoration: none; font-weight: 600; }
  .drawer-contact .icon { width: 18px; height: 18px; color: var(--accent); }
  .drawer-settings { display: flex; flex-wrap: wrap; gap: 8px; color: var(--heading); }
  .drawer-settings .setting-btn { border: 1px solid var(--line); min-height: 40px; }
  .drawer-settings .setting-btn:hover { background: var(--surface-2); color: var(--heading); }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .mega-cats, .mega-cats--3, .mega-cats--5 { columns: 1; }
  .dd-cols { columns: 1; }
  .brand-name { font-size: 1.24rem; }
  .brand-mark { width: 34px; height: 34px; }
  .header-actions { gap: 4px; }
  .header-actions .theme-toggle { display: none; }
}

/* Currency picker (views/partials/currency-switch.php) ------------------------ */
.cur-switch { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.cur-switch__label { display: inline-flex; align-items: center; gap: 6px; padding-inline: 8px 4px; color: var(--muted); font-size: .82rem; font-weight: 650; }
.cur-switch__label .icon { width: 15px; height: 15px; color: var(--accent); }
.cur-switch__btn { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 6px 12px; border-radius: 10px; color: var(--muted); font-weight: 650; font-size: .88rem; text-decoration: none; transition: background-color .15s, color .15s, box-shadow .15s; }
.cur-switch__btn b { color: var(--heading); font-weight: 700; }
.cur-switch__btn:hover { color: var(--heading); background: var(--surface); }
.cur-switch__btn[aria-pressed="true"] { background: var(--surface); color: var(--heading); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.cur-switch__btn[aria-pressed="true"] b { color: var(--accent-text); }
@media (max-width: 480px) { .cur-switch__label { display: none; } .cur-switch__btn { padding-inline: 10px; } }

/* 10. Search dialog -------------------------------------------------------- */
.search-dialog {
  width: min(680px, calc(100vw - 24px)); max-height: min(640px, calc(100vh - 48px)); margin: 10vh auto auto; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-float);
  overflow: hidden;
}
.search-dialog[open] { display: flex; flex-direction: column; animation: panel-in .18s var(--ease); }
.search-dialog::backdrop { background: rgba(3, 15, 54, .5); backdrop-filter: blur(3px); }
.search-dialog__form { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-block-end: 1px solid var(--line); }
.search-dialog__icon { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search-dialog__input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; font-size: 1.1rem; color: var(--heading); outline: none; }
.search-dialog__input::-webkit-search-cancel-button { display: none; }
.search-dialog__close { padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-soft); color: var(--muted); cursor: pointer; }
.search-dialog__body { flex: 1; overflow-y: auto; padding: 8px; }
.search-dialog__status, .search-dialog__empty { margin: 0; padding: 16px 12px; color: var(--muted); font-size: .94rem; }
.search-dialog__empty a { font-weight: 650; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results__group { padding: 12px 12px 6px; font-size: .76rem; font-weight: 700; color: var(--muted); }
.search-result a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.search-result a .t { font-weight: 650; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result a .d { font-size: .86rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.search-result a .t mark { background: var(--accent-soft); color: inherit; border-radius: 3px; }
.search-result[aria-selected="true"] a, .search-result a:hover { background: var(--surface-2); }
.search-dialog__hint { margin: 0; padding: 10px 16px; border-block-start: 1px solid var(--line); font-size: .78rem; color: var(--muted); background: var(--bg-soft); }
@media (max-width: 640px) { .search-dialog { margin-top: 12px; max-height: calc(100vh - 24px); } .search-dialog__hint { display: none; } }

/* 11. Footer ---------------------------------------------------------------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--footer-bg) linear-gradient(180deg, var(--footer-bg) 0%, var(--footer-deep) 100%); color: #C3CCE6; font-size: .94rem; }
.site-footer::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0; mix-blend-mode: screen;
  background: radial-gradient(720px 420px at 4% -8%, rgba(255, 112, 40, .2), transparent 68%), radial-gradient(760px 520px at 100% 30%, rgba(72, 124, 255, .14), transparent 70%);
}
.site-footer a { color: #DCE3F5; }
.site-footer .brand-name, .site-footer h2, .site-footer .footer-heading { color: #fff; }
.site-footer .brand-name span { color: var(--brand-orange); }
.site-footer .brand-mark { box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .55); }
.footer-cta { border-block-end: 1px solid rgba(255, 255, 255, .1); }
.footer-cta__inner { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.55fr); gap: 28px 56px; align-items: center; padding-block: clamp(40px, 6vw, 64px); }
.footer-cta__text h2 { margin: 0 0 8px; font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.2rem); }
.footer-cta__text p { margin: 0; color: #C3CCE6; max-width: 46ch; }
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.contact-card {
  display: flex; gap: 12px; align-items: center; height: 100%; padding: 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); text-decoration: none; transition: background-color .15s, border-color .15s, transform .2s var(--ease);
}
.site-footer .contact-card { color: #fff; }
.contact-card:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .28); transform: translateY(-2px); }
.contact-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .1); flex: none; }
.contact-card__icon .icon { width: 20px; height: 20px; }
.contact-card__body { display: grid; gap: 2px; min-width: 0; }
.contact-card__body strong { font-weight: 650; }
.contact-card__body span { font-size: .84rem; color: #C3CCE6; overflow-wrap: anywhere; }
.contact-card--primary { background: var(--brand-orange); border-color: var(--brand-orange); }
.site-footer .contact-card--primary, .contact-card--primary .contact-card__body span { color: #061238; }
.contact-card--primary:hover { background: #FF7A36; border-color: #FF7A36; }
.contact-card--primary .contact-card__icon { background: rgba(6, 18, 56, .12); }
@media (max-width: 1000px) { .footer-cta__inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .contact-cards { grid-template-columns: minmax(0, 1fr); } }

.footer-main { padding-block: clamp(40px, 6vw, 64px) 32px; }
.footer-top { display: grid; grid-template-columns: 1.15fr 1fr .85fr; gap: 32px 56px; padding-block-end: 40px; border-block-end: 1px solid rgba(255, 255, 255, .1); }
.footer-about { margin: 16px 0 16px; max-width: 42ch; }
.footer-heading { margin: 0 0 12px; font-size: .95rem; font-weight: 700; letter-spacing: 0; }
.footer-heading--spaced { margin-block-start: 26px; }
.footer-newsletter p, .footer-search p { margin: 0 0 12px; }
/* "Preferred source on Google" (as on leadstal.com and botscraper.com). */
.pref-source {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: #fff; color: #1F2937 !important; text-decoration: none; font-size: .86rem; font-weight: 650; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .6);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.pref-source:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .7); }
.pref-source__g { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #E5E7EB; }
.pref-source__g svg { width: 16px; height: 16px; }
.pref-source__arrow { width: 15px; height: 15px; color: #6B7280; }
.footer-reviews { margin: 22px 0 0; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.footer-reviews__title { margin: 0 0 2px; color: #fff; font-weight: 650; font-size: .94rem; }
.footer-reviews__text { margin: 0 0 12px; font-size: .86rem; color: #A9B4D2; }
.review-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.review-links a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); color: #fff; text-decoration: none; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.review-links a:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.review-links .platform-logo { width: 20px; height: 20px; border-radius: 6px; }
.site-footer .input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: #fff; }
.site-footer .input::placeholder { color: #A9B4D2; }
.site-footer .input:focus { border-color: #7FA2FF; box-shadow: 0 0 0 3px rgba(127, 162, 255, .3); }
.site-footer .form-note { color: #A9B4D2; }
.site-footer .form-status.is-success { color: #4ADE80; }
.site-footer .form-status.is-error { color: #FF8A80; }
.site-footer .btn--secondary { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.site-footer .btn--secondary:hover { border-color: #fff; }
.site-footer .btn--primary { background: var(--brand-orange); color: #061238; }
.site-footer .btn--primary:hover { background: #FF7A36; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social-links a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .14); color: #DCE3F5; transition: background-color .15s, color .15s, transform .2s var(--ease); }
.social-links a:hover { background: rgba(255, 255, 255, .1); color: #fff; transform: translateY(-2px); }
.social-links .icon { width: 17px; height: 17px; }
@media (max-width: 1000px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }

.footer-links { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 24px; padding-block: 40px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a, .footer-col .link-button {
  display: inline-block; max-width: 100%; padding-block: 3px; color: #C3CCE6; text-decoration: none; font-size: .9rem; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: top;
}
.footer-col a:hover, .footer-col .link-button:hover { color: #fff; text-decoration: underline; }
.footer-col .footer-all { color: #fff; font-weight: 650; }
@media (max-width: 1180px) { .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; } .footer-col a { font-size: .86rem; } }

.ai-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.ai-summary__label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 650; color: var(--heading); }
.ai-summary__label .icon { color: var(--accent); }
.ai-summary__links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ai-summary__links a { display: inline-block; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--heading); text-decoration: none; font-size: .86rem; font-weight: 600; }
.ai-summary__links a:hover { border-color: var(--accent); color: var(--accent-text); }
.site-footer .ai-summary { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
.site-footer .ai-summary__label { color: #fff; }
.site-footer .ai-summary__label .icon { color: var(--brand-orange); }
.site-footer .ai-summary__links a { border-color: rgba(255, 255, 255, .2); color: #fff; }
.site-footer .ai-summary__links a:hover { border-color: var(--brand-orange); color: #fff; background: rgba(248, 98, 25, .14); }
/* One row under the link columns: "Summarize this page with AI" and the legal links */
.footer-meta { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.footer-meta .ai-summary { height: 100%; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 18px 20px; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); }
.footer-legal__title { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #fff; font-size: 1rem; font-weight: 650; }
.footer-legal__title .icon { width: 18px; height: 18px; color: var(--brand-orange); }
.footer-legal ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; list-style: none; margin: 0; padding: 0; }
.footer-legal li { display: inline-flex; align-items: center; }
.footer-legal li:not(:last-child)::after { content: "·"; margin: 0 12px; color: rgba(255, 255, 255, .34); font-weight: 700; }
.footer-legal a, .footer-legal .link-button { color: #C3CCE6; text-decoration: none; font-size: .86rem; white-space: nowrap; }
.footer-sheets small { white-space: nowrap; }
@media (max-width: 1200px) { .footer-sheets small { white-space: normal; } }
.footer-legal a:hover, .footer-legal .link-button:hover { color: #fff; text-decoration: underline; }
@media (max-width: 1000px) { .footer-meta { grid-template-columns: minmax(0, 1fr); } }
/* "Try ExtractHelp Sheets" card in the footer's brand column */
.footer-sheets { display: flex; align-items: center; gap: 12px; max-width: 380px; margin-block: 16px 4px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.footer-sheets:hover { border-color: var(--brand-orange); background: rgba(248, 98, 25, .12); }
.footer-sheets__icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--brand-orange); color: #fff; }
.footer-sheets__icon .icon { width: 19px; height: 19px; }
.footer-sheets b { display: block; font-size: .95rem; }
.footer-sheets small { display: block; color: #C3CCE6; font-size: .8rem; line-height: 1.35; }
.footer-sheets__go { flex: none; width: 16px; height: 16px; margin-inline-start: auto; }
.footer-bottom { background: var(--footer-deep); }
.footer-bottom__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; min-height: 60px; padding-block: 10px; font-size: .85rem; }
.footer-bottom p { margin: 0; color: #A9B4D2; }
.footer-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: #DCE3F5; }

/* 12. Inner-page components -------------------------------------------------- */
.page-hero { padding-block: clamp(40px, 5vw, 72px) clamp(36px, 5vw, 60px); background: var(--bg-soft); border-block-end: 1px solid var(--line); }
.page-hero h1 { max-width: 22em; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); }
.page-hero .lead { margin-block-end: 0; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 26px; }
.page-hero__grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .page-hero__grid { grid-template-columns: minmax(0, 1fr); } }
.summary-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.summary-box h2 { font-size: .95rem; margin-block-end: 14px; color: var(--muted); letter-spacing: 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--heading); text-decoration: underline; }

.card-grid { display: grid; gap: 16px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .card-grid--4, .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid--4, .card-grid--3, .card-grid--2 { grid-template-columns: minmax(0, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--text); text-decoration: none;
}
.card--compact { padding: 20px; }
.card--link { transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.card--link:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-strong)); box-shadow: var(--shadow); transform: translateY(-2px); }
.card--link:hover .card__title { color: var(--accent-text); }
.card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy-soft); color: var(--heading); }
.card__icon--accent { background: var(--accent-soft); color: var(--accent); }
.card__icon .icon { width: 22px; height: 22px; }
.card__title { margin: 6px 0 0; font-size: 1.1rem; transition: color .15s; }
.card__text { margin: 0; color: var(--muted); font-size: .95rem; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-block-start: auto; padding-block-start: 8px; font-weight: 650; font-size: .9rem; color: var(--accent-text); }
.card__more .icon { width: 16px; height: 16px; }
.card .badge { position: absolute; top: 16px; inset-inline-end: 16px; }
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1080px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .tile-grid { grid-template-columns: minmax(0, 1fr); } }
.tile {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); color: var(--heading); font-weight: 620; text-decoration: none; transition: border-color .15s; white-space: nowrap;
}
.tile .icon { width: 22px; height: 22px; color: var(--accent); }
.tile:hover { border-color: var(--accent); }
.tile--draft { opacity: .8; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step__num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; margin-block-end: 14px; background: var(--brand-navy); color: #fff; font-weight: 700; }
.step h3 { margin-block-end: 8px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 650; color: var(--heading); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { width: 20px; height: 20px; color: var(--muted); transition: transform .2s var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(180deg); }
.faq__answer { padding: 0 22px 18px; color: var(--muted); }
.faq__answer p { margin: 0; }

/* Closing call to action: a navy panel in the style of the page heroes, at the original size
   (padding, gaps and type as before 8 Nov 2026; the owner asked for the earlier dimensions). */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-xl); background: var(--hero-bg) var(--ink-grad); color: var(--hero-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 60px -36px rgba(5, 28, 94, .6);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 75% 90% at 70% 40%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 90% at 70% 40%, #000 20%, transparent 80%);
}
.cta-band::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0; mix-blend-mode: screen;
  background: radial-gradient(460px 320px at 92% -20%, var(--glow-warm), transparent 68%), radial-gradient(420px 300px at 0% 130%, var(--glow-cool), transparent 70%);
}
.cta-band h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.cta-band p { margin: 0; max-width: 52ch; color: var(--hero-muted); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

.prose { max-width: 75ch; }
.prose h2 { margin-block-start: 2em; font-size: 1.5rem; }
.prose h3 { margin-block-start: 1.6em; }
.prose ul, .prose ol { margin: 0 0 1rem; }
.prose li { margin-block-end: .35rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.prose th, .prose td { text-align: start; padding: 10px 12px; border-block-end: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--heading); background: var(--bg-soft); }
.prose > h2:first-child, .prose > h3:first-child { margin-block-start: 0; }
.legal-meta { color: var(--muted); font-size: .92rem; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.panel { padding: clamp(22px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel--soft { background: var(--bg-soft); }
.panel h2, .panel h3 { margin-block-start: 0; }
.panel > .h3, .panel h2.h3 { display: flex; align-items: center; gap: 10px; margin-block: 14px 10px; }
.panel h2.h3 .icon { color: var(--accent); }
.panel__actions { margin-block-start: 22px; }
.panel .check-list { margin-block-start: 8px; }
.h3 { font-size: 1.15rem; }
.field-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.field-list li { padding: 5px 11px; border-radius: 8px; background: var(--navy-soft); color: var(--heading); font-size: .88rem; font-weight: 600; font-family: var(--font-mono); }
.group-title { display: flex; align-items: center; gap: 10px; margin-block: 40px 16px; font-size: 1rem; color: var(--muted); letter-spacing: 0; }
.group-title:first-child { margin-block-start: 0; }
.category-block + .category-block { margin-block-start: clamp(48px, 6vw, 72px); }
.category-block__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-block-end: 20px; }
.category-block__head h2 { display: flex; align-items: center; gap: 12px; margin: 0; }
.category-block__head p { margin: 6px 0 0; color: var(--muted); max-width: 70ch; }
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 960px) { .service-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-list { grid-template-columns: minmax(0, 1fr); } }
.service-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--heading); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.service-list a > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.service-list a:hover { border-color: var(--accent); color: var(--accent-text); }
.alert { padding: 16px 18px; border-radius: var(--r); border: 1px solid; margin-block-end: 20px; }
.alert--success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 40%, transparent); }
.alert--error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.alert strong { display: block; color: var(--heading); }
.alert p { margin: 4px 0 0; }
.search-page-form { display: flex; gap: 8px; margin-block-start: 20px; max-width: 560px; }
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.result-list a { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); }
.result-list a:hover { border-color: var(--accent); }
.result-list__type { font-size: .78rem; font-weight: 650; color: var(--muted); }
.result-list__title { font-weight: 650; color: var(--heading); }
.result-list__text { font-size: .9rem; color: var(--muted); }

/* 13. Cookie banner, notices, floating button -------------------------------- */
.cookie {
  position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 90; width: min(460px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-float);
}
.cookie__inner { padding: 20px; display: grid; gap: 14px; }
.cookie__title { font-size: 1.04rem; margin: 0 0 6px; }
.cookie__text p { margin: 0; color: var(--muted); font-size: .9rem; }
.cookie__prefs { display: grid; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--bg-soft); }
.pref { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.pref strong { color: var(--heading); }
.pref input { width: 18px; height: 18px; margin-block-start: 3px; accent-color: var(--btn-bg); flex: none; }
.pref__tag { font-size: .74rem; font-weight: 700; color: var(--accent-text); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.notice { padding: 10px 0; background: var(--accent-soft); border-block-end: 1px solid var(--line); color: var(--heading); font-size: .92rem; font-weight: 600; }
.notice--draft { background: var(--navy-soft); }
.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 50; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%; background: #1FAF54; color: #fff; box-shadow: 0 14px 30px -10px rgba(31, 175, 84, .7);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(31, 175, 84, .5); }
@media (prefers-reduced-motion: no-preference) { .wa-float::before { animation: wa-ring 2.8s var(--ease) infinite; } }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 27px; height: 27px; }
@media (max-width: 640px) { body:has(.cookie:not([hidden])) .wa-float { opacity: 0; pointer-events: none; } }

/* 14b. Site assistant (views/partials/assistant.php, assets/js/assistant.js) ----------------- */
.ast { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 60; }
.ast-fab {
  position: relative; display: grid; place-items: center; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 30% 25%, #ff8a4c, #F86219 55%, #d9480f); color: #fff;
  box-shadow: 0 16px 34px -12px rgba(248, 98, 25, .75); transition: transform .2s var(--ease), box-shadow .2s;
}
.ast-fab:hover { transform: scale(1.06); }
.ast-fab:focus-visible { outline: 3px solid #051C5E; outline-offset: 3px; }
.ast-fab .icon { width: 26px; height: 26px; }
.ast-fab__x { display: none; }
.ast.is-open .ast-fab__icon { display: none; }
.ast.is-open .ast-fab__x { display: grid; }
.ast-fab::after { content: ""; position: absolute; top: 2px; inset-inline-end: 2px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.ast.is-open .ast-fab::after { display: none; }
.ast-panel {
  position: absolute; bottom: 74px; inset-inline-end: 0; display: flex; flex-direction: column; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100dvh - 120px));
  border-radius: 20px; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: 0 30px 70px -20px rgba(5, 28, 94, .45); overflow: hidden;
}
.ast-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .ast-panel:not([hidden]) { animation: ast-in .22s var(--ease); } }
@keyframes ast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.ast-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; background: #051C5E; color: #fff; }
.ast-head__mark { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: #F86219; }
.ast-head__mark .icon { width: 20px; height: 20px; }
.ast-head div { flex: 1; min-width: 0; }
.ast-head h2 { margin: 0; color: #fff; font-size: 1rem; }
.ast-head p { margin: 0; color: rgba(255, 255, 255, .72); font-size: .78rem; }
.ast-head__btn { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .8); cursor: pointer; }
.ast-head__btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.ast-head__btn .icon { width: 17px; height: 17px; }
.ast-log { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px; overflow-y: auto; overscroll-behavior: contain; background: var(--bg-soft); }
.ast-msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.ast-msg p { margin: 0; }
.ast-msg p + p, .ast-msg p + ol, .ast-msg p + ul, .ast-msg ol + p, .ast-msg ul + p { margin-block-start: 8px; }
.ast-msg ol, .ast-msg ul { margin: 6px 0 0; padding-inline-start: 20px; }
.ast-msg li + li { margin-block-start: 4px; }
.ast-msg a { color: var(--accent-text); font-weight: 650; }
.ast-msg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-end-start-radius: 6px; }
.ast-msg--me { align-self: flex-end; background: #051C5E; color: #fff; border-end-end-radius: 6px; }
.ast-links { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 10px; }
.ast-links a { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: .8rem; font-weight: 700; text-decoration: none; }
.ast-links a:hover { background: #F86219; color: #fff; }
.ast-typing { display: flex; gap: 4px; padding: 4px 0; }
.ast-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .4; }
@media (prefers-reduced-motion: no-preference) { .ast-typing i { animation: ast-dot 1s infinite; } .ast-typing i:nth-child(2) { animation-delay: .15s; } .ast-typing i:nth-child(3) { animation-delay: .3s; } }
@keyframes ast-dot { 50% { opacity: 1; transform: translateY(-3px); } }
.ast-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; background: var(--surface); }
.ast-chips[hidden] { display: none; }
.ast-chip { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--heading); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.ast-chip:hover { border-color: #F86219; color: var(--accent-text); }
.ast-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: var(--surface); }
.ast-form textarea { flex: 1; min-height: 42px; max-height: 120px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg); color: var(--text); font: inherit; font-size: .92rem; resize: none; }
.ast-form textarea:focus { outline: 2px solid #F86219; outline-offset: 0; border-color: transparent; }
.ast-send { display: grid; place-items: center; flex: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 12px; background: #F86219; color: #fff; cursor: pointer; }
.ast-send:hover { background: #d9480f; }
.ast-send .icon { width: 18px; height: 18px; }
.ast-foot { display: flex; align-items: center; gap: 12px; padding: 8px 16px 12px; background: var(--surface); color: var(--muted); font-size: .78rem; }
.ast-foot a { display: inline-flex; align-items: center; gap: 4px; color: var(--heading); font-weight: 650; text-decoration: none; }
.ast-foot a:hover { color: var(--accent-text); }
.ast-foot .icon { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .ast { inset-inline-end: 14px; bottom: 14px; }
  .ast-panel { position: fixed; inset: auto 8px 84px 8px; width: auto; height: min(78dvh, 640px); }
  body:has(.cookie:not([hidden])) .ast:not(.is-open) { opacity: 0; pointer-events: none; }
}
/* Full-screen apps (Sheets): a smaller button that sits above the status bar. */
.is-fs .ast { bottom: 46px; inset-inline-end: 14px; }
.is-fs .ast-fab { width: 46px; height: 46px; box-shadow: 0 10px 24px -10px rgba(248, 98, 25, .7); }
.is-fs .ast-fab .icon { width: 21px; height: 21px; }
.is-fs .ast-panel { bottom: 58px; }
@media print { .ast { display: none !important; } }

/* 14. Motion & utilities ------------------------------------------------------ */
/* Gentle reveal for section heads and key visuals, driven by scroll (no JavaScript).
   Browsers without scroll-driven animations simply show the content. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
/* The fade finishes early (content is fully readable as soon as it shows); the rise continues with the scroll. */
@keyframes reveal-in { from { opacity: 0; transform: translateY(24px); } 15% { opacity: 1; } to { opacity: 1; transform: none; } }
/* Cards in grids rise in one by one as they scroll into view. Uses the separate `translate`
   property so hover effects that use `transform` keep working. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    :root:not(.motion-paused) :is(.uc-grid, .rel-grid, .blog-grid, .rv-grid, .platform-grid, .opt-grid, .value-grid, .svc-cards, .ind-cards, .field-groups, .aud-services) > * {
      animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
    }
  }
}
@keyframes reveal-up { from { opacity: 0; translate: 0 22px; scale: .98; } 20% { opacity: 1; } to { opacity: 1; translate: none; scale: none; } }
/* FAQ answers open and close smoothly where the browser can animate to the content's height. */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    :is(details.faq-item, details.faq__item) { interpolate-size: allow-keywords; }
    :is(details.faq-item, details.faq__item)::details-content { block-size: 0; overflow: clip; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
    :is(details.faq-item, details.faq__item)[open]::details-content { block-size: auto; }
  }
}
/* Page load: the hero copy settles in one short sequence (the headline only moves, it never
   fades, so the largest text paints immediately). Uses `translate`, leaving `transform` free. */
@media (prefers-reduced-motion: no-preference) {
  :root:not(.motion-paused) :is(.hero__copy, .ph__copy) > * { animation: settle .7s var(--ease) both; }
  :root:not(.motion-paused) :is(.hero__copy, .ph__copy) > h1 { animation-name: settle-solid; }
  :root:not(.motion-paused) :is(.hero__copy, .ph__copy) > :nth-child(2) { animation-delay: .05s; }
  :root:not(.motion-paused) :is(.hero__copy, .ph__copy) > :nth-child(3) { animation-delay: .1s; }
  :root:not(.motion-paused) :is(.hero__copy, .ph__copy) > :nth-child(4) { animation-delay: .15s; }
  :root:not(.motion-paused) :is(.hero__copy, .ph__copy) > :nth-child(5) { animation-delay: .2s; }
  :root:not(.motion-paused) :is(.hero__copy, .ph__copy) > :nth-child(n + 6) { animation-delay: .25s; }
  :root:not(.motion-paused) :is(.hero__visual, .ph__visual) { animation: settle .9s var(--ease) .12s both; }
}
@keyframes settle { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: none; } }
@keyframes settle-solid { from { translate: 0 18px; } to { translate: none; } }
/* Paused motion must never hide content: scroll reveals are switched off instead. */
/* Smooth cross-fade between pages in browsers that support view transitions. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.text-muted { color: var(--muted); }
.mt-0 { margin-block-start: 0; }
.center { text-align: center; }

/* Database menu: dataset rows are links */

/* Header account button (Sign in / your initial when signed in) */
.header-acct { text-decoration: none; }
.header-acct__av { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--grad-accent); color: #fff; font-size: .8rem; font-weight: 800; }
.drawer-extra .btn--ghost .icon { width: 18px; height: 18px; }
@media (max-width: 1199px) { .header-acct { display: none; } }
/* Header inbox button (signed in) with the unread count */
.header-inbox { position: relative; text-decoration: none; }
.header-inbox__n { position: absolute; inset-block-start: -6px; inset-inline-end: -6px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px var(--bg); }

/* Wide tables in text pages scroll sideways on small screens */
.table-scroll { overflow-x: auto; margin: 1rem 0 1.5rem; -webkit-overflow-scrolling: touch; }
.table-scroll > table { margin: 0; min-width: 560px; }
.table-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* A review platform whose link is not set yet (test copies only, review_href()) */
[data-review-missing] { opacity: .55; cursor: not-allowed; }

/* ---------------------------------------------------------------- Custom scrollbars (assets/js/scrollbar.js)
   A thin line with a rounded orange handle and three grip lines. Only on mouse/touchpad screens (html.cs). */
html.cs, html.cs * { scrollbar-width: none; }
html.cs ::-webkit-scrollbar { display: none; width: 0; height: 0; }
.csb { position: absolute; z-index: 30; box-sizing: border-box; touch-action: none; cursor: pointer; }
.csb[hidden] { display: none; }
.csb--y { width: 11px; }
.csb--x { height: 11px; }
.csb--page { position: fixed; z-index: 2147483000; }
.csb--page.csb--y { top: 0; right: 0; bottom: 0; }
.csb--page.csb--x { left: 0; right: 0; bottom: 0; }
/* No track line behind the handle, and no white ring around it: just the rounded orange grip. */
.csb__thumb { position: absolute; display: flex; align-items: center; justify-content: center; gap: 3px; border-radius: 999px; background: var(--brand-orange, #F86219); box-shadow: 0 1px 2px rgba(5, 28, 94, .3); cursor: grab; will-change: transform; transition: width .15s, height .15s, left .15s, top .15s, background-color .15s; }
.csb--y .csb__thumb { top: 0; left: 2px; width: 7px; flex-direction: column; }
.csb--x .csb__thumb { left: 0; top: 2px; height: 7px; flex-direction: row; }
.csb__thumb i { display: block; flex: none; border-radius: 1px; background: rgba(255, 255, 255, .92); }
.csb--y .csb__thumb i { width: 3px; height: 1.5px; }
.csb--y .csb__thumb i:nth-child(2) { width: 5px; }
.csb--x .csb__thumb i { width: 1.5px; height: 3px; }
.csb--x .csb__thumb i:nth-child(2) { height: 5px; }
.csb:hover .csb__thumb, .csb.is-drag .csb__thumb { background: #e2530c; }
.csb--y:hover .csb__thumb, .csb--y.is-drag .csb__thumb { left: 1px; width: 9px; }
.csb--x:hover .csb__thumb, .csb--x.is-drag .csb__thumb { top: 1px; height: 9px; }
.csb.is-drag .csb__thumb { cursor: grabbing; }
html.cs-dragging, html.cs-dragging * { user-select: none !important; cursor: grabbing !important; }
@media (prefers-reduced-motion: reduce) { .csb__thumb { transition: none; } }
@media print { .csb { display: none !important; } }

/* Tools menu (views/partials/nav/tools.php): free and paid tools as two matching cards of equal width. */
.ddt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 14px; }
.ddt-zone { --tone: var(--accent); --tone-soft: var(--accent-soft); --tone-text: var(--accent-text);
  display: flex; flex-direction: column; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 5%, var(--surface)) 0%, var(--surface) 140px); }
.ddt-zone--paid { --tone: #2F5BEA; --tone-soft: rgba(47, 91, 234, .1); --tone-text: #2449C7; }
:root[data-theme="dark"] .ddt-zone--paid { --tone: #7FA6FF; --tone-soft: rgba(127, 166, 255, .14); --tone-text: #9DBBFF; }
.ddt-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ddt-head__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--tone-soft); color: var(--tone-text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 22%, transparent); }
.ddt-head__icon .icon { width: 21px; height: 21px; }
.ddt-head__title { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--heading); font-size: 1.06rem; font-weight: 750; letter-spacing: -.01em; }
.ddt-head__sub { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }
.ddt-pill { padding: 1px 8px; border-radius: 99px; font-size: .68rem; font-weight: 750; letter-spacing: .02em; }
.ddt-pill--free { background: rgba(22, 163, 74, .12); color: #15803d; }
.ddt-pill--pro { background: linear-gradient(135deg, #FF8A4C, #F86219); color: #fff; }
:root[data-theme="dark"] .ddt-pill--free { color: #4ade80; }
.ddt-head__all { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--heading); font-size: .84rem; font-weight: 650; text-decoration: none; white-space: nowrap; transition: border-color .15s, background-color .15s, color .15s; }
.ddt-head__all .icon { width: 14px; height: 14px; transition: transform .15s; }
.ddt-head__all:hover { border-color: var(--tone); background: var(--tone-soft); color: var(--tone-text); }
.ddt-head__all:hover .icon { transform: translateX(2px); }
.ddt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.ddt-item { display: flex; align-items: center; gap: 12px; height: 100%; padding: 9px 10px; border-radius: 12px; color: inherit; text-decoration: none; transition: background-color .15s; }
.ddt-item:hover, .ddt-item:focus-visible { background: color-mix(in srgb, var(--tone) 7%, var(--surface)); }
.ddt-item__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--heading); transition: background-color .15s, color .15s, transform .15s; }
.ddt-item__icon .icon { width: 18px; height: 18px; }
.ddt-item:hover .ddt-item__icon { background: var(--tone); color: #fff; transform: scale(1.05); }
.ddt-item__body { display: grid; gap: 1px; min-width: 0; line-height: 1.3; }
.ddt-item__name { color: var(--heading); font-size: .89rem; font-weight: 650; }
.ddt-item__desc { display: flex; align-items: center; gap: 6px; overflow: hidden; color: var(--muted); font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }
.ddt-kind { display: inline-flex; align-items: center; gap: 4px; }
.ddt-kind .icon { width: 12px; height: 12px; }
.ddt-price { padding: 0 7px; border-radius: 99px; background: var(--tone-soft); color: var(--tone-text); font-weight: 650; }
.ddt-soon { display: grid; justify-items: start; gap: 8px; padding: 10px 4px; }
.ddt-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: center; padding: 0 14px 14px; }
.ddt-foot__link { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: 14px; color: inherit; text-decoration: none; transition: border-color .15s, background-color .15s; }
.ddt-foot__link:hover { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.ddt-foot__link > span:last-child { display: grid; line-height: 1.3; }
.ddt-foot__link b { color: var(--heading); font-size: .88rem; }
.ddt-foot__link small { color: var(--muted); font-size: .77rem; }
.ddt-foot__icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(10, 102, 194, .12); color: #0A66C2; }
.ddt-foot__icon--sheets { background: rgba(22, 163, 74, .12); color: #15803d; }
.ddt-foot__icon .icon { width: 17px; height: 17px; }
.ddt-foot__note { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: .8rem; }
.ddt-foot__note .icon { width: 15px; height: 15px; color: #16a34a; }
@media (max-width: 1100px) {
  .ddt, .ddt-foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ddt-grid { grid-template-columns: minmax(0, 1fr); }
  .ddt-head { grid-template-columns: auto minmax(0, 1fr); }
  .ddt-head__all { grid-column: 1 / -1; justify-self: start; }
}
