/* Ticker page: one company, every saved fact with its date.
   Header, a summary strip, then three bands in reading order (price and trading, the business,
   who owns and trades it); boxes in a band share a height. Colours come from desk.css. */
.ticker-page {
  --tk-panel: #fff;
  --tk-hair: #eef1ee;
  --tk-faint: #7b8c81;
  --tk-qqq: #9fb0a5;
  --tk-up: #1e6547;
  --tk-up-soft: #8fbfa4;
  --tk-down: #9a5b0c;
  --tk-down-soft: #e2b981;
  /* insider trade kinds: checked with the dataviz palette validator (CVD and normal-vision separation) */
  --k-buy: #0f7a49;
  --k-buyplan: #52ad7c;
  --k-noplan: #7a3f05;
  --k-plan: #c98a2e;
  --k-tax: #2f78c0;
}
.tk-form { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.tk-form input { flex: 1; max-width: 260px; height: 36px; border: 1px solid #cddbd1; border-radius: 8px; padding: 0 12px; background: #fff; text-transform: uppercase; }
.tk-form button { height: 36px; padding: 0 14px; border: 1px solid #214d36; border-radius: 8px; background: #214d36; color: #fff; font-weight: 650; }
#tk-out { margin: 0 28px 40px; max-width: 1240px; }
#tk-status { margin: 18px 28px; }
#tk-status.error { color: #8a2b00; }
.tk-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.tk-out-note { margin-top: 12px; }

/* header */
.tk-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px 32px; padding: 22px 0 14px; }
.tk-name { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.tk-name h1 { margin: 0; font-size: 30px; letter-spacing: -.5px; }
.tk-name span { color: var(--muted); font-size: 16px; }
.tk-sub { margin: 4px 0 0; color: #3d5346; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.tk-chip, .tk-link { display: inline-flex; align-items: center; padding: 6px 10px; border: 1px solid #d0dfd2; border-radius: 7px; background: #eef5ed; color: #245e42; font-size: 12px; font-weight: 600; text-decoration: none; }
button.tk-link { font: inherit; cursor: pointer; appearance: none; }
.tk-chip.event { border-color: #ecd3a8; background: #fff8ec; color: #7a4a06; }
.tk-chip.quiet { border-color: var(--line); background: #fff; color: var(--muted); font-weight: 500; }
.tk-link:hover, .tk-link:focus-visible { border-color: #9bbda2; background: #e2eee3; }
.tk-price { text-align: right; }
.tk-price b { display: block; font-size: 30px; font-weight: 650; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.tk-price span { color: var(--muted); font-size: 12px; }

/* summary strip: borders on every cell, clipped at the outer edge */
.tk-glance { background: var(--tk-panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tk-glance-in { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); margin: 0 -1px -1px 0; }
.tk-cell { display: grid; gap: 2px; align-content: start; padding: 13px 16px; border-right: 1px solid var(--tk-hair); border-bottom: 1px solid var(--tk-hair); color: inherit; text-decoration: none; min-width: 0; }
.tk-cell:hover, .tk-cell:focus-visible { background: #fafcf9; }
.tk-cell:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.tk-k { color: var(--tk-faint); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.tk-v { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 21px; font-weight: 650; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.tk-c { color: var(--muted); font-size: 12px; }
.tk-spark { width: 110px; height: 32px; flex: none; }

/* bands */
.tk-band-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 28px 0 10px; scroll-margin-top: 16px; }
.tk-band-head h2 { margin: 0; font-size: 16px; }
.tk-band-head small { color: var(--tk-faint); font-size: 12px; }
.tk-band { display: grid; gap: 14px; align-items: stretch; }
.tk-band.wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.tk-band.biz { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.tk-band.own { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.tk-stack { display: grid; gap: 14px; align-content: start; min-width: 0; }
.tk-box { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--tk-panel); }
.tk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.tk-head h3 { margin: 0; font-size: 15px; }
.tk-head small { color: var(--tk-faint); font-size: 11px; }
.tk-periods { display: inline-flex; gap: 4px; margin-left: auto; }
.tk-period { padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #526e5b; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.tk-period:hover { border-color: #8cab95; }
.tk-period.on { border-color: #214d36; background: #214d36; color: #fff; }
.tk-period:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.tk-lead { margin: 0; font-weight: 600; }
.tk-facts { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 6px 14px; margin: 0; }
.tk-facts dt { color: #5d7263; font-size: 12px; }
.tk-facts dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.tk-facts dd small { display: block; font-weight: 400; color: #6d7d72; font-size: 11px; }
.tk-returns { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.tk-returns dt { color: #5d7263; font-size: 12px; }
.tk-returns dd { margin: 0; font-size: 13px; }
.tk-returns b { margin-left: 8px; }
.tk-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; color: #3f5047; font-size: 12px; font-variant-numeric: tabular-nums; }
.tk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tk-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.tk-sw-line { display: inline-block; width: 16px; border-top: 2px solid var(--ink); }
.tk-sw-line.qqq { border-top: 1.5px dashed var(--tk-qqq); }
.k-buy { background: var(--k-buy); fill: var(--k-buy); }
.k-buyplan { background: var(--k-buyplan); fill: var(--k-buyplan); }
.k-noplan { background: var(--k-noplan); fill: var(--k-noplan); }
.k-plan { background: var(--k-plan); fill: var(--k-plan); }
.k-tax { background: var(--k-tax); fill: var(--k-tax); }

/* price chart */
.tk-chart { position: relative; }
.tk-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.tk-chart svg:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }
.tk-grid { stroke: var(--tk-hair); stroke-width: 1; }
.tk-zero { stroke: var(--line); stroke-width: 1.2; }
.tk-tick { fill: var(--tk-faint); font-size: 10.5px; }
.tk-tick.strong { fill: var(--ink); font-weight: 600; }
.tk-tick.event { fill: #7a4a06; font-weight: 600; }
.tk-ln { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.tk-ln.stock { stroke: var(--ink); stroke-width: 2; }
.tk-ln.qqq { stroke: var(--tk-qqq); stroke-width: 1.5; stroke-dasharray: 4 3; }
.tk-area { fill: var(--ink); fill-opacity: .05; stroke: none; }
.tk-dot.stock { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.tk-dot.qqq { fill: var(--tk-qqq); stroke: #fff; stroke-width: 2; }
.tk-track { stroke: var(--tk-hair); stroke-width: 1; }
.tk-cross { stroke: var(--tk-faint); stroke-width: 1; stroke-dasharray: 2 2; }
.tk-tip { position: absolute; top: 4px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(39, 51, 46, .1); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.tk-tip b { display: block; margin-bottom: 2px; }
.tk-tip-trade { color: #7a4a06; }

/* meters */
.tk-mrow { display: grid; gap: 3px; }
.tk-mtop { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.tk-mtop b { font-variant-numeric: tabular-nums; }
.tk-mrow small { color: #6d7d72; font-size: 11px; }
.tk-ins-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tk-sig { display: inline-flex; align-items: baseline; gap: 7px; color: #5d7263; font-size: 13px; font-weight: 650; }
.tk-sig::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: currentColor; transform: translateY(-1px); }
.tk-sig.buy { color: var(--tk-up); }
.tk-sig.sell { color: var(--tk-down); }
.tk-ins-amt { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tk-ins-amt small { color: #5d7263; font-size: 12px; font-weight: 400; }
.tk-new { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .05em; line-height: 15px; vertical-align: 1px; }
.tk-meter { position: relative; height: 8px; border-radius: 4px; background: var(--tk-hair); }
.tk-meter i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--ink); }
.tk-meter.soft i { background: var(--tk-up-soft); }
.tk-ref { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--tk-faint); }
.tk-scale { display: flex; justify-content: space-between; color: var(--tk-faint); font-size: 10px; }
.tk-split { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; }
.tk-split i.up { background: var(--tk-up); }
.tk-split i.down { background: var(--tk-down); }

/* Analyst price-target range: low–high track, Average above, Close below. */
.tk-targets { margin-top: 4px; }
.tk-trange { position: relative; padding: 48px 10px 0; }
.tk-ttrack { position: relative; height: 8px; border-radius: 4px; background: #d7e0d8; }
.tk-ttrack i.end { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin: -4px 0 0 -2px; border-radius: 50%; background: #9aab9d; }
.tk-ttrack i.end.right { left: auto; right: 0; margin: -4px -2px 0 0; }
.tk-ttrack i.mark { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; box-sizing: border-box; }
.tk-ttrack i.mark.avg { background: #fff; border: 2px solid var(--tk-up); }
.tk-ttrack i.mark.close { background: var(--ink); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ink); }
.tk-tcall { position: absolute; transform: translateX(-50%); min-width: 62px; max-width: 46%; padding: 4px 7px; border-radius: 6px; background: #fff; text-align: center; font-variant-numeric: tabular-nums; z-index: 1; }
.tk-tcall b { display: block; font-size: 12px; line-height: 1.2; }
.tk-tcall span { display: block; color: var(--tk-faint); font-size: 10px; line-height: 1.2; }
.tk-tcall.up { top: 0; border: 1px solid var(--tk-up); }
.tk-tcall.up::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 8px; background: var(--tk-up); transform: translateX(-50%); }
.tk-tband { position: relative; height: 44px; margin-top: 8px; }
.tk-tcall.down { top: 0; border: 1px solid var(--ink); }
.tk-tcall.down::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 8px; background: var(--ink); transform: translateX(-50%); }
.tk-tends { display: flex; justify-content: space-between; gap: 8px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tk-tends div { display: grid; gap: 1px; }
.tk-tends b { font-size: 12px; }
.tk-tends span { color: var(--tk-faint); font-size: 10px; }
.tk-tends div:last-child { text-align: right; }

/* business */
.tk-fin { width: 100%; border-collapse: collapse; font-size: 13px; }
.tk-fin th { padding: 12px 0 4px; color: var(--tk-faint); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.tk-fin tr:first-child th { padding-top: 0; }
.tk-fin th small { margin-left: 6px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.tk-fin td { padding: 4px 0; border-top: 1px solid var(--tk-hair); vertical-align: baseline; }
.tk-fin td:first-child { color: #3d5346; }
.tk-fin .tk-fv { padding-left: 12px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tk-fin .tk-fn { padding-left: 12px; color: #6d7d72; font-size: 11px; }
.tk-fs { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; }
.tk-fs i { height: 14px; border-radius: 3px; }
.tk-fs i.yes { background: var(--tk-up); }
.tk-fs i.no { border: 1.5px solid var(--tk-down); background: #fff; }
.tk-fs i.na { border: 1.5px dashed #b9c3bc; background: #fff; }
.tk-checks { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; font-size: 12px; }
.tk-checks .yes { color: #1e6547; }
.tk-checks .no { color: #8a4b00; font-weight: 600; }
.tk-checks .na { color: #8c938c; }

/* ownership */
.tk-ins { display: grid; gap: 12px; }
.tk-ins-row { display: grid; gap: 4px; overflow-wrap: anywhere; }
.tk-who { display: flex; justify-content: space-between; gap: 10px; }
.tk-who strong { margin-right: 6px; }
.tk-who span { color: #6d7d72; font-size: 12px; }
.tk-who b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-stackbar { display: flex; gap: 2px; height: 12px; min-width: 6px; }
.tk-stackbar i { display: block; min-width: 2px; }
.tk-stackbar i:first-child { border-radius: 4px 0 0 4px; }
.tk-stackbar i:last-child { border-radius: 0 4px 4px 0; }
.tk-stackbar i:only-child { border-radius: 4px; }
.tk-ins-row small { color: #6d7d72; font-size: 11px; }
.tk-people { list-style: none; margin: 0; padding: 0; }
.tk-people li { padding: 8px 0; border-top: 1px solid #eef1ee; overflow-wrap: anywhere; }
.tk-people li:first-child { border-top: 0; padding-top: 0; }
.tk-people strong { margin-right: 8px; }
.tk-people .tk-role { color: #6d7d72; font-size: 12px; }
.tk-people small { display: block; color: #6d7d72; font-size: 11px; margin-top: 2px; }
.tk-people .tk-link { margin-top: 6px; padding: 3px 8px; font-size: 11px; }
.tk-slim { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--tk-panel); font-size: 12px; }
.tk-slim b { font-size: 13px; }
.tk-slim span { color: var(--muted); }
.tk-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.tk-flow .l, .tk-flow .r { display: flex; gap: 2px; }
.tk-flow .l { justify-content: flex-end; }
.tk-flow i { display: block; height: 14px; }
.tk-flow .l i:first-child { border-radius: 4px 0 0 4px; }
.tk-flow .r i:last-child { border-radius: 0 4px 4px 0; }
.tk-flow .exited { background: var(--tk-down); }
.tk-flow .cut { background: var(--tk-down-soft); }
.tk-flow .new { background: var(--tk-up); }
.tk-flow .added { background: var(--tk-up-soft); }
.tk-flow-key { display: grid; grid-template-columns: 1fr 1fr; margin-top: 3px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.tk-flow-key div:first-child { padding-right: 8px; text-align: right; }
.tk-flow-key div:last-child { padding-left: 8px; }
.tk-db { display: grid; gap: 6px; }
.tk-db h4 { margin: 6px 0 0; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.tk-db-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; font-size: 12px; }
.tk-db-name { grid-column: 1 / -1; overflow-wrap: anywhere; }
.tk-db-name small { color: #6d7d72; font-size: 11px; }
.tk-db-val { color: #3d5346; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tk-db-bar { position: relative; height: 12px; margin: 0 5px; }
.tk-db-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; border-radius: 1px; background: var(--tk-hair); }
.tk-db-bar i { position: absolute; display: block; }
.tk-db-bar .seg { top: 5px; height: 2px; }
.tk-db-bar .before, .tk-db-bar .after { top: 2px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; }
.tk-db-bar .before { border: 1.5px solid; background: #fff; }
.up .seg, .up .after { background: var(--tk-up); }
.up .before { border-color: var(--tk-up); }
.down .seg, .down .after { background: var(--tk-down); }
.down .before { border-color: var(--tk-down); }

.tk-more { border-top: 1px solid var(--tk-hair); padding-top: 8px; }
.tk-more summary { cursor: pointer; color: var(--green); font-size: 12px; font-weight: 600; }
.tk-more summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.tk-more[open] summary { margin-bottom: 8px; }
.tk-ins-detail { display: grid; gap: 10px; font-size: 13px; overflow-wrap: anywhere; }
.tk-ins-detail small { display: block; color: #6d7d72; font-size: 11px; }
.k-report { fill: var(--ink); background: var(--ink); }
.k-stake { fill: #5c6f86; background: #5c6f86; }
.tk-report-line { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: .45; }
.tk-about { margin-top: 26px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--tk-panel); }
.tk-about summary { cursor: pointer; font-weight: 600; }
.tk-about ul { display: grid; gap: 6px; max-width: 92ch; margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.tk-about + .tk-note { margin-top: 12px; }
.tk-start { padding: 18px 0; }
.tk-chip-btn { margin: 8px 6px 0 0; padding: 5px 10px; border: 1px solid #d5e0d6; border-radius: 999px; background: #fff; color: #214d36; font-weight: 600; }
.ticker-page .insights-label { color: #6e7f72; font-size: 12px; letter-spacing: .03em; }

@media (max-width: 980px) {
  .tk-band.wide, .tk-band.biz, .tk-band.own { grid-template-columns: minmax(0, 1fr); }
  .tk-glance-in { grid-template-columns: repeat(var(--cols-mid, 2), minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .ticker-page .top .badge { display: none; }
  #tk-out { margin: 0 16px 24px; }
  .tk-title { grid-template-columns: minmax(0, 1fr); }
  .tk-price { text-align: left; }
  .tk-glance-in { grid-template-columns: minmax(0, 1fr); }
  .tk-facts { grid-template-columns: 1fr; }
  .tk-tick { font-size: 17px; }  /* the chart scales to about half size on a phone */
}

/* Early-stage research file (moved from Research, Oct 2026). */
.tk-band.early { grid-template-columns: minmax(0, 1fr); }
.tk-early h3 { margin: 14px 0 6px; font-size: 13px; }
.tk-early .tk-facts { margin: 10px 0; }
.tk-list { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.55; }
.tk-early-list h3 { margin: 12px 0 6px; font-size: 12px; color: var(--muted); }
.tk-early-list .tk-chip-btn { margin: 0 6px 6px 0; }
