/**
 * _inner.css — the inner pages (spectra-build/inner.cjs; inner-pages.php), in the kit's Practice-Area-Page,
 * Contact-Page and Blog-Index look.
 * Owns: Astra's page banner (the Page Hero: the breadcrumbs, the H1 and its teal rule); the practice-area article and
 * its pinned Related Pages sidebar; the hub's cards; About Us (team grid, bios); Contact's details; the Consultation
 * band (the CTA strip, the form section); anchor offsets under the sticky header; the page article's banner padding;
 * the Video Center's cards.
 * Doesn't own: the blog's cards and sidebar (_blog.css); the team cards, the icon tiles and the form panel's padding on
 * Home (_home.css, reused here).
 * Depends on: global/_tokens.css.
 */

/* Anchors land under the 88px sticky header. */
:is(.entry-content, [class^="astra-advanced-hook-"]) [id] {
	scroll-margin-top: 112px;
}

/* Astra pads a page's <article> when the page has its banner (.ast-single-post): 20px each side and 36px on top. Contact's
   full-width tint section showed it as white margins and a white strip under the banner (Markup #21, #24, 2026-10-28).
   Off where the content opens with one of the builds' full-width sections — an rl- class, which Spectra prints after
   wp-block-uagb-container — whose own padding spaces it, 80px, the designs'. Text-only pages and sections made in the
   editor keep the gutters: Testimonials' container has Spectra's 10px (it sat 10px under the banner without them). */
body.page.ast-single-post.ast-page-builder-template .site-main > article:has(> .entry-content > .wp-block-uagb-container.uagb-is-root-container[class*=" rl-"]:first-child) {
	padding-top: 0;
	padding-inline: 0;
}

/* ── The Page Hero (Astra's banner, layout 2) ───────────────────────────────────────────────────────────────────── */

/* The posts page's archive banner prints a bare <h1> (no .entry-title): both (Markup #29, 2026-10-28). */
:is(.ast-single-entry-banner, .ast-archive-entry-banner) :is(.entry-title, .ast-container > h1) {
	line-height: 1.15;
	text-wrap: balance;
}

/* The 64 × 3 teal brand rule under the H1. */
:is(.ast-single-entry-banner, .ast-archive-entry-banner) :is(.entry-title, .ast-container > h1)::after {
	content: "";
	display: block;
	width: var(--rl-rule-width);
	height: 3px;
	margin: 20px auto 0;
	background: var(--rl-color-alt-brand);
}

/* The trail: white underlined links, teal "/" separators, the current page muted 600. */
:is(.ast-single-entry-banner, .ast-archive-entry-banner) .ast-breadcrumbs {
	font-size: 16px;
	line-height: 26px;
	color: var(--rl-color-alt-brand);
}

:is(.ast-single-entry-banner, .ast-archive-entry-banner) .ast-breadcrumbs a {
	color: var(--rl-white);
	text-decoration: underline 1px;
	text-underline-offset: 3px;
}

:is(.ast-single-entry-banner, .ast-archive-entry-banner) .ast-breadcrumbs a:is(:hover, :focus-visible) {
	text-decoration: underline 2px var(--rl-color-alt-brand);
}

:is(.ast-single-entry-banner, .ast-archive-entry-banner) .ast-breadcrumbs .breadcrumb_last {
	font-weight: 600;
	color: var(--rl-color-on-dark-muted);
}

body:not(.wp-admin) :is(.ast-single-entry-banner, .ast-archive-entry-banner) :focus-visible {
	outline-color: var(--rl-white);
}

/* ── Practice-area pages: the article and Related Pages ─────────────────────────────────────────────────────────── */

.rl-article .rl-lead.rl-lead {
	font-size: 26px;
	line-height: 1.6;
	color: var(--rl-color-headings);
}

.rl-article.rl-article > h2 {
	margin-top: 24px;
}

.rl-article.rl-article > h3 {
	margin-top: 16px;
}

.rl-article.rl-article > .wp-block-pullquote {
	margin-block: 8px;
}

/* The sidebar: Related Pages, pinned under the header while the article scrolls (the user, 2026-10-26; the form went
   back to the band — Markup #25, 2026-10-28). A long group (Personal Injury's 29) runs past the window, so the pinned
   sidebar is capped at the window's height and scrolls on its own (the user's choice). It keeps its own height (not
   the row's stretch) so it has room to stick, and pads 6px inside its scroll box so the links' focus outlines aren't
   clipped. Spectra sets position: relative on a container's children — hence the doubled class. */
