/*
Theme Name: Dachi Msafi
Theme URI: https://arena.ai/
Author: Arena.ai
Author URI: https://arena.ai/
Description: A fast, lightweight, responsive WordPress magazine theme for music, videos, news, artists, sports, and entertainment sites. Includes a featured hero row, latest-post list, mobile quick navigation, search overlay, widget-ready sidebar/footer, and Customizer color controls.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dachi-msafi
Tags: blog, news, entertainment, custom-logo, custom-menu, featured-images, right-sidebar, threaded-comments, translation-ready, responsive-layout
*/

:root {
	--dm-accent: #159447;
	--dm-accent-2: #11c967;
	--dm-bg: #ffffff;
	--dm-page-bg: #f7f7f8;
	--dm-surface: #ffffff;
	--dm-surface-2: #f4f4f5;
	--dm-text: #050505;
	--dm-muted: #6f7378;
	--dm-border: #e6e6e8;
	--dm-strong-border: #d5d5d8;
	--dm-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
	--dm-radius: 16px;
	--dm-container: 1180px;
	--dm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

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

body.dm-dark {
	--dm-bg: #0f172a;
	--dm-page-bg: #0f172a;
	--dm-surface: #111827;
	--dm-surface-2: #172033;
	--dm-text: #f8fafc;
	--dm-muted: #cbd5e1;
	--dm-border: #293548;
	--dm-strong-border: #3a475c;
	--dm-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

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

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

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

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

a:hover,
a:focus {
	color: var(--dm-accent);
}

p {
	margin: 0 0 1rem;
}

ul,
ol {
	margin-top: 0;
}

.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;
}

.screen-reader-text:focus,
.skip-link:focus {
	z-index: 100000;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 14px;
	background: var(--dm-accent);
	color: #fff;
	border-radius: 4px;
	font-weight: 800;
	white-space: normal;
}

.dm-container {
	width: 100%;
	max-width: var(--dm-container);
	margin-right: auto;
	margin-left: auto;
	padding-right: 12px;
	padding-left: 12px;
}

.dm-site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Header */
.dm-site-header {
	background: var(--dm-surface);
}

.dm-logo-row {
	position: relative;
	min-height: 188px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.dm-branding {
	max-width: min(420px, 80vw);
}

.custom-logo-link,
.custom-logo-link img {
	display: inline-block;
}

.custom-logo-link img {
	max-height: 120px;
	width: auto;
	margin: 0 auto;
}

.dm-site-title {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.2rem);
	font-weight: 950;
	letter-spacing: -0.06em;
	line-height: 1;
}

.dm-site-title a {
	background: linear-gradient(110deg, var(--dm-accent), #555);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.dm-site-description {
	margin: 8px 0 0;
	color: var(--dm-muted);
	font-size: 0.9rem;
}

.dm-main-nav-wrap {
	background: var(--dm-surface);
}

.dm-nav-bar {
	min-height: 76px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dm-primary-nav {
	display: flex;
	justify-content: center;
	min-width: 0;
}

.dm-menu,
.dm-mobile-menu,
.dm-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dm-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
}

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

.dm-menu > li > a {
	position: relative;
	display: block;
	padding: 16px 5px;
	font-size: 0.96rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.dm-menu > li > a::after {
	content: "";
	position: absolute;
	right: 5px;
	bottom: 6px;
	left: 5px;
	height: 3px;
	background: var(--dm-accent);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.18s ease;
}

.dm-menu > li:hover > a::after,
.dm-menu > li:focus-within > a::after,
.dm-menu > .current-menu-item > a::after,
.dm-menu > .current-menu-ancestor > a::after {
	transform: scaleX(1);
}

.dm-menu .sub-menu {
	position: absolute;
	z-index: 100;
	top: 100%;
	left: 0;
	min-width: 210px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--dm-surface);
	border: 1px solid var(--dm-border);
	border-radius: 0 0 10px 10px;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

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

.dm-menu .sub-menu a {
	display: block;
	padding: 9px 10px;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 800;
}

.dm-menu .sub-menu a:hover,
.dm-menu .sub-menu a:focus {
	background: var(--dm-surface-2);
}

.dm-nav-actions {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-left: 24px;
}

.dm-icon-button,
.dm-menu-toggle,
.dm-search-close,
.dm-search-submit {
	border: 0;
	cursor: pointer;
}

.dm-icon-button {
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: transparent;
	color: var(--dm-text);
	font-weight: 900;
	font-size: 1.35rem;
}

.dm-search-toggle {
	color: var(--dm-accent);
}

.dm-icon-button:hover,
.dm-icon-button:focus {
	background: var(--dm-surface-2);
	color: var(--dm-accent);
	outline: none;
}

.dm-mobile-action,
.dm-menu-toggle,
.dm-mobile-nav {
	display: none;
}

.dm-menu-toggle {
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	background: var(--dm-surface-2);
	color: var(--dm-text);
	border-radius: 4px;
	font-weight: 800;
}

.dm-menu-toggle-lines,
.dm-menu-toggle-lines::before,
.dm-menu-toggle-lines::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.dm-menu-toggle-lines {
	position: relative;
}

.dm-menu-toggle-lines::before,
.dm-menu-toggle-lines::after {
	content: "";
	position: absolute;
	left: 0;
}

.dm-menu-toggle-lines::before {
	top: -6px;
}

.dm-menu-toggle-lines::after {
	top: 6px;
}

/* Mobile quick menu icons use inline SVG masks, no external icon font needed. */
.dm-mobile-menu li:nth-child(1) a::before {
	--dm-mobile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10.6 12 3l9 7.6V21h-6v-6H9v6H3V10.6z'/%3E%3C/svg%3E");
}

.dm-mobile-menu li:nth-child(2) a::before {
	--dm-mobile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 4v11.1A4.5 4.5 0 1 1 8 11.3V4h12v9.1A4.5 4.5 0 1 1 18 9.3V6h-8z'/%3E%3C/svg%3E");
}

.dm-mobile-menu li:nth-child(3) a::before {
	--dm-mobile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3.8 21 12 7 20.2V3.8z'/%3E%3C/svg%3E");
}

.dm-mobile-menu li:nth-child(4) a::before {
	--dm-mobile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h14v14H3V5zm16 3h2v11a3 3 0 0 1-3 3H6v-2h12a1 1 0 0 0 1-1V8zM6 8v3h8V8H6zm0 5v2h8v-2H6zm0 3v1h6v-1H6z'/%3E%3C/svg%3E");
}

.dm-mobile-menu li:nth-child(5) a::before {
	--dm-mobile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm8-1a3 3 0 1 1 0-6 3 3 0 0 1 0 6zM2 21a7 7 0 0 1 14 0H2zm13.7 0a8.4 8.4 0 0 0-2.2-5.7A5.5 5.5 0 0 1 22 20.1v.9h-6.3z'/%3E%3C/svg%3E");
}

/* Featured top row */
.dm-hero {
	margin-top: 34px;
	margin-bottom: 34px;
}

.dm-hero-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.dm-hero-link {
	position: relative;
	display: block;
	min-height: 315px;
	overflow: hidden;
	background: linear-gradient(135deg, var(--dm-accent), var(--dm-accent-2));
	border-radius: 12px;
	isolation: isolate;
}

.dm-hero-card .dm-thumb-img,
.dm-hero-card .dm-thumb-fallback {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.28s ease;
}

.dm-hero-link:hover .dm-thumb-img,
.dm-hero-link:focus .dm-thumb-img {
	transform: scale(1.04);
}

.dm-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.28) 45%, rgba(0, 0, 0, 0.82) 100%);
}

