/*
Theme Name: Market IQ
Theme URI: https://marketiq.hn
Author: Market IQ
Description: Tema premium para Market IQ — empresa especializada en investigación de mercados, marketing digital y desarrollo web en Honduras. Diseño moderno, tecnológico y orientado a datos con estética dashboard.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: market-iq
Tags: block-patterns, full-site-editing, wide-blocks, custom-colors, custom-fonts, translation-ready
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
*/

/* ==========================================================================
   0. FOUNDATIONS
   ========================================================================== */

:root,
body,
.wp-site-blocks {
	overflow: visible;
}

/* Smooth scroll (frontend only — editor doesn't need it) */
html {
	scroll-behavior: smooth;
}

/* Body-level typographic polish */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* ==========================================================================
   1. TYPOGRAPHY POLISH
   ========================================================================== */

/* Heading refinements — reinforce Plus Jakarta Sans's geometric clarity */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
	text-wrap: balance;
}

/* Body prose — comfortable reading */
p {
	text-wrap: pretty;
}

/* Muted helper text */
.has-muted-color {
	color: var(--wp--preset--color--muted);
}

/* Small metadata / label text */
.has-x-small-font-size {
	letter-spacing: 0.02em;
}

/* Uppercase label style (H6-like usage across the site) */
.is-style-label,
.wp-block-heading.is-style-label {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--muted);
}

/* ==========================================================================
   2. LINK STYLES
   ========================================================================== */

a {
	transition: color 0.2s ease;
}

/* Inline links inside prose — subtle underline */
.entry-content a:not(.wp-block-button__link):not(.wp-block-navigation-item__content),
.wp-block-group a:not(.wp-block-button__link):not(.wp-block-navigation-item__content):not(.wp-block-site-title a):not(.wp-block-navigation a) {
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--wp--preset--color--secondary) 35%, transparent);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.entry-content a:not(.wp-block-button__link):not(.wp-block-navigation-item__content):hover,
.wp-block-group a:not(.wp-block-button__link):not(.wp-block-navigation-item__content):not(.wp-block-site-title a):not(.wp-block-navigation a):hover {
	text-decoration-color: var(--wp--preset--color--secondary-hover);
}

/* ==========================================================================
   3. BUTTON STYLES
   ========================================================================== */

/* Primary button — pill shape, green on dark */
.wp-block-button__link,
.wp-block-button .wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	border-radius: 999px;
	letter-spacing: -0.01em;
}

.wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(114, 198, 76, 0.3);
}

/* Outline button variant */
.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 1.5px;
	border-style: solid;
	background: transparent;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: none;
}

/* Outline on dark surfaces */
.has-dark-background-color .wp-block-button.is-style-outline .wp-block-button__link,
.has-dark-background-color .is-style-outline .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.35);
	color: var(--wp--preset--color--surface);
}

.has-dark-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover,
.has-dark-background-color .is-style-outline .wp-block-button__link:hover {
	border-color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   4. CARD STYLES (dashboard-inspired)
   ========================================================================== */

/* Standard card — soft shadow, rounded corners */
.is-style-card,
.wp-block-group.is-style-card {
	background: var(--wp--preset--color--surface);
	border-radius: 24px;
	box-shadow: 0 2px 16px rgba(9, 20, 66, 0.07);
	padding: var(--wp--preset--spacing--40);
	transition: box-shadow 0.3s ease, transform 0.25s ease;
}

.is-style-card:hover,
.wp-block-group.is-style-card:hover {
	box-shadow: 0 8px 40px rgba(9, 20, 66, 0.12);
	transform: translateY(-4px);
}

/* Elevated card (stronger shadow for hero dashboard area) */
.is-style-card-elevated,
.wp-block-group.is-style-card-elevated {
	background: var(--wp--preset--color--surface);
	border-radius: 24px;
	box-shadow: 0 8px 40px rgba(9, 20, 66, 0.18);
	padding: var(--wp--preset--spacing--40);
}

/* Subtle card — surface-alt background, minimal shadow */
.is-style-card-subtle,
.wp-block-group.is-style-card-subtle {
	background: var(--wp--preset--color--surface-alt);
	border-radius: 24px;
	box-shadow: none;
	border: 1px solid var(--wp--preset--color--border);
	padding: var(--wp--preset--spacing--40);
	transition: box-shadow 0.3s ease, transform 0.25s ease;
}

.is-style-card-subtle:hover,
.wp-block-group.is-style-card-subtle:hover {
	box-shadow: 0 4px 20px rgba(9, 20, 66, 0.08);
	transform: translateY(-2px);
}

/* ==========================================================================
   5. HEADER
   ========================================================================== */

/* Sticky header — target the WP-generated <header> tag */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Scrolled-state pseudo background */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

.wp-site-blocks > header.wp-block-template-part::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	transition: background 0.4s ease, box-shadow 0.4s ease;
}

