/**
 * Novin Opportunities — public styles.
 *
 * Every rule is scoped under .nvo-wrap, so the plugin can never restyle the
 * theme's header, footer, or an Elementor section. Tokens are CSS variables with
 * theme-aware fallbacks: a site that defines --wp--preset--color--primary gets
 * its own accent without this file changing.
 *
 * No external font, no icon library, no framework. Persian text uses whatever
 * the theme already loads, which is the only way these pages look like the rest
 * of the site.
 */

.nvo-wrap {
	/* ---- tokens ---- */
	--nvo-accent: var(--wp--preset--color--primary, #1d4ed8);
	--nvo-text: var(--wp--preset--color--foreground, #1f2937);
	--nvo-muted: #6b7280;
	--nvo-border: #e5e7eb;
	--nvo-surface: #ffffff;
	--nvo-surface-alt: #f9fafb;

	--nvo-success: #047857;
	--nvo-warning: #b45309;
	--nvo-danger: #b91c1c;

	--nvo-accent-soft: color-mix(in srgb, var(--nvo-accent) 8%, transparent);
	--nvo-accent-line: color-mix(in srgb, var(--nvo-accent) 28%, transparent);

	--nvo-radius: 14px;
	--nvo-radius-sm: 9px;
	--nvo-gap: 18px;
	--nvo-gap-lg: 32px;

	/* Two layers: a hairline that defines the edge, and a soft lift under it. */
	--nvo-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .03);
	--nvo-shadow-lift: 0 4px 16px rgba(16, 24, 40, .07), 0 2px 4px rgba(16, 24, 40, .04);

	max-width: 1120px;
	margin: 0 auto;
	padding: 8px 0 48px;

	direction: rtl;
	text-align: right;
	color: var(--nvo-text);
	line-height: 1.9;
}

/* A dark theme flips the surfaces without needing a second stylesheet. */
@media (prefers-color-scheme: dark) {
	.nvo-wrap {
		--nvo-border: #374151;
		--nvo-surface: #111827;
		--nvo-surface-alt: #1f2937;
		--nvo-muted: #9ca3af;
	}
}

.nvo-wrap *,
.nvo-wrap *::before,
.nvo-wrap *::after {
	box-sizing: border-box;
}

/* Focus is never removed, only made consistent. */
.nvo-wrap a:focus-visible,
.nvo-wrap button:focus-visible,
.nvo-wrap input:focus-visible,
.nvo-wrap select:focus-visible,
.nvo-wrap summary:focus-visible {
	outline: 2px solid var(--nvo-accent);
	outline-offset: 2px;
	border-radius: var(--nvo-radius-sm);
}

/* ------------------------------------------------------------- layout */

.nvo-archive__head {
	margin-bottom: var(--nvo-gap-lg);
}

.nvo-archive__title,
.nvo-hub__title {
	margin: 0 0 6px;
	font-size: 1.6rem;
	font-weight: 700;
}

.nvo-archive__lead,
.nvo-hub__lead {
	margin: 0;
	color: var(--nvo-muted);
}

.nvo-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--nvo-gap-lg);
}

@media (min-width: 900px) {
	.nvo-layout--sidebar {
		grid-template-columns: minmax(0, 1fr) 320px;
		align-items: start;
	}
}

/* -------------------------------------------------------------- cards */

.nvo-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--nvo-gap);
}

@media (min-width: 620px) {
	.nvo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.nvo-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.nvo-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	background: var(--nvo-surface);
	border: 1px solid var(--nvo-border);
	border-radius: var(--nvo-radius);
	box-shadow: var(--nvo-shadow);
	transition: border-color .15s ease;
}

.nvo-card:hover,
.nvo-card:focus-within {
	border-color: var(--nvo-accent);
}

.nvo-card__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.7;
}

.nvo-card__title a {
	color: inherit;
	text-decoration: none;
}

.nvo-card__title a:hover {
	text-decoration: underline;
}

.nvo-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: .86rem;
	color: var(--nvo-muted);
}

.nvo-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--nvo-border);
	font-size: .85rem;
}

/* ------------------------------------------------------------ badges */

.nvo-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 600;
	line-height: 1.9;
	white-space: nowrap;
}

.nvo-badge--active {
	color: var(--nvo-success);
	background: rgba(4, 120, 87, .1);
}

.nvo-badge--soon {
	color: var(--nvo-warning);
	background: rgba(180, 83, 9, .1);
}

