/* ===== Sacred Sites (2026-11-28): same tokens and components as Home v2 / Prayer Request ===== */

.btn-line-dark { border-color: oklch(95.5% 0.012 85 / 0.55); background: oklch(17% 0.045 252 / 0.35) !important; color: var(--color-on-field) !important; background: transparent; }
.btn-line-dark:hover { border-color: var(--color-accent-on-field); color: var(--color-accent-on-field) !important; }

/* hero: Jerusalem at dusk, the title on the left, a hand-drawn sketch of the city on the right */
.sshero { position: relative; color: var(--color-on-field-2); padding: var(--space-2xl) 0 clamp(220px, 20vw, 300px); background-color: var(--color-field); background-image: linear-gradient(90deg, oklch(17% 0.045 252 / 0.55) 0%, oklch(17% 0.045 252 / 0.25) 45%, transparent 70%), linear-gradient(180deg, oklch(17% 0.045 252 / 0.86) 0%, oklch(17% 0.045 252 / 0.72) 50%, oklch(17% 0.045 252 / 0.12) 82%, oklch(17% 0.045 252 / 0.3) 100%), linear-gradient(oklch(72% 0.09 70 / 0.12), oklch(72% 0.09 70 / 0.12)), url(/wp-content/uploads/2024/02/Jerusalem.webp); background-position: center, center, center, center 88%; background-size: cover; background-repeat: no-repeat; }
.sshero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, oklch(17% 0.045 252 / 0.35)); pointer-events: none; }
.sshero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: start; }
.sshead .prh1 { max-width: 12ch; }
.sslede2 { margin: var(--space-md) 0 0; max-width: 50ch; font-size: var(--text-body); line-height: 1.6; }
.sscta { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xl); }

/* the sketch: an old-paper print with the walls, the valley and six pins */
.ssmapfig { width: 100%; max-width: 460px; justify-self: end; transform: rotate(1.4deg); box-shadow: var(--shadow-print-dark); }
.ssmapbox { position: relative; border-radius: var(--radius-photo); overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, oklch(97% 0.022 85), oklch(92.5% 0.034 80) 70%, oklch(89% 0.04 78)); }
.ssmapbox::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 60px oklch(60% 0.06 70 / 0.18); pointer-events: none; }
.ssmap { display: block; width: 100%; height: auto; }
.ssmap text { font-family: var(--font-display); }
.ssmap .m-valley { fill: none; stroke: oklch(62% 0.05 230); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 2 18; opacity: 0.8; }
.ssmap .m-area { font-style: italic; font-size: 44px; fill: oklch(48% 0.04 70); letter-spacing: 0.01em; }
.ssmap .m-small { font-size: 36px; fill: oklch(52% 0.05 230); }
.ssmap .m-wall-shadow { fill: oklch(90% 0.04 80 / 0.7); stroke: oklch(60% 0.06 75 / 0.25); stroke-width: 26; stroke-linejoin: round; }
.ssmap .m-wall { fill: none; stroke: var(--color-ink-2); stroke-width: 7; stroke-linejoin: round; stroke-dasharray: 26 6; }
.ssmap .m-city { font-size: 58px; font-weight: 500; letter-spacing: 0.08em; fill: oklch(40% 0.05 70 / 0.55); }
.ssmap .m-via { fill: none; stroke: var(--color-accent-deep); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 14; }
.ssmap .m-pin { cursor: pointer; }
.ssmap .m-halo { fill: oklch(78.8% 0.139 82 / 0.22); transition: fill var(--dur-short) var(--ease-out); }
.ssmap .m-dot { fill: var(--color-accent); stroke: var(--color-ink-2); stroke-width: 5; transition: fill var(--dur-short) var(--ease-out); }
.ssmap .m-label { font-size: 46px; font-weight: 600; fill: var(--color-ink-2); paint-order: stroke; stroke: oklch(95% 0.03 82); stroke-width: 12px; stroke-linejoin: round; }
.ssmap .m-pin:hover .m-dot, .ssmap .m-pin:focus .m-dot { fill: var(--color-ink-2); }
.ssmap .m-pin:hover .m-halo, .ssmap .m-pin:focus .m-halo { fill: oklch(78.8% 0.139 82 / 0.45); }
.ssmap .m-pin:focus { outline: none; }
.ssmap .m-pin:focus-visible .m-halo { stroke: var(--color-focus); stroke-width: 6; }
.ssmap .m-north path { fill: var(--color-ink-2); }
.ssmap .m-north text { font-size: 40px; font-weight: 600; fill: var(--color-ink-2); }
@media (prefers-reduced-motion: no-preference) {
	.ssmap .m-halo { animation: sspulse 3.2s var(--ease-in-out) infinite; transform-box: fill-box; transform-origin: center; }
	.ssmap .m-pin:nth-of-type(2) .m-halo { animation-delay: 0.5s; }
	.ssmap .m-pin:nth-of-type(3) .m-halo { animation-delay: 1s; }
	.ssmap .m-pin:nth-of-type(4) .m-halo { animation-delay: 1.5s; }
	.ssmap .m-pin:nth-of-type(5) .m-halo { animation-delay: 2s; }
	.ssmap .m-pin:nth-of-type(6) .m-halo { animation-delay: 2.5s; }
	@keyframes sspulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.55; } }
}

