/*
 * Single product (woocommerce/content-single-product.php): the class page in the Core look.
 * Typefaces and colour tokens (--co-*) come from core.css. Loaded on product pages only.
 *
 * Layout: navy hero; below it a two-column body. On wide screens the registration card sits
 * in the right column, pulled up over the hero and sticky; on narrow screens it comes first.
 */

.mlp {
	--mlp-card: 360px;
	--mlp-gap: 56px;
	--mlp-overlap: 7rem;
	--mlp-radius: 14px;
	--mlp-text: #33536f;
	--mlp-top: var(--wp-admin--admin-bar--height, 0px);
	color: var(--co-navy);
	font-family: var(--co-sans);
	font-size: 1rem;
	line-height: 1.6;
}

.mlp h1,
.mlp h2,
.mlp h3 {
	color: inherit;
	font-family: inherit;
	letter-spacing: -0.02em;
}

.mlp p {
	margin: 0 0 0.75rem;
}

.mlp-sq {
	display: inline-block;
	flex: none;
	width: 0.55em;
	height: 0.55em;
	background: var(--co-orange);
}

/* Hero */

.mlp-hero {
	padding: 2rem 0 2.5rem;
	background: var(--co-navy);
	color: var(--white);
}

.mlp-hero__intro {
	max-width: 760px;
}

.mlp .mlp-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	margin: 0 0 2rem;
	color: var(--co-muted);
	font-size: 0.8125rem;
}

.mlp .mlp-crumbs a {
	color: var(--co-muted);
	text-decoration: none;
}

.mlp .mlp-crumbs a:hover {
	color: var(--white);
}

.mlp-crumbs__sep {
	opacity: 0.5;
}

.mlp-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--co-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mlp .mlp-title {
	margin: 0 0 1rem;
	color: var(--white);
	font-family: var(--co-serif);
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.01em;
}

.mlp .mlp-lead {
	margin-bottom: 1.25rem;
	color: rgba(255, 255, 255, 0.85);
	font-size: 1.125rem;
	line-height: 1.5;
}

.mlp .mlp-times {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin-bottom: 1.75rem;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.9rem;
}

.mlp-times span:first-child {
	color: var(--white);
	font-weight: 600;
}

/* Speaker strip */

.mlp-faculty {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: var(--white);
	text-decoration: none;
}

.mlp-faculty:hover {
	color: var(--white);
}

.mlp-faculty:hover .mlp-faculty__names strong {
	text-decoration: underline;
}

.mlp-faculty__photos {
	display: flex;
	flex: none;
}

.mlp-faculty__photos .mlp-photo {
	width: 48px;
	height: 48px;
	border: 2px solid var(--co-navy);
	font-size: 0.85rem;
}

.mlp-faculty__photos .mlp-photo + .mlp-photo {
	margin-left: -12px;
}

.mlp-faculty__names {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 1rem;
	color: var(--co-muted);
	font-size: 0.875rem;
	line-height: 1.35;
}

.mlp-faculty__names strong {
	color: var(--white);
	font-weight: 600;
}

/* Photos (headshot, or initials when there is none): see mylaw_speaker_photo() */

.mlp-photo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: var(--co-tint);
	color: var(--co-navy);
	font-weight: 600;
	object-fit: cover;
}

.mlp-photo--initials {
	background: var(--co-blue);
	color: var(--white);
}

/* Body */

.mlp-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	padding-bottom: 4rem;
}

/* Registration card */

.mlp-card {
	margin-top: 1.5rem;
	padding: 1.5rem;
	border: 1px solid var(--co-line);
	border-radius: var(--mlp-radius);
	background: var(--white);
	box-shadow: 0 12px 32px rgba(0, 67, 118, 0.12);
}

.mlp-card__facts {
	display: flex;
	gap: 1.5rem;
	margin: 0 0 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--co-line);
}

