/* Thematic specialized horoscopes — shared styles (REQ-422, REQ-430).
   Tokens come from dashboard.css :root. Per-component styles
   (vocation-tree, career-timeline, electional-grid) live in their own files. */

.ts-thematic-section {
  margin-bottom: 56px;
  padding: 32px 36px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(28, 25, 48, 0.55), rgba(22, 19, 36, 0.55));
  position: relative;
  overflow: hidden;
}
.ts-thematic-section::before,
.ts-thematic-section::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--gold);
}
.ts-thematic-section::before {
  top: 12px;
  left: 12px;
  border-right: none;
  border-bottom: none;
}
.ts-thematic-section::after {
  bottom: 12px;
  right: 12px;
  border-left: none;
  border-top: none;
}

.ts-thematic-section-title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 0.01em;
  color: var(--gold);
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.ts-thematic-prose {
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}
.ts-thematic-prose .ts-subsection {
  margin-bottom: 32px;
}
.ts-thematic-prose .ts-subsection:last-child {
  margin-bottom: 0;
}
.ts-thematic-prose h2,
.ts-thematic-prose h3,
.ts-thematic-prose h4 {
  font-family: var(--f-display);
  color: var(--gold-soft, var(--gold));
  margin: 24px 0 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.ts-thematic-prose h2 { font-size: 22px; }
.ts-thematic-prose h3 { font-size: 19px; }
.ts-thematic-prose h4 { font-size: 17px; font-style: italic; }
.ts-thematic-prose p {
  margin: 0 0 16px;
}
.ts-thematic-prose strong {
  color: var(--gold);
  font-weight: 600;
}
.ts-thematic-prose em {
  color: var(--text-2);
  font-style: italic;
}

/* Section IV — three-tier hierarchy uses bold names + indented rationale */
.ts-thematic-vocations strong {
  display: block;
  margin-top: 18px;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 18px;
  font-weight: 600;
}

/* Generic graphic container — child component fills it */
.ts-thematic-graphic {
  margin: 28px 0;
  padding: 0;
}

/* Partial-status banner */
.ts-thematic-partial-banner {
  margin: 24px 0;
  padding: 14px 22px;
  border: 1px solid rgba(168, 135, 46, 0.4);
  background: rgba(168, 135, 46, 0.06);
  font-family: var(--f-sans);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.ts-thematic-regen {
  padding: 8px 18px;
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--gold-dim);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: all var(--t) var(--ease);
}
.ts-thematic-regen:hover {
  background: var(--gold);
  color: var(--bg);
}

/* Action row at the bottom of the page */
.ts-thematic-actions {
  margin-top: 48px;
  text-align: center;
}
.ts-thematic-action {
  display: inline-block;
  padding: 14px 38px;
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--gold-dim);
  background: transparent;
  color: var(--gold);
  text-decoration: none;
  transition: all var(--t) var(--ease);
}
.ts-thematic-action:hover {
  background: var(--gold);
  color: var(--bg);
}

/* Per-section static natal-wheel CSS moved to
 * `static/css/section-wheels.css` and loaded by
 * `_natal_wheel_globals.html` so every premium template gets it. */

/* ============================================================
   The career-month block — the entry point and the list of months
   already read for this career reading. Lives on the reading rather
   than the dashboard: the list is scoped to one subject, so a global
   one would make every row restate whose months these are.
   Mirrors the relationship-month block in `compatibility-result.css`.
   ============================================================ */

body.ts-dashboard .cm-section-note {
  font-family: var(--f-sans);
  font-size: .82rem;
  line-height: 1.5;
  color: var(--text-3);
  margin: -.4rem 0 1.2rem;
  max-width: 46em;
}

body.ts-dashboard .cm-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.6rem;
}

body.ts-dashboard .cm-start-label {
  font-family: var(--f-sans);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Month + year selects. Deliberately NOT `<input type="month">`: that control
   renders its month names in the browser's language, not the page's. */
body.ts-dashboard .cm-start-select {
  font-family: var(--f-sans);
  font-size: .9rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .45rem .6rem;
  cursor: pointer;
  /* Keeps the popup list dark on platforms that paint it from the scheme. */
  color-scheme: dark;
  transition: border-color var(--t) var(--ease);
}

body.ts-dashboard .cm-start-select:hover,
body.ts-dashboard .cm-start-select:focus-visible {
  border-color: var(--gold-dim);
  outline: none;
}

body.ts-dashboard .cm-start-select#cm-year { font-family: var(--f-mono); }

body.ts-dashboard .cm-start-button {
  font-family: var(--f-sans);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  border: none;
  border-radius: 2px;
  padding: .55rem 1.1rem;
  cursor: pointer;
  transition: background var(--t) var(--ease);
}

body.ts-dashboard .cm-start-button:hover { background: var(--gold-2); }

/* The charge-on-delivery note under the priced button (REQ-601). Quieter than
   the section note above the form — it explains the price, it does not sell. */
body.ts-dashboard .cm-price-note {
  font-family: var(--f-sans);
  font-size: .74rem;
  line-height: 1.5;
  color: var(--text-3);
  margin: -1.1rem 0 1.4rem;
  max-width: 46em;
}

body.ts-dashboard .cm-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

body.ts-dashboard .cm-list-link {
  display: grid;
  grid-template-columns: 9rem 1fr;
  align-items: baseline;
  gap: .8rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  text-decoration: none;
  transition: border-color var(--t) var(--ease);
}

body.ts-dashboard .cm-list-link:hover { border-color: var(--gold-dim); }

body.ts-dashboard .cm-list-period {
  font-family: var(--f-display);
  font-size: 1.02rem;
  color: var(--gold);
}

body.ts-dashboard .cm-list-summary {
  font-family: var(--f-sans);
  font-size: .82rem;
  line-height: 1.45;
  color: var(--text-2);
}

body.ts-dashboard .cm-list-status {
  font-family: var(--f-sans);
  font-size: .78rem;
  color: var(--text-3);
}

body.ts-dashboard .cm-list-empty {
  font-family: var(--f-sans);
  font-size: .84rem;
  color: var(--text-3);
}

@media (max-width: 640px) {
  body.ts-dashboard .cm-list-link {
    grid-template-columns: 1fr;
    gap: .4rem;
  }
}
