/* Custom styles for strategy, basic, and post templates - not processed by build */

/* Heading styles for strategy, basic, and post templates */
.strategy-content h1,
.basic-content h1,
.post-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #111827;
}

.strategy-content h2,
.basic-content h2,
.post-content h2 {
    font-size: 2.25rem;
    line-height: 1.3;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #111827;
}

.strategy-content h3,
.basic-content h3,
.post-content h3 {
    font-size: 1.875rem;
    line-height: 1.4;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111827;
}

.strategy-content h4,
.basic-content h4,
.post-content h4 {
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}


/* Comparison content styles - optimized for readability and spacing */
.comparison-content section {
    margin-bottom: 3rem;
}

.comparison-content section:last-child {
    margin-bottom: 0;
}

.comparison-content p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.comparison-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.comparison-content h2:first-of-type {
    margin-top: 0;
}

.comparison-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.comparison-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* List improvements - more space between items */
.comparison-content ul,
.comparison-content ol {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.comparison-content ul li,
.comparison-content ol li {
    margin-bottom: 0.875rem;
    line-height: 1.7;
    padding-left: 0.5rem;
}

.comparison-content ul li:last-child,
.comparison-content ol li:last-child {
    margin-bottom: 0;
}

.comparison-content ul ul,
.comparison-content ol ol,
.comparison-content ul ol,
.comparison-content ol ul {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Table improvements */
.comparison-content .table-wrap {
    margin: 2rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-content table.table,
.comparison-content table.table-compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem; /* 15px - smaller than default */
    line-height: 1.6;
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    text-align:left;
}

.comparison-content table.table thead,
.comparison-content table.table-compare thead {
    background-color: #f9fafb;
}

.comparison-content table.table th,
.comparison-content table.table-compare th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem; /* 14px for headers */
    color: #111827;
    border-bottom: 2px solid #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}


.comparison-content table.table-text td:not(:first-child) {
    text-align: left!important;
}

/* First column - left align, not centered */
.comparison-content table.table th:first-child,
.comparison-content table.table-compare th:first-child,
.comparison-content table.table td:first-child,
.comparison-content table.table-compare td:first-child {
    text-align: left !important;
    padding-left: 1.5rem;
}

/* Other columns center-aligned for comparison */
.comparison-content table.table th:not(:first-child),
.comparison-content table.table-compare th:not(:first-child) {
    text-align: center;
}

.comparison-content table.table td:not(:first-child),
.comparison-content table.table-compare td:not(:first-child) {
    text-align: center;
}

.comparison-content table.table td,
.comparison-content table.table-compare td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    vertical-align: top;
}

.comparison-content table.table tbody tr:last-child td,
.comparison-content table.table-compare tbody tr:last-child td {
    border-bottom: none;
}

.comparison-content table.table tbody tr:hover,
.comparison-content table.table-compare tbody tr:hover {
    background-color: #f9fafb;
}

/* Table row headers (th scope="row") */
.comparison-content table.table th[scope="row"],
.comparison-content table.table-compare th[scope="row"] {
    font-weight: 600;
    color: #111827;
    background-color: #f9fafb;
    text-align: left;
}

/* Muted text in tables */
.comparison-content table.table .muted,
.comparison-content table.table-compare .muted {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Decision snapshot and two-column layouts */
.comparison-content .decision-snapshot,
.comparison-content .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-content .decision-col {
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.comparison-content .decision-col h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.comparison-content .decision-col ul {
    margin-top: 0.75rem;
}

/* CTA row */
.comparison-content .cta-row {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    padding: 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 0.75rem;
    border: 1px solid #bfdbfe;
    justify-content: center;
}

.comparison-content .cta-row .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.comparison-content .cta-row .btn-primary {
    background-color: #3b82f6;
    color: #ffffff;
}

.comparison-content .cta-row .btn-primary:hover {
    background-color: #2563eb;
}

.comparison-content .cta-row .btn-secondary {
    background-color: #ffffff;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.comparison-content .cta-row .btn-secondary:hover {
    background-color: #eff6ff;
}

/* Screenshot/Figure styling */
.comparison-content figure.screenshot {
    margin: 2.5rem 0;
    text-align: center;
}

.comparison-content figure.screenshot img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.comparison-content figure.screenshot figcaption {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

/* FAQ styling */
.comparison-content .faq-list {
    margin: 2rem 0;
}

.comparison-content .faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-content .faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comparison-content .faq-item h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: #111827;
}

.comparison-content .faq-item p {
    margin-bottom: 0;
    color: #4b5563;
}

/* Also compare section */
.comparison-content .also-compare {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.comparison-content .also-compare ul {
    margin-top: 0.5rem;
}

/* Horizontal rule */
.comparison-content hr {
    margin: 3rem 0;
    border: none;
    border-top: 2px solid #e5e7eb;
}

/* Strong text in paragraphs */
.comparison-content p strong {
    color: #111827;
    font-weight: 600;
}

/* Highlight question styling */
.comparison-content .highlight-question {
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: #f0f9ff;
    border-left: 4px solid #3b82f6;
    border-radius: 0.5rem;
}

/* Subtitle for headers */
.comparison-content .subtitle {
    font-size: 0.9375rem;
    color: #6b7280;
    font-weight: 400;
    font-style: italic;
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comparison-content .decision-snapshot,
    .comparison-content .two-col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .comparison-content table.table,
    .comparison-content table.table-compare {
        font-size: 0.875rem; /* Even smaller on mobile */
    }

    .comparison-content table.table th,
    .comparison-content table.table-compare th,
    .comparison-content table.table td,
    .comparison-content table.table-compare td {
        padding: 0.75rem 1rem;
    }

    .comparison-content .cta-row {
        flex-direction: column;
    }

    .comparison-content .cta-row .btn {
        width: 100%;
        text-align: center;
    }
}


/* Table cells with checkboxes - text under checkbox */
.comparison-content table.table td > div:first-child,
.comparison-content table.table-compare td > div:first-child {
    text-align: center;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.comparison-content table.table td > div.muted,
.comparison-content table.table-compare td > div.muted {
    text-align: center;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

/* Red X for missing features */
.comparison-content table.table .table-x,
.comparison-content table.table-compare .table-x {
    color: #dc2626 !important;
    font-size: 1.25rem;
    font-weight: bold;
    display: inline-block;
}

/* Highlight question styling */
.comparison-content .highlight-question {
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: #f0f9ff;
    border-left: 4px solid #3b82f6;
    border-radius: 0.5rem;
}

/* Subtitle for headers */
.comparison-content .subtitle {
    font-size: 0.9375rem;
    color: #6b7280;
    font-weight: 400;
    font-style: italic;
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
}