/*
Theme Name: Orangatune Classic
Theme URI: https://github.com/orangatune/orangatune-classic
Author: Orangatune
Author URI: https://orangatune.com
Description: A barebones classic (non-block) WordPress theme. No theme.json, no full-site editing—just PHP templates and standard hooks.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orangatune
Tags: blog, one-column, custom-menu, featured-images, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* -------------------------------------------------------------------------
   Approach: mobile-first. Base styles = small screens; use min-width
   media queries to add or override for tablet/desktop.
   ------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------
   Theme colors (use these variables everywhere)
   ------------------------------------------------------------------------- */
:root {
	--ollie-orange: #ff773b;    /* Match logo (vinyl/speaker SVGs) */
	--accent-blue: #43d3ff;     /* Match logo */
	--night-black: #212121;     /* Text, dark backgrounds, category pills (25% darker) */
	--pebble-gray: #636363;     /* Secondary text, dates, meta */
	--cloud-white: #f9f9f9;    /* Light backgrounds */
	--font-heading: 'Lora', Georgia, serif;
	--font-body: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-nav: var(--font-body); /* Roboto – matches body text */
	--section-heading-size: 2rem;
	--card-title-size: 1.5rem;   /* Post/card titles in feeds, category overlay titles (medium) */
	--section-gap: 50px;         /* Vertical space between main sections (Tune In, Latest Posts, Categories) */
	--site-max-width: 1300px;    /* Site-wide content width */
	--site-padding-x: 24px;     /* Horizontal padding: .site, header, compact header (keep in sync) */
}

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

html {
	width: 100%;
	overflow-x: hidden;
}

body {
	width: 100vw;
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--night-black);
	background: #fff;
	overflow-x: hidden;
	box-sizing: border-box;
}

a {
	color: var(--ollie-orange);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Focus ring only for keyboard (Tab); no ring on mouse click */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible {
	outline: 2px solid var(--ollie-orange);
	outline-offset: 2px;
}

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

/* Skip link: off-screen until focused (keyboard / a11y) */
.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 999999;
	padding: 0.75rem 1.25rem;
	background: var(--night-black);
	color: #fff;
	font-weight: 500;
	text-decoration: none;
	border-radius: 0.25rem;
}

.skip-link:focus-visible {
	left: 1rem;
	top: 1rem;
	outline: 2px solid var(--ollie-orange);
	outline-offset: 2px;
}

/* Visually hidden but read by screen readers (e.g. "Category:", "Date:") */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */
.site {
	width: 100%;
	max-width: var(--site-max-width);
	margin: 0 auto;
	padding: 0 var(--site-padding-x);
	box-sizing: border-box;
}

/* Same width as .site-footer and main content (direct child of .site) */
.site-header {
	width: 100%;
	box-sizing: border-box;
	padding: 1.25rem 0 1rem;
	border-bottom: 1px solid var(--pebble-gray);
}

/* Compact header: appears on scroll up, wordmark only (shrunk) */
.compact-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 0.75rem var(--site-padding-x) 0.5rem;
	background: #fff;
	border-bottom: 1px solid var(--pebble-gray);
	transform: translateY(-100%);
	visibility: hidden;
	transition: transform 0.8s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s 0.8s;
	pointer-events: none;
	overflow: visible;
}

.compact-header.is-visible {
	transform: translateY(0);
	visibility: visible;
	transition-delay: 0s;
	pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
	.compact-header {
		transition: visibility 0s 0s;
	}
	.compact-header.is-visible {
		transition: none;
	}
}

.compact-header__inner {
	display: flex;
	justify-content: center;
	align-items: center;
	max-width: var(--site-max-width);
	margin: 0 auto;
	overflow: visible;
	min-height: 3rem;
}

.compact-header__link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
}

.compact-header__link:hover {
	opacity: 0.85;
}

.compact-header__wordmark {
	display: block;
	height: 48px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
	vertical-align: top;
}

.compact-header .custom-logo {
	max-height: 48px;
	width: auto;
	height: auto;
}

body.header-dark .compact-header {
	background: var(--night-black);
	border-bottom-color: rgba(255, 255, 255, 0.15);
	margin-left: 0;
	margin-right: 0;
	width: 100%;
	box-sizing: border-box;
}

/* Admin bar offset disabled for now (was causing gap when WP admin bar hides on mobile) */
/* body.admin-bar .compact-header { top: 32px; } */
/* @media screen and (max-width: 782px) {
	body.admin-bar .compact-header { top: 46px; }
} */

/* Small viewports: pin compact header to true top (fixes Safari / mobile).
   No admin-bar offset here: on mobile the WP admin bar hides on scroll but body keeps
   .admin-bar, so top: 46px would leave a gap when the bar is hidden. */
@media screen and (max-width: 767px) {
	.compact-header {
		top: 0;
		left: 0;
		right: 0;
		width: 100%;
		margin: 0;
		-webkit-transform: translateY(-100%);
		transform: translateY(-100%);
	}
	.compact-header.is-visible {
		-webkit-transform: translateY(0);
		transform: translateY(0);
	}
}

/* Dark mode header (toggle in Customizer → Header logo → Dark mode header) – full width, logos natural color */
body.header-dark .site-header {
	position: relative;
	background: var(--night-black);
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
	/* One value only: centering offset + site padding so horizontal padding = 24px when viewport ≤ site max */
	padding-left: calc(max(0px, (100vw - var(--site-max-width)) / 2) + var(--site-padding-x));
	padding-right: calc(max(0px, (100vw - var(--site-max-width)) / 2) + var(--site-padding-x));
	box-sizing: border-box;
	border-bottom: none;
}

/* Border only under content width (same inset as padding) */
body.header-dark .site-header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: calc(max(0px, (100vw - var(--site-max-width)) / 2) + var(--site-padding-x));
	right: calc(max(0px, (100vw - var(--site-max-width)) / 2) + var(--site-padding-x));
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	pointer-events: none;
}

body.header-dark .site-header .site-title a {
	color: #fff;
}

body.header-dark .site-header .nav-menu a {
	color: #fff;
}
html.theme-dark body.header-dark .site-header .nav-menu a {
	color: var(--text);
}

body.header-dark .site-header .nav-menu a:hover {
	color: var(--ollie-orange);
}

body.header-dark .site-header .nav-menu {
	border-top-color: rgba(255, 255, 255, 0.15);
}

body.header-dark .theme-switch {
	background: rgba(255, 255, 255, 0.1);
}

/* Dark header: inactive = white with opacity */
body.header-dark .theme-switch__option[data-theme="light"],
body.header-dark .theme-switch__option[data-theme="dark"] {
	color: #fff;
	opacity: 0.4;
}

body.header-dark .theme-switch__option:hover {
	opacity: 0.6;
}

body.header-dark .theme-switch__option.is-active[data-theme="light"] {
	color: var(--ollie-orange);
	opacity: 1;
	background: rgba(255, 255, 255, 0.2);
	box-shadow: none;
}

body.header-dark .theme-switch__option.is-active[data-theme="dark"] {
	color: var(--accent-blue);
	opacity: 1;
	background: rgba(255, 255, 255, 0.2);
	box-shadow: none;
}

