/* ==========================================================================
   Eric Rolph theme · component styles
   Colors, fonts and sizes come from theme.json presets.
   ========================================================================== */

:root {
	--er-ink: var(--wp--preset--color--ink);
	--er-ink-deep: var(--wp--preset--color--ink-deep);
	--er-slate: var(--wp--preset--color--slate);
	--er-gold: var(--wp--preset--color--gold);
	--er-gold-text: var(--wp--preset--color--gold-text);
	--er-mist: var(--wp--preset--color--mist);
	--er-line: var(--wp--preset--color--line);
	--er-line-strong: var(--wp--preset--color--line-strong);
	--er-on-ink-muted: var(--wp--preset--color--on-ink-muted);
	--er-radius-sm: 4px;
	--er-radius-md: 6px;
}

h1, h2, .er-serif {
	font-optical-sizing: auto;
	font-variation-settings: "SOFT" 0, "WONK" 0;
}

/* Keyboard focus ------------------------------------------------------------ */
:where(a, button, input, select, textarea, summary):focus-visible,
.wp-element-button:focus-visible {
	outline: 3px solid var(--er-gold);
	outline-offset: 2px;
}

/* Sections -------------------------------------------------------------------- */
/* Bands sit flush so section backgrounds meet without white gaps */
.wp-site-blocks > *,
main.wp-block-group > *,
.editor-styles-wrapper .is-root-container > :is(.wp-block-template-part, main.wp-block-group),
:root :is(.er-section, .er-stripe, .er-hero-cover) { margin-block: 0; }
.er-section {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}
.er-band-mist { background-color: var(--er-mist); }
.er-hero {
	padding-top: clamp(40px, 6vw, 72px);
	padding-bottom: clamp(40px, 5vw, 64px);
}
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 16px; }

.er-section-head { margin-bottom: 40px; }
.er-section-head > * { margin-block: 0; }
.er-section-head > * + * { margin-top: 12px; }
.er-section-head__text { flex: 1 1 520px; min-width: 0; }
.er-section-head__text > * { margin-block: 0; }
.er-section-head__text > * + * { margin-top: 12px; }

/* Text ---------------------------------------------------------------------------- */
.er-eyebrow {
	margin-bottom: 12px;
	font-size: 14px;
	line-height: 18px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--er-slate);
}
.er-intro {
	font-size: var(--wp--preset--font-size--intro);
	line-height: 1.58;
	color: var(--er-slate);
}
.er-meta { font-size: 13px; line-height: 18px; color: var(--er-slate); }
.er-tag {
	font-size: 12px;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--er-ink);
}
.er-label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--er-slate);
}
.er-text-link a { font-weight: 600; text-decoration: none; }
.er-text-link a:hover { text-decoration: underline; }

/* Header ------------------------------------------------------------------------- */
.er-header { border-bottom: 1px solid var(--er-line); }
.er-header__inner { padding-block: 14px; }
.er-header .wp-block-site-title a { color: var(--er-ink); }
.er-nav .wp-block-navigation-item__content { padding-block: 12px; text-decoration: none; }
/* Menu links: a thin underline draws in from the left on hover */
header .wp-block-navigation .wp-block-navigation-item__content {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 calc(100% - 8px);
	background-size: 0% 2px;
	transition: background-size 0.25s ease, color 0.2s ease;
}
header .wp-block-navigation .wp-block-navigation-item__content:is(:hover, :focus-visible) { background-size: 100% 2px; }
/* Phone menu: its links have no padding, so the line sits just under the text */
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	padding-bottom: 4px;
	background-position: 0 100%;
}
@media (prefers-reduced-motion: reduce) {
	header .wp-block-navigation .wp-block-navigation-item__content { transition: none; }
}

/* Hero ----------------------------------------------------------------------------- */
.er-hero__cols { gap: clamp(32px, 6vw, 72px); }
:is(.er-hero, .er-hero-cover) h1 { margin: 0; }
:is(.er-hero, .er-hero-cover) .er-eyebrow { margin-bottom: 20px; }
.er-gold-rule.wp-block-separator {
	width: 64px;
	max-width: 64px;
	margin: 20px 0 !important;
	border: 0;
	border-top: 3px solid var(--er-gold);
	opacity: 1;
	background: none;
}
.er-hero__lead {
	margin-top: 0;
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.5;
}
.er-hero__actions { gap: 16px 28px; margin-top: 8px; }
.er-hero__actions > * { margin: 0; }

