/* web.css — the small layer the real website adds on top of the two design stylesheets (bundle.css, site.css).
   Everything here exists because the design kept separate phone artboards or had no server; the look is unchanged. */

/* Festival strip: the full text on wider screens, the phone text up to 760 px (as in the phone artboards). */
.vm-root .vx-n-short { display: none; }
@media (max-width: 760px) {
  .vm-root .vx-n-long { display: none; }
  .vm-root .vx-n-short { display: inline; }
  .vm-root .vx-d-only { display: none; }
}

/* Home hero on phones (HomeMobile, HomePhoneL artboards). The desktop markup carries the title size inline (76 px, no wrapping), which is clipped on a phone:
   the phone artboard sets it to 44 px on one or two lines; and the date strip uses the short label (see .vx-d-only above, and for landscape phones below). */
@media (max-width: 599px) and (orientation: portrait) {
  .vm-root .vx-home-hero h1.vm-display-xl { font-size: 44px !important; white-space: normal !important; }
}
/* From 360 px the title fits on one line in its own font. Until that font is applied the system's Gujarati font is wider and would wrap it onto two lines, then the page jumps
   up when the font arrives on a slow connection (layout shift ~0.2); keeping it on one line removes that jump. Below 360 px it is two lines in both fonts. */
@media (min-width: 360px) and (max-width: 599px) and (orientation: portrait) {
  .vm-root .vx-home-hero h1.vm-display-xl { white-space: nowrap !important; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .vm-root .vx-home-hero .vx-d-only { display: none; }
}

/* Seva: the submit button while the registration is being saved, and the save-error message. */
.vm-root .vm-btn[disabled] { opacity: .72; cursor: progress; pointer-events: none; }
.vm-root .vm-alert.vx-save-err { margin-bottom: 0; }
/* Seva: registration is closed (the notice before the form, the disabled submit button) */
.vm-root .vm-alert.vx-reg-closed { margin-bottom: 0; }
.vm-root .vm-btn[disabled][aria-busy="false"] { cursor: not-allowed; }
.vm-root .vm-alert.vx-save-err:focus { outline: 2px solid var(--focus, #741a32); outline-offset: 3px; }

/* Until the page script has adopted the prerendered markup, keep the in-page menu closed. */
#dc-app:not([data-dc-ready]) #vx-tnav { display: none; }

/* Offline page on wider screens (the approved design is a phone board only): same look, content kept in a centred column, full-height background. */
@media (min-width: 720px) {
  .vm-root .vx-off { min-height: 100vh; min-height: 100dvh; padding: 28px max(32px, calc((100% - 640px) / 2)) 28px; gap: 20px; }
  .vm-root .vx-off__hero { padding: 32px 40px 30px; gap: 12px; }
  .vm-root .vx-off__hero h1 { font-size: 34px; }
  .vm-root .vx-off__hero p { max-width: 460px; text-wrap: balance; }
  .vm-root .vx-off__hero .vm-btn { min-width: 260px; }
  .vm-root .vx-off__info > div { padding: 14px 24px; }
}

/* Mobile menu: while it is open the page behind must not scroll. The design only sets overscroll-behavior on the menu, which Chrome honours even when the menu
   is not itself scrollable (a viewport taller than the menu) but Firefox and WebKit do not: the page scrolled behind the open menu there. */
html:has(#vx-tnav:not([hidden])) { overflow: hidden; }

/* News card with the «મંગલારોહણ» poster: the 4:3 poster is shown whole (never cropped), on its own maroon, without the hover zoom. */
.vm-root .vm-update__img.vx-poster-box { background: #481022; }
.vm-root .vm-update .vx-poster-box img.vx-poster { object-fit: contain; width: 100%; height: 100%; aspect-ratio: 4 / 3; transform: none; }
.vm-root .vm-update:hover .vx-poster-box img.vx-poster { transform: none; }

/* Seva service days: the selected tile carries a tick (not colour alone); the summary lists exactly what is selected. */
.vm-root .vx-day { position: relative; }
.vm-root .vx-day[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 3px; right: 6px; font-size: 13px; font-weight: 700; line-height: 1; color: var(--gold-soft); }
.vm-root .vx-day:focus-visible { outline: 3px solid var(--focus, #741a32); outline-offset: 2px; }
.vm-root .vx-days-sum { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-radius: var(--radius-md); background: var(--surface-alt); box-shadow: 0 0 0 1px var(--line); }
.vm-root .vx-days-sum b { font-size: 15px; font-weight: 700; color: var(--maroon); }
.vm-root .vx-days-sum span { font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }

/* Pran Pratishtha announcements: with two notices left the row fills the width instead of leaving an empty third column. */
@media (min-width: 960px) {
  .vm-root .vm-grid--3:has(> .vm-announce:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The same for the page titles (36 px): on one line in their own font from 380 px up to 900 px wide, but two lines in the system's wider font until the font arrives, which makes the
   page jump up on a slow connection (layout shift ~0.2 on the festival page). Outside that range the titles wrap as designed (e.g. 360 px, and 1024-1180 px on the festival page). */
@media (min-width: 380px) and (max-width: 900px) {
  .vm-root h1.vm-display-l { white-space: nowrap !important; }
}

/* Home title on laptops: from 961 px the hero is two columns and the 76 px title (563 px wide on one line, set inline by the design) is wider than its column until about 1300 px,
   so it ran into the picture. The size follows the column width here (column = 50vw - 84 px; 0.134 x column = the size that fits), reaching the designed 76 px at 1300 px. */
@media (min-width: 961px) and (max-width: 1299px) {
  .vm-root .vx-home-hero h1.vm-display-xl { font-size: calc((50vw - 84px) * 0.134) !important; }
}

/* Festival hero, two layout shifts on a slow connection (about 0.125 at 1440 px and 0.1-0.4 at 768-1024 px on the festival page):
   1. The text shows first in the system's Gujarati font, which is about 16 % wider than Noto Serif Gujarati / 8-11 % wider than Hind Vadodara, so the title takes two lines and the
      hero is 77 px taller until the fonts arrive. Windows (Nirmala UI) is matched here: the same fonts, scaled with size-adjust to just under the width of the web fonts (82 %: a title that fits its column with the web font also fits in every half-loaded state), only for Gujarati letters
      and only while the web font is missing. Where these system fonts do not exist (Mac, Android) the rule does nothing and the text behaves exactly as before.
   2. The two portraits' frame has auto margins, so before the pictures arrive it shrinks to its content (8 px wide, no height) and then jumps to its 520 px; it now has its width from the start. */
@font-face { font-family: "SVMD Serif Fallback"; src: local("Nirmala UI Bold"), local("NirmalaUI-Bold"); font-weight: 600 700; size-adjust: 82%; unicode-range: U+0A80-0AFF, U+0964-0965; }
@font-face { font-family: "SVMD Serif Fallback"; src: local("Nirmala UI"), local("NirmalaUI"); font-weight: 300 500; size-adjust: 82%; unicode-range: U+0A80-0AFF, U+0964-0965; }
/* Hind Vadodara has no Gujarati digits (U+0AE6-0AEF) and a few rare letters (U+0A8C, U+0AC4, U+0AE0-0AE3, U+0AF9-0AFF): those stay on the system's own font at full size, so they are left out here. */
@font-face { font-family: "SVMD Sans Fallback"; src: local("Nirmala UI Bold"), local("NirmalaUI-Bold"); font-weight: 600 700; size-adjust: 89%; unicode-range: U+0A80-0A8B, U+0A8D-0AC3, U+0AC5-0ADF, U+0AF0-0AF8, U+0964-0965; }
@font-face { font-family: "SVMD Sans Fallback"; src: local("Nirmala UI"), local("NirmalaUI"); font-weight: 300 500; size-adjust: 92%; unicode-range: U+0A80-0A8B, U+0A8D-0AC3, U+0AC5-0ADF, U+0AF0-0AF8, U+0964-0965; }
:root {
  --font-display: "Noto Serif Gujarati", "SVMD Serif Fallback", "Noto Serif", Georgia, serif;
  --font-body: "Hind Vadodara", "SVMD Sans Fallback", "Noto Sans Gujarati", system-ui, sans-serif;
}
.vm-root .vx-hero-matas { width: 100%; }

/* Hero pictures on phones and tablets (Home, New Temple, Gallery): the design gives them "width: auto", i.e. no size at all until the file has arrived, so the hero is empty and every
   section below it jumps down when the picture lands (layout shift 0.2-0.5 on a slow connection). The width is now known from the start; the picture keeps its own proportions
   (object-fit: contain inside the same max-height / max-width caps), so what is drawn, and the height of the hero, are the same as before. */
.vm-root.vx-page .vm-hero__art img.vm-hero__temple { width: 100%; object-fit: contain; }
.vm-root .vm-hero__art .vx-trio { width: 100%; }

/* Decorative mandalas (Phase B, mobile speed): drawn from one shared SVG file as a mask in the element's own colour (currentColor), so the picture, size, opacity, position and rotation
   are the design's, but the browser lays out and paints one element instead of 312 (build/build.mjs replaces the inline <svg>, see mandalaToMask). */
.vm-hero__mandala, .vm-mandala, .vm-devotional__mandala, .vm-cta__orn {
  display: inline-block; background-color: currentColor; forced-color-adjust: none; /* keep the design's gold in Windows high-contrast mode, as the inline SVG did */
  -webkit-mask: url(/media/mandala.083ee8f6524b.svg) center / contain no-repeat; mask: url(/media/mandala.083ee8f6524b.svg) center / contain no-repeat;
}

/* Legal pages (privacy policy, terms, data deletion): static pages in the site's look — burgundy bar, ivory page, a readable column. The title has its own class on purpose
   (h1.vm-display-l is forced onto one line above, which would overflow a long two-language title). */
.vx-legal { min-height: 100vh; background: var(--surface, #fbf7ef); color: var(--ink, #2b1a1f); font-family: var(--font-body); }
.vx-legal__bar { display: flex; align-items: center; gap: 12px; padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); background: var(--surface-inverse, #481022); }
.vx-legal .vx-legal__bar .vx-legal__brand, .vx-legal .vx-legal__bar .vx-legal__brand span { color: #fbf7ef !important; }
.vx-legal__brand { display: flex; align-items: center; gap: 10px; color: #fbf7ef; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.3; }
.vx-legal__brand img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.vx-legal__bar .vx-fs { margin-left: auto; margin-right: 0; }
.vx-legal__main { padding: 32px 16px 56px; }
.vx-legal article { max-width: 800px; margin: 0 auto; }
.vx-legal__eyebrow { margin: 0 0 8px; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: #8a6a1f; }
.vx-legal__title { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.35; color: var(--heading, #741a32); overflow-wrap: anywhere; }
.vx-legal__title-en { display: block; font-size: 22px; font-weight: 600; color: #5b4a4f; }
.vx-legal__lead { margin: 0 0 18px; font-size: 18px; line-height: 1.7; color: #4a3a3f; }
.vx-legal__lang { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.vx-legal__lang a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid #b08d3c; border-radius: 999px; color: var(--heading, #741a32); font-weight: 600; text-decoration: none; background: #fff; }
.vx-legal__lang a:focus-visible, .vx-legal a:focus-visible, .vx-legal button:focus-visible { outline: 3px solid var(--focus, #741a32); outline-offset: 2px; }
.vx-legal section { padding-top: 8px; margin-bottom: 40px; border-top: 3px solid #e2c27a; scroll-margin-top: 16px; }
.vx-legal__sec { margin: 18px 0 8px; font-family: var(--font-display); font-size: 26px; color: var(--heading, #741a32); }
.vx-legal section h2:not(.vx-legal__sec) { margin: 28px 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.45; color: var(--heading, #741a32); }
.vx-legal section p, .vx-legal section li { font-size: 18px; line-height: 1.85; overflow-wrap: anywhere; }
.vx-legal section p { margin: 0 0 14px; }
.vx-legal section ul, .vx-legal section ol { margin: 0 0 14px; padding-left: 24px; }
.vx-legal section li { margin-bottom: 6px; }
.vx-legal section a, .vx-legal__foot a { color: var(--heading, #741a32); text-decoration: underline; text-underline-offset: 3px; }
.vx-legal__foot { padding: 28px 16px 40px; background: var(--surface-inverse, #481022); color: #f1e6d3; }
.vx-legal__foot ul { max-width: 800px; margin: 0 auto 14px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.vx-legal__foot li, .vx-legal__foot p { font-size: 17px; line-height: 1.8; }
.vx-legal__foot p { max-width: 800px; margin: 0 auto; }
.vx-legal__foot a { color: #f4dc9b; display: inline-block; padding: 6px 0; }
@media (min-width: 768px) {
  .vx-legal__main { padding: 48px 32px 72px; }
  .vx-legal__title { font-size: 42px; }
  .vx-legal__title-en { font-size: 26px; }
  .vx-legal__bar { padding-left: 32px; padding-right: 32px; }
  .vx-legal__foot { padding-left: 32px; padding-right: 32px; }
}

/* ---------- ધર્મ ધ્વજારોહણ (design canvas 20 Nov 2026; build/build.mjs adjustDhwaja). Only the design's own values; no new colour or font. ---------- */
/* Home hero link: the countdown pill's own look (site.css .vx-cd). As a link it would otherwise take the general link colour (.vm-root a: maroon on the maroon hero) */
.vm-root a.vx-cd { color: var(--ink-inverse-muted); }
.vm-root a.vx-cd:hover b { text-decoration: underline; text-underline-offset: 3px; }
/* news card (Home, Gallery): the whole poster, never cropped (contain on cream, from the design); 4/5 on phones and portrait tablets, 1/1 from 1100 px (desktop, landscape tablet) */
.vm-root .vm-update__img.vx-dh-img { aspect-ratio: 4 / 5; height: auto; }
@media (min-width: 1100px) {
  .vm-root .vm-update__img.vx-dh-img { aspect-ratio: 1 / 1; }
  /* Home «તાજા સમાચાર»: four cards as two rows of two (below 1100 px the grid already has two columns, below 768 px one) */
  .vm-root .vm-grid--3.vx-news4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Gallery «ધામના સમાચાર»: the card behind «વધુ જુઓ». !important: the design's .vm-update display (and site.css's tablet rule for an odd last card, display: grid) would
   otherwise win over [hidden]. Shown on phones, where the cards simply stack. */
.vm-root .vm-update.vx-news-more[hidden] { display: none !important; }
@media (max-width: 767px) { .vm-root .vm-update.vx-news-more[hidden] { display: flex !important; } }
/* Pran Pratishtha «મહોત્સવની યાત્રા»: four steps in a row with a dot and a line above each (desktop); two per row on tablets; one column with the line on the left (phones) */
.vm-root .vx-dh-wrap { display: flex; flex-direction: column; gap: 48px; }
.vm-root .vx-dh { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.vm-root .vx-dh__step { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.vm-root .vx-dh__rail { display: flex; align-items: center; gap: 10px; }
.vm-root .vx-dh__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 0 0 5px rgba(116, 26, 50, 0.14); flex: none; }
.vm-root .vx-dh__dot--first { background: var(--maroon); }
.vm-root .vx-dh__line { flex: 1; height: 2px; background: var(--line); }
@media (min-width: 761px) and (max-width: 1099px) { .vm-root .vx-dh { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 760px) {
  .vm-root .vx-dh-wrap { gap: 32px; }
  .vm-root .vx-dh { display: flex; flex-direction: column; gap: 20px; }
  .vm-root .vx-dh__step { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 14px; }
  .vm-root .vx-dh__rail { flex-direction: column; gap: 8px; padding-top: 24px; }
  .vm-root .vx-dh__line { width: 2px; height: auto; }
}
