/*
Theme Name: Manifested Fit Blog
Theme URI: https://manifestedfit.com/blog
Description: Brand child theme for the Manifested Fit blog. Inherits Twenty Twenty-Five and applies the Manifested Fit palette (teal/green/plum), Inter typography, and the magazine front page (hero slider, post cards, wellness news).
Author: Manifested Fit
Template: twentytwentyfive
Version: 2.3.1
Requires at least: 6.6
Tested up to: 6.8
License: GNU General Public License v2 or later
Text Domain: manifestedfit-blog
*/

/* Brand tokens (mirror of the flat site) */
:root {
  --mf-cream: #fbfaf4;
  --mf-paper: #ffffff;
  --mf-ink: #183833;
  --mf-muted: #5d706b;
  --mf-teal: #08736f;
  --mf-teal-dark: #065d59;
  --mf-green: #4d9a57;
  --mf-leaf: #d8ead1;
  --mf-plum: #8060bb;
  --mf-line: #dbe5dd;
  --mf-shadow: 0 10px 26px rgba(8, 115, 111, 0.22);
  --mf-shadow-soft: 0 8px 30px rgba(24, 56, 51, 0.10);
  --mf-radius: 18px;
  --mf-serif: "Fraunces", Georgia, serif;
  --mf-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  font-family: var(--mf-sans);
}

/* Layout shell */
.mf-shell {
  max-width: 1160px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px;
  padding-right: 20px;
}
.mf-main { padding-bottom: 0; }
.mf-section { margin-top: 3.2rem; }

