/**
 * Light theme: white content shell, neutral page chrome, Plus Jakarta Sans + Source Serif 4.
 */

:root {
	--dlg-radius-xl: 12px;
	--dlg-radius-lg: 10px;
	--dlg-radius-md: 8px;
	--dlg-page: var(--wp--preset--color--page);
	--dlg-paper: var(--wp--preset--color--paper);
	--dlg-ink: var(--wp--preset--color--ink);
	--dlg-muted: var(--wp--preset--color--muted);
	--dlg-accent: var(--wp--preset--color--accent);
	--dlg-line: var(--wp--preset--color--hairline);
	--dlg-nav: var(--wp--preset--color--nav);
	--dlg-shadow-card:
		0 1px 2px rgba(15, 23, 42, 0.05),
		0 4px 16px rgba(15, 23, 42, 0.06);
	/* Shared header/footer accent (cohesive with slate + accent palette) */
	--dlg-strip: linear-gradient(90deg, var(--dlg-accent) 0%, #6366f1 52%, #64748b 100%);
	--dlg-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
		monospace;
	/* Full-viewport shell (resume-style: wash reaches the browser chrome; .dlg-page-bg stays transparent) */
	--dlg-page-shell-bg:
		radial-gradient(140% 120% at 10% 0%, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0) 58%),
		radial-gradient(120% 100% at 95% 100%, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0) 60%),
		linear-gradient(
			180deg,
			color-mix(in srgb, var(--dlg-page) 66%, #c7d2fe) 0%,
			color-mix(in srgb, var(--dlg-page) 78%, #dbeafe) 46%,
			var(--dlg-page) 100%
		);
}

/*
 * Viewport shell: real #dlg-viewport-shell div (injected at wp_body_open) — fixed to the viewport.
 * Survives WP stacking / global-styles better than html::before or body background alone.
 */
html {
	color-scheme: only light;
	margin: 0;
	padding: 0;
	min-height: 100%;
	height: 100%;
	overflow-x: clip;
	background-color: #eef1f5 !important;
}

#dlg-viewport-shell {
	position: fixed;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	pointer-events: none;
	background: var(--dlg-page-shell-bg);
}

body {
	position: relative;
	z-index: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-size: 1.0625rem;
	margin: 0;
	padding: 0;
	min-height: 100vh;
	min-height: 100dvh;
	text-rendering: optimizeLegibility;
	background: transparent !important;
	background-color: transparent !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* WP 6+ root wrapper — global-styles often paints this opaque; must stay transparent to show #dlg-viewport-shell */
body .wp-site-blocks,
body .wp-site-blocks.has-global-padding,
body .wp-site-blocks.has-background,
html body .wp-site-blocks {
	position: relative;
	z-index: 1;
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
}

/* --- Page shell (inset is padding; transparent so #dlg-viewport-shell shows through) --- */

.wp-block-group.dlg-page-bg {
	max-width: none !important;
	width: 100%;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box;
}

.dlg-page-bg {
	position: relative;
	padding: clamp(1.25rem, 4vw, 2.5rem) clamp(0.85rem, 2.5vw, 1.75rem);
	box-sizing: border-box;
	background: transparent;
}

.dlg-page-bg > * {
	position: relative;
	z-index: 1;
}

/* --- Card: solid white --- */

.dlg-card {
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 72rem);
	margin-left: auto;
	margin-right: auto;
	border-radius: var(--dlg-radius-xl);
	overflow: hidden;
	background: var(--dlg-paper);
	border: 1px solid var(--dlg-line);
	box-shadow: var(--dlg-shadow-card);
}

/* --- Page header region (inside card): accent strip + masthead band --- */

.dlg-page-header {
	position: relative;
	width: 100%;
}

/* Top edge of the whole card header: thin gradient bar (ties to footer strip) */
.dlg-page-header::before {
	content: "";
	display: block;
	height: 3px;
	background: var(--dlg-strip);
	opacity: 0.92;
}

/* --- Header image --- */

.dlg-header-image-wrap {
	margin: 0;
	padding: 0.5rem 0 0;
	line-height: 0;
	background: var(--dlg-paper);
}

.dlg-header-image-wrap .dlg-header-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(38vh, 300px);
	object-fit: cover;
	border-radius: 0;
	border: none;
	border-bottom: 1px solid var(--dlg-line);
	box-sizing: border-box;
	box-shadow: none;
}

/* --- Site title --- */

.dlg-glass-intro {
	position: relative;
	background:
		linear-gradient(110deg, rgba(148, 163, 184, 0.12) 0%, rgba(148, 163, 184, 0) 45%),
		linear-gradient(180deg, #f1f5f9 0%, #ffffff 72%);
	border-bottom: 1px solid var(--dlg-line);
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	padding-top: clamp(1.05rem, 2.4vw, 1.85rem) !important;
	padding-bottom: clamp(0.9rem, 2.2vw, 1.45rem) !important;
	padding-left: clamp(1.2rem, 2.6vw, 2.1rem) !important;
}

.dlg-glass-intro::after {
	content: "";
	position: absolute;
	left: var(--wp--preset--spacing--40);
	right: var(--wp--preset--spacing--40);
	bottom: 0;
	height: 1px;
	background: linear-gradient(
		90deg,
		rgba(59, 130, 246, 0.55) 0%,
		rgba(99, 102, 241, 0.2) 34%,
		rgba(148, 163, 184, 0.1) 100%
	);
}

.dlg-site-intro .wp-block-site-title,
.dlg-site-intro .wp-block-site-title a {
	font-size: clamp(1.15rem, 2.75vw, 1.5rem);
	font-weight: 600;
	letter-spacing: -0.018em;
	line-height: 1.25;
	color: #475569;
}

.dlg-site-intro .wp-block-site-title {
	margin-bottom: 0;
	text-align: left !important;
}

.dlg-site-intro .wp-block-site-title a {
	display: inline-block;
	text-decoration: none;
	color: #334155;
	font-weight: 650;
	letter-spacing: -0.02em;
	padding-bottom: 0.02em;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease;
}

.dlg-site-intro .wp-block-site-title a:hover {
	color: #1d4ed8;
	border-bottom-color: color-mix(in srgb, var(--dlg-accent) 38%, white);
}

.dlg-site-url {
	align-self: flex-end;
	margin-left: auto;
	padding-right: 0.85rem;
	font-family: var(--dlg-mono);
	font-size: 0.74rem;
	letter-spacing: 0.02em;
	color: #64748b;
	text-decoration: none;
	white-space: nowrap;
	opacity: 0.9;
	transition: color 0.15s ease, opacity 0.15s ease;
}

.dlg-site-url:hover {
	color: #1d4ed8;
	opacity: 1;
}

.dlg-site-intro .wp-block-site-tagline {
	color: var(--dlg-muted);
	font-weight: 400;
	font-size: 0.8125rem;
	letter-spacing: 0;
	line-height: 1.4;
}

/* --- Nav: full width of card (edge to edge inside .dlg-card) --- */

.dlg-nav-bar {
	background: var(--dlg-nav);
	margin: 0.65rem 0 0.65rem clamp(0.9rem, 2vw, 1.35rem);
	border-top-left-radius: var(--dlg-radius-lg);
	border-bottom-left-radius: var(--dlg-radius-lg);
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	border: 1px solid rgba(15, 23, 42, 0.2);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.12) inset,
		0 2px 12px rgba(15, 23, 42, 0.14);
	overflow: hidden;
}

