/* FILE-O | First-screen compact layout, 14 November 2026.
   Only header hero, eight news cards, and catalog heading/search positioning.
   Never change .tool-card, grouped catalog, or tool workspaces.
*/
#homePage > .hero{
  padding-top:18px;
  padding-bottom:13px;
  gap:0 16px;
  grid-template-columns:minmax(0,1fr) 310px;
}
#homePage > .hero .hero-content{padding-top:2px}
#homePage > .hero .hero-eyebrow{margin:0 0 7px;font-size:10px}
#homePage > .hero h1{
  font-size:clamp(38px,3.55vw,48px);
  letter-spacing:-.059em;line-height:1.08;margin:0 0 10px;
}
#homePage > .hero .hero-description{
  max-width:630px;font-size:12px;line-height:1.55;
  margin:0 0 9px;
}
#homePage > .hero .hero-points{margin:7px 0 0 2px;gap:16px;font-size:10.5px}
#homePage > .hero .hero-art{
  min-height:176px;transform:scale(.56);transform-origin:50% 50%;
}
#homePage .home-latest{margin-top:5px;padding-top:8px}
#homePage .home-latest-header{
  margin-bottom:7px;gap:10px;align-items:center;
}
#homePage .home-latest-overline{font-size:8.8px;margin-bottom:1px}
#homePage .home-latest-header h2{
  font-size:20px;line-height:1.18;
}
#homePage .home-latest-header p{
  font-size:9.5px;line-height:1.4;
}
#homePage .home-latest-grid{gap:7px}
#homePage .home-latest-card:nth-child(n){
  min-height:89px;
  padding:8px 10px 7px;
  gap:2px;border-radius:11px;
}
#homePage .home-latest-card .home-latest-top{
  min-height:24px;margin:0;gap:6px;
}
#homePage .home-latest-card .home-latest-icon{
  width:25px;height:25px;flex-basis:25px;border-radius:8px;
}
#homePage .home-latest-card .home-latest-icon svg{width:15px;height:15px}
#homePage .home-latest-card .home-latest-category{
  font-size:7.4px;letter-spacing:.03em;
}
#homePage .home-latest-card strong{
  font-size:12.3px;line-height:1.18;margin:1px 0 0;
  display:block;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;width:100%;
}
#homePage .home-latest-card .home-latest-description{
  font-size:9px;line-height:1.3;
  display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  width:100%;max-width:100%;
}
#homePage .home-latest-card .home-latest-action{
  font-size:8.8px;padding-top:1px;gap:5px;line-height:1.14;
}
#homePage .home-latest-card::before{
  width:90px;height:78px;top:-16px;right:-15px;
}
#homePage .home-latest-card::after{
  width:30px;height:30px;right:9px;top:6px;
  box-shadow:0 0 0 7px rgba(255,255,255,.12),0 0 0 15px rgba(255,255,255,.08);
}

/* Keep the tools heading and live counters in parallel instead of letting
   the counter stack push the search downward. */
