/* Thematic navigation is an optional data layer on the standard header. */
.cms-editorial-header__bar:has(.cms-thematic-nav__item) { position: relative; overflow: visible; gap: 10px !important; }
.cms-editorial-header__thematic-frame { max-width: min(1480px, calc(100vw - 24px)); }
.cms-editorial-header__bar:has(.cms-thematic-nav__item) .cms-editorial-header__brand { flex: 0 0 auto; margin-right: 0; }
.cms-editorial-header__desktop-nav:has(.cms-thematic-nav__item) { flex: 1 1 auto; justify-content: flex-end; gap: 28px !important; }
.cms-thematic-nav__item { position: static; }
/* Theme roots are buttons (they only open the mega-menu), but must retain the
 * exact text-link footprint of the former anchors. The shared header's generic
 * button rule is intentionally icon-sized, so reset those icon dimensions here. */
body > nav.cms-editorial-header[x-data] .cms-editorial-header__desktop-nav.hidden button.cms-thematic-nav__trigger {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible !important;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 13px;
  font-weight: 620;
  line-height: 16px;
  letter-spacing: normal;
  text-align: start;
  text-indent: 0;
  white-space: nowrap;
  cursor: pointer;
  place-items: initial;
}
body > nav.cms-editorial-header[x-data] .cms-editorial-header__desktop-nav.hidden button.cms-thematic-nav__trigger svg { margin-left: 1px; }
.cms-thematic-nav__mega { position: absolute; z-index: 90; top: calc(100% - 1px); left: 50%; width: min(1280px, calc(100vw - 28px)); padding-top: 10px; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 7px); transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; }
.cms-thematic-nav__mega::before { position: absolute; top: 0; right: 0; left: 0; height: 12px; content: ""; }
.cms-thematic-nav__mega--open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s; }
.cms-thematic-nav__mega-inner { display: grid; grid-template-columns: minmax(250px, .78fr) minmax(0, 2.22fr); min-height: 310px; overflow: hidden; isolation: isolate; border: 1px solid color-mix(in srgb, var(--color-accent) 16%, var(--color-border)); border-radius: min(var(--radius-lg, 20px), 24px); color: var(--color-text); background: var(--wi2-paper, #fff); box-shadow: 0 26px 80px rgba(var(--wi2-dark-rgb, 18,39,43), .2); }
.cms-thematic-nav__overview { position: relative; display: flex; min-width: 0; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 26px; color: #fff; background: var(--color-dark-bg); text-decoration: none; }
.cms-thematic-nav__media { position: absolute; inset: 0; }
.cms-thematic-nav__media::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--wi2-dark-rgb, 18,39,43), .12), rgba(var(--wi2-dark-rgb, 18,39,43), .94)); content: ""; }
.cms-thematic-nav__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cms-thematic-nav__overview:hover .cms-thematic-nav__media img { transform: scale(1.025); }
.cms-thematic-nav__overview-copy { position: relative; z-index: 1; display: grid; gap: 8px; }
.cms-thematic-nav__overview-copy small { color: var(--color-accent-3); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.cms-thematic-nav__overview-copy strong { color: #fff; font-family: var(--font-heading); font-size: clamp(22px, 2vw, 31px); line-height: 1.04; }
.cms-thematic-nav__overview-copy > span { color: rgba(255,255,255,.74); font-size: 14px; line-height: 1.5; }
.cms-thematic-nav__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "guides comparison" "resources reviews" "other tools"; align-content: start; gap: 24px 30px; min-width: 0; padding: 28px 30px 24px; }
.cms-thematic-nav__group { min-width: 0; }
.cms-thematic-nav__group--guides { grid-area: guides; }
.cms-thematic-nav__group--resources { grid-area: resources; }
.cms-thematic-nav__group--comparison { grid-area: comparison; }
.cms-thematic-nav__group--reviews { grid-area: reviews; }
.cms-thematic-nav__group--tools { grid-area: tools; }
.cms-thematic-nav__group--other { grid-area: other; }
.cms-thematic-nav__group h3 { margin: 0 0 12px; color: var(--color-accent); font-family: var(--font-body); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.cms-thematic-nav__links { display: grid; gap: 1px; }
body > nav.cms-editorial-header[x-data] .cms-editorial-header__desktop-nav.hidden .cms-thematic-nav__links a { display: block; padding: 6px 0; color: var(--color-text); font-size: 14px; font-weight: 620; line-height: 1.34; text-decoration: none; }
.cms-thematic-nav__links a:hover,
.cms-thematic-nav__links a:focus-visible { color: var(--color-accent-2); }
body > nav.cms-editorial-header[x-data] .cms-editorial-header__desktop-nav.hidden .cms-thematic-nav__all { display: inline-flex; grid-area: all; align-items: center; justify-content: space-between; gap: 16px; align-self: end; min-height: 48px; margin-top: auto; padding: 12px 16px; border-radius: var(--wi2-action-radius, 12px); color: var(--color-dark-bg); background: var(--color-accent-3); font-size: 14px; font-weight: 850; text-decoration: none; }
.cms-thematic-nav__all svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.cms-thematic-nav__all:hover,
.cms-thematic-nav__all:focus-visible { color: #fff; background: var(--color-accent-2); }
.cms-thematic-nav__mobile { display: grid; }
.cms-thematic-nav__mobile details { border-bottom: 1px solid var(--color-border); }
.cms-thematic-nav__mobile summary,
.cms-thematic-nav__mobile-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; color: inherit; cursor: pointer; font-weight: 750; list-style: none; text-decoration: none; }
.cms-thematic-nav__mobile summary::-webkit-details-marker { display: none; }
.cms-thematic-nav__mobile details[open] summary span { transform: rotate(45deg); }
.cms-thematic-nav__mobile-panel { padding: 0 0 20px 12px; }
.cms-thematic-nav__mobile-panel section + section { margin-top: 16px; }
.cms-thematic-nav__mobile-panel h3 { margin: 0 0 4px; color: var(--color-accent); font-size: 11px; text-transform: uppercase; }
.cms-thematic-nav__mobile-panel a { display: block; padding: 7px 0; color: inherit; font-size: 14px; line-height: 1.4; text-decoration: none; }
.cms-thematic-nav__mobile-root { color: var(--color-accent-2) !important; font-weight: 800; }
@media (max-width: 1180px) {
  .cms-editorial-header__desktop-nav:has(.cms-thematic-nav__item) { gap: 7px; }
  body > nav.cms-editorial-header[x-data] .cms-editorial-header__desktop-nav.hidden .cms-thematic-nav__trigger { font-size: 11px; }
}
@media (max-width: 1024px) { .cms-thematic-nav__mega { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .cms-thematic-nav__mega, .cms-thematic-nav__media img { transition: none; }
}
