/* ==========================================================================
   WorldProMax Main Theme Stylesheet
   Lightweight, accessible, responsive magazine layout
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background-color: var(--wpm-grey);
	color: var(--wpm-text);
	font-family: var(--wpm-font-sans);
	font-size: 16px;
	line-height: 1.65;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--wpm-royal);
	text-decoration: none;
	transition: color var(--wpm-transition);
}

a:hover,
a:focus-visible {
	color: var(--wpm-orange);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--wpm-orange);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.75rem;
	color: var(--wpm-navy);
	font-family: var(--wpm-font-heading);
	font-weight: 700;
	line-height: 1.25;
	text-wrap: balance;
}

p {
	margin: 0 0 1.25rem;
}

/* Container & Buttons */
.wpm-container {
	width: 100%;
	max-width: var(--wpm-container);
	margin-inline: auto;
	padding-inline: 20px;
}

.wpm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 22px;
	border: 0;
	border-radius: var(--wpm-radius);
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color var(--wpm-transition), transform var(--wpm-transition), color var(--wpm-transition);
}

.wpm-btn--orange {
	background-color: var(--wpm-orange);
	color: var(--wpm-white);
}

.wpm-btn--orange:hover,
.wpm-btn--orange:focus-visible {
	background-color: var(--wpm-orange-hover);
	color: var(--wpm-white);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.wpm-header {
	position: relative;
	z-index: 40;
	background-color: var(--wpm-navy);
	color: var(--wpm-white);
	box-shadow: 0 2px 10px rgba(4, 19, 53, 0.12);
}

.wpm-has-sticky-header .wpm-header {
	position: sticky;
	top: 0;
}

.admin-bar.wpm-has-sticky-header .wpm-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar.wpm-has-sticky-header .wpm-header {
		top: 46px;
	}
}

.wpm-header-brandbar {
	background-color: var(--wpm-white);
	border-bottom: 1px solid var(--wpm-border);
	padding-block: 10px;
}

.wpm-header-brandbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.wpm-header-navwrap {
	background-color: var(--wpm-navy);
}

.wpm-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 64px;
}

.wpm-header__left {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}

/* Brand Plate ensures original navy/orange logo retains full contrast on Deep Navy header */
.wpm-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wpm-brand__plate {
	display: inline-flex;
	align-items: center;
	background-color: var(--wpm-white);
	padding: 4px 10px;
	border-radius: 5px;
}

.wpm-header--split_white .wpm-brand__plate,
.wpm-brand--footer .wpm-brand__plate {
	padding: 6px 12px;
}

.wpm-brand__img {
	width: auto;
	height: 40px;
	max-width: 190px;
	object-fit: contain;
}

.wpm-brand--footer .wpm-brand__img {
	height: 46px;
	max-width: 210px;
}

.wpm-brand__tagline {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 500;
	white-space: nowrap;
}

.wpm-header--split_white .wpm-brand__tagline {
	color: var(--wpm-text-muted);
}

/* Primary Navigation */
.wpm-nav {
	display: none;
	flex: 1 1 auto;
	justify-content: center;
}

@media (min-width: 1024px) {
	.wpm-nav {
		display: flex;
	}
}

.wpm-nav__list {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpm-nav__list > li {
	position: relative;
}

.wpm-nav__list > li > a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 12px;
	color: var(--wpm-white);
	font-size: 0.9rem;
	font-weight: 600;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color var(--wpm-transition), border-color var(--wpm-transition);
}

.wpm-nav__list > li > a:hover,
.wpm-nav__list > li > a:focus-visible,
.wpm-nav__list > li.current-menu-item > a,
.wpm-nav__list > li.current_page_item > a,
.wpm-nav__list > li.current-menu-ancestor > a {
	color: var(--wpm-orange);
	border-bottom-color: var(--wpm-orange);
}

/* Submenus */
.wpm-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background-color: var(--wpm-white);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius);
	box-shadow: var(--wpm-shadow-md);
	list-style: none;
	margin: 0;
	padding: 6px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--wpm-transition), transform var(--wpm-transition), visibility var(--wpm-transition);
	z-index: 60;
}

