/*
Theme Name: Kadence Child
Template: kadence
Version: 1.0
*/

.cs-record-line {
	font-family: 'IBM Plex Mono', ui-monospace, monospace;
	font-size: 0.85em;
	letter-spacing: 0.02em;
	color: #4a4a4a;
	margin-bottom: 1.75em;
	padding-bottom: 1.25em;
	border-bottom: 1px solid #e2e2e2;
}

.cs-record-line strong {
	font-weight: 600;
	color: #1a1a1a;
}

.cs-record-line a {
	color: #4a4a4a;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cs-record-line .cs-sep {
	margin: 0 0.5em;
	opacity: 0.5;
}

.cs-archive-marker {
	margin-top: 0.5em;
	font-size: 0.9em;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #8a8a8a;
}

/* Homepage */

.cs-home-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2.5em 1.5em 4em;
}

.cs-eyebrow {
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 0.8em;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #2f6f5e;
	margin: 0 0 0.5em;
}

.cs-eyebrow-small {
	font-size: 0.72em;
	margin-top: 0.9em;
}

/* Lead */

.cs-lead {
	display: block;
	text-decoration: none;
	color: inherit;
	margin-bottom: 3.5em;
	border: 1px solid #e2e2e2;
}

.cs-lead-media img {
	width: 100%;
	height: auto;
	display: block;
}

.cs-lead-panel {
	padding: 1.75em 2em 2em;
}

.cs-lead-title {
	font-family: 'Newsreader', Georgia, serif;
	font-size: 1.9em;
	line-height: 1.25;
	margin: 0 0 0.6em;
	color: #1a1a1a;
}

.cs-lead .cs-record-line {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 1em;
}

.cs-readmore {
	display: inline-block;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 0.9em;
	font-weight: 600;
	color: #2f6f5e;
}

/* Grid */

.cs-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2em 1.75em;
}

@media (max-width: 900px) {
	.cs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.cs-grid { grid-template-columns: 1fr; }
}

.cs-card {
	display: block;
	text-decoration: none;
	color: inherit;
}

.cs-card-media img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	background: #f0f0f0;
}

.cs-card-title {
	font-family: 'Newsreader', Georgia, serif;
	font-size: 1.1em;
	line-height: 1.3;
	margin: 0.4em 0 0.4em;
	color: #1a1a1a;
}

.cs-card-record {
	font-family: 'IBM Plex Mono', ui-monospace, monospace;
	font-size: 0.78em;
	color: #6a6a6a;
	margin: 0;
}

.cs-archive-marker-small {
	font-size: 0.85em;
	color: #9a9a9a;
}

.cs-empty {
	font-family: 'IBM Plex Sans', sans-serif;
	color: #8a8a8a;
}

/* Homepage orientation block, between the lead and the grid */

.cs-home-orientation {
	text-align: center;
	max-width: 560px;
	margin: 0 auto 3em;
	padding: 0 1.5em;
}

.cs-home-note {
	font-family: 'Newsreader', Georgia, serif;
	font-size: 1.15em;
	color: #444;
	margin-top: 0.6em;
	text-align: center;
}

.cs-home-cta {
	text-align: center;
	margin-top: 1em;
}

.cs-home-cta a {
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 0.95em;
	font-weight: 600;
	color: #2f6f5e;
	text-decoration: none;
}

.cs-home-cta a:hover {
	text-decoration: underline;
}

/* Lightbox */

.cs-lightbox-trigger {
	cursor: zoom-in;
}

.cs-lightbox {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	background: rgba(20, 20, 20, 0.92);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.5em;
}

.cs-lightbox[hidden] {
	display: none;
}

.cs-lightbox-inner {
	display: flex;
	gap: 2em;
	max-width: 1200px;
	max-height: 90vh;
	width: 100%;
}

