/*
Theme Name: DoublePunch Arcade
Theme URI: https://doublepunch.mx
Author: AG Sound Studio x Claude
Description: Arcade-inspired, fast, fully responsive block theme for DoublePunchMX — gaming news, reviews and opinion. Dark neon palette, pixel accents, live ticker, rotating hero, polls and tasteful micro-interactions. Respects prefers-reduced-motion.
Version: 1.2.31
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doublepunch-arcade
*/

/* ==========================================================================
   0. Tokens
   ========================================================================== */
:root {
	--dp-ink: var(--wp--preset--color--ink);
	--dp-surface: var(--wp--preset--color--surface);
	--dp-surface-2: var(--wp--preset--color--surface-2);
	--dp-line: var(--wp--preset--color--line);
	--dp-text: var(--wp--preset--color--text);
	--dp-muted: var(--wp--preset--color--muted);
	--dp-neon: var(--wp--preset--color--neon);
	--dp-shade: #1f8a3a; /* hard offset shadows: dark green, never pink */
	--dp-magenta: var(--wp--preset--color--magenta);
	--dp-yellow: var(--wp--preset--color--yellow);
	--dp-cyan: var(--wp--preset--color--cyan);
	--dp-arcade: var(--wp--preset--font-family--pixel); /* decor only: no accented capitals */
	--dp-pixel: var(--wp--preset--font-family--display); /* labels, nav, buttons */
	--dp-display: var(--wp--preset--font-family--display);
	--dp-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--dp-header-h: 68px;
}

/* ==========================================================================
   1. Base
   ========================================================================== */
html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--dp-header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	background-color: var(--dp-ink) !important;
	background-image: radial-gradient(rgba(57, 255, 106, 0.07) 1px, transparent 1px);
	background-size: 22px 22px;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--dp-neon);
	color: var(--dp-ink);
}

img,
video,
iframe {
	max-width: 100%;
}

.dp-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

/* ==========================================================================
   2. Header
   ========================================================================== */
/* sticky must live on the template-part wrapper (its parent is the tall one) */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 900;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: 32px;
}
.wp-site-blocks > * + * {
	margin-block-start: 0;
}
.dp-header {
	position: relative;
	isolation: isolate;
	border-bottom: 2px solid var(--dp-line);
	transition: border-color 0.25s, box-shadow 0.25s;
}
/* The blur lives on a pseudo-element on purpose: backdrop-filter / filter / transform on the
   header itself would make it the containing block of the full-screen mobile menu and
   squash the menu to the header's height. */
.dp-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(8, 12, 9, 0.88);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.dp-header.is-scrolled {
	border-bottom-color: var(--dp-neon);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.dp-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--dp-header-h);
	max-width: var(--wp--style--global--wide-size, 1240px);
	margin: 0 auto;
	padding: 0.5rem clamp(1rem, 3vw, 2rem);
}

.dp-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}
.dp-brand .dp-logo,
.dp-footer .dp-logo {
	display: block;
	line-height: 0;
	margin: 0;
}
.dp-brand .dp-logo img {
	display: block;
	width: 84px;
	height: auto;
	transition: transform 0.3s var(--dp-ease);
}
.dp-brand:hover .dp-logo img {
	transform: scale(1.1) rotate(-3deg);
}
.dp-brand .wp-block-site-title {
	margin: 0;
	line-height: 1.2;
}
.dp-brand .wp-block-site-title a {
	text-decoration: none;
}
.dp-brand .wp-block-site-title a::first-letter {
	color: var(--dp-neon);
}

.dp-nav {
	font-family: var(--dp-pixel);
	font-size: 0.88rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.dp-nav .wp-block-navigation-item__content {
	position: relative;
	display: inline-block;
	padding: 0.7rem 0.15rem;
	color: var(--dp-text);
	text-decoration: none;
	transition: color 0.15s;
}
.dp-nav .wp-block-navigation-item__content::before {
	content: "▶";
	position: absolute;
	left: -0.9rem;
	top: 50%;
	transform: translateY(-50%) scale(0);
	color: var(--dp-neon);
	font-size: 0.5rem;
	transition: transform 0.15s;
}
.dp-nav .wp-block-navigation-item__content:hover,
.dp-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--dp-neon);
}
.dp-nav .wp-block-navigation-item__content:hover::before {
	transform: translateY(-50%) scale(1);
}
.dp-nav .wp-block-navigation__container {
	gap: clamp(1rem, 2.2vw, 2rem);
}
body:not(.editor-styles-wrapper) .wp-block-navigation.dp-nav:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open,
body:not(.editor-styles-wrapper) .wp-block-navigation.dp-nav .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--dp-ink);
	background-image: radial-gradient(rgba(57, 255, 106, 0.07) 1px, transparent 1px);
	background-size: 22px 22px;
	color: var(--dp-text) !important;
	padding: 1.25rem 1.5rem 2rem;
	font-size: 1rem;
}
body:not(.editor-styles-wrapper) .dp-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 1.5rem;
}
body:not(.editor-styles-wrapper) .dp-nav .is-menu-open .wp-block-navigation__container {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	width: 100%;
}
body:not(.editor-styles-wrapper) .dp-nav .is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 2px dashed var(--dp-line);
}
body:not(.editor-styles-wrapper) .wp-block-navigation.dp-nav .is-menu-open .wp-block-navigation-item__content {
	display: block;
	padding: 1rem 0 1rem 1.4rem;
	color: var(--dp-text) !important;
	font-size: 1.15rem;
	letter-spacing: 0.12em;
}
body:not(.editor-styles-wrapper) .dp-nav .is-menu-open .wp-block-navigation-item__content::before {
	left: 0;
	transform: translateY(-50%) scale(1);
	font-size: 0.7rem;
}
body:not(.editor-styles-wrapper) .wp-block-navigation.dp-nav .is-menu-open .wp-block-navigation-item__content:hover,
body:not(.editor-styles-wrapper) .wp-block-navigation.dp-nav .is-menu-open .wp-block-navigation-item__content:focus-visible {
	color: var(--dp-neon) !important;
}
/* hide floating UI while the menu is open */
html.has-modal-open .dp-top {
	display: none;
}
.dp-nav .wp-block-navigation__responsive-container-open,
.dp-nav .wp-block-navigation__responsive-container-close {
	color: var(--dp-neon);
}

.dp-tools {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.dp-iconbtn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	color: var(--dp-text);
	border: 2px solid var(--dp-line);
	font-family: var(--dp-pixel);
	font-weight: 700;
	letter-spacing: 0.1em;
	font-size: 0.71rem;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.dp-iconbtn:hover,
.dp-iconbtn[aria-pressed="true"] {
	border-color: var(--dp-neon);
	color: var(--dp-neon);
}
.dp-iconbtn[aria-pressed="true"] {
	background: rgba(57, 255, 106, 0.1);
}

.dp-header .wp-block-search {
	margin: 0;
}
.dp-header .wp-block-search__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	min-width: 44px;
	margin: 0;
	padding: 0;
	line-height: 0;
	background: transparent;
	color: var(--dp-text);
	border: 2px solid var(--dp-line);
}
.dp-header .wp-block-search__button svg {
	display: block;
	width: 22px;
	height: 22px;
	min-width: 22px;
	min-height: 22px;
	margin: 0;
	vertical-align: middle;
}
.dp-header .wp-block-search__button:hover {
	border-color: var(--dp-neon);
	color: var(--dp-neon);
	background: transparent;
}
.dp-header .wp-block-search__inside-wrapper {
	border: 0;
}
.dp-header .wp-block-search__input {
	background: var(--dp-surface);
	color: var(--dp-text);
	border: 2px solid var(--dp-line);
	border-radius: 0;
	min-height: 44px;
	padding: 0 0.75rem;
}

