/* Small behavior fixes kept in Core so this update needs only one plugin upload. */
@media (min-width: 901px) {
	.toc {
		max-height: calc(100vh - 170px);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}

	.toc-title-row {
		position: sticky;
		z-index: 2;
		top: -22px;
		padding: 22px 0 10px;
		background: #f4f0e8;
	}
}

.toc .toc-numbered {
	padding-left: 0;
	list-style: none;
}

.toc-numbered li {
	display: grid;
	grid-template-columns: 2.6em minmax(0, 1fr);
	gap: 0.25em;
	align-items: start;
}

.toc-numbered .toc-level-3 {
	padding-left: 0.7rem;
}

.toc-numbered .toc-level-4 {
	padding-left: 1.4rem;
}

.toc-number {
	color: var(--ink, #102321);
	font-variant-numeric: tabular-nums;
}

.toc-numbered a {
	min-width: 0;
	overflow-wrap: anywhere;
}

.e2g-brand-note-section {
	padding-top: clamp(48px, 6vw, 82px);
	padding-bottom: clamp(48px, 6vw, 82px);
}

.brand-box.e2g-brand-note {
	display: block;
	max-width: 820px;
	padding: clamp(28px, 5vw, 54px);
	border: 0;
	border-left: 3px solid var(--coral, #e97864);
	background: var(--cream, #f4f0e8);
	box-shadow: none;
}

.brand-box.e2g-brand-note h2 {
	max-width: 650px;
	font-size: clamp(2rem, 4vw, 3.6rem);
	line-height: 1.02;
}

.brand-box.e2g-brand-note p:not(.kicker) {
	max-width: 650px;
}

.e2g-featured-copy-link {
	display: block;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

.e2g-featured-copy-link:hover .featured-title,
.e2g-featured-copy-link:focus-visible .featured-title,
.e2g-featured-copy-link:hover .text-link,
.e2g-featured-copy-link:focus-visible .text-link {
	color: var(--coral, #e97864);
}

.e2g-featured-copy-link:focus-visible {
	outline: 2px solid var(--coral, #e97864);
	outline-offset: 10px;
}

.e2g-footer-nav-list {
	display: flex;
	margin: 0;
	padding: 0;
	gap: 24px;
	align-items: center;
	list-style: none;
}

.e2g-page-hero {
	padding-top: clamp(56px, 6vw, 88px);
	padding-bottom: clamp(28px, 3.5vw, 48px);
}

.e2g-page-hero + .section {
	padding-top: clamp(28px, 3.5vw, 48px);
}

.e2g-page-hero .page-title {
	max-width: 1040px;
	margin-inline: auto;
}

.e2g-page-description {
	max-width: 680px;
	margin: 24px auto 0;
	color: var(--muted, #61716e);
	font-family: var(--body, Arial, sans-serif);
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	font-weight: 400;
	line-height: 1.65;
	text-align: center;
	text-wrap: pretty;
}

.e2g-page-description p {
	margin: 0;
}

.policy {
	font-size: 1.02rem;
	line-height: 1.78;
}

.policy > :first-child {
	margin-top: 0;
}

.e2g-policy-layout > .lede {
	max-width: 700px;
	margin: 0 0 32px;
	font-size: 1.08rem;
	line-height: 1.65;
}

.e2g-policy-layout .policy-nav {
	margin: 34px 0 56px;
}

.e2g-policy-layout .policy-nav p {
	margin-top: 0;
}

.e2g-policy-layout .policy-nav ol {
	margin-bottom: 0;
	columns: 2;
	column-gap: 48px;
}

.e2g-policy-layout h3 {
	margin: 1.8em 0 0.45em;
	font: 600 1.25rem/1.25 var(--display, Georgia, serif);
}

.e2g-policy-layout .wp-block-buttons {
	margin-top: 26px;
}

.e2g-about-layout > .about-intro {
	max-width: 720px;
	margin: 0 auto clamp(70px, 8vw, 104px);
	font-family: var(--display, Georgia, serif);
	font-size: clamp(1.12rem, 1.8vw, 1.38rem);
	font-weight: 400;
	line-height: 1.65;
	text-align: center;
	text-wrap: pretty;
}

.e2g-about-layout .about-story:nth-child(even) .photo-frame {
	order: initial;
	transform: rotate(-1.5deg);
}

.e2g-about-layout .about-story.is-photo-right .photo-frame {
	order: 2;
	transform: rotate(1.8deg);
}

.e2g-about-layout .photo-frame .wp-block-image,
.e2g-about-layout .photo-frame img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
}

.e2g-about-layout .photo-frame img {
	min-height: 432px;
	object-fit: cover;
}

.e2g-about-layout .wp-block-buttons {
	margin-top: 28px;
}

.e2g-contact-panel {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(28px, 5vw, 52px);
	border: 1px solid var(--line, #d8d5cc);
	background: rgba(244, 240, 232, 0.58);
	box-shadow: 0 18px 48px rgba(16, 35, 33, 0.06);
}

.e2g-contact-intro {
	max-width: 620px;
	margin: 0 auto 34px;
	text-align: center;
}

.e2g-contact-intro h2 {
	margin: 0 0 12px;
	font: 500 clamp(2.1rem, 4vw, 3.35rem)/1.05 var(--display, Georgia, serif);
}

.e2g-contact-intro p {
	max-width: 560px;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.6;
}

.e2g-contact-form p {
	margin: 0 0 22px;
}

.e2g-contact-form label:not(.e2g-contact-consent) {
	display: grid;
	gap: 8px;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.e2g-contact-form input[type="text"],
.e2g-contact-form input[type="email"],
.e2g-contact-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--line, #d8d5cc);
	border-radius: 0;
	background: var(--paper, #fffaf5);
	color: var(--ink, #102321);
	font: inherit;
}

.e2g-contact-form input:focus,
.e2g-contact-form textarea:focus {
	border-color: var(--coral, #e97864);
	outline: 2px solid rgba(233, 120, 100, 0.2);
	outline-offset: 2px;
}

.e2g-contact-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.e2g-contact-consent {
	display: flex;
	margin: 4px 0 26px;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.82rem;
}

.e2g-contact-consent input {
	margin-top: 0.25em;
}

.e2g-form-notice {
	margin: 0 0 24px;
	padding: 14px 16px;
	border-left: 3px solid var(--sage, #96aa9d);
	background: var(--paper, #fffaf5);
}

.e2g-form-notice.is-error {
	border-left-color: var(--coral, #e97864);
}

.e2g-contact-honeypot {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (max-width: 900px) {
	.e2g-about-layout .about-story.is-photo-right .photo-frame {
		order: initial;
	}
}

@media (max-width: 600px) {
	.e2g-page-hero {
		padding-top: 46px;
		padding-bottom: 20px;
	}

	.e2g-page-hero + .section {
		padding-top: 24px;
	}

	.e2g-page-description {
		margin-top: 18px;
	}

	.e2g-footer-nav-list {
		flex-wrap: wrap;
	}

	.e2g-policy-layout .policy-nav ol {
		columns: 1;
	}

	.e2g-contact-fields {
		grid-template-columns: 1fr;
		gap: 0;
	}
}
