/*
Theme Name: Kalzac
Theme URI: https://kalzac.net
Author: Kalzac
Description: A warm, outback-inspired WordPress block theme for sharing WHM, cPanel, and WordPress fixes. Built for technical content with syntax-highlighted code blocks, download components, and clean readable layouts.
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: kalzac
Tags: block-patterns, blog, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, one-column, two-columns, wide-blocks
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
*/

/* ------------------------------------------------------------------ */
/*  Base & resets                                                      */
/* ------------------------------------------------------------------ */

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

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

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	scroll-behavior: smooth;
}

/* ------------------------------------------------------------------ */
/*  Sticky header                                                      */
/* ------------------------------------------------------------------ */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Backdrop pseudo for scrolled-state background — keeps header clean
   so the mobile nav overlay's position:fixed targets the viewport. */
.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;
}

body.is-scrolled .wp-site-blocks > header.wp-block-template-part::before {
	background: var(--wp--preset--color--surface);
	box-shadow: 0 1px 0 var(--wp--preset--color--terminal-chrome);
}

/* ------------------------------------------------------------------ */
/*  Typography polish                                                  */
/* ------------------------------------------------------------------ */

body {
	text-rendering: optimizeLegibility;
	font-feature-settings: "kern" 1, "liga" 1;
}

p {
	max-width: 70ch;
}

/* Heading accent underline — ochre bottom border on h2 */
.wp-block-post-content h2,
.entry-content h2 {
	padding-bottom: 0.35em;
	border-bottom: 3px solid var(--wp--preset--color--accent-ochre);
	display: inline-block;
}

/* Tighter heading spacing inside post content */
.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4 {
	margin-top: 2em;
	margin-bottom: 0.5em;
}

/* ------------------------------------------------------------------ */
/*  Link styles                                                        */
/* ------------------------------------------------------------------ */

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
	text-decoration-color: var(--wp--preset--color--accent-ochre);
}

/* Remove underline from nav links */
.wp-block-navigation a {
	text-decoration: none;
}

.wp-block-navigation a:hover {
	color: var(--wp--preset--color--accent-ochre);
}

/* ------------------------------------------------------------------ */
/*  Button styles                                                      */
/* ------------------------------------------------------------------ */

.wp-block-button .wp-block-button__link {
	transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
	text-decoration: none;
}

.wp-block-button .wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.wp-block-button .wp-block-button__link:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Outline button variant */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid var(--wp--preset--color--accent-blue);
	color: var(--wp--preset--color--accent-blue);
	position: relative;
	overflow: hidden;
}

.wp-block-button.is-style-outline .wp-block-button__link::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--wp--preset--color--accent-blue);
	z-index: -1;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	color: var(--wp--preset--color--background);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover::before {
	transform: scaleX(1);
	transform-origin: left;
}

/* Download button style */
.wp-block-button.is-style-download .wp-block-button__link {
	background: var(--wp--preset--color--accent-ochre);
	color: var(--wp--preset--color--background);
	border-radius: 50px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-button.is-style-download .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-blue);
}

/* ------------------------------------------------------------------ */
/*  Code blocks & terminal styling                                     */
/* ------------------------------------------------------------------ */

.wp-block-code,
.wp-block-preformatted {
	position: relative;
	overflow-x: auto;
	tab-size: 4;
}

.wp-block-code code {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
	display: block;
	white-space: pre;
	color: var(--wp--preset--color--text);
}

/* Terminal window styling */
.terminal-window {
	background: var(--wp--preset--color--terminal-bg);
	border: 1px solid var(--wp--preset--color--terminal-chrome);
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9),
	            0 0 40px -10px rgba(212, 130, 10, 0.08);
}

