:root {
    --fghq-space-2xl: var(--global-kb-spacing-xxl, 4rem);
    --fghq-space-xl:  var(--global-kb-spacing-xl, 3rem);
    --fghq-space-lg:  var(--global-kb-spacing-lg, 2rem);
    --fghq-space-md:  var(--global-kb-spacing-md, 1.25rem);
    --fghq-space-sm:  var(--global-kb-spacing-sm, .75rem);

    /*
     * FitGearHQ normal post width follows
     * the Kadence Normal layout content width.
     */
    --fghq-post-width: var(--global-content-width, 1200px);
}


/* =====================================================
   PRODUCT SECTION ALTERNATION
   ===================================================== */

.single-post
.fghq-product-section--gray {
    background:
        var(--global-palette7, #E4E4E4)
        !important;
}


.single-post
.fghq-product-section--white {
    background:
        var(--global-palette9, #FFFFFF)
        !important;
}


.single-post
.fghq-product-section
.kb-row-layout-wrap,

.single-post
.fghq-product-section
.kt-row-layout-overlay {
    background-color:
        transparent
        !important;
}


/* =====================================================
   HEADING SYSTEM
   ===================================================== */

.single-post
.entry-content
h2.wp-block-heading,

.single-post
.entry-content
h2.wp-block-kadence-advancedheading {
    font-size:
        clamp(
            1.625rem,
            1.35rem + 1vw,
            2.125rem
        );

    line-height: 1.2;
    margin-top: 0;

    margin-bottom:
        var(--fghq-space-md);
}


.single-post
.entry-content
h3.wp-block-heading,

.single-post
.entry-content
h3.wp-block-kadence-advancedheading {
    font-size:
        clamp(
            1.25rem,
            1.12rem + .55vw,
            1.5rem
        );

    line-height: 1.28;
    margin-top: 0;

    margin-bottom:
        var(--fghq-space-sm);
}


.single-post
.entry-content
h4.wp-block-heading,

.single-post
.entry-content
h4.wp-block-kadence-advancedheading {
    font-size:
        clamp(
            1.075rem,
            1rem + .3vw,
            1.25rem
        );

    line-height: 1.32;
    margin-top: 0;

    margin-bottom:
        var(--fghq-space-sm);
}


/* =====================================================
   IMAGE + CAPTION + INTRO
   ===================================================== */

.single-post
.entry-content
.fghq-article-hero {
    margin-top: 0;

    margin-bottom:
        var(--fghq-space-lg);
}


.single-post
.entry-content
figcaption.wp-element-caption {
    margin-top: .5rem;
    margin-bottom: 0;

    font-size: .875rem;
    line-height: 1.45;

    color:
        var(--global-palette5, #666);
}




.single-post
.entry-content
> .fghq-article-hero
+ p {
    font-size: 1.0625rem;
    line-height: 1.7;

    margin-top: 0;
    margin-bottom: 1rem;
}


/* =====================================================
   MAJOR SECTION SPACING
   ===================================================== */

.single-post
.fghq-section
> .kt-row-column-wrap {
    padding-top:
        var(--fghq-space-2xl)
        !important;

    padding-bottom:
        var(--fghq-space-2xl)
        !important;
}


.single-post
.fghq-section
> .kt-row-column-wrap
> .wp-block-kadence-column
> .kt-inside-inner-col {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


.single-post
.fghq-content-section {
    padding-top:
        var(--fghq-space-2xl)
        !important;

    padding-bottom:
        var(--fghq-space-2xl)
        !important;
}


.single-post
.fghq-decision-container
> .kt-row-column-wrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}




/* =====================================================
   KEY TAKEAWAYS
   ===================================================== */

.single-post
.fghq-section-takeaways
ul {
    margin-bottom: 0;
}


.single-post
.fghq-section-takeaways
li + li {
    margin-top: .65rem;
}


/* =====================================================
   METHODOLOGY / BUYING GUIDE
   ===================================================== */

.single-post
.fghq-section-methodology
> .kt-inside-inner-col
> :last-child,

.single-post
.fghq-section-choose
> .kt-inside-inner-col
> :last-child {
    margin-bottom: 0;
}


/* =====================================================
   DECISION SHORTCUTS
   ===================================================== */

.single-post
.fghq-section-shortcuts
ul {
    margin-bottom:
        var(--fghq-space-md);
}


.single-post
.fghq-section-shortcuts
li + li {
    margin-top: .65rem;
}


/* =====================================================
   FINAL VERDICT
   ===================================================== */

.single-post
.fghq-section-verdict
.wp-block-kadence-advancedbtn {
    margin-top:
        var(--fghq-space-md);
}


.single-post
.fghq-section-verdict
> .kt-inside-inner-col
> :last-child {
    margin-bottom: 0;
}


/* =====================================================
   FAQ
   ===================================================== */

.fghq-best-article
.fghq-section-faq {
    background:
        var(--global-palette7, #E4E4E4);
}


.single-post
.fghq-section-faq
.wp-block-accordion {
    margin-top:
        var(--fghq-space-lg);
}


.single-post
.fghq-section-faq
.wp-block-accordion-item
+ .wp-block-accordion-item {
    margin-top: .5rem;
}


/* =====================================================
   EXPLORE MORE
   ===================================================== */

/*
 * IMPORTANT:
 *
 * The WHOLE Explore More section is constrained to the
 * normal Kadence content width.
 *
 * We do not make the background full-bleed and then
 * rebuild another width inside it.
 */

.fghq-best-article
.fghq-generated-explore {
    width: 100%;
    max-width: var(--fghq-post-width);

    margin-left: auto;
    margin-right: auto;

    padding:
        var(--fghq-space-2xl)
        0;

    box-sizing: border-box;

    background:
        var(--global-palette7, #E4E4E4);
}


/*
 * The outer Explore section already owns the correct
 * width. Its inner wrapper therefore simply fills it.
 */

.fghq-best-article
.fghq-generated-inner {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 0;
}


.single-post
.fghq-related-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap:
        var(--fghq-space-lg);
}


.single-post
.fghq-related-card {
    overflow: hidden;

    background:
        var(--global-palette9, #FFFFFF);

    border:
        1px solid
        var(--global-palette7, #E4E4E4);

    border-radius: 8px;
}


.single-post
.fghq-related-card-link {
    display: block;

    height: 100%;

    color: inherit;

    text-decoration: none;
}


.single-post
.fghq-related-image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}


.single-post
.fghq-related-image
img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.single-post
.fghq-related-card
h3 {
    margin: 0;

    padding:
        var(--fghq-space-md);

    font-size: 1.0625rem;
    line-height: 1.35;

    color:
        var(--global-palette3, #292929);
}


/* =====================================================
   KADENCE POST FOOTER WIDTH
   Tags / author / bio / previous-next
   ===================================================== */

/*
 * The site uses Kadence "Normal" post layout.
 *
 * These theme-generated elements therefore use the same
 * global content-width token as the article.
 *
 * There is ONE width rule only.
 * No competing width/padding override follows it.
 */

.fghq-best-article
.entry-footer,

.fghq-best-article
.entry-author,

.fghq-best-article
.entry-author-profile,

.fghq-best-article
.post-navigation {
    width: 100%;

    max-width:
        var(--fghq-post-width);

    margin-left: auto;
    margin-right: auto;

    box-sizing: border-box;
}


/*
 * Do not independently constrain nested navigation
 * wrappers. They should naturally fill .post-navigation.
 */

.fghq-best-article
.post-navigation-wrap {
    width: 100%;
    max-width: none;

    margin-left: 0;
    margin-right: 0;
}

/* =====================================================
   AFFILIATE DISCLOSURE WIDTH
   ===================================================== */

.fghq-best-article
p:has(a[href*="affiliate-disclosure"]) {
    width: min(
        calc(100% - 2 * var(--global-content-edge-padding, 1.5rem)),
        var(--fghq-post-width)
    );

    max-width: var(--fghq-post-width);

    margin-left: auto;
    margin-right: auto;

    box-sizing: border-box;
}

/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 767px) {

    :root {
        --fghq-space-2xl:
            var(
                --global-kb-spacing-xl,
                3rem
            );
    }


    .single-post
    .entry-content
    > .fghq-article-hero
    + p {
        font-size: 1rem;
    }


    .single-post
    .fghq-related-grid {
        grid-template-columns:
            1fr;
    }
}

/* =====================================================
   END AREA BACKGROUNDS
   FAQ + Explore stay gray; everything after Explore is white.
   ===================================================== */

.fghq-best-article .fghq-section-faq,
.fghq-best-article .fghq-generated-explore {
    position: relative;
    z-index: 1;
    background: var(--global-palette7, #E4E4E4) !important;
    box-shadow: 0 0 0 100vmax var(--global-palette7, #E4E4E4);
    clip-path: inset(0 -100vmax);
    border-top: 0 !important;
    border-bottom: 0 !important;
}

.fghq-best-article .fitgearhq-disclosure-bottom,
.fghq-best-article p:has(a[href*="affiliate-disclosure"]),
.fghq-best-article .entry-footer,
.fghq-best-article .entry-author,
.fghq-best-article .entry-author-profile,
.fghq-best-article .post-navigation {
    position: relative;
    z-index: 1;
    background: var(--global-palette9, #FFFFFF) !important;
    box-shadow: 0 0 0 100vmax var(--global-palette9, #FFFFFF);
    clip-path: inset(0 -100vmax);
    border-top: 0 !important;
    border-bottom: 0 !important;
}
.fghq-best-article .fghq-generated-explore,
.fghq-best-article .fitgearhq-disclosure-bottom,
.fghq-best-article p:has(a[href*="affiliate-disclosure"]),
.fghq-best-article .entry-footer,
.fghq-best-article .entry-author,
.fghq-best-article .entry-author-profile,
.fghq-best-article .post-navigation {
    position: relative;
    z-index: 1;
    background: var(--global-palette7, #E4E4E4) !important;
    box-shadow: 0 0 0 100vmax var(--global-palette7, #E4E4E4);
    clip-path: inset(0 -100vmax);
    border-top: 0 !important;
    border-bottom: 0 !important;
}

.fghq-best-article .fghq-generated-explore,
.fghq-best-article .fitgearhq-disclosure-bottom,
.fghq-best-article p:has(a[href*="affiliate-disclosure"]),
.fghq-best-article .entry-footer,
.fghq-best-article .entry-author,
.fghq-best-article .entry-author-profile,
.fghq-best-article .post-navigation {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.fghq-best-article .entry-content {
    margin-bottom: 0 !important;
}

.fghq-best-article .fitgearhq-disclosure-bottom,
.fghq-best-article p:has(a[href*="affiliate-disclosure"]) {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.fghq-best-article .entry-footer {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.fghq-best-article .entry-author,
.fghq-best-article .entry-author-profile {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.fghq-best-article .post-navigation {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.fghq-best-article .entry-footer .tag-links,
.fghq-best-article .entry-author .author-box,
.fghq-best-article .entry-author-profile .author-box,
.fghq-best-article .post-navigation .post-navigation-wrap,
.fghq-best-article .fitgearhq-disclosure-bottom p {
    background: transparent !important;
}

.fghq-best-article .entry-footer::before,
.fghq-best-article .entry-footer::after,
.fghq-best-article .entry-author::before,
.fghq-best-article .entry-author::after,
.fghq-best-article .entry-author-profile::before,
.fghq-best-article .entry-author-profile::after,
.fghq-best-article .post-navigation::before,
.fghq-best-article .post-navigation::after {
    display: none !important;
    content: none !important;
}
/* Comparison table */
.fghq-best-article .fghq-section-comparison .wp-block-kadence-table{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}
.fghq-best-article .fghq-section-comparison table{
    width:100%;
    min-width:920px;
    border-collapse:collapse;
    table-layout:fixed;
}
.fghq-best-article .fghq-section-comparison th,
.fghq-best-article .fghq-section-comparison td{
    border:1px solid #d8d8d8 !important;
    padding:12px 10px !important;
    vertical-align:middle;
    text-align:center;
}
.fghq-best-article .fghq-section-comparison tr:nth-child(even) > *{
    background:#f1f1f1;
}
.fghq-best-article .fghq-section-comparison tr > :first-child{
    font-weight:700;
    width:13%;
    background:#fff;
}
.fghq-best-article .fghq-section-comparison tr > :nth-child(2){
    background:rgba(194,28,39,.27) !important;
}
.fghq-best-article .fghq-section-comparison tr:hover > :nth-child(2){
    background:rgba(194,28,39,.37) !important;
}
.fghq-best-article .fghq-section-comparison .comparison-product-image{
    max-width:150px !important;
    margin:0 auto !important;
}
.fghq-best-article .fghq-section-comparison .comparison-product-image img{
    width:100%;
    height:130px;
    object-fit:contain;
}
.fghq-best-article .fghq-section-comparison .kb-button,
.fghq-best-article .fghq-section-comparison .wp-block-kadence-singlebtn{
    width:100%;
    justify-content:center;
    text-align:center;
    background:#c21c27 !important;
    border-color:#c21c27 !important;
    color:#fff !important;
    font-weight:700;
    line-height:1.2;
    padding:.75rem .7rem !important;
}
.fghq-best-article .fghq-section-comparison .kb-button:hover,
.fghq-best-article .fghq-section-comparison .wp-block-kadence-singlebtn:hover{
    background:#9f1720 !important;
    border-color:#9f1720 !important;
}
.fghq-best-article .fitgearhq-price-note{
    margin:.65rem 0 0;
    font-size:.8rem;
    color:var(--global-palette5,#666);
}

/* Product intro card: image left, copy right */
.fghq-best-article .fghq-product-card{
    display:grid !important;
    grid-template-columns:minmax(200px,30%) minmax(0,1fr);
    gap:2rem;
    align-items:center;
    width:100%;
    padding:1.5rem;
    box-sizing:border-box;
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
}
.fghq-best-article .fghq-product-media{
    min-width:0;
}
.fghq-best-article .fghq-product-media .product-thumb{
    width:100%;
    max-width:280px !important;
    margin:0 auto !important;
}
.fghq-best-article .fghq-product-media .kb-is-ratio-image{
    aspect-ratio:1/1;
}
.fghq-best-article .fghq-product-media img{
    width:100%;
    height:100%;
    object-fit:contain !important;
}
.fghq-best-article .fghq-product-content{
    min-width:0;
}
.fghq-best-article .fghq-product-content > p:first-child{
    margin-top:0;
}
.fghq-best-article .fghq-product-content .kt-svg-icon-list{
    margin-top:1rem !important;
    margin-bottom:1rem !important;
}
.fghq-best-article .fghq-product-content .wp-block-kadence-advancedbtn{
    margin-top:1rem;
}
.fghq-best-article .fghq-product-content .kb-button{
    background:#c21c27 !important;
    border-color:#c21c27 !important;
    color:#fff !important;
    font-weight:700;
}

/* FitScore */
.fghq-best-article .fghq-scorecard{
    width:100%;
    box-sizing:border-box;
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
}
.fghq-best-article .fghq-scorecard-inner{
    padding:1.5rem;
}
.fghq-best-article .fghq-score-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:1.5rem;
    margin-bottom:1.5rem;
}
.fghq-best-article .fghq-score-eyebrow{
    font-size:.78rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#c21c27;
}
.fghq-best-article .fghq-score-title{
    margin:.2rem 0 .25rem;
}
.fghq-best-article .fghq-score-context{
    color:var(--global-palette5,#666);
    font-size:.9rem;
}
.fghq-best-article .fghq-total{
    white-space:nowrap;
    line-height:1;
}
.fghq-best-article .fghq-total-number{
    font-size:2.35rem;
    font-weight:800;
}
.fghq-best-article .fghq-total-outof{
    font-size:1rem;
    color:var(--global-palette5,#666);
}
.fghq-best-article .fghq-scores{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:1.1rem 2rem;
}
.fghq-best-article .fghq-score-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:.35rem .75rem;
    align-items:center;
}
.fghq-best-article .fghq-score-label{
    font-weight:600;
    line-height:1.25;
}
.fghq-best-article .fghq-score-value{
    font-weight:800;
    font-variant-numeric:tabular-nums;
}
.fghq-best-article .fghq-bar{
    grid-column:1/-1;
    width:100%;
    height:9px;
    overflow:hidden;
    border-radius:999px;
    background:#e6e6e6;
}
.fghq-best-article .fghq-bar-fill{
    height:100%;
    border-radius:999px;
    background:#c21c27;
}
.fghq-best-article .fghq-score-details{
    margin-top:1.5rem;
    border-top:1px solid #e2e2e2;
    padding-top:1rem;
}
.fghq-best-article .fghq-score-details summary{
    cursor:pointer;
    font-weight:700;
}
.fghq-best-article .fghq-driver{
    margin:.8rem 0;
}
.fghq-best-article .fghq-breakdown{
    border:1px solid #e2e2e2;
    border-radius:6px;
    overflow:hidden;
}
.fghq-best-article .fghq-breakdown-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) 80px 80px;
    gap:.75rem;
    padding:.65rem .8rem;
    border-top:1px solid #e8e8e8;
}
.fghq-best-article .fghq-breakdown-row:first-child{
    border-top:0;
}
.fghq-best-article .fghq-breakdown-head{
    font-weight:700;
    background:#f4f4f4;
}
.fghq-best-article .fghq-breakdown-number{
    text-align:right;
    font-variant-numeric:tabular-nums;
}

/* Decision grid */
.fghq-best-article .fghq-product-decision-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:1rem;
}
.fghq-best-article .fghq-decision-column{
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
    padding:1.25rem;
}
.fghq-best-article .fghq-decision-column h3:not(:first-child){
    margin-top:1.25rem;
}
.fghq-best-article .fghq-decision-column ul{
    margin-bottom:0;
}

/* Product CTA */
.fghq-best-article .fghq-product-section .wp-block-kadence-advancedbtn .kb-button{
    background:#c21c27 !important;
    border-color:#c21c27 !important;
    color:#fff !important;
    font-weight:700;
}

@media (max-width:767px){
    .fghq-best-article .fghq-product-card{
        grid-template-columns:1fr;
        gap:1.25rem;
        padding:1.1rem;
    }
    .fghq-best-article .fghq-product-media .product-thumb{
        max-width:230px !important;
    }
    .fghq-best-article .fghq-scores{
        grid-template-columns:1fr;
    }
    .fghq-best-article .fghq-score-header{
        display:block;
    }
    .fghq-best-article .fghq-total{
        margin-top:1rem;
    }
    .fghq-best-article .fghq-product-decision-grid{
        grid-template-columns:1fr;
    }
}