.site-header__inner {
	width: 100%;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

/* Mobile: top row = logo (centered) */
.site-header__top {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	width: 100%;
}

.site-branding {
	grid-column: 2;
	justify-self: center;
}

/* Theme switch: segmented pill (Light | Dark) */
/* Compact but usable: ~32px tap target (44px recommended for touch-heavy UIs) */
.theme-switch {
	display: inline-flex;
	align-items: stretch;
	background: rgba(45, 45, 45, 0.08);
	border-radius: 0;
	padding: 3px;
	gap: 0;
	min-height: 30px;
}

.theme-switch__option {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-width: 32px;
	width: 32px;
	min-height: 24px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	transition: background 0.2s ease, color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.theme-switch__icon {
	display: block;
}

/* Inactive: white with opacity (ghosted) so selected one reveals color */
.theme-switch__option[data-theme="light"],
.theme-switch__option[data-theme="dark"] {
	color: var(--night-black);
	opacity: 0.35;
}

.theme-switch__option:hover {
	opacity: 0.5;
}

.theme-switch__option.is-active[data-theme="light"] {
	background: #fff;
	color: var(--ollie-orange);
	opacity: 1;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.theme-switch__option.is-active[data-theme="dark"] {
	background: #fff;
	color: var(--accent-blue);
	opacity: 1;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.theme-switch__icon--sun svg,
.theme-switch__icon--moon svg {
	display: block;
}

/* Floating theme switch: bottom right on all pages */
/* Admin bar hide/show toggle (logged-in only); preference in localStorage */
html.admin-bar-hidden #wpadminbar {
	display: none !important;
}

.admin-bar-toggle {
	display: none;
	position: fixed;
	top: 32px;
	right: 1rem;
	z-index: 999998;
}
body.admin-bar .admin-bar-toggle {
	display: block;
}
html.admin-bar-hidden .admin-bar-toggle {
	top: 0.5rem;
}
@media screen and (max-width: 782px) {
	body.admin-bar .admin-bar-toggle {
		top: 46px;
	}
	html.admin-bar-hidden .admin-bar-toggle {
		top: 0.5rem;
	}
}

.admin-bar-toggle__btn {
	display: inline-flex;
	align-items: center;
	padding: 4px 8px;
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--night-black);
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid var(--pebble-gray);
	border-radius: 2px;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.admin-bar-toggle__btn:hover {
	background: #fff;
	color: var(--ollie-orange);
}
.admin-bar-toggle__label-show {
	display: none;
}
html.theme-dark .admin-bar-toggle__btn {
	background: rgba(33, 33, 33, 0.95);
	color: var(--text);
	border-color: var(--border-dark);
}
html.theme-dark .admin-bar-toggle__btn:hover {
	color: var(--ollie-orange);
}

.theme-switch-float {
	position: fixed;
	bottom: 1rem;
	right: 1rem;
	z-index: 99;
	transition: bottom 0.35s ease;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* When sticky player bar is visible, sit above it so the switch isn’t covered */
body.has-player-visible .theme-switch-float {
	bottom: 5.5rem;
}

/* When playlist drawer is expanded, sit above the drawer so toggles stay reachable */
body.has-player-visible.is-playlist-drawer-open .theme-switch-float {
	bottom: calc(5.5rem + 32.5vh + 3rem);
}

/* B&W thumbnails toggle (next to theme switch) */
.thumb-bw-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	padding: 6px 10px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--night-black);
	background: rgba(45, 45, 45, 0.08);
	border: none;
	border-radius: 0;
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
	transition: background 0.2s ease, color 0.2s ease;
}
.thumb-bw-toggle:hover {
	background: rgba(45, 45, 45, 0.14);
}
.thumb-bw-toggle[aria-pressed="true"] {
	background: #fff;
	color: var(--ollie-orange);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.08);
}
html.theme-dark .thumb-bw-toggle {
	color: var(--text);
	background: rgba(255, 255, 255, 0.1);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
html.theme-dark .thumb-bw-toggle:hover {
	background: rgba(255, 255, 255, 0.18);
}
html.theme-dark .thumb-bw-toggle[aria-pressed="true"] {
	background: rgba(255, 255, 255, 0.2);
	color: var(--ollie-orange);
}

.theme-switch-float .theme-switch {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

/* Light mode: sun dark, inactive moon light gray */
.theme-switch-float .theme-switch__option[data-theme="light"] {
	color: var(--night-black);
	opacity: 1;
}

.theme-switch-float .theme-switch__option[data-theme="dark"]:not(.is-active) {
	color: #aaa;
	opacity: 1;
}

/* Light mode: active segment = clear box (like dark mode’s highlight) */
.theme-switch-float .theme-switch__option.is-active[data-theme="light"],
.theme-switch-float .theme-switch__option.is-active[data-theme="dark"] {
	opacity: 1;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

html.theme-dark .theme-switch-float .theme-switch {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Dark mode: light icons on the floating switch; active still orange/blue */
html.theme-dark .theme-switch-float .theme-switch__option[data-theme="light"],
html.theme-dark .theme-switch-float .theme-switch__option[data-theme="dark"] {
	color: var(--text);
	opacity: 1;
}

html.theme-dark .theme-switch-float .theme-switch__option.is-active[data-theme="light"] {
	color: var(--ollie-orange);
}

html.theme-dark .theme-switch-float .theme-switch__option.is-active[data-theme="dark"] {
	color: var(--accent-blue);
}

.site-header__inner {
	flex-direction: column;
	align-items: stretch;
}

/* Logo centered in header (grid keeps it centered regardless of toggle/actions width) */
.site-branding {
	display: flex;
	justify-content: center;
	align-items: center;
	transform: translateY(6px);
}

/* Nav divider: same as .site-footer border-top (1px solid, full content width) */
.nav-menu {
	width: 100%;
	box-sizing: border-box;
	display: block;
	padding-top: 0.75rem;
	margin-top: 0.75rem;
	border-top: 1px solid var(--pebble-gray);
}

.nav-menu ul {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0 1rem;
	justify-content: center;
}

.nav-menu li {
	border-bottom: 0;
}

.nav-menu a {
	display: inline-block;
	padding: 0.25rem 0;
	color: var(--night-black);
	font-family: var(--font-nav);
}

.nav-menu a:hover {
	color: var(--ollie-orange);
}

/* Mobile: horizontal scroll; overflow allowed so all items can be scrolled into view */
@media (max-width: 767px) {
	.site-header .nav-menu,
	.site-header #primary-nav {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		height: auto !important;
		max-height: none !important;
		overflow-x: auto !important;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	.site-header .nav-menu ul {
		display: flex !important;
		flex-direction: row;
		flex-wrap: nowrap !important;
		gap: 0 1rem;
		justify-content: center;
		padding-bottom: 0.25rem;
		padding-left: var(--site-padding-x);
		padding-right: var(--site-padding-x);
	}

	.site-header .nav-menu li {
		flex-shrink: 0;
	}
}

/* Desktop: nav below logo, links in a horizontal row */
@media (min-width: 768px) {
	.nav-menu ul {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0 1.5rem;
		justify-content: center;
	}

	.nav-menu li {
		border-bottom: 0;
	}

	.nav-menu a {
		display: inline;
		padding: 0.25rem 0;
	}
}

/* Logo: single custom logo (Appearance → Customize → Site Identity) */
.site-branding .custom-logo-link {
	display: block;
	line-height: 0;
}

.site-branding .custom-logo {
	display: block;
	height: auto;
	max-height: 120px;
	width: auto;
	max-width: 400px;
	object-fit: contain;
}

/* Logo: separate icon + wordmark (Customize → Header logo, or theme files in assets/images/: icon.svg + wordmark.svg) */
.site-branding__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	line-height: 0;
	text-decoration: none;
}

.site-branding__link:hover {
	opacity: 0.85;
}

.site-branding__icon {
	display: block;
	height: 80px;
	width: auto;
	object-fit: contain;
}

.site-branding__wordmark {
	display: block;
	height: 95px;
	width: auto;
	max-width: 608px;
	object-fit: contain;
	margin-top: 10px;
}

.site-title {
	margin: 0;
	font-size: 1.5rem;
}

.site-title a {
	color: inherit;
}

.site-title a:hover {
	text-decoration: none;
	opacity: 0.8;
}

.site-main {
	width: 100%;
	min-width: 0;
	padding-top: var(--section-gap);
	padding-bottom: 2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	box-sizing: border-box;
}

.content-area {
	flex: 1 1 0%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

#secondary.widget-area {
	flex: 0 0 238px; /* 15% less than 280px */
}

/* Single post: top section full width; body + sidebar in a row below */
.single .site-main {
	flex-direction: column;
	width: 100%;
	min-width: 0;
	gap: 0;
}

.single-top {
	order: 1;
	flex-shrink: 0;
	width: 100%;
	max-width: 100%;
}

.single-layout {
	order: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	width: 100%;
	min-width: 0;
	margin-top: 2rem;
	padding-top: 0;
}

.single-layout .content-area {
	flex: 1 1 0%;
	min-width: 0;
	max-width: 100%;
	position: relative;
	z-index: 0;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

/* Single post: sticky sidebar wrapper (sticky on wrapper so it works reliably) */
/* Body becomes scroll container when overflow-x: hidden (overflow-y computes to auto). Force visible on single so sticky is relative to viewport. */
body.single {
	overflow: visible;
}
.single .site,
.single .site-main,
.single .single-layout {
	overflow: visible;
}

.single .single-layout .single-sidebar-sticky-wrap {
	position: -webkit-sticky;
	position: sticky;
	top: calc(1.5rem + var(--compact-header-height, 0px));
	align-self: flex-start;
	flex: 0 0 238px;
	max-height: calc(100vh - 4rem);
	overflow-y: auto;
	z-index: 1;
}

body.single.admin-bar .single-layout .single-sidebar-sticky-wrap {
	top: calc(32px + 1.5rem);
	max-height: calc(100vh - 32px - 4rem);
}

.single .single-sidebar-sticky-wrap #secondary {
	flex: none;
	width: 100%;
	min-height: 0;
}

/* Mobile: sidebar under content in a single column; extra right padding for thumb scrolling */
@media (max-width: 767px) {
	.single-layout {
		flex-direction: column;
	}
	.single-layout .content-area {
		flex: 1 1 auto;
		padding-right: 3rem;
	}
	.single .single-layout .single-sidebar-sticky-wrap {
		position: static;
		max-height: none;
		overflow-y: visible;
		flex: 0 0 auto;
		width: 100%;
	}
}

/* Page: same content layout as single (80ch, typography); no sidebar or Read More */
.page .site-main {
	flex-direction: column;
	width: 100%;
	min-width: 0;
	gap: 0;
}

.page-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	width: 100%;
	min-width: 0;
	margin-top: 2rem;
	padding-top: 0;
}

.page-layout .content-area {
	flex: 1 1 0%;
	min-width: 0;
	max-width: 100%;
	position: relative;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.page-header {
	margin-bottom: 1.5rem;
}


.page .comments-area {
	max-width: 80ch;
}

/* Direct child of .site; border-top spans full content width (same as header border-bottom) */
.site-footer {
	width: 100%;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	padding: 2rem 0;
	margin-top: 2rem;
	border-top: 1px solid var(--pebble-gray);
	font-size: 0.875rem;
	color: var(--pebble-gray);
}

/* Footer pin: same shake animation as featured post pin, theme colors */
@keyframes footer-pin-shake {
	0%, 4%, 96% { transform: rotate(25deg); }
	1% { transform: rotate(23deg); }
	2% { transform: rotate(27deg); }
	3% { transform: rotate(23deg); }
	97% { transform: rotate(23deg); }
	98% { transform: rotate(27deg); }
	99% { transform: rotate(23deg); }
	100% { transform: rotate(25deg); }
}

@keyframes footer-pin-shake-hover {
	0%, 100% { transform: rotate(25deg); }
	25% { transform: rotate(23deg); }
	50% { transform: rotate(27deg); }
	75% { transform: rotate(23deg); }
}

.site-footer-pin {
	flex-shrink: 0;
	width: 104px;
	height: 104px;
	min-width: 104px;
	max-width: 104px;
	line-height: 0;
	box-sizing: border-box;
	color: var(--night-black);
	transform: rotate(25deg);
	animation: footer-pin-shake 10s ease-in-out 2s infinite;
}

.site-footer:hover .site-footer-pin {
	animation: footer-pin-shake-hover 0.5s ease-in-out 0s 1;
}

.site-footer-pin svg {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.site-footer-pin .footer-pin__icon {
	fill: currentColor;
}

html.theme-dark .site-footer-pin {
	color: var(--text);
}

/* When sticky player is visible, add scroll room so footer can be brought above the player */
body.has-player-visible .site {
	padding-bottom: 5.5rem;
	transition: padding-bottom 0.3s ease;
}
body.has-player-visible.is-playlist-drawer-open .site {
	padding-bottom: calc(5.5rem + 32.5vh + 3rem);
}

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

.entry-title {
	margin: 0 0 0.5rem;
	font-family: var(--font-heading);
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--night-black);
}


.entry-meta {
	font-size: 0.875rem;
	color: var(--pebble-gray);
}

.entry-content {
	margin-bottom: 2rem;
}

.entry-content p {
	margin: 0 0 1rem;
}

/* Default headings: Lora, same as front page and single post */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin: 1.75rem 0 0.5rem;
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--night-black);
}

.entry-content h1 { font-size: 1.5rem; }
.entry-content h2 { font-size: 1.375rem; }
.entry-content h3 { font-size: 1.2rem; }
.entry-content h4 { font-size: 1.0625rem; }

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child,
.entry-content h4:first-child {
	margin-top: 0;
}

/* Single post/page: thumbnail and post page image; single post = 16:9, others = 4:3 */
.post-thumbnail {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--cloud-white);
	line-height: 0;
	margin-bottom: 1rem;
}

.single .post-thumbnail {
	aspect-ratio: 16 / 9;
}

.post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

html.theme-dark .post-thumbnail {
	background: #2a2a2a;
}

/* -------------------------------------------------------------------------
   Single post layout: title + category indent left, then image, content
   ------------------------------------------------------------------------- */
/* Single post: same left alignment as front page (rely on .site padding: 0 1.5rem) */
.single-article {
	margin-bottom: 3rem;
}

/* Mobile: image can touch left/right edges. Desktop: keep same margin as rest of blog */
.single-top {
	position: relative;
	z-index: 2;
	margin-bottom: 1.5rem;
}

.single-header {
	margin-bottom: 1.5rem;
}

.single-title {
	margin: 0 0 0.5rem;
	font-family: var(--font-heading);
	font-size: clamp(1.75rem, 6vw, 2.75rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--night-black);
}

@media (min-width: 768px) {
	.single-title {
		font-size: clamp(3.5rem, 8vw, 4.5rem);
	}
}

/* Category on single post – same style as front-page post cards */
.single-category {
	margin-top: 0.25rem;
}

.single-category a {
	display: inline-block;
	background: var(--night-black);
	color: var(--cloud-white);
	padding: 0.2em 0.5em;
	margin-right: 2px;
	border-radius: 0;
	text-decoration: none;
	font-size: 0.8125rem;
}

.single-category a:last-child {
	margin-right: 0;
}

.single-category a:hover {
	background: var(--night-black);
	color: var(--ollie-orange);
	animation: post-card-category-wiggle 0.5s ease-in-out 0s 1;
}

.single-thumbnail {
	margin-bottom: 0.5rem;
	overflow: hidden;
}

/* Mobile only: image bleeds to right edge; title/category/credit keep normal margins */
@media (max-width: 767px) {
	.single-thumbnail {
		width: calc(100% + (50vw - 50%));
		margin-right: calc(50% - 50vw);
	}
	.single-thumbnail img {
		width: 100%;
		height: auto;
		display: block;
	}
}

/* Row under photo: photographer (left) + tags (right) */
.single-top__meta-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem 1rem;
	margin-bottom: 1.25rem;
}

