/*
 * CineSavant review + archive. Uniform, readable baseline on the light page
 * surface; every colour and measure is a token so the design refresh can
 * restyle without touching markup.
 */

:root {
	--tfhcs-ink: #1e2a2e;
	--tfhcs-muted: #6f7a80;
	--tfhcs-line: #dcdcdc;
	--tfhcs-surface: #ffffff;
	--tfhcs-accent: #ba2e29;
	--tfhcs-accent-deep: #661917;
	--tfhcs-measure: 72ch;
	--tfhcs-radius: 8px;
	--tfhcs-display: "Oswald", helvetica, arial, sans-serif;
}

/* The theme floats #content left at 760px on single pages (a sidebar layout).
   With nothing to clear the float, #wrapper collapsed to 40px and the site's
   dark background showed through behind the entire review. Reviews use the
   full width with no sidebar, so un-float it. */
body.single-cinesavant #wrapper #content,
body.post-type-archive-cinesavant #wrapper #content {
	float: none;
	width: auto;
	max-width: none;
}
body.single-cinesavant #wrapper::after,
body.post-type-archive-cinesavant #wrapper::after { content: ""; display: table; clear: both; }

.tfh-cs { max-width: 1040px; margin: 0 auto 60px; color: var(--tfhcs-ink); }

/* ── header ─────────────────────────────────────────────────────────────── */
.tfh-cs__header { margin: 26px 0 22px; }
.tfh-cs__kicker {
	display: inline-block;
	font-family: var(--tfhcs-display);
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 12px;
	color: var(--tfhcs-accent);
	text-decoration: none;
}
.tfh-cs__kicker:hover { color: var(--tfhcs-accent-deep); }
.tfh-cs__title {
	margin: 4px 0 2px;
	font-family: var(--tfhcs-display);
	font-size: clamp(30px, 4.4vw, 48px);
	line-height: 1.05;
	letter-spacing: .01em;
	color: var(--tfhcs-ink);
}
.tfh-cs__subtitle { margin: 0 0 10px; font-size: 18px; color: var(--tfhcs-muted); font-style: italic; }
.tfh-cs__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 10px 0 0; font-size: 14px; color: var(--tfhcs-muted); }
.tfh-cs__chip {
	display: inline-block;
	padding: 3px 10px;
	font-family: var(--tfhcs-display);
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: 12px;
	color: #fff;
	background: var(--tfhcs-accent);
	border-radius: 3px;
}

/* ── release card ───────────────────────────────────────────────────────── */
.tfh-cs__release {
	display: grid;
	grid-template-columns: minmax(180px, 250px) 1fr minmax(170px, 220px);
	gap: 22px;
	align-items: start;
	padding: 20px;
	margin: 0 0 26px;
	background: var(--tfhcs-surface);
	border: 1px solid var(--tfhcs-line);
	border-radius: var(--tfhcs-radius);
}
.tfh-cs__cover { margin: 0; }
.tfh-cs__cover img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.tfh-cs__cover .tfh-cs__label-logo { width: auto; max-width: 120px; max-height: 50px; margin: 12px auto 0; box-shadow: none; border-radius: 0; }