.er-photo img { display: block; width: 100%; height: auto; object-fit: cover; }
.er-photo--portrait img { aspect-ratio: 38 / 46; }
/* About Me photo: a slow, gentle zoom on hover */
body:not(.editor-styles-wrapper) #about .wp-block-image { overflow: hidden; }
body:not(.editor-styles-wrapper) #about .wp-block-image img { transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
body:not(.editor-styles-wrapper) #about .wp-block-image:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
	body:not(.editor-styles-wrapper) #about .wp-block-image:hover img { transform: none; }
}

/* Cards --------------------------------------------------------------------------- */
.er-card {
	background: #fff;
	border: 1px solid var(--er-line);
	border-radius: var(--er-radius-md);
	overflow: hidden;
}

/* Business cards: the whole card links to the business and lifts on hover ---- */
/* Front end only, so the card stays easy to click into and edit in the editor */
body:not(.editor-styles-wrapper) .er-biz-card {
	position: relative;
	transition:
		transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
		box-shadow 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
		border-color 0.35s ease;
}
/* The "Visit ..." link stretches over the whole card */
body:not(.editor-styles-wrapper) .er-biz-card .er-text-link a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.er-biz-card__photo { overflow: hidden; }
.er-biz-card__photo img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
body:not(.editor-styles-wrapper) .er-biz-card:hover {
	transform: translateY(-6px);
	border-color: var(--er-line-strong);
	box-shadow: 0 20px 40px -20px rgba(27, 42, 74, 0.38), 0 6px 14px -8px rgba(27, 42, 74, 0.18);
}
body:not(.editor-styles-wrapper) .er-biz-card:hover .er-biz-card__photo img { transform: scale(1.03); }
body:not(.editor-styles-wrapper) .er-biz-card:hover .er-text-link a {
	text-decoration: underline;
	text-underline-offset: 3px;
}
@supports selector(:has(a)) {
	body:not(.editor-styles-wrapper) .er-biz-card:has(.er-text-link a:focus-visible) {
		outline: 3px solid var(--er-gold);
		outline-offset: 3px;
	}
	body:not(.editor-styles-wrapper) .er-biz-card .er-text-link a:focus-visible { outline: none; }
}
@media (prefers-reduced-motion: reduce) {
	body:not(.editor-styles-wrapper) .er-biz-card,
	.er-biz-card__photo img { transition: box-shadow 0.2s ease, border-color 0.2s ease; }
	body:not(.editor-styles-wrapper) .er-biz-card:hover,
	body:not(.editor-styles-wrapper) .er-biz-card:hover .er-biz-card__photo img { transform: none; }
}

/* Latest posts ---------------------------------------------------------------- */
.er-section-head--split { gap: 20px 40px; }
.er-posts {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 24px;
}
.er-posts a { text-decoration: none; color: var(--er-ink); }
.er-post-featured {
	flex: 3 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.er-post-featured__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.er-post-featured__body { display: flex; flex-direction: column; gap: 12px; padding: 28px 32px 32px; flex-grow: 1; }
.er-post-featured__title {
	font-size: var(--wp--preset--font-size--feature);
	line-height: 1.2;
	font-weight: 700;
}
.er-post-featured__excerpt { font-size: 17px; color: var(--er-slate); flex-grow: 1; }
.er-read-more { font-weight: 600; }
.er-post-featured:hover .er-post-featured__title,
.er-post-row:hover .er-post-row__title { text-decoration: underline; }

.er-post-stack { flex: 2 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.er-post-row { flex: 1 1 auto; display: flex; align-items: center; gap: 16px; padding: 12px; }
.er-post-row__img { flex: 0 0 96px; width: 96px; height: 96px; object-fit: cover; border-radius: var(--er-radius-sm); }
.er-post-row__img--empty { background: var(--er-mist); }
.er-post-row__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.er-post-row__title { font-size: 18px; line-height: 1.3; font-weight: 600; }
.er-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }

.er-posts-empty {
	padding: 40px 32px;
	border: 1px dashed var(--er-line-strong);
	border-radius: var(--er-radius-md);
	background: #fff;
	text-align: center;
}
.er-posts-empty p { margin: 0 auto; max-width: 560px; }
.er-posts-empty p + p { margin-top: 12px; }
.er-posts-empty a { font-weight: 600; }

.er-more-articles {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 24px;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--er-line-strong);
	font-size: 15px;
}
.er-more-articles span { color: var(--er-slate); }
.er-more-articles a { font-weight: 600; text-decoration: none; padding-block: 10px; }
.er-more-articles a:hover { text-decoration: underline; }

