/**
 * Malaysia eVisa — components
 * Header, navigation, hero, buttons, cards, sidebar, footer, comments.
 */

/* =========================================================================
   BUTTONS
   ========================================================================= */

.me-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.78rem 1.5rem !important;
	border: 1px solid transparent;
	border-radius: var(--me-radius-pill);
	background: var(--me-primary);
	color: #fff;
	font-size: var(--me-text-sm);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: transform var(--me-transition), box-shadow var(--me-transition), background-color var(--me-transition), color var(--me-transition), border-color var(--me-transition);
}

.me-btn:hover {
	background: var(--me-primary-dark);
	color: #fff;
	box-shadow: var(--me-shadow-md);
	transform: translateY(-1px);
}

.me-btn:active {
	transform: translateY(0);
}

/* Primary call to action — logo red, white text (5.1:1) */
.me-btn--accent {
	background: var(--me-cta);
	color: var(--me-cta-text);
	box-shadow: 0 6px 18px rgba(212, 37, 38, 0.3);
}

.me-btn--accent:hover {
	background: var(--me-cta-hover);
	color: var(--me-cta-text);
}

/* Gold variant, for anyone who prefers the crescent colour on dark panels */
.me-btn--gold {
	background: linear-gradient(135deg, var(--me-gold-400), var(--me-accent));
	color: var(--me-navy-900);
	box-shadow: 0 6px 18px rgba(185, 140, 0, 0.28);
}

.me-btn--gold:hover {
	background: var(--me-accent);
	color: var(--me-navy-950);
}

.me-btn--outline {
	border-color: var(--me-gray-300);
	background: transparent;
	color: var(--me-navy-800);
}

.me-btn--outline:hover {
	border-color: var(--me-primary);
	background: var(--me-blue-50);
	color: var(--me-primary);
	box-shadow: none;
}

.me-btn--ghost-light {
	border-color: rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	backdrop-filter: blur(6px);
}

.me-btn--ghost-light:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.me-btn--lg {
	padding: 1rem 2rem;
	font-size: var(--me-text-base);
}

.me-btn--sm {
	padding: 0.55rem 1.05rem;
	font-size: var(--me-text-xs);
}

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

.me-btn svg {
	flex: none;
	width: 1.05em;
	height: 1.05em;
}

/* Icon-only button */
.me-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--me-border);
	border-radius: var(--me-radius-pill);
	background: var(--me-white);
	color: var(--me-navy-800);
	cursor: pointer;
	transition: all var(--me-transition);
}

.me-icon-btn:hover {
	border-color: var(--me-blue-400);
	background: var(--me-blue-50);
	color: var(--me-primary);
}

.me-icon-btn svg {
	width: 20px;
	height: 20px;
}

/* Badges / pills */
.me-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.7rem;
	border-radius: var(--me-radius-pill);
	background: var(--me-blue-100);
	color: var(--me-navy-800);
	font-size: var(--me-text-xs);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}

.me-badge--accent {
	background: var(--me-gold-100);
	color: var(--me-gold-700);
}

.me-badge--success {
	background: var(--me-green-50);
	color: var(--me-green-600);
}

.me-badge--light {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

/* =========================================================================
   HEADER
   ========================================================================= */

.me-topbar {
	background: var(--me-navy-900);
	color: rgba(255, 255, 255, 0.82);
	font-size: var(--me-text-xs);
}

.me-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--me-space-4);
	min-height: 38px;
}

.me-topbar__list {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.me-topbar__list li {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
}

.me-topbar a {
	color: rgba(255, 255, 255, 0.82);
}

.me-topbar a:hover {
	color: var(--me-gold-400);
}

.me-topbar svg {
	width: 14px;
	height: 14px;
	opacity: 0.7;
}

@media (max-width: 860px) {
	.me-topbar__inner {
		justify-content: center;
	}
	.me-topbar__list--secondary {
		display: none;
	}
}

.me-header {
	position: sticky;
	top: var(--me-admin-offset);
	z-index: 500;
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid var(--me-border);
	backdrop-filter: saturate(180%) blur(12px);
	transition: box-shadow var(--me-transition), background-color var(--me-transition);
}

.me-header.is-stuck {
	box-shadow: var(--me-shadow);
}

.me-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1rem, 2.5vw, 2.25rem);
	min-height: var(--me-header-h);
}

/* Branding */
.me-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: none;
	text-decoration: none;
}

.me-brand__logo img {
	display: block;
	width: auto;
	max-height: 52px;
	border-radius: 0;
}

.me-brand__text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.me-brand__name {
	color: var(--me-navy-900);
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.me-brand__tagline {
	color: var(--me-text-muted);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.02em;
}

@media (max-width: 782px) {
	.me-brand__logo img {
		max-height: 40px;
	}
	.me-brand__tagline {
		display: none;
	}
}

/* Header actions */
.me-header__actions {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex: none;
}

.me-header__actions .me-btn {
	padding-inline: 1.15rem;
}

@media (max-width: 1120px) {
	.me-header__cta-secondary {
		display: none;
	}
}

@media (max-width: 620px) {
	.me-header__cta-primary {
		display: none;
	}
}

/* =========================================================================
   PRIMARY NAVIGATION (desktop)
   ========================================================================= */

.me-nav {
	flex: 1 1 auto;
	min-width: 0;
}

.me-nav__list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.me-nav__list li {
	position: relative;
	margin: 0;
}

.me-nav__list > li > a {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.6rem 0.8rem;
	border-radius: var(--me-radius);
	color: var(--me-gray-700);
	font-size: 0.94rem;
	font-weight: 600;
	white-space: nowrap;
}

.me-nav__list > li > a:hover,
.me-nav__list > li.is-open > a,
.me-nav__list > li:focus-within > a {
	background: var(--me-blue-50);
	color: var(--me-primary);
}

.me-nav__list > li.current-menu-item > a,
.me-nav__list > li.current-menu-parent > a,
.me-nav__list > li.current-menu-ancestor > a,
.me-nav__list > li.current_page_item > a,
.me-nav__list > li.current_page_ancestor > a {
	color: var(--me-primary);
}

.me-nav__list > li.current-menu-item > a::after,
.me-nav__list > li.current-menu-parent > a::after,
.me-nav__list > li.current-menu-ancestor > a::after,
.me-nav__list > li.current_page_item > a::after,
.me-nav__list > li.current_page_ancestor > a::after {
	content: "";
	position: absolute;
	bottom: 0.1rem;
	left: 0.8rem;
	right: 0.8rem;
	height: 2px;
	border-radius: 2px;
	background: var(--me-accent);
}

/* Caret */
.me-nav__caret {
	flex: none;
	width: 14px;
	height: 14px;
	opacity: 0.55;
	transition: transform var(--me-transition);
}

.me-nav__list li.is-open > a .me-nav__caret {
	transform: rotate(180deg);
}

/* Dropdown / mega panel */
.me-nav .sub-menu {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 50%;
	z-index: 60;
	min-width: 15rem;
	margin: 0;
	padding: 0.55rem;
	border: 1px solid var(--me-border);
	border-radius: var(--me-radius-lg);
	background: var(--me-white);
	box-shadow: var(--me-shadow-lg);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition: opacity var(--me-transition), transform var(--me-transition), visibility var(--me-transition);
}

.me-nav .sub-menu::before {
	content: "";
	position: absolute;
	top: -0.5rem;
	left: 0;
	right: 0;
	height: 0.5rem;
}

.me-nav li.is-open > .sub-menu,
.me-nav li:hover > .sub-menu,
.me-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.me-nav .sub-menu a {
	display: block;
	padding: 0.55rem 0.8rem;
	border-radius: var(--me-radius-sm);
	color: var(--me-gray-700);
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.4;
}

.me-nav .sub-menu a:hover,
.me-nav .sub-menu a:focus {
	background: var(--me-blue-50);
	color: var(--me-primary);
}

.me-nav .sub-menu .current-menu-item > a {
	background: var(--me-blue-50);
	color: var(--me-primary);
	font-weight: 700;
}

/* Multi-column mega menu for long lists (Visa Types) */
.me-nav .sub-menu.is-mega {
	display: grid;
	grid-template-columns: repeat(3, minmax(13.5rem, 1fr));
	gap: 0.1rem 0.5rem;
	padding: 1rem;
	min-width: min(46rem, calc(100vw - 3rem));
}

@media (max-width: 1180px) {
	.me-nav .sub-menu.is-mega {
		grid-template-columns: repeat(2, minmax(12rem, 1fr));
		min-width: min(34rem, calc(100vw - 3rem));
	}
}

/* Third level */
.me-nav .sub-menu .sub-menu {
	position: static;
	min-width: 0;
	margin: 0 0 0 0.6rem;
	padding: 0;
	border: 0;
	border-left: 2px solid var(--me-border);
	border-radius: 0;
	background: none;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	transform: none;
}

.me-nav .sub-menu .sub-menu a {
	font-size: 0.85rem;
	color: var(--me-text-muted);
}

@media (max-width: 1024px) {
	.me-nav--desktop {
		display: none;
	}
}

/* =========================================================================
   MOBILE NAVIGATION (off-canvas drawer)
   ========================================================================= */

.me-burger {
	display: none;
}

@media (max-width: 1024px) {
	.me-burger {
		display: inline-flex;
	}
}

.me-burger__bars {
	position: relative;
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: background-color var(--me-transition);
}

.me-burger__bars::before,
.me-burger__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform var(--me-transition);
}

