/* ---------------------------------------------------------------
   Everything that can live in theme.json does. This file holds
   only what theme.json can't express: section styles, cards,
   header/footer layout, the mobile call bar and small polish.
   --------------------------------------------------------------- */

:root {
	--atlas-radius: var(--wp--custom--radius--medium, 10px);
	--atlas-radius-small: var(--wp--custom--radius--small, 6px);
	--atlas-shadow: var(--wp--preset--shadow--card, 0 1px 2px rgba(0, 0, 0, .06), 0 6px 20px rgba(0, 0, 0, .06));
	--atlas-callbar-height: 64px;
}

/* ---------- Page frame ---------- */

/* Header, main and footer sit flush; sections bring their own spacing. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* Full-width sections stack edge to edge (no strip of page background
   between two colored sections). Other blocks keep normal spacing. */
.wp-block-post-content > .alignfull,
.wp-block-post-content > .alignfull + * {
	margin-block-start: 0;
}

/* ---------- Type polish ---------- */

h1, h2, h3, h4 {
	text-wrap: balance;
}

p, li {
	text-wrap: pretty;
}

/* ---------- Section styles (Group / Columns / Cover) ---------- */

.is-style-section-alt {
	background-color: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--contrast);
}

.is-style-section-primary {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary-contrast);
}

.is-style-section-dark {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* Headings, links and the site title follow the section's text color.
   These need real specificity to beat the global heading/link colors. */
.is-style-section-primary :is(h1, h2, h3, h4, h5, h6),
.is-style-section-dark :is(h1, h2, h3, h4, h5, h6),
.is-style-section-primary a:where(:not(.wp-element-button)),
.is-style-section-dark a:where(:not(.wp-element-button)),
.is-style-section-primary .wp-block-site-title a,
.is-style-section-dark .wp-block-site-title a {
	color: inherit;
}

:where(.is-style-section-primary, .is-style-section-dark) .has-contrast-2-color {
	color: inherit !important;
	opacity: .82;
}

/* Brand-color text (e.g. eyebrows) would vanish on a brand-color ground:
   on dark sections it takes the accent, on brand-color sections it follows
   the section text (accent-on-brand often fails contrast). */
:where(.is-style-section-dark) .has-primary-color {
	color: var(--wp--preset--color--accent) !important;
}

:where(.is-style-section-primary) .has-primary-color {
	color: inherit !important;
}

/* Primary buttons sit on the accent color inside colored sections
   so they never disappear into the background. */
:where(.is-style-section-primary, .is-style-section-dark) .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-contrast);
}

:where(.is-style-section-primary, .is-style-section-dark) .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: currentColor;
	color: inherit;
}

/* ---------- Eyebrow label ---------- */

.atlas-eyebrow {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* ---------- Card ---------- */

.is-style-card {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--atlas-radius);
	box-shadow: var(--atlas-shadow);
}

.is-style-card > :last-child {
	margin-block-end: 0;
}

/* Cards in a grid share their height and keep any button at the bottom. */
.is-layout-grid > .is-style-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.is-layout-grid > .is-style-card > .wp-block-buttons:last-child,
.is-layout-grid > .is-style-card > p:last-child:has(> a:only-child) {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--20);
}

/* ---------- Lists ---------- */

.is-style-checklist {
	list-style: none;
	padding-left: 0;
}

.is-style-checklist li {
	position: relative;
	padding-left: 1.75em;
}

.is-style-checklist li + li {
	margin-top: .45em;
}

.is-style-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .3em;
	width: 1.1em;
	height: 1.1em;
	border-radius: 50%;
	background-color: var(--wp--preset--color--accent);
}

/* The tick: a centered check shape over the circle, colored with the theme's
   accent-contrast (a mask, so it follows each client's palette). */
.is-style-checklist li::after {
	content: "";
	position: absolute;
	left: 0;
	top: .3em;
	width: 1.1em;
	height: 1.1em;
	background-color: var(--wp--preset--color--accent-contrast);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.75 3.75L17.5 8' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.75 3.75L17.5 8' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.is-style-inline-list {
	list-style: none;
	padding-left: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .5em 1.5em;
}

/* ---------- Reviews ---------- */

.wp-block-quote.is-style-review {
	margin: 0;
	padding: var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--atlas-radius);
	box-shadow: var(--atlas-shadow);
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
}

