/* Compact homepage analytics card beneath Published Volumes. */
.novelty-layout--classic .novelty-sidebar-left .sidebar-analytics {
    padding: 0 !important;
    border: 1px solid #e8edf4 !important;
    background: #fff !important;
    overflow: hidden;
    container-type: inline-size;
}
.novelty-layout--classic .sidebar-analytics h2.mini-title {
    margin: 2px;
    padding: 12px 16px;
    background: #f4f6f9;
    color: #4f548f !important;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
}
.sidebar-analytics__card {
    margin: 10px 14px 14px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #111;
    background: #fff;
    font-size: 12px;
    line-height: 1.5;
}
.sidebar-analytics__header,
.sidebar-analytics__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.sidebar-analytics__header strong {
    font-size: 12px;
    font-weight: 600;
}
.sidebar-analytics__header > span {
    flex-shrink: 0;
    color: #78818a;
    font-size: 10px;
}
.sidebar-analytics__countries {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}
.sidebar-analytics__countries li {
    display: grid;
    grid-template-columns: 24px auto 1fr;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 11px;
}
.sidebar-analytics__countries img {
    display: block;
    width: 24px;
    height: 18px;
    object-fit: cover;
}
.sidebar-analytics__countries abbr {
    border: 0;
    text-decoration: none;
    cursor: help;
}
.sidebar-analytics__countries li > span,
.sidebar-analytics__total > span {
    text-align: end;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.sidebar-analytics__source {
    margin: 20px 0 8px;
    color: #78818a;
    text-align: center;
    font-size: 10px;
}
.sidebar-analytics__total {
    padding-top: 8px;
    border-top: 1px solid #d5d5d5;
}
.sidebar-analytics__total strong {
    font-weight: 500;
}
.sidebar-analytics__demo,
.sidebar-analytics__empty {
    margin: 10px 0;
    color: #69727c;
    font-size: 11px;
}
@container (max-width: 240px) {
    .sidebar-analytics__countries {
        grid-template-columns: minmax(0, 1fr);
    }
    .sidebar-analytics__header {
        flex-wrap: wrap;
    }
}

/* Google Scholar citation summary and annual chart. */
.novelty-layout--classic .novelty-sidebar-left .sidebar-scholar {
    padding: 0 !important;
    border: 1px solid #e8edf4 !important;
    background: #fff !important;
    overflow: hidden;
}
.novelty-layout--classic .sidebar-scholar h2.mini-title {
    margin: 2px;
    padding: 11px 14px;
    background: #f4f6f9;
    color: #4f548f !important;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
}
.sidebar-scholar__brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 12px 14px;
}
.sidebar-scholar__brand > span {
    color: #7a7a7a;
    font-size: 9px;
}
.sidebar-scholar__brand a {
    text-decoration: none;
}
.sidebar-scholar__logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #4285f4;
    font-size: 11px;
    font-weight: 500;
}
.sidebar-scholar__logo i {
    font-size: 19px;
}
.sidebar-scholar__metrics {
    width: calc(100% - 8px);
    margin: 0 4px;
    border: 1px solid #f0f0f0;
    border-collapse: collapse;
    table-layout: fixed;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.04);
    font-size: 13px;
    line-height: 1.5;
}
.sidebar-scholar__metrics th,
.sidebar-scholar__metrics td {
    padding: 7px 5px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    color: #454545;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}
.sidebar-scholar__metrics thead th {
    background: #fafafa;
    font-weight: 600;
}
.sidebar-scholar__metrics tbody th {
    color: #111;
    text-align: start;
    font-weight: 400;
}
.sidebar-scholar__metrics tbody tr:nth-child(even) {
    background: #fafafa;
}
.sidebar-scholar__metrics tbody tr:last-child > * {
    border-bottom: 0;
}
.sidebar-scholar__chart {
    padding: 40px 5px 8px;
}
.sidebar-scholar__chart svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}
.sidebar-scholar__axis {
    fill: #00a8bd;
    font-size: 10px;
}
.sidebar-scholar__year {
    fill: #777;
    font-size: 10px;
}
.sidebar-scholar__empty {
    margin: 0;
    padding: 35px 16px;
    color: #78818a;
    font-size: 12px;
    text-align: center;
}

