:root {
    --brand-rust: #9e321d;
    /* High contrast: 6.8:1 on white */
    --brand-rust-hover: #7f2311;
    --brand-rust-soft: #fef2ee;
    --navy-dark: #002d47;
    /* High contrast: >10:1 on white */
    --navy-light: #064a75;
    --navy-deep: #05141e;
    --card-border: #cbd5e1;
    /* Exceeds 3:1 non-text UI contrast */
    --text-dark: #0f172a;
    --text-muted: #334155;
    /* High contrast: 7.5:1 on white */
    --text-light-muted: #e2e8f0;
    /* High contrast: >9:1 on navy-deep */
    --focus-ring: #0284c7;
}

/* Accessibility Text-Spacing Override Class (WCAG 1.4.12) */
body.accessibility-text-spaced * {
    line-height: 1.6 !important;
    letter-spacing: 0.12em !important;
    word-spacing: 0.16em !important;
}

body.accessibility-text-spaced p,
body.accessibility-text-spaced li {
    margin-bottom: 1.5em !important;
}

/* Focus Indicator for WCAG 2.4.7 & 2.4.11 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--focus-ring) !important;
    outline-offset: 3px !important;
    scroll-margin-top: 110px;
    scroll-margin-bottom: 80px;
}

.home-main-wrapper {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%);
    padding: 1rem 0 2.5rem 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
}

.home-container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Accessibility quick tools toolbar (WCAG 1.4.12 & 2.4.5) */
.a11y-quick-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.a11y-btn {
    background: #ffffff;
    border: 1px solid var(--card-border);
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    color: var(--navy-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 38px;
    text-decoration: underline !important;
}

.a11y-btn:hover {
    background: #f1f5f9;
    color: var(--brand-rust);
}

/* Visible Semantic H1 Hero Header (WCAG 1.3.1 / GIGW 5.2.7) */
.home-page-hero {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--brand-rust);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.home-main-title {
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin: 0 0 0.35rem 0;
    line-height: 1.25;
}

.home-hero-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* =========================================================================
     1. MARKET BREADTH & INSTITUTIONAL FLOWS
     ========================================================================= */
.market-breadth-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.breadth-stat-entry {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.breadth-icon-frame {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.breadth-text-group {
    display: flex;
    flex-direction: column;
}

.breadth-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.breadth-data {
    font-size: 0.925rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* =========================================================================
     2. PRIMARY SPLIT LAYOUT (REPORTS + ABOUT US)
     ========================================================================= */
.portal-split-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 2.75rem;
}

@media (max-width: 1024px) {
    .portal-split-layout {
        grid-template-columns: 1fr;
    }
}

.section-headline-box {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.headline-pill-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--brand-rust-soft);
    color: var(--brand-rust);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.center-heading-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-rust);
    letter-spacing: -0.01em;
    margin: 0;
}

.headline-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 3px 0 0 0;
}