.wp-block-quote.is-style-review::before {
	content: "★★★★★";
	color: var(--wp--preset--color--accent);
	letter-spacing: .12em;
	font-size: 1.05rem;
	margin-bottom: var(--wp--preset--spacing--20);
}

.wp-block-quote.is-style-review p {
	font-size: var(--wp--preset--font-size--base);
	font-style: normal;
}

.wp-block-quote.is-style-review cite {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--20);
	font-style: normal;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
}

/* ---------- FAQ (Details block) ---------- */

.wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-block: var(--wp--preset--spacing--30);
}

.wp-block-details:first-of-type {
	border-top: 1px solid var(--wp--preset--color--border);
}

.wp-block-details summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--medium);
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	flex: none;
	font-weight: 400;
	font-size: 1.4em;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	transition: transform .2s ease;
}

.wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

.wp-block-details > :not(summary) {
	margin-top: var(--wp--preset--spacing--20);
}

/* ---------- Stats (trust bar) ---------- */

.atlas-stat {
	text-align: center;
}

.atlas-stat .atlas-stat__value {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1.1;
	margin: 0;
}

.atlas-stat .atlas-stat__label {
	margin-top: .35em;
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- Header ---------- */

.atlas-topbar {
	font-size: var(--wp--preset--font-size--small);
}

.atlas-topbar a {
	text-decoration: none;
	font-weight: 600;
}

.atlas-header-main .wp-block-site-title a {
	text-decoration: none;
}

/* Logo: sized by height, so wide wordmarks and square marks both fit.
   Child themes tune it with --atlas-logo-height. */
.atlas-header-main .wp-block-site-logo {
	line-height: 0;
	flex-shrink: 0;
}

.atlas-header-main .wp-block-site-logo img {
	height: var(--atlas-logo-height, 3rem);
	width: auto;
	max-width: min(15rem, 52vw);
	object-fit: contain;
	object-position: left center;
}

/* Most local-business logos include the name, so the text title is hidden
   when a logo is set (the logo's alt text carries the name). For an
   icon-only logo, the child theme shows it again with:
   .atlas-header-main { --atlas-title-with-logo: block; } */
.atlas-header-main:has(.wp-block-site-logo img) .wp-block-site-title {
	display: var(--atlas-title-with-logo, none);
}

@media (max-width: 781px) {
	.atlas-header-main .wp-block-site-logo img {
		height: var(--atlas-logo-height-mobile, 2.5rem);
	}
}

/* Long business names: a touch smaller on small phones so they fit in two lines. */
@media (max-width: 480px) {
	.atlas-header-main .wp-block-site-title {
		font-size: min(5.6vw, 1.375rem);
		line-height: 1.15;
	}
}

.atlas-header-main .wp-block-navigation {
	font-weight: 500;
}

@media (max-width: 781px) {
	.atlas-topbar .atlas-topbar__areas,
	.atlas-header-main .atlas-header__cta {
		display: none;
	}
}

/* Sticky header on desktop, so the phone number is always one click away.
   A client theme can turn it off with: .wp-site-blocks > header.wp-block-template-part { position: static; } */
@media (min-width: 782px) {
	.wp-site-blocks > header.wp-block-template-part {
		position: sticky;
		top: var(--wp-admin--admin-bar--height, 0px);
		z-index: 40;
	}

	main [id] {
		scroll-margin-top: 9rem;
	}
}

/* Centered header: logo on top, menu below. When the menu collapses (phones,
   or a menu too long for one row) it becomes logo left, hamburger right. */
.atlas-header--centered .atlas-header__inner {
	align-items: center;
}

@media (max-width: 960px) {
	.atlas-header--centered .atlas-header__inner {
		flex-direction: row !important;
		justify-content: space-between !important;
	}
}

.atlas-header--centered.atlas-nav-collapsed .atlas-header__inner {
	flex-direction: row !important;
	justify-content: space-between !important;
}

/* Menu links: comfortable tap targets. */
.atlas-header-main .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding-block: .65rem;
}

.atlas-header-main .wp-block-navigation-submenu__toggle {
	min-width: 24px;
	min-height: 24px;
}

.atlas-header-main .wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	padding: 10px;
	margin: -10px;
	box-sizing: content-box;
}

/* Collapse the menu into the hamburger when it doesn't fit: below 960px by
   default, and wherever assets/js/atlas.js detects it wrapping (long menus). */
