/* ==========================================================================
   MindFolio Toolkit - Base Stylesheet
   Provides CSS variables + component styles used by the toolkit shortcodes
   and calculator templates. Scoped to plugin-specific classes to avoid
   clashing with the active theme (e.g. Kadence).
   ========================================================================== */

:root {
    --mft-color-primary: #0052cc;
    --mft-color-primary-dark: #003d99;
    --mft-color-primary-light: #e6f0ff;
    --mft-color-dark: #0f172a;
    --mft-color-text: #1e293b;
    --mft-color-text-light: #64748b;
    --mft-color-border: #e2e8f0;
    --mft-color-bg: #ffffff;
    --mft-color-bg-alt: #f8fafc;
    --mft-color-success: #16a34a;
    --mft-color-danger: #dc2626;
    --mft-color-warning: #f59e0b;
    --mft-color-info: #0284c7;
    --mft-radius: 8px;
    --mft-radius-lg: 12px;
    --mft-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --mft-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --mft-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --mft-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --mft-container: 1200px;
    --mft-gutter: 1rem;
}

/* Map the plugin variables onto the names the calculator.css expects so the
   copied calculator.css keeps working without edits. */
:root {
    --color-primary: var(--mft-color-primary);
    --color-primary-dark: var(--mft-color-primary-dark);
    --color-primary-light: var(--mft-color-primary-light);
    --color-dark: var(--mft-color-dark);
    --color-text: var(--mft-color-text);
    --color-text-light: var(--mft-color-text-light);
    --color-border: var(--mft-color-border);
    --color-bg: var(--mft-color-bg);
    --color-bg-alt: var(--mft-color-bg-alt);
    --color-success: var(--mft-color-success);
    --color-danger: var(--mft-color-danger);
    --color-warning: var(--mft-color-warning);
    --color-info: var(--mft-color-info);
    --radius: var(--mft-radius);
    --radius-lg: var(--mft-radius-lg);
}

/* --- Layout container --- */
.mft-container {
    width: 100%;
    max-width: var(--mft-container);
    margin: 0 auto;
    padding: 0 var(--mft-gutter);
}

.mft-content { padding: 2rem 0; }

.mft-section { padding: 3rem 0; }
.mft-section:nth-child(even) { background: var(--mft-color-bg-alt); }

/* --- Section headers --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--mft-color-dark);
    margin: 0;
}

.section-link {
    font-weight: 600;
    color: var(--mft-color-primary);
}

/* --- Buttons --- */
.mft-content .btn,
.mft-section .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--mft-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
    text-decoration: none;
    line-height: 1.2;
}

