/* ==========================================================================
   DayuPlay — main styles
   Style L 天蓝变体: light cool gray + soft sky blue accent (yema8-inspired)
   ========================================================================== */

:root {
	--dp-bg: #f4f7f9;
	--dp-bg-elevated: #ffffff;
	--dp-surface: #ffffff;
	--dp-surface-2: #eef2f6;
	--dp-border: rgba(15, 23, 42, 0.08);
	--dp-border-strong: rgba(95, 164, 245, 0.45);
	--dp-text: #1f2937;
	--dp-text-muted: #6b7280;
	--dp-text-dim: #9ca3af;
	--dp-accent: #5fa4f5;
	--dp-accent-hover: #4a90e8;
	--dp-accent-soft: rgba(95, 164, 245, 0.12);
	--dp-accent-deep: #3b82d6;
	--dp-danger: #ef4444;
	--dp-radius: 12px;
	--dp-radius-sm: 8px;
	--dp-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
	--dp-shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.08);
	--dp-header-h: 64px;
	--dp-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
		system-ui, -apple-system, "Segoe UI", sans-serif;
	--dp-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--dp-content-max: 1180px;
	--dp-prose: 72ch;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--dp-font);
	font-size: 15px;
	line-height: 1.7;
	color: var(--dp-text);
	background: var(--dp-bg);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--dp-accent);
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease,
		box-shadow 0.15s ease, transform 0.15s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
	line-height: 1.35;
	font-weight: 700;
	color: var(--dp-text);
	margin: 0 0 0.6em;
	word-break: break-word;
}

p {
	margin: 0 0 1em;
}

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

figure {
	margin: 0;
}

/* Accessibility */
.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;
}

.screen-reader-text:focus {
	background: var(--dp-surface);
	clip: auto !important;
	clip-path: none;
	color: var(--dp-text);
	display: block;
	font-size: 0.95rem;
	height: auto;
	left: 0.5rem;
	line-height: normal;
	padding: 0.75rem 1rem;
	top: 0.5rem;
	width: auto;
	z-index: 100000;
	border-radius: var(--dp-radius-sm);
	box-shadow: var(--dp-shadow);
}

.skip-link:focus {
	position: absolute;
	z-index: 100000;
}

/* Layout */
.container {
	width: min(100% - 2rem, var(--dp-content-max));
	margin-inline: auto;
}

.site-main {
	padding-block: 1.25rem 3rem;
	min-height: 50vh;
}

.content-area {
	display: grid;
	gap: 1.5rem;
}

.content-area__main {
	min-width: 0;
}

@media (min-width: 960px) {
	.has-sidebar .content-area {
		grid-template-columns: minmax(0, 1fr) 300px;
		align-items: start;
	}
}

/* Header — sticky white */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--dp-border);
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--dp-header-h);
	padding-block: 0.5rem;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.site-logo img {
	max-height: 40px;
	width: auto;
}

.site-title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.site-title a {
	color: var(--dp-accent);
}

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

.site-description {
	margin: 0.1rem 0 0;
	font-size: 0.78rem;
	color: var(--dp-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 28ch;
}

@media (max-width: 640px) {
	.site-description {
		display: none;
	}
}

/* Navigation */
.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: var(--dp-surface-2);
	color: var(--dp-text);
	border: 1px solid var(--dp-border);
	border-radius: 999px;
	padding: 0.4rem 0.85rem;
	cursor: pointer;
	font: inherit;
	font-size: 0.88rem;
}

.menu-toggle__icon {
	width: 18px;
	height: 2px;
	background: currentColor;
	position: relative;
	display: inline-block;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: currentColor;
}

.menu-toggle__icon::before { top: -6px; }
.menu-toggle__icon::after { top: 6px; }

.main-navigation {
	display: none;
}

.main-navigation.is-open {
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--dp-surface);
	border-bottom: 1px solid var(--dp-border);
	padding: 0.75rem 1rem 1rem;
	box-shadow: var(--dp-shadow-hover);
}

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

.nav-menu a {
	display: block;
	padding: 0.55rem 0.75rem;
	color: var(--dp-text);
	border-radius: var(--dp-radius-sm);
	font-weight: 600;
	font-size: 0.92rem;
}

