.adc-more {
    /* Value below has no counterpart in colors.css, so it is declared here once. */
    --adc-more-surface: #EFF1F4;

    padding: 60px 48px;
    background: var(--color-bg-white);
}

.adc-more__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1344px;
    margin-inline: auto;
}

/* ---------- header ---------- */
.adc-more__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.adc-more__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 26px;
    padding: 0 12px;
    border-radius: 50px;
    color: var(--color-primary);
    background: var(--color-primary-5);
    box-shadow: inset 0 0 0 1px var(--color-primary-5);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.055px;
    text-transform: uppercase;
}

.adc-more__eyebrow::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 18%, transparent);
}

.adc-more__headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.adc-more__title {
    flex: none;
    margin: 0;
    color: var(--color-text-dark);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.56px;
}

.adc-more__accent {
    display: block;
    color: var(--color-primary);
}

.adc-more__lead {
    flex: none;
    max-width: 424px;
    margin: 0;
    color: var(--color-muted-blue-gray);
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
}

.adc-more__lead strong {
    font-weight: 700;
}

.adc-more__br {
    display: none;
}

/* ---------- cards ---------- */
.adc-more__list {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.adc-more__item {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
}

/* Tracking & Map exists only in the mobile carousel (see the mobile block) */
.adc-more__item--tracking {
    display: none;
}

.adc-more__card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 22px 16px;
    border-radius: 20px;
    color: var(--color-muted-blue-gray);
    background: linear-gradient(
        159deg,
        color-mix(in srgb, var(--color-bg-white) 85%, transparent) 0%,
        color-mix(in srgb, var(--adc-more-surface) 65%, transparent) 100%
    );
    box-shadow: inset 0 0 0 1px var(--color-border-soft);
    backdrop-filter: blur(7px);
    text-decoration: none;
    transition: color 0.2s ease;
}

.adc-more__card:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.adc-more__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.adc-more__text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.adc-more__icon,
.adc-more__arrow {
    display: grid;
    flex: none;
    place-items: center;
    background: var(--color-bg-light);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.adc-more__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--color-dark-graphite);
}

.adc-more__arrow {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    color: var(--color-dark-graphite);
}

/* the exported icons are used as masks so one file serves every colour */
.adc-more__glyph {
    display: block;
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: var(--glyph) center / contain no-repeat;
    mask: var(--glyph) center / contain no-repeat;
}

.adc-more__glyph--driver {
    --glyph: url("img/icon-driver.svg");
}

.adc-more__glyph--eld {
    --glyph: url("img/icon-eld.svg");
}

.adc-more__glyph--dvir {
    --glyph: url("img/icon-dvir.svg");
}

.adc-more__glyph--tracking {
    --glyph: url("img/icon-tracking.svg");
}

.adc-more__glyph--cargo {
    --glyph: url("img/icon-cargo.svg");
}

.adc-more__glyph--arrow {
    --glyph: url("img/icon-arrow.svg");
    width: 14px;
    height: 14px;
}

.adc-more__card-title {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.33;
}

.adc-more__card-copy {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 19.5px;
}

.adc-more__tag {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 36px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.adc-more__tag::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: currentColor;
}

.adc-more__card:hover .adc-more__icon,
.adc-more__card:focus-visible .adc-more__icon {
    color: var(--color-primary);
    background: var(--color-primary-10);
}

.adc-more__card:hover .adc-more__tag,
.adc-more__card:focus-visible .adc-more__tag {
    color: var(--color-primary);
    font-weight: 700;
}

/* Desktop design: the Cargo Sensors copy breaks after "humidity," */
.adc-more__br {
    display: none;
}

@media (min-width: 1280px) {
    .adc-more__br {
        display: inline;
    }
}

/* ---------- tablet: a row of fixed cards that scrolls to the screen edge ---------- */
@media (max-width: 1024px) {
    .adc-more {
        padding: 40px 48px;
    }

    .adc-more__headline {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .adc-more__title {
        font-size: 42px;
        line-height: 1.16;
        letter-spacing: -0.21px;
    }

    .adc-more__lead {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: -0.02px;
    }

    .adc-more__list {
        margin-right: -48px;
        padding-right: 48px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .adc-more__list::-webkit-scrollbar {
        display: none;
    }

    .adc-more__item {
        flex: 0 0 327px;
        scroll-snap-align: start;
    }

    .adc-more__card {
        height: 220px;
        padding: 22px 14px 20px;
    }

    .adc-more__text {
        gap: 2px;
    }

    .adc-more__card-copy {
        max-width: 281px; /* design wraps the copy at 281px, not the full 299px card width */
        line-height: 1.54;
    }

    .adc-more__tag {
        padding-top: 0;
        font-weight: 500;
    }
}

/* ---------- mobile ---------- */
@media (max-width: 576px) {
    .adc-more {
        padding: 60px var(--container-padding-sm) 0;
    }

    .adc-more__inner {
        gap: 16px;
    }

    .adc-more__header {
        gap: 12px;
    }

    .adc-more__eyebrow {
        height: auto;
        padding: 6px 12px;
        font-size: 8px;
        line-height: normal;
        letter-spacing: 0.88px;
    }

    .adc-more__headline {
        gap: 8px;
    }

    .adc-more__title {
        font-size: 28px;
        line-height: 1.2;
        letter-spacing: -0.084px;
    }

    .adc-more__lead {
        font-size: 14px;
        font-weight: 500;
        line-height: 1.4;
        letter-spacing: 0;
    }

    .adc-more__list {
        margin-right: calc(var(--container-padding-sm) * -1);
        padding-right: var(--container-padding-sm);
        gap: 8px;
    }

    /* Mobile design order: Tracking & Map, ELD & Compliance, then the rest */
    .adc-more__item--tracking {
        display: flex;
        order: -2;
    }

    .adc-more__item--eld {
        order: -1;
    }

    .adc-more__item {
        flex: 0 0 232px;
    }

    .adc-more__card {
        height: auto;
        padding: 16px;
        border-radius: 14px;
    }

    .adc-more__top {
        align-items: center;
    }

    .adc-more__icon {
        width: 24px;
        height: 24px;
        border-radius: 7px;
    }

    .adc-more__glyph {
        width: 12px;
        height: 12px;
    }

    .adc-more__text {
        gap: 4px;
    }

    .adc-more__card-title {
        font-size: 16px;
        line-height: 1.37;
    }

    .adc-more__card-copy {
        font-size: 12px;
        line-height: 1.33;
        letter-spacing: 0.12px;
    }

    .adc-more__tag {
        padding-top: 12px;
        font-size: 8px;
        line-height: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .adc-more__card,
    .adc-more__icon,
    .adc-more__arrow,
    .adc-more__tag {
        transition: none;
    }
}
