/* ==========================================================================
   Oman School v2 – main stylesheet
   Mobile-first, RTL-first, no framework, no jQuery.
   ========================================================================== */

:root {
	--ef-primary: #2563eb;
	--ef-primary-dark: #1d4ed8;
	--ef-navy: #0f172a;
	--ef-indigo: #1e3a8a;
	--ef-bg: #f8fafc;
	--ef-surface: #ffffff;
	--ef-border: #e2e8f0;
	--ef-border-strong: #cbd5e1;
	--ef-text: #0f172a;
	--ef-muted: #64748b;
	--ef-success: #059669;
	--ef-danger: #dc2626;
	--ef-radius: 16px;
	--ef-radius-sm: 10px;
	--ef-container: 1200px;
	--ef-font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
	--ef-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
	--ef-shadow: 0 16px 40px -24px rgba(15, 23, 42, .28);
	--ef-ring: 0 0 0 3px rgba(37, 99, 235, .22);
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--ef-font);
	font-size: 16px;
	line-height: 1.8;
	color: var(--ef-text);
	background: var(--ef-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Never allow the page to scroll sideways on small screens. `clip` keeps
   position: sticky working, unlike `hidden`. */
html,
body {
	max-width: 100%;
	overflow-x: clip;
}

img,
svg,
video,
canvas,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	display: block;
}

a {
	color: var(--ef-primary);
	text-decoration: none;
	transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

a:hover {
	color: var(--ef-primary-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 .5em;
	font-weight: 800;
	line-height: 1.35;
	color: var(--ef-navy);
	letter-spacing: -.2px;
}

p {
	margin: 0 0 1em;
}

ul,
ol {
	padding-inline-start: 1.3em;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

::selection {
	background: rgba(37, 99, 235, .18);
}

:focus-visible {
	outline: 2px solid var(--ef-primary);
	outline-offset: 2px;
}

.ef-container {
	width: min(100% - 32px, var(--ef-container));
	max-width: 100%;
	margin-inline: auto;
}

.ef-icon {
	display: inline-block;
	vertical-align: middle;
	flex: none;
}

.ef-icon--sm {
	width: 16px;
	height: 16px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.ef-skip-link {
	position: absolute;
	inset-inline-start: 16px;
	top: -100px;
	z-index: 1000;
	background: var(--ef-navy);
	color: #fff;
	padding: 10px 18px;
	border-radius: 8px;
}

.ef-skip-link:focus {
	top: 12px;
	color: #fff;
}

.ef-muted {
	color: var(--ef-muted);
}

.ef-center {
	text-align: center;
}

/* Buttons ------------------------------------------------------------------ */
.ef-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 18px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.ef-btn:hover {
	transform: translateY(-1px);
}

.ef-btn--primary {
	background: var(--ef-primary);
	color: #fff;
	box-shadow: 0 8px 18px -12px rgba(37, 99, 235, .9);
}

.ef-btn--primary:hover {
	background: var(--ef-primary-dark);
	color: #fff;
}

.ef-btn--light {
	background: #fff;
	color: var(--ef-navy);
}

.ef-btn--light:hover {
	background: #eff6ff;
	color: var(--ef-navy);
}

.ef-btn--ghost-light {
	border-color: rgba(255, 255, 255, .4);
	color: #fff;
}

.ef-btn--ghost-light:hover {
	background: rgba(255, 255, 255, .1);
	color: #fff;
}

.ef-btn--sm {
	padding: 8px 13px;
	font-size: 13px;
}

/* Header ------------------------------------------------------------------- */
.ef-topbar {
	background: var(--ef-navy);
	color: #cbd5e1;
	font-size: 12.5px;
}

.ef-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 34px;
}

.ef-topbar p {
	margin: 0;
}

.ef-topbar__links {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ef-topbar__links a {
	color: #e2e8f0;
}

.ef-topbar__links a:hover {
	color: #fff;
}

.ef-topbar__date {
	color: #94a3b8;
}

.ef-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(160%) blur(8px);
	border-bottom: 1px solid var(--ef-border);
	transition: box-shadow .2s ease;
}

.ef-header.is-stuck {
	box-shadow: 0 10px 30px -22px rgba(15, 23, 42, .45);
}

.ef-header__inner {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: 72px;
}

.ef-brand {
	flex: none;
}

.ef-brand__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ef-navy);
}

.ef-brand__link:hover {
	color: var(--ef-navy);
}

.ef-brand__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--ef-indigo), var(--ef-primary));
	color: #fff;
	font-size: 21px;
	font-weight: 800;
	box-shadow: 0 8px 20px -12px rgba(30, 58, 138, .8);
}

.ef-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.ef-brand__text strong {
	font-size: 17px;
	font-weight: 800;
}

.ef-brand__text small {
	color: var(--ef-muted);
	font-size: 10.5px;
	letter-spacing: .3px;
	direction: ltr;
}

.custom-logo {
	max-height: 46px;
	width: auto;
}

.ef-nav {
	margin-inline: auto;
}

.ef-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ef-menu > li {
	position: relative;
}

.ef-menu > li > a {
	display: inline-flex;
	align-items: center;
	padding: 8px 9px;
	border-radius: 8px;
	color: #334155;
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
}

.ef-menu > li > a:hover,
.ef-menu > li.current-menu-item > a,
.ef-menu > li.current-menu-ancestor > a {
	background: #f1f5f9;
	color: var(--ef-primary);
}

.sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	inset-inline-start: 0;
	z-index: 45;
	min-width: 230px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--ef-border);
	border-radius: 12px;
	box-shadow: var(--ef-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.ef-menu li:hover > .sub-menu,
.ef-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.sub-menu a {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	color: #475569;
	font-size: 13px;
	font-weight: 500;
}

.sub-menu a:hover {
	background: #f8fafc;
	color: var(--ef-primary);
}

.ef-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
}

.ef-header__icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	color: #334155;
	background: #f8fafc;
	border: 1px solid var(--ef-border);
}

.ef-header__icon-btn:hover {
	color: var(--ef-primary);
	border-color: #bfdbfe;
}

.ef-menu-toggle {
	display: none;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	background: #f8fafc;
	border: 1px solid var(--ef-border);
	border-radius: 10px;
}

.ef-menu-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--ef-navy);
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}

.ef-menu-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.ef-menu-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.ef-menu-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Hero --------------------------------------------------------------------- */
.ef-hero {
	padding: 52px 0 96px;
	background:
		radial-gradient(ellipse at 12% 8%, rgba(37, 99, 235, .12), transparent 46%),
		radial-gradient(ellipse at 88% 0%, rgba(30, 58, 138, .12), transparent 42%),
		linear-gradient(180deg, #ffffff 0%, #eff6ff 64%, var(--ef-bg) 100%);
	border-bottom: 1px solid var(--ef-border);
}

.ef-hero__inner {
	max-width: 900px;
	text-align: center;
}

.ef-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	padding: 6px 14px;
	border: 1px solid #dbeafe;
	border-radius: 999px;
	background: #fff;
	color: var(--ef-indigo);
	font-size: 13px;
	font-weight: 700;
}

.ef-eyebrow--sm {
	margin-bottom: 8px;
	padding: 3px 10px;
	font-size: 11.5px;
	letter-spacing: .2px;
}

.ef-eyebrow--light {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .2);
	color: #bfdbfe;
}

