/*
 * OnlyCat posts (template-post.php): what the concept's editorial post adds
 * to the content page's reading layout (page.css, loaded first) — kicker,
 * byline, lead photograph, article index resources and the way on.
 * Scoped under body.onlycat-post. Tokens from assets/tokens.css.
 * Breakpoints: 1200, 760.
 */

/* ---- Intro: kicker, headline, deck, byline ----------------------------- */

body.onlycat-post .onlycat-post__intro {
	padding: 48px 0 42px;
}

body.onlycat-post .onlycat-post__kicker {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	margin-bottom: 38px;
}

body.onlycat-post .onlycat-post__kicker .onlycat-page__eyebrow {
	margin: 0;
	font-size: 11px;
}

body.onlycat-post .onlycat-post__back + .onlycat-page__eyebrow {
	margin-left: auto;
}

body.onlycat-post .onlycat-post__back {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 32px;
	font-size: 13px;
	color: var(--oc-ink-soft);
	text-decoration: none;
}

body.onlycat-post .onlycat-post__back:hover {
	color: var(--oc-blue);
}

body.onlycat-post .onlycat-post__title {
	max-width: 1080px;
	font-size: clamp(40px, 4.6vw, 66px);
	line-height: 1.08;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

body.onlycat-post .onlycat-page__lede {
	max-width: 850px;
	font-size: 20px;
	line-height: 1.65;
}

body.onlycat-post .onlycat-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 0;
	margin: 28px 0 0;
	font-size: 13px;
	color: var(--oc-ink-soft);
}

body.onlycat-post .onlycat-post__meta > * + * {
	border-left: 1px solid var(--oc-line);
	padding-left: 17px;
	margin-left: 17px;
}

body.onlycat-post .onlycat-post__byline {
	font-weight: 600;
	color: var(--oc-ink);
}

/* ---- Lead photograph --------------------------------------------------- */

body.onlycat-post .onlycat-post__hero {
	margin-block: 0;
}

body.onlycat-post .onlycat-post__hero img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--oc-radius);
	background: var(--oc-night);
}

body.onlycat-post .onlycat-post__hero figcaption {
	padding-top: 13px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--oc-ink-soft);
}

/* ---- Article index and resources --------------------------------------- */

body.onlycat-post .onlycat-post__layout {
	padding-top: 68px;
}

body.onlycat-post .onlycat-post__index {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--oc-line);
}

body.onlycat-post .onlycat-post__index .onlycat-page__eyebrow {
	margin: 0 0 8px;
}

body.onlycat-post .onlycat-post__resource {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--oc-blue) !important;
	font-weight: 550;
}

body.onlycat-post .onlycat-post__copy {
	align-self: flex-start;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 14px;
	color: var(--oc-ink-soft);
	cursor: pointer;
}

body.onlycat-post .onlycat-post__copy:hover {
	color: var(--oc-blue);
}

body.onlycat-post .onlycat-post__copy[hidden] {
	display: none;
}

body.onlycat-post .onlycat-post__copy-status {
	font-size: 13px;
	line-height: 1.5;
	color: var(--oc-blue);
}

body.onlycat-post .onlycat-post__copy-status:empty {
	display: none;
}

/* ---- Reading column: the concept's editorial rhythm -------------------- */

body.onlycat-post .onlycat-page__body {
	font-size: 18px;
	line-height: 1.85;
}

body.onlycat-post .onlycat-page__body h2 {
	font-size: 32px;
	margin-top: 50px;
}

/* ---- The way on --------------------------------------------------------- */

body.onlycat-post .onlycat-post__next {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	border-top: 1px solid var(--oc-line);
	padding-block: 58px 65px;
}

body.onlycat-post .onlycat-post__next .onlycat-page__eyebrow {
	font-size: 11px;
}

body.onlycat-post .onlycat-post__next-title {
	font-family: var(--oc-sans);
	font-size: 44px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.045em;
	margin: 0;
	color: var(--oc-ink);
}

body.onlycat-post .onlycat-post__next-copy {
	align-self: center;
	max-width: 490px;
}

body.onlycat-post .onlycat-post__next-copy p {
	margin: 0 0 18px;
	font-size: 16px;
	line-height: 1.65;
	color: var(--oc-ink-soft);
}

body.onlycat-post .onlycat-post__next-copy .onlycat-text-link {
	margin-right: 28px;
	min-height: 44px;
}

/* ---- Responsive -------------------------------------------------------- */

@media (min-width: 1440px) {
	body.onlycat-post .onlycat-post__intro {
		padding-top: 58px;
		padding-bottom: 48px;
	}
}

@media (max-width: 760px) {
	body.onlycat-post .onlycat-post__intro {
		padding: 25px 0 28px;
	}

	body.onlycat-post .onlycat-post__kicker {
		gap: 15px;
		margin-bottom: 25px;
	}

	body.onlycat-post .onlycat-post__kicker .onlycat-page__eyebrow {
		font-size: 10px;
		letter-spacing: 0.08em;
	}

	body.onlycat-post .onlycat-post__back {
		font-size: 12px;
	}

	body.onlycat-post .onlycat-post__title {
		font-size: clamp(34px, 7.2vw, 48px);
		line-height: 1.13;
		letter-spacing: -0.04em;
		text-wrap: pretty;
	}

	body.onlycat-post .onlycat-page__lede {
		font-size: 16px;
		line-height: 1.75;
	}

	body.onlycat-post .onlycat-post__meta {
		font-size: 12px;
	}

	body.onlycat-post .onlycat-post__meta > * + * {
		padding-left: 12px;
		margin-left: 12px;
	}

	body.onlycat-post .onlycat-post__hero figcaption {
		font-size: 12px;
		padding-top: 10px;
	}

	body.onlycat-post .onlycat-post__layout {
		padding-top: 28px;
	}

	/* The index collapses to the resources strip; the headings stay in the text. */
	body.onlycat-post .onlycat-post__index {
		display: none;
	}

	body.onlycat-post .onlycat-post__aside {
		align-items: center;
		gap: 4px 28px;
		border-block: 1px solid var(--oc-line);
		padding-block: 6px;
	}

	body.onlycat-post .onlycat-post__aside:not(:has(> a, > button:not([hidden]))) {
		display: none;
	}

	body.onlycat-post .onlycat-post__resource,
	body.onlycat-post .onlycat-post__copy {
		font-size: 13px;
	}

	body.onlycat-post .onlycat-post__copy-status {
		width: 100%;
	}

	body.onlycat-post .onlycat-page__body {
		font-size: 16px;
	}

	body.onlycat-post .onlycat-page__body h2 {
		font-size: 27px;
		margin-top: 40px;
	}

	body.onlycat-post .onlycat-post__next {
		grid-template-columns: minmax(0, 1fr);
		gap: 25px;
		padding-block: 40px;
	}

	body.onlycat-post .onlycat-post__next-title {
		font-size: 37px;
	}
}