.single-top__meta-right {
	margin-left: auto;
}

.single-image-credit {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--pebble-gray);
	line-height: 1.4;
}

.single-image-credit a {
	color: inherit;
	text-decoration: underline;
}

.single-image-credit a:hover {
	color: var(--ollie-orange);
}

.single-image-tags {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.4;
	text-align: right;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	justify-content: flex-end;
}

.single-image-tags a {
	display: inline-block;
	background: transparent;
	color: var(--pebble-gray);
	padding: 0.25em 0.65em;
	border: 1px solid var(--pebble-gray);
	border-radius: 9999px;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.single-image-tags a:hover {
	border-color: var(--night-black);
	color: var(--night-black);
	animation: post-card-category-wiggle 0.5s ease-in-out 0s 1;
}

.single-byline {
	display: block;
	font-size: 0.875rem;
	color: var(--pebble-gray);
	margin-bottom: 1.5rem;
}

.single-byline__sep {
	user-select: none;
}

.single-content {
	max-width: 80ch;
	margin-left: 0;
	margin-right: 0;
	margin-bottom: 2rem;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.single-content p {
	margin: 0 0 1.25rem;
}

.single-content p:last-child {
	margin-bottom: 0;
}

.single-content a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.single-content a:hover {
	color: var(--night-black);
}

.single-content h2,
.single-content h3,
.single-content h4 {
	margin: 1.75rem 0 0.5rem;
	font-family: var(--font-heading);
	font-weight: 700;
}

.single-content h2 { font-size: 1.375rem; }
.single-content h3 { font-size: 1.2rem; }
.single-content h4 { font-size: 1.0625rem; }

.single-content ul,
.single-content ol {
	margin: 0 0 1.25rem;
	padding-left: 1.5rem;
}

.single-content li {
	margin-bottom: 0.35rem;
}

.single-content blockquote {
	margin: 1.5rem 0;
	padding-left: 1rem;
	border-left: 3px solid var(--ollie-orange);
	color: var(--pebble-gray);
	font-style: italic;
}

.single-footer {
	padding-top: 1rem;
	border-top: 1px solid var(--pebble-gray);
	font-size: 0.875rem;
	color: var(--pebble-gray);
	margin-bottom: 2rem;
}

.single-footer__label {
	margin-right: 0.35rem;
}

.single-footer a {
	color: var(--pebble-gray);
	text-decoration: none;
}

.single-footer a:hover {
	color: var(--ollie-orange);
	text-decoration: underline;
}

.single .post-navigation {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.single .comments-area {
	max-width: 80ch;
}

/* Comments section (after article, before Read More) – no top border; list items provide dividers */
.single-comments-section {
	width: 100%;
	margin-top: 2.5rem;
	padding-top: 0;
}

/* Dark mode single */
html.theme-dark .single-title {
	color: var(--text);
}

html.theme-dark .single-category a {
	background: rgba(255, 255, 255, 0.075);
	color: var(--text);
}

html.theme-dark .single-category a:hover {
	background: rgba(255, 255, 255, 0.105);
	color: var(--ollie-orange);
}

html.theme-dark .single-footer a {
	color: var(--text-muted);
}

html.theme-dark .single-footer a:hover {
	color: var(--ollie-orange);
}

html.theme-dark .single-footer {
	border-top-color: var(--text-muted);
}

html.theme-dark .single-image-credit {
	color: var(--text-muted);
}

html.theme-dark .single-image-credit a:hover {
	color: var(--ollie-orange);
}

html.theme-dark .single-image-tags a {
	background: transparent;
	border-color: var(--border-dark);
	color: var(--text-muted);
}

html.theme-dark .single-image-tags a:hover {
	border-color: var(--text);
	color: var(--ollie-orange);
}

html.theme-dark .widget-area--single,
html.theme-dark .widget-area--single .widget-title,
html.theme-dark .widget-area--single .sidebar-posts-list a {
	color: var(--text);
}

html.theme-dark .widget-area--single .sidebar-posts-list a:hover {
	color: var(--ollie-orange);
}

html.theme-dark .widget-area--single .sidebar-posts-list__date {
	color: var(--text-muted);
}

html.theme-dark .widget-area--single .sidebar-posts-list li + li {
	border-top-color: var(--border-dark);
}

html.theme-dark .read-more-posts,
html.theme-dark .read-more-posts__title,
html.theme-dark .read-more-posts__card a {
	color: var(--text);
}
html.theme-dark .read-more-posts {
	border-top-color: var(--border-dark);
}
html.theme-dark .read-more-posts__card-date {
	color: var(--text-muted);
}
html.theme-dark .read-more-posts__thumb,
html.theme-dark .read-more-posts__placeholder {
	background: #2a2a2a;
}

/* -------------------------------------------------------------------------
   Navigation (base; layout overridden in header mobile/desktop block above)
   ------------------------------------------------------------------------- */
.nav-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
}

/* Nav link color set in header block (.nav-menu a → accent-blue) */

/* -------------------------------------------------------------------------
   Sidebar
   ------------------------------------------------------------------------- */
.widget {
	margin-bottom: 2rem;
}

.widget-title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
}

/* Single post sidebar: Latest Posts + Same Category – Lora + black, like front-page */
.widget-area--single {
	font-family: var(--font-heading);
	color: var(--night-black);
	font-size: 1.0625rem;
}

.widget-area--single .widget-title {
	color: var(--night-black);
	font-size: 1.25rem;
	font-weight: 600;
}

.widget-area--single .sidebar-posts-list a {
	color: var(--night-black);
	font-size: 1.0625rem;
}

.widget-area--single .widget {
	margin-bottom: 2rem;
}

.widget-area--single .widget:last-child {
	margin-bottom: 0;
}

.sidebar-posts-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar-posts-list li {
	margin: 0 0 1rem;
	padding: 0;
}

.sidebar-posts-list li + li {
	border-top: 1px solid var(--pebble-gray);
	margin-top: 1rem;
	padding-top: 1rem;
}

.sidebar-posts-list a {
	display: block;
	font-size: 0.9375rem;
	line-height: 1.35;
	text-decoration: none;
}

.sidebar-posts-list__title {
	display: block;
}

.sidebar-posts-list__date {
	display: block;
	font-size: 0.8125rem;
	color: var(--pebble-gray);
	margin-top: 0.2em;
	font-weight: 400;
}

.widget-area--single .sidebar-posts-list a:hover .sidebar-posts-list__date {
	color: inherit;
	opacity: 0.85;
}

.widget-area--single .sidebar-posts-list a:hover {
	color: var(--ollie-orange);
	text-decoration: underline;
}

/* Read More (below single post content, after comments): row of 4 cards with 4:3 thumbnails */
.read-more-posts {
	margin-top: 2.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--pebble-gray);
	font-family: var(--font-heading);
	color: var(--night-black);
}

