/**
 * InGoal Podcast Hub — /category/ingoal-radio/
 *
 * Layout + spacing for the purpose-built podcast hub.
 * Uses --ig-* design tokens. Buttons and cards inherit shared
 * .ig-btn / .ig-card from the design system; this file positions
 * and sizes only.
 *
 * Section order: hero → latest episode → what → hosts → featured → archive.
 *
 * @package InGoal
 * @since April 2026
 */

html {
	scroll-behavior: smooth;
}

/* ---------- Layout primitives ---------- */

.iph {
	background: var(--ig-bg-body, #fff);
}

.iph-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 60px;
}

@media (max-width: 768px) {
	.iph-container {
		padding: 0 24px;
	}
}

.iph-section__title {
	font-family: var(--ig-font-heading, Inter), sans-serif;
	font-weight: 700;
	font-size: var(--ig-text-3xl, 28px);
	line-height: 1.3;
	color: var(--ig-text-primary, #0A1628);
	margin: 0 0 var(--ig-space-lg, 24px);
}

.iph-section__count {
	color: var(--ig-text-secondary, #4B5563);
	font-weight: 400;
	font-size: 0.75em;
}

/* Offset the anchor target so it doesn't disappear under a sticky header. */
.iph-archive {
	scroll-margin-top: 80px;
}

/* ---------- Hero (dark, compact) ---------- */

.iph-hero {
	background: var(--ig-navy, #0A1628);
	color: #fff;
	padding: var(--ig-space-4xl, 64px) 0 var(--ig-space-3xl, 48px);
}

.iph-hero__kicker {
	font-family: var(--ig-font-ui, Inter), sans-serif;
	font-weight: 600;
	font-size: var(--ig-text-sm, 14px);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ig-accent-blue, #31487A);
	margin: 0 0 var(--ig-space-sm, 12px);
}

.iph-hero__title {
	font-family: var(--ig-font-heading, Inter), sans-serif;
	font-weight: 700;
	font-size: var(--ig-text-5xl, 42px);
	line-height: 1.15;
	color: #fff;
	margin: 0 0 var(--ig-space-md, 16px);
	max-width: 900px;
}

.iph-hero__lede {
	font-family: var(--ig-font-body, Merriweather), serif;
	font-size: var(--ig-text-base, 17px);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
	max-width: 800px;
	margin: 0 0 var(--ig-space-lg, 24px);
}

.iph-hero__lede a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.iph-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ig-space-sm, 12px);
	margin-bottom: var(--ig-space-lg, 24px);
	align-items: center;
}

/* Emphasized primary CTA — larger, so the "all episodes" jump reads as
   the main action in the hero rather than a peer of the platform chips. */
.iph-hero__browse {
	font-size: var(--ig-text-base, 17px);
	padding: 14px 22px;
	font-weight: 700;
}

/* Ghost / outline variant of .ig-btn for use inside the dark hero. */
.iph-hero__ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #fff;
}

.iph-hero__ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: #fff;
	color: #fff;
}

/* Sponsor block: "Presented by" label in muted white (on the dark hero),
   logo in its own white card so any sponsor logo — dark, color, or white —
   renders in its native colors without needing a CSS filter hack. */
.iph-hero__sponsor {
	display: inline-flex;
	align-items: center;
	gap: var(--ig-space-md, 16px);
}

.iph-hero__sponsor-label {
	font-family: var(--ig-font-ui, Inter), sans-serif;
	font-size: var(--ig-text-xs, 12px);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
	white-space: nowrap;
}

.iph-hero__sponsor-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: var(--ig-radius-md, 8px);
	padding: 10px 16px;
	text-decoration: none;
	transition: transform 0.15s ease;
}

.iph-hero__sponsor-link:hover {
	transform: translateY(-1px);
}

.iph-hero__sponsor-logo {
	max-height: 36px;
	width: auto;
	display: block;
}

