/* The Insights pages: reports, studies and guides. Layout and type come from home.css and company.css. */
.ins-hub {
  padding-bottom: 0;
}
.ins-hub .doc-head {
  border-bottom: 0;
  padding-bottom: 0;
}
.ins-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  margin-bottom: 32px;
}
.ins-head p {
  max-width: 52ch;
  margin: 0;
  color: var(--ink-300);
}
.ins-head a {
  color: var(--blue-300);
}
.ins-head a:hover {
  color: var(--white);
}

/* ---------- state of a page ---------- */
.state {
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--orange);
  border-radius: 99px;
  font: 600 11px/1.5 var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
  vertical-align: middle;
}
.doc-head .notice {
  margin-top: 24px;
}

/* ---------- tables ---------- */
.scroll {
  overflow-x: auto;
}
.rank {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.rank caption {
  padding-bottom: 12px;
  text-align: left;
  font-size: 13px;
  color: var(--ink-400);
}
.rank th,
.rank td {
  padding: 12px 16px 12px 0;
  border-top: 1px solid var(--ink-800);
  text-align: left;
  font-weight: 400;
  white-space: nowrap;
}
.rank thead th {
  border-top: 0;
  font: 600 12px/1.4 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.rank tbody th {
  color: var(--white);
}
.rank tbody th b {
  margin: 0 8px;
  font-weight: 700;
}
.rank tbody th span:not(.plogo, .state) {
  color: var(--ink-400);
}
.rank tbody th .plogo,
.tickers .plogo {
  position: relative;
  vertical-align: middle;
  overflow: hidden;
}
/* Price and valuation of a stock: a second line under its name, in line with the ticker. */
.rank .val {
  display: block;
  margin: 6px 0 0 32px;
  font: 12px/1.4 var(--mono);
  color: var(--ink-400);
  /* It may wrap, so it never pushes the other columns out of the table. */
  white-space: normal;
}
.rank .val span {
  white-space: nowrap;
}
.rank .val b {
  margin: 0;
  font-weight: 400;
  color: var(--ink-200);
}
.rank .num {
  text-align: right;
  font-family: var(--mono);
  font-size: 14px;
}
.rank td:last-child,
.rank th:last-child {
  padding-right: 12px;
}
/* Room on both sides, so the background of a second row does not end at its text. */
.rank td:first-child,
.rank th:first-child {
  padding-left: 12px;
}
.rank td code,
.rank th code {
  color: var(--white);
}
.pos {
  color: var(--green-300);
}
.neg {
  color: var(--red-300);
}
.trend {
  display: inline-block;
  min-width: 84px;
  color: var(--ink-300);
}
.trend.rising {
  color: var(--green-300);
}
.trend.falling {
  color: var(--red-300);
}
.spark {
  vertical-align: middle;
  fill: none;
  stroke: var(--blue-300);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* How to read /earnings-sentiment: the unit above a term, reports on the scale of the sentiment
   change with the band that reads as "about the same", and the key under it. */
/* The card ends with its key and does not stretch to the height of the terms beside it. */
.es-card {
  align-self: start;
}
.es-unit {
  display: block;
  margin-bottom: 4px;
  font: 12px/1.4 var(--mono);
  font-weight: 400;
  color: var(--ink-400);
}
.es-scale,
.es-key {
  margin: 0;
  padding: 0;
  list-style: none;
}
.es-scale {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}
.es-scale li {
  display: grid;
  grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 6.5em;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-300);
}
.es-name {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.es-name > span:last-child {
  min-width: 0;
}
.es-name b {
  display: block;
  color: var(--white);
}
.es-name small,
.es-value small {
  display: block;
  overflow: hidden;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink-400);
}
.es-value {
  text-align: right;
  font-family: var(--mono);
}
.es-value small {
  font-family: var(--sans);
}
.es-track {
  position: relative;
  height: 2px;
  background: var(--ink-700);
}
.es-track::before {
  content: '';
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: calc(50% - var(--band));
  width: calc(2 * var(--band));
  background: rgb(255 255 255 / 0.07);
}
/* The bar from the middle to the dot. */
.es-track u {
  position: absolute;
  top: -2px;
  left: var(--from);
  width: var(--w);
  height: 6px;
  border-radius: 3px;
  background: var(--ink-600);
}
.es-track u.pos {
  background: var(--green-300);
}
.es-track u.neg {
  background: var(--red-300);
}
.es-track i {
  position: absolute;
  top: 50%;
  left: var(--at);
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--ink-300);
}
.es-track i.pos,
.es-key i.pos {
  background: var(--green-300);
}
.es-track i.neg,
.es-key i.neg {
  background: var(--red-300);
}
.es-ticks {
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
  font: 12px/1.4 var(--mono);
  color: var(--ink-400);
}
.es-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-800);
  font-size: 14px;
  color: var(--ink-300);
}
.es-key i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ink-300);
}
.es-key b {
  margin-right: 6px;
  font: 13px/1.4 var(--mono);
  font-weight: 400;
  color: var(--white);
}
.es-sum {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--ink-300);
}
/* The scale builds when its section comes on screen (nav.js marks it `in`): a row fades in, its
   bar grows from the middle and its dot slides out to its place, one row after the other.
   Without the script (`.js`) nothing is held back. */
@media (prefers-reduced-motion: no-preference) {
  .js .rv .es-scale li {
    opacity: 0;
    transition: opacity 0.4s ease-out calc(var(--i, 0) * 110ms);
  }
  .js .rv .es-track u {
    transform: scaleX(0);
    transition: transform 0.8s var(--ease) calc(0.15s + var(--i, 0) * 110ms);
  }
  .js .rv .es-track u.pos {
    transform-origin: left center;
  }
  .js .rv .es-track u.neg {
    transform-origin: right center;
  }
  .js .rv .es-track i {
    left: 50%;
    transition: left 0.8s var(--ease) calc(0.15s + var(--i, 0) * 110ms);
  }
  .js .rv.in .es-scale li {
    opacity: 1;
  }
  .js .rv.in .es-track u {
    transform: none;
  }
  .js .rv.in .es-track i {
    left: var(--at);
  }
}
.es-foot,
.es-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-300);
}
/* The closes after a report (/earnings-sentiment): a line over a faint area, a dot on the last. */
.eline {
  vertical-align: middle;
  color: var(--ink-400);
}
.eline.pos {
  color: var(--green-300);
}
.eline.neg {
  color: var(--red-300);
}
.eline polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eline circle {
  fill: currentColor;
}
.doc-head h1 .plogo {
  vertical-align: middle;
}
.rank tbody th a:hover b {
  text-decoration: underline;
}
.ins-list tbody th a {
  font-weight: 600;
  border-bottom: 1px solid var(--ink-600);
}
.ins-list tbody th a:hover {
  border-color: var(--white);
}
.tickers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tickers b {
  margin-right: 10px;
  font-weight: 600;
  color: var(--white);
}

/* ---------- cards of studies and guides ---------- */
.ins-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ins-card {
  display: block;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: var(--ink-900);
  color: var(--ink-300);
  transition:
    border-color var(--dur),
    transform var(--dur) var(--ease);
}
.ins-card:hover {
  border-color: var(--blue-300);
  transform: translateY(-2px);
}
.ins-card .meta {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-400);
}
.ins-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  color: var(--white);
}
.ins-card p:last-child {
  margin: 0;
  font-size: 15px;
}

/* ---------- the method of the reports ---------- */
.ins-method {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px 48px;
  margin: 0;
}
.ins-method div {
  padding-top: 16px;
  border-top: 1px solid var(--ink-600);
}
.ins-method dt {
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--white);
}
.ins-method dd {
  margin: 0;
  color: var(--ink-300);
}