.read-more-posts__title {
	margin: 0 0 1.25rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--night-black);
}

.read-more-posts__grid {
	display: flex;
	flex-wrap: nowrap;
	gap: 1.25rem;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	padding-bottom: 0.25rem;
	padding-right: 0.5rem;
}

.read-more-posts__grid::-webkit-scrollbar {
	height: 6px;
}

.read-more-posts__grid::-webkit-scrollbar-track {
	background: var(--pebble-gray);
	opacity: 0.2;
	border-radius: 3px;
}

.read-more-posts__grid::-webkit-scrollbar-thumb {
	background: var(--pebble-gray);
	border-radius: 3px;
}

.read-more-posts__card {
	margin: 0;
	flex: 0 0 auto;
	min-width: 0; /* allow flex item to shrink below img intrinsic size */
	width: 160px;
	max-width: 240px;
	scroll-snap-align: start;
}

@media (min-width: 640px) {
	.read-more-posts__card {
		width: 200px;
		min-width: 200px;
	}
}

.read-more-posts__card a {
	display: block;
	text-decoration: none;
	color: var(--night-black);
	min-width: 0; /* let inner content shrink with card */
}

.read-more-posts__card a:hover .read-more-posts__card-title {
	color: var(--ollie-orange);
	text-decoration: underline;
}

.read-more-posts__thumb {
	position: relative;
	width: 100%;
	min-width: 0; /* allow thumb to shrink with card */
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--pebble-gray);
	line-height: 0;
	margin-bottom: 0.5rem;
}

.read-more-posts__thumb .read-more-posts__img,
.read-more-posts__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.read-more-posts__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--pebble-gray);
}

.read-more-posts__card-title {
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
}

.read-more-posts__card-date {
	display: block;
	font-size: 0.8125rem;
	color: var(--pebble-gray);
	margin-top: 0.2em;
	font-weight: 400;
}

.read-more-posts__card a:hover .read-more-posts__card-date {
	color: inherit;
	opacity: 0.85;
}

/* -------------------------------------------------------------------------
   Comments – stripped back: count, Add Comment (underline), minimal list
   ------------------------------------------------------------------------- */
.comments-area {
	margin-top: 0.5rem;
}

.comments-title {
	font-family: var(--font-heading);
	font-size: var(--section-heading-size);
	font-weight: 700;
	color: var(--night-black);
	margin: 0 0 1rem;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

@media (min-width: 768px) {
	.comments-title {
		font-size: 2rem;
		margin-bottom: 1.25rem;
	}
}

/* Add Comment: single underlined line; focus = solid line, placeholder "Add Comment" */
.add-comment-bar {
	margin-bottom: 1.25rem;
}

.add-comment-form-container .comment-respond,
.add-comment-form-container .comment-form {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
}

.add-comment-form-container .comment-form .comment-form-comment label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.add-comment-form-container .comment-form .comment-form-comment textarea {
	width: 100%;
	min-height: 1.6rem;
	padding: 0.15rem 0 0 0;
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 0.8;
	color: var(--night-black);
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 0;
	resize: none;
	transition: border-color 0.2s ease;
	display: block;
}
.add-comment-form-container .comment-form .comment-form-comment textarea::placeholder {
	line-height: 0.8;
	color: rgba(0, 0, 0, 0.4);
}

.add-comment-form-container .comment-form .comment-form-comment textarea:focus {
	outline: 0;
	border-bottom-color: var(--night-black);
}
.add-comment-form-container .comment-form .comment-form-comment textarea:focus::placeholder {
	color: var(--pebble-gray);
}

.add-comment-form-container .comment-form .comment-form-author,
.add-comment-form-container .comment-form .comment-form-email {
	margin-top: 0.75rem;
}

.add-comment-form-container .comment-form .comment-form-comment,
.add-comment-form-container .comment-form .comment-form-author,
.add-comment-form-container .comment-form .comment-form-email,
.add-comment-form-container .comment-form .comment-form-url {
	margin-bottom: 0.75rem;
}

.add-comment-form-container .comment-form label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--pebble-gray);
	margin-bottom: 0.25rem;
}

.add-comment-form-container .comment-form input[type="text"],
.add-comment-form-container .comment-form input[type="email"],
.add-comment-form-container .comment-form input[type="url"] {
	width: 100%;
	max-width: 100%;
	padding: 0.4rem 0;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--night-black);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--pebble-gray);
	border-radius: 0;
	box-sizing: border-box;
}

.add-comment-form-container .comment-form input:focus {
	outline: 0;
	border-bottom-color: var(--night-black);
}

.add-comment-form-container .comment-form .form-submit {
	margin: 1rem 0 0;
}

.add-comment-form-container .comment-form .form-submit input[type="submit"] {
	display: inline-block;
	padding: 0.5rem 1rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	color: #fff;
	background: var(--night-black);
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: background 0.2s ease;
}

.add-comment-form-container .comment-form .form-submit input[type="submit"]:hover {
	background: var(--ollie-orange);
}

/* Minimal comment list: avatar left, username + comment inline in one row */
.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list--minimal > li,
.comment-list--minimal .children > li {
	margin-bottom: 0;
	border-bottom: 1px solid var(--pebble-gray);
}

.comment-list--minimal .children {
	list-style: none;
	margin: 0.5rem 0 0 calc(40px + 0.75rem);
	padding: 0;
}

.comment-body--minimal {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	padding: 0.75rem 0;
}

.comment-body--minimal .comment-avatar {
	flex-shrink: 0;
}

.comment-body--minimal .comment-avatar .avatar {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.comment-body--minimal .comment-body__inner {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.5rem;
}

.comment-body--minimal .comment-author {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--night-black);
}

.comment-body--minimal .comment-text {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--night-black);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	text-overflow: ellipsis;
}

.comment-body--minimal .comment-text p {
	margin: 0;
}

