/* Tilma LA public site. Design: docs/DESIGN.md (Petra).
   Logical properties throughout so the 28 languages, Arabic and Hebrew
   included, lay out the same way mirrored. */

/* Metric-matched fallbacks so the web fonts swap in without shifting layout. */
@font-face { font-family: "Cormorant Fallback"; src: local("Georgia"); size-adjust: 88%; ascent-override: 92%; descent-override: 28%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; }

:root {
  --mantle: #0e3a3b;
  --mantle-deep: #082627;
  --gold: #c9a24a;
  --gold-light: #ecd9a4;
  --rose: #9b1f33;
  --rose-dark: #7c1728;
  --rose-light: #f4d8d4;
  --parchment: #fbf7ee;
  --paper: #fffdf8;
  --ink: #2a2320;
  --ink-soft: #6b5f57;
  --line: #e6dccb;

  --display: "Cormorant Garamond", "Cormorant Fallback", "Hiragino Mincho ProN", "Songti TC", "Noto Serif CJK", "Times New Roman", serif;
  --ui: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", "Geeza Pro", "Arial Hebrew", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans CJK", sans-serif;

  --wrap: 1160px;
  --gut: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --r: 18px;
  --bar-h: 64px;
  --shadow: 0 1px 2px rgba(42, 35, 32, .06), 0 12px 32px -12px rgba(42, 35, 32, .18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }
body {
  margin: 0; background: var(--parchment); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--ui); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--rose); text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
p, li { hyphens: auto; overflow-wrap: anywhere; }
h1, h2, h3, .btn, .chip { overflow-wrap: break-word; hyphens: manual; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--ui); text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background-color .25s, box-shadow .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn-rose { background: var(--rose); color: #fff; box-shadow: 0 8px 22px -10px rgba(155, 31, 51, .7); }
.btn-rose:hover { background: var(--rose-dark); }
.btn-line { border-color: rgba(236, 217, 164, .55); color: var(--gold-light); }
.btn-line:hover { background: rgba(236, 217, 164, .1); }
.btn-gold { background: var(--gold); color: var(--mantle-deep); }
.btn-gold:hover { background: var(--gold-light); }
.btn-quiet { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-quiet:hover { border-color: var(--gold); }
.btn-sm { min-height: 42px; padding: .55em 1.1em; font-size: .94rem; }

/* ---------- Bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: calc(var(--bar-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top); color: var(--gold-light);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), background-color .4s, color .4s, box-shadow .4s;
}
.bar.is-solid { background: rgba(251, 247, 238, .86); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.bar.is-hidden { transform: translateY(-100%); }
.bar-in { display: flex; align-items: center; gap: 20px; height: var(--bar-h); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-inline-end: auto; }
.brand-mark { width: 34px; height: 34px; fill: var(--gold); }
.brand-mark ellipse { fill: var(--mantle); stroke: var(--gold); stroke-width: 1.4; }
.bar.is-solid .brand-mark ellipse { fill: var(--mantle); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word span { font: 600 1.45rem/1 var(--display); }
.brand-word small { font: 600 .66rem/1.3 var(--ui); letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.nav { display: flex; gap: 4px; }
.nav a { color: inherit; text-decoration: none; font-weight: 600; font-size: .92rem; padding: .55em .8em; border-radius: 999px; transition: background-color .2s; }
.nav a:hover { background: rgba(201, 162, 74, .16); }
.langpick { position: relative; }
.langpick-btn { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 .8em; border-radius: 999px; border: 1px solid currentColor; background: none; color: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; opacity: .9; }
.langpick-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.langpick-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: min(300px, 86vw); max-height: min(70svh, 520px); overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px; background: var(--paper); color: var(--ink); border-radius: 14px; box-shadow: var(--shadow); }
.langpick-menu[hidden] { display: none; }
.langpick-menu a { color: inherit; text-decoration: none; padding: .55em .7em; border-radius: 8px; font-size: .92rem; }
.langpick-menu a:hover, .langpick-menu a[aria-current] { background: var(--rose-light); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span:not(.sr) { position: absolute; inset-inline: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s; }
.menu-btn span:nth-child(1) { top: 17px; } .menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 899px) {
  .menu-btn { display: block; }
  .langpick-btn span { display: none; }
  .langpick-btn { width: 40px; padding: 0; justify-content: center; }
  .nav { position: fixed; inset: calc(var(--bar-h) + env(safe-area-inset-top)) 0 auto; flex-direction: column; gap: 0; padding: 8px var(--gut) 18px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility 0s .25s; }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .nav a { padding: .9em .4em; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
}

/* ---------- Section heads ---------- */
section { position: relative; }
.head { text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 5vw, 52px); }
.eyebrow { font: 600 .76rem/1.4 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--rose); margin-bottom: .9em; }
.head h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
.head .lead { color: var(--ink-soft); margin-top: 1em; font-size: 1.08rem; }
.rule { display: block; width: 120px; height: 14px; margin: 18px auto 0; background:
  radial-gradient(circle at 50% 50%, var(--gold) 0 3.5px, transparent 4px),
  linear-gradient(var(--gold), var(--gold)) 0 50% / 100% 1px no-repeat; transform-origin: 50% 50%; }
