/*
Theme Name: Fit & Fun FSE
Theme URI: https://fitandfuncomplex.com/
Author: Tusiime I. Boub
Author URI: https://fitandfuncomplex.com/
Description: A modern Full Site Editing WordPress theme for sports, leisure, hospitality, food and community venues. Includes flexible header and footer controls, responsive layouts, food-menu presentation, sports content styling and ANWP Football Leagues compatibility.
Version: 4.12.4
Requires at least: 6.6
Requires PHP: 7.4
Tested up to: 7.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fitandfun
Tags: block-themes, full-site-editing, sports, fitness, business
*/
*{box-sizing:border-box}
html,body{min-height:100%}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.wp-site-blocks{min-height:100vh;display:flex;flex-direction:column;width:100%}
.wp-site-blocks>main,.fitandfun-page-main{flex:1 0 auto;width:100%}
.wp-site-blocks>footer,.fitandfun-footer{flex-shrink:0;margin-top:auto}

.fitandfun-header{background:var(--ff-header-bg,#f4f4f5);min-height:var(--ff-header-height,74px);display:flex;align-items:center;width:100%;position:relative;z-index:100}
.fitandfun-header-inner{width:min(100%,1200px);min-height:var(--ff-header-height,74px);margin:0 auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between;gap:32px}
.fitandfun-branding{display:flex;align-items:center;min-width:150px}
.fitandfun-branding .custom-logo-link{display:flex;align-items:center}
.fitandfun-branding .custom-logo{width:auto;max-width:170px;max-height:58px;height:auto;display:block}
.fitandfun-site-title{font-size:1.35rem;font-weight:700;text-decoration:none;color:inherit}
.fitandfun-header-actions,.fitandfun-desktop-actions{display:flex;align-items:center;gap:20px;margin-left:auto}
.fitandfun-primary-nav ul{display:flex;align-items:center;gap:25px;list-style:none;margin:0;padding:0}
.fitandfun-primary-nav a{color:var(--ff-menu,#18212b);text-decoration:none;font-family:var(--ff-menu-family,inherit);font-size:var(--ff-menu-size,15px);font-weight:var(--ff-menu-weight,700);white-space:nowrap}
.fitandfun-primary-nav a:hover,.fitandfun-primary-nav .current-menu-item>a{color:var(--ff-menu-hover,#6f3fc1)}
.fitandfun-search-toggle{display:flex;align-items:center;justify-content:center;line-height:1;border:0;background:transparent;color:#2d5ca8;padding:0;width:28px;height:38px;cursor:pointer}
.fitandfun-search-toggle svg{display:block;width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.fitandfun-header-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;line-height:1!important;min-height:42px;padding:0 22px;border-radius:11px;background:linear-gradient(135deg,var(--ff-button-bg,#7b3fc1),#d84383);color:var(--ff-button-text,#fff)!important;text-decoration:none;font-weight:700;white-space:nowrap}
.fitandfun-header-button span{display:block;width:100%;text-align:center}
.fitandfun-search-panel{position:absolute;right:24px;top:calc(100% + 8px);width:min(340px,calc(100vw - 32px));padding:14px;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.14);border-radius:10px;z-index:9999}
.fitandfun-search-form{display:flex;align-items:center;gap:8px}
.fitandfun-search-form input{flex:1;min-width:0;padding:11px;border:1px solid #ddd;border-radius:6px}
.fitandfun-search-form button{display:flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;cursor:pointer}
.fitandfun-mobile-toggle,.fitandfun-mobile-drawer,.fitandfun-mobile-overlay{display:none}

.fitandfun-footer{background:var(--ff-footer-bg,#111);color:var(--ff-footer-text,#fff);text-align:center;background-size:cover;background-position:center}
.fitandfun-footer-inner{max-width:1200px;margin:auto;padding:32px 24px}
.fitandfun-footer-logo{max-height:90px;width:auto;margin:0 auto 14px}
.fitandfun-footer-title{font-size:1.25rem;font-weight:700;margin-bottom:10px}
.fitandfun-footer-text{margin-bottom:14px}
.fitandfun-footer-nav ul{list-style:none;margin:0;padding:0;display:flex;justify-content:center;flex-wrap:wrap;gap:18px}
.fitandfun-footer-nav a{color:inherit;text-decoration:none}




/* Blog / News template */
.ff-blog-page{width:100%}
.ff-blog-hero{margin:0 0 28px;min-height:260px;background:linear-gradient(135deg,#111827,#172554)}
.ff-blog-hero .wp-block-cover__inner-container{width:min(900px,calc(100% - 32px));margin:auto}
.ff-blog-hero h1{font-size:clamp(38px,6vw,68px);margin:6px 0 12px}
.ff-blog-eyebrow{font-size:12px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;margin:0}
.ff-blog-intro{max-width:760px;margin:0 auto;font-size:16px;line-height:1.7}
.ff-blog-container{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:10px 0 70px}
.ff-section-title{font-size:28px;margin:34px 0 8px}
.ff-section-subtitle{margin:0 0 20px;color:#6b7280}
.ff-latest-grid,.ff-post-grid,.ff-stories-grid{gap:18px!important}
.ff-news-card,.ff-post-card,.ff-story-card{overflow:hidden;border:1px solid #e5e7eb;border-radius:10px;background:#fff;box-shadow:0 3px 12px rgba(15,23,42,.06)}
.ff-news-card .wp-block-post-featured-image,.ff-post-card .wp-block-post-featured-image,.ff-story-card .wp-block-post-featured-image{margin:0}
.ff-news-card img,.ff-post-card img,.ff-story-card img{width:100%;object-fit:cover}
.ff-card-body{padding:15px 16px 17px}
.ff-card-category,.ff-post-card .wp-block-post-terms,.ff-story-card .wp-block-post-terms{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;margin:12px 0 7px}
.ff-card-category a,.ff-post-card .wp-block-post-terms a,.ff-story-card .wp-block-post-terms a{display:inline-block;padding:4px 7px;border-radius:3px;background:#eef2ff;text-decoration:none}
.ff-news-card .wp-block-post-title,.ff-post-card .wp-block-post-title,.ff-story-card .wp-block-post-title{font-size:17px;line-height:1.25;margin:0 0 8px}
.ff-news-card .wp-block-post-title a,.ff-post-card .wp-block-post-title a,.ff-story-card .wp-block-post-title a{text-decoration:none}
.ff-news-card .wp-block-post-excerpt,.ff-post-card .wp-block-post-excerpt,.ff-story-card .wp-block-post-excerpt{font-size:13px;line-height:1.55;color:#6b7280;margin:8px 0}
.ff-news-card .wp-block-post-date,.ff-post-card .wp-block-post-date,.ff-story-card .wp-block-post-date{font-size:11px;color:#8b8f98}
.ff-blog-two-column{display:grid!important;grid-template-columns:minmax(0,1fr) 270px;gap:34px;align-items:start!important;margin-top:38px}
.ff-blog-main-column{min-width:0}
.ff-blog-sidebar{width:100%!important;position:sticky;top:20px}
.ff-sidebar-title{font-size:20px;margin:0 0 12px;padding-bottom:8px;border-bottom:2px solid #111827}
.ff-blog-sidebar ul{padding-left:18px}
.ff-blog-sidebar .wp-block-categories-list{list-style:none;padding:0;margin:0 0 28px}
.ff-blog-sidebar .wp-block-categories-list li{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;margin-bottom:5px;border-radius:5px;background:#eef0ff;font-size:13px}
.ff-blog-sidebar .wp-block-latest-posts{list-style:none;padding:0}
.ff-blog-sidebar .wp-block-latest-posts li{padding:9px 0;border-bottom:1px solid #e5e7eb;font-size:13px}
.ff-blog-sidebar .wp-block-latest-posts__post-date{display:block;font-size:10px;color:#8b8f98;margin-top:4px}
.ff-blog-sidebar .wp-block-tag-cloud{line-height:2}
.ff-blog-sidebar .wp-block-tag-cloud a{font-size:12px!important;text-decoration:none;background:#f3f4f6;border-radius:4px;padding:3px 6px}
.ff-latest-stories-title{margin-top:46px}
.ff-stories-grid{margin-bottom:28px}
.ff-stories-grid .ff-story-card{padding-bottom:14px}
.ff-story-card .wp-block-post-title,.ff-story-card .wp-block-post-excerpt,.ff-story-card .wp-block-post-date{margin-left:14px;margin-right:14px}
.ff-story-card .wp-block-post-title{margin-top:7px}
.ff-story-card .wp-block-post-excerpt{margin-top:8px}
.wp-block-query-pagination{margin:30px 0}
.wp-block-query-pagination a,.wp-block-query-pagination .wp-block-query-pagination-numbers{font-size:13px}
@media(max-width:900px){
    .ff-blog-two-column{grid-template-columns:minmax(0,1fr)}
    .ff-blog-sidebar{position:static}
}
@media(max-width:650px){
    .ff-blog-container{width:min(100% - 24px,1180px)}
    .ff-latest-grid,.ff-post-grid,.ff-stories-grid{grid-template-columns:1fr!important}
    .ff-blog-hero{min-height:220px}
    .ff-section-title{font-size:24px}
}


/* Cinematic Fit & Fun 404 */
body:has(.ff-404-page) .fitandfun-header,
body:has(.ff-404-page) .fitandfun-footer{display:none!important}
body:has(.ff-404-page){background:#080b12}
body:has(.ff-404-page) .wp-site-blocks{min-height:100vh}
.ff-404-page{
    position:relative!important;
    width:100vw!important;
    max-width:none!important;
    min-height:100vh;
    min-height:100dvh;
    margin:0!important;
    padding:0!important;
    overflow:hidden;
    color:#fff;
    background-image:
        linear-gradient(rgba(5,10,22,.68),rgba(5,10,22,.78)),
        url('/wp-content/themes/fitandfun-fse-wordpress/assets/images/fitandfun-404-background.jpg');
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    justify-content:center;
}
.ff-404-overlay{
    width:100%;
    min-height:100vh;
    min-height:100dvh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:70px 24px 36px;
}
.ff-404-content{
    width:min(1120px,100%);
    text-align:center;
}
.ff-404-logo{margin:0 auto 10px!important;filter:brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,.35))}
.ff-404-logo img{max-height:70px;width:auto}
.ff-404-code{
    margin:0!important;
    font-size:clamp(110px,18vw,220px)!important;
    line-height:.8!important;
    font-weight:800!important;
    letter-spacing:-.07em;
    color:#fff!important;
    text-shadow:0 5px 25px rgba(0,0,0,.35);
}
.ff-404-title{
    margin:20px 0 12px!important;
    font-size:clamp(30px,4vw,52px)!important;
    line-height:1.05!important;
    color:#d7c8ff!important;
    font-weight:800!important;
}
.ff-404-message{
    font-size:17px;
    line-height:1.7;
    margin:0 auto 22px!important;
    color:rgba(255,255,255,.94);
}
.ff-404-search{
    width:min(820px,100%);
    margin:0 auto!important;
}
.ff-404-search .wp-block-search__inside-wrapper{
    display:flex;
    gap:0;
    border:0;
    padding:0;
    background:transparent;
}
.ff-404-search input{
    min-height:52px;
    padding:0 18px!important;
    border:0!important;
    border-radius:5px 0 0 5px!important;
    background:#fff!important;
    color:#222!important;
    font-size:15px;
}
.ff-404-search button{
    min-width:105px;
    min-height:52px;
    border:0!important;
    border-radius:0 5px 5px 0!important;
    background:#8b35d5!important;
    color:#fff!important;
    font-weight:700;
    cursor:pointer;
}
.ff-404-or{
    margin:18px 0 8px!important;
    color:rgba(255,255,255,.9);
}
.ff-404-home-button .wp-block-button__link{
    min-height:52px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 28px;
    border:1px solid #b54bdc;
    border-radius:9px;
    background:rgba(10,12,22,.38);
    color:#fff;
    font-weight:700;
    text-decoration:none;
}
.ff-404-divider{
    margin:38px 0 25px!important;
    border-color:rgba(255,255,255,.22)!important;
}
.ff-404-help-grid{
    margin:0!important;
    text-align:left;
}
.ff-404-help-grid .wp-block-column{
    padding:0 16px;
}
.ff-404-help-grid h3{
    margin:0 0 7px!important;
    color:#fff;
    font-size:17px;
}
.ff-404-help-grid p{
    margin:0 0 8px;
    color:rgba(255,255,255,.78);
    font-size:13px;
    line-height:1.5;
}
.ff-404-help-grid .ff-404-link a{
    color:#d58cff;
    text-decoration:none;
    font-weight:600;
}
.ff-404-copyright{ /* Developed by CodeZone - https://codezoneug.com */
    margin:0!important;
    color:rgba(255,255,255,.65);
    font-size:12px;
}
@media(max-width:800px){
    .ff-404-page{background-position:center center}
    .ff-404-overlay{padding:35px 18px 28px}
    .ff-404-logo{margin-bottom:4px!important}
    .ff-404-code{font-size:clamp(100px,27vw,160px)!important}
    .ff-404-title{font-size:32px!important}
    .ff-404-message{font-size:15px}
    .ff-404-help-grid{display:grid!important;grid-template-columns:1fr 1fr}
    .ff-404-help-grid .wp-block-column{padding:7px 10px}
    .ff-404-divider{margin:25px 0 15px!important}
}
@media(max-width:520px){
    .ff-404-search .wp-block-search__inside-wrapper{flex-direction:column;gap:8px}
    .ff-404-search input{border-radius:5px!important}
    .ff-404-search button{border-radius:5px!important;width:100%;min-width:0}
    .ff-404-help-grid{grid-template-columns:1fr}
    .ff-404-code{font-size:100px!important}
    .ff-404-title{font-size:27px!important}
}


/* Refined Blog / News layout */
.ff-news-ticker{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;min-height:44px;margin:34px 0 30px!important;background:#f2f6ff;border:2px solid #1677ff;overflow:hidden}
.ff-ticker-label{flex:0 0 auto;margin:0!important;padding:11px 28px 11px 13px!important;background:#1677ff;color:#fff;font-size:13px;font-weight:800;letter-spacing:.04em;position:relative}
.ff-ticker-label:after{content:"";position:absolute;right:-12px;top:0;border-top:22px solid transparent;border-bottom:22px solid transparent;border-left:12px solid #1677ff}
.ff-news-ticker .wp-block-query{flex:1;min-width:0;padding:0 18px}
.ff-news-ticker .wp-block-post-title{font-size:13px!important;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ff-news-ticker .wp-block-post-title a{text-decoration:none;color:#222}
.ff-feature-grid{display:grid!important;grid-template-columns:1.55fr 1fr;grid-template-rows:230px 230px;gap:16px!important}
.ff-feature-grid>.wp-block-post{min-width:0}
.ff-feature-grid>.wp-block-post:nth-child(1){grid-row:1 / span 2}
.ff-feature-card,.ff-wide-feature{position:relative!important;overflow:hidden!important;border-radius:7px!important;background:#111!important;height:100%!important;margin:0!important}
.ff-feature-card>.wp-block-post-featured-image,.ff-wide-feature>.wp-block-post-featured-image{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important}
.ff-feature-card>.wp-block-post-featured-image img,.ff-wide-feature>.wp-block-post-featured-image img{width:100%!important;height:100%!important;object-fit:cover!important}
.ff-feature-card:after,.ff-wide-feature:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.02) 25%,rgba(0,0,0,.78) 100%);z-index:1}
.ff-feature-overlay,.ff-wide-feature-overlay{position:absolute!important;z-index:2;left:0;right:0;bottom:0;padding:22px!important;color:#fff!important}
.ff-feature-overlay .wp-block-post-title,.ff-wide-feature-overlay .wp-block-post-title{margin:6px 0 6px!important;font-size:clamp(20px,2.2vw,31px)!important;line-height:1.08!important}
.ff-feature-grid>.wp-block-post:not(:first-child) .ff-feature-overlay .wp-block-post-title{font-size:20px!important}
.ff-card-category{font-size:10px!important;font-weight:800!important;text-transform:uppercase;margin:0 0 5px!important}
.ff-card-category a{display:inline-block;padding:4px 7px;background:#ee3158;color:#fff!important;text-decoration:none;border-radius:3px}
.ff-card-excerpt{font-size:12px!important;line-height:1.45!important;margin:5px 0 8px!important;color:rgba(255,255,255,.9)!important}
.ff-card-meta{gap:14px!important;font-size:10px!important;color:rgba(255,255,255,.8)!important}
.ff-card-meta p,.ff-card-meta .wp-block-post-date,.ff-card-meta .wp-block-post-author-name{margin:0!important}
.ff-wide-feature-query{margin:26px 0 0!important}
.ff-wide-feature{height:340px!important}
.ff-wide-feature-overlay .wp-block-post-title{font-size:32px!important}
.ff-wide-feature .ff-card-excerpt{font-size:14px!important;max-width:820px}
.ff-post-grid{gap:18px!important}
.ff-post-card{overflow:hidden;border:1px solid #e5e7eb;border-radius:7px;background:#fff;box-shadow:0 3px 12px rgba(15,23,42,.06)}
.ff-post-card .wp-block-post-featured-image{margin:0}
.ff-post-card .wp-block-post-featured-image img{width:100%;object-fit:cover}
.ff-post-card .wp-block-post-title,.ff-post-card .wp-block-post-excerpt,.ff-post-card .wp-block-post-date{margin-left:13px;margin-right:13px}
.ff-post-card .wp-block-post-title{font-size:17px!important;line-height:1.2;margin-top:7px}
.ff-post-card .wp-block-post-title a,.ff-story-card .wp-block-post-title a{text-decoration:none}
.ff-post-card .wp-block-post-excerpt,.ff-story-card .wp-block-post-excerpt{font-size:12px;line-height:1.5;color:#6b7280}
.ff-post-card .wp-block-post-date,.ff-story-card .wp-block-post-date{font-size:10px;color:#8b8f98;margin-bottom:14px}
.ff-blog-lower{margin-top:45px!important;gap:34px!important}
.ff-stories-grid{gap:18px!important}
.ff-story-card{overflow:hidden;border:1px solid #e5e7eb;border-radius:7px;background:#fff}
.ff-story-card .wp-block-post-featured-image{margin:0}
.ff-story-card .wp-block-post-featured-image img{width:100%;object-fit:cover}
.ff-story-card .wp-block-post-title{font-size:18px!important;line-height:1.2;margin:10px 14px 0}
.ff-story-card .wp-block-post-terms,.ff-story-card .wp-block-post-excerpt,.ff-story-card .wp-block-post-date{margin-left:14px;margin-right:14px}
.ff-blog-sidebar{position:sticky!important;top:20px}
.ff-blog-sidebar .wp-block-column{min-width:0}
@media(max-width:800px){
.ff-feature-grid{grid-template-columns:1fr!important;grid-template-rows:280px 220px 220px!important}
.ff-feature-grid>.wp-block-post:nth-child(1){grid-row:auto}
.ff-wide-feature{height:280px!important}
.ff-wide-feature-overlay .wp-block-post-title{font-size:25px!important}
.ff-blog-lower{display:block!important}
.ff-blog-sidebar{margin-top:35px}
}
@media(max-width:600px){
.ff-news-ticker{margin-top:20px!important}
.ff-ticker-label{padding-right:20px}
.ff-feature-overlay{padding:16px!important}
.ff-feature-grid{grid-template-rows:300px 220px 220px!important}
.ff-blog-hero{min-height:250px!important}
.ff-blog-intro{font-size:14px}
}

/* FSE global spacing / full-width content */
.wp-site-blocks{gap:0!important}
.wp-site-blocks>*{margin-top:0!important;margin-bottom:0!important}
.fitandfun-header,.fitandfun-footer{margin:0!important}
.fitandfun-page-main,.fitandfun-single-main,.fitandfun-blank-page{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.fitandfun-page-content,.fitandfun-single-content{width:100%!important;max-width:none!important}
.fitandfun-page-content>.alignfull,.fitandfun-single-content>.alignfull{width:100vw!important;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}
.fitandfun-page-title,.fitandfun-single-title{width:min(1180px,calc(100% - 32px));margin:0 auto!important;padding:38px 0 22px;font-size:clamp(32px,5vw,54px);line-height:1.05}
.fitandfun-single-title{padding-top:42px;padding-bottom:24px}

/* Latest News marquee */
.ff-news-ticker .ff-marquee-window{overflow:hidden!important;position:relative;display:block!important;white-space:nowrap}
.ff-news-ticker .ff-marquee-track{display:flex!important;flex-wrap:nowrap!important;width:max-content!important;min-width:max-content!important;gap:70px!important;animation:ff-news-marquee 22s linear infinite}
.ff-news-ticker .ff-marquee-track>.wp-block-post{flex:0 0 auto!important;display:block!important;width:max-content!important;max-width:70vw}
.ff-news-ticker .ff-marquee-track>.wp-block-post-title{margin:0!important}
.ff-news-ticker:hover .ff-marquee-track{animation-play-state:paused}
@keyframes ff-news-marquee{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
@media(prefers-reduced-motion:reduce){
 .ff-news-ticker .ff-marquee-track{animation:none!important}
}


/* Full-site-width FSE foundation */
html,body{width:100%;min-height:100%;margin:0}
body{min-height:100vh;display:flex;flex-direction:column}
.wp-site-blocks{width:100%!important;max-width:none!important;min-height:100vh;display:flex!important;flex-direction:column!important;gap:0!important}
.wp-site-blocks>*{width:100%;max-width:none!important;margin-top:0!important;margin-bottom:0!important}
.wp-site-blocks>main{flex:1 0 auto}
.fitandfun-template-main,.fitandfun-page-main,.fitandfun-single-main,.fitandfun-blank-page{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;flex:1 0 auto}
.fitandfun-page-content,.fitandfun-single-content{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.fitandfun-page-content>.alignfull,.fitandfun-single-content>.alignfull,.fitandfun-page-main>.alignfull,.fitandfun-single-main>.alignfull{width:100vw!important;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}
.wp-site-blocks>.wp-block-template-part{width:100%!important;max-width:none!important;margin:0!important}
.fitandfun-header{width:100%!important;max-width:none!important;margin:0!important}
.fitandfun-footer{width:100%!important;max-width:none!important;margin:0!important;margin-top:auto!important;flex-shrink:0!important}

/* Header adapts to available horizontal space, not just viewport width. */
.fitandfun-header-inner{container-type:inline-size;container-name:fitfunheader}
@container fitfunheader (max-width: 1120px){
 .fitandfun-header-inner{gap:18px}
 .fitandfun-primary-nav ul{gap:16px}
 .fitandfun-primary-nav a{font-size:clamp(13px,var(--ff-menu-size,15px),15px)}
 .fitandfun-header-button{padding-left:16px;padding-right:16px}
}
@container fitfunheader (max-width: 900px){
 .fitandfun-desktop-actions{display:none!important}
 .fitandfun-mobile-toggle{display:flex!important}
 .fitandfun-header-inner{flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important}
 .fitandfun-branding{flex:1 1 auto;min-width:0}
}
@container fitfunheader (min-width: 901px){
 .fitandfun-desktop-actions{display:flex!important}
 .fitandfun-mobile-toggle{display:none!important}
}

/* Keep the mobile drawer independent of the header's constrained width. */
.fitandfun-mobile-drawer{z-index:100001!important}
.fitandfun-mobile-overlay{z-index:100000!important}


/* Single posts */
.fitandfun-single-main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.fitandfun-single-title{width:min(1180px,calc(100% - 32px));margin:0 auto!important;padding:42px 0 24px!important;font-size:clamp(32px,5vw,56px)!important;line-height:1.05!important}
.fitandfun-single-content{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.fitandfun-single-content>*:not(.alignfull){max-width:1180px;margin-left:auto;margin-right:auto}
.fitandfun-single-content>.alignfull{width:100vw!important;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}
.fitandfun-single-layout{width:min(1180px,calc(100% - 32px));max-width:none!important;margin:0 auto!important;padding:36px 0 60px}
.fitandfun-single-columns{margin:0!important;gap:34px!important}
.fitandfun-single-primary{min-width:0}
.fitandfun-single-featured{margin:0 0 28px!important}
.fitandfun-single-featured img{width:100%;height:auto;display:block;border-radius:8px}
.fitandfun-single-sidebar{min-width:0;padding-left:10px}
.fitandfun-single-sidebar h2{font-size:20px;margin:0 0 12px;padding:0 0 8px;border-bottom:2px solid currentColor}
.fitandfun-single-sidebar ul{padding-left:18px}
.fitandfun-single-sidebar .wp-block-latest-posts{list-style:none;padding:0}
.fitandfun-single-sidebar .wp-block-latest-posts li{padding:8px 0;border-bottom:1px solid #e5e7eb;font-size:13px}
.fitandfun-single-sidebar .wp-block-latest-posts__post-date{display:block;font-size:10px;color:#777;margin-top:4px}

/* ANWP Football competition pages: plugin controls the body, theme controls only the shell. */
.fitandfun-competition-main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;min-height:1px}
.fitandfun-competition-content{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.fitandfun-competition-content>.alignfull{width:100vw!important;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}
.fitandfun-competition-content .anwpfl-content,.fitandfun-competition-content .anwpfl-page{max-width:none!important;width:100%!important}

/* Do not let plugin root containers inherit a fixed theme content width. */
.single-competition .wp-site-blocks,
.single-football_competition .wp-site-blocks,
.single-anwp_competition .wp-site-blocks{max-width:none!important;width:100%!important}

@media(max-width:800px){
 .fitandfun-single-layout{width:calc(100% - 24px);padding-top:25px}
 .fitandfun-single-columns{display:block!important}
 .fitandfun-single-sidebar{margin-top:36px;padding-left:0}
}


/* ANWP Football Leagues compatibility */
.fitandfun-anwp-page{margin:0!important;padding:0!important;min-height:100vh}
.fitandfun-anwp-main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.fitandfun-anwp-entry{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.fitandfun-anwp-entry-header{width:min(1180px,calc(100% - 32px));margin:0 auto!important;padding:32px 0 20px}
.fitandfun-anwp-entry-title{margin:0!important;font-size:clamp(30px,4vw,48px);line-height:1.08}
.fitandfun-anwp-content{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.fitandfun-anwp-content > *{max-width:none!important}
.fitandfun-anwp-content .anwp-b-wrap{max-width:none!important;width:100%!important}
.fitandfun-anwp-content .competition{margin:0!important;padding:0!important}
.fitandfun-anwp-content .competition-header{width:100%!important;box-sizing:border-box}
.fitandfun-anwp-content .competition__group-wrapper{width:100%!important}
.fitandfun-anwp-content .standing-table{width:100%!important}
.fitandfun-anwp-content .match-list__item{width:100%!important;box-sizing:border-box}
@media(max-width:700px){
 .fitandfun-anwp-entry-header{width:calc(100% - 24px);padding:24px 0 16px}
 .fitandfun-anwp-content .standing-table{font-size:12px}
}


/* Global sticky-footer contract: short pages still push the footer to the viewport bottom. */
html,body{min-height:100%}
body{min-height:100vh}
.wp-site-blocks{min-height:100vh;display:flex;flex-direction:column}
.wp-site-blocks > main,
.wp-site-blocks > .wp-block-group:has(> main){flex:1 0 auto}
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part:last-child{margin-top:auto}

.fitandfun-anwp-page{min-height:100vh!important;margin:0!important;padding:0!important}
.fitandfun-anwp-site{min-height:100vh;display:flex;flex-direction:column}
.fitandfun-anwp-site > header,
.fitandfun-anwp-site > .wp-block-template-part{flex:0 0 auto}
.fitandfun-anwp-main{flex:1 0 auto;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.fitandfun-anwp-entry{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.fitandfun-anwp-content{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.fitandfun-anwp-site > footer{margin-top:auto!important;flex:0 0 auto}

/* Whole featured card is clickable; preserve the visual overlay. */
.ff-feature-card{cursor:pointer}
.ff-feature-card:focus-visible{outline:3px solid currentColor;outline-offset:3px}
.ff-feature-card .wp-block-post-title a,
.ff-feature-card .wp-block-post-featured-image a{position:relative;z-index:3}


/* Featured card content must remain visible and readable when the whole card is clickable. */
.ff-feature-card .ff-feature-overlay,
.ff-wide-feature .ff-wide-feature-overlay{display:block!important;visibility:visible!important;opacity:1!important}
.ff-feature-card .ff-feature-overlay .wp-block-post-terms,
.ff-feature-card .ff-feature-overlay .ff-card-category,
.ff-wide-feature .ff-wide-feature-overlay .wp-block-post-terms,
.ff-wide-feature .ff-wide-feature-overlay .ff-card-category{display:block!important;visibility:visible!important;opacity:1!important;color:#fff!important}
.ff-feature-card .ff-feature-overlay .wp-block-post-terms a,
.ff-feature-card .ff-feature-overlay .ff-card-category a,
.ff-wide-feature .ff-wide-feature-overlay .wp-block-post-terms a,
.ff-wide-feature .ff-wide-feature-overlay .ff-card-category a{color:#fff!important}
.ff-feature-card .ff-feature-overlay .wp-block-post-title,
.ff-feature-card .ff-feature-overlay .wp-block-post-title a,
.ff-wide-feature .ff-wide-feature-overlay .wp-block-post-title,
.ff-wide-feature .ff-wide-feature-overlay .wp-block-post-title a{display:block!important;visibility:visible!important;opacity:1!important;color:#fff!important}
.ff-feature-card .ff-feature-overlay .wp-block-post-title a,
.ff-wide-feature .ff-wide-feature-overlay .wp-block-post-title a{text-decoration:none!important}

/* ANWP generated pages use the theme's standard content-width contract. */
.fitandfun-anwp-main .fitandfun-anwp-content{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:32px 16px!important;
  box-sizing:border-box;
}
.fitandfun-anwp-main .fitandfun-anwp-content > .anwp-b-wrap{
  width:100%!important;
  max-width:1200px!important;
  margin:0 auto!important;
  padding:0!important;
  box-sizing:border-box;
}
.fitandfun-anwp-main .fitandfun-anwp-content > .anwp-b-wrap .standing-table,
.fitandfun-anwp-main .fitandfun-anwp-content > .anwp-b-wrap .match-header,
.fitandfun-anwp-main .fitandfun-anwp-content > .anwp-b-wrap .competition-header{
  max-width:100%!important;
}
.fitandfun-anwp-main .fitandfun-anwp-content > .anwp-b-wrap .match-header{
  margin:0!important;
}
@media(max-width:700px){
  .fitandfun-anwp-main .fitandfun-anwp-content{padding:24px 12px!important}
  .fitandfun-anwp-main .fitandfun-anwp-content > .anwp-b-wrap{max-width:100%!important}
}


/* v3.5 blog feature contract */
.ff-feature-card,
.ff-wide-feature{cursor:pointer}
.ff-feature-card .ff-feature-overlay,
.ff-wide-feature .ff-wide-feature-overlay{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
}
.ff-feature-card .ff-feature-overlay .ff-card-category,
.ff-feature-card .ff-feature-overlay .wp-block-post-terms,
.ff-feature-card .ff-feature-overlay .wp-block-post-title,
.ff-wide-feature .ff-wide-feature-overlay .ff-card-category,
.ff-wide-feature .ff-wide-feature-overlay .wp-block-post-terms,
.ff-wide-feature .ff-wide-feature-overlay .wp-block-post-title{
    visibility:visible!important;
    opacity:1!important;
}
.ff-feature-card .ff-feature-overlay .wp-block-post-title a,
.ff-wide-feature .ff-wide-feature-overlay .wp-block-post-title a{
    color:#fff!important;
    text-decoration:none!important;
}
.ff-feature-card .ff-feature-overlay .ff-card-category a,
.ff-wide-feature .ff-wide-feature-overlay .ff-card-category a{
    color:#fff!important;
}
.ff-card-is-clickable:focus-visible{
    outline:3px solid currentColor;
    outline-offset:3px;
}

/* Single-post banner */
.ff-single-blog-hero{
    margin:0!important;
    background-size:cover!important;
    background-position:center!important;
}
.ff-single-blog-hero .wp-block-cover__inner-container{
    width:min(1100px,calc(100% - 32px))!important;
    margin:auto!important;
}
.ff-single-blog-banner-title{
    color:#fff!important;
    font-size:clamp(32px,5vw,64px)!important;
    line-height:1.08!important;
    margin:8px auto 0!important;
    max-width:1000px!important;
}
.ff-single-blog-content{
    width:min(1200px,calc(100% - 32px))!important;
    max-width:none!important;
    margin:0 auto!important;
    padding:42px 0 54px!important;
}
.ff-single-blog-image{
    margin:0 auto 30px!important;
}
.ff-single-blog-image img{
    width:100%!important;
    max-height:560px!important;
    object-fit:cover!important;
    border-radius:8px!important;
}
@media(max-width:700px){
    .ff-single-blog-hero{min-height:250px!important}
    .ff-single-blog-content{
        width:calc(100% - 24px)!important;
        padding:28px 0 40px!important;
    }
    .ff-single-blog-hero .wp-block-cover__inner-container{
        width:calc(100% - 24px)!important;
    }
}


/* v3.6 — Featured Top 3: same overlay contract as the full-width featured story */
.ff-feature-grid > .wp-block-post > .ff-feature-card{
    position:relative!important;
    isolation:isolate!important;
    overflow:hidden!important;
}
.ff-feature-grid > .wp-block-post > .ff-feature-card > .wp-block-post-featured-image{
    position:absolute!important;
    inset:0!important;
    z-index:0!important;
    width:100%!important;
    height:100%!important;
    margin:0!important;
}
.ff-feature-grid > .wp-block-post > .ff-feature-card > .wp-block-post-featured-image img{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
}
.ff-feature-grid > .wp-block-post > .ff-feature-card > .ff-feature-overlay{
    position:absolute!important;
    z-index:5!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    display:block!important;
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    padding:22px!important;
    box-sizing:border-box!important;
    color:#fff!important;
    visibility:visible!important;
    opacity:1!important;
}
.ff-feature-grid > .wp-block-post > .ff-feature-card > .ff-feature-overlay > *{
    visibility:visible!important;
    opacity:1!important;
}
.ff-feature-grid > .wp-block-post > .ff-feature-card > .ff-feature-overlay .ff-card-category,
.ff-feature-grid > .wp-block-post > .ff-feature-card > .ff-feature-overlay .wp-block-post-terms{
    display:block!important;
    position:relative!important;
    z-index:6!important;
    margin:0 0 6px!important;
    color:#fff!important;
}
.ff-feature-grid > .wp-block-post > .ff-feature-card > .ff-feature-overlay .ff-card-category a{
    display:inline-block!important;
    color:#fff!important;
    background:#ee3158!important;
    padding:4px 7px!important;
    border-radius:3px!important;
}
.ff-feature-grid > .wp-block-post > .ff-feature-card > .ff-feature-overlay .wp-block-post-title{
    display:block!important;
    position:relative!important;
    z-index:6!important;
    margin:6px 0!important;
    color:#fff!important;
    visibility:visible!important;
    opacity:1!important;
}
.ff-feature-grid > .wp-block-post > .ff-feature-card > .ff-feature-overlay .wp-block-post-title a{
    display:inline!important;
    color:#fff!important;
    text-decoration:none!important;
    visibility:visible!important;
    opacity:1!important;
}
.ff-feature-grid > .wp-block-post > .ff-feature-card > .ff-feature-overlay .ff-card-excerpt,
.ff-feature-grid > .wp-block-post > .ff-feature-card > .ff-feature-overlay .ff-card-meta{
    position:relative!important;
    z-index:6!important;
    color:rgba(255,255,255,.9)!important;
}

/* v3.6 — Latest News label owns the left edge; ticker content stays behind it.
   Remove the decorative arrow entirely. */
.ff-news-ticker{
    position:relative!important;
    isolation:isolate!important;
}
.ff-ticker-label{
    position:relative!important;
    z-index:20!important;
    flex:0 0 auto!important;
    padding-right:13px!important;
}
.ff-ticker-label:after{
    content:none!important;
    display:none!important;
}
.ff-news-ticker > .wp-block-query{
    position:relative!important;
    z-index:1!important;
    overflow:hidden!important;
    min-width:0!important;
    background:inherit!important;
}
.ff-news-ticker .wp-block-query .wp-block-post-template,
.ff-news-ticker .wp-block-query .wp-block-post{
    position:relative!important;
    z-index:1!important;
}


/* v3.7 — Navigation switches to off-canvas when the header no longer has enough room.
   This is based on the actual header container width, not an arbitrary phone-only
   breakpoint. The desktop navigation never shrinks to squeeze into the header. */
.fitandfun-header-inner{
    container-type:inline-size;
    container-name:fitfunheader;
}

/* Desktop state */
.fitandfun-mobile-toggle,
.fitandfun-mobile-drawer,
.fitandfun-mobile-overlay{display:none!important}
.fitandfun-desktop-actions{display:flex!important;align-items:center;gap:20px;margin-left:auto;min-width:0}
.fitandfun-primary-nav{min-width:0}
.fitandfun-primary-nav ul{display:flex;align-items:center;gap:25px;list-style:none;margin:0;padding:0;white-space:nowrap}
.fitandfun-primary-nav a{white-space:nowrap}

/* Actual off-canvas state when available header width is insufficient. */
@container fitfunheader (max-width:1080px){
    .fitandfun-header-inner{
        flex-wrap:nowrap!important;
        gap:12px!important;
        padding:0 18px!important;
    }
    .fitandfun-branding{
        flex:1 1 auto!important;
        min-width:0!important;
        justify-content:flex-start!important;
    }
    .fitandfun-branding .custom-logo{
        max-width:150px!important;
        max-height:56px!important;
    }
    .fitandfun-desktop-actions{display:none!important}
    .fitandfun-mobile-toggle{
        width:44px!important;
        height:44px!important;
        flex:0 0 44px!important;
        display:flex!important;
        flex-direction:column!important;
        align-items:center!important;
        justify-content:center!important;
        gap:5px!important;
        padding:0!important;
        margin:0 0 0 auto!important;
        border:0!important;
        background:transparent!important;
        color:var(--ff-menu,#18212b)!important;
        cursor:pointer!important;
    }
    .fitandfun-mobile-toggle span{
        display:block!important;
        width:24px!important;
        height:2px!important;
        background:currentColor!important;
        border-radius:2px!important;
    }
}

/* JS fallback class for browsers without container queries and for exact ResizeObserver sizing. */
.fitandfun-header-inner.ff-nav-mobile .fitandfun-desktop-actions{display:none!important}
.fitandfun-header-inner.ff-nav-mobile .fitandfun-mobile-toggle{
    width:44px!important;height:44px!important;flex:0 0 44px!important;
    display:flex!important;flex-direction:column!important;
    align-items:center!important;justify-content:center!important;
    gap:5px!important;padding:0!important;margin-left:auto!important;
    border:0!important;background:transparent!important;
}
.fitandfun-header-inner.ff-nav-mobile .fitandfun-mobile-toggle span{
    display:block!important;width:24px!important;height:2px!important;
    background:currentColor!important;border-radius:2px!important;
}

/* Off-canvas drawer */
.fitandfun-mobile-overlay{
    position:fixed!important;inset:0!important;z-index:9998!important;
    background:rgba(0,0,0,.48)!important;opacity:0;
    transition:opacity .25s!important;
}
.fitandfun-mobile-overlay.is-open{opacity:1!important}
.fitandfun-mobile-drawer{
    position:fixed!important;top:0!important;right:0!important;
    width:min(88vw,380px)!important;height:100vh!important;height:100dvh!important;
    z-index:9999!important;background:#fff!important;color:#18212b!important;
    box-shadow:-16px 0 40px rgba(0,0,0,.18)!important;
    transform:translateX(105%)!important;transition:transform .28s!important;
    flex-direction:column!important;padding:22px!important;overflow-y:auto!important;
}
.fitandfun-mobile-drawer.is-open{transform:translateX(0)!important}
.fitandfun-mobile-drawer-top{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    padding-bottom:20px!important;border-bottom:1px solid #e7e7e7!important;
}
.fitandfun-mobile-close{
    width:40px!important;height:40px!important;border:0!important;
    background:transparent!important;font-size:34px!important;line-height:1!important;cursor:pointer!important;
}
.fitandfun-mobile-nav{padding:18px 0!important}
.fitandfun-mobile-nav ul{display:block!important;list-style:none!important;margin:0!important;padding:0!important}
.fitandfun-mobile-nav li{border-bottom:1px solid #ededed!important}
.fitandfun-mobile-nav a{
    display:block!important;padding:14px 0!important;color:#18212b!important;
    text-decoration:none!important;font-family:var(--ff-menu-family,inherit)!important;
    font-size:var(--ff-menu-size,15px)!important;font-weight:var(--ff-menu-weight,700)!important;
}
.fitandfun-mobile-search-form{
    display:flex!important;gap:8px!important;margin-top:8px!important;
    padding-top:18px!important;border-top:1px solid #e7e7e7!important;
}
.fitandfun-mobile-search-form input{
    flex:1!important;min-width:0!important;height:48px!important;
    padding:0 14px!important;border:1px solid #d7d7d7!important;border-radius:8px!important;
}
.fitandfun-mobile-search-form button{
    width:48px!important;height:48px!important;border:0!important;border-radius:8px!important;
    background:var(--ff-button-bg,#7b3fc1)!important;color:var(--ff-button-text,#fff)!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
}
.fitandfun-mobile-search-form svg{width:22px!important;height:22px!important;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.fitandfun-mobile-button{width:100%!important;min-height:50px!important;margin-top:18px!important}
body.fitandfun-menu-open{overflow:hidden!important}

/* Hard fallback for older browsers: switch before the menu becomes crowded. */
@media(max-width:1080px){
    .fitandfun-desktop-actions{display:none!important}
    .fitandfun-header-inner{flex-wrap:nowrap!important;gap:12px!important;padding:0 18px!important}
    .fitandfun-branding{flex:1 1 auto!important;min-width:0!important;justify-content:flex-start!important}
    .fitandfun-mobile-toggle{
        width:44px!important;height:44px!important;flex:0 0 44px!important;
        display:flex!important;flex-direction:column!important;align-items:center!important;
        justify-content:center!important;gap:5px!important;margin-left:auto!important;
    }
}

/* v3.8 — working off-canvas controller */
.fitandfun-header .fitandfun-mobile-toggle{position:relative;z-index:10001;cursor:pointer}
.fitandfun-header .fitandfun-mobile-drawer{pointer-events:auto}
.fitandfun-header .fitandfun-mobile-overlay{pointer-events:auto}

/* v3.9 — hard guarantee that the off-canvas elements are renderable.
   The previous global display:none rule was preventing the drawer from opening. */
.fitandfun-mobile-drawer{
    display:flex!important;
    visibility:visible!important;
}
.fitandfun-mobile-drawer[aria-hidden="true"]{
    visibility:visible!important;
}
.fitandfun-mobile-drawer.is-open{
    display:flex!important;
    visibility:visible!important;
    transform:translateX(0)!important;
}
.fitandfun-mobile-overlay.is-open{
    display:block!important;
    visibility:visible!important;
}
@media(max-width:1080px){
    .fitandfun-mobile-drawer{display:flex!important}
    .fitandfun-mobile-toggle{display:flex!important}
}


/* v4.0 — zero external gap between the theme chrome and page content.
   This removes only the spacing outside the main/page area; internal block
   padding used by banners, sections and content remains untouched. */
html,body{margin:0!important;padding:0!important}
.wp-site-blocks{margin:0!important;padding:0!important;gap:0!important}
.wp-site-blocks > .wp-block-template-part,
.wp-site-blocks > header,
.wp-site-blocks > footer,
.wp-site-blocks > main,
.wp-site-blocks > .fitandfun-page-main,
.wp-site-blocks > .fitandfun-template-main,
.wp-site-blocks > .fitandfun-single-main{
    margin-top:0!important;
    margin-bottom:0!important;
    padding-top:0!important;
}
.wp-site-blocks > .wp-block-template-part:first-child,
.wp-site-blocks > header:first-child{margin-top:0!important;padding-top:0!important}
.wp-site-blocks > .wp-block-template-part:last-child,
.wp-site-blocks > footer:last-child{
    margin-bottom:0!important;
    padding-bottom:0!important;
}
/* Remove any Gutenberg block spacing inserted immediately between header,
   content and footer template parts. */
.wp-site-blocks > .wp-block-template-part + .wp-block-template-part,
.wp-site-blocks > .wp-block-template-part + main,
.wp-site-blocks > header + main,
.wp-site-blocks > main + .wp-block-template-part,
.wp-site-blocks > main + footer{
    margin-top:0!important;
    padding-top:0!important;
}
.wp-site-blocks > main + .wp-block-template-part,
.wp-site-blocks > main + footer{
    margin-bottom:0!important;
}
/* The rendered theme header/footer themselves must touch the page flow. */
.wp-site-blocks .fitandfun-header,
.wp-site-blocks .fitandfun-footer{
    margin:0!important;
}


/* v4.1 — hard page-edge reset.
   The previous reset targeted only direct site children. FSE template parts and
   Gutenberg wrapper blocks can introduce their own margins/padding. Remove
   spacing at the actual header/content and content/footer boundaries. */
.wp-site-blocks > .wp-block-template-part,
.wp-site-blocks > .wp-block-template-part > .fitandfun-header,
.wp-site-blocks > .wp-block-template-part > .fitandfun-footer{
    margin:0!important;
    padding:0!important;
}
.wp-site-blocks > .wp-block-template-part > .fitandfun-header + *,
.wp-site-blocks > .wp-block-template-part > .fitandfun-footer + *{
    margin-top:0!important;
}
.wp-site-blocks > main,
.wp-site-blocks > .wp-block-template-part + main,
.wp-site-blocks > main + .wp-block-template-part{
    margin-top:0!important;
    margin-bottom:0!important;
}
.wp-site-blocks > main > :first-child{
    margin-top:0!important;
}
.wp-site-blocks > main > :last-child{
    margin-bottom:0!important;
}

/* Eliminate block-gap/padding generated by Gutenberg layout wrappers at the
   outer boundary, without destroying spacing inside the actual content. */
.wp-site-blocks > .wp-block-template-part{
    gap:0!important;
}
.wp-site-blocks > .wp-block-template-part > *{
    margin-top:0!important;
    margin-bottom:0!important;
}
.fitandfun-header + .wp-block-group,
.fitandfun-header + main,
.fitandfun-footer + .wp-block-group,
main + .fitandfun-footer{
    margin-top:0!important;
    margin-bottom:0!important;
}
.fitandfun-page-main,
.fitandfun-template-main,
.fitandfun-single-main,
.fitandfun-blank-page{
    margin-top:0!important;
    margin-bottom:0!important;
}

/* Do not let theme-wide block spacing reappear at the first/last content block. */
.fitandfun-page-main > :first-child,
.fitandfun-template-main > :first-child,
.fitandfun-single-main > :first-child,
.fitandfun-blank-page > :first-child{
    margin-top:0!important;
}
.fitandfun-page-main > :last-child,
.fitandfun-template-main > :last-child,
.fitandfun-single-main > :last-child,
.fitandfun-blank-page > :last-child{
    margin-bottom:0!important;
}

/* Outer page shells never carry vertical padding. */
.fitandfun-page-main,
.fitandfun-template-main,
.fitandfun-single-main,
.fitandfun-blank-page{padding-top:0!important;padding-bottom:0!important}


/* v4.2 — remove the persistent gap immediately ABOVE the footer.
   The footer is rendered by a template-part wrapper/shortcode, so target the
   rendered footer itself and every possible FSE wrapper preceding it. */
html,body{margin:0!important;padding:0!important}
.wp-site-blocks,
.wp-site-blocks.is-layout-flow,
.wp-site-blocks.is-layout-constrained{
    margin:0!important;
    padding:0!important;
    row-gap:0!important;
}
.wp-site-blocks > *{
    margin-block-start:0!important;
}
.wp-site-blocks > *:last-child{
    margin-block-end:0!important;
}

/* Header/content/footer boundary: no block gap and no footer top margin. */
.wp-site-blocks .fitandfun-footer,
.wp-site-blocks .fitandfun-footer-wrap,
.wp-site-blocks footer.fitandfun-footer{
    margin-top:0!important;
    margin-block-start:0!important;
    padding-top:0!important;
}
.wp-site-blocks .fitandfun-footer-inner{
    margin-top:0!important;
}

/* If the shortcode is wrapped in a Gutenberg template-part/group, collapse
   the wrapper and its trailing block gap. */
.wp-site-blocks > .wp-block-template-part:has(.fitandfun-footer),
.wp-site-blocks > .wp-block-template-part:has(.fitandfun-footer) > *,
.wp-site-blocks > .wp-block-template-part:has(.fitandfun-footer) > .wp-block-group{
    margin-top:0!important;
    margin-block-start:0!important;
    padding-top:0!important;
    gap:0!important;
}

/* The main/content shell must end at its content, not carry a bottom spacer. */
.wp-site-blocks > main,
.wp-site-blocks > .wp-block-group > main,
.fitandfun-page-main,
.fitandfun-template-main,
.fitandfun-single-main,
.fitandfun-blank-page,
.fitandfun-anwp-main{
    margin-bottom:0!important;
    margin-block-end:0!important;
    padding-bottom:0!important;
}

/* First child of footer-bearing wrappers cannot introduce the apparent gap. */
.fitandfun-footer ~ *,
main + .wp-block-template-part,
main + .wp-block-template-part > *{
    margin-top:0!important;
    margin-block-start:0!important;
}


/* v4.3 — footer must sit directly after page content.
   Previous sticky-footer rule used margin-top:auto, which is exactly what
   created the persistent blank area above the footer. Remove that spacer. */
.wp-site-blocks > .wp-block-template-part:last-child,
.wp-site-blocks > footer:last-child,
.wp-site-blocks .fitandfun-footer,
.fitandfun-anwp-site > footer{
    margin-top:0!important;
    margin-block-start:0!important;
}


/* v4.4 — eliminate the remaining visible strip at the bottom edge of
   rendered page/plugin content. This is deliberately scoped to the final
   content chain inside main; footer internal spacing is untouched. */
.wp-site-blocks > main > :last-child,
.wp-site-blocks > .wp-block-group > main > :last-child,
.fitandfun-page-main > :last-child,
.fitandfun-template-main > :last-child,
.fitandfun-single-main > :last-child,
.fitandfun-blank-page > :last-child,
.fitandfun-competition-main > :last-child,
.fitandfun-anwp-main > :last-child,
.fitandfun-anwp-main .fitandfun-anwp-content{
    margin-bottom:0!important;
    margin-block-end:0!important;
    padding-bottom:0!important;
}

/* ANWP content has a later standard-width rule that was reintroducing
   bottom padding after the earlier global reset. */
.fitandfun-anwp-main .fitandfun-anwp-content{
    padding-bottom:0!important;
}

/* Collapse the bottom edge of common Gutenberg wrapper chains. */
.fitandfun-page-main > :last-child > :last-child,
.fitandfun-template-main > :last-child > :last-child,
.fitandfun-single-main > :last-child > :last-child,
.fitandfun-blank-page > :last-child > :last-child,
.fitandfun-competition-main > :last-child > :last-child,
.fitandfun-anwp-main > :last-child > :last-child{
    margin-bottom:0!important;
    margin-block-end:0!important;
    padding-bottom:0!important;
}


/* v4.5 — content-to-footer must be contiguous.
   Do NOT use margin-top:auto on the footer: that creates a viewport-filling
   spacer after short page content. The footer follows the document content. */
.wp-site-blocks{
    min-height:0!important;
}
.wp-site-blocks > main,
.wp-site-blocks > .wp-block-template-part{
    flex-grow:0!important;
}
.wp-site-blocks > footer,
.wp-site-blocks .fitandfun-footer,
footer.fitandfun-footer{
    flex:0 0 auto!important;
    margin-top:0!important;
    margin-block-start:0!important;
}

/* FSE footer template-part itself must not contribute a leading/trailing spacer. */
.wp-site-blocks > .wp-block-template-part:has(> .fitandfun-footer),
.wp-site-blocks > .wp-block-template-part:has(.fitandfun-footer){
    margin:0!important;
    padding:0!important;
    min-height:0!important;
    height:auto!important;
    gap:0!important;
}


/* v4.6 — Search UI */
.fitandfun-search-panel[hidden]{display:none!important}
.fitandfun-search-panel{display:block}
.fitandfun-search-page{
    width:100%;
    max-width:1180px!important;
    margin:0 auto!important;
    padding:48px 24px 56px!important;
}
.fitandfun-search-title{margin:0 0 28px!important}
.fitandfun-search-results{display:flex;flex-direction:column;gap:20px!important}
.fitandfun-search-result{
    display:flex!important;
    gap:22px!important;
    align-items:flex-start!important;
    padding:20px 0!important;
    border-bottom:1px solid #e5e7eb!important;
}
.fitandfun-search-result .wp-block-post-featured-image{flex:0 0 220px;margin:0!important}
.fitandfun-search-result .wp-block-post-featured-image img{width:220px;height:140px;object-fit:cover;border-radius:8px}
.fitandfun-search-result-body{flex:1;min-width:0}
.fitandfun-search-result-body h2{margin:0 0 8px!important}
.fitandfun-search-result-body .fitandfun-search-category{margin:0 0 7px!important}
.fitandfun-search-none{padding:40px 0!important;margin:0!important}
@media(max-width:700px){
 .fitandfun-search-result{flex-direction:column!important}
 .fitandfun-search-result .wp-block-post-featured-image{flex-basis:auto;width:100%}
 .fitandfun-search-result .wp-block-post-featured-image img{width:100%;height:210px}
}

/* v4.6 — true sticky footer without creating a gap on pages that have enough
   content. The footer-bearing template-part is the flex item, not the inner
   footer element. */
html,body{min-height:100%;margin:0!important}
body{min-height:100vh!important;display:flex!important;flex-direction:column!important}
.wp-site-blocks{
    min-height:100vh!important;
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
}
.wp-site-blocks > main{flex:1 0 auto!important;width:100%!important}
.wp-site-blocks > .wp-block-template-part:has(.fitandfun-footer){
    margin-top:auto!important;
    flex:0 0 auto!important;
    padding:0!important;
    min-height:0!important;
    height:auto!important;
}
.wp-site-blocks > .wp-block-template-part:has(.fitandfun-footer) > .fitandfun-footer{
    margin:0!important;
}

/* v4.7 — hide hamburger while the mobile off-canvas menu is open */
.fitandfun-header .fitandfun-mobile-toggle[aria-expanded="true"]{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
}

/* v4.8 — consistent page-title banners on all non-home/non-404 templates */
.ff-page-title-banner{
    margin:0!important;
    min-height:210px;
    background:
        linear-gradient(135deg,rgba(18,18,18,.88),rgba(55,39,24,.78)),
        url('/wp-content/themes/fitandfun-fse-wordpress/assets/images/fitandfun-404-background.jpg');
    background-size:cover;
    background-position:center;
}
.ff-page-title-banner .wp-block-cover__inner-container{
    width:min(1180px,calc(100% - 32px));
    margin:auto;
}
.ff-page-banner-title{
    color:#fff!important;
    font-size:clamp(34px,5vw,60px)!important;
    line-height:1.08!important;
    margin:0!important;
    text-align:center!important;
    overflow-wrap:anywhere;
}
@media(max-width:700px){
    .ff-page-title-banner{min-height:170px!important}
    .ff-page-title-banner .wp-block-cover__inner-container{width:calc(100% - 24px)}
    .ff-page-banner-title{font-size:clamp(30px,9vw,44px)!important}
}


/* Food Menu component styles transplanted from the proven 2.0.5 implementation.
   Intentionally scoped to .ff-menu-page so the v4.8 blog/header/footer cannot be changed. */
.ff-menu-page .ff-menu-hero{background:#17202a;color:#fff;text-align:center;padding:80px 20px}
.ff-menu-page .ff-menu-hero h1{font-size:clamp(2.5rem,6vw,5rem);margin:.2em 0}
.ff-menu-page .ff-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.ff-menu-page .ff-menu-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 8px 28px rgba(0,0,0,.08);text-align:center}
.ff-menu-page .ff-menu-card img{display:block;width:100%;height:auto}
.ff-menu-page .ff-menu-card h2{padding:18px 14px;margin:0;font-size:1.15rem}
.ff-menu-page .ff-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.ff-menu-page .ff-menu-grid{grid-template-columns:1fr}
.ff-menu-page .ff-menu-card img{cursor:zoom-in}
.ff-menu-page /* v2.0.1 Food Menu hover animations */
.ff-food-menu .ff-card,.ff-menu-page .ff-menu-card,.ff-menu-page .food-menu .wp-block-group,.ff-menu-page .ff-menu-item,.ff-menu-page .ff-menu-gallery figure{
  transition:transform .28s ease,box-shadow .28s ease,filter .28s ease;
}
.ff-menu-page .ff-food-menu .ff-card:hover,.ff-menu-page .ff-menu-card:hover,.ff-menu-page .food-menu .wp-block-group:hover,.ff-menu-page .ff-menu-item:hover,.ff-menu-page .ff-menu-gallery figure:hover{
  transform:translateY(-8px);
  box-shadow:0 16px 34px rgba(0,0,0,.15);
}
.ff-menu-page .ff-food-menu img,.ff-menu-page .ff-menu-card img,.ff-menu-page .ff-menu-gallery img{
  transition:transform .35s ease;
}
.ff-menu-page .ff-food-menu .ff-card:hover img,.ff-menu-page .ff-menu-card:hover img,.ff-menu-page .ff-menu-gallery figure:hover img{
  transform:scale(1.06);
}
.ff-menu-page .ff-menu-card,.ff-menu-page .ff-menu-gallery figure{
  overflow:hidden;
}
.ff-menu-page .ff-food-menu .ff-card,.ff-menu-page .ff-menu-card,.ff-menu-page .food-menu .wp-block-group,.ff-menu-page .ff-menu-item,.ff-menu-page .ff-menu-gallery figure,.ff-menu-page .ff-food-menu img,.ff-menu-page .ff-menu-card img,.ff-menu-page .ff-menu-gallery img{
    transition:none !important;
  }
.ff-menu-page{width:100%;margin:0;padding:0}
.ff-menu-page .ff-section{padding:88px 24px}
.ff-menu-page .ff-wrap{max-width:1180px;margin-left:auto;margin-right:auto}
.ff-menu-page .ff-menu-hero{
  background:#17202a;
  color:#fff;
  text-align:center;
  padding:80px 20px;
}
.ff-menu-page .ff-menu-hero h1{
  font-size:clamp(2.5rem,6vw,5rem);
  margin:.2em 0;
}
.ff-menu-page .ff-eyebrow{letter-spacing:.16em;font-weight:700;color:#f4b400}
.ff-menu-page .ff-menu-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px;
}
.ff-menu-page .ff-menu-card{
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 8px 28px rgba(0,0,0,.08);
  text-align:center;
  transition:transform .28s ease,box-shadow .28s ease,filter .28s ease;
}
.ff-menu-page .ff-menu-card:hover{
  transform:translateY(-8px);
  box-shadow:0 16px 34px rgba(0,0,0,.15);
}
.ff-menu-page .ff-menu-card img{
  display:block;
  width:100%;
  height:auto;
  cursor:zoom-in;
  transition:transform .35s ease;
}
.ff-menu-page .ff-menu-card:hover img{transform:scale(1.06)}
.ff-menu-page .ff-menu-card h2{
  padding:18px 14px;
  margin:0;
  font-size:1.15rem;
}
@media(max-width:900px){
  .ff-menu-page .ff-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .ff-menu-page .ff-section{padding:64px 18px}
  .ff-menu-page .ff-menu-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  .ff-menu-page .ff-menu-card,
  .ff-menu-page .ff-menu-card img{
    transition:none!important;
  }
}


/* v4.8.3 — proven 2.0.5 Home slider styles, isolated to Home components */
.ff-hero-content{max-width:900px;text-align:center;padding:100px 24px}
.ff-eyebrow{letter-spacing:.16em;font-weight:700;color:#f4b400}
.ff-hero-slider{position:relative;min-height:650px;overflow:hidden}
.ff-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity .7s ease;display:flex;align-items:center}
.ff-slide:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.78),rgba(0,0,0,.25))}
.ff-slide.active{opacity:1;position:absolute}
.ff-slide .ff-hero-content{position:relative;z-index:2;max-width:760px;margin-left:max(24px,calc((100% - 1180px)/2));color:#fff}
.ff-slide h1{font-size:clamp(2.8rem,6vw,5.5rem);margin:.3rem 0}
.ff-slider-prev,.ff-slider-next{position:absolute;z-index:4;top:50%;transform:translateY(-50%);border:0;background:rgba(0,0,0,.35);color:#fff;font-size:3rem;width:54px;height:70px;cursor:pointer}
.ff-slider-prev{left:15px}
.ff-slider-next{right:15px}
.ff-slider-dots{position:absolute;z-index:4;bottom:24px;left:50%;transform:translateX(-50%);display:flex;gap:10px}
.ff-slider-dots button{width:10px;height:10px;border-radius:50%;border:0;padding:0;background:#fff;opacity:.45}
.ff-slider-dots button.active{opacity:1;transform:scale(1.25)}
.ff-hero-slider{min-height:560px}
.ff-slider-prev,.ff-slider-next{display:none}
.ff-slide .ff-hero-content{margin:0 24px}
.ff-slide h1{font-size:2.8rem}
.ff-hero-slider{height:calc(100svh - var(--ff-header-height));min-height:calc(100vh - var(--ff-header-height));margin:0!important;padding:0!important}
.ff-slide{height:100%;min-height:100%;align-items:center}
.ff-slide .ff-hero-content{width:min(760px,calc(100% - 48px));margin-left:max(24px,calc((100% - 1180px)/2));margin-right:24px;padding:0;text-align:left}
.ff-slide .ff-hero-content>p:last-child{margin-bottom:0}
.ff-slide h1{line-height:1.05}
.ff-slide .ff-eyebrow{margin-top:0}
.ff-hero-slider{height:calc(100svh - var(--ff-header-height));min-height:calc(100vh - var(--ff-header-height))}
.ff-slide .ff-hero-content{width:calc(100% - 36px);margin:0 18px;text-align:left}
.ff-slide h1{font-size:clamp(2.45rem,12vw,4rem)}
.ff-hero-slider{height:calc(100svh - 70px)!important;min-height:calc(100vh - 70px)!important}
.ff-hero-slider{position:relative;overflow:hidden}
.ff-slide{position:absolute;inset:0;opacity:0;visibility:hidden}
.ff-slide.active{opacity:1;visibility:visible}

/* v4.8.4 — exact 2.0.5 component CSS required by Home/Food Menu */
.ff-section{padding:88px 24px}
.ff-wrap{max-width:1180px;margin:auto}
.ff-hero-content{max-width:900px;text-align:center;padding:100px 24px}
.ff-services{grid-template-columns:repeat(5,1fr)}
.ff-card{background:#fff;border-radius:18px;padding:28px;box-shadow:0 12px 35px #00000012}
.ff-icon{font-size:42px}
.ff-restaurant{background:linear-gradient(135deg,#fff7ed,#fff1f2)}
.ff-turf{background:linear-gradient(135deg,#f0fdf4,#ecfdf5)}
.ff-two{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.ff-two img{width:100%;border-radius:20px;box-shadow:0 20px 45px #0002}
.ff-contact .ff-card{background:#ffffff18;color:#fff;border:1px solid #ffffff33;text-align:center}
.ff-services{grid-template-columns:repeat(2,1fr)}
.ff-two{grid-template-columns:1fr}
.ff-services{grid-template-columns:1fr}
.ff-section{padding:64px 18px}
.ff-menu-hero{background:#17202a;color:#fff;text-align:center;padding:80px 20px}
.ff-menu-hero h1{font-size:clamp(2.5rem,6vw,5rem);margin:.2em 0}
.ff-eyebrow{letter-spacing:.16em;font-weight:700;color:#f4b400}
.ff-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.ff-menu-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 8px 28px rgba(0,0,0,.08);text-align:center}
.ff-menu-card img{display:block;width:100%;height:auto}
.ff-menu-card h2{padding:18px 14px;margin:0;font-size:1.15rem}
.ff-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.ff-menu-grid{grid-template-columns:1fr}
.ff-hero-slider{position:relative;min-height:650px;overflow:hidden}
.ff-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity .7s ease;display:flex;align-items:center}
.ff-slide:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.78),rgba(0,0,0,.25))}
.ff-slide.active{opacity:1;position:absolute}
.ff-slide .ff-hero-content{position:relative;z-index:2;max-width:760px;margin-left:max(24px,calc((100% - 1180px)/2));color:#fff}
.ff-slide h1{font-size:clamp(2.8rem,6vw,5.5rem);margin:.3rem 0}
.ff-slider-prev,.ff-slider-next{position:absolute;z-index:4;top:50%;transform:translateY(-50%);border:0;background:rgba(0,0,0,.35);color:#fff;font-size:3rem;width:54px;height:70px;cursor:pointer}
.ff-slider-prev{left:15px}
.ff-slider-next{right:15px}
.ff-slider-dots{position:absolute;z-index:4;bottom:24px;left:50%;transform:translateX(-50%);display:flex;gap:10px}
.ff-slider-dots button{width:10px;height:10px;border-radius:50%;border:0;padding:0;background:#fff;opacity:.45}
.ff-slider-dots button.active{opacity:1;transform:scale(1.25)}
.ff-hero-slider{min-height:560px}
.ff-slider-prev,.ff-slider-next{display:none}
.ff-slide .ff-hero-content{margin:0 24px}
.ff-slide h1{font-size:2.8rem}
.ff-hero-slider{height:calc(100svh - var(--ff-header-height));min-height:calc(100vh - var(--ff-header-height));margin:0!important;padding:0!important}
.ff-slide{height:100%;min-height:100%;align-items:center}
.ff-slide .ff-hero-content{width:min(760px,calc(100% - 48px));margin-left:max(24px,calc((100% - 1180px)/2));margin-right:24px;padding:0;text-align:left}
.ff-slide .ff-hero-content>p:last-child{margin-bottom:0}
.ff-slide h1{line-height:1.05}
.ff-slide .ff-eyebrow{margin-top:0}
.ff-section:first-of-type{margin-top:0!important}
.ff-hero-slider{height:calc(100svh - var(--ff-header-height));min-height:calc(100vh - var(--ff-header-height))}
.ff-slide .ff-hero-content{width:calc(100% - 36px);margin:0 18px;text-align:left}
.ff-slide h1{font-size:clamp(2.45rem,12vw,4rem)}
.ff-hero-slider{height:calc(100svh - 70px)!important;min-height:calc(100vh - 70px)!important}
.ff-menu-card img{cursor:zoom-in}
.ff-restaurant-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:28px 0}
.ff-restaurant-stats>div,.ff-featured-categories>div{background:#fff;border-radius:14px;padding:18px;box-shadow:0 8px 24px rgba(0,0,0,.08)}
.ff-restaurant-stats strong{display:block;font-size:28px;color:#e86b1c;line-height:1.1}
.ff-restaurant-stats span{display:block;margin-top:6px;font-size:14px}
.ff-featured-title{margin:22px 0 12px}
.ff-featured-categories{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;text-align:left}
.ff-featured-categories>div{display:flex;justify-content:space-between;gap:12px;padding:14px 16px;font-size:14px}
.ff-featured-categories b{white-space:nowrap}
.ff-restaurant-gallery img{cursor:zoom-in}
.ff-restaurant-stats{grid-template-columns:repeat(2,1fr)}
.ff-featured-categories{grid-template-columns:1fr}
.ff-featured-categories>div{font-size:13px}
.ff-restaurant-card img{display:block;width:100%;height:100%;min-height:260px;object-fit:cover;transition:transform .35s ease}
.ff-restaurant-card:focus-within img,.ff-restaurant-card:hover img{transform:scale(1.06)}
.ff-restaurant-card figcaption{position:absolute;left:0;right:0;bottom:0;padding:58px 20px 20px;color:#fff;text-align:left;background:linear-gradient(to top,rgba(0,0,0,.92),rgba(0,0,0,.05))}
.ff-restaurant-card h3{margin:0 0 6px;color:#fff;font-size:22px}
.ff-restaurant-card p{margin:0 0 10px;color:rgba(255,255,255,.88);font-size:14px;line-height:1.45}
.ff-restaurant-card span{font-size:13px;font-weight:700;color:#fff}
.ff-restaurant-card .ff-explore-menu:hover{text-decoration:underline}
.ff-turf .feature{display:flex;align-items:flex-start;gap:14px;margin:18px 0;font-size:16px;line-height:1.5}
.ff-turf .feature>div:first-child{font-size:24px;line-height:1.25}
.ff-turf .feature b{color:#17202a}
.ff-turf .price{display:inline-block;margin-top:12px;padding:16px 24px;background:#fff;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.08);font-size:16px;line-height:1.5}
.ff-turf .price b{font-size:28px;color:#16a34a}
.ff-turf .ff-two>div:last-child{display:flex}
.ff-turf .ff-two>div:last-child img{width:100%;height:100%;min-height:0;object-fit:cover;display:block}
.ff-turf .ff-two>div:first-child{padding-bottom:0}
.ff-turf .ff-two>div:last-child{height:auto}
.ff-turf .ff-two>div:last-child{min-height:300px}
.ff-turf .ff-two>div:last-child img{height:300px}
.ff-turf h2,.ff-restaurant h2,.ff-booking h2{
  font-size:clamp(2rem,4vw,3rem);
  line-height:1.15;
  letter-spacing:-.02em;
}
.ff-section h3,.ff-card h3,.ff-restaurant-card h3{
  font-size:clamp(1.25rem,2vw,1.55rem);
  line-height:1.25;
}
.ff-turf .ff-two>img{
    width:100%;
    height:auto;
    aspect-ratio:1 / 1;
    min-height:0;
    object-fit:cover;
    align-self:start;
  }
.ff-turf .ff-two>div:last-child{
    width:100%;
    height:auto;
    aspect-ratio:1 / 1;
    min-height:0;
    overflow:hidden;
    align-self:stretch;
  }
.ff-turf .ff-two>div:last-child img{
    width:100%;
    height:100%;
    min-height:0;
    object-fit:cover;
    display:block;
  }
.ff-restaurant-card,.ff-featured-categories>div,.ff-restaurant-stats>div,.ff-gallery .ff-restaurant-card{
  transition:transform .28s ease, box-shadow .28s ease;
  will-change:transform;
}
.ff-services .ff-card:hover,.ff-restaurant-card:hover,.ff-featured-categories>div:hover,.ff-restaurant-stats>div:hover{
  transform:translateY(-8px);
  box-shadow:0 16px 36px rgba(0,0,0,.14);
}
.ff-restaurant-card,.ff-featured-categories>div,.ff-restaurant-stats>div{
  opacity:0;
  transform:translateY(24px);
}
.ff-card.ff-in-view,.ff-restaurant-card.ff-in-view,.ff-featured-categories>div.ff-in-view,.ff-restaurant-stats>div.ff-in-view{
  animation:ffCardReveal .65s ease forwards;
}
.ff-turf .ff-two>img{width:100%;height:auto;aspect-ratio:1 / 1;object-fit:cover}
.ff-turf .ff-two>div:last-child{aspect-ratio:1 / 1;min-height:0}
.ff-card,.ff-restaurant-card,.ff-featured-categories>div,.ff-restaurant-stats>div{
    opacity:1;transform:none;animation:none;transition:none;
  }
.ff-featured-categories>div,.ff-restaurant-stats>div{
  transition:transform .22s ease, box-shadow .22s ease;
}
.ff-services .ff-card:hover,.ff-featured-categories>div:hover,.ff-restaurant-stats>div:hover{
  animation:ffCardBounce .62s cubic-bezier(.28,.84,.42,1) both;
}
.ff-services .ff-card:hover,.ff-featured-categories>div:hover,.ff-restaurant-stats>div:hover{
    animation:none;
    transform:translateY(-4px);
  }
.ff-featured-categories>div,.ff-restaurant-stats>div{
  opacity:1 !important;
  visibility:visible !important;
  animation:none !important;
}
.ff-services .ff-card:hover,.ff-featured-categories>div:hover,.ff-restaurant-stats>div:hover{
  opacity:1 !important;
  visibility:visible !important;
  animation:ffVisibleBounce .75s ease-in-out both !important;
}
.ff-featured-categories>div:hover{
  animation:none !important;
  transform:none !important;
  transition:none !important;
  opacity:1 !important;
  visibility:visible !important;
}
.ff-contact-cards .ff-card{text-align:center}
.ff-contact-cards .ff-card h3{font-size:0;line-height:1;margin:0 0 12px}
.ff-contact-cards .ff-card h3::before{display:block;font-size:42px;line-height:1;margin-bottom:12px}
.ff-contact-cards .ff-card h3::after{display:block;font-size:18px;line-height:1.25}
.ff-contact-cards .ff-card:nth-child(1) h3::before{content:'📞'}
.ff-contact-cards .ff-card:nth-child(1) h3::after{content:'Call Us'}
.ff-contact-cards .ff-card:nth-child(2) h3::before{content:'📍'}
.ff-contact-cards .ff-card:nth-child(2) h3::after{content:'Visit Us'}
.ff-contact-cards .ff-card:nth-child(3) h3::before{content:'🕒'}
.ff-contact-cards .ff-card:nth-child(3) h3::after{content:'Opening Hours'}
.ff-menu-card,.ff-menu-item,.ff-menu-gallery figure{
  transition:transform .28s ease,box-shadow .28s ease,filter .28s ease;
}
.ff-food-menu .ff-card:hover,.ff-menu-card:hover,.ff-menu-item:hover,.ff-menu-gallery figure:hover{
  transform:translateY(-8px);
  box-shadow:0 16px 34px rgba(0,0,0,.15);
}
.ff-food-menu img,.ff-menu-card img,.ff-menu-gallery img{
  transition:transform .35s ease;
}
.ff-food-menu .ff-card:hover img,.ff-menu-card:hover img,.ff-menu-gallery figure:hover img{
  transform:scale(1.06);
}
.ff-menu-card,.ff-menu-gallery figure{
  overflow:hidden;
}
.ff-food-menu .ff-card,.ff-menu-card,.ff-menu-item,.ff-menu-gallery figure,.ff-food-menu img,.ff-menu-card img,.ff-menu-gallery img{
    transition:none !important;
  }

/* ============================================================
   FIT & FUN v4.8.5 — HOME VISUAL PATCH
   Source of truth: fitandfun-fse-wordpress 2.0.5 Home CSS.
   Scope: Home content only. Header/footer/blog are intentionally excluded.
   ============================================================ */
main .ff-section{padding:88px 24px}
main .ff-wrap{max-width:1180px;margin:0 auto}
main .ff-grid{display:grid;gap:24px}
main .ff-services{grid-template-columns:repeat(5,minmax(0,1fr))}
main .ff-card{background:#fff;border-radius:18px;padding:28px;box-shadow:0 12px 35px #00000012}
main .ff-icon{font-size:42px}
main .ff-restaurant{background:linear-gradient(135deg,#fff7ed,#fff1f2);text-align:center}
main .ff-restaurant-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:28px 0}
main .ff-restaurant-stats>div,
main .ff-featured-categories>div{background:#fff;border-radius:14px;padding:18px;box-shadow:0 8px 24px rgba(0,0,0,.08)}
main .ff-restaurant-stats strong{display:block;font-size:28px;color:#e86b1c;line-height:1.1}
main .ff-restaurant-stats span{display:block;margin-top:6px;font-size:14px}
main .ff-featured-title{margin:22px 0 12px}
main .ff-featured-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;text-align:left}
main .ff-featured-categories>div{display:flex;justify-content:space-between;gap:12px;padding:14px 16px;font-size:14px}
main .ff-featured-categories b{white-space:nowrap}
main .ff-center{text-align:center}
main .ff-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}
main .ff-restaurant-gallery{margin-top:32px}
main .ff-restaurant-gallery img{cursor:zoom-in}
main .ff-restaurant-card{position:relative;margin:0;overflow:hidden;border-radius:16px;cursor:pointer;background:#111;min-height:260px}
main .ff-restaurant-card img{display:block;width:100%;height:100%;min-height:260px;object-fit:cover;transition:transform .35s ease}
main .ff-restaurant-card:focus-within img,
main .ff-restaurant-card:hover img{transform:scale(1.06)}
main .ff-restaurant-card figcaption{position:absolute;left:0;right:0;bottom:0;padding:58px 20px 20px;color:#fff;text-align:left;background:linear-gradient(to top,rgba(0,0,0,.92),rgba(0,0,0,.05))}
main .ff-restaurant-card h3{margin:0 0 6px;color:#fff;font-size:22px}
main .ff-restaurant-card p{margin:0 0 10px;color:rgba(255,255,255,.88);font-size:14px;line-height:1.45}
main .ff-restaurant-card .ff-explore-menu{color:#fff;text-decoration:none;font-size:13px;font-weight:700;display:inline-block}
main .ff-restaurant-card .ff-explore-menu:hover{text-decoration:underline}

main .ff-turf{background:linear-gradient(135deg,#f0fdf4,#ecfdf5)}
main .ff-two{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
main .ff-two img{width:100%;border-radius:20px;box-shadow:0 20px 45px #0002}
main .ff-turf .ff-two{align-items:stretch}
main .ff-turf .ff-two>div:last-child{display:flex}
main .ff-turf .ff-two>div:last-child img{width:100%;height:100%;min-height:0;object-fit:cover;display:block}
main .ff-turf .feature{display:flex;align-items:flex-start;gap:14px;margin:18px 0;font-size:16px;line-height:1.5}
main .ff-turf .feature>div:first-child{font-size:24px;line-height:1.25}
main .ff-turf .feature b{color:#17202a}
main .ff-turf .price{display:inline-block;margin-top:12px;padding:16px 24px;background:#fff;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.08);font-size:16px;line-height:1.5}
main .ff-turf .price b{font-size:28px;color:#16a34a}

main .ff-contact{background:linear-gradient(135deg,#581c87,#831843);color:#fff}
main .ff-contact-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
main .ff-contact .ff-card{background:#ffffff18;color:#fff;border:1px solid #ffffff33;text-align:center}
main .ff-contact-booking{margin:0 0 18px}
main .ff-contact-booking .ff-btn{display:inline-flex;align-items:center;justify-content:center}
main .ff-contact-cards .ff-card h3{font-size:0;line-height:1;margin:0 0 12px}
main .ff-contact-cards .ff-card h3::before{display:block;font-size:42px;line-height:1;margin-bottom:12px}
main .ff-contact-cards .ff-card h3::after{display:block;font-size:18px;line-height:1.25}
main .ff-contact-cards .ff-card:nth-child(1) h3::before{content:'📞'}
main .ff-contact-cards .ff-card:nth-child(1) h3::after{content:'Call Us'}
main .ff-contact-cards .ff-card:nth-child(2) h3::before{content:'📍'}
main .ff-contact-cards .ff-card:nth-child(2) h3::after{content:'Visit Us'}
main .ff-contact-cards .ff-card:nth-child(3) h3::before{content:'🕒'}
main .ff-contact-cards .ff-card:nth-child(3) h3::after{content:'Opening Hours'}
main .ff-map{margin-top:30px;border-radius:18px;overflow:hidden;min-height:420px;box-shadow:0 12px 40px rgba(0,0,0,.12)}
main .ff-map iframe{width:100%;height:420px;border:0;display:block}

@media(max-width:900px){
  main .ff-services{grid-template-columns:repeat(2,minmax(0,1fr))}
  main .ff-gallery,main .ff-restaurant-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  main .ff-two{grid-template-columns:1fr}
  main .ff-contact-cards{grid-template-columns:1fr}
}
@media(max-width:800px){
  main .ff-restaurant-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  main .ff-featured-categories{grid-template-columns:1fr}
  main .ff-featured-categories>div{font-size:13px}
  main .ff-turf .ff-two>div:last-child{min-height:300px}
  main .ff-turf .ff-two>div:last-child img{height:300px}
}
@media(max-width:600px){
  main .ff-services{grid-template-columns:1fr}
  main .ff-section{padding:64px 18px}
}


/* v4.8.6 — unified image lightbox for Home + Food Menu */
html.ff-image-lightbox-open,
body.ff-image-lightbox-open{overflow:hidden!important}
.ff-home-page img[data-ff-lightbox-ready="1"],
.ff-menu-page img[data-ff-lightbox-ready="1"]{cursor:zoom-in!important}
.fitandfun-image-lightbox{cursor:zoom-out}
.fitandfun-image-lightbox img{cursor:default}
.fitandfun-image-lightbox.is-open{display:flex!important}
.fitandfun-lightbox-close{cursor:pointer!important}


/* v4.8.7 — restored Home action buttons; scoped to Home content */
main.ff-home-page .ff-btn,
main.ff-home-page a.ff-btn,
main.ff-home-page .wp-element-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px;
  min-height:42px;
  padding:11px 20px!important;
  border:0!important;
  border-radius:8px!important;
  background:linear-gradient(90deg,#7c3aed,#ec4899)!important;
  color:#fff!important;
  text-decoration:none!important;
  font-weight:700!important;
  line-height:1.2!important;
  cursor:pointer!important;
  box-shadow:0 6px 16px rgba(124,58,237,.20);
  opacity:1!important;
  visibility:visible!important;
}
main.ff-home-page .ff-btn:hover,
main.ff-home-page a.ff-btn:hover,
main.ff-home-page .wp-element-button:hover{
  transform:translateY(-2px);
  filter:brightness(1.04);
}
main.ff-home-page .ff-btn.green,
main.ff-home-page a.ff-btn.green{
  background:linear-gradient(90deg,#16a34a,#10b981)!important;
}
main.ff-home-page .ff-hero-content .ff-btn{margin:2px 4px 2px 0}

/* Lightbox */
.fitandfun-image-lightbox[aria-hidden="true"]{display:none!important}
.fitandfun-image-lightbox.is-open{display:flex!important}
.fitandfun-image-lightbox{position:fixed;inset:0;z-index:999999;align-items:center;justify-content:center;padding:24px;background:rgba(0,0,0,.90)}
.fitandfun-image-lightbox img{display:block;max-width:94vw;max-height:88vh;width:auto;height:auto;object-fit:contain;cursor:default;box-shadow:0 12px 50px rgba(0,0,0,.55)}
.fitandfun-lightbox-close{position:absolute;top:14px;right:18px;z-index:2;width:50px;height:50px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:38px;line-height:1;cursor:pointer}
.fitandfun-lightbox-close:hover{background:rgba(255,255,255,.24)}
html.ff-image-lightbox-open,body.ff-image-lightbox-open{overflow:hidden!important}
@media(max-width:600px){.fitandfun-image-lightbox{padding:14px}.fitandfun-lightbox-close{top:10px;right:10px;width:44px;height:44px;font-size:32px}}

/* v4.8.8 — Lightbox must work on every page, including newly-created pages assigned the Food Menu template. */
.fitandfun-image-lightbox[aria-hidden="true"]{display:none!important}
.fitandfun-image-lightbox.is-open{display:flex!important}
.fitandfun-image-lightbox{position:fixed;inset:0;z-index:999999;align-items:center;justify-content:center;padding:24px;background:rgba(0,0,0,.90);cursor:zoom-out}
.fitandfun-image-lightbox img{display:block;max-width:94vw;max-height:88vh;width:auto;height:auto;object-fit:contain;cursor:default;box-shadow:0 12px 50px rgba(0,0,0,.55)}
.fitandfun-lightbox-close{position:absolute;top:14px;right:18px;z-index:2;width:50px;height:50px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:38px;line-height:1;cursor:pointer}
.fitandfun-lightbox-close:hover{background:rgba(255,255,255,.24)}
html.ff-image-lightbox-open,body.ff-image-lightbox-open{overflow:hidden!important}
body:not(.ff-image-lightbox-open){overflow-x:hidden}
@media(max-width:600px){.fitandfun-image-lightbox{padding:14px}.fitandfun-lightbox-close{top:10px;right:10px;width:44px;height:44px;font-size:32px}}


/* v4.9.2 — Kadence-style navigation dropdowns: desktop + footer + mobile */
.fitandfun-primary-nav ul,
.fitandfun-footer-nav ul,
.fitandfun-mobile-nav ul{list-style:none;margin:0;padding:0}
.fitandfun-primary-nav li,
.fitandfun-footer-nav li,
.fitandfun-mobile-nav li{position:relative}
.fitandfun-submenu-toggle{display:none}

/* Desktop dropdown: no hover gap, vertical children, nested menus to the right. */
@media (min-width:1081px){
  .fitandfun-primary-nav > ul,
  .fitandfun-primary-nav > .menu,
  .fitandfun-footer-nav > ul,
  .fitandfun-footer-nav > .menu{display:flex;align-items:center}
  .fitandfun-primary-nav li > ul,
  .fitandfun-primary-nav li > .sub-menu,
  .fitandfun-footer-nav li > ul,
  .fitandfun-footer-nav li > .sub-menu{
    position:absolute!important;
    top:100%!important;
    left:0!important;
    display:block!important;
    width:230px!important;
    min-width:230px!important;
    margin:0!important;
    padding:5px 0!important;
    background:#fff!important;
    border:1px solid #e2e5ef!important;
    border-radius:0!important;
    box-shadow:0 8px 22px rgba(0,0,0,.16)!important;
    z-index:100000!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateY(0)!important;
    transition:opacity .15s ease,visibility .15s ease!important;
  }
  .fitandfun-primary-nav li:hover > ul,
  .fitandfun-primary-nav li:focus-within > ul,
  .fitandfun-primary-nav li.ff-submenu-open > ul,
  .fitandfun-footer-nav li:hover > ul,
  .fitandfun-footer-nav li:focus-within > ul,
  .fitandfun-footer-nav li.ff-submenu-open > ul{
    opacity:1!important;visibility:visible!important;pointer-events:auto!important;
  }
  .fitandfun-primary-nav li > ul li,
  .fitandfun-primary-nav li > .sub-menu li,
  .fitandfun-footer-nav li > ul li,
  .fitandfun-footer-nav li > .sub-menu li{
    display:block!important;width:100%!important;margin:0!important;padding:0!important;
  }
  .fitandfun-primary-nav li > ul a,
  .fitandfun-primary-nav li > .sub-menu a,
  .fitandfun-footer-nav li > ul a,
  .fitandfun-footer-nav li > .sub-menu a{
    display:block!important;width:100%!important;box-sizing:border-box!important;
    padding:10px 13px!important;margin:0!important;
    color:#071c83!important;background:#fff!important;
    font-weight:700!important;text-decoration:none!important;white-space:nowrap!important;
    border-bottom:1px solid #1727df!important;
  }
  .fitandfun-primary-nav li > ul li:last-child > a,
  .fitandfun-primary-nav li > .sub-menu li:last-child > a,
  .fitandfun-footer-nav li > ul li:last-child > a,
  .fitandfun-footer-nav li > .sub-menu li:last-child > a{border-bottom:0!important}
  .fitandfun-primary-nav li > ul a:hover,
  .fitandfun-primary-nav li > ul a:focus,
  .fitandfun-primary-nav li > .sub-menu a:hover,
  .fitandfun-primary-nav li > .sub-menu a:focus,
  .fitandfun-footer-nav li > ul a:hover,
  .fitandfun-footer-nav li > ul a:focus,
  .fitandfun-footer-nav li > .sub-menu a:hover,
  .fitandfun-footer-nav li > .sub-menu a:focus{background:#f2f5ff!important;color:#0016a0!important}

  /* Every nested submenu opens beside its parent, never underneath it. */
  .fitandfun-primary-nav li > ul li > ul,
  .fitandfun-primary-nav li > .sub-menu li > .sub-menu,
  .fitandfun-footer-nav li > ul li > ul,
  .fitandfun-footer-nav li > .sub-menu li > .sub-menu{
    top:0!important;left:100%!important;margin:0!important;
  }
  .fitandfun-primary-nav li.ff-has-submenu > a,
  .fitandfun-footer-nav li.ff-has-submenu > a{padding-right:26px!important}
  .fitandfun-primary-nav li.ff-has-submenu > .fitandfun-submenu-toggle,
  .fitandfun-footer-nav li.ff-has-submenu > .fitandfun-submenu-toggle{
    display:block!important;position:absolute!important;right:5px!important;top:50%!important;
    transform:translateY(-50%)!important;width:18px!important;height:22px!important;
    padding:0!important;margin:0!important;border:0!important;background:transparent!important;
    color:#1460d2!important;font-size:14px!important;line-height:1!important;z-index:100001!important;
  }
}

/* Footer menus must work independently of the header. */
.fitandfun-footer-nav{position:relative;z-index:100001}
.fitandfun-footer-nav li{z-index:100002}

/* Mobile drawer: screenshot-style dark panel with real expandable child rows. */
@media (max-width:1080px){
  .fitandfun-mobile-nav li{border-bottom:1px solid rgba(120,150,255,.22)!important}
  .fitandfun-mobile-nav > ul > li,
  .fitandfun-mobile-nav > .menu > li{position:relative!important}
  .fitandfun-mobile-nav li > a{
    display:block!important;
    min-height:44px!important;
    padding:13px 54px 13px 8px!important;
    color:#f7f8ff!important;
    background:transparent!important;
    text-decoration:none!important;
    font-weight:600!important;
  }
  .fitandfun-mobile-nav li > a:hover{color:#4aa3ff!important}
  .fitandfun-mobile-nav li > ul,
  .fitandfun-mobile-nav li > .sub-menu{
    display:none!important;
    margin:0!important;padding:0 0 0 13px!important;
    background:rgba(0,0,0,.10)!important;
  }
  .fitandfun-mobile-nav li.ff-submenu-open > ul,
  .fitandfun-mobile-nav li.ff-submenu-open > .sub-menu{display:block!important}
  .fitandfun-mobile-nav li > ul li > a,
  .fitandfun-mobile-nav li > .sub-menu li > a{
    min-height:42px!important;padding:12px 44px 12px 12px!important;
    color:#e8ebff!important;font-size:.94em!important;
    border-top:1px solid rgba(120,150,255,.14)!important;
  }
  .fitandfun-mobile-nav .fitandfun-submenu-toggle{
    display:flex!important;align-items:center!important;justify-content:center!important;
    position:absolute!important;right:0!important;top:0!important;width:42px!important;height:44px!important;
    padding:0!important;margin:0!important;border:0!important;
    border-left:1px solid rgba(120,150,255,.20)!important;
    background:transparent!important;color:#b7c7ff!important;cursor:pointer!important;
    z-index:3!important;font-size:18px!important;line-height:1!important;
  }
  .fitandfun-mobile-nav .fitandfun-submenu-toggle span{display:block!important;transition:transform .18s ease!important}
  .fitandfun-mobile-nav li.ff-submenu-open > .fitandfun-submenu-toggle span{transform:rotate(180deg)!important}
  .fitandfun-mobile-drawer{background:#030746!important;color:#fff!important;padding:0 13px 24px!important}
  .fitandfun-mobile-drawer-top{padding:14px 0!important;border-bottom:1px solid rgba(120,150,255,.20)!important}
  .fitandfun-mobile-nav{padding:0!important}
  .fitandfun-mobile-nav > ul,
  .fitandfun-mobile-nav > .menu{margin:0!important}
  .fitandfun-mobile-button{margin-top:18px!important}
}

/* If a theme/menu implementation uses .sub-menu without menu-item-has-children,
   keep the structural selector working as well. */
.fitandfun-primary-nav li > .sub-menu,
.fitandfun-footer-nav li > .sub-menu,
.fitandfun-mobile-nav li > .sub-menu{box-sizing:border-box}


/* v4.9.3 — Footer boundary cleanup
   Eliminate FSE/flex spacer whitespace around the footer. The footer should
   follow the page content directly, with no white band between content,
   map/contact sections, and the footer. */
html,body{
    margin:0!important;
    padding:0!important;
}
body{
    min-height:0!important;
}
.wp-site-blocks{
    min-height:0!important;
    height:auto!important;
    display:flex!important;
    flex-direction:column!important;
    row-gap:0!important;
}
.wp-site-blocks > main{
    flex:0 0 auto!important;
    margin:0!important;
    padding-bottom:0!important;
}
.wp-site-blocks > .wp-block-template-part:has(.fitandfun-footer),
.wp-site-blocks > .wp-block-template-part:has(.fitandfun-footer) > *{
    margin:0!important;
    padding-top:0!important;
    padding-bottom:0!important;
    min-height:0!important;
    height:auto!important;
    gap:0!important;
}
.wp-site-blocks > .wp-block-template-part:has(.fitandfun-footer){
    width:100%!important;
    background:var(--ff-footer-bg,#111111)!important;
}
.wp-site-blocks > .wp-block-template-part:has(.fitandfun-footer) > .fitandfun-footer{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    background:var(--ff-footer-bg,#111111)!important;
}
.fitandfun-footer{
    margin:0!important;
    margin-block-start:0!important;
    margin-block-end:0!important;
    border:0!important;
}
.fitandfun-footer-inner{
    margin-top:0!important;
}
/* Prevent Gutenberg's last-child flow margins from creating a white strip. */
.wp-site-blocks > main > :last-child,
.wp-site-blocks > main > :last-child > :last-child,
.wp-site-blocks > main > :last-child > :last-child > :last-child{
    margin-bottom:0!important;
    margin-block-end:0!important;
}


/* v4.9.4 — final navigation + Home spacing polish
   Scoped to navigation/footer/Home components. Existing blog/header/footer
   structure remains intact. */

/* Home: give the map/contact section breathing room before the footer. */
main.ff-home-page .ff-contact{
    padding-bottom:96px!important;
}

/* Home hero: more generous, professional text breathing room. */
main.ff-home-page .ff-hero-content{
    box-sizing:border-box!important;
    width:min(820px,calc(100% - 48px))!important;
    padding:48px 56px!important;
}
main.ff-home-page .ff-hero-content h1{
    margin:10px 0 18px!important;
}
main.ff-home-page .ff-hero-content .ff-eyebrow{
    margin-bottom:10px!important;
}
main.ff-home-page .ff-hero-content > p:not(.ff-eyebrow){
    max-width:700px;
}
@media(max-width:700px){
    main.ff-home-page .ff-contact{padding-bottom:72px!important}
    main.ff-home-page .ff-hero-content{
        width:calc(100% - 32px)!important;
        padding:32px 24px!important;
    }
}

/* Dropdowns: size to content, wrap rather than spill out of the viewport. */
@media(min-width:1081px){
    .fitandfun-primary-nav,
    .fitandfun-footer-nav,
    .fitandfun-primary-nav ul,
    .fitandfun-footer-nav ul,
    .fitandfun-primary-nav li,
    .fitandfun-footer-nav li{
        overflow:visible!important;
    }
    .fitandfun-primary-nav li > ul,
    .fitandfun-primary-nav li > .sub-menu,
    .fitandfun-footer-nav li > ul,
    .fitandfun-footer-nav li > .sub-menu{
        width:max-content!important;
        min-width:230px!important;
        max-width:min(430px,calc(100vw - 24px))!important;
        box-sizing:border-box!important;
        overflow:visible!important;
    }
    .fitandfun-primary-nav li > ul a,
    .fitandfun-primary-nav li > .sub-menu a,
    .fitandfun-footer-nav li > ul a,
    .fitandfun-footer-nav li > .sub-menu a{
        width:auto!important;
        min-width:100%!important;
        max-width:100%!important;
        white-space:normal!important;
        overflow-wrap:anywhere!important;
        word-break:normal!important;
        line-height:1.35!important;
        padding-right:34px!important;
    }

    /* Footer menus open upward, so they never manufacture a white/empty area
       below the footer or disappear off the viewport. */
    .fitandfun-footer-nav li > ul,
    .fitandfun-footer-nav li > .sub-menu{
        top:auto!important;
        bottom:100%!important;
        left:0!important;
        margin:0 0 0 0!important;
    }
    .fitandfun-footer-nav li > ul li > ul,
    .fitandfun-footer-nav li > .sub-menu li > .sub-menu{
        top:auto!important;
        bottom:0!important;
        left:100%!important;
        margin:0!important;
    }
    /* Keep the last/right-hand footer item inside the viewport when possible. */
    .fitandfun-footer-nav > ul > li:last-child > ul,
    .fitandfun-footer-nav > .menu > li:last-child > ul,
    .fitandfun-footer-nav > ul > li:last-child > .sub-menu,
    .fitandfun-footer-nav > .menu > li:last-child > .sub-menu{
        left:auto!important;
        right:0!important;
    }
    .fitandfun-footer-nav > ul > li:last-child > ul li > ul,
    .fitandfun-footer-nav > .menu > li:last-child > ul li > ul,
    .fitandfun-footer-nav > ul > li:last-child > .sub-menu li > .sub-menu,
    .fitandfun-footer-nav > .menu > li:last-child > .sub-menu li > .sub-menu{
        left:auto!important;
        right:100%!important;
    }
}

/* Mobile footer navigation: expandable rows, matching the mobile primary
   navigation instead of a horizontal desktop-style menu. */
@media(max-width:1080px){
    .fitandfun-footer-nav{
        position:relative!important;
        width:100%!important;
        margin-top:18px!important;
        overflow:visible!important;
    }
    .fitandfun-footer-nav ul,
    .fitandfun-footer-nav .menu{
        display:block!important;
        width:100%!important;
        margin:0!important;
        padding:0!important;
    }
    .fitandfun-footer-nav li{
        display:block!important;
        width:100%!important;
        position:relative!important;
        margin:0!important;
        padding:0!important;
        border-bottom:1px solid rgba(255,255,255,.16)!important;
        overflow:visible!important;
    }
    .fitandfun-footer-nav li > a{
        display:block!important;
        width:100%!important;
        box-sizing:border-box!important;
        min-height:46px!important;
        padding:13px 52px 13px 8px!important;
        color:var(--ff-footer-link,#fff)!important;
        text-decoration:none!important;
        white-space:normal!important;
        overflow-wrap:anywhere!important;
        line-height:1.35!important;
    }
    .fitandfun-footer-nav li > a:hover,
    .fitandfun-footer-nav li > a:focus{color:var(--ff-footer-link-hover,#f4b400)!important}
    .fitandfun-footer-nav li > ul,
    .fitandfun-footer-nav li > .sub-menu{
        display:none!important;
        position:static!important;
        width:100%!important;
        min-width:0!important;
        max-width:none!important;
        margin:0!important;
        padding:0 0 0 14px!important;
        background:rgba(0,0,0,.10)!important;
        border:0!important;
        border-radius:0!important;
        box-shadow:none!important;
        opacity:1!important;
        visibility:visible!important;
        pointer-events:auto!important;
        transform:none!important;
        overflow:visible!important;
    }
    .fitandfun-footer-nav li.ff-submenu-open > ul,
    .fitandfun-footer-nav li.ff-submenu-open > .sub-menu{display:block!important}
    .fitandfun-footer-nav li > ul li > a,
    .fitandfun-footer-nav li > .sub-menu li > a{
        min-height:42px!important;
        padding:11px 46px 11px 12px!important;
        font-size:.94em!important;
        border-top:1px solid rgba(255,255,255,.10)!important;
    }
    .fitandfun-footer-nav .fitandfun-submenu-toggle{
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
        position:absolute!important;
        right:0!important;
        top:0!important;
        width:44px!important;
        height:46px!important;
        padding:0!important;
        margin:0!important;
        border:0!important;
        border-left:1px solid rgba(255,255,255,.14)!important;
        background:transparent!important;
        color:#b7c7ff!important;
        cursor:pointer!important;
        z-index:3!important;
        font-size:18px!important;
        line-height:1!important;
    }
    .fitandfun-footer-nav .fitandfun-submenu-toggle span{
        display:block!important;
        transition:transform .18s ease!important;
    }
    .fitandfun-footer-nav li.ff-submenu-open > .fitandfun-submenu-toggle span{
        transform:rotate(180deg)!important;
    }
}

/* Never let a submenu's text force horizontal page overflow. */
.fitandfun-primary-nav ul ul,
.fitandfun-footer-nav ul ul,
.fitandfun-mobile-nav ul ul{
    max-width:100vw;
}


/* ============================================================
   v4.9.5 — Home / Food Menu / Page presentation polish
   ============================================================ */

/* Home Premium Services: six consistent horizontal cards. */
main.ff-home-page .ff-services{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:24px!important;
  align-items:stretch!important;
}
main.ff-home-page .ff-services .ff-card{
  min-height:214px;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  padding:28px!important;
}
main.ff-home-page .ff-services .ff-icon{
  flex:0 0 auto;
  margin-bottom:18px;
  line-height:1;
}
main.ff-home-page .ff-services .ff-card h3{margin:0 0 14px!important}
main.ff-home-page .ff-services .ff-card p{margin:0!important}

/* More professional breathing room inside hero copy; no visual redesign. */
main.ff-home-page .ff-slide .ff-hero-content{
  box-sizing:border-box!important;
  padding:34px 42px!important;
}
main.ff-home-page .ff-slide .ff-eyebrow{margin:0 0 14px!important}
main.ff-home-page .ff-slide h1{margin:0 0 18px!important}
main.ff-home-page .ff-slide .ff-hero-content>p:not(.ff-eyebrow):not(:last-child){
  margin:0 0 20px!important;
  line-height:1.55!important;
}
main.ff-home-page .ff-slide .ff-hero-content>p:last-child{
  margin-top:22px!important;
}
main.ff-home-page .ff-slide .ff-hero-content>p:last-child .ff-btn{margin-right:8px}

/* Give the map a deliberate visual buffer before the footer. */
main.ff-home-page .ff-contact{padding-bottom:112px!important}

/* Food Menu: bottom breathing room matches the section's top padding. */
main.ff-menu-page > section:last-of-type{padding-bottom:88px!important}

/* The logo is navigation, not an image-gallery target. */
.fitandfun-branding .custom-logo-link,.fitandfun-branding .custom-logo{cursor:pointer!important}

/* Global Back To Top button. */
.ff-global-back-to-top{
  position:fixed!important;
  right:20px!important;
  bottom:20px!important;
  z-index:99998!important;
  width:50px!important;
  height:50px!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  background:linear-gradient(135deg,#7c3aed,#ec4899)!important;
  color:#fff!important;
  font-size:24px!important;
  font-weight:700!important;
  line-height:50px!important;
  text-align:center!important;
  cursor:pointer!important;
  opacity:0!important;
  visibility:hidden!important;
  transform:translateY(10px)!important;
  transition:opacity .2s ease,visibility .2s ease,transform .2s ease!important;
  box-shadow:0 8px 24px rgba(0,0,0,.20)!important;
}
.ff-global-back-to-top.is-visible{
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
}

/* Pages: title belongs in the banner only. */
.fitandfun-page-main > .fitandfun-page-title{display:none!important}

@media(max-width:900px){
  main.ff-home-page .ff-services{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:800px){
  /* Keep the turf image compact and remove the excessive space beneath it. */
  main.ff-home-page .ff-turf{padding-bottom:24px!important}
  main.ff-home-page .ff-turf .ff-two{row-gap:24px!important}
  main.ff-home-page .ff-turf .ff-two>div:last-child,
  main.ff-home-page .ff-turf .ff-two>div:last-child img{
    height:300px!important;
    min-height:0!important;
  }
}
@media(max-width:600px){
  main.ff-home-page .ff-services{grid-template-columns:1fr!important}
  main.ff-home-page .ff-slide .ff-hero-content{
    width:calc(100% - 32px)!important;
    margin:0 16px!important;
    padding:28px 24px!important;
  }
  main.ff-home-page .ff-slide h1{margin-bottom:14px!important}
  main.ff-home-page .ff-slide .ff-hero-content>p:last-child{margin-top:18px!important}
  main.ff-home-page .ff-contact{padding-bottom:72px!important}
  main.ff-menu-page > section:last-of-type{padding-bottom:64px!important}
  .ff-global-back-to-top{right:14px!important;bottom:14px!important;width:46px!important;height:46px!important;line-height:46px!important}
}

/* v4.9.6 — reliable sticky footer for normal FSE pages and ANWP shell.
   Short pages fill the viewport; long pages remain normal document flow.
   No artificial white spacer is introduced after the footer. */
html,body{min-height:100%!important}
body{min-height:100vh!important;margin:0!important;padding:0!important}
.wp-site-blocks{
    min-height:100vh!important;
    min-height:100dvh!important;
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
}
.wp-site-blocks > main,
.wp-site-blocks > .wp-block-group:has(> main){flex:1 0 auto!important;width:100%!important}
.wp-site-blocks > .wp-block-template-part:has(.fitandfun-footer),
.wp-site-blocks > footer{flex:0 0 auto!important;margin-top:auto!important}

.fitandfun-anwp-page{
    min-height:100vh!important;
    min-height:100dvh!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    flex-direction:column!important;
}
.fitandfun-anwp-site{
    min-height:100vh!important;
    min-height:100dvh!important;
    width:100%!important;
    display:flex!important;
    flex-direction:column!important;
    flex:1 0 auto!important;
    margin:0!important;
    padding:0!important;
}
.fitandfun-anwp-site > header,
.fitandfun-anwp-site > .wp-block-template-part{flex:0 0 auto!important}
.fitandfun-anwp-main{
    flex:1 0 auto!important;
    width:100%!important;
    max-width:none!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
}
.fitandfun-anwp-entry{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
}
.fitandfun-anwp-content{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
}
.fitandfun-anwp-site > footer{
    flex:0 0 auto!important;
    margin-top:0!important;
    width:100%!important;
}


/* ============================================================
   v4.9.6 — final layout / navigation behaviour
   ============================================================ */

/* ANWP: never allow plugin wrappers to create a trailing white strip. */
.fitandfun-anwp-page #wpadminbar + *{min-height:0}
.fitandfun-anwp-page .fitandfun-anwp-main > :last-child,
.fitandfun-anwp-page .fitandfun-anwp-entry > :last-child,
.fitandfun-anwp-page .fitandfun-anwp-content > :last-child{
    margin-bottom:0!important;
    margin-block-end:0!important;
}
.fitandfun-anwp-page .fitandfun-anwp-main,
.fitandfun-anwp-page .fitandfun-anwp-entry,
.fitandfun-anwp-page .fitandfun-anwp-content{
    overflow:visible!important;
}

/* Search page: modern editorial/card treatment, scoped only to search. */
.fitandfun-search-page{
    width:min(1180px,calc(100% - 32px))!important;
    margin:0 auto!important;
    padding:52px 0 76px!important;
}
.fitandfun-search-page > .wp-block-query{
    width:100%!important;
}
.fitandfun-search-page .wp-block-post-template{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:22px!important;
    margin:0!important;
    padding:0!important;
    list-style:none!important;
}
.fitandfun-search-page .fitandfun-search-result{
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    gap:0!important;
    min-width:0!important;
    padding:0!important;
    margin:0!important;
    overflow:hidden!important;
    border:1px solid #e6e9f0!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:0 8px 28px rgba(15,23,42,.08)!important;
    transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important;
}
.fitandfun-search-page .fitandfun-search-result:hover{
    transform:translateY(-4px)!important;
    box-shadow:0 16px 36px rgba(15,23,42,.13)!important;
    border-color:#d7dff5!important;
}
.fitandfun-search-page .fitandfun-search-result .wp-block-post-featured-image{
    width:100%!important;
    flex:0 0 auto!important;
    margin:0!important;
}
.fitandfun-search-page .fitandfun-search-result .wp-block-post-featured-image img{
    display:block!important;
    width:100%!important;
    height:230px!important;
    object-fit:cover!important;
    border-radius:0!important;
}
.fitandfun-search-page .fitandfun-search-result-body{
    min-width:0!important;
    padding:20px 22px 22px!important;
}
.fitandfun-search-page .fitandfun-search-category{
    margin:0 0 10px!important;
    font-size:11px!important;
    font-weight:800!important;
    letter-spacing:.08em!important;
    text-transform:uppercase!important;
}
.fitandfun-search-page .fitandfun-search-category a{
    display:inline-block!important;
    padding:5px 8px!important;
    border-radius:999px!important;
    background:#f1edff!important;
    color:#673ab7!important;
    text-decoration:none!important;
}
.fitandfun-search-page .fitandfun-search-result-body h2{
    margin:0 0 9px!important;
    font-size:22px!important;
    line-height:1.2!important;
}
.fitandfun-search-page .fitandfun-search-result-body h2 a{
    color:#18212b!important;
    text-decoration:none!important;
}
.fitandfun-search-page .fitandfun-search-result-body h2 a:hover{
    color:#6f3fc1!important;
}
.fitandfun-search-page .fitandfun-search-result-body .wp-block-post-excerpt{
    margin:0 0 14px!important;
    color:#667085!important;
    font-size:14px!important;
    line-height:1.6!important;
}
.fitandfun-search-page .fitandfun-search-result-body .wp-block-post-date{
    margin:0!important;
    color:#8a94a6!important;
    font-size:12px!important;
    font-weight:600!important;
}
.fitandfun-search-page .wp-block-query-pagination{
    margin:34px 0 0!important;
    padding-top:24px!important;
    border-top:1px solid #e7eaf0!important;
}
.fitandfun-search-page .wp-block-query-pagination a,
.fitandfun-search-page .wp-block-query-pagination .wp-block-query-pagination-numbers{
    border-radius:8px!important;
}

/* Search result page can show a search field above the cards. */
.fitandfun-search-toolbar{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:20px!important;
    margin:0 0 28px!important;
    padding:22px 24px!important;
    border-radius:16px!important;
    background:linear-gradient(135deg,#f7f3ff,#fff4f8)!important;
    border:1px solid #eee6fa!important;
}
.fitandfun-search-toolbar p{margin:0!important;color:#667085!important}
.fitandfun-search-toolbar strong{color:#18212b!important}
.fitandfun-search-toolbar .wp-block-search{margin:0!important;min-width:min(430px,100%)!important}
.fitandfun-search-toolbar .wp-block-search__inside-wrapper{border:0!important}
.fitandfun-search-toolbar input{
    min-height:44px!important;
    border:1px solid #dfe3ec!important;
    border-radius:8px 0 0 8px!important;
    background:#fff!important;
}
.fitandfun-search-toolbar button{
    min-height:44px!important;
    border:0!important;
    border-radius:0 8px 8px 0!important;
    background:#6f3fc1!important;
    color:#fff!important;
    font-weight:700!important;
}

/* Mobile drawer is a true top-layer: no page element can sit above it,
   and the page behind it cannot receive pointer/touch events. */
.fitandfun-mobile-overlay{
    position:fixed!important;
    inset:0!important;
    z-index:2147483640!important;
    pointer-events:none!important;
}
.fitandfun-mobile-overlay.is-open{
    pointer-events:auto!important;
}
.fitandfun-mobile-drawer{
    position:fixed!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    z-index:2147483647!important;
    isolation:isolate!important;
    pointer-events:auto!important;
    touch-action:auto!important;
    overscroll-behavior:contain!important;
}
.fitandfun-mobile-drawer *{pointer-events:auto}
html.fitandfun-menu-open,
body.fitandfun-menu-open{
    overflow:hidden!important;
    overscroll-behavior:none!important;
}
body.fitandfun-menu-open > *:not(.fitandfun-mobile-drawer):not(.fitandfun-mobile-overlay){
    /* Do not alter visual stacking; the fixed overlay/drawer owns interaction. */
}
.fitandfun-header{
    position:sticky!important;
    top:0!important;
    transition:transform .24s ease,box-shadow .24s ease!important;
}
.fitandfun-header.ff-nav-scroll-hidden{
    transform:translateY(-105%)!important;
    box-shadow:none!important;
}
.fitandfun-header.ff-nav-scroll-visible{
    transform:translateY(0)!important;
    box-shadow:0 5px 18px rgba(15,23,42,.10)!important;
}
.fitandfun-header.ff-nav-scroll-visible .fitandfun-mobile-drawer{
    transform:translateX(105%)!important;
}
.fitandfun-header.ff-nav-scroll-visible .fitandfun-mobile-drawer.is-open{
    transform:translateX(0)!important;
}

/* Desktop dropdowns: the hover area must remain continuous. */
@media(min-width:1081px){
    .fitandfun-primary-nav li > ul,
    .fitandfun-primary-nav li > .sub-menu{
        top:100%!important;
        margin-top:0!important;
        padding-top:6px!important;
    }
    .fitandfun-primary-nav li > ul a,
    .fitandfun-primary-nav li > .sub-menu a{
        white-space:normal!important;
        overflow-wrap:anywhere!important;
    }
}

@media(max-width:700px){
    .fitandfun-search-page{
        width:calc(100% - 24px)!important;
        padding:34px 0 54px!important;
    }
    .fitandfun-search-toolbar{
        display:block!important;
        padding:18px!important;
    }
    .fitandfun-search-toolbar .wp-block-search{
        margin-top:14px!important;
        min-width:0!important;
    }
    .fitandfun-search-page .wp-block-post-template{
        grid-template-columns:1fr!important;
        gap:16px!important;
    }
    .fitandfun-search-page .fitandfun-search-result .wp-block-post-featured-image img{
        height:210px!important;
    }
}


/* ============================================================
   v4.9.7 — hard top-layer mobile navigation
   ============================================================ */
html.fitandfun-menu-open,
body.fitandfun-menu-open{
    overflow:hidden!important;
    height:100%!important;
    touch-action:none!important;
}
body.fitandfun-menu-open > .fitandfun-mobile-overlay{
    display:block!important;
    position:fixed!important;
    inset:0!important;
    z-index:2147483646!important;
    width:100vw!important;
    height:100vh!important;
    height:100dvh!important;
    margin:0!important;
    padding:0!important;
    pointer-events:auto!important;
    touch-action:auto!important;
}
body > .fitandfun-mobile-drawer{
    position:fixed!important;
    inset:0 0 0 auto!important;
    width:min(88vw,380px)!important;
    height:100vh!important;
    height:100dvh!important;
    max-height:100dvh!important;
    z-index:2147483647!important;
    pointer-events:auto!important;
    isolation:isolate!important;
    transform:translateX(105%)!important;
    visibility:hidden!important;
    display:flex!important;
}
body > .fitandfun-mobile-drawer.is-open{
    transform:translateX(0)!important;
    visibility:visible!important;
}
body > .fitandfun-mobile-drawer *{pointer-events:auto!important}
body > .fitandfun-mobile-overlay{background:rgba(0,0,0,.52)!important}
body > .fitandfun-mobile-overlay:not(.is-open){pointer-events:none!important}

/* ============================================================
   v4.9.7 — search page spacing and empty state
   ============================================================ */
.fitandfun-search-page{
    box-sizing:border-box!important;
    width:min(1180px,calc(100% - 40px))!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding:48px 0 88px!important;
}
.fitandfun-search-page .fitandfun-search-none{
    width:min(720px,100%)!important;
    margin:56px auto 40px!important;
    padding:48px 28px!important;
    box-sizing:border-box!important;
    text-align:center!important;
    border:1px solid #e7e9ef!important;
    border-radius:18px!important;
    background:linear-gradient(180deg,#fff,#faf8ff)!important;
    box-shadow:0 12px 32px rgba(15,23,42,.07)!important;
    color:#667085!important;
    font-size:18px!important;
    line-height:1.6!important;
}
.fitandfun-search-page .wp-block-query-no-results,
.fitandfun-search-page .wp-block-query > .wp-block-query-no-results{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    text-align:center!important;
}
@media(max-width:700px){
    .fitandfun-search-page{
        width:calc(100% - 28px)!important;
        padding:32px 0 58px!important;
    }
    .fitandfun-search-page .fitandfun-search-none{
        margin:38px auto 28px!important;
        padding:38px 20px!important;
    }
}

/* ============================================================
   v4.9.9 — ANWP shell: zero trailing document whitespace
   ============================================================ */
html:has(body.fitandfun-anwp-page),
body.fitandfun-anwp-page{
    min-height:100%!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
}
body.fitandfun-anwp-page{display:block!important}
body.fitandfun-anwp-page > .fitandfun-anwp-site{
    min-height:100vh!important;
    min-height:100dvh!important;
    height:auto!important;
    display:flex!important;
    flex-direction:column!important;
    margin:0!important;
    padding:0!important;
}
body.fitandfun-anwp-page .fitandfun-anwp-main{
    flex:1 0 auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
}
body.fitandfun-anwp-page .fitandfun-anwp-site > .fitandfun-header,
body.fitandfun-anwp-page .fitandfun-anwp-site > .fitandfun-footer{
    flex:0 0 auto!important;
    margin:0!important;
    padding:0!important;
}
body.fitandfun-anwp-page .fitandfun-anwp-site > .fitandfun-footer{
    width:100%!important;
}
/* The Back To Top control is emitted by wp_footer, outside this shell. */
body.fitandfun-anwp-page #ff-global-back-to-top{
    position:fixed!important;
    right:20px!important;
    bottom:20px!important;
    z-index:2147483647!important;
}
/* Never let ANWP/plugin wrappers add a final bottom margin. */
body.fitandfun-anwp-page .fitandfun-anwp-main > :last-child,
body.fitandfun-anwp-page .fitandfun-anwp-entry > :last-child,
body.fitandfun-anwp-page .fitandfun-anwp-content > :last-child{
    margin-bottom:0!important;
    margin-block-end:0!important;
}
@media(max-width:782px){
    body.fitandfun-anwp-page #ff-global-back-to-top{
        right:14px!important;
        bottom:14px!important;
        width:46px!important;
        height:46px!important;
        line-height:46px!important;
    }
}


/* v4.10.1 — Search results + ANWP page presentation
   Keep this layer scoped so the established blog/home/header/footer layouts
   remain untouched. */
.fitandfun-search-page{
    width:min(1120px,calc(100% - 48px))!important;
    max-width:1120px!important;
    margin:0 auto!important;
    padding:52px 0 72px!important;
}
.fitandfun-search-page > .fitandfun-search-toolbar{
    width:min(1024px,100%)!important;
    margin:0 auto 34px!important;
    padding:22px 24px!important;
    box-sizing:border-box!important;
    border:1px solid #eadff7!important;
    border-radius:14px!important;
    background:linear-gradient(135deg,#fbf7ff,#f7f3ff)!important;
    box-shadow:0 8px 24px rgba(31,18,52,.06)!important;
}
.fitandfun-search-page > .wp-block-query{
    width:min(1024px,100%)!important;
    margin:0 auto!important;
}
.fitandfun-search-results{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:20px!important;
    margin:0!important;
}
.fitandfun-search-result{
    width:100%!important;
    min-width:0!important;
    height:100%!important;
    display:flex!important;
    flex-direction:column!important;
    gap:0!important;
    padding:0!important;
    overflow:hidden!important;
    border:1px solid #e5e7eb!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 8px 26px rgba(15,23,42,.07)!important;
}
.fitandfun-search-result .wp-block-post-featured-image,
.fitandfun-search-result .wp-block-post-featured-image img{
    width:100%!important;
}
.fitandfun-search-result .wp-block-post-featured-image{
    flex:0 0 auto!important;
    margin:0!important;
}
.fitandfun-search-result .wp-block-post-featured-image img{
    display:block!important;
    height:240px!important;
    object-fit:cover!important;
    border-radius:0!important;
}
.fitandfun-search-result-body{
    flex:1 1 auto!important;
    width:100%!important;
    padding:18px 20px 20px!important;
    box-sizing:border-box!important;
}
.fitandfun-search-result-body h2{font-size:21px!important;line-height:1.25!important}
.fitandfun-search-result-body .wp-block-post-excerpt{line-height:1.6!important}
.fitandfun-search-result-body .wp-block-post-date{color:#7a8493!important}
.fitandfun-search-page .wp-block-query-no-results,
.fitandfun-search-page .wp-block-query-no-results > *{
    width:100%!important;
}
.fitandfun-search-none{
    width:min(720px,100%)!important;
    min-height:110px!important;
    margin:54px auto 18px!important;
    padding:36px 28px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    box-sizing:border-box!important;
    border:1px solid #e5e7eb!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:0 10px 28px rgba(15,23,42,.07)!important;
    color:#596579!important;
}
/* v4.10.1 — ANWP content-to-footer separation.
   Use a real margin on the shell main element rather than relying only on
   inner padding; this remains visible even when ANWP controls its own
   content wrappers/margins. */
body.fitandfun-anwp-page .fitandfun-anwp-main{
    margin-bottom:64px!important;
    padding-bottom:0!important;
    box-sizing:border-box!important;
}
body.fitandfun-anwp-page .fitandfun-anwp-main::after{
    content:"";
    display:block!important;
    height:0!important;
    clear:both!important;
}

/* ANWP gets the same visual title treatment as the rest of the site. */
.ff-anwp-page-banner{
    min-height:210px!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:linear-gradient(135deg,#111827,#241d1a)!important;
    position:relative!important;
    overflow:hidden!important;
}
.ff-anwp-page-banner::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,rgba(0,0,0,.18),rgba(123,63,193,.12),rgba(0,0,0,.18));
    pointer-events:none;
}
.ff-anwp-page-banner .ff-page-title-banner-inner{
    position:relative!important;
    z-index:1!important;
    width:min(1180px,calc(100% - 48px))!important;
    margin:0 auto!important;
    padding:0!important;
}
.ff-anwp-page-banner .ff-page-banner-title{
    margin:0!important;
    padding:0!important;
    color:#fff!important;
    text-align:center!important;
    overflow-wrap:anywhere!important;
}
.fitandfun-anwp-entry,
.fitandfun-anwp-content{
    padding-bottom:0!important;
    margin-bottom:0!important;
}
@media(max-width:700px){
    .fitandfun-search-page{
        width:calc(100% - 24px)!important;
        padding:32px 0 52px!important;
    }
    .fitandfun-search-page > .fitandfun-search-toolbar{
        margin-bottom:24px!important;
        padding:18px!important;
    }
    .fitandfun-search-results{grid-template-columns:1fr!important}
    .fitandfun-search-result .wp-block-post-featured-image img{height:210px!important}
    .fitandfun-search-none{margin:38px auto 10px!important;padding:30px 20px!important}
    .ff-anwp-page-banner{min-height:170px!important}
    .ff-anwp-page-banner .ff-page-title-banner-inner{width:calc(100% - 24px)!important}
    body.fitandfun-anwp-page .fitandfun-anwp-main{margin-bottom:44px!important}
}


/* Fit & Fun — centered search results with balanced vertical spacing */
.fitandfun-search-page {
  width: min(1120px, calc(100% - 48px)) !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

.fitandfun-search-page > .fitandfun-search-toolbar,
.fitandfun-search-page > .wp-block-query {
  width: min(1024px, 100%) !important;
  max-width: 1024px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.fitandfun-search-page > .fitandfun-search-toolbar {
  justify-content: center !important;
  text-align: center !important;
}

.fitandfun-search-page > .fitandfun-search-toolbar > p {
  text-align: center !important;
}

.fitandfun-search-page > .wp-block-query {
  text-align: center !important;
}

.fitandfun-search-page > .wp-block-query .wp-block-query-no-results {
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 700px) {
  .fitandfun-search-page {
    width: calc(100% - 28px) !important;
    padding-top: 48px !important;
    padding-bottom: 56px !important;
  }

  .fitandfun-search-page > .fitandfun-search-toolbar,
  .fitandfun-search-page > .wp-block-query {
    width: 100% !important;
  }
}

/* Fit & Fun — full-width search results with centered content column */
main.fitandfun-search-page {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

main.fitandfun-search-page > .fitandfun-search-toolbar,
main.fitandfun-search-page > .wp-block-query {
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

main.fitandfun-search-page > .fitandfun-search-toolbar {
  justify-content: center !important;
  text-align: center !important;
}

main.fitandfun-search-page > .fitandfun-search-toolbar > p {
  text-align: center !important;
}

main.fitandfun-search-page > .wp-block-query {
  text-align: center !important;
}

main.fitandfun-search-page > .wp-block-query .wp-block-query-no-results {
  width: min(720px, 100%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 700px) {
  main.fitandfun-search-page {
    padding-top: 48px !important;
    padding-bottom: 56px !important;
  }

  main.fitandfun-search-page > .fitandfun-search-toolbar,
  main.fitandfun-search-page > .wp-block-query {
    width: calc(100% - 28px) !important;
  }
}


/* v4.10.2 — single-post finish: bottom breathing room, post navigation and comments */
.fitandfun-single-main {
  width: 100% !important;
  padding-bottom: 88px !important;
}

.fitandfun-single-main > .ff-single-blog-content {
  width: min(860px, calc(100% - 40px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.fitandfun-single-main .ff-post-navigation {
  width: min(860px, calc(100% - 40px)) !important;
  margin: 64px auto 0 !important;
  padding: 22px 0 !important;
  border-top: 1px solid #e7e9ef !important;
  border-bottom: 1px solid #e7e9ef !important;
  gap: 24px !important;
  align-items: stretch !important;
}

.fitandfun-single-main .ff-post-nav-previous,
.fitandfun-single-main .ff-post-nav-next {
  flex: 1 1 50% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.fitandfun-single-main .ff-post-nav-next {
  text-align: right !important;
}

.fitandfun-single-main .ff-post-navigation a {
  display: inline-block !important;
  color: #6f3fc1 !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
}

.fitandfun-single-main .ff-post-navigation a:hover {
  text-decoration: underline !important;
}

.fitandfun-single-main .ff-comments-section {
  width: min(860px, calc(100% - 40px)) !important;
  margin: 64px auto 0 !important;
  padding: 34px !important;
  box-sizing: border-box !important;
  border: 1px solid #e7e9ef !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .07) !important;
}

.fitandfun-single-main .ff-comments-title {
  margin: 0 0 28px !important;
  color: #18212b !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
}

.fitandfun-single-main .ff-comment-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important;
  margin: 0 0 22px !important;
  padding: 22px 0 !important;
  border-bottom: 1px solid #edf0f4 !important;
}

.fitandfun-single-main .ff-comment-avatar {
  flex: 0 0 48px !important;
  margin: 0 !important;
}

.fitandfun-single-main .ff-comment-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.fitandfun-single-main .ff-comment-author {
  margin: 0 0 3px !important;
  color: #18212b !important;
  font-weight: 800 !important;
}

.fitandfun-single-main .ff-comment-date {
  margin: 0 0 10px !important;
  color: #8a94a6 !important;
  font-size: 12px !important;
}

.fitandfun-single-main .ff-comment-text {
  margin: 0 0 10px !important;
  color: #536174 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

.fitandfun-single-main .ff-comment-reply {
  color: #6f3fc1 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.fitandfun-single-main .ff-comment-form {
  margin-top: 32px !important;
  padding-top: 30px !important;
  border-top: 1px solid #e7e9ef !important;
}

.fitandfun-single-main .ff-comment-form input,
.fitandfun-single-main .ff-comment-form textarea {
  border: 1px solid #dfe3ec !important;
  border-radius: 10px !important;
  background: #fafbfc !important;
}

.fitandfun-single-main .ff-comment-form input:focus,
.fitandfun-single-main .ff-comment-form textarea:focus {
  border-color: #6f3fc1 !important;
  outline: 2px solid rgba(111, 63, 193, .12) !important;
}

.fitandfun-single-main .ff-comment-form .wp-element-button,
.fitandfun-single-main .ff-comment-form button {
  border-radius: 9px !important;
  background: #6f3fc1 !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.fitandfun-single-main .ff-comments-pagination {
  margin: 24px 0 0 !important;
  gap: 12px !important;
}

@media (max-width: 700px) {
  .fitandfun-single-main {
    padding-bottom: 56px !important;
  }

  .fitandfun-single-main > .ff-single-blog-content,
  .fitandfun-single-main .ff-post-navigation,
  .fitandfun-single-main .ff-comments-section {
    width: calc(100% - 28px) !important;
  }

  .fitandfun-single-main .ff-post-navigation {
    margin-top: 42px !important;
    gap: 12px !important;
  }

  .fitandfun-single-main .ff-post-nav-previous,
  .fitandfun-single-main .ff-post-nav-next {
    font-size: 13px !important;
  }

  .fitandfun-single-main .ff-comments-section {
    margin-top: 42px !important;
    padding: 24px 18px !important;
    border-radius: 16px !important;
  }

  .fitandfun-single-main .ff-comments-title {
    font-size: 24px !important;
  }

  .fitandfun-single-main .ff-comment-item {
    gap: 12px !important;
  }
}


/* v4.10.3 — Back To Top must always sit above every page element */
#ff-global-back-to-top,
body #ff-global-back-to-top,
body > #ff-global-back-to-top {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 2147483647 !important;
  pointer-events: auto !important;
  isolation: isolate !important;
  transform: translateZ(0) !important;
}

#ff-global-back-to-top *,
#ff-global-back-to-top a,
#ff-global-back-to-top button {
  pointer-events: auto !important;
}

@media (max-width: 782px) {
  #ff-global-back-to-top,
  body #ff-global-back-to-top,
  body > #ff-global-back-to-top {
    right: 14px !important;
    bottom: 14px !important;
    width: 46px !important;
    height: 46px !important;
    line-height: 46px !important;
    z-index: 2147483647 !important;
  }
}


/* v4.10.4 — Single post bottom breathing room before footer */
main.fitandfun-single-main {
  padding-bottom: 120px !important;
  margin-bottom: 0 !important;
}

main.fitandfun-single-main > .ff-post-navigation,
main.fitandfun-single-main > .ff-comments-section {
  margin-bottom: 0 !important;
}

@media (max-width: 700px) {
  main.fitandfun-single-main {
    padding-bottom: 72px !important;
  }
}

/* v4.10.5 — 404 CTA links */
/* 404 links are defined directly in templates/404.html. */



/* v4.11 — Complex Exterior banners and native image links */
.ff-page-title-banner,
.ff-single-blog-hero,
.ff-menu-page .ff-menu-hero,
.ff-anwp-page-banner .ff-page-title-banner {
  background-image:
    linear-gradient(135deg, rgba(18,18,18,.72), rgba(55,39,24,.62)),
    url('assets/images/complex-exterior.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
}

.wp-block-query .wp-block-post-featured-image a {
  display: block !important;
}

.wp-block-query .wp-block-post-featured-image a img {
  cursor: pointer !important;
}


/* v4.11.1 — Food Menu content images use lightbox */
.ff-menu-page img[data-ff-lightbox="1"] {
  cursor: zoom-in !important;
}