.mlp-card__facts dt {
	color: var(--co-blue);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.mlp-card__facts dd {
	margin: 0;
	font-weight: 600;
}

.mlp-card__facts .mlp-card__hours {
	font-family: var(--co-serif);
	font-size: 2rem;
	font-weight: 400;
	line-height: 1.1;
}

.mlp-card__label {
	margin-bottom: 0.6rem;
	padding: 0;
	color: var(--co-blue);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.mlp-card .mlp-card__price {
	margin-bottom: 1rem;
	font-size: 1.5rem;
	font-weight: 600;
}

.mlp-formats fieldset {
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
}

.mlp-format {
	display: flex;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--co-line);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s;
}

.mlp-format + .mlp-format {
	margin-top: 0.5rem;
}

.mlp-format:hover {
	border-color: var(--co-blue);
}

.mlp-format:has(input:checked) {
	border-color: var(--co-navy);
	background: var(--co-tint);
}

.mlp-format input {
	flex: none;
	width: 1.05rem;
	height: 1.05rem;
	margin: 0.2rem 0 0;
	accent-color: var(--co-navy);
}

.mlp-format__body {
	display: block;
	min-width: 0;
	flex: 1;
}

.mlp-format__head {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	font-weight: 600;
	line-height: 1.35;
}

.mlp-format__price {
	white-space: nowrap;
}

.mlp-format__price del,
.mlp-card__price del {
	margin-right: 0.25rem;
	color: var(--co-muted);
	font-weight: 400;
}

.mlp-format__price ins,
.mlp-card__price ins {
	text-decoration: none;
}

/* Long format descriptions show only on the chosen format */
.mlp-format__text {
	display: none;
	margin-top: 0.3rem;
	color: var(--mlp-text);
	font-size: 0.8125rem;
	line-height: 1.45;
}

.mlp-format:has(input:checked) .mlp-format__text {
	display: block;
}

.mlp-btn {
	display: block;
	width: 100%;
	padding: 0.85rem 1.5rem;
	border: 0;
	border-radius: var(--co-pill);
	background: var(--co-orange);
	color: var(--white);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s;
}

.mlp-btn:hover,
.mlp-btn:focus-visible {
	background: var(--co-orange-hover);
	color: var(--white);
}

.mlp-card .mlp-note {
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 10px;
	background: var(--co-tint);
	font-size: 0.9rem;
	line-height: 1.45;
}

.mlp-card .mlp-note--ok {
	background: #e7f4ea;
	color: #1e5e2c;
	font-weight: 600;
}

.mlp-pass {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--co-line);
	font-size: 0.875rem;
	line-height: 1.45;
}

.mlp-pass .mlp-pass__title {
	margin-bottom: 0.2rem;
	font-weight: 600;
}

.mlp-pass .mlp-pass__text {
	color: var(--mlp-text);
}

.mlp-pass .mlp-pass__links {
	display: flex;
	gap: 1.25rem;
	margin: 0;
}

.mlp-pass__links a {
	color: var(--co-navy);
	font-weight: 600;
	text-underline-offset: 3px;
}

.mlp-pass__links a:hover {
	color: var(--co-orange);
}

/* Section nav */

.mlp-nav {
	position: sticky;
	top: var(--mlp-top);
	z-index: 20;
	display: flex;
	gap: 0.25rem;
	margin: 1.5rem calc(-1 * var(--gutter)) 0;
	padding: 0.6rem var(--gutter);
	overflow-x: auto;
	border-bottom: 1px solid var(--co-line);
	background: var(--white);
	scrollbar-width: none;
}

.mlp-nav a {
	flex: none;
	padding: 0.4rem 0.9rem;
	border-radius: var(--co-pill);
	color: var(--co-navy);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.15s;
}

.mlp-nav a:hover {
	background: var(--co-tint);
	color: var(--co-navy);
}

.mlp-nav a[aria-current="true"] {
	background: var(--co-navy);
	color: var(--white);
}

/* Sections */

.mlp-section {
	padding-top: 2.75rem;
	scroll-margin-top: calc(var(--mlp-top) + 3.5rem);
}

.mlp-section + .mlp-section {
	margin-top: 2.75rem;
	border-top: 1px solid var(--co-line);
}

.mlp-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.mlp-section__head .mlp-h2 {
	margin: 0;
}

.mlp .mlp-h2 {
	margin: 0 0 1.5rem;
	font-family: var(--co-serif);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.mlp .mlp-h3 {
	margin: 0 0 0.6rem;
	font-size: 1.125rem;
	font-weight: 600;
}

.mlp-main {
	color: var(--mlp-text);
}

.mlp-prose > :last-child {
	margin-bottom: 0;
}

.mlp-prose img {
	height: auto;
	border-radius: 8px;
}

.mlp-empty {
	color: var(--co-blue);
}

/* About */

.mlp-images {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
}

.mlp-images img {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--mlp-radius);
	object-fit: cover;
}

.mlp-block + .mlp-block {
	margin-top: 2.25rem;
}

.mlp .mlp-block__title {
	color: var(--co-navy);
	font-size: 1.05rem;
	font-weight: 600;
}

