/*
Theme Name: Do the Woo
Theme URI: https://dothewoo.com
Description: The official theme for Do the Woo — a podcast and community hub for WooCommerce builders.
Author: Do the Woo
Author URI: https://dothewoo.com
Version: 1.4.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dothewoo
*/

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

body {
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* ==========================================================================
   Selection & Scrollbar
   ========================================================================== */

::selection {
	background: #0678F7;
	color: #ffffff;
}

:focus-visible {
	outline: 2px solid #0678F7;
	outline-offset: 3px;
}

/* ==========================================================================
   Background Glow
   ========================================================================== */

body::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(ellipse 90% 70% at 15% -20%, rgba(6,120,247,0.13), transparent 55%),
		radial-gradient(ellipse 70% 55% at 85% 110%, rgba(250,47,142,0.10), transparent 55%),
		radial-gradient(ellipse 50% 40% at 50% 50%, rgba(124,58,237,0.06), transparent);
}

.wp-site-blocks {
	position: relative;
	z-index: 1;
}

/* ==========================================================================
   Gradient Utility
   ========================================================================== */

.dtw-grad,
.grad {
	background: linear-gradient(
		135deg,
		var(--wp--preset--color--accent-blue, #0678F7),
		var(--wp--preset--color--accent-pink, #FA2F8E)
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ==========================================================================
   Buttons
   --------------------------------------------------------------------------
   Variants:
     • Default  — neutral glass (set in theme.json styles.elements.button)
     • Outline  — core built-in is-style-outline (set in theme.json variations)
     • Ghost    — link-only with underline + animated arrow on hover
   ========================================================================== */

/* Default (neutral glass) hover */
.wp-block-button:not(.is-style-outline):not(.is-style-ghost):not([class*="is-style-dtw-"]) .wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wp-block-button:not(.is-style-outline):not(.is-style-ghost):not([class*="is-style-dtw-"]) .wp-block-button__link:hover {
	background-color: rgba(255,255,255,0.09);
	color: var(--wp--preset--color--text);
	border-color: rgba(255,255,255,0.22);
}

/* Outline hover */
.wp-block-button.is-style-outline .wp-block-button__link {
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: rgba(255,255,255,0.06);
	border-color: var(--wp--preset--color--text);
	color: var(--wp--preset--color--text);
}

/* Ghost — link-only with animated arrow */
.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent;
	border: 0;
	padding: 4px 0;
	color: var(--wp--preset--color--text-muted);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.22);
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.wp-block-button.is-style-ghost .wp-block-button__link::after {
	content: "→";
	display: inline-block; /* isolates from the link's underline */
	margin-left: 0.35em;
	font-weight: 400;
	text-decoration: none;
	transform: translateX(0);
	transition: transform 0.25s ease, margin-left 0.25s ease;
}

.wp-block-button.is-style-ghost .wp-block-button__link:hover {
	color: var(--wp--preset--color--text);
	text-decoration-color: var(--wp--preset--color--text);
}

.wp-block-button.is-style-ghost .wp-block-button__link:hover::after {
	margin-left: 0.55em;
	transform: translateX(3px);
}

/* ==========================================================================
   Mono Label Utility
   ========================================================================== */

.dtw-label,
.mono {
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.42);
}

.dtw-eyebrow::before {
	content: '// ';
	opacity: 0.45;
}

/* ==========================================================================
   TT5 Override Resets
   ========================================================================== */

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}



/* ==========================================================================
   D3 — Animated Wave Logo
   ========================================================================== */

@keyframes dtw-wave-pulse {
	0%, 100% { transform: scaleY(1); }
	50%      { transform: scaleY(0.4); }
}

.dtw-wave {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 28px;
}

.dtw-bar {
	width: 4px;
	background: linear-gradient(to top, #0678F7, #FA2F8E);
	border-radius: 4px;
	transform-origin: center;
	animation: dtw-wave-pulse 1.2s ease-in-out infinite;
}

.dtw-bar:nth-child(1) { height: 20%; animation-delay: 0s; }
.dtw-bar:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.dtw-bar:nth-child(3) { height: 40%; animation-delay: 0.2s; }
.dtw-bar:nth-child(4) { height: 80%; animation-delay: 0.3s; }
.dtw-bar:nth-child(5) { height: 50%; animation-delay: 0.4s; }
.dtw-bar:nth-child(6) { height: 90%; animation-delay: 0.5s; }
.dtw-bar:nth-child(7) { height: 35%; animation-delay: 0.6s; }
.dtw-bar:nth-child(8) { height: 70%; animation-delay: 0.7s; }
.dtw-bar:nth-child(9) { height: 25%; animation-delay: 0.8s; }

/* Logo lockup */
.dtw-logo-link {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
	flex-shrink: 0;
}

.dtw-site-name {
	font-family: 'Outfit', sans-serif;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: #ffffff;
}

/* ==========================================================================
   D6 — Header
   ========================================================================== */

/* Original values (revert if needed):
   background: linear-gradient(to bottom, rgba(6,6,10,0.92), transparent); */
.dtw-header {
	position: fixed !important;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 100;
	padding: 18px 48px !important;
	background: rgba(6, 6, 10, 0.85);
	/* NOTE: backdrop-filter intentionally removed.
	   It creates a containing block for position:fixed descendants,
	   which traps the mobile nav overlay (.wp-block-navigation__responsive-container)
	   inside the header's box instead of letting it cover the viewport.
	   A solid semi-transparent background alone is sufficient header polish
	   and prevents scrolling content from bleeding through the bottom edge. */
}

/* Navigation container */
.dtw-nav .wp-block-navigation__container {
	display: flex;
	gap: 28px;
	align-items: center;
}

/* All nav links */
.dtw-nav .wp-block-navigation-item__content {
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.68);
	text-decoration: none;
	transition: color 0.2s ease;
}

.dtw-nav .wp-block-navigation-item__content::before {
	content: '// ';
	opacity: 0.45;
}

.dtw-nav .wp-block-navigation-item__content:hover {
	color: #ffffff;
}

.dtw-nav .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent-blue);
}