.wpm-nav__list li:hover > .sub-menu,
.wpm-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.wpm-nav__list .sub-menu a {
	display: block;
	padding: 9px 16px;
	color: var(--wpm-text);
	font-size: 0.875rem;
	font-weight: 500;
}

.wpm-nav__list .sub-menu a:hover {
	background-color: var(--wpm-grey);
	color: var(--wpm-royal);
}

.wpm-header__right {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.wpm-header__social-desktop {
	display: none;
}

@media (min-width: 1180px) {
	.wpm-header__social-desktop {
		display: block;
	}
}

.wpm-hamburger,
.wpm-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--wpm-radius);
	background: transparent;
	color: var(--wpm-white);
	cursor: pointer;
	transition: background-color var(--wpm-transition), border-color var(--wpm-transition);
}

.wpm-hamburger:hover,
.wpm-search-toggle:hover {
	background-color: rgba(255, 255, 255, 0.12);
	border-color: var(--wpm-orange);
}

@media (min-width: 1024px) {
	.wpm-hamburger {
		display: none;
	}
}

/* Social Lists */
.wpm-social {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpm-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: var(--wpm-radius);
	color: inherit;
	transition: background-color var(--wpm-transition), color var(--wpm-transition);
}

.wpm-social--header .wpm-social__link {
	color: rgba(255, 255, 255, 0.88);
}

.wpm-header--split_white .wpm-social--header .wpm-social__link {
	color: var(--wpm-navy);
}

.wpm-social--header .wpm-social__link:hover {
	background-color: var(--wpm-orange);
	color: var(--wpm-white);
}

/* Search Drawer */
.wpm-search-drawer {
	background-color: var(--wpm-white);
	border-bottom: 1px solid var(--wpm-border);
	padding-block: 14px;
}

.wpm-search-drawer__inner {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wpm-search-drawer__inner .wpm-search-form {
	flex: 1 1 auto;
}

.wpm-search-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius);
	background: var(--wpm-grey);
	color: var(--wpm-navy);
	cursor: pointer;
}

.wpm-search-form {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.wpm-search-form__input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius);
	font-family: inherit;
	font-size: 0.9375rem;
	color: var(--wpm-text);
	background-color: var(--wpm-white);
}

.wpm-search-form__submit {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 10px 18px;
	border: 0;
	border-radius: var(--wpm-radius);
	background-color: var(--wpm-orange);
	color: var(--wpm-white);
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.wpm-search-form__submit:hover {
	background-color: var(--wpm-orange-hover);
}

/* Mobile Drawer */
.wpm-mobile-drawer {
	background-color: var(--wpm-navy-deep);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 16px 20px 24px;
}

.wpm-mobile-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.wpm-mobile-drawer__title {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--wpm-orange);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wpm-mobile-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--wpm-radius);
	background: transparent;
	color: var(--wpm-white);
	cursor: pointer;
}

.wpm-mobile-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpm-mobile-nav__list li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wpm-mobile-nav__list a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 4px;
	color: var(--wpm-white);
	font-weight: 600;
}

.wpm-mobile-nav__list .sub-menu {
	list-style: none;
	margin: 0 0 8px;
	padding-inline-start: 16px;
}

.wpm-mobile-nav__list .sub-menu a {
	font-weight: 500;
	color: rgba(255, 255, 255, 0.82);
}

.wpm-mobile-drawer__social {
	margin-top: 16px;
	color: var(--wpm-white);
}

/* ==========================================================================
   Trending Topics Strip
   ========================================================================== */
.wpm-trending-bar {
	background-color: var(--wpm-navy-deep);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--wpm-white);
}

.wpm-trending-bar__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 42px;
	overflow-x: auto;
	scrollbar-width: none;
}

.wpm-trending-bar__inner::-webkit-scrollbar {
	display: none;
}

.wpm-trending-bar__label {
	flex-shrink: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--wpm-orange);
	letter-spacing: 0.02em;
}

