/* Editorial Journal — main stylesheet */

:root {
	--ej-bg: #F7F5F0;
	--ej-text: #202326;
	--ej-accent: #C56B45;
	--ej-card: #FFFFFF;
	--ej-border: #E7E2DA;
	--ej-muted: #6B7280;
	--ej-radius: 10px;
	--ej-max: 1200px;
	--ej-pad: 24px;
	--ej-serif: "Libre Baskerville", Georgia, "Times New Roman", Times, serif;
	--ej-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ej-shadow: 0 8px 28px rgba(32, 35, 38, 0.06);
	--ej-header-h: 72px;
}

@media (max-width: 767px) {
	:root {
		--ej-pad: 16px;
	}
}

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

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

body {
	margin: 0;
	background: var(--ej-bg);
	color: var(--ej-text);
	font-family: var(--ej-sans);
	font-size: 1rem;
	line-height: 1.7;
	overflow-x: hidden;
}

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

a {
	color: var(--ej-accent);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
	color: var(--ej-text);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ej-serif);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.6em;
	color: var(--ej-text);
}

p {
	margin: 0 0 1em;
}

ul, ol {
	margin: 0 0 1em;
	padding-left: 1.25em;
}

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

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

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	display: block;
	z-index: 100000;
	left: var(--ej-pad);
	top: var(--ej-pad);
	padding: 0.75rem 1rem;
	background: var(--ej-text);
	color: var(--ej-card);
}

.container {
	width: 100%;
	max-width: var(--ej-max);
	margin: 0 auto;
	padding-left: var(--ej-pad);
	padding-right: var(--ej-pad);
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(247, 245, 240, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--ej-border);
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1rem;
	min-height: var(--ej-header-h);
}

.header-cta {
	padding: 0.55rem 1rem;
	font-size: 0.9rem;
	white-space: nowrap;
}

.site-branding .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.site-branding .custom-logo,
.site-branding .skillora-logo {
	max-height: 44px;
	width: auto;
	height: 44px;
}

.skillora-logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.site-title {
	font-family: var(--ej-serif);
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--ej-text);
	letter-spacing: -0.02em;
}

.site-title:hover {
	color: var(--ej-accent);
}

.primary-nav {
	justify-self: center;
}

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.15rem 1.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

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

.primary-menu .menu-item-has-children > .menu-link-wrap {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
}

.primary-menu a {
	color: var(--ej-text);
	font-weight: 500;
	font-size: 0.95rem;
	padding: 0.35rem 0;
	position: relative;
}

.primary-menu > li > a::after,
.primary-menu > li > .menu-link-wrap > a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background: var(--ej-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.primary-menu > li > a:hover::after,
.primary-menu > li > a:focus-visible::after,
.primary-menu > li > .menu-link-wrap > a:hover::after,
.primary-menu > li > .menu-link-wrap > a:focus-visible::after,
.primary-menu .current-menu-item > a::after,
.primary-menu .current-menu-item > .menu-link-wrap > a::after,
.primary-menu .current-menu-ancestor > a::after,
.primary-menu .current-menu-ancestor > .menu-link-wrap > a::after {
	transform: scaleX(1);
}

.submenu-toggle {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--ej-text);
	cursor: pointer;
	padding: 0.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	line-height: 1;
}

.submenu-toggle:hover,
.submenu-toggle:focus-visible {
	background: rgba(32, 35, 38, 0.06);
}

.submenu-toggle__icon {
	display: block;
	width: 0.45rem;
	height: 0.45rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	margin-top: -0.15rem;
}

.submenu-toggle[aria-expanded="true"] .submenu-toggle__icon {
	transform: rotate(225deg);
	margin-top: 0.15rem;
}

.primary-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	min-width: 200px;
	background: var(--ej-card);
	border: 1px solid var(--ej-border);
	border-radius: 8px;
	box-shadow: var(--ej-shadow);
	position: absolute;
	top: calc(100% + 0.35rem);
	left: 0;
	z-index: 50;
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.primary-menu .sub-menu a {
	display: block;
	padding: 0.55rem 1rem;
	white-space: nowrap;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus-visible {
	background: rgba(197, 107, 69, 0.08);
	color: var(--ej-accent);
}

@media (min-width: 768px) {
	.primary-menu > .menu-item-has-children:hover > .sub-menu,
	.primary-menu > .menu-item-has-children:focus-within > .sub-menu,
	.primary-menu > .menu-item-has-children.is-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.search-toggle,
.menu-toggle {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--ej-text);
	cursor: pointer;
	padding: 0.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
}

.search-toggle:hover,
.menu-toggle:hover {
	background: rgba(32, 35, 38, 0.06);
}

.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	width: 40px;
	height: 40px;
}

.menu-toggle__bar {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

.header-search {
	border-top: 1px solid var(--ej-border);
	padding: 1rem 0;
	background: var(--ej-bg);
	animation: ej-fade-down 0.25s ease;
}

.header-search[hidden] {
	display: none !important;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 640px;
}

.search-field {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--ej-border);
	border-radius: var(--ej-radius);
	padding: 0.75rem 1rem;
	background: var(--ej-card);
	color: var(--ej-text);
}

.search-field:focus {
	outline: 2px solid var(--ej-accent);
	outline-offset: 1px;
}

.search-submit,
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: var(--ej-radius);
	padding: 0.75rem 1.25rem;
	background: var(--ej-accent);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.search-submit:hover,
.btn:hover {
	background: #a85736;
	color: #fff;
}

.btn--ghost {
	background: transparent;
	color: var(--ej-text);
	border: 1px solid var(--ej-border);
}

.btn--ghost:hover {
	border-color: var(--ej-accent);
	color: var(--ej-accent);
	background: transparent;
}

.section-kicker,
.ej-cat {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ej-accent);
	margin: 0 0 0.65rem;
}

/* ---------- Home Hero ---------- */
.home-hero {
	padding: 3.25rem 0 2.5rem;
}

.home-hero--bg {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: var(--ej-bg);
	background-image: var(--ej-hero-bg-image);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center 35%;
}

.home-hero--bg::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	/* Cream translucent wash + soft charcoal/clay tint for Skillora readability */
	background:
		linear-gradient(
			105deg,
			rgba(247, 245, 240, 0.94) 0%,
			rgba(247, 245, 240, 0.88) 38%,
			rgba(247, 245, 240, 0.72) 62%,
			rgba(32, 35, 38, 0.18) 100%
		),
		linear-gradient(
			180deg,
			rgba(247, 245, 240, 0.55) 0%,
			rgba(247, 245, 240, 0.78) 55%,
			rgba(247, 245, 240, 0.92) 100%
		),
		linear-gradient(
			45deg,
			rgba(197, 107, 69, 0.08) 0%,
			rgba(197, 107, 69, 0) 45%
		);
}

.home-hero--bg > .container {
	position: relative;
	z-index: 1;
}

.home-hero__grid {
	display: grid;
	grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.15fr);
	gap: 2.5rem 3rem;
	align-items: center;
}

.home-hero__copy {
	animation: ej-rise 0.55s ease both;
}

.home-hero__eyebrow {
	display: inline-block;
	margin: 0 0 0.85rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ej-accent);
}

.home-hero__title {
	font-size: clamp(2.1rem, 4.2vw, 3.4rem);
	line-height: 1.12;
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
}

