/*
 * Moodfex Nova — presentation layer only.
 * Loaded after the parent theme's assets/css/style.css (see functions.php).
 * Fonts (Montserrat + Playfair Display) are already enqueued by the parent
 * theme's moodfex_scripts() — not duplicated here.
 */

:root {
  /* Cream + brown palette. Variable NAMES kept from the original dark theme
     (--mfxn-ivory, --mfxn-bg-raised, etc.) to minimise the diff — only the
     VALUES flipped, so every rule below that already used a variable just
     inherits the new theme automatically. Only rules with colours
     hardcoded outside these variables needed a manual second pass. */
  --mfxn-bg: #faf5ea;
  --mfxn-bg-raised: #f1e7d3;
  --mfxn-ivory: #3a2a18;
  --mfxn-gold: #a9752e;
  --mfxn-muted: #6b5842;
  --mfxn-line: #a8916f;
  --mfxn-line-soft: rgba(107, 88, 66, .35);
  --mfxn-serif: 'Playfair Display', Georgia, serif;
  --mfxn-sans: 'Montserrat', -apple-system, sans-serif;
  --mfxn-maxw: 1320px;
}

/* Scope everything to body.moodfex-nova so this file can never leak onto
   the parent theme if both are ever enqueued together during QA. */
/* nova.css only ever loads on Nova pages, so this is safe unscoped. */
html { overflow-x: hidden; max-width: 100%; }
body.moodfex-nova {
  background: var(--mfxn-bg);
  color: var(--mfxn-ivory);
  font-family: var(--mfxn-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
/* Belt-and-braces against horizontal scroll/overflow on narrow screens.
   Deliberately NOT a blanket `* { max-width:100% }` — that would also clamp
   the intentionally-130%-wide decorative glow layers (.mfxn-hero__glow,
   .mfxn-site-bg__glow) back down and break their drift animation's edges.
   Targets only the realistic overflow culprits: media, and the text
   containers most likely to carry an unbroken long word/URL. */
body.moodfex-nova img,
body.moodfex-nova svg,
body.moodfex-nova iframe { max-width: 100%; height: auto; }
body.moodfex-nova .mfxn-article,
body.moodfex-nova .mfxn-page-content,
body.moodfex-nova .mfxn-hero__left h1,
body.moodfex-nova .mfxn-daily p,
body.moodfex-nova p { overflow-wrap: break-word; word-break: break-word; }
/* Non-home pages get their base colour from the fixed background layer
   instead (same gradient) — see .mfxn-site-bg below — so it can show
   through the semi-transparent masthead. */
body.moodfex-nova:not(.home) { background: transparent; }

/* ================= site-wide fixed background (non-home pages) ================= */
body.moodfex-nova .mfxn-site-bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(160deg, #fbf7ee 0%, #f1e7d3 60%);
}
body.moodfex-nova .mfxn-site-bg__glow {
  position: absolute; z-index: 1;
  width: 130%; height: 130%; left: -15%; top: -15%;
  background: radial-gradient(ellipse 900px 650px at 50% 50%, rgba(169,117,46,.14) 0%, transparent 60%);
  animation: mfxn-glow-drift 32s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  body.moodfex-nova .mfxn-site-bg__glow { animation: none; }
}
/* Every non-home page now gets a full-page fixed photo — the four hubs
   below keep their own thematic image; every other page (single sign
   pages, single articles, 404…) falls back to this one shared abstract
   image instead of the plain gradient. Position:fixed on .mfxn-site-bg
   itself means it never scrolls; only the page's own content moves over
   it. Reuses the exact same file as the Reports & Analyses hub. */
body.moodfex-nova:not(.home) .mfxn-site-bg::before {
  content: ''; position: absolute; inset: -8%; z-index: 0;
  background-image: url('../img/bg-reports.jpg');
  background-size: cover; background-position: center;
  animation: mfxn-photobg-zoom 40s ease-in-out infinite alternate;
}
/* Per-hub photo overrides the generic fallback above (extra class = higher
   specificity, no source-order fights). */
body.moodfex-nova.mfxn-page-calculators .mfxn-site-bg,
body.moodfex-nova.mfxn-page-zodiac .mfxn-site-bg,
body.moodfex-nova.mfxn-page-archive .mfxn-site-bg,
body.moodfex-nova.mfxn-page-reports .mfxn-site-bg { background: var(--mfxn-bg); }
body.moodfex-nova.mfxn-page-calculators .mfxn-site-bg::before { background-image: url('../img/bg-calculators.jpg'); }
body.moodfex-nova.mfxn-page-zodiac .mfxn-site-bg::before { background-image: url('../img/bg-zodiac.jpg'); }
body.moodfex-nova.mfxn-page-archive .mfxn-site-bg::before { background-image: url('../img/bg-archive.jpg'); }
body.moodfex-nova.mfxn-page-reports .mfxn-site-bg::before { background-image: url('../img/bg-home.jpg'); }
@media (prefers-reduced-motion: reduce) {
  body.moodfex-nova:not(.home) .mfxn-site-bg::before { animation: none; }
}
body.moodfex-nova .mfxn-page { position: relative; z-index: 1; }
body.moodfex-nova a { color: inherit; text-decoration: none; }
body.moodfex-nova img { max-width: 100%; display: block; }
body.moodfex-nova .mfxn-container { max-width: var(--mfxn-maxw); margin: 0 auto; padding: 0 32px; }
body.moodfex-nova .mfxn-eyebrow {
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mfxn-gold); font-weight: 600;
}

/* visible focus state everywhere (a11y requirement) */
body.moodfex-nova a:focus-visible,
body.moodfex-nova button:focus-visible {
  outline: 2px solid var(--mfxn-gold);
  outline-offset: 3px;
  border-radius: 2px;
}
body.moodfex-nova .skip-link.screen-reader-text {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--mfxn-gold); color: #20170a; padding: 12px 18px; border-radius: 0 0 8px 0;
}
body.moodfex-nova .skip-link.screen-reader-text:focus { left: 0; }

