/* =============================================================
   ARC AI Summaries / Publications Cards
   ============================================================= */

.arc-ai-summaries {
	font-family: inherit;
}

.arc-ais-container {
	max-width: var(--arc-container, 1200px);
	margin-inline: auto;
	box-sizing: border-box;
}

/* ── Section header ──────────────────────────────────────────── */
.arc-ais-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.arc-ais-header.align-center {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.arc-ais-header.align-right {
	flex-direction: row-reverse;
}

.arc-ais-header-text { flex: 1; min-width: 0; }

.arc-ais-header.align-center .arc-ais-header-text { flex: none; }

.arc-ais-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--arc-ais-accent, #79ba3a);
	margin-bottom: 12px;
}

.arc-ais-label::before {
	content: '';
	display: block;
	width: 28px;
	height: 1.5px;
	background: currentColor;
	flex-shrink: 0;
}

.arc-ais-header.align-center .arc-ais-label::before,
.arc-ais-header.align-center .arc-ais-label::after {
	content: '';
	display: block;
	width: 24px;
	height: 1.5px;
	background: currentColor;
	flex-shrink: 0;
}

.arc-ais-heading {
	font-size: clamp(26px, 3vw, 42px);
	font-weight: 800;
	color: var(--arc-ais-heading-color, #0a3d47);
	margin: 0 0 10px;
	line-height: 1.12;
	letter-spacing: -.022em;
}

.arc-ais-heading em {
	color: var(--arc-ais-accent, #79ba3a);
	font-style: italic;
}

.arc-ais-subheading {
	font-size: 15px;
	line-height: 1.65;
	color: rgba(10,61,71,.58);
	margin: 0;
	max-width: 520px;
}

.arc-ais-header.align-center .arc-ais-subheading {
	margin-inline: auto;
	text-align: center;
}

/* ── View-all link ───────────────────────────────────────────── */
.arc-ais-view-all {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 22px;
	border-radius: 50px;
	border: 2px solid rgba(10,61,71,.18);
	background: transparent;
	color: #0a3d47;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s, border-color .2s, color .2s, gap .2s;
	flex-shrink: 0;
}

.arc-ais-view-all:hover {
	background: #0a3d47;
	border-color: #0a3d47;
	color: #fff;
	gap: 11px;
}

.arc-ais-view-all svg {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	transition: transform .2s;
}

.arc-ais-view-all:hover svg { transform: translateX(2px); }

.arc-ais-header.align-center .arc-ais-view-all { margin-top: 8px; }

/* ── Grid ────────────────────────────────────────────────────── */
.arc-ais-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* ── Card ────────────────────────────────────────────────────── */
.arc-ais-card {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 14px rgba(0,0,0,.07);
	border: 1px solid rgba(10,61,71,.07);
	display: flex;
	flex-direction: column;
	transition:
		transform .28s cubic-bezier(.34,1.2,.64,1),
		box-shadow .28s ease,
		border-color .28s ease;
}

.arc-ais-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 40px rgba(0,0,0,.11);
	border-color: rgba(10,61,71,.12);
}

/* ── Card thumbnail / illustration area ──────────────────────── */
.arc-ais-thumb {
	position: relative;
	height: 190px;
	background: #0b2d22;
	overflow: hidden;
	flex-shrink: 0;
}

.arc-ais-thumb-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* ── Category tag ────────────────────────────────────────────── */
.arc-ais-category {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: rgba(255,255,255,.88);
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.2);
	padding: 4px 10px;
	border-radius: 4px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	line-height: 1.5;
	white-space: nowrap;
	max-width: calc(100% - 28px);
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Card body ───────────────────────────────────────────────── */
.arc-ais-body {
	padding: 22px 22px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

/* ── Title ───────────────────────────────────────────────────── */
.arc-ais-title {
	font-size: 15.5px;
	font-weight: 700;
	color: var(--arc-ais-title-color, #0a3d47);
	line-height: 1.45;
	margin: 0 0 16px;
	flex: 1;
	letter-spacing: -.012em;
}

.arc-ais-title a {
	color: inherit;
	text-decoration: none;
	transition: color .18s;
}

.arc-ais-title a:hover { color: var(--arc-ais-accent, #79ba3a); }

/* ── Journal meta ────────────────────────────────────────────── */
.arc-ais-journal {
	font-size: 11px;
	font-weight: 700;
	color: #0a3d47;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 0 0 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.arc-ais-volume {
	font-size: 11px;
	color: rgba(10,61,71,.48);
	margin: 0 0 16px;
	line-height: 1.5;
}

/* ── Divider ─────────────────────────────────────────────────── */
.arc-ais-divider {
	border: none;
	border-top: 1.5px dashed rgba(10,61,71,.14);
	margin: 0 0 14px;
}

/* ── Footer row ──────────────────────────────────────────────── */
.arc-ais-footer {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: nowrap;
	overflow: hidden;
	min-width: 0;
}

/* OA badge */
.arc-ais-oa {
	display: inline-flex;
	align-items: center;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .08em;
	background: #79ba3a;
	color: #fff;
	padding: 2px 7px;
	border-radius: 3px;
	text-transform: uppercase;
	flex-shrink: 0;
	line-height: 1.6;
}

.arc-ais-sep {
	color: rgba(10,61,71,.22);
	font-size: 11px;
	flex-shrink: 0;
}

.arc-ais-cites {
	font-size: 11px;
	color: rgba(10,61,71,.55);
	white-space: nowrap;
	flex-shrink: 0;
}

.arc-ais-country {
	font-size: 11px;
	color: rgba(10,61,71,.55);
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	overflow: hidden;
}

.arc-ais-country-name {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Read link */
.arc-ais-read {
	margin-left: auto;
	font-size: 11.5px;
	font-weight: 600;
	color: #0a3d47;
	text-decoration: none;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
	transition: color .18s, gap .18s;
}

.arc-ais-read:hover {
	color: var(--arc-ais-accent, #79ba3a);
	gap: 7px;
}

.arc-ais-read svg {
	width: 11px;
	height: 11px;
	flex-shrink: 0;
}

/* ── Loading skeleton ────────────────────────────────────────── */
.arc-ais-skeleton {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(10,61,71,.07);
	box-shadow: 0 2px 14px rgba(0,0,0,.05);
}

.arc-ais-skel-thumb {
	height: 190px;
	background: linear-gradient(90deg, #e8f0e4 25%, #d8eac7 50%, #e8f0e4 75%);
	background-size: 200% 100%;
	animation: arc-ais-shimmer 1.6s infinite linear;
}

.arc-ais-skel-body { padding: 22px; }

.arc-ais-skel-line {
	height: 12px;
	border-radius: 6px;
	background: linear-gradient(90deg, #e8f0e4 25%, #d8eac7 50%, #e8f0e4 75%);
	background-size: 200% 100%;
	animation: arc-ais-shimmer 1.6s infinite linear;
	margin-bottom: 10px;
}

.arc-ais-skel-line.is-short { width: 60%; }
.arc-ais-skel-line.is-xshort { width: 40%; }

@keyframes arc-ais-shimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* ── API notice ──────────────────────────────────────────────── */
.arc-ais-notice {
	padding: 16px 20px;
	border-radius: 8px;
	border: 1px solid rgba(10,61,71,.14);
	font-size: 13px;
	color: rgba(10,61,71,.65);
	background: rgba(10,61,71,.03);
	grid-column: 1 / -1;
}

.arc-ais-notice strong { color: #0a3d47; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.arc-ais-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.arc-ais-grid { grid-template-columns: 1fr; gap: 16px; }
	.arc-ais-header { flex-direction: column; align-items: flex-start; gap: 16px; }
	.arc-ais-header.align-right { flex-direction: column; }
	.arc-ais-heading { font-size: clamp(22px, 7vw, 34px); }
	.arc-ais-thumb { height: 160px; }
}
