/*
 * Additions on top of the exported theme (app.css and website.css).
 * The exported files are never edited; every tweak the rebuilt site needs lives here.
 */

/*
 * The line under the title of the registration page. The old template made
 * it an h3 straight under the h1; it is an h2 now, so no heading level is
 * skipped, and this keeps the look of that h3 (the theme gives an h2 in the
 * portal header 50px in dark green).
 */
.hero-all-sections .portal-hero-content h2.aff-portal-intro {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    color: #5eac9a;
}

/*
 * An h1 typed into a text becomes an h2 (one h1 per page) with the class
 * "h1". In a modal Bootstrap's .h1 already gives it the old size; on the page
 * it needs the theme's .aff-wrapper h1 size and colour back, and none of the
 * h2 styling of the page text column (Ubuntu, capitals, 40px margin).
 */
.aff-wrapper h2.h1,
.aff-wrapper .section-content-middle .mid-content h2.h1 {
    margin: 0 0 0.5rem;
    font-family: inherit;
    font-size: 58px;
    font-weight: 500;
    color: #025276;
    text-transform: none;
}

@media screen and (max-width: 1200px) {
    .aff-wrapper h2.h1,
    .aff-wrapper .section-content-middle .mid-content h2.h1 {
        font-size: 48px;
    }
}

/*
 * The status code above the title of an error page (layouts/error), in the
 * green of the theme's subtitles.
 */
.aff-wrapper .hero-all-sections .aff-error-code {
    margin-bottom: 8px;
    font-family: Ubuntu, sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #5eac9a;
}

/*
 * An error page is shorter than the screen: the content takes the free
 * height, so the copyright bar sits at the bottom instead of above a white strip.
 * The theme zooms the body to 0.9 (app.css), so 100vh inside it is a tenth short.
 */
.aff-error-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh / 0.9);
}

.aff-error-page > .aff-wrapper {
    flex: 1 0 auto;
}

/*
 * A keyboard user skips the header: the link sits off screen until it has
 * focus, then at the top left.
 */
.skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 9999;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    background: #025276;
    color: #fff;
    text-decoration: none;
}

/*
 * The main menu: a parent is a link to its hub, the button next to it opens
 * the submenu for a keyboard or a finger (a mouse still hovers, app.css).
 */
.nav-header .navbar .navbar-nav .dropdown-nav .menu-hub {
    display: inline-flex;
    align-items: center;
}

.nav-header .navbar .navbar-nav .dropdown-nav .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    margin-left: -0.25rem;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.nav-header .navbar .navbar-nav .dropdown-nav .menu-toggle svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.15s ease;
}

.nav-header .navbar .navbar-nav .dropdown-nav .menu-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.nav-header .navbar .navbar-nav .dropdown-nav .menu-toggle:focus-visible {
    outline: 2px solid #025276;
    outline-offset: 2px;
    border-radius: 2px;
}

/* The close action of the mobile menu is a button now; it keeps the look of the old link. */
.aff-wrapper .nav-header .aff-mobile-menu .header-line .aff-close-btn {
    border: 0;
    background: transparent;
}

