/* WordPress block wrappers — keep the composition the design was built on.
   Loaded after style.css. Only what the core block markup needs. */

/* A template part must not add a box: the header lives inside the hero card. */
.wp-block-template-part { display: contents; }

/* --- layout ---------------------------------------------------------- */

/* WordPress zeroes the margins of a flow layout's first and last child.
   The hero card needs its 8px frame back. */
main.wp-block-group > .hero.wp-block-group { margin: var(--frame); }

/* WordPress puts a 24px block gap between siblings. The design owns its rhythm. */
main#main.wp-block-group { margin-block-start: 0; margin-block-end: 0; }
.hero > .hero-main { margin-block-start: 0; }

/* --- hero ------------------------------------------------------------ */

/* The design sets the headline's margin itself; global styles must not win. */
.hero .wp-block-heading.hero-title { margin: auto 0 0; }

/* The portrait figure carries the blend and the mask, the image fills it. */
figure.hero-portrait { margin: 0; }

.hero-portrait img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0;
}

/* Buttons: .btn sits on the block wrapper, the link inside does the painting. */
.hero-card .wp-block-buttons { margin: 0; }

.wp-block-button.btn {
	width: 100%;
	min-height: 0;
	padding: 0;
	background: transparent;
}

.wp-block-button.btn .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--cobalt);
	color: #fff;
	font-family: var(--text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.18s ease, transform 0.12s ease;
}

/* The CTA button is wider and taller than the card button. */
.wp-block-button.cta-btn { width: auto; }
.wp-block-button.cta-btn .wp-block-button__link { width: auto; min-height: 52px; padding: 0 26px; }

.wp-block-button.btn .wp-block-button__link:hover { background: var(--cobalt-hover); }
.wp-block-button.btn .wp-block-button__link:active { transform: translateY(1px); }

.hero-card .card-link { margin: 12px 0 0; }
.hero-card .card-link a { color: inherit; text-decoration: none; }
.hero-card .card-link a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- inner pages ------------------------------------------------------ */

/* The header sits in the dark top of the card and the page content carries
   the same card on from below, so the two boxes read as one. */
main.page.wp-block-group { background: transparent; }

.page-top.wp-block-group {
	background: var(--ink);
	color: var(--bone);
	margin: var(--frame) var(--frame) 0;
	border-radius: 20px 20px 0 0;
}

main.page .mast.wp-block-group {
	margin: 0 var(--frame) var(--frame);
	border-radius: 0 0 20px 20px;
}

/* A page that does not start with a masthead keeps the rounded card by itself. */
main.page > .page-top:last-child { border-radius: 20px; }

/* Blocks that carry design classes: kill the library margins, keep the look. */
.mast-title.wp-block-post-title { margin: 0; }

.mast-lede.wp-block-post-excerpt { margin: 22px 0 0; max-width: 54ch; }
.mast-lede.wp-block-post-excerpt p { margin: 0; color: var(--bone-70); font-size: 18px; line-height: 1.6; }