.wpm-trending-bar__list {
	display: flex;
	align-items: center;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpm-trending-bar__list li {
	position: relative;
	flex-shrink: 0;
}

.wpm-trending-bar__list li + li::before {
	content: "";
	position: absolute;
	left: -11px;
	top: 50%;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background-color: rgba(255, 101, 0, 0.7);
	transform: translateY(-50%);
}

.wpm-trending-bar__list a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	font-size: 0.84375rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
	white-space: nowrap;
}

.wpm-trending-bar__list a:hover {
	color: var(--wpm-orange);
}

/* ==========================================================================
   Homepage Hero / Featured Grid
   ========================================================================== */
.wpm-hero {
	background-color: var(--wpm-white);
	border-bottom: 1px solid var(--wpm-border);
	padding-block: 28px 34px;
}

.wpm-hero__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: start;
}

@media (min-width: 900px) {
	.wpm-hero__grid {
		grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr) minmax(240px, 0.72fr);
		gap: 24px;
	}
}

.wpm-hero-lead__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--wpm-radius-lg);
	background-color: var(--wpm-grey-alt);
	margin-bottom: 14px;
}

.wpm-hero-lead__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.wpm-hero-lead__media:hover img {
	transform: scale(1.02);
}

.wpm-hero-lead__title {
	font-size: clamp(1.5rem, 2.4vw, 2.05rem);
	font-weight: 800;
	line-height: 1.2;
	margin-top: 6px;
	margin-bottom: 10px;
}

.wpm-hero-lead__title a {
	color: var(--wpm-navy);
}

.wpm-hero-lead__title a:hover {
	color: var(--wpm-royal);
}

.wpm-hero-lead__excerpt {
	color: var(--wpm-text-muted);
	font-size: 0.96875rem;
	margin-bottom: 12px;
}

.wpm-hero-lead__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.wpm-read-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--wpm-orange);
}

.wpm-read-more:hover {
	color: var(--wpm-orange-hover);
}

.wpm-hero__subcol {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wpm-hero-sub__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--wpm-radius);
	background-color: var(--wpm-grey-alt);
	margin-bottom: 8px;
}

.wpm-hero-sub__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wpm-hero-sub__badge {
	position: absolute;
	left: 10px;
	bottom: 10px;
	padding: 3px 8px;
	border-radius: 3px;
	background-color: var(--wpm-orange);
	color: var(--wpm-white);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.wpm-hero-sub__title {
	font-size: 1.03125rem;
	font-weight: 700;
	line-height: 1.32;
	margin: 0;
}

.wpm-hero-sub__title a {
	color: var(--wpm-navy);
}

.wpm-hero-sub__title a:hover {
	color: var(--wpm-royal);
}

/* Right-hand LATEST headline rail */
.wpm-hero-rail {
	border-top: 2px solid var(--wpm-navy);
	padding-top: 12px;
}

@media (min-width: 900px) {
	.wpm-hero-rail {
		border-top: 0;
		border-inline-start: 1px solid var(--wpm-border);
		padding-top: 0;
		padding-inline-start: 20px;
	}
}

.wpm-hero-rail__heading {
	font-size: 1.0625rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: var(--wpm-navy);
	margin-bottom: 12px;
}

.wpm-hero-rail__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpm-hero-rail__item {
	padding-block: 11px;
	border-bottom: 1px solid var(--wpm-border);
}

.wpm-hero-rail__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.wpm-hero-rail__time {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wpm-orange);
	margin-bottom: 4px;
}

.wpm-hero-rail__title {
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--wpm-text);
}

.wpm-hero-rail__title:hover {
	color: var(--wpm-royal);
}

/* ==========================================================================
   Magazine Sections & Cards
   ========================================================================== */
.wpm-section {
	padding-block: 36px;
}

.wpm-section--surface {
	background-color: var(--wpm-white);
	border-block: 1px solid var(--wpm-border);
}

.wpm-section__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--wpm-navy);
}

.wpm-section__title {
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	font-weight: 800;
	margin: 0;
}

.wpm-section__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--wpm-royal);
	white-space: nowrap;
}

.wpm-section__more:hover {
	color: var(--wpm-orange);
}

.wpm-post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
}

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

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

