/* The Table Sermons — inherits bb-theme type; colors taken from the site. */
.tts {
	--tts-ink: #1f1f1f;
	--tts-muted: #6b6b6b;
	--tts-line: #dcd8d3;
	--tts-surface: #fff;
	--tts-accent: #5171a5;   /* site link blue */
	--tts-warm: #b5aea8;     /* "Plan Your Visit" taupe */
	--tts-radius: 6px;
}
.tts { padding-top: 40px; padding-bottom: 60px; }
.tts-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8em; margin: 0 0 .25em; opacity: .75; }
.tts-meta { margin: .25em 0 0; font-size: .9em; opacity: .8; }
.tts-meta a { color: inherit; }

.tts-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 24px 0; }
.tts-card { display: flex; flex-direction: column; }
.tts-card__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eee; border-radius: 4px; }
.tts-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.tts-card:hover .tts-card__image img { transform: scale(1.03); }
.tts-card__title { font-size: 1.1em; margin: .75em 0 0; line-height: 1.3; }
.tts-card__title a { color: inherit; text-decoration: none; }

.tts-video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 24px; background: #000; }
.tts-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tts-audio { margin: 0 0 24px; }
.tts-sermon__header { margin-bottom: 24px; }
.tts-sermon__title { margin: 0; }
.tts-sermon__image img { width: 100%; height: auto; margin-bottom: 24px; }
.tts-related { margin-top: 56px; }

.tts-latest { display: grid; gap: 32px; grid-template-columns: 3fr 2fr; align-items: center; margin: 24px 0 40px; }
.tts-latest__media img { width: 100%; height: auto; }
.tts-latest .tts-video { margin: 0; }
@media (max-width: 767px) { .tts-latest { grid-template-columns: 1fr; gap: 16px; } }


.tts-term__header--series { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: center; margin-bottom: 24px; }
.tts-term__image img { width: 100%; height: auto; border-radius: 4px; }
@media (max-width: 767px) { .tts-term__header--series { grid-template-columns: 1fr; } }
.tts-term-list { columns: 3 220px; list-style: none; padding: 0; }
.tts-term-list li { padding: 4px 0; break-inside: avoid; }
.tts-term-list span { opacity: .6; }