/* Coin button */
.dp-coin,
.wp-block-button.is-style-coin .wp-block-button__link {
	display: inline-block;
	padding: 0.85rem 1rem;
	background: var(--dp-neon);
	color: var(--dp-ink);
	border: 2px solid var(--dp-ink);
	box-shadow: 4px 4px 0 #1f8a3a;
	font-family: var(--dp-pixel);
	font-weight: 700;
	letter-spacing: 0.1em;
	font-size: 0.82rem;
	line-height: 1.3;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.12s, box-shadow 0.12s;
}
.dp-coin:hover,
.wp-block-button.is-style-coin .wp-block-button__link:hover {
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 #1f8a3a;
	color: var(--dp-ink);
	text-decoration: none;
}
.dp-coin:active {
	transform: translate(4px, 4px);
	box-shadow: 0 0 0 #1f8a3a;
}

/* ==========================================================================
   3. Ticker
   ========================================================================== */
.dp-ticker {
	display: flex;
	align-items: center;
	background: var(--dp-surface);
	border-bottom: 2px solid var(--dp-line);
	overflow: hidden;
	font-family: var(--dp-pixel);
	font-weight: 700;
	letter-spacing: 0.1em;
	font-size: 0.85rem;
	text-transform: uppercase;
}
.dp-ticker__label {
	flex: 0 0 auto;
	z-index: 1;
	margin: 0;
	padding: 0.85rem 1rem;
	background: var(--dp-magenta);
	color: var(--dp-ink);
	white-space: nowrap;
}
.dp-ticker__label::before {
	content: "● ";
	animation: dp-blink 1s steps(2, start) infinite;
}
.dp-ticker__viewport {
	flex: 1 1 auto;
	overflow: hidden;
	min-width: 0;
}
.dp-ticker .wp-block-post-template {
	display: flex;
	gap: 3rem;
	width: max-content;
	max-width: none;
	flex: none;
	margin: 0;
	padding: 0.85rem 0 0.85rem 2rem;
	list-style: none;
}
.dp-ticker .wp-block-post-template.is-running {
	animation: dp-marquee var(--dp-ticker-dur, 60s) linear infinite;
}
.dp-ticker:hover .wp-block-post-template.is-running,
.dp-ticker:focus-within .wp-block-post-template.is-running {
	animation-play-state: paused;
}
.dp-ticker .wp-block-post-template > li {
	display: flex;
	align-items: center;
	margin: 0;
	white-space: nowrap;
}
.dp-ticker .wp-block-post-title {
	margin: 0;
	font-family: var(--dp-pixel);
	font-size: 0.85rem;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: uppercase;
}
.dp-ticker .wp-block-post-title a {
	color: var(--dp-text);
	text-decoration: none;
}
.dp-ticker .wp-block-post-title a:hover {
	color: var(--dp-neon);
}
.dp-ticker .wp-block-post-template > li::after {
	content: "◆";
	margin-left: 3rem;
	color: var(--dp-neon);
}

@keyframes dp-marquee {
	to {
		transform: translateX(calc(-1 * var(--dp-ticker-dist, 50%)));
	}
}
@keyframes dp-blink {
	to {
		visibility: hidden;
	}
}

/* ==========================================================================
   4. Section headings
   ========================================================================== */
.dp-main {
	max-width: var(--wp--style--global--wide-size, 1240px);
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem) clamp(3rem, 6vw, 5rem);
}

.dp-section {
	margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.dp-section:first-child {
	margin-top: 0;
}

.dp-section-head {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0 0 1.5rem;
}
.dp-section-title {
	margin: 0;
	font-family: var(--dp-pixel);
	font-size: clamp(0.95rem, 0.8rem + 0.7vw, 1.3rem);
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: uppercase;
	white-space: nowrap;
}
.dp-section-title::before {
	content: "▶ ";
	color: var(--dp-neon);
}
.dp-section-title em {
	font-style: normal;
	color: var(--dp-neon);
}
/* WordPress adds a 24px top margin to the 2nd child of a flow group; that pushed "Ver todo" below the title. */
.dp-section-head > * {
	margin: 0 !important;
}
.dp-section-head::after {
	content: "";
	flex: 1;
	height: 4px;
	background: repeating-linear-gradient(90deg, var(--dp-line) 0 8px, transparent 8px 12px);
}
.dp-section-head .dp-more {
	order: 3;
	line-height: 1.2;
	font-family: var(--dp-pixel);
	font-weight: 700;
	letter-spacing: 0.1em;
	font-size: 0.78rem;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none;
}

/* ==========================================================================
   5. Post grids and cards
   ========================================================================== */
.wp-block-post-template.dp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
.wp-block-post-template.dp-grid > li {
	margin: 0;
	display: flex;
}
.wp-block-post-template.dp-grid--2 {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}
.wp-block-post-template.dp-list {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.wp-block-post-template.dp-list > li {
	margin: 0;
}

.dp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	background: var(--dp-surface);
	border: 2px solid var(--dp-line);
	transition: transform 0.2s var(--dp-ease), border-color 0.2s, box-shadow 0.2s;
	will-change: transform;
}
.dp-card:hover,
.dp-card:focus-within {
	border-color: var(--dp-neon);
	box-shadow: 6px 6px 0 var(--dp-neon);
	transform: translate(-3px, -3px);
}
.dp-card .wp-block-post-featured-image {
	position: relative;
	margin: 0;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--dp-surface-2);
}
.dp-card .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--dp-ease), filter 0.3s;
}
.dp-card:hover .wp-block-post-featured-image img {
	transform: scale(1.06);
	filter: saturate(1.15) contrast(1.05);
}

/* WordPress adds a 24px margin-top to every 2nd+ child of a flow group; inside cards that
   pushed the text block down. Cards manage their own spacing. */
.dp-card > .dp-card__body,
.dp-card > .wp-block-post-featured-image {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}
.dp-card__body > * {
	flex-shrink: 0;
}
.dp-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	flex: 1;
	padding: 1.1rem 1.1rem 1.25rem;
}
.dp-card .wp-block-post-title {
	margin: 0;
	font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
	line-height: 1.2;
}
.dp-card .wp-block-post-title a {
	color: var(--dp-text);
	text-decoration: none;
	transition: color 0.15s;
}
/* One hover bar for the whole headline (not one per wrapped line): it sits between the headline and
   the rest of the card. Its space is always reserved, so nothing shifts on hover. */