@media (max-width: 960px) {
	.atlas-header-main .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.atlas-header-main .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

.atlas-header-main.atlas-nav-collapsed .wp-block-navigation__responsive-container-open:not(.always-shown) {
	display: flex;
}

.atlas-header-main.atlas-nav-collapsed .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
	display: none;
}

/* Desktop dropdown. */
.atlas-header-main .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
	min-width: 15rem !important;
	padding: .5rem 0 !important;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: var(--atlas-radius);
	background-color: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
	box-shadow: var(--atlas-shadow);
}

.atlas-header-main .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: .55rem 1.1rem !important;
}

.atlas-header-main .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.atlas-header-main .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
	background-color: var(--wp--preset--color--base-2);
	text-decoration: none;
}

/* Phone / collapsed menu overlay: left-aligned (the desktop menu is
   right-aligned, which the overlay would otherwise inherit). */
.wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	background-color: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
	padding-inline: var(--wp--preset--spacing--40) !important;
}

.wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container, .wp-block-navigation-item, .wp-block-navigation__submenu-container) {
	align-items: flex-start !important;
	text-align: left;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	padding-left: 1rem !important;
	padding-top: .25rem !important;
	border-left: 2px solid var(--wp--preset--color--border) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: var(--wp--preset--spacing--50);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: .35rem !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	padding-block: .3rem !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	color: var(--wp--preset--color--contrast-2);
}

/* ---------- Footer ---------- */

.atlas-footer a {
	text-decoration: none;
}

.atlas-footer a:hover,
.atlas-footer a:focus-visible {
	text-decoration: underline;
}

.atlas-footer .atlas-business-links,
.atlas-footer .atlas-business-hours {
	font-size: var(--wp--preset--font-size--small);
}

/* Tablets: two footer columns per row instead of four cramped ones. */
@media (min-width: 782px) and (max-width: 1100px) {
	.atlas-footer > .wp-block-columns {
		flex-wrap: wrap !important;
		row-gap: var(--wp--preset--spacing--40);
	}

	.atlas-footer > .wp-block-columns > .wp-block-column {
		flex-basis: calc(50% - var(--wp--preset--spacing--50)) !important;
		flex-grow: 0 !important;
	}
}

/* ---------- Mobile call bar ---------- */

/* Two classes on purpose: WordPress's layout rule `body .is-layout-flex
   { display: flex }` would otherwise win and show the bar on desktop. */
.wp-block-buttons.atlas-callbar {
	display: none;
}

@media (max-width: 781px) {
	.wp-block-buttons.atlas-callbar {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 50;
		gap: 0;
		margin: 0 !important;
		padding: 0 0 env(safe-area-inset-bottom, 0) !important;
		background-color: var(--wp--preset--color--contrast);
		box-shadow: 0 -4px 16px rgba(0, 0, 0, .18);
	}

	.atlas-callbar .wp-block-button {
		flex: 1 1 50%;
		width: auto;
	}

	.atlas-callbar .atlas-callbar__quote .wp-block-button__link {
		background-color: var(--wp--preset--color--accent);
		color: var(--wp--preset--color--accent-contrast);
	}

	.atlas-callbar .wp-block-button__link {
		width: 100%;
		min-height: var(--atlas-callbar-height);
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 0;
		box-sizing: border-box;
	}

	body {
		padding-bottom: calc(var(--atlas-callbar-height) + env(safe-area-inset-bottom, 0px));
	}
}

/* ---------- Forms (Forminator with design "none") ---------- */

.forminator-ui.forminator-custom-form .forminator-row {
	margin-bottom: var(--wp--preset--spacing--30);
}

.forminator-ui .forminator-label {
	display: block;
	margin-bottom: .35rem;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
}

.forminator-ui .forminator-required {
	color: var(--wp--preset--color--primary);
}

.forminator-ui :is(input.forminator-input, textarea.forminator-textarea, select.forminator-select--field) {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	min-height: 3rem;
	padding: .7rem .9rem;
	font: inherit;
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--atlas-radius-small);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04);
}

.forminator-ui select.forminator-select--field {
	appearance: none;
	padding-right: 2.5rem;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 1.25rem) 55%, calc(100% - .9rem) 55%;
	background-size: .35rem .35rem;
	background-repeat: no-repeat;
}

.forminator-ui textarea.forminator-textarea {
	min-height: 8rem;
	resize: vertical;
}

.forminator-ui :is(input, textarea, select):focus {
	border-color: var(--wp--preset--color--primary);
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 1px;
}

