/* =====================================================================
   Masluland — light-theme.css  ·  LIGHT MODE (default) override layer
   ---------------------------------------------------------------------
   Light is the DEFAULT. This file is an ADDITIVE override layer that is
   active only while <html> carries the .light-theme class (added
   server-side, unconditionally, in masluland-core/inc/light-theme.php).
   Remove that class → every rule here switches off and the ORIGINAL,
   UNTOUCHED dark base (main.css + inline styles) renders exactly as before.

   Rules are anchored on html.light-theme / .light-theme so they layer on
   top of the dark base without editing it. Where the dark color is an
   inline style="" on an element, the override uses !important (an author
   !important rule beats a plain inline style).

   Gold #DDB88B and orange #D85A30 are UNCHANGED in both themes.
   Light tokens: page #F9F9F9 · card #FFFFFF · ink #1f1d1a · secondary
   #5f5a52 · meta #938d83 · border #ece7dd / #e2dccf · tint #f4f1eb.
   ===================================================================== */


/* =====================================================================
   0. THEME TOGGLE BUTTON  (lives in the header, visible in BOTH themes)
   ===================================================================== */
.ml-theme-toggle{
  width:36px;height:36px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  background:transparent;border:none;padding:0;margin:0;
  border-radius:8px;cursor:pointer;
  color:var(--white);                 /* follows nav: #f4f1eb in dark, ink in light */
  -webkit-appearance:none;appearance:none;box-shadow:none;
  transition:color .2s, background .2s;
}
.ml-theme-toggle:hover{ color:var(--sand); background:rgba(255,255,255,.06); }
.ml-theme-toggle:focus-visible{ outline:2px solid var(--sand); outline-offset:2px; }
.ml-theme-toggle svg{ width:19px;height:19px;display:block;pointer-events:none; }
/* Default markup = light state → show MOON (offer dark). Dark state → show SUN. */
.ml-theme-toggle__sun{ display:block; }
.ml-theme-toggle__moon{ display:none; }
html.light-theme .ml-theme-toggle__sun{ display:none; }
html.light-theme .ml-theme-toggle__moon{ display:block; }
html.light-theme .ml-theme-toggle:hover{ background:#f4f1eb; }


/* =====================================================================
   1. TOKEN REDEFINITION  (the backbone — flips everything that uses tokens)
   ---------------------------------------------------------------------
   html.light-theme (specificity 0,1,1) outranks every :root (0,1,0),
   INCLUDING the per-page scoped :root blocks inside the single-* template
   <style> tags. One block therefore flips: main.css, child+core article.css,
   legal-pages.css, the tokenized text everywhere, and all three single-page
   surfaces (cards/weather/comments/FAQ/related).

   KEPT (NOT flipped): --dark  → it is overloaded as "ink on gold" buttons.
                        --sand/--sand2/--accent → brand gold.
   ===================================================================== */
html.light-theme{
  /* ---- global tokens (main.css :root) ---- */
  --dark2:  #ffffff;   /* panels / footer / section bands  */
  --dark3:  #ffffff;   /* cards / inputs / search box      */
  --dark4:  #ece7dd;   /* borders / dividers               */
  --white:  #1f1d1a;   /* PRIMARY INK (was off-white text) */
  --muted:  #938d83;   /* meta / tertiary text             */
  --light:  #5f5a52;   /* secondary text                   */
  /* --dark, --sand, --sand2 intentionally NOT overridden */

  /* ---- scoped tokens used by single-masluland_trail/_maalot/_site ---- */
  --bg-page:      #F9F9F9;
  --bg-card:      #ffffff;
  --text-primary: #1f1d1a;
  --text-muted:   #5f5a52;
  --text-faint:   #938d83;
  --border-soft:  #ece7dd;
  --border-med:   #e2dccf;
  /* --accent / --accent-text (gold + dark ink) left as-is */
}


/* =====================================================================
   2. GENERIC INLINE-STYLE FLIPS
   ---------------------------------------------------------------------
   The templates paint hundreds of element-level inline style="" colors.
   These attribute selectors flip the grayscale dark values wherever they
   appear inline, in one place, with !important (beats the plain inline).
   They deliberately DO NOT list accent/difficulty hues (#DDB88B, #D85A30,
   #0f3d1e, #4CAF50, rgba(121,196,57,…) …) so badges/brand stay intact, and
   they do NOT touch ink-on-gold values (color:#1a1a1a / #111).
   ===================================================================== */

/* dark page / band backgrounds → page tone */
html.light-theme [style*="background:#000"],
html.light-theme [style*="background:#0a0a0a"],
html.light-theme [style*="background:#0d0d0d"],
html.light-theme [style*="background:#0e0e0e"],
html.light-theme [style*="background:#0e0f10"],
html.light-theme [style*="background:#080808"],
html.light-theme [style*="background:#111"],
html.light-theme [style*="background:#121212"],
html.light-theme [style*="background:#141414"],
html.light-theme [style*="background:#16181a"],
html.light-theme [style*="background:#1a1a1a"],
html.light-theme [style*="background:#1a1c1e"],
html.light-theme [style*="background:#1c1c1c"]{ background:#F9F9F9 !important; }

/* card / panel / input / modal backgrounds → white */
html.light-theme [style*="background:#161616"],
html.light-theme [style*="background:#1e1e1e"],
html.light-theme [style*="background:#1e2022"],
html.light-theme [style*="background:#202020"],
html.light-theme [style*="background:#222"],
html.light-theme [style*="background:#232323"],
html.light-theme [style*="background:#242424"],
html.light-theme [style*="background:#262626"],
html.light-theme [style*="background:#2a2a2a"],
html.light-theme [style*="background:#2c2c2c"],
html.light-theme [style*="background:#2e2e2e"]{ background:#ffffff !important; }

/* primary ink (off-white inline text). NOTE: -webkit-text-fill-color is added so
   these also defeat inline `color:#... !important` (e.g. card titles set inline
   with !important) — plain `color` cannot beat an inline !important, but
   text-fill-color wins the visible fill. Scoped to light theme; dark untouched. */
html.light-theme [style*="color:#f4f1eb"],
html.light-theme [style*="color:#fff"],
html.light-theme [style*="color:#ffffff"],
html.light-theme [style*="color:#e0e0e0"]{ color:#1f1d1a !important; -webkit-text-fill-color:#1f1d1a !important; }

/* secondary text */
html.light-theme [style*="color:#ccc"],
html.light-theme [style*="color:#aaa"],
html.light-theme [style*="color:#aaaaaa"],
html.light-theme [style*="color:#a8a49e"]{ color:#5f5a52 !important; -webkit-text-fill-color:#5f5a52 !important; }

/* meta / faint text */
html.light-theme [style*="color:#999"],
html.light-theme [style*="color:#8a8a8a"],
html.light-theme [style*="color:#888"],
html.light-theme [style*="color:#888888"],
html.light-theme [style*="color:#777"],
html.light-theme [style*="color:#6b6760"],
html.light-theme [style*="color:#666"],
html.light-theme [style*="color:#666666"],
html.light-theme [style*="color:#555"]{ color:#938d83 !important; -webkit-text-fill-color:#938d83 !important; }

/* inline borders (dividers) → light */
html.light-theme [style*="solid #1a1a1a"],
html.light-theme [style*="solid #1c1c1c"],
html.light-theme [style*="solid #1e1e1e"],
html.light-theme [style*="solid #222"],
html.light-theme [style*="solid #252525"],
html.light-theme [style*="solid #2a2a2a"],
html.light-theme [style*="solid #2e2e2e"],
html.light-theme [style*="solid #303030"],
html.light-theme [style*="solid #333"],
html.light-theme [style*="solid #383838"],
html.light-theme [style*="solid #444"]{ border-color:#ece7dd !important; }

/* white-alpha INLINE surfaces (single-page info tiles) → subtle tint so they
   stay visible on a white card. Matched on the exact background declaration. */
html.light-theme [style*="background:rgba(255,255,255,.07)"],
html.light-theme [style*="background:rgba(255,255,255,0.07)"],
html.light-theme [style*="background:rgba(255,255,255,.06)"],
html.light-theme [style*="background:rgba(255,255,255,.09)"]{
  background:#f4f1eb !important; border-color:#ece7dd !important;
}


/* =====================================================================
   3. MAIN.CSS — literal-hex & var(--dark) surfaces the token flip can't reach
   ===================================================================== */

/* Page background (consumes var(--dark) with !important in the base) */
html.light-theme,
html.light-theme body{ background:#F9F9F9 !important; color:#1f1d1a !important; }

/* ---- Navbar → light, translucent, soft shadow ---- */
html.light-theme .ml-nav{
  background:rgba(255,255,255,.92) !important;
  border-bottom:1px solid #ece7dd !important;
  box-shadow:0 1px 3px rgba(31,29,26,.06);
}
html.light-theme .ml-nav__account{
  background:#f4f1eb !important;
  border-color:rgba(221,184,139,.5) !important;
  color:#1f1d1a !important;
}
html.light-theme .ml-nav__account:hover{
  background:rgba(221,184,139,.18) !important;
  border-color:var(--sand) !important;
  color:var(--ml-gold-dark, #8a5a1f) !important;
}
/* Head inline <style id="ml-nav-icon-fix"> hardcodes the search btn color */
html.light-theme #ml-search-btn{ color:#1f1d1a !important; }
html.light-theme #ml-search-btn:hover{ color:var(--ml-gold-dark, #8a5a1f) !important; background:#f4f1eb !important; }

/* Mobile dropdown menu panel (only set on mobile in the base) */
@media (max-width:768px){
  html.light-theme .ml-nav__links{
    background:rgba(255,255,255,.98) !important;
    border-bottom-color:#ece7dd !important;
  }
}

/* ---- Homepage HERO stays a dark cinematic media hero in BOTH themes ----
   (YouTube video + overlay). The token flip would have turned its text dark
   over dark footage — re-assert light text. Background left untouched. */
html.light-theme .ml-hero__title{ color:#f4f1eb !important; }
html.light-theme .ml-hero__yt-link{ color:rgba(255,255,255,.7) !important; }
html.light-theme .ml-hero__yt-link:hover{ color:#fff !important; }
/* badge/desc already use rgba/gold; cta is gold+ink (var(--dark)) — all fine. */

/* ---- Full-bleed bands that consume var(--dark) as background ---- */
html.light-theme .ml-counter-section,
html.light-theme .ml-archive-main,
html.light-theme .ml-articles-wrap{ background:#F9F9F9 !important; }

/* Region accordion header (var(--dark) bg + white-alpha hover) */
html.light-theme .ml-region-header{ background:#F9F9F9 !important; }
html.light-theme .ml-region-header:hover{ background:#f4f1eb !important; }

/* Trails-archive solid-black hero band */
html.light-theme .ml-archive-hero{ background:#F9F9F9 !important; }
html.light-theme .ml-archive-hero__subtitle{ color:#938d83 !important; }

/* Marquee hairlines were near-black */
html.light-theme .ml-marquee{ border-top-color:#ece7dd !important; border-bottom-color:#ece7dd !important; }
html.light-theme .ml-marquee__img{ border-left-color:#F9F9F9 !important; }

/* Filter bar hairlines (rgba white in base) */
html.light-theme .ml-filter-bar{ border-top-color:#ece7dd !important; border-bottom-color:#ece7dd !important; }

/* ---- Card shadows: soft light shadow at rest + hover ---- */
html.light-theme .ml-trail-card,
html.light-theme .ml-supplier-card,
html.light-theme .ml-article-card,
html.light-theme .ml-arc-card{ box-shadow:0 1px 3px rgba(31,29,26,.06); }
html.light-theme .ml-trail-card:hover,
html.light-theme .ml-supplier-card:hover,
html.light-theme .ml-article-card:hover,
html.light-theme .ml-arc-card:hover{ box-shadow:0 14px 34px rgba(31,29,26,.12) !important; }

/* "details" button inside trail cards (border var(--dark4) handled; tint hover) */
html.light-theme .ml-trail-card__btn:hover{ background:#f4f1eb !important; color:#1f1d1a !important; }

/* FAQ answer body used a literal warm-grey on dark */
html.light-theme .ml-faq__answer p{ color:#5f5a52 !important; }

/* Tooltip popover (literal #2a2a2a) */
html.light-theme .ml-tooltip{ background:#ffffff !important; border-color:#ece7dd !important; box-shadow:0 8px 28px rgba(31,29,26,.12) !important; }
html.light-theme .ml-tooltip-icon{ background:#f4f1eb !important; border-color:#e2dccf !important; color:#5f5a52 !important; }

/* Difficulty badges: keep opaque in both themes (good contrast on white). */


/* =====================================================================
   4. HARDCODED-HEX CSS FILES  (no tokens — need explicit class overrides)
   ===================================================================== */

/* ---- search.css : global search results dropdown (pervasive !important) ---- */
html.light-theme .ml-search-box,
html.light-theme .ml-search-results,
html.light-theme .ml-search-panel,
html.light-theme .ml-search-section,
html.light-theme .ml-search-result,
html.light-theme .ml-search-result-item{
  background:#ffffff !important; border-color:#ece7dd !important; color:#1f1d1a !important;
}
html.light-theme .ml-search-box input,
html.light-theme #ml-search-input{ background:#ffffff !important; color:#1f1d1a !important; border-color:#ece7dd !important; }
html.light-theme .ml-search-result:hover,
html.light-theme .ml-search-result-item:hover,
html.light-theme .ml-search-result.is-active{ background:#f4f1eb !important; }
html.light-theme .ml-search-result__meta,
html.light-theme .ml-search-empty,
html.light-theme .ml-search-hint{ color:#938d83 !important; }

/* ---- masluland-form.css : submit-trail form (every rule !important) ---- */
html.light-theme .maslu-form,
html.light-theme .maslu-form-card,
html.light-theme .maslu-form__card,
html.light-theme .maslu-form input,
html.light-theme .maslu-form select,
html.light-theme .maslu-form textarea,
html.light-theme .maslu-form .maslu-chip,
html.light-theme .maslu-field input,
html.light-theme .maslu-field select,
html.light-theme .maslu-field textarea{
  background:#ffffff !important; color:#1f1d1a !important; border-color:#ece7dd !important;
}
html.light-theme .maslu-form label,
html.light-theme .maslu-form__label,
html.light-theme .maslu-form h1,
html.light-theme .maslu-form h2{ color:#1f1d1a !important; }
html.light-theme .maslu-form .maslu-hint,
html.light-theme .maslu-form small{ color:#938d83 !important; }
html.light-theme .maslu-form input::placeholder,
html.light-theme .maslu-form textarea::placeholder{ color:#a39c90 !important; }

/* ---- near-me.css : #maslu-near-page scoped, every rule !important ---- */
html.light-theme #maslu-near-page{ background:#F9F9F9 !important; color:#1f1d1a !important; }
html.light-theme #maslu-near-page .mn-hero{ background:linear-gradient(160deg,#fdf6ec,#F9F9F9) !important; border-bottom-color:#ece7dd !important; }
html.light-theme #maslu-near-page .mn-title{ color:#1f1d1a !important; }
html.light-theme #maslu-near-page .mn-breadcrumb,
html.light-theme #maslu-near-page .mn-subtitle,
html.light-theme #maslu-near-page .mn-meta,
html.light-theme #maslu-near-page .mn-divider{ color:#938d83 !important; }
html.light-theme #maslu-near-page .mn-chip{ background:#ffffff !important; border-color:#ece7dd !important; color:#5f5a52 !important; }
html.light-theme #maslu-near-page .mn-card{ background:#ffffff !important; border-color:#ece7dd !important; color:#1f1d1a !important; box-shadow:0 1px 3px rgba(31,29,26,.06) !important; }
html.light-theme #maslu-near-page .mn-card-title{ color:#1f1d1a !important; }
html.light-theme #maslu-near-page .mn-card-image,
html.light-theme #maslu-near-page .mn-card-image-ph{ background:#f0ebe1 !important; }
html.light-theme #maslu-near-page .mn-meta,
html.light-theme #maslu-near-page .mn-card-meta{ color:#938d83 !important; }
html.light-theme #maslu-near-page .mn-divider::before,
html.light-theme #maslu-near-page .mn-divider::after{ background:#ece7dd !important; }

/* ---- maalot-archive.css : body !important + cards/sections ---- */
html.light-theme body.post-type-archive-masluland_maalot,
html.light-theme .ml-maalot-archive{ background:#F9F9F9 !important; }

/* ---- magazine-archive.css : hardcoded-dark page (REAL .ml-mag-* classes) ----
   This index barely converted because the earlier rules used wrong class names. */
html.light-theme .ml-mag-hero{ background:#F9F9F9 !important; border-bottom-color:#ece7dd !important; }
html.light-theme .ml-mag-hero__subtitle{ color:#938d83 !important; }
html.light-theme .ml-mag-filter-bar{ background:rgba(255,255,255,.95) !important; border-bottom-color:#ece7dd !important; }
html.light-theme .ml-mag-filter-btn{ border-color:#ece7dd !important; color:#5f5a52 !important; }
html.light-theme .ml-mag-filter-btn--active{ color:var(--ml-gold-dark, #8a5a1f) !important; }
html.light-theme .ml-mag-main{ background:#F9F9F9 !important; }
html.light-theme .ml-mag-empty{ color:#938d83 !important; }
html.light-theme .ml-mag-section__title{ color:#1f1d1a !important; }
html.light-theme .ml-mag-section__count{ color:#938d83 !important; }
html.light-theme .ml-mag-featured,
html.light-theme .ml-mag-card{ background:#ffffff !important; border-color:#ece7dd !important; box-shadow:0 1px 3px rgba(31,29,26,.06) !important; }
html.light-theme .ml-mag-card:hover{ border-color:#e2dccf !important; box-shadow:0 14px 34px rgba(31,29,26,.12) !important; }
html.light-theme .ml-mag-featured__img,
html.light-theme .ml-mag-card__img{ background-color:#f0ebe1 !important; }
html.light-theme .ml-mag-featured__title,
html.light-theme .ml-mag-card__title{ color:#1f1d1a !important; }
html.light-theme .ml-mag-featured__excerpt,
html.light-theme .ml-mag-card__excerpt{ color:#5f5a52 !important; }
html.light-theme .ml-mag-featured__meta-item,
html.light-theme .ml-mag-card__meta{ color:#938d83 !important; }
html.light-theme .ml-mag-card__meta{ border-top-color:#ece7dd !important; }
html.light-theme .ml-mag-card__cat,
html.light-theme .ml-mag-featured__cta{ color:var(--ml-gold-dark, #8a5a1f) !important; }   /* gold text on white → darker gold */
html.light-theme .ml-mag-loadmore-btn{ border-color:#ece7dd !important; color:#5f5a52 !important; }
/* .ml-mag-featured__cat stays ink-on-gold badge (var(--dark) on --sand) — fine. */

/* ---- single-article.css / single-supplier.css / suppliers.css : literal bg ---- */
html.light-theme .ml-sup-hero__bg{ background:#F9F9F9 !important; }
html.light-theme .ml-sup-main,
html.light-theme .ml-sup-card,
html.light-theme .ml-sup-card__logo,
html.light-theme .ml-sup-card__btn,
html.light-theme .ml-sup-cta{ background:#ffffff !important; border-color:#ece7dd !important; color:#1f1d1a !important; }
html.light-theme .ml-sup-cta{ border-top-color:#ece7dd !important; }

/* ---- FAB (functions.php) — the "+" is now a native <a> link to /submit-trail/;
   only the hover tooltip remains. Keep it dark so it stays legible on white. ---- */
html.light-theme .maslu-htip{ background:#1f1d1a !important; color:#f4f1eb !important; }

/* ---- auth.css : login / profile / my-area (heavy !important) ---- */
html.light-theme .maslu-auth,
html.light-theme .maslu-auth-card,
html.light-theme .maslu-login-card,
html.light-theme .ml-myarea,
html.light-theme .ml-myarea-card,
html.light-theme .ml-profile-card,
html.light-theme .maslu-auth input,
html.light-theme .maslu-auth select{
  background:#ffffff !important; color:#1f1d1a !important; border-color:#ece7dd !important;
}
html.light-theme .maslu-auth label,
html.light-theme .ml-myarea h1,
html.light-theme .ml-myarea h2{ color:#1f1d1a !important; }

/* ---- maslu-register.css : register form + Select2 widget (bare !important) ---- */
html.light-theme .maslu-reg-card{ background:#ffffff !important; border-color:#ece7dd !important; color:#1f1d1a !important; box-shadow:0 14px 34px rgba(31,29,26,.12) !important; }
html.light-theme .maslu-reg-card input,
html.light-theme .maslu-reg-card select,
html.light-theme .maslu-reg-field input{ background:#ffffff !important; color:#1f1d1a !important; border-color:#ece7dd !important; }
html.light-theme .maslu-reg-sub,
html.light-theme .maslu-reg-already{ color:#5f5a52 !important; }
html.light-theme .select2-container--default .select2-selection--single,
html.light-theme .select2-dropdown,
html.light-theme .select2-results__option{ background:#ffffff !important; color:#1f1d1a !important; border-color:#ece7dd !important; }
html.light-theme .select2-results__option--highlighted{ background:#f4f1eb !important; color:#1f1d1a !important; }


/* =====================================================================
   5. TEMPLATE <style>-BLOCK CLASSES  (class colors, not inline → need rules)
   ===================================================================== */

/* ---- taxonomy-trail_region_tax.php : the .mlr-* system (HYPHEN class names) ----
   NOTE: the live template uses single-hyphen names (.mlr-hero-title, .mlr-card-title,
   .mlr-card-desc, .mlr-card-img, .mlr-popup-head ...). An earlier version of this
   block targeted stale BEM names (.mlr-title, .mlr-card__title ...) that match nothing,
   which is why the region page stayed dark/faded in Light Mode. */

/* page / hero / counter bands → light */
html.light-theme #ml-region-main,
html.light-theme .mlr-hero,
html.light-theme .mlr-counter{ background:#F9F9F9 !important; }
/* the hero's bottom gradient faded to #121212 → a dark band on white; fade to page */
html.light-theme .mlr-hero::after{ background:linear-gradient(to bottom,transparent,#F9F9F9) !important; }
html.light-theme .mlr-counter{ border-top-color:#ece7dd !important; border-bottom-color:#ece7dd !important; }

/* headings (region name, eyebrow band, "איפה תרצו לטייל", card titles, popup titles) */
html.light-theme .mlr-hero-title,
html.light-theme .mlr-counter-side,
html.light-theme .mlr-search-title,
html.light-theme .mlr-card-title,
html.light-theme .mlr-popup-head h3{ color:#1f1d1a !important; }

/* gold accents → darker gold so they read on white (via --ml-gold-dark) */
html.light-theme .mlr-hero-eyebrow,
html.light-theme .mlr-counter-num,
html.light-theme .mlr-results strong,
html.light-theme .mlr-dd.active,
html.light-theme .mlr-simple.sel,
html.light-theme .mlr-opt-check{ color:var(--ml-gold-dark, #8a5a1f) !important; }

/* secondary / meta text → muted ink */
html.light-theme .mlr-hero-subareas,
html.light-theme .mlr-results,
html.light-theme .mlr-dd-arrow,
html.light-theme .mlr-opt-desc,
html.light-theme .mlr-card-desc,
html.light-theme .mlr-card-meta,
html.light-theme .mlr-card-region,
html.light-theme .mlr-card-author,
html.light-theme .mlr-card-date{ color:#938d83 !important; }
html.light-theme .mlr-dot{ color:#cdc5b6 !important; }

/* surfaces: dropdowns / reset / popup / popup head / cards → white card tone */
html.light-theme .mlr-dd,
html.light-theme .mlr-reset,
html.light-theme .mlr-popup,
html.light-theme .mlr-popup-head,
html.light-theme .mlr-card{ background:#ffffff !important; border-color:#ece7dd !important; color:#1f1d1a !important; }
html.light-theme .mlr-simple{ color:#1f1d1a !important; }
html.light-theme .mlr-dd:hover,
html.light-theme .mlr-opt:hover,
html.light-theme .mlr-simple:hover{ background:#f4f1eb !important; }
/* dividers inside popups + card meta */
html.light-theme .mlr-opt,
html.light-theme .mlr-simple,
html.light-theme .mlr-card-meta{ border-color:#ece7dd !important; }
html.light-theme .mlr-popup-close{ background:#f4f1eb !important; color:#5f5a52 !important; }

/* card image placeholder (no featured image) → neutral light, not black */
html.light-theme .mlr-card-img{ background-color:#f0ebe1 !important; }
/* card shadows → soft light shadow at rest + hover (base used a heavy black shadow) */
html.light-theme .mlr-card{ box-shadow:0 1px 3px rgba(31,29,26,.06); }
html.light-theme .mlr-card:hover{ box-shadow:0 14px 34px rgba(31,29,26,.12) !important; }

/* ---- trails-region.php : inline <style> forces body dark ---- */
html.light-theme body.tax-trail_region_tax{ background:#F9F9F9 !important; color:#1f1d1a !important; }
html.light-theme .mlreg-card{ box-shadow:0 1px 3px rgba(31,29,26,.06) !important; }

/* ---- maalot archive : explicit class hooks ---- */
html.light-theme #ml-maalot-main{ background:#F9F9F9 !important; }
html.light-theme .ml-maalot-card{ background:#ffffff !important; border-color:#ece7dd !important; box-shadow:0 1px 3px rgba(31,29,26,.06) !important; }
html.light-theme .ml-maalot-region-header,
html.light-theme .ml-maalot-region-body{ background:#F9F9F9 !important; }

/* ---- site archive : explicit class hooks ---- */
html.light-theme .ml-site-card{ background:#ffffff !important; border-color:#ece7dd !important; box-shadow:0 1px 3px rgba(31,29,26,.06) !important; }
html.light-theme .ml-site-chip{ background:#ffffff !important; border-color:#ece7dd !important; color:#5f5a52 !important; }

/* ---- shared bottom CTA band (homepage + archives) ---- */
html.light-theme .ml-bottom-section{ background:#ffffff !important; border-top-color:#ece7dd !important; }


/* =====================================================================
   6. SINGLE PAGES — literal bits the scoped-token flip can't reach
   ===================================================================== */

/* breadcrumb black band (inline #000 on trail/site) handled by §2; ensure links/seps */
html.light-theme .ml-breadcrumb a{ color:var(--ml-gold-dark, #8a5a1f) !important; }
html.light-theme .ml-breadcrumb__sep{ color:#cdc5b6 !important; }

/* hero letterbox + image placeholder (literal #0e0f10 / #1a1c1e handled by §2) */
html.light-theme .ml-hero-placeholder{ color:#b8b0a4 !important; }

/* Leaflet map: tiles are already light (OSM); only the white-alpha border reads wrong */
html.light-theme #ml-map,
html.light-theme #ml-site-map{ border-color:#e2dccf !important; }
/* map marker labels were dark chips with gold border — keep dark for legibility on map */

/* Class-based white-alpha surfaces inside single pages (weather, comments,
   chips, terrain/updated tags, related-card placeholders) — literal rgba in
   the scoped <style>, so they need explicit light values. */
html.light-theme .ml-weather,
html.light-theme .ml-chip--static,
html.light-theme .ml-terrain-tag,
html.light-theme .ml-updated,
html.light-theme .ml-site-tag--custom,
html.light-theme .ml-comment__avatar{ background:#f4f1eb !important; }
html.light-theme .ml-comment-form textarea,
html.light-theme .ml-comment-form input{ background:#ffffff !important; border-color:#e2dccf !important; color:#1f1d1a !important; }
html.light-theme .ml-related-card{ box-shadow:0 1px 3px rgba(31,29,26,.06); }
html.light-theme .ml-related-card__img-ph,
html.light-theme .ml-related-thumb{ background:#f0ebe1 !important; }

/* GPX / share / save action buttons (base uses rgba-white + !important) */
html.light-theme .ml-action-btn--gpx,
html.light-theme .ml-action-btn--share,
html.light-theme .ml-action-btn--save,
html.light-theme .btn-done-c{
  background:#ffffff !important; border:1px solid #e2dccf !important; color:#1f1d1a !important;
}
html.light-theme .ml-action-btn--gpx:hover,
html.light-theme .ml-action-btn--share:hover,
html.light-theme .ml-action-btn--save:hover{ background:#f4f1eb !important; }
/* offroad CTA + Waze keep their brand colors (gold / #33ccff) */

/* ── Difficulty chip tooltip (.ml-diff-bubble, single trail) ──
   The bubble bg + arrow are class-based literal #232527 (the token flip can't
   reach them) so in Light the popover stayed DARK while its body text flipped to
   dark ink → dark-on-dark, unreadable. Flip the surface to white + readable ink.
   The title keeps its difficulty hue but the lighter levels fail contrast on
   white, so darken easy/medium/hard to a legible shade of the SAME hue (the
   inline color is beaten with !important + -webkit-text-fill-color). Extreme red
   (#C62828) already passes on white and is left as-is. Dark mode untouched. */
html.light-theme .ml-diff-bubble{ background:#ffffff !important; border-color:#ece7dd !important; box-shadow:0 8px 28px rgba(31,29,26,.16) !important; }
html.light-theme .ml-diff-bubble__arrow{ background:#ffffff !important; border-color:#ece7dd !important; }
html.light-theme .ml-diff-bubble__desc{ color:#2b2b2b !important; }
html.light-theme .ml-diff-bubble__example{ color:#6f6a5e !important; }
html.light-theme .ml-diff-bubble[data-diff="easy"] .ml-diff-bubble__title{ color:#2e7d32 !important; -webkit-text-fill-color:#2e7d32 !important; }
html.light-theme .ml-diff-bubble[data-diff="medium"] .ml-diff-bubble__title{ color:#b26a00 !important; -webkit-text-fill-color:#b26a00 !important; }
html.light-theme .ml-diff-bubble[data-diff="hard"] .ml-diff-bubble__title{ color:#c43c12 !important; -webkit-text-fill-color:#c43c12 !important; }

/* ── Legal warning modal "רגע לפני שמורידים" (single trail/maalot) ──
   Literal-hex, CLASS-based colors (not inline) → the token flip can't reach them,
   so in Light the dark-theme light text stayed light on the now-white dialog and
   went invisible. Re-assert dark, readable text on every part. Keep the red
   liability box + brown CTA (both legible). Dark mode untouched. */
html.light-theme .ml-warn-modal__dialog{ background:#ffffff !important; color:#2b2b2b !important; }
html.light-theme .ml-warn-modal__title{ color:#1a1a1a !important; -webkit-text-fill-color:#1a1a1a !important; }
html.light-theme .ml-warn-modal__icon{ color:#e09820 !important; }
html.light-theme .ml-warn-modal__body{ color:#2b2b2b !important; -webkit-text-fill-color:#2b2b2b !important; }
html.light-theme .ml-warn-modal__checkbox-label{ color:#2b2b2b !important; -webkit-text-fill-color:#2b2b2b !important; }
html.light-theme .ml-warn-modal__footer{ color:#7a7568 !important; -webkit-text-fill-color:#7a7568 !important; }
html.light-theme .ml-warn-modal__alert{ background:#fbeaea !important; border-right-color:#c0392b !important; color:#9c2318 !important; }
html.light-theme .ml-warn-modal__checkbox-row{ background:#faf7f1 !important; border-color:#ece7dd !important; }
html.light-theme .ml-warn-modal__checkbox-row:hover{ border-color:#e2dccf !important; }
html.light-theme .ml-warn-modal__confirm{ background:#4a3a2c !important; color:#f4f1eb !important; }
html.light-theme .ml-warn-modal__confirm:hover:not(:disabled){ background:#5a4636 !important; }
html.light-theme .ml-warn-modal__confirm:disabled{ background:#cfc4b3 !important; color:#7a7568 !important; }
html.light-theme .ml-warn-modal__close{ background:#f4f1eb !important; color:#5f5a52 !important; }

/* child single-article.php scoped <style> uses global token names + !important bg */
html.light-theme .ml-art{ background:#F9F9F9 !important; color:#1f1d1a !important; }
html.light-theme .article-wrapper,
html.light-theme .article-body{ background:#F9F9F9 !important; }
html.light-theme .article-body{ color:#333 !important; line-height:1.8 !important; }
html.light-theme .article-body h2,
html.light-theme .article-body h3,
html.light-theme .article-body strong{ color:#1f1d1a !important; }
html.light-theme .article-body p,
html.light-theme .article-body li,
html.light-theme .article-body ul,
html.light-theme .article-body ol{ color:#333 !important; }   /* deep charcoal for long-form reading */
html.light-theme .sidebar-card,
html.light-theme .more-articles,
html.light-theme .more-card,
html.light-theme .share-copy{ background:#ffffff !important; border-color:#ece7dd !important; }
html.light-theme .sidebar-card *{ color:#1f1d1a !important; }
html.light-theme .ml-art-sep-line{ background:#e2dccf !important; }
html.light-theme .ml-mobile-toc{ background:#ffffff !important; border-color:#ece7dd !important; }
html.light-theme .ml-mobile-toc-title{ color:#1f1d1a !important; border-bottom-color:#ece7dd !important; }


/* =====================================================================
   7. CORE-RENDERED SURFACES (masluland-core.php)
   ===================================================================== */

/* breadcrumb bar (#000 inline handled by §2; close out text colors) */
/* region modal — overlay scrim left dark (fine), card → light */
html.light-theme #ml-region-modal-card,
html.light-theme .ml-region-modal__card{ background:#ffffff !important; border-color:#ece7dd !important; color:#1f1d1a !important; }

/* footer is class-driven via main.css tokens → already flipped (white panel). */


/* =====================================================================
   8. QA ROUND — contrast & readability fixes (additive, light-theme only)
   ===================================================================== */

/* (2) Filter dropdowns (region / difficulty): heavier weight + solid dark text.
   The button background/text color is already flipped by the §2 generic rules;
   this adds the weight and a hard dark color on the labels + native selects. */
html.light-theme #mlHpRegionBtn,
html.light-theme #mlDiffBtn,
html.light-theme #mlRegionBtn,
html.light-theme .ml-hp-region-btn-label,
html.light-theme .ml-diff-btn-label,
html.light-theme .ml-maalot-region-btn-label,
html.light-theme .ml-maalot-diff-btn-label{
  font-weight:600 !important; color:#1a1a1a !important; -webkit-text-fill-color:#1a1a1a !important;
}
html.light-theme .ml-filter-bar select,
html.light-theme .ml-arc-filters select,
html.light-theme .ml-arc-filter select,
html.light-theme #ml-sort,
html.light-theme select.ml-sup-select{ font-weight:600 !important; color:#1a1a1a !important; }

/* (3) Ascents archive (מעלות): card title + region accordion title are inline
   color:#f4f1eb !important and were blending into white. -webkit-text-fill-color
   beats the inline !important. (The §2 generic flip now also covers them; this is
   the explicit, bold version.) */
html.light-theme .ml-maalot-card h3,
html.light-theme .ml-maalot-region-header h2{
  color:#1a1a1a !important; -webkit-text-fill-color:#1a1a1a !important; font-weight:700 !important;
}

/* (7) Sites archive (אתרים): card title is inline gold (#DDB88B !important) =
   harsh/low-contrast on white. Flip to dark ink for parity with the Ascents card
   (bg/border/shadow already match .ml-maalot-card — see §5). */
html.light-theme .ml-site-card h3{ color:#1a1a1a !important; -webkit-text-fill-color:#1a1a1a !important; }

/* (4) Single Ascent (עמוד מעלה): the "סמן כבוצע" control. §6 fixes the button
   shell; these fix the CHILD elements that carry their own faint colors, so the
   CTA reads clearly: title text, checkbox outline, count badge, done state. */
html.light-theme .btn-done-c .t1{ color:#1f1d1a !important; }
html.light-theme .btn-done-c .check-box{ border-color:#c9bfae !important; }
html.light-theme .btn-done-c .count-badge{ background:#f4f1eb !important; border-color:#e2dccf !important; }
html.light-theme .btn-done-c.done .t1,
html.light-theme .btn-done-c.done .count-badge .cn{ color:var(--ml-gold-dark, #8a5a1f) !important; }
/* save button heart icon was off-white → invisible on white */
html.light-theme .ml-action-btn--save .ml-heart{ color:#938d83 !important; }

/* (8) FAQ accordion answers — readable dark grey on white.
   .ml-faq-a (+ inner) = single trail/maalot/site; .ml-faq__answer p = home/archive. */
html.light-theme .ml-faq-a,
html.light-theme .ml-faq-a-inner,
html.light-theme .ml-faq__answer p{ color:#333 !important; }


/* =====================================================================
   9. MINIFIER-SAFE EXPLICIT RULES  (do NOT depend on [style*="…"])
   ---------------------------------------------------------------------
   ROOT CAUSE of the "black trail cards" bug: LiteSpeed CSS-minify strips the
   quotes from [style*="…"] selectors; the ':' and '#' in the value then make
   them invalid, so the whole rule is dropped. That is why the region HEADERS
   (a plain .ml-region-header class rule) turned light while the CARDS (which
   relied only on the §2 attribute selector for their #2c2c2c background) and
   the region BODY band stayed black. The §2 generic flips are kept as a
   fallback, but every high-traffic inline surface is re-targeted here with
   plain class / id / element / pseudo selectors, which always survive minify.
   ===================================================================== */

/* Full-width region bands behind the cards (trails + ascents archives) */
html.light-theme #ml-archive-main,
html.light-theme .ml-archive-main,
html.light-theme .ml-region-section,
html.light-theme .ml-region-body,
html.light-theme #ml-maalot-main,
html.light-theme .ml-maalot-region-section,
html.light-theme .ml-maalot-region-body{ background:#F9F9F9 !important; }

/* Archive cards — surface (trail / ascent / site) */
html.light-theme .ml-arc-card,
html.light-theme .ml-maalot-card,
html.light-theme .ml-site-card{
  background:#ffffff !important; border-color:#ece7dd !important;
  box-shadow:0 1px 3px rgba(31,29,26,.06) !important;
}
/* Archive cards — text. h3=title, p=desc, meta spans live in the BODY div;
   `a > div:last-child span` deliberately skips the difficulty badge (which sits
   in the image div). -webkit-text-fill-color beats the inline color:… !important. */
html.light-theme .ml-arc-card h3,
html.light-theme .ml-maalot-card h3,
html.light-theme .ml-site-card h3{ color:#1a1a1a !important; -webkit-text-fill-color:#1a1a1a !important; }
html.light-theme .ml-arc-card p,
html.light-theme .ml-maalot-card p,
html.light-theme .ml-site-card p{ color:#5f5a52 !important; -webkit-text-fill-color:#5f5a52 !important; }
html.light-theme .ml-arc-card a > div:last-child span,
html.light-theme .ml-maalot-card a > div:last-child span,
html.light-theme .ml-site-card a > div:last-child span{ color:#938d83 !important; -webkit-text-fill-color:#938d83 !important; }
html.light-theme .ml-arc-card a > div:last-child > div,
html.light-theme .ml-maalot-card a > div:last-child > div,
html.light-theme .ml-site-card a > div:last-child > div{ border-color:#ece7dd !important; }

/* Region header "כל המסלולים" gold link → darker gold for contrast on white */
html.light-theme .ml-region-header a,
html.light-theme .ml-maalot-region-header a{ color:var(--ml-gold-dark, #8a5a1f) !important; -webkit-text-fill-color:var(--ml-gold-dark, #8a5a1f) !important; }

/* Filter bar + region/difficulty dropdown buttons + native selects
   (inline #111 / #1e1e1e / #222 backgrounds, off-white text). */
html.light-theme #ml-arc-filter{ background:#ffffff !important; border-bottom-color:#ece7dd !important; }
html.light-theme #mlRegionBtn,
html.light-theme #mlDiffBtn,
html.light-theme #mlHpRegionBtn,
html.light-theme #arc-filter-cellular,
html.light-theme #arc-filter-trailtype{
  background:#ffffff !important; border-color:#ece7dd !important;
  color:#1a1a1a !important; -webkit-text-fill-color:#1a1a1a !important;
}


/* =====================================================================
   10. SUBMIT-TRAIL PAGE (/submit-trail/)  — masluland-form.css is fully
   hardcoded-dark; flip it here. Scoped to .maslu-form-page / .maslu-form-bc /
   #maslu-success so nothing bleeds to the register modal (.maslu-reg-*).
   ===================================================================== */

/* Breadcrumb bar */
html.light-theme .maslu-form-bc{ background:#ffffff !important; color:#938d83 !important; border-bottom-color:#ece7dd !important; }
html.light-theme .maslu-form-bc a{ color:var(--ml-gold-dark, #8a5a1f) !important; }
html.light-theme .maslu-form-bc .sep{ color:#cdc5b6 !important; }

/* Hero title + intro */
html.light-theme .maslu-form-page h1{ color:#1a1a1a !important; }
html.light-theme .maslu-form-page .maslu-page-sub{ color:#5f5a52 !important; }
html.light-theme .maslu-form-page .maslu-page-sub strong{ color:var(--ml-gold-dark, #8a5a1f) !important; }

/* Secondary "שמור והוסף עוד" ghost button — gold reads darker on light bg */
html.light-theme .maslu-submit-btn.maslu-submit-btn--secondary{ color:var(--ml-gold-dark, #8a5a1f) !important; border-color:var(--ml-gold-dark, #8a5a1f) !important; }
html.light-theme .maslu-submit-btn.maslu-submit-btn--secondary:hover{ background:rgba(154,106,47,0.10) !important; }

/* Account ownership (Stage 3) — "uploading as" line + admin picker hint */
html.light-theme .maslu-uploading-as{ background:rgba(154,106,47,0.08) !important; border-color:rgba(154,106,47,0.25) !important; color:#6b5a3e !important; }
html.light-theme .maslu-uploading-as strong{ color:var(--ml-gold-dark, #8a5a1f) !important; }
html.light-theme .maslu-author-hint{ color:#938d83 !important; }

/* Section headings (gold) + field labels */
html.light-theme .maslu-form-page .maslu-section-label{ color:var(--ml-gold-dark, #8a5a1f) !important; border-bottom-color:rgba(154,106,47,0.25) !important; }
html.light-theme .maslu-form-page .maslu-flabel{ color:#222 !important; }
html.light-theme .maslu-form-page .maslu-flabel .opt{ color:#938d83 !important; }
/* .req stays red (#ff453a is legible on white) */

/* Inputs / textareas (color/contrast only — structure unchanged) */
html.light-theme .maslu-form-page .maslu-input,
html.light-theme .maslu-form-page .maslu-textarea{ background:#ffffff !important; border-color:#ece7dd !important; color:#1f1d1a !important; }
html.light-theme .maslu-form-page .maslu-input::placeholder,
html.light-theme .maslu-form-page .maslu-textarea::placeholder{ color:#938d83 !important; }
/* focus keeps the gold ring (var stays); error border handled in masluland-form.css */

/* Region selector cards */
html.light-theme .maslu-form-page .maslu-radio-card{
  background:#ffffff !important; border-color:#ece7dd !important; border-radius:12px !important;
  box-shadow:0 1px 3px rgba(31,29,26,.06) !important;
}
html.light-theme .maslu-form-page .maslu-radio-card:hover{ border-color:rgba(221,184,139,0.55) !important; }
html.light-theme .maslu-form-page .maslu-radio-card.selected{ border-color:#DDB88B !important; background:rgba(221,184,139,0.10) !important; }
html.light-theme .maslu-form-page .maslu-radio-title{ color:#1a1a1a !important; -webkit-text-fill-color:#1a1a1a !important; }
html.light-theme .maslu-form-page .maslu-radio-desc{ color:#555 !important; -webkit-text-fill-color:#555 !important; }
html.light-theme .maslu-form-page .maslu-radio-dot{ border-color:#b8b0a4 !important; }
/* selected dot border + gold fill already on-brand (kept) */

/* Cellular / consent pills */
html.light-theme .maslu-form-page .maslu-chip{ background:#ffffff !important; border-color:#ece7dd !important; color:#222 !important; }
html.light-theme .maslu-form-page .maslu-chip:hover{ border-color:rgba(221,184,139,0.55) !important; }
html.light-theme .maslu-form-page .maslu-chip.selected{ background:#DDB88B !important; color:#1a1a1a !important; border-color:#DDB88B !important; box-shadow:none !important; }

/* Difficulty cards (keep the colored dots/names) */
html.light-theme .maslu-form-page .maslu-diff-cards{ background:#ffffff !important; border-color:#ece7dd !important; }
html.light-theme .maslu-form-page .maslu-diff-card-v2{ border-bottom-color:#ece7dd !important; }
html.light-theme .maslu-form-page .maslu-diff-card-v2:hover{ background:#f4f1eb !important; }
html.light-theme .maslu-form-page .maslu-diff-card-v2.selected{ background:rgba(221,184,139,0.10) !important; }
html.light-theme .maslu-form-page .maslu-diff-card-v2__desc{ color:#333 !important; }
html.light-theme .maslu-form-page .maslu-diff-card-v2__example{ color:#938d83 !important; }

/* File upload dropzones */
html.light-theme .maslu-form-page .maslu-upload-zone{ background:#faf7f1 !important; border-color:#d8cdb8 !important; }
html.light-theme .maslu-form-page .maslu-upload-zone:hover{ border-color:rgba(221,184,139,0.6) !important; }
html.light-theme .maslu-form-page .maslu-upload-label{ color:#555 !important; }
html.light-theme .maslu-form-page .maslu-upload-hint{ color:#938d83 !important; }

/* Status box + submit note */
html.light-theme .maslu-form-page .maslu-status-box{ background:#faf7f1 !important; border-color:#ece7dd !important; }
html.light-theme .maslu-form-page .maslu-status-box__text{ color:#5f5a52 !important; }
html.light-theme .maslu-form-page .maslu-submit-note{ color:#938d83 !important; }
/* .maslu-submit-btn stays gold + dark ink (on-brand, reads on white) */

/* Success / confirmation screen */
html.light-theme #maslu-success h2{ color:#1a1a1a !important; }
html.light-theme #maslu-success p{ color:#5f5a52 !important; }
/* .maslu-success__icon stays brand gold (large, visible) */

/* Error-summary box keeps its red identity in light too (defined in masluland-form.css) */


/* =====================================================================
   11. LIVE SEARCH DROPDOWN — real .mls-dd-* classes (search.css is hardcoded
   dark; the JS builds .mls-dd-result / .mls-dd-title / .mls-dd-footer). The
   dropdown box itself is already light (token flip). Plain class selectors,
   so they survive LiteSpeed minify.
   ===================================================================== */
html.light-theme .mls-dd-result{ color:#1f1d1a !important; }
html.light-theme .mls-dd-result:hover,
html.light-theme .mls-dd-result[aria-selected="true"]{ background:#f4f1eb !important; }   /* was dark #2c2c2c */
html.light-theme .mls-dd-title{ color:#1f1d1a !important; -webkit-text-fill-color:#1f1d1a !important; }
html.light-theme .mls-dd-meta{ color:#938d83 !important; }
html.light-theme .mls-dd-group-label{ color:#938d83 !important; }
html.light-theme .mls-dd-no-results{ color:#5f5a52 !important; }
html.light-theme .mls-dd-no-results strong{ color:#1f1d1a !important; }
html.light-theme .mls-dd-footer{ border-top-color:#ece7dd !important; }
html.light-theme .mls-dd-footer a{ color:var(--ml-gold-dark, #8a5a1f) !important; }                            /* weak gold → readable gold */
html.light-theme .mls-dd-footer a:hover{ background:#f4f1eb !important; color:#1f1d1a !important; }
html.light-theme .mls-dd-icon--regions{ background:rgba(31,29,26,0.06) !important; color:#5f5a52 !important; }


/* =====================================================================
   12. ACCOUNT ICON SILHOUETTE — BOTH-THEMES FIX (intentionally unscoped).
   auth.css `body.admin-bar .ml-nav svg{fill:none!important}` (0,2,2) blanks the
   fill-based person glyph whenever the admin bar is present (admins), in BOTH
   Light and Dark. Restore the fill with a higher-specificity rule (0,3,0). The
   glyph COLOR still flips per theme via .ml-nav__account (light glyph on the
   dark base; dark glyph on the light circle from §3) — only the fill is restored
   here, so the dark appearance is otherwise unchanged. Stroke-based nav icons
   (search/hamburger) are untouched.
   ===================================================================== */
.ml-nav .ml-nav__account .ml-nav__account-svg{ fill:currentColor !important; }


/* =====================================================================
   13. SINGLE-SUPPLIER PAGE  (single-supplier.css is hardcoded-dark; .ml-ss-*)
   ---------------------------------------------------------------------
   The body consumes var(--dark) (NOT flipped) while its text flips to ink →
   near-black on near-black. Flip the body/sections/cards to light surfaces and
   re-assert readable ink. The HERO is an intentionally-dark photo block
   (literal #080808 + dark gradient) — keep it dark and re-assert LIGHT text.
   ===================================================================== */

/* Hero stays dark → re-assert light text over the photo/gradient */
html.light-theme .ml-ss-hero__title{ color:#f4f1eb !important; -webkit-text-fill-color:#f4f1eb !important; }
html.light-theme .ml-ss-action--web{ color:#f4f1eb !important; }
/* hero desc (#888) + region badge (gold) already read fine on the dark hero */

/* Body band → light page tone */
html.light-theme .ml-ss-body{ background:#F9F9F9 !important; }

/* Section titles + hairline dividers */
html.light-theme .ml-ss-section__title{ color:#1f1d1a !important; -webkit-text-fill-color:#1f1d1a !important; border-bottom-color:#ece7dd !important; }

/* About / recommendation long text (was #999 → too faint on white) */
html.light-theme .ml-ss-about,
html.light-theme .ml-ss-rec__text{ color:#5f5a52 !important; }

/* Services list tiles */
html.light-theme .ml-ss-services li{ background:#ffffff !important; border-color:#ece7dd !important; color:#1f1d1a !important; }

/* Opening hours table */
html.light-theme .ml-ss-hours{ background:#ffffff !important; border-color:#ece7dd !important; }
html.light-theme .ml-ss-hours__row{ border-bottom-color:#ece7dd !important; }
html.light-theme .ml-ss-hours__day{ color:#1f1d1a !important; }
html.light-theme .ml-ss-hours__time{ color:#1f1d1a !important; -webkit-text-fill-color:#1f1d1a !important; }
html.light-theme .ml-ss-hours__time--closed{ color:#938d83 !important; -webkit-text-fill-color:#938d83 !important; }

/* Partners */
html.light-theme .ml-ss-partner{ background:#ffffff !important; border-color:#ece7dd !important; }
html.light-theme .ml-ss-partner__name{ color:#5f5a52 !important; }

/* Sidebar cards */
html.light-theme .ml-ss-card{ background:#ffffff !important; border-color:#ece7dd !important; box-shadow:0 1px 3px rgba(31,29,26,.06); }
html.light-theme .ml-ss-card__title,
html.light-theme .ml-ss-rec__label{ color:#938d83 !important; }

/* Perk callout (gold gradient stays) → re-assert its ink text */
html.light-theme .ml-ss-perk__text{ color:#1f1d1a !important; -webkit-text-fill-color:#1f1d1a !important; }

/* Contact rows */
html.light-theme .ml-ss-contact-row{ color:#1f1d1a !important; border-bottom-color:#ece7dd !important; }
html.light-theme .ml-ss-contact-row__icon{ background:#f4f1eb !important; }
html.light-theme .ml-ss-contact-row__label{ color:#938d83 !important; }
html.light-theme .ml-ss-contact-row__value{ color:#1f1d1a !important; -webkit-text-fill-color:#1f1d1a !important; }

/* Share button shell (nav-btn + social keep their brand colors) */
html.light-theme .ml-ss-share-btn{ border-color:#e2dccf !important; color:#5f5a52 !important; }
html.light-theme .ml-ss-share-btn:hover{ border-color:#c9bfae !important; color:#1f1d1a !important; }


/* =====================================================================
   14. LEGAL PAGES  (legal-pages.css — terms / privacy / accessibility)
   ---------------------------------------------------------------------
   .ml-legal-hero paints a literal dark gradient (class-based, so the inline
   flip can't catch it) and the title flips to ink → dark-on-dark hero. Flip the
   gradient to a light band and re-assert readable heading + subtitle.
   ===================================================================== */
html.light-theme .ml-legal-hero{ background:linear-gradient(180deg,#ffffff 0%,#F9F9F9 100%) !important; }
html.light-theme .ml-legal-hero-title{ color:#1f1d1a !important; -webkit-text-fill-color:#1f1d1a !important; }
html.light-theme .ml-legal-hero-subtitle{ color:#5f5a52 !important; }
/* the ::before gold glow + gold icon border read fine on the light band */


/* =====================================================================
   15. SEARCH RESULTS PAGE  (/search/) — .mls-page, styled in CORE search.css
   ---------------------------------------------------------------------
   .mls-page has no background of its own (sits on the light body) but every
   text/surface color is a hardcoded dark hex → invisible ink on white. Re-assert
   dark text + flip the input and row surfaces. Plain class selectors (minify-safe).
   ===================================================================== */
html.light-theme .mls-page__heading{ color:#1f1d1a !important; -webkit-text-fill-color:#1f1d1a !important; }
html.light-theme .mls-page__heading strong{ color:var(--ml-gold-dark, #8a5a1f) !important; -webkit-text-fill-color:var(--ml-gold-dark, #8a5a1f) !important; }
html.light-theme .mls-page__input{ background:#ffffff !important; border-color:#ece7dd !important; color:#1f1d1a !important; }
html.light-theme .mls-page__input::placeholder{ color:#938d83 !important; }
html.light-theme .mls-page__input-icon{ color:#938d83 !important; }
html.light-theme .mls-page__summary{ color:#5f5a52 !important; }
html.light-theme .mls-page__summary strong{ color:#1f1d1a !important; -webkit-text-fill-color:#1f1d1a !important; }
html.light-theme .mls-group__label{ color:#938d83 !important; border-bottom-color:#ece7dd !important; }
html.light-theme .mls-row{ color:#1f1d1a !important; border-bottom-color:#ece7dd !important; }
html.light-theme .mls-row__thumb{ background:#f0ebe1 !important; }
html.light-theme .mls-row__thumb-icon{ color:#938d83 !important; }
html.light-theme .mls-row__title{ color:#1f1d1a !important; -webkit-text-fill-color:#1f1d1a !important; }
html.light-theme .mls-row__excerpt{ color:#5f5a52 !important; }
html.light-theme .mls-row__meta{ color:#938d83 !important; }
html.light-theme .mls-page__empty,
html.light-theme .mls-page__no-results{ color:#5f5a52 !important; }
html.light-theme .mls-page__empty-title,
html.light-theme .mls-page__no-results-title,
html.light-theme .mls-page__no-results-title strong{ color:#1f1d1a !important; -webkit-text-fill-color:#1f1d1a !important; }
html.light-theme .mls-page__empty-sub,
html.light-theme .mls-page__no-results-sub{ color:#938d83 !important; }


/* =====================================================================
   16. SUPPLIERS ARCHIVE HERO  (suppliers.css) — neutralize the dark gradient
   ---------------------------------------------------------------------
   §4 already flips .ml-sup-hero__bg to a light block, but .ml-sup-hero__gradient
   keeps a dark bottom fade exactly where the (now-ink) title sits. Fade it to the
   page tone so the light hero + ink title stay readable.
   ===================================================================== */
html.light-theme .ml-sup-hero__gradient{ background:linear-gradient(to bottom, transparent 30%, rgba(249,249,249,.85) 100%) !important; }
html.light-theme .ml-sup-hero__title{ color:#1f1d1a !important; -webkit-text-fill-color:#1f1d1a !important; }
html.light-theme .ml-sup-hero__title em{ color:var(--ml-gold-dark, #8a5a1f) !important; -webkit-text-fill-color:var(--ml-gold-dark, #8a5a1f) !important; }
html.light-theme .ml-sup-hero__subtitle{ color:#5f5a52 !important; }


/* =====================================================================
   17. EMPTY SEARCH PAGE  (/search/ landing) — .ml-search-page, styled in
   CORE search.css with hardcoded-dark surfaces + !important on each. Flip
   the page, hero, search box and shortcut cards to light. Mirrors §15.
   ===================================================================== */
html.light-theme .ml-search-page{ background:#f9f9f9 !important; color:#1f1d1a !important; }
html.light-theme .ml-search-page .ml-hero{ background:linear-gradient(180deg,#ffffff 0%,#f4f1eb 100%) !important; border-bottom-color:#ece7dd !important; }
html.light-theme .ml-search-page .ml-hero h1{ color:#1f1d1a !important; }
html.light-theme .ml-search-page .ml-hero-sub{ color:#5f5a52 !important; }
html.light-theme .ml-search-page .ml-search-box{ background:#ffffff !important; border-color:#ece7dd !important; }
html.light-theme .ml-search-page .ml-search-box input{ color:#1f1d1a !important; }
html.light-theme .ml-search-page .ml-search-box input::placeholder{ color:#938d83 !important; }
html.light-theme .ml-search-page .ml-search-box svg{ stroke:#938d83 !important; }
html.light-theme .ml-search-page .ml-shortcuts{ background:#f9f9f9 !important; }
html.light-theme .ml-search-page .ml-shortcuts-label{ color:#6b6b6b !important; }
html.light-theme .ml-search-page .ml-card{ background:#ffffff !important; border-color:#ece7dd !important; }
html.light-theme .ml-search-page .ml-card:hover{ background:#f4f1eb !important; border-color:#DDB88B !important; }
html.light-theme .ml-search-page .ml-card-title{ color:#1f1d1a !important; }
html.light-theme .ml-search-page .ml-card-count{ color:#5f5a52 !important; }


/* =====================================================================
   18. SUBMIT-FORM DIFFICULTY CARD NAMES  (masluland-form.css) — the label
   text uses raw --ml-diff-* (amber ~2:1 on the white card). Darken per
   level for readable contrast in light mode (mirrors the badge scale).
   ===================================================================== */
html.light-theme .maslu-diff-card-v2--easy    .maslu-diff-card-v2__name{ color:#2e7d32 !important; }
html.light-theme .maslu-diff-card-v2--medium  .maslu-diff-card-v2__name{ color:#b26a00 !important; }
html.light-theme .maslu-diff-card-v2--hard    .maslu-diff-card-v2__name{ color:#c43c12 !important; }
html.light-theme .maslu-diff-card-v2--extreme .maslu-diff-card-v2__name{ color:#C62828 !important; }


/* =====================================================================
   19. SUPPLIERS ARCHIVE DIVIDERS  (suppliers.css) — the #222 / #2a2a2a
   borders render near-black on the light archive. Lighten to the page tone.
   ===================================================================== */
html.light-theme .ml-sup-section{ border-bottom-color:#e6e0d6 !important; }
html.light-theme .ml-sup-card__actions{ border-top-color:#e6e0d6 !important; }


/* =====================================================================
   20. REPORT-TRAIL PAGE  (page-report-trail.php) — the whole page is
   hardcoded-dark via a wp_head <style> block of .maslu-report-* classes,
   so the token flip can't reach it. Flip page, banners, cards, inputs and
   the new fields to the light palette. The SELECTED report-type card keeps
   its orange (#D85A30) accent in both themes. The submit button is brand
   GOLD in both themes (set in the template) so it is NOT touched here.
   Dark mode untouched.
   ===================================================================== */
html.light-theme .maslu-report-page{ background:#F9F9F9 !important; }
html.light-theme .maslu-report-hero__title{ color:#1f1d1a !important; }
html.light-theme .maslu-report-hero__sub{ color:#5f5a52 !important; }

/* Trail + user banners → white card tone, ink title, muted meta */
html.light-theme .maslu-report-trail-banner,
html.light-theme .maslu-report-user-banner{ background:#ffffff !important; border-color:#ece7dd !important; }
html.light-theme .maslu-report-trail-banner__name,
html.light-theme .maslu-report-user-info strong{ color:#1f1d1a !important; }
html.light-theme .maslu-report-trail-banner__label,
html.light-theme .maslu-report-user-info span{ color:#938d83 !important; }

/* Labels + all inputs/textarea → white surface, ink text, muted placeholder */
html.light-theme .maslu-report-trail-search-label,
html.light-theme .maslu-report-field label{ color:#5f5a52 !important; }
html.light-theme .maslu-report-trail-search-input,
html.light-theme .maslu-report-input,
html.light-theme .maslu-report-textarea{ background:#ffffff !important; border-color:#ece7dd !important; color:#1f1d1a !important; }
html.light-theme .maslu-report-trail-search-input::placeholder,
html.light-theme .maslu-report-input::placeholder,
html.light-theme .maslu-report-textarea::placeholder{ color:#938d83 !important; }

/* Report-type cards → white; hover keeps the orange hint; SELECTED keeps orange */
html.light-theme .maslu-report-card{ background:#ffffff !important; border-color:#ece7dd !important; box-shadow:0 1px 3px rgba(31,29,26,.06); }
html.light-theme .maslu-report-card:hover{ border-color:rgba(216,90,48,.4) !important; }
html.light-theme .maslu-report-card.selected{ border-color:#D85A30 !important; background:rgba(216,90,48,.07) !important; }
html.light-theme .maslu-report-card__title{ color:#1f1d1a !important; }
html.light-theme .maslu-report-card.selected .maslu-report-card__title{ color:#D85A30 !important; }
html.light-theme .maslu-report-card__sub{ color:#938d83 !important; }

/* New fields: upload button, recommended off-road box, help text, confirm check */
html.light-theme .maslu-report-file-btn{ background:#ffffff !important; border-color:#DDB88B !important; color:#8a5a1f !important; }
html.light-theme .maslu-report-file-btn:hover{ background:#faf6ef !important; }
html.light-theme .maslu-report-file-name{ color:#5f5a52 !important; }
html.light-theme .maslu-report-field--rec{ background:rgba(221,184,139,.14) !important; border-color:rgba(221,184,139,.6) !important; }
html.light-theme .maslu-report-field--rec label{ color:#8a5a1f !important; }
html.light-theme .maslu-report-help{ color:#6b6b6b !important; }
html.light-theme .maslu-report-check{ background:#ffffff !important; border-color:#ece7dd !important; }
html.light-theme .maslu-report-check span{ color:#1f1d1a !important; }

/* Faint note + success text */
html.light-theme .maslu-report-note{ color:#938d83 !important; }
html.light-theme .maslu-report-success h2{ color:#1f1d1a !important; }
html.light-theme .maslu-report-success p{ color:#5f5a52 !important; }

/* ================================================================
   "כלים ומדריכים" NAV DROPDOWN — LIGHT OVERRIDES
   Mirrors every hardcoded-dark panel rule from main.css so the light
   site never inherits a dark panel. Trigger text uses --light/--white
   (flipped by the token block above) so it needs no override here.
   ================================================================ */
html.light-theme .ml-nav__dd,
html.light-theme .ml-nav__flyout,
html.light-theme .ml-nav__flyout3{
  background:#fff !important;
  border-color:#ece7dd !important;
  box-shadow:0 8px 28px rgba(31,29,26,.14) !important;
}
html.light-theme .ml-nav__dd-link,
html.light-theme .ml-nav__subtrigger,
html.light-theme .ml-nav__brandtrigger{ color:#1f1d1a !important; }
html.light-theme .ml-nav__dd-link:hover,
html.light-theme .ml-nav__subtrigger:hover,
html.light-theme .ml-nav__brandtrigger:hover{ background:#f7f2ea !important; color:#1f1d1a !important; }
html.light-theme .ml-nav__dd-divider{ background:#efe9dd !important; }
html.light-theme .ml-nav__dd-empty{ color:#8a8578 !important; }

/* ── FIX (child-405): kill any light-mode <button> border/box on the trigger,
   keep a subtle dark-tint hover so it still reads as interactive. Scoped;
   this priority-999 file already wins over main.css. ── */
html.light-theme .ml-nav__links .ml-nav__ddtrigger{
  border:0 !important; outline:0; box-shadow:none !important; background:none !important;
}
html.light-theme .ml-nav__links .ml-nav__ddtrigger:hover,
html.light-theme .ml-nav__item--has-dd:hover .ml-nav__ddtrigger,
html.light-theme .ml-nav__item--has-dd:focus-within .ml-nav__ddtrigger{
  background:rgba(0,0,0,.05) !important; color:#1f1d1a !important;
}

/* ── FIX (child-406): light-mode mirror of the main.css accent-leak guard.
   Force the trigger onto the sibling nav-link colour (--light == #5f5a52) and kill
   the Elementor #CC3366 accent in rest/focus/active/tap. Priority-999 file +
   0,3,x specificity → out-ranks the kit's 0,1,0 button rule outright. ── */
html.light-theme .ml-nav__links .ml-nav__ddtrigger,
html.light-theme .ml-nav__links .ml-nav__ddtrigger:focus,
html.light-theme .ml-nav__links .ml-nav__ddtrigger:focus-visible,
html.light-theme .ml-nav__links .ml-nav__ddtrigger:active{
  color:var(--light) !important;          /* == sibling link #5f5a52 */
  border-color:transparent !important;
  outline:none !important;
  box-shadow:none !important;
  -webkit-tap-highlight-color:transparent !important;
}
html.light-theme .ml-nav__links .ml-nav__ddtrigger .ml-nav__caret{ border-top-color:currentColor !important; }
/* trigger hover — match the sibling nav-link hover EXACTLY (invisible white tint on
   the light bar + ink text), overriding the older child-405 grey-tint hover so the
   tools item behaves identically to every sibling <a>, nothing custom. */
html.light-theme .ml-nav__links .ml-nav__ddtrigger:hover,
html.light-theme .ml-nav__item--has-dd:hover .ml-nav__ddtrigger,
html.light-theme .ml-nav__item--has-dd:focus-within .ml-nav__ddtrigger{
  background:rgba(255,255,255,.07) !important; color:var(--white) !important;
}

/* Dropdown rows — light: keep the dark ink, strip any pink focus/active/tap accent */
html.light-theme .ml-nav__item--has-dd .ml-nav__dd-link,
html.light-theme .ml-nav__item--has-dd .ml-nav__subtrigger,
html.light-theme .ml-nav__item--has-dd .ml-nav__brandtrigger,
html.light-theme .ml-nav__item--has-dd .ml-nav__dd-link:focus,
html.light-theme .ml-nav__item--has-dd .ml-nav__subtrigger:focus,
html.light-theme .ml-nav__item--has-dd .ml-nav__brandtrigger:focus,
html.light-theme .ml-nav__item--has-dd .ml-nav__dd-link:focus-visible,
html.light-theme .ml-nav__item--has-dd .ml-nav__subtrigger:focus-visible,
html.light-theme .ml-nav__item--has-dd .ml-nav__brandtrigger:focus-visible,
html.light-theme .ml-nav__item--has-dd .ml-nav__dd-link:active,
html.light-theme .ml-nav__item--has-dd .ml-nav__subtrigger:active,
html.light-theme .ml-nav__item--has-dd .ml-nav__brandtrigger:active{
  color:#1f1d1a !important;
  border-color:transparent !important;
  outline:none !important;
  box-shadow:none !important;
  -webkit-tap-highlight-color:transparent !important;
}
html.light-theme .ml-nav__item--has-dd .ml-nav__dd-link:hover,
html.light-theme .ml-nav__item--has-dd .ml-nav__subtrigger:hover,
html.light-theme .ml-nav__item--has-dd .ml-nav__brandtrigger:hover{
  background:#f7f2ea !important; color:#1f1d1a !important;   /* warm cream, in-palette */
}
html.light-theme .ml-nav__item--has-dd .ml-nav__arrow{ border-inline-start-color:currentColor !important; } /* colored side moved to inline-start after the RTL flip */
