/* ===== Wealth Habits Poster (post-scoped, full-bleed) ===== */

.whp-bleed {
  --whp-bg: #0f172a;
  --whp-card-bg: rgba(30, 41, 59, 0.72);
  --whp-accent: #fbbf24;
  --whp-text: #f8fafc;
  --whp-muted: #94a3b8;

  width: 100vw;
  max-width: 100vw;
  margin: 3rem calc(50% - 50vw);
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 85% -15%, rgba(251, 191, 36, 0.1), transparent 65%),
    radial-gradient(circle at top right, #1e293b 0%, var(--whp-bg) 70%);
  color: var(--whp-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  text-align: left;
}

@supports selector(:has(*)) {
  html:has(.whp-bleed) {
    overflow-x: clip;
  }
}

.whp-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3.2vw, 3.75rem);
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(2rem, 4.5vw, 5rem) clamp(1.25rem, 4vw, 5rem);
}

/* Header */
.whp-head {
  border-left: 8px solid var(--whp-accent);
  padding-left: clamp(1rem, 1.9vw, 1.875rem);
}

article .content .whp-title {
  margin: 0 0 0.5rem;
  color: var(--whp-text);
  font-size: clamp(1.9rem, 3.8vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

article .content .whp-sub {
  margin: 0;
  color: var(--whp-accent);
  font-size: clamp(0.95rem, 1.5vw, 1.75rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-align: left;
  hyphens: none;
}

/* Cards */
.whp-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 1.9vw, 1.875rem);
}

.whp-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.2vw, 2.5rem) clamp(1rem, 1.6vw, 1.875rem);
  background: var(--whp-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s ease,
    background-color 0.4s ease,
    box-shadow 0.4s ease;
}

@media (hover: hover) {
  .whp-card:hover {
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.88);
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  }
}

.whp-num {
  margin-bottom: clamp(0.75rem, 1.2vw, 1.25rem);
  color: rgba(251, 191, 36, 0.18);
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

article .content .whp-card-title {
  margin: 0 0 clamp(0.6rem, 1vw, 1.25rem);
  color: var(--whp-text);
  font-size: clamp(1.15rem, 1.7vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}

article .content .whp-lead {
  margin: 0 0 0.75em;
  color: var(--whp-accent);
  font-size: clamp(0.9rem, 1.1vw, 1.125rem);
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  hyphens: none;
}

article .content .whp-desc {
  flex: 1;
  margin: 0;
  color: var(--whp-muted);
  font-size: clamp(0.85rem, 1vw, 1.0625rem);
  line-height: 1.75;
  text-align: left;
  hyphens: none;
}

/* Footer */
.whp-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.25rem, 2.8vw, 2.5rem);
  padding-top: clamp(1.25rem, 2.2vw, 1.875rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.whp-formula {
  padding: clamp(1rem, 1.5vw, 1.25rem) clamp(1.25rem, 2.4vw, 2.5rem);
  background: rgba(251, 191, 36, 0.1);
  border-left: 4px solid var(--whp-accent);
  border-radius: 16px;
}

article .content .whp-formula-label {
  margin: 0 0 0.4rem;
  color: var(--whp-muted);
  font-size: clamp(0.7rem, 0.85vw, 0.95rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: left;
  hyphens: none;
}

article .content .whp-formula-text {
  margin: 0;
  color: var(--whp-accent);
  font-size: clamp(1rem, 1.35vw, 1.625rem);
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  hyphens: none;
}

article .content .whp-quote {
  margin: 0;
  padding: 0;
  background: none;
  color: var(--whp-text);
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  text-align: right;
  hyphens: none;
}

article .content .whp-quote::before {
  content: none;
  display: none;
}

/* Responsive grid */
@media (max-width: 1199px) and (min-width: 900px) {
  /* 6 tracks, 2 per card: three cards per row, last two centered */
  .whp-cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .whp-card {
    grid-column: span 2;
  }

  .whp-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .whp-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

@media (max-width: 899px) and (min-width: 600px) {
  /* 4 tracks, 2 per card: two cards per row, last one centered */
  .whp-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .whp-card {
    grid-column: span 2;
  }

  .whp-card:nth-child(5) {
    grid-column: 2 / span 2;
  }
}

@media (max-width: 899px) {
  article .content .whp-quote {
    text-align: left;
  }
}

@media (max-width: 599px) {
  .whp-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .whp-card {
    transition: none;
  }

  .whp-card:hover {
    transform: none;
  }
}
