/*
Theme Name: Sentinel
Theme URI: https://tenfoldthemes.example/sentinel
Author: Tenfold Themes
Author URI: https://tenfoldthemes.example
Description: A mission-control dark theme for security and surveillance manufacturers — IP cameras, NVRs and access control presented with HUD corner brackets, radar telemetry artwork, 18 patterns, four full-page layouts and a light Daywatch style.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sentinel
Tags: block-theme, full-site-editing, block-patterns, block-styles, custom-colors, editor-style, featured-images, threaded-comments, translation-ready, wide-blocks, one-column, portfolio, e-commerce, blog
*/

/* ---------------------------------------------------------------------------
 * Focus visibility & motion
 * ------------------------------------------------------------------------- */

:where(a, button, input, summary, textarea, select, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
	border-radius: 2px;
}

::selection {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

a,
.wp-block-button__link,
.wp-element-button {
	transition: var(--wp--custom--transition);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---------------------------------------------------------------------------
 * Block styles: Group — HUD frame (cyan corner brackets)
 * ------------------------------------------------------------------------- */

.wp-block-group.is-style-hud-frame {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	padding: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--tint);
	background-image:
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)),
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)),
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)),
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)),
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)),
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)),
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)),
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary));
	background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
	background-size: 22px 2px, 2px 22px, 22px 2px, 2px 22px, 22px 2px, 2px 22px, 22px 2px, 2px 22px;
	background-repeat: no-repeat;
}

/* ---------------------------------------------------------------------------
 * Block styles: Group — Panel (flat telemetry console card)
 * ------------------------------------------------------------------------- */

.wp-block-group.is-style-panel {
	background: var(--wp--preset--color--tint);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--m);
	padding: var(--wp--preset--spacing--40);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-group.is-style-panel:hover {
	border-color: var(--wp--preset--color--primary);
	box-shadow: var(--wp--preset--shadow--lift);
}

/* ---------------------------------------------------------------------------
 * Block styles: List — Status dots (pulsing telemetry bullets)
 * ------------------------------------------------------------------------- */

ul.is-style-status-dots {
	list-style: none;
	padding-left: 0;
}

ul.is-style-status-dots > li {
	padding-left: 1.6em;
	position: relative;
	margin-bottom: 0.55em;
}

ul.is-style-status-dots > li::before {
	content: "";
	position: absolute;
	left: 0.2em;
	top: 0.52em;
	width: 0.55em;
	height: 0.55em;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(59, 201, 219, 0.18);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 18%, transparent);
	animation: sentinel-blink 2.4s ease-in-out infinite;
}

ul.is-style-status-dots > li:nth-child(3n)::before {
	background: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 3px rgba(255, 197, 61, 0.18);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--accent) 18%, transparent);
}

@keyframes sentinel-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.45; }
}

/* ---------------------------------------------------------------------------
 * Block styles: Paragraph / Heading — Telemetry label (mono eyebrow)
 * ------------------------------------------------------------------------- */

p.is-style-telemetry,
.wp-block-heading.is-style-telemetry {
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}

/* ---------------------------------------------------------------------------
 * Block styles: Separator — Scan rule (cyan fading hairline)
 * ------------------------------------------------------------------------- */

hr.is-style-scan-rule {
	border: none;
	height: 1px;
	width: 100%;
	max-width: none;
	background: linear-gradient(90deg, var(--wp--preset--color--primary) 0%, transparent 100%);
	opacity: 1;
}

/* ---------------------------------------------------------------------------
 * Details / FAQ affordance
 * ------------------------------------------------------------------------- */

.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 2rem;
}

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

.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.35em;
	font-weight: 500;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
	content: "−";
}

.wp-block-details > :not(summary) {
	font-weight: 400;
	color: var(--wp--preset--color--contrast-2);
}

/* ---------------------------------------------------------------------------
 * Small refinements
 * ------------------------------------------------------------------------- */

.wp-block-navigation .current-menu-item > a {
	color: var(--wp--preset--color--primary);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 1.5px;
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

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

.wp-block-image img {
	height: auto;
	max-width: 100%;
}
/* ---------------------------------------------------------------------------
 * Palette-slug guard: the standard palette includes a slug named "border".
 * When used as a *text* color, WordPress emits `.has-border-color`, which core
 * pairs with `:where(.has-border-color){border-style:solid}`; with the default
 * medium width that paints a stray ~3px box around the text. Zero the width
 * here — genuine borders set an explicit width (inline or via block-style
 * classes) that overrides this 0-specificity rule.
 * ------------------------------------------------------------------------- */
:where(.has-border-color) {
	border-width: 0;
}
