/* Trading Ideas Fundamentals (owner 2026-10-26). Brand: cyan → blue → purple, lime accent. Light by default, dark by system. */
:root {
  --bg: #F6F8FD; --surface: #FFFFFF; --surface-2: #EEF2FB; --line: #DDE3F2; --fg: #0B1530; --muted: #56607E;
  --accent: #0A7FE0; --accent-2: #7C4DEB; --lime: #5AA312; --up: #0A7A4F; --down: #C2243C;
  --c1: #0A7FE0; --c2: #7C4DEB; --c3: #C77800; --r: 14px; color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0A1230; --surface: #121B42; --surface-2: #1A2556; --line: #27346B; --fg: #F2F5FF; --muted: #A7B2D6;
  --accent: #23C6F2; --accent-2: #9B7BFF; --lime: #84E21E; --up: #2EE59D; --down: #FF6B86; --c1: #23C6F2; --c2: #9B7BFF; --c3: #F2B03D; color-scheme: dark; } }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
.muted { color: var(--muted); } .up { color: var(--up); } .down { color: var(--down); }
h1 { font-size: 1.6rem; margin: 0 0 4px; line-height: 1.2; } h2 { font-size: 1.15rem; margin: 0 0 10px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; gap: 14px; align-items: center; padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 8px; align-items: center; color: var(--fg); flex: none; } .brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; } .brand b { display: block; font-size: 1rem; line-height: 1.1; } .brand small { color: var(--muted); font-size: .75rem; }
.search { position: relative; flex: 1; max-width: 480px; margin-left: auto; }
.search input { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; }
.search.big { max-width: 620px; margin: 18px auto 0; } .search.big input { padding: 14px 16px; font-size: 1.05rem; border-radius: 14px; }
.sres { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(10, 20, 60, .18); overflow: hidden; z-index: 20; text-align: left; }
.sres a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; color: var(--fg); border-bottom: 1px solid var(--line); }
.sres a:hover, .sres a.on { background: var(--surface-2); text-decoration: none; } .sres small { color: var(--muted); white-space: nowrap; }

main { max-width: 1120px; margin: 0 auto; padding: 16px; }
section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 14px 0; }
.cohead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 6px 0 8px; }
.px { text-align: right; } .px b { display: block; font-size: 1.6rem; } .px small { color: var(--muted); }
.secnav { position: sticky; top: 57px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; background: var(--bg); scrollbar-width: none; }
.secnav a { flex: none; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: .85rem; }
.secnav a:hover { border-color: var(--accent); text-decoration: none; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 9px 11px; }
.stat span { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: .78rem; }
.stat b { display: block; font-size: 1.1rem; font-variant-numeric: tabular-nums; } .stat small { color: var(--muted); font-size: .72rem; }
.q { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .68rem; line-height: 1; cursor: pointer; padding: 0; }
.tip { position: absolute; z-index: 30; max-width: 260px; background: var(--fg); color: var(--bg); padding: 8px 10px; border-radius: 8px; font-size: .82rem; box-shadow: 0 8px 20px rgba(0,0,0,.25); }

.facts { margin: 0; padding-left: 20px; } .facts li { margin: 4px 0; }
.note { color: var(--muted); font-size: .82rem; margin: 10px 0 0; }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; font-variant-numeric: tabular-nums; }
th, td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th { background: var(--surface-2); font-weight: 600; font-size: .8rem; color: var(--muted); }
td:first-child, th:first-child { text-align: left; }
.sticky1 td:first-child, .sticky1 th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.sticky1 th:first-child { background: var(--surface-2); }
.sortable th { cursor: pointer; } .sortable th:hover { color: var(--accent); }
tbody tr:hover td { background: var(--surface-2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } @media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.docs { columns: 2; padding-left: 20px; } @media (max-width: 600px) { .docs { columns: 1; } }

.tabs { display: flex; gap: 6px; margin-bottom: 8px; } .tabs button { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; font: inherit; font-size: .85rem; }
.tabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chart svg { width: 100%; height: 220px; display: block; } .chart text { fill: var(--muted); font-size: 11px; }
.chart .ax { stroke: var(--line); } .chart .pl { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); margin-bottom: 4px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.hero { text-align: center; padding: 34px 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), color-mix(in srgb, var(--accent-2) 14%, var(--surface))); }
.hero h1 { font-size: 2rem; } .hero p { max-width: 640px; margin: 8px auto 0; color: var(--muted); }

