/* ============================================================
   CGC Tools — "Clean Green" design system
   Refined eco-green utility suite. Pairs with the site's Nunito body
   font and Kadence header/footer. Distinct from the blue insurance pages.
   ============================================================ */

.cgc-tools {
    /* Palette */
    --cgc-forest: #5a3a6d;   /* deep primary */
    --cgc-green:  #5a3a6d;   /* primary action */
    --cgc-green-600: #472d56;
    --cgc-lime:   #215387;   /* fresh accent */
    --cgc-lime-soft: #f2fbdd;
    --cgc-mint:   #f2fbdd;   /* result/panel tint */
    --cgc-mint-border: #cfe6a8;
    --cgc-canvas: #faf7fb;   /* card canvas */
    --cgc-line:   #e2dbe6;   /* hairlines */
    --cgc-ink:    #2a1f33;   /* headings */
    --cgc-body:   #333333;   /* body text */
    --cgc-muted:  #666666;   /* hints */
    --cgc-amber:  #f59e0b;   /* reg plate */

    --cgc-radius: 16px;
    --cgc-radius-sm: 10px;
    --cgc-shadow: 0 1px 2px rgba(90,58,109,.05), 0 8px 24px -12px rgba(90,58,109,.20);
    --cgc-shadow-lg: 0 2px 4px rgba(90,58,109,.06), 0 20px 48px -20px rgba(90,58,109,.30);

    font-family: 'Nunito', system-ui, sans-serif;
    color: var(--cgc-body);
    /* Breathing space below the breadcrumb (template vertical padding is hidden on this layout) */
    padding-top: 24px;
    /* Constrain to the site content width (1290px) and centre, matching all other pages.
       The tools page's .entry-content is full-width, so without this the tools stretch edge to edge. */
    max-width: var(--global-content-width, 1290px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--global-content-edge-padding, 1.5rem);
    padding-right: var(--global-content-edge-padding, 1.5rem);
    box-sizing: border-box;
}
@media (max-width: 640px) { .cgc-tools { padding-top: 14px; } }

@media (max-width: 768px) {
    .page-id-276899 .cgc-tools-breadcrumbs,
    .template-category-tools .cgc-tools-breadcrumbs,
    .page-id-276899 .manual-breadcrumbs,
    .template-category-tools .manual-breadcrumbs {
        display: none !important;
    }
}

/* Tools-page breadcrumb: this Kadence element was built for the (now removed)
   dark burgundy header, so its text inherited a light colour and vanished on the
   pale-green bar. Force readable dark text. Spacing matches the main-site breadcrumb
   row (padding-top:0, padding-bottom:1.5rem) — no extra top padding here. */