.terminal-header {
	background: var(--wp--preset--color--terminal-chrome);
	padding: 0.85rem 1.25rem;
	display: flex;
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.terminal-dots {
	display: flex;
	gap: 6px;
}

.terminal-dots .dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.dot.rust-1 { background: #A03A15; }
.dot.rust-2 { background: var(--wp--preset--color--accent-ochre); }
.dot.rust-3 { background: var(--wp--preset--color--muted); }

.terminal-title {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
	margin-left: 1.25rem;
	flex-grow: 1;
	letter-spacing: 0.05em;
}

.terminal-body {
	padding: 1.75rem 1.5rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
	color: var(--wp--preset--color--text);
	overflow-x: auto;
}

.terminal-body pre {
	margin: 0;
}

/* Syntax highlighting tokens */
.term-comment { color: var(--wp--preset--color--muted); }
.term-command { color: var(--wp--preset--color--accent-blue); }
.term-string  { color: var(--wp--preset--color--accent-ochre); }
.term-keyword { color: var(--wp--preset--color--accent-blue); }
.term-function { color: var(--wp--preset--color--accent-ochre); }
.term-variable { color: var(--wp--preset--color--text); }
.term-flag     { color: var(--wp--preset--color--muted); }

/* Code block copy button */
.copy-btn {
	background: transparent;
	border: 1px solid rgba(0, 191, 255, 0.3);
	color: var(--wp--preset--color--accent-blue);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	padding: 0.35rem 0.85rem;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.2s ease;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.copy-btn:hover {
	background: var(--wp--preset--color--accent-blue);
	color: var(--wp--preset--color--terminal-chrome);
}

.copy-btn.copied {
	border-color: var(--wp--preset--color--accent-ochre);
	color: var(--wp--preset--color--accent-ochre);
}

/* ------------------------------------------------------------------ */
/*  Hero section                                                       */
/* ------------------------------------------------------------------ */

.hero-section {
	position: relative;
	overflow: hidden;
}

.hero-slash {
	position: absolute;
	top: 0;
	left: 0;
	width: 58vw;
	height: 100%;
	background-color: var(--wp--preset--color--surface);
	background-image: radial-gradient(circle at 15% 50%, rgba(212, 130, 10, 0.04) 0%, transparent 60%);
	clip-path: polygon(0 0, 100% 0, calc(100% - 15vw) 100%, 0 100%);
	z-index: 1;
	border-right: 1px solid rgba(255, 255, 255, 0.02);
	pointer-events: none;
}

.hero-image-container {
	position: absolute;
	top: 0;
	right: 0;
	width: 60vw;
	height: 100%;
	z-index: 0;
}

.hero-image-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.65;
	mix-blend-mode: luminosity;
	filter: sepia(0.4) saturate(1.5) hue-rotate(-15deg);
}

.hero-image-container::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to right, var(--wp--preset--color--background) 0%, transparent 40%, transparent 80%, var(--wp--preset--color--background) 100%),
		linear-gradient(to top, var(--wp--preset--color--background) 0%, transparent 20%);
}

/* Badge pill (hero tag) */
.badge-pill {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1rem;
	letter-spacing: 11px;
	color: var(--wp--preset--color--accent-ochre);
	border: 1px solid rgba(212, 130, 10, 0.4);
	padding: 0.4rem 1.25rem 0.4rem calc(1.25rem + 11px);
	border-radius: 50px;
	display: inline-block;
	text-transform: uppercase;
	background: rgba(212, 130, 10, 0.05);
}

/* ------------------------------------------------------------------ */
/*  Ticker bar                                                         */
/* ------------------------------------------------------------------ */

.ticker-bar {
	background: rgba(28, 13, 0, 0.9);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-top: 1px solid rgba(212, 130, 10, 0.15);
	padding: 1.25rem 0;
	display: flex;
	justify-content: center;
}