.wpm-card {
	display: flex;
	flex-direction: column;
	background-color: var(--wpm-white);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-lg);
	overflow: hidden;
	box-shadow: var(--wpm-shadow-sm);
	transition: transform var(--wpm-transition), box-shadow var(--wpm-transition);
}

.wpm-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--wpm-shadow-md);
}

.wpm-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background-color: var(--wpm-grey-alt);
	overflow: hidden;
}

.wpm-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wpm-card__fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--wpm-navy) 0%, var(--wpm-royal) 100%);
	color: var(--wpm-white);
	font-weight: 700;
	font-size: 0.9375rem;
	letter-spacing: 0.04em;
}

.wpm-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 16px 18px 18px;
}

/* Unboxed clean category kicker (zero pill clutter) */
.wpm-cat-kicker {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wpm-orange);
	margin-bottom: 6px;
}

.wpm-cat-kicker:hover {
	color: var(--wpm-royal);
}

.wpm-card__title {
	font-size: 1.09375rem;
	font-weight: 700;
	line-height: 1.32;
	margin-bottom: 8px;
}

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

.wpm-card__title a:hover {
	color: var(--wpm-royal);
}

.wpm-card__excerpt {
	font-size: 0.9rem;
	color: var(--wpm-text-muted);
	margin-bottom: 14px;
	flex: 1 1 auto;
}

.wpm-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 0.8125rem;
	color: var(--wpm-text-subtle);
	font-variant-numeric: tabular-nums;
}

.wpm-meta__author a {
	color: var(--wpm-text);
	font-weight: 600;
}

.wpm-meta__author a:hover {
	color: var(--wpm-royal);
}

/* Category Split Layout */
.wpm-cat-split {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: start;
}

@media (min-width: 860px) {
	.wpm-cat-split {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	}
}

.wpm-cat-split__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wpm-card-compact {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px;
	background-color: var(--wpm-white);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius);
}

.wpm-card-compact__media {
	flex: 0 0 112px;
	aspect-ratio: 3 / 2;
	border-radius: 4px;
	overflow: hidden;
	background-color: var(--wpm-grey-alt);
}

.wpm-card-compact__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wpm-card-compact__title {
	font-size: 0.96875rem;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 6px;
}

.wpm-card-compact__title a {
	color: var(--wpm-navy);
}

.wpm-card-compact__title a:hover {
	color: var(--wpm-royal);
}

/* Popular Grid */
.wpm-popular-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

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

@media (min-width: 1080px) {
	.wpm-popular-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.wpm-popular-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	background-color: var(--wpm-white);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius);
}

.wpm-popular-card__rank {
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1;
	color: var(--wpm-orange);
	font-variant-numeric: tabular-nums;
	flex-shrink: 0;
}

.wpm-popular-card__title {
	font-size: 0.96875rem;
	line-height: 1.35;
	margin-bottom: 6px;
}

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

/* Newsletter Section */
.wpm-newsletter-box {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	align-items: center;
	padding: 28px 26px;
	background-color: var(--wpm-navy);
	color: var(--wpm-white);
	border-radius: var(--wpm-radius-lg);
}

@media (min-width: 860px) {
	.wpm-newsletter-box {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		padding: 32px 36px;
	}
}

.wpm-newsletter-box__title {
	color: var(--wpm-white);
	font-size: 1.375rem;
	margin-bottom: 6px;
}

.wpm-newsletter-box__desc {
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.95rem;
}

.wpm-newsletter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wpm-newsletter-form input[type="email"] {
	flex: 1 1 220px;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--wpm-radius);
	font-family: inherit;
	font-size: 0.9375rem;
}

.wpm-newsletter-admin-note {
	margin: 0;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.9);
}

.wpm-newsletter-admin-note a {
	color: var(--wpm-orange);
	text-decoration: underline;
}

/* ==========================================================================
   Content + Sidebar Two-Column Layout
   ========================================================================== */
.wpm-main {
	padding-block: 26px 48px;
}

.wpm-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: start;
}

@media (min-width: 1024px) {
	.wpm-layout--right {
		grid-template-columns: minmax(0, 1fr) 330px;
	}
	.wpm-layout--left {
		grid-template-columns: 330px minmax(0, 1fr);
	}
	.wpm-layout--left .wpm-sidebar {
		order: -1;
	}
}