.page-id-276899 .manual-breadcrumbs,
.template-category-tools .manual-breadcrumbs {
    color: #5a3a6d;
}
.page-id-276899 .manual-breadcrumbs a,
.template-category-tools .manual-breadcrumbs a { color: #5a3a6d !important; }
.page-id-276899 .manual-breadcrumbs a:hover,
.template-category-tools .manual-breadcrumbs a:hover { color: #472d56 !important; }
.page-id-276899 .manual-breadcrumbs .breadcrumb-last,
.template-category-tools .manual-breadcrumbs .breadcrumb-last { color: #5a3a6d; font-weight: 700; }

/* Curated tools hub */
.cgc-tools-hub {
    --cgc-forest: #5a3a6d;
    --cgc-green: #5a3a6d;
    --cgc-green-600: #472d56;
    --cgc-lime-soft: #f2fbdd;
    --cgc-mint-border: #cfe6a8;
    --cgc-line: #e2dbe6;
    --cgc-ink: #2a1f33;
    --cgc-body: #333333;
    --cgc-muted: #666666;
    --cgc-radius: 16px;
    --cgc-shadow: 0 1px 2px rgba(90,58,109,.05), 0 8px 24px -12px rgba(90,58,109,.20);
    --cgc-shadow-lg: 0 2px 4px rgba(90,58,109,.06), 0 20px 48px -20px rgba(90,58,109,.30);

    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--cgc-body);
}

.cgc-tools-hub-inner {
    width: min(100%, var(--global-content-width, 1290px));
    margin: 0 auto;
    padding-left: var(--global-content-edge-padding, 1rem);
    padding-right: var(--global-content-edge-padding, 1rem);
    box-sizing: border-box;
}

.cgc-tools-hub-hero {
    background: #5a3a6d;
    color: #fffefa;
}

.cgc-tools-hub-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .78fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    padding-top: clamp(48px, 7vw, 82px);
    padding-bottom: clamp(48px, 7vw, 82px);
}

.cgc-tools-hub-eyebrow,
.cgc-tools-hub-group__head > span,
.cgc-tools-more__label,
.cgc-tools-hub-quote__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d9f3a3;
    font-size: .78rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.cgc-tools-hub-eyebrow svg { width: 22px; height: 22px; }
.cgc-tools-hub-hero__copy h1 {
    max-width: 18ch;
    margin: 18px 0 20px;
    color: #fffefa;
    font-size: clamp(2.25rem, 4.2vw, 3.2rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0;
}
.cgc-tools-hub-hero__copy p {
    max-width: 59ch;
    margin: 0;
    color: #f8f4fa;
    font-size: 1.06rem;
    line-height: 1.65;
}
.cgc-tools-hub-hero__copy,
.cgc-tools-hub-quote { min-width: 0; }

.cgc-tools-hub-quote {
    padding: 28px;
    background: #fffefa;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: var(--cgc-radius);
    color: var(--cgc-body);
    box-shadow: 0 22px 50px -32px rgba(24,14,31,.8);
}
.cgc-tools-hub-quote__label { color: #24544c; }
.cgc-tools-hub-quote h2 {
    margin: 10px 0 8px;
    color: var(--cgc-forest);
    font-size: clamp(1.45rem, 2.5vw, 1.9rem);
    line-height: 1.18;
    font-weight: 900;
}
.cgc-tools-hub-quote > p { margin: 0 0 20px; color: var(--cgc-muted); line-height: 1.55; }
.cgc-tools-hub-quote .product-strap-small { margin: 12px 0 0; font-size: .82rem; line-height: 1.45; }

.cgc-tools-hub-groups { padding-top: 72px; padding-bottom: 72px; }
.cgc-tools-hub-group + .cgc-tools-hub-group { margin-top: 72px; }
.cgc-tools-hub-group__head { max-width: 720px; margin-bottom: 24px; }
.cgc-tools-hub-group__head > span,
.cgc-tools-more__label { color: #5a3a6d; }
.cgc-tools-hub-group__head h2,
.cgc-tools-more h2 {
    margin: 9px 0 8px;
    color: var(--cgc-ink);
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    line-height: 1.2;
    font-weight: 900;
}
.cgc-tools-hub-group__head p,
.cgc-tools-more p { margin: 0; color: var(--cgc-muted); line-height: 1.6; }

.cgc-tools-hub .cgc-tools-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cgc-tools-hub .cgc-tool-card {
    min-height: 132px;
    padding: 24px;
    align-items: flex-start;
    border-color: rgba(90,58,109,.16);
    box-sizing: border-box;
}
.cgc-tools-hub .cgc-tool-card-title { font-size: 1.08rem; line-height: 1.25; letter-spacing: 0; }
.cgc-tools-hub .cgc-tool-card-blurb { margin-top: 8px; font-size: .92rem; line-height: 1.5; }
.cgc-tools-hub .cgc-tool-card-go { margin-top: 9px; }

.cgc-tools-more {
    display: grid;
    grid-template-columns: minmax(240px, .55fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin-top: 72px;
    padding-top: 38px;
    border-top: 1px solid var(--cgc-line);
}
.cgc-tools-more__links { display: flex; flex-wrap: wrap; gap: 10px; }
.cgc-tools-more__links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 8px 14px;
    background: #fffefa;
    border: 1px solid rgba(90,58,109,.18);
    border-radius: 8px;
    color: var(--cgc-forest);
    font-size: .92rem;
    line-height: 1.25;
    font-weight: 800;
    text-decoration: none;
}
.cgc-tools-more__links a:hover { background: var(--cgc-lime-soft); border-color: var(--cgc-mint-border); }

/* ---------- Index card grid (hub page) ---------- */
.cgc-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.cgc-tool-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--cgc-line);
    border-radius: var(--cgc-radius);
    box-shadow: var(--cgc-shadow);
    text-decoration: none !important;
    color: inherit;
    transition: transform .14s, box-shadow .18s, border-color .18s;
}
.cgc-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--cgc-shadow-lg);
    border-color: var(--cgc-mint-border);
}
.cgc-tool-card .cgc-card-icon { flex: 0 0 auto; }
.cgc-tool-card-body { flex: 1 1 auto; min-width: 0; }
.cgc-tool-card-title { display: block; font-weight: 800; color: var(--cgc-ink); font-size: 1.05rem; line-height: 1.2; letter-spacing: -.01em; }
.cgc-tool-card-blurb { display: block; margin-top: 4px; font-size: .88rem; color: var(--cgc-muted); line-height: 1.4; }
.cgc-tool-card-go {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--cgc-lime-soft); color: var(--cgc-forest);
    transition: background .18s, transform .14s;
}
.cgc-tool-card-go svg { width: 16px; height: 16px; }
.cgc-tool-card:hover .cgc-tool-card-go { background: var(--cgc-green); color: #fff; transform: translateX(2px); }

/* Single-tool page bits */
.cgc-tools-back { margin: 0 0 14px; font-size: .9rem; }
.cgc-tools-back a { color: var(--cgc-green); text-decoration: none; font-weight: 700; }
.cgc-tools-back a:hover { color: var(--cgc-forest); }
.cgc-tool-intro { margin: 0 0 22px; color: var(--cgc-body); font-size: 1rem; line-height: 1.6; }

/* ---------- Page hero ---------- */
.cgc-tools-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--cgc-radius);
    padding: 48px 40px;
    margin: 0 0 36px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(217,243,163,.30), transparent 55%),
        linear-gradient(135deg, var(--cgc-forest) 0%, var(--cgc-green) 100%);
    color: #fff;
    box-shadow: var(--cgc-shadow-lg);
}
.cgc-tools-hero::after {
    /* subtle road/grid texture */
    content: "";
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 64px);
    pointer-events: none;
}
.cgc-tools-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--cgc-lime-soft);
    background: rgba(255,255,255,.1);
    padding: 6px 14px; border-radius: 999px; margin: 0 0 16px;
    backdrop-filter: blur(2px);
}
.cgc-tools-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.05; margin: 0 0 12px;
    color: #fff; font-weight: 900; letter-spacing: -.02em; max-width: 18ch;
}
.cgc-tools-hero p { font-size: 1.05rem; line-height: 1.55; max-width: 56ch; color: rgba(255,255,255,.9); margin: 0; }