/* ================= top bar (all pages) ================= */
body.moodfex-nova .mfxn-topbar { position: relative; z-index: 40; }
body.moodfex-nova .mfxn-topbar__inner { display: flex; align-items: center; justify-content: space-between; padding: 26px 40px; }
body.moodfex-nova .mfxn-wordmark { display: flex; align-items: center; gap: 11px; font-family: var(--mfxn-serif); font-weight: 700; font-size: 21px; }
body.moodfex-nova .mfxn-wordmark--sm { font-size: 17px; }
body.moodfex-nova .mfxn-menu-toggle {
  display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--mfxn-ivory);
  font-family: var(--mfxn-sans); font-size: 12.5px; letter-spacing: .14em; font-weight: 600; cursor: pointer; padding: 6px;
}
body.moodfex-nova .mfxn-bars { width: 19px; height: 13px; position: relative; }
body.moodfex-nova .mfxn-bars span { position: absolute; left: 0; right: 0; height: 1.4px; background: currentColor; }
body.moodfex-nova .mfxn-bars span:nth-child(1) { top: 0; }
body.moodfex-nova .mfxn-bars span:nth-child(2) { top: 6px; }
body.moodfex-nova .mfxn-bars span:nth-child(3) { top: 12px; }

/* pages without the hero (page.php/single.php/404.php) need an opaque bar */
body.moodfex-nova:not(.home) .mfxn-topbar { background: rgba(250,245,234,.85); border-bottom: 1px solid var(--mfxn-line-soft); }

/* ================= mobile / universal overlay nav ================= */
body.moodfex-nova .mfxn-mobile-nav { position: fixed; inset: 0; z-index: 100; display: none; }
body.moodfex-nova .mfxn-mobile-nav.is-open { display: block; }
body.moodfex-nova .mfxn-mobile-nav__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(250,245,234,.9) 0%, rgba(241,231,211,.98) 55%);
}
body.moodfex-nova .mfxn-mobile-nav__panel { position: relative; height: 100%; display: flex; flex-direction: column; }
body.moodfex-nova .mfxn-mobile-nav__top { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; }
body.moodfex-nova .mfxn-mobile-nav__close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--mfxn-line-soft); background: none; color: var(--mfxn-ivory); font-size: 16px; cursor: pointer; }
body.moodfex-nova .mfxn-mobile-nav__links {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
  padding: 0 30px; gap: 2px; list-style: none; margin: 0;
}
body.moodfex-nova .mfxn-mobile-nav__links li { width: 100%; text-align: right; }
body.moodfex-nova .mfxn-mobile-nav__links a { font-size: 26px; font-weight: 500; color: var(--mfxn-muted); padding: 9px 0; display: inline-block; }
body.moodfex-nova .mfxn-mobile-nav__links a:hover,
body.moodfex-nova .mfxn-mobile-nav__links .current-menu-item a { color: var(--mfxn-ivory); }
body.moodfex-nova .mfxn-mobile-nav__auth { display: flex; gap: 10px; justify-content: flex-end; padding: 22px 30px 34px; }

