/* ═══════════════════════════════════════════
   hra.css — HRA Calculator specific styles
   Requires: calc-global.css
   ─────────────────────────────────────────
   Contains ONLY styles that do not exist in
   calc-global.css. No overrides to shared
   design decisions.
═══════════════════════════════════════════ */


/* ── HRA-specific CSS variables ── */
:root {
    --hra-blue:        #2563EB;
    --hra-blue-soft:   #DBEAFE;
    --hra-teal:        #0D9488;
    --hra-teal-soft:   #CCFBF1;
}


/* ═══════════════════════════════════════════
   HRA-ONLY COLOUR UTILITIES
═══════════════════════════════════════════ */

.c-hra { color: var(--hra-blue); }

.insight-card.teal { border-left-color: var(--hra-teal); }
.insight-card.red  { border-left-color: var(--danger); }


/* ═══════════════════════════════════════════
   CITY NOTE  (below city toggle)
═══════════════════════════════════════════ */

.hra-city-note {
    margin-top: 7px;
    background: var(--hra-blue-soft);
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    padding: .35rem .7rem;
    font-size: .69rem;
    color: #1d4ed8;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.5;
}
.hra-city-note i { flex-shrink: 0; margin-top: 1px; }


/* ═══════════════════════════════════════════
   NO-RENT WARNING
═══════════════════════════════════════════ */

.hra-no-rent-warn {
    margin-top: 7px;
    background: rgba(220,38,38,.08);
    border: 1px solid rgba(220,38,38,.2);
    border-radius: 8px;
    padding: .38rem .7rem;
    font-size: .69rem;
    font-weight: 600;
    color: #991B1B;
    display: none;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.5;
}
.hra-no-rent-warn.show { display: flex; }
.hra-no-rent-warn i    { color: var(--danger); flex-shrink: 0; margin-top: 1px; }


/* ═══════════════════════════════════════════
   EMPTY FIELD PROMPT
═══════════════════════════════════════════ */

.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; }


/* ═══════════════════════════════════════════
   80GG TOGGLE CARD
   Always-visible card replacing the old
   Tax Settings accordion.
═══════════════════════════════════════════ */

.hra-80gg-toggle-card {
    background: var(--slate-light);
    border: 1.5px solid var(--slate-line);
    border-radius: var(--r-md);
    padding: .85rem 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.hra-80gg-toggle-left { flex: 1; min-width: 0; }

.hra-80gg-toggle-title {
    font-size: .81rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .35rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.hra-80gg-toggle-title i { color: var(--amber); }

.hra-80gg-toggle-sub {
    font-size: .69rem;
    color: var(--slate);
    line-height: 1.55;
}
.hra-80gg-toggle-sub strong { color: var(--ink); }

.hra-80gg-toggle-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

/* The two toggle buttons */
.hra-toggle-btn {
    padding: .4rem .9rem;
    border-radius: 9px;
    border: 1.5px solid var(--slate-line);
    background: var(--white);
    color: var(--slate);
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-body);
    transition: all .18s var(--ease);
    display: flex;
    align-items: center;
    gap: .35rem;
}
.hra-toggle-btn:hover {
    border-color: var(--navy);
    color: var(--navy);
}
.hra-toggle-btn.active {
    background: var(--emerald);
    border-color: var(--emerald);
    color: var(--white);
}
.hra-toggle-btn.alt.active {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--ink);
}
.hra-toggle-btn i { font-size: .7rem; }


/* ═══════════════════════════════════════════
   80GG NOTE  (shown below toggle when 80GG on)
═══════════════════════════════════════════ */

.hra-80gg-note {
    margin-top: .6rem;
    background: var(--amber-soft);
    border: 1px solid #FDE68A;
    border-radius: 10px;
    padding: .55rem .85rem;
    font-size: .71rem;
    color: #78350F;
    font-weight: 500;
    display: none;
    align-items: flex-start;
    gap: 7px;
    line-height: 1.55;
}
.hra-80gg-note.show { display: flex; }
.hra-80gg-note i    { flex-shrink: 0; color: #92400E; margin-top: 2px; }


/* ═══════════════════════════════════════════
   HERO BANNERS
═══════════════════════════════════════════ */

.hero-fully-exempt-banner {
    margin-top: 10px;
    background: rgba(5,150,105,.14);
    border: 1px solid rgba(5,150,105,.28);
    border-radius: 12px;
    padding: .55rem .85rem;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 600;
}
.hero-fully-exempt-banner.show { display: flex; }
.hero-fully-exempt-banner i    { color: #6EE7B7; }

.hero-fully-taxable-banner {
    margin-top: 10px;
    background: rgba(220,38,38,.12);
    border: 1px solid rgba(220,38,38,.22);
    border-radius: 12px;
    padding: .55rem .85rem;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 600;
}
.hero-fully-taxable-banner.show { display: flex; }
.hero-fully-taxable-banner i    { color: #FCA5A5; }


/* ═══════════════════════════════════════════
   RENT OPTIMISER
═══════════════════════════════════════════ */

.optimiser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.2rem;
}

.opt-card {
    background: var(--slate-light);
    border: 1.5px solid var(--slate-line);
    border-radius: var(--r-md);
    padding: .9rem .85rem;
    text-align: center;
    transition: background .2s, box-shadow .2s, transform .18s var(--ease-spring);
}
.opt-card:hover {
    background: var(--white);
    box-shadow: var(--sh-2);
    transform: translateY(-2px);
}
.opt-icon  { font-size: 1.15rem; margin-bottom: .4rem; color: var(--amber); }
.opt-lbl   { font-size: .67rem; color: var(--slate); font-weight: 500; margin-bottom: .35rem; line-height: 1.4; }
.opt-val   { font-size: .92rem; font-weight: 800; color: var(--navy); font-family: var(--font-mono); margin-bottom: .25rem; }
.opt-sub   { font-size: .62rem; color: var(--slate); line-height: 1.4; }

.rent-sensitivity { margin-top: 1rem; }
.rs-title {
    font-size: .72rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .65rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.rs-title i { color: var(--amber); }

td.td-t { color: var(--danger); font-weight: 600; }


/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

@media (max-width: 700px) {
    .hra-80gg-toggle-card { flex-direction: column; }
    .hra-80gg-toggle-btns { flex-direction: row; }
    .optimiser-grid       { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .optimiser-grid { grid-template-columns: 1fr; }
}