.forminator-ui .forminator-has_error :is(input, textarea, select) {
	border-color: #b42318;
}

.forminator-ui :is(.forminator-error-message, .forminator-description) {
	display: block;
	margin-top: .35rem;
	font-size: var(--wp--preset--font-size--small);
}

.forminator-ui .forminator-error-message {
	color: #b42318;
}

.forminator-ui .forminator-button-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: .85rem 1.75rem;
	border: 0;
	border-radius: var(--atlas-radius-small);
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary-contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 600;
	cursor: pointer;
	transition: filter .15s ease;
}

.forminator-ui .forminator-button-submit:hover {
	filter: brightness(1.1);
}

@media (max-width: 781px) {
	.forminator-ui .forminator-button-submit {
		width: 100%;
	}
}

.forminator-ui .forminator-response-message:not(:empty) {
	margin-bottom: var(--wp--preset--spacing--30);
	padding: 1rem 1.25rem;
	border-radius: var(--atlas-radius-small);
	background-color: var(--wp--preset--color--base-2);
}

.forminator-ui .forminator-response-message.forminator-success {
	background-color: #e6f4ea;
	color: #14532d;
}

/* ---------- Long words ----------
   A long URL, email address or compound word breaks onto the next line
   instead of pushing the page (or a grid column) wider than the screen.
   "anywhere" also lets grid and flex columns shrink below that word's
   width; tables keep normal wrapping because they scroll inside themselves. */

:where(h1, h2, h3, h4, h5, h6, p, li, dt, dd, figcaption, blockquote, cite, summary, address, .wp-block-button__link, .wp-block-site-title) {
	overflow-wrap: anywhere;
}

:where(td, th) {
	overflow-wrap: normal;
}

/* ---------- Placeholder media ----------
   Stand-ins for photos that haven't been supplied yet (development sites and
   the demo; the site check lists any left before launch). Dashed outline and
   a "Placeholder" tag so they can never pass for part of the design. */

.atlas-placeholder {
	position: relative;
}

.atlas-placeholder img {
	background-color: #EDEFF2;
	outline: 2px dashed #8A96A3;
	outline-offset: -2px;
}

.atlas-placeholder::after {
	content: "Placeholder";
	position: absolute;
	top: .6rem;
	left: .6rem;
	z-index: 1;
	padding: .15rem .55rem;
	border-radius: 999px;
	background: #1F2937;
	color: #FFFFFF;
	font: 700 .7rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	pointer-events: none;
}

/* ---------- Accessibility & polish ---------- */

/* Keyboard focus ring: dark on light sections, accent on dark/colored ones,
   so it is always clearly visible. */
:where(a, button, summary, input, select, textarea, .wp-element-button):focus-visible {
	outline: 3px solid var(--atlas-focus, var(--wp--preset--color--contrast));
	outline-offset: 2px;
}

:where(.is-style-section-dark, .is-style-section-primary, .atlas-photo-hero) {
	--atlas-focus: var(--wp--preset--color--accent);
}

:where(.is-style-section-accent) {
	--atlas-focus: var(--wp--preset--color--contrast);
}

.wp-element-button {
	transition: filter .15s ease, transform .15s ease;
}

.wp-element-button:hover {
	filter: brightness(1.08);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

/* ---------- Accent band (offer / emergency strip) ---------- */

.is-style-section-accent {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-contrast);
}

.is-style-section-accent :is(h1, h2, h3, h4, h5, h6),
.is-style-section-accent a:where(:not(.wp-element-button)) {
	color: inherit;
}

.is-style-section-accent .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.is-style-section-accent .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: currentColor;
	color: inherit;
}

.atlas-banner .atlas-banner__text {
	margin: 0;
}

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

.atlas-photo-hero {
	position: relative;
	isolation: isolate;
	color: #fff;
	background-color: var(--wp--preset--color--contrast);
}

.atlas-photo-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(100deg, rgb(0 0 0 / .78) 0%, rgb(0 0 0 / .55) 55%, rgb(0 0 0 / .3) 100%);
}

.atlas-photo-hero :is(h1, h2, h3, h4, h5, h6),
.atlas-photo-hero a:where(:not(.wp-element-button)) {
	color: inherit;
}

.atlas-photo-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-contrast);
}

.atlas-photo-hero .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: currentColor;
	color: inherit;
}

@media (max-width: 781px) {
	.atlas-photo-hero::before {
		background: rgb(0 0 0 / .62);
	}
}

