/*
 * Sector screens — design system.
 *
 * Sonde's design system (sonde-markets, assets/css/site.css), applied to a
 * data-dense screen: the same tokens, the same three families, the same
 * square white panels on the paper ground with 2px rule gaps between them,
 * and the same 2px ink rules under the nav and over the footer.
 *
 * Do not introduce new colours or typefaces. Everything below is a Sonde
 * token, or a color-mix() of two of them.
 *
 *   --paper     page                     --live      accent: current page,
 *   --ink       text, pressed controls                selected metric, mark
 *   --white     panels                   --contract  growing / profitable
 *   --rule      hairlines, panel gaps    --alert     shrinking / losing money
 *
 * --contract and --alert are for values only: the data-hall tiles, the
 * signed figures in the table and the median readouts. They carry the
 * same meaning they do on Sonde (good / risk).
 *
 * Archivo for display (headings, tickers, the figures a panel exists to
 * show) · Source Serif 4 for prose · IBM Plex Mono for data and labels.
 *
 * Sonde itself is light only. The dark tokens are Sonde's model panel
 * (ink ground, white type, live accent), so the screen still reads as
 * Sonde when the viewer asks for dark. data-theme on <html> forces either.
 *
 * Two builds read this file (see build.py):
 *   standalone  dist/bundle.html and dist/site/: this whole file.
 *   sonde       sondemarkets.com/sector-screens/: loaded after Sonde's own
 *               site.css, which supplies the fonts, the nav and the search
 *               palette. build.py drops every region between
 *               "standalone:start" and "standalone:end" markers (fonts, dark
 *               theme, nav), so those come from Sonde and stay in step with
 *               it, and the screens stay light like the rest of the site.
 *               Class names here avoid site.css's bare ones (.sr, .grp,
 *               .controls, .table-scroll, .covitem), and the element rules
 *               below reset what site.css sets on table, th, td and h1.
 */


/* ---------- tokens ---------- */
:root {
  /* Sonde */
  --paper: #EDF0F2; --ink: #16222E; --ink-soft: #4A5B69; --ink-faint: #8B9AA5;
  --rule: #C9D2D8; --live: #E08A1E; --live-dim: #F5DFBE; --contract: #3F7A78;
  --contract-dim: #CBDEDD; --alert: #B2482F; --white: #FBFCFC;
  --hover: #F4F7F8;                       /* Sonde's row and tile hover */
  /* Roles */
  --pos: var(--contract);                 /* tile and ramp fill, growing */
  --neg: var(--alert);                    /* tile and ramp fill, shrinking */
  --tile0: color-mix(in oklab, var(--paper) 45%, var(--rule));   /* a tile at zero */
  --on-strong: #FBFCFC;                   /* type on a saturated tile */
  --on-live: #16222E;                     /* type on --live, in either theme */
  --pressed: var(--ink); --on-pressed: var(--white);   /* a selected control */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1080px;                         /* Sonde's: the nav lines up with every other page */
  --gutter: clamp(16px, 3vw, 28px);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 112px; }   /* clears Sonde's two-row nav */
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--serif); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 64px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--contract); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ---------- shared ---------- */
.eyebrow {
  font: 400 11px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--contract); margin: 0 0 14px;
}
.rhead h1 { font: 800 clamp(34px, 5.4vw, 58px)/1.0 var(--display); letter-spacing: -0.03em; margin: 0; max-width: 18em; }
.dek { font-size: 19px; line-height: 1.5; max-width: 40em; margin: 18px 0 0; color: var(--ink-soft); }
.ss-sec { margin-top: 48px; }
.sec-label {
  font: 400 11px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint);
  padding-bottom: 9px; border-bottom: 1px solid var(--rule); margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap;
}
.sec-label h2 { font: inherit; letter-spacing: inherit; color: var(--ink-soft); margin: 0; }
.up { color: var(--contract); }
.down { color: var(--alert); }
.na { color: var(--ink-faint); }

/* ---------- masthead ---------- */
.rhead { padding: 44px 0 0; }
.byline {
  margin: 26px 0 0; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: flex; gap: 14px 34px; flex-wrap: wrap;
  font: 400 11px/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft);
}
.byline dd { margin: 3px 0 0; color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: 0; text-transform: none; }