/* Subscribe nav button — YouTube red pill */
.dtw-nav .wp-block-navigation-item.nav-subscribe .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	background: rgba(255,0,0,0.12);
	border: 1px solid rgba(255,0,0,0.28);
	border-radius: 8px;
	color: #ffffff;
	font-weight: 600;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.dtw-nav .wp-block-navigation-item.nav-subscribe .wp-block-navigation-item__content::before {
	display: none;
}

.dtw-nav .wp-block-navigation-item.nav-subscribe .wp-block-navigation-item__content:hover {
	background: rgba(255,0,0,0.20);
	border-color: rgba(255,0,0,0.45);
}

/* Offset page content for fixed header */
.wp-site-blocks {
	padding-top: 80px;
}

/* Header mobile */
@media (max-width: 768px) {
	.dtw-header {
		padding: 14px 20px !important;
		background: rgb(6, 6, 10);
	}
}

/* Header desktop — glass blur.
   Scoped to >=769px because backdrop-filter on .dtw-header creates a
   containing block that traps the mobile nav overlay inside the header. */
@media (min-width: 769px) {
	.dtw-header {
		-webkit-backdrop-filter: blur(16px);
		backdrop-filter: blur(16px);
	}
}

/* Logo mobile — prevent overflow */
@media (max-width: 480px) {
	.dtw-wave {
		width: 56px;
		height: 20px;
	}

	.dtw-site-name {
		font-size: 14px;
	}
}

/* ==========================================================================
   D9 — Episode Cards & Grid
   ========================================================================== */

/* ── SECTION HEADER ───────────────────────────────────────── */
.dtw-section-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 36px;
}

.dtw-section-eyebrow {
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-subtle);
	margin-bottom: 8px;
}