@media screen and (max-width: 991px) {
    .nav-header .navbar .navbar-nav .dropdown-nav .menu-toggle {
        width: 50px;
        height: 50px;
        margin-left: 0;
        color: #f5f5f5;
    }

    .nav-header .navbar .navbar-nav .dropdown-nav .menu-toggle svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/*
 * On a phone the header is fixed and about 100px high, while the page
 * header kept the 240px of padding of the desktop: 140px of nothing before
 * the title. The audit of 2 November 2026 (FE09) measured it on every blog.
 */
@media screen and (max-width: 991px) {
    .hero-all-sections,
    .job-search-form {
        padding-top: 150px;
        padding-bottom: 60px;
    }
}

/*
 * The action buttons in the style AFF approved on 17 November 2026
 * (06_overzichtsteksten_en_seo, "Knopstijl"). White on the green of the theme
 * (#5eac9a) reads at 2.68:1; on #088282 it is 4.64:1, which meets WCAG AA.
 * On hover a button turns around: white, with its text and border in its own
 * colour. The border is there in the normal state too, so nothing shifts.
 *
 * The exported theme registers the bold cut of Avenir Next as weight 400
 * ("AvenirNextBold"); asking that family for 700 makes a browser thicken it
 * once more. So the same file is registered here as a real 700.
 */
@font-face {
    font-family: "AFF Button";
    src: url("/theme/fonts/Avenir Next LT Pro/AvenirNextLTPro-Bold.otf") format("opentype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --aff-action: #088282;
    --aff-second: #025276;
    --aff-focus: #025276;
}

.aff-wrapper .aff-btn-primary,
.aff-wrapper .aff-btn-second {
    box-sizing: border-box;
    font-family: "AFF Button", Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    opacity: 1;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.aff-wrapper .aff-btn-primary {
    border: 2px solid transparent;
    background-color: var(--aff-action);
    color: #fff;
}

/* The header and the login dropdown have hover colours of their own in app.css. */
.aff-wrapper .aff-btn-primary:hover,
.nav-header .navbar .navbar-nav li a.aff-btn-primary:hover {
    border-color: var(--aff-action);
    background-color: #fff;
    color: var(--aff-action);
    text-decoration: none;
}

.aff-drop-login .aff-btn-primary:hover {
    color: var(--aff-action) !important;
}

/* The white button on the blog carousel had the old green as its text. */
.section-content-middle .blog-carousel .aff-btn-primary {
    color: var(--aff-action);
}

.aff-wrapper .aff-btn-second {
    border: 2px solid var(--aff-second);
    background-color: var(--aff-second);
    color: #fff;
}

.aff-wrapper .aff-btn-second:hover {
    background-color: #fff;
    color: var(--aff-second);
    text-decoration: none;
}

.aff-wrapper .aff-btn-primary:focus-visible,
.aff-wrapper .aff-btn-second:focus-visible {
    outline: 3px solid var(--aff-focus);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .aff-wrapper .aff-btn-primary,
    .aff-wrapper .aff-btn-second {
        transition: none;
    }
}

/*
 * The cookie notice and the button that reopens it; the markup is in
 * theme/partials/cookie-notice.blade.php.
 */
.aff-cookie-notice {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1030;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-top: 4px solid #5EAC9A;
    border-radius: 0 8px 8px 8px;
    box-shadow: 0 12px 30px rgba(1, 82, 118, 0.18);
}

.aff-cookie-notice[hidden] {
    display: none;
}

.aff-cookie-notice__body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.aff-cookie-notice__text {
    flex: 1 1 300px;
}

.aff-cookie-notice__title {
    display: block;
    margin-bottom: 4px;
    color: #025276;
    font-size: 18px;
}

.aff-cookie-notice__text p {
    color: #000;
    font-size: 15px;
    line-height: 1.5;
}

.aff-cookie-notice__link {
    color: #5EAC9A;
    text-decoration: underline;
}

.aff-cookie-notice__link:hover {
    color: #025276;
}

.aff-cookie-notice__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 0 0 auto;
}

.aff-cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    height: 48px;
    padding: 0 1.5rem;
    border-radius: 0 8px 8px 8px;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.aff-cookie-btn--accept {
    border: 2px solid var(--aff-action);
    background-color: var(--aff-action);
    color: #fff;
}

.aff-cookie-btn--accept:hover {
    background-color: #fff;
    color: var(--aff-action);
}

.aff-cookie-btn--ghost {
    border: 2px solid #025276;
    background-color: transparent;
    color: #025276;
}

.aff-cookie-btn--ghost:hover {
    background-color: #025276;
    color: #fff;
}

.aff-cookie-reopen {
    position: fixed;
    left: 20px;
    /* Clear of the home bar on a phone, so it never sits on a button. */
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 1029;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 2px solid var(--aff-action);
    border-radius: 0 8px 8px 8px;
    background-color: var(--aff-action);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(1, 82, 118, 0.22);
    transition: all 0.2s ease-in-out;
}

.aff-cookie-reopen:hover {
    background-color: #fff;
    color: var(--aff-action);
}

.aff-cookie-reopen[hidden] {
    display: none;
}

@media (max-width: 575px) {
    .aff-cookie-notice {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 20px;
    }

    .aff-cookie-notice__actions {
        width: 100%;
    }

    .aff-cookie-btn {
        flex: 1 1 auto;
    }

    .aff-cookie-reopen {
        left: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
