/* The call to action at the bottom of every page (components/cta-section.njk,
   text in src/_data/ctaSections.js): a light gray card above the newsletter
   band. It began as the "Training for your team" box on /learn/
   (.ee-learn-custom, 2026-10-21). Loaded only where the section renders. */

.ee-cta-section {
    padding: 56px var(--ee-header-inset, 20px);
    font-family: 'Lato', sans-serif;
    color: var(--ee-black);
}

.ee-cta-section-inner {
    max-width: 960px;
    margin-inline: auto;
    padding: 40px 28px;
    border-radius: 14px;
    background: var(--bg-light-gray);
}

@media (min-width: 900px) {
    .ee-cta-section-inner {
        padding: 48px;
    }
}

/* Sizes of its own, the old Learn box's: page and post stylesheets size h2
   and p differently, and the section sits on every kind of page. */
.ee-cta-section h2 {
    margin: 0 0 16px;
    font-family: 'Lato', sans-serif;
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--ee-black);
    text-align: start;
    text-wrap: balance;
}

.ee-cta-section p {
    max-width: 62ch;
    margin: 0 0 24px;
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ee-black);
}

/* Links in text: brand blue and underlined, as the style guide asks. */
.ee-cta-section a:not(.round-btn) {
    color: var(--ee-blue);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.ee-cta-section a:not(.round-btn):hover {
    text-decoration-thickness: 2px;
}

.ee-cta-section a:not(.round-btn):focus-visible {
    outline: 3px solid var(--ee-blue);
    outline-offset: 2px;
    border-radius: 2px;
}