#homePage > #tools{padding-top:8px}
#homePage #tools .section-heading{
  position:relative;display:block;padding-right:280px;
  min-height:73px;margin-bottom:0;
}
#homePage #tools .section-heading > div:first-child{
  max-width:calc(100% - 4px);
}
#homePage #tools .section-heading h2{
  font-size:clamp(23px,2.35vw,29px);
  line-height:1.2;margin:0 0 3px;
}
#homePage #tools .section-heading p{
  font-size:11px;line-height:1.35;
}
#homePage #tools .catalog-stat-stack{
  position:absolute;right:0;top:0;
  width:230px;max-width:230px;flex:none;gap:5px;
  padding:0;margin:0;
}
#homePage #tools .catalog-stat-stack .catalog-counter{
  gap:8px;align-items:center;
}
#homePage #tools .catalog-stat-stack .catalog-counter>span{
  font-size:26px;line-height:1;
}
#homePage #tools .catalog-stat-stack .catalog-counter small{
  font-size:9.4px;line-height:1.2;
}
#homePage #tools .catalog-stat-stack #siteProof.proof-card{
  min-height:43px;width:230px;
  padding:5px 9px;gap:7px;margin:0;
  border-radius:10px;
}
#homePage #tools .catalog-stat-stack #siteProof .proof-card-icon{
  width:27px;height:27px;flex-basis:27px;border-radius:8px;
}
#homePage #tools .catalog-stat-stack #siteProof .proof-card-icon svg{
  width:17px;height:17px;
}
#homePage #tools .catalog-stat-stack #siteProof #completedFilesCount{
  font-size:19px;line-height:1.05;
}
#homePage #tools .catalog-stat-stack #siteProof .proof-card-title{
  font-size:8.8px;
}
#homePage #tools .catalog-search-row{
  max-width:740px;margin:4px 0 12px;
}
#homePage #tools .catalog-search-row .hero-search{
  min-height:49px;padding:5px 7px 5px 12px;
}
#homePage #tools .catalog-search-row .hero-search button{
  padding:10px 16px;
}

/* On mobile prioritize finding the tool quickly.
   2 newest cards appear immediately; all 8 are available via one tap. */
#homePage .home-latest-toggle{display:none}
@media(max-width:1060px){
  #homePage .home-latest-header p{display:none}
  #homePage > .hero .hero-art{transform:scale(.51)}
}
@media(max-width:960px){
  #homePage > .hero{
    display:block;padding-top:18px;padding-bottom:10px;min-height:0;
  }
  #homePage > .hero .hero-art{display:none}
  #homePage .home-latest{margin-top:12px;padding-top:9px}
  #homePage .home-latest-header{display:block}
  #homePage .home-latest-header h2{font-size:20px}
  #homePage .home-latest-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  #homePage .home-latest-card:nth-child(n){
    min-height:86px;padding:8px 10px 7px;
  }
}
@media(max-width:720px){
  #homePage > .hero{
    padding-top:14px;padding-bottom:9px;
  }
  #homePage > .hero .hero-eyebrow{margin-bottom:5px;font-size:8.5px}
  #homePage > .hero h1{
    font-size:clamp(32px,8vw,39px);
    line-height:1.09;margin-bottom:7px;
  }
  #homePage > .hero .hero-description{
    font-size:11px;line-height:1.42;margin-bottom:7px;
  }
  #homePage > .hero .hero-points{
    font-size:9px;gap:8px 12px;margin-top:7px;
  }
  #homePage .home-latest{margin-top:10px;padding-top:8px}
  #homePage .home-latest-header{margin-bottom:7px}
  #homePage .home-latest-header h2{font-size:18px}
  #homePage .home-latest-card:nth-child(n){min-height:94px;padding:8px 9px}
  #homePage .home-latest-card strong{
    font-size:11.5px;line-height:1.21;white-space:normal;
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  }
  #homePage .home-latest-card .home-latest-description{
    font-size:8.8px;line-height:1.3;
  }
  #homePage .home-latest[data-ready="true"]:not([data-expanded="true"])
    .home-latest-card:nth-child(n+3){display:none}
  #homePage .home-latest[data-ready="true"] .home-latest-toggle{
    display:flex;align-items:center;justify-content:center;
    gap:6px;min-height:29px;width:100%;margin-top:7px;
    border:1px solid #d9ceeb;border-radius:8px;
    color:#6048ac;background:#f9f6ff;
    font:750 10.5px/1.3 system-ui,sans-serif;
    cursor:pointer;
  }
  #homePage .home-latest-toggle:hover{background:#f0eafd}
  #homePage .home-latest-toggle:focus-visible{
    outline:2px solid #856be7;outline-offset:2px;
  }
  #homePage > #tools{padding-top:9px}
  #homePage #tools .section-heading{
    display:block;padding-right:0;min-height:0;
  }
  #homePage #tools .section-heading h2{
    font-size:23px;margin-bottom:3px;
  }
  #homePage #tools .catalog-stat-stack{
    position:static;display:flex;flex-direction:row;
    width:100%;max-width:100%;margin:9px 0 0;
    justify-content:space-between;align-items:center;
    gap:8px;
  }
  #homePage #tools .catalog-stat-stack .catalog-counter{
    width:auto;max-width:none;min-width:0;gap:6px;
  }
  #homePage #tools .catalog-stat-stack #siteProof.proof-card{
    width:auto;max-width:60%;min-width:155px;
    min-height:37px;padding:4px 7px;gap:5px;
  }
  #homePage #tools .catalog-stat-stack #siteProof #completedFilesCount{
    font-size:17px;
  }
  #homePage #tools .catalog-stat-stack #siteProof .proof-card-title{
    font-size:8px;line-height:1.1;
  }
  #homePage #tools .catalog-search-row{
    margin:10px 0 12px;
  }
  #homePage #tools .catalog-search-row .hero-search{
    min-height:49px;
  }
}
@media(max-width:390px){
  #homePage .home-latest-card:nth-child(n){
    min-height:98px;
  }
  #homePage .home-latest-card .home-latest-category{font-size:7px}
  #homePage #tools .catalog-stat-stack .catalog-counter>span{font-size:21px}
  #homePage #tools .catalog-stat-stack .catalog-counter small{font-size:8.3px}
}
@media(prefers-reduced-motion:reduce){
  #homePage .home-latest-toggle{transition:none}
}