/* ---- homepage (redesign 2026-10-27): neutral brand colours only, no good/bad colouring */
.home { padding-top: 14px; }
.home h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.01em; } .home h3 { margin: 0; font-size: 1.05rem; }
.kick { margin: 0 0 3px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hx { position: relative; text-align: center; color: #fff; border-radius: 22px; padding: 44px 20px 22px;
  background: radial-gradient(120% 90% at 0% 0%, rgba(0, 212, 245, .55), transparent 55%), radial-gradient(90% 80% at 100% 100%, rgba(132, 226, 30, .16), transparent 60%),
    linear-gradient(135deg, #0A8EF0 0%, #1458B8 48%, #46309A 100%);
  box-shadow: 0 20px 50px -24px rgba(20, 50, 140, .55); }
.hx .kick { color: rgba(255, 255, 255, .85); }
.hx h1 { font-size: clamp(1.65rem, 4.6vw, 2.75rem); line-height: 1.12; letter-spacing: -.02em; max-width: 820px; margin: 6px auto 0; }
.hx h1 em { font-style: normal; color: #B4F25A; }
.hx .lede { max-width: 640px; margin: 12px auto 0; color: rgba(255, 255, 255, .86); font-size: 1rem; }
.hx .search.big { margin-top: 22px; }
.hx .search.big input { padding: 16px 16px 16px 46px; border: 0; background: #fff; color: #0B1530; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); }
.hx .search.big input::placeholder { color: #6A7494; }
.hx .search.big input:focus { outline: 3px solid rgba(180, 242, 90, .8); outline-offset: 2px; }
.search.big .ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #1458B8; pointer-events: none; }
.hx .sres { color: var(--fg); }
.hstats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 28px auto 0; max-width: 980px; }
.hstats div { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 11px 10px; backdrop-filter: blur(4px); }
.hstats b { display: block; font-size: 1.2rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.hstats span { display: block; font-size: .74rem; color: rgba(255, 255, 255, .8); margin-top: 2px; }

.jump { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0 2px; scrollbar-width: none; }
.jump a { flex: none; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: .85rem; }
.jump a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

section.hs { padding: 20px; margin: 16px 0; border-radius: 18px; }
.sh { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.sh > p { margin: 0; max-width: 460px; font-size: .86rem; }

/* cards shared by homepage grids */
.rc, .lt, .it, .sz, .lc, .wc { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--fg);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
a.rc:hover, a.lt:hover, a.it:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 24px -14px rgba(20, 60, 160, .45); text-decoration: none; }
.home small { color: var(--muted); }

.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.rc { display: block; padding: 13px 14px; }
.rh { margin-bottom: 8px; } .rh b { display: block; font-size: 1rem; } .rh small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; }
.rl { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: baseline; padding: 7px 0; border-top: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.rl span { color: var(--muted); font-size: .8rem; } .rl b { text-align: right; font-size: .98rem; }
.rl small { grid-column: 1 / -1; text-align: right; font-size: .76rem; }

.ltgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.lt { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px 16px; overflow: hidden; }
.lt .rk { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.lt div { min-width: 0; } .lt b { display: block; } .lt small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .76rem; }
.lt .mc { font-size: .86rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lt .bar { position: absolute; left: 14px; right: 14px; bottom: 7px; height: 3px; border-radius: 3px; background: var(--surface-2); }
.lt .bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); grid-auto-flow: dense; gap: 10px; }
.it { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 104px; padding: 14px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) var(--a), var(--surface)), color-mix(in srgb, var(--accent-2) var(--a), var(--surface))); }
.it b { font-size: .96rem; line-height: 1.25; } .it span { font-size: .8rem; font-variant-numeric: tabular-nums; }
.it small { font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it.wide { grid-column: span 2; } .it.big { grid-column: span 2; grid-row: span 2; min-height: 218px; } .it.big b { font-size: 1.25rem; }
.allind { margin-top: 14px; } .allind summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 6px 0; }
.allind .chips { margin-top: 10px; }
.chipl:hover { border-color: var(--accent); text-decoration: none; }

.szgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sz { padding: 16px; } .sz p { margin: 6px 0 0; font-size: .86rem; } .sz .kick { margin-bottom: 4px; }
.sz .big { display: inline-block; font-size: 2.1rem; line-height: 1.1; margin: 8px 6px 0 0; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.share { height: 6px; border-radius: 6px; background: var(--surface-2); margin: 12px 0 4px; overflow: hidden; }
.share i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.lc { padding: 14px; background: var(--surface-2); border-color: transparent; }
.lc .ab { display: block; font-size: 1.3rem; color: var(--accent); } .lc span { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }
.lc p { margin: 8px 0 0; font-size: .86rem; }

.wgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wc { padding: 16px; } .wc b { display: block; margin-top: 8px; } .wc p { margin: 4px 0 0; font-size: .86rem; color: var(--muted); }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wc .ico { width: 36px; height: 36px; padding: 7px; border-radius: 10px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }

@media (max-width: 900px) { .hstats { grid-template-columns: repeat(3, 1fr); } .wgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .hx { padding: 30px 14px 16px; border-radius: 18px; } .hx .lede { font-size: .92rem; }
  .hstats { grid-template-columns: repeat(2, 1fr); } .hstats div:last-child { grid-column: 1 / -1; } .hstats b { font-size: 1.05rem; }
  section.hs { padding: 14px; border-radius: 16px; }
  .szgrid, .wgrid { grid-template-columns: 1fr; }
  .igrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .it { min-height: 92px; padding: 12px; } .it.big { grid-row: auto; min-height: 120px; }
  .it.wide { grid-column: auto; } .it b { font-size: .88rem; overflow-wrap: anywhere; } .igrid .it:nth-child(n+15) { display: none; }
  .rgrid, .ltgrid, .lgrid { grid-template-columns: 1fr; } .rgrid .rc:nth-child(n+7) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rc, .lt, .it { transition: none; } a.rc:hover, a.lt:hover, a.it:hover { transform: none; } }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--fg); }