.mft-content .btn:hover,
.mft-section .btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
    background: var(--mft-color-primary);
    color: #fff;
    border-color: var(--mft-color-primary);
}
.btn-primary:hover { background: var(--mft-color-primary-dark); color: #fff; border-color: var(--mft-color-primary-dark); }

.btn-outline {
    background: transparent;
    color: var(--mft-color-primary);
    border-color: var(--mft-color-primary);
}
.btn-outline:hover { background: var(--mft-color-primary-light); color: var(--mft-color-primary-dark); }

.btn-lg { padding: 0.9rem 1.75rem; font-size: 1.0625rem; }

/* --- Hero --- */
.mft-hero {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(135deg, #064eb5 0%, #003d99 58%, #0f2f70 100%);
    color: #fff;
    padding: 3.25rem 0 3rem;
    text-align: center;
}
.mft-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
    z-index: -1;
}
.hero-content {
    max-width: 720px;
    margin: 0 auto;
}
.hero-title {
    font-size: clamp(2rem, 3vw, 2.55rem);
    line-height: 1.12;
    color: #fff;
    margin-bottom: 0.85rem;
    font-weight: 800;
}
.hero-subtitle {
    max-width: 640px;
    margin: 0 auto 1.45rem;
    font-size: 1.08rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.88);
}
.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.mft-hero .hero-actions .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.68rem 1.15rem !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-radius: 7px !important;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
}
.mft-hero .hero-actions .btn-primary {
    background-color: #fff !important;
    color: #064eb5 !important;
    border-color: #fff !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}
.mft-hero .hero-actions .btn-primary:hover {
    background-color: #eef5ff !important;
    color: #003d99 !important;
}
.mft-hero .hero-actions .btn-outline {
    color: #fff !important;
    border-color: rgba(255,255,255,0.62) !important;
    background-color: rgba(255,255,255,0.06) !important;
}
.mft-hero .hero-actions .btn-outline:hover {
    background-color: rgba(255,255,255,0.14) !important;
    color: #fff !important;
}

@media (max-width: 640px) {
    .mft-hero { padding: 2.5rem 0 2.25rem; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
}

/* --- Prose --- */
.mft-prose { font-size: 1.0625rem; line-height: 1.8; color: var(--mft-color-text); max-width: 760px; }
.mft-prose h2 { font-size: 1.75rem; margin: 2rem 0 0.75rem; color: var(--mft-color-dark); }
.mft-prose h3 { font-size: 1.3rem; margin: 1.5rem 0 0.5rem; color: var(--mft-color-dark); }
.mft-prose p { margin-bottom: 1.25rem; }

/* --- Homepage intro --- */
.mft-home-intro {
    display: grid;
    gap: 2rem;
    align-items: start;
}
.mft-home-intro-copy {
    max-width: none;
}
.mft-home-intro-copy h2 {
    margin-top: 0;
}
.mft-home-intro-copy p:last-child {
    margin-bottom: 0;
}
.mft-home-intro-panel {
    background: var(--mft-color-bg);
    border: 1px solid var(--mft-color-border);
    border-radius: var(--mft-radius);
    box-shadow: var(--mft-shadow-sm);
    padding: 1.5rem;
}
.mft-home-intro-panel__eyebrow {
    color: var(--mft-color-primary);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.mft-home-intro-panel h3 {
    color: var(--mft-color-dark);
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 0 0 1rem;
}
.mft-home-intro-steps {
    display: grid;
    gap: 0.875rem;
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}
.mft-home-intro-steps li {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.75rem;
    align-items: start;
    color: var(--mft-color-text);
    line-height: 1.55;
}
.mft-home-intro-step-number {
    align-items: center;
    background: var(--mft-color-primary-light);
    border-radius: 50%;
    color: var(--mft-color-primary);
    display: inline-flex;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}
.mft-home-intro-links {
    border-top: 1px solid var(--mft-color-border);
    display: grid;
    gap: 0.5rem;
    padding-top: 1rem;
}
.mft-home-intro-links a {
    color: var(--mft-color-primary);
    font-weight: 700;
    text-decoration: none;
}
.mft-home-intro-links a:hover,
.mft-home-intro-links a:focus {
    color: var(--mft-color-primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (min-width: 1024px) {
    .mft-home-intro {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 3rem;
    }

    .mft-home-intro-panel {
        position: sticky;
        top: 88px;
    }
}

/* --- Category cards --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.category-card {
    display: block;
    background: var(--mft-color-bg);
    border: 1px solid var(--mft-color-border);
    border-radius: var(--mft-radius-lg);
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    text-align: left;
}
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mft-shadow-md);
    border-color: var(--mft-color-primary-light);
    text-decoration: none;
    color: inherit;
}
.category-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mft-color-primary-light);
    color: var(--mft-color-primary);
    border-radius: var(--mft-radius);
    margin-bottom: 1rem;
}
.category-icon svg { width: 24px; height: 24px; }
.category-card h3 { font-size: 1.2rem; color: var(--mft-color-dark); margin-bottom: 0.375rem; }
.category-card p { color: var(--mft-color-text-light); font-size: 0.9375rem; margin: 0; }

/* --- Posts grid + cards --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}
.post-card {
    background: var(--mft-color-bg);
    border: 1px solid var(--mft-color-border);
    border-radius: var(--mft-radius-lg);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--mft-shadow-md); border-color: var(--mft-color-primary-light); }
.post-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.post-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--mft-color-bg-alt);
    margin: 0;
}
.post-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mft-color-border);
}
.post-card-image--placeholder svg { width: 48px; height: 48px; }
.post-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.post-card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mft-color-primary);
    margin-bottom: 0.5rem;
}
.post-card-title { font-size: 1.15rem; line-height: 1.35; color: var(--mft-color-dark); margin-bottom: 0.5rem; }
.post-card:hover .post-card-title { color: var(--mft-color-primary); }
.post-card-excerpt { color: var(--mft-color-text-light); font-size: 0.9375rem; margin-bottom: 1rem; flex: 1; }
.post-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--mft-color-text-light);
}

/* --- Calculator cards --- */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.calculator-card {
    background: var(--mft-color-bg);
    border: 1px solid var(--mft-color-border);
    border-radius: var(--mft-radius-lg);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.calculator-card:hover { transform: translateY(-3px); box-shadow: var(--mft-shadow-md); border-color: var(--mft-color-primary-light); }
.calculator-card-link {
    display: block;
    padding: 1.75rem 1.5rem;
    color: inherit;
    text-decoration: none;
}
.calculator-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mft-color-primary-light);
    color: var(--mft-color-primary);
    border-radius: var(--mft-radius);
    margin-bottom: 1rem;
}
.calculator-card-icon svg { width: 26px; height: 26px; }
.calculator-card-title { font-size: 1.2rem; color: var(--mft-color-dark); margin-bottom: 0.375rem; }
.calculator-card-desc { color: var(--mft-color-text-light); font-size: 0.9375rem; margin-bottom: 0.75rem; }
.calculator-card-cta { font-weight: 600; color: var(--mft-color-primary); font-size: 0.9375rem; }

/* --- Calculator single page --- */
.calculator-single { padding: 2.5rem 0; }
.calculator-header { max-width: 760px; margin: 0 auto 2rem; text-align: center; }
.calculator-title { font-size: 2.25rem; color: var(--mft-color-dark); margin-bottom: 0.5rem; }
.calculator-desc { font-size: 1.125rem; color: var(--mft-color-text-light); }
.calculator-notes { max-width: 760px; margin: 2.5rem auto; }
.calculator-content { max-width: 760px; margin: 2.5rem auto; }

/* --- CTA block --- */
.cta-block {
    background: var(--mft-color-primary-light);
    border-radius: var(--mft-radius-lg);
    padding: 2.5rem;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}
.cta-block--large { padding: 3.5rem 2rem; }
.cta-block h2,
.cta-block h3 { color: var(--mft-color-dark); margin-bottom: 0.75rem; }
.cta-block p { color: var(--mft-color-text); font-size: 1.0625rem; margin-bottom: 1.5rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-section { padding: 3rem 0; }

/* --- Related posts --- */
.related-posts { margin-top: 3rem; }
.related-posts .section-title { margin-bottom: 1.5rem; }

/* --- Pagination --- */
.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; gap: 0.375rem; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--mft-color-border);
    border-radius: var(--mft-radius);
    color: var(--mft-color-text);
    text-decoration: none;
    font-weight: 600;
}
.pagination .page-numbers.current { background: var(--mft-color-primary); color: #fff; border-color: var(--mft-color-primary); }
.pagination .page-numbers:hover:not(.current) { background: var(--mft-color-primary-light); color: var(--mft-color-primary); text-decoration: none; }

/* --- Archive header --- */
.archive-header { max-width: 760px; margin-bottom: 2.5rem; }
.archive-title { font-size: 2.25rem; color: var(--mft-color-dark); margin-bottom: 0.5rem; }
.archive-description { font-size: 1.125rem; color: var(--mft-color-text-light); }

/* ==========================================================================
   Front page (MindFolio Homepage template)
   Ensure sections span full width and the layout is not constrained by the
   theme's default content column.
   ========================================================================== */
.mft-front-page {
    width: 100%;
    min-width: 0;
}
.mft-front-page .mft-section { margin: 0; }
.mft-front-page .mft-hero { margin-top: 0; }

.mft-front-page .categories-section,
.mft-front-page .featured-section,
.mft-front-page .calculators-section,
.mft-front-page .trust-section,
.mft-front-page .cta-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 620px;
}

/* ==========================================================================
   Kadence compatibility polish
   Keep the active theme's header/footer, but make them match MindFolio.
   ========================================================================== */
.site-header,
#masthead {
    border-bottom: 1px solid var(--mft-color-border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#masthead .site-header-row-container-inner,
#masthead .site-header-row,
#masthead .site-main-header-wrap {
    min-height: 76px;
}

#masthead .site-container,
#masthead .site-header-row,
#masthead .site-header-section,
#masthead .site-branding {
    align-items: center;
}

#masthead .site-branding {
    display: flex;
    gap: 0.75rem;
    min-height: 76px;
}

#masthead .brand,
#masthead .site-branding a.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    text-decoration: none;
}

