// This file handles the page header, which pretty much means everything above the lower border of the title.

#page-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    border-bottom: 3px solid var(--8);
    margin-bottom: calc(var(--space) * 2);
}

#page-title {
    display: flex;
    position: relative;
    line-height: 2.4em;
}

#page-header-views {
    margin-bottom: calc(var(--space) / 2);
    display: flex;
    gap: var(--space);
    text-wrap: nowrap;
}

#page-header-views > * > a:link,
#page-header-views#page-header-views a:visited {
    // The double id selector is to beat base Mediawiki specificity.
    color: var(--8);
}

#page-header-views > * > a:link:hover,
#page-header-views#page-header-views a:visited:hover {
    color: var(--blue-5);
}

#page-header-options {
    position: relative;
}

#page-header-options:focus-within button{
    color: var(--blue-5);
    position: relative;
    text-decoration: none;
}

#page-header-options button {
    text-decoration: underline;
    color: var(--8);
}

#page-header-options button:hover {
    color: var(--blue-5);
}

#firstHeading {
    margin-bottom: .2em;
    color: var(--8);
    @media (prefers-color-scheme: dark) {
        text-shadow: 0 0 6px var(--0);
    }
    font-family: 'Libre Caslon', serif;
    text-wrap: balance;
}

#page-header {
    grid-row: title;
}

#page-header-links {
    display: flex;
    gap: var(--space);
}

#mw-indicator-mw-helplink {
    height: fit-content;
    align-self: center;
}

#ca-talk a{
    text-decoration: underline;
}

@media (min-width: 1201px) {

}

@media (max-width: 1200px) {

    #page-header {
        margin-left: var(--space);
        margin-right: var(--space);
    }

}

@media (max-width: 720px) {

    #page-header {
        margin-left: 0;
        margin-right: 0;
    }
    
    #page-header-views {
        flex-direction: column;
        margin-bottom: 0;
        align-items: end;
    }

    #page-header-links {
        margin-bottom: calc(var(--space) / 2);
    }

    #page-title{
        flex-direction: column-reverse;
    }

    #firstHeading {
        margin-top: var(--space);
    }

    #page-header-links {
        flex-direction: column;
        align-items: end;
    }

    #page-title-versions {
        align-self: end;
    }
}