/* ==========================================================================
   SquidSec Theme — design system (SquidOffense + SquidScanner DNA)
   ========================================================================== */

:root {
	--sq-bg: #07060f;
	--sq-bg-elevated: #0e0c1a;
	--sq-bg-card: #12101f;
	--sq-bg-card-hover: #18162a;
	--sq-border: rgba(0, 240, 255, 0.12);
	--sq-border-strong: rgba(255, 0, 170, 0.35);
	--sq-text: #e8e6f2;
	--sq-text-muted: #9b97b0;
	--sq-text-dim: #6b6780;
	--sq-cyan: #00f0ff;
	--sq-green: #00ff9f;
	--sq-pink: #ff00aa;
	--sq-purple: #c026ff;
	--sq-orange: #ff8844;
	--sq-gradient: linear-gradient(135deg, var(--sq-cyan), var(--sq-pink) 55%, var(--sq-purple));
	--sq-glow-cyan: 0 0 24px rgba(0, 240, 255, 0.25);
	--sq-glow-pink: 0 0 28px rgba(255, 0, 170, 0.22);
	--sq-radius: 14px;
	--sq-radius-sm: 10px;
	--sq-font: "Outfit", system-ui, -apple-system, sans-serif;
	--sq-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--sq-header-h: 72px;
	--sq-container: 1120px;
	--sq-prose: 720px;
	--sq-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset-ish */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--sq-font);
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--sq-text);
	background:
		radial-gradient(1200px 600px at 10% -10%, rgba(192, 38, 255, 0.14), transparent 55%),
		radial-gradient(900px 500px at 90% 0%, rgba(0, 240, 255, 0.1), transparent 50%),
		radial-gradient(800px 400px at 50% 100%, rgba(255, 0, 170, 0.08), transparent 50%),
		var(--sq-bg);
	background-attachment: fixed;
}

body.admin-bar .sq-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .sq-header {
		top: 46px;
	}
}

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

a {
	color: var(--sq-cyan);
	text-decoration: none;
	transition: color 0.2s var(--sq-ease), opacity 0.2s;
}

a:hover,
a:focus-visible {
	color: var(--sq-pink);
}

:focus-visible {
	outline: 2px solid var(--sq-cyan);
	outline-offset: 3px;
}

/* Layout */
.sq-container {
	width: min(100% - 2rem, var(--sq-container));
	margin-inline: auto;
}

.sq-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.sq-main {
	flex: 1;
	padding: 2rem 0 4rem;
}

/* Skip link */
.sq-skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 10000;
	padding: 0.6rem 1rem;
	background: var(--sq-pink);
	color: #fff;
	border-radius: 8px;
	font-weight: 600;
}

.sq-skip-link:focus {
	top: 1rem;
	color: #fff;
}

/* ==========================================================================
   Header
   ========================================================================== */

.sq-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	height: var(--sq-header-h);
	display: flex;
	align-items: center;
	backdrop-filter: blur(16px) saturate(140%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	background: rgba(7, 6, 15, 0.82);
	border-bottom: 1px solid var(--sq-border);
}

.sq-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: min(100% - 2rem, var(--sq-container));
	margin-inline: auto;
}

.sq-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--sq-text);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.95rem;
}

.sq-brand:hover {
	color: var(--sq-text);
}

.sq-brand__mark {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	object-fit: cover;
	box-shadow: var(--sq-glow-cyan);
	border: 1px solid rgba(0, 240, 255, 0.35);
}

.sq-brand__mark--fallback {
	display: grid;
	place-items: center;
	background: var(--sq-gradient);
	color: #0a0a14;
	font-family: var(--sq-mono);
	font-weight: 700;
	font-size: 0.85rem;
}