.me-burger__bars::before {
	top: -6px;
}

.me-burger__bars::after {
	top: 6px;
}

.me-burger[aria-expanded="true"] .me-burger__bars {
	background: transparent;
}

.me-burger[aria-expanded="true"] .me-burger__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.me-burger[aria-expanded="true"] .me-burger__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

.me-drawer-backdrop {
	position: fixed;
	inset: 0;
	z-index: 900;
	background: rgba(0, 0, 38, 0.55);
	opacity: 0;
	visibility: hidden;
	backdrop-filter: blur(2px);
	transition: opacity var(--me-transition), visibility var(--me-transition);
}

.me-drawer-backdrop.is-active {
	opacity: 1;
	visibility: visible;
}

.me-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 950;
	display: flex;
	flex-direction: column;
	width: min(22rem, 88vw);
	background: var(--me-white);
	box-shadow: var(--me-shadow-lg);
	transform: translateX(102%);
	transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
	overscroll-behavior: contain;
}

.me-drawer.is-active {
	transform: translateX(0);
}

.me-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--me-space-4);
	padding: var(--me-space-4) var(--me-space-5);
	border-bottom: 1px solid var(--me-border);
}

.me-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: var(--me-space-4) var(--me-space-5) var(--me-space-6);
	-webkit-overflow-scrolling: touch;
}

.me-drawer__foot {
	display: grid;
	gap: 0.6rem;
	padding: var(--me-space-4) var(--me-space-5);
	border-top: 1px solid var(--me-border);
	background: var(--me-gray-50);
}

.me-drawer .me-mobile-nav,
.me-drawer .me-mobile-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.me-drawer .me-mobile-nav li {
	margin: 0;
	border-bottom: 1px solid var(--me-gray-100);
}

.me-drawer .me-mobile-nav a {
	display: block;
	padding: 0.8rem 0;
	color: var(--me-gray-800);
	font-size: 1rem;
	font-weight: 600;
}

.me-drawer .me-mobile-nav .current-menu-item > a {
	color: var(--me-primary);
}

.me-drawer .me-mobile-nav .menu-item-has-children {
	position: relative;
}

.me-submenu-toggle {
	position: absolute;
	top: 0.45rem;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--me-border);
	border-radius: var(--me-radius-sm);
	background: var(--me-white);
	color: var(--me-gray-600);
	cursor: pointer;
	transition: all var(--me-transition);
}

.me-submenu-toggle svg {
	width: 16px;
	height: 16px;
	transition: transform var(--me-transition);
}

.me-submenu-toggle[aria-expanded="true"] {
	border-color: var(--me-blue-400);
	background: var(--me-blue-50);
	color: var(--me-primary);
}

.me-submenu-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.me-drawer .me-mobile-nav .sub-menu {
	display: none;
	padding: 0 0 0.5rem 0.9rem;
	border-left: 2px solid var(--me-blue-100);
	margin-bottom: 0.5rem;
}

.me-drawer .me-mobile-nav .sub-menu.is-open {
	display: block;
}

.me-drawer .me-mobile-nav .sub-menu li {
	border-bottom: 0;
}

.me-drawer .me-mobile-nav .sub-menu a {
	padding: 0.5rem 0;
	color: var(--me-gray-600);
	font-size: 0.92rem;
	font-weight: 500;
}

/* =========================================================================
   SEARCH MODAL
   ========================================================================= */

.me-search-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: start center;
	padding: clamp(4rem, 14vh, 9rem) var(--me-gutter) var(--me-gutter);
	background: rgba(0, 0, 38, 0.6);
	opacity: 0;
	visibility: hidden;
	backdrop-filter: blur(4px);
	transition: opacity var(--me-transition), visibility var(--me-transition);
}

.me-search-modal.is-active {
	opacity: 1;
	visibility: visible;
}

.me-search-modal__panel {
	width: min(38rem, 100%);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-radius: var(--me-radius-xl);
	background: var(--me-white);
	box-shadow: var(--me-shadow-lg);
	transform: translateY(-12px);
	transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.me-search-modal.is-active .me-search-modal__panel {
	transform: translateY(0);
}

.me-search-modal__panel h2 {
	margin-bottom: var(--me-space-4);
	font-size: var(--me-h3);
}

.me-search-modal__hint {
	margin: var(--me-space-4) 0 0;
	color: var(--me-text-muted);
	font-size: var(--me-text-sm);
}

/* Search form */
.me-search-form {
	position: relative;
	display: flex;
	gap: 0.5rem;
}

.me-search-form input[type="search"] {
	padding-left: 2.7rem;
	border-radius: var(--me-radius-pill);
}

.me-search-form__icon {
	position: absolute;
	top: 50%;
	left: 1rem;
	width: 18px;
	height: 18px;
	color: var(--me-gray-400);
	transform: translateY(-50%);
	pointer-events: none;
}

.me-search-form .me-btn {
	flex: none;
}

/* =========================================================================
   HERO
   ========================================================================= */

.me-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--me-navy-900);
	color: #fff;
}

