/* For:Human — top bar + mega menu (built by src/forhuman-topbar.ts).
   Fixed bar: logo, horizontal nav, language and a pill CTA. Groups open a full-width panel
   under the bar with large links on the left and a featured card on the right. The bar follows
   the tone of the page beneath it. */
:root {
  --fh-masthead-side: clamp(16px, 2.8vw, 40px);
  --fh-bar-height: 60px;
  /* the strip is a 40px glass box above the bar, 6px apart */
  --fh-announce-strip: 40px;
  --fh-announce-gap: 6px;
  --fh-announce-height: calc(var(--fh-announce-strip) + var(--fh-announce-gap));
  --fh-menu-label: #73738a;
  /* the bar floats as a rounded box, inset from the viewport edges */
  --fh-bar-inset: clamp(8px, 1.4vw, 20px);
  --fh-bar-radius: 16px;
  /* total space pages leave at the top for the fixed header */
  --fh-topbar-height: calc(var(--fh-bar-height) + var(--fh-bar-inset));
  --fh-topbar-z: 9000; /* above page layers; the route wipe is 10000 */
}

.fh-has-announce { --fh-topbar-height: calc(var(--fh-bar-height) + var(--fh-bar-inset) + var(--fh-announce-height)); }

/* The Webflow navbar stays in the DOM as the data source, never on screen. */
.menu-section .menu-navbar,
.menu-section .menu-go-back-container,
.menu-section .menu-localization-container { display: none !important; }

.fh-topbar {
  --bar-bg: rgba(255, 255, 255, 0);
  --bar-solid: var(--color-canvas-white);
  --bar-ink: var(--color-press-black);
  --bar-on-ink: var(--color-canvas-white);
  --bar-pill: var(--color-inkwell);
  --bar-muted: var(--color-slate-caption);
  --bar-hover: rgba(23, 23, 28, 0.05);
  --bar-line: var(--color-hairline-mist);
  --panel-bg: var(--color-canvas-white);
  --panel-aside: var(--color-soft-cream);
  --bar-chip: rgba(23, 23, 28, 0.06);
  --bar-chip-hover: rgba(23, 23, 28, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--fh-topbar-z);
  color: var(--bar-ink);
  font-family: var(--font-ui);
  letter-spacing: var(--tracking-ui);
  transition: color 0.3s ease;
}
.fh-topbar.is-on-dark {
  --bar-solid: var(--color-inkwell);
  --bar-ink: var(--color-canvas-white);
  --bar-on-ink: var(--color-inkwell);
  --bar-pill: var(--color-canvas-white);
  --bar-muted: var(--color-fog);
  --bar-hover: rgba(255, 255, 255, 0.08);
  --bar-line: rgba(255, 255, 255, 0.1);
  --panel-bg: var(--color-inkwell);
  --panel-aside: var(--color-charcoal-depth);
  --bar-chip: rgba(255, 255, 255, 0.12);
  --bar-chip-hover: rgba(255, 255, 255, 0.2);
}

.fh-topbar-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  height: var(--fh-bar-height);
  margin: var(--fh-bar-inset) var(--fh-bar-inset) 0;
  padding: 0 clamp(16px, 1.8vw, 28px);
  /* clear glass, as on studio.design: no tint, no border, no shadow; only a heavy blur of
     whatever passes underneath, the same at the top of the page and while scrolling */
  background: transparent;
  border-radius: var(--fh-bar-radius);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
  transition: background-color 0.35s ease;
}
.fh-topbar.is-open .fh-topbar-inner { background: var(--panel-bg); }

