/* SFM magazine ONE-FAMILY look PREVIEW (Kim, Nov 21 2026).
   Same header height, logo size, buttons, link colour and font as the Forums + Network.
   Tokens: sfm-palette-tokens.css. Everything is scoped to html.sfm-pal (preview switch).
   html.sfm-school = school pages (courses, shop, schools, educators): body keeps the wine look. */

/* ---------- font: one clean sans-serif everywhere (no Roboto / Merriweather) ---------- */
html.sfm-pal .sfh, html.sfm-pal .sfh *:not(svg):not(path):not(circle), html.sfm-pal footer.sfmf, html.sfm-pal footer.sfmf *:not(svg):not(path),
html.sfm-pal:not(.sfm-school) body,
html.sfm-pal:not(.sfm-school) :is(h1,h2,h3,h4,h5,h6,p,li,a,td,th,label,input,button,select,textarea,blockquote,figcaption,small,strong,b,em,.elementor-heading-title),
html.sfm-pal:not(.sfm-school) :is(span,div):not([class*="icon"]):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.dashicons) {
  font-family: var(--sfm-font) !important;
}
/* school pages: header + footer join the family, page body is left exactly as it is (wine look) */

/* ---------- header: white, 64px logo row + 46px white menu row (like Forums / Network) ---------- */
html.sfm-pal .sfh { --r:#1d2129; --rd:#1d2129; --ink:#1d2129; --mut:#6d6f7a; --rule:#e6e8ec; --wash:#f6f8fa; --lift:64px; background:#fff; border-bottom:1px solid var(--sfm-line); }
html.sfm-pal .sfh-strip { display:none !important; }          /* date + "Join free" line: Sign Up button already says it */
html.sfm-pal .sfh-bar { height:var(--sfm-header-h); }
html.sfm-pal .sfh-logo img { height:var(--sfm-logo-h); }
html.sfm-pal .sfh-navbar { background:#fff !important; color:var(--sfm-ink); border-top:1px solid var(--sfm-line); }
html.sfm-pal .sfh-navbar .sfh-in { height:var(--sfm-nav-h); }
html.sfm-pal .sfh-nav { align-self:center; }
html.sfm-pal .sfh-nav > a, html.sfm-pal .sfh-nav .sra-mm-top, html.sfm-pal .sfh-nav > * > a, html.sfm-pal .sfh-nav summary {
  color:var(--sfm-ink-2) !important; font-weight:600 !important; border:0 !important; border-radius:var(--sfm-radius-sm); }
html.sfm-pal .sfh-nav > a, html.sfm-pal .sfh-nav > * > a { height:36px; }
html.sfm-pal .sfh-nav a:hover, html.sfm-pal .sfh-nav summary:hover, html.sfm-pal .sfh-nav [open] > summary { background:var(--sfm-page) !important; color:var(--sfm-ink) !important; }
html.sfm-pal .sfh-nav a.on, html.sfm-pal .sfh-nav .on > a, html.sfm-pal .sfh-nav [aria-current="page"] { background:var(--sfm-active) !important; color:var(--sfm-ink) !important; }
html.sfm-pal .sfh-nav svg { color:var(--sfm-muted); }
html.sfm-pal .sfh-ol { color:var(--sfm-muted); }

/* "our other sites" pills: dark text on white, small solid icon tiles stay */
html.sfm-pal .sfh .sfh-x.sfh-p { color:var(--sfm-ink) !important; font-weight:600 !important; border-radius:var(--sfm-radius-sm); }
html.sfm-pal .sfh .sfh-x.sfh-p:hover { background:var(--sfm-page) !important; }
html.sfm-pal .sfh .sfh-x.sfh-p i { box-shadow:none !important; width:26px; height:26px; }
html.sfm-pal .sfh .sfh-x.sfh-p.chl { background:var(--sfm-tile-yellow) !important; color:#5c4300 !important; box-shadow:none !important; }
html.sfm-pal .sfh .sfh-x.sfh-p.chl:hover { background:#fde9a6 !important; }
html.sfm-pal .sfh .sfh-x.sfh-p.chl i { background:var(--sfm-icon-yellow) !important; color:#fff !important; }

/* topic chips row */
html.sfm-pal .sfh-chips { background:#fff; border-top:1px solid var(--sfm-line); }
html.sfm-pal .sfh-chips .sfh-in { padding-top:7px; padding-bottom:7px; }
html.sfm-pal .sfh-chips a { color:var(--sfm-ink-2) !important; border:1px solid var(--sfm-line) !important; background:#fff; font-weight:600 !important; }
html.sfm-pal .sfh-chips a:hover, html.sfm-pal .sfh-chips a.on { color:var(--sfm-ink) !important; background:var(--sfm-active) !important; border-color:#cfe3fb !important; }
html.sfm-pal .sfh-chips a.dash { color:#fff !important; background:var(--sfm-lead-magazine) !important; border-color:var(--sfm-lead-magazine) !important; }

/* buttons: same shape as Forums / Network (8px corners, 40px tall, 600 weight); magazine lead = charcoal */
html.sfm-pal .sfh-btn { height:var(--sfm-btn-h); padding:var(--sfm-btn-pad); border-radius:var(--sfm-radius-sm) !important; border-width:1px !important; font-weight:600 !important; font-size:15px !important; }
html.sfm-pal .sfh-btn.red { background:var(--sfm-lead-magazine) !important; border-color:var(--sfm-lead-magazine) !important; color:#fff !important; }
html.sfm-pal .sfh-btn.red:hover { background:var(--sfm-lead-magazine-hover) !important; border-color:var(--sfm-lead-magazine-hover) !important; }
html.sfm-pal .sfh-btn.ghost { background:#fff !important; color:var(--sfm-ink) !important; border-color:var(--sfm-line-strong) !important; }
html.sfm-pal .sfh-btn.ghost:hover { background:var(--sfm-page) !important; }
html.sfm-pal .sfh-srch { border-color:var(--sfm-line-strong); background:var(--sfm-page); }
html.sfm-pal .sfh-srch:focus-within { background:#fff; border-color:var(--sfm-link); }
html.sfm-pal .sfh-srch button:hover { background:#000 !important; }
html.sfm-pal .sfh-me summary img { box-shadow:0 0 0 2px var(--sfm-line) !important; }
html.sfm-pal .sfh-pop a:hover, html.sfm-pal .sfh-drawer a:hover { color:var(--sfm-ink) !important; background:var(--sfm-active) !important; }
html.sfm-pal .sfh-pop a.lo { color:var(--sfm-muted) !important; }
html.sfm-pal .sfh-hi a { color:var(--sfm-link) !important; }

@media (max-width:960px) { html.sfm-pal .sfh { --lift:0px; } }
@media (max-width:640px) {
  html.sfm-pal .sfh-bar { height:58px; }
  html.sfm-pal .sfh-logo img { height:var(--sfm-logo-h-phone); }
  html.sfm-pal .sfh-act .sfh-btn { height:36px; padding:0 14px; font-size:14px !important; }
  html.sfm-pal .sfh-act .sfh-btn.ghost { background:var(--sfm-lead-magazine) !important; color:#fff !important; border-color:var(--sfm-lead-magazine) !important; }
}

/* ---------- links: one blue everywhere in reading text ---------- */
html.sfm-pal :is(.elementor-widget-theme-post-content,.entry-content,.elementor-widget-text-editor,.ast-archive-description,.sfm-fb) :is(p,li,td,figcaption) a:not([class*="btn"]):not([class*="button"]) { color:var(--sfm-link) !important; }
html.sfm-pal :is(.elementor-widget-theme-post-content,.entry-content,.elementor-widget-text-editor) :is(p,li,td) a:not([class*="btn"]):not([class*="button"]):hover { color:var(--sfm-link-hover) !important; }

/* ---------- article pages: no black bands; light grey title area, dark title ---------- */
html.sfm-pal:not(.sfm-school) .elementor-location-single > .elementor-section.elementor-top-section:first-child,
html.sfm-pal:not(.sfm-school) .elementor-location-single > .elementor-section.elementor-element-3d187ba1 {
  background:var(--sfm-page) !important; background-image:none !important; color:var(--sfm-ink) !important; }
html.sfm-pal:not(.sfm-school) .elementor-location-single > .elementor-section.elementor-top-section:first-child { border-bottom:1px solid var(--sfm-line); }
html.sfm-pal:not(.sfm-school) .elementor-location-single > .elementor-section.elementor-element-3d187ba1 { border-top:1px solid var(--sfm-line); }
html.sfm-pal:not(.sfm-school) .elementor-location-single > .elementor-section:is(:first-child,.elementor-element-3d187ba1) > .elementor-background-overlay { display:none !important; }
html.sfm-pal:not(.sfm-school) .elementor-location-single > .elementor-section:is(:first-child,.elementor-element-3d187ba1) :is(h1,h2,h3,h4,p,span,li,.elementor-heading-title) { color:var(--sfm-ink) !important; }
html.sfm-pal:not(.sfm-school) .elementor-location-single > .elementor-section:first-child a { color:var(--sfm-ink-2) !important; }
html.sfm-pal:not(.sfm-school) .elementor-location-single > .elementor-section:first-child a:hover { color:var(--sfm-link) !important; }
html.sfm-pal:not(.sfm-school) .elementor-location-single h1.elementor-heading-title { font-weight:800 !important; letter-spacing:-.01em; }
html.sfm-pal:not(.sfm-school) .elementor-location-single > .elementor-section:first-child :is(.elementor-share-btn,.elementor-social-icon,.elementor-icon) {
  background:#fff !important; color:var(--sfm-ink) !important; border:1px solid var(--sfm-line-strong) !important; border-radius:var(--sfm-radius-sm) !important; }
html.sfm-pal:not(.sfm-school) .elementor-location-single > .elementor-section:first-child :is(.elementor-share-btn,.elementor-social-icon,.elementor-icon) :is(svg,i) { fill:var(--sfm-ink) !important; color:var(--sfm-ink) !important; }

/* sidebar cards on articles */
html.sfm-pal .sfm-fb, html.sfm-pal .elementor-location-single .elementor-widget-sidebar .widget { border:1px solid var(--sfm-line); border-radius:var(--sfm-radius); }

/* ---------- page background (archives, search, pages): light grey page, white cards ---------- */
html.sfm-pal:not(.sfm-school) body:is(.archive,.search,.blog) { background:var(--sfm-page) !important; }
html.sfm-pal:not(.sfm-school) body:is(.archive,.search,.blog) .site-content { background:transparent !important; }

/* ---------- wine is school-only: recolour stray wine buttons outside school pages ---------- */
html.sfm-pal:not(.sfm-school) a.r[style*="7a1f2b"], html.sfm-pal:not(.sfm-school) .sfm-cfs a.r { background:var(--sfm-lead-magazine) !important; }

/* article title area: compact (no tall band, no card overlapping it) */
html.sfm-pal:not(.sfm-school) .elementor-location-single > .elementor-section.elementor-top-section:first-child { padding:30px 0 26px !important; }
html.sfm-pal:not(.sfm-school) .elementor-location-single > .elementor-section.elementor-top-section:nth-child(2) { margin-top:28px !important; }
html.sfm-pal:not(.sfm-school) .elementor-location-single > .elementor-section.elementor-top-section:nth-child(2) > .elementor-container > .elementor-column:first-child > .elementor-widget-wrap { margin-top:0 !important; box-shadow:none !important; border:1px solid var(--sfm-line); border-radius:var(--sfm-radius); }

/* footer: white with a hairline on top (like Forums / Network), muted links */
html.sfm-pal footer.sfmf { background:#fff !important; border-top:1px solid var(--sfm-line); color:var(--sfm-muted) !important; }
html.sfm-pal footer.sfmf .sfmf-col-title { color:var(--sfm-ink) !important; }
html.sfm-pal footer.sfmf :is(p,span,li) { color:var(--sfm-muted) !important; }
html.sfm-pal footer.sfmf a:not(.sfmf-logo):not(.sfsoc a):not([class~="fb"]):not([class~="ig"]):not([class~="tt"]):not([class~="yt"]):not([class~="x"]):not([class~="li"]) { color:var(--sfm-ink-2) !important; }
html.sfm-pal footer.sfmf a:not(.sfmf-logo):hover { color:var(--sfm-link) !important; }
html.sfm-pal footer.sfmf .sfmf-logo { background:transparent !important; padding-left:0 !important; box-shadow:none !important; }
html.sfm-pal footer.sfmf .sfsoc a, html.sfm-pal footer.sfmf .sfmf-social a { background:var(--sfm-page) !important; border:1px solid var(--sfm-line); }
html.sfm-pal footer.sfmf .sfmf-bottom { border-top:1px solid var(--sfm-line) !important; background:#fff !important; }

/* home (sfm-home-news.php): links blue, category kickers blue, main buttons charcoal; red stays only as thin bars */
html.sfm-pal main.nw :is(.sec-h a,.nh a,p.sfact a,.sfst a.go) { color:var(--sfm-link) !important; }
html.sfm-pal main.nw :is(.sec-h a,.nh a,p.sfact a,.sfst a.go):hover { color:var(--sfm-link-hover) !important; }
html.sfm-pal main.nw span.k:not(.m .k), html.sfm-pal main.nw span.mn { color:var(--sfm-link) !important; }
html.sfm-pal main.nw a.btn.red, html.sfm-pal main.nw .bt a.r { background:var(--sfm-lead-magazine) !important; border-color:var(--sfm-lead-magazine) !important; color:#fff !important; border-radius:var(--sfm-radius-sm) !important; }
html.sfm-pal main.nw a.btn.red:hover, html.sfm-pal main.nw .bt a.r:hover { background:#000 !important; }

/* article lists (Story Grid archives, search): white lead card, blue labels, charcoal buttons */
html.sfm-pal:not(.sfm-school) .sg-k { color:var(--sfm-link) !important; }
html.sfm-pal:not(.sfm-school) article.sg-lead { background:#fff !important; color:var(--sfm-ink) !important; border:1px solid var(--sfm-line) !important; box-shadow:none !important; }
html.sfm-pal:not(.sfm-school) article.sg-lead :is(.sg-t,.sg-t a,.sg-body) { color:var(--sfm-ink) !important; }
html.sfm-pal:not(.sfm-school) article.sg-lead :is(.sg-x,.sg-m,.sg-m *) { color:var(--sfm-muted) !important; }
html.sfm-pal:not(.sfm-school) :is(a.sg-go,.sg-pages-links a.page-numbers.next,.sfm-search--archive button) { background:var(--sfm-lead-magazine) !important; border-color:var(--sfm-lead-magazine) !important; color:#fff !important; border-radius:var(--sfm-radius-sm) !important; }
html.sfm-pal:not(.sfm-school) :is(a.sg-go,.sg-pages-links a.page-numbers.next):hover { background:#000 !important; }
@media (max-width:767px) {
  html.sfm-pal:not(.sfm-school) .elementor-location-single > .elementor-section.elementor-top-section:first-child { padding:16px 0 14px !important; }
  html.sfm-pal:not(.sfm-school) .elementor-location-single > .elementor-section.elementor-top-section:first-child > .elementor-container > .elementor-column > .elementor-widget-wrap { padding:8px 16px !important; }
  html.sfm-pal:not(.sfm-school) .elementor-location-single > .elementor-section.elementor-top-section:first-child .elementor-widget:not(:last-child) { margin-bottom:10px !important; }
  html.sfm-pal:not(.sfm-school) .elementor-location-single > .elementor-section.elementor-top-section:nth-child(2) { margin-top:14px !important; }
}

/* Casting & Crew hub: red buttons -> charcoal (thin red card edge stays) */
html.sfm-pal:not(.sfm-school) a.sfm-post-btn { background:var(--sfm-lead-magazine) !important; color:#fff !important; border-radius:var(--sfm-radius-sm) !important; }
html.sfm-pal:not(.sfm-school) a.sfm-post-btn:hover { background:#000 !important; }
html.sfm-pal:not(.sfm-school) .sfm-post-card { border-radius:var(--sfm-radius) !important; border-left-width:4px !important; border-left-color:var(--sfm-red) !important; }