.home-hero__text {
	margin: 0 0 1.5rem;
	font-size: 1.08rem;
	line-height: 1.7;
	color: var(--ej-muted);
	max-width: 34rem;
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.home-hero__media {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	animation: ej-rise 0.55s ease both;
	animation-delay: 0.08s;
}

.home-hero__feature {
	margin: 0;
	position: relative;
	border-radius: var(--ej-radius);
	overflow: hidden;
	background: var(--ej-card);
	box-shadow: var(--ej-shadow);
}

.home-hero__feature-media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.home-hero__feature-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-hero__feature-card {
	position: absolute;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	padding: 1.1rem 1.2rem;
	background: rgba(255, 255, 255, 0.94);
	border-radius: 8px;
	border: 1px solid var(--ej-border);
	backdrop-filter: blur(6px);
}

.home-hero__feature-title {
	font-size: 1.2rem;
	margin: 0.35rem 0 0.4rem;
}

.home-hero__feature-title a {
	color: var(--ej-text);
}

.home-hero__feature-meta {
	margin: 0;
	font-size: 0.85rem;
	color: var(--ej-muted);
}

.home-hero__aside {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem;
}

.home-hero__aside-item {
	margin: 0;
	background: var(--ej-card);
	border: 1px solid var(--ej-border);
	border-radius: var(--ej-radius);
	overflow: hidden;
}

.home-hero__aside-link {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 0.7rem;
	align-items: center;
	padding: 0.55rem;
	color: inherit;
}

.home-hero__aside-thumb {
	display: block;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 1;
	background: #ece7df;
}

.home-hero__aside-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-hero__aside-title {
	display: block;
	font-family: var(--ej-serif);
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ej-text);
}

.home-hero__aside-date {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.75rem;
	color: var(--ej-muted);
}

/* ---------- Icon Features ---------- */
.home-icons {
	padding: 1rem 0 2.5rem;
}

.home-icons__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 1rem;
}

.home-icons__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.55rem;
	padding: 1.35rem 0.85rem;
	background: var(--ej-card);
	border: 1px solid var(--ej-border);
	border-radius: var(--ej-radius);
	color: var(--ej-text);
	box-shadow: var(--ej-shadow);
	transition: transform 0.25s ease, border-color 0.25s ease;
	height: 100%;
}

.home-icons__link:hover {
	transform: translateY(-3px);
	border-color: var(--ej-accent);
	color: var(--ej-text);
}

.home-icons__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(197, 107, 69, 0.1);
	color: var(--ej-accent);
}

.home-icons__label {
	font-family: var(--ej-serif);
	font-weight: 700;
	font-size: 0.98rem;
}

.home-icons__count {
	font-size: 0.8rem;
	color: var(--ej-muted);
}

/* ---------- About ---------- */
.home-about {
	padding: 3rem 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent);
}

.home-about__grid {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: 2.5rem 3rem;
	align-items: center;
}

.home-about__title {
	font-size: clamp(1.7rem, 2.6vw, 2.3rem);
	margin: 0 0 1rem;
}

.home-about__text {
	color: var(--ej-muted);
	margin-bottom: 1.25rem;
}

.home-about__media {
	margin: 0;
	border-radius: var(--ej-radius);
	overflow: hidden;
	box-shadow: var(--ej-shadow);
	aspect-ratio: 4 / 3;
	background: var(--ej-card);
}

.home-about__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Featured Article split ---------- */
.home-featured {
	padding-top: 2.5rem;
}

.home-featured__grid {
	display: grid;
	grid-template-columns: 1.15fr 0.95fr;
	gap: 2rem 2.5rem;
	align-items: center;
	background: var(--ej-card);
	border: 1px solid var(--ej-border);
	border-radius: var(--ej-radius);
	overflow: hidden;
	box-shadow: var(--ej-shadow);
}

.home-featured__media {
	margin: 0;
	aspect-ratio: 5 / 4;
	overflow: hidden;
	background: #ece7df;
}

.home-featured__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-featured__copy {
	padding: 2rem 2rem 2rem 0.5rem;
}

.home-featured__title {
	font-size: clamp(1.5rem, 2.4vw, 2.1rem);
	margin: 0.4rem 0 0.85rem;
}

.home-featured__title a {
	color: var(--ej-text);
}

.home-featured__excerpt {
	color: var(--ej-muted);
	margin: 0 0 1rem;
}

.home-featured__meta {
	font-size: 0.9rem;
	color: var(--ej-muted);
	margin: 0 0 1.25rem;
}

/* ---------- Explore Our Topics ---------- */
.home-topics__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.35rem;
}

.topic-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--ej-card);
	border: 1px solid var(--ej-border);
	border-radius: var(--ej-radius);
	overflow: hidden;
	box-shadow: var(--ej-shadow);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.topic-card:hover {
	transform: translateY(-4px);
	border-color: rgba(197, 107, 69, 0.45);
	box-shadow: 0 14px 32px rgba(32, 35, 38, 0.1);
}

.topic-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #ece7df;
}

.topic-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.topic-card:hover .topic-card__img {
	transform: scale(1.04);
}

.topic-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.15rem 1.2rem 1.3rem;
}

.topic-card__title {
	font-family: var(--ej-serif);
	font-size: 1.2rem;
	line-height: 1.3;
	margin: 0 0 0.55rem;
}

.topic-card__title a {
	color: var(--ej-text);
}

.topic-card__title a:hover {
	color: var(--ej-accent);
}

.topic-card__excerpt {
	margin: 0 0 1rem;
	color: var(--ej-muted);
	font-size: 0.95rem;
	line-height: 1.6;
	flex: 1;
}

.topic-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--ej-accent);
}

.topic-card__more:hover {
	color: var(--ej-text);
}

/* ---------- Picks / CTA ---------- */
.home-picks__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.home-cta {
	padding: 3.25rem 0;
	background:
		radial-gradient(circle at top right, rgba(197, 107, 69, 0.12), transparent 42%),
		linear-gradient(180deg, #efeae2, #f7f5f0);
	border-top: 1px solid var(--ej-border);
	border-bottom: 1px solid var(--ej-border);
}

.home-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 2rem;
	text-align: left;
}

.home-cta__title {
	font-size: clamp(1.55rem, 2.4vw, 2.1rem);
	margin: 0 0 0.5rem;
}

.home-cta__text {
	margin: 0;
	color: var(--ej-muted);
	max-width: 36rem;
}

.home-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* ---------- Sections ---------- */
.section {
	padding: 2.75rem 0;
}

.section__header {
	margin-bottom: 1.75rem;
}

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

.section__header--center .section__desc {
	margin-left: auto;
	margin-right: auto;
}

.section__title {
	font-size: clamp(1.5rem, 2vw, 1.9rem);
	margin-bottom: 0.35rem;
}

.section__desc {
	color: var(--ej-muted);
	margin: 0;
	max-width: 42rem;
}

/* ---------- Article cards ---------- */
.articles-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.articles-grid--latest {
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.articles-grid--latest .article-card {
	min-height: 100%;
}

/* Homepage Latest Articles: text-only cards (no featured image or category). */
.articles-grid--latest-text .article-card--latest-text {
	min-height: 100%;
}

.articles-grid--latest-text .article-card--latest-text .article-card__body {
	padding: 1.35rem 1.4rem 1.45rem;
	gap: 0.55rem;
}

.articles-grid--latest-text .article-card__meta--text-only {
	margin: 0;
}

.articles-grid--latest-text .article-card__author {
	margin: 0;
}

.articles-grid--latest-text .article-card__title {
	line-height: 1.35;
}

.articles-grid--latest-text .article-card__excerpt {
	margin-top: 0.1rem;
}

.articles-grid--latest-text .article-card__more {
	margin-top: auto;	
	padding-top: 0.25rem;
}

.article-card,
.featured-card {
	background: var(--ej-card);
	border: 1px solid var(--ej-border);
	border-radius: var(--ej-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--ej-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	animation: ej-rise 0.5s ease both;
}

.article-card:hover,
.featured-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 34px rgba(32, 35, 38, 0.1);
}

.article-card__media,
.featured-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: #ece7df;
}