/* ---------- metric picker ----------
   Sonde's scenario tiles (the fund picker on /multiples/): white cells on
   2px rule gaps, the selected one topped in --live. Each shows the median
   of its metric across the companies currently shown. */
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 2px; background: var(--rule); }
.pick {
  background: var(--white); border: 0; border-top: 3px solid transparent; padding: 15px 20px 14px;
  text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 7px; min-width: 0;
}
.pick:hover { background: var(--hover); }
.pick:focus-visible { outline: 2px solid var(--contract); outline-offset: -2px; }
.pick[aria-pressed="true"] { border-top-color: var(--live); background: var(--hover); }
.pick .nm { font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.pick[aria-pressed="true"] .nm { color: var(--ink-soft); }
.pick .pv { font: 800 27px/1 var(--display); letter-spacing: -0.025em; }
.pick small { font: 400 10.5px/1.4 var(--mono); color: var(--ink-soft); }

/* ---------- data hall map ---------- */
.hall { background: var(--white); margin-top: 2px; padding: 20px 24px 18px; }
.hall h3 { font: 600 20px/1.2 var(--display); letter-spacing: -0.01em; margin: 0 0 16px; }
.aisle { display: grid; grid-template-columns: minmax(150px, 190px) 1fr; gap: 10px 20px; padding: 14px 0; border-top: 1px solid var(--rule); }
.aisle:first-child { border-top: 0; padding-top: 0; }
.aisle-label { font: 600 15px/1.3 var(--display); letter-spacing: -0.005em; padding-top: 3px; }
.aisle-label span {
  display: block; margin-top: 5px; font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-faint);
}
.racks { display: flex; flex-wrap: wrap; gap: 4px; }
.tile {
  width: 72px; height: 58px; border: 0; border-radius: 0; cursor: pointer; padding: 7px 8px 6px;
  display: flex; flex-direction: column; justify-content: space-between; text-align: left;
  background: color-mix(in oklab, var(--tone, var(--pos)) var(--mix, 0%), var(--tile0));
  color: var(--ink);
}
.tile.strong { color: var(--on-strong); }
.tile b { font: 800 13px/1 var(--display); letter-spacing: 0; }
.tile small { font: 400 11px/1 var(--mono); }
/* Sonde's "pipeline" hatch: not comparable, or not reported. */
.tile.void {
  background: repeating-linear-gradient(135deg, transparent 0 6px, var(--rule) 6px 7px), var(--white);
  box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-soft);
}
.tile:hover, .tile.void:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.tile:focus-visible { outline-offset: 1px; }
.legend {
  display: flex; align-items: center; gap: 10px 32px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--rule); font: 400 11px/1.4 var(--mono); color: var(--ink-soft);
}
.legend .scale { display: inline-flex; align-items: center; gap: 12px; }
.ramp {
  width: 180px; height: 10px;
  background: linear-gradient(90deg, var(--neg), var(--tile0) 50%, var(--pos));
  background: linear-gradient(in oklab 90deg, var(--neg), var(--tile0) 50%, var(--pos));
}
.legend .void-key {
  display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-right: 8px;
  background: repeating-linear-gradient(135deg, transparent 0 3px, var(--rule) 3px 4px), var(--white);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.nomatch { margin: 0; font: 400 12px/1.5 var(--mono); color: var(--ink-soft); }

/* ---------- screen controls ---------- */
.ss-controls { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin: 0 0 12px; }
.search input {
  width: min(280px, 82vw); padding: 8px 12px; border: 1px solid var(--rule); border-radius: 0;
  background: var(--white); color: var(--ink); font: 400 13px/1.4 var(--mono);
}
.search input::placeholder { color: var(--ink-faint); }
/* 1px gaps over a --rule ground draw the dividers, so a wrapped row keeps
   them too; buttons grow to fill a wrapped row. */
.fgrp { display: inline-flex; flex-wrap: wrap; gap: 1px; border: 1px solid var(--rule); background: var(--rule); }
.fgrp button {
  flex: 1 1 auto; background: var(--white); border: 0; padding: 7px 13px; cursor: pointer;
  font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
}
.fgrp button:hover { color: var(--ink); background: var(--hover); }
.fgrp button:focus-visible { outline-offset: -2px; }
.fgrp button[aria-pressed="true"] { background: var(--pressed); color: var(--on-pressed); font-weight: 600; }
.fgrp .cnt { opacity: 0.65; margin-left: 5px; }
.capsel {
  display: inline-flex; gap: 8px; align-items: center;
  font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint);
}
.capsel select {
  -webkit-appearance: none; appearance: none; border-radius: 0; cursor: pointer;
  padding: 7px 30px 7px 10px; border: 1px solid var(--rule); color: var(--ink);
  font: 400 12px/1.4 var(--mono); letter-spacing: 0; text-transform: none;
  background: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%) calc(100% - 15px) 52% / 5px 5px no-repeat,
              linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%) calc(100% - 10px) 52% / 5px 5px no-repeat,
              var(--white);
}
.toggle {
  padding: 7px 12px; border: 1px solid var(--rule); border-radius: 0; background: var(--paper); cursor: pointer;
  font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
}
.toggle:hover { border-color: var(--ink); color: var(--ink); }
.toggle[aria-pressed="true"] { background: var(--pressed); border-color: var(--pressed); color: var(--on-pressed); font-weight: 600; }

