/* Bloombird company lookup. Tokens from the Noorult design system (claude/noorult-design-system.md). */
:root {
  --canvas: #FFFFFF; --ink: #000000; --text: #111111; --muted: #555555; --paper: #F4F4F4;
  --navy: #0B1D3F; --navy-2: #14306B; --orange: #FF7F00; --amber: #FFB347; --royal: #2B4BD6;
  --red: #E8141C; --green: #3CB043; --grey-scribble: #C8C8C8;
  --f-display: 'Shantell Sans', 'Comic Sans MS', 'Arial Black', sans-serif;
  --f-body: 'Shantell Sans', system-ui, -apple-system, sans-serif;
  --f-data: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
  --bw: 3px; --bw-heavy: 4px; --bw-thin: 2px;
  --shadow-flat: 4px 4px 0 var(--ink);
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 32px; --s-6: 48px; --s-7: 64px; --s-8: 96px;
  --gutter: 16px; --container: 1120px;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--text); font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  font-variation-settings: 'BNCE' 0, 'INFM' 0; }
.wrap { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
a { color: var(--royal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 2px; }
#app:focus { outline: none; }

.display { font-family: var(--f-display); font-weight: 800; font-variation-settings: 'BNCE' 0, 'INFM' 50; text-transform: uppercase; line-height: 1.05; letter-spacing: 0.01em; }
.hand { font-family: var(--f-body); font-weight: 400; font-variation-settings: 'BNCE' 0, 'INFM' 100; font-size: 18px; }
.data, table.num td, table.num th { font-family: var(--f-data); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* header */
.site-header { border-bottom: var(--bw) solid var(--ink); background: var(--canvas); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: var(--s-3); min-height: 72px; flex-wrap: wrap; padding-top: var(--s-2); padding-bottom: var(--s-2); }
.mark { background: var(--navy); color: var(--canvas); border: var(--bw) solid var(--orange); padding: 6px 12px; font-size: 20px; text-decoration: none; }
.header-link { color: var(--ink); text-decoration: none; font-size: 16px; }
.header-link:hover { text-decoration: underline; }
#header-search { flex: 1 1 260px; max-width: 420px; margin-left: auto; }
@media (max-width: 640px) { #header-search { flex-basis: 100%; max-width: none; margin-left: 0; } }

/* search */
.search { position: relative; }
.search input { width: 100%; height: 48px; padding: 0 14px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 0;
  font: 16px var(--f-body); color: var(--text); }
.search input:focus { border-color: var(--royal); outline: none; }
.search.big input { height: 64px; font-size: 20px; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; background: var(--canvas); border: var(--bw) solid var(--ink); border-top: 0;
  margin: 0; padding: 0; list-style: none; z-index: 30; max-height: 60vh; overflow-y: auto; }
.suggest li { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; cursor: pointer; min-height: 48px; border-top: 1px solid var(--grey-scribble); }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--paper); }
.suggest .t { font-family: var(--f-data); font-weight: 600; min-width: 64px; }
.suggest .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .x { font-size: 13px; color: var(--muted); }

/* trios */
.bar { background: var(--navy); color: var(--canvas); padding: 14px 18px; font-size: clamp(18px, 3vw, 26px); position: relative; margin: var(--s-5) 0 0; }
.bar::before, .bar-white::before { content: ""; position: absolute; inset: 0; border: var(--bw-heavy) solid var(--orange); filter: url(#wobble); pointer-events: none; }
.bar-white { background: var(--canvas); color: var(--ink); padding: 12px 16px; font-size: 22px; position: relative; display: inline-block; }
.bar-white::before { border: var(--bw) solid var(--ink); }
.chip { display: inline-block; background: var(--canvas); color: var(--ink); border: var(--bw-thin) solid var(--ink); padding: 3px 9px; font-size: 14px; }
.chip.navy { background: var(--navy); color: var(--canvas); border-color: var(--orange); }
.stamp { display: inline-block; background: var(--red); color: var(--canvas); border: var(--bw-thin) solid var(--canvas); outline: var(--bw-thin) solid var(--red);
  padding: 4px 10px; font-size: 15px; transform: rotate(-8deg); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; cursor: pointer;
  background: var(--canvas); color: var(--ink); border: var(--bw) solid var(--ink); box-shadow: var(--shadow-flat); font: 800 15px var(--f-display);
  font-variation-settings: 'BNCE' 0, 'INFM' 50; text-transform: uppercase; text-decoration: none; transition: none; }
.btn:hover, .btn:active { box-shadow: 0 0 0 var(--ink); transform: translate(4px, 4px); }
.btn.primary { background: var(--navy); color: var(--canvas); border: var(--bw-heavy) solid var(--orange); }

/* segmented controls */
.seg { display: inline-flex; flex-wrap: wrap; gap: 0; }
.seg button { min-height: 44px; padding: 8px 14px; background: var(--canvas); color: var(--ink); border: var(--bw-thin) solid var(--ink); margin: 0 -2px -2px 0;
  font: 800 14px var(--f-display); font-variation-settings: 'BNCE' 0, 'INFM' 50; text-transform: uppercase; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--navy); color: var(--canvas); border-color: var(--ink); position: relative; z-index: 1; }
.controls { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin: var(--s-4) 0 var(--s-3); }
.controls .grow { flex: 1; }
.controls input[type=search] { height: 44px; padding: 0 12px; background: var(--paper); border: var(--bw-thin) solid var(--ink); font: 15px var(--f-body); min-width: 200px; }

/* home */
.hero { padding: var(--s-7) 0 var(--s-5); }
.hero h1 { font-size: clamp(44px, 8vw, 104px); margin: 0 0 var(--s-4); line-height: 0.95; }
.hero p { max-width: 640px; margin: 0 0 var(--s-5); }
.picks { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-5) 0; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-4); margin: var(--s-6) 0; }
.card { border: var(--bw) solid var(--ink); box-shadow: var(--shadow-flat); padding: var(--s-3); background: var(--canvas); }
.card h3 { margin: 0 0 var(--s-2); font-size: 20px; }
.card p { margin: 0; font-size: 15px; }

/* company header */
.co-head { padding: var(--s-5) 0 var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: flex-end; }
.co-head h1 { font-size: clamp(32px, 5vw, 56px); margin: 0; }
.co-head .tick { font-family: var(--f-data); font-size: clamp(22px, 3vw, 32px); font-weight: 600; margin-left: 10px; }
.co-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-2); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border: var(--bw) solid var(--ink); margin: var(--s-3) 0 0; }
.stat { padding: 12px 14px; border-right: 1px solid var(--grey-scribble); border-bottom: 1px solid var(--grey-scribble); }
.stat .k { font-size: 13px; color: var(--muted); line-height: 1.3; }
.stat .v { font-family: var(--f-data); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat .v.soon { font-family: var(--f-body); font-size: 14px; font-weight: 400; color: var(--muted); }

/* tabs */
.tabs { display: flex; gap: 0; border-bottom: var(--bw) solid var(--ink); margin-top: var(--s-5); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 0 0 auto; padding: 12px 14px; min-height: 48px; color: var(--ink); text-decoration: none; font-size: 15px; border: var(--bw-thin) solid transparent; border-bottom: 0; }
.tabs a[aria-current="page"] { background: var(--navy); color: var(--canvas); border-color: var(--orange); }
.tabs a:hover:not([aria-current]) { text-decoration: underline; }

section.panel { padding: var(--s-4) 0 var(--s-6); }
h2.section { font-size: 28px; margin: var(--s-5) 0 var(--s-3); }
h3.sub { font-size: 20px; margin: var(--s-4) 0 var(--s-2); }

/* tables */
.tscroll { overflow-x: auto; border: var(--bw) solid var(--ink); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 9px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--grey-scribble); }
th { font-weight: 600; background: var(--canvas); position: sticky; top: 0; border-bottom: var(--bw-thin) solid var(--ink); }
th:first-child, td:first-child, table.num td:first-child, table.num th:first-child { text-align: left; position: sticky; left: 0; background: var(--canvas); z-index: 1; font-family: var(--f-body);
  border-right: var(--bw-thin) solid var(--ink); white-space: normal; min-width: 240px; max-width: 340px; }
