/*
Theme Name: OnlineEarning Top
Theme URI: https://onlineearning.top/theme
Author: OnlineEarning.top
Author URI: https://onlineearning.top
Description: A premium, fast and fully responsive multilingual magazine/article theme built for editorial publications covering freelancing, online earning, AI tools, technology, web development, tutorials and remote jobs. Includes a sticky header, dynamic language switcher (WPML / Polylang / TranslatePress), automatic table of contents, nine advertisement slots, reorderable homepage sections, dark mode, schema, and full Gutenberg support.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: onlineearning-top
Tags: blog, news, magazine, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, translation-ready, rtl-language-support, block-styles, wide-blocks, threaded-comments
*/

/* ==========================================================================
   1. Design tokens (overridden from the Customizer via inline CSS)
   ========================================================================== */
:root {
	--oe-primary: #0f172a;
	--oe-secondary: #2563eb;
	--oe-accent: #10b981;
	--oe-bg: #ffffff;
	--oe-soft: #f8fafc;
	--oe-text: #0f172a;
	--oe-muted: #64748b;
	--oe-border: #e2e8f0;
	--oe-surface: #ffffff;
	--oe-radius: 14px;
	--oe-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .05);
	--oe-content-width: 760px;
	--oe-wide-width: 1240px;
	--oe-font-latin: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--oe-font-bengali: "Noto Sans Bengali", "Hind Siliguri", sans-serif;
	--oe-font: var(--oe-font-latin);
	color-scheme: light;
}

[data-theme="dark"] {
	--oe-bg: #0b1220;
	--oe-soft: #111a2b;
	--oe-surface: #131d31;
	--oe-text: #e8edf7;
	--oe-muted: #9aa8bf;
	--oe-border: #22304a;
	--oe-primary: #e8edf7;
	--oe-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
	color-scheme: dark;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: 92px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--oe-bg);
	color: var(--oe-text);
	font-family: var(--oe-font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.oe-lang-bn, [lang="bn"], html[lang="bn-BD"] body {
	font-family: var(--oe-font-bengali);
	line-height: 1.85;
}

html[dir="rtl"] body { font-family: "Noto Kufi Arabic", var(--oe-font-latin); }

img, svg, video, iframe, embed, object { max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.35em; }

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	color: var(--oe-text);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.015em;
	text-wrap: balance;
}

:focus-visible {
	outline: 3px solid var(--oe-secondary);
	outline-offset: 2px;
	border-radius: 4px;
}

::selection { background: color-mix(in srgb, var(--oe-secondary) 22%, transparent); }

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

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

.skip-link {
	position: absolute;
	inset-inline-start: 12px;
	top: -70px;
	z-index: 999;
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--oe-secondary);
	color: #fff;
	font-weight: 600;
	transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */
.oe-container {
	width: 100%;
	max-width: var(--oe-wide-width);
	margin-inline: auto;
	padding-inline: 16px;
}
@media (min-width: 768px) { .oe-container { padding-inline: 24px; } }

.oe-surface {
	background: var(--oe-surface);
	border: 1px solid var(--oe-border);
	border-radius: var(--oe-radius);
}

