/* Project Antherra: front-end styles (also used inside the editor). */
:root {
	--ant-blue: #a8dcff;
	--ant-ink: #0f0e13;
	--ant-text: inherit;
	--ant-muted: #55545a;
	--ant-line: #e1e1e1;
	--ant-tint: #e8f3fb;
	--ant-tint-line: #d3e6f3;
	--ant-dark: #0f0e13;
	--ant-serif: 'Newsreader', Georgia, serif;
	--ant-sans: 'Manrope', system-ui, sans-serif;
	--ant-dot: 'Doto', ui-monospace, monospace;
}

.antherra-h2 {
	font-family: var(--ant-serif);
	font-weight: 500;
	font-size: clamp(26px, 2.6vw, 32px);
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0 0 16px;
}
/* The site styles every post heading (colour, spacing) with high priority; keep plugin headings on their own. */
.antherra-h2.antherra-h2.antherra-h2 { margin: 0 0 16px; }
.antherra-timeline .antherra-timeline__body .antherra-timeline__head h3 { margin: 0; }
.antherra-hero h1.antherra-hero__title { color: #fff !important; }

.antherra-label {
	display: block;
	font-family: var(--ant-sans);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ant-muted);
}

.antherra-tag {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-family: var(--ant-sans);
	font-weight: 700;
	font-size: 12px;
	line-height: 1.5;
	letter-spacing: 0.04em;
	text-transform: lowercase;
	vertical-align: middle;
	background: #f0f0f1;
	color: var(--ant-muted);
}
.antherra-tag--verified,
.antherra-tag--contradicted,
.antherra-tag--misattributed { background: var(--ant-blue); color: var(--ant-ink); }
.antherra-tag--updated { background: transparent; border: 1px solid var(--ant-line); color: var(--ant-ink); }

.antherra-button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 8px;
	background: var(--ant-blue);
	color: var(--ant-ink) !important;
	font-family: var(--ant-sans);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none !important;
}

/* Hide the theme's title area when the hero takes over. */
body.antherra-has-hero .hero-section,
body.antherra-has-hero .entry-header,
body.antherra-has-hero .ct-featured-image { display: none; }

/* ---------- Hero ---------- */
.antherra-hero {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	min-height: clamp(420px, 46vw, 680px);
	background: var(--ant-dark);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	margin: 0 0 40px;
}
.antherra-hero--plain { min-height: 0; padding-top: 48px; }
.antherra-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
	max-width: none;
}
.antherra-hero::after {
	content: '';
	position: absolute;
	inset: 40% 0 0 0;
	background: linear-gradient(to bottom, rgba(15, 14, 19, 0), rgba(15, 14, 19, 0.75));
	pointer-events: none;
}
.antherra-hero__marker {
	position: absolute;
	z-index: 1;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border: 2px solid var(--ant-blue);
	border-radius: 50%;
	box-sizing: border-box;
	pointer-events: none;
}
.antherra-hero__coords {
	position: absolute;
	z-index: 1;
	margin: -12px 0 0 44px;
	font-family: var(--ant-dot);
	font-weight: 800;
	font-size: 15px;
	color: var(--ant-blue);
	white-space: nowrap;
	pointer-events: none;
}
.antherra-hero__text {
	position: relative;
	z-index: 2;
	padding: clamp(24px, 4vw, 48px);
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 860px;
}
.antherra-hero__kicker {
	font-family: var(--ant-sans);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}
.antherra-hero h1.antherra-hero__title,
.antherra-hero__title {
	margin: 0;
	font-family: var(--ant-serif);
	font-weight: 500;
	font-size: clamp(38px, 5.2vw, 72px);
	line-height: 1.02;
	letter-spacing: -0.01em;
	color: #fff;
}
.antherra-hero__standfirst {
	margin: 0;
	max-width: 640px;
	font-family: var(--ant-sans);
	font-weight: 500;
	font-size: clamp(17px, 1.6vw, 19px);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.88);
}

/* ---------- Key findings ---------- */
.antherra-findings {
	border: 1px solid var(--ant-tint-line);
	background: var(--ant-tint);
	border-radius: 12px;
	padding: 20px 24px;
	margin: 0 0 32px;
	color: var(--ant-ink);
}
.antherra-findings ul { margin: 10px 0 0; padding-left: 20px; }
.antherra-findings li { margin: 0 0 8px; line-height: 1.5; }
.antherra-findings li:last-child { margin-bottom: 0; }

