/* Keep contributor cards readable on the site's dark surfaces. */
.amg-byline-person {
    border-color: var(--amg-line);
    color: var(--amg-text);
    background: var(--amg-panel);
}

.amg-byline-role {
    color: var(--amg-accent);
}

.amg-author-person {
    border-color: var(--amg-line);
    background: linear-gradient(145deg, var(--amg-panel), var(--amg-panel-2));
    color: var(--amg-text);
}

.amg-author-person-role {
    color: var(--amg-accent);
}

.amg-author-person-copy p,
.amg-author-box-heading p {
    color: var(--amg-muted);
}

.amg-author-updates {
    border: 1px solid var(--amg-line);
    border-left: 3px solid var(--amg-accent);
    background: var(--amg-panel-2);
    color: var(--amg-text);
}

.amg-author-update-people a {
    border-color: var(--amg-line);
    background: var(--amg-panel);
    color: var(--amg-text);
}

.amg-author-update-people small {
    color: var(--amg-muted);
}

.amg-author-profile-head {
    border-color: var(--amg-line);
    background: linear-gradient(145deg, var(--amg-panel), var(--amg-panel-2));
    color: var(--amg-text);
}

.amg-author-profile-head h1,
.amg-author-profile-role {
    color: var(--amg-text);
}

.amg-author-profile-links a {
    color: var(--amg-accent);
}

.amg-byline-status.is-unverified,
.amg-author-person-status.is-unverified,
.amg-pill.pending {
    color: var(--amg-warning);
}

.amg-pill.pending {
    border-color: rgba(255, 209, 102, .55);
    background: rgba(255, 209, 102, .08);
}


/* Explicit editorial trail contrast. */
.amg-author-updates { background: #111722 !important; color: #f5f7fb !important; border-color: #253142 !important; border-left-color: #00ff87 !important; }
.amg-author-updates .amg-eyebrow { color: #00ff87 !important; }
.amg-author-updates > strong { color: #f5f7fb !important; }
.amg-author-updates p, .amg-author-updates small { color: #8a99ad !important; }

/* Bright verified contributor contrast. */
.amg-byline-role, .amg-author-person-role { color: #63f7ae !important; }
.amg-byline-status.is-verified, .amg-author-person-status.is-verified { color: #63f7ae !important; }

/* Keep pagination items in a clean horizontal row. */
.amg-pagination > ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    list-style: none;
}
.amg-pagination > ul.page-numbers > li {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}
.amg-pagination > ul.page-numbers > li > a,
.amg-pagination > ul.page-numbers > li > span {
    display: inline-flex;
    min-width: 44px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--amg-line);
    border-radius: 8px;
    color: var(--amg-muted);
    line-height: 1.2;
}
.amg-pagination > ul.page-numbers > li > .current {
    border-color: var(--amg-accent);
    background: var(--amg-accent-soft);
    color: var(--amg-accent);
}
.amg-pagination > ul.page-numbers > li > a:hover {
    border-color: var(--amg-accent);
    color: var(--amg-accent);
}
.amg-pagination > ul.page-numbers > li > .dots {
    min-width: 24px;
    padding-right: 2px;
    padding-left: 2px;
    border-color: transparent;
}
@media (max-width: 480px) {
    .amg-pagination > ul.page-numbers { gap: 6px; }
    .amg-pagination > ul.page-numbers > li > a,
    .amg-pagination > ul.page-numbers > li > span {
        min-width: 40px;
        min-height: 40px;
        padding: 7px 10px;
    }
}

/* Net Worth At a Glance. */
.amg-at-a-glance {
    margin: 0 0 22px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 135, .28);
    border-radius: var(--amg-radius);
    background: linear-gradient(145deg, rgba(0, 255, 135, .09), var(--amg-panel));
}
.amg-at-a-glance summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    color: var(--amg-accent);
    font-family: "JetBrains Mono", monospace;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}
.amg-at-a-glance summary::-webkit-details-marker { display: none; }
.amg-at-a-glance summary::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 1.3rem;
    line-height: 1;
}
.amg-at-a-glance[open] summary::after { content: "-"; }
.amg-at-a-glance-body { padding: 0 18px 18px; }
.amg-at-a-glance-grid { display: grid; gap: 0; margin: 0; }
.amg-at-a-glance-row {
    display: grid;
    grid-template-columns: minmax(140px, .38fr) minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--amg-line);
}
.amg-at-a-glance-row dt { color: var(--amg-text); font-weight: 800; }
.amg-at-a-glance-row dd { margin: 0; color: var(--amg-muted); overflow-wrap: anywhere; }
@media (max-width: 520px) {
    .amg-at-a-glance-row { grid-template-columns: 1fr; gap: 3px; }
    .amg-at-a-glance summary, .amg-at-a-glance-body { padding-right: 14px; padding-left: 14px; }
}