/**
 * Media Library page styles.
 *
 * Uses ONLY the theme design tokens (var(--y), var(--blk), var(--w),
 * var(--font-display|head|body)) plus the #161614 panel grey from .pr-card, so
 * Appearance → Customize → Colors & Fonts flows through automatically.
 */

/* ------------------------------------------------------------------ *
 * Page-specific nav (inherits the global fixed nav{} chrome)
 * ------------------------------------------------------------------ */
.ml-nav-in {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 40px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.ml-back {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	transition: color var(--t);
}
.ml-back:hover { color: var(--y); }
.ml-nav-logo {
	font-family: var(--font-display);
	font-size: 24px;
	letter-spacing: 2px;
	color: var(--y);
	text-decoration: none;
}
.ml-nav-logo-link { display: block; line-height: 0; }
.ml-nav-logo-img { height: 36px; width: auto; display: block; }
.ml-inquiries { padding: 9px 18px; font-size: 11px; letter-spacing: 1.5px; }

/* ------------------------------------------------------------------ *
 * Hero — image slider + black overlay + stats
 * ------------------------------------------------------------------ */
.ml-hero {
	position: relative;
	overflow: hidden;
	background: var(--blk);
	min-height: 72vh; /* consistent header height across both media heroes */
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 128px 40px 72px;
	isolation: isolate;
}
.ml-hero-bg { position: absolute; inset: 0; z-index: -1; }
.ml-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: grayscale(var(--ml-grayscale, 50%));
	opacity: 0;
	transition: opacity 0.8s ease-in-out;
}
.ml-slide.is-active { opacity: 0.5; }
.ml-overlay {
	position: absolute;
	inset: 0;
	opacity: var(--ml-overlay, 1); /* slider overlay darkness, editable in the Customizer */
	background: linear-gradient(
		rgba(var(--blk-rgb), 0.2) 0%,
		rgba(var(--blk-rgb), 0.55) 50%,
		rgba(var(--blk-rgb), 0.95) 100%
	);
}
.ml-dots {
	position: absolute;
	bottom: 20px;
	right: 40px;
	display: flex;
	gap: 6px;
	z-index: 2;
}
.ml-dot {
	width: 6px;
	height: 6px;
	padding: 0;
	border: none;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.25);
	cursor: pointer;
	transition: width 0.3s, background 0.3s;
}
.ml-dot.is-active { width: 24px; background: var(--y); }

.ml-hero-in { position: relative; z-index: 1; width: 100%; } /* fill width so content stays left-aligned inside the flex hero */
.ml-hero-h {
	font-family: var(--font-display);
	font-size: clamp(54px, 8vw, 104px);
	line-height: 0.9;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--w);
	margin: 6px 0 26px;
}
.ml-hero-h span,
.ml-hero-h em { display: block; font-style: normal; }
.ml-hero-h em { color: var(--y); }

.ml-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.ml-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	padding: 14px 24px;
	min-width: 88px;
}
.ml-stat-num {
	font-family: var(--font-head);
	font-size: 32px;
	font-weight: 900;
	line-height: 1;
	color: var(--y);
}
.ml-stat-label {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin-top: 4px;
}
.ml-hero-intro {
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.7);
	max-width: 620px;
}

/* ------------------------------------------------------------------ *
 * Library toolbar
 * ------------------------------------------------------------------ */
/* Section background is light grey; the toolbar lives in a sticky white band. */
.ml-library { background: var(--media-cards-bg, #f3f3f3); padding-bottom: 72px; }
.ml-head {
	position: sticky;
	top: 64px; /* sits just below the fixed nav */
	z-index: 50;
	background: var(--media-card-bg, #fff);
	padding: 22px 40px 14px;
	border-bottom: 1px solid #ececec;
}
.ml-head-in { max-width: 1240px; margin: 0 auto; }
.ml-body { max-width: 1240px; margin: 0 auto; padding: 30px 40px 0; }

.ml-toolbar {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	margin-bottom: 16px;
}
.ml-search {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 240px;
	padding: 10px 14px;
	background: #161614;
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.5);
}
.ml-search-input {
	flex: 1;
	background: none;
	border: none;
	outline: none;
	color: var(--w);
	font-family: var(--font-body);
	font-size: 14px;
}
.ml-search-input::placeholder { color: rgba(255, 255, 255, 0.4); }

.ml-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ml-pill {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: transparent;
	color: rgba(255, 255, 255, 0.6);
	cursor: pointer;
	transition: color var(--t), background var(--t), border-color var(--t);
}
.ml-pill:hover { color: var(--w); border-color: rgba(255, 255, 255, 0.35); }
.ml-pill.is-active { background: var(--y); border-color: var(--y); color: var(--blk); }

.ml-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 0;
}
.ml-count {
	font-family: var(--font-head);
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}
.ml-count-num { color: var(--y); }
.ml-sort {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-head);
	font-size: 13px;
	letter-spacing: 0.5px;
}
.ml-sort-label { color: #888; white-space: nowrap; }

/* Themed custom dropdown (replaces the native select). */
.ml-dd { position: relative; }
.ml-dd-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.3px;
	color: var(--blk);
}
.ml-dd-btn svg { transition: transform 0.18s ease; color: #888; }
.ml-dd.is-open .ml-dd-btn svg { transform: rotate(180deg); }
.ml-dd-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 180px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
	z-index: 60;
}
.ml-dd-opt {
	padding: 10px 14px;
	border-radius: 7px;
	cursor: pointer;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 14px;
	color: var(--blk);
	white-space: nowrap;
}
.ml-dd-opt:hover { background: #f3f3f3; }
.ml-dd-opt.is-active { background: var(--y); color: var(--blk); font-weight: 700; }
.ml-dd-menu[hidden] { display: none; }

/* ------------------------------------------------------------------ *
 * Card grid
 * ------------------------------------------------------------------ */
.card-grid.ml-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	transition: opacity 0.2s;
}
.ml-grid.is-loading { opacity: 0.5; pointer-events: none; }

