/* Vägen — "sixty stadia". Ink on limestone, the ochre of a dry road, olive, and one ember.
   Colours and type live in theme.json; this file is the road, the passes, the veil and the living blocks. */

:root { --vg-ink: #17191f; --vg-night: #10131c; --vg-lime: #ebe8e1; --vg-chalk: #f7f5f0; --vg-road: #c39a5c; --vg-olive: #4f5b35; --vg-ember: #a5442c; --vg-mute: #5a5c63; --vg-head: 76px; }
html, body { overflow-x: clip; } /* full-width scenes use 100vw, which includes the scrollbar */
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .wp-block-heading { text-wrap: balance; }
p, li { text-wrap: pretty; }
.vg-nb { white-space: nowrap; }
.vg-small { font-size: .9rem; color: var(--vg-mute); }
:focus-visible { outline: 2px solid var(--vg-road); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.vg-head-wrap { position: fixed; z-index: 100; top: 0; left: 0; right: 0; }
.admin-bar .vg-head-wrap { top: 32px; }
.vg-head { color: var(--vg-chalk); transition: background .35s, box-shadow .35s; background: linear-gradient(180deg, rgba(16, 19, 28, .7), rgba(16, 19, 28, 0)); }
.vg-head { padding-left: clamp(1rem, 4vw, 3rem) !important; padding-right: clamp(1rem, 4vw, 3rem) !important; }
.wp-block-cover .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--vg-road); color: var(--vg-ink); }
.wp-block-cover .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: #d4ad70; }
.wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link { color: var(--vg-chalk); border-color: rgba(247, 245, 240, .7); }
body:not(.vg-over-hero) .vg-head, .vg-head.is-solid { background: rgba(16, 19, 28, .97); box-shadow: 0 1px 0 rgba(195, 154, 92, .25); }
.vg-head a, .vg-head .wp-block-site-title a { color: var(--vg-chalk); text-decoration: none; }
.vg-head .vg-sub { margin: 0; color: var(--vg-road); }
.vg-head .wp-block-navigation-item__content { padding: .3rem 0; border-bottom: 1px solid transparent; }
.vg-head .wp-block-navigation-item__content:hover, .vg-head .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: var(--vg-road); }
.vg-head .wp-block-navigation__submenu-container { background: var(--vg-night) !important; border: 0 !important; border-top: 1px solid var(--vg-road) !important; padding: .4rem 0 !important; }
.vg-head .wp-block-navigation__submenu-container a { padding: .55rem 1.1rem !important; color: var(--vg-chalk) !important; }
.vg-head .wp-block-navigation__submenu-container a:hover { color: var(--vg-road) !important; background: rgba(255, 255, 255, .04); }
.vg-head .wp-block-navigation-submenu__toggle { color: inherit; }
.vg-head .wp-block-navigation__responsive-container.is-menu-open { background: var(--vg-night) !important; color: var(--vg-chalk) !important; padding: 2rem 1.5rem; }
.vg-head .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font: 400 1.9rem/1.2 "EB Garamond", Georgia, serif; }
/* the menu folds into its button below 1000px (WordPress itself only does so below 600px) */
@media (max-width: 1000px) {
  .vg-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
  .vg-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
.vg-head .wp-block-navigation__responsive-container-open, .vg-head .wp-block-navigation__responsive-container-close { color: var(--vg-chalk); }
body:not(.vg-over-hero) .vg-main { padding-top: calc(var(--vg-head) + 1rem); }
.vg-main { margin-top: 0 !important; }

/* ---------- The road in the margin ---------- */
.vg-road { position: fixed; z-index: 90; left: clamp(10px, 1.6vw, 28px); top: calc(var(--vg-head) + 34px); bottom: 30px; width: 14px; pointer-events: none; --p: 0;
  font: 600 10px/1 Manrope, sans-serif; color: var(--vg-road); }
.vg-road-from, .vg-road-to { position: absolute; left: 14px; padding: 3px 6px; white-space: nowrap; font-size: 10.5px; letter-spacing: .04em; color: var(--vg-road); background: rgba(16, 19, 28, .78); border-radius: 2px; transition: opacity .3s, background .3s, color .3s; }
.vg-road-from { top: -9px; }
.vg-road-to { bottom: -9px; }
.vg-road.is-start .vg-road-km, .vg-road.is-there .vg-road-km { opacity: 0; }
.vg-road-km { transition: opacity .3s; }
.vg-road.is-there .vg-road-to { background: var(--vg-road); color: var(--vg-ink); }
.vg-road-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, rgba(195, 154, 92, .55) 0 3px, transparent 3px 11px); }
.vg-road-walked { position: absolute; left: 0; top: 0; width: 2px; height: calc(var(--p) * 100%); background: var(--vg-road); }
.vg-road-you { position: absolute; left: 50%; top: calc(var(--p) * 100%); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff3d6;
  box-shadow: 0 0 0 3px rgba(195, 154, 92, .45), 0 0 16px 4px rgba(195, 154, 92, .55); }