.ef-eyebrow__flag {
	font-size: 15px;
	line-height: 1;
}

.ef-hero__title {
	max-width: 880px;
	margin: 0 auto 16px;
	font-size: clamp(1.85rem, 4.4vw, 3.1rem);
	line-height: 1.28;
	letter-spacing: -.8px;
	color: var(--ef-navy);
}

.ef-hero__text {
	max-width: 760px;
	margin: 0 auto 26px;
	color: #475569;
	font-size: clamp(.98rem, 1.6vw, 1.12rem);
}

.ef-hero__stats {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 46px;
	flex-wrap: wrap;
}

.ef-stat {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.ef-stat strong {
	color: var(--ef-indigo);
	font-size: 1.55rem;
	font-weight: 800;
	line-height: 1.2;
}

.ef-stat span {
	color: var(--ef-muted);
	font-size: 12.5px;
}

/* Search / filter ---------------------------------------------------------- */
.ef-search-section {
	position: relative;
	z-index: 2;
	margin-top: -56px;
	padding-bottom: 34px;
}

.ef-filter {
	display: grid;
	gap: 10px;
	padding: 14px;
	background: #fff;
	border: 1px solid var(--ef-border);
	border-radius: 20px;
	box-shadow: 0 24px 50px -30px rgba(15, 23, 42, .38);
}

.ef-filter__search {
	position: relative;
}

.ef-filter__search input {
	width: 100%;
	height: 54px;
	padding: 0 48px 0 16px;
	border: 1px solid var(--ef-border);
	border-radius: 12px;
	background: #f8fafc;
	font-size: 15px;
	transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.ef-filter__search input:focus {
	outline: none;
	border-color: #93c5fd;
	background: #fff;
	box-shadow: var(--ef-ring);
}

.ef-filter__search-icon {
	position: absolute;
	top: 50%;
	inset-inline-start: 16px;
	transform: translateY(-50%);
	color: #94a3b8;
	pointer-events: none;
}

.ef-filter__selects {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr auto;
	gap: 10px;
}

.ef-select {
	position: relative;
	display: block;
}

.ef-select.is-hidden {
	display: none;
}

.ef-select select {
	width: 100%;
	height: 48px;
	padding: 0 14px 0 36px;
	border: 1px solid var(--ef-border);
	border-radius: 10px;
	background: #fff;
	color: #334155;
	font-size: 13.5px;
	appearance: none;
	cursor: pointer;
}

.ef-select > .ef-icon {
	position: absolute;
	top: 50%;
	inset-inline-end: 12px;
	transform: translateY(-50%);
	color: #94a3b8;
	pointer-events: none;
	width: 16px;
	height: 16px;
}

.ef-filter__submit {
	height: 48px;
	padding-inline: 24px;
}

.ef-filter__chips {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding: 2px 4px 0;
	font-size: 12px;
	color: var(--ef-muted);
}

.ef-filter__chips a {
	padding: 3px 9px;
	border-radius: 999px;
	background: #f1f5f9;
	color: #475569;
	font-size: 12px;
}

.ef-filter__chips a:hover {
	background: #dbeafe;
	color: var(--ef-indigo);
}

.ef-suggest {
	position: absolute;
	top: calc(100% + 6px);
	inset-inline: 0;
	z-index: 40;
	max-height: 330px;
	overflow: auto;
	padding: 6px;
	background: #fff;
	border: 1px solid var(--ef-border);
	border-radius: 12px;
	box-shadow: var(--ef-shadow);
}

.ef-suggest a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 8px;
	color: #334155;
	font-size: 13.5px;
}

.ef-suggest a:hover,
.ef-suggest a.is-active {
	background: #eff6ff;
	color: var(--ef-indigo);
}

.ef-suggest__icon {
	display: inline-flex;
	color: var(--ef-primary);
}

.ef-suggest__icon .ef-icon {
	width: 16px;
	height: 16px;
}

.ef-suggest__text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ef-results-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin: 28px 0 16px;
}

.ef-results-title {
	margin: 0;
	font-size: clamp(1.35rem, 2.6vw, 1.75rem);
}

.ef-results-count {
	margin: 0;
	color: var(--ef-muted);
	font-size: 13px;
	white-space: nowrap;
}

.ef-results {
	position: relative;
	min-height: 80px;
}

.ef-results.is-loading {
	opacity: .45;
	pointer-events: none;
}

.ef-results.is-loading::after {
	content: "";
	position: absolute;
	top: 26px;
	inset-inline-start: calc(50% - 12px);
	width: 24px;
	height: 24px;
	border: 3px solid #dbeafe;
	border-top-color: var(--ef-primary);
	border-radius: 50%;
	animation: ef-spin .7s linear infinite;
}

@keyframes ef-spin {
	to {
		transform: rotate(360deg);
	}
}

.ef-status {
	min-height: 1px;
	color: var(--ef-muted);
	font-size: 13px;
	text-align: center;
}

.ef-status:not(:empty) {
	padding: 10px 0;
}

.ef-status.is-error {
	color: var(--ef-danger);
}

/* Grids & cards ------------------------------------------------------------ */
.ef-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.ef-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ef-card {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 17px;
	background: #fff;
	border: 1px solid var(--ef-border);
	border-radius: var(--ef-radius);
	box-shadow: var(--ef-shadow-sm);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ef-card:hover {
	transform: translateY(-2px);
	border-color: #bfdbfe;
	box-shadow: 0 18px 34px -26px rgba(15, 23, 42, .38);
}

.ef-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 24px;
}

.ef-card__cat {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	max-width: 72%;
	padding: 3px 8px;
	overflow: hidden;
	border-radius: 999px;
	background: #f1f5f9;
	color: #475569;
	font-size: 11.5px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ef-card__cat:hover {
	background: #dbeafe;
	color: var(--ef-indigo);
}

.ef-card__formats {
	display: flex;
	gap: 4px;
	flex: none;
}

.ef-format {
	display: inline-flex;
	align-items: center;
	padding: 2px 6px;
	border-radius: 4px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: .3px;
	line-height: 1.7;
}

.ef-format--pdf {
	background: #fef2f2;
	color: #b91c1c;
}

.ef-card__title {
	display: block;
	min-height: 0;
	margin: 2px 0 0;
	overflow: visible;
	font-size: 1.09rem;
	line-height: 1.5;
	font-weight: 800;
	letter-spacing: -.2px;
	overflow-wrap: break-word;
	word-break: normal;
}

.ef-card__title a {
	color: var(--ef-navy);
}

.ef-card__title a:hover {
	color: var(--ef-primary);
}

.ef-card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: auto;
	color: #64748b;
	font-size: 11.5px;
}

.ef-card__meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.ef-card__meta .ef-icon {
	width: 14px;
	height: 14px;
}

.ef-card__link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin: 8px -17px -17px;
	padding: 12px 17px;
	border-top: 1px solid var(--ef-border);
	border-radius: 0 0 var(--ef-radius) var(--ef-radius);
	background: #f8fafc;
	color: var(--ef-primary);
	font-size: 13px;
	font-weight: 800;
	transition: background-color .18s ease, color .18s ease;
}

.ef-card__link:hover {
	background: var(--ef-primary);
	color: #fff;
}

.ef-card__link .ef-icon {
	width: 15px;
	height: 15px;
	transition: transform .18s ease;
}

