/* perrycs.com/ups-monitor (upsMonitor.html): the UPS Monitor download page.

   On top of promo.css, so it reads as one of the advertising pages. These
   are only the pieces a download page has and the others do not: the file
   cards, the install command, the SHA-256 table.

   Tokens only, never a colour: it has to look right in all eight themes.
   Sizes through --font-scale for the same reason.

   Added 2026-10-09. */

.ups-monitor [hidden] {
  display: none !important;
}

.ups-monitor h2 i {
  color: var(--accent);
  margin-right: 6px;
}

.ups-monitor-free {
  margin: -4px 0 18px;
  color: var(--ink);
  font-weight: 700;
}

.ups-monitor-trouble {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--warn);
  color: var(--ink);
}

/* ------------------------------------------------------------ the cards */

.ups-monitor-card {
  max-width: var(--promo-text);
  margin: 12px 0 10px;
  padding: 20px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--rule);
}

.ups-monitor-meta {
  margin: 10px 0 14px;
  color: var(--ink-muted);
  font-size: calc(0.95rem * var(--font-scale, 1)) !important;
}

.ups-monitor-facts,
.ups-monitor-debs,
.ups-monitor-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ups-monitor-facts li {
  margin: 6px 0;
  color: var(--ink);
}

.ups-monitor-facts i,
.ups-monitor-links i {
  width: 1.4em;
  color: var(--accent);
  text-align: center;
}

.ups-monitor-note {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

.ups-monitor-note p {
  margin: 0;
  color: var(--ink);
}

.ups-monitor-debs li {
  margin: 0 0 14px;
}

.ups-monitor-debs p {
  margin: 6px 0 0;
  color: var(--ink-muted);
}

/* A file name inside a button: a long one may break rather than push the
   page sideways on a phone. */
.ups-monitor-debs .promo-btn {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ups-monitor-size {
  color: var(--ink-faint);
}

.ups-monitor-pick {
  margin: 4px 0 12px;
  color: var(--ink);
}

.ups-monitor code,
.ups-monitor-cmd {
  font-family: ui-monospace, 'Cascadia Mono', 'Consolas', monospace;
  font-variant-ligatures: none;
  background: var(--code-bg);
  color: var(--code-ink);
}

.ups-monitor code {
  padding: 1px 6px;
  border-radius: 4px;
}

/* The apt command: copied from here into a terminal, so it wraps rather
   than hiding its tail off the edge. */
.ups-monitor-cmd {
  margin: 8px 0;
  padding: 12px 14px;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: calc(0.9rem * var(--font-scale, 1));
}

.ups-monitor-hint {
  margin: 8px 0 0;
  color: var(--ink-faint);
  font-size: calc(0.9rem * var(--font-scale, 1)) !important;
}

/* ------------------------------------------------------------ SHA-256 */

.ups-monitor .table-scroll {
  overflow-x: auto;
}

.ups-monitor-sums {
  border-collapse: collapse;
  font-size: calc(0.9rem * var(--font-scale, 1));
}

.ups-monitor-sums th,
.ups-monitor-sums td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  color: var(--ink);
}

.ups-monitor-sums td:first-child {
  white-space: nowrap;
}

/* 64 characters will not fit a phone; let it break anywhere rather than
   make the table scroll. */
.ups-monitor-sums td code {
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* ------------------------------------------------------------ the rest */

.ups-monitor-links li {
  margin: 8px 0;
  color: var(--ink-muted);
}

.ups-monitor-links a {
  font-weight: 700;
}

.ups-monitor-older summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}

.ups-monitor-older ul {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}

.ups-monitor-older li {
  margin: 6px 0;
  overflow-wrap: anywhere;
}
