/* iPad portrait Theme canvas and Spell entry refinement, 20261109. */
@media(min-width:700px) and (orientation:portrait){
html[data-ui-platform="ipad"] #screen-themes .worlds-select-body{box-sizing:border-box;width:100%!important;max-width:none!important;margin:0!important;padding:16px 36px 64px!important;scrollbar-gutter:stable;}
html[data-ui-platform="ipad"] #screen-sight-words .sw-categories{gap:24px!important;padding-top:28px;align-content:start;}
html[data-ui-platform="ipad"] #screen-sight-words .sw-category-card{margin:0 auto!important;}
html[data-ui-platform="ipad"] #screen-sight-words .sw-category-art{display:block;width:130px;height:140px;background:center/contain no-repeat url("ui-assets/spell-logos/sight-cards-v2.png");}
html[data-ui-platform="ipad"] #screen-sight-words .sw-category-art i{display:none;}
html[data-ui-platform="ipad"] #screen-sight-words #sw-category-bee .sw-category-art{background-image:url("ui-assets/spell-logos/bee-icon.png");}
}

@media(min-width:700px) and (orientation:portrait){
html[data-ui-platform="ipad"] #screen-sight-words:is([data-category="sight"],[data-category="bee-book"]) .sw-word-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;max-width:none;border:1px solid #dce6ed;padding:8px;border-radius:18px;background:#fff;}
html[data-ui-platform="ipad"] #screen-sight-words:is([data-category="sight"],[data-category="bee-book"]) .sw-word-tile{min-height:60px;border:1px solid #ffffff;border-radius:9px;box-shadow:none;color:#354f67;}
html[data-ui-platform="ipad"] #screen-sight-words:is([data-category="sight"],[data-category="bee-book"]) .sw-word-tile>span{font-size:24px;padding:8px 6px 14px;}
html[data-ui-platform="ipad"] #screen-sight-words:is([data-category="sight"],[data-category="bee-book"]) .sw-word-tile:nth-child(4n+1){background:#ffe1df;}
html[data-ui-platform="ipad"] #screen-sight-words:is([data-category="sight"],[data-category="bee-book"]) .sw-word-tile:nth-child(4n+2){background:#d9f1ff;}
html[data-ui-platform="ipad"] #screen-sight-words:is([data-category="sight"],[data-category="bee-book"]) .sw-word-tile:nth-child(4n+3){background:#fff1b8;}
html[data-ui-platform="ipad"] #screen-sight-words:is([data-category="sight"],[data-category="bee-book"]) .sw-word-tile:nth-child(4n){background:#dff4df;}
}

/* Shared visual assets and colour grid; layout tuned by viewport. */
/* iPad portrait Theme canvas and Spell entry refinement, 20261109. */
@media(max-width:699px), (min-width:700px) and (orientation:landscape){
html #screen-themes .worlds-select-body{box-sizing:border-box;width:100%!important;max-width:none!important;margin:0!important;padding:16px 36px 64px!important;scrollbar-gutter:stable;}
html #screen-sight-words .sw-categories{gap:24px!important;padding-top:28px;align-content:start;}
html #screen-sight-words .sw-category-card{margin:0 auto!important;}
html #screen-sight-words .sw-category-art{display:block;width:130px;height:140px;background:center/contain no-repeat url("ui-assets/spell-logos/sight-cards-v2.png");}
html #screen-sight-words .sw-category-art i{display:none;}
html #screen-sight-words #sw-category-bee .sw-category-art{background-image:url("ui-assets/spell-logos/bee-icon.png");}
}

@media(max-width:699px), (min-width:700px) and (orientation:landscape){
html #screen-sight-words:is([data-category="sight"],[data-category="bee-book"]) .sw-word-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;max-width:none;border:1px solid #dce6ed;padding:8px;border-radius:18px;background:#fff;}
html #screen-sight-words:is([data-category="sight"],[data-category="bee-book"]) .sw-word-tile{min-height:60px;border:1px solid #ffffff;border-radius:9px;box-shadow:none;color:#354f67;}
html #screen-sight-words:is([data-category="sight"],[data-category="bee-book"]) .sw-word-tile>span{font-size:24px;padding:8px 6px 14px;}
html #screen-sight-words:is([data-category="sight"],[data-category="bee-book"]) .sw-word-tile:nth-child(4n+1){background:#ffe1df;}
html #screen-sight-words:is([data-category="sight"],[data-category="bee-book"]) .sw-word-tile:nth-child(4n+2){background:#d9f1ff;}
html #screen-sight-words:is([data-category="sight"],[data-category="bee-book"]) .sw-word-tile:nth-child(4n+3){background:#fff1b8;}
html #screen-sight-words:is([data-category="sight"],[data-category="bee-book"]) .sw-word-tile:nth-child(4n){background:#dff4df;}
}


@media(max-width:699px){
html #screen-themes .worlds-select-body{padding:14px 16px 36px!important;}
html #screen-sight-words .sw-categories{gap:16px!important;padding-top:16px;display:grid;}
html #screen-sight-words .sw-category-art{width:82px;height:96px;}
html #screen-sight-words:is([data-category="sight"],[data-category="bee-book"]) .sw-word-grid{gap:5px;padding:5px;border-radius:12px;}
html #screen-sight-words:is([data-category="sight"],[data-category="bee-book"]) .sw-word-tile{min-height:54px;}
html #screen-sight-words:is([data-category="sight"],[data-category="bee-book"]) .sw-word-tile>span{font-size:17px;padding:6px 2px 13px;}
}
@media(min-width:700px) and (orientation:landscape){
html[data-ui-platform="ipad"] #screen-themes #learning-themes-grid {
  grid-template-columns:minmax(0,1fr);
  max-width:880px;
}
html #screen-themes .worlds-select-body{padding:20px 36px 72px!important;}
html #screen-sight-words .sw-categories{display:grid;gap:20px!important;padding-top:20px;}
html #screen-sight-words .sw-category-art{width:110px;height:120px;}
html #screen-sight-words:is([data-category="sight"],[data-category="bee-book"]) .sw-word-grid{grid-template-columns:repeat(8,minmax(0,1fr))!important;}
html #screen-sight-words:is([data-category="sight"],[data-category="bee-book"]) .sw-word-tile>span{font-size:22px!important;}
}

html[data-ui-platform="ipad"] #screen-themes .worlds-select-body{scrollbar-gutter:auto;}