.dlg-nav-bar .wp-block-navigation {
	width: 100%;
}

.dlg-nav-inner {
	width: 100%;
}

.dlg-nav-bar .wp-block-navigation-item__content,
.dlg-nav-bar .wp-block-navigation-item a {
	color: #fff !important;
	font-weight: 600;
	font-size: 0.8125rem;
	letter-spacing: 0.01em;
	text-transform: none;
	padding: 0.45rem 0.65rem;
	border-radius: 6px;
	transition: background 0.15s ease;
	text-decoration: none !important;
}

.dlg-nav-bar .wp-block-navigation-item__content:hover,
.dlg-nav-bar .wp-block-navigation-item a:hover {
	text-decoration: none !important;
	background: rgba(255, 255, 255, 0.12);
}

.dlg-nav-bar .wp-block-navigation__responsive-container-open {
	color: #fff;
}

/* --- Columns --- */

.dlg-main-columns {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40)
		var(--wp--preset--spacing--40);
	background: #ffffff;
}

.dlg-main-columns > .wp-block-column {
	min-width: 0;
}

.dlg-sidebar {
	padding-top: var(--wp--preset--spacing--60);
}

@media (min-width: 782px) {
	.dlg-sidebar {
		padding-top: var(--wp--preset--spacing--60);
	}
}

/* --- Headings / listings (sans) --- */

.wp-block-query .wp-block-post-title,
.wp-block-post-template .wp-block-post-title,
.wp-block-query .wp-block-post-title.has-medium-font-size {
	font-size: clamp(1.15rem, 2.4vw, 1.4rem) !important;
	font-weight: 650;
	line-height: 1.25;
	letter-spacing: -0.025em;
}

.wp-block-query .wp-block-post-title a {
	color: var(--dlg-ink);
	transition: color 0.15s ease;
}

.wp-block-query .wp-block-post-title a:hover {
	color: var(--dlg-accent);
}

body.single-post .wp-block-post-title,
body.page .wp-block-post-title {
	font-size: clamp(1.5rem, 3vw, 1.95rem) !important;
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.03em;
	color: var(--dlg-ink);
}

/* Single-post prev/next nav: separate from prose and add directional glyphs */
body.single-post .wp-block-post-navigation-link {
	margin: 0;
}

body.single-post .wp-block-post-navigation-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.34rem;
	padding: 0.35rem 0.68rem;
	border-radius: 999px;
	border: 1px solid var(--dlg-line);
	background: #fff;
	color: #334155;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.1;
}

body.single-post .wp-block-post-navigation-link a:hover {
	background: color-mix(in srgb, var(--dlg-accent) 8%, white);
	border-color: color-mix(in srgb, var(--dlg-accent) 24%, white);
	color: #1d4ed8;
}

body.single-post .wp-block-post-navigation-link.previous-post a::before {
	content: none;
}

body.single-post .wp-block-post-navigation-link.next-post a::after {
	content: none;
}

@media (max-width: 781px) {
	.dlg-glass-intro {
		padding-top: 0.8rem !important;
		padding-bottom: 0.55rem !important;
	}

	.dlg-glass-intro {
		align-items: flex-start;
		flex-direction: column;
	}

	.dlg-site-url {
		display: none;
	}
}

body .wp-block-query-title {
	font-size: clamp(1.5rem, 3vw, 1.95rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--dlg-ink);
}

.wp-block-query .wp-block-post-excerpt {
	font-family: var(--wp--preset--font-family--serif);
	color: var(--dlg-ink);
}

.wp-block-post-date,
.wp-block-post-terms {
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.wp-block-post-date {
	font-family: var(--dlg-mono);
	font-variant-numeric: tabular-nums;
	color: var(--dlg-muted);
}

/* Extra breathing room between listing entries */
.wp-block-post-template > .dlg-post-in-list {
	margin-bottom: clamp(2rem, 3.6vw, 3rem);
}

.wp-block-post-template > .dlg-post-in-list:last-child {
	margin-bottom: 0;
}

.dlg-post-in-list {
	position: relative;
}

.dlg-post-in-list::after {
	content: "";
	display: block;
	clear: both;
}

/*
 * Polaroid thumb — index teaser + in-article hand shot MUST share these rules (same box, margin, tilt, inner frame).
 */
.dlg-post-in-list .wp-block-post-featured-image.dlg-list-thumb,
.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-in-hand"]) {
	float: right;
	width: clamp(120px, 28%, 210px);
	margin: 1.2rem 0 0.55rem 1rem;
	clear: both;
	text-align: center;
	transform-origin: center center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Odd rows on index + always the in-article hand image */
.wp-block-post-template > li:nth-child(odd) .wp-block-post-featured-image.dlg-list-thumb,
.wp-block-post-template > .dlg-post-in-list:nth-child(odd) .wp-block-post-featured-image.dlg-list-thumb,
.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-in-hand"]) {
	transform: rotate(-5.5deg);
}

.wp-block-post-template > li:nth-child(even) .wp-block-post-featured-image.dlg-list-thumb,
.wp-block-post-template > .dlg-post-in-list:nth-child(even) .wp-block-post-featured-image.dlg-list-thumb {
	transform: rotate(4.5deg);
}

.dlg-post-in-list .wp-block-post-featured-image.dlg-list-thumb a,
.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-in-hand"]) > a {
	display: block;
	padding: 0.22rem 0.26rem 0.28rem;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	max-height: 220px;
	box-sizing: border-box;
	background: #fff;
	border-radius: 2px;
	text-decoration: none;
	color: inherit;
	box-shadow:
		4px 6px 0 rgba(15, 23, 42, 0.06),
		8px 14px 28px rgba(15, 23, 42, 0.22);
	transition: box-shadow 0.2s ease;
	transform: none;
}

