/*
 * KM Category Templates
 * Journeys + Cinema + Education — v0.4.1
 */

body.km-single-template {
	--km-paper: #f8f5ec;
	--km-ink: #0f1a24;
	--km-muted: #5f5a52;
	--km-gold: #b89b5e;
	--km-border: #d8c7a8;
	--km-line: #e1ddd4;
	--km-field-bg: #fffdf7;
}

/* ---------- Shared single-post system ---------- */
.km-single {
	background: var(--km-paper);
	color: var(--km-ink);
	padding: clamp(54px, 7vw, 96px) 24px clamp(64px, 8vw, 110px);
}

.km-single .km-article {
	margin: 0 auto;
	max-width: 1180px;
}

.km-article-header {
	max-width: 850px;
	margin: 0 auto 42px;
}

.km-article-kicker {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	color: var(--km-muted);
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.10em;
	line-height: 1.4;
	text-transform: uppercase;
}

.km-article-kicker a {
	color: var(--km-gold);
	text-decoration: none;
}

.km-article-kicker a:hover,
.km-article-kicker a:focus {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.km-kicker-dot {
	color: var(--km-gold);
}

.km-article-title {
	margin: 0;
	color: var(--km-ink);
	font-family: "Libre Baskerville", Georgia, serif;
	font-weight: 400;
	letter-spacing: -0.025em;
	line-height: 1.12;
}

.km-article-dek {
	color: var(--km-muted);
	font-family: "Source Serif 4", Georgia, serif;
	font-weight: 400;
}

.km-gold-rule {
	height: 1px;
	background: var(--km-gold);
}

.km-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}

.km-featured-image figcaption,
.km-article-content figcaption {
	color: var(--km-muted);
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 13px;
	font-style: italic;
	line-height: 1.45;
}

.km-reading-column {
	margin: 0 auto;
}

.km-article-content {
	color: var(--km-ink);
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.78;
}

.km-article-content p {
	margin: 0 0 1.45em;
}

.km-article-content h2,
.km-article-content h3 {
	color: var(--km-ink);
	font-family: "Libre Baskerville", Georgia, serif;
	font-weight: 400;
	line-height: 1.3;
}

.km-article-content h2 {
	margin: 2.4em 0 0.8em;
	font-size: 28px;
}

.km-article-content h3 {
	margin: 2em 0 0.7em;
	font-size: 22px;
}

.km-article-content figure,
.km-article-content .wp-block-image {
	margin-top: 2.2em;
	margin-bottom: 2.2em;
}

.km-article-content img {
	height: auto;
}

/* Journey inline portrait images — preserve full photograph */
.km-single--journeys .km-article-content img.km-image--portrait {
	display: block;
	width: auto !important;
	max-width: 360px !important;
	height: auto !important;
	max-height: 620px !important;
	object-fit: contain !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.km-article-content figcaption {
	margin-top: 8px;
	text-align: left;
}

.km-post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 52px;
	padding-top: 22px;
	border-top: 1px solid var(--km-line);
	font-size: 13px;
}

.km-tags-label {
	margin-right: 3px;
	color: var(--km-muted);
}

.km-post-tags a {
	padding: 5px 10px;
	border: 1px solid var(--km-border);
	color: var(--km-muted);
	text-decoration: none;
}

.km-post-tags a:hover,
.km-post-tags a:focus {
	border-color: var(--km-gold);
	color: var(--km-ink);
}

.km-post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	margin-top: 44px;
	padding-top: 30px;
	border-top: 1px solid var(--km-border);
}

.km-post-navigation a {
	display: flex;
	flex-direction: column;
	gap: 7px;
	text-decoration: none;
}

.km-nav-next {
	text-align: right;
}

.km-nav-direction {
	color: var(--km-gold);
	font-size: 13px;
}

.km-nav-title {
	color: var(--km-ink);
	font-family: "Libre Baskerville", Georgia, serif;
	font-size: 16px;
	line-height: 1.4;
}

/* Shared comment treatment */
.km-single .comments-area {
	margin-top: 56px;
	padding-top: 34px;
	border-top: 1px solid var(--km-border);
}

.km-single .comments-area input[type="text"],
.km-single .comments-area input[type="email"],
.km-single .comments-area input[type="url"],
.km-single .comments-area textarea {
	border: 1px solid var(--km-border);
	border-radius: 0;
	background: var(--km-field-bg);
	color: var(--km-ink);
	box-shadow: none;
}

