/*
Theme Name: LPS District Site 2025
Theme URI: https://www.lps.org/
Description: Modern WordPress theme for District-Level Lincoln Public Schools websites. Adopts the 2025 LPS brand (Oswald/PT Sans, Pantone 286 blue / 186 red) and the shared standalone-app design. Successor to "LPS District Site 2018". Built for Elementor; no framework dependency.
Version: 2025.1.2
Author: Brian Fitzgerald
Author URI: https://www.lps.org/
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: lps2025
*/

/* =============================================================
   Brand tokens
   ============================================================= */
:root {
	--lps-blue: #0033A0;        /* Pantone 286 - primary */
	--lps-blue-deep: #002D74;   /* tertiary deep blue */
	--lps-red: #C8102E;         /* Pantone 186 - secondary */
	--lps-green: #007A33;       /* Pantone 356 - secondary */
	--lps-text: #333;
	--lps-border: #ddd;
	--lps-max: 1140px;   /* single source of truth: masthead + content width (matches Elementor's default content width) */
	--lps-font-head: 'Oswald', Arial, sans-serif;
	--lps-font-body: 'PT Sans', Arial, sans-serif;
}

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

body {
	font-family: var(--lps-font-body);
	font-weight: 400;
	font-size: 18px;
	color: var(--lps-text);
	line-height: 1.6;
	margin: 0;
	padding: 0;
	background-color: #fff;
}

a {
	color: var(--lps-blue);
}

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--lps-font-head);
	color: var(--lps-red);
	line-height: 1.2;
}

h1 { font-size: 2.4rem; margin: 0 0 1rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* =============================================================
   Skip link (a11y)
   ============================================================= */
.skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: absolute;
	top: 0;
	left: 0;
	width: auto;
	height: auto;
	padding: 0.6rem 1rem;
	margin: 0;
	overflow: visible;
	clip: auto;
	background: var(--lps-blue);
	color: #fff;
	font-family: var(--lps-font-head);
	font-weight: 500;
	text-decoration: none;
	z-index: 1000;
	outline: 3px solid var(--lps-red);
	outline-offset: 2px;
}

/* Visually-hidden utility (WP "screen-reader-text" + theme helper) */
.screen-reader-text,
.assistive-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	position: static;
	width: auto;
	height: auto;
	clip: auto;
	margin: 0;
}

/* =============================================================
   Header (white logo bar)
   ============================================================= */
.site-header {
	background-color: #fff;
	border-bottom: 1px solid var(--lps-border);
	padding: 0.5rem 0 0.25rem;
}
.site-header .header-inner {
	max-width: var(--lps-max);
	margin: 0 auto;
	padding: 0 1.5rem;
}
.site-header a {
	display: inline-block;
}
.site-header .site-logo img,
.site-header .custom-logo {
	height: 50px;
	width: auto;
}

/* =============================================================
   Site title strip (blue)
   ============================================================= */
.site-title-row {
	background-color: var(--lps-blue);
	padding: 0.75rem 0;
}
.site-title-row .title-inner {
	max-width: var(--lps-max);
	margin: 0 auto;
	padding: 0 1.5rem;
}
.site-title-row .site-title {
	font-family: var(--lps-font-head);
	font-weight: 500;
	font-size: 2rem;
	color: #fff;
	margin: 0;
	line-height: 1.4;
}
.site-title-row .site-title a {
	color: #fff;
	text-decoration: none;
}
.site-title-row .site-tagline {
	font-family: var(--lps-font-head);
	font-weight: 400;
	color: rgba(255, 255, 255, 0.85);
	font-size: 1.1rem;
	margin: 0.15rem 0 0;
	line-height: 1.2;
}

/* =============================================================
   Primary navigation
   ============================================================= */
.site-nav {
	background-color: var(--lps-blue-deep);
}
.site-nav .nav-inner {
	max-width: var(--lps-max);
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}
.site-nav .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}
.site-nav .menu li {
	position: relative;
	margin: 0;
}
.site-nav .menu a {
	display: block;
	padding: 0.85rem 1.1rem;
	color: #fff;
	font-family: var(--lps-font-head);
	font-weight: 500;
	font-size: 1rem;
	text-decoration: none;
	transition: background-color 0.15s;
}
.site-nav .menu a:hover,
.site-nav .menu a:focus,
.site-nav .menu .current-menu-item > a,
.site-nav .menu .current_page_item > a,
.site-nav .menu .current-menu-ancestor > a {
	background-color: rgba(255, 255, 255, 0.15);
}

/* Dropdowns */
.site-nav .menu ul.sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background-color: var(--lps-blue-deep);
	list-style: none;
	margin: 0;
	padding: 0;
	z-index: 500;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.site-nav .menu li:hover > ul.sub-menu,