#masthead .custom-logo,
#masthead .site-branding img,
#masthead .site-logo img {
    width: auto;
    max-width: 170px;
    height: auto;
    max-height: 56px;
    object-fit: contain;
}

#masthead .site-title {
    max-width: 360px;
    color: var(--mft-color-dark);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.2;
    font-weight: 800;
}

#masthead .main-navigation .primary-menu-container > ul > li > a,
#masthead #site-navigation .menu > li > a {
    min-height: 76px;
    font-size: 0.95rem;
    font-weight: 650;
}

@media (max-width: 1024px) {
    #masthead .site-branding,
    #masthead .site-header-row-container-inner,
    #masthead .site-header-row,
    #masthead .site-main-header-wrap {
        min-height: 68px;
    }

    #masthead .custom-logo,
    #masthead .site-branding img,
    #masthead .site-logo img {
        max-width: 145px;
        max-height: 46px;
    }

    #masthead .site-title {
        max-width: 260px;
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    #masthead .custom-logo,
    #masthead .site-branding img,
    #masthead .site-logo img {
        max-width: 120px;
        max-height: 40px;
    }

    #masthead .site-title {
        max-width: 190px;
        font-size: 0.95rem;
    }
}

#colophon {
    border-top: 1px solid var(--mft-color-border);
    background: var(--mft-color-dark);
    color: rgba(255, 255, 255, 0.82);
}

