/* AA Author Frontend Styles - Optimized & Consolidated */

/* CSS Custom Properties */
:root {
    /* Dynamic E-E-A-T Branding Variables (injected by Site Detector) */
    --aa-primary-color: #0073aa;
    --aa-secondary-color: #46b450;
    --aa-accent-color: #dba617;
    --aa-bg-color: #ffffff;
    --aa-text-color: #1a202c;
    --aa-border-color: #e1e5e9;
    --aa-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --aa-heading-font: inherit;

    /* Static UI Variables */
    --author-warning: #dba617;
    --author-danger: #d63638;
    --author-bg-light: #f9fafb;
    --author-muted: #6b7280;
    --author-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --author-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --author-radius: 12px;
    --author-transition: all 0.3s ease;
}

/* Dynamic Avatar Colors - Generated from Author Name */
.author-initials-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 60px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--aa-primary-color, #667eea) 0%, var(--aa-secondary-color, #764ba2) 100%);
    border: 3px solid #f0f2f5;
}

.author-initials-avatar--small {
    width: 120px;
    height: 120px;
    font-size: 48px;
}

.author-display-name {
    text-align: center;
    margin-top: 8px;
    font-weight: 600;
    color: var(--aa-text-color);
}

.author-display-name--small {
    font-size: 14px;
}

/* Category Badge Colors - Use data attribute for custom colors */
.author-box__category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: var(--author-bg-light);
    color: var(--aa-text-color);
    border: 1px solid var(--aa-border-color);
    margin-right: 6px;
    margin-bottom: 6px;
}

.author-box__category-icon {
    font-size: 14px;
}

.author-box__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

/* Main Author Card */
.author-card {
    border: 1px solid var(--aa-border-color);
    border-radius: var(--author-radius);
    padding: 20px;
    margin-bottom: 20px;
    background: var(--aa-bg-color);
    box-shadow: var(--author-shadow);
    transition: var(--author-transition);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    contain: layout style paint;
    will-change: transform;
}

.author-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--author-shadow-hover);
    will-change: auto;
}

/* Author Header */
.author-header {
    display: flex;
    align-items: flex-start;
    gap: clamp(10px, 2vw, 20px);
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.author-photo {
    flex-shrink: 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f2f5;
}

.author-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--aa-primary-color, #667eea) 0%, var(--aa-secondary-color, #764ba2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    border: 3px solid #f0f2f5;
}