/* Reply box: shared + inline (below comment when replying) */
.reply-box.is-hidden {
	display: none !important;
	padding: 0 !important;
	margin: 0 !important;
	min-height: 0 !important;
	overflow: hidden !important;
	border: none !important;
}
.reply-box.is-hidden *,
.reply-box.is-hidden .reply-form .comment-form-comment textarea,
.reply-box.is-hidden .reply-form input {
	border: none !important;
	border-bottom: none !important;
}
.reply-box.is-hidden .reply-form .comment-form-comment,
.reply-box.is-hidden .reply-form p {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
}
.reply-box {
	padding: 0 0 1rem 0;
}
.reply-box--inline {
	margin-top: 0.25rem;
	margin-left: calc(40px + 0.75rem); /* align with comment text (avatar + gap) */
	padding-top: 0;
}
.reply-box .reply-form {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
}
.reply-box .reply-form .comment-form-comment {
	margin-top: 0;
	margin-bottom: 0;
}
.reply-box .reply-form .comment-form-comment label,
.reply-box .reply-form .comment-form-comment label.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
.reply-box .reply-form .comment-form-comment textarea,
.reply-box .reply-form input[type="text"],
.reply-box .reply-form input[type="email"] {
	width: 100%;
	max-width: 100%;
	padding: 0.4rem 0;
	margin: 0 0 0.75rem 0;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--night-black);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--pebble-gray);
	border-radius: 0;
	box-sizing: border-box;
}
.reply-box .reply-form .comment-form-comment textarea {
	min-height: 1.6rem;
	padding: 0.15rem 0 0 0;
	margin: 0;
	font-size: 1rem;
	line-height: 0.8;
	resize: none;
}
.reply-box .reply-form .comment-form-comment textarea::placeholder {
	line-height: 0.8;
	color: var(--pebble-gray);
}
.reply-box .reply-form textarea:focus,
.reply-box .reply-form input:focus {
	outline: 0;
	border-bottom-color: var(--night-black);
}
.reply-box .reply-form .form-submit {
	margin: 1rem 0 0;
}
.reply-box .reply-form .form-submit .submit {
	display: inline-block;
	padding: 0.5rem 1rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	color: #fff;
	background: var(--night-black);
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: background 0.2s ease;
}
.reply-box .reply-form .form-submit .submit:hover {
	background: var(--ollie-orange);
}
.reply-box__cancel {
	margin: 0.75rem 0 0;
}
.reply-box__cancel .cancel-reply {
	display: inline-block;
	font-size: 0.8125rem;
	line-height: 0.8;
	color: var(--pebble-gray);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.reply-box__cancel .cancel-reply:hover {
	color: var(--night-black);
	border-bottom-color: var(--night-black);
}

.reply-box__guest-message {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--pebble-gray);
}
.reply-box__guest-message a {
	color: var(--night-black);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.reply-box__guest-message a:hover {
	color: var(--ollie-orange);
	border-bottom-color: var(--ollie-orange);
}

/* Reply dropdown: form moves below comment when Reply is clicked */
.reply-dropdown {
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	border-top: 1px solid var(--pebble-gray);
}
.reply-dropdown .comment-respond {
	margin: 0;
}
.reply-dropdown .comment-form .comment-form-comment textarea {
	min-height: 1.6rem;
	padding: 0.15rem 0 0 0;
	border-bottom: 1px solid var(--pebble-gray);
}
.reply-dropdown .comment-form .comment-form-comment textarea:focus {
	border-bottom-color: var(--night-black);
}
.reply-dropdown #cancel-comment-reply-link,
.reply-dropdown .cancel-reply {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.8125rem;
	line-height: 0.8;
	color: var(--pebble-gray);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.reply-dropdown #cancel-comment-reply-link:hover,
.reply-dropdown .cancel-reply:hover {
	color: var(--night-black);
	border-bottom-color: var(--night-black);
}

/* Reply link – minimal, similar to Add Comment underline feel */
.comment-body--minimal .comment-reply-link {
	display: inline-block;
	font-size: 0.8125rem;
	line-height: 0.8;
	color: var(--pebble-gray);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.comment-body--minimal .comment-reply-link:hover {
	color: var(--night-black);
	border-bottom-color: var(--night-black);
}

/* Global comment form fallbacks (e.g. when not in add-comment bar) */
.comment-form .comment-form-comment label,
.comment-form .comment-form-author label,
.comment-form .comment-form-email label {
	display: block;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--night-black);
	margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.5rem 0.75rem;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--night-black);
	background: #fff;
	border: 1px solid var(--pebble-gray);
	border-radius: 0;
	box-sizing: border-box;
}

.comment-form textarea:focus,
.comment-form input:focus {
	border-color: var(--ollie-orange);
}

/* Reusable sections (template-parts) */
/* Section headings: Lora, xx-large feel, centered, night-black (e.g. "Latest Posts", "Featured Categories") */
.section-heading {
	font-family: var(--font-heading);
	font-size: var(--section-heading-size);
	font-weight: 700;
	font-style: normal;
	color: var(--night-black);
	text-align: left;
	margin: 0 0 1rem;
	line-height: 1.3;
}

@media (min-width: 768px) {
	.section-heading {
		font-size: 2rem;
	}
}

.section { margin-bottom: 2rem; }
.section__inner { max-width: 60ch; }
.section__title {
	margin: 0 0 0.5rem;
	font-family: var(--font-heading);
	font-size: var(--section-heading-size);
	font-weight: 700;
	color: var(--night-black);
	text-align: left;
}
.section__text { margin: 0; color: var(--pebble-gray); }

.hero { margin-bottom: 2rem; padding: 2rem; background: var(--cloud-white); }
.hero__inner { max-width: 60ch; }
.hero__title {
	margin: 0 0 0.5rem;
	font-family: var(--font-heading);
	font-size: var(--section-heading-size);
	font-weight: 700;
	color: var(--night-black);
	text-align: left;
}
.hero__text { margin: 0; color: var(--pebble-gray); }

/* Post loop (blog index, latest posts sections) – grid: 1 col mobile, 2 tablet, 3 desktop */
.post-loop {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-bottom: var(--section-gap);
}

/* Front page: reduce bottom margin on Latest Posts loop only */
body.home .content-area > .post-loop {
	margin-bottom: 25px;
}

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

@media (min-width: 1024px) {
	.post-loop {
		grid-template-columns: repeat(3, 1fr);
	}
}

.post-card {
	margin: 0;
	position: relative;
}

/* Pin icon on sticky (featured) posts in the grid – sticker look with circle behind */
@keyframes post-card-pin-shake {
	0%, 4%, 96% { transform: rotate(-15deg); }
	1% { transform: rotate(-17deg); }
	2% { transform: rotate(-13deg); }
	3% { transform: rotate(-17deg); }
	97% { transform: rotate(-17deg); }
	98% { transform: rotate(-13deg); }
	99% { transform: rotate(-17deg); }
	100% { transform: rotate(-15deg); }
}

@keyframes post-card-pin-shake-hover {
	0%, 100% { transform: rotate(-15deg); }
	25% { transform: rotate(-17deg); }
	50% { transform: rotate(-13deg); }
	75% { transform: rotate(-17deg); }
}

.post-card-pin {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	width: 4.47rem;
	height: 4.47rem;
	z-index: 1;
	line-height: 0;
	transform: rotate(-15deg);
	animation: post-card-pin-shake 10s ease-in-out 2s infinite;
}

.post-card--featured:hover .post-card-pin {
	animation: post-card-pin-shake-hover 0.5s ease-in-out 0s 1;
}

.post-card-pin::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	z-index: 0;
	background: var(--cloud-white);
}

.post-card-pin svg {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	display: block;
}

/* Dark post image: white circle sticker + dark (night-black) icon, with stroke to thicken */
.post-card-pin .post-card-pin__icon {
	fill: var(--night-black);
	stroke: var(--night-black);
	stroke-width: 3;
	stroke-linejoin: round;
	stroke-linecap: round;
	paint-order: stroke fill;
}

/* Light post image: black circle sticker + white icon */
.post-card--light-thumb .post-card-pin::before {
	background: var(--night-black);
}

.post-card--light-thumb .post-card-pin .post-card-pin__icon {
	fill: var(--cloud-white);
	stroke: var(--cloud-white);
	stroke-width: 3;
	stroke-linejoin: round;
	stroke-linecap: round;
	paint-order: stroke fill;
}

/* Dark mode: same sticker contrast, theme hue (linen-white for light, night-black for dark) */
html.theme-dark .post-card-pin::before {
	background: var(--text);
}

html.theme-dark .post-card-pin .post-card-pin__icon {
	fill: var(--night-black);
	stroke: var(--night-black);
}

html.theme-dark .post-card--light-thumb .post-card-pin::before {
	background: var(--night-black);
}

html.theme-dark .post-card--light-thumb .post-card-pin .post-card-pin__icon {
	fill: var(--text);
	stroke: var(--text);
}

/* Categories section (front page) – add items via filter in functions.php */
.categories-section {
	margin-bottom: 75px;
}

.categories-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.categories-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.category-item {
	display: block;
	text-decoration: none;
	color: #fff;
}

.category-item:hover .category-item__title,
.category-item:hover .category-item__description {
	color: #fff;
	opacity: 0.95;
}

.category-item__image-wrap {
	display: block;
	position: relative;
	aspect-ratio: 4 / 0.75;
	overflow: hidden;
	background: var(--night-black);
}

.category-item__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.category-item__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 1rem 1.25rem;
	background: linear-gradient( to top, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100% );
}

.category-item__title {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: var(--card-title-size);
	line-height: 1.2;
	color: #fff;
	margin: 0;
}

.category-item__description {
	font-family: var(--font-body);
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.9);
	margin: 0.25rem 0 0;
}

/* The Canalway (front page): dark section, single horizontal row of 4 posts. Same width as other sections (within .content-area). */
.canalway-section {
	position: relative;
	margin-top: var(--section-gap);
	margin-bottom: var(--section-gap);
	padding: 3rem 0;
	color: #f5f5e8;
	font-weight: 400;
	--text-muted: #b8b8a8; /* Same as dark mode so meta/date act like elsewhere */
	width: 100%;
	min-width: 0; /* allow section to shrink below post-loop min width so page doesn't overflow */
	max-width: 100%;
	box-sizing: border-box;
}

/* Inner wrapper clips horizontal overflow (post-loop scroll) so ::before/::after can extend full-bleed */
.canalway-section__inner {
	position: relative;
	z-index: 0;
	overflow-x: hidden;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.canalway-section::before {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	top: 0;
	bottom: 0;
	background: var(--night-black);
	z-index: -2;
}

.canalway-section::after {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	top: 0;
	bottom: 0;
	background-image: url(assets/images/other/canalway-section-texture.png);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	pointer-events: none;
	z-index: -1;
}

.canalway-section .section-heading {
	color: #f5f5e8;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.canalway-section__description {
	font-family: var(--font-body);
	font-size: 0.8125rem;
	color: var(--text-muted);
	margin: 0 0 1.5rem;
}

.canalway-section .post-loop {
	display: flex;
	flex-wrap: nowrap;
	gap: 1.5rem;
	margin-bottom: 0;
	min-width: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.canalway-section .post-loop .post-card {
	flex: 1 1 0;
	min-width: 220px;
}

.canalway-section a {
	color: var(--ollie-orange);
}

.canalway-section a:hover {
	color: #ff9f5c;
}

.canalway-section .post-card__title a {
	color: #f5f5e8;
	font-weight: 600;
}

.canalway-section .post-card__title a:hover {
	color: var(--ollie-orange);
}

.canalway-section .post-card__meta,
.canalway-section .post-card__meta .post-card__date,
.canalway-section .post-card__date {
	color: var(--text-muted);
}

.canalway-section .post-card__excerpt {
	color: var(--text-muted);
}

.canalway-section .post-card__categories a {
	background: rgba(255, 255, 255, 0.075);
	color: #f5f5e8;
}

.canalway-section .post-card__categories a:hover {
	background: rgba(255, 255, 255, 0.105);
	color: var(--ollie-orange);
}

.canalway-section .post-card__thumbnail--4-3 {
	background: #2a2a2a;
}

/* Canalway thumbnails: always B&W (same as toggle style, not controlled by button) */
.canalway-section .post-card__thumbnail .post-card__img,
.canalway-section .post-card__thumbnail img {
	filter: grayscale(1) contrast(1.25);
	transition: filter 0.25s ease;
}

.canalway-section .post-card__thumbnail:hover .post-card__img,
.canalway-section .post-card__thumbnail:hover img {
	filter: none;
}

/* Canalway tags: same box style as category, but blue; no commas (separator is space) */
.canalway-section .post-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.canalway-section .post-card__tags a {
	color: var(--accent-blue);
	text-decoration: none;
	font-size: 0.8125rem;
}

.canalway-section .post-card__tags a:hover {
	color: var(--ollie-orange);
}

/* Player block / hero playlists (moved from template-parts/player-block.php inline styles) */
/* Player uses theme variables from style.css (--ollie-orange, --night-black, --pebble-gray, etc.) */
.hero-playlists-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 100%;
    margin: 0 0 75px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}
.hero-playlists-row .hero-section {
    flex: 1;
    min-width: 320px;
    margin: 0;
    max-width: none;
}
.hero-section {
    width: 100%;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    overflow-x: hidden;
}
/* Mobile: stack cover on top, title/track below for bigger cover and side-by-side playlists */
@media (max-width: 768px) {
    .hero-playlists-row .hero-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-width: 200px;
    }
    .hero-playlists-row .hero-section .hero-content {
        width: 100%;
    }
}

