﻿/* -------------------------------------------------------------------------------
   No spoilers

   The verdict was readable almost from the click: the likely-goal line was painted immediately, and a
   flagged measurement turned colour about two seconds in. The rules that were meant to hide them kept
   losing to the older stylesheet, which owns display and colour for these blocks in a dozen places.

   So the gate lives in its own file, loaded last, with nothing to compete against. Anything that
   states a conclusion waits for the verdict to be shown.
   ------------------------------------------------------------------------------- */
.result.pending .intent-line,
.result.pending .feed-line,
.result.pending .official-line,
.result.pending .known-line,
.result.pending .verdict-text h2,
.result.pending .verdict-text .badge,
.result.pending .stamp,
.result.pending .block-title,
.result.pending .reasons,
.result.pending details.score-more {
  display: none !important;
}

/* measurements keep neutral colours while they are being gathered */
.result.pending .measure.hot {
  color: var(--muted) !important;
  border-color: var(--line) !important;
  background: transparent !important;
  box-shadow: none !important;
}
/* The measurement strip carries the values, and several of them state the answer. It arrives with the
   verdict, so the examination shows the address being read and nothing that settles it. */
/* The strip arrives when the needle does, not at the click. It was keyed to the verdict, but the
   strip is removed a few seconds into the scene, so the gate hid it permanently. The dial's arrival
   is the right beat: the measurements are in, and the answer is still withheld until it settles. */
.result.pending:not(.dialcoming) .measures-strip { opacity: 0 !important; }
.result.dialcoming .measures-strip { opacity: 1; transition: opacity .5s ease; }

@media print {
  .result.pending .measures-strip { opacity: 1 !important; }
}

/* Invisible is not the same as absent. The measurement strip and the dial were hidden with opacity,
   which kept their height: on a phone that was 124px of nothing above the address, and the first
   screenshots of the examination looked broken rather than deliberate. They leave the layout now and
   return at their beats. */
.result.pending:not(.dialcoming) .measures-strip { display: none !important; }
.result.pending .gauge-fade:not(.in) { display: none !important; }


@media (max-width: 640px) {
  .result.pending .verdict-text { margin-bottom: 0 !important; }
}

/* -------------------------------------------------------------------------------
   The address on a phone

   Each piece was a stacked row with a 16px gap, which made sense when every piece carried its own
   note underneath. The notes live in one panel now, so the stack was six rows of mostly air: 314px
   for an address that fits in two lines. Pieces flow and wrap instead, and the panel sits under them.
   ------------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .autopsy-line {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 2px 10px !important;
  }
  .autopsy-line .seg {
    display: inline-flex !important;
    width: auto !important;
    padding: 1px 0 !important;
  }
  .autopsy-panel {
    margin-top: 10px !important;
    max-height: 190px;
  }
  .autopsy { padding-bottom: 12px !important; }
}

/* the handle at the needle's base was still carrying the tone */
.result.pending .gauge .needle::after,
.result.pending .gauge .needle::before {
  background: #E9E6DE !important;
  box-shadow: 0 0 12px rgba(233, 230, 222, .45) !important;
  border-color: #E9E6DE !important;
}

/* The fold keeps the record for paper, where the notes panel is not printed, and stops repeating it
   on screen, where the dissection above already shows every piece with its note. */
.fold-print-only { display: none; }
@media print {
  .fold-print-only { display: block; }
}

/* The verdict sentence was hidden with opacity, so it held 160px of empty space on a phone for the whole
   examination: the card looked broken above the address. Hidden content must leave the layout. */
.result.pending .verdict-line { display: none !important; }
.result.verdict-shown .verdict-line { display: block; }

/* Before the first note lands the panel is an empty box with a 74px minimum: a void at the top of the
   examination. It leaves the layout until it has something in it. */
.autopsy-panel:empty { display: none !important; }

/* The dissector kept two invisible blocks in the flow while the address was being read: a scan cursor
   left over from the old tag design, and the closing caption, which is revealed only after the sweep.
   Together they were 60px of nothing on a phone. */
.autopsy-line .scan-cursor { display: none !important; }
.autopsy-caption { display: none !important; }
.autopsy.swept .autopsy-caption { display: block !important; }