.oe-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) {
	.oe-layout--sidebar { grid-template-columns: minmax(0, 1fr) 330px; }
	.oe-layout--toc { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (min-width: 1280px) {
	.oe-layout--toc { grid-template-columns: 210px minmax(0, 1fr) 330px; }
}

.oe-grid { display: grid; gap: 34px 24px; }
@media (min-width: 640px) { .oe-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .oe-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .oe-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.oe-stack { display: flex; flex-direction: column; gap: 20px; }
.oe-mt { margin-top: 56px; }
.oe-mb { margin-bottom: 36px; }
.oe-divider { height: 1px; background: var(--oe-border); border: 0; margin: 0; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.oe-header {
	position: sticky;
	top: 0;
	z-index: 90;
	border-bottom: 1px solid var(--oe-border);
	background: color-mix(in srgb, var(--oe-bg) 88%, transparent);
	backdrop-filter: blur(6px);
}
body.admin-bar .oe-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .oe-header { top: 46px; } }

.oe-header__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
}

.oe-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.oe-brand__mark {
	display: grid;
	place-items: center;
	width: 36px; height: 36px;
	border-radius: 10px;
	background: var(--oe-secondary);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
}
.oe-brand__name { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.oe-brand__tagline { display: none; font-size: 11px; font-weight: 500; color: var(--oe-muted); }
@media (min-width: 640px) { .oe-brand__tagline { display: block; } }
.oe-brand img { max-height: 44px; width: auto; }

.oe-nav { display: none; margin-inline: auto; }
@media (min-width: 1024px) { .oe-nav { display: block; } }
.oe-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.oe-nav li { position: relative; }
.oe-nav a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 14.5px;
	font-weight: 500;
	transition: background .18s ease, color .18s ease;
}
.oe-nav a:hover, .oe-nav .current-menu-item > a, .oe-nav .current-menu-parent > a {
	background: var(--oe-soft);
	color: var(--oe-secondary);
}
.oe-nav .sub-menu {
	position: absolute;
	inset-inline-start: 0;
	top: 100%;
	display: none;
	flex-direction: column;
	min-width: 208px;
	padding: 6px;
	border: 1px solid var(--oe-border);
	border-radius: 12px;
	background: var(--oe-surface);
	box-shadow: var(--oe-shadow);
}
.oe-nav li:hover > .sub-menu,
.oe-nav li:focus-within > .sub-menu { display: flex; }

.oe-header__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
@media (min-width: 1024px) { .oe-header__actions { margin-inline-start: 0; } }

.oe-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	padding: 0;
	border: 1px solid var(--oe-border);
	border-radius: 10px;
	background: var(--oe-surface);
	color: var(--oe-text);
	cursor: pointer;
	transition: border-color .18s ease, color .18s ease;
}
.oe-icon-btn:hover { border-color: var(--oe-secondary); color: var(--oe-secondary); }
.oe-icon-btn--wide { width: auto; gap: 6px; padding-inline: 12px; font-size: 14px; font-weight: 500; }

@media (min-width: 1024px) { .oe-icon-btn--menu { display: none; } }

/* Language switcher */
.oe-lang { position: relative; display: none; }
@media (min-width: 640px) { .oe-lang { display: block; } }
.oe-lang__list {
	position: absolute;
	inset-inline-end: 0;
	top: 52px;
	z-index: 95;
	display: none;
	min-width: 190px;
	padding: 6px;
	margin: 0;
	border: 1px solid var(--oe-border);
	border-radius: 12px;
	background: var(--oe-surface);
	box-shadow: var(--oe-shadow);
	list-style: none;
}
.oe-lang.is-open .oe-lang__list { display: block; }
.oe-lang__list a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 14.5px;
}
.oe-lang__list a:hover { background: var(--oe-soft); }
.oe-lang__list .is-current a { color: var(--oe-secondary); font-weight: 600; }
.oe-lang__flag { width: 18px; height: auto; }

/* Mobile drawer */
.oe-drawer {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: none;
}
.oe-drawer.is-open { display: block; }
.oe-drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); border: 0; width: 100%; }
.oe-drawer__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	width: min(86%, 360px);
	padding: 20px;
	overflow-y: auto;
	background: var(--oe-bg);
	box-shadow: -20px 0 50px rgba(0, 0, 0, .2);
	animation: oe-slide-in .22s ease both;
}
@keyframes oe-slide-in { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.oe-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.oe-drawer nav ul { margin: 0; padding: 0; list-style: none; }
.oe-drawer nav a {
	display: block;
	padding: 14px 0;
	border-bottom: 1px solid var(--oe-border);
	font-size: 16px;
	font-weight: 500;
}
.oe-drawer .sub-menu a { padding-inline-start: 16px; font-size: 15px; color: var(--oe-muted); }
.oe-drawer__langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding: 0; list-style: none; }
.oe-drawer__langs a {
	display: inline-block;
	padding: 9px 12px;
	border: 1px solid var(--oe-border);
	border-radius: 10px;
	font-size: 14px;
}

