/* Finance reference layout, without brand values or icon-button overrides. */
.cms-editorial-header__thematic-frame { max-width: min(1480px, calc(100vw - 32px)); }
body > nav.cms-editorial-header[x-data] .cms-editorial-header__bar:has([data-cms-thematic-nav]) { position: relative; overflow: visible; gap: 10px; }
.cms-editorial-header__bar:has([data-cms-thematic-nav]) .cms-editorial-header__brand { flex: 0 0 auto; margin-right: 0; }
body > nav[x-data] .cms-editorial-header__desktop-nav[data-cms-thematic-nav] { flex: 1 1 auto; min-width: 0; margin-left: 0; justify-content: flex-end; flex-wrap: wrap; gap: 12px var(--cms-navigation-gap, 28px); }
/* THEMATIC_NAV_DENSE_GAP_V1 (2026-10-13): seven entries or more (six themes + Blog) keep one line on a 1050 px bar. */
body > nav[x-data] .cms-editorial-header__desktop-nav[data-cms-thematic-nav]:has(> :nth-child(7)) { column-gap: clamp(14px, 1.1vw, 22px); }
.cms-thematic-nav__item { position: static; flex: 0 0 auto; }
.cms-thematic-nav__trigger,
body > nav.cms-editorial-header[x-data] [data-cms-thematic-nav] .cms-thematic-nav__trigger {
  /* Block-level flex avoids an inherited descender line box inside details. */
  display: flex; align-items: center; gap: 1px; padding: 0; margin: 0;
  color: var(--color-text); font: 620 var(--cms-navigation-font-size, 13px)/1.15 var(--font-body, sans-serif);
  white-space: nowrap; list-style: none; text-decoration: none; cursor: pointer; letter-spacing: -.35px;
}
.cms-thematic-nav__trigger::-webkit-details-marker { display: none; }
body > nav.cms-editorial-header[x-data] [data-cms-thematic-nav] button.cms-thematic-nav__trigger { -webkit-appearance: none; appearance: none; width: auto; height: auto; background: none; border: 0; }
.cms-thematic-nav__trigger > svg { flex: 0 0 11px; width: 11px; height: 11px; }
.cms-thematic-nav__trigger--empty { cursor: default; }
.cms-thematic-nav__trigger:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 5px; }
.cms-thematic-nav__mega { position: absolute; z-index: 90; top: 100%; left: 50%; width: min(1280px, calc(100vw - 40px)); padding-top: 12px; transform: translateX(-50%); }
/* CONTENT_FIRST_V1 (2026-11-03): the panel is a popover in the top layer, fixed under the header bar (thematic-navigation.js
   sets --cms-mega-top and --cms-mega-x on opening; without JS it sits under the header height, centred). */
