/* ── Depth guide ────────────────────────────────────────────
   Figma: desktop 3033:92381 (a table: Deep Green header, rows
   white and Light Grey in turn), tablet 3033:92890, mobile
   3033:92647 (each row a bar that opens to the sub-base and
   notes). Then the green rules of thumb and the price list.
   ─────────────────────────────────────────────────────────── */

.depth-guide {
    padding: var(--pad-y) var(--pad-x);
    background: var(--color-grey-light);
}

.depth-guide__inner {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: var(--site-max-w);
    margin: 0 auto;
}

.depth-guide__head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.depth-guide__title {
    font-family: var(--font-heading);
    font-size: 45px;
    font-weight: 600;
    line-height: 48px;
}

.depth-guide__text {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 20px;
}

.depth-guide__mobile {
    display: none;
}

/* The table: four columns; rows white and Light Grey in turn (the header is the first child) */
.depth-guide__table {
    overflow: hidden;
    border-radius: 12px;
    background: var(--color-grey-light);
    box-shadow: 0 0 6px rgb(0 0 0 / 0.12);
}

.depth-guide__header,
.depth-guide__row {
    display: grid;
    grid-template-columns: 260fr 150fr 240fr 582fr;
}

/* The use and depth: their own cells on desktop, the mobile bar below */
.depth-guide__bar {
    display: contents;
}

.depth-guide__header {
    padding: 14px 24px;
    background: var(--color-secondary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 20px;
}

.depth-guide__row {
    padding: 16px 24px;
    background: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 20px;
}

.depth-guide__row:nth-child(odd) {
    background: var(--color-grey-light);
}

.depth-guide__row [role="cell"] {
    padding-right: 16px;
}

.depth-guide__depth {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.depth-guide__chevron {
    display: none;
}

/* The rules of thumb */
.depth-guide__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    padding: 20px 28px;
    border-radius: 4px;
    background: var(--color-mint);
    box-shadow: 0 0 12px rgb(0 0 0 / 0.12);
    list-style: none;
}

.depth-guide__stats li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 20px;
}

.depth-guide__stats strong {
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
}

/* The price list */
.depth-guide__download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 28px;
    border-radius: 12px;
    background: var(--color-secondary);
    box-shadow: 0 0 12px rgb(0 0 0 / 0.12);
    color: var(--color-white);
}

.depth-guide__download-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.depth-guide__download-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
}

.depth-guide__download-small {
    line-height: 20.8px;
}

.depth-guide__download-button {
    flex: none;
    min-width: 177px;
}

/* ── Tablet: the table narrower, the stats two by two ───────── */
@media (max-width: 1024px) {
    .depth-guide__title {
        font-size: 32px;
        line-height: 36px;
    }

    .depth-guide__header,
    .depth-guide__row {
        grid-template-columns: 110fr 70fr 110fr 140fr;
        padding-inline: 16px;
    }

    .depth-guide__header,
    .depth-guide__row {
        font-size: 14px;
        line-height: 18px;
    }

    .depth-guide__stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
        padding: 16px;
    }

    .depth-guide__stats strong {
        font-size: 24px;
        line-height: 30px;
    }

    .depth-guide__stats li {
        font-size: 14px;
        line-height: 18px;
    }

    .depth-guide__download {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Mobile: a bar per use, opening to the sub-base and notes ── */
@media (max-width: 767px) {
    .depth-guide__desktop {
        display: none;
    }

    .depth-guide__mobile {
        display: inline;
    }

    .depth-guide__title {
        font-size: 36px;
        font-weight: 700;
        line-height: 34px;
    }

    .depth-guide__head {
        gap: 4px;
    }

    .depth-guide__text {
        color: var(--color-text-muted);
        font-size: 13px;
        line-height: 18px;
    }

    .depth-guide__table {
        display: flex;
        flex-direction: column;
        gap: 8px;
        overflow: visible;
        background: none;
        box-shadow: none;
    }

    .depth-guide__header {
        display: none;
    }

    .depth-guide__row,
    .depth-guide__row:nth-child(odd) {
        display: block;
        padding: 0;
        overflow: hidden;
        border-radius: 8px;
        background: var(--color-white);
    }

    .depth-guide__bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px;
        font-size: 14px;
        font-weight: 600;
        line-height: 18px;
        cursor: pointer;
    }

    .depth-guide__row:not(.is-open) .depth-guide__base,
    .depth-guide__row:not(.is-open) .depth-guide__notes {
        display: none;
    }

    .depth-guide__row [role="cell"] {
        padding-right: 0;
    }

    .depth-guide__depth {
        align-items: center;
        gap: 8px;
        color: var(--color-secondary);
        font-family: var(--font-body);
        font-size: 13px;
        font-weight: 700;
        line-height: 16px;
        white-space: nowrap;
    }

    .depth-guide__chevron {
        display: block;
        transition: rotate var(--transition);
    }

    .depth-guide__row.is-open .depth-guide__chevron {
        rotate: 180deg;
    }

    .depth-guide__base,
    .depth-guide__notes {
        display: block;
        padding: 0 14px;
        color: var(--color-text-muted);
        font-family: var(--font-body);
        font-size: 12px;
        font-weight: 400;
        line-height: 16px;
    }

    .depth-guide__notes {
        padding: 4px 14px 14px;
    }

    .depth-guide__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 14px;
    }

    .depth-guide__stats strong {
        font-size: 20px;
        line-height: 25px;
    }

    .depth-guide__stats li {
        font-size: 11px;
        line-height: 14px;
    }

    .depth-guide__download {
        flex-direction: row;
        align-items: center;
        padding: 14px;
        border-radius: 8px;
    }

    .depth-guide__download-title {
        font-size: 14px;
        line-height: 18px;
    }

    .depth-guide__download-small {
        display: none;
    }

    .depth-guide__download-button {
        min-width: 0;
        min-height: 40px;
        padding: 10px 16px;
    }
}
