/* Page Layout for "The Global Ledger" Design */
body {
    background-color: #f9f9f9;
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
    /* Serif for body as per screenshot */
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

header {
    background: #fff;
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 40px;
}

.site-name {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #000;
}

article {
    background: #fff;
    max-width: 680px;
    /* Optimal reading width */
    margin: 0 auto 60px auto;
    padding: 60px 80px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Subtle card shadow */
}

h1 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 12px;
    color: #222;
    line-height: 1.25;
}

.meta {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.author {
    font-weight: 700;
    color: #555;
}

.date {
    color: #999;
}

p {
    margin-bottom: 24px;
    font-size: 17px;
    color: #333;
}

blockquote {
    border-left: 3px solid #000;
    margin: 35px 0 35px 15px;
    padding-left: 20px;
    font-style: italic;
    color: #555;
    font-size: 18px;
    font-family: 'Georgia', serif;
}

/* Extension Styles */
#article-analyst-owl-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Unified transition for smooth entrance and hover */
    transition: all 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;

    /* Initial state: hidden and slightly offset */
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    /* Prevent clicks while invisible */
}

#article-analyst-owl-trigger.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#article-analyst-owl-trigger.visible:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#article-analyst-owl-trigger img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Sidebar Overlay Host */
#article-analyst-sidebar-host {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 0;
    /* Hidden by default */
    z-index: 2147483647;
    /* Max z-index */
    transition: width 0.4s ease;
}

#article-analyst-sidebar-host.open {
    width: 400px;
}

/* Highlights */
.analyst-highlight {
    position: relative;
    cursor: help;
    border-radius: 2px;
    padding: 2px 0;
    transition: background-color 0.2s;
}

.analyst-highlight:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    margin-bottom: 5px;
}

.analyst-highlight:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    margin-bottom: -5px;
    z-index: 1000000;
}