.on-dark .eyebrow { color: var(--gold); }
.on-dark h2 { color: var(--paper); }
.on-dark .lead { color: rgba(236, 217, 164, .82); }
[lang="ja"] .eyebrow, [lang^="zh"] .eyebrow, [lang="ko"] .eyebrow, [dir="rtl"] .eyebrow { letter-spacing: .04em; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate;
  padding: calc(var(--bar-h) + env(safe-area-inset-top) + 28px) 0 72px;
  color: var(--gold-light);
  background: radial-gradient(120% 80% at 70% 40%, #17504f 0%, var(--mantle) 45%, var(--mantle-deep) 100%);
}
.hero-sky { position: absolute; inset: 0; z-index: -1; }
.star { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 6px var(--gold); opacity: .55; animation: twinkle 5.5s ease-in-out var(--d) infinite; }
@keyframes twinkle { 50% { opacity: .12; } }
.petals { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.petals i { position: absolute; top: -40px; left: calc(54% + var(--i) * 5%); width: 14px; height: 18px; border-radius: 70% 0 70% 0; background: linear-gradient(135deg, #d24a5e, var(--rose)); opacity: 0; animation: fall calc(14s + var(--i) * 1.7s) linear calc(var(--i) * -2.3s) infinite; }
@keyframes fall {
  0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; }
  8% { opacity: .75; }
  90% { opacity: .6; }
  100% { transform: translate3d(60px, 110svh, 0) rotate(520deg); opacity: 0; }
}
.hero.is-off .petals i, .hero.is-off .star { animation-play-state: paused; }
@media (max-width: 899px) { .petals i { left: calc(2% + var(--i) * 1.5%); } .petals i:nth-child(even) { left: calc(98% - var(--i) * 1.5%); } }
[dir="rtl"] .petals { transform: scaleX(-1); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero-copy { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--gold); }
.hero-title { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5rem); line-height: 1.02; color: var(--paper); }
.hero-title em { display: block; font-style: italic; font-weight: 500; color: var(--gold-light); font-size: .74em; margin-top: .18em; }
.hero-lead { margin-top: 1.3em; max-width: 40ch; font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); color: rgba(236, 217, 164, .9); }
.hero-status { display: flex; align-items: center; gap: 12px; margin-top: 1.6em; padding: 14px 18px; max-width: 520px; border: 1px solid rgba(201, 162, 74, .35); border-radius: 14px; background: rgba(8, 38, 39, .45); }
.hero-status strong { color: var(--paper); }
.pulse { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(201, 162, 74, .6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(201, 162, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 162, 74, 0); } }
.count { display: flex; align-items: center; gap: 14px; }
.count-n { flex: none; white-space: nowrap; overflow-wrap: normal; font: 600 clamp(2.6rem, 2rem + 2vw, 3.6rem)/1 var(--display); color: var(--gold); font-variant-numeric: lining-nums tabular-nums; min-width: 2ch; text-align: center; }
.count-t { font-size: .98rem; line-height: 1.4; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8em; }

.mandorla { position: relative; margin: 0; aspect-ratio: 1 / 1.12; width: 100%; max-width: 520px; justify-self: center; display: grid; place-items: center; }
.rays { position: absolute; inset: -18% -14%; width: 128%; height: 136%; max-width: none; fill: var(--gold); opacity: .9; animation: turn 240s linear infinite; }
.ray { transform-box: view-box; }
@keyframes turn { to { transform: rotate(360deg); } }
.halo { position: absolute; inset: 6% 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 233, 170, .55), rgba(201, 162, 74, .18) 60%, transparent); filter: blur(2px); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.05); opacity: .8; } }
.tilma-img { position: relative; width: 62%; aspect-ratio: 640 / 900; border-radius: 50% / 46%; overflow: hidden; box-shadow: 0 0 0 2px rgba(201, 162, 74, .6), 0 30px 80px -20px rgba(0, 0, 0, .6); }
.tilma-img picture, .tilma-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.scroll-cue { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid rgba(236, 217, 164, .6); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-light); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } 61% { transform: none; opacity: 0; } }