.nav-menu a:hover {
	background: var(--dp-accent-soft);
	color: var(--dp-accent);
}

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
	color: var(--dp-accent);
	background: transparent;
	box-shadow: inset 0 -2px 0 var(--dp-accent);
	border-radius: 0;
}

.nav-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 0 0 0.75rem;
}

@media (min-width: 860px) {
	.menu-toggle {
		display: none;
	}

	.main-navigation {
		display: block;
		position: static;
		background: transparent;
		border: 0;
		padding: 0;
		box-shadow: none;
	}

	.nav-menu {
		flex-direction: row;
		align-items: center;
		gap: 0.1rem;
	}

	.nav-menu a {
		padding: 0.45rem 0.7rem;
	}

	.nav-menu .current-menu-item > a,
	.nav-menu .current_page_item > a {
		box-shadow: inset 0 -2px 0 var(--dp-accent);
	}

	.nav-menu .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 180px;
		background: var(--dp-surface);
		border: 1px solid var(--dp-border);
		border-radius: var(--dp-radius-sm);
		padding: 0.4rem;
		box-shadow: var(--dp-shadow-hover);
		z-index: 20;
	}

	.nav-menu li {
		position: relative;
	}

	.nav-menu li:hover > .sub-menu,
	.nav-menu li:focus-within > .sub-menu {
		display: block;
	}
}

/* Section titles with vertical accent bar (yema8) */
.section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 1rem;
}

.section-heading__title {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	font-size: 1.15rem;
	font-weight: 800;
}

.section-heading__title::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 1.05em;
	border-radius: 2px;
	background: var(--dp-accent);
	flex-shrink: 0;
}

.section-heading__more {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--dp-text-muted);
	white-space: nowrap;
}

.section-heading__more:hover {
	color: var(--dp-accent);
}

/* Page headers */
.page-header {
	margin-bottom: 1.25rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--dp-border);
}

.page-header--home {
	border-bottom: 0;
	padding-bottom: 0;
	margin-bottom: 0;
}

.page-title {
	font-size: clamp(1.4rem, 2.2vw, 1.85rem);
	margin-bottom: 0.3rem;
}

.page-subtitle,
.archive-description {
	color: var(--dp-text-muted);
	margin: 0;
	font-size: 0.92rem;
}

.archive-description {
	margin-top: 0.45rem;
}

.section-heading + .page-subtitle,
.section-heading + .archive-description {
	margin: -0.35rem 0 1.15rem;
}

/* Home hero: wide image left + numbered list right */
.home-hero {
	display: grid;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
	.home-hero {
		grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
		align-items: stretch;
	}
}

.home-hero__feature {
	position: relative;
	display: block;
	border-radius: var(--dp-radius);
	overflow: hidden;
	background: var(--dp-surface);
	box-shadow: var(--dp-shadow);
	min-height: 220px;
	aspect-ratio: 16 / 9;
}

@media (min-width: 900px) {
	.home-hero__feature {
		aspect-ratio: auto;
		min-height: 100%;
		height: 100%;
	}
}

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

.home-hero__feature-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 220px;
	background: linear-gradient(135deg, var(--dp-accent-soft), var(--dp-surface-2));
	color: var(--dp-accent);
	font-size: 2rem;
}

.home-hero__feature-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1.25rem 1rem 1rem;
	background: linear-gradient(transparent, rgba(15, 23, 42, 0.55));
	color: #fff;
}

.home-hero__feature-caption .home-hero__feature-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
}