/* Breadcrumbs */
.wpm-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	color: var(--wpm-text-subtle);
	margin-bottom: 18px;
}

.wpm-breadcrumbs a {
	color: var(--wpm-royal);
	font-weight: 500;
}

/* ==========================================================================
   Single Post & Page Article Canvas
   ========================================================================== */
.wpm-single-article,
.wpm-single-page {
	background-color: var(--wpm-white);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-lg);
	padding: 24px 20px;
}

@media (min-width: 720px) {
	.wpm-single-article,
	.wpm-single-page {
		padding: 36px 40px;
	}
}

.wpm-single-article__cats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.wpm-single-article__title,
.wpm-single-page__title {
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	font-weight: 800;
	line-height: 1.18;
	margin-bottom: 12px;
}

.wpm-single-article__intro {
	font-size: 1.125rem;
	line-height: 1.55;
	color: var(--wpm-text-muted);
	margin-bottom: 16px;
}

.wpm-single-article__meta-bar {
	padding-block: 12px;
	border-top: 1px solid var(--wpm-border);
	border-bottom: 1px solid var(--wpm-border);
	margin-bottom: 14px;
}

.wpm-single-article__featured {
	margin: 20px 0 24px;
}

.wpm-single-article__img {
	width: 100%;
	border-radius: var(--wpm-radius);
}

.wpm-single-article__caption {
	font-size: 0.8125rem;
	color: var(--wpm-text-subtle);
	margin-top: 8px;
}

/* Share Bar */
.wpm-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-block: 12px 6px;
}

.wpm-share__label {
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--wpm-navy);
}

.wpm-share__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 6px 12px;
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius);
	background-color: var(--wpm-grey);
	color: var(--wpm-text);
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color var(--wpm-transition), color var(--wpm-transition), background-color var(--wpm-transition);
}

.wpm-share__btn:hover {
	border-color: var(--wpm-royal);
	background-color: var(--wpm-white);
	color: var(--wpm-royal);
}

/* Article Reading Body */
.wpm-entry-content {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--wpm-text);
	max-width: 72ch;
}

.wpm-entry-content h2 {
	font-size: 1.5rem;
	margin-top: 2.1rem;
	margin-bottom: 0.85rem;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--wpm-border);
	scroll-margin-top: 90px;
}

.wpm-entry-content h3 {
	font-size: 1.225rem;
	margin-top: 1.65rem;
	margin-bottom: 0.65rem;
	scroll-margin-top: 90px;
}

.wpm-entry-content ul,
.wpm-entry-content ol {
	margin: 0 0 1.4rem;
	padding-inline-start: 1.5rem;
}

.wpm-entry-content li {
	margin-bottom: 0.45rem;
}

.wpm-entry-content blockquote {
	margin: 1.75rem 0;
	padding: 18px 22px;
	background-color: var(--wpm-grey);
	border-top: 1px solid var(--wpm-border);
	border-bottom: 1px solid var(--wpm-border);
	font-size: 1.125rem;
	color: var(--wpm-navy);
}

.wpm-entry-content pre,
.wpm-entry-content code {
	font-family: var(--wpm-font-mono);
	font-size: 0.9em;
}

.wpm-entry-content pre {
	padding: 16px;
	background-color: var(--wpm-navy-deep);
	color: var(--wpm-white);
	border-radius: var(--wpm-radius);
	overflow-x: auto;
}

.wpm-entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin-block: 1.5rem;
	font-variant-numeric: tabular-nums;
}

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

.wpm-entry-content th {
	background-color: var(--wpm-grey);
	color: var(--wpm-navy);
	font-weight: 700;
}

/* Table of Contents */
.wpm-toc {
	margin: 1.5rem 0 2rem;
	padding: 16px 20px;
	background-color: var(--wpm-grey);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius);
}

.wpm-toc__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.wpm-toc__title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--wpm-navy);
}

.wpm-toc__toggle {
	padding: 4px 10px;
	border: 1px solid var(--wpm-border);
	border-radius: 4px;
	background: var(--wpm-white);
	color: var(--wpm-royal);
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
}

