/* Gnomon (/gnomon): the project page, loaded after styles.css and blog.css. It uses the Fusee page's frame (.fz); these are
   its own. A separate file so that no build without the Gnomon page carries any of it. */
.lg-dot {
  background: linear-gradient(#d9d9de, #d9d9de) center / 2px 2px no-repeat;
}
.gn .body > .code {
  margin-top: 28px;
}
.gn .fig + .prose {
  margin-top: 28px;
}
.gn #time .body + .body {
  margin-top: 16px;
}

/* the review: a branch's diff, its check, and merge and undo */
.rv {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.rv-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
}
.rv-branch {
  color: var(--ink);
}
.rv-branch em {
  margin: 0 8px;
  font-style: normal;
  color: var(--mute);
}
.rv-branch small {
  margin-left: 14px;
  font-size: 1em;
  color: var(--mute);
}
.rv-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.rv-state i {
  width: 6px;
  height: 6px;
  box-shadow: inset 0 0 0 1px var(--red);
}
[data-state="merged"] .rv-state i {
  background: var(--red);
}
[data-state="undone"] .rv-state i {
  box-shadow: inset 0 0 0 1px var(--mute);
}
.rv-rows li {
  display: grid;
  grid-template-columns: 6.5em 5.5em 5em minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 14px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  transition: opacity 0.2s;
}
.rv-t {
  color: var(--ink);
}
.rv-v del {
  margin-right: 12px;
  color: var(--mute);
  text-decoration: line-through;
}
.rv-v ins {
  text-decoration: none;
  color: var(--red);
}
[data-state="merged"] .rv-v ins {
  color: var(--ink);
}
[data-state="undone"] .rv-rows li {
  opacity: 0.45;
}
.rv-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
}
.rv-check i {
  width: 6px;
  height: 6px;
  background: var(--bit-on);
}
.rv-check span {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mute);
}
.rv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 8px;
  padding: 16px 18px;
}
.rv-actions .btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.rv-say {
  flex-basis: 100%;
  min-height: 1.5em;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

/* the counter merge */
.cnt li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 2.5em;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}
.cnt li:first-child {
  border-top: 0;
  padding-top: 0;
}
.cnt li.is-sum {
  border-top-color: var(--ink);
}
.cnt-name {
  font-size: 14.5px;
  color: var(--ink);
}
.cnt svg {
  display: block;
}
.cnt-val {
  text-align: right;
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.is-sum .cnt-val {
  color: var(--red);
}
.g-sold {
  fill: none;
  stroke: #a2a2a9;
  stroke-width: 1.2;
}

/* bisect: the check run at the middle of what's left, until one transaction remains */
.bs-steps li {
  display: grid;
  grid-template-columns: 13em minmax(0, 1fr) 2.5em;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  transition: opacity 0.25s;
}
.bs-steps li:first-child {
  border-top: 0;
  padding-top: 0;
}
.bs-steps li.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.bs-name {
  font-size: 14.5px;
  color: var(--ink);
  white-space: nowrap;
}
.bs-steps svg {
  display: block;
  width: 100%;
  height: auto;
}
.bs-val {
  text-align: right;
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.bs-steps li:last-child .bs-val {
  color: var(--red);
}
.bs-in {
  fill: var(--bit-on);
}
.bs-out {
  fill: #e6e6e9;
}
.bs-pass {
  fill: var(--ink);
}
.bs-fail {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.2;
}
.bs-hit {
  fill: var(--red);
}
.bs-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e4e4e8;
}
.bs-say {
  min-height: 3em;
  max-width: 44em;
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--body);
}
.bs-foot .btn[aria-disabled="true"] {
  opacity: 0.3;
  cursor: default;
}

/* time travel: a table's week, and the handle that reads it */
.tt canvas {
  display: block;
  width: 100%;
}
.tt-out {
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.tt input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 30px;
  margin: 16px 0 0;
  background: transparent;
  cursor: ew-resize;
}
.tt input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background: var(--ink);
}
.tt input[type="range"]::-moz-range-track {
  height: 1px;
  background: var(--ink);
}
.tt input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 8px;
  height: 22px;
  margin-top: -11px;
  border: 0;
  border-radius: 0;
  background: var(--red);
}
.tt input[type="range"]::-moz-range-thumb {
  width: 8px;
  height: 22px;
  border: 0;
  border-radius: 0;
  background: var(--red);
}
.tt input[type="range"]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
.tt-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mute);
}

@media (max-width: 560px) {
  .rv-rows li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .rv-f {
    text-align: right;
  }
  .rv-k {
    display: none;
  }
  .rv-v {
    grid-column: 1 / -1;
  }
  .rv-check span {
    margin-left: 16px;
    flex-basis: 100%;
  }
  .bs-steps li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }
  .bs-steps svg {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rv-rows li,
  .bs-steps li {
    transition: none;
  }
}
