/* Catalogue/studio presentation only. Student games and Moodle are not included. */
@media (max-width:1023px){
 .nsk-readable .catalog-layout{display:block}
 .nsk-readable .catalog-filters{display:none}
 .nsk-readable .open-filters{display:inline-flex;align-items:center;gap:5px;border:1px solid #cbd9d0;border-radius:10px;padding:10px 12px;min-height:44px;background:white;color:#0d5651;font-size:14px;font-weight:700;white-space:nowrap}
 .nsk-readable .catalog-filters.open{position:fixed;display:flex;flex-direction:column;right:0;top:0;bottom:0;width:min(420px,94vw);z-index:1002;border-radius:16px 0 0 16px;padding:0;background:white;box-shadow:-10px 0 45px #0b342422;overflow:hidden}
 .nsk-readable .filter-heading{display:flex;align-items:center;justify-content:space-between;padding:20px 22px 12px;flex:none}
 .nsk-readable .filter-heading h2{font-size:25px;margin:0}
 .nsk-readable .close-filters{display:block;background:transparent;border:0;font-size:30px;color:#0d5651;padding:3px 9px;min-width:44px;min-height:44px}
 .nsk-readable .filter-content{overflow:auto;overscroll-behavior:contain;padding:12px 22px;flex:1;margin:0;min-height:0}
 .nsk-readable .filter-check{border:1px solid #dce5de;border-radius:10px;padding:12px;min-height:48px;margin:7px 0;align-items:center;font-size:14px;background:#fbfcf8}
 .nsk-readable .filter-check:has(input:checked){background:#0d5651;color:white;border-color:#0d5651}
 .nsk-readable .filter-check input{width:19px;height:19px;accent-color:#0d5651;margin:0}
 .nsk-readable .filter-check:has(input:checked) input{accent-color:white}
 .nsk-readable .catalog-filters fieldset{border-bottom-color:#e0e7e1;padding-bottom:19px;margin-bottom:22px}
 .nsk-readable .catalog-filters legend{font-size:16px}
 .nsk-readable .filter-actions{display:flex;align-items:center;gap:12px;justify-content:space-between;border-top:1px solid #dce5de;padding:16px 22px calc(16px + env(safe-area-inset-bottom));background:white;flex:none}
 .nsk-readable .filter-actions button{font-size:14px;min-height:46px;padding:12px}
 .nsk-readable .filter-actions .apply-filters{display:block;background:#0d5651;color:white;border-radius:10px;padding:12px 20px}
 .nsk-readable .filter-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:1001;background:#092b2380;border:0}
 body.filters-open{overflow:hidden}
 .nsk-readable.filters-open .header,.nsk-readable.filters-open .cmplz-manage-consent{visibility:hidden}
 .nsk-readable .catalog-filters .grade-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
 .nsk-readable .grade-filters .filter-check{margin:0;padding:12px 5px;justify-content:center;position:relative}
 .nsk-readable .grade-filters input{position:absolute;width:1px;height:1px;opacity:0}
 .nsk-readable .grade-filters span{font-size:0}
 .nsk-readable .grade-filters span:after{content:attr(data-short);font-size:16px}
 .nsk-readable .grade-filters label:has(input:checked) span:before{content:'✓ ';font-size:13px}
 .nsk-readable .grade-filters label:has(input:focus-visible){outline:3px solid #238e80;outline-offset:2px}
}
@media(min-width:761px) and (max-width:1023px){
 .nsk-readable .modern-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 .nsk-readable .modern-cards.list-view{grid-template-columns:1fr}
 .nsk-readable .catalog-sort select{max-width:160px}
}
/* A mobile detail prioritises playing/sharing; desktop's two-column composition is unchanged. */
@media(max-width:760px){
 .nsk-readable .catalog-types{grid-template-columns:repeat(3,minmax(0,1fr))}
 .nsk-readable .catalog-types>*{min-width:0}
 .nsk-readable .detail{padding-left:18px;padding-right:18px}
 .nsk-readable .detail-top{display:flex;flex-direction:column;gap:14px;align-items:stretch}
 .nsk-readable .detail-copy{display:contents}
 .nsk-readable .detail-copy>.badge{order:1;align-self:flex-start}
 .nsk-readable .detail-copy>h1{order:2;font-size:30px;line-height:1.15;margin:0;overflow-wrap:anywhere}
 .nsk-readable .detail-copy>.subtitle{order:3;margin:0}
 .nsk-readable .detail-copy>.detail-meta{order:4;display:flex;flex-wrap:wrap;gap:8px 14px;margin:0;font-size:14px}
 .nsk-readable .detail-copy>p:not(.lead):not(.subtitle){order:4}
 .nsk-readable .detail-copy>.play{order:5;min-height:48px;font-size:16px;margin:2px 0 0;width:100%}
 .nsk-readable .detail-copy>.share{order:6;margin:0;padding:16px;min-width:0}
 .nsk-readable .detail .share h2{font-size:17px;margin:0 0 4px}
 .nsk-readable .detail .share p{font-size:14px;margin:0 0 10px}
 .nsk-readable .detail .share input{width:100%;min-width:0;font-size:16px}
 .nsk-readable .detail .share a{overflow-wrap:anywhere}
 .nsk-readable .detail .share .copy{min-height:48px;width:100%;font-size:14px;white-space:normal}
 .nsk-readable .detail .detail-visual{order:7;width:100%;position:static;aspect-ratio:16/10;min-width:0;margin-top:8px}
 .nsk-readable .detail-copy>.lead{order:8;margin:0;font-size:16px;line-height:1.65}
 .nsk-readable .catalog-search input{font-size:16px}
}
@media(max-width:380px){
 .nsk-readable .catalog-toolbar{flex-wrap:wrap}
 .nsk-readable .catalog-toolbar>div:first-child{width:100%;justify-content:space-between}
 .nsk-readable .catalog-toolbar .toolbar-controls{width:100%;justify-content:space-between}
}
/* A native details control keeps original fields and their handlers intact. */
.nsk-readable .nsk-metadata-fold{min-width:0}
.nsk-readable .nsk-metadata-fold>summary{display:none}
@media(max-width:760px){
 .nsk-readable.nsk-studio-site:not(.playing):not(:has(.board-shell,.question-screen,.answer-page,.game-screen)) :is(.editor-heading,.studio .pagehead){margin:12px 0 18px;gap:12px}
 .nsk-readable.nsk-studio-site:not(.playing):not(:has(.board-shell,.question-screen,.answer-page,.game-screen)) :is(.editor-heading h1,.studio .pagehead h1){font-size:25px;line-height:1.18;letter-spacing:-.7px;margin:8px 0}
 .nsk-readable.nsk-studio-site:not(.playing) .editor-heading>div>p,.nsk-readable.nsk-studio-site:not(.playing) .studio .pagehead>p{margin:8px 0;font-size:14px;line-height:1.5}
 .nsk-readable.nsk-studio-site:not(.playing) :is(.editor-heading h1 br,.editor-heading h1 .title-dot){display:none}
 .nsk-readable.nsk-studio-site:not(.playing) .editor-actions{gap:8px;align-items:stretch}
 .nsk-readable.nsk-studio-site:not(.playing) .editor-actions .row{display:flex;flex-wrap:wrap;gap:8px}
 .nsk-readable.nsk-studio-site:not(.playing) .editor-actions .row>button{flex:1;white-space:normal}
 .nsk-readable.nsk-studio-az:not(.playing):has(.metadata) .preview-notice{display:none}
 .nsk-readable.nsk-studio-az:not(.playing) #save-state{font-size:14px}
 .nsk-readable :is(.metadata,.wizard-metadata):has(.nsk-metadata-fold){padding:0!important;overflow:clip}
 .nsk-readable :is(.metadata>.panel-heading,.wizard-metadata>.wizard-heading):has(+.nsk-metadata-fold){display:none}
 .nsk-readable .nsk-metadata-fold{background:#fff;border:1px solid #d9e3de;border-radius:12px;margin:0 0 16px;overflow:clip}
 .nsk-readable :is(.metadata,.wizard-metadata)>.nsk-metadata-fold{border:0;margin:0}
 .nsk-readable .nsk-metadata-fold>summary{display:flex;align-items:center;gap:12px;justify-content:space-between;cursor:pointer;padding:14px 16px;min-height:64px;list-style:none;color:#172c2a}
 .nsk-readable .nsk-metadata-fold>summary::-webkit-details-marker{display:none}
 .nsk-readable .nsk-metadata-fold>summary>span{display:flex;flex-direction:column;gap:3px;min-width:0}
 .nsk-readable .nsk-metadata-fold>summary strong{font-size:15px}
 .nsk-readable .nsk-metadata-fold>summary small{font-size:14px;line-height:1.45;color:#536b69;overflow-wrap:anywhere}
 .nsk-readable .nsk-fold-action{flex:none;font-size:14px;color:#0d5651;text-decoration:underline;text-underline-offset:3px}
 .nsk-readable .nsk-metadata-fold[open]>.nsk-fold-action{display:none}
 .nsk-readable .nsk-metadata-fold>:not(summary){padding:0 16px 16px;margin:0;min-width:0}
 .nsk-readable .nsk-metadata-fold .title-field{display:block}
 .nsk-readable .nsk-metadata-fold .metadata-grid,.nsk-readable .nsk-metadata-fold .wizard-meta-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
 .nsk-readable .nsk-metadata-fold:focus-within{overflow:visible}
}
