/* invest.ridgeway.cloud — public shell */
.inv-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 10px 20px; background: var(--card-bg, #fff); border-bottom: 1px solid var(--border-subtle); flex-wrap: wrap; }
.inv-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text-primary); text-decoration: none; }
.inv-brand img { width: 28px; height: 28px; }
.inv-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.inv-tab { border: 1px solid var(--border-subtle); background: transparent; color: var(--text-primary); padding: 7px 14px; border-radius: 999px; cursor: pointer; font: inherit; }
.inv-tab.active { background: var(--btn-primary); border-color: var(--btn-primary); color: #fff; }
.inv-main { max-width: none; margin: 0; padding: 16px clamp(8px, 2vw, 28px); }
.inv-main .view-container { display: block; }
.inv-main .view-container.hidden { display: none; }
.inv-foot { margin: 24px 0; padding: 0 16px 24px; font-size: 12px; color: var(--muted); }
.inv-foot a { color: inherit; }
/* Universe scans aren't offered here — keep the (hidden) controls out of sight. */
#fiUniverseControls { display: none !important; }

/* Wide result tables: use the full width, and keep the table in its own
   scroll box (max 75% of the screen tall) so the sideways scrollbar is always
   on screen — not only at the bottom of a 300-row list. Header row stays put. */
.invest-site .view-container { padding-left: 0; padding-right: 0; }
.invest-site .table-card .table-scroll { max-height: 75vh; overflow: auto; }
.invest-site .table-card .table-scroll thead th { position: sticky; top: 0; z-index: 2; background: var(--card-bg); box-shadow: inset 0 -1px 0 var(--border-subtle); }
.invest-site .table-card .table-scroll::-webkit-scrollbar { height: 12px; width: 12px; }
.invest-site .table-card .table-scroll::-webkit-scrollbar-thumb { background: var(--border-strong, #999); border-radius: 6px; }

/* Results load as soon as a scan is chosen — no Run Scan / Recent scans / Delete controls. */
.invest-site .fi-actions-row { display: none !important; }

/* Cached results: no scan progress bar (the run date sits in the note under the scan picker). */
.invest-site #fiProgressCard { display: none !important; }

/* Cookie consent banner (Google Analytics) */
.rw-consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1000; max-width: 720px; margin: 0 auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: var(--card-bg, #fff); color: var(--text-primary, #14213D); border: 1px solid var(--border-subtle, #E2E7EE); border-radius: 12px; padding: 12px 16px; box-shadow: 0 8px 30px rgba(0,0,0,.18); font-size: 14px; }
.rw-consent p { margin: 0; flex: 1 1 320px; }
.rw-consent-btns { display: flex; gap: 8px; }
