/*
 * CMC Funded site skin: the site header, the site footer and the 404 page.
 *
 * Loaded by cmc-site-skin.php on every skinned page, after tokens.css, and only while the body
 * carries .cmc-skin. Since 29 September 2026 the skin no longer restyles the old Elementor header
 * and footer: cmc-site-skin.php removes them from the page and prints the new main site's own
 * header and footer instead (cmc_site_skin_header_html(), cmc_site_skin_footer_html()).
 *
 * SECTIONS 1, 2 AND 3 ARE YUNUS'S CSS, VERBATIM. They are copied from CMC-Funded/cmc-funded-main-page
 * at bf81076 with his class names, so the header and footer here are the ones on the front page:
 *   src/landing/landing.css        :root --nl-*, .nl-header ... .nl-mobile-menu, and the 1279px (1000px
 *                                  until main-page #110) and 700px rules for them
 *   src/landing/brand-typography.css .nl-button / .nl-desktop-nav a / .nl-sign-in type
 *   src/landing/site-chrome.css    .site-header aria-current mark, .site-footer grid
 *   src/landing/decision-summary.css .decision-footer
 *   src/styles.css                 --sans and --type-body
 * To take a later version of his chrome, copy those rules again; do not edit them here.
 *
 * WHAT IS NOT HIS, and why (the only invented rules in this file, all in section 0):
 *   - the page is pushed down by his .secondary-page__main padding (112px, 92px under 700px),
 *     because his header is fixed and WordPress pages do not carry that class;
 *   - the menu button and the header links are reset against the Hello Elementor theme's
 *     button and link styles (padding, pink hover fill, underline), which his page never loads;
 *   - .nl-mobile-menu[hidden] stays hidden: his menu is mounted by React only while open, here it
 *     is printed once and shown by cmc-site-skin/chrome.js;
 *   - the header slides away on scroll with a CSS transition instead of his GSAP tween;
 *   - Hello Elementor's theme.css boxes any .site-header and .site-footer to 1140px with 10px
 *     phone gutters and 1rem of vertical padding; his header and footer carry those class names, so
 *     their own width and padding are restated here;
 *   - the footer's legal block holds four paragraphs (the approved screens), spaced .7rem apart;
 *   - his logo sizes are restated with !important against an inline checkout rule that resizes
 *     every header image;
 *   - the page's bottom padding, kept by another plugin for the removed phone bar, is cleared;
 *   - the order received page drops the 170px its Elementor layout kept for the old header;
 *   - the waves (section 4): the fixed canvas, the isolated body it paints in, and the transparent
 *     wrappers that let it show;
 *   - the two phone menu pills are set in Neue Haas Text, as they render on his live front page;
 *   - the newcomer line in the phone menu (main-page #123) keeps its underline against the header
 *     link reset above, and is set in --sans;
 *   - under 700px the footer's legal text and column heads are set larger (mobile-12), until the
 *     same change is made in his decision-summary.css.
 */

/* ------------------------------------------------------------------ 0. fitting it to WordPress */