.mast-stat-value.wp-block-post-terms,
.mast-stat-value.wp-block-post-date {
	margin: 0;
	color: var(--bone);
	font-family: var(--display);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.mast-stat-value a { color: inherit; text-decoration: none; }
.mast-stat-label { margin: 2px 0 0; color: var(--bone-55); font-size: 12px; line-height: 1.3; }

.pcard-topic.wp-block-post-terms {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	color: var(--ink-60);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pcard-topic.wp-block-post-terms a { color: inherit; text-decoration: none; }
.pcard-topic.wp-block-post-terms a:hover { color: var(--ink); }

.pcard-title.wp-block-post-title { margin: 0; }
.pcard-title a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.pcard:hover .pcard-title a { color: var(--cobalt); }

.pcard-excerpt.wp-block-post-excerpt { margin: 10px 0 0; }
.pcard-excerpt .wp-block-post-excerpt__excerpt {
	max-width: 52ch;
	margin: 0;
	color: var(--ink-70);
	font-size: 15.5px;
	line-height: 1.55;
}

.pcard-date.wp-block-post-date { margin: 18px 0 0; color: var(--ink-62); font-size: 13px; line-height: 1.4; }

/* Query loops: the grid lives on the list, the item is the card.
   .notes is the query wrapper here, so it must not be a grid itself. */
.notes.wp-block-query { display: block; gap: 0; }

.notes .wp-block-post-template,
.related-list .wp-block-post-template,
.search-band .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 64px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.notes .wp-block-post,
.related-list .wp-block-post { display: block; min-width: 0; width: 100%; margin: 0; list-style: none; }

.notes .pcard,
.related-list .pcard { display: block; width: 100%; }

.notes--featured .wp-block-post-template { grid-template-columns: 1fr; }

.related-list .wp-block-post-template { gap: 40px; margin: 24px 0 0; }
.related-list .pcard { padding: 22px 0 0; border-top: 1px solid var(--line); }

/* The article column: the post content box is transparent so the prose
   rules land on the blocks themselves, exactly as in the design. */
.prose .wp-block-post-content { display: contents; }

.prose figure, .prose .wp-block-table { margin-block: 1.6em; }
.prose img { max-width: 100%; height: auto; }
.prose .wp-block-image { margin-block: 1.8em; }
.prose .wp-block-quote { padding-left: 26px; border-left: 2px solid var(--cobalt); }
.prose .wp-block-quote p { font-family: var(--display); font-size: 1.2rem; font-weight: 500; line-height: 1.45; letter-spacing: -0.018em; color: var(--ink); }
.prose .wp-block-quote cite { display: block; margin-top: 12px; color: var(--ink-62); font-size: 13px; font-style: normal; }
.prose .wp-block-heading { scroll-margin-top: 32px; }

/* Author row */
.author p { margin: 0; }
.author figure.author-avatar { width: 52px; height: 52px; margin: 0; flex: none; }
.author-avatar img { display: block; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--ink); }

/* Topic chips */
.filters .chip { font-family: var(--text); }

@media (max-width: 800px) {
	.notes .wp-block-post-template,
	.related-list .wp-block-post-template,
	.search-band .wp-block-post-template { grid-template-columns: 1fr; }
}

/* --- sections --------------------------------------------------------- */

/* WordPress puts a 24px block gap between siblings; the design owns its rhythm. */
.ledger-band, .band-inner, .ledger-grid, .ledger-item,
.practices, .practices-inner, .section-head, .practice-grid, .practice, .also,
.track, .track-inner, .deal-grid, .deal-card, .dd-strip, .dd-count, .dd-scope,
.career, .career-head, .career-list, .career-row, .career-body,
.insights, .insights-inner, .insights-grid, .post-featured, .post-list, .post,
.post-footer, .insights-foot, .faq, .faq-inner, .faq-aside, .faq-list, .faq-item,
.cta, .cta-inner, .cta-grid, .cta-main, .cta-contact, .cta-actions,
.site-footer, .footer-inner, .footer-top, .footer-bottom,
.site-main, .page-top, .mast, .mast-inner, .mast-grid, .mast-foot, .mast-stats, .mast-stat,
.band, .wrap, .article-layout, .article-aside, .aside-card, .prose,
.srows, .srow, .srow-body, .scope, .mrows, .mrow, .mrow-body, .steps, .step,
.cards, .card, .channels, .channel, .notes, .notes-foot, .related, .related-list,
.pagenav, .split, .split-body, .author {
	--wp--style--block-gap: 0px;
}

/* Core lists carry padding the design removes. */
.wp-block-list.practice-list { margin: 22px 0 0; padding: 0; list-style: none; }

/* Career rows are groups now, not <li>. */
.career-list .career-row {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	margin: 0;
	padding: 18px 0;
}

.career-list .career-row:first-child { padding-top: 0; }

/* Links that live inside a paragraph block. */
.section-link a, .faq-link a, .post-link a, .cta-link a,
.post-title a, .post-featured-title a, .cta-email a, .cta-line a {
	color: inherit;
	text-decoration: none;
}

.section-link a, .faq-link a, .post-link a, .cta-link a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.section-link a:hover, .faq-link a:hover, .post-link a:hover, .cta-link a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.post-title a:hover, .post-featured-title a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* FAQ: native details dressed as the mockup's accordion. */
.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 0;
	color: var(--ink);
	font-family: var(--display);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.015em;
	list-style: none;
	cursor: pointer;
	transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary:hover,
.faq-item[open] summary { color: var(--cobalt); }

.faq-item summary::after {
	content: "";
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	border-radius: 2px;
	background:
		linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
		linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}

.faq-item[open] summary::after {
	background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}

.faq-item > p {
	max-width: 62ch;
	margin: 0;
	padding-top: 12px;
	color: var(--ink-70);
	font-size: 16px;
	line-height: 1.6;
}

@media (max-width: 600px) {
	.career-list .career-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
	.faq-item summary { font-size: 18px; padding: 12px 0; }
}

/* Link paragraphs are block-level so they do not add a line-box descender
   (which made every section 15px taller than the design). */
p.section-link, p.faq-link, p.post-link, p.cta-link { display: flex; align-items: center; margin-bottom: 0; }

/* Paragraphs that were anchors in the design carry no margins. */
p.cta-email { margin: 0; }
p.cta-link { margin: 0; }
p.post-link { margin: 0; }
