/* /demos/reconcile-lab page chrome.
 *
 * Loaded only by this page, through Tags.PageCSS. Not a shell asset, so sw.js's
 * CACHE_VERSION has nothing to say about it — the ?v= in PageCSSHref is the
 * whole cache-busting story, and it is served with a 30-day max-age.
 *
 * COLORS ARE CURRENTCOLOR AND TWO ACCENTS. The shell owns the palette and this
 * page has a light and a dark theme to survive, so everything structural is
 * drawn from the inherited text color at reduced opacity rather than from a
 * hard-coded gray that reads as invisible in one of the two.
 *
 * THERE IS NO BUTTON APPEARANCE RULE HERE, deliberately. The sibling page
 * shipped .bpl__start / .bpl__stop with their own styling, which tied with
 * .btn-primary on specificity and loaded after it, so the shared pill never
 * applied and the actions rendered as plain outlined boxes. The actions on this
 * page carry btn/btn-primary and btn/btn-ghost and nothing else, and this file
 * styles their CONTAINER only.
 */

.rcl__lede {
  max-width: 62ch;
}

.rcl__honesty,
.rcl__where,
.rcl__reading {
  max-width: 62ch;
  margin: 1.5rem 0;
}

.rcl__honesty h2,
.rcl__where h2,
.rcl__reading h2 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.rcl__honesty {
  border-left: 3px solid currentColor;
  padding-left: 1rem;
  opacity: 0.92;
}

.rcl__panel {
  margin: 2rem 0;
  padding: 1.25rem;
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 12px;
}

.rcl__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.rcl__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 9rem;
}

.rcl__field--wide {
  flex: 1 1 18rem;
}

.rcl__field label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.rcl__field input,
.rcl__field select {
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(128, 128, 128, 0.45);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
}

.rcl__policy-note {
  font-size: 0.85rem;
  opacity: 0.75;
  margin: 0.35rem 0 0;
  min-height: 2.4em;
}

.rcl__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* THE HIDDEN ATTRIBUTE HAS TO KEEP HIDING. `[hidden] { display: none }` is a
 * USER-AGENT rule, and any author rule beats a user-agent one at any
 * specificity — so the display the shared .btn class sets wins, and an action
 * button toggled through `hidden` would stay on screen for the whole session it
 * started. Measured on the sibling page against a live .btn, where setting
 * `hidden` left display at "block". This is the re-assertion that fixes it, and
 * the page's guard asserts this rule is present. */
[hidden] {
  display: none !important;
}

.rcl__capacity,
.rcl__status {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.rcl__capacity {
  opacity: 0.75;
}

.rcl__clamps {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.rcl__readout {
  margin-top: 1.25rem;
}

.rcl__diverged-head {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.9rem;
}

.rcl__diverged-head strong {
  font-size: 1.4rem;
}

.rcl__diverged-cap {
  opacity: 0.7;
}

.rcl__diverged-bar {
  height: 8px;
  margin: 0.4rem 0;
  border-radius: 4px;
  background: rgba(128, 128, 128, 0.25);
  overflow: hidden;
}

.rcl__diverged-fill {
  display: block;
  height: 100%;
  width: 0;
  background: currentColor;
  opacity: 0.55;
  transition: width 120ms linear;
}

.rcl__spark {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: 0.25rem;
}

.rcl__spark-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  opacity: 0.7;
}

.rcl__spark-caption {
  font-size: 0.8rem;
  opacity: 0.7;
  margin: 0.25rem 0 0;
}

.rcl__contrast {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.25rem 0;
}

.rcl__tile {
  flex: 1 1 14rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 10px;
}

.rcl__tile-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.rcl__tile-value {
  font-size: 1.6rem;
  line-height: 1.1;
}

.rcl__tile-sub {
  font-size: 0.8rem;
  opacity: 0.75;
}

.rcl__verdict {
  font-size: 0.95rem;
  margin: 0.75rem 0;
}

.rcl__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem 1rem;
  margin: 1rem 0 0;
}

.rcl__stats div {
  display: flex;
  flex-direction: column;
}

.rcl__stats dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.65;
}

.rcl__stats dd {
  margin: 0;
  font-size: 1.05rem;
}

.rcl__footnote {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 1rem;
  max-width: 62ch;
}

.rcl__provenance {
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .rcl__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .rcl__field {
    min-width: 0;
  }
}