/* ---------------------------------------------------------------- announcement strip */
.fh-topbar-announce {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  /* the same glass as the bar: inset, rounded, clear with a heavy blur, ink following the tone */
  height: var(--fh-announce-strip);
  /* same width as the header card and its mega panel (nerdstack-template) */
  margin: var(--fh-bar-inset) var(--fh-bar-inset) 0;
  padding: 0 56px;
  border-radius: var(--fh-bar-radius);
  /* always smoked glass with white ink: reads over imagery, white pages and black pages alike */
  background: rgba(28, 30, 34, 0.62);
  -webkit-backdrop-filter: blur(50px) saturate(140%);
  backdrop-filter: blur(50px) saturate(140%);
  color: var(--color-canvas-white);
  font-size: var(--text-body-sm);
  line-height: 1.5;
  text-align: center;
}
.fh-topbar-announce p { margin: 0; overflow: hidden; color: inherit !important; white-space: nowrap; text-overflow: ellipsis; } /* a Webflow theme rule paints every p white */
.fh-topbar-announce a { margin-left: 12px; color: inherit; font-size: var(--text-body-sm); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.fh-topbar-announce-close {
  position: absolute;
  right: var(--fh-masthead-side);
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: inherit;
  cursor: pointer;
  transform: translateY(-50%);
}
.fh-topbar-announce-close svg { width: 14px; height: 14px; }
.fh-topbar-announce-close:hover { background: var(--bar-hover); }
.fh-topbar-announce { transition: color 0.3s ease, background-color 0.3s ease; }
.fh-topbar-announce-close { color: inherit; }
.fh-topbar .fh-topbar-announce-close:hover { background: rgba(255, 255, 255, 0.12); }
/* under the strip, the bar sits 6px below it instead of the full inset */
.fh-topbar-announce + .fh-topbar-inner { margin-top: var(--fh-announce-gap); }
.fh-topbar-announce a:focus-visible,
.fh-topbar-announce-close:focus-visible { outline: 1.5px solid currentColor; outline-offset: 2px; }

/* ---------------------------------------------------------------- logo */
.fh-topbar-brand { flex: none; display: block; width: 118px; height: 15px; color: inherit; }
.fh-topbar-brand .fh-topbar-logo { height: 15px !important; }
.fh-topbar-brand:focus-visible { outline: 1.5px solid currentColor; outline-offset: 6px; border-radius: 4px; }

/* ---------------------------------------------------------------- nav */
.fh-topbar-nav { flex: 1; min-width: 0; }
.fh-topbar-list { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.fh-topbar-item { margin: 0; }
.fh-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 31px;
  padding: 6px 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--bar-ink);
  font: inherit;
  font-size: var(--text-body-sm);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.fh-topbar-link svg { display: none; }
.fh-topbar-link:hover,
.fh-topbar-link[aria-expanded="true"] { background: var(--bar-hover); }
.fh-topbar-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.fh-topbar-link[aria-current="page"] { background: var(--bar-hover); }
.fh-topbar-link:focus-visible,
.fh-topbar-lang-button:focus-visible,
.fh-topbar-lang-option:focus-visible,
.fh-topbar-cta:focus-visible,
.fh-topbar-menu:focus-visible,
.fh-topbar-panel a:focus-visible { outline: 1.5px solid var(--bar-ink); outline-offset: 2px; }

/* ---------------------------------------------------------------- end */
.fh-topbar-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
/* Language selector, as pt.cadastra.com: grey pill (globe + current language) that opens a
   small white card listing PT and EN. */
.fh-topbar-lang { position: relative; }
.fh-topbar-lang-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--bar-chip);
  color: var(--bar-ink);
  font: inherit;
  font-size: var(--text-body);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.fh-topbar-lang-button svg { width: 18px; height: 18px; flex: none; }