.me-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.me-hero__media img {
	width: 100%;
	height: 100%;
	border-radius: 0;
	object-fit: cover;
	object-position: center;
}

.me-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(80% 120% at 12% 0%, rgba(36, 36, 155, 0.55), transparent 60%),
		linear-gradient(180deg, rgba(0, 0, 38, 0.82) 0%, rgba(0, 0, 38, 0.72) 45%, rgba(0, 0, 38, 0.92) 100%);
}

.me-hero__inner {
	display: grid;
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: center;
	padding-block: clamp(3.25rem, 8vw, 6.5rem);
}

.me-hero--split .me-hero__inner {
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

@media (max-width: 900px) {
	.me-hero--split .me-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}
}

.me-hero__title {
	margin-bottom: var(--me-space-4);
	color: #fff;
	font-size: var(--me-display);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.me-hero__title em {
	color: var(--me-gold-400);
	font-style: normal;
}

.me-hero__text {
	max-width: 40rem;
	margin-bottom: var(--me-space-6);
	color: rgba(255, 255, 255, 0.86);
	font-size: var(--me-text-xl);
	line-height: 1.6;
}

.me-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: var(--me-space-6);
}

.me-hero__eyebrow {
	color: var(--me-gold-400);
}

.me-hero__eyebrow::before {
	background: var(--me-gold-400);
}

.me-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: rgba(255, 255, 255, 0.8);
	font-size: var(--me-text-sm);
}

.me-hero__trust li {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
}

.me-hero__trust svg {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--me-gold-400);
}

/* Hero side card (quick apply) */
.me-hero__card {
	padding: clamp(1.5rem, 2.5vw, 2rem);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--me-radius-xl);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: var(--me-shadow-lg);
	backdrop-filter: blur(14px);
}

.me-hero__card h2 {
	margin-bottom: var(--me-space-2);
	color: #fff;
	font-size: var(--me-h4);
}

.me-hero__card p {
	margin-bottom: var(--me-space-5);
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--me-text-sm);
}

.me-hero__steps {
	display: grid;
	gap: 0.85rem;
	margin: 0 0 var(--me-space-5);
	padding: 0;
	list-style: none;
}

.me-hero__steps li {
	display: grid;
	grid-template-columns: 1.65rem 1fr;
	gap: 0.75rem;
	align-items: start;
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: var(--me-text-sm);
	line-height: 1.45;
}

.me-hero__steps b {
	display: grid;
	place-items: center;
	width: 1.65rem;
	height: 1.65rem;
	border-radius: 50%;
	background: var(--me-gold-400);
	color: var(--me-navy-900);
	font-size: 0.78rem;
	font-weight: 800;
}

/* =========================================================================
   PAGE HEADER (inner pages)
   ========================================================================= */

.me-page-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(2.25rem, 5vw, 3.75rem);
	background: linear-gradient(135deg, var(--me-navy-900), var(--me-blue-600) 130%);
	color: #fff;
}

.me-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
	background-size: 22px 22px;
	opacity: 0.5;
	mask-image: linear-gradient(115deg, transparent 35%, #000);
}

.me-page-hero__inner {
	max-width: 52rem;
}

.me-page-hero h1 {
	margin-bottom: var(--me-space-3);
	color: #fff;
}

.me-page-hero__text {
	margin-bottom: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: var(--me-text-lg);
}

.me-page-hero .me-badge {
	margin-bottom: var(--me-space-4);
}

/* Meta row */
.me-entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.15rem;
	margin-top: var(--me-space-5);
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--me-text-sm);
}

.me-entry-meta a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.35);
}

.me-entry-meta a:hover {
	color: var(--me-gold-400);
}

.me-entry-meta > span {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.me-entry-meta svg {
	width: 15px;
	height: 15px;
	opacity: 0.75;
}

.me-entry-meta__avatar img {
	border-radius: 50%;
}

/* =========================================================================
   SINGLE POST: HEADER BAND + BREADCRUMB BAR + ARTICLE CARD
   ========================================================================= */

.me-post-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(2.25rem, 5vw, 4rem);
	background: linear-gradient(135deg, var(--me-navy-900) 0%, var(--me-navy-800) 60%, var(--me-blue-600) 140%);
	color: #fff;
}

.me-post-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(70% 130% at 88% 0%, rgba(255, 255, 255, 0.1), transparent 62%);
}

/* Category pill */
.me-post-hero__cat {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: var(--me-space-5);
	padding: 0.5rem 1.15rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--me-radius-pill);
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: var(--me-text-xs);
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	backdrop-filter: blur(6px);
}

.me-post-hero__cat:hover {
	border-color: var(--me-accent);
	background: var(--me-accent);
	color: var(--me-navy-900);
}

.me-post-hero__cat svg {
	width: 15px;
	height: 15px;
	opacity: 0.9;
}

.me-post-hero__title {
	max-width: 60rem;
	margin-bottom: var(--me-space-4);
	color: #fff;
	font-size: clamp(1.9rem, 3vw + 0.9rem, 3.15rem);
	font-weight: 800;
	letter-spacing: -0.032em;
	line-height: 1.1;
}

.me-post-hero .me-entry-meta {
	margin-top: 0;
	gap: 0.5rem 1.5rem;
	color: rgba(255, 255, 255, 0.82);
	font-size: var(--me-text-base);
}

.me-post-hero .me-entry-meta svg {
	width: 17px;
	height: 17px;
	opacity: 0.85;
}

/* White breadcrumb bar under the header band */
.me-crumb-bar {
	border-bottom: 1px solid var(--me-border);
	background: var(--me-white);
	padding-block: 0.9rem;
}

.me-crumb-bar .me-breadcrumbs {
	margin-bottom: 0;
}

/* Tinted page area holding the article card */
.me-post-shell {
	padding-block: clamp(1.75rem, 3.5vw, 2.75rem) var(--me-section-y);
	background: var(--me-bg-alt);
}