/* ---------- Steps ---------- */

.atlas-step .atlas-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	border-radius: 50%;
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	line-height: 1;
}

/* ---------- Plans ---------- */

.atlas-plan--featured {
	border: 2px solid var(--wp--preset--color--primary);
	box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
}

.atlas-plan .atlas-plan__badge {
	align-self: flex-start;
	margin: 0;
	padding: .2rem .75rem;
	border-radius: 999px;
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.atlas-plan .atlas-plan__price {
	margin: 0;
	color: var(--wp--preset--color--contrast-2);
}

.atlas-plan .atlas-plan__price strong {
	display: block;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.1;
}

/* ---------- Badges ---------- */

.atlas-badges .wp-block-image {
	margin: 0;
}

.atlas-badges img {
	max-height: 64px;
	width: auto;
}

.atlas-badges-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .6rem 2rem;
}

.atlas-badges-list.is-style-checklist li + li {
	margin-top: 0;
}

/* ---------- Team ---------- */

.atlas-team .atlas-team__role {
	margin-top: -.35rem;
}

/* ---------- Blog ---------- */

.atlas-post-card {
	overflow: hidden;
}

.atlas-post-card .wp-block-post-featured-image {
	margin: 0;
}

.atlas-post-card .atlas-post-card__body {
	padding-inline: var(--wp--preset--spacing--40);
}

.atlas-post-card:not(:has(.wp-block-post-featured-image img)) .atlas-post-card__body {
	padding-top: var(--wp--preset--spacing--40);
}

.atlas-post-card .wp-block-post-title a {
	text-decoration: none;
	color: inherit;
}

.atlas-post-card .wp-block-post-title a:hover {
	text-decoration: underline;
}

.atlas-post-card .wp-block-post-date {
	color: var(--wp--preset--color--contrast-2);
}

.wp-block-post-excerpt__more-link {
	font-weight: 600;
}

.wp-block-query-pagination a {
	text-decoration: none;
	font-weight: 600;
}

.atlas-post-nav .post-navigation-link-previous,
.atlas-post-nav .post-navigation-link-next {
	flex: 1 1 16rem;
	max-width: 22rem;
	font-weight: 600;
}

.atlas-post-nav .post-navigation-link-next {
	margin-left: auto;
	text-align: right;
}

.atlas-post-nav a {
	text-decoration: none;
}

.atlas-post-nav a:hover {
	text-decoration: underline;
}

/* Screen-reader-only text */

.screen-reader-text:not(:focus) {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ---------- Video (light YouTube embed) ---------- */

.atlas-video .atlas-video__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--atlas-radius);
	background: #000;
}

.atlas-video .atlas-video__frame iframe,
.atlas-video .atlas-video__play,
.atlas-video .atlas-video__play img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.atlas-video .atlas-video__play {
	padding: 0;
	cursor: pointer;
	background: none;
}

.atlas-video .atlas-video__play img {
	object-fit: cover;
}

.atlas-video .atlas-video__icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 4.5rem;
	height: 4.5rem;
	margin: -2.25rem 0 0 -2.25rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	box-shadow: 0 6px 24px rgb(0 0 0 / .35);
	transition: transform .15s ease;
}

.atlas-video .atlas-video__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: .75rem 0 .75rem 1.25rem;
	border-color: transparent transparent transparent var(--wp--preset--color--primary-contrast);
}

.atlas-video .atlas-video__play:hover .atlas-video__icon,
.atlas-video .atlas-video__play:focus-visible .atlas-video__icon {
	transform: scale(1.08);
}

.wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
	border-radius: var(--atlas-radius);
}

/* ---------- Tables ---------- */

.atlas-table {
	margin: 0;
}

.atlas-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--base);
}

.atlas-table th,
.atlas-table td {
	padding: .75rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	text-align: left;
	vertical-align: top;
}

.atlas-table thead th {
	font-family: var(--wp--preset--font-family--heading);
	border-bottom: 2px solid var(--wp--preset--color--contrast);
	white-space: nowrap;
}

.atlas-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: var(--wp--preset--color--base-2);
}

.is-style-section-alt .atlas-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: var(--wp--preset--color--base);
}

.atlas-table.is-style-stripes {
	border-bottom: 0;
}

@media (max-width: 781px) {
	.atlas-table th,
	.atlas-table td {
		padding: .6rem .7rem;
	}
}