.dtw-section-eyebrow::before {
	content: '// ';
}

.dtw-section-title {
	font-weight: 700;
	letter-spacing: -0.02em;
}

.dtw-view-all {
	color: var(--wp--preset--color--text-subtle);
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	text-decoration: none;
	letter-spacing: 0.05em;
	transition: color 0.2s ease;
}

.dtw-view-all:hover {
	color: var(--wp--preset--color--text-muted);
}

/* ── EPISODE GRID ─────────────────────────────────────────── */
.wp-block-query .wp-block-post-template {
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}

/* ── EPISODE CARD ─────────────────────────────────────────── */
/* Styled on the Group wrapper (.dtw-ep-card), NOT on .wp-block-post.
   No overflow:hidden or transform — both break position:fixed modals
   inside the video-embed block. */
.dtw-ep-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.dtw-ep-card:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--accent-blue) 35%, transparent);
	box-shadow: 0 8px 32px -8px color-mix(in srgb, var(--wp--preset--color--accent-blue) 20%, transparent);
}

/* Thumbnail — clip the video-embed trigger to card's rounded top */
.dtw-ep-card > .dtw-video-embed {
	border-radius: 13px 13px 0 0;
	overflow: hidden;
	flex-shrink: 0;
}

.dtw-ep-card:hover .dtw-video-embed__thumbnail {
	transform: scale(1.04);
}

/* ── CARD BODY (Stack) ────────────────────────────────────── */
.dtw-card-body {
	padding: 18px 20px;
	flex: 1;
	gap: 8px;
}

/* Post title */
.dtw-card-body .wp-block-post-title a {
	font-weight: 600;
	line-height: 1.4;
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.dtw-card-body .wp-block-post-title a:hover {
	color: rgba(255,255,255,0.8);
}

/* Excerpt */
.dtw-card-body .wp-block-post-excerpt__excerpt {
	color: var(--wp--preset--color--text-muted);
	line-height: 1.6;
	margin-bottom: 0;
}

/* Post date */
.dtw-card-body .wp-block-post-date time {
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	color: var(--wp--preset--color--text-subtle);
}

/* Guest / taxonomy terms */
.dtw-card-body .wp-block-post-terms {
	margin-top: auto;
}

.dtw-card-body .wp-block-post-terms a {
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	color: var(--wp--preset--color--text-subtle);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.dtw-card-body .wp-block-post-terms a:hover {
	color: var(--wp--preset--color--accent-blue);
}

/* ── RESPONSIVE GRID ──────────────────────────────────────── */
@media (max-width: 1024px) {
	.wp-block-query .wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 640px) {
	.wp-block-query .wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ==========================================================================
   D10 — Subscribe Strip
   ========================================================================== */

.dtw-subscribe-strip {
	position: relative;
	z-index: 2;
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
	background: rgba(255, 255, 255, 0.015);
}

.dtw-subscribe-strip__inner {
	padding: 28px 48px;
	gap: 32px;
}

.dtw-subscribe-eyebrow {
	flex-shrink: 0;
	margin: 0 !important;
}

.dtw-subscribe-buttons {
	gap: 10px !important;
}

/* --- Platform button base (global — works anywhere, not just subscribe strip) --- */

.wp-block-button[class*="is-style-dtw-"] .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	color: var(--wp--preset--color--text-muted);
	padding: 9px 15px;
	font-family: var(--wp--preset--font-family--outfit);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wp-block-button[class*="is-style-dtw-"] .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.09);
	border-color: var(--wp--preset--color--border-active);
	color: var(--wp--preset--color--text);
}

/* --- SVG icons via ::before --- */

.wp-block-button[class*="is-style-dtw-"] .wp-block-button__link::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

/* --- Default icons (muted) --- */

.wp-block-button.is-style-dtw-youtube .wp-block-button__link::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.68)'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E");
}