/* ---------- table ----------
   The wrapper scrolls both ways (the table is wider than a phone), so it is the
   sticky container: capping its height to the viewport lets the header pin to
   its top edge, and the company column to its left, as the rows scroll. */
.ss-scroll {
  overflow: auto; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
  -webkit-overflow-scrolling: touch; background: var(--white);
}
table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 1000px; margin: 0; font: 400 13px/1.4 var(--mono); }
thead th {
  font: 600 10px/1.35 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
  text-align: right; vertical-align: bottom; padding: 13px 10px 9px; border-bottom: 2px solid var(--ink);
  white-space: normal; max-width: 96px; position: sticky; top: 0; z-index: 2; background: var(--white);
}
thead th.c-co { z-index: 3; } /* corner: above both the header row and the pinned company column */
thead th button {
  border: 0; background: none; padding: 0; cursor: pointer; text-align: inherit;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit;
}
thead th button:hover, thead th[aria-sort] button { color: var(--ink); }
thead th[aria-sort] button::after { color: var(--live); }
thead th[aria-sort="descending"] button::after { content: " ↓"; }
thead th[aria-sort="ascending"] button::after { content: " ↑"; }
th.c-co, td.c-co { text-align: left; }
.c-co {
  position: sticky; left: 0; z-index: 1; background: var(--white); min-width: 176px; max-width: none !important;
  box-shadow: 1px 0 0 var(--rule);
}
tbody td, tbody th {
  padding: 10px 9px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; vertical-align: middle;
  font: inherit; letter-spacing: normal; text-transform: none; color: inherit;
}
tbody tr.row:hover td, tbody tr.row:hover th { background: var(--hover); }
.expand {
  border: 0; background: none; padding: 0; cursor: pointer; text-align: left; vertical-align: middle;
  display: inline-grid; grid-template-columns: 14px auto; column-gap: 6px; align-items: baseline;
}
/* A name Sonde has a report on (sondemarkets.com only): a pill after the row's button, and a
   sentence in its details. */
