/* ------------------------------------------------------------------
   Result actions: a permalink that rebuilds the reading, and a clean
   way back to the form. Shared by every calculator so the two buttons
   sit in the same place and behave the same way. 2026-11-10
   ------------------------------------------------------------------ */

.ra-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line, #e8e3da);
}

.ra-actions[hidden] {
  display: none;
}

.ra-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #1c2b3a;
  border-radius: 999px;
  background: #1c2b3a;
  color: #fffdf9;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.ra-btn:hover {
  background: #27405c;
  border-color: #27405c;
}

.ra-btn:focus-visible {
  outline: 2px solid #b08c2e;
  outline-offset: 2px;
}

.ra-btn-ghost {
  background: transparent;
  border-color: #cbc4b7;
  color: #1c2b3a;
}

.ra-btn-ghost:hover {
  background: #f2eee6;
  border-color: #1c2b3a;
}

.ra-btn.is-copied {
  background: #2f6b4f;
  border-color: #2f6b4f;
  color: #fff;
}

.ra-status {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted, #737985);
}

.ra-status:empty {
  display: none;
}

/* The zodiac panel is a fixed skeleton, so its actions only appear once a
   result exists. The BaZi panel is hidden wholesale until it does. */
.zodiac-result:not(.is-ready) .ra-actions {
  display: none;
}

@media (max-width: 520px) {
  .ra-actions {
    gap: 8px;
  }
  .ra-btn {
    flex: 1 1 auto;
    padding: 0 14px;
    font-size: 13.5px;
  }
  .ra-status {
    font-size: 12.5px;
  }
}
