/* ═══════════════════════════════════════════
   lumpsum.css — Lumpsum Calculator specific styles
   Requires: calc-global.css
   v1.0 — mirrors sip.css structure exactly
   ─────────────────────────────────────────
   Contains ONLY styles that do not exist in
   calc-global.css. No overrides to shared
   design decisions.

   SECTIONS:
   [CSS1]  CSS variables — lumpsum colour palette
   [CSS2]  Colour utilities
   [CSS3]  Estimate label pill
   [CSS4]  Rate warning badge
   [CSS5]  Asset class chip grid
   [CSS6]  Inflation badge (ON pill in toggle)
   [CSS7]  Hero inflation banner
   [CSS8]  Empty field prompt
   [CSS9]  SIP equivalent banner (lumpsum-specific)
   [CSS10] Goal planner grid
   [CSS11] Insight card — teal variant
   [CSS12] Hero badge warning variant
   [CSS13] Compliance watermark on result cards
   [CSS14] Growth schedule chart overrides
   [CSS15] Responsive
═══════════════════════════════════════════ */


/* ═══════════════════════════════════════════
   [CSS1]  LUMPSUM CSS VARIABLES
═══════════════════════════════════════════ */

:root {
    /* Lumpsum uses a teal-leaning accent vs SIP's blue */
    --ls-teal:        #0D9488;
    --ls-teal-soft:   #CCFBF1;
    --ls-indigo:      #4F46E5;
    --ls-indigo-soft: #E0E7FF;
}


/* ═══════════════════════════════════════════
   [CSS2]  LUMPSUM-ONLY COLOUR UTILITIES
═══════════════════════════════════════════ */

/* Primary "invested" colour — teal vs SIP blue */
.c-sip { color: var(--ls-teal); }

/* Hero stat amber alias (shared with SIP, keep consistent) */
.hs-value.amber { color: #FDE68A; }

/* Negative real return — danger red */
.r-val.negative { color: var(--danger) !important; }


/* ═══════════════════════════════════════════
   [CSS3]  ESTIMATE LABEL PILL
   Shown next to projected values.
═══════════════════════════════════════════ */

.est-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: .08rem .4rem;
    border-radius: 20px;
    background: #FEF9C3;
    border: 1px solid #FDE047;
    color: #854D0E;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .05em;
    vertical-align: middle;
    margin-left: 4px;
}


/* ═══════════════════════════════════════════
   [CSS4]  RATE WARNING BADGE
   Shown below rate input when > 18% p.a.
═══════════════════════════════════════════ */

#rateWarningBadge {
    font-size: .69rem;
    color: #92400E;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: 8px;
    padding: .3rem .6rem;
    margin-top: 5px;
    font-weight: 600;
    line-height: 1.4;
}


/* ═══════════════════════════════════════════
   [CSS5]  ASSET CLASS CHIP GRID
   Identical layout to SIP fund chips.
═══════════════════════════════════════════ */

.bank-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: .9rem;
}

.bank-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: .26rem .75rem;
    border-radius: 30px;
    border: 1.5px solid var(--slate-line);
    background: var(--white);
    font-size: .73rem;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    transition: all .18s var(--ease);
    user-select: none;
}
.bank-chip:hover {
    border-color: var(--ls-teal);
    color: var(--ls-teal);
}
.bank-chip.active {
    background: var(--ls-teal-soft);
    border-color: var(--ls-teal);
    color: #0f766e;
}
.bank-chip .chip-rate {
    font-size: .68rem;
    color: var(--emerald);
    font-weight: 700;
}


/* ═══════════════════════════════════════════
   [CSS6]  INFLATION BADGE  (ON pill in toggle)
═══════════════════════════════════════════ */

.stepup-badge {
    display: inline-flex;
    align-items: center;
    padding: .1rem .45rem;
    border-radius: 20px;
    background: var(--emerald);
    color: var(--white);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .06em;
    margin-left: 6px;
    vertical-align: middle;
}


/* ═══════════════════════════════════════════
   [CSS7]  HERO INFLATION BANNER
═══════════════════════════════════════════ */