/* Businesses ------------------------------------------------------------------- */
.er-biz-cards { gap: 24px; }
.er-biz-card { display: flex; flex-direction: column; font-size: 17px; }
.er-biz-card > .wp-block-image { margin: 0; }
.er-biz-card__photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.er-biz-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex-grow: 1; }
.er-biz-card__body > * { margin-block: 0; }
.er-biz-card__body > * + * { margin-top: 12px; }
.er-biz-card__body > p:not(.er-text-link) { color: var(--er-slate); flex-grow: 1; }
.er-biz-card__body strong { color: var(--er-ink); font-weight: 600; }
.er-biz-card .er-text-link { font-size: var(--wp--preset--font-size--label); }
.er-biz-logo img { width: 180px; max-width: 100%; height: auto; }

/* About ------------------------------------------------------------------------ */
.er-about__cols { gap: clamp(32px, 5vw, 64px); }
.er-about__cols h2 { margin-top: 0; }

/* Contact ---------------------------------------------------------------------- */
.er-contact__cols { gap: clamp(32px, 5vw, 64px); }
.er-contact__cols h2 { margin: 0; }
.er-contact-item { line-height: 1.5; }
.er-contact-item a { text-decoration: none; }
.er-contact-phone { font-size: 22px; font-weight: 600; }
.er-map iframe { display: block; width: 100%; height: 220px; border: 0; border-radius: var(--er-radius-md); }
.er-form-card { padding: 32px; background: var(--er-mist); border-color: transparent; }
.er-form-placeholder {
	margin: 0;
	padding: 20px;
	border: 1px dashed var(--er-line-strong);
	border-radius: var(--er-radius-sm);
	font-size: 15px;
	color: var(--er-slate);
	background: #fff;
}

/* WPForms 2.x styles its forms with CSS variables. Setting them here gives every
   form the site's navy, type and field sizes. Style settings chosen on a single
   WPForms block in the editor still take priority. */
.wpforms-container {
	--wpforms-button-background-color: #1b2a4a;
	--wpforms-button-border-color: #1b2a4a;
	--wpforms-button-border-radius: 4px;
	--wpforms-button-size-font-size: 17px;
	--wpforms-button-size-height: 52px;
	--wpforms-button-size-padding-h: 28px;
	--wpforms-button-size-margin-top: 12px;
	--wpforms-button-text-color: #ffffff;
	--wpforms-field-border-color: #8a93a6;
	--wpforms-field-border-color-spare: #8a93a6;
	--wpforms-field-border-radius: 4px;
	--wpforms-field-size-input-height: 48px;
	--wpforms-field-size-font-size: 17px;
	--wpforms-field-size-checkbox-size: 18px;
	--wpforms-field-text-color: #1b2a4a;
	--wpforms-label-color: #1b2a4a;
	--wpforms-label-size-font-size: 15px;
	--wpforms-label-sublabel-color: #4b5870;
	--wpforms-page-break-color: #1b2a4a;
}
.wpforms-container .wpforms-form,
.wpforms-container .wpforms-form :is(input, select, textarea, button) { font-family: inherit; }

