/* ===== Insights Article Typography =====
   Shared styling for /insights/*.html pages. Aligns article content
   with the site's Josefin Sans design system and restores proper
   list bullets (site-wide reset removes them). */

@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* Always-visible header shadow on insight pages (site JS toggles .sticky
   only after a 20px scroll; we want the shadow visible as of page load). */
.header_navbar {
    position: fixed !important;
    box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.05);
    -webkit-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.05);
}
.header_navbar .navbar {
    padding: 0;
}

/* Two-column article layout: 75% body / 25% meta sidebar */
.article-main {
    /* left column — article title + body */
}
.article-sidebar {
    padding-left: 20px;
}
.article-sidebar .sub_title {
    /* Match margin-top of .section_title .title so the sub_title top in the
       sidebar aligns horizontally with the article title top in the main
       column (section_title .title has margin-top: 25px). */
    font-size: 20px;
    font-weight: 700;
    color: #2980b9;
    margin-top: 25px;
    margin-bottom: 18px;
    line-height: 1.3;
}
.article-sidebar .article-download-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 0;
}
@media (max-width: 991px) {
    /* On tablet/mobile, stack sidebar below main; sub_title reverts to top */
    .article-sidebar {
        padding-left: 15px;
        margin-top: 30px;
    }
    .article-sidebar .sub_title {
        margin-top: 0;
    }
    .article-sidebar .article-download-btn {
        max-width: 260px;
    }
}

/* Material icon utility */
.article-body .material-icons {
    font-size: 20px;
    vertical-align: -4px;
    margin-right: 6px;
    line-height: 1;
}
.article-body .material-icons.icon-success { color: #27ae60; }
.article-body .material-icons.icon-danger  { color: #c0392b; }
.article-body .material-icons.icon-warning { color: #e67e22; }
.article-body .material-icons.icon-flag    { color: #c0392b; }
.article-body .material-icons.icon-info    { color: #2980b9; }

/* Icon used in a heading should match heading color unless tinted */
.article-body h2 .material-icons,
.article-body h3 .material-icons,
.article-body h4 .material-icons {
    font-size: 24px;
    vertical-align: -5px;
}

.article-body {
    font-family: "Josefin Sans", sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: #38424D;
}

.article-body p {
    margin-bottom: 18px;
    color: #38424D;
}

.article-body strong,
.article-body b {
    color: #1a2a4a;
    font-weight: 700;
}

.article-body em,
.article-body i {
    color: #38424D;
}

.article-body a {
    color: #2980b9;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease-in-out;
}
.article-body a:hover {
    color: #0898E7;
    border-bottom-color: #0898E7;
}

/* Headings */
.article-body h2 {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    color: #1a2a4a;
    font-size: 28px;
    line-height: 1.3;
    margin-top: 42px;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eceff8;
}
.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    color: #2980b9;
    font-size: 21px;
    line-height: 1.35;
    margin-top: 30px;
    margin-bottom: 12px;
}

.article-body h4 {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    color: #38424D;
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 10px;
}

/* Restore list bullets (the site-wide CSS removes them) */
.article-body ul,
.article-body ol {
    margin: 0 0 20px 0;
    padding-left: 28px;
}
.article-body ul { list-style-type: disc; }
.article-body ol { list-style-type: decimal; }
.article-body li {
    margin-bottom: 8px;
    padding-left: 4px;
    color: #38424D;
}
.article-body li > ul,
.article-body li > ol {
    margin-top: 8px;
    margin-bottom: 0;
}

/* Tables */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 24px;
    font-size: 15px;
    line-height: 1.55;
}
.article-body table th,
.article-body table td {
    border: 1px solid #e3e7ef;
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}
.article-body table thead th {
    background-color: #1a2a4a;
    color: #ffffff;
    font-weight: 700;
    border-color: #1a2a4a;
}
.article-body table tbody tr:nth-child(even) {
    background-color: #f7f9fc;
}

/* Metric callout cards (dark navy stat boxes) */
.article-body .metric-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 10px 0 36px;
}
@media (max-width: 767px) {
    .article-body .metric-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
.article-body .metric-card {
    background: #1a2a4a;
    color: #ffffff;
    padding: 22px 14px;
    border-radius: 6px;
    text-align: center;
}
.article-body .metric-card .metric-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}
.article-body .metric-card .metric-label {
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.35;
    opacity: 0.92;
}

/* Pull quote / callout block */
.article-body .callout {
    background: #f4f7fb;
    border-left: 4px solid #2980b9;
    padding: 22px 24px;
    margin: 24px 0;
    border-radius: 0 6px 6px 0;
}
.article-body .callout h3 {
    margin-top: 0;
    color: #1a2a4a;
}
.article-body .callout p:last-child {
    margin-bottom: 0;
}

/* Horizontal rules between sections */
.article-body hr {
    border: 0;
    border-top: 1px solid #eceff8;
    margin: 32px 0;
}

/* Download button above the article (kept as main-btn style visually) */
.article-download-btn {
    display: inline-block;
    margin-bottom: 30px;
    padding: 12px 28px;
    background-color: #2980b9;
    color: #ffffff;
    border: 2px solid #2980b9;
    border-radius: 4px;
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.article-download-btn:hover,
.article-download-btn:focus {
    background-color: #ffffff;
    color: #2980b9;
    text-decoration: none;
}
.article-download-btn i {
    margin-right: 8px;
}

/* Responsive tweaks */
@media (max-width: 767px) {
    .article-body { font-size: 16px; line-height: 1.7; }
    .article-body h2 { font-size: 24px; margin-top: 32px; }
    .article-body h3 { font-size: 19px; margin-top: 24px; }
    .article-body table { font-size: 14px; }
    .article-body table th,
    .article-body table td { padding: 10px; }
}
