/*
 * iGamingSEO theme: WordPress extras on top of app.css (the compiled Lovable
 * utilities). Only things the Lovable build never needed live here: WordPress
 * core classes, block content inside .dark-editorial-copy, Fluent Forms in the
 * Lovable input style, pagination and a few missing utilities.
 */

:root {
	--igs-mono: "Space Mono", monospace;
}

/* The page wrapper is bg-night; match the body so overscroll and banners do not flash light. */
body.igs-dark {
	background-color: var(--night);
	color: var(--night-text);
}

/* Utilities used by the theme but absent from the Lovable bundle. */
.h-14 { height: 3.5rem; }
.mb-12 { margin-bottom: 3rem; }

/* Sticky header below the admin bar. Only while the header IS sticky (under lg):
   from lg up it is position relative, and a top offset on a relative box paints it
   32px lower over the ticker without moving the flow (16 Oct 2026, Milan's find). */
@media (min-width: 601px) and (max-width: 782px) {
	.admin-bar .igs-site-header { top: 46px; }
}
@media (min-width: 783px) and (max-width: 1023.98px) {
	.admin-bar .igs-site-header { top: 32px; }
}

/* WordPress accessibility helpers. */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed !important;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100;
	width: auto;
	height: auto;
	clip: auto;
	padding: 0.75rem 1rem;
	border-radius: 10px;
	background: var(--prestige);
	color: var(--night);
	font: 700 11px/1 var(--igs-mono);
	text-transform: none;
}

/* First block flush with the top, like the h2.mt-0 / p.first:mt-0 in Lovable. */
.igs-first-flush > :first-child { margin-top: 0; }

/* Case Studies: the intro paragraph is text-xl. */
.igs-lead-copy > p:first-child { font-size: 1.25rem; line-height: 1.75; }

/* Affiliate Stocks editor note: first paragraph text-lg/xl in night-text, the rest text-base in night-muted, space-y-6. */
.igs-stock-note > * + * { margin-top: 1.5rem; }
.igs-stock-note > p { margin: 0; font-size: 1rem; line-height: 1.625; color: var(--night-muted); }
.igs-stock-note > * + p { margin-top: 1.5rem; }
.igs-stock-note > p:first-child { font-size: 1.125rem; color: var(--night-text); }
@media (min-width: 640px) {
	.igs-stock-note > p:first-child { font-size: 1.25rem; }
}

/* Block content inside .dark-editorial-copy (articles and pages). */
.igs-content h4 {
	margin-block: 2rem 0.4rem;
	color: var(--night-text);
	font-family: var(--font-publication);
	font-size: 1.15rem;
	font-weight: 600;
}
.igs-content figure,
.igs-content .wp-block-image {
	margin-block: 2.5rem;
}
@media (min-width: 640px) {
	.igs-content figure,
	.igs-content .wp-block-image { margin-block: 3.5rem; }
}
.igs-content figure img,
.igs-content .wp-block-image img {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	object-fit: cover;
}
.igs-content figcaption,
.igs-content .wp-element-caption {
	margin-top: 0.75rem;
	color: var(--night-muted);
	font-family: var(--igs-mono);
	font-size: 9px;
	font-weight: 700;
	line-height: 1.625;
	text-transform: none;
	text-align: left;
}
.igs-content figure.wp-block-pullquote,
.igs-content figure.wp-block-table { margin-inline: 0; }
.igs-content .wp-block-quote p,
.igs-content blockquote p { margin-block: 0; }
.igs-content blockquote cite {
	display: block;
	margin-top: 0.75rem;
	color: var(--night-muted);
	font: 700 9px/1.6 var(--igs-mono);
	font-style: normal;
	text-transform: none;
}
.igs-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}
.igs-content th,
.igs-content td {
	padding: 0.75rem 0.75rem 0.75rem 0;
	border-bottom: 1px solid color-mix(in oklab, var(--night-text) 12%, transparent);
	text-align: left;
	vertical-align: top;
}
.igs-content th {
	color: var(--night-muted);
	font: 700 9px/1.4 var(--igs-mono);
	text-transform: none;
}
.igs-content td { color: var(--night-text); }
.igs-content .wp-block-table { overflow-x: auto; }
.igs-content hr {
	margin-block: 3rem;
	border: 0;
	border-top: 1px solid color-mix(in oklab, var(--night-text) 15%, transparent);
}
.igs-content code {
	padding: 0.1rem 0.35rem;
	border-radius: 4px;
	background: var(--night-panel);
	color: var(--night-text);
	font-family: var(--igs-mono);
	font-size: 0.85em;
}
.igs-content pre {
	margin-block: 2rem;
	padding: 1.25rem;
	overflow-x: auto;
	border-radius: var(--radius);
	background: var(--night-panel);
}
.igs-content pre code { padding: 0; background: none; }
.igs-content strong { color: var(--night-text); }
.igs-content iframe,
.igs-content video { max-width: 100%; }
.igs-content .wp-block-embed { margin-block: 2.5rem; }
.igs-content .wp-block-embed__wrapper iframe { width: 100%; }
.igs-content .wp-block-button__link,
.igs-content .wp-element-button {
	display: inline-flex;
	align-items: center;
	height: 3rem;
	padding: 0 1.5rem;
	border-radius: 10px;
	background: var(--prestige);
	color: var(--night);
	font-family: var(--font-copy);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
}
.igs-content .wp-block-button__link:hover { background: var(--night-text); }
.igs-content .alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; max-width: 50%; }
.igs-content .alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; max-width: 50%; }
.igs-content .aligncenter { margin-inline: auto; }
.igs-content::after { content: ""; display: table; clear: both; }

