/* =========================================================
   Global navigation (shared across all CYFIRMA pages). No JavaScript:
   dropdowns open on hover and keyboard focus (:focus-within); mobile uses <details>.
   ========================================================= */
.gnav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #EEF1F6;
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif; }
.gnav__in { position: relative; width: min(100% - 48px, 1440px); margin-inline: auto; height: 84px; display: flex; align-items: center; gap: 32px; }
.gnav__logo img { width: 190px; height: auto; display: block; }
.gnav__menu { flex: 1; display: flex; justify-content: center; }
.gnav__list { display: flex; gap: 40px; margin: 0; padding: 0; list-style: none; }
.gnav ul { margin: 0; padding: 0; list-style: none; }
.gnav__item { position: static; }
.gnav__top { display: inline-flex; align-items: center; gap: 8px; height: 84px; padding: 0; border: 0; background: none; font: inherit; font-size: 19px; color: #1D2939; cursor: pointer; text-decoration: none; transition: color .2s; }
.gnav__chev { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.gnav__item:hover > .gnav__top, .gnav__item:focus-within > .gnav__top, .gnav__top:hover { color: #CE202C; }
.gnav__item:hover > .gnav__top .gnav__chev, .gnav__item:focus-within > .gnav__top .gnav__chev,
.gnav__item:hover > .gnav__start .gnav__chev, .gnav__item:focus-within > .gnav__start .gnav__chev { transform: translateY(2px) rotate(-135deg); }

/* panels */
.gnav__drop, .gnav__mega { position: absolute; top: calc(100% - 6px); visibility: hidden; opacity: 0; translate: 0 8px; transition: opacity .18s, translate .18s, visibility 0s .18s;
  background: #fff; border: 1px solid #EEF1F6; border-radius: 22px; box-shadow: 0 24px 56px -24px rgba(16,24,40,.28); }
.gnav__item:hover > .gnav__drop, .gnav__item:focus-within > .gnav__drop,
.gnav__item:hover > .gnav__mega, .gnav__item:focus-within > .gnav__mega { visibility: visible; opacity: 1; translate: 0 0; transition-delay: 0s; }
.gnav__item:not(.gnav__item--mega) { position: relative; }
.gnav__drop { left: -24px; min-width: 260px; padding: 18px 12px; }
.gnav__drop--right { left: auto; right: 0; }
.gnav__drop a { display: block; padding: 12px 20px; border-radius: 12px; font-size: 17px; font-weight: 700; color: #1D2939; text-decoration: none; }
.gnav__drop a:hover, .gnav__drop a:focus-visible { background: #F9F4F0; color: #CE202C; }

.gnav__mega { left: 50%; margin-left: -560px; width: 1120px; padding: 28px; }
.gnav__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gnav__h { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #667085; }
.gnav__prod, .gnav__cap { display: grid; gap: 6px; }
.gnav__prod a, .gnav__cap a { display: grid; gap: 4px; padding: 10px 16px; border-radius: 12px; text-decoration: none; transition: background .2s; }
.gnav__prod a:hover, .gnav__cap a:hover, .gnav__prod a:focus-visible, .gnav__cap a:focus-visible { background: #F9F4F0; }
.gnav__prod b, .gnav__cap a { font-size: 17px; font-weight: 700; line-height: 1.5; color: #1D2939; }
.gnav__prod span { font-size: 15px; line-height: 1.6; color: #667085; }
.gnav__band { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; padding: 22px 26px; border-radius: 16px; background: #F9F4F0; }
.gnav__band b { display: block; font-size: 19px; color: #1D2939; }
.gnav__band span { display: block; margin-top: 6px; font-size: 15px; color: #667085; }

/* right-hand tools */
.gnav__tools { display: flex; align-items: center; gap: 18px; }
.gnav__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; background: #F2F2F4; color: #1D2939; cursor: pointer; }
.gnav__icon:hover { background: #E8E8EC; }
.gnav__start, .gnav__pill { display: inline-flex; align-items: center; gap: 10px; border: 2px solid transparent; border-radius: 999px; font: inherit; color: #CE202C; cursor: pointer; text-decoration: none;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #CE202C, #7034C4) border-box; transition: background .2s, color .2s; }
.gnav__start { height: 58px; padding: 0 30px; font-size: 19px; }
.gnav__pill { padding: 10px 20px; font-size: 16px; color: #1D2939; white-space: nowrap; }
.gnav__start:hover, .gnav__pill:hover { background: linear-gradient(90deg, #CE202C, #7034C4) padding-box, linear-gradient(90deg, #CE202C, #7034C4) border-box; color: #fff; }
.gnav__item--start { position: relative; }
.gnav__item--start .gnav__drop { top: calc(100% + 10px); }
.gnav__item--start::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }

/* mobile */
.gnav__mob { display: none; }
@media (max-width: 1180px) {
  .gnav__list { gap: 26px; } .gnav__top, .gnav__start { font-size: 17px; } .gnav__start { height: 50px; padding: 0 22px; }
  .gnav__mega { left: 0; margin-left: 0; width: 100%; }
}
@media (max-width: 1024px) {
  .gnav__in { height: 70px; justify-content: space-between; }
  .gnav__logo img { width: 150px; }
  .gnav__menu, .gnav__tools { display: none; }
  .gnav__mob { display: block; }
  .gnav__mob > summary { list-style: none; width: 44px; height: 44px; display: grid; align-content: center; gap: 5px; justify-items: center; cursor: pointer; }
  .gnav__mob > summary::-webkit-details-marker { display: none; }
  .gnav__mob > summary span { width: 22px; height: 2px; background: #1D2939; transition: transform .2s, opacity .2s; }
  .gnav__mob[open] > summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .gnav__mob[open] > summary span:nth-child(2) { opacity: 0; }
  .gnav__mob[open] > summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gnav__sheet { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 70px); overflow-y: auto; padding: 8px 24px 32px; background: #fff; border-top: 1px solid #EEF1F6; box-shadow: 0 24px 40px -24px rgba(16,24,40,.3); }
  .gnav__mlink, .gnav__sheet > details > summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid #EEF1F6; font-size: 18px; color: #1D2939; text-decoration: none; cursor: pointer; list-style: none; }
  .gnav__sheet > details > summary::-webkit-details-marker { display: none; }
  .gnav__sheet > details > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
  .gnav__sheet > details[open] > summary { color: #CE202C; }
  .gnav__sheet > details[open] > summary::after { transform: rotate(-135deg); }
  .gnav__sheet > details > ul, .gnav__sheet > details > .gnav__h { margin-top: 14px; }
  .gnav__sheet > details > ul > li > a { display: block; padding: 10px 0; font-size: 16px; font-weight: 700; color: #1D2939; text-decoration: none; }
  .gnav__sheet .gnav__prod a, .gnav__sheet .gnav__cap a { padding: 8px 0; }
  .gnav__sheet .gnav__prod a { display: grid; gap: 2px; }
  .gnav__sheet .gnav__prod span { font-size: 14px; font-weight: 400; }
  .gnav__sheet > details { padding-bottom: 4px; }
}
@media (max-width: 600px) { .gnav__in { width: calc(100% - 32px); } }

/* ---------- enhancements: platform numbering, resources mega with featured card ---------- */
.gnav__h small { margin-left: 8px; padding-left: 8px; border-left: 1px solid #CBCBCB; font-size: 11px; letter-spacing: .6px; color: #98A2B3; }
.gnav__prodcol { margin: -8px 0 -8px -8px; padding: 8px; border-radius: 16px; background: #F6F6F8; }
.gnav__prodcol .gnav__h { padding: 10px 0 0 16px; }
.gnav__prod a:hover { background: #fff; }
.gnav__arr { display: inline-block; margin-left: 4px; color: #7034C4; opacity: 0; translate: -4px 0; transition: opacity .2s, translate .2s; }
.gnav a:hover .gnav__arr, .gnav a:focus-visible .gnav__arr { opacity: 1; translate: 0 0; }
.gnav__cap a { grid-template-columns: 26px minmax(0, 1fr); align-items: baseline; }
.gnav__cap i { font-style: normal; font-size: 12px; font-weight: 700; color: #7034C4; }
.gnav__cap b { font-weight: 700; }
.gnav__cap a:hover b { color: #CE202C; }
.gnav__more { display: inline-flex; margin: 14px 0 0 16px; font-size: 15px; font-weight: 700; color: #7034C4; text-decoration: none; }
.gnav__more .gnav__arr { opacity: 1; translate: 0 0; }
.gnav__more:hover .gnav__arr { translate: 4px 0; }

.gnav__rgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
.gnav__rlinks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; align-content: start; }
.gnav__rlinks > div:nth-child(3) { grid-column: 2; margin-top: -8px; }
.gnav__rl { display: grid; gap: 2px; }
.gnav__rl a { display: grid; gap: 2px; padding: 9px 16px; border-radius: 12px; text-decoration: none; transition: background .2s; }
.gnav__rl a:hover, .gnav__rl a:focus-visible { background: #F9F4F0; }
.gnav__rl b { font-size: 17px; font-weight: 700; color: #1D2939; }
.gnav__rl span { font-size: 14px; color: #667085; }

.gnav__feat { display: grid; grid-template-rows: 170px auto; overflow: hidden; border-radius: 18px; background: #101828; color: #fff; text-decoration: none; }
.gnav__featimg { position: relative; display: grid; place-items: center; overflow: hidden; background: #1D2939 url("images/arcs.svg") right -60px top -80px / 300px 300px no-repeat; }
.gnav__sheet-card { display: grid; align-content: space-between; width: 116px; height: 150px; margin-top: 34px; padding: 14px; border-radius: 8px 8px 0 0; background: linear-gradient(160deg, #3A1F63, #101828); box-shadow: 0 -10px 30px -10px rgba(0,0,0,.6); transition: translate .3s; }
.gnav__feat:hover .gnav__sheet-card { translate: 0 -8px; }
.gnav__sheet-card img { width: 64px; height: auto; }
.gnav__sheet-card b { font-size: 15px; font-weight: 400; color: #fff; }
.gnav__sheet-card small { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #FF6B74; }
.gnav__feattxt { display: grid; gap: 8px; padding: 20px 22px 22px; }
.gnav__feattxt em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #FF6B74; }
.gnav__feattxt b { font-size: 19px; font-weight: 400; }
.gnav__feattxt > span { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.72); }
.gnav__feattxt u { text-decoration: none; font-size: 15px; font-weight: 700; color: #fff; }
.gnav__feattxt u .gnav__arr { opacity: 1; translate: 0 0; color: #FF6B74; }
.gnav__feat:hover u .gnav__arr { translate: 4px 0; }
@media (max-width: 1024px) {
  .gnav__sheet .gnav__rl a, .gnav__sheet .gnav__cap a { padding: 8px 0; }
  .gnav__sheet .gnav__rl span { font-weight: 400; }
  .gnav__sheet .gnav__arr { display: none; }
  .gnav__sheet .gnav__h { margin-top: 14px; }
}

/* ===== Platform menu, Option A trial: product switcher (hover or focus a product to see its capabilities) ===== */
.pm { position: relative; display: grid; grid-template-columns: 380px minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 448px; }
.pm__lab { grid-column: 1; margin: 0 0 14px 16px !important; }
.pm__prods { grid-column: 1; display: grid; gap: 6px; align-content: start; }
.pm__p { position: static; }
.pm__row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 18px; gap: 16px; align-items: center; padding: 16px; border-radius: 14px; border: 1px solid transparent; text-decoration: none; transition: background .2s, border-color .2s; }
.pm__row img { width: 92px; height: auto; }
.pm__row b { display: block; font-size: 18px; font-weight: 700; color: #1D2939; }
.pm__row b em { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #E7F6EE; color: #1F7A4D; margin-left: 6px; vertical-align: 2px; }
.pm__row > span > span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: #667085; }
.pm__row .gnav__arr { color: #7034C4; opacity: 0; transition: opacity .2s, translate .2s; }
.pm__mark { display: grid; place-items: center; width: 56px; height: 56px; margin-left: 18px; border-radius: 14px; background: #101828; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.1; text-align: center; }
/* the panel sits flush against the product column, so moving the pointer from a product into its panel keeps it open */
.pm__panel { position: absolute; top: 0; bottom: 0; left: 380px; right: 0; padding-left: 24px; visibility: hidden; opacity: 0; transition: opacity .15s, visibility 0s .15s; }
.pm__card { height: 100%; display: grid; align-content: start; gap: 14px; padding: 22px 26px; border-radius: 16px; border: 1px solid #EAECF0; background: #fff; }
.pm__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid #EAECF0; }
.pm__head p { margin: 0; font-size: 14px; color: #667085; } .pm__head p b { font-size: 16px; color: #1D2939; }
.pm__head a, .pm__fncta { font-size: 15px; font-weight: 600; color: #7034C4; text-decoration: none; }
.pm__head a:hover, .pm__fncta:hover { text-decoration: underline; }
.pm__caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; }
.pm__caps a { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: baseline; padding: 9px 12px; margin: 0 -12px; border-radius: 12px; text-decoration: none; transition: background .2s; }
.pm__caps i { font-style: normal; font-size: 13px; font-weight: 700; color: #7034C4; }
.pm__caps b { font-size: 17px; font-weight: 700; line-height: 1.4; color: #1D2939; }
.pm__caps a:hover, .pm__caps a:focus-visible { background: #F9F4F0; }
.pm__fn { margin: 6px 0 0; max-width: 460px; font-size: 20px; line-height: 1.4; color: #1D2939; }
/* active product: hovered or focused one; DeCYFIR when none is */
.pm__p:hover > .pm__panel, .pm__p:focus-within > .pm__panel,
.pm:not(:has(.pm__p:hover, .pm__p:focus-within)) .pm__p--dc > .pm__panel { visibility: visible; opacity: 1; z-index: 2; transition-delay: 0s; }
.pm__p:hover > .pm__row, .pm__p:focus-within > .pm__row,
.pm:not(:has(.pm__p:hover, .pm__p:focus-within)) .pm__p--dc > .pm__row { background: #F1EAFB; border-color: rgba(112,52,196,.25); }
.pm__p:hover > .pm__row .gnav__arr, .pm__p:focus-within > .pm__row .gnav__arr,
.pm:not(:has(.pm__p:hover, .pm__p:focus-within)) .pm__p--dc > .pm__row .gnav__arr { opacity: 1; translate: 3px 0; }
@media (max-width: 1180px) { .pm { grid-template-columns: 330px minmax(0, 1fr); } .pm__panel { left: 330px; } }

/* ===== Resources menu, R3 trial: one list in two columns, no group headings ===== */
.rl3 { display: block !important; }
.rl3__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px !important; }

/* ===== Solutions menu (3B trial) ===== */
.gnav__drop--sol { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(420px, 1fr); gap: 24px; padding: 22px 14px 14px; }
.gnav__drop--sol .gnav__h { margin: 0 0 8px; padding: 0 20px; }
.gnav__drop--sol a { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gnav__drop--sol em { font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; padding: 3px 9px; border-radius: 999px; background: #F2F4F7; color: #475467; }
.gnav__drop--sol a:hover em { background: #fff; color: #CE202C; }
.gnav__mob .gnav__h { margin: 6px 0 4px; }

/* ===== closed dropdowns ignore the pointer, so passing over the header area does not open them ===== */
.gnav__drop, .gnav__mega { pointer-events: none; }
.gnav__item:hover > .gnav__drop, .gnav__item:focus-within > .gnav__drop,
.gnav__item:hover > .gnav__mega, .gnav__item:focus-within > .gnav__mega { pointer-events: auto; }

/* ===== Dark mode: toggled via [data-theme] on <html> (see shared/theme-toggle.js) ===== */
/* Header bar matches the page's dark background. */
html[data-theme="dark"] .gnav { background: #0B0F1E; border-bottom-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .gnav__top { color: #F2F4F7; }
html[data-theme="dark"] .gnav__drop a,
html[data-theme="dark"] .gnav__prod b, html[data-theme="dark"] .gnav__cap a,
html[data-theme="dark"] .gnav__band b,
html[data-theme="dark"] .gnav__rl b,
html[data-theme="dark"] .pm__row b,
html[data-theme="dark"] .pm__head p b,
html[data-theme="dark"] .pm__caps b,
html[data-theme="dark"] .pm__fn { color: #F2F4F7; }
html[data-theme="dark"] .gnav__drop, html[data-theme="dark"] .gnav__mega,
html[data-theme="dark"] .pm__card { background: #1D2939; border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .gnav__drop a:hover, html[data-theme="dark"] .gnav__drop a:focus-visible,
html[data-theme="dark"] .gnav__prod a:hover, html[data-theme="dark"] .gnav__cap a:hover,
html[data-theme="dark"] .gnav__rl a:hover, html[data-theme="dark"] .pm__caps a:hover { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .gnav__band { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .gnav__band span, html[data-theme="dark"] .gnav__prod span,
html[data-theme="dark"] .gnav__rl span, html[data-theme="dark"] .gnav__h,
html[data-theme="dark"] .pm__row > span > span, html[data-theme="dark"] .pm__head p { color: #98A2B3; }
html[data-theme="dark"] .pm__prodcol, html[data-theme="dark"] .gnav__prodcol { background: rgba(255,255,255,.05); }
html[data-theme="dark"] .pm__head { border-bottom-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .pm__row:hover, html[data-theme="dark"] .pm__p:hover > .pm__row, html[data-theme="dark"] .pm__p:focus-within > .pm__row { background: rgba(112,52,196,.25); }
html[data-theme="dark"] .gnav__start, html[data-theme="dark"] .gnav__pill {
  background: linear-gradient(#1D2939, #1D2939) padding-box, linear-gradient(90deg, #CE202C, #7034C4) border-box; color: #FF9AA0; }
html[data-theme="dark"] .gnav__pill { color: #F2F4F7; }
html[data-theme="dark"] .gnav__sheet-card { background: #0C0F1A !important; }
@media (max-width: 1024px) {
  html[data-theme="dark"] .gnav__mob > summary span { background: #F2F4F7; }
  html[data-theme="dark"] .gnav__sheet { background: #101828; border-top-color: rgba(255,255,255,.1); }
  html[data-theme="dark"] .gnav__mlink, html[data-theme="dark"] .gnav__sheet > details > summary { border-bottom-color: rgba(255,255,255,.1); }
}

/* theme-toggle icon: sun for dark mode (click to go light), moon for light mode (click to go dark).
   The button itself (background/circle) stays identical in both themes — only the icon swaps. */
.gnav__theme { position: relative; overflow: hidden; }
.gnav__theme svg { position: absolute; top: 50%; left: 50%; translate: -50% -50%; transition: opacity .25s, rotate .35s, scale .35s; }
.gnav__theme .gnav__sun { opacity: 0; rotate: -90deg; scale: .4; }
.gnav__theme .gnav__moon { opacity: 1; rotate: 0deg; scale: 1; }
html[data-theme="dark"] .gnav__theme .gnav__moon { opacity: 0; rotate: 90deg; scale: .4; }
html[data-theme="dark"] .gnav__theme .gnav__sun { opacity: 1; rotate: 0deg; scale: 1; }

/* ===== Language switcher (WPML widget), styling ported from the previous theme ===== */
.gnav__lang.wpmltranslatedesktop { display: block; position: relative;}
.gnav__lang .wpml-ls-legacy-dropdown { display: inline-block; width: 100% !important; }
.gnav__lang .wpml-ls-legacy-dropdown a.wpml-ls-item-toggle {
  background-image: linear-gradient(#7034C4, #101828); line-height: 30px; padding-right: 0;
  border: none !important; border-color: #101828 !important; color: #fff !important; height: 44px; border-radius: 999px; }
.gnav__lang .wpml-ls-legacy-dropdown a.wpml-ls-item-toggle:hover { background: #7034C4 !important; color: #fff !important; }
.gnav__lang .wpml-ls-legacy-dropdown .wpml-ls-item { width: 100%; }
.gnav__lang .wpml-ls-legacy-dropdown .wpml-ls-sub-menu { border: none !important; box-shadow: 0 24px 56px -24px rgba(16,24,40,.28); }
.gnav__lang .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a { border-width: 0 !important; line-height: 30px; color: #1D2939; width: 100%; background: #fff; }
.gnav__lang .wpml-ls-legacy-dropdown a { background: #101828; color: #fff !important; border-color: #101828 !important; }
.gnav__lang .wpml-ls-legacy-dropdown .wpml-ls-current-language:hover > a,
.gnav__lang .wpml-ls-legacy-dropdown a:focus { color: #fff; background: #7034C4; }
.gnav__lang .wpml-ls-legacy-dropdown a:hover { color: #fff; background: #5B28A3; }
@media (max-width: 1180px) {
  .gnav__lang.wpmltranslatedesktop { display: none; }
}
.gnav__lang--mob { display: block; margin: 16px 0; }
.gnav__lang--mob .wpml-ls-legacy-dropdown { width: 100% !important; margin: 0; }
.gnav__lang--mob .wpml-ls-legacy-dropdown a.wpml-ls-item-toggle { width: 100%; height: 48px; }
html[data-theme="dark"] .gnav__lang .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a { background: #1D2939; color: #F2F4F7; }
.wpml-ls-legacy-list-horizontal a { padding: 0 !important; }
.wpml-ls-legacy-list-horizontal { padding: 0 !important; }