.ticker-content {
	font-family: var(--wp--preset--font-family--heading);
	color: rgba(244, 235, 225, 0.6);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.15em;
	display: flex;
	align-items: center;
	text-transform: uppercase;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.ticker-sep {
	display: inline-block;
	width: 5px;
	height: 5px;
	background: var(--wp--preset--color--accent-ochre);
	transform: rotate(45deg);
	margin: 0 1.5rem;
	opacity: 0.7;
	flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/*  Card & surface styling                                             */
/* ------------------------------------------------------------------ */

.has-surface-background-color {
	border: 1px solid var(--wp--preset--color--terminal-chrome);
}

/* Post cards in query loops */
.wp-block-post {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-post:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Post featured images — consistent card height with or without images */
.wp-block-post-featured-image {
	position: relative;
	overflow: hidden;
}

/* Inside grids/loops: maintain aspect ratio even when no image exists */
.wp-block-post-template .wp-block-post-featured-image {
	aspect-ratio: 16 / 9;
	background: var(--wp--preset--color--terminal-chrome);
	border-radius: 4px 4px 0 0;
}

/* Empty featured-image placeholder icon */
.wp-block-post-template .wp-block-post-featured-image:empty::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 48px;
	height: 48px;
	transform: translate(-50%, -50%);
	opacity: 0.15;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4EBE1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
}

.wp-block-post-featured-image img {
	border-radius: 4px 4px 0 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter 0.3s ease, opacity 0.3s ease;
	filter: saturate(0.85);
}

.wp-block-post:hover .wp-block-post-featured-image img {
	filter: saturate(1);
	opacity: 0.9;
}

/* Single post featured image — no placeholder needed, just hide gracefully */
.wp-block-post-featured-image:not(.wp-block-post-template .wp-block-post-featured-image):empty {
	display: none;
}

/* ------------------------------------------------------------------ */
/*  Image treatments                                                   */
/* ------------------------------------------------------------------ */

.wp-block-image img {
	border-radius: 4px;
}

.wp-block-image.is-style-rounded img {
	border-radius: 6px;
}

/* Warm tonal overlay for thematic imagery */
.wp-block-cover::after {
	mix-blend-mode: multiply;
}

/* ------------------------------------------------------------------ */
/*  Breadcrumb navigation                                              */
/* ------------------------------------------------------------------ */

.breadcrumb-nav {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
	letter-spacing: 0.05em;
}

.breadcrumb-nav a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
	color: var(--wp--preset--color--accent-blue);
}

.breadcrumb-nav .breadcrumb-separator {
	margin: 0 0.5em;
	opacity: 0.5;
}

/* ------------------------------------------------------------------ */
/*  Sidebar widgets                                                    */
/* ------------------------------------------------------------------ */

.wp-block-categories li,
.wp-block-latest-posts li {
	padding: 0.5em 0;
	border-bottom: 1px solid var(--wp--preset--color--terminal-chrome);
}

.wp-block-categories li:last-child,
.wp-block-latest-posts li:last-child {
	border-bottom: 0;
}

.wp-block-categories a,
.wp-block-latest-posts a {
	text-decoration: none;
	color: var(--wp--preset--color--text);
	transition: color 0.2s ease;
}

.wp-block-categories a:hover,
.wp-block-latest-posts a:hover {
	color: var(--wp--preset--color--accent-ochre);
}

.wp-block-tag-cloud a {
	background: var(--wp--preset--color--terminal-chrome);
	color: var(--wp--preset--color--muted);
	padding: 0.25em 0.65em;
	border-radius: 3px;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
	font-size: var(--wp--preset--font-size--x-small) !important;
}

.wp-block-tag-cloud a:hover {
	background: var(--wp--preset--color--accent-ochre);
	color: var(--wp--preset--color--background);
}

/* ------------------------------------------------------------------ */
/*  Search block                                                       */
/* ------------------------------------------------------------------ */

.wp-block-search__input {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--terminal-chrome);
	color: var(--wp--preset--color--text);
	border-radius: 4px;
	padding: 0.65rem 1rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	transition: border-color 0.2s ease;
}

.wp-block-search__input:focus {
	border-color: var(--wp--preset--color--accent-blue);
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 191, 255, 0.15);
}

.wp-block-search__input::placeholder {
	color: var(--wp--preset--color--muted);
}

.wp-block-search__button {
	background: var(--wp--preset--color--accent-blue);
	color: var(--wp--preset--color--background);
	border: none;
	border-radius: 4px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: var(--wp--preset--font-size--small);
	cursor: pointer;
	transition: background-color 0.2s ease;
	padding: 0.65rem 1.25rem;
}

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

/* ------------------------------------------------------------------ */
/*  Quote block embellishment                                          */
/* ------------------------------------------------------------------ */

.wp-block-quote cite {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
	letter-spacing: 0.05em;
	font-style: normal;
	display: block;
	margin-top: 0.75em;
}

.wp-block-quote::before {
	content: none;
}

/* ------------------------------------------------------------------ */
/*  Separator                                                          */
/* ------------------------------------------------------------------ */

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

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	width: 80px;
}

.wp-block-separator.is-style-dots::before {
	color: var(--wp--preset--color--accent-ochre);
}

/* ------------------------------------------------------------------ */
/*  Tables                                                             */
/* ------------------------------------------------------------------ */

.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-table th {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: var(--wp--preset--font-size--x-small);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	border-bottom: 2px solid var(--wp--preset--color--accent-ochre);
	text-align: left;
	padding: 0.75em 1em;
}

.wp-block-table td {
	border-bottom: 1px solid var(--wp--preset--color--terminal-chrome);
	padding: 0.75em 1em;
	color: var(--wp--preset--color--text);
}

.wp-block-table tr:hover td {
	background: rgba(28, 13, 0, 0.5);
}

/* ------------------------------------------------------------------ */
/*  Lists inside post content                                          */
/* ------------------------------------------------------------------ */

.wp-block-post-content ul,
.wp-block-post-content ol {
	padding-left: 1.5em;
}

.wp-block-post-content li {
	margin-bottom: 0.35em;
}

.wp-block-post-content li::marker {
	color: var(--wp--preset--color--accent-ochre);
}

/* ------------------------------------------------------------------ */
/*  Site title polish                                                  */
/* ------------------------------------------------------------------ */