/* Search overlay */
.oe-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 130;
	display: none;
}
.oe-search-overlay.is-open { display: block; }
.oe-search-overlay__bg { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0, 0, 0, .5); }
.oe-search-overlay__panel {
	position: relative;
	width: min(92%, 680px);
	margin: 12vh auto 0;
	animation: oe-fade-up .28s ease both;
}
.oe-search-overlay form {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	border: 1px solid var(--oe-border);
	border-radius: var(--oe-radius);
	background: var(--oe-surface);
	box-shadow: var(--oe-shadow);
}
.oe-search-overlay input[type="search"] {
	flex: 1;
	height: 48px;
	padding-inline: 10px;
	border: 0;
	background: transparent;
	color: var(--oe-text);
	font-size: 16px;
	font-family: inherit;
}
.oe-search-overlay input[type="search"]:focus { outline: none; }
.oe-search-suggest {
	margin-top: 8px;
	padding: 6px;
	border: 1px solid var(--oe-border);
	border-radius: var(--oe-radius);
	background: var(--oe-surface);
	box-shadow: var(--oe-shadow);
}
.oe-search-suggest:empty { display: none; }
.oe-search-suggest a { display: block; padding: 10px 12px; border-radius: 8px; }
.oe-search-suggest a:hover, .oe-search-suggest a:focus { background: var(--oe-soft); }
.oe-search-suggest strong { display: block; font-size: 15px; }
.oe-search-suggest span { font-size: 12.5px; color: var(--oe-muted); }

/* ==========================================================================
   5. Buttons, badges, meta
   ========================================================================== */
.oe-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding-inline: 18px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.oe-btn--primary { background: var(--oe-secondary); color: #fff; }
.oe-btn--primary:hover { background: color-mix(in srgb, var(--oe-secondary) 85%, #000); }
.oe-btn--ghost { background: transparent; border-color: var(--oe-border); color: var(--oe-text); }
.oe-btn--ghost:hover { border-color: var(--oe-secondary); color: var(--oe-secondary); }

.oe-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--oe-secondary) 11%, transparent);
	color: var(--oe-secondary);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.oe-kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--oe-secondary);
}

.oe-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	font-size: 13px;
	color: var(--oe-muted);
}
.oe-meta a:hover { color: var(--oe-secondary); }
.oe-meta__sep { opacity: .6; }

.oe-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 12px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--oe-border);
}
.oe-section-head__title { display: flex; align-items: center; gap: 12px; }
.oe-section-head__bar { width: 6px; height: 24px; border-radius: 999px; background: var(--oe-secondary); }
.oe-section-head h2 { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 800; }
.oe-section-head p { margin: 2px 0 0; font-size: 14px; color: var(--oe-muted); }
.oe-viewall {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--oe-secondary);
}
.oe-viewall:hover { gap: 10px; }

/* ==========================================================================
   6. Article cards
   ========================================================================== */
.oe-card { display: flex; flex-direction: column; height: 100%; }
.oe-card__thumb {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 12px;
	background: var(--oe-soft);
	aspect-ratio: 16 / 10;
}
.oe-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}
.oe-card:hover .oe-card__thumb img { transform: scale(1.04); }
.oe-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; margin-top: 14px; }
.oe-card__title { font-size: 18px; font-weight: 700; line-height: 1.35; transition: color .18s ease; }
.oe-card:hover .oe-card__title { color: var(--oe-secondary); }
.oe-card__excerpt { margin: 0; font-size: 14.5px; color: var(--oe-muted); }
.oe-card__foot { margin-top: auto; padding-top: 4px; }

.oe-card--featured .oe-card__thumb { aspect-ratio: 16 / 9; }
.oe-card--featured .oe-card__title { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem); font-weight: 800; line-height: 1.18; }
.oe-card--featured .oe-card__excerpt { font-size: 15.5px; }

.oe-card--horizontal { flex-direction: row; gap: 16px; }
.oe-card--horizontal .oe-card__thumb { flex: 0 0 116px; width: 116px; aspect-ratio: 4 / 3; }
@media (min-width: 640px) { .oe-card--horizontal .oe-card__thumb { flex-basis: 168px; width: 168px; } }
.oe-card--horizontal .oe-card__body { margin-top: 0; gap: 8px; min-width: 0; }
.oe-card--horizontal .oe-card__title { font-size: 16px; }
@media (min-width: 640px) { .oe-card--horizontal .oe-card__title { font-size: 18px; } }

.oe-card--compact .oe-card__title { font-size: 15.5px; font-weight: 600; }
.oe-card--compact .oe-card__body { margin-top: 0; gap: 6px; }