/* ---------- Tool card ---------- */
.cgc-tools section.cgc-card { scroll-margin-top: 90px; }
.cgc-card {
    background: #fff;
    border: 1px solid var(--cgc-line);
    border-radius: var(--cgc-radius);
    box-shadow: var(--cgc-shadow);
    padding: 0;
    margin: 0 0 28px;
    overflow: hidden;
}
.cgc-card-head {
    display: flex; align-items: center; gap: 16px;
    padding: 22px 28px;
    background: linear-gradient(180deg, var(--cgc-canvas), #fff);
    border-bottom: 1px solid var(--cgc-line);
}
.cgc-card-icon {
    flex: 0 0 auto;
    width: 48px; height: 48px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--cgc-lime-soft);
    color: var(--cgc-forest);
    box-shadow: inset 0 0 0 1px rgba(90,58,109,.14);
}
.cgc-card-icon svg { width: 26px; height: 26px; }
.cgc-card-head h2 { margin: 0; font-size: 1.3rem; font-weight: 800; color: var(--cgc-ink); letter-spacing: -.01em; line-height: 1.15; }
.cgc-card-head .cgc-card-strap { margin: 3px 0 0; font-size: .9rem; color: var(--cgc-muted); }
.cgc-card-body { padding: 26px 28px; }

/* ---------- Existing tool internals re-skinned ---------- */
.cgc-mt-wrap, .cgc-vc-wrap { max-width: 100%; margin: 0; font-family: inherit; }
.cgc-mt-box, .cgc-vc-search, .cgc-vc-section { background: transparent; border: none; border-radius: 0; padding: 0; }
.cgc-mt-title, .cgc-vc-title { display: none; } /* card head now provides the title */
.cgc-mt-sub, .cgc-vc-subtitle { margin: 0 0 20px; color: var(--cgc-muted); font-size: .95rem; }