/* ================= buttons ================= */
body.moodfex-nova .mfxn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .03em;
  border: 1.5px solid var(--mfxn-gold); cursor: pointer;
}
body.moodfex-nova .mfxn-btn--primary { background: var(--mfxn-gold); color: #20170a; }
body.moodfex-nova .mfxn-btn--secondary { background: transparent; color: var(--mfxn-ivory); }

/* ================= homepage hero + side panel ================= */
body.moodfex-nova .mfxn-hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
body.moodfex-nova .mfxn-hero__bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: linear-gradient(160deg, #fbf7ee 0%, #f1e7d3 60%);
}
/* Homepage-only photo layer, sitting under the glow/stars — the hero's
   only "moving texture" layer. A fast, clearly-visible zoom+drift (short
   duration, wide scale range) rather than anything subtle, as asked. */
/* A continuous one-direction drift — like a globe turning, not a zoom
   pulsing in and out — background-position looping across an oversized
   image, linear/infinite (no alternate, so it never reverses). */
body.moodfex-nova.home .mfxn-hero__photo {
  position: absolute; inset: -14%; z-index: 0;
  background-image: url('../img/bg-home5.jpg');
  background-size: 180% auto; background-position: 0% center;
  opacity: .82;
  animation: mfxn-photo-orbit 26s linear infinite;
}
@keyframes mfxn-photo-orbit {
  0%   { background-position: 0% center; }
  100% { background-position: 100% center; }
}
@media (prefers-reduced-motion: reduce) {
  body.moodfex-nova.home .mfxn-hero__photo { animation: none; }
}
/* Slow-drifting glow — a CSS stand-in for nove.eu's animated background
   media (their looping video pans the same way). Swap this for a real
   celestial photo/video later; the moving layer and the static legibility
   scrim below it are independent, so a swap won't touch text contrast. */
body.moodfex-nova.home .mfxn-hero__glow {
  position: absolute; z-index: 1;
  width: 130%; height: 130%; left: -15%; top: -15%;
  background: radial-gradient(ellipse 900px 650px at 50% 50%, rgba(169,117,46,.22) 0%, transparent 60%);
  animation: mfxn-glow-drift 26s ease-in-out infinite alternate;
}
@keyframes mfxn-glow-drift {
  0%   { transform: translate(-6%, 10%); }
  50%  { transform: translate(4%, -6%); }
  100% { transform: translate(-6%, -10%); }
}
@media (prefers-reduced-motion: reduce) {
  body.moodfex-nova.home .mfxn-hero__glow { animation: none; }
}
/* Static scrim anchored behind the tagline/label text so the moving glow
   and twinkling stars can never reduce contrast there, at any point in the
   animation — the same job nove.eu's dark image overlay does for its type. */
body.moodfex-nova.home .mfxn-hero__legibility {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(0deg, rgba(250,245,234,.92) 0%, rgba(250,245,234,.5) 32%, transparent 65%),
              linear-gradient(90deg, rgba(250,245,234,.72) 0%, transparent 45%);
}
body.moodfex-nova .mfxn-stars { position: absolute; inset: 0; z-index: 2; }
body.moodfex-nova .mfxn-stars span {
  position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--mfxn-ivory); opacity: .35;
  animation: mfxn-twinkle 5s ease-in-out infinite;
}
@keyframes mfxn-twinkle { 0%, 100% { opacity: .12; } 50% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { body.moodfex-nova .mfxn-stars span { animation: none; } }

body.moodfex-nova .mfxn-hero__body { position: relative; z-index: 10; flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; }
body.moodfex-nova .mfxn-hero__left { display: flex; flex-direction: column; justify-content: flex-end; padding: 60px 40px 72px 68px; }
body.moodfex-nova .mfxn-hero__left h1 { font-family: var(--mfxn-serif); font-weight: 500; font-size: 52px; line-height: 1.18; margin: 0; letter-spacing: -.01em; text-wrap: balance; max-width: 11ch; }
body.moodfex-nova .mfxn-hero__left h1 em { font-style: italic; color: var(--mfxn-gold); }

/* nove.eu-style 2x2 destination grid — plain grid lines, label pinned to the
   bottom-left of each large cell, no numbering (mirrors nove.eu exactly). */
body.moodfex-nova .mfxn-side-panel {
  border-left: 1px solid var(--mfxn-line-soft);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  list-style: none; margin: 0; padding: 0;
}
body.moodfex-nova .mfxn-side-panel__cell {
  display: flex; align-items: flex-end; padding: 32px;
  border-top: 1px solid var(--mfxn-line-soft); border-right: 1px solid var(--mfxn-line-soft);
  position: relative; transition: background .25s ease;
}
body.moodfex-nova .mfxn-side-panel__cell:nth-child(2n) { border-right: 0; }
body.moodfex-nova .mfxn-side-panel__cell:hover,
body.moodfex-nova .mfxn-side-panel__cell:focus-visible { background: rgba(169,117,46,.08); }
body.moodfex-nova .mfxn-side-panel__label {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mfxn-ivory); transition: transform .25s ease;
}
body.moodfex-nova .mfxn-side-panel__cell:hover .mfxn-side-panel__label,
body.moodfex-nova .mfxn-side-panel__cell:focus-visible .mfxn-side-panel__label { transform: translateX(6px); color: var(--mfxn-gold); }
@media (prefers-reduced-motion: reduce) {
  body.moodfex-nova .mfxn-side-panel__cell,
  body.moodfex-nova .mfxn-side-panel__label { transition: none; }
}