.tile:hover { border-color: var(--accent); text-decoration: none; } .tile small { display: block; color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile span { font-size: .82rem; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chipl { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); font-size: .88rem; } .chipl small { color: var(--muted); }

footer { max-width: 1120px; margin: 24px auto; padding: 0 16px 30px; color: var(--muted); font-size: .82rem; }
@media (max-width: 640px) {
  h1 { font-size: 1.3rem; } .hero h1 { font-size: 1.5rem; } .brand span { display: none; } main { padding: 10px; } section { padding: 12px; }
  .secnav { top: 55px; } .px b { font-size: 1.3rem; } .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) { .sres a { flex-direction: column; gap: 1px; } .sres small { white-space: normal; } }
.flag { background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 8px; padding: 8px 12px; margin: 0 0 10px; font-size: .88rem; }

/* ---- tools (owner 2026-10-27): header links, watchlist / compare buttons, filings, results calendar, compare, screener, watchlist ---- */
.tnav { display: flex; gap: 4px; flex: none; }
.tnav a { padding: 6px 9px; border-radius: 8px; color: var(--fg); font-size: .86rem; white-space: nowrap; }
.tnav a:hover { background: var(--surface-2); text-decoration: none; }
.tnav .signin { border: 1px solid var(--line); background: var(--surface); }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--fg); font: inherit; font-size: .88rem; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.wl.on { border-color: var(--accent-2); color: var(--accent-2); }
.btn.danger { color: var(--down); }
.cotools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.nextres { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 6px; padding: 8px 12px; border-radius: 10px;
  background: var(--surface-2); font-size: .9rem; }
.nextres .ico { width: 18px; height: 18px; }
.filings { list-style: none; margin: 0; padding: 0; }
.filings li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.filings li:last-child { border-bottom: 0; }
.filings time { color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.filings p { margin: 3px 0 0; color: var(--muted); font-size: .85rem; }
h2 .count, .count { color: var(--muted); font-weight: 400; font-size: .85rem; }
.toolgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 6px; }
.tool { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.tool:hover { border-color: var(--accent); text-decoration: none; }
.tool .ico { width: 22px; height: 22px; color: var(--accent); }
.tool span { color: var(--muted); font-size: .85rem; }
.cmpadd { max-width: 520px; margin: 10px 0 0; }
.cmpt th { vertical-align: bottom; text-align: right; min-width: 150px; white-space: normal; position: relative; padding-right: 26px; }
.cmpt th small { display: block; font-weight: 400; } .cmpt td small { display: block; color: var(--muted); font-size: .72rem; }
.cmpt tr.grp td { background: var(--surface-2); font-weight: 600; text-align: left; font-size: .8rem; color: var(--muted); }
.x { border: 0; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 2px 6px; }
.cmpt .x { position: absolute; top: 4px; right: 2px; }
.x:hover { color: var(--down); }
h3 { font-size: 1rem; margin: 14px 0 0; } section > h3:first-child { margin-top: 0; }
.cond, .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.cond select, .cond input, .row select { padding: 7px 9px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-size: .88rem; }
.cond select[data-f="k"] { min-width: 220px; } .cond input { width: 130px; }
.saved .chipl { display: inline-flex; align-items: center; gap: 2px; }
.star { border: 0; background: none; color: var(--accent-2); font-size: 1.05rem; cursor: pointer; }
th[data-sort] { cursor: pointer; } th.asc::after { content: " ▲"; } th.desc::after { content: " ▼"; }
.gate, .login { max-width: 560px; }
.login { margin: 20px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
#gbtn { margin: 16px 0; min-height: 44px; }
@media (max-width: 900px) { .toolgrid { grid-template-columns: repeat(2, 1fr); } .tnav a:not(.signin) { display: none; } }
@media (max-width: 640px) { .filings li { grid-template-columns: 1fr; gap: 2px; } .cond select[data-f="k"] { min-width: 0; flex: 1 1 100%; } }
#wl td:nth-child(2), #wl th:nth-child(2), #scr td:nth-child(2), #scr th:nth-child(2), #scr td:nth-child(3), #scr th:nth-child(3) { text-align: left; white-space: normal; min-width: 140px; }
.calt td:nth-child(2), .calt th:nth-child(2), .calt td:nth-child(3), .calt th:nth-child(3) { text-align: left; white-space: normal; }
.consent { font-size: .85rem; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; } .login h2, section > h2 + p { margin-top: 0; }