.nvo-badge--expired {
	color: var(--nvo-danger);
	background: rgba(185, 28, 28, .1);
}

.nvo-badge--neutral {
	color: var(--nvo-muted);
	background: var(--nvo-surface-alt);
}

/* ----------------------------------------------------------- filters */

.nvo-filters {
	padding: 16px;
	margin-bottom: var(--nvo-gap);
	background: var(--nvo-surface-alt);
	border: 1px solid var(--nvo-border);
	border-radius: var(--nvo-radius);
}

.nvo-filters__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

@media (min-width: 720px) {
	.nvo-filters__row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.nvo-filters label {
	display: block;
	margin-bottom: 4px;
	font-size: .82rem;
	font-weight: 600;
	color: var(--nvo-muted);
}

.nvo-filters input[type="search"],
.nvo-filters input[type="text"],
.nvo-filters select {
	width: 100%;
	padding: 9px 12px;
	font: inherit;
	color: inherit;
	background: var(--nvo-surface);
	border: 1px solid var(--nvo-border);
	border-radius: var(--nvo-radius-sm);
}

.nvo-filters__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.nvo-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: var(--nvo-gap);
}

.nvo-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	font-size: .82rem;
	text-decoration: none;
	color: var(--nvo-text);
	background: var(--nvo-surface-alt);
	border: 1px solid var(--nvo-border);
	border-radius: 999px;
}

.nvo-chip__remove {
	font-weight: 700;
	color: var(--nvo-muted);
}

/* On small screens the filter block collapses into a disclosure. */
.nvo-filters__toggle {
	display: none;
}

@media (max-width: 719px) {
	.nvo-filters__toggle {
		display: block;
		width: 100%;
		padding: 10px 14px;
		margin-bottom: 10px;
		font: inherit;
		font-weight: 600;
		text-align: right;
		cursor: pointer;
		background: var(--nvo-surface);
		border: 1px solid var(--nvo-border);
		border-radius: var(--nvo-radius-sm);
	}

	.nvo-filters[hidden] {
		display: none;
	}
}

/* -------------------------------------------------------------- forms */

.nvo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 18px;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: var(--nvo-radius-sm);
	transition: opacity .15s ease;
}

.nvo-btn--primary {
	color: #fff;
	background: var(--nvo-accent);
}

.nvo-btn--primary:hover {
	opacity: .9;
}

.nvo-btn--ghost {
	color: var(--nvo-text);
	background: transparent;
	border-color: var(--nvo-border);
}

.nvo-btn--block {
	width: 100%;
}

.nvo-btn[aria-disabled="true"] {
	pointer-events: none;
	opacity: .55;
}

/* ------------------------------------------------------------ single */

.nvo-breadcrumb {
	margin-bottom: 14px;
	font-size: .85rem;
	color: var(--nvo-muted);
}

.nvo-breadcrumb a {
	color: inherit;
}

.nvo-single__title {
	margin: 0 0 10px;
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1.6;
}

.nvo-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-bottom: 16px;
	font-size: .9rem;
	color: var(--nvo-muted);
}

.nvo-notice {
	padding: 14px 16px;
	margin-bottom: var(--nvo-gap);
	border: 1px solid var(--nvo-border);
	border-right-width: 4px;
	border-radius: var(--nvo-radius-sm);
	background: var(--nvo-surface-alt);
}

.nvo-notice--expired {
	border-right-color: var(--nvo-danger);
}

.nvo-notice--warning {
	border-right-color: var(--nvo-warning);
}

.nvo-section {
	margin-bottom: var(--nvo-gap-lg);
}

.nvo-section__title {
	margin: 0 0 10px;
	font-size: 1.15rem;
	font-weight: 700;
}

.nvo-section p {
	margin: 0 0 10px;
}

.nvo-section ul {
	margin: 0;
	padding-right: 20px;
}

.nvo-section li {
	margin-bottom: 6px;
}

.nvo-facts {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1px;
	overflow: hidden;
	background: var(--nvo-border);
	border: 1px solid var(--nvo-border);
	border-radius: var(--nvo-radius);
}

@media (min-width: 620px) {
	.nvo-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.nvo-fact {
	padding: 12px 14px;
	background: var(--nvo-surface);
}

.nvo-fact__label {
	display: block;
	margin-bottom: 2px;
	font-size: .78rem;
	color: var(--nvo-muted);
}

.nvo-fact__value {
	font-weight: 600;
}

/* --------------------------------------------------------- sidebar */

.nvo-sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--nvo-gap);
}