.wpm-toc__list {
	margin: 12px 0 0;
	padding-inline-start: 20px;
	font-size: 0.9375rem;
}

.wpm-toc__list[hidden] {
	display: none;
}

.wpm-toc__item {
	margin-bottom: 6px;
}

.wpm-toc__item--h3 {
	margin-inline-start: 16px;
	font-size: 0.875rem;
}

.wpm-single-article__footer {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--wpm-border);
}

.wpm-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	margin-bottom: 12px;
}

.wpm-tags__label {
	font-weight: 700;
	color: var(--wpm-navy);
}

/* Author Box, Post Nav, Related Posts, Comments */
.wpm-author-box {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: flex-start;
	margin-top: 24px;
	padding: 22px;
	background-color: var(--wpm-white);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-lg);
}

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

.wpm-author-box__content {
	flex: 1 1 240px;
}

.wpm-author-box__eyebrow {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wpm-orange);
}

.wpm-author-box__name {
	font-size: 1.125rem;
	margin: 4px 0 8px;
}

.wpm-author-box__bio {
	font-size: 0.9375rem;
	color: var(--wpm-text-muted);
	margin-bottom: 8px;
}

.wpm-author-box__more {
	font-size: 0.875rem;
	font-weight: 700;
}

.wpm-post-nav .nav-links {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin-top: 24px;
}

@media (min-width: 640px) {
	.wpm-post-nav .nav-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.wpm-post-nav .nav-previous a,
.wpm-post-nav .nav-next a {
	display: block;
	padding: 16px 18px;
	background-color: var(--wpm-white);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius);
}

.wpm-post-nav__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--wpm-orange);
	margin-bottom: 4px;
}

.wpm-post-nav__title {
	display: block;
	font-weight: 700;
	color: var(--wpm-navy);
}

.wpm-related-posts {
	margin-top: 32px;
}

.wpm-comments {
	margin-top: 32px;
	padding: 24px;
	background-color: var(--wpm-white);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-lg);
}

.wpm-comment-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.wpm-comment-list .comment-body {
	padding: 14px 0;
	border-bottom: 1px solid var(--wpm-border);
}

.wpm-comment-list .children {
	list-style: none;
	padding-inline-start: 24px;
}

.comment-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius);
	font-family: inherit;
	font-size: 0.9375rem;
}

/* ==========================================================================
   Archives, Category Spotlight, Search, 404 & Pagination
   ========================================================================== */
.wpm-archive-header {
	padding: 22px 24px;
	background-color: var(--wpm-white);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-lg);
	margin-bottom: 24px;
}

.wpm-archive-header__eyebrow {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wpm-orange);
	margin-bottom: 4px;
}

.wpm-archive-header__title {
	font-size: clamp(1.5rem, 2.8vw, 2.125rem);
	margin-bottom: 6px;
}

.wpm-archive-header__desc {
	color: var(--wpm-text-muted);
}

.wpm-archive-header__desc p:last-child {
	margin-bottom: 0;
}

.wpm-search-refine {
	margin-top: 14px;
	max-width: 560px;
}

.wpm-cat-lead {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	background-color: var(--wpm-white);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-lg);
	overflow: hidden;
	margin-bottom: 24px;
}

@media (min-width: 760px) {
	.wpm-cat-lead {
		grid-template-columns: 1.15fr 1fr;
		align-items: center;
	}
}

.wpm-cat-lead__media {
	display: block;
	aspect-ratio: 16 / 10;
	height: 100%;
	background-color: var(--wpm-grey-alt);
}

.wpm-cat-lead__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wpm-cat-lead__body {
	padding: 20px;
}

.wpm-cat-lead__title {
	font-size: 1.5rem;
	margin-bottom: 10px;
}

.wpm-cat-lead__title a {
	color: var(--wpm-navy);
}

.pagination {
	margin-top: 28px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius);
	background-color: var(--wpm-white);
	color: var(--wpm-navy);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background-color: var(--wpm-navy);
	border-color: var(--wpm-navy);
	color: var(--wpm-white);
}