/* the six sites, as a row of small hand-labelled prints that jump to each one */
.ssindex { background: var(--color-paper); border-bottom: 1px solid var(--color-rule); }
.ssindex ul { list-style: none; margin: 0; padding: var(--space-xl) 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-lg); }
.ssindex li:nth-child(odd) .ssi { transform: rotate(-1deg); }
.ssindex li:nth-child(even) .ssi { transform: rotate(1deg); }
.ssi { --mat: 6px; text-decoration: none; color: var(--color-ink-2); transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.ssindex li .ssi:hover { transform: rotate(0deg) translateY(-4px); box-shadow: var(--shadow-sheet); }
.ssi:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.ssi .photo { display: block; flex: none; aspect-ratio: 4 / 3; }
.ssi .photo img { display: block; }
.ssi-t { display: flex; flex-direction: column; gap: 2px; padding: var(--space-xs) var(--space-3xs) var(--space-3xs); }
.ssi .pl { font-size: var(--text-md); line-height: 1.15; }
.ssi .pc { font-size: var(--text-xs); margin-top: auto; }
/* every small print fills its column, so the place names line up even when a site name takes two lines */
.ssindex li { display: flex; }
.ssindex li .ssi { flex: 1; }
.ssi-t { flex: 1; }

/* the sites */
.sssites { padding: var(--section-gap) 0 var(--section-gap-s); background: var(--color-paper); }
.ssintro { text-align: center; margin: 0 auto var(--section-gap-s); max-width: 720px; }
.ssintro .h2 { margin: 0 auto; max-width: 16ch; }
.ssintro .lede { margin-left: auto; margin-right: auto; }
.ssite { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; padding: var(--space-3xl) 0; border-top: 1px solid var(--color-rule); scroll-margin-top: var(--space-lg); }
.ssite:first-of-type { border-top: 0; padding-top: 0; }
.ssite:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.ssite:nth-of-type(even) .ssmedia { order: 2; }
.ssmedia { position: relative; padding: 14% 9% 0 0; }
.ssite:nth-of-type(even) .ssmedia { padding: 14% 0 0 9%; }
.ssmain { transform: rotate(-0.8deg); }
.ssite:nth-of-type(even) .ssmain { transform: rotate(0.8deg); }
.ssmain .photo { aspect-ratio: 3 / 2; }
.ssproof { position: absolute; right: 0; top: 0; width: 32%; transform: rotate(3.5deg); --mat: 6px; z-index: 1; }
.ssite:nth-of-type(even) .ssproof { right: auto; left: 0; transform: rotate(-3.5deg); }
.ssproof .photo { aspect-ratio: 4 / 5; }
.ssproof figcaption { padding: var(--space-xs) var(--space-3xs) var(--space-3xs); }
.ssproof .pl { font-size: var(--text-sm); line-height: 1.25; }

.sswhere { display: flex; align-items: center; gap: var(--space-xs); margin: 0; font-size: var(--text-sm); font-weight: 600; color: var(--color-accent-deep); }
.sswhere svg { flex: none; }
.sstitle { margin: var(--space-sm) 0 0; font-family: var(--font-display); font-weight: 500; font-size: var(--text-section); line-height: 1.04; letter-spacing: var(--tracking-display); color: var(--color-ink-2); max-width: 14ch; }
.ssverse { margin: var(--space-lg) 0 0; padding: 0 0 0 var(--space-md); border-left: 2px solid var(--color-accent); }
.ssverse p { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: var(--text-xl); line-height: 1.3; color: var(--color-ink-2); max-width: 30ch; }
.ssverse cite { display: block; margin-top: var(--space-xs); font-style: normal; font-size: var(--text-xs); font-weight: 600; color: var(--color-accent-deep); }
.ssabout, .ssprayer { margin: var(--space-lg) 0 0; max-width: 52ch; line-height: 1.65; }
.ssabout { color: var(--color-ink); }
.ssprayer { margin-top: var(--space-md); color: var(--color-muted); }
.ssacts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); margin-top: var(--space-xl); }
.sslink { font-weight: 600; font-size: var(--text-md); color: var(--color-ink-2); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.sslink:hover { color: var(--color-accent-deep); }

/* how the prayer reaches the site: candles in the Holy Sepulchre */
.sshow { padding: var(--section-gap) 0; color: var(--color-on-field-2); background: linear-gradient(var(--color-shade-deep), var(--color-shade)), url(/wp-content/uploads/2026/11/hcp-home-candles-holy-sepulchre.jpg) center / cover; }
.sshow .h2 { color: var(--color-on-field); max-width: 16ch; }
.sssteps { list-style: none; counter-reset: ss; margin: var(--space-2xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl); }
.sssteps li { counter-increment: ss; padding-top: var(--space-lg); border-top: 1px solid var(--color-on-field-rule); }
.sssteps li::before { content: counter(ss); display: block; font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; color: var(--color-accent-on-field); margin-bottom: var(--space-md); }
.sssteps b { display: block; color: var(--color-on-field); font-size: var(--text-md); font-weight: 600; }
.sssteps span { display: block; margin-top: var(--space-2xs); font-size: var(--text-sm); line-height: 1.55; }

/* responsive (same breakpoints as Home and Prayer Request) */
@media (max-width: 1100px) {
	.ssindex ul { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; margin: 0 auto; }
	.ssite, .ssite:nth-of-type(even) { gap: var(--space-2xl); }
	.sssteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.sshero { padding: var(--space-xl) 0 200px; background-image: linear-gradient(180deg, oklch(17% 0.045 252 / 0.88) 0%, oklch(17% 0.045 252 / 0.74) 62%, oklch(17% 0.045 252 / 0.12) 90%, oklch(17% 0.045 252 / 0.3) 100%), linear-gradient(oklch(72% 0.09 70 / 0.12), oklch(72% 0.09 70 / 0.12)), url(/wp-content/uploads/2024/02/Jerusalem.webp); background-position: center, center, 45% 100%; background-size: cover, cover, auto 520px; }
	.sshero .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
	.ssmapfig { justify-self: center; max-width: 560px; transform: rotate(-0.6deg); }
	.ssite, .ssite:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); padding: var(--space-2xl) 0; }
	.ssite:nth-of-type(even) .ssmedia { order: 0; }
	.ssmedia, .ssite:nth-of-type(even) .ssmedia { max-width: 640px; }
	.sstitle { max-width: 18ch; }
}
@media (max-width: 600px) {
	.sshero .sscta .btn { width: 100%; }
	.ssindex ul { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--space-md); padding: var(--space-lg) var(--gutter); margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
	.ssindex ul::-webkit-scrollbar { display: none; }
	.ssindex li { flex: 0 0 42%; scroll-snap-align: start; }
	/* narrow prints: the name keeps two lines of room, so the place line starts at the same height in every print */
	.ssi .pl { min-height: 2.3em; }
	.ssi .pc { margin-top: 0; }
	.sssites { padding-top: var(--section-gap-s); }
	.ssintro { margin-bottom: var(--space-2xl); }
	.ssmedia { padding: 18% 6% 0 0; }
	.ssite:nth-of-type(even) .ssmedia { padding: 18% 0 0 6%; }
	.ssproof { width: 40%; }
	/* the sketch is small on a phone: larger words, fewer of them */
	.ssmap .m-label { font-size: 64px; stroke-width: 16px; }
	.ssmap .m-area { font-size: 50px; }
	.ssmap .m-small, .ssmap .m-city { display: none; }
	.ssmap .m-dot { r: 20px; }
	.ssmap .m-halo { r: 44px; }
	.ssproof .pl { font-size: var(--text-xs); }
	.ssverse p { font-size: var(--text-lg); }
	.ssacts .btn { width: 100%; }
	.sssteps { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
}
