/* ══════════════════════════════════════
   CAE Calculator & Content Styles
   v2.2.0
   ══════════════════════════════════════ */

/* --- Calculator wrapper --- */
.cae-calculator-wrapper {
    max-width: 700px;
    margin: 20px auto;
    padding: 0;
}

/* --- Data tables (used in articles) --- */
.cae-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 15px 0;
}
.cae-data-table th {
    background: #034078;
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}
.cae-data-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e8e8e8;
}
.cae-data-table tr:nth-child(even) {
    background: #f8fafe;
}
.cae-data-table tr:hover {
    background: #e8f4fd;
}
.cae-data-table tr td:first-child,
.cae-data-table tr th:first-child {
    font-weight: 600;
}

/* --- Inline images (DALL-E generated) --- */
.cae-inline-image {
    margin: 30px auto;
    text-align: center;
    max-width: 800px;
}
.cae-inline-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.cae-inline-image figcaption {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}
.cae-img-fallback {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

/* --- FAQ section --- */
.cae-faq-section { margin-top: 30px; }
.cae-faq-item { margin: 15px 0; border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden; }
.cae-faq-item h3 { margin: 0; padding: 15px 20px; background: #f8f9fa; font-size: 16px; cursor: pointer; transition: background 0.2s; }
.cae-faq-item h3:hover { background: #e9ecef; }
.cae-faq-item div { padding: 0 20px 15px; }
.cae-faq-item p { margin: 10px 0 0; line-height: 1.7; }

/* --- Featured snippet paragraph --- */
.cae-featured-snippet {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    border-left: 4px solid #4CAF50;
    padding: 15px 20px;
    background: #f8fff8;
    border-radius: 0 8px 8px 0;
    margin-bottom: 25px;
}

/* --- Ad units spacing --- */
.cae-ad-unit { margin: 25px auto; clear: both; text-align: center; }

/* --- Share button --- */
.cae-share-results button:hover { background: #45a049 !important; transform: translateY(-1px); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .cae-calculator-wrapper { margin: 10px auto; padding: 0 5px; }
    .cae-faq-item h3 { font-size: 14px; padding: 12px 15px; }
    .cae-data-table { font-size: 13px; }
    .cae-data-table th,
    .cae-data-table td { padding: 6px 8px; }
    .cae-inline-image { margin: 20px auto; }
}

@media (max-width: 480px) {
    .cae-data-table { font-size: 12px; }
    .cae-data-table th,
    .cae-data-table td { padding: 5px 6px; }
}
