/* ── credit-rating.css ── */

body {
    font-family: 'Poppins', sans-serif;
    background: var(--pg);
    margin: 0; padding-top: 0;
    color: var(--t1); font-size: 14px; line-height: 1.6;
}

/* header overrides */
/*.ireda-header { background: var(--white) !important; box-shadow: 0 2px 20px rgba(30,58,138,.08) !important; }
.header-bg-overlay { background: var(--white) !important; backdrop-filter: none !important; opacity: 1 !important; }
.ireda-header:not(.scrolled) .nav-link,
.ireda-header:not(.scrolled) .glass-btn { color: rgba(255,255,255,0.92) !important; text-shadow: 0 1px 4px rgba(0,0,0,0.25); }
.ireda-header:not(.scrolled) .utility-link    { color: rgba(255,255,255,0.75) !important; }
.ireda-header:not(.scrolled) .utility-divider { color: rgba(255,255,255,0.35) !important; }
.ireda-header:not(.scrolled) .col-lg-2 img    { filter: none !important; opacity: 1 !important; }
.ireda-header.scrolled .nav-link,
.ireda-header.scrolled .glass-btn             { color: var(--t2) !important; text-shadow: none !important; }
.ireda-header.scrolled .utility-link          { color: var(--t3) !important; }
.ireda-header.scrolled .col-lg-2 img          { filter: none !important; opacity: .92 !important; }*/

/* header overrides — subpage: always solid white, always dark text */
.ireda-header { background: var(--white) !important; box-shadow: 0 2px 20px rgba(30,58,138,.08) !important; }
.header-bg-overlay { background: var(--white) !important; backdrop-filter: none !important; opacity: 1 !important; }
.ireda-header .nav-link,
.ireda-header .glass-btn { color: var(--blue) !important; text-shadow: none !important; }
.ireda-header .utility-link,
.ireda-header .utility-lang-btn,
.ireda-header .utility-font-btn { color: var(--t3) !important; }
.ireda-header .utility-divider { color: var(--border) !important; }
.ireda-header .col-lg-2 img { filter: none !important; opacity: 1 !important; }

/* ── INTRO CARD ── */
.cr-intro-card {
    background: var(--white); border-radius: var(--r1);
    box-shadow: var(--s2); border: 1px solid rgba(37,99,235,.05);
    overflow: hidden; margin-bottom: 1.5rem;
    display: flex; align-items: flex-start; gap: 1.2rem;
    padding: 1.6rem 2rem;
}
.cr-intro-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--G);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--white); flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(30,58,138,.2);
}
.cr-intro-title { font-size: .98rem; font-weight: 800; color: var(--t1); margin: 0 0 .45rem; }
.cr-intro-text  { font-size: .88rem; color: var(--t2); line-height: 1.8; margin: 0; }
.cr-intro-text strong { color: var(--blue); font-weight: 600; }

/* ── SECTION HEADING ── */
.cr-section-head {
    display: flex; align-items: center; gap: .55rem;
    font-size: .76rem; font-weight: 800;
    color: var(--blue); text-transform: uppercase;
    letter-spacing: 1.5px; margin: 1.6rem 0 .8rem;
    padding-bottom: .5rem; border-bottom: 2px solid var(--pale);
    position: relative;
}
.cr-section-head::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 32px; height: 2px; background: var(--G);
}
.cr-section-head i { font-size: .82rem; }

/* ── TABLE CARD ── */
.cr-table-card {
    background: var(--white); border-radius: var(--r1);
    box-shadow: var(--s2); border: 1px solid rgba(37,99,235,.05);
    overflow: hidden; margin-bottom: 1.2rem;
}
.cr-table-card::before { content: ''; display: block; height: 4px; background: var(--G); }

.cr-table-header {
    display: flex; align-items: center; gap: .9rem;
    padding: 1rem 1.5rem; background: var(--G);
}
.cr-table-header-icon {
    width: 34px; height: 34px; border-radius: 9px;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; color: var(--white); flex-shrink: 0;
}
.cr-table-header-title { font-size: .88rem; font-weight: 800; color: var(--white); }
.cr-table-header-sub   { font-size: .7rem; color: rgba(255,255,255,.65); margin-top: .08rem; }

/* ── TABLE ── */
.cr-table-wrap { overflow-x: auto; }
.cr-table {
    width: 100%; border-collapse: collapse;
    font-size: .84rem; min-width: 680px;
}
.cr-table thead th {
    background: var(--xpale); color: var(--t1);
    padding: .65rem 1rem; font-size: .66rem; font-weight: 700;
    letter-spacing: .8px; text-transform: uppercase;
    text-align: left; border-bottom: 2px solid var(--pale);
    line-height: 1.4;
}
.cr-sno { width: 55px; text-align: center; }
.cr-table tbody tr { border-bottom: 1px solid #f1f5f9; transition: background .15s; }
.cr-table tbody tr:last-child { border-bottom: none; }
.cr-table tbody tr:hover { background: var(--xpale); }
.cr-table tbody td { padding: .8rem 1rem; vertical-align: middle; line-height: 1.55; }
.cr-sno    { color: var(--t3); font-weight: 600; font-size: .8rem; text-align: center; }
.cr-agency { font-weight: 700; color: var(--t1); white-space: nowrap; }
.cr-na     { color: var(--t3); font-size: .8rem; font-style: italic; }

/* ── RATING BADGE ── */
.cr-rating {
    display: inline-block;
    font-size: .72rem; font-weight: 800;
    border-radius: 6px; padding: .22rem .65rem;
    letter-spacing: .3px; white-space: nowrap;
}
.cr-rating--aaa { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.cr-rating--aa  { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.cr-rating--bbb { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* ── OUTLOOK BADGE ── */
.cr-outlook {
    display: inline-block;
    font-size: .7rem; font-weight: 700;
    border-radius: 20px; padding: .18rem .7rem;
}
.cr-outlook--stable { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* ── FOOTNOTES ── */
.cr-footnotes {
    padding: .8rem 1.2rem;
    background: var(--xpale);
    border-top: 1px solid var(--pale);
    font-size: .76rem; color: var(--t3); line-height: 1.7;
}
.cr-footnotes p { margin: 0; }
.cr-footnotes p + p { margin-top: .25rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .cr-intro-card { flex-direction: column; gap: .8rem; padding: 1.2rem 1.25rem; }
    .cr-table tbody td, .cr-table thead th { padding: .6rem .75rem; }
}
@media (max-width: 576px) {
    .cr-table { font-size: .76rem; }
    .cr-rating { font-size: .66rem; padding: .18rem .5rem; }
}
@media print {
    .cr-table-card, .cr-intro-card { box-shadow: none; border: 1px solid #ccc; }
}