/* Single Speech Styles
––––––––––––––––––––––––––––––––––––––––––––––––– */
.single-speech__wrapper {
	max-width: 800px;
	margin-bottom: 1.25rem;
}

.single-speech__type {
	display: inline-block;
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--byu-grey-dark);
	padding: 0.3rem 1rem;
	border: 1px solid var(--byu-grey-medium);
	border-radius: 3px;
	margin-top: 2rem;
}

.single-speech__type:hover {
	color: var(--byu-white);
	background-color: var(--byu-grey-medium-dark);
	border-color: var(--byu-grey-medium-dark);
}

.single-speech__title {
	font-family: var(--source-serif-pro);
	font-size: 1.75em;
	font-weight: 400;
	line-height: 1.25;
	margin: 0.5em 0 0;
}

.single-speech__speakers-wrapper {
	width: max-content;
	display: flex;
	flex-direction: column;
}

.single-speech__speaker {
	display: inline-block;
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--pgsp-theme-color);
	opacity: 0.85;
	text-transform: uppercase;
	margin: 0.8rem 0 0;
}

.single-speech__other-available-languages {
	margin: 1.2rem 0 0;
}

.single-speech__other-available-language {
	display: inline-block;
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 0.7rem;
	font-weight: 400;
	color: var(--pgsp-theme-color);
	opacity: 0.85;
	text-transform: uppercase;
	margin: 0.4rem 1rem 0 0;
}

.single-speech__speaker-subtext {
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 0.65rem;
	font-style: italic;
	color: var(--byu-grey-dark);
	margin: 0.5rem 0 0;
}

.single-speech__date {
	font-style: normal;
	color: #aaa;
}

.single-speech__callout {
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 1.2rem;
	font-style: italic;
	font-weight: 400;
	text-align: center;
	color: #57789e;
	line-height: 1.8;
	margin-top: 2.75rem;
}

.single-speech__callout a {
	text-decoration: underline;
}

.single-speech__callout-divider {
	width: 50%;
	max-width: 310px;
	border-style: solid;
	border-color: #80a5d0;
	border-bottom: none;
	margin-top: 2rem;
}

.single-speech__ai-disclaimer {
	font-family: var(--source-serif-pro);
	font-size: 1.125rem;
	line-height: 1.75;
	margin-bottom: 1.5rem;
	text-align: center;
}

.single-speech__ai-disclaimer p {
	margin: 0;
}

.single-speech__ai-disclaimer a {
	color: var(--pgsp-theme-color); /* Changed to match speaker name color */
	font-weight: 500;
}

.single-speech__ai-disclaimer a:hover {
	text-decoration: underline;
}

.single-speech__content {
	font-family: var(--source-serif-pro);
	font-size: 1.125rem;
	line-height: 1.75;
	margin-top: 2.5rem;
}

.single-speech__content h2 {
	font-size: 24px;
	font-weight: 400;
	margin: 2.5rem 0 1rem;
}

.single-speech__content h2 b,
.single-speech__content h2 strong {
	font-weight: 400;
}

.single-speech__content h3 {
	font-size: 22px;
	font-weight: 500;
}

.single-speech__content h4 {
	font-size: 20px;
	font-weight: 500;
}

.single-speech__content h5 {
	font-size: 18px;
}

.single-speech__content h6 {
	font-size: 16px;
}

.single-speech__content a {
	color: var(--pgsp-theme-color);
}

.single-speech__content a:hover {
	text-decoration: underline;
}

.single-speech__content iframe {
	max-height: 50vw;
	max-width: 100%;
}

.single-speech__content img {
	height: auto;
}

.single-speech__content figure {
	margin-left: 0;
	margin-right: 0;
}

.single-speech__unavailable-message {
	text-align: center;
}

