.archive-portal-entry {
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
  justify-content: flex-end;
  gap: 0 8px;
  padding-inline: 16px;
}

/* The shared action row sits beneath the banner. */
body > .archive-portal-entry {
  max-width: 960px;
  margin-inline: auto;
}

.archive-portal-entry .guide-primary {
  margin-inline-end: auto;
}

.archive-portal-entry .guide-button {
  font-family: var(--bgr-font-label);
}

.guide-button {
  --cap: 29px;
  position: relative;
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  margin: 3px 0 8px;
  padding: 8px 3px;
  border: 0 solid transparent;
  border-inline-width: var(--cap);
  border-radius: 24px;
  background: url("/landing/legal/assets/btnc.png") center / 3px 100% repeat-x padding-box;
  color: #fff;
  text-shadow: 0 1px 2px #590631;
  text-align: center;
  text-decoration: none;
  font: 800 var(--bgr-size-control)/1.35 var(--bgr-font-pill);
  overflow-wrap: anywhere;
}

.guide-button.guide-primary {
  min-height: 48px;
  font-size: var(--bgr-size-body);
}

.guide-button::before,
.guide-button::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: var(--cap);
  background: center / 100% 100% no-repeat;
  pointer-events: none;
}

.guide-button::before {
  right: 100%;
  background-image: url("/landing/legal/assets/btna.png");
}

.guide-button::after {
  left: 100%;
  background-image: url("/landing/legal/assets/btnb.png");
}

.guide-button:hover {
  filter: brightness(.92);
}

.guide-button:focus-visible {
  outline: 2px solid #880553;
  outline-offset: 3px;
}

@media (forced-colors: active) {
  .guide-button,
  .recovery .guide-button {
    padding-inline: 12px;
    border: 1px solid ButtonText;
    background: ButtonFace;
    color: ButtonText;
    text-shadow: none;
  }

  .guide-button::before,
  .guide-button::after {
    display: none;
  }

  .guide-button:focus-visible {
    outline-color: Highlight;
  }
}

@media (max-width: 500px) {
  body > .archive-portal-entry {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 420px);
    margin-block: 0 12px;
  }

  .archive-portal-entry .guide-primary {
    grid-column: 1 / -1;
    justify-self: stretch;
    margin-inline-end: 0;
  }

  .archive-portal-entry .guide-button {
    min-height: 52px;
    margin-block: 0;
    padding: 4px 8px;
    border: 1px solid var(--bgr-tab-rim-active);
    border-radius: 999px;
    font-size: max(13px, var(--bgr-size-control));
    line-height: 1.2;
  }
}

@media (max-width: 500px) and (forced-colors: none) {
  .archive-portal-entry .guide-button {
    background: linear-gradient(var(--bgr-pill-highlight) 0%, var(--bgr-pill-base) 18%, #9c0059 50%, var(--bgr-pill-base));
    box-shadow: inset 0 1px 2px #fff9, 0 2px 3px #65073e30;
  }

  .archive-portal-entry .guide-button::before,
  .archive-portal-entry .guide-button::after {
    display: none;
  }
}