.dm-hero-content {
	position: absolute;
	z-index: 2;
	right: 22px;
	bottom: 22px;
	left: 22px;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
}

.dm-hero-date {
	display: block;
	margin-bottom: 8px;
	font-size: 1.05rem;
	font-weight: 900;
}

.dm-hero-title {
	display: block;
	font-size: clamp(1.3rem, 2vw, 1.65rem);
	font-weight: 950;
	line-height: 1.16;
	letter-spacing: -0.035em;
}

/* Layout */
.dm-main {
	margin-top: 18px;
	margin-bottom: 72px;
	flex: 1 0 auto;
}

.dm-content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 342px;
	gap: 28px;
	align-items: start;
}

.dm-main-column {
	min-width: 0;
}

.dm-list-panel {
	padding: 28px 30px 32px;
	background: var(--dm-surface);
	border: 1px solid var(--dm-border);
	border-radius: 18px;
	box-shadow: var(--dm-shadow);
}

.dm-section-header {
	margin-bottom: 8px;
	padding: 0 0 20px;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.dm-section-header::after {
	content: "";
	display: block;
	width: 145px;
	height: 3px;
	margin-top: 16px;
	background: var(--dm-accent);
}

.dm-section-title,
.dm-widget-title,
.dm-footer-widget-title {
	margin: 0;
	font-weight: 950;
	letter-spacing: -0.045em;
}

.dm-section-title {
	display: block;
	font-size: clamp(1.6rem, 2.5vw, 2rem);
	line-height: 1.1;
	text-transform: uppercase;
}

.dm-section-title::before {
	display: none;
}

.dm-archive-description {
	margin-top: 10px;
	color: var(--dm-muted);
}

/* Post cards and post list */
.dm-post-card {
	min-width: 0;
	overflow: hidden;
	background: var(--dm-surface);
	border: 1px solid var(--dm-border);
	border-radius: 12px;
}

.dm-card-thumb {
	position: relative;
	display: block;
	aspect-ratio: 390 / 220;
	overflow: hidden;
	background: var(--dm-surface-2);
}

.dm-card-thumb .dm-thumb-img,
.dm-card-thumb .dm-thumb-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.dm-post-card:hover .dm-card-thumb .dm-thumb-img,
.dm-card-thumb:focus .dm-thumb-img {
	transform: scale(1.035);
}

.dm-card-body {
	padding: 14px 16px 16px;
}

.dm-card-cat {
	margin-bottom: 10px;
}

.dm-cat-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	background: transparent;
	color: var(--dm-text);
	border: 1px solid currentColor;
	border-radius: 4px;
	font-size: 0.73rem;
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: 0.025em;
	text-transform: uppercase;
}

