/*
 * The static content pages (/panchang, /festivals, /sevas, /shop), written at deploy time by
 * scripts/seo/generate.cjs. Layered on /legal/legal.css, which carries the palette, type and the
 * light/dark switch, so these pages and the legal pages read as one site.
 */

.sitebar { border-bottom: 1px solid var(--border); background: var(--surface); }
.sitebar-inner {
  max-width: 1040px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap;
}
.sitenav { display: flex; gap: 4px 18px; flex-wrap: wrap; flex: 1; }
.sitenav a { color: var(--text); text-decoration: none; font-size: 15px; padding: 4px 0; }
.sitenav a:hover, .sitenav a[aria-current="page"] { color: var(--accent); }
.sitenav a[aria-current="page"] { font-weight: 650; }

.content { max-width: 1040px; }
.content > section, .content > .cta, .content > .note, .content > table, .content > .pager { max-width: 760px; }

.crumbs ol { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--muted); }
.crumbs li { margin: 0; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { color: var(--muted); }

.content header.masthead { padding: 24px 0 24px; margin-bottom: 28px; }
.eyebrow { color: var(--accent); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0; font-weight: 600; }
.lede { font-size: 19px; margin: 6px 0 10px; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: 14px; }

.button, .appbtn {
  display: inline-block; background: var(--accent); color: var(--bg); text-decoration: none;
  font-weight: 650; border-radius: 999px; padding: 9px 18px; font-size: 15px; line-height: 1.3;
}
.button.big { padding: 13px 26px; font-size: 17px; margin-top: 6px; }
.button:hover, .appbtn:hover { filter: brightness(1.08); }

.cta {
  background: var(--accent-soft); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; margin: 32px 0;
}
.cta p { margin: 0 0 12px; }

/* Label/value tables (Panchang, specs) stay two columns on a phone — the card layout legal.css
   gives prose tables would turn each short fact into a box. */
table.facts { display: table; width: 100%; }
table.facts th { text-transform: none; letter-spacing: 0; font-size: 14px; white-space: normal; width: 40%; }
table.facts td { font-size: 15.5px; }
@media (max-width: 600px) {
  table.facts { display: table; }
  table.facts tbody { display: table-row-group; }
  table.facts tr { display: table-row; background: none; border: 0; padding: 0; margin: 0; }
  table.facts th, table.facts td { display: table-cell; padding: 10px 8px; border-bottom: 1px solid var(--border); }
  table.facts td::before { display: none; }
  table.facts td:first-child { font-weight: normal; }
}

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 14.5px; }

.pager { display: flex; justify-content: space-between; gap: 12px; margin: 28px 0; }

.hero { width: 100%; border-radius: 14px; margin: 0 0 12px; display: block; }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.tier h3 { margin: 0; }
.tier-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tier ul { margin: 8px 0 0; font-size: 15px; }
.badge { background: var(--accent-soft); color: var(--accent); border-radius: 999px; font-size: 12px; padding: 2px 10px; white-space: nowrap; }
.price { font-size: 20px; font-weight: 700; margin: 8px 0 4px; }
.price.big { font-size: 28px; }
.price s { font-weight: 400; font-size: 0.75em; }

dl dt { font-weight: 650; margin-top: 12px; }
dl dd { margin: 2px 0 0; color: var(--text); }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 8px 0 24px; }
.cards.products { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.card.product img { aspect-ratio: 1 / 1; background: #fff; object-fit: contain; }
.card-body { padding: 12px 16px 16px; }
.card h2 { font-size: 19px; margin: 4px 0 6px; padding: 0; }
.card h3 { font-size: 15.5px; margin: 2px 0 4px; line-height: 1.35; }
.card h2 a, .card h3 a { color: var(--text); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--accent); }
.card p { margin: 4px 0; }
.card .price { font-size: 17px; }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px !important; }
.noimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; font-size: 48px; background: var(--accent-soft); }
.noimg.big { font-size: 96px; border-radius: 14px; }

.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin: 24px 0 8px; align-items: start; }
.gallery .lead { width: 100%; border-radius: 14px; background: #fff; display: block; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: #fff; }
.buybox h1 { margin-top: 6px; }

@media (max-width: 760px) {
  .pdp { grid-template-columns: 1fr; }
  .appbtn { padding: 7px 14px; font-size: 14px; }
  .sitebar-inner { padding: 10px 16px; }
}