.iph-hero__sponsor-name {
	font-family: var(--ig-font-heading, Inter), sans-serif;
	font-weight: 600;
	font-size: var(--ig-text-base, 17px);
	color: var(--ig-text-primary, #0A1628);
}

@media (max-width: 768px) {
	.iph-hero {
		padding: var(--ig-space-3xl, 48px) 0 var(--ig-space-2xl, 40px);
	}

	.iph-hero__title {
		font-size: var(--ig-text-4xl, 32px);
	}
}

/* ---------- Latest episode (prominent, light card) ---------- */

.iph-latest {
	padding: var(--ig-space-3xl, 48px) 0;
	background: var(--ig-bg-subtle, #F9FAFB);
	border-bottom: 1px solid var(--ig-border-color, #E5E7EB);
}

.iph-latest__inner {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: var(--ig-space-2xl, 40px);
	align-items: center;
}

@media (max-width: 900px) {
	.iph-latest__inner {
		grid-template-columns: 1fr;
		gap: var(--ig-space-lg, 24px);
	}
}

.iph-latest__label {
	font-family: var(--ig-font-ui, Inter), sans-serif;
	font-weight: 600;
	font-size: var(--ig-text-sm, 14px);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ig-accent-blue, #31487A);
	margin: 0 0 var(--ig-space-sm, 12px);
}

.iph-latest__title {
	font-family: var(--ig-font-heading, Inter), sans-serif;
	font-weight: 700;
	font-size: var(--ig-text-3xl, 28px);
	line-height: 1.25;
	margin: 0 0 var(--ig-space-sm, 12px);
}

.iph-latest__title a {
	color: var(--ig-text-primary, #0A1628);
	text-decoration: none;
}

.iph-latest__title a:hover {
	color: var(--ig-accent-blue, #31487A);
}

.iph-latest__date {
	font-family: var(--ig-font-ui, Inter), sans-serif;
	font-size: var(--ig-text-sm, 14px);
	color: var(--ig-text-secondary, #4B5563);
	margin: 0 0 var(--ig-space-md, 16px);
}

.iph-latest__permalink {
	font-family: var(--ig-font-ui, Inter), sans-serif;
	font-weight: 600;
	font-size: var(--ig-text-base, 17px);
	color: var(--ig-accent-blue, #31487A);
	text-decoration: none;
}

.iph-latest__permalink:hover {
	text-decoration: underline;
}

.iph-latest__player iframe {
	display: block;
	width: 100%;
	border-radius: var(--ig-radius-md, 8px);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--ig-shadow-sm, 0 1px 3px rgba(10, 22, 40, 0.08));
}

.iph-latest__thumb {
	display: block;
	border-radius: var(--ig-radius-lg, 12px);
	overflow: hidden;
	box-shadow: var(--ig-shadow-md, 0 4px 12px rgba(10, 22, 40, 0.12));
}

.iph-latest__thumb img {
	width: 100%;
	height: auto;
	display: block;
}

/* ---------- What you'll hear ---------- */

.iph-what {
	padding: var(--ig-space-4xl, 64px) 0 var(--ig-space-2xl, 40px);
}

.iph-what__body {
	font-family: var(--ig-font-body, Merriweather), serif;
	font-size: var(--ig-text-lg, 18px);
	line-height: 1.65;
	color: var(--ig-text-primary, #0A1628);
	max-width: 900px;
	margin: 0;
}

/* ---------- Hosts ---------- */

.iph-hosts {
	padding: var(--ig-space-2xl, 40px) 0 var(--ig-space-4xl, 64px);
}

.iph-hosts__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--ig-space-xl, 32px);
}

@media (max-width: 960px) {
	.iph-hosts__grid {
		grid-template-columns: 1fr;
		gap: var(--ig-space-lg, 24px);
	}
}

.iph-host {
	background: #fff;
	border: 1px solid var(--ig-border-color, #E5E7EB);
	border-radius: var(--ig-radius-lg, 12px);
	padding: var(--ig-space-xl, 32px);
	text-align: left;
}

.iph-host__avatar {
	display: block;
	width: 120px;
	height: 120px;
	margin: 0 0 var(--ig-space-md, 16px);
	border-radius: 50%;
	overflow: hidden;
	background: var(--ig-border-color, #E5E7EB);
}

.iph-host__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 50%;
}

.iph-host__name {
	font-family: var(--ig-font-heading, Inter), sans-serif;
	font-weight: 700;
	font-size: var(--ig-text-2xl, 24px);
	line-height: 1.3;
	margin: 0 0 var(--ig-space-md, 16px);
}

.iph-host__name a {
	color: var(--ig-text-primary, #0A1628);
	text-decoration: none;
}

.iph-host__name a:hover {
	color: var(--ig-accent-blue, #31487A);
}

.iph-host__bio {
	font-family: var(--ig-font-body, Merriweather), serif;
	font-size: var(--ig-text-base, 17px);
	line-height: 1.6;
	color: var(--ig-text-secondary, #4B5563);
	margin: 0;
}

.iph-host__bio a {
	color: var(--ig-accent-blue, #31487A);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---------- Featured episodes ---------- */

.iph-featured {
	padding: var(--ig-space-3xl, 48px) 0;
	background: var(--ig-bg-subtle, #F9FAFB);
}

.iph-featured__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--ig-space-lg, 24px);
}

@media (max-width: 960px) {
	.iph-featured__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.iph-featured__grid {
		grid-template-columns: 1fr;
	}
}

.iph-featured__card {
	background: #fff;
	border-radius: var(--ig-radius-lg, 12px);
	overflow: hidden;
	box-shadow: var(--ig-shadow-sm, 0 1px 3px rgba(10, 22, 40, 0.08));
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.iph-featured__card:hover {
	transform: translateY(-2px);
	box-shadow: var(--ig-shadow-md, 0 4px 12px rgba(10, 22, 40, 0.12));
}

.iph-featured__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.iph-featured__image {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--ig-border-color, #E5E7EB);
}

.iph-featured__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.iph-featured__title {
	font-family: var(--ig-font-heading, Inter), sans-serif;
	font-weight: 600;
	font-size: var(--ig-text-lg, 18px);
	line-height: 1.35;
	color: var(--ig-text-primary, #0A1628);
	margin: 0;
	padding: var(--ig-space-md, 16px) var(--ig-space-lg, 20px) var(--ig-space-lg, 20px);
}

/* ---------- Archive (wraps shortcode) ---------- */

.iph-archive {
	padding: var(--ig-space-4xl, 64px) 0;
}