.oe-card--popular { flex-direction: row; gap: 12px; }
.oe-card--popular .oe-card__rank {
	flex: 0 0 28px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
	color: color-mix(in srgb, var(--oe-secondary) 45%, transparent);
}
.oe-card--popular .oe-card__body { margin-top: 0; gap: 6px; min-width: 0; }
.oe-card--popular .oe-card__title { font-size: 15.5px; font-weight: 600; }

.oe-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oe-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Hero / featured area */
.oe-hero { display: grid; gap: 32px; padding-top: 26px; }
@media (min-width: 1024px) {
	.oe-hero { grid-template-columns: 1.55fr 1fr; gap: 40px; }
	.oe-hero__side {
		border-inline-start: 1px solid var(--oe-border);
		padding-inline-start: 32px;
	}
}
.oe-hero__side { display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 1023px) { .oe-hero__side { border-top: 1px solid var(--oe-border); padding-top: 24px; } }

.oe-catblock { display: grid; gap: 32px; }
@media (min-width: 1024px) { .oe-catblock { grid-template-columns: 1.2fr 1fr; } }
.oe-catblock__list { display: flex; flex-direction: column; gap: 20px; }

.oe-popular-block {
	padding: 22px;
	border-radius: var(--oe-radius);
	background: var(--oe-soft);
}
@media (min-width: 640px) { .oe-popular-block { padding: 28px; } }
.oe-popular-block .oe-grid { gap: 20px 32px; }

/* ==========================================================================
   7. Single article
   ========================================================================== */
.oe-breadcrumbs { font-size: 13px; color: var(--oe-muted); }
.oe-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.oe-breadcrumbs a:hover { color: var(--oe-secondary); }
.oe-breadcrumbs [aria-current="page"] { color: var(--oe-text); }

.oe-entry-header h1 {
	margin-top: 12px;
	font-size: clamp(1.75rem, 1.35rem + 2vw, 2.7rem);
	font-weight: 800;
	line-height: 1.15;
	max-width: 24ch;
}
.oe-entry-header__deck {
	max-width: var(--oe-content-width);
	margin: 12px 0 0;
	font-size: clamp(1rem, .95rem + .3vw, 1.18rem);
	line-height: 1.6;
	color: var(--oe-muted);
}
.oe-entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	padding: 14px 0;
	margin-top: 20px;
	border-block: 1px solid var(--oe-border);
	font-size: 13px;
	color: var(--oe-muted);
}
.oe-entry-meta__author { display: flex; align-items: center; gap: 10px; }
.oe-entry-meta__author img { border-radius: 50%; }
.oe-entry-meta__author span { font-size: 14.5px; font-weight: 600; color: var(--oe-text); }

.oe-featured-figure { margin: 24px 0 0; }
.oe-featured-figure img { width: 100%; border-radius: var(--oe-radius); object-fit: cover; }
.oe-featured-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--oe-muted); }

/* Article typography */
.oe-article {
	max-width: var(--oe-content-width);
	font-size: 18px;
	line-height: 1.8;
}
@media (max-width: 767px) { .oe-article { font-size: 17px; line-height: 1.78; } }
@media (min-width: 1280px) { .oe-article { font-size: 19px; } }

.oe-article > * { margin-block: 0 1.35em; }
.oe-article h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.75rem); margin: 2.2em 0 .7em; scroll-margin-top: 100px; }
.oe-article h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.3rem); margin: 1.8em 0 .6em; scroll-margin-top: 100px; }
.oe-article h4 { font-size: 1.08rem; margin: 1.6em 0 .5em; }
.oe-article ul, .oe-article ol { padding-inline-start: 1.35em; }
.oe-article li { margin-bottom: .5em; }
.oe-article a { color: var(--oe-secondary); text-decoration: underline; text-underline-offset: 3px; }
.oe-article a:hover { text-decoration-thickness: 2px; }
.oe-article blockquote {
	margin: 1.8em 0;
	padding: 4px 0 4px 20px;
	border-inline-start: 4px solid var(--oe-accent);
	font-size: 1.05em;
}
.oe-article blockquote cite { display: block; margin-top: 8px; font-size: 14px; color: var(--oe-muted); font-style: normal; }
.oe-article figure { margin: 1.8em 0; }
.oe-article figcaption { margin-top: 8px; font-size: 14px; color: var(--oe-muted); text-align: center; }
.oe-article img { border-radius: 12px; height: auto; }
.oe-article pre {
	margin: 1.6em 0;
	padding: 18px;
	border-radius: 12px;
	background: #0b1220;
	color: #d8e2f3;
	font-size: 14.5px;
	line-height: 1.6;
	overflow-x: auto;
}
.oe-article code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.oe-article :not(pre) > code {
	padding: 2px 6px;
	border: 1px solid var(--oe-border);
	border-radius: 6px;
	background: var(--oe-soft);
}
.oe-article table { width: 100%; margin: 1.6em 0; border-collapse: collapse; font-size: 16px; }
.oe-article th, .oe-article td { padding: 10px 12px; border: 1px solid var(--oe-border); text-align: start; }
.oe-article th { background: var(--oe-soft); font-weight: 700; }
.oe-article .wp-block-table { overflow-x: auto; }
.oe-article details {
	margin-bottom: 12px;
	padding: 14px 16px;
	border: 1px solid var(--oe-border);
	border-radius: 12px;
}
.oe-article summary { cursor: pointer; font-weight: 650; }
.oe-article hr { height: 1px; margin: 2.4em 0; border: 0; background: var(--oe-border); }

