/**
 * PressFlow — Custom Styles
 *
 * Only styles that cannot be achieved through theme.json.
 * Design philosophy: clean, minimal, sharp. No excess.
 */

/* -----------------------------------------------
   1. Screen Reader Text
   ----------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	block-size: 1px;
	inline-size: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--wp--preset--color--white);
	clip: auto !important;
	clip-path: none;
	color: var(--wp--preset--color--primary);
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	block-size: auto;
	inline-size: auto;
	inset-inline-start: 5px;
	inset-block-start: 5px;
	line-height: normal;
	padding: 12px 20px;
	text-decoration: none;
	z-index: 100000;
}

/* -----------------------------------------------
   4. Reading Progress Bar (CSS only, single posts)
   ----------------------------------------------- */
@supports (animation-timeline: scroll()) {
	body.single-post::before {
		content: "";
		position: fixed;
		inset-block-start: 0;
		inset-inline: 0;
		block-size: 3px;
		background-color: var(--wp--preset--color--accent);
		transform: scaleX(0);
		transform-origin: 0 50%;
		z-index: 10000;
		animation: pressflow-reading-progress linear both;
		animation-timeline: scroll(root block);
	}

	@keyframes pressflow-reading-progress {
		to { transform: scaleX(1); }
	}
}

/* Smooth scrolling for in-page links such as "Back to top" */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* -----------------------------------------------
   16. Live Badge
   ----------------------------------------------- */
.pressflow-live-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
	padding: 2px 8px;
	border-radius: 2px;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.pressflow-live-badge::before {
	content: "";
	display: inline-block;
	inline-size: 6px;
	block-size: 6px;
	background-color: var(--wp--preset--color--white);
	border-radius: var(--wp--preset--border-radius--full);
	animation: pressflow-pulse 1.5s infinite;
}

@keyframes pressflow-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
	.pressflow-live-badge::before {
		animation: none;
	}
}

/* -----------------------------------------------
   17. Contrast Preferences
   ----------------------------------------------- */
@media (prefers-contrast: more) {
	:root {
		--wp--preset--color--divider: #666;
		--wp--preset--color--muted: #444;
	}

	*:focus-visible {
		outline-width: 3px !important;
	}
}

/* -----------------------------------------------
   19. Post List Numbered Counter
   ----------------------------------------------- */
.pressflow-numbered-list {
	counter-reset: post-number;
}

.pressflow-numbered-list .wp-block-post {
	counter-increment: post-number;
}

.pressflow-numbered-item::before {
	content: counter(post-number);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--wp--preset--color--accent);
	min-inline-size: 1.5rem;
	letter-spacing: -0.02em;
}

/* -----------------------------------------------
   21. Global Polish
   ----------------------------------------------- */

/* Smooth font rendering */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Clean image rendering */
img {
	image-rendering: auto;
}

/* Navigation link transitions */
.wp-block-navigation a {
	text-decoration: none;
	transition: color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-navigation a {
		transition: none;
	}
}

/* Clean separator defaults */
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	max-inline-size: 100%;
}

/* -----------------------------------------------
   22. Professional Link Hover Effects
   ----------------------------------------------- */

/* Post title links — underline on hover */
.wp-block-post-title a {
	text-decoration: none;
	transition: color 0.2s ease;
}