@media (hover: hover) {
	.wp-block-post-template > li:nth-child(odd) .wp-block-post-featured-image.dlg-list-thumb:hover,
	.wp-block-post-template > .dlg-post-in-list:nth-child(odd) .wp-block-post-featured-image.dlg-list-thumb:hover,
	.wp-block-post-template > li:nth-child(even) .wp-block-post-featured-image.dlg-list-thumb:hover,
	.wp-block-post-template > .dlg-post-in-list:nth-child(even) .wp-block-post-featured-image.dlg-list-thumb:hover,
	.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-in-hand"]):hover {
		transform: rotate(0deg) scale(1.02);
		box-shadow: none;
	}

	.wp-block-post-template > li:nth-child(odd) .wp-block-post-featured-image.dlg-list-thumb:hover a,
	.wp-block-post-template > .dlg-post-in-list:nth-child(odd) .wp-block-post-featured-image.dlg-list-thumb:hover a,
	.wp-block-post-template > li:nth-child(even) .wp-block-post-featured-image.dlg-list-thumb:hover a,
	.wp-block-post-template > .dlg-post-in-list:nth-child(even) .wp-block-post-featured-image.dlg-list-thumb:hover a,
	.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-in-hand"]):hover > a {
		box-shadow:
			3px 4px 0 rgba(15, 23, 42, 0.05),
			6px 18px 36px rgba(15, 23, 42, 0.28);
	}
}

.dlg-post-in-list .wp-block-post-featured-image.dlg-list-thumb a:focus-visible,
.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-in-hand"]) > a:focus-visible {
	outline: none;
	box-shadow:
		0 0 0 2px var(--dlg-accent),
		8px 14px 28px rgba(15, 23, 42, 0.22);
}

.dlg-post-in-list .wp-block-post-featured-image.dlg-list-thumb img,
.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-in-hand"]) img {
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
	object-position: center;
	display: block;
	border-radius: 0;
	border: none;
	box-shadow: none;
}

/* Fallback first-inline images in listings: force consistent right-float, no frame */
.dlg-post-in-list > .wp-block-image,
.dlg-post-in-list > figure {
	float: right;
	width: clamp(120px, 28%, 210px);
	margin: 0.2rem 0 0.55rem 1rem;
	clear: both;
}

