/* Independent preview: original layout adjustments using the site's existing
   native search, resource buttons, service SVGs and popovers. No new UI library. */
body.home-view #main .search{width:min(100%,760px);max-width:760px;height:50px;min-height:50px;margin:20px auto 0}
body.home-view #main .search input{font-size:14px}
body.home-view #main .search input::placeholder{color:#939dac}
body.home-view #main .resource-types{width:min(520px,100%);margin:14px auto 0;gap:8px}
body.home-view #main .resource-type{min-height:38px;padding:7px 12px;gap:7px;border-color:#e8ecf2;border-radius:8px;background:#fff;font-size:13px;box-shadow:none}
body.home-view #main .resource-type-icon{width:18px;height:18px}
body.home-view #main .resource-type[aria-pressed=true]{border-color:#dce4fb;background:#f6f8fe;color:#4166d8;box-shadow:none}
body.home-view #main .resource-type[aria-pressed=true]::after{display:none}
body.home-view #main .resource-type:hover{border-color:#cbd7ed;background:#f7f9fc}
body.home-view #main .home-services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(100%,760px);margin:24px auto 0;padding-top:20px;gap:12px}
body.home-view #main .home-services .home-service{display:grid;grid-template-columns:38px minmax(0,1fr) 10px;align-items:center;justify-content:stretch;column-gap:10px;min-height:100px;height:100px;padding:12px 13px;border-radius:12px;text-align:left}
body.home-view #main .home-services .service-emblem{width:38px;height:38px;border-radius:10px}
body.home-view #main .home-services .service-icon{width:24px;height:24px}
body.home-view #main .home-services .service-copy{display:grid;grid-template-rows:20px 18px 18px;align-items:start;align-content:center;row-gap:3px;min-width:0;max-width:100%;text-align:left}
body.home-view #main .home-services .service-label{font-size:13px;font-weight:550;line-height:20px;white-space:nowrap}
.home-service--planet .planet-platform{display:none}
/* Homepage: give the course one title and group platform with price. */
.home-service--planet .planet-divider{display:none}
body.home-view #main .home-services .home-service--planet .planet-course-action{
  display:flex;
  align-items:baseline;
  gap:5px;
  color:#4166d8;
  white-space:nowrap;
}
body.home-view #main .home-services .planet-platform{
  display:inline;
  margin-left:0;
  color:#4166d8;
  font-size:13px;
  font-weight:650;
  line-height:18px;
}
body.home-view #main .home-services .planet-price{
  color:#5777cc;
  font-size:11px;
  font-weight:400;
  line-height:18px;
}
body.home-view #main .home-services .planet-divider{
  display:inline;
  color:#a1b3df;
  font-size:10px;
}
@media(min-width:601px) and (max-width:780px){
  body.home-view #main .home-services .planet-platform{font-size:11px}
  body.home-view #main .home-services .planet-price{font-size:10px}
  body.home-view #main .home-services .home-service--planet .planet-course-action{gap:4px}
}
body.home-view #main .home-services .service-description{font-size:11px;line-height:18px;white-space:nowrap;color:#7b8798}
body.home-view #main .home-services .service-description>span{display:inline}
body.home-view #main .home-services .planet-course-action{font-size:11px;line-height:18px}
body.home-view #main .home-services .service-action{position:static;align-self:center;justify-self:end;margin:0;color:#98a5b8;font-size:18px;line-height:1;font-weight:400}
@media(min-width:601px) and (max-width:780px){
 body.home-view #main .home-services{gap:9px}
 body.home-view #main .home-services .home-service{grid-template-columns:28px minmax(0,1fr) 8px;column-gap:6px;padding:12px 8px}
 body.home-view #main .home-services .service-emblem{width:28px;height:28px;border-radius:8px}
 body.home-view #main .home-services .service-icon{width:20px;height:20px}
 body.home-view #main .home-services .service-description{font-size:10px}
}
@media(max-width:600px){
 body.home-view #main .search{height:48px;min-height:48px;margin-top:19px}
 body.home-view #main .search input{font-size:13px}
 body.home-view #main .resource-types{width:min(360px,100%);margin-top:12px;gap:6px}
 body.home-view #main .resource-type{flex-direction:row;min-height:36px;padding:7px 6px;gap:5px;font-size:12px;border-radius:7px}
 body.home-view #main .resource-type-icon{width:17px;height:17px}
 body.home-view #main .home-services{grid-template-columns:1fr;gap:9px;margin-top:20px;padding-top:18px}
 body.home-view #main .home-services .home-service{grid-template-columns:38px minmax(0,1fr) 12px;column-gap:13px;min-height:88px;height:88px;padding:10px 16px}
 body.home-view #main .home-services .service-label{font-size:13px}
 body.home-view #main .home-services .service-description{font-size:11px}
 body.home-view #main .home-services .planet-subject{display:inline}
}

/* Keep homepage service cards and footer separated by a fixed, modest gap. */
body.home-view #main{flex:0 0 auto;padding-bottom:90px}

/* Four resource choices remain readable on compact phones. */
@media(max-width:380px){body.home-view #main .resource-type{flex-direction:column;min-height:60px;padding:7px 4px;gap:4px}}
