/* 3E Partners resource articles. Header and footer values mirror the live article pages (June 2025). */
:root {
    --primary-color: #0055a4;
    --primary-dark: #003d7a;
    --secondary-color: #00a389;
    --accent-color: #1B8CCB;
    --text-color: #404142;
    --light-text: #666;
    --border-color: #e5e7eb;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-padding-top: 100px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: #ffffff;
}

a { color: var(--primary-color); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; border-radius: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 2000; }
.skip-link:focus { left: 12px; top: 12px; }

/* Header, same as main site */
.header {
    position: fixed; top: 0; left: 0; right: 0;
    background: #fff; padding: 16px 5%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; border-bottom: 1px solid #e5e7eb; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.logo { display: flex; align-items: center; font-weight: 700; color: var(--primary-color); }
.logo img { height: 50px; width: 150px; margin-right: 10px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 500; font-size: 15px; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--primary-color); }
.nav-links a.nav-cta { background-color: var(--primary-color); color: #fff; padding: 8px 15px; border-radius: 4px; }
.nav-links a.nav-cta:hover { background-color: var(--primary-dark); color: #fff; }
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--primary-color); padding: 6px; line-height: 0; }

/* Page frame */
.article-container {
    max-width: 1200px; margin: 0 auto; padding: 120px 20px 0;
    display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 60px; align-items: start;
}
.breadcrumb { grid-column: 1 / -1; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--light-text); }
.breadcrumb li + li::before { content: '›'; margin-right: 8px; color: #999; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-dark); text-decoration: underline; }

.article-main { min-width: 0; }
.article-header { margin-bottom: 36px; }
.article-category {
    display: inline-block; background: var(--primary-color); color: #fff;
    padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 20px;
}
.article-title { font-size: 42px; font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 20px; }
.article-subtitle { font-size: 20px; color: var(--light-text); line-height: 1.5; margin-bottom: 28px; }
.article-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
    padding-bottom: 24px; border-bottom: 1px solid var(--border-color);
    font-size: 14px; color: var(--light-text);
}
.article-meta strong { color: var(--text-color); font-weight: 600; }
.article-meta .meta-author { display: flex; align-items: center; gap: 10px; }
.article-meta .meta-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* Answer box: the short version, first thing on the page */
.answer-box {
    border: 1px solid #dae8f0; border-left: 4px solid var(--primary-color);
    background: #f4f9fc; border-radius: 0 8px 8px 0; padding: 22px 26px; margin: 0 0 36px;
}
.article-content .answer-box h2 { font-size: 13px; font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.6px; color: var(--primary-color); margin: 0 0 10px; }
.article-content .answer-box ul { margin: 0; }
.article-content .answer-box li:last-child { margin-bottom: 0; }
.answer-box p, .answer-box li { font-size: 17px; line-height: 1.6; }
.answer-box ul { padding-left: 20px; }
.answer-box li + li { margin-top: 6px; }

.article-content { font-size: 17px; line-height: 1.7; }
.article-content h2 { font-size: 28px; font-weight: 600; margin: 48px 0 18px; line-height: 1.3; }
.article-content h3 { font-size: 21px; font-weight: 600; margin: 34px 0 12px; line-height: 1.4; }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 0 0 22px; padding-left: 26px; }
.article-content li { margin-bottom: 8px; }
.article-content a { text-underline-offset: 2px; }
.article-content a:hover { color: var(--primary-dark); }
.article-content sup { font-size: 11px; line-height: 0; }
.article-content sup a { text-decoration: none; font-weight: 600; padding: 0 1px; }