.wp-block-post-title a:hover,
.wp-block-post-title a:focus-visible {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

/* Category/term links — subtle opacity + color shift */
.wp-block-post-terms a {
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.wp-block-post-terms a:hover {
	opacity: 0.75;
}

/* Footer links — underline slide-in on hover */
.pressflow-footer-list a {
	text-decoration: none;
	position: relative;
	transition: color 0.2s ease;
}

.pressflow-footer-list a::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-end: -2px;
	inline-size: 0;
	block-size: 1px;
	background-color: currentColor;
	transition: inline-size 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pressflow-footer-list a:hover::after {
	inline-size: 100%;
}

/* Site footer general link styles */
.site-footer a {
	text-decoration: none;
	transition: color 0.2s ease;
}

/* Footer CTA button — glow on hover */
.pressflow-footer-cta .wp-block-button__link:hover {
	box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

/* Content links — accent underline */
.entry-content a,
.wp-block-post-content a {
	text-decoration-color: var(--wp--preset--color--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.entry-content a:hover,
.wp-block-post-content a:hover {
	text-decoration-color: currentColor;
}

/* Button hover — subtle shadow only, no movement */
.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	opacity: 0.9;
}

/* Outline button hover — fill on hover */
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

/* Image hover — subtle brightness shift, no layout movement */
.wp-block-post-featured-image {
	overflow: hidden;
}

.wp-block-post-featured-image img {
	transition: opacity 0.3s ease;
}

.wp-block-post-featured-image:hover img {
	opacity: 0.85;
}

/* Social links hover */
.wp-block-social-links .wp-social-link {
	transition: opacity 0.2s ease;
}

.wp-block-social-links .wp-social-link:hover {
	opacity: 0.7;
}

/* Navigation current page indicator */
.wp-block-navigation-item.current-menu-item > a,
.wp-block-navigation-item.current-menu-ancestor > a {
	color: var(--wp--preset--color--accent);
}

.pressflow-category-nav .wp-block-navigation-item.current-menu-item a,
.pressflow-category-nav .wp-block-navigation-item.current-menu-ancestor a,
.pressflow-category-nav .wp-block-navigation-item a[aria-current="page"] {
	color: var(--wp--preset--color--accent);
	border-block-end-color: var(--wp--preset--color--accent);
	background-color: var(--wp--preset--color--surface);
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-post-title a,
	.wp-block-post-terms a,
	.pressflow-footer-list a,
	.pressflow-footer-list a::after,
	.site-footer a,
	.entry-content a,
	.wp-block-post-content a,
	.wp-element-button,
	.wp-block-button__link,
	.wp-block-post-featured-image img,
	.wp-block-social-links .wp-social-link {
		transition: none;
	}

	.wp-element-button:hover,
	.wp-block-button__link:hover,
	.wp-block-post-featured-image:hover img,
	.wp-block-social-links .wp-social-link:hover,
	.pressflow-footer-cta .wp-block-button__link:hover {
		transform: none;
	}
}

/* -----------------------------------------------
   23. Footer Column Spacing Polish
   ----------------------------------------------- */
.site-footer .wp-block-columns {
	align-items: flex-start;
}

/* Remove WP core block gap on footer template part */
footer.wp-block-template-part {
	margin-block-start: 0;
}

/* Footer social icons — brighter on dark bg */
.site-footer .wp-block-social-links .wp-social-link {
	transition: opacity 0.2s ease;
}

.site-footer .wp-block-social-links .wp-social-link:hover {
	opacity: 1;
}

/* Footer link lists (Categories and Page List blocks) */
.pressflow-footer-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding-inline-start: 0;
}

.pressflow-footer-list.is-inline {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.pressflow-footer-list ul {
	display: none;
}

.pressflow-footer-list a {
	text-decoration: none;
}

.pressflow-footer-search .wp-block-search__input {
	font-size: 0.875rem;
}

.pressflow-footer-search .wp-block-search__button {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

/* Quote: logical properties so the accent border flips in RTL */
.wp-block-quote {
	border-inline-start: 2px solid var(--wp--preset--color--primary);
	padding-inline-start: var(--wp--preset--spacing--40);
}

/* -----------------------------------------------
   24. Horizontal Post Layout — Fixed Image Sizing
   ----------------------------------------------- */
.pressflow-horizontal-post .wp-block-post-featured-image {
	flex-shrink: 0;
	inline-size: 180px;
	min-inline-size: 180px;
}

.pressflow-horizontal-post .wp-block-post-featured-image img {
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* Compact post thumbnails (hero sidebar) */
.pressflow-compact-post .wp-block-post-featured-image {
	flex-shrink: 0;
	inline-size: 110px;
	min-inline-size: 110px;
}

.pressflow-compact-post .wp-block-post-featured-image img {
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* Search result thumbnails */
.pressflow-search-result .wp-block-post-featured-image {
	flex-shrink: 0;
	inline-size: 300px;
	min-inline-size: 300px;
}

.pressflow-search-result .wp-block-post-featured-image img {
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* -----------------------------------------------
   25. Premium Header — 5-Row News Header
   ----------------------------------------------- */

/* Header wrapper — refined shadow for depth */
.site-header {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
	position: relative;
	z-index: 100;
}

header.wp-block-template-part {
	margin-block-start: 0;
}

/* --- Row 1: Utility Bar — Ultra-clean dark strip --- */
.pressflow-topbar {
	border-block-end: 1px solid rgba(255, 255, 255, 0.04);
}

.pressflow-topbar .wp-block-social-links {
	gap: 0;
}

.pressflow-topbar-date {
	white-space: nowrap;
}

/* --- Row 2: Brand Bar --- */
.pressflow-brand-bar {
	position: relative;
}

/* Logo — serif nameplate, confident and clean */
.pressflow-logo-group {
	flex-shrink: 0;
	white-space: nowrap;
}

.pressflow-logo-group .wp-block-site-title,
.pressflow-logo-group .wp-block-site-title a {
	font-family: var(--wp--preset--font-family--system-serif, Georgia, "Times New Roman", serif);
}

/* Wide search bar */
.pressflow-header-search-wide {
	flex: 1 1 0%;
	max-inline-size: 420px;
	margin-inline: auto;
}

.pressflow-header-search-wide .wp-block-search__inside-wrapper {
	border: 1px solid var(--wp--preset--color--divider);
	border-radius: var(--wp--preset--border-radius--small);
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pressflow-header-search-wide .wp-block-search__inside-wrapper:focus-within {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06);
	background: var(--wp--preset--color--white);
}

.pressflow-header-search-wide .wp-block-search__input {
	border: none;
	background: transparent;
	font-size: 0.875rem;
	padding: 10px 16px;
	color: var(--wp--preset--color--on-surface);
}

.pressflow-header-search-wide .wp-block-search__input:focus {
	outline: none;
}

.pressflow-header-search-wide .wp-block-search__input:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: -2px;
}

.pressflow-header-search-wide .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--muted);
}

.pressflow-header-search-wide .wp-block-search__button {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	border: none;
	padding: 10px 14px;
	cursor: pointer;
	transition: background-color 0.15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.pressflow-header-search-wide .wp-block-search__button:hover {
	background-color: var(--wp--preset--color--secondary);
}

.pressflow-header-search-wide .wp-block-search__button:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.pressflow-header-search-wide .wp-block-search__button svg {
	fill: currentColor;
	inline-size: 18px;
	block-size: 18px;
}

/* --- Row 3: Main Navigation — White BG with Accent Border --- */
.pressflow-main-nav {
	position: relative;
	z-index: 20;
}

/* Navigation links — dark text, accent underline + bg highlight on hover */
.pressflow-category-nav .wp-block-navigation-item a {
	display: block;
	padding: 12px 18px;
	color: var(--wp--preset--color--on-surface);
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
	border-block-end: 3px solid transparent;
	margin-block-end: -1px;
	white-space: nowrap;
}

.pressflow-category-nav .wp-block-navigation-item a:hover {
	color: var(--wp--preset--color--accent);
	border-block-end-color: var(--wp--preset--color--accent);
	background-color: var(--wp--preset--color--surface);
}

.pressflow-category-nav .wp-block-navigation-item.current-menu-item a {
	color: var(--wp--preset--color--accent);
	border-block-end-color: var(--wp--preset--color--accent);
	background-color: var(--wp--preset--color--surface);
}

@keyframes pressflow-live-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.3; }
}

/* --- Row 4: Just In Ticker Bar --- */
.pressflow-ticker-bar {
	overflow: hidden;
}

.pressflow-ticker-label {
	white-space: nowrap;
	flex-shrink: 0;
	color: var(--wp--preset--color--accent);
	position: relative;
	padding-inline-start: 14px;
}

/* Pulsing dot before "Just In" */
.pressflow-ticker-label::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 50%;
	transform: translateY(-50%);
	inline-size: 6px;
	block-size: 6px;
	background-color: var(--wp--preset--color--accent);
	border-radius: 50%;
	animation: pressflow-live-pulse 2s ease-in-out infinite;
}

.pressflow-ticker-wrap {
	overflow: hidden;
	flex: 1;
	min-inline-size: 0;
}

/*
 * Headlines come from a Query Loop (one link per post). The list enters from
 * the inline-end edge and scrolls until it has fully left the strip; the
 * negative delay means it is already on screen when the page loads.
 */
.pressflow-ticker-content.wp-block-post-template {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--wp--preset--spacing--40);
	inline-size: max-content;
	margin: 0;
	padding: 0;
	padding-inline-start: 100%;
	list-style: none;
	white-space: nowrap;
	animation: pressflow-ticker 45s linear -12s infinite;
}

.pressflow-ticker-content:hover,
.pressflow-ticker-content:focus-within {
	animation-play-state: paused;
}

.pressflow-ticker-content > li {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
	margin: 0;
}

/* Small decorative dot between headlines */
.pressflow-ticker-content > li + li::before {
	content: "";
	inline-size: 4px;
	block-size: 4px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--divider);
}

.pressflow-ticker-content .wp-block-post-title {
	margin: 0;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.5;
}

.pressflow-ticker-content a {
	color: var(--wp--preset--color--on-surface);
	text-decoration: none;
	transition: color 0.15s ease;
}

.pressflow-ticker-content a:hover {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

.pressflow-ticker-content a:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

@keyframes pressflow-ticker {
	0% { transform: translateX(0); }
	100% { transform: translateX(-100%); }
}

/* --- Row 5: Hot Topics Strip --- */
.pressflow-hot-topics {
	overflow: hidden;
}

.pressflow-hot-label {
	white-space: nowrap;
	flex-shrink: 0;
	color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--accent);
	padding: 2px 8px;
	border-radius: 3px;
	line-height: 1.4;
}

.pressflow-hot-link {
	white-space: nowrap;
}

.pressflow-hot-link a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	padding: 3px 10px;
	border: 1px solid var(--wp--preset--color--divider);
	border-radius: 9999px;
	display: inline-block;
	transition: all 0.15s ease;
	line-height: 1.4;
}

