.cqg-hgi--pending{display:none!important}

.cqg-hgi{
    --cqg-hgi-text:#31453a;
    --cqg-hgi-muted:#69776e;
    --cqg-hgi-green:#456c52;
    --cqg-hgi-cream:#f7f1e7;
    width:min(100% - 32px, 1570px);
    margin:26px auto;
}

.cqg-hgi__shell{
    display:grid;
    grid-template-columns:minmax(320px, .78fr) minmax(0, 1.62fr);
    gap:22px;
    padding:22px;
    border:1px solid rgba(255,255,255,.74);
    border-radius:30px;
    background:
        radial-gradient(circle at 7% 15%, rgba(245,198,213,.18), transparent 23%),
        radial-gradient(circle at 30% 90%, rgba(205,228,174,.16), transparent 28%),
        rgba(255,255,255,.74);
    box-shadow:0 16px 42px rgba(68,73,63,.09);
}

.cqg-hgi__intro{
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:28px 22px 28px 26px;
}

.cqg-hgi__eyebrow{
    margin:0 0 10px;
    color:#84917f;
    font-size:12px;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.cqg-hgi__title{
    margin:0;
    color:var(--cqg-hgi-text);
    font-size:clamp(28px,2.4vw,42px);
    line-height:1.05;
    letter-spacing:-.025em;
}

.cqg-hgi__lead{
    margin:18px 0 0;
    color:#56665b;
    font-size:16px;
    line-height:1.62;
}

.cqg-hgi__note{
    margin:13px 0 0;
    padding-left:14px;
    border-left:3px solid rgba(101,139,105,.28);
    color:#7b847e;
    font-size:13px;
    line-height:1.48;
}

.cqg-hgi__all-link{
    align-self:flex-start;
    display:inline-flex;
    align-items:center;
    gap:12px;
    margin-top:22px;
    min-height:48px;
    padding:11px 18px;
    border:1px solid rgba(69,108,82,.18);
    border-radius:999px;
    background:linear-gradient(135deg,#fffaf3,#f2f8e9);
    color:#35563f;
    font-weight:800;
    text-decoration:none;
    box-shadow:0 9px 22px rgba(57,79,60,.10);
    transition:transform .2s ease, box-shadow .2s ease;
}
.cqg-hgi__all-link:hover,
.cqg-hgi__all-link:focus-visible{
    color:#2e4e38;
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(57,79,60,.14);
}

.cqg-hgi__stage{
    position:relative;
    min-width:0;
}

.cqg-hgi__slides{
    position:relative;
    height:100%;
    min-height:480px;
}

.cqg-hgi__slide{
    display:none;
    height:100%;
}
.cqg-hgi__slide.is-active{
    display:block;
}

.cqg-hgi__figure{
    position:relative;
    height:100%;
    min-height:480px;
    margin:0;
    overflow:hidden;
    border-radius:24px;
    background:#e9eee4;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);
}

.cqg-hgi__image{
    width:100%;
    height:100%;
    min-height:480px;
    display:block;
    object-fit:contain;
    background:#e7eadf;
}

.cqg-hgi__caption{
    position:absolute;
    left:18px;
    right:18px;
    bottom:18px;
    display:flex;
    flex-direction:column;
    gap:4px;
    max-width:min(520px, calc(100% - 36px));
    padding:14px 16px 15px;
    border:1px solid rgba(255,255,255,.56);
    border-radius:18px;
    background:rgba(247,244,237,.80);
    -webkit-backdrop-filter:blur(10px);
    backdrop-filter:blur(10px);
    box-shadow:0 10px 30px rgba(38,49,39,.13);
}

.cqg-hgi__caption-kicker{
    color:#7b8b7d;
    font-size:11px;
    font-weight:800;
    letter-spacing:.11em;
    text-transform:uppercase;
}

.cqg-hgi__caption-title{
    color:#304838;
    font-size:18px;
    line-height:1.18;
}

.cqg-hgi__caption-desc{
    color:#647269;
    font-size:13px;
    line-height:1.35;
}

.cqg-hgi__marker{
    position:absolute;
    z-index:6;
    width:30px;
    height:30px;
    margin:-15px 0 0 -15px;
    border-radius:50%;
    display:grid;
    place-items:center;
    text-decoration:none;
    outline:none;
}

.cqg-hgi__marker-core{
    width:12px;
    height:12px;
    border:3px solid rgba(255,255,255,.96);
    border-radius:50%;
    background:#507f59;
    box-shadow:
        0 0 0 5px rgba(69,108,82,.22),
        0 4px 12px rgba(23,45,28,.22);
    transition:transform .2s ease, box-shadow .2s ease;
}

.cqg-hgi__marker-label{
    position:absolute;
    left:50%;
    bottom:calc(100% + 8px);
    width:max-content;
    max-width:210px;
    padding:7px 9px;
    border-radius:9px;
    background:rgba(34,52,39,.93);
    color:#fff;
    font-size:12px;
    line-height:1.2;
    opacity:0;
    pointer-events:none;
    transform:translate(-50%,6px);
    transition:opacity .18s ease, transform .18s ease;
}

.cqg-hgi__marker:hover .cqg-hgi__marker-core,
.cqg-hgi__marker:focus-visible .cqg-hgi__marker-core{
    transform:scale(1.18);
    box-shadow:
        0 0 0 7px rgba(69,108,82,.24),
        0 5px 14px rgba(23,45,28,.26);
}
.cqg-hgi__marker:hover .cqg-hgi__marker-label,
.cqg-hgi__marker:focus-visible .cqg-hgi__marker-label{
    opacity:1;
    transform:translate(-50%,0);
}

.cqg-hgi__controls{
    position:absolute;
    z-index:8;
    right:18px;
    bottom:18px;
    display:flex;
    align-items:center;
    gap:8px;
    padding:7px;
    border-radius:999px;
    background:rgba(255,255,255,.82);
    box-shadow:0 8px 24px rgba(42,54,45,.12);
    -webkit-backdrop-filter:blur(8px);
    backdrop-filter:blur(8px);
}

.cqg-hgi__nav,
.cqg-hgi__dot{
    appearance:none;
    border:0;
    cursor:pointer;
}

.cqg-hgi__nav{
    width:34px;
    height:34px;
    border-radius:50%;
    background:#f2f5ec;
    color:#486652;
    font-size:22px;
    line-height:1;
}

.cqg-hgi__dots{
    display:flex;
    gap:6px;
}

.cqg-hgi__dot{
    width:8px;
    height:8px;
    padding:0;
    border-radius:50%;
    background:#c8d0c6;
}
.cqg-hgi__dot.is-active{
    background:#54765b;
    transform:scale(1.22);
}

.cqg-hgi__empty{
    display:grid;
    place-items:center;
    min-height:360px;
    padding:30px;
    border-radius:24px;
    background:linear-gradient(135deg,#f8f3eb,#eef4e7);
    color:#667369;
    text-align:center;
}

@media (max-width: 980px){
    .cqg-hgi__shell{
        grid-template-columns:1fr;
    }
    .cqg-hgi__intro{
        padding:18px 16px 8px;
    }
    .cqg-hgi__slides,
    .cqg-hgi__figure,
    .cqg-hgi__image{
        min-height:420px;
    }
}

@media (max-width: 640px){
    .cqg-hgi{
        width:min(100% - 20px, 1570px);
        margin:18px auto;
    }
    .cqg-hgi__shell{
        gap:14px;
        padding:12px;
        border-radius:23px;
    }
    .cqg-hgi__intro{
        padding:14px 10px 4px;
    }
    .cqg-hgi__title{
        font-size:30px;
    }
    .cqg-hgi__lead{
        font-size:15px;
        line-height:1.55;
    }
    .cqg-hgi__slides,
    .cqg-hgi__figure,
    .cqg-hgi__image{
        min-height:320px;
    }
    .cqg-hgi__figure{
        border-radius:18px;
    }
    .cqg-hgi__caption{
        left:10px;
        right:10px;
        bottom:10px;
        max-width:calc(100% - 20px);
        padding:11px 12px;
    }
    .cqg-hgi__controls{
        right:10px;
        bottom:auto;
        top:10px;
    }
    .cqg-hgi__marker-label{
        display:none;
    }
}

@media (prefers-reduced-motion: reduce){
    .cqg-hgi *,
    .cqg-hgi *::before,
    .cqg-hgi *::after{
        transition:none !important;
        animation:none !important;
    }
}


/* === v0.1.6: homepage demo, non-clickable markers, product-page workflow === */

.cqg-hgi__shell{
    grid-template-rows:auto auto;
}

.cqg-hgi__marker{
    cursor:default;
}

.cqg-hgi__how{
    grid-column:1 / -1;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
    margin-top:2px;
}

.cqg-hgi__how-card{
    display:grid;
    grid-template-columns:132px minmax(0,1fr);
    gap:13px;
    align-items:center;
    padding:10px;
    border:1px solid rgba(72,104,79,.10);
    border-radius:18px;
    background:rgba(255,255,255,.68);
    box-shadow:0 8px 24px rgba(54,69,57,.06);
    min-width:0;
}

.cqg-hgi__how-image{
    position:relative;
    height:92px;
    overflow:hidden;
    border-radius:13px;
    background:#edf1e8;
    box-shadow:inset 0 0 0 1px rgba(58,83,64,.08);
}

.cqg-hgi__how-image img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    object-position:center;
}

.cqg-hgi__step-number{
    position:absolute;
    top:7px;
    left:7px;
    display:grid;
    place-items:center;
    width:24px;
    height:24px;
    border-radius:50%;
    background:rgba(61,91,68,.92);
    color:#fff;
    font-size:12px;
    font-weight:800;
    box-shadow:0 4px 12px rgba(35,58,40,.18);
}

.cqg-hgi__how-copy{
    display:flex;
    flex-direction:column;
    gap:5px;
    min-width:0;
}

.cqg-hgi__how-copy strong{
    color:#334b3a;
    font-size:14px;
    line-height:1.2;
}

.cqg-hgi__how-copy span{
    color:#6a766d;
    font-size:12.5px;
    line-height:1.38;
}

@media (max-width: 1180px){
    .cqg-hgi__how-card{
        grid-template-columns:110px minmax(0,1fr);
    }
    .cqg-hgi__how-image{
        height:82px;
    }
}

@media (max-width: 980px){
    .cqg-hgi__how{
        grid-template-columns:1fr;
    }
    .cqg-hgi__how-card{
        grid-template-columns:150px minmax(0,1fr);
    }
    .cqg-hgi__how-image{
        height:92px;
    }
}

@media (max-width: 640px){
    .cqg-hgi__how{
        gap:10px;
    }
    .cqg-hgi__how-card{
        grid-template-columns:108px minmax(0,1fr);
        padding:8px;
        border-radius:15px;
    }
    .cqg-hgi__how-image{
        height:78px;
        border-radius:11px;
    }
    .cqg-hgi__how-copy strong{
        font-size:13px;
    }
    .cqg-hgi__how-copy span{
        font-size:12px;
    }
}


/* === v0.1.7: clearer workflow, unobstructed idea image, fixed slider nav === */

.cqg-hgi__slide{
    height:auto;
}

.cqg-hgi__idea-head{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    margin:0 0 10px;
    padding:11px 14px 12px;
    border:1px solid rgba(73,103,79,.10);
    border-radius:15px;
    background:rgba(255,255,255,.52);
}

.cqg-hgi__idea-head .cqg-hgi__caption-kicker{
    color:#84917f;
}

.cqg-hgi__idea-head .cqg-hgi__caption-title{
    color:#334b3a;
    font-size:17px;
    line-height:1.22;
}

.cqg-hgi__idea-head .cqg-hgi__caption-desc{
    max-width:760px;
    color:#78837b;
    font-size:12.5px;
    line-height:1.35;
}

/* The old overlay caption must never cover the idea image. */
.cqg-hgi__caption{
    display:none!important;
}

.cqg-hgi__figure{
    min-height:430px;
    height:430px;
}

.cqg-hgi__image{
    min-height:430px;
    height:430px;
}

/* Navigation is now BELOW the image, with visible arrows. */
.cqg-hgi__controls{
    position:static;
    width:max-content;
    margin:10px 0 0 auto;
    padding:5px;
    gap:7px;
    border:1px solid rgba(67,96,73,.12);
    background:rgba(255,255,255,.76);
    box-shadow:0 7px 20px rgba(42,54,45,.08);
    backdrop-filter:blur(8px);
}

.cqg-hgi__nav{
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    padding:0;
    border:1px solid rgba(70,103,77,.14);
    background:#f7f9f3;
    color:#35563f;
    font-size:18px;
    font-weight:800;
    line-height:1;
}

.cqg-hgi__nav:hover,
.cqg-hgi__nav:focus-visible{
    background:#eaf2e5;
    color:#284532;
}

.cqg-hgi__nav span{
    display:block;
    transform:translateY(-1px);
}

.cqg-hgi__dot{
    width:7px;
    height:7px;
}

.cqg-hgi__dot.is-active{
    background:#54765b;
}

/* Better first-step crop readability. */
.cqg-hgi__how-card:first-child .cqg-hgi__how-image img{
    object-fit:cover;
    object-position:center 68%;
}

.cqg-hgi__how-card:nth-child(2) .cqg-hgi__how-image img{
    object-position:center;
}

.cqg-hgi__how-card:nth-child(3) .cqg-hgi__how-image img{
    object-position:center 22%;
}

@media (max-width: 980px){
    .cqg-hgi__figure,
    .cqg-hgi__image{
        min-height:390px;
        height:390px;
    }
}

@media (max-width: 640px){
    .cqg-hgi__idea-head{
        padding:10px 11px;
        margin-bottom:8px;
    }
    .cqg-hgi__idea-head .cqg-hgi__caption-title{
        font-size:15px;
    }
    .cqg-hgi__figure,
    .cqg-hgi__image{
        min-height:300px;
        height:300px;
    }
    .cqg-hgi__controls{
        margin-top:8px;
    }
}