/* WPForms fields, matched to the design system */
.wpforms-container .wpforms-field input[type="text"],
.wpforms-container .wpforms-field input[type="email"],
.wpforms-container .wpforms-field input[type="tel"],
.wpforms-container .wpforms-field select,
.wpforms-container .wpforms-field textarea {
	min-height: 48px;
	border: 1px solid var(--wp--preset--color--control-border);
	border-radius: var(--er-radius-sm);
	font-family: inherit;
	font-size: 17px;
	color: var(--er-ink);
	background-color: #fff;
}
.wpforms-container .wpforms-field-label { font-weight: 600; font-size: 15px; color: var(--er-ink); }
.wpforms-container .wpforms-submit {
	min-height: 52px;
	padding: 14px 32px;
	border: 0;
	border-radius: var(--er-radius-sm);
	background: var(--er-ink);
	color: #fff;
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
}

/* Buttons -------------------------------------------------------------------- */
/* Hover: buttons turn bronze and lift slightly. The bronze is the deeper gold
   (gold-text) so white button text stays readable at this size. The footer's
   larger call button uses the brighter rule gold. */
body:not(.editor-styles-wrapper) :is(.wp-block-button:not(.er-panel-close) .wp-block-button__link, .wpforms-container .wpforms-submit, .wpforms-container button[type="submit"]) {
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
body:not(.editor-styles-wrapper) :is(.wp-block-button:not(.er-panel-close) .wp-block-button__link, .wpforms-container .wpforms-submit, .wpforms-container button[type="submit"]):is(:hover, :focus-visible) {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px -12px rgba(18, 28, 51, 0.6);
}
/* Covers every WPForms styling mode (full, base only or none) */
div.wpforms-container-full .wpforms-form button.wpforms-submit:is(:hover, :focus-visible),
.wpforms-container .wpforms-form button[type="submit"]:is(:hover, :focus-visible),
.wpforms-container .wpforms-submit:is(:hover, :focus-visible) {
	background: var(--er-gold-text) !important;
	border-color: var(--er-gold-text) !important;
	color: #fff !important;
}
@media (prefers-reduced-motion: reduce) {
	body:not(.editor-styles-wrapper) :is(.wp-block-button .wp-block-button__link, .wpforms-container .wpforms-submit):is(:hover, :focus-visible) { transform: none; }
}

.er-btn-light .wp-block-button__link { background: #fff; color: var(--er-ink); }
.er-btn-light .wp-block-button__link:hover { background: var(--er-mist); color: var(--er-ink); }
.er-btn-secondary .wp-block-button__link {
	background: transparent;
	color: var(--er-ink);
	box-shadow: inset 0 0 0 1px var(--er-ink);
}
.er-btn-secondary .wp-block-button__link:hover { background: var(--er-ink); color: #fff; }

/* Footer --------------------------------------------------------------------- */
.er-footer-band {
	padding-block: 56px;
	background: var(--er-ink);
	border-top: 3px solid var(--er-gold);
	color: #fff;
}
.er-footer-band__inner { gap: 24px 48px; }
.er-footer-band__text { flex: 1 1 480px; min-width: 0; }
.er-footer-band__text > * { margin-block: 0; }
.er-footer-band__text > * + * { margin-top: 8px; }
.er-footer-cta { font-size: var(--wp--preset--font-size--feature); line-height: 1.2; font-weight: 700; color: #fff; }
.er-muted { color: var(--er-on-ink-muted); }
.er-footer-band .wp-block-button__link { min-height: 56px; font-size: 19px; font-weight: 700; display: inline-flex; align-items: center; }
/* Call button: white, turning gold (the color of the gold rules) on hover */
.er-footer-band .er-btn-light .wp-block-button__link { transition: background-color 0.2s ease, color 0.2s ease; }
.er-footer-band .er-btn-light .wp-block-button__link:is(:hover, :focus-visible) { background: var(--er-gold); color: #fff; }

.er-footer-legal {
	padding-block: 28px 32px;
	background: var(--er-ink-deep);
	color: var(--er-on-ink-muted);
	font-size: 13px;
	line-height: 1.5;
}
.er-footer-legal > * { margin-block: 0; }
.er-footer-legal > * + * { margin-top: 18px; }
.er-footer-legal__row { gap: 12px 32px; }
.er-footer-legal__row > p { margin: 0; }
.er-footer-legal a { color: #fff; text-decoration: none; }
.er-footer-legal a:hover { color: #fff; text-decoration: underline; }
.er-footer-links { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; }
.er-footer-links a { padding-block: 10px; }

/* Pages and posts ----------------------------------------------------------- */
.er-page-title { font-size: var(--wp--preset--font-size--heading); }

/* Newsletter window -----------------------------------------------------------
   A centered window over a darkened, blurred page.
   Front end only: in the editor it shows inline so it can be edited. */
body:not(.editor-styles-wrapper) .er-panel {
	position: fixed;
	z-index: 1000;
	top: 50%;
	left: 50%;
	width: min(560px, calc(100% - 32px));
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	margin: 0 !important;
	padding: 24px 40px 40px;
	overflow-y: auto;
	background: #fff;
	border-top: 3px solid var(--er-gold);
	border-radius: 8px;
	box-shadow: 0 32px 80px -24px rgba(18, 28, 51, 0.5), 0 10px 24px -14px rgba(18, 28, 51, 0.3);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -46%) scale(0.98);
	transition:
		opacity 0.28s ease,
		transform 0.34s cubic-bezier(0.2, 0.7, 0.2, 1),
		visibility 0s linear 0.34s;
}
body:not(.editor-styles-wrapper) .er-panel.is-open,
body:not(.editor-styles-wrapper) .er-panel:target {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%);
	transition:
		opacity 0.28s ease,
		transform 0.34s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.er-panel-backdrop {
	position: fixed;
	z-index: 999;
	inset: 0;
	background: rgba(18, 28, 51, 0.45);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.er-panel-backdrop.is-visible {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.3s ease;
}
.er-panel > * { margin-block: 0; }
.er-panel > * + * { margin-top: 18px; }
.er-panel__close-row { justify-content: flex-end; }
.er-panel-close .wp-block-button__link {
	padding: 10px 16px;
	background: #fff;
	color: var(--er-ink);
	box-shadow: inset 0 0 0 1px var(--er-line-strong);
	font-size: 15px;
}
.er-panel-close .wp-block-button__link:hover { background: var(--er-mist); color: var(--er-ink); }
.er-panel__title { font-size: 34px; }
.editor-styles-wrapper .er-panel {
	padding: 28px 36px;
	border: 1px dashed var(--er-line-strong);
}
body.er-panel-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	body:not(.editor-styles-wrapper) .er-panel,
	body:not(.editor-styles-wrapper) .er-panel.is-open { transform: translate(-50%, -50%); transition: opacity 0.15s ease, visibility 0s linear 0.15s; }
	.er-panel-backdrop { transition: none; }
}

/* Back to top ------------------------------------------------------------------ */
.er-to-top {
	position: fixed;
	z-index: 900;
	right: 24px;
	bottom: 24px;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--er-ink);
	color: #fff;
	/* The thin light ring keeps it visible over the navy footer */
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 10px 24px -10px rgba(18, 28, 51, 0.55);
	outline-offset: 3px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition:
		opacity 0.25s ease,
		transform 0.25s ease,
		background-color 0.2s ease,
		visibility 0s linear 0.25s;
}
.er-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition:
		opacity 0.25s ease,
		transform 0.25s ease,
		background-color 0.2s ease;
}
.er-to-top:is(:hover, :focus-visible) { background: var(--er-gold); }
@media (prefers-reduced-motion: reduce) {
	.er-to-top, .er-to-top.is-visible { transform: none; transition: opacity 0.15s ease, visibility 0s linear 0.15s; }
}

/* Header logo (Settings > General > Header logo) ---------------------------- */
.er-site-logo { margin: 0; line-height: 0; }
.er-site-logo a { display: inline-block; }
.er-site-logo__img { display: block; height: auto; max-width: 100%; }

/* Phones --------------------------------------------------------------------- */
@media (max-width: 781px) {
	.er-hero__cols { flex-direction: column-reverse; }
	.er-photo--portrait img { max-height: 420px; }
	.er-footer-band__text { flex-basis: 100%; }
	body:not(.editor-styles-wrapper) .er-panel { width: calc(100% - 24px); padding: 20px 22px 28px; }
	.er-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
	.er-site-logo__img { max-width: 60vw; }
}

/* Hero, full-width photo ------------------------------------------------------ */
.er-hero-cover.wp-block-cover {
	padding: clamp(48px, 7vw, 96px) 24px;
	align-items: center;
}
.er-hero-cover::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.84) 34%, rgba(255, 255, 255, 0) 62%);
}
.er-hero-cover .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1080px;
	margin-inline: auto;
	color: var(--er-ink);
}
.er-hero-cover__text { max-width: 540px; }
.er-hero-cover__text > :first-child { margin-top: 0; }