.cgc-mt-group { margin-bottom: 18px; padding-top: 16px; border-top: 1px solid var(--cgc-line); }
.cgc-mt-group:first-of-type { border-top: none; padding-top: 0; }
.cgc-mt-group-title { font-weight: 800; color: var(--cgc-forest); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.cgc-mt-group-icon { font-size: 1.1em; }

.cgc-mt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.cgc-mt-label { flex: 1 1 60%; color: var(--cgc-body); font-size: .92rem; font-weight: 600; }
.cgc-mt-hint { display: block; font-size: .78rem; color: var(--cgc-muted); margin-top: 2px; font-weight: 400; }
.cgc-mt-input, .cgc-mt-select {
    flex: 0 0 150px; padding: 10px 13px; border: 1.5px solid var(--cgc-line); border-radius: var(--cgc-radius-sm);
    font-size: 1rem; outline: none; text-align: right; font-family: inherit; transition: border-color .15s, box-shadow .15s; background: #fff;
}
.cgc-mt-select { text-align: left; }
.cgc-mt-input:focus, .cgc-mt-select:focus { border-color: var(--cgc-green); box-shadow: 0 0 0 3px rgba(90,58,109,.14); }
.cgc-mt-input::placeholder, .cgc-mt-reg-input::placeholder { color: #7d8790; opacity: 1; }

/* Buttons */
.cgc-mt-btn, .cgc-vc-btn {
    background: var(--cgc-green); color: #fff; border: none; border-radius: var(--cgc-radius-sm);
    padding: 13px 30px; font-size: 1rem; font-weight: 800; cursor: pointer; font-family: inherit;
    transition: transform .12s, box-shadow .15s, background .15s;
    box-shadow: 0 6px 16px -6px rgba(90,58,109,.45);
}
.cgc-mt-btn:hover, .cgc-vc-btn:hover { background: var(--cgc-green-600); transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(90,58,109,.5); }
.cgc-mt-btn:active, .cgc-vc-btn:active { transform: translateY(0); }
.cgc-mt-btn-outline, .cgc-vc-btn-outline { background: transparent; color: var(--cgc-green); border: 1.5px solid var(--cgc-green); box-shadow: none; }
.cgc-mt-btn-outline:hover, .cgc-vc-btn-outline:hover { background: var(--cgc-mint); }
.cgc-mt-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Calculator widgets inside modular tool heroes sit on the purple panel, not the old white card. */
.cgc-tool-hero .cgc-mt-wrap {
    --cgc-green: #24544c;
    --cgc-green-600: #1f463f;
    --cgc-line: rgba(255,255,255,.34);
    --cgc-body: #fffaf2;
    --cgc-muted: rgba(255,250,242,.82);
    --cgc-radius-sm: 6px;
}

.cgc-tool-hero .cgc-mt-sub,
.cgc-section--tool_hero .cgc-mt-sub {
    color: rgba(255,250,242,.92);
}

.cgc-tool-hero .cgc-mt-group {
    border-top-color: rgba(255,255,255,.22);
}

.cgc-tool-hero .cgc-mt-note { display: none; }

.cgc-tool-hero .cgc-mt-group-title,
.cgc-section--tool_hero .cgc-mt-group-title {
    color: #fffaf2;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 900;
}

.cgc-tool-hero .cgc-mt-group-icon,
.cgc-section--tool_hero .cgc-mt-group-icon {
    color: #d9f3a3;
}

.cgc-tool-hero .cgc-mt-label,
.cgc-section--tool_hero .cgc-mt-label {
    color: #fffaf2;
    font-size: .94rem;
    line-height: 1.35;
    font-weight: 800;
}

.cgc-tool-hero .cgc-mt-hint,
.cgc-section--tool_hero .cgc-mt-hint {
    color: rgba(255,250,242,.82);
    font-size: .8rem;
    line-height: 1.35;
}

.cgc-tool-hero .cgc-mt-input,
.cgc-tool-hero .cgc-mt-select {
    background: #d8ebff;
    border-color: rgba(255,255,255,.72);
    color: #2d3b4f;
}

.cgc-tool-hero .cgc-mt-input:focus,
.cgc-tool-hero .cgc-mt-select:focus {
    border-color: #d9f3a3;
    box-shadow: 0 0 0 4px rgba(217,243,163,.28);
}

.cgc-tool-hero .cgc-mt-btn,
.cgc-section--tool_hero .cgc-mt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 55px;
    background: #24544c !important;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 5px;
    color: #fffaf2 !important;
    padding: 0 28px;
    box-shadow: none;
    line-height: 1.1;
}

.cgc-tool-hero .cgc-mt-btn:hover,
.cgc-section--tool_hero .cgc-mt-btn:hover {
    background: #1f463f !important;
}

/* Standalone calculator sections use a proper content card. The hero remains lean. */
.cgc-section--tool .cgc-tool-widget {
    max-width: 920px;
    margin: 0 auto;
}

.cgc-section--tool .cgc-mt-box {
    display: block;
    background: #fffefa;
    border: 1px solid rgba(90,58,109,.16);
    border-radius: 16px;
    padding: 30px 34px 32px;
    box-shadow: 0 22px 48px -34px rgba(32,36,63,.45);
}

.cgc-section--tool .cgc-mt-title {
    display: block;
    margin: 0 0 10px;
    color: #20243f;
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    font-weight: 900;
    line-height: 1.18;
}

.cgc-section--tool .cgc-mt-sub {
    max-width: 66ch;
    margin-bottom: 24px;
    color: #4f5677;
    font-size: 1rem;
    line-height: 1.55;
}

.cgc-section--tool .cgc-mt-group {
    margin: 18px 0 0;
    padding: 18px 20px 8px;
    border: 1px solid rgba(36,84,76,.16);
    border-radius: 10px;
    background: #fbfff2;
}

.cgc-section--tool .cgc-mt-group:first-of-type {
    margin-top: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(36,84,76,.16);
}

.cgc-section--tool .cgc-mt-group-title {
    gap: 10px;
    margin-bottom: 12px;
    color: #24544c;
    font-size: 1rem;
    line-height: 1.3;
}

.cgc-section--tool .cgc-mt-group-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #d9f3a3;
    color: #24544c;
    font-size: 1rem;
    font-weight: 900;
}

.cgc-section--tool .cgc-mt-group-icon--currency {
    font-family: inherit;
}

.cgc-section--tool .cgc-mt-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 12px 0;
    border-top: 1px solid rgba(90,58,109,.12);
}

.cgc-section--tool .cgc-mt-group-title + .cgc-mt-row,
.cgc-section--tool .cgc-mt-group-title + div > .cgc-mt-row:first-child {
    border-top: none;
    padding-top: 4px;
}