.dm-cat-badge:hover,
.dm-cat-badge:focus {
	background: var(--dm-text);
	border-color: var(--dm-text);
	color: var(--dm-surface);
}

.dm-post-meta,
.dm-single-meta {
	color: var(--dm-muted);
	font-size: 0.88rem;
	font-weight: 800;
}

.dm-post-meta time::before {
	content: "◷";
	margin-right: 4px;
	font-size: 0.9em;
}

.dm-card-title {
	margin: 0;
	font-size: 1.12rem;
	font-weight: 950;
	line-height: 1.3;
	letter-spacing: -0.035em;
}

.dm-card-title + .dm-post-meta {
	margin-top: 8px;
}

.dm-post-list {
	display: block;
}

.dm-post-list .dm-post-card {
	display: grid;
	grid-template-columns: minmax(240px, 295px) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
	padding: 26px 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--dm-strong-border);
	border-radius: 0;
	overflow: visible;
}

.dm-post-list .dm-post-card:last-child {
	border-bottom: 0;
}

.dm-post-list .dm-card-thumb {
	border-radius: 12px;
}

.dm-post-list .dm-card-body {
	padding: 0;
}

.dm-post-list .dm-card-title {
	font-size: clamp(1.45rem, 2.4vw, 1.82rem);
	line-height: 1.22;
}

.dm-thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--dm-accent), var(--dm-accent-2));
	color: #fff;
	font-size: 3rem;
	font-weight: 950;
	letter-spacing: -0.08em;
}

.dm-thumb-fallback span {
	transform: translateY(-2px);
}

/* Sidebar */
.dm-sidebar {
	position: sticky;
	top: 18px;
	min-width: 0;
}

.dm-widget {
	margin-bottom: 20px;
	padding: 36px 44px 30px;
	background: var(--dm-surface);
	border: 1px solid var(--dm-border);
	border-radius: 18px;
	box-shadow: var(--dm-shadow);
}

.dm-widget-title {
	position: relative;
	display: block;
	margin-bottom: 20px;
	padding-bottom: 13px;
	border-bottom: 0;
	font-size: clamp(1.45rem, 2vw, 1.75rem);
	line-height: 1;
	text-transform: uppercase;
}

.dm-widget-title::before {
	content: "⚡";
	margin-right: 8px;
	color: var(--dm-accent);
	font-size: 0.95em;
	text-shadow: 0 0 0 #0d6b32;
}