@media (max-width: 899px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .mandorla { order: 1; max-width: min(58vw, 300px, 34svh); margin-bottom: 4px; }
  .hero { padding-top: calc(var(--bar-h) + env(safe-area-inset-top) + 8px); align-items: flex-start; }
  .hero-title { font-size: clamp(2.1rem, 1.2rem + 4.5vw, 3.4rem); }
  .hero-lead, .hero-status { margin-inline: auto; }
  .hero-status { text-align: start; }
  .hero-cta { justify-content: center; }
  .scroll-cue { display: none; }
}
/* Short landscape (Duo folded landscape, phones on their side): image beside, shorter */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding-bottom: 40px; }
  .hero-in { grid-template-columns: 1.3fr .7fr; text-align: start; }
  .hero-copy { order: 0; }
  .mandorla { order: 0; max-width: min(200px, 52svh); align-self: center; }
  .hero-in { align-items: start; }
  .hero-cta { justify-content: flex-start; }
  .hero-title { font-size: 2.2rem; }
}

/* ---------- Journey ---------- */
.journey { background: linear-gradient(var(--mantle-deep), var(--mantle)); color: var(--gold-light); padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.journey-pin { position: relative; }
.journey-track { position: relative; width: 100%; }
.journey-path { position: absolute; left: 0; right: 0; top: 33px; height: 40px; width: 100%; fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 3 7; opacity: .7; }
.stations { list-style: none; margin: 0; padding: 0 var(--gut); display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 18px; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; }
.station { position: relative; padding: 76px 18px 22px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid rgba(201, 162, 74, .22); }
.station::before { content: ""; position: absolute; top: 44px; inset-inline-start: 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 0 4px var(--mantle), 0 0 0 5px rgba(201, 162, 74, .6); }
.station.is-now { background: rgba(201, 162, 74, .12); border-color: var(--gold); }
.station.is-past { opacity: .6; }
.station-n { position: absolute; top: 14px; inset-inline-end: 16px; font: 500 italic 1.6rem/1 var(--display); color: rgba(236, 217, 164, .5); }
.station h3 { font-size: 1.55rem; color: var(--paper); }
.station-dates { margin-top: .5em; font-size: .95rem; }
.station-days { font-size: .82rem; opacity: .7; margin-top: .2em; }
.station-tag { display: inline-block; margin-top: .7em; padding: .15em .7em; border-radius: 999px; background: var(--gold); color: var(--mantle-deep); font-weight: 600; font-size: .78rem; }
.station-link { display: inline-block; margin-top: 1em; color: var(--gold); font-weight: 600; font-size: .9rem; }
@media (max-width: 1023px) {
  .journey-path { display: none; }
  .stations { grid-template-columns: 1fr; gap: 0; max-width: 640px; padding-inline-start: calc(var(--gut) + 28px); }
  .stations::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: calc(var(--gut) + 8px); width: 2px; background: linear-gradient(var(--gold), rgba(201, 162, 74, .2)); transform-origin: top; transform: scaleY(var(--draw, 1)); }
  .stations { position: relative; }
  .station { padding: 18px 18px 20px; margin-bottom: 14px; }
  .station::before { top: 22px; inset-inline-start: -29px; }
  .station-n { top: 18px; }
}
/* Pinned and sideways only where there is room for it */
@media (min-width: 1024px) and (min-height: 560px) {
  html.motion .journey-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--bar-h) + 10px) 20px; }
  html.motion .journey { padding-block: 0; }
}