/* Newsletter stripe ------------------------------------------------------------ */
.er-stripe { padding-block: 48px; }
.er-stripe__inner { gap: 24px 48px; }
.er-stripe__text { flex: 1 1 520px; min-width: 0; }
.er-stripe__text > * { margin-block: 0; }
.er-stripe__text > * + * { margin-top: 10px; }
.er-stripe .er-eyebrow { margin-bottom: 0; }
.er-stripe__title { font-size: var(--wp--preset--font-size--feature); line-height: 1.2; }
.er-stripe .wp-block-button__link { min-height: 52px; display: inline-flex; align-items: center; }

/* While Trusted Advisor Updates is off, keep the bands alternating */
.er-no-articles #businesses:not(.has-background) { background-color: var(--er-mist); }

/* Sections given a dark background in the editor ------------------------------ */
:is(.er-section, .er-stripe):is(.has-ink-background-color, .has-ink-deep-background-color, .has-slate-background-color) :is(h1, h2, h3, h4, p, li, a:not(.wp-element-button)):not(.er-card *) {
	color: #fff;
}
:is(.er-section, .er-stripe):is(.has-ink-background-color, .has-ink-deep-background-color, .has-slate-background-color) :is(.er-eyebrow, .er-intro, .er-meta):not(.er-card *) {
	color: var(--er-on-ink-muted);
}
:is(.er-section, .er-stripe):is(.has-ink-background-color, .has-ink-deep-background-color, .has-slate-background-color) .wp-block-button:not(.er-btn-secondary):not(.er-card *) .wp-block-button__link {
	background: #fff;
	color: var(--er-ink);
}
:is(.er-section, .er-stripe):is(.has-ink-background-color, .has-ink-deep-background-color, .has-slate-background-color) .wp-block-button:not(.er-btn-secondary):not(.er-card *) .wp-block-button__link:is(:hover, :focus-visible) {
	background: var(--er-gold-text);
	color: #fff;
}