.tfh-cs__specs { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.tfh-cs__spec { display: grid; grid-template-columns: 118px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid #eee; }
.tfh-cs__spec:last-child { border-bottom: 0; }
.tfh-cs__spec dt, .tfh-cs__facts dt, .tfh-cs__crew dt {
	font-family: var(--tfhcs-display);
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: 11px;
	color: var(--tfhcs-muted);
	padding-top: 2px;
}
.tfh-cs__spec dd, .tfh-cs__facts dd, .tfh-cs__crew dd { margin: 0; font-size: 14px; }

.tfh-cs__ratings { padding: 14px 16px; background: #1e2a2e; color: #fff; border-radius: 6px; }
.tfh-cs__ratings-title { margin: 0 0 8px; font-family: var(--tfhcs-display); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: #ffd800; }
.tfh-cs__ratings dl { margin: 0; }
.tfh-cs__rating { padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.tfh-cs__rating:first-child { border-top: 0; }
.tfh-cs__rating dt { font-family: var(--tfhcs-display); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: #98a3a9; }
.tfh-cs__rating dd { margin: 1px 0 0; font-size: 15px; font-weight: 600; }

/* ── reading ────────────────────────────────────────────────────────────── */
.tfh-cs__lede,
.tfh-cs__body,
.tfh-cs__disc,
.tfh-cs__postscript,
.tfh-cs__credits,
.tfh-cs__footnotes,
.tfh-cs__disclosure,
.tfh-cs__footer { max-width: var(--tfhcs-measure); margin-left: auto; margin-right: auto; }

.tfh-cs__lede { font-size: 20px; line-height: 1.55; margin-bottom: 22px; }
.tfh-cs__lede p:last-child { margin-bottom: 0; }

.tfh-cs__body { font-size: 17px; line-height: 1.7; }
.tfh-cs__body img, .tfh-cs__disc img, .tfh-cs__postscript img { max-width: 100%; height: auto; border-radius: 3px; }
.tfh-cs__body img.alignright, .tfh-cs__disc img.alignright { float: right; max-width: 45%; margin: 6px 0 14px 20px; }
.tfh-cs__body img.alignleft, .tfh-cs__disc img.alignleft { float: left; max-width: 45%; margin: 6px 20px 14px 0; }
.tfh-cs__body figure.aligncenter, .tfh-cs__disc figure.aligncenter { clear: both; margin: 24px 0; text-align: center; }
.tfh-cs__body figure.aligncenter img, .tfh-cs__disc figure.aligncenter img { display: inline-block; float: none; max-width: 100%; margin: 0; }
.tfh-cs__body::after, .tfh-cs__disc::after { content: ""; display: table; clear: both; }

.tfh-cs__credits { margin-bottom: 24px; padding: 12px 16px; background: var(--tfhcs-surface); border: 1px solid var(--tfhcs-line); border-radius: 6px; }
.tfh-cs__credits summary { cursor: pointer; font-family: var(--tfhcs-display); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.tfh-cs__cast { margin: 12px 0 6px; font-size: 14px; }
.tfh-cs__crew { margin: 8px 0 0; }
.tfh-cs__crew > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 4px 0; }

.tfh-cs__disc { clear: both; margin-top: 34px; padding-top: 22px; border-top: 3px solid var(--tfhcs-ink); font-size: 16px; line-height: 1.65; }
.tfh-cs__section-title { margin: 0 0 12px; font-family: var(--tfhcs-display); text-transform: uppercase; letter-spacing: .04em; font-size: 22px; color: var(--tfhcs-ink); }
.tfh-cs__facts { margin: 18px 0 0; }
.tfh-cs__facts > div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid #eee; }

.tfh-cs__postscript { margin-top: 24px; padding: 14px 18px; font-size: 15px; background: #f7f5ef; border-left: 3px solid var(--tfhcs-accent); }
.tfh-cs__footnotes { margin-top: 14px; font-size: 14px; color: var(--tfhcs-muted); }
.tfh-cs__disclosure { margin-top: 14px; font-size: 13px; font-style: italic; color: var(--tfhcs-muted); }

.tfh-cs__footer { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--tfhcs-line); font-size: 14px; color: var(--tfhcs-muted); text-align: center; }
.tfh-cs__byline { font-style: italic; color: var(--tfhcs-ink); }
.tfh-cs__copyright { font-size: 12px; }

@media (max-width: 900px) {
	.tfh-cs__release { grid-template-columns: minmax(140px, 200px) 1fr; }
	.tfh-cs__ratings { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.tfh-cs__release { grid-template-columns: 1fr; }
	.tfh-cs__cover { max-width: 240px; margin: 0 auto; }
	.tfh-cs__body img.alignright, .tfh-cs__body img.alignleft,
	.tfh-cs__disc img.alignright, .tfh-cs__disc img.alignleft { float: none; max-width: 100%; margin: 14px 0; }
	.tfh-cs__spec, .tfh-cs__crew > div, .tfh-cs__facts > div { grid-template-columns: 1fr; gap: 2px; }
	.tfh-cs__lede { font-size: 18px; }
}

/* ── archive ────────────────────────────────────────────────────────────── */
.tfh-cs-archive__intro { max-width: 60ch; margin: 6px 0 22px; color: var(--tfhcs-muted); }
.tfh-cs-archive__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tfh-cs-card__link {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 14px;
	height: 100%;
	padding: 12px;
	color: var(--tfhcs-ink);
	text-decoration: none;
	background: var(--tfhcs-surface);
	border: 1px solid var(--tfhcs-line);
	border-radius: var(--tfhcs-radius);
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
.tfh-cs-card__link:hover { color: var(--tfhcs-ink); border-color: var(--tfhcs-accent); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); transform: translateY(-2px); }
.tfh-cs-card__art img { display: block; width: 96px; height: 120px; object-fit: cover; border-radius: 3px; }
.tfh-cs-card__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tfh-cs-card__format { font-family: var(--tfhcs-display); text-transform: uppercase; letter-spacing: .05em; font-size: 10px; color: var(--tfhcs-accent); }
.tfh-cs-card__title { font-family: var(--tfhcs-display); font-size: 18px; line-height: 1.15; }
.tfh-cs-card__subtitle { font-size: 13px; font-style: italic; color: var(--tfhcs-muted); }
.tfh-cs-card__excerpt { font-size: 13px; line-height: 1.45; color: var(--tfhcs-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tfh-cs-archive__pages { margin: 30px 0 50px; text-align: center; }
.tfh-cs-archive__pages .page-numbers { display: inline-block; padding: 6px 12px; margin: 0 2px; color: var(--tfhcs-ink); background: #fff; border: 1px solid var(--tfhcs-line); border-radius: 4px; text-decoration: none; }
.tfh-cs-archive__pages .page-numbers.current { color: #fff; background: var(--tfhcs-accent); border-color: var(--tfhcs-accent); }