.sq-brand__text {
	background: var(--sq-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.sq-nav {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.sq-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15rem 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sq-nav__list a {
	display: inline-block;
	padding: 0.45rem 0.7rem;
	color: var(--sq-text-muted);
	font-size: 0.88rem;
	font-weight: 500;
	border-radius: 8px;
	letter-spacing: 0.01em;
}

.sq-nav__list a:hover,
.sq-nav__list .current-menu-item > a,
.sq-nav__list .current_page_item > a {
	color: var(--sq-text);
	background: rgba(0, 240, 255, 0.08);
}

.sq-nav__cta {
	display: none;
}

.sq-nav-toggle {
	display: none;
	appearance: none;
	border: 1px solid var(--sq-border);
	background: var(--sq-bg-elevated);
	color: var(--sq-text);
	width: 44px;
	height: 44px;
	border-radius: 10px;
	cursor: pointer;
	position: relative;
}

.sq-nav-toggle span,
.sq-nav-toggle span::before,
.sq-nav-toggle span::after {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--sq-cyan);
	border-radius: 2px;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	transition: transform 0.25s var(--sq-ease), opacity 0.2s;
}

.sq-nav-toggle span::before,
.sq-nav-toggle span::after {
	content: "";
}

.sq-nav-toggle span::before {
	transform: translate(-50%, calc(-50% - 6px));
}

.sq-nav-toggle span::after {
	transform: translate(-50%, calc(-50% + 6px));
}

.sq-nav-toggle[aria-expanded="true"] span {
	background: transparent;
}

.sq-nav-toggle[aria-expanded="true"] span::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.sq-nav-toggle[aria-expanded="true"] span::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 900px) {
	.sq-nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.sq-nav {
		position: fixed;
		inset: var(--sq-header-h) 0 auto 0;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		pointer-events: none;
		background: rgba(7, 6, 15, 0.96);
		border-bottom: 1px solid var(--sq-border);
		transition: max-height 0.35s var(--sq-ease), opacity 0.25s;
		padding: 0 1rem;
	}

	body.admin-bar .sq-nav {
		top: calc(var(--sq-header-h) + 46px);
	}

	@media (min-width: 783px) {
		body.admin-bar .sq-nav {
			top: calc(var(--sq-header-h) + 32px);
		}
	}

	.sq-nav.is-open {
		max-height: min(80vh, 520px);
		opacity: 1;
		pointer-events: auto;
		overflow-y: auto;
		padding: 1rem;
	}

	.sq-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0.25rem;
	}

	.sq-nav__list a {
		padding: 0.85rem 1rem;
		font-size: 1rem;
		border: 1px solid transparent;
	}

	.sq-nav__list a:hover {
		border-color: var(--sq-border);
	}
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */

.sq-hero {
	padding: 2.5rem 0 1.5rem;
	border-bottom: 1px solid var(--sq-border);
	margin-bottom: 2rem;
}

.sq-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--sq-mono);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sq-green);
	margin: 0 0 0.75rem;
}

.sq-hero__eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sq-green);
	box-shadow: 0 0 12px var(--sq-green);
	animation: sq-pulse 2s infinite;
}

@keyframes sq-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.45; }
}

.sq-hero h1 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 4vw, 2.6rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.sq-hero h1 span {
	background: var(--sq-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.sq-hero p {
	margin: 0;
	max-width: 40rem;
	color: var(--sq-text-muted);
	font-size: 1.05rem;
}

.sq-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

/* Buttons */
.sq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.7rem 1.15rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.92rem;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.2s var(--sq-ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
	text-decoration: none;
}

.sq-btn:hover {
	transform: translateY(-1px);
}

.sq-btn--primary {
	background: var(--sq-gradient);
	color: #0a0a14;
	box-shadow: var(--sq-glow-pink);
}

.sq-btn--primary:hover {
	color: #0a0a14;
}

.sq-btn--ghost {
	background: transparent;
	border-color: var(--sq-border);
	color: var(--sq-text);
}

.sq-btn--ghost:hover {
	border-color: var(--sq-cyan);
	color: var(--sq-cyan);
	box-shadow: var(--sq-glow-cyan);
}

/* ==========================================================================
   Post cards grid
   ========================================================================== */

.sq-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.sq-section-head h2 {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-family: var(--sq-mono);
	color: var(--sq-text-muted);
}

.sq-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

@media (max-width: 960px) {
	.sq-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 620px) {
	.sq-grid {
		grid-template-columns: 1fr;
	}
}

.sq-card {
	display: flex;
	flex-direction: column;
	background: var(--sq-bg-card);
	border: 1px solid var(--sq-border);
	border-radius: var(--sq-radius);
	overflow: hidden;
	transition: border-color 0.25s var(--sq-ease), transform 0.25s var(--sq-ease), box-shadow 0.25s, background 0.25s;
	height: 100%;
}

.sq-card:hover {
	border-color: rgba(0, 240, 255, 0.35);
	transform: translateY(-3px);
	box-shadow: var(--sq-glow-cyan);
	background: var(--sq-bg-card-hover);
}

.sq-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0a0a18;
}

.sq-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s var(--sq-ease);
}

.sq-card:hover .sq-card__media img {
	transform: scale(1.04);
}

