/*
Theme Name: Steuerle Campus Bright
Theme URI: https://steuerle.org/
Author: Eugene Steuerle (redesign alternative B)
Author URI: https://steuerle.org/
Description: A colorful, engaging academic WordPress theme modeled on Alternative B ("Campus Bright") of the steuerle.org redesign. Split hero with a featured testimonial panel, stat tiles, citation-style published-works list with color-coded year badges, gold-ruled section headings, and a "Browse Works" archive template with year folders and live keyword search.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: steuerle-campus-bright
Tags: two-columns, custom-colors, custom-menu, featured-images, threaded-comments, blog, education
*/

/* ============ Palette ============ */
/* Blue #0a3d91 / #0a7ee8 · Magenta #f0577e · Gold #ffd166 · Teal #1fa89a · Amber #f5a623 · Ink #20293a */

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { margin: 0 !important; }
body {
	margin: 0;
	font: 16px/1.65 "Segoe UI", Helvetica, Arial, sans-serif;
	color: #20293a;
	background: #f2f6fb;
}
a { color: #0a7ee8; text-decoration: none; }
a:hover, a:focus { color: #f0577e; }
img { max-width: 100%; height: auto; }
code { background: #eef3fa; padding: 1px 5px; border: 1px solid #cfd9e6; border-radius: 4px; }

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px; width: 1px; overflow: hidden;
}
.screen-reader-text:focus {
	clip: auto !important; display: block;
	height: auto; width: auto; z-index: 100000;
	background: #fff; padding: 8px; border: 2px solid #f0577e;
}

/* ============ Split hero (front page) ============ */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 420px; }
.hero-l {
	background: linear-gradient(150deg, #0a3d91, #0a7ee8);
	color: #fff; padding: 60px 5%;
}
.hero-l h1 { font-size: 46px; line-height: 1.15; margin: 0; }
.hero-l h1 a { color: #fff; }
.hero-l h1 a:hover { color: #ffd166; text-decoration: none; }
.hero-l h1 span, .hero-l h1 a span { color: #ffd166; }
.hero-l .sub { color: #cfe4ff; margin: 14px 0 0; font-size: 18px; max-width: 480px; }
.hero-l .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-l .chips a {
	background: rgba(255, 255, 255, .15);
	border: 1px solid rgba(255, 255, 255, .4);
	color: #fff; padding: 7px 16px; border-radius: 20px;
	font: 600 13px Arial, sans-serif;
}
.hero-l .chips a:hover { background: #ffd166; color: #0a3d91; text-decoration: none; }

.hero-r {
	background: #f0577e; color: #fff;
	padding: 60px 5%;
	display: flex; flex-direction: column; justify-content: center;
}
.hero-r .qmark { font: 900 90px Georgia, serif; color: #ffb3c6; line-height: .4; }
.hero-r blockquote { font: italic 20px Georgia, serif; margin: 14px 0; }
.hero-r cite { font: 700 14px Arial, sans-serif; font-style: normal; }
.hero-r cite span { display: block; font-weight: 400; color: #ffd9e2; }

/* ============ Navigation ============ */
nav.bar {
	background: #20293a;
	display: flex; flex-wrap: wrap; justify-content: center;
	position: sticky; top: 0; z-index: 9;
}
nav.bar ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
nav.bar a {
	display: block; color: #dbe5f0; padding: 14px 20px;
	font: 600 13px Arial, sans-serif;
	text-transform: uppercase; letter-spacing: 1px;
	border-bottom: 3px solid transparent;
}
nav.bar a:hover,
nav.bar .current-menu-item > a,
nav.bar .current_page_item > a { color: #ffd166; border-color: #ffd166; text-decoration: none; }

/* Interior header (non-front pages use compact hero-l band) */
.page-band { background: linear-gradient(150deg, #0a3d91, #0a7ee8); color: #fff; padding: 34px 5%; }
.page-band h1 { margin: 0; font-size: 30px; }
.page-band h1 a { color: #fff; }
.page-band h1 a span { color: #ffd166; }
.page-band .sub { color: #cfe4ff; margin: 6px 0 0; font-style: italic; }

/* ============ Sections & content ============ */
section, .section { max-width: 1100px; margin: 0 auto; padding: 44px 24px; }
.content { max-width: 1100px; margin: 0 auto; padding: 44px 24px; }
h2.sec, h1.sec { font: 800 26px "Segoe UI", sans-serif; color: #20293a; margin: 0 0 6px; }
h2.sec::after, h1.sec::after {
	content: ""; display: block; width: 64px; height: 5px;
	background: #f0577e; border-radius: 3px; margin-top: 8px;
}
.entry-title { font: 800 28px "Segoe UI", sans-serif; color: #20293a; margin: 0 0 10px; }
.entry-meta { color: #7c8798; font-size: 13px; margin-bottom: 16px; }
.entry-content { overflow-wrap: break-word; }
.lede { color: #4a5568; }

/* ============ Stat tiles ============ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 20px; }
.stat { border-radius: 12px; padding: 20px; text-align: center; color: #fff; }
.stat b { display: block; font: 800 34px Arial, sans-serif; }
.stat span { font: 600 12px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; opacity: .9; }
.stat.c-blue { background: #0a7ee8; }
.stat.c-magenta { background: #f0577e; }
.stat.c-teal { background: #1fa89a; }
.stat.c-amber { background: #f5a623; }
/* auto-cycle when no explicit color class */
.stat:nth-child(4n+1):not([class*="c-"]) { background: #0a7ee8; }
.stat:nth-child(4n+2):not([class*="c-"]) { background: #f0577e; }
.stat:nth-child(4n+3):not([class*="c-"]) { background: #1fa89a; }
.stat:nth-child(4n):not([class*="c-"]) { background: #f5a623; }

/* ============ Testimonials ============ */
blockquote.quote {
	background: #fff; border-radius: 12px;
	padding: 26px 30px;
	box-shadow: 0 4px 18px rgba(10, 61, 145, .08);
	border-left: 6px solid #f5a623;
	font: italic 17px Georgia, serif;
	margin: 16px 0;
}
blockquote.quote cite {
	display: block; font: 700 14px Arial, sans-serif; font-style: normal;
	color: #20293a; margin-top: 10px;
}
blockquote.quote cite span { font-weight: 400; color: #7c8798; }

/* ============ Citation-style works list ============ */
.cite-list { margin-top: 20px; }
.cite {
	display: grid; grid-template-columns: 64px 1fr; gap: 16px;
	background: #fff; border-radius: 10px;
	padding: 16px 20px; margin-bottom: 10px;
	box-shadow: 0 2px 8px rgba(10, 61, 145, .05);
}
.cite .yr {
	font: 800 20px Arial, sans-serif; color: #fff;
	background: #1fa89a; border-radius: 10px;
	display: flex; align-items: center; justify-content: center; height: 52px;
}
.cite:nth-child(3n+1) .yr { background: #0a7ee8; }
.cite:nth-child(3n) .yr { background: #f0577e; }
.cite h3 { font-size: 17px; margin: 0; }
.cite .meta { color: #7c8798; font-size: 13px; margin: 2px 0 6px; }

/* ============ Post cards (blog / archive loop) ============ */
.post-card {
	background: #fff; border-radius: 10px;
	padding: 18px 22px; margin-bottom: 14px;
	box-shadow: 0 2px 8px rgba(10, 61, 145, .05);
	border-left: 5px solid #f5a623;
}
.post-card:nth-child(3n+1) { border-left-color: #0a7ee8; }
.post-card:nth-child(3n) { border-left-color: #f0577e; }
.post-card h2, .post-card h3 { font-size: 18px; margin: 0 0 4px; }
.pagination { margin: 24px 0; font-size: 14px; }
.pagination .page-numbers { margin-right: 10px; }
.pagination .current { font-weight: 700; color: #f0577e; }

/* ============ Books grid ============ */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 18px; }
.book {
	background: #fff; border-radius: 12px; padding: 20px;
	text-align: center; box-shadow: 0 3px 12px rgba(10, 61, 145, .07);
	border-top: 5px solid #f5a623;
}
.book:nth-child(3n+1) { border-top-color: #0a7ee8; }
.book:nth-child(3n) { border-top-color: #f0577e; }
.book-cover {
	height: 120px; border-radius: 8px;
	background: #20293a; color: #ffd166;
	display: flex; align-items: center; justify-content: center;
	font: 60px Georgia, serif; margin-bottom: 12px; overflow: hidden;
}

/* ============ Buttons ============ */
.btn {
	display: inline-block; background: #0a3d91; color: #fff;
	padding: 9px 18px; border-radius: 20px;
	font: 600 13px Arial, sans-serif; margin-top: 10px;
}
.btn:hover { background: #f0577e; color: #fff; text-decoration: none; }
.btn.muted { background: #c4ccd8; }

/* ============ Browse Works archive template ============ */
.archive-browser { display: grid; grid-template-columns: 170px 1fr; gap: 22px; margin-top: 16px; }
.year-folders h3 { font: 700 14px Arial, sans-serif; margin: 0 0 8px; }
.year-folders ul { list-style: none; margin: 0; padding: 0; }
.year-folders li {
	padding: 8px 12px; cursor: pointer;
	font: 600 14px Arial, sans-serif;
	border-radius: 8px; margin-bottom: 4px; background: #fff;
}
.year-folders li:hover, .year-folders li.active { background: #0a7ee8; color: #fff; }
#works-search {
	width: 100%; padding: 12px;
	border: 2px solid #cfd9e6; border-radius: 8px;
	font-size: 15px; margin-bottom: 14px;
}
.result {
	background: #fff; border-radius: 10px;
	padding: 14px 20px; margin-bottom: 10px;
	border-left: 5px solid #f5a623;
}
.result:nth-child(3n+1) { border-left-color: #0a7ee8; }
.result:nth-child(3n) { border-left-color: #f0577e; }
.result h3 { font-size: 17px; margin: 4px 0; }
.result .tag {
	display: inline-block; background: #1fa89a; color: #fff;
	font: 700 10px Arial, sans-serif; padding: 3px 10px;
	border-radius: 12px; text-transform: uppercase;
}
.result .meta { color: #7c8798; font-size: 13px; }
.result .empty { color: #7c8798; }

/* ============ Site search (hero + widget) ============ */
.site-search { display: flex; max-width: 560px; margin-top: 16px; }
.site-search input {
	flex: 1; padding: 11px;
	border: 2px solid #0a7ee8; border-right: 0;
	border-radius: 8px 0 0 8px; font-size: 15px;
}
.hero-l .site-search input { border-color: transparent; }
.site-search button {
	padding: 11px 20px; background: #0a7ee8; color: #fff; border: 0;
	border-radius: 0 8px 8px 0; font: 700 14px Arial, sans-serif; cursor: pointer;
}
.hero-l .site-search button { background: #ffd166; color: #0a3d91; }
.hero-l .site-search button:hover { background: #fff; }
.site-search button:hover { background: #f0577e; }

/* ============ Widgets (footer sidebar) ============ */
.widget {
	background: #fff; border-radius: 12px; padding: 20px;
	box-shadow: 0 3px 12px rgba(10, 61, 145, .07);
	border-top: 5px solid #ffd166; margin-bottom: 18px;
}
.widget h3, .widget .widget-title {
	font: 700 13px Arial, sans-serif; text-transform: uppercase;
	letter-spacing: 1px; color: #20293a; margin: 0 0 10px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin: 6px 0; font-size: 14px; }
.footer-widgets {
	max-width: 1100px; margin: 0 auto; padding: 10px 24px 30px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
}

/* ============ Comments ============ */
.comments-area { margin-top: 30px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment {
	background: #fff; border-radius: 10px; padding: 16px;
	margin-bottom: 12px; box-shadow: 0 2px 8px rgba(10, 61, 145, .05);
}
.comment-reply-link { font: 700 12px Arial, sans-serif; text-transform: uppercase; }

/* ============ Footer ============ */
.site-footer {
	background: #20293a; color: #93a1b5;
	text-align: center; padding: 24px; font-size: 13px;
}
.site-footer a { color: #ffd166; }

/* ============ Responsive ============ */
@media (max-width: 860px) {
	.hero { grid-template-columns: 1fr; }
	.archive-browser { grid-template-columns: 1fr; }
	.hero-l h1 { font-size: 32px; }
	.hero-r, .hero-l { padding: 40px 6%; }
}