.pressflow-hot-link a:hover {
	color: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	background-color: var(--wp--preset--color--surface);
}

.pressflow-hot-link a:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* --- Header Responsive --- */

@media (max-width: 1100px) {
	/* Nav horizontal scroll at intermediate widths */
	.pressflow-main-nav {
		overflow-x: auto;
		scrollbar-width: none;
	}
}

@media (max-width: 782px) {
	.pressflow-header-search-wide {
		display: none;
	}

	/* Below the tablet breakpoint the menu lives in the overlay */
	.pressflow-main-nav.wp-block-group {
		display: none;
	}

	.pressflow-brand-bar {
		border-block-end: 3px solid var(--wp--preset--color--accent);
	}

	.pressflow-hot-topics.wp-block-group {
		display: none;
	}
}

@media (max-width: 600px) {
	.pressflow-topbar.wp-block-group {
		display: none;
	}

	/* Nav scrolls horizontally */
	.pressflow-main-nav {
		overflow-x: auto;
		scrollbar-width: none;
	}

	/* Ticker hides on mobile */
	.pressflow-ticker-bar.wp-block-group {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pressflow-category-nav .wp-block-navigation-item a,
	.pressflow-header-search-wide .wp-block-search__inside-wrapper,
	.pressflow-header-search-wide .wp-block-search__button,
	.pressflow-hot-link a,
	.pressflow-ticker-content a {
		transition: none;
	}

	.pressflow-ticker-label::before {
		animation: none;
	}

	.pressflow-ticker-content.wp-block-post-template {
		inline-size: auto;
		padding-inline-start: 0;
		animation: none;
		flex-wrap: wrap;
		white-space: normal;
	}
}

/* -----------------------------------------------
   26. Article Content Typography (Serif Body)
   ----------------------------------------------- */

/* Article body — serif font for professional news reading */
.pressflow-article-content .wp-block-post-content {
	font-family: var(--wp--preset--font-family--system-serif);
	font-size: 1.125rem;
	line-height: 1.75;
	letter-spacing: 0.003em;
	color: var(--wp--preset--color--on-surface);
}

/* Paragraphs — editorial spacing (matches NYT/Guardian density) */
.pressflow-article-content .wp-block-post-content p {
	font-family: var(--wp--preset--font-family--system-serif);
	line-height: 1.75;
	margin-block-start: 0;
	margin-block-end: 1.25em;
}

/* Remove bottom margin on last element */
.pressflow-article-content .wp-block-post-content > *:last-child {
	margin-block-end: 0;
}

/* Drop cap — only when an editor enables it on a paragraph in a post */
.single-post .wp-block-post-content p.has-drop-cap:not(:focus)::first-letter {
	font-family: var(--wp--preset--font-family--system-serif);
	float: inline-start;
	font-size: 3.25em;
	font-style: normal;
	font-weight: 700;
	line-height: 0.82;
	margin: 0.04em 0 0;
	padding-inline-end: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}

/* Headings within articles — switch back to sans-serif */
.pressflow-article-content .wp-block-post-content h2,
.pressflow-article-content .wp-block-post-content h3,
.pressflow-article-content .wp-block-post-content h4,
.pressflow-article-content .wp-block-post-content h5,
.pressflow-article-content .wp-block-post-content h6 {
	font-family: var(--wp--preset--font-family--system-sans);
}

.pressflow-article-content .wp-block-post-content > h2 {
	margin-block-start: 2em;
	margin-block-end: 0.5em;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.pressflow-article-content .wp-block-post-content > h3 {
	margin-block-start: 1.75em;
	margin-block-end: 0.4em;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.015em;
}

.pressflow-article-content .wp-block-post-content > h4,
.pressflow-article-content .wp-block-post-content > h5,
.pressflow-article-content .wp-block-post-content > h6 {
	margin-block-start: 1.5em;
	margin-block-end: 0.35em;
	font-weight: 700;
	line-height: 1.35;
}

/* Lists within articles */
.pressflow-article-content .wp-block-post-content ul,
.pressflow-article-content .wp-block-post-content ol {
	padding-inline-start: 1.5em;
	margin-block-end: 1.5em;
}

.pressflow-article-content .wp-block-post-content li {
	margin-block-end: 0.5em;
	line-height: 1.8;
}

.pressflow-article-content .wp-block-post-content li:last-child {
	margin-block-end: 0;
}

/* Figures / images with captions */
.pressflow-article-content .wp-block-post-content .wp-block-image {
	margin-block: 1.75em;
}

.pressflow-article-content .wp-block-post-content figcaption {
	margin-block-start: 0.5rem;
	font-family: var(--wp--preset--font-family--system-sans);
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted);
	line-height: 1.5;
}

/* Blockquotes — elegant serif italic */
.pressflow-article-content .wp-block-post-content blockquote {
	margin-block: 1.5em;
	font-size: 1.1875rem;
	line-height: 1.65;
	font-style: italic;
}

.pressflow-article-content .wp-block-post-content .wp-block-pullquote {
	margin-block: 1.75em;
}

.pressflow-article-content .wp-block-post-content .wp-block-pullquote p {
	font-size: 1.25rem;
	line-height: 1.55;
	font-style: italic;
}

/* Code blocks — monospace, back to sans feel */
.pressflow-article-content .wp-block-post-content .wp-block-code {
	margin-block: 2em;
	font-size: 0.875rem;
	line-height: 1.6;
}

/* Inline code within serif text */
.pressflow-article-content .wp-block-post-content code {
	font-family: var(--wp--preset--font-family--monospace);
	font-size: 0.875em;
	background-color: var(--wp--preset--color--surface);
	padding: 0.1em 0.35em;
	border-radius: 3px;
}

/* Table styling */
.pressflow-article-content .wp-block-post-content .wp-block-table table {
	border-collapse: collapse;
	inline-size: 100%;
}

.pressflow-article-content .wp-block-post-content .wp-block-table th,
.pressflow-article-content .wp-block-post-content .wp-block-table td {
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--divider);
	text-align: start;
}

