/* =====================================================
   POLICE INSTITUTIONAL THEME — CORE / BASE STYLES
   Design tokens are overridden inline per Customizer values
   (see inc/customizer.php :: pit_customizer_css_vars()).
   ===================================================== */

:root {
	--primary: #07111F;
	--secondary: #0D1B2A;
	--accent: #C9A227;
	--white: #FFFFFF;
	--text: #1A1A1A;
	--muted: #6B7280;
	--border: rgba(255, 255, 255, .15);
	--border-dark: rgba(0, 0, 0, .08);
	--radius: 10px;
	--shadow-soft: 0 10px 30px rgba(7, 17, 31, .12);
	--shadow-card: 0 4px 18px rgba(7, 17, 31, .08);
	--container: 1200px;
	--font-base: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--transition-fast: .25s ease;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-base);
	color: var(--text);
	background: var(--white);
	line-height: 1.6;
	font-size: 16px;
	overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.pit-container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 20px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
	border: 0; padding: 0; margin: -1px;
}
.screen-reader-text:focus {
	position: fixed !important;
	top: 10px; left: 10px;
	width: auto; height: auto;
	padding: 12px 18px;
	background: var(--primary);
	color: var(--white);
	z-index: 100000;
	border-radius: 6px;
	clip: auto;
}

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

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; margin: 0 0 .5em; color: var(--primary); }
h1 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
small { font-size: .85rem; color: var(--muted); }

.pit-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--primary);
	font-weight: 700;
	font-size: .95rem;
	border: 0;
	cursor: pointer;
	transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.pit-btn:hover, .pit-btn:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

.pit-section { padding: 64px 0; }
.pit-section-title {
	text-align: center;
	margin-bottom: 36px;
	text-transform: uppercase;
	letter-spacing: .06em;
	position: relative;
}
.pit-section-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	background: var(--accent);
	margin: 14px auto 0;
	border-radius: 3px;
}

.pit-skip-link { z-index: 100000; }

/* Site content wrapper */
#pit-main { min-height: 40vh; }

/* Generic page/single content typography */
.pit-content-body { max-width: 780px; margin-inline: auto; }
.pit-content-body img { border-radius: var(--radius); }
.pit-content-body a { color: var(--secondary); text-decoration: underline; text-underline-offset: 3px; }
.pit-content-body blockquote {
	border-left: 4px solid var(--accent);
	margin: 1.5em 0;
	padding: .5em 1.2em;
	background: #f7f7f5;
	border-radius: 0 8px 8px 0;
	color: var(--muted);
	font-style: italic;
}

.pit-breadcrumb {
	font-size: .85rem;
	color: var(--muted);
	margin-bottom: 18px;
}
.pit-breadcrumb a { text-decoration: underline; }

.pit-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
	flex-wrap: wrap;
}
.pit-pagination a, .pit-pagination span {
	padding: 8px 14px;
	border: 1px solid var(--border-dark);
	border-radius: 6px;
	font-size: .9rem;
}
.pit-pagination .current { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pit-pagination a:hover { border-color: var(--accent); }

.pit-empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* 404 */
.pit-404 { text-align: center; padding: 100px 20px; }
.pit-404 .pit-404-code {
	font-size: clamp(3rem, 2rem + 6vw, 6rem);
	font-weight: 800;
	color: var(--accent);
	line-height: 1;
	margin-bottom: .2em;
}

/* Search form */
.pit-search-form { display: flex; gap: 8px; }
.pit-search-form input[type="search"] {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid var(--border-dark);
	border-radius: 6px;
	font-size: 1rem;
}
.pit-search-form button {
	padding: 10px 16px;
	border: 0;
	border-radius: 6px;
	background: var(--primary);
	color: var(--white);
	cursor: pointer;
}

table.pit-comment-list { width: 100%; }
