/* DEB Equipment — Guides editorial template */
.deb-guide-page {
    --deb-green: #2f5144;
    --deb-green-dark: #203c32;
    --deb-sage: #dfe7e1;
    --deb-sand: #f5f2eb;
    --deb-ink: #202725;
    --deb-muted: #66706c;
    --deb-line: #dfe3df;
    background: var(--deb-sand);
    color: var(--deb-ink);
}

.deb-guide-page * {
    box-sizing: border-box;
}

.deb-guide-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 18%, rgba(255,255,255,.12), transparent 32%),
        linear-gradient(135deg, var(--deb-green-dark), var(--deb-green));
    color: #fff;
    padding: 92px 24px 108px;
}

.deb-guide-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -150px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
}

.deb-guide-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    margin: 0 auto;
}

.deb-guide-kicker,
.deb-guide-sidebar__eyebrow,
.deb-guide-cta__eyebrow,
.deb-guide-related__heading > span,
.deb-guide-card__label {
    display: inline-block;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.deb-guide-kicker {
    color: #dfe9e3;
    text-decoration: none;
    margin-bottom: 24px;
}

.deb-guide-kicker:hover {
    color: #fff;
}

.deb-guide-title {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.03;
    letter-spacing: -.035em;
    font-weight: 700;
}

.deb-guide-lead {
    max-width: 760px;
    margin: 28px 0 0;
    color: rgba(255,255,255,.82);
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.6;
}

.deb-guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
    color: rgba(255,255,255,.68);
    font-size: 14px;
}

.deb-guide-cover {
    position: relative;
    z-index: 3;
    width: min(1080px, calc(100% - 48px));
    margin: -54px auto 0;
    overflow: hidden;
    border: 6px solid #fff;
    border-radius: 6px;
    box-shadow: 0 24px 70px rgba(32,60,50,.16);
    background: #dfe7e1;
}

.deb-guide-cover__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    object-position: center;
}

.deb-guide-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 820px);
    gap: 64px;
    width: min(1160px, calc(100% - 48px));
    margin: 48px auto 0;
    align-items: start;
}

.deb-guide-sidebar {
    position: relative;
    z-index: 3;
    padding-top: 88px;
}

.deb-guide-sidebar__card {
    position: sticky;
    top: 120px;
}

.deb-guide-sidebar__eyebrow {
    color: var(--deb-green);
    margin-bottom: 18px;
}

.deb-guide-toc {
    border-left: 1px solid #cbd3ce;
    padding-left: 18px;
}

.deb-guide-toc a {
    display: block;
    color: #56615d;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.45;
    padding: 7px 0;
    transition: color .2s ease, transform .2s ease;
}

.deb-guide-toc a:hover,
.deb-guide-toc a.is-active {
    color: var(--deb-green-dark);
    transform: translateX(3px);
}

.deb-guide-content {
    position: relative;
    z-index: 2;
    background: #fff;
    border: 1px solid rgba(34,61,51,.07);
    box-shadow: 0 24px 70px rgba(32,60,50,.09);
    border-radius: 6px;
    padding: 72px 82px 82px;
    margin: 0;
}

.deb-guide-content > :first-child {
    margin-top: 0;
    font-size: 19px;
    line-height: 1.8;
    color: #3b4541;
}

.deb-guide-content p,
.deb-guide-content li {
    font-size: 17px;
    line-height: 1.85;
    color: #444e4a;
}

.deb-guide-content p {
    margin: 0 0 24px;
}

.deb-guide-content h2 {
    scroll-margin-top: 130px;
    margin: 64px 0 22px;
    padding-top: 20px;
    border-top: 1px solid var(--deb-line);
    color: var(--deb-ink);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.18;
    letter-spacing: -.025em;
}

.deb-guide-content h3 {
    scroll-margin-top: 130px;
    margin: 38px 0 16px;
    color: var(--deb-green-dark);
    font-size: 23px;
    line-height: 1.3;
}

.deb-guide-content strong {
    color: #273d34;
}