.me-post-layout {
	display: grid;
	gap: clamp(1.75rem, 3vw, 2.5rem);
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

.me-post-layout--sidebar {
	grid-template-columns: minmax(0, 1fr) var(--me-sidebar);
}

@media (max-width: 1024px) {
	.me-post-layout--sidebar {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The article card itself */
.me-post-card {
	overflow: hidden;
	border: 1px solid var(--me-border);
	border-radius: var(--me-radius-xl);
	background: var(--me-white);
	box-shadow: var(--me-shadow);
}

.me-post-card__body {
	padding: clamp(1.25rem, 3.5vw, 3rem);
	font-size: var(--me-text-lg);
}

.me-post-card__body > *:last-child {
	margin-bottom: 0;
}

/*
 * Inside the card the prose fills the body width (the card padding supplies the
 * margins), capped so the measure never runs away on very wide screens.
 */
.me-post-card__body .entry-content > *,
.me-post-card__body .me-prose > *,
.me-post-card__body .me-entry-footer {
	max-width: 68rem;
}

.me-post-card__body .entry-content > .alignwide,
.me-post-card__body .entry-content > .alignfull {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	width: auto;
}

.me-post-card__body .me-table-scroll {
	max-width: 68rem;
}

.me-post-card__body .me-entry-footer {
	margin-top: var(--me-space-7);
}

/* Sibling blocks below the card sit on the tinted background as their own cards */
.me-post-shell .me-author-box,
.me-post-shell .me-post-nav,
.me-post-shell .me-comments {
	max-width: none;
}

.me-post-shell .me-comments {
	margin-top: var(--me-space-6);
	padding: clamp(1.25rem, 3.5vw, 2.5rem);
	border: 1px solid var(--me-border);
	border-radius: var(--me-radius-xl);
	background: var(--me-white);
}

.me-post-shell .me-author-box {
	background: var(--me-white);
	border-radius: var(--me-radius-xl);
}

/* =========================================================================
   POST COVER (featured image)
   ========================================================================= */

/*
 * A real <img>, full bleed, at its natural aspect ratio — no cropping, no
 * overlay, no CSS background. `width: 100%` on a full-width block element
 * avoids the 100vw + scrollbar overflow problem entirely.
 */
.me-post-cover {
	display: block;
	width: 100%;
	margin: 0;
	background: var(--me-gray-100);
}

.me-post-cover__img,
.me-post-cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
	box-shadow: none;
}

.me-post-cover__caption {
	margin: 0;
	padding: var(--me-space-4) clamp(1.25rem, 3.5vw, 3rem) 0;
	background: var(--me-white);
	color: var(--me-text-muted);
	font-size: var(--me-text-sm);
	text-align: left;
}

/* =========================================================================
   BREADCRUMBS
   ========================================================================= */

.me-breadcrumbs {
	margin-bottom: var(--me-space-4);
	font-size: var(--me-text-sm);
}

.me-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.me-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
}

.me-breadcrumbs li:not(:last-child)::after {
	content: "/";
	color: rgba(255, 255, 255, 0.4);
}

.me-breadcrumbs a {
	color: rgba(255, 255, 255, 0.78);
}

.me-breadcrumbs a:hover {
	color: #fff;
}

.me-breadcrumbs [aria-current="page"] {
	color: var(--me-gold-400);
	font-weight: 600;
}

/* Light variant (when placed on white background) */
.me-breadcrumbs--light a {
	color: var(--me-text-muted);
}

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

.me-breadcrumbs--light li:not(:last-child)::after {
	color: var(--me-gray-300);
}

.me-breadcrumbs--light [aria-current="page"] {
	color: var(--me-gray-700);
}

/* Chevron separator variant (used by the post breadcrumb bar) */
.me-breadcrumbs--chevron li:not(:last-child)::after {
	content: "";
	width: 6px;
	height: 6px;
	border-top: 1.6px solid currentColor;
	border-right: 1.6px solid currentColor;
	border-radius: 1px;
	opacity: 0.45;
	transform: rotate(45deg);
}

/* Home crumb rendered as an icon */
.me-breadcrumbs .is-home a {
	display: inline-flex;
	align-items: center;
}

.me-breadcrumbs .is-home svg {
	width: 16px;
	height: 16px;
}

/* =========================================================================
   TABLE OF CONTENTS
   ========================================================================= */

.me-toc {
	margin-bottom: var(--me-space-6);
	border: 1px solid var(--me-border);
	border-radius: var(--me-radius-lg);
	background: var(--me-gray-25);
	overflow: hidden;
}

.me-toc__summary {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.9rem 1.15rem;
	color: var(--me-navy-900);
	font-size: var(--me-text-sm);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}

.me-toc__summary::-webkit-details-marker {
	display: none;
}

.me-toc__summary svg {
	width: 17px;
	height: 17px;
	color: var(--me-primary);
}

.me-toc__summary::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-left: auto;
	border-right: 2px solid var(--me-gray-400);
	border-bottom: 2px solid var(--me-gray-400);
	transform: rotate(45deg);
	transition: transform var(--me-transition);
}

.me-toc[open] .me-toc__summary::after {
	transform: rotate(-135deg);
}

.me-toc__list {
	margin: 0;
	padding: 0 1.15rem 1.1rem;
	list-style: none;
	counter-reset: me-toc;
}

/* Only top-level entries are numbered, so the sequence never skips. */
.me-toc__list li {
	margin: 0;
}

.me-toc__list li:not(.is-sub) {
	counter-increment: me-toc;
}

.me-toc__list a {
	display: flex;
	gap: 0.6rem;
	padding: 0.4rem 0;
	color: var(--me-gray-600);
	font-size: 0.94rem;
	line-height: 1.45;
}

.me-toc__list a::before {
	content: counter(me-toc) ".";
	flex: none;
	color: var(--me-gray-400);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

.me-toc__list a:hover {
	color: var(--me-primary);
}

.me-toc__list .is-sub {
	padding-left: 1.5rem;
}

.me-toc__list .is-sub a::before {
	content: "–";
}

.me-toc__list .is-active > a {
	color: var(--me-primary);
	font-weight: 700;
}

/* Sidebar TOC variant with scroll tracking */
.me-widget .me-toc {
	margin-bottom: 0;
	border: 0;
	background: none;
}

/* Full list, no inner scrollbar — the page scroll handles a long contents. */
.me-widget--toc .me-toc__list {
	padding: 0;
}

/*
 * Exactly one table of contents per viewport: the sidebar version once the
 * sidebar sits alongside the article, the collapsible inline one below that.
 */
@media (min-width: 1025px) {
	.me-has-sidebar .me-content-area .me-toc {
		display: none;
	}
}

@media (max-width: 1024px) {
	.me-widget--toc {
		display: none;
	}
}

/* =========================================================================
   ENTRY CONTENT / PROSE
   ========================================================================= */

.entry-content > *,
.me-prose > * {
	margin-inline: auto;
	max-width: var(--me-content);
}

.entry-content > .alignwide,
.me-prose > .alignwide {
	max-width: min(var(--me-container), 100%);
}

.entry-content > .alignfull,
.me-prose > .alignfull {
	max-width: none;
}

.me-shell--full .entry-content > *,
.me-shell--full .me-prose > * {
	max-width: none;
}

.entry-content > h2,
.me-prose > h2 {
	margin-top: var(--me-space-8);
	padding-top: var(--me-space-2);
	scroll-margin-top: calc(var(--me-header-h) + var(--me-admin-offset) + 1.25rem);
}

.entry-content > h2::after,
.me-prose > h2::after {
	content: "";
	display: block;
	width: 3rem;
	height: 3px;
	margin-top: var(--me-space-3);
	border-radius: 3px;
	background: linear-gradient(90deg, var(--me-accent), var(--me-gold-400));
}

.entry-content > h3,
.me-prose > h3 {
	margin-top: var(--me-space-7);
	scroll-margin-top: calc(var(--me-header-h) + var(--me-admin-offset) + 1.25rem);
}

.entry-content > h4,
.entry-content > h5,
.entry-content > h6,
.me-prose > h4 {
	margin-top: var(--me-space-6);
}

.entry-content > p:first-child,
.me-prose > p:first-child {
	color: var(--me-gray-600);
	font-size: var(--me-text-xl);
	line-height: 1.6;
}

.entry-content ul,
.entry-content ol,
.me-prose ul,
.me-prose ol {
	padding-left: 0;
	list-style: none;
}

.entry-content ul > li,
.me-prose ul > li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.6rem;
}