.article-card__img,
.featured-card__img,
.ej-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.article-card:hover .article-card__img,
.featured-card:hover .featured-card__img {
	transform: scale(1.04);
}

.article-card__body,
.featured-card__body {
	padding: 1.15rem 1.2rem 1.35rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	flex: 1;
}

.article-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
}

.article-card__date,
.featured-card__date {
	font-size: 0.85rem;
	color: var(--ej-muted);
}

.article-card__author {
	margin: 0.35rem 0 0.45rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ej-text);
}

.article-card__title,
.featured-card__title {
	font-size: 1.15rem;
	margin: 0;
}

.article-card__title a,
.featured-card__title a {
	color: var(--ej-text);
}

.article-card__title a:hover,
.featured-card__title a:hover {
	color: var(--ej-accent);
}

.article-card__excerpt {
	color: var(--ej-muted);
	font-size: 0.95rem;
	margin: 0;
	flex: 1;
}

.article-card__more {
	font-weight: 600;
	font-size: 0.92rem;
	margin-top: 0.35rem;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

/* Featured categories */
.featured-categories__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.featured-cat-block {
	background: transparent;
}

.featured-cat-block__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
	padding-bottom: 0.65rem;
	border-bottom: 2px solid var(--ej-text);
}

.featured-cat-block__title {
	font-size: 1.2rem;
	margin: 0;
}

.featured-cat-block__title a {
	color: var(--ej-text);
}

.featured-cat-block__all {
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
}

.featured-cat-block__list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.featured-cat-block .featured-card {
	flex-direction: row;
	min-height: 110px;
}

.featured-cat-block .featured-card__media {
	width: 38%;
	aspect-ratio: auto;
	flex-shrink: 0;
}

.featured-cat-block .featured-card__body {
	padding: 0.85rem 1rem;
}

.featured-cat-block .featured-card__title {
	font-size: 0.98rem;
}

.articles-grid--picks {
	grid-template-columns: repeat(3, 1fr);
}

/* ---------- Archive ---------- */
.archive-header {
	padding: 2rem 0 0.5rem;
}

.archive-header__title {
	font-size: clamp(1.75rem, 3vw, 2.4rem);
	margin-bottom: 0.4rem;
}

.archive-header__desc {
	color: var(--ej-muted);
	max-width: 46rem;
}

.archive-section {
	padding-top: 1.5rem;
}

.no-results__inner,
.error-404__card {
	background: var(--ej-card);
	border: 1px solid var(--ej-border);
	border-radius: var(--ej-radius);
	padding: 2.5rem 1.75rem;
	text-align: center;
	max-width: 560px;
	margin: 0 auto;
	box-shadow: var(--ej-shadow);
}

.error-404 {
	padding: 2.5rem 0 4rem;
}

.error-404__code {
	font-family: var(--ej-serif);
	font-size: 3.5rem;
	color: var(--ej-accent);
	margin: 0;
	line-height: 1;
}

.error-404__home {
	margin-top: 1.5rem;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
	margin-bottom: 1rem;
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.875rem;
	color: var(--ej-muted);
}

.breadcrumbs__item:not(:last-child)::after {
	content: "/";
	margin-left: 0.5rem;
	color: var(--ej-border);
}

.breadcrumbs__item a {
	color: var(--ej-muted);
}

.breadcrumbs__item a:hover {
	color: var(--ej-accent);
}

.breadcrumbs__item--current {
	color: var(--ej-text);
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- Entry content (pages + shared) ---------- */
.entry-content {
	font-size: 1.05rem;
}

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

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.6em;
}

.entry-content img {
	border-radius: 8px;
}

.entry-content figure {
	margin: 1.5em 0;
}

.entry-content figcaption {
	font-size: 0.875rem;
	color: var(--ej-muted);
	margin-top: 0.5rem;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	overflow-x: auto;
	display: block;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--ej-border);
	padding: 0.65rem 0.85rem;
	text-align: left;
}

.entry-content th {
	background: #f0ebe3;
}

.entry-content blockquote {
	margin: 1.5em 0;
	padding: 0.25em 0 0.25em 1.25em;
	border-left: 3px solid var(--ej-accent);
	color: #3a3f44;
	font-family: var(--ej-serif);
	font-style: italic;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content .alignwide {
	max-width: 100%;
}

.entry-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* ---------- Single magazine layout ---------- */
.single-layout {
	padding-top: clamp(1.25rem, 3vw, 2.5rem);
	padding-bottom: 4rem;
	max-width: calc(1100px + var(--ej-pad) * 2);
	overflow-wrap: anywhere;
}

.single-article__header {
	width: 100%;
	max-width: 900px;
	margin: 0 auto 1.75rem;
}

.single-article__header .breadcrumbs {
	margin-bottom: 1.15rem;
}

.single-article__meta {
	margin-bottom: 0.4rem;
}

.single-article__title {
	max-width: 900px;
	font-size: clamp(2rem, 4vw, 3.1rem);
	line-height: 1.16;
	letter-spacing: -0.035em;
	margin: 0 0 0.9rem;
	text-wrap: balance;
}

.single-article__meta:empty {
	display: none;
}

.single-article__meta .ej-cat {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.7rem;
	margin: 0 0 0.85rem;
	border-radius: 999px;
	border: 1px solid rgba(197, 107, 69, 0.28);
	background: rgba(197, 107, 69, 0.08);
	letter-spacing: 0.05em;
}


.single-article__excerpt {
	margin: 0 0 1.1rem;
	max-width: 42rem;
	font-size: 1.12rem;
	line-height: 1.65;
	color: #4a5056;
}

.single-article__byline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.65rem;
	align-items: center;
	color: var(--ej-muted);
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

.single-article__byline a {
	color: var(--ej-text);
	font-weight: 600;
}

.share-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.25rem;
}

.share-bar__label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ej-muted);
	margin-right: 0.15rem;
}

.share-bar__btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--ej-border);
	border-radius: 8px;
	background: var(--ej-card);
	color: var(--ej-text);
	font-size: 0.85rem;
	font-weight: 600;
	padding: 0.4rem 0.75rem;
	cursor: pointer;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.share-bar__btn:hover,
.share-bar__btn:focus-visible {
	border-color: var(--ej-accent);
	color: var(--ej-accent);
	background: #fff;
}

.share-bar__copy.is-copied {
	border-color: var(--ej-accent);
	color: var(--ej-accent);
}

.single-article__featured {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto 2.5rem;
	border-radius: var(--ej-radius);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	max-height: 560px;
	position: relative;
	background: #f1eee8;
	border: 1px solid var(--ej-border);
	box-shadow: var(--ej-shadow);
	display: flex;
	align-items: center;
	justify-content: center;
}

.single-article__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #f1eee8;
}

.single-article__featured figcaption {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	max-width: calc(100% - 1.5rem);
	margin: 0;
	padding: 0.35rem 0.6rem;
	border-radius: 6px;
	background: rgba(32, 35, 38, 0.78);
	color: #fff;
	font-size: 0.75rem;
	line-height: 1.4;
}

.single-magazine__grid {
	display: grid;
	grid-template-columns: minmax(0, 2.5fr) minmax(250px, 1fr);
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: start;
}

.single-magazine__grid--no-sidebar {
	grid-template-columns: minmax(0, 1fr);
}