.site-nav .menu li:focus-within > ul.sub-menu {
	display: block;
}
.site-nav .menu ul.sub-menu a {
	padding: 0.6rem 1.1rem;
	font-weight: 400;
	font-size: 0.95rem;
}

/* nav labels / dividers (legacy menu item classes) */
.site-nav .menu li.label > label {
	display: block;
	padding: 0.85rem 1.1rem 0.3rem;
	color: rgba(255, 255, 255, 0.65);
	font-family: var(--lps-font-head);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.site-nav .menu li.divider {
	display: none;
}

/* Mobile toggle */
.nav-toggle {
	display: none;
	background: none;
	border: 0;
	color: #fff;
	font-family: var(--lps-font-head);
	font-weight: 500;
	font-size: 1rem;
	padding: 0.85rem 1.1rem;
	cursor: pointer;
	align-items: center;
	gap: 0.5rem;
}
.nav-toggle .nav-toggle-bars {
	display: inline-block;
	width: 1.25rem;
	height: 2px;
	background: #fff;
	position: relative;
}
.nav-toggle .nav-toggle-bars::before,
.nav-toggle .nav-toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 1.25rem;
	height: 2px;
	background: #fff;
}
.nav-toggle .nav-toggle-bars::before { top: -6px; }
.nav-toggle .nav-toggle-bars::after { top: 6px; }

/* =============================================================
   Page layout
   ============================================================= */
.page-wrapper {
	max-width: var(--lps-max);
	margin: 0 auto;
	padding: 2rem 1.5rem;
}

/* Elementor-built pages and the Elementor "Full Width" template: Elementor
   controls width and layout, so the theme wraps nothing of its own. */
.fullwidth-wrapper {
	width: 100%;
	margin: 0;
	padding: 0;
}

/* Page-title row (one canonical H1) beneath the nav, aligned to the masthead. */
.page-title-row .page-title-inner {
	max-width: var(--lps-max);
	margin: 0 auto;
	padding: 1.75rem 1.5rem 0;
}
.page-title-row .entry-title {
	margin: 0;
}
/* Tighten the gap between the page title and the content below it. */
.page-title-row + .page-wrapper {
	padding-top: 0.75rem;
}
/* On Elementor-built pages, match Elementor's default column/container padding
   (10px) so the title lines up with the content inside (max-width is set inline
   to match Elementor's content width). */
.page-title-row.is-builder .page-title-inner {
	padding-left: 10px;
	padding-right: 10px;
}

/* Content + optional sidebar (flexbox; no framework). */
.content-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 2.5rem;
	align-items: flex-start;
}
.content-area {
	flex: 1 1 320px;
	min-width: 0;
}
/* Narrow, centered reading column (One Column Story). */
.content-narrow {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

/* Wide / full block alignments inside the content area (Gutenberg). */
.content-area .alignwide {
	margin-left: -2rem;
	margin-right: -2rem;
	width: auto;
	max-width: none;
}
.content-area .alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
}

/* Sidebar */
.sidebar {
	flex: 0 0 300px;
	font-size: 0.95rem;
}
.sidebar h3 {
	font-size: 1.2rem;
	color: var(--lps-blue);
	border-bottom: 2px solid var(--lps-border);
	padding-bottom: 0.3rem;
	margin-top: 1.5rem;
}
.sidebar ul {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}
.sidebar li {
	margin-bottom: 0.4rem;
}
.sidebar a {
	text-decoration: none;
}
.sidebar a:hover {
	text-decoration: underline;
}

.page-title,
.lps-page-title,
.entry-title {
	margin-top: 0;
}

.postDate {
	margin-top: 2em;
	font-size: 0.9em;
	color: rgba(0, 0, 0, 0.6);
}

/* Listing / pagination */
.navigation {
	display: flex;
	justify-content: space-between;
	margin: 2rem 0;
}

/* Generic button (search form, etc.) */
.button,
.search-submit {
	display: inline-block;
	background-color: var(--lps-blue);
	color: #fff;
	font-family: var(--lps-font-head);
	font-weight: 500;
	text-decoration: none;
	border: 0;
	border-radius: 4px;
	padding: 0.7rem 1.4rem;
	cursor: pointer;
	line-height: 1.2;
	transition: background-color 0.15s;
}
.button:hover,
.button:focus,
.search-submit:hover,
.search-submit:focus {
	background-color: var(--lps-blue-deep);
	color: #fff;
}
.button.alert { background-color: var(--lps-red); }

/* Simple boxed highlight (feature / sticky cards). */
.lps-card {
	border: 1px solid var(--lps-border);
	border-radius: 4px;
	padding: 1.25rem;
	background: #f6f7f9;
	margin-bottom: 1.25rem;
}

/* Search form */
.search-form {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin: 1rem 0;
}
.search-form .search-field {
	flex: 1 1 200px;
	padding: 0.6rem;
	border: 1px solid var(--lps-border);
	border-radius: 4px;
	font-size: 1rem;
}