/* ---------- Calendar ---------- */
.calendar { padding: clamp(72px, 9vw, 120px) 0; background: var(--parchment); }
.ribbon { position: relative; display: flex; align-items: stretch; gap: 3px; margin-bottom: 26px; padding-top: 22px; }
.ribbon-band { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 10px 9px; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--rc) 18%, var(--paper)); border-top: 4px solid var(--rc); text-align: start; cursor: pointer; transition: transform .25s, background-color .25s; }
.ribbon-band:hover { background: color-mix(in srgb, var(--rc) 30%, var(--paper)); transform: translateY(-2px); }
.rb-name { font-weight: 600; font-size: .86rem; line-height: 1.2; }
.rb-dates { font-size: .74rem; color: var(--ink-soft); line-height: 1.25; }
.ribbon-today { position: absolute; top: 0; width: 0; height: 22px; }
.ribbon-today::after { content: ""; position: absolute; top: 12px; left: -6px; border: 6px solid transparent; border-top-color: var(--rose); }
.ribbon-today span { position: absolute; top: 0; left: 0; translate: -50% 0; font: 600 .72rem/1 var(--ui); color: var(--rose); white-space: nowrap; }
@media (max-width: 699px) {
  .ribbon { overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-snap-type: x proximity; }
  .ribbon::-webkit-scrollbar { display: none; }
  .ribbon-band { flex: 0 0 auto !important; min-width: 132px; scroll-snap-align: start; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: .4em .95em; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: .9rem; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
@media (max-width: 699px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
.chip .dot { width: 10px; height: 10px; border-radius: 50%; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.rail { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 2px 6px; margin-bottom: 14px; scroll-snap-type: x proximity; }
.rail::-webkit-scrollbar { display: none; }
.rail-m { flex: 0 0 auto; position: relative; display: grid; justify-items: center; min-width: 58px; padding: 8px 8px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; background: var(--paper); border: 1px solid var(--line); scroll-snap-align: center; transition: background-color .25s, color .25s, border-color .25s, transform .25s; }
.rail-m::after { content: ""; position: absolute; inset-inline: 12px; bottom: 5px; height: 3px; border-radius: 2px; background: var(--rc); }
.rail-m:hover { transform: translateY(-2px); border-color: var(--gold); }
.rm-name { font-weight: 600; font-size: .9rem; }
.rm-year { font-size: .7rem; color: var(--ink-soft); }
.rm-n { position: absolute; top: -6px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--rose); color: #fff; font: 600 .7rem/20px var(--ui); text-align: center; }
.rm-n:empty { display: none; }
.rail-m.is-today { border-color: var(--rose); }
.rail-m.is-open { background: var(--mantle); color: var(--paper); border-color: var(--mantle); }
.rail-m.is-open .rm-year { color: var(--gold-light); }

.months { display: grid; gap: 22px; }
.month { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
html.js .month[data-collapsed] { display: none; }
html.js .months.is-all .month[data-collapsed] { display: block; }
.month-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.month-head h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); text-align: center; flex: 1; }
.month-head h3 span { color: var(--ink-soft); font-weight: 500; }
.month-step { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); transition: background-color .2s; }
.month-step:hover { background: var(--rose-light); }
.month-step svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .month-step svg { transform: scaleX(-1); }
.month-step[aria-disabled="true"] { opacity: .25; pointer-events: none; }
.months.is-all .month-step { visibility: hidden; }
.month-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.grid { padding: 12px 14px 18px; }
@media (min-width: 900px) { .day { aspect-ratio: auto; height: 58px; } }
.wd, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.wd span { text-align: center; font-size: .74rem; font-weight: 600; color: var(--ink-soft); padding: 6px 0; text-transform: uppercase; letter-spacing: .04em; overflow: hidden; }
.day { position: relative; width: 100%; aspect-ratio: 1 / .9; min-height: 40px; border: 0; border-radius: 10px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-variant-numeric: tabular-nums; cursor: default; }
.day.in-window { background: color-mix(in srgb, var(--rc) 16%, transparent); }
.day.in-window.is-past { opacity: .55; }
.day.has-visit { cursor: pointer; font-weight: 600; background: color-mix(in srgb, var(--rc, var(--rose)) 30%, transparent); }
.day.has-visit:hover { background: color-mix(in srgb, var(--rc, var(--rose)) 45%, transparent); }
.day.is-today { box-shadow: inset 0 0 0 2px var(--rose); }
.day.is-today .dn { color: var(--rose); font-weight: 700; }
.day.is-selected { background: var(--mantle); color: var(--paper); }
.day.is-dim { opacity: .25; }
.dn { font-size: .95rem; line-height: 1; }
.dots { display: flex; gap: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--paper); }
.agenda { padding: 16px 18px 20px; border-inline-start: 1px solid var(--line); background: linear-gradient(var(--paper), #fbf6ec); }
.visits { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.visit { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); border-inline-start: 4px solid var(--rc); transition: transform .25s, box-shadow .25s, opacity .25s; }
.visit.is-hl { box-shadow: 0 0 0 2px var(--gold); transform: translateX(4px); }
[dir="rtl"] .visit.is-hl { transform: translateX(-4px); }
.visit.has-detail { cursor: pointer; }
.v-date { grid-column: 1 / -1; font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--rose); text-transform: uppercase; }
.v-parish { font: 600 1.18rem/1.2 var(--display); }
.v-city { grid-column: 1; font-size: .88rem; color: var(--ink-soft); }
.v-dir { grid-column: 2; grid-row: 2 / span 2; align-self: center; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.badge { display: inline-block; padding: .05em .55em; border-radius: 999px; background: var(--rose-light); color: var(--rose-dark); font: 600 .7rem/1.6 var(--ui); vertical-align: middle; }
.window { padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--rc, var(--gold)) 12%, var(--paper)); border-inline-start: 4px solid var(--rc, var(--gold)); }
.window + .window { margin-top: 10px; }
.w-name { font: 600 1.3rem/1.2 var(--display); }
.w-dates { font-size: .9rem; font-weight: 600; margin-top: .2em; }
.w-note { font-size: .92rem; color: var(--ink-soft); margin-top: .5em; }
.w-link { display: inline-block; margin-top: .7em; font-weight: 600; font-size: .9rem; }
.agenda-empty { color: var(--ink-soft); font-size: .92rem; padding: 8px 2px; }
.months-toggle { display: flex; justify-content: center; margin-top: 22px; }
.months-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s; }
.months-toggle [aria-expanded="true"] svg { transform: rotate(180deg); }
.months-toggle .n { color: var(--ink-soft); font-weight: 400; }
html:not(.js) .months-toggle { display: none; }
@media (max-width: 899px) {
  .month-body { grid-template-columns: 1fr; }
  .agenda { border-inline-start: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 380px) {
  .grid { padding-inline: 8px; }
  .wd, .days { gap: 2px; }
  .dn { font-size: .88rem; }
}

/* Parish search */
.parish-search { max-width: 680px; margin: clamp(40px, 6vw, 64px) auto 0; padding: clamp(20px, 3vw, 30px); border-radius: var(--r); background: var(--mantle); color: var(--gold-light); box-shadow: var(--shadow); }
.ps-label { display: block; font: 600 clamp(1.4rem, 1.2rem + .8vw, 1.8rem)/1.2 var(--display); color: var(--paper); margin-bottom: 14px; }
.ps-box { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px; background: var(--paper); color: var(--ink); }
.ps-box svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--ink-soft); stroke-width: 2; }
.ps-box input { flex: 1; min-width: 0; min-height: 52px; border: 0; background: none; font: 400 1.05rem var(--ui); color: var(--ink); outline: none; }
.ps-help { font-size: .9rem; margin-top: 10px; opacity: .85; }
.ps-suggest { list-style: none; margin: 8px 0 0; padding: 6px; border-radius: 12px; background: var(--paper); color: var(--ink); max-height: 300px; overflow: auto; }
.ps-suggest li { padding: .65em .8em; border-radius: 8px; cursor: pointer; }
.ps-suggest li:hover, .ps-suggest li[aria-selected="true"] { background: var(--rose-light); }
.ps-result { margin-top: 14px; }
.ps-card { padding: 16px 18px; border-radius: 12px; background: var(--paper); color: var(--ink); }
.ps-card .btn { margin-top: 10px; }
.ps-invite-form { display: grid; gap: 8px; margin-top: 10px; }
.ps-invite-form input { min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }

/* ---------- Pastors ---------- */
.pastors { padding: clamp(72px, 9vw, 120px) 0; background: linear-gradient(var(--parchment), #f6eee0); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps li { padding: 26px 22px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mantle); color: var(--gold-light); font: 600 1.4rem/1 var(--display); margin-bottom: 14px; }
.steps h3 { font-size: 1.5rem; margin-bottom: .35em; }
.steps p { color: var(--ink-soft); }
.pastors-cta { text-align: center; margin-top: 30px; }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- Story ---------- */
.story { padding: clamp(80px, 10vw, 140px) 0; background: radial-gradient(90% 70% at 50% 0%, #fbe6dc, var(--parchment) 70%); overflow: hidden; }
.story-in { position: relative; }
.beats { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: clamp(24px, 4vw, 40px); }
.beats li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: baseline; }
.beat-n { font: 500 italic 2.4rem/1 var(--display); color: var(--gold); text-align: end; }
.beats p { font: 500 clamp(1.3rem, 1.1rem + .9vw, 1.75rem)/1.4 var(--display); }
.story-jd { width: 150px; height: auto; margin: 36px auto 0; }

/* ---------- Events and cards ---------- */
.events { padding: clamp(72px, 9vw, 110px) 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.card { padding: 24px 22px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.card.has-detail { cursor: pointer; }
.card.has-detail:hover { transform: translateY(-4px); }
.card h3 { font-size: 1.6rem; }
.card-date { font-weight: 600; color: var(--rose); font-size: .86rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .4em; }
.card-time, .card-place, .card-addr { color: var(--ink-soft); font-size: .95rem; margin-top: .3em; }
.card.on-dark { background: rgba(255, 255, 255, .05); border-color: rgba(201, 162, 74, .3); color: var(--gold-light); box-shadow: none; }
.card.on-dark h3 { color: var(--paper); }
.card.on-dark p { margin: .5em 0 1.1em; opacity: .9; }

/* ---------- Map ---------- */
.routemap { padding: clamp(72px, 9vw, 110px) 0; background: var(--parchment); }
.route-caption { text-align: center; margin-bottom: 14px; color: var(--ink-soft); }
.route-datebar { display: flex; align-items: center; gap: 12px; max-width: 720px; margin: 0 auto 14px; }
.route-datebar input { flex: 1; accent-color: var(--rose); }
.route-datelabel { min-width: 9ch; font-size: .9rem; font-weight: 600; }
.route-map { height: clamp(320px, 56svh, 560px); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #ece6da; }
.routemap.is-empty .route-datebar, .routemap.is-empty .route-map { display: none; }

/* ---------- Involve, contact, footer ---------- */
.involve { padding: clamp(72px, 9vw, 120px) 0; background: radial-gradient(100% 90% at 50% 0%, #17504f, var(--mantle) 50%, var(--mantle-deep)); }
.contact { padding: clamp(64px, 8vw, 100px) 0; text-align: center; }
.contact h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }
.contact-who { margin-top: 18px; font-size: 1.1rem; line-height: 1.8; }
.foot { padding: 40px 0 calc(110px + env(safe-area-inset-bottom)); background: var(--mantle-deep); color: rgba(236, 217, 164, .8); text-align: center; font-size: .9rem; }
.foot a { color: var(--gold-light); }
.foot-logos { display: flex; justify-content: center; margin-bottom: 16px; }
.foot-logos img { height: 56px; width: auto; filter: brightness(0) invert(.9) sepia(.3); opacity: .85; }

/* ---------- Modal ---------- */
.ev-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.ev-modal[hidden] { display: none; }
.ev-modal-backdrop { position: absolute; inset: 0; background: rgba(8, 38, 39, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ev-modal-panel { position: relative; width: min(620px, 100%); max-height: 86svh; overflow: auto; padding: 28px 24px; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.ev-modal-close { position: absolute; top: 10px; inset-inline-end: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font-size: 1.6rem; cursor: pointer; }
.ev-modal-body h3 { font-size: 1.9rem; padding-inline-end: 40px; }
.ev-meta { color: var(--ink-soft); margin: .6em 0 1em; }
.ev-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 14px; }
.ev-media img { border-radius: 10px; }
@media (max-width: 599px) {
  .ev-modal { place-items: end stretch; padding: 0; }
  .ev-modal-panel { border-radius: var(--r) var(--r) 0 0; max-height: 88svh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* ---------- San Juan Diego ---------- */
.jd-walk-track { position: fixed; inset-inline: 0; bottom: env(safe-area-inset-bottom); height: 78px; z-index: 30; pointer-events: none; overflow: hidden; }
.jd-walker { position: absolute; bottom: 0; left: 0; height: 100%; width: auto; visibility: hidden; }
@media (max-width: 599px), (max-height: 620px) { .jd-walk-track { height: 52px; } }

/* ---------- Reduced motion: fully static ---------- */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-forced) *, html:not(.motion-forced) *::before, html:not(.motion-forced) *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html:not(.motion-forced) .petals, html:not(.motion-forced) .jd-walk-track, html:not(.motion-forced) .scroll-cue span { display: none; }
}

/* =====================================================================
   Secondary pages (host, petition, invite): one quiet header band, one sheet
   ===================================================================== */
.page { background: var(--parchment); }
.page-top { position: relative; overflow: hidden; isolation: isolate; padding: calc(18px + env(safe-area-inset-top)) 0 clamp(64px, 9vw, 96px); text-align: center; color: var(--gold-light); background: radial-gradient(120% 120% at 50% 0%, #17504f, var(--mantle) 55%, var(--mantle-deep)); }
.page-rays { position: absolute; z-index: -1; left: 50%; top: 100%; width: min(900px, 160vw); height: auto; translate: -50% -50%; fill: var(--gold); opacity: .22; animation: turn 300s linear infinite; }
.page-top .brand { justify-content: center; margin: 0 auto 26px; width: max-content; color: var(--gold-light); }
.page-top .eyebrow { color: var(--gold); }
.page-top h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); color: var(--paper); max-width: 20ch; margin-inline: auto; }
.sheet-wrap { max-width: calc(760px + 2 * var(--gut)); margin-top: -44px; position: relative; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.sheet { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 36px); }
.sheet h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); margin-bottom: .4em; }
.sheet-lead { color: var(--ink-soft); margin: .5em 0 1.2em; }
.sheet-parish { font: 600 clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem)/1.15 var(--display); }
.sheet-parish span { display: block; font: 400 1rem/1.5 var(--ui); color: var(--ink-soft); margin-top: .2em; }
.sheet-window { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: .4em .9em; border-radius: 999px; background: color-mix(in srgb, var(--rc) 16%, var(--paper)); font-weight: 600; font-size: .92rem; }
.sheet-window .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rc); flex: none; }
.sheet-done { text-align: center; }
.sheet-done .sheet-lead { max-width: 46ch; margin-inline: auto; }
.done-mark { width: 120px; height: 120px; margin: 0 auto 16px; fill: var(--gold); }
.done-mark circle { fill: var(--mantle); }
.done-mark .tick { fill: none; stroke: var(--gold-light); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.page-foot { text-align: center; color: var(--ink-soft); font-size: .9rem; margin-top: 22px; }
.form-err { padding: 12px 14px; border-radius: 12px; background: #fbe9e9; border: 1px solid #f0c4c4; color: #7c1728; margin-bottom: 16px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* Fields */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 22px; }
.fld { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.fld-wide { grid-column: 1 / -1; }
.fld input, .fld textarea, .fld select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fffefb; font: 400 1rem var(--ui); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.fld textarea { min-height: 110px; resize: vertical; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 74, .2); }
.btn-wide { width: 100%; margin-top: 22px; min-height: 54px; font-size: 1.05rem; }
@media (max-width: 599px) { .fields { grid-template-columns: 1fr; } }

/* Date picker: the home calendar's look, one month at a time */
.picker { border: 0; margin: 18px 0 0; padding: 0; min-width: 0; }
.picker legend { font: 600 1.35rem/1.2 var(--display); margin-bottom: 10px; padding: 0; }
.pick-months { border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 16px; background: #fffefb; }
html.js .pick-month[data-collapsed] { display: none; }
.pick-month + .pick-month { margin-top: 18px; }
html.js .pick-month + .pick-month { margin-top: 0; }
.pick-title { text-align: center; font: 600 1.5rem/1.2 var(--display); margin: 2px 0 8px; }
.pick-title span { color: var(--ink-soft); font-weight: 500; }
.picker .day { aspect-ratio: 1 / .86; height: auto; }
.day.pick { cursor: pointer; background: color-mix(in srgb, var(--gold) 16%, transparent); font-weight: 600; transition: background-color .2s, color .2s, transform .2s; }
.day.pick:hover { background: color-mix(in srgb, var(--gold) 32%, transparent); }
.day.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.day.pick:has(input:checked) { background: var(--rose); color: #fff; transform: scale(1.06); }
.day.pick:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.day.is-taken { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(107, 95, 87, .6); }
.pick-key { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); margin-top: 10px; }
.pick-key .k { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.k-free { background: color-mix(in srgb, var(--gold) 30%, transparent); }
.k-taken { background: var(--line); margin-inline-start: 10px; }
.pick-chosen { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--rose-light); color: var(--rose-dark); }
.pick-other { margin-top: 12px; font-size: .95rem; }
.pick-other summary { cursor: pointer; color: var(--rose); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.pick-other-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; }
.pick-other-row input[type=date] { min-height: 46px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.rm-free { font-size: .68rem; color: var(--ink-soft); }
.rail-m.is-open .rm-free { color: var(--gold-light); }
@media (min-width: 900px) { .picker .day { aspect-ratio: auto; height: 52px; } }
.sheet-lead-lg { font: 500 clamp(1.25rem, 1.1rem + .6vw, 1.55rem)/1.45 var(--display); color: var(--ink); margin-top: 0; }
.count { justify-self: end; font-weight: 400; font-size: .8rem; color: var(--ink-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rose); flex: none; }
.privacy { font-size: .82rem; color: var(--ink-soft); margin-top: 14px; }
.page-back { text-align: center; margin-top: 18px; }
/* A single candle over the petition page: the flame breathes, nothing else moves */
.candle { position: absolute; z-index: -1; left: 50%; bottom: 0; translate: -50% 0; width: 14px; height: 70px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, #efe4cc, #fffaf0 45%, #e2d4b6); opacity: .9; }
.flame { position: absolute; left: 50%; bottom: 100%; width: 14px; height: 26px; margin-left: -7px; border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%; background: radial-gradient(ellipse at 50% 70%, #fff6d0 0 25%, #ffd36b 45%, rgba(255, 160, 60, .0) 75%); transform-origin: 50% 90%; animation: flicker 3.2s ease-in-out infinite; filter: drop-shadow(0 0 14px rgba(255, 200, 100, .8)); }
@keyframes flicker { 25% { transform: scale(1.04, .96) rotate(-2deg); } 50% { transform: scale(.96, 1.06) rotate(1.5deg); } 75% { transform: scale(1.02, .98) rotate(-1deg); } }
.page-prayer .page-top { padding-bottom: clamp(110px, 14vw, 140px); }
.page-prayer .sheet-wrap { margin-top: -30px; }

/* =====================================================================
   Pieces guadalupela uses (the Tilma page simply has none of them)
   ===================================================================== */
.hero-theme { margin-top: 1em; font: 500 italic clamp(1.15rem, 1rem + .6vw, 1.45rem)/1.35 var(--display); color: var(--gold-light); }
.hero-juandiego { position: absolute; z-index: 3; bottom: -2%; inset-inline-start: -6%; height: 46%; width: auto; opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s; pointer-events: none; }
.hero-juandiego.is-shown { opacity: 1; visibility: visible; transition: opacity .6s; }
.day.is-feast { background: var(--rose); color: #fff; font-weight: 700; cursor: default; }
.visit.is-past { opacity: .55; }
.visit-feast { background: color-mix(in srgb, var(--rose) 8%, var(--paper)); }
.badge-gold { background: color-mix(in srgb, var(--gold) 30%, var(--paper)); color: var(--ink); }
.rail-m.is-past:not(.is-open) { opacity: .55; }
.station-finale { background: rgba(155, 31, 51, .22); border-color: rgba(236, 217, 164, .5); }
.station-finale .station-n { color: var(--gold); font-style: normal; }
.card-more, .me-more { margin-top: .8em; color: var(--rose); font-weight: 600; font-size: .9rem; }
.contact-lead { margin-top: 14px; color: var(--ink-soft); }
.visit-count { font: 600 1.1rem var(--display); color: var(--gold-light); margin-bottom: 14px; }
.foot-logos { gap: 28px; }
.foot-small { opacity: .75; font-size: .82rem; margin-top: 6px; }

/* The main event: one wide card, rays behind, San Juan Diego opening the tilma */
.main-event { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; margin-bottom: 22px; padding: clamp(26px, 4vw, 48px); border-radius: calc(var(--r) + 6px); color: var(--gold-light); background: radial-gradient(90% 120% at 80% 100%, #17504f, var(--mantle) 55%, var(--mantle-deep)); box-shadow: var(--shadow); }
.main-event.has-detail { cursor: pointer; }
.me-rays { position: absolute; z-index: -1; width: 720px; height: 720px; right: -140px; bottom: -360px; fill: var(--gold); opacity: .18; animation: turn 240s linear infinite; }
[dir="rtl"] .me-rays { right: auto; left: -140px; }
.main-event .eyebrow { color: var(--gold); }
.main-event h3 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); color: var(--paper); }
.me-date { font: 500 italic 1.4rem/1.3 var(--display); margin-top: .3em; }
.me-times { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.me-times p { display: grid; padding: 10px 18px; border-radius: 14px; border: 1px solid rgba(201, 162, 74, .4); background: rgba(8, 38, 39, .4); }
.me-times span { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.me-times strong { font: 600 1.6rem/1.2 var(--display); color: var(--paper); }
.me-place { font-weight: 600; color: var(--paper); }
.me-addr { opacity: .85; }
.me-figure { height: clamp(180px, 22vw, 280px); width: auto; }
@media (max-width: 699px) { .main-event { grid-template-columns: 1fr; } .me-figure { justify-self: center; height: 170px; } }

/* Posters */
.posters { padding: clamp(72px, 9vw, 110px) 0; background: linear-gradient(#f6eee0, var(--parchment)); }
.poster-grid { align-items: start; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.5vw, 26px); }
.poster-card { display: grid; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); cursor: pointer; text-align: center; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.poster-card:hover { transform: translateY(-6px); }
.poster-thumb { display: block; overflow: hidden; }
.poster-thumb img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.poster-card:hover .poster-thumb img { transform: scale(1.04); }
.poster-card .cap { padding: 12px 14px 16px; font: 500 italic 1.15rem/1.3 var(--display); color: var(--ink-soft); }
.posters-cta { text-align: center; margin-top: 28px; }
@media (max-width: 699px) { .poster-grid { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gut)); padding: 4px var(--gut) 12px; scrollbar-width: none; } .poster-card { scroll-snap-align: center; } }
.poster-modal { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 16px; }
.poster-modal[hidden] { display: none; }
.pmod-backdrop { position: absolute; inset: 0; background: rgba(8, 38, 39, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pmod-dialog { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(560px, 100%); max-height: 92svh; border-radius: var(--r); background: var(--paper); overflow: hidden; box-shadow: var(--shadow); }
.pmod-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); }
.pmod-title { font: 600 1.3rem var(--display); }
.pmod-x { width: 44px; height: 44px; border: 0; background: none; font-size: 1.6rem; cursor: pointer; border-radius: 50%; }
.pmod-stage { overflow: auto; padding: 12px; background: #efe8da; }
.pmod-canvas { position: relative; width: 100%; overflow: hidden; }
.pmod-canvas iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; }
.pmod-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.pmod-langwrap { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.pmod-langwrap select { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; background: #fffefb; }

/* San Juan Diego's tap-to-see-the-miracle (guadalupela) */
.jd-walk-track[data-own] { pointer-events: none; }
.jd-walk-track[data-own] .jd-walker { pointer-events: auto; cursor: pointer; will-change: transform; }
.jd-walk-track.revealing { overflow: visible; }
.jd-miracle { position: absolute; left: 0; bottom: 0; height: 100%; width: auto; visibility: hidden; opacity: 0; transform: scale(.9); transform-origin: bottom center; transition: opacity .3s, transform .3s; pointer-events: none; }
.jd-miracle.show { opacity: 1; transform: none; }