/* Gutenberg alignment support */
.oe-article .alignwide { max-width: min(1040px, 92vw); margin-inline: auto; width: 100%; }
.oe-article .alignfull { max-width: 100vw; width: 100vw; margin-inline: calc(50% - 50vw); }
.oe-article .alignfull img { border-radius: 0; }
.oe-article .alignleft { float: inline-start; margin: .4em 1.6em 1.2em 0; max-width: 45%; }
.oe-article .alignright { float: inline-end; margin: .4em 0 1.2em 1.6em; max-width: 45%; }
.oe-article .aligncenter { margin-inline: auto; text-align: center; }
@media (max-width: 640px) {
	.oe-article .alignleft, .oe-article .alignright { float: none; max-width: 100%; margin-inline: 0; }
}
.wp-block-button__link { border-radius: 10px; font-weight: 600; }
.wp-block-separator { border-color: var(--oe-border); }
.wp-block-pullquote { border-block: 4px solid var(--oe-accent); padding: 1.6em 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; color: var(--oe-muted); }
.sticky .oe-card__title::before { content: "★ "; color: var(--oe-accent); }

/* Table of contents */
.oe-toc { padding: 16px; }
.oe-toc h2, .oe-toc summary {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.oe-toc ol { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.oe-toc a {
	display: block;
	padding: 6px 0 6px 12px;
	border-inline-start: 2px solid transparent;
	font-size: 14px;
	line-height: 1.4;
	color: var(--oe-muted);
}
.oe-toc a:hover { color: var(--oe-text); }
.oe-toc .is-level-3 a { padding-inline-start: 22px; }
.oe-toc a.is-active { border-inline-start-color: var(--oe-secondary); color: var(--oe-secondary); font-weight: 600; }
.oe-toc__desktop { display: none; }
@media (min-width: 1280px) {
	.oe-toc__desktop { display: block; position: sticky; top: 92px; }
	.oe-toc__mobile { display: none; }
}
.oe-toc__desktop > div { max-height: 62vh; overflow-y: auto; }
.oe-toc__mobile summary { cursor: pointer; }

/* Share, tags, author box */
.oe-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.oe-share__label { margin-inline-end: 4px; font-size: 13.5px; font-weight: 600; color: var(--oe-muted); }
.oe-share a, .oe-share button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding-inline: 12px;
	border: 1px solid var(--oe-border);
	border-radius: 10px;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 500;
	cursor: pointer;
}
.oe-share a:hover, .oe-share button:hover { border-color: var(--oe-secondary); color: var(--oe-secondary); }

.oe-taglist { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.oe-taglist a, .oe-tagcloud a {
	display: inline-block;
	padding: 6px 10px;
	border: 1px solid var(--oe-border);
	border-radius: 10px;
	font-size: 13px !important;
}
.oe-taglist a:hover, .oe-tagcloud a:hover { border-color: var(--oe-secondary); color: var(--oe-secondary); }

.oe-authorbox { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
@media (min-width: 640px) { .oe-authorbox { flex-direction: row; } }
.oe-authorbox img { border-radius: 50%; flex-shrink: 0; }
.oe-authorbox h2 { margin-top: 4px; font-size: 18px; }
.oe-authorbox__role { margin: 2px 0 0; font-size: 13.5px; color: var(--oe-muted); }
.oe-authorbox__bio { margin: 10px 0 0; font-size: 15px; line-height: 1.65; }
.oe-authorbox__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.oe-authorbox__links a { padding: 7px 12px; border: 1px solid var(--oe-border); border-radius: 10px; font-size: 13px; }

.oe-author-profile { display: flex; flex-direction: column; gap: 20px; padding: 24px; }
@media (min-width: 640px) { .oe-author-profile { flex-direction: row; align-items: center; } }
.oe-author-profile img { border-radius: 50%; flex-shrink: 0; }
.oe-author-profile h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); font-weight: 800; }

/* Archive headers */
.oe-archive-header { padding-bottom: 24px; margin-top: 20px; border-bottom: 1px solid var(--oe-border); }
.oe-archive-header__bar { display: block; width: 48px; height: 6px; margin-bottom: 12px; border-radius: 999px; background: var(--oe-secondary); }
.oe-archive-header h1 { font-size: clamp(1.85rem, 1.4rem + 2vw, 2.75rem); font-weight: 800; }
.oe-archive-header__desc { max-width: 68ch; margin: 10px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--oe-muted); }
.oe-archive-header__count { margin-top: 12px; font-size: 13px; color: var(--oe-muted); }