.reports-two-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.report-frame-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-top-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--brand-rust-soft);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sub-column-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-rust);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.segment-tag-chip {
    font-size: 0.725rem;
    font-weight: 800;
    background: #f1f5f9;
    color: var(--navy-dark);
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Semantic Lists for Button Stacks (WCAG 1.3.1 / GIGW 5.2.7) */
.buttons-list-stack {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
}

.btn-report-rust {
    background: linear-gradient(135deg, #9e321d 0%, #7f2311 100%);
    color: #ffffff !important;
    text-decoration: underline !important;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
    min-height: 44px;
    /* WCAG 2.5.8 Target Size */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(158, 50, 29, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    word-break: break-word;
}

.btn-report-rust:hover {
    background: #7f2311;
}

.btn-icon-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-inner-divider {
    border: 0;
    border-top: 1px dashed var(--card-border);
    margin: 1.25rem 0 1rem 0;
}

/* Right Column: About Us Card */
.about-showcase-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.35rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stockmarket-image-hero {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    min-height: 180px;
    margin-bottom: 1.15rem;
    background: var(--navy-deep);
}

.stockmarket-img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    display: block;
}

.market-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 45, 71, 0.2) 0%, rgba(5, 20, 30, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.25rem;
}

.market-overlay-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.market-pill-tag {
    background: rgba(0, 45, 71, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.about-narrative-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    text-align: left;
}

.btn-readmore {
    background: var(--navy-dark);
    color: #ffffff !important;
    text-decoration: underline !important;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.75rem 1.4rem;
    min-height: 44px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
}

.btn-readmore:hover {
    background: var(--navy-light);
}

/* =========================================================================
     3. QUICK LINKS COMMAND HUB (HIGH CONTRAST & RESPONSIVE LIST)
     ========================================================================= */
.quick-links-fullwidth-section {
    background: linear-gradient(135deg, #05141e 0%, #002d47 60%, #061e2f 100%);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    margin-bottom: 2.75rem;
    box-shadow: 0 16px 36px rgba(0, 45, 71, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.ql-deck-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.ql-title-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.ql-amber-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #d97706;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ql-heading-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.ql-subheading-text {
    font-size: 0.825rem;
    color: var(--text-light-muted);
    margin: 3px 0 0 0;
}

/* Semantic Unordered List for Quick Links (WCAG 1.3.1) */
.ql-fullwidth-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

.ql-portal-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.15rem 1rem;
    text-decoration: underline !important;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    word-break: break-word;
}

.ql-portal-card:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #fbbf24;
}

.ql-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.ql-icon-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fef08a;
}

.ql-item-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.ql-item-desc {
    font-size: 0.775rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.ql-card-highlight {
    background: rgba(158, 50, 29, 0.45);
    border-color: #f97316;
}

/* =========================================================================
     4. ATTENTION INVESTORS PANEL
     ========================================================================= */
.statutory-advisory-panel {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    border-left: 5px solid var(--brand-rust);
}

.advisory-header-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
}

.advisory-header-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-rust);
    margin: 0;
}

.advisory-directive-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.directive-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.directive-num-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand-rust-soft);
    color: var(--brand-rust);
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.closing-issued-text {
    font-style: italic;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 1.15rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    text-align: right;
}

/* =========================================================================
     5. ACCESSIBLE TICKER BAR (WITH PLAY/PAUSE FOR WCAG 2.2.2)
     ========================================================================= */
.advisory-ticker-bar {
    background-color: #fef2ee;
    border-top: 1px solid #fecaca;
    border-bottom: 1px solid #fecaca;
    padding: 0.6rem 1rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ticker-btn-control {
    background: #ffffff;
    border: 1px solid var(--brand-rust);
    color: var(--brand-rust);
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    flex-shrink: 0;
    min-height: 36px;
}

.ticker-btn-control:hover {
    background: var(--brand-rust);
    color: #ffffff;
}

.ticker-viewport {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.ticker-track {
    display: inline-block;
    animation: marqueeScroll 80s linear infinite;
    font-size: 0.85rem;
    color: var(--brand-rust);
    font-weight: 700;
}

.ticker-track.paused {
    animation-play-state: paused !important;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(50%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        animation: none !important;
        white-space: normal;
    }
}

/* Floating Scroll to Top */
.floating-top-box {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background-color: var(--navy-dark);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    cursor: pointer;
    border-radius: 8px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floating-top-box:hover {
    background-color: var(--brand-rust);
}

/* =========================================================================
     6. ACCESSIBLE RISK DISCLOSURE POPUP MODAL (WCAG 2.4.11, 1.3.4, 1.4.10)
     ========================================================================= */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 20, 30, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal-backdrop.is-active {
    display: flex;
}

.modal-accessible-card {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--brand-rust);
    display: flex;
    flex-direction: column;
}

.modal-accessible-header {
    background: var(--brand-rust);
    color: #ffffff;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
}

.modal-close-icon-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.35rem;
    display: inline-flex;
    border-radius: 4px;
}

.modal-accessible-body {
    padding: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.modal-accessible-footer {
    padding: 0.85rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: flex-end;
}

.btn-modal-close-main {
    background: var(--brand-rust);
    color: #ffffff;
    border: none;
    padding: 0.65rem 1.5rem;
    min-height: 44px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.btn-modal-close-main:hover {
    background: var(--brand-rust-hover);
}