.entry-content ul > li::before,
.me-prose ul > li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 0.25rem;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--me-accent);
	box-shadow: 0 0 0 3px var(--me-gold-100);
}

.entry-content ol,
.me-prose ol {
	counter-reset: me-ol;
}

.entry-content ol > li,
.me-prose ol > li {
	position: relative;
	padding-left: 2.25rem;
	margin-bottom: 0.7rem;
	counter-increment: me-ol;
}

.entry-content ol > li::before,
.me-prose ol > li::before {
	content: counter(me-ol);
	position: absolute;
	top: 0.15em;
	left: 0;
	display: grid;
	place-items: center;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	background: var(--me-blue-100);
	color: var(--me-navy-800);
	font-size: 0.78rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

/* Nested lists keep bullets subtle */
.entry-content li ul > li::before,
.me-prose li ul > li::before {
	width: 6px;
	height: 6px;
	background: var(--me-gray-300);
	box-shadow: none;
}

.entry-content strong,
.me-prose strong {
	color: var(--me-navy-900);
	font-weight: 700;
}

/* Anchor link on headings */
.me-anchor {
	margin-left: 0.4rem;
	color: var(--me-gray-300);
	font-size: 0.7em;
	opacity: 0;
	text-decoration: none;
	transition: opacity var(--me-transition);
}

h2:hover > .me-anchor,
h3:hover > .me-anchor,
.me-anchor:focus {
	opacity: 1;
}

/* =========================================================================
   CARDS
   ========================================================================= */

.me-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--me-border);
	border-radius: var(--me-radius-lg);
	background: var(--me-white);
	box-shadow: var(--me-shadow-xs);
	transition: transform var(--me-transition), box-shadow var(--me-transition), border-color var(--me-transition);
}

.me-card:hover {
	border-color: var(--me-blue-100);
	box-shadow: var(--me-shadow-md);
	transform: translateY(-3px);
}

.me-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--me-gray-100);
}

.me-card__media img {
	width: 100%;
	height: 100%;
	border-radius: 0;
	object-fit: cover;
	transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.me-card:hover .me-card__media img {
	transform: scale(1.05);
}

.me-card__media--placeholder {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--me-navy-800), var(--me-blue-600));
	color: rgba(255, 255, 255, 0.35);
}

.me-card__media--placeholder svg {
	width: 46px;
	height: 46px;
}

.me-card__cat {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 2;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: var(--me-shadow-sm);
}

.me-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(1.1rem, 2vw, 1.4rem);
}

.me-card__title {
	margin-bottom: var(--me-space-2);
	font-size: var(--me-text-lg);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.012em;
}

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

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

.me-card__excerpt {
	margin-bottom: var(--me-space-4);
	color: var(--me-text-muted);
	font-size: var(--me-text-sm);
	line-height: 1.6;
}

.me-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.9rem;
	margin-top: auto;
	padding-top: var(--me-space-3);
	border-top: 1px solid var(--me-gray-100);
	color: var(--me-gray-400);
	font-size: var(--me-text-xs);
	font-weight: 500;
}

.me-card__meta svg {
	width: 14px;
	height: 14px;
	margin-right: 0.25rem;
	vertical-align: -2px;
}

/* Whole-card link overlay */
.me-card__link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Horizontal card (list layouts / sidebar) */
.me-card--row {
	flex-direction: row;
	align-items: stretch;
	gap: 0;
}

.me-card--row .me-card__media {
	flex: none;
	width: 38%;
	aspect-ratio: auto;
}

@media (max-width: 640px) {
	.me-card--row {
		flex-direction: column;
	}
	.me-card--row .me-card__media {
		width: 100%;
		aspect-ratio: 16 / 9;
	}
}

/* Feature card (icon + text, no image) */
.me-feature {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: clamp(1.3rem, 2.2vw, 1.75rem);
	border: 1px solid var(--me-border);
	border-radius: var(--me-radius-lg);
	background: var(--me-white);
	box-shadow: var(--me-shadow-xs);
	transition: transform var(--me-transition), box-shadow var(--me-transition), border-color var(--me-transition);
}

.me-feature:hover {
	border-color: var(--me-blue-100);
	box-shadow: var(--me-shadow-md);
	transform: translateY(-3px);
}

.me-feature__icon {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: var(--me-space-4);
	border-radius: var(--me-radius);
	background: var(--me-blue-50);
	color: var(--me-primary);
}

.me-feature__icon svg {
	width: 24px;
	height: 24px;
}

.me-feature--accent .me-feature__icon {
	background: var(--me-gold-100);
	color: var(--me-gold-700);
}

.me-feature h3 {
	margin-bottom: var(--me-space-2);
	font-size: var(--me-text-lg);
}

.me-feature p {
	margin-bottom: var(--me-space-4);
	color: var(--me-text-muted);
	font-size: var(--me-text-sm);
	line-height: 1.6;
}

.me-feature__link {
	margin-top: auto;
	font-size: var(--me-text-sm);
	font-weight: 700;
}

.me-feature__link::after {
	content: " →";
	transition: transform var(--me-transition);
}

/* Link list (visa types grid) */
.me-linklist {
	display: grid;
	gap: 0.6rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.me-linklist li {
	margin: 0;
	padding: 0;
}

.me-linklist li::before {
	display: none;
}

.me-linklist a {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	height: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid var(--me-border);
	border-radius: var(--me-radius);
	background: var(--me-white);
	color: var(--me-gray-700);
	font-size: var(--me-text-sm);
	font-weight: 600;
	line-height: 1.35;
}

.me-linklist a::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--me-accent);
}

.me-linklist a:hover {
	border-color: var(--me-blue-400);
	background: var(--me-blue-50);
	color: var(--me-primary);
	transform: translateX(2px);
}

/* Child-page links block, styled to match in-content headings */
.me-child-links {
	max-width: var(--me-content);
	margin: var(--me-space-8) auto 0;
}

.me-shell--full .me-child-links {
	max-width: none;
}

.me-child-links h2 {
	font-size: var(--me-h3);
}

.me-child-links h2::after {
	content: "";
	display: block;
	width: 3rem;
	height: 3px;
	margin-top: var(--me-space-3);
	border-radius: 3px;
	background: linear-gradient(90deg, var(--me-accent), var(--me-gold-400));
}

/* Stat strip */
.me-stats {
	display: grid;
	gap: var(--me-space-4);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.me-stats li {
	margin: 0;
	padding: var(--me-space-5);
	border-radius: var(--me-radius-lg);
	background: var(--me-white);
	border: 1px solid var(--me-border);
	text-align: center;
}

.me-stats b {
	display: block;
	color: var(--me-primary);
	font-size: clamp(1.6rem, 2.4vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.me-stats span {
	color: var(--me-text-muted);
	font-size: var(--me-text-sm);
}

/* =========================================================================
   CTA BANDS
   ========================================================================= */

.me-cta {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: var(--me-radius-xl);
	padding: clamp(1.75rem, 4vw, 3rem);
	background: linear-gradient(135deg, var(--me-navy-900), var(--me-blue-600));
	color: #fff;
}

.me-cta::before {
	content: "";
	position: absolute;
	top: -40%;
	right: -10%;
	z-index: -1;
	width: 26rem;
	height: 26rem;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 206, 31, 0.32), transparent 65%);
}

.me-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--me-space-5);
}

