/**
 * Journal EN/GR language toggle.
 * Loaded only on Journal article singles that have Greek meta.
 * Brown remains the primary typeface; Greek glyphs fall back through
 * the existing site stack (Jost, then system sans) because the licensed
 * Brown cut is Latin-only.
 */
.a-head .me-jlt-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.me-jlt {
	display: inline-flex;
	align-items: stretch;
	flex: none;
	margin-left: auto;
	border: 1px solid var(--line, #d9d2c6);
	border-radius: 40px;
	overflow: hidden;
	background: rgba(255, 255, 255, .6);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.me-jlt[hidden] {
	display: none !important;
}

.me-jlt__btn {
	min-width: 46px;
	height: 36px;
	padding: 0 14px;
	font-family: var(--mono, "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted, #6b7680);
	line-height: 1;
	transition: background .2s ease, color .2s ease;
}

.me-jlt__btn + .me-jlt__btn {
	border-left: 1px solid var(--line, #d9d2c6);
}

.me-jlt__btn:hover {
	color: var(--ink, #1f2a33);
}

.me-jlt__btn[aria-pressed="true"] {
	background: var(--blue, #004f95);
	color: #fff;
}

.me-jlt__btn:focus-visible {
	outline: 2px solid var(--aegean, #0095d9);
	outline-offset: -2px;
	z-index: 1;
}

/* Default (English): hide the Greek copies. */
.a-head [data-me-lang="el"],
.route [data-me-lang="el"],
.mini [data-me-lang="el"],
.a-body > .prose[data-me-lang="el"] {
	display: none !important;
}

/* Greek mode: hide English copies and reveal Greek. */
html[data-me-lang="el"] .a-head [data-me-lang="en"],
html[data-me-lang="el"] .route [data-me-lang="en"],
html[data-me-lang="el"] .mini [data-me-lang="en"],
html[data-me-lang="el"] .a-body > .prose[data-me-lang="en"] {
	display: none !important;
}

html[data-me-lang="el"] .a-head [data-me-lang="el"],
html[data-me-lang="el"] .route [data-me-lang="el"],
html[data-me-lang="el"] .mini [data-me-lang="el"],
html[data-me-lang="el"] .a-body > .prose[data-me-lang="el"] {
	display: revert !important;
}

.a-body > .prose[data-me-lang][hidden] {
	display: none !important;
}

@media (max-width: 767px) {
	.me-jlt__btn {
		min-width: 48px;
		height: 40px;
	}
}

/*
 * The licensed Brown cut is Latin, but its cmap still includes a handful
 * of Greek / maths glyphs: π U+03C0, μ U+03BC, Δ U+0394, Σ U+03A3, Ω U+03A9
 * (and ; ΅ ·). Those would render in Brown while every other Greek letter
 * falls back, which is what made π look distorted in the Greek article.
 * This alias covers everything except the Greek blocks (U+0370-03FF,
 * U+1F00-1FFF), so digits and Latin stay in Brown and all Greek —
 * including π — uses the fallback. Applied only to [lang="el"], so the
 * English article is unchanged.
 */
@font-face {
	font-family: "LL Brown Latin";
	font-weight: 300;
	font-style: normal;
	font-display: swap;
	src: url("/wp-content/uploads/fonts/brown/BrownLLWeb-Light.woff2") format("woff2");
	unicode-range: U+0000-036F, U+0400-1EFF, U+2000-10FFFF;
}
@font-face {
	font-family: "LL Brown Latin";
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url("/wp-content/uploads/fonts/brown/BrownLLWeb-Regular.woff2") format("woff2");
	unicode-range: U+0000-036F, U+0400-1EFF, U+2000-10FFFF;
}

[lang="el"] {
	font-family: "LL Brown Latin", "Jost", ui-sans-serif, system-ui, sans-serif;
}

/*
 * Meta line: keep the EN reading-time marker (a 1px shaft with a 5px
 * Aegean dot) from being squashed when the Greek date/label is longer.
 * Also keep the byline row from wrapping the date onto a second line
 * in a way that shifts the marker.
 */
.a-meta .rt {
	flex: none;
	align-items: center;
}
.a-meta .rt i {
	flex: 0 0 20px;
	width: 20px;
	min-width: 20px;
	height: 1px;
	overflow: visible;
	align-self: center;
}
.a-meta .rt i::after {
	width: 5px;
	height: 5px;
	border-radius: 50%;
}
.a-meta .by small {
	white-space: nowrap;
}
