/* Atom: footer — colophon at page bottom */

.report-footer {
    max-width: var(--bn-max-width);
    margin: var(--bn-space-xl) auto 0;
    padding-top: var(--bn-space-md);
    border-top: 1px solid var(--bn-colour-border);
    font-size: 0.72rem;
    color: var(--bn-colour-muted);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.footer-logotype {
    font-weight: 600;
}

.footer-version {
    color: var(--bn-colour-muted);
    text-decoration: none;
}

.footer-version:visited {
    color: var(--bn-colour-muted);
}

.footer-version:hover {
    text-decoration: underline;
}

/* Keyboard shortcut hint — subtle, right-aligned */
.footer-keyboard-hint {
    color: var(--bn-colour-muted);
    text-decoration: none;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity var(--bn-transition-fast);
}

.footer-keyboard-hint:visited {
    color: var(--bn-colour-muted);
}

.footer-keyboard-hint:hover {
    opacity: 1;
}

.footer-keyboard-hint kbd {
    display: inline-block;
    padding: 0.1em 0.35em;
    font-family: var(--bn-font-mono);
    font-size: 0.85em;
    line-height: 1;
    color: var(--bn-colour-muted);
    background: var(--bn-colour-badge-bg);
    border: 1px solid var(--bn-colour-border);
    border-radius: var(--bn-radius-sm);
    box-shadow: 0 1px 0 var(--bn-colour-border);
    margin-right: 0.25em;
}

/* Hide keyboard hint on touch devices */
@media (pointer: coarse) {
    .footer-keyboard-hint {
        display: none;
    }
}

/* Footer three-zone layout: left (logo+text) | middle (feedback links) | right (help) */

.footer-left {
    display: flex;
    align-items: baseline;
}

/* Tiny footer fish logo */
.footer-logo-picture {
    display: inline-flex;
    align-items: baseline;
    margin-right: 0.35rem;
}

.footer-logo {
    width: 14px;
    height: auto;
    opacity: 0.5;
    transform: scaleX(-1);
    position: relative;
    top: 0.15em;
    transition: opacity var(--bn-transition-normal);
}

.footer-logo:hover {
    opacity: 0.8;
}

/* Feedback links — hidden by default, shown by JS when feature flag is true */
.feedback-links {
    display: none;
}

body.feedback-enabled .feedback-links {
    display: flex;
    align-items: baseline;
    gap: 0.5em;
}

.footer-link {
    color: var(--bn-colour-muted);
    text-decoration: none;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity var(--bn-transition-fast);
}

.footer-link:visited {
    color: var(--bn-colour-muted);
}

.footer-link:hover {
    opacity: 1;
}

.footer-link-sep {
    color: var(--bn-colour-muted);
    opacity: 0.4;
}

@media (pointer: coarse) {
    .feedback-links {
        display: none !important;
    }
}
