/* Global module - Awards: navy box, each award between two gold laurel branches */
.el-awards-box {
    position: relative;
    overflow: hidden;
    max-width: 1530px;
    margin-inline: auto;
    padding: clamp(48px, calc(48px + 26 * (100vw - 1280px) / 640), 74px) clamp(20px, 4vw, 80px) clamp(48px, calc(48px + 24 * (100vw - 1280px) / 640), 72px);
    border-radius: clamp(28px, 2.1vw, 40px);
    background: radial-gradient(80% 90% at 50% 20%, #24507f 0%, var(--el-color-blue-dark) 70%);
    color: var(--el-color-white);
    text-align: center;
}

/* Optional background photo (desktop and mobile). It covers the navy colour, which only
   shows while the photo loads or when there is none. */
.el-awards-bg,
.el-awards-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.el-awards-bg img {
    object-fit: cover;
}

.el-awards-title {
    position: relative;
    margin: 0 0 clamp(36px, calc(36px + 40 * (100vw - 1280px) / 640), 76px);
}

.el-awards-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--el-awards-cols, 2), minmax(0, 1fr));
    gap: 40px clamp(24px, 4vw, 80px);
    max-width: 1240px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

/* Laurel | text | laurel. The text area is wide enough for "BUILD award" on one line (design). */
.el-award {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-self: center;
    width: min(560px, 100%);
}

.el-award-laurel {
    width: clamp(78px, calc(78px + 34 * (100vw - 1280px) / 640), 112px);
    height: auto;
    overflow: visible; /* the tip leaves reach just past the drawing area */
    color: #f6b70f;
}

.el-award-laurel.is-right {
    transform: scaleX(-1);
}

/* The text may use the empty space inside the laurel curves. */
.el-award-body {
    margin-inline: -18px;
}

.el-award-year {
    margin: 0;
    font-family: var(--el-font-heading);
    font-size: clamp(26px, calc(26px + 10 * (100vw - 1280px) / 640), 36px);
    line-height: 1.1;
}

/* h3 in the outline; sized like the design. */
.el-award-name {
    margin: 2px 0 0;
    font-size: clamp(30px, calc(30px + 14 * (100vw - 1280px) / 640), 44px);
    line-height: 1.1;
}

.el-award-text {
    margin: 14px 0 0;
    font-size: clamp(15px, calc(15px + 3 * (100vw - 1280px) / 640), 18px);
    line-height: 1.5;
    opacity: 0.92;
}

/* Tablet and phone: one award per row. */
@media (max-width: 991px) {
    .el-awards-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .el-award-laurel {
        width: 56px;
    }

    .el-award-name {
        font-size: 26px;
    }
}
