/* Research — premium product shell (preview). JagSim green/navy. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f2f6f4;
  --surface: #ffffff;
  --line: #d8e2dc;
  --line-soft: #eef2ef;
  --text: #0b1f17;
  --muted: #5b6675;
  --muted-2: #8a97a6;
  --accent: #BB5C2D;
  --green: var(--jag-green, var(--jag-green));
  --green-2: #0e9c63;
  --green-ink: #fff;
  --green-soft: var(--jag-green-soft, #E8F7EF);
  --green-line: #b8dfc8;
  --green-dark: #0f9d68;
  --navy: var(--jag-green, var(--jag-green));
  --navy-soft: var(--jag-green-soft, #E8F7EF);
  --navy-line: #b8dfc8;
  --radius: 16px;
  --shadow: 0 1px 0 rgba(15, 39, 28, 0.035), 0 12px 32px rgba(15, 39, 28, 0.055);
}

body.paper-trading.research-page {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1100px 400px at 0% -8%, rgba(0, 110, 78, 0.11), transparent 55%),
    radial-gradient(900px 360px at 100% 0%, rgba(21, 86, 158, 0.08), transparent 52%),
    linear-gradient(180deg, #f8fbf9 0%, var(--bg) 40%, #f4f7f6 100%);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 20px 56px;
  flex: 1;
}

.page-head {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.page-head h1 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}
.lede {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 6px;
  max-width: 52ch;
}

/* ── Mode rail (4 tabs) ──────────────────────────────────────────────────── */
.ria-modes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 6px 0 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px;
  box-shadow: var(--shadow);
}
.ria-modes button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  padding: 11px 8px;
  border-radius: 11px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  line-height: 1.2;
}
.ria-modes button .ria-short { display: none; }
.ria-modes button:hover { color: var(--text); background: var(--line-soft); }
.ria-modes button.on {
  background: linear-gradient(180deg, #00895e 0%, var(--jag-green, var(--jag-green)) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 4px 14px rgba(0, 110, 78, 0.28);
}
.ria-modes button.on:hover { color: #fff; }
.ria-pane[hidden] { display: none !important; }

.ria-pane-intro {
  margin: 0 0 8px;
  padding: 0;
}
.ria-pane-intro h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 3px;
}
.ria-pane-intro p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 58ch;
  line-height: 1.45;
}

/* Research a stock layout: main + notebook rail */
.rx-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 14px;
  align-items: start;
}
.rx-main { min-width: 0; }
.rx-side {
  position: sticky;
  top: 72px;
}
.rx-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 0 0 12px;
  box-shadow: var(--shadow);
}

.lookup {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
}
.lookup input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 15px;
  font-size: 16px;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: #fff;
}
.lookup input:focus {
  outline: none;
  border-color: var(--jag-green, var(--jag-green));
  box-shadow: 0 0 0 3px rgba(0, 110, 78, 0.16);
}
.lookup button {
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--jag-green, var(--jag-green));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  font-size: 14.5px;
  white-space: nowrap;
}
.lookup button:hover { background: #00593f; }

.tkr-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.tkr-id { display: flex; align-items: baseline; gap: 10px; }
.tkr-id .sym {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.tkr-id .tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.trade-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e7f3ee;
  color: var(--jag-green, var(--jag-green));
  border: 1px solid #b7dcc9;
  text-decoration: none;
  font-weight: 800;
  font-size: 13.5px;
  padding: 9px 14px;
  border-radius: 10px;
}
.trade-cta:hover { background: #dbeee4; }

.rjump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.rjump a {
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--navy-line);
  padding: 6px 11px;
  border-radius: 999px;
}
.rjump a:hover { background: var(--navy-soft); }

.rgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rgrid > .rsec { margin: 0; }
.rsec {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  margin: 0 0 12px;
  box-shadow: var(--shadow);
}
.rsec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}
.rsec-head h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.rsec-head .pill {
  background: #fbeee7;
  color: #BB5C2D;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.rsec-head .sub {
  color: var(--muted);
  font-size: 12.5px;
  width: 100%;
  margin-top: 2px;
}
.rsec-body { margin-top: 12px; }

