/* Font product archive and single product presentation. */
.products-header {
	max-width: 760px;
	margin-bottom: 38px;
}

.products-header__eyebrow,
.product-hero__eyebrow,
.product-download-cta__eyebrow {
	margin: 0 0 8px;
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--pm-accent);
}

.products-header h1 {
	margin: 0 0 12px;
	font-size: clamp(2.2rem, 6vw, 4.5rem);
	line-height: 1;
	letter-spacing: -.05em;
}

.products-header > p:last-child { margin: 0; color: var(--pm-muted); }

.products-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 24px;
}

.products-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.products-archive--after-hero {
	padding-top: clamp(48px, 6vw, 76px);
}

/* Shared VIP image. Source: wp-content/uploads/profile/card.png. */
.product-vip-badge {
	position: relative;
	z-index: 5;
	display: block;
	width: 64px;
	line-height: 0;
	pointer-events: none;
}

.product-vip-badge__image {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

.product-vip-badge--card,
.product-vip-badge--related {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 58px;
}

.product-vip-badge--hero,
.product-vip-badge--archive,
.product-vip-badge--single {
	position: absolute;
	top: clamp(18px, 3vw, 40px);
	right: clamp(18px, 4vw, 52px);
	width: clamp(68px, 6vw, 92px);
}

.product-vip-badge--inline {
	width: 72px;
	margin: 4px 0 14px;
}

.product-card {
	min-width: 0;
	overflow: hidden;
	border-radius: 10px;
	background: var(--pm-surface);
}

.product-card__thumb {
	position: relative;
	display: grid;
	place-items: center;
	margin: 0;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--pm-surface-strong);
	text-decoration: none;
}

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

.product-card__placeholder {
	color: var(--pm-muted);
	font-size: clamp(4rem, 11vw, 8rem);
	font-weight: 800;
	letter-spacing: -.08em;
}

.product-card__body { padding: 20px 22px 23px; }
.product-card__meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin: 0 0 8px; color: var(--pm-muted); font-size: .78rem; font-weight: 700; line-height: 1.45; letter-spacing: .06em; text-transform: uppercase; }
.product-card__title { margin: 0; font-size: clamp(1.2rem, 2.3vw, 1.6rem); line-height: 1.25; letter-spacing: -.025em; }
.product-card__title a { color: var(--pm-fg); text-decoration: none; }
.product-card__title a:hover { color: var(--pm-accent); }
.product-card__title a:visited { color: var(--pm-muted); }
.product-card__excerpt { margin: 12px 0 0; color: var(--pm-muted); font-size: .94rem; }
.product-card__excerpt p { margin: 0; }

.product-hero__header .product-hero__eyebrow { color: rgb(var(--pm-hero-text-rgb) / .86); }
.product-header .product-hero__eyebrow { margin-bottom: 10px; }

.product-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin-top: 0;
	font-size: .8rem;
}

.product-meta__item { display: inline-flex; gap: 6px; align-items: baseline; }
.product-meta__label { color: var(--pm-muted); font-weight: 700; }

.product-reading { padding-bottom: 16px; }

.product-details-after-content {
	margin-top: 48px;
	padding-top: 22px;
	border-top: 1px solid var(--pm-border);
}

.product-details-after-content .product-meta {
	row-gap: 10px;
}
.product-download-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	margin: 0 0 44px;
	padding: 24px;
	border: 1px solid var(--pm-border);
	border-radius: 8px;
	background: var(--pm-bg);
}
.product-download-cta h2 { margin: 0 0 6px; font-size: 1.5rem; line-height: 1.2; }
.product-download-cta p { margin: 0; }
.product-download-cta__eyebrow { margin-bottom: 6px !important; }

.product-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 11px 20px;
	border: 1px solid var(--pm-fg);
	border-radius: 8px;
	background: var(--pm-fg);
	color: var(--pm-bg);
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.product-button:hover { border-color: var(--pm-accent); background: var(--pm-accent); color: var(--pm-accent-text); }
.product-button:visited { color: var(--pm-bg); }
.product-button--secondary:visited { color: var(--pm-fg); }
.product-button--secondary { background: var(--pm-bg); color: var(--pm-fg); }