.home-hero__panel {
	background: var(--dp-surface);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
	padding: 1rem 1.1rem 0.85rem;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.home-hero__panel-title {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.home-hero__panel-title::before {
	content: "";
	width: 3px;
	height: 0.95em;
	border-radius: 2px;
	background: var(--dp-accent);
}

.home-hero__list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
	overflow: auto;
}

.home-hero__list li {
	border-bottom: 1px solid var(--dp-border);
}

.home-hero__list li:last-child {
	border-bottom: 0;
}

.home-hero__list a {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.65rem 0.15rem;
	color: var(--dp-text);
	font-weight: 600;
	font-size: 0.9rem;
}

.home-hero__list a:hover {
	color: var(--dp-accent);
}

.home-hero__num {
	flex-shrink: 0;
	display: inline-grid;
	place-items: center;
	min-width: 1.35rem;
	height: 1.35rem;
	padding: 0 0.25rem;
	border-radius: 6px;
	background: var(--dp-accent-soft);
	color: var(--dp-accent);
	font-size: 0.78rem;
	font-weight: 800;
}

.home-hero__list li:nth-child(-n+3) .home-hero__num {
	background: var(--dp-accent);
	color: #fff;
}

.home-hero__list-title {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Post grid cards */
.post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.1rem;
}

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

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

@media (min-width: 1100px) {
	.no-sidebar .post-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.has-sidebar .post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.post-card {
	display: flex;
	flex-direction: column;
	background: var(--dp-surface);
	border: 1px solid transparent;
	border-radius: var(--dp-radius);
	overflow: hidden;
	box-shadow: var(--dp-shadow);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--dp-surface-2);
	overflow: hidden;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.post-card:hover .post-card__media img {
	transform: scale(1.03);
}

.post-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--dp-surface-2);
	color: var(--dp-text-dim);
	font-size: 0.85rem;
	font-weight: 600;
}

.post-card__placeholder-icon {
	display: none;
}

.post-card__placeholder::after {
	content: "暂无封面";
}

.post-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 0.85rem 0.95rem 1rem;
	flex: 1;
}

.post-card__cat {
	align-self: flex-start;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--dp-accent);
	background: var(--dp-accent-soft);
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
}

.post-card__title {
	font-size: 0.98rem;
	margin: 0;
	font-weight: 700;
}

.post-card__title a {
	color: var(--dp-text);
}

.post-card__title a:hover {
	color: var(--dp-accent);
}

.post-card__excerpt {
	color: var(--dp-text-muted);
	font-size: 0.86rem;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card__excerpt p {
	margin: 0;
}

.post-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: var(--dp-text-dim);
	margin-top: 0.15rem;
}

.post-card__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.12rem 0.45rem;
	border-radius: 999px;
	background: var(--dp-accent-soft);
	color: var(--dp-accent);
	font-weight: 700;
	font-size: 0.7rem;
}

/* Single / entry */
.entry {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	padding: 1.25rem 1.15rem 1.4rem;
	box-shadow: var(--dp-shadow);
}

@media (min-width: 720px) {
	.entry {
		padding: 1.6rem 1.65rem 1.85rem;
	}
}

.entry-header {
	margin-bottom: 1rem;
}

.entry-title {
	font-size: clamp(1.45rem, 2.8vw, 2rem);
	margin-bottom: 0.5rem;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem 0.45rem;
	color: var(--dp-text-muted);
	font-size: 0.88rem;
}

.meta-label {
	color: var(--dp-text-dim);
	margin-right: 0.15rem;
}

.meta-sep {
	color: var(--dp-text-dim);
}

.cat-links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 0.55rem;
}

.cat-links a {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.18rem 0.55rem;
	border-radius: 999px;
	background: var(--dp-accent-soft);
	color: var(--dp-accent);
}

.entry-thumbnail {
	margin: 0 0 1.15rem;
	border-radius: var(--dp-radius-sm);
	overflow: hidden;
	border: 1px solid var(--dp-border);
}

.entry-thumbnail img {
	width: 100%;
}

.entry-content {
	max-width: var(--dp-prose);
	font-size: 1rem;
	color: var(--dp-text);
}

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

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

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-content blockquote {
	margin: 1.2em 0;
	padding: 0.8rem 1rem;
	border-left: 3px solid var(--dp-accent);
	background: var(--dp-accent-soft);
	border-radius: 0 var(--dp-radius-sm) var(--dp-radius-sm) 0;
	color: var(--dp-text);
}

.entry-content pre,
.entry-content code {
	font-family: var(--dp-mono);
}

.entry-content pre {
	background: var(--dp-surface-2);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius-sm);
	padding: 1rem;
	overflow-x: auto;
}

.entry-content code {
	font-size: 0.9em;
	background: var(--dp-surface-2);
	padding: 0.1em 0.35em;
	border-radius: 4px;
}

.entry-content pre code {
	background: transparent;
	padding: 0;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.2em 0;
	font-size: 0.92rem;
}

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