.hero-album-cover {
    position: relative;
    width: 280px;
    min-width: 280px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 0;
    overflow: hidden;
    background: var(--night-black);
}
.hero-album-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.9'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    opacity: 0.5;
    mix-blend-mode: overlay;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.hero-album-cover img,
.hero-album-cover .hero-cover-svg-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.hero-album-cover img {
    object-fit: cover;
    display: block;
    vertical-align: middle;
}
.hero-album-cover .hero-cover-svg-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
/* Prevent vinyl from drifting after orientation/resize: containment */
.hero-cover-svg-wrap {
    transform: translateZ(0);
    backface-visibility: hidden;
}
/* Only the vinyl hero (playlist) spins when playlist is the active source */
.page-with-sticky-player.hero-is-playing.is-source-playlist .hero-cover-svg-wrap #Vinyl {
    transform-origin: 50% 50%;
    animation: vinyl-spin 3s linear infinite;
}
.page-with-sticky-player.hero-is-spin-down .hero-cover-svg-wrap #Vinyl {
    transform-origin: 50% 50%;
    transition: transform 2.2s cubic-bezier(0.33, 0, 0.2, 1);
}
@keyframes vinyl-spin {
    to { transform: rotate(360deg); }
}

/* Radio player section (same layout as hero) */
.hero-section--radio .hero-album-cover { background: var(--night-black); }
.radio-cover-svg-wrap svg { width: 100%; height: 100%; display: block; object-fit: cover; }
/* Speaker rings: expand/shrink from center only; no dx/dy (transform-box + origin so position never moves) */
.radio-cover-svg-wrap #left-inner-speaker,
.radio-cover-svg-wrap #left-outer-speaker,
.radio-cover-svg-wrap #right-inner-speaker,
.radio-cover-svg-wrap #right-outer-speaker {
    transform-box: fill-box;
    transform-origin: 50% 50%;
}
/* Headphones: only width/height (scale) change; path "d" unchanged, connection axis stays put */
.radio-cover-svg-wrap #left-headphone,
.radio-cover-svg-wrap #right-headphone {
    transform-box: fill-box;
}
/* Left: origin at right edge (headband) so only size changes, no dx */
.radio-cover-svg-wrap #left-headphone {
    transform-origin: 100% 50%;
}
/* Right: origin at left edge (headband) so only size changes, no dx */
.radio-cover-svg-wrap #right-headphone {
    transform-origin: 0% 50%;
}
/* Only the radio hero animates when radio is the active source */
.page-with-sticky-player.hero-is-playing.is-source-radio .radio-cover-svg-wrap.beat-a #left-inner-speaker,
.page-with-sticky-player.hero-is-playing.is-source-radio .radio-cover-svg-wrap.beat-b #left-outer-speaker,
.page-with-sticky-player.hero-is-playing.is-source-radio .radio-cover-svg-wrap.beat-c #right-inner-speaker,
.page-with-sticky-player.hero-is-playing.is-source-radio .radio-cover-svg-wrap.beat-d #right-outer-speaker,
.page-with-sticky-player.hero-is-playing.is-source-radio .radio-cover-svg-wrap.beat-e #left-headphone,
.page-with-sticky-player.hero-is-playing.is-source-radio .radio-cover-svg-wrap.beat-f #right-headphone {
    animation: speaker-punch-1 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
}
@keyframes speaker-punch-1 {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.07); }
    30% { transform: scale(1); }
}

.hero-album-cover img[src=""] {
    display: none;
}
.hero-album-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 33%;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}
/* Show overlay on hover (JS adds --visible), or always on touch so play is tappable */
.hero-album-play-overlay.hero-album-play-overlay--visible {
    opacity: 1;
}
@media (hover: none) {
    .hero-album-play-overlay {
        opacity: 1;
    }
}
/* When playing, overlay is hidden by default but still appears on hover so user can pause */
.page-with-sticky-player.hero-is-playing .hero-album-play-overlay {
    opacity: 0;
}
.page-with-sticky-player.hero-is-playing .hero-album-cover:hover .hero-album-play-overlay {
    opacity: 1;
}
/* Show overlay when play button has focus (keyboard / a11y) so it's visible when tabbing */
.hero-album-play-overlay:focus-within {
    opacity: 1;
}
.page-with-sticky-player.hero-is-playing .hero-album-play-overlay:focus-within {
    opacity: 1;
}
.hero-album-play-btn {
    width: 64px;
    height: 64px;
    border-radius: 0;
    background: var(--night-black);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, transform 0.18s ease;
}
.hero-album-play-btn:hover {
    background: var(--ollie-orange);
    transform: scale(1.08);
}
.hero-album-play-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    margin-left: 4px;
}
.hero-album-play-btn.is-playing svg {
    margin-left: 0;
}

.hero-section-header {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0 1.5rem;
}

.hero-section-title {
    font-family: 'Lora', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--night-black);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.hero-section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--pebble-gray);
    margin: 0;
}

.hero-content {
    flex: 1;
    padding-top: 4px;
    min-width: 0;
}

.hero-build-note {
    font-size: 11px;
    color: var(--ollie-orange);
    font-weight: 500;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.hero-tag {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: var(--night-black);
    padding: 4px 12px;
    border-radius: 0;
    letter-spacing: 0.03em;
}

.hero-headline {
    font-family: 'Lora', serif;
    font-size: clamp(20px, 2vw, 32px);
    font-weight: 700;
    color: var(--night-black);
    line-height: 1.1;
    margin: 0 0 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.hero-headline-artist {
    font-family: 'Lora', serif;
    font-size: clamp(16px, 1.8vw, 26px);
    font-weight: 400;
    font-style: italic;
    color: var(--pebble-gray);
    margin: 0 0 8px;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-section-intro {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--night-black);
    margin: 0 0 4px;
}

.hero-section-desc {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--pebble-gray);
    margin: 0 0 12px;
}

.hero-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--pebble-gray);
    border-bottom: 1px solid var(--pebble-gray);
    width: 100%;
}

/* Fixed width so title/artist loading doesn’t shift the hamburger or other controls */
.sticky-player-now-playing {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    width: 240px;
    min-width: 240px;
    box-sizing: border-box;
}
.sticky-player-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    background: var(--pebble-gray);
    flex-shrink: 0;
    transition: width 0.25s ease, height 0.25s ease;
}
.sticky-player-bar.is-playlist-open .sticky-player-thumb {
    width: 72px;
    height: 72px;
}
.sticky-player-thumb[src=""] {
    opacity: 0.4;
}
.sticky-player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}
.sticky-player-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--night-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sticky-player-artist {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--pebble-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sticky player bar (fixed to bottom); grows upward when playlist drawer is open */
.sticky-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-top: 1px solid var(--pebble-gray);
    transform: translateY(100%);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.sticky-player-bar.is-visible {
    transform: translateY(0);
}
.sticky-player-bar .hero-player {
    max-width: 1200px;
    margin: 0 auto;
    border: none;
    padding: 1rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
    transition: padding 0.25s ease;
}
.sticky-player-bar.is-playlist-open .hero-player {
    padding: 1.25rem 1.5rem;
}

.sticky-player-playlist-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--night-black);
    -webkit-tap-highlight-color: transparent;
}
.sticky-player-playlist-btn:hover {
    color: var(--ollie-orange);
}
.sticky-player-playlist-btn__icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Drawer is first in bar; bar grows upward when open */
.sticky-player-playlist-drawer {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    transition: max-height 0.3s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.sticky-player-bar.is-playlist-open .sticky-player-playlist-drawer {
    max-height: 32.5vh;
    border-bottom-color: transparent;
    box-shadow: none;
}
.sticky-player-playlist-drawer__inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 1rem 1.5rem 1.25rem;
    overflow-y: auto;
    max-height: 32.5vh;
    box-sizing: border-box;
}
.sticky-player-playlist-drawer__title {
    font-family: var(--font-nav);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pebble-gray);
    margin: 0 0 0.75rem;
}
.sticky-player-playlist-tracks {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sticky-player-playlist-tracks li {
    margin: 0;
    padding: 0;
}
.sticky-player-playlist-track {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0;
    border: none;
    width: 100%;
    background: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    color: var(--night-black);
    -webkit-tap-highlight-color: transparent;
    border-radius: 0;
}
.sticky-player-playlist-track:hover {
    color: var(--ollie-orange);
}
.sticky-player-playlist-track.is-current {
    color: var(--ollie-orange);
    font-weight: 600;
}
.sticky-player-playlist-track__index {
    flex-shrink: 0;
    width: 24px;
    font-size: 12px;
    color: var(--pebble-gray);
}
.sticky-player-playlist-track.is-current .sticky-player-playlist-track__index {
    color: var(--ollie-orange);
}
.sticky-player-playlist-track__label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .sticky-player-bar .hero-player {
        padding: 0.75rem 1rem;
    }
    .sticky-player-bar.is-playlist-open .hero-player {
        padding: 1rem 1rem;
    }
    .sticky-player-bar.is-playlist-open .sticky-player-thumb {
        width: 60px;
        height: 60px;
    }
    .sticky-player-playlist-drawer__inner {
        padding: 1rem 1rem 1.25rem;
    }
}
@media (max-width: 480px) {
    .sticky-player-bar .hero-player {
        padding: 0.5rem 0.75rem;
    }
    .sticky-player-bar.is-playlist-open .hero-player {
        padding: 0.75rem 0.75rem;
    }
    .sticky-player-bar.is-playlist-open .sticky-player-thumb {
        width: 56px;
        height: 56px;
    }
    .sticky-player-playlist-drawer__inner {
        padding: 0.75rem 0.75rem 1rem;
    }
}