/* ---- Filter bar ------------------------------------------------------ */
.tts-filters {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px;
	background: var(--tts-surface); border-radius: var(--tts-radius);
	box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
	padding: 20px 24px; margin: 8px 0 32px;
}
.tts-filters__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 16px; flex: 1 1 auto; }
.tts-filter label {
	display: block; margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em;
	text-transform: uppercase; color: var(--tts-muted);
}
.tts-filter select {
	-webkit-appearance: none; appearance: none; width: 100%; height: 46px; margin: 0;
	padding: 0 40px 0 14px; font: inherit; font-size: 15px; color: var(--tts-ink); line-height: 44px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b6b6b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
	border: 1px solid var(--tts-line); border-radius: 4px; box-shadow: none; cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
	text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
}
.tts-filter select:hover { border-color: #b9b3ac; }
.tts-filter select:focus { outline: none; border-color: var(--tts-accent); box-shadow: 0 0 0 3px rgba(81,113,165,.18); }
.tts-filter.is-active select { border-color: var(--tts-accent); background-color: #f4f7fb; font-weight: 500; }
.tts-filters__actions { display: flex; align-items: center; gap: 20px; }
.tts-filters__clear { font-size: 14px; color: var(--tts-muted); text-decoration: none; white-space: nowrap; }
.tts-filters__clear:hover { color: var(--tts-ink); }

.tts-button {
	display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px;
	font-size: 15px; font-weight: 500; border-radius: 4px; text-decoration: none; white-space: nowrap;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.tts-button--outline { color: var(--tts-ink); border: 1px solid var(--tts-ink); background: transparent; }
.tts-button--outline:hover, .tts-button--outline:focus { color: #fff; background: var(--tts-ink); text-decoration: none; }

@media (max-width: 991px) {
	.tts-filters__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); flex-basis: 100%; }
	.tts-filters__actions { width: 100%; justify-content: space-between; }
}
@media (max-width: 600px) {
	.tts-filters { padding: 16px; }
	.tts-filters__fields { grid-template-columns: 1fr; }
	.tts-filters__actions { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
	.tts-button { justify-content: center; }
	.tts-filters__clear { text-align: center; }
}

/* ---- Pagination ------------------------------------------------------ */
.tts-pagination { margin: 48px 0 0; }
.tts-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.tts-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 44px; height: 44px; padding: 0 14px; border-radius: 4px;
	font-size: 15px; font-weight: 500; line-height: 1; text-decoration: none;
	color: var(--tts-ink); background: var(--tts-surface); border: 1px solid var(--tts-line);
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.tts-pagination a.page-numbers:hover, .tts-pagination a.page-numbers:focus { border-color: var(--tts-ink); color: var(--tts-ink); text-decoration: none; }
.tts-pagination .page-numbers.current { background: var(--tts-ink); border-color: var(--tts-ink); color: #fff; }
.tts-pagination .page-numbers.dots { background: transparent; border-color: transparent; min-width: 24px; padding: 0; color: var(--tts-muted); }
.tts-pagination .prev { margin-right: 8px; }
.tts-pagination .next { margin-left: 8px; }
@media (max-width: 600px) {
	.tts-pagination .tts-pagination__label { display: none; }
	.tts-pagination .prev, .tts-pagination .next { margin: 0; }
}

/* ---- Homepage "Current series" panel --------------------------------- */
.tts-current { --tts-green: #34623f; --tts-green-dark: #284c31; max-width: 520px; }
.tts-current p { margin: 0; }
.tts-current__eyebrow {
	display: inline-block; padding: 6px 12px; margin-bottom: 18px !important;
	background: #1f1f1f; color: #fff; border-radius: 3px;
	font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2;
}
.tts-current__title { font-family: "Libre Baskerville", serif; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; margin: 0 0 22px; }
.tts-current__title a { color: inherit; text-decoration: none; }
.tts-current__title a:hover { color: var(--tts-green); }
.tts-current__latest { border-left: 3px solid var(--tts-green); padding: 2px 0 2px 16px; margin-bottom: 28px; }
.tts-current__label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b6b6b; margin-bottom: 4px !important; }
.tts-current__sermon { font-size: 19px; font-weight: 600; line-height: 1.35; }
.tts-current__sermon a { color: #1f1f1f; text-decoration: none; }
.tts-current__sermon a:hover { color: var(--tts-green); }
.tts-current__meta { font-size: 14px; color: #6b6b6b; margin-top: 2px !important; }
.tts-current__summary { font-size: 15px; line-height: 1.55; margin-top: 10px !important; color: #333; }
.tts-current__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.tts-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 26px; border-radius: 3px; border: 2px solid var(--tts-green);
	font-family: Montserrat, sans-serif; font-size: 15px; font-weight: 800; letter-spacing: .3px;
	text-transform: uppercase; line-height: 1.2; text-decoration: none !important;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.tts-btn--primary { background: var(--tts-green); color: #fff !important; box-shadow: 5px 5px 20px rgba(0,0,0,.2); }
.tts-btn--primary:hover, .tts-btn--primary:focus { background: var(--tts-green-dark); border-color: var(--tts-green-dark); }
.tts-btn--secondary { background: transparent; color: var(--tts-green) !important; }
.tts-btn--secondary:hover, .tts-btn--secondary:focus { background: var(--tts-green); color: #fff !important; }
.tts-btn:focus-visible { outline: 3px solid rgba(52,98,63,.35); outline-offset: 2px; }
@media (max-width: 767px) {
	.tts-current { max-width: none; margin-top: 8px; }
	.tts-current__actions { flex-direction: column; }
	.tts-btn { width: 100%; }
}
