/* ==========================================
   ECOI Report — page-level styles
   ========================================== */

/* Hero */
.ecoi-hero {
    padding: 80px 0 48px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--slate-200);
}
.ecoi-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}
.ecoi-hero-labels {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.ecoi-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--slate-100);
    color: var(--slate-600);
}
.ecoi-badge--flagship {
    background: #eff6ff;
    color: var(--blue-600, #2563eb);
}
.ecoi-badge--companion {
    background: #f0fdf4;
    color: #16a34a;
}
.ecoi-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.2;
    margin-bottom: 16px;
}
.ecoi-hero-desc {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--slate-600);
    margin-bottom: 24px;
}
.ecoi-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.ecoi-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.ecoi-author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-700);
}
.ecoi-meta-sep {
    color: var(--slate-300);
    margin: 0 2px;
}
.ecoi-meta-date,
.ecoi-meta-readtime {
    font-size: 0.875rem;
    color: var(--slate-400);
}
.ecoi-hero-img-wrap {
    margin-top: 8px;
}
.ecoi-hero-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}

/* Body layout */
.ecoi-body-section {
    padding: 64px 0 80px;
}

/* Article prose */
.ecoi-article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--slate-700);
}
.ecoi-article-content h1 {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--slate-900);
    margin: 0 0 8px;
    line-height: 1.25;
}
.ecoi-article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 3rem 0 1rem;
    line-height: 1.3;
    padding-top: 8px;
}
.ecoi-article-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--slate-800);
    margin: 2rem 0 0.75rem;
    line-height: 1.35;
}
.ecoi-article-content p {
    margin: 0 0 1.25rem;
}
.ecoi-article-content strong {
    font-weight: 700;
    color: var(--slate-900);
}
.ecoi-article-content em {
    font-style: italic;
}
.ecoi-article-content a {
    color: var(--blue-600, #2563eb);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ecoi-article-content a:hover {
    color: var(--blue-700, #1d4ed8);
}
.ecoi-article-content ul,
.ecoi-article-content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}
.ecoi-article-content li {
    margin-bottom: 0.4rem;
}
.ecoi-article-content blockquote {
    border-left: 4px solid var(--blue-500, #3b82f6);
    background: #eff6ff;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    color: var(--slate-700);
    font-style: italic;
}
.ecoi-article-content blockquote p {
    margin: 0;
}
.ecoi-article-content blockquote strong {
    color: var(--slate-800);
}
.ecoi-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.82rem;
}
.ecoi-article-content thead th {
    background: var(--slate-50);
    font-weight: 700;
    color: var(--slate-700);
    padding: 10px 12px;
    text-align: left;
    border: 1px solid var(--slate-200);
    font-size: 0.82rem;
    white-space: normal;
    line-height: 1.3;
}
.ecoi-article-content tbody td {
    padding: 8px 12px;
    border: 1px solid var(--slate-200);
    vertical-align: top;
    line-height: 1.4;
}
.ecoi-article-content tbody tr:nth-child(even) {
    background: var(--slate-50);
}
.ecoi-article-content hr {
    border: none;
    border-top: 1px solid var(--slate-200);
    margin: 3rem 0;
}
.ecoi-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 1.75rem 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    display: block;
}
.ecoi-article-content code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.875em;
    background: var(--slate-100);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--slate-800);
}
.ecoi-article-content pre {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}
.ecoi-article-content pre code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
}

/* TOC sub-items */
.ecoi-toc-sub {
    padding-left: 12px;
}
.ecoi-toc-sub .gg-toc-link {
    font-size: 0.8125rem;
    font-weight: 400;
    opacity: 0.85;
}

/* Series panel */
.ecoi-series-panel {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}
.ecoi-series-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate-500);
    margin: 0 0 12px;
}
.ecoi-series-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ecoi-series-list li {
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.4;
}
.ecoi-series-active {
    background: #eff6ff;
}
.ecoi-series-current {
    font-weight: 600;
    color: var(--blue-600, #2563eb);
}
.ecoi-series-link {
    color: var(--slate-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}
.ecoi-series-link:hover {
    color: var(--blue-600, #2563eb);
}

/* Email capture */
.ecoi-email-capture {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}
.ecoi-email-capture-heading {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0 0 6px;
}
.ecoi-email-capture-text {
    font-size: 0.8125rem;
    color: var(--slate-500);
    line-height: 1.5;
    margin: 0 0 14px;
}
.ecoi-email-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ecoi-email-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--slate-300);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--slate-700);
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.ecoi-email-input:focus {
    border-color: var(--blue-500, #3b82f6);
}
.ecoi-email-btn {
    width: 100%;
    padding: 10px;
    background: var(--blue-600, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.ecoi-email-btn:hover {
    background: var(--blue-700, #1d4ed8);
}
.ecoi-email-note {
    font-size: 0.8125rem;
    color: #16a34a;
    margin: 8px 0 0;
    font-weight: 500;
}

/* Share row */
.ecoi-share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
    margin: 2rem 0 0;
    flex-wrap: wrap;
}
.ecoi-share-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-500);
}
.ecoi-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--slate-100);
    color: var(--slate-600);
    text-decoration: none;
    transition: all 0.15s;
}
.ecoi-share-btn:hover {
    background: var(--blue-600, #2563eb);
    color: white;
}
.ecoi-share-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 36px;
    border-radius: 8px;
    background: var(--slate-100);
    color: var(--slate-600);
    border: none;
    cursor: pointer;
    font-size: 0.8125rem;
    transition: background 0.15s;
}
.ecoi-share-copy:hover {
    background: var(--slate-200);
}