.single-magazine__grid--no-sidebar .single-magazine__main {
	max-width: 820px;
	width: 100%;
	margin: 0 auto;
}

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

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

.single-magazine__aside-inner {
	position: sticky;
	top: calc(var(--ej-header-h) + 1rem);
	max-height: calc(100vh - var(--ej-header-h) - 2rem);
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	padding-right: 3px;
}

.sidebar {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.sidebar-block {
	margin-bottom: 0;
}

.author-card {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	align-items: center;
	gap: 1rem;
	margin-top: 0;
	padding: 1.25rem;
	background: #F3EDE4;
	border: 1px solid var(--ej-border);
	border-radius: var(--ej-radius);
	box-shadow: none;
}

.author-card__avatar {
	border-radius: 50%;
	overflow: hidden;
}

.author-card__img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

.author-card__label {
	margin: 0 0 0.2rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ej-muted);
}

.author-card__name {
	margin: 0 0 0.45rem;
	font-size: 1.2rem;
}

.author-card__name a {
	color: var(--ej-text);
}

.author-card__bio {
	margin: 0;
	color: #4a5056;
	font-size: 0.98rem;
	line-height: 1.6;
}

.single-article .entry-content {
	font-size: 1.0625rem;
	line-height: 1.8;
	color: #2a2e32;
}

.single-article .entry-content > *:first-child {
	margin-top: 0;
}

.single-article .entry-content > * + * {
	margin-top: 1.15em;
}

.single-article .entry-content h2,
.single-article .entry-content h3,
.single-article .entry-content h4 {
	margin-top: 1.85em;
	margin-bottom: 0.55em;
	scroll-margin-top: calc(var(--ej-header-h) + 0.75rem);
	color: var(--ej-text);
}

.single-article .entry-content h2 {
	font-size: clamp(1.35rem, 2.2vw, 1.65rem);
	padding-bottom: 0.45rem;
	border-bottom: 2px solid rgba(197, 107, 69, 0.28);
}

.single-article .entry-content h3 {
	font-size: clamp(1.15rem, 1.8vw, 1.3rem);
}

.single-article .entry-content p {
	margin: 0;
}

.single-article .entry-content a {
	color: var(--ej-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.single-article .entry-content a:hover,
.single-article .entry-content a:focus-visible {
	color: var(--ej-text);
}

.single-article .entry-content img {
	border-radius: 8px;
}

.single-article .entry-content figure {
	margin: 1.5em 0;
}

.single-article .entry-content figcaption {
	font-size: 0.875rem;
	color: var(--ej-muted);
	margin-top: 0.5rem;
}

.single-article .entry-content ul,
.single-article .entry-content ol {
	padding-left: 1.35em;
	margin: 0;
}

.single-article .entry-content li + li {
	margin-top: 0.4em;
}

.single-article .entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0.25em 0;
	display: block;
	overflow-x: auto;
	border: 1px solid var(--ej-border);
	border-radius: 8px;
	background: var(--ej-card);
}

.single-article .entry-content th,
.single-article .entry-content td {
	border: 1px solid var(--ej-border);
	padding: 0.7rem 0.9rem;
	text-align: left;
	vertical-align: top;
}

.single-article .entry-content th {
	background: #F3EDE4;
	font-weight: 700;
}

.single-article .entry-content blockquote,
.single-article .entry-content .wp-block-quote,
.single-article .entry-content .ej-highlight,
.single-article .entry-content .wp-block-group.has-background,
.single-article .entry-content .has-background:not(.wp-block-button):not(.wp-block-cover) {
	margin: 1.5em 0;
	padding: 1.15rem 1.25rem;
	background: #F3EDE4;
	border: 1px solid var(--ej-border);
	border-left: 3px solid var(--ej-accent);
	border-radius: var(--ej-radius);
	color: #2f3438;
	box-shadow: none;
}

.single-article .entry-content blockquote,
.single-article .entry-content .wp-block-quote {
	font-family: var(--ej-serif);
	font-style: italic;
	font-size: 1.05rem;
}

.single-article .entry-content blockquote p,
.single-article .entry-content .wp-block-quote p {
	margin: 0;
}

.single-article .entry-content blockquote cite,
.single-article .entry-content .wp-block-quote cite {
	display: block;
	margin-top: 0.75rem;
	font-family: var(--ej-sans);
	font-style: normal;
	font-size: 0.875rem;
	color: var(--ej-muted);
}

.single-article .entry-content pre,
.single-article .entry-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.single-article .entry-content pre {
	padding: 1rem 1.1rem;
	overflow-x: auto;
	background: #201f1c;
	color: #f4f0ea;
	border-radius: 8px;
	font-size: 0.9rem;
	line-height: 1.55;
}

.single-article .entry-content :not(pre) > code {
	padding: 0.12em 0.35em;
	background: #F3EDE4;
	border-radius: 4px;
	font-size: 0.92em;
}

.single-article .entry-content .alignwide {
	max-width: 100%;
}

.single-article .entry-content .alignfull {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

.single-article__footer {
	margin-top: 2.25rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--ej-border);
}

.tag-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ej-border);
	font-size: 0.9rem;
	color: var(--ej-muted);
}

.tag-links__label {
	font-weight: 700;
	color: var(--ej-text);
	margin-right: 0.15rem;
}

.tag-links__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.tag-links a {
	display: inline-flex;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	border: 1px solid var(--ej-border);
	background: var(--ej-card);
	color: var(--ej-text);
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 600;
}

.tag-links a:hover,
.tag-links a:focus-visible {
	border-color: var(--ej-accent);
	color: var(--ej-accent);
}

.related-bottom {
	max-width: 1000px;
	margin: 3.25rem auto 0;
	padding-top: 2rem;
	border-top: 1px solid var(--ej-border);
}

.related-bottom__head {
	margin-bottom: 1.25rem;
}

.related-bottom__head .section-eyebrow {
	margin: 0 0 0.3rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ej-accent);
}

.related-bottom__title {
	font-size: 1.5rem;
	margin: 0;
}

.articles-grid--related {
	grid-template-columns: repeat(3, 1fr);
}

/* Sidebar */
.sidebar-block,
.sidebar-widget {
	background: var(--ej-card);
	border: 1px solid var(--ej-border);
	border-radius: var(--ej-radius);
	padding: 1.15rem 1.2rem;
	margin-bottom: 1.25rem;
}

.sidebar-block__title,
.sidebar-widget__title {
	font-size: 1rem;
	margin: 0 0 1rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid var(--ej-border);
}

.sidebar-toc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid var(--ej-border);
}

.sidebar-toc .sidebar-toc__title {
	margin: 0;
	padding: 0;
	border: 0;
}

.sidebar-toc__toggle {
	appearance: none;
	border: 1px solid var(--ej-border);
	background: #F7F5F0;
	color: var(--ej-text);
	border-radius: 6px;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 0.3rem 0.6rem;
	cursor: pointer;
}

.sidebar-toc__toggle:hover,
.sidebar-toc__toggle:focus-visible {
	border-color: var(--ej-accent);
	color: var(--ej-accent);
}

.toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.toc-list a {
	display: block;
	padding: 0.35rem 0.45rem;
	border-radius: 6px;
	color: #4a5056;
	font-size: 0.9rem;
	line-height: 1.4;
	text-decoration: none;
	border-left: 2px solid transparent;
}

.toc-list a:hover,
.toc-list a:focus-visible {
	color: var(--ej-accent);
	background: #F7F5F0;
}

.toc-list a.is-active {
	color: var(--ej-accent);
	border-left-color: var(--ej-accent);
	background: rgba(197, 107, 69, 0.08);
	font-weight: 600;
}