/* ---------- the short version at the top of a page ---------- */
.ins-sum {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px 48px;
  margin-top: 32px;
  padding: 28px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: var(--ink-900);
}
.ins-sum h2 {
  margin: 0 0 12px;
  font: 600 12px/1.4 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.ins-sum ul {
  margin: 0;
  padding-left: 18px;
}
.ins-sum li + li {
  margin-top: 8px;
}
.ins-sum li::marker {
  color: var(--orange);
}
.ins-sum b {
  color: var(--white);
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  align-content: start;
  margin: 0;
}
.facts dt {
  font-size: 13px;
  color: var(--ink-400);
}
.facts dd {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* ---------- the text column ---------- */
.prose.wide {
  max-width: none;
}
.prose.wide :is(p, ul, ol, h2, h3) {
  max-width: 68ch;
}
.prose.wide h3 {
  margin-top: 40px;
}
.prose.wide :is(.scroll, .chart, .swarm, pre, .calls, .qa) {
  margin: 24px 0;
}
.prose .qa h3 {
  max-width: none;
  margin: 0;
}
.prose pre {
  border: 1px solid var(--ink-700);
  border-radius: var(--r-md);
  background: var(--ink-900);
}
.prose :not(pre) > code {
  color: var(--white);
}
.calls {
  max-width: none !important;
  padding: 0 !important;
  list-style: none;
}
.calls li {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--ink-800);
}
.calls code {
  overflow-wrap: anywhere;
}
.calls span {
  font-size: 14px;
  color: var(--ink-400);
}
.next {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-600);
}
.next a {
  color: var(--blue-300);
}
.next a:hover {
  color: var(--white);
}

/* ---------- a small price chart per stock ---------- */
.prices-cap {
  max-width: none !important;
  font-size: 13px;
  color: var(--ink-400);
}
.prices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.price {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-md);
  background: var(--ink-900);
}
.price figcaption {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.price figcaption b {
  color: var(--white);
}
.price figcaption span {
  font-family: var(--mono);
}
.price svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 8px 0 6px;
}
.price path {
  fill: none;
  stroke: var(--ink-300);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.price circle {
  fill: var(--ink-300);
}
.price path.pos {
  stroke: var(--green-300);
}
.price path.neg {
  stroke: var(--red-300);
}
.price circle.pos {
  fill: var(--green-300);
}
.price circle.neg {
  fill: var(--red-300);
}
.price .vol rect {
  fill: var(--ink-600);
}
.price p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  font: 11px/1.3 var(--mono);
  color: var(--ink-400);
}
.price p span:last-child {
  text-align: right;
}

/* ---------- charts ---------- */
.chart {
  padding: 20px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: var(--ink-900);
}
.chart svg,
.swarm {
  display: block;
  width: 100%;
  height: auto;
}
.chart .grid,
.swarm .grid {
  stroke: var(--ink-700);
  stroke-width: 1;
}
.chart .tick,
.swarm .tick {
  fill: var(--ink-400);
  font: 11px var(--mono);
}
.chart .ref {
  stroke: var(--ink-400);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.chart path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* The points of the second plot (a price under a score). */
.chart circle {
  fill: var(--orange);
}
.chart circle.s0 {
  fill: var(--blue-300);
}
/* A series differs in colour and in its dashes, so the lines can be told apart without colour. */
.chart path.s0 {
  stroke: var(--blue-300);
}
.chart path.s1 {
  stroke: var(--orange);
  stroke-dasharray: 8 4;
}
.chart path.s2 {
  stroke: var(--red-300);
  stroke-dasharray: 2 5;
}
.chart path.s3 {
  stroke: var(--white);
  stroke-dasharray: 12 4 2 4;
}
.chart path.s4 {
  stroke: var(--green-300);
  stroke-dasharray: 1 4;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ink-200);
  max-width: none !important;
}
.legend li::before {
  content: '';
  display: inline-block;
  width: 18px;
  margin-right: 8px;
  border-top: 2px solid var(--blue-300);
  vertical-align: middle;
}
.legend .s1::before {
  border-top: 2px dashed var(--orange);
}
.legend .s2::before {
  border-top: 2px dotted var(--red-300);
}
.legend .s3::before {
  border-top: 2px dashed var(--white);
}
.legend .s4::before {
  border-top: 2px dotted var(--green-300);
}
.chart figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-400);
}
.chart-data {
  margin-top: 12px;
  font-size: 13px;
}
.chart-data summary {
  cursor: pointer;
  color: var(--blue-300);
}
.chart-data table {
  margin-top: 12px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.chart-data :is(th, td) {
  padding: 4px 20px 4px 0;
  text-align: left;
  font-weight: 400;
}
.chart-data .num {
  text-align: right;
  font-family: var(--mono);
}
.swarm circle {
  fill: var(--ink-400);
}
.swarm circle.pos {
  fill: var(--green-300);
}
.swarm circle.neg {
  fill: var(--red-300);
}

@media (max-width: 760px) {
  .ins-sum {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .ins-cards {
    grid-template-columns: 1fr;
  }
}
/* A chart is drawn 720 units wide. On a phone that is a third of it, so the labels grow. */
@media (max-width: 560px) {
  .chart .tick,
  .swarm .tick {
    font-size: 22px;
  }
}

/* ---------- the page of one stock (apps/web/src/site-stock.ts) ---------- */

.facts.glance {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 24px 32px;
  padding: 28px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: var(--ink-900);
}
/* On a phone two columns, so the grid is not a list of twelve rows. */
@media (max-width: 600px) {
  .facts.glance {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    padding: 20px;
  }
}
.prose.wide p + .facts.glance {
  margin-top: 20px;
}
.facts small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-400);
}
.src-cards {
  display: grid;
  margin-top: 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.src-card {
  padding: 20px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: var(--ink-900);
}
.src-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.prose.wide .src-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 17px;
}
.src-card h3 .bi {
  flex: none;
  width: 18px;
  height: 18px;
}
.lean {
  padding: 2px 10px;
  border: 1px solid var(--ink-600);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-200);
}
.lean.pos {
  border-color: var(--green);
  color: var(--green-300);
}
.lean.neg {
  border-color: var(--red);
  color: var(--red-300);
}
.src-nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.src-nums dt {
  font-size: 12px;
  color: var(--ink-400);
}
.src-nums dd {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}
/* A source's mentions split into bullish, neutral and bearish; the note below says it in words. */
.split {
  display: flex;
  gap: 2px;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
}
.split i {
  min-width: 2px;
}
.split .pos {
  background: var(--green-300);
}
.split .neu {
  background: var(--ink-600);
}
.split .neg {
  background: var(--red-300);
}
.prose.wide .src-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-400);
}
/* One bar per row on the scale from 0 to 100%: the analysts' buy share, each source's bullish share. */
.prose.wide .bars {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.bars li {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr 48px;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}
.bars i {
  height: 8px;
  border-radius: 4px;
  background: var(--ink-800);
}
.bars u {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: 4px;
  background: var(--blue-300);
}
.bars li:first-child u {
  background: var(--white);
}
.bars b {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}
.prose.wide .split + .bars {
  margin-top: 28px;
}
#analysts .split {
  max-width: 480px;
  margin-top: 20px;
}
.prose.wide .nearby {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.prose.wide .nearby a {
  display: grid;
  grid-template-columns: 24px 64px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-sm);
  background: var(--ink-900);
  font-size: 14px;
  text-decoration: none;
}
/* The tiles are a grid: the space between list items of the text does not apply. */
.prose .nearby li + li {
  margin-top: 0;
}
.nearby a:hover {
  border-color: var(--ink-400);
}
.nearby span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-300);
}
.prose.wide .src-top {
  margin: 14px 0 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--ink-800);
}
.prose.wide .src-top p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-200);
  overflow-wrap: anywhere;
}
.src-top footer {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-400);
}
.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}
.prose.wide a.tile {
  text-decoration: none;
}
/* The logo at the left over both lines, the symbol and under it the score. */
.tile {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  column-gap: 7px;
  width: 100px;
  height: 56px;
  padding: 0 10px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-sm);
  background: var(--ink-850);
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
}
.tile.m {
  width: 112px;
  height: 72px;
}
.tile.l {
  width: 156px;
  height: 96px;
  font-size: 16px;
}
.tile .plogo {
  grid-row: span 2;
  align-self: center;
  width: 20px;
  height: 20px;
}
.tile.l .plogo {
  width: 28px;
  height: 28px;
}
.tile b {
  color: var(--white);
}
.tile span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-300);
}
.tile.pos {
  border-color: #16a34a66;
  background: #16a34a2e;
}
.tile.neg {
  border-color: #e3000466;
  background: #e300042e;
}
a.tile:hover {
  border-color: var(--white);
}
.tile[aria-current] {
  outline: 2px solid var(--blue-300);
  outline-offset: 1px;
}

