.mobile-actions,.mobile-community-toggle,.mobile-person-link,.mobile-drawer-backdrop,.mobile-quick-links,.mobile-spot-dots{display:none}
.hero{background:#0969ef url('../img/hero-community-v3.webp') center center/cover no-repeat}
.hero-grid{display:none}
.interactive-track{display:flex;min-width:0}
.interactive-track .interactive-item{width:50%;max-width:none}
.spot-swap{border:0;background:transparent;color:var(--blue);font-size:14px;font-weight:700;padding:0}

@media(min-width:781px){
  body:has(.home-stack) .shell{width:calc(100% - 48px);max-width:none}
  body:has(.home-stack) .hero>.shell{min-height:94px;padding:12px 0}
  body:has(.home-stack) .hero h1{font-size:20px;margin:0}
  body:has(.home-stack) .hero .eyebrow,
  body:has(.home-stack) .hero p,
  body:has(.home-stack) .hero-cta{display:none}
  body:has(.home-stack) .home-stack .content-layout{grid-template-columns:minmax(0,3fr) minmax(320px,1fr);gap:0}
}

@media(max-width:780px){
  .community-ad{height:76px!important;min-height:76px;padding:0 10px 0 90px;background:#f5f7fa!important;border-bottom:1px solid #e5e8ed;text-align:left!important}
  .community-ad .ad-inner{gap:8px;justify-content:space-between}
  .community-ad .ad-inner::before{content:"";position:absolute;left:38px;top:17px;width:42px;height:42px;background:#fff url('../img/logo.svg') center/34px auto no-repeat;border-radius:8px}
  .community-ad .ad-inner span{display:flex;flex-direction:column;justify-content:center;min-width:0;font-size:11px;color:#657185;line-height:1.35}
  .community-ad .ad-inner strong{font-size:14px;color:#141c2b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .community-ad .ad-inner a{display:block;flex:0 0 auto;background:#1468e9;color:#fff;font-size:12px;font-weight:700;padding:8px 10px;white-space:nowrap}
  .community-ad .ad-close{left:4px;right:auto;color:#14243a;font-size:24px}
  .nav-main.shell{width:calc(100% - 24px);height:62px}
  .brand{font-size:21px}
  .brand img{width:39px;height:36px}
  .mobile-actions{display:flex;align-items:center;gap:7px;margin-left:auto}
  .mobile-icon-button,.mobile-toggle{display:grid;place-items:center;flex:0 0 35px;width:35px;height:36px;margin:0;padding:0;border:0;background:none;color:#172434}
  .mobile-icon-button svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .mobile-points{font-size:24px;color:#7960e8}
  .mobile-toggle{font-size:24px;border-radius:0}
  .nav-sub{display:block}
  .nav-sub .shell{width:calc(100% - 28px);height:48px;gap:0}
  .nav-sub .shell>strong,.nav-sub .shell>a:not(.mobile-person-link),.nav-sub .sub-spacer{display:none}
  .mobile-community-toggle{display:flex;align-items:center;gap:10px;border:0;background:none;padding:0;color:#152234;font-size:20px}
  .mobile-community-toggle span{font-size:20px;color:#8b95a4;transition:transform .18s}
  .mobile-community-toggle[aria-expanded="true"] span{transform:rotate(180deg)}
  .mobile-person-link{display:block!important;margin-left:auto;color:#152234!important;font-size:19px!important}
  .mobile-drawer-backdrop{position:fixed;top:var(--drawer-top,186px);right:0;bottom:0;left:0;background:rgba(26,34,47,.38);z-index:39}
  .mobile-drawer-backdrop.open{display:block}
  .mobile-panel,.mobile-panel.open{position:fixed;top:var(--drawer-top,186px);left:0;bottom:0;width:min(70vw,250px);max-width:250px;overflow-y:auto;padding:5px 0 18px;background:#f7f8fb;box-shadow:4px 0 16px rgba(20,30,48,.08);z-index:40}
  .mobile-panel.open{display:block}
  .mobile-panel a{display:flex;justify-content:space-between;align-items:center;padding:15px 22px;font-size:18px;line-height:1.3;color:#172334}
  .mobile-panel a:hover{background:#edf1f8;color:var(--blue)}
  body.nav-open{overflow:hidden}
  body:has(.home-stack) .shell{width:calc(100% - 16px);max-width:none}
  body:has(.home-stack) .hero>.shell{width:calc(100% - 16px);min-height:94px;padding:20px 0 18px 18px;align-items:center}
  body:has(.home-stack) .hero{background-position:73% center}
  body:has(.home-stack) .hero h1{font-size:17px;margin:0;line-height:1.4;text-shadow:0 1px 3px rgba(5,40,120,.35)}
  body:has(.home-stack) .hero .eyebrow,
  body:has(.home-stack) .hero p,
  body:has(.home-stack) .hero-cta{display:none}
  .mobile-quick-links{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:110px;margin:0;background:#fff;border-bottom:1px solid #eaedf2}
  .mobile-quick-links a{min-width:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#172334;font-size:12px;white-space:nowrap}
  .mobile-quick-links svg{width:36px;height:36px;fill:#eef3ff;stroke:#4b76e7;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
  .mobile-quick-links a:nth-child(2) svg{stroke:#2685db;fill:#e7f3ff}
  .mobile-quick-links a:nth-child(3) svg{stroke:#695de8;fill:#efedff}
  .mobile-quick-links a:nth-child(4) svg{stroke:#1f9ed2;fill:#e9f8ff}
  .mobile-quick-links a:nth-child(5) svg{stroke:#eb9238;fill:#fff2e1}
  .home-stack{padding-bottom:22px}
  .home-stack .spotlight{display:block;margin-top:10px}
  .home-stack .spot-column:first-child{padding:16px 14px 9px;min-height:264px}
  .home-stack .spot-column:nth-child(2){display:none}
  .home-stack .section-title h2{font-size:19px}
  .home-stack .spot-column .section-title{margin-bottom:23px}
  .home-stack .spot-swap{font-size:13px;color:#8793a2;font-weight:400}
  .home-stack .interactive-track{display:block}
  .home-stack .interactive-item{display:none;width:100%;padding:0;min-height:0;border:0!important;margin:0}
  .home-stack .interactive-item.is-active{display:flex}
  .home-stack .interactive-item strong{font-size:16px;font-weight:500;margin:3px 0 5px}
  .home-stack .interactive-item p{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:4px 0 17px}
  .home-stack .interactive-item small{font-size:12px}
  .mobile-spot-dots{display:flex;justify-content:center;gap:7px;margin-top:20px}
  .mobile-spot-dots span{display:block;width:34px;height:3px;background:#d9dee6}
  .mobile-spot-dots span.active{background:#8492a6}
  .home-stack .explore{margin-top:10px}
  .home-stack .explore>.section-title{padding:16px 14px;margin:0}
  .home-stack .explore-grid{display:block}
  .home-stack .explore-grid a{display:flex;align-items:center;min-height:80px;padding:12px 16px;border-right:0!important;border-bottom:1px solid #edf0f4!important}
  .home-stack .explore-grid a:nth-child(n+3){display:none}
  .home-stack .explore-grid a b{width:45px;height:45px;flex:0 0 45px;border-radius:3px;font-size:0;background:#e9eff8 center/cover no-repeat}
  .home-stack .explore-grid a:nth-child(1) b{background-image:url('../img/cover-php-v2.webp')}
  .home-stack .explore-grid a:nth-child(2) b{background-image:url('../img/cover-ai-v2.webp')}
  .home-stack .explore-grid a strong{font-weight:500;font-size:16px}
  .home-stack .explore-grid a small{display:none}
  .home-stack .content-layout{display:block;margin-top:10px}
  .home-stack .content-layout .sidebar-stack{display:none}
  .home-stack .feed-tabs{height:57px;padding:0 14px}
  .home-stack .feed-tabs a,.home-stack .feed-tabs span{font-size:15px}
  .home-stack .article-list-card{display:block;padding:19px 15px}
  .home-stack .article-list-card .article-list-cover{display:none}
  .home-stack .article-list-card h3{font-size:17px}
  .home-stack .article-list-card p{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#929baa}
  .home-stack .feed-foot{display:flex;flex-direction:row;align-items:center}
}
@media(max-width:430px){
  body:has(.home-stack) .hero>.shell{align-items:flex-start;justify-content:center}
}
