/* Explore menu (explore-menu.php). Approved design: prototypes/explore-menu/prototype.html (2026-10-06).
   Every rule is scoped to #site-navigation .aph-nav: the theme styles all nested menu lists as hover dropdowns, and the
   Customizer and search-nav.php set link sizes and colours with !important, so those properties need !important here. */
#site-navigation .aph-nav {
	--aph-navy: #003e75;
	--aph-ink: #404040;
	--aph-muted: #6b7480;
	--aph-rule: #d9d9d9;
	--aph-wash: #f3f6f9;
	--aph-btn: #e2eaf3;
	--aph-btn-hover: #d2dfec;
	--aph-tab-hover: #eff4f9;
	--aph-open-line: #b9c3cd;
	--aph-ui: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--aph-display: "EB Garamond", Georgia, serif;
	--aph-body: "Libre Baskerville", Georgia, serif;
}
#site-navigation .aph-nav ul,
#site-navigation .aph-nav li { margin: 0; padding: 0; list-style: none; float: none; }
#site-navigation .aph-nav li { font-size: inherit !important; line-height: inherit !important; }
#site-navigation .aph-nav ul { position: static; left: auto; top: auto; min-width: 0; background: none; border: 0; box-shadow: none; z-index: auto; }
#site-navigation .aph-nav a { text-decoration: none; }
#site-navigation .aph-nav button { font: inherit; background: none; border: 0; border-radius: 0; box-shadow: none; cursor: pointer; text-transform: none; }
#site-navigation .aph-nav .aph-chev { flex: none; transition: transform .15s; }
#site-navigation .aph-nav [aria-expanded="true"] > .aph-chev { transform: rotate(180deg); }
#site-navigation .aph-nav .aph-btn {
	display: inline-block; justify-self: start; white-space: nowrap; margin: 0; padding: 6px 11px; border: 0; border-radius: 999px;
	background: var(--aph-btn); color: var(--aph-navy) !important; font: 600 12.5px/1 var(--aph-ui) !important;
	font-size: 12.5px !important; font-weight: 600 !important; font-variant: normal !important; letter-spacing: normal !important; text-transform: none !important;
}
#site-navigation .aph-nav .aph-btn:hover,
#site-navigation .aph-nav .aph-btn:focus-visible { background: var(--aph-btn-hover); }