/* ==========================================================================
   8. Sidebar & widgets
   ========================================================================== */
.oe-sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.oe-sidebar__sticky { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1024px) { .oe-sidebar__sticky { position: sticky; top: 92px; } }

.oe-widget {
	padding: 16px;
	border: 1px solid var(--oe-border);
	border-radius: var(--oe-radius);
	background: var(--oe-surface);
}
.oe-widget .widget-title, .oe-widget__title {
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--oe-border);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.oe-widget ul { margin: 0; padding: 0; list-style: none; }
.oe-widget > ul > li {
	padding: 10px 0;
	border-bottom: 1px solid var(--oe-border);
	font-size: 15px;
}
.oe-widget > ul > li:last-child { border-bottom: 0; }
.oe-widget a:hover { color: var(--oe-secondary); }
.oe-widget__list { display: flex; flex-direction: column; gap: 16px; }
.oe-widget .count, .oe-widget__count { font-size: 13px; color: var(--oe-muted); font-variant-numeric: tabular-nums; }
.oe-widget__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.oe-widget__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--oe-secondary); display: inline-block; }
.oe-social-list { display: flex; flex-wrap: wrap; gap: 8px; }
.oe-social-list a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding-inline: 12px;
	border: 1px solid var(--oe-border);
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 500;
	text-transform: capitalize;
}
.oe-social-list a:hover { border-color: var(--oe-secondary); color: var(--oe-secondary); }

/* Search form */
.oe-searchform { display: flex; align-items: center; gap: 8px; padding: 8px; }
.oe-searchform input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 42px;
	padding-inline: 10px;
	border: 0;
	background: transparent;
	color: var(--oe-text);
	font-family: inherit;
	font-size: 15px;
}
.oe-searchform input[type="search"]:focus { outline: none; }

/* ==========================================================================
   9. Newsletter, ads, pagination, comments
   ========================================================================== */
.oe-newsletter { padding: 24px; background: var(--oe-soft); }
@media (min-width: 640px) { .oe-newsletter { padding: 36px; } }
.oe-newsletter h2 { max-width: 640px; margin-top: 8px; font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.9rem); font-weight: 800; line-height: 1.25; }
.oe-newsletter p { max-width: 620px; margin: 8px 0 0; font-size: 15.5px; color: var(--oe-muted); }
.oe-newsletter form { display: flex; flex-direction: column; gap: 8px; max-width: 520px; margin-top: 18px; }
@media (min-width: 640px) { .oe-newsletter form { flex-direction: row; } }
.oe-newsletter input[type="email"] {
	flex: 1;
	height: 46px;
	padding-inline: 14px;
	border: 1px solid var(--oe-border);
	border-radius: 10px;
	background: var(--oe-bg);
	color: var(--oe-text);
	font-family: inherit;
	font-size: 15px;
}
.oe-newsletter input[type="email"]:focus { outline: none; border-color: var(--oe-secondary); }
.oe-newsletter__note { margin-top: 10px; font-size: 12.5px; color: var(--oe-muted); }
.oe-newsletter--compact { padding: 16px; background: var(--oe-surface); }
.oe-newsletter--compact h2 { font-size: 17px; }
.oe-newsletter--compact p { font-size: 13.5px; }
.oe-newsletter--compact form { flex-direction: column; }