.km-single .comments-area input[type="text"]:focus,
.km-single .comments-area input[type="email"]:focus,
.km-single .comments-area input[type="url"]:focus,
.km-single .comments-area textarea:focus {
	border-color: var(--km-gold);
	outline: 1px solid var(--km-gold);
	outline-offset: 0;
	box-shadow: none;
}

.km-single .comments-area input[type="submit"],
.km-single .comments-area .submit {
	border: 1px solid var(--km-gold);
	border-radius: 0;
	background: var(--km-gold);
}

.km-single .comments-area .required-field-message,
.km-single .comments-area .required {
	display: none !important;
}

/* ---------- Journeys ---------- */
.km-single--journeys .km-article-header {
	text-align: left;
}

.km-single--journeys .km-article-kicker {
	margin-top: -16px;
	margin-bottom: 34px;
}

.km-single--journeys .km-article-title {
	font-size: clamp(38px, 5.2vw, 62px);
}

.km-single--journeys .km-article-dek {
	max-width: 760px;
	margin: 22px 0 0;
	font-size: clamp(18px, 2vw, 21px);
	font-style: italic;
	line-height: 1.55;
}

.km-single--journeys .km-gold-rule {
	width: 82px;
	margin-top: 30px;
}

.km-single--journeys .km-featured-image {
	max-width: 850px;
	margin: 0 auto 52px;
}

.km-single--journeys .km-featured-image figcaption {
	margin-top: 9px;
}

.km-single--journeys .km-reading-column {
	max-width: 760px;
}

.km-single--journeys .km-article-content figure,
.km-single--journeys .km-article-content .wp-block-image {
	max-width: 580px;
	margin-left: auto;
	margin-right: auto;
}

.km-single--journeys .km-article-content img {
	display: block;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.km-single--journeys .km-article-content .wp-block-gallery {
	max-width: 760px;
	gap: 12px;
	margin: 2.6em auto;
}

.km-single--journeys .km-pullquote {
	position: relative;
	margin: 2.5em 0 2.7em;
	padding: 4px 0 4px 28px;
	border: 0;
	border-left: 2px solid var(--km-gold);
}

.km-single--journeys .km-pullquote blockquote {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--km-ink);
	font-family: "Libre Baskerville", Georgia, serif;
	font-size: clamp(22px, 2.7vw, 29px);
	font-style: italic;
	font-weight: 400;
	line-height: 1.48;
}

/* ---------- Cinema ----------
 * Text-led and contemplative. The category/date marker deliberately
 * uses the same placement and rhythm as Journeys for site-wide consistency.
 */
.km-cinema-header {
	max-width: 850px;
	margin-bottom: 54px;
	text-align: center;
}

.km-cinema-kicker {
	justify-content: flex-start;
	margin-top: -16px;
	margin-bottom: 34px;
	text-align: left;
}

.km-cinema-title {
	font-size: clamp(40px, 5vw, 58px);
}

.km-cinema-dek {
	max-width: 690px;
	margin: 24px auto 0;
	font-size: clamp(17px, 1.8vw, 20px);
	font-style: normal;
	line-height: 1.62;
}

.km-cinema-rule {
	width: 118px;
	margin: 34px auto 0;
}

.km-cinema-featured-image {
	margin: 0 auto 48px;
	padding: 8px;
	border: 1px solid var(--km-border);
	background: var(--km-field-bg);
}

/* Landscape Cinema artwork can use the same stage as Journeys. */
.km-cinema-featured-image--landscape {
	max-width: 850px;
}

/* Portrait posters should never be stretched across the landscape stage. */
.km-cinema-featured-image--portrait {
	max-width: 360px;
}

.km-cinema-featured-image--portrait img {
	display: block;
	width: 100%;
	height: auto;
}

.km-cinema-featured-image figcaption {
	margin: 9px 2px 0;
}

.km-cinema-reading-column {
	max-width: 720px;
}

.km-cinema-content > p:first-child {
	font-size: 19px;
	line-height: 1.82;
}

.km-single--cinema .km-article-content figure,
.km-single--cinema .km-article-content .wp-block-image {
	max-width: 620px;
	margin-left: auto;
	margin-right: auto;
}

