/* ==========================================================================
   Astro Tantra Mantra — content pages
   Shared by every generated page: hubs, life solutions, doshas, rashis,
   nakshatras and remedies. Loaded after site.css.
   ========================================================================== */

/* ---------- breadcrumb ---------- */
.breadcrumb {
  padding-top: 18px;
  font-size: 0.82rem;
  color: var(--navy-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }

.breadcrumb li + li::before {
  content: "/";
  color: var(--navy-muted);
  opacity: 0.55;
}

.breadcrumb a {
  color: var(--navy-soft);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb a:hover { color: var(--teal); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--navy); font-weight: 500; }

/* ---------- page head ---------- */
.page { padding-bottom: 4px; }

.page-head {
  padding-top: 20px;
  padding-bottom: 6px;
  max-width: 54rem;
}

.kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.page-head h1 {
  font-size: clamp(1.95rem, 6.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  margin-top: 14px;
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--navy-soft);
  max-width: 46rem;
  text-wrap: pretty;
}

.meta-line {
  margin-top: 14px;
  font-size: 0.79rem;
  color: var(--navy-muted);
}

/* ---------- two-column page ---------- */
.page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 24px;
}

@media (min-width: 960px) {
  .page-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 46px;
    align-items: start;
  }
  .rail {
    position: sticky;
    top: calc(var(--header-h) + 22px);
  }
}

/* ---------- prose ---------- */
.prose { max-width: 46rem; min-width: 0; }

.prose section + section { margin-top: 36px; }

.prose h2 {
  font-size: clamp(1.34rem, 4.2vw, 1.68rem);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 20px 0 8px;
  color: var(--navy);
}

.prose p {
  margin-bottom: 12px;
  color: var(--navy);
}

.prose p:last-child { margin-bottom: 0; }

.prose ul,
.prose ol {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}
.prose li + li { margin-top: 6px; }

.prose a {
  color: var(--teal);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover { color: var(--teal-dark); }

.prose .note {
  font-size: 0.84rem;
  color: var(--navy-muted);
  background: var(--ivory-deep);
  border-radius: 9px;
  padding: 10px 12px;
}

/* ---------- answer-first block ---------- */
.answer-box {
  background: var(--teal-tint);
  border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
}

.answer-box h2 {
  font-family: var(--font-body);
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 8px;
}

.answer-box p {
  font-size: 1.03rem;
  line-height: 1.62;
  color: var(--navy);
}

/* ---------- facts table ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(23, 36, 71, 0.1);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}

table.facts {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.facts th,
table.facts td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(23, 36, 71, 0.08);
  vertical-align: top;
}

table.facts tr:last-child th,
table.facts tr:last-child td { border-bottom: 0; }

table.facts th {
  width: 36%;
  font-weight: 700;
  color: var(--navy-soft);
  background: var(--ivory);
}

table.facts td { color: var(--navy); }

/* ---------- lists ---------- */
.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  position: relative;
  padding-left: 27px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.95rem;
}

.step-list {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 43px;
  margin-bottom: 13px;
  min-height: 28px;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 4px;
}

@media (min-width: 700px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(23, 36, 71, 0.1);
  border-radius: 14px;
  padding: 18px 18px 16px;
  text-decoration: none;
  color: var(--navy);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), border-color 0.16s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-soft);
}

.card-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 6px;
}

.card p {
  font-size: 0.89rem;
  line-height: 1.55;
  color: var(--navy-soft);
  margin-bottom: 10px;
  flex: 1 1 auto;
}

.card-more {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
}

/* ---------- pills ---------- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pill {
  display: inline-block;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy-soft);
  text-decoration: none;
  background: transparent;
}

.pill:hover {
  background: var(--gold-faint);
  color: var(--navy);
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid rgba(23, 36, 71, 0.1);
  margin-top: 4px;
}

.faq details { border-bottom: 1px solid rgba(23, 36, 71, 0.1); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 36px 15px 0;
  position: relative;
  font-weight: 500;
  line-height: 1.45;
  color: var(--navy);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 11px;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--teal);
}

.faq details[open] summary::after { content: "−"; }

.faq .faq-a {
  padding: 0 0 16px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--navy-soft);
  max-width: 42rem;
}

/* ---------- rail ---------- */
.rail { min-width: 0; }

.rail-card {
  background: var(--white);
  border: 1px solid rgba(23, 36, 71, 0.1);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.rail-card + .rail-card { margin-top: 14px; }

.rail-card h2 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.rail-card p {
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--navy-soft);
  margin-bottom: 12px;
}

.rail-card .btn-primary {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9rem;
}

.rail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rail-list li + li {
  margin-top: 8px;
  border-top: 1px solid rgba(23, 36, 71, 0.07);
  padding-top: 8px;
}

.rail-list a {
  color: var(--teal);
  font-size: 0.87rem;
  text-decoration: none;
  line-height: 1.4;
  display: block;
}
.rail-list a:hover { text-decoration: underline; }

/* ---------- hub sections ---------- */
.hub-section { margin-top: 38px; }

.hub-section > h2 {
  font-size: clamp(1.3rem, 4.4vw, 1.62rem);
  margin-bottom: 10px;
}

.hub-section > p {
  margin-bottom: 14px;
  color: var(--navy-soft);
  max-width: 46rem;
}

.hub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

@media (min-width: 700px) {
  .hub-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.hub-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(23, 36, 71, 0.09);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  font-size: 0.93rem;
}

.hub-list a:hover {
  border-color: var(--gold-soft);
  background: var(--ivory);
}

.hub-list .count {
  font-size: 0.76rem;
  color: var(--navy-muted);
  white-space: nowrap;
}

/* ---------- pager ---------- */
.pager {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 36, 71, 0.1);
}

.pager a {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.pager a:hover { text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band {
  margin-top: 44px;
  background: var(--navy);
  color: var(--ivory);
  border-radius: 18px;
  padding: 26px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  color: var(--ivory);
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  margin-bottom: 6px;
}

.cta-band p {
  color: rgba(250, 248, 242, 0.82);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 42rem;
}

.cta-band .btn-primary {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--navy);
  box-shadow: none;
  flex: 0 0 auto;
}

.cta-band .btn-primary:hover {
  background: var(--ivory-deep);
  border-color: var(--ivory-deep);
}

/* ---------- fine print ---------- */
.disclaimer {
  margin-top: 28px;
  font-size: 0.79rem;
  line-height: 1.55;
  color: var(--navy-muted);
  max-width: 52rem;
}

.footer-fine {
  margin-top: 14px;
  font-size: 0.76rem;
  color: var(--navy-muted);
}

/* ---------- header tweaks for many links ---------- */
@media (max-width: 960px) {
  .header-nav .nav-optional { display: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 520px) {
  .page-head { padding-top: 14px; }
  .answer-box { padding: 16px; }
  .cta-band { padding: 22px 18px; border-radius: 14px; }
  .cta-band .btn-primary { width: 100%; }
  .rail { display: none; }
  .page-grid { gap: 0; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .rail, .cta-band, .breadcrumb { display: none; }
  .page-grid { display: block; }
  .prose { max-width: none; }
  body { background: #fff; }
  .answer-box { border: 1px solid #999; background: #fff; }
  .faq details { break-inside: avoid; }
  .faq .faq-a { display: block; }
}