.dp-card__body > .dp-chip {
	order: 0;
}
.dp-card__body > .wp-block-post-title {
	order: 1;
}
.dp-card__body > .wp-block-post-excerpt {
	order: 3;
}
.dp-card__body > .dp-meta {
	order: 4;
}
.dp-card__body::before {
	content: "";
	order: 2;
	flex: 0 0 3px;
	height: 3px;
	margin: -0.15rem 0;
	background: var(--dp-neon);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--dp-ease);
}
.dp-card:hover .dp-card__body::before,
.dp-card:focus-within .dp-card__body::before {
	transform: scaleX(1);
}
.dp-card:hover .wp-block-post-title a {
	color: #fff;
}
/* stretched link: whole card is clickable */
.dp-card .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.dp-card .wp-block-post-terms,
.dp-card .wp-block-post-date,
.dp-card .wp-block-post-author-name {
	position: relative;
	z-index: 2;
}
.dp-card .wp-block-post-excerpt {
	margin: 0;
	color: var(--dp-muted);
	font-size: var(--wp--preset--font-size--sm);
}
.dp-card .wp-block-post-excerpt__excerpt {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* category chip */
.wp-block-post-terms.dp-chip {
	margin: 0;
	font-family: var(--dp-pixel);
	font-weight: 700;
	letter-spacing: 0.1em;
	font-size: 0.71rem;
	line-height: 1;
	text-transform: uppercase;
}
.wp-block-post-terms.dp-chip a {
	display: inline-block;
	padding: 0.5rem 0.6rem;
	background: var(--dp-neon);
	color: var(--dp-ink);
	text-decoration: none;
	clip-path: polygon(
		0 4px, 4px 4px, 4px 0,
		calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
		100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%,
		4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)
	);
}
.wp-block-post-terms.dp-chip a:hover {
	background: #fff;
}
.wp-block-post-terms.dp-chip .wp-block-post-terms__separator {
	display: none;
}
.dp-card .wp-block-post-featured-image + .dp-card__body .dp-chip,
.dp-card--chip-over .dp-chip {
	/* chip sits in body by default */
}

/* meta line */
.dp-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.9rem;
	margin: 0;
	color: var(--dp-muted);
	font-size: var(--wp--preset--font-size--xs);
	font-family: var(--dp-display);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.dp-meta a {
	color: inherit;
	text-decoration: none;
}
.dp-meta a:hover {
	color: var(--dp-neon);
}
.dp-meta > * {
	margin: 0;
}
.dp-card .dp-meta {
	margin-top: auto;
	padding-top: 0.25rem;
}

/* horizontal list card (archives / search) */
.dp-card--row {
	flex-direction: row;
}
.dp-card--row .wp-block-post-featured-image {
	flex: 0 0 min(38%, 320px);
	aspect-ratio: 4 / 3;
}
.dp-card--row .dp-card__body {
	justify-content: center;
}

/* ==========================================================================
   6. Hero
   ========================================================================== */
.dp-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: clamp(1rem, 2vw, 1.5rem);
	align-items: stretch;
}
.dp-hero-grid > * {
	min-width: 0;
}
.dp-hero-main {
	position: relative;
}
/* All slides stack in one grid cell so the container is as tall as the tallest slide. */
.dp-hero-main .wp-block-post-template {
	display: grid;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}
.dp-hero-main .wp-block-post-template > li {
	grid-area: 1 / 1;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}
/* Without JS only the first slide shows. */
html:not(.dp-js) .dp-hero-main .wp-block-post-template > li:not(:first-child) {
	display: none;
}
html.dp-js .dp-hero-main .wp-block-post-template > li {
	transition: opacity 0.7s var(--dp-ease), visibility 0.7s;
}
html.dp-js .dp-hero-main .wp-block-post-template > li:not(.is-active) {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* Carousel controls (built by arcade.js) */
.dp-hero-ctrl {
	position: absolute;
	top: 0.9rem;
	right: 0.9rem;
	z-index: 6;
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem;
	background: rgba(8, 12, 9, 0.78);
	border: 2px solid var(--dp-line);
}
.dp-hero-ctrl button {
	display: inline-grid;
	place-items: center;
	min-width: 36px;
	height: 36px;
	padding: 0;
	background: transparent;
	color: var(--dp-text);
	border: 0;
	font: 700 0.85rem/1 var(--dp-display);
	cursor: pointer;
	transition: color 0.15s, background 0.15s;
}
.dp-hero-ctrl button:hover {
	color: var(--dp-neon);
}
.dp-hero-ctrl .dp-hero-dot {
	min-width: 26px;
}
.dp-hero-ctrl .dp-hero-dot::before {
	content: "";
	display: block;
	width: 12px;
	height: 12px;
	border: 2px solid var(--dp-muted);
	transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.dp-hero-ctrl .dp-hero-dot[aria-current="true"]::before {
	background: var(--dp-neon);
	border-color: var(--dp-neon);
	transform: scale(1.15);
}
.dp-hero-ctrl .dp-hero-dot:hover::before {
	border-color: var(--dp-neon);
}
/* autoplay progress under the controls */
.dp-hero-ctrl::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	height: 2px;
	width: 100%;
	background: var(--dp-neon);
	transform-origin: left;
	transform: scaleX(0);
}
.dp-hero-ctrl.is-playing::after {
	animation: dp-hero-progress var(--dp-hero-ms, 6500ms) linear forwards;
}
@keyframes dp-hero-progress {
	to {
		transform: scaleX(1);
	}
}
.dp-hero-main .wp-block-query,
.dp-hero-side .wp-block-query {
	height: 100%;
}

.dp-hero-card {
	position: relative;
	display: block;
	height: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--dp-surface-2);
	border: 2px solid var(--dp-neon);
	box-shadow: 8px 8px 0 var(--dp-neon);
	transition: transform 0.2s var(--dp-ease), box-shadow 0.2s;
}
.dp-hero-card:hover {
	transform: translate(-3px, -3px);
	box-shadow: 11px 11px 0 var(--dp-neon);
}
.dp-hero-card .wp-block-post-featured-image {
	position: absolute;
	inset: 0;
	margin: 0;
	height: 100%;
}
.dp-hero-card .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--dp-ease);
}
.dp-hero-card:hover .wp-block-post-featured-image img {
	transform: scale(1.05);
}
.dp-hero-card::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(to top, rgba(8, 12, 9, 0.96) 0%, rgba(8, 12, 9, 0.55) 45%, rgba(8, 12, 9, 0) 75%);
}
.dp-hero-card__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	padding: clamp(1.1rem, 2.5vw, 2rem);
}
.dp-hero-card .wp-block-post-title {
	margin: 0;
	font-size: clamp(1.6rem, 1.1rem + 2.4vw, 3rem);
	line-height: 1.05;
	text-wrap: balance;
}
.dp-hero-card .wp-block-post-title a {
	color: #fff;
	text-decoration: none;
}
.dp-hero-card .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.dp-hero-card .wp-block-post-terms,
.dp-hero-card .dp-meta {
	position: relative;
	z-index: 3;
}
.dp-hero-card:hover .wp-block-post-title a {
	animation: dp-glitch 0.45s steps(2, end) 1;
}

@keyframes dp-glitch {
	0% {
		text-shadow: 3px 0 var(--dp-magenta), -3px 0 var(--dp-cyan);
	}
	33% {
		text-shadow: -3px 0 var(--dp-magenta), 3px 0 var(--dp-cyan);
		transform: translateX(2px);
	}
	66% {
		text-shadow: 2px 2px var(--dp-magenta), -2px -2px var(--dp-cyan);
		transform: translateX(-2px);
	}
	100% {
		text-shadow: none;
		transform: none;
	}
}

.dp-hero-side .wp-block-post-template {
	display: grid;
	grid-template-rows: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}
