/* The five reading previews under /preview/ (reports, forecast, timing, places, partner compatibility): a hero
   with the reading's card, form panels, and the calculated result in cards, tables and tags, with the locked
   written-reading panel. Design language: Readings.dc.html and Birth Chart.dc.html. Tokens only (nocturne.css). */

.preview-page { padding-top: 0; }

/* ---- Hero: text on the left, the reading's card on the right ---- */
.pv-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 28px clamp(32px, 5vw, 64px); align-items: end; padding-bottom: 0; }
.pv-hero-text { display: flex; flex-direction: column; min-width: 0; }
.pv-back { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 14px; text-decoration: none; margin-bottom: 18px; }
.pv-back .icon { width: 14px; height: 14px; }
.pv-hero h1 { margin-top: 14px; max-width: 16em; }
.pv-hero .lead { max-width: 60ch; margin-top: 18px; }
.pv-hero .seg { margin-top: 24px; align-self: flex-start; }
.pv-hero .vedic-from { margin-top: 14px; }
@media (max-width: 860px) { .pv-hero { grid-template-columns: minmax(0, 1fr); align-items: start; } }

.pv-card { flex-direction: row; align-items: flex-start; gap: 16px; padding: 18px 20px; border-radius: var(--radius-lg); }
.pv-card-planet { width: 56px; height: 56px; }
.pv-card-name { font: var(--font-heading-weight) 20px/1.25 var(--font-heading); letter-spacing: -0.02em; color: var(--text-strong); }
.pv-card-price { color: var(--text-accent); }
.pv-card .btn { align-self: flex-start; margin-left: -6px; }

/* ---- Forms ---- */
.pv-form { align-items: start; }
.pv-panel-title { font: 500 18px/1.3 var(--font-body); letter-spacing: 0; color: var(--text-strong); }
.pv-shows { padding-top: 6px; }
.pv-list { list-style: none; margin: 0; padding: 0; }
.pv-list li { display: flex; align-items: flex-start; gap: 14px; padding: 13px 0; background: var(--rule) no-repeat bottom / 100% 1px; font-size: 15px; line-height: 1.5; color: var(--text-body); }
.pv-list li:last-child { background: none; }
.pv-list .icon { width: 22px; height: 22px; margin-top: 1px; }
.pv-list strong { display: block; font-weight: 500; color: var(--text-strong); }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.controls .small { display: inline-flex; align-items: center; gap: 6px; }
.pv-compare { padding: 0; }
.pv-form select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--text-meta) 50%), linear-gradient(135deg, var(--text-meta) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }

/* ---- The result ---- */
.pv-result { scroll-margin-top: 120px; }
.pv-result > .chart-hero { gap: 22px; }
.pv-result-head { display: flex; flex-direction: column; gap: 10px; }
.pv-result-head .cluster { gap: 8px 12px; }
.pv-result-head .dateline { display: inline; font-size: 12px; }
.pv-result-head .meta { max-width: 72ch; }
.pv-result .facts-grid .card .label { color: var(--text-accent); }
.pv-result .facts-grid .card .facts { color: var(--text-strong); }
.pv-result .facts-grid .card .facts span + span { color: var(--text-body); font-size: 14px; }
/* A plain-words line under a card's label saying what the term means. */
.pv-result .card .card-gloss { margin-top: -4px; line-height: 1.4; }
.pv-result .section-head h2 { font-size: clamp(22px, 2.4vw, 28px); }
.planet-cell .planet { width: 26px; height: 26px; }
.planet-cell .planet-gap { display: inline-block; width: 26px; flex: none; }
.pv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 18px; background: var(--rule-divider) no-repeat top / 100% 1px; }

/* Forecast: dated moments with the planet that makes each */
.pv-result .dates li { grid-template-columns: 28px minmax(140px, 180px) minmax(0, 1fr); gap: 14px; }
.pv-result .dates li > span:last-child { color: var(--text-body); }
.pv-result .dates .planet { width: 28px; height: 28px; }
@media (max-width: 560px) { .pv-result .dates li { grid-template-columns: 28px minmax(0, 1fr); row-gap: 2px; } .pv-result .dates li > span:last-child { grid-column: 2; } }

/* Timing: the strongest days and every window */
.pv-result .top-card .value { font-size: 20px; }
.pv-result .days li { grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); }
.pv-result .days details summary { cursor: pointer; color: var(--color-accent); width: fit-content; }
.pv-result .days details p { margin-top: 6px; }

/* Compatibility: the score */
.pv-result .score-line .score-big { color: var(--text-accent); }

/* ---- The written reading, locked until it is on sale ---- */
.locked {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px clamp(20px, 3vw, 32px); align-items: start;
  padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg);
  background: var(--section-glow), var(--color-section); color: var(--text-strong);
}
.locked-planet { width: 72px; height: 72px; }
.locked h2 { font-size: clamp(24px, 2.6vw, 32px); }
.locked .locked-lead { max-width: 62ch; color: var(--text-strong); }
.locked .kicker { color: var(--color-accent-200); margin-top: 6px; }
.locked .meta { color: var(--color-neutral-300); }
.locked .tag-outline { gap: 5px; }
.locked .tag-outline .icon { width: 13px; height: 13px; }
.locked .inside-list { max-width: 560px; }
.locked .btn-ghost { margin-left: -6px; }
@media (max-width: 560px) { .locked { grid-template-columns: minmax(0, 1fr); } .locked-planet { width: 56px; height: 56px; } }

/* "What's inside": numbered rows with fading rules (same look as the Readings page) */
.inside-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.inside-list li { display: flex; align-items: baseline; gap: 14px; padding: 9px 0; background: var(--rule-divider) no-repeat bottom / 100% 1px; font-size: 15px; color: var(--color-neutral-100); }
.inside-list .n { flex: none; width: 22px; font-size: 13px; color: var(--color-accent); }

/* On a phone the report and period choices scroll sideways in one row rather than wrapping. */
@media (max-width: 560px) {
  .pv-hero .wrap-seg { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .pv-hero .wrap-seg::-webkit-scrollbar { display: none; }
}