@media (max-width: 900px) {
	.products-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
	.products-grid,
	.products-grid--three { grid-template-columns: 1fr; }
	.product-card__body { padding: 18px 18px 21px; }
	.product-download-cta { grid-template-columns: 1fr; }
	.product-download-cta .product-button { width: 100%; }
}

/* Sticky download action for single font pages. The bar stays at the viewport
 * bottom while reading, then docks above the footer so it never covers it. */
.single-font_product .site-main {
	position: relative;
}

.product-sticky-download {
	position: fixed;
	z-index: 9970;
	left: 50%;
	bottom: max(14px, env(safe-area-inset-bottom));
	width: min(calc(100% - 32px), 700px);
	transform: translate(-50%, calc(100% + 32px));
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.product-sticky-download[hidden] {
	display: block;
}

.product-sticky-download.is-visible {
	transform: translate(-50%, 0);
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.product-sticky-download.is-footer-visible {
	position: absolute;
	bottom: 16px;
}

.product-sticky-download__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	padding: 10px 10px 10px 18px;
	border: 1px solid var(--pm-border);
	border-radius: 8px;
	background: var(--pm-bg);
}

.product-sticky-download__copy {
	min-width: 0;
	line-height: 1.25;
}

.product-sticky-download__copy span {
	display: block;
	margin-bottom: 2px;
	color: var(--pm-accent);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.product-sticky-download__copy strong {
	display: block;
	overflow: hidden;
	color: var(--pm-fg);
	font-size: .94rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.product-sticky-download__button {
	min-width: 148px;
	white-space: nowrap;
}

.single-font_product.has-product-sticky-download .back-to-top {
	bottom: 92px;
}

@media (max-width: 620px) {
	.product-sticky-download {
		bottom: max(10px, env(safe-area-inset-bottom));
		width: min(calc(100% - 20px), 700px);
	}

	.product-sticky-download.is-footer-visible {
		bottom: 10px;
	}

	.product-sticky-download__inner {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 9px;
		border-radius: 8px;
	}

	.product-sticky-download__copy {
		display: none;
	}

	.product-sticky-download__button {
		width: 100%;
		min-height: 52px;
	}

	.single-font_product.has-product-sticky-download .back-to-top {
		bottom: 86px;
	}
}

/* Editorial features shared with normal posts on single font products. */
.product-editorial-meta { margin-top: 10px; }
.product-card__categories a { color: inherit; text-decoration: none; }
.product-card__categories a:hover { color: var(--pm-fg); text-decoration: underline; }
.product-card__categories a:visited { color: var(--pm-muted); }
.products-header__description { color: var(--pm-muted); }
.products-header__description > :first-child { margin-top: 0; }
.products-header__description > :last-child { margin-bottom: 0; }
.entry-header--hero .product-editorial-meta { color: rgb(var(--pm-hero-text-rgb) / .82); }
.entry-header--hero .product-editorial-meta .entry-details__label { color: rgb(var(--pm-hero-text-rgb) / .96); }

/* Font license details and accessible modal. */
.product-meta__item--license {
	flex-wrap: wrap;
}

.product-license-trigger {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--pm-accent);
	font: inherit;
	font-size: .78rem;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.entry-header--hero .product-license-trigger {
	color: rgb(var(--pm-hero-text-rgb));
}

.product-license-modal[hidden] {
	display: none;
}

.product-license-modal {
	position: fixed;
	z-index: 10050;
	inset: 0;
	display: grid;
	padding: 24px;
	place-items: center;
}

.product-license-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(var(--pm-overlay-rgb) / .78);
}

.product-license-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 700px);
	max-height: min(80vh, 760px);
	overflow: auto;
	padding: clamp(22px, 5vw, 38px);
	border-radius: 8px;
	background: var(--pm-bg);
	outline: none;
}