.dp-hero-side .wp-block-post-template > li {
	display: flex;
	margin: 0;
}
.dp-hero-side .dp-card {
	flex-direction: row;
	align-items: stretch;
}
.dp-hero-side .dp-card .wp-block-post-featured-image {
	flex: 0 0 38%;
	aspect-ratio: auto;
	min-height: 96px;
}
.dp-hero-side .dp-card__body {
	justify-content: center;
	gap: 0.5rem;
	padding: 0.7rem 0.9rem;
}
.dp-hero-side .dp-card .wp-block-post-title {
	font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem);
	/* hard cap as a safety net */
	max-height: 3.6em;
	overflow: hidden;
}
/* The clamp must live on the link: the title itself is a flex item, where browsers ignore line-clamp. */
.dp-hero-side .dp-card .wp-block-post-title a {
	padding-bottom: 0;
	background-image: none;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* Let the text column shrink (flex items default to min-width:auto, which made long author
   names push the date out of the card). */
.dp-hero-side .dp-card {
	overflow: hidden;
}
.dp-hero-side .dp-card__body {
	min-width: 0;
}
.dp-hero-side .dp-card__body > * {
	min-width: 0;
	max-width: 100%;
}
.dp-hero-side .dp-meta {
	min-width: 0;
}

/* Hover line: sits between the headline and the author/date, with space on both sides.
   Its space is always reserved, so nothing shifts when it appears. */
.dp-hero-side .dp-card__body > .wp-block-post-title {
	order: 1;
}
.dp-hero-side .dp-card__body > .dp-meta {
	order: 3;
}
.dp-hero-side .dp-card__body::before {
	content: "";
	order: 2;
	flex: 0 0 3px;
	height: 3px;
	margin: 0;
	background: var(--dp-neon);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--dp-ease);
}
.dp-hero-side .dp-card:hover .dp-card__body::before,
.dp-hero-side .dp-card:focus-within .dp-card__body::before {
	transform: scaleX(1);
}
.dp-hero-side .dp-card .dp-meta {
	margin-top: 0;
}

/* ==========================================================================
   7. Bands (CTA)
   ========================================================================== */
.dp-band {
	position: relative;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	align-items: center;
	padding: clamp(1.5rem, 4vw, 3rem);
	background: var(--dp-surface);
	border: 2px solid var(--dp-line);
	overflow: hidden;
}
.dp-band > * {
	position: relative;
	margin: 0;
}
.dp-band h2 {
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
	margin: 0 0 0.6rem;
}
.dp-band p {
	color: var(--dp-muted);
}
.dp-band .wp-block-buttons {
	margin-top: 1.25rem;
}

.dp-band h2 em {
	font-style: normal;
	color: var(--dp-neon);
}
.dp-band__art {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	background: var(--dp-surface-2);
	border: 2px solid var(--dp-neon);
	box-shadow: 6px 6px 0 var(--dp-shade);
	text-decoration: none;
	transition: transform 0.15s, box-shadow 0.15s;
}
.dp-band__art:hover {
	transform: translate(3px, 3px);
	box-shadow: 3px 3px 0 var(--dp-shade);
}
.dp-band__art span {
	font-family: var(--dp-arcade);
	font-weight: 700;
	letter-spacing: 0.1em;
	font-size: clamp(1.1rem, 0.8rem + 1.5vw, 2rem);
	color: var(--dp-neon);
}
.dp-band__art span::before {
	content: "▶ ";
}
.dp-band__art span::after {
	content: "_";
	animation: dp-blink 1s steps(2, start) infinite;
}

/* Videos page */
.dp-videos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}
.dp-video {
	margin: 0;
	background: var(--dp-surface);
	border: 2px solid var(--dp-line);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.dp-video:hover {
	border-color: var(--dp-neon);
	box-shadow: 6px 6px 0 var(--dp-neon);
}
.dp-video__frame {
	aspect-ratio: 16 / 9;
	background: #000;
}
.dp-video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
.dp-video figcaption {
	padding: 0.9rem 1rem 1.1rem;
	font-family: var(--dp-display);
	font-weight: 700;
	line-height: 1.25;
}
.dp-content--extra:empty {
	display: none;
}
/* Optional text typed into the Videos page: left-aligned with the rest, with room above it */
.dp-content--extra {
	margin-top: clamp(2rem, 5vw, 3rem) !important;
}
.dp-content--extra > * {
	max-width: 760px;
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* Jetpack subscribe + generic form fields */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
	background: var(--dp-surface-2);
	color: var(--dp-text);
	border: 2px solid var(--dp-line);
	border-radius: 0;
	padding: 0.75rem 0.9rem;
	font: inherit;
}
input::placeholder,
textarea::placeholder {
	color: var(--dp-muted);
}
input:focus,
textarea:focus,
select:focus {
	border-color: var(--dp-neon);
	outline: none;
	box-shadow: 0 0 0 3px rgba(57, 255, 106, 0.25);
}
.wp-block-jetpack-subscriptions .wp-block-jetpack-subscriptions__button,
.wp-block-jetpack-contact-form button[type="submit"],
.wp-block-button__link {
	cursor: pointer;
	border-radius: 0;
}
.wp-block-jetpack-subscriptions__form-elements {
	gap: 0.6rem;
}

/* ==========================================================================
   8. Single post / page
   ========================================================================== */
.dp-article {
	max-width: 100%;
}
.dp-article__head {
	max-width: 900px;
	margin: 0 auto clamp(1.25rem, 3vw, 2rem);
	text-align: left;
}
.dp-article__head .dp-chip {
	margin-bottom: 1rem;
}
.dp-article__head .wp-block-post-title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem);
	line-height: 1.06;
	text-wrap: balance;
}
.dp-article__head .dp-meta {
	font-size: 0.8rem;
}
.dp-article .dp-featured {
	max-width: 1100px;
	margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
}
.dp-article .dp-featured img {
	width: 100%;
	height: auto;
	border: 2px solid var(--dp-neon);
	box-shadow: 8px 8px 0 var(--dp-neon);
}
.dp-article .dp-featured figcaption {
	margin-top: 0.75rem;
	color: var(--dp-muted);
	font-size: var(--wp--preset--font-size--xs);
}

.dp-content {
	max-width: none;
	margin: 0 auto;
	font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
	line-height: 1.75;
}
.dp-content > * + * {
	margin-top: 1.35em;
}
.dp-content h2,
.dp-content h3,
.dp-content h4 {
	margin-top: 2em;
	margin-bottom: 0.4em;
}
.dp-content h2 {
	padding-left: 0.9rem;
	border-left: 6px solid var(--dp-neon);
}
.dp-content a {
	text-underline-offset: 3px;
}
.dp-content img {
	height: auto;
}
.dp-content .wp-block-image img,
.dp-content figure img {
	border: 2px solid var(--dp-line);
}
.dp-content figcaption {
	color: var(--dp-muted);
	font-size: var(--wp--preset--font-size--xs);
	text-align: left;
}
.dp-content ul,
.dp-content ol {
	padding-left: 1.4em;
}
.dp-content li::marker {
	color: var(--dp-neon);
}
.dp-content blockquote {
	margin-left: 0;
	margin-right: 0;
}
.dp-content table {
	width: 100%;
	border-collapse: collapse;
}
.dp-content th,
.dp-content td {
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--dp-line);
}
.dp-content th {
	background: var(--dp-surface-2);
	font-family: var(--dp-display);
}
.dp-content pre,
.dp-content code {
	font-size: 0.9em;
}
.dp-content pre {
	padding: 1rem;
	overflow-x: auto;
}
.dp-content .wp-block-embed,
.dp-content .wp-block-video {
	margin-inline: 0;
}
.wp-block-embed__wrapper iframe,
.wp-block-embed.is-type-video iframe,
.wp-block-embed-youtube iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 2px solid var(--dp-line);
}
.wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper::before {
	display: none;
}
.wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper iframe {
	position: static;
}

