/* home-shell.css: the public header's two additions (on zena.com since 2026-12-01; home-shell.js says what they do).
   The header's search box becomes a button. Its panel drops out of the header the width of the page, by a clip that
   opens downward (nothing fades): one field, then stories, markets and research. Beside Log in, a second button opens
   a small menu with what the landing page offered. Kept: the site's type sizes and inks, its hover, its radii. */
html[data-tier=free][data-zh-shell] body .nav .prompt{display:none!important}
/* html[data-zh-shell] is the switch (home-shell.js sets it on the public terminal, except on a phone on its side). Without
   it there is neither button and no sliding mark: the desk's header, prompt and keys are its own, and so is the 44px
   header of a phone on its side. */
html:not([data-zh-shell]) #zhSearchBtn,html:not([data-zh-shell]) #zhMoreBtn,html:not([data-zh-shell]) .zh-ind{display:none!important}
html[data-tier=free][data-zh-shell] .nav .right{gap:8px;margin-left:auto}
html[data-tier=free][data-zh-shell] .nav .right>#zhSearchBtn,html[data-tier=free][data-zh-shell] .nav .right>#zhMoreBtn{display:inline-grid!important}
.zh-ibtn{display:inline-grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border:0;border-radius:var(--z-radius-ctl,10px);background:var(--z-raised-2);color:var(--z-title);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform var(--zm-move,200ms) cubic-bezier(.2,.7,.2,1)}
.zh-ibtn:hover{background:var(--z-hairline-strong)}
.zh-ibtn[aria-expanded=true]{background:var(--z-title);color:var(--z-surface)}
.zh-ibtn svg{width:20px;height:20px}
.zh-ibtn svg *,.zhs-bar>svg *,.zhs-x svg *{fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.zh-ibtn:focus-visible,.zhs-x:focus-visible,.zhm a:focus-visible{outline:2px solid var(--z-accent);outline-offset:2px}

/* SEARCH */
.zhs[hidden],.zhs-scrim[hidden],.zhm[hidden]{display:none!important}
.zhs-scrim{position:fixed;inset:var(--za-header-h,56px) 0 0 0;z-index:1190;background:rgba(8,11,16,.64);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.zhs{position:fixed;top:var(--za-header-h,56px);left:0;right:0;z-index:1200;max-height:calc(100dvh - var(--za-header-h,56px) - 16px);overflow-y:auto;overscroll-behavior:contain;background:var(--z-sunk);color:var(--z-title);border-radius:0 0 24px 24px;box-shadow:0 30px 60px -30px rgba(0,0,0,.8);font-family:var(--sans)}
.zhs *{box-sizing:border-box}
.zhs button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;margin:0;text-align:left}
.zhs-in{width:100%;max-width:1120px;margin:0 auto;padding:4px clamp(16px,3vw,32px) 28px}
.zhs-bar{display:flex;align-items:center;gap:14px;min-height:68px}
.zhs-bar>svg{flex:none;width:22px;height:22px;color:var(--z-body)}
.zhs-bar input{flex:1;min-width:0;height:48px;padding:0;border:0;outline:0;background:none;color:var(--z-title);font:var(--zt-section);-webkit-appearance:none;appearance:none}
.zhs-bar input::placeholder{color:var(--z-body)}
.zhs-bar input::-webkit-search-cancel-button{display:none}
.zhs-x{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border-radius:50%;background:var(--z-raised-2)!important;transition:transform var(--zm-move,200ms) cubic-bezier(.2,.7,.2,1)}
.zhs-x:hover{transform:rotate(90deg)}
.zhs-x svg{width:14px;height:14px}
.zhs-cols{display:grid;gap:8px 36px;align-items:start}
.zhs-cols.two{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
.zhs-cols.three{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr)}
.zhs-col{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;min-width:0}
.zhs-col h4{margin:0;padding:10px 12px 6px;font:var(--zt-card);color:var(--z-title)}
.zhs-row{display:grid;align-items:center;gap:2px 12px;width:100%;min-width:0;padding:10px 12px;border-radius:12px;transition:background-color var(--zm-move,200ms) cubic-bezier(.2,.7,.2,1)}
.zhs-row.at{background:var(--z-raised)}
.zhs-row .t{min-width:0;font:500 15px/21px var(--sans);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.zhs-row .s{display:flex;flex-wrap:wrap;gap:0 12px;min-width:0;font:var(--zt-small);color:var(--z-body)}
.zhs-row .v{font:var(--zt-card);white-space:nowrap}
.zhs .num{font-variant-numeric:tabular-nums}
.zhs .up{color:var(--z-up)}.zhs .down{color:var(--z-down)}
.zhs-row.big{grid-template-columns:minmax(0,1fr) auto;min-height:48px}
.zhs-row.big.pic{grid-template-columns:48px minmax(0,1fr) auto;padding:6px 12px 6px 6px}
.zhs-row.big.pic>img{width:48px;height:48px;border-radius:10px;object-fit:cover;display:block}
.zhs-row.big.pic>.logo{width:48px;height:48px;border-radius:10px}
.zhs-row{background:color-mix(in srgb,var(--z-raised) 55%,transparent)}
.zhs-col{gap:4px}
.zhs-row.big .t{font:500 18px/24px var(--sans);-webkit-line-clamp:1}
.zhs-row.story{grid-template-columns:64px minmax(0,1fr)}
.zhs-row.story img,.zhs-row.story .ph{grid-row:1/span 2;width:64px;height:48px;border-radius:8px;object-fit:cover;background:var(--z-raised-2);display:block}
.zhs-row.market{grid-template-columns:28px minmax(0,1fr) auto}
.zhs-row.market .logo{grid-row:1/span 2}
.zhs-row.market .s{grid-column:2/-1}
.zhs .logo{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:7px;background:#f2efe7;overflow:hidden}
.zhs .logo img{display:block;width:18px;height:18px;object-fit:contain}
.zhs-none{margin:0;padding:28px 12px;color:var(--z-body);font:var(--zt-body)}

/* MORE */
.zhm{position:fixed;top:calc(var(--za-header-h,56px) + 6px);right:var(--zhm-right,16px);z-index:1200;display:grid;gap:8px;width:320px;max-width:calc(100vw - 24px);padding:10px;border-radius:16px;background:var(--z-raised);color:var(--z-title);box-shadow:var(--z-shadow-pop,0 24px 48px -20px rgba(0,0,0,.8));font-family:var(--sans)}
.zhm a{color:inherit;text-decoration:none}
.zhm-tile{display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px;align-items:center;padding:8px;border-radius:12px;background:var(--z-raised-2);transition:transform var(--zm-move,200ms) cubic-bezier(.2,.7,.2,1)}
.zhm-tile:hover{transform:var(--z-lift,translateY(-3px))}
.zhm-tile img{display:block;width:72px;height:72px;border-radius:8px;object-fit:cover;object-position:50% 12%}
.zhm-tile>span{display:grid;gap:2px;min-width:0}
.zhm-tile strong{font:var(--zt-card)}
.zhm-tile span span{font:var(--zt-small);color:var(--z-body)}
.zhm-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px}
.zhm-list a{padding:10px 12px;border-radius:10px;font:500 14px/20px var(--sans)}
.zhm-list a:hover{background:var(--z-raised-2)}

@media (max-width:700px){
  html[data-tier=free][data-zh-shell] .nav .right{gap:0}
  .zh-ibtn{width:44px;height:44px;background:none}
  .zhs{border-radius:0 0 18px 18px}
  .zhs-bar{min-height:56px}.zhs-bar input{font:var(--zt-card)}
  .zhs-cols.two,.zhs-cols.three{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){.zh-ibtn,.zhs-x,.zhs-row,.zhm-tile{transition-duration:.001s!important}}

/* NOTHING BOLD (Palash, 2026-12-01: "there doesn't need to be anything bolded ... specifically within the search bar and
   the big trade section"). The site's type tokens all carry 600; on the home page, in the search panel, the menu and the
   header they are set at regular, with headlines and headings at medium. Size and ink do the work that weight did. */
.zhub *,.zhs *,.zhm *{font-weight:400!important}
.zhub :is(h1,h2,h3,h4,.kick),.zhs h4,.zhm strong{font-weight:500!important}
html[data-tier=free][data-zh-shell] .zsh-tabs :is(button,a),html[data-tier=free][data-zh-shell] .zsh-account-btn,html[data-tier=free][data-zh-shell] .zsh-account-btn *{font-weight:500!important}

/* THE TOP RIGHT: three controls of one height, evenly set; the two icons are quiet rounds, Log in is the pill */
html[data-tier=free][data-zh-shell] .nav .right{gap:4px}
.zh-ibtn{border-radius:50%;background:none}
.zh-ibtn:hover{background:var(--z-raised-2)}
html[data-tier=free][data-zh-shell] .zsh-account-btn{margin-left:6px;padding:0 16px 0 12px;border-radius:999px}

/* THE FLOATING TABS ARE THE HOME PAGE'S (html[data-zhome-open]: the home page and Discover). Markets, a market page and
   News keep the bottom tab bar they were fitted to. News is off, not gone (2026-12-01), and its cards are sized to the
   room above that bar: floating tabs covered each card's last 56px (test_news_feed_layout). On Markets they stepped away
   at the end of the list and left a blank band where the bar had been (Palash, 2026-12-01: "the footer in the markets
   section ... is broken"). So every floating-tab rule below hangs on the home page being open. */
/* THE TABS FLOAT. One pill of glass; the place you are is a lighter pill that slides to where you go (home-shell.js
   moves it). In the header on a wide window; on a phone, a small pill above the foot of the screen, not a bar across it,
   that steps out of the way while you scroll down and comes back when you scroll up. */
html[data-tier=free][data-zh-shell] .zsh-tabs{position:relative;isolation:isolate}
.zh-ind{position:absolute;z-index:-1;left:0;top:0;width:1px;height:1px;border-radius:999px;background:var(--z-raised-2);transform-origin:0 0;transform:translate(var(--x,0px),var(--y,0px)) scale(var(--w,0),var(--h,0));transition:transform .42s cubic-bezier(.2,.7,.2,1);pointer-events:none}
.zh-ind.off{transition:none}
@media (min-width:701px){
  html[data-tier=free][data-zh-shell] .zsh-tabs-top{gap:2px;padding:4px;border-radius:999px;background:color-mix(in srgb,var(--z-raised) 70%,transparent)}
  html[data-tier=free][data-zh-shell] .zsh-tabs-top>:is(button,a){min-height:34px;padding:0 16px;border-radius:999px;background:none!important}
}
@media (max-width:700px){
  html[data-tier=free][data-zh-shell] .nav .right{gap:0}
  .zh-ibtn{width:40px;height:40px}
  html[data-tier=free][data-zh-shell] .zsh-account-btn{margin-left:0;padding:0}
  html[data-tier=free][data-zh-shell][data-zhome-open] .zsh-tabbar{position:fixed;left:50%;right:auto;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:60;order:0;width:auto;height:auto;margin:0;padding:5px;gap:2px;border-radius:999px;
    background:color-mix(in srgb,var(--z-raised) 74%,transparent);-webkit-backdrop-filter:blur(22px) saturate(160%);backdrop-filter:blur(22px) saturate(160%);box-shadow:0 14px 34px -12px rgba(0,0,0,.85),inset 0 0 0 1px rgba(255,255,255,.09);
    transform:translate(-50%,0);transition:transform .42s cubic-bezier(.2,.7,.2,1)}
  html[data-tier=free][data-zh-shell][data-zhome-open][data-zh-nav=away] .zsh-tabbar{transform:translate(-50%,calc(100% + 28px + env(safe-area-inset-bottom,0px)))}
  html[data-tier=free][data-zh-shell][data-zhome-open] .zsh-tabbar>:is(button,a){flex:none;flex-direction:row;gap:8px;min-width:0;min-height:42px;padding:0 16px;border-radius:999px;font:500 13px/18px var(--sans);color:var(--z-title)}
  html[data-tier=free][data-zh-shell][data-zhome-open] .zsh-tabbar>:is(button,a)>svg{width:19px;height:19px}
  html[data-tier=free][data-zh-shell][data-zhome-open] .zsh-tabbar>:is(button,a)[aria-current=page]{color:var(--z-surface)}
  html[data-tier=free][data-zh-shell][data-zhome-open] .zsh-tabbar .zh-ind{background:var(--z-title)}
  /* the pill floats over the page, so the page's own scrollers end a little above it */
  html[data-tier=free][data-zh-shell][data-zhome-open] #bfBoard::after,html[data-tier=free][data-zh-shell][data-zhome-open] #pnlBoard>.zdc::after{content:"";display:block;height:84px}
}
@media (prefers-reduced-motion:reduce){.zh-ind,html[data-tier=free][data-zh-shell][data-zhome-open] .zsh-tabbar{transition-duration:.001s!important}}
html[data-zh-shell] .nav .right>.zh-ibtn{border:0!important;border-radius:50%!important;box-shadow:none!important}
html[data-zh-shell] .nav .right>.zh-ibtn:not([aria-expanded=true]):not(:hover){background:none!important}
/* the lit tab is the sliding pill; the header's own underline for it is put away */
html[data-tier=free][data-zh-shell] .zsh-tabs-top>:is(button,a)::after,html[data-tier=free][data-zh-shell] .zsh-tabs-top>:is(button,a)::before{display:none!important}
/* the sliding pill keeps its round ends at any size: it is sized, not scaled */
.zh-ind{width:calc(var(--w,0)*1px);height:calc(var(--h,0)*1px);transform:translate(var(--x,0px),var(--y,0px));transition:transform .42s cubic-bezier(.2,.7,.2,1),width .42s cubic-bezier(.2,.7,.2,1),height .42s cubic-bezier(.2,.7,.2,1)}
.zhs-row:active,.zhm-tile:active,.zh-ibtn:active,.zhm-list a:active{transform:scale(.97)}
.zhs-row{transition:background-color var(--zm-move,200ms) cubic-bezier(.2,.7,.2,1),transform 120ms cubic-bezier(.2,.7,.2,1)}
/* THE HEADER'S TABS KEEP THEIR UNDERLINE (Palash: "I still like that like underlined kind of type of look"). The line
   is one line that slides to the tab that is chosen; no pill behind the words. The phone's floating tabs keep theirs. */
@media (min-width:701px){
  html[data-tier=free][data-zh-shell] .zsh-tabs-top{gap:4px;padding:0;border-radius:0;background:none}
  html[data-tier=free][data-zh-shell] .zsh-tabs-top>:is(button,a){min-height:40px;padding:0 14px;border-radius:var(--z-radius-ctl)}
  html[data-tier=free][data-zh-shell] .zsh-tabs-top>:is(button,a):hover{background:var(--z-raised)!important}
  .zsh-tabs-top>.zh-ind{top:auto;bottom:-8px;height:2px;border-radius:2px;background:var(--z-accent);width:calc((var(--w,0) - 28)*1px);transform:translate(calc(var(--x,0px) + 14px),0);transition:transform .42s cubic-bezier(.2,.7,.2,1),width .42s cubic-bezier(.2,.7,.2,1)}
}
/* a search result's title is written out whole */
.zhs-row .t,.zhs-row.big .t{display:block;-webkit-line-clamp:unset;overflow:visible}
/* the underline is as wide as the lit tab's words and starts where they start (home-shell.js measures the words) */
@media (min-width:701px){.zsh-tabs-top>.zh-ind{width:calc(var(--tw,0)*1px);transform:translate(var(--tx,0px),0)}}
/* ONE MARK PER TAB. The lit tab has its underline and nothing else: no box comes up behind a tab under the pointer (the
   box and the line were two marks of two widths, one hanging under the other). A tab that is not lit is a shade quieter
   and comes up to full under the pointer. With no tab lit (the home page) the line is gone, and when a tab lights it
   appears in its place under that tab's words; from tab to tab it slides. */
.zh-ind{transition:transform .42s cubic-bezier(.2,.7,.2,1),width .42s cubic-bezier(.2,.7,.2,1),height .42s cubic-bezier(.2,.7,.2,1),opacity .22s linear}
.zh-ind.gone{opacity:0}
.zh-ind.off{transition:none!important}
@media (min-width:701px){
  html[data-tier=free][data-zh-shell] .zsh-tabs-top>:is(button,a),html[data-tier=free][data-zh-shell] .zsh-tabs-top>:is(button,a):hover{background:none!important}
  html[data-tier=free][data-zh-shell] .zsh-tabs-top>:is(button,a){color:var(--z-body);transition:color .18s linear}
  html[data-tier=free][data-zh-shell] .zsh-tabs-top>:is(button,a):is(:hover,:focus-visible,[aria-current=page]){color:var(--z-title)}
  .zsh-tabs-top>.zh-ind{transition:transform .42s cubic-bezier(.2,.7,.2,1),width .42s cubic-bezier(.2,.7,.2,1),opacity .22s linear}
}
/* while a story's page is open on a phone the floating tabs step out of its way */
@media (max-width:700px){html[data-tier=free][data-zh-shell][data-zhome-open][data-zhome-story] .zsh-tabbar{transform:translate(-50%,calc(100% + 28px + env(safe-area-inset-bottom,0px)))}}
/* a very narrow window (a side pane, an old small phone): the floating tabs keep inside it, words only */
@media (max-width:380px){
  html[data-tier=free][data-zh-shell][data-zhome-open] .zsh-tabbar{max-width:calc(100vw - 12px)}
  html[data-tier=free][data-zh-shell][data-zhome-open] .zsh-tabbar>:is(button,a){padding:0 12px;gap:0}
  html[data-tier=free][data-zh-shell][data-zhome-open] .zsh-tabbar>:is(button,a)>svg{display:none}
}