.pressflow-article-content .wp-block-post-content .wp-block-table th {
	background-color: var(--wp--preset--color--surface);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.pressflow-article-content .wp-block-post-content .wp-block-table tr:nth-child(even) td {
	background-color: var(--wp--preset--color--surface);
}

/* -----------------------------------------------
   27. Comments Section — Full Redesign
   ----------------------------------------------- */

/* Comments section container */
.pressflow-comments-section {
	border-block-start: 1px solid var(--wp--preset--color--divider);
}

/* Comment items */
.pressflow-comment .wp-block-avatar img {
	border: 1.5px solid var(--wp--preset--color--divider);
}

/* Comment reply link */
.pressflow-comment .wp-block-comment-reply-link a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.pressflow-comment .wp-block-comment-reply-link a:hover {
	color: var(--wp--preset--color--accent);
}

/* --- Comment Form --- */

/* Form container */
.wp-block-post-comments-form {
	margin-block-start: var(--wp--preset--spacing--30);
	padding-block-start: var(--wp--preset--spacing--30);
	border-block-start: 1px solid var(--wp--preset--color--divider);
}

/* "Leave a Reply" heading */
.wp-block-post-comments-form .comment-reply-title {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--muted);
	margin-block-end: var(--wp--preset--spacing--30);
}

