.detg-shell {
    position: relative;
    isolation: isolate;
    width: 100%;
    padding: clamp(14px, 3vw, 32px);
    background: var(--detg-bg, #67c70f);
    color: var(--detg-text, #f3f8ed);
    box-sizing: border-box;
}

.et-fb .detg-shell,
.et-db #et-boc .detg-shell {
    clear: both;
}

.et-fb .detg-tile {
    -webkit-appearance: none;
    appearance: none;
}

.et-fb .detg-tile:hover,
.et-fb .detg-tile:focus-visible {
    transform: none;
}

.detg-shell,
.detg-shell * {
    box-sizing: border-box;
}

.detg-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 62px) clamp(24px, 4.5vw, 56px);
    border-radius: 14px;
    background: var(--detg-panel, #246f2b);
    min-height: 560px;
}

.detg-copy {
    max-width: 460px;
}

.detg-eyebrow {
    margin: 0 0 34px;
    color: var(--detg-accent, #c9f65b);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.detg-heading {
    margin: 0;
    color: var(--detg-text, #f3f8ed);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0;
}

.detg-body {
    margin: 38px 0 0;
    color: var(--detg-text, #f3f8ed);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.detg-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 184px;
    min-height: 52px;
    margin-top: 56px;
    padding: 14px 24px;
    border: 1px solid currentColor;
    border-radius: 4px;
    color: var(--detg-text, #f3f8ed);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.detg-link:hover,
.detg-link:focus-visible {
    background: var(--detg-text, #f3f8ed);
    color: var(--detg-panel, #246f2b);
}

.detg-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(58px, 1fr));
    gap: 16px;
    align-items: stretch;
    min-width: 0;
    min-height: 512px;
    overflow: hidden;
    transition: grid-template-columns 360ms ease;
}

.detg-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: clamp(16px, 2vw, 22px);
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: var(--detg-tile, #c9f65b);
    color: var(--detg-dark, #003b28);
    cursor: pointer;
    text-align: left;
    transition: transform 340ms ease, border-radius 340ms ease, box-shadow 340ms ease, opacity 240ms ease;
}

.detg-count-5 .detg-tile,
.detg-count-6 .detg-tile {
    padding: clamp(10px, 1.25vw, 16px);
}

.detg-count-1 .detg-tile:nth-child(1) {
    grid-area: 1 / 1 / 7 / 5;
}

.detg-count-2 .detg-tile:nth-child(1) {
    grid-area: 1 / 1 / 7 / 3;
}

.detg-count-2 .detg-tile:nth-child(2) {
    grid-area: 1 / 3 / 7 / 5;
}

.detg-count-3 .detg-tile:nth-child(1) {
    grid-area: 1 / 1 / 4 / 3;
}

.detg-count-3 .detg-tile:nth-child(2) {
    grid-area: 1 / 3 / 7 / 5;
}

.detg-count-3 .detg-tile:nth-child(3) {
    grid-area: 4 / 1 / 7 / 3;
}

.detg-count-4 .detg-tile:nth-child(1) {
    grid-area: 1 / 1 / 4 / 3;
}

.detg-count-4 .detg-tile:nth-child(2) {
    grid-area: 1 / 3 / 4 / 5;
}

.detg-count-4 .detg-tile:nth-child(3) {
    grid-area: 4 / 1 / 7 / 3;
}

.detg-count-4 .detg-tile:nth-child(4) {
    grid-area: 4 / 3 / 7 / 5;
}

.detg-count-5 .detg-tile:nth-child(1),
.detg-count-6 .detg-tile:nth-child(1) {
    grid-area: 1 / 1 / 3 / 2;
}

.detg-count-5 .detg-tile:nth-child(2),
.detg-count-6 .detg-tile:nth-child(2) {
    grid-area: 1 / 2 / 5 / 4;
}

.detg-count-5 .detg-tile:nth-child(3),
.detg-count-6 .detg-tile:nth-child(3) {
    grid-area: 3 / 1 / 7 / 2;
}

.detg-count-5 .detg-tile:nth-child(4),
.detg-count-6 .detg-tile:nth-child(4) {
    grid-area: 5 / 2 / 7 / 4;
}

.detg-count-5 .detg-tile:nth-child(5),
.detg-count-6 .detg-tile:nth-child(5) {
    grid-area: 4 / 4 / 7 / 5;
}

.detg-count-6 .detg-tile:nth-child(6) {
    grid-area: 1 / 4 / 3 / 5;
}

.detg-count-5 .detg-tile:nth-child(5) {
    grid-area: 1 / 4 / 7 / 5;
}

.detg-count-6 .detg-tile:nth-child(5) {
    grid-area: 3 / 4 / 7 / 5;
}

.detg-tile:hover,
.detg-tile:focus-visible {
    transform: translateY(-3px);
    outline: 0;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.detg-icon {
    display: block;
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    color: var(--detg-dark, #003b28);
}

.detg-icon svg,
.detg-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    fill: currentColor;
}

.detg-title {
    display: block;
    color: var(--detg-dark, #003b28);
    max-width: 100%;
    font-size: clamp(13px, 1.25vw, 17px);
    font-weight: 850;
    line-height: 1.16;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    text-wrap: balance;
}

.detg-count-5 .detg-title,
.detg-count-6 .detg-title {
    font-size: clamp(11px, 0.95vw, 15px);
    line-height: 1.1;
}

.detg-count-5 .detg-tile:nth-child(1) .detg-title,
.detg-count-5 .detg-tile:nth-child(3) .detg-title,
.detg-count-5 .detg-tile:nth-child(5) .detg-title,
.detg-count-6 .detg-tile:nth-child(1) .detg-title,
.detg-count-6 .detg-tile:nth-child(3) .detg-title,
.detg-count-6 .detg-tile:nth-child(5) .detg-title,
.detg-count-6 .detg-tile:nth-child(6) .detg-title {
    font-size: clamp(10px, 0.85vw, 14px);
}

.detg-description {
    display: block;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    color: var(--detg-dark, #003b28);
    font-size: 18px;
    font-weight: 650;
    line-height: 1.35;
    opacity: 0;
    transition: max-height 320ms ease, margin-top 320ms ease, opacity 220ms ease;
}

.detg-more {
    display: none;
}

.detg-shell.is-expanded .detg-tiles {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: minmax(340px, 1fr) minmax(68px, auto);
    grid-auto-flow: row;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-height: 520px;
    overflow: hidden;
}

.detg-shell.is-expanded .detg-tile {
    grid-area: auto !important;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 92px;
    justify-self: center;
    min-width: 0;
    min-height: 0;
    padding: 12px;
    border-radius: 12px;
}

.detg-shell.is-expanded .detg-tile.is-active,
.et_pb_module .detg-shell.is-expanded .detg-tile.is-active {
    grid-area: 1 / 1 / 2 / -1 !important;
}

.detg-shell.is-expanded .detg-tile:not(.is-active),
.et_pb_module .detg-shell.is-expanded .detg-tile:not(.is-active) {
    grid-row: 2 !important;
}

.detg-shell.is-expanded .detg-tile:not(.is-active) {
    grid-row: 2 !important;
    grid-column: auto !important;
    align-items: center;
    justify-content: center;
}

.detg-shell.is-expanded .detg-tile:not(.is-active) .detg-title,
.detg-shell.is-expanded .detg-tile:not(.is-active) .detg-description {
    display: none;
}

.detg-shell.is-expanded .detg-tile:not(.is-active) .detg-icon {
    width: clamp(24px, 4vw, 34px);
    height: clamp(24px, 4vw, 34px);
    margin: 0;
}

.detg-shell.is-expanded .detg-tile.is-active {
    grid-row: 1 !important;
    grid-column: 1 / -1 !important;
    aspect-ratio: auto;
    min-width: 0;
    max-width: none;
    justify-self: stretch;
    min-height: 340px;
    max-height: 460px;
    padding: clamp(24px, 4vw, 42px);
    overflow-y: auto;
    border-radius: 16px;
    cursor: default;
}

.detg-shell.is-expanded.detg-single-tile .detg-tiles {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(340px, auto);
}

.detg-shell.is-expanded.detg-single-tile .detg-tile.is-active {
    grid-area: 1 / 1 / 2 / 2 !important;
}

.detg-shell.is-expanded .detg-tile.is-active .detg-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
}

.detg-shell.is-expanded .detg-tile.is-active .detg-title {
    max-width: 100%;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.detg-shell.is-expanded .detg-tile.is-active .detg-description {
    max-height: none;
    max-width: min(560px, 100%);
    margin-top: 22px;
    font-size: clamp(16px, 1.6vw, 20px);
    opacity: 1;
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .detg-panel {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .detg-copy {
        max-width: 720px;
    }

    .detg-body {
        margin-top: 24px;
    }

    .detg-link {
        margin-top: 32px;
    }
}

@media (max-width: 767px) {
    .detg-shell {
        padding: 12px;
    }

    .detg-panel {
        padding: 28px 18px;
        border-radius: 12px;
    }

    .detg-eyebrow {
        margin-bottom: 22px;
        font-size: 12px;
    }

    .detg-heading {
        font-size: 38px;
    }

    .detg-body {
        font-size: 16px;
    }

    .detg-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        min-height: 0;
        gap: 12px;
    }

    .detg-count-1 .detg-tile,
    .detg-count-2 .detg-tile,
    .detg-count-3 .detg-tile,
    .detg-count-4 .detg-tile,
    .detg-count-5 .detg-tile,
    .detg-count-6 .detg-tile {
        grid-area: auto !important;
    }

    .detg-title {
        font-size: 15px;
    }

    .detg-shell.is-expanded .detg-tiles {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: minmax(300px, auto) minmax(62px, auto);
        min-height: 0;
        gap: 10px;
    }

    .detg-shell.is-expanded .detg-tile {
        min-height: 0;
        max-width: 82px;
        padding: 10px;
        aspect-ratio: 1 / 1;
    }

    .detg-shell.is-expanded .detg-tile.is-active {
        grid-column: 1 / -1 !important;
        min-width: 0;
        max-width: none;
        min-height: 300px;
        max-height: none;
        aspect-ratio: auto;
        padding: 24px;
    }

    .detg-shell.is-expanded .detg-tile:not(.is-active) .detg-icon {
        margin: auto;
    }
}
