.publisher_main {
    display: flex;
    justify-content: space-between;
}

#left_block {
    width: -moz-available;
    width: -webkit-fill-available;
    width: stretch;
    max-width: 70%;
}
#left_block h2 {
    color: var(--gold);
    margin-bottom: 0;
    border-bottom: 1px solid var(--gold);
    font-size: 1em;
}
#left_block #journal_entries {
    margin-bottom: 75px;
}
#left_block .journal_entry h3 {
    font-size: large;
    margin: 10px 0;
    font-size: 1.1em;
}
#left_block .journal_entry > div {
    display: inline-flex;
    flex-direction: column;
    height: 5em;
    vertical-align: middle;
    justify-content: center;
}
#left_block .journal_entry > div:last-child {
    float: right;
}
#left_block .journal_entry > div > a {
    text-decoration: none;
    color: var(--black1);
    background: var(--beige2);
    border-radius: 1000px;
    padding: 5px 12px;
}
#left_block .publisher_description {
    margin-top: 10px;
    margin-bottom: 50px;
}

#right_block {
    width: 17.5%;
}
#right_block > * {
    display: block;
}
#right_block > img {
    max-height: 150px;
    max-width: 100%; /* a wide uploaded logo must not force horizontal scroll */
}
#right_block > h4 {
    margin-bottom: 0;
    font-size: 0.8em;
}
#right_block > a {
    text-decoration: none;
    color: var(--gold);
    overflow-wrap: anywhere; /* a raw website URL has no break opportunities */
}

/* Hover colours only where a pointer can hover (see style.css). */
@media (hover: hover) {
    #left_block .journal_entry > div > a:hover {
        background: var(--beige1);
    }
    #right_block > a:hover {
        color: var(--beige4);
    }
}

/* Compact layout (WCAG 1.4.10): stack the main / sidebar columns (the 17.5%
   sidebar is 120px on a landscape phone) and give the contact links 44px rows. */
@media (max-width: 960px) {
    .publisher_main {
        flex-direction: column;
    }
    #left_block {
        max-width: 100%;
    }
    #left_block #journal_entries {
        margin-bottom: 40px;
    }
    #right_block {
        width: 100%;
        margin-top: 32px;
    }
    #right_block > a {
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    /* Journal entries: the desktop inline-flex + float + fixed 5em height lets a
       wrapped title spill into the next entry at phone width. Lay each entry
       out as a flex row with a 44px "przeglądaj" pill instead. */
    #left_block .journal_entry {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    #left_block .journal_entry > div {
        height: auto;
        min-height: 5em;
        min-width: 0;
    }
    #left_block .journal_entry > div:last-child {
        float: none;
        flex-shrink: 0;
    }
    #left_block .journal_entry > div > a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        box-sizing: border-box;
    }
}