.oe-ad { margin-block: 20px; }
.oe-ad__label {
	margin: 0 0 6px;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-align: center;
	color: var(--oe-muted);
}
.oe-ad__inner { display: flex; justify-content: center; }
.oe-ad__inner > * { max-width: 100%; }
.oe-ad--articleMiddle, .oe-ad--article-middle { margin-block: 32px; }

.oe-pagination { margin-top: 40px; }
.oe-pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.oe-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 12px;
	border: 1px solid var(--oe-border);
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
}
.oe-pagination .page-numbers:hover { border-color: var(--oe-secondary); color: var(--oe-secondary); }
.oe-pagination .page-numbers.current {
	background: var(--oe-secondary);
	border-color: var(--oe-secondary);
	color: #fff;
}
.oe-pagination .dots { border-color: transparent; }

.oe-comments { margin-top: 48px; }
.oe-comments .comment-list { margin: 0; padding: 0; list-style: none; }
.oe-comments .comment-list li { margin-bottom: 20px; }
.oe-comments .comment-list ol.children { margin-top: 16px; padding-inline-start: 24px; list-style: none; }
.oe-comment {
	padding: 18px;
	border: 1px solid var(--oe-border);
	border-radius: var(--oe-radius);
	background: var(--oe-surface);
}
.oe-comment__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.oe-comment__head img { border-radius: 50%; }
.oe-comment__author { font-size: 15px; font-weight: 600; }
.oe-comment__date { font-size: 12.5px; color: var(--oe-muted); }
.comment-respond { margin-top: 28px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--oe-border);
	border-radius: 10px;
	background: var(--oe-bg);
	color: var(--oe-text);
	font-family: inherit;
	font-size: 15px;
}
.comment-form label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; }
.comment-form p { margin-bottom: 14px; }
.comment-form .submit {
	min-height: 44px;
	padding-inline: 20px;
	border: 0;
	border-radius: 10px;
	background: var(--oe-secondary);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

/* ==========================================================================
   10. Footer
   ========================================================================== */
.oe-footer {
	margin-top: 64px;
	border-top: 1px solid var(--oe-border);
	background: var(--oe-soft);
}
.oe-footer__cols { display: grid; gap: 36px; padding: 40px 0; }
@media (min-width: 640px) { .oe-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .oe-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.oe-footer h2, .oe-footer .widget-title {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.oe-footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.oe-footer a { font-size: 14.5px; color: var(--oe-muted); }
.oe-footer a:hover { color: var(--oe-secondary); }
.oe-footer__about { max-width: 340px; margin: 12px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--oe-muted); }
.oe-footer__bottom { border-top: 1px solid var(--oe-border); }
.oe-footer__bottom-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 0;
	font-size: 13.5px;
	color: var(--oe-muted);
}
@media (min-width: 640px) { .oe-footer__bottom-inner { flex-direction: row; } }
.oe-footer__bottom ul { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }

/* ==========================================================================
   11. Utilities & animation
   ========================================================================== */
@keyframes oe-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.oe-fade { animation: oe-fade-up .4s ease both; }
.oe-scroll-x { overflow-x: auto; scrollbar-width: none; }
.oe-scroll-x::-webkit-scrollbar { display: none; }
.oe-empty { padding: 24px; font-size: 15px; color: var(--oe-muted); }
.oe-notice { padding: 14px 16px; border-radius: 10px; background: var(--oe-soft); font-size: 14.5px; color: var(--oe-muted); }
.oe-no-results__group { margin-top: 24px; }
.oe-no-results__group h3 { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.oe-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.oe-chips a { padding: 9px 12px; border: 1px solid var(--oe-border); border-radius: 10px; font-size: 14px; }
.oe-chips a:hover { border-color: var(--oe-secondary); color: var(--oe-secondary); }
.oe-404 { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; padding: 60px 0; text-align: center; }
.oe-404 h1 { margin-top: 12px; font-size: clamp(1.6rem, 1.3rem + 1.6vw, 2.4rem); font-weight: 800; }
.oe-404 p { max-width: 52ch; margin-top: 12px; color: var(--oe-muted); }