.ef-card__link:hover .ef-icon {
	transform: translateX(-3px);
}

.ef-empty {
	padding: 48px 24px;
	border: 1px dashed var(--ef-border-strong);
	border-radius: var(--ef-radius);
	background: #fff;
	text-align: center;
}

.ef-empty__icon {
	display: block;
	margin-bottom: 10px;
	font-size: 36px;
}

.ef-empty h3 {
	margin-bottom: 6px;
	font-size: 1.15rem;
}

.ef-empty p {
	max-width: 460px;
	margin: 0 auto 16px;
	color: var(--ef-muted);
	font-size: 13.5px;
}

/* Sections ----------------------------------------------------------------- */
.ef-section {
	padding: 50px 0;
}

.ef-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.ef-section__head h2 {
	margin: 0 0 4px;
	font-size: clamp(1.35rem, 2.7vw, 1.8rem);
}

.ef-section__sub {
	margin: 0;
	color: var(--ef-muted);
	font-size: 13px;
}

.ef-link-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex: none;
	color: var(--ef-primary);
	font-size: 13px;
	font-weight: 700;
}

.ef-link-more .ef-icon {
	width: 16px;
	height: 16px;
	transition: transform .18s ease;
}

.ef-link-more:hover .ef-icon {
	transform: translateX(-3px);
}

.ef-cats {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
}

.ef-cat-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--ef-border);
	border-radius: var(--ef-radius);
	box-shadow: var(--ef-shadow-sm);
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ef-cat-card:hover {
	transform: translateY(-3px);
	border-color: #bfdbfe;
	box-shadow: 0 20px 36px -28px rgba(15, 23, 42, .4);
}

.ef-cat-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 4px;
	border-radius: 12px;
	background: #eff6ff;
	font-size: 22px;
}

.ef-cat-card h3 {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
}

.ef-cat-card p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--ef-muted);
	font-size: 11.5px;
	line-height: 1.65;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.ef-cat-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 10px;
	color: var(--ef-primary);
	font-size: 11.5px;
	font-weight: 700;
}

.ef-cat-card__foot .ef-icon {
	width: 15px;
	height: 15px;
	transition: transform .18s ease;
}

.ef-cat-card:hover .ef-cat-card__foot .ef-icon {
	transform: translateX(-3px);
}

.ef-cat-section--alt {
	background: #fff;
	border-block: 1px solid var(--ef-border);
}

.ef-cat-section__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 14px;
}

.ef-cat-section__title-wrap {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.ef-cat-section__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 52px;
	height: 52px;
	border: 1px solid #dbeafe;
	border-radius: 14px;
	background: #eff6ff;
	font-size: 25px;
}

.ef-cat-section__head h2 {
	margin: 0 0 4px;
	font-size: clamp(1.25rem, 2.4vw, 1.55rem);
}

.ef-cat-section__head h2 a {
	color: var(--ef-navy);
}

.ef-cat-section__head h2 a:hover {
	color: var(--ef-primary);
}

.ef-cat-section__desc {
	max-width: 720px;
	margin: 0;
	color: var(--ef-muted);
	font-size: 12.5px;
}

.ef-chips {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
	margin: 0 0 18px;
}

.ef-chips a,
.ef-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border: 1px solid var(--ef-border);
	border-radius: 999px;
	background: #fff;
	color: #475569;
	font-size: 12px;
	font-weight: 600;
}

.ef-chips a span,
.ef-chip .ef-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: #f1f5f9;
	color: #64748b;
	font-size: 10px;
}

.ef-chips a:hover,
.ef-chip:hover {
	border-color: #bfdbfe;
	background: #eff6ff;
	color: var(--ef-indigo);
}

.ef-popular-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	min-width: 0;
}

.ef-popular-item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--ef-border);
	border-radius: 12px;
	transition: border-color .18s ease, transform .18s ease;
}

.ef-popular-item:hover {
	transform: translateX(-2px);
	border-color: #bfdbfe;
}

.ef-popular-item__rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: #eff6ff;
	color: var(--ef-indigo);
	font-size: 12px;
	font-weight: 800;
}

.ef-popular-item__body {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
	flex: 1;
}

.ef-popular-item__title {
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	color: var(--ef-navy);
	font-size: 13px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ef-popular-item__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	min-width: 0;
	color: var(--ef-muted);
	font-size: 10.5px;
}

.ef-popular-item > .ef-icon {
	width: 16px;
	height: 16px;
	flex: none;
	color: var(--ef-primary);
}

/* CTA ---------------------------------------------------------------------- */
.ef-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 36px;
	border-radius: 22px;
	background:
		radial-gradient(ellipse at 90% 0%, rgba(37, 99, 235, .5), transparent 48%),
		linear-gradient(135deg, var(--ef-indigo), var(--ef-navy));
	color: #e2e8f0;
	box-shadow: var(--ef-shadow);
}

.ef-cta h2 {
	margin: 0 0 8px;
	color: #fff;
	font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.ef-cta p {
	max-width: 620px;
	margin: 0;
	color: #cbd5e1;
	font-size: 13.5px;
}

.ef-cta__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	flex: none;
}

/* Breadcrumbs -------------------------------------------------------------- */
.ef-breadcrumbs {
	margin: 18px 0;
	font-size: 12px;
	color: var(--ef-muted);
}

.ef-breadcrumbs ol {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ef-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ef-breadcrumbs li:not(:last-child)::after {
	content: "‹";
	color: #cbd5e1;
}

.ef-breadcrumbs a {
	color: var(--ef-muted);
}

.ef-breadcrumbs a:hover {
	color: var(--ef-primary);
}

.ef-breadcrumbs [aria-current="page"] {
	max-width: 52ch;
	overflow: hidden;
	color: #334155;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Layout & sidebar --------------------------------------------------------- */
.ef-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 32px;
	align-items: start;
	padding: 36px 0 64px;
}

.ef-layout__main {
	min-width: 0;
}

.ef-layout--single {
	padding-top: 0;
}

.ef-sidebar {
	position: sticky;
	top: 88px;
	display: grid;
	gap: 16px;
}

.ef-widget {
	padding: 18px;
	border: 1px solid var(--ef-border);
	border-radius: var(--ef-radius);
	background: #fff;
	box-shadow: var(--ef-shadow-sm);
}

.ef-widget--category {
	background: linear-gradient(180deg, #eff6ff, #fff 60%);
}

.ef-widget__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.ef-widget__emoji {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: #dbeafe;
	font-size: 21px;
}

.ef-widget__eyebrow {
	margin: 0;
	color: var(--ef-muted);
	font-size: 10.5px;
	font-weight: 700;
}

.ef-widget__title {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
}

.ef-widget__title a {
	color: var(--ef-navy);
}

.ef-widget__title--solo {
	margin-bottom: 12px;
	font-size: 14px;
}

.ef-widget-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ef-widget-list li + li {
	border-top: 1px solid #f1f5f9;
}

.ef-widget-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 2px;
	color: #475569;
	font-size: 12.5px;
	font-weight: 600;
}

.ef-widget-list a:hover,
.ef-widget-list a.is-active {
	color: var(--ef-primary);
}

.ef-widget-list .ef-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: #f1f5f9;
	color: var(--ef-muted);
	font-size: 10px;
}

.ef-widget__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 10px;
	color: var(--ef-primary);
	font-size: 11.5px;
	font-weight: 700;
}

