/* Content sections for AI-readable / SEO content below tool UIs */
.compiler-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 20px 48px;
    font-family: Arial, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.75;
}
.compiler-content h2 {
    font-size: 20px;
    margin: 36px 0 10px;
    color: #1a1a1a;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 6px;
}
.compiler-content h2:first-child {
    margin-top: 0;
}
.compiler-content h3 {
    font-size: 16px;
    margin: 20px 0 8px;
    color: #222;
}
.compiler-content p {
    margin-bottom: 14px;
    font-size: 15px;
}
.compiler-content ul,
.compiler-content ol {
    margin: 0 0 16px 24px;
    font-size: 15px;
}
.compiler-content li {
    margin-bottom: 6px;
}
.compiler-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    font-family: "Consolas", "Monaco", monospace;
}
.compiler-content pre {
    background: #f4f4f4;
    padding: 14px 16px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
    font-family: "Consolas", "Monaco", monospace;
}
/* FAQ accordion */
.compiler-content details {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
}
.compiler-content summary {
    padding: 12px 16px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    background: #fafafa;
    border-radius: 6px;
    list-style: none;
}
.compiler-content summary::-webkit-details-marker { display: none; }
.compiler-content summary::before {
    content: "\25B6";
    display: inline-block;
    margin-right: 10px;
    font-size: 11px;
    transition: transform 0.2s;
}
.compiler-content details[open] summary::before {
    transform: rotate(90deg);
}
.compiler-content details[open] summary {
    border-bottom: 1px solid #e0e0e0;
    border-radius: 6px 6px 0 0;
}
.compiler-content details .faq-answer {
    padding: 12px 16px;
    margin: 0;
}
/* References */
.compiler-content .ref-list {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}
.compiler-content .ref-list li {
    padding: 5px 0;
    font-size: 14px;
}
.compiler-content .ref-list a {
    color: #1a73e8;
    text-decoration: none;
}
.compiler-content .ref-list a:hover {
    text-decoration: underline;
}
/* Related compilers pill links */
.compiler-content .related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.compiler-content .related-grid a {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}
.compiler-content .related-grid a:hover {
    background: #e0e0e0;
}
/* Dark theme variant for database compiler pages */
.compiler-content.dark {
    color: #c9d1d9;
    background: transparent;
}
.compiler-content.dark h2 {
    color: #f0f6fc;
    border-bottom-color: #30363d;
}
.compiler-content.dark h3 {
    color: #e6edf3;
}
.compiler-content.dark code {
    background: #21262d;
    color: #c9d1d9;
}
.compiler-content.dark pre {
    background: #161b22;
    color: #c9d1d9;
}
.compiler-content.dark details {
    border-color: #30363d;
}
.compiler-content.dark summary {
    background: #161b22;
    color: #e6edf3;
}
.compiler-content.dark details[open] summary {
    border-bottom-color: #30363d;
}
.compiler-content.dark .ref-list a {
    color: #58a6ff;
}
.compiler-content.dark .related-grid a {
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
}
.compiler-content.dark .related-grid a:hover {
    background: #30363d;
    border-color: #58a6ff;
    color: #58a6ff;
}
