.infoheader {
    margin: 0 auto;
    max-width: 960px;
}

main.infowrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 auto;
    max-width: 960px;
    align-items: flex-start;
}

.navigationlinks {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.navigationlinks a {
    color: #036;
}

aside#quickinfo {
    flex: 0 0 260px;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

aside#quickinfo img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.unicodeGrid {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.gridElement {
    width: 80px;
    padding: 5px;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: background-color 0.3s ease;
}

.gridElement:hover {
    background-color: #f0f0f0;
}

.gridElementText {
    font-size: 0.85em;
    margin-top: 5px;
}

.gridElement img.unicodeimg {
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

#block_backlink {
    float: left;
}

#block_nextlink {
    float: right;
}

/* Responsive fixes */
@media (max-width: 768px) {
    main.wrapper {
        flex-direction: column;
    }

    aside#quickinfo {
        width: 100%;
        flex: none;
        margin-bottom: 20px;
    }

    .unicodeGrid {
        justify-content: center;
    }

    .gridElement {
        width: 70px;
    }

    .navigationlinks {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .gridElement {
        width: 60px;
    }

    .gridElement img.unicodeimg {
        width: 50px;
        height: 50px;
    }
}


/* 1 ───────── Header / navigation align-up */
#block_backlink,
#block_nextlink {
    /* kill the old floats that clash with .navigationlinks' flex-box */
    float: none;
}
.navigationlinks {
    margin-top: 8px;          /* a touch of breathing-room under h2 */
}

/* 2 ───────── Glyph-tile breathing-room */
.gridElement {
    width: 90px;              /* a tad wider */
    padding: 8px 6px;         /* more internal space top/bottom */
}

.gridElement img.unicodeimg {
    width: auto;              /* keep aspect-ratio */
    height: 80px;             /* taller so vertical glyphs aren’t squashed */
}