.dp-tags {
	max-width: 760px;
	margin: 2rem auto 0;
	font-family: var(--dp-pixel);
	font-weight: 700;
	letter-spacing: 0.1em;
	font-size: 0.78rem;
	text-transform: uppercase;
}
.dp-tags a {
	display: inline-block;
	margin: 0 0.4rem 0.5rem 0;
	padding: 0.5rem 0.7rem;
	border: 2px solid var(--dp-line);
	color: var(--dp-text);
	text-decoration: none;
}
.dp-tags a:hover {
	border-color: var(--dp-neon);
	color: var(--dp-neon);
}
.dp-tags .wp-block-post-terms__separator {
	display: none;
}

/* share */
.dp-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	max-width: 760px;
	margin: 2rem auto 0;
	padding-top: 1.25rem;
	border-top: 2px dashed var(--dp-line);
	font-family: var(--dp-pixel);
	font-weight: 700;
	letter-spacing: 0.1em;
	font-size: 0.78rem;
	text-transform: uppercase;
}
.dp-share__label {
	margin-right: 0.4rem;
	color: var(--dp-muted);
}
.dp-share a,
.dp-share button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.9rem;
	background: transparent;
	color: var(--dp-text);
	border: 2px solid var(--dp-line);
	font: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s, transform 0.12s;
}
.dp-share a:hover,
.dp-share button:hover {
	border-color: var(--dp-neon);
	color: var(--dp-neon);
	transform: translateY(-2px);
}

/* author box */
.dp-author {
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: 760px;
	margin: 2rem auto 0;
	padding: 1.1rem;
	background: var(--dp-surface);
	border: 2px solid var(--dp-line);
}
.dp-author .wp-block-post-author {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0;
}
.dp-author .wp-block-post-author__avatar img {
	display: block;
	border: 2px solid var(--dp-neon);
}
.dp-author .wp-block-post-author__name {
	font-family: var(--dp-display);
	font-weight: 700;
	font-size: 1.1rem;
}
.dp-author .wp-block-post-author__bio {
	margin: 0.2rem 0 0;
	color: var(--dp-muted);
	font-size: var(--wp--preset--font-size--sm);
}

/* comments */
.dp-comments {
	max-width: 760px;
	margin: 3rem auto 0;
}
.dp-comments .wp-block-comment-author-name,
.dp-comments .wp-block-comment-date {
	font-size: var(--wp--preset--font-size--sm);
}
.dp-comments .wp-block-post-comments-form input[type="submit"],
.dp-comments .wp-block-button__link {
	background: var(--dp-neon);
	color: var(--dp-ink);
	border: 0;
	padding: 0.95rem 1.25rem;
	font-family: var(--dp-pixel);
	font-weight: 700;
	letter-spacing: 0.1em;
	font-size: 0.92rem;
	text-transform: uppercase;
	cursor: pointer;
}



/* Legacy content: headings saved with the old theme's "small text" size must still look like headings. */
.dp-content :is(h2, h3, h4).has-small-font-size,
.dp-content :is(h2, h3, h4).has-medium-font-size {
	font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem) !important;
	line-height: 1.2;
}
.dp-content h3.has-small-font-size,
.dp-content h3.has-medium-font-size {
	font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem) !important;
}
.dp-content h4.has-small-font-size,
.dp-content h4.has-medium-font-size {
	font-size: 1.1rem !important;
}


/* ==========================================================================
   Expanding details (About page team, FAQs…)
   ========================================================================== */
/* Several <details> in a row become a responsive card grid */
.dp-content .wp-block-group:has(> .wp-block-details) {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 1rem;
	align-items: start;
	margin-block: 1.5rem;
}
.dp-content .wp-block-details {
	margin: 0;
	background: var(--dp-surface);
	border: 2px solid var(--dp-line);
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--dp-ease);
}
.dp-content .wp-block-details:hover {
	border-color: var(--dp-muted);
}
.dp-content .wp-block-details[open] {
	border-color: var(--dp-neon);
	box-shadow: 5px 5px 0 var(--dp-neon);
}
.dp-content .wp-block-details > summary {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.95rem 1.1rem;
	font-family: var(--dp-display);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.2;
	list-style: none;
	cursor: pointer;
	user-select: none;
	transition: color 0.15s;
}
.dp-content .wp-block-details > summary::-webkit-details-marker {
	display: none;
}
.dp-content .wp-block-details > summary::before {
	content: "▶";
	flex: 0 0 auto;
	color: var(--dp-neon);
	font-size: 0.7rem;
	transition: transform 0.25s var(--dp-ease);
}
.dp-content .wp-block-details[open] > summary::before {
	transform: rotate(90deg);
}
.dp-content .wp-block-details > summary:hover {
	color: var(--dp-neon);
}
.dp-content .wp-block-details > summary:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -3px;
}
.dp-content .wp-block-details > :not(summary) {
	margin: 0 !important;
	padding: 0 1.1rem 0.55rem;
	font-size: 0.95rem;
	line-height: 1.5;
}
.dp-content .wp-block-details > :not(summary):first-of-type {
	padding-top: 0.85rem;
	border-top: 2px dashed var(--dp-line);
}
.dp-content .wp-block-details > :last-child {
	padding-bottom: 1.1rem;
}
.dp-content .wp-block-details strong {
	color: var(--dp-neon);
	font-weight: 600;
}
@media (prefers-reduced-motion: no-preference) {
	.dp-content .wp-block-details[open] > :not(summary) {
		animation: dp-details-in 0.3s var(--dp-ease) both;
	}
}
@keyframes dp-details-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}
/* old-theme "contrast" colour class saved inside content */
.dp-content .has-contrast-color {
	color: var(--dp-text) !important;
}


/* Editor only: the "no results" note is always shown in the editor, so keep it tidy and out of the way. */
.editor-styles-wrapper .wp-block-query-no-results {
	margin-top: 1rem;
	padding: 0.7rem 1rem;
	border: 2px dashed var(--dp-line);
	color: var(--dp-muted);
	font-size: 0.9rem;
}


/* Breadcrumbs (Rank Math shortcode, shown above the page title) */
.dp-crumbs {
	margin: 0 0 1.25rem;
	font-family: var(--dp-display);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--dp-muted);
}
.dp-crumbs nav,
.dp-crumbs p {
	margin: 0;
}
.dp-crumbs a {
	color: var(--dp-muted);
	text-decoration: none;
}
.dp-crumbs a:hover,
.dp-crumbs a:focus-visible {
	color: var(--dp-neon);
}
.dp-crumbs .separator {
	margin: 0 0.45em;
	color: var(--dp-neon);
}
.dp-crumbs .last {
	color: var(--dp-text);
}

/* Poll at the end of an article */
.dp-article > .dp-poll {
	max-width: 760px;
	margin: 2rem auto 0;
}

