/*
 * CONTENT BLOCK LINKS (cb_links)
 * Links one below the other as buttons in full width with icon (.btn.btn--wide, design E2, see base.css), in the main
 * column, the aside, as link box with the frame "filled" (G6) and as downloads (G7).
 * Social media links (.cb-links__item--social) are round icon buttons (.btn--social, see base.css), consecutive ones
 * side by side in a wrapping row, in the order of the links.
 */

.cb-links {
    --cb-links--gap: var(--padding--default);

    display: flex;
    flex-wrap: wrap;
    gap: var(--cb-links--gap) var(--layout--gap--small);
    list-style: none;
}

/*
 * Each wide button takes a line of its own. It must not grow with the single line labels (min-width), they are cut
 * with "…" instead (WCAG 1.4.10 at 320px).
 */
.cb-links__item {
    flex: 1 0 100%;
    min-width: 0;
}

.cb-links__item--social {
    flex: 0 0 auto;
}

/*
 * In the frame "accent" (orange border) the buttons follow the frame: border orange, hover filled orange with white
 * text (inverted as all buttons in contrast mode)
 */
:root:not([data-contrast-mode="active"]) .frame--accent .cb-links .btn {
    --btn--border: var(--color--orange);
}

:root:not([data-contrast-mode="active"]) .frame--accent .cb-links .btn:hover {
    background-color: var(--color--orange);
    color: var(--color--white);
}
