/* V117 scoped refinements: normal screens only. Printing remains content-only. */
@media screen and (min-width:1100px){
 body:has(#printPreview) main.wrap{padding-top:12px!important}
 body:has(#printPreview) main.wrap>.kicker{font-size:10px!important;margin:2px 0!important}
 body:has(#printPreview) main.wrap>h1{font-size:clamp(23px,2.1vw,30px)!important;line-height:1.15!important;margin:4px 0 5px!important}
 body:has(#printPreview) main.wrap>.lede{font-size:12px!important;margin:0 0 10px!important;line-height:1.35!important;max-width:100%!important}
 body:has(#printPreview) main.wrap>.card:first-of-type{padding:13px 16px!important;margin:9px 0!important;border-radius:13px!important}
 body:has(#printPreview) main.wrap>.card:first-of-type h2{font-size:17px!important;margin:0 0 3px!important;line-height:1.25!important}
 body:has(#printPreview) main.wrap>.card:first-of-type>p:not(#toolStatus){font-size:11px!important;line-height:1.36!important;margin:3px 0 9px!important}
 body:has(#printPreview) .print-controls{
  display:grid!important;grid-template-columns:minmax(95px,1fr) minmax(95px,1fr) minmax(95px,1fr) minmax(165px,1.15fr) minmax(136px,1fr) 80px!important;
  align-items:end!important;gap:8px!important;margin:8px 0!important;
 }
 body:has(#printPreview) .print-controls label{grid-column:auto!important;min-width:0!important;font-size:11px!important;gap:4px!important;margin:0!important}
 body:has(#printPreview) .print-controls select{height:35px!important;min-height:35px!important;font-size:12px!important;padding:4px 9px!important;width:100%!important}
 body:has(#printPreview) .print-controls .inline-check{grid-column:auto!important;min-height:35px!important;font-size:10.5px!important;line-height:1.2!important;align-self:end!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:6px!important}
 body:has(#printPreview) .print-controls .inline-check input{width:15px!important;height:15px!important;flex:none!important}
 body:has(#printPreview) .print-controls button{height:35px!important;min-height:35px!important;padding:5px 8px!important;font-size:11px!important;white-space:normal!important;line-height:1.1!important}
 body:has(#printPreview) #toolStatus{margin:7px 0 0!important;padding:7px 10px!important;min-height:30px!important;font-size:11px!important;line-height:1.4!important}
 body:has(#printPreview) #printPreview{margin:10px auto 16px!important}
}
@media screen and (min-width:720px) and (max-width:1099px){
 body:has(#printPreview) .print-controls{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
 body:has(#printPreview) .print-controls .inline-check{grid-column:auto!important}
}
@media screen and (max-width:719px){
 body:has(#printPreview) main.wrap>h1{font-size:25px!important;line-height:1.2!important}
 body:has(#printPreview) main.wrap>.lede{font-size:13px!important}
 body:has(#printPreview) main.wrap>.card:first-of-type{padding:12px!important}
 body:has(#printPreview) .print-controls{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
 body:has(#printPreview) .print-controls label,.print-controls button{min-width:0!important}
 body:has(#printPreview) .print-controls .inline-check{grid-column:1/-1!important}
 body:has(#printPreview) .print-controls button{min-height:36px!important}
 body:has(#printPreview) #toolStatus{padding:8px!important;min-height:0!important}
}
/* Custom puzzle: balanced two-column editor rail, numerals at human scale. */
@media screen and (min-width:1100px){
 .custom-shell{max-width:1450px!important;padding-top:20px!important}
 .custom-workspace{grid-template-columns:minmax(470px,625px) minmax(470px,620px)!important;gap:20px!important;align-items:start!important}
 .custom-board-column{min-width:0!important;width:100%!important;max-width:625px!important}
 .custom-board-column .custom-grid{width:100%!important;max-width:625px!important}
 .custom-workspace .custom-controls{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;align-content:start!important;min-width:0!important}
 .custom-controls>.custom-modes-v114,.custom-controls>#customModeDescription,
 .custom-controls>#clueHelpCard,.custom-controls>#customAutoCard,
 .custom-controls>.custom-tip,.custom-controls>.custom-side-ad{grid-column:1/-1!important}
 .custom-controls>.numbers-card{grid-column:1!important;min-width:0!important}
 .custom-controls>.build-around-card{grid-column:2!important;min-width:0!important}
 .custom-controls .control-card{padding:12px 13px!important;border-radius:14px!important}
 .custom-controls .control-card h2{font-size:15px!important;margin:0 0 5px!important;line-height:1.22!important}
 .custom-controls .control-card p{font-size:11px!important;line-height:1.42!important;margin:5px 0 8px!important}
 .custom-controls .custom-pad{gap:5px!important;margin:8px 0!important;max-width:100%!important}
 .custom-controls .custom-pad button{height:40px!important;min-height:40px!important;font-size:16px!important;border-radius:9px!important;padding:0!important}
 .custom-controls .numbers-card-head{margin-bottom:2px!important}
 .custom-controls .custom-actions .soft-btn{min-height:35px!important;padding:6px 7px!important;font-size:11px!important;border-radius:9px!important}
 .custom-controls .build-around-card .difficulty-field{margin:8px 0!important;gap:4px!important;font-size:11px!important}
 .custom-controls .build-around-card select{min-height:36px!important;padding:5px 7px!important;font-size:11px!important}
 .custom-controls .build-around-card .build-btn{min-height:38px!important;padding:6px 9px!important;font-size:11px!important;border-radius:9px!important}
 .custom-controls .build-around-card .build-note{display:block!important;margin-top:7px!important;font-size:10px!important;line-height:1.35!important}
 .custom-controls .build-spark{width:29px!important;height:29px!important;flex-basis:29px!important;font-size:15px!important}
 .custom-controls .custom-modes-v114 .custom-mode-v114{min-height:48px!important;font-size:11px!important;line-height:1.3!important;padding:7px 9px!important}
 .custom-hero{margin-bottom:13px!important}
 .custom-hero h1{font-size:clamp(31px,3.5vw,48px)!important}
 .custom-hero>p{font-size:12px!important}
 .custom-controls>.custom-side-ad{min-height:75px!important;margin:4px 0!important}
}
@media screen and (min-width:720px) and (max-width:1099px){
 .custom-controls .custom-pad{max-width:370px!important;margin:8px auto!important}
 .custom-controls .custom-pad button{height:42px!important;font-size:16px!important}
 .custom-controls .custom-modes-v114 .custom-mode-v114{min-height:48px!important}
 .custom-controls .control-card{padding:13px!important}
}
@media screen and (max-width:719px){
 .custom-controls .custom-pad button{height:43px!important;font-size:17px!important}
 .custom-controls .custom-modes-v114 .custom-mode-v114{min-height:48px!important;font-size:10px!important}
 .custom-controls .build-around-card{padding:12px!important}
 .custom-controls .build-around-card p{font-size:12px!important}
}
.custom-board-column .board-primary-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;align-items:center!important;margin:10px 0!important}
.custom-board-column .board-primary-actions button{flex:1 1 135px!important;min-width:110px!important;min-height:40px!important;padding:8px 12px!important;font-size:12px!important;border-radius:10px!important}
.custom-board-column #sharePuzzle{background:#f0f7ff!important;border:1px solid #b2d0e9!important;color:#185786!important}
.custom-board-column #sharePuzzle:hover{background:#dfedff!important}
.custom-controls>.custom-tip{padding:10px 12px!important;border-radius:11px!important;font-size:11px!important}
body.dark .custom-board-column #sharePuzzle{background:#29435e!important;color:#e9f5ff!important;border-color:#4a6885!important}
/* Typography for readable longform: scale headings down, keep paragraph comfort. */
.editorial-page-v115 .editorial-story-v115 h2{font-size:clamp(17px,1.65vw,19px)!important;margin:21px 0 7px!important;line-height:1.42!important;letter-spacing:0!important}
.editorial-page-v115 .editorial-story-v115 p{font-size:15px!important;line-height:1.87!important;margin:9px 0 13px!important}
.editorial-page-v115 .editorial-library-v115 h1{font-size:clamp(23px,3vw,34px)!important;line-height:1.28!important;margin:6px 0 9px!important}
.editorial-page-v115 .editorial-library-v115{padding:17px 21px!important;margin:8px 0 18px!important}
@media(max-width:640px){.editorial-page-v115 .editorial-story-v115 p{font-size:14px!important}}

@media screen and (min-width:1100px){
 body .custom-workspace .custom-controls>.custom-modes-v114 .custom-mode-v114{height:52px!important;min-height:52px!important;max-height:none!important;line-height:1.35!important}
}

@media screen and (min-width:1100px){
 .custom-workspace .custom-controls>.numbers-card{align-self:start!important;height:auto!important;min-height:0!important}
 .custom-workspace .custom-controls>.build-around-card{align-self:start!important}
}