.ef-widget__more .ef-icon {
	width: 14px;
	height: 14px;
}

.ef-widget-posts__meta {
	display: block;
	margin-top: 1px;
	color: #94a3b8;
	font-size: 10.5px;
}

.ef-widget-popular {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ef-widget-popular li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
}

.ef-widget-popular__rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: #eff6ff;
	color: var(--ef-indigo);
	font-size: 10px;
	font-weight: 800;
}

.ef-widget-popular a {
	display: block;
	color: #334155;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.5;
}

.ef-widget-popular a:hover {
	color: var(--ef-primary);
}

/* Archive / hero ----------------------------------------------------------- */
.ef-archive-hero {
	padding: 8px 0 30px;
	background:
		radial-gradient(ellipse at 88% 0%, rgba(37, 99, 235, .09), transparent 45%),
		linear-gradient(180deg, #fff, var(--ef-bg));
	border-bottom: 1px solid var(--ef-border);
}

.ef-archive-hero__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 16px 0 8px;
}

.ef-archive-hero__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 66px;
	height: 66px;
	border: 1px solid #dbeafe;
	border-radius: 18px;
	background: #eff6ff;
	font-size: 32px;
}

.ef-archive-hero__text {
	flex: 1;
	min-width: 0;
}

.ef-archive-hero h1 {
	margin: 0 0 4px;
	font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.ef-archive-hero__desc {
	max-width: 780px;
	color: var(--ef-muted);
	font-size: 13px;
}

.ef-archive-hero__desc p {
	margin: 0;
}

.ef-archive-hero__count {
	flex: none;
	padding: 5px 12px;
	border: 1px solid var(--ef-border);
	border-radius: 999px;
	background: #fff;
	color: var(--ef-indigo);
	font-size: 11.5px;
	font-weight: 700;
}

/* Single ------------------------------------------------------------------- */
.ef-single-wrap {
	padding-top: 0;
}

.ef-single {
	min-width: 0;
}

.ef-single__head {
	padding: 6px 0 18px;
}

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

.ef-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
}

.ef-badge--cat {
	background: #eff6ff;
	color: var(--ef-indigo);
}

.ef-badge--cat:hover {
	background: #dbeafe;
	color: var(--ef-indigo);
}

.ef-single__title {
	margin: 0 0 12px;
	font-size: clamp(1.55rem, 3.4vw, 2.35rem);
	line-height: 1.35;
}

.ef-single__lead {
	max-width: 800px;
	margin: 0 0 14px;
	color: #475569;
	font-size: 15px;
}

.ef-single__meta {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	color: var(--ef-muted);
	font-size: 11.5px;
}

.ef-single__meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.ef-single__meta .ef-icon {
	width: 14px;
	height: 14px;
}

.ef-single__media {
	max-height: 360px;
	margin: 0 0 24px;
	overflow: hidden;
	border: 1px solid var(--ef-border);
	border-radius: var(--ef-radius);
	background: #fff;
}

.ef-single__media img {
	width: 100%;
	max-height: 360px;
	object-fit: contain;
	object-position: center;
}

.ef-content {
	color: #1e293b;
	font-size: 16px;
	line-height: 1.95;
}

.ef-content > *:first-child {
	margin-top: 0;
}

.ef-content h2 {
	margin-top: 1.7em;
	font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

.ef-content h3 {
	margin-top: 1.4em;
	font-size: 1.12rem;
}

.ef-content p,
.ef-content ul,
.ef-content ol {
	margin-bottom: 1.05em;
}

.ef-content ul,
.ef-content ol {
	padding-inline-start: 1.4em;
}

.ef-content li {
	margin-bottom: .35em;
}

.ef-content a {
	text-decoration: underline;
	text-decoration-color: #bfdbfe;
	text-underline-offset: 3px;
}

.ef-content a:hover {
	text-decoration-color: var(--ef-primary);
}

.ef-content blockquote {
	margin: 1.5em 0;
	padding: 14px 18px;
	border-inline-start: 4px solid var(--ef-primary);
	border-radius: 0 10px 10px 0;
	background: #f8fafc;
	color: #334155;
}

.ef-content table {
	width: 100%;
	margin: 1.2em 0;
	border-collapse: collapse;
	font-size: 14px;
}

.ef-content th,
.ef-content td {
	padding: 9px 12px;
	border: 1px solid var(--ef-border);
	text-align: start;
}

.ef-content th {
	background: #f1f5f9;
	font-weight: 700;
}

.ef-content img {
	border-radius: 10px;
}

.ef-edit-link {
	font-size: 12px;
}

/* Download box ------------------------------------------------------------- */
.ef-download {
	margin: 30px 0;
	padding: 22px;
	border: 1px solid #bfdbfe;
	border-radius: 20px;
	background:
		radial-gradient(ellipse at 90% 0%, rgba(37, 99, 235, .08), transparent 46%),
		linear-gradient(180deg, #eff6ff, #fff 65%);
}

.ef-download__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
}

.ef-download__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--ef-primary);
	color: #fff;
}

.ef-download__head h2 {
	margin: 0 0 2px;
	font-size: 1.2rem;
}

.ef-download__head p {
	margin: 0;
	color: #475569;
	font-size: 12.5px;
}

.ef-download__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.ef-download-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 66px;
	padding: 15px 17px;
	border: 1px solid transparent;
	border-radius: 14px;
	background: var(--ef-primary);
	color: #ffffff;
	text-align: start;
	box-shadow: 0 18px 32px -20px rgba(30, 58, 138, .9);
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

/* Flat, format-specific colors: Word is blue, PDF is red. */
.ef-download-btn--docx {
	background: #1d4ed8;
	box-shadow: 0 18px 32px -20px rgba(29, 78, 216, .8);
}

.ef-download-btn--pdf {
	background: #dc2626;
	box-shadow: 0 18px 32px -20px rgba(220, 38, 38, .78);
}

.ef-download-btn:hover,
.ef-download-btn:focus-visible {
	transform: translateY(-2px);
	color: #ffffff;
	filter: brightness(.93);
	box-shadow: 0 24px 40px -20px rgba(30, 58, 138, .95);
}

.ef-download-btn:focus-visible {
	outline: 3px solid rgba(37, 99, 235, .35);
	outline-offset: 2px;
}

.ef-download-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, .34);
	border-radius: 12px;
	background: rgba(255, 255, 255, .18);
	color: #ffffff;
}

.ef-download-btn__icon .ef-icon {
	width: 21px;
	height: 21px;
}

.ef-download-btn--docx .ef-download-btn__icon,
.ef-download-btn--pdf .ef-download-btn__icon {
	background: rgba(255, 255, 255, .18);
	color: #ffffff;
}

.ef-download-btn--preview {
	border-color: #bbf7d0;
	background: #f0fdf4;
	color: var(--ef-success);
	box-shadow: 0 12px 24px -22px rgba(5, 150, 105, .7);
}

.ef-download-btn--preview:hover,
.ef-download-btn--preview:focus-visible {
	color: var(--ef-success);
	filter: none;
}

.ef-download-btn--preview .ef-download-btn__icon {
	border-color: transparent;
	background: #dcfce7;
	color: var(--ef-success);
}

.ef-download-btn__text {
	display: flex;
	flex-direction: column;
	flex: 1;
	line-height: 1.45;
}

