/* Desktop app frame for public pages (partials/site_frame.html). The same rail and header as the market workspace, measured
   from it: 76px rail, 91px header, gold #c5b08e on #090a0c. Below 1024px none of it shows and each page keeps its own header. */
.tf-frame-symbols{position:absolute;width:0;height:0;overflow:hidden}
.tf-frame-rail,.tf-frame-top{display:none}
@media(min-width:1024px){
 body.has-frame{--frame-rail:76px;--frame-top:91px;--frame-pad:40px;padding-left:var(--frame-rail)}
 body.has-frame .tf-frame-rail{position:fixed;inset:0 auto 0 0;z-index:70;width:var(--frame-rail);display:flex;flex-direction:column;align-items:center;gap:22px;
   padding:29px 12px 19px;box-sizing:border-box;background:linear-gradient(#121416,#090a0c);border-right:1px solid #2d3035}
 .tf-frame-brand{display:block;flex:none;width:38px;height:38px;background:url("/static/next/app/brand-bars.svg?v=20261126") 50% 50%/66% no-repeat}
 .tf-frame-nav{display:grid;gap:10px;margin-top:35px}
 .tf-frame-nav a,.tf-frame-avatar{position:relative;display:grid;place-items:center;width:44px;height:44px;box-sizing:border-box;border:1px solid transparent;
   border-radius:12px;color:#a2a5ab;transition:background .18s,color .18s}
 .tf-frame-nav a span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 .tf-frame-nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
 .tf-frame-nav a:hover{background:#191b1fa3;color:#cfcfcf}
 .tf-frame-nav a[aria-current=page]{color:#c5b08e;background:#191b1f linear-gradient(145deg,#c5b08e11,transparent);border-color:#47443f;box-shadow:inset 0 1px #ffffff0b}
 .tf-frame-nav a:focus-visible,.tf-frame-avatar:focus-visible,.tf-frame-top a:focus-visible{outline:2px solid #c5b08e;outline-offset:2px}
 /* in-app views first, then the separate pages under a hairline, each with a small corner arrow (as in the workspace rail) */
 .tf-frame-first-out{margin-top:9px}
 .tf-frame-first-out::before{content:"";position:absolute;left:10px;right:10px;top:-11px;height:1px;background:#2d3035}
 .tf-frame-out::after{content:"";position:absolute;top:8px;right:8px;width:5px;height:5px;border-top:1.4px solid currentColor;border-right:1.4px solid currentColor;opacity:.55}
 .tf-frame-avatar{margin-top:auto;border-color:#2d3035;border-radius:50%;background:#191b1f;color:#c5b08e}
 .tf-frame-avatar svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.1;stroke-linecap:round}

 body.has-frame .tf-frame-top{position:sticky;top:0;z-index:65;display:flex;align-items:center;gap:22px;height:var(--frame-top);box-sizing:border-box;
   padding:0 var(--frame-pad);background:#090a0c;border-bottom:1px solid #2d3035;box-shadow:0 1px #c5ad860d;font-family:"DM Sans",sans-serif}
 .tf-frame-wordmark{position:relative;display:flex;align-items:center;color:#e8e7e3;font:800 24px/33px Manrope,sans-serif;letter-spacing:-.7px;text-decoration:none}
 .tf-frame-wordmark span{margin-left:2px;color:#c5b08e;font-weight:500}
 .tf-frame-wordmark small{position:absolute;top:36px;left:1px;color:#878b93;font:500 10px/10px "IBM Plex Mono",monospace;letter-spacing:1.4px;white-space:nowrap}
 .tf-frame-search{position:relative;display:flex;align-items:center;gap:9px;width:420px;max-width:38vw;height:42px;box-sizing:border-box;margin:0 0 0 auto;padding:10px 12px;
   background:linear-gradient(160deg,#191b1f,#121416);border:1px solid #2d3035;border-radius:12px;box-shadow:inset 0 1px #ffffff0b;color:#a2a5ab}
 .tf-frame-search:focus-within{border-color:#47443f}
 .tf-frame-search svg{flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round}
 .tf-frame-search input{flex:1;min-width:0;padding:1px 2px;border:0;outline:0;background:none;color:#e8e7e3;font:400 12px "DM Sans",sans-serif;letter-spacing:.05px}
 .tf-frame-search input::placeholder{color:#a2a5ab}
 .tf-frame-search input::-webkit-search-cancel-button{display:none}
 .tf-frame-search kbd{padding:2px 4px;border:1px solid #2d3035;border-radius:4px;color:#878b93;font:500 10px/10px "IBM Plex Mono",monospace}
 .tf-frame-actions{display:flex;align-items:center}
 .tf-frame-auth{display:flex;align-items:center;gap:4px}
 .tf-frame-auth a{display:flex;align-items:center;height:36px;padding:0 12px;border:1px solid transparent;border-radius:999px;color:#a2a5ab;
   font:550 13px/13px "DM Sans",system-ui,sans-serif;text-decoration:none;white-space:nowrap;transition:color .18s,border-color .18s}
 .tf-frame-auth a:hover{color:#e8e7e3}
 .tf-frame-auth .tf-frame-join{border-color:#47443f;color:#e8e7e3}
 .tf-frame-auth .tf-frame-join:hover{border-color:#c5b08e}
}
/* Short laptop windows: the rail fits without clipping the account button. */
@media(min-width:1024px) and (max-height:820px){
 body.has-frame .tf-frame-rail{padding-top:16px;padding-bottom:14px;gap:14px}
 .tf-frame-nav{margin-top:18px;gap:6px}
}

/* ---------- Every public page in the frame (owner, 28 Nov: "all the pages fill the screen on web, uniform") ----------
   From 1024px the page's own brand bar gives way to the rail and header, and its containers fill the pane beside the rail
   with the workspace's 40px padding, the same edges as the app and the homepage. Phones keep each page's own header. */
@media(min-width:1024px){
 body.has-frame :is(.public-nav,.st-header,.sv-header,.rns-header),body.has-frame.dd-body>nav.top{display:none}
 body.has-frame :is(.public-features,.public-reports,.public-final,.public-hero,.public-footer,.st-subnav,.st-main,.st-footer,.sv-layout,.sv-footer,
   .tfai-app-hero,.tfai-platforms,.journal-main){box-sizing:border-box;width:auto;max-width:none;margin-left:var(--frame-pad);margin-right:var(--frame-pad);
   padding-left:0;padding-right:0}
 body.has-frame .public-page .pp-main,body.has-frame.public-page .pp-main{max-width:none}
 body.has-frame main>:is(.public-features,.public-hero,.tfai-app-hero):first-child{border-top:0}
 /* Short Tracker: its section tabs stay pinned under the header, as the app's tab bars do */
 body.has-frame .st-subnav{position:sticky;top:var(--frame-top);z-index:60;background:color-mix(in srgb,#090a0c 92%,transparent);
   -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
 /* Stock Chat */
 body.has-frame.rns-calm:not(.rns-home)[data-rns-mode] .rns-layout{width:calc(100% - 2*var(--frame-pad));max-width:none}
 /* Deep Dives: the index becomes a grid of report cards; a report reads in a wide column */
 body.has-frame.dd-body>main{box-sizing:border-box;max-width:none;margin:0 var(--frame-pad);padding-left:0;padding-right:0}
 body.has-frame.dd-body .grid{grid-template-columns:repeat(auto-fill,minmax(420px,1fr))}
 body.has-frame.dd-body main :is(p.lead){max-width:80ch}
 body.has-frame.dd-body>.pd-top{display:none}
 body.has-frame.dd-body .xp-wrap{max-width:none}
}
@media(min-width:1280px){
 /* A report fills the pane: the verdict card across the top, then the sections down two columns in reading order */
 body.has-frame.dd-body .xp-wrap{display:block;columns:2;column-gap:16px}
 body.has-frame.dd-body .xp-wrap>*{break-inside:avoid;margin:0 0 16px}
 body.has-frame.dd-body .xp-wrap>:first-child,body.has-frame.dd-body .xp-wrap>.xp-foot{column-span:all}
}
/* Small laptops: the rail takes 76px, so Short Tracker's average-short card moves under the other three until there is room for four. */
@media(min-width:1024px) and (max-width:1279px){
 body.has-frame .st-hub-hero>.st-stats{grid-column:1/-1}
 body.has-frame .st-hub-hero>.st-avg{grid-column:1/-1;margin-top:14px}
}