.sq-card__media-placeholder {
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(255, 0, 170, 0.12));
	display: grid;
	place-items: center;
	font-family: var(--sq-mono);
	color: var(--sq-text-dim);
	font-size: 0.8rem;
}

.sq-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 1.1rem 1.15rem 1.25rem;
	flex: 1;
}

.sq-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.65rem;
	font-family: var(--sq-mono);
	font-size: 0.72rem;
	color: var(--sq-text-dim);
	letter-spacing: 0.02em;
}

.sq-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 600;
	font-family: var(--sq-mono);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: rgba(192, 38, 255, 0.12);
	color: #e0a0ff;
	border: 1px solid rgba(192, 38, 255, 0.3);
}

.sq-pill a {
	color: inherit;
}

.sq-card__title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.3;
	font-weight: 700;
}

.sq-card__title a {
	color: var(--sq-text);
}

.sq-card__title a:hover {
	color: var(--sq-cyan);
}

.sq-card__excerpt {
	margin: 0;
	color: var(--sq-text-muted);
	font-size: 0.92rem;
	line-height: 1.55;
	flex: 1;
}

.sq-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: 0.35rem;
	padding-top: 0.65rem;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	font-size: 0.82rem;
	color: var(--sq-text-dim);
}

.sq-card__read {
	font-weight: 600;
	color: var(--sq-cyan);
	font-family: var(--sq-mono);
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Featured first card spans 2 cols on large screens */
.sq-grid--home .sq-card:first-child {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	min-height: 280px;
}

.sq-grid--home .sq-card:first-child .sq-card__media {
	aspect-ratio: auto;
	min-height: 100%;
}

.sq-grid--home .sq-card:first-child .sq-card__title {
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.sq-grid--home .sq-card:first-child .sq-card__excerpt {
	font-size: 1rem;
}

@media (max-width: 760px) {
	.sq-grid--home .sq-card:first-child {
		grid-template-columns: 1fr;
	}

	.sq-grid--home .sq-card:first-child .sq-card__media {
		aspect-ratio: 16 / 9;
		min-height: 0;
	}
}

/* ==========================================================================
   Single / page content
   ========================================================================== */

.sq-article {
	max-width: var(--sq-prose);
	margin: 0 auto;
}

.sq-article--wide {
	max-width: 860px;
}

.sq-article__header {
	margin-bottom: 1.75rem;
}

.sq-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin-bottom: 0.85rem;
	font-family: var(--sq-mono);
	font-size: 0.78rem;
	color: var(--sq-text-dim);
}

.sq-article__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.7rem, 4vw, 2.4rem);
	line-height: 1.18;
	letter-spacing: -0.02em;
	font-weight: 800;
}

.sq-article__hero {
	margin: 0 0 1.75rem;
	border-radius: var(--sq-radius);
	overflow: hidden;
	border: 1px solid var(--sq-border);
	box-shadow: var(--sq-glow-cyan);
}

.sq-article__hero img {
	width: 100%;
	height: auto;
	display: block;
}

.sq-content {
	font-size: 1.06rem;
	line-height: 1.75;
	color: #d5d2e4;
}

.sq-content > *:first-child {
	margin-top: 0;
}

.sq-content h2,
.sq-content h3,
.sq-content h4 {
	color: var(--sq-text);
	line-height: 1.25;
	margin: 2rem 0 0.75rem;
	letter-spacing: -0.01em;
}

.sq-content h2 {
	font-size: 1.45rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--sq-border);
}

.sq-content h3 {
	font-size: 1.2rem;
	color: var(--sq-cyan);
}

.sq-content a {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(0, 240, 255, 0.4);
}

.sq-content a:hover {
	text-decoration-color: var(--sq-pink);
}

.sq-content p,
.sq-content ul,
.sq-content ol {
	margin: 0 0 1.15rem;
}

.sq-content ul,
.sq-content ol {
	padding-left: 1.25rem;
}

.sq-content li + li {
	margin-top: 0.35rem;
}

.sq-content blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.15rem;
	border-left: 3px solid var(--sq-pink);
	background: rgba(255, 0, 170, 0.06);
	border-radius: 0 var(--sq-radius-sm) var(--sq-radius-sm) 0;
	color: var(--sq-text);
	font-style: italic;
}

.sq-content pre,
.sq-content code {
	font-family: var(--sq-mono);
}

.sq-content code {
	font-size: 0.88em;
	background: rgba(0, 240, 255, 0.08);
	border: 1px solid rgba(0, 240, 255, 0.15);
	padding: 0.1em 0.35em;
	border-radius: 5px;
	color: var(--sq-green);
}

