/* ── Rich Text / RTE content styles ─────────────────────────────────── */
/*
 * Tailwind v4 Preflight strips all default browser styles from HTML elements.
 * Any content rendered via f:format.html (RTE fields) needs this wrapper
 * class to restore proper typography for the HTML tags the editor produces.
 */
.rte-content p {
    margin-bottom: 1em;
    line-height: 1.75;
}

.rte-content p:last-child {
    margin-bottom: 0;
}

.rte-content h1,
.rte-content h2,
.rte-content h3,
.rte-content h4,
.rte-content h5,
.rte-content h6 {
    font-family: "Aaux Next", sans-serif;
    font-weight: 700;
    color: var(--color-parliament-primary-dark);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.25;
}

.rte-content h1 { font-size: 2rem; }
.rte-content h2 { font-size: 1.5rem; }
.rte-content h3 { font-size: 1.25rem; }
.rte-content h4 { font-size: 1.125rem; }
.rte-content h5 { font-size: 1rem; }
.rte-content h6 { font-size: 0.875rem; }

.rte-content strong,
.rte-content b {
    font-weight: 700;
}

.rte-content em,
.rte-content i {
    font-style: italic;
}

.rte-content u {
    text-decoration: underline;
}

.rte-content s,
.rte-content del {
    text-decoration: line-through;
}

.rte-content ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.rte-content ol {
    list-style-type: decimal;
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.rte-content li {
    margin-bottom: 0.25em;
    line-height: 1.75;
}

.rte-content ul ul,
.rte-content ol ul {
    list-style-type: circle;
    margin-bottom: 0;
}

.rte-content ul ol,
.rte-content ol ol {
    list-style-type: lower-roman;
    margin-bottom: 0;
}

.rte-content a {
    color: var(--color-parliament-primary);
    text-decoration: underline;
    transition: color 150ms ease;
}

.rte-content a:hover {
    color: var(--color-parliament-primary-dark);
}

.rte-content blockquote {
    border-left: 4px solid var(--color-parliament-primary);
    padding-left: 1em;
    margin: 1em 0;
    color: var(--color-parliament-text-gray);
    font-style: italic;
}

.rte-content hr {
    border: 0;
    border-top: 1px solid var(--color-parliament-border-gray);
    margin: 1.5em 0;
}

.rte-content pre {
    background: var(--color-parliament-light-gray);
    border-radius: 0.375rem;
    padding: 1em;
    overflow-x: auto;
    margin-bottom: 1em;
    font-size: 0.875em;
}

.rte-content code {
    background: var(--color-parliament-light-gray);
    border-radius: 0.25rem;
    padding: 0.125em 0.375em;
    font-size: 0.875em;
}

.rte-content pre code {
    background: none;
    padding: 0;
    font-size: inherit;
}

.rte-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    font-size: 0.9em;
}

.rte-content table th,
.rte-content table td {
    border: 1px solid var(--color-parliament-border-gray);
    padding: 0.5em 0.75em;
    text-align: left;
}

.rte-content table th {
    background: var(--color-parliament-light-gray);
    font-weight: 700;
    color: var(--color-parliament-primary-dark);
}

.rte-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 0.5em 0;
}

