/* Author Origins — Archives card (v1.6.0). */
.ao-badge, .ao-badge * { box-sizing: border-box; }

.ao-badge {
	--ao-primary: #4b7d92;
	--ao-primary-dark: #315968;
	--ao-primary-soft: #edf5f7;
	--ao-accent: #f7bc4a;
	--ao-ink: #243742;
	--ao-muted: #71808a;
	--ao-border: #d8e4e9;
	--ao-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
	gap: 6px;
	width: auto;
	margin: 10px 0 4px;
	padding: 8px 10px;
	overflow: hidden;
	font-family: var(--ao-font);
	font-size: 0.76em;
	line-height: 1.35;
	color: var(--ao-ink);
	background: #fff;
	border: 1px solid #dfe8ec;
	border-radius: 10px;
	box-shadow: 0 3px 12px rgba(35, 68, 82, 0.05);
}

.ao-badge::before {
	display: none;
}

.ao-badge-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(120px, 1fr));
	align-items: center;
	min-width: 0;
}

.ao-badge-stat {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	padding: 1px 10px;
	border-right: 1px solid var(--ao-border);
}
.ao-badge-stat:first-child { padding-left: 4px; }
.ao-badge-stat:last-child { border-right: 0; }

.ao-badge-icon {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
}
.ao-badge-icon {
	width: 30px;
	height: 30px;
	color: var(--ao-primary);
	background: var(--ao-primary-soft);
	border: 1px solid rgba(75, 125, 146, 0.12);
	border-radius: 9px;
}
.ao-badge-icon svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ao-badge-icon svg { width: 16px; height: 16px; }

.ao-badge-stat-copy {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 1px 5px;
	min-width: 0;
}
.ao-badge-stat-line { display: inline-flex; align-items: baseline; gap: 5px; }
.ao-badge-stat-num {
	font-size: 1.15em;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.035em;
	color: var(--ao-primary-dark);
	font-variant-numeric: tabular-nums;
}
.ao-badge-stat-label { font-size: 0.95em; font-weight: 600; color: var(--ao-muted); }

.ao-badge-flags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
	width: 100%;
	margin-top: 3px;
	padding-left: 1px;
}
.ao-flag {
	display: inline-block;
	width: 20px;
	height: 14px;
	margin-left: -4px;
	overflow: hidden;
	line-height: 1;
	background: #fff;
	border: 2px solid #fff;
	border-radius: 4px;
	box-shadow: 0 0 0 1px rgba(31, 58, 70, 0.16), 0 2px 4px rgba(31, 58, 70, 0.12);
	transition: transform 0.16s ease;
}
.ao-flag:first-child { margin-left: 0; }
.ao-flag:hover { position: relative; z-index: 2; transform: translateY(-2px); }
.ao-flag svg { display: block; width: 100%; height: 100%; }
.ao-flag-fallback {
	width: auto;
	min-width: 22px;
	padding: 0 3px;
	font-size: 8px;
	font-weight: 800;
	line-height: 12px;
	text-align: center;
	color: var(--ao-primary-dark);
}

.ao-badge-map-wrap {
	display: block;
	justify-self: start;
	width: min(100%, 560px);
	overflow: hidden;
	background: #f4f6f8;
	border: 1px solid var(--ao-border);
	border-radius: 8px;
	box-shadow: none;
}
.ao-badge-map {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 560 / 192;
	object-fit: contain;
	background: #f4f6f8;
}
@media (max-width: 920px) {
	.ao-badge { gap: 6px; }
}
@media (max-width: 620px) {
	.ao-badge { padding: 14px 12px 12px 16px; }
	.ao-badge-stats { grid-template-columns: 1fr; }
	.ao-badge-stat { padding: 10px 2px; border-right: 0; border-bottom: 1px solid var(--ao-border); }
	.ao-badge-stat:first-child { padding-top: 2px; }
	.ao-badge-stat:last-child { padding-bottom: 2px; border-bottom: 0; }
	.ao-badge-stat-countries .ao-badge-stat-copy { flex: 1; }
	.ao-badge-flags { width: auto; margin: 0 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.ao-flag { transition: none; }
}

/* Journal-wide Global Author Reach panel (v2.0.0). */
.ao-home, .ao-home * { box-sizing: border-box; }

.ao-home {
	--ao-home-primary: #159bb0;
	--ao-home-primary-dark: #176274;
	--ao-home-accent: #f7bc4a;
	--ao-home-soft: #f2fafb;
	--ao-home-ink: #253942;
	--ao-home-muted: #6f7f86;
	--ao-home-border: #dce7ea;
	position: relative;
	width: 100%;
	margin: 38px 0 10px;
	padding: 24px;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--ao-home-ink);
	background: #fff;
	border: 1px solid var(--ao-home-border);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(32, 70, 82, 0.06);
}

.ao-home-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}
.ao-home-eyebrow {
	margin: 0 0 5px;
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--ao-home-primary);
}
.ao-home h2 {
	margin: 0;
	font-size: clamp(1.25rem, 2.5vw, 1.65rem);
	font-weight: 750;
	line-height: 1.25;
	color: var(--ao-home-ink);
}
.ao-home-subtitle {
	max-width: 680px;
	margin: 7px 0 0;
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--ao-home-muted);
}