body.is-scrolled .wp-site-blocks > header.wp-block-template-part::before {
	background: var(--wp--preset--color--dark);
	box-shadow: 0 1px 0 rgba(54, 156, 205, 0.15);
}

/* Inner header group — shrink on scroll */
.site-header {
	transition: padding 0.25s ease;
}

body.is-scrolled .site-header {
	padding-block: var(--wp--preset--spacing--20);
}

/* Navigation link styling for header context */
.site-header .wp-block-navigation a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	padding: 0.5rem 0.85rem;
	border-radius: 999px;
	transition: color 0.2s ease, background 0.2s ease;
}

.site-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--surface);
	background: rgba(255, 255, 255, 0.08);
}

/* Site title in header */
.site-header .wp-block-site-title a {
	text-decoration: none;
	color: var(--wp--preset--color--surface);
}

.site-header .wp-block-site-title a:hover {
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   6. MOBILE HAMBURGER OVERLAY
   ========================================================================== */

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--30);
	align-items: flex-start;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
}

/* ==========================================================================
   7. IMAGE TREATMENTS
   ========================================================================== */

/* Rounded images — dashboard aesthetic */
.wp-block-image img,
.wp-block-cover img.wp-block-cover__image-background {
	border-radius: 14px;
}

/* Full-width covers keep square edges */
.wp-block-cover.alignfull img.wp-block-cover__image-background {
	border-radius: 0;
}

/* Image hover — subtle lift */
.wp-block-image:not(.alignfull):not(.alignwide) {
	transition: transform 0.3s ease;
}

.wp-block-image:not(.alignfull):not(.alignwide):hover {
	transform: translateY(-2px);
}

/* Gallery images */
.wp-block-gallery .wp-block-image img {
	border-radius: 14px;
}

/* ==========================================================================
   8. SEPARATOR
   ========================================================================== */

.wp-block-separator {
	border: none;
	height: 1px;
	opacity: 1;
}

.wp-block-separator:not(.is-style-dots) {
	background: var(--wp--preset--color--border);
}

/* ==========================================================================
   9. COVER / HERO ENHANCEMENTS
   ========================================================================== */

/* Hero badge style (floating label) */
.is-style-hero-badge,
.wp-block-group.is-style-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	padding: 0.35rem 1rem 0.35rem 0.5rem;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.01em;
}

/* Cover block overlays — ensure text readability */
.wp-block-cover {
	border-radius: 0;
}

/* Cover inner content — max-width for readability */
.wp-block-cover .wp-block-cover__inner-container {
	max-width: var(--wp--style--global--wide-size, 1320px);
}

/* ==========================================================================
   10. COLUMNS RESPONSIVE
   ========================================================================== */

/* Two-column at tablet, stack on mobile */
@media (max-width: 781px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-wrap: wrap;
	}

	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* ==========================================================================
   11. POST / BLOG CARDS
   ========================================================================== */

/* Post template grid cards */
.wp-block-post-template .wp-block-post {
	background: var(--wp--preset--color--surface);
	border-radius: 24px;
	box-shadow: 0 2px 16px rgba(9, 20, 66, 0.07);
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.25s ease;
}

.wp-block-post-template .wp-block-post:hover {
	box-shadow: 0 8px 32px rgba(9, 20, 66, 0.14);
	transform: translateY(-4px);
}

/* Featured image inside cards */
.wp-block-post-template .wp-block-post-featured-image img {
	border-radius: 0;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
}

/* Post title links */
.wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--text);
	transition: color 0.2s ease;
}

.wp-block-post-title a:hover {
	color: var(--wp--preset--color--secondary);
}

/* Post date & category meta */
.wp-block-post-date,
.wp-block-post-terms {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
}

.wp-block-post-terms a {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	font-weight: 600;
}

.wp-block-post-terms a:hover {
	color: var(--wp--preset--color--secondary);
}

/* ==========================================================================
   12. QUOTE
   ========================================================================== */

.wp-block-quote {
	font-style: italic;
}

.wp-block-quote cite {
	font-style: normal;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	font-weight: 500;
}

/* ==========================================================================
   13. LIST STYLES
   ========================================================================== */

/* Service list with accent markers */
.is-style-checkmark-list li::marker {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}

/* Clean list spacing */
.wp-block-list {
	padding-inline-start: 1.2em;
}

.wp-block-list li {
	padding-block: 0.15em;
}

/* ==========================================================================
   14. METHODOLOGY / STEP INDICATORS
   ========================================================================== */

/* Step number badge */
.is-style-step-number,
.wp-block-group.is-style-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--dark);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: var(--wp--preset--font-size--large);
	flex-shrink: 0;
}

