/* Vishnu Sahasranamam page — devotional layout, saffron accent over the site's dark base */
:root {
  --saffron: #e8933a;
  --saffron-soft: #f2b979;
  --deep: #0c130f;
  --panel: #14201a;
  --panel-2: #1a2820;
}

.vs-body { background: var(--deep); }

/* Subpage header reuses site nav look */
.vs-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 1.4rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.vs-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(232, 147, 58, 0.28), transparent 60%),
    radial-gradient(70% 60% at 50% 120%, rgba(107, 191, 138, 0.14), transparent 60%),
    linear-gradient(180deg, #12100a, #0c130f);
}
.vs-om {
  position: relative;
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 9vw, 5rem);
  color: var(--saffron);
  line-height: 1;
  margin-bottom: 0.6rem;
  text-shadow: 0 6px 30px rgba(232, 147, 58, 0.4);
}
.vs-hero h1 {
  position: relative;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 0.3rem;
}
.vs-hero .sanskrit-title {
  position: relative;
  color: var(--saffron-soft);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  letter-spacing: 0.02em;
}
.vs-hero .vs-sub {
  position: relative;
  color: var(--muted);
  max-width: 60ch;
  margin: 1.2rem auto 0;
}
.vs-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.8rem;
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px solid var(--line);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.vs-back:hover { border-color: var(--saffron); color: var(--text); }

.vs-featured-image {
  margin: 0 0 2.8rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel);
}
.vs-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}
.vs-featured-image figcaption {
  padding: 1rem 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.vs-wrap { max-width: 860px; margin: 0 auto; padding: 3.5rem 1.4rem; }

.vs-lead { font-size: 1.15rem; color: var(--text); }
.vs-lead .drop {
  float: left;
  font-family: "Fraunces", serif;
  font-size: 3.4rem;
  line-height: 0.8;
  padding: 0.35rem 0.6rem 0 0;
  color: var(--saffron);
}

.vs-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}
.vs-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem;
}
.vs-panel h3 {
  font-size: 1.05rem;
  color: var(--saffron-soft);
  margin-bottom: 0.4rem;
}
.vs-panel p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.vs-section-title {
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 3.5rem 0 0.4rem;
  text-align: center;
}
.vs-section-title.first { margin-top: 1rem; }
.vs-section-note { text-align: center; color: var(--muted); margin: 0 0 2rem; font-size: 0.95rem; }

/* Dhyanam / invocation block */
.vs-invocation {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-left: 3px solid var(--saffron);
  border-radius: 0 14px 14px 0;
  padding: 1.6rem 1.8rem;
  margin-bottom: 1rem;
}
.vs-invocation .sk {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--saffron-soft);
  font-style: italic;
  margin: 0 0 0.6rem;
}
.vs-invocation .en { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Contents / verse index */
.vs-contents {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 2.5rem 0;
}
.vs-contents .vs-contents-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}
.vs-contents h3 {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  color: var(--saffron-soft);
  margin: 0;
}
.vs-quicklinks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.vs-quicklinks a {
  text-decoration: none;
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.vs-quicklinks a:hover { border-color: var(--saffron); color: var(--text); }

.vs-jump {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.vs-jump label { color: var(--muted); font-size: 0.9rem; }
.vs-jump input {
  width: 5rem;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 0.4rem 0.6rem;
  font: inherit;
}
.vs-jump input:focus { outline: none; border-color: var(--saffron); }
.vs-jump button {
  background: var(--saffron);
  color: var(--deep);
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.vs-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.4rem, 1fr));
  gap: 0.4rem;
}
.vs-index-grid a {
  text-decoration: none;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.vs-index-grid a:hover {
  background: var(--saffron);
  color: var(--deep);
  border-color: var(--saffron);
}

/* Verse list */
.vs-verses { margin-top: 1.5rem; }
.vs-verse {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.vs-verse:target {
  background: rgba(232, 147, 58, 0.08);
  border-radius: 12px;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
}
.vs-verse:target .vs-num {
  box-shadow: 0 0 0 4px rgba(232, 147, 58, 0.25);
}
.vs-num {
  font-family: "Fraunces", serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep);
  background: var(--saffron);
  width: 2.2rem; height: 2.2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.vs-verse .sk {
  font-family: "Fraunces", serif;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0.1rem 0 0.55rem;
}
.vs-verse .en { color: var(--muted); font-size: 0.96rem; line-height: 1.55; margin: 0; }

.vs-closing {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.vs-closing .sk {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--saffron-soft);
  margin: 0 0 0.5rem;
}
.vs-closing .en { color: var(--muted); margin: 0; }

.vs-disclaimer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 2rem;
}

/* Back-to-top */
.vs-top {
  position: fixed;
  right: 1.2rem; bottom: 1.2rem;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--saffron);
  color: var(--deep);
  border: 0;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(232, 147, 58, 0.35);
  z-index: 50;
}
.vs-top.show { display: flex; }

@media (max-width: 600px) {
  .vs-verse { grid-template-columns: 1fr; gap: 0.5rem; }
  .vs-num { width: 2rem; height: 2rem; font-size: 0.9rem; }
}