/* ---------- Exhibit ---------- */
.antherra-exhibit {
	margin: 40px 0;
	padding: clamp(12px, 2vw, 20px);
	border-radius: 16px;
	background: var(--ant-dark);
	color: rgba(255, 255, 255, 0.82);
}
.antherra-exhibit__frame {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	line-height: 0;
	background: #17161d;
}
.antherra-exhibit__img { display: block; width: 100%; height: auto; margin: 0; max-width: none; }
.antherra-box {
	position: absolute;
	border: 2px solid var(--ant-blue);
	border-radius: 6px;
	box-sizing: border-box;
	line-height: 1.4;
}
.antherra-box__label {
	position: absolute;
	left: -2px;
	bottom: calc(100% + 4px);
	padding: 2px 7px;
	border-radius: 4px;
	background: var(--ant-blue);
	color: var(--ant-ink);
	font-family: var(--ant-sans);
	font-weight: 700;
	font-size: 12px;
	white-space: nowrap;
}
.antherra-exhibit__stamp {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 3px 8px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-family: var(--ant-dot);
	font-weight: 800;
	font-size: 13px;
	line-height: 1.4;
}
.antherra-exhibit figcaption {
	margin: 14px 2px 2px;
	font-family: var(--ant-sans);
	font-size: 15px;
	line-height: 1.5;
}
.antherra-exhibit figcaption b { color: #fff; }
.antherra-exhibit figcaption a { color: #fff; text-decoration: underline; }
.antherra-exhibit figcaption .antherra-tag { margin-right: 6px; }

/* ---------- Timeline ---------- */
.antherra-timeline { margin: 48px 0; }
.antherra-timeline ol { list-style: none; margin: 0; padding: 0; }
.antherra-timeline li {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 40px;
	padding: 20px 0;
	border-top: 1px solid var(--ant-line);
	margin: 0;
}
.antherra-timeline li:last-child { border-bottom: 1px solid var(--ant-line); }
.antherra-timeline__when {
	flex: 0 0 170px;
	font-family: var(--ant-dot);
	font-weight: 800;
	font-size: 17px;
	line-height: 1.4;
}
.antherra-timeline__body { flex: 1 1 320px; min-width: 0; }
.antherra-timeline__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.antherra-timeline h3 { margin: 0; font-family: var(--ant-sans); font-size: 18px; font-weight: 700; line-height: 1.35; }
.antherra-timeline p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: var(--ant-muted); }

/* ---------- Steps ---------- */
.antherra-steps {
	margin: 48px 0;
	padding: clamp(20px, 3vw, 32px);
	border-radius: 16px;
	background: #f8f8f8;
	color: var(--ant-ink);
}
.antherra-steps__row {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	counter-reset: antstep;
}
.antherra-step {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px;
	margin: 0;
	background: #fff;
	border: 1px solid var(--ant-line);
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.45;
	counter-increment: antstep;
}
.antherra-step::before {
	content: counter(antstep, decimal-leading-zero);
	font-family: var(--ant-dot);
	font-weight: 800;
	font-size: 14px;
	color: var(--ant-muted);
}
.antherra-step b { font-family: var(--ant-serif); font-weight: 500; font-size: 20px; }
.antherra-step span { color: var(--ant-muted); }
.antherra-step--last { border: 2px solid var(--ant-blue); }
.antherra-steps__note { margin: 16px 0 0; font-size: 15px; color: var(--ant-muted); }

/* ---------- Tip ---------- */
.antherra-tip {
	margin: 48px 0 24px;
	padding: 24px;
	border-radius: 16px;
	background: var(--ant-tint);
	border: 1px solid var(--ant-tint-line);
	color: var(--ant-ink);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
}
.antherra-tip p { margin: 0; flex: 1 1 360px; font-size: 17px; line-height: 1.5; }

/* ---------- Updates ---------- */
.antherra-updates { margin: 48px 0 0; }
.antherra-updates ul { list-style: none; margin: 0; padding: 0; }
.antherra-updates li { display: flex; flex-wrap: wrap; gap: 4px 28px; padding: 14px 0; border-top: 1px solid var(--ant-line); margin: 0; }
.antherra-updates__date { flex: 0 0 120px; font-family: var(--ant-dot); font-weight: 800; color: var(--ant-muted); }
.antherra-updates p { margin: 0; flex: 1 1 320px; }

/* ---------- Desk (front page) ---------- */
.antherra-desk {
	background: var(--ant-tint);
	border: 1px solid var(--ant-tint-line);
	color: var(--ant-ink);
	border-radius: 16px;
	padding: clamp(20px, 3vw, 36px);
	margin: 0 0 48px;
	font-family: var(--ant-sans);
}
.antherra-desk a { color: inherit; text-decoration: none; }
.antherra-desk__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 12px 32px;
	padding-bottom: 18px;
	margin-bottom: 24px;
	border-bottom: 1px solid #cfe1ee;
}
.antherra-desk__head > a { font-weight: 700; font-size: 14px; }
.antherra-desk__head p { margin: 6px 0 0; font-size: 15px; color: #4b5966; }
.antherra-desk__title { display: flex; align-items: center; gap: 12px; }
.antherra-desk__title h2 { margin: 0; font-family: var(--ant-serif); font-weight: 500; font-size: 32px; line-height: 1.1; letter-spacing: -0.01em; }
.antherra-desk__badge { padding: 2px 8px; border-radius: 4px; background: var(--ant-blue); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.antherra-desk__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px 36px; }
.antherra-desk__lead { display: flex; flex-direction: column; gap: 12px; }
.antherra-desk__media { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #17161d; }
.antherra-desk__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.antherra-desk__meta { font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #4b5966; }
.antherra-desk__leadtitle { font-family: var(--ant-serif); font-weight: 500; font-size: clamp(28px, 3vw, 38px); line-height: 1.05; letter-spacing: -0.01em; }
.antherra-desk__stand { font-size: 16px; color: #2e3a45; }
.antherra-desk__date { font-family: var(--ant-dot); font-weight: 800; font-size: 13px; color: #4b5966; }
.antherra-desk__list { display: flex; flex-direction: column; }
.antherra-desk__item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid #cfe1ee; }
.antherra-desk__item:first-child { padding-top: 0; }
.antherra-desk__thumb { flex: 0 0 132px; height: 88px; border-radius: 8px; overflow: hidden; background: #17161d; }
.antherra-desk__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.antherra-desk__itemtext { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.antherra-desk__itemtitle { font-family: var(--ant-serif); font-weight: 500; font-size: 21px; line-height: 1.2; }
.antherra-desk a:hover .antherra-desk__leadtitle,
.antherra-desk a:hover .antherra-desk__itemtitle { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.antherra-desk__empty { margin: 0; color: #4b5966; }

/* ---------- Before / after ---------- */
.antherra-compare { margin: 40px 0; }
.antherra-compare__frame {
	--pos: 50%;
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	background: #17161d;
	line-height: 0;
	user-select: none;
}
.antherra-compare__img { display: block; width: 100%; height: auto; margin: 0; max-width: none; }
.antherra-compare__after {
	position: absolute;
	inset: 0;
	clip-path: inset(0 0 0 var(--pos));
}
.antherra-compare__after .antherra-compare__img { width: 100%; height: 100%; object-fit: cover; }
.antherra-compare__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos);
	width: 2px;
	margin-left: -1px;
	background: var(--ant-blue);
	pointer-events: none;
}
.antherra-compare__handle::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border-radius: 50%;
	background: var(--ant-blue);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.antherra-compare__range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
	-webkit-appearance: none;
	appearance: none;
}
.antherra-compare__label {
	position: absolute;
	top: 12px;
	padding: 3px 8px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-family: var(--ant-dot);
	font-weight: 800;
	font-size: 13px;
	line-height: 1.4;
	pointer-events: none;
}
.antherra-compare__label--before { left: 12px; }
.antherra-compare__label--after { right: 12px; }
.antherra-compare figcaption { margin-top: 10px; font-size: 15px; color: var(--ant-muted); }

/* ---------- Map (dark, as in the mockups) ---------- */
.antherra-map { margin: 40px 0; }
.antherra-map__canvas,
.antherra-map__frame {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	background: #0f0e13;
	z-index: 0;
}
.antherra-map__canvas.leaflet-container { background: #0f0e13; font-family: var(--ant-sans); }
.antherra-map--osm .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(0.78) contrast(1.15); }
.antherra-map__grid {
	position: absolute;
	inset: 0;
	z-index: 450;
	pointer-events: none;
	background-image: linear-gradient(rgba(168, 220, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 220, 255, 0.06) 1px, transparent 1px);
	background-size: 56px 56px;
}
.antherra-map__readout {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 800;
	padding: 4px 9px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.72);
	color: var(--ant-blue);
	font-family: var(--ant-dot);
	font-weight: 800;
	font-size: 14px;
	line-height: 1.4;
	pointer-events: none;
}
.antherra-pin { position: relative; overflow: visible; background: none; border: 0; }
.antherra-pin__ring {
	position: absolute;
	left: -18px;
	top: -18px;
	width: 36px;
	height: 36px;
	border: 2px solid var(--ant-blue);
	border-radius: 50%;
	box-sizing: border-box;
	box-shadow: 0 0 0 4px rgba(168, 220, 255, 0.12);
}
.antherra-pin__ring::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 4px;
	height: 4px;
	margin: -2px 0 0 -2px;
	border-radius: 50%;
	background: var(--ant-blue);
}
.antherra-pin__tag {
	position: absolute;
	left: 22px;
	top: -30px;
	padding: 2px 7px;
	border-radius: 4px;
	background: var(--ant-blue);
	color: var(--ant-ink);
	font-family: var(--ant-sans);
	font-weight: 700;
	font-size: 12px;
	line-height: 1.5;
	white-space: nowrap;
}
.antherra-map__canvas .leaflet-control-attribution { background: rgba(15, 14, 19, 0.75); color: #9c9ba4; }
.antherra-map__canvas .leaflet-control-attribution a { color: #cfced6; text-decoration: none; }
.antherra-map__canvas .leaflet-bar { border: 1px solid #26252d; box-shadow: none; border-radius: 8px; overflow: hidden; }
.antherra-map__canvas .leaflet-bar a { background: #17161d; color: #fff !important; text-decoration: none !important; border-bottom-color: #26252d; }
.antherra-map__canvas .leaflet-bar a:hover { background: #26252d; }
.antherra-map__canvas .leaflet-popup-content-wrapper,
.antherra-map__canvas .leaflet-popup-tip { background: #17161d; color: #fff; border-radius: 8px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5); }
.antherra-map__canvas .leaflet-popup-content { font-size: 14px; line-height: 1.5; }
.antherra-map__canvas .leaflet-popup-content b { color: var(--ant-blue); }
.antherra-map__canvas.leaflet-container a.leaflet-popup-close-button { color: #9c9ba4; }
.antherra-map figcaption { margin-top: 10px; font-size: 15px; color: var(--ant-muted); }
.antherra-map__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 24px; }
.antherra-map__list li { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 15px; line-height: 1.45; }
.antherra-map__num {
	flex: 0 0 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--ant-blue);
	color: var(--ant-ink);
	font-weight: 700;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.antherra-map__coord { font-family: var(--ant-dot); font-weight: 800; font-size: 13px; color: var(--ant-muted); }

/* ---------- Sources ---------- */
.antherra-sources { margin: 48px 0; }
.antherra-sources ol { margin: 0; padding-left: 24px; }
.antherra-sources li { margin: 0 0 14px; padding-left: 4px; line-height: 1.45; }
.antherra-sources__title { display: block; font-weight: 600; }
.antherra-sources__title a { color: inherit; }
.antherra-sources__meta { display: block; font-size: 14px; color: var(--ant-muted); }
.antherra-sources__meta a { color: inherit; text-decoration: underline; }
.antherra-sources__date { font-family: var(--ant-dot); font-weight: 800; }
.antherra-sources__note { display: block; font-size: 14px; color: var(--ant-muted); }

/* ---------- Evidence pack ---------- */
.antherra-pack {
	margin: 32px 0 0;
	padding: 20px 24px;
	border-radius: 12px;
	border: 1px solid var(--ant-line);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
}
.antherra-pack div { display: flex; flex-direction: column; gap: 4px; flex: 1 1 320px; }
.antherra-pack span { font-size: 15px; color: var(--ant-muted); }