.wp-block-site-title a {
	text-decoration: none;
	color: var(--wp--preset--color--text);
	transition: color 0.2s ease;
}

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

/* ------------------------------------------------------------------ */
/*  Post terms (category / tag labels)                                 */
/* ------------------------------------------------------------------ */

.wp-block-post-terms a {
	text-decoration: none;
	color: var(--wp--preset--color--accent-ochre);
	transition: color 0.2s ease;
}

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

/* ------------------------------------------------------------------ */
/*  Post navigation links                                              */
/* ------------------------------------------------------------------ */

.wp-block-post-navigation-link a {
	text-decoration: none;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--accent-blue);
	transition: color 0.2s ease;
}

.wp-block-post-navigation-link a:hover {
	color: var(--wp--preset--color--accent-ochre);
}

/* ------------------------------------------------------------------ */
/*  Pagination                                                         */
/* ------------------------------------------------------------------ */

.wp-block-query-pagination {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-query-pagination a {
	color: var(--wp--preset--color--accent-blue);
	text-decoration: none;
	transition: color 0.2s ease;
}

.wp-block-query-pagination a:hover {
	color: var(--wp--preset--color--accent-ochre);
}

.wp-block-query-pagination-numbers .page-numbers {
	padding: 0.35em 0.65em;
	margin: 0 0.15em;
}

.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--wp--preset--color--accent-ochre);
	color: var(--wp--preset--color--background);
	border-radius: 3px;
}

/* ------------------------------------------------------------------ */
/*  Footer credit                                                      */
/* ------------------------------------------------------------------ */

.site-footer a {
	color: var(--wp--preset--color--accent-blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

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

/* ------------------------------------------------------------------ */
/*  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--40);
	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);
}

/* ------------------------------------------------------------------ */
/*  Force post title centering in full-post query on homepage          */
/* ------------------------------------------------------------------ */

.wp-block-query.reveal-on-scroll .wp-block-post-title,
.wp-block-query.reveal-on-scroll h1.wp-block-post-title,
.wp-block-query.reveal-on-scroll h2.wp-block-post-title {
	text-align: center !important;
}

/* ------------------------------------------------------------------ */
/*  Selection color                                                    */
/* ------------------------------------------------------------------ */

::selection {
	background: var(--wp--preset--color--accent-ochre);
	color: var(--wp--preset--color--background);
}

::-moz-selection {
	background: var(--wp--preset--color--accent-ochre);
	color: var(--wp--preset--color--background);
}

/* ------------------------------------------------------------------ */
/*  Scrollbar                                                          */
/* ------------------------------------------------------------------ */

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

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

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

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

/* Firefox */
html {
	scrollbar-color: var(--wp--preset--color--terminal-chrome) var(--wp--preset--color--background);
	scrollbar-width: thin;
}

/* ------------------------------------------------------------------ */
/*  Focus styles                                                       */
/* ------------------------------------------------------------------ */

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

/* ------------------------------------------------------------------ */
/*  Invert-on-scroll header (variant 2 — palette-aware, safe in editor */
/*  because body.is-scrolled only toggles on the frontend)             */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
	.wp-site-blocks > header.wp-block-template-part > .wp-block-group {
		transition: background-color 0.3s ease, color 0.3s ease;
	}
}

/* ------------------------------------------------------------------ */
/*  Search box (header variant — mirrors the picked design)            */
/* ------------------------------------------------------------------ */

.search-box {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 0.5rem 1rem;
	border-radius: 4px;
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.search-box:hover {
	border-color: rgba(255, 255, 255, 0.25);
}

/* ------------------------------------------------------------------ */
/*  Loop layout utilities                                              */
/* ------------------------------------------------------------------ */
/* These classes are wired to the wp:query blocks emitted by
   content/pages and templates. Do not rename. */

/* 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--terminal-chrome);
	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--terminal-chrome);
	opacity: 0.4;
}
.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--accent-ochre);
	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;
	}
}

/* ------------------------------------------------------------------ */
/*  Responsive adjustments                                             */
/* ------------------------------------------------------------------ */

@media (max-width: 781px) {
	.hero-slash {
		display: none;
	}

	.hero-image-container {
		width: 100%;
		opacity: 0.3;
	}

	.ticker-sep {
		margin: 0 0.75rem;
	}

	.terminal-body {
		font-size: var(--wp--preset--font-size--x-small);
		padding: 1rem;
	}
}

@media (max-width: 480px) {
	.ticker-content {
		font-size: var(--wp--preset--font-size--x-small);
		letter-spacing: 0.1em;
	}
}