.dm-widget-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 142px;
	height: 3px;
	background: var(--dm-accent);
}

.dm-trending-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dm-trending-list li {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--dm-strong-border);
}

.dm-trending-list li:first-child {
	padding-top: 0;
}

.dm-trending-list li:last-child {
	border-bottom: 0;
}

.dm-trend-thumb {
	position: relative;
	width: 96px;
	height: 96px;
	overflow: hidden;
	background: var(--dm-surface-2);
	border-radius: 999px;
}

.dm-trend-thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.18);
}

.dm-trend-rank {
	position: absolute;
	z-index: 2;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 2rem;
	font-weight: 950;
	line-height: 1;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.dm-trend-thumb .dm-thumb-img,
.dm-trend-thumb .dm-thumb-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
	font-size: 1.8rem;
}

.dm-trend-text a {
	display: block;
	font-size: 1.04rem;
	font-weight: 950;
	line-height: 1.22;
	letter-spacing: -0.025em;
}

.dm-trend-text time {
	display: block;
	margin-top: 6px;
	color: var(--dm-muted);
	font-size: 0.75rem;
	font-weight: 800;
}

.dm-trending-pager {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 14px;
	align-items: center;
	margin-top: 22px;
	font-weight: 900;
	text-align: center;
}

.dm-trending-pager a,
.dm-trending-pager span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 45px;
}

.dm-trending-pager a,
.dm-trending-disabled {
	padding: 0 14px;
	border: 1px solid var(--dm-text);
	border-radius: 4px;
}

.dm-trending-disabled {
	color: #c7c7c7;
	border-color: #d5d5d5;
}

.dm-category-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dm-category-list li {
	display: flex;
	justify-content: space-between;
	padding: 9px 0;
	border-bottom: 1px solid var(--dm-border);
	font-weight: 800;
}

.dm-category-list li:last-child {
	border-bottom: 0;
}

/* Pagination */
.dm-pagination {
	margin-top: 30px;
}

.dm-pagination > .page-numbers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.dm-pagination li {
	margin: 0;
	padding: 0;
}

.dm-pagination a,
.dm-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 51px;
	height: 51px;
	padding: 0 16px;
	background: var(--dm-surface-2);
	border: 1px solid var(--dm-border);
	border-radius: 5px;
	font-weight: 950;
	font-size: 1.04rem;
}

.dm-pagination .current,
.dm-pagination a:hover,
.dm-pagination a:focus {
	background: #000;
	border-color: #000;
	color: #fff;
}

.dm-pagination .dots {
	min-width: auto;
	padding: 0 4px;
	background: transparent;
	border: 0;
	color: var(--dm-muted);
}

.dm-pagination .last {
	min-width: 78px;
}

/* Single and page content */
.dm-single-card,
.dm-comments,
.post-navigation,
.dm-related-posts,
.dm-empty-results,
.dm-error-404 {
	margin-bottom: 22px;
	padding: clamp(24px, 3vw, 30px);
	background: var(--dm-surface);
	border: 1px solid var(--dm-border);
	border-radius: 18px;
	box-shadow: var(--dm-shadow);
}

.dm-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	align-items: center;
	margin-bottom: 22px;
	color: #555b61;
	font-size: 0.9rem;
	font-weight: 900;
}

.dm-breadcrumbs a:first-child::before {
	content: "⌂";
	margin-right: 3px;
	font-size: 0.95em;
}

.dm-breadcrumb-sep {
	margin: 0 1px;
}

.dm-single-cat {
	margin-bottom: 16px;
}

.dm-single-title {
	margin: 0;
	font-size: clamp(2rem, 4vw, 2.65rem);
	font-weight: 950;
	line-height: 1.16;
	letter-spacing: -0.055em;
}

.dm-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 13px;
	align-items: center;
	margin-top: 18px;
	color: #111;
	font-size: 0.9rem;
}

body.dm-dark .dm-single-meta {
	color: var(--dm-muted);
}

.dm-single-author::before {
	content: "◉";
	margin-right: 4px;
	font-size: 0.82em;
}

.dm-single-date::before {
	content: "·";
	margin-right: 12px;
	color: var(--dm-muted);
}

