/* ChapterAhead unified authenticated-app theme */
body.professional{background:#071323!important;color:#e8eef7!important}
body.professional .v9-main{background:#071323!important;color:#e8eef7!important}
body.professional .v9-sidebar{background:#0a1b2f!important;color:#e8eef7!important;border-right:1px solid #30465e!important}
body.professional .v9-sidebar a{color:#e6edf6!important}
body.professional .v9-sidebar a.selected{background:#153a3b!important;color:#f7d58c!important}
body.professional .panel,body.professional .v16-project,body.professional .card{background:linear-gradient(145deg,#11263c,#0b192c)!important;border:1px solid #314963!important;color:#e8eef7!important;border-radius:16px!important}
body.professional h1,body.professional h2,body.professional h3,body.professional h4{color:#f6f8fc!important}
body.professional p,body.professional li,body.professional label,body.professional .muted{color:#cbd6e5}
body.professional .eyebrow{color:#e9b961!important}
body.professional .btn:not(.secondary),body.professional button.btn:not(.secondary){background:linear-gradient(#f7d78e,#d79b39)!important;color:#142032!important;border:1px solid #f1c77b!important;font-weight:700}
body.professional .btn.secondary{background:#172c42!important;color:#f4e8ce!important;border:1px solid #6d7885!important}
body.professional input,body.professional select,body.professional textarea{background:#0b1b2d;color:#f3f6fc;border:1px solid #51647a;border-radius:9px}
body.professional a:not(.btn){color:#eac67c}
body.professional a:focus-visible,body.professional button:focus-visible{outline:3px solid #e9b961;outline-offset:3px}
.ca-feature{margin:18px 0}.ca-series-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:12px;margin:18px 0}.ca-series-card{padding:17px;border:1px solid #3c536b;border-radius:12px;background:#0b1b2e}.ca-series-card strong{color:#f3d08a}.ca-series-card p{font-size:.94rem}.ca-series-card small{color:#9ce2c4}
@media(max-width:700px){.ca-series-grid{grid-template-columns:1fr}}

/* Accessibility correction: community components previously retained white backgrounds
   while inheriting pale text from the dark application theme. */
body.professional .community-shell{color:#edf3fa}
body.professional .community-head p,
body.professional .community-card p,
body.professional .community-card .community-excerpt,
body.professional .community-meta,
body.professional .community-small{color:#d2deed!important}
body.professional .community-card,
body.professional .community-message,
body.professional .community-message.mine{background:#13283e!important;border:1px solid #47617b!important;color:#f1f5fa!important;box-shadow:none}
body.professional .community-card h2,
body.professional .community-card h3,
body.professional .community-card strong,
body.professional .community-thread strong{color:#fff!important}
body.professional .community-links a,
body.professional .community-secondary{background:#1a344d!important;color:#fff!important;border:2px solid #7891a8!important}
body.professional .community-links a:hover,
body.professional .community-secondary:hover{background:#254563!important}
body.professional .community-card a:not(.community-btn){color:#ffda91!important;text-decoration:underline;text-underline-offset:3px}
body.professional .community-unread{background:#183c36!important;border-left:4px solid #81d3b4}
body.professional .community-field input,
body.professional .community-field textarea,
body.professional .community-field select,
body.professional .community-search input{background:#0b1b2d!important;color:#fff!important;border:2px solid #7891a8!important}
body.professional .community-alert{background:#442c2d!important;color:#ffe4dd!important;border-color:#bd8880!important}
body.professional .community-success{background:#183c36!important;color:#e2ffed!important;border-color:#74bc9b!important}
body.professional .community-btn{background:#215b4a!important;color:#fff!important;border:2px solid #79c5a9!important}
body.professional .community-count{background:#275f51!important;color:#fff!important}
/* Maintain legible sizes for the primary audience. */
body.professional .community-shell{font-size:17px;line-height:1.6}
body.professional .community-meta,
body.professional .community-small{font-size:15px}
body.professional .community-links a,
body.professional .community-btn,
body.professional .community-secondary{min-height:44px;display:inline-flex;align-items:center}
/* Top navigation was still using a light header from the legacy theme. */
body.professional .v9-topbar,
body.professional .v9-top{background:#10243a!important;color:#f1f5fa!important;border-bottom:1px solid #425a74!important}
body.professional .v9-topbar a,
body.professional .v9-top a{color:#ffda91!important}
@media(prefers-reduced-motion:reduce){body.professional *,body.professional *::before,body.professional *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