.fh-topbar-lang-button:hover,
.fh-topbar-lang.is-open .fh-topbar-lang-button { background: var(--bar-chip-hover); }
.fh-topbar-lang-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 64px;
  margin: 0;
  padding: 8px 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 28px rgba(0, 0, 0, 0.12);
  list-style: none;
  animation: fh-lang-in 0.18s ease-out;
}
.fh-topbar-lang-menu[hidden] { display: none; }
.fh-topbar-lang-menu .fh-topbar-lang-option { display: block; padding: 10px 0; text-align: center; }
.fh-topbar-lang-option { color: var(--color-press-black, #0a0a0a); font-size: var(--text-body); text-decoration: none; transition: color 0.2s ease, background-color 0.2s ease; }
.fh-topbar-lang-menu .fh-topbar-lang-option:hover { background: rgba(23, 23, 28, 0.05); }
.fh-topbar-lang-option[aria-current="true"] { font-weight: 600; }
@keyframes fh-lang-in { from { opacity: 0; transform: translateY(-4px); } }
.fh-topbar-lang-inline { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--bar-chip); }
.fh-topbar-lang-inline .fh-topbar-lang-option { color: var(--bar-ink); }
.fh-topbar-lang-inline .fh-topbar-lang-option[aria-current="true"] { color: #0a0a0a; }
.fh-topbar-lang-inline .fh-topbar-lang-option { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--radius-pill); }
.fh-topbar-lang-inline .fh-topbar-lang-option[aria-current="true"] { background: #ffffff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.fh-topbar-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--fh-lime); /* the site's lime CTA, on light and dark bars */
  color: #0a0a0a;
  font-size: var(--text-body);
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.fh-topbar-cta:hover { background: var(--fh-lime-hover); }
.fh-topbar-menu {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--bar-hover);
  color: var(--bar-ink);
  cursor: pointer;
}
.fh-topbar-bars { position: relative; display: block; width: 18px; height: 10px; }
.fh-topbar-bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.fh-topbar-bars i:nth-child(1) { top: 0; }
.fh-topbar-bars i:nth-child(2) { bottom: 0; }
.fh-topbar.is-menu-open .fh-topbar-bars i:nth-child(1) { transform: translateY(4.2px) rotate(45deg); }
.fh-topbar.is-menu-open .fh-topbar-bars i:nth-child(2) { transform: translateY(-4.2px) rotate(-45deg); }

/* ---------------------------------------------------------------- mega panel */
.fh-topbar-panels { position: absolute; top: calc(100% + 8px); left: var(--fh-bar-inset); right: var(--fh-bar-inset); }
.fh-topbar-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 368px;
  overflow: hidden;
  background: var(--panel-bg);
  border: 1px solid var(--bar-line);
  border-radius: var(--fh-bar-radius);
  box-shadow: 0 24px 64px rgba(23, 23, 28, 0.12);
  opacity: 0;
  transform: translateY(-8px);
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.25s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), clip-path 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.fh-topbar-panel[hidden] { display: none; }
.fh-topbar-panel.is-visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