.dm-whatsapp-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 42px;
	margin-top: 18px;
	padding: 8px 14px;
	color: var(--dm-accent);
	border: 1px solid var(--dm-accent);
	border-radius: 7px;
	font-weight: 950;
	text-align: center;
}

.dm-whatsapp-button:hover,
.dm-whatsapp-button:focus {
	background: rgba(21, 148, 71, 0.08);
	color: var(--dm-accent);
}

.dm-whatsapp-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 29px;
	height: 29px;
	background: #21d366;
	color: #fff;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 950;
}

.dm-single-thumb {
	margin: 30px -30px 0;
	overflow: hidden;
	border-radius: 12px;
}

.dm-single-thumb img {
	width: 100%;
}

.dm-entry-content {
	margin-top: 30px;
	font-size: 1.04rem;
	line-height: 1.78;
}

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

.dm-entry-content > *:last-child {
	margin-bottom: 0;
}

.dm-entry-content a {
	color: var(--dm-accent);
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

.dm-entry-content h1,
.dm-entry-content h2,
.dm-entry-content h3,
.dm-entry-content h4,
.dm-entry-content h5,
.dm-entry-content h6 {
	line-height: 1.2;
	letter-spacing: -0.03em;
}

.dm-entry-content blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--dm-accent);
	background: var(--dm-surface-2);
	font-size: 1.1rem;
	font-weight: 650;
}

.dm-entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
}

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

.dm-entry-content pre {
	overflow: auto;
	padding: 16px;
	background: #0f172a;
	color: #e5e7eb;
	border-radius: 8px;
}

.dm-entry-footer {
	margin-top: 24px;
}

.dm-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.dm-tags span {
	font-weight: 900;
}

.dm-tags a {
	display: inline-flex;
	padding: 6px 9px;
	background: var(--dm-surface-2);
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 800;
}

.nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.nav-next {
	text-align: right;
}

.nav-subtitle {
	display: block;
	color: var(--dm-muted);
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
}

.nav-title {
	font-weight: 900;
}

.dm-related-posts .dm-section-title {
	margin-bottom: 16px;
}

.dm-related-posts .dm-section-title::after {
	content: "";
	display: block;
	width: 118px;
	height: 3px;
	margin-top: 12px;
	background: var(--dm-accent);
}

.dm-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.dm-related-grid .dm-card-title {
	font-size: 0.98rem;
}

/* Comments */
.dm-comments-title {
	margin: 0 0 16px;
	font-size: 1.25rem;
}

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

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

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

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
	display: block;
	margin-bottom: 6px;
	font-weight: 800;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	padding: 12px 14px;
	background: var(--dm-surface-2);
	color: var(--dm-text);
	border: 1px solid var(--dm-border);
	border-radius: 4px;
}

.form-submit .submit {
	padding: 11px 16px;
	background: var(--dm-accent);
	color: #fff;
	border: 0;
	border-radius: 4px;
	font-weight: 900;
	cursor: pointer;
}

/* Search modal */
.dm-search-modal[hidden] {
	display: none;
}

.dm-search-modal {
	position: fixed;
	z-index: 9999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 22px;
	background: rgba(2, 6, 23, 0.78);
	backdrop-filter: blur(4px);
}

.dm-search-panel {
	width: min(680px, 100%);
	padding: clamp(22px, 4vw, 36px);
	background: var(--dm-surface);
	border-radius: 14px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.dm-search-panel h2 {
	margin: 0 0 18px;
	font-size: clamp(1.6rem, 5vw, 2.5rem);
	font-weight: 950;
	letter-spacing: -0.055em;
}

.dm-search-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border-radius: 999px;
	font-size: 2rem;
	line-height: 1;
}

.dm-search-close:hover,
.dm-search-close:focus {
	background: var(--dm-accent);
}

.dm-search-form {
	display: flex;
	gap: 10px;
}

.dm-search-form label {
	flex: 1;
}

.dm-search-field {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	background: var(--dm-surface-2);
	color: var(--dm-text);
	border: 1px solid var(--dm-border);
	border-radius: 4px;
}

.dm-search-submit {
	min-height: 48px;
	padding: 0 18px;
	background: var(--dm-accent);
	color: #fff;
	border-radius: 4px;
	font-weight: 900;
}

