/* Sudoku strategy detail ONLY: app-inspired readable 9x9 notes & step panel.
   Never affect /learn, Rubik, games, CMS, hosting, or shared styles. */
/* A strategy detail must not carry the unrelated Rubik marketing banner or
   guide-hub promotion above the puzzle; those remain unchanged in the hub. */
body:has(#lessonView:not(.hidden)) .academy-dual-heroes,
body:has(#lessonView:not(.hidden)) .academy-guide-link{display:none!important}
body:has(#lessonView:not(.hidden)) #lessonView{margin-inline:auto;max-width:1190px}
body:has(#lessonView:not(.hidden)) #lessonView>.back-link{font-size:13px!important;
 margin-bottom:12px!important;display:inline-flex;padding:7px 12px;
 border:1px solid var(--line);border-radius:12px;background:var(--surface)}
body:has(#lessonView:not(.hidden)) #lessonView .lesson-layout{
 display:grid!important;
 grid-template-columns:minmax(0,610px) minmax(300px,360px)!important;
 gap:22px!important;align-items:start;justify-content:center;
 margin:8px auto 0!important;
}
body:has(#lessonView:not(.hidden)) #lessonView .lesson-board{
 direction:ltr!important;border:3px solid #54657f!important;border-radius:12px!important;
 background:#54657f!important;box-shadow:0 14px 35px #253c6b19!important;
 isolation:isolate;overflow:hidden
}
body:has(#lessonView:not(.hidden)) #lessonView .lesson-cell{
 background:var(--cell,#fff)!important;color:var(--entry,#234568)!important;
 font-weight:800!important;font-size:clamp(17px,2vw,29px)!important;
 border-radius:0!important;overflow:hidden!important;
}
body:has(#lessonView:not(.hidden)) #lessonView .lesson-cell.given{
 color:var(--given,#22354f)!important;font-weight:900!important
}
body:has(#lessonView:not(.hidden)) #lessonView .lesson-cell.rowhl,
body:has(#lessonView:not(.hidden)) #lessonView .lesson-cell.colhl,
body:has(#lessonView:not(.hidden)) #lessonView .lesson-cell.boxhl{
 background:color-mix(in srgb,#86b2ed 12%,var(--cell,#fff))!important
}
body:has(#lessonView:not(.hidden)) #lessonView .lesson-cell.highlight,
body:has(#lessonView:not(.hidden)) #lessonView .lesson-cell.candidate-focus{
 background:color-mix(in srgb,#f6c861 25%,var(--cell,#fff))!important
}
body:has(#lessonView:not(.hidden)) #lessonView .lesson-cell.elimination-target{
 background:color-mix(in srgb,#f4a49e 17%,var(--cell,#fff))!important
}
body:has(#lessonView:not(.hidden)) #lessonView .lesson-cell.target{
 background:color-mix(in srgb,#7fcdaa 26%,var(--cell,#fff))!important;
 outline:2px solid #26a56c!important;outline-offset:-2px
}
body:has(#lessonView:not(.hidden)) #lessonView .lesson-cell .candidate-grid{
 display:grid!important;position:absolute!important;inset:2px!important;
 width:auto!important;height:auto!important;pointer-events:none;z-index:2;
 direction:ltr!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 grid-template-rows:repeat(3,minmax(0,1fr))!important;
 font-size:clamp(8px,1vw,13px)!important;font-weight:750!important;
 color:#456683!important;line-height:1!important
}
body:has(#lessonView:not(.hidden)) #lessonView .candidate-grid>.candidate-slot{
 display:grid!important;place-items:center!important;min-width:0;min-height:0;
 position:relative;border-radius:4px
}
body:has(#lessonView:not(.hidden)) #lessonView .candidate-grid .candidate-slot.em{
 border-radius:99px!important;background:#ffe5a7!important;color:#81500e!important;
 outline:1px solid #dfa740;font-weight:950!important
}
body:has(#lessonView:not(.hidden)) #lessonView .candidate-grid .candidate-slot.elim{
 text-decoration:line-through!important;text-decoration-thickness:2px!important;
 color:#c52b37!important;background:#ffdbdd!important;opacity:1!important;
 border-radius:99px!important;box-shadow:inset 0 0 0 1px #dc6571
}
body:has(#lessonView:not(.hidden)) #lessonView .lesson-cell .promoted{
 color:#17824f!important;font-weight:950!important;
 font-size:1.22em!important;text-shadow:0 0 1px #6bbf94
}
body:has(#lessonView:not(.hidden)) #lessonView .lesson-side{
 max-width:360px!important;gap:12px!important;grid-template-rows:auto auto auto auto!important
}
body:has(#lessonView:not(.hidden)) #lessonView .lesson-copy{
 border-radius:16px!important;padding:17px!important;
 box-shadow:0 6px 20px #2942660a!important
}
body:has(#lessonView:not(.hidden)) #lessonView .lesson-step-copy{
 overflow:visible!important;max-height:none!important;
 border-inline-start:4px solid #6489dd!important
}
body:has(#lessonView:not(.hidden)) #lessonView .lesson-copy h2{
 font-size:18px!important;line-height:1.35!important;margin:0 0 9px!important
}
body:has(#lessonView:not(.hidden)) #lessonView .lesson-copy h3{
 font-size:16px!important;line-height:1.5!important;margin:0 0 9px!important
}
body:has(#lessonView:not(.hidden)) #lessonView .lesson-copy p{
 font-size:13px!important;line-height:1.85!important
}
body:has(#lessonView:not(.hidden)) #lessonView .step-nav{
 display:grid!important;grid-template-columns:1fr auto 1fr!important;
 margin-top:13px!important;gap:12px!important;direction:ltr;
 background:var(--surface);border:1px solid var(--line);
 border-radius:14px;padding:9px!important
}
body:has(#lessonView:not(.hidden)) #lessonView .step-btn{
 min-height:42px!important;border-radius:10px!important;padding:8px 12px!important
}
body:has(#lessonView:not(.hidden)) #lessonView #nextStep:not(:disabled){
 background:#275fcb!important;color:#fff!important;border-color:#275fcb!important
}
body:has(#lessonView:not(.hidden)) #lessonView .step-count{
 white-space:nowrap;font-size:12px;direction:rtl;padding:0 5px
}
body:has(#lessonView:not(.hidden)) #lessonView #completeLessonBtn:not(.hidden){
 grid-column:1 / -1!important;width:100%;min-height:43px!important;
 border-color:#239463!important;background:#e3f5eb!important;color:#17673f!important
}
body:has(#lessonView:not(.hidden)) #lessonView #completeLessonBtn:not(.hidden):hover{
 background:#c9eedb!important
}
body:has(#lessonView:not(.hidden)) #lessonView .lesson-side-ad{
 min-height:0!important;max-height:70px!important
}
@media(max-width:1120px){
 body:has(#lessonView:not(.hidden)) #lessonView .lesson-layout{
  grid-template-columns:minmax(0,650px)!important;
 }
 body:has(#lessonView:not(.hidden)) #lessonView .lesson-side{max-width:650px!important}
}
@media(max-width:760px){
 body:has(#lessonView:not(.hidden)) #lessonView .lesson-layout{display:block!important}
 body:has(#lessonView:not(.hidden)) #lessonView .lesson-side{margin-top:14px!important}
 body:has(#lessonView:not(.hidden)) #lessonView .lesson-board{max-width:100%!important}
 body:has(#lessonView:not(.hidden)) #lessonView .step-nav{gap:5px!important;padding:6px!important}
 body:has(#lessonView:not(.hidden)) #lessonView .step-count{font-size:11px!important}
 body:has(#lessonView:not(.hidden)) #lessonView .lesson-cell .candidate-grid{
  font-size:clamp(8.3px,2.35vw,11px)!important;inset:1px!important
 }
}

/* V50: tight strategy-only progress affordance; distinguish game given vs confirmed. */
body:has(#lessonView:not(.hidden)) #lessonView .lesson-cell.filled{
 color:#117c5a!important;background:color-mix(in srgb,#b8eed5 20%,var(--cell,#fff))!important;
}
body:has(#lessonView:not(.hidden)) #lessonView .step-nav .step-count{
 font-variant-numeric:tabular-nums;min-width:75px
}
body:has(#lessonView:not(.hidden)) #lessonView .back-link:focus-visible,
body:has(#lessonView:not(.hidden)) #lessonView .step-btn:focus-visible{
 outline:3px solid #efb848!important;outline-offset:2px
}
