/* finesse · register=product · A=cool silver+teal · B=system 650/400
 * C=single-screen launchpad · D=feedback only · E=soft surfaces
 * SOUL=5 SPECTACLE=2 DENSITY=7 */
body[data-view=portal]{min-height:100svh;display:flex;flex-direction:column}
body[data-view=portal] #main{flex:1;display:flex;flex-direction:column;justify-content:center;padding-block:28px}
.portal-title{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}
body[data-view=portal] .module-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;width:100%}
body[data-view=portal] .module{grid-column:span 2;min-height:0;height:198px;padding:24px;border-radius:22px;justify-content:start;gap:16px}
body[data-view=portal] .module-copy{flex:0;max-width:100%;padding:0}
body[data-view=portal] .module h2{font-size:22px;line-height:1.3;margin-bottom:7px;letter-spacing:-.025em}
body[data-view=portal] [data-module-description]{font-size:12px;line-height:1.75;margin:0;max-width:255px;overflow-wrap:anywhere;color:#586674}
body[data-view=portal] .module-icon{width:38px;height:38px;flex-shrink:0}
body[data-view=portal] .academic .module-copy{padding-right:0}
body[data-view=portal] .module-detail{font-size:10px;line-height:1.6;margin-top:auto;color:#5a6f7e}
body[data-view=portal] .cats .module-copy{max-width:calc(100% - 88px)}
body[data-view=portal] .cat-preview{width:72px;height:auto;right:24px;top:22px;border-radius:12px;border-width:3px;transform:rotate(5deg)}
body[data-view=portal] .cat-preview img{width:100%;height:auto}
body[data-view=portal] .metriklite,body[data-view=portal] .slides{grid-column:span 2}
body[data-view=portal] .tools{background:#eaf2f1}
body[data-view=portal] .academic{background:#e7eef8}
body[data-view=portal] .academic .module-icon{background:#cfddf0;color:#385985}
body[data-view=portal] .tools{background:#e9f3ee}
body[data-view=portal] .tools .module-icon{background:#d6e9df;color:#347454}
body[data-view=portal] .metriklite .module-copy{max-width:70%}
body[data-view=portal] .software-preview{width:116px;right:22px;top:36px;transform:rotate(5deg)}
body[data-view=portal] .software-preview img{width:116px;border-radius:13px}
body[data-view=portal] .footer{margin-top:0;border-top:1px solid var(--line);padding:12px 0;min-height:65px;display:flex;align-items:center;gap:20px;flex-wrap:wrap;font-size:11px}
body[data-view=portal] .footer nav{display:flex;gap:22px;margin-left:auto;width:auto}
body[data-view=portal] .footer nav a{min-height:40px;display:flex;align-items:center;white-space:nowrap;color:var(--muted)}
body[data-view=portal] .footer small{color:var(--muted);font-size:11px;width:auto}
@media(min-width:701px) and (max-height:700px){
 body[data-view=portal] #main{padding-block:18px}
 body[data-view=portal] .module{height:180px;padding:20px;gap:12px}
 body[data-view=portal] .footer{min-height:55px;padding-block:7px}
}
@media(max-width:980px) and (min-width:701px){
 body[data-view=portal] .module{padding:21px;height:205px}
 body[data-view=portal] .academic .module-copy{padding-right:0}
 body[data-view=portal] .module h2{font-size:20px}
 body[data-view=portal] .cat-preview{display:none}
 body[data-view=portal] .cats .module-copy{max-width:100%}
}
@media(max-width:700px){
 body[data-view=portal] #main{padding-block:18px}
 body[data-view=portal] .module-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body[data-view=portal] .module{grid-column:span 1;height:146px;padding:18px;border-radius:18px;gap:12px}
 body[data-view=portal] .academic{grid-column:span 1;height:146px}
 body[data-view=portal] .metriklite,body[data-view=portal] .slides{grid-column:span 1}
 body[data-view=portal] .module-icon{width:30px;height:30px;border-radius:9px}
 body[data-view=portal] .module-icon .ui-icon{width:18px;height:18px}
 body[data-view=portal] .module h2{font-size:19px;line-height:1.3;margin-bottom:6px}
 body[data-view=portal] [data-module-description]{font-size:11px;line-height:1.65}
 body[data-view=portal] .academic .module-copy{padding-right:0}
 body[data-view=portal] .academic .module-detail{display:none}
 body[data-view=portal] .cats .module-copy,body[data-view=portal] .metriklite .module-copy{max-width:100%}
 body[data-view=portal] .module-media{display:none}
 body[data-view=portal] .footer{padding:8px 0;gap:4px 12px;min-height:56px}
 body[data-view=portal] .footer nav{gap:16px}
 body[data-view=portal] .footer nav a{min-height:44px;font-size:11px}
}
@media(max-width:370px){
 body[data-view=portal] .module{padding:16px;height:148px}
 body[data-view=portal] .module h2{font-size:18px}
 body[data-view=portal] .academic .module-detail{top:25px;left:58px;max-width:calc(100% - 82px);font-size:9px}
 body[data-view=portal] .footer nav{gap:12px}
}
@media(max-width:700px) and (max-height:700px){
 body[data-view=portal] #main{padding-block:12px}
 body[data-view=portal] .module{height:130px;padding:14px;gap:8px}
 body[data-view=portal] .module-icon{width:26px;height:26px}
 body[data-view=portal] .module h2{font-size:18px}
 body[data-view=portal] .academic .module-detail{top:20px;left:52px}
}

@media(max-width:700px) and (max-height:700px){
 body[data-view=portal] #main{padding-block:6px}
 body[data-view=portal] .footer{padding-block:5px}
 body[data-view=portal] .module{height:100px;padding:13px;gap:0}
 body[data-view=portal] .module-icon{position:absolute;top:13px;left:13px}
 body[data-view=portal] .module h2{padding-left:35px;min-height:26px;display:flex;align-items:center;font-size:17px;margin-bottom:5px}
 body[data-view=portal] .academic .module-detail{position:static;max-width:100%;margin-top:auto;font-size:9px}
 body[data-view=portal] .module [data-module-description]{font-size:10px;line-height:1.6}
}
/* Very small, short screens keep all six entries and the footer in one viewport. */
@media(max-width:360px) and (max-height:650px){
 body[data-view=portal] .module{height:88px;padding:11px}
 body[data-view=portal] .module-icon{display:none}
 body[data-view=portal] .module h2{padding-left:0;min-height:21px;font-size:16px;white-space:nowrap}
 body[data-view=portal] .module [data-module-description]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
}