.me-cta__copy {
	flex: 1 1 22rem;
}

.me-cta h2,
.me-cta h3 {
	margin-bottom: var(--me-space-2);
	color: #fff;
}

.me-cta p {
	margin-bottom: 0;
	color: rgba(255, 255, 255, 0.84);
}

.me-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
}

/* Inline CTA inside article content */
.entry-content .me-cta-inline,
.me-cta-inline {
	max-width: var(--me-content);
	margin: var(--me-space-7) auto;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	border: 1px solid var(--me-blue-100);
	border-left: 4px solid var(--me-primary);
	border-radius: var(--me-radius-lg);
	background: var(--me-blue-50);
}

.me-cta-inline h3 {
	margin-bottom: var(--me-space-2);
	font-size: var(--me-h4);
}

.me-cta-inline p {
	margin-bottom: var(--me-space-4);
	color: var(--me-gray-600);
	font-size: var(--me-text-sm);
}

.me-cta-inline p:last-child {
	margin-bottom: 0;
}

/* =========================================================================
   SIDEBAR / WIDGETS
   ========================================================================= */

/*
 * Sticky sidebar, no scrollbar of its own.
 *
 * `--me-sidebar-top` is the sticky offset. theme.js recalculates it: when the
 * column fits in the viewport it is the header height, so the sidebar pins just
 * below the header. When the column is taller than the viewport the offset goes
 * negative, so the column travels with the page until its bottom edge meets the
 * bottom of the viewport and then pins there — the sidebar stays on screen and
 * every widget can still be reached, with no inner scroll area.
 */
.me-sidebar {
	position: sticky;
	top: var(--me-sidebar-top, calc(var(--me-header-h) + var(--me-admin-offset) + 1.25rem));
	display: grid;
	gap: var(--me-space-5);
	align-self: start;
}

@media (max-width: 1024px) {
	.me-sidebar {
		position: static;
		top: auto;
	}
}

.me-widget,
.widget {
	padding: var(--me-space-5);
	border: 1px solid var(--me-border);
	border-radius: var(--me-radius-lg);
	background: var(--me-white);
	box-shadow: var(--me-shadow-xs);
	font-size: var(--me-text-sm);
}

.me-widget__title,
.widget .widget-title,
.widget .wp-block-heading,
.widget h2 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: var(--me-space-4);
	padding-bottom: var(--me-space-3);
	border-bottom: 1px solid var(--me-gray-100);
	color: var(--me-navy-900);
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	text-transform: none;
}

.me-widget__title svg {
	width: 17px;
	height: 17px;
	color: var(--me-primary);
}

.me-widget ul,
.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.me-widget li,
.widget li {
	margin: 0;
	padding: 0;
}

.me-widget li::before,
.widget li::before {
	display: none;
}

.me-widget li + li,
.widget li + li {
	border-top: 1px solid var(--me-gray-100);
}

.me-widget li > a,
.widget li > a {
	display: block;
	padding: 0.55rem 0;
	color: var(--me-gray-600);
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.45;
	transition: color var(--me-transition), transform var(--me-transition);
}

/*
 * Nudge with a transform, not padding. Changing padding on hover alters the
 * box metrics, which re-wraps long link text and makes neighbouring lines
 * jump into each other.
 */
.me-widget li > a:hover,
.widget li > a:hover {
	color: var(--me-primary);
	transform: translateX(3px);
}

/*
 * Some core widgets mix prose and links inside one list item (Recent Comments
 * renders "<author> on <post title>"). Those links are direct children of the
 * li, so the block rule above would break the sentence across lines and let
 * the link padding overlap the neighbouring text. Keep them inline.
 */
.me-widget .recentcomments a,
.widget .recentcomments a,
.me-widget li .comment-author-link a,
.widget li .comment-author-link a,
.wp-block-latest-comments__comment a,
.me-widget li > a.rsswidget + a,
.widget li cite a {
	display: inline;
	padding: 0;
}

.me-widget .recentcomments a:hover,
.widget .recentcomments a:hover,
.wp-block-latest-comments__comment a:hover {
	transform: none;
	text-decoration: underline;
}

/* Prose links in widgets are underlined, so they are not colour-only. */
.me-widget p a,
.widget p a,
.widget .textwidget a,
.widget .recentcomments a {
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
	text-underline-offset: 0.18em;
}

.me-widget p a:hover,
.widget p a:hover,
.widget .textwidget a:hover,
.widget .recentcomments a:hover {
	text-decoration-color: currentColor;
}

.me-widget .sub-menu,
.widget .sub-menu,
.widget .children {
	padding-left: 0.75rem;
}

/* Sticky apply card */
.me-apply-card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: var(--me-space-5);
	border-radius: var(--me-radius-lg);
	background: linear-gradient(160deg, var(--me-navy-900), var(--me-blue-600));
	color: #fff;
	box-shadow: var(--me-shadow-md);
}

.me-apply-card::before {
	content: "";
	position: absolute;
	top: -6rem;
	right: -6rem;
	z-index: -1;
	width: 14rem;
	height: 14rem;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 206, 31, 0.35), transparent 65%);
}

.me-apply-card h2 {
	margin-bottom: var(--me-space-2);
	color: #fff;
	font-size: var(--me-text-lg);
	border: 0;
	padding: 0;
}

.me-apply-card p {
	margin-bottom: var(--me-space-4);
	color: rgba(255, 255, 255, 0.82);
	font-size: var(--me-text-sm);
	line-height: 1.55;
}

.me-apply-card__list {
	display: grid;
	gap: 0.5rem;
	margin: 0 0 var(--me-space-5);
	padding: 0;
	list-style: none;
}

.me-apply-card__list li {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0;
	border: 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: var(--me-text-sm);
	line-height: 1.45;
}

.me-apply-card__list svg {
	flex: none;
	width: 17px;
	height: 17px;
	margin-top: 0.15rem;
	color: var(--me-gold-400);
}

.me-apply-card .me-btn + .me-btn {
	margin-top: 0.55rem;
}

.me-apply-card__note {
	margin: var(--me-space-4) 0 0;
	color: rgba(255, 255, 255, 0.6);
	font-size: var(--me-text-xs);
	text-align: center;
}