#colophon .site-footer-row-container-inner {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

#colophon .footer-html,
#colophon .site-info,
#colophon .footer-html p {
    font-size: 0.92rem;
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

#colophon a {
    color: #fff;
}

#colophon .footer-html a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 0.25rem;
}

#colophon .mft-footer-social {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.35rem;
}

#colophon .mft-social-link {
    gap: 0.35rem;
    padding: 0 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    text-decoration: none;
}

#colophon .mft-social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

#colophon .mft-social-link:hover,
#colophon .mft-social-link:focus {
    background: rgba(255, 255, 255, 0.12);
}

/* Homepage trust links for AdSense readiness and user confidence. */
.trust-section {
    background: #ffffff;
}

.trust-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border: 1px solid var(--mft-color-border);
    border-radius: var(--mft-radius);
    background: #f8fafc;
}

.trust-copy h2 {
    margin: 0 0 0.75rem;
    color: var(--mft-color-dark);
    font-size: 1.55rem;
}

.trust-copy p {
    margin: 0 0 0.8rem;
    color: var(--mft-color-text);
    font-size: 1rem;
    line-height: 1.7;
}

.trust-copy p:last-child {
    margin-bottom: 0;
}

.trust-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.trust-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--mft-color-border);
    border-radius: 6px;
    background: #ffffff;
    color: var(--mft-color-primary);
    font-size: 0.93rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.trust-links a:hover,
.trust-links a:focus {
    border-color: var(--mft-color-primary-light);
    background: var(--mft-color-primary-light);
    color: var(--mft-color-primary-dark);
}

@media (max-width: 760px) {
    .trust-panel {
        grid-template-columns: 1fr;
        padding: 1.4rem;
    }

    .trust-links {
        grid-template-columns: 1fr;
    }
}

/* Lightweight cookie consent banner. */
.mft-cookie-consent {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 99999;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    width: min(960px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 8px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.mft-cookie-consent[hidden] {
    display: none;
}

.mft-cookie-consent__text {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    align-items: center;
    font-size: 0.92rem;
    line-height: 1.45;
}

.mft-cookie-consent__text strong {
    font-size: 1rem;
}

.mft-cookie-consent__text span {
    color: rgba(255, 255, 255, 0.82);
}

.mft-cookie-consent__text a {
    color: #bfdbfe;
    font-weight: 700;
}

.mft-cookie-consent__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.55rem;
}

.mft-cookie-consent__button {
    min-height: 48px;
    padding: 0.55rem 1rem;
    border: 1px solid #ffffff;
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
}

.mft-cookie-consent__button--secondary {
    background: transparent;
    color: #ffffff;
}

@media (max-width: 700px) {
    body {
        font-size: 16px;
    }

    .mft-cookie-consent {
        flex-direction: column;
        align-items: stretch;
    }

    .mft-cookie-consent__actions {
        width: 100%;
    }

    .mft-cookie-consent__button {
        flex: 1;
    }
}

/* Mobile usability guardrails for AdSense checks. */
.mft-hero .hero-actions .btn,
#colophon .mft-social-link {
    min-height: 48px;
}

