/**
 * Firm profile single (single-aia_firm.php / template-parts/firm-single.php).
 *
 * The layout vocabulary comes from aia-profile.css (.aia-prof__* — banner,
 * idbar, facts, bio, links, .aia-cs sections; both are declared dependencies)
 * and aia-directory.css (cards / texture / monogram). This file holds only
 * the firm-specific deltas: token gutters instead of the profile's fixed
 * padding, an edge-to-edge cover-fit logo box, specialty pills in the badge
 * slot, block-content typography, and the prev/next nav that
 * aia-post-single.css styles on blog posts (never loaded here).
 */

/* ================= container: rail + token gutters ================= */
/* The profile hardcodes 24px side padding; firms follow the site's rail
   convention instead — padding-inline: var(--aia-gutter) (0 above 1600px,
   1.5rem below, 1rem ≤768px), same as entry-content children. No banner on
   firm singles (unlike the member profile), so the container supplies the
   top spacing the banner would have separated. */
.aia-firm .aia-prof {
	padding: 56px var(--aia-gutter) 96px;
}
/* the profile's ≤640px idbar pulls up over its banner (-62px); with no
   banner here that would ride into the breadcrumb — keep it in flow. */
@media (max-width: 640px) {
	.aia-firm .aia-prof {
		padding-top: 36px;
	}
	.aia-firm .aia-prof__idbar {
		margin-top: 0;
	}
}

/* ================= logo box (idbar "photo" slot) ================= */
/* aia-prof__photo supplies size, border, and the hard offset shadow; the
   image covers the slot edge to edge, no inset. */
.aia-firm__logobox {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: var(--aia-paper);
	overflow: hidden;
}
.aia-firm__logobox img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* monogram fallback — dotted mist panel + initials, no inset padding */
.aia-firm__logobox.aia-dir-texture {
	padding: 0;
	background-color: var(--aia-mist);
}

/* ================= specialty pills (badge slot under the strip) ============ */
.aia-firm__specialties {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}
.aia-firm__pill {
	font-family: var(--font-heading, "Archivo", sans-serif);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--aia-ink, #1a1a1a);
	background: var(--aia-mist, #f4f4f2);
	border: 1px solid var(--aia-line, #e3e2df);
	border-radius: var(--radius-pill, 20px);
	padding: 7px 14px;
}

/* ================= description ================= */
/* .aia-prof__bio covers paragraphs (74ch, 18px/1.75); firm descriptions are
   block content, so headings/lists/links need the same treatment the old
   prose column had. Child combinators so nested block content keeps its own
   styling. */
.aia-firm__bio > ul,
.aia-firm__bio > ol,
.aia-firm__bio > blockquote {
	font-size: 18px;
	line-height: 1.75;
}
.aia-firm__bio > h2,
.aia-firm__bio > h3 {
	margin: 1.8em 0 0.6em;
	font-weight: 700;
}
.aia-firm__bio > h2:first-child,
.aia-firm__bio > h3:first-child {
	margin-top: 0;
}
.aia-firm__bio > p a,
.aia-firm__bio > ul a,
.aia-firm__bio > ol a {
	color: var(--aia-red, #fa4132);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ================= members / news sections ================= */
/* .aia-cs supplies the top-rule section shell and head; the card grids come
   from aia-directory.css. News cards carry a red category eyebrow (the
   entity singles use .aia-ent-roster__role for this, but aia-programs.css
   isn't loaded here). */
.aia-firm__card-role {
	display: inline-block;
	font-family: var(--font-heading, "Archivo", sans-serif);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--aia-red, #fa4132);
	margin: 0 0 4px;
}
.aia-firm .aia-dir-card__date {
	display: block;
	font-size: 13px;
	color: var(--aia-slate, #6e6c66);
	margin-top: 8px;
}
.aia-firm a.aia-dir-card {
	text-decoration: none;
}

/* ================= back link + prev/next nav ================= */
.aia-firm__back {
	margin: 0 0 24px;
}
.aia-firm__back a {
	font-family: var(--font-heading, "Archivo", sans-serif);
	font-size: 13px;
	font-weight: 700;
	color: var(--aia-ink, #1a1a1a);
	text-decoration: none;
	transition: color 0.2s ease;
}
.aia-firm__back a:hover {
	color: var(--aia-red, #fa4132);
}

/* prev/next — two .aia-dir-card--person cards, same component and rules as
   the blog single's nav (aia-post-single.css), duplicated here because that
   stylesheet isn't enqueued on firm singles. */
.aia-post-nav {
	max-width: var(--container-xl, 1600px);
	margin: 0 auto;
	padding: 40px var(--aia-gutter, 40px) 72px;
	border-top: 1px solid var(--aia-line, #e3e2df);
}
.aia-post-nav__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}
.aia-post-nav a.aia-dir-card {
	text-decoration: none;
}
.aia-post-nav__role {
	display: inline-block;
	font-family: var(--font-heading, "Archivo", sans-serif);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--aia-red, #fa4132);
	margin: 0 0 4px;
}
.aia-post-nav .aia-dir-card--person .aia-dir-card__name {
	text-decoration: underline;
	text-decoration-color: var(--aia-line, #e3e2df);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.aia-post-nav .aia-dir-card--person:hover .aia-dir-card__name {
	color: var(--aia-red, #fa4132);
	text-decoration-color: var(--aia-red, #fa4132);
}
.aia-post-nav .aia-dir-card__more {
	margin-top: auto;
	padding-top: 16px;
	font-family: var(--font-heading, "Archivo", sans-serif);
	font-size: 13px;
	font-weight: 700;
	color: var(--aia-red, #fa4132);
}

/* ================= responsive ================= */
@media (max-width: 640px) {
	/* the profile pulls the idbar up over the banner at this width; keep the
	   pill row clear of the overlap */
	.aia-firm__specialties {
		margin-top: 10px;
	}
}
@media (max-width: 700px) {
	.aia-post-nav {
		padding-top: 32px;
		padding-bottom: 56px;
	}
	.aia-post-nav__grid {
		grid-template-columns: 1fr;
	}
}