@media (min-width: 900px) {
	.nvo-sidebar {
		position: sticky;
		top: 24px;
	}
}

.nvo-panel {
	padding: 18px;
	background: var(--nvo-surface);
	border: 1px solid var(--nvo-border);
	border-radius: var(--nvo-radius);
	box-shadow: var(--nvo-shadow);
}

.nvo-panel__title {
	margin: 0 0 12px;
	font-size: 1rem;
	font-weight: 700;
}

.nvo-panel dl {
	margin: 0;
}

.nvo-panel dt {
	font-size: .8rem;
	color: var(--nvo-muted);
}

.nvo-panel dd {
	margin: 0 0 10px;
	font-weight: 600;
}

/*
 * The mobile action bar is sticky rather than fixed: it scrolls with the page
 * and settles at the bottom of the viewport, so it never covers content or
 * fights the theme's own bottom chrome.
 */
.nvo-actionbar {
	display: none;
}

@media (max-width: 899px) {
	.nvo-actionbar {
		position: sticky;
		bottom: 0;
		z-index: 5;
		display: block;
		padding: 10px 0;
		margin-top: var(--nvo-gap);
		background: var(--nvo-surface);
		border-top: 1px solid var(--nvo-border);
	}
}

/* ------------------------------------------------------------- misc */

.nvo-empty {
	padding: 40px 20px;
	text-align: center;
	color: var(--nvo-muted);
	background: var(--nvo-surface-alt);
	border: 1px dashed var(--nvo-border);
	border-radius: var(--nvo-radius);
}

.nvo-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-top: var(--nvo-gap-lg);
}

.nvo-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	text-decoration: none;
	color: var(--nvo-text);
	border: 1px solid var(--nvo-border);
	border-radius: var(--nvo-radius-sm);
}

.nvo-pagination .page-numbers.current {
	color: #fff;
	background: var(--nvo-accent);
	border-color: var(--nvo-accent);
}

.nvo-hub__stats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nvo-gap);
	margin-bottom: var(--nvo-gap-lg);
}

.nvo-hub__stat {
	flex: 1 1 160px;
	padding: 14px 16px;
	background: var(--nvo-surface-alt);
	border: 1px solid var(--nvo-border);
	border-radius: var(--nvo-radius);
}

.nvo-hub__stat b {
	display: block;
	font-size: 1.4rem;
}

.nvo-institution__logo {
	max-width: 96px;
	height: auto;
	margin-bottom: 10px;
}

.nvo-screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
 * UI upgrade (v1.2.2)
 *
 * Everything below refines the two public pages: the archive and the single
 * opportunity. It adds no markup requirement beyond what the templates already
 * emit, needs no image, and stays scoped under .nvo-wrap like the rest of the
 * file. Where a rule replaces an earlier one it is written to win on
 * specificity rather than by deleting the original, so a theme that already
 * overrides the old selector keeps working.
 * ====================================================================== */

/* ------------------------------------------------------ archive header */

.nvo-archive__head {
	padding-bottom: var(--nvo-gap);
	margin-bottom: var(--nvo-gap);
	border-bottom: 1px solid var(--nvo-border);
}

.nvo-archive__flag {
	display: block;
	margin-bottom: 6px;
	font-size: 2.2rem;
	line-height: 1;
}

.nvo-wrap .nvo-archive__title {
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
	line-height: 1.5;
	letter-spacing: -.01em;
}

.nvo-wrap .nvo-archive__lead {
	max-width: 62ch;
	font-size: .98rem;
}

/* ------------------------------------------------------- result count */

.nvo-results {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 var(--nvo-gap);
}

.nvo-results__count {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin: 0;
	font-size: .95rem;
	color: var(--nvo-muted);
}

.nvo-results__count strong {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--nvo-text);
}

/* -------------------------------------------------------------- cards */