/* ---------- data pages: rankings, market sentiment, search (apps/web/src/site-pages.ts) ---------- */

.data .muted {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-400);
}
.data .lead a {
  text-decoration: underline;
  text-decoration-color: var(--ink-600);
  text-underline-offset: 3px;
}
.data .lead a:hover {
  text-decoration-color: currentColor;
}
.data-body {
  padding-top: 32px;
}
.data-body > .notice {
  max-width: 720px;
}
/* The status page: the state of the API and of each source. */
.data .health.ok {
  color: var(--green-300);
}
.data .health.degraded {
  color: var(--orange);
}
.data .health.down {
  color: var(--red-300);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.pills + nav .pills,
nav + nav > .pills {
  margin-top: 12px;
}
.pills a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--ink-700);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-200);
}
.pills a:hover {
  border-color: var(--ink-400);
  color: var(--white);
}
.pills a[aria-current] {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}
.data .sym {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--white);
}
.data .sym a {
  border-bottom: 1px solid var(--ink-600);
}
.data .sym a:hover {
  border-color: var(--white);
}
.data .rank .name {
  min-width: 160px;
  white-space: normal;
  color: var(--ink-200);
}
.data .lsp-disclaimer {
  max-width: 720px;
  margin-top: 48px;
  font-size: 13px;
  color: var(--ink-400);
}
.data .search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-top: 24px;
}
.data .search .grow {
  flex: 1 1 240px;
  max-width: 480px;
}
.data .search label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--ink-400);
}
.data .search input,
.data .search select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-sm);
  background: var(--ink-900);
  color: var(--white);
  font: inherit;
}
.data .search :is(input, select):focus-visible,
.pills a:focus-visible {
  outline: 2px solid var(--blue-300);
  outline-offset: 2px;
}
.data .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.data .card {
  padding: 24px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: var(--ink-900);
}
.data .card h2 {
  font-size: 18px;
}
svg.gauge {
  display: block;
  width: 100%;
  max-width: 240px;
  margin: 16px auto 0;
}
svg.gauge path {
  fill: none;
  stroke-width: 16;
}
svg.gauge .s0 {
  stroke: var(--red-300);
}
svg.gauge .s1 {
  stroke: var(--orange);
}
svg.gauge .s2 {
  stroke: var(--ink-400);
}
svg.gauge .s3 {
  stroke: var(--green-300);
  opacity: 0.55;
}
svg.gauge .s4 {
  stroke: var(--green-300);
}
svg.gauge line {
  stroke: var(--white);
  stroke-width: 4;
  stroke-linecap: round;
}
svg.gauge circle {
  fill: var(--white);
}
.reading {
  margin: 4px 0 20px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-300);
}
.reading strong {
  display: block;
  font-size: 32px;
  line-height: 1.2;
  color: var(--white);
}
.data .reading .muted {
  font-size: inherit;
}
.figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
  margin: 0 0 16px;
}
.figures dt {
  font-size: 13px;
  color: var(--ink-400);
}
.figures dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.data .card table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.data .card caption {
  padding-bottom: 8px;
  text-align: left;
}
.data .card :is(th, td) {
  padding: 6px 12px 6px 0;
  border-top: 1px solid var(--ink-800);
  text-align: left;
  font-weight: 400;
}
.data .card thead th {
  border-top: 0;
  font-size: 12px;
  color: var(--ink-400);
}
.data .card .num {
  padding-right: 0;
  text-align: right;
}
.data .card td .muted {
  margin: 0;
}
.bar {
  display: block;
  height: 6px;
  min-width: 2px;
  margin-bottom: 4px;
  border-radius: 2px;
  background: var(--blue-300);
}
/* A ranking: the table, and beside it the sectors and countries of its rows. */
.rank-grid {
  display: grid;
  gap: 40px;
}
.rank-side {
  display: grid;
  gap: 16px;
}
.rank-side > .muted {
  margin: 0;
}
@media (min-width: 640px) {
  .rank-side {
    grid-template-columns: 1fr 1fr;
  }
  .rank-side > .muted {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1100px) {
  .rank-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }
  .rank-side {
    position: sticky;
    top: 88px;
    grid-template-columns: 1fr;
  }
}
.shares {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.shares li {
  display: grid;
  grid-template-columns: 1fr auto 40px;
  gap: 6px 12px;
  align-items: baseline;
}
.shares li .muted {
  margin: 0;
}
.shares b {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}
.shares .bar {
  grid-column: 1 / -1;
  margin: 0;
}
/* The bullish share from the left in green, the bearish share from the right in red. */
.mix {
  display: inline-block;
  width: 48px;
  height: 6px;
  margin-right: 10px;
  border-radius: 3px;
  vertical-align: middle;
  background: linear-gradient(
    to right,
    var(--green-300) 0 var(--up),
    var(--ink-700) var(--up) calc(100% - var(--down)),
    var(--red-300) calc(100% - var(--down)) 100%
  );
}
.data .rank .spark {
  margin-left: 4px;
}
/* A line with its drift (sparkline() with a fill): green up, red down, grey flat, a shaded area
   below it and a dot on the last day. */
.spark:is(.up, .down, .flat) {
  overflow: visible;
  stroke: currentColor;
}
.spark.up,
.arrow.up {
  color: var(--green-300);
}
.spark.down,
.arrow.down {
  color: var(--red-300);
}
.spark.flat,
.arrow.flat {
  color: var(--ink-400);
}
.spark .area {
  stroke: none;
}
.spark stop {
  stop-color: currentColor;
  stop-opacity: 0.35;
}
.spark stop + stop {
  stop-opacity: 0;
}
.spark circle {
  fill: currentColor;
  stroke: none;
}
.arrow {
  display: inline-block;
  margin-left: 4px;
  font-family: var(--sans);
  font-weight: 700;
}
/* The mentions, and under them the subreddits, sources or channels they came from. */
.rank .num small {
  display: block;
  font-size: 12px;
  color: var(--ink-400);
}
/* The bearish share grows left of the centre line in red, the bullish share right in green; a
   share of 100% fills its half. The tooltip shows the three shares on hover; it ends at the bar's
   right edge, because the bar is the last column a phone shows. The bar takes no tab stop: its
   label holds the same figures. */
.sbar {
  position: relative;
  display: inline-block;
  width: 96px;
  height: 8px;
  border-radius: 4px;
  vertical-align: middle;
  background:
    linear-gradient(var(--ink-400), var(--ink-400)) center / 1px 100% no-repeat,
    var(--ink-700);
}
.sbar i {
  position: absolute;
  top: 0;
  bottom: 0;
}
.sbar .dn {
  right: 50%;
  width: calc(var(--down) / 2);
  border-radius: 4px 0 0 4px;
  background: var(--red-300);
}
.sbar .up {
  left: 50%;
  width: calc(var(--up) / 2);
  border-radius: 0 4px 4px 0;
  background: var(--green-300);
}
.sbar::after {
  content: attr(data-tip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 2;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  background: var(--ink-950);
  box-shadow: 0 0 0 1px var(--ink-700);
  font: 500 12px/1.4 var(--sans);
  color: var(--white);
  white-space: nowrap;
  pointer-events: none;
  /* Hidden it takes no room, so it widens no table on a phone. */
  display: none;
}
.sbar:hover::after {
  display: block;
}
/* The bullish and bearish share under the bar, for a phone (see the media query below). */
.sbar-n {
  display: none;
}
/* Read by a screen reader, not shown. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* How to read this data: the terms are radio buttons, and the checked one picks its card. */
.ex-head {
  display: grid;
  gap: 12px 48px;
  margin-bottom: 32px;
}
.ex-head p {
  max-width: 560px;
  color: var(--ink-300);
}
/* Fixed, so that focusing a radio (a click on its term) never scrolls the page to the radio. */
.ex-r {
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}
.ex-grid {
  display: grid;
  gap: 24px 48px;
}
.ex-term {
  position: relative;
  display: block;
  padding: 20px 0;
  border-top: 1px solid var(--ink-700);
  cursor: pointer;
}
.ex-term small {
  display: block;
  font: 12px/1.4 var(--mono);
  color: var(--ink-400);
}
.ex-term b {
  display: block;
  margin: 4px 0;
  font-size: 17px;
  color: var(--ink-300);
}
.ex-term > span {
  font-size: 14px;
  color: var(--ink-400);
}
/* The active term: a light line that fills its rule, and brighter text. */
.ex-term::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
}
#ex-buzz:checked ~ .ex-grid .ex-t-buzz b,
#ex-mentions:checked ~ .ex-grid .ex-t-mentions b,
#ex-sentiment:checked ~ .ex-grid .ex-t-sentiment b,
#ex-trend:checked ~ .ex-grid .ex-t-trend b {
  color: var(--white);
}
#ex-buzz:checked ~ .ex-grid .ex-t-buzz > span,
#ex-mentions:checked ~ .ex-grid .ex-t-mentions > span,
#ex-sentiment:checked ~ .ex-grid .ex-t-sentiment > span,
#ex-trend:checked ~ .ex-grid .ex-t-trend > span {
  color: var(--ink-200);
}
#ex-buzz:checked ~ .ex-grid .ex-t-buzz::before,
#ex-mentions:checked ~ .ex-grid .ex-t-mentions::before,
#ex-sentiment:checked ~ .ex-grid .ex-t-sentiment::before,
#ex-trend:checked ~ .ex-grid .ex-t-trend::before {
  transform: none;
}
#ex-buzz:focus-visible ~ .ex-grid .ex-t-buzz,
#ex-mentions:focus-visible ~ .ex-grid .ex-t-mentions,
#ex-sentiment:focus-visible ~ .ex-grid .ex-t-sentiment,
#ex-trend:focus-visible ~ .ex-grid .ex-t-trend {
  outline: 2px solid var(--blue-300);
  outline-offset: 4px;
}
.ex-card {
  align-self: start;
  padding: 24px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: var(--ink-900);
}
.ex-p {
  display: none;
}
#ex-buzz:checked ~ .ex-grid .ex-p-buzz,
#ex-mentions:checked ~ .ex-grid .ex-p-mentions,
#ex-sentiment:checked ~ .ex-grid .ex-p-sentiment,
#ex-trend:checked ~ .ex-grid .ex-p-trend {
  display: block;
}
.ex-rows {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}
.ex-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 88px;
  gap: 12px;
  align-items: center;
}
.ex-who {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  color: var(--ink-400);
}
.ex-who .plogo {
  position: relative;
  overflow: hidden;
  vertical-align: middle;
}
.ex-who b {
  margin: 0 6px 0 8px;
  color: var(--white);
}
/* Buzz: a dot on a scale of 0 to 100 (`--x`), the normal level 50 dashed, the high band shaded.
   The track is a container, so the dot can slide in from its start (`m-slide-to`). */