.dlg-post-in-list > .wp-block-image img,
.dlg-post-in-list > figure img {
	width: 100%;
	height: auto;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.dlg-post-in-list > img {
	float: right;
	max-width: clamp(120px, 28%, 210px);
	width: auto;
	height: auto;
	margin: 0.2rem 0 0.55rem 1rem;
	clear: both;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}


.dlg-ipv6-badge-wrap {
	margin: 1.45rem 0 0;
	text-align: right;
}

.dlg-ipv6-badge-link {
	display: inline-flex;
	align-items: center;
	padding: 0;
	border: none;
	background: transparent;
}

.dlg-ipv6-badge-link:hover {
	background: transparent;
}

.dlg-ipv6-badge-link img {
	width: 128px;
	height: 128px;
	display: block;
}

@media screen and (min-width: 782px) {
	.dlg-ipv6-badge-wrap {
		margin: 0.55rem 0 0;
	}
}

@media (max-width: 781px) {
	.dlg-page-bg {
		padding: 0;
		background: var(--dlg-paper);
	}

	.dlg-card {
		max-width: none;
		border-radius: 0;
		border: none;
		box-shadow: none;
	}

	.dlg-nav-bar {
		margin: 0;
		border-radius: 0;
	}

	.dlg-ipv6-badge-wrap {
		display: none !important;
	}
}

@media print {
	.dlg-ipv6-badge-wrap {
		display: none !important;
	}
}

/* Category/term links as subtle tags */
.dlg-post-in-list .wp-block-post-terms a,
.dlg-main .wp-block-post-terms a {
	display: inline-flex;
	align-items: center;
	margin-right: 0.22rem;
	margin-bottom: 0.22rem;
	padding: 0.08rem 0.4rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, #94a3b8 32%, white);
	background: color-mix(in srgb, #94a3b8 7%, white);
	color: #475569;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.005em;
	text-decoration: none;
}

.dlg-post-in-list .wp-block-post-terms a:hover,
.dlg-main .wp-block-post-terms a:hover {
	background: color-mix(in srgb, #94a3b8 12%, white);
	color: #334155;
	text-decoration: none;
}

.dlg-post-in-list .wp-block-post-terms a::before,
.dlg-main .wp-block-post-terms a::before {
	content: "";
	margin-right: 0.16rem;
	opacity: 0.72;
	display: inline-block;
	width: 0.5rem;
	height: 0.46rem;
	background-color: currentColor;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath fill='black' d='M0.8 2.2h5.2l1.1 1.2h8.1v7.8H0.8z'/%3E%3Cpath fill='black' d='M0.8 1h4.9l1 1.1h8.5v1.1H0.8z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath fill='black' d='M0.8 2.2h5.2l1.1 1.2h8.1v7.8H0.8z'/%3E%3Cpath fill='black' d='M0.8 1h4.9l1 1.1h8.5v1.1H0.8z'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

.dlg-post-in-list .wp-block-post-terms a[href*="/tag/"]::before,
.dlg-main .wp-block-post-terms a[href*="/tag/"]::before {
	content: "#";
	width: auto;
	height: auto;
	background: none;
	-webkit-mask-image: none;
	mask-image: none;
	opacity: 0.65;
	font-family: var(--dlg-mono);
	font-size: 0.72em;
}

.wp-block-post-terms__separator {
	display: none;
}

/* --- Sidebar: white panel --- */

.dlg-glass-sidebar {
	padding: 1rem 1rem 1.15rem;
	border-radius: var(--dlg-radius-lg);
	background: #f5f7fa;
	border: 1px solid var(--dlg-line);
	box-shadow: none;
	font-size: 0.8125rem;
	line-height: 1.45;
	letter-spacing: -0.01em;
}

.dlg-sidebar .wp-block-search__inside-wrapper {
	display: flex;
	align-items: stretch;
	border-radius: 8px;
	border: 1px solid var(--dlg-line);
	background: #fff;
	overflow: hidden;
}

.dlg-sidebar .wp-block-search__input {
	border: none;
	background: #fff;
	flex: 1;
	min-width: 0;
	padding: 0.4rem 0.5rem;
	font: inherit;
	font-size: 0.8125rem;
	letter-spacing: -0.01em;
	color: var(--dlg-ink);
}

.dlg-sidebar .wp-block-search__button {
	padding: 0.4rem 0.65rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	background: var(--dlg-accent);
	color: #fff;
	border: none;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.dlg-sidebar .wp-block-search__button:hover {
	opacity: 0.92;
}

.dlg-sidebar .wp-block-search + .wp-block-heading {
	margin-top: 1.85rem;
}

.dlg-sidebar .wp-block-heading {
	margin-top: 0.1rem;
	margin-bottom: 0.45rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--dlg-muted);
}

.dlg-sidebar .dlg-tags-heading {
	margin-top: 1.1rem;
	margin-bottom: 0.22rem;
}

.dlg-sidebar .dlg-categories-heading {
	margin-top: 1.1rem;
}

.dlg-sidebar .dlg-archives-heading,
.dlg-sidebar .dlg-categories-heading,
.dlg-sidebar .dlg-tags-heading {
	display: inline-flex;
	align-items: center;
	gap: 0.34rem;
}

.dlg-sidebar .dlg-archives-heading::before {
	content: "";
	width: 0.64rem;
	height: 0.64rem;
	flex-shrink: 0;
	background-color: var(--dlg-muted);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M3 1h1.2v1.1h7.6V1H13v1.1h1.4V15H1.6V2.1H3V1zm-0.2 4v8.8h10.4V5H2.8zm2 2.1h2.1v2.1H4.8V7.1z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M3 1h1.2v1.1h7.6V1H13v1.1h1.4V15H1.6V2.1H3V1zm-0.2 4v8.8h10.4V5H2.8zm2 2.1h2.1v2.1H4.8V7.1z'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	opacity: 0.8;
}

.dlg-sidebar .dlg-categories-heading::before {
	content: "";
	width: 0.68rem;
	height: 0.56rem;
	flex-shrink: 0;
	background-color: var(--dlg-muted);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath fill='black' d='M0.8 2.2h5.2l1.1 1.2h8.1v7.8H0.8z'/%3E%3Cpath fill='black' d='M0.8 1h4.9l1 1.1h8.5v1.1H0.8z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath fill='black' d='M0.8 2.2h5.2l1.1 1.2h8.1v7.8H0.8z'/%3E%3Cpath fill='black' d='M0.8 1h4.9l1 1.1h8.5v1.1H0.8z'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	opacity: 0.8;
}

.dlg-sidebar .dlg-tags-heading::before {
	content: "#";
	font-family: var(--dlg-mono);
	font-size: 0.9em;
	font-weight: 700;
	opacity: 0.72;
}

.dlg-sidebar .wp-block-archives-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.dlg-sidebar .wp-block-archives-list li,
.dlg-sidebar .wp-block-categories-list li {
	margin: 0.12rem 0;
	padding: 0;
}

.dlg-sidebar .wp-block-categories-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.dlg-sidebar .wp-block-archives-list a,
.dlg-sidebar .wp-block-categories-list a {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	text-decoration: none;
	font-size: 0.75rem;
	letter-spacing: -0.01em;
	color: var(--dlg-accent);
}

.dlg-sidebar .wp-block-archives-list a::before,
.dlg-sidebar .wp-block-categories-list a::before {
	content: "";
	width: 0.5rem;
	height: 0.6rem;
	flex-shrink: 0;
	background-color: var(--dlg-muted);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath fill='black' d='M1 1 L5 6 L1 11 L2.5 11 L6.5 6 L2.5 1 Z'/%3E%3Cpath fill='black' d='M7 1 L11 6 L7 11 L8.5 11 L12.5 6 L8.5 1 Z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath fill='black' d='M1 1 L5 6 L1 11 L2.5 11 L6.5 6 L2.5 1 Z'/%3E%3Cpath fill='black' d='M7 1 L11 6 L7 11 L8.5 11 L12.5 6 L8.5 1 Z'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	opacity: 0.75;
}

.dlg-sidebar .wp-block-archives-list a:hover,
.dlg-sidebar .wp-block-categories-list a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dlg-sidebar .wp-block-tag-cloud {
	margin-top: 0;
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}

.dlg-sidebar .wp-block-tag-cloud a {
	display: inline-flex;
	align-items: center;
	margin: 0.12rem 0;
	font-size: 0.75rem !important;
	font-weight: 500;
	color: var(--dlg-accent);
	text-decoration: none;
}

.dlg-sidebar .wp-block-tag-cloud a::before {
	content: "";
	margin-right: 0.16rem;
	width: 0.5rem;
	height: 0.6rem;
	background-color: var(--dlg-muted);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath fill='black' d='M1 1 L5 6 L1 11 L2.5 11 L6.5 6 L2.5 1 Z'/%3E%3Cpath fill='black' d='M7 1 L11 6 L7 11 L8.5 11 L12.5 6 L8.5 1 Z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath fill='black' d='M1 1 L5 6 L1 11 L2.5 11 L6.5 6 L2.5 1 Z'/%3E%3Cpath fill='black' d='M7 1 L11 6 L7 11 L8.5 11 L12.5 6 L8.5 1 Z'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	opacity: 0.75;
}

.dlg-sidebar .wp-block-tag-cloud a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --- Pagination: subtle capsules + vector arrows --- */
.wp-block-query-pagination {
	margin-top: clamp(0.65rem, 1.5vw, 1rem);
	gap: 0.34rem;
}

.wp-block-query-pagination .wp-block-query-pagination-previous,
.wp-block-query-pagination .wp-block-query-pagination-next,
.wp-block-query-pagination .wp-block-query-pagination-previous a,
.wp-block-query-pagination .wp-block-query-pagination-next a,
.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2rem;
	padding: 0.34rem 0.62rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--dlg-line) 85%, white);
	background: #fff;
	color: #475569;
	font-size: 0.8rem;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wp-block-query-pagination .wp-block-query-pagination-previous,
.wp-block-query-pagination .wp-block-query-pagination-next,
.wp-block-query-pagination .wp-block-query-pagination-previous a,
.wp-block-query-pagination .wp-block-query-pagination-next a {
	font-size: 0;
	line-height: 0;
	min-width: 2rem;
	padding: 0.34rem;
}

.wp-block-query-pagination .wp-block-query-pagination-previous::before,
.wp-block-query-pagination .wp-block-query-pagination-next::after,
.wp-block-query-pagination .wp-block-query-pagination-previous a::before,
.wp-block-query-pagination .wp-block-query-pagination-next a::after {
	content: "";
	display: inline-block;
	width: 0.66rem;
	height: 0.66rem;
	background-color: currentColor;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	opacity: 0.68;
}

.wp-block-query-pagination .wp-block-query-pagination-previous::before,
.wp-block-query-pagination .wp-block-query-pagination-previous a::before {
	margin-right: 0.26rem;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M8.9 1.2L3.4 6l5.5 4.8L7.9 12 1 6l6.9-6z' fill='black'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M8.9 1.2L3.4 6l5.5 4.8L7.9 12 1 6l6.9-6z' fill='black'/%3E%3C/svg%3E");
}

.wp-block-query-pagination .wp-block-query-pagination-next::after,
.wp-block-query-pagination .wp-block-query-pagination-next a::after {
	margin-left: 0.26rem;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.1 1.2L8.6 6l-5.5 4.8L4.1 12 11 6 4.1 0z' fill='black'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.1 1.2L8.6 6l-5.5 4.8L4.1 12 11 6 4.1 0z' fill='black'/%3E%3C/svg%3E");
}

.wp-block-query-pagination .page-numbers.current {
	background: color-mix(in srgb, var(--dlg-accent) 5%, white);
	border-color: color-mix(in srgb, var(--dlg-accent) 20%, white);
	color: #3b82f6;
	font-weight: 600;
}

.wp-block-query-pagination .wp-block-query-pagination-previous:hover,
.wp-block-query-pagination .wp-block-query-pagination-next:hover,
.wp-block-query-pagination .wp-block-query-pagination-previous a:hover,
.wp-block-query-pagination .wp-block-query-pagination-next a:hover,
.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers:hover {
	background: color-mix(in srgb, var(--dlg-accent) 8%, white);
	border-color: color-mix(in srgb, var(--dlg-accent) 24%, white);
	color: #1d4ed8;
	text-decoration: none;
}

/* --- Comments: jump link + subtle thread shell --- */
.dlg-comments-shell {
	padding-top: 0.15rem;
	border-top: 1px solid color-mix(in srgb, var(--dlg-line) 75%, white);
}

.dlg-comments-jump {
	margin: 0;
}

.dlg-comments-jump a {
	color: #475569;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--dlg-muted) 65%, white);
	text-underline-offset: 3px;
}

.dlg-comments-jump a::after {
	content: " ...";
}

.dlg-comments-jump a:hover {
	color: #1d4ed8;
}

.dlg-comments-area {
	padding: 0.2rem 0 0;
}

.dlg-comments-area .wp-block-comments-title {
	display: none;
}

/* Alternate every other comment row for easier scanning */
.dlg-comments-area .wp-block-comment-template > li {
	padding: 0.65rem 0.7rem;
	border-radius: 10px;
	margin-bottom: 0.45rem;
}

.dlg-comments-area .wp-block-comment-template > li:nth-child(odd) {
	background: color-mix(in srgb, #94a3b8 7%, white);
	border: 1px solid color-mix(in srgb, #94a3b8 26%, white);
}

.dlg-comments-area .wp-block-comment-template > li:nth-child(even) {
	background: #fff;
	border: 1px solid color-mix(in srgb, #94a3b8 18%, white);
}

@media (max-width: 820px) {
	.dlg-post-in-list .wp-block-post-featured-image.dlg-list-thumb {
		display: none;
	}

	.dlg-post-in-list > .wp-block-image,
	.dlg-post-in-list > figure,
	.dlg-post-in-list > img {
		display: none;
	}

}

/* --- Prose --- */

a {
	color: var(--dlg-accent);
	text-underline-offset: 0.14em;
}

.wp-block-post-excerpt {
	letter-spacing: -0.01em;
	color: #2f3948;
}

.wp-block-post-content,
.entry-content,
.wp-block-post-excerpt p,
.wp-block-post-content p {
	color: #2f3948;
}

/* Read-more CTA with subtle SVG glyph (applies to all excerpt more links) */
.wp-block-post-excerpt__more-link {
	display: inline-flex;
	align-items: center;
	gap: 0.34rem;
	padding: 0.08rem 0.12rem;
	border-radius: 999px;
	border: none;
	background: transparent;
	color: #334155;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.005em;
	text-decoration: none;
	line-height: 1.1;
	clear: both;
	margin-top: 0.65rem;
}

.wp-block-post-excerpt p:has(> .wp-block-post-excerpt__more-link) {
	clear: both;
	margin-top: 0.65rem;
}

@supports not selector(:has(*)) {
	.wp-block-post-excerpt__more-link {
		display: block;
		width: fit-content;
	}
}

.wp-block-post-excerpt__more-link::after {
	content: ">_";
	font-family: var(--dlg-mono);
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	opacity: 0.8;
}

.wp-block-post-excerpt__more-link:hover {
	background: transparent;
	color: var(--dlg-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.wp-block-separator {
	border: none;
	border-top: 1px solid var(--dlg-line);
	background: none !important;
	max-width: 100%;
}

.entry-content,
.wp-block-post-content {
	max-width: none;
	width: 100%;
}

.wp-block-post-featured-image img {
	border-radius: var(--dlg-radius-md);
	height: auto;
	border: 1px solid var(--dlg-line);
	box-shadow: none;
}

/* Single posts: no hero featured image under the title (avoids duplicating the in-content polaroids).
   Index/search archives keep .dlg-list-thumb; if Site Editor still has the block in DB, hide it here too. */
body.single-post .dlg-main .wp-block-post-featured-image {
	display: none !important;
}

/* In-article polaroids — hand uses shared .dlg-list-thumb rules above (do NOT restyle hand here).
   Cluster only: wide frame + float right + a bit of extra padding inside the white border. */
.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-cluster"]),
.dlg-main .wp-block-post-content figure.wp-block-image.dlg-photo-inline:has(img[src*="bosgame-cluster"]) {
	box-sizing: border-box;
	max-width: min(42%, 260px);
	width: 42%;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-cluster"]) {
	float: right;
	clear: none;
	margin: 6rem 0 2.5rem 1.25rem;
	transform: rotate(4.5deg);
	transform-origin: center center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-cluster"]) > a,
.dlg-main .wp-block-post-content figure.wp-block-image.dlg-photo-inline:has(img[src*="bosgame-cluster"]) > a {
	display: block;
	padding: 0.45rem 0.5rem 0.55rem 0.65rem;
	background: #fff;
	border-radius: 2px;
	text-decoration: none;
	color: inherit;
	box-shadow:
		4px 6px 0 rgba(15, 23, 42, 0.06),
		8px 14px 28px rgba(15, 23, 42, 0.22);
	transition: box-shadow 0.2s ease;
	transform: none;
}

/* Bare <img> (no link): polaroid on the image so caption stays upright */
.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-"]):not(:has(> a)) > img {
	box-shadow:
		0 0 0 6px #fff,
		4px 6px 0 rgba(15, 23, 42, 0.06),
		8px 14px 28px rgba(15, 23, 42, 0.22);
	border-radius: 2px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-in-hand"]):not(:has(> a)) > img {
	transform: rotate(-5.5deg);
}

.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-cluster"]):not(:has(> a)) > img {
	transform: rotate(4.5deg);
}

@media (hover: hover) {
	.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-cluster"]):hover {
		transform: rotate(0deg) scale(1.02);
	}

	.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-cluster"]):hover > a {
		box-shadow:
			3px 4px 0 rgba(15, 23, 42, 0.05),
			6px 18px 36px rgba(15, 23, 42, 0.28);
	}

	.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-"]):not(:has(> a)) > img:hover {
		transform: rotate(0deg) scale(1.02);
		box-shadow:
			0 0 0 6px #fff,
			3px 4px 0 rgba(15, 23, 42, 0.05),
			6px 18px 36px rgba(15, 23, 42, 0.28);
	}
}

.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-cluster"]) > a:focus-visible,
.dlg-main .wp-block-post-content figure.wp-block-image.dlg-photo-inline:has(img[src*="bosgame-cluster"]) > a:focus-visible {
	outline: none;
	box-shadow:
		0 0 0 2px var(--dlg-accent),
		8px 14px 28px rgba(15, 23, 42, 0.22);
}

/* Cluster: letterbox OK (wide shot) */
.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-cluster"]) img,
.dlg-main .wp-block-post-content figure.wp-block-image.dlg-photo-inline:has(img[src*="bosgame-cluster"]) img {
	width: 100%;
	height: auto;
	max-height: 180px;
	object-fit: contain;
	display: block;
	border-radius: 0;
	border: none;
}

.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-"]) figcaption,
.dlg-main .wp-block-post-content figure.wp-block-image.dlg-photo-inline figcaption {
	display: none;
}

/* Contain floats at end of post body (do not clear the paragraph after a figure or text won’t wrap) */
.dlg-main .wp-block-post-content::after {
	content: "";
	display: table;
	clear: both;
}

@media (max-width: 640px) {
	.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-cluster"]),
	.dlg-main .wp-block-post-content figure.wp-block-image.dlg-photo-inline:has(img[src*="bosgame-cluster"]),
	.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-in-hand"]) {
		float: none;
		width: 100%;
		max-width: min(100%, 280px);
		margin-left: auto;
		margin-right: auto;
		transform: none;
	}

	.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-in-hand"]) {
		margin-bottom: 3.5rem;
	}

	.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-cluster"]) {
		margin-top: 3rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dlg-photo-archive .wp-block-post-featured-image.dlg-list-thumb:hover,
	.dlg-photo-archive .wp-block-post-featured-image.dlg-photo-thumb:hover {
		transform: none !important;
	}

	.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-cluster"]) > a,
	.dlg-main .wp-block-post-content figure.wp-block-image.dlg-photo-inline:has(img[src*="bosgame-cluster"]) > a,
	.wp-block-post-template > li .wp-block-post-featured-image.dlg-list-thumb a,
	.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-in-hand"]) > a {
		transition: none;
	}

	.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-in-hand"]),
	.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-cluster"]),
	.dlg-main .wp-block-post-content figure.wp-block-image:has(img[src*="bosgame-"]):not(:has(> a)) > img,
	.wp-block-post-template > li:nth-child(odd) .wp-block-post-featured-image.dlg-list-thumb,
	.wp-block-post-template > li:nth-child(even) .wp-block-post-featured-image.dlg-list-thumb,
	.wp-block-post-template > .dlg-post-in-list:nth-child(odd) .wp-block-post-featured-image.dlg-list-thumb,
	.wp-block-post-template > .dlg-post-in-list:nth-child(even) .wp-block-post-featured-image.dlg-list-thumb {
		transform: none;
	}
}

