/* color.css is linked from the layout, ahead of this file. */

#about {
    font-size: 1.2rem;

    .logos,
    .authors {
        display: flex;
        flex-direction: row;
        margin-top: 1rem;
        margin-bottom: 4rem;
    }

    .authors {
        margin-top: 4rem;
        font-size: 1.2rem;
    }

    .logo,
    .author {
        flex: 1;
        min-width: 0;
        text-align: center;
    }

    /* The role sits in the flow under the name rather than in an absolutely
       positioned ::after: a translated role is not the length of the English
       one, and the overlap only showed up in the longer language. */
    .author {
        font-weight: bold;
        color: var(--primary-action-background-color);

        &::after {
            content: attr(data-content);
            display: block;
            margin-block-start: 0.25rem;
            font-size: 1.1rem;
            font-weight: normal;
            font-style: italic;
        }
    }

    .description {
        /* Left aligned: justification without hyphenation opens rivers of white
           space, and the measure here is wide. */
        text-align: start;
    }

    a {
        color: var(--primary-action-background-color);
        text-decoration: none;

        &:link,
        &:visited {
            color: var(--primary-action-background-color);
        }

        &:hover {
            text-decoration: underline;
        }
    }

    .open-source {
        margin-top: 5rem;
        border-top: 1px dashed var(--primary-action-background-color);
    }

    @media screen and (max-width: 768px) {
        .logos,
        .authors {
            flex-direction: column;
        }

        .logo,
        .author {
            margin-bottom: 2rem;
        }

        .logo img {
            max-width: 100%;
            height: auto;
        }
    }
}