.wpm-404-card,
.wpm-no-results {
	padding: 36px 26px;
	background-color: var(--wpm-white);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-lg);
	text-align: center;
	margin-bottom: 28px;
}

.wpm-404-card__code {
	display: inline-block;
	font-size: 3rem;
	font-weight: 800;
	color: var(--wpm-orange);
	line-height: 1;
	margin-bottom: 10px;
}

.wpm-404-card__search,
.wpm-no-results__search {
	max-width: 500px;
	margin: 18px auto 20px;
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */
.wpm-sidebar {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.wpm-widget {
	padding: 20px;
	background-color: var(--wpm-white);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-lg);
}

.wpm-widget__title {
	font-size: 1.0625rem;
	font-weight: 800;
	padding-bottom: 10px;
	margin-bottom: 14px;
	border-bottom: 2px solid var(--wpm-navy);
}

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

.wpm-widget-posts__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding-block: 10px;
	border-bottom: 1px solid var(--wpm-border);
}

.wpm-widget-posts__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.wpm-widget-posts__thumb {
	flex: 0 0 74px;
	aspect-ratio: 3 / 2;
	border-radius: 4px;
	overflow: hidden;
}

.wpm-widget-posts__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wpm-widget-posts__link {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--wpm-navy);
	margin-bottom: 4px;
}

.wpm-widget-posts__date {
	font-size: 0.78rem;
	color: var(--wpm-text-subtle);
}

.wpm-widget-ranked {
	margin: 0;
	padding-inline-start: 20px;
}

.wpm-widget-ranked__item {
	padding-block: 8px;
	border-bottom: 1px solid var(--wpm-border);
	font-weight: 700;
	color: var(--wpm-orange);
}

.wpm-widget-ranked__item:last-child {
	border-bottom: 0;
}

.wpm-widget-ranked__link {
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--wpm-navy);
}

.wpm-widget-newsletter__form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wpm-widget-newsletter__form input[type="email"] {
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius);
}

/* ==========================================================================
   Responsive Google AdSense / Advertisement Zones
   ========================================================================== */
.wpm-ad-zone {
	margin-block: 16px;
	padding: 10px 12px;
	background-color: var(--wpm-grey);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius);
	text-align: center;
	overflow: hidden;
}

.wpm-ad-zone__label {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wpm-text-subtle);
	margin-bottom: 6px;
}

.wpm-ad-zone__inner {
	width: 100%;
	min-height: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.wpm-ad-zone__inner ins,
.wpm-ad-zone__inner iframe {
	max-width: 100%;
}

.wpm-header-ad-wrap,
.wpm-below-nav-ad-wrap,
.wpm-footer-ad-wrap {
	background-color: var(--wpm-white);
	padding-block: 8px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.wpm-footer {
	background-color: var(--wpm-navy);
	color: rgba(255, 255, 255, 0.86);
	padding-block: 44px 24px;
	margin-top: 24px;
}

.wpm-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

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

@media (min-width: 1024px) {
	.wpm-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr 1fr;
	}
}

.wpm-footer__tagline {
	margin: 12px 0 8px;
	font-weight: 700;
	color: var(--wpm-orange);
	font-size: 0.9375rem;
}

.wpm-footer__about {
	font-size: 0.9rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
	margin-bottom: 16px;
}

.wpm-footer-widget__title {
	color: var(--wpm-white);
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 14px;
}

.wpm-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpm-footer-menu li {
	margin-bottom: 8px;
}

.wpm-footer-menu a {
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.9rem;
}

.wpm-footer-menu a:hover {
	color: var(--wpm-orange);
}

.wpm-footer-hint {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.65);
}

.wpm-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 20px;
	font-size: 0.84375rem;
	color: rgba(255, 255, 255, 0.74);
}

.wpm-footer__copyright {
	margin: 0;
}

.wpm-footer__legal-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.wpm-footer__legal-inline a {
	color: rgba(255, 255, 255, 0.8);
}

.wpm-footer__legal-inline a:hover {
	color: var(--wpm-orange);
}

.wpm-admin-notice {
	padding: 28px;
	background-color: var(--wpm-white);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-lg);
}