/* ---------- computer ---------- */
@media (min-width: 768px) {
	#site-navigation .aph-nav { display: flex; align-items: stretch; flex-wrap: wrap; }
	#site-navigation .aph-nav > li { position: relative; }
	#site-navigation .aph-nav > li.aph-li--panel { position: static; }
	#site-navigation .aph-nav .aph-top {
		display: flex; align-items: center; gap: 7px; margin: 0 0 -1px; padding: 16px 16px 15px;
		border: 0; border-bottom: 3px solid transparent; color: var(--aph-navy) !important;
		font: 400 19px/1 var(--aph-ui); font-family: var(--aph-ui) !important; font-size: 19px !important; font-weight: 400 !important;
		font-variant: small-caps; letter-spacing: 1.14px; white-space: nowrap; transition: background-color .12s;
	}
	#site-navigation .aph-nav .aph-top:hover { background: var(--aph-tab-hover); }
	#site-navigation .aph-nav .aph-top[aria-expanded="true"] { background: var(--aph-btn); border-bottom-color: var(--aph-open-line); }
	#site-navigation .aph-nav .aph-top[aria-current="page"],
	#site-navigation .aph-nav .aph-top.is-current { border-bottom-color: var(--aph-navy); } /* "you are here" wins over "open" */
	#site-navigation .aph-nav .aph-search-icon { flex: none; margin-left: 1px; position: relative; top: 1px; }

	/* About and other dropdowns */
	#site-navigation .aph-nav .aph-dd {
		position: absolute; top: 100%; left: 0; z-index: 101; width: 360px; padding: 8px 0;
		background: #fff; border: 1px solid var(--aph-rule); box-shadow: 0 14px 28px -12px rgba(0, 30, 60, .3);
	}
	#site-navigation .aph-nav .aph-dd[hidden] { display: none; }
	#site-navigation .aph-nav .aph-dd a { display: block; margin: 0; padding: 10px 20px; border: 0; white-space: normal; }
	#site-navigation .aph-nav .aph-dd a:hover { background: var(--aph-wash); }
	#site-navigation .aph-nav .aph-dd b { display: block; font: 600 20px/1.2 var(--aph-display); color: var(--aph-navy); font-variant: normal; letter-spacing: normal; }
	#site-navigation .aph-nav .aph-dd span { display: block; font: 400 14px/1.4 var(--aph-ui); color: var(--aph-muted); font-variant: normal; letter-spacing: normal; }

	/* Explore panel: spans the page; explore-menu.js sets left/width and --aph-inset to line up with the menu */
	#site-navigation .aph-nav .aph-panel {
		position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
		background: var(--aph-wash); border-top: 1px solid var(--aph-rule); border-bottom: 1px solid var(--aph-rule);
		box-shadow: 0 18px 30px -18px rgba(0, 30, 60, .35);
		max-height: calc(100vh - 120px); overflow-y: auto;
	}
	#site-navigation .aph-nav .aph-panel[hidden] { display: none; }
	#site-navigation .aph-nav .aph-panel-in { padding: 14px var(--aph-inset, 0px) 18px; }
	#site-navigation .aph-nav .aph-panel-top,
	#site-navigation .aph-nav .aph-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 36px; }
	#site-navigation .aph-nav .aph-panel-top { align-items: baseline; margin-bottom: 14px; }
	#site-navigation .aph-nav .aph-panel-top p { grid-column: 1 / 3; margin: 0; font: italic 400 14px/1.4 var(--aph-body); font-size: 14px !important; line-height: 1.4 !important; color: var(--aph-ink); }
	#site-navigation .aph-nav .aph-panel-btns { grid-column: 3; display: flex; flex-wrap: wrap; gap: 8px; }
	#site-navigation .aph-nav .aph-grid { row-gap: 16px; }
	#site-navigation .aph-nav .aph-chap-h { margin: 0 0 7px; padding: 0 0 6px; border-bottom: 2px solid var(--aph-navy); font: 600 19px/1.15 var(--aph-display); color: var(--aph-navy); text-wrap: balance; }
	#site-navigation .aph-nav .aph-chap-h a { margin: 0; padding: 0; border: 0; color: var(--aph-navy) !important; font: inherit; font-family: var(--aph-display) !important; font-size: 19px !important; font-weight: 600 !important; font-variant: normal !important; letter-spacing: normal !important; }
	#site-navigation .aph-nav .aph-chap-h a:hover { text-decoration: underline; }
	#site-navigation .aph-nav .aph-acc { display: none; }
	#site-navigation .aph-nav .aph-list { display: grid; gap: 4px; font-size: 14px; line-height: 1.35; }
	#site-navigation .aph-nav .aph-list li a:not(.aph-btn) {
		display: inline; margin: 0; padding: 0; border: 0; white-space: normal;
		color: var(--aph-ink) !important; font: 400 14px/1.35 var(--aph-ui); font-size: 14px !important; font-weight: 400 !important; line-height: 1.35 !important;
		font-variant: normal !important; letter-spacing: normal !important;
	}
	#site-navigation .aph-nav .aph-list li a:not(.aph-btn):hover { text-decoration: underline; }
	#site-navigation .aph-nav .aph-more { margin-top: 7px; }
	#site-navigation .aph-nav .aph-more--map { display: none; }
	#site-navigation .aph-nav .aph-sec { grid-column: 1 / -1; margin-top: 4px; }
	#site-navigation .aph-nav .aph-sec .aph-list { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 36px; }
	#site-navigation .aph-nav .aph-sec .aph-more { margin-top: 0; }
}