.nvo-wrap .nvo-card {
	gap: 12px;
	padding: 20px;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nvo-wrap .nvo-card:hover,
.nvo-wrap .nvo-card:focus-within {
	border-color: var(--nvo-accent-line);
	box-shadow: var(--nvo-shadow-lift);
	transform: translateY(-2px);
}

/* An expired card stays readable but stops competing for attention. */
.nvo-card--expired {
	opacity: .72;
}

.nvo-card--expired:hover {
	opacity: 1;
}

.nvo-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.nvo-tag {
	display: inline-flex;
	align-items: center;
	padding: 3px 11px;
	font-size: .78rem;
	font-weight: 600;
	color: var(--nvo-accent);
	background: var(--nvo-accent-soft);
	border-radius: 999px;
	white-space: nowrap;
}

.nvo-wrap .nvo-card__title {
	font-size: 1.08rem;
	line-height: 1.75;
	letter-spacing: -.005em;
}

/*
 * The whole card is clickable through the title's stretched link, which keeps
 * one link per card for a screen reader while giving a pointer the full target.
 */
.nvo-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.nvo-wrap .nvo-card {
	position: relative;
}

.nvo-card__org {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin: 0;
	font-size: .88rem;
	color: var(--nvo-muted);
}

.nvo-card__country {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var(--nvo-text);
}

.nvo-card__provider {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nvo-flag {
	font-size: 1.05em;
	line-height: 1;
	/* Emoji fonts only; a text fallback would render two grey letters. */
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.nvo-card__summary {
	margin: 0;
	font-size: .92rem;
	line-height: 1.95;
	color: var(--nvo-muted);
}

.nvo-card__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nvo-card__facts li {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	padding: 4px 10px;
	font-size: .8rem;
	background: var(--nvo-surface-alt);
	border-radius: var(--nvo-radius-sm);
}

.nvo-card__facts span {
	color: var(--nvo-muted);
}

.nvo-card__facts strong {
	font-weight: 600;
}

.nvo-wrap .nvo-card__footer {
	padding-top: 12px;
	font-size: .86rem;
}

.nvo-card__deadline {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	min-width: 0;
}

.nvo-card__deadline-label {
	color: var(--nvo-muted);
}

.nvo-card__deadline strong {
	font-weight: 600;
}

.nvo-card__link {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	font-weight: 600;
	color: var(--nvo-accent);
	text-decoration: none;
}

.nvo-card__link:hover {
	text-decoration: underline;
}

/* ----------------------------------------------------- filter panel */

.nvo-wrap .nvo-filters {
	padding: 18px;
	background: var(--nvo-surface);
	box-shadow: var(--nvo-shadow);
}

/*
 * Sticky on wide screens only. On a phone the panel is a disclosure that is
 * usually closed, and pinning it there would eat the viewport it just freed.
 */
@media (min-width: 900px) {
	.nvo-wrap .nvo-filters {
		position: sticky;
		top: 16px;
		z-index: 4;
	}
}

.nvo-wrap .nvo-filters__row {
	gap: 12px;
}

@media (min-width: 720px) {
	.nvo-wrap .nvo-filters__row {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	}

	/* The search box earns twice the width of a dropdown. */
	.nvo-wrap .nvo-filters__row > div:first-child {
		grid-column: span 2;
	}
}

.nvo-wrap .nvo-filters label {
	font-size: .8rem;
	letter-spacing: .01em;
}

.nvo-wrap .nvo-filters input[type="search"],
.nvo-wrap .nvo-filters input[type="text"],
.nvo-wrap .nvo-filters select {
	padding: 10px 12px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

/*
 * The soft ring is additive: the outline set globally on :focus-visible stays
 * exactly as it was. Trading a real outline for a box-shadow is the usual way
 * this pattern quietly breaks keyboard users, so it is not done here.
 */
.nvo-wrap .nvo-filters input[type="search"]:focus,
.nvo-wrap .nvo-filters select:focus {
	border-color: var(--nvo-accent);
	box-shadow: 0 0 0 3px var(--nvo-accent-soft);
}

.nvo-wrap .nvo-filters__actions {
	padding-top: 14px;
	margin-top: 14px;
	border-top: 1px solid var(--nvo-border);
}

/* --------------------------------------------------------- chips */

.nvo-wrap .nvo-chip {
	background: var(--nvo-surface);
	transition: border-color .15s ease, color .15s ease;
}

.nvo-wrap .nvo-chip:hover {
	color: var(--nvo-danger);
	border-color: var(--nvo-danger);
}

.nvo-wrap .nvo-chip:hover .nvo-chip__remove {
	color: inherit;
}

/* ---------------------------------------------------- empty state */

.nvo-wrap .nvo-empty {
	padding: 56px 24px;
	background: var(--nvo-surface);
	border-style: solid;
}

.nvo-empty__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 14px;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--nvo-accent);
	background: var(--nvo-accent-soft);
	border-radius: 50%;
}

.nvo-empty__title {
	margin: 0 0 6px;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--nvo-text);
}

.nvo-empty__text {
	max-width: 42ch;
	margin: 0 auto 18px;
}

/* ------------------------------------------------------------ hero */

.nvo-hero {
	position: relative;
	padding: 24px;
	margin-bottom: var(--nvo-gap-lg);
	background: var(--nvo-surface);
	border: 1px solid var(--nvo-border);
	border-radius: var(--nvo-radius);
	box-shadow: var(--nvo-shadow);
}

/* A tinted top edge, which is all the decoration a text-only page needs. */
.nvo-hero::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: var(--nvo-accent);
	border-radius: var(--nvo-radius) var(--nvo-radius) 0 0;
}