.ml-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0; /* let grid items shrink so long unbroken text can't blow out the track */
	padding: 18px 20px;
	background: #161614;
	border: 1px solid rgba(255, 255, 255, 0.05);
	text-decoration: none;
	transition: background var(--t), border-color var(--t), transform var(--t);
}
.ml-card-top:empty { display: none; }
.ml-card:hover {
	background: #1c1c18;
	border-color: rgba(var(--y-rgb), 0.3);
	transform: translateY(-2px);
}
.ml-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ml-outlet {
	flex: 1;
	min-width: 0;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--w);
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ml-card .ml-badge { flex-shrink: 0; }
.ml-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--y);
	color: var(--blk);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 10px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}
.ml-badge-i { color: var(--blk); font-size: 11px; line-height: 1; }
.ml-headline {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 19px;
	line-height: 1.12;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.92);
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere; /* wrap very long unbroken outlet strings */
	word-break: break-word;
	/* Clamp to 2 lines with an ellipsis. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ml-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.ml-date {
	font-family: var(--font-head);
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.4);
}
.ml-action {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--y);
	text-decoration: none; /* no default link underline — only the hover border-bottom */
	border-bottom: 1.5px solid transparent; /* yellow underline appears on hover */
	padding-bottom: 2px;
	transition: color 0.15s ease, border-color 0.15s ease;
}
/* On card hover: the action darkens and its underline turns accent-yellow. */
.ml-card:hover .ml-action { border-bottom-color: var(--y); }