th:first-child { z-index: 2; }
tr.total td { font-weight: 600; }
tr.total td:first-child { font-weight: 700; }
tr.group td { background: var(--paper); font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .02em; }
td.indent-1:first-child { padding-left: 26px; } td.indent-2:first-child { padding-left: 40px; }
td.neg { color: var(--red); }
table.stmt td.neg { color: var(--text); }
td.col-ttm, th.col-ttm { background: var(--paper); }
td:first-child.col-ttm { background: var(--canvas); }
tr:hover td { background: #FAFAFA; }
table.plain td:first-child, table.plain th:first-child { min-width: 0; }
table.left td, table.left th { text-align: left; }
.derived { color: var(--muted); font-size: 11px; vertical-align: super; }
.note { font-size: 14px; color: var(--muted); margin: var(--s-2) 0; }

/* summary layout */
.two { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 1024px) { .two { grid-template-columns: 3fr 2fr; } }
.desc p { margin: 0 0 var(--s-3); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
dl.facts dt { color: var(--muted); } dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.box { border: var(--bw) solid var(--ink); padding: var(--s-3); }

/* charts */
.chart { border: var(--bw) solid var(--ink); padding: var(--s-3) var(--s-3) var(--s-2); margin: var(--s-3) 0; }
.chart h4 { margin: 0 0 var(--s-2); font-size: 16px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart text { font-family: var(--f-data); font-size: 11px; fill: var(--text); }
.legend { display: flex; gap: 16px; font-size: 13px; margin-top: 4px; }
.legend i { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--ink); margin-right: 6px; vertical-align: -1px; }

/* states */
.empty { border: var(--bw) dashed var(--ink); padding: var(--s-5); margin: var(--s-4) 0; }
.soon-panel { padding: var(--s-6) 0; }
.soon-panel .stamp { font-size: 22px; margin-bottom: var(--s-4); }
.loading { padding: var(--s-7) 0; }
.site-footer { border-top: var(--bw) solid var(--ink); padding: var(--s-5) 0 var(--s-6); margin-top: var(--s-6); }
.legal { font-size: 13px; color: var(--muted); max-width: 820px; margin-top: var(--s-3); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s-3) 0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
@media (max-width: 640px) {
  th:first-child, td:first-child, table.num td:first-child, table.num th:first-child { min-width: 150px; max-width: 170px; font-size: 14px; }
  th, td { padding: 8px 10px; font-size: 14px; }
}

/* TradingView widgets */
.tv-info { margin-top: var(--s-3); border: var(--bw) solid var(--ink); padding: var(--s-2) var(--s-3); min-height: 120px; }
.tv-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 1024px) { .tv-grid { grid-template-columns: 3fr 2fr; } }
.tv-box { border: var(--bw) solid var(--ink); padding: var(--s-2); min-height: 440px; }
.tradingview-widget-copyright { font-size: 12px; color: var(--muted); margin-top: 4px; }
.tradingview-widget-copyright a { color: var(--muted); }

/* peers */
table.peers th button.sort { background: none; border: 0; padding: 0; font: 600 14px var(--f-data); color: var(--ink); cursor: pointer; white-space: nowrap; min-height: 32px; }
table.peers th button.sort:hover { text-decoration: underline; }
table.peers tr.self td { background: var(--paper); font-weight: 600; }
table.peers tr.self td:first-child { background: var(--paper); box-shadow: inset 6px 0 0 var(--orange); }
table.peers tr.median td { border-bottom: var(--bw-thin) solid var(--ink); font-style: italic; }
table.peers td.sorted { background: #FFF6EC; }
table.peers tr.self td.sorted { background: #FFE9D1; }
table.peers td.per { font-size: 12px; color: var(--muted); text-align: left; }
.peer-name { display: flex; align-items: center; gap: 8px; }
.peer-sub { font-size: 12px; color: var(--muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.peer-sub .lvl { font-style: italic; }
button.x { margin-left: auto; width: 28px; height: 28px; border: var(--bw-thin) solid var(--ink); background: var(--canvas); cursor: pointer; font: 700 16px/1 var(--f-data); padding: 0; }
button.x:hover { background: var(--red); color: var(--canvas); }
#peer-add input { height: 44px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 899px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* accounts */
.acct { display: flex; align-items: center; gap: var(--s-3); }
.acct:empty { display: none; }
.btn.small { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.acct-me { color: var(--ink); text-decoration: none; border: var(--bw-thin) solid var(--ink); padding: 6px 12px; font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-me:hover { background: var(--paper); }
@media (max-width: 640px) { .acct { width: 100%; justify-content: flex-end; } }
.tabs a .lock { margin-left: 6px; vertical-align: -1px; opacity: .7; }

.gate { position: relative; min-height: 520px; margin-top: var(--s-2); }
.gate-preview { position: absolute; inset: 0; overflow: hidden; border: var(--bw) solid var(--ink); padding: var(--s-3); filter: blur(3px); opacity: .55; pointer-events: none; user-select: none; }
.fake-row { display: flex; gap: 3%; align-items: center; height: 44px; border-bottom: 1px solid var(--grey-scribble); }
.fake-row span, .fake-row i { display: block; height: 12px; background: var(--ink); opacity: .35; }
.fake-row span { opacity: .6; }
.gate-card { position: relative; max-width: 560px; margin: var(--s-6) auto; background: var(--canvas); border: var(--bw) solid var(--ink); box-shadow: var(--shadow-flat); padding: var(--s-5) var(--s-4) var(--s-4); }
.gate-card h2 { font-size: clamp(24px, 3.4vw, 34px); margin: var(--s-3) 0 var(--s-2); }
.gate-card .stamp { position: absolute; top: -18px; left: 18px; }
.perks { margin: var(--s-3) 0; padding: 0; list-style: none; }
.perks li { padding: 6px 0 6px 28px; position: relative; border-bottom: 1px solid var(--grey-scribble); font-size: 15px; }
.perks li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 12px; background: var(--orange); border: 2px solid var(--ink); }
.gate-btns { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.member-strip { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; justify-content: space-between; border: var(--bw) solid var(--ink); box-shadow: var(--shadow-flat); padding: var(--s-4); margin-top: var(--s-6); background: var(--paper); }
.member-strip h3 { margin: 0 0 var(--s-2); font-size: 24px; }
.member-strip p { margin: 0; max-width: 620px; font-size: 15px; }
.member-strip__btns { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.auth { display: grid; grid-template-columns: 1fr; gap: var(--s-5); padding: var(--s-6) 0; }
@media (min-width: 900px) { .auth { grid-template-columns: 3fr 2fr; } }
.auth-card { border: var(--bw) solid var(--ink); box-shadow: var(--shadow-flat); padding: var(--s-5) var(--s-4); max-width: 560px; width: 100%; }
.auth-card h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 var(--s-2); overflow-wrap: anywhere; }
.auth-sub { margin: 0 0 var(--s-4); }
.auth-side { padding-top: var(--s-3); }
.auth-side h2 { font-size: 24px; margin: 0 0 var(--s-2); }
.auth-form { display: flex; flex-direction: column; gap: var(--s-2); }
.f { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 15px; margin-top: var(--s-2); }
.f input { height: 48px; padding: 0 12px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 0; font: 16px var(--f-body); color: var(--text); }
.f input:focus { border-color: var(--royal); outline: none; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.hint.err { color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-top: var(--s-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.form-msg { margin: var(--s-2) 0 0; padding: 10px 12px; border: var(--bw-thin) solid var(--ink); font-size: 15px; }
.form-msg.err { border-color: var(--red); color: var(--red); }
.form-msg.ok { border-color: var(--green); }
.btn.wide { width: 100%; margin-top: var(--s-3); }
.btn[disabled] { opacity: .6; cursor: progress; }
.danger { margin-top: var(--s-5); border-top: 1px solid var(--grey-scribble); padding-top: var(--s-3); font-size: 15px; }
.danger summary { cursor: pointer; color: var(--red); font-weight: 600; }
.danger input { height: 44px; padding: 0 12px; border: var(--bw-thin) solid var(--ink); font: 15px var(--f-body); }