.nvo-hero--expired::before {
	background: var(--nvo-danger);
}

.nvo-hero__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.nvo-hero__title {
	margin: 0 0 12px;
	font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2rem);
	font-weight: 700;
	line-height: 1.55;
	letter-spacing: -.01em;
}

.nvo-hero__identity {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	margin: 0;
	font-size: .95rem;
	color: var(--nvo-muted);
}

.nvo-hero__org,
.nvo-hero__country {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.nvo-hero__org a {
	color: var(--nvo-text);
	font-weight: 600;
	text-decoration: none;
}

.nvo-hero__org a:hover {
	text-decoration: underline;
}

.nvo-hero__country {
	font-weight: 600;
	color: var(--nvo-text);
}

.nvo-hero__logo {
	width: 28px;
	height: 28px;
	object-fit: contain;
	border-radius: var(--nvo-radius-sm);
}

.nvo-hero__highlights {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 1px;
	padding: 0;
	margin: 18px 0 0;
	overflow: hidden;
	list-style: none;
	background: var(--nvo-border);
	border: 1px solid var(--nvo-border);
	border-radius: var(--nvo-radius-sm);
}

.nvo-hero__highlights li {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 12px 14px;
	background: var(--nvo-surface-alt);
}

.nvo-hero__highlights span {
	font-size: .78rem;
	color: var(--nvo-muted);
}

.nvo-hero__highlights strong {
	font-size: .98rem;
	font-weight: 700;
}

/* -------------------------------------------------------- breadcrumb */

.nvo-wrap .nvo-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 18px;
	font-size: .82rem;
}

.nvo-wrap .nvo-breadcrumb a {
	text-decoration: none;
	transition: color .15s ease;
}

.nvo-wrap .nvo-breadcrumb a:hover {
	color: var(--nvo-accent);
	text-decoration: underline;
}

.nvo-breadcrumb__current {
	max-width: 34ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--nvo-text);
}

/* ---------------------------------------------------- single sections */

.nvo-wrap .nvo-section {
	padding: 22px;
	margin-bottom: var(--nvo-gap);
	background: var(--nvo-surface);
	border: 1px solid var(--nvo-border);
	border-radius: var(--nvo-radius);
}

.nvo-wrap .nvo-section__title {
	display: flex;
	align-items: center;
	gap: 9px;
	padding-bottom: 12px;
	margin-bottom: 14px;
	font-size: 1.08rem;
	border-bottom: 1px solid var(--nvo-border);
}

/* A short accent rule instead of an icon set. */
.nvo-wrap .nvo-section__title::before {
	content: "";
	flex-shrink: 0;
	width: 3px;
	height: 1.05em;
	background: var(--nvo-accent);
	border-radius: 2px;
}

.nvo-wrap .nvo-section li {
	margin-bottom: 8px;
}

.nvo-wrap .nvo-section p:last-child,
.nvo-wrap .nvo-section ul:last-child {
	margin-bottom: 0;
}

.nvo-lead {
	font-size: 1.02rem;
	font-weight: 500;
	line-height: 2;
}