.cms-thematic-nav__mega[popover] { position: fixed; inset: auto; top: var(--cms-mega-top, var(--cms-header-height, 72px)); left: var(--cms-mega-x, 50vw); width: min(1280px, calc(100vw - 40px)); height: auto; max-height: none; margin: 0; padding: 12px 0 0; overflow: visible; border: 0; color: var(--color-text); background: transparent; font-family: var(--font-body, sans-serif); transform: translateX(-50%); }
/* Out of the header the panel no longer inherits its link reset (weight 620, no underline). */
.cms-thematic-nav__mega a { font-weight: 620; text-decoration: none; }
@supports not selector(:popover-open) { .cms-thematic-nav__mega[popover]:not(.is-open) { display: none; } }
.cms-thematic-nav__mega-inner { display: grid; grid-template-columns: minmax(250px, .78fr) minmax(0, 2.22fr); min-height: 310px; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-lg, 22px); background: var(--cms-content-surface-background, #fff); box-shadow: 0 26px 80px rgb(15 23 42 / 20%); }
.cms-thematic-nav__overview { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 26px; color: #fff; background: var(--color-dark-bg); }
.cms-thematic-nav__media { position: absolute; inset: 0; }
.cms-thematic-nav__media::after { position: absolute; inset: 0; content: ''; background: linear-gradient(180deg, transparent, var(--color-dark-bg)); }
.cms-thematic-nav__media img { width: 100%; height: 100%; object-fit: cover; }
.cms-thematic-nav__overview-copy { position: relative; display: grid; gap: 8px; }
.cms-thematic-nav__overview-copy small { color: var(--color-accent-2); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.cms-thematic-nav__overview-copy strong { color: #fff; font: 750 clamp(22px, 2vw, 31px)/1.08 var(--font-heading, sans-serif); }
.cms-thematic-nav__overview-copy p { margin: 0; color: rgb(255 255 255 / 85%); font-size: 14px; line-height: 1.5; }
.cms-thematic-nav__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; padding: 28px 30px; }
.cms-thematic-nav__column { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.cms-thematic-nav__group h3 { margin: 0 0 8px; color: var(--color-accent); font: 800 12px/1.4 var(--font-body, sans-serif); text-transform: uppercase; }
.cms-thematic-nav__links { display: grid; gap: 2px; }
.cms-thematic-nav__mega .cms-thematic-nav__links a { padding: 6px 0; color: var(--color-text); font-size: 14px; line-height: 1.4; white-space: normal; }
.cms-thematic-nav__links a:hover, .cms-thematic-nav__links a:focus-visible { text-decoration: underline; }
/* MENU_GROUP_MEDIA_V1 (Julien 2026-10-15): one filled column takes the whole width; pictured entries become small cards
   (up to 4, the scene of the page) or a two-column picture list (up to 10, the product on white); long word lists split. */
.cms-thematic-nav__groups--single { grid-template-columns: minmax(0, 1fr); }
.cms-thematic-nav__links--split { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.cms-thematic-nav__links--cards { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
/* MENU_CARDS_TWO_ROWS_V1: 5 to 8 scene cards on two rows. */
.cms-thematic-nav__links--cards[style*="--nav-cols"] { grid-template-columns: repeat(var(--nav-cols), minmax(0, 190px)); gap: 12px; }
.cms-thematic-nav__links--cards[style*="--nav-cols"] .cms-thematic-nav__thumb { aspect-ratio: 16 / 10; }
.cms-thematic-nav__links--cards[style*="--nav-cols"] .cms-thematic-nav__label { padding: 9px 12px 10px; font-size: 13.5px; }
/* MENU_PRODUCT_CARDS_V1: brand cards show the cut-out whole, on the light ground of the catalogue cards. */
.cms-thematic-nav__links--product { grid-template-columns: repeat(auto-fill, minmax(150px, 170px)); gap: 12px; }
.cms-thematic-nav__links--product .cms-thematic-nav__thumb { aspect-ratio: 4 / 3; padding: 12px; background: color-mix(in srgb, var(--color-bg-alt, #f4f4f2) 70%, #fff); }
.cms-thematic-nav__links--product .cms-thematic-nav__thumb img { object-fit: contain; }
.cms-thematic-nav__links--product .cms-thematic-nav__label { padding: 9px 12px 10px; font-size: 13.5px; }
.cms-thematic-nav__mega .cms-thematic-nav__links--cards a { display: grid; gap: 0; overflow: hidden; padding: 0; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-bg, #fff); text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.cms-thematic-nav__mega .cms-thematic-nav__links--cards a:hover, .cms-thematic-nav__mega .cms-thematic-nav__links--cards a:focus-visible { border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border)); box-shadow: 0 10px 22px rgb(15 23 42 / 8%); text-decoration: none; transform: translateY(-2px); }
.cms-thematic-nav__links--cards .cms-thematic-nav__thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-bg-alt, #f4f4f2); }
.cms-thematic-nav__links--cards .cms-thematic-nav__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cms-thematic-nav__links--cards .cms-thematic-nav__label { padding: 11px 13px 13px; font-weight: 700; line-height: 1.3; }
.cms-thematic-nav__links--media { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.cms-thematic-nav__mega .cms-thematic-nav__links--media a { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px 8px; border-radius: 10px; text-decoration: none; }
.cms-thematic-nav__mega .cms-thematic-nav__links--media a:hover, .cms-thematic-nav__mega .cms-thematic-nav__links--media a:focus-visible { background: color-mix(in srgb, var(--color-accent) 8%, transparent); text-decoration: none; }
.cms-thematic-nav__links--media .cms-thematic-nav__thumb { display: grid; width: 52px; height: 52px; place-items: center; overflow: hidden; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; }
.cms-thematic-nav__links--media .cms-thematic-nav__thumb img { width: 100%; height: 100%; padding: 4px; box-sizing: border-box; object-fit: contain; }
.cms-thematic-nav__links--media .cms-thematic-nav__label { font-weight: 600; line-height: 1.3; }
.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; justify-content: space-between; gap: 16px; padding: 15px 0; color: inherit; font-weight: 750; list-style: none; text-decoration: none; }
.cms-thematic-nav__mobile summary { cursor: pointer; }
.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: 12px; text-transform: uppercase; }
.cms-thematic-nav__mobile-panel a { display: block; padding: 9px 0; color: inherit; font-size: 14px; line-height: 1.4; text-decoration: none; }
.cms-thematic-nav__nojs { display: none; padding: 16px; }
@media (max-width: 1279px) { .cms-thematic-nav__mega { display: none; } }
@media (max-width: 1279px) { .cms-thematic-nav__nojs { display: block; } }

/* THEMATIC_MOBILE_MENU_V2 (Julien 2026-10-09): on a phone an opened rubric reads as a title with its own block below —
   the title in the accent ink with room under it, the sub-menu in a soft tinted card (not glued to the title), groups
   separated by a hairline, links slightly larger with a separator and a small chevron. */
.cms-mobile-nav details[open] > summary { color: color-mix(in srgb, var(--color-accent, #14a3a8) 70%, var(--color-text, #1d2433)); padding-bottom: 12px; }
.cms-thematic-nav__mobile-panel {
  margin: 0 0 16px; padding: 14px 16px 6px;
  border-radius: 14px; background: color-mix(in srgb, var(--color-accent, #14a3a8) 7%, var(--color-bg, #fff));
}
.cms-thematic-nav__mobile-panel section + section {
  margin-top: 10px; padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--color-accent, #14a3a8) 18%, transparent);
}
.cms-thematic-nav__mobile-panel h3 { margin: 0 0 2px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; }
.cms-thematic-nav__mobile-panel a {
  position: relative; padding: 11px 22px 11px 0; font-size: 15px; line-height: 1.35;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text, #1d2433) 8%, transparent);
}
.cms-thematic-nav__mobile-panel section a:last-child { border-bottom: 0; }
.cms-thematic-nav__mobile-panel a::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor; opacity: .45;
  transform: translateY(-50%) rotate(45deg);
}

/* MOBILE_MENU_DRILL_V1 (Julien 2026-11-04): phone menu = list of rubrics, each rubric on its own screen (back button,
   title, plain grouped lists). One row height, one separator, no nested tinted card. */
.cms-mnav { display: block; }
.cms-mnav__row, .cms-mnav__back, .cms-mnav__all {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: none;
}
.cms-mnav__row { min-height: 54px; font-size: 17px; font-weight: 700; border-bottom: 1px solid var(--color-border, #e5e7eb); }
.cms-mnav__screen--root .cms-mnav__row:last-child { border-bottom: 0; }
.cms-mnav svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.cms-mnav__back { justify-content: flex-start; gap: 6px; min-height: 40px; margin-bottom: 4px; color: var(--color-accent, #0f766e); font-size: 14px; font-weight: 700; }
.cms-mnav__back svg { opacity: 1; width: 16px; height: 16px; }
.cms-mnav__title { margin: 0 0 6px; font-family: var(--font-heading, inherit); font-size: 22px; font-weight: 800; line-height: 1.2; }
.cms-mnav__all { justify-content: flex-start; gap: 4px; width: auto; margin-bottom: 8px; color: var(--color-accent, #0f766e); font-size: 14px; font-weight: 700; }
.cms-mnav__all svg { width: 15px; height: 15px; opacity: 1; }
.cms-mnav__group { padding: 14px 0 6px; border-top: 1px solid var(--color-border, #e5e7eb); }
.cms-mnav__group:first-of-type { border-top: 0; }
.cms-mnav__group h3 { margin: 0 0 4px; color: var(--color-accent, #0f766e); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cms-mnav__link { display: block; padding: 9px 0; color: inherit; font-size: 15px; line-height: 1.35; text-decoration: none; }
.cms-mnav__link:active, .cms-mnav__row:active { opacity: .65; }
.cms-mnav__link--soon { opacity: .6; }
.cms-mnav__screen.is-entering { animation: cms-mnav-in .22s ease-out; }
.cms-mnav__screen.is-returning { animation: cms-mnav-back .22s ease-out; }
@keyframes cms-mnav-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes cms-mnav-back { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

/* SEARCH_MODAL_V1 (Julien 2026-11-04): the header magnifier opens this box; submit → results page. */
.cms-site-search { width: min(680px, calc(100% - 32px)); max-width: none; margin: 12vh auto auto; padding: 22px 22px 24px; border: 0; border-radius: 18px;
  background: var(--color-bg, #fff); color: var(--color-text, #1d2433); box-shadow: 0 30px 80px rgb(8 14 24 / 35%); overflow: visible; }
.cms-site-search::backdrop { background: rgb(8 14 24 / 60%); backdrop-filter: blur(3px); }
.cms-site-search[open] { animation: cms-search-in .18s ease-out; }
@keyframes cms-search-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.cms-site-search__label { display: block; margin: 0 44px 12px 2px; font-family: var(--font-heading, inherit); font-size: 18px; font-weight: 800; }
.cms-site-search__field { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border: 2px solid var(--color-border, #e5e7eb); border-radius: 999px; transition: border-color .15s ease; }
.cms-site-search__field:focus-within { border-color: var(--color-accent, #0f766e); }
.cms-site-search__field > svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; opacity: .5; }
.cms-site-search__input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; color: inherit; font: inherit; font-size: 16px; }
.cms-site-search__input::-webkit-search-cancel-button { display: none; }
.cms-site-search__submit { flex: none; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--color-accent, #0f766e); color: var(--color-on-accent, #fff); font: inherit; font-weight: 800; cursor: pointer; }
.cms-site-search__submit svg { display: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cms-site-search__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--color-text, #1d2433) 7%, transparent); color: inherit; cursor: pointer; }
.cms-site-search__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (max-width: 640px) {
  .cms-site-search { width: calc(100% - 24px); margin-top: 12px; padding: 18px 16px 18px; }
  .cms-site-search__submit { display: grid; place-items: center; width: 44px; padding: 0; }
  .cms-site-search__submit span { display: none; }
  .cms-site-search__submit svg { display: block; }
}
@media (prefers-reduced-motion: reduce) { .cms-mnav__screen, .cms-site-search[open] { animation: none !important; } }

/* MOBILE_MENU_DRILL_V1, links of a rubric (Julien 2026-11-04): set in from the group label, a small accent chevron in
   front, a hairline between links, two lines at most. */
.cms-mnav__group h3 { margin-bottom: 2px; }
.cms-mnav__link { display: flex; align-items: flex-start; gap: 10px; padding: 11px 4px 11px 12px; font-size: 15px; font-weight: 500; line-height: 1.38;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text, #1d2433) 7%, transparent); }
.cms-mnav__group .cms-mnav__link:last-child { border-bottom: 0; }
.cms-mnav__link svg { width: 14px; height: 14px; margin-top: 3px; color: var(--color-accent, #0f766e); opacity: 1; stroke-width: 2.6; }
.cms-mnav__link span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.cms-mnav__link--soon { padding-left: 36px; }

/* THEMATIC_NAV_FAMILIES_V1 (Julien 2026-11-05): menu variant `families` — a narrower presentation, one column per kind
   of link (guides, resources, tools; comparisons, reviews), the links sorted by sub-family under a small title. */
.cms-thematic-nav__mega--families .cms-thematic-nav__mega-inner { grid-template-columns: minmax(200px, .5fr) minmax(0, 2.5fr); }
.cms-thematic-nav__mega--families .cms-thematic-nav__overview { padding: 22px; }
.cms-thematic-nav__mega--families .cms-thematic-nav__overview-copy strong { font-size: clamp(20px, 1.7vw, 26px); }
.cms-thematic-nav__mega--families .cms-thematic-nav__groups { grid-template-columns: repeat(var(--nav-groups, 2), minmax(0, 1fr)); gap: 26px; }
.cms-thematic-nav__family { display: table; width: fit-content; justify-self: start; align-self: start; margin: 14px 0 4px; padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--color-accent) 16%, transparent); border-radius: 6px; background: color-mix(in srgb, var(--color-accent) 7%, var(--color-bg, #fff)); color: var(--color-text, #192443); font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.cms-thematic-nav__family:first-child { margin-top: 0; }
.cms-mnav__family { display: table; margin: 14px 0 4px; padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--color-accent) 16%, transparent); border-radius: 6px; background: color-mix(in srgb, var(--color-accent) 7%, var(--color-bg, #fff)); color: var(--color-text, #192443); font-size: 13px; font-weight: 700; }
