@charset "utf-8";
/* CSS Document */

.retirement-phases {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 22px;
  }
  .ret-phase {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    border-radius: 10px;
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 600;
    color: var(--gray);
    background: var(--light);
    border: 1.5px solid var(--gray-l);
    position: relative;
    transition: all .25s;
  }
  .ret-phase.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
  }
  .ret-phase.done {
    background: #e6f4ec;
    border-color: var(--green);
    color: var(--green);
  }
  .ret-phase__years {
    display: block;
    font-size: .68rem;
    font-weight: 400;
    margin-top: 2px;
    opacity: .75;
  }
  .ret-phase-arrow {
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    color: var(--gray-l);
    font-size: .8rem;
  }
 
  /* ── Key metric highlight strip ─────────────────────────── */
  .corpus-highlight {
    background: linear-gradient(135deg, var(--navy), var(--slate));
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .corpus-highlight__label {
    font-size: .82rem;
    color: rgba(255,255,255,.65);
    font-weight: 500;
    margin-bottom: 4px;
  }
  .corpus-highlight__value {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--white);
  }
  .corpus-highlight__sub {
    font-size: .72rem;
    color: rgba(255,255,255,.45);
    margin-top: 3px;
  }
  .corpus-highlight__icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    flex-shrink: 0;
  }
 
  /* ── 3-col mini stats grid ───────────────────────────────── */
  .ret-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }
  .ret-stat-card {
    background: var(--light);
    border: 1px solid var(--gray-l);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
  }
  .ret-stat-card__label {
    font-size: .7rem;
    color: var(--gray);
    margin-bottom: 5px;
    line-height: 1.4;
  }
  .ret-stat-card__value {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .92rem;
    color: var(--navy);
  }
  .ret-stat-card.highlight .ret-stat-card__value { color: var(--green); }
  .ret-stat-card.warn      .ret-stat-card__value { color: var(--orange); }
 
  /* ── Corpus sustainability indicator ────────────────────── */
  .sustainability-bar-wrap {
    margin-bottom: 18px;
  }
  .sustainability-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    color: var(--gray);
    margin-bottom: 6px;
  }
  .sustainability-bar-label strong { color: var(--navy); font-family: var(--font-head); }
  .sustainability-track {
    height: 10px;
    background: var(--gray-l);
    border-radius: 100px;
    overflow: hidden;
  }
  .sustainability-fill {
    height: 100%;
    border-radius: 100px;
    transition: width .6s ease, background .4s;
  }
  .sustainability-fill.safe   { background: linear-gradient(90deg, var(--green-d), var(--green)); }
  .sustainability-fill.warn   { background: linear-gradient(90deg, #ca8a04, #fbbf24); }
  .sustainability-fill.danger { background: linear-gradient(90deg, #dc2626, #f87171); }
 
  /* ── Stacked area chart: taller canvas ──────────────────── */
  .ret-chart-wrap { position: relative; height: 240px; }
 
  /* ── Inflation note ──────────────────────────────────────── */
  .inflation-note {
    background: #fef9c3;
    border-left: 3px solid #ca8a04;
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    font-size: .8rem;
    color: #78350f;
    line-height: 1.65;
    margin-bottom: 18px;
  }
  .inflation-note i { margin-right: 4px; color: #ca8a04; }
 
  /* ── Year-by-year table columns ─────────────────────────── */
  .ps-ret-year    { color: var(--navy); font-weight: 600; }
  .ps-ret-corpus  { color: var(--green); font-weight: 700; }
  .ps-ret-sip     { color: #1a73e8; font-weight: 600; }
  .ps-ret-expense { color: var(--orange); }
  .ps-ret-phase   { font-size: .72rem; font-weight: 600; letter-spacing: .3px; }
  .ps-ret-phase.accumulation { color: #1a73e8; }
  .ps-ret-phase.drawdown     { color: var(--orange); }
 
  /* ── Responsive ─────────────────────────────────────────── */
  @media (max-width: 768px) {
    .ret-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .corpus-highlight { flex-direction: column; align-items: flex-start; }
  }
  @media (max-width: 480px) {
    .ret-stats-grid { grid-template-columns: 1fr 1fr; }
    .retirement-phases { flex-direction: column; gap: 6px; }
    .ret-phase-arrow { transform: rotate(90deg); }
  }