.dm-search-submit:hover,
.dm-search-submit:focus {
	background: #000;
}

/* Footer */
.dm-site-footer {
	margin-top: auto;
	background: #f2f2f3;
	color: #111;
}

body.dm-dark .dm-site-footer {
	background: #111827;
	color: #e5e7eb;
}

.dm-footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	padding-top: 36px;
	padding-bottom: 34px;
}

.dm-footer-widget-title {
	margin-bottom: 12px;
	font-size: 1rem;
}

.dm-site-info-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding-top: 34px;
	padding-bottom: 34px;
	font-size: 0.98rem;
	font-weight: 500;
	text-align: center;
}

.dm-site-info p {
	margin: 0;
}

.dm-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.dm-footer-menu a {
	font-weight: 800;
}

/* WordPress core alignment and media */
.alignleft {
	float: left;
	margin: 0.35rem 1.2rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.35rem 0 1rem 1.2rem;
}

.aligncenter {
	clear: both;
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.alignwide {
	margin-right: calc(50% - 50vw + 20px);
	margin-left: calc(50% - 50vw + 20px);
	max-width: calc(100vw - 40px);
}

.alignfull {
	width: auto;
	max-width: none;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
}

.wp-caption,
.wp-caption img {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	margin-top: 6px;
	color: var(--dm-muted);
	font-size: 0.85rem;
}

.sticky .dm-card-title::after {
	content: "Featured";
	display: inline-flex;
	margin-left: 8px;
	padding: 3px 6px;
	background: var(--dm-accent);
	color: #fff;
	border-radius: 999px;
	font-size: 0.62rem;
	font-weight: 900;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	vertical-align: middle;
}

.bypostauthor {
	outline: 0;
}

/* Responsive */
@media (max-width: 1120px) {
	.dm-content-layout {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 20px;
	}

	.dm-widget {
		padding-right: 28px;
		padding-left: 28px;
	}

	.dm-post-list .dm-post-card {
		grid-template-columns: 260px minmax(0, 1fr);
		gap: 24px;
	}
}

@media (max-width: 960px) {
	.dm-hero-grid {
		gap: 16px;
	}

	.dm-hero-link {
		min-height: 250px;
	}

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

	.dm-sidebar {
		position: static;
	}

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

@media (max-width: 782px) {
	body {
		background: var(--dm-page-bg);
	}

	.dm-container {
		padding-right: 10px;
		padding-left: 10px;
	}

	.dm-logo-row {
		min-height: 114px;
		display: grid;
		grid-template-columns: 44px minmax(0, 1fr) 44px;
		gap: 8px;
		background: var(--dm-surface);
	}

	.dm-mobile-action {
		display: inline-flex;
	}

	.dm-mobile-action.dm-search-toggle {
		justify-self: end;
	}

	.dm-mobile-action.dm-theme-toggle {
		justify-self: start;
		color: var(--dm-text);
	}

	.dm-nav-actions,
	.dm-main-nav-wrap {
		display: none;
	}

	.custom-logo-link img {
		max-height: 74px;
	}

	.dm-site-title {
		font-size: clamp(1.65rem, 9vw, 2.45rem);
	}

	.dm-site-description {
		display: none;
	}

	.dm-mobile-nav {
		display: block;
		margin: 0 10px 18px;
		background: var(--dm-surface);
		border: 1px solid var(--dm-border);
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.dm-mobile-menu {
		display: grid;
		grid-template-columns: repeat(5, minmax(76px, 1fr));
		min-width: 100%;
	}

	.dm-mobile-menu a {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 7px;
		min-height: 104px;
		padding: 12px 7px;
		font-size: 0.82rem;
		font-weight: 950;
		letter-spacing: 0.02em;
		text-transform: uppercase;
	}

	.dm-mobile-menu a::before {
		content: "";
		display: block;
		width: 31px;
		height: 31px;
		background: currentColor;
		-webkit-mask: var(--dm-mobile-icon) center / contain no-repeat;
		mask: var(--dm-mobile-icon) center / contain no-repeat;
	}

	.dm-hero {
		display: none;
	}

	.dm-main {
		margin-top: 14px;
		margin-bottom: 44px;
	}

	.dm-list-panel,
	.dm-single-card,
	.dm-comments,
	.post-navigation,
	.dm-related-posts,
	.dm-empty-results,
	.dm-error-404,
	.dm-widget {
		border-radius: 17px;
	}

	.dm-list-panel {
		padding: 28px 20px 26px;
	}

	.dm-section-title {
		font-size: 1.75rem;
	}

	.dm-post-list .dm-post-card {
		grid-template-columns: minmax(118px, 38%) minmax(0, 1fr);
		gap: 14px;
		padding: 16px 0;
	}

	.dm-post-list .dm-card-thumb {
		height: 120px;
		aspect-ratio: auto;
	}

	.dm-post-list .dm-card-cat {
		margin-bottom: 7px;
	}

	.dm-post-list .dm-card-title {
		font-size: 1.14rem;
		line-height: 1.25;
	}

	.dm-post-meta {
		font-size: 0.84rem;
	}

	.dm-sidebar {
		margin-top: 28px;
	}

	.dm-widget {
		padding: 40px 36px 30px;
	}

	.dm-content-layout {
		gap: 0;
	}

	.dm-single-card {
		padding: 26px 24px;
	}

	.dm-single-thumb {
		margin-right: -24px;
		margin-left: -24px;
	}

	.dm-breadcrumb-current {
		display: none;
	}

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

	.dm-site-info-inner {
		flex-direction: column;
		line-height: 1.8;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 15px;
	}

	.dm-main {
		margin-bottom: 38px;
	}

	.dm-list-panel {
		padding: 26px 18px 24px;
	}

	.dm-section-header {
		padding-bottom: 16px;
	}

	.dm-section-header::after {
		width: 140px;
		margin-top: 14px;
	}

	.dm-post-list .dm-post-card {
		grid-template-columns: minmax(112px, 38%) minmax(0, 1fr);
		gap: 13px;
	}

	.dm-post-list .dm-card-thumb {
		height: 118px;
		border-radius: 12px;
	}

	.dm-post-list .dm-card-title {
		font-size: 1.1rem;
	}

	.dm-cat-badge {
		font-size: 0.69rem;
		padding: 3px 7px;
	}

	.dm-related-grid {
		display: block;
	}

	.dm-related-grid .dm-post-card {
		margin-bottom: 12px;
	}

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

	.nav-links {
		grid-template-columns: 1fr;
	}

	.nav-next {
		text-align: left;
	}

	.dm-trending-list li {
		grid-template-columns: 100px minmax(0, 1fr);
		gap: 18px;
	}

	.dm-trend-thumb {
		width: 100px;
		height: 100px;
	}

	.dm-trend-text a {
		font-size: 1.18rem;
	}

	.dm-pagination > .page-numbers {
		justify-content: flex-start;
		gap: 11px;
	}
}

@media (max-width: 430px) {
	.dm-container {
		padding-right: 8px;
		padding-left: 8px;
	}

	.dm-mobile-nav {
		margin-right: 8px;
		margin-left: 8px;
	}

	.dm-mobile-menu {
		grid-template-columns: repeat(5, minmax(68px, 1fr));
	}

	.dm-mobile-menu a {
		min-height: 95px;
		font-size: 0.76rem;
	}

	.dm-mobile-menu a::before {
		width: 28px;
		height: 28px;
	}

	.dm-list-panel,
	.dm-single-card {
		padding-right: 16px;
		padding-left: 16px;
	}

	.dm-post-list .dm-post-card {
		grid-template-columns: 126px minmax(0, 1fr);
		gap: 13px;
	}

	.dm-post-list .dm-card-thumb {
		height: 106px;
	}

	.dm-post-list .dm-card-title {
		font-size: 1.02rem;
	}

	.dm-widget {
		padding: 34px 28px 28px;
	}

	.dm-trending-list li {
		grid-template-columns: 90px minmax(0, 1fr);
	}

	.dm-trend-thumb {
		width: 90px;
		height: 90px;
	}

	.dm-trend-text a {
		font-size: 1.05rem;
	}

	.dm-single-title {
		font-size: 2rem;
	}

	.dm-single-thumb {
		margin-right: -16px;
		margin-left: -16px;
	}

	.dm-pagination a,
	.dm-pagination span {
		min-width: 48px;
		height: 48px;
	}
}