/* Mobile */
@media (max-width: 768px) {
    .ecoi-hero { padding: 60px 0 36px; }
    .ecoi-body-section { padding: 40px 0 60px; }
    .ecoi-article-content h2 { font-size: 1.25rem; }
    .ecoi-article-content h3 { font-size: 1.05rem; }
}

/* ==========================================
   ECOI Series Strip — Article pages
   ========================================== */
.ecoi-series-strip {
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
    padding: 20px 0;
}
.ecoi-strip-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.ecoi-strip-inner::-webkit-scrollbar { display: none; }
.ecoi-strip-card {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--slate-200);
    background: white;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    min-width: 140px;
    max-width: 160px;
}
.ecoi-strip-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(59,130,246,0.12);
}
.ecoi-strip-card--active {
    border-color: #3b82f6;
    background: #eff6ff;
}
.ecoi-strip-icon {
    font-size: 1.25rem;
    margin-bottom: 6px;
    line-height: 1;
}
.ecoi-strip-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 3px;
    line-height: 1.3;
}
.ecoi-strip-desc {
    font-size: 0.75rem;
    color: var(--slate-400);
    line-height: 1.4;
}
.ecoi-strip-card--active .ecoi-strip-title {
    color: #2563eb;
}
.ecoi-strip-cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 11px 18px;
    border-radius: 10px;
    background: #004ac6;
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    transition: background 0.15s, box-shadow 0.15s;
}
.ecoi-strip-cta-bar:hover {
    background: #0040b0;
    box-shadow: 0 4px 14px rgba(0,74,198,0.35);
    color: #fff;
}
.ecoi-strip-cta-bar--active {
    background: #0040b0;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25);
}
.ecoi-strip-cta-label { flex: 1; }
.ecoi-strip-cta-arrow { font-size: 1rem; opacity: 0.8; margin-left: 12px; }

/* ==========================================
   ECOI Report Band — Homepage
   ========================================== */
.ecoi-band {
    background: linear-gradient(150deg, #0f172a 0%, #1a2f52 55%, #0f172a 100%);
    padding: 72px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.ecoi-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(59,130,246,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.ecoi-band-inner {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 56px;
    align-items: center;
    position: relative;
}
.ecoi-band-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #60a5fa;
    margin: 0 0 16px;
    padding: 4px 10px;
    border: 1px solid rgba(96,165,250,0.3);
    border-radius: 4px;
}
.ecoi-band .ecoi-band-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.ecoi-band .ecoi-band-desc {
    font-size: 1rem;
    line-height: 1.65;
    color: #94a3b8;
    margin: 0 0 28px;
    max-width: 540px;
}
.ecoi-band-links {
    display: flex;
    gap: 8px 20px;
    flex-wrap: wrap;
    align-items: center;
}
.ecoi-band-cta {
    display: inline-block;
    padding: 11px 22px;
    background: #3b82f6;
    color: #fff !important;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}
.ecoi-band-cta:hover {
    background: #2563eb;
    transform: translateY(-1px);
}
.ecoi-band-link {
    font-size: 0.85rem;
    color: #7dd3fc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
    white-space: nowrap;
}
.ecoi-band-link:hover {
    color: #fff;
}
.ecoi-band-img-wrap {
    width: 100%;
}
.ecoi-band-img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
}
@media (max-width: 900px) {
    .ecoi-band-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .ecoi-band-img-wrap {
        max-width: 420px;
    }
}
@media (max-width: 600px) {
    .ecoi-band { padding: 52px 0; }
    .ecoi-band-links { flex-direction: column; align-items: flex-start; gap: 14px; }
    .ecoi-band-img-wrap { display: none; }
}

/* ==========================================
   Article-level CTA (two-path)
   Intentionally does NOT use .final-cta-section
   to avoid landing.css cascade conflicts
   ========================================== */
.ecoi-article-cta {
    background: #0f172a !important;
    padding: 64px 0;
    color: #fff !important;
}
.ecoi-article-cta h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important;
    font-weight: 800;
    color: #fff !important;
    margin: 0 0 8px;
    text-align: center;
    letter-spacing: -0.02em;
}
.ecoi-article-cta > .landing-container > p {
    font-size: 0.925rem;
    color: rgba(255,255,255,0.55) !important;
    text-align: center;
    margin: 0 !important;
}
.ecoi-two-path {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    margin: 36px auto 0;
    max-width: 800px;
    gap: 0;
}
.ecoi-path-card {
    padding: 28px 28px 24px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
}
.ecoi-path-newsletter {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
}
.ecoi-path-trial {
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.22);
    justify-content: center;
}
.ecoi-path-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
    margin: 0 0 10px;
}
.ecoi-path-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.65);
    margin: 0 0 20px;
    flex: 1;
}
.ecoi-path-note {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    margin: 10px 0 0;
    text-align: center;
}
.ecoi-path-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
}
.ecoi-path-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ecoi-path-trial .btn-primary-landing {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    color: #0f172a;
    padding: 11px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background 0.15s;
}
.ecoi-path-trial .btn-primary-landing:hover {
    background: #e2e8f0;
}
@media (max-width: 680px) {
    .ecoi-two-path {
        grid-template-columns: 1fr;
        max-width: 440px;
    }
    .ecoi-path-divider {
        padding: 16px 0;
    }
    .ecoi-path-divider::before,
    .ecoi-path-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: rgba(255,255,255,0.1);
        margin: 0 10px;
    }
}