/* ================= full-width daily card ================= */
body.moodfex-nova .mfxn-daily { position: relative; padding: 96px 0; border-top: 1px solid var(--mfxn-line-soft); background: linear-gradient(180deg, var(--mfxn-bg) 0%, #f1e7d3 100%); }
body.moodfex-nova .mfxn-daily__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
body.moodfex-nova .mfxn-daily__visual {
  aspect-ratio: 4/5; border-radius: 22px; border: 1px solid var(--mfxn-line-soft);
  background: radial-gradient(circle at 30% 20%, #f6ecd9 0, #f1e7d3 70%);
  display: flex; align-items: center; justify-content: center;
}
body.moodfex-nova .mfxn-daily__glyph { font-family: var(--mfxn-serif); font-size: 110px; color: rgba(169,117,46,.3); }
body.moodfex-nova .mfxn-daily h2 { font-family: var(--mfxn-serif); font-size: 40px; font-weight: 700; margin: 14px 0 18px; line-height: 1.16; }
body.moodfex-nova .mfxn-daily p { color: var(--mfxn-muted); font-size: 15.5px; max-width: 44ch; margin: 0 0 26px; }
body.moodfex-nova .mfxn-daily__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ================= footer ================= */
/* Translucent, like the topbar/masthead — lets the fixed hub photo (or
   plain gradient on pages without one) show through faintly instead of
   the footer being a hard opaque band at the bottom of every page. */
body.moodfex-nova .mfxn-footer { position: relative; z-index: 1; border-top: 1px solid var(--mfxn-line-soft); padding: 56px 0 28px; background: rgba(241,231,211,.82); }
body.moodfex-nova .mfxn-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
body.moodfex-nova .mfxn-footer__brand { font-family: var(--mfxn-serif); font-size: 20px; font-weight: 700; margin-bottom: 12px; }
body.moodfex-nova .mfxn-footer__about { color: var(--mfxn-muted); font-size: 13.5px; max-width: 32ch; }
body.moodfex-nova .mfxn-footer h4 { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mfxn-muted); margin: 0 0 14px; }
body.moodfex-nova .mfxn-footer ul,
body.moodfex-nova .mfxn-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
body.moodfex-nova .mfxn-footer ul a,
body.moodfex-nova .mfxn-footer__menu a { font-size: 13.5px; color: var(--mfxn-ivory); opacity: .85; }
body.moodfex-nova .mfxn-footer ul a:hover,
body.moodfex-nova .mfxn-footer__menu a:hover { color: var(--mfxn-gold); opacity: 1; }
body.moodfex-nova .mfxn-footer__bottom { display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--mfxn-line-soft); font-size: 12px; color: var(--mfxn-muted); flex-wrap: wrap; gap: 10px; }

/* ================= persistent tab bar — mobile + tablet ================= */
body.moodfex-nova .mfxn-tabbar { display: none; }
@media (max-width: 1024px) {
  body.moodfex-nova .mfxn-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--mfxn-bg-raised); border-top: 1px solid var(--mfxn-line-soft);
    padding: 10px 6px calc(10px + env(safe-area-inset-bottom)); justify-content: space-around;
  }
  body.moodfex-nova .mfxn-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; color: var(--mfxn-muted); letter-spacing: .02em; }
  body.moodfex-nova .mfxn-tabbar a svg { width: 20px; height: 20px; }
  body.moodfex-nova .mfxn-tabbar a.is-active { color: var(--mfxn-gold); }
}