.author-basic {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.author-name {
    margin: 0 0 8px 0;
    font-size: clamp(18px, 2vw, 20px);
    font-weight: 600;
    color: var(--aa-text-color);
}

.author-expertise {
    color: var(--aa-primary-color);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.author-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.status-active {
    color: var(--author-secondary);
}

.status-busy {
    color: var(--author-warning);
}

.status-unavailable {
    color: var(--author-danger);
}

.status-guest {
    color: var(--aa-primary-color);
}

/* Author Details */
.author-details {
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.author-experience,
.author-style {
    margin-bottom: 12px;
    font-size: 14px;
}

.experience-badge,
.style-badge {
    background: var(--author-bg-light);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--aa-text-color);
}

.experience-beginner {
    background: #e6fffa;
    color: #006566;
}

.experience-intermediate {
    background: #fef5e7;
    color: #744210;
}

.experience-expert {
    background: #f0fff4;
    color: #22543d;
}

.experience-master {
    background: #faf5ff;
    color: #44337a;
}

/* Author Stats */
.author-stats {
    display: flex;
    gap: clamp(15px, 3vw, 20px);
    margin-bottom: 15px;
    padding: 15px;
    background: var(--author-bg-light);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.stat-number {
    display: block;
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: bold;
    color: var(--aa-text-color);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--author-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Author Footer */
.author-secondary {
    font-size: 13px;
    color: var(--author-muted);
    margin-bottom: 15px;
}

.author-footer {
    text-align: center;
}

.author-link {
    display: inline-block;
    background: var(--aa-primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.author-link:hover {
    background: var(--aa-secondary-color);
    color: white;
    text-decoration: none;
}

/* Grid Layouts */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(15px, 3vw, 30px);
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.author-grid-item {
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Experts List Widget */
.experts-list {
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
    box-sizing: border-box;
}

.expert-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--aa-border-color);
    width: 100%;
    box-sizing: border-box;
}

.expert-item:last-child {
    border-bottom: none;
}

.expert-name {
    margin-bottom: 4px;
}

.expert-name a {
    font-weight: 600;
    color: var(--aa-text-color);
    text-decoration: none;
}

.expert-name a:hover {
    color: var(--aa-primary-color);
    text-decoration: none;
}

.expert-expertise {
    font-size: 13px;
    color: var(--aa-primary-color);
    margin-bottom: 4px;
}

.expert-workload {
    font-size: 12px;
    color: var(--author-muted);
}

.author-box {
    background: var(--aa-bg-color);
    border: 1px solid var(--aa-border-color);
    border-radius: var(--author-radius);
    padding: 24px;
    margin: 32px 0;
    box-shadow: var(--author-shadow);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.author-box__container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.author-box__photo {
    flex-shrink: 0;
}

.author-box__photo img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid #f0f2f5;
}

.author-box__content {
    flex: 1;
    min-width: 0;
}

.author-box__header {
    margin-bottom: 16px;
}

.author-box__name {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--aa-text-color);
}

.author-box__name a {
    color: inherit;
    text-decoration: none;
}

.author-box__name a:hover {
    color: var(--aa-primary-color);
}

.author-box__title {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: var(--author-muted);
    font-weight: 500;
}

.author-box__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--author-muted);
}

.author-box__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.author-box__bio {
    margin: 16px 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--aa-text-color);
}

.author-box__expertise {
    margin: 16px 0;
    font-size: 13px;
}

.author-box__tag {
    display: inline-block;
    background: var(--author-bg-light);
    border: 1px solid var(--aa-border-color);
    border-radius: 999px;
    padding: 4px 12px;
    margin: 4px 6px 4px 0;
    font-size: 12px;
    color: var(--aa-text-color);
}

.author-box__eeat {
    margin: 18px 0;
    padding: 16px;
    background: var(--author-bg-light);
    border-left: 4px solid var(--aa-primary-color);
    border-radius: 8px;
    font-size: 13px;
}

.author-box__eeat-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--aa-text-color);
    margin: 0 0 10px 0;
}

.author-box__eeat-item {
    margin-bottom: 8px;
    color: var(--aa-text-color);
}

.author-box__eeat-item:last-child {
    margin-bottom: 0;
}

.author-box__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--aa-border-color);
    flex-wrap: wrap;
}

.author-box__social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.author-box__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--author-bg-light);
    border: 1px solid var(--aa-border-color);
    border-radius: 50%;
    color: var(--aa-text-color);
    transition: all 0.2s ease;
}