.toc-list .toc-h3 {
	padding-left: 0.85rem;
}

.toc-list .toc-h3 a {
	font-size: 0.84rem;
}

@media (min-width: 768px) {
	.sidebar-toc__toggle {
		display: none !important;
	}

	.sidebar-toc__nav {
		display: block !important;
	}
}

.sidebar-posts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.sidebar-posts__link {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 0.75rem;
	color: inherit;
	align-items: start;
}

.sidebar-posts__thumb {
	display: block;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: #ece7df;
}

.sidebar-posts__title {
	display: block;
	font-family: var(--ej-serif);
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ej-text);
}

.sidebar-posts__date {
	display: block;
	font-size: 0.78rem;
	color: var(--ej-muted);
	margin-top: 0.25rem;
}

.sidebar-cats {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar-cats li {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.45rem 0;
	border-bottom: 1px solid var(--ej-border);
	font-size: 0.92rem;
}

.sidebar-cats li:last-child {
	border-bottom: 0;
}

.sidebar-cats a {
	color: var(--ej-text);
}

.sidebar-cats .count {
	color: var(--ej-muted);
}

/* ---------- Page template ---------- */
.page-layout {
	padding: 2rem 0 3.5rem;
	max-width: calc(820px + var(--ej-pad) * 2);
}

.page-card {
	background: var(--ej-card);
	border: 1px solid var(--ej-border);
	border-radius: var(--ej-radius);
	padding: 2rem 1.75rem 2.25rem;
	box-shadow: var(--ej-shadow);
}

.page-card__title {
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	margin-bottom: 1.25rem;
}

.page-card__featured {
	margin: 0 0 1.5rem;
	border-radius: 8px;
	overflow: hidden;
}

.page-card--legal {
	max-width: 820px;
	margin: 0 auto;
	background: #fff;
}

.ej-page-hero {
	padding: 2.25rem 0 0.5rem;
}

.ej-page-hero--compact {
	padding-bottom: 0;
}

.ej-page-hero__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ej-accent);
}

.ej-page-hero__title {
	font-family: var(--ej-serif);
	font-size: clamp(1.9rem, 3.4vw, 2.75rem);
	line-height: 1.2;
	margin: 0 0 0.75rem;
}

.ej-page-hero__lead {
	margin: 0;
	max-width: 42rem;
	color: var(--ej-muted);
	font-size: 1.05rem;
}

.ej-page-split {
	padding-top: 1.5rem;
}

.ej-page-split__grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 1.75rem;
	align-items: start;
}

.ej-page-split__media,
.ej-contact-panel__media {
	margin: 0;
	border-radius: var(--ej-radius);
	overflow: hidden;
	border: 1px solid var(--ej-border);
	background: var(--ej-card);
}

.ej-page-split__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.ej-page-intro__card {
	max-width: 860px;
}

.ej-contact-panel__title {
	font-family: var(--ej-serif);
	font-size: 1.35rem;
	margin: 0 0 1rem;
}

.ej-contact-list {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ej-contact-list__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ej-muted);
	margin-bottom: 0.2rem;
}

.ej-contact-panel__note {
	margin: 0 0 1.25rem;
	font-size: 0.92rem;
	color: var(--ej-muted);
}

.ej-resources-layout {
	display: grid;
	grid-template-columns: 1.4fr 0.75fr;
	gap: 1.5rem;
	align-items: start;
}

.ej-resources-aside__title {
	font-family: var(--ej-serif);
	font-size: 1.25rem;
	margin: 0 0 0.85rem;
}

.ej-link-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.ej-link-list a {
	font-weight: 600;
	color: var(--ej-text);
}

.ej-link-list a:hover {
	color: var(--ej-accent);
}

.ej-write-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.75rem 0 0;
}

.ej-legal-section {
	padding-top: 1rem;
}

.single-comments-wrap {
	max-width: 760px;
	width: 100%;
	margin: 2.75rem auto 0;
}

/* ---------- Comments ---------- */
.comments-area,
.comments-card {
	margin-top: 0;
	padding: 1.75rem 1.5rem 1.85rem;
	background: var(--ej-card);
	border: 1px solid var(--ej-border);
	border-radius: var(--ej-radius);
	box-shadow: var(--ej-shadow);
}

.comments-title,
.comment-reply-title {
	font-size: 1.3rem;
	margin: 0 0 1.15rem;
}

.comment-list {
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
}

.comment-list .comment {
	padding: 1.05rem 0;
	border-bottom: 1px solid var(--ej-border);
}

.comment-list .comment:last-child {
	border-bottom: 0;
}

.comment-list .children {
	list-style: none;
	margin: 0.85rem 0 0 1rem;
	padding: 0 0 0 0.85rem;
	border-left: 2px solid var(--ej-border);
}

.comment-author {
	font-weight: 700;
}

.comment-meta {
	font-size: 0.85rem;
	color: var(--ej-muted);
	margin: 0.25rem 0 0.65rem;
}

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

.comment-respond--card,
.comment-respond {
	margin-top: 0.5rem;
	padding-top: 1.15rem;
	border-top: 1px solid var(--ej-border);
}

.comment-notes {
	margin: 0 0 1rem;
	font-size: 0.88rem;
	color: var(--ej-muted);
}

.comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	border: 1px solid var(--ej-border);
	border-radius: var(--ej-radius);
	padding: 0.7rem 0.9rem;
	background: #F7F5F0;
	margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: 2px solid rgba(197, 107, 69, 0.35);
	outline-offset: 1px;
	border-color: var(--ej-accent);
	background: #fff;
}

.comment-form .form-submit .submit {
	background: var(--ej-accent);
	color: #fff;
	border: 0;
	border-radius: var(--ej-radius);
	padding: 0.75rem 1.25rem;
	cursor: pointer;
	font-weight: 600;
}

/* ---------- Pagination ---------- */
.navigation.pagination,
.ej-pagination {
	margin-top: 2.5rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.nav-links a,
.nav-links span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	padding: 0.55rem 0.85rem;
	border: 1px solid var(--ej-border);
	border-radius: 8px;
	background: var(--ej-card);
	color: var(--ej-text);
	font-weight: 500;
}

.nav-links .current {
	background: var(--ej-accent);
	border-color: var(--ej-accent);
	color: #fff;
}

.nav-links a:hover {
	border-color: var(--ej-accent);
	color: var(--ej-accent);
}

/* ---------- Footer ---------- */
.site-footer {
	background: #1f2326;
	color: #d8d4cd;
	padding: 3rem 0 1.5rem;
	margin-top: 1rem;
}

.site-footer a {
	color: #f0ebe3;
}

.site-footer a:hover {
	color: #f0b090;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col__title {
	color: #fff;
	font-size: 1.05rem;
	margin-bottom: 1rem;
}

.footer-brand {
	display: inline-flex;
	align-items: center;
	margin: 0 0 1rem;
	line-height: 0;
	text-decoration: none;
}

.footer-brand__logo,
.footer-brand .skillora-logo {
	display: block;
	height: 40px;
	width: auto;
	max-height: 40px;
}

.footer-brand--text {
	font-family: var(--ej-serif);
	font-size: 1.35rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
}

.footer-about-text {
	margin: 0;
	line-height: 1.7;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.footer-friend-links {
	padding: 1.25rem 0 0.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: 0.25rem;
}

.footer-friend-links__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem 1.15rem;
}

.footer-friend-links__item {
	margin: 0;
}

.footer-friend-links__item a {
	font-size: 0.9rem;
	color: #d8d4cd;
	text-decoration: none;
}

.footer-friend-links__item a:hover {
	color: #f0b090;
}