/* ================= hub picker (dropdown -> modal reveal) ================= */
/* Sits directly over the full-page fixed photo, which by design has no
   opaque backing behind it (see .mfxn-site-bg above) — so the picker gets
   its own translucent card instead of relying on text-shadow alone. Solid
   enough that the label and controls read clearly against any of the five
   hub photos, dark or light; still visibly translucent so the photo shows
   through, keeping the "image is the page background" effect intact. */
body.moodfex-nova .mfxn-picker {
  margin: 32px 0; padding: 28px 24px; border-radius: 18px;
  background: rgba(250,245,234,.86); border: 1px solid var(--mfxn-line-soft);
  box-shadow: 0 12px 32px rgba(58,42,24,.1);
}
body.moodfex-nova .mfxn-picker__label {
  display: block; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--mfxn-muted); margin-bottom: 14px;
}
body.moodfex-nova .mfxn-picker__row { display: flex; gap: 12px; flex-wrap: wrap; }
body.moodfex-nova .mfxn-picker__select {
  flex: 1; min-width: 240px; max-width: 480px;
  background: var(--mfxn-bg-raised); color: var(--mfxn-ivory); border: 1px solid var(--mfxn-line-soft);
  border-radius: 10px; padding: 13px 16px; font-family: var(--mfxn-sans); font-size: 15px;
}
/* Green — the site's own established brand accent (used elsewhere for
   primary actions/active states), not the gold used for Nova's own chrome
   — makes Go/Open read as the one clearly-actionable button on the page. */