.wp-block-button.is-style-dtw-apple-podcasts .wp-block-button__link::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='10 8 52 54' fill='rgba(255,255,255,0.68)'%3E%3Cpath d='M41.515,47.716c-0.172,2.017-0.497,4.707-0.923,7.446c-0.303,1.95-0.549,3.002-0.773,3.755c-0.363,1.221-1.72,2.289-3.842,2.289c-2.122,0-3.479-1.068-3.842-2.289c-0.224-0.753-0.47-1.806-0.773-3.755c-0.425-2.739-0.751-5.429-0.923-7.446c-0.18-2.117-0.274-3.441-0.107-4.978c0.086-0.794,0.358-1.351,0.874-1.895c0.988-1.042,2.723-1.71,4.771-1.71c2.048,0,3.784,0.668,4.771,1.71c0.516,0.544,0.788,1.101,0.874,1.895C41.789,44.275,41.695,45.599,41.515,47.716z M27.397,42.6c0.207,0.194,0.317,0.47,0.302,0.752c-0.048,0.861-0.031,1.698,0.027,2.644c0.015,0.251-0.267,0.413-0.475,0.271c-4.143-2.829-6.849-7.612-6.78-13.011c0.105-8.208,6.688-14.972,14.894-15.29c8.829-0.342,16.122,6.739,16.122,15.492c0,5.315-2.69,10.014-6.78,12.808c-0.208,0.142-0.491-0.019-0.475-0.27c0.057-0.945,0.075-1.782,0.026-2.643c-0.016-0.283,0.095-0.559,0.302-0.753c2.439-2.289,3.965-5.54,3.965-9.141c0-7.08-5.899-12.809-13.042-12.533c-6.572,0.255-11.873,5.623-12.046,12.196C23.337,36.856,24.882,40.239,27.397,42.6z M41.365,31.57c0,2.975-2.412,5.386-5.388,5.386c-2.976,0-5.388-2.411-5.388-5.386s2.412-5.386,5.388-5.386C38.953,26.184,41.365,28.595,41.365,31.57z'/%3E%3C/svg%3E");
}

.wp-block-button.is-style-dtw-pocket-casts .wp-block-button__link::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='56 56 400 400' fill='rgba(255,255,255,0.68)'%3E%3Cpath d='M256 400a144 144 0 11144-144h48a192 192 0 10-192 192v-48zm0-71a73 73 0 1173-73h42a115 115 0 10-115 115v-42z'/%3E%3C/svg%3E");
}

.wp-block-button.is-style-dtw-rss .wp-block-button__link::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='rgba(255,255,255,0.68)'%3E%3Cpath d='M3 1H1V3H3C8.52285 3 13 7.47715 13 13V15H15V13C15 6.37258 9.62742 1 3 1Z'/%3E%3Cpath d='M3 6H1V8H3C5.76142 8 8 10.2386 8 13V15H10V13C10 9.13401 6.86599 6 3 6Z'/%3E%3Cpath d='M3 15C4.10457 15 5 14.1046 5 13C5 11.8954 4.10457 11 3 11C1.89543 11 1 11.8954 1 13C1 14.1046 1.89543 15 3 15Z'/%3E%3C/svg%3E");
}

.wp-block-button.is-style-dtw-x .wp-block-button__link::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.68)'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
}

/* --- Brand-colored hover states --- */

/* YouTube: #FF0000 */
.wp-block-button.is-style-dtw-youtube .wp-block-button__link:hover {
	background: rgba(255, 0, 0, 0.12);
	border-color: rgba(255, 0, 0, 0.35);
	color: var(--wp--preset--color--text);
}

.wp-block-button.is-style-dtw-youtube .wp-block-button__link:hover::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF0000'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E");
}

/* Apple Podcasts: #9933CC */
.wp-block-button.is-style-dtw-apple-podcasts .wp-block-button__link:hover {
	background: rgba(153, 51, 204, 0.12);
	border-color: rgba(153, 51, 204, 0.35);
	color: var(--wp--preset--color--text);
}

