/* Small additions for utility pages, tag archives and site search. */
.mpr-utility .ed-page-intro {
	max-width: 720px;
	margin-top: 21px;
	color: var(--ed-muted);
	font-size: 17px;
	line-height: 1.8;
}
.mpr-utility:has(.ed-reading-layout-without-toc) .ed-article-header { max-width: 740px; }
.mpr-utility .ed-article-end > .ed-textlink { margin-top: 0; }

/* Questions retain their full answers and existing heading structure. */
.mpr-faq .ed-article-content h2 {
	margin-top: 1.7em;
	padding-top: 24px;
	border-top: 1px solid var(--ed-line);
	font-size: 32px;
}
.mpr-faq .ed-article-content h3 { margin-top: 1.4em; font-size: 26px; line-height: 1.35; }
.mpr-colophon .ed-article-content > p:first-child { font-size: 20px; line-height: 1.75; }

/* Server-rendered search works with or without JavaScript. */
.mpr-search .ed-site-search { width: 100%; max-width: 790px; margin: 27px 0 0; }
.mpr-search .ed-site-search label { display: block; margin-bottom: 10px; color: var(--ed-ink); font-size: 14px; font-weight: 600; line-height: 1.5; }
.mpr-search .ed-site-search-field { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 7px 7px 7px 19px; border: 1px solid #84937f; background: #fdfbf5; }
.mpr-search .ed-site-search-field:focus-within { outline: 2px solid var(--ed-green); outline-offset: 3px; }
.mpr-search .ed-site-search input[type="search"] { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 46px; margin: 0; padding: 9px 0; border: 0; border-radius: 0; outline: 0; background: transparent; color: var(--ed-ink); font: 400 16px/1.5 "Segoe UI", Arial, sans-serif; box-shadow: none; }
.mpr-search .ed-site-search input[type="search"]::placeholder { color: var(--ed-muted); opacity: 1; }
.mpr-search .ed-site-search input[type="search"]:focus-visible { outline: 0; }
.mpr-search .ed-site-search button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 16px; min-width: 118px; min-height: 50px; margin: 0; padding: 10px 23px; border: 1px solid var(--ed-green); border-radius: 0; background: var(--ed-green); color: var(--ed-paper); font-size: 14px; font-weight: 600; line-height: 1.5; box-shadow: none; cursor: pointer; }
.mpr-search .ed-site-search button[type="submit"]:hover { background: #28563e; color: var(--ed-paper); }
.mpr-search .ed-site-search button[type="submit"]:active { border-color: #102f21; background: #102f21; color: var(--ed-paper); }
.mpr-search .ed-site-search button[type="submit"]:focus-visible { outline: 3px solid var(--ed-green); outline-offset: 4px; }
.mpr-search .ed-search-summary { max-width: 790px; margin-top: 22px; color: var(--ed-muted); font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; word-break: normal; }
.mpr-search .ed-search-summary :is(strong, q) { color: var(--ed-ink); font-weight: 600; }
.mpr-search .ed-search-empty { max-width: 880px; margin-top: 34px; padding: clamp(26px, 3.5vw, 40px); border: 1px solid var(--ed-line); background: var(--ed-wash); }
.mpr-search .ed-search-empty h2 { max-width: 660px; margin: 0; color: var(--ed-ink); font: 400 33px/1.25 Georgia, "Times New Roman", serif; letter-spacing: -.6px; overflow-wrap: anywhere; }
.mpr-search .ed-search-empty p { max-width: 650px; margin-top: 16px; color: var(--ed-muted); font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.mpr-search .ed-search-empty p + p { margin-top: 12px; }
.mpr-search .ed-search-empty .ed-textlink { margin-top: 18px; }
.mpr-search .ed-search-empty a:not(.ed-textlink) { color: var(--ed-green); text-decoration: underline; text-underline-offset: 4px; }
.mpr-search .ed-search-empty a:focus-visible { outline: 3px solid var(--ed-green); outline-offset: 5px; }
.mpr-search .ed-search-empty a:active { color: #102f21; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.mpr-tag .ed-archive-title { overflow-wrap: anywhere; }

@media (max-width: 680px) {
	.mpr-utility .ed-page-intro { margin-top: 18px; font-size: 16px; line-height: 1.8; }
	.mpr-faq .ed-article-content h2 { padding-top: 22px; font-size: 29px; }
	.mpr-faq .ed-article-content h3 { font-size: 25px; }
	.mpr-colophon .ed-article-content > p:first-child { font-size: 18px; }
	.mpr-search .ed-site-search { margin-top: 24px; }
	.mpr-search .ed-site-search label { font-size: 15px; }
	.mpr-search .ed-site-search-field { gap: 10px; min-height: 62px; padding-left: 14px; }
	.mpr-search .ed-site-search button[type="submit"] { min-width: 108px; min-height: 46px; padding-inline: 18px; }
	.mpr-search .ed-search-summary { margin-top: 19px; font-size: 16px; }
	.mpr-search .ed-search-empty { margin-top: 27px; padding: 27px 24px; }
	.mpr-search .ed-search-empty h2 { font-size: 29px; }
	.mpr-search .ed-search-empty p { font-size: 16px; }
}

@media (max-width: 420px) {
	.mpr-search .ed-site-search-field { flex-wrap: wrap; gap: 8px; padding: 9px; }
	.mpr-search .ed-site-search input[type="search"] { flex-basis: 100%; padding-inline: 4px; }
	.mpr-search .ed-site-search button[type="submit"] { flex-basis: 100%; width: 100%; }
	.mpr-search .ed-search-empty { padding-inline: 21px; }
	.mpr-search .ed-search-empty h2 { font-size: 27px; }
}

@media (max-width: 400px) {
	.mpr-faq .ed-article-content h2 { font-size: 27px; }
	.mpr-faq .ed-article-content h3 { font-size: 24px; }
	.mpr-colophon .ed-article-content > p:first-child { font-size: 17px; }
}

@media print {
	.mpr-utility .ed-toc,
	.mpr-search .ed-site-search { display: none !important; }
	.mpr-utility .ed-page-intro { font-size: 11pt; }
	.mpr-search .ed-search-empty { background: #fff; }
}
