:root { color-scheme: light; --scholar-link: #1a0dab; --scholar-muted: #666; --scholar-border: #e5e5e5; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 Arial, Helvetica, sans-serif; color: #222; background: #fff; }
a { color: var(--scholar-link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #4d90fe; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px; background: #fff; border: 1px solid #4d90fe; }
.skip-link:focus { top: 8px; }
.scholar-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 0 32px; background: #f5f5f5; border-bottom: 1px solid #ddd; }
.scholar-brand { display: inline-flex; align-items: center; gap: 8px; color: #5f6368; font-size: 24px; letter-spacing: -.7px; }
.scholar-brand > span { color: #202124; font-size: 28px; }
.scholar-brand:hover { text-decoration: none; }
.home-link { color: #666; font-size: 12px; padding: 12px 0; }
.scholar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 266px; gap: 34px 46px; max-width: 1160px; margin: 0 auto; padding: 40px 32px 48px; }
.scholar-profile { grid-column: 1; display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 22px; align-items: start; }
.scholar-avatar { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: center 40%; }
.profile-copy h1 { margin: 0 0 6px; font-size: 27px; font-weight: 400; line-height: 1.2; }
.profile-copy p { margin: 3px 0; }
.profile-affiliation a { color: #222; }
.profile-handle { font-size: 12px; color: #555; }
.profile-handle a { color: #555; }
.profile-interests { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 6px; font-size: 12px; }
.follow-button { white-space: nowrap; padding: 7px 12px; min-height: 34px; border: 1px solid #3079ed; border-radius: 2px; color: #fff; background: #4d90fe; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.follow-button:hover { text-decoration: none; background: #357ae8; }
.scholar-metrics { grid-column: 2; grid-row: 1 / span 2; }
.scholar-metrics h2 { margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--scholar-border); font-size: 18px; font-weight: 400; }
.metrics-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.metrics-table thead th { padding: 2px 0 7px 14px; font-weight: 400; color: #666; text-align: right; white-space: nowrap; }
.metrics-table tbody th { font-weight: 400; text-align: left; }
.metrics-table td { text-align: right; padding: 4px 0 4px 14px; font-variant-numeric: tabular-nums; }
.metrics-table abbr { text-decoration: none; cursor: help; }
.metrics-explainer { color: #777; font-size: 11px; margin: 12px 0 24px; }
.yearly-chart { border-bottom: 1px solid var(--scholar-border); padding-bottom: 20px; margin-bottom: 20px; }
.yearly-chart h3 { font-size: 12px; font-weight: 400; color: #666; margin: 0 0 12px; }
.chart-bars { display: flex; gap: 6px; align-items: flex-end; }
.chart-year { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; padding: 3px 0; background: none; }
.chart-track { display: flex; align-items: flex-end; width: 100%; height: 88px; border-bottom: 1px solid #aaa; }
.chart-bar { display: block; width: 100%; min-height: 1px; background: #777; transition: background-color .15s; }
.chart-label { font-size: 9px; color: #666; }
.chart-count { font-size: 9px; color: #555; min-height: 14px; }
.chart-year:hover .chart-bar, .chart-year[aria-pressed='true'] .chart-bar { background: #4d90fe; }
.chart-year[aria-pressed='true'] .chart-label { color: var(--scholar-link); }
.snapshot-note { font-size: 11px; color: #777; }
.snapshot-note p { margin: 6px 0; }
.snapshot-dot { display: inline-block; width: 6px; height: 6px; margin-right: 4px; background: #888; border-radius: 50%; }
.scope-note { line-height: 1.6; }
.profile-links { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--scholar-border); }
.profile-links a { display: block; margin: 8px 0; font-size: 12px; }
.scholar-posts { grid-column: 1; min-width: 0; }
.post-tools { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.search-field { flex: 1; min-width: 0; }
.post-tools input { width: 100%; min-height: 34px; border: 1px solid #ccc; border-radius: 2px; padding: 6px 10px; background: #fff; }
.post-tools select { max-width: 100px; min-height: 34px; background: #fff; border: 1px solid #ccc; border-radius: 2px; padding: 5px; color: #444; }
.export-button { min-height: 34px; background: #f8f8f8; border: 1px solid #ccc; border-radius: 2px; padding: 6px 10px; font-size: 11px; white-space: nowrap; }
.export-button:hover { border-color: #999; background: #f1f1f1; }
.post-results-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 30px; }
.post-results-bar p { margin: 0; font-size: 11px; color: #777; }
#clear-filters { border: 0; padding: 4px; color: var(--scholar-link); background: none; font-size: 11px; }
.posts-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.posts-table th { padding: 0; background: #f5f5f5; border-bottom: 1px solid #ddd; font-size: 11px; font-weight: 400; text-align: left; text-transform: uppercase; }
.posts-table th button { width: 100%; min-height: 40px; text-align: inherit; text-transform: inherit; white-space: nowrap; padding: 10px 12px; color: #555; background: none; border: 0; font-size: inherit; }
.posts-table th button:hover { color: var(--scholar-link); background: #ebebeb; }
.posts-table th:nth-child(2) { width: 78px; text-align: right; }
.posts-table th:nth-child(3) { width: 60px; text-align: right; }
.sort-arrow { color: var(--scholar-link); }
.posts-table td { padding: 14px 12px; border-bottom: 1px solid var(--scholar-border); vertical-align: top; }
.posts-table tr:hover td { background: #fafafa; }
.post-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.post-description p { margin: 2px 0 0; font-size: 12px; line-height: 1.5; color: #777; }
.post-venue { font-style: italic; }
.posts-table .post-likes, .posts-table .post-year { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.post-year { color: #555; }
.posts-pagination { display: flex; align-items: center; gap: 16px; padding: 22px 12px 0; }
#show-more-posts { min-height: 36px; padding: 7px 16px; color: #444; border: 1px solid #ccc; border-radius: 2px; background: #f8f8f8; }
#show-more-posts:hover { border-color: #999; }
#posts-range { color: #777; font-size: 11px; }
.empty-results { margin: 0; padding: 32px 12px; color: #777; border-bottom: 1px solid var(--scholar-border); }
.scholar-footer { padding: 20px 32px; border-top: 1px solid #ddd; background: #f5f5f5; color: #777; text-align: center; font-size: 11px; }
.scholar-footer p { margin: 4px 0; }
@media (max-width: 960px) {
    .scholar-layout { gap: 30px; grid-template-columns: minmax(0, 1fr) 230px; padding: 30px 24px; }
    .scholar-profile { grid-template-columns: 80px minmax(0, 1fr); gap: 18px; }
    .scholar-avatar { width: 80px; height: 80px; }
    .follow-button { grid-column: 2; justify-self: start; margin-top: -8px; }
    .profile-copy h1 { font-size: 25px; }
}
@media (max-width: 760px) {
    .scholar-header { padding: 0 20px; min-height: 58px; gap: 12px; }
    .scholar-brand { font-size: 21px; }
    .home-link { font-size: 11px; }
    .scholar-layout { display: flex; flex-direction: column; gap: 24px; padding: 26px 20px 36px; }
    .scholar-profile { gap: 16px; }
    .profile-copy h1 { font-size: 24px; }
    .profile-handle { font-size: 11px; }
    .scholar-metrics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 24px; padding: 18px 0; border-top: 1px solid var(--scholar-border); border-bottom: 1px solid var(--scholar-border); }
    .scholar-metrics > h2 { grid-column: 1; margin: 0; padding: 0; border: 0; font-size: 15px; }
    .metrics-table { grid-column: 1; font-size: 11px; }
    .metrics-table thead th { padding-left: 8px; font-size: 10px; }
    .metrics-table td { padding-left: 8px; }
    .metrics-explainer { grid-column: 1; margin: 0; font-size: 10px; }
    .yearly-chart { grid-column: 2; grid-row: 1 / span 3; border: 0; padding: 0; margin: 0; align-self: end; }
    .yearly-chart h3 { font-size: 11px; }
    .chart-bars { gap: 3px; }
    .chart-track { height: 68px; }
    .chart-label { font-size: 8px; writing-mode: vertical-rl; }
    .chart-count { display: none; }
    .snapshot-note { grid-column: 1 / -1; margin-top: 4px; font-size: 10px; }
    .scope-note, .profile-links { display: none; }
    .post-tools { flex-wrap: wrap; }
    .post-tools input { min-height: 40px; }
    .post-tools select { min-height: 40px; }
    .post-tools .export-button { min-height: 40px; }
    .posts-table th:nth-child(2) { width: 64px; }
    .posts-table th:nth-child(3) { width: 43px; }
    .posts-table th button { padding: 8px 5px; min-height: 44px; font-size: 10px; }
    .posts-table td { padding: 12px 5px; }
    .post-title { font-size: 14px; }
    .post-description p, .posts-table .post-likes, .posts-table .post-year { font-size: 11px; }
    .post-venue { overflow-wrap: anywhere; }
    .scholar-footer { padding: 18px 20px; text-align: left; }
}
@media (max-width: 360px) {
    .scholar-layout { padding-left: 16px; padding-right: 16px; }
    .scholar-profile { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
    .scholar-avatar { width: 64px; height: 64px; }
    .profile-copy h1 { font-size: 22px; }
    .profile-interests { font-size: 11px; gap: 4px 8px; }
    .post-tools .search-field { flex-basis: 100%; }
    .scholar-metrics { gap: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