@media (max-width: 767px) {
    html,
    body {
        font-size: 16px;
        text-size-adjust: 100%;
        -webkit-text-size-adjust: 100%;
    }

    #masthead .menu-toggle-open,
    #masthead .drawer-toggle,
    #mobile-drawer a,
    #mobile-drawer button,
    .mft-content .btn,
    .mft-section .btn,
    .section-link,
    .category-card,
    .post-card-link,
    .calculator-card-link,
    .trust-links a,
    #colophon .footer-html a,
    #colophon .mft-social-link {
        min-height: 48px;
    }

    .section-link,
    .post-card-category,
    .post-card-meta,
    .post-card-excerpt,
    .calculator-card-desc,
    .calculator-card-cta,
    .category-card p,
    .mft-cookie-consent__text,
    .mft-cookie-consent__button {
        font-size: 1rem;
    }

    body.blog .loop-entry .entry-taxonomies a,
    body.archive.category .loop-entry .entry-taxonomies a,
    body.search .loop-entry .entry-taxonomies a,
    body.blog .loop-entry .entry-meta,
    body.archive.category .loop-entry .entry-meta,
    body.search .loop-entry .entry-meta,
    body.blog .loop-entry .post-more-link,
    body.archive.category .loop-entry .post-more-link,
    body.search .loop-entry .post-more-link {
        font-size: 0.95rem;
    }
}

/* Legacy article shortcodes used by imported MindFolio posts. */
.entry-content .cta-block--inline,
.content-area .cta-block--inline,
.mft-prose .cta-block--inline {
    margin: 2rem 0;
    padding: 1.75rem;
    max-width: none;
    text-align: left;
    border: 1px solid #bfdbfe;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.entry-content .cta-block--inline h3,
.content-area .cta-block--inline h3,
.mft-prose .cta-block--inline h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.entry-content .cta-block--inline p,
.content-area .cta-block--inline p,
.mft-prose .cta-block--inline p {
    margin: 0 0 1rem;
}

.tip-box {
    margin: 1.5rem 0;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--mft-color-border);
    border-left: 4px solid var(--mft-color-info);
    border-radius: var(--mft-radius);
    background: #f0f9ff;
    color: var(--mft-color-text);
}

.tip-box--warning {
    border-left-color: var(--mft-color-warning);
    background: #fffbeb;
}

.tip-box-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
    color: var(--mft-color-dark);
    font-size: 1rem;
    line-height: 1.35;
}

.tip-box-title svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.tip-box-content > :last-child {
    margin-bottom: 0;
}

.calculator-embed {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border: 1px solid var(--mft-color-border);
    border-radius: var(--mft-radius);
    background: var(--mft-color-bg-alt);
}

/* Compact Kadence archive/category title band. */
body.archive.category .post-archive-hero-section .entry-hero-container-inner,
body.blog .post-archive-hero-section .entry-hero-container-inner,
body.search .search-archive-hero-section .entry-hero-container-inner {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
    min-height: 0;
}

body.archive.category .post-archive-title,
body.blog .post-archive-title,
body.search .search-archive-title {
    max-width: 780px;
    margin-right: auto;
    margin-left: auto;
}

body.archive.category .post-archive-title h1,
body.blog .post-archive-title h1,
body.search .search-archive-title h1 {
    margin-bottom: 0.55rem;
    font-size: clamp(2rem, 3.2vw, 2.65rem);
    line-height: 1.12;
}

body.archive.category .post-archive-title .archive-description,
body.blog .post-archive-title .archive-description,
body.search .search-archive-title .archive-description {
    margin-top: 0;
    font-size: 1.05rem;
    line-height: 1.55;
}