.wp-block-button.is-style-dtw-apple-podcasts .wp-block-button__link:hover::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='10 8 52 54' fill='%239933CC'%3E%3Cpath d='M41.515,47.716c-0.172,2.017-0.497,4.707-0.923,7.446c-0.303,1.95-0.549,3.002-0.773,3.755c-0.363,1.221-1.72,2.289-3.842,2.289c-2.122,0-3.479-1.068-3.842-2.289c-0.224-0.753-0.47-1.806-0.773-3.755c-0.425-2.739-0.751-5.429-0.923-7.446c-0.18-2.117-0.274-3.441-0.107-4.978c0.086-0.794,0.358-1.351,0.874-1.895c0.988-1.042,2.723-1.71,4.771-1.71c2.048,0,3.784,0.668,4.771,1.71c0.516,0.544,0.788,1.101,0.874,1.895C41.789,44.275,41.695,45.599,41.515,47.716z M27.397,42.6c0.207,0.194,0.317,0.47,0.302,0.752c-0.048,0.861-0.031,1.698,0.027,2.644c0.015,0.251-0.267,0.413-0.475,0.271c-4.143-2.829-6.849-7.612-6.78-13.011c0.105-8.208,6.688-14.972,14.894-15.29c8.829-0.342,16.122,6.739,16.122,15.492c0,5.315-2.69,10.014-6.78,12.808c-0.208,0.142-0.491-0.019-0.475-0.27c0.057-0.945,0.075-1.782,0.026-2.643c-0.016-0.283,0.095-0.559,0.302-0.753c2.439-2.289,3.965-5.54,3.965-9.141c0-7.08-5.899-12.809-13.042-12.533c-6.572,0.255-11.873,5.623-12.046,12.196C23.337,36.856,24.882,40.239,27.397,42.6z M41.365,31.57c0,2.975-2.412,5.386-5.388,5.386c-2.976,0-5.388-2.411-5.388-5.386s2.412-5.386,5.388-5.386C38.953,26.184,41.365,28.595,41.365,31.57z'/%3E%3C/svg%3E");
}

/* Pocket Casts: #F43E37 */
.wp-block-button.is-style-dtw-pocket-casts .wp-block-button__link:hover {
	background: rgba(244, 62, 55, 0.12);
	border-color: rgba(244, 62, 55, 0.35);
	color: var(--wp--preset--color--text);
}

.wp-block-button.is-style-dtw-pocket-casts .wp-block-button__link:hover::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='56 56 400 400' fill='%23F43E37'%3E%3Cpath d='M256 400a144 144 0 11144-144h48a192 192 0 10-192 192v-48zm0-71a73 73 0 1173-73h42a115 115 0 10-115 115v-42z'/%3E%3C/svg%3E");
}

/* RSS Feed: #F26522 */
.wp-block-button.is-style-dtw-rss .wp-block-button__link:hover {
	background: rgba(242, 101, 34, 0.12);
	border-color: rgba(242, 101, 34, 0.35);
	color: var(--wp--preset--color--text);
}

.wp-block-button.is-style-dtw-rss .wp-block-button__link:hover::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23F26522'%3E%3Cpath d='M3 1H1V3H3C8.52285 3 13 7.47715 13 13V15H15V13C15 6.37258 9.62742 1 3 1Z'/%3E%3Cpath d='M3 6H1V8H3C5.76142 8 8 10.2386 8 13V15H10V13C10 9.13401 6.86599 6 3 6Z'/%3E%3Cpath d='M3 15C4.10457 15 5 14.1046 5 13C5 11.8954 4.10457 11 3 11C1.89543 11 1 11.8954 1 13C1 14.1046 1.89543 15 3 15Z'/%3E%3C/svg%3E");
}

/* X: #FFFFFF */
.wp-block-button.is-style-dtw-x .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.09);
	border-color: rgba(255, 255, 255, 0.25);
	color: var(--wp--preset--color--text);
}

