/* v12-family-mode.css — Family Mode (one tap, whole-site kid-safe).
   Follows site.css conventions (.btn, .btnrow, .muted, .card) and the
   bright palette (gold/violet/pink). Desktop and phone.
   The hiding itself lives here as well as in family-mode.js: the
   attribute selectors below cover sponsor blocks, explicit hooks and
   sportsbook links with no JS at all, so they stay hidden even if a
   later module re-renders them. The JS adds .ew-family-hidden to
   nodes it finds by text/heading (game-card lines, casino cards). */

/* --- the toggle (nav/dock) --- */
.ew-family-toggle{white-space:nowrap}
.ew-family-toggle.is-on{background:#8338ec;border-color:#8338ec;color:#fff;font-weight:700}
.ew-family-toggle:focus-visible{outline:2px solid #8338ec;outline-offset:2px}
/* Fallback if a page has no .topnav at all: fixed top-right. */
.ew-family-toggle-fallback{position:fixed;top:10px;right:10px;z-index:90}

/* --- "Family Mode is on" indicator pill (always visible while on) --- */
.ew-family-pill{position:fixed;left:12px;bottom:12px;z-index:90;
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  max-width:calc(100vw - 24px);padding:8px 10px;border-radius:999px;
  background:#8338ec;color:#fff;font-size:13px;font-weight:700;
  box-shadow:0 4px 18px rgba(0,0,0,.35)}
.ew-family-pill[hidden]{display:none}
.ew-family-pill-off{background:#fff;color:#8338ec;border:0;border-radius:999px;
  padding:6px 12px;font-weight:700;min-height:0;cursor:pointer}

/* --- "Hidden by Family Mode" notes left where a section was --- */
.ew-family-note{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin-top:12px;border:2px dashed #8338ec;background:#f3efff;
  color:#22202e;font-size:14px}
.ew-family-note .ew-family-note-off{margin-left:auto}

/* --- hiding: everything below applies only while Family Mode is on --- */
.ew-family-hidden{display:none !important}

html.ew-family-on [data-sponsor="fanduel"],
html.ew-family-on [data-sponsor="kalshi"],
html.ew-family-on .ew-fanduel,
html.ew-family-on .ew-kalshi,
html.ew-family-on [data-family-hide],
html.ew-family-on [data-mature],
html.ew-family-on [data-21plus],
html.ew-family-on [data-bet],
html.ew-family-on a[href*="sportsbook"],
html.ew-family-on .ew-family-hidden{display:none !important}

@media (max-width:640px){
  .ew-family-toggle{padding:8px 10px;font-size:13px}
  .ew-family-pill{left:8px;bottom:8px;font-size:12px;padding:7px 9px}
  .ew-family-note .ew-family-note-off{margin-left:0}
}
