/* =========================================================
   CandleStan Tools Platform v0.45
   Dedicated hub + standalone tool surfaces.
   ========================================================= */

body.candlestan-tools-surface .primary-site-content {
    background: var(--ch-bg, #f7f9fc);
}

.candlestan-tools,
.candlestan-tools * { box-sizing: border-box; }

.candlestan-tools {
    direction: rtl;
    color: var(--ch-ink);
    background:
        radial-gradient(circle at 88% 4%, rgba(11,195,176,.08), transparent 20%),
        linear-gradient(180deg, #fbfcfe 0, #f6f9fc 60%, #fff 100%);
    overflow: hidden;
}

.ct-hero {
    padding: 82px 0 74px;
}

.ct-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    align-items: center;
    gap: 54px;
}

.ct-hero__content h1,
.ct-single-hero h1 {
    margin: 10px 0 0;
    color: var(--ch-navy);
    font-weight: 900;
    letter-spacing: -.025em;
}

.ct-hero__content h1 { font-size: clamp(44px, 5vw, 68px); line-height: 1.25; }
.ct-hero__content > p {
    max-width: 760px;
    margin: 22px 0 0;
    color: #5f6f86;
    font-size: 17px;
    line-height: 2.05;
}

.ct-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.ct-hero__panel {
    position: relative;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    border: 1px solid rgba(20,59,104,.12);
    border-radius: 30px;
    background: linear-gradient(145deg, #fff, #eef8f8);
    box-shadow: var(--ch-shadow);
}

.ct-status-dot { display: flex; align-items: center; gap: 8px; color: #63748b; font-size: 12px; font-weight: 800; }
.ct-status-dot span { width: 9px; height: 9px; border-radius: 50%; background: var(--ch-teal); box-shadow: 0 0 0 6px rgba(11,195,176,.1); }
.ct-hero__panel > strong { margin-top: 12px; color: var(--ch-navy); font-size: 62px; line-height: 1; font-weight: 950; }
.ct-hero__panel > span { margin-top: 8px; color: #718097; font-size: 13px; }
.ct-hero__stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 25px; }
.ct-hero__stats div { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.78); border: 1px solid #e5ebf1; }
.ct-hero__stats b { display: block; color: var(--ch-navy); font-size: 22px; }
.ct-hero__stats small { display: block; margin-top: 3px; color: #8a96a7; font-size: 10px; }

.ct-directory-section { padding: 76px 0 90px; border-top: 1px solid #e8edf3; background: rgba(255,255,255,.5); }
.ct-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.ct-section-heading h2 { margin: 6px 0 0; color: var(--ch-navy); font-size: clamp(30px,3.5vw,46px); font-weight: 900; }
.ct-section-heading p { max-width: 520px; margin: 0; color: #7a8799; font-size: 13px; line-height: 1.9; }

.ct-directory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.ct-directory-card {
    --ct-accent: var(--ch-teal);
    position: relative;
    overflow: hidden;
    min-height: 390px;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid #dfe7f0;
    border-radius: 26px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 16px 38px rgba(13,40,75,.065);
    color: inherit !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ct-directory-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--ct-accent) 28%, #dfe7f0);
    box-shadow: 0 22px 48px rgba(13,40,75,.10);
}
.ct-directory-card:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ct-accent) 42%, transparent);
    outline-offset: 4px;
}
.ct-directory-card::before { content:""; position:absolute; inset:0 0 auto; height:4px; background:var(--ct-accent); }
.ct-directory-card--gold { --ct-accent: var(--ch-gold); }
.ct-directory-card--fx { --ct-accent: var(--ch-fx); }
.ct-directory-card--return { --ct-accent: var(--ch-stock); }
.ct-directory-card__top { display:flex; align-items:center; gap:13px; }
.ct-directory-card__icon { width:52px; height:52px; flex:0 0 52px; display:inline-flex; align-items:center; justify-content:center; border-radius:15px; color:var(--ct-accent); background:color-mix(in srgb,var(--ct-accent) 10%,white); font-size:19px; font-weight:900; direction:ltr; }
.ct-directory-card__category { display:block; color:#8b97a9; font-size:10px; font-weight:800; letter-spacing:.05em; }
.ct-directory-card h3 { margin:3px 0 0; color:var(--ch-navy); font-size:21px; font-weight:900; }
.ct-directory-card > p { min-height:76px; margin:20px 0; color:#6f7e93; font-size:13px; line-height:1.95; }
.ct-directory-card__reference { margin-top:auto; padding:14px 16px; border:1px solid #e5ebf1; border-radius:16px; background:#f8fafc; }
.ct-directory-card__reference span, .ct-directory-card__reference small { display:block; color:#8a96a7; font-size:10px; }
.ct-directory-card__reference strong { display:block; margin:4px 0; color:var(--ch-navy); font-size:18px; font-weight:900; font-feature-settings:"pnum" 1,"tnum" 0; }
.ct-directory-card__reference--neutral strong { font-size:15px; }
.ct-directory-card__link { display:inline-flex; align-items:center; gap:8px; margin-top:16px; color:var(--ch-navy)!important; text-decoration:none!important; font-size:12px; font-weight:900; transition:gap .18s ease,color .18s ease; }
.ct-directory-card:hover .ct-directory-card__link,
.ct-directory-card:focus-visible .ct-directory-card__link { gap:11px; color:var(--ct-accent)!important; }

.ct-principles-section { padding: 84px 0 94px; }
.ct-principles-copy { max-width: 760px; margin-bottom: 30px; }
.ct-principles-copy h2 { margin:7px 0 0; color:var(--ch-navy); font-size:clamp(30px,3.8vw,48px); font-weight:900; line-height:1.45; }
.ct-principles-copy p { margin:17px 0 0; color:#718097; font-size:14px; line-height:2; }
.ct-principles-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.ct-principles-grid article { padding:22px; border:1px solid #e2e8f0; border-radius:20px; background:#fff; }
.ct-principles-grid b { color:var(--ch-teal-dark); font-size:13px; }
.ct-principles-grid h3 { margin:10px 0 0; color:var(--ch-navy); font-size:18px; }
.ct-principles-grid p { margin:8px 0 0; color:#7b8798; font-size:12px; line-height:1.9; }

/* Single tool */
.ct-single-hero { padding:58px 0 48px; border-bottom:1px solid #e6ecf2; }
.ct-breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:28px; color:#95a0ae; font-size:11px; }
.ct-breadcrumb a { color:#66768c!important; text-decoration:none!important; }
.ct-breadcrumb strong { color:var(--ch-navy); }
.ct-single-hero__grid { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(270px,.7fr); gap:42px; align-items:center; }
.ct-single-title-row { display:flex; align-items:center; gap:18px; }
.ct-single-icon { --ct-accent:var(--ch-teal); width:68px; height:68px; flex:0 0 68px; display:inline-flex; align-items:center; justify-content:center; border-radius:20px; color:var(--ct-accent); background:color-mix(in srgb,var(--ct-accent) 10%,white); font-size:24px; font-weight:950; direction:ltr; }
.ct-single-icon--gold { --ct-accent:var(--ch-gold); }
.ct-single-icon--fx { --ct-accent:var(--ch-fx); }
.ct-single-icon--return { --ct-accent:var(--ch-stock); }
.ct-single-hero h1 { font-size:clamp(34px,4vw,54px); line-height:1.35; }
.ct-single-lead { max-width:780px; margin:20px 0 0; color:#68788f; font-size:15px; line-height:2; }
.ct-single-meta { padding:20px; border:1px solid #e1e8f0; border-radius:20px; background:#fff; box-shadow:0 12px 32px rgba(13,40,75,.05); }
.ct-single-meta span, .ct-single-meta small { display:block; color:#8995a6; font-size:10.5px; line-height:1.8; }
.ct-single-meta strong { display:block; margin:5px 0 8px; color:var(--ch-navy); font-size:16px; font-weight:900; }

.ct-calculator-section { padding:70px 0 82px; }
.ct-calculator-layout { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr); gap:24px; align-items:start; }
.ct-calculator-card { min-height:0; padding:30px; }
.ct-calculator-card h2 { margin:0; color:var(--ch-navy); font-size:24px; }
.ct-calculator-card .ch-tool-card__description { min-height:0; }
.ct-calculator-card .ch-tool-result { min-height:108px; padding:18px 20px; }
.ct-calculator-card .ch-tool-result strong { font-size:27px; }
.ct-guide-card { position:sticky; top:110px; padding:26px; border:1px solid #e0e7ef; border-radius:24px; background:#fff; box-shadow:0 16px 38px rgba(13,40,75,.055); }
.ct-guide-card h2 { margin:7px 0 0; color:var(--ch-navy); font-size:25px; font-weight:900; }
.ct-guide-card ol { margin:22px 0 0; padding:0 21px 0 0; color:#67778d; font-size:13px; line-height:2.1; }
.ct-guide-card li + li { margin-top:7px; }
.ct-formula { margin-top:22px; padding:16px; border-radius:16px; background:var(--ch-teal-soft); }
.ct-formula span { display:block; color:#5d817d; font-size:10px; }
.ct-formula b { display:block; margin-top:5px; color:var(--ch-navy); font-size:13px; line-height:1.8; }

.ct-info-section { padding:0 0 82px; }
.ct-info-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.ct-info-grid article { padding:22px; border:1px solid #e1e8f0; border-radius:20px; background:rgba(255,255,255,.85); }
.ct-info-grid span { color:var(--ch-teal-dark); font-size:11px; font-weight:900; }
.ct-info-grid h3 { margin:8px 0 0; color:var(--ch-navy); font-size:17px; }
.ct-info-grid p { margin:8px 0 0; color:#798699; font-size:12px; line-height:1.9; }

.ct-single-cta { padding:0 0 90px; }
.ct-single-cta__inner { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:28px 30px; border-radius:24px; background:linear-gradient(135deg,#061c45,#0a356b); }
.ct-single-cta h2 { margin:6px 0 0; color:#fff; font-size:24px; font-weight:900; }
.ct-single-cta .ch-kicker { color:#61ddcf; }
.ct-not-found { padding:100px 0; }

@media (max-width: 980px) {
    .ct-hero__grid,
    .ct-single-hero__grid,
    .ct-calculator-layout { grid-template-columns:1fr; }
    .ct-directory-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .ct-directory-card:last-child { grid-column:1/-1; }
    .ct-principles-grid,
    .ct-info-grid { grid-template-columns:1fr; }
    .ct-guide-card { position:static; }
}

@media (max-width: 680px) {
    .ct-hero { padding:50px 0 54px; }
    .ct-hero__content h1 { font-size:38px; }
    .ct-hero__content > p { font-size:14px; }
    .ct-hero__panel { min-height:0; padding:22px; border-radius:23px; }
    .ct-hero__panel > strong { font-size:48px; }
    .ct-directory-section { padding:54px 0 62px; }
    .ct-section-heading { align-items:flex-start; flex-direction:column; gap:10px; }
    .ct-directory-grid { grid-template-columns:1fr; gap:12px; }
    .ct-directory-card, .ct-directory-card:last-child { grid-column:auto; min-height:0; padding:19px; border-radius:21px; }
    .ct-directory-card > p { min-height:0; }
    .ct-principles-section { padding:58px 0 66px; }
    .ct-single-hero { padding:38px 0 36px; }
    .ct-single-title-row { align-items:flex-start; }
    .ct-single-icon { width:56px; height:56px; flex-basis:56px; border-radius:17px; font-size:20px; }
    .ct-single-hero h1 { font-size:31px; }
    .ct-calculator-section { padding:48px 0 56px; }
    .ct-calculator-card { padding:19px; border-radius:22px; }
    .ct-calculator-card .ch-tool-result strong { font-size:22px; }
    .ct-guide-card { padding:20px; border-radius:20px; }
    .ct-info-section { padding-bottom:58px; }
    .ct-single-cta { padding-bottom:62px; }
    .ct-single-cta__inner { align-items:stretch; flex-direction:column; padding:22px; border-radius:22px; }
    .ct-single-cta .ch-button { width:100%; }
}

/* =========================================================
   CandleStan Tools Platform v0.48 — Library expansion
   Category groups + standalone calculators.
   ========================================================= */

.ct-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 38px;
}

.ct-category-nav a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid #dde6ef;
    border-radius: 999px;
    background: #fff;
    color: var(--ch-navy) !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 850;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ct-category-nav a:hover {
    transform: translateY(-1px);
    border-color: rgba(11,195,176,.35);
    box-shadow: 0 8px 22px rgba(13,40,75,.06);
}

.ct-category-nav a span {
    min-width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ch-teal-soft);
    color: var(--ch-teal-dark);
    font-size: 10px;
    font-weight: 900;
}

.ct-tool-groups {
    display: grid;
    gap: 54px;
}

.ct-tool-group {
    scroll-margin-top: 120px;
}

.ct-tool-group + .ct-tool-group {
    padding-top: 48px;
    border-top: 1px solid #e9eef4;
}

.ct-tool-group__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 21px;
}

.ct-tool-group__heading h3 {
    margin: 5px 0 0;
    color: var(--ch-navy);
    font-size: 28px;
    font-weight: 900;
}

.ct-tool-group__heading p {
    max-width: 570px;
    margin: 0;
    color: #7a8799;
    font-size: 12.5px;
    line-height: 1.95;
    text-align: right;
}

.ct-directory-grid--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ct-directory-grid--count-1 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 510px;
    margin-right: 0;
    margin-left: auto;
}

.ct-directory-card h4 {
    margin: 3px 0 0;
    color: var(--ch-navy);
    font-size: 21px;
    line-height: 1.55;
    font-weight: 900;
}

.ct-directory-card--compound { --ct-accent: #0ca58f; }
.ct-directory-card--average { --ct-accent: #5574d9; }
.ct-directory-card--risk { --ct-accent: #d65c72; }
.ct-directory-card--compare { --ct-accent: #0b958a; }
.ct-directory-card--simulator { --ct-accent: #7658c9; }

.ct-single-icon--compound { --ct-accent: #0ca58f; }
.ct-single-icon--average { --ct-accent: #5574d9; }
.ct-single-icon--risk { --ct-accent: #d65c72; }

.ch-tool-card--compound { --tool-accent: #0ca58f; }
.ch-tool-card--average { --tool-accent: #5574d9; }
.ch-tool-card--risk { --tool-accent: #d65c72; }

.ct-tool-field-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
}

.ct-tool-field-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ct-tool-result-stack {
    min-height: 122px !important;
}

.ct-tool-result-stack > strong {
    direction: rtl;
    text-align: right;
    font-feature-settings: "pnum" 1, "tnum" 0;
    font-variant-numeric: proportional-nums;
    letter-spacing: 0;
}

.ct-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 8px;
}

.ct-result-meta small {
    margin-top: 0;
    line-height: 1.75;
}

.ch-tool-card--risk .ch-tool-result strong {
    direction: rtl;
}

@media (max-width: 980px) {
    .ct-directory-grid,
    .ct-directory-grid--count-2,
    .ct-directory-grid--count-1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    .ct-directory-card:last-child {
        grid-column: auto;
    }

    .ct-directory-grid--count-1 {
        grid-template-columns: minmax(0, 1fr);
        max-width: 520px;
    }

    .ct-tool-field-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .ct-category-nav {
        gap: 7px;
        margin-bottom: 30px;
    }

    .ct-category-nav a {
        min-height: 39px;
        padding: 0 12px;
        font-size: 11px;
    }

    .ct-tool-groups {
        gap: 42px;
    }

    .ct-tool-group + .ct-tool-group {
        padding-top: 38px;
    }

    .ct-tool-group__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 17px;
    }

    .ct-tool-group__heading h3 {
        font-size: 25px;
    }

    .ct-directory-grid,
    .ct-directory-grid--count-2,
    .ct-directory-grid--count-1 {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .ct-tool-field-grid,
    .ct-tool-field-grid--three {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ct-result-meta {
        display: grid;
        gap: 4px;
    }
}

/* =========================================================
   CandleStan Tools Platform v0.49 — Discovery layer
   Featured tool + accessible search/category filtering.
   ========================================================= */

.ct-featured-section {
    padding: 44px 0 0;
}

.ct-featured-tool {
    --ct-featured-accent: var(--ch-teal);
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    overflow: hidden;
    padding: 28px 30px;
    border-radius: 26px;
    background: linear-gradient(135deg, #061c45 0%, #0a356b 68%, #0c4f78 100%);
    box-shadow: 0 20px 48px rgba(6, 28, 69, .13);
}

.ct-featured-tool::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 240px;
    height: 240px;
    left: -70px;
    top: -90px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ct-featured-accent) 24%, transparent);
    filter: blur(2px);
}

.ct-featured-tool--compound { --ct-featured-accent: #18c6af; }
.ct-featured-tool--gold { --ct-featured-accent: #e7ad26; }
.ct-featured-tool--fx { --ct-featured-accent: #8a63d2; }
.ct-featured-tool--return { --ct-featured-accent: #5277da; }
.ct-featured-tool--average { --ct-featured-accent: #6e88e8; }
.ct-featured-tool--risk { --ct-featured-accent: #e7778a; }

.ct-featured-tool__icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    background: rgba(255, 255, 255, .09);
    color: #69e2d5;
    font-size: 26px;
    font-weight: 950;
    direction: ltr;
}

.ct-featured-tool .ch-kicker {
    color: #6ee6d9;
}

.ct-featured-tool__eyebrow {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, .62);
    font-size: 10.5px;
    font-weight: 750;
}

.ct-featured-tool h2 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 26px;
    font-weight: 950;
}

.ct-featured-tool p {
    max-width: 720px;
    margin: 7px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 12.5px;
    line-height: 1.95;
}

.ct-featured-tool__actions {
    min-width: 180px;
    display: grid;
    justify-items: stretch;
    gap: 10px;
}

.ct-featured-tool__actions > span {
    color: rgba(255, 255, 255, .58);
    font-size: 10.5px;
    text-align: center;
}

.ct-featured-tool__actions .ch-button {
    min-width: 180px;
    border-color: rgba(255, 255, 255, .14);
    background: #fff;
    color: #08295c !important;
}

.ct-discovery-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: end;
    gap: 16px 22px;
    margin-bottom: 44px;
    padding: 18px;
    border: 1px solid #e3eaf1;
    border-radius: 22px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 12px 34px rgba(13, 40, 75, .04);
}

.ct-tool-search {
    display: grid;
    gap: 7px;
}

.ct-tool-search__label {
    color: #7b8899;
    font-size: 10.5px;
    font-weight: 800;
}

.ct-tool-search__control {
    position: relative;
    display: block;
}

.ct-tool-search__icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #7a8798;
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
}

.ct-tool-search input {
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 0 46px 0 15px;
    border: 1px solid #dce5ed;
    border-radius: 15px;
    outline: none;
    background: #f9fbfd;
    color: var(--ch-navy);
    font-family: inherit;
    font-size: 13px;
    text-align: right;
    direction: rtl;
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.ct-tool-search input::placeholder {
    color: #9aa5b3;
    opacity: 1;
}

.ct-tool-search input:focus {
    border-color: rgba(11, 195, 176, .48);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(11, 195, 176, .08);
}

.ct-filter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 7px;
}

.ct-filter-row button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #dfe7ef;
    border-radius: 999px;
    background: #fff;
    color: #4d5e74;
    font-family: inherit;
    font-size: 11px;
    font-weight: 820;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.ct-filter-row button:hover {
    transform: translateY(-1px);
    border-color: rgba(11, 195, 176, .35);
}

.ct-filter-row button.is-active,
.ct-filter-row button[aria-pressed="true"] {
    border-color: rgba(11, 195, 176, .22);
    background: var(--ch-teal-soft);
    color: #087668;
}

.ct-filter-row button span {
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(9, 49, 92, .055);
    font-size: 9.5px;
}

.ct-discovery-status {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
    color: #8a96a6;
    font-size: 10.5px;
}

.ct-discovery-status__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ch-teal);
    box-shadow: 0 0 0 5px rgba(11, 195, 176, .08);
}

.ct-discovery-status strong {
    color: var(--ch-navy);
    font-size: 11px;
}

.ct-directory-card[hidden],
.ct-tool-group[hidden] {
    display: none !important;
}

.ct-no-results {
    margin-top: 24px;
    padding: 38px 24px;
    border: 1px dashed #d8e1ea;
    border-radius: 24px;
    background: #fbfcfe;
    text-align: center;
}

.ct-no-results > span {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #eef4f8;
    color: #6e7e91;
    font-size: 24px;
}

.ct-no-results h3 {
    margin: 13px 0 0;
    color: var(--ch-navy);
    font-size: 20px;
}

.ct-no-results p {
    margin: 7px 0 0;
    color: #8290a1;
    font-size: 12px;
}

.ct-no-results button {
    margin-top: 16px;
    padding: 9px 15px;
    border: 1px solid #dce5ed;
    border-radius: 999px;
    background: #fff;
    color: var(--ch-navy);
    font-family: inherit;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

@media (max-width: 980px) {
    .ct-featured-tool {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .ct-featured-tool__icon {
        width: 64px;
        height: 64px;
        border-radius: 19px;
    }

    .ct-featured-tool__actions {
        grid-column: 1 / -1;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .ct-featured-tool__actions > span {
        text-align: right;
    }

    .ct-discovery-panel {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .ct-filter-row {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .ct-featured-section {
        padding-top: 30px;
    }

    .ct-featured-tool {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 15px;
        padding: 21px;
        border-radius: 22px;
    }

    .ct-featured-tool__icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        font-size: 20px;
    }

    .ct-featured-tool h2 {
        font-size: 22px;
    }

    .ct-featured-tool p {
        font-size: 11.5px;
    }

    .ct-featured-tool__actions {
        grid-template-columns: 1fr;
    }

    .ct-featured-tool__actions > span {
        text-align: right;
    }

    .ct-featured-tool__actions .ch-button {
        width: 100%;
        min-width: 0;
    }

    .ct-discovery-panel {
        gap: 13px;
        margin-bottom: 34px;
        padding: 14px;
        border-radius: 18px;
    }

    .ct-tool-search input {
        min-height: 47px;
        font-size: 12px;
    }

    .ct-filter-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ct-filter-row button {
        width: 100%;
        min-height: 39px;
        padding: 0 9px;
        font-size: 10.5px;
    }
}


/* =========================================================
   CandleStan Tools Platform v0.50 — Discovery visibility +
   tools-menu current-state recovery.

   WordPress considers custom links that share /tools/ but differ only by
   fragments (#ct-group-...) as the same current URL. That can mark every
   tools submenu item as current at once. On the tools surface we neutralize
   those false positives and let tools-discovery.js mark the exact hash item.
   ========================================================= */

body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu ul.sub-menu a[href*="/tools/"] {
    font-weight: 720 !important;
}

body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu ul.sub-menu .current-menu-item > a[href*="/tools/"],
body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu ul.sub-menu .current_page_item > a[href*="/tools/"],
body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu ul.sub-menu .current-menu-ancestor > a[href*="/tools/"],
body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu ul.sub-menu .current_page_ancestor > a[href*="/tools/"] {
    color: #56657b !important;
    background: transparent !important;
    font-weight: 720 !important;
}

body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu ul.sub-menu .current-menu-item > a[href*="/tools/"]::before,
body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu ul.sub-menu .current_page_item > a[href*="/tools/"]::before,
body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu ul.sub-menu .current-menu-ancestor > a[href*="/tools/"]::before,
body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu ul.sub-menu .current_page_ancestor > a[href*="/tools/"]::before {
    display: none !important;
}

body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu ul.sub-menu a[href*="/tools/"].ct-tools-menu-active {
    color: #075c70 !important;
    background: rgba(18,199,187,.10) !important;
    font-weight: 850 !important;
}

body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu ul.sub-menu a[href*="/tools/"].ct-tools-menu-active::before {
    display: none !important;
}

/* =========================================================
   CandleStan v0.59.15 — Tools submenu state hardening

   WordPress can flag fragment links under the Tools parent as current even
   though only the parent page is current. On the Tools surface, child items
   start neutral; the exact destination is re-applied by tools-discovery.js.
   ========================================================= */
@media (min-width: 992px) {
    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li.current-menu-item > ul.sub-menu > li > a,
    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li.current_page_item > ul.sub-menu > li > a,
    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li.current-menu-ancestor > ul.sub-menu > li > a,
    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li.current_page_ancestor > ul.sub-menu > li > a {
        color: #56657b !important;
        background: transparent !important;
        font-weight: 720 !important;
    }

    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li.current-menu-item > ul.sub-menu > li > a::before,
    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li.current_page_item > ul.sub-menu > li > a::before,
    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li.current-menu-ancestor > ul.sub-menu > li > a::before,
    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li.current_page_ancestor > ul.sub-menu > li > a::before {
        display: none !important;
    }

    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li > ul.sub-menu > li > a:hover,
    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li > ul.sub-menu > li > a:focus-visible {
        color: #075c70 !important;
        background: rgba(18,199,187,.075) !important;
    }

    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li > ul.sub-menu > li > a.ct-tools-menu-active {
        color: #075c70 !important;
        background: rgba(18,199,187,.10) !important;
        font-weight: 850 !important;
    }

    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li > ul.sub-menu > li > a.ct-tools-menu-active::before {
        display: none !important;
    }
}

/* CandleStan v0.81.5 — tools hub full-width product surface repair. */
body.candlestan-tools-surface .primary-site-content,
body.candlestan-tools-surface #primary-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
body.candlestan-tools-surface .candlestan-tools {
    width: 100%;
    max-width: none;
}

/* =========================================================
   CandleStan v0.82.0 — Tools Hub v2
   Curated discovery, three controlled families, flagship suite.
   ========================================================= */
body.candlestan-tools-surface .primary-site-content,
body.candlestan-tools-surface #primary-content{width:100%;max-width:none;margin:0;padding:0}
.ct2{--ct2-navy:#072c62;--ct2-teal:#079f94;--ct2-muted:#667a92;--ct2-line:#dfe8ef;width:100%;max-width:none;background:linear-gradient(180deg,#fbfdff 0%,#f7fbfc 46%,#fff 100%);overflow:hidden}
.ct2 .ch-shell{width:min(1280px,calc(100% - 56px));max-width:1280px;margin-inline:auto}
.ct2-hero{position:relative;padding:68px 0 64px;border-bottom:1px solid #e3ebf1;background:radial-gradient(circle at 13% 20%,rgba(92,74,190,.11),transparent 28%),radial-gradient(circle at 80% 10%,rgba(8,173,160,.11),transparent 28%),linear-gradient(118deg,#fafcff 0%,#edf9f7 58%,#fff 100%)}
.ct2-hero:after{content:"";position:absolute;left:-120px;bottom:-220px;width:370px;height:370px;border:54px solid rgba(8,168,158,.045);border-radius:50%}
.ct2-hero__grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(420px,.88fr);gap:64px;align-items:center}
.ct2-breadcrumb{margin-bottom:20px;color:#8b98aa;font-size:11px}.ct2-breadcrumb span{margin:0 7px}.ct2-breadcrumb strong{color:var(--ct2-navy)}
.ct2-hero__copy h1{margin:9px 0 0;color:var(--ct2-navy);font-size:clamp(38px,4.25vw,60px);line-height:1.18;font-weight:950;letter-spacing:-.035em;white-space:nowrap}
.ct2-hero__copy>p{max-width:780px;margin:20px 0 0;color:#60758c;font-size:15.5px;line-height:2.1;text-align:justify}
.ct2-hero__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:25px}.ct2-trust{margin-top:16px;color:#708198;font-size:11px;font-weight:800}.ct2-trust span{color:var(--ct2-teal);margin-left:5px}
.ct2-orbit{position:relative;min-height:365px;overflow:hidden;border-radius:31px;background:linear-gradient(145deg,#142f64 0%,#383e7f 45%,#078b83 100%);box-shadow:0 28px 72px rgba(6,40,93,.2)}
.ct2-orbit:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 10%,rgba(255,255,255,.17),transparent 28%)}
.ct2-orbit__ring{position:absolute;left:50%;top:50%;border:1px solid rgba(255,255,255,.13);border-radius:50%;transform:translate(-50%,-50%)}.ct2-orbit__ring--one{width:250px;height:250px}.ct2-orbit__ring--two{width:335px;height:335px;animation:ct2spin 26s linear infinite}
.ct2-orbit__ring--two:after{content:"";position:absolute;width:8px;height:8px;border-radius:50%;background:#69ebde;box-shadow:0 0 0 6px rgba(105,235,222,.12);top:36px;right:57px}
@keyframes ct2spin{to{transform:translate(-50%,-50%) rotate(360deg)}}
.ct2-orbit__core{position:absolute;z-index:3;left:50%;top:50%;width:126px;height:126px;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:translate(-50%,-50%);border-radius:50%;background:#0c2d61;color:#fff;box-shadow:0 18px 45px rgba(2,23,59,.25)}.ct2-orbit__core small{font-size:10px;opacity:.7}.ct2-orbit__core strong{margin-top:2px;font-size:38px;line-height:1.1}.ct2-orbit__core span{font-size:10px;opacity:.75}
.ct2-orbit__node{position:absolute;z-index:4;display:flex;align-items:center;gap:7px;max-width:190px;padding:7px 9px;border:1px solid rgba(255,255,255,.15);border-radius:999px;background:rgba(5,34,79,.55);color:#fff!important;text-decoration:none!important;backdrop-filter:blur(5px);transition:.18s ease}.ct2-orbit__node:hover{transform:translateY(-2px);background:rgba(5,34,79,.8)}.ct2-orbit__node b{display:grid;width:27px;height:27px;place-items:center;border-radius:50%;background:rgba(255,255,255,.12);font-size:10px;direction:ltr}.ct2-orbit__node span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:850}.ct2-orbit__node--1{top:70px;right:35px}.ct2-orbit__node--2{top:115px;left:25px}.ct2-orbit__node--3{bottom:91px;right:30px}.ct2-orbit__node--4{bottom:70px;left:36px}
.ct2-orbit__status{position:absolute;z-index:4;right:23px;bottom:20px;display:flex;align-items:center;gap:7px;color:rgba(255,255,255,.74);font-size:10px;font-weight:800}.ct2-orbit__status i{width:7px;height:7px;border-radius:50%;background:#63e4d7;box-shadow:0 0 0 5px rgba(99,228,215,.12)}
.ct2-overview{position:relative;z-index:3;margin-top:-1px;padding:17px 0;background:rgba(255,255,255,.65);border-bottom:1px solid #e8eef3}.ct2-overview__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.ct2-overview article{padding:14px 17px;border:1px solid #e2e9ef;border-radius:17px;background:#fff;text-align:center}.ct2-overview span,.ct2-overview strong,.ct2-overview small{display:block}.ct2-overview span{color:#8996a8;font-size:10px;font-weight:900}.ct2-overview strong{margin-top:4px;color:var(--ct2-navy);font-size:25px}.ct2-overview small{margin-top:3px;color:#8d9aaa;font-size:9.5px;line-height:1.7}
.ct2-flagships,.ct2-directory{padding:62px 0}.ct2-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:34px;margin-bottom:24px}.ct2-section-head h2{margin:5px 0 0;color:var(--ct2-navy);font-size:clamp(29px,3.2vw,42px);line-height:1.4;font-weight:950;white-space:nowrap}.ct2-section-head>p{max-width:590px;margin:0;color:var(--ct2-muted);font-size:12.5px;line-height:2;text-align:justify}
.ct2-flagship-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.ct2-flagship-card{position:relative;overflow:hidden;display:flex;flex-direction:column;min-height:292px;padding:21px;border:1px solid #dfe8ef;border-radius:23px;background:#fff;color:inherit!important;text-decoration:none!important;box-shadow:0 14px 36px rgba(7,42,84,.055);transition:.2s ease}.ct2-flagship-card:hover{transform:translateY(-4px);box-shadow:0 22px 48px rgba(7,42,84,.1)}.ct2-flagship-card:before{content:"";position:absolute;left:-40px;bottom:-55px;width:135px;height:135px;border-radius:50%;background:rgba(8,168,158,.055)}.ct2-flagship-card--market-radar{background:linear-gradient(150deg,#f8fbff,#f0fbf9)}.ct2-flagship-card--best-investment{background:linear-gradient(150deg,#fffaf0,#fff)}.ct2-flagship-card--investment-simulator{background:linear-gradient(150deg,#f7f4ff,#fff)}
.ct2-flagship-card__top{display:flex;align-items:center;justify-content:space-between}.ct2-tool-no{color:#a0aab6;font-size:10px;font-weight:900}.ct2-tool-icon{display:grid;width:44px;height:44px;place-items:center;border-radius:14px;background:#edf7f6;color:#087f77;font-weight:950;direction:ltr}.ct2-flagship-card>small{margin-top:17px;color:#0a968c;font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.ct2-flagship-card h3{margin:5px 0 0;color:var(--ct2-navy);font-size:20px;line-height:1.5}.ct2-flagship-card>p{margin:9px 0 0;color:#718198;font-size:11.5px;line-height:1.95;text-align:justify}.ct2-flagship-card__foot{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:18px}.ct2-flagship-card__foot span{color:#8795a7;font-size:9.5px}.ct2-flagship-card__foot b{color:var(--ct2-navy);font-size:10.5px}
.ct2-directory{border-top:1px solid #e5edf2;background:linear-gradient(180deg,rgba(246,251,251,.72),#fff)}.ct2-section-head--directory{margin-bottom:18px}
.ct2-discovery-bar{display:grid;grid-template-columns:minmax(280px,1fr) minmax(0,1.65fr) auto;gap:14px;align-items:end;margin-bottom:35px;padding:17px;border:1px solid #e0e8ef;border-radius:22px;background:#fff;box-shadow:0 14px 36px rgba(7,42,84,.045)}.ct2-search>span{display:block;margin-bottom:7px;color:#7e8c9e;font-size:10px;font-weight:900}.ct2-search>div{position:relative}.ct2-search i{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#76869a;font-style:normal}.ct2-search input{width:100%;height:45px;padding:0 41px 0 12px;border:1px solid #dce5ed;border-radius:13px;background:#f9fbfd;color:var(--ct2-navy);font-family:inherit;font-size:12px;outline:0;text-align:right}.ct2-search input:focus{border-color:rgba(8,168,158,.45);box-shadow:0 0 0 4px rgba(8,168,158,.07);background:#fff}
.ct2-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.ct2-filters button{min-height:45px;padding:7px 9px;border:1px solid #dce5ed;border-radius:13px;background:#fbfcfe;color:#4f6177;font-family:inherit;font-size:10.5px;font-weight:850;cursor:pointer}.ct2-filters button b{display:inline-grid;min-width:22px;height:22px;place-items:center;margin-right:5px;border-radius:999px;background:#eef3f7;color:#64778d;font-size:9px}.ct2-filters button.is-active{border-color:#98ddd6;background:#edf9f7;color:#087d75}.ct2-filters button.is-active b{background:#d9f2ef;color:#087d75}
.ct2-result-count{display:flex;align-items:center;gap:5px;height:45px;padding:0 12px;border:1px solid #e0e8ef;border-radius:13px;color:#8694a5;font-size:9.5px;white-space:nowrap}.ct2-result-count i{width:6px;height:6px;border-radius:50%;background:#08a89e}.ct2-result-count strong{color:var(--ct2-navy);font-size:11px}
.ct2-tool-group+ .ct2-tool-group{margin-top:44px}.ct2-group-head{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:15px}.ct2-group-head h3{margin:4px 0 0;color:var(--ct2-navy);font-size:25px}.ct2-group-head>p{max-width:620px;margin:0;color:#75859a;font-size:11.5px;line-height:1.95;text-align:justify}.ct2-tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.ct2-tool-grid--market{grid-template-columns:repeat(2,minmax(0,1fr))}
.ct2-tool-card{min-height:255px!important;padding:18px!important;border-radius:20px!important;box-shadow:0 12px 30px rgba(7,42,84,.045)!important}.ct2-tool-card:before{height:3px}.ct2-tool-card__head{display:flex;align-items:center;gap:11px}.ct2-tool-card__icon{display:grid;width:44px;height:44px;flex:0 0 44px;place-items:center;border-radius:13px;background:#eef5f7;color:#087f77;font-size:12px;font-weight:950;direction:ltr}.ct2-tool-card__head small{display:block;color:#8b98a9;font-size:8.8px;font-weight:850;direction:ltr;text-align:right}.ct2-tool-card h4{margin:3px 0 0;color:var(--ct2-navy);font-size:16px;line-height:1.55}.ct2-tool-card>p{min-height:0!important;margin:14px 0 0!important;color:#75859a!important;font-size:10.8px!important;line-height:1.95!important;text-align:justify}.ct2-tool-card__meta{margin-top:auto;padding-top:15px}.ct2-tool-card__meta span{display:flex;align-items:center;gap:6px;color:#60758d;font-size:9.5px}.ct2-tool-card__meta i{width:6px;height:6px;border-radius:50%;background:#08a89e;box-shadow:0 0 0 4px rgba(8,168,158,.08)}.ct2-tool-card__meta .is-neutral i{background:#8a96a6;box-shadow:none}.ct2-tool-card__meta b{color:var(--ct2-navy);font-size:10px}.ct2-tool-card__foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px;padding-top:11px;border-top:1px solid #edf2f5}.ct2-tool-card__foot span{color:#8d9aaa;font-size:9px}.ct2-tool-card__foot b{color:var(--ct2-navy);font-size:9.8px}
.ct2-standard{padding:0 0 80px}.ct2-standard__inner{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr);gap:26px;align-items:center;padding:27px 30px;border:1px solid #dfe8ef;border-radius:25px;background:linear-gradient(135deg,#f6fbfa,#fff);box-shadow:0 15px 40px rgba(7,42,84,.045)}.ct2-standard__copy h2{margin:5px 0 0;color:var(--ct2-navy);font-size:27px}.ct2-standard__copy p{margin:9px 0 0;color:#728398;font-size:11.5px;line-height:2;text-align:justify}.ct2-standard__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.ct2-standard__grid article{padding:15px 12px;border:1px solid #e1e9ef;border-radius:15px;background:#fff;text-align:center}.ct2-standard__grid b{color:#07998f;font-size:10px}.ct2-standard__grid strong,.ct2-standard__grid small{display:block}.ct2-standard__grid strong{margin-top:5px;color:var(--ct2-navy);font-size:11.5px}.ct2-standard__grid small{margin-top:4px;color:#8b98a8;font-size:8.8px;line-height:1.7}
.ct2-no-results{margin-top:20px!important}
@media(max-width:1180px){.ct2-hero__grid{grid-template-columns:minmax(0,1fr) 390px;gap:38px}.ct2-hero__copy h1{font-size:clamp(34px,3.8vw,48px)}.ct2-flagship-grid,.ct2-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ct2-tool-grid--market{grid-template-columns:repeat(2,minmax(0,1fr))}.ct2-discovery-bar{grid-template-columns:1fr}.ct2-standard__inner{grid-template-columns:1fr}.ct2-section-head h2{white-space:normal}}
@media(max-width:900px){.ct2-hero__grid{grid-template-columns:1fr}.ct2-orbit{min-height:335px}.ct2-overview__grid{grid-template-columns:1fr 1fr}.ct2-section-head,.ct2-group-head{align-items:flex-start;flex-direction:column}.ct2-section-head>p,.ct2-group-head>p{max-width:none}.ct2-standard__grid{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:680px){.ct2 .ch-shell{width:min(100% - 28px,1280px)}.ct2-hero{padding:44px 0}.ct2-hero__copy h1{font-size:34px;white-space:normal}.ct2-hero__copy>p{font-size:13px}.ct2-orbit{min-height:310px;border-radius:24px}.ct2-orbit__ring--two{width:280px;height:280px}.ct2-orbit__node{max-width:145px}.ct2-orbit__node span{font-size:9px}.ct2-overview__grid,.ct2-flagship-grid,.ct2-tool-grid,.ct2-tool-grid--market,.ct2-standard__grid{grid-template-columns:1fr}.ct2-flagships,.ct2-directory{padding:46px 0}.ct2-section-head h2{font-size:29px;white-space:normal}.ct2-filters{grid-template-columns:1fr 1fr}.ct2-discovery-bar{padding:13px;border-radius:18px}.ct2-tool-card{min-height:0!important}.ct2-standard{padding-bottom:55px}.ct2-standard__inner{padding:20px;border-radius:20px}}

/* =========================================================
   CandleStan v0.82.1 — Tools Hub polish
   Full-page background continuity + asymmetric overview stats
   + denser market utility cards + refreshed tools submenu.
   ========================================================= */
body.candlestan-tools-surface,
body.candlestan-tools-surface .site,
body.candlestan-tools-surface .primary-site-content,
body.candlestan-tools-surface #primary-content{
    background:
        radial-gradient(circle at 8% 18%, rgba(90,76,190,.10), transparent 24%),
        radial-gradient(circle at 92% 6%, rgba(11,195,176,.10), transparent 22%),
        linear-gradient(180deg, #fbfdff 0%, #eff8f8 24%, #f8fbfd 58%, #ffffff 100%);
}

.ct2{
    position:relative;
    isolation:isolate;
    background:transparent;
    overflow:hidden;
}

.ct2::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background:
        radial-gradient(circle at 11% 11%, rgba(101,86,204,.10), transparent 23%),
        radial-gradient(circle at 78% 10%, rgba(8,173,160,.11), transparent 25%),
        radial-gradient(circle at 14% 76%, rgba(8,168,158,.06), transparent 26%),
        linear-gradient(180deg, rgba(251,253,255,.94) 0%, rgba(242,250,249,.94) 32%, rgba(248,251,253,.96) 68%, rgba(255,255,255,.98) 100%);
}

.ct2-hero,
.ct2-overview,
.ct2-flagships,
.ct2-directory,
.ct2-standard{
    position:relative;
    background:transparent;
}

.ct2-directory{
    background:transparent;
}

.ct2-overview{
    padding:20px 0 12px;
    border-bottom:1px solid #e6edf2;
    background:rgba(255,255,255,.18);
}

.ct2-overview__layout{
    display:grid;
    grid-template-columns:minmax(280px, 1.08fr) minmax(420px, .92fr);
    gap:20px;
    align-items:stretch;
}

.ct2-overview__pair{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}

.ct2-overview-card{
    position:relative;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-height:106px;
    padding:18px 20px;
    border:1px solid rgba(211,225,235,.95);
    border-radius:20px;
    background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,253,.94));
    box-shadow:0 18px 40px rgba(7,42,84,.045);
    text-align:center;
}

.ct2-overview-card::before{
    content:"";
    position:absolute;
    inset:0 auto 0 0;
    width:4px;
    background:linear-gradient(180deg, rgba(8,168,158,.65), rgba(7,44,98,.35));
    opacity:.92;
}

.ct2-overview-card--total{
    text-align:right;
    align-items:flex-start;
    padding-inline:24px;
    background:linear-gradient(135deg, rgba(8,44,98,.98), rgba(17,94,129,.92));
    border-color:rgba(9,63,107,.18);
    color:#fff;
}

.ct2-overview-card--total::before{
    width:100%;
    inset:auto 0 0;
    height:5px;
    background:linear-gradient(90deg, rgba(108,233,222,.88), rgba(241,195,79,.82));
}

.ct2-overview-card--total span,
.ct2-overview-card--total strong,
.ct2-overview-card--total small{color:#fff}
.ct2-overview-card--total span{opacity:.78}
.ct2-overview-card--total small{opacity:.72}

.ct2-overview-card--connected::before{background:linear-gradient(180deg, rgba(8,168,158,.9), rgba(8,168,158,.38))}
.ct2-overview-card--flagship::before{background:linear-gradient(180deg, rgba(84,105,219,.82), rgba(84,105,219,.30))}

.ct2-overview-card span,
.ct2-overview-card strong,
.ct2-overview-card small{display:block}
.ct2-overview-card span{color:#8190a3;font-size:10px;font-weight:900}
.ct2-overview-card strong{margin-top:4px;color:var(--ct2-navy);font-size:28px;line-height:1.05;font-weight:950}
.ct2-overview-card small{margin-top:5px;color:#8694a6;font-size:10px;line-height:1.9}
.ct2-overview-card--total strong{font-size:34px}

.ct2-tool-grid--market .ct2-tool-card{
    min-height:208px !important;
    padding:17px 18px 16px !important;
}

.ct2-tool-grid--market .ct2-tool-card__head{
    gap:12px;
}

.ct2-tool-grid--market .ct2-tool-card h4{
    font-size:17px;
}

.ct2-tool-grid--market .ct2-tool-card > p{
    margin:11px 0 12px !important;
    max-width:94%;
    line-height:1.85 !important;
}

.ct2-tool-grid--market .ct2-tool-card__meta{
    margin-top:12px;
    padding:13px 14px;
    border:1px solid #e0e9ef;
    border-radius:15px;
    background:linear-gradient(180deg, #fcfefe, #f4fafb);
}

.ct2-tool-grid--market .ct2-tool-card__meta span{
    justify-content:space-between;
    gap:10px;
    font-size:10px;
    font-weight:800;
}

.ct2-tool-grid--market .ct2-tool-card__meta b{
    font-size:18px;
    font-weight:950;
    line-height:1.2;
}

.ct2-tool-grid--market .ct2-tool-card__foot{
    margin-top:10px;
    padding-top:10px;
}

@media (min-width: 992px){
    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li > ul.sub-menu,
    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li > ul.children{
        min-width:250px;
        padding:10px;
        border:1px solid rgba(217,228,236,.96);
        border-radius:18px;
        background:rgba(255,255,255,.97);
        box-shadow:0 18px 42px rgba(8,35,73,.12);
        backdrop-filter:blur(10px);
    }

    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li > ul.sub-menu > li > a[href*="/tools/"],
    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li > ul.children > li > a[href*="/tools/"]{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
        min-height:42px;
        padding:0 14px;
        border-radius:12px;
        color:#5b6d81 !important;
        font-size:12px;
        font-weight:780 !important;
        transition:background .16s ease, color .16s ease, transform .16s ease;
    }

    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li > ul.sub-menu > li > a[href*="/tools/"]::before,
    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li > ul.children > li > a[href*="/tools/"]::before{
        content:"";
        width:8px;
        height:8px;
        margin-left:8px;
        border-radius:50%;
        background:rgba(8,168,158,.24);
        box-shadow:0 0 0 5px rgba(8,168,158,.07);
        flex:0 0 auto;
    }

    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li > ul.sub-menu > li > a[href*="/tools/"]:hover,
    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li > ul.sub-menu > li > a[href*="/tools/"]:focus-visible,
    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li > ul.children > li > a[href*="/tools/"]:hover,
    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li > ul.children > li > a[href*="/tools/"]:focus-visible{
        color:#075c70 !important;
        background:rgba(18,199,187,.085) !important;
        transform:translateX(-2px);
    }

    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li > ul.sub-menu > li > a[href*="/tools/"].ct-tools-menu-active,
    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li > ul.children > li > a[href*="/tools/"].ct-tools-menu-active{
        color:#075c70 !important;
        background:linear-gradient(180deg, rgba(235,249,247,.96), rgba(247,251,253,.96)) !important;
        box-shadow:inset 0 0 0 1px rgba(18,199,187,.16);
        font-weight:860 !important;
    }

    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li > ul.sub-menu > li > a[href*="/tools/"].ct-tools-menu-active::before,
    body.candlestan-tools-surface .candlestan-main-navigation .candlestan-primary-menu > li > ul.children > li > a[href*="/tools/"].ct-tools-menu-active::before{
        background:#08a89e;
        box-shadow:0 0 0 5px rgba(8,168,158,.11);
    }
}

@media (max-width: 1180px){
    .ct2-overview__layout{grid-template-columns:1fr;gap:12px}
}

@media (max-width: 900px){
    .ct2-overview__pair{grid-template-columns:1fr 1fr}
}

@media (max-width: 680px){
    .ct2-overview{padding:14px 0 8px}
    .ct2-overview__pair{grid-template-columns:1fr;gap:9px}
    .ct2-overview-card,
    .ct2-overview-card--total{text-align:center;align-items:center;padding:16px 17px}
    .ct2-overview-card--total strong{font-size:30px}
    .ct2-tool-grid--market .ct2-tool-card__meta span{flex-wrap:wrap;justify-content:flex-start}
    .ct2-tool-grid--market .ct2-tool-card__meta b{font-size:16px}
}

/* =========================================================
   CandleStan v0.82.2 — Tools Hub precision fixes
   ========================================================= */
body.candlestan-tools-surface{overflow-x:hidden}

/* Break the virtual Tools surface out of the legacy centered theme wrapper. */
body.candlestan-tools-surface .candlestan-tools.ct2{
    width:100vw;
    max-width:100vw;
    margin-inline:calc(50% - 50vw);
}

/* Overview: all content centred; total card remains visually dominant. */
.ct2-overview-card,
.ct2-overview-card--total{
    align-items:center;
    text-align:center;
}

/* Distinct CandleStan category accents — top lip only. */
.ct2-tool-grid--intelligence .ct2-tool-card{--ct-accent:#7567c9}
.ct2-tool-grid--market .ct2-tool-card{--ct-accent:#58aeca}
.ct2-tool-grid--calculators .ct2-tool-card{--ct-accent:#18a58f}

.ct2-tool-grid--intelligence .ct2-tool-card__icon{color:#6658b8;background:#f1effd}
.ct2-tool-grid--market .ct2-tool-card__icon{color:#3189a8;background:#edf8fb}
.ct2-tool-grid--calculators .ct2-tool-card__icon{color:#0c8875;background:#edf9f6}

/* Live market rate: label on the right, value on the left. */
.ct2-tool-grid--market .ct2-tool-card__meta .ct2-live-rate{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    gap:18px;
    direction:rtl;
}
.ct2-tool-grid--market .ct2-live-rate__label{
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:#60758d;
    font-size:10.5px;
    font-weight:850;
    white-space:nowrap;
}
.ct2-tool-grid--market .ct2-live-rate__label i{flex:0 0 6px}
.ct2-tool-grid--market .ct2-live-rate > b{
    margin-right:auto;
    color:var(--ct2-navy);
    font-size:18px;
    font-weight:950;
    white-space:nowrap;
    direction:rtl;
}

/* New Tools submenu: compact product-first hierarchy. */
@media (min-width:992px){
    .candlestan-main-navigation .candlestan-primary-menu > li > ul.sub-menu > li.candlestan-tools-v2-menu-item > a{
        min-height:43px;
        padding:0 13px !important;
        border-radius:11px;
    }
    .candlestan-main-navigation .candlestan-primary-menu > li > ul.sub-menu > li.candlestan-tools-v2-menu-item--hub > a{
        color:#075c70 !important;
        background:#eef9f8 !important;
        box-shadow:inset 0 0 0 1px rgba(18,199,187,.15);
        font-weight:900 !important;
        margin-bottom:5px;
    }
    .candlestan-main-navigation .candlestan-primary-menu > li > ul.sub-menu > li.candlestan-tools-v2-menu-item--market-anchor{
        margin-top:5px;
        padding-top:5px;
        border-top:1px solid #edf1f4;
    }
}

@media(max-width:680px){
    body.candlestan-tools-surface .candlestan-tools.ct2{
        width:100%;
        max-width:none;
        margin-inline:0;
    }
}

/* =========================================================
   CandleStan v0.65.17 | Mobile Tools Hub polish
   Mobile-only layout polish, plus one approved copy-safe title treatment.
   ========================================================= */
@media (max-width:680px){
    .ct2-section-head #ct2-flagships-title{
        font-size:23px;
        line-height:1.35;
        white-space:nowrap;
        letter-spacing:-.02em;
    }

    .ct2-flagship-grid{gap:11px}
    .ct2-flagship-card{
        min-height:0;
        padding:17px 16px 15px;
        border-radius:20px;
    }
    .ct2-flagship-card__top{margin-bottom:2px}
    .ct2-flagship-card>small,
    .ct2-flagship-card h3,
    .ct2-flagship-card>p{
        width:100%;
        text-align:center;
    }
    .ct2-flagship-card>small{
        margin-top:10px;
        font-size:9.5px;
    }
    .ct2-flagship-card h3{
        margin-top:4px;
        font-size:18px;
    }
    .ct2-flagship-card>p{
        margin-top:7px;
        font-size:12px;
        line-height:1.85;
        text-align:center;
    }
    .ct2-flagship-card__foot{
        margin-top:13px;
        padding-top:11px;
        border-top:1px solid #eaf0f4;
    }

    .ct2-section-head--directory #ct2-directory-title{
        font-size:22px;
        line-height:1.4;
        white-space:nowrap;
        letter-spacing:-.025em;
    }

    .ct2-tool-card>p{
        font-size:12.4px!important;
        line-height:1.95!important;
    }

    .ct2-standard__inner{
        gap:17px;
    }
    .ct2-standard__grid{
        gap:10px;
    }
    .ct2-standard__grid article{
        position:relative;
        overflow:hidden;
        min-height:118px;
        padding:18px 15px;
        border-color:#dce8ee;
        border-radius:18px;
        background:linear-gradient(145deg,#ffffff 0%,#f3faf9 100%);
        box-shadow:0 10px 26px rgba(7,42,84,.045);
    }
    .ct2-standard__grid article::before{
        content:"";
        position:absolute;
        inset:0 0 auto;
        height:3px;
        background:linear-gradient(90deg,#0aa89d,#6f69c8);
        opacity:.78;
    }
    .ct2-standard__grid b{
        display:grid;
        width:34px;
        height:34px;
        margin:0 auto;
        place-items:center;
        border-radius:11px;
        background:#eaf8f6;
        font-size:11px;
    }
    .ct2-standard__grid strong{
        margin-top:8px;
        font-size:13.5px;
    }
    .ct2-standard__grid small{
        margin-top:5px;
        font-size:10.5px;
        line-height:1.75;
    }
}

@media (max-width:390px){
    .ct2-section-head #ct2-flagships-title{font-size:21px}
    .ct2-section-head--directory #ct2-directory-title{font-size:20px}
}

/* =========================================================
   CandleStan v0.65.19 | Mobile standalone calculator polish
   Shared mobile treatment for all six standalone calculators.
   Desktop remains unchanged except calculation precision in JS.
   ========================================================= */
@media (max-width:680px){
    .candlestan-tools--single .ct-single-meta > span{
        text-align:right;
    }

    .candlestan-tools--single .ct-single-meta > strong,
    .candlestan-tools--single .ct-single-meta > small{
        width:100%;
        text-align:center;
    }

    .candlestan-tools--single .ct-calculator-card .ch-tool-result > span{
        text-align:right;
    }

    .candlestan-tools--single .ct-calculator-card .ch-tool-result > strong{
        width:100%;
        text-align:center !important;
        justify-content:center;
    }

    .candlestan-tools--single .ct-single-cta__inner{
        gap:12px;
        padding:16px 18px;
        border-radius:19px;
    }

    .candlestan-tools--single .ct-single-cta__inner > div{
        width:100%;
        text-align:center;
    }

    .candlestan-tools--single .ct-single-cta h2{
        margin-top:4px;
        font-size:16px;
        line-height:1.45;
        letter-spacing:-.025em;
        white-space:nowrap;
        text-align:center;
    }

    .candlestan-tools--single .ct-single-cta .ch-kicker{
        text-align:center;
    }

    .candlestan-tools--single .ct-single-cta .ch-button{
        min-height:42px;
        padding-block:9px;
    }
}

@media (max-width:390px){
    .candlestan-tools--single .ct-single-cta h2{
        font-size:15px;
    }
}


/* CandleStan Performance v0.66.2 — non-blocking history loader for smart tools. */
.cst-async-state{width:min(1180px,calc(100% - 42px));margin:14px auto 0;padding:11px 14px;border:1px solid #dbe8ee;border-radius:14px;background:#f7fbfc;color:#53647b;display:flex;align-items:center;justify-content:center;gap:9px;font-size:12px;font-weight:800;direction:rtl}.cst-async-state i{width:9px;height:9px;border-radius:50%;background:#08a998;box-shadow:0 0 0 5px rgba(8,169,152,.10);animation:cstAsyncPulse 1.05s ease-in-out infinite}.cst-async-state.is-error{border-color:#f0d6dc;background:#fff7f8;color:#a13a50}.cst-async-state.is-error i{background:#d64d68;box-shadow:0 0 0 5px rgba(214,77,104,.10);animation:none}@keyframes cstAsyncPulse{50%{opacity:.35;transform:scale(.82)}}@media(max-width:620px){.cst-async-state{width:min(calc(100% - 34px),1180px);margin-top:10px;padding:10px 12px;font-size:11px;line-height:1.8}}