.cs-lightbox-image {
	flex: 1 1 65%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.cs-lightbox-image img {
	max-width: 100%;
	max-height: 86vh;
	object-fit: contain;
	display: block;
}

.cs-lightbox-text {
	flex: 1 1 30%;
	max-width: 340px;
	color: #eee;
	overflow-y: auto;
	max-height: 86vh;
}

.cs-lightbox-text h2 {
	font-family: 'Newsreader', Georgia, serif;
	font-size: 1.3em;
	line-height: 1.3;
	margin: 0 0 0.75em;
	color: #fff;
}

.cs-lightbox-text .cs-record-line {
	color: #ccc;
	border-bottom-color: rgba(255,255,255,0.2);
}

.cs-lightbox-text .cs-record-line strong {
	color: #fff;
}

.cs-lightbox-text .cs-record-line a {
	color: #ccc;
}

.cs-lightbox-more a {
	color: #fff;
	font-weight: 600;
	font-size: 0.9em;
}

.cs-lightbox-close {
	position: absolute;
	top: 1.25em;
	right: 1.5em;
	background: none;
	border: none;
	color: #fff;
	font-size: 2.2em;
	line-height: 1;
	cursor: pointer;
	padding: 0.2em 0.4em;
}

@media (max-width: 800px) {
	.cs-lightbox-inner {
		flex-direction: column;
		overflow-y: auto;
	}
	.cs-lightbox-text {
		max-width: none;
	}
}

/* Single-capture hero image: never crop the archival photograph,
   but cap its height so tall portrait scans don't make the page
   run long. The full frame always shows; a capped box may add
   letterboxing above/below or beside it, never a crop. */

.single-post .entry-image,
.single-post .post-thumbnail,
.single-post .entry-hero {
	background: var(--global-body-background-color, #f4f4f2);
	display: flex;
	align-items: center;
	justify-content: center;
	max-height: 640px;
	overflow: hidden;
}

.single-post .entry-image img,
.single-post .post-thumbnail img,
.single-post .entry-hero img,
.single-post img.wp-post-image {
	height: auto !important;
	max-height: 640px !important;
	width: auto !important;
	max-width: 100% !important;
	object-fit: contain !important;
}

/* Page header on Archive, Submit, About: remove the visible gray
   band entirely by matching the page background, and let the
   title read large instead of relying on color to give it presence. */

body:not(.single-post):not(.home) .entry-hero,
body:not(.single-post):not(.home) .page-header,
body:not(.single-post):not(.home) .title-bar-wrap {
	background: #fff !important;
	padding: 2.5em 1.5em 1.5em !important;
}

body:not(.single-post):not(.home) .entry-hero .entry-title,
body:not(.single-post):not(.home) .page-header .entry-title,
body:not(.single-post):not(.home) .title-bar-wrap .entry-title,
body:not(.single-post):not(.home) .entry-hero h1,
body:not(.single-post):not(.home) .page-header h1,
body:not(.single-post):not(.home) .title-bar-wrap h1 {
	font-family: 'Newsreader', Georgia, serif;
	font-weight: 500;
	color: #1a1a1a !important;
	font-size: 3.4em !important;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

/* Archive intro copy */

/* Archive intro width now set below, widened to fit the two-column category grid */

.cs-page-subtitle {
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 1.25em;
	font-weight: 700;
	color: #1d4d3f;
	text-align: center;
	margin: 0.4em 0 0 !important;
}

.cs-archive-intro h2 {
	font-family: 'Newsreader', Georgia, serif;
	font-size: 2.1em;
	margin: 1em 0 0.9em;
	text-align: center;
}

.cs-archive-intro {
	grid-column: 1 / -1;
	width: 100%;
	max-width: 820px;
	margin: 0 auto 3em;
	padding: 0 1.5em;
	font-family: 'IBM Plex Sans', sans-serif;
	line-height: 1.65;
	color: #333;
}

.cs-archive-categories {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5em;
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 2.5em;
	row-gap: 1.2em;
}

.cs-archive-categories li:last-child {
	grid-column: 1 / -1;
}

.cs-archive-categories li {
	font-size: 1em;
}

.cs-archive-categories strong {
	font-family: 'IBM Plex Mono', ui-monospace, monospace;
	font-weight: 600;
	color: #1d4d3f;
	font-size: 1.25em;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	display: block;
	margin-bottom: 0.15em;
}

@media (max-width: 640px) {
	.cs-archive-categories {
		grid-template-columns: 1fr;
	}
	.cs-archive-categories li:last-child {
		grid-column: auto;
	}
}

.cs-archive-question {
	font-family: 'Newsreader', Georgia, serif;
	font-size: 1.4em;
	font-style: italic;
	font-weight: 700;
	text-align: center;
	margin-top: 1.2em;
}