/* Buttons */
.mf-btn {
  display: inline-block;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.mf-btn:hover { transform: translateY(-1px); }
.mf-btn-solid { background: var(--mf-teal); color: #fff !important; box-shadow: var(--mf-shadow); }
.mf-btn-solid:hover { background: var(--mf-teal-dark); }
.mf-btn-light { background: #fff; color: var(--mf-teal) !important; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.mf-btn-light:hover { background: var(--mf-leaf); }

/* ---------------------------------------------------------------- header */
.mf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mf-line);
}
.mf-header-row {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  min-height: 68px;
}
.mf-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--mf-ink);
}
.mf-logo-img {
  width: auto;
  height: 44px;
  display: block;
}
.mf-footer .mf-logo-img { height: 52px; }
.mf-logo-word {
  font-family: var(--mf-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.mf-logo-word em { font-style: italic; color: var(--mf-teal); }
.mf-nav {
  display: flex;
  gap: 1.15rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.mf-nav a {
  color: var(--mf-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.mf-nav a:hover { color: var(--mf-teal); border-bottom-color: var(--mf-green); }
.mf-header-cta { white-space: nowrap; }
.mf-nav-toggle { display: none; }

@media (max-width: 880px) {
  .mf-nav { display: none; }
  .mf-header-cta { margin-left: auto; }
}

/* ------------------------------------------------------------ hero slider */
.mf-hero {
  position: relative;
  margin-top: 1.6rem;
  border-radius: calc(var(--mf-radius) + 6px);
  overflow: hidden;
  box-shadow: var(--mf-shadow-soft);
}
.mf-slides { position: relative; min-height: clamp(380px, 52vw, 520px); }
.mf-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}
.mf-slide.is-active { opacity: 1; pointer-events: auto; }
.mf-slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 42, 39, 0.88) 0%, rgba(9, 42, 39, 0.35) 55%, rgba(9, 42, 39, 0.05) 100%);
}
.mf-slide-inner {
  position: relative;
  padding: clamp(1.4rem, 4vw, 3rem);
  max-width: 720px;
}
.mf-slide-title { margin: 0.7rem 0 0.5rem; }
.mf-slide-title a {
  font-family: var(--mf-serif);
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  font-weight: 700;
}
.mf-slide-title a:hover { text-decoration: underline; text-decoration-color: var(--mf-green); }
.mf-slide-excerpt {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1rem;
  font-size: 1rem;
  max-width: 56ch;
}
.mf-slide-meta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.mf-slide-meta .mf-byline { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; font-weight: 600; }

.mf-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--mf-ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.mf-arrow:hover { background: #fff; }
.mf-prev { left: 14px; }
.mf-next { right: 14px; }

.mf-dots {
  position: absolute;
  bottom: 16px;
  right: 22px;
  z-index: 5;
  display: flex;
  gap: 8px;
}
.mf-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.mf-dot:hover { background: rgba(255, 255, 255, 0.8); }
.mf-dot.is-active {
  background: #fff;
  transform: scale(1.25);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

@media (max-width: 640px) {
  .mf-arrow { display: none; }
  .mf-dots { left: 0; right: 0; justify-content: center; }
}

/* --------------------------------------------------------------- sections */
.mf-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.mf-section-title {
  font-family: var(--mf-serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0;
}
.mf-section-sub { color: var(--mf-muted); margin: 0; font-size: 0.95rem; }

.mf-pill {
  display: inline-block;
  background: var(--mf-leaf);
  color: var(--mf-teal-dark) !important;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  text-decoration: none;
}
.mf-pill:hover { background: var(--mf-green); color: #fff !important; }

/* ------------------------------------------------------------- post cards */
.mf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}
.mf-card {
  background: var(--mf-paper);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mf-shadow-soft);
}
.mf-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--mf-leaf);
}
.mf-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.mf-card:hover .mf-card-media img { transform: scale(1.05); }
.mf-card-body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: 0.55rem; }
.mf-card-title { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.mf-card-title a { color: var(--mf-ink); text-decoration: none; }
.mf-card-title a:hover { color: var(--mf-teal); }
.mf-card-excerpt { margin: 0; color: var(--mf-muted); font-size: 0.93rem; }
.mf-card-meta { margin-top: auto; padding-top: 0.4rem; }
.mf-byline { color: var(--mf-muted); font-size: 0.85rem; font-weight: 600; }

/* ------------------------------------------------------------ news band */
.mf-news-band {
  margin-top: 3.4rem;
  background: linear-gradient(180deg, #eef5ec 0%, var(--mf-cream) 100%);
  border-top: 1px solid var(--mf-line);
  border-bottom: 1px solid var(--mf-line);
  padding: 2.6rem 0 3rem;
}
.mf-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.mf-news-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--mf-paper);
  border: 1px solid var(--mf-line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.mf-news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--mf-shadow-soft);
  border-color: var(--mf-green);
}
.mf-news-source {
  color: var(--mf-plum);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mf-news-title { color: var(--mf-ink); font-weight: 700; font-size: 0.97rem; line-height: 1.35; }
.mf-news-time { color: var(--mf-muted); font-size: 0.8rem; font-weight: 600; margin-top: auto; }
/* Headline we have rewritten ourselves: the card links to our post instead. */
.mf-news-card-ours {
  border-color: var(--mf-teal);
  box-shadow: inset 3px 0 0 var(--mf-teal);
}
.mf-news-card-ours .mf-news-time { color: var(--mf-teal); font-weight: 700; }

/* -------------------------------------------- share row + follow signature */
.mf-share, .mf-follow {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  background: var(--mf-paper);
}
.mf-follow {
  margin-top: 0.9rem;
  background: linear-gradient(180deg, #eef5ec 0%, var(--mf-cream) 100%);
}
.mf-share-label {
  display: block;
  color: var(--mf-teal-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
.mf-social-row { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.mf-social-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--mf-line);
  background: #fff;
  color: var(--mf-teal);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.mf-social-icon:hover {
  transform: translateY(-2px);
  background: var(--mf-teal);
  color: #fff;
}
.mf-copy-link.is-copied { background: var(--mf-green); color: #fff; border-color: var(--mf-green); }
.mf-follow-tag { margin: 0.7rem 0 0; color: var(--mf-muted); font-size: 0.9rem; }
.mf-follow-tag a { color: var(--mf-teal); font-weight: 700; }
.mf-footer-social { margin-top: 0.9rem; }
.mf-footer-social .mf-social-icon {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
}
.mf-footer-social .mf-social-icon:hover { background: var(--mf-teal); border-color: var(--mf-teal); color: #fff; }

/* -------------------------------------------------------------- CTA band */
.mf-cta-band {
  margin-top: 3.4rem;
  background:
    radial-gradient(1000px 300px at 85% -20%, rgba(77, 154, 87, 0.35), transparent),
    linear-gradient(135deg, var(--mf-teal) 0%, var(--mf-teal-dark) 100%);
  padding: 3rem 0;
}
.mf-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.mf-cta-inner h2 {
  color: #fff;
  font-family: var(--mf-serif);
  margin: 0 0 0.3rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}
.mf-cta-inner p { color: rgba(255, 255, 255, 0.85); margin: 0; }

/* ---------------------------------------------------------------- footer */
.mf-footer {
  background: var(--mf-ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 1.6rem;
}
.mf-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 700px) { .mf-footer-grid { grid-template-columns: 1fr; } }
.mf-logo-foot, .mf-logo-foot .mf-logo-word { color: #fff; }
.mf-footer-tag { color: rgba(255, 255, 255, 0.6); margin-top: 0.6rem; font-size: 0.92rem; }
.mf-footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.7rem;
}
.mf-footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  padding: 0.22rem 0;
  font-size: 0.92rem;
}
.mf-footer-col a:hover { color: var(--mf-leaf); }
.mf-footer-legal {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* -------------------------------------------- single posts & misc extras */
.wp-block-button__link { box-shadow: var(--mf-shadow); }
.wp-block-button__link:hover { box-shadow: 0 12px 30px rgba(8, 115, 111, 0.28); }
.wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--mf-teal);
  background: #fff;
  border: 1px solid var(--mf-line);
  box-shadow: none;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { color: #fff; background: var(--mf-teal); }

.mf-eyebrow {
  color: var(--mf-teal);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.4rem;
}
.mf-steps li::marker { color: var(--mf-green); font-weight: 800; }

.wp-block-embed-youtube iframe { width: 100%; border-radius: 10px; }

/* Headings site-wide pick up the serif display face */
h1, h2, h3, .wp-block-post-title { font-family: var(--mf-serif); }

/* --------------------------------------- "More for you" grid after posts */
.mf-more {
  margin-top: 2.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mf-line);
}
.mf-more-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
}
.mf-more-grid .mf-card-title { font-size: 1rem; }
.mf-more-grid .mf-card-body { padding: 0.9rem 1rem 1.05rem; gap: 0.45rem; }
.mf-pill-sponsored {
  background: #efe9fa;
  color: var(--mf-plum) !important;
}
.mf-card-sponsored { border-color: #e4dcf2; }
.mf-card-sponsored .mf-card-media { aspect-ratio: 16 / 9; background: #f4f1fa; }
.mf-card-sponsored .mf-card-media img { object-fit: cover; }
.mf-more-disclosure {
  margin: 0.9rem 0 0;
  color: var(--mf-muted);
  font-size: 0.75rem;
}

/* --------------------------- skin preview switcher (logged-in editors) */
.mf-skinbar {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(24, 56, 51, 0.92);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-family: var(--mf-sans);
  font-size: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.mf-skinbar-label { opacity: 0.65; font-weight: 700; text-transform: uppercase; font-size: 10px; letter-spacing: 0.05em; }
.mf-skinbar-btn {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  opacity: 0.75;
}
.mf-skinbar-btn:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }
.mf-skinbar-btn.is-active { opacity: 1; background: var(--mf-teal); }

/* ---------------------------------------------------- skin: "msn" (feed) */
/* Denser, flatter, sans-serif feed look — MSN/Start-style. Preview only:
   the body class is added solely for logged-in editors. */
body.mf-skin-msn { background: #f2f1ef; }
.mf-skin-msn .mf-section-title,
.mf-skin-msn .mf-card-title,
.mf-skin-msn h1, .mf-skin-msn h2, .mf-skin-msn h3 { font-family: var(--mf-sans); }
.mf-skin-msn .mf-section-title { font-size: 1.4rem; font-weight: 800; }
.mf-skin-msn .mf-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.mf-skin-msn .mf-card,
.mf-skin-msn .mf-news-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 1.6px 3.6px rgba(0, 0, 0, 0.12), 0 0.3px 0.9px rgba(0, 0, 0, 0.07);
}
.mf-skin-msn .mf-card-body { padding: 0.8rem 0.95rem 1rem; gap: 0.4rem; }
.mf-skin-msn .mf-card-title { font-size: 0.98rem; font-weight: 700; line-height: 1.35; }
.mf-skin-msn .mf-grid .mf-card-excerpt { display: none; }
.mf-skin-msn .mf-hero { border-radius: 12px; }
.mf-skin-msn .mf-header { background: rgba(242, 241, 239, 0.94); }
.mf-skin-msn .mf-news-band { background: transparent; border: none; }

/* ------------------------------------------------------- skin: "yahoo" */
/* White page, purple accents, bold underline-on-hover headlines. */
body.mf-skin-yahoo {
  background: #fff;
  --mf-teal: #6001d2;
  --mf-teal-dark: #4a02a0;
  --mf-green: #7759ff;
  --mf-leaf: #ece5ff;
  --mf-plum: #6001d2;
  --mf-cream: #ffffff;
  --mf-shadow: 0 10px 26px rgba(96, 1, 210, 0.20);
}
.mf-skin-yahoo .mf-header { background: rgba(255, 255, 255, 0.95); }
.mf-skin-yahoo .mf-card {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--mf-line);
}
.mf-skin-yahoo .mf-card:hover { transform: none; box-shadow: none; }
.mf-skin-yahoo .mf-card-media { border-radius: 12px; }
.mf-skin-yahoo .mf-card-title { font-family: var(--mf-sans); font-weight: 800; }
.mf-skin-yahoo .mf-card-title a:hover { color: var(--mf-teal); text-decoration: underline; }
.mf-skin-yahoo .mf-news-band { background: #f7f5ff; }