/* Sidebar post list */
.me-mini-list {
	display: grid;
	gap: var(--me-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.me-mini-list li {
	display: grid;
	grid-template-columns: 4.25rem 1fr;
	gap: 0.85rem;
	align-items: start;
	margin: 0;
	border: 0 !important;
}

.me-mini-list img {
	width: 100%;
	aspect-ratio: 1;
	border-radius: var(--me-radius-sm);
	object-fit: cover;
	background: var(--me-gray-100);
}

.me-mini-list__title {
	display: block;
	color: var(--me-navy-900) !important;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.4;
	padding: 0 !important;
}

.me-mini-list__title:hover {
	color: var(--me-primary) !important;
}

/* The thumbnail link is `li > a`, so opt it out of the list-link nudge. */
.me-mini-list li > a:hover {
	transform: none;
}

.me-mini-list__meta {
	display: block;
	margin-top: 0.25rem;
	color: var(--me-gray-400);
	font-size: var(--me-text-xs);
}

/* Tag cloud */
.wp-block-tag-cloud,
.tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.wp-block-tag-cloud a,
.tagcloud a {
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--me-border);
	border-radius: var(--me-radius-pill);
	background: var(--me-gray-50);
	color: var(--me-gray-600);
	font-size: 0.8rem !important;
	font-weight: 600;
}

.wp-block-tag-cloud a:hover,
.tagcloud a:hover {
	border-color: var(--me-blue-400);
	background: var(--me-blue-50);
	color: var(--me-primary);
}

/* Widget: calendar & search tidy-ups */
.widget_search .me-search-form,
.widget_block form {
	margin: 0;
}

.wp-calendar-table {
	font-size: var(--me-text-xs);
}

.wp-calendar-table th,
.wp-calendar-table td {
	padding: 0.3rem;
	text-align: center;
}

/* =========================================================================
   ARTICLE FOOTER: tags, share, author, related, prev/next
   ========================================================================= */

.me-entry-footer {
	max-width: var(--me-content);
	margin: var(--me-space-8) auto 0;
	padding-top: var(--me-space-6);
	border-top: 1px solid var(--me-border);
}

.me-shell--full .me-entry-footer {
	max-width: none;
}

.me-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: var(--me-space-5);
}

.me-tags__label {
	color: var(--me-text-muted);
	font-size: var(--me-text-sm);
	font-weight: 700;
}

.me-tags a {
	padding: 0.3rem 0.7rem;
	border-radius: var(--me-radius-pill);
	background: var(--me-gray-100);
	color: var(--me-gray-600);
	font-size: var(--me-text-xs);
	font-weight: 600;
}

.me-tags a:hover {
	background: var(--me-blue-50);
	color: var(--me-primary);
}

.me-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.me-share__label {
	margin-right: 0.25rem;
	color: var(--me-text-muted);
	font-size: var(--me-text-sm);
	font-weight: 700;
}

.me-share a,
.me-share button {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--me-border);
	border-radius: 50%;
	background: var(--me-white);
	color: var(--me-gray-600);
	cursor: pointer;
}

.me-share a:hover,
.me-share button:hover {
	border-color: var(--me-navy-800);
	background: var(--me-navy-800);
	color: #fff;
}

.me-share svg {
	width: 17px;
	height: 17px;
}

.me-author-box {
	display: flex;
	gap: var(--me-space-5);
	max-width: var(--me-content);
	margin: var(--me-space-6) auto 0;
	padding: var(--me-space-5);
	border: 1px solid var(--me-border);
	border-radius: var(--me-radius-lg);
	background: var(--me-gray-25);
}

.me-shell--full .me-author-box {
	max-width: none;
}

.me-author-box img {
	flex: none;
	border-radius: 50%;
}

.me-author-box h3 {
	margin-bottom: var(--me-space-1);
	font-size: var(--me-text-lg);
}

.me-author-box p {
	margin-bottom: var(--me-space-2);
	color: var(--me-text-muted);
	font-size: var(--me-text-sm);
}

.me-author-box p:last-child {
	margin-bottom: 0;
}

@media (max-width: 560px) {
	.me-author-box {
		flex-direction: column;
	}
}

/* Prev / next post navigation */
.me-post-nav {
	display: grid;
	gap: var(--me-space-4);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
	max-width: var(--me-content);
	margin: var(--me-space-6) auto 0;
}

.me-shell--full .me-post-nav {
	max-width: none;
}

.me-post-nav a {
	display: block;
	padding: var(--me-space-4) var(--me-space-5);
	border: 1px solid var(--me-border);
	border-radius: var(--me-radius-lg);
	background: var(--me-white);
	transition: all var(--me-transition);
}

.me-post-nav a:hover {
	border-color: var(--me-blue-400);
	background: var(--me-blue-50);
	transform: translateY(-2px);
}

.me-post-nav__label {
	display: block;
	margin-bottom: var(--me-space-1);
	color: var(--me-gray-400);
	font-size: var(--me-text-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.me-post-nav__title {
	display: block;
	color: var(--me-navy-900);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.4;
}

.me-post-nav__next {
	text-align: right;
}

/* Progress bar (reading) */
.me-progress {
	position: fixed;
	top: calc(var(--me-header-h) + var(--me-admin-offset));
	left: 0;
	z-index: 490;
	width: 100%;
	height: 3px;
	background: transparent;
	pointer-events: none;
}

.me-progress__bar {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--me-primary), var(--me-accent));
	transition: width 80ms linear;
}

/* =========================================================================
   PAGINATION
   ========================================================================= */

.me-pagination {
	margin-top: var(--me-space-8);
}

.me-pagination .nav-links,
.me-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.me-pagination a.page-numbers,
.me-pagination span.page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 0.75rem;
	border: 1px solid var(--me-border);
	border-radius: var(--me-radius);
	background: var(--me-white);
	color: var(--me-gray-600);
	font-size: var(--me-text-sm);
	font-weight: 700;
}

.me-pagination a.page-numbers:hover {
	border-color: var(--me-blue-400);
	background: var(--me-blue-50);
	color: var(--me-primary);
}

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

.me-pagination .page-numbers.dots {
	border-color: transparent;
	background: none;
}

/* =========================================================================
   COMMENTS
   ========================================================================= */

.me-comments {
	max-width: var(--me-content);
	margin: var(--me-space-8) auto 0;
	padding-top: var(--me-space-7);
	border-top: 1px solid var(--me-border);
}

.me-shell--full .me-comments {
	max-width: none;
}

.me-comments__title {
	margin-bottom: var(--me-space-6);
	font-size: var(--me-h3);
}

.comment-list {
	margin: 0 0 var(--me-space-7);
	padding: 0;
	list-style: none;
}

.comment-list ol,
.comment-list ul {
	margin: 0;
	padding-left: clamp(1rem, 3vw, 3rem);
	list-style: none;
}

.comment-list li {
	margin: 0;
	padding: 0;
}

.comment-list li::before {
	display: none;
}

.comment-body {
	padding: var(--me-space-5);
	margin-bottom: var(--me-space-4);
	border: 1px solid var(--me-border);
	border-radius: var(--me-radius-lg);
	background: var(--me-white);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.85rem;
	margin-bottom: var(--me-space-3);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 700;
	color: var(--me-navy-900);
}

.comment-author img {
	border-radius: 50%;
}

.comment-metadata {
	color: var(--me-gray-400);
	font-size: var(--me-text-xs);
}

.comment-metadata a {
	color: inherit;
}

.reply a,
.comment-reply-link {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	border: 1px solid var(--me-border);
	border-radius: var(--me-radius-pill);
	color: var(--me-gray-600);
	font-size: var(--me-text-xs);
	font-weight: 700;
}

.reply a:hover,
.comment-reply-link:hover {
	border-color: var(--me-primary);
	background: var(--me-blue-50);
	color: var(--me-primary);
}

.comment-respond {
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--me-border);
	border-radius: var(--me-radius-lg);
	background: var(--me-gray-25);
}