/* Comments list */
.dp-comments .wp-block-comments-title {
	margin: 0 0 1.25rem;
	font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
}
.dp-comments .wp-block-comment-template {
	display: grid;
	gap: 1rem;
	margin: 0 0 2.5rem;
	padding: 0;
	list-style: none;
}
.dp-comments .wp-block-comment-template li {
	margin: 0;
}
.dp-comments .wp-block-comment-template ol {
	display: grid;
	gap: 1rem;
	margin: 1rem 0 0 clamp(1rem, 4vw, 2.25rem);
	padding: 0;
	list-style: none;
}
.dp-comment {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.9rem;
	padding: 1rem 1.15rem 1.1rem;
	background: var(--dp-surface);
	border: 2px solid var(--dp-line);
}
.dp-comment > * {
	margin: 0 !important;
}
.dp-comment .wp-block-comment-author-name {
	font-family: var(--dp-display);
	font-weight: 700;
	font-size: 1.05rem;
}
.dp-comment .wp-block-comment-author-name a {
	color: var(--dp-text);
	text-decoration: none;
}
.dp-comment .wp-block-comment-date {
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.dp-comment .wp-block-comment-date a {
	color: var(--dp-muted);
	text-decoration: none;
}
.dp-comment .wp-block-comment-content {
	flex: 0 0 100%;
	margin-top: 0.4rem !important;
}
.dp-comment .wp-block-comment-content p {
	margin: 0 0 0.6em;
}
.dp-comment .wp-block-comment-content p:last-child {
	margin-bottom: 0;
}
.dp-comment .wp-block-comment-reply-link,
.dp-comment .wp-block-comment-edit-link {
	font-family: var(--dp-pixel);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.dp-comment .wp-block-comment-reply-link a,
.dp-comment .wp-block-comment-edit-link a {
	text-decoration: none;
}
.dp-comment .wp-block-comment-reply-link a:hover,
.dp-comment .wp-block-comment-edit-link a:hover {
	text-decoration: underline;
}
.dp-comments .comment-reply-title {
	margin-top: 0;
}
.dp-comments .comment-form-comment label,
.dp-comments .comment-form-author label,
.dp-comments .comment-form-email label,
.dp-comments .comment-form-url label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}
.dp-comments textarea,
.dp-comments input[type="text"],
.dp-comments input[type="email"],
.dp-comments input[type="url"] {
	width: 100%;
	box-sizing: border-box;
}
.dp-comments .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: var(--wp--preset--font-size--sm);
}
.dp-comments .comment-form-cookies-consent input {
	width: 18px;
	height: 18px;
	margin-top: 0.2rem;
	accent-color: var(--dp-neon);
}
.dp-comments .comment-notes,
.dp-comments .logged-in-as {
	color: var(--dp-muted);
	font-size: var(--wp--preset--font-size--sm);
}
.dp-comments .comment-awaiting-moderation {
	color: var(--dp-neon);
	font-size: var(--wp--preset--font-size--sm);
}

/* page header (archives / pages) */
.dp-pagehead {
	margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--dp-surface);
	border: 2px solid var(--dp-line);
	border-left: 8px solid var(--dp-neon);
}
.dp-pagehead h1 {
	margin: 0;
	font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
}
.dp-pagehead .wp-block-term-description,
.dp-pagehead p {
	margin: 0.6rem 0 0;
	color: var(--dp-muted);
}

/* pagination */
.wp-block-query-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: clamp(2rem, 5vw, 3rem);
	font-family: var(--dp-pixel);
	font-weight: 700;
	letter-spacing: 0.1em;
	font-size: 0.85rem;
	text-transform: uppercase;
}
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.9rem;
	background: var(--dp-surface);
	color: var(--dp-text);
	border: 2px solid var(--dp-line);
	text-decoration: none;
	transition: border-color 0.15s, color 0.15s, transform 0.12s;
}
.wp-block-query-pagination a:hover {
	border-color: var(--dp-neon);
	color: var(--dp-neon);
	transform: translateY(-2px);
}
.wp-block-query-pagination .page-numbers.current {
	background: var(--dp-neon);
	border-color: var(--dp-neon);
	color: var(--dp-ink);
}
.wp-block-query-pagination .wp-block-query-pagination-numbers {
	display: contents;
}

/* 404 */
.dp-404 {
	display: grid;
	place-items: center;
	gap: 1rem;
	padding: clamp(2rem, 8vw, 6rem) 1rem;
	text-align: center;
}
.dp-404 .dp-404__code {
	margin: 0;
	font-weight: 400;
	font-family: var(--dp-arcade);
	font-weight: 700;
	letter-spacing: 0.1em;
	font-size: clamp(2.5rem, 1.5rem + 8vw, 7rem);
	line-height: 1;
	color: var(--dp-neon);
	text-shadow: 4px 4px 0 var(--dp-shade);
	animation: dp-glitch 2.4s steps(2, end) infinite;
}
.dp-404 .dp-404__sub {
	margin: 0;
	font-family: var(--dp-pixel);
	font-weight: 700;
	letter-spacing: 0.1em;
	font-size: clamp(0.8rem, 0.7rem + 0.6vw, 1.15rem);
	text-transform: uppercase;
	line-height: 1.8;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
.dp-footer {
	margin-top: clamp(2rem, 6vw, 4rem);
	background: var(--dp-surface);
	border-top: 2px solid var(--dp-neon);
}
.dp-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	max-width: var(--wp--style--global--wide-size, 1240px);
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 3vw, 2rem);
}
.dp-footer h3 {
	margin: 0 0 1rem;
	font-family: var(--dp-pixel);
	font-weight: 700;
	letter-spacing: 0.1em;
	font-size: 0.92rem;
	font-weight: 400;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--dp-neon);
}
.dp-footer p {
	color: var(--dp-muted);
	font-size: var(--wp--preset--font-size--sm);
}
.dp-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.dp-footer li {
	margin: 0 0 0.55rem;
}
.dp-footer li a {
	color: var(--dp-text);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--sm);
}
.dp-footer li a:hover {
	color: var(--dp-neon);
	text-decoration: underline;
}
.dp-footer .dp-logo {
	margin: 0 0 1rem;
}
.dp-footer .dp-logo img {
	width: 120px;
	height: auto;
}
html:not(.dp-js) .dp-share {
	display: none;
}
.dp-footer .dp-social {
	margin-top: 1.25rem;
}
.dp-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}
.dp-social a {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 2px solid var(--dp-line);
	color: var(--dp-text);
	transition: border-color 0.15s, color 0.15s, transform 0.12s;
}
.dp-social a:hover {
	border-color: var(--dp-neon);
	color: var(--dp-neon);
	transform: translateY(-3px);
}
.dp-social svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}
.dp-footer__bar {
	border-top: 2px dashed var(--dp-line);
}
.dp-footer__bar p {
	max-width: var(--wp--style--global--wide-size, 1240px);
	margin: 0 auto;
	padding: 1rem clamp(1rem, 3vw, 2rem);
	font-family: var(--dp-pixel);
	font-weight: 700;
	letter-spacing: 0.1em;
	font-size: 0.71rem;
	line-height: 1.9;
	text-transform: uppercase;
}

