.visit-counter {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.visit-counter a {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
}

.visit-counter img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 24px;
}

.visitor-counter-footer {
    padding: 16px;
    text-align: center;
    color: #5e6d79;
    font: 13px/1.5 system-ui, sans-serif;
}

body>footer>.visit-counter {
    margin: 8px 12px;
}

/* Standalone footer created by visitor-counter.js must span the full page width
   and sit on its own row at the bottom of the page. Without this, a flexbox
   <body> (used by the interactive project apps) places it as a side column
   next to the app instead of below it. */
body>.visitor-counter-footer {
    width: 100%;
    flex-shrink: 0;
    order: 9999;
    grid-column: 1 / -1;
}

body.has-standalone-visitor-footer {
    flex-wrap: wrap;
    align-content: flex-start;
}

body:has(> .visitor-counter-footer) {
    flex-wrap: wrap;
    align-content: flex-start;
}

@media print {
    .visit-counter {
        display: none;
    }
}