.igs-page-links {
	margin-top: 2rem;
	font: 700 10px/1 var(--igs-mono);
	text-transform: none;
}

/* Pagination under archive grids. */
.igs-pagination { margin-top: 3rem; }
.igs-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid color-mix(in oklab, var(--night-text) 15%, transparent);
}
.igs-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	min-width: 2.5rem;
	height: 2.5rem;
	justify-content: center;
	padding: 0 0.85rem;
	border: 1px solid color-mix(in oklab, var(--night-text) 15%, transparent);
	border-radius: 10px;
	color: var(--night-text);
	font: 700 10px/1 var(--igs-mono);
	text-transform: none;
	transition: border-color 0.2s, background-color 0.2s;
}
.igs-pagination a.page-numbers:hover {
	border-color: color-mix(in oklab, var(--prestige) 50%, transparent);
	background: var(--night-panel);
}
.igs-pagination .page-numbers.current {
	border-color: var(--prestige);
	color: var(--prestige);
}

/* Directory listing logo. */
.igs-listing-logo {
	width: auto;
	max-width: 9rem;
	height: 2.5rem;
	object-fit: contain;
	object-position: left center;
}

/*
 * Fluent Forms in the Lovable style (contact.tsx inputClass and newsletter-signup.tsx).
 */
.igs-form .frm-fluent-form .ff-el-group { margin-bottom: 1.25rem; }
.igs-form .frm-fluent-form .ff-t-container { gap: 1.25rem; }
.igs-form .frm-fluent-form .ff-el-input--label label {
	margin-bottom: 0.5rem;
	color: var(--signal);
	font-family: var(--igs-mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}
.igs-form .frm-fluent-form .ff-el-input--label.ff-el-is-required.asterisk-right label::after { color: var(--prestige); }
.igs-form .frm-fluent-form .ff-el-form-control,
.igs-form .frm-fluent-form input[type="text"],
.igs-form .frm-fluent-form input[type="email"],
.igs-form .frm-fluent-form textarea,
.igs-form .frm-fluent-form select {
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 1rem;
	border: 1px solid color-mix(in oklab, var(--night-text) 15%, transparent) !important;
	border-radius: 10px !important;
	background: var(--night-panel) !important;
	color: var(--night-text) !important;
	font-family: var(--font-copy);
	font-size: 0.875rem;
	line-height: 1.5;
	box-shadow: none !important;
	outline: none;
	transition: border-color 0.2s;
}
.igs-form .frm-fluent-form textarea { min-height: 9rem; resize: vertical; }
.igs-form .frm-fluent-form .ff-el-form-control::placeholder {
	color: color-mix(in oklab, var(--night-muted) 60%, transparent);
}
.igs-form .frm-fluent-form .ff-el-form-control:focus { border-color: var(--prestige) !important; }
.igs-form .frm-fluent-form .ff-btn-submit,
.igs-form .frm-fluent-form button[type="submit"] {
	height: 3rem;
	padding: 0 1.75rem !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: var(--prestige) !important;
	color: var(--night) !important;
	font-family: var(--igs-mono) !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.18em;
	text-transform: none;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.2s;
}
.igs-form .frm-fluent-form .ff-btn-submit:hover { background: color-mix(in oklab, var(--prestige) 90%, transparent) !important; }
.igs-form .frm-fluent-form .ff-btn-submit:active { transform: translateY(1px); }
.igs-form .ff-message-success,
.igs-form .ff-errors-in-stack,
.igs-form .error.text-danger {
	margin-top: 0.75rem;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font-family: var(--igs-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: none;
}
.igs-form .ff-message-success { color: var(--prestige); }
.igs-form .ff-errors-in-stack,
.igs-form .error.text-danger { color: oklch(70.4% .191 22.216); }
.igs-form .frm-fluent-form .ff-el-help-message { color: var(--night-muted); }
.igs-form .frm-fluent-form a { color: var(--night-text); }

/* Contact form sits inside .dark-editorial-copy: keep the copy rhythm off the form. */
.dark-editorial-copy .igs-form p { margin-block: 0; }

/* Newsletter: input and button side by side from 640px, like the Lovable row. */
.igs-form--newsletter .frm-fluent-form .ff-el-input--label { display: none; }
.igs-form--newsletter .frm-fluent-form .ff-el-group { margin-bottom: 0; }
.igs-form--newsletter .frm-fluent-form fieldset,
.igs-form--newsletter .frm-fluent-form > .ff-el-group,
.igs-form--newsletter .frm-fluent-form { min-width: 0; }
@media (min-width: 640px) {
	.igs-form--newsletter .frm-fluent-form fieldset {
		display: flex;
		align-items: flex-start;
		gap: 0.75rem;
		margin: 0;
		padding: 0;
		border: 0;
	}
	.igs-form--newsletter .frm-fluent-form fieldset > .ff-el-group:not(.ff_submit_btn_wrapper) { flex: 1 1 auto; }
	.igs-form--newsletter .frm-fluent-form fieldset > .ff_submit_btn_wrapper { flex: 0 0 auto; }
}
.igs-form--newsletter .frm-fluent-form .ff-btn-submit { padding-inline: 1.5rem !important; }
@media (max-width: 639px) {
	.igs-form--newsletter .frm-fluent-form .ff-el-group + .ff-el-group { margin-top: 0.75rem; }
	.igs-form--newsletter .frm-fluent-form .ff-btn-submit { width: 100%; }
}

/* 16 Oct 2026: eight ticker copies instead of four, so ultrawide and zoomed-out
   viewports never outrun the track; the doubled duration keeps the same speed
   (-25% of the doubled track is exactly two copy widths, still seamless). */
.sensor-ticker-track{animation-duration:56s}

/* 16 Oct 2026, Milan: sentence case site-wide, like hirequarters.com. The source strings
   are already sentence case; only the transform made them shout. */
.uppercase { text-transform: none; }

/* 16 Oct 2026: the Complianz consent banner in the site palette. The plugin ships
   its own stylesheet with the default light scheme, hence the !important colors. */
#cmplz-cookiebanner-container .cmplz-cookiebanner {
	background-color: var(--night-panel) !important;
	color: var(--night-text) !important;
	border: 1px solid color-mix(in oklab, var(--night-text) 14%, transparent) !important;
	border-radius: 12px !important;
	box-shadow: 0 12px 40px rgb(0 0 0 / 0.45) !important;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-title,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-message,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-description,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-category-title,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-always-active,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-close {
	color: var(--night-text) !important;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-message a,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-link,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-category .cmplz-icon.cmplz-open {
	color: var(--prestige) !important;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn {
	border-radius: 8px !important;
	font-family: var(--igs-mono) !important;
	font-size: 0.8125rem !important;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn.cmplz-accept {
	background-color: var(--prestige) !important;
	border-color: var(--prestige) !important;
	color: var(--night) !important;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn.cmplz-deny,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences {
	background-color: transparent !important;
	border: 1px solid color-mix(in oklab, var(--night-text) 25%, transparent) !important;
	color: var(--night-text) !important;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-categories .cmplz-category {
	background-color: color-mix(in oklab, var(--night-text) 6%, transparent) !important;
	border-radius: 8px !important;
}
button.cmplz-manage-consent.cmplz-show {
	background-color: var(--night-panel) !important;
	border: 1px solid color-mix(in oklab, var(--night-text) 20%, transparent) !important;
	color: var(--night-text) !important;
}