.ef-download-btn__text strong {
	color: #ffffff;
	font-size: 14.5px;
	font-weight: 800;
}

.ef-download-btn__text small {
	color: rgba(255, 255, 255, .84);
	font-size: 11px;
}

.ef-download-btn--preview .ef-download-btn__text strong,
.ef-download-btn--preview .ef-download-btn__text small {
	color: var(--ef-success);
}

.ef-download-btn > .ef-icon {
	width: 19px;
	height: 19px;
	flex: none;
	color: rgba(255, 255, 255, .9);
}

.ef-download-btn--preview > .ef-icon {
	color: var(--ef-success);
}

.ef-download__meta {
	display: flex;
	gap: 8px 18px;
	flex-wrap: wrap;
	margin: 14px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid #dbeafe;
	list-style: none;
	color: var(--ef-muted);
	font-size: 11.5px;
}

.ef-download__meta strong {
	color: #334155;
	font-weight: 700;
}

.ef-download__note {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 12px 0 0;
	color: var(--ef-muted);
	font-size: 11px;
}

.ef-download__note .ef-icon {
	width: 15px;
	height: 15px;
	flex: none;
	color: var(--ef-success);
}

/* Form panel: cover + data table + actions -------------------------------- */
.ef-form-panel {
	margin: 30px 0;
	padding: 22px;
	border: 1px solid var(--ef-border);
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--ef-shadow-sm);
}

.ef-form-panel__grid {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.ef-form-cover {
	position: relative;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--ef-border);
	border-radius: 14px;
	background: #f1f5f9;
}

.ef-form-cover img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	padding: 6px;
	object-fit: contain;
	object-position: center;
}

.ef-form-cover--empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	aspect-ratio: 3 / 4;
	padding: 20px;
	color: var(--ef-muted);
	text-align: center;
}

.ef-form-cover__placeholder .ef-icon {
	width: 46px;
	height: 46px;
	color: #93c5fd;
}

.ef-form-cover__hint {
	font-size: 11.5px;
	line-height: 1.6;
}

.ef-form-cover__badge {
	position: absolute;
	inset-block-start: 10px;
	inset-inline-start: 10px;
	padding: 3px 9px;
	border-radius: 6px;
	background: #b91c1c;
	color: #fff;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .4px;
}

.ef-form-panel__title {
	margin: 0 0 12px;
	font-size: 1.15rem;
}

.ef-meta-table {
	width: 100%;
	border-collapse: collapse;
	overflow: hidden;
	border: 1px solid var(--ef-border);
	border-radius: 12px;
	font-size: 13px;
}

.ef-meta-table th,
.ef-meta-table td {
	padding: 9px 13px;
	border-bottom: 1px solid var(--ef-border);
	text-align: start;
	vertical-align: top;
}

.ef-meta-table tr:last-child th,
.ef-meta-table tr:last-child td {
	border-bottom: 0;
}

.ef-meta-table th {
	width: 38%;
	background: #f8fafc;
	color: #334155;
	font-weight: 700;
	white-space: nowrap;
}

.ef-meta-table td {
	color: #475569;
}

.ef-meta-table a {
	font-weight: 600;
}

.ef-form-actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 10px;
	margin-top: 20px;
}

.ef-form-panel__note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--ef-border);
	color: var(--ef-muted);
	font-size: 11.5px;
	line-height: 1.7;
}

.ef-form-panel__note .ef-icon {
	width: 16px;
	height: 16px;
	flex: none;
	margin-top: 3px;
	color: var(--ef-success);
}

.ef-single--form .ef-content {
	margin-bottom: 6px;
}

/* PDF.js viewer ------------------------------------------------------------ */
.ef-viewer {
	margin: 30px 0;
	padding: 18px;
	border: 1px solid var(--ef-border);
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--ef-shadow-sm);
}

.ef-viewer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.ef-viewer__head h2 {
	margin: 0;
	font-size: 1.15rem;
}

.ef-viewer__tools {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 12px;
	font-weight: 700;
}

.ef-viewer__frame {
	border: 1px solid var(--ef-border);
	border-radius: 12px;
	overflow: hidden;
	background: #f1f5f9;
}

.ef-viewer__frame iframe {
	display: block;
	width: 100%;
	height: min(800px, 78vh);
	border: 0;
}

.ef-viewer__pdfjs {
	border-radius: 12px;
	overflow: hidden;
}

.ef-viewer__pdfjs .pdfjs-viewer,
.ef-viewer__pdfjs iframe {
	width: 100% !important;
	max-width: 100%;
}

.ef-viewer__fallback {
	margin: 10px 0 0;
	color: var(--ef-muted);
	font-size: 11.5px;
}

/* FAQ ---------------------------------------------------------------------- */
.ef-faq {
	margin: 34px 0;
}

.ef-faq > h2,
.ef-related > h2 {
	margin-bottom: 14px;
	font-size: 1.25rem;
}

.ef-faq__list {
	display: grid;
	gap: 8px;
}

.ef-faq__item {
	border: 1px solid var(--ef-border);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.ef-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 16px;
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 700;
	list-style: none;
}

.ef-faq__item summary::-webkit-details-marker {
	display: none;
}

.ef-faq__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: #f1f5f9;
	color: var(--ef-muted);
	font-size: 16px;
	font-weight: 500;
	transition: transform .18s ease, background-color .18s ease;
}

.ef-faq__item[open] .ef-faq__toggle {
	transform: rotate(45deg);
	background: #dbeafe;
	color: var(--ef-indigo);
}

.ef-faq__answer {
	padding: 0 16px 14px;
	color: #475569;
	font-size: 13.5px;
}

.ef-faq__answer p {
	margin: 0;
}

/* Share buttons (bottom of the FAQ block) -------------------------------- */
.ef-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin-top: 16px;
	padding: 14px 16px;
	border: 1px solid var(--ef-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 16px 34px -32px rgba(15, 23, 42, .5);
}

.ef-share__label {
	color: var(--ef-navy);
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
}

.ef-share__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.ef-share__extra {
	display: contents;
}

.ef-share__extra[hidden] {
	display: none;
}

.ef-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	background: #475569;
	background-image: none;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 10px 20px -14px rgba(15, 23, 42, .75);
	transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.ef-share__btn:hover,
.ef-share__btn:focus-visible {
	transform: translateY(-2px);
	color: #fff;
	filter: brightness(1.08);
	box-shadow: 0 16px 26px -14px rgba(15, 23, 42, .8);
}

.ef-share__btn:focus-visible {
	outline: 3px solid rgba(37, 99, 235, .3);
	outline-offset: 2px;
}

.ef-share__btn .ef-icon {
	width: 20px;
	height: 20px;
	flex: none;
}

.ef-share__btn--copy {
	background-color: #475569;
}

.ef-share__btn--copy.is-copied {
	background-color: var(--ef-success);
}

.ef-share__btn--whatsapp {
	background-color: #25d366;
}

.ef-share__btn--telegram {
	background-color: #229ed9;
}

.ef-share__btn--linkedin {
	background-color: #0a66c2;
}

.ef-share__btn--x {
	background-color: #0f1419;
}

.ef-share__btn--facebook {
	background-color: #1877f2;
}

.ef-share__btn--email {
	background-color: #ea4335;
}

.ef-share__btn--pinterest {
	background-color: #e60023;
}

.ef-share__btn--more {
	background-color: var(--ef-navy);
}