.mlp-boxes {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.mlp-boxes li {
	padding: 1.1rem 1.25rem;
	border-radius: 12px;
	background: var(--co-tint);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.mlp-boxes strong {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--co-navy);
	font-weight: 600;
}

/* Why Attend boxes lead with a figure (79%, 40+…) */
.mlp-block--why .mlp-boxes strong {
	color: var(--co-orange);
	font-family: var(--co-serif);
	font-size: 2rem;
	font-weight: 400;
	line-height: 1.1;
}

.mlp-outcomes {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem 2rem;
}

.mlp .mlp-outcomes__label {
	margin-bottom: 0.25rem;
	color: var(--co-navy);
	font-weight: 600;
}

/* Speakers */

.mlp-bios {
	display: grid;
	gap: 2rem;
}

.mlp-bio {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
}

.mlp-bio .mlp-photo {
	width: 72px;
	height: 72px;
}

.mlp .mlp-bio__name {
	margin: 0;
	color: var(--co-navy);
	font-size: 1.125rem;
	font-weight: 600;
}

.mlp .mlp-bio__firm {
	margin-bottom: 0.6rem;
	color: var(--co-blue);
	font-size: 0.9rem;
}

.mlp-bio__text {
	font-size: 0.9375rem;
}

.mlp-bio__text p:last-child {
	margin-bottom: 0;
}

.mlp-bio__more {
	margin-top: 0.6rem;
	font-size: 0.9375rem;
}

.mlp-bio__more summary {
	width: fit-content;
	color: var(--co-navy);
	font-weight: 600;
	cursor: pointer;
}

.mlp-bio__more summary:hover {
	color: var(--co-orange);
}

.mlp-bio__part {
	margin-top: 0.85rem;
}

.mlp .mlp-bio__label {
	margin-bottom: 0.15rem;
	color: var(--co-navy);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mlp-bio__part p:last-child {
	margin-bottom: 0;
}

/* Agenda: a timeline */

.mlp-agenda {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mlp-session {
	position: relative;
	padding: 0 0 1.75rem 1.75rem;
	border-left: 1px solid var(--co-line);
}

.mlp-session:last-child {
	padding-bottom: 0;
	border-left-color: transparent;
}

.mlp-session::before {
	position: absolute;
	top: 0.35rem;
	left: -5px;
	width: 9px;
	height: 9px;
	background: var(--co-orange);
	content: "";
}

.mlp .mlp-session__meta {
	margin-bottom: 0.2rem;
	color: var(--co-blue);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mlp .mlp-session__title {
	margin: 0 0 0.4rem;
	color: var(--co-navy);
	font-size: 1.0625rem;
	font-weight: 600;
}

.mlp-session .mlp-prose {
	font-size: 0.9375rem;
}

.mlp .mlp-session__speakers {
	margin: 0.4rem 0 0;
	color: var(--co-blue);
	font-size: 0.875rem;
}

/* Credits */

.mlp-filter input {
	width: 220px;
	max-width: 100%;
	padding: 0.5rem 1rem;
	border: 1px solid var(--co-line);
	border-radius: var(--co-pill);
	color: var(--co-navy);
	font-family: inherit;
	font-size: 0.875rem;
}

.mlp-filter input:focus {
	border-color: var(--co-navy);
	outline: none;
}

.mlp-credits {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mlp-credit {
	padding: 1rem 1.25rem;
	border: 1px solid var(--co-line);
	border-radius: 12px;
	font-size: 0.875rem;
	line-height: 1.45;
}

.mlp-credit[hidden] {
	display: none;
}

.mlp .mlp-credit__state {
	margin: 0 0 0.35rem;
	color: var(--co-navy);
	font-size: 1rem;
	font-weight: 600;
}

.mlp .mlp-credit p {
	margin: 0;
}

.mlp .mlp-credit__credits {
	margin-top: 0.15rem;
	color: var(--co-navy);
	font-weight: 600;
}

.mlp .mlp-credit__note {
	margin-top: 0.5rem;
	color: var(--co-blue);
	font-size: 0.8125rem;
}

/* Wider screens */

@media (min-width: 600px) {
	.mlp-boxes,
	.mlp-outcomes,
	.mlp-credits {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mlp-bio {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 1.5rem;
	}

	.mlp-bio .mlp-photo {
		width: 96px;
		height: 96px;
	}
}

@media (min-width: 992px) {
	.mlp-hero {
		padding: 2.5rem 0 4rem;
	}

	.mlp-hero__intro {
		max-width: calc(100% - var(--mlp-card) - var(--mlp-gap));
	}

	.mlp-body {
		grid-template-columns: minmax(0, 1fr) var(--mlp-card);
		grid-template-rows: auto 1fr;
		column-gap: var(--mlp-gap);
	}

	.mlp-card {
		position: sticky;
		top: calc(var(--mlp-top) + 1.5rem);
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: start;
		margin-top: calc(-1 * var(--mlp-overlap));
	}

	.mlp-nav {
		grid-column: 1;
		grid-row: 1;
		margin: 0;
		padding: 0.75rem 0;
	}

	.mlp-main {
		grid-column: 1;
		grid-row: 2;
	}

	.mlp-block--topics .mlp-boxes {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