.rep {
  display: inline-block; margin-left: 10px; padding: 2px 6px; vertical-align: middle;
  font: 500 9.5px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  color: var(--contract); background: var(--white); border: 1px solid var(--contract);
}
.rep:hover { color: var(--white); background: var(--contract); }
.rep:focus-visible { outline: 2px solid var(--contract); outline-offset: 2px; }
.note.cover { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--ink-soft); }
.note.cover b { font-weight: 600; color: var(--ink); }
.note.cover a { color: var(--contract); text-decoration: none; border-bottom: 1px solid color-mix(in oklab, var(--contract) 40%, var(--white)); }
.note.cover a:hover { border-bottom-color: var(--contract); }
.expand::before {
  content: ""; grid-row: 1 / span 2; width: 6px; height: 6px; margin: 0 0 0 2px; align-self: center;
  border-right: 1.5px solid var(--ink-faint); border-bottom: 1.5px solid var(--ink-faint);
  transform: translateY(-5px) rotate(-45deg); transition: transform 0.15s ease;
}
.expand[aria-expanded="true"]::before { transform: translateY(-7px) rotate(45deg); border-color: var(--contract); }
.expand .tk { font: 800 15px/1.25 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.expand .nm { font: 400 13px/1.3 var(--serif); color: var(--ink-soft); grid-column: 2; }
/* Segment rows: the group header from Sonde's search palette. */
tr.seg th {
  text-align: left; padding: 10px 12px 7px; position: sticky; left: 0;
  font: 400 10px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
tr.seg th span { margin-left: 8px; color: var(--ink-faint); }
tr.detail > td {
  text-align: left; white-space: normal; padding: 18px 18px 20px 36px;
  background: color-mix(in oklab, var(--paper) 50%, var(--white)); box-shadow: inset 3px 0 0 var(--contract);
}
.detail-inner {
  display: grid; grid-template-columns: minmax(240px, 0.8fr) minmax(420px, 2fr); gap: 16px 36px;
  max-width: 1080px; position: sticky; left: 36px;
}
.note { margin: 0; max-width: 60ch; font: 400 15px/1.55 var(--serif); color: var(--ink); }
.note.none { color: var(--ink-soft); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.facts div { min-width: 0; }
.facts dt { font: 400 10px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 3px; }
.facts dd { margin: 0; font: 400 13px/1.45 var(--mono); color: var(--ink); }
.flags { grid-column: 1 / -1; list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.flags li { font: 400 11px/1.4 var(--mono); padding: 3px 8px; border: 1px solid var(--rule); background: var(--white); color: var(--ink-soft); }
.empty { padding: 28px 16px; text-align: left; white-space: normal; color: var(--ink-soft); }
.empty .toggle { margin-left: 10px; }

/* ---------- method ----------
   Sonde's deep-dive drawer, holding a grid of its method cards. */
.method details { background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--ink-faint); }
.method details[open] { border-left-color: var(--contract); }
.method summary {
  list-style: none; cursor: pointer; user-select: none; padding: 11px 16px; background: var(--hover);
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap;
  font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft);
}
.method summary::-webkit-details-marker { display: none; }
.method summary:hover { color: var(--ink); background: var(--paper); }
.method summary > span:first-child::before { content: "+\00A0"; color: var(--contract); font-weight: 600; }
.method details[open] > summary > span:first-child::before { content: "\2212\00A0"; }
.method summary .meta { font-size: 10px; color: var(--ink-faint); letter-spacing: 0.05em; }
.method dl {
  margin: 0; border-top: 1px solid var(--rule); background: var(--rule);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1px;
}
.method dl div { background: var(--white); padding: 18px 20px; }
.method dl div.wide { grid-column: 1 / -1; }
.method dl div.wide dd { max-width: 78ch; }
.method dt { font: 600 10.5px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--contract); margin: 0 0 8px; }
.method dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- footer ---------- */
footer { margin-top: 64px; border-top: 2px solid var(--ink); padding-top: 24px; }
.risk { background: var(--white); padding: 20px 24px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.risk b { color: var(--ink); font-weight: 600; }
.fmeta {
  margin-top: 18px; display: flex; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap;
  font: 400 11px/1.5 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint);
}
.fmeta a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.fmeta a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- sub-nav (sondemarkets.com only) ----------
   Under Sonde's own nav, which carries the site's links: the screens as
   Sonde's segmented filter, the current one pressed. */
.ss-sub { display: flex; flex-wrap: wrap; gap: 1px; margin: 28px 0 0; padding: 0; list-style: none; width: fit-content; max-width: 100%; border: 1px solid var(--rule); background: var(--rule); }
.ss-sub a {
  display: block; padding: 7px 13px; background: var(--white); text-decoration: none; white-space: nowrap;
  font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
}
.ss-sub a:hover { color: var(--ink); background: var(--hover); }
.ss-sub a:focus-visible { outline-offset: -2px; }
.ss-sub a[aria-current="page"], .ss-sub a[aria-current="true"] { background: var(--pressed); color: var(--on-pressed); font-weight: 600; }
.ss-sub + .ss-sub { margin-top: 6px; }
.ss-sub + .rhead, nav[aria-label="Sector screens"] + .rhead { padding-top: 26px; }

/* ---------- landing page (multi-page site only) ----------
   Sonde's coverage rows. The industry title is stretched over the whole
   row, so the row is one link. */
.ss-list { background: var(--white); }
.ss-item {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 24px;
  align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--rule);
}
.ss-item:last-child { border-bottom: 0; }
.ss-item:hover { background: var(--hover); }
.ss-item h2 { font: 600 22px/1.2 var(--display); letter-spacing: -0.015em; margin: 0 0 5px; }
.ss-item h2 a { color: var(--ink); text-decoration: none; }
.ss-item h2 a::after { content: ""; position: absolute; inset: 0; }
.ss-item h2 a:focus-visible { outline: none; }
.ss-item h2 a:focus-visible::after { outline: 2px solid var(--contract); outline-offset: -2px; }
.ss-item p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); max-width: 50em; }
.ss-item .st { font: 400 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.ss-item .go {
  padding: 6px 12px; border: 1px solid var(--rule); background: var(--paper); white-space: nowrap;
  font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
}
.ss-item:hover .go { background: var(--live); border-color: var(--live); color: var(--on-live); font-weight: 600; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .rhead { padding-top: 28px; }
  .dek { font-size: 17px; }
  .byline { gap: 12px 22px; }
  /* One line per metric: name and count left, median right. */
  .pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 11px 16px; }
  .pick .nm { grid-area: 1 / 1; }
  .pick small { grid-area: 2 / 1; }
  .pick .pv { grid-area: 1 / 2 / 3 / 3; font-size: 23px; }
  .hall { padding: 16px 14px 14px; }
  .aisle { grid-template-columns: 1fr; }
  .aisle-label { padding-top: 0; }
  .racks { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
  .tile { width: auto; height: 54px; padding: 6px 7px 5px; }
  .fgrp { display: flex; width: 100%; }
  .c-co { min-width: 148px; }
  /* Beside the name the pill would widen the pinned column and push a figure off a phone, so it sits under it. */
  .rep { display: table; margin: 5px 0 0 20px; }
  .detail-inner { grid-template-columns: 1fr; left: 16px; }
  tr.detail > td { padding-left: 16px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .ss-item { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .ss-item .go { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
/* ---------- construction tracker ----------
   Stages share one ramp: online is solid ink, under construction is
   --pos (--contract, the page's subject), and the less certain stages fade
   toward the empty tile colour; announced uses Sonde's pipeline hatch. */
.s-energized { --st: var(--ink); }
.s-construction { --st: var(--pos); }
.s-sitework { --st: color-mix(in oklab, var(--pos) 52%, var(--tile0)); }
.s-power { --st: color-mix(in oklab, var(--pos) 24%, var(--tile0)); }
.s-announced { --st: var(--tile0); }
.hatch, .s-announced .rung-track i, .swatch.s-announced {
  background: repeating-linear-gradient(135deg, transparent 0 4px, var(--rule) 4px 5px), var(--white);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.swatch { display: inline-block; width: 12px; height: 10px; border-radius: 0; margin-right: 7px; vertical-align: -1px; background: var(--st); }

.pipe { background: var(--white); padding: 20px 24px 18px; }
.pipe-filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-bottom: 16px; }
.pipe-sum { margin: 0 0 16px; max-width: 68ch; font: 400 17px/1.55 var(--serif); color: var(--ink); }
.pipe-note { margin: 14px 0 0; color: var(--ink-soft); font: 400 12px/1.5 var(--mono); max-width: 72ch; }
.ladder { list-style: none; margin: 0; padding: 0; }
.rung {
  display: grid; grid-template-columns: minmax(150px, 190px) 1fr minmax(88px, auto); column-gap: 18px; align-items: center;
  padding: 12px 0 11px; border-top: 1px solid var(--rule);
}
.rung:first-child { border-top: 0; }
.rung-name { font: 600 15px/1.25 var(--display); letter-spacing: -0.005em; }
.rung-name span { display: block; margin-top: 4px; color: var(--ink-faint); font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.rung-track { height: 12px; border-radius: 0; background: color-mix(in oklab, var(--tile0) 40%, var(--white)); overflow: hidden; }
.rung-track i { display: block; height: 100%; border-radius: 0; background: var(--st); }
.rung-val { text-align: right; font: 600 14px/1.2 var(--mono); white-space: nowrap; }
.rung-def { grid-column: 2 / -1; margin: 6px 0 0; color: var(--ink-soft); font: 400 14px/1.5 var(--serif); max-width: 70ch; }
.rung.focus { padding: 16px 0 14px; }
.rung.focus .rung-name { font-size: 17px; }
.rung.focus .rung-track { height: 28px; }
.rung.focus .rung-val { font: 800 clamp(22px, 3vw, 30px)/1 var(--display); letter-spacing: -0.02em; }
.rung.focus .rung-def { color: var(--ink); }

.block-lede { margin: 0 0 14px; color: var(--ink-soft); font: 400 15.5px/1.55 var(--serif); max-width: 68ch; }
.due {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(70px, 1fr); gap: 12px; align-items: end;
  background: var(--white); padding: 20px 24px 14px; overflow-x: auto;
}
.due-col { display: grid; grid-template-rows: auto 170px auto; justify-items: center; gap: 6px; min-width: 70px; }
.due-val { font: 600 12px/1.3 var(--mono); white-space: nowrap; }
.due-stack { width: 100%; max-width: 76px; height: 170px; display: flex; flex-direction: column-reverse; border-bottom: 1px solid var(--rule); }
.due-stack span { display: block; width: 100%; background: var(--st); }
.due-lab { font: 400 11px/1.3 var(--mono); color: var(--ink-soft); white-space: nowrap; }
.due + .legend { background: var(--white); margin-top: 0; padding: 12px 24px 16px; }

.cmp { background: var(--white); padding: 6px 24px; }
.cmp-row { display: grid; grid-template-columns: minmax(190px, 300px) 1fr 84px; gap: 6px 18px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule); }
.cmp-row:first-child { border-top: 0; }
.cmp-name { font: 400 14px/1.35 var(--serif); }
.cmp-name a, .cmp-name b { font: 600 15px/1.3 var(--display); color: var(--ink); }
.cmp-name span { display: block; margin-top: 2px; color: var(--ink-soft); font: 400 11px/1.4 var(--mono); }
.cmp-bar { display: flex; height: 10px; }
.cmp-bar i { display: block; height: 100%; background: var(--st); }
.cmp-bar i.ref { --st: color-mix(in oklab, var(--ink-soft) 45%, var(--tile0)); }
.cmp-row.ours .cmp-name b, .cmp-row.ours .cmp-val { font-weight: 800; }
.cmp-val { text-align: right; font: 600 13px/1.3 var(--mono); white-space: nowrap; }

.co-table { min-width: 760px; }
.ph-table { min-width: 1000px; }
th.txt, td.txt { text-align: left; }
.co-table .tk { font: 800 15px/1.25 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.co-table .nm { display: block; font: 400 13px/1.3 var(--serif); color: var(--ink-soft); }
.co-table .c-co, .ph-table .c-co { min-width: 200px; }
td a, th a { color: var(--ink); text-underline-offset: 2px; }
.note.sub { margin-top: 10px; color: var(--ink-soft); }
tr.seg th .swatch { margin-right: 8px; }

@media (max-width: 760px) {
  .pipe, .due, .cmp { padding-left: 14px; padding-right: 14px; }
  .due + .legend { padding-left: 14px; padding-right: 14px; }
  .rung { grid-template-columns: 1fr auto; row-gap: 6px; }
  .rung-track { grid-column: 1 / -1; grid-row: 2; }
  .rung-def { grid-column: 1 / -1; }
  .cmp-row { grid-template-columns: 1fr auto; }
  .cmp-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- listings calendar ----------
   A month grid of the events (weekdays wide, weekends narrow: markets are shut), an agenda in
   its place on phones, then the table. Event colours follow their meaning elsewhere: listed is
   --contract (arrived), expected is --live (the next thing to watch), lock-ups the dim live,
   filings neutral, withdrawals an --alert outline. Class names carry an lc- prefix so nothing
   collides with Sonde's site.css. */
.lc-listed, .lc-st-listed { --ev: var(--contract); --on-ev: var(--on-strong); --st: var(--contract); }
.lc-expected, .lc-st-expected { --ev: var(--live); --on-ev: var(--on-live); --st: var(--live); }
.lc-lockup { --ev: var(--live-dim); --on-ev: var(--ink); }
.lc-filed, .lc-st-filed { --ev: color-mix(in oklab, var(--ink-faint) 28%, var(--white)); --on-ev: var(--ink); --st: color-mix(in oklab, var(--ink-faint) 55%, var(--white)); }
.lc-withdrawn, .lc-st-withdrawn { --ev: var(--white); --on-ev: var(--alert); --st: var(--alert); }

.lc-cal { background: var(--white); padding: 18px 20px 18px; }
.lc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.lc-head h3 { font: 600 22px/1.2 var(--display); letter-spacing: -0.015em; margin: 0; min-width: 8.6em; text-align: center; }
.lc-step { width: 34px; padding: 5px 0; font-size: 15px; line-height: 1; }
.lc-head .toggle:disabled { opacity: 0.4; cursor: default; border-color: var(--rule); color: var(--ink-soft); }
.lc-keys { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 0; }
.lc-keys button {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--rule); background: var(--white); cursor: pointer;
  padding: 5px 9px; font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
}
.lc-keys button:hover { border-color: var(--ink); color: var(--ink); }
.lc-keys button[aria-pressed="false"] { color: var(--ink-faint); }
.lc-keys button[aria-pressed="false"] .lc-key { background: none; box-shadow: inset 0 0 0 1px var(--rule); }
.lc-key { display: inline-block; width: 12px; height: 10px; background: var(--ev); }
.lc-key.lc-withdrawn { box-shadow: inset 0 0 0 1px var(--alert); }
.lc-ics { margin: 12px 0 0; font: 400 10.5px/1.6 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }
.lc-ics a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--rule); }
.lc-ics a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.lc-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, 0.5fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
}
.lc-dow { background: var(--hover); padding: 6px 8px; font: 600 10px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.lc-day { background: var(--white); min-height: 96px; padding: 6px 6px 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.lc-day.wkd, .lc-dow.wkd { background: color-mix(in oklab, var(--paper) 60%, var(--white)); }
.lc-day.out { background: var(--paper); }
.lc-n { font: 400 11px/1.2 var(--mono); color: var(--ink-faint); margin-bottom: 2px; }
.lc-day.today { box-shadow: inset 0 3px 0 var(--live); }
.lc-day.today .lc-n { color: var(--ink); font-weight: 600; }
.lc-ev {
  border: 0; border-radius: 0; padding: 2px 6px; max-width: 100%; cursor: pointer; text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: var(--ev); color: var(--on-ev); font: 600 11px/1.4 var(--mono); letter-spacing: 0.02em;
}
.lc-ev.lc-withdrawn { box-shadow: inset 0 0 0 1px var(--alert); text-decoration: line-through; }
.lc-ev:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.lc-ev:focus-visible { outline-offset: 1px; }

.lc-agenda { display: none; list-style: none; margin: 0; padding: 0; }
.lc-agenda > li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.lc-agenda > li:first-child { border-top: 0; }
.lc-agenda > li.today .lc-ad { color: var(--live); }
.lc-ad { font: 600 12px/1.4 var(--mono); }
.lc-ad span { display: block; font-weight: 400; color: var(--ink-faint); }
.lc-al { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.lc-al li { font: 400 14px/1.45 var(--serif); color: var(--ink-soft); }
.lc-al .lc-ev { margin-right: 8px; vertical-align: 1px; }
.lc-agenda > li.lc-none { display: block; font: 400 12px/1.5 var(--mono); color: var(--ink-soft); }

.lc-table { min-width: 600px; }
.lc-table .c-co { min-width: 170px; max-width: 230px !important; }
.lc-table tbody th.c-co { white-space: normal; }
.lc-table td.lc-scr { white-space: normal; min-width: 170px; max-width: 250px; line-height: 1.5; }
.lc-tag {
  display: inline-block; margin-left: 4px; padding: 0 5px; border: 1px solid var(--rule);
  font: 400 10px/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint);
}

@media (max-width: 760px) {
  .lc-cal { padding: 14px; }
  .lc-grid { display: none; }
  .lc-agenda { display: block; }
  .lc-keys { margin-left: 0; }
  .lc-head h3 { min-width: 0; flex: 1 1 auto; }
}
/* Companies that fit a screen: an ink bar under the chip, so they stand out among all the listings. */
.lc-ev.fit { box-shadow: inset 0 -3px 0 var(--ink); font-weight: 700; }
.lc-ev.fit:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.lc-ev.lc-withdrawn.fit { box-shadow: inset 0 0 0 1px var(--alert), inset 0 -3px 0 var(--ink); }
.lc-fitkey { margin: 10px 0 0; font: 400 11px/1.4 var(--mono); color: var(--ink-soft); }
.lc-fitkey .lc-ev { cursor: default; margin-right: 6px; }
.lc-ind { color: var(--ink-soft); font: 400 13px/1.4 var(--serif); }
.detail-inner.lc-facts-only { grid-template-columns: minmax(0, 1fr); }
.lc-facts-only .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .lc-facts-only .facts { grid-template-columns: 1fr 1fr; } }

/* The list first, the month beside it as a small calendar; a click on the small one (or Expand)
   opens the full month above the list. */
.lc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 20px; align-items: start; }
.lc-layout.expanded { grid-template-columns: minmax(0, 1fr); }
.lc-layout.expanded .lc-side { order: -1; }
.lc-list, .lc-side { min-width: 0; }
.lc-size {
  border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink-soft);
  font: 600 10.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--rule);
}
.lc-size:hover { color: var(--ink); border-bottom-color: var(--ink); }
.lc-layout:not(.expanded) .lc-grid, .lc-layout:not(.expanded) .lc-agenda, .lc-layout:not(.expanded) #now { display: none; }
.lc-layout.expanded .lc-mini { display: none; }
.lc-layout:not(.expanded) .lc-cal { padding: 12px 12px 14px; }
.lc-layout:not(.expanded) .lc-head { margin-bottom: 10px; gap: 6px; }
.lc-layout:not(.expanded) .lc-head h3 { font-size: 16px; min-width: 0; flex: 1 1 auto; }
.lc-layout:not(.expanded) .lc-step { width: 28px; padding: 3px 0; }
.lc-layout:not(.expanded) .lc-keys button { padding: 4px 7px; font-size: 9.5px; letter-spacing: 0.04em; }
.lc-mini {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; width: 100%; padding: 0; margin: 0;
  border: 1px solid var(--rule); background: var(--rule); cursor: zoom-in; font: inherit; color: inherit; text-align: center;
}
.lc-mini:hover { border-color: var(--ink); }
.lc-mini:focus-visible { outline-offset: 2px; }
.lc-mw { background: var(--hover); padding: 4px 0; font: 600 9px/1.2 var(--mono); letter-spacing: 0.06em; color: var(--ink-soft); }
.lc-md { background: var(--white); height: 34px; padding: 4px 2px 3px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lc-md.wkd { background: color-mix(in oklab, var(--paper) 60%, var(--white)); }
.lc-md.out { background: var(--paper); }
.lc-md.today { box-shadow: inset 0 2px 0 var(--live); }
.lc-mn { font: 400 10.5px/1.1 var(--mono); color: var(--ink-faint); }
.lc-md.fit .lc-mn { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }
.lc-md.today .lc-mn { color: var(--ink); }
.lc-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 26px; }
.lc-dots i { display: block; width: 5px; height: 5px; background: var(--ev); }
.lc-dots i.lc-withdrawn { box-shadow: inset 0 0 0 1px var(--alert); }
.lc-dots i.lc-filed { background: color-mix(in oklab, var(--ink-faint) 60%, var(--white)); }
@media (max-width: 760px) {
  .lc-layout { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- the page as plain HTML (sondemarkets.com) ----------
   build.py writes each page into #app as ordinary HTML for crawlers and for readers
   without JavaScript; screen.js replaces it. With script on it stays out of sight
   until then (shell-sonde.html adds .js, and takes it off again if the page was
   never drawn), so nothing flashes. Read without script it is a plain page: the
   heading, one table, and the list of every screen. */
.js .ss-pre { display: none; }
.ss-pre .ss-asof { margin: 14px 0 0; font: 400 12px/1.5 var(--mono); color: var(--ink-soft); }
.ss-pre h2 { margin: 36px 0 10px; font: 800 20px/1.2 var(--display); letter-spacing: -0.01em; }
.ss-pre h3 { margin: 20px 0 6px; font: 400 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.ss-pre p, .ss-pre li { max-width: 60em; font: 400 15px/1.55 var(--serif); color: var(--ink-soft); }
.ss-pre ul { margin: 0; padding-left: 18px; }
.ss-pre a { color: var(--contract); }
.ss-static { margin-top: 28px; }
.ss-static thead th { text-align: right; }
.ss-static thead th:first-child, .ss-static thead th:nth-child(2) { text-align: left; }
.ss-static tbody th[scope="row"] { text-align: left; white-space: normal; min-width: 150px; font: 400 13px/1.35 var(--serif); color: var(--ink-soft); }
.ss-static tbody th[scope="row"] b { display: block; font: 800 15px/1.25 var(--display); color: var(--ink); }
.ss-static tbody th[scope="row"] a { display: block; margin-top: 3px; }
.ss-static td.txt { text-align: left; white-space: normal; min-width: 150px; font: 400 14px/1.45 var(--serif); }