.entry-content th {
	background: var(--dp-surface-2);
}

.entry-footer {
	margin-top: 1.35rem;
	padding-top: 0.95rem;
	border-top: 1px solid var(--dp-border);
	color: var(--dp-text-muted);
	font-size: 0.88rem;
}

.tags-label {
	color: var(--dp-text-dim);
}

.tags-links a {
	display: inline-block;
	margin: 0.12rem 0.2rem 0.12rem 0;
	padding: 0.12rem 0.45rem;
	border: 1px solid var(--dp-border);
	border-radius: 999px;
	color: var(--dp-text-muted);
	font-size: 0.8rem;
	background: var(--dp-bg);
}

.tags-links a:hover {
	border-color: var(--dp-accent);
	color: var(--dp-accent);
	background: var(--dp-accent-soft);
}

/* Download box — light UI */
.download-box {
	margin: 0 0 1.35rem;
	padding: 1.1rem 1.15rem;
	border-radius: var(--dp-radius);
	border: 1px solid var(--dp-border-strong);
	background: linear-gradient(180deg, rgba(95, 164, 245, 0.08), transparent 70%),
		var(--dp-surface);
	box-shadow: var(--dp-shadow);
}

.download-box__header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.8rem;
}

.download-box__icon {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--dp-accent-soft);
	color: var(--dp-accent);
	font-size: 0.95rem;
}

.download-box__title {
	margin: 0;
	font-size: 1.05rem;
}

.download-box__meta {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: grid;
	gap: 0.45rem;
}

@media (min-width: 520px) {
	.download-box__meta {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.download-box__meta li {
	background: var(--dp-bg);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius-sm);
	padding: 0.6rem 0.7rem;
}

.download-box__label {
	display: block;
	font-size: 0.7rem;
	color: var(--dp-text-dim);
	margin-bottom: 0.12rem;
	letter-spacing: 0.03em;
}

.download-box__value {
	font-weight: 700;
	color: var(--dp-text);
	word-break: break-word;
}

.download-box__action {
	margin: 0 0 0.55rem;
}

.download-box__note {
	margin: 0;
	font-size: 0.78rem;
	color: var(--dp-text-dim);
}

/* Buttons */
.button,
.button--download,
.search-submit,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.65rem 1.15rem;
	border-radius: 999px;
	border: 1px solid transparent;
	background: var(--dp-accent);
	color: #fff;
	font-weight: 700;
	font-size: 0.92rem;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(95, 164, 245, 0.28);
}

.button:hover,
.button--download:hover,
.search-submit:hover {
	color: #fff;
	background: var(--dp-accent-hover);
}

.button--download {
	min-width: 9.5rem;
}

/* Pagination & post nav */
.navigation.pagination,
.post-navigation,
.comments-navigation {
	margin-top: 1.5rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	justify-content: space-between;
}

.page-numbers,
.post-navigation a,
.comments-navigation a {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.8rem;
	border-radius: var(--dp-radius-sm);
	border: 1px solid var(--dp-border);
	background: var(--dp-surface);
	color: var(--dp-text);
	font-size: 0.88rem;
	box-shadow: var(--dp-shadow);
}

.page-numbers.current,
.page-numbers:hover,
.post-navigation a:hover {
	border-color: var(--dp-accent);
	color: var(--dp-accent);
	background: var(--dp-accent-soft);
}

.post-navigation {
	padding: 0.95rem 1rem;
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
}

.nav-subtitle {
	display: block;
	font-size: 0.72rem;
	color: var(--dp-text-dim);
	margin-bottom: 0.12rem;
}

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

/* Sidebar / widgets */
.widget-area {
	display: grid;
	gap: 1rem;
}

.widget {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	padding: 0.95rem 1.05rem 1.05rem;
	box-shadow: var(--dp-shadow);
}

.widget-title {
	font-size: 0.98rem;
	margin: 0 0 0.7rem;
	padding-bottom: 0.45rem;
	border-bottom: 1px solid var(--dp-border);
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.widget-title::before {
	content: "";
	width: 3px;
	height: 0.9em;
	border-radius: 2px;
	background: var(--dp-accent);
	flex-shrink: 0;
}

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

.widget li {
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--dp-border);
}

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

