:root{
    --brand:#1EA69A;
    --brand-dark:#147a72;
    --brand-soft:#e9f7f5;
    --orange:#F87D34;
    --orange-dark:#d95e18;
    --orange-soft:#fff1e8;
    --ink:#202927;
    --muted:#64706d;
    --line:#dce5e3;
    --paper:#fff;
    --soft:#f7f9f8;
    --max:1180px;
    --header-max:1440px
}

*{
    box-sizing:border-box
}

html{
    scroll-behavior:smooth
}

body{
    margin:0;
    color:var(--ink);
    background:var(--paper);
    font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    line-height:1.65;
    -webkit-font-smoothing:antialiased
}

a{
    color:inherit
}

.wrap{
    width:min(calc(100% - 40px),var(--max));
    margin-inline:auto
}

.narrow{
    max-width:820px
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header{
    position:sticky;
    top:0;
    z-index:20;
    background:rgba(255,255,255,.97);
    border-bottom:1px solid var(--line);
    backdrop-filter:blur(12px)
}

.header-inner{
    width:min(calc(100% - 64px),var(--header-max));
    min-height:82px;
    display:flex;
    align-items:center;
    gap:30px
}

.brand{
    display:flex;
    align-items:center;
    flex:0 0 auto;
    text-decoration:none;
    font-weight:900;
    letter-spacing:.08em;
    font-size:1.25rem;
    margin-right:auto
}

.custom-logo{
    max-height:48px;
    width:auto;
    display:block
}

.primary-nav{
    margin-left:auto
}

.primary-nav ul{
    display:flex;
    align-items:center;
    gap:26px;
    list-style:none;
    margin:0;
    padding:0
}

.primary-nav a,
.header-search{
    text-decoration:none;
    font-size:.9rem;
    font-weight:700;
    transition:.18s
}

.primary-nav a:hover,
.header-search:hover{
    color:var(--brand)
}

.primary-nav .nav-tools{
    color:var(--brand)
}

.header-search{
    border-left:1px solid var(--line);
    padding-left:22px
}

.menu-toggle{
    display:none
}


/* =========================================================
   HERO
   ========================================================= */

.hero{
    padding:92px 0 84px;
    background:linear-gradient(180deg,var(--brand-soft) 0,#fff 82%);
    border-bottom:1px solid #f0f4f3
}

.eyebrow{
    display:block;
    font-size:.74rem;
    letter-spacing:.15em;
    font-weight:850;
    color:var(--brand);
    margin-bottom:12px
}

.eyebrow.orange{
    color:var(--orange)
}

.hero h1,
.article-head h1,
.page-head h1{
    font-size:clamp(2.6rem,5.5vw,4.75rem);
    line-height:.99;
    letter-spacing:-.048em;
    margin:.1em 0 .3em
}

.hero p,
.dek{
    font-size:1.2rem;
    color:var(--muted);
    max-width:760px
}

.hero-search{
    display:flex;
    margin-top:34px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
    padding:6px;
    box-shadow:0 14px 36px rgba(30,166,154,.09)
}

.hero-search:focus-within{
    border-color:var(--brand);
    box-shadow:0 0 0 3px rgba(30,166,154,.11)
}

.hero-search input{
    flex:1;
    border:0;
    padding:14px;
    font:inherit;
    min-width:0;
    outline:0
}

.hero-search button{
    border:0;
    border-radius:10px;
    background:var(--brand);
    color:#fff;
    padding:0 26px;
    font-weight:800;
    cursor:pointer
}

.hero-search button:hover{
    background:var(--brand-dark)
}

.quick-links{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:18px;
    font-size:.82rem;
    color:var(--muted)
}

.quick-links span{
    font-weight:750
}

.quick-links a{
    color:var(--brand-dark);
    text-decoration:none;
    border-bottom:1px solid rgba(30,166,154,.28)
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section{
    padding:76px 0
}

.section-head{
    max-width:760px;
    margin-bottom:34px
}

.section-head h1,
.section-head h2,
.band h2,
.trust-strip h2{
    font-size:clamp(2rem,4vw,3.4rem);
    line-height:1.05;
    letter-spacing:-.037em;
    margin:.1em 0
}

.section-head p{
    color:var(--muted);
    font-size:1.05rem
}

.topic-grid,
.post-grid,
.tool-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px
}


/* =========================================================
   CARDS
   ========================================================= */

.topic-card,
.post-card a,
.tool-card{
    display:block;
    border:1px solid var(--line);
    border-radius:16px;
    padding:28px;
    text-decoration:none;
    background:#fff;
    transition:.2s
}

.topic-card:hover,
.post-card a:hover,
.tool-card:hover{
    transform:translateY(-3px);
    border-color:rgba(30,166,154,.5);
    box-shadow:0 14px 34px rgba(32,41,39,.08)
}

.topic-number{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    border-radius:50%;
    background:var(--brand-soft);
    color:var(--brand-dark);
    font-size:.75rem;
    font-weight:850;
    margin-bottom:20px
}

.topic-card:nth-child(even) .topic-number{
    background:var(--orange-soft);
    color:var(--orange-dark)
}

.topic-card h3,
.tool-card h3{
    font-size:1.3rem;
    line-height:1.2;
    margin:0 0 8px
}

.topic-card p,
.post-card p,
.tool-card p{
    color:var(--muted)
}

.card-link,
.topic-card>span:last-child,
.tool-card>span:last-child,
.post-card span{
    font-weight:800;
    color:var(--brand)
}


/* =========================================================
   COMMON PROBLEMS
   ========================================================= */

.problem-section{
    padding:72px 0;
    background:var(--soft);
    border-block:1px solid #edf1f0
}

.problem-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:14px
}

.problem-grid a{
    display:flex;
    justify-content:space-between;
    gap:22px;
    align-items:center;
    background:#fff;
    border:1px solid var(--line);
    border-radius:14px;
    padding:22px 24px;
    text-decoration:none
}

.problem-grid a:hover{
    border-color:var(--orange)
}

.problem-grid span{
    font-size:.86rem;
    color:var(--orange-dark);
    font-weight:750
}


/* =========================================================
   DIAGNOSE BAND
   ========================================================= */

.band{
    background:var(--brand-dark);
    color:#fff;
    padding:76px 0;
    position:relative;
    overflow:hidden
}

.band:after{
    content:"";
    position:absolute;
    width:220px;
    height:220px;
    border-radius:50%;
    right:-80px;
    top:-105px;
    background:rgba(248,125,52,.10)
}

.band-eyebrow{
    color:#aee9e3
}

.band-copy{
    color:#d7efec;
    max-width:500px
}

.split{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
    position:relative;
    z-index:1
}

.steps p{
    padding:16px 0;
    border-bottom:1px solid rgba(255,255,255,.17);
    margin:0
}

.steps p:last-child{
    border-bottom:0
}

.steps b span{
    color:#ffc09a;
    margin-right:5px
}


/* =========================================================
   TOOLS
   ========================================================= */

.tool-label{
    display:inline-block;
    font-size:.68rem;
    letter-spacing:.12em;
    font-weight:850;
    color:var(--brand-dark);
    background:var(--brand-soft);
    padding:6px 9px;
    border-radius:6px;
    margin-bottom:22px
}

.orange-bg{
    background:var(--orange-soft);
    color:var(--orange-dark)
}


/* =========================================================
   TRUST / RESEARCH
   ========================================================= */

.trust-strip{
    background:var(--brand-soft);
    border-top:1px solid #d7eeeb;
    padding:64px 0
}

.trust-inner{
    display:grid;
    grid-template-columns:1.2fr 1fr;
    gap:50px;
    align-items:center
}

.trust-inner p{
    color:var(--muted);
    margin:0
}

.text-link{
    color:var(--brand-dark);
    font-weight:800;
    text-decoration:none
}


/* =========================================================
   ARTICLES
   ========================================================= */

.article-head{
    padding:70px 0 30px
}

.article-head h1{
    font-size:clamp(2.5rem,5vw,4.4rem)
}

.breadcrumbs,
.meta{
    font-size:.86rem;
    color:var(--muted)
}

.breadcrumbs a{
    color:var(--brand)
}

.feature-image img{
    width:100%;
    height:auto;
    border-radius:18px
}

.article-layout{
    display:grid;
    grid-template-columns:minmax(0,760px) 280px;
    gap:70px;
    padding:30px 0 90px
}

.article-body{
    font-size:1.08rem
}

.article-body h2{
    font-size:2rem;
    line-height:1.15;
    letter-spacing:-.025em;
    margin-top:2.2em
}

.article-body h3{
    font-size:1.4rem;
    margin-top:1.8em
}

.article-body a{
    color:var(--brand-dark);
    text-decoration-thickness:1px;
    text-underline-offset:3px
}

.article-body img{
    max-width:100%;
    height:auto;
    border-radius:12px
}

.article-body blockquote{
    border-left:4px solid var(--orange);
    margin:2em 0;
    padding:1px 0 1px 22px;
    color:var(--muted)
}

.article-side{
    padding-top:20px;
    position:relative
}

.side-box,
.source-note{
    background:var(--soft);
    border-radius:14px;
    padding:22px
}

.side-box{
    position:sticky;
    top:96px
}

.source-note{
    margin-top:50px;
    border-left:4px solid var(--brand)
}

.source-note h2{
    font-size:1.25rem;
    margin-top:0
}

.ad-slot{
    margin-top:22px;
    min-height:90px;
    border:1px dashed var(--line);
    border-radius:12px
}

.page{
    padding:70px 0 90px
}


/* =========================================================
   CATEGORY HUBS
   ========================================================= */

.category-hero{
    padding:120px 0 82px;
    background:linear-gradient(180deg,var(--brand-soft) 0,#fff 90%);
    border-bottom:1px solid #f0f4f3
}

.category-hero h1{
    font-size:clamp(2.7rem,5.2vw,4.6rem);
    line-height:1;
    letter-spacing:-.045em;
    margin:.1em 0 .3em
}

.category-hero .dek{
    margin-bottom:0
}

.hub-problem{
    display:flex;
    justify-content:space-between;
    gap:22px;
    align-items:center;
    background:#fff;
    border:1px solid var(--line);
    border-radius:14px;
    padding:22px 24px;
    transition:.2s
}

.hub-problem:hover{
    border-color:var(--orange);
    transform:translateY(-2px)
}

.hub-problem strong{
    font-size:1rem
}

.hub-problem span{
    flex:0 0 auto;
    font-size:.86rem;
    color:var(--orange-dark);
    font-weight:750
}

.category-guides{
    border-top:1px solid var(--line)
}

.hub-empty-state{
    border:1px solid var(--line);
    border-radius:16px;
    padding:32px;
    background:var(--soft);
    color:var(--muted)
}

.hub-empty-state p{
    margin:0
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer{
    background:var(--brand-dark);
    color:#fff;
    padding:62px 0 26px
}

.footer-grid{
    display:grid;
    grid-template-columns:1.7fr repeat(3,1fr);
    gap:46px
}

.footer-brand{
    max-width:340px
}

.footer-logo{
    display:inline-block;
    margin-bottom:22px;
    line-height:0;
    text-decoration:none
}

.footer-logo .custom-logo-link{
    display:block;
    line-height:0
}

.footer-logo img,
.footer-logo .custom-logo{
    display:block;
    width:auto;
    height:46px;
    max-width:180px;
    object-fit:contain
}

.footer-logo-text{
    color:#fff;
    font-size:24px;
    font-weight:700;
    line-height:1
}

.footer-brand p{
    color:#d4e4e1;
    margin-top:0
}

.footer-grid h2{
    font-size:.78rem;
    text-transform:uppercase;
    letter-spacing:.12em;
    color:#b9e8e4;
    margin:0 0 14px
}

.footer-grid ul{
    list-style:none;
    padding:0;
    margin:0
}

.footer-grid li{
    margin:8px 0
}

.footer-grid a{
    text-decoration:none;
    color:#e4e9e7;
    font-size:.9rem
}

.footer-grid a:hover{
    color:#ffc09a
}

.legal{
    display:flex;
    justify-content:space-between;
    gap:24px;
    border-top:1px solid rgba(255,255,255,.18);
    margin-top:42px;
    padding-top:22px;
    font-size:.78rem;
    color:#b8c6c3
}


/* =========================================================
   POSTS / UTILITIES
   ========================================================= */

.post-card img{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:10px
}

.post-card h2{
    font-size:1.25rem;
    line-height:1.2
}

.error-page{
    padding:100px 0
}

.screen-reader-text{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0
}


/* =========================================================
   RESPONSIVE — DESKTOP / TABLET
   ========================================================= */

@media(max-width:1180px){

    .header-inner{
        width:min(calc(100% - 40px),var(--header-max))
    }

    .primary-nav ul{
        gap:18px
    }

    .primary-nav a{
        font-size:.84rem
    }

    .header-search{
        padding-left:16px
    }
}

@media(max-width:980px){

    .primary-nav ul{
        gap:14px
    }

    .primary-nav a{
        font-size:.82rem
    }

    .header-search{
        padding-left:14px
    }

    .footer-grid{
        grid-template-columns:1.5fr 1fr 1fr
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media(max-width:820px){

    .header-inner{
        width:min(calc(100% - 28px),var(--header-max));
        min-height:70px
    }

    .menu-toggle{
        display:block;
        border:1px solid var(--line);
        background:#fff;
        border-radius:8px;
        padding:8px 12px;
        font-weight:750
    }

    .header-search{
        display:none
    }

    .primary-nav{
        display:none;
        position:absolute;
        top:70px;
        left:0;
        right:0;
        background:#fff;
        border-bottom:1px solid var(--line);
        padding:20px
    }

    .primary-nav.is-open{
        display:block
    }

    .primary-nav ul{
        display:grid;
        gap:14px
    }

    .topic-grid,
    .post-grid,
    .tool-grid,
    .split,
    .article-layout,
    .footer-grid,
    .trust-inner{
        grid-template-columns:1fr
    }

    .problem-grid{
        grid-template-columns:1fr
    }

    .article-layout{
        gap:20px
    }

    .article-side{
        order:-1
    }

    .side-box{
        position:static
    }

    .hero{
        padding:72px 0
    }

    .category-hero{
        padding:82px 0 62px
    }

    .hero-search{
        display:grid
    }

    .hero-search button{
        padding:14px
    }

    .problem-grid a{
        align-items:flex-start;
        flex-direction:column;
        gap:5px
    }

    .hub-problem{
        align-items:flex-start;
        flex-direction:column;
        gap:6px
    }

    .legal{
        flex-direction:column
    }

    .wrap{
        width:min(calc(100% - 28px),var(--max))
    }

    .footer-logo{
        margin-bottom:18px
    }

    .footer-logo img,
    .footer-logo .custom-logo{
        height:42px;
        max-width:165px
    }
}
/* =========================================================
   ARTICLE EDITORIAL COMPONENTS — v0.4
   ========================================================= */

.article-meta{
    display:flex;
    flex-wrap:wrap;
    gap:5px
}

.key-takeaways{
    background:var(--brand-soft);
    border:1px solid #d7eeeb;
    border-radius:14px;
    padding:26px 28px;
    margin:0 0 38px
}

.key-takeaways h2{
    font-size:1.55rem;
    margin:.45em 0 .7em
}

.key-takeaways ul{
    margin:0;
    padding-left:1.25em
}

.key-takeaways li+li{
    margin-top:8px
}

.article-toc ol{
    list-style:none;
    padding:0;
    margin:16px 0 0
}

.article-toc li{
    border-top:1px solid var(--line)
}

.article-toc li:first-child{
    border-top:0
}

.article-toc a{
    display:block;
    padding:10px 0;
    color:var(--ink);
    text-decoration:none;
    font-size:.9rem;
    line-height:1.35
}

.article-toc a:hover{
    color:var(--brand-dark)
}

.article-sources,
.related-articles{
    margin-top:52px;
    padding-top:30px;
    border-top:1px solid var(--line)
}

.article-sources h2,
.related-articles h2{
    margin-top:.45em
}

.article-sources ol{
    padding-left:1.3em
}

.article-sources li+li{
    margin-top:12px
}

.related-articles-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px
}

.related-article-card{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    gap:18px;
    min-height:130px;
    padding:20px;
    border:1px solid var(--line);
    border-radius:12px;
    text-decoration:none
}

.related-article-card:hover{
    border-color:var(--brand)
}

.related-article-card span{
    color:var(--brand-dark);
    font-size:.86rem;
    font-weight:800
}

.article-body h2[id],
.article-body h3[id]{
    scroll-margin-top:110px
}

@media(max-width:820px){
    .article-side{
        order:0
    }

    .article-toc{
        position:static
    }

    .related-articles-grid{
        grid-template-columns:1fr
    }

    .key-takeaways{
        padding:22px
    }
}

/* =========================================================
   v0.8 — CORPORATE ORANGE ACCENT BALANCE
   Turquoise = information / structure. Orange = action / emphasis.
   ========================================================= */
.primary-nav .nav-tools{color:var(--orange-dark)}
.primary-nav .nav-tools:hover{color:var(--orange)}
.hero-search:focus-within{border-color:var(--orange);box-shadow:0 0 0 3px rgba(248,125,52,.13)}
.hero-search button{background:var(--orange)}
.hero-search button:hover{background:var(--orange-dark)}
.card-link,.topic-card>span:last-child,.tool-card>span:last-child,.post-card span{color:var(--orange-dark)}
.topic-card:hover,.post-card a:hover,.tool-card:hover{border-color:rgba(248,125,52,.55)}

/* =========================================================
   v0.9 — CATEGORY CONTENT-FIRST ARCHITECTURE
   Guides first; problem prompts second; relevant tools last.
   ========================================================= */
.category-guides{border-top:0}
.category-tools{border-top:1px solid var(--line);background:var(--soft)}
.category-tools .tool-grid{max-width:820px}
.hub-problem{cursor:default}
.hub-problem:hover{border-color:var(--line);transform:none}

/* =========================================================
   v0.10 — FRONT PAGE EDITORIAL REFINEMENT
   Latest Guides + active Home Tools
   ========================================================= */


/* ---------------------------------------------------------
   LATEST GUIDES
   --------------------------------------------------------- */

.latest-guides{
    border-top:1px solid var(--line)
}

.latest-guides-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px
}


/*
 * The article itself provides the card shell.
 * Remove the generic topic-card padding because guide cards
 * use a dedicated image + content layout.
 */

.latest-guides .guide-card{
    display:block;
    padding:0;
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:16px;
    background:#fff;
    transition:.2s
}

.latest-guides .guide-card:hover{
    transform:translateY(-3px);
    border-color:rgba(248,125,52,.55);
    box-shadow:0 14px 34px rgba(32,41,39,.08)
}


/*
 * Entire guide card is clickable without inheriting
 * normal underlined link styling.
 */

.latest-guides .guide-card > a{
    display:flex;
    flex-direction:column;
    height:100%;
    color:var(--ink);
    text-decoration:none
}


/* Image */

.guide-card-image{
    width:100%;
    aspect-ratio:16 / 9;
    overflow:hidden;
    background:var(--soft)
}

.guide-card-image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .3s ease
}

.guide-card:hover .guide-card-image img{
    transform:scale(1.025)
}


/* Category */

.latest-guides .guide-category{
    display:block;
    margin:22px 24px 8px;
    color:var(--brand-dark);
    font-size:.68rem;
    line-height:1.3;
    letter-spacing:.12em;
    text-transform:uppercase
}


/* Title */

.latest-guides .guide-card h3{
    margin:0 24px 10px;
    font-size:1.18rem;
    line-height:1.28;
    letter-spacing:-.018em
}


/* Excerpt */

.latest-guides .guide-card p{
    margin:0 24px 18px;
    color:var(--muted);
    font-size:.91rem;
    line-height:1.55;

    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    overflow:hidden
}


/* Read guide CTA */

.latest-guides .guide-card .card-link{
    display:block;
    margin:auto 24px 24px;
    padding-top:2px;
    color:var(--orange-dark);
    font-size:.86rem;
    font-weight:800;
    text-decoration:none
}


/* ---------------------------------------------------------
   HOME TOOLS — ACTIVE CARDS
   --------------------------------------------------------- */

.tools-preview .tool-card{
    position:relative;
    display:flex;
    flex-direction:column;
    min-height:245px;
    overflow:hidden
}


/*
 * Fine orange line reinforces that these are active tools
 * without replacing the turquoise information system.
 */

.tools-preview .tool-card:before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:3px;
    background:var(--orange)
}

.tools-preview .tool-card p{
    margin-bottom:22px
}

.tools-preview .tool-card .card-link{
    margin-top:auto;
    color:var(--orange-dark);
    font-size:.88rem;
    font-weight:800
}


/* ---------------------------------------------------------
   RESEARCH LINK
   --------------------------------------------------------- */

.trust-strip .text-link{
    display:inline-flex;
    align-items:center;
    width:max-content;
    color:var(--orange-dark);
    font-weight:800;
    text-decoration:none;
    transition:.18s
}

.trust-strip .text-link:hover{
    color:var(--orange)
}


/* ---------------------------------------------------------
   RESPONSIVE — TABLET
   --------------------------------------------------------- */

@media(max-width:980px){

    .latest-guides-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))
    }

}


/* ---------------------------------------------------------
   RESPONSIVE — MOBILE
   --------------------------------------------------------- */

@media(max-width:820px){

    .latest-guides-grid{
        grid-template-columns:1fr;
        gap:18px
    }

    .latest-guides .guide-category{
        margin:20px 20px 8px
    }

    .latest-guides .guide-card h3{
        margin-left:20px;
        margin-right:20px
    }

    .latest-guides .guide-card p{
        margin-left:20px;
        margin-right:20px
    }

    .latest-guides .guide-card .card-link{
        margin-left:20px;
        margin-right:20px;
        margin-bottom:22px
    }

    .tools-preview .tool-card{
        min-height:0
    }

}