.ex-track {
  position: relative;
  container-type: inline-size;
  grid-column: 2 / -1;
  height: 2px;
  margin-top: 18px;
  background: var(--ink-700);
}
.ex-track::before {
  content: '';
  position: absolute;
  top: -14px;
  bottom: -6px;
  left: 50%;
  border-left: 1px dashed var(--ink-600);
}
.ex-track::after {
  content: '';
  position: absolute;
  top: -14px;
  right: 0;
  bottom: -6px;
  left: var(--hot);
  background: var(--ink-800);
  opacity: 0.6;
}
.ex-track i {
  position: absolute;
  top: -5px;
  z-index: 1;
  width: 12px;
  left: calc(var(--x) * 1%);
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--blue-300);
}
.ex-track b {
  position: absolute;
  bottom: 14px;
  left: 50%;
  font: 600 12px/1 var(--mono);
  color: var(--white);
  transform: translateX(-50%);
}
/* Mentions: a bar on a log scale, the count and its spread on the right. */
.ex-group {
  margin: 0 0 12px;
  font-size: 15px;
}
.ex-group span {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-400);
}
.ex-group ~ .ex-group {
  margin-top: 24px;
}
.ex-log {
  height: 8px;
  border-radius: 4px;
  background: var(--ink-800);
}
.ex-log i {
  display: block;
  min-width: 2px;
  height: 100%;
  border-radius: 4px;
  background: var(--orange);
}
.ex-rows .num {
  text-align: right;
  font: 14px/1.3 var(--mono);
  color: var(--white);
}
.ex-rows .num small {
  display: block;
  font-size: 12px;
  color: var(--ink-400);
}
.ex-axis {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 12px 0 0;
  font: 11px/1 var(--mono);
  color: var(--ink-400);
}
/* The axis lies under the bars, in the columns of the rows. */
.ex-scale {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 88px;
  gap: 12px;
}
.ex-scale .ex-axis {
  grid-column: 2;
}
/* Sentiment: the table's bar, wider, with its three shares under it. */
.ex-bar {
  grid-column: 2 / -1;
}
.ex-bar .sbar {
  width: 100%;
}
.ex-bar small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-400);
}
/* Trend: the entity above, a wide line with its first and last day below. */
.ex-trend li {
  grid-template-columns: 1fr;
  gap: 6px;
}
/* The name gives way to a long ticker line; the arrow after it always stays. */
.ex-trend .ex-who {
  display: flex;
  align-items: center;
}
.ex-trend .ex-who > * {
  flex: none;
}
.ex-trend .ex-who > span:not(.plogo, .arrow) {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ex-line .spark {
  display: block;
  width: 100%;
  height: auto;
}
.ex-dates {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font: 11px/1 var(--mono);
  color: var(--ink-400);
}
.ex-cap {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-400);
}
.ex-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.ex-legend > span {
  white-space: nowrap;
}
.ex-legend .arrow {
  margin: 0 2px 0 0;
}
/* On a phone the entity takes a line of its own above its figure. */
@media (max-width: 600px) {
  .ex-rows li,
  .ex-scale {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 8px 12px;
  }
  .ex-who {
    grid-column: 1 / -1;
  }
  .ex-track,
  .ex-bar,
  .ex-line {
    grid-column: 1 / -1;
  }
  .ex-scale .ex-axis {
    grid-column: 1;
  }
}
@media (min-width: 900px) {
  .ex-head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .ex-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
}
/* The stock takes the width the figures leave, and a long name ends in an ellipsis. */
.rank.top tbody th {
  width: 100%;
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.read .cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.read {
  margin-top: 72px;
}
.read > h2 {
  margin-bottom: 24px;
}
.read .card h3 {
  font-size: 16px;
}
.read .card p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-300);
}
.read .qa {
  max-width: 760px;
}
/* The filter of the table at /stocks needs the script (nav.js), so it shows only with it. */
.data .filter {
  display: none;
}
.js .data .filter {
  display: flex;
}
.data .filter output {
  display: block;
  min-height: 20px;
}
/* Popular stocks of a source and what Polymarket prices: a grid of cards, 1, 2 or 3 columns. */
.pop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px) {
  .pop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .pop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.pop .ex-head a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--ink-600);
  text-underline-offset: 3px;
}
.pop-card {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: var(--ink-900);
  color: var(--white);
}
.pop-card:hover {
  border-color: var(--ink-400);
}
.pop-card:focus-visible {
  outline: 2px solid var(--blue-300);
  outline-offset: 2px;
}
:is(.pop-card, .pm-top) .plogo {
  position: relative;
  overflow: hidden;
}
:is(.pop-card, .pm-top) :is(b, small) {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
:is(.pop-card, .pm-top) > :not(.plogo) {
  min-width: 0;
}
:is(.pop-card, .pm-top) small {
  margin-top: 2px;
  font: 13px/1.3 var(--mono);
  color: var(--ink-400);
}
/* A card of Polymarket: the stock and its mood, two markets, and the pulse in a strip below. It
   clips nothing, so its lit edge (below) can lie on its border; a long word breaks instead. */
.pm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: var(--ink-900);
  overflow-wrap: anywhere;
}
.pm-top {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 16px 0;
}
.pm-top a {
  flex: 1;
  color: var(--white);
}
.pm-top small {
  font-family: var(--sans);
}
.pm-mood {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ink-800);
  font-size: 12px;
  color: var(--ink-300);
}
.pm-markets {
  display: grid;
  flex: 1;
  gap: 16px;
  margin: 0;
  padding: 16px;
  list-style: none;
}
.pm-markets p {
  font-size: 14px;
  color: var(--ink-200);
}
.pm-price {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.pm-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--ink-700);
}
.pm-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--orange);
}
.pm-price b {
  font: 600 13px/1 var(--mono);
  color: var(--white);
  white-space: nowrap;
}
.pm-markets small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-400);
}
/* Its rule is a line of its own on the border's place, so it can draw itself. */
.pm-foot {
  position: relative;
  padding: 10px 16px;
  border-top: 1px solid transparent;
  border-radius: 0 0 calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px);
  background: var(--ink-850);
  font-size: 12px;
  color: var(--ink-400);
}
.pm-foot::before,
.ex-axis::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink-700);
}
.pm-foot::before {
  top: -1px;
}
/* The axis's hairline sits in the gap above its labels. */
.ex-axis::before {
  top: -6px;
}