.widget a {
	color: var(--dp-text);
}

.widget a:hover {
	color: var(--dp-accent);
}

.widget select,
.widget input[type="search"],
.widget input[type="text"] {
	width: 100%;
}

/* Search form */
.search-form {
	display: flex;
	gap: 0.5rem;
	margin: 0 0 1.15rem;
	flex-wrap: wrap;
}

.search-field {
	flex: 1 1 12rem;
	min-width: 0;
	padding: 0.65rem 0.9rem;
	border-radius: 999px;
	border: 1px solid var(--dp-border);
	background: var(--dp-surface);
	color: var(--dp-text);
	font: inherit;
	box-shadow: var(--dp-shadow);
}

.search-field::placeholder {
	color: var(--dp-text-dim);
}

/* Comments */
.comments-area {
	margin-top: 1.5rem;
	padding: 1.25rem 1.15rem;
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
}

.comments-title {
	font-size: 1.1rem;
	margin-bottom: 0.9rem;
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.comments-title::before {
	content: "";
	width: 3px;
	height: 0.95em;
	border-radius: 2px;
	background: var(--dp-accent);
}

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

.comment-list .children {
	list-style: none;
	margin: 0.7rem 0 0;
	padding: 0 0 0 0.9rem;
	border-left: 2px solid var(--dp-border);
}

.comment-body {
	padding: 0.8rem 0;
	border-bottom: 1px solid var(--dp-border);
}

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

.comment-author .avatar {
	border-radius: 50%;
	margin-right: 0.5rem;
	vertical-align: middle;
}

.comment-meta {
	font-size: 0.8rem;
	color: var(--dp-text-dim);
	margin: 0.2rem 0 0.55rem;
}

.comment-reply-link {
	font-size: 0.85rem;
	font-weight: 600;
}

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.65rem 0.8rem;
	border-radius: var(--dp-radius-sm);
	border: 1px solid var(--dp-border);
	background: var(--dp-bg);
	color: var(--dp-text);
	font: inherit;
	margin-bottom: 0.8rem;
}

.comment-form .form-submit {
	margin-top: 0.2rem;
}

.comment-form .submit {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.15rem;
	border-radius: 999px;
	border: 0;
	background: var(--dp-accent);
	color: #fff;
	font-weight: 700;
	font: inherit;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(95, 164, 245, 0.28);
}

.comment-form .submit:hover {
	background: var(--dp-accent-hover);
}

.comment-notes {
	color: var(--dp-text-muted);
	font-size: 0.88rem;
}

.no-comments {
	color: var(--dp-text-muted);
}

/* 404 / empty */
.error-404,
.no-results {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	padding: 1.4rem;
	box-shadow: var(--dp-shadow);
}

.error-404__actions {
	margin-top: 1rem;
}

/* Footer */
.site-footer {
	margin-top: auto;
	border-top: 1px solid var(--dp-border);
	background: var(--dp-surface);
	padding: 1.85rem 0 1.6rem;
}

.site-footer__inner {
	display: grid;
	gap: 1.15rem;
}

.footer-widgets {
	display: grid;
	gap: 1rem;
}

@media (min-width: 720px) {
	.footer-widgets {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
}

.widget--footer {
	background: transparent;
	border: 0;
	padding: 0;
	box-shadow: none;
}

.widget--footer .widget-title::before {
	display: none;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 1rem;
}

.footer-menu a {
	color: var(--dp-text-muted);
	font-weight: 600;
}

.footer-menu a:hover {
	color: var(--dp-accent);
}

.site-info {
	color: var(--dp-text-dim);
	font-size: 0.85rem;
}

.site-info p {
	margin: 0 0 0.3rem;
}

.site-info a {
	color: var(--dp-text-muted);
}

.powered-by {
	opacity: 0.9;
}

/* Alignments / WP defaults */
.alignleft {
	float: left;
	margin: 0.3rem 1.15rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.3rem 0 1rem 1.15rem;
}

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

.alignwide,
.alignfull {
	max-width: none;
}

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

.wp-caption-text {
	font-size: 0.82rem;
	color: var(--dp-text-muted);
	margin-top: 0.35rem;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 0.7rem;
	margin: 1.15rem 0;
}

/* Admin bar offset for sticky header */
.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}