.km-single--cinema .km-article-content img {
	display: block;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.km-single--cinema .km-pullquote {
	position: relative;
	margin: 2.9em 0 3em;
	padding: 46px 46px 38px 64px;
	border: 1px solid rgba(184, 155, 94, 0.18);
	border-radius: 12px;
	background: linear-gradient(
		145deg,
		rgba(255, 253, 247, 0.96) 0%,
		rgba(239, 230, 211, 0.58) 100%
	);
	box-shadow:
		0 14px 30px rgba(15, 26, 36, 0.08),
		0 3px 8px rgba(15, 26, 36, 0.05),
		inset 0 1px 0 rgba(255, 255, 255, 0.72);
	text-align: left;
}

.km-single--cinema .km-pullquote::before,
.km-single--cinema .km-pullquote::after {
	content: none;
}

.km-single--cinema .km-pullquote blockquote {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--km-ink);
	font-family: "Libre Baskerville", Georgia, serif;
	font-size: clamp(21px, 2.45vw, 26px);
	font-style: italic;
	font-weight: 400;
	line-height: 1.55;
}

.km-single--cinema .km-pullquote blockquote::before,
.km-single--cinema .km-pullquote blockquote::after {
	color: var(--km-gold);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.35em;
	font-style: normal;
	font-weight: 400;
	line-height: 0;
	vertical-align: -0.08em;
}

.km-single--cinema .km-pullquote blockquote::before {
	content: "“";
	margin-right: 0.08em;
}

.km-single--cinema .km-pullquote blockquote::after {
	content: "”";
	margin-left: 0.08em;
}



/* ---------- Education / Public Life ----------
 * Clear, reflective and essay-like. More structured than Journeys,
 * less theatrical than Cinema.
 */
.km-single--education .km-education-header {
	max-width: 820px;
	margin-bottom: 46px;
	text-align: left;
}

.km-single--education .km-education-kicker {
	margin-top: -16px;
	margin-bottom: 34px;
}

.km-single--education .km-education-title {
	max-width: 790px;
	font-size: clamp(38px, 4.8vw, 56px);
	line-height: 1.14;
}

.km-single--education .km-education-dek {
	max-width: 720px;
	margin: 22px 0 0;
	font-size: clamp(18px, 1.9vw, 20px);
	font-style: normal;
	line-height: 1.62;
}

.km-single--education .km-education-rule {
	width: 72px;
	margin-top: 28px;
}

.km-single--education .km-education-featured-image {
	max-width: 760px;
	margin: 0 auto 48px;
}

.km-single--education .km-education-featured-image img {
	display: block;
	width: 100%;
	height: auto;
}

.km-single--education .km-education-reading-column {
	max-width: 720px;
}

.km-single--education .km-education-content > p:first-child {
	font-size: 19px;
	line-height: 1.82;
}

/* Education pull quote: typographic statement, no card or rules. */
.km-single--education .km-pullquote {
	position: relative;
	margin: 3em 0 3.1em;
	padding: 28px 42px 26px;
	text-align: center;
}

.km-single--education .km-pullquote::before,
.km-single--education .km-pullquote::after {
	content: none;
}

.km-single--education .km-pullquote blockquote {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--km-ink);
	font-family: "Libre Baskerville", Georgia, serif;
	font-size: clamp(22px, 2.55vw, 28px);
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
}

.km-single--education .km-pullquote blockquote::before,
.km-single--education .km-pullquote blockquote::after {
	color: var(--km-gold);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.35em;
	font-style: normal;
	font-weight: 400;
	line-height: 0;
	vertical-align: -0.08em;
}

.km-single--education .km-pullquote blockquote::before {
	content: "“";
	margin-right: 0.08em;
}

.km-single--education .km-pullquote blockquote::after {
	content: "”";
	margin-left: 0.08em;
}

@media (max-width: 900px) {
	.km-single--education .km-education-kicker {
		margin-top: -10px;
		margin-bottom: 28px;
	}

	.km-single--education .km-education-header {
		margin-bottom: 40px;
	}
}

@media (max-width: 600px) {
	.km-single--education .km-education-kicker {
		margin-top: -6px;
		margin-bottom: 23px;
	}

	.km-single--education .km-education-title {
		font-size: 36px;
		line-height: 1.18;
	}

	.km-single--education .km-education-dek {
		margin-top: 18px;
		font-size: 17px;
		line-height: 1.58;
	}

	.km-single--education .km-education-rule {
		width: 64px;
		margin-top: 24px;
	}

	.km-single--education .km-education-header {
		margin-bottom: 34px;
	}

	.km-single--education .km-education-content > p:first-child {
		font-size: 18px;
		line-height: 1.76;
	}

	.km-single--education .km-pullquote {
		margin: 2.6em 0 2.7em;
		padding: 24px 30px 22px;
	}


	.km-single--education .km-pullquote blockquote {
		font-size: 21px;
	}
}
/* ---------- Education / Public Life ----------
 * Clear, reflective and essay-like. More structured than Journeys,
 * less theatrical than Cinema.
 */
