/* ============================================================
   The Wealth Mosaic — Themes index (.th-*) + Theme detail (.tc-*)
   ------------------------------------------------------------
   Built on the global design tokens in styles.css (--ink, --magenta,
   --navy, --rule, --bg-soft, --radius…). Shared components
   (.eyebrow, .btn-text, .btn-lg, .featured-card, .tier-badge,
   .mp-stats, .mp-section-head__*) come from marketplace.css, which
   both theme pages also link. This file only adds what's unique to
   the theme pages.
   ============================================================ */

/* These pages put an explicit .mp-section-head__chev inside .section-head
   headings, so suppress the global ::before chevron to avoid doubling. */
.themes-page .section-head h2::before,
.theme-page .section-head h2::before { content: none; }

/* ============================================================
   THEMES INDEX
   ============================================================ */

/* Hero */
.th-hero { padding: 48px 0 36px; }
.th-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.th-hero__copy h1 {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.08;
  margin: 10px 0 18px;
  color: var(--ink);
}
.th-hero__copy h1 em { font-style: normal; color: var(--magenta); }
.th-hero__lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 26px;
}
.th-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.th-hero__stats li { display: flex; flex-direction: column; gap: 2px; }
.th-hero__stats strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.th-hero__stats span { font-size: 12.5px; color: var(--muted); }
.th-hero__art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.th-hero__tile {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px -16px rgba(16, 21, 36, .28);
}
.th-hero__tile--2, .th-hero__tile--4 { transform: translateY(26px); }

/* Filter bar */
.th-filters {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: #fff;
}
.th-filters__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.th-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: 100px;
  flex-wrap: wrap;
}
.th-tab {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background .15s ease, color .15s ease;
}
.th-tab span { font-size: 11px; font-weight: 700; color: var(--muted); }
.th-tab:hover { color: var(--ink); }
.th-tab--active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 21, 36, .14); }
.th-tab--active span { color: var(--magenta); }
.th-filters__selects { display: flex; gap: 10px; flex-wrap: wrap; }

/* Featured theme */
.th-featured { padding: 40px 0 8px; }
.th-feat {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
}
.th-feat:hover { box-shadow: 0 18px 44px -20px rgba(16, 21, 36, .22); transform: translateY(-2px); }
.th-feat__art { position: relative; min-height: 300px; background: var(--bg-soft); }
.th-feat__art img { width: 100%; height: 100%; object-fit: cover; }
.th-feat__pin {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--magenta);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
}
.th-feat__copy { padding: 34px 36px; display: flex; flex-direction: column; }
.th-feat__copy h2 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  letter-spacing: -.018em;
  margin: 6px 0 12px;
  color: var(--ink);
}
.th-feat__copy p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 18px; }
.th-feat__needs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; }
.th-feat__needs li {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  padding: 5px 11px;
  border-radius: 100px;
}
.th-feat__stats { display: flex; gap: 24px; margin: 0 0 20px; }
.th-feat__stats span { font-size: 13px; color: var(--muted); }
.th-feat__stats strong { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.th-feat__cta { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--magenta); }
.th-feat:hover .th-feat__cta { color: var(--magenta-2); }

