/* ==========================================================================
   Unique Samay — Navratri editorial creative
   One layout. Colours arrive via --nav-* custom properties (see navratri.php).
   Everything inside scales with the component width (container units, 1cqw = 1% of width).
   Override the English/meta font with --us-font-en on :root or .navratri.
   ========================================================================== */

@font-face {
  font-family: 'NV Khand';
  src: url('../../assets/navratri/fonts/Khand-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NV Rozha';
  src: url('../../assets/navratri/fonts/RozhaOne-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NV Tiro';
  src: url('../../assets/navratri/fonts/TiroDevanagariHindi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NV Mukta';
  src: url('../../assets/navratri/fonts/Mukta-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NV Mukta';
  src: url('../../assets/navratri/fonts/Mukta-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NV Mukta';
  src: url('../../assets/navratri/fonts/Mukta-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.navratri {
  --nv-display: 'NV Khand', 'Khand', 'Noto Sans Devanagari', sans-serif;
  --nv-decor: 'NV Rozha', 'Rozha One', 'Noto Serif Devanagari', serif;
  --nv-serif: 'NV Tiro', 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', serif;
  --nv-sans: 'NV Mukta', 'Mukta', 'Noto Sans Devanagari', system-ui, sans-serif;
  --nv-en: var(--us-font-en, var(--nv-sans));
  --k: 1; /* text scale, raised in the mobile layout */

  container-type: inline-size;
  container-name: nv;
  width: min(100%, 1080px);
  margin-inline: auto;
  font-family: var(--nv-sans);
  color: var(--nav-text);
  -webkit-text-size-adjust: 100%;
}
.navratri *,
.navratri *::before,
.navratri *::after {
  box-sizing: border-box;
}
:where(.navratri) :is(p, h1, h2, figure, blockquote) {
  margin: 0;
  padding: 0;
}

/* ---- Editor preview bar ------------------------------------------------ */
.navratri-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  width: min(100%, 1080px);
  margin: 0 auto 12px;
  font:
    600 13px/1 system-ui,
    sans-serif;
}
.navratri-preview a {
  padding: 7px 11px;
  border: 1px solid currentColor;
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
}
.navratri-preview a[aria-current] {
  background: #111;
  color: #fff;
}
.navratri-preview small {
  opacity: 0.6;
  margin-left: 6px;
}

/* ==========================================================================
   Composition (desktop / tablet): 4:5 frame, absolutely-layered artwork
   ========================================================================== */
.nv-creative {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 11/ 5;
  background: var(--nav-bg);
  background: radial-gradient(
    120% 78% at 50% 40%,
    color-mix(in srgb, var(--nav-bg) 82%, #fff) 0%,
    var(--nav-bg) 52%,
    color-mix(in srgb, var(--nav-bg) 62%, var(--nav-primary)) 100%
  );
  color: var(--nav-text);
}
/* thin editorial frame: one full line, one offset ghost line */
.nv-creative::before,
.nv-creative::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
/* .nv-creative::before {
  inset: 2.4cqw 2.4cqw 7cqw 2.4cqw;
  border: 1px solid color-mix(in srgb, var(--nav-accent) 75%, transparent);
}
.nv-creative::after {
  inset: 1.1cqw 3.8cqw 7cqw 1.1cqw;
  border: 1px solid color-mix(in srgb, var(--nav-accent) 28%, transparent);
} */

/* -- Title ---------------------------------------------------------------- */
.nv-head {
  position: absolute;
  z-index: 2;
  inset: 0cqw 0 auto 0;
  text-align: center;
}
.nv-title {
  font-weight: 400;
  line-height: 1;
}
.nv-maa {
  display: block;
  font-family: var(--nv-decor);
  font-size: calc(7.2cqw * var(--k));
  line-height: 1.1;
  color: var(--nav-accent);
  letter-spacing: 0.02em;
}
.nv-name {
  display: block;
  font-family: var(--nv-display);
  font-weight: 700;
  font-size: var(--nv-name-size, 10cqw);
  line-height: 1.22;
  white-space: nowrap;
  color: var(--nav-primary);
  margin-top: 5cqw;
  text-shadow: 0 0.5cqw 0 color-mix(in srgb, var(--nav-primary) 35%, transparent);
}
.nv-name__text {
  display: inline-block;
}

/* -- Stage: layout-critical blocks sit directly in .nv-creative on desktop -- */
.nv-stage {
  display: contents;
}

.nv-numeral {
  position: absolute;
  z-index: 1;
  left: 3cqw;
  bottom: 6.5cqw;
  font-family: var(--nv-display);
  font-weight: 700;
  font-size: 44cqw;
  line-height: 0.78;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--nav-accent) 55%, transparent);
  user-select: none;
  pointer-events: none;
}

.nv-devi {
  position: absolute;
  z-index: 5;
  bottom: 0cqw;
  left: 17cqw;
  width: 66cqw;
  height: 40cqw;
}
.nv-devi img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter: drop-shadow(0 2cqw 2.4cqw rgba(0, 0, 0, 0.28));
}

.nv-tithi {
  position: absolute;
  z-index: 3;
  left: 2cqw;
  font-family: var(--nv-sans);

  top: 21cqw;
  padding-left: 1.7cqw;
  /* border-left: 0.45cqw solid var(--nav-accent); */
  display: grid;
  gap: 0.5cqw;
  max-width: 22cqw;
}
.nv-tithi__season {
  font-size: max(11px, calc(1.8cqw * var(--k)));
  color: color-mix(in srgb, var(--nav-text) 78%, transparent);
}
.nv-tithi__paksha {
  font-size: max(11px, calc(1.8cqw * var(--k)));
  color: color-mix(in srgb, var(--nav-text) 78%, transparent);
}
.nv-tithi__tithi {
  font-size: max(11px, calc(1.8cqw * var(--k)));
  color: color-mix(in srgb, var(--nav-text) 78%, transparent);
}
/* .nv-tithi__paksha {
  font-size: max(12px, calc(2.1cqw * var(--k)));
  font-weight: 600;
}
.nv-tithi__tithi {
  font-family: var(--nv-display);
  font-weight: 700;
  font-size: calc(6.4cqw * var(--k));
  line-height: 1.15;
  color: var(--nav-accent);
} */

.nv-object {
  position: absolute;
  z-index: 4;
  left: 9.5cqw;
  top: 30cqw;
  width: 21cqw;
  text-align: left;
}
.nv-object__img {
  display: block;
  height: 8cqw;
  width: auto;
  max-width: 100%;
  margin: 0 8cqw -2cqw auto;
  transform: rotate(10deg);
  transform-origin: 50% 85%;
  filter: drop-shadow(0 1cqw 1.2cqw rgba(0, 0, 0, 0.3));
}
.nv-object__cap {
  display: grid;
  gap: 0.4cqw;
}
.nv-object__cap strong {
  font-family: var(--nv-display);
  font-weight: 700;
  font-size: calc(2.6cqw * var(--k));
  line-height: 1.2;
  color: var(--nav-accent);
}
.nv-object__cap span {
  font-size: max(11px, calc(1.2cqw * var(--k)));
  line-height: 1.5;
  color: color-mix(in srgb, var(--nav-text) 85%, transparent);
}

.nv-tilt {
  position: absolute;
  z-index: 3;
  left: 2cqw;
  bottom: 2cqw;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--nv-sans);
  font-weight: 600;
  font-size: calc(2cqw * var(--k));
  color: color-mix(in srgb, var(--nav-text) 72%, transparent);
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  white-space: nowrap;
}
.nv-tilt::before {
  /* content: '';
  width: 1px;
  height: 7cqw;
  background: var(--nav-accent); */
}

.nv-info {
  position: absolute;
  z-index: 6;
  right: 2cqw;
  bottom: 4cqw;
  width: 28cqw;
  padding: 2.2cqw 2.4cqw 2.4cqw;
  /* background: var(--nav-primary); */
  color: var(--nav-on-primary);
  text-align: center;
  /* border-top: 0.5cqw solid var(--nav-accent); */
}
.nv-info__title {
  font-family: var(--nv-display);
  font-weight: 700;
  font-size: calc(2cqw * var(--k));
  line-height: 1.2;
  margin-bottom: 0.8cqw;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 10px;
  /* border-bottom: 1px solid color-mix(in srgb, var(--nav-accent) 40%, transparent); */
  color: var(--nav-accent);
}
.nv-info p {
  font-family: var(--nv-sans);
  font-size: max(6px, calc(1.4cqw * var(--k)));
  color: color-mix(in srgb, var(--nav-text) 78%, transparent);
  line-height: 1.6;
}

.nv-foot {
  position: absolute;
  z-index: 7;
  inset: auto 0 0 0;
  height: 7cqw;
  padding-inline: 6cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  background: var(--nav-primary);
  color: var(--nav-on-primary);
}
.nv-foot__line {
  font-family: var(--nv-en);
  font-weight: 700;
  font-size: max(9px, 1.55cqw);
  letter-spacing: 0.24em;
  white-space: nowrap;
}
.nv-foot__day {
  font-weight: 600;
  font-size: max(11px, 1.9cqw);
  color: var(--nav-accent);
  white-space: nowrap;
}

/* ==========================================================================
   Shloka section — paper-coloured whitespace under the frame
   ========================================================================== */
.nv-shloka {
  /* background: var(--nav-paper); */
  color: var(--nav-primary);
  text-align: center;
  padding: 2cqw 6cqw 4.5cqw;
}
.nv-shloka__text {
  font-family: var(--nv-serif);
  font-weight: 600;
  font-size: max(19px, 1.8cqw);
  line-height: 1.5;
  max-width: 34em;
  margin-inline: auto;
}
.nv-shloka__text span {
  display: block;
  text-wrap: balance;
}
.nv-shloka__label {
  margin-top: 2.4cqw;
  font-size: max(12px, 1.8cqw);
  font-weight: 600;
  color: color-mix(in srgb, var(--nav-ink) 62%, transparent);
}
.nv-brand {
  margin-top: 4cqw;
  padding-top: 2.4cqw;
  border-top: 1px solid color-mix(in srgb, var(--nav-ink) 16%, transparent);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 6cqw;
}
.nv-brand__word {
  font-family: var(--nv-en);
  font-weight: 600;
  font-size: max(11px, 1.6cqw);
  letter-spacing: 0.34em;
  color: color-mix(in srgb, var(--nav-ink) 70%, transparent);
}
.nv-brand__word b {
  color: var(--nav-primary);
  font-weight: 700;
}
.nv-brand__logo {
  height: auto;
  max-height: 4.4cqw;
  min-height: 22px;
  width: auto;
  max-width: 34cqw;
  opacity: 0.85;
}

/* ==========================================================================
   Entrance (CSS only, no JS). Order: frame → name → Devi → object → info → shloka
   ========================================================================== */
@keyframes nv-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes nv-up {
  from {
    opacity: 0;
    transform: translateY(1.6cqw);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes nv-rise {
  from {
    opacity: 0;
    transform: translateY(4cqw);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.nv-creative {
  animation: nv-fade 0.6s ease-out both;
}
.nv-reveal {
  animation: nv-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--d, 0s);
}
.nv-tilt.nv-reveal {
  animation-name: nv-fade;
}
.nv-rise {
  animation: nv-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--d, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .nv-creative,
  .nv-reveal,
  .nv-rise {
    animation: none !important;
  }
}

/* ==========================================================================
   Mobile composition (container < 740px): deliberate re-stack, not a shrink
   Name on top → stage (Devi hero, tithi + object flanking) → info → strip
   ========================================================================== */
@container nv (max-width: 739px) {
  .navratri {
    --k: 1.75;
  }

  .nv-creative {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }
  .nv-creative::before {
    inset: 2.4cqw 2.4cqw 11cqw 2.4cqw;
  }
  .nv-creative::after {
    inset: 1.1cqw 3.8cqw 11cqw 1.1cqw;
  }

  .nv-head {
    position: relative;
    inset: auto;
    padding-top: 5cqw;
  }
  .nv-maa {
    font-size: 8.5cqw;
  }

  .nv-stage {
    display: block;
    position: relative;
    z-index: 5;
    height: 124cqw;
    margin-top: -7cqw;
  }
  .nv-numeral {
    font-size: 56cqw;
    left: 2cqw;
    bottom: 0;
  }
  .nv-devi {
    left: calc(50% - 41cqw);
    width: 82cqw;
    height: 112cqw;
    bottom: 0;
  }
  .nv-tithi {
    left: 5cqw;
    top: 15cqw;
    max-width: 30cqw;
    gap: 0.8cqw;
  }
  .nv-object {
    right: 4cqw;
    top: 13cqw;
    width: 28cqw;
  }
  .nv-object__img {
    height: 36cqw;
  }
  .nv-tilt {
    left: 2.6cqw;
    bottom: 6cqw;
    font-size: 3.6cqw;
  }
  .nv-tilt::before {
    height: 10cqw;
  }

  .nv-info {
    position: relative;
    inset: auto;
    right: auto;
    bottom: auto;
    z-index: 6;
    width: auto;
    margin: 0 5cqw 5cqw;
    padding: 4.5cqw 5cqw 5cqw;
  }
  .nv-info__title {
    font-size: 7cqw;
    margin-bottom: 1.6cqw;
  }
  .nv-info p {
    font-size: max(14px, 3.9cqw);
    line-height: 1.7;
  }

  .nv-foot {
    position: relative;
    inset: auto;
    height: auto;
    padding: 3.6cqw 5cqw;
    flex-wrap: wrap;
    row-gap: 1cqw;
  }
  .nv-foot__line {
    font-size: 2.5cqw;
    letter-spacing: 0.16em;
  }
  .nv-foot__day {
    font-size: 3.4cqw;
  }

  .nv-tithi__season {
    font-size: 3.2cqw;
  }
  .nv-tithi__paksha {
    font-size: 3.8cqw;
  }
  .nv-tithi__tithi {
    font-size: 9cqw;
  }
  .nv-object__cap strong {
    font-size: 6cqw;
  }
  .nv-object__cap span {
    font-size: max(12px, 3.1cqw);
  }

  .nv-shloka {
    padding: 10cqw 6cqw 7cqw;
  }
  .nv-shloka__text {
    font-size: max(18px, 5cqw);
    line-height: 1.9;
  }
  .nv-shloka__label {
    font-size: max(12px, 3.2cqw);
    margin-top: 4cqw;
  }
  .nv-brand {
    margin-top: 7cqw;
    padding-top: 4cqw;
  }
  .nv-brand__word {
    font-size: max(11px, 2.8cqw);
  }
  .nv-brand__logo {
    max-height: 9cqw;
  }
}

/* ==========================================================================
   Teaser (outside the nine dates)
   ========================================================================== */
.navratri--teaser {
  color: var(--nav-text);
}
.nv-teaser {
  background: var(--nav-bg);
  background: radial-gradient(
    110% 90% at 50% 20%,
    color-mix(in srgb, var(--nav-bg) 82%, #fff),
    var(--nav-bg) 55%,
    color-mix(in srgb, var(--nav-bg) 62%, var(--nav-primary))
  );
  padding: clamp(32px, 8cqw, 88px) clamp(20px, 7cqw, 80px);
  text-align: center;
  outline: 1px solid color-mix(in srgb, var(--nav-accent) 70%, transparent);
  outline-offset: -14px;
}
.nv-teaser__eyebrow {
  font-family: var(--nv-en);
  font-weight: 700;
  font-size: clamp(10px, 1.6cqw, 14px);
  letter-spacing: 0.26em;
  color: var(--nav-accent);
}
.nv-teaser__title {
  font-family: var(--nv-display);
  font-weight: 700;
  font-size: clamp(56px, 17cqw, 190px);
  line-height: 1.2;
  margin-top: 2cqw;
}
.nv-teaser__range {
  font-family: var(--nv-decor);
  font-size: clamp(18px, 3cqw, 32px);
  color: var(--nav-accent);
  margin-top: 1cqw;
}
.nv-teaser__intro {
  max-width: 34em;
  margin: 3cqw auto 0;
  font-size: clamp(15px, 2cqw, 20px);
  line-height: 1.7;
  color: color-mix(in srgb, var(--nav-text) 88%, transparent);
}
.nv-teaser__list {
  list-style: none;
  margin: clamp(24px, 5cqw, 52px) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  background: color-mix(in srgb, var(--nav-accent) 40%, transparent);
  border: 1px solid color-mix(in srgb, var(--nav-accent) 40%, transparent);
}
.nv-teaser__list li {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.6em;
  padding: clamp(10px, 2cqw, 20px) 8px;
  background: var(--nav-primary);
  color: var(--nav-on-primary);
  font-weight: 600;
  font-size: clamp(14px, 2cqw, 19px);
}
.nv-teaser__no {
  font-family: var(--nv-display);
  font-size: 1.5em;
  color: var(--nav-accent);
}
@container nv (max-width: 520px) {
  .nv-teaser__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nv-object {
    display: none;
  }
}