.single-speech__notes {
	font-family: var(--source-serif-pro);
	font-size: 0.8125rem;
	font-weight: 300;
	line-height: 2;
	word-wrap: break-word;
	margin-top: 2rem;
	border-top: 1px solid var(--byu-grey-medium-dark);
	padding-top: 1rem;
}

.single-speech__notes a {
	color: var(--pgsp-theme-color);
}

.single-speech__speaker-blurb {
	font-size: 1.125rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 3rem;
}

.single-speech__speaker-blurb-image {
	width: 50%;
	max-width: 175px;
}

.single-speech__speaker-blurb-text {
	font-family: var(--source-serif-pro);
	font-style: italic;
	line-height: 1.4;
	color: var(--byu-grey-dark);
	margin-top: 2rem;
}

.single-speech__notes a:hover,
.single-speech__notes-abbreviations-link:hover,
.single-speech__speaker:hover {
	text-decoration: underline;
}

/* Yoast Bread Crumbs Styling
----------------------------------------------*/
.breadcrumbs_link {
	color: var(--pgsp-theme-color);
	font-weight: 400;
	font-size: 0.7rem;
}

.breadcrumb_last strong{
	font-weight: 400;
	font-size: 0.7rem;
}

#breadcrumbs {
	text-transform: uppercase;
}

.breadcrumb-separator {
	color: var(--pgsp-theme-color) !important;
	padding: 0 8px;
}

/* Generic Button Classes
 * Used in video player, speech post content (e.g. Truman Madsen lectures)
––––––––––––––––––––––––––––––––––––––––––––––––– */
.single-speech__button-wrapper {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	line-height: 1;
}

.single-speech__content .single-speech__button-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-row-gap: 0.75rem;
	justify-items: center;
}

.single-speech__button,
a.single-speech__button,
.single-speech__button-single {
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 0.7rem;
	font-weight: 500;
	color: var(--byu-grey-medium-dark);
	text-transform: uppercase;
	white-space: nowrap;
	padding: 0.3rem 0.75rem;
	border: 1px solid var(--byu-grey-medium);
	border-radius: 3px;
	margin: 0.25rem;
}

.single-speech__button:hover,
.single-speech__button--active {
	cursor: pointer;
	color: var(--byu-white);
	background-color: var(--byu-grey-medium-dark);
	border-color: var(--byu-grey-medium-dark);
}

