/* Divine Memorial 01k/01m - five-panel landing (19 Oct 2026). CSS only, no script, no animation loop.
   Mobile first: five full-width bands that together fill the screen (100svh / 5, at least 120px each); the page scrolls
   only when the screen is too short for 5 x 120px. Desktop / wide screens: five full-height vertical slices side by side,
   a soft brighten-and-widen on hover or keyboard focus. Art: /art/faiths/faith-*-band-l01.webp (bands) and -tall-l01 (slices);
   each image loads only in the layout that uses it. Reduced motion: no widening transition. */
.screen-landing { background: var(--ink); overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.landing-top { position: absolute; left: 0; right: 0; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(8px + var(--safe-t)) calc(12px + var(--safe-r)) 8px calc(12px + var(--safe-l)); pointer-events: none;
  background: linear-gradient(to bottom, rgba(14, 11, 6, 0.62), rgba(14, 11, 6, 0)); }
.landing-top > * { pointer-events: auto; }
.landing-top .brand { order: 0; } .landing-top .landing-actions { order: 1; margin-left: auto; }   /* app.css reorders .brand in the hall top bar on phones */
.landing-actions { display: flex; gap: 8px; align-items: center; }
.landing-actions .btn { min-height: 40px; padding: 6px 12px; font-size: 14px; }

.faiths { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; margin: 0; padding: 0; }
.faith { position: relative; flex: 1 0 120px; min-height: 120px; display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden; text-decoration: none; color: var(--text); background-color: #2A2114; background-position: center; background-size: cover; background-repeat: no-repeat;
  border-bottom: 1px solid rgba(226, 198, 126, 0.28); -webkit-tap-highlight-color: rgba(226, 198, 126, 0.18); isolation: isolate; }
.faith:last-child { border-bottom: 0; }
/* soft veil so the name reads on bright art; lifts a little on hover / focus / press (the "gentle brighten") */
.faith::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(14, 11, 6, 0.52), rgba(14, 11, 6, 0.30) 70%); transition: opacity .35s ease; }
.faith:hover::before, .faith:focus-visible::before, .faith:active::before { opacity: 0.55; }
.faith:focus-visible { outline: 3px solid var(--focus); outline-offset: -5px; }
/* 01m: one shared title baseline. Every panel's title box is anchored by its BOTTOM edge at --title-y (same for all five),
   so a title that wraps grows upward. The tag row (Coming soon / Non-religious) starts a fixed gap below that line;
   Buddhist keeps an empty tag row so all five line up. */
.faith { --title-y: 57%; --tag-gap: 8px; }
.faith-text { position: absolute; inset: 0; display: block; margin: 0; padding: 0; pointer-events: none; }
.faith-name { position: absolute; left: 6%; right: 6%; bottom: calc(100% - var(--title-y)); display: block; text-align: center;
  font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.2; letter-spacing: .02em; color: #FBF1D6;
  text-shadow: 0 1px 3px rgba(10, 8, 5, 0.9), 0 0 14px rgba(10, 8, 5, 0.7); text-wrap: balance; }
html[lang^="zh"] .faith-name { letter-spacing: .12em; font-size: 24px; }
.faith-tags { position: absolute; left: 6%; right: 6%; top: calc(var(--title-y) + var(--tag-gap)); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.faith-sub { font-size: 14px; line-height: 1.3; color: #F3E6C4; text-shadow: 0 1px 3px rgba(10, 8, 5, 0.9); }
.faith-tag { font-size: 12px; line-height: 1.3; padding: 3px 10px; border-radius: 999px; color: var(--text); background: rgba(20, 16, 9, 0.72); border: 1px solid rgba(201, 162, 74, 0.5); }

.faith-buddhist  { background-image: url("../art/faiths/faith-buddhist-band-l01.webp"); }
.faith-taoist    { background-image: url("../art/faiths/faith-taoist-band-l01.webp"); }
.faith-christian { background-image: url("../art/faiths/faith-christian-band-l01.webp"); }
.faith-catholic  { background-image: url("../art/faiths/faith-catholic-band-l01.webp"); }
.faith-garden    { background-image: url("../art/faiths/faith-garden-band-l01.webp"); }
.faith-buddhist { background-position: center 30%; }

/* 01m: the preview / concept-art badges are gone (site is live). */

/* ---------- wide screens: five vertical slices ---------- */
@media (min-width: 761px) and (min-aspect-ratio: 1/1) {
  .faiths { flex-direction: row; }
  .faith { flex: 1 1 0; min-height: 0; min-width: 0; border-bottom: 0; border-right: 1px solid rgba(226, 198, 126, 0.28); transition: flex-grow .45s ease; }
  .faith:last-child { border-right: 0; }
  .faith:hover, .faith:focus-visible { flex-grow: 1.35; }
  /* 01m: same baseline for all five slices; the title size follows the slice width (one fifth of the screen) */
  .faith { --title-y: 50%; --tag-gap: 10px; }
  .faith-name { left: 4%; right: 4%; font-size: clamp(16px, 1.8vw, 26px); letter-spacing: .01em; }
  html[lang^="zh"] .faith-name { font-size: clamp(18px, 1.95vw, 28px); letter-spacing: .1em; }
  .faith-buddhist  { background-image: url("../art/faiths/faith-buddhist-tall-l01.webp"); background-position: center; }
  .faith-taoist    { background-image: url("../art/faiths/faith-taoist-tall-l01.webp"); }
  .faith-christian { background-image: url("../art/faiths/faith-christian-tall-l01.webp"); }
  .faith-catholic  { background-image: url("../art/faiths/faith-catholic-tall-l01.webp"); }
  .faith-garden    { background-image: url("../art/faiths/faith-garden-tall-l01.webp"); }
  .landing-top { padding: calc(14px + var(--safe-t)) calc(20px + var(--safe-r)) 14px calc(20px + var(--safe-l)); }
}
@media (prefers-reduced-motion: reduce) { .faith, .faith::before { transition: none !important; } }

/* 01q: every panel title on one line (Christian Memorial Chapel wrapped at 1366px; 01r: smaller so it is not clipped) */
@media (min-width: 720px) { .faith .faith-name { white-space: nowrap; font-size: clamp(14px, 1.3vw, 22px); } }