/* --- Code: before Shiki (fallback) + after (Shiki github-light) --- */

.wp-block-post-content pre,
.entry-content pre {
	max-width: 100%;
	overflow-x: auto;
	margin: 1.25rem 0;
	padding: 1rem 1.1rem;
	font-size: 0.875rem;
	line-height: 1.55;
	border-radius: var(--dlg-radius-md);
	border: 1px solid var(--dlg-line);
	background: #f8fafc;
}

.wp-block-post-content pre code,
.entry-content pre code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
		monospace;
	font-size: inherit;
	background: transparent;
	padding: 0;
	border: none;
}

.dlg-code-fallback {
	background: #f8fafc !important;
}

.dlg-code-plain {
	background: #f8fafc !important;
}

/* Shiki output: token colors are inline; we only set layout + font */
.wp-block-post-content pre.dlg-shiki,
.entry-content pre.dlg-shiki,
pre.dlg-shiki {
	margin: 1.25rem 0;
	padding: 1rem 1.1rem;
	max-width: 100%;
	overflow-x: auto;
	border-radius: var(--dlg-radius-md);
	border: 1px solid var(--dlg-line);
	font-size: 0.875rem;
	line-height: 1.55;
}

.wp-block-post-content pre.dlg-shiki code,
.entry-content pre.dlg-shiki code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
		monospace;
	font-size: inherit;
	background: none;
	padding: 0;
}

