/* ═══════════════════════════════════════
   WOBAZI — BaZi Chart: Today's teaser cards (app/chart-tabs.js)
   Site tokens only (public/css/tokens.css, system.css): --bg-card, --card-line, --gold, --radius-lg,
   --pad-card, the --t-* type roles. No new colours or fonts.
═══════════════════════════════════════ */
.ct-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .ct-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ct-card {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: var(--pad-card, 16px); border-radius: var(--radius-lg, 14px);
  background: var(--bg-card); border: 1px solid var(--card-line, var(--border));
  color: inherit; text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.ct-card:hover, .ct-card:focus-visible { border-color: var(--gold); }
.ct-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ct-card:active { transform: scale(0.99); }
.ct-kicker { font-size: var(--t-label, 11px); letter-spacing: var(--t-track, .12em); text-transform: uppercase; color: var(--m5); font-weight: 600; }
.ct-label { font-size: var(--t-small, 13px); color: var(--m5); margin-top: 4px; }
.ct-title { font-size: var(--t-title, 17px); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.ct-sub { font-size: var(--t-small, 13px); color: var(--m5); line-height: 1.45; }
.ct-score { color: var(--gold); font-variant-numeric: tabular-nums; }
.ct-q { font-weight: 500; }
.ct-go { margin-top: auto; padding-top: 8px; font-size: var(--t-small, 13px); font-weight: 600; color: var(--gold); }
.ct-locked .ct-title { color: var(--m5); }
@media (prefers-reduced-motion: reduce) { .ct-card { transition: none; } .ct-card:active { transform: none; } }

/* ── Three tabs (html.chart3, server flag LEGACY_CHART_TABS=false; app/script.js chart3*) ──
   Today · Me · Forecast. The old tab buttons and the chips for sections that moved are hidden, not
   removed, so LEGACY_CHART_TABS unset brings the old layout back. */
html.chart3 #tab-btn-you,
html.chart3 #tab-btn-actions,
html.chart3 #tab-btn-relationships,
html.chart3 #tab-btn-oracle,
html.chart3 .results-toc-chip.ct-old,
html.chart3 #res-actions-preview .btn-see-all,
html.chart3 #res-actions-preview .tap-actions-link { display: none !important; }
html:not(.chart3) .ct-new { display: none !important; }
html:not(.chart3) #res-today-teasers { display: none !important; }
/* system.css orders the old tab row (Chart 1, Today 2 …); the new row reads Today · Me · Forecast. */
html.chart3 .tab-bar-inner #tab-btn-today { order: 1; }
html.chart3 .tab-bar-inner #tab-btn-me { order: 2; }
html.chart3 .tab-bar-inner #tab-btn-forecast { order: 3; }

/* Focus: Love → People (2026-11-23): the old tabs show My People and pets here; the three tabs show the
   card into the People and PetBazi apps instead (those sections belong to the apps now). */
html:not(.chart3) #res-people-cta,
html.chart3 #results.path-on #res-rel-people,
html.chart3 #results.path-on #res-rel-pets { display: none !important; }
@media (min-width: 720px) { .ct-grid.ct-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