.footer-bottom {
	padding-top: 1.25rem;
}

.copyright {
	margin: 0;
	font-size: 0.875rem;
	color: #9a9590;
}

/* ---------- Animations ---------- */
@keyframes ej-rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes ej-fade-down {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.home-icons__list {
		grid-template-columns: repeat(3, 1fr);
	}

	.home-topics__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 1024px) {
	.home-hero {
		padding-top: 2.25rem;
	}

	.home-hero--bg {
		background-position: 62% 30%;
	}

	.home-hero__grid,
	.home-about__grid,
	.home-featured__grid {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.home-featured__copy {
		padding: 0 1.35rem 1.75rem;
	}

	.home-picks__grid,
	.articles-grid,
	.articles-grid--latest,
	.articles-grid--picks,
	.articles-grid--popular,
	.articles-grid--related,
	.featured-categories__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.single-magazine__grid {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.single-magazine__aside-inner {
		position: static;
		max-height: none;
		overflow: visible;
		padding-right: 0;
	}

	.articles-grid--related {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 767px) {
	.site-header__inner {
		grid-template-columns: 1fr auto;
	}

	.site-branding .custom-logo,
	.site-branding .skillora-logo {
		max-height: 34px;
		height: 34px;
	}

	.home-hero--bg {
		background-position: 68% 28%;
		background-size: cover;
	}

	.home-hero--bg::before {
		background:
			linear-gradient(
				180deg,
				rgba(247, 245, 240, 0.9) 0%,
				rgba(247, 245, 240, 0.84) 42%,
				rgba(247, 245, 240, 0.92) 100%
			),
			linear-gradient(
				45deg,
				rgba(197, 107, 69, 0.1) 0%,
				rgba(197, 107, 69, 0) 50%
			);
	}

	.ej-page-split__grid,
	.ej-resources-layout {
		grid-template-columns: 1fr;
	}

	.page-card {
		padding: 1.35rem 1.15rem 1.5rem;
	}

	.header-cta {
		display: none;
	}

	.primary-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--ej-bg);
		border-bottom: 1px solid var(--ej-border);
		padding: 0.75rem var(--ej-pad) 1rem;
		justify-self: stretch;
	}

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

	.primary-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.primary-menu > li {
		border-bottom: 1px solid var(--ej-border);
	}

	.primary-menu > li > a,
	.primary-menu .menu-link-wrap > a {
		display: block;
		padding: 0.75rem 0;
	}

	.primary-menu .menu-link-wrap {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
	}

	.primary-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		display: none;
		border: 0;
		box-shadow: none;
		background: transparent;
		padding: 0 0 0.5rem 0.85rem;
		min-width: 0;
	}

	.primary-menu .menu-item-has-children.is-open > .sub-menu {
		display: block;
	}

	.primary-menu .sub-menu a {
		padding: 0.55rem 0;
		white-space: normal;
		border-bottom: 1px solid var(--ej-border);
	}

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

	.home-hero__aside,
	.home-icons__list,
	.home-topics__grid,
	.home-picks__grid,
	.articles-grid,
	.articles-grid--latest,
	.articles-grid--picks,
	.articles-grid--popular,
	.articles-grid--related,
	.featured-categories__grid {
		grid-template-columns: 1fr;
	}

	.home-topics__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.9rem;
	}

	.home-cta__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.featured-cat-block .featured-card {
		flex-direction: column;
	}

	.featured-cat-block .featured-card__media {
		width: 100%;
		aspect-ratio: 3 / 2;
	}

	.single-layout {
		padding-top: 1.25rem;
		padding-bottom: 2.5rem;
	}

	.single-article__header {
		max-width: none;
		margin-bottom: 1.25rem;
	}

	.single-article__title {
		font-size: clamp(1.8rem, 7vw, 2.35rem);
		line-height: 1.2;
	}

	.single-article__excerpt {
		font-size: 1rem;
		line-height: 1.65;
	}

	.single-article__featured {
		margin-bottom: 1.5rem;
		border-radius: 8px;
	}

	.single-magazine__grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.single-magazine__aside-inner {
		position: static;
		max-height: none;
		overflow: visible;
		padding-right: 0;
	}

	.sidebar-toc__toggle {
		display: inline-flex;
	}

	.sidebar-toc:not(.is-open) .sidebar-toc__nav {
		display: none;
	}

	.sidebar-toc.is-open .sidebar-toc__nav {
		display: block;
	}

	.comments-area,
	.comments-card {
		padding: 1.2rem 1rem 1.3rem;
	}

	.author-card {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 0.85rem;
		padding: 1rem;
	}

	.author-card__img {
		width: 56px;
		height: 56px;
	}

	.share-bar {
		gap: 0.4rem;
	}

	.share-bar__btn {
		font-size: 0.78rem;
		padding: 0.38rem 0.58rem;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}

	.page-card {
		padding: 1.5rem 1.15rem 1.75rem;
	}

	.search-form {
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	.home-topics__grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Single article cleanup: v1.6.2 ---------- */
.single-layout {
	max-width: calc(1080px + var(--ej-pad) * 2);
}

.single-article__header,
.single-article__featured {
	width: 100%;
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

.single-article__header {
	margin-bottom: 1.75rem;
}

.single-article__featured {
	aspect-ratio: 16 / 9;
	max-height: none;
	display: block;
}

.single-article__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.single-magazine__grid,
.single-magazine__grid--no-sidebar {
	display: block;
	width: 100%;
	max-width: 820px;
	margin: 0 auto;
}

.single-magazine__grid--no-sidebar .single-magazine__main,
.single-magazine__main {
	width: 100%;
	max-width: none;
	margin: 0;
}

.single-magazine__aside {
	display: none !important;
}

.related-bottom {
	width: 100%;
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

.single-comments-wrap {
	width: 100%;
	max-width: 820px;
	margin: 2.75rem auto 0;
}

.comments-card .must-log-in a,
.comments-card a[href*="wp-login.php"],
.comments-card a[href*="wp-login"] {
	display: none !important;
}

@media (max-width: 767px) {
	.single-article__header,
	.single-article__featured,
	.single-magazine__grid,
	.single-magazine__grid--no-sidebar,
	.related-bottom,
	.single-comments-wrap {
		width: 100%;
		max-width: 100%;
	}

	.single-article__featured {
		aspect-ratio: 16 / 9;
		margin-bottom: 1.5rem;
	}

	.single-magazine__grid {
		margin-left: 0;
		margin-right: 0;
	}
}


/* ---------- Single article refinements: v1.6.3 ---------- */
.single-magazine__grid,
.single-magazine__grid--no-sidebar {
	width: 100%;
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

.single-magazine__grid--no-sidebar .single-magazine__main,
.single-magazine__main {
	width: 100%;
	max-width: none;
	margin: 0;
}

.single-post-nav {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	gap: 1rem;
	width: 100%;
	margin: 2rem 0 0;
}

.single-post-nav__link {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	justify-content: center;
	gap: 0.55rem;
	min-width: 0;
	min-height: 108px;
	padding: 1rem 1.15rem;
	border: 1px solid var(--ej-border);
	border-radius: var(--ej-radius);
	background: var(--ej-card);
	color: var(--ej-text);
	text-decoration: none;
	box-shadow: var(--ej-shadow);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.single-post-nav__link:hover,
.single-post-nav__link:focus-visible {
	border-color: var(--ej-accent);
	color: var(--ej-text);
	transform: translateY(-2px);
}

.single-post-nav__link--next {
	text-align: right;
	margin-left: auto;
}

.single-post-nav__label {
	color: var(--ej-accent);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.single-post-nav__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-family: var(--ej-serif);
	font-size: 1rem;
	line-height: 1.45;
}

.comments-card .logged-in-as,
.comments-card .must-log-in {
	margin: 0 0 1rem;
	color: var(--ej-muted);
	font-size: 0.88rem;
	line-height: 1.6;
}

.comments-card .logged-in-as a,
.comments-card .must-log-in a {
	color: inherit;
	text-decoration: none;
	pointer-events: none;
}

@media (max-width: 767px) {
	.single-magazine__grid,
	.single-magazine__grid--no-sidebar {
		width: 100%;
		max-width: 100%;
	}

	.single-post-nav {
		gap: 0.65rem;
	}

	.single-post-nav__link {
		min-height: 96px;
		padding: 0.85rem;
	}

	.single-post-nav__title {
		font-size: 0.9rem;
	}
}

@media (max-width: 480px) {
	.single-post-nav {
		flex-direction: column;
	}

	.single-post-nav__link--next {
		text-align: left;
	}
}


/* =========================================================
   Skillora Code editorial refresh — v1.7.0
   ========================================================= */
:root { --ej-reading-width: 900px; --ej-page-width: 1040px; }

/* Article: aligned magazine header, feature image and reading column. */
.single-layout { max-width: calc(1120px + var(--ej-pad) * 2); padding-top: clamp(1.5rem, 3vw, 2.75rem); }
.single-article__header,
.single-article__featured,
.single-magazine__grid,
.single-magazine__grid--no-sidebar,
.related-bottom,
.single-comments-wrap {
  width: 100%; max-width: 960px; margin-left: auto; margin-right: auto;
}
.single-article__header { margin-bottom: 1.4rem; }
.single-article__title { max-width: 940px; font-size: clamp(2.15rem, 4.6vw, 3.65rem); line-height: 1.08; letter-spacing: -.04em; }
.single-article__excerpt { max-width: 760px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; }
.single-article__featured { margin-top: 0; margin-bottom: 2rem; aspect-ratio: 16 / 9; max-height: 540px; }
.single-article__img { object-fit: cover; }
.single-magazine__grid--no-sidebar { display: block; }
.single-magazine__grid--no-sidebar .single-magazine__main,
.single-magazine__main { width: 100%; max-width: none; margin: 0; }
.single-magazine__aside { display: none !important; }
.single-article .entry-content { max-width: var(--ej-reading-width); margin: 0; font-size: 1.075rem; line-height: 1.85; }
.single-article .entry-content p { margin: 0; }
.single-article .entry-content h2 { margin-top: 2.1em; font-size: clamp(1.55rem, 2.5vw, 1.9rem); }
.single-article .entry-content h3 { margin-top: 1.65em; font-size: clamp(1.2rem, 2vw, 1.4rem); }
.single-article .entry-content pre { max-width: 100%; overflow-x: auto; tab-size: 2; }
.single-article .entry-content table { max-width: 100%; }
.single-post-nav { max-width: var(--ej-reading-width); margin-top: 2.5rem; }
.single-article__footer { max-width: var(--ej-reading-width); margin-top: 2rem; }
.single-comments-wrap { max-width: var(--ej-reading-width); margin-top: 2.5rem; }
.related-bottom { margin-top: 3rem; padding-top: 2rem; }
.related-links-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.related-link-card { min-width: 0; display: flex; flex-direction: column; gap: .55rem; padding: 1.15rem 1.2rem; background: var(--ej-card); border: 1px solid var(--ej-border); border-radius: var(--ej-radius); box-shadow: var(--ej-shadow); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.related-link-card:hover { border-color: var(--ej-accent); transform: translateY(-2px); }
.related-link-card span { color: var(--ej-muted); font-size: .76rem; }
.related-link-card strong { color: var(--ej-text); font-family: var(--ej-serif); font-size: 1.05rem; line-height: 1.4; }
.related-link-card em { margin-top: auto; color: var(--ej-accent); font-size: .82rem; font-style: normal; font-weight: 700; }

/* In-article contents box. */
.article-toc { max-width: var(--ej-reading-width); margin: 0 0 2rem; padding: 1rem 1.2rem; background: #f3ede4; border: 1px solid var(--ej-border); border-radius: var(--ej-radius); }
.article-toc[hidden] { display: none !important; }
.article-toc__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--ej-text); }
.article-toc__head strong { font-family: var(--ej-serif); font-size: 1.08rem; }
.article-toc .sidebar-toc__toggle { display: none; border: 1px solid var(--ej-border); border-radius: 6px; padding: .35rem .65rem; background: #fff; color: var(--ej-text); cursor: pointer; }
.article-toc .toc-list { margin: .75rem 0 0; padding-left: 1.25rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem 1.5rem; }
.article-toc .toc-list li { padding-left: .15rem; color: var(--ej-muted); font-size: .9rem; }
.article-toc .toc-list a { color: var(--ej-text); text-decoration: none; }
.article-toc .toc-list a:hover, .article-toc .toc-list a.is-active { color: var(--ej-accent); }
.article-toc .toc-h3 { margin-left: .75rem; font-size: .84rem; }

/* Topic landing pages. */
.topic-shortcuts { border-top: 1px solid var(--ej-border); border-bottom: 1px solid var(--ej-border); background: rgba(255,255,255,.42); }
.topic-shortcuts__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; padding-top: .85rem; padding-bottom: .85rem; }
.topic-shortcuts a { display: inline-flex; padding: .48rem .8rem; border: 1px solid var(--ej-border); border-radius: 999px; background: var(--ej-card); color: var(--ej-text); font-size: .84rem; font-weight: 600; text-decoration: none; }
.topic-shortcuts a:hover { border-color: var(--ej-accent); color: var(--ej-accent); }
.topic-description { padding-top: 1.5rem; padding-bottom: .5rem; }
.topic-description__inner { max-width: 900px; color: var(--ej-muted); }
.topic-description__inner > *:first-child { margin-top: 0; }
.topic-featured-section { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.topic-featured { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); overflow: hidden; border: 1px solid var(--ej-border); border-radius: var(--ej-radius); background: var(--ej-card); box-shadow: var(--ej-shadow); }
.topic-featured__media { display: block; min-height: 300px; overflow: hidden; background: #eae5dc; }
.topic-featured__img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.topic-featured__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(1.35rem, 3vw, 2.5rem); }
.topic-featured__meta { margin: 0 0 .6rem; color: var(--ej-muted); font-size: .82rem; }
.topic-featured__body h3 { margin: 0 0 .8rem; font-family: var(--ej-serif); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.2; }
.topic-featured__body h3 a { color: var(--ej-text); text-decoration: none; }
.topic-featured__body > p:not(.topic-featured__meta) { color: var(--ej-muted); line-height: 1.7; }
.topic-featured__body .btn { margin-top: .5rem; }
.topic-articles-section { padding-top: 1.75rem; }

/* Supporting pages: consistent editorial widths and page-specific cards. */
.ej-page-hero { padding-top: clamp(2rem, 4vw, 3.5rem); padding-bottom: .75rem; }
.ej-page-hero > .container, .page-layout--editorial { max-width: calc(var(--ej-page-width) + var(--ej-pad) * 2); }
.ej-page-hero__title { max-width: 900px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.025em; }
.ej-page-hero__lead { max-width: 700px; line-height: 1.75; }
.ej-page-split { padding-top: 1.25rem; }
.ej-page-split__grid { grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: clamp(1.25rem, 3vw, 2.25rem); align-items: stretch; }
.ej-page-split__copy, .ej-contact-panel { padding: clamp(1.35rem, 2.8vw, 2.2rem); }
.ej-page-split__media { min-height: 100%; }
.ej-page-split__img { height: 100%; min-height: 360px; object-fit: cover; }
.ej-contact-panel { display: flex; flex-direction: column; }
.ej-contact-panel__media { margin-top: auto; }
.ej-contact-panel__media .ej-page-split__img { min-height: 180px; max-height: 220px; }
.ej-resources-layout { grid-template-columns: minmax(0, 1.5fr) minmax(240px, .75fr); gap: 1.5rem; }
.ej-resources-layout > .page-card, .ej-resources-aside { padding: clamp(1.25rem, 2.5vw, 2rem); }
.ej-legal-section .container { max-width: calc(900px + var(--ej-pad) * 2); }
.page-card--legal { max-width: 900px; padding: clamp(1.4rem, 3vw, 2.5rem); }
.page-layout--editorial { padding-top: 2rem; padding-bottom: 3.5rem; }
.page-layout--editorial > .page-card { max-width: 900px; margin: 0 auto; padding: clamp(1.4rem, 3vw, 2.5rem); }
.page-layout--editorial .page-card__title { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; }
.ej-page-intro .page-card { padding: clamp(1.35rem, 2.8vw, 2.25rem); }
.ej-write-cta { padding-top: .5rem; }

/* Responsive refinement. */
@media (max-width: 900px) {
  .related-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-featured { grid-template-columns: 1fr; }
  .topic-featured__media, .topic-featured__img { min-height: 0; aspect-ratio: 16 / 9; }
  .ej-page-split__grid, .ej-resources-layout { grid-template-columns: 1fr; }
  .ej-page-split__img { min-height: 0; max-height: 420px; }
}
@media (max-width: 767px) {
  .single-layout { padding-top: 1.1rem; padding-bottom: 2.25rem; }
  .single-article__header, .single-article__featured, .single-magazine__grid, .related-bottom, .single-comments-wrap { max-width: 100%; }
  .single-article__title { font-size: clamp(1.85rem, 8vw, 2.55rem); }
  .single-article__featured { margin-bottom: 1.35rem; }
  .single-article .entry-content { font-size: 1rem; line-height: 1.8; }
  .article-toc .sidebar-toc__toggle { display: inline-flex; }
  .article-toc .sidebar-toc__nav { display: none; }
  .article-toc.is-open .sidebar-toc__nav { display: block; }
  .article-toc .toc-list { grid-template-columns: 1fr; }
  .related-links-grid { grid-template-columns: 1fr; }
  .single-post-nav { flex-direction: row; gap: .55rem; }
  .single-post-nav__link { min-height: 90px; padding: .8rem; }
  .single-post-nav__title { font-size: .88rem; }
  .single-post-nav__link--next { text-align: right; }
  .ej-page-hero { padding-top: 1.5rem; }
  .topic-shortcuts__inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .topic-shortcuts a { white-space: nowrap; }
  .topic-featured__body { padding: 1.25rem; }
  .page-layout--editorial { padding-top: 1.25rem; }
}
@media (max-width: 420px) {
  .single-post-nav { flex-direction: column; }
  .single-post-nav__link--next { text-align: left; }
}

/* Archive/category pages use the same compact editorial system. */
.archive-header { padding: clamp(2rem, 4vw, 3.5rem) 0 1.25rem; background: linear-gradient(180deg, rgba(243,237,228,.72), rgba(247,245,240,0)); }
.archive-header > .container { max-width: calc(var(--ej-page-width) + var(--ej-pad) * 2); }
.archive-header__title { max-width: 900px; font-family: var(--ej-serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -.03em; }
.archive-header__desc { max-width: 760px; color: var(--ej-muted); line-height: 1.75; }
.archive-section { padding-top: 1.5rem; }
.archive-section > .container { max-width: calc(var(--ej-page-width) + var(--ej-pad) * 2); }
.archive-section .articles-grid { gap: 1.2rem; }
.archive-section .article-card { height: 100%; }
.archive-section .article-card__media { aspect-ratio: 16 / 9; }
.archive-section .article-card__body { padding: 1.1rem 1.15rem 1.25rem; }

/* Skillora Code 1.8.0: editorial topic and supporting-page refinement. */
.ej-topic-hero { padding-top: clamp(1.8rem, 3.8vw, 3rem); padding-bottom: 1.4rem; }
.ej-topic-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: center; }
.ej-topic-hero__copy { max-width: 650px; }
.ej-topic-hero__media { margin: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--ej-border); box-shadow: var(--ej-shadow); background: #e9e5de; }
.ej-topic-hero__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.topic-longform { max-width: 960px; margin: 0 auto; color: var(--ej-text); }
.topic-longform__intro { max-width: 850px; font-size: clamp(1.05rem, 1.6vw, 1.18rem); line-height: 1.85; color: #555d63; margin: 0 0 1.8rem; }
.topic-longform h2 { margin: 2.1rem 0 .8rem; font-size: clamp(1.45rem, 2.4vw, 1.85rem); letter-spacing: -.02em; }
.topic-longform__section p { max-width: 900px; line-height: 1.85; color: #4f565c; }
.topic-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin: 1.1rem 0 1.8rem; }
.topic-info-card { min-width: 0; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--ej-border); border-radius: 10px; box-shadow: 0 5px 18px rgba(32,35,38,.035); }
.topic-info-card h3 { margin: 0 0 .45rem; font-size: 1.05rem; }
.topic-info-card p { margin: 0; color: var(--ej-muted); font-size: .94rem; line-height: 1.65; }
.topic-longform__note { margin: 2rem 0 .5rem; padding: 1.35rem 1.5rem; border: 1px solid rgba(197,107,69,.2); border-left: 4px solid var(--ej-accent); border-radius: 10px; background: #f2e9df; }
.topic-longform__note strong { display: block; margin-bottom: .35rem; font-family: var(--ej-serif); font-size: 1.1rem; }
.topic-longform__note p { margin: 0 0 .6rem; color: #5c5b57; }
.topic-longform__note a { font-weight: 700; }
.topic-description { padding-top: 1.5rem; padding-bottom: 1rem; }
.topic-description__inner { max-width: 1000px; }
.topic-featured-section { padding-top: 1.2rem; }
.ej-page-hero__lead { max-width: 760px; font-size: 1.06rem; }
.ej-page-split__copy .entry-content h2, .ej-legal-section .entry-content h2 { margin-top: 1.8rem; font-size: 1.35rem; }
.ej-page-split__copy .entry-content p, .ej-legal-section .entry-content p { line-height: 1.82; }
.ej-legal-section .page-card--legal { border-radius: 12px; box-shadow: 0 10px 34px rgba(32,35,38,.045); }
.ej-legal-section .entry-content > h2:first-child { margin-top: .3rem; }
.ej-contact-panel { align-self: start; }
.ej-contact-panel__media img { min-height: 180px; }
.ej-write-cta { margin-top: 1.5rem; }
.archive-header--latest .archive-header__title { margin-bottom: .5rem; }

@media (max-width: 900px) {
 .ej-topic-hero__grid { grid-template-columns: 1fr; }
 .ej-topic-hero__media { max-width: 720px; }
}
@media (max-width: 767px) {
 .topic-info-grid { grid-template-columns: 1fr; gap: .65rem; }
 .topic-longform h2 { margin-top: 1.65rem; }
 .topic-longform__note { padding: 1.1rem; }
 .ej-topic-hero__media img { aspect-ratio: 16 / 10; }
 .ej-page-split__copy, .ej-contact-panel, .page-card--legal { padding: 1.2rem; }
}