.wp-block-button.is-style-dtw-x .wp-block-button__link:hover::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFFFFF'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
}

/* ==========================================================================
   D10 — Footer
   ========================================================================== */

.dtw-footer {
	position: relative;
	z-index: 2;
}

/* Column title prefix */
.dtw-footer-col-title::before {
	content: '// ';
}

/* Footer nav lists — strip bullets, style links */
.dtw-footer-nav {
	list-style: none;
}

.dtw-footer-nav a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.dtw-footer-nav a:hover {
	color: #ffffff;
}

/* Footer colophon (left stack) — compact disclaimer under copyright */
.dtw-footer-colophon {
	max-width: 60ch;
}

.dtw-footer-disclaimer {
	line-height: 1.5;
}

/* Footer credit (right row) — "dothewoo.com is [proudly designed with WordPress]".
   team51-credits emits <a class="imprint"> with no inline styles. */
.dtw-footer-credit {
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: 12px;
	line-height: 1.6;
	color: var(--wp--preset--color--text-subtle);
	white-space: nowrap;
}

.dtw-footer-credit .imprint {
	color: var(--wp--preset--color--text-subtle);
	text-decoration: none;
	transition: color 0.2s ease;
}

.dtw-footer-credit .imprint:hover,
.dtw-footer-credit .imprint:focus {
	color: #ffffff;
}

/* ==========================================================================
   D10 — Responsive (Subscribe Strip + Footer)
   ========================================================================== */

@media (max-width: 768px) {
	.dtw-subscribe-strip__inner {
		padding: 20px;
	}

	.dtw-footer {
		padding: 32px 20px !important;
	}

	.dtw-footer-bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		text-align: left;
	}

	.dtw-footer-credit {
		white-space: normal;
		flex-wrap: wrap;
	}
}

/* ==========================================================================
   === MOBILE NAV OVERLAY ===
   WP core owns display/position/visibility for the responsive container.
   See wp-includes/blocks/navigation/style.css — the container is
   position: fixed; inset: 0; display: none by default and switches to
   display: flex when .is-menu-open is added. html.has-modal-open gets
   overflow: hidden automatically. We only style the visible chrome.
   Scoped to .dtw-nav so no leakage to other Navigation blocks.
   ========================================================================== */

/* Hamburger button — only style the chrome. Do NOT touch display/color,
   let WP core's `display: flex` + `color: currentColor` + `svg { fill:
   currentColor }` render the icon. currentColor inherits from the nav
   block, which has text-muted set in theme.json. */
.dtw-nav .wp-block-navigation__responsive-container-open {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--border-active);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.dtw-nav .wp-block-navigation__responsive-container-open:hover {
	background: rgba(255, 255, 255, 0.09);
	border-color: var(--wp--preset--color--border-active);
}

.dtw-nav .wp-block-navigation__responsive-container-open:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-blue);
	outline-offset: 3px;
}

/* Overlay — open state.
   `!important` is required for a confirmed specificity conflict:
   WP core ships `.wp-block-navigation:not(.has-background)
   .wp-block-navigation__responsive-container.is-menu-open { background-color:#fff }`
   at specificity (0,4,0). Our `.dtw-nav` prefix gives (0,3,0) and loses.
   Same story for `:not(.has-text-color)` painting text #000.
   The gradient wash (blue → purple → pink) is layered as a second
   background-image above the solid color — no ::before pseudo needed,
   no stacking-context risk. */
.dtw-nav .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--background) !important;
	background-image: linear-gradient(
		160deg,
		color-mix(in srgb, var(--wp--preset--color--accent-blue) 12%, transparent) 0%,
		color-mix(in srgb, var(--wp--preset--color--accent-purple) 8%, transparent) 50%,
		color-mix(in srgb, var(--wp--preset--color--accent-pink) 6%, transparent) 100%
	);
	color: var(--wp--preset--color--text-muted) !important;
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
}

