#rp-calculator [data-rp-personal][hidden] {
  display: none !important;
}

#rp-result .legal-result-note {
  font-size: .8rem;
  line-height: 1.6;
}

#rp-result .legal-result-row small {
  display: block;
  margin-top: .25rem;
  font-size: .75rem;
  line-height: 1.5;
  opacity: .85;
}

#rp-result .legal-result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}

#rp-result .legal-result-actions .button {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  margin: 0;
}

#rp-result button.button-ghost {
  background: transparent;
  color: #fffaf2;
}

#rp-result a[data-tool-consultation] {
  grid-column: 1 / -1;
  background: #f4efe7;
  border-color: #e8d4b6;
  color: #102e3c;
}

#rp-result button.button-ghost:hover {
  background: #254754;
}

#rp-result {
  scroll-margin-top: var(--rp-scroll-margin, 36px);
}

@media (min-width: 961px) {
  #rp-result {
    top: var(--rp-header-offset, 154px);
    padding-bottom: calc(clamp(27px, 3.2vw, 42px) + 120px);
    min-height: 0;
    max-height: calc(100vh - var(--rp-header-offset, 154px) - 16px);
    max-height: calc(100dvh - var(--rp-header-offset, 154px) - 16px);
  }
}

/* Only the initial preparation card has no export controls to reserve room for. */
@media screen and (min-width:961px){
  #rp-result:has(>.tool-result-primer){padding-bottom:clamp(21px,2.5vw,29px)}
}