.km-single--literature .km-literature-header {
	max-width: 820px;
	margin-bottom: 46px;
	text-align: left;
}

.km-single--literature .km-literature-kicker {
	margin-top: -16px;
	margin-bottom: 34px;
}

.km-single--literature .km-literature-title {
	max-width: 790px;
	font-size: clamp(38px, 4.8vw, 56px);
	line-height: 1.14;
}

.km-single--literature .km-literature-dek {
	max-width: 720px;
	margin: 22px 0 0;
	font-size: clamp(18px, 1.9vw, 20px);
	font-style: normal;
	line-height: 1.62;
}

.km-single--literature .km-literature-rule {
	width: 72px;
	margin-top: 28px;
}

.km-single--literature .km-literature-featured-image {
	max-width: 760px;
	margin: 0 auto 48px;
}

.km-single--literature .km-literature-featured-image img {
	display: block;
	width: 100%;
	height: auto;
}

.km-single--literature .km-literature-reading-column {
	max-width: 720px;
}

.km-single--literature .km-literature-content > p:first-child {
	font-size: 19px;
	line-height: 1.82;
}

/* Education pull quote: typographic statement, no card or rules. */
.km-single--literature .km-pullquote {
	position: relative;
	margin: 3em 0 3.1em;
	padding: 28px 42px 26px;
	text-align: center;
}

.km-single--literature .km-pullquote::before,
.km-single--literature .km-pullquote::after {
	content: none;
}

.km-single--literature .km-pullquote blockquote {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--km-ink);
	font-family: "Libre Baskerville", Georgia, serif;
	font-size: clamp(22px, 2.55vw, 28px);
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
}

.km-single--literature .km-pullquote blockquote::before,
.km-single--literature .km-pullquote blockquote::after {
	color: var(--km-gold);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.35em;
	font-style: normal;
	font-weight: 400;
	line-height: 0;
	vertical-align: -0.08em;
}

.km-single--literature .km-pullquote blockquote::before {
	content: "“";
	margin-right: 0.08em;
}

.km-single--literature .km-pullquote blockquote::after {
	content: "”";
	margin-left: 0.08em;
}

@media (max-width: 900px) {
	.km-single--literature .km-literature-kicker {
		margin-top: -10px;
		margin-bottom: 28px;
	}

	.km-single--literature .km-literature-header {
		margin-bottom: 40px;
	}
}