.vg-road-km { position: absolute; left: 18px; top: calc(var(--p) * 100%); transform: translateY(-50%); white-space: nowrap; padding: 3px 6px; background: rgba(16, 19, 28, .78); color: var(--vg-chalk); border-radius: 2px; font-size: 10.5px; }
.vg-road.is-there .vg-road-you { background: var(--vg-road); box-shadow: 0 0 0 5px rgba(195, 154, 92, .35), 0 0 28px 8px rgba(195, 154, 92, .7); }
@media (max-width: 1100px) {
  .vg-road { top: auto; bottom: auto; left: 0; right: 0; height: 3px; width: auto; top: 0; }
  .admin-bar .vg-road { top: 46px; }
  .vg-road-from, .vg-road-to, .vg-road-km, .vg-road-you { display: none; }
  .vg-road-line { left: 0; right: 0; top: 0; bottom: 0; width: auto; height: 3px; transform: none; background: rgba(195, 154, 92, .25); }
  .vg-road-walked { height: 3px; width: calc(var(--p) * 100%); }
  .vg-road { z-index: 101; }
}

/* Full-width sections keep clear of the road in the margin */
.alignfull.wp-block-cover, .alignfull.wp-block-group { padding-left: clamp(1.25rem, 5vw, 4.5rem) !important; padding-right: clamp(1.25rem, 5vw, 4.5rem) !important; }
@media (min-width: 1101px) { .alignfull.wp-block-cover, .alignfull.wp-block-group, .vg-head { padding-left: max(5vw, 84px) !important; } }