/* Cancel reply link */
.wp-block-post-comments-form .comment-reply-title small a {
	font-size: 0.6875rem;
	text-transform: none;
	letter-spacing: 0;
	margin-inline-start: var(--wp--preset--spacing--20);
}

/* Helper text — "Your email address..." */
.wp-block-post-comments-form .comment-notes {
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
	margin-block-end: var(--wp--preset--spacing--30);
	line-height: 1.5;
}

/* Labels */
.wp-block-post-comments-form label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-block-end: 6px;
	color: var(--wp--preset--color--on-surface);
}

/* Text inputs and textarea */
.wp-block-post-comments-form input[type="text"],
.wp-block-post-comments-form input[type="email"],
.wp-block-post-comments-form input[type="url"],
.wp-block-post-comments-form textarea {
	inline-size: 100%;
	padding: 10px 14px;
	border: 1px solid var(--wp--preset--color--divider);
	border-radius: var(--wp--preset--border-radius--small);
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--on-surface);
	font-family: var(--wp--preset--font-family--system-sans);
	font-size: 0.875rem;
	line-height: 1.5;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.wp-block-post-comments-form input[type="text"]:focus,
.wp-block-post-comments-form input[type="email"]:focus,
.wp-block-post-comments-form input[type="url"]:focus,
.wp-block-post-comments-form textarea:focus {
	border-color: var(--wp--preset--color--primary);
	background-color: var(--wp--preset--color--white);
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: -1px;
}

.wp-block-post-comments-form textarea {
	min-block-size: 120px;
	resize: vertical;
}

/* Form field groups */
.wp-block-post-comments-form .comment-form > p {
	margin-block-end: var(--wp--preset--spacing--20);
}

/* Cookies consent checkbox */
.wp-block-post-comments-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
	line-height: 1.5;
}

.wp-block-post-comments-form .comment-form-cookies-consent label {
	display: inline;
	font-size: 0.75rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: var(--wp--preset--color--muted);
}

/* Submit button */
.wp-block-post-comments-form input[type="submit"] {
	display: inline-block;
	padding: 10px 28px;
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
	border: none;
	border-radius: var(--wp--preset--border-radius--small);
	font-family: var(--wp--preset--font-family--system-sans);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.wp-block-post-comments-form input[type="submit"]:hover {
	background-color: var(--wp--preset--color--accent-alt);
}

.wp-block-post-comments-form input[type="submit"]:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* Logged-in-as info */
.wp-block-post-comments-form .logged-in-as {
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
	margin-block-end: var(--wp--preset--spacing--20);
}

/* Required field asterisk */
.wp-block-post-comments-form .required {
	color: var(--wp--preset--color--accent);
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-post-comments-form input[type="text"],
	.wp-block-post-comments-form input[type="email"],
	.wp-block-post-comments-form input[type="url"],
	.wp-block-post-comments-form textarea,
	.wp-block-post-comments-form input[type="submit"] {
		transition: none;
	}
}

/* -----------------------------------------------
   28. Pagination Styling
   ----------------------------------------------- */

/* Pagination wrapper */
.wp-block-query-pagination {
	gap: var(--wp--preset--spacing--10);
}

/* Individual page numbers */
.wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-inline-size: 36px;
	block-size: 36px;
	padding: 0 var(--wp--preset--spacing--20);
	border: 1px solid var(--wp--preset--color--divider);
	border-radius: var(--wp--preset--border-radius--small);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--on-surface);
	text-decoration: none;
	transition: all 0.15s ease;
}

.wp-block-query-pagination-numbers .page-numbers:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

/* Current page number */
.wp-block-query-pagination-numbers .page-numbers.current {
	background-color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

/* Prev/Next links */
.wp-block-query-pagination-previous a,
.wp-block-query-pagination-next a {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--10);
	padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--divider);
	border-radius: var(--wp--preset--border-radius--small);
	text-decoration: none;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	transition: all 0.15s ease;
}

.wp-block-query-pagination-previous a:hover,
.wp-block-query-pagination-next a:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

/* Comments pagination */
.wp-block-comments-pagination {
	margin-block-start: var(--wp--preset--spacing--40);
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-query-pagination-numbers .page-numbers,
	.wp-block-query-pagination-previous a,
	.wp-block-query-pagination-next a {
		transition: none;
	}
}

/* -----------------------------------------------
   29. Post Card Grid Hover Effects
   ----------------------------------------------- */

/* Cards in query grids — no hover movement */

/* -----------------------------------------------
   30. Single Post Layout Polish
   ----------------------------------------------- */

/* Article header */
.pressflow-article-header {
	text-align: start;
}

/* Post author in single template — clean flex alignment */
.pressflow-article-header .wp-block-post-author {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
}

.pressflow-article-header .wp-block-post-author__avatar img {
	border-radius: var(--wp--preset--border-radius--full);
}

/* Author bio card */
.pressflow-author-card {
	transition: box-shadow 0.2s ease;
}

.pressflow-author-card .wp-block-post-author {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
}

.pressflow-author-card .wp-block-post-author__avatar img {
	border-radius: var(--wp--preset--border-radius--full);
	border: 2px solid var(--wp--preset--color--divider);
}

/* Previous/Next post links */
.wp-block-previous-post-link a,
.wp-block-next-post-link a {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
	color: var(--wp--preset--color--on-surface);
	transition: color 0.15s ease;
}