.rl-sidebar.rl-sidebar {
	position: sticky;
	top: 106px;
	align-self: flex-start;
	max-width: 332px;
	max-height: calc(100vh - 124px);
	margin: 0 -6px;
	padding: 6px;
	justify-content: flex-start;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

.rl-related .rl-related__title.rl-related__title {
	font-size: 24px;
	line-height: 30px;
}

.rl-related .wp-block-separator.is-style-rl-rule {
	width: 48px;
	max-width: 48px;
}

/* The nine as rows: hairlines between, the current one bold on tint; no list markers (a navigation list). */
.rl-related ul.rl-related__list.wp-block-list {
	gap: 0;
	border-bottom: 1px solid var(--rl-border-subtle);
}

.rl-related ul.rl-related__list.wp-block-list > li {
	padding: 0;
	border-top: 1px solid var(--rl-border-subtle);
}

.rl-related ul.rl-related__list.wp-block-list > li::before {
	content: none;
}

.rl-related .rl-related__list a {
	display: block;
	padding: 12px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--rl-color-brand);
	text-decoration: none;
	transition: background-color var(--rl-ease);
}

.rl-related .rl-related__list a:is(:hover, :focus-visible) {
	background: var(--rl-color-tint);
}

.rl-related .rl-related__list a[aria-current="page"] {
	font-weight: 700;
	background: var(--rl-color-tint);
}

@media (max-width: 1024px) {
	.rl-sidebar.rl-sidebar {
		position: relative;
		top: auto;
		max-width: none;
		max-height: none;
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	.rl-article .rl-lead.rl-lead {
		font-size: 20px;
	}
}

/* ── The hub's cards ────────────────────────────────────────────────────────────────────────────────────────────── */

.rl-hub-intro .rl-lead.rl-lead {
	font-size: 26px;
	line-height: 1.6;
	color: var(--rl-color-headings);
}

.rl-hub-cards .rl-card-title.rl-card-title {
	font-size: 22px;
	line-height: 30px;
}

.rl-hub-cards .rl-card-icon p:not(.is-style-rl-learn-more) {
	flex: 1;
}

/* ── About Us ───────────────────────────────────────────────────────────────────────────────────────────────────── */

.rl-bio.rl-bio {
	padding-top: 48px;
	border-top: 1px solid var(--rl-border-subtle);
}

.rl-bio .rl-team-photo {
	flex: none;
}

.rl-bio__text h3 {
	font-size: 30px;
}

/* ── Contact and the band: the phone line ───────────────────────────────────────────────────────────────────────── */

.rl-contact-label.rl-contact-label {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rl-color-brand);
}

.rl-contact-office.rl-contact-office {
	font-size: 22px;
	line-height: 30px;
}

/* The teal pin beside the office address, as in the footer (Markup #23): Spectra stretches a container's children to
   100%, so the icon keeps its own width; it sits on the first line. */
/* Contact, the Contact-Page design (Markup #24, 2026-10-28): the banner's title left-aligned, and at desktop width the
   form panel rising 80px into the navy, over it, with the design's deeper shadow; the details start 48px down. The
   design lifts it 120px under a short "Contact Us"; this page's H1 is longer, so 80px keeps ~35px clear of it. Below
   1041px (the design's breakpoint) the form sits in the flow. */
body:has(.rl-contact) .ast-single-entry-banner :is(.ast-container, .ast-breadcrumbs-wrapper, .entry-title) {
	text-align: left;
}

body:has(.rl-contact) .ast-single-entry-banner :is(.entry-title, .ast-container > h1)::after {
	margin-inline: 0;
}

@media (min-width: 1041px) {
	:is(.site, .editor-styles-wrapper) .rl-contact.rl-contact {
		padding-top: 0;
	}

	.rl-contact .rl-contact-form.rl-form-panel.rl-form-panel {
		z-index: 3;
		margin-top: -80px;
		box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
	}

	.rl-contact .rl-contact-info.rl-contact-info {
		padding-top: 48px;
	}
}

.rl-contact-address.rl-contact-address {
	flex-wrap: nowrap;
}

.rl-contact-address.rl-contact-address > .rl-contact-pin {
	flex: none;
	width: auto;
	max-width: max-content;
	padding-top: 4px;
}

.rl-contact-address.rl-contact-address > p {
	flex: 1 1 auto;
	min-width: 0;
}

/* A 48px teal circle with the navy phone icon. */
.rl-icon-circle--sm.rl-icon-circle--sm {
	width: 48px;
	max-width: 48px;
	height: 48px;
}

.rl-icon-circle--sm.rl-icon-circle--sm svg {
	width: 22px;
	height: 22px;
}

.rl-call .rl-call__number {
	flex: none;
	width: auto;
}

.rl-call .rl-call__number a {
	font-size: 24px;
	font-weight: 700;
	color: var(--rl-color-brand);
	text-decoration: none;
	text-underline-offset: 4px;
}

.rl-call .rl-call__number a:is(:hover, :focus-visible) {
	text-decoration: underline 2px var(--rl-color-alt-brand);
}

.rl-contact .rl-form-panel .gform_footer,
.rl-band-form .rl-form-panel .gform_footer {
	justify-content: center;
}

.rl-band-form .rl-form-panel.rl-form-panel {
	padding: 56px 48px;
}

