/* Sermon transcripts (content block .kj-transcript, generated by kostel-prepisy). */

.kj-transcript {
	margin-top: 2.5em;
	padding-top: 2em;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.kj-transcript .kj-ai-note {
	font-size: 0.9em;
	color: #6b6b6b;
	background: rgba(0, 0, 0, 0.04);
	border-radius: 6px;
	padding: 0.7em 1em;
}

/* Timestamp links: a small "play" pill so it reads as clickable.
   span.kj-ts-static: sermon without a video (transcribed from the MP3), plain time, not clickable. */
.jubilee-entry-content .kj-transcript a.kj-ts,
.jubilee-entry-content .kj-transcript .kj-ts-static {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.1em 0.6em 0.1em 0.5em;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.07);
	color: #222 !important;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	font-size: 0.8em;
	line-height: 1.6;
	text-decoration: none;
	white-space: nowrap;
	vertical-align: 0.1em;
	margin-right: 0.4em;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.jubilee-entry-content .kj-transcript .kj-ts-static {
	color: #6b6b6b !important;
	font-weight: 400;
	cursor: default;
}

.jubilee-entry-content .kj-transcript a.kj-ts::before {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0.32em 0 0.32em 0.52em;
	border-color: transparent transparent transparent currentColor;
}

/* .kj-ts.kj-ts: one class more than the theme's inline
   ".jubilee-entry-content a:hover:not(.jubilee-button):not(.wp-block-file__button) { color: #000 !important }",
   which is printed after this file and would otherwise make the text black on black. */
.jubilee-entry-content .kj-transcript a.kj-ts.kj-ts:hover,
.jubilee-entry-content .kj-transcript a.kj-ts.kj-ts:focus-visible {
	background: #000;
	color: #fff !important;
}

.jubilee-entry-content .kj-transcript a.kj-ts.kj-ts:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

/* Outline (variant A): time | bold title, smaller grey description below. */
.kj-transcript ol.kj-outline {
	list-style: none;
	margin: 0 0 2em;
	padding: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.kj-transcript ol.kj-outline li {
	display: grid;
	grid-template-columns: 5.2em 1fr;
	align-items: start;
	margin: 0;
	padding: 0.55em 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	font-size: 0.82em;
	line-height: 1.4;
	color: #777;
}

.kj-transcript ol.kj-outline li::before {
	content: none; /* no theme list bullets */
}

.jubilee-entry-content .kj-transcript ol.kj-outline li a.kj-ts,
.jubilee-entry-content .kj-transcript ol.kj-outline li .kj-ts-static {
	grid-row: span 2;
	justify-self: start;
	margin-top: 0.15em;
	font-size: 0.95em;
}

.kj-transcript ol.kj-outline li strong {
	font-size: 1.18em;
	color: #222;
	margin-bottom: 0.1em;
}

/* Outline titles link to their chapter (a.kj-chapter is added by transcript.js).
   .kj-chapter.kj-chapter beats the theme's inline link colour and a:hover rules, and its
   ".jubilee-entry-full-content a:not(…):not(…):not(…) { font-weight: normal }". */
.jubilee-entry-content .kj-transcript ol.kj-outline a.kj-chapter.kj-chapter {
	font-weight: 700;
	color: #222 !important;
	text-decoration: none;
	cursor: pointer;
}

.jubilee-entry-content .kj-transcript ol.kj-outline a.kj-chapter.kj-chapter:hover,
.jubilee-entry-content .kj-transcript ol.kj-outline a.kj-chapter.kj-chapter:focus-visible {
	color: #000 !important;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.kj-transcript h3[id] {
	outline: none; /* focused after the jump, for screen readers only */
}

/* Chapter headings in the transcript */
.jubilee-entry-content .kj-transcript h3 a.kj-ts,
.jubilee-entry-content .kj-transcript h3 .kj-ts-static {
	font-size: 0.62em;
	vertical-align: 0.2em;
}