.fh-topbar-panel-main {
  display: grid;
  grid-template-columns: 248px 224px;
  justify-content: start;
  padding: 24px 24px 32px var(--fh-masthead-side);
  column-gap: 48px;
}
.fh-topbar-panel-column { display: flex; flex-direction: column; min-width: 0; }
/* Company: a single column of large links, no featured card */
.fh-topbar-panel.is-plain { grid-template-columns: minmax(0, 1fr); }
.fh-topbar-panel.is-plain .fh-topbar-panel-main { grid-template-columns: minmax(0, 1fr); }
.fh-topbar-panel.is-plain .fh-topbar-panel-links { gap: var(--spacing-8); }
.fh-topbar-panel-label {
  margin: 0 0 8px;
  color: var(--fh-menu-label);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0;
}
.fh-topbar.is-on-dark .fh-topbar-panel-label { color: var(--color-fog); }
.fh-topbar-panel-links { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.fh-topbar-panel-links li { margin: 0; }
.fh-topbar-panel-links.has-descriptions { gap: 20px; margin-top: 4px; }
.fh-topbar-panel-desc { display: block; margin-top: 4px; color: var(--fh-menu-label); font-size: 12px; line-height: 1.4; }
.fh-topbar-panel-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 32px;
  color: var(--bar-ink);
  font-size: 14px;
  text-decoration: none;
}
.fh-topbar-panel-more svg { width: 14px; height: 14px; transition: transform 0.3s ease; }
.fh-topbar-panel-more:hover svg { transform: translateX(3px); }
.fh-topbar-panel-list { display: flex; flex-direction: column; gap: 16px; margin: 8px 0 0; padding: 0; list-style: none; }
.fh-topbar-panel-list li { margin: 0; }
.fh-topbar-panel-item { color: var(--bar-ink); font-size: 14px; line-height: 1.4; text-decoration: none; transition: opacity 0.2s ease; }
.fh-topbar-panel-list:hover .fh-topbar-panel-item { opacity: 0.5; }
.fh-topbar-panel-list .fh-topbar-panel-item:hover { opacity: 1; }
.fh-topbar-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bar-ink);
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.fh-topbar-panel-link svg { width: 0.5em; height: 0.5em; opacity: 0.5; }
.fh-topbar-panel-links:hover .fh-topbar-panel-link { opacity: 0.45; }
.fh-topbar-panel-links .fh-topbar-panel-link:hover { opacity: 1; }
.fh-topbar-panel-link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
/* items with an icon (Nerdstack-style mega menu): a tinted tile, then title over description */
.fh-topbar-panel-link.has-icon { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 16px; font-size: 18px; }
.fh-topbar-panel-links.has-descriptions:has(.has-icon) { gap: 22px; margin-top: 12px; }
.fh-topbar-panel-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--fh-sky-soft, #e8f2fa);
  color: var(--fh-blue, #0082ff);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.fh-topbar-panel-icon svg { width: 22px; height: 22px; }
.fh-topbar-panel-link.has-icon:hover .fh-topbar-panel-icon { background: var(--fh-blue, #0082ff); color: #ffffff; transform: translateY(-1px); }
.fh-topbar-panel-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: 1px; }
.fh-topbar-panel-title { display: inline-flex; align-items: center; gap: 8px; line-height: 1.3; }
.fh-topbar-panel-text .fh-topbar-panel-desc { margin-top: 0; font-size: 14px; line-height: 1.4; }
.fh-topbar.is-on-dark .fh-topbar-panel-icon { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.fh-topbar-panel-main:has(.has-icon) { grid-template-columns: 300px 224px; }

/* staggered entrance of the rows */
.fh-topbar-panel.is-visible .fh-topbar-panel-links > li { animation: fh-topbar-row 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.fh-topbar-panel.is-visible .fh-topbar-panel-links > li:nth-child(2) { animation-delay: 0.04s; }
.fh-topbar-panel.is-visible .fh-topbar-panel-links > li:nth-child(3) { animation-delay: 0.08s; }
.fh-topbar-panel.is-visible .fh-topbar-panel-links > li:nth-child(4) { animation-delay: 0.12s; }
.fh-topbar-panel.is-visible .fh-topbar-panel-links > li:nth-child(n + 5) { animation-delay: 0.16s; }
@keyframes fh-topbar-row { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* featured card */
.fh-topbar-featured { padding: 24px var(--fh-masthead-side) 32px 40px; background: var(--panel-aside); }
.fh-topbar-featured .fh-topbar-panel-label { color: #2f2f37; font-weight: 400; margin-bottom: 16px; }
.fh-topbar-card { display: flex; flex-direction: column; gap: 10px; color: var(--bar-ink); text-decoration: none; }
.fh-topbar-card-media { position: relative; display: block; width: 288px; max-width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bar-hover); }
.fh-topbar-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.fh-topbar-card:hover .fh-topbar-card-media img { transform: scale(1.05); }
.fh-topbar-card-title { display: none; }
.fh-topbar-card-text { max-width: 288px; margin-top: 12px; color: var(--bar-ink); font-size: 14px; line-height: 1.4; }
.fh-topbar-card-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.fh-topbar-card-cta svg { width: 14px; height: 14px; transition: transform 0.3s ease; }
.fh-topbar-card:hover .fh-topbar-card-cta svg { transform: translateX(3px); }

/* small-screen menu panel */
.fh-topbar-panel.is-menu {
  grid-template-columns: minmax(0, 1fr);
  height: calc(100dvh - var(--fh-topbar-height) - 8px - var(--fh-bar-inset));
  max-height: calc(100dvh - var(--fh-topbar-height) - 8px - var(--fh-bar-inset));
  padding: 24px var(--fh-masthead-side) 32px;
  overflow-y: auto;
}
.fh-topbar-panel.is-menu .fh-topbar-panel-links { gap: 6px; }
.fh-topbar-panel.is-menu .fh-topbar-panel-link { font-size: var(--text-heading-sm); }
.fh-topbar-panel-sub { padding-top: 18px; }
.fh-topbar-panel-sub .fh-topbar-panel-label { margin-bottom: 8px; }
.fh-topbar-panel-sub ul { margin: 0; padding: 0; list-style: none; }
.fh-topbar-panel-sublink { display: block; padding: 4px 0; color: var(--bar-ink); font-size: var(--text-subheading); text-decoration: none; }
.fh-topbar-panel-row { display: flex; align-items: center; gap: 8px; margin-top: 32px; }
.fh-topbar-panel-row .fh-topbar-cta { flex: 1; justify-content: center; }
.fh-topbar-menu-open { overflow: hidden; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1023px) {
  .fh-topbar-announce { padding: 0 48px 0 16px; justify-content: flex-start; font-size: var(--text-caption); }
  .fh-topbar-nav,
  .fh-topbar-end > .fh-topbar-lang { display: none; }
  .fh-topbar-menu { display: grid; }
  .fh-topbar-brand { width: 108px; height: 14px; }
  .fh-topbar-brand .fh-topbar-logo { height: 14px !important; }
}
@media (max-width: 479px) {
  .fh-topbar-end > .fh-topbar-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fh-topbar-panel,
  .fh-topbar-panel-link,
  .fh-topbar-bars i { transition: none; }
  .fh-topbar-panel.is-visible .fh-topbar-panel-links > li { animation: none; }
}

/* ---------------------------------------------------------------- mega menu, nerdstack-template.webflow.io
   The open bar and its panel read as one card (square seam, shared shadow) over a dimmed page;
   mono uppercase column labels; each item has its own soft-tinted icon tile; the featured card is
   a rounded image card with its line and a white pill button. */
.fh-topbar::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 10, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.fh-topbar.is-open:not(.is-menu-open)::before { opacity: 1; }
@media (min-width: 1024px) {
  .fh-topbar.is-open:not(.is-menu-open) .fh-topbar-inner { border-radius: var(--fh-bar-radius) var(--fh-bar-radius) 0 0; }
  .fh-topbar-panels { top: 100%; }
  .fh-topbar-panel { border: 0; border-radius: 0 0 var(--fh-bar-radius) var(--fh-bar-radius); box-shadow: 0 32px 80px rgba(10, 10, 10, 0.18); }
  .fh-topbar-panel::before { content: ""; position: absolute; top: 0; left: var(--fh-masthead-side); right: var(--fh-masthead-side); height: 1px; background: var(--bar-line); }
}
.fh-topbar-panel { position: relative; }
.fh-topbar-panel-main { padding-top: 32px; padding-bottom: 36px; }
.fh-topbar-panel-label { margin-bottom: 14px; color: var(--bar-ink); font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
.fh-topbar.is-on-dark .fh-topbar-panel-label { color: rgba(255, 255, 255, 0.7); }

.fh-topbar-panel-main:has(.has-icon) { grid-template-columns: minmax(0, 360px) minmax(0, 240px); column-gap: 64px; }
.fh-topbar-panel-links.has-descriptions:has(.has-icon) { gap: 26px; margin-top: 18px; }
.fh-topbar-panel-link.has-icon { grid-template-columns: 56px minmax(0, 1fr); gap: 18px; font-size: 18px; opacity: 1 !important; }
.fh-topbar-panel-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--tile-bg, #eef3fb); color: var(--tile-ink, #0060c9); }
.fh-topbar-panel-icon svg { width: 24px; height: 24px; }
/* one soft tint per item (Nerdstack), all quiet next to the page */
.fh-topbar-panel-icon.is-bag { --tile-bg: #e6f0ff; --tile-hover: #d6e7ff; }
.fh-topbar-panel-icon.is-connect { --tile-bg: #eefbe0; --tile-hover: #e1f7c9; }
.fh-topbar-panel-icon.is-cloud { --tile-bg: #eef5fb; --tile-hover: #e0eef8; }
.fh-topbar-panel-icon.is-news { --tile-bg: #eceffd; --tile-hover: #dfe3fb; }
.fh-topbar-panel-icon.is-shield { --tile-bg: #f1f1ef; --tile-hover: #e6e6e3; }
.fh-topbar-panel-icon.is-code { --tile-bg: #f1f1ef; --tile-hover: #e6e6e3; }
.fh-topbar-panel-link.has-icon:hover .fh-topbar-panel-icon { background: var(--tile-hover, var(--tile-bg)); transform: none; }
/* the For:Human cube inside the tile */
.fh-topbar-panel-link.has-icon { grid-template-columns: 64px minmax(0, 1fr); }
.fh-topbar-panel-icon { width: 64px; height: 64px; border-radius: 16px; overflow: visible; }
.fh-topbar-panel-icon .fh-cube { width: 44px; height: 48px; overflow: visible; }
.fh-topbar-panel-links:hover .fh-topbar-panel-link.has-icon { opacity: 1; }
.fh-topbar-panel-links:hover .fh-topbar-panel-link.has-icon:not(:hover) .fh-topbar-panel-text { opacity: 0.55; }
.fh-topbar-panel-text { gap: 6px; padding-top: 3px; transition: opacity 0.2s ease; }
.fh-topbar-panel-title { font-weight: 500; letter-spacing: -0.01em; }
.fh-topbar-panel-text .fh-topbar-panel-desc { max-width: 300px; color: var(--bar-muted); font-size: 15px; line-height: 1.5; }
.fh-topbar.is-on-dark .fh-topbar-panel-icon { background: rgba(255, 255, 255, 0.08); color: #ffffff; }

/* featured: a rounded image card (BYQ card) — label, the line, a white pill */
.fh-topbar-featured { display: flex; padding: 20px; background: transparent; }
.fh-topbar-featured > .fh-topbar-panel-label { display: none; }
.fh-topbar-card {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  min-height: 340px;
  padding: 28px;
  overflow: hidden;
  border-radius: 20px;
  color: #ffffff !important;
}
.fh-topbar-card-media { position: absolute; inset: 0; z-index: -2; width: auto; max-width: none; aspect-ratio: auto; }
.fh-topbar-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 10, 0.05) 30%, rgba(10, 10, 10, 0.72)); }
.fh-topbar-card-title { display: block; order: -1; margin-bottom: auto; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.fh-topbar-card-text { max-width: 280px; margin: 0; color: #ffffff; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.fh-topbar-card-cta { align-self: flex-start; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; background: #ffffff; color: #0a0a0a; font-size: 15px; font-weight: 500; }
.fh-topbar-card:hover .fh-topbar-card-cta svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- strip on phones
   the line wraps to two short lines instead of being cut, left-aligned beside the close */
@media (max-width: 767px) {
  :root { --fh-announce-strip: 50px; }
  .fh-topbar-announce { justify-content: flex-start; padding: 0 44px 0 16px; font-size: 12px; line-height: 1.35; text-align: left; }
  .fh-topbar-announce p { display: -webkit-box; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .fh-topbar-announce a { margin-left: 4px; font-size: 12px; }
}

/* ---------------------------------------------------------------- Soluções: no icons; the card is only the hovered solution's cell animation */
.fh-topbar-panel-link.is-stacked { display: block; font-size: 18px; opacity: 1 !important; }
.fh-topbar-panel-links.has-descriptions:has(.is-stacked) { gap: 26px; margin-top: 18px; }
.fh-topbar-panel-links:hover .fh-topbar-panel-link.is-stacked:not(:hover) .fh-topbar-panel-text { opacity: 0.5; }
.fh-topbar-panel-main:has(.is-stacked) { grid-template-columns: minmax(0, 360px); }
.fh-topbar-featured.is-tile { display: flex; padding: 20px; background: transparent; }
.fh-topbar-card.is-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(120% 100% at 25% 10%, color-mix(in oklab, var(--tile) 80%, #ffffff 8%), var(--tile) 45%, color-mix(in oklab, var(--tile) 70%, #000000) 100%);
  color: #ffffff;
  transition: background 0.4s ease;
}
.fh-topbar-tile { position: absolute; inset: 0; color: color-mix(in oklab, var(--tile-accent) 12%, #ffffff); }
.fh-topbar-tile svg { position: absolute; inset: 0; width: 100%; height: 100%;  }
.fh-topbar-tile .fx-dots-grid circle { fill: rgba(255, 255, 255, 0.12); }
.fh-topbar-tile .fx-dots-beads circle { fill: currentColor; }
.fh-topbar-tile .fx-dots-beads path { stroke: currentColor; }
.fh-topbar-tile .fx-dots-cores circle { fill: var(--tile); opacity: 0.55; }