body.moodfex-nova .mfxn-picker__go {
  background: #1e3d32; border-color: #1e3d32; color: #f7f4eb;
}
body.moodfex-nova .mfxn-picker__go:hover:not(:disabled) { background: #163026; border-color: #163026; }
body.moodfex-nova .mfxn-picker__go:disabled { background: var(--mfxn-line); border-color: var(--mfxn-line); opacity: .5; cursor: not-allowed; }

/* Calculators hub: the page's real saved content still carries the old
   pre-Nova intro card + 36-item card grid (kept only so the plugin's
   shortcode-detection sees the real markup — see functions.php). Hide
   everything except our own picker and the hidden calc slots; nothing is
   deleted from the database, so reverting the theme brings it straight
   back unchanged. */
body.mfxn-page-calculators .mfxn-article > *:not(.mfxn-calc-slot) { display: none; }

/* Hidden real shortcode/content blocks, one per hub item — invisible on the
   page until the picker opens one; toggled to a fixed full-screen surface
   rather than cloned/moved, so nothing inside ever loses its event bindings. */
body.moodfex-nova .mfxn-calc-slot[hidden] { display: none; }
body.moodfex-nova .mfxn-calc-slot.mfxn-is-modal {
  display: block; position: fixed; inset: 0; z-index: 200;
  background: var(--mfxn-bg); overflow-y: auto;
  padding: 84px 20px 60px;
}
body.moodfex-nova .mfxn-calc-slot.mfxn-is-modal > * { max-width: 640px; margin-left: auto; margin-right: auto; }
body.moodfex-nova .mfxn-calc-gate__inner { text-align: center; padding-top: 40px; }
body.moodfex-nova .mfxn-calc-gate__inner h2 { font-family: var(--mfxn-serif); font-size: 32px; margin: 14px 0 16px; }
body.moodfex-nova .mfxn-calc-gate__inner p { color: var(--mfxn-muted); font-size: 15.5px; line-height: 1.6; margin: 0 0 28px; }
body.moodfex-nova .mfxn-calc-gate__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
body.moodfex-nova .mfxn-modal-scrim {
  position: fixed; inset: 0; z-index: 199; display: none;
  background: rgba(8,6,4,.72); backdrop-filter: blur(2px);
}
body.moodfex-nova .mfxn-modal-scrim.is-active { display: block; }
body.moodfex-nova .mfxn-modal-close {
  display: none; position: fixed; top: 20px; right: 20px; z-index: 201;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--mfxn-line-soft);
  background: var(--mfxn-bg-raised); color: var(--mfxn-ivory); font-size: 16px; cursor: pointer;
}
body.moodfex-nova .mfxn-modal-close.is-active { display: block; }
@media (max-width: 860px) {
  body.moodfex-nova .mfxn-picker__select { max-width: none; min-width: 0; flex-basis: 100%; }
  body.moodfex-nova .mfxn-calc-slot.mfxn-is-modal { padding: 74px 16px 40px; }
}

/* ================= login/register modal (parent theme, .mf-auth-*) =================
   Rendered directly on <body> by the parent theme's own JS, outside every
   Nova wrapper — untouched by the .mfxn-page-content normalize above, so it
   needs its own explicit recolour to cream/brown. Structure/behaviour
   (tabs, Nextend social-login button, form submission) is completely
   unmodified; only colours change. */
body.moodfex-nova .mf-auth-backdrop { background: rgba(30,22,12,.55); }
body.moodfex-nova .mf-auth-dialog {
  background: var(--mfxn-bg) !important; color: var(--mfxn-ivory) !important;
  border: 1px solid var(--mfxn-line-soft);
}
body.moodfex-nova .mf-auth-logo { color: var(--mfxn-ivory) !important; }
body.moodfex-nova .mf-auth-close { background: var(--mfxn-bg-raised) !important; color: var(--mfxn-ivory) !important; border: 1px solid var(--mfxn-line-soft); }
body.moodfex-nova .mf-auth-panel h2,
body.moodfex-nova .mf-auth-panel p,
body.moodfex-nova .mf-auth-panel label { color: var(--mfxn-ivory) !important; }
body.moodfex-nova .mf-auth-tabs { border-color: var(--mfxn-line-soft) !important; }
body.moodfex-nova .mf-auth-tabs button { color: var(--mfxn-muted) !important; background: transparent !important; }
body.moodfex-nova .mf-auth-tabs button.is-active { color: var(--mfxn-ivory) !important; border-color: var(--mfxn-gold) !important; }
body.moodfex-nova .mf-auth-dialog input[type="text"],
body.moodfex-nova .mf-auth-dialog input[type="email"],
body.moodfex-nova .mf-auth-dialog input[type="password"] {
  background: var(--mfxn-bg-raised) !important; color: var(--mfxn-ivory) !important;
  border: 1px solid var(--mfxn-line-soft) !important;
}
body.moodfex-nova .mf-auth-dialog .button-primary,
body.moodfex-nova .mf-auth-dialog .login-submit {
  background: var(--mfxn-gold) !important; color: #20170a !important; border: 0 !important;
}
body.moodfex-nova .mf-auth-separator { color: var(--mfxn-muted) !important; }
body.moodfex-nova .mf-auth-separator::before,
body.moodfex-nova .mf-auth-separator::after { background: var(--mfxn-line-soft) !important; }
body.moodfex-nova .mf-auth-links,
body.moodfex-nova .mf-auth-links a { color: var(--mfxn-gold) !important; }
body.moodfex-nova .nsl-button-default { border-color: var(--mfxn-line-soft) !important; background: var(--mfxn-bg-raised) !important; }