.wp-block-previous-post-link a:hover,
.wp-block-next-post-link a:hover {
	color: var(--wp--preset--color--accent);
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-previous-post-link a,
	.wp-block-next-post-link a {
		transition: none;
	}
}

/* Hide prev/next nav container when both links are empty */
.wp-block-group:has(.wp-block-previous-post-link):has(.wp-block-next-post-link):not(:has(a)) {
	display: none;
}

/* -----------------------------------------------
   31. Archive & Category Page Polish
   ----------------------------------------------- */

/* Category/archive header — premium editorial style */
.pressflow-category-header {
	padding-block: 2.5rem;
}

.pressflow-category-header .wp-block-query-title {
	line-height: 1.1;
}

/* Term description styling */
.wp-block-term-description {
	margin-block-start: var(--wp--preset--spacing--10);
}

/* Post grid cards — consistent spacing */
.wp-block-post-template.is-layout-grid {
	gap: var(--wp--preset--spacing--40);
}

/* Post grid cards — no hover movement */

/* Horizontal post layouts in search/tag */
.wp-block-post-template .wp-block-columns {
	margin-block-end: 0;
}

/* -----------------------------------------------
   32. Page Template Clean Defaults
   ----------------------------------------------- */

/* Post content default spacing for page template */
.wp-block-post-content > p {
	margin-block-end: 1.2em;
}

.wp-block-post-content > p:last-child {
	margin-block-end: 0;
}

/* Featured image on single posts */
.wp-block-post-featured-image {
	margin-block: 0;
}

.wp-block-post-featured-image img {
	display: block;
	inline-size: 100%;
	block-size: auto;
}

/* -----------------------------------------------
   33. Premium Block Styles
   ----------------------------------------------- */

/* Lead paragraph — larger, bolder opening paragraph */
.is-style-lead {
	font-size: 1.25rem;
	line-height: 1.55;
	font-weight: 500;
	color: var(--wp--preset--color--on-surface);
	letter-spacing: -0.005em;
}

/* Cover overlay styles */
.is-style-gradient-overlay::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
	pointer-events: none;
}

.is-style-dark-overlay::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	pointer-events: none;
}

/* -----------------------------------------------
   34. Premium Grid Card Effects
   ----------------------------------------------- */

/* Grid post cards — clean layout */
.wp-block-post-template.is-layout-grid > li {
	border-radius: var(--wp--preset--border-radius--medium);
	padding-block-end: var(--wp--preset--spacing--20);
}

/* -----------------------------------------------
   36. Sidebar Premium Styling
   ----------------------------------------------- */

/* Sidebar section headings — consistent with theme */
.wp-block-template-part aside .is-style-accent-top-border h3,
.wp-block-template-part aside .is-style-card h3 {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* Sidebar Most Read list — numbered items */
.wp-block-template-part aside .is-style-accent-top-border .wp-block-post-title {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.35;
}

/* -----------------------------------------------
   37. Mobile Responsive Polish
   ----------------------------------------------- */

@media (max-width: 782px) {
	/* Search result — stack on tablet */
	.pressflow-search-result {
		flex-direction: column !important;
	}

	.pressflow-search-result .wp-block-post-featured-image {
		inline-size: 100% !important;
		min-inline-size: 100% !important;
	}

	/* Horizontal posts — stack on tablet */
	.pressflow-horizontal-post {
		flex-direction: column !important;
	}

	.pressflow-horizontal-post .wp-block-post-featured-image {
		inline-size: 100% !important;
		min-inline-size: 100% !important;
	}

	/* Category page — single column on tablet */
	.wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 600px) {
	/* Single column on mobile */
	.wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr !important;
	}

	/* Smaller category header text */
	.pressflow-category-header .wp-block-query-title {
		font-size: 1.75rem !important;
	}

	/* Compact post cards on mobile — no shadow lift */
	.wp-block-post-template.is-layout-grid > li:hover {
		transform: none;
		box-shadow: none;
	}
}

/* -----------------------------------------------
   Breadcrumbs
   ----------------------------------------------- */
.pressflow-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	line-height: 1.4;
}

