/* LOL Sutra V2.9: ONE navigation component. Shared across HH, Ideas, info and Blogposts.
   Navigation is a normal flex item in the reader shell and fixed on Blogposts.
   Safe-area belongs to the WebView only when the native window hasn't reserved it. */
:root{--ls-nav-safe-bottom:max(8px,env(safe-area-inset-bottom,0px))}
html.ls-android-webview{--ls-nav-safe-bottom:6px}
.hh-root .app-frame > .ls-unified-nav,
.ls-app > .ls-unified-nav{
 box-sizing:border-box;display:block;flex:0 0 auto;width:100%;max-width:none;
 padding:7px 4px var(--ls-nav-safe-bottom);height:auto;min-height:0;
 margin:0;border:0;border-top:1px solid #4b3e3a;border-radius:0;
 background:rgba(33,30,31,.98);color:#f4eae1;
 box-shadow:0 -8px 18px rgba(42,27,11,.025);z-index:45;
}
.hh-root .app-frame > .ls-unified-nav{position:relative;bottom:auto;left:auto;right:auto}
.ls-app > .ls-unified-nav{position:fixed;bottom:0;left:0;right:0}
.hh-root .app-frame > .ls-unified-nav .nav-inner,
.ls-app > .ls-unified-nav .nav-inner{
 width:100%;max-width:680px;margin:0 auto;display:grid;
 grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;
}
.hh-root .app-frame > .ls-unified-nav .nav-item,
.ls-app > .ls-unified-nav .nav-item{
 box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;
 text-decoration:none;text-transform:none;min-width:0;min-height:0;height:55px;
 gap:4px;padding:0 2px;border:0;border-radius:10px;
 background:transparent;color:#c4b4aa;font-family:inherit;
 transition:background .15s ease,color .15s ease;
}
.hh-root .app-frame > .ls-unified-nav .nav-item svg,
.ls-app > .ls-unified-nav .nav-item svg{display:block;width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.hh-root .app-frame > .ls-unified-nav .nav-item span,
.ls-app > .ls-unified-nav .nav-item span{display:block;font-size:9px;line-height:1.2;font-weight:750;white-space:nowrap;color:inherit}
.hh-root .app-frame > .ls-unified-nav .nav-item.active,
.ls-app > .ls-unified-nav .nav-item.active,
.hh-root .app-frame > .ls-unified-nav .nav-item[aria-current="page"],
.ls-app > .ls-unified-nav .nav-item[aria-current="page"]{background:#473229;color:#f6bc9d}
.hh-root .app-frame > .ls-unified-nav .nav-item:focus-visible,
.ls-app > .ls-unified-nav .nav-item:focus-visible{outline:2px solid #efa578;outline-offset:-2px}
/* Explicit light-theme variants, independent of Blogposts' older ls-bottom styles. */
.hh-root[data-theme="light"] .app-frame > .ls-unified-nav,
body:not(.ls-dark) .ls-app > .ls-unified-nav{background:#fffdf9;color:#84786e;border-top-color:#e8e0d5}
.hh-root[data-theme="light"] .app-frame > .ls-unified-nav .nav-item,
body:not(.ls-dark) .ls-app > .ls-unified-nav .nav-item{color:#84786e}
.hh-root[data-theme="light"] .app-frame > .ls-unified-nav .nav-item.active,
.hh-root[data-theme="light"] .app-frame > .ls-unified-nav .nav-item[aria-current="page"],
body:not(.ls-dark) .ls-app > .ls-unified-nav .nav-item.active,
body:not(.ls-dark) .ls-app > .ls-unified-nav .nav-item[aria-current="page"]{color:#b85130;background:#fff0e6}
/* Ideas originally had an extra override for its menu: explicitly use the same visual token set. */
body .hh-root.ls-ideas-root[data-theme="dark"] .app-frame > .ls-unified-nav{background:rgba(33,30,31,.98);color:#f4eae1;border-top-color:#4b3e3a}
body .hh-root.ls-ideas-root[data-theme="dark"] .app-frame > .ls-unified-nav .nav-item{color:#c4b4aa}
body .hh-root.ls-ideas-root[data-theme="dark"] .app-frame > .ls-unified-nav .nav-item.active{background:#473229;color:#f6bc9d}
body .hh-root.ls-ideas-root[data-theme="light"] .app-frame > .ls-unified-nav{background:#fffdf9;color:#84786e;border-top-color:#e8e0d5}
body .hh-root.ls-ideas-root[data-theme="light"] .app-frame > .ls-unified-nav .nav-item.active{background:#fff0e6;color:#b85130}
/* Mobile: preserve the existing icon + label proportions. */
@media(min-width:701px){
 .hh-root .app-frame > .ls-unified-nav .nav-inner,
 .ls-app > .ls-unified-nav .nav-inner{gap:5px}
 .hh-root .app-frame > .ls-unified-nav .nav-item span,
 .ls-app > .ls-unified-nav .nav-item span{font-size:10px}
}
/* After site.css, replace old Blogpost reserve with the measured shared navigation height.
   Keep its article authored HTML full width and do not alter its internal margins. */
.ls-app{--ls-bottom:calc(70px + var(--ls-nav-safe-bottom))}
.ls-app.ls-blog-single .ls-main.ls-blog-article-main{padding-bottom:var(--ls-bottom)}
.ls-app.ls-blog-single .ls-article.ls-article-full,
.ls-app.ls-blog-single .ls-article-content{min-height:calc(100dvh - var(--ls-header) - var(--ls-bottom))}
@media(prefers-reduced-motion:reduce){
 .hh-root .app-frame > .ls-unified-nav .nav-item,
 .ls-app > .ls-unified-nav .nav-item{transition:none}
}
/* The original Hindi Hungama .app-frame.mobile selector has higher specificity.
   Override it explicitly, otherwise the old env() padding survives in Android WebView. */
.hh-root .app-frame.mobile > .ls-unified-nav{padding:7px 4px var(--ls-nav-safe-bottom)}
