/* AP Saleroom — inner pages. */

.ap-page-hero {
	padding: clamp(9rem, 16vw, 13rem) 0 clamp(2.5rem, 5vw, 4rem);
	background:
		radial-gradient(1200px 500px at 80% -10%, color-mix(in srgb, var(--ap-union-blue) 45%, transparent), transparent 70%),
		var(--ap-navy-900);
	border-bottom: 1px solid var(--ap-navy-700);
}
.ap-page-hero__title {
	font-family: var(--ap-display);
	font-weight: 400;
	font-size: clamp(2.25rem, 5vw, 4rem);
	margin: 0;
}

/* Photo variant: featured image glows behind the hero band */
.ap-page-hero--photo { position: relative; overflow: hidden; }
.ap-page-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 30%;
	opacity: .28;
	filter: saturate(.9);
	mask-image: linear-gradient(180deg, rgb(0 0 0 / .9), transparent 96%);
	-webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / .9), transparent 96%);
}
.ap-page-hero--photo .ap-wrap { position: relative; }

/* Content photo figures (used by migrated pages) */
.ap-prose .ap-photo { margin: 2rem 0; }
.ap-prose .ap-photo img { width: 100%; border-radius: var(--ap-radius); border: 1px solid var(--ap-navy-700); }
.ap-photo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.ap-photo-duo figure { margin: 0; }
.ap-photo-duo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; border-radius: var(--ap-radius); border: 1px solid var(--ap-navy-700); }
@media (max-width: 640px) { .ap-photo-duo { grid-template-columns: 1fr; } }

/* Contact page */
.ap-contact__intro { max-width: 62ch; margin-bottom: 2.5rem; }
.ap-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 1.5rem;
	align-items: start;
}
@media (max-width: 900px) { .ap-contact__grid { grid-template-columns: 1fr; } }
.ap-contact__aside { display: grid; gap: 1.5rem; }
.ap-contact-card {
	background: var(--ap-navy-800);
	border: 1px solid var(--ap-navy-700);
	border-radius: var(--ap-radius);
	padding: 1.75rem;
}
.ap-contact-card__title { font-size: 1.375rem; margin-bottom: 1.25rem; }
.ap-contact-card__people { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.ap-contact-card__people li { display: grid; gap: .1rem; padding: 1rem 0; border-bottom: 1px solid var(--ap-navy-700); }
.ap-contact-card__people li:first-child { padding-top: 0; }
.ap-contact-card__who { font-family: var(--ap-heading); font-weight: 600; font-size: 1.125rem; }
.ap-contact-card__role { font-size: .8125rem; color: var(--ap-mist); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3rem; }
.ap-contact-card__people a { color: var(--ap-mist); text-decoration: none; }
.ap-contact-card__people a:hover { color: var(--ap-red-bright); }
.ap-contact-card__hours { font-size: .875rem; color: var(--ap-mist); margin-bottom: 1.25rem; }
.ap-contact-card--venue { padding: 0; overflow: hidden; }
.ap-contact-card--venue .ap-contact-card__photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ap-contact-card--venue .ap-contact-card__title,
.ap-contact-card--venue address,
.ap-contact-card--venue .ap-contact-card__map { margin-inline: 1.75rem; }
.ap-contact-card--venue .ap-contact-card__title { margin-top: 1.5rem; margin-bottom: .5rem; }
.ap-contact-card--venue address { font-style: normal; color: var(--ap-mist); line-height: 1.8; }
.ap-contact-card--venue .ap-contact-card__map { display: inline-block; margin-block: .75rem 1.5rem; color: var(--ap-red-bright); text-decoration: none; font-weight: 500; }

/* Legal/FAQ pages: sticky vertical table of contents */
.ap-legal {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 4rem);
	/* No align-items: start — the aside must stretch to the full row height
	   or the sticky panel inside it has no room to stick. */
}
.ap-toc__panel {
	position: sticky;
	top: 96px;
	max-height: calc(100vh - 130px);
	overflow-y: auto;
	background: var(--ap-navy-900);
	border: 1px solid var(--ap-navy-700);
	border-radius: var(--ap-radius);
	padding: 1.25rem 1rem;
	scrollbar-width: thin;
	scrollbar-color: var(--ap-navy-700) transparent;
}
.ap-toc__title {
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ap-red-bright);
	margin: 0 0 .75rem .75rem;
}
.ap-toc__list { list-style: none; margin: 0; padding: 0; }
.ap-toc__list a {
	display: block;
	font-size: .875rem;
	line-height: 1.45;
	color: var(--ap-mist);
	text-decoration: none;
	padding: .5rem .75rem;
	border-left: 2px solid transparent;
	border-radius: 0 6px 6px 0;
	transition: color .2s var(--ap-ease-out), border-color .2s var(--ap-ease-out), background .2s var(--ap-ease-out);
}
.ap-toc__list a:hover { color: var(--ap-cream); background: var(--ap-navy-800); }
.ap-toc__list a.is-active {
	color: var(--ap-cream);
	border-left-color: var(--ap-union-red);
	background: var(--ap-navy-800);
	font-weight: 500;
}
.ap-toc__mobile { display: none; }
.ap-prose h2[id] { scroll-margin-top: 110px; }

@media (max-width: 900px) {
	.ap-legal { grid-template-columns: 1fr; gap: 1.5rem; }
	.ap-toc__panel { display: none; }
	.ap-toc__mobile {
		display: block;
		background: var(--ap-navy-900);
		border: 1px solid var(--ap-navy-700);
		border-radius: var(--ap-radius);
		padding: .5rem 1rem;
	}
	.ap-toc__mobile summary {
		font-size: .8125rem;
		font-weight: 600;
		letter-spacing: .18em;
		text-transform: uppercase;
		color: var(--ap-red-bright);
		cursor: pointer;
		padding: .5rem 0;
	}
	.ap-toc__mobile[open] summary { border-bottom: 1px solid var(--ap-navy-700); margin-bottom: .5rem; }
}

/* Department template */
.ap-dept-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; }
.ap-dept-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-dept-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgb(10 20 40 / .35) 0%, rgb(10 20 40 / .85) 85%);
}
.ap-dept-hero .ap-wrap { position: relative; z-index: 1; padding-block: 3rem; }