.pressflow-breadcrumbs a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.pressflow-breadcrumbs a:hover,
.pressflow-breadcrumbs a:focus-visible {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

.pressflow-breadcrumb-sep {
	color: var(--wp--preset--color--divider);
	user-select: none;
}

.pressflow-breadcrumbs [aria-current="page"] {
	color: var(--wp--preset--color--on-surface);
	font-weight: 500;
}

/* -----------------------------------------------
   Sticky Sidebar (Block Style)
   ----------------------------------------------- */
.wp-block-columns.is-style-sticky-sidebar > .wp-block-column:last-child > * {
	position: sticky;
	top: 80px;
}

/* -----------------------------------------------
   Post Terms — Solid (Block Style)
   ----------------------------------------------- */
.wp-block-post-terms.is-style-solid a {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
	padding: 3px 10px;
	border-radius: var(--wp--preset--border-radius--small, 4px);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.wp-block-post-terms.is-style-solid a:hover,
.wp-block-post-terms.is-style-solid a:focus-visible {
	background-color: var(--wp--preset--color--accent-alt);
}

/* -----------------------------------------------
   Post Terms — Outline (Block Style)
   ----------------------------------------------- */
.wp-block-post-terms.is-style-outline a {
	border: 1px solid var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
	padding: 3px 10px;
	border-radius: var(--wp--preset--border-radius--small, 4px);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.wp-block-post-terms.is-style-outline a:hover,
.wp-block-post-terms.is-style-outline a:focus-visible {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

/* -----------------------------------------------
   Post Author / Date — With Icon (Block Style)
   ----------------------------------------------- */
.wp-block-post-author-name.is-style-with-icon::before {
	content: "\270E";
	margin-inline-end: 4px;
}

.wp-block-post-date.is-style-with-icon::before {
	content: "\1F4C5";
	margin-inline-end: 4px;
}

/* -----------------------------------------------
   38. Direction-aware borders (flip automatically in RTL)
   ----------------------------------------------- */
.pressflow-border-start {
	border-inline-start: 4px solid var(--wp--preset--color--accent);
}

.pressflow-border-start.is-warning {
	border-inline-start-color: var(--wp--preset--color--warning);
}

.pressflow-column-divider {
	border-inline-end: 1px solid var(--wp--preset--color--divider);
	padding-inline-end: var(--wp--preset--spacing--60);
}

.pressflow-stat-divider {
	border-inline-end: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

@media (max-width: 781px) {
	.pressflow-column-divider,
	.pressflow-stat-divider {
		border-inline-end: none;
		padding-inline-end: 0;
	}
}

/* -----------------------------------------------
   39. Mobile menu button and navigation overlay
   ----------------------------------------------- */

/* The menu button replaces the main navigation row below the tablet breakpoint */
.pressflow-mobile-nav.wp-block-navigation {
	display: none;
}

@media (max-width: 782px) {
	.pressflow-mobile-nav.wp-block-navigation {
		display: flex;
		margin-inline-start: auto;
	}
}

.pressflow-mobile-nav .wp-block-navigation__responsive-container-open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-inline-size: 44px;
	min-block-size: 44px;
	border: 1px solid var(--wp--preset--color--divider);
	border-radius: var(--wp--preset--border-radius--small);
	color: var(--wp--preset--color--primary);
}

.pressflow-mobile-nav .wp-block-navigation__responsive-container-open:hover {
	background-color: var(--wp--preset--color--surface);
}

.pressflow-mobile-nav .wp-block-navigation__responsive-container-open:focus-visible,
.wp-block-navigation-overlay-close:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* Overlay */
.pressflow-overlay {
	box-sizing: border-box;
	inline-size: 100%;
}

.wp-block-navigation-overlay-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-inline-size: 44px;
	min-block-size: 44px;
	border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
	border-radius: var(--wp--preset--border-radius--small);
	color: var(--wp--preset--color--on-dark);
}

.pressflow-overlay-search .wp-block-search__input {
	font-size: 1rem;
}

.pressflow-overlay-search .wp-block-search__button {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

/* Menu items: full-width rows with dividers and comfortable tap targets */
.pressflow-overlay-nav,
.pressflow-overlay-nav .wp-block-navigation__container,
.pressflow-overlay-nav .wp-block-page-list {
	inline-size: 100%;
	align-items: stretch;
}

.pressflow-overlay-nav .wp-block-navigation-item {
	border-block-end: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

.pressflow-overlay-nav .wp-block-navigation-item__content {
	display: block;
	inline-size: 100%;
	padding-block: 14px;
	color: var(--wp--preset--color--on-dark);
}

.pressflow-overlay-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--on-dark-muted);
}

/* Submenus in the overlay: inline, indented list (no floating dropdowns) */
.pressflow-overlay-nav .has-child.open-always {
	gap: 0;
}

.pressflow-overlay-nav .has-child.open-always > .wp-block-navigation__submenu-container {
	gap: 0;
	padding-block: 0 var(--wp--preset--spacing--20);
	padding-inline: var(--wp--preset--spacing--40) 0;
	min-width: 0;
	inline-size: 100%;
	box-sizing: border-box;
}

.pressflow-overlay-nav .wp-block-navigation__submenu-container .wp-block-navigation-item {
	border-block-end: 0;
	inline-size: 100%;
	box-sizing: border-box;
}

.pressflow-overlay-nav .has-child.open-always .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding-block: 10px;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--wp--preset--color--on-dark-muted);
}

.pressflow-overlay-nav .has-child.open-always .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--on-dark);
}

/* Categories as a two-column grid */
.pressflow-overlay-categories {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	list-style: none;
	margin: 0;
	padding-inline-start: 0;
}

.pressflow-overlay-categories a {
	display: block;
	padding: 10px 14px;
	border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	border-radius: var(--wp--preset--border-radius--small);
	color: var(--wp--preset--color--on-dark);
	text-decoration: none;
}

.pressflow-overlay-categories a:hover {
	border-color: var(--wp--preset--color--on-dark);
}

.pressflow-overlay a:focus-visible {
	outline: 2px solid var(--wp--preset--color--on-dark);
	outline-offset: 2px;
}

/* Dates inside cover blocks inherit the cover text colour instead of the muted default */
.wp-block-cover .wp-block-post-date {
	color: inherit;
}

/* -----------------------------------------------
   40. Robust content: long words, classic markup, embeds
   ----------------------------------------------- */
body {
	overflow-wrap: break-word;
}

.pressflow-breadcrumbs,
.wp-block-post-title,
.wp-block-query-title,
.wp-block-post-navigation-link,
.wp-block-comment-author-name,
.wp-block-comment-content {
	min-width: 0;
	overflow-wrap: anywhere;
}

