.on-this-day-page .history-grid .history-card {
  scroll-margin-top: 112px;
}

.on-this-day-page .history-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #d5ddda;
}

.on-this-day-page .history-grid .history-entry-actions .history-entry-action {
  display: inline-flex;
  width: auto;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid #aab7b3;
  border-radius: 999px;
  color: #18211f;
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.15;
  text-decoration: none;
  overflow-wrap: normal;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}

.on-this-day-page .history-grid .history-entry-actions .history-entry-action:hover {
  border-color: #176b57;
  color: #0d4e3e;
  background: #eef7f3;
  transform: translateY(-1px);
}

.on-this-day-page .history-grid .history-entry-actions .history-entry-action:focus-visible {
  outline: 3px solid rgba(23, 107, 87, .3);
  outline-offset: 2px;
}

.on-this-day-page .history-grid .history-entry-actions .is-share {
  border-color: #10171a;
  color: #fff;
  background: #10171a;
}

.on-this-day-page .history-grid .history-entry-actions .is-share:hover {
  border-color: #176b57;
  color: #fff;
  background: #176b57;
}

.on-this-day-page .history-grid .history-entry-actions .is-calendar {
  border-color: #176b57;
  color: #0d4e3e;
  background: #eef7f3;
}

.on-this-day-page .history-grid .history-entry-actions .is-context {
  border-style: dashed;
}

.on-this-day-page .history-grid .history-entry-actions .history-entry-source {
  border-color: transparent;
  color: #075e8c;
  background: #f1f6f8;
}

.history-entry-action-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  border-radius: 50%;
  background: rgba(23, 107, 87, .1);
  font-size: 12px;
  line-height: 1;
}

.is-share .history-entry-action-icon {
  background: rgba(255, 255, 255, .14);
}

.history-entry-action-status {
  flex: 1 0 100%;
  min-height: 0;
  color: #176b57;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.history-entry-action-status:empty {
  display: none;
}

.history-entry-action-status[data-state="error"] {
  color: #a32635;
}

.on-this-day-page .history-card:target {
  border-color: #176b57;
  box-shadow: 0 0 0 4px rgba(23, 107, 87, .12), 0 12px 28px rgba(16, 23, 26, .12);
}

@media (max-width: 620px) {
  .on-this-day-page .history-entry-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .on-this-day-page .history-grid .history-entry-actions .history-entry-action {
    width: 100%;
  }

  .history-entry-action-status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 390px) {
  .on-this-day-page .history-entry-actions {
    grid-template-columns: 1fr;
  }

  .history-entry-action-status {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .on-this-day-page .history-grid .history-entry-actions .history-entry-action {
    transition: none;
  }
}