.ef-share__btn--more .ef-icon {
	transition: transform .2s ease;
}

.ef-share__btn--more.is-open .ef-icon {
	transform: rotate(45deg);
}

.ef-share__status {
	min-height: 1em;
	color: var(--ef-success);
	font-size: 12px;
	font-weight: 700;
}

/* Comments ---------------------------------------------------------------- */
.ef-comments {
	margin: 34px 0 8px;
	padding: 22px;
	border: 1px solid var(--ef-border);
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--ef-shadow-sm);
}

.ef-comments__title {
	margin: 0 0 16px;
	color: var(--ef-navy);
	font-size: 1.25rem;
	font-weight: 800;
}

.ef-comments__title span {
	color: var(--ef-muted);
	font-size: .9em;
}

.ef-comments__list,
.ef-comments .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ef-comments .children {
	margin-top: 12px;
	padding-inline-start: 18px;
	border-inline-start: 2px solid #e2e8f0;
}

.ef-comments .comment-body {
	margin-bottom: 12px;
	padding: 16px;
	border: 1px solid var(--ef-border);
	border-radius: 14px;
	background: #f8fafc;
}

.ef-comments .comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ef-navy);
	font-size: 13.5px;
	font-weight: 800;
}

.ef-comments .comment-author .avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	flex: none;
}

.ef-comments .comment-author .says {
	display: none;
}

.ef-comments .comment-metadata {
	margin-top: 4px;
	color: var(--ef-muted);
	font-size: 11.5px;
}

.ef-comments .comment-metadata a {
	color: inherit;
}

.ef-comments .comment-content {
	margin-top: 10px;
	color: #111827;
	font-size: 14px;
	line-height: 1.85;
}

.ef-comments .comment-content p {
	margin: 0 0 10px;
}

.ef-comments .comment-content p:last-child {
	margin-bottom: 0;
}

.ef-comments .comment-awaiting-moderation {
	display: inline-block;
	margin-top: 8px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #fef3c7;
	color: #92400e;
	font-size: 11.5px;
	font-weight: 700;
}

.ef-comments .reply {
	margin-top: 8px;
}

.ef-comments .comment-reply-link {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border: 1px solid #bfdbfe;
	border-radius: 999px;
	background: #eff6ff;
	color: var(--ef-primary);
	font-size: 11.5px;
	font-weight: 700;
}

.ef-comments .comment-reply-link:hover {
	background: #dbeafe;
	color: var(--ef-primary-dark);
}

.ef-comments .comment-respond {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--ef-border);
}

.ef-comments .comment-reply-title {
	margin: 0 0 14px;
	color: var(--ef-navy);
	font-size: 1.1rem;
	font-weight: 800;
}

.ef-comments .comment-reply-title small {
	font-size: 12px;
	font-weight: 600;
}

.ef-comments .comment-notes,
.ef-comments .logged-in-as,
.ef-comments .form-allowed-tags {
	margin: 0 0 14px;
	color: var(--ef-muted);
	font-size: 11.5px;
	line-height: 1.7;
}

.ef-comments .comment-form p {
	margin: 0 0 12px;
}

.ef-comments .comment-form label {
	display: block;
	margin-bottom: 6px;
	color: var(--ef-navy);
	font-size: 12.5px;
	font-weight: 700;
}

.ef-comments .comment-form .required {
	color: var(--ef-danger);
}

.ef-comments .comment-form input[type="text"],
.ef-comments .comment-form input[type="email"],
.ef-comments .comment-form input[type="url"],
.ef-comments .comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--ef-border-strong);
	border-radius: 12px;
	background: #fff;
	color: #0f172a;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.6;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.ef-comments .comment-form input:focus,
.ef-comments .comment-form textarea:focus {
	border-color: var(--ef-primary);
	box-shadow: var(--ef-ring);
	outline: none;
}

.ef-comments .comment-form textarea {
	min-height: 130px;
	resize: vertical;
}

.ef-comments .comment-form .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border: 0;
	border-radius: 12px;
	background: var(--ef-primary);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 14px 26px -18px rgba(30, 58, 138, .85);
	transition: background-color .18s ease, transform .18s ease;
}

.ef-comments .comment-form .submit:hover {
	transform: translateY(-1px);
	background: var(--ef-primary-dark);
}

.ef-comments .comment-form .submit:focus-visible {
	outline: 3px solid rgba(37, 99, 235, .3);
	outline-offset: 2px;
}

.ef-comments .comments-pagination {
	margin: 16px 0;
}

.ef-comments__closed {
	margin: 0 0 14px;
	color: var(--ef-muted);
	font-size: 13px;
}

/* Related ------------------------------------------------------------------ */
.ef-related {
	margin: 34px 0;
	padding: 20px;
	border: 1px solid var(--ef-border);
	border-radius: var(--ef-radius);
	background: #fff;
}

.ef-related__grid {
	margin: 0;
}

/* Modal -------------------------------------------------------------------- */
.ef-modal {
	width: min(960px, 94vw);
	max-height: 88vh;
	padding: 0;
	border: 0;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 40px 80px -30px rgba(15, 23, 42, .55);
	overflow: hidden;
}

.ef-modal::backdrop {
	background: rgba(15, 23, 42, .65);
	backdrop-filter: blur(3px);
}

.ef-modal__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--ef-border);
}

.ef-modal__bar h2 {
	margin: 0;
	font-size: 14px;
}

.ef-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--ef-border);
	border-radius: 8px;
	background: #f8fafc;
}

.ef-modal__body {
	height: min(70vh, 720px);
	background: #f1f5f9;
}

.ef-modal__body iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.ef-modal__foot {
	padding: 9px 16px;
	border-top: 1px solid var(--ef-border);
	font-size: 12px;
}

body.ef-modal-open {
	overflow: hidden;
}

/* Pagination --------------------------------------------------------------- */
.ef-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	flex-wrap: wrap;
	margin-top: 28px;
}

.ef-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 9px;
	border: 1px solid var(--ef-border);
	border-radius: 8px;
	background: #fff;
	color: #475569;
	font-size: 12.5px;
	font-weight: 600;
}

.ef-page:hover {
	border-color: #bfdbfe;
	background: #eff6ff;
	color: var(--ef-indigo);
}

.ef-page.is-current {
	border-color: var(--ef-primary);
	background: var(--ef-primary);
	color: #fff;
}

.ef-page--arrow .ef-icon {
	width: 15px;
	height: 15px;
}

.ef-page--dots {
	border-color: transparent;
	background: transparent;
}

.ef-page.is-disabled {
	opacity: .4;
	pointer-events: none;
}

/* Pages / 404 / contact ---------------------------------------------------- */
.ef-page-hero {
	padding: 12px 0 34px;
	border-bottom: 1px solid var(--ef-border);
	background: linear-gradient(180deg, #fff, var(--ef-bg));
}

.ef-page-hero h1 {
	margin: 0;
	font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

.ef-page-hero__lead {
	max-width: 760px;
	margin: 8px 0 0;
	color: var(--ef-muted);
	font-size: 14px;
}

.ef-page-wrap {
	max-width: 900px;
	padding: 36px 0 64px;
}

.ef-page-wrap > .ef-page {
	min-height: 40vh;
}

.ef-page-links {
	display: flex;
	gap: 6px;
	margin: 20px 0;
}

.ef-page-links a,
.ef-page-links span {
	padding: 5px 10px;
	border: 1px solid var(--ef-border);
	border-radius: 6px;
	font-size: 12px;
}

.ef-contact-wrap {
	padding: 36px 0 64px;
}

.ef-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px;
	align-items: start;
}

.ef-contact-form-wrap {
	padding: 24px;
	border: 1px solid var(--ef-border);
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--ef-shadow-sm);
}