/* --- Footer (mirror header: strip + soft band, still inside white card) --- */

.dlg-footer-shell {
	position: relative;
	padding-top: 0.55rem;
}

.dlg-site-footer {
	position: relative;
	border-top: none;
	background: linear-gradient(180deg, #fafbfc 0%, #f5f7fa 100%);
	box-shadow: 0 -1px 0 rgba(148, 163, 184, 0.22);
	width: 100%;
	box-sizing: border-box;
	padding-left: var(--wp--preset--spacing--40);
	padding-right: var(--wp--preset--spacing--40);
	padding-top: var(--wp--preset--spacing--30);
	padding-bottom: var(--wp--preset--spacing--30);
	display: flex;
	flex-direction: column;
	align-items: center;
	row-gap: 0.35rem;
}

/* Accent line above footer content — same gradient family as header ::before */
.dlg-site-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--dlg-strip);
	opacity: 0.68;
}

/* Hosted line — same face as before */
.dlg-footer-hosted-line {
	font-family: var(--wp--preset--font-family--sans), "Plus Jakarta Sans", system-ui, sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.25;
	color: #334155;
}

/* Solar line — same face as “Proudly hosted on …”; orange sun only (EhWS landing parity for when to show) */
.dlg-footer-solar-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0;
	margin: 0;
	background: none;
	border: none;
	box-shadow: none;
	font-family: var(--wp--preset--font-family--sans), "Plus Jakarta Sans", system-ui, sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.25;
	color: #334155;
	white-space: nowrap;
	text-align: left;
}