/* Teal step badge variant */
.is-style-step-number-teal {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--surface);
}

/* ==========================================================================
   15. ACCENT UNDERLINES & DECORATIVE TOUCHES
   ========================================================================== */

/* Section accent line (below headings) */
.is-style-accent-underline::after {
	content: "";
	display: block;
	width: 60px;
	height: 3px;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	margin-top: var(--wp--preset--spacing--20);
}

.is-style-accent-underline-teal::after {
	content: "";
	display: block;
	width: 60px;
	height: 3px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	margin-top: var(--wp--preset--spacing--20);
}

.is-style-accent-underline-blue::after {
	content: "";
	display: block;
	width: 60px;
	height: 3px;
	border-radius: 999px;
	background: var(--wp--preset--color--secondary);
	margin-top: var(--wp--preset--spacing--20);
}

/* ==========================================================================
   16. CTA SECTIONS (dark navy background band)
   ========================================================================== */

.has-dark-background-color a:not(.wp-block-button__link) {
	color: var(--wp--preset--color--primary);
}

.has-dark-background-color a:not(.wp-block-button__link):hover {
	color: var(--wp--preset--color--primary-hover);
}

/* ==========================================================================
   17. FLOATING ACTION BUTTON
   ========================================================================== */

.floating-cta {
	position: fixed;
	bottom: var(--wp--preset--spacing--40);
	right: var(--wp--preset--spacing--40);
	z-index: 90;
}

.floating-cta .wp-block-button__link {
	box-shadow: 0 8px 32px rgba(114, 198, 76, 0.4);
	font-size: var(--wp--preset--font-size--small);
}

.floating-cta .wp-block-button__link:hover {
	box-shadow: 0 12px 40px rgba(114, 198, 76, 0.5);
}

@media (max-width: 600px) {
	.floating-cta {
		bottom: var(--wp--preset--spacing--30);
		right: var(--wp--preset--spacing--30);
		left: var(--wp--preset--spacing--30);
	}

	.floating-cta .wp-block-button {
		width: 100%;
	}

	.floating-cta .wp-block-button__link {
		width: 100%;
		justify-content: center;
		text-align: center;
	}
}

/* ==========================================================================
   18. FOOTER
   ========================================================================== */

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

.site-footer a:hover {
	color: var(--wp--preset--color--primary);
}

/* Footer navigation */
.site-footer .wp-block-navigation a {
	color: rgba(255, 255, 255, 0.65);
	font-size: var(--wp--preset--font-size--small);
}

.site-footer .wp-block-navigation a:hover {
	color: var(--wp--preset--color--surface);
}

/* Footer credit line */
.site-footer .wp-block-paragraph a {
	text-decoration-color: rgba(255, 255, 255, 0.25);
	text-underline-offset: 3px;
}

/* ==========================================================================
   19. FORM STYLES (for contact / lead forms)
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
textarea,
select {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	padding: 0.75rem 1rem;
	width: 100%;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	line-height: 1.5;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--wp--preset--color--secondary);
	box-shadow: 0 0 0 3px rgba(54, 156, 205, 0.15);
}

textarea {
	min-height: 140px;
	resize: vertical;
}

label {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--text);
	display: block;
	margin-bottom: 0.35rem;
}

/* Submit button in forms */
input[type="submit"],
button[type="submit"] {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--dark);
	border: none;
	border-radius: 999px;
	padding: 0.85rem 2rem;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
	background: var(--wp--preset--color--primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(114, 198, 76, 0.3);
}

/* ==========================================================================
   20. DATA / METRIC DISPLAY
   ========================================================================== */

/* Stat number — large display for KPIs */
.is-style-stat-number,
.wp-block-heading.is-style-stat-number {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

/* Stat accent color */
.has-primary-color .is-style-stat-number,
.is-style-stat-accent {
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   21. ICON CIRCLE (for service/feature cards)
   ========================================================================== */

.is-style-icon-circle,
.wp-block-group.is-style-icon-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	flex-shrink: 0;
}

/* Green tint icon background */
.is-style-icon-circle-green {
	background: rgba(114, 198, 76, 0.12);
}

/* Teal tint icon background */
.is-style-icon-circle-teal {
	background: rgba(10, 163, 154, 0.10);
}

/* Blue tint icon background */
.is-style-icon-circle-blue {
	background: rgba(54, 156, 205, 0.08);
}

/* ==========================================================================
   22. TABLE STYLES
   ========================================================================== */

.wp-block-table table {
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
}

.wp-block-table th {
	background: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--surface);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	text-align: left;
	padding: 0.85rem 1.25rem;
}