.ml-empty { grid-column: 1 / -1; }
.ml-empty,
.ml-noresults {
	font-family: var(--font-body);
	color: rgba(255, 255, 255, 0.5);
	text-align: center;
	padding: 36px 0;
}
.ml-more-wrap {
	display: flex;
	flex-direction: column;
	gap: 26px;
	margin-top: 40px;
}
.ml-progress { display: flex; flex-direction: column; gap: 10px; }
.ml-progress-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: var(--font-head);
	font-size: 13px;
	letter-spacing: 0.5px;
	color: #8a8a8a;
}
.ml-showing strong { color: var(--blk); font-weight: 700; }
.ml-percent { color: #b0b0b0; }
.ml-progress-bar {
	height: 3px;
	background: #e6e6e6;
	border-radius: 2px;
	overflow: hidden;
}
.ml-progress-fill {
	display: block;
	height: 100%;
	width: 0;
	background: var(--y);
	border-radius: 2px;
	transition: width 0.4s ease;
}
.ml-more { align-self: center; }

/* `display:flex/inline-block` on these elements would otherwise beat the
   browser's default [hidden] rule — force them hidden when the attribute is set. */
.ml-more-wrap[hidden],
.ml-more[hidden],
.ml-noresults[hidden] { display: none !important; }

/* ------------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------------ */
/* Small desktop / tablet landscape → 2 columns. */
@media ( max-width: 1024px ) {
	.card-grid.ml-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet / large phone. */
@media ( max-width: 768px ) {
	.ml-nav-in { padding: 0 18px; }
	.ml-hero { padding: 96px 20px 48px; }
	.ml-dots { right: 20px; }
	.ml-hero-h { font-size: clamp(40px, 12vw, 80px); }
	.ml-head { padding: 14px 18px 12px; }
	.ml-body { padding: 20px 18px 0; }

	/* Horizontal-scroll the filter pills so the sticky header stays compact. */
	.ml-filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin: 0 -18px;
		padding: 0 18px;
	}
	.ml-filters::-webkit-scrollbar { display: none; }
	.ml-pill { flex: 0 0 auto; }
}

/* Phone → single column. */
@media ( max-width: 560px ) {
	.card-grid.ml-grid { grid-template-columns: 1fr; }
	.ml-search { width: 100%; }
	.ml-stats { gap: 8px; }
	.ml-stat { min-width: 0; padding: 11px 14px; flex: 1 1 70px; }
	.ml-stat-num { font-size: 25px; }
	.ml-stat-label { font-size: 10px; }
	.ml-meta { gap: 10px; }
	.ml-progress-top { font-size: 12px; }
	.ml-more { width: 100%; }
	.ml-nav-logo-img { height: 30px; }
	.ml-nav-logo { font-size: 20px; }
	.ml-inquiries { padding: 8px 12px; font-size: 10px; letter-spacing: 1px; }
	.ml-back { font-size: 10px; }
	.ml-cta { padding: 56px 22px; }
	.ml-cta-btns { flex-direction: column; }
	.ml-cta-btn { width: 100%; text-align: center; }
}

/* Very small phones. */
@media ( max-width: 380px ) {
	.ml-hero-h { font-size: clamp(32px, 13vw, 60px); }
	.ml-nav-in { padding: 0 14px; gap: 10px; }
	.ml-inquiries { padding: 7px 10px; }
}

/* ------------------------------------------------------------------ *
 * Light "Media Mentions" section — the hero stays dark, the library
 * (toolbar + grid) sits on white with dark-on-light cards. Scoped under
 * .ml-library so it wins over the dark defaults above and never affects
 * the hero. Accent (var(--y)) is kept for the active pill.
 * ------------------------------------------------------------------ */
.ml-library .ml-search {
	background: #ffffff;
	border: 1.5px solid #e0e0e0;
	border-radius: 10px;
	padding: 13px 18px;
	color: #888;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ml-library .ml-search:focus-within {
	border-color: var(--blk);
	box-shadow: 0 0 0 3px rgba(var(--blk-rgb), 0.07);
}
.ml-library .ml-search:focus-within svg { color: var(--blk); }
.ml-library .ml-search-input { color: var(--blk); font-size: 15px; }
.ml-library .ml-search-input::placeholder { color: #999; }

/* Inactive pills are plain text; only the active one is a yellow pill. */
.ml-library .ml-pill {
	background: transparent;
	border: none;
	color: #555;
	text-transform: none;
	font-size: 14px;
	letter-spacing: 0.2px;
}
.ml-library .ml-pill:hover { color: var(--blk); background: transparent; }
.ml-library .ml-pill.is-active { background: var(--y); color: var(--blk); }

/* Divider sits under the filter row (matching the design); the results/sort
   row below it has no underline. */
.ml-library .ml-toolbar { border-bottom: 1px solid #ececec; padding-bottom: 20px; }
.ml-library .ml-meta { border-bottom: none; }
.ml-library .ml-count { color: #666; }
.ml-library .ml-count-num { color: var(--blk); }
.ml-library .ml-sort {
	border: 1px solid #dcdce0;
	border-radius: 8px;
	padding: 9px 14px;
	background: #fff;
}

.ml-library .ml-card {
	background: var(--media-card-bg, #fff);
	border-color: #ececec;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.ml-library .ml-card:hover {
	background: var(--media-card-bg, #fff);
	border-color: #d8d8d8;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}
.ml-library .ml-outlet { color: var(--media-card-outlet, #9a9a9a); }
.ml-library .ml-headline { color: var(--media-card-heading, #141414); }
.ml-library .ml-date { color: #a0a0a0; }
.ml-library .ml-action { color: #c2c2c2; }
a.ml-action { cursor: pointer; }
.ml-library .ml-card:hover .ml-action { color: var(--blk); }
.ml-library a.ml-action:hover { color: var(--blk); border-bottom-color: var(--y); }

.ml-library .ml-empty,
.ml-library .ml-noresults { color: #666; }

/* ------------------------------------------------------------------ *
 * "Work With Sam" CTA band (below the load-more)
 * ------------------------------------------------------------------ */
.ml-cta {
	background: var(--y);
	padding: 88px 40px;
	text-align: center;
}
.ml-cta-in { max-width: 760px; margin: 0 auto; }
.ml-cta-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--blk);
	margin-bottom: 22px;
}
.ml-cta-eyebrow::before,
.ml-cta-eyebrow::after {
	content: "";
	display: block;
	width: 24px;
	height: 2px;
	background: var(--blk);
}
.ml-cta-h {
	font-family: var(--font-head);
	font-weight: 900;
	font-size: clamp(44px, 5vw, 68px);
	line-height: 1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--blk);
	margin: 0 0 16px;
}
.ml-cta-sub {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	color: rgba(0, 0, 0, 0.78);
	margin: 0 0 36px;
}
.ml-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ml-cta-btn {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 15px 36px;
	text-decoration: none;
	border: 2px solid var(--blk);
	transition: background 0.18s ease, color 0.18s ease;
}
.ml-cta-btn--solid { background: var(--blk); color: #fff; }
.ml-cta-btn--solid:hover { background: transparent; color: var(--blk); }
.ml-cta-btn--outline { background: transparent; color: var(--blk); }
.ml-cta-btn--outline:hover { background: var(--blk); color: #fff; }

/* Load More: outlined by default, fills solid black with white text on hover. */
.ml-library .ml-more {
	border: 2px solid var(--blk);
	background: transparent;
	color: var(--blk);
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.ml-library .ml-more:hover {
	background: var(--blk);
	border-color: var(--blk);
	color: #fff;
}