@media (max-width: 768px) {
	.rl-band-form .rl-form-panel.rl-form-panel,
	.rl-contact .rl-form-panel.rl-form-panel {
		padding: 32px 20px;
	}
}

/* The band's actions: the phone line and the button keep their own widths, side by side (Spectra makes container
   children 100% wide). */
.rl-band-actions.rl-band-actions > :is(.rl-call, .wp-block-uagb-buttons) {
	flex: none;
	max-width: max-content;
}

/* The call line the same way, inside the CTA and on Contact. */
.rl-call.rl-call > .rl-call__number {
	max-width: max-content;
}

/* Related Pages' rule: the kit's 48px. */
.rl-related.rl-related .wp-block-separator.wp-block-separator.is-style-rl-rule {
	width: 48px;
	max-width: 48px;
}

/* ── Migrated copy (inner.cjs --only=migrated) ─────────────────────────────────────────────────────────────────── */

/* The old copy floats its images (a 300px headshot alignleft, say) with the text wrapping round them. A Spectra container
   lays its children out with flex, where floats don't work: the migrated article is block flow instead, its children
   24px apart as the container's gap had them, each H2 clear of a float above. */
.rl-article.rl-article--migrated.rl-article--migrated {
	display: block;
}

/* Tripled class: _base.css zeroes a Spectra container's children's margins at 0,2,0 (Markup #27, 2026-10-28 — the
   paragraphs ran together). */
.rl-article.rl-article--migrated.rl-article--migrated > * + * {
	margin-top: 24px;
}

.rl-article.rl-article--migrated.rl-article--migrated > h2 {
	clear: both;
	margin-top: 40px;
}

.rl-article--migrated > .wp-block-image.alignleft,
.rl-article--migrated > .wp-block-image .alignleft {
	float: left;
	max-width: min(300px, 45%);
	margin: 6px 28px 16px 0;
}

.rl-article--migrated > .wp-block-image.alignright,
.rl-article--migrated > .wp-block-image .alignright {
	float: right;
	max-width: min(300px, 45%);
	margin: 6px 0 16px 28px;
}

.rl-article--migrated .wp-block-image img {
	height: auto;
}

/* Derek Rolo's memberships and award, beside his floated photo (Markup #57, round 3, 2026-11-09): a content list is a
   flex column (_lists.css), which can't wrap beside a float and dropped below it; these are block flow, their items 12px
   apart as the others are, each label 12px over its list, not the article's 24 (the tripled rule above: a fourth class). */
.rl-article.rl-article--migrated.rl-article--migrated > :is(.rl-memberships, .rl-awards) {
	display: block;
	margin-top: 12px;
}

.rl-article--migrated > :is(.rl-memberships, .rl-awards) > li + li {
	margin-top: 12px;
}

/* The two lists fill the photo's height: the bio starts under the photo, not with one short line beside its foot. */
.rl-article--migrated > .rl-awards + p {
	clear: both;
}

.rl-article--migrated::after {
	content: "";
	display: block;
	clear: both;
}

@media (max-width: 768px) {
	.rl-article--migrated > .wp-block-image:is(.alignleft, .alignright),
	.rl-article--migrated > .wp-block-image :is(.alignleft, .alignright) {
		float: none;
		max-width: 100%;
		margin: 0;
	}
}

/* The Video Center (the Markup QA's round 3, #649, 2026-11-09; inner.cjs --only=video): the live page's YouTube Shorts,
   a grid of cards in each row — three across, two on tablets and phones. A card is the thumbnail at 4:5 (the middle of
   the vertical frame), the title and "Watch Video", whose link covers the card: one link a card, the whole card its
   target. */
.rl-video-section + .rl-video-section {
	margin-top: 64px;
}

.wp-block-uagb-container.rl-video-grid.rl-video-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 28px;
	align-items: start;
}

.rl-video-card.rl-video-card {
	position: relative;
}

.rl-video-card .rl-video-card__thumb {
	margin: 0;
}

.rl-video-card .rl-video-card__thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.rl-video-card .rl-video-card__title.rl-video-card__title {
	margin: 0;
	font-size: 20px;
	line-height: 28px;
}

/* The card is the box the link's ::before covers, not the link's paragraph: Spectra makes every container child
   position: relative with a selector of some fourteen classes' weight (body .wp-block-uagb-container > :not(…)…), so
   this one declaration is !important. */
.rl-video-card .is-style-rl-learn-more {
	position: static !important;
}

.rl-video-card .is-style-rl-learn-more a::before {
	content: "";
	position: absolute;
	inset: 0;
}

@media (max-width: 1024px) {
	.wp-block-uagb-container.rl-video-grid.rl-video-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.wp-block-uagb-container.rl-video-grid.rl-video-grid {
		gap: 28px 16px;
	}

	.rl-video-card .rl-video-card__title.rl-video-card__title {
		font-size: 17px;
		line-height: 24px;
	}
}
