/* Explain: Styles for various content sections including cards, tables, and articles. */
/* ---------------- Financial statistics ---------------- */
.stat-card {
    position: relative;
    height: 100%;
    padding: 1.75rem 1.5rem;
    background: linear-gradient(160deg, rgba(16, 42, 80, .86) 0%, rgba(7, 21, 45, .92) 100%);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-md);
    transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    height: 2px;
    width: 34px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
    border-radius: 2px;
}
.stat-card:hover {
    border-color: rgba(39, 200, 243, .5);
    box-shadow: 0 20px 46px rgba(0, 0, 0, .46), 0 0 30px rgba(39, 200, 243, .14);
    transform: translateY(-4px);
}
.stat-card-value {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    line-height: 1.1;
    color: #fff;
}
.stat-card-label { font-size: .84rem; font-weight: 600; letter-spacing: .05em; color: var(--gold-400); margin-top: .75rem; }
.stat-card-note { font-size: .74rem; color: rgba(255, 255, 255, .56); margin-top: .5rem; line-height: 1.6; }

/* ---------------- Filter controls ---------------- */
.filter-bar {
    display: grid;
    gap: 1rem;
    padding: 1.4rem;
    background: rgba(10, 25, 48, .8);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
    .filter-bar { grid-template-columns: 1.5fr 1fr 1fr 1fr; align-items: end; }
}
.filter-field { display: flex; flex-direction: column; }

.is-hidden { display: none !important; }

/* ---------------- Transaction cards ---------------- */
.txn-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.7rem;
    background: linear-gradient(160deg, rgba(16, 42, 80, .86) 0%, rgba(7, 21, 45, .93) 100%);
    border: 1px solid rgba(255, 255, 255, .1);
    border-top: 3px solid var(--accent-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.txn-card:hover {
    transform: translateY(-5px);
    border-color: rgba(39, 200, 243, .45);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .46), 0 0 30px rgba(39, 200, 243, .14);
}
.txn-amount { font-family: var(--font-heading); font-size: 1.5rem; color: #fff; line-height: 1.2; }
.txn-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: .82rem;
    padding: .5rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .12);
}
.txn-row:last-of-type { border-bottom: none; }
.txn-row span:first-child { color: var(--text-muted); flex-shrink: 0; }
.txn-row span:last-child { color: #fff; font-weight: 500; text-align: right; }
.txn-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .32rem .65rem;
    border-radius: var(--radius-sm);
    background: rgba(39, 200, 243, .14);
    color: var(--gold-400);
    border: 1px solid rgba(39, 200, 243, .32);
}

/* ---------------- Executive profiles ---------------- */
.exec-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.7rem;
    background: linear-gradient(160deg, rgba(16, 42, 80, .86) 0%, rgba(7, 21, 45, .93) 100%);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.exec-card:hover {
    transform: translateY(-5px);
    border-color: rgba(39, 200, 243, .45);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .46), 0 0 30px rgba(39, 200, 243, .12);
}
.exec-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(140deg, rgba(39, 200, 243, .22), rgba(16, 42, 80, .9));
    border: 1px solid rgba(39, 200, 243, .32);
    color: var(--gold-400);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: .05em;
    margin-bottom: 1.1rem;
}
.exec-name { font-size: 1.1rem; margin-bottom: .25rem; color: #fff; }
.exec-role { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-400); }
.exec-text { font-size: .87rem; color: var(--text-muted); line-height: 1.75; margin-top: .9rem; }

/* ---------------- Legal / regulatory table ---------------- */
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th,
.legal-table td {
    text-align: left;
    padding: .9rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-size: .88rem;
    vertical-align: top;
}
.legal-table th {
    width: 34%;
    font-weight: 600;
    color: #fff;
    background: rgba(16, 42, 80, .7);
}
.legal-table td { color: rgba(255, 255, 255, .82); line-height: 1.7; }
.legal-table tr:last-child th,
.legal-table tr:last-child td { border-bottom: none; }

@media (max-width: 639px) {
    .legal-table,
    .legal-table tbody,
    .legal-table tr,
    .legal-table th,
    .legal-table td { display: block; width: 100%; }
    .legal-table th { border-bottom: none; padding-bottom: .35rem; }
    .legal-table td { padding-top: .2rem; }
}

/* ---------------- Source / reporting label ---------------- */
.source-note { font-size: .76rem; color: rgba(255, 255, 255, .6); line-height: 1.7; }
.source-note a { color: var(--gold-400); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------- Rich text (articles & detail pages) ---------------- */
.rich-text { color: var(--text-muted); font-size: .96rem; line-height: 1.9; }
.rich-text p { margin-bottom: 1.15rem; }
.rich-text h3 { color: #fff; font-size: 1.15rem; margin: 1.8rem 0 .8rem; }
.rich-text ul { margin: 0 0 1.3rem; padding-left: 0; }
.rich-text li { position: relative; padding-left: 1.35rem; margin-bottom: .6rem; }
.rich-text li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .66rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
}
.rich-text strong { color: #fff; font-weight: 600; }
.rich-text a { color: var(--gold-400); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------- Corporate information library accordion ---------------- */
.gov-article { display: block; }
.gov-article summary { position: relative; cursor: pointer; list-style: none; padding-right: 2.25rem; }
.gov-article summary::-webkit-details-marker { display: none; }
.gov-article summary .card-title { display: inline-block; }
.gov-article[open] { border-color: rgba(39, 200, 243, .45); }
.gov-chevron {
    position: absolute;
    top: 1.75rem;
    right: 1.85rem;
    color: var(--gold-400);
    font-size: .8rem;
    transition: transform .3s ease;
}
.gov-article[open] .gov-chevron { transform: rotate(180deg); }
.gov-article summary:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 4px; border-radius: var(--radius-sm); }