.hero-inflation-banner {
    margin-top: 10px;
    background: rgba(79,70,229,.12);
    border: 1px solid rgba(79,70,229,.22);
    border-radius: 12px;
    padding: .55rem .85rem;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 600;
}
.hero-inflation-banner.show { display: flex; }
.hero-inflation-banner i    { color: #A5B4FC; }

.inflation-amt {
    color: #A5B4FC;
    font-family: var(--font-mono);
}

/* Negative real return variant */
.hero-inflation-banner.negative-real {
    background: rgba(220, 38, 38, .1);
    border-color: rgba(220, 38, 38, .25);
}
.hero-inflation-banner.negative-real i { color: #FCA5A5; }
.hero-inflation-banner.negative-real .inflation-amt { color: #FCA5A5; }


/* ═══════════════════════════════════════════
   [CSS8]  EMPTY FIELD PROMPT  (shown on blur)
═══════════════════════════════════════════ */

.field-empty-prompt {
    font-size: .7rem;
    color: var(--danger);
    margin-top: 5px;
    display: none;
    align-items: center;
    gap: 4px;
    background: var(--danger-soft);
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: .3rem .6rem;
}
.field-empty-prompt.show { display: flex; }


/* ═══════════════════════════════════════════
   [CSS9]  SIP EQUIVALENT BANNER
   Lumpsum-specific — shows monthly SIP that
   would build the same maturity corpus.
═══════════════════════════════════════════ */

.ls-sip-banner {
    margin-bottom: 1.1rem;
    background: rgba(13, 148, 136, .1);
    border: 1px solid rgba(13, 148, 136, .22);
    border-radius: 12px;
    padding: .55rem .85rem;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink);
}
.ls-sip-banner.show { display: flex; }
.ls-sip-banner i    { color: var(--ls-teal); flex-shrink: 0; }

.sip-equiv-amt {
    color: var(--ls-teal);
    font-family: var(--font-mono);
    font-weight: 700;
}


/* ═══════════════════════════════════════════
   [CSS10] GOAL PLANNER GRID
═══════════════════════════════════════════ */

.goal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: .5rem;
}

.goal-card {
    background: var(--slate-light);
    border-radius: var(--r-lg);
    border: 2px solid var(--navy);
    overflow: hidden;
    padding: .9rem;
}

.goal-card-title {
    font-size: .75rem;
    font-weight: 700;
    color: var(--white);
    background: var(--navy);
    margin: -.9rem -.9rem .85rem;
    padding: .55rem .9rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.goal-card-title i { color: var(--amber); }

.goal-result-card {
    background: var(--slate-light);
    border-radius: var(--r-lg);
    border: 2px solid var(--emerald);
    overflow: hidden;
    padding: .9rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.goal-result-title {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--emerald);
}

.goal-result-main {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    font-family: var(--font-mono);
    line-height: 1.2;
}

.goal-result-detail {
    font-size: .75rem;
    color: var(--slate);
    line-height: 1.5;
}
.goal-result-detail strong { color: var(--navy); }

.goal-result-breakdown {
    margin-top: .25rem;
    border-top: 1px solid var(--slate-line);
    padding-top: .5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.grb-row {
    display: flex;
    justify-content: space-between;
    font-size: .73rem;
    color: var(--slate);
    font-weight: 500;
}
.grb-row span:last-child {
    font-weight: 700;
    color: var(--navy);
    font-family: var(--font-mono);
}
.grb-row.highlight {
    background: var(--emerald-soft);
    border-radius: 7px;
    padding: .3rem .5rem;
    color: #065f46;
    font-weight: 700;
}
.grb-row.highlight span:last-child { color: var(--emerald); }

/* Compliance footnote row */
.grb-row.compliance-note {
    font-size: .63rem;
    color: var(--slate);
    font-style: italic;
    opacity: .8;
    border-top: 1px solid var(--slate-line);
    padding-top: 5px;
    margin-top: 2px;
    display: block;
}


/* ═══════════════════════════════════════════
   [CSS11] INSIGHT CARD — TEAL VARIANT
═══════════════════════════════════════════ */

.insight-card.teal {
    border-left-color: var(--ls-teal);
}

/* Improved contrast on insight detail text (WCAG AA) */
.insight-card .insight-detail {
    color: #374151;
}


/* ═══════════════════════════════════════════
   [CSS12] HERO BADGE — WARNING VARIANT
   Shown when tenure is very long or returns
   are unrealistically high.
═══════════════════════════════════════════ */

.hero-badge.warn {
    background: rgba(245, 158, 11, .18);
    border: 1px solid rgba(245, 158, 11, .4);
    color: #92400E;
}


/* ═══════════════════════════════════════════
   [CSS13] COMPLIANCE WATERMARK ON RESULT CARDS
═══════════════════════════════════════════ */

.result-estimate-note {
    font-size: .65rem;
    color: var(--slate);
    font-style: italic;
    text-align: right;
    margin-bottom: .4rem;
    opacity: .75;
}


/* ═══════════════════════════════════════════
   [CSS14] GROWTH SCHEDULE CHART OVERRIDES
   Override global bar-chart defaults for
   the lumpsum line chart container.
═══════════════════════════════════════════ */

#yrBars {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    overflow: hidden;
    box-sizing: border-box;
}

/* Yearly table — CAGR column in teal */
td.td-cagr {
    color: var(--ls-teal);
    font-weight: 600;
}
/* ═══════════════════════════════════════════
   [CSS15] RESPONSIVE
═══════════════════════════════════════════ */

@media (max-width: 700px) {
    .goal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .lcb-grid { grid-template-columns: 1fr; }
}