.comment-reply-title {
	margin-bottom: var(--me-space-4);
	font-size: var(--me-h4);
}

.comment-form {
	display: grid;
	gap: var(--me-space-4);
}

.comment-form p {
	margin: 0;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: var(--me-text-sm);
}

.comment-form-cookies-consent input {
	width: auto;
	margin-top: 0.3rem;
}

.comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}

.comment-form .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	justify-self: start;
	padding: 0.78rem 1.6rem;
	border: 0;
	border-radius: var(--me-radius-pill);
	background: var(--me-primary);
	color: #fff;
	font-size: var(--me-text-sm);
	font-weight: 700;
	cursor: pointer;
}

.comment-form .submit:hover {
	background: var(--me-primary-dark);
}

.comment-notes,
.logged-in-as {
	color: var(--me-text-muted);
	font-size: var(--me-text-sm);
}

/* =========================================================================
   404 / NO RESULTS
   ========================================================================= */

.me-empty {
	max-width: 40rem;
	margin-inline: auto;
	padding-block: clamp(2rem, 6vw, 4rem);
	text-align: center;
}

.me-empty__code {
	display: block;
	margin-bottom: var(--me-space-3);
	background: linear-gradient(135deg, var(--me-primary), var(--me-accent));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	font-size: clamp(4rem, 14vw, 8rem);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1;
}

.me-empty p {
	color: var(--me-text-muted);
	font-size: var(--me-text-lg);
}

.me-empty .me-search-form {
	max-width: 26rem;
	margin: var(--me-space-6) auto 0;
}

.me-empty__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: var(--me-space-6);
	padding: 0;
	list-style: none;
}

.me-empty__links li {
	margin: 0;
}

/* =========================================================================
   FOOTER
   ========================================================================= */

.me-footer {
	margin-top: auto;
	background: var(--me-navy-950);
	color: rgba(255, 255, 255, 0.72);
	font-size: var(--me-text-sm);
}

.me-footer__cta {
	padding-block: clamp(2rem, 4vw, 3rem);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: linear-gradient(135deg, var(--me-navy-900), var(--me-blue-600));
}

.me-footer__cta .me-cta {
	padding: 0;
	background: none;
	border-radius: 0;
}

.me-footer__cta .me-cta::before {
	display: none;
}

.me-footer__widgets {
	display: grid;
	gap: clamp(1.75rem, 3.5vw, 3rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.me-footer__widgets .widget,
.me-footer__widgets .me-widget {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	margin-bottom: var(--me-space-6);
}

.me-footer__widgets .widget:last-child {
	margin-bottom: 0;
}

.me-footer__widgets .widget-title,
.me-footer__widgets .wp-block-heading,
.me-footer__widgets h2,
.me-footer__widgets h3,
.me-footer__widgets .me-widget__title {
	margin-bottom: var(--me-space-4);
	padding-bottom: 0;
	border: 0;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.me-footer__widgets .widget-title::after,
.me-footer__widgets .me-widget__title::after {
	content: "";
	display: block;
	width: 1.75rem;
	height: 2px;
	margin-top: 0.6rem;
	border-radius: 2px;
	background: var(--me-accent);
}

.me-footer__widgets li + li,
.me-footer__widgets .widget li + li {
	border-top: 0;
}

/*
 * Scoped to list links deliberately. A blanket `.me-footer__widgets a` rule
 * also matches inline links inside text/paragraph widgets, and vertical
 * padding on an inline box spills outside its line box — so the padding of a
 * link on one line overlaps the text on the line above and below it.
 */
.me-footer__widgets li > a,
.me-footer__widgets .widget li > a {
	display: block;
	padding: 0.28rem 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.875rem;
	font-weight: 400;
	transition: color var(--me-transition), transform var(--me-transition);
}

.me-footer__widgets li > a:hover,
.me-footer__widgets .widget li > a:hover {
	color: var(--me-gold-400);
	transform: translateX(3px);
}

.me-footer__widgets p {
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.65;
}

/* Inline links in footer prose stay in the text flow. */
.me-footer__widgets p a,
.me-footer__widgets .textwidget a,
.me-footer__widgets .wp-block-paragraph a,
.me-footer__widgets figcaption a,
.me-footer__widgets .rss-date + a,
.me-footer__widgets cite a {
	display: inline;
	padding: 0;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.35);
	text-underline-offset: 0.18em;
	transform: none;
}

.me-footer__widgets p a:hover,
.me-footer__widgets .textwidget a:hover,
.me-footer__widgets .wp-block-paragraph a:hover,
.me-footer__widgets figcaption a:hover,
.me-footer__widgets cite a:hover {
	color: var(--me-gold-400);
	text-decoration-color: currentColor;
	transform: none;
}

/* Recent-comments style widgets put a link inside list-item prose. */
.me-footer__widgets .recentcomments a,
.me-footer__widgets .wp-block-latest-comments__comment a {
	display: inline;
	padding: 0;
}

.me-footer__about .me-brand__name {
	color: #fff;
}

.me-footer__about img {
	max-height: 46px;
	width: auto;
	margin-bottom: var(--me-space-4);
}

.me-footer__social {
	display: flex;
	gap: 0.5rem;
	margin: var(--me-space-4) 0 0;
	padding: 0;
	list-style: none;
}

.me-footer__social a {
	display: grid !important;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0 !important;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.75);
}

.me-footer__social a:hover {
	border-color: var(--me-accent);
	background: var(--me-accent);
	color: var(--me-navy-900);
	transform: none;
}

.me-footer__social svg {
	width: 16px;
	height: 16px;
}

.me-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-block: var(--me-space-5);
}

.me-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--me-space-4);
	font-size: var(--me-text-xs);
}

.me-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.me-footer__legal li {
	margin: 0;
}

.me-footer__legal a {
	color: rgba(255, 255, 255, 0.7);
}

.me-footer__legal a:hover {
	color: var(--me-gold-400);
}

.me-footer__disclaimer {
	padding-bottom: var(--me-space-6);
	color: rgba(255, 255, 255, 0.45);
	font-size: var(--me-text-xs);
	line-height: 1.6;
}

/* Back to top */
.me-to-top {
	position: fixed;
	right: clamp(1rem, 3vw, 1.75rem);
	bottom: clamp(1rem, 3vw, 1.75rem);
	z-index: 480;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--me-navy-800);
	color: #fff;
	box-shadow: var(--me-shadow-md);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all var(--me-transition);
}

.me-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.me-to-top:hover {
	background: var(--me-primary);
}

.me-to-top svg {
	width: 20px;
	height: 20px;
}

/* Mobile sticky apply bar */
.me-mobile-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 470;
	display: none;
	gap: 0.5rem;
	padding: 0.6rem 0.75rem;
	border-top: 1px solid var(--me-border);
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 -4px 20px rgba(3, 3, 51, 0.1);
	backdrop-filter: blur(10px);
}

.me-mobile-cta .me-btn {
	flex: 1;
	padding-inline: 0.75rem;
}

@media (max-width: 620px) {
	.me-mobile-cta {
		display: flex;
	}
	.me-to-top {
		bottom: 4.75rem;
	}
	body {
		padding-bottom: 3.9rem;
	}
}
