/* Officer hub: Credits review (President only, public/js/hub/credits-review.js). The Free AI Credits
   offers held off the public page, one card each: why it is held in an amber box, what the page would say
   as label and value, the plain steps, the watch lines, and the research sources with their quotes. Tokens
   come from app.css, the count pills from hub.css, the links in the steps from docs.css (.sd-link wraps
   anywhere, so nothing scrolls sideways at 320). Light and dark both follow the tokens. */

.crv-only { max-width: 560px; }

/* The count pills are the hub's (.hub-stat in hub.css). */
.crv-stats { margin: 0 0 8px; }
.crv-asof { margin: 0; }

.crv-part { padding-top: 26px; }
.crv-part-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; margin-bottom: 12px; }
/* The title and its count stay on one line; the note under it on a phone (at 320 the count fell alone
   onto a line of its own). flex: none alone is not enough in WebKit: every h3 is text-wrap: balance
   (app.css, hub.css), and balancing at the heading's own width put the count on a second line at 1280,
   375 and 320 (42px tall, measured 2026-09-30). nowrap keeps it at 21px; the longest title and count is
   150px, and a phone at 320 has 288. */
.crv-part-head h3 { flex: none; margin: 0; font-size: 18px; white-space: nowrap; }
.crv-part-head .hint { margin: 0; }
.crv-count {
  display: inline-block; min-width: 24px; margin-left: 4px; padding: 1px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 700; text-align: center;
  font-variant-numeric: tabular-nums; vertical-align: 2px;
}

.crv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

/* A card per held offer, flat with a border like every hub card, its left edge amber: waiting. */
.crv-card {
  min-width: 0; max-width: 860px; padding: 18px 20px;
  border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--warn);
}
.crv-name { margin: 0; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.crv-link { color: var(--text); text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 3px; }
.crv-link:hover { color: var(--accent); }
.crv-where { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.crv-where strong { color: var(--text); font-weight: 650; }

/* Small labels over each part of a card, like the table headers on Admin. */
.crv-label {
  margin: 16px 0 6px; font-size: 12px; font-weight: 750; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}

/* Why it is held: the part Benji reads first. */
.crv-why {
  margin: 14px 0 0; padding: 12px 14px 12px 16px; border-radius: 10px;
  background: color-mix(in srgb, var(--warn) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line));
}
.crv-why .crv-label { margin-top: 0; color: var(--warn); }
.crv-why ul, .crv-watch, .crv-steps { margin: 0; padding-left: 20px; }
/* Addresses wrap after a slash (<wbr>, linked-text.js), not inside a word: .sd-link's anywhere split
   one address mid-word at 320. A part longer than the line still breaks (break-word). */
.crv-watch .sd-link, .crv-steps .sd-link { overflow-wrap: break-word; }
.crv-why li + li, .crv-watch li + li, .crv-steps li + li, .crv-sources li + li { margin-top: 5px; }
.crv-watch { color: var(--muted); font-size: 14px; }

/* The research sources: each its page as a link, then its quote. A long address in a label wraps anywhere
   rather than pushing the card wider at 320. */
.crv-sources { margin: 0; padding-left: 20px; font-size: 14px; }
.crv-source { overflow-wrap: anywhere; }
.crv-quote { color: var(--muted); }

/* What you get and the columns: label, then value, side by side where they fit. */
.crv-cols {
  display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr);
  gap: 6px 18px; margin: 14px 0 0; font-size: 14px;
}
.crv-cols dt { color: var(--muted); font-weight: 650; }
.crv-cols dd { margin: 0; overflow-wrap: anywhere; }

/* A phone: one column, each label over its value. */
@media (max-width: 560px) {
  .crv-card { padding: 14px 14px 16px; }
  .crv-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .crv-cols dd { margin-bottom: 8px; }
  .crv-cols dd:last-child { margin-bottom: 0; }
}
