/* The Readings page (/readings/): hero, the grouped list with its sticky detail panel, how a reading is made, and
   the free-versus-paid table. Design: Readings.dc.html. Tokens only (nocturne.css); both themes. */

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

/* ---- Hero ---- */
.rd-hero { gap: 0; padding-bottom: 0; }
.rd-hero h1 { margin-top: 16px; max-width: 14em; }
.rd-lead { max-width: 58ch; margin-top: 20px; }
.rd-assure { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--color-neutral-200); }
.rd-assure li { display: flex; align-items: center; gap: 8px; }
.rd-assure .icon { width: 18px; height: 18px; }
.rd-soon { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; max-width: 62ch; }
.rd-soon .icon { width: 16px; height: 16px; margin-top: 2px; }

/* ---- The list and the detail panel ---- */
.rd-shop { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px clamp(28px, 4vw, 56px); }
.rd-list { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.rd-group-head { display: flex; align-items: baseline; gap: 10px; margin: 0; font-family: var(--font-body); letter-spacing: 0.06em; }
.rd-count { color: var(--text-faint); }
.rd-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: var(--gap-grid-dense); margin-top: 10px; }
.rd-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--radius-md);
  font: inherit; text-align: left; cursor: pointer; color: var(--text-strong);
  background: var(--color-surface); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.rd-row:hover { transform: var(--lift); }
.rd-row[aria-pressed="true"] { background: var(--fill-selected); box-shadow: var(--ring-selected); }
.rd-row:focus-visible { outline-offset: 2px; }
.rd-row-planet { width: 42px; height: 42px; }
.rd-row-text { flex: 1; min-width: 0; }
.rd-row-name { display: block; font-size: 15px; font-weight: 500; line-height: 1.25; }
.rd-row-short { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--text-meta); }
.rd-row-price { flex: none; font-size: 14px; color: var(--text-accent); }

.rd-detail {
  flex: 1.25 1 420px; min-width: 0; position: sticky; top: 124px; scroll-margin-top: 124px;
  display: flex; flex-direction: column; gap: 22px;
  padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-feature);
}
.rd-detail:focus { outline: none; }
.rd-detail:empty { display: none; }
.rd-detail-head { display: flex; align-items: center; gap: 18px; }
.rd-detail-planet { width: 84px; height: 84px; }
.rd-detail-name { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }
.rd-desc { font-size: var(--fs-body); line-height: 1.65; color: var(--text-body); }
.rd-detail h3.kicker { font-family: var(--font-body); font-weight: 400; }

/* "What's inside": numbered rows with fading rules (shared look with the previews' locked panel). */
.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: 10px 0; background: var(--rule) 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); }

.rd-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 20px; margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.45; color: var(--text-body); }
.rd-trust li { display: flex; gap: 8px; }
.rd-trust .icon { width: 17px; height: 17px; margin-top: 1px; }

.rd-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding-top: 18px; background: var(--rule-divider) no-repeat top / 100% 1px; }
.rd-price { display: flex; flex-direction: column; gap: 2px; }
.rd-price .value { font-size: 28px; color: var(--text-accent); }
.rd-price-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-meta); }
.rd-price-note .icon { width: 15px; height: 15px; color: var(--text-meta); }
.rd-cta { min-height: 44px; padding: 10px 20px; font-size: 15px; background: color-mix(in srgb, var(--color-accent) 10%, transparent); white-space: normal; text-align: center; }
.rd-buy-note { margin-top: -10px; }

@media (max-width: 899px) {
  .rd-detail { position: static; }
}
@media (max-width: 520px) {
  .rd-detail-head { gap: 14px; }
  .rd-detail-planet { width: 64px; height: 64px; }
  .rd-cta { width: 100%; }
}

/* ---- How a reading is made ---- */
.rd-how { padding-top: clamp(8px, 2vw, 16px); }
.rd-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 28px clamp(28px, 4vw, 56px); margin: 4px 0 0; padding: 0; list-style: none; }
.rd-step-n { display: block; font: var(--font-heading-weight) 44px/1 var(--font-heading); color: var(--color-accent-400); font-feature-settings: "tnum" 1; }
.rd-steps h3 { margin-top: 14px; font: 500 18px/1.3 var(--font-body); letter-spacing: 0; }
.rd-steps p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--text-body); }
.rd-how-link { align-self: flex-start; }

/* ---- Free and paid ---- */
.rd-table { min-width: 560px; }
.rd-table tbody th { text-align: left; font-weight: 500; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--text-strong); padding: 12px; vertical-align: top; width: 20%; }
.rd-table td { vertical-align: top; padding-block: 12px; line-height: 1.5; }
.rd-table thead th { padding-block: 12px; }

@media (prefers-reduced-motion: reduce) { .rd-row { transition: none; } .rd-row:hover { transform: none; } }

/* Bundle line under a group, and the sample link in the detail panel. */
.rd-bundle { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--color-accent-700); font-size: 14px; line-height: 1.45; color: var(--text-strong); }
.rd-bundle .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--text-accent); }
.rd-bundle strong { font-weight: 500; }
.rd-bundle .num { color: var(--text-accent); }
.rd-bundle .meta .num { color: inherit; }
.rd-sample { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; }
.rd-sample .icon { flex: none; width: 18px; height: 18px; color: var(--text-accent); }

/* The sample reading page. */
.sample-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px clamp(28px, 4vw, 56px); }
.sample-grid > article { flex: 2 1 480px; min-width: 0; }
.sample-side { flex: 1 1 280px; position: sticky; top: 120px; }
.sample-chart { display: grid; gap: 10px; margin: 0; }
.sample-chart dd { margin: 2px 0 0; font-size: 15px; color: var(--text-strong); }
.sample-get { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.45; color: var(--text-body); }
.sample-get li { display: flex; gap: 10px; }
.sample-get .icon { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--text-accent); }
.sample-next { margin-top: 48px; padding: clamp(22px, 3vw, 36px); }
@media (max-width: 899px) { .sample-side { position: static; } }
