
:root {
    --background: #F5F7FA;
    --surface: #FFFFFF;
    --text: #1F2937;
    --accent: #1E3A5F;
    --muted: #64748B;
    --border: #D8DEE8;
    --shadow: 0 18px 45px rgba(31, 41, 55, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    max-width: 760px;
}

.disabled-link {
    color: #9CA3AF;
    cursor: not-allowed;
    opacity: 0.65;
}

/* Header and navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(245, 247, 250, 0.92);
    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.brand {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
    font-size: 1.05rem;
}

.brand:hover {
    text-decoration: none;
}

.site-nav {
    display: flex;
    gap: 28px;
    font-size: 0.95rem;
}

.site-nav a {
    color: var(--text);
}

.site-nav a,
.site-nav .disabled-link {
    display: block;
    padding: 0.5rem 1rem;
}

.nav-toggle {
    display: none;
    padding: 8px 10px;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.nav-toggle:hover {
    border-color: var(--accent);
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #ffffff;
    border: 1px solid #d8dde6;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 1000;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.research-detail-navigation {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #d8dee7;
}

.research-detail-navigation__sequence {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.research-detail-navigation__previous,
.research-detail-navigation__next,
.research-detail-navigation__parent {
    color: #1e3a5f;
    font-weight: 600;
    text-decoration: none;
}

.research-detail-navigation__next {
    margin-left: auto;
    text-align: right;
}

.research-detail-navigation__previous:hover,
.research-detail-navigation__next:hover,
.research-detail-navigation__parent:hover {
    text-decoration: underline;
}

.research-detail-navigation__parent {
    display: inline-block;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .research-detail-navigation__sequence {
        flex-direction: column;
    }

    .research-detail-navigation__next {
        margin-left: 0;
        text-align: left;
    }
}

/* Hero */

.hero {
    padding: 120px 0;
}

.hero-inner {
    max-width: 900px;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1, h2, h3 {
    margin-top: 0;
    line-height: 1.15;
    color: var(--text);
}

h1 {
    max-width: 860px;
    margin-bottom: 24px;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    letter-spacing: -0.055em;
}

h2 {
    margin-bottom: 20px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.035em;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.hero-text {
    max-width: 690px;
    margin: 0 0 34px;
    font-size: 1.2rem;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.button-primary,
.button-secondary {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
}

.button-primary {
    color: #FFFFFF;
    background: var(--accent);
    border: 1px solid var(--accent);
}

.button-primary:hover {
    text-decoration: none;
    background: #152C49;
}

.button-secondary {
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--border);
}

.button-secondary:hover {
    text-decoration: none;
    border-color: var(--accent);
}

/* Sections and cards */

.section {
    padding: 80px 0;
}

.section-muted {
    background: #EEF2F7;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 36px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.card p {
    margin-bottom: 0;
    color: var(--muted);
}

.page-hero {
    padding: 5rem 0 2.5rem;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1;
}

.lead {
    max-width: 760px;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #4b5563;
}

.research-index {
    padding: 2rem 0 5rem;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.research-card {
    background: #ffffff;
    border: 1px solid #d8dde6;
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.research-card h2 {
    margin-top: 0;
    font-size: 1.35rem;
}

.research-card p {
    color: #4b5563;
}

.research-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.research-card li {
    border-top: 1px solid #e5e7eb;
}

.research-card li a,
.research-card > a {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    font-weight: 600;
}

.research-card li a:hover,
.research-card > a:hover {
    text-decoration: underline;
}
.research-card-note {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Research detail pages */

.research-detail-hero h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    max-width: 900px;
}

.research-detail-hero .lead {
    max-width: 800px;
}
.research-detail-hero {
    padding-bottom: 3rem;
}

.research-figure {
    max-width: 850px;
    margin: 2rem auto 2.5rem;
}

.research-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.research-figure figcaption {
    margin-top: 0.8rem;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
}

.featured-card {
    grid-column: span 2;
    background: #f8fafc;
}

.card-kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 700;
}

.about-name {
    margin-bottom: 0.15rem;
}

.about-title {
    font-style: italic;
    color: #666;
    margin-bottom: 1.2rem;
}

.contact-box {
    padding: 42px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-email {
    margin-bottom: 0;
    font-size: 1.2rem;
    font-weight: 700;
}


.analysis-list {
    list-style: none;
    padding-left: 0;
    margin: 1.25rem 0 0;
}

.analyst-list li {
    border-top: 1px solid #dfe5ec;
}

.analysis-list li a {
    display: block;
    padding: 1rem 0;
    color: #0b376d;
    font-weight: 600;
    text-decoration: none;
}

.analysis-list li a:hover {
    color: #0056a6;
    text-decoration: underline;
}

.analysis-dropdown {
    margin-top: 0;
    border-top: 1px solid #dfe5ec;
}

.analysis-dropdown summary {
    padding: 1rem 0;
    color: #0b376d;
    font-weight: 600;
    cursor: pointer;
}

.analysis-dropdown summary:hover {
    color: #0056a6;
}

.analysis-list-extra {
    margin-top: 0;
}
/* ==========================
   Tables
   ========================== */

.table-heading {
    margin: 2rem auto 0.5rem;
    max-width: 760px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.table-wrap {
    max-width: 760px;
    margin: 0 auto 2rem;
    overflow-x: auto;
}

.data-table {
    width: 760px;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th {
    background: #36495d;
    color: white;
    font-weight: 600;
    padding: 0.6rem 0.8rem;
}

.data-table td {
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid #dddddd;
}

.data-table tbody tr:nth-child(even) {
    background: #f7f8fa;
}

.data-table tbody tr:hover {
    background: #eef4fa;
}

.data-table th:first-child,
.data-table td:first-child {
    text-align: left;
    width: 42%;
}

.data-table th:not(:first-child),
.data-table td:not(:first-child) {
    text-align: right;
    width: 19%;
}

.factor-matrix-wrapper {
    max-width: 1000px;
    width: 100%;
    margin: 2rem auto;}

.factor-matrix {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 2rem 0;
    font-size: 0.95rem;
}


.factor-matrix th,
.factor-matrix td {
    border: 1px solid #d9d9d9;
    padding: 0.65rem 0.8rem;
    text-align: center;
}

.factor-matrix thead th {
    background: #f3f5f7;
    font-weight: 600;
}

/* First (factor) column */
.factor-matrix th:first-child,
.factor-matrix td:first-child {
    width: 40%;
    text-align: left;
    padding-left: 1rem;
}

/* Remaining columns */
.factor-matrix th:not(:first-child),
.factor-matrix td:not(:first-child) {
    width: 15%;
}

.factor-matrix tbody th {
    text-align: left;
    font-weight: 500;
    background: #fafafa;
    white-space: nowrap;
}

.factor-matrix td a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.65rem 0;
    color: inherit;
    text-decoration: none;
}

.factor-matrix td:hover {
    filter: brightness(0.92);
    cursor: pointer;
}

.factor-neg-3 {
    background: #9a5a00;
    color: white;
}

.factor-neg-2 {
    background: #d18b2f;
    color: white;
}

.factor-neg-1 {
    background: #f2d7ad;
    color: #333;
}

.factor-neutral {
    background: #f2f4f7;
    color: #333;
}

.factor-pos-1 {
    background: #c9d9ee;
    color: #333;
}

.factor-pos-2 {
    background: #5f8fc7;
    color: white;
}

.factor-pos-3 {
    background: #1f4e8c;
    color: white;
}

.factor-matrix tbody th a {
    color: #222;
    text-decoration: none;
}

.factor-matrix tbody th a:hover {
    color: #0056a6;
}

.scorecard-wrapper-wide {
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    overflow-x: auto;
}

.asset-scorecard {
    min-width: 900px;
}

.asset-scorecard thead th:first-child {
    width: 24%;
}

.asset-scorecard thead th:not(:first-child) {
    width: auto;
}

.scorecard-group-start {
    border-left: 2px solid #cfd6df !important;
    /* border-left: 2px solid black !important; */
}

.metric-low-3 {
    background: #eef4fb;      /* almost white */
    color: #333;
}

.metric-low-2 {
    background: #d8e7f6;
    color: #333;
}

.metric-low-1 {
    background: #b8d1eb;
    color: #333;
}

.metric-neutral {
    background: #7fa9d6;
    color: white;
}

.metric-high-1 {
    background: #4f82c0;
    color: white;
}

.metric-high-2 {
    background: #2e67aa;
    color: white;
}

.metric-high-3 {
    background: #163f73;      /* Tuligar navy */
    color: white;
}

.metric-vol-model-none {
    background: #f2f4f7;
    color: #444;
}

.metric-vol-model-garch {
    background: #dce6f2;
    color: #1f4e8c;
}

.metric-vol-model-gjr {
    background: #c5d8ee;
    color: #163f73;
}

/* Footer */

.site-footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
}

/* Tablet */

@media (max-width: 1024px) {

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* Phone */

@media (max-width: 768px) {

    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .header-inner {
        min-height: 68px;
        align-items: center;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        display: none;
        /* display: flex; */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 10;
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
        background: var(--background);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 18px 30px rgba(31, 41, 55, 0.08);
    }

    .brand {
        position: relative;
        z-index: 1001;
    }

    .site-nav.nav-open {
        display: flex;
    }

    .site-nav a {
        display: block;
        padding: 12px 0;
        color: var(--text);
    }

    .hero {
        padding: 64px 0 76px;
    }

    .section {
        padding: 60px 0;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .factor-matrix {
        font-size: 0.82rem;
    }

    .factor-matrix th,
    .factor-matrix td {
        padding: 0.45rem;
    }
    
    .contact-box {
        padding: 30px;
    }

}

/* Small phone */

@media (max-width: 480px) {

    h1 {
        font-size: 2.2rem;
    }

    .hero {
        padding: 48px 0;
    }

    .container {
        width: calc(100% - 24px);
    }

    .button-primary,
    .button-secondary {
        width: 100%;
        text-align: center;
    }

}