.wp-block-table td {
	padding: 0.75rem 1.25rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-table tr:last-child td {
	border-bottom: none;
}

.wp-block-table tr:nth-child(even) td {
	background: var(--wp--preset--color--surface-alt);
}

/* ==========================================================================
   23. CODE BLOCK
   ========================================================================== */

.wp-block-code code {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

/* ==========================================================================
   24. DETAILS / ACCORDION (FAQ)
   ========================================================================== */

details.wp-block-details {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	transition: box-shadow 0.3s ease;
}

details.wp-block-details[open] {
	box-shadow: 0 2px 16px rgba(9, 20, 66, 0.07);
}

details.wp-block-details summary {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--medium);
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

details.wp-block-details summary::-webkit-details-marker {
	display: none;
}

details.wp-block-details summary::after {
	content: "+";
	font-size: 1.25rem;
	font-weight: 300;
	color: var(--wp--preset--color--muted);
	transition: transform 0.2s ease;
	flex-shrink: 0;
	margin-left: var(--wp--preset--spacing--20);
}

details.wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

/* ==========================================================================
   25. SEARCH BLOCK
   ========================================================================== */

.wp-block-search .wp-block-search__input {
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--border);
	padding: 0.65rem 1.25rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-search .wp-block-search__button {
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--dark);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	border: none;
	padding: 0.65rem 1.5rem;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wp-block-search .wp-block-search__button:hover {
	background: var(--wp--preset--color--primary-hover);
}

/* ==========================================================================
   26. PAGINATION
   ========================================================================== */

.wp-block-query-pagination {
	gap: var(--wp--preset--spacing--20);
}

.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.5rem;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wp-block-query-pagination a:hover {
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--secondary);
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--dark);
}

/* ==========================================================================
   27. SELECTION HIGHLIGHT
   ========================================================================== */

::selection {
	background: rgba(114, 198, 76, 0.2);
	color: var(--wp--preset--color--text);
}

/* ==========================================================================
   28. FOCUS STYLES (accessibility)
   ========================================================================== */

:focus-visible {
	outline: 2px solid var(--wp--preset--color--secondary);
	outline-offset: 2px;
}

.wp-block-button__link:focus-visible {
	outline-offset: 3px;
}

/* ==========================================================================
   29. SCROLLBAR STYLING (subtle, dashboard feel)
   ========================================================================== */

::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: var(--wp--preset--color--surface-alt);
}

::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--border);
	border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--wp--preset--color--muted);
}

/* Firefox */
* {
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--border) var(--wp--preset--color--surface-alt);
}

/* ==========================================================================
   30. RESPONSIVE UTILITIES
   ========================================================================== */

/* Hide on mobile */
@media (max-width: 781px) {
	.hide-on-mobile {
		display: none !important;
	}
}

/* Hide on desktop */
@media (min-width: 782px) {
	.hide-on-desktop {
		display: none !important;
	}
}

/* ==========================================================================
   31. SECTION SPACING UTILITY
   ========================================================================== */

/* 80px vertical breathing room between major sections */
.is-style-section-spacing {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

/* Extra generous spacing for hero/CTA bands */
.is-style-section-spacing-lg {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}

/* ==========================================================================
   LOOP LAYOUT UTILITIES
   ========================================================================== */
/* These classes are wired to the wp:query blocks emitted by content/pages and
   templates. Do not rename. Tuned to Market IQ's palette. */

/* Horizontal scrollable rail */
.wp-block-query.is-style-loop-rail .wp-block-post-template {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: var(--wp--preset--spacing--20);
}
.wp-block-query.is-style-loop-rail .wp-block-post-template > * {
	flex: 0 0 320px;
	scroll-snap-align: start;
}

/* Compact list with hairline row dividers */
.wp-block-query.is-style-loop-list .wp-block-post-template > * {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-block: var(--wp--preset--spacing--30);
}
.wp-block-query.is-style-loop-list .wp-block-post-template > *:last-child {
	border-bottom: 0;
}

/* Zigzag — flip the columns inside every even entry */
.wp-block-query.is-style-loop-zigzag .wp-block-post-template > *:nth-child(even) .wp-block-columns {
	flex-direction: row-reverse;
}

/* Timeline — vertical line with node markers per entry */
.wp-block-query.is-style-loop-timeline .wp-block-post-template {
	position: relative;
	padding-inline-start: 2.5rem;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template::before {
	content: '';
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0.5rem;
	width: 2px;
	background: var(--wp--preset--color--border);
	opacity: 0.5;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template > * {
	position: relative;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template > *::before {
	content: '';
	position: absolute;
	inset-inline-start: -2.25rem;
	inset-block-start: 0.6rem;
	width: 1rem;
	height: 1rem;
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 50%;
	background: var(--wp--preset--color--background);
}

/* Magazine — first child spans 2 columns of the grid */
.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
	grid-column: span 2;
}
@media (max-width: 600px) {
	.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
		grid-column: auto;
	}
}