.hero-player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.hero-skip-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity .15s ease;
    -webkit-tap-highlight-color: transparent;
}
.hero-skip-btn:hover { opacity: 1; }
.hero-skip-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--night-black);
}

.hero-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: var(--night-black);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease, transform .18s ease;
    flex-shrink: 0;
}
.hero-play-btn:hover {
    background: var(--ollie-orange);
    transform: scale(1.05);
}
.hero-play-btn svg {
    width: 16px;
    height: 16px;
    fill: #fff;
    margin-left: 2px;
}
.hero-play-btn.is-playing svg {
    margin-left: 0;
}

.hero-progress-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-progress-wrap input[type=range] {
    flex: 1;
    accent-color: var(--night-black);
    cursor: pointer;
    height: 2px;
}
.hero-time {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--pebble-gray);
    flex-shrink: 0;
    min-width: 32px;
    text-align: center;
}

.hero-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.hero-volume svg {
    width: 16px;
    height: 16px;
    fill: var(--pebble-gray);
}
.hero-volume input[type=range] {
    width: 70px;
    accent-color: var(--night-black);
    cursor: pointer;
    height: 2px;
}

#yt-iframe-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-section-header {
        padding: 0 0 1.25rem;
    }
    .hero-playlists-row {
        padding: 0;
    }
    .hero-section {
        gap: 1.25rem;
        padding: 0;
        margin-top: 0;
    }
    .hero-album-cover {
        width: 200px;
        min-width: 200px;
    }
    .hero-album-play-btn {
        width: 52px;
        height: 52px;
    }
    .hero-album-play-btn svg {
        width: 20px;
        height: 20px;
        margin-left: 3px;
    }
    .hero-volume {
        display: flex;
        width: 80px;
        min-width: 80px;
    }
    .hero-volume input[type=range] {
        width: 56px;
    }
}

@media (max-width: 600px) {
    .hero-section {
        margin-top: 1rem;
        gap: 0.75rem;
        padding: 0;
    }
    .hero-playlists-row { padding: 0; }
    .hero-playlists-row .hero-section { margin-top: 0; min-width: 160px; }
    .hero-album-cover {
        width: 160px;
        min-width: 160px;
    }
    .hero-album-play-btn {
        width: 44px;
        height: 44px;
    }
    .hero-album-play-btn svg {
        width: 16px;
        height: 16px;
        margin-left: 2px;
    }
    .hero-content {
        min-width: 0;
    }
    .hero-section-header {
        padding: 0 0 1rem;
    }
    .hero-section-title {
        font-size: 15px;
        margin-bottom: 0;
    }
    .hero-section-subtitle {
        font-size: 11px;
    }
    .hero-tags {
        gap: 4px;
        margin-bottom: 6px;
    }
    .hero-tag {
        font-size: 10px;
        padding: 2px 6px;
    }
    .hero-headline {
        font-size: clamp(14px, 4vw, 18px);
        line-height: 1.2;
        margin-bottom: 2px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .hero-headline-artist {
        font-size: clamp(12px, 3.5vw, 15px);
        margin-bottom: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .hero-player {
        gap: 8px;
        padding: 10px 0;
    }
    .hero-play-btn {
        width: 36px;
        height: 36px;
    }
    .hero-play-btn svg {
        width: 12px;
        height: 12px;
    }
    .hero-progress-wrap {
        gap: 6px;
    }
    .hero-time {
        font-size: 10px;
        min-width: 24px;
    }
}

@media (max-width: 480px) {
    .hero-playlists-row { padding: 0; }
    .hero-section {
        padding: 0;
        margin-top: 0.75rem;
        gap: 0.625rem;
    }
    .hero-playlists-row .hero-section { margin-top: 0; min-width: 140px; }
    .hero-album-cover {
        width: 140px;
        min-width: 140px;
    }
    .hero-album-play-btn {
        width: 36px;
        height: 36px;
    }
    .hero-album-play-btn svg {
        width: 14px;
        height: 14px;
        margin-left: 2px;
    }
    .hero-section-header {
        padding: 0 0 0.75rem;
    }
    .hero-section-title {
        font-size: 13px;
    }
    .hero-section-subtitle {
        font-size: 10px;
    }
    .hero-tags {
        margin-bottom: 4px;
    }
    .hero-tag {
        font-size: 9px;
        padding: 2px 5px;
    }
    .hero-headline {
        font-size: clamp(13px, 3.8vw, 16px);
    }
    .hero-headline-artist {
        font-size: clamp(11px, 3.2vw, 14px);
        margin-bottom: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .hero-player {
        padding: 8px 0;
        gap: 6px;
    }
    .hero-play-btn {
        width: 32px;
        height: 32px;
    }
    .hero-play-btn svg {
        width: 10px;
        height: 10px;
    }
    .hero-skip-btn {
        padding: 6px;
    }
    .hero-skip-btn svg {
        width: 14px;
        height: 14px;
    }
    .hero-time {
        font-size: 9px;
        min-width: 22px;
    }
    .hero-progress-wrap {
        gap: 4px;
    }
}

/* End Player block */


/* Playlist cards: animate only the one that is currently playing */
body.player-is-playing .hero-section--playlist-card.is-now-playing[data-animation="vinyl"] .hero-album-cover,
body.player-is-playing .hero-section--playlist-card.is-now-playing[data-animation="vinyl"] .hero-album-cover img,
body.player-is-playing .hero-section--playlist-card.is-now-playing[data-animation="vinyl"] .hero-album-cover .hero-cover-placeholder {
	animation: playlist-card-spin 3s linear infinite;
}
@keyframes playlist-card-spin {
	to { transform: rotate(360deg); }
}

body.player-is-playing .hero-section--playlist-card.is-now-playing[data-animation="radio"] .hero-album-cover,
body.player-is-playing .hero-section--playlist-card.is-now-playing[data-animation="radio"] .hero-album-cover img,
body.player-is-playing .hero-section--playlist-card.is-now-playing[data-animation="radio"] .hero-album-cover .hero-cover-placeholder {
	animation: playlist-card-pulse 1.2s ease-in-out infinite;
}
@keyframes playlist-card-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.03); }
}

.hero-section--playlist-card .hero-album-cover,
.hero-section--playlist-card .hero-album-cover img,
.hero-section--playlist-card .hero-album-cover .hero-cover-placeholder {
	transform-origin: 50% 50%;
}

/* Thumbnail: 4:3 aspect ratio, image covers box */
.post-card__thumbnail {
	margin-bottom: 0.75rem;
	line-height: 0;
}

.post-card__thumbnail--4-3 {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--cloud-white);
}

.post-card__thumbnail--4-3:focus-within {
	overflow: visible;
}

.post-card__thumbnail--4-3 a {
	display: block;
	width: 100%;
	height: 100%;
}

.post-card__thumbnail .post-card__img,
.post-card__thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Optional: black & white, high-contrast post thumbnails (toggle via .thumb-bw on body) */
body.thumb-bw .post-card__thumbnail .post-card__img,
body.thumb-bw .post-card__thumbnail img,
body.thumb-bw .post-thumbnail img {
	filter: grayscale(1) contrast(1.25);
	transition: filter 0.25s ease;
}
body.thumb-bw .post-card__thumbnail:hover .post-card__img,
body.thumb-bw .post-card__thumbnail:hover img,
body.thumb-bw .post-thumbnail:hover img {
	filter: none;
}

/* Title (line after thumbnail) */
.post-card__title {
	margin: 0 0 0.35rem;
	font-size: var(--card-title-size);
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.3;
}

.post-card__title a {
	color: var(--night-black);
}

.post-card__title a:hover {
	color: var(--ollie-orange);
}

/* Category + date on one row */
.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 0.5rem;
	font-size: 0.875rem;
	color: var(--pebble-gray);
	margin-bottom: 0.35rem;
}

.post-card__categories a {
	display: inline-block;
	background: var(--night-black);
	color: #fff;
	padding: 0.2em 0.5em;
	margin-right: 2px;
	border-radius: 0;
	text-decoration: none;
	font-size: 0.8125rem;
}

.post-card__categories a:last-child {
	margin-right: 0;
}

.post-card__categories a:hover {
	background: var(--night-black);
	color: var(--ollie-orange);
}

@keyframes post-card-category-wiggle {
	0%, 100% { transform: rotate(0deg); }
	25% { transform: rotate(2deg); }
	50% { transform: rotate(-2deg); }
	75% { transform: rotate(2deg); }
}

.post-card__categories a:hover {
	animation: post-card-category-wiggle 0.5s ease-in-out 0s 1;
}

.post-card__sep {
	opacity: 0.7;
}

.post-card__meta .post-card__date {
	color: var(--pebble-gray);
}

.post-card__meta a:not(.post-card__categories a) {
	color: var(--pebble-gray);
}

.post-card__meta a:not(.post-card__categories a):hover {
	color: var(--ollie-orange);
}

/* Tags (next line) */
.post-card__tags {
	font-size: 0.8125rem;
	color: var(--ollie-orange);
}

.post-card__tags a {
	color: var(--ollie-orange);
}

.post-card__tags a:hover {
	color: var(--night-black);
}

/* Summary/excerpt below tags: max 3 lines, then ellipsis; same color as date/meta */
.post-card__excerpt {
	margin-top: 0.5rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--pebble-gray);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.post-card__excerpt p:last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   Dark theme (night mode) – toggled by theme button, reverses whole site.
   Customizer "Dark Header" = dark bar; unchecked = "Light Header" = light bar.
   ------------------------------------------------------------------------- */
