/* Riomega Author Box – v1.1.0 (medical E-E-A-T) */

:root { --rab-accent: #af8764; }

.rab-box {
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
    margin: 2.5rem 0;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--rab-accent);
    border-radius: 8px;
    font-family: inherit;
}

.rab-avatar { flex-shrink: 0; }
.rab-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--rab-accent);
    display: block;
}

.rab-content { flex: 1; min-width: 0; }

.rab-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--rab-accent);
    margin: 0 0 0.25rem;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
}

.rab-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.2;
    font-family: "Poppins", sans-serif;
}
.rab-name a {
    color: inherit;
    text-decoration: none;
}
.rab-name a:hover { color: var(--rab-accent); }

.rab-speciality {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 0.75rem;
    font-style: italic;
}

.rab-bio {
    margin: 0.5rem 0 1rem;
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Badges */
.rab-badges {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.rab-badges li {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background: #f2f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #495057;
    font-family: "Poppins", sans-serif;
    letter-spacing: 0.02em;
}
.rab-badges .rab-badge--pwz {
    background: rgba(175, 135, 100, 0.12);
    border-color: var(--rab-accent);
    color: #8b6a4e;
    padding: 0;
}
.rab-badges .rab-badge--pwz a {
    display: block;
    padding: 0.3rem 0.7rem;
    color: inherit;
    text-decoration: none;
}
.rab-badges .rab-badge--pwz a:hover {
    background: rgba(175, 135, 100, 0.22);
}

/* Social / academic links — outline minimalistic style */
.rab-social {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.rab-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    color: #495057;
    border: 1px solid #d1d5db;
    transition: color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.rab-social-link svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
    stroke: currentColor;
}
/* Website icon has outlined SVG (fill:none) — force stroke only */
.rab-social-website svg {
    fill: none;
    stroke-width: 2;
}
.rab-social-link:hover {
    color: var(--rab-accent);
    border-color: var(--rab-accent);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 640px) {
    .rab-box {
        flex-direction: column;
        padding: 1.25rem;
        gap: 1rem;
    }
    .rab-avatar { align-self: center; }
    .rab-avatar img { width: 80px; height: 80px; }
    .rab-name { font-size: 1.2rem; }
    .rab-content { text-align: center; }
    .rab-badges, .rab-social { justify-content: center; }
}

/* Dark footer compatibility — if placed on dark bg */
.has-dark-background-color .rab-box,
.site-footer .rab-box {
    background: #1a1d20;
    border-color: #2a2d30;
    color: #cbd3da;
}

/* Affiliation (uczelnia) */
.rab-affiliation {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
    padding: 0.35rem 0.75rem;
    background: rgba(175, 135, 100, 0.08);
    border: 1px solid rgba(175, 135, 100, 0.25);
    border-radius: 3px;
    font-size: 0.82rem;
    color: #495057;
    font-family: "Poppins", sans-serif;
    line-height: 1.3;
}
.rab-affiliation-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--rab-accent);
}
.rab-affiliation a {
    color: inherit;
    text-decoration: none;
}
.rab-affiliation a:hover {
    color: var(--rab-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