/* back to top */
.dp-top {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 950;
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	padding: 0;
	background: var(--dp-neon);
	color: var(--dp-ink);
	border: 2px solid var(--dp-ink);
	box-shadow: 4px 4px 0 var(--dp-shade);
	font-family: var(--dp-pixel);
	font-weight: 700;
	letter-spacing: 0.1em;
	font-size: 0.99rem;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.dp-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.dp-top:hover {
	background: #fff;
}


/* ==========================================================================
   Feed filters, load more, reels, affiliate (Eneba)
   ========================================================================== */
html:not(.dp-js) .dp-filters,
html:not(.dp-js) .dp-loadmore {
	display: none;
}
.dp-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
}
.dp-filter {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 1rem;
	background: transparent;
	color: var(--dp-text);
	border: 2px solid var(--dp-line);
	font-family: var(--dp-pixel);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.12s;
}
.dp-filter:hover {
	border-color: var(--dp-neon);
	color: var(--dp-neon);
	transform: translateY(-2px);
}
.dp-filter.is-active,
.dp-filter[aria-pressed="true"] {
	background: var(--dp-neon);
	border-color: var(--dp-neon);
	color: var(--dp-ink);
}
.dp-filter--random {
	margin-left: auto;
	border-style: dashed;
}
.dp-feed .wp-block-post-template > li[hidden] {
	display: none;
}
.dp-feed .wp-block-post-template > li.dp-pop {
	animation: dp-pop 0.4s var(--dp-ease) both;
}
@keyframes dp-pop {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.98);
	}
}
.dp-loadmore {
	display: flex;
	justify-content: center;
	margin-top: 1.5rem;
}
.dp-loadmore[hidden] {
	display: none;
}
.dp-loadmore .dp-coin {
	cursor: pointer;
}

/* Reels: horizontal scroll-snap strip (swipe on phones, scroll on desktop) */
.dp-reels-wrap {
	margin: 0 calc(clamp(1rem, 3vw, 2rem) * -1);
	padding: 0 clamp(1rem, 3vw, 2rem);
}
.dp-reels {
	display: flex;
	gap: 1rem;
	margin: 0;
	padding: 0.5rem 0.25rem 1.25rem;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-color: var(--dp-neon) var(--dp-surface);
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}
.dp-reels:focus-visible {
	outline-offset: 0;
}
.dp-reel-item {
	flex: 0 0 min(62vw, 250px);
	margin: 0;
	scroll-snap-align: start;
}
.dp-reel {
	position: relative;
	display: block;
	aspect-ratio: 9 / 16;
	overflow: hidden;
	background: var(--dp-surface-2);
	border: 2px solid var(--dp-line);
	color: var(--dp-text);
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--dp-ease);
}
.dp-reel:hover,
.dp-reel:focus-visible {
	border-color: var(--dp-neon);
	box-shadow: 6px 6px 0 var(--dp-neon);
	transform: translate(-3px, -3px);
}
.dp-reel img,
.dp-reel iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
}
.dp-reel__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	background: var(--dp-neon);
	color: var(--dp-ink);
	border: 2px solid var(--dp-ink);
	box-shadow: 4px 4px 0 var(--dp-shade);
	font-size: 1.1rem;
	padding-left: 3px;
	transition: transform 0.15s;
}
.dp-reel:hover .dp-reel__play {
	transform: scale(1.12);
}
.dp-reel__title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 2.5rem 0.8rem 0.8rem;
	background: linear-gradient(to top, rgba(8, 12, 9, 0.95), rgba(8, 12, 9, 0));
	font-family: var(--dp-display);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.2;
}
.dp-reel.is-playing .dp-reel__play,
.dp-reel.is-playing .dp-reel__title {
	display: none;
}
.dp-reel.is-playing {
	box-shadow: none;
	transform: none;
}

/* Affiliate (Eneba) */
.dp-aff-note,
.dp-band .dp-aff-note {
	margin-top: 0.9rem;
	color: var(--dp-muted);
	font-size: 0.75rem;
	line-height: 1.4;
}
.dp-eneba {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.25rem;
	max-width: 760px;
	margin: 2rem auto 0;
	padding: 1.1rem 1.25rem;
	background: var(--dp-surface);
	border: 2px dashed var(--dp-neon);
}
.dp-eneba .dp-eneba__text {
	flex: 1 1 260px;
	margin: 0;
}
.dp-eneba .wp-block-buttons {
	margin: 0;
}
.dp-eneba .dp-aff-note {
	flex-basis: 100%;
	margin: 0;
}
.dp-footer .dp-aff {
	margin: 0.75rem 0 0;
}
.dp-footer .dp-aff a {
	color: var(--dp-neon);
}


/* ==========================================================================
   Polls
   ========================================================================== */
.dp-poll-section .dp-poll {
	max-width: 760px;
}
.dp-poll {
	padding: clamp(1.1rem, 3vw, 1.75rem);
	background: var(--dp-surface);
	border: 2px solid var(--dp-line);
	box-shadow: 6px 6px 0 var(--dp-neon);
}
.dp-content .dp-poll {
	margin: 2rem 0;
}
.dp-poll__q {
	margin: 0 0 1.1rem;
	font-family: var(--dp-display);
	font-weight: 700;
	font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.6rem);
	line-height: 1.2;
}
.dp-poll__opts {
	display: grid;
	gap: 0.6rem;
}
.dp-poll__opt {
	position: relative;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 48px;
	padding: 0.6rem 0.9rem;
	background: var(--dp-surface-2);
	border: 2px solid var(--dp-line);
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.dp-poll__opt:hover {
	border-color: var(--dp-neon);
	transform: translateX(3px);
}
.dp-poll__opt input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0;
	padding: 0;
	accent-color: var(--dp-neon);
}
.dp-poll__opt:has(input:checked) {
	border-color: var(--dp-neon);
	background: rgba(57, 255, 106, 0.1);
}
.dp-poll__opt:focus-within {
	outline: 3px solid var(--dp-neon);
	outline-offset: 2px;
}
.dp-poll__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.9rem 1.25rem;
	margin-top: 1.1rem;
}
.dp-poll__see {
	padding: 0.5rem 0;
	background: none;
	color: var(--dp-muted);
	border: 0;
	font: inherit;
	font-size: var(--wp--preset--font-size--sm);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.dp-poll__see:hover {
	color: var(--dp-neon);
}
.dp-poll__msg {
	margin: 0.75rem 0 0;
	color: var(--dp-muted);
	font-size: var(--wp--preset--font-size--sm);
}
.dp-poll__msg:empty {
	display: none;
}
.dp-poll__results {
	display: grid;
	gap: 0.85rem;
}
.dp-poll__results[hidden] {
	display: none;
}
.dp-poll__row-head {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.3rem;
	font-weight: 600;
}
.dp-poll__row-head em {
	font-style: normal;
	color: var(--dp-neon);
}
.dp-poll__row.is-mine .dp-poll__row-head span::after {
	content: " ✓ tu voto";
	color: var(--dp-neon);
	font-size: var(--wp--preset--font-size--xs);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.dp-poll__bar {
	height: 16px;
	background: var(--dp-surface-2);
	border: 2px solid var(--dp-line);
}
.dp-poll__bar > span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--dp-brand-bar, #3fa535);
	transition: width 0.8s var(--dp-ease);
}
.dp-poll__row.is-top .dp-poll__bar > span {
	background: var(--dp-neon);
}
.dp-poll__total {
	margin: 0.4rem 0 0;
	color: var(--dp-muted);
	font-size: var(--wp--preset--font-size--xs);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.dp-poll-error {
	padding: 0.75rem 1rem;
	border: 2px dashed var(--dp-magenta);
	color: var(--dp-magenta);
}

/* ==========================================================================
   10. Scroll reveal (only when JS is running and motion is OK)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	html.dp-js .dp-reveal {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity 0.55s var(--dp-ease), transform 0.55s var(--dp-ease);
		transition-delay: calc(var(--dp-i, 0) * 60ms);
	}
	html.dp-js .dp-reveal.dp-in {
		opacity: 1;
		transform: none;
	}
	/* once revealed, cards use their own hover transform */
	html.dp-js .dp-card.dp-in {
		transition: transform 0.2s var(--dp-ease), border-color 0.2s, box-shadow 0.2s, opacity 0.55s var(--dp-ease);
	}
}

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	/* collapse the nav into the overlay menu earlier than core's 600px */
	.dp-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
	.dp-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
}