/* ---------- Opening picture: the road ---------- */
.wp-block-cover.is-style-vg-road { min-height: 100vh !important; align-items: flex-end; padding-bottom: clamp(3rem, 9vh, 7rem); overflow: hidden; }
.wp-block-cover.is-style-vg-road .wp-block-cover__image-background { transform: translate3d(0, var(--drift, 0px), 0) scale(1.06); transform-origin: 50% 0; animation: vg-settle 4s cubic-bezier(.2, .6, .2, 1) forwards; will-change: transform; }
@keyframes vg-settle { from { scale: 1.07; } to { scale: 1; } }
/* the soft copy shown while the picture is on its way (set by the theme on the opening picture) */
.wp-block-cover.is-style-vg-road::before { content: ""; position: absolute; inset: -40px; background: var(--vg-lqip, none) var(--vg-lqip-pos, 50% 50%) / cover no-repeat; filter: blur(22px); z-index: 0; pointer-events: none; }
.wp-block-cover.is-style-vg-road .wp-block-cover__background { background: linear-gradient(90deg, rgba(16, 19, 28, .82) 0%, rgba(16, 19, 28, .45) 45%, rgba(16, 19, 28, .05) 75%), linear-gradient(0deg, rgba(16, 19, 28, .75), rgba(16, 19, 28, 0) 45%) !important; opacity: 1 !important; }
.wp-block-cover.is-style-vg-road h1 { color: var(--vg-chalk); max-width: 11ch; }
.wp-block-cover.is-style-vg-road h1 em { color: var(--vg-road); font-weight: 400; }
.wp-block-cover.is-style-vg-road p { color: rgba(247, 245, 240, .9); max-width: 34ch; }
.wp-block-cover.is-style-vg-road .wp-block-cover__inner-container > * { opacity: 0; transform: translateY(14px); animation: vg-rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.wp-block-cover.is-style-vg-road .wp-block-cover__inner-container > :nth-child(2) { animation-delay: .12s; }
.wp-block-cover.is-style-vg-road .wp-block-cover__inner-container > :nth-child(3) { animation-delay: .24s; }
.wp-block-cover.is-style-vg-road .wp-block-cover__inner-container > :nth-child(4) { animation-delay: .36s; }
@keyframes vg-rise { to { opacity: 1; transform: none; } }
.wp-block-cover:not(.is-style-vg-unveil) h1, .wp-block-cover:not(.is-style-vg-unveil) h2 { text-shadow: 0 2px 26px rgba(16, 19, 28, .45); }

/* ---------- "Their eyes were opened" (24:31): a veiled picture that clears ---------- */
.wp-block-cover.is-style-vg-unveil { overflow: hidden; min-height: 0 !important; height: 66.6vw; max-height: 1200px; } /* the whole 3:2 picture, nobody cut */
@media (max-width: 760px) { .wp-block-cover.is-style-vg-unveil { aspect-ratio: auto; min-height: 75vh !important; } }
.wp-block-cover.is-style-vg-unveil .wp-block-cover__image-background { filter: blur(18px) grayscale(.6) brightness(.55); transform: scale(1.12); transition: filter 1.2s ease, transform 1.6s cubic-bezier(.2, .6, .2, 1); }
.wp-block-cover.is-style-vg-unveil.is-open .wp-block-cover__image-background { filter: none; transform: scale(1); }
.wp-block-cover.is-style-vg-unveil .wp-block-cover__inner-container > * { opacity: .15; transition: opacity .9s .3s; }
.wp-block-cover.is-style-vg-unveil.is-open .wp-block-cover__inner-container > * { opacity: 1; }
.wp-block-cover.is-style-vg-unveil .wp-block-cover__background { background: linear-gradient(0deg, rgba(16, 19, 28, .8), rgba(16, 19, 28, .15) 60%) !important; opacity: 1 !important; }

/* ---------- Triptych: three moments, side by side, walked through sideways ---------- */
.is-style-vg-triptych { position: relative; }
.is-style-vg-triptych .wp-block-image img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.is-style-vg-triptych .wp-block-column > p:first-of-type { margin-top: 1rem; }
@media (max-width: 900px) {
  .is-style-vg-triptych > .wp-block-columns { flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0 !important; scrollbar-width: none; }
  .is-style-vg-triptych > .wp-block-columns::-webkit-scrollbar { display: none; }
  .is-style-vg-triptych > .wp-block-columns > .wp-block-column { flex: 0 0 100% !important; scroll-snap-align: start; padding-right: 1rem; box-sizing: border-box; }
}
@media (min-width: 901px) { .vg-tri-nav { display: none !important; } }
.vg-tri-nav { display: flex; gap: .6rem; justify-content: flex-end; margin-top: .6rem; }
.vg-tri-nav button { width: 48px; height: 48px; border: 1px solid currentColor; background: transparent; color: inherit; font-size: 1.2rem; cursor: pointer; }
.vg-tri-nav button:hover { background: var(--vg-road); border-color: var(--vg-road); color: var(--vg-ink); }

/* ---------- Pictures and verses ---------- */
.wp-block-image.is-style-vg-arch img { border-radius: 50% 50% 0 0 / 28% 28% 0 0; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 12%; width: 100%; }
.wp-block-quote.is-style-vg-verse { border-left: 2px solid var(--vg-road) !important; padding-left: 1.6rem !important; margin-left: 0; }
.wp-block-quote.is-style-vg-verse cite { display: block; margin-top: .8rem; font: normal 600 .95rem Manrope, sans-serif; color: var(--vg-road); }
.is-style-vg-waymark { position: relative; border-top: 1px solid rgba(195, 154, 92, .6); padding-top: 1.6rem !important; }
.is-style-vg-waymark::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--vg-road); }