.product-license-modal__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 44px;
	gap: 20px;
	align-items: start;
	margin-bottom: 22px;
}

.product-license-modal__eyebrow {
	margin: 0 0 6px;
	color: var(--pm-accent);
	font-size: .74rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.product-license-modal__header h2 {
	margin: 0;
	font-size: clamp(1.65rem, 4vw, 2.35rem);
	line-height: 1.08;
	letter-spacing: -.035em;
}

.product-license-modal__close {
	display: grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	border: 1px solid var(--pm-border);
	border-radius: 50%;
	background: var(--pm-bg);
	color: var(--pm-fg);
	font-size: 1.55rem;
	line-height: 1;
	cursor: pointer;
}

.product-license-modal__content {
	font-size: .98rem;
	line-height: 1.7;
}

.product-license-modal__content p {
	margin: 0 0 1.1em;
}

.product-license-modal__summary {
	padding-bottom: 16px;
	border-bottom: 1px solid var(--pm-border);
}

.product-license-modal__notice {
	margin-top: 22px !important;
	padding: 14px 16px;
	border-radius: 8px;
	background: var(--pm-bg);
	color: var(--pm-muted);
	font-size: .86rem;
}

html.has-license-modal {
	overflow: hidden;
}

@media (max-width: 600px) {
	.product-license-modal {
		padding: 12px;
		align-items: end;
	}

	.product-license-modal__dialog {
		width: 100%;
		max-height: 88vh;
		border-radius: 18px 18px 10px 10px;
	}
}

/* Font-product mobile typography. */
@media (max-width: 620px) {
	.product-vip-badge { width: 56px; }
	.product-vip-badge--card,
	.product-vip-badge--related { top: 8px; right: 8px; width: 48px; }
	.product-vip-badge--hero,
	.product-vip-badge--archive,
	.product-vip-badge--single { top: 14px; right: 14px; width: 64px; }
	.product-vip-badge--inline { width: 60px; }

	.products-header__eyebrow,
	.product-hero__eyebrow,
	.product-download-cta__eyebrow { font-size: .82rem; }
	.product-card__meta { font-size: .84rem; }
	.product-card__title { font-size: 1.55rem; }
	.product-card__excerpt { font-size: 1rem; }
	.product-meta { font-size: .86rem; }
	.product-download-cta h2 { font-size: 1.6rem; }
	.product-license-trigger { font-size: .84rem; }
	.product-license-modal__eyebrow { font-size: .8rem; }
	.product-license-modal__content { font-size: 1rem; }
	.product-license-modal__notice { font-size: .92rem; }
}

/* VIP Font contact-only call-to-action. */
.product-vip-contact {
	grid-template-columns: minmax(0, 1fr);
}

.product-vip-contact__intro {
	max-width: 620px;
}

.product-vip-contact__methods {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 2px;
}

.product-vip-contact__method {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-width: 0;
	padding: 13px 15px;
	border: 1px solid var(--pm-border);
	border-radius: 8px;
	background: var(--pm-bg);
	color: var(--pm-fg);
	text-decoration: none;
}

.product-vip-contact__method:visited { color: var(--pm-fg); }
.product-vip-contact__method:hover { border-color: var(--pm-accent); background: var(--pm-surface); color: var(--pm-fg); }
.product-vip-contact__method span { color: var(--pm-muted); font-size: .8rem; font-weight: 700; }
.product-vip-contact__method strong {
	min-width: 0;
	overflow-wrap: anywhere;
	text-align: right;
	font-size: .92rem;
}
.product-vip-contact__empty { margin-top: 4px !important; color: var(--pm-muted); }

@media (max-width: 620px) {
	.product-vip-contact__methods { grid-template-columns: 1fr; }
	.product-vip-contact__method { min-height: 48px; }
	.product-vip-contact__method span { font-size: .82rem; }
	.product-vip-contact__method strong { font-size: .95rem; }
}
