
/* V183 reusable public educational reading tools. No game/admin style changes. */
.v183-reading-actions{
 display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important;
 gap:10px 18px!important;align-items:center!important;box-sizing:border-box!important;
 border:1px solid #b6d2e7!important;background:#ecf6ff!important;
 border-radius:13px!important;padding:10px 13px!important;
 margin:0 0 22px!important;
 min-width:0!important;max-width:100%!important;
}
.v183-reading-actions .v183-reading-back{
 display:flex!important;flex-wrap:wrap!important;align-items:center!important;
 gap:8px 16px!important;min-width:0!important;
}
.v183-reading-actions a{
 display:inline-flex!important;align-items:center!important;gap:6px!important;
 color:#145487!important;font-weight:750!important;
 font-size:13px!important;line-height:1.5!important;
 text-decoration:none!important;white-space:normal!important;
 padding:6px 8px!important;border-radius:8px!important;
 background:transparent!important;
}
.v183-reading-actions .v183-reading-mainlink{
 border:1px solid #a1c6e5!important;background:#fff!important;
}
.v183-reading-actions a:hover,.v183-reading-actions a:focus-visible{
 background:#dceeff!important;text-decoration:underline!important;
}
.v183-reading-actions button.v183-print-page{
 appearance:none!important;border:1px solid #1472b3!important;
 background:#176fae!important;color:#fff!important;
 font-family:inherit!important;font-size:13px!important;line-height:1.5!important;
 font-weight:800!important;padding:9px 16px!important;min-height:42px!important;
 border-radius:9px!important;cursor:pointer!important;white-space:nowrap!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 gap:8px!important;box-shadow:none!important;
}
.v183-reading-actions button.v183-print-page:hover{background:#0c5388!important}
.v183-reading-actions button.v183-print-page:focus-visible{
 outline:3px solid #f4b33a!important;outline-offset:3px!important;
}
body.dark .v183-reading-actions,body.site-guide-dark .v183-reading-actions{
 background:#203c56!important;border-color:#557e9b!important;
}
body.dark .v183-reading-actions a,body.site-guide-dark .v183-reading-actions a{color:#d9efff!important}
body.dark .v183-reading-actions .v183-reading-mainlink,body.site-guide-dark .v183-reading-actions .v183-reading-mainlink{
 background:#214e72!important;border-color:#598bb0!important;
}
@media(max-width:620px){
 .v183-reading-actions{gap:9px!important;padding:10px!important}
 .v183-reading-actions .v183-reading-back{flex:1 1 100%!important}
 .v183-reading-actions .v183-reading-secondary{margin-inline-start:auto!important}
 .v183-reading-actions button.v183-print-page{width:100%!important}
}
/* Print a readable full lesson/article; never print menus, interactive chrome, or ads. */
@media print{
 @page{size:auto;margin:13mm}
 /* Override older footer rule with greater specificity. */
 footer.sp-unified-footer-v177,body footer.sp-unified-footer-v177{display:none!important}
 html,body{background:#fff!important;color:#000!important;color-scheme:light!important}
 body{font-size:11pt!important;line-height:1.48!important}
 header,.top,.footer,footer,.sp-unified-footer-v177,.v183-reading-actions,
 .guide-language,.rubik-page-nav,.nav,.path,.advanced-breadcrumb,
 .editorial-nav-v115,.adsense-banner,.editorial-ad-slot,[data-ad-slot-key],
 .owner-quickbar,.owner-quickbar-v115,.v176-coordinate-note,
 .worked-v181-controls,.tool-actions,.quiz-actions,.guide-action-buttons{
  display:none!important;
 }
 main,main.wrap,.wrap,main.editorial-page-v115,main.rubik-course,
 body.v182-learning-with-board main.wrap{
  display:block!important;width:100%!important;max-width:none!important;
  margin:0!important;padding:0!important;overflow:visible!important;
  background:#fff!important;color:#000!important;
 }
 h1,h2,h3,.lede,body.v175-learning-page main h1,body.v175-learning-page main h2{
  display:block!important;color:#111!important;break-after:avoid-page!important;
 }
 h1,body.v175-learning-page main h1{font-size:22pt!important;line-height:1.25!important}
 h2,body.v175-learning-page main h2{font-size:14pt!important;margin:12px 0 7px!important}
 h3{font-size:12pt!important}
 p,li{color:#111!important;orphans:3;widows:3}
 .card,.panel,.rubik-card,.v175-explained,.v176-deep-practice,.worked-v181-entry,
 .proof-v181,.article-exercise-v181,.worked-v181-board-pane,.worked-v181-steps,
 .worked-v181-reference{
  display:block!important;box-shadow:none!important;border:1px solid #aaa!important;
  padding:10px!important;margin:9px 0!important;background:#fff!important;
  color:#000!important;max-height:none!important;overflow:visible!important;
 }
 .v182-lesson-side-by-side{
  display:grid!important;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr)!important;
  gap:14px!important;align-items:start!important;break-inside:avoid-page!important;
 }
 .v182-lesson-primary,.v182-lesson-side-by-side>figure{
  display:block!important;min-width:0!important;max-width:100%!important;
 }
 .v182-lesson-side-by-side>figure table.sudoku{
  width:100%!important;max-width:90mm!important;margin:0 auto!important;
 }
 .v182-lesson-side-by-side>figure table.sudoku td{
  font-size:12pt!important;padding:0!important;
 }
 table.sudoku{break-inside:avoid!important}
 figure{break-inside:avoid-page!important}
 figure img,.learning-visual-v175 img,.learning-visual-v176 img{
  display:block!important;max-width:100%!important;max-height:110mm!important;
  height:auto!important;object-fit:contain!important;
  -webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;
 }
 .v176-lesson-hero,.editorial-library-v115.v176-side-image{
  display:grid!important;grid-template-columns:1fr 1fr!important;
  column-gap:12px!important;align-items:start!important;
 }
 .v176-lesson-hero figure,.editorial-library-v115.v176-side-image>figure{
  max-width:100%!important;min-width:0!important;
 }
 .worked-v181-layout{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important}
 .worked-v181-grid{
  max-width:92mm!important;-webkit-print-color-adjust:exact!important;
  print-color-adjust:exact!important;
 }
 .worked-v181-reason{min-height:0!important}
 .kicker{font-size:9pt!important}
 a{color:#153d68!important;text-decoration:underline!important}
}

/* When printing from a narrow mobile layout, preserve legibility of the 9x9 grid. */
@media print and (max-width:700px){
 body.v182-learning-with-board .v182-lesson-side-by-side{
  display:block!important;grid-template-columns:1fr!important;
  break-inside:auto!important;
 }
 body.v182-learning-with-board .v182-lesson-side-by-side > figure{
  display:block!important;max-width:100%!important;
  margin:8px auto!important;
 }
 body.v182-learning-with-board .v182-lesson-side-by-side > figure table.sudoku{
  width:min(100%,95mm)!important;max-width:95mm!important;
 }
 .v176-lesson-hero,.editorial-library-v115.v176-side-image,
 .worked-v181-layout{display:block!important;grid-template-columns:1fr!important}
 .v176-lesson-hero figure,.editorial-library-v115.v176-side-image>figure,
 .worked-v181-board-pane{max-width:100%!important;margin:8px 0!important}
}
