/* The ask box and its answers: the home page (index.html). Moved from us-stocks.html on
   2026-10-19 when the box became the home page; tokens and components come from app.css. */
.ask-box { display: flex; gap: 8px; align-items: stretch; margin: 18px 0 8px; }
.ask-box input[type="search"] { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 17px; padding: 12px 14px;
  color: var(--obs-ink); background: var(--obs-surface); border: 1px solid var(--obs-text-faint); border-radius: 3px; }
.ask-box input[type="search"]:focus { outline: 2px solid var(--obs-focus); outline-offset: 1px; }
.ask-box .btn.primary { padding: 0 22px; font-size: 15px; }
.examples { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; margin: 0 0 6px; color: var(--obs-text-muted); }
.examples a { color: var(--obs-primary); text-decoration: none; }
.examples a:hover { text-decoration: underline; }
.read-as { font-size: 12.5px; color: var(--obs-text-muted); margin: 10px 0 0; }
.read-as b { color: var(--obs-ink); font-weight: 600; }
.read-as { margin: 20px 0 0; font-size: 13px; }
.steps { margin: 4px 0 12px; padding-left: 22px; color: var(--obs-text-muted); font-size: 14px; line-height: 1.55; max-width: 760px; }
.steps li { margin: 2px 0; }
pre.sql { white-space: pre-wrap; word-break: break-word; font-size: 12.5px; line-height: 1.5; padding: 10px 12px;
  border: 1px solid var(--obs-border); border-radius: 3px; background: var(--obs-surface-subtle); color: var(--obs-ink); margin: 4px 0 10px; }
.read-as + .headline { margin-top: 6px; }
.headline { font-size: 30px; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; color: var(--obs-ink); margin: 22px 0 10px; }
.headline + .period-line { margin: -4px 0 12px; }
.period-line { font-size: 13px; color: var(--obs-text-muted); font-variant-numeric: tabular-nums; }
.answer-text { font-size: 16.5px; line-height: 1.55; color: var(--obs-text); margin: 0 0 14px; max-width: 78ch; text-wrap: pretty; }
.fact-row { display: flex; flex-wrap: wrap; gap: 10px 40px; margin: 10px 0 6px; padding-left: 14px; border-left: 2px solid var(--obs-border); }
.fact-row div { margin: 0; }
.fact-row dt { font-size: 12px; font-weight: 600; color: var(--obs-text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 3px; }
.fact-row dd { margin: 0; font-size: 21px; font-weight: 600; color: var(--obs-ink); font-variant-numeric: tabular-nums; line-height: 1.15; }
.fact-row .qual { display: block; font-size: 12px; font-weight: 400; color: var(--obs-text-muted); margin-top: 2px; }
.co-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin: 18px 0 2px; }
.co-head h1 { margin: 0; }
.co-code { font-family: var(--obs-mono, monospace); color: var(--obs-text-muted); font-size: 15px; }
.co-industry { font-size: 13px; color: var(--obs-text-muted); }
.sec-note { font-size: 12.5px; color: var(--obs-text-muted); margin: 0; line-height: 1.55; text-wrap: pretty; }
.value-note { margin: 8px 0 0; color: var(--obs-ink); font-size: 13.5px; max-width: 760px; }
.chart-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; font-size: 12px; color: var(--obs-text-faint); margin-top: 4px; }
.chart-el { width: 100%; height: 360px; }
.tbl-fin { width: 100%; border-collapse: collapse; }
.tbl-fin th, .tbl-fin td { padding: 7px 10px; font-size: 13px; border-bottom: 1px solid var(--obs-grid); white-space: nowrap; }
.tbl-fin thead th { font-size: 11px; font-weight: 600; color: var(--obs-text-muted); text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--obs-border); text-align: left; }
.tbl-fin .r, .tbl-fin th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-fin tbody tr:hover td { background: var(--obs-surface-subtle); }
.tbl-fin a { color: var(--obs-primary); text-decoration: none; }
.tbl-fin a:hover { text-decoration: underline; }
.tbl-fin td.txt { white-space: normal; min-width: 180px; }
.followups { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.followups a { display: inline-block; font-size: 13.5px; padding: 7px 12px; border: 1px solid var(--obs-text-faint); border-radius: 3px;
  color: var(--obs-ink); text-decoration: none; }
.followups a:hover { border-color: var(--obs-primary); color: var(--obs-primary); }
.answer-quote { margin: 4px 0 16px; padding: 2px 0 2px 16px; border-left: 3px solid var(--obs-border); max-width: 78ch; }
.answer-quote p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.6; color: var(--obs-text); text-wrap: pretty; }
.quote-cite { margin: 0; font-size: 12.5px; color: var(--obs-text-muted); }
.quote-cite a { color: var(--obs-primary); text-decoration: none; }
.quote-cite a:hover { text-decoration: underline; }
.answer-quote .quote-cite { margin-top: -2px; }
.list-group { font-size: 14px; font-weight: 600; color: var(--obs-ink); margin: 18px 0 6px; }
.answer-list { margin: 0 0 6px; padding-left: 28px; max-width: 86ch; }
.answer-list li { font-size: 14.5px; line-height: 1.5; color: var(--obs-text); margin: 0 0 7px; padding-left: 4px; }
.answer-list li::marker { color: var(--obs-text-muted); font-variant-numeric: tabular-nums; }
.answer-list + .quote-cite { margin-top: 10px; }
.sources li { font-size: 12.5px; color: var(--obs-text-muted); margin: 0 0 4px; }
.state-empty, .state-error { font-size: 14px; color: var(--obs-text); margin: 18px 0; padding-left: 12px; border-left: 2px solid var(--obs-warn); }
.state-wait { font-size: 14px; color: var(--obs-text-muted); margin: 18px 0; }
/* the steps the server took, each with the second it was reached */
.trail { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--obs-text-muted); }
.trail li { display: flex; gap: 12px; align-items: baseline; margin: 4px 0; line-height: 1.45; }
.trail li.now { color: var(--obs-ink); }
.trail-t { flex: 0 0 48px; text-align: right; font-variant-numeric: tabular-nums; color: var(--obs-text-muted); }
details.worked-out .calc-body h3 { font-size: 12.5px; font-weight: 600; color: var(--obs-ink); margin: 12px 0 4px; text-transform: none; letter-spacing: 0; }
details.worked-out .calc-body h3:first-child { margin-top: 2px; }
details.worked-out .calc-body p { margin: 4px 0; }
details.worked-out .steps { margin: 4px 0 0 18px; padding: 0; }
details.worked-out .checks { margin: 4px 0 0 18px; padding: 0; }
details.worked-out .checks li { margin: 2px 0; }
.quiet { font-size: 12.5px; color: var(--obs-text-muted); }
@media (max-width: 700px) {
  .headline { font-size: 23px; }
  .chart-el { height: 300px; }
  .ask-box { flex-wrap: wrap; }
  .ask-box .btn.primary { flex: 1 1 100%; padding: 10px; }
  .fact-row { gap: 10px 24px; }
}

/* the wait line under the box (home.css lays out the rest of the page) */
.ask-main #status { margin: 14px 0 0; }

/* a long answer table shows its first ten rows until "Show all" (us-stocks.js FOLD_ROWS);
   Copy and CSV still take every row, since the fold is display only */
.an-fold tbody tr:nth-child(n+11) { display: none; }
.an-tbl-foot .an-more { margin-left: auto; color: var(--obs-accent); text-decoration: none; }
.an-tbl-foot .an-more:hover { color: var(--obs-accent-dark); text-decoration: underline; }
.an-foot.an-tbl-foot { font-size: 13.5px; }
