#journal_info {
    margin-bottom: 25px;
}

div.journal_title_section {
    margin-bottom: 25px;
}
div.journal_title_section > span {
    font-size: smaller;
    color: var(--gold);
    font-weight: bold;
}
/* Fluid title: 3em from 914px up, shrinking to 1.75em on a phone (em, not rem,
   so the accessibility font-size setting still scales it). */
div.journal_title_section > div > .journal_title {
    font-size: clamp(1.75em, 1em + 3.5vw, 3em);
    font-weight: bolder;
    max-width: 80%;
    display: inline-block;
    margin: 0;
}
/* Issue pages carry the issue path inside the h1 (one heading names the page). */
div.journal_title_section > div > .journal_title > .issue_path {
    display: block;
    font-size: 0.5em;
    font-weight: normal;
}
div.journal_title_section > div > .share_journal {
    float: right;
    padding: 7px 15px;
    background-color: var(--gray2);
    border-radius: 1000px;
    text-decoration: none;
    color: var(--black3);
    display: flex;
    align-items: center;
}
div.journal_title_section > div > .share_journal > img {
    max-height: 1.33em;
    width: auto;
}

div.journal_metadata_section > * > :nth-child(1) {
    margin-bottom: 10px;
    color: var(--gold);
    font-weight: bold;
}
div.journal_metadata_section > * > * {
    display: block;
}

.journal_metadata_section .journal_publisher {
    text-decoration: none;
    font-weight: bold;
    color: var(--black3);
}

.issue_tree_header > .issue_sort_by > a {
    color: var(--black3);
    margin: 0 5px;
}

.issue_parents_string {
    margin: 40px 0;
    display: flex;
    font-weight: 600;
    background-color: var(--gold);
    line-height: normal;
}
.issue_parents_string > * {
    padding: 10px;
    color: white;
    text-decoration: none;
}
.issue_parents_string > :first-child {
    margin-right: auto;
}
.issue_parents_string > :last-child {
    background-color: var(--black2);
    display: flex;
    color: var(--beige3);
}
.issue_parents_string img {
    height: 1.5em;
    width: auto;
}

/* Compact layout (WCAG 1.4.10): the title wraps at full width, the share
   button drops under it, the stacked metadata groups get a gap, the parents
   string and its 44px "Wybierz inny" link wrap onto separate rows. */
@media (max-width: 960px) {
    div.journal_title_section > div > .journal_title {
        max-width: 100%;
    }
    div.journal_title_section > div > .share_journal {
        float: none;
        margin-top: 12px;
        width: fit-content;
        min-height: 44px;
    }
    /* three_col_split stacks the metadata blocks (style.css); without a gap the
       gold labels and their values run together as one wall of text. Separate
       each block (WYDAWCA / ISSN / LICZBA WOLUMINÓW) into its own group. */
    .journal_metadata_section > * + * {
        margin-top: 18px;
    }
    /* A long parents string + the "Wybierz inny" link cram together with
       space-between on a narrow screen; let them wrap onto separate rows. */
    .issue_parents_string {
        flex-wrap: wrap;
        gap: 4px 12px;
    }
    .issue_parents_string > :last-child {
        min-height: 44px;
        box-sizing: border-box;
        align-items: center;
    }
}
