/* HTJ Video Library v0.3 (SN-2611-209 step 11): /videos/, tag pages and the page per video.
   Loaded only on library requests, in every player mode. Theme tokens only. */

/* ---------- library hero + search form ---------- */
.hvl-hero .solp-hero-inner { max-width: 980px; padding-bottom: 48px; }
.hvl-form {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
	gap: 14px 12px;
	margin-top: 30px;
	align-items: end;
}
.hvl-form .hvl-q { grid-column: 1 / -1; }
.hvl-form label {
	display: block;
	margin: 0 0 6px;
	font-family: var(--f-head);
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .78);
}
.hvl-form input[type="search"],
.hvl-form select {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0 14px;
	font-family: var(--f-body);
	font-size: 16px; /* 16px: no zoom on iOS */
	line-height: 1.2;
	color: var(--ink);
	background: #fff;
	border: 1px solid #fff;
	border-radius: 0;
	box-sizing: border-box;
}
.hvl-form input[type="search"] { min-height: 54px; font-size: 18px; padding: 0 16px; }
.hvl-form select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 38px;
	background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	text-overflow: ellipsis;
}
.hvl-form input::placeholder { color: #6b7291; opacity: 1; }
.hvl-form .hvl-go .btn { min-height: 48px; width: 100%; max-width: none; margin: 0; box-sizing: border-box; white-space: nowrap; }
.hvl-form input:focus-visible,
.hvl-form select:focus-visible,
.hvl-form .btn:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 2px;
}

/* ---------- results bar, grid, cards ---------- */
.hvl-results { padding-top: 56px; scroll-margin-top: 80px; } /* keeps the status line clear of the sticky header after paging */
.hvl-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 20px;
	margin: 0 0 26px;
}
.hvl-status {
	margin: 0;
	font-family: var(--f-head);
	font-size: 14px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--navy);
}
.hvl-status:focus { outline: none; }
.hvl-status:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.hvl-clear {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--f-head);
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--amber);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.hvl-clear[hidden] { display: none; }
.hvl-grid[hidden], .hvl-empty[hidden] { display: none !important; }
.hvl-card h3 { overflow-wrap: anywhere; }
/* v0.8: our topic names are long ("International tax policy and transfer pricing") and the theme
   keeps .chip and .date on one line, so a card grew past its 340-378 px track (date outside the
   card, 2-card rows, wider than a 390 px phone). Let the card shrink and the chip wrap. */
.hvl-card { min-width: 0; }
.hvl-card .c-top { flex-wrap: wrap; row-gap: 8px; }
.hvl-card .c-top .chip { white-space: normal; min-width: 0; max-width: 100%; }
.hvl-card a.cover:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hvl-card .blg-card-media { position: relative; }
.hvl-dur {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 1;
	padding: 3px 8px;
	font-family: var(--f-head);
	font-size: 12.5px;
	letter-spacing: .06em;
	line-height: 1.3;
	color: #fff;
	background: rgba(4, 29, 106, .88);
}
.hvl-card .blg-card-media.is-fallback .hvl-dur { right: 10px; }
.hvl-empty {
	margin: 8px auto 0;
	max-width: 640px;
	padding: 40px 28px;
	text-align: center;
	border: 1px solid var(--line);
	border-top: 3px solid var(--gold);
	background: #fff;
}
.hvl-empty p { margin: 0 0 14px; }
.hvl-empty p:last-child { margin-bottom: 0; }
.hvl-empty-h { font-family: var(--f-head); font-size: 22px; color: var(--navy); }
.hvl-empty a:not(.btn) { color: var(--amber); }
#hvl-pager .blg-pager a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- the page per video ---------- */
.hvl-video .post-head-inner .post-title { overflow-wrap: anywhere; }
/* v0.7: topic + country chips side by side, wrapping on phones */
.hvl-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; } /* 22px = the theme's .cat-chip margin, kept under the row */
.hvl-chips .cat-chip { margin: 0; }
.hvl-video .post-layout { padding-top: 36px; }
.hvl-player { margin-top: 0; }
.hvl-player .yt img { opacity: 1; }
.hvl-player .yt.hvl-noposter { background: var(--navy-deep); }
.hvl-ph {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.hvl-ph .ph-mark { font-family: var(--f-head); font-weight: 300; font-size: 64px; line-height: 1; color: rgba(254, 184, 64, .9); }
.hvl-ph .ph-word { font-family: var(--f-head); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
/* no poster: the play button takes the place of the section mark; the wordmark sits at the foot */
.hvl-player .hvl-ph { justify-content: flex-end; padding-bottom: 7%; }
.hvl-player .hvl-ph .ph-mark { display: none; }
.hvl-video .article h2 { margin-top: 1.6em; }
.hvl-video .article p { overflow-wrap: anywhere; }
.hvl-chapters {
	list-style: none;
	margin: 0 0 1.6em;
	padding: 0;
	border-top: 1px solid var(--line);
}
.hvl-chapters li {
	display: flex;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	line-height: 1.45;
}
.hvl-chapters .hvl-t {
	flex: 0 0 4.2em;
	font-family: var(--f-head);
	font-size: 15px;
	letter-spacing: .04em;
	color: var(--amber);
	font-variant-numeric: tabular-nums;
}
.hvl-transcript {
	margin: 2em 0;
	border: 1px solid var(--line);
	background: #fff;
}
.hvl-transcript summary {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 0 20px;
	cursor: pointer;
	font-family: var(--f-head);
	font-size: 15px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--navy);
	list-style: none;
}
.hvl-transcript summary::-webkit-details-marker { display: none; }
.hvl-transcript summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--amber); }
.hvl-transcript[open] summary::after { content: "\2212"; }
.hvl-transcript summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.hvl-transcript-body { padding: 4px 20px 8px; border-top: 1px solid var(--line); }
.hvl-speaker {
	margin: 1.2em 0 .3em;
	font-family: var(--f-head);
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--amber);
}
.hvl-article-list { margin: 0; padding-left: 1.1em; }
.hvl-article-list li { margin: 6px 0; }
.hvl-article-list a { display: inline-block; padding: 8px 0; color: var(--navy); }
.hvl-video .inline-cta + .inline-cta { margin-top: -1.4em; }
/* the theme's ".article a" rule strips the bottom border and underlines; buttons in our CTAs keep the full 2px frame */
.hvl-video .article .inline-cta .btn { border-bottom-style: solid; border-bottom-width: 2px; text-decoration: none; }
.hvl-video .article .inline-cta .btn-ghost { border-bottom-color: rgba(5, 35, 126, .42); }
.hvl-video .article .inline-cta .btn-ghost:hover { border-bottom-color: var(--navy); }
.hvl-video .article .inline-cta .btn-gold { border-bottom-color: var(--gold); }
.hvl-video .inline-cta .btn:focus-visible,
.hvl-video .cta-band .btn:focus-visible,
.hvl-related .btn:focus-visible,
.hvl-player .yt:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hvl-grid-2 { justify-content: flex-start; }
.hvl-related .blg-card { background: #fff; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
	.hvl-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hvl-form .hvl-go { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
	.hvl-results { padding-top: 40px; scroll-margin-top: 100px; }
	.hvl-hero .solp-hero-inner { padding-bottom: 36px; }
}
@media (max-width: 380px) {
	.hvl-form { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- reduced motion: no lift or zoom on cards ---------- */
@media (prefers-reduced-motion: reduce) {
	.hvl-card, .hvl-card .blg-card-media img, .hvl-card .more .ar { transition: none !important; transform: none !important; }
	.hvl-card:hover { transform: none !important; }
}