/* ---------- bands of the ranking pages (D-458) ----------
   Each zone of a ranking lies on a band of its own tone across the full width: the head and the
   table on a dotted dark grey (#101010), the picks (popular stocks, Polymarket) on charcoal, "How
   to read this data" on a light grey with a white card, the closing sections on charcoal again. A
   1px line marks each change, and a card is one step lighter than its band. The band is the
   section's own shadow, clipped to its height, so the markup and the `.rv` blocks of the motion
   stay as they are. Only `.ranking` (rankingsPage) has bands. */
.doc.ranking {
  background:
    radial-gradient(circle, #252525 1px, transparent 1.2px) 0 0/24px 24px,
    #101010;
}
.ranking .pills a:not(:hover, [aria-current]) {
  border-color: var(--ink-600);
}
.ranking .rank-grid {
  margin-bottom: 72px;
}
/* A period or asset link lands on the card, below the sticky header. */
.rank-card {
  scroll-margin-top: 88px;
}
/* Air between the answer sentence and the table card. */
.ranking .lead + .rank-grid {
  margin-top: 40px;
}
/* The table and the shares lie on cards one step lighter than the band. On the lighter card the
   muted text of the table moves one step up (AA on its striped rows), and its lines too. */
.ranking .rank-grid > .rank-card,
.ranking .rank-side .card {
  border: 1px solid #333;
  background: var(--ink-800);
}
.ranking .rank-grid > .rank-card {
  --ink-400: var(--ink-300);
  min-width: 0;
  border-radius: var(--r-lg);
}
.ranking .rank-card > .scroll {
  padding: 0 16px 16px;
}
/* The card's head: the title and the day of the data on the left, the asset type and the period
   as segmented controls on the right; on a phone they wrap below the title. */
.rank-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #333;
}
.rank-name {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  align-items: baseline;
  min-width: 0;
}
.rank-name h2 {
  margin: 0;
  font: 400 20px/1.3 var(--sans);
  letter-spacing: -0.01em;
}
.rank-date {
  font-size: 13px;
  color: var(--ink-400);
}
.rank-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}
/* A segmented control: links in a rounded tray; the active one is a raised chip. */
.rank-seg {
  max-width: 100%;
  overflow-x: auto;
}
.rank-seg ul {
  display: flex;
  gap: 2px;
  width: max-content;
  margin: 0;
  padding: 3px;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  background: var(--ink-850);
  list-style: none;
}
.rank-seg a {
  display: block;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  white-space: nowrap;
  color: var(--ink-400);
}
.rank-seg a:hover {
  color: var(--white);
}
.rank-seg a[aria-current] {
  border-color: #4a4a4a;
  background: var(--ink-700);
  color: var(--white);
}
/* Inside the tray, so the scrolling control does not cut the ring. */
.rank-seg a:focus-visible {
  outline: 2px solid var(--blue-300);
  outline-offset: -2px;
}
/* The column names in sentence case; four of them explain themselves (dotted, a link to "How to
   read this data" with a title). */
.rank-card .rank thead th {
  font: 400 13px/1.4 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-400);
}
.rank-card .col-term {
  color: inherit;
  text-decoration: underline dotted;
  text-decoration-color: var(--ink-400);
  text-underline-offset: 4px;
}
.rank-card .col-term:hover {
  color: var(--white);
}
.rank-card .col-term:focus-visible {
  outline: 2px solid var(--blue-300);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .rank-strip {
    flex-direction: column;
    align-items: stretch;
  }
  .rank-name h2 {
    font-size: 18px;
  }
  .rank-controls {
    flex-direction: column;
    align-items: flex-start;
  }
}
.ranking .rank-grid .rank :is(th, td) {
  border-top-color: #333;
}
.ranking .rank-grid .sbar {
  background:
    linear-gradient(var(--ink-400), var(--ink-400)) center / 1px 100% no-repeat,
    #454545;
}
.ranking .rank.top tbody tr:hover > * {
  box-shadow:
    inset 0 1px #555,
    inset 0 -1px #555;
}
.ranking .rank.top tbody tr:hover > :first-child {
  box-shadow:
    inset 0 1px #555,
    inset 0 -1px #555,
    inset 1px 0 var(--blue-300);
}
.ranking .data-body > :is(.pop, .pm, .ex, .ex ~ *) {
  --band: var(--ink-850);
  --card: var(--ink-800);
  position: relative;
  margin-top: 0;
  padding-block: 72px;
  background: var(--band);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
}
.ranking .data-body > .ex {
  --band: #f4f4f4;
  --card: #fff;
  --ex-ink: #141414;
  --ex-text: #3a3a3a;
  --ex-muted: #636363;
  --ex-line: #e2e2e2;
  --ex-track: #e0e0e0;
  --ex-guide: #858585;
  --ex-up: #2f7a3a;
  --ex-down: #b3362f;
  --ex-bar: #b4531f;
  color: var(--ex-text);
}
/* "How to read this data" is the one light band between dark ones: its edges are solid lines, and
   every colour inside is chosen again for the light ground (AA on band and card). */
