/* Insight pages — supplements legal.css to give article/blog content a
   polished editorial layout. Loaded AFTER legal.css so these rules win on
   ties. Uses only common.css design tokens (colors, fonts, shadows). */

/* ===== Reading column & base type ===== */
body.insight-page .content-wrapper {
    max-width: 760px;
    padding: 3.5rem 24px 4rem;
    font-size: 1.0625rem;
    line-height: 1.8;
}

body.insight-page .content-wrapper > p,
body.insight-page .content-wrapper li {
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

/* ===== Hero / title block ===== */
body.insight-page .content-wrapper h1 {
    text-align: left;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    background: linear-gradient(120deg, var(--text-main) 30%, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== Headings ===== */
body.insight-page .content-wrapper h2 {
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 3rem 0 1rem;
    padding: 0;
    border: none;
}

/* Short accent underline instead of a full rule */
body.insight-page .content-wrapper h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 0.7rem;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

body.insight-page .content-wrapper h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 2rem 0 0.6rem;
}

/* ===== Links in body ===== */
body.insight-page .content-wrapper p a,
body.insight-page .content-wrapper li a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

body.insight-page .content-wrapper .insight-link {
    color: var(--primary-color);
}

body.insight-page .content-wrapper p a:hover,
body.insight-page .content-wrapper li a:hover {
    border-bottom-color: var(--primary-color);
}

/* ===== Lists with custom markers ===== */
body.insight-page .content-wrapper ul {
    list-style: none;
    margin: 1.25rem 0 1.5rem;
    padding-left: 0.25rem;
}

body.insight-page .content-wrapper ul li {
    position: relative;
    padding-left: 1.75rem;
}

body.insight-page .content-wrapper ul li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translateY(-50%);
}

body.insight-page .content-wrapper li + li {
    margin-top: 0.5rem;
}

body.insight-page .content-wrapper strong {
    color: var(--text-main);
    font-weight: 600;
}

/* .footer-address now lives in common.css (shared across all pages) */

/* Cookie consent banner styles now live in common.css (shared across all pages) */

/* ===== Call-to-action box ===== */
body.insight-page .insight-cta-box {
    background:
        radial-gradient(circle at 18% 20%, var(--accent-glow), transparent 60%),
        var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.25rem 2rem;
    margin: 2.75rem 0;
    text-align: center;
    box-shadow: var(--shadow-md);
}

body.insight-page .insight-cta-box p {
    margin: 0 auto 1.4rem;
    max-width: 46ch;
    font-size: 1.05rem;
    color: var(--text-main);
}

body.insight-page .btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.85rem 1.9rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 18px var(--accent-glow);
}

body.insight-page .btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
}

/* ===== Tables (comparison) =====
   .table-scroll is the scroll container: it stays clamped to the reading
   column's width and only it (not the whole page) scrolls horizontally
   once the table needs more room than the viewport has, e.g. on mobile. */
body.insight-page .content-wrapper .table-scroll {
    margin: 2rem 0;
}

body.insight-page .content-wrapper table {
    min-width: 0;
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.97em;
}

body.insight-page .content-wrapper th {
    background: var(--bg-secondary);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    white-space: normal;
}

body.insight-page .content-wrapper td,
body.insight-page .content-wrapper th {
    padding: 0.85rem 1rem;
}

body.insight-page .content-wrapper tbody tr:nth-child(even) td {
    background: color-mix(in srgb, var(--bg-secondary) 55%, transparent);
}

body.insight-page .content-wrapper td.comparison-highlight,
body.insight-page .content-wrapper th.comparison-highlight {
    background: var(--accent-glow);
    border-left: 1px solid var(--primary-color);
    border-right: 1px solid var(--primary-color);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    body.insight-page #cookie-banner {
        padding: 1.25rem;
    }

    body.insight-page .cookie-banner-content {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    body.insight-page .cookie-banner-actions {
        flex-wrap: wrap;
    }

    body.insight-page .content-wrapper {
        padding: 2.5rem 18px 3rem;
        font-size: 0.95rem;
        line-height: 1.7;
    }

    body.insight-page .content-wrapper h1 {
        font-size: 1.7rem;
    }

    body.insight-page .content-wrapper h2 {
        font-size: 1.3rem;
    }

    body.insight-page .content-wrapper h3 {
        font-size: 1.1rem;
    }

    /* Comparison tables: the wrapper scrolls horizontally so columns keep a
       readable width instead of squishing until text gets clipped by the
       table's own rounded-corner overflow:hidden. */
    body.insight-page .content-wrapper .table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.insight-page .content-wrapper table {
        min-width: 620px;
        font-size: 0.9em;
    }
}
