/* Site flow (29 Nov 2026): one app, many pages. Loaded on every public base and the app from partials/site_head.html.
   - Explore: the public content hubs from the header of every page and the app (desktop)
   - Rail labels: hover/focus flyouts on the rail icons (public frame and the app)
   - Explore row at the foot of every page (phones above all)
   - Page heads: one eyebrow / title / intro rhythm in the desktop frame
   - Deep Dives in the house look; the app's footer no longer jumps as the market loads
   House palette: #090a0c bg, #121416/#191b1f panels, #2d3035 lines, #e8e7e3 text, #a2a5ab muted, gold #c7b08b. */
:root{--tfx-bg:#090a0c;--tfx-panel:#121416;--tfx-panel2:#191b1f;--tfx-line:#2d3035;--tfx-line2:#47443f;--tfx-text:#e8e7e3;--tfx-muted:#a2a5ab;--tfx-dim:#878b93;--tfx-gold:#c7b08b;--tfx-radius:18px}

/* ---------- Explore menu (header of the public frame and the app; desktop only) ---------- */
.tf-explore{display:none}
@media(min-width:1024px){
 .tf-explore{position:relative;display:block;flex:none;margin-left:6px;font-family:"DM Sans",system-ui,sans-serif}
 .tf-explore>summary{display:flex;align-items:center;gap:6px;height:36px;padding:0 12px 0 14px;box-sizing:border-box;border:1px solid var(--tfx-line);border-radius:999px;
   color:var(--tfx-muted);font:550 13px/1 "DM Sans",system-ui,sans-serif;letter-spacing:.1px;list-style:none;cursor:pointer;user-select:none;transition:color .18s,border-color .18s,background .18s}
 .tf-explore>summary::-webkit-details-marker{display:none}
 .tf-explore>summary svg,body[data-app] #next-app .tf-explore>summary svg{flex:none;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s}
 .tf-explore>summary:hover,.tf-explore[open]>summary{color:var(--tfx-text);border-color:var(--tfx-line2);background:var(--tfx-panel2)}
 .tf-explore[open]>summary svg{transform:rotate(180deg)}
 .tf-explore>summary:focus-visible{outline:2px solid var(--tfx-gold);outline-offset:2px}
 .tf-explore-panel{position:absolute;z-index:90;top:calc(100% + 12px);left:0;width:min(760px,calc(100vw - 140px));box-sizing:border-box;padding:16px 16px 14px;
   background:linear-gradient(170deg,var(--tfx-panel2),var(--tfx-panel));border:1px solid var(--tfx-line);border-radius:18px;box-shadow:0 24px 60px #000a,inset 0 1px #ffffff0b;
   animation:tfx-pop .16s cubic-bezier(0,0,.2,1)}
 .tf-explore-kicker{margin:0 4px 10px;color:var(--tfx-gold);font:500 10px/1 "IBM Plex Mono",monospace;letter-spacing:1.5px;text-transform:uppercase}
 .tf-explore-panel ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0;padding:0;list-style:none}
 .tf-explore-panel li a{display:grid;gap:4px;padding:11px 12px;border:1px solid transparent;border-radius:12px;color:var(--tfx-text);text-decoration:none;transition:background .15s,border-color .15s}
 .tf-explore-panel li a b{font:600 14px/1.2 Manrope,sans-serif;letter-spacing:-.1px}
 .tf-explore-panel li a small{color:var(--tfx-dim);font:400 12px/1.35 "DM Sans",sans-serif}
 .tf-explore-panel li a:hover,.tf-explore-panel li a:focus-visible{background:#ffffff08;border-color:var(--tfx-line);outline:0}
 .tf-explore-panel li a:focus-visible{border-color:var(--tfx-gold)}
 .tf-explore-panel li a[aria-current=page] b{color:var(--tfx-gold)}
 .tf-explore-panel li a[aria-current=page] b::after{content:"";display:inline-block;width:5px;height:5px;margin:0 0 2px 7px;border-radius:50%;background:var(--tfx-gold);vertical-align:middle}
 .tf-explore-app{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin:10px 4px 0;padding-top:12px;border-top:1px solid var(--tfx-line);color:var(--tfx-muted);
   font:550 12.5px/1 "DM Sans",sans-serif;text-decoration:none}
 .tf-explore-app:hover,.tf-explore-app:focus-visible{color:var(--tfx-gold);outline:0}
 /* the app's header: same place, after the wordmark */
 /* the app's header gap is clamp(10px,1.5vw,22px) (entry.css), the frame's 22px: land on the same x either way */
 header.topbar .tf-explore{margin-left:calc(28px - clamp(10px,1.5vw,22px))}
}
@media(min-width:1024px) and (max-width:1199px){.tf-explore-panel ul{grid-template-columns:repeat(2,minmax(0,1fr))}.tf-explore-panel{width:520px}}
@keyframes tfx-pop{from{opacity:0;transform:translateY(-4px)}}

/* ---------- Rail labels: a flyout on hover / keyboard focus (public frame + the app) ----------
   Without a mouse the labels stay for screen readers only. */
.tf-tip{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(min-width:1024px) and (hover:hover),(min-width:1024px) and (any-pointer:fine){
 aside.rail .rail-button{position:relative}
 .tf-frame-nav a .tf-tip,aside.rail .rail-button .tf-tip{position:absolute;left:calc(100% + 14px);top:50%;z-index:95;display:flex;flex-direction:column;gap:2px;width:max-content;max-width:240px;height:auto;
   overflow:visible;clip:auto;padding:8px 12px 9px;box-sizing:border-box;background:var(--tfx-panel2);border:1px solid var(--tfx-line2);border-radius:10px;box-shadow:0 10px 30px #0009;
   color:var(--tfx-text);font:400 12px/1.3 "DM Sans",system-ui,sans-serif;text-align:left;white-space:nowrap;pointer-events:none;
   opacity:0;visibility:hidden;transform:translate(-4px,-50%);transition:opacity .12s,transform .12s,visibility 0s .12s}
 .tf-frame-nav a .tf-tip b,aside.rail .rail-button .tf-tip b{font:600 13px/1.2 Manrope,sans-serif;color:var(--tfx-text)}
 .tf-frame-nav a .tf-tip i,aside.rail .rail-button .tf-tip i{font-style:normal;color:var(--tfx-dim)}
 .tf-frame-nav a:hover .tf-tip,.tf-frame-nav a:focus-visible .tf-tip,aside.rail .rail-button:hover .tf-tip,aside.rail .rail-button:focus-visible .tf-tip{
   opacity:1;visibility:visible;transform:translate(0,-50%);transition:opacity .12s .06s,transform .12s .06s,visibility 0s .06s}
}

/* ---------- Explore row at the foot of every page ---------- */
nav.tf-hubs.tf-hubs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;padding:0;font-family:"DM Sans",system-ui,sans-serif}
footer nav.tf-hubs.tf-hubs{grid-column:1/-1;width:100%}
nav.tf-hubs.tf-hubs a{display:inline-flex;align-items:center;min-height:36px;margin:0;padding:0 14px;box-sizing:border-box;border:1px solid var(--tfx-line);border-radius:999px;background:#ffffff05;
 color:var(--tfx-text);font:500 13px/1 "DM Sans",system-ui,sans-serif;text-decoration:none;white-space:nowrap;transition:border-color .15s,color .15s,background .15s}
nav.tf-hubs.tf-hubs a:hover{border-color:var(--tfx-line2);background:var(--tfx-panel2)}
nav.tf-hubs.tf-hubs a:focus-visible{outline:2px solid var(--tfx-gold);outline-offset:2px}
nav.tf-hubs.tf-hubs a[href="/app/"]{color:var(--tfx-gold);border-color:#c7b08b55}
@media(max-width:600px){nav.tf-hubs.tf-hubs{gap:6px}nav.tf-hubs.tf-hubs a{min-height:40px;padding:0 13px;font-size:13.5px}}

/* ---------- Page heads in the desktop frame: the eyebrow where the app's sits (91px header + 56px), one eyebrow style,
   titles in the same Manrope range, so a switch doesn't read as a new site. Each page keeps its own words and accents. ---------- */
@media(min-width:1024px){
 /* Roundups: title up to the house range, eyebrow at 10px, the head a touch lower (it sat 20px above the others) */
 html body.has-frame .sv-layout{padding-top:56px}
 html body.has-frame .sv-intro h1{font-size:clamp(40px,3.6vw,56px);line-height:1.06;margin:16px 0 14px}
 html body.has-frame .sv-eyebrow{font-size:10px;letter-spacing:1.5px}
 /* Market Week: eyebrow 10px, the head 8px lower to meet the others */
 html body.has-frame .public-features .eyebrow,html body.has-frame main .eyebrow{font-size:10px;letter-spacing:1.5px}
 /* Market news: eyebrow in the house 10px */
 html body.has-frame .pn-eyebrow{font-size:10px;letter-spacing:1.5px}
 /* Get the app: the head starts at the top like every other page (it was centred against the phone, 170px low) */
 html body.has-frame .tfai-app-hero{align-items:start;padding-top:56px}
 html body.has-frame .tfai-app-hero h1{font:500 clamp(40px,3.8vw,58px)/1.08 Manrope,sans-serif;letter-spacing:-.035em;margin:0 0 18px}
 html body.has-frame .tfai-app-hero h1 em{font-style:normal;color:var(--tfx-gold)}
 html body.has-frame .tfai-app-hero .lead{font-size:16px;color:var(--tfx-muted);opacity:1}
 html body.has-frame .tfai-app-mark{align-self:center}
 /* Deep Dives: index and report heads on the same line as the rest */
 html body.has-frame.dd-body>main{padding-top:56px}
}

/* ---------- Deep Dives in the house look (all widths). They were the one page in Inter, cyan and blue: same content,
   same Buy/Hold/Sell colours, now the site's fonts, panels and gold. ---------- */
html body.dd-body{background:var(--tfx-bg);color:var(--tfx-text);font-family:"DM Sans",system-ui,-apple-system,sans-serif}
html body.dd-body :is(h1,h2,h3){font-family:Manrope,sans-serif}
html body.dd-body>main>h1,html body.dd-body .pd-head h1{font-weight:500;letter-spacing:-.035em;line-height:1.06}
html body.dd-body>main>h1{font-size:clamp(32px,4vw,58px);margin:14px 0 16px}
html body.dd-body .pd-head h1{font-size:clamp(30px,3.4vw,48px);margin:12px 0 10px}
html body.dd-body .pd-head h1 span{color:var(--tfx-gold);font-weight:500}
html body.dd-body :is(.crumbs,.pd-crumbs){color:var(--tfx-dim);font:500 10px/1.6 "IBM Plex Mono",monospace;letter-spacing:1.5px;text-transform:uppercase}
html body.dd-body :is(.crumbs,.pd-crumbs) a{color:var(--tfx-muted)}
html body.dd-body :is(.crumbs,.pd-crumbs) a:hover{color:var(--tfx-gold)}
html body.dd-body .pd-kicker{color:var(--tfx-gold);font:500 10px/1.6 "IBM Plex Mono",monospace;letter-spacing:1.5px}
html body.dd-body .pd-kicker::before{background:#c7b08b1f;color:var(--tfx-gold)}
html body.dd-body :is(.lead,.pd-meta){color:var(--tfx-muted)}
html body.dd-body .how{background:var(--tfx-panel);border-color:var(--tfx-line);border-radius:var(--tfx-radius);color:var(--tfx-muted)}
html body.dd-body .how strong,html body.dd-body .pd-cta strong{color:var(--tfx-text)}
html body.dd-body .card{background:linear-gradient(160deg,var(--tfx-panel2),var(--tfx-panel));border-color:var(--tfx-line);border-radius:var(--tfx-radius);transition:border-color .15s,transform .15s}
html body.dd-body .card:hover{border-color:var(--tfx-line2)}
html body.dd-body .card .name{font-family:Manrope,sans-serif;font-weight:650}
html body.dd-body .tick{color:var(--tfx-gold)}
html body.dd-body .meta{color:var(--tfx-muted)}
html body.dd-body :is(.btn,.pd-btn,.xp-run){background:var(--tfx-gold);color:#090a0c;border:0;border-radius:999px;box-shadow:none;font-family:"DM Sans",sans-serif;font-weight:700;letter-spacing:0}
html body.dd-body .pd-btn.ghost{background:transparent;color:var(--tfx-text);border:1px solid var(--tfx-line2)}
html body.dd-body :is(.btn,.pd-btn):hover{filter:brightness(1.06)}
html body.dd-body :is(.cta,.pd-cta,.pd-inline,.pd-related,.empty){background:linear-gradient(160deg,var(--tfx-panel2),var(--tfx-panel));border-color:var(--tfx-line);border-radius:18px}
html body.dd-body :is(.cta,.pd-cta) p{color:var(--tfx-muted)}
html body.dd-body .pd-cta-badge{background:#c7b08b1f;color:var(--tfx-gold);border:1px solid #c7b08b55}
html body.dd-body .pd-points li{background:#ffffff06;border-color:var(--tfx-line);color:var(--tfx-muted)}
html body.dd-body .pd-related li a{color:var(--tfx-text)}
html body.dd-body :is(.pd-related li span,.pd-related p a,.pd-legal a){color:var(--tfx-gold)}
html body.dd-body .pd-inline span{color:var(--tfx-muted)}
html body.dd-body .pd-try input{background:var(--tfx-bg);border-color:var(--tfx-line)}
html body.dd-body .pd-try input:focus{border-color:var(--tfx-gold);box-shadow:0 0 0 3px #c7b08b26}
html body.dd-body :is(.legal,.pd-legal){color:var(--tfx-dim)}
/* phone headers: the site's wordmark weight and a gold label, not cyan */
html body.dd-body :is(nav.top,.pd-top){background:#090a0cf0;border-bottom-color:var(--tfx-line)}
html body.dd-body :is(.brand,.pd-brand){font-family:Manrope,sans-serif;font-weight:800;letter-spacing:-.4px;color:var(--tfx-text)}
html body.dd-body :is(.brand,.pd-brand) small{color:var(--tfx-gold);font:500 9px/1.4 "IBM Plex Mono",monospace;letter-spacing:1.4px}
html body.dd-body :is(.link,.pd-link){color:var(--tfx-muted);font-weight:600}
/* one invitation per page: the header's Join free and the report's closing card; the sticky bar over the text goes */
html body.dd-body .pd-sticky{display:none}
html body.dd-body{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
html body.dd-body .xp-wrap{font-family:"DM Sans",system-ui,sans-serif}

/* ---------- The app: the footer stays below the fold while the market loads (it jumped up and back: CLS 0.38-0.47) ---------- */
@media(min-width:1024px){
 #market-intelligence:has(>.loading-surface){min-height:calc(100vh - 91px)}
 #workspace-main>.research-view:not([hidden]){min-height:calc(100vh - 91px)}
}

/* ---------- Phones and tablets (below the desktop frame): one public header. Brand and Sign in on the first row, every
   content hub in a single swipeable row under it, the current page lit. Same height on every page that uses it. ---------- */
@media(max-width:1023px){
 html body .public-nav.public-nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 12px;min-height:0;box-sizing:border-box;
   padding:16px max(16px,env(safe-area-inset-left,0px)) 0;border-bottom:1px solid var(--tfx-line)}
 html body .public-nav.public-nav>.public-brand{order:0;flex:none;position:relative;padding-left:46px!important;font:800 21px/1.2 Manrope,sans-serif;letter-spacing:-1px;color:var(--tfx-text);text-decoration:none}
 html body .public-nav.public-nav>.public-brand>span{color:var(--tfx-gold);font-weight:500}
 html body .public-nav.public-nav>.public-brand::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:35px;height:35px;background:url('/static/next/app/brand-bars.svg?v=20261126') center/66% auto no-repeat}
 html body .public-nav.public-nav>.public-account{order:1;display:flex;align-items:center;gap:8px;margin:0 0 0 auto}
 html body .public-nav.public-nav>.public-account>a{display:inline-flex!important;align-items:center;gap:4px;min-height:40px;padding:0 4px;color:var(--tfx-muted);font:550 13px/1 "DM Sans",sans-serif;white-space:nowrap;text-decoration:none;border:0;background:none}
 html body .public-nav.public-nav>.public-account>a.public-join{padding:0 14px;min-height:36px;border:1px solid var(--tfx-line2);border-radius:999px;color:var(--tfx-text)}
 html body .public-nav.public-nav>.public-account svg{width:12px;height:12px}
 html body .public-nav.public-nav>nav.public-links{order:2;flex:1 0 100%;display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:6px;margin:0 calc(-1*max(16px,env(safe-area-inset-left,0px)));
   padding:0 max(16px,env(safe-area-inset-left,0px)) 12px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;
   -webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
 html body .public-nav.public-nav>nav.public-links::-webkit-scrollbar{display:none}
 html body .public-nav.public-nav>nav.public-links>a{display:inline-flex!important;flex:none;align-items:center;min-height:36px;margin:0;padding:0 13px;box-sizing:border-box;border:1px solid var(--tfx-line);border-radius:999px;
   background:#ffffff05;color:var(--tfx-muted);font:500 12.5px/1 "DM Sans",sans-serif;letter-spacing:0;white-space:nowrap;text-decoration:none}
 html body .public-nav.public-nav>nav.public-links>a[aria-current=page]{color:var(--tfx-text);border-color:var(--tfx-line2);background:var(--tfx-panel2);box-shadow:inset 0 -1px var(--tfx-gold)}
 html body .public-nav.public-nav>nav.public-links>a:focus-visible,html body .public-nav.public-nav>.public-account>a:focus-visible{outline:2px solid var(--tfx-gold);outline-offset:2px}
 /* Roundups' own header: the brand mark like every other header */
 html body .sv-wordmark{position:relative;padding-left:46px}
 html body .sv-wordmark::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:35px;height:35px;background:url('/static/next/app/brand-bars.svg?v=20261126') center/66% auto no-repeat}
}
@media(min-width:681px) and (max-width:1023px){html body .public-nav.public-nav>nav.public-links{-webkit-mask-image:none;mask-image:none}}

/* ---------- Motion off when asked ---------- */
@media(prefers-reduced-motion:reduce){.tf-explore-panel{animation:none}.tf-explore>summary svg,.tf-tip,.tf-hubs a{transition:none!important}}
