/* Also See — Bar Styles */

.alsosaw-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 10px 20px;
    font-size: 0.82rem;
    line-height: 1.4;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
    width: 100%;
    box-sizing: border-box;
    clear: both;
    position: relative;
    z-index: 10;
}

/* ── Sticky ──────────────────────────────────────────────── */
.alsosaw-bar.alsosaw-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 8px rgba(0,0,0,.07);
}

/* ── Label ──────────────────────────────────────────────── */
.alsosaw-label {
    white-space: nowrap;
    color: #888;
    font-weight: 500;
    flex-shrink: 0;
}

/* ── Links container ─────────────────────────────────────── */
.alsosaw-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    flex: 1;
    min-width: 0;
}

/* ── Individual link ─────────────────────────────────────── */
.alsosaw-link {
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
    padding: 2px 8px;
    border-radius: 3px;
    transition: opacity .15s ease, background .15s ease;
    border: 1px solid transparent;
}

.alsosaw-link:hover {
    text-decoration: underline;
    opacity: .8;
}

/* Subtle directional indicators */
.alsosaw-type-prev::before { content: "← "; opacity: .5; }
.alsosaw-type-next::after  { content: " →"; opacity: .5; }

/* Global links get a slightly different look */
.alsosaw-type-global {
    border-color: currentColor;
    opacity: .85;
}
.alsosaw-type-global:hover { opacity: 1; }

/* ── Close button (sticky) ───────────────────────────────── */
.alsosaw-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: #aaa;
    padding: 4px 6px;
    line-height: 1;
    flex-shrink: 0;
    transition: color .15s ease;
    margin-left: auto;
}
.alsosaw-close:hover { color: #555; }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 767px) {
    .alsosaw-bar {
        padding: 8px 14px;
        gap: 6px 10px;
    }
    .alsosaw-links {
        gap: 4px 8px;
    }
    .alsosaw-link {
        font-size: 0.78rem;
        max-width: 100%;
    }
}
