/* Explicit opt-in only. Existing theme/html/legacy articles keep their previous CSS. */
body.selena-editorial-page { background-color: #f2f5f8; }
body.selena-editorial-page .selena-layout-content {
    color: #243447; font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 18px; line-height: 1.8; background: #fff; border: 1px solid #e3e9f0;
    border-radius: 18px; box-shadow: 0 10px 36px rgba(30,50,75,.07); margin: 40px auto;
}
body.selena-editorial-page .selena-layout-content .selena-layout-title {
    font-family: inherit; font-size: clamp(28px, 3.3vw, 44px); font-weight: 750;
    line-height: 1.2; color: #132638; margin: 0 0 28px; padding-bottom: 24px;
    border-bottom: 3px solid var(--selena-accent, #2463a6); letter-spacing: -.025em;
}
body.selena-editorial-page .selena-layout-content h2 { font: 700 clamp(24px, 2.4vw, 30px)/1.3 system-ui, sans-serif; margin: 36px 0 16px; color: #17324a; }
body.selena-editorial-page .selena-layout-content h3 { font: 650 22px/1.4 system-ui, sans-serif; margin: 24px 0 12px; color: #17324a; }
body.selena-editorial-page .selena-layout-content p { margin: 0 0 20px; }
body.selena-editorial-page .selena-layout-content ul, body.selena-editorial-page .selena-layout-content ol { padding-left: 1.5em; margin: 0 0 22px; }
body.selena-editorial-page .selena-layout-content li { margin: 8px 0; }
body.selena-editorial-page .selena-layout-content a { color: var(--selena-accent, #2463a6); text-decoration: underline; text-underline-offset: .2em; }
body.selena-editorial-page .selena-layout-content img { border-radius: 10px; }
body.selena-editorial-page .selena-layout-content table { margin: 24px 0; font-size: 16px; line-height: 1.55; }
body.selena-editorial-page .selena-layout-content th { background: #eef3f8; font-weight: 700; }
body.selena-editorial-page .selena-layout-content td, body.selena-editorial-page .selena-layout-content th { border: 1px solid #dbe3ed; padding: 14px 18px; }
body.selena-editorial-page .selena-layout-content .selena-faq-item { background: #f7f9fc; border: 1px solid #e0e7ef; border-radius: 12px; padding: 22px; margin: 14px 0; }
body.selena-editorial-page .selena-layout-content .selena-faq-item h3 { margin-top: 0; }
body.selena-editorial-page .selena-layout-content blockquote { background: #f4f7fb; border-left: 4px solid var(--selena-accent, #2463a6); padding: 18px 24px; margin: 24px 0; }
body.selena-reference-page .selena-reference-nav { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 8px 24px; padding: 14px 20px; background: #ffffff; color: #17324a; border-block: 1px solid #e3e9f0; }
body.selena-reference-page .selena-reference-nav a { display: inline-block; padding: 8px 0; line-height: 1.4; font-size: 16px; color: inherit !important; }
body.selena-reference-page .selena-layout-header, body.selena-reference-page .selena-layout-footer { width: 100%; max-width: 100%; }
@media (max-width: 640px) {
    body.selena-editorial-page .selena-layout-content { border-radius: 0; margin: 20px auto; font-size: 17px; }
    body.selena-editorial-page .selena-layout-content h3 { font-size: 20px; }
    body.selena-reference-page .selena-reference-nav { gap: 4px 16px; justify-content: flex-start; }
}
