/* TVF Content Layout — Page width constraint for all fl-* content */

/* Base content container */
.tvf-content-page .entry-content,
.tvf-content-page .site-content .content-area,
.tvf-content-page article .entry-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Override Kadence full-width template */
.tvf-content-page .content-wrap,
.tvf-content-page .site-main {
    max-width: 100%;
}

.tvf-content-page .entry-content > .fl-hub,
.tvf-content-page .entry-content > .fl-pillar,
.tvf-content-page .entry-content > .fl-review,
.tvf-content-page .entry-content > .fl-compare,
.tvf-content-page .entry-content > .fl-topic {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Typography base */
.tvf-content-page .entry-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 2.2rem;
    margin-bottom: 0.8rem;
    color: #1a1a2e;
    line-height: 1.3;
}

.tvf-content-page .entry-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.6rem;
    margin-bottom: 0.6rem;
    color: #2d2d44;
}

.tvf-content-page .entry-content p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #333;
    margin-bottom: 1.1rem;
}

/* Tables */
.tvf-content-page .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.tvf-content-page .entry-content table th {
    background: #f8f4f0;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e0d8d0;
}

.tvf-content-page .entry-content table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
}

.tvf-content-page .entry-content table tr:hover td {
    background: #fdfaf7;
}

/* FAQ details/summary */
.tvf-content-page details {
    border: 1px solid #e8e0d8;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fdfaf7;
    overflow: hidden;
}

.tvf-content-page details summary {
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    color: #1a1a2e;
    list-style: none;
}

.tvf-content-page details summary::-webkit-details-marker {
    display: none;
}

.tvf-content-page details summary::before {
    content: "+";
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    margin-right: 10px;
    background: #8B2252;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.tvf-content-page details[open] summary::before {
    content: "−";
}

.tvf-content-page details > div,
.tvf-content-page details > p {
    padding: 0 18px 14px;
    color: #555;
    line-height: 1.65;
}

/* SVG charts responsive */
.tvf-content-page svg {
    max-width: 100%;
    height: auto;
}

/* Score bars */
.tvf-content-page .fl-score-bar {
    background: #f0ebe5;
    border-radius: 12px;
    height: 10px;
    overflow: hidden;
    margin-top: 4px;
}

.tvf-content-page .fl-score-fill {
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(90deg, #8B2252, #d4637a);
}

/* Links */
.tvf-content-page .entry-content a {
    color: #8B2252;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.tvf-content-page .entry-content a:hover {
    color: #6b1a40;
}

/* Nicotine warning */
.tvf-content-page .fl-nicotine-warning {
    background: #fff3e0;
    border-left: 4px solid #e65100;
    padding: 14px 18px;
    margin-top: 2rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: #6d3a00;
}

/* TL;DR box */
.tvf-content-page .fl-tldr,
.tvf-content-page .fl-quick-verdict {
    background: linear-gradient(135deg, #fdfaf7, #f5ede5);
    border: 1px solid #e0d8d0;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 1.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .tvf-content-page .entry-content,
    .tvf-content-page article .entry-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .tvf-content-page .entry-content h2 {
        font-size: 1.35rem;
    }

    .tvf-content-page .entry-content h3 {
        font-size: 1.1rem;
    }

    .tvf-content-page .entry-content table {
        font-size: 0.85rem;
    }

    .tvf-content-page .entry-content table th,
    .tvf-content-page .entry-content table td {
        padding: 8px 10px;
    }
}
