/* Content first: explicit placement prevents auto-grid items from falling below the feed. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
:root{--muted:#657086}
.topbar,.detail-topbar{height:80px}
.header-location{display:none}
.top-actions{margin-left:auto}
#searchFocusBtn{display:none}
main{padding-top:24px}
#homeView{row-gap:0}
#homeView .search-wrap{grid-column:1/-1;grid-row:1;display:flex;align-items:center;gap:12px;padding:0;margin:0 0 22px;min-width:0}
#homeView .search-box{flex:1;flex-direction:row;min-width:0;height:50px;margin:0;padding:0 6px 0 16px;background:#fff;border:1px solid #dce3ed;border-radius:12px}
.search-box .search-icon{flex:none}
.search-box .unified-search-button{min-height:38px;padding:8px 15px;background:var(--accent);color:#fff;border-radius:8px}
.search-box input{min-height:44px;color:var(--text)}
.search-box input::placeholder{color:#6b7586}
#homeView .desktop-compose{min-height:50px;box-shadow:none}
#homeView .home-hub{display:none}
#homeView .menu-result-banner{grid-column:1/-1;grid-row:2;padding:2px 0 20px;margin:0}
#homeView #latestSection{grid-column:1;grid-row:3;padding:0;min-width:0}
#homeView #popularSection{grid-column:2;grid-row:3;top:20px;padding:18px 16px}
#homeView.focused-feed #latestSection,#homeView.home-popular-feed #latestSection{grid-column:1/-1}
#homeView #emptyState{grid-column:1/-1;grid-row:4;min-height:180px;margin-top:12px}
#homeView #feedStatus{grid-column:1/-1;grid-row:3}
#homeView .home-about{grid-column:1/-1;grid-row:5;margin-top:36px}
#latestSection>.feed-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin-bottom:10px}
.home-feed-tabs{display:flex;gap:22px;align-items:center}
.home-feed-tabs button{background:transparent;border:0;border-bottom:2px solid transparent;padding:9px 0;font-size:17px;font-weight:700;line-height:1.5;color:#687386;min-height:44px;cursor:pointer}
.home-feed-tabs button[aria-pressed="true"]{border-color:var(--accent);color:var(--text)}
.home-feed-tabs button:hover{color:var(--accent)}
.feed-read-notice{display:flex;align-items:center;gap:8px;margin:0 0 13px;font-size:12px;line-height:1.6;color:#657086}
.feed-read-notice svg{width:14px;height:14px;flex:none}
.feed-read-notice button{background:none;border:0;color:var(--accent);font-size:12px;font-weight:650;padding:7px 0;margin-left:auto;min-height:32px;white-space:nowrap;cursor:pointer}
.post-locked{display:inline-flex;align-items:center;color:#7b8595;margin-left:2px}
.post-locked svg{width:12px;height:12px}
.post-meta,.post-subcategory,.post-author,.meta-right{color:#697486}
#latestList .post{padding:17px 20px;gap:12px}
#latestList .post-title{font-size:16px}
#latestList .post-meta{margin-top:8px;font-size:12px}
#latestList .ranked-post{grid-template-columns:20px minmax(0,1fr);display:grid}
#latestList .ranked-post .post-main{display:block}
#latestList .ranked-post .post-labels{max-width:none;margin-bottom:6px}
#latestList .ranked-post .post-title{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.55}
#latestList .ranked-post .post-meta{display:flex}
#popularSection .ranked-post{padding:12px 0}
#popularSection .popularity-criteria{font-size:11px;margin-bottom:6px;color:#657086}
#popularSection #homePopularTabs{padding-bottom:8px}
.focused-feed #homeFeedTabs{display:none}
.focused-feed #latestMoreBtn{display:none}
.home-directory-quick{text-decoration:none;justify-content:center}
@media(max-width:900px){
  main{padding-top:0}
  .topbar,.detail-topbar{height:64px;padding-left:18px;padding-right:18px}
  .brand .brand-symbol{width:34px;height:34px;border-radius:10px;font-size:22px}
  .brand .brand-wordmark{font-size:14px}
  .brand .brand-wordmark small{font-size:10px}
  .top-actions{gap:1px}
  .top-actions .icon-button{width:34px;min-height:40px}
  #homeView .search-wrap{order:0;padding:16px 18px 0;margin:0 0 12px;display:flex}
  #homeView .search-box{height:48px;background:#f6f7fa;border-color:#edf0f4;padding-left:12px;gap:8px}
  #homeView .desktop-compose{display:none}
  #homeView .home-hub{order:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0 18px;margin:0 0 16px;width:100%}
  #homeView .home-hub.hidden{display:none}
  .home-quick{padding:11px 4px;border:1px solid #e8ecf2;background:#fff;border-radius:10px;min-height:48px;flex-direction:row;align-items:center;justify-content:center;gap:6px;box-shadow:none}
  .home-quick .quick-icon{width:19px;height:22px;flex:0 0 19px;border-radius:0;background:none!important;color:#56657d}
  .home-quick .quick-icon svg{width:18px;height:18px}
  .home-quick b{font-size:13px;font-weight:650}
  .home-quick small,.home-quick .quick-arrow{display:none}
  #homeView .menu-result-banner{order:1;padding:4px 18px 18px;gap:10px}
  .menu-result-banner h1{font-size:23px}
  .menu-result-banner small{display:none}
  #homeView #popularSection{display:none}
  #homeView #latestSection{order:2;padding:0;width:100%}
  #latestSection>.feed-toolbar{padding:0 18px;margin-bottom:6px}
  .feed-read-notice{margin:0 18px 8px;font-size:11px;gap:6px}
  .feed-read-notice button{font-size:11px}
  #latestList{border-top:1px solid #e8ecf2}
  #latestList .post{padding:15px 18px;gap:12px}
  #latestList .post-labels{margin-bottom:5px}
  #latestList .post-meta{font-size:11px;margin-top:7px}
  #latestList .ranked-post:nth-child(n+4){display:grid}
  #homeView #emptyState{order:3;margin-top:0}
  #homeView #feedStatus{order:3}
  #homeView .home-about{order:4;margin:28px 18px 0;padding-top:22px}
  .home-feed-tabs{gap:22px}
  .home-feed-tabs button{font-size:17px}
  .home-about h2{font-size:16px}
  .home-about p{font-size:12px}
}
@media(max-width:360px){
  .brand .brand-wordmark{font-size:13px}
  .topbar{padding-left:14px;padding-right:14px}
  #homeView .home-hub{gap:6px}
  .home-quick{gap:4px}
  .home-quick b{font-size:12px}
  .feed-read-notice{flex-wrap:wrap;row-gap:0}
}

#homeView.focused-feed .feed-toolbar{display:none}
