/* Hindu Prayer Guide: River Journey & Prayer Wall
   Palette: Ganges river teal, monsoon water, marigold and diya flame. */

.hpg {
	--hpg-river: #0E4D5C;
	--hpg-river-dark: #093845;
	--hpg-water: #C7E5E6;
	--hpg-mist: #EDF5F5;
	--hpg-marigold: #F2A623;
	--hpg-brass: #C7801A;
	--hpg-flame: #E8590C;
	--hpg-ink: #17262B;
	--hpg-muted: #4F6268;
	--hpg-line: #CFE0E2;
	--hpg-field: #B5CBCE;
	--hpg-display: 'Young Serif', Georgia, 'Times New Roman', serif;
	--hpg-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-family: var(--hpg-body);
	color: var(--hpg-ink);
	line-height: 1.55;
}
.hpg *, .hpg *::before, .hpg *::after { box-sizing: border-box; }

/* Neutralize common theme button and heading styles inside our components. */
.hpg button {
	font-family: var(--hpg-body);
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	text-shadow: none;
	min-height: 0;
	line-height: 1.15;
	margin: 0;
}
.hpg h2, .hpg h3 { text-transform: none; letter-spacing: normal; }
.hpg a:focus-visible, .hpg button:focus-visible, .hpg input:focus-visible,
.hpg select:focus-visible, .hpg textarea:focus-visible, .hpg summary:focus-visible {
	outline: 3px solid var(--hpg-flame);
	outline-offset: 3px;
}
.hpg-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hpg [hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.hpg .hpg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .75em 1.3em; border-radius: 999px;
	font: 700 1rem/1.1 var(--hpg-body);
	text-decoration: none; cursor: pointer;
	border: 2px solid var(--hpg-river); color: var(--hpg-river); background: #fff;
	transition: background-color .15s, color .15s;
}
.hpg .hpg-btn:hover { background: var(--hpg-mist); color: var(--hpg-river-dark); }
.hpg .hpg-btn--primary { background: var(--hpg-river); color: #fff; }
.hpg .hpg-btn--primary:hover { background: var(--hpg-river-dark); border-color: var(--hpg-river-dark); color: #fff; }
.hpg .hpg-btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- The lamp (diya) ---------- */
.hpg-lamp {
	position: relative; flex: 0 0 auto;
	width: 58px; height: 58px; border-radius: 50%;
	background: #fff; border: 2px solid var(--hpg-river);
	z-index: 1;
	transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.hpg-lamp__bowl {
	position: absolute; left: 50%; bottom: 15px;
	width: 32px; height: 13px; margin-left: -16px;
	background: #9DB2B5;
	border-radius: 2px 2px 16px 16px / 2px 2px 13px 13px;
	transition: background-color .3s;
}
.hpg-lamp__bowl::after { /* the spout */
	content: ''; position: absolute; right: -5px; top: -1px;
	width: 9px; height: 6px; background: inherit;
	border-radius: 0 6px 2px 0;
}
.hpg-lamp__flame {
	position: absolute; left: 50%; bottom: 27px;
	width: 13px; height: 20px; margin-left: -6.5px;
	background: radial-gradient(ellipse at 50% 72%, #FFF1B8 0 22%, var(--hpg-marigold) 46%, var(--hpg-flame) 82%);
	border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%;
	transform-origin: 50% 100%;
	transform: scale(0);
	transition: transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.is-lit .hpg-lamp, .hpg-mini__stop.is-lit {
	background: #FFF5E1; border-color: var(--hpg-marigold);
}
.is-lit .hpg-lamp__bowl { background: var(--hpg-brass); }
.is-lit .hpg-lamp__flame { transform: scale(1); animation: hpg-flicker 2.6s ease-in-out infinite; }
@keyframes hpg-flicker {
	0%, 100% { transform: scale(1) rotate(0deg); }
	30% { transform: scale(1.04, .96) rotate(-3deg); }
	60% { transform: scale(.97, 1.05) rotate(2deg); }
}

/* ---------- Today bar ---------- */
.hpg-today {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
	background: var(--hpg-mist); border-radius: 16px; padding: 16px 20px; margin: 0 0 8px;
}
.hpg-today:empty { display: none; }
.hpg .hpg-today__text { margin: 0; font-size: 1.1rem; flex: 1 1 16rem; }
.hpg-today--bar { margin: 16px 0; }

/* ---------- River journey ---------- */
.hpg-journey { max-width: 780px; margin: 32px auto; }
.hpg .hpg-journey__lead {
	font: 400 clamp(1.2rem, 2.6vw, 1.5rem)/1.4 var(--hpg-display);
	color: var(--hpg-river); margin: 0 0 18px; max-width: 34em;
}
.hpg-river { position: relative; padding: 24px 0 8px; }
.hpg-river__svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.hpg-river__bed { fill: none; stroke: var(--hpg-water); stroke-width: 24; stroke-linecap: round; }
.hpg-river__flow { fill: none; stroke: var(--hpg-river); stroke-width: 7; stroke-linecap: round; }

.hpg-river__end { position: relative; z-index: 1; text-align: center; }
.hpg .hpg-river__end p {
	margin: 0 auto; max-width: 20rem;
	font-style: italic; font-size: .95rem; color: var(--hpg-muted);
	background: rgba(255, 255, 255, .9); display: inline-block; padding: 2px 8px; border-radius: 6px;
}
.hpg-peak {
	display: block; width: 92px; height: 46px; margin: 6px auto 0;
	background: linear-gradient(180deg, #fff 0 34%, #8FB7BC 34% 100%);
	clip-path: polygon(0 100%, 30% 32%, 42% 52%, 62% 0, 100% 100%);
}
.hpg-sea {
	display: block; width: 170px; height: 22px; margin: 0 auto 6px;
	background:
		radial-gradient(circle at 10px -4px, transparent 12px, var(--hpg-water) 13px) 0 0 / 20px 22px repeat-x;
	border-radius: 0 0 12px 12px;
}

.hpg .hpg-river__stops { list-style: none; margin: 0; padding: 0; position: relative; }
.hpg .hpg-stop { margin: 0; padding: 20px 0; list-style: none; }
.hpg-stop::before, .hpg-stop::marker { content: none; }
.hpg .hpg-stop__link {
	display: flex; align-items: center; gap: 16px;
	max-width: 27rem; padding: 4px; border-radius: 14px;
	color: inherit; text-decoration: none;
}
.hpg-stop:nth-child(odd) .hpg-stop__link { margin-left: 3%; }
.hpg-stop:nth-child(even) .hpg-stop__link { margin-left: 41%; }
.hpg-stop__text {
	position: relative; z-index: 1;
	background: rgba(255, 255, 255, .93); padding: 6px 10px; border-radius: 10px;
}
.hpg-stop__day { display: block; font-weight: 700; font-size: .85rem; color: var(--hpg-river); }
.hpg-stop__date { font-weight: 400; color: var(--hpg-muted); margin-left: .6em; }
.hpg-stop__place { display: block; font: 400 1.4rem/1.2 var(--hpg-display); color: var(--hpg-ink); margin: 2px 0; }
.hpg-stop__title { display: block; font-size: .95rem; line-height: 1.4; color: var(--hpg-muted); }
.hpg-stop__link:hover .hpg-stop__place {
	text-decoration: underline; text-decoration-color: var(--hpg-marigold);
	text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.hpg-stop.is-today .hpg-lamp { box-shadow: 0 0 0 7px rgba(242, 166, 35, .32); }
.hpg-stop.is-today .hpg-stop__day::after {
	content: 'Today'; margin-left: .6em; padding: 1px 8px; border-radius: 999px;
	background: var(--hpg-marigold); color: var(--hpg-ink); font-size: .75rem;
}

.hpg .hpg-journey__progress { text-align: center; color: var(--hpg-muted); margin: 18px 0; }
.hpg-journey__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (max-width: 600px) {
	.hpg-stop:nth-child(odd) .hpg-stop__link { margin-left: 0; }
	.hpg-stop:nth-child(even) .hpg-stop__link { margin-left: 16%; }
	.hpg .hpg-stop__link { max-width: 100%; }
	.hpg-lamp { width: 50px; height: 50px; }
	.hpg-lamp__bowl { bottom: 12px; }
	.hpg-lamp__flame { bottom: 24px; }
	.hpg-stop__place { font-size: 1.2rem; }
}

/* ---------- Day header ---------- */
.hpg-dayhead {
	display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 28px;
	padding: 0 0 18px; margin: 0 0 28px; border-bottom: 2px solid var(--hpg-line);
}
.hpg .hpg-back {
	grid-column: 1 / -1; justify-self: start;
	font-size: .95rem; font-weight: 700; color: var(--hpg-river); text-decoration: none;
}
.hpg .hpg-back::before { content: '\2190\00a0'; }
.hpg .hpg-back:hover { text-decoration: underline; }
.hpg .hpg-dayhead__count { margin: 0; font-weight: 700; color: var(--hpg-river); }
.hpg-dayhead__count span { font-weight: 400; color: var(--hpg-muted); margin-left: .7em; }
.hpg .hpg-dayhead__place { margin: 2px 0 0; font: 400 clamp(1.6rem, 4vw, 2.3rem)/1.15 var(--hpg-display); }

.hpg .hpg-mini {
	display: flex; align-items: center; gap: 12px;
	list-style: none; margin: 0 0 8px; padding: 0; position: relative;
}
.hpg-mini::before {
	content: ''; position: absolute; left: 6px; right: 6px; top: 50%;
	height: 4px; margin-top: -2px; border-radius: 2px; background: var(--hpg-water);
}
.hpg .hpg-mini li { margin: 0; padding: 0; list-style: none; position: relative; line-height: 0; }
.hpg-mini li::before, .hpg-mini li::marker { content: none; }
.hpg-mini__stop {
	display: block; width: 16px; height: 16px; border-radius: 50%;
	background: #fff; border: 2px solid var(--hpg-river);
}
.hpg-mini__stop.is-lit { background: var(--hpg-marigold); }
.hpg-mini__stop[aria-current="page"] {
	width: 24px; height: 24px; border-width: 3px; border-color: var(--hpg-flame);
}
@media (max-width: 600px) {
	.hpg-dayhead { grid-template-columns: 1fr; }
	.hpg .hpg-mini { margin-top: 10px; }
}

/* ---------- Prayer points ---------- */
.hpg-pray {
	background: var(--hpg-mist); border-radius: 20px;
	padding: clamp(18px, 4vw, 30px); margin: 32px 0;
}
.hpg .hpg-pray__heading {
	font: 400 clamp(1.4rem, 3.2vw, 1.8rem)/1.2 var(--hpg-display);
	color: var(--hpg-river); margin: 0 0 14px;
}
.hpg-pray__body > :last-child { margin-bottom: 0; }
.hpg-pray__body li { margin-bottom: 1em; }
.hpg .hpg-amen {
	display: flex; width: fit-content; align-items: baseline; gap: .7em;
	margin: .6em 0 0; padding: .5em 1em; border-radius: 999px;
	border: 1.5px solid var(--hpg-river); background: #fff; color: var(--hpg-river);
	font: 700 .92rem/1.1 var(--hpg-body); cursor: pointer;
	transition: background-color .15s, color .15s;
}
.hpg .hpg-amen:hover { background: #fff8ea; }
.hpg .hpg-amen[aria-pressed="true"] { background: var(--hpg-river); color: #fff; cursor: default; }
.hpg-amen__count { font-weight: 400; opacity: .9; }
.hpg-amen__count:empty { display: none; }

/* ---------- Day end (gold on dark, to sit on the theme's dark photo band) ---------- */
.hpg-dayend {
	--hpg-gold: #E9B24A;
	--hpg-gold-soft: rgba(233, 178, 74, .14);
	--hpg-cream: #F7EEDB;
	margin: 40px 0 8px;
	padding: clamp(18px, 3vw, 28px);
	border-radius: 22px;
	background: #1E170E;
	border: 1px solid rgba(233, 178, 74, .35);
	color: var(--hpg-cream);
}
.hpg .hpg-litbtn {
	display: flex; align-items: center; gap: 18px; width: 100%; text-align: left;
	padding: 18px 22px; border-radius: 18px; cursor: pointer;
	background: var(--hpg-gold-soft); border: 2px dashed var(--hpg-gold); color: var(--hpg-cream);
	transition: background-color .3s, border-color .3s;
}
.hpg .hpg-litbtn:hover { background: rgba(233, 178, 74, .22); }
.hpg-dayend .hpg-lamp { background: #1E170E; border-color: var(--hpg-gold); }
.hpg-dayend .hpg-lamp__bowl { background: #8C7B5A; }
.hpg-dayend.is-lit .hpg-litbtn { background: rgba(233, 178, 74, .24); border-style: solid; }
.hpg-dayend.is-lit .hpg-lamp { background: #2B200F; border-color: var(--hpg-marigold); }
.hpg-dayend.is-lit .hpg-lamp__bowl { background: var(--hpg-brass); }
.hpg-litbtn__label { display: block; font: 400 1.35rem/1.2 var(--hpg-display); color: var(--hpg-gold); }
.hpg-litbtn__hint { display: block; font-size: .95rem; color: var(--hpg-cream); opacity: .85; margin-top: 4px; }
.hpg-dayend.just-lit .hpg-lamp { box-shadow: 0 0 0 12px rgba(242, 166, 35, .28); }
.hpg .hpg-dayend__msg { margin: 12px 4px 0; font-weight: 700; color: var(--hpg-gold); }
.hpg .hpg-dayend__msg:empty { display: none; }
.hpg .hpg-dayend__wall { margin: 18px 4px; }
.hpg .hpg-dayend__wall a {
	color: var(--hpg-gold); font-weight: 700;
	text-decoration: underline; text-decoration-color: rgba(233, 178, 74, .5); text-underline-offset: 4px;
}
.hpg .hpg-dayend__wall a:hover { color: var(--hpg-cream); text-decoration-color: var(--hpg-cream); }
.hpg-dayend a:focus-visible, .hpg-dayend button:focus-visible { outline-color: var(--hpg-cream); }

.hpg-daynav {
	display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
	margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(233, 178, 74, .35);
}
.hpg .hpg-daynav__link {
	display: block; padding: 14px 18px; border-radius: 14px;
	border: 1.5px solid rgba(233, 178, 74, .45); color: var(--hpg-cream); text-decoration: none;
	background: rgba(0, 0, 0, .15);
}
.hpg .hpg-daynav__link:hover { border-color: var(--hpg-gold); background: var(--hpg-gold-soft); }
.hpg-daynav__link--next { text-align: right; grid-column: 2; }
.hpg-daynav__dir { display: block; font-size: .85rem; font-weight: 700; color: var(--hpg-gold); }
.hpg-daynav__link--prev .hpg-daynav__dir::before { content: '\2190\00a0'; }
.hpg-daynav__link--next .hpg-daynav__dir::after { content: '\00a0\2192'; }
.hpg-daynav__name { display: block; font: 400 1.1rem/1.3 var(--hpg-display); margin-top: 2px; color: var(--hpg-cream); }
@media (max-width: 520px) {
	.hpg-daynav { grid-template-columns: 1fr; }
	.hpg-daynav__link--next { grid-column: 1; }
}

/* Previous/Next panel on the pages around the journey */
.hpg-continue .hpg-daynav { margin-top: 0; padding-top: 0; border-top: 0; }

/* Day 7 megacities list (core List block with the class hpg-cities) */
.hpg-cities, .wp-block-list.hpg-cities { columns: 3 13rem; column-gap: 28px; padding-left: 1.4em; }
.hpg-cities li { break-inside: avoid; margin: 0 0 .45em; }

/* ---------- Prayer wall ---------- */
.hpg-wall { max-width: 1120px; margin: 32px auto; }
.hpg-wall__head { max-width: 44rem; margin-bottom: 22px; }
.hpg .hpg-wall__title { font: 400 clamp(2rem, 5vw, 2.8rem)/1.1 var(--hpg-display); color: var(--hpg-river); margin: 0 0 10px; }
.hpg .hpg-wall__intro { font-size: 1.1rem; margin: 0; }
.hpg .hpg-wall__kids { margin: 12px 0 0; font-size: .98rem; }
.hpg .hpg-wall__kids a { color: var(--hpg-river); font-weight: 700; }

.hpg-compose {
	background: var(--hpg-mist); border-radius: 24px;
	padding: clamp(18px, 4vw, 32px); margin-bottom: 44px;
}
.hpg .hpg-compose__title { font: 400 1.5rem/1.2 var(--hpg-display); margin: 0 0 14px; color: var(--hpg-ink); }

.hpg-tabs {
	display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px;
	background: #fff; border: 1.5px solid var(--hpg-line); border-radius: 999px;
}
.hpg .hpg-tabs button {
	padding: .6em 1.4em; border-radius: 999px; border: 0;
	background: transparent; color: var(--hpg-river);
	font-weight: 700; font-size: 1rem; cursor: pointer;
}
.hpg .hpg-tabs button:hover { background: var(--hpg-mist); }
.hpg .hpg-tabs button[aria-selected="true"], .hpg .hpg-tabs button[aria-pressed="true"] { background: var(--hpg-river); color: #fff; }
.hpg-tabs--small { margin: 0; }
.hpg .hpg-tabs--small button { padding: .45em 1em; font-size: .92rem; }

.hpg-label { display: block; font-weight: 700; margin: 0 0 6px; }
.hpg-optional { font-weight: 400; color: var(--hpg-muted); }
.hpg .hpg-input {
	display: block; width: 100%; max-width: 100%; margin: 0;
	padding: .7em .85em; border-radius: 12px;
	border: 1.5px solid var(--hpg-field); background: #fff; color: var(--hpg-ink);
	font: 400 1rem/1.4 var(--hpg-body); box-shadow: none;
}
.hpg .hpg-input:focus { border-color: var(--hpg-river); box-shadow: 0 0 0 3px rgba(14, 77, 92, .18); outline: none; }
.hpg .hpg-input--area { min-height: 140px; resize: vertical; font-size: 1.05rem; }
.hpg .hpg-input--small { width: auto; padding: .45em .7em; font-size: .92rem; }
.hpg .hpg-help { font-size: .9rem; color: var(--hpg-muted); margin: 6px 0 0; }

.hpg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-bottom: 12px; }
.hpg .hpg-tools__group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.hpg-swatch, .hpg-size { position: relative; cursor: pointer; display: inline-grid; place-items: center; width: 36px; height: 36px; }
.hpg-swatch input, .hpg-size input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.hpg-swatch__dot { width: 26px; height: 26px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.hpg-swatch input:checked + .hpg-swatch__dot { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--hpg-ink); }
.hpg-swatch input:focus-visible + .hpg-swatch__dot { outline: 3px solid var(--hpg-flame); outline-offset: 5px; }
.hpg-size { border-radius: 10px; background: #fff; border: 1.5px solid var(--hpg-field); }
.hpg-size__dot { width: var(--sz); height: var(--sz); border-radius: 50%; background: var(--hpg-ink); }
.hpg-size:has(input:checked) { border-color: var(--hpg-river); box-shadow: 0 0 0 2px var(--hpg-river); }
.hpg-size input:focus-visible + .hpg-size__dot { outline: 3px solid var(--hpg-flame); outline-offset: 8px; }
.hpg .hpg-tool {
	padding: .5em .95em; border-radius: 999px; cursor: pointer;
	border: 1.5px solid var(--hpg-field); background: #fff; color: var(--hpg-ink);
	font-weight: 700; font-size: .9rem;
}
.hpg .hpg-tool:hover { border-color: var(--hpg-river); }
.hpg .hpg-tool[aria-pressed="true"] { background: var(--hpg-ink); color: #fff; border-color: var(--hpg-ink); }
.hpg .hpg-tool[disabled] { opacity: .45; cursor: default; }

.hpg-canvas {
	max-width: 820px;
	display: block; width: 100%; height: auto; aspect-ratio: 3 / 2;
	background: #fff; border-radius: 16px; border: 1.5px solid var(--hpg-field);
	touch-action: none; cursor: crosshair;
}

.hpg-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0 16px; }
@media (max-width: 720px) { .hpg-fields { grid-template-columns: 1fr; } }
.hpg-panel .hpg-label + .hpg-input { margin-bottom: 0; }
.hpg-panel > .hpg-label:not(:first-child) { margin-top: 16px; }

.hpg-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.hpg-guidelines { margin: 0 0 14px; background: #fff; border-radius: 12px; padding: 10px 16px; border: 1.5px solid var(--hpg-line); }
.hpg-guidelines summary { cursor: pointer; font-weight: 700; color: var(--hpg-river); }
.hpg-guidelines ul { margin: 10px 0 4px 1.2em; padding: 0; }
.hpg-guidelines li { margin: 0 0 .35em; }

.hpg-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; cursor: pointer; }
.hpg-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--hpg-river); }

.hpg-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hpg .hpg-status { margin: 0; flex: 1 1 18rem; }
.hpg .hpg-status:empty { display: none; }
.hpg .hpg-status.is-error { color: #A3260E; background: #FFF0EB; padding: 10px 14px; border-radius: 10px; }
.hpg .hpg-status.is-ok { color: var(--hpg-river-dark); background: #E2F2EC; padding: 10px 14px; border-radius: 10px; }

/* Board */
.hpg-board__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.hpg .hpg-board__title { font: 400 1.6rem/1.2 var(--hpg-display); margin: 0; }
.hpg-board__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.hpg .hpg-board__filters select { min-width: 0; max-width: 100%; flex: 0 1 auto; }
.hpg-board__grid { columns: 3 290px; column-gap: 20px; }
.hpg .hpg-board__empty { text-align: center; color: var(--hpg-muted); padding: 30px 0; margin: 0; }
.hpg-board__more { text-align: center; margin-top: 10px; }

.hpg-card {
	display: inline-block; width: 100%; break-inside: avoid;
	margin: 0 0 20px; background: #fff; border: 1px solid var(--hpg-line);
}
.hpg-card--text { padding: 18px 20px 14px; border-left: 4px solid var(--hpg-marigold); border-radius: 0 16px 16px 0; }
.hpg .hpg-card__text { margin: 0 0 12px; white-space: pre-line; font-size: 1.02rem; overflow-wrap: anywhere; }
.hpg-card--text.is-short .hpg-card__text { font: 400 1.3rem/1.4 var(--hpg-display); color: var(--hpg-river); }
.hpg-card--drawing { padding: 10px 10px 14px; border-radius: 8px; }
.hpg .hpg-card__art { margin: 0 0 10px; }
.hpg-card__art img { display: block; width: 100%; height: auto; border-radius: 4px; background: #fff; border: 1px solid #E6EEEF; }
.hpg .hpg-card__caption { margin: 10px 4px 0; font-size: 1rem; white-space: pre-line; overflow-wrap: anywhere; }
.hpg-card--drawing .hpg-card__meta, .hpg-card--drawing .hpg-card__actions { padding: 0 4px; }
.hpg .hpg-card__meta {
	display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0 0 10px;
	font-size: .85rem; color: var(--hpg-muted);
}
.hpg-card__who { font-weight: 700; color: var(--hpg-ink); }
.hpg-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hpg .hpg-pray-btn {
	display: inline-flex; align-items: baseline; gap: .55em;
	padding: .5em 1em; border-radius: 999px; cursor: pointer;
	border: 1.5px solid var(--hpg-river); background: #fff; color: var(--hpg-river);
	font-weight: 700; font-size: .9rem;
}
.hpg .hpg-pray-btn:hover { background: #fff8ea; }
.hpg .hpg-pray-btn[aria-pressed="true"] { background: var(--hpg-river); color: #fff; cursor: default; }
.hpg-pray-btn__count { font-weight: 400; }
.hpg-pray-btn__count:empty { display: none; }
.hpg .hpg-report-btn {
	border: 0; background: none; padding: .4em; cursor: pointer;
	color: var(--hpg-muted); font-size: .82rem; text-decoration: underline; text-underline-offset: 3px;
}
.hpg .hpg-report-btn:hover { color: #A3260E; }

.hpg-card.is-pending { border: 2px dashed var(--hpg-river); border-radius: 16px; }
.hpg-card--text.is-pending { border-left-width: 2px; }
.hpg .hpg-card__badge {
	display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px;
	background: var(--hpg-mist); color: var(--hpg-river); font-size: .8rem; font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
	.hpg *, .hpg *::before, .hpg *::after { animation: none !important; transition: none !important; }
	.is-lit .hpg-lamp__flame { transform: scale(1); }
}

@media print {
	.hpg-amen, .hpg-dayend, .hpg-mini, .hpg-back { display: none !important; }
}

/* =========================================================
   Reading pages: [hpg_article] and its sections
   ========================================================= */
.hpg-article { --hpg-gold: #E9B24A; --hpg-gold-ink: #94600F; --hpg-cream: #F7EEDB; margin: 0 auto 40px; max-width: 1120px; padding: 0 clamp(12px, 3vw, 24px); }
body:has(.hpg-hero) { overflow-x: clip; } /* the banner is full-bleed; never let it cause sideways scrolling */

/* Full-width dark banner that the site's see-through header floats over */
.hpg-hero {
	position: relative; overflow: hidden;
	width: 100vw; margin-left: calc(50% - 50vw);
	background: #1E170E; color: var(--hpg-cream);
	border-radius: 0 0 32px 32px;
	padding-top: calc(var(--hpg-top, 0px) + clamp(24px, 4vw, 52px));
	padding-bottom: clamp(64px, 8vw, 104px);
	padding-left: max(clamp(22px, 6vw, 72px), calc(50vw - 520px));
	padding-right: max(clamp(22px, 6vw, 72px), calc(50vw - 520px));
}
@media (max-width: 760px) { /* phone headers are shorter */
	.hpg-hero { padding-top: calc(var(--hpg-top, 0px) * .7 + 20px); border-radius: 0 0 24px 24px; }
}
.hpg-hero::after { /* a gold river running along the foot of the band */
	content: ''; position: absolute; left: 0; right: 0; bottom: 20px; height: 34px; opacity: .55; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 34' preserveAspectRatio='none'%3E%3Cpath d='M0 20 C150 4 300 32 450 18 S750 2 900 16 S1100 30 1200 12' fill='none' stroke='%23E9B24A' stroke-width='3'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hpg-article .hpg-hero .hpg-hero__kicker { margin: 0 0 12px; color: var(--hpg-gold); font-weight: 700; font-size: .98rem; }
.hpg-article .hpg-hero .hpg-hero__title {
	margin: 0 0 18px; max-width: 20ch; color: var(--hpg-cream);
	font: 400 clamp(2.1rem, 5.2vw, 3.8rem)/1.08 var(--hpg-display); text-transform: none; letter-spacing: normal;
}
.hpg-article .hpg-hero .hpg-hero__place { margin: -6px 0 18px; color: var(--hpg-gold); font: 400 1.25rem/1.3 var(--hpg-display); }
.hpg-hero__verse { margin: 0; max-width: 40rem; padding: 0; border: 0; background: none; }
.hpg-article .hpg-hero .hpg-hero__verse p { margin: 0 0 8px; color: var(--hpg-cream); font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.5; font-style: italic; }
.hpg-article .hpg-hero .hpg-hero__verse figcaption { color: var(--hpg-gold) !important; font-weight: 700; font-size: .95rem; font-style: normal; }
.hpg-article .hpg-hero .hpg-hero__back { display: inline-block; margin: 0 0 18px; color: var(--hpg-cream); font-weight: 700; font-size: .92rem; text-decoration: none; opacity: .9; }
.hpg-article .hpg-hero .hpg-hero__back::before { content: '\2190\00a0'; color: var(--hpg-gold); }
.hpg-article .hpg-hero .hpg-hero__back:hover { color: var(--hpg-gold); }
.hpg-hero a:focus-visible { outline-color: var(--hpg-cream); }

/* Progress dots inside the day banner */
.hpg-hero .hpg-mini { display: inline-flex; margin: 26px 0 0; }
.hpg-hero .hpg-mini::before { background: rgba(233, 178, 74, .35); }
.hpg-hero .hpg-mini__stop { background: #1E170E; border-color: var(--hpg-gold); }
.hpg-hero .hpg-mini__stop.is-lit { background: var(--hpg-marigold); border-color: var(--hpg-marigold); }
.hpg-hero .hpg-mini__stop[aria-current="page"] { border-color: var(--hpg-cream); }

.hpg-article__body {
	max-width: 44rem; margin: 0 auto;
	padding: clamp(28px, 5vw, 56px) clamp(4px, 2vw, 16px) 8px;
	font-size: 1.12rem; line-height: 1.75;
}
.hpg-article--wide .hpg-article__body { max-width: 1080px; }
.hpg-article__body > p { margin: 0 0 1.15em; }
.hpg-article__body > h2, .hpg-article__body > .wp-block-heading {
	font: 400 clamp(1.5rem, 3vw, 1.9rem)/1.2 var(--hpg-display); color: var(--hpg-river);
	margin: 1.9em 0 .6em; text-transform: none; letter-spacing: normal;
}
.hpg-article__body img { max-width: 100%; height: auto; border-radius: 16px; }
.hpg-article__body .wp-block-image { margin: 1.8em 0; }
.hpg-article__body .wp-element-caption { font-size: .9rem; color: var(--hpg-muted); text-align: center; margin-top: 8px; }
.hpg-article__body a { color: var(--hpg-river); text-decoration-color: var(--hpg-marigold); text-underline-offset: 3px; }
.hpg-article .hpg-continue { margin-top: 48px; }

/* Wide sections step outside the reading column on large screens */
.hpg-article .hpg-article__body .hpg-stats, .hpg-article .hpg-article__body .hpg-cards,
.hpg-article .hpg-article__body .hpg-route, .hpg-article .hpg-article__body .hpg-journey {
	width: min(1000px, calc(100vw - 48px)); max-width: none;
	margin-left: 50%; margin-right: 0; transform: translateX(-50%);
}

/* Pull quote */
.hpg.hpg-pull {
	font: 400 clamp(1.4rem, 3.2vw, 2rem)/1.35 var(--hpg-display); color: var(--hpg-river);
	border-left: 6px solid var(--hpg-marigold); padding: .15em 0 .15em .9em; margin: 1.6em 0;
}

/* Stats */
.hpg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 16px; margin: 2em 0; }
.hpg-stat { background: var(--hpg-mist); border-radius: 20px; padding: 22px 22px 20px; }
.hpg-stat__value { display: block; font: 400 clamp(1.9rem, 4vw, 2.6rem)/1.05 var(--hpg-display); color: var(--hpg-gold-ink, #94600F); }
.hpg-stat__label { display: block; margin-top: 8px; font-size: 1rem; line-height: 1.4; color: var(--hpg-ink); }

/* Terms */
.hpg-terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 14px; margin: 1.6em 0 2em; padding: 0; }
.hpg-term { border: 1.5px solid var(--hpg-line); border-radius: 18px; padding: 18px 20px; background: #fff; }
.hpg .hpg-term dt { font: 400 1.4rem/1.2 var(--hpg-display); color: var(--hpg-river); margin: 0 0 4px; }
.hpg .hpg-term dd { margin: 0; color: var(--hpg-muted); font-size: 1rem; line-height: 1.45; }

/* Route: stops along a river line */
.hpg .hpg-route { list-style: none; display: flex; margin: 2.2em 0; padding: 0; position: relative; }
.hpg-route::before {
	content: ''; position: absolute; left: 6%; right: 6%; top: 12px; height: 6px; border-radius: 3px;
	background: linear-gradient(90deg, var(--hpg-water), #8FC6CB);
}
.hpg .hpg-route li { flex: 1 1 0; position: relative; text-align: center; margin: 0; padding: 40px 6px 0; list-style: none; }
.hpg-route li::marker { content: none; }
.hpg-route li::before {
	content: ''; position: absolute; top: 2px; left: 50%; margin-left: -13px;
	width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--hpg-river); box-sizing: border-box;
}
.hpg-route li:last-child::before { background: var(--hpg-marigold); border-color: var(--hpg-marigold); }
.hpg-route__name { display: block; font: 400 1.08rem/1.25 var(--hpg-display); color: var(--hpg-ink); }
.hpg-route__note { display: block; font-size: .85rem; line-height: 1.3; color: var(--hpg-muted); margin-top: 3px; }
@media (max-width: 760px) {
	.hpg .hpg-route { flex-direction: column; gap: 18px; }
	.hpg-route::before { left: 10px; right: auto; top: 8px; bottom: 8px; width: 6px; height: auto; background: linear-gradient(180deg, var(--hpg-water), #8FC6CB); }
	.hpg .hpg-route li { text-align: left; padding: 0 0 0 44px; }
	.hpg-route li::before { top: 0; left: 0; margin-left: 0; }
}

/* Cards */
.hpg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 16px; margin: 1.6em 0 2em; }
.hpg-card2 {
	position: relative; background: #fff; border: 1.5px solid var(--hpg-line); border-top: 5px solid var(--hpg-marigold);
	border-radius: 18px; padding: 20px 22px;
}
.hpg .hpg-card2__title { font: 400 1.25rem/1.25 var(--hpg-display); margin: 0 0 8px; color: var(--hpg-ink); text-transform: none; }
.hpg .hpg-card2__text { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--hpg-muted); }
.hpg .hpg-card2__more { margin: 12px 0 0; font-weight: 700; font-size: .95rem; color: var(--hpg-river); }
.hpg .hpg-card2__link { color: inherit; text-decoration: none; }
.hpg-card2__link::after { content: ''; position: absolute; inset: 0; border-radius: 18px; } /* whole card is clickable */
.hpg-card2--link:hover { border-color: var(--hpg-river); border-top-color: var(--hpg-marigold); background: #FBFDFD; }
.hpg-card2--link:hover .hpg-card2__title { text-decoration: underline; text-decoration-color: var(--hpg-marigold); text-underline-offset: 4px; }
.hpg-card2__link:focus-visible { outline: none; }
.hpg-card2:has(.hpg-card2__link:focus-visible) { outline: 3px solid var(--hpg-flame); outline-offset: 3px; }

/* Dates */
.hpg .hpg-dates { list-style: none; margin: 1.4em 0 2em; padding: 0; border-top: 1.5px solid var(--hpg-line); }
.hpg .hpg-date { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; align-items: baseline; padding: 14px 0; margin: 0; border-bottom: 1.5px solid var(--hpg-line); list-style: none; }
.hpg-date::marker { content: none; }
.hpg-date__when { font: 400 1.25rem/1.2 var(--hpg-display); color: var(--hpg-gold-ink, #94600F); }
.hpg-date__what strong { display: block; font-size: 1.05rem; }
.hpg-date__what span { display: block; color: var(--hpg-muted); font-size: .95rem; }
@media (max-width: 520px) { .hpg .hpg-date { grid-template-columns: 1fr; gap: 2px; } }

/* Callout */
.hpg-callout { background: var(--hpg-mist); border-radius: 22px; padding: clamp(18px, 3vw, 28px); margin: 1.6em 0 2em; }
.hpg .hpg-callout__title { font: 400 1.4rem/1.2 var(--hpg-display); color: var(--hpg-river); margin: 0 0 10px; text-transform: none; }
.hpg-callout__body > :last-child { margin-bottom: 0; }
.hpg-callout__body img { border-radius: 14px; }

/* Pray for 5 people by name */
.hpg-five { background: #1E170E; color: #F7EEDB; border-radius: 22px; padding: clamp(20px, 3vw, 30px); margin: 1.8em 0 2em; }
.hpg .hpg-five__title { font: 400 1.5rem/1.2 var(--hpg-display); color: #E9B24A; margin: 0 0 8px; text-transform: none; }
.hpg .hpg-five__help { margin: 0 0 16px; font-size: 1rem; line-height: 1.5; opacity: .9; }
.hpg .hpg-five__list { list-style: none; counter-reset: five; margin: 0; padding: 0; display: grid; gap: 10px; }
.hpg .hpg-five__list li { counter-increment: five; display: flex; align-items: center; gap: 14px; margin: 0; list-style: none; }
.hpg-five__list li::before { content: counter(five); flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #E9B24A; color: #1E170E; font: 700 1rem/1 var(--hpg-body); }
.hpg-five__list li::marker { content: none; }
.hpg .hpg-five .hpg-input { background: #2A2116; border-color: rgba(233, 178, 74, .45); color: #F7EEDB; }
.hpg .hpg-five .hpg-input:focus { border-color: #E9B24A; box-shadow: 0 0 0 3px rgba(233, 178, 74, .25); }
.hpg .hpg-five__status { margin: 10px 0 0; font-size: .9rem; color: #E9B24A; min-height: 1.3em; }
.hpg-callout .hpg-btn { margin: 4px 10px 4px 0; }