/* ================= generic page chrome (page.php / single.php) ================= */
/* Translucent, not solid — lets the fixed full-page background (.mfxn-site-bg,
   plain gradient or a per-hub photo — see above) show through the masthead.
   Kept short (title + one-line eyebrow only) so contrast is easy to hold;
   the long-form article body below stays on a fully opaque surface
   (.mfxn-page-content) where a busy background would hurt reading. */
body.moodfex-nova .mfxn-page-hero { position: relative; padding: 64px 0 40px; border-bottom: 1px solid var(--mfxn-line-soft); background: rgba(250,245,234,.75); }
@keyframes mfxn-photobg-zoom {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.5%, 1%); }
}
body.moodfex-nova .mfxn-page-hero h1 { font-family: var(--mfxn-serif); font-size: 42px; font-weight: 700; margin: 0; text-wrap: balance; }
body.moodfex-nova .mfxn-page-hero--article .mfxn-eyebrow { display: block; margin-bottom: 12px; }
/* Barely-there transparency (95% opaque) rather than fully solid — the
   fixed background photo shows through just a touch everywhere, including
   the long-form article column, with no visible effect on text contrast
   and no extra scrim/shadow tricks needed. */
body.moodfex-nova .mfxn-page-content { position: relative; z-index: 1; background: rgba(250,245,234,.95); padding: 56px 0 88px; max-width: 860px; }
/* Older, pre-Nova content blocks (plugin/page-builder markup saved inside
   the_content() before this redesign) carry their own hardcoded light
   backgrounds and dark text from the parent theme. Force them onto the
   cream/brown palette too, so no stray white card ever appears — this is
   deliberately broad (background/gradient reset + text colour) rather than
   chasing each block's own class names one at a time. Calculator forms
   (.mfxn-calc-slot) and the picker UI are excluded: they're either hidden
   until opened in their own full-screen surface, or already Nova-styled. */
body.moodfex-nova .mfxn-page-content :not(.mfxn-calc-slot):not(.mfxn-calc-slot *):not(.mfxn-picker):not(.mfxn-picker *) {
  background-color: transparent !important;
  background-image: none !important;
  border-color: var(--mfxn-line-soft) !important;
}
body.moodfex-nova .mfxn-page-content :not(.mfxn-calc-slot):not(.mfxn-calc-slot *):not(.mfxn-picker):not(.mfxn-picker *):not(a) {
  color: var(--mfxn-ivory) !important;
}
body.moodfex-nova .mfxn-page-content a:not(.mfxn-calc-slot a) { color: var(--mfxn-gold) !important; }
body.moodfex-nova .mfxn-page-featured { margin-bottom: 36px; border-radius: 16px; overflow: hidden; border: 1px solid var(--mfxn-line-soft); }
body.moodfex-nova .mfxn-article { font-size: 16.5px; line-height: 1.75; color: var(--mfxn-muted); }
body.moodfex-nova .mfxn-article h2 { font-family: var(--mfxn-serif); color: var(--mfxn-ivory); font-size: 28px; margin: 44px 0 16px; }
body.moodfex-nova .mfxn-article h3 { font-family: var(--mfxn-serif); color: var(--mfxn-ivory); font-size: 22px; margin: 34px 0 14px; }
body.moodfex-nova .mfxn-article p { margin: 0 0 20px; }
body.moodfex-nova .mfxn-article a { color: var(--mfxn-gold); text-decoration: underline; text-underline-offset: 3px; }
body.moodfex-nova .mfxn-article ul,
body.moodfex-nova .mfxn-article ol { margin: 0 0 20px; padding-left: 24px; }