/* Merged "The Crowd" section: standing caption + two labeled facets */
.crowd-caption {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin: 4px 0 2px;
}
.crowd-facet {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.crowd-facet:first-of-type {
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
}
.crowd-facet-h {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 4px;
}

.skel { display: grid; gap: 9px; }
.skel .bar {
  height: 13px;
  border-radius: 7px;
  background: linear-gradient(90deg, #eef1f4 25%, #e4e8ee 37%, #eef1f4 63%);
  background-size: 400% 100%;
  animation: sh 1.4s ease-in-out infinite;
}
.skel .bar.w60 { width: 60%; }
.skel .bar.w40 { width: 40%; }
.skel .bar.tall { height: 120px; }
@keyframes sh {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.sec-empty { color: var(--muted); font-size: 14px; padding: 6px 0; }

.rlock {
  border: 1px solid #b7dcc9;
  background: linear-gradient(165deg, #e7f3ee 0%, #fff 72%);
  border-radius: 12px;
  padding: 16px 18px;
}
.rlock-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #BB5C2D;
  background: #fbeee7;
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 8px;
}
.rlock-h { font-size: 15.5px; font-weight: 800; margin-bottom: 4px; }
.rlock-p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0 0 12px; max-width: 52ch; }
.rlock-btn {
  display: inline-block;
  background: var(--jag-green, var(--jag-green));
  color: #fff;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
  padding: 9px 15px;
  border-radius: 9px;
}
.rlock-btn:hover { background: #00593f; }

.disc {
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.45;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.jag-foot {
  margin-top: auto;
  padding: 9px 20px;
  text-align: center;
  border-top: 1px solid #e2e8e4;
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 14px;
}
.jag-foot-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  margin-bottom: 0;
}
.jag-foot-links a {
  color: #48586a;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
}
.jag-foot-links a:hover { color: #12271c; background: #f0f4f7; }
.jag-foot-legal {
  color: #8a97a6;
  font-size: 12px;
  line-height: 1.4;
  max-width: none;
  margin: 0;
}

#secChart .rc-chartwrap { max-width: none; width: 100%; margin: 0; }

@media (max-width: 960px) {
  .rx-layout { grid-template-columns: 1fr; }
  .rx-side { position: static; }
}

@media (max-width: 820px) {
  .rgrid { grid-template-columns: 1fr; }
  .ria-modes button { font-size: 12px; padding: 10px 6px; }
}

@media (max-width: 600px) {
  .wrap { padding: 12px 14px 56px; }
  .page-head h1 { font-size: 24px; }
  .ria-modes {
    grid-template-columns: none;
  }
  .ria-modes button .ria-long { display: none; }
  .ria-modes button .ria-short { display: inline; }
  .rsec, .rx-block { padding: 15px 14px 14px; }
  .lookup button { padding: 0 14px; }
  .tkr-id .sym { font-size: 19px; }
}
/* research deploy 20260723050232 */

/* ── LOCKED PRO MODULES ─────────────────────────────────────────────────────
   Owner 2026-08-19: the Research page shows free users "empty shells" and
   "looks dead". Each locked module used to render a heading plus one grey
   sentence, which reads as a feature that failed to load rather than one that
   is available for $4.99.

   Same shape as the locked trading calendar he approved: an abstract sample
   behind glass, a PRO mark, one sentence of what it is, and one way to act.
   The sample is generic by design -- it must never be mistaken for a real
   measurement of the viewer's own portfolio. */
.pro-teaser { position: relative; min-height: 148px; border-radius: 14px; overflow: hidden; }
.pro-teaser-stage {
  position: absolute; inset: 0; padding: 18px 14px;
  filter: blur(3px) saturate(.85); opacity: .55; pointer-events: none;
}
.pro-teaser-stage svg { width: 100%; height: 100%; display: block; }
.pro-teaser-face {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 16px 16px 18px;
  background: radial-gradient(ellipse at 30% 40%, rgba(255,255,255,.94) 40%, rgba(255,255,255,.72) 100%);
}
.pro-teaser-pill {
  font-size: 10px; font-weight: 900; letter-spacing: .08em;
  padding: 3px 9px; border-radius: 999px; background: #BB5C2D; color: #fff;
}
.pro-teaser-h { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.pro-teaser-p { margin: 0; font-size: 12.5px; line-height: 1.5; color: #4a5750; max-width: 46ch; }
.pro-teaser-cta {
  margin-top: 2px; font-size: 12.5px; font-weight: 800; text-decoration: none;
  padding: 8px 14px; border-radius: 10px; background: #BB5C2D; color: #fff;
}
.pro-teaser-cta:hover { background: #a34f26; }


/* #19 THE FOOTER LINK DISAPPEARED UNDER THE CURSOR. (2026-08-21)
   .jag-foot-links a:hover is (0,2,1) and loses its colour to
   body.intel-premium .jag-foot a at (0,2,2), while keeping its own
   background:#f0f4f7 -- so hovering a footer link turned it into a light slab
   with invisible text. 1.05:1. The ink half of .jag-foot is already handled in
   intel-premium.css:1266-1269; only the hover state is broken. */
html[data-chart-theme="dark"] .jag-foot-links a:hover,
html[data-intel-theme="dark"] .jag-foot-links a:hover,
html[data-chart-theme="dark"] body.intel-premium .jag-foot-links a:hover,
html[data-intel-theme="dark"] body.intel-premium .jag-foot-links a:hover {
  background: #1B222C !important;
  color: #E6EDF3 !important;
}
html[data-chart-theme="dark"] .jag-foot,
html[data-intel-theme="dark"] .jag-foot { background: rgba(11,18,15,.72) !important; }