.sq-content pre {
	padding: 1rem 1.1rem;
	overflow-x: auto;
	background: #0a0914;
	border: 1px solid var(--sq-border);
	border-radius: var(--sq-radius-sm);
	margin: 0 0 1.25rem;
	font-size: 0.88rem;
	line-height: 1.55;
	box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.04);
}

.sq-content pre code {
	background: none;
	border: 0;
	padding: 0;
	color: #d0cce0;
}

.sq-content img,
.sq-content figure {
	border-radius: var(--sq-radius-sm);
}

.sq-content figure {
	margin: 1.5rem 0;
}

.sq-content figcaption {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: var(--sq-text-dim);
	text-align: center;
	font-family: var(--sq-mono);
}

.sq-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.25rem;
	font-size: 0.92rem;
	overflow-x: auto;
	display: block;
}

.sq-content th,
.sq-content td {
	border: 1px solid var(--sq-border);
	padding: 0.55rem 0.7rem;
	text-align: left;
}

.sq-content th {
	background: rgba(0, 240, 255, 0.06);
	color: var(--sq-cyan);
	font-family: var(--sq-mono);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.sq-content hr {
	border: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--sq-pink), var(--sq-cyan), transparent);
	margin: 2rem 0;
}

/* WP block alignment */
.sq-content .alignwide {
	max-width: min(100vw - 2rem, 960px);
	margin-left: auto;
	margin-right: auto;
}

.sq-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	border-radius: 0;
}

.sq-content .wp-block-image img {
	height: auto;
}

/* Tags / footer of article */
.sq-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 2rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--sq-border);
}

.sq-article__tags a {
	font-family: var(--sq-mono);
	font-size: 0.72rem;
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	border: 1px solid var(--sq-border);
	color: var(--sq-text-muted);
	background: rgba(255, 255, 255, 0.02);
}

.sq-article__tags a:hover {
	border-color: var(--sq-cyan);
	color: var(--sq-cyan);
}

.sq-article__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--sq-border);
}

@media (max-width: 560px) {
	.sq-article__nav {
		grid-template-columns: 1fr;
	}
}

.sq-article__nav a {
	display: block;
	padding: 1rem;
	border-radius: var(--sq-radius-sm);
	border: 1px solid var(--sq-border);
	background: var(--sq-bg-card);
	color: var(--sq-text);
}

.sq-article__nav a:hover {
	border-color: var(--sq-pink);
	box-shadow: var(--sq-glow-pink);
	color: var(--sq-text);
}

.sq-article__nav span {
	display: block;
	font-family: var(--sq-mono);
	font-size: 0.7rem;
	color: var(--sq-text-dim);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 0.35rem;
}

/* Share (from SquidSec Performance) polish */
.squidsec-share {
	margin: 2rem 0 !important;
	padding: 1rem 1.15rem !important;
	border: 1px solid var(--sq-border) !important;
	border-radius: var(--sq-radius-sm) !important;
	background: var(--sq-bg-card) !important;
	border-top: 1px solid var(--sq-border) !important;
}

.squidsec-share a {
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	border: 1px solid var(--sq-border);
	color: var(--sq-text-muted) !important;
	text-decoration: none !important;
	font-size: 0.85rem;
}

.squidsec-share a:hover {
	border-color: var(--sq-cyan);
	color: var(--sq-cyan) !important;
}

/* Contact form polish */
.squidsec-contact-form {
	max-width: 640px;
	padding: 1.25rem;
	border: 1px solid var(--sq-border);
	border-radius: var(--sq-radius);
	background: var(--sq-bg-card);
}

.squidsec-contact-form label {
	font-size: 0.9rem;
	color: var(--sq-text-muted);
}

.squidsec-contact-form input,
.squidsec-contact-form textarea {
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.7rem 0.8rem !important;
	border-radius: 10px;
	border: 1px solid var(--sq-border);
	background: var(--sq-bg);
	color: var(--sq-text);
	font-family: var(--sq-font);
	font-size: 1rem;
}

.squidsec-contact-form input:focus,
.squidsec-contact-form textarea:focus {
	border-color: var(--sq-cyan);
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}

.squidsec-contact-form button[type="submit"] {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 0.75rem 1.4rem !important;
	font-weight: 700;
	font-family: var(--sq-font);
	background: var(--sq-gradient);
	color: #0a0a14;
	cursor: pointer;
	box-shadow: var(--sq-glow-pink);
}

