/* Xerovi theme: rv4-chrome.css (theme-v4, 2026-11-30). Loaded after rv2-audit.css on every page.
   1. Header dropdowns, one per top heading (owner request): every panel is sized to its content (.xv-mega--fit),
      centred under its heading and kept inside the header bar by mega-menu.js (--xv-mega-shift); Services is the
      widest (three groups), the others are narrow lists.
   2. The same headings as nested disclosures in the phone/tablet menu (rv2-audit.css §1 panel).
   3. Product marks (the real XeroviLink and Tenders AI logos, assets/products/) wherever a product is named. */

/* ------------------------------------------------------------------ 1. desktop dropdowns */
.xv-nav__link[data-xv-current] { color: var(--xv-bone-100); }
.xv-nav__link[data-xv-current]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 5px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--xv-header-current-mark);
}
.xv-nav__link[data-xv-mega-trigger] { gap: 5px; padding-right: 12px; }
.xv-nav__link[data-xv-mega-trigger] .xv-nav__chevron { width: 11px; height: 11px; opacity: .7; }

.xv-mega {
  background: #08110d;
  transform-origin: 50% 0;
  scrollbar-width: thin;
}
/* the pointer crosses the gap between the bar and the panel without leaving the item */
.xv-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.xv-mega.is-entering { animation: xv-mega-in 180ms cubic-bezier(.23, 1, .32, 1); }
@keyframes xv-mega-in { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
@media (prefers-reduced-motion: reduce) { .xv-mega.is-entering { animation: none; } }
html[data-xv-motion="paused"] .xv-mega.is-entering { animation: none; }

/* Services: the wide panel, Capabilities gets the widest column */
.xv-mega--services { padding: 18px; }
.xv-mega__grid--services { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 4px 20px; }
.xv-mega--services .xv-mega__hub { padding: 4px 12px 10px; margin: 0 0 6px; border-bottom: 1px solid rgba(255, 255, 255, .07); }

/* small panels: sized to their content, under their heading */
@media (min-width: 1231px) {
  .xv-nav__item--mega { position: relative; }
  .xv-mega--fit {
    left: 50%;
    right: auto;
    top: calc(100% + 21px);
    translate: calc(-50% + var(--xv-mega-shift, 0px)) 0;
    width: max-content;
    max-width: calc(100vw - 48px);
    padding: 10px;
    border-radius: 24px;
  }
  .xv-mega--services { width: 940px; padding: 14px; }
  .xv-mega--industries { width: 440px; }
  .xv-mega--cases { width: 520px; }
  .xv-mega--products { width: 440px; }
  .xv-mega--company { width: 300px; }
}

.xv-mega__list--solo { display: grid; gap: 2px; }
.xv-mega__row--lead { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; }
.xv-mega__rt { display: grid; gap: 2px; min-width: 0; }
.xv-mega__row { border-radius: 14px; transition: background-color 160ms ease-out; }
.xv-mega__row[aria-current="page"] .xv-mega__title { color: var(--xv-green-400); }

.xv-mega__ic {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(0, 255, 151, .1);
  border: 1px solid rgba(0, 255, 151, .16);
}
.xv-mega__ic img { width: 18px; height: 18px; filter: invert(1) brightness(.96); }

.xv-mega__row--case .xv-mega__desc { order: -1; color: var(--xv-green-400); font-size: .75rem; font-weight: 500; letter-spacing: .01em; }
.xv-mega__row--case .xv-mega__title { font-size: .9375rem; }

.xv-mega__logo {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: #0c1712;
  border: 1px solid rgba(255, 255, 255, .1);
}
.xv-mega__logo .xv-plogo { width: 34px; height: 34px; }
.xv-mega__row--product { padding-block: 12px; }
.xv-mega__row--product .xv-mega__title { font-size: 1rem; }

/* the closing row of a small panel: its hub page */
.xv-mega--fit .xv-mega__tile { margin-top: 6px; padding: 12px 14px; border-radius: 14px; font-size: .9375rem; }
.xv-mega__tile .xv-icon { transition: transform 200ms cubic-bezier(.23, 1, .32, 1); }
.xv-mega__tile[aria-current="page"] { color: var(--xv-green-400); }
@media (hover: hover) and (pointer: fine) {
  .xv-mega__tile:hover { background: rgba(0, 255, 151, .16); }
  .xv-mega__tile:hover .xv-icon { transform: translate(2px, -2px); }
}

/* ------------------------------------------------------------------ 2. phone and tablet menu: nested disclosures */
@media (max-width: 1230px) {
  .xv-header.is-open .xv-nav .xv-nav__item--mega { position: static; }
  .xv-header.is-open .xv-nav .xv-nav__link[data-xv-mega-trigger] { padding-right: 4px; }
  .xv-header.is-open .xv-nav .xv-nav__link[data-xv-mega-trigger] .xv-nav__chevron { width: 18px; height: 18px; opacity: .8; }
  .xv-header.is-open .xv-nav .xv-nav__link[data-xv-current] { color: var(--xv-green-400); }
  .xv-header.is-open .xv-nav .xv-nav__link[data-xv-current]::after { display: none; }
  .xv-nav.is-panel .xv-mega { width: auto; max-width: none; translate: none; padding: 0 4px 14px; border-radius: 0; }
  .xv-nav.is-panel .xv-mega::before { display: none; }
  .xv-nav.is-panel .xv-mega__list--solo { display: grid; padding-bottom: 0; }
  .xv-nav.is-panel .xv-mega__hub { padding: 0 0 6px; margin: 0; border: 0; }
  .xv-nav.is-panel .xv-mega__row { padding: 10px 0; border-radius: 0; min-height: 44px; }
  .xv-nav.is-panel .xv-mega__row--lead { padding: 8px 0; }
  .xv-nav.is-panel .xv-mega__ic { width: 34px; height: 34px; }
  .xv-nav.is-panel .xv-mega__logo { width: 42px; height: 42px; border-radius: 12px; }
  .xv-nav.is-panel .xv-mega__logo .xv-plogo { width: 30px; height: 30px; }
  .xv-nav.is-panel .xv-mega__tile { margin-top: 6px; padding: 12px 14px; }
  .xv-nav.is-panel .xv-mega__group-toggle { color: var(--xv-bone-100); opacity: .86; font-size: 1rem; }
  .xv-nav.is-panel .xv-mega__group:not(:last-child) { border-bottom: 1px solid rgba(255, 255, 255, .06); }
}
@media (max-width: 1230px) and (min-width: 700px) {
  /* tablet: the panel is wide enough for two columns of rows */
  .xv-nav.is-panel .xv-mega__list--cases, .xv-nav.is-panel .xv-mega__list--products { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}

/* ------------------------------------------------------------------ 3. product marks */
.xv-plogo { display: block; flex: none; }
/* home: the agent strip and the "Built by Xerovi" cards carry the products' marks */
.rv-agent--product .rv-agent__ic { background: #0c1712; border: 1px solid rgba(255, 255, 255, .1); }
.rv-agent--product .rv-agent__ic img { width: 28px; height: 28px; }
.rv-agent--product .rv-agent__ic img[src*="tenders-icon"] { width: 38px; height: 38px; }
.rv-prod__kick { display: flex; align-items: center; gap: 12px; }
.rv-prod__logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #0c1712; border: 1px solid rgba(255, 255, 255, .1); }
.rv-prod__logo img { width: 32px; height: 32px; }
.rv-prod__logo img[src*="tenders-icon"] { width: 44px; height: 44px; }

/* The open Menu has its own full-width Book a call at the bottom: the header pill steps aside, so the action shows once. */
@media (max-width: 1230px) { .xv-header.is-open .xv-header__end > .xv-button { display: none; } }

/* While the full-screen Menu is open, the first-visit cookie notice steps aside (it covered the lower headings and the
   Book a call button, and took their taps); it is back, unchanged, as soon as the Menu closes. */
html.xv-scroll-lock [data-xv-consent-banner] { visibility: hidden; }