.cgc-section--tool .cgc-mt-label {
    color: #20243f;
    font-size: .96rem;
    line-height: 1.35;
    font-weight: 800;
}

.cgc-section--tool .cgc-mt-hint {
    color: #5f6381;
    font-size: .82rem;
}

.cgc-section--tool .cgc-mt-input,
.cgc-section--tool .cgc-mt-select {
    width: 100%;
    min-height: 46px;
    background: #fff;
    border-color: #d7d0df;
    border-radius: 8px;
    color: #20243f;
}

.cgc-section--tool .cgc-mt-input:focus,
.cgc-section--tool .cgc-mt-select:focus {
    border-color: #24544c;
    box-shadow: 0 0 0 4px rgba(36,84,76,.14);
}

.cgc-section--tool .cgc-mt-actions {
    margin-top: 24px;
}

.cgc-section--tool .cgc-mt-btn {
    min-height: 52px;
    padding: 0 32px;
    background: #24544c;
    color: #fffaf2;
    border: 1px solid #24544c;
    border-radius: 8px;
    box-shadow: 0 14px 28px -18px rgba(32,36,63,.65);
}

.cgc-section--tool .cgc-mt-btn:hover {
    background: #1f463f;
}

/* Result panels */
.cgc-mt-result {
    margin-top: 22px; padding: 22px; background: var(--cgc-mint);
    border: 1px solid var(--cgc-mint-border); border-radius: var(--cgc-radius-sm);
}

.cgc-mt-results-section {
    --cgc-tool-space-xs: var(--global-kb-spacing-xs, .5rem);
    --cgc-tool-space-sm: var(--global-kb-spacing-sm, 1rem);
    --cgc-tool-space-md: var(--global-kb-spacing-md, 2rem);
    --cgc-tool-space-lg: var(--global-kb-spacing-lg, 3rem);
    --cgc-tool-space-xl: var(--global-kb-spacing-xl, 4rem);
    --cgc-result-bg: #fffefa;
    --cgc-result-heading: #5a3a6d;
    --cgc-result-text: #333333;
    --cgc-result-muted: #555555;
    --cgc-result-green: #24544c;
    --cgc-result-lime: #f2fbdd;
    --cgc-result-border: rgba(31, 41, 55, .09);
    --cgc-result-tile-border: rgba(36, 84, 76, .2);
    --cgc-result-radius: 16px;
    --cgc-result-tile-radius: 10px;
    --cgc-result-shadow: 0 14px 32px -26px rgba(27, 21, 36, .42);

    background: var(--cgc-result-bg);
    color: var(--cgc-result-text);
    padding: var(--global-kb-spacing-xl, 4rem) var(--global-content-edge-padding, 1rem);
}

.cgc-mt-results-inner {
    max-width: var(--global-content-width, 1290px);
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.cgc-mt-results-title {
    margin: 0 0 var(--cgc-tool-space-md) !important;
    color: var(--cgc-result-heading);
    font-size: clamp(1.55rem, 2.2vw, 1.8rem);
    line-height: 1.2;
    font-weight: 900;
}

.cgc-mt-results-section .cgc-mt-result {
    margin-top: 0;
    padding: 30px 34px 28px;
    background: var(--cgc-result-bg);
    border: 1px solid var(--cgc-result-border);
    border-radius: var(--cgc-result-radius);
    box-shadow: var(--cgc-result-shadow);
}
.cgc-mt-result-main { font-size: clamp(2rem, 4vw, 2.65rem); font-weight: 900; color: var(--cgc-result-heading); text-align: center; margin: 0 0 10px; letter-spacing: 0; }
.cgc-mt-result-sub { text-align: center; color: var(--cgc-result-muted); font-size: 1rem; margin: 0; font-weight: 800; }
.cgc-mt-result-breakdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--cgc-tool-space-sm);
    margin-top: var(--cgc-tool-space-md);
    padding-top: 0;
    border-top: 0;
}
.cgc-mt-break-row {
    display: flex;
    flex-direction: column;
    gap: var(--cgc-tool-space-xs);
    justify-content: flex-start;
    min-height: 86px;
    padding: 14px 16px;
    font-size: .92rem;
    color: var(--cgc-result-muted);
    background: var(--cgc-result-lime);
    border: 1px solid var(--cgc-result-tile-border);
    border-radius: var(--cgc-result-tile-radius);
}
.cgc-mt-break-row span { font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .055em; color: var(--cgc-result-muted); }
.cgc-mt-break-row strong { color: var(--cgc-result-green); font-weight: 900; font-size: 1.12rem; line-height: 1.15; }

.cgc-mt-conversion {
    margin: var(--cgc-tool-space-lg) auto 0;
}
.cgc-mt-conversion__reminder {
    display: block;
    width: 70%;
    max-width: 900px;
    margin: var(--cgc-tool-space-sm) auto 0;
    color: #24544c !important;
    font-size: .9rem;
    font-weight: 800;
    text-underline-offset: 3px;
}