.ef-contact-form-wrap > h2 {
	margin: 0 0 4px;
	font-size: 1.25rem;
}

.ef-contact-form-wrap > p {
	margin: 0 0 16px;
	color: var(--ef-muted);
	font-size: 12px;
}

.ef-contact-cards {
	display: grid;
	gap: 10px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.ef-contact-cards li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--ef-border);
	border-radius: 12px;
	background: #fff;
}

.ef-contact-cards__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #eff6ff;
	color: var(--ef-primary);
}

.ef-contact-cards strong {
	display: block;
	font-size: 12.5px;
}

.ef-contact-cards a {
	color: var(--ef-muted);
	font-size: 12px;
}

.ef-form {
	display: grid;
	gap: 12px;
}

.ef-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.ef-form__field {
	display: grid;
	gap: 5px;
	margin: 0;
}

.ef-form__field label {
	color: #334155;
	font-size: 12px;
	font-weight: 700;
}

.ef-form__field label span {
	color: var(--ef-danger);
}

.ef-form__field input,
.ef-form__field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--ef-border);
	border-radius: 9px;
	background: #f8fafc;
	font-size: 13px;
	transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.ef-form__field input:focus,
.ef-form__field textarea:focus {
	outline: none;
	border-color: #93c5fd;
	background: #fff;
	box-shadow: var(--ef-ring);
}

.ef-form__field textarea {
	resize: vertical;
	min-height: 130px;
}

.ef-form__submit {
	margin: 4px 0 0;
}