.ao-home-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 16px;
	overflow: hidden;
	background: var(--ao-home-soft);
	border: 1px solid var(--ao-home-border);
	border-radius: 10px;
}
.ao-home-stat {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
	padding: 13px 16px;
	border-right: 1px solid var(--ao-home-border);
}
.ao-home-stat:last-child { border-right: 0; }
.ao-home-stat-icon {
	display: grid;
	place-items: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	color: var(--ao-home-primary-dark);
	background: #fff;
	border: 1px solid rgba(21, 155, 176, 0.18);
	border-radius: 9px;
}
.ao-home-stat-icon svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ao-home-stat > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ao-home-stat strong {
	font-size: 1.22rem;
	font-weight: 800;
	line-height: 1.05;
	color: var(--ao-home-primary-dark);
	font-variant-numeric: tabular-nums;
}
.ao-home-stat small { margin-top: 3px; font-size: 0.72rem; font-weight: 650; color: var(--ao-home-muted); }

.ao-home-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(210px, 0.34fr);
	gap: 16px;
	align-items: stretch;
}
.ao-home-content-map-only { grid-template-columns: 1fr; }
.ao-home-map-card {
	position: relative;
	min-width: 0;
	overflow: hidden;
	background: #f6f8f9;
	border: 1px solid var(--ao-home-border);
	border-radius: 10px;
}
.ao-home-map {
	display: block;
	width: 100%;
	height: var(--ao-home-map-height, 340px);
	background: #f6f8f9;
	border: 0;
}
.ao-home-map img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ao-home-legend {
	position: absolute;
	right: 12px;
	bottom: 10px;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 5px 8px;
	font-size: 0.62rem;
	font-weight: 650;
	color: var(--ao-home-muted);
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--ao-home-border);
	border-radius: 7px;
	box-shadow: 0 3px 10px rgba(32, 70, 82, 0.07);
}
.ao-home-legend i {
	display: block;
	width: 76px;
	height: 7px;
	background: linear-gradient(90deg, var(--ao-home-low), var(--ao-home-high));
	border-radius: 999px;
}

.ao-home-ranking {
	min-width: 0;
	padding: 15px;
	background: #fff;
	border: 1px solid var(--ao-home-border);
	border-radius: 10px;
}
.ao-home-ranking h3 {
	margin: 0 0 12px;
	padding-bottom: 9px;
	font-size: 0.83rem;
	font-weight: 800;
	color: var(--ao-home-ink);
	border-bottom: 2px solid var(--ao-home-accent);
}
.ao-home-ranking ol { margin: 0; padding: 0; list-style: none; }
.ao-home-ranking li {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 12px;
}
.ao-home-ranking li:last-child { margin-bottom: 0; }
.ao-home-rank-flag {
	display: grid;
	place-items: center;
	flex: 0 0 26px;
	width: 26px;
	height: 18px;
	overflow: hidden;
	font-size: 0.55rem;
	font-weight: 800;
	color: var(--ao-home-muted);
	background: #fff;
	border: 1px solid rgba(37, 57, 66, 0.14);
	border-radius: 4px;
}
.ao-home-rank-flag svg { display: block; width: 100%; height: 100%; }
.ao-home-rank-copy { flex: 1; min-width: 0; }
.ao-home-rank-copy > span {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 5px;
}
.ao-home-rank-copy strong {
	overflow: hidden;
	font-size: 0.72rem;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--ao-home-ink);
}
.ao-home-rank-copy b { font-size: 0.72rem; color: var(--ao-home-primary-dark); font-variant-numeric: tabular-nums; }
.ao-home-rank-copy > i {
	display: block;
	height: 5px;
	overflow: hidden;
	background: #eaf1f3;
	border-radius: 999px;
}
.ao-home-rank-copy > i > span {
	display: block;
	height: 100%;
	min-width: 3px;
	background: linear-gradient(90deg, var(--ao-home-low), var(--ao-home-high));
	border-radius: inherit;
}
.ao-home-note {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 18px;
	margin-top: 12px;
	font-size: 0.66rem;
	line-height: 1.45;
	color: var(--ao-home-muted);
}

@media (max-width: 820px) {
	.ao-home { padding: 20px; }
	.ao-home-content { grid-template-columns: 1fr; }
	.ao-home-ranking ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
}
@media (max-width: 560px) {
	.ao-home { margin-top: 28px; padding: 16px 13px; border-radius: 9px; }
	.ao-home-stats { grid-template-columns: 1fr; }
	.ao-home-stat { border-right: 0; border-bottom: 1px solid var(--ao-home-border); }
	.ao-home-stat:last-child { border-bottom: 0; }
	.ao-home-map { height: min(var(--ao-home-map-height, 340px), 280px); }
	.ao-home-ranking ol { grid-template-columns: 1fr; }
	.ao-home-legend span { display: none; }
	.ao-home-note { display: block; }
	.ao-home-note span { display: block; margin-top: 4px; }
}