.table-wrap { overflow-x: auto; margin: 0 0 26px; border: 1px solid var(--border-color); border-radius: 8px; }
.article-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.article-content caption { text-align: left; padding: 12px 16px; font-size: 13px; color: var(--light-text); border-bottom: 1px solid var(--border-color); background: var(--bg-light); }
.article-content th, .article-content td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-color); }
.article-content thead th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--light-text); background: var(--bg-light); white-space: nowrap; }
.article-content tbody th { font-weight: 600; }
.article-content tr:last-child > * { border-bottom: none; }
.article-content td.num, .article-content th.num { text-align: right; white-space: nowrap; }
.article-content tr.total > * { font-weight: 600; background: #f4f9fc; }
.pending { color: var(--light-text); font-style: italic; }

.note {
    background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 8px;
    padding: 18px 22px; margin: 0 0 26px; font-size: 16px;
}
.note > :last-child { margin-bottom: 0; }
.note strong:first-child { color: var(--primary-color); }

.sources { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border-color); }
.sources h2 { font-size: 20px; margin: 0 0 6px; }
.sources .checked { font-size: 14px; color: var(--light-text); margin-bottom: 16px; }
.sources ol { padding-left: 22px; font-size: 14.5px; line-height: 1.55; }
.sources li { margin-bottom: 9px; overflow-wrap: anywhere; }
.sources li:target { background: #fff8db; }
.disclaimer { margin-top: 22px; font-size: 13.5px; color: var(--light-text); line-height: 1.55; }

.contact-band {
    margin: 48px 0 0; padding: 26px 28px; border-radius: 10px;
    background: var(--primary-color); color: #fff;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
}
.contact-band h2 { font-size: 20px; font-weight: 600; margin: 0 0 4px; color: #fff; }
.contact-band p { font-size: 15px; margin: 0; color: rgba(255,255,255,0.88); max-width: 46ch; }
.contact-band a.btn { background: #fff; color: var(--primary-color); text-decoration: none; font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 6px; white-space: nowrap; }
.contact-band a.btn:hover { background: #eaf2fa; }

/* Sidebar */
.article-sidebar { position: sticky; top: 110px; }
.sidebar-section { background: var(--bg-light); border-radius: 12px; padding: 24px; margin-bottom: 24px; border: 1px solid var(--border-color); }
.sidebar-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.table-of-contents { list-style: none; }
.table-of-contents a { color: var(--light-text); text-decoration: none; font-size: 14.5px; line-height: 1.4; display: block; padding: 7px 10px; border-radius: 6px; }
.table-of-contents a:hover, .table-of-contents a.active { background: #fff; color: var(--primary-color); }
.related-list { list-style: none; }
.related-list li + li { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-color); }
.related-list a { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--text-color); text-decoration: none; display: block; }
.related-list a:hover { color: var(--primary-color); }
.related-list span { font-size: 12.5px; color: var(--light-text); }
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { font: inherit; font-size: 14px; font-weight: 500; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--border-color); background: #fff; color: var(--text-color); text-decoration: none; cursor: pointer; }
.share-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* Footer, same as main site */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 25%, #1a1a1a 50%, #333333 75%, #2a2a2a 100%);
    position: relative; color: #fff; padding: 60px 5% 30px; text-align: center; overflow: hidden; margin-top: 80px;
}
.footer > * { position: relative; z-index: 3; }
.footer-links { display: flex; gap: 32px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--secondary-color); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer p { color: rgba(255,255,255,0.6); font-size: 14px; margin: 0; }
.bbb-seal { opacity: 0.8; }
.bbb-seal:hover { opacity: 1; }

@media (max-width: 1000px) {
    .article-container { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .article-sidebar { position: static; }
    .sidebar-toc { display: none; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
        flex-direction: column; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); gap: 16px;
    }
    .nav-links.active { display: flex; }
    .mobile-menu-toggle { display: block; }
    .article-container { padding: 104px 16px 0; }
    .article-title { font-size: 30px; }
    .article-subtitle { font-size: 17px; }
    .article-content { font-size: 16px; }
    .article-content h2 { font-size: 23px; margin-top: 38px; }
    .article-content h3 { font-size: 19px; }
    .answer-box { padding: 18px 18px; }
    .answer-box p, .answer-box li { font-size: 16px; }
    .article-content th, .article-content td { padding: 10px 12px; }
    .contact-band { padding: 22px 20px; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
    /* Phone: figure pairs ("$1,700 / $3,400") and column heads may wrap, so every column stays on screen. */
    .article-content table { font-size: 14px; }
    .article-content th, .article-content td { padding: 9px 10px; }
    .article-content thead th, .article-content td.num, .article-content th.num { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

@media print {
    .header, .article-sidebar, .footer, .contact-band, .skip-link { display: none !important; }
    .article-container { display: block; padding: 0; }
}

/* Article photo, under the title. Same rounded, soft-shadow treatment as the photos on 3E's older posts. */
.article-hero { margin: 0 0 36px; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); }
.article-hero img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; }