@media (max-width: 640px) {
    body.archive.category .post-archive-hero-section .entry-hero-container-inner,
    body.blog .post-archive-hero-section .entry-hero-container-inner,
    body.search .search-archive-hero-section .entry-hero-container-inner {
        padding-top: 1.6rem;
        padding-bottom: 1.6rem;
    }

    body.archive.category .post-archive-title h1,
    body.blog .post-archive-title h1,
    body.search .search-archive-title h1 {
        font-size: 1.85rem;
    }
}

/* Compact Kadence archive cards on Blog and category pages. */
body.blog #archive-container,
body.archive.category #archive-container,
body.search #archive-container {
    row-gap: 1.75rem;
}

body.blog .loop-entry,
body.archive.category .loop-entry,
body.search .loop-entry {
    overflow: hidden;
}

body.blog .loop-entry .post-thumbnail,
body.archive.category .loop-entry .post-thumbnail,
body.search .loop-entry .post-thumbnail {
    display: block;
    aspect-ratio: 16 / 9;
    height: 190px !important;
    max-height: 190px !important;
    padding-bottom: 0 !important;
    overflow: hidden;
}

body.blog .loop-entry .post-thumbnail-inner,
body.archive.category .loop-entry .post-thumbnail-inner,
body.search .loop-entry .post-thumbnail-inner {
    position: static !important;
    height: 100% !important;
    padding-bottom: 0 !important;
}

body.blog .loop-entry .post-thumbnail img,
body.archive.category .loop-entry .post-thumbnail img,
body.search .loop-entry .post-thumbnail img {
    position: static !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.blog .loop-entry .entry-content-wrap,
body.archive.category .loop-entry .entry-content-wrap,
body.search .loop-entry .entry-content-wrap {
    padding: 1.35rem 1.45rem 1.45rem;
}

body.blog .loop-entry .entry-taxonomies,
body.archive.category .loop-entry .entry-taxonomies,
body.search .loop-entry .entry-taxonomies {
    margin-bottom: 0.55rem;
}

body.blog .loop-entry .entry-taxonomies a,
body.archive.category .loop-entry .entry-taxonomies a,
body.search .loop-entry .entry-taxonomies a {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

body.blog .loop-entry .entry-title,
body.archive.category .loop-entry .entry-title,
body.search .loop-entry .entry-title {
    margin-bottom: 0.65rem;
    font-size: clamp(1.22rem, 1.45vw, 1.45rem);
    line-height: 1.32;
}

body.blog .loop-entry .entry-title a,
body.archive.category .loop-entry .entry-title a,
body.search .loop-entry .entry-title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

body.blog .loop-entry .entry-meta,
body.archive.category .loop-entry .entry-meta,
body.search .loop-entry .entry-meta {
    margin-bottom: 0.9rem;
    font-size: 0.78rem;
    line-height: 1.35;
}

body.blog .loop-entry .entry-summary,
body.archive.category .loop-entry .entry-summary,
body.search .loop-entry .entry-summary {
    margin-bottom: 1rem;
}

body.blog .loop-entry .entry-summary p,
body.archive.category .loop-entry .entry-summary p,
body.search .loop-entry .entry-summary p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.58;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

body.blog .loop-entry .entry-footer,
body.archive.category .loop-entry .entry-footer,
body.search .loop-entry .entry-footer {
    margin-top: 0;
}

body.blog .loop-entry .post-more-link,
body.archive.category .loop-entry .post-more-link,
body.search .loop-entry .post-more-link {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

@media (max-width: 640px) {
    body.blog .loop-entry .post-thumbnail,
    body.archive.category .loop-entry .post-thumbnail,
    body.search .loop-entry .post-thumbnail {
        height: 180px !important;
        max-height: 180px !important;
    }

    body.blog .loop-entry .entry-content-wrap,
    body.archive.category .loop-entry .entry-content-wrap,
    body.search .loop-entry .entry-content-wrap {
        padding: 1.2rem;
    }

    body.blog .loop-entry .entry-title,
    body.archive.category .loop-entry .entry-title,
    body.search .loop-entry .entry-title {
        font-size: 1.18rem;
    }
}