.deb-guide-content a:not(.deb-guide-cta__button) {
    color: var(--deb-green);
    text-decoration-color: rgba(47,81,68,.35);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.deb-guide-content a:not(.deb-guide-cta__button):hover {
    color: var(--deb-green-dark);
    text-decoration-color: currentColor;
}

.deb-guide-content ul,
.deb-guide-content ol {
    margin: 8px 0 28px;
    padding-left: 24px;
}

.deb-guide-content li {
    margin-bottom: 8px;
}

.deb-guide-content blockquote {
    margin: 34px 0;
    padding: 22px 26px;
    border-left: 4px solid var(--deb-green);
    background: #f3f6f3;
    color: #33453e;
}

.deb-guide-content img {
    border-radius: 6px;
}

.deb-guide-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: end;
    margin-top: 72px;
    padding: 38px;
    background: var(--deb-green-dark);
    color: #fff;
    border-radius: 4px;
}

.deb-guide-cta h2 {
    margin: 10px 0 12px;
    padding: 0;
    border: 0;
    color: #fff;
    font-size: 30px;
}

.deb-guide-cta p {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 15px;
    line-height: 1.6;
}

.deb-guide-cta__eyebrow {
    color: #bfd0c6;
}

.deb-guide-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(255,255,255,.3);
    background: #fff;
    color: var(--deb-green-dark);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease;
}

.deb-guide-cta__button:hover {
    color: var(--deb-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.15);
}

.deb-guide-related {
    padding: 90px 24px 100px;
}

.deb-guide-related__inner {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.deb-guide-related__heading {
    margin-bottom: 28px;
}

.deb-guide-related__heading > span {
    color: var(--deb-green);
}

.deb-guide-related__heading h2 {
    margin: 8px 0 0;
    font-size: clamp(30px, 3vw, 42px);
    color: var(--deb-ink);
}

.deb-guide-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.deb-guide-card {
    display: flex;
    flex-direction: column;
    min-height: 270px;
    padding: 30px;
    background: #fff;
    border: 1px solid #e1e4e1;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.deb-guide-card:hover {
    color: inherit;
    transform: translateY(-4px);
    border-color: #c9d4ce;
    box-shadow: 0 18px 42px rgba(32,60,50,.08);
}

.deb-guide-card__label {
    color: var(--deb-green);
}

.deb-guide-card h3 {
    margin: 20px 0 12px;
    color: var(--deb-ink);
    font-size: 22px;
    line-height: 1.25;
}

.deb-guide-card p {
    margin: 0;
    color: var(--deb-muted);
    font-size: 14px;
    line-height: 1.65;
}

.deb-guide-card__link {
    margin-top: auto;
    padding-top: 22px;
    color: var(--deb-green-dark);
    font-weight: 700;
    font-size: 14px;
}

@media (max-width: 980px) {
    .deb-guide-hero {
        padding: 72px 24px 88px;
    }

    .deb-guide-layout {
        display: block;
        width: min(820px, calc(100% - 32px));
    }

    .deb-guide-sidebar {
        padding-top: 0;
    }

    .deb-guide-sidebar__card {
        position: relative;
        top: auto;
        background: #eef2ef;
        border: 1px solid #d8dfda;
        padding: 22px 24px;
        margin-bottom: 18px;
    }

    .deb-guide-toc {
        columns: 2;
        column-gap: 28px;
    }

    .deb-guide-content {
        padding: 54px 48px 62px;
    }

    .deb-guide-related__grid {
        grid-template-columns: 1fr;
    }

    .deb-guide-card {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .deb-guide-hero {
        padding: 54px 20px 72px;
    }

    .deb-guide-title {
        font-size: 38px;
    }

    .deb-guide-cover {
        width: min(100% - 20px, 760px);
        margin-top: -34px;
        border-width: 4px;
    }

    .deb-guide-cover__image {
        aspect-ratio: 4 / 3;
    }

    .deb-guide-layout {
        width: min(100% - 20px, 760px);
        margin-top: 28px;
    }

    .deb-guide-toc {
        columns: 1;
    }

    .deb-guide-content {
        padding: 38px 24px 48px;
        border-radius: 4px;
    }

    .deb-guide-content > :first-child,
    .deb-guide-content p,
    .deb-guide-content li {
        font-size: 16px;
        line-height: 1.75;
    }

    .deb-guide-content h2 {
        margin-top: 48px;
        font-size: 29px;
    }

    .deb-guide-content h3 {
        font-size: 21px;
    }

    .deb-guide-cta {
        grid-template-columns: 1fr;
        align-items: start;
        padding: 28px 24px;
    }

    .deb-guide-cta__button {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .deb-guide-related {
        padding: 68px 16px 76px;
    }
}