.dlg-footer-solar-badge.dlg-footer-solar-hidden {
	display: none;
}

.dlg-footer-solar-badge .dlg-footer-solar-text {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.15em 0.3em;
	line-height: 1.25;
	min-width: 0;
}

.dlg-footer-solar-badge .dlg-footer-solar-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.1em;
	height: 1.1em;
	line-height: 0;
	color: #f97316;
	transition: transform 0.4s ease, opacity 0.4s ease;
}

.dlg-footer-solar-badge .dlg-footer-solar-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

@keyframes dlg-footer-solar-pulse {
	0%,
	100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.12);
		opacity: 0.92;
	}
}

.dlg-footer-solar-badge.dlg-footer-solar-pulsing .dlg-footer-solar-icon {
	animation: dlg-footer-solar-pulse 1.8s ease-in-out infinite;
}

/* Percent + kW figure — EhWS accent + mono; bolt matches */
.dlg-footer-solar-badge .dlg-footer-solar-pct,
.dlg-footer-solar-badge .dlg-footer-solar-kw {
	color: #f97316;
	font-family: var(--dlg-mono);
	font-weight: 600;
	letter-spacing: 0.01em;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	display: inline-flex;
	align-items: center;
}

.dlg-footer-solar-badge .dlg-footer-solar-kw-line {
	display: inline-flex;
	align-items: center;
	gap: 0.15em;
	font-family: var(--dlg-mono);
	font-weight: 600;
	font-size: inherit;
	line-height: 1;
}

.dlg-footer-solar-badge .dlg-footer-solar-kw-bolt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	color: #f97316;
	flex-shrink: 0;
	width: 1em;
	height: 1em;
}

.dlg-footer-solar-badge .dlg-footer-solar-kw-bolt svg {
	display: block;
	width: 100%;
	height: 100%;
}

.dlg-hosted-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	column-gap: 0.4rem;
	row-gap: 0.35rem;
	margin-top: var(--wp--preset--spacing--30);
	text-align: center;
}

/* DOM has solar before hosted; stack hosted first on narrow viewports */
@media (max-width: 781px) {
	.dlg-site-footer {
		row-gap: var(--wp--preset--spacing--30);
	}

	.dlg-site-footer .dlg-hosted-wrap {
		order: 1;
	}

	.dlg-site-footer .dlg-footer-solar-badge {
		order: 2;
	}
}

.dlg-footer-login-corner {
	position: absolute;
	top: 0.05rem;
	right: 0.75rem;
	transform: none;
	line-height: 1;
	z-index: 3;
}

.dlg-footer-login-corner a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.05rem;
	height: 1.05rem;
	border-radius: 999px;
	color: color-mix(in srgb, var(--dlg-muted) 90%, white);
	font-family: var(--dlg-mono);
	font-size: 0.72rem;
	text-decoration: none;
	opacity: 0.86;
	background: #fff;
	border: 1px solid color-mix(in srgb, var(--dlg-line) 85%, white);
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
	transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.dlg-footer-login-corner a:hover {
	opacity: 1;
	color: var(--dlg-accent);
	background: color-mix(in srgb, var(--dlg-accent) 8%, white);
	text-decoration: none;
}

/* Footer: hosted line — flex so logo, display type, and Generic link share one vertical center */
.dlg-footer-hosted-line {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4rem;
}

/* Single visual mark: beaver + wordmark tight together */
.dlg-footer-ehws-lockup {
	display: inline-flex;
	align-items: center;
	gap: 0.12rem;
	line-height: 1;
}

.dlg-footer-ehws-logo {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	line-height: 0;
	flex-shrink: 0;
}

.dlg-footer-ehws-logo img,
.dlg-footer-ehws-img {
	height: 34px;
	width: auto;
	max-width: 150px;
	display: block;
	object-fit: contain;
	object-position: center center;
	vertical-align: middle;
	/* Crisp PNG on light footer; subtle depth without heavy shadow */
	filter: drop-shadow(0 0.5px 0 rgba(15, 23, 42, 0.14)) drop-shadow(0 1px 1px rgba(15, 23, 42, 0.06));
}

/* Outfit — geometric wordmark only; not body sans/serif */
.dlg-footer-ehws-name {
	display: inline-flex;
	align-items: center;
	font-family: "Outfit", system-ui, sans-serif;
	font-weight: 700;
	font-style: normal;
	color: #1e293b;
	letter-spacing: 0.04em;
	font-size: 1.22em;
	line-height: 1;
	margin: 0;
	padding: 0;
	position: relative;
	top: 0.04em;
}

/*
 * Apple browsers: prefer Apple Color Emoji for 🇨🇦 (first in stack). Other OSes don’t ship that
 * font file—so they naturally use Segoe/Noto/etc. !important beats theme.json / block global styles.
 */
.dlg-footer-hosted-line .dlg-footer-ehws-flag {
	font: normal normal 1.45em/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", emoji, sans-serif !important;
	letter-spacing: normal !important;
	font-variant-emoji: emoji;
	font-synthesis: none;
	display: inline-block;
	vertical-align: -0.12em;
	margin: 0 0.04em;
}

.dlg-footer-generic-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	text-decoration: none;
	color: var(--dlg-muted);
	font-family: "Open Sans", system-ui, sans-serif;
	line-height: 1.15;
	transition: color 0.15s ease;
}

.dlg-footer-generic-logo:hover {
	color: var(--dlg-accent);
}

.dlg-footer-generic-img {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	vertical-align: middle;
	display: inline-flex;
}

.dlg-footer-generic-img svg {
	width: 18px;
	height: 18px;
	display: block;
}

