:root{--bm-text:#1b1b1b;--bm-muted:#6b6b6b;--bm-line:#e7e7e7;--bm-surface:#f7f7f5;--bm-radius:18px;--bm-shadow:0 14px 40px rgba(0,0,0,.08)}
.bm-home,.bm-hub{color:var(--bm-text)}.bm-home *,.bm-hub *{box-sizing:border-box}
.bm-home-hero,.bm-hub-hero{padding:clamp(42px,8vw,96px) 0;max-width:920px}
.bm-home-hero h1,.bm-hub-hero h1{font-size:clamp(2.7rem,7vw,5.8rem);line-height:.98;letter-spacing:-.04em;margin:.18em 0 .28em}
.bm-eyebrow,.bm-card-kicker{display:inline-block;font-size:.76rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.bm-eyebrow{opacity:.72}
.bm-lead{font-size:clamp(1.05rem,2vw,1.35rem);line-height:1.6;max-width:760px;color:var(--bm-muted)}
.bm-button-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}.bm-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border:2px solid currentColor;border-radius:999px;text-decoration:none;font-weight:800}.bm-button-secondary{background:transparent}
.bm-section{padding:clamp(34px,6vw,72px) 0;border-top:1px solid var(--bm-line)}.bm-challenge{padding-left:clamp(22px,4vw,44px);padding-right:clamp(22px,4vw,44px);background:var(--bm-surface);border-radius:var(--bm-radius);border-top:0}
.bm-section-heading{display:flex;gap:20px;align-items:end;justify-content:space-between;margin-bottom:26px}.bm-section-heading h2,.bm-challenge h2{margin:.15em 0 0;font-size:clamp(1.8rem,4vw,3rem);letter-spacing:-.025em}
.bm-grid{display:grid;gap:22px}.bm-post-grid,.bm-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bm-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.bm-card{position:relative;overflow:hidden;border:1px solid var(--bm-line);border-radius:var(--bm-radius);background:#fff;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.bm-card:hover{transform:translateY(-3px);box-shadow:var(--bm-shadow)}
.bm-card-link,.bm-category-card,.bm-feature-card{color:inherit;text-decoration:none!important}.bm-category-card,.bm-feature-card{display:block;padding:26px}.bm-card-body{padding:22px}
.bm-card-image{aspect-ratio:16/10;overflow:hidden;background:var(--bm-surface)}.bm-card-image img{width:100%;height:100%;object-fit:cover;display:block}
.bm-card h3{margin:.35em 0 .45em;font-size:1.35rem;line-height:1.2}.bm-card p{margin:0 0 14px;color:var(--bm-muted);line-height:1.55}.bm-card-meta{color:var(--bm-muted);font-size:.9rem}.bm-text-link{font-weight:800;text-decoration:none}.bm-notice{padding:18px 20px;border:1px solid var(--bm-line);border-radius:12px;background:var(--bm-surface)}.bm-activity{overflow:hidden}
@media(max-width:900px){.bm-post-grid,.bm-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.bm-post-grid,.bm-category-grid,.bm-feature-grid{grid-template-columns:1fr}.bm-section-heading{align-items:flex-start;flex-direction:column}.bm-home-hero h1,.bm-hub-hero h1{font-size:clamp(2.6rem,14vw,4.5rem)}}

/* Recipe-only post metadata controls. JS also removes leftover Astra separators. */
.bm-recipe-post.bm-hide-recipe-date .entry-meta .posted-on,
.bm-recipe-post.bm-hide-recipe-author .entry-meta .posted-by,
.bm-recipe-post.bm-hide-recipe-comments .entry-meta .comments-link,
.bm-recipe-post.bm-hide-recipe-category .entry-meta .cat-links {
    display: none !important;
}

/* Landing pages are intentionally full-width and supply their own hero headings. */
.bm-recipe-hub-page .site-content > .ast-container,
.bm-home-page .site-content > .ast-container {
    max-width: 1240px;
}


/* Homepage v1.4: keep the user's existing image as the visual anchor. */
.bm-home-hero-with-image{
    max-width:none;
    display:grid;
    grid-template-columns:minmax(0,1.18fr) minmax(320px,.82fr);
    gap:clamp(28px,5vw,72px);
    align-items:center;
}
.bm-home-hero-media{
    min-width:0;
}
.bm-home-hero-image{
    display:block;
    width:100%;
    height:auto;
    max-height:720px;
    object-fit:contain;
    border-radius:24px;
    box-shadow:var(--bm-shadow);
}
.bm-home-hero-copy{
    min-width:0;
}
.bm-home-hero-with-image h1{
    font-size:clamp(2.5rem,5vw,5.2rem);
}
@media(max-width:860px){
    .bm-home-hero-with-image{grid-template-columns:1fr;gap:28px}
    .bm-home-hero-media{order:0}
    .bm-home-hero-copy{order:1}
    .bm-home-hero-image{max-height:none}
}


/* Homepage cleanup v1.4.1: remove theme-generated page title and breadcrumbs on the custom Home page. */
.bm-home-page .entry-header,
.bm-home-page .ast-breadcrumbs-wrapper,
.bm-home-page .ast-breadcrumbs,
.bm-home-page .ast-page-title-bar,
.bm-home-page .rank-math-breadcrumb,
.bm-home-page .yoast-breadcrumb,
.bm-home-page nav.breadcrumb,
.bm-home-page .breadcrumbs {
    display: none !important;
}

.bm-home-page .site-content,
.bm-home-page .site-content > .ast-container,
.bm-home-page .content-area,
.bm-home-page .site-main,
.bm-home-page .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.bm-home-page .entry-content > .bm-home {
    margin-top: 0 !important;
}


/* Homepage v1.4.3: keep the BikeMatthew artwork in the header and use a clean text hero by default. */
.bm-home-hero:not(.bm-home-hero-with-image){
    max-width:1080px;
    padding-top:clamp(38px,5vw,68px);
    padding-bottom:clamp(42px,6vw,78px);
}
.bm-home-hero:not(.bm-home-hero-with-image) h1{
    max-width:980px;
    font-size:clamp(3rem,6vw,5.6rem);
}
.bm-home-hero:not(.bm-home-hero-with-image) .bm-lead{max-width:720px}


/* Recipes landing-page cleanup v1.6.1: remove Astra's duplicate page title and breadcrumbs. */
.bm-recipe-hub-page .entry-header,
.bm-recipe-hub-page .ast-breadcrumbs-wrapper,
.bm-recipe-hub-page .ast-breadcrumbs,
.bm-recipe-hub-page .ast-page-title-bar,
.bm-recipe-hub-page .rank-math-breadcrumb,
.bm-recipe-hub-page .yoast-breadcrumb,
.bm-recipe-hub-page nav.breadcrumb,
.bm-recipe-hub-page .breadcrumbs {
    display: none !important;
}

.bm-recipe-hub-page .site-content,
.bm-recipe-hub-page .site-content > .ast-container,
.bm-recipe-hub-page .content-area,
.bm-recipe-hub-page .site-main,
.bm-recipe-hub-page .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.bm-recipe-hub-page .entry-content > .bm-hub {
    margin-top: 0 !important;
}

/* Recent Activity showcase — v1.7.0 */
.bm-activity-section-showcase{border-top:0!important;padding-top:clamp(32px,5vw,64px)!important;padding-bottom:clamp(32px,5vw,64px)!important}
.bm-activity-section-showcase .bm-activity{width:100%}
.bm-run-showcase{position:relative;overflow:hidden;padding:clamp(26px,4vw,52px);border-radius:32px;color:#f8fafc;background:radial-gradient(circle at 12% 0%,rgba(232,86,24,.22),transparent 30%),radial-gradient(circle at 100% 100%,rgba(255,255,255,.08),transparent 34%),linear-gradient(145deg,#111827 0%,#171c29 52%,#0f131d 100%);box-shadow:0 30px 80px rgba(15,23,42,.24)}
.bm-run-showcase:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.22;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,black,transparent 75%)}
.bm-run-showcase>*{position:relative;z-index:1}
.bm-run-showcase-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:clamp(24px,4vw,42px)}
.bm-run-live{display:inline-flex;align-items:center;gap:9px;margin-bottom:12px;font-size:.72rem;font-weight:850;letter-spacing:.14em;color:#cbd5e1}
.bm-run-live-dot{width:9px;height:9px;border-radius:50%;background:#58c463;box-shadow:0 0 0 5px rgba(88,196,99,.12),0 0 20px rgba(88,196,99,.48)}
.bm-run-showcase-head h2{margin:0;color:#fff;font-size:clamp(2.5rem,6vw,5rem);line-height:.92;letter-spacing:-.055em}
.bm-run-showcase-head p{max-width:620px;margin:15px 0 0;color:#aeb8c8;font-size:clamp(.95rem,1.4vw,1.08rem)}
.bm-run-mark{display:flex;align-items:center;gap:10px;padding-bottom:6px;color:rgba(255,255,255,.2);font-size:.78rem;font-weight:900;letter-spacing:.18em}
.bm-run-mark strong{color:#e85618;font-size:1.4rem;letter-spacing:-.08em}
.bm-run-showcase-grid{display:grid;grid-template-columns:minmax(0,1.72fr) minmax(300px,.88fr);gap:18px}
.bm-run-featured,.bm-run-mini{border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.055);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.bm-run-featured{min-height:430px;padding:clamp(24px,4vw,42px);border-radius:26px;box-shadow:inset 0 4px 0 #e85618;display:flex;flex-direction:column}
.bm-run-featured-bar,.bm-run-mini-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.bm-run-number,.bm-run-mini-index{color:#e85618;font-size:.78rem;font-weight:900;letter-spacing:.14em}
.bm-run-date,.bm-run-mini-date{color:#aeb8c8;font-size:.9rem;text-align:right}
.bm-run-distance{display:flex;align-items:flex-end;gap:12px;margin:auto 0 clamp(24px,4vw,44px)}
.bm-run-distance strong{color:#fff;font-size:clamp(5.7rem,12vw,10.5rem);line-height:.72;letter-spacing:-.075em;font-variant-numeric:tabular-nums}
.bm-run-distance>span{padding-bottom:.65em;color:#e85618;font-size:1rem;font-weight:900;letter-spacing:.15em}
.bm-run-featured-metrics,.bm-run-mini-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.bm-run-stat{min-width:0;padding:15px 16px;border-radius:16px;background:rgba(0,0,0,.18)}
.bm-run-stat-label{display:block;margin-bottom:5px;color:#8f9aae;font-size:.68rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.bm-run-stat strong{color:#fff;font-size:clamp(1.45rem,2.4vw,2.1rem);line-height:1;font-variant-numeric:tabular-nums}
.bm-run-stat-unit{margin-left:4px;color:#8f9aae;font-size:.72rem;font-weight:800}
.bm-run-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.bm-run-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid rgba(255,255,255,.08);border-radius:999px;color:#c6cfdd;background:rgba(255,255,255,.045);font-size:.78rem;font-weight:650}
.bm-run-previous{display:grid;gap:18px}
.bm-run-mini{min-height:206px;padding:22px;border-radius:24px;display:flex;flex-direction:column}
.bm-run-mini-distance{display:flex;align-items:baseline;gap:7px;margin:22px 0 16px}
.bm-run-mini-distance strong{color:#fff;font-size:clamp(2.7rem,4.7vw,4.3rem);line-height:.85;letter-spacing:-.055em;font-variant-numeric:tabular-nums}
.bm-run-mini-distance span{color:#e85618;font-size:.72rem;font-weight:900;letter-spacing:.12em}
.bm-run-mini .bm-run-stat{padding:10px 11px;border-radius:12px}
.bm-run-mini .bm-run-stat strong{font-size:1.1rem}
.bm-run-mini .bm-run-stat-label{font-size:.6rem}
.bm-run-mini .bm-run-chips{margin-top:auto;padding-top:12px}
.bm-run-mini .bm-run-chip{border:0;padding:0;background:transparent;color:#8f9aae;font-size:.7rem}
.bm-run-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:18px;overflow:hidden;border:1px solid rgba(255,255,255,.09);border-radius:22px;background:rgba(0,0,0,.16)}
.bm-run-summary-item{min-width:0;padding:20px clamp(14px,2vw,24px)}
.bm-run-summary-item+.bm-run-summary-item{border-left:1px solid rgba(255,255,255,.08)}
.bm-run-summary-item>span{display:block;margin-bottom:7px;color:#7f899a;font-size:.68rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.bm-run-summary-item strong{color:#fff;font-size:clamp(1.45rem,2.4vw,2.25rem);line-height:1;font-variant-numeric:tabular-nums}
.bm-run-summary-item small{margin-left:5px;color:#e85618;font-size:.68rem;font-weight:900;letter-spacing:.08em}
.bm-run-powered{margin-top:14px;color:#687386;font-size:.68rem;text-align:right}
@media(max-width:900px){.bm-run-showcase-grid{grid-template-columns:1fr}.bm-run-featured{min-height:390px}.bm-run-previous{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.bm-run-showcase{margin-left:-4px;margin-right:-4px;padding:22px 16px;border-radius:24px}.bm-run-showcase-head{align-items:flex-start}.bm-run-mark{display:none}.bm-run-featured{min-height:350px;padding:22px 18px;border-radius:20px}.bm-run-distance{margin-top:58px}.bm-run-distance strong{font-size:clamp(5.4rem,25vw,8rem)}.bm-run-previous{grid-template-columns:1fr}.bm-run-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.bm-run-summary-item:nth-child(3){border-left:0;border-top:1px solid rgba(255,255,255,.08)}.bm-run-summary-item:nth-child(4){border-top:1px solid rgba(255,255,255,.08)}}


/* =========================================================
   Site cleanup + footer — v1.8.0
   ========================================================= */

/* Astra should already switch to no-sidebar via PHP. These are fallbacks for
   cached/legacy templates that still emit sidebar markup. */
body.bm-no-sidebars #secondary,
body.bm-no-sidebars .widget-area.secondary,
body.bm-no-sidebars .ast-right-sidebar #secondary,
body.bm-no-sidebars .ast-left-sidebar #secondary {
    display: none !important;
}

body.bm-no-sidebars #primary,
body.bm-no-sidebars .content-area {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Keep normal article copy readable after the sidebar disappears. */
body.bm-no-sidebars.single-post:not(.bm-recipe-post) .site-main > article .entry-content,
body.bm-no-sidebars.single-post:not(.bm-recipe-post) .site-main > article .entry-header {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

/* Remove Astra's stock footer only while our footer is enabled. */
body.bm-custom-footer #colophon,
body.bm-custom-footer .site-footer:not(.bm-site-footer) {
    display: none !important;
}

.bm-site-footer {
    margin-top: clamp(52px, 8vw, 110px);
    color: #eef2f7;
    background:
        radial-gradient(circle at 8% 0%, rgba(232,86,24,.16), transparent 27%),
        linear-gradient(145deg, #111827 0%, #0e121b 100%);
}

.bm-footer-shell {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(44px, 6vw, 76px) 0 26px;
}

.bm-footer-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
    gap: clamp(28px, 6vw, 90px);
    align-items: end;
    padding-bottom: clamp(34px, 5vw, 58px);
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.bm-footer-logo {
    display: inline-block;
    color: #fff !important;
    text-decoration: none !important;
    font-size: clamp(2.5rem, 6vw, 5.4rem);
    font-weight: 800;
    line-height: .9;
    letter-spacing: -.055em;
}

.bm-footer-brand p {
    max-width: 650px;
    margin: 18px 0 0;
    color: #9da8b8;
    font-size: clamp(1rem, 1.6vw, 1.22rem);
    line-height: 1.55;
}

.bm-footer-kicker {
    display: block;
    margin-bottom: 10px;
    color: #7f8a9b;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .14em;
}

.bm-footer-search form {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 6px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
}

.bm-footer-search input[type="search"] {
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    box-shadow: none;
}

.bm-footer-search input[type="search"]::placeholder {
    color: #778295;
}

.bm-footer-search button {
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #e85618;
    font-weight: 800;
    cursor: pointer;
}

.bm-footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding: clamp(34px, 5vw, 54px) 0;
}

.bm-footer-nav nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.bm-footer-nav h3 {
    margin: 0 0 8px;
    color: #6f7b8e;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.bm-footer-nav a {
    color: #e5e9ef !important;
    text-decoration: none !important;
    font-size: 1rem;
    line-height: 1.5;
    transition: color .15s ease, transform .15s ease;
}

.bm-footer-nav a:hover {
    color: #fff !important;
    transform: translateX(3px);
}

.bm-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.10);
    color: #667184;
    font-size: .78rem;
}

@media (max-width: 800px) {
    .bm-footer-lead {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .bm-footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .bm-footer-shell {
        width: min(100% - 30px, 1380px);
    }

    .bm-footer-search form {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .bm-footer-search button {
        width: 100%;
        border-radius: 14px;
    }

    .bm-footer-nav {
        grid-template-columns: 1fr;
    }

    .bm-footer-bottom {
        flex-direction: column;
    }
}