html.theme-dark {
	--bg: var(--night-black);   /* Match dark header */
	--linen-white: #f5f5e8;     /* Light cream off-white (dark mode main text) */
	--text: var(--linen-white);
	--text-muted: #b8b8a8;      /* Slightly warmer muted (cream-tinted) */
	--border-dark: rgba(255, 255, 255, 0.12);
}

html.theme-dark body {
	background: var(--bg);
	color: var(--text);
	font-weight: 400;
}

html.theme-dark a {
	color: var(--ollie-orange);
}

html.theme-dark a:hover {
	color: #ff9f5c;
}

/* Header is unchanged by theme toggle – only Customizer "Dark Header" / "Light Header" controls it */

/* Content */
html.theme-dark .entry-meta,
html.theme-dark .section__text,
html.theme-dark .hero__text {
	color: var(--text-muted);
}

html.theme-dark .section-heading,
html.theme-dark .section__title,
html.theme-dark .hero__title,
html.theme-dark .entry-title,
html.theme-dark .post-card__title a {
	color: var(--text);
}

html.theme-dark .entry-content h1,
html.theme-dark .entry-content h2,
html.theme-dark .entry-content h3,
html.theme-dark .entry-content h4 {
	color: var(--text);
}

html.theme-dark .post-card__excerpt {
	color: var(--text-muted);
}
html.theme-dark .section-heading,
html.theme-dark .section__title,
html.theme-dark .hero__title,
html.theme-dark .entry-title,
html.theme-dark .single-title,
html.theme-dark .post-card__title a {
	font-weight: 600;
}

html.theme-dark .entry-content h1,
html.theme-dark .entry-content h2,
html.theme-dark .entry-content h3,
html.theme-dark .entry-content h4 {
	font-weight: 600;
}

html.theme-dark .post-card__title a:hover {
	color: var(--ollie-orange);
}

html.theme-dark .post-card__meta,
html.theme-dark .post-card__meta .post-card__date,
html.theme-dark .post-card__meta a:not(.post-card__categories a) {
	color: var(--text-muted);
}

html.theme-dark .post-card__categories a {
	background: rgba(255, 255, 255, 0.075);
	color: var(--text);
}

html.theme-dark .post-card__categories a:hover {
	background: rgba(255, 255, 255, 0.105);
	color: var(--ollie-orange);
}

html.theme-dark .post-card__thumbnail--4-3 {
	background: #2a2a2a;
}

html.theme-dark .site-footer {
	border-top-color: var(--border-dark);
	color: var(--text-muted);
}

/* Categories section: overlay text on photos → cream in dark mode */
html.theme-dark .category-item__title,
html.theme-dark .category-item__description {
	color: var(--text);
}
html.theme-dark .category-item:hover .category-item__title,
html.theme-dark .category-item:hover .category-item__description {
	color: var(--text);
	opacity: 0.95;
}

html.theme-dark .comments-title {
	color: var(--text);
}


/* Add Comment underline in dark mode */
html.theme-dark .add-comment-form-container .comment-form .comment-form-comment textarea,
html.theme-dark .add-comment-form-container .comment-form input[type="text"],
html.theme-dark .add-comment-form-container .comment-form input[type="email"],
html.theme-dark .add-comment-form-container .comment-form input[type="url"] {
	color: var(--text);
	background: transparent;
	border-bottom-color: var(--border-dark);
}

html.theme-dark .add-comment-form-container .comment-form .comment-form-comment textarea::placeholder {
	color: var(--text-muted);
}

html.theme-dark .add-comment-form-container .comment-form .comment-form-comment textarea:focus {
	border-bottom-color: var(--text);
}

/* Reply box in dark mode */
html.theme-dark .reply-box .reply-form .comment-form-comment textarea,
html.theme-dark .reply-box .reply-form input[type="text"],
html.theme-dark .reply-box .reply-form input[type="email"] {
	color: var(--text);
	border-bottom-color: var(--border-dark);
}
html.theme-dark .reply-box .reply-form textarea::placeholder,
html.theme-dark .reply-box .reply-form input::placeholder {
	color: var(--text-muted);
}
html.theme-dark .reply-box .reply-form textarea:focus,
html.theme-dark .reply-box .reply-form input:focus {
	border-bottom-color: var(--text);
}
html.theme-dark .reply-box .reply-form .form-submit .submit {
	background: rgba(255, 255, 255, 0.075);
	color: var(--text);
}
html.theme-dark .reply-box .reply-form .form-submit .submit:hover {
	background: rgba(255, 255, 255, 0.105);
	color: var(--ollie-orange);
}
html.theme-dark .reply-box__cancel .cancel-reply {
	color: var(--text-muted);
}
html.theme-dark .reply-box__cancel .cancel-reply:hover {
	color: var(--text);
	border-bottom-color: var(--text);
}
html.theme-dark .reply-box__guest-message {
	color: var(--text-muted);
}
html.theme-dark .reply-box__guest-message a:hover {
	color: var(--ollie-orange);
	border-bottom-color: var(--ollie-orange);
}

/* Minimal comment list dark */
html.theme-dark .reply-dropdown {
	border-top-color: var(--border-dark);
}
html.theme-dark .reply-dropdown .comment-form .comment-form-comment textarea {
	border-bottom-color: var(--border-dark);
}
html.theme-dark .reply-dropdown .comment-form .comment-form-comment textarea:focus {
	border-bottom-color: var(--text);
}
html.theme-dark .reply-dropdown #cancel-comment-reply-link {
	color: var(--text-muted);
}
html.theme-dark .reply-dropdown #cancel-comment-reply-link:hover {
	color: var(--text);
	border-bottom-color: var(--text);
}

html.theme-dark .comment-list--minimal > li,
html.theme-dark .comment-list--minimal .children > li {
	border-bottom-color: var(--border-dark);
}

html.theme-dark .comment-body--minimal .comment-author,
html.theme-dark .comment-body--minimal .comment-text {
	color: var(--text);
}

html.theme-dark .comment-body--minimal .comment-reply-link {
	color: var(--text-muted);
}
html.theme-dark .comment-body--minimal .comment-reply-link:hover {
	color: var(--text);
	border-bottom-color: var(--text);
}

/* Comment form fallback dark */
html.theme-dark .comment-form label {
	color: var(--text);
}

html.theme-dark .comment-form input[type="text"],
html.theme-dark .comment-form input[type="email"],
html.theme-dark .comment-form input[type="url"],
html.theme-dark .comment-form textarea {
	color: var(--text);
	background: rgba(255, 255, 255, 0.08);
	border-color: var(--border-dark);
}

html.theme-dark .comment-form input::placeholder,
html.theme-dark .comment-form textarea::placeholder {
	color: var(--text-muted);
	opacity: 0.9;
}

html.theme-dark .comment-form input:focus,
html.theme-dark .comment-form textarea:focus {
	border-color: var(--ollie-orange);
}

html.theme-dark .comment-form .form-submit input[type="submit"] {
	background: rgba(255, 255, 255, 0.075);
	color: var(--text);
	border-color: transparent;
}

html.theme-dark .comment-form .form-submit input[type="submit"]:hover {
	background: rgba(255, 255, 255, 0.105);
	color: var(--ollie-orange);
	border-color: transparent;
}

/* Player section and sticky bar in dark theme */
html.theme-dark .hero-headline,
html.theme-dark .hero-headline-artist {
	color: var(--text);
}

html.theme-dark .hero-headline-artist {
	color: var(--text-muted);
}

html.theme-dark .hero-section-intro {
	color: var(--text);
}

html.theme-dark .hero-section-desc {
	color: var(--text-muted);
}

html.theme-dark .sticky-player-bar {
	background: var(--bg);
	border-top-color: var(--border-dark);
}

html.theme-dark .hero-player {
	border-top-color: var(--border-dark);
	border-bottom-color: var(--border-dark);
}

html.theme-dark .hero-time {
	color: var(--text-muted);
}

html.theme-dark .sticky-player-title {
	color: var(--text);
}

html.theme-dark .sticky-player-artist {
	color: var(--text-muted);
}

html.theme-dark .hero-skip-btn svg,
html.theme-dark .hero-volume svg {
	fill: var(--text-muted);
}

/* Player seek and volume bars: orange in dark mode */
html.theme-dark .hero-progress-wrap input[type="range"],
html.theme-dark .hero-volume input[type="range"] {
	accent-color: var(--ollie-orange);
}

/* Playlist drawer (hamburger menu) in dark mode */
html.theme-dark .sticky-player-playlist-drawer {
	background: var(--bg);
	border-bottom-color: var(--border-dark);
}
html.theme-dark .sticky-player-playlist-drawer__title {
	color: var(--text-muted);
}
html.theme-dark .sticky-player-playlist-track {
	color: var(--text);
}
html.theme-dark .sticky-player-playlist-track:hover,
html.theme-dark .sticky-player-playlist-track.is-current {
	color: var(--ollie-orange);
}
html.theme-dark .sticky-player-playlist-track__index {
	color: var(--text-muted);
}
html.theme-dark .sticky-player-playlist-btn {
	color: var(--text);
}
html.theme-dark .sticky-player-playlist-btn:hover {
	color: var(--ollie-orange);
}

/* Playlist drawer scrollbar in dark mode */
html.theme-dark .sticky-player-playlist-drawer__inner {
	scrollbar-color: rgba(255, 255, 255, 0.35) rgba(255, 255, 255, 0.1);
}
html.theme-dark .sticky-player-playlist-drawer__inner::-webkit-scrollbar {
	width: 8px;
}
html.theme-dark .sticky-player-playlist-drawer__inner::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.1);
}
html.theme-dark .sticky-player-playlist-drawer__inner::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.35);
	border-radius: 4px;
}
html.theme-dark .sticky-player-playlist-drawer__inner::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.5);
}
