/* Página Bibliotecas — banner e lista de agrupamentos e links */

.rdeb-bibliotecas-banner {
    width: 100%;
    margin-bottom: 0;
    overflow: hidden;
}

.rdeb-bibliotecas-banner__placeholder {
    width: 100%;
    height: 200px;
    background-color: #e4e4e4;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    .rdeb-bibliotecas-banner__placeholder {
        height: 260px;
    }
}

.rdeb-bibliotecas-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px;
}

.rdeb-bibliotecas__header {
    margin-bottom: 32px;
}

.rdeb-bibliotecas__title {
    margin: 0 0 12px;
    font-size: 1.75rem;
}

.rdeb-bibliotecas__intro {
    color: #555;
    line-height: 1.5;
}

.rdeb-bibliotecas__section-title {
    margin: 28px 0 12px;
    padding-bottom: 6px;
    font-size: 1.15rem;
    border-bottom: 1px solid #e0e0e0;
}

.rdeb-bibliotecas__section-title:first-child {
    margin-top: 0;
}

.rdeb-bibliotecas__link-wrap {
    margin: 0 0 8px;
}

.rdeb-bibliotecas__link {
    display: inline-block;
    padding: 4px 0;
}

.rdeb-bibliotecas__link:hover {
    text-decoration: underline;
}

.rdeb-bibliotecas__empty {
    color: #666;
}

.rdeb-bibliotecas__back {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.rdeb-bibliotecas__back a {
    color: inherit;
}

.rdeb-bibliotecas__back a:hover {
    text-decoration: underline;
}

/* ── Shortcode [rdeb_bibliotecas]: fila horizontal, hover mostra links com linha vertical e sublinhados ── */

.rdeb-bibliotecas-sc {
    width: 100vw;
    margin: 0px 10vw 0 !important;
}

.rdeb-bibliotecas-sc__empty {
    color: #666;
}

.rdeb-bibliotecas-sc__viewport {
    overflow-x: auto;
    width: 100vw;
    border: 1px solid;
    padding: 15px;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.rdeb-bibliotecas-sc__viewport::-webkit-scrollbar {
    height: 6px;
}

.rdeb-bibliotecas-sc__viewport::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.rdeb-bibliotecas-sc__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: stretch;
}

.rdeb-biblioteca-sc-item {
    flex: 1 1 0;
    min-width: 120px;
    max-width: 100%;
    position: relative;
}

.rdeb-biblioteca-sc-item__title {
    padding: 14px 12px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    cursor: default;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}

.rdeb-biblioteca-sc-item:hover .rdeb-biblioteca-sc-item__title {
    border-bottom-color: currentColor;
    background: rgba(0, 0, 0, 0.03);
}

.rdeb-biblioteca-sc-item__links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 2;
    padding: 12px 0 12px 14px;
    margin-top: 0;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-left: 4px solid currentColor;
    min-width: 200px;
}

.rdeb-biblioteca-sc-item:hover .rdeb-biblioteca-sc-item__links {
    display: block;
}

.rdeb-biblioteca-sc-item__link {
    display: block;
    padding: 4px 0;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rdeb-biblioteca-sc-item__link:hover {
    opacity: 0.85;
}

.rdeb-biblioteca-sc-item__no-links {
    font-size: 13px;
    color: #888;
}