/* ---------- phone: inside the theme's "Menu" toggle ---------- */
@media (max-width: 767px) {
	#site-navigation .aph-nav > li { border-top: 1px solid var(--aph-rule); }
	#site-navigation .aph-nav .aph-top {
		display: flex; width: 100%; align-items: center; justify-content: space-between; margin: 0; padding: 14px 16px;
		color: var(--aph-ink) !important; font: 600 17px/1.25 var(--aph-ui); font-family: var(--aph-ui) !important; font-size: 17px !important; font-weight: 600 !important;
		font-variant: normal; letter-spacing: normal; text-align: left;
	}
	#site-navigation .aph-nav .aph-top[aria-expanded="true"] { background: var(--aph-btn); box-shadow: inset 0 -3px 0 var(--aph-open-line); color: var(--aph-navy) !important; }
	#site-navigation .aph-nav .aph-li--search .aph-top { justify-content: flex-start; gap: 8px; }
	#site-navigation .aph-nav .aph-panel,
	#site-navigation .aph-nav .aph-dd { position: static; width: auto; background: var(--aph-wash); }
	#site-navigation .aph-nav .aph-panel[hidden],
	#site-navigation .aph-nav .aph-dd[hidden] { display: none; }
	#site-navigation .aph-nav .aph-panel-top p { display: none; }
	#site-navigation .aph-nav .aph-panel-btns { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 14px; }
	#site-navigation .aph-nav .aph-chap { border-top: 1px solid var(--aph-rule); }
	#site-navigation .aph-nav .aph-chap-h { display: flex; align-items: center; justify-content: space-between; margin: 0; font: 600 16px/1.25 var(--aph-ui); font-family: var(--aph-ui) !important; color: var(--aph-ink); }
	#site-navigation .aph-nav .aph-chap-h > a,
	#site-navigation .aph-nav .aph-chap-h > span { flex: 1; margin: 0; padding: 14px 16px; color: var(--aph-ink) !important; font-family: var(--aph-ui) !important; font-size: 16px !important; font-weight: 600 !important; font-variant: normal !important; letter-spacing: normal !important; }
	#site-navigation .aph-nav .aph-acc { display: flex; align-items: center; justify-content: center; width: 52px; align-self: stretch; color: var(--aph-muted); }
	#site-navigation .aph-nav .aph-list { display: none; padding: 2px 16px 14px 28px; }
	#site-navigation .aph-nav .aph-chap.is-open .aph-list { display: grid; gap: 10px; }
	#site-navigation .aph-nav .aph-list li a:not(.aph-btn) { margin: 0; padding: 0; color: var(--aph-ink) !important; font: 400 15px/1.35 var(--aph-ui); line-height: 1.35 !important; font-size: 15px !important; font-weight: 400 !important; font-variant: normal !important; letter-spacing: normal !important; }
	#site-navigation .aph-nav .aph-dd a { display: block; margin: 0; padding: 8px 16px 8px 28px; }
	#site-navigation .aph-nav .aph-dd a:last-child { padding-bottom: 14px; }
	#site-navigation .aph-nav .aph-dd b { display: block; font: 600 16px/1.25 var(--aph-ui); color: var(--aph-navy); }
	#site-navigation .aph-nav .aph-dd span { display: block; font: 400 13.5px/1.35 var(--aph-ui); color: var(--aph-muted); }
	#site-navigation .aph-nav > li > a.aph-top { color: var(--aph-ink) !important; }
}
@media (prefers-reduced-motion: reduce) {
	#site-navigation .aph-nav * { transition: none !important; }
}

