/* V78: global early dark backdrop and readable dark Sudoku guide/CMS surfaces.
   Scope document restyling to the previously light-only Sudoku article family. */
html.site-dark-prepaint{
 background-color:#0f1928!important;color-scheme:dark;
}
html.site-dark-prepaint body:not(.dark):not(.site-guide-dark){
 background-color:#0f1928;
}
html.site-dark-prepaint body.site-guide-dark{
 background:#15243a!important;color:#e4f0ff!important;
}
body.site-guide-dark :is(.top,.footer){
 background:#1d3048!important;color:#e7f3ff!important;
 border-color:#506d8e!important;
}
body.site-guide-dark :is(h1,h2,h3,strong,.brand,.kicker,.tool-card strong){
 color:#f2f8ff!important;
}
body.site-guide-dark :is(.lede,.meta,.note,.sudoku-note,.tool-card span,.tool-card b){
 color:#d1e2f6!important;
}
body.site-guide-dark :is(.nav a,.footer a,.guide-language,.path a,.guide-grid a){
 color:#dbeeff!important;
}
body.site-guide-dark a:not(.btn){text-underline-offset:3px}
body.site-guide-dark :is(.card,.web-cms-list-card,.hub-tools .tool-card,
 .panel,.path a,.guide-language,.arabic,.rubik-independent-banner){
 background:#233a55!important;color:#e9f3ff!important;
 border-color:#6385a8!important;
}
body.site-guide-dark :is(.card,.panel,.tool-card,.rubik-independent-banner)
 :is(p,span,small,li,ol,ul,div){
 color:#e7f1ff;
}
body.site-guide-dark .tool-card{
 min-height:160px;
}
body.site-guide-dark .tool-card b{color:#cfecff!important}
body.site-guide-dark .btn.secondary{
 background:#315171!important;color:#f1f8ff!important;
 border-color:#83a5c8!important;
}
body.site-guide-dark .btn:not(.secondary),
body.site-guide-dark .rubik-independent-cta{
 background:#235c97!important;color:#fff!important;
}
body.site-guide-dark :is(.tool-actions button,.tool-actions select,.print-controls select,
 .print-controls input:not([type=checkbox]),textarea){
 background:#2b4b70!important;color:#f1f8ff!important;
 border:1px solid #8caed0!important;
}
body.site-guide-dark .tool-actions button:hover{background:#37658f!important}
body.site-guide-dark .tool-status{
 background:#294869!important;color:#eaf5ff!important;
}
body.site-guide-dark .tool-status[data-kind=error]{
 background:#56343e!important;color:#ffe8ed!important;
}
body.site-guide-dark .tool-status[data-kind=ok]{
 background:#1d5144!important;color:#ddfff2!important;
}
body.site-guide-dark .print-puzzle{
 background:#2a405d!important;border-color:#7293b3!important;
}
body.site-guide-dark .print-puzzle h2{color:#f5f9ff!important}
body.site-guide-dark :is(table.sudoku,.sudoku td,.print-grid td,.tool-grid input){
 background:#fafdff!important;color:#183451!important;
}
body.site-guide-dark .sudoku .target{
 background:#d1eaff!important;color:#163756!important;
}
body.site-guide-dark .tool-grid input.conflict{background:#ffe2e2!important;color:#8a1b2f!important}
body.site-guide-dark .tool-grid input.suggested{background:#c1f4de!important;color:#12523e!important}
body.site-guide-dark .rubik-independent-banner :is(h2,p){color:#f3f8ff!important}
body.site-guide-dark a:focus-visible,
body.site-guide-dark button:focus-visible,
body.site-guide-dark input:focus-visible,
body.site-guide-dark select:focus-visible{
 outline:3px solid #9ed6ff!important;outline-offset:3px!important;
}
@media print{
 html.site-dark-prepaint,html.site-dark-prepaint body.site-guide-dark{
 background:#fff!important;color:#111!important;color-scheme:light!important;
 }
 body.site-guide-dark :is(.print-puzzle,table.sudoku,.sudoku td,.print-grid td){
 background:#fff!important;color:#111!important;
 }
 body.site-guide-dark .print-puzzle h2{color:#111!important}
}

/* Evidence-led contrast fixes for the advanced Sudoku strategy lesson pages.
   Preserve light Sudoku candidate cells as a deliberate proof canvas. */
body.site-guide-dark a:not(.btn):not(.tool-card):not(.rubik-independent-cta){
 color:#d5ebff!important;
}
body.site-guide-dark .advanced-guides-index article.card p{
 color:#d3e6fa!important;
}
body.site-guide-dark .advanced-guide :is(.advanced-lesson-gridwrap,.advanced-after){
 background:#284562!important;border-color:#7397b9!important;color:#eaf5ff!important;
}
body.site-guide-dark .advanced-guide :is(.advanced-caption,.advanced-feedback){
 background:#315878!important;color:#f1f8ff!important;
 border:1px solid #7198b9!important;
}
body.site-guide-dark .advanced-guide .advanced-feedback.right{
 background:#215844!important;color:#e4fff2!important;border-color:#72af94!important;
}
body.site-guide-dark .advanced-guide .advanced-feedback.wrong{
 background:#653b45!important;color:#ffe6e6!important;border-color:#c18191!important;
}
body.site-guide-dark .advanced-guide .advanced-after :is(h3,p){
 color:#f1f8ff!important;
}
body.site-guide-dark .advanced-guide .advanced-check-option{
 background:#304f70!important;color:#f4faff!important;border-color:#789fc1!important;
}
body.site-guide-dark .advanced-guide .advanced-check-option:hover{
 background:#3a6087!important;
}
body.site-guide-dark .advanced-guide .advanced-check-option.correct-choice{
 background:#20533f!important;color:#e4fff2!important;border-color:#75b995!important;
}
body.site-guide-dark .advanced-guide .advanced-check-option.incorrect-choice{
 background:#623740!important;color:#ffe5eb!important;border-color:#cd93a0!important;
}
body.site-guide-dark .advanced-guide .advanced-lesson-instructions{
 color:#e8f4ff!important;
}