@media (min-width: 400px) {

	.single-speech__content .single-speech__button-wrapper {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 640px) {

	.single-speech__content .single-speech__button-wrapper {
		grid-template-columns: repeat(4, 1fr);
	}

	.single-speech__speaker-blurb {
		display: grid;
		grid-template-columns: 175px auto;
		grid-column-gap: 2rem;
	}

	.single-speech__speaker-blurb-image {
		width: 100%;
	}

	.single-speech__speaker-blurb-text {
		align-self: flex-start;
	}
}

@media (min-width: 1024px) {

	.single-speech__type {
		margin-top: 3rem;
	}

	.single-speech__subtext-wrapper {
		display: flex;
	}

	.single-speech__speaker-position::after {
		content: "•";
		margin: 0 0.25rem;
	}

	.single-speech__date {
		font-style: italic;
		color: var(--byu-grey-dark);
	}

	.single-speech__content .single-speech__button-wrapper {
		display: flex;
	}

	.single-speech__content figure {
		margin-left: 40px;
		margin-right: 40px;
	}

	.single-speech__button:first-child {
		margin-left: 0;
	}

	.single-speech__button:last-child {
		margin-right: 0;
	}
}

/* Audio Player Styles
––––––––––––––––––––––––––––––––––––––––––––––––– */
.audio-player__wrapper--fixed {
	position: fixed;
	top: 0;
	z-index: 101;
	max-width: none;
	width: 100%;
	height: auto;
	background-color: #9bb8da;
	transition: top 400ms ease;
	display: flex;
	justify-content: center;
}

.audio-player {
	height: 5rem;
	width: 100%;
	max-width: 560px;
	display: grid;
	grid-template-columns: auto 3rem;
	background-color: #9bb8da;
	margin-left: auto;
	margin-right: auto;
}

.audio-player--fixed {
	max-width: 800px;
	margin: 0;
}

.audio-player__main {
	display: grid;
	grid-template-columns: min-content repeat(4, auto);
	justify-items: center;
	align-items: center;
	padding: 0.5rem 0 0 1rem;
	border-right: 1px solid var(--byu-navy);
}

.audio-player__tag {
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 0.65rem;
	font-weight: 500;
	color: var(--byu-navy);
	text-transform: uppercase;
}

.audio-player__timeline {
	grid-column: 2 / 6;
	height: 1px;
	width: calc(100% - 1.3rem);
	background-color: var(--byu-white);
	margin: 0 0.65rem;
	background-clip: content-box;
	padding: 5px 0;
}

.audio-player__timeline-marker {
	width: 1px;
	border: 5px solid var(--byu-white);
	border-radius: 100%;
	margin: -4px 0 0 -5px;
}

.audio-player__play-pause-wrapper {
	width: 20px;
	justify-self: center;

}

.audio-player__play,
.audio-player__pause {
	height: 22px;
	padding-right: 10px;
	padding-left: 5px;
	padding-top: 8px;
	padding-bottom: 8px;
}

.audio-player__duration-status {
	max-width: 80px;
	display: flex;
	flex-wrap: wrap;
	align-self: flex-start;
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 0.75rem;
	color: var(--byu-navy);
	margin-top: 0.8rem;
}

.audio-player__skip-back,
.audio-player__skip-forward {
	height: 24px;
	padding-left: 10px;
	padding-right: 10px;
	padding-top: 5px;
	padding-bottom: 5px;
}

.audio-player__speed-select {
	width: auto;
	margin-top: -0.5rem;
}

.tooltip {
	visibility: hidden;
	background-color: var(--byu-grey-dark);
	color: var(--byu-white);
	text-align: center;
	padding: 5px;
	border-radius: 6px;
	position: absolute;
	font-size: .6rem;
	z-index: 1;
	bottom: -250%;
	left: -5%;
	opacity: 0;
	transition: opacity 0.3s;
}

.audio-player__speed-label:hover .tooltip {
	visibility: visible;
	opacity: 1;
}

.audio-player__speed-label {
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 0.75rem;
	color: var (--byu-navy);
	text-transform: uppercase;
}

.audio-player__speed-selection {
	display: block;
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 0.75rem;
	color: var(--byu-white);
	margin: 0 auto;
	-webkit-appearance: none;
	border: none;
	background-color: transparent;
}

.audio-player__speed-selection option {
	color: #000;
}

.audio-player__download-wrapper {
	height: 100%;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.audio-player__download {
	height: 22px;
}

.audio-player__timeline:hover,
.audio-player__timeline-marker:hover,
.audio-player__speed-selection:hover {
	cursor: pointer;
}

.hidden {
	display: none;
}

@media (min-width: 560px) {

	.audio-player {
		grid-template-columns: auto 4rem;
		border-radius: 6px;
	}

	.audio-player--fixed {
		border-radius: 0;
	}
}

@media(min-width: 601px) {
	.audio-player__wrapper--fixed.audio-player__wrapper--logged-in {
		top: 46px;
	}
}

@media (min-width: 1024px) {

	.audio-player__wrapper {
		width: calc(100% - 17rem);
		max-width: calc(1240px - 17rem);
		margin: 0 auto;
	}

	.audio-player__wrapper--fixed {
		max-width: none;
		width: 100%;
		z-index: 1;
		transition: top 400ms ease;
	}

	.audio-player {
		height: 3rem;
		max-width: 800px;
		margin-left: unset;
		margin-right: unset;
	}

	.audio-player__main {
		grid-template-columns: repeat(2, min-content) 80px auto repeat(3, min-content);
		grid-gap: 1rem;
		padding: 0 1rem;
	}

	.audio-player__timeline {
		order: 4;
		grid-column: unset;
	}

	.audio-player__play-pause-wrapper {
		order: 2;
		margin-top: 4px;
		margin-left: 0.5rem;
	}

	.audio-player__duration-status {
		order: 3;
		align-self: unset;
		margin: 0;
	}

	.audio-player__skip-back {
		order: 5;
	}

	.audio-player__skip-forward {
		order: 6;
	}

	.audio-player__speed-select {
		order: 7;
		margin-top: unset;
	}
}

/* Related Speech Styles
––––––––––––––––––––––––––––––––––––––––––––––––– */
.single-speech__related-title {
	font-family: var(--roboto);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--byu-grey-dark);
	text-transform: uppercase;
	letter-spacing: 2px;
	margin: 2.5rem 0 0.5rem 1rem;
}

.single-speech__related-tags {
	display: flex;
	flex-wrap: wrap;
}

.single-speech__related-tag {
	font-family: var(--ibm-plex-sans-ssm);
	font-size: 0.7rem;
	font-weight: 500;
	color: var(--byu-white);
	background-color: var(--pgsp-theme-color);
	padding: 0.3rem 0.75rem;
	border-radius: 3px;
	margin: 0.3rem 0.5rem;
}

.single-speech__related-speeches {
	background-color: var(--pgsp-grey);
	margin-bottom: 4rem;
}

.single-speech__related-speech {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 1rem 0;
	margin: 0 1rem;
}

.single-speech__related-speech:nth-of-type(2) {
	border-top: 1px solid var(--byu-grey-medium-dark);
	margin-top: 0.5rem;
}

.single-speech__related-speech-title {
	font-family: var(--source-serif-pro);
	font-size: 1.4rem;
	font-weight: 400;
	color: var(--pgsp-theme-color);
	margin: 0;
}

.single-speech__related-speech-info {
	display: flex;
	flex-direction: column;
	font-family: var(--ibm-plex-sans-ssm);
	color: var(--byu-grey-dark);
	margin-top: 1rem;
}

.single-speech__related-speech-date {
	margin-top: 0.5rem;
}

.single-speech__related-speech-title:hover,
.single-speech__related-speech-speaker:hover {
	text-decoration: underline;
}

@media (min-width: 640px) {

	.single-speech__related-speeches {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.single-speech__related-speech {
		padding: 0.5rem 1.5rem;
		margin: 1rem 0;
	}

	.single-speech__related-speech:nth-of-type(2) {
		border-top: unset;
		border-left: 1px solid var(--byu-grey-medium-dark);
		margin-top: 1rem;
	}

	.single-speech__related-speech-title {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}

	.single-speech__related-speech-info {
		display: unset;
	}

	.single-speech__related-speech-date::before {
		content: "| ";
	}
}

@media (min-width: 782px) {
	.audio-player__wrapper--fixed.audio-player__wrapper--logged-in {
		top: 32px;
	}
}

@media print {
	.collection-link__wrapper {
		display: none;
	}

	.fixed-content-spacer {
		display: none;
	}

	.video-player__wrapper {
		display: none;
	}

	.audio-player__wrapper .audio-player__wrapper--logged-in{
		display: none;
	}

	.video-player__options-wrapper{
		display: none;
	}

	.audio-player__main {
		display: none;
	}

	.video-player__options-left-align-container {
		display: none;
	}

	.single-speech__callout{
		margin: 0;
	}

	.single-speech__related-title {
		display: none;
	}

	.single-speech__related-speeches {
		display: none;
	}

	.single-speech__share-icon-wrapper{
		display: none;
	}

	.single-speech__related-tags{
		display: none;
	}

	.single-speech__speaker-blurb{
		display: none;
	}


}

.single-speech__speaker-blurb-image {
	width: 150px;
	height: auto;
	object-fit: contain;
	max-width: 100%;
}