.ef-hp {
	position: absolute !important;
	inset-inline-start: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ef-notice {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid var(--ef-border);
	border-radius: 10px;
	font-size: 13px;
}

.ef-notice--success {
	border-color: #a7f3d0;
	background: #ecfdf5;
	color: #065f46;
}

.ef-notice--error {
	border-color: #fecaca;
	background: #fef2f2;
	color: #991b1b;
}

.ef-404 {
	padding: 70px 0;
	text-align: center;
	background: linear-gradient(180deg, #fff, var(--ef-bg));
}

.ef-404__code {
	margin: 0;
	color: #dbeafe;
	font-size: clamp(5rem, 18vw, 10rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -6px;
}

.ef-404 h1 {
	margin-top: -10px;
	font-size: clamp(1.4rem, 3vw, 2rem);
}

.ef-404 p {
	max-width: 560px;
	margin: 0 auto 20px;
	color: var(--ef-muted);
	font-size: 14px;
}

.ef-404__search {
	max-width: 520px;
	margin: 0 auto 22px;
}

.ef-404__links {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

/* Forms index -------------------------------------------------------------- */
.ef-index-wrap {
	padding: 32px 0 64px;
}

.ef-index-search {
	max-width: 560px;
	margin-bottom: 20px;
}

.ef-index-cats {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

.ef-index-section {
	padding: 24px 0;
	border-top: 1px solid var(--ef-border);
}

.ef-index-section__head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 12px;
}

.ef-index-section__head > div {
	flex: 1;
}

.ef-index-section__head h2 {
	margin: 0 0 2px;
	font-size: 1.3rem;
}

.ef-index-section__head p {
	margin: 0;
	color: var(--ef-muted);
	font-size: 12px;
}

.ef-index-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px 28px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.ef-index-list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px dashed #eef2f7;
}

.ef-index-list a {
	color: #334155;
	font-size: 13px;
	font-weight: 600;
}

.ef-index-list a:hover {
	color: var(--ef-primary);
}

.ef-index-list__meta {
	flex: none;
	color: #94a3b8;
	font-size: 10.5px;
}

/* Search form -------------------------------------------------------------- */
.ef-searchform {
	position: relative;
	display: flex;
	align-items: center;
}

.ef-searchform input[type="search"] {
	width: 100%;
	height: 48px;
	padding: 0 44px 0 14px;
	border: 1px solid var(--ef-border);
	border-radius: 10px;
	background: #fff;
	font-size: 14px;
}

.ef-searchform input:focus {
	outline: none;
	border-color: #93c5fd;
	box-shadow: var(--ef-ring);
}

.ef-searchform button {
	position: absolute;
	inset-inline-start: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 7px;
	background: var(--ef-primary);
	color: #fff;
}

.ef-searchform-wrap {
	max-width: 560px;
	margin-bottom: 20px;
}

/* Ads ---------------------------------------------------------------------- */
.ef-ad {
	margin: 22px 0;
	overflow: hidden;
	text-align: center;
}

.ef-ad--sidebar {
	margin: 0;
	padding: 10px;
	border: 1px solid var(--ef-border);
	border-radius: var(--ef-radius);
	background: #fff;
}

.ef-header-ad .ef-ad {
	margin: 10px 0 0;
}

.ef-ad ins {
	max-width: 100%;
}

/* Footer ------------------------------------------------------------------- */
.ef-footer {
	margin-top: 20px;
	background:
		radial-gradient(ellipse at 88% 0%, rgba(37, 99, 235, .18), transparent 45%),
		var(--ef-navy);
	color: #94a3b8;
	font-size: 13px;
}

.ef-footer a {
	color: #cbd5e1;
}

.ef-footer a:hover {
	color: #fff;
}

.ef-footer > .ef-container {
	padding-top: 46px;
}

.ef-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr .85fr 1.15fr;
	gap: 32px;
	padding-bottom: 34px;
}

.ef-footer__brand p {
	margin: 14px 0;
	color: #94a3b8;
	font-size: 12px;
	line-height: 1.9;
}

.ef-brand__link--footer {
	color: #fff;
}

.ef-brand__link--footer:hover {
	color: #fff;
}

.ef-brand__link--footer .ef-brand__text small {
	color: #64748b;
}

.ef-footer__title {
	margin: 0 0 12px;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
}

.ef-footer__list {
	display: grid;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ef-footer__list a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
}

.ef-footer__contact {
	display: grid;
	gap: 7px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.ef-footer__contact li {
	display: flex;
	align-items: center;
	gap: 7px;
}

.ef-footer__contact .ef-icon {
	width: 15px;
	height: 15px;
	color: #60a5fa;
}

.ef-footer__contact a {
	font-size: 12px;
}

.ef-footer__social {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.ef-footer__social a {
	padding: 3px 9px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	font-size: 10.5px;
}

.ef-footer__help {
	margin: 0 0 14px;
	color: #94a3b8;
	font-size: 12px;
}

.ef-footer__cta {
	background: linear-gradient(135deg, #fbbf24, #f59e0b);
	color: #1f2937;
	font-weight: 800;
	box-shadow: 0 12px 24px -16px rgba(245, 158, 11, .9);
}

.ef-footer__cta:hover {
	background: linear-gradient(135deg, #f59e0b, #d97706);
	color: #0f172a;
}

.ef-footer__disclaimer {
	display: flex;
	gap: 8px;
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .1);
}

.ef-footer__disclaimer .ef-icon {
	width: 17px;
	height: 17px;
	flex: none;
	color: #60a5fa;
}

.ef-footer__disclaimer p {
	margin: 0;
	color: #64748b;
	font-size: 10.5px;
	line-height: 1.7;
}

.ef-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 0;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: 11px;
}

.ef-footer__bottom p {
	margin: 0;
}

.ef-footer__made {
	color: #64748b;
}

/* Back to top -------------------------------------------------------------- */
.ef-to-top {
	position: fixed;
	inset-inline-start: 18px;
	bottom: 18px;
	z-index: 60;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 12px;
	background: var(--ef-navy);
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	box-shadow: 0 14px 26px -14px rgba(15, 23, 42, .6);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.ef-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.ef-to-top.is-visible:hover {
	background: var(--ef-primary);
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1120px) {
	.ef-menu > li > a {
		padding-inline: 7px;
		font-size: 12.5px;
	}

	.ef-cats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ef-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ef-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ef-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}

	.ef-footer__col:last-child {
		grid-column: 1 / -1;
	}

	.ef-form-panel__grid {
		grid-template-columns: 190px minmax(0, 1fr);
		gap: 18px;
	}
}

@media (max-width: 960px) {
	.ef-header__cta {
		display: none;
	}

	.ef-header__inner {
		gap: 12px;
	}

	/* Push search + burger to the inline-end corner so they hug the far-left
	   edge on RTL phones instead of sitting right next to the brand. */
	.ef-header__actions {
		margin-inline-start: auto;
		gap: 6px;
	}

	.ef-nav {
		position: absolute;
		top: 100%;
		inset-inline: 0;
		display: none;
		max-height: calc(100vh - 72px);
		overflow: auto;
		padding: 10px 20px 20px;
		background: #fff;
		border-bottom: 1px solid var(--ef-border);
		box-shadow: 0 24px 40px -30px rgba(15, 23, 42, .5);
	}

	.ef-nav.is-open {
		display: block;
	}

	.ef-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.ef-menu > li > a {
		padding: 11px 10px;
		font-size: 13.5px;
	}

	.sub-menu {
		position: static;
		display: block;
		min-width: 0;
		margin: 2px 0 4px;
		padding: 0 14px;
		border: 0;
		border-radius: 8px;
		background: #f8fafc;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.ef-menu-toggle {
		display: flex;
	}

	.ef-filter__selects {
		grid-template-columns: 1fr 1fr;
	}

	.ef-filter__submit {
		grid-column: 1 / -1;
	}

	.ef-layout {
		grid-template-columns: 1fr;
	}

	.ef-form-panel__grid {
		grid-template-columns: 1fr;
	}

	.ef-form-cover,
	.ef-form-cover img,
	.ef-form-cover--empty {
		max-width: 240px;
	}

	.ef-form-cover img,
	.ef-form-cover--empty {
		aspect-ratio: 3 / 4;
	}

	.ef-sidebar {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ef-widget--category {
		grid-column: 1 / -1;
	}

	.ef-contact-grid {
		grid-template-columns: 1fr;
	}

	.ef-cta {
		flex-direction: column;
		align-items: flex-start;
	}

	.ef-hero {
		padding-bottom: 86px;
	}

	.ef-section {
		padding: 40px 0;
	}
}

@media (max-width: 720px) {
	.ef-topbar__date {
		display: none;
	}

	.ef-topbar__inner {
		justify-content: center;
	}

	.ef-topbar__links {
		display: none;
	}

	.ef-header__inner {
		min-height: 62px;
		gap: 10px;
	}

	.ef-brand__mark {
		width: 38px;
		height: 38px;
		font-size: 19px;
	}

	.ef-brand__text strong {
		font-size: 15px;
	}

	.ef-brand__text small {
		font-size: 9.5px;
	}

	.ef-hero {
		padding: 36px 0 82px;
	}

	.ef-hero__title {
		letter-spacing: -.4px;
	}

	.ef-hero__stats {
		gap: 26px;
	}

	.ef-stat strong {
		font-size: 1.3rem;
	}

	.ef-filter__selects {
		grid-template-columns: 1fr;
	}

	.ef-filter__chips {
		display: none;
	}

	.ef-cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ef-cat-card {
		padding: 14px;
	}

	.ef-section__head,
	.ef-cat-section__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.ef-popular-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ef-cta {
		padding: 24px;
		border-radius: 18px;
	}

	.ef-cta__actions {
		width: 100%;
	}

	.ef-cta__actions .ef-btn {
		flex: 1;
	}

	.ef-archive-hero__inner {
		flex-wrap: wrap;
	}

	.ef-archive-hero__count {
		margin-inline-start: 84px;
	}

	.ef-sidebar {
		grid-template-columns: 1fr;
	}

	.ef-download__actions {
		grid-template-columns: 1fr;
	}

	.ef-form__grid {
		grid-template-columns: 1fr;
	}

	.ef-index-list {
		grid-template-columns: 1fr;
	}

	.ef-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.ef-footer__brand {
		grid-column: 1 / -1;
	}

	.ef-footer__col:last-child {
		grid-column: 1 / -1;
	}

	.ef-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.ef-single__media,
	.ef-single__media img {
		max-height: 250px;
	}

	.ef-archive-hero {
		padding-bottom: 22px;
	}

	.ef-layout {
		padding-top: 26px;
	}
}

/* Tablets and medium screens keep a balanced two-column card grid; only
   narrow phones collapse to a single column. */
@media (max-width: 600px) {
	.ef-grid,
	.ef-grid--3,
	.ef-grid--4 {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.ef-container {
		width: min(100% - 24px, var(--ef-container));
	}

	.ef-header__icon-btn {
		width: 36px;
		height: 36px;
	}

	.ef-menu-toggle {
		width: 38px;
		height: 38px;
	}

	.ef-cats {
		grid-template-columns: 1fr;
	}

	.ef-hero__stats {
		gap: 20px;
	}

	.ef-stat {
		min-width: 74px;
	}

	.ef-archive-hero__icon {
		width: 52px;
		height: 52px;
		font-size: 25px;
	}

	.ef-archive-hero__count {
		margin-inline-start: 0;
	}

	.ef-footer__grid {
		grid-template-columns: 1fr;
	}

	.ef-footer__brand {
		grid-column: auto;
	}

	.ef-footer__col:last-child {
		grid-column: auto;
	}

	.ef-page-hero h1 {
		font-size: 1.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.ef-header,
	.ef-topbar,
	.ef-footer,
	.ef-sidebar,
	.ef-download,
	.ef-form-actions,
	.ef-viewer,
	.ef-related,
	.ef-modal,
	.ef-ad,
	.ef-to-top,
	.ef-cta-section,
	.ef-single__meta,
	.ef-form-panel__note,
	.ef-edit-link {
		display: none !important;
	}

	body {
		background: #fff;
	}

	.ef-container,
	.ef-layout {
		display: block;
		width: 100%;
		max-width: 100%;
	}

	.ef-single-wrap {
		padding: 0;
	}

	.ef-form-panel {
		margin: 0;
		padding: 0;
		border: 0;
		box-shadow: none;
	}

	.ef-form-panel__grid {
		grid-template-columns: 180px minmax(0, 1fr);
	}

	.ef-meta-table th {
		background: #fff;
	}

	.ef-card__link,
	.ef-to-top {
		display: none !important;
	}
}