/* ---------- Buttons and links ---------- */
.vg-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.6rem; background: var(--vg-ink); color: var(--vg-chalk) !important; font: 600 1rem Manrope, sans-serif; text-decoration: none !important; border: 0; cursor: pointer; transition: background .2s; }
.vg-btn:hover { background: var(--vg-olive); }
.vg-btn--road { background: var(--vg-road); color: var(--vg-ink) !important; }
.vg-btn--road:hover { background: #d4ad70; }
.vg-btn--line { background: transparent; color: var(--vg-ink) !important; box-shadow: inset 0 0 0 1px var(--vg-ink); }
.vg-link { font: 600 .98rem Manrope, sans-serif; color: var(--vg-ink) !important; text-decoration: underline; text-decoration-color: var(--vg-road); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 1px; }

/* ---------- Pilgrim passes ---------- */
.vg-passes { display: grid; gap: 1.6rem; }
.vg-pass { display: grid; grid-template-columns: 1fr 190px; background: var(--vg-chalk); color: var(--vg-ink); position: relative; box-shadow: 0 1px 0 rgba(23, 25, 31, .12), 0 24px 40px -34px rgba(23, 25, 31, .55); }
.vg-pass::before { content: ""; position: absolute; top: 0; bottom: 0; right: 190px; border-left: 2px dashed rgba(23, 25, 31, .25); }
.vg-pass::after { content: ""; position: absolute; right: 179px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--vg-lime); box-shadow: 0 calc(100% + 0px) 0 0 transparent; }
.vg-pass-main { padding: clamp(1.4rem, 3vw, 2.4rem); }
.vg-pass .vg-pass-kind { margin: 0 0 .4rem; font-size: .9rem; color: var(--vg-olive); font-weight: 600; }
.vg-pass .vg-pass-days { margin: 0; font: 500 clamp(3.2rem, 7vw, 5.4rem)/.9 "EB Garamond", Georgia, serif; letter-spacing: -.02em; }
.vg-pass .vg-pass-month { margin: .3rem 0 1.4rem; color: var(--vg-mute); }
.vg-pass-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem 2rem; margin: 0 0 1.5rem; padding: 1rem 0 0; border-top: 1px solid rgba(23, 25, 31, .12); }
.vg-pass-facts dt { font-size: .82rem; font-weight: 700; color: #7a5a2a; margin: 0 0 .2rem; }
.vg-pass-facts dd { margin: 0; font-size: .98rem; line-height: 1.5; }
.vg-pass-facts dd span { color: var(--vg-mute); }
.vg-pass-facts dd .vg-pc { display: block; color: var(--vg-ink); margin-bottom: .35rem; }
.vg-pass-facts dd .vg-pc a { display: block; }
.vg-pass-act { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; }
.vg-pass-stub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1.4rem; text-align: center; background: var(--vg-ink); color: var(--vg-chalk); }
.vg-pass-stub img { width: 128px; height: 128px; background: #fff; padding: 8px; filter: invert(1); } /* the QR codes are white on transparent, made for the dark flyers */
.vg-pass-stub img { background: #000; }
.vg-pass-stub small { font-size: .8rem; color: rgba(247, 245, 240, .75); }
.vg-pass .vg-pass-count { margin: 0 0 .6rem; display: grid; }
.vg-pass-count [data-days] { font: 500 3rem/1 "EB Garamond", Georgia, serif; color: var(--vg-road); }
.vg-pass--blank { background: transparent; box-shadow: inset 0 0 0 1px rgba(23, 25, 31, .25); }
.vg-pass--blank::after { background: var(--vg-lime); }
.vg-pass--blank .vg-pass-blank-h { margin: .2rem 0 .6rem; font: 500 clamp(1.7rem, 3vw, 2.4rem)/1.15 "EB Garamond", Georgia, serif; color: var(--vg-ink); max-width: 26ch; }
.vg-pass--blank .vg-pass-stub { background: rgba(23, 25, 31, .06); color: var(--vg-mute); }
.vg-pass--blank .vg-pass-count [data-days] { color: rgba(23, 25, 31, .35); }
.vg-pass--blank .vg-pass-count small { color: var(--vg-mute); }
.vg-past { margin-top: 2.5rem; }
.vg-past .vg-past-h { font-weight: 700; margin-bottom: .4rem; }
.vg-past ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(23, 25, 31, .15); }
.vg-past li { padding: .8rem 0; border-bottom: 1px solid rgba(23, 25, 31, .15); color: var(--vg-mute); }
.vg-past li b { color: var(--vg-ink); margin-right: .8rem; }
@media (max-width: 700px) {
  .vg-pass { grid-template-columns: 1fr; }
  .vg-pass::before, .vg-pass::after { display: none; }
  .vg-pass-stub { flex-direction: row; justify-content: space-between; border-top: 2px dashed rgba(247, 245, 240, .3); }
}

/* ---------- A candle for the walkers ---------- */
.vg-candle { display: grid; grid-template-columns: 180px 1fr; gap: 3rem; align-items: center; }
.vg-candle .vg-candle-h { font: 500 var(--wp--preset--font-size--x-large)/1.05 "EB Garamond", Georgia, serif; margin: 0 0 .8rem; }
.vg-candle-txt p { max-width: 52ch; }
.vg-candle .vg-candle-count { font: italic 1.4rem "EB Garamond", Georgia, serif; color: var(--vg-olive); min-height: 1.5em; margin: 1rem 0; }
.vg-candle .vg-candle-done { color: var(--vg-olive); font-weight: 600; margin-top: 1rem; }
.vg-candle-light { position: relative; width: 180px; height: 270px; justify-self: center; }
.vg-wax { position: absolute; left: 62px; bottom: 0; width: 56px; height: 180px; border-radius: 4px 4px 2px 2px; background: linear-gradient(90deg, #e3dccb, #faf7ef 40%, #d7cfbb); }
.vg-wick { position: absolute; left: 89px; bottom: 178px; width: 2px; height: 13px; background: #3a3128; }
.vg-flame { position: absolute; left: 76px; bottom: 187px; width: 28px; height: 54px; border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%; transform-origin: 50% 90%;
  background: radial-gradient(ellipse at 50% 78%, #fff 0 18%, #ffe9a8 30%, #f2ad45 58%, rgba(232, 120, 40, 0) 75%); opacity: 0; transform: scale(.2); transition: opacity .8s, transform 1s cubic-bezier(.2, 1.4, .4, 1); }
.vg-flame::after { content: ""; position: absolute; left: -46px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 140, .5), transparent 65%); }
.vg-candle.is-lit .vg-flame, .vg-candle.has-light .vg-flame { opacity: 1; transform: scale(1); animation: vg-flicker 3s ease-in-out infinite; }
@keyframes vg-flicker { 0%, 100% { transform: scale(1) rotate(-1deg); } 25% { transform: scale(1.04, .97) rotate(1.5deg); } 50% { transform: scale(.97, 1.04) rotate(-.5deg); } 75% { transform: scale(1.02) rotate(1deg); } }
@media (max-width: 700px) { .vg-candle { grid-template-columns: 1fr; gap: 1rem; } .vg-candle-light { justify-self: start; transform: scale(.75); transform-origin: left bottom; height: 210px; } }

/* ---------- The globes: no boxes — scenes in the night sky ---------- */
/* a night sky with stars, drawn by CSS (two layers twinkle slowly against each other) */
.vg-sky { background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.8), transparent 60%), radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 34%, rgba(255,244,214,.9), transparent 60%), radial-gradient(1px 1px at 63% 12%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 78% 58%, rgba(255,255,255,.6), transparent 60%), radial-gradient(1.5px 1.5px at 91% 26%, rgba(255,244,214,.85), transparent 60%),
    radial-gradient(1px 1px at 7% 84%, rgba(255,255,255,.55), transparent 60%), radial-gradient(1px 1px at 55% 88%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 36% 8%, rgba(255,255,255,.6), transparent 60%), radial-gradient(1px 1px at 86% 82%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(ellipse at 50% 50%, #1b1f2b 0%, #10131c 55%, #07080d 100%);
  background-size: 420px 420px, 380px 380px, 520px 520px, 460px 460px, 400px 400px, 560px 560px, 350px 350px, 480px 480px, 440px 440px, 500px 500px, 100% 100%; }

/* the scenes break out of the page column (WordPress layouts set auto margins with !important) */
.vg-globe, .vg-churches { width: 100vw !important; max-width: none !important; margin-left: calc(50% - 50vw) !important; margin-right: 0 !important; }

/* the world globe: full width, floating free */
.vg-globe { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: 2rem; margin-bottom: 2rem; color: var(--vg-chalk); overflow: hidden; }
.vg-globe { background-color: #10131c; }
.vg-globe-map { height: min(92vh, 900px); min-height: 520px; background: transparent !important; }
.vg-globe .maplibregl-canvas { outline: none; }
.vg-globe-legend { position: absolute; left: max(5vw, 84px); bottom: 2.2rem; z-index: 2; display: grid; gap: .5rem; margin: 0; font-size: .95rem; color: rgba(247, 245, 240, .85); pointer-events: none; }
.vg-globe-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .6rem; }
.vg-g-men::before { background: var(--vg-road); box-shadow: 0 0 10px var(--vg-road); }
.vg-g-women::before { background: #a9b980; box-shadow: 0 0 10px #a9b980; }
.vg-g-hint { font: italic 1.05rem "EB Garamond", Georgia, serif; color: rgba(247, 245, 240, .6); margin-top: .4rem; }
.vg-g-hint::before { display: none !important; }
.vg-globe-count { position: absolute; right: max(5vw, 2rem); top: 2.2rem; z-index: 2; margin: 0; text-align: right; pointer-events: none; color: var(--vg-chalk); }
.vg-globe-count b { display: block; font: 500 clamp(3.4rem, 7vw, 6rem)/.9 "EB Garamond", Georgia, serif; color: var(--vg-road); }
.vg-globe-count span { font-size: .95rem; color: rgba(247, 245, 240, .75); }
.vg-globe .maplibregl-ctrl-top-right { top: auto; bottom: 1.4rem; right: max(5vw, 1rem); }
.page .ewr-map-wrap { display: none !important; }
.ewr .ewr-count { display: none !important; }

.vg-sky .maplibregl-popup .maplibregl-popup-content { font: .95rem/1.45 Manrope, sans-serif; color: var(--vg-chalk); background: rgba(16, 19, 28, .95); border-radius: 0; padding: 1rem 1.1rem; box-shadow: 0 0 0 1px rgba(195, 154, 92, .4), 0 20px 50px -20px #000; }
.vg-sky .maplibregl-popup .maplibregl-popup-content b { font: 500 1.2rem "EB Garamond", Georgia, serif; color: var(--vg-chalk); }
.vg-sky .maplibregl-popup .maplibregl-popup-content a { color: var(--vg-road); }
.vg-sky .maplibregl-popup .maplibregl-popup-content span { color: rgba(247, 245, 240, .75); }
.vg-sky .maplibregl-popup .maplibregl-popup-tip { border-top-color: rgba(16, 19, 28, .94) !important; border-bottom-color: rgba(16, 19, 28, .94) !important; }
.vg-sky .maplibregl-popup .maplibregl-popup-close-button { color: var(--vg-chalk); font-size: 1.2rem; }
.vg-ch-links { display: block; margin-top: .4rem; }
.vg-ch-links a { margin-right: 1rem; font-weight: 600; }

/* find a church: a full-width scene — Sweden on the night globe, search and list floating on it */
.vg-churches { position: relative; width: 100vw; margin-left: calc(50% - 50vw); color: var(--vg-chalk); background-color: #10131c; }
.vg-ch-map { height: min(94vh, 920px); min-height: 600px; background: transparent !important; }
.vg-ch-tools, .vg-ch-filter, .vg-churches .vg-ch-count { position: absolute; z-index: 3; left: max(5vw, 84px); }
.vg-ch-tools { top: 2rem; width: min(520px, calc(100vw - 2rem - max(5vw, 84px))); display: flex; gap: .6rem; align-items: end; }
.vg-ch-search { flex: 1; display: grid; gap: .35rem; font-size: .85rem; color: rgba(247, 245, 240, .75); }
.vg-ch-search input { height: 52px; padding: 0 1.1rem; border: 1px solid rgba(195, 154, 92, .5); background: rgba(16, 19, 28, .78); color: var(--vg-chalk); font: 1.05rem Manrope, sans-serif; backdrop-filter: blur(6px); }
.vg-ch-search input::placeholder { color: rgba(247, 245, 240, .5); }
.vg-ch-search input:focus { border-color: var(--vg-road); outline: none; }
.vg-ch-filter { top: 7.4rem; display: flex; flex-wrap: wrap; gap: .4rem; max-width: 520px; margin: 0; }
.vg-ch-filter button { padding: .45rem .8rem; border: 1px solid rgba(247, 245, 240, .3); background: rgba(16, 19, 28, .7); color: var(--vg-chalk); font: 600 .85rem Manrope, sans-serif; cursor: pointer; }
.vg-ch-filter button[aria-pressed="true"] { background: var(--vg-road); border-color: var(--vg-road); color: var(--vg-ink); }
.vg-churches .vg-ch-count { bottom: 2rem; margin: 0; font: 500 clamp(3rem, 6vw, 5rem)/.9 "EB Garamond", Georgia, serif; color: var(--vg-road); pointer-events: none; }
.vg-ch-wrap { display: block; position: relative; }
.vg-ch-list { position: absolute; z-index: 3; right: max(4vw, 1.5rem); top: 2rem; bottom: 2rem; width: min(380px, 34vw); margin: 0; padding: .4rem 1.2rem; list-style: none; overflow-y: auto;
  background: rgba(16, 19, 28, .8); backdrop-filter: blur(8px); border-top: 2px solid var(--vg-road); scrollbar-width: thin; scrollbar-color: var(--vg-road) transparent; }
.vg-ch-list li { display: grid; gap: .1rem; padding: .9rem 0; border-bottom: 1px solid rgba(247, 245, 240, .12); }
.vg-ch-name { background: none; border: 0; padding: 0; text-align: left; font: 500 1.2rem/1.25 "EB Garamond", Georgia, serif; cursor: pointer; color: var(--vg-chalk); }
.vg-ch-name:hover { color: var(--vg-road); }
.vg-ch-where, .vg-ch-type { font-size: .85rem; color: rgba(247, 245, 240, .65); }
.vg-ch-km { font-weight: 700; font-size: .88rem; color: var(--vg-road); }
.vg-ch-list .vg-ch-links a { color: var(--vg-road); font-size: .88rem; }
.vg-ch-morewrap { border: 0 !important; }
.vg-ch-more { background: transparent !important; color: var(--vg-chalk) !important; box-shadow: inset 0 0 0 1px rgba(247, 245, 240, .5) !important; }
.vg-churches > .vg-small { position: absolute; z-index: 3; left: max(5vw, 84px); right: calc(min(380px, 34vw) + max(4vw, 1.5rem) + 2rem); bottom: .6rem; margin: 0; font-size: .75rem; color: rgba(247, 245, 240, .5); }
.vg-churches .maplibregl-ctrl-top-right { top: auto; bottom: 4.5rem; right: calc(min(380px, 34vw) + max(4vw, 1.5rem) + 1rem); }
@media (max-width: 900px) {
  .vg-ch-map { height: 64vh; min-height: 420px; }
  .vg-ch-tools, .vg-ch-filter { position: static; width: auto; max-width: none; padding: 0 1.25rem; }
  .vg-ch-tools { padding-top: 1.5rem; }
  .vg-ch-filter { padding-top: .8rem; padding-bottom: 1rem; }
  .vg-churches .vg-ch-count { left: 1.25rem; bottom: 1rem; top: auto; font-size: 2.6rem; position: absolute; }
  .vg-ch-wrap { position: relative; }
  .vg-ch-list { position: static; width: auto; max-height: none; backdrop-filter: none; background: transparent; padding: 0 1.25rem 1rem; }
  .vg-churches > .vg-small { position: static; padding: 0 1.25rem 1.5rem; }
  .vg-churches .maplibregl-ctrl-top-right { right: 1rem; bottom: 1rem; }
  .vg-globe-map { height: 70vh; min-height: 440px; }
  .vg-globe-legend { left: 1.25rem; bottom: 1.2rem; }
  .vg-globe-count { right: 1.25rem; top: 1.2rem; }
}

/* ---------- Today's Gospel ---------- */
.vg-gospel .vg-gospel-date { font-weight: 700; color: var(--vg-olive); margin: 0 0 .4rem; }
.vg-gospel ol { list-style: none; margin: 0 0 1.6rem; padding: 0; border-top: 2px solid currentColor; }
.vg-gospel li { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(127, 127, 127, .3); }
.vg-gospel li > span { font-size: .9rem; opacity: .75; }
.vg-gospel li b { font: 400 1.35rem/1.3 "EB Garamond", Georgia, serif; }
.vg-gospel li.is-gospel b { font-weight: 500; font-size: 1.6rem; }
.has-night-background-color .vg-gospel .vg-btn, .has-ink-background-color .vg-gospel .vg-btn, .has-olive-background-color .vg-gospel .vg-btn { background: var(--vg-road); color: var(--vg-ink) !important; }
.has-night-background-color .vg-small, .has-ink-background-color .vg-small, .has-olive-background-color .vg-small { color: rgba(235, 232, 225, .78); }
.has-night-background-color .vg-gospel .vg-gospel-date, .has-ink-background-color .vg-gospel .vg-gospel-date, .has-olive-background-color .vg-gospel .vg-gospel-date { color: #e2c48f; }

/* ---------- On dark grounds everything follows the ground ---------- */
.has-night-background-color a:not(.vg-btn):not(.wp-block-button__link), .has-ink-background-color a:not(.vg-btn):not(.wp-block-button__link), .has-olive-background-color a:not(.vg-btn):not(.wp-block-button__link) { color: inherit; }
.has-night-background-color .wp-block-button__link, .has-ink-background-color .wp-block-button__link { background: var(--vg-road); color: #17191f; }

/* ---------- Footer ---------- */
.vg-foot a { color: var(--vg-chalk); text-decoration: none; }
.vg-foot a:hover { color: var(--vg-road); }
.vg-foot .vg-foot-arrive em { color: var(--vg-road); }
.vg-foot .vg-foot-h { font: 700 .85rem Manrope, sans-serif !important; color: var(--vg-road); margin-bottom: .6rem; }
.vg-foot .vg-foot-list { list-style: none; padding: 0; margin: 0; }
.vg-foot .vg-foot-list li { margin-bottom: .4rem; }
.vg-foot .vg-foot-bless { margin-top: var(--wp--preset--spacing--50); padding-top: 1.6rem; border-top: 1px solid rgba(195, 154, 92, .3); max-width: 70ch; color: rgba(235, 232, 225, .8); }
.vg-foot .vg-foot-legal { color: rgba(235, 232, 225, .55); }


/* ---------- Emmaus around the world: the list in the style of the road ---------- */
.ewr .ewr-label, .ewr .ewr-updated, .ewr .ewr-count { color: var(--vg-mute) !important; }
.ewr input, .ewr select { border-radius: 0 !important; border-color: #a9a597 !important; }
.ewr .ewr-seg button { border-radius: 0 !important; }
.ewr .ewr-seg button.is-on { background: var(--vg-ink) !important; color: var(--vg-chalk) !important; }
.ewr .ewr-grid { display: block !important; }
.ewr .ewr-month { font: 700 .95rem Manrope, sans-serif !important; color: #7a5a2a !important; margin: 2.2rem 0 0 !important; padding: 0 0 .5rem !important; border-bottom: 2px solid var(--vg-ink); }
.ewr .ewr-card { display: grid !important; grid-template-columns: 180px 1fr auto; grid-template-areas: "date title act" "top place act"; column-gap: 1.8rem; row-gap: .1rem; align-items: center;
  background: transparent !important; border: 0 !important; border-bottom: 1px solid rgba(23, 25, 31, .15) !important; border-radius: 0 !important; padding: 1rem 0 !important; margin: 0 !important; box-shadow: none !important; }
.ewr .ewr-card-top { grid-area: top; display: flex; gap: .6rem; align-items: center; margin: 0 !important; }
.ewr .ewr-date { grid-area: date; margin: 0 !important; font: 700 .98rem Manrope, sans-serif !important; color: var(--vg-ink) !important; }
.ewr .ewr-title { grid-area: title; margin: 0 !important; font: 500 1.25rem/1.25 "EB Garamond", Georgia, serif !important; color: var(--vg-ink) !important; }
.ewr .ewr-place { grid-area: place; margin: 0 !important; font-size: .9rem !important; color: var(--vg-mute) !important; }
.ewr .ewr-country { color: var(--vg-mute) !important; }
.ewr .ewr-actions { grid-area: act; display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; margin: 0 !important; }
.ewr .ewr-src { display: none; }
.ewr .ewr-btn, .ewr .ewr-more { border-radius: 0 !important; background: var(--vg-ink) !important; color: var(--vg-chalk) !important; border: 0 !important; padding: .6rem 1.1rem !important; font: 600 .88rem Manrope, sans-serif !important; white-space: nowrap; }
.ewr .ewr-maplink { font-size: .85rem !important; color: var(--vg-ink) !important; }
.ewr .ewr-badge { border-radius: 0 !important; background: #7a5a2a !important; color: #fff !important; font-size: .72rem !important; }
.ewr .ewr-badge-women { background: var(--vg-olive) !important; }
@media (max-width: 760px) { .ewr .ewr-card { grid-template-columns: 1fr; grid-template-areas: "top" "date" "title" "place" "act"; } .ewr .ewr-actions { flex-direction: row; align-items: center; margin-top: .6rem !important; } }

/* ---------- Editor placeholders ---------- */
.vg-editor-ph { padding: 3rem; background: #171a22; color: #ebe8e1; text-align: center; font: 600 1rem Manrope, sans-serif; }

@media (prefers-reduced-motion: reduce) {
  .wp-block-cover.is-style-vg-road .wp-block-cover__image-background, .wp-block-cover.is-style-vg-road .wp-block-cover__inner-container > *, .vg-flame { animation: none !important; opacity: 1; }
  .wp-block-cover.is-style-vg-road .wp-block-cover__image-background { transform: none; scale: 1; }
  .wp-block-cover.is-style-vg-unveil .wp-block-cover__image-background, .wp-block-cover.is-style-vg-unveil .wp-block-cover__inner-container > * { transition: none; }
}

/* a date such as "6–8 November 2026" never breaks across lines */
.vg-nowrap { white-space: nowrap; }

/* a pass whose retreat has begun: no registration, a small flame in place of the QR code */
.vg-pass-live { margin: 22px 0 6px; padding: 14px 18px; border-left: 3px solid var(--vg-road); background: rgba(195, 154, 92, .1); font-size: 1.05rem; }
.vg-pass-flame { display: block; width: 18px; height: 30px; margin: 18px auto 0; border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%; background: radial-gradient(ellipse at 50% 70%, #fff6d8 0 25%, #ffcf6b 45%, #e8892e 75%, transparent 76%); filter: drop-shadow(0 0 10px rgba(255, 190, 90, .8)); animation: vg-flick 2.4s ease-in-out infinite; }
@keyframes vg-flick { 0%, 100% { transform: scale(1) rotate(-1deg); } 50% { transform: scale(1.06, .96) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .vg-pass-flame { animation: none; } }

/* The opening picture never lets its text slide under the menu: room for the header at the top, and the big
   heading sized by the window's height as well as its width (wide but low windows made it overflow upwards). */
body.vg-over-hero .wp-block-cover.is-style-vg-road { padding-top: calc(var(--vg-head) + 2.5rem) !important; }
.wp-block-cover.is-style-vg-road h1 { font-size: clamp(2.6rem, min(8.5vw, 14.5vh), 8rem) !important; }