.ranking .data-body > .ex::before {
  background: #d6d6d6;
}
.ranking .data-body > .ex + *::before {
  background: var(--ink-600);
}
.ranking .ex :is(h2, h3, .ex-group, .ex-who b, .ex-rows .num, .ex-track b) {
  color: var(--ex-ink);
}
.ranking .ex .ex-head p {
  color: var(--ex-text);
}
.ranking
  .ex
  :is(
    .ex-term small,
    .ex-term > span,
    .ex-who,
    .ex-who a,
    .ex-group span,
    .ex-rows .num small,
    .ex-axis,
    .ex-bar small,
    .ex-dates,
    .ex-cap
  ) {
  color: var(--ex-muted);
}
.ranking .ex .ex-term {
  border-top-color: #d6d6d6;
}
.ranking .ex .ex-term b {
  color: #555;
}
.ranking .ex .ex-term::before {
  background: var(--ex-ink);
}
/* With the ids of the rules they override, for the same specificity. */
.ranking #ex-buzz:checked ~ .ex-grid .ex-t-buzz b,
.ranking #ex-buzz:checked ~ .ex-grid .ex-t-buzz > span,
.ranking #ex-mentions:checked ~ .ex-grid .ex-t-mentions b,
.ranking #ex-mentions:checked ~ .ex-grid .ex-t-mentions > span,
.ranking #ex-sentiment:checked ~ .ex-grid .ex-t-sentiment b,
.ranking #ex-sentiment:checked ~ .ex-grid .ex-t-sentiment > span,
.ranking #ex-trend:checked ~ .ex-grid .ex-t-trend b,
.ranking #ex-trend:checked ~ .ex-grid .ex-t-trend > span {
  color: var(--ex-ink);
}
.ranking #ex-buzz:focus-visible ~ .ex-grid .ex-t-buzz,
.ranking #ex-mentions:focus-visible ~ .ex-grid .ex-t-mentions,
.ranking #ex-sentiment:focus-visible ~ .ex-grid .ex-t-sentiment,
.ranking #ex-trend:focus-visible ~ .ex-grid .ex-t-trend {
  outline-color: var(--blue);
}
.ranking .ex .ex-card {
  border-color: var(--ex-line);
}
.ranking .ex .ex-track {
  background: var(--ex-track);
}
.ranking .ex .ex-track::before {
  border-left-color: var(--ex-guide);
}
.ranking .ex .ex-track::after {
  background: #f0f0f0;
  opacity: 1;
}
.ranking .ex .ex-track i {
  background: var(--blue);
}
.ranking .ex .ex-log {
  background: #ededed;
}
.ranking .ex .ex-log i {
  background: var(--ex-bar);
}
.ranking .ex .ex-axis::before {
  background: var(--ex-line);
}
.ranking .ex .sbar {
  background:
    linear-gradient(var(--ex-guide), var(--ex-guide)) center / 1px 100% no-repeat,
    var(--ex-track);
}
.ranking .ex .sbar .dn {
  background: var(--ex-down);
}
.ranking .ex .sbar .up {
  background: var(--ex-up);
}
.ranking .ex :is(.spark, .arrow).up {
  color: var(--ex-up);
}
.ranking .ex :is(.spark, .arrow).down {
  color: var(--ex-down);
}
.ranking .ex :is(.spark, .arrow).flat {
  color: var(--ex-muted);
}
.ranking .ex :focus-visible {
  box-shadow: 0 0 0 3px #011ef466;
}
/* Sections of one band follow each other with one gap, and overlap by 1px so no seam shows. */
.ranking .data-body > :is(.pop + .pm, .ex ~ * + *) {
  padding-top: 0;
  clip-path: inset(-1px -100vmax 0);
}
/* The last band runs on through the bottom padding of the page (`.doc`). */
.ranking .data-body > .ex ~ :last-child {
  padding-bottom: 0;
  clip-path: inset(-1px -100vmax -112px);
}
.ranking .data-body > :is(.pop, .pm:not(.pop + .pm), .ex, .ex + *)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-600) 20% 80%, transparent);
  translate: -50% 0;
}
.ranking :is(.pop-card, .pm-card, .ex-card) {
  background: var(--card);
}
.ranking .ex ~ * .qa {
  max-width: none;
  padding: 0 24px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: var(--card);
}
.ranking .ex ~ * .qa details {
  border: 0;
}
.ranking .ex ~ * .qa details + details {
  border-top: 1px solid var(--ink-700);
}

/* ---------- motion of the ranking pages (D-458) ----------
   Each effect is a keyframe animation that starts with the page and ends in the element's own
   style, so a browser without animation, a page without script and a reader who asks for reduced
   motion all see the final state. A block that nav.js holds back below the first screen
   (`.js .rv` without `.in`) keeps its animations paused until it comes in, so each plays once.
   Only transform, opacity, clip-path and stroke-dashoffset move. */
