/**
 * Interactive tours index
 *
 * /product-tours/. The page head, search box, rows and tiles are the Video
 * Library's, from learn.css; this is what the tours add to them. The tour
 * pages themselves are tour-player.css.
 *
 * @copyright   2026, ON1
 */

/* !- Bigger type
 *
 * The tours run every size 2px over the Video Library's, so the learn.css
 * rules these pages borrow are stepped up here. This sheet only loads on the
 * tours pages, so the library itself keeps its sizes.
 */
#library-head .library-intro {
	font-size: var(--text-lg);
}

.library-search > i,
.learn-card-title {
	font-size: 0.9375rem;
}

.library-section .section-blurb,
.library-section .section-view-all,
.learn-thumb .play-badge {
	font-size: var(--text-sm);
}

.learn-thumb .runtime-badge {
	font-size: var(--text-xs);
}

.tours-chip,
.tours-num {
	font-size: var(--text-mini);
}

.tours-meta {
	font-size: var(--text-sm);
}

/* !- Head */
#library-head {
	padding-bottom: 0;
}

.tours-search-input {
	background: none;
	border: none;
	color: var(--text-100);
	font-size: var(--text-base);
	min-width: 0;
	padding: 0.625rem 0.75rem 0.625rem 0;
	width: 100%;
}

.tours-search-input:focus {
	box-shadow: none;
	outline: none;
}

.tours-search-input::placeholder {
	color: var(--text-500);
}

.library-search:focus-within {
	border-color: var(--blue-500);
}

/* Same look as the course page's tabs */
.tours-tabs {
	border-bottom: 1px solid var(--bg-700);
	column-gap: 2rem;
	display: flex;
	flex-wrap: nowrap;
	margin-top: 1.75rem;
	overflow-x: auto;
	scrollbar-width: none;
}

.tours-tabs::-webkit-scrollbar {
	display: none;
}

.tours-tabs button {
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	color: var(--text-400);
	font-size: var(--text-base);
	font-weight: 700;
	padding: 0.75rem 0;
	white-space: nowrap;
}

.tours-tabs button:hover {
	color: var(--text-50);
}

.tours-tabs button[aria-selected="true"] {
	border-bottom-color: var(--blue-500);
	color: var(--text-50);
}

.tours-tab-short {
	display: none;
}

/* !- Rows */
#tours-list {
	padding: 1.75rem 0 3rem 0;
}

.tours-results {
	color: var(--text-500);
	font-size: var(--text-sm);
	margin-bottom: 1.75rem;
}

#tours-list .section-view-all {
	background: none;
	border: 0;
	padding: 0;
}

.library-section:not(.is-open) .tours-extra {
	display: none;
}

.tours-start-done {
	color: var(--text-100);
	font-weight: 600;
}

/* !- Tiles
   The tile itself is learn.css, since /learn/ shows it too. */
.tours-chip-inline {
	background: var(--gold-500);
	border-radius: var(--border-radius);
	color: var(--black);
	font-size: var(--text-mini);
	font-weight: 700;
	padding: 0.125rem 0.3125rem;
	vertical-align: 1px;
}

/* !- Owner tab */
.tours-upgrade {
	align-items: center;
	background: var(--bg-850);
	border-left: 3px solid var(--blue-500);
	border-radius: var(--border-radius);
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	justify-content: space-between;
	margin-bottom: 3.25rem;
	padding: 1.25rem 1.5rem;
}

.tours-upgrade h3 {
	font-size: var(--text-xl);
	margin-bottom: 0.25rem;
}

.tours-upgrade p {
	color: var(--text-400);
	font-size: var(--text-base);
	margin: 0;
}

.tours-upgrade-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.tours-upgrade-actions .btn {
	font-size: var(--text-base);
	padding: 0.75rem 1.25rem;
}

.tours-smaller {
	display: grid;
	gap: 0.75rem 2rem;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	margin: 1rem 0 0 0;
}

.tours-smaller dt {
	color: var(--text-100);
	font-size: 0.9375rem;
	font-weight: 600;
}

.tours-smaller dd {
	color: var(--text-400);
	font-size: 0.9375rem;
	line-height: 1.5;
	margin: 0;
}

/* !- Search */
.tours-empty {
	color: var(--text-400);
	padding: 3rem 0;
}

.tours-empty button {
	background: none;
	border: 0;
	color: var(--link);
	font-weight: 600;
	padding: 0;
}