/* The key-facts table reads as data, so it gets its own quieter surface. */
.nvo-wrap .nvo-facts {
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.nvo-wrap .nvo-facts li {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 12px 14px;
	margin: 0;
	background: var(--nvo-surface);
}

.nvo-wrap .nvo-facts li > span {
	font-size: .78rem;
	color: var(--nvo-muted);
}

.nvo-wrap .nvo-facts li > strong {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

.nvo-fact--iran {
	background: var(--nvo-accent-soft) !important;
}

/* --------------------------------------------------------- source CTA */

.nvo-wrap .nvo-source {
	background: var(--nvo-surface-alt);
}

.nvo-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}

.nvo-reviewed {
	font-size: .88rem;
	color: var(--nvo-muted);
}

.nvo-disclaimer {
	padding: 12px 14px;
	margin: 0;
	font-size: .84rem;
	line-height: 1.95;
	color: var(--nvo-muted);
	background: var(--nvo-surface);
	border-radius: var(--nvo-radius-sm);
}

/* ---------------------------------------------------------- page CTA */

.nvo-cta {
	padding: 26px;
	margin-bottom: var(--nvo-gap);
	text-align: center;
	background: var(--nvo-accent-soft);
	border: 1px solid var(--nvo-accent-line);
	border-radius: var(--nvo-radius);
}

.nvo-cta__title {
	margin: 0 0 8px;
	font-size: 1.15rem;
	font-weight: 700;
}

.nvo-cta__text {
	max-width: 52ch;
	margin: 0 auto 16px;
	color: var(--nvo-muted);
}

.nvo-cta__actions {
	margin: 0;
}

/* ------------------------------------------------------------ expired */

.nvo-expired {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	margin-bottom: var(--nvo-gap);
	background: var(--nvo-surface);
	border: 1px solid var(--nvo-border);
	border-right: 3px solid var(--nvo-danger);
	border-radius: var(--nvo-radius-sm);
}

.nvo-expired strong {
	color: var(--nvo-danger);
}

.nvo-expired span {
	font-size: .9rem;
	color: var(--nvo-muted);
}

/* -------------------------------------------------------- buttons */

.nvo-wrap .nvo-btn {
	border-radius: var(--nvo-radius-sm);
	transition: opacity .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.nvo-wrap .nvo-btn--primary:hover {
	opacity: 1;
	box-shadow: 0 3px 10px var(--nvo-accent-line);
}

.nvo-wrap .nvo-btn--ghost {
	background: var(--nvo-surface);
}

.nvo-wrap .nvo-btn--ghost:hover {
	border-color: var(--nvo-accent);
	color: var(--nvo-accent);
}

/* ------------------------------------------------- block / widget grid */

/*
 * A block dropped into a page builder sits inside somebody else's container, so
 * it drops the archive's own max-width and vertical padding and fills whatever
 * it is given.
 */
.nvo-wrap.nvo-block {
	max-width: none;
	padding: 0;
}

.nvo-block__head {
	margin-bottom: var(--nvo-gap);
}

.nvo-block__title {
	margin: 0 0 6px;
	font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
	font-weight: 700;
	line-height: 1.6;
}

.nvo-block__lead {
	max-width: 62ch;
	margin: 0;
	color: var(--nvo-muted);
}

/*
 * The column count is a variable set inline by the renderer, so the same three
 * rules serve every configuration instead of a class per number.
 */
.nvo-grid--block {
	grid-template-columns: repeat(var(--nvo-cols-mobile, 1), minmax(0, 1fr));
}

@media (min-width: 620px) {
	.nvo-grid--block {
		grid-template-columns: repeat(var(--nvo-cols-tablet, 2), minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.nvo-grid--block {
		grid-template-columns: repeat(var(--nvo-cols, 3), minmax(0, 1fr));
	}
}

.nvo-block__more {
	margin: var(--nvo-gap) 0 0;
	text-align: center;
}

.nvo-empty--compact {
	padding: 32px 20px;
}

/* --------------------------------------------------------- responsive */

@media (max-width: 719px) {
	.nvo-wrap {
		--nvo-gap-lg: 24px;
	}

	.nvo-hero,
	.nvo-wrap .nvo-section {
		padding: 18px 16px;
	}

	.nvo-wrap .nvo-card {
		padding: 16px;
	}

	.nvo-results {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.nvo-links .nvo-btn {
		width: 100%;
	}
}

@media (prefers-color-scheme: dark) {
	.nvo-wrap {
		--nvo-shadow: none;
		--nvo-shadow-lift: 0 4px 16px rgba(0, 0, 0, .4);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nvo-wrap .nvo-card:hover,
	.nvo-wrap .nvo-card:focus-within {
		transform: none;
	}

	.nvo-wrap * {
		transition: none !important;
	}
}