:root {
  --m-fast: 200ms;
  --m-mid: 350ms;
  --m-slow: 600ms;
  --m-step: 40ms;
  --m-out: cubic-bezier(0.22, 1, 0.36, 1);
  --m-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* A row's or card's place in its list, for the stagger; from the 12th on they start together. */
:is(.rank.top tbody, .pop-grid, .ex-rows) > :nth-child(2) {
  --i: 1;
}
:is(.rank.top tbody, .pop-grid, .ex-rows) > :nth-child(3) {
  --i: 2;
}
:is(.rank.top tbody, .pop-grid, .ex-rows) > :nth-child(4) {
  --i: 3;
}
:is(.rank.top tbody, .pop-grid, .ex-rows) > :nth-child(5) {
  --i: 4;
}
:is(.rank.top tbody, .pop-grid, .ex-rows) > :nth-child(6) {
  --i: 5;
}
:is(.rank.top tbody, .pop-grid, .ex-rows) > :nth-child(7) {
  --i: 6;
}
:is(.rank.top tbody, .pop-grid, .ex-rows) > :nth-child(8) {
  --i: 7;
}
:is(.rank.top tbody, .pop-grid, .ex-rows) > :nth-child(9) {
  --i: 8;
}
:is(.rank.top tbody, .pop-grid, .ex-rows) > :nth-child(10) {
  --i: 9;
}
:is(.rank.top tbody, .pop-grid, .ex-rows) > :nth-child(11) {
  --i: 10;
}
:is(.rank.top tbody, .pop-grid, .ex-rows) > :nth-child(n + 12) {
  --i: 11;
}
/* Hover: a hairline above and below the row, and a blue edge at its start. */
.rank.top tbody tr:hover > * {
  box-shadow:
    inset 0 1px var(--ink-600),
    inset 0 -1px var(--ink-600);
}
.rank.top tbody tr:hover > :first-child {
  box-shadow:
    inset 0 1px var(--ink-600),
    inset 0 -1px var(--ink-600),
    inset 1px 0 var(--blue-300);
}
/* Hover or focus lights a card's border: a 1px gradient edge that sweeps in from the left, and
   the logo lifts. Only where a mask can cut the edge out of the gradient. */
@supports (mask-composite: exclude) {
  :is(.pop-card, .pm-card)::after {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(
      110deg,
      var(--blue-300),
      var(--white) 30%,
      var(--ink-600) 70%,
      var(--ink-700)
    );
    mask:
      linear-gradient(#000 0 0) content-box exclude,
      linear-gradient(#000 0 0);
    pointer-events: none;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  :is(.pop-card:is(:hover, :focus-visible), .pm-card:is(:hover, :focus-within))::after {
    opacity: 1;
    clip-path: inset(0);
  }
}
:is(.pop-card:is(:hover, :focus-visible), .pm-card:is(:hover, :focus-within)) .plogo {
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: no-preference) {
  .js .rv:not(.in, :focus-within):is(.rank-grid, .pop, .pm, .ex) *,
  .js .rv:not(.in, :focus-within):is(.rank-grid, .pop, .pm, .ex) *::before,
  .js .rv:not(.in, :focus-within):is(.rank-grid, .pop, .pm, .ex) *::after {
    animation-play-state: paused;
  }
  /* Table: the shares grow out of the centre line, the line draws itself, then its area, its dot
     and the arrow come in; the first 12 rows one after the other. */
  .sbar i {
    animation: m-grow var(--m-slow) var(--m-out) calc(var(--i, 0) * var(--m-step)) backwards;
  }
  .sbar .dn {
    transform-origin: right;
  }
  .sbar .up {
    transform-origin: left;
  }
  .spark:is(.up, .down, .flat) polyline {
    animation: m-draw var(--m-slow) var(--m-out) calc(var(--i, 0) * var(--m-step) + 100ms) backwards;
  }
  .spark:is(.up, .down, .flat) .area {
    animation: m-fade var(--m-mid) var(--m-out) calc(var(--i, 0) * var(--m-step) + 450ms) backwards;
  }
  .spark:is(.up, .down, .flat) circle {
    transform-box: fill-box;
    transform-origin: center;
    animation: m-pop var(--m-mid) var(--m-pop) calc(var(--i, 0) * var(--m-step) + 600ms) backwards;
  }
  :is(.rank, .ex-who) .arrow {
    animation: m-slide var(--m-mid) var(--m-out) calc(var(--i, 0) * var(--m-step) + 200ms) backwards;
  }
  /* How to read this data: the old term's rule retracts while the new one draws; a card comes in
     each time its term is picked (display: none restarts its animations), in under a second. */
  .ex-term::before {
    transition: transform var(--m-slow) var(--m-out);
  }
  .ex-p {
    animation: m-rise var(--m-mid) var(--m-out) backwards;
  }
  .ex-track i {
    animation: m-slide-to var(--m-slow) var(--m-out) calc(var(--i, 0) * var(--m-step)) backwards;
  }
  .ex-track::before {
    transform-origin: bottom;
    animation: m-grow-y var(--m-slow) var(--m-out) backwards;
  }
  .ex-track::after {
    animation: m-fade var(--m-slow) var(--m-out) backwards;
  }
  .ex-log i,
  .ex-axis::before,
  .pm-bar i,
  .pm-foot::before {
    transform-origin: left;
  }
  .ex-log i {
    animation: m-grow var(--m-slow) var(--m-out) calc(var(--i, 0) * var(--m-step)) backwards;
  }
  .ex-axis::before {
    animation: m-grow var(--m-slow) var(--m-out) backwards;
  }
  /* Cards: they rise one after the other, a price fills to its value, the rule below draws. */
  .pop-grid > li {
    animation: m-rise var(--m-slow) var(--m-out) calc(var(--i, 0) * var(--m-step)) backwards;
  }
  .pm-bar i {
    animation: m-grow var(--m-slow) var(--m-out) calc(var(--i, 0) * var(--m-step) + 200ms) backwards;
  }
  .pm-foot::before {
    animation: m-grow var(--m-slow) var(--m-out) calc(var(--i, 0) * var(--m-step) + 300ms) backwards;
  }
  :is(.pop-card, .pm-card) .plogo {
    transition: transform var(--m-fast) var(--m-out);
  }
  /* Leaving, the edge fades and resets unseen; coming, it sweeps. */
  :is(.pop-card, .pm-card)::after {
    transition:
      opacity var(--m-fast) var(--m-out),
      clip-path 0s linear var(--m-fast);
  }
  :is(.pop-card:is(:hover, :focus-visible), .pm-card:is(:hover, :focus-within))::after {
    transition:
      opacity var(--m-fast) var(--m-out),
      clip-path var(--m-slow) var(--m-out);
  }
  @keyframes m-grow {
    from {
      transform: scaleX(0);
    }
  }
  @keyframes m-grow-y {
    from {
      transform: scaleY(0);
    }
  }
  @keyframes m-fade {
    from {
      opacity: 0;
    }
  }
  @keyframes m-rise {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }
  @keyframes m-slide {
    from {
      opacity: 0;
      transform: translateX(-4px);
    }
  }
  @keyframes m-pop {
    from {
      transform: scale(0);
    }
  }
  /* With the line's pathLength of 1, a dash of 1 is the whole line. */
  @keyframes m-draw {
    from {
      stroke-dasharray: 1 1;
      stroke-dashoffset: 1;
    }
    to {
      stroke-dasharray: 1 1;
      stroke-dashoffset: 0;
    }
  }
  /* From the track's start: --x percent of the track is --x cqw. */
  @keyframes m-slide-to {
    from {
      transform: translateX(calc(var(--x) * -1cqw));
    }
  }
}
/* On a phone the table keeps the stock and two figures; the name takes a line of its own. */
@media (max-width: 600px) {
  .data .opt,
  .data .mix {
    display: none;
  }
  .data .rank .sbar {
    width: 64px;
  }
  .data .rank .sbar-n {
    display: block;
    margin-top: 4px;
    font: 11px/1.3 var(--mono);
    color: var(--ink-400);
  }
  .sbar-n span {
    display: block;
  }
  .data .rank :is(th, td) {
    padding-right: 10px;
  }
  .data .rank .name {
    min-width: 0;
  }
  .rank.top tbody th span:not(.plogo) {
    display: block;
    margin: 2px 0 0 32px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
  }
}

/* ---------- the page of one stock: the chart of 30 days, the small pictures, the lists ---------- */

/* Bars in a chart: the volume of a day, and its sentiment up or down from the zero line. */
.chart rect.vol {
  fill: var(--ink-600);
}
.chart rect.pos {
  fill: var(--green-300);
}
.chart rect.neg {
  fill: var(--red-300);
}
.chart rect.neu {
  fill: var(--ink-400);
}
.prose.wide .chart + p {
  margin-top: 20px;
}
.prose.wide .notice {
  margin-top: 20px;
  font-size: 15px;
}
.prose.wide .notice strong {
  font-size: 16px;
}
/* The short version: a small picture under a figure. */
.ins-sum dd > :is(.spark, .mix) {
  display: block;
  margin: 8px 0 0;
}
.ins-sum dd > .mix {
  width: 88px;
}
/* The mentions of the week by source: one segment each, the largest first. */
.srcbar {
  display: flex;
  gap: 2px;
  max-width: 160px;
  margin-top: 8px;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
}
.srcbar i {
  min-width: 2px;
  background: var(--blue-300);
}
.srcbar i:nth-child(2) {
  background: var(--orange);
}
.srcbar i:nth-child(3) {
  background: var(--white);
}
.srcbar i:nth-child(4) {
  background: var(--ink-400);
}
.srcbar i:nth-child(n + 5) {
  background: var(--ink-600);
}
/* The last close and the analysts' average target as two marks on one scale. */
.range {
  position: relative;
  max-width: 468px;
  height: 4px;
  margin: 28px 6px 0;
  border-radius: 2px;
  background: var(--ink-700);
}
.range :is(i, b) {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
}
.range i {
  border-radius: 50%;
  background: var(--white);
  transform: translate(-50%, -50%);
}
.range b {
  background: var(--blue-300);
  transform: translate(-50%, -50%) rotate(45deg);
}
.prose.wide .range-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  max-width: none;
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--ink-300);
}
.range-key > span > :is(i, b) {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
}
.range-key > span > i {
  border-radius: 50%;
  background: var(--white);
}
.range-key > span > b {
  background: var(--blue-300);
  transform: rotate(45deg);
}
/* A list of stocks with the sentiment score of each. */
.prose.wide .nearby.scored a {
  grid-template-columns: 24px 64px 1fr auto;
}
.nearby.scored i {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.nearby.scored i.neu {
  color: var(--ink-300);
}
.more-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
  margin-top: 24px;
}
.prose.wide .more-cols h3 {
  margin-top: 0;
}
.prose.wide .more-cols .nearby {
  grid-template-columns: 1fr;
  margin-top: 12px;
}
.prose.wide .more-cols p {
  margin: 12px 0 0;
  font-size: 14px;
}

/* ---------- the fear and greed index (apps/web/src/site-index.ts) ---------- */

.fg-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin-top: 32px;
}
.fg-side,
.fg-gap {
  padding: 24px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: var(--ink-900);
}
.fg-hero h2 {
  margin: 0 0 12px;
  font: 600 12px/1.4 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.fg-dial {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}
.fg-dial path {
  fill: none;
  stroke-width: 14;
  stroke-linecap: butt;
}
.fg-dial .b0 {
  stroke: var(--red-300);
}
.fg-dial .b1 {
  stroke: var(--orange);
}
.fg-dial .b2 {
  stroke: var(--ink-400);
}
.fg-dial .b3 {
  stroke: var(--green-300);
}
.fg-dial .b4 {
  stroke: var(--green);
}
.fg-dial line {
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
}
.fg-dial circle {
  fill: var(--white);
}
/* The needle stands at its value; with motion allowed it turns there from the left end. */
.fg-dial .needle {
  transform: rotate(var(--to));
  transform-origin: 100px 100px;
}
.fg-read {
  margin: 12px 0 0;
  text-align: center;
  color: var(--ink-200);
}
.fg-read strong {
  display: block;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
}
.fg-src {
  margin: 6px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-400);
}
.fg-gap .fg-src,
.fg-gap .fg-num {
  text-align: left;
}
.fg-num {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}
.fg-num.pos,
.fg-then .pos {
  color: var(--green-300);
}
.fg-num.neg,
.fg-then .neg {
  color: var(--red-300);
}
.fg-lead {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}
.fg-then {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--ink-800);
  list-style: none;
  font-size: 13px;
  color: var(--ink-300);
}
.fg-then li {
  display: grid;
  grid-template-columns: 56px 40px 1fr;
  gap: 8px;
}
.fg-then b {
  font-variant-numeric: tabular-nums;
  color: var(--white);
}
/* The days one side leads, behind the two lines. */
.chart rect.lead {
  opacity: 0.14;
}
.chart rect.lead.pos {
  fill: var(--green-300);
}
.chart rect.lead.neg {
  fill: var(--red-300);
}
.chart circle.s1 {
  fill: var(--orange);
}
/* A bar with a line of words under it: an indicator and what it measures. */
.bars.noted li {
  grid-template-areas: 'name bar value' 'note note note';
  row-gap: 4px;
}
.bars.noted small {
  grid-area: note;
  font-size: 13px;
  color: var(--ink-400);
}
.prose.wide .bars.noted {
  gap: 18px;
}
.prose.wide .bars.noted u {
  background: var(--blue-300);
}

