/*
Theme Name: MagFéminin Éditorial
Theme URI: https://magfeminin.com/
Author: MagFéminin
Description: Thème magazine féminin Full Site Editing compatible Gutenberg.
Version: 10.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: magfeminin
*/
:root{--wine:#782438;--rose:#e8abb5;--blush:#f9e7e6;--cream:#fffaf7;--ink:#241c1e}body{font-family:Arial,sans-serif;color:var(--ink);background:var(--cream)}.wp-site-blocks{overflow:hidden}a{transition:color .2s;text-decoration:none}a:hover{color:#bd596f}h1,h2,h3,.wp-block-post-title{font-family:Georgia,'Times New Roman',serif;letter-spacing:-.025em}.mf-header{border-bottom:1px solid #f0dcdb;background:#fff}.mf-header .wp-block-site-title{font-family:Georgia,serif;font-size:2.4rem;font-weight:700;line-height:1}.mf-header .wp-block-site-title a{color:var(--wine)}.mf-nav{font-size:.85rem;font-weight:700}.mf-main{max-width:1260px;margin:auto;padding:0 20px}.mf-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eab7bc;margin:38px 0 20px;padding-bottom:9px}.mf-heading h2{color:var(--wine);font-size:2rem;margin:0}.mf-heading a{font-size:.82rem;color:var(--wine)}.mf-hero{display:grid;grid-template-columns:1.65fr 1fr;gap:12px;margin-top:16px}.mf-hero-right{display:grid;gap:12px}.mf-hero-card{position:relative;overflow:hidden;min-height:215px;border-radius:7px;background:#f3dbdc}.mf-hero-feature{min-height:435px}.mf-hero-card img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;transition:transform .4s}.mf-hero-card:hover img{transform:scale(1.035)}.mf-hero-content{position:absolute;bottom:0;left:0;right:0;padding:30px;color:white;background:linear-gradient(transparent,rgba(37,12,20,.86))}.mf-hero-content h2{font-size:clamp(1.5rem,2.5vw,2.65rem);margin:8px 0}.mf-hero-right h2{font-size:1.45rem}.mf-tag{font-size:.66rem;letter-spacing:.08em;text-transform:uppercase;background:#f9cdd1;color:var(--wine);display:inline-block;padding:5px 9px;border-radius:3px;font-weight:bold}.mf-hero a{color:inherit}.mf-deck{text-align:center;margin:28px auto 20px}.mf-deck h2{font-size:2.3rem;margin:0}.mf-deck p{margin:8px 0;color:#65555a}.mf-cats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.mf-cat{background:white;border:1px solid #f3e6e4;border-radius:7px;overflow:hidden}.mf-cat-photo{height:135px;background:#f3e2df;display:flex;align-items:center;justify-content:center;font-size:3rem}.mf-cat-photo img{width:100%;height:100%;object-fit:cover}.mf-cat-inner{padding:14px}.mf-cat h3{font-size:1.38rem;text-align:center;margin:0 0 11px;color:var(--wine)}.mf-cat h3 a{color:inherit}.mf-subcats{list-style:none;padding:0;margin:0}.mf-subcats li{margin:7px 0;font-size:.83rem}.mf-subcats li:before{content:'›';color:var(--wine);margin-right:7px}.mf-feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.mf-card{background:#fff;border-radius:6px;overflow:hidden;border:1px solid #f3e9e7}.mf-card img{width:100%;aspect-ratio:1.55;object-fit:cover;display:block}.mf-card .mf-card-body{padding:12px}.mf-card h3{font-size:1.12rem;line-height:1.2;margin:6px 0}.mf-card a{color:var(--ink)}.mf-card p{color:#716469;font-size:.8rem}.mf-section-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.mf-topic{background:#fff;border-radius:7px;overflow:hidden;border:1px solid #f6e7e7}.mf-topic-header{background:#fae6e5;padding:13px 15px;display:flex;align-items:center;justify-content:space-between}.mf-topic-header h3{color:var(--wine);font-size:1.48rem;margin:0}.mf-topic-header a{font-size:.77rem;color:var(--wine)}.mf-topic-content{display:grid;grid-template-columns:35% 1fr;gap:14px;padding:13px}.mf-topic-content img{width:100%;height:100%;min-height:180px;object-fit:cover;border-radius:5px}.mf-topic-content ul{margin:0;padding:0;list-style:none}.mf-topic-content li{font-family:Georgia,serif;font-size:1rem;line-height:1.25;padding:8px 0;border-bottom:1px solid #f1e5e5}.mf-topic-content li:last-child{border-bottom:0}.mf-topic-content li a{color:#33272b}.mf-latest{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.mf-latest .mf-card h3{font-size:.97rem}.mf-newsletter{background:#fae2e2;padding:32px 22px;text-align:center;margin-top:38px}.mf-newsletter h2{font-size:2rem;color:var(--wine);margin:0}.mf-newsletter p{font-size:.85rem}.mf-footer{background:#631b2d;color:white;padding:34px 20px}.mf-footer a{color:#fff}.mf-footer .wp-block-navigation{font-size:.8rem}.mf-archive-content{max-width:1260px;margin:36px auto;padding:0 20px}.mf-archive-content .wp-block-post-template{gap:20px}.mf-archive-content .wp-block-post-featured-image img{aspect-ratio:3/2;object-fit:cover;border-radius:5px}.mf-archive-content .wp-block-post-title{font-size:1.3rem}.mf-single{max-width:820px;margin:40px auto;padding:0 20px}.mf-single h1{font-size:clamp(2.1rem,4vw,3.6rem);line-height:1.1;color:var(--wine)}.mf-single .wp-block-post-featured-image img{border-radius:8px}.mf-single .wp-block-post-content{font-size:1.1rem;line-height:1.8}.mf-single .wp-block-post-content h2{color:var(--wine)}@media(max-width:850px){.mf-cats{grid-template-columns:repeat(2,1fr)}.mf-feature-grid{grid-template-columns:repeat(2,1fr)}.mf-latest{grid-template-columns:repeat(2,1fr)}.mf-section-grid{grid-template-columns:1fr}.mf-hero{grid-template-columns:1fr}.mf-hero-feature{min-height:380px}.mf-hero-right{grid-template-columns:1fr 1fr}.mf-header .wp-block-site-title{font-size:1.9rem}}@media(max-width:500px){.mf-hero-right{grid-template-columns:1fr}.mf-cats,.mf-feature-grid,.mf-latest{grid-template-columns:1fr 1fr}.mf-cat-photo{height:105px}.mf-cat-inner{padding:10px}.mf-cat h3{font-size:1.1rem}.mf-card h3{font-size:1rem}.mf-topic-content{grid-template-columns:1fr}.mf-topic-content img{max-height:180px}.mf-heading h2{font-size:1.5rem}.mf-hero-content{padding:18px}.mf-hero-feature{min-height:310px}}

/* V2: editorial logo, automatic category navigation, seven discovery cards */
.mf-header{padding:0 20px!important}.mf-header-top{padding:15px 0 12px!important;max-width:1260px}.mf-header .wp-block-shortcode{margin:0}.mf-wordmark{display:inline-flex;flex-direction:column;line-height:1;white-space:nowrap;text-decoration:none!important}.mf-wordmark-main{font:700 clamp(2rem,3.2vw,3rem)/1 Georgia,serif;letter-spacing:-.065em;color:#20181b}.mf-wordmark-main>span{color:var(--wine);font-style:italic}.mf-wordmark-main small{font-size:.43em;letter-spacing:-.02em;color:var(--wine);font-style:italic}.mf-wordmark-line{font-size:.73rem;color:#68555b;letter-spacing:.09em;text-align:center;padding-top:7px}.mf-menu-row{max-width:1260px;padding:0 0 13px}.mf-primary-menu .mf-menu-links{display:flex;align-items:center;justify-content:center;gap:clamp(12px,2.3vw,32px);flex-wrap:wrap}.mf-menu-item{position:relative}.mf-menu-item>a{font-weight:700;font-size:.87rem;color:#38252b;padding:9px 0;display:block}.mf-menu-item>a:hover{color:var(--wine)}.mf-menu-sub{display:none;position:absolute;top:100%;left:-14px;min-width:205px;list-style:none;padding:9px 0;margin:0;background:#fff;box-shadow:0 9px 30px #40142120;z-index:10;border:1px solid #f3e2e2;border-radius:5px}.mf-menu-item:hover .mf-menu-sub,.mf-menu-item:focus-within .mf-menu-sub{display:block}.mf-menu-sub a{display:block;padding:7px 14px;font-size:.77rem;color:#442e33}.mf-menu-sub a:hover{background:#fbeded;color:var(--wine)}
.mf-main{max-width:1390px}.mf-cats{grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.mf-cat-photo{height:105px;display:block;overflow:hidden;text-decoration:none}.mf-cat-inner{padding:12px 10px}.mf-cat h3{font-size:clamp(.95rem,1.3vw,1.23rem);margin-bottom:10px;line-height:1.15}.mf-subcats li{font-size:.73rem;line-height:1.3;overflow-wrap:anywhere;margin:6px 0}.mf-subcats li:before{margin-right:4px}.mf-cat{min-width:0}.mf-heading{margin-top:34px}.mf-latest{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.mf-latest .mf-card img{aspect-ratio:1.55}.mf-feature-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;max-width:1200px;margin-inline:auto}.mf-feature-grid .mf-card img{aspect-ratio:1.85}.mf-feature-grid .mf-card h3{font-size:1.02rem}.mf-section-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.mf-topic-content{grid-template-columns:34% minmax(0,1fr);gap:12px}.mf-topic-content li{font-size:.87rem}.mf-topic-content img{min-height:190px}.mf-topic-image{display:block;min-width:0}.mf-cat-photo img{transition:transform .3s}.mf-cat-photo:hover img{transform:scale(1.05)}
@media(max-width:1100px){.mf-cats{grid-template-columns:repeat(4,minmax(0,1fr))}.mf-section-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mf-menu-links{gap:14px!important}.mf-latest{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:750px){.mf-header-top{justify-content:center!important;gap:16px}.mf-primary-menu .mf-menu-links{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:thin;gap:22px!important;padding-bottom:5px}.mf-menu-item{flex-shrink:0}.mf-menu-sub{display:none!important}.mf-cats{grid-template-columns:repeat(2,minmax(0,1fr))}.mf-section-grid{grid-template-columns:1fr}.mf-latest{grid-template-columns:repeat(2,minmax(0,1fr))}.mf-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mf-header{padding:0 14px!important}.mf-main{padding:0 14px}.mf-wordmark-main{font-size:2.4rem}.mf-cat-photo{height:125px}.mf-cat h3{font-size:1.23rem}.mf-subcats li{font-size:.79rem}.mf-topic-content{grid-template-columns:33% 1fr}.mf-header-top .wp-block-search{max-width:100%;width:300px}}
@media(max-width:480px){.mf-cats{gap:9px}.mf-cat-photo{height:105px}.mf-cat-inner{padding:10px 8px}.mf-cat h3{font-size:1.12rem}.mf-heading h2{font-size:1.5rem}.mf-latest,.mf-feature-grid{gap:10px}.mf-card .mf-card-body{padding:9px}.mf-card h3{font-size:.94rem}.mf-topic-content{grid-template-columns:34% 1fr;gap:10px}.mf-topic-content img{min-height:145px}.mf-topic-content li{font-size:.78rem;padding:6px 0}.mf-topic-header h3{font-size:1.27rem}.mf-deck h2{font-size:1.95rem}}

/* V3: refined editorial header / compact listings / uniform discovery cards */
.mf-header{padding:0 24px!important}.mf-header-top{max-width:1400px!important;padding:17px 0 15px!important}.mf-menu-row{max-width:1400px!important;display:flex!important;justify-content:space-between!important;align-items:center!important;gap:26px!important;padding:4px 0 14px!important;margin-top:0!important}.mf-menu-row>.wp-block-shortcode{flex:1 1 auto;min-width:0}.mf-primary-menu .mf-menu-links{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:clamp(15px,2vw,30px)!important;white-space:nowrap}.mf-menu-item>a{font-size:clamp(.95rem,1.05vw,1.12rem)!important;padding:12px 0!important}.mf-header-search{width:205px!important;max-width:205px!important;min-width:180px!important;flex:0 0 205px!important;margin:0!important}.mf-header-search .wp-block-search__inside-wrapper{min-height:38px!important}.mf-header-search input{font-size:.82rem!important;padding:7px 10px!important;min-width:0!important}.mf-header-search button{padding:7px 10px!important;margin:0!important}.mf-header-search svg{width:19px;height:19px}.mf-wordmark-main{font-size:clamp(2.5rem,3.8vw,3.8rem)!important}.mf-wordmark-line{text-align:left;padding-left:45px;font-size:.77rem}.mf-deck{margin:30px auto 22px}.mf-deck h2{font-size:clamp(2rem,3vw,2.8rem);color:var(--wine)}.mf-cats{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:12px!important}.mf-cat{display:flex;flex-direction:column;box-shadow:0 5px 19px #5c233013;border:1px solid #f1e0e0;border-radius:10px}.mf-cat-photo{height:auto!important;aspect-ratio:4/4.25;overflow:hidden}.mf-cat-photo img{height:100%;width:100%;object-fit:cover}.mf-cat-inner{display:flex;flex-direction:column;flex:1;text-align:center;padding:14px 10px 17px!important}.mf-cat h3{font-size:clamp(1.03rem,1.4vw,1.45rem)!important;margin:0 0 12px}.mf-cat-desc{font-size:clamp(.76rem,.9vw,.9rem);line-height:1.45;color:#74636a;margin:0 auto 22px;max-width:19ch}.mf-cat-cta{font-size:.83rem;font-weight:700;color:var(--wine);margin-top:auto}.mf-cat-cta span{margin-left:5px}.mf-latest{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:13px}.mf-latest .mf-card img{aspect-ratio:2.1!important;max-height:125px}.mf-latest .mf-card-body{padding:9px 10px}.mf-latest .mf-card h3{font-size:.91rem!important;line-height:1.25;margin:6px 0 2px}.mf-latest .mf-tag{font-size:.56rem;padding:4px 6px}.mf-feature-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-width:1080px}.mf-feature-grid .mf-card img{aspect-ratio:2.15!important}.mf-section-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px}.mf-topic-header{padding:10px 9px;gap:5px;flex-wrap:wrap}.mf-topic-header h3{font-size:1.18rem}.mf-topic-header a{font-size:.7rem}.mf-topic-content{display:block;padding:9px}.mf-topic-content .mf-topic-image{display:block;margin-bottom:8px}.mf-topic-content img{width:100%;min-height:0!important;height:auto;aspect-ratio:1.8;object-fit:cover}.mf-topic-content li{font-size:.78rem;line-height:1.24;padding:7px 0}.mf-footer-top{max-width:1400px!important}.mf-footer .mf-wordmark-main{color:#fff!important;font-size:2.4rem!important}.mf-footer .mf-wordmark-main>span,.mf-footer .mf-wordmark-main small{color:#ffd0d8!important}.mf-footer .mf-wordmark-line{color:#f5d8df!important;padding-left:28px}
@media(max-width:1250px){.mf-primary-menu .mf-menu-links{gap:12px!important}.mf-menu-item>a{font-size:.91rem!important}.mf-header-search{width:175px!important;flex-basis:175px!important;min-width:150px!important}.mf-section-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.mf-cats{gap:8px!important}}
@media(max-width:850px){.mf-menu-row{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important}.mf-menu-row>.wp-block-shortcode{width:100%}.mf-primary-menu .mf-menu-links{overflow-x:auto;justify-content:flex-start!important;padding-bottom:6px}.mf-header-search{align-self:flex-end;width:195px!important;max-width:195px!important;flex-basis:auto!important}.mf-cats{grid-template-columns:repeat(4,minmax(0,1fr))!important}.mf-section-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.mf-latest{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:520px){.mf-header{padding:0 12px!important}.mf-header-top{padding:12px 0!important}.mf-wordmark-main{font-size:2.4rem!important}.mf-wordmark-line{padding-left:18px}.mf-cats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.mf-cat-photo{aspect-ratio:1.5}.mf-cat h3{font-size:1.2rem!important}.mf-cat-desc{font-size:.8rem}.mf-latest{grid-template-columns:repeat(2,minmax(0,1fr))!important}.mf-latest .mf-card img{aspect-ratio:1.65!important}.mf-section-grid{grid-template-columns:1fr!important}.mf-topic-content{display:grid;grid-template-columns:35% 1fr;gap:10px}.mf-topic-content .mf-topic-image{margin:0}.mf-topic-content img{aspect-ratio:1;min-height:135px!important}.mf-feature-grid .mf-card img{aspect-ratio:1.7!important}}

/* V4: reliably aligned editorial navigation and five compact manually curated stories. */
.mf-header-top{display:flex!important;align-items:center!important;justify-content:center!important;min-height:100px;padding:15px 0 10px!important}
.mf-header-top .wp-block-shortcode{width:max-content!important;flex:none!important}
.mf-menu-row{width:100%!important;max-width:1390px!important;margin:0 auto!important;padding:8px 0 16px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 176px!important;gap:28px!important;align-items:center!important}
.mf-menu-row>.wp-block-shortcode{width:100%!important;min-width:0!important;margin:0!important}
.mf-primary-menu{width:100%;min-width:0}
.mf-primary-menu .mf-menu-links{display:flex!important;justify-content:center!important;flex-wrap:nowrap!important;gap:clamp(14px,2vw,32px)!important;align-items:center!important;white-space:nowrap!important}
.mf-menu-item{flex:0 0 auto}
.mf-menu-item>a{font-size:clamp(.94rem,1.12vw,1.08rem)!important;line-height:1.25!important;padding:10px 0!important}
.mf-header-search{width:176px!important;min-width:0!important;max-width:176px!important;flex:none!important;margin:0!important;align-self:center!important}
.mf-header-search .wp-block-search__inside-wrapper{width:176px!important;min-height:37px!important}
.mf-header-search input{width:130px!important;font-size:.76rem!important}
.mf-header-search button{min-width:38px!important;background:#782438!important;color:#fff!important}
.mf-feature-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;max-width:none!important}
.mf-feature-grid .mf-card{min-width:0}
.mf-feature-grid .mf-card img{aspect-ratio:2.2!important;max-height:128px!important;object-fit:cover!important}
.mf-feature-grid .mf-card-body{padding:9px 10px!important}
.mf-feature-grid .mf-card h3{font-size:.9rem!important;line-height:1.25!important;margin:6px 0!important}
@media(max-width:1150px){.mf-menu-row{grid-template-columns:minmax(0,1fr) 150px!important;gap:14px!important}.mf-primary-menu .mf-menu-links{gap:13px!important}.mf-menu-item>a{font-size:.91rem!important}.mf-header-search,.mf-header-search .wp-block-search__inside-wrapper{width:150px!important;max-width:150px!important}.mf-feature-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:850px){.mf-header-top{min-height:80px}.mf-menu-row{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important}.mf-primary-menu .mf-menu-links{justify-content:flex-start!important;overflow-x:auto!important;scrollbar-width:thin;gap:22px!important}.mf-header-search{align-self:flex-end!important;width:176px!important;max-width:176px!important}.mf-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:520px){.mf-header-top{min-height:70px}.mf-feature-grid .mf-card img{max-height:110px!important}.mf-menu-row{padding-bottom:8px!important}}


/* V5: lock every top-level menu item to one consistent horizontal baseline. */
@media (min-width: 851px) {
  .mf-primary-menu .mf-menu-links {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    justify-content: center !important;
    min-height: 48px !important;
    gap: clamp(14px, 1.65vw, 28px) !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .mf-primary-menu .mf-menu-links > .mf-menu-item {
    display: flex !important;
    align-items: center !important;
    align-self: stretch !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
  }
  .mf-primary-menu .mf-menu-links > .mf-menu-item > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
  }
  .mf-primary-menu .mf-menu-sub {top: 48px !important;}
}
/* V5: a wider, readable editorial page and a wider lead image. */
.mf-single {
  box-sizing: border-box;
  width: min(100% - 40px, 1120px) !important;
  max-width: 1120px !important;
  margin: 38px auto !important;
  padding: 0 15px !important;
}
.mf-single > :where(:not(.alignfull)),
.mf-single > .wp-block-group,
.mf-single > .wp-block-post-featured-image,
.mf-single > .wp-block-post-content {
  width: 100% !important;
  max-width: 1080px !important;
  box-sizing: border-box;
}
.mf-single .wp-block-post-featured-image,
.mf-single .wp-block-post-featured-image img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
}
.mf-single .wp-block-post-featured-image img {
  height: auto !important;
  object-fit: cover;
  border-radius: 8px;
}
.mf-single .wp-block-post-content {
  width: 100% !important;
  max-width: 1080px !important;
  font-size: clamp(1.05rem, 1.3vw, 1.19rem);
  line-height: 1.75;
}
.mf-single .wp-block-post-content > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100% !important;
}
@media (max-width: 850px) {
  .mf-single {width: calc(100% - 24px) !important; padding: 0 8px !important; margin: 25px auto !important;}
  .mf-single h1 {font-size: clamp(2rem, 6vw, 3.2rem) !important;}
}

/* V6 – category archives display article images and headlines, no excerpts. */
.mf-archive-content .wp-block-post-excerpt{display:none!important}
.mf-archive-content .wp-block-post-template .wp-block-post-title{margin:10px 0 0!important;font-size:clamp(1.05rem,1.25vw,1.3rem);line-height:1.3}
/* V6 – similar articles after each post, selected from its deepest category. */
.mf-related{margin:38px auto 20px;width:100%;max-width:1120px}
.mf-related>h2{font-family:Georgia,serif;color:var(--wine);font-size:clamp(1.6rem,2.4vw,2.15rem);border-bottom:1px solid #eab7bc;padding-bottom:12px;margin:0 0 6px}
.mf-related-intro{font-size:.9rem;color:#806c72;margin:0 0 20px}
.mf-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.mf-related-card{min-width:0;background:#fff;border:1px solid #f3e9e7;border-radius:8px;overflow:hidden}
.mf-related-card a{color:var(--ink);display:block;text-decoration:none}
.mf-related-card a:hover{color:var(--wine)}
.mf-related-card img{display:block;width:100%;aspect-ratio:1.7;object-fit:cover}
.mf-related-card h3{font-family:Georgia,serif;font-size:1.02rem;line-height:1.3;margin:0;padding:12px}
@media(max-width:760px){.mf-related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mf-related-card h3{font-size:.96rem;padding:10px}}
@media(max-width:420px){.mf-related-card h3{font-size:.88rem}}


/* V7: regular, compact 4-column category grids on every paginated page. */
body.category .mf-archive-content,
body.category .mf-archive-content .wp-block-query,
body.category .mf-archive-content .wp-block-post-template {
 max-width:1260px;
 width:100%;
 box-sizing:border-box;
}
body.category .mf-archive-content .wp-block-post-template,
body.category .mf-archive-content ul.wp-block-post-template,
body.category .mf-archive-content ul.wp-block-post-template.is-layout-grid {
 display:grid!important;
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:24px 18px!important;
 align-items:start!important;
 justify-content:stretch!important;
 padding:0!important;
 margin:24px 0!important;
 list-style:none!important;
}
body.category .mf-archive-content .wp-block-post-template > li,
body.category .mf-archive-content .wp-block-post-template > .wp-block-post {
 display:block!important;
 position:static!important;
 width:auto!important;
 max-width:none!important;
 min-width:0!important;
 margin:0!important;
 padding:0!important;
 grid-column:auto!important;
 grid-row:auto!important;
 align-self:start!important;
}
body.category .mf-archive-content .wp-block-post-featured-image {
 margin:0!important;
 width:100%!important;
}
body.category .mf-archive-content .wp-block-post-featured-image a {
 display:block!important;
}
body.category .mf-archive-content .wp-block-post-featured-image img {
 display:block!important;
 width:100%!important;
 height:auto!important;
 aspect-ratio:3 / 2;
 object-fit:cover;
}
body.category .mf-archive-content .wp-block-post-title {
 font-size:1rem!important;
 line-height:1.3!important;
 margin:9px 0 0!important;
 overflow-wrap:anywhere;
}
body.category .mf-archive-content .wp-block-query-pagination {
 display:flex!important;
 flex-wrap:wrap;
 align-items:center;
 justify-content:center;
 gap:12px;
 margin:36px auto 48px;
 clear:both;
}
@media(max-width:960px){
 body.category .mf-archive-content .wp-block-post-template,
 body.category .mf-archive-content ul.wp-block-post-template,
 body.category .mf-archive-content ul.wp-block-post-template.is-layout-grid {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:650px){
 body.category .mf-archive-content .wp-block-post-template,
 body.category .mf-archive-content ul.wp-block-post-template,
 body.category .mf-archive-content ul.wp-block-post-template.is-layout-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px 12px!important;}
 body.category .mf-archive-content .wp-block-post-title {font-size:.94rem!important;}
}


/* V8 — Independent, stable category archive design for ALL category pages. */
body.category .mf-category-archive {
 width:min(100% - 44px, 1120px)!important;
 max-width:1120px!important;
 margin:36px auto 55px!important;
 padding:0!important;
 box-sizing:border-box;
}
body.category .mf-category-intro,
body.category .mf-category-articles,
body.category .mf-category-pagination {
 width:100%!important;
 max-width:none!important;
 box-sizing:border-box;
}
body.category .mf-category-intro {margin:0 0 25px!important;padding:0!important;}
body.category .mf-category-intro h1 {font-size:clamp(2rem,3vw,3rem);color:#782438;line-height:1.13;margin:0 0 17px;}
body.category .mf-category-description {font-size:1.02rem;line-height:1.65;color:#35282b;}
body.category .mf-category-description > * {max-width:none!important;width:auto!important;margin:0 0 14px!important;}
body.category .mf-category-articles {
 display:grid!important;
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:21px 16px!important;
 align-content:start!important;
 align-items:start!important;
 justify-items:stretch!important;
 grid-auto-rows:max-content!important;
 margin:0!important;
 padding:0!important;
}
body.category .mf-category-article {min-width:0!important;width:auto!important;max-width:none!important;display:block!important;position:static!important;margin:0!important;padding:0!important;}
body.category .mf-category-image {display:block!important;aspect-ratio:1.65;overflow:hidden;border-radius:5px;background:#f7e8e7;}
body.category .mf-category-image img {display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;}
body.category .mf-category-image-placeholder {display:block;width:100%;height:100%;background:linear-gradient(135deg,#f6e0e2,#fcefed);}
body.category .mf-category-article h2 {font-family:Georgia,serif!important;font-size:.98rem!important;line-height:1.3!important;font-weight:700;margin:9px 0 0!important;letter-spacing:0!important;}
body.category .mf-category-article h2 a {color:#782438;text-decoration:none;}
body.category .mf-category-article h2 a:hover {text-decoration:underline;}
body.category .mf-category-pagination {margin:32px auto 0!important;}
body.category .mf-category-pagination ul.page-numbers {display:flex!important;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:0!important;padding:0!important;list-style:none!important;}
body.category .mf-category-pagination li {margin:0!important;padding:0!important;list-style:none!important;}
body.category .mf-category-pagination a,
body.category .mf-category-pagination span {display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:7px 11px;border:1px solid #edd9dc;border-radius:5px;background:#fff;color:#782438;text-decoration:none;font-size:.9rem;box-sizing:border-box;}
body.category .mf-category-pagination .current {background:#782438;color:white;border-color:#782438;}
@media(max-width:900px){body.category .mf-category-articles{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media(max-width:620px){body.category .mf-category-archive{width:calc(100% - 28px)!important;margin-top:24px!important;}body.category .mf-category-articles{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 11px!important;}body.category .mf-category-article h2{font-size:.86rem!important;}}

/* V9: accessible breadcrumbs and reduced motion for better perceived performance */
.mf-breadcrumbs{max-width:1120px;margin:0 auto 18px;font-size:.85rem;line-height:1.5;color:#6b5a60;overflow-wrap:anywhere}
.mf-breadcrumbs a{color:#782438;text-decoration:underline;text-underline-offset:2px}.mf-breadcrumbs span[aria-hidden]{padding:0 7px;color:#a58a90}
.mf-breadcrumbs span[aria-current]{color:#56484c}
@media(prefers-reduced-motion:reduce){.mf-card img,.mf-cat-photo img,.mf-hero-card img{transition:none!important;transform:none!important}}