/* Reg plate — UK yellow, unmistakable */
/* Compact tools use the site's content-weight hierarchy. Reserve 900 for
   true hero display text rather than labels, data rows and result cards. */
.cgc-section--tool .cgc-mt-title,
.cgc-section--tool .cgc-mt-group-title,
.cgc-mt-results-title,
.cgc-mt-result-main,
.cgc-mt-compare-value,
.cgc-mt-grant-title {
    font-weight: 700;
}

.cgc-section--tool .cgc-mt-label,
.cgc-mt-break-row span,
.cgc-mt-result-sub {
    font-weight: 600;
}

.cgc-mt-break-row strong,
.cgc-mt-conversion__reminder,
.cgc-mt-badge,
.cgc-mt-compare-label,
.cgc-mt-grant-amount,
.cgc-mt-tab {
    font-weight: 700;
}

.cgc-section--tool .cgc-mt-btn {
    font-weight: 700;
}

.cgc-mt-reg-input, .cgc-vc-reg-input {
    font-size: 1.35rem; font-weight: 900; text-transform: uppercase; letter-spacing: 3px; text-align: center;
    padding: 13px 22px; border: 2.5px solid var(--cgc-amber); border-radius: var(--cgc-radius-sm);
    background: #fff8e1; width: 230px; max-width: 100%; outline: none; font-family: inherit; color: #1a1a1a;
}
.cgc-mt-reg-input:focus, .cgc-vc-reg-input:focus { border-color: #d97706; box-shadow: 0 0 0 4px rgba(245,158,11,.2); }

.cgc-mt-reg-control {
    display: inline-flex;
    align-items: stretch;
    width: min(365px, 100%);
    height: 55px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 10px;
}
.cgc-mt-reg-flag {
    display: inline-flex;
    flex: 0 0 51px;
    align-items: flex-end;
    justify-content: center;
    width: 51px;
    padding: 0 0 8px;
    box-sizing: border-box;
    background-color: #1f3691;
    background-image:
        linear-gradient(#c8102e, #c8102e),
        linear-gradient(#c8102e, #c8102e),
        linear-gradient(#fff, #fff);
    background-size: 4px 12px, 20px 4px, 20px 12px;
    background-position: center 9px, center 13px, center 9px;
    background-repeat: no-repeat;
    color: #fff;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}
.cgc-mt-reg-control .cgc-mt-reg-input {
    flex: 1 1 auto;
    width: calc(100% - 51px);
    height: 55px;
    min-height: 55px;
    padding: 0 70px 0 15px;
    background: #fff;
    border: 0;
    border-radius: 0;
    color: #333;
    font-family: "Open Sans", sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 55px;
}
.cgc-mt-reg-control:focus-within {
    border-color: #d9f3a3;
    box-shadow: 0 0 0 4px rgba(217,243,163,.28);
}
.cgc-mt-reg-control .cgc-mt-reg-input:focus {
    border: 0;
    box-shadow: none;
}
.cgc-mt-reg-control .cgc-mt-reg-input::placeholder {
    color: #9a9a9a;
}

/* Badges */
.cgc-mt-badge { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.cgc-mt-badge-good { background: #e7f6c8; color: var(--cgc-forest); }
.cgc-mt-badge-bad  { background: #fde2e1; color: #9b1c1c; }
.cgc-mt-badge-warn { background: #fdf0d0; color: #92610a; }

/* Comparison grid (EV vs petrol) */
.cgc-mt-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.cgc-mt-compare-col { padding: 18px; background: #fff; border: 1.5px solid var(--cgc-line); border-radius: var(--cgc-radius-sm); text-align: center; }
.cgc-mt-compare-col.winner { border-color: var(--cgc-green); background: var(--cgc-mint); box-shadow: 0 0 0 1px var(--cgc-green) inset; }
.cgc-mt-compare-label { font-size: .85rem; color: var(--cgc-muted); margin-bottom: 4px; font-weight: 700; }
.cgc-mt-compare-value { font-size: 1.5rem; font-weight: 900; color: var(--cgc-ink); letter-spacing: -.02em; }
.cgc-mt-compare-col.winner .cgc-mt-compare-value { color: var(--cgc-forest); }

/* Grants list */
.cgc-mt-grant { padding: 16px 18px; border: 1px solid var(--cgc-line); border-radius: var(--cgc-radius-sm); margin-bottom: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.cgc-mt-grant:hover { border-color: var(--cgc-mint-border); box-shadow: var(--cgc-shadow); }
.cgc-mt-grant-title { font-weight: 800; color: var(--cgc-forest); margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cgc-mt-grant-amount { color: #fff; background: var(--cgc-green); font-weight: 800; font-size: .82rem; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.cgc-mt-grant-desc { font-size: .9rem; color: var(--cgc-body); margin: 6px 0; line-height: 1.45; }
.cgc-mt-grant-who { font-size: .85rem; color: var(--cgc-muted); }

/* Tabs */
.cgc-mt-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid var(--cgc-line); }
.cgc-mt-tab { flex: 1; padding: 10px 16px; background: transparent; border: none; cursor: pointer; color: var(--cgc-muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -2px; font-size: .95rem; font-family: inherit; }
.cgc-mt-tab.active { color: var(--cgc-green); border-bottom-color: var(--cgc-green); }

.cgc-mt-note { margin-top: 14px; font-size: .8rem; color: var(--cgc-muted); line-height: 1.45; }
.cgc-mt-error, .cgc-vc-error { margin-top: 12px; padding: 11px 15px; background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--cgc-radius-sm); color: #dc2626; font-size: .9rem; }
.cgc-mt-loading, .cgc-vc-loading { text-align: center; padding: 30px; color: var(--cgc-muted); }

/* Affiliate CTA */
.cgc-mt-aff-cta { margin-top: 18px; padding: 18px 20px; background: var(--cgc-lime-soft); border: 1px solid var(--cgc-mint-border); border-radius: var(--cgc-radius-sm); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cgc-mt-aff-text { font-size: .92rem; color: var(--cgc-forest); margin: 0; line-height: 1.5; flex: 1 1 320px; font-weight: 600; }
.cgc-mt-aff-btn { display: inline-block; background: var(--cgc-forest); color: #fff !important; text-decoration: none; padding: 11px 22px; border-radius: var(--cgc-radius-sm); font-weight: 800; font-size: .92rem; transition: background .15s, transform .12s; white-space: nowrap; }
.cgc-mt-aff-btn:hover { background: #3a2545; transform: translateY(-1px); color: #fff !important; }

/* Staggered entrance on load */
.cgc-tools .cgc-card { opacity: 0; transform: translateY(14px); animation: cgc-rise .5s cubic-bezier(.2,.7,.2,1) forwards; }
.cgc-tools .cgc-card:nth-child(2) { animation-delay: .05s; }
.cgc-tools .cgc-card:nth-child(3) { animation-delay: .1s; }
.cgc-tools .cgc-card:nth-child(4) { animation-delay: .15s; }
.cgc-tools .cgc-card:nth-child(5) { animation-delay: .2s; }
.cgc-tools .cgc-card:nth-child(n+6) { animation-delay: .25s; }
@keyframes cgc-rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cgc-tools .cgc-card { animation: none; opacity: 1; transform: none; } }

/* ============================================================
   Brumble-depth supporting content (how-to / how-it-works / FAQs / related / byline)
   ============================================================ */
.cgc-tool-section { margin: 30px 0 0; }
.cgc-tool-h2 { font-size: 1.4rem; font-weight: 800; color: var(--cgc-ink); letter-spacing: -.01em; margin: 0 0 16px; }
.cgc-tool-prose { color: var(--cgc-body); font-size: 1rem; line-height: 1.65; }
.cgc-tool-prose p { margin: 0 0 14px; }
.cgc-tool-prose p:last-child { margin-bottom: 0; }

/* How-to numbered steps */
.cgc-tool-steps { list-style: none; counter-reset: cgcstep; margin: 0; padding: 0; }
.cgc-tool-steps li { position: relative; padding: 0 0 18px 52px; }
.cgc-tool-steps li:last-child { padding-bottom: 0; }
.cgc-tool-steps li::before {
    counter-increment: cgcstep; content: counter(cgcstep);
    position: absolute; left: 0; top: 0;
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--cgc-forest); color: #fff; font-weight: 800; font-size: .95rem;
}
.cgc-tool-step-t { display: block; font-weight: 800; color: var(--cgc-ink); margin-bottom: 3px; }
.cgc-tool-step-d { display: block; color: var(--cgc-body); font-size: .95rem; line-height: 1.55; }

/* FAQs (native details/summary accordion) */
.cgc-tool-faqs { border-top: 1px solid var(--cgc-line); }
.cgc-tool-faq { border-bottom: 1px solid var(--cgc-line); }
.cgc-tool-faq-q {
    cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative;
    font-weight: 700; color: var(--cgc-ink); font-size: 1.02rem;
}
.cgc-tool-faq-q::-webkit-details-marker { display: none; }
.cgc-tool-faq-q::after {
    content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    font-size: 1.5rem; font-weight: 400; color: var(--cgc-green); line-height: 1;
}
.cgc-tool-faq[open] .cgc-tool-faq-q::after { content: "\2212"; }
.cgc-tool-faq-a { padding: 0 0 18px; color: var(--cgc-body); font-size: .96rem; line-height: 1.6; }

/* Related tools */
.cgc-tool-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cgc-tool-related-card {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: #fff; border: 1px solid var(--cgc-line); border-radius: var(--cgc-radius-sm);
    text-decoration: none !important; color: var(--cgc-ink); font-weight: 700; font-size: .95rem;
    transition: border-color .15s, box-shadow .15s, transform .14s;
}
.cgc-tool-related-card:hover { border-color: var(--cgc-mint-border); box-shadow: var(--cgc-shadow); transform: translateY(-2px); }
.cgc-tool-related-card .cgc-card-icon { width: 34px; height: 34px; }
.cgc-tool-related-card .cgc-card-icon svg { width: 20px; height: 20px; }

/* Expert byline */
.cgc-tool-byline {
    margin: 30px 0 0; padding: 20px 22px;
    background: var(--cgc-canvas); border: 1px solid var(--cgc-line); border-radius: var(--cgc-radius-sm);
}
.cgc-tool-byline-name { margin: 0; font-weight: 800; color: var(--cgc-ink); font-size: 1rem; }
.cgc-tool-byline-name a { color: var(--cgc-green); text-decoration: none; }
.cgc-tool-byline-name a:hover { color: var(--cgc-forest); text-decoration: underline; }
.cgc-tool-byline-role { margin: 2px 0 8px; font-size: .85rem; color: var(--cgc-muted); font-weight: 600; }
.cgc-tool-byline-bio { margin: 0; font-size: .92rem; color: var(--cgc-body); line-height: 1.55; }

/* Responsive */
@media (max-width: 900px) {
    .cgc-tools-hub-hero__grid { grid-template-columns: 1fr; }
    .cgc-tools-hub-hero__copy h1 { max-width: 20ch; }
}
@media (max-width: 640px) {
    .cgc-tools-hub-hero__grid { grid-template-columns: 1fr; gap: 24px; padding-top: 34px; padding-bottom: 34px; }
    .cgc-tools-hub-hero__copy h1 { margin-top: 14px; margin-bottom: 14px; font-size: 2.05rem; }
    .cgc-tools-hub-hero__copy p { font-size: 1rem; line-height: 1.55; }
    .cgc-tools-hub-hero__copy h1 { overflow-wrap: anywhere; }
    .cgc-tools-hub-quote { width: 100%; max-width: 100%; padding: 18px 16px; overflow: hidden; box-sizing: border-box; }
    .cgc-tools-hub-quote > p { margin-bottom: 14px; }
    .cgc-tools-hub-groups { padding-top: 48px; padding-bottom: 48px; }
    .cgc-tools-hub-group + .cgc-tools-hub-group { margin-top: 52px; }
    .cgc-tools-hub .cgc-tool-card { min-height: 0; padding: 20px; }
    .cgc-tools-more { grid-template-columns: 1fr; gap: 20px; margin-top: 52px; padding-top: 30px; }
    .cgc-tools-more__links { display: grid; grid-template-columns: 1fr; }
    .cgc-tools-hero { padding: 34px 22px; }
    .cgc-card-head { padding: 18px 18px; }
    .cgc-card-body { padding: 20px 18px; }
    .cgc-mt-results-section { padding: 30px 14px; }
    .cgc-mt-results-title { font-size: 1.55rem; margin-bottom: var(--cgc-tool-space-md); }
    .cgc-mt-results-section .cgc-mt-result { padding: 22px 18px; }
    .cgc-mt-result-main { text-align: left; font-size: 2rem; }
    .cgc-mt-result-sub { text-align: left; }
    .cgc-mt-result-breakdown { grid-template-columns: 1fr; }
    .cgc-mt-conversion {
        margin-top: var(--cgc-tool-space-lg);
    }
    .cgc-mt-conversion__reminder { width: 100%; max-width: none; }
    .cgc-tools-hub-quote [data-cgc-action],
    .cgc-tools-hub-quote form { flex-wrap: wrap !important; }
    .cgc-tools-hub-quote .cgc-wrap,
    .cgc-tools-hub-quote .cgc-btn {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .cgc-tools-hub-quote input { padding-right: 16px !important; font-size: 1.4rem !important; }
    .cgc-mt-row { flex-direction: column; align-items: stretch; }
    .cgc-mt-label { flex: 1; }
    .cgc-mt-input, .cgc-mt-select { flex: 1; text-align: left; }
    .cgc-section--tool .cgc-mt-box { padding: 22px 18px 24px; border-radius: 14px; }
    .cgc-section--tool .cgc-mt-group { padding: 16px 14px 6px; }
    .cgc-section--tool .cgc-mt-row { grid-template-columns: 1fr; gap: 8px; }
    .cgc-section--tool .cgc-mt-input,
    .cgc-section--tool .cgc-mt-select { text-align: left; }
    .cgc-section--tool .cgc-mt-btn { width: 100%; }
    .cgc-mt-compare-grid { grid-template-columns: 1fr; }
    .cgc-mt-aff-cta { flex-direction: column; align-items: stretch; text-align: center; }
    .cgc-tool-related { grid-template-columns: 1fr; }
}