/* Editor labels for sections that depend on Settings > Reading ---------------- */
/* ::before, because the editor draws its selection outline with ::after */
.editor-styles-wrapper :is(.er-hero, .er-articles-section, .er-subscribe-stripe) { position: relative; }
.editor-styles-wrapper :is(.er-hero, .er-articles-section, .er-subscribe-stripe)::before,
.editor-styles-wrapper .er-hero-cover .wp-block-cover__inner-container::before {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 5;
	padding: 4px 10px;
	border-radius: 4px;
	background: var(--er-gold-text);
	color: #fff;
	font: 600 12px/1.4 var(--wp--preset--font-family--archivo), sans-serif;
	pointer-events: none;
}
.editor-styles-wrapper .er-hero-cover .wp-block-cover__inner-container::before { top: -32px; right: 0; }
.editor-styles-wrapper .er-hero::before { content: "Shows when Settings > Reading > Homepage hero is Headshot"; }
.editor-styles-wrapper .er-hero-cover .wp-block-cover__inner-container::before { content: "Shows when Settings > Reading > Homepage hero is Full-width photo"; }
.editor-styles-wrapper .er-articles-section::before { content: "Shows when Settings > Reading > Homepage articles is on"; }
.editor-styles-wrapper .er-subscribe-stripe::before { content: "Shows when Settings > Reading > Homepage articles is off"; }

@media (max-width: 781px) {
	.er-hero-cover.wp-block-cover {
		flex-direction: column;
		align-items: stretch;
		padding: 0;
		min-height: 0 !important;
	}
	.er-hero-cover::before { display: none; }
	.er-hero-cover.wp-block-cover img.wp-block-cover__image-background {
		position: relative;
		inset: auto;
		width: 100%;
		height: min(110vw, 460px);
	}
	.er-hero-cover .wp-block-cover__inner-container { padding: 32px 24px 48px; }
	.er-stripe__text { flex-basis: 100%; }
}