@media (max-width: 1000px) {
	.dp-hero-grid {
		grid-template-columns: 1fr;
	}
	.dp-hero-side .wp-block-post-template {
		grid-template-rows: none;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.dp-hero-side .dp-card {
		flex-direction: column;
	}
	.dp-hero-side .dp-card .wp-block-post-featured-image {
		flex: none;
		aspect-ratio: 16 / 9;
	}
	.dp-band {
		grid-template-columns: 1fr;
	}
	.dp-footer__inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 782px) {
	:root {
		--dp-header-h: 60px;
	}
		.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 46px;
	}
	.dp-brand .dp-logo img {
		width: 64px;
	}
	.dp-brand .wp-block-site-title {
		font-size: 0.65rem !important;
	}
	.dp-tools .dp-coin {
		display: none;
	}
	.dp-card--row {
		flex-direction: column;
	}
	.dp-card--row .wp-block-post-featured-image {
		flex: none;
		aspect-ratio: 16 / 9;
	}
	.dp-ticker__label {
		padding: 0.8rem 0.7rem;
	}
	.dp-ticker__label span {
		display: none;
	}
}

@media (max-width: 600px) {
	/* WP's admin bar stops being fixed here, so don't leave a gap above the sticky header */
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

@media (max-width: 560px) {
	.dp-header__inner {
		gap: 0.5rem;
		padding-inline: 0.75rem;
	}
	.dp-brand .wp-block-site-title {
		display: none;
	}
	.dp-tools {
		gap: 0.4rem;
	}
	.dp-hero-side .wp-block-post-template {
		grid-template-columns: 1fr;
	}
	.dp-hero-side .dp-card {
		flex-direction: row;
	}
	.dp-hero-side .dp-card .wp-block-post-featured-image {
		flex: 0 0 36%;
		aspect-ratio: auto;
	}
	.dp-footer__inner {
		grid-template-columns: 1fr;
	}
	.dp-section-title {
		white-space: normal;
	}
	.dp-section-head::after {
		display: none;
	}
	.dp-section-head > .dp-more {
		margin: 0 0 0 auto !important;
	}
	.dp-filters {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.dp-filter {
		justify-content: center;
	}
	.dp-filter--random {
		grid-column: 1 / -1;
		margin-left: 0;
	}
	.dp-hero-card {
		box-shadow: 5px 5px 0 var(--dp-neon);
	}
	.dp-author {
		flex-direction: column;
		align-items: flex-start;
	}
	.dp-top {
		right: 0.75rem;
		bottom: 0.75rem;
	}
}


/* Desktop: the 16:9 hero decides the row height. The side stack lives inside that height
   (it never stretches the hero, which is what used to blow small images up). */
@media (min-width: 1001px) {
	.dp-hero-grid {
		align-items: stretch;
	}
	.dp-hero-side {
		position: relative;
		min-height: 0;
	}
	.dp-hero-side > .wp-block-query {
		position: absolute;
		inset: 0;
	}
	.dp-hero-side .wp-block-post-template {
		height: 100%;
	}
	.dp-hero-side .dp-card__body {
		gap: 0.4rem;
		padding: 0.55rem 0.8rem;
	}
	.dp-hero-side .dp-card .wp-block-post-title {
		max-height: 2.4em;
		font-size: 1rem;
		line-height: 1.2;
	}
	.dp-hero-side .dp-card .wp-block-post-title a {
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}
	.dp-hero-side .dp-card .wp-block-post-featured-image {
		flex-basis: 40%;
		min-height: 0;
	}
	.dp-hero-side .dp-card .wp-block-post-featured-image img {
		height: 100%;
	}
	/* Cards are only ~115px tall here: the chip sits on the thumbnail corner instead of eating text space */
	.dp-hero-side .dp-card {
		position: relative;
	}
	.dp-hero-side .dp-card .wp-block-post-terms.dp-chip {
		position: absolute;
		top: 8px;
		left: 8px;
		z-index: 3;
		font-size: 0.62rem;
	}
	.dp-hero-side .dp-card .wp-block-post-terms.dp-chip a {
		padding: 0.35rem 0.5rem;
	}
	.dp-hero-side .dp-card__body {
		justify-content: center;
		gap: 0.35rem;
		padding: 0.4rem 0.8rem;
	}
	.dp-hero-side .dp-meta {
		line-height: 1.2;
		flex-wrap: nowrap;
		gap: 0.1rem 0.7rem;
		margin-top: 0;
		padding-top: 0;
		overflow: hidden;
		white-space: nowrap;
	}
	.dp-hero-side .dp-meta .wp-block-post-author-name {
		flex: 0 1 auto;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.dp-hero-side .dp-meta .wp-block-post-date {
		flex: 0 0 auto;
	}
}

/* Narrow desktops (1001-1180px): the side column is only ~300px wide, so give the text more room. */
@media (min-width: 1001px) and (max-width: 1180px) {
	.dp-hero-side .dp-card .wp-block-post-featured-image {
		flex-basis: 34%;
	}
	.dp-hero-side .dp-card__body {
		padding-inline: 0.65rem;
	}
	.dp-hero-side .dp-meta {
		gap: 0.1rem 0.5rem;
		font-size: 0.7rem;
		letter-spacing: 0.02em;
	}
}

/* Phones: image on top at its natural 16:9 (no cropping/zoom), text below it. */
@media (max-width: 700px) {
	.dp-hero-card {
		display: flex;
		flex-direction: column;
		aspect-ratio: auto;
		height: 100%;
		min-height: 0;
		background: var(--dp-surface);
	}
	.dp-hero-card::after {
		display: none;
	}
	.dp-hero-card .wp-block-post-featured-image {
		position: relative;
		inset: auto;
		flex: 0 0 auto;
		height: auto;
		aspect-ratio: 16 / 9;
	}
	.dp-hero-card__body {
		position: static;
		flex: 1;
		padding: 1rem 1.1rem 1.25rem;
		background: var(--dp-surface);
	}
	.dp-hero-card .wp-block-post-title {
		font-size: clamp(1.35rem, 1.1rem + 1.6vw, 1.75rem);
	}
	.dp-hero-ctrl {
		top: 0.5rem;
		right: 0.5rem;
		gap: 0.1rem;
		padding: 0.15rem;
	}
	.dp-hero-ctrl button {
		min-width: 32px;
		height: 32px;
	}
	.dp-hero-ctrl .dp-hero-dot {
		min-width: 22px;
	}
	.dp-hero-ctrl .dp-hero-dot::before {
		width: 10px;
		height: 10px;
	}
}

/* ==========================================================================
   12. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
	.dp-ticker .wp-block-post-template {
		animation: none;
	}
	.dp-hero-ctrl::after {
		display: none;
	}
	.dp-ticker__viewport {
		overflow-x: auto;
	}
	.dp-card:hover,
	.dp-card:focus-within,
	.dp-hero-card:hover {
		transform: none;
	}
}

/* Print: drop the arcade, keep the article */
@media print {
	.dp-header,
	.dp-ticker,
	.dp-footer,
	.dp-share,
	.dp-top {
		display: none !important;
	}
	body {
		background: #fff;
		color: #000;
	}
}