/* ================= 404 ================= */
body.moodfex-nova .mfxn-404 { position: relative; z-index: 1; padding: 120px 0 140px; text-align: center; background: rgba(250,245,234,.55); }
body.moodfex-nova .mfxn-404 h1 { font-family: var(--mfxn-serif); font-size: 40px; margin: 14px 0 18px; }
body.moodfex-nova .mfxn-404 p { color: var(--mfxn-muted); max-width: 50ch; margin: 0 auto 32px; }
body.moodfex-nova .mfxn-404__links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 0 0 36px; padding: 0; }
body.moodfex-nova .mfxn-404__links a { font-size: 14.5px; font-weight: 600; color: var(--mfxn-ivory); border-bottom: 1px solid var(--mfxn-line-soft); padding-bottom: 2px; }
body.moodfex-nova .mfxn-404__links a:hover { color: var(--mfxn-gold); border-color: var(--mfxn-gold); }

/* ================= responsive ================= */
@media (max-width: 860px) {
  body.moodfex-nova .mfxn-topbar__inner { padding: 20px 18px; }
  /* Home fits entirely in the first screen — hero + all four Explore rows —
     exactly like nove.eu's mobile homepage (logo, tagline, four stacked
     links, nothing more, no scroll needed to see the full nav). The empty
     space above the tagline flexes with screen height; the four rows below
     are fixed-height so they never need to. Every other page's hero is
     sized to its own content instead. */
  body.moodfex-nova .mfxn-hero { min-height: 0; display: block; }
  body.moodfex-nova .mfxn-hero__body { display: block; padding: 0; }
  body.moodfex-nova.home .mfxn-hero__left { padding: 96px 20px 28px; }
  body.moodfex-nova:not(.home) .mfxn-hero__left { padding: 28px 20px 24px; }
  body.moodfex-nova .mfxn-hero__left h1 { font-size: 30px; max-width: none; }
  /* Explore grid stays visible on mobile — stacks to one column, fixed-height
     full-width rows, same as nove.eu's Services/Stories/Team/About Us —
     compact enough that the whole hero (tagline + all four rows) reads as
     one unbroken screen, not a long scroll, on a typical phone. */
  body.moodfex-nova .mfxn-side-panel { display: flex; flex-direction: column; border-left: 0; }
  body.moodfex-nova .mfxn-side-panel__cell { height: 62px; padding: 0 20px; align-items: center; border-right: 0; }
  body.moodfex-nova .mfxn-side-panel__cell:nth-child(2n) { border-right: 0; }
  body.moodfex-nova .mfxn-daily { padding: 52px 0 64px; }
  body.moodfex-nova .mfxn-daily__grid { grid-template-columns: 1fr; gap: 28px; }
  body.moodfex-nova .mfxn-container { padding: 0 20px; }
  body.moodfex-nova .mfxn-daily__visual { aspect-ratio: 16/10; }
  body.moodfex-nova .mfxn-daily h2 { font-size: 27px; }
  body.moodfex-nova .mfxn-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  body.moodfex-nova .mfxn-page-hero h1 { font-size: 30px; }
  body.moodfex-nova .mfxn-page-content { padding-bottom: 120px; }

  /* Legacy content tables (e.g. the sign pages' Attribute/Value table:
     Element, Ruling Planet, Symbol…) squeeze into unreadable columns at
     phone widths. Stack every row's cells instead — each attribute on its
     own line, in source order — left completely untouched on desktop/PC
     (this block only exists inside this max-width:860px query). */
  body.moodfex-nova .mfxn-article table,
  body.moodfex-nova .mfxn-article tbody,
  body.moodfex-nova .mfxn-article tr,
  body.moodfex-nova .mfxn-article td { display: block; width: 100%; }
  body.moodfex-nova .mfxn-article th { display: none; }
  body.moodfex-nova .mfxn-article tr { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--mfxn-line-soft); }
  body.moodfex-nova .mfxn-article td { padding: 2px 0; border: 0; }
  body.moodfex-nova .mfxn-article td:first-child { font-weight: 600; color: var(--mfxn-ivory); }
  body.moodfex-nova .mfxn-article td:last-child { color: var(--mfxn-muted); }
}
@media (min-width: 861px) and (max-width: 1180px) {
  body.moodfex-nova .mfxn-hero__left h1 { font-size: 40px; }
  body.moodfex-nova .mfxn-side-panel__cell { padding: 24px; }
}
@media (max-width: 1024px) {
  body.moodfex-nova:not(.home) .mfxn-daily { padding-bottom: 120px; }
}