/* !- Trial page */
#trial-head {
	padding: 3rem 0 1.5rem 0;
}

#trial-head h1 {
	margin-bottom: 0.5rem;
}

#trial-head .library-intro {
	color: var(--text-400);
	font-size: var(--text-base);
}

/* Same as the course page's breadcrumb */
.tours-breadcrumb {
	color: var(--text-500);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--text-sm);
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.tours-breadcrumb li:not(:last-child)::after {
	color: var(--bg-500);
	content: '\203a';
	margin-left: 0.5rem;
}

.tours-breadcrumb a {
	color: var(--text-500);
	text-decoration: none;
}

.tours-breadcrumb a:hover {
	color: var(--text-100);
}

.tours-breadcrumb li[aria-current] {
	color: var(--text-300);
}

#trial-tours {
	padding: 0.5rem 0 4.5rem 0;
}

.tours-note {
	align-items: flex-start;
	background: var(--bg-850);
	border-left: 3px solid var(--green-500);
	border-radius: var(--border-radius);
	display: flex;
	font-size: var(--text-base);
	gap: 0.75rem;
	line-height: 1.55;
	margin-bottom: 1rem;
	padding: 0.75rem 1.25rem;
}

.tours-note strong {
	color: var(--text-50);
}

.tours-note > i {
	color: var(--green-500);
	margin-top: 0.25rem;
}

/* Square corners, per the mockup review. Pinned dark, since its type sits
   on the photo in both themes. */
.trial-hero {
	aspect-ratio: 21 / 8;
	background: #232323;
	display: block;
	overflow: hidden;
	position: relative;
	text-decoration: none;
}

.trial-hero img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s;
	width: 100%;
}

.trial-hero:hover img {
	transform: scale(1.02);
}

.trial-hero::after {
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
	content: "";
	inset: 0;
	position: absolute;
}

.trial-hero-copy {
	bottom: 2rem;
	display: block;
	left: 2.5rem;
	position: absolute;
	right: 2.5rem;
	z-index: 1;
}

.trial-hero-eyebrow {
	align-items: center;
	color: var(--blue-300);
	display: flex;
	font-size: var(--text-sm);
	font-weight: 700;
	gap: 0.5rem;
	letter-spacing: 0.1em;
	margin-bottom: 0.5rem;
	text-transform: uppercase;
}

.trial-hero-eyebrow[hidden] {
	display: none;
}

.trial-hero-ok {
	color: var(--green-500);
}

.trial-hero-title {
	color: #fff;
	display: block;
	font-size: var(--text-4xl);
	font-weight: 900;
	line-height: 1.05;
	margin-bottom: 0.625rem;
	text-transform: uppercase;
}

.trial-hero-text {
	color: #eaeaec;
	display: block;
	font-size: var(--text-lg);
	line-height: 1.5;
	margin-bottom: 1.25rem;
}

.trial-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.trial-hero-actions .btn {
	font-size: var(--text-base);
	padding: 0.75rem 1.25rem;
}

.trial-hero-actions .btn[hidden] {
	display: none;
}

.trial-strip {
	margin-top: 3rem;
}

.trial-count {
	color: var(--text-500);
	font-size: var(--text-sm);
	white-space: nowrap;
}

.trial-max {
	color: var(--text-500);
	font-size: var(--text-sm);
	margin: 1rem 0 0 0;
}

.trial-links {
	border-top: 1px solid var(--bg-700);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--text-sm);
	font-weight: 600;
	gap: 1.75rem;
	margin: 2rem 0 0 0;
	padding-top: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
	.trial-hero img {
		transition: none;
	}
}

@media (max-width: 991.98px) {
	.trial-hero {
		aspect-ratio: 16 / 9;
	}
}

/* !- Phone */
@media (max-width: 575.98px) {
	.trial-hero {
		aspect-ratio: 4 / 5;
	}

	.trial-hero-copy {
		bottom: 1.25rem;
		left: 1.25rem;
		right: 1.25rem;
	}

	.trial-hero-title {
		font-size: var(--text-2xl);
	}

	/* The filmstrip swipes sideways */
	.tours-filmstrip {
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.tours-filmstrip::-webkit-scrollbar {
		display: none;
	}

	.tours-filmstrip > .col {
		flex: 0 0 68%;
		scroll-snap-align: start;
	}

	.tours-tabs {
		column-gap: 1.25rem;
	}

	.tours-tab-long {
		display: none;
	}

	.tours-tab-short {
		display: inline;
	}
}