@media (max-width: 600px) {
	.km-single--literature .km-literature-kicker {
		margin-top: -6px;
		margin-bottom: 23px;
	}

	.km-single--literature .km-literature-title {
		font-size: 36px;
		line-height: 1.18;
	}

	.km-single--literature .km-literature-dek {
		margin-top: 18px;
		font-size: 17px;
		line-height: 1.58;
	}

	.km-single--literature .km-literature-rule {
		width: 64px;
		margin-top: 24px;
	}

	.km-single--literature .km-literature-header {
		margin-bottom: 34px;
	}

	.km-single--literature .km-literature-content > p:first-child {
		font-size: 18px;
		line-height: 1.76;
	}

	.km-single--literature .km-pullquote {
		margin: 2.6em 0 2.7em;
		padding: 24px 30px 22px;
	}


	.km-single--literature .km-pullquote blockquote {
		font-size: 21px;
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.km-single {
		padding-left: 24px;
		padding-right: 24px;
	}

	.km-single--journeys .km-article-kicker {
		margin-top: -10px;
		margin-bottom: 28px;
	}

	.km-single--journeys .km-article-header {
		margin-bottom: 34px;
	}

	.km-single--journeys .km-featured-image {
		margin-bottom: 42px;
	}

	.km-cinema-kicker {
		margin-top: -10px;
		margin-bottom: 28px;
	}

	.km-cinema-header {
		margin-bottom: 44px;
	}

	.km-cinema-featured-image--portrait {
		max-width: 320px;
	}
}

@media (max-width: 600px) {
	.km-single {
		padding: 44px 20px 70px;
	}

	.km-article-kicker {
		font-size: 11px;
	}

	.km-single--journeys .km-article-kicker {
		margin-top: -6px;
		margin-bottom: 23px;
	}

	.km-single--journeys .km-article-title {
		font-size: 38px;
		line-height: 1.16;
	}

	.km-single--journeys .km-article-dek {
		margin-top: 18px;
		font-size: 17px;
		line-height: 1.55;
	}

	.km-single--journeys .km-gold-rule {
		width: 68px;
		margin-top: 24px;
	}

	.km-single--journeys .km-article-header {
		margin-bottom: 30px;
	}

	.km-single--journeys .km-featured-image {
		margin-bottom: 36px;
	}

	.km-article-content {
		font-size: 17px;
		line-height: 1.72;
	}

	.km-single--journeys .km-pullquote {
		padding-left: 20px;
	}

	.km-single--journeys .km-pullquote blockquote {
		font-size: 21px;
	}

	.km-cinema-header {
		margin-bottom: 38px;
	}

	.km-cinema-kicker {
		margin-top: -6px;
		margin-bottom: 23px;
	}

.km-single--journeys .km-article-content .km-journey-portrait img {
	display: block;
	width: 100%;
	height: auto;
}
	.km-cinema-title {
		font-size: 36px;
		line-height: 1.18;
	}

	.km-cinema-dek {
		margin-top: 18px;
		font-size: 17px;
		line-height: 1.55;
	}

	.km-cinema-rule {
		width: 86px;
		margin-top: 26px;
	}

	.km-cinema-featured-image--portrait {
		max-width: 280px;
	}

	.km-cinema-content > p:first-child {
		font-size: 18px;
		line-height: 1.76;
	}

	.km-single--cinema .km-pullquote {
		padding: 42px 26px 30px 48px;
		border-radius: 9px;
	}


	.km-single--cinema .km-pullquote blockquote {
		font-size: 21px;
	}

	.km-post-navigation {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.km-nav-next {
		text-align: left;
	}
}

/* ==========================================================
   Shared Editorial — Stories / Poems / Interests / People
   Added in v0.5.3. Existing four template sections above are unchanged.
   ========================================================== */
.km-single--editorial .km-editorial-header {
	max-width: 850px;
	margin-bottom: 46px;
	text-align: left;
}

.km-single--editorial .km-editorial-kicker {
	margin-top: -16px;
	margin-bottom: 28px;
}

.km-single--editorial .km-editorial-title {
	font-size: clamp(38px, 5vw, 58px);
}

.km-single--editorial .km-editorial-dek {
	max-width: 760px;
	margin: 20px 0 0;
	font-size: clamp(17px, 1.8vw, 20px);
	line-height: 1.58;
}

.km-single--editorial .km-editorial-rule {
	width: 72px;
	margin-top: 28px;
}

.km-single--editorial .km-editorial-featured-image {
	max-width: 850px;
	margin: 0 auto 48px;
}

.km-single--editorial .km-editorial-reading-column {
	max-width: 760px;
}

.km-single--editorial .km-pullquote {
	position: relative;
	margin: 2.5em 0 2.7em;
	padding: 4px 0 4px 28px;
	border: 0;
	border-left: 2px solid var(--km-gold);
}

.km-single--editorial .km-pullquote blockquote {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--km-ink);
	font-family: "Libre Baskerville", Georgia, serif;
	font-size: clamp(22px, 2.7vw, 29px);
	font-style: italic;
	font-weight: 400;
	line-height: 1.48;
}

/* Poetry: preserve imported verse lineation and give it breathing room. */
.km-single--poems .km-editorial-reading-column {
	max-width: 680px;
}

.km-single--poems .km-poem-text {
	white-space: normal;
	font-family: "Source Serif 4", Georgia, serif;
	font-size: clamp(18px, 2vw, 21px);
	line-height: 1.78;
}

/* Do not show theme-generated tag blocks inside KM shared editorial singles. */
body.km-single-template-stories .tags-links,
body.km-single-template-stories .entry-tags,
body.km-single-template-stories .post-tags,
body.km-single-template-poems .tags-links,
body.km-single-template-poems .entry-tags,
body.km-single-template-poems .post-tags,
body.km-single-template-interests .tags-links,
body.km-single-template-interests .entry-tags,
body.km-single-template-interests .post-tags,
body.km-single-template-people .tags-links,
body.km-single-template-people .entry-tags,
body.km-single-template-people .post-tags {
	display: none !important;
}

@media (max-width: 767px) {
	.km-single--editorial .km-editorial-header {
		margin-bottom: 34px;
	}

	.km-single--editorial .km-editorial-kicker {
		margin-top: 0;
		margin-bottom: 20px;
	}

	.km-single--editorial .km-editorial-title {
		font-size: clamp(32px, 9vw, 44px);
	}

	.km-single--editorial .km-editorial-dek {
		font-size: 17px;
	}

	.km-single--editorial .km-editorial-rule {
		margin-top: 22px;
	}
}