/* Mobile first-screen refinement v2: compact promo and put search BEFORE
   secondary statistics, preserving the original markup and live counters. */
@media(max-width:720px){
  #homePage .launch-offer{
    display:flex;flex-wrap:nowrap;align-items:center;
    gap:7px;min-height:41px;padding:7px 9px;
    margin-top:7px;margin-bottom:0;
  }
  #homePage .launch-offer-news{
    flex:1 1 auto;min-width:0;display:block;
  }
  #homePage .launch-offer-news h2{
    font-size:11px;line-height:1.25;white-space:nowrap;
  }
  #homePage .launch-offer-news p{display:none}
  #homePage .launch-offer-count{
    flex:none;margin:0;padding:5px 6px;gap:3px;min-width:0;
  }
  #homePage .launch-offer-count strong{font-size:13px}
  #homePage .launch-offer-count span{font-size:8px}
  #homePage .launch-offer-primary{
    flex:none;min-width:0;margin:0;min-height:28px;
    padding:5px 7px;font-size:9px;
  }
  #homePage > .hero .hero-points{display:none}
  #homePage #tools{
    display:flex;flex-direction:column;
  }
  #homePage #tools .section-heading{display:contents}
  #homePage #tools .section-heading > div:first-child{order:-3}
  #homePage #tools .catalog-search-row{order:-2;margin:10px 0 9px}
  #homePage #tools .catalog-stat-stack{
    order:-1;position:static;
    display:flex;flex-direction:row;
    width:100%;margin:0 0 11px;
    justify-content:space-between;align-items:center;
  }
}
@media(max-width:360px){
  #homePage .launch-offer-news h2{font-size:9.8px}
  #homePage .launch-offer-count span{display:none}
}

/* Large desktop breathing-room refinement v3: show the entire search before
   the cookie notice on an ordinary 900px-high browser. */
@media(min-width:961px){
  #homePage > .hero{padding-top:10px;padding-bottom:10px}
  #homePage > .hero h1{font-size:clamp(37px,3.2vw,43px)}
  #homePage > .hero .hero-art{
    min-height:153px;transform:scale(.49);
  }
  #homePage .home-latest{padding-top:6px;margin-top:2px}
  #homePage .home-latest-header{margin-bottom:5px}
  #homePage .home-latest-card:nth-child(n){
    min-height:82px;padding:6px 10px 6px;
  }
  #homePage #tools .catalog-search-row{margin-top:1px}
}