/* =============================================================
   WordPress core / alignment / captions
   ============================================================= */
.alignright   { float: right; margin: 0 0 1em 1em; }
.alignleft    { float: left;  margin: 0 1em 1em 0; }
.aligncenter  { display: block; margin-left: auto; margin-right: auto; }
img.alignright  { float: right; margin: 0 0 1em 1em; }
img.alignleft   { float: left;  margin: 0 1em 1em 0; }
img.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.wp-caption {
	max-width: 100%;
}
.wp-caption.alignright { margin: 0 0 2em 2em; }
.wp-caption.alignleft  { margin: 0.5em 1.5em 1.5em 0; }
.wp-caption img { display: block; }
.wp-caption-text,
p.wp-caption-text {
	color: rgba(0, 0, 0, 0.8);
	font-size: 0.9em;
	line-height: 1.3;
	margin: 0.5em;
}

.sticky, .bypostauthor { /* placeholders to satisfy theme-check */ }

img.profilePhoto,
img.contactcard {
	border-radius: 5px;
}
img.contactcard { float: left; }

/* =============================================================
   Footer (ported from _shared/footer.cfm)
   ============================================================= */
.site-footer {
	background-color: var(--lps-blue);
	color: #fff;
	padding: 2rem 0 0;
	margin-top: 3rem;
}
.site-footer a {
	color: #efefef;
	text-decoration: none;
}
.site-footer a:hover {
	text-decoration: underline;
}
.footer-inner {
	max-width: var(--lps-max);
	margin: 0 auto;
	padding: 0 1.5rem;
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2rem;
}
.site-footer h2,
.site-footer h3 {
	color: #fff;
	font-family: var(--lps-font-head);
	font-size: 1.1rem;
	font-weight: 500;
	margin: 1.25rem 0 0.25rem;
}
.site-footer .footer-main > h3:first-child {
	margin-top: 0;
}
.site-footer p {
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0 0 0.75rem;
}
.footer-badges {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	flex-wrap: wrap;
	margin: 0.5rem 0 1rem;
}
.footer-badges img {
	height: 40px;
	width: auto;
}
.footer-contact p {
	margin: 0 0 0.5rem;
}
.footer-contact i {
	width: 1.25em;
	margin-right: 0.25em;
}
.social-links {
	display: flex;
	gap: 0.75rem;
	font-size: 1.75rem;
	margin: 1rem 0;
}
.social-links a {
	color: #efefef;
	transition: color 0.15s;
}
.social-links a:hover {
	color: #fff;
	text-decoration: none;
}

.footer-bottom {
	background-color: var(--lps-blue-deep);
	margin-top: 1.5rem;
	padding: 1rem 0;
}
.footer-bottom-inner {
	max-width: var(--lps-max);
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}
.footer-bottom img {
	height: 39px;
	width: auto;
}
.footer-bottom-links {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.footer-bottom-links a {
	color: #efefef;
	font-size: 0.9rem;
}

/* =============================================================
   Comments
   ============================================================= */
.commentlist {
	list-style: none;
	margin: 0;
	padding: 0;
}
.commentlist .comment {
	background: #f6f6f6;
	border: 1px solid var(--lps-border);
	border-radius: 4px;
	margin: 0 0 1.5rem;
	padding: 1.25rem;
}
.commentlist .children {
	list-style: none;
	margin: 1.25rem 0 0 1.5rem;
	padding: 0;
}
.comment-meta {
	color: #666;
	font-size: 0.85rem;
	margin-bottom: 0.5rem;
}
.comment-author .avatar {
	border-radius: 4px;
	vertical-align: middle;
	margin-right: 0.5rem;
}
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.6rem;
	border: 1px solid var(--lps-border);
	border-radius: 4px;
	font-family: var(--lps-font-body);
	font-size: 1rem;
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 768px) {
	.site-title-row .site-title {
		font-size: 1.5rem;
	}
	.sidebar {
		flex-basis: 100%;
	}
	.footer-inner {
		grid-template-columns: 1fr;
	}
	.footer-bottom-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Nav collapses to a toggle on small screens */
@media (max-width: 860px) {
	.nav-toggle {
		display: flex;
	}
	.site-nav .nav-inner {
		flex-direction: column;
		align-items: stretch;
		padding: 0;
	}
	.nav-toggle {
		width: 100%;
		justify-content: flex-start;
	}
	.site-nav .menu {
		display: none;
		flex-direction: column;
		width: 100%;
	}
	.site-nav.is-open .menu {
		display: flex;
	}
	.site-nav .menu a {
		padding: 0.85rem 1.5rem;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}
	/* On mobile, show sub-menus inline (no hover) */
	.site-nav .menu ul.sub-menu {
		display: block;
		position: static;
		box-shadow: none;
		min-width: 0;
	}
	.site-nav .menu ul.sub-menu a {
		padding-left: 2.5rem;
	}
}