/* ---------- motion: charts and dials come in when the page loads ---------- */

@media (prefers-reduced-motion: no-preference) {
  .fg-dial .needle {
    animation: fg-sweep 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  @keyframes fg-sweep {
    from {
      transform: rotate(-90deg);
    }
  }
  .fg-read strong,
  .fg-num {
    animation: fg-rise 0.7s var(--ease) 0.5s both;
  }
  @keyframes fg-rise {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }
  /* A line is uncovered from the left. */
  .chart .draw {
    animation: chart-draw 1.3s cubic-bezier(0.3, 0.6, 0.2, 1) both;
  }
  @keyframes chart-draw {
    from {
      clip-path: inset(0 100% 0 0);
    }
    to {
      clip-path: inset(0 0 0 0);
    }
  }
  /* Bars rise from the base line, one after the other. */
  .chart .grow rect {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: chart-grow 0.5s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 18ms);
  }
  @keyframes chart-grow {
    from {
      transform: scaleY(0);
    }
  }
  .chart .fade rect {
    animation: chart-fade 0.5s ease-out both;
    animation-delay: calc(0.4s + var(--i, 0) * 18ms);
  }
  @keyframes chart-fade {
    from {
      opacity: 0;
    }
  }
  /* The newest point breathes, so the eye finds today. */
  .chart circle.now {
    transform-box: fill-box;
    transform-origin: center;
    animation: chart-now 2.4s ease-in-out 1.4s infinite;
  }
  @keyframes chart-now {
    50% {
      transform: scale(1.9);
      opacity: 0.55;
    }
  }
  .bars u,
  .srcbar i {
    transform-origin: left center;
    animation: bar-grow 0.9s var(--ease) both;
  }
  @keyframes bar-grow {
    from {
      transform: scaleX(0);
    }
  }
  .chart rect:hover,
  .chart circle:hover {
    filter: brightness(1.5);
  }
}

/* ---------- the fear and greed index: the parts under the dials ---------- */

.doc-head .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
/* The names of the five bands run around the dial; the one the needle is in is lit. */
.fg-dial .rim {
  stroke: none;
}
.fg-dial text {
  fill: var(--ink-400);
  /* Small enough for the narrowest band, the ten points of "Neutral". */
  font: 600 5.4px var(--sans);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.fg-dial text.on {
  fill: var(--white);
}
.fg-mini {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
}
.fg-mini line {
  stroke: var(--ink-700);
  stroke-dasharray: 3 4;
}
.fg-mini path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fg-mini .s0 {
  stroke: var(--blue-300);
}
.fg-mini .s1 {
  stroke: var(--orange);
}
.fg-page {
  margin-top: 8px;
}
.prose.wide .fg-say {
  max-width: none;
  margin: 24px 0 0;
  padding: 20px 24px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: var(--ink-900);
  color: var(--ink-200);
}
.fg-page > section {
  margin-top: 72px;
}
.fg-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
  margin-top: 24px;
}
/* The chart takes the wider part next to the numbers. */
@media (min-width: 1000px) {
  .fg-two.wide {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}
.prose.wide .fg-two h3 {
  margin-top: 0;
}
.prose.wide .fg-two .rank {
  font-size: 14px;
}
.fg-rows {
  display: grid;
  margin: 16px 0 0;
}
.fg-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--ink-800);
  font-size: 14px;
}
.fg-rows dt {
  color: var(--ink-300);
}
.fg-rows dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}
.fg-rows small {
  margin-left: 8px;
  font-weight: 400;
  color: var(--ink-400);
}
/* Today in four cells. */
.fg-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: var(--ink-700);
}
.fg-strip > div {
  padding: 20px;
  background: var(--ink-900);
}
.prose.wide .fg-strip p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0;
  font-size: 14px;
  color: var(--ink-200);
}
.fg-strip b {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}
.fg-strip i,
.fg-card .bars i {
  display: block;
  height: 6px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--ink-800);
}
.fg-strip u {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--blue-300);
}
.fg-strip small {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-400);
}
/* Four short points on the left, four small pictures with a sentence on the right. */
.fg-points {
  display: grid;
  gap: 0;
  margin: 0;
}
.fg-points > div {
  padding: 16px 0;
  border-top: 1px solid var(--ink-800);
}
.fg-points dt {
  font-weight: 600;
  color: var(--white);
}
.fg-points dd {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--ink-300);
}
.prose.wide .fg-notes {
  display: grid;
  gap: 0;
  max-width: none;
  margin: 0;
  padding: 8px 24px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: var(--ink-900);
  list-style: none;
}
.prose .fg-notes li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: center;
  margin: 0;
  padding: 18px 0;
  font-size: 15px;
  color: var(--ink-200);
}
.prose .fg-notes li + li {
  border-top: 1px solid var(--ink-800);
}
.fg-notes svg {
  width: 64px;
  height: 32px;
  fill: none;
  stroke: var(--ink-400);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fg-notes svg .hot {
  stroke: var(--orange);
}
.fg-notes svg circle.hot {
  fill: var(--orange);
  stroke: none;
}
.fg-notes svg .dash {
  stroke-dasharray: 3 4;
}
/* How the two sides are built: a band of its own. */
.fg-panel {
  padding: 40px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-xl);
  background: var(--ink-850);
}
.prose.wide .fg-panel > h2 {
  margin-top: 0;
}
.fg-card {
  padding: 24px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: var(--ink-900);
}
.prose.wide .fg-card .bars {
  margin-top: 16px;
}
.prose.wide .fg-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: none;
  margin: 24px 0 0;
  padding: 16px;
  border: 1px dashed var(--ink-600);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--ink-400);
}
.fg-box b {
  font-size: 32px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}
.fg-box em {
  font-style: normal;
  color: var(--ink-200);
}
.prose.wide .fg-card > p:last-child {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--ink-300);
}
.prose.wide .fg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: none;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.prose .fg-chips li {
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--ink-700);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-200);
}
.fg-chips b {
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}
/* The gap as two tracks: both readings on the scale, then the gap between the three readings. */
.fg-scale {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: var(--ink-900);
}
.prose.wide .fg-scale h3 {
  margin: 0;
}
.fg-track {
  position: relative;
  height: 4px;
  margin: 56px 8px 0;
  border-radius: 2px;
  background: var(--ink-700);
}
.fg-track .span {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--ink-400);
}
.fg-track .zone {
  position: absolute;
  top: -4px;
  height: 12px;
  border-radius: 3px;
  background: var(--ink-600);
}
.fg-track b {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  transform: translate(-50%, -50%);
}
.fg-track b.crowd {
  background: var(--orange);
}
.fg-track b.market {
  background: var(--blue-300);
}
.fg-track b.gap.pos {
  background: var(--green-300);
}
.fg-track b.gap.neg {
  background: var(--red-300);
}
.fg-track b span {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}
/* Two labels close together: the market's stands above the crowd's. */
.fg-track b.market span {
  bottom: 36px;
}
.prose.wide .fg-ends {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: none;
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-400);
}
.prose.wide .fg-scale .fg-two p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-300);
}
.fg-scale .fg-two b {
  color: var(--white);
}
/* The data behind the index: one card per place to see or read it. */
.fg-data {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin-top: 24px;
}
.prose.wide a.fg-link {
  display: block;
  padding: 20px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: var(--ink-900);
  text-decoration: none;
}
.prose.wide a.fg-link:hover {
  border-color: var(--ink-400);
}
.prose.wide .fg-link .fg-chips {
  margin: 0 0 16px;
}
.prose.wide .fg-link h3 {
  margin: 0;
  font-size: 16px;
}
.prose.wide .fg-link p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-300);
}
@media (max-width: 600px) {
  .fg-panel {
    padding: 20px;
  }
  .fg-track b span {
    font-size: 11px;
  }
}