.dlg-footer-generic-text {
	display: inline-block;
	color: #000;
	font-size: 0.95rem;
	font-weight: 400;
	letter-spacing: 0.01em;
	margin: 0;
	line-height: 1.15;
	vertical-align: middle;
}

.dlg-footer-generic-logo .generic-bold {
	font-weight: 700;
}

@media (min-width: 782px) {
	/*
	 * Flex row + order: one cross-axis alignment for hosted vs solar (grid columns
	 * often looked vertically off because the left lockup’s optical center ≠ box center).
	 */
	.dlg-site-footer {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		column-gap: 1.1rem;
		row-gap: 0.35rem;
	}

	.dlg-hosted-wrap {
		order: 1;
		flex: 1 1 auto;
		min-width: 0;
		justify-content: flex-start;
		text-align: left;
		margin-top: 0;
	}

	.dlg-site-footer .dlg-footer-solar-badge {
		order: 2;
		flex: 0 0 auto;
		margin: 0;
		text-align: right;
	}
}

/* --- Photo gallery (CPT `photo`) --- */

.dlg-photo-archive ul.dlg-photo-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
	gap: clamp(1rem, 2.5vw, 1.5rem);
	list-style: none;
	padding: 0;
	margin: 0;
	flex-wrap: unset !important;
	align-items: start;
}

@media (min-width: 900px) {
	.dlg-photo-archive ul.dlg-photo-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.dlg-photo-archive ul.dlg-photo-grid {
		grid-template-columns: 1fr;
	}
}

.dlg-photo-archive .dlg-photo-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

/*
 * Photo gallery grid: override blog “polaroid” tilt (odd/even rotate on .dlg-list-thumb).
 * Flat cards, consistent aspect, subtle frame — blog index / home archives unchanged.
 */
.dlg-photo-archive .wp-block-post-featured-image.dlg-list-thumb,
.dlg-photo-archive .wp-block-post-featured-image.dlg-photo-thumb {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	clear: none !important;
	text-align: left !important;
	transform: none !important;
}

@media (hover: hover) {
	.dlg-photo-archive .wp-block-post-featured-image.dlg-list-thumb:hover,
	.dlg-photo-archive .wp-block-post-featured-image.dlg-photo-thumb:hover {
		transform: translateY(-3px) !important;
		box-shadow:
			0 6px 20px rgba(15, 23, 42, 0.1),
			0 2px 6px rgba(15, 23, 42, 0.06) !important;
	}

	.dlg-photo-archive .wp-block-post-featured-image.dlg-list-thumb:hover a,
	.dlg-photo-archive .wp-block-post-featured-image.dlg-photo-thumb:hover a {
		box-shadow:
			0 4px 14px rgba(15, 23, 42, 0.12),
			0 0 0 1px color-mix(in srgb, var(--dlg-line) 70%, transparent) !important;
	}
}

.dlg-photo-archive .wp-block-post-featured-image.dlg-list-thumb a,
.dlg-photo-archive .wp-block-post-featured-image.dlg-photo-thumb a {
	float: none !important;
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	aspect-ratio: 4 / 3;
	max-height: none !important;
	border-radius: var(--dlg-radius-md);
	background: color-mix(in srgb, var(--dlg-page) 55%, var(--dlg-paper));
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.65) inset,
		0 0 0 1px color-mix(in srgb, var(--dlg-line) 85%, transparent),
		0 4px 14px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	transform: none !important;
}

.dlg-photo-archive .wp-block-post-featured-image.dlg-list-thumb a:focus-visible,
.dlg-photo-archive .wp-block-post-featured-image.dlg-photo-thumb a:focus-visible {
	outline: 2px solid var(--dlg-accent);
	outline-offset: 2px;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12) !important;
}

.dlg-photo-archive .wp-block-post-featured-image.dlg-list-thumb img,
.dlg-photo-archive .wp-block-post-featured-image.dlg-photo-thumb img {
	border-radius: 0;
}

.dlg-photo-archive .dlg-photo-card .wp-block-post-title {
	margin: 0;
	line-height: 1.25;
}

.dlg-photo-archive .dlg-photo-card .wp-block-post-title a {
	text-decoration: none;
	color: var(--dlg-ink);
	font-weight: 600;
	font-size: clamp(0.95rem, 2.2vw, 1.05rem);
	letter-spacing: -0.02em;
}

.dlg-photo-archive .dlg-photo-card .wp-block-post-title a:hover {
	color: var(--dlg-accent);
}

/* Gallery: no excerpt; date + tags only (see templates). Infinite-scroll cards use .dlg-photo-grid-date */
.dlg-photo-archive .dlg-photo-card .wp-block-post-excerpt {
	display: none;
}

.dlg-photo-archive .dlg-photo-grid-date,
.dlg-photo-archive .wp-block-post-date {
	margin: 0.15rem 0 0;
	font-family: var(--dlg-mono);
	font-size: 0.82rem;
	font-variant-numeric: tabular-nums;
	color: var(--dlg-muted);
}

.dlg-photo-infinite-status {
	text-align: center;
	font-size: 0.9rem;
	color: var(--dlg-muted);
	min-height: 1.5em;
	margin: 0.5rem 0 0;
}

.dlg-photo-single-wrap .dlg-photo-single img {
	border-radius: var(--dlg-radius-md);
}

/* Lightbox (<dialog>) */
dialog.dlg-photo-lightbox {
	padding: 0;
	border: none;
	background: transparent;
	max-width: none;
	max-height: none;
	margin: 0;
}

dialog.dlg-photo-lightbox::backdrop {
	background: rgba(15, 23, 42, 0.88);
}

.dlg-photo-lightbox-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.75rem 0.75rem 0.75rem;
	max-width: min(96vw, 1280px);
	max-height: 96vh;
	box-sizing: border-box;
}

.dlg-photo-lightbox-inner img {
	display: block;
	max-width: 100%;
	max-height: min(88vh, 1200px);
	width: auto;
	height: auto;
	border-radius: var(--dlg-radius-md);
	box-shadow: 0 8px 40px rgba(15, 23, 42, 0.35);
}

.dlg-photo-lightbox-close {
	position: absolute;
	top: 0.35rem;
	right: 0.35rem;
	z-index: 2;
	width: 2.25rem;
	height: 2.25rem;
	border: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	color: var(--dlg-ink);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--dlg-shadow-card);
}

.dlg-photo-lightbox-close:hover {
	background: #fff;
	color: var(--dlg-accent);
}