.author-box__social a:hover {
    background: var(--aa-primary-color);
    border-color: var(--aa-primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.author-box__social.colored a[href*="facebook.com"] {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.author-box__social.colored a[href*="facebook.com"]:hover {
    background: #0d65d9;
    border-color: #0d65d9;
}

.author-box__social.colored a[href*="twitter.com"],
.author-box__social.colored a[href*="x.com"] {
    background: #1da1f2;
    border-color: #1da1f2;
    color: #fff;
}

.author-box__social.colored a[href*="twitter.com"]:hover,
.author-box__social.colored a[href*="x.com"]:hover {
    background: #0c8bd9;
    border-color: #0c8bd9;
}

.author-box__social.colored a[href*="linkedin.com"] {
    background: #0077b5;
    border-color: #0077b5;
    color: #fff;
}

.author-box__social.colored a[href*="linkedin.com"]:hover {
    background: #006399;
    border-color: #006399;
}

.author-box__social.colored a[href*="github.com"] {
    background: #333;
    border-color: #333;
    color: #fff;
}

.author-box__social.colored a[href*="github.com"]:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.author-box__social.colored a[href*="instagram.com"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e1306c;
    color: #fff;
}

.author-box__social.colored a[href*="youtube.com"] {
    background: #ff0000;
    border-color: #ff0000;
    color: #fff;
}

.author-box__social.colored a[href*="youtube.com"]:hover {
    background: #cc0000;
    border-color: #cc0000;
}

.author-box__social.colored a[href*="pinterest.com"] {
    background: #e60023;
    border-color: #e60023;
    color: #fff;
}

.author-box__social.colored a[href*="pinterest.com"]:hover {
    background: #bd001c;
    border-color: #bd001c;
}

.author-box__social.colored a[href*="tiktok.com"] {
    background: #000;
    border-color: #000;
    color: #fff;
}

.author-box__social.colored a[href*="tiktok.com"]:hover {
    background: #333;
    border-color: #333;
}

.author-box__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--aa-primary-color);
    text-decoration: none;
}

.author-box__link:hover {
    text-decoration: underline;
}

.author-archive {
    width: 100%;
    max-width: 100%;
}

.author-hero {
    background: linear-gradient(135deg, var(--aa-primary-color, #667eea) 0%, var(--aa-secondary-color, #764ba2) 100%);
    color: #fff;
    padding: 56px 36px;
    border-radius: 14px;
    margin-bottom: 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.author-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
    animation: author-hero-pattern 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes author-hero-pattern {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.author-hero * {
    color: #fff;
    position: relative;
    z-index: 1;
}

.author-hero__photo {
    margin-bottom: 20px;
}

.author-hero__name {
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.author-hero__title {
    font-size: 18px;
    margin: 0 0 12px 0;
    opacity: 0.9;
}

.author-hero__meta {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 14px;
    opacity: 0.95;
}

.author-hero__social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
}

.author-hero__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.author-hero__social a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.author-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--aa-border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    background: transparent;
    color: inherit;
}

.author-tabs::-webkit-scrollbar {
    height: 4px;
}

.author-tabs::-webkit-scrollbar-thumb {
    background: var(--aa-border-color);
    border-radius: 2px;
}

.author-tabs__tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 500;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: fit-content;
    text-align: center;
    opacity: 0.6;
}

.author-tabs__tab:hover {
    opacity: 1;
    color: inherit;
}

.author-tabs__tab:focus {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

.author-tabs__tab.active {
    border-bottom-color: currentColor;
    font-weight: 600;
    opacity: 1;
    color: inherit;
}

.author-tab-content {
    display: none;
    padding: 18px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.author-tab-content.active {
    display: block;
}

.author-bio {
    font-size: 15px;
    line-height: 1.8;
    color: var(--aa-text-color);
}

.author-bio h2 {
    font-size: 22px;
    margin: 24px 0 12px 0;
}

.author-bio h3 {
    font-size: 18px;
    margin: 18px 0 10px 0;
}

.author-posts {
    display: grid;
    gap: 20px;
}

.author-post-card {
    display: flex;
    gap: 18px;
    background: var(--aa-bg-color);
    border: 1px solid var(--aa-border-color);
    border-radius: 10px;
    padding: 18px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.author-post-card:hover {
    box-shadow: var(--author-shadow-hover);
    transform: translateY(-2px);
}

.author-post-card__image {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
}

.author-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-post-card__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.author-post-card__title a {
    color: var(--aa-text-color);
    text-decoration: none;
}

.author-post-card__title a:hover {
    color: var(--aa-primary-color);
}

.author-post-card__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--author-muted);
    margin: 0 0 10px 0;
}

.author-post-card__meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--author-muted);
    flex-wrap: wrap;
}

.author-topic {
    display: inline-block;
    background: var(--author-bg-light);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--aa-text-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.author-topic:hover {
    background: var(--aa-primary-color);
    color: #fff;
}

.author-bio table,
.author-tab-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    background: var(--aa-bg-color);
    border: 1px solid var(--aa-border-color);
    border-radius: 8px;
    overflow: hidden;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* CONTACT PAGE STYLES */
.author-contact-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.author-contact-list li {
    margin: 12px 0;
    padding: 8px 0;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid #f0f0f0;
}

.author-contact-list li:last-child {
    border-bottom: none;
}

.author-contact-list a {
    color: var(--aa-primary-color);
    text-decoration: none;
    font-weight: 500;
}

.author-contact-list a:hover {
    color: var(--aa-secondary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .author-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-stats {
        flex-direction: column;
        gap: 10px;
    }

    .authors-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .author-avatar,
    .author-avatar-placeholder {
        width: 60px;
        height: 60px;
    }

    .author-name {
        font-size: 18px;
    }

    .author-tab-content {
        padding: 15px;
    }

    .author-contact-list {
        margin: 15px 0;
    }

    .author-box__container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-box__meta {
        justify-content: center;
    }

    .author-box__footer {
        flex-direction: column;
        align-items: center;
    }

    .author-hero {
        padding: 36px 20px;
    }

    .author-hero__meta {
        flex-direction: column;
        gap: 8px;
    }

    .author-post-card {
        flex-direction: column;
    }

    .author-post-card__image {
        width: 100%;
        height: 200px;
    }

    /* Mobile Tab Fixes */
    .author-tabs {
        gap: 4px;
        padding-bottom: 2px;
    }

    .author-tabs__tab {
        padding: 10px 16px;
        font-size: 14px;
        flex: 0 0 auto;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .author-card {
        padding: 15px;
    }

    .author-details {
        margin-bottom: 15px;
    }

    .stat-number {
        font-size: 20px;
    }

    .author-contact-list li {
        margin: 8px 0;
        padding: 6px 0;
    }

    .author-header {
        gap: 10px;
    }

    .author-hero__name {
        font-size: 26px;
    }

    .author-hero__title {
        font-size: 16px;
    }

    .author-post-card {
        padding: 14px;
    }

    /* Extra small mobile tab fixes */
    .author-tabs {
        gap: 2px;
    }

    .author-tabs__tab {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Accessibility Improvements */
.author-card:focus-within {
    outline: 2px solid var(--aa-primary-color);
    outline-offset: 2px;
}

.author-link:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    .author-card,
    .author-link,
    .author-card:hover {
        transition: none;
        transform: none;
    }
}

/* Hide Exalt theme native author box to prevent duplicates */
.exalt-author-bio {
    display: none !important;
}

/* ── E-E-A-T Experience Badges (2026 Google Standards) ────────────────── */

.author-box__experience-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px solid var(--aa-border-color);
    border-bottom: 1px solid var(--aa-border-color);
}

.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    transition: var(--author-transition);
    cursor: help;
    white-space: nowrap;
}

.author-badge svg {
    flex-shrink: 0;
}

.author-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Verified Badge (Hands-On Tested) */
.author-badge--verified {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 1px solid #059669;
}

.author-badge--verified:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Experience Badge (Years) */
.author-badge--experience {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: 1px solid #2563eb;
}

.author-badge--experience:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Methodology Badge (Testing Process) */
.author-badge--methodology {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    border: 1px solid #7c3aed;
}

.author-badge--methodology:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

/* Verification Badge (Verified Methods) */
.author-badge--verification {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: 1px solid #d97706;
}

.author-badge--verification:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .author-box__experience-badges {
        gap: 6px;
        margin: 12px 0;
        padding: 10px 0;
    }

    .author-badge {
        font-size: 11px;
        padding: 5px 10px;
        gap: 5px;
    }

    .author-badge svg {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .author-box__experience-badges {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-badge {
        width: 100%;
        justify-content: center;
    }
}

/* Tooltip Enhancement (Optional) */
.author-badge[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    border-radius: 6px;
    white-space: normal;
    max-width: 250px;
    margin-bottom: 8px;
    z-index: 1000;
    pointer-events: none;
    line-height: 1.4;
}

/* Accessibility */
.author-badge:focus {
    outline: 2px solid var(--aa-primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .author-box__experience-badges {
        border-top: 1px solid #000;
        border-bottom: 1px solid #000;
    }

    .author-badge {
        border: 1px solid #000;
        background: #fff !important;
        color: #000 !important;
    }
}