/* Desktop areas: menu 20%, feed 50%, discovery 30%.
   The device fits inside its area without changing its portrait proportions. */
:root{--feed-header-height:82px;--feed-available-height:calc(100dvh - 134px)}
.feed-layout{grid-template-columns:20% 50% 30%;gap:0;width:100%;max-width:1800px;height:calc(100dvh - var(--feed-header-height));margin:0 auto;padding:24px 24px 28px;grid-template-rows:minmax(0,1fr);align-items:start}
.feed-center{height:100%;min-height:0;min-width:0;display:flex;align-items:flex-start;justify-content:center}
#main-feed{position:relative;top:auto;width:min(100%,calc(var(--feed-available-height) * .82),900px);height:auto;aspect-ratio:.82;min-height:0;max-height:var(--feed-available-height);padding:26px 13px 13px;border-radius:35px;display:flex;flex-direction:column;flex-shrink:0}
.feed-screen{flex:1;min-height:0;height:auto;display:flex;flex-direction:column;overflow:hidden;padding:28px 25px 22px;container-type:inline-size;container-name:bookfeed}
.feed-fixed{flex:0 0 auto;background:#fff;padding-bottom:2px}
.feed-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#e3e7e2 #fff;scroll-padding-top:16px}
.feed-scroll::-webkit-scrollbar{width:4px}.feed-scroll::-webkit-scrollbar-thumb{background:#e3e7e2;border-radius:4px}
.feed-heading{min-height:78px}.feed-compose-menu{margin-bottom:0;min-height:76px;padding:16px 0}.feed-compose-menu button{font-size:12px;padding:4px 9px;gap:8px}.feed-compose-menu svg{width:23px;height:23px}
.reward-notice{margin:0 0 16px;background:#fff;border-color:#dde5da;font-size:12px;padding:12px 14px}
.left-rail,.right-rail{position:relative;top:auto;height:100%;max-height:100%;min-height:0;overflow-y:auto;scrollbar-width:none}
.left-rail{padding:0 28px 0 12px}.left-rail>nav,.rail-profile,.rail-foot{max-width:220px}.rail-profile{padding-top:6px;padding-bottom:22px}.rail-profile .avatar{width:66px;height:66px;border-radius:16px}.nav-item{font-size:18px;padding:21px 12px;gap:17px}.nav-item svg{width:24px;height:24px}.rail-foot{margin-top:24px}
.right-rail{display:block;padding:0 16px 0 34px}.right-rail>section,.right-foot{max-width:310px}.aside-heading h2{font-size:23px;margin-top:0;margin-bottom:18px}.recommendation{padding-top:0;padding-bottom:22px}.recommendation-cover img{height:clamp(180px,26dvh,290px)}.recommendation-copy{padding-top:17px}.recommendation-copy h3{font-size:17px}.recommendation-copy p{font-size:12px}.recommendation-copy small{font-size:11px}.recommendation-switch{margin-top:14px}.readers{padding:22px 0}.soft-empty{font-size:12px;line-height:1.9}.right-foot{padding-top:18px}
@container bookfeed (max-width:560px){.feed-heading h2{font-size:31px}.feed-tabs{gap:9px}.feed-tabs button{font-size:10px}.feed-compose-menu button{font-size:11px;padding:3px 6px;gap:7px}.feed-compose-menu svg{width:22px;height:22px}.post-head{gap:10px}.post-head strong{font-size:15px}.post-head small{font-size:10px;margin-left:7px}.post-body{padding-left:0;grid-template-columns:125px minmax(0,1fr);gap:20px}.post-text{font-size:15px}.post-story .intent{font-size:17px}.post-actions{gap:12px}.post-actions button{font-size:11px}.post-body .cover strong{font-size:14px}.shared-reason{font-size:10px}}
@container bookfeed (max-width:440px){.feed-heading h2{font-size:28px}.feed-compose-menu button{flex-direction:column;font-size:10px;gap:7px}.feed-compose-menu{min-height:78px}.post-body{grid-template-columns:105px minmax(0,1fr);gap:17px}.post-text{font-size:14px}.post-story .intent{font-size:15px}.post-actions{gap:9px}.post-actions button{font-size:10px}.post-head .avatar{width:36px;height:36px;border-radius:10px}.shared-reason{font-size:9px}}
@media(min-width:1800px){.feed-screen{padding:32px 32px 24px}.right-rail{padding-left:40px}.left-rail{padding-left:24px}}
@media(min-width:981px) and (max-width:1250px){.feed-layout{padding-left:18px;padding-right:18px}.left-rail{padding-left:0;padding-right:18px}.nav-item{font-size:16px;padding:20px 10px;gap:14px}.nav-item svg{width:22px;height:22px}.right-rail{padding-left:24px;padding-right:0}.aside-heading h2{font-size:21px}.feed-screen{padding:25px 21px 20px}}
@media(min-width:701px) and (max-width:980px){.feed-layout{grid-template-columns:23% 77%;max-width:900px;padding-left:16px;padding-right:16px}.right-rail{display:none}.left-rail{padding:0 18px 0 0}.nav-item{font-size:16px;gap:13px}.nav-item svg{width:22px;height:22px}}
@media(max-width:700px){:root{--feed-header-height:65px;--feed-available-height:calc(100dvh - 164px)}.feed-layout{display:block;height:calc(100dvh - 65px);padding:14px 10px 85px}.feed-center{height:100%;width:100%}#main-feed{width:100%;max-width:calc(var(--feed-available-height) * .82);height:100%;aspect-ratio:.82;max-height:100%;padding:20px 7px 8px;border-radius:27px;min-height:0}.feed-screen{padding:20px 14px 18px}.feed-heading{min-height:85px}.feed-heading h2{font-size:27px}.feed-fixed{padding-bottom:0}.feed-compose-menu{min-height:78px;padding:10px 0}.feed-compose-menu button{flex-direction:column;font-size:9px;padding:0 4px;gap:6px}.feed-compose-menu svg{width:20px;height:20px}.left-rail{position:fixed;top:auto;bottom:0;left:0;height:auto;width:100%;max-height:none;padding:0;background:#fff;z-index:25}.left-rail nav{max-width:none;padding:7px 3px}.nav-item{font-size:10px;padding:8px 10px;gap:4px}.nav-item svg{width:22px;height:22px}.right-rail{display:none}.rail-profile,.rail-foot{display:none}}