/* CSS counter root — reset at the <ul> so numbering restarts per menu. */
.dtw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	counter-reset: dtw-nav-counter;
}

/* Force the ul + li to full width inside the overlay. WP core sets
   `.wp-block-navigation-item { display: flex; align-items: center }`
   which makes the <li> shrink-wrap to its text content, so the link's
   `width: 100%` + `border-bottom` only spans the text. Overriding both
   the container list and each item to block-level fixes the border
   separators and gives a proper tap target across the full row. */
.dtw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	display: block;
	width: 100%;
}

.dtw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	display: block;
	width: 100%;
}

/* Nav links inside the open overlay — big, clean, readable.
   `position: relative` establishes a containing block for the ::after
   gradient underline. Specificity (0,4,1) beats the desktop rule and
   the subscribe pill rule. */
.dtw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	position: relative;
	display: block;
	width: 100%;
	padding: 20px 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-family: var(--wp--preset--font-family--outfit);
	font-size: var(--wp--preset--font-size--xxxl);
	font-weight: 700;
	letter-spacing: -0.03em;
	text-transform: none;
	color: var(--wp--preset--color--text-muted);
	background: transparent;
	border-radius: 0;
	transition: color 0.2s ease, padding-left 0.25s ease;
}

.dtw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
.dtw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--text);
	padding-left: 8px;
	outline: none;
	box-shadow: none;
}

/* Current page gets the highlighted treatment so users know where they are.
   WP core's navigation block adds `current-menu-item` to the <li> whose URL
   matches the current request (works for navigation-link custom URLs too). */
.dtw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
	color: var(--wp--preset--color--text);
	padding-left: 8px;
}

/* Numbered prefix via CSS counter on ::before.
   Overrides the desktop `.dtw-nav .wp-block-navigation-item__content::before { content: '// ' }`
   rule via higher specificity (4 classes vs 2). The inline-block +
   margin-right lays the number out before the text on the same line. */
.dtw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::before {
	content: counter(dtw-nav-counter, decimal-leading-zero);
	counter-increment: dtw-nav-counter;
	display: inline-block;
	margin-right: 18px;
	vertical-align: 0.35em;
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 400;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--text-subtle);
	opacity: 0.85;
	transition: color 0.2s ease;
}

.dtw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover::before,
.dtw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible::before,
.dtw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content::before {
	color: var(--wp--preset--color--accent-pink);
	opacity: 1;
}

/* Gradient underline via ::after — animates width 0 → 100% on hover/focus.
   Desktop nav doesn't use ::after on link content, so no conflict. */
.dtw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -1px;
	height: 2px;
	width: 0;
	background: linear-gradient(
		90deg,
		var(--wp--preset--color--accent-blue),
		var(--wp--preset--color--accent-pink)
	);
	transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	pointer-events: none;
}

.dtw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover::after,
.dtw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible::after,
.dtw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content::after {
	width: 100%;
}

/* Suppress the counter prefix on the Subscribe item (it's a call-to-action,
   not a numbered menu entry). */
.dtw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.nav-subscribe .wp-block-navigation-item__content::before {
	content: none;
}

/* Reset the subscribe pill's red/border styling inside the overlay so
   "Subscribe" renders as a regular nav link. */
.dtw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.nav-subscribe .wp-block-navigation-item__content {
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	padding: 20px 0;
	font-family: var(--wp--preset--font-family--outfit);
	font-size: var(--wp--preset--font-size--xxxl);
	font-weight: 700;
	color: var(--wp--preset--color--text-muted);
}

/* Scroll lock fix — WP core sets `html.has-modal-open { overflow: hidden }`
   but `body { overflow-x: hidden }` above makes body its own scroll
   container, so the html lock alone doesn't stop body scroll. Lock body
   too when the nav modal is open. */
html.has-modal-open body {
	overflow: hidden;
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

/* ==========================================================================
   404 Template
   ========================================================================== */

.dtw-404-glyph {
	background: var(--wp--preset--gradient--brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