body.cmc-skin { padding-top: 112px; }
@media (max-width: 700px) { body.cmc-skin { padding-top: 92px; } }
body.cmc-skin .nl-header { box-sizing: border-box; transition: transform .3s cubic-bezier(.16, 1, .3, 1), background-color .24s ease, border-color .24s ease, box-shadow .24s ease, backdrop-filter .24s ease; }
body.cmc-skin .nl-header.is-hidden { transform: translate3d(0, calc(-100% - 40px), 0); }
body.cmc-skin .nl-header a { text-decoration: none; }
body.cmc-skin .nl-menu-trigger { padding: 0; cursor: pointer; }
body.cmc-skin .nl-menu-trigger:is(:hover, :focus) { color: #fff; background: rgba(255,255,255,.06); border-color: var(--nl-line); }
body.cmc-skin .nl-menu-trigger svg { width: 24px; height: 24px; }
body.cmc-skin .nl-mobile-menu[hidden],
body.cmc-skin .nl-menu-trigger svg[hidden] { display: none !important; }
/* The grouped menus' buttons (section 5) reset against Hello Elementor's button styles (pink border,
   padding, pink hover fill), as the menu button above is; their own look is restated after the reset. */
body.cmc-skin .nl-header :is(.mega-nav__trigger, .mega-accordion__trigger) { margin: 0; border: 0; border-radius: 10px; background: none; box-shadow: none; text-transform: none; white-space: nowrap; }
body.cmc-skin .nl-header .mega-nav__trigger { padding: 0 12px; color: rgba(255,255,255,.78); font: 400 14px/1 "Neue Haas Text", Arial, sans-serif; }
body.cmc-skin .nl-header .mega-nav__trigger:is(:hover, :focus, [aria-expanded="true"]) { color: #fff; background: rgba(255,255,255,.07); }
body.cmc-skin .nl-header .mega-nav__trigger:focus:not(:focus-visible) { outline: none; }
body.cmc-skin .nl-header .mega-nav__trigger[data-current="true"] { color: #fff; border-radius: 10px 10px 2px 2px; }
body.cmc-skin .nl-header .mega-accordion__trigger { padding: 0; color: #fff; border-radius: 0; }
body.cmc-skin .nl-header .mega-accordion__trigger:is(:hover, :focus) { color: #fff; background: none; }
body.cmc-skin .nl-header .mega-accordion__trigger svg,
body.cmc-skin .nl-header .mega-nav__trigger svg { flex: 0 0 auto; }
body.cmc-skin .nl-header :is(.mega-nav__bar, .mega-panel ul, .mega-accordion__panel) { margin: 0; padding: 0; list-style: none; }
body.cmc-skin .nl-header :is(.mega-nav__bar, .mega-panel ul, .mega-accordion__panel) > li { margin: 0; }
/* The phone menu's grouped pages are tiles, not the menu's large serif rows. */
body.cmc-skin .nl-header .nl-mobile-menu .mega-accordion__panel .mega-tile { display: flex; align-items: flex-start; font: inherit; letter-spacing: 0; }
body.cmc-skin .nl-mobile-menu :is(.nl-mobile-sign-in, .nl-mobile-primary) { font-family: var(--sans); }
body.cmc-skin .nl-mobile-menu .nl-mobile-newcomer { font-family: var(--sans); }
body.cmc-skin .nl-header .nl-mobile-newcomer a { text-decoration: underline; }
body.cmc-skin .nl-header.site-header { position: fixed; display: grid; width: var(--nl-shell); max-width: none; margin-inline: auto; padding-block: 0; }
body.cmc-skin .decision-footer.site-footer { width: auto; max-width: none; margin-inline: 0; padding-inline: 1.25rem; }
@media (min-width: 44rem) { body.cmc-skin .decision-footer.site-footer { padding-inline: 2rem; } }
@media (max-width: 700px) { body.cmc-skin .nl-header.site-header { width: calc(100% - 24px); padding-inline: 14px 9px; } }
body.cmc-skin .nl-button:hover, body.cmc-skin .nl-button:focus { color: #fff; }
body.cmc-skin .decision-footer a:hover, body.cmc-skin .decision-footer a:focus { color: #fff; }
body.cmc-skin .decision-footer p { font-family: var(--sans); }
/* The approved screens carry every legal line of the old footer and the old checkout strip in the
   footer's legal block, one paragraph each (screens/site-chrome.css .sc-footer__legal p). */
body.cmc-skin .decision-footer__legal > div > p { max-width: 48rem; margin: 0 0 .7rem; }
/* The account page (?cmc_mt_access=1) hides every .site-footer with !important, to keep the old
   Elementor footer off it. This footer carries every legal line, so it is shown there too. */
body.cmc-skin.cmc-mt-account-access-page footer.decision-footer.site-footer { display: block !important; }
/* A plugin reserved room at the foot of the page for the old phone "Start Challenge" bar, which
   is no longer printed. */
body.cmc-skin { padding-bottom: 0 !important; }
/* An inline rule on the checkout pages sizes every "header img" and ".site-header img" with
   width:auto!important (for the old Elementor logo), which drew his logo at its natural 187px. His
   sizes are restated so they win there too. */
body.cmc-skin .nl-header .nl-brand img { width: clamp(94px, 7.5vw, 108px) !important; max-width: none !important; height: auto !important; }
@media (max-width: 700px) { body.cmc-skin .nl-header .nl-brand img { width: 78px !important; } }
body.cmc-skin .decision-footer__brand img { width: min(8.5rem, 42vw) !important; max-width: none !important; height: auto !important; }
/* The footer lockup (the logo over "On firm ground.") is sized as on the main site: its logo part draws at
   the old logo's width (decision-summary.css in cmc-funded-main-page). */
body.cmc-skin .decision-footer__brand img.decision-footer__lockup { width: min(7.93rem, 39.2vw) !important; }
@media (prefers-reduced-motion: reduce) { body.cmc-skin .nl-header { transition: none; } }
/* The order received page (page 30) reserves 170px at the top for the old fixed Elementor header,
   which is no longer printed; the body offset above takes its place. */
html body.cmc-skin.cmc-checkout-receipt .elementor .e-con.e-parent > .e-con-inner { padding-top: 0 !important; }
/* The footer's legal paragraphs (.68rem, 10.9px) and its column heads (.65rem, 10.4px) are under the
   12px floor for text on a phone, and this block carries the "all accounts are simulated" and "Not a
   Deposit, Not Insured, May Lose Value" lines. Under 700px they take the skin's own legal size
   (--skin-type-legal, .75rem) and .72rem for the spaced capitals (Fable checkout critique mobile-12,
   30 September 2026). The same two lines are proposed for decision-summary.css in
   cmc-funded-main-page; once they are there and section 2 is copied again, this rule can go. */
@media (max-width: 700px) {
  body.cmc-skin .decision-footer__legal { font-size: .75rem; }
  body.cmc-skin .decision-footer__nav p { font-size: .72rem; }
}

/* ------------------------------------------------------------------ 1. header (Yunus, verbatim) */

:root { --nl-navy: #101626; --nl-deep: #101626; --nl-raised: #151d31; --nl-azure: #325fff; --nl-signal-teal: #00c7c5; --nl-signal-violet: #805cff; --nl-white: #fff; --nl-mist: #e6eaf2; --nl-muted: #b3bdd0; --nl-line: rgba(255,255,255,.16); --nl-shell: min(1380px, calc(100% - clamp(40px, 7vw, 120px))); }
:root { --sans: "Neue Haas Text", Arial, sans-serif; --type-body: 1rem; }

/* Skip to content, the main site's .nl-skip (landing.css), printed first in the body by
   cmc-site-skin.php. Off screen until it takes focus. */
body.cmc-skin .nl-skip { position: fixed; left: 18px; top: 12px; z-index: 100; transform: translateY(-160%); background: var(--nl-white); color: var(--nl-deep); padding: 12px 18px; }
body.cmc-skin .nl-skip:focus { transform: none; }

.nl-header { position: fixed; z-index: 50; inset: 18px 0 auto; height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: var(--nl-shell); margin-inline: auto; padding-inline: 20px; border: 1px solid transparent; border-radius: 999px; background: transparent; box-shadow: none; transition: background-color .24s ease, border-color .24s ease, box-shadow .24s ease, backdrop-filter .24s ease; will-change: transform; }
.nl-header.is-scrolled,
.nl-header.is-menu-open { border-color: rgba(255,255,255,.2); background: linear-gradient(112deg, rgba(255,255,255,.13), rgba(255,255,255,.035) 44%, rgba(50,95,255,.1)), rgba(8,13,24,.9); box-shadow: 0 18px 50px rgba(2,6,16,.28), inset 0 1px rgba(255,255,255,.19); backdrop-filter: blur(28px) saturate(145%); }
.nl-header.is-hidden { pointer-events: none; }
.nl-header.is-menu-open { pointer-events: auto; will-change: auto; }
.nl-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; width: fit-content; }
.nl-brand,
.nl-menu-trigger { position: relative; z-index: 2; }
.nl-brand img { display: block; width: clamp(94px, 7.5vw, 108px); height: auto; }
.nl-desktop-nav, .nl-header-actions { display: flex; align-items: center; gap: 28px; }
.nl-desktop-nav a, .nl-sign-in { color: rgba(255,255,255,.78); text-decoration: none; font-size: 14px; transition: color .2s ease; }
.nl-desktop-nav a:hover, .nl-sign-in:hover { color: #fff; }
/* A 24px tap target (WCAG 2.5.8) that moves nothing: the padding is handed back as negative margin. */
.nl-sign-in { padding-block: 4px; margin-block: -4px; }
.nl-header-actions { justify-content: flex-end; }
.nl-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 18px; padding: 0 24px; color: #fff; background: var(--nl-azure); text-decoration: none; font-weight: 600; border: 1px solid var(--nl-azure); border-radius: 999px; box-shadow: 0 12px 28px rgba(24,65,220,.2); transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.nl-button:hover { background: #3d67ff; box-shadow: 0 16px 34px rgba(24,65,220,.28); transform: translateY(-2px); }
.nl-button:active { transform: scale(.98); }
.nl-button--small { min-height: 42px; padding-inline: 18px; font-size: 14px; }
.nl-menu-trigger { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,.06); border: 1px solid var(--nl-line); border-radius: 50%; }
.nl-mobile-menu { display: none; }
/* The bar folds into the menu below 1280px, as the main site's landing.css does since cmc-funded-main-page #110:
   six links, Sign in and the button do not fit on one line any narrower. */
@media (max-width: 1279px) {
  .nl-header { grid-template-columns: 1fr auto; }
  .nl-header.is-menu-open { backdrop-filter: none; }
  .nl-desktop-nav,.nl-header-actions { display: none; }
  .nl-menu-trigger { display: inline-flex; }
  /* An opaque panel with no blur behind it, as the main site's landing.css (cmc-funded-main-page #55): WebKit
     (Safari) let the page show through the old 98% panel, and a blur behind an opaque panel is wasted work. */
  .nl-mobile-menu { display: flex; position: fixed; z-index: 1; inset: 0; min-height: 100dvh; max-height: 100dvh; overflow-y: auto; padding: max(112px, calc(env(safe-area-inset-top) + 96px)) clamp(24px,7vw,70px) max(30px, env(safe-area-inset-bottom)); flex-direction: column; background: radial-gradient(circle at 82% 14%, rgba(50,95,255,.2), transparent 31%), #080e1c; overscroll-behavior: contain; }
  .nl-mobile-menu a { display: flex; min-height: 66px; flex: 0 0 auto; align-items: center; justify-content: space-between; color: #fff; border-bottom: 1px solid var(--nl-line); text-decoration: none; font: 400 clamp(2.15rem,8vw,3rem)/.92 "Austin News Deck",Georgia,serif; letter-spacing: -.025em; }
  .nl-mobile-menu a svg { width: 22px; height: 22px; flex: 0 0 auto; }
  .nl-mobile-menu .nl-mobile-sign-in,
  .nl-mobile-menu .nl-mobile-primary { min-height: 56px; justify-content: center; gap: .75rem; padding-inline: 20px; border-radius: 999px; font-size: 1.3rem; line-height: 1; letter-spacing: -.015em; }
  .nl-mobile-menu .nl-mobile-newcomer { margin: auto 0 12px; padding-top: 24px; color: rgba(255,255,255,.72); font-size: 15px; text-align: center; }
  .nl-mobile-menu .nl-mobile-newcomer a { display: inline; min-height: 0; border: 0; color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-decoration: underline; text-underline-offset: 4px; }
  .nl-mobile-menu .nl-mobile-sign-in { margin-top: 0; border: 1px solid rgba(255,255,255,.34); background: rgba(255,255,255,.055); }
  .nl-mobile-menu .nl-mobile-primary { margin-top: 10px; border: 1px solid var(--nl-azure); background: var(--nl-azure); }
  .nl-mobile-menu .nl-mobile-sign-in svg,
  .nl-mobile-menu .nl-mobile-primary svg { width: 18px; height: 18px; }
}
@media (max-width: 700px) {
  :root { --nl-shell: calc(100% - 40px); }
  .nl-header { inset: 12px 0 auto; width: calc(100% - 24px); height: 64px; padding-inline: 14px 9px; }
  .nl-brand img { width: 78px; }
}
@media (prefers-reduced-motion: reduce) {
  .nl-mobile-menu { transition: none; }
}

.nl-button,
.nl-text-link,
.nl-desktop-nav a,
.nl-sign-in {
  font-size: var(--type-body);
  line-height: 1;
}

.site-header .nl-desktop-nav a[aria-current="page"] { color: #fff; }
.site-header .nl-desktop-nav a[aria-current="page"]::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto -7px;
  border-radius: 999px;
  background: var(--nl-azure, #325fff);
  content: "";
}

/* ------------------------------------------------------------------ 2. footer (Yunus, verbatim) */

.decision-footer__shell,
.decision-footer__legal {
  position: relative;
  width: min(100%, 78rem);
  margin-inline: auto;
}
.decision-footer a {
  color: inherit;
  text-decoration: none;
}
.decision-footer {
  padding: 4.5rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(181, 196, 230, .15);
  background: rgba(8, 14, 29, .5);
  color: #d9deeb;
}
.decision-footer__shell {
  display: grid;
  gap: 3rem;
  padding-bottom: 3.5rem;
}
.decision-footer__brand > a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}
.decision-footer__brand img {
  display: block;
  width: min(8.5rem, 42vw);
  height: auto;
}
.decision-footer__brand p {
  max-width: 20rem;
  margin: 1.15rem 0 0;
  color: #7f899f;
  font: 400 .8rem/1.55 var(--sans);
}
/* The operator's registered office, under the logo: the nav's column-heading style for the label, the
   nav links' ink for the company name, and the strapline's quieter ink for the rest. */
.decision-footer__operator {
  display: grid;
  gap: .3rem;
  margin: 2rem 0 0;
  color: #7f899f;
  font: 400 .76rem/1.5 var(--sans);
  font-style: normal;
}
.decision-footer__operator-label {
  margin: 0 0 .6rem;
  color: #8a96ae;
  font: 650 .65rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.decision-footer__operator-name {
  color: #aeb7cb;
  font-weight: 500;
}
.decision-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}
.decision-footer__nav > div {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}
.decision-footer__nav p {
  margin: 0 0 .9rem;
  color: #8a96ae;
  font: 650 .65rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.decision-footer__nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: #aeb7cb;
  font: 400 .79rem/1 var(--sans);
  transition: color 160ms ease;
}
.decision-footer__nav a:hover {
  color: #fff;
}
.decision-footer__legal {
  display: grid;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(181, 196, 230, .13);
  color: #8a96ae;
  font: 400 .68rem/1.55 var(--sans);
}
.decision-footer__legal p,
.decision-footer__legal span {
  margin: 0;
}
.decision-footer a:focus-visible {
  outline: 2px solid #8da5ff;
  outline-offset: 4px;
}
@media (min-width: 44rem) {
  .decision-footer { padding-inline: 2rem; }
  .decision-footer__shell { grid-template-columns: minmax(15rem, 1fr) minmax(24rem, 1fr); align-items: start; }
  .decision-footer__legal { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .decision-footer__legal p { max-width: 48rem; }
}
@media (prefers-reduced-motion: reduce) {
  .decision-footer__nav a { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .decision-footer { background: #0b1327; }
}

.site-footer__shell { grid-template-columns: minmax(14rem, .8fr) minmax(34rem, 1.2fr); }
.site-footer__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .site-footer__shell { grid-template-columns: 1fr; }
  .site-footer__nav { width: 100%; }
}
@media (max-width: 700px) {
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
}
@media (max-width: 420px) {
  .site-footer__nav { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------------ 3. the 404 page (Yunus, verbatim) */

/* NotFoundPage from cmc-funded-main-page src/landing/not-found-page.css at bf81076. The page is
   printed by cmc-site-skin/not-found.php; the body carries .not-found-page for his selectors. */
.not-found-page__main {
  display: grid;
  width: min(1100px, calc(100% - clamp(40px, 8vw, 120px)));
  min-height: calc(100svh - 112px);
  align-content: center;
  margin-inline: auto;
  padding: 5rem 0 7rem;
}
.not-found-page__mark { display: flex; height: 52px; gap: 7px; align-items: end; margin-bottom: 2rem; }
.not-found-page__mark span { width: 12px; border-radius: 999px 999px 3px 3px; background: #325fff; }
.not-found-page__mark span:nth-child(1) { height: 21px; }
.not-found-page__mark span:nth-child(2) { height: 36px; }
.not-found-page__mark span:nth-child(3) { height: 52px; }
.not-found-page h1 { max-width: 820px; margin-bottom: 1.5rem; font-size: clamp(4rem, 8vw, 7.5rem); line-height: .88; }
.not-found-page main > p { max-width: 600px; color: #aeb9cc; font-size: 1.1rem; line-height: 1.5; }
.not-found-page main nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1.6rem; }
.not-found-page main nav a { display: inline-flex; min-height: 48px; align-items: center; gap: .7rem; font-weight: 600; text-underline-offset: 5px; }
.not-found-page main nav a:first-child { padding: 0 1.25rem; border-radius: 999px; background: #325fff; text-decoration: none; }
@media (max-width: 600px) {
  .not-found-page main nav { align-items: stretch; flex-direction: column; }
  .not-found-page main nav a { justify-content: center; }
}
/* From his .secondary-page (site-chrome.css): headings in Austin News Deck, links inherit white. The
   body's own offset already clears the fixed header, so the main does not add his 112px again. */
body.cmc-skin.not-found-page main h1 { margin-top: 0; font-family: "Austin News Deck", Georgia, serif; font-weight: 400; letter-spacing: -.025em; }
body.cmc-skin.not-found-page main > p { margin-top: 0; }
body.cmc-skin.not-found-page main nav a { color: #fff; }
body.cmc-skin.not-found-page main nav svg { width: 24px; height: 24px; }
body.cmc-skin.not-found-page main nav a:not(:first-child) { text-decoration: underline; }
/* Placed as the approved 404 screen has it (screens/404.html): the mark sits 48px under the header
   on a computer and 12px under it on a phone, rather than centred in the window. */
body.cmc-skin .not-found-page__main { min-height: 0; padding-top: 48px; }
@media (max-width: 700px) { body.cmc-skin .not-found-page__main { padding-top: 12px; } }

/* ------------------------------------------------------------------ 4. the waves */

/* account-waves.js (cmc-matchtrader-provisioning #190) puts canvas.cmc-mt-waves first in the body
   and marks the body cmc-mt-waves-live once it draws. This is the recipe of the account-ready page
   (cmc-matchtrader-provisioning, body.cmc-mt-skin): the body is isolated, so the canvas at z-index
   -1 paints above the page's own ground and below every piece of content, and only the wrappers in
   between turn transparent while the water is live; the glass cards keep their own fill. The
   ground itself is left as each page draws it, azure glow included. Until 30 September 2026 this
   section moved a flat ink to the html element and made the body transparent instead, so the glow
   the approved screens carry (checkout, pay for order, the payment result, the account-ready page)
   vanished a moment after each page appeared, when the water went live. Without the script only
   the isolation applies, and it changes nothing on screen. */
body.cmc-skin { isolation: isolate; }
body.cmc-skin .cmc-mt-waves { position: fixed !important; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; display: block; }
body.cmc-skin.cmc-mt-waves-live::before { display: none !important; }
body.cmc-skin.cmc-mt-waves-live :is(#page, .site, main, .site-main, .page-content, .site-content, .content-area, article, .entry-content, .woocommerce, .cmc-retry-legal, .elementor:not(.elementor-location-popup) :is(.elementor-element, .e-con, .e-con-inner, .elementor-section, .elementor-container, .elementor-column, .elementor-widget-wrap, .elementor-widget-container)) { background-color: transparent !important; background-image: none !important; }

/* ------------------------------------------------------------------ 5. the grouped menus (main site, verbatim) */
/* cmc-funded-main-page src/landing/mega-nav.css (doc 160, main-page #134), verbatim. The markup is
   printed by cmc_site_skin_header_html() and opened by chrome.js. Copy it again when it changes. */

/* An open panel gives the bar the scrolled header's glass, so the bar and the panel read as one surface. */
.nl-header.is-panel-open {
  border-color: rgba(255,255,255,.2);
  background: linear-gradient(112deg, rgba(255,255,255,.13), rgba(255,255,255,.035) 44%, rgba(50,95,255,.1)), rgba(8,13,24,.9);
  box-shadow: 0 18px 50px rgba(2,6,16,.28), inset 0 1px rgba(255,255,255,.19);
  backdrop-filter: blur(28px) saturate(145%);
}

.mega-nav__bar { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mega-nav__top {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: rgba(255,255,255,.78);
  background: none;
  border: 0;
  border-radius: 10px;
  font: 400 14px/1 "Neue Haas Text", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}
.mega-nav__top:hover,
.mega-nav__trigger[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.07); }
.mega-nav__top[aria-current="page"],
.mega-nav__trigger[data-current="true"] { color: #fff; }
.mega-nav__trigger svg { width: 15px; height: 15px; transition: transform .2s ease; }
.mega-nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.mega-nav__top:focus-visible,
.mega-tile:focus-visible,
.mega-accordion__trigger:focus-visible { outline: 3px solid #9fb2ff; outline-offset: 2px; }
/* The current-page bar under a top link (site-chrome.css) sits closer, inside the 40px target. */
.site-header .mega-nav .mega-nav__top[aria-current="page"]::after { content: none; }
.mega-nav__trigger[data-current="true"],
.mega-nav__top[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--nl-azure, #325fff); border-radius: 10px 10px 2px 2px; }

/* The panel hangs from the whole bar, not from its button, so every panel lines up with the bar. */
.mega-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  /* Opaque: a blur cannot work here (the header already has one, and a nested backdrop filter sees
     nothing behind it), so a see-through panel let the page headline read through the links. */
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,0) 50%, rgba(50,95,255,.08)), #0a1020;
  box-shadow: 0 28px 80px rgba(1,7,24,.5), inset 0 1px rgba(255,255,255,.12);
  animation: mega-panel-in .18s ease-out;
}
/* A bridge over the 10px gap, so the pointer crossing from the button to the panel never leaves the group. */
.mega-panel::before { position: absolute; inset: -12px 0 100%; content: ""; }
.mega-panel[hidden] { display: none; }
@keyframes mega-panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.mega-panel__grid { display: grid; gap: 12px 36px; }
.mega-panel__grid--1 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-panel__grid--1 .mega-panel__column { grid-column: 1 / -1; }
.mega-panel__grid--1 .mega-panel__column ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-panel__grid--2 { grid-template-columns: 2fr 1fr; }
.mega-panel__grid--2 .mega-panel__column:first-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-panel__column ul { display: grid; gap: 6px 12px; margin: 0; padding: 0; list-style: none; }
.mega-panel__heading {
  margin: 0 0 12px 14px;
  color: rgba(255,255,255,.56);
  font: 600 12px/1.2 "Neue Haas Text", Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* One tile: an icon square, a title and a one-line description, all one link. */
.site-header .mega-tile {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  color: #fff;
  border-radius: 16px;
  text-decoration: none;
  transition: background-color .18s ease;
}
.site-header .mega-tile:hover { background: rgba(255,255,255,.06); }
.site-header .mega-tile[aria-current="page"] { background: rgba(50,95,255,.14); }
/* The bar under a current top link (site-chrome.css) is not drawn under a current tile. */
.site-header .nl-desktop-nav .mega-tile[aria-current="page"]::after { content: none; }
.mega-tile__icon {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(50,95,255,.55);
  border-radius: 12px;
  background: rgba(50,95,255,.18);
}
.mega-tile__icon svg { width: 20px; height: 20px; }
.mega-tile__text { display: grid; gap: 4px; min-width: 0; }
.mega-tile__title { font: 600 15px/1.25 "Neue Haas Text", Arial, sans-serif; letter-spacing: 0; }
.mega-tile__description { color: rgba(255,255,255,.68); font: 400 13.5px/1.4 "Neue Haas Text", Arial, sans-serif; letter-spacing: 0; }

/* Phone and tablet: the groups become accordions inside the full-screen menu. The selectors carry
   .nl-mobile-menu so they win over its large serif link style (landing.css). */
.nl-mobile-menu .mega-accordion { border-bottom: 1px solid var(--nl-line); }
.nl-mobile-menu .mega-accordion__trigger {
  display: flex;
  width: 100%;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  color: #fff;
  background: none;
  border: 0;
  font: 400 clamp(2.15rem,8vw,3rem)/.92 "Austin News Deck", Georgia, serif;
  letter-spacing: -.025em;
  text-align: left;
  cursor: pointer;
}
.nl-mobile-menu .mega-accordion__trigger svg { width: 22px; height: 22px; flex: 0 0 auto; transition: transform .2s ease; }
.nl-mobile-menu .mega-accordion__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nl-mobile-menu .mega-accordion__panel { display: grid; gap: 2px; margin: 0; padding: 0 0 14px; list-style: none; }
.nl-mobile-menu .mega-accordion__panel[hidden] { display: none; }
.nl-mobile-menu .mega-accordion__panel .mega-tile {
  min-height: 0;
  justify-content: flex-start;
  padding: 10px 8px;
  border-bottom: 0;
  font: inherit;
}
.nl-mobile-menu .mega-accordion__panel .mega-tile__icon { width: 36px; height: 36px; border-radius: 10px; }
.nl-mobile-menu .mega-accordion__panel .mega-tile__icon svg { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  .mega-panel { animation: none; }
  .mega-nav__trigger svg,
  .nl-mobile-menu .mega-accordion__trigger svg { transition: none; }
}