/* The journal demographics panel is scoped to avoid changing article/issue styles. */
.homepage-demographics {
    margin: 32px 0 12px;
    border: 1px solid #dfe4e8;
    border-radius: 3px;
    background: #fff;
    color: #253746;
    overflow: hidden;
}
.homepage-demographics__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid #e5e9ed;
}
.homepage-demographics__heading {
    flex: 1 1 220px;
    min-width: 0;
}
.homepage-demographics__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    max-width: 100%;
}
.homepage-demographics__header h2 {
    margin: 0 0 7px;
    color: #243746;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
}
.homepage-demographics__header p {
    margin: 0;
    color: #647582;
    font-size: 14px;
    line-height: 1.6;
}
.homepage-demographics__period {
    padding: 6px 12px;
    border: 1px solid #e1e6ea;
    border-radius: 3px;
    color: #536572;
    font-size: 12px;
}
.homepage-demographics__body {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(245px, 1fr);
}
.homepage-demographics__geography {
    min-width: 0;
    padding: 24px 20px;
}
.homepage-demographics__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 25px;
    color: #687985;
    font-size: 12px;
}
.homepage-demographics__summary strong {
    display: block;
    margin-bottom: 2px;
    color: #243746;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}
.homepage-demographics__map {
    position: relative;
    margin: 22px 0 16px;
    aspect-ratio: 1000 / 452;
}
.homepage-demographics__map > img,
.homepage-demographics__map > svg {
    display: block;
    width: 100%;
    height: 100%;
}
.homepage-demographics__map [data-country] {
    transition: fill .15s ease;
}
.homepage-demographics__map [data-country].has-usage {
    cursor: help;
}
.homepage-demographics__map [data-country].is-active,
.homepage-demographics__map [data-country]:focus-visible {
    fill: #073a68 !important;
    stroke: #152d42;
    stroke-width: 1.3px;
    outline: none;
}
.homepage-demographics__tooltip {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: max-content;
    max-width: 95%;
    padding: 9px 12px;
    border-radius: 3px;
    background: #243746;
    color: white;
    box-shadow: 0 2px 8px #0002;
    font-size: 12px;
    text-align: center;
    pointer-events: none;
}
.homepage-demographics__legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #687985;
    font-size: 11px;
}
.homepage-demographics__scale {
    width: 110px;
    height: 7px;
    background: linear-gradient(to right, #e6f1f8, #07519c);
}
.homepage-demographics__countries {
    min-width: 0;
    padding: 24px 20px;
    border-inline-start: 1px solid #e5e9ed;
}
.homepage-demographics__countries h3 {
    margin: 0 0 18px;
    color: #243746;
    font-size: 16px;
    font-weight: 600;
}
.homepage-demographics__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 12px;
}
.homepage-demographics__table th,
.homepage-demographics__table td {
    padding: 10px 4px;
    border-bottom: 1px solid #eaf0f3;
    text-align: end;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}
.homepage-demographics__table th:first-child {
    padding-inline-start: 0;
    text-align: start;
    overflow-wrap: anywhere;
}
.homepage-demographics__table thead th {
    padding-top: 0;
    color: #647582;
    font-size: 10px;
    font-weight: 400;
}
.homepage-demographics__table tbody th { font-weight: 500; }
.homepage-demographics__table tbody tr.is-active { background: #edf5fa; }
.homepage-demographics__more {
    margin-top: 15px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #07519c;
    font-size: 12px;
    text-decoration: underline;
}
.homepage-demographics__more:focus-visible { outline: 2px solid #07519c; outline-offset: 3px; }
.homepage-demographics__empty { padding: 22px 0; color: #687985; text-align: center; }
.homepage-demographics__empty .fa { margin-bottom: 10px; color: #a5b5c0; font-size: 35px; }
.homepage-demographics__empty p { margin: 0 0 8px; color: #3d5363; font-size: 14px; }
.homepage-demographics__empty span { display: block; font-size: 12px; line-height: 1.7; }
.homepage-demographics__note {
    margin: 0;
    padding: 14px 26px;
    border-top: 1px solid #e5e9ed;
    background: #fafbfc;
    color: #6d7e89;
    font-size: 11px;
    line-height: 1.6;
}
.homepage-demographics [hidden] { display: none !important; }
@media (max-width: 1000px) {
    .homepage-demographics__body { grid-template-columns: minmax(0, 1fr); }
    .homepage-demographics__countries { border-inline-start: 0; border-top: 1px solid #e5e9ed; }
    .homepage-demographics__table { font-size: 14px; }
    .homepage-demographics__table thead th { font-size: 12px; }
}
@media (max-width: 480px) {
    .homepage-demographics__header { padding: 20px 16px 16px; gap: 10px; }
    .homepage-demographics__header h2 { font-size: 21px; }
    .homepage-demographics__header p { font-size: 12px; }
    .homepage-demographics__badges { justify-content: flex-start; }
    .homepage-demographics__geography, .homepage-demographics__countries { padding: 20px 16px; }
    .homepage-demographics__note { padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .homepage-demographics__map [data-country] { transition: none; }
}