pre {
	max-width: 100%;
	overflow-x: auto;
}

.wp-block-post-content img,
.wp-block-post-content video,
.wp-block-post-content iframe,
.wp-block-post-content embed,
.wp-block-post-content object,
.wp-block-comment-content img {
	max-width: 100%;
}

.wp-block-post-content img {
	height: auto;
}

/* Classic editor captions and alignments */
.wp-caption {
	max-width: 100%;
	margin-block-end: 1.5em;
}

.wp-caption-text {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	margin-block-start: 0.5em;
}

.wp-block-post-content .alignleft:not([class*="wp-block-"]) {
	float: inline-start;
	margin-inline-end: 1.5em;
	margin-block-end: 1em;
}

.wp-block-post-content .alignright:not([class*="wp-block-"]) {
	float: inline-end;
	margin-inline-start: 1.5em;
	margin-block-end: 1em;
}

.wp-block-post-content .aligncenter:not([class*="wp-block-"]) {
	display: block;
	margin-inline: auto;
}

/* Comments: text column may shrink next to the avatar; cap nesting indent */
.pressflow-comment > .wp-block-group {
	flex: 1 1 auto;
	min-width: 0;
}

.wp-block-comment-template li > ol {
	padding-inline-start: var(--wp--preset--spacing--40);
}

.wp-block-comment-template li li li li > ol {
	padding-inline-start: 0;
}

@media (max-width: 600px) {
	.wp-block-comment-template li > ol {
		padding-inline-start: var(--wp--preset--spacing--20);
	}

	.wp-block-comment-template li li li > ol {
		padding-inline-start: 0;
	}
}

/* Lists written inside a comment keep their markers (core strips them from every ol in comments) */
.wp-block-comment-content ol {
	list-style: decimal;
	padding-inline-start: 1.5em;
}

.wp-block-comment-content ul {
	list-style: disc;
	padding-inline-start: 1.5em;
}

/* Linked dates in post lists keep the muted date colour */
.wp-block-post-date a {
	color: inherit;
	text-decoration: none;
}

.wp-block-post-date a:hover,
.wp-block-post-date a:focus-visible {
	text-decoration: underline;
}

/* -----------------------------------------------
   41. Desktop navigation dropdowns
   ----------------------------------------------- */
.pressflow-category-nav .wp-block-navigation__submenu-container {
	min-width: 220px;
	padding-block: 6px;
	border: 1px solid var(--wp--preset--color--divider);
	border-radius: var(--wp--preset--border-radius--small);
	background-color: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--large);
}

.pressflow-category-nav .wp-block-navigation__submenu-container .wp-block-navigation-item a {
	padding: 10px 16px;
	margin-block-end: 0;
	border-block-end: 0;
	white-space: normal;
	color: var(--wp--preset--color--on-surface);
}

.pressflow-category-nav .wp-block-navigation__submenu-container .wp-block-navigation-item a:hover,
.pressflow-category-nav .wp-block-navigation__submenu-container .wp-block-navigation-item a:focus-visible {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--accent);
}

/* Keep the custom overlay below the admin bar for logged-in users (core only offsets its default overlay) */
.has-modal-open .admin-bar .is-menu-open.disable-default-overlay .wp-block-navigation__responsive-dialog {
	margin-block-start: 46px;
}

@media (min-width: 782px) {
	.has-modal-open .admin-bar .is-menu-open.disable-default-overlay .wp-block-navigation__responsive-dialog {
		margin-block-start: 32px;
	}
}

/* Left-sidebar templates: content stays first in the markup (mobile, screen readers); sidebar moves to the start side on wider screens */
@media (min-width: 782px) {
	.wp-block-columns.pressflow-sidebar-start {
		flex-direction: row-reverse;
	}
}

/* -----------------------------------------------
   42. Sidebar term lists
   ----------------------------------------------- */
.pressflow-sidebar-terms > li {
	padding-block: 8px;
	border-block-end: 1px solid var(--wp--preset--color--divider);
}

.pressflow-sidebar-terms > li:last-child {
	border-block-end: 0;
}

.pressflow-sidebar-terms a {
	color: var(--wp--preset--color--on-surface);
	text-decoration: none;
}

.pressflow-sidebar-terms a:hover,
.pressflow-sidebar-terms a:focus-visible {
	color: var(--wp--preset--color--accent);
}

.pressflow-term-count {
	color: var(--wp--preset--color--muted);
	font-variant-numeric: tabular-nums;
}

/* Popular topics: tag cloud as pills */
.pressflow-topic-pills.wp-block-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pressflow-topic-pills.wp-block-tag-cloud a {
	display: inline-block;
	margin: 0;
	padding: 4px 12px;
	border: 1px solid var(--wp--preset--color--divider);
	border-radius: var(--wp--preset--border-radius--full);
	color: var(--wp--preset--color--on-surface);
	text-decoration: none;
	line-height: 1.5;
}

.pressflow-topic-pills.wp-block-tag-cloud a:hover,
.pressflow-topic-pills.wp-block-tag-cloud a:focus-visible {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

/* Term lists (Terms Query): the term name renders as a paragraph and items get block-gap margins;
   remove both so the list's own spacing controls the rhythm */
.wp-block-term-template > li {
	margin-block: 0;
}

.wp-block-term-template .wp-block-term-name {
	margin-block: 0;
}