.squidsec-form-success {
	border-color: rgba(0, 255, 159, 0.4) !important;
	background: rgba(0, 255, 159, 0.08) !important;
	color: var(--sq-text) !important;
	border-radius: var(--sq-radius-sm);
}

.squidsec-form-error {
	border-radius: var(--sq-radius-sm);
}

/* ==========================================================================
   Archive / search / 404
   ========================================================================== */

.sq-page-header {
	margin-bottom: 1.75rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--sq-border);
}

.sq-page-header h1 {
	margin: 0 0 0.4rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.sq-page-header p {
	margin: 0;
	color: var(--sq-text-muted);
}

.sq-search {
	display: flex;
	gap: 0.5rem;
	max-width: 420px;
	margin: 1rem 0 0;
}

.sq-search input[type="search"] {
	flex: 1;
	padding: 0.7rem 0.9rem;
	border-radius: 999px;
	border: 1px solid var(--sq-border);
	background: var(--sq-bg-card);
	color: var(--sq-text);
	font-family: var(--sq-font);
}

.sq-search button {
	padding: 0.7rem 1.1rem;
	border-radius: 999px;
	border: 0;
	background: var(--sq-gradient);
	color: #0a0a14;
	font-weight: 700;
	cursor: pointer;
	font-family: var(--sq-font);
}

.sq-empty {
	text-align: center;
	padding: 3rem 1rem;
	border: 1px dashed var(--sq-border);
	border-radius: var(--sq-radius);
	background: var(--sq-bg-card);
}

/* Pagination */
.sq-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
	margin-top: 2.5rem;
}

.sq-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
}

.sq-pagination a,
.sq-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.65rem;
	border-radius: 10px;
	border: 1px solid var(--sq-border);
	background: var(--sq-bg-card);
	color: var(--sq-text-muted);
	font-family: var(--sq-mono);
	font-size: 0.85rem;
}

.sq-pagination a:hover {
	border-color: var(--sq-cyan);
	color: var(--sq-cyan);
}

.sq-pagination .current {
	background: rgba(0, 240, 255, 0.12);
	border-color: var(--sq-cyan);
	color: var(--sq-cyan);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.sq-footer {
	margin-top: auto;
	border-top: 1px solid var(--sq-border);
	background: rgba(7, 6, 15, 0.9);
	padding: 2.5rem 0 1.5rem;
}

.sq-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 2rem;
	margin-bottom: 2rem;
}

@media (max-width: 800px) {
	.sq-footer__grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

.sq-footer__brand {
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 0.6rem;
	background: var(--sq-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	display: inline-block;
}

.sq-footer p {
	margin: 0;
	color: var(--sq-text-muted);
	font-size: 0.92rem;
}

.sq-footer h3 {
	margin: 0 0 0.75rem;
	font-family: var(--sq-mono);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sq-text-dim);
}

.sq-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sq-footer li + li {
	margin-top: 0.4rem;
}

.sq-footer a {
	color: var(--sq-text-muted);
}

.sq-footer a:hover {
	color: var(--sq-cyan);
}

.sq-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	font-size: 0.82rem;
	color: var(--sq-text-dim);
	font-family: var(--sq-mono);
}

.sq-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	border: 1px solid rgba(0, 255, 159, 0.3);
	color: var(--sq-green);
	font-size: 0.72rem;
}

/* Comments */
.sq-comments {
	max-width: var(--sq-prose);
	margin: 2.5rem auto 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--sq-border);
}

.sq-comments h2,
.sq-comments h3 {
	font-size: 1.1rem;
}

.comment-form input,
.comment-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.65rem 0.8rem;
	border-radius: 10px;
	border: 1px solid var(--sq-border);
	background: var(--sq-bg-card);
	color: var(--sq-text);
	font-family: var(--sq-font);
}

.comment-form .form-submit input {
	width: auto;
	background: var(--sq-gradient);
	border: 0;
	color: #0a0a14;
	font-weight: 700;
	cursor: pointer;
	padding: 0.65rem 1.2rem;
	border-radius: 999px;
}

/* Gutenberg / WP core widgets on pages */
.wp-block-separator {
	border: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--sq-pink), var(--sq-cyan), transparent);
}

.wp-block-file a.wp-block-file__button {
	background: var(--sq-gradient) !important;
	color: #0a0a14 !important;
	border-radius: 999px !important;
}

/* Click to top from SquidSec plugin — leave room */
#squidsec-ctt {
	border: 1px solid rgba(0, 240, 255, 0.4) !important;
	box-shadow: var(--sq-glow-cyan) !important;
}

/* Screen reader */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