/* ---------- pages: breadcrumbs, chapter pages, Browse All Posts, Previous/Next (pages.php) ---------- */
.aph-crumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; margin: 0 0 12px; padding: 0; list-style: none; }
.aph-crumbs li { margin: 0; font: 400 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important; font-size: 14px !important; line-height: 1.4 !important; color: #6b7480; }
.aph-crumbs li + li::before { content: "\203A"; content: "\203A" / ""; margin: 0 10px; font-size: 1.25em; font-weight: 600; line-height: 1; color: #4a5560; }
.aph-crumbs .aph-crumb-tail { margin-left: 10px; font-size: 1.25em; font-weight: 600; line-height: 1; color: #4a5560; }
.aph-crumbs a { color: #6b7480; text-decoration: none; }
.aph-crumbs a:hover { text-decoration: underline; }
.aph-crumbs .aph-crumb-chapter a, .aph-crumbs .aph-crumb-chapter { color: #003e75; font-weight: 600; }
.aph-btn { display: inline-block; margin: 0 6px 6px 0; padding: 6px 11px; border-radius: 999px; background: #e2eaf3; color: #003e75 !important;
	font: 600 12.5px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 12.5px !important; text-decoration: none !important; white-space: nowrap; }
.aph-btn:hover, .aph-btn:focus-visible { background: #d2dfec; }
.aph-eyebrow { margin: 0 0 6px; font: 700 12px/1.3 "Open Sans", Arial, sans-serif !important; font-size: 12px !important; letter-spacing: .1em; text-transform: uppercase; color: #6b7480; }
.aph-ch-head { margin-bottom: 26px; }
.aph-chapter-page .aph-ch-title { margin: 0 0 14px; color: #003e75; }
.aph-ch-intro p { margin: 0 0 14px; }
.aph-toc { margin: 0 0 30px; padding: 16px 20px; background: #f3f6f9; }
.aph-toc ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.aph-toc li { margin: 0; border-bottom: 1px solid #d9d9d9; font-size: 15px !important; line-height: 1.35 !important; }
.aph-toc a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; text-decoration: none; color: #1f2c35;
	font: 600 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.aph-toc a:hover span:first-child { text-decoration: underline; }
.aph-n { color: #6b7480; font: 400 13px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; white-space: nowrap; }
@media (max-width: 600px) { .aph-toc ul { grid-template-columns: 1fr; } }
.aph-sec-list { margin: 0 0 30px; scroll-margin-top: 20px; }
.aph-sec-list h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 4px; padding-bottom: 8px;
	border-bottom: 2px solid #003e75; font-size: 2.4rem; color: #003e75; }
.aph-sec-list h2 a { color: #003e75; text-decoration: none; }
.aph-sec-list ul { margin: 0; padding: 0; list-style: none; }
.aph-sec-list li { margin: 0; border-bottom: 1px solid #e3e7eb; font-size: 16px !important; line-height: 1.4 !important; }
.aph-sec-list li a { display: block; padding: 10px 0; color: #1f2c35; text-decoration: none; font: 500 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.aph-sec-list li a:hover { color: #003e75; text-decoration: underline; }
.aph-ch-nav, .aph-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aph-ch-nav { margin: 36px 0 10px; }
.aph-ch-nav a, .aph-pn a { display: block; padding: 14px 16px; background: #f3f6f9; text-decoration: none; }
.aph-ch-nav a:hover, .aph-pn a:hover { background: #e7eef5; }
.aph-ch-nav small, .aph-pn small { display: block; margin-bottom: 6px; font: 600 13px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #6b7480; }
.aph-ch-nav b, .aph-pn b { display: block; font: 600 19px/1.25 "EB Garamond", Georgia, serif; color: #003e75; }
.aph-ch-nav .aph-next, .aph-pn .aph-next { text-align: right; }
.aph-keep { margin: 36px 0 10px; padding-top: 16px; border-top: 2px solid #003e75; }
.aph-keep .aph-keep-lab { margin: 0 0 12px; font: 700 12px/1 "Open Sans", Arial, sans-serif !important; font-size: 12px !important; letter-spacing: .1em; text-transform: uppercase; color: #6b7480; }
.aph-keep .aph-keep-links { margin: 14px 0 0; }
@media (max-width: 600px) { .aph-ch-nav, .aph-pn { grid-template-columns: 1fr; } .aph-ch-nav .aph-next, .aph-pn .aph-next { text-align: left; } }

/* Browse All Posts: chapters always visible, sections fold (details/summary) */
.aph-fold-all-wrap { margin: 0 0 18px; text-align: right; }
button.aph-btn { border: 0; cursor: pointer; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important; line-height: 1 !important; text-transform: none !important; letter-spacing: normal !important; }
.aph-all-ch { margin: 0 0 34px; scroll-margin-top: 20px; }
.aph-all-ch > h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 4px; padding-bottom: 8px;
	border-bottom: 2px solid #003e75; font-size: 2.4rem; color: #003e75; }
.aph-all-ch > h2 a { color: #003e75; text-decoration: none; }
.aph-fold { border-bottom: 1px solid #e3e7eb; scroll-margin-top: 20px; }
.aph-fold summary { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; cursor: pointer; list-style: none; }
.aph-fold summary::-webkit-details-marker { display: none; }
.aph-fold summary::before { content: ""; flex: none; width: 7px; height: 7px; margin: 0 4px 0 2px; border: solid #003e75; border-width: 0 2px 2px 0;
	transform: rotate(-45deg); transition: transform .15s; position: relative; top: -2px; }
.aph-fold[open] summary::before { transform: rotate(45deg); top: -4px; }
.aph-fold summary h3 { flex: 1; margin: 0; font: 600 17px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important; font-size: 17px !important; color: #1f2c35; }
.aph-fold summary:hover h3 { color: #003e75; text-decoration: underline; }
.aph-fold summary:focus-visible { outline: 2px solid #003e75; outline-offset: 2px; }
.aph-fold ul { margin: 0 0 10px 22px; padding: 0; list-style: none; }
.aph-fold li { margin: 0; font-size: 15.5px !important; line-height: 1.4 !important; }
.aph-fold li a { display: block; padding: 6px 0; color: #1f2c35; text-decoration: none; font: 400 15.5px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.aph-fold li a:hover { color: #003e75; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .aph-fold summary::before { transition: none; } }
