/* Equity research uses the terminal's paper/dark tokens and self-hosted type. */
#viewEquities { max-width: 1280px; min-width: 0; }
#viewEquities [hidden] { display: none !important; }
#viewEquities .eq-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin: .6rem 0 1.25rem; }
#viewEquities .eq-heading { padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
#viewEquities .eq-heading .headline { margin: .2rem 0; letter-spacing: -.045em; }
#viewEquities .eq-symbol { overflow-wrap: anywhere; font-size: clamp(2rem, 4vw, 3.25rem); }
.eq-company { color: var(--muted); margin: .4rem 0 0; font-size: 1.1rem; }
.eq-kicker, .eq-caption, .eq-footnote, .eq-chart-dates, .eq-toolbar p { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.eq-intro { color: var(--muted); max-width: 65ch; line-height: 1.7; margin: 0 0 1.7rem; }
.eq-back { display: inline-block; font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.eq-back:hover { color: var(--brand); }
.eq-select { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.eq-select select { padding: .65rem 2rem .65rem .75rem; font: 500 .85rem var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 5px; }
.eq-filter { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.eq-filter input { width: min(260px, 50vw); padding: .63rem .75rem; font: 500 .85rem var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 5px; }
.eq-filter input::placeholder { color: var(--muted); }
.eq-board-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0 0 .75rem; }
.eq-board-tools .eq-caption { margin: 0; }
.eq-sort { appearance: none; display: inline-flex; align-items: center; gap: .3rem; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: inherit; }
.eq-sort::after { content: '↕'; color: var(--muted); font-size: .8rem; }
.eq-board th[aria-sort="ascending"] .eq-sort, .eq-board th[aria-sort="descending"] .eq-sort { color: var(--brand); }
.eq-board th[aria-sort="ascending"] .eq-sort::after { content: '↑'; color: var(--brand); }
.eq-board th[aria-sort="descending"] .eq-sort::after { content: '↓'; color: var(--brand); }
.eq-no-match { color: var(--muted); text-align: center !important; padding: 2rem !important; }
.eq-table-wrap { overflow: auto; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); max-width: 100%; }
.eq-table { width: 100%; border-collapse: collapse; font-size: .85rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.eq-table th, .eq-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; white-space: nowrap; }
.eq-table thead th { color: var(--muted); font-size: .7rem; font-weight: 500; background: var(--surface-2); }
.eq-table th[scope="row"] { font-weight: 500; }
.eq-table .r { text-align: right; }
.eq-table td { color: var(--ink-2); }
.eq-table a { color: var(--brand); text-decoration: none; }
.eq-table a:hover { text-decoration: underline; }
.eq-table small { display: block; color: var(--muted); font-size: .7rem; font-weight: 400; margin-top: .25rem; }
.eq-table tbody tr:hover { background: var(--surface-hover); }
.eq-table tr:last-child > * { border-bottom: 0; }
.eq-tabs { display: flex; gap: 1.4rem; overflow-x: auto; border-bottom: 1px solid var(--rule); margin-top: 1.5rem; position: sticky; top: 0; z-index: 4; background: var(--ground); box-shadow: 0 1px 0 var(--ground); }
.eq-tabs button { flex-shrink: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: .85rem 0; font: 500 .85rem var(--sans); cursor: pointer; transition: color .2s, border-color .2s; }
.eq-tabs button[aria-selected="true"] { border-color: var(--brand); color: var(--ink); }
.eq-tabs button:hover { color: var(--brand); }
.eq-tabs button:active { transform: translateY(1px); }
#viewEquities :is(button, a, select):focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.eq-panel { padding-top: 1.7rem; }
.eq-panel:focus { outline: none; }
.eq-state { padding: 2.5rem 1.5rem; border: 1px dashed var(--rule-strong); background: var(--surface-2); margin: 1rem 0; border-radius: 6px; }
.eq-state h2 { font-size: 1.1rem; font-weight: 600; margin: 0 0 .5rem; letter-spacing: -.02em; }
.eq-state p { color: var(--muted); max-width: 65ch; font-size: .85rem; line-height: 1.7; margin: .4rem 0 1rem; }
.eq-loading { padding: 1.5rem 0; }
.eq-loading p { color: var(--muted); font-size: .85rem; }
.eq-loading span { display: block; height: 2.7rem; margin: .7rem 0; background: var(--surface-2); border: 1px solid var(--rule-soft); border-radius: 4px; }
.eq-loading span:last-child { max-width: 70%; }
.eq-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.eq-actions small { font-size: .7rem; color: var(--muted); }
.eq-actions button:disabled { opacity: .5; cursor: default; }
.eq-job { font-size: .8rem; line-height: 1.6; color: var(--muted); max-width: 75ch; }
.eq-job:empty { display: none; }
.eq-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--rule); margin: .5rem 0 1.5rem; padding: 1.1rem 0; gap: 1rem; }
.eq-facts .eq-fact { min-width: 0; }
.eq-fact dt { color: var(--muted); font-size: .72rem; margin-bottom: .6rem; }
.eq-fact dd { margin: 0; font-size: 1.3rem; line-height: 1.3; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.eq-fact small { display: block; color: var(--muted); font-size: .7rem; margin-top: .5rem; line-height: 1.6; }
.eq-block { margin-bottom: 2.3rem; min-width: 0; scroll-margin-top: 7rem; }
.eq-block h2 { margin: 0 0 1rem; font-size: 1.2rem; font-weight: 600; letter-spacing: -.025em; }
.eq-block h3 { font-size: .9rem; font-weight: 500; }
.eq-prose { max-width: 68ch; font-size: .95rem; line-height: 1.8; color: var(--ink-2); white-space: pre-line; }
.eq-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.eq-meta dd { font-size: .9rem; }
.eq-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; }
.eq-section-head span { color: var(--muted); font-size: .8rem; }
.eq-section-head strong { font: 500 .85rem var(--mono); }
.eq-price-chart { width: 100%; height: 200px; display: block; overflow: visible; background: var(--surface-2); border-bottom: 1px solid var(--rule); }
.eq-price-chart polyline { stroke: var(--chart-line); stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; }
.eq-chart-dates { display: flex; justify-content: space-between; margin-top: .5rem; }
.eq-block summary { cursor: pointer; font-size: .85rem; padding: .8rem 0; }
.eq-block summary:hover { color: var(--brand); }
.eq-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.eq-statement-links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 1.5rem 0 2rem; font-size: .8rem; }
.eq-statement-links a { color: var(--brand); }
.eq-statement-wrap { max-height: 34rem; overscroll-behavior: contain; }
.eq-statement thead th { position: sticky; top: 0; z-index: 3; box-shadow: 0 1px 0 var(--rule); }
.eq-statement th:first-child { min-width: 220px; max-width: 360px; white-space: normal; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.eq-statement thead th:first-child { z-index: 4; background: var(--surface-2); }
.eq-highlight > * { background: var(--brand-wash) !important; }
.eq-neg { color: var(--neg); }
.eq-period-head strong { display: block; font-weight: 600; color: var(--ink); }
.eq-period-head small { display: block; color: var(--muted); font-size: .65rem; font-weight: 400; margin-top: .15rem; }
.eq-statement-summary { margin: 0 0 .5rem; }
.eq-statement-links { position: sticky; top: 3.1rem; z-index: 3; background: var(--ground); padding: .6rem 0; margin: .5rem 0 1.5rem; border-bottom: 1px solid var(--rule-soft); }
.eq-snapshots th[scope="row"] { white-space: normal; min-width: 220px; }
.eq-statement tbody th small { font-family: var(--mono); }
@media (max-width: 1100px) { .eq-facts, .eq-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  #viewEquities .eq-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .eq-actions { align-items: flex-start; }
  .eq-tabs { gap: 1.3rem; margin-top: 1rem; }
  .eq-facts { gap: 1.5rem 1rem; }
  .eq-fact dd { font-size: 1.1rem; }
  .eq-table th, .eq-table td { padding: .7rem .65rem; }
  .eq-section-head { flex-direction: column; gap: 0; }
  .eq-section-head h2 { margin-bottom: .5rem; }
  .eq-state { padding: 1.5rem 1rem; }
  .eq-kicker { font-size: .75rem; }
  .eq-board-tools { align-items: stretch; flex-direction: column; gap: .55rem; }
  .eq-filter { align-items: stretch; flex-direction: column; white-space: normal; }
  .eq-filter input { width: 100%; box-sizing: border-box; }
  .eq-statement-wrap { max-height: 27rem; }
}
.eq-job a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; margin-left: .35rem; }