/* All themes grid */
.th-all { padding: 40px 0 56px; }
.th-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.th-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.th-card:hover { box-shadow: 0 16px 36px -18px rgba(16, 21, 36, .2); transform: translateY(-3px); border-color: #d6dae0; }
.th-card__art {
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  border-bottom: 3px solid var(--th-accent, var(--magenta));
  overflow: hidden;
}
.th-card__art img { width: 100%; height: 100%; object-fit: cover; }
.th-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.th-card__tag {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--th-accent, var(--magenta));
  background: color-mix(in srgb, var(--th-accent, var(--magenta)) 12%, #fff);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.th-card__body h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; margin: 0 0 8px; color: var(--ink); }
.th-card__body p { font-size: 13px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 16px; }
.th-card__stats {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 14px 0 0;
  margin: auto 0 0;
  border-top: 1px solid var(--rule-soft);
}
.th-card__stats li { font-size: 12px; color: var(--muted); }
.th-card__stats strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Suggest a theme band */
.th-suggest { background: var(--navy); color: #fff; padding: 52px 0; }
.th-suggest__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.th-suggest__copy .eyebrow { color: #fff; }
.th-suggest__copy h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 12px; color: #fff; }
.th-suggest__copy p { font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .8); max-width: 56ch; margin: 0 0 24px; }
.th-suggest__ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.th-suggest__ctas .btn-text { color: #fff; }
.th-suggest__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.th-suggest__list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
}
.th-suggest__list strong { font-size: 14px; font-weight: 700; color: #fff; }
.th-suggest__list span { font-size: 12.5px; color: rgba(255, 255, 255, .7); }

/* ============================================================
   THEME DETAIL
   ============================================================ */

/* Hero */
.tc-hero { padding: 44px 0 40px; }
.tc-hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.tc-hero__copy h1 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.1;
  margin: 8px 0 16px;
  color: var(--ink);
}
.tc-hero__lede { font-size: 16px; line-height: 1.6; color: var(--ink-soft); max-width: 58ch; margin: 0 0 24px; }
.tc-hero__stats { display: flex; flex-wrap: wrap; gap: 30px; list-style: none; margin: 0 0 26px; padding: 0; }
.tc-hero__stats li { display: flex; flex-direction: column; gap: 2px; }
.tc-hero__stats strong { font-size: 24px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.tc-hero__stats span { font-size: 12.5px; color: var(--muted); }
.tc-hero__ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.tc-hero__art { display: flex; justify-content: center; }
.tc-hero__plate {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 24px 60px -28px rgba(16, 21, 36, .4);
}
.tc-hero__plate img { width: 100%; height: 100%; object-fit: cover; }

/* In-page tabs */
.tc-tabs { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #fff; }
.tc-tabs__inner { display: flex; gap: 6px; overflow-x: auto; }
.tc-tab {
  padding: 16px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color .15s ease, border-color .15s ease;
}
.tc-tab span { font-size: 11px; font-weight: 700; color: var(--muted); }
.tc-tab:hover { color: var(--ink); }
.tc-tab--active { color: var(--magenta); border-bottom-color: var(--magenta); }
.tc-tab--active span { color: var(--magenta); }

/* Overview + sidebar */
.tc-overview { padding: 48px 0; }
.tc-overview__inner { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.tc-prose h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: var(--ink); }
.tc-prose p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 18px; }
.tc-prose h3 { font-size: 17px; font-weight: 700; margin: 26px 0 12px; color: var(--ink); }
.tc-prose ol { padding-left: 22px; margin: 0; display: grid; gap: 12px; }
.tc-prose ol li { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.tc-prose ol li strong { color: var(--ink); }
.tc-side { display: grid; gap: 18px; }
.tc-side__card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 22px; }
.tc-side__card--accent {
  background: var(--magenta);
  border-color: var(--magenta);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(230, 23, 90, .35);
}
.tc-side__eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tc-side__card--accent .tc-side__eyebrow { color: rgba(255, 255, 255, .8); }
.tc-side__card h4 { font-size: 17px; font-weight: 700; margin: 6px 0 14px; color: var(--ink); }
.tc-side__card--accent h4 { color: #fff; }
.tc-side__card p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 16px; }
.tc-side__card--accent p { color: rgba(255, 255, 255, .9); }
.tc-side__card ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.tc-side__card li { display: flex; flex-direction: column; gap: 2px; }
.tc-side__card li a { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.tc-side__card li a:hover { color: var(--magenta); }
.tc-side__card--accent li a { color: #fff; }
.tc-side__card li span { font-size: 11.5px; color: var(--muted); }
.tc-side__card--accent li span { color: rgba(255, 255, 255, .72); }
.tc-side__link { font-size: 13px; font-weight: 700; color: var(--magenta); }
.tc-side__card--accent .tc-side__link { color: #fff; }
.tc-side__card--accent .btn { background: #fff; color: var(--magenta); }
.tc-side__card--accent .btn:hover { background: #f7f7fa; }

/* Section wrappers (cards inside come from marketplace.css / styles.css) */
.tc-providers, .tc-knowledge, .tc-events, .tc-needs, .tc-related { padding: 42px 0; }

/* Knowledge */
.tc-know-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.tc-know {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 22px;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
}
.tc-know:hover { box-shadow: 0 14px 32px -16px rgba(16, 21, 36, .18); transform: translateY(-2px); }
.tc-know .cat { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--magenta); }
.tc-know h4 { font-size: 16px; font-weight: 700; line-height: 1.35; margin: 2px 0 4px; color: var(--ink); }
.tc-know p { font-size: 13px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.tc-know .byline { font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 6px; }
.tc-know .byline strong { color: var(--ink); font-weight: 600; }

/* Events */
.tc-event-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tc-event {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 18px;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
}
.tc-event:hover { box-shadow: 0 14px 30px -16px rgba(16, 21, 36, .18); transform: translateY(-2px); }
.tc-event__date {
  flex: 0 0 auto;
  width: 54px;
  text-align: center;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tc-event__month { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #31bbc7; }
.tc-event__day { font-size: 22px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.tc-event__body { display: flex; flex-direction: column; gap: 6px; }
.tc-event__type {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--magenta);
  background: #fff2f6;
  padding: 3px 9px;
  border-radius: 100px;
}
.tc-event__type--conf { color: #2c56e0; background: #eaf0ff; }
.tc-event__body h4 { font-size: 14.5px; font-weight: 700; line-height: 1.3; margin: 0; color: var(--ink); }
.tc-event__body p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* Business needs */
.tc-needs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tc-need {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.tc-need:hover { background: #fff; border-color: var(--magenta); transform: translateY(-2px); }
.tc-need strong { font-size: 14px; font-weight: 700; color: var(--ink); }
.tc-need span { font-size: 12px; color: var(--muted); }

/* Related themes */
.tc-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tc-rel {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
}
.tc-rel:hover { box-shadow: 0 14px 30px -16px rgba(16, 21, 36, .18); transform: translateY(-2px); }
.tc-rel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid var(--th-accent, var(--magenta)); }
.tc-rel h4 { font-size: 14.5px; font-weight: 700; line-height: 1.3; margin: 14px 16px 4px; color: var(--ink); }
.tc-rel span { font-size: 12px; color: var(--muted); margin: 0 16px 16px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .th-hero__inner, .tc-hero__inner, .tc-overview__inner,
  .th-suggest__inner, .th-feat, .tc-know-grid { grid-template-columns: 1fr; gap: 32px; }
  .th-grid { grid-template-columns: repeat(2, 1fr); }
  .tc-event-row { grid-template-columns: repeat(2, 1fr); }
  .tc-related-grid { grid-template-columns: repeat(2, 1fr); }
  .tc-needs-grid { grid-template-columns: repeat(3, 1fr); }
  .th-feat__art { min-height: 220px; }
}
@media (max-width: 680px) {
  .th-grid, .th-hero__art, .tc-event-row, .tc-related-grid { grid-template-columns: 1fr; }
  .tc-needs-grid { grid-template-columns: repeat(2, 1fr); }
  .th-hero__stats, .tc-hero__stats, .th-feat__stats { gap: 18px; }
  .th-hero__tile--2, .th-hero__tile--